@ni/nimble-components 20.10.0 → 20.10.2

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.
@@ -8943,7 +8943,7 @@ const n=e.getColumn(t)
8943
8943
  return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,i),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t]
8944
8944
  const n=e.getColumn(t)
8945
8945
  return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,i),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n
8946
- return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>MD(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId):void 0,getParentRows:()=>{let e=[],t=a
8946
+ return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>MD(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a
8947
8947
  for(;;){const n=t.getParentRow()
8948
8948
  if(!n)break
8949
8949
  e.push(n),t=n}return e.reverse()},getAllCells:_D((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,i){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:()=>{var t
@@ -9772,24 +9772,22 @@ this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeo
9772
9772
  return{disconnect:function(){var e
9773
9773
  return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t
9774
9774
  return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t
9775
- return null==(t=n())?void 0:t.unobserve(e)}}}(),this.range={startIndex:0,endIndex:0},this.setOptions=function(e){Object.entries(e).forEach((function(t){var n=t[0]
9776
- void 0===t[1]&&delete e[n]})),t.options=QF({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nN,rangeExtractor:iN,onChange:function(){},measureElement:sN,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(){null==t.options.onChange||t.options.onChange(t)},this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement()
9777
- t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){var n=t.scrollRect
9778
- t.scrollRect=e,(t.options.horizontal?e.width!==n.width:e.height!==n.height)&&t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=eN((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,i,o){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:i,getItemKey:o}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var i=new Map,o=new Map,r=n-1;r>=0;r--){var s=e[r]
9775
+ return null==(t=n())?void 0:t.unobserve(e)}}}(),this.range=null,this.setOptions=function(e){Object.entries(e).forEach((function(t){var n=t[0]
9776
+ void 0===t[1]&&delete e[n]})),t.options=QF({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nN,rangeExtractor:iN,onChange:function(){},measureElement:sN,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==t.options.onChange||t.options.onChange(t,e)},this.maybeNotify=eN((function(){return t.calculateRange(),[t.isScrolling,t.range?t.range.startIndex:null,t.range?t.range.endIndex:null]}),(function(e){t.notify(e)}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement()
9777
+ t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){t.scrollRect=e,t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=eN((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,i,o){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:i,getItemKey:o}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var i=new Map,o=new Map,r=n-1;r>=0;r--){var s=e[r]
9779
9778
  if(!i.has(s.lane)){var a=o.get(s.lane)
9780
9779
  if(null==a||s.end>a.end?o.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===t.options.lanes)break}}return o.size===t.options.lanes?Array.from(o.values()).sort((function(e,t){return e.end-t.end}))[0]:void 0},this.getMeasurements=eN((function(){return[t.memoOptions(),t.itemSizeCache]}),(function(e,n){var i=e.count,o=e.paddingStart,r=e.scrollMargin,s=e.getItemKey,a=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0
9781
9780
  t.pendingMeasuredCacheIndexes=[]
9782
9781
  for(var l=t.measurementsCache.slice(0,a),c=a;c<i;c++){var d=s(c),h=1===t.options.lanes?l[c-1]:t.getFurthestMeasurement(l,c),u=h?h.end:o+r,p=n.get(d),f="number"==typeof p?p:t.options.estimateSize(c),g=u+f,m=h?h.lane:c%t.options.lanes
9783
- l[c]={index:c,start:u,size:f,end:g,key:d,lane:m}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=eN((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=cN(0,o,r,i),a=s
9782
+ l[c]={index:c,start:u,size:f,end:g,key:d,lane:m}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=eN((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=e.length>0&&n>0?function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=cN(0,o,r,i),a=s
9784
9783
  for(;a<o&&t[a].end<i+n;)a++
9785
- return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i})}),{key:!1,debug:function(){return t.options.debug}}),this.maybeNotify=eN((function(){var e=t.calculateRange()
9786
- return[e.startIndex,e.endIndex,t.isScrolling]}),(function(){t.notify()}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.range.startIndex,this.range.endIndex,this.isScrolling]}),this.getIndexes=eN((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return e(QF({},t,{overscan:n,count:i}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,i=e.getAttribute(n)
9784
+ return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i}):null}),{key:!1,debug:function(){return t.options.debug}}),this.getIndexes=eN((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return null===t?[]:e(QF({},t,{overscan:n,count:i}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,i=e.getAttribute(n)
9787
9785
  return i?parseInt(i,10):(console.warn("Missing attribute name '"+n+"={index}' on measured element."),-1)},this._measureElement=function(e,n){var i=t.measurementsCache[t.indexFromElement(e)]
9788
- if(i){var o=t.measureElementCache.get(i.key)
9789
- if(e.isConnected){o!==e&&(o&&t.observer.unobserve(o),t.observer.observe(e),t.measureElementCache.set(i.key,e))
9786
+ if(i&&e.isConnected){var o=t.measureElementCache.get(i.key)
9787
+ o!==e&&(o&&t.observer.unobserve(o),t.observer.observe(e),t.measureElementCache.set(i.key,e))
9790
9788
  var r=t.options.measureElement(e,n,t)
9791
- t.resizeItem(i,r)}else o&&(t.observer.unobserve(o),t.measureElementCache.delete(i.key))}else t.measureElementCache.forEach((function(n,i){n===e&&(t.observer.unobserve(e),t.measureElementCache.delete(i))}))},this.resizeItem=function(e,n){var i,o=n-(null!=(i=t.itemSizeCache.get(e.key))?i:e.size)
9792
- 0!==o&&(e.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=o,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify())},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=eN((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=t[e[i]]
9789
+ t.resizeItem(i,r)}else t.measureElementCache.forEach((function(n,i){n===e&&(t.observer.unobserve(e),t.measureElementCache.delete(i))}))},this.resizeItem=function(e,n){var i,o=n-(null!=(i=t.itemSizeCache.get(e.key))?i:e.size)
9790
+ 0!==o&&(e.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=o,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify(!1))},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=eN((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=t[e[i]]
9793
9791
  n.push(r)}return n}),{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(e){var n=t.getMeasurements()
9794
9792
  return tN(n[cN(0,n.length-1,(function(e){return tN(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
9795
9793
  "auto"===n&&(n=e<=t.scrollOffset?"start":e>=t.scrollOffset+i?"end":"start"),"start"===n||("end"===n?e-=i:"center"===n&&(e-=i/2))
@@ -9808,7 +9806,7 @@ if(t.scrollToIndexTimeoutId=null,t.measureElementCache.has(t.options.getItemKey(
9808
9806
  n=o,i=t.scrollOffset,Math.abs(n-i)<1||t.scrollToIndex(e,{align:c,behavior:s})}else t.scrollToIndex(e,{align:c,behavior:s})})))},this.scrollBy=function(e,n){var i=(void 0===n?{}:n).behavior
9809
9807
  t.cancelScrollToIndex(),"smooth"===i&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.scrollOffset+e,{adjustments:void 0,behavior:i})},this.getTotalSize=function(){var e
9810
9808
  return((null==(e=t.getMeasurements()[t.options.count-1])?void 0:e.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(e,n){var i=n.adjustments,o=n.behavior
9811
- t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify()},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},cN=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
9809
+ t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},cN=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
9812
9810
  if(r<i)e=o+1
9813
9811
  else{if(!(r>i))return o
9814
9812
  t=o-1}}return e>0?e-1:0}
@@ -9903,7 +9901,7 @@ const i=e.getState().sorting,o=[],r=i.filter((t=>{var n
9903
9901
  return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),s={}
9904
9902
  r.forEach((t=>{const n=e.getColumn(t.id)
9905
9903
  n&&(s[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}))
9906
- const a=e=>{const t=[...e]
9904
+ const a=e=>{const t=e.map((e=>({...e})))
9907
9905
  return t.sort(((e,t)=>{for(let i=0;i<r.length;i+=1){var n
9908
9906
  const o=r[i],a=s[o.id],l=null!=(n=null==o?void 0:o.desc)&&n
9909
9907
  let c=0
@@ -10100,69 +10098,92 @@ e=this.format===rL?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormatt
10100
10098
  try{return new Intl.DateTimeFormat(sa.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],hL.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],hL.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],hL.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],hL.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],hL.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],hL.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],hL.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],hL.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],hL.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],hL.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],hL.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],hL.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:dL})],hL.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],hL.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],hL.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],hL.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],hL.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],hL.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],hL.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],hL.prototype,"customHourCycle",void 0)
10101
10099
  const uL=hL.compose({baseName:"table-column-date-text",template:EN,styles:_N})
10102
10100
  vi.getOrCreate().withPrefix("nimble").register(uL()),vi.tagFor(hL)
10103
- const pL=(e,t)=>{if("number"===t){const t=oe.fromView(e)
10101
+ class pL extends tL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}const fL=pL.compose({baseName:"table-column-duration-text-cell-view",template:QN,styles:eL})
10102
+ vi.getOrCreate().withPrefix("nimble").register(fL())
10103
+ const gL=vi.tagFor(pL)
10104
+ class mL{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
10105
+ const t=[],n=1e3,i=6e4,o=36e5,r=864e5,s=e/r
10106
+ let a=e
10107
+ const l=Math.floor(s)
10108
+ if(l<=999&&l>0){const e=this.daysFormatter.format(l)
10109
+ t.push(e),a-=l*r}else if(l>999)return this.scientificSecondsFormatter.format(e/n)
10110
+ const c=Math.floor(e/o%24)
10111
+ if(a-=c*o,c){const e=this.hoursFormatter.format(c)
10112
+ t.push(e)}const d=Math.floor(e/i%60)
10113
+ if(a-=d*i,d){const e=this.minutesFormatter.format(d)
10114
+ t.push(e)}const h=a/n,u=0===h?0:h%60
10115
+ if(e<1&&0!==h)return this.scientificSecondsFormatter.format(h)
10116
+ if(u>=5e-4||0===u&&0===t.length){const e=this.secondsFormatter.format(u)
10117
+ t.push(e)}return t.join(", ")}}class vL extends PN{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}const bL=vL.compose({baseName:"table-column-duration-text-group-header-view",template:VN,styles:zN})
10118
+ vi.getOrCreate().withPrefix("nimble").register(bL())
10119
+ const wL=vi.tagFor(vL)
10120
+ class yL extends UN{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),sa.unsubscribe(this.langSubscriber,this)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:gL,groupHeaderViewTag:wL,delegatedEvents:[],sortOperation:xF}}updateColumnConfig(){const e=new mL(sa.getValueFor(this))
10121
+ if(e){const t={formatter:e}
10122
+ this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}}const xL=yL.compose({baseName:"table-column-duration-text",template:EN,styles:_N})
10123
+ vi.getOrCreate().withPrefix("nimble").register(xL()),vi.tagFor(yL)
10124
+ const kL=(e,t)=>{if("number"===t){const t=oe.fromView(e)
10104
10125
  return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
10105
- class fL extends IF{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof fw&&"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
10106
- return this.mappings.forEach((t=>{const n=pL(t.key,this.keyType)
10126
+ class CL extends IF{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof fw&&"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
10127
+ return this.mappings.forEach((t=>{const n=kL(t.key,this.keyType)
10107
10128
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
10108
10129
  const i=this.createMappingConfig(t)
10109
10130
  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()
10110
10131
  for(const e of this.mappings){const t=g.getNotifier(e)
10111
- t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],fL.prototype,"mappings",void 0),e([se({attribute:"field-name"})],fL.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],fL.prototype,"keyType",void 0)
10112
- const gL=we`
10132
+ t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],CL.prototype,"mappings",void 0),e([se({attribute:"field-name"})],CL.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],CL.prototype,"keyType",void 0)
10133
+ const SL=we`
10113
10134
  ${_N}
10114
10135
 
10115
10136
  slot[name='mapping'] {
10116
10137
  display: none;
10117
10138
  }
10118
- `,mL=W`${EN}<slot ${Ke("mappings")} name="mapping"></slot>`,vL=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
10119
- class bL extends aL{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
10139
+ `,$L=W`${EN}<slot ${Ke("mappings")} name="mapping"></slot>`,ML=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
10140
+ class _L extends aL{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
10120
10141
  const n=e.map((e=>e.key))
10121
- 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===pL(e,t)))
10142
+ 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===kL(e,t)))
10122
10143
  this.setConditionValue("invalidMappingKeyValueForType",n)}validateMappingTypes(e){const t=e.every((e=>this.supportedMappingElements.some((t=>e instanceof t))))
10123
- this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>pL(e,t))),i=new Set(n).size!==n.length
10144
+ this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>kL(e,t))),i=new Set(n).size!==n.length
10124
10145
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
10125
10146
  this.setConditionValue("missingKeyValue",t)}validateNoMissingText(e){const t=e.some((e=>void 0===e.text))
10126
- this.setConditionValue("missingTextValue",t)}}const wL=[...vL]
10127
- class yL extends bL{constructor(e){super(e,wL,[mw])}}class xL{constructor(e){this.text=e}}class kL extends xL{}class CL extends tL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
10147
+ this.setConditionValue("missingTextValue",t)}}const AL=[...ML]
10148
+ class IL extends _L{constructor(e){super(e,AL,[mw])}}class EL{constructor(e){this.text=e}}class OL extends EL{}class TL extends tL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
10128
10149
  if(null==e)return void(this.text="")
10129
10150
  const t=this.columnConfig?.mappingConfigs.get(e)
