billboard.js 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +102 -71
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +16 -17
  5. package/dist/billboard.pkgd.js +102 -71
  6. package/dist/billboard.pkgd.min.js +22 -23
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/Chart/Chart.js +1 -1
  38. package/dist-esm/Chart/api/axis.js +1 -1
  39. package/dist-esm/Chart/api/category.js +1 -1
  40. package/dist-esm/Chart/api/chart.js +1 -1
  41. package/dist-esm/Chart/api/color.js +1 -1
  42. package/dist-esm/Chart/api/data.js +1 -1
  43. package/dist-esm/Chart/api/export.js +1 -1
  44. package/dist-esm/Chart/api/flow.js +1 -1
  45. package/dist-esm/Chart/api/focus.js +7 -11
  46. package/dist-esm/Chart/api/grid.js +1 -1
  47. package/dist-esm/Chart/api/group.js +1 -1
  48. package/dist-esm/Chart/api/legend.js +1 -1
  49. package/dist-esm/Chart/api/load.js +1 -1
  50. package/dist-esm/Chart/api/regions.js +1 -1
  51. package/dist-esm/Chart/api/selection.js +1 -1
  52. package/dist-esm/Chart/api/show.js +1 -1
  53. package/dist-esm/Chart/api/stubs.js +1 -1
  54. package/dist-esm/Chart/api/subchart.js +1 -1
  55. package/dist-esm/Chart/api/tooltip.js +1 -1
  56. package/dist-esm/Chart/api/x.js +1 -1
  57. package/dist-esm/Chart/api/zoom.js +1 -1
  58. package/dist-esm/ChartInternal/Axis/Axis.js +1 -1
  59. package/dist-esm/ChartInternal/Axis/AxisRenderer.js +1 -1
  60. package/dist-esm/ChartInternal/Axis/AxisRendererHelper.js +1 -1
  61. package/dist-esm/ChartInternal/ChartInternal.js +1 -1
  62. package/dist-esm/ChartInternal/data/convert.helper.js +1 -1
  63. package/dist-esm/ChartInternal/data/convert.js +1 -1
  64. package/dist-esm/ChartInternal/data/data.js +15 -6
  65. package/dist-esm/ChartInternal/data/load.js +1 -1
  66. package/dist-esm/ChartInternal/interactions/drag.js +1 -1
  67. package/dist-esm/ChartInternal/interactions/eventrect.js +1 -1
  68. package/dist-esm/ChartInternal/interactions/flow.js +1 -1
  69. package/dist-esm/ChartInternal/interactions/interaction.js +1 -1
  70. package/dist-esm/ChartInternal/interactions/subchart.js +1 -1
  71. package/dist-esm/ChartInternal/interactions/zoom.js +1 -1
  72. package/dist-esm/ChartInternal/internals/category.js +1 -1
  73. package/dist-esm/ChartInternal/internals/class.js +1 -1
  74. package/dist-esm/ChartInternal/internals/clip.js +1 -1
  75. package/dist-esm/ChartInternal/internals/color.js +5 -5
  76. package/dist-esm/ChartInternal/internals/domain.js +1 -1
  77. package/dist-esm/ChartInternal/internals/format.js +1 -1
  78. package/dist-esm/ChartInternal/internals/grid.js +1 -1
  79. package/dist-esm/ChartInternal/internals/legend.js +1 -1
  80. package/dist-esm/ChartInternal/internals/redraw.js +1 -1
  81. package/dist-esm/ChartInternal/internals/region.js +1 -1
  82. package/dist-esm/ChartInternal/internals/scale.js +1 -1
  83. package/dist-esm/ChartInternal/internals/selection.js +1 -1
  84. package/dist-esm/ChartInternal/internals/size.axis.js +1 -1
  85. package/dist-esm/ChartInternal/internals/size.js +1 -1
  86. package/dist-esm/ChartInternal/internals/style.js +1 -1
  87. package/dist-esm/ChartInternal/internals/text.arc.js +1 -1
  88. package/dist-esm/ChartInternal/internals/text.js +2 -2
  89. package/dist-esm/ChartInternal/internals/text.util.js +1 -1
  90. package/dist-esm/ChartInternal/internals/title.js +1 -1
  91. package/dist-esm/ChartInternal/internals/tooltip.js +1 -1
  92. package/dist-esm/ChartInternal/internals/transform.js +1 -1
  93. package/dist-esm/ChartInternal/internals/type.js +26 -34
  94. package/dist-esm/ChartInternal/shape/arc.js +1 -1
  95. package/dist-esm/ChartInternal/shape/area.js +1 -1
  96. package/dist-esm/ChartInternal/shape/bar.js +23 -7
  97. package/dist-esm/ChartInternal/shape/bubble.js +1 -1
  98. package/dist-esm/ChartInternal/shape/candlestick.js +1 -1
  99. package/dist-esm/ChartInternal/shape/core/barRadius.js +1 -1
  100. package/dist-esm/ChartInternal/shape/core/bubble.js +1 -1
  101. package/dist-esm/ChartInternal/shape/core/candlestick.js +1 -1
  102. package/dist-esm/ChartInternal/shape/core/dataRegion.js +1 -1
  103. package/dist-esm/ChartInternal/shape/core/geometry.js +1 -1
  104. package/dist-esm/ChartInternal/shape/core/path.js +1 -1
  105. package/dist-esm/ChartInternal/shape/core/point.js +1 -1
  106. package/dist-esm/ChartInternal/shape/core/treemap.js +1 -1
  107. package/dist-esm/ChartInternal/shape/funnel.js +1 -1
  108. package/dist-esm/ChartInternal/shape/gauge.js +1 -1
  109. package/dist-esm/ChartInternal/shape/line.js +2 -2
  110. package/dist-esm/ChartInternal/shape/point.js +22 -10
  111. package/dist-esm/ChartInternal/shape/polar.js +1 -1
  112. package/dist-esm/ChartInternal/shape/radar.js +1 -1
  113. package/dist-esm/ChartInternal/shape/shape.js +19 -4
  114. package/dist-esm/ChartInternal/shape/treemap.js +1 -1
  115. package/dist-esm/canvas/CanvasAxisRenderer.js +1 -1
  116. package/dist-esm/canvas/CanvasEngine.js +1 -1
  117. package/dist-esm/canvas/CanvasPainter.js +1 -1
  118. package/dist-esm/canvas/CanvasRenderer.js +1 -1
  119. package/dist-esm/canvas/CanvasTheme.js +1 -1
  120. package/dist-esm/canvas/HitDetector.js +1 -1
  121. package/dist-esm/canvas/axisTicks.js +1 -1
  122. package/dist-esm/canvas/classes.js +1 -1
  123. package/dist-esm/canvas/color.js +1 -1
  124. package/dist-esm/canvas/geometry.js +1 -1
  125. package/dist-esm/canvas/labels.js +1 -1
  126. package/dist-esm/canvas/pointPattern.js +1 -1
  127. package/dist-esm/canvas/util.js +1 -1
  128. package/dist-esm/config/Options/Options.js +1 -1
  129. package/dist-esm/config/Options/axis/axis.js +1 -1
  130. package/dist-esm/config/Options/axis/x.js +1 -1
  131. package/dist-esm/config/Options/axis/y.js +1 -1
  132. package/dist-esm/config/Options/axis/y2.js +1 -1
  133. package/dist-esm/config/Options/common/boost.js +1 -1
  134. package/dist-esm/config/Options/common/color.js +1 -1
  135. package/dist-esm/config/Options/common/grid.js +1 -1
  136. package/dist-esm/config/Options/common/legend.js +1 -1
  137. package/dist-esm/config/Options/common/main.js +1 -1
  138. package/dist-esm/config/Options/common/point.js +1 -1
  139. package/dist-esm/config/Options/common/title.js +1 -1
  140. package/dist-esm/config/Options/common/tooltip.js +1 -1
  141. package/dist-esm/config/Options/data/axis.js +1 -1
  142. package/dist-esm/config/Options/data/data.js +1 -1
  143. package/dist-esm/config/Options/data/selection.js +1 -1
  144. package/dist-esm/config/Options/interaction/interaction.js +1 -1
  145. package/dist-esm/config/Options/interaction/subchart.js +1 -1
  146. package/dist-esm/config/Options/interaction/zoom.js +1 -1
  147. package/dist-esm/config/Options/shape/arc.js +1 -1
  148. package/dist-esm/config/Options/shape/area.js +1 -1
  149. package/dist-esm/config/Options/shape/bar.js +1 -1
  150. package/dist-esm/config/Options/shape/bubble.js +1 -1
  151. package/dist-esm/config/Options/shape/candlestick.js +1 -1
  152. package/dist-esm/config/Options/shape/donut.js +1 -1
  153. package/dist-esm/config/Options/shape/funnel.js +1 -1
  154. package/dist-esm/config/Options/shape/gauge.js +1 -1
  155. package/dist-esm/config/Options/shape/line.js +1 -1
  156. package/dist-esm/config/Options/shape/pie.js +1 -1
  157. package/dist-esm/config/Options/shape/polar.js +1 -1
  158. package/dist-esm/config/Options/shape/radar.js +1 -1
  159. package/dist-esm/config/Options/shape/scatter.js +1 -1
  160. package/dist-esm/config/Options/shape/spline.js +1 -1
  161. package/dist-esm/config/Options/shape/treemap.js +1 -1
  162. package/dist-esm/config/Store/Element.js +1 -1
  163. package/dist-esm/config/Store/State.js +1 -1
  164. package/dist-esm/config/Store/Store.js +1 -1
  165. package/dist-esm/config/classes.js +1 -1
  166. package/dist-esm/config/config.js +1 -1
  167. package/dist-esm/config/const.js +1 -1
  168. package/dist-esm/config/resolver/axis.core.js +1 -1
  169. package/dist-esm/config/resolver/axis.js +1 -1
  170. package/dist-esm/config/resolver/canvas.js +1 -1
  171. package/dist-esm/config/resolver/canvasShape.js +1 -1
  172. package/dist-esm/config/resolver/category.js +1 -1
  173. package/dist-esm/config/resolver/export.js +1 -1
  174. package/dist-esm/config/resolver/flow.js +1 -1
  175. package/dist-esm/config/resolver/grid.js +1 -1
  176. package/dist-esm/config/resolver/interaction/selection.js +1 -1
  177. package/dist-esm/config/resolver/interaction/subchart.js +1 -1
  178. package/dist-esm/config/resolver/interaction/zoom.js +1 -1
  179. package/dist-esm/config/resolver/regions.js +1 -1
  180. package/dist-esm/config/resolver/shape/arc.helpers.js +1 -1
  181. package/dist-esm/config/resolver/shape/area.js +1 -1
  182. package/dist-esm/config/resolver/shape/axis.helpers.js +1 -1
  183. package/dist-esm/config/resolver/shape/bar.js +1 -1
  184. package/dist-esm/config/resolver/shape/bubble.js +1 -1
  185. package/dist-esm/config/resolver/shape/candlestick.js +1 -1
  186. package/dist-esm/config/resolver/shape/donut.js +1 -1
  187. package/dist-esm/config/resolver/shape/funnel.js +1 -1
  188. package/dist-esm/config/resolver/shape/gauge.js +1 -1
  189. package/dist-esm/config/resolver/shape/line.js +1 -1
  190. package/dist-esm/config/resolver/shape/pie.js +1 -1
  191. package/dist-esm/config/resolver/shape/polar.js +1 -1
  192. package/dist-esm/config/resolver/shape/radar.js +1 -1
  193. package/dist-esm/config/resolver/shape/scatter.js +1 -1
  194. package/dist-esm/config/resolver/shape/treemap.js +1 -1
  195. package/dist-esm/core.js +3 -3
  196. package/dist-esm/index.canvas.js +1 -1
  197. package/dist-esm/index.esm.js +1 -1
  198. package/dist-esm/module/Cache.js +1 -1
  199. package/dist-esm/module/browser.js +1 -1
  200. package/dist-esm/module/dsv.js +1 -1
  201. package/dist-esm/module/error.js +1 -1
  202. package/dist-esm/module/generator.js +1 -1
  203. package/dist-esm/module/sanitize.js +1 -1
  204. package/dist-esm/module/util/brush.js +1 -1
  205. package/dist-esm/module/util/dom.js +1 -1
  206. package/dist-esm/module/util/object.js +1 -1
  207. package/dist-esm/module/util/type-checks.js +1 -1
  208. package/dist-esm/module/worker.js +1 -1
  209. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  210. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  211. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  212. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  213. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  214. package/package.json +1 -1
  215. package/src/Chart/api/focus.ts +8 -12
  216. package/src/ChartInternal/data/data.ts +15 -5
  217. package/src/ChartInternal/internals/color.ts +5 -4
  218. package/src/ChartInternal/internals/text.ts +1 -1
  219. package/src/ChartInternal/internals/type.ts +26 -32
  220. package/src/ChartInternal/shape/bar.ts +26 -7
  221. package/src/ChartInternal/shape/line.ts +1 -1
  222. package/src/ChartInternal/shape/point.ts +26 -12
  223. package/src/ChartInternal/shape/shape.ts +25 -3
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -213,7 +213,7 @@ class Plugin {
213
213
  });