10130
- this.text=t instanceof kL&&t.text?t.text:""}}const SL=CL.compose({baseName:"table-column-enum-text-cell-view",template:QN,styles:eL})
10131
- vi.getOrCreate().withPrefix("nimble").register(SL())
10132
- const $L=vi.tagFor(CL)
10133
- class ML extends PN{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
10151
+ this.text=t instanceof OL&&t.text?t.text:""}}const RL=TL.compose({baseName:"table-column-enum-text-cell-view",template:QN,styles:eL})
10152
+ vi.getOrCreate().withPrefix("nimble").register(RL())
10153
+ const DL=vi.tagFor(TL)
10154
+ class FL extends PN{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
10134
10155
  if(null==e)return void(this.text="")
10135
10156
  const t=this.columnConfig?.mappingConfigs.get(e)
10136
- this.text=t instanceof kL&&t.text?t.text:""}}const _L=ML.compose({baseName:"table-column-enum-text-group-header-view",template:VN,styles:zN})
10137
- vi.getOrCreate().withPrefix("nimble").register(_L())
10138
- const AL=vi.tagFor(ML)
10139
- class IL extends(TN(ON(fL))){createValidator(){return new yL(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:$L,groupHeaderViewTag:AL,delegatedEvents:[],sortOperation:xF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof mw)return new kL(e.text)
10140
- throw new Error("Unsupported mapping")}}const EL=IL.compose({baseName:"table-column-enum-text",template:mL,styles:gL})
10141
- vi.getOrCreate().withPrefix("nimble").register(EL()),vi.tagFor(IL)
10142
- class OL extends PN{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.groupHeaderValue)??""}}const TL=OL.compose({baseName:"table-column-number-text-group-header-view",template:VN,styles:zN})
10143
- vi.getOrCreate().withPrefix("nimble").register(TL())
10144
- const RL=vi.tagFor(OL)
10145
- class DL extends tL{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??XN}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.cellRecord?.value)??""}}const FL=DL.compose({baseName:"table-column-number-text-cell-view",template:QN,styles:eL})
10146
- vi.getOrCreate().withPrefix("nimble").register(FL())
10147
- const NL=vi.tagFor(DL),LL="decimal",PL="left",VL="right"
10148
- class zL{formatValue(e){if("number"!=typeof e)return""
10149
- try{return this.format(e)}catch{return""}}}class HL extends zL{constructor(e){super(),this.defaultFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:HL.maximumDigits,useGrouping:!0}),this.leadingZeroFormatter=new Intl.NumberFormat(e,{maximumFractionDigits:HL.maximumDigits-1,useGrouping:!0}),this.exponentialFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:HL.maximumDigits,notation:"scientific"})}format(e){const t=0===e?0:e
10157
+ this.text=t instanceof OL&&t.text?t.text:""}}const NL=FL.compose({baseName:"table-column-enum-text-group-header-view",template:VN,styles:zN})
10158
+ vi.getOrCreate().withPrefix("nimble").register(NL())
10159
+ const LL=vi.tagFor(FL)
10160
+ class PL extends(TN(ON(CL))){createValidator(){return new IL(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:DL,groupHeaderViewTag:LL,delegatedEvents:[],sortOperation:xF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof mw)return new OL(e.text)
10161
+ throw new Error("Unsupported mapping")}}const VL=PL.compose({baseName:"table-column-enum-text",template:$L,styles:SL})
10162
+ vi.getOrCreate().withPrefix("nimble").register(VL()),vi.tagFor(PL)
10163
+ class zL extends PN{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.groupHeaderValue)??""}}const HL=zL.compose({baseName:"table-column-number-text-group-header-view",template:VN,styles:zN})
10164
+ vi.getOrCreate().withPrefix("nimble").register(HL())
10165
+ const BL=vi.tagFor(zL)
10166
+ class qL extends tL{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??XN}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.cellRecord?.value)??""}}const ZL=qL.compose({baseName:"table-column-number-text-cell-view",template:QN,styles:eL})
10167
+ vi.getOrCreate().withPrefix("nimble").register(ZL())
10168
+ const jL=vi.tagFor(qL),UL="decimal",WL="left",GL="right"
10169
+ class KL{formatValue(e){if("number"!=typeof e)return""
10170
+ try{return this.format(e)}catch{return""}}}class JL extends KL{constructor(e){super(),this.defaultFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:JL.maximumDigits,useGrouping:!0}),this.leadingZeroFormatter=new Intl.NumberFormat(e,{maximumFractionDigits:JL.maximumDigits-1,useGrouping:!0}),this.exponentialFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:JL.maximumDigits,notation:"scientific"})}format(e){const t=0===e?0:e
10150
10171
  return this.getFormatterForNumber(t).format(t)}getFormatterForNumber(e){if(0===e)return this.defaultFormatter
10151
10172
  const t=Math.abs(e)
10152
- return t>=HL.exponentialUpperBound||t<HL.exponentialLowerBound?this.exponentialFormatter:t<1?this.leadingZeroFormatter:this.defaultFormatter}}HL.maximumDigits=6,HL.exponentialLowerBound=995e-6,HL.exponentialUpperBound=999999.5
10153
- class BL extends zL{constructor(e,t,n){super(),this.formatter=new Intl.NumberFormat(e,{maximumFractionDigits:n,minimumFractionDigits:t,useGrouping:!0}),this.tenPowDecimalDigits=10**n}format(e){const t=this.willRoundToZero(e)?0:e
10154
- return this.formatter.format(t)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}const qL=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits"]
10155
- class ZL extends aL{constructor(e){super(e,qL)}validateDecimalDigits(e,t){const n=!!(e===LL&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10156
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===LL&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10157
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===LL)&&("number"==typeof t&&"number"==typeof n)
10158
- this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class jL extends UN{constructor(){super(...arguments),this.validator=new ZL(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),sa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:NL,groupHeaderViewTag:RL,delegatedEvents:[],sortOperation:xF}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
10173
+ return t>=JL.exponentialUpperBound||t<JL.exponentialLowerBound?this.exponentialFormatter:t<1?this.leadingZeroFormatter:this.defaultFormatter}}JL.maximumDigits=6,JL.exponentialLowerBound=995e-6,JL.exponentialUpperBound=999999.5
10174
+ class XL extends KL{constructor(e,t,n){super(),this.formatter=new Intl.NumberFormat(e,{maximumFractionDigits:n,minimumFractionDigits:t,useGrouping:!0}),this.tenPowDecimalDigits=10**n}format(e){const t=this.willRoundToZero(e)?0:e
10175
+ return this.formatter.format(t)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}const YL=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits"]
10176
+ class QL extends aL{constructor(e){super(e,YL)}validateDecimalDigits(e,t){const n=!!(e===UL&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10177
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===UL&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10178
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===UL)&&("number"==typeof t&&"number"==typeof n)
10179
+ this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class eP extends UN{constructor(){super(...arguments),this.validator=new QL(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),sa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:jL,groupHeaderViewTag:BL,delegatedEvents:[],sortOperation:xF}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
10159
10180
  this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){let e,t
10160
- return this.format===LL?(e="number"==typeof this.decimalMaximumDigits?0:this.decimalDigits??2,t=this.decimalMaximumDigits??this.decimalDigits??2,new BL(sa.getValueFor(this),e,t)):new HL(sa.getValueFor(this))}determineCellContentAlignment(){return this.alignment===PL?XN:this.alignment===VL||this.format===LL&&"number"!=typeof this.decimalMaximumDigits?YN:XN}}e([se],jL.prototype,"format",void 0),e([se],jL.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],jL.prototype,"decimalDigits",void 0),e([se({attribute:"decimal-maximum-digits",converter:oe})],jL.prototype,"decimalMaximumDigits",void 0)
10161
- const UL=jL.compose({baseName:"table-column-number-text",template:EN,styles:_N})
10162
- vi.getOrCreate().withPrefix("nimble").register(UL()),vi.tagFor(jL)
10163
- const WL=[...vL,"invalidIconName"]
10164
- class GL extends bL{constructor(e){super(e,WL,[ww,xw])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof ww)).some((e=>void 0===e.resolvedIcon))
10165
- this.setConditionValue("invalidIconName",t)}}const KL=we`
10181
+ return this.format===UL?(e="number"==typeof this.decimalMaximumDigits?0:this.decimalDigits??2,t=this.decimalMaximumDigits??this.decimalDigits??2,new XL(sa.getValueFor(this),e,t)):new JL(sa.getValueFor(this))}determineCellContentAlignment(){return this.alignment===WL?XN:this.alignment===GL||this.format===UL&&"number"!=typeof this.decimalMaximumDigits?YN:XN}}e([se],eP.prototype,"format",void 0),e([se],eP.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],eP.prototype,"decimalDigits",void 0),e([se({attribute:"decimal-maximum-digits",converter:oe})],eP.prototype,"decimalMaximumDigits",void 0)
10182
+ const tP=eP.compose({baseName:"table-column-number-text",template:EN,styles:_N})
10183
+ vi.getOrCreate().withPrefix("nimble").register(tP()),vi.tagFor(eP)
10184
+ const nP=[...ML,"invalidIconName"]
10185
+ class iP extends _L{constructor(e){super(e,nP,[ww,xw])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof ww)).some((e=>void 0===e.resolvedIcon))
10186
+ this.setConditionValue("invalidIconName",t)}}const oP=we`
10166
10187
  ${Eo("inline-flex")}
10167
10188
 
10168
10189
  :host {
@@ -10182,7 +10203,7 @@ this.setConditionValue("invalidIconName",t)}}const KL=we`
10182
10203
  overflow: hidden;
10183
10204
  text-overflow: ellipsis;
10184
10205
  }
10185
- `,JL=W`
10206
+ `,rP=W`
10186
10207
  ${Ve((e=>"icon"===e.visual),W`
10187
10208
  ${e=>e.iconTemplate}
10188
10209
  <span
@@ -10201,7 +10222,7 @@ this.setConditionValue("invalidIconName",t)}}const KL=we`
10201
10222
  >${e=>e.text}</span>
10202
10223
  `)}
10203
10224
  `
10204
- class XL extends xL{constructor(e,t,n){var i
10225
+ class sP extends EL{constructor(e,t,n){var i
10205
10226
  super(n),this.severity=t,this.iconTemplate=W`
10206
10227
  <${i=e}
10207
10228
  title="${e=>e.text}"
@@ -10210,14 +10231,14 @@ super(n),this.severity=t,this.iconTemplate=W`
10210
10231
  severity="${e=>e.severity}"
10211
10232
  class="no-shrink"
10212
10233
  >
10213
- </${i}>`}}class YL extends xL{constructor(e){super(e)}}class QL extends PN{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
10234
+ </${i}>`}}class aP extends EL{constructor(e){super(e)}}class lP extends PN{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
10214
10235
  const e=this.groupHeaderValue
10215
10236
  if(null==e)return
10216
10237
  const t=this.columnConfig.mappingConfigs.get(e)
10217
- t instanceof XL?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof YL&&(this.visual="spinner",this.text=t.text??"")}}e([m],QL.prototype,"severity",void 0),e([m],QL.prototype,"iconTemplate",void 0),e([m],QL.prototype,"visual",void 0)
10218
- const eP=QL.compose({baseName:"table-column-icon-group-header-view",template:JL,styles:KL})
10219
- vi.getOrCreate().withPrefix("nimble").register(eP())
10220
- const tP=vi.tagFor(QL),nP=W`
10238
+ t instanceof sP?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof aP&&(this.visual="spinner",this.text=t.text??"")}}e([m],lP.prototype,"severity",void 0),e([m],lP.prototype,"iconTemplate",void 0),e([m],lP.prototype,"visual",void 0)
10239
+ const cP=lP.compose({baseName:"table-column-icon-group-header-view",template:rP,styles:oP})
10240
+ vi.getOrCreate().withPrefix("nimble").register(cP())
10241
+ const dP=vi.tagFor(lP),hP=W`
10221
10242
  ${Ve((e=>"icon"===e.visual),(e=>e.iconTemplate))}
10222
10243
  ${Ve((e=>"spinner"===e.visual),W`
10223
10244
  <${uD}
@@ -10227,24 +10248,24 @@ const tP=vi.tagFor(QL),nP=W`
10227
10248
  </${uD}>
10228
10249
  `)}
10229
10250
  `
10230
- class iP extends $F{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
10251
+ class uP extends $F{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
10231
10252
  const e=this.cellRecord.value
10232
10253
  if(null==e)return
10233
10254
  const t=this.columnConfig.mappingConfigs.get(e)
10234
- t instanceof XL?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof YL&&(this.visual="spinner",this.text=t.text)}}e([m],iP.prototype,"severity",void 0),e([m],iP.prototype,"text",void 0),e([m],iP.prototype,"iconTemplate",void 0),e([m],iP.prototype,"visual",void 0)
10235
- const oP=iP.compose({baseName:"table-column-icon-cell-view",template:nP})
10236
- vi.getOrCreate().withPrefix("nimble").register(oP())
10237
- const rP=vi.tagFor(iP)
10238
- class sP extends(TN(ON(fL))){createValidator(){return new GL(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:rP,groupHeaderViewTag:tP,delegatedEvents:[],sortOperation:xF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof ww){if(!e.resolvedIcon)throw Error("Unresolved icon")
10239
- return new XL(e.resolvedIcon,e.severity,e.text)}if(e instanceof xw)return new YL(e.text)
10240
- throw new Error("Unsupported mapping")}}const aP=sP.compose({baseName:"table-column-icon",template:mL,styles:gL})
10241
- vi.getOrCreate().withPrefix("nimble").register(aP()),vi.tagFor(sP)
10242
- class lP extends tL{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const cP=lP.compose({baseName:"table-column-text-cell-view",template:QN,styles:eL})
10243
- vi.getOrCreate().withPrefix("nimble").register(cP())
10244
- const dP=vi.tagFor(lP)
10245
- class hP extends UN{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:dP,groupHeaderViewTag:qN,delegatedEvents:[],sortOperation:kF}}}const uP=hP.compose({baseName:"table-column-text",template:EN,styles:_N})
10246
- vi.getOrCreate().withPrefix("nimble").register(uP()),vi.tagFor(hP)
10247
- const pP=we`
10255
+ t instanceof sP?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof aP&&(this.visual="spinner",this.text=t.text)}}e([m],uP.prototype,"severity",void 0),e([m],uP.prototype,"text",void 0),e([m],uP.prototype,"iconTemplate",void 0),e([m],uP.prototype,"visual",void 0)
10256
+ const pP=uP.compose({baseName:"table-column-icon-cell-view",template:hP})
10257
+ vi.getOrCreate().withPrefix("nimble").register(pP())
10258
+ const fP=vi.tagFor(uP)
10259
+ class gP extends(TN(ON(CL))){createValidator(){return new iP(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:fP,groupHeaderViewTag:dP,delegatedEvents:[],sortOperation:xF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof ww){if(!e.resolvedIcon)throw Error("Unresolved icon")
10260
+ return new sP(e.resolvedIcon,e.severity,e.text)}if(e instanceof xw)return new aP(e.text)
10261
+ throw new Error("Unsupported mapping")}}const mP=gP.compose({baseName:"table-column-icon",template:$L,styles:SL})
10262
+ vi.getOrCreate().withPrefix("nimble").register(mP()),vi.tagFor(gP)
10263
+ class vP extends tL{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const bP=vP.compose({baseName:"table-column-text-cell-view",template:QN,styles:eL})
10264
+ vi.getOrCreate().withPrefix("nimble").register(bP())
10265
+ const wP=vi.tagFor(vP)
10266
+ class yP extends UN{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:wP,groupHeaderViewTag:qN,delegatedEvents:[],sortOperation:kF}}}const xP=yP.compose({baseName:"table-column-text",template:EN,styles:_N})
10267
+ vi.getOrCreate().withPrefix("nimble").register(xP()),vi.tagFor(yP)
10268
+ const kP=we`
10248
10269
  ${Eo("grid")}
10249
10270
 
10250
10271
  :host {
@@ -10272,7 +10293,7 @@ const pP=we`
10272
10293
  overflow: auto;
10273
10294
  }
10274
10295
  `
10275
- class fP extends io{constructor(){super(),this.activeindicator=!1}}const gP=fP.compose({baseName:"tabs",baseClass:io,template:(e,t)=>W`
10296
+ class CP extends io{constructor(){super(),this.activeindicator=!1}}const SP=CP.compose({baseName:"tabs",baseClass:io,template:(e,t)=>W`
10276
10297
  <template class="${e=>e.orientation}">
10277
10298
  ${et(0,t)}
10278
10299
  <div class="tablist" part="tablist" role="tablist">
@@ -10291,9 +10312,9 @@ class fP extends io{constructor(){super(),this.activeindicator=!1}}const gP=fP.c
10291
10312
  <slot name="tabpanel" ${Ke("tabpanels")}></slot>
10292
10313
  </div>
10293
10314
  </template>
10294
- `,styles:pP})
10295
- vi.getOrCreate().withPrefix("nimble").register(gP()),vi.tagFor(fP)
10296
- const mP=we`
10315
+ `,styles:kP})
10316
+ vi.getOrCreate().withPrefix("nimble").register(SP()),vi.tagFor(CP)
10317
+ const $P=we`
10297
10318
  ${Eo("flex")}
10298
10319
 
10299
10320
  :host {
@@ -10311,15 +10332,15 @@ const mP=we`
10311
10332
  rgba(${ya}, 0.3);
10312
10333
  margin: ${Va} ${za};
10313
10334
  }
10314
- `,vP=W`
10335
+ `,MP=W`
10315
10336
  <template slot="end">
10316
10337
  <div class="separator"></div>
10317
10338
  <slot></slot>
10318
10339
  </template>
10319
10340
  `
10320
- class bP extends Pt{}const wP=bP.compose({baseName:"tabs-toolbar",template:vP,styles:mP})
10321
- vi.getOrCreate().withPrefix("nimble").register(wP()),vi.tagFor(bP)
10322
- const yP="outline",xP="block",kP=we`
10341
+ class _P extends Pt{}const AP=_P.compose({baseName:"tabs-toolbar",template:MP,styles:$P})
10342
+ vi.getOrCreate().withPrefix("nimble").register(AP()),vi.tagFor(_P)
10343
+ const IP="outline",EP="block",OP=we`
10323
10344
  ${Eo("inline-flex")}
10324
10345
  ${dg}
10325
10346
 
@@ -10459,12 +10480,12 @@ const yP="outline",xP="block",kP=we`
10459
10480
  top: ${za};
10460
10481
  right: var(--ni-private-scrollbar-width);
10461
10482
  }
10462
- `.withBehaviors(Md(yP,we`
10483
+ `.withBehaviors(Md(IP,we`
10463
10484
  .control {
10464
10485
  border-color: rgba(${ya}, 0.3);
10465
10486
  background-color: transparent;
10466
10487
  }
10467
- `),Md(xP,we`
10488
+ `),Md(EP,we`
10468
10489
  .control {
10469
10490
  background-color: rgba(${ya}, 0.1);
10470
10491
  }
@@ -10482,8 +10503,8 @@ const yP="outline",xP="block",kP=we`
10482
10503
  border-bottom-color: ${xa};
10483
10504
  }
10484
10505
  `))
10485
- class CP extends ao{constructor(){super(...arguments),this.appearance=yP,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],CP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],CP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],CP.prototype,"errorVisible",void 0),e([m],CP.prototype,"scrollbarWidth",void 0)
10486
- const SP=CP.compose({baseName:"text-area",baseClass:ao,template:()=>W`
10506
+ class TP extends ao{constructor(){super(...arguments),this.appearance=IP,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],TP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],TP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],TP.prototype,"errorVisible",void 0),e([m],TP.prototype,"scrollbarWidth",void 0)
10507
+ const RP=TP.compose({baseName:"text-area",baseClass:ao,template:()=>W`
10487
10508
  <label
10488
10509
  part="label"
10489
10510
  for="control"
@@ -10540,9 +10561,9 @@ const SP=CP.compose({baseName:"text-area",baseClass:ao,template:()=>W`
10540
10561
  ></${mf}>
10541
10562
  ${ng}
10542
10563
  </div>
10543
- `,styles:kP,shadowOptions:{delegatesFocus:!0}})
10544
- vi.getOrCreate().withPrefix("nimble").register(SP()),vi.tagFor(CP)
10545
- const $P="underline",MP="outline",_P="block",AP="frameless",IP=we`
10564
+ `,styles:OP,shadowOptions:{delegatesFocus:!0}})
10565
+ vi.getOrCreate().withPrefix("nimble").register(RP()),vi.tagFor(TP)
10566
+ const DP="underline",FP="outline",NP="block",LP="frameless",PP=we`
10546
10567
  ${Eo("inline-block")}
10547
10568
  ${dg}
10548
10569
 
@@ -10714,12 +10735,12 @@ const $P="underline",MP="outline",_P="block",AP="frameless",IP=we`
10714
10735
  slot[name='actions']::slotted(*) {
10715
10736
  ${La.cssCustomProperty}: 24px;
10716
10737
  }
10717
- `.withBehaviors(Md($P,we`
10738
+ `.withBehaviors(Md(DP,we`
10718
10739
  .root {
10719
10740
  border-bottom-width: ${Ba};
10720
10741
  padding-bottom: 0;
10721
10742
  }
10722
- `),Md(_P,we`
10743
+ `),Md(NP,we`
10723
10744
  .root {
10724
10745
  background-color: rgba(${ya}, 0.1);
10725
10746
  }
@@ -10747,12 +10768,12 @@ const $P="underline",MP="outline",_P="block",AP="frameless",IP=we`
10747
10768
  :host([disabled]) .root {
10748
10769
  background-color: rgba(${ya}, 0.07);
10749
10770
  }
10750
- `),Md(MP,we`
10771
+ `),Md(FP,we`
10751
10772
  .root {
10752
10773
  border-width: ${Ba};
10753
10774
  padding: 0;
10754
10775
  }
10755
- `),Md(AP,we`
10776
+ `),Md(LP,we`
10756
10777
  .control {
10757
10778
  padding-left: ${Ba};
10758
10779
  padding-right: ${Ba};
@@ -10770,8 +10791,8 @@ const $P="underline",MP="outline",_P="block",AP="frameless",IP=we`
10770
10791
  filter: invert(100%);
10771
10792
  }
10772
10793
  `))
10773
- class EP extends Li{constructor(){super(...arguments),this.appearance=$P,this.errorVisible=!1,this.fullBleed=!1}}e([se],EP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],EP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],EP.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],EP.prototype,"fullBleed",void 0)
10774
- const OP=EP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10794
+ class VP extends Li{constructor(){super(...arguments),this.appearance=DP,this.errorVisible=!1,this.fullBleed=!1}}e([se],VP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],VP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],VP.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],VP.prototype,"fullBleed",void 0)
10795
+ const zP=VP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10775
10796
  <template
10776
10797
  class="
10777
10798
  ${e=>e.readOnly?"readonly":""}
@@ -10831,7 +10852,7 @@ const OP=EP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10831
10852
  ${Qe(0,t)}
10832
10853
  </div>
10833
10854
  </template>
10834
- `,styles:IP,shadowOptions:{delegatesFocus:!0},end:W`
10855
+ `,styles:PP,shadowOptions:{delegatesFocus:!0},end:W`
10835
10856
  <${mf}
10836
10857
  severity="error"
10837
10858
  class="error-icon"
@@ -10841,8 +10862,8 @@ const OP=EP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10841
10862
  </span>
10842
10863
  ${ng}
10843
10864
  `})
10844
- vi.getOrCreate().withPrefix("nimble").register(OP()),vi.tagFor(EP)
10845
- const TP=we`
10865
+ vi.getOrCreate().withPrefix("nimble").register(zP()),vi.tagFor(VP)
10866
+ const HP=we`
10846
10867
  ${Eo("inline-flex")}
10847
10868
 
10848
10869
  :host {
@@ -10927,7 +10948,7 @@ const TP=we`
10927
10948
  .status-icon {
10928
10949
  opacity: 0.6;
10929
10950
  }
10930
- `)),RP=W`
10951
+ `)),BP=W`
10931
10952
  ${Ve((e=>e.tooltipVisible),W`
10932
10953
  <${Jd}
10933
10954
  class="anchored-region"
@@ -10960,11 +10981,11 @@ const TP=we`
10960
10981
  </${Jd}>
10961
10982
  `)}
10962
10983
  `
10963
- class DP extends Mo{constructor(){super(...arguments),this.iconVisible=!1}}e([se],DP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],DP.prototype,"iconVisible",void 0)
10964
- const FP=DP.compose({baseName:"tooltip",baseClass:Mo,template:RP,styles:TP})
10965
- vi.getOrCreate().withPrefix("nimble").register(FP()),vi.tagFor(DP)
10966
- const NP="group-selected",LP="all",PP="leaves-only",VP="none"
10967
- class zP{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 HP=we`
10984
+ class qP extends Mo{constructor(){super(...arguments),this.iconVisible=!1}}e([se],qP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],qP.prototype,"iconVisible",void 0)
10985
+ const ZP=qP.compose({baseName:"tooltip",baseClass:Mo,template:BP,styles:HP})
10986
+ vi.getOrCreate().withPrefix("nimble").register(ZP()),vi.tagFor(qP)
10987
+ const jP="group-selected",UP="all",WP="leaves-only",GP="none"
10988
+ class KP{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 JP=we`
10968
10989
  ${Eo("block")}
10969
10990
 
10970
10991
  :host {
@@ -10980,7 +11001,7 @@ class zP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
10980
11001
  }
10981
11002
 
10982
11003
  ${""}
10983
- :host([${NP}])::after {
11004
+ :host([${jP}])::after {
10984
11005
  background: ${$a};
10985
11006
  border-radius: 0px;
10986
11007
  content: '';
@@ -11002,7 +11023,7 @@ class zP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
11002
11023
  background: ${ba};
11003
11024
  }
11004
11025
 
11005
- :host([${NP}]) .positioning-region:hover {
11026
+ :host([${jP}]) .positioning-region:hover {
11006
11027
  background: ${va};
11007
11028
  }
11008
11029
 
@@ -11110,7 +11131,7 @@ class zP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
11110
11131
  display: block;
11111
11132
  }
11112
11133
  `.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)
11113
- t&&aa.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new zP(this.ltr,this.rtl,e),n=aa.getValueFor(e)
11134
+ t&&aa.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new KP(this.ltr,this.rtl,e),n=aa.getValueFor(e)
11114
11135
  aa.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
11115
11136
  .expand-collapse-button {
11116
11137
  left: var(
@@ -11142,8 +11163,8 @@ aa.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
11142
11163
  transform: rotate(135deg);
11143
11164
  }
11144
11165
  `))
11145
- class BP extends Ao{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],BP.prototype,"groupSelected",void 0)
11146
- const qP=BP.compose({baseName:"tree-item",baseClass:Ao,template:(e,t)=>W`
11166
+ class XP extends Ao{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],XP.prototype,"groupSelected",void 0)
11167
+ const YP=XP.compose({baseName:"tree-item",baseClass:Ao,template:(e,t)=>W`
11147
11168
  <template
11148
11169
  role="treeitem"
11149
11170
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -11183,9 +11204,9 @@ const qP=BP.compose({baseName:"tree-item",baseClass:Ao,template:(e,t)=>W`
11183
11204
  </div>
11184
11205
  `)}
11185
11206
  </template>
11186
- `,styles:HP,expandCollapseGlyph:hh.data})
11187
- vi.getOrCreate().withPrefix("nimble").register(qP()),vi.tagFor(BP)
11188
- const ZP=we`
11207
+ `,styles:JP,expandCollapseGlyph:hh.data})
11208
+ vi.getOrCreate().withPrefix("nimble").register(YP()),vi.tagFor(XP)
11209
+ const QP=we`
11189
11210
  ${Eo("flex")}
11190
11211
 
11191
11212
  :host {
@@ -11197,7 +11218,7 @@ const ZP=we`
11197
11218
  :host(${Ro}) {
11198
11219
  outline: none;
11199
11220
  }
11200
- `,jP=W`
11221
+ `,eV=W`
11201
11222
  <template
11202
11223
  role="tree"
11203
11224
  ${Fe("treeView")}
@@ -11211,231 +11232,231 @@ const ZP=we`
11211
11232
  <slot ${Ke("slottedTreeItems")}></slot>
11212
11233
  </template>
11213
11234
  `
11214
- class UP extends Io{constructor(){super(...arguments),this.selectionMode=LP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
11235
+ class tV extends Io{constructor(){super(...arguments),this.selectionMode=UP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
11215
11236
  if(!(e.target instanceof Element&&_o(e.target)))return!0
11216
11237
  const t=e.target
11217
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case LP:return!0
11218
- case VP:return!1
11219
- case PP:return!this.itemHasChildren(e)
11220
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof BP&&(e.groupSelected=!1)
11238
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case UP:return!0
11239
+ case GP:return!1
11240
+ case WP:return!this.itemHasChildren(e)
11241
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof XP&&(e.groupSelected=!1)
11221
11242
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
11222
- e instanceof BP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],UP.prototype,"selectionMode",void 0),e([m],UP.prototype,"selectedItems",void 0)
11223
- const WP=UP.compose({baseName:"tree-view",baseClass:Io,template:jP,styles:ZP})
11224
- vi.getOrCreate().withPrefix("nimble").register(WP()),vi.tagFor(UP)
11225
- var GP={value:()=>{}}
11226
- function KP(){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)
11227
- i[e]=[]}return new JP(i)}function JP(e){this._=e}function XP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function YP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=GP,e=e.slice(0,i).concat(e.slice(i+1))
11228
- break}return null!=n&&e.push({name:t,value:n}),e}JP.prototype=KP.prototype={constructor:JP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
11243
+ e instanceof XP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],tV.prototype,"selectionMode",void 0),e([m],tV.prototype,"selectedItems",void 0)
11244
+ const nV=tV.compose({baseName:"tree-view",baseClass:Io,template:eV,styles:QP})
11245
+ vi.getOrCreate().withPrefix("nimble").register(nV()),vi.tagFor(tV)
11246
+ var iV={value:()=>{}}
11247
+ function oV(){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)
11248
+ i[e]=[]}return new rV(i)}function rV(e){this._=e}function sV(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function aV(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=iV,e=e.slice(0,i).concat(e.slice(i+1))
11249
+ break}return null!=n&&e.push({name:t,value:n}),e}rV.prototype=oV.prototype={constructor:rV,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
11229
11250
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
11230
11251
  return{type:e,name:t}}))),s=-1,a=r.length