214
214
  }
215
215
  }
216
- __publicField(Plugin, "version", "4.0.2");
216
+ __publicField(Plugin, "version", "4.0.3");
217
217
 
218
218
  ;// ./src/Plugin/bubblecompare/index.ts
219
219
  var bubblecompare_defProp = Object.defineProperty;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
- */(function(a,l){typeof exports=="object"&&typeof module=="object"?module.exports=l(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],l):typeof exports=="object"?exports.bb=l(require("d3-selection")):(a.bb=a.bb||{},a.bb.plugin=a.bb.plugin||{},a.bb.plugin.bubblecompare=l(a.d3))})(this,function(p){return(function(){"use strict";var a={747:(function(e){e.exports=p})},l={};function c(e){var t=l[e];if(t!==void 0)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,c),n.exports}(function(){c.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],r=t[n++];c.o(e,s)?r===0&&n++:r===0?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)c.o(t,s)&&!c.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}})(),(function(){c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var u={};c.d(u,{default:function(){return M}});var g=c(747);const T=e=>e||e===0,q=e=>typeof e=="function",y=e=>typeof e=="string",v=e=>typeof e=="number",$=e=>typeof e=="undefined",x=e=>typeof e!="undefined",z=e=>typeof e=="boolean",L=e=>Math.ceil(e/10)*10,S=e=>Math.ceil(e)+.5,U=e=>e[1]-e[0],f=e=>typeof e=="object",B=e=>{for(const t in e)return!1;return!0},P=e=>$(e)||e===null||y(e)&&e.length===0||f(e)&&!(e instanceof Date)&&B(e)||v(e)&&isNaN(e),V=e=>!P(e),C=e=>Array.isArray(e),H=e=>e&&!(e!=null&&e.nodeType)&&f(e)&&!C(e);function O(e){const t=this.config;let n,s,r;const o=()=>{const i=s.shift();if(i&&n&&f(n)&&i in n)return n=n[i],o();if(!i)return n};Object.keys(t).forEach(i=>{n=e,s=i.split("_"),r=o(),x(r)&&(t[i]=r)}),this.api&&(this.state.orgConfig=e)}var R=Object.defineProperty,w=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>w(e,typeof t!="symbol"?t+"":t,n);class d{constructor(t={}){b(this,"$$"),b(this,"options"),b(this,"config"),this.options=t}loadConfig(){O.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}b(d,"version","4.0.2");var j=Object.defineProperty,D=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);const h=class m extends d{constructor(t){return super(t),this}$init(){const{$$:t}=this;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(t){const n=this.getBubbleR(t),{expandScale:s=1}=this.options;return m.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),n*s}static raiseFocusedBubbleLayer(t){t.raise&&(0,g.select)(t.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(t,n){const{$$:s}=this;return t.filter(r=>r&&!s.isBarType(r.id)).reduce((r,o)=>s.dist(o,n)<this.getBubbleR(o)?o:r,0)}getBubbleR(t){const{minR:n,maxR:s}=this.options,r=this.getZData(t);if(!r)return n;const[o,i]=this.$$.data.targets.reduce(([A,F],Z)=>{const _=this.getZData(Z.values[0]);return[Math.min(A,_),Math.max(F,_)]},[1e4,0]),N=o>0&&i===o?0:r/i;return Math.abs(N)*(s-n)+n}getZData(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value}};E(h,"version","0.0.1");let M=h;return u=u.default,u})()});
11
+ */(function(a,l){typeof exports=="object"&&typeof module=="object"?module.exports=l(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],l):typeof exports=="object"?exports.bb=l(require("d3-selection")):(a.bb=a.bb||{},a.bb.plugin=a.bb.plugin||{},a.bb.plugin.bubblecompare=l(a.d3))})(this,function(p){return(function(){"use strict";var a={747:(function(e){e.exports=p})},l={};function c(e){var t=l[e];if(t!==void 0)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,c),n.exports}(function(){c.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],r=t[n++];c.o(e,s)?r===0&&n++:r===0?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)c.o(t,s)&&!c.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}})(),(function(){c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var u={};c.d(u,{default:function(){return M}});var g=c(747);const T=e=>e||e===0,q=e=>typeof e=="function",y=e=>typeof e=="string",v=e=>typeof e=="number",$=e=>typeof e=="undefined",x=e=>typeof e!="undefined",z=e=>typeof e=="boolean",L=e=>Math.ceil(e/10)*10,S=e=>Math.ceil(e)+.5,U=e=>e[1]-e[0],f=e=>typeof e=="object",B=e=>{for(const t in e)return!1;return!0},P=e=>$(e)||e===null||y(e)&&e.length===0||f(e)&&!(e instanceof Date)&&B(e)||v(e)&&isNaN(e),V=e=>!P(e),C=e=>Array.isArray(e),H=e=>e&&!(e!=null&&e.nodeType)&&f(e)&&!C(e);function O(e){const t=this.config;let n,s,r;const o=()=>{const i=s.shift();if(i&&n&&f(n)&&i in n)return n=n[i],o();if(!i)return n};Object.keys(t).forEach(i=>{n=e,s=i.split("_"),r=o(),x(r)&&(t[i]=r)}),this.api&&(this.state.orgConfig=e)}var R=Object.defineProperty,w=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>w(e,typeof t!="symbol"?t+"":t,n);class d{constructor(t={}){b(this,"$$"),b(this,"options"),b(this,"config"),this.options=t}loadConfig(){O.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}b(d,"version","4.0.3");var j=Object.defineProperty,D=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);const h=class m extends d{constructor(t){return super(t),this}$init(){const{$$:t}=this;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(t){const n=this.getBubbleR(t),{expandScale:s=1}=this.options;return m.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),n*s}static raiseFocusedBubbleLayer(t){t.raise&&(0,g.select)(t.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(t,n){const{$$:s}=this;return t.filter(r=>r&&!s.isBarType(r.id)).reduce((r,o)=>s.dist(o,n)<this.getBubbleR(o)?o:r,0)}getBubbleR(t){const{minR:n,maxR:s}=this.options,r=this.getZData(t);if(!r)return n;const[o,i]=this.$$.data.targets.reduce(([A,F],Z)=>{const _=this.getZData(Z.values[0]);return[Math.min(A,_),Math.max(F,_)]},[1e4,0]),N=o>0&&i===o?0:r/i;return Math.abs(N)*(s-n)+n}getZData(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value}};E(h,"version","0.0.1");let M=h;return u=u.default,u})()});
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1231,7 +1231,7 @@ class Plugin {
1231
1231
  });
1232
1232
  }
1233
1233
  }
1234
- __publicField(Plugin, "version", "4.0.2");
1234
+ __publicField(Plugin, "version", "4.0.3");
1235
1235
 
1236
1236
  ;// ./src/Plugin/sparkline/Options.ts
1237
1237
  class Options {
@@ -5,9 +5,9 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(u,h){typeof exports=="object"&&typeof module=="object"?module.exports=h():typeof define=="function"&&define.amd?define("bb",[],h):typeof exports=="object"?exports.bb=h():(u.bb=u.bb||{},u.bb.plugin=u.bb.plugin||{},u.bb.plugin.sparkline=h())})(this,function(){return(function(){"use strict";var d={};(function(){d.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],i=t[n++];d.o(e,r)?i===0&&n++:i===0?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:i})}else for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var u={};d.d(u,{default:function(){return H}});var h=Object.defineProperty,T=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,A=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&A(e,n,t[n]);if(T)for(var n of T(t))X.call(t,n)&&A(e,n,t[n]);return e};const w={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},U={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},Y={area:"bb-area",areas:"bb-areas"},V={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},G={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},z={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},W={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},K={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Z={dragarea:"bb-dragarea",INCLUDED:"_included_"},J={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},Q={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},ee={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},te={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},ne={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},re={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},ie={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},oe={level:"bb-level",levels:"bb-levels"},se={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},ce={region:"bb-region",regions:"bb-regions"},le={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},ae={shape:"bb-shape",shapes:"bb-shapes"},ue={brush:"bb-brush",subchart:"bb-subchart"},be={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},fe={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},de={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},he={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ke=c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c({},w),U),Y),V),G),z),W),K),Z),Q),ee),te),ne),re),J),ie),oe),se),ce),le),ae),ue),be),fe),de),he);function pe(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function ge(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",r=o=>setTimeout(o,1),i=o=>clearTimeout(o);return[t?e.requestAnimationFrame:r,t?e.cancelAnimationFrame:i,n?e.requestIdleCallback:r,n?e.cancelIdleCallback:i]}const g=pe(),me=g==null?void 0:g.document,[Ze,Je,Qe,et]=ge(g),tt=e=>e||e===0,nt=e=>typeof e=="function",ve=e=>typeof e=="string",ye=e=>typeof e=="number",_e=e=>typeof e=="undefined",xe=e=>typeof e!="undefined",rt=e=>typeof e=="boolean",it=e=>Math.ceil(e/10)*10,ot=e=>Math.ceil(e)+.5,st=e=>e[1]-e[0],v=e=>typeof e=="object",$e=e=>{for(const t in e)return!1;return!0},Ee=e=>_e(e)||e===null||ve(e)&&e.length===0||v(e)&&!(e instanceof Date)&&$e(e)||ye(e)&&isNaN(e),ct=e=>!Ee(e),C=e=>Array.isArray(e),y=e=>e&&!(e!=null&&e.nodeType)&&v(e)&&!C(e);var Oe,Te,P,Ae,R,I,we,S,_,Ce=Object.defineProperty,j=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,D=(e,t,n)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t)=>{for(var n in t||(t={}))Pe.call(t,n)&&D(e,n,t[n]);if(j)for(var n of j(t))Re.call(t,n)&&D(e,n,t[n]);return e};function F(e,t){for(let n=0;n<e.length;n++){const r=e[n];r!==null&&P(r)&&t(r,n)}}function lt(e,t,n){return P(e[t])?e[t]:n}function at(e,t){for(const n in e)if(e[n]===t)return!0;return!1}function ut(e,t,...n){const r=Ae(e);return r&&e.call(t,...n),r}function bt(e,t){let n=0;const r=function(...i){!--n&&t.apply(this,i)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}const ft=e=>e.charAt(0).toUpperCase()+e.slice(1);function dt(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const ht=e=>[].slice.call(e);function pt(...e){const t=n=>{if(R(n))return n.map(t);if(I(n)&&n.constructor){const r=new n.constructor;for(const i in n)r[i]=t(n[i]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>L(L({},n),r))}function Ie(e={},t){R(t)&&t.forEach(n=>Ie(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}function gt(e){const t=e[0]instanceof Date,n=Array.from(new Set(t?e.map(Number):e));return t?n.map(r=>new Date(r)):n}function mt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function x(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return y(e)&&y(n)&&Object.keys(n).forEach(r=>{if(!/^(__proto__|constructor|prototype)$/i.test(r)){const i=n[r];i instanceof Date?e[r]=new Date(i.getTime()):y(i)?(!e[r]&&(e[r]={}),e[r]=x(e[r],i)):e[r]=C(i)?i.concat():i}}),x(e,...t)}function Se(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,i)=>r-i:(r,i)=>i-r:t&&!e.every(isNaN)?n=(r,i)=>r-i:t||(n=(r,i)=>r>i&&-1||r<i&&1||r===i&&0),e.concat().sort(n)}function vt(e,t){let n=t.filter(r=>we(r));if(n.length)if(S(n[0])){let r=e==="min"?1/0:-1/0;for(const i of n)(e==="min"?i<r:i>r)&&(r=i);n=r}else n[0]instanceof Date&&(n=Se(n,e==="min")[0]);else n=void 0;return n}const yt=(e,t,n=1)=>{const r=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let o=0;o<i;o++)r.push(e+o*n);return r};let je=0;function _t(e=!0){const t=++je;return e?String(t):t}function M(e,t,n,r,i){if(n>r)return-1;const o=Math.floor((n+r)/2);let{x:s,w:l=0}=e[o];return i&&(s=e[o].y,l=e[o].h),t>=s&&t<=s+l?o:t<s?M(e,t,n,o-1,i):M(e,t,o+1,r,i)}function xt(e,t){return Te(e.replace(/\{=([^}]+)\}/g,(n,r)=>{var i;return(i=t[r])!=null?i:""}))}function $t(e){var t;let n;if(e instanceof Date)n=e;else if(_(e)){const{config:r,format:i}=this;n=(t=i.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else S(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Et(e){if(I(e)&&!_(e)){const s=e;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const t=(_(e)?e.trim().split(/\s+/):[e]).map(s=>+s||0),[n,r=n,i=n,o=r]=t;return{top:n,right:r,bottom:i,left:o}}function De(e,t){t()===!1?Oe(()=>De(e,t)):e()}function Ot(e,t=(n=>n)){const n=new Set;return F(e,(r,i)=>{n.add(t(r,i))}),n}function Tt(e,t,n=(r=>r)){const r=new Map;return F(e,(i,o)=>{r.set(t(i,o),n(i,o))}),r}var Le,b,$,Fe,Me;const Be=/\s?(bb-)/g,Ne=/\.+/g;function qe(e){return e.replace(Be,".$1").replace(Ne,".")}function B(e,t,n=!1){const r=o=>o[e?"getBoundingClientRect":"getBBox"](),i=e?"rectClient":"rectBBox";return n?r(t):!(i in t)||t.hasAttribute("width")&&t[i].width!==+(t.getAttribute("width")||0)?t[i]=r(t):t[i]}function At(e,t,n=[-1,1],r=!1){if(!(!e||!Me(t)))if(t.indexOf(`
12
12
  `)===-1)e.text(t);else{const i=[e.text(),t].map(o=>o.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const o=t.split(`
13
- `),s=r?o.length-1:1;e.html(""),o.forEach((l,a)=>{e.append("tspan").attr("x",0).attr("dy",`${a===0?n[0]*s:n[1]}em`).text(l)})}}}function He(e){const{x:t,y:n,width:r,height:i}=ke(e,!0);return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function wt(e){const{width:t,height:n}=E(e),r=He(e),i=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:i,y:o,width:t,height:n}}function Ct(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Le(r||e,t)}catch(o){}return i.map(o=>isNaN(o)?0:o)}function E(e,t=!1){return B(!0,e,t)}function ke(e,t=!1){return B(!1,e,t)}function Pt(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${qe(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function Rt(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Fe(n.cssRules)))}catch(i){(r=b.console)==null||r.warn(`Error while reading rules from ${n.href}: ${String(i)}`)}}),t}function It(e){var t,n,r,i,o,s;return{x:((n=(t=b.pageXOffset)!=null?t:b.scrollX)!=null?n:0)+((r=e.scrollLeft)!=null?r:0),y:((o=(i=b.pageYOffset)!=null?i:b.scrollY)!=null?o:0)+((s=e.scrollTop)!=null?s:0)}}function St(e,t=0,n=0,r=!0){const i=new DOMPoint(t,n),o=e.getScreenCTM(),s=i.matrixTransform(r?o==null?void 0:o.inverse():o);if(r===!1){const l=E(e);s.x-=l.x,s.y-=l.y}return s}function Xe(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function jt(e,t){var n;const r=(n=e==null?void 0:e.getAttribute)==null?void 0:n.call(e,t);if(r)return parseFloat(r);const i=Xe(e);return t==="x"?i.e:i.f}function Dt(e){const t=e.attr("viewBox");return t?t.trim().split(/[\s,]+/).length===4:!1}function Lt(e,t,n=!1){const r=!!e.node;let i=!1;for(const[o,s]of Object.entries(t))if(i=r?e.style(o)===s:e.style[o]===s,n?!i:i)break;return i}function Ft(){var e,t;return((e=$)==null?void 0:e.hidden)===!1||((t=$)==null?void 0:t.visibilityState)==="visible"}function Mt(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=b,o=r==null?void 0:r("(pointer:coarse)").matches;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in b||n&&$ instanceof n)s=!0;else if(o)s=!0;else{const a=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(a)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(a)}return e&&!o&&(r==null?void 0:r("(pointer:fine)").matches)&&"mouse"||s&&"touch"||"mouse"}function Bt(e,t){e.pendingRaf!==null?(b.cancelAnimationFrame(e.pendingRaf),e.pendingRaf=b.requestAnimationFrame(()=>{e.pendingRaf=null,t()})):(e.pendingRaf=b.requestAnimationFrame(()=>{e.pendingRaf=null}),t())}const Nt={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const o=me.createEvent("MouseEvent");o.initMouseEvent(r,i.bubbles,i.cancelable,g,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}})(),touch:(e,t,n)=>{const r=new Touch(x({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function Ue(e){const t=this.config;let n,r,i;const o=()=>{const s=r.shift();if(s&&n&&v(n)&&s in n)return n=n[s],o();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),i=o(),xe(i)&&(t[s]=i)}),this.api&&(this.state.orgConfig=e)}var Ye=Object.defineProperty,Ve=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t,n)=>Ve(e,typeof t!="symbol"?t+"":t,n);class N{constructor(t={}){m(this,"$$"),m(this,"options"),m(this,"config"),this.options=t}loadConfig(){Ue.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}m(N,"version","4.0.2");class Ge{constructor(){return{selector:void 0}}}var ze=Object.defineProperty,We=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t,n)=>We(e,typeof t!="symbol"?t+"":t,n);class H extends N{constructor(t){return super(t),q(this,"element"),this.config=new Ge,this}$beforeInit(){this.loadConfig(),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,o,s){return s==="getShapeX"?{}:r.call(this,i,o)},t.getBarW=function(i,o){return n.call(this,i,o,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:o}}}=this;let s=o.pageY-i*1.35,l=o.pageX-r/2;return s<0&&(s=0),l<0&&(l=0),{top:s,left:l}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const o=i.querySelector("svg");o[r]("mouseover",this.overHandler),o[r]("mousemove",this.moveHandler),o[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=E(t.target,!0)}moveHandler(t){var n,r,i,o;const{$$:s}=this,l=s.getDataIndexFromEvent(t),a=(n=s.api.data(t.target.__id))==null?void 0:n[0],f=(r=a==null?void 0:a.values)==null?void 0:r[l];f&&!f.name&&(f.name=f.id),s.state.event=t,(i=s.isPointFocusOnly)!=null&&i.call(s)&&f&&((o=s.showCircleFocus)==null||o.call(s,[f])),s.setExpand(l,a.id,!0),s.showTooltip([f],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const o=n.api.data(),s=(t=r.chart.html().match(/<svg[^>]*>/))==null?void 0:t[0];if(i.length<o.length){const l=r.chart.node();for(let a=o.length-i.length;a>0;a--)l.parentNode.insertBefore(i[0].cloneNode(),l.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}o.map(l=>l.id).forEach((l,a)=>{const f=`.${w.target}-${l}`,O=r.main.selectAll(f);let p=i[a].querySelector("svg");p||(i[a].innerHTML=`${s}</svg>`,p=i[a].querySelector("svg"),p.__id=l),p.querySelector(f)||O.style("opacity",null),O.style("fill","none").style("opacity",null),p.innerHTML="",p.appendChild(O.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}return q(H,"version","0.0.1"),u=u.default,u})()});
13
+ `),s=r?o.length-1:1;e.html(""),o.forEach((l,a)=>{e.append("tspan").attr("x",0).attr("dy",`${a===0?n[0]*s:n[1]}em`).text(l)})}}}function He(e){const{x:t,y:n,width:r,height:i}=ke(e,!0);return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function wt(e){const{width:t,height:n}=E(e),r=He(e),i=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:i,y:o,width:t,height:n}}function Ct(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Le(r||e,t)}catch(o){}return i.map(o=>isNaN(o)?0:o)}function E(e,t=!1){return B(!0,e,t)}function ke(e,t=!1){return B(!1,e,t)}function Pt(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${qe(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function Rt(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Fe(n.cssRules)))}catch(i){(r=b.console)==null||r.warn(`Error while reading rules from ${n.href}: ${String(i)}`)}}),t}function It(e){var t,n,r,i,o,s;return{x:((n=(t=b.pageXOffset)!=null?t:b.scrollX)!=null?n:0)+((r=e.scrollLeft)!=null?r:0),y:((o=(i=b.pageYOffset)!=null?i:b.scrollY)!=null?o:0)+((s=e.scrollTop)!=null?s:0)}}function St(e,t=0,n=0,r=!0){const i=new DOMPoint(t,n),o=e.getScreenCTM(),s=i.matrixTransform(r?o==null?void 0:o.inverse():o);if(r===!1){const l=E(e);s.x-=l.x,s.y-=l.y}return s}function Xe(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function jt(e,t){var n;const r=(n=e==null?void 0:e.getAttribute)==null?void 0:n.call(e,t);if(r)return parseFloat(r);const i=Xe(e);return t==="x"?i.e:i.f}function Dt(e){const t=e.attr("viewBox");return t?t.trim().split(/[\s,]+/).length===4:!1}function Lt(e,t,n=!1){const r=!!e.node;let i=!1;for(const[o,s]of Object.entries(t))if(i=r?e.style(o)===s:e.style[o]===s,n?!i:i)break;return i}function Ft(){var e,t;return((e=$)==null?void 0:e.hidden)===!1||((t=$)==null?void 0:t.visibilityState)==="visible"}function Mt(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=b,o=r==null?void 0:r("(pointer:coarse)").matches;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in b||n&&$ instanceof n)s=!0;else if(o)s=!0;else{const a=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(a)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(a)}return e&&!o&&(r==null?void 0:r("(pointer:fine)").matches)&&"mouse"||s&&"touch"||"mouse"}function Bt(e,t){e.pendingRaf!==null?(b.cancelAnimationFrame(e.pendingRaf),e.pendingRaf=b.requestAnimationFrame(()=>{e.pendingRaf=null,t()})):(e.pendingRaf=b.requestAnimationFrame(()=>{e.pendingRaf=null}),t())}const Nt={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const o=me.createEvent("MouseEvent");o.initMouseEvent(r,i.bubbles,i.cancelable,g,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}})(),touch:(e,t,n)=>{const r=new Touch(x({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function Ue(e){const t=this.config;let n,r,i;const o=()=>{const s=r.shift();if(s&&n&&v(n)&&s in n)return n=n[s],o();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),i=o(),xe(i)&&(t[s]=i)}),this.api&&(this.state.orgConfig=e)}var Ye=Object.defineProperty,Ve=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t,n)=>Ve(e,typeof t!="symbol"?t+"":t,n);class N{constructor(t={}){m(this,"$$"),m(this,"options"),m(this,"config"),this.options=t}loadConfig(){Ue.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}m(N,"version","4.0.3");class Ge{constructor(){return{selector:void 0}}}var ze=Object.defineProperty,We=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t,n)=>We(e,typeof t!="symbol"?t+"":t,n);class H extends N{constructor(t){return super(t),q(this,"element"),this.config=new Ge,this}$beforeInit(){this.loadConfig(),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,o,s){return s==="getShapeX"?{}:r.call(this,i,o)},t.getBarW=function(i,o){return n.call(this,i,o,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:o}}}=this;let s=o.pageY-i*1.35,l=o.pageX-r/2;return s<0&&(s=0),l<0&&(l=0),{top:s,left:l}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const o=i.querySelector("svg");o[r]("mouseover",this.overHandler),o[r]("mousemove",this.moveHandler),o[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=E(t.target,!0)}moveHandler(t){var n,r,i,o;const{$$:s}=this,l=s.getDataIndexFromEvent(t),a=(n=s.api.data(t.target.__id))==null?void 0:n[0],f=(r=a==null?void 0:a.values)==null?void 0:r[l];f&&!f.name&&(f.name=f.id),s.state.event=t,(i=s.isPointFocusOnly)!=null&&i.call(s)&&f&&((o=s.showCircleFocus)==null||o.call(s,[f])),s.setExpand(l,a.id,!0),s.showTooltip([f],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const o=n.api.data(),s=(t=r.chart.html().match(/<svg[^>]*>/))==null?void 0:t[0];if(i.length<o.length){const l=r.chart.node();for(let a=o.length-i.length;a>0;a--)l.parentNode.insertBefore(i[0].cloneNode(),l.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}o.map(l=>l.id).forEach((l,a)=>{const f=`.${w.target}-${l}`,O=r.main.selectAll(f);let p=i[a].querySelector("svg");p||(i[a].innerHTML=`${s}</svg>`,p=i[a].querySelector("svg"),p.__id=l),p.querySelector(f)||O.style("opacity",null),O.style("fill","none").style("opacity",null),p.innerHTML="",p.appendChild(O.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}return q(H,"version","0.0.1"),u=u.default,u})()});
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -423,7 +423,7 @@ class Plugin {
423
423
  });
424
424
  }