11231
11252
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
11232
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=YP(o[n],e.name,t)
11233
- else if(null==t)for(n in o)o[n]=YP(o[n],e.name,null)
11234
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=XP(o[n],e.name)))return n},copy:function(){var e={},t=this._
11253
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=aV(o[n],e.name,t)
11254
+ else if(null==t)for(n in o)o[n]=aV(o[n],e.name,null)
11255
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=sV(o[n],e.name)))return n},copy:function(){var e={},t=this._
11235
11256
  for(var n in t)e[n]=t[n].slice()
11236
- return new JP(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]
11257
+ return new rV(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]
11237
11258
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
11238
11259
  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)
11239
11260
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
11240
- var QP="http://www.w3.org/1999/xhtml",eV={svg:"http://www.w3.org/2000/svg",xhtml:QP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
11241
- function tV(e){var t=e+="",n=t.indexOf(":")
11242
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),eV.hasOwnProperty(t)?{space:eV[t],local:e}:e}function nV(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
11243
- return n===QP&&t.documentElement.namespaceURI===QP?t.createElement(e):t.createElementNS(n,e)}}function iV(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function oV(e){var t=tV(e)
11244
- return(t.local?iV:nV)(t)}function rV(){}function sV(e){return null==e?rV:function(){return this.querySelector(e)}}function aV(){return[]}function lV(e){return null==e?aV:function(){return this.querySelectorAll(e)}}function cV(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
11245
- var t}}function dV(e){return function(){return this.matches(e)}}function hV(e){return function(t){return t.matches(e)}}var uV=Array.prototype.find
11246
- function pV(){return this.firstElementChild}var fV=Array.prototype.filter
11247
- function gV(){return Array.from(this.children)}function mV(e){return new Array(e.length)}function vV(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function bV(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 vV(e,r[a])
11248
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function wV(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
11261
+ var lV="http://www.w3.org/1999/xhtml",cV={svg:"http://www.w3.org/2000/svg",xhtml:lV,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
11262
+ function dV(e){var t=e+="",n=t.indexOf(":")
11263
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),cV.hasOwnProperty(t)?{space:cV[t],local:e}:e}function hV(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
11264
+ return n===lV&&t.documentElement.namespaceURI===lV?t.createElement(e):t.createElementNS(n,e)}}function uV(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pV(e){var t=dV(e)
11265
+ return(t.local?uV:hV)(t)}function fV(){}function gV(e){return null==e?fV:function(){return this.querySelector(e)}}function mV(){return[]}function vV(e){return null==e?mV:function(){return this.querySelectorAll(e)}}function bV(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
11266
+ var t}}function wV(e){return function(){return this.matches(e)}}function yV(e){return function(t){return t.matches(e)}}var xV=Array.prototype.find
11267
+ function kV(){return this.firstElementChild}var CV=Array.prototype.filter
11268
+ function SV(){return Array.from(this.children)}function $V(e){return new Array(e.length)}function MV(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function _V(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 MV(e,r[a])
11269
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function AV(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
11249
11270
  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))
11250
- 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 vV(e,r[a])
11251
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function yV(e){return e.__data__}function xV(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function kV(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function CV(e){return function(){this.removeAttribute(e)}}function SV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $V(e,t){return function(){this.setAttribute(e,t)}}function MV(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function _V(e,t){return function(){var n=t.apply(this,arguments)
11252
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function AV(e,t){return function(){var n=t.apply(this,arguments)
11253
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function IV(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function EV(e){return function(){this.style.removeProperty(e)}}function OV(e,t,n){return function(){this.style.setProperty(e,t,n)}}function TV(e,t,n){return function(){var i=t.apply(this,arguments)
11254
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function RV(e,t){return e.style.getPropertyValue(t)||IV(e).getComputedStyle(e,null).getPropertyValue(t)}function DV(e){return function(){delete this[e]}}function FV(e,t){return function(){this[e]=t}}function NV(e,t){return function(){var n=t.apply(this,arguments)
11255
- null==n?delete this[e]:this[e]=n}}function LV(e){return e.trim().split(/^|\s+/)}function PV(e){return e.classList||new VV(e)}function VV(e){this._node=e,this._names=LV(e.getAttribute("class")||"")}function zV(e,t){for(var n=PV(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function HV(e,t){for(var n=PV(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function BV(e){return function(){zV(this,e)}}function qV(e){return function(){HV(this,e)}}function ZV(e,t){return function(){(t.apply(this,arguments)?zV:HV)(this,e)}}function jV(){this.textContent=""}function UV(e){return function(){this.textContent=e}}function WV(e){return function(){var t=e.apply(this,arguments)
11256
- this.textContent=null==t?"":t}}function GV(){this.innerHTML=""}function KV(e){return function(){this.innerHTML=e}}function JV(e){return function(){var t=e.apply(this,arguments)
11257
- this.innerHTML=null==t?"":t}}function XV(){this.nextSibling&&this.parentNode.appendChild(this)}function YV(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function QV(){return null}function ez(){var e=this.parentNode
11258
- e&&e.removeChild(this)}function tz(){var e=this.cloneNode(!1),t=this.parentNode
11259
- return t?t.insertBefore(e,this.nextSibling):e}function nz(){var e=this.cloneNode(!0),t=this.parentNode
11260
- return t?t.insertBefore(e,this.nextSibling):e}function iz(e){return function(){var t=this.__on
11261
- 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 oz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
11271
+ 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 MV(e,r[a])
11272
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function IV(e){return e.__data__}function EV(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function OV(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function TV(e){return function(){this.removeAttribute(e)}}function RV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function DV(e,t){return function(){this.setAttribute(e,t)}}function FV(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function NV(e,t){return function(){var n=t.apply(this,arguments)
11273
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function LV(e,t){return function(){var n=t.apply(this,arguments)
11274
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function PV(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function VV(e){return function(){this.style.removeProperty(e)}}function zV(e,t,n){return function(){this.style.setProperty(e,t,n)}}function HV(e,t,n){return function(){var i=t.apply(this,arguments)
11275
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function BV(e,t){return e.style.getPropertyValue(t)||PV(e).getComputedStyle(e,null).getPropertyValue(t)}function qV(e){return function(){delete this[e]}}function ZV(e,t){return function(){this[e]=t}}function jV(e,t){return function(){var n=t.apply(this,arguments)
11276
+ null==n?delete this[e]:this[e]=n}}function UV(e){return e.trim().split(/^|\s+/)}function WV(e){return e.classList||new GV(e)}function GV(e){this._node=e,this._names=UV(e.getAttribute("class")||"")}function KV(e,t){for(var n=WV(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function JV(e,t){for(var n=WV(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function XV(e){return function(){KV(this,e)}}function YV(e){return function(){JV(this,e)}}function QV(e,t){return function(){(t.apply(this,arguments)?KV:JV)(this,e)}}function ez(){this.textContent=""}function tz(e){return function(){this.textContent=e}}function nz(e){return function(){var t=e.apply(this,arguments)
11277
+ this.textContent=null==t?"":t}}function iz(){this.innerHTML=""}function oz(e){return function(){this.innerHTML=e}}function rz(e){return function(){var t=e.apply(this,arguments)
11278
+ this.innerHTML=null==t?"":t}}function sz(){this.nextSibling&&this.parentNode.appendChild(this)}function az(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lz(){return null}function cz(){var e=this.parentNode
11279
+ e&&e.removeChild(this)}function dz(){var e=this.cloneNode(!1),t=this.parentNode
11280
+ return t?t.insertBefore(e,this.nextSibling):e}function hz(){var e=this.cloneNode(!0),t=this.parentNode
11281
+ return t?t.insertBefore(e,this.nextSibling):e}function uz(e){return function(){var t=this.__on
11282
+ 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 pz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
11262
11283
  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)
11263
- 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 rz(e,t,n){var i=IV(e),o=i.CustomEvent
11264
- "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 sz(e,t){return function(){return rz(this,e,t)}}function az(e,t){return function(){return rz(this,e,t.apply(this,arguments))}}vV.prototype={constructor:vV,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)}},VV.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)
11284
+ 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 fz(e,t,n){var i=PV(e),o=i.CustomEvent
11285
+ "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 gz(e,t){return function(){return fz(this,e,t)}}function mz(e,t){return function(){return fz(this,e,t.apply(this,arguments))}}MV.prototype={constructor:MV,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)}},GV.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)
11265
11286
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
11266
- var lz=[null]
11267
- function cz(e,t){this._groups=e,this._parents=t}function dz(){return new cz([[document.documentElement]],lz)}function hz(e){return"string"==typeof e?new cz([[document.querySelector(e)]],[document.documentElement]):new cz([[e]],lz)}function uz(e,t){if(e=function(e){let t
11287
+ var vz=[null]
11288
+ function bz(e,t){this._groups=e,this._parents=t}function wz(){return new bz([[document.documentElement]],vz)}function yz(e){return"string"==typeof e?new bz([[document.querySelector(e)]],[document.documentElement]):new bz([[e]],vz)}function xz(e,t){if(e=function(e){let t
11268
11289
  for(;t=e.sourceEvent;)e=t
11269
11290
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
11270
11291
  if(n.createSVGPoint){var i=n.createSVGPoint()
11271
11292
  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()
11272
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}cz.prototype=dz.prototype={constructor:cz,select:function(e){"function"!=typeof e&&(e=sV(e))
11293
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}bz.prototype=wz.prototype={constructor:bz,select:function(e){"function"!=typeof e&&(e=gV(e))
11273
11294
  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)
11274
- return new cz(i,this._parents)},selectAll:function(e){e="function"==typeof e?cV(e):lV(e)
11295
+ return new bz(i,this._parents)},selectAll:function(e){e="function"==typeof e?bV(e):vV(e)
11275
11296
  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))
11276
- return new cz(i,o)},selectChild:function(e){return this.select(null==e?pV:function(e){return function(){return uV.call(this.children,e)}}("function"==typeof e?e:hV(e)))},selectChildren:function(e){return this.selectAll(null==e?gV:function(e){return function(){return fV.call(this.children,e)}}("function"==typeof e?e:hV(e)))},filter:function(e){"function"!=typeof e&&(e=dV(e))
11297
+ return new bz(i,o)},selectChild:function(e){return this.select(null==e?kV:function(e){return function(){return xV.call(this.children,e)}}("function"==typeof e?e:yV(e)))},selectChildren:function(e){return this.selectAll(null==e?SV:function(e){return function(){return CV.call(this.children,e)}}("function"==typeof e?e:yV(e)))},filter:function(e){"function"!=typeof e&&(e=wV(e))
11277
11298
  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)
11278
- return new cz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,yV)
11279
- var n,i=t?wV:bV,o=this._parents,r=this._groups
11299
+ return new bz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,IV)
11300
+ var n,i=t?AV:_V,o=this._parents,r=this._groups
11280
11301
  "function"!=typeof e&&(n=e,e=function(){return n})
11281
- 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=xV(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
11302
+ 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=EV(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
11282
11303
  i(h,u,m,v,c[d]=new Array(p),f,t)
11283
- 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 cz(a,o))._enter=l,a._exit=c,a},enter:function(){return new cz(this._enter||this._groups.map(mV),this._parents)},exit:function(){return new cz(this._exit||this._groups.map(mV),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
11304
+ 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 bz(a,o))._enter=l,a._exit=c,a},enter:function(){return new bz(this._enter||this._groups.map($V),this._parents)},exit:function(){return new bz(this._exit||this._groups.map($V),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
11284
11305
  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)
11285
11306
  for(;l<o;++l)a[l]=n[l]
11286
- return new cz(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)
11287
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=kV)
11307
+ return new bz(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)
11308
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=OV)
11288
11309
  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)
11289
- c.sort(t)}return new cz(o,this._parents).order()},call:function(){var e=arguments[0]
11310
+ c.sort(t)}return new bz(o,this._parents).order()},call:function(){var e=arguments[0]
11290
11311
  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]
11291
11312
  if(s)return s}return null},size:function(){let e=0
11292
11313
  for(const t of this)++e
11293
11314
  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)
11294
- return this},attr:function(e,t){var n=tV(e)
11315
+ return this},attr:function(e,t){var n=dV(e)
11295
11316
  if(arguments.length<2){var i=this.node()
11296
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?SV:CV:"function"==typeof t?n.local?AV:_V:n.local?MV:$V)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?EV:"function"==typeof t?TV:OV)(e,t,null==n?"":n)):RV(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?DV:"function"==typeof t?NV:FV)(e,t)):this.node()[e]},classed:function(e,t){var n=LV(e+"")
11297
- if(arguments.length<2){for(var i=PV(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
11298
- return!0}return this.each(("function"==typeof t?ZV:t?BV:qV)(n,t))},text:function(e){return arguments.length?this.each(null==e?jV:("function"==typeof e?WV:UV)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?GV:("function"==typeof e?JV:KV)(e)):this.node().innerHTML},raise:function(){return this.each(XV)},lower:function(){return this.each(YV)},append:function(e){var t="function"==typeof e?e:oV(e)
11299
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:oV(e),i=null==t?QV:"function"==typeof t?t:sV(t)
11300
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(ez)},clone:function(e){return this.select(e?nz:tz)},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(".")
11317
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?RV:TV:"function"==typeof t?n.local?LV:NV:n.local?FV:DV)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?VV:"function"==typeof t?HV:zV)(e,t,null==n?"":n)):BV(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?qV:"function"==typeof t?jV:ZV)(e,t)):this.node()[e]},classed:function(e,t){var n=UV(e+"")
11318
+ if(arguments.length<2){for(var i=WV(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
11319
+ return!0}return this.each(("function"==typeof t?QV:t?XV:YV)(n,t))},text:function(e){return arguments.length?this.each(null==e?ez:("function"==typeof e?nz:tz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?iz:("function"==typeof e?rz:oz)(e)):this.node().innerHTML},raise:function(){return this.each(sz)},lower:function(){return this.each(az)},append:function(e){var t="function"==typeof e?e:pV(e)
11320
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:pV(e),i=null==t?lz:"function"==typeof t?t:gV(t)
11321
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(cz)},clone:function(e){return this.select(e?hz:dz)},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(".")
11301
11322
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
11302
- if(!(arguments.length<2)){for(a=t?oz:iz,i=0;i<s;++i)this.each(a(r[i],t,n))
11323
+ if(!(arguments.length<2)){for(a=t?pz:uz,i=0;i<s;++i)this.each(a(r[i],t,n))
11303
11324
  return this}var a=this.node().__on
11304
- 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?az:sz)(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)}}
11305
- const pz={capture:!0,passive:!1}
11306
- function fz(e){e.preventDefault(),e.stopImmediatePropagation()}function gz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mz(e,t){var n=Object.create(e.prototype)
11325
+ 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?mz:gz)(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)}}
11326
+ const kz={capture:!0,passive:!1}
11327
+ function Cz(e){e.preventDefault(),e.stopImmediatePropagation()}function Sz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $z(e,t){var n=Object.create(e.prototype)
11307
11328
  for(var i in t)n[i]=t[i]
11308
- return n}function vz(){}var bz=.7,wz=1/bz,yz="\\s*([+-]?\\d+)\\s*",xz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cz=/^#([0-9a-f]{3,8})$/,Sz=new RegExp(`^rgb\\(${yz},${yz},${yz}\\)$`),$z=new RegExp(`^rgb\\(${kz},${kz},${kz}\\)$`),Mz=new RegExp(`^rgba\\(${yz},${yz},${yz},${xz}\\)$`),_z=new RegExp(`^rgba\\(${kz},${kz},${kz},${xz}\\)$`),Az=new RegExp(`^hsl\\(${xz},${kz},${kz}\\)$`),Iz=new RegExp(`^hsla\\(${xz},${kz},${kz},${xz}\\)$`),Ez={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}
11309
- function Oz(){return this.rgb().formatHex()}function Tz(){return this.rgb().formatRgb()}function Rz(e){var t,n
11310
- return e=(e+"").trim().toLowerCase(),(t=Cz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Dz(t):3===n?new Lz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Fz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Fz(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=Sz.exec(e))?new Lz(t[1],t[2],t[3],1):(t=$z.exec(e))?new Lz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Mz.exec(e))?Fz(t[1],t[2],t[3],t[4]):(t=_z.exec(e))?Fz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Az.exec(e))?qz(t[1],t[2]/100,t[3]/100,1):(t=Iz.exec(e))?qz(t[1],t[2]/100,t[3]/100,t[4]):Ez.hasOwnProperty(e)?Dz(Ez[e]):"transparent"===e?new Lz(NaN,NaN,NaN,0):null}function Dz(e){return new Lz(e>>16&255,e>>8&255,255&e,1)}function Fz(e,t,n,i){return i<=0&&(e=t=n=NaN),new Lz(e,t,n,i)}function Nz(e,t,n,i){return 1===arguments.length?((o=e)instanceof vz||(o=Rz(o)),o?new Lz((o=o.rgb()).r,o.g,o.b,o.opacity):new Lz):new Lz(e,t,n,null==i?1:i)
11311
- var o}function Lz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Pz(){return`#${Bz(this.r)}${Bz(this.g)}${Bz(this.b)}`}function Vz(){const e=zz(this.opacity)
11312
- return`${1===e?"rgb(":"rgba("}${Hz(this.r)}, ${Hz(this.g)}, ${Hz(this.b)}${1===e?")":`, ${e})`}`}function zz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bz(e){return((e=Hz(e))<16?"0":"")+e.toString(16)}function qz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jz(e,t,n,i)}function Zz(e){if(e instanceof jz)return new jz(e.h,e.s,e.l,e.opacity)
11313
- if(e instanceof vz||(e=Rz(e)),!e)return new jz
11314
- if(e instanceof jz)return e
11329
+ return n}function Mz(){}var _z=.7,Az=1/_z,Iz="\\s*([+-]?\\d+)\\s*",Ez="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tz=/^#([0-9a-f]{3,8})$/,Rz=new RegExp(`^rgb\\(${Iz},${Iz},${Iz}\\)$`),Dz=new RegExp(`^rgb\\(${Oz},${Oz},${Oz}\\)$`),Fz=new RegExp(`^rgba\\(${Iz},${Iz},${Iz},${Ez}\\)$`),Nz=new RegExp(`^rgba\\(${Oz},${Oz},${Oz},${Ez}\\)$`),Lz=new RegExp(`^hsl\\(${Ez},${Oz},${Oz}\\)$`),Pz=new RegExp(`^hsla\\(${Ez},${Oz},${Oz},${Ez}\\)$`),Vz={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}
11330
+ function zz(){return this.rgb().formatHex()}function Hz(){return this.rgb().formatRgb()}function Bz(e){var t,n
11331
+ return e=(e+"").trim().toLowerCase(),(t=Tz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qz(t):3===n?new Uz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Zz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Zz(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=Rz.exec(e))?new Uz(t[1],t[2],t[3],1):(t=Dz.exec(e))?new Uz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fz.exec(e))?Zz(t[1],t[2],t[3],t[4]):(t=Nz.exec(e))?Zz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Lz.exec(e))?Yz(t[1],t[2]/100,t[3]/100,1):(t=Pz.exec(e))?Yz(t[1],t[2]/100,t[3]/100,t[4]):Vz.hasOwnProperty(e)?qz(Vz[e]):"transparent"===e?new Uz(NaN,NaN,NaN,0):null}function qz(e){return new Uz(e>>16&255,e>>8&255,255&e,1)}function Zz(e,t,n,i){return i<=0&&(e=t=n=NaN),new Uz(e,t,n,i)}function jz(e,t,n,i){return 1===arguments.length?((o=e)instanceof Mz||(o=Bz(o)),o?new Uz((o=o.rgb()).r,o.g,o.b,o.opacity):new Uz):new Uz(e,t,n,null==i?1:i)
11332
+ var o}function Uz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Wz(){return`#${Xz(this.r)}${Xz(this.g)}${Xz(this.b)}`}function Gz(){const e=Kz(this.opacity)
11333
+ return`${1===e?"rgb(":"rgba("}${Jz(this.r)}, ${Jz(this.g)}, ${Jz(this.b)}${1===e?")":`, ${e})`}`}function Kz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xz(e){return((e=Jz(e))<16?"0":"")+e.toString(16)}function Yz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new eH(e,t,n,i)}function Qz(e){if(e instanceof eH)return new eH(e.h,e.s,e.l,e.opacity)
11334
+ if(e instanceof Mz||(e=Bz(e)),!e)return new eH
11335
+ if(e instanceof eH)return e
11315
11336
  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
11316
- return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new jz(s,a,l,e.opacity)}function jz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Uz(e){return(e=(e||0)%360)<0?e+360:e}function Wz(e){return Math.max(0,Math.min(1,e||0))}function Gz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}gz(vz,Rz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Oz,formatHex:Oz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Zz(this).formatHsl()},formatRgb:Tz,toString:Tz}),gz(Lz,Nz,mz(vz,{brighter(e){return e=null==e?wz:Math.pow(wz,e),new Lz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bz:Math.pow(bz,e),new Lz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Lz(Hz(this.r),Hz(this.g),Hz(this.b),zz(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:Pz,formatHex:Pz,formatHex8:function(){return`#${Bz(this.r)}${Bz(this.g)}${Bz(this.b)}${Bz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Vz,toString:Vz})),gz(jz,(function(e,t,n,i){return 1===arguments.length?Zz(e):new jz(e,t,n,null==i?1:i)}),mz(vz,{brighter(e){return e=null==e?wz:Math.pow(wz,e),new jz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bz:Math.pow(bz,e),new jz(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
11317
- return new Lz(Gz(e>=240?e-240:e+120,o,i),Gz(e,o,i),Gz(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new jz(Uz(this.h),Wz(this.s),Wz(this.l),zz(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=zz(this.opacity)
11318
- return`${1===e?"hsl(":"hsla("}${Uz(this.h)}, ${100*Wz(this.s)}%, ${100*Wz(this.l)}%${1===e?")":`, ${e})`}`}}))
11319
- var Kz=e=>()=>e
11320
- function Jz(e){return 1==(e=+e)?Xz: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):Kz(isNaN(t)?n:t)}}function Xz(e,t){var n=t-e
11321
- return n?function(e,t){return function(n){return e+n*t}}(e,n):Kz(isNaN(e)?t:e)}var Yz=function e(t){var n=Jz(t)
11322
- function i(e,t){var i=n((e=Nz(e)).r,(t=Nz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=Xz(e.opacity,t.opacity)
11337
+ 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 eH(s,a,l,e.opacity)}function eH(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function tH(e){return(e=(e||0)%360)<0?e+360:e}function nH(e){return Math.max(0,Math.min(1,e||0))}function iH(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Sz(Mz,Bz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zz,formatHex:zz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Qz(this).formatHsl()},formatRgb:Hz,toString:Hz}),Sz(Uz,jz,$z(Mz,{brighter(e){return e=null==e?Az:Math.pow(Az,e),new Uz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_z:Math.pow(_z,e),new Uz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Uz(Jz(this.r),Jz(this.g),Jz(this.b),Kz(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:Wz,formatHex:Wz,formatHex8:function(){return`#${Xz(this.r)}${Xz(this.g)}${Xz(this.b)}${Xz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Gz,toString:Gz})),Sz(eH,(function(e,t,n,i){return 1===arguments.length?Qz(e):new eH(e,t,n,null==i?1:i)}),$z(Mz,{brighter(e){return e=null==e?Az:Math.pow(Az,e),new eH(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_z:Math.pow(_z,e),new eH(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
11338
+ return new Uz(iH(e>=240?e-240:e+120,o,i),iH(e,o,i),iH(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new eH(tH(this.h),nH(this.s),nH(this.l),Kz(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=Kz(this.opacity)
11339
+ return`${1===e?"hsl(":"hsla("}${tH(this.h)}, ${100*nH(this.s)}%, ${100*nH(this.l)}%${1===e?")":`, ${e})`}`}}))
11340
+ var oH=e=>()=>e
11341
+ function rH(e){return 1==(e=+e)?sH: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):oH(isNaN(t)?n:t)}}function sH(e,t){var n=t-e
11342
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):oH(isNaN(e)?t:e)}var aH=function e(t){var n=rH(t)
11343
+ function i(e,t){var i=n((e=jz(e)).r,(t=jz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=sH(e.opacity,t.opacity)
11323
11344
  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)
11324
- function Qz(e,t){t||(t=[])
11345
+ function lH(e,t){t||(t=[])
11325
11346
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
11326
11347
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
11327
- return o}}function eH(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)
11328
- for(n=0;n<o;++n)r[n]=aH(e[n],t[n])
11348
+ return o}}function cH(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)
11349
+ for(n=0;n<o;++n)r[n]=mH(e[n],t[n])
11329
11350
  for(;n<i;++n)s[n]=t[n]
11330
11351
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
11331
- return s}}function tH(e,t){var n=new Date
11332
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function nH(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iH(e,t){var n,i={},o={}
11333
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=aH(e[n],t[n]):o[n]=t[n]
11352
+ return s}}function dH(e,t){var n=new Date
11353
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function hH(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function uH(e,t){var n,i={},o={}
11354
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=mH(e[n],t[n]):o[n]=t[n]
11334
11355
  return function(e){for(n in i)o[n]=i[n](e)
11335
- return o}}var oH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rH=new RegExp(oH.source,"g")
11336
- function sH(e,t){var n,i,o,r=oH.lastIndex=rH.lastIndex=0,s=-1,a=[],l=[]
11337
- for(e+="",t+="";(n=oH.exec(e))&&(i=rH.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:nH(n,i)})),r=rH.lastIndex
11356
+ return o}}var pH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fH=new RegExp(pH.source,"g")
11357
+ function gH(e,t){var n,i,o,r=pH.lastIndex=fH.lastIndex=0,s=-1,a=[],l=[]
11358
+ for(e+="",t+="";(n=pH.exec(e))&&(i=fH.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:hH(n,i)})),r=fH.lastIndex
11338
11359
  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)
11339
- return a.join("")})}function aH(e,t){var n,i,o=typeof t
11340
- return null==t||"boolean"===o?Kz(t):("number"===o?nH:"string"===o?(n=Rz(t))?(t=n,Yz):sH:t instanceof Rz?Yz:t instanceof Date?tH:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?eH:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?iH:nH:Qz))(e,t)}function lH(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var cH,dH=180/Math.PI,hH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
11341
- function uH(e,t,n,i,o,r){var s,a,l
11342
- 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)*dH,skewX:Math.atan(l)*dH,scaleX:s,scaleY:a}}function pH(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
11360
+ return a.join("")})}function mH(e,t){var n,i,o=typeof t
11361
+ return null==t||"boolean"===o?oH(t):("number"===o?hH:"string"===o?(n=Bz(t))?(t=n,aH):gH:t instanceof Bz?aH:t instanceof Date?dH:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?cH:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?uH:hH:lH))(e,t)}function vH(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var bH,wH=180/Math.PI,yH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
11362
+ function xH(e,t,n,i,o,r){var s,a,l
11363
+ 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)*wH,skewX:Math.atan(l)*wH,scaleX:s,scaleY:a}}function kH(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
11343
11364
  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)
11344
- a.push({i:l-4,x:nH(e,o)},{i:l-2,x:nH(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:nH(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:nH(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,")")
11345
- s.push({i:a-4,x:nH(e,n)},{i:a-2,x:nH(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)
11346
- return a.join("")}}}var fH=pH((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
11347
- return t.isIdentity?hH:uH(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),gH=pH((function(e){return null==e?hH:(cH||(cH=document.createElementNS("http://www.w3.org/2000/svg","g")),cH.setAttribute("transform",e),(e=cH.transform.baseVal.consolidate())?uH((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):hH)}),", ",")",")")
11348
- function mH(e){return((e=Math.exp(e))+1/e)/2}var vH,bH,wH=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
11365
+ a.push({i:l-4,x:hH(e,o)},{i:l-2,x:hH(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:hH(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:hH(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,")")
11366
+ s.push({i:a-4,x:hH(e,n)},{i:a-2,x:hH(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)
11367
+ return a.join("")}}}var CH=kH((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
11368
+ return t.isIdentity?yH:xH(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),SH=kH((function(e){return null==e?yH:(bH||(bH=document.createElementNS("http://www.w3.org/2000/svg","g")),bH.setAttribute("transform",e),(e=bH.transform.baseVal.consolidate())?xH((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):yH)}),", ",")",")")
11369
+ function $H(e){return((e=Math.exp(e))+1/e)/2}var MH,_H,AH=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
11349
11370
  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)]}
11350
11371
  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)
11351
- s=(y-w)/t,r=function(e){var i,o=e*s,r=mH(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))
11352
- return[a+d*p,l+d*f,c*r/mH(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
11353
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),yH=0,xH=0,kH=0,CH=1e3,SH=0,$H=0,MH=0,_H="object"==typeof performance&&performance.now?performance:Date,AH="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
11354
- function IH(){return $H||(AH(EH),$H=_H.now()+MH)}function EH(){$H=0}function OH(){this._call=this._time=this._next=null}function TH(e,t,n){var i=new OH
11355
- return i.restart(e,t,n),i}function RH(){$H=(SH=_H.now())+MH,yH=xH=0
11356
- try{!function(){IH(),++yH
11357
- for(var e,t=vH;t;)(e=$H-t._time)>=0&&t._call.call(void 0,e),t=t._next;--yH}()}finally{yH=0,function(){var e,t,n=vH,i=1/0
11358
- 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:vH=t)
11359
- bH=e,FH(i)}(),$H=0}}function DH(){var e=_H.now(),t=e-SH
11360
- t>CH&&(MH-=t,SH=e)}function FH(e){yH||(xH&&(xH=clearTimeout(xH)),e-$H>24?(e<1/0&&(xH=setTimeout(RH,e-_H.now()-MH)),kH&&(kH=clearInterval(kH))):(kH||(SH=_H.now(),kH=setInterval(DH,CH)),yH=1,AH(RH)))}function NH(e,t,n){var i=new OH
11361
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}OH.prototype=TH.prototype={constructor:OH,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
11362
- n=(null==n?IH():+n)+(null==t?0:+t),this._next||bH===this||(bH?bH._next=this:vH=this,bH=this),this._call=e,this._time=n,FH()},stop:function(){this._call&&(this._call=null,this._time=1/0,FH())}}
11363
- var LH=KP("start","end","cancel","interrupt"),PH=[],VH=0,zH=1,HH=2,BH=3,qH=4,ZH=5,jH=6
11364
- function UH(e,t,n,i,o,r){var s=e.__transition
11372
+ s=(y-w)/t,r=function(e){var i,o=e*s,r=$H(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))
11373
+ return[a+d*p,l+d*f,c*r/$H(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
11374
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),IH=0,EH=0,OH=0,TH=1e3,RH=0,DH=0,FH=0,NH="object"==typeof performance&&performance.now?performance:Date,LH="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
11375
+ function PH(){return DH||(LH(VH),DH=NH.now()+FH)}function VH(){DH=0}function zH(){this._call=this._time=this._next=null}function HH(e,t,n){var i=new zH
11376
+ return i.restart(e,t,n),i}function BH(){DH=(RH=NH.now())+FH,IH=EH=0
11377
+ try{!function(){PH(),++IH
11378
+ for(var e,t=MH;t;)(e=DH-t._time)>=0&&t._call.call(void 0,e),t=t._next;--IH}()}finally{IH=0,function(){var e,t,n=MH,i=1/0
11379
+ 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:MH=t)
11380
+ _H=e,ZH(i)}(),DH=0}}function qH(){var e=NH.now(),t=e-RH
11381
+ t>TH&&(FH-=t,RH=e)}function ZH(e){IH||(EH&&(EH=clearTimeout(EH)),e-DH>24?(e<1/0&&(EH=setTimeout(BH,e-NH.now()-FH)),OH&&(OH=clearInterval(OH))):(OH||(RH=NH.now(),OH=setInterval(qH,TH)),IH=1,LH(BH)))}function jH(e,t,n){var i=new zH
11382
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}zH.prototype=HH.prototype={constructor:zH,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
11383
+ n=(null==n?PH():+n)+(null==t?0:+t),this._next||_H===this||(_H?_H._next=this:MH=this,_H=this),this._call=e,this._time=n,ZH()},stop:function(){this._call&&(this._call=null,this._time=1/0,ZH())}}
11384
+ var UH=oV("start","end","cancel","interrupt"),WH=[],GH=0,KH=1,JH=2,XH=3,YH=4,QH=5,eB=6
11385
+ function tB(e,t,n,i,o,r){var s=e.__transition
11365
11386
  if(s){if(n in s)return}else e.__transition={}
11366
11387
  !function(e,t,n){var i,o=e.__transition
11367
- function r(e){n.state=zH,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
11368
- if(n.state!==zH)return l()
11369
- for(c in o)if((u=o[c]).name===n.name){if(u.state===BH)return NH(s)
11370
- u.state===qH?(u.state=jH,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=jH,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(NH((function(){n.state===BH&&(n.state=qH,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=HH,n.on.call("start",e,e.__data__,n.index,n.group),n.state===HH){for(n.state=BH,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)
11371
- 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=ZH,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
11372
- n.state===ZH&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=jH,n.timer.stop(),delete o[t],o)return
11373
- delete e.__transition}o[t]=n,n.timer=TH(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:LH,tween:PH,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:VH})}function WH(e,t){var n=KH(e,t)
11374
- if(n.state>VH)throw new Error("too late; already scheduled")
11375
- return n}function GH(e,t){var n=KH(e,t)
11376
- if(n.state>BH)throw new Error("too late; already running")
11377
- return n}function KH(e,t){var n=e.__transition
11388
+ function r(e){n.state=KH,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
11389
+ if(n.state!==KH)return l()
11390
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===XH)return jH(s)
11391
+ u.state===YH?(u.state=eB,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=eB,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(jH((function(){n.state===XH&&(n.state=YH,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=JH,n.on.call("start",e,e.__data__,n.index,n.group),n.state===JH){for(n.state=XH,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)
11392
+ 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=QH,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
11393
+ n.state===QH&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=eB,n.timer.stop(),delete o[t],o)return
11394
+ delete e.__transition}o[t]=n,n.timer=HH(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:UH,tween:WH,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:GH})}function nB(e,t){var n=oB(e,t)
11395
+ if(n.state>GH)throw new Error("too late; already scheduled")
11396
+ return n}function iB(e,t){var n=oB(e,t)
11397
+ if(n.state>XH)throw new Error("too late; already running")
11398
+ return n}function oB(e,t){var n=e.__transition
11378
11399
  if(!n||!(n=n[t]))throw new Error("transition not found")
11379
- return n}function JH(e,t){var n,i,o,r=e.__transition,s=!0
11380
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>HH&&n.state<ZH,n.state=jH,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
11381
- s&&delete e.__transition}}function XH(e,t){var n,i
11382
- return function(){var o=GH(this,e),r=o.tween
11400
+ return n}function rB(e,t){var n,i,o,r=e.__transition,s=!0
11401
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>JH&&n.state<QH,n.state=eB,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
11402
+ s&&delete e.__transition}}function sB(e,t){var n,i
11403
+ return function(){var o=iB(this,e),r=o.tween
11383
11404
  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)
11384
- break}o.tween=i}}function YH(e,t,n){var i,o
11405
+ break}o.tween=i}}function aB(e,t,n){var i,o
11385
11406
  if("function"!=typeof n)throw new Error
11386
- return function(){var r=GH(this,e),s=r.tween
11407
+ return function(){var r=iB(this,e),s=r.tween
11387
11408
  if(s!==i){o=(i=s).slice()
11388
11409
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
11389
- break}l===c&&o.push(a)}r.tween=o}}function QH(e,t,n){var i=e._id
11390
- return e.each((function(){var e=GH(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return KH(e,i).value[t]}}function eB(e,t){var n
11391
- return("number"==typeof t?nH:t instanceof Rz?Yz:(n=Rz(t))?(t=n,Yz):sH)(e,t)}function tB(e){return function(){this.removeAttribute(e)}}function nB(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iB(e,t,n){var i,o,r=n+""
11410
+ break}l===c&&o.push(a)}r.tween=o}}function lB(e,t,n){var i=e._id
11411
+ return e.each((function(){var e=iB(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return oB(e,i).value[t]}}function cB(e,t){var n
11412
+ return("number"==typeof t?hH:t instanceof Bz?aH:(n=Bz(t))?(t=n,aH):gH)(e,t)}function dB(e){return function(){this.removeAttribute(e)}}function hB(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uB(e,t,n){var i,o,r=n+""
11392
11413
  return function(){var s=this.getAttribute(e)
11393
- return s===r?null:s===i?o:o=t(i=s,n)}}function oB(e,t,n){var i,o,r=n+""
11414
+ return s===r?null:s===i?o:o=t(i=s,n)}}function pB(e,t,n){var i,o,r=n+""
11394
11415
  return function(){var s=this.getAttributeNS(e.space,e.local)
11395
- return s===r?null:s===i?o:o=t(i=s,n)}}function rB(e,t,n){var i,o,r
11416
+ return s===r?null:s===i?o:o=t(i=s,n)}}function fB(e,t,n){var i,o,r
11396
11417
  return function(){var s,a,l=n(this)
11397
11418
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
11398
- this.removeAttribute(e)}}function sB(e,t,n){var i,o,r
11419
+ this.removeAttribute(e)}}function gB(e,t,n){var i,o,r
11399
11420
  return function(){var s,a,l=n(this)
11400
11421
  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))
11401
- this.removeAttributeNS(e.space,e.local)}}function aB(e,t){var n,i
11422
+ this.removeAttributeNS(e.space,e.local)}}function mB(e,t){var n,i
11402
11423
  function o(){var o=t.apply(this,arguments)
11403
- 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 lB(e,t){var n,i
11424
+ 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 vB(e,t){var n,i
11404
11425
  function o(){var o=t.apply(this,arguments)
11405
- 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 cB(e,t){return function(){WH(this,e).delay=+t.apply(this,arguments)}}function dB(e,t){return t=+t,function(){WH(this,e).delay=t}}function hB(e,t){return function(){GH(this,e).duration=+t.apply(this,arguments)}}function uB(e,t){return t=+t,function(){GH(this,e).duration=t}}var pB=dz.prototype.constructor
11406
- function fB(e){return function(){this.style.removeProperty(e)}}var gB=0
11407
- function mB(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function vB(){return++gB}var bB=dz.prototype
11408
- mB.prototype={constructor:mB,select:function(e){var t=this._name,n=this._id
11409
- "function"!=typeof e&&(e=sV(e))
11410
- 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,UH(h[u],t,n,u,h,KH(a,n)))
11411
- return new mB(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
11412
- "function"!=typeof e&&(e=lV(e))
11413
- 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=KH(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&UH(u,t,n,g,p,f)
11414
- r.push(p),s.push(l)}return new mB(r,s,t,n)},selectChild:bB.selectChild,selectChildren:bB.selectChildren,filter:function(e){"function"!=typeof e&&(e=dV(e))
11426
+ 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 bB(e,t){return function(){nB(this,e).delay=+t.apply(this,arguments)}}function wB(e,t){return t=+t,function(){nB(this,e).delay=t}}function yB(e,t){return function(){iB(this,e).duration=+t.apply(this,arguments)}}function xB(e,t){return t=+t,function(){iB(this,e).duration=t}}var kB=wz.prototype.constructor
11427
+ function CB(e){return function(){this.style.removeProperty(e)}}var SB=0
11428
+ function $B(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function MB(){return++SB}var _B=wz.prototype
11429
+ $B.prototype={constructor:$B,select:function(e){var t=this._name,n=this._id
11430
+ "function"!=typeof e&&(e=gV(e))
11431
+ 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,tB(h[u],t,n,u,h,oB(a,n)))
11432
+ return new $B(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
11433
+ "function"!=typeof e&&(e=vV(e))
11434
+ 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=oB(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&tB(u,t,n,g,p,f)
11435
+ r.push(p),s.push(l)}return new $B(r,s,t,n)},selectChild:_B.selectChild,selectChildren:_B.selectChildren,filter:function(e){"function"!=typeof e&&(e=wV(e))
11415
11436
  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)
11416
- return new mB(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
11437
+ return new $B(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
11417
11438
  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)
11418
11439
  for(;a<i;++a)s[a]=t[a]
11419
- return new mB(s,this._parents,this._name,this._id)},selection:function(){return new pB(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=vB(),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=KH(s,t)
11420
- UH(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new mB(i,this._parents,e,n)},call:bB.call,nodes:bB.nodes,node:bB.node,size:bB.size,empty:bB.empty,each:bB.each,on:function(e,t){var n=this._id
11421
- return arguments.length<2?KH(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(".")
11422
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?WH:GH
11440
+ return new $B(s,this._parents,this._name,this._id)},selection:function(){return new kB(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=MB(),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=oB(s,t)
11441
+ tB(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new $B(i,this._parents,e,n)},call:_B.call,nodes:_B.nodes,node:_B.node,size:_B.size,empty:_B.empty,each:_B.each,on:function(e,t){var n=this._id
11442
+ return arguments.length<2?oB(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(".")
11443
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?nB:iB
11423
11444
  return function(){var s=r(this,e),a=s.on
11424
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=tV(e),i="transform"===n?gH:eB
11425
- return this.attrTween(e,"function"==typeof t?(n.local?sB:rB)(n,i,QH(this,"attr."+e,t)):null==t?(n.local?nB:tB)(n):(n.local?oB:iB)(n,i,t))},attrTween:function(e,t){var n="attr."+e
11445
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=dV(e),i="transform"===n?SH:cB
11446
+ return this.attrTween(e,"function"==typeof t?(n.local?gB:fB)(n,i,lB(this,"attr."+e,t)):null==t?(n.local?hB:dB)(n):(n.local?pB:uB)(n,i,t))},attrTween:function(e,t){var n="attr."+e
11426
11447
  if(arguments.length<2)return(n=this.tween(n))&&n._value
11427
11448
  if(null==t)return this.tween(n,null)
11428
11449
  if("function"!=typeof t)throw new Error
11429
- var i=tV(e)
11430
- return this.tween(n,(i.local?aB:lB)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?fH:eB
11450
+ var i=dV(e)
11451
+ return this.tween(n,(i.local?mB:vB)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?CH:cB
11431
11452
  return null==t?this.styleTween(e,function(e,t){var n,i,o
11432
- return function(){var r=RV(this,e),s=(this.style.removeProperty(e),RV(this,e))
11433
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,fB(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
11434
- return function(){var s=RV(this,e),a=n(this),l=a+""
11435
- return null==a&&(this.style.removeProperty(e),l=a=RV(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,QH(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
11436
- return function(){var l=GH(this,e),c=l.on,d=null==l.value[s]?r||(r=fB(t)):void 0
11453
+ return function(){var r=BV(this,e),s=(this.style.removeProperty(e),BV(this,e))
11454
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,CB(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
11455
+ return function(){var s=BV(this,e),a=n(this),l=a+""
11456
+ return null==a&&(this.style.removeProperty(e),l=a=BV(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,lB(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
11457
+ return function(){var l=iB(this,e),c=l.on,d=null==l.value[s]?r||(r=CB(t)):void 0
11437
11458
  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+""
11438
- return function(){var s=RV(this,e)
11459
+ return function(){var s=BV(this,e)
11439
11460
  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+="")
11440
11461
  if(arguments.length<2)return(i=this.tween(i))&&i._value
11441
11462
  if(null==t)return this.tween(i,null)
@@ -11443,7 +11464,7 @@ if("function"!=typeof t)throw new Error
11443
11464
  return this.tween(i,function(e,t,n){var i,o
11444
11465
  function r(){var r=t.apply(this,arguments)
11445
11466
  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)
11446
- this.textContent=null==t?"":t}}(QH(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
11467
+ this.textContent=null==t?"":t}}(lB(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
11447
11468
  if(arguments.length<1)return(t=this.tween(t))&&t._value
11448
11469
  if(null==e)return this.tween(t,null)
11449
11470
  if("function"!=typeof e)throw new Error
@@ -11452,60 +11473,60 @@ function i(){var i=e.apply(this,arguments)
11452
11473
  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
11453
11474
  for(var n in this.__transition)if(+n!==e)return
11454
11475
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
11455
- if(e+="",arguments.length<2){for(var i,o=KH(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
11456
- return null}return this.each((null==t?XH:YH)(n,e,t))},delay:function(e){var t=this._id
11457
- return arguments.length?this.each(("function"==typeof e?cB:dB)(t,e)):KH(this.node(),t).delay},duration:function(e){var t=this._id
11458
- return arguments.length?this.each(("function"==typeof e?hB:uB)(t,e)):KH(this.node(),t).duration},ease:function(e){var t=this._id
11476
+ if(e+="",arguments.length<2){for(var i,o=oB(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
11477
+ return null}return this.each((null==t?sB:aB)(n,e,t))},delay:function(e){var t=this._id
11478
+ return arguments.length?this.each(("function"==typeof e?bB:wB)(t,e)):oB(this.node(),t).delay},duration:function(e){var t=this._id
11479
+ return arguments.length?this.each(("function"==typeof e?yB:xB)(t,e)):oB(this.node(),t).duration},ease:function(e){var t=this._id
11459
11480
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
11460
- return function(){GH(this,e).ease=t}}(t,e)):KH(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
11481
+ return function(){iB(this,e).ease=t}}(t,e)):oB(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
11461
11482
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
11462
11483
  if("function"!=typeof n)throw new Error
11463
- GH(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
11484
+ iB(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
11464
11485
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
11465
- n.each((function(){var n=GH(this,i),o=n.on
11466
- 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]:bB[Symbol.iterator]}
11467
- var wB={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
11468
- function yB(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
11469
- return n}dz.prototype.interrupt=function(e){return this.each((function(){JH(this,e)}))},dz.prototype.transition=function(e){var t,n
11470
- e instanceof mB?(t=e._id,e=e._name):(t=vB(),(n=wB).time=IH(),e=null==e?null:e+"")
11471
- 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])&&UH(s,e,t,c,a,n||yB(s,t))
11472
- return new mB(i,this._parents,e,t)}
11473
- var xB=e=>()=>e
11474
- function kB(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 CB(e,t,n){this.k=e,this.x=t,this.y=n}CB.prototype={constructor:CB,scale:function(e){return 1===e?this:new CB(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new CB(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+")"}}
11475
- var SB=new CB(1,0,0)
11476
- function $B(e){for(;!e.__zoom;)if(!(e=e.parentNode))return SB
11477
- return e.__zoom}function MB(e){e.stopImmediatePropagation()}function _B(e){e.preventDefault(),e.stopImmediatePropagation()}function AB(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function IB(){var e=this
11478
- 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 EB(){return this.__zoom||SB}function OB(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function TB(){return navigator.maxTouchPoints||"ontouchstart"in this}function RB(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]
11479
- 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 DB(){var e,t,n,i=AB,o=IB,r=RB,s=OB,a=TB,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=wH,u=KP("start","zoom","end"),p=500,f=150,g=0,m=10
11480
- function v(e){e.property("__zoom",EB).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).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 CB(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
11481
- return i===e.x&&o===e.y?e:new CB(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))
11486
+ n.each((function(){var n=iB(this,i),o=n.on
11487
+ 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]:_B[Symbol.iterator]}
11488
+ var AB={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
11489
+ function IB(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
11490
+ return n}wz.prototype.interrupt=function(e){return this.each((function(){rB(this,e)}))},wz.prototype.transition=function(e){var t,n
11491
+ e instanceof $B?(t=e._id,e=e._name):(t=MB(),(n=AB).time=PH(),e=null==e?null:e+"")
11492
+ 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])&&tB(s,e,t,c,a,n||IB(s,t))
11493
+ return new $B(i,this._parents,e,t)}
11494
+ var EB=e=>()=>e
11495
+ function OB(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 TB(e,t,n){this.k=e,this.x=t,this.y=n}TB.prototype={constructor:TB,scale:function(e){return 1===e?this:new TB(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new TB(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+")"}}
11496
+ var RB=new TB(1,0,0)
11497
+ function DB(e){for(;!e.__zoom;)if(!(e=e.parentNode))return RB
11498
+ return e.__zoom}function FB(e){e.stopImmediatePropagation()}function NB(e){e.preventDefault(),e.stopImmediatePropagation()}function LB(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function PB(){var e=this
11499
+ 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 VB(){return this.__zoom||RB}function zB(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function HB(){return navigator.maxTouchPoints||"ontouchstart"in this}function BB(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]
11500
+ 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 qB(){var e,t,n,i=LB,o=PB,r=BB,s=zB,a=HB,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=AH,u=oV("start","zoom","end"),p=500,f=150,g=0,m=10
11501
+ function v(e){e.property("__zoom",VB).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).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 TB(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
11502
+ return i===e.x&&o===e.y?e:new TB(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))
11482
11503
  return function(e){if(1===e)e=u
11483
11504
  else{var t=p(e),n=c/t[2]
11484
- e=new CB(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=uz(e)
11505
+ e=new TB(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=xz(e)
11485
11506
  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)
11486
11507
  else{if(o.k===a)return
11487
- n.mouse=[d,o.invert(d)],JH(this),n.start()}_B(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=hz(e.view).on("mousemove.zoom",(function(e){if(_B(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
11488
- s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=uz(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=hz(e).on("dragstart.drag",null)
11489
- t&&(i.on("click.drag",fz,pz),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),_B(e),s.event(e).end()}),!0),l=uz(e,o),d=e.clientX,h=e.clientY
11490
- !function(e){var t=e.document.documentElement,n=hz(e).on("dragstart.drag",fz,pz)
11491
- "onselectstart"in t?n.on("selectstart.drag",fz,pz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),MB(e),s.mouse=[l,this.__zoom.invert(l)],JH(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=uz(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)
11492
- _B(e),d>0?hz(this).transition().duration(d).call(x,h,s,e):hz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
11493
- for(MB(n),s=0;s<d;++s)l=[l=uz(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)
11494
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),JH(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
11495
- for(_B(e),n=0;n<d;++n)o=uz(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)
11508
+ n.mouse=[d,o.invert(d)],rB(this),n.start()}NB(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=yz(e.view).on("mousemove.zoom",(function(e){if(NB(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
11509
+ s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=xz(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=yz(e).on("dragstart.drag",null)
11510
+ t&&(i.on("click.drag",Cz,kz),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),NB(e),s.event(e).end()}),!0),l=xz(e,o),d=e.clientX,h=e.clientY
11511
+ !function(e){var t=e.document.documentElement,n=yz(e).on("dragstart.drag",Cz,kz)
11512
+ "onselectstart"in t?n.on("selectstart.drag",Cz,kz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),FB(e),s.mouse=[l,this.__zoom.invert(l)],rB(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=xz(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)
11513
+ NB(e),d>0?yz(this).transition().duration(d).call(x,h,s,e):yz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
11514
+ for(FB(n),s=0;s<d;++s)l=[l=xz(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)
11515
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),rB(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
11516
+ for(NB(e),n=0;n<d;++n)o=xz(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)
11496
11517
  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
11497
11518
  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
11498
11519
  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
11499
- for(MB(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
11520
+ for(FB(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
11500
11521
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
11501
- else if(s.end(),2===s.taps&&(r=uz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=hz(this).on("dblclick.zoom")
11522
+ else if(s.end(),2===s.taps&&(r=xz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=yz(this).on("dblclick.zoom")
11502
11523
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
11503
- o.property("__zoom",EB),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
11524
+ o.property("__zoom",VB),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
11504
11525
  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
11505
- return r(SB.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=hz(this.that).datum()
11506
- u.call(e,this.that,new kB(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:xB(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:xB(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:xB(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:xB([[+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)
11507
- 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}$B.prototype=CB.prototype
11508
- const FB=W`
11526
+ return r(RB.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=yz(this.that).datum()
11527
+ u.call(e,this.that,new OB(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:EB(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:EB(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:EB(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:EB([[+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)
11528
+ 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}DB.prototype=TB.prototype
11529
+ const ZB=W`
11509
11530
  <div class="wafer-map-container">
11510
11531
  <svg class="svg-root">
11511
11532
  <g ${Fe("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -11535,7 +11556,7 @@ const FB=W`
11535
11556
  />
11536
11557
  </svg>
11537
11558
  </div>
11538
- `,NB=we`
11559
+ `,jB=we`
11539
11560
  :host {
11540
11561
  display: inline-block;
11541
11562
  width: 500px;
@@ -11619,68 +11640,68 @@ const FB=W`
11619
11640
  outline-width: 0px;
11620
11641
  }
11621
11642
  `
11622
- function LB(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function PB(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function VB(e){let t,n,i
11643
+ function UB(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function WB(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function GB(e){let t,n,i
11623
11644
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
11624
11645
  do{const t=o+r>>>1
11625
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=LB,n=(t,n)=>LB(e(t),n),i=(t,n)=>e(t)-n):(t=e===LB||e===PB?e:zB,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
11646
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=UB,n=(t,n)=>UB(e(t),n),i=(t,n)=>e(t)-n):(t=e===UB||e===WB?e:KB,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
11626
11647
  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
11627
11648
  do{const t=o+r>>>1
11628
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function zB(){return 0}function HB(e){return null===e?NaN:+e}const BB=VB(LB).right
11629
- VB(HB).center
11630
- var qB=BB
11631
- class ZB extends Map{constructor(e,t=UB){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(jB(this,e))}has(e){return super.has(jB(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
11649
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function KB(){return 0}function JB(e){return null===e?NaN:+e}const XB=GB(UB).right
11650
+ GB(JB).center
11651
+ var YB=XB
11652
+ class QB extends Map{constructor(e,t=tq){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(eq(this,e))}has(e){return super.has(eq(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
11632
11653
  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)
11633
11654
  e.has(i)&&(n=e.get(i),e.delete(i))
11634
- return n}(this,e))}}function jB({_intern:e,_key:t},n){const i=t(n)
11635
- return e.has(i)?e.get(i):n}function UB(e){return null!==e&&"object"==typeof e?e.valueOf():e}const WB=Math.sqrt(50),GB=Math.sqrt(10),KB=Math.sqrt(2)
11636
- function JB(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>=WB?10:r>=GB?5:r>=KB?2:1
11655
+ return n}(this,e))}}function eq({_intern:e,_key:t},n){const i=t(n)
11656
+ return e.has(i)?e.get(i):n}function tq(e){return null!==e&&"object"==typeof e?e.valueOf():e}const nq=Math.sqrt(50),iq=Math.sqrt(10),oq=Math.sqrt(2)
11657
+ function rq(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>=nq?10:r>=iq?5:r>=oq?2:1
11637
11658
  let a,l,c
11638
- 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?JB(e,t,2*n):[a,l,c]}function XB(e,t,n){return JB(e=+e,t=+t,n=+n)[2]}function YB(e,t,n=HB){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
11659
+ 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?rq(e,t,2*n):[a,l,c]}function sq(e,t,n){return rq(e=+e,t=+t,n=+n)[2]}function aq(e,t,n=JB){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
11639
11660
  if(t>=1)return+n(e[i-1],i-1,e)
11640
11661
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
11641
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function QB(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
11662
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function lq(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
11642
11663
  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
11643
- return r}function eq(e,t){switch(arguments.length){case 0:break
11664
+ return r}function cq(e,t){switch(arguments.length){case 0:break
11644
11665
  case 1:this.range(e)
11645
11666
  break
11646
- default:this.range(t).domain(e)}return this}const tq=Symbol("implicit")
11647
- function nq(){var e=new ZB,t=[],n=[],i=tq
11667
+ default:this.range(t).domain(e)}return this}const dq=Symbol("implicit")
11668
+ function hq(){var e=new QB,t=[],n=[],i=dq
11648
11669
  function o(o){let r=e.get(o)
11649
- if(void 0===r){if(i!==tq)return i
11670
+ if(void 0===r){if(i!==dq)return i
11650
11671
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
11651
- t=[],e=new ZB
11672
+ t=[],e=new QB
11652
11673
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
11653
- 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 nq(t,n).unknown(i)},eq.apply(o,arguments),o}function iq(){var e,t,n=nq().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
11674
+ 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 hq(t,n).unknown(i)},cq.apply(o,arguments),o}function uq(){var e,t,n=hq().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
11654
11675
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
11655
11676
  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))
11656
- var f=QB(n).map((function(t){return u+e*t}))
11657
- 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 iq(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},eq.apply(h(),arguments)}function oq(e){return+e}var rq=[0,1]
11658
- function sq(e){return e}function aq(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
11659
- var n}function lq(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
11660
- return o<i?(i=aq(o,i),r=n(s,r)):(i=aq(i,o),r=n(r,s)),function(e){return r(i(e))}}function cq(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
11661
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=aq(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
11662
- return function(t){var n=qB(e,t,1,i)-1
11663
- return r[n](o[n](t))}}function dq(){var e,t,n,i,o,r,s=rq,a=rq,l=aH,c=sq
11677
+ var f=lq(n).map((function(t){return u+e*t}))
11678
+ 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 uq(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},cq.apply(h(),arguments)}function pq(e){return+e}var fq=[0,1]
11679
+ function gq(e){return e}function mq(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
11680
+ var n}function vq(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
11681
+ return o<i?(i=mq(o,i),r=n(s,r)):(i=mq(i,o),r=n(r,s)),function(e){return r(i(e))}}function bq(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
11682
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=mq(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
11683
+ return function(t){var n=YB(e,t,1,i)-1
11684
+ return r[n](o[n](t))}}function wq(){var e,t,n,i,o,r,s=fq,a=fq,l=mH,c=gq
11664
11685
  function d(){var e,t,n,l=Math.min(s.length,a.length)
11665
- return c!==sq&&(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?cq:lq,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),nH)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,oq),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=lH,d()},h.clamp=function(e){return arguments.length?(c=!!e||sq,d()):c!==sq},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 hq(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
11686
+ return c!==gq&&(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?bq:vq,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),hH)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,pq),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=vH,d()},h.clamp=function(e){return arguments.length?(c=!!e||gq,d()):c!==gq},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 yq(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
11666
11687
  var n,i=e.slice(0,n)
11667
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function uq(e){return(e=hq(Math.abs(e)))?e[1]:NaN}var pq,fq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
11668
- function gq(e){if(!(t=fq.exec(e)))throw new Error("invalid format: "+e)
11688
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function xq(e){return(e=yq(Math.abs(e)))?e[1]:NaN}var kq,Cq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
11689
+ function Sq(e){if(!(t=Cq.exec(e)))throw new Error("invalid format: "+e)
11669
11690
  var t
11670
- return new mq({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 mq(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 vq(e,t){var n=hq(e,t)
11691
+ return new $q({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 $q(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 Mq(e,t){var n=yq(e,t)
11671
11692
  if(!n)return e+""
11672
11693
  var i=n[0],o=n[1]
11673
- 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")}gq.prototype=mq.prototype,mq.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}
11674
- var bq={"%":(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)=>vq(100*e,t),r:vq,s:function(e,t){var n=hq(e,t)
11694
+ 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")}Sq.prototype=$q.prototype,$q.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}
11695
+ var _q={"%":(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)=>Mq(100*e,t),r:Mq,s:function(e,t){var n=yq(e,t)
11675
11696
  if(!n)return e+""
11676
- var i=n[0],o=n[1],r=o-(pq=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
11677
- 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")+hq(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
11678
- function wq(e){return e}var yq,xq,kq,Cq=Array.prototype.map,Sq=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
11679
- function $q(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?wq:(t=Cq.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]
11680
- 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?wq:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Cq.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+""
11681
- function h(e){var t=(e=gq(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
11682
- "n"===b?(g=!0,b="g"):bq[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
11683
- var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=bq[b],k=/[defgprs%]/.test(b)
11697
+ var i=n[0],o=n[1],r=o-(kq=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
11698
+ 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")+yq(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
11699
+ function Aq(e){return e}var Iq,Eq,Oq,Tq=Array.prototype.map,Rq=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
11700
+ function Dq(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?Aq:(t=Tq.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]
11701
+ 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?Aq:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Tq.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+""
11702
+ function h(e){var t=(e=Sq(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
11703
+ "n"===b?(g=!0,b="g"):_q[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
11704
+ var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=_q[b],k=/[defgprs%]/.test(b)
11684
11705
  function C(e){var o,r,l,u=w,C=y
11685
11706
  if("c"===b)C=x(e)+C,e=""
11686
11707
  else{var S=(e=+e)<0||1/e<0
@@ -11689,7 +11710,7 @@ break
11689
11710
  case"0":0===o&&(o=i),t=i
11690
11711
  break
11691
11712
  default:if(!+e[i])break e
11692
- 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?Sq[8+pq/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)
11713
+ 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?Rq[8+kq/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)
11693
11714
  break}}g&&!p&&(e=i(e,1/0))
11694
11715
  var $=u.length+e.length+C.length,M=$<f?new Array(f-$+1).join(t):""
11695
11716
  switch(g&&p&&(e=i(M+e,M.length?f-C.length:1/0),M=""),n){case"<":e=u+e+C+M
@@ -11698,19 +11719,19 @@ case"=":e=u+M+e+C
11698
11719
  break
11699
11720
  case"^":e=M.slice(0,$=M.length>>1)+u+e+C+M.slice($)
11700
11721
  break
11701
- default:e=M+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=gq(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(uq(t)/3))),o=Math.pow(10,-i),r=Sq[8+i/3]
11702
- return function(e){return n(o*e)+r}}}}function Mq(e,t,n,i){var o,r=function(e,t,n){n=+n
11703
- const i=(t=+t)<(e=+e),o=i?XB(t,e,n):XB(e,t,n)
11722
+ default:e=M+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=Sq(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(xq(t)/3))),o=Math.pow(10,-i),r=Rq[8+i/3]
11723
+ return function(e){return n(o*e)+r}}}}function Fq(e,t,n,i){var o,r=function(e,t,n){n=+n
11724
+ const i=(t=+t)<(e=+e),o=i?sq(t,e,n):sq(e,t,n)
11704
11725
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
11705
- switch((i=gq(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
11706
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(uq(t)/3)))-uq(Math.abs(e)))}(r,s))||(i.precision=o),kq(i,s)
11707
- 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,uq(t)-uq(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
11726
+ switch((i=Sq(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
11727
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xq(t)/3)))-xq(Math.abs(e)))}(r,s))||(i.precision=o),Oq(i,s)
11728
+ 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,xq(t)-xq(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
11708
11729
  break
11709
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-uq(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return xq(i)}function _q(e){var t=e.domain
11730
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-xq(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return Eq(i)}function Nq(e){var t=e.domain
11710
11731
  return e.ticks=function(e){var n=t()
11711
11732
  return function(e,t,n){if(!((n=+n)>0))return[]
11712
11733
  if((e=+e)==(t=+t))return[e]
11713
- const i=t<e,[o,r,s]=i?JB(t,e,n):JB(e,t,n)
11734
+ const i=t<e,[o,r,s]=i?rq(t,e,n):rq(e,t,n)
11714
11735
  if(!(r>=o))return[]
11715
11736
  const a=r-o+1,l=new Array(a)
11716
11737
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -11718,22 +11739,22 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
11718
11739
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
11719
11740
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
11720
11741
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
11721
- return Mq(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
11742
+ return Fq(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
11722
11743
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
11723
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=XB(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
11744
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=sq(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
11724
11745
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
11725
11746
  else{if(!(o<0))break
11726
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function Aq(){var e=dq()(sq,sq)
11727
- 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,Aq())},eq.apply(e,arguments),_q(e)}function Iq(){var e,t=[],n=[],i=[]
11747
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function Lq(){var e=wq()(gq,gq)
11748
+ 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,Lq())},cq.apply(e,arguments),Nq(e)}function Pq(){var e,t=[],n=[],i=[]
11728
11749
  function o(){var e=0,o=Math.max(1,n.length)
11729
- for(i=new Array(o-1);++e<o;)i[e-1]=YB(t,e/o)
11730
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[qB(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
11750
+ for(i=new Array(o-1);++e<o;)i[e-1]=aq(t,e/o)
11751
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[YB(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
11731
11752
  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()
11732
11753
  t=[]
11733
11754
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
11734
- return t.sort(LB),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 Iq().domain(t).range(n).unknown(e)},eq.apply(r,arguments)}yq=$q({thousands:",",grouping:[3],currency:["$",""]}),xq=yq.format,kq=yq.formatPrefix
11735
- const Eq="bottom-left",Oq="bottom-right",Tq="top-left",Rq="top",Dq="show",Fq="hide",Nq="linear",Lq="ordinal"
11736
- class Pq{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}
11755
+ return t.sort(UB),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 Pq().domain(t).range(n).unknown(e)},cq.apply(r,arguments)}Iq=Dq({thousands:",",grouping:[3],currency:["$",""]}),Eq=Iq.format,Oq=Iq.formatPrefix
11756
+ const Vq="bottom-left",zq="bottom-right",Hq="top-left",Bq="top",qq="show",Zq="hide",jq="linear",Uq="ordinal"
11757
+ class Wq{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}
11737
11758
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
11738
11759
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
11739
11760
  this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -11741,22 +11762,22 @@ this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontal
11741
11762
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
11742
11763
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
11743
11764
  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)
11744
- 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=iq().domain(QB(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
11745
- return e===Eq||e===Tq?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=Iq().domain([0,n])
11746
- return e===Eq||e===Tq?i.range(QB(t.origin.x,t.origin.x+t.cols)):i.range(QB(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=iq().domain(QB(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
11747
- return e===Eq||e===Oq?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=Iq().domain([0,n])
11748
- return e===Eq||e===Oq?i.range(QB(t.origin.y,t.origin.y+t.rows).reverse()):i.range(QB(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 Vq{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)
11765
+ 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=uq().domain(lq(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
11766
+ return e===Vq||e===Hq?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=Pq().domain([0,n])
11767
+ return e===Vq||e===Hq?i.range(lq(t.origin.x,t.origin.x+t.cols)):i.range(lq(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=uq().domain(lq(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
11768
+ return e===Vq||e===zq?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=Pq().domain([0,n])
11769
+ return e===Vq||e===zq?i.range(lq(t.origin.y,t.origin.y+t.rows).reverse()):i.range(lq(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 Gq{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)
11749
11770
  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
11750
11771
  this._diesRenderInfo=[]
11751
11772
  for(const l of this.wafermap.dies){const c=t(l.x)
11752
11773
  if(void 0===c)continue
11753
11774
  const d=n(l.y)
11754
- void 0!==d&&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)?Aq().domain(e.values.map((e=>+e))).range(e.colors):nq().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
11775
+ void 0!==d&&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)?Lq().domain(e.values.map((e=>+e))).range(e.colors):hq().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
11755
11776
  const o=`${e}${i}`
11756
- 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===Nq}isColorScaleOrdinal(e){return e===Lq}calculateFillStyle(e,t,n){let i=this.emptyDieColor
11777
+ 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===jq}isColorScaleOrdinal(e){return e===Uq}calculateFillStyle(e,t,n){let i=this.emptyDieColor
11757
11778
  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
11758
11779
  let o=Uo(i)
11759
- return null===o?this.emptyDieColor:(o=new Po(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class zq{constructor(e){this.wafermap=e,this.computations=new Pq(e),this.prerendering=new Vq(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 Hq{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?Fq:Dq,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
11780
+ return null===o?this.emptyDieColor:(o=new Po(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class Kq{constructor(e){this.wafermap=e,this.computations=new Wq(e),this.prerendering=new Gq(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 Jq{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?Zq:qq,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
11760
11781
  if(void 0===e)return""
11761
11782
  const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
11762
11783
  if(void 0===t)return""
@@ -11769,19 +11790,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
11769
11790
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
11770
11791
  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])
11771
11792
  r[0]-=e,r[1]-=t
11772
- 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 Bq{constructor(e){this.wafermap=e,this.zoomTransform=SB,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=DB().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=>$B(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(hz(this.wafermap.canvas))}rescale(e){const t=e.transform
11773
- t.k===this.minScale?(this.zoomTransform=SB,this.zoomBehavior.transform(hz(this.wafermap.canvas),SB)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class qq{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
11793
+ 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 Xq{constructor(e){this.wafermap=e,this.zoomTransform=RB,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=qB().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=>DB(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(yz(this.wafermap.canvas))}rescale(e){const t=e.transform
11794
+ t.k===this.minScale?(this.zoomTransform=RB,this.zoomBehavior.transform(yz(this.wafermap.canvas),RB)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class Yq{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
11774
11795
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
11775
11796
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
11776
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===Eq||n===Tq?Math.floor:Math.ceil,o=n===Eq||n===Oq?Math.floor:Math.ceil
11797
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===Vq||n===Hq?Math.floor:Math.ceil,o=n===Vq||n===zq?Math.floor:Math.ceil
11777
11798
  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
11778
11799
  let i=0
11779
11800
  for(const e of n)i+=e
11780
- return i>0}}class Zq{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 Bq(e),this.hoverHandler=new qq(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 jq=["canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
11781
- class Uq extends mN{constructor(e){super(jq),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("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 Wq{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class Gq extends Pt{constructor(){super(...arguments),this.waferMapUpdateTracker=new Uq(this),this.originLocation=Eq,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=Rq,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=Nq,this.dataManager=new zq(this),this.renderer=new Hq(this),this.renderQueued=!1,this.transform=SB,this.hoverTransform="",this.hoverOpacity=Fq,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new Zq(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new Wq(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
11801
+ return i>0}}class Qq{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 Xq(e),this.hoverHandler=new Yq(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 eZ=["canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
11802
+ class tZ extends mN{constructor(e){super(eZ),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("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 nZ{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class iZ extends Pt{constructor(){super(...arguments),this.waferMapUpdateTracker=new tZ(this),this.originLocation=Vq,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=Bq,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=jq,this.dataManager=new Kq(this),this.renderer=new Jq(this),this.renderQueued=!1,this.transform=RB,this.hoverTransform="",this.hoverOpacity=Zq,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new Qq(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new nZ(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
11782
11803
  if(void 0===t)return
11783
11804
  const{height:n,width:i}=t.contentRect
11784
- this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}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({attribute:"origin-location"})],Gq.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],Gq.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],Gq.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],Gq.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],Gq.prototype,"gridMaxY",void 0),e([se],Gq.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],Gq.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],Gq.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],Gq.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],Gq.prototype,"colorScaleMode",void 0),e([m],Gq.prototype,"canvasWidth",void 0),e([m],Gq.prototype,"canvasHeight",void 0),e([m],Gq.prototype,"transform",void 0),e([m],Gq.prototype,"hoverTransform",void 0),e([m],Gq.prototype,"hoverOpacity",void 0),e([m],Gq.prototype,"hoverWidth",void 0),e([m],Gq.prototype,"hoverHeight",void 0),e([m],Gq.prototype,"hoverDie",void 0),e([m],Gq.prototype,"highlightedValues",void 0),e([m],Gq.prototype,"dies",void 0),e([m],Gq.prototype,"colorScale",void 0)
11785
- const Kq=Gq.compose({baseName:"wafer-map",template:FB,styles:NB})
11786
- vi.getOrCreate().withPrefix("nimble").register(Kq()),vi.tagFor(Gq)}()
11805
+ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}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({attribute:"origin-location"})],iZ.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],iZ.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],iZ.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],iZ.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],iZ.prototype,"gridMaxY",void 0),e([se],iZ.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],iZ.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],iZ.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],iZ.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],iZ.prototype,"colorScaleMode",void 0),e([m],iZ.prototype,"canvasWidth",void 0),e([m],iZ.prototype,"canvasHeight",void 0),e([m],iZ.prototype,"transform",void 0),e([m],iZ.prototype,"hoverTransform",void 0),e([m],iZ.prototype,"hoverOpacity",void 0),e([m],iZ.prototype,"hoverWidth",void 0),e([m],iZ.prototype,"hoverHeight",void 0),e([m],iZ.prototype,"hoverDie",void 0),e([m],iZ.prototype,"highlightedValues",void 0),e([m],iZ.prototype,"dies",void 0),e([m],iZ.prototype,"colorScale",void 0)
11806
+ const oZ=iZ.compose({baseName:"wafer-map",template:ZB,styles:jB})
11807
+ vi.getOrCreate().withPrefix("nimble").register(oZ()),vi.tagFor(iZ)}()
11787
11808
  //# sourceMappingURL=all-components-bundle.min.js.map