425
425
  }
426
- __publicField(Plugin, "version", "4.0.2");
426
+ __publicField(Plugin, "version", "4.0.3");
427
427
 
428
428
  // EXTERNAL MODULE: external {"commonjs":"d3-axis","commonjs2":"d3-axis","amd":"d3-axis","root":"d3"}
429
429
  var external_commonjs_d3_axis_commonjs2_d3_axis_amd_d3_axis_root_d3_ = __webpack_require__(6);
@@ -5,10 +5,10 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
- */(function(f,_){typeof exports=="object"&&typeof module=="object"?module.exports=_(require("d3-interpolate"),require("d3-scale"),require("d3-axis")):typeof define=="function"&&define.amd?define("bb",["d3-interpolate","d3-scale","d3-axis"],_):typeof exports=="object"?exports.bb=_(require("d3-interpolate"),require("d3-scale"),require("d3-axis")):(f.bb=f.bb||{},f.bb.plugin=f.bb.plugin||{},f.bb.plugin.stanford=_(f.d3,f.d3,f.d3))})(this,function(T,f,_){return(function(){"use strict";var nt={996:(function(t){t.exports=_}),798:(function(t){t.exports=T}),455:(function(t){t.exports=f})},L={};function h(t){var e=L[t];if(e!==void 0)return e.exports;var n=L[t]={exports:{}};return nt[t](n,n.exports,h),n.exports}(function(){h.d=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;){var o=e[n++],r=e[n++];h.o(t,o)?r===0&&n++:r===0?Object.defineProperty(t,o,{enumerable:!0,value:e[n++]}):Object.defineProperty(t,o,{enumerable:!0,get:r})}else for(var o in e)h.o(e,o)&&!h.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}})(),(function(){h.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}})();var y={};h.d(y,{default:function(){return Ee}});var ot=h(798),S=h(455),rt=Object.defineProperty,j=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,I=(t,e,n)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))st.call(e,n)&&I(t,n,e[n]);if(j)for(var n of j(e))at.call(e,n)&&I(t,n,e[n]);return t};const it={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},ct={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},lt={area:"bb-area",areas:"bb-areas"},ut={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},bt={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},dt={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ft={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},ht={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},pt={dragarea:"bb-dragarea",INCLUDED:"_included_"},gt={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},mt={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},xt={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},_t={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},yt={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},vt={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},$t={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Et={level:"bb-level",levels:"bb-levels"},St={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Ct={region:"bb-region",regions:"bb-regions"},wt={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Pt={shape:"bb-shape",shapes:"bb-shapes"},Rt={brush:"bb-brush",subchart:"bb-subchart"},Ot={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},C={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},At={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Tt={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ce=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({},it),ct),lt),ut),bt),dt),ft),ht),pt),mt),xt),_t),yt),vt),gt),$t),Et),St),Ct),wt),Pt),Rt),Ot),C),At),Tt);const we=t=>t||t===0,D=t=>typeof t=="function",w=t=>typeof t=="string",F=t=>typeof t=="number",Lt=t=>typeof t=="undefined",jt=t=>typeof t!="undefined",Pe=t=>typeof t=="boolean",Re=t=>Math.ceil(t/10)*10,Oe=t=>Math.ceil(t)+.5,Ae=t=>t[1]-t[0],P=t=>typeof t=="object",It=t=>{for(const e in t)return!1;return!0},M=t=>Lt(t)||t===null||w(t)&&t.length===0||P(t)&&!(t instanceof Date)&&It(t)||F(t)&&isNaN(t),Te=t=>!M(t),N=t=>Array.isArray(t),R=t=>t&&!(t!=null&&t.nodeType)&&P(t)&&!N(t);function Dt(t){const e=this.config;let n,o,r;const s=()=>{const a=o.shift();if(a&&n&&P(n)&&a in n)return n=n[a],s();if(!a)return n};Object.keys(e).forEach(a=>{n=t,o=a.split("_"),r=s(),jt(r)&&(e[a]=r)}),this.api&&(this.state.orgConfig=t)}var Ft=Object.defineProperty,Mt=(t,e,n)=>e in t?Ft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v=(t,e,n)=>Mt(t,typeof e!="symbol"?e+"":e,n);class B{constructor(e={}){v(this,"$$"),v(this,"options"),v(this,"config"),this.options=e}loadConfig(){Dt.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}v(B,"version","4.0.2");var Nt=h(996),p={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},Bt,qt,q,Ut,U,X,Xt,Yt,Y,Gt=Object.defineProperty,G=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,V=(t,e,n)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k=(t,e)=>{for(var n in e||(e={}))Vt.call(e,n)&&V(t,n,e[n]);if(G)for(var n of G(e))kt.call(e,n)&&V(t,n,e[n]);return t};function z(t,e){for(let n=0;n<t.length;n++){const o=t[n];o!==null&&q(o)&&e(o,n)}}function Le(t,e,n){return q(t[e])?t[e]:n}function je(t,e){for(const n in t)if(t[n]===e)return!0;return!1}function Ie(t,e,...n){const o=Ut(t);return o&&t.call(e,...n),o}function De(t,e){let n=0;const o=function(...r){!--n&&e.apply(this,r)};"duration"in t?t.each(()=>++n).on("end",o):(++n,t.call(o))}const Fe=t=>t.charAt(0).toUpperCase()+t.slice(1);function Me(t,e="-"){return t.split(e).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Ne=t=>[].slice.call(t);function Be(...t){const e=n=>{if(U(n))return n.map(e);if(X(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=e(n[r]);return o}return n};return t.map(n=>e(n)).reduce((n,o)=>k(k({},n),o))}function zt(t={},e){U(e)&&e.forEach(n=>zt(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}function qe(t){const e=t[0]instanceof Date,n=Array.from(new Set(e?t.map(Number):t));return e?n.map(o=>new Date(o)):n}function Ue(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function O(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return R(t)&&R(n)&&Object.keys(n).forEach(o=>{if(!/^(__proto__|constructor|prototype)$/i.test(o)){const r=n[o];r instanceof Date?t[o]=new Date(r.getTime()):R(r)?(!t[o]&&(t[o]={}),t[o]=O(t[o],r)):t[o]=N(r)?r.concat():r}}),O(t,...e)}function Ht(t,e=!0){let n;return t[0]instanceof Date?n=e?(o,r)=>o-r:(o,r)=>r-o:e&&!t.every(isNaN)?n=(o,r)=>o-r:e||(n=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),t.concat().sort(n)}function Xe(t,e){let n=e.filter(o=>Xt(o));if(n.length)if(Yt(n[0])){let o=t==="min"?1/0:-1/0;for(const r of n)(t==="min"?r<o:r>o)&&(o=r);n=o}else n[0]instanceof Date&&(n=Ht(n,t==="min")[0]);else n=void 0;return n}const Kt=(t,e,n=1)=>{const o=[],r=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=0;s<r;s++)o.push(t+s*n);return o};let Wt=0;function Ye(t=!0){const e=++Wt;return t?String(e):e}function H(t,e,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:a,w:i=0}=t[s];return r&&(a=t[s].y,i=t[s].h),e>=a&&e<=a+i?s:e<a?H(t,e,n,s-1,r):H(t,e,s+1,o,r)}function Ge(t,e){return qt(t.replace(/\{=([^}]+)\}/g,(n,o)=>{var r;return(r=e[o])!=null?r:""}))}function Zt(t){var e;let n;if(t instanceof Date)n=t;else if(w(t)){const{config:o,format:r}=this;n=(e=r.dataTime(o.data_xFormat)(t))!=null?e:new Date(t)}else F(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function Ve(t){if(X(t)&&!Y(t)){const a=t;return{top:a.top||0,right:a.right||0,bottom:a.bottom||0,left:a.left||0}}const e=(Y(t)?t.trim().split(/\s+/):[t]).map(a=>+a||0),[n,o=n,r=n,s=o]=e;return{top:n,right:o,bottom:r,left:s}}function Jt(t,e){e()===!1?Bt(()=>Jt(t,e)):t()}function ke(t,e=(n=>n)){const n=new Set;return z(t,(o,r)=>{n.add(e(o,r))}),n}function ze(t,e,n=(o=>o)){const o=new Map;return z(t,(r,s)=>{o.set(e(r,s),n(r,s))}),o}function Qt(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function te(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",o=s=>setTimeout(s,1),r=s=>clearTimeout(s);return[e?t.requestAnimationFrame:o,e?t.cancelAnimationFrame:r,n?t.requestIdleCallback:o,n?t.cancelIdleCallback:r]}const $=Qt(),ee=$==null?void 0:$.document,[He,Ke,We,Ze]=te($);var ne,g,A,oe,re;const se=/\s?(bb-)/g,ae=/\.+/g;function ie(t){return t.replace(se,".$1").replace(ae,".")}function K(t,e,n=!1){const o=s=>s[t?"getBoundingClientRect":"getBBox"](),r=t?"rectClient":"rectBBox";return n?o(e):!(r in e)||e.hasAttribute("width")&&e[r].width!==+(e.getAttribute("width")||0)?e[r]=o(e):e[r]}function Je(t,e,n=[-1,1],o=!1){if(!(!t||!re(e)))if(e.indexOf(`
11
+ */(function(f,_){typeof exports=="object"&&typeof module=="object"?module.exports=_(require("d3-interpolate"),require("d3-scale"),require("d3-axis")):typeof define=="function"&&define.amd?define("bb",["d3-interpolate","d3-scale","d3-axis"],_):typeof exports=="object"?exports.bb=_(require("d3-interpolate"),require("d3-scale"),require("d3-axis")):(f.bb=f.bb||{},f.bb.plugin=f.bb.plugin||{},f.bb.plugin.stanford=_(f.d3,f.d3,f.d3))})(this,function(T,f,_){return(function(){"use strict";var nt={996:(function(t){t.exports=_}),798:(function(t){t.exports=T}),455:(function(t){t.exports=f})},L={};function h(t){var e=L[t];if(e!==void 0)return e.exports;var n=L[t]={exports:{}};return nt[t](n,n.exports,h),n.exports}(function(){h.d=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;){var o=e[n++],r=e[n++];h.o(t,o)?r===0&&n++:r===0?Object.defineProperty(t,o,{enumerable:!0,value:e[n++]}):Object.defineProperty(t,o,{enumerable:!0,get:r})}else for(var o in e)h.o(e,o)&&!h.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}})(),(function(){h.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}})();var y={};h.d(y,{default:function(){return Ee}});var ot=h(798),S=h(455),rt=Object.defineProperty,j=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,I=(t,e,n)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))st.call(e,n)&&I(t,n,e[n]);if(j)for(var n of j(e))at.call(e,n)&&I(t,n,e[n]);return t};const it={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},ct={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},lt={area:"bb-area",areas:"bb-areas"},ut={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},bt={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},dt={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ft={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},ht={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},pt={dragarea:"bb-dragarea",INCLUDED:"_included_"},gt={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},mt={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},xt={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},_t={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},yt={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},vt={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},$t={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Et={level:"bb-level",levels:"bb-levels"},St={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Ct={region:"bb-region",regions:"bb-regions"},wt={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Pt={shape:"bb-shape",shapes:"bb-shapes"},Rt={brush:"bb-brush",subchart:"bb-subchart"},Ot={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},C={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},At={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Tt={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ce=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({},it),ct),lt),ut),bt),dt),ft),ht),pt),mt),xt),_t),yt),vt),gt),$t),Et),St),Ct),wt),Pt),Rt),Ot),C),At),Tt);const we=t=>t||t===0,D=t=>typeof t=="function",w=t=>typeof t=="string",F=t=>typeof t=="number",Lt=t=>typeof t=="undefined",jt=t=>typeof t!="undefined",Pe=t=>typeof t=="boolean",Re=t=>Math.ceil(t/10)*10,Oe=t=>Math.ceil(t)+.5,Ae=t=>t[1]-t[0],P=t=>typeof t=="object",It=t=>{for(const e in t)return!1;return!0},M=t=>Lt(t)||t===null||w(t)&&t.length===0||P(t)&&!(t instanceof Date)&&It(t)||F(t)&&isNaN(t),Te=t=>!M(t),N=t=>Array.isArray(t),R=t=>t&&!(t!=null&&t.nodeType)&&P(t)&&!N(t);function Dt(t){const e=this.config;let n,o,r;const s=()=>{const a=o.shift();if(a&&n&&P(n)&&a in n)return n=n[a],s();if(!a)return n};Object.keys(e).forEach(a=>{n=t,o=a.split("_"),r=s(),jt(r)&&(e[a]=r)}),this.api&&(this.state.orgConfig=t)}var Ft=Object.defineProperty,Mt=(t,e,n)=>e in t?Ft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v=(t,e,n)=>Mt(t,typeof e!="symbol"?e+"":e,n);class B{constructor(e={}){v(this,"$$"),v(this,"options"),v(this,"config"),this.options=e}loadConfig(){Dt.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}v(B,"version","4.0.3");var Nt=h(996),p={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},Bt,qt,q,Ut,U,X,Xt,Yt,Y,Gt=Object.defineProperty,G=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,V=(t,e,n)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k=(t,e)=>{for(var n in e||(e={}))Vt.call(e,n)&&V(t,n,e[n]);if(G)for(var n of G(e))kt.call(e,n)&&V(t,n,e[n]);return t};function z(t,e){for(let n=0;n<t.length;n++){const o=t[n];o!==null&&q(o)&&e(o,n)}}function Le(t,e,n){return q(t[e])?t[e]:n}function je(t,e){for(const n in t)if(t[n]===e)return!0;return!1}function Ie(t,e,...n){const o=Ut(t);return o&&t.call(e,...n),o}function De(t,e){let n=0;const o=function(...r){!--n&&e.apply(this,r)};"duration"in t?t.each(()=>++n).on("end",o):(++n,t.call(o))}const Fe=t=>t.charAt(0).toUpperCase()+t.slice(1);function Me(t,e="-"){return t.split(e).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Ne=t=>[].slice.call(t);function Be(...t){const e=n=>{if(U(n))return n.map(e);if(X(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=e(n[r]);return o}return n};return t.map(n=>e(n)).reduce((n,o)=>k(k({},n),o))}function zt(t={},e){U(e)&&e.forEach(n=>zt(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}function qe(t){const e=t[0]instanceof Date,n=Array.from(new Set(e?t.map(Number):t));return e?n.map(o=>new Date(o)):n}function Ue(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function O(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return R(t)&&R(n)&&Object.keys(n).forEach(o=>{if(!/^(__proto__|constructor|prototype)$/i.test(o)){const r=n[o];r instanceof Date?t[o]=new Date(r.getTime()):R(r)?(!t[o]&&(t[o]={}),t[o]=O(t[o],r)):t[o]=N(r)?r.concat():r}}),O(t,...e)}function Ht(t,e=!0){let n;return t[0]instanceof Date?n=e?(o,r)=>o-r:(o,r)=>r-o:e&&!t.every(isNaN)?n=(o,r)=>o-r:e||(n=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),t.concat().sort(n)}function Xe(t,e){let n=e.filter(o=>Xt(o));if(n.length)if(Yt(n[0])){let o=t==="min"?1/0:-1/0;for(const r of n)(t==="min"?r<o:r>o)&&(o=r);n=o}else n[0]instanceof Date&&(n=Ht(n,t==="min")[0]);else n=void 0;return n}const Kt=(t,e,n=1)=>{const o=[],r=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=0;s<r;s++)o.push(t+s*n);return o};let Wt=0;function Ye(t=!0){const e=++Wt;return t?String(e):e}function H(t,e,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:a,w:i=0}=t[s];return r&&(a=t[s].y,i=t[s].h),e>=a&&e<=a+i?s:e<a?H(t,e,n,s-1,r):H(t,e,s+1,o,r)}function Ge(t,e){return qt(t.replace(/\{=([^}]+)\}/g,(n,o)=>{var r;return(r=e[o])!=null?r:""}))}function Zt(t){var e;let n;if(t instanceof Date)n=t;else if(w(t)){const{config:o,format:r}=this;n=(e=r.dataTime(o.data_xFormat)(t))!=null?e:new Date(t)}else F(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function Ve(t){if(X(t)&&!Y(t)){const a=t;return{top:a.top||0,right:a.right||0,bottom:a.bottom||0,left:a.left||0}}const e=(Y(t)?t.trim().split(/\s+/):[t]).map(a=>+a||0),[n,o=n,r=n,s=o]=e;return{top:n,right:o,bottom:r,left:s}}function Jt(t,e){e()===!1?Bt(()=>Jt(t,e)):t()}function ke(t,e=(n=>n)){const n=new Set;return z(t,(o,r)=>{n.add(e(o,r))}),n}function ze(t,e,n=(o=>o)){const o=new Map;return z(t,(r,s)=>{o.set(e(r,s),n(r,s))}),o}function Qt(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function te(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",o=s=>setTimeout(s,1),r=s=>clearTimeout(s);return[e?t.requestAnimationFrame:o,e?t.cancelAnimationFrame:r,n?t.requestIdleCallback:o,n?t.cancelIdleCallback:r]}const $=Qt(),ee=$==null?void 0:$.document,[He,Ke,We,Ze]=te($);var ne,g,A,oe,re;const se=/\s?(bb-)/g,ae=/\.+/g;function ie(t){return t.replace(se,".$1").replace(ae,".")}function K(t,e,n=!1){const o=s=>s[t?"getBoundingClientRect":"getBBox"](),r=t?"rectClient":"rectBBox";return n?o(e):!(r in e)||e.hasAttribute("width")&&e[r].width!==+(e.getAttribute("width")||0)?e[r]=o(e):e[r]}function Je(t,e,n=[-1,1],o=!1){if(!(!t||!re(e)))if(e.indexOf(`
12
12
  `)===-1)t.text(e);else{const r=[t.text(),e].map(s=>s.replace(/[\s\n]/g,""));if(r[0]!==r[1]){const s=e.split(`
13
13
  `),a=o?s.length-1:1;t.html(""),s.forEach((i,b)=>{t.append("tspan").attr("x",0).attr("dy",`${b===0?n[0]*a:n[1]}em`).text(i)})}}}function ce(t){const{x:e,y:n,width:o,height:r}=Z(t,!0);return[{x:e,y:n+r},{x:e,y:n},{x:e+o,y:n},{x:e+o,y:n+r}]}function Qe(t){const{width:e,height:n}=W(t),o=ce(t),r=o[0].x,s=Math.min(o[0].y,o[1].y);return{x:r,y:s,width:e,height:n}}function tn(t,e){var n;const o=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:n[0]);let r=[0,0];try{r=ne(o||t,e)}catch(s){}return r.map(s=>isNaN(s)?0:s)}function W(t,e=!1){return K(!0,t,e)}function Z(t,e=!1){return K(!1,t,e)}function en(t,e,n){const{rootSelector:o="",sheet:r}=t,s=`${o} ${ie(e)} {${n.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](s,r.cssRules.length)}function nn(t){let e=[];return t.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(e=e.concat(oe(n.cssRules)))}catch(r){(o=g.console)==null||o.warn(`Error while reading rules from ${n.href}: ${String(r)}`)}}),e}function on(t){var e,n,o,r,s,a;return{x:((n=(e=g.pageXOffset)!=null?e:g.scrollX)!=null?n:0)+((o=t.scrollLeft)!=null?o:0),y:((s=(r=g.pageYOffset)!=null?r:g.scrollY)!=null?s:0)+((a=t.scrollTop)!=null?a:0)}}function rn(t,e=0,n=0,o=!0){const r=new DOMPoint(e,n),s=t.getScreenCTM(),a=r.matrixTransform(o?s==null?void 0:s.inverse():s);if(o===!1){const i=W(t);a.x-=i.x,a.y-=i.y}return a}function le(t){const e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function sn(t,e){var n;const o=(n=t==null?void 0:t.getAttribute)==null?void 0:n.call(t,e);if(o)return parseFloat(o);const r=le(t);return e==="x"?r.e:r.f}function an(t){const e=t.attr("viewBox");return e?e.trim().split(/[\s,]+/).length===4:!1}function cn(t,e,n=!1){const o=!!t.node;let r=!1;for(const[s,a]of Object.entries(e))if(r=o?t.style(s)===a:t.style[s]===a,n?!r:r)break;return r}function ln(){var t,e;return((t=A)==null?void 0:t.hidden)===!1||((e=A)==null?void 0:e.visibilityState)==="visible"}function un(t,e){const{DocumentTouch:n,matchMedia:o,navigator:r}=g,s=o==null?void 0:o("(pointer:coarse)").matches;let a=!1;if(e)if(r&&"maxTouchPoints"in r)a=r.maxTouchPoints>0;else if("ontouchmove"in g||n&&A instanceof n)a=!0;else if(s)a=!0;else{const b=r.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(b)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(b)}return t&&!s&&(o==null?void 0:o("(pointer:fine)").matches)&&"mouse"||a&&"touch"||"mouse"}function bn(t,e){t.pendingRaf!==null?(g.cancelAnimationFrame(t.pendingRaf),t.pendingRaf=g.requestAnimationFrame(()=>{t.pendingRaf=null,e()})):(t.pendingRaf=g.requestAnimationFrame(()=>{t.pendingRaf=null}),e())}const dn={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,n,o=t())=>{e.dispatchEvent(new MouseEvent(n,o))}}catch(e){return(n,o,r=t())=>{const s=ee.createEvent("MouseEvent");s.initMouseEvent(o,r.bubbles,r.cancelable,$,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(t,e,n)=>{const o=new Touch(O({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};var ue=Object.defineProperty,be=(t,e,n)=>e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J=(t,e,n)=>be(t,typeof e!="symbol"?e+"":e,n);function de(t){return t==="d"?e=>Math.round(e).toString():e=>String(e)}class fe{constructor(e){J(this,"owner"),J(this,"colorScale"),this.owner=e}drawColorScale(){const{$$:e,config:n}=this.owner,o=e.data.targets[0],r=e.state.height-n.padding_bottom-n.padding_top,s=n.scale_width,a=5,i=Kt(n.padding_bottom,r,a),b=(0,S.scaleSequential)(o.colors).domain([i[i.length-1],i[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=e.$el.svg.append("g").attr("width",50).attr("height",r).attr("class",p.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${n.padding_top})`).selectAll("bars").data(i).enter().append("rect").attr("y",(x,Se)=>Se*a).attr("x",0).attr("width",s).attr("height",a).attr("fill",x=>b(x));const d=(0,S.scaleSymlog)().domain([o.minEpochs,o.maxEpochs]).range([i[0]+n.padding_top+i[i.length-1]+a-1,i[0]+n.padding_top]),c=(0,Nt.axisRight)(d),l=n.scale_format;l==="pow10"?c.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):D(l)?c.tickFormat(l):c.tickFormat(de("d"));const m=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${s},0)`).call(c);l==="pow10"&&m.selectAll(".tick text").text(null).filter(x=>x/Math.pow(10,Math.ceil(Math.log(x)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(x=>Math.round(Math.log(x)/Math.LN10)),this.colorScale.attr("transform",`translate(${e.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+Z(this.colorScale.node(),!0).width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function he(t,e){const n=t.x,o=t.value;let r=!1;for(let s=0,a=e.length-1;s<e.length;a=s++){const i=e[s].x,b=e[s].y,d=e[a].x,c=e[a].y;b>o!=c>o&&n<(d-i)*(o-b)/(c-b)+i&&(r=!r)}return r}function pe(t,e){return t.epochs<e.epochs?-1:t.epochs>e.epochs?1:0}function ge(t){let e=0,n,o;for(let r=0,s=t.length,a=s-1;r<s;a=r,r++)n=t[r],o=t[a],e+=n.x*o.y,e-=n.y*o.x;return e/=2,e}function E(t){const e=ge(t);let n=0,o=0,r;for(let s=0,a=t.length,i=a-1;s<a;i=s,s++){const b=t[s],d=t[i];r=b.x*d.y-d.x*b.y,n+=(b.x+d.x)*r,o+=(b.y+d.y)*r}return r=e*6,{x:n/r,y:o/r}}var me=Object.defineProperty,xe=(t,e,n)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_e=(t,e,n)=>xe(t,typeof e!="symbol"?e+"":e,n);class ye{constructor(e){_e(this,"owner"),this.owner=e;const n=e.$$.$el.main.select(".bb-chart").append("g").attr("class",p.stanfordElements);n.append("g").attr("class",p.stanfordLines),n.append("g").attr("class",p.stanfordRegions)}updateStanfordLines(e){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),b=r.select(`.${p.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${p.stanfordLine}`).data(this.owner.config.lines);b.exit().transition().duration(e).style("opacity","0").remove();const d=b.enter().append("g");d.append("line").style("opacity","0"),d.merge(b).attr("class",c=>p.stanfordLine+(c.class?` ${c.class}`:"")).select("line").transition().duration(e).attr("x1",c=>s?i(c,"y1"):a(c,"x1")).attr("x2",c=>s?i(c,"y2"):a(c,"x2")).attr("y1",c=>s?a(c,"x1"):i(c,"y1")).attr("y2",c=>s?a(c,"x2"):i(c,"y2")).transition().style("opacity",null)}updateStanfordRegions(e){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),b=this.owner.countEpochsInRegion.bind(n);let d=r.select(`.${p.stanfordRegions}`).selectAll(`.${p.stanfordRegion}`).data(this.owner.config.regions);d.exit().transition().duration(e).style("opacity","0").remove();const c=d.enter().append("g");c.append("polygon").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),d=c.merge(d),d.attr("class",l=>p.stanfordRegion+(l.class?` ${l.class}`:"")).select("polygon").transition().duration(e).attr("points",l=>l.points.map(m=>[s?i(m,"y"):a(m,"x"),s?a(m,"x"):i(m,"y")].join(",")).join(" ")).transition().style("opacity",l=>String(l.opacity?l.opacity:.2)),d.select("text").transition().duration(e).attr("x",l=>s?i(E(l.points),"y"):a(E(l.points),"x")).attr("y",l=>s?a(E(l.points),"x"):i(E(l.points),"y")).text(l=>{if(l.text){const{value:m,percentage:x}=b(l.points);return l.text(m,x)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(e=0){this.updateStanfordLines(e),this.updateStanfordRegions(e)}xvCustom(e,n){const o=this,{axis:r,config:s}=o;let a=n?e[n]:o.getBaseValue(e);return r.isTimeSeries()?a=Zt.call(o,a):r.isCategorized()&&w(a)&&(a=s.axis_x_categories.indexOf(e.value)),o.scale.x(a)}yvCustom(e,n){const o=this,r=e.axis&&e.axis==="y2"?o.scale.y2:o.scale.y,s=n?e[n]:o.getBaseValue(e);return r(s)}}class Q{constructor(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}}}var ve=Object.defineProperty,$e=(t,e,n)=>e in t?ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tt=(t,e,n)=>$e(t,typeof e!="symbol"?e+"":e,n);function et(t,e,n,o=1){return{h:+t,s:+e,l:+n,opacity:+o}}class Ee extends B{constructor(e){return super(e),tt(this,"colorScale"),tt(this,"elements"),this.config=new Q,this}$beforeInit(){const{$$:e}=this;e.config.data_xSort=!1,e.isMultipleX=()=>!0,e.showGridFocus=()=>{},e.labelishData=o=>o.values,e.opacityForCircle=()=>1;const n=e.getCurrentPadding.bind(e);e.getCurrentPadding=()=>{const o=n();return o.right+=this.colorScale?this.colorScale.getColorScalePadding():0,o}}$init(){const{$$:e}=this;this.loadConfig(),e.color=this.getStanfordPointColor.bind(e),this.colorScale=new fe(this),this.elements=new ye(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),e.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(e){var n,o;(n=this.colorScale)==null||n.drawColorScale(),(o=this.elements)==null||o.updateStanfordElements(e)}getOptions(){return new Q}convertData(){const e=this.$$.data.targets,n=this.options.epochs;e.forEach(o=>{o.values.forEach((r,s)=>{r.epochs=n[s]}),o.minEpochs=void 0,o.maxEpochs=void 0,o.colors=void 0,o.colorscale=void 0})}initStanfordData(){const{config:e}=this,n=this.$$.data.targets[0];n.values.sort(pe);let o=1/0,r=-1/0;for(let s=0;s<n.values.length;s++){const a=n.values[s].epochs;a<o&&(o=a),a>r&&(r=a)}n.minEpochs=isNaN(e.scale_min)?o:e.scale_min,n.maxEpochs=isNaN(e.scale_max)?r:e.scale_max,n.colors=D(e.colors)?e.colors:(0,ot.interpolateHslLong)(et(250,1,.5),et(0,1,.5)),n.colorscale=(0,S.scaleSequentialLog)(n.colors).domain([n.minEpochs,n.maxEpochs])}getStanfordPointColor(e){return this.data.targets[0].colorscale(e.epochs)}setStanfordTooltip(){const{config:e}=this.$$;M(e.tooltip_contents)&&(e.tooltip_contents=function(n,o,r,s){const{data_x:a}=e;let i=`<table class="${C.tooltip}"><tbody>`;return n.forEach(b=>{const{id:d="",value:c=0,epochs:l=0,x:m=""}=b;i+=`<tr>
14
14
  <th>${a||""}</th>
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -758,7 +758,7 @@ class Plugin {
758
758
  });
759
759
  }
760
760
  }
761
- __publicField(Plugin, "version", "4.0.2");
761
+ __publicField(Plugin, "version", "4.0.3");
762
762
 
763
763
  ;// ./src/Plugin/tableview/const.ts
764
764
 
@@ -5,11 +5,11 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(a,d){typeof exports=="object"&&typeof module=="object"?module.exports=d():typeof define=="function"&&define.amd?define("bb",[],d):typeof exports=="object"?exports.bb=d():(a.bb=a.bb||{},a.bb.plugin=a.bb.plugin||{},a.bb.plugin.tableview=d())})(this,function(){return(function(){"use strict";var p={};(function(){p.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],o=t[n++];p.o(e,r)?o===0&&n++:o===0?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in t)p.o(t,r)&&!p.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var a={};p.d(a,{default:function(){return Ge}});const d=new Set(["span","div","p","br","b","i","em","small","strong","mark","u","s","sub","sup","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","hr","pre","code","blockquote","abbr","ins","del","a","img","figure","figcaption","svg","g","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","use","defs","symbol","clipPath","mask","linearGradient","radialGradient","stop","pattern","marker","title","desc"]),Y=new Set(["class","id","style","title","lang","dir","href","src","alt","width","height","colspan","rowspan","scope","headers","d","points","x","y","x1","x2","y1","y2","cx","cy","r","rx","ry","dx","dy","viewBox","preserveAspectRatio","transform","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","opacity","clip-path","clip-rule","mask","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternTransform","marker-start","marker-mid","marker-end","markerWidth","markerHeight","refX","refY","xlink:href"]),w=new Map;d.forEach(e=>w.set(e.toLowerCase(),e));const v=new Map;Y.forEach(e=>v.set(e.toLowerCase(),e));const J=new Set(["http:","https:","mailto:"]),K=new Set(["href","src","xlink:href"]),ee=/^<\/?([a-zA-Z][a-zA-Z0-9]*)/,te=/^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/,ne=/^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/,L=/([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,M=/url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi,re=["expression(","behavior:","binding:","@import","@charset","-moz-binding:"];function T(e){return e.replace(/&colon;/gi,":").replace(/&newline;/gi,`
12
- `).replace(/&tab;/gi," ").replace(/&nbsp;/gi," ").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&#(\d+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,10))).replace(/&#x([0-9a-f]+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,16)))}function z(e){const n=T(e).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!n||n.startsWith("#"))return!0;const r=n.match(/^[^/?#]*:/);return r?J.has(r[0]):!0}function oe(e){const n=T(e).replace(/[\u0000-\u001f]/g,"");M.lastIndex=0;let r;for(;(r=M.exec(n))!==null;)if(!z(r[1]))return null;const o=n.toLowerCase().replace(/\s/g,"");for(const i of re)if(o.includes(i))return null;return e}const ie={'"':"&quot;","'":"&#39;","`":"&#96;"},se=/["'`]/g;function $(e){return e.replace(se,t=>ie[t])}function ae(e,t,n=!1){if(K.has(e))return z(t)?n?$(t):t:null;if(e==="style"){const o=oe(t);return o===null?null:n?$(o):o}const r=T(t).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(r)?null:n?$(t):t}function le(e){const t=e.match(ee);return t?t[1].toLowerCase():null}function ce(e){const t=le(e);return t!==null&&w.has(t)}function fe(e){var t,n,r;const o=e.match(te);if(o){const f=o[1].toLowerCase();return`</${(t=w.get(f))!=null?t:f}>`}const i=e.match(ne);if(!i)return"";const[,s,l,g]=i,c=s.toLowerCase(),u=(n=w.get(c))!=null?n:c,A=[];L.lastIndex=0;let _;for(;(_=L.exec(l))!==null;){const f=_[1].toLowerCase(),H=_[2],X=_[3],D=_[4];if(f.startsWith("on"))continue;const Z=(r=v.get(f))!=null?r:f;let S,y;if(H!==void 0)S=H,y='"';else if(X!==void 0)S=X,y="'";else if(D!==void 0)S=D,y='"';else{v.has(f)&&A.push(Z);continue}if(v.has(f)){const Q=ae(f,S,D!==void 0);Q!==null&&A.push(`${Z}=${y}${Q}${y}`)}}const Ue=A.length>0?` ${A.join(" ")}`:"";return`<${u}${Ue}${g?"/>":">"}`}function ue(e){return typeof e!="string"||!e||e.indexOf("<")===-1?e:e.replace(/<\/?[^>]*>|[^<>\s]+>/g,t=>t.startsWith("<!--")?"":t.startsWith("<")?ce(t)?fe(t):t.replace(/</g,"&lt;"):t.slice(0,-1)+"&gt;")}var pe,I,de,C,m,he,R,x,ge=Object.defineProperty,j=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t)=>{for(var n in t||(t={}))me.call(t,n)&&k(e,n,t[n]);if(j)for(var n of j(t))be.call(t,n)&&k(e,n,t[n]);return e};function U(e,t){for(let n=0;n<e.length;n++){const r=e[n];r!==null&&I(r)&&t(r,n)}}function Ve(e,t,n){return I(e[t])?e[t]:n}function Fe(e,t){for(const n in e)if(e[n]===t)return!0;return!1}function qe(e,t,...n){const r=de(e);return r&&e.call(t,...n),r}function Be(e,t){let n=0;const r=function(...o){!--n&&t.apply(this,o)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}const We=e=>e.charAt(0).toUpperCase()+e.slice(1);function He(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Xe=e=>[].slice.call(e);function Ze(...e){const t=n=>{if(C(n))return n.map(t);if(m(n)&&n.constructor){const r=new n.constructor;for(const o in n)r[o]=t(n[o]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>G(G({},n),r))}function _e(e={},t){C(t)&&t.forEach(n=>_e(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}function Qe(e){const t=e[0]instanceof Date,n=Array.from(new Set(t?e.map(Number):e));return t?n.map(r=>new Date(r)):n}function Ye(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function V(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return m(e)&&m(n)&&Object.keys(n).forEach(r=>{if(!/^(__proto__|constructor|prototype)$/i.test(r)){const o=n[r];o instanceof Date?e[r]=new Date(o.getTime()):m(o)?(!e[r]&&(e[r]={}),e[r]=V(e[r],o)):e[r]=C(o)?o.concat():o}}),V(e,...t)}function ye(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,o)=>r-o:(r,o)=>o-r:t&&!e.every(isNaN)?n=(r,o)=>r-o:t||(n=(r,o)=>r>o&&-1||r<o&&1||r===o&&0),e.concat().sort(n)}function Je(e,t){let n=t.filter(r=>he(r));if(n.length)if(R(n[0])){let r=e==="min"?1/0:-1/0;for(const o of n)(e==="min"?o<r:o>r)&&(r=o);n=r}else n[0]instanceof Date&&(n=ye(n,e==="min")[0]);else n=void 0;return n}const Ke=(e,t,n=1)=>{const r=[],o=Math.max(0,Math.ceil((t-e)/n))|0;for(let i=0;i<o;i++)r.push(e+i*n);return r};let we=0;function et(e=!0){const t=++we;return e?String(t):t}function F(e,t,n,r,o){if(n>r)return-1;const i=Math.floor((n+r)/2);let{x:s,w:l=0}=e[i];return o&&(s=e[i].y,l=e[i].h),t>=s&&t<=s+l?i:t<s?F(e,t,n,i-1,o):F(e,t,i+1,r,o)}function E(e,t){return ue(e.replace(/\{=([^}]+)\}/g,(n,r)=>{var o;return(o=t[r])!=null?o:""}))}function tt(e){var t;let n;if(e instanceof Date)n=e;else if(x(e)){const{config:r,format:o}=this;n=(t=o.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else R(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function nt(e){if(m(e)&&!x(e)){const s=e;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const t=(x(e)?e.trim().split(/\s+/):[e]).map(s=>+s||0),[n,r=n,o=n,i=r]=t;return{top:n,right:r,bottom:o,left:i}}function ve(e,t){t()===!1?pe(()=>ve(e,t)):e()}function rt(e,t=(n=>n)){const n=new Set;return U(e,(r,o)=>{n.add(t(r,o))}),n}function ot(e,t,n=(r=>r)){const r=new Map;return U(e,(o,i)=>{r.set(t(o,i),n(o,i))}),r}const it=e=>e||e===0,st=e=>typeof e=="function",Ee=e=>typeof e=="string",q=e=>typeof e=="number",Oe=e=>typeof e=="undefined",Ae=e=>typeof e!="undefined",at=e=>typeof e=="boolean",lt=e=>Math.ceil(e/10)*10,ct=e=>Math.ceil(e)+.5,ft=e=>e[1]-e[0],P=e=>typeof e=="object",Se=e=>{for(const t in e)return!1;return!0},Te=e=>Oe(e)||e===null||Ee(e)&&e.length===0||P(e)&&!(e instanceof Date)&&Se(e)||q(e)&&isNaN(e),ut=e=>!Te(e),$e=e=>Array.isArray(e),pt=e=>e&&!(e!=null&&e.nodeType)&&P(e)&&!$e(e);function Ce(e){const t=this.config;let n,r,o;const i=()=>{const s=r.shift();if(s&&n&&P(n)&&s in n)return n=n[s],i();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),o=i(),Ae(o)&&(t[s]=o)}),this.api&&(this.state.orgConfig=e)}var xe=Object.defineProperty,Pe=(e,t,n)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t,n)=>Pe(e,typeof t!="symbol"?t+"":t,n);class B{constructor(t={}){O(this,"$$"),O(this,"options"),O(this,"config"),this.options=t}loadConfig(){Ce.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}O(B,"version","4.0.2");const h={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
12
+ `).replace(/&tab;/gi," ").replace(/&nbsp;/gi," ").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&amp;/gi,"&").replace(/&quot;/gi,'"').replace(/&apos;/gi,"'").replace(/&#(\d+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,10))).replace(/&#x([0-9a-f]+);?/gi,(t,n)=>String.fromCharCode(parseInt(n,16)))}function z(e){const n=T(e).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!n||n.startsWith("#"))return!0;const r=n.match(/^[^/?#]*:/);return r?J.has(r[0]):!0}function oe(e){const n=T(e).replace(/[\u0000-\u001f]/g,"");M.lastIndex=0;let r;for(;(r=M.exec(n))!==null;)if(!z(r[1]))return null;const o=n.toLowerCase().replace(/\s/g,"");for(const i of re)if(o.includes(i))return null;return e}const ie={'"':"&quot;","'":"&#39;","`":"&#96;"},se=/["'`]/g;function $(e){return e.replace(se,t=>ie[t])}function ae(e,t,n=!1){if(K.has(e))return z(t)?n?$(t):t:null;if(e==="style"){const o=oe(t);return o===null?null:n?$(o):o}const r=T(t).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(r)?null:n?$(t):t}function le(e){const t=e.match(ee);return t?t[1].toLowerCase():null}function ce(e){const t=le(e);return t!==null&&w.has(t)}function fe(e){var t,n,r;const o=e.match(te);if(o){const f=o[1].toLowerCase();return`</${(t=w.get(f))!=null?t:f}>`}const i=e.match(ne);if(!i)return"";const[,s,l,g]=i,c=s.toLowerCase(),u=(n=w.get(c))!=null?n:c,A=[];L.lastIndex=0;let _;for(;(_=L.exec(l))!==null;){const f=_[1].toLowerCase(),H=_[2],X=_[3],D=_[4];if(f.startsWith("on"))continue;const Z=(r=v.get(f))!=null?r:f;let S,y;if(H!==void 0)S=H,y='"';else if(X!==void 0)S=X,y="'";else if(D!==void 0)S=D,y='"';else{v.has(f)&&A.push(Z);continue}if(v.has(f)){const Q=ae(f,S,D!==void 0);Q!==null&&A.push(`${Z}=${y}${Q}${y}`)}}const Ue=A.length>0?` ${A.join(" ")}`:"";return`<${u}${Ue}${g?"/>":">"}`}function ue(e){return typeof e!="string"||!e||e.indexOf("<")===-1?e:e.replace(/<\/?[^>]*>|[^<>\s]+>/g,t=>t.startsWith("<!--")?"":t.startsWith("<")?ce(t)?fe(t):t.replace(/</g,"&lt;"):t.slice(0,-1)+"&gt;")}var pe,I,de,C,m,he,R,x,ge=Object.defineProperty,j=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t)=>{for(var n in t||(t={}))me.call(t,n)&&k(e,n,t[n]);if(j)for(var n of j(t))be.call(t,n)&&k(e,n,t[n]);return e};function U(e,t){for(let n=0;n<e.length;n++){const r=e[n];r!==null&&I(r)&&t(r,n)}}function Ve(e,t,n){return I(e[t])?e[t]:n}function Fe(e,t){for(const n in e)if(e[n]===t)return!0;return!1}function qe(e,t,...n){const r=de(e);return r&&e.call(t,...n),r}function Be(e,t){let n=0;const r=function(...o){!--n&&t.apply(this,o)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}const We=e=>e.charAt(0).toUpperCase()+e.slice(1);function He(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Xe=e=>[].slice.call(e);function Ze(...e){const t=n=>{if(C(n))return n.map(t);if(m(n)&&n.constructor){const r=new n.constructor;for(const o in n)r[o]=t(n[o]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>G(G({},n),r))}function _e(e={},t){C(t)&&t.forEach(n=>_e(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}function Qe(e){const t=e[0]instanceof Date,n=Array.from(new Set(t?e.map(Number):e));return t?n.map(r=>new Date(r)):n}function Ye(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function V(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return m(e)&&m(n)&&Object.keys(n).forEach(r=>{if(!/^(__proto__|constructor|prototype)$/i.test(r)){const o=n[r];o instanceof Date?e[r]=new Date(o.getTime()):m(o)?(!e[r]&&(e[r]={}),e[r]=V(e[r],o)):e[r]=C(o)?o.concat():o}}),V(e,...t)}function ye(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,o)=>r-o:(r,o)=>o-r:t&&!e.every(isNaN)?n=(r,o)=>r-o:t||(n=(r,o)=>r>o&&-1||r<o&&1||r===o&&0),e.concat().sort(n)}function Je(e,t){let n=t.filter(r=>he(r));if(n.length)if(R(n[0])){let r=e==="min"?1/0:-1/0;for(const o of n)(e==="min"?o<r:o>r)&&(r=o);n=r}else n[0]instanceof Date&&(n=ye(n,e==="min")[0]);else n=void 0;return n}const Ke=(e,t,n=1)=>{const r=[],o=Math.max(0,Math.ceil((t-e)/n))|0;for(let i=0;i<o;i++)r.push(e+i*n);return r};let we=0;function et(e=!0){const t=++we;return e?String(t):t}function F(e,t,n,r,o){if(n>r)return-1;const i=Math.floor((n+r)/2);let{x:s,w:l=0}=e[i];return o&&(s=e[i].y,l=e[i].h),t>=s&&t<=s+l?i:t<s?F(e,t,n,i-1,o):F(e,t,i+1,r,o)}function E(e,t){return ue(e.replace(/\{=([^}]+)\}/g,(n,r)=>{var o;return(o=t[r])!=null?o:""}))}function tt(e){var t;let n;if(e instanceof Date)n=e;else if(x(e)){const{config:r,format:o}=this;n=(t=o.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else R(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function nt(e){if(m(e)&&!x(e)){const s=e;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const t=(x(e)?e.trim().split(/\s+/):[e]).map(s=>+s||0),[n,r=n,o=n,i=r]=t;return{top:n,right:r,bottom:o,left:i}}function ve(e,t){t()===!1?pe(()=>ve(e,t)):e()}function rt(e,t=(n=>n)){const n=new Set;return U(e,(r,o)=>{n.add(t(r,o))}),n}function ot(e,t,n=(r=>r)){const r=new Map;return U(e,(o,i)=>{r.set(t(o,i),n(o,i))}),r}const it=e=>e||e===0,st=e=>typeof e=="function",Ee=e=>typeof e=="string",q=e=>typeof e=="number",Oe=e=>typeof e=="undefined",Ae=e=>typeof e!="undefined",at=e=>typeof e=="boolean",lt=e=>Math.ceil(e/10)*10,ct=e=>Math.ceil(e)+.5,ft=e=>e[1]-e[0],P=e=>typeof e=="object",Se=e=>{for(const t in e)return!1;return!0},Te=e=>Oe(e)||e===null||Ee(e)&&e.length===0||P(e)&&!(e instanceof Date)&&Se(e)||q(e)&&isNaN(e),ut=e=>!Te(e),$e=e=>Array.isArray(e),pt=e=>e&&!(e!=null&&e.nodeType)&&P(e)&&!$e(e);function Ce(e){const t=this.config;let n,r,o;const i=()=>{const s=r.shift();if(s&&n&&P(n)&&s in n)return n=n[s],i();if(!s)return n};Object.keys(t).forEach(s=>{n=e,r=s.split("_"),o=i(),Ae(o)&&(t[s]=o)}),this.api&&(this.state.orgConfig=e)}var xe=Object.defineProperty,Pe=(e,t,n)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t,n)=>Pe(e,typeof t!="symbol"?t+"":t,n);class B{constructor(t={}){O(this,"$$"),O(this,"options"),O(this,"config"),this.options=t}loadConfig(){Ce.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}O(B,"version","4.0.3");const h={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
13
13
  border-collapse:collapse;
14
14
  border-spacing:0;
15
15
  background:#fff;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -244,7 +244,7 @@ class Plugin {
244
244
  });
245
245
  }
246
246
  }
247
- __publicField(Plugin, "version", "4.0.2");
247
+ __publicField(Plugin, "version", "4.0.3");
248
248
 
249
249
  ;// ./src/Plugin/textoverlap/Options.ts
250
250
  class Options {
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
- */(function(c,u){typeof exports=="object"&&typeof module=="object"?module.exports=u(require("d3-delaunay")):typeof define=="function"&&define.amd?define("bb",["d3-delaunay"],u):typeof exports=="object"?exports.bb=u(require("d3-delaunay")):(c.bb=c.bb||{},c.bb.plugin=c.bb.plugin||{},c.bb.plugin.textoverlap=u(c.d3))})(this,function(_){return(function(){"use strict";var c={348:(function(e){e.exports=_})},u={};function l(e){var t=u[e];if(t!==void 0)return t.exports;var n=u[e]={exports:{}};return c[e](n,n.exports,l),n.exports}(function(){l.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],s=t[n++];l.o(e,r)?s===0&&n++:s===0?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:s})}else for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var p={};l.d(p,{default:function(){return T}});var m=l(348);function v(e){const t=e.length;let n=0,r=e[t-1];for(let s=0;s<t;s++){const o=r;r=e[s],n+=o[1]*r[0]-o[0]*r[1]}return n/2}function g(e){const t=e.length;let n=0,r=0,s=0,o=e[t-1];for(let i=0;i<t;i++){const a=o;o=e[i];const f=a[0]*o[1]-o[0]*a[1];s+=f,n+=(a[0]+o[0])*f,r+=(a[1]+o[1])*f}return s*=3,[n/s,r/s]}const B=e=>e||e===0,H=e=>typeof e=="function",x=e=>typeof e=="string",$=e=>typeof e=="number",O=e=>typeof e=="undefined",w=e=>typeof e!="undefined",I=e=>typeof e=="boolean",S=e=>Math.ceil(e/10)*10,z=e=>Math.ceil(e)+.5,G=e=>e[1]-e[0],b=e=>typeof e=="object",A=e=>{for(const t in e)return!1;return!0},P=e=>O(e)||e===null||x(e)&&e.length===0||b(e)&&!(e instanceof Date)&&A(e)||$(e)&&isNaN(e),J=e=>!P(e),j=e=>Array.isArray(e),K=e=>e&&!(e!=null&&e.nodeType)&&b(e)&&!j(e);function M(e){const t=this.config;let n,r,s;const o=()=>{const i=r.shift();if(i&&n&&b(n)&&i in n)return n=n[i],o();if(!i)return n};Object.keys(t).forEach(i=>{n=e,r=i.split("_"),s=o(),w(s)&&(t[i]=s)}),this.api&&(this.state.orgConfig=e)}var C=Object.defineProperty,D=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);class y{constructor(t={}){h(this,"$$"),h(this,"options"),h(this,"config"),this.options=t}loadConfig(){M.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}h(y,"version","4.0.2");class E{constructor(){return{selector:void 0,extent:1,area:0}}}class T extends y{constructor(t){return super(t),this.config=new E,this}$init(){this.loadConfig()}$redraw(){const{$$:{$el:t},config:{selector:n}}=this,r=n?t.main.selectAll(n):t.text;!r.empty()&&this.preventLabelOverlap(r)}generateVoronoi(t){const{$$:n}=this,{scale:r}=n,[s,o]=["x","y"].map(i=>r[i].domain());return[s[1],o[0]]=[o[0],s[1]],m.Delaunay.from(t).voronoi([...s,...o])}preventLabelOverlap(t){const{extent:n,area:r}=this.config,s=t.data().map(a=>[a.index,a.value]),o=this.generateVoronoi(s);let i=0;t.each(function(){const a=o.cellPolygon(i);if(a&&this){const[f,N]=s[i],[k,q]=g(a),V=Math.abs(v(a)),d=Math.round(Math.atan2(q-N,k-f)/Math.PI*2),F=n*(d===0?1:-1),L=d===-1?-n:n+5,U=Math.abs(d)===1?"middle":d===0?"start":"end";this.style.display=V<r?"none":"",this.setAttribute("text-anchor",U),this.setAttribute("dy",`0.${d===1?71:35}em`),this.setAttribute("transform",`translate(${F}, ${L})`)}i++})}}return p=p.default,p})()});
11
+ */(function(c,u){typeof exports=="object"&&typeof module=="object"?module.exports=u(require("d3-delaunay")):typeof define=="function"&&define.amd?define("bb",["d3-delaunay"],u):typeof exports=="object"?exports.bb=u(require("d3-delaunay")):(c.bb=c.bb||{},c.bb.plugin=c.bb.plugin||{},c.bb.plugin.textoverlap=u(c.d3))})(this,function(_){return(function(){"use strict";var c={348:(function(e){e.exports=_})},u={};function l(e){var t=u[e];if(t!==void 0)return t.exports;var n=u[e]={exports:{}};return c[e](n,n.exports,l),n.exports}(function(){l.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],s=t[n++];l.o(e,r)?s===0&&n++:s===0?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:s})}else for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})();var p={};l.d(p,{default:function(){return T}});var m=l(348);function v(e){const t=e.length;let n=0,r=e[t-1];for(let s=0;s<t;s++){const o=r;r=e[s],n+=o[1]*r[0]-o[0]*r[1]}return n/2}function g(e){const t=e.length;let n=0,r=0,s=0,o=e[t-1];for(let i=0;i<t;i++){const a=o;o=e[i];const f=a[0]*o[1]-o[0]*a[1];s+=f,n+=(a[0]+o[0])*f,r+=(a[1]+o[1])*f}return s*=3,[n/s,r/s]}const B=e=>e||e===0,H=e=>typeof e=="function",x=e=>typeof e=="string",$=e=>typeof e=="number",O=e=>typeof e=="undefined",w=e=>typeof e!="undefined",I=e=>typeof e=="boolean",S=e=>Math.ceil(e/10)*10,z=e=>Math.ceil(e)+.5,G=e=>e[1]-e[0],b=e=>typeof e=="object",A=e=>{for(const t in e)return!1;return!0},P=e=>O(e)||e===null||x(e)&&e.length===0||b(e)&&!(e instanceof Date)&&A(e)||$(e)&&isNaN(e),J=e=>!P(e),j=e=>Array.isArray(e),K=e=>e&&!(e!=null&&e.nodeType)&&b(e)&&!j(e);function M(e){const t=this.config;let n,r,s;const o=()=>{const i=r.shift();if(i&&n&&b(n)&&i in n)return n=n[i],o();if(!i)return n};Object.keys(t).forEach(i=>{n=e,r=i.split("_"),s=o(),w(s)&&(t[i]=s)}),this.api&&(this.state.orgConfig=e)}var C=Object.defineProperty,D=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);class y{constructor(t={}){h(this,"$$"),h(this,"options"),h(this,"config"),this.options=t}loadConfig(){M.call(this,this.options)}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}h(y,"version","4.0.3");class E{constructor(){return{selector:void 0,extent:1,area:0}}}class T extends y{constructor(t){return super(t),this.config=new E,this}$init(){this.loadConfig()}$redraw(){const{$$:{$el:t},config:{selector:n}}=this,r=n?t.main.selectAll(n):t.text;!r.empty()&&this.preventLabelOverlap(r)}generateVoronoi(t){const{$$:n}=this,{scale:r}=n,[s,o]=["x","y"].map(i=>r[i].domain());return[s[1],o[0]]=[o[0],s[1]],m.Delaunay.from(t).voronoi([...s,...o])}preventLabelOverlap(t){const{extent:n,area:r}=this.config,s=t.data().map(a=>[a.index,a.value]),o=this.generateVoronoi(s);let i=0;t.each(function(){const a=o.cellPolygon(i);if(a&&this){const[f,N]=s[i],[k,q]=g(a),V=Math.abs(v(a)),d=Math.round(Math.atan2(q-N,k-f)/Math.PI*2),F=n*(d===0?1:-1),L=d===-1?-n:n+5,U=Math.abs(d)===1?"middle":d===0?"start":"end";this.style.display=V<r?"none":"",this.setAttribute("text-anchor",U),this.setAttribute("dy",`0.${d===1?71:35}em`),this.setAttribute("transform",`translate(${F}, ${L})`)}i++})}}return p=p.default,p})()});
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 4.0.2
8
+ * @version 4.0.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -24009,7 +24009,7 @@ class Plugin {
24009
24009
  });
24010
24010
  }
24011
24011
  }
24012
- __publicField(Plugin, "version", "4.0.2");
24012
+ __publicField(Plugin, "version", "4.0.3");
24013
24013
 
24014
24014
  ;// ./src/Plugin/bubblecompare/index.ts
24015
24015
  var bubblecompare_defProp = Object.defineProperty;