Repository: koaning/pytest-duration-insights (language: python)

Issue:
Feature request: Change units of the duration
I'm not sure if this is still being maintained. In case it is I would like to propose to make the units of the time somehow configurable. 

In my test scenario I have most of the tests ranging from some seconds up to a few minutes. Having everything in `ms` makes it kind of hard to read:
Example:
![image](https://github.com/koaning/pytest-duration-insights/assets/18548911/2852ca34-1b58-44f4-9bbf-b121319f7e5d)

It would be nice to have something to configure a specific unit or have something dynamic that when it reaches some value it switches to a higher unit.
Feature request: Change units of the duration
I'm not sure if this is still being maintained. In case it is I would like to propose to make the units of the time somehow configurable. 

In my test scenario I have most of the tests ranging from some seconds up to a few minutes. Having everything in `ms` makes it kind of hard to read:
Example:
![image](https://github.com/koaning/pytest-duration-insights/assets/18548911/2852ca34-1b58-44f4-9bbf-b121319f7e5d)

It would be nice to have something to configure a specific unit or have something dynamic that when it reaches some value it switches to a higher unit.
Feature request: Change units of the duration
I'm not sure if this is still being maintained. In case it is I would like to propose to make the units of the time somehow configurable. 

In my test scenario I have most of the tests ranging from some seconds up to a few minutes. Having everything in `ms` makes it kind of hard to read:
Example:
![image](https://github.com/koaning/pytest-duration-insights/assets/18548911/2852ca34-1b58-44f4-9bbf-b121319f7e5d)

It would be nice to have something to configure a specific unit or have something dynamic that when it reaches some value it switches to a higher unit.


Discussion / hints:
This project is not actively maintained, but if you're willing to help out I think this could be a nice feature to add. There are a bunch of details to get right though. 

Would you want all the milliseconds to update to seconds on the page? Or would it perhaps be fine to add some underscores so that numbers look like `87_123ms`? 

It really has been a while since I touched this repo ... I think the most scary part will be to check if the svelte/npm stuff still works. 
Being able to see seconds or minutes would be better, but I think just the underscores would also be enough to differentiate the tests that take noticeably longer.
This project is not actively maintained, but if you're willing to help out I think this could be a nice feature to add. There are a bunch of details to get right though. 

Would you want all the milliseconds to update to seconds on the page? Or would it perhaps be fine to add some underscores so that numbers look like `87_123ms`? 

It really has been a while since I touched this repo ... I think the most scary part will be to check if the svelte/npm stuff still works. 
Being able to see seconds or minutes would be better, but I think just the underscores would also be enough to differentiate the tests that take noticeably longer.
This project is not actively maintained, but if you're willing to help out I think this could be a nice feature to add. There are a bunch of details to get right though. 

Would you want all the milliseconds to update to seconds on the page? Or would it perhaps be fine to add some underscores so that numbers look like `87_123ms`? 

It really has been a while since I touched this repo ... I think the most scary part will be to check if the svelte/npm stuff still works. 
Being able to see seconds or minutes would be better, but I think just the underscores would also be enough to differentiate the tests that take noticeably longer.

Fix patch:
diff --git a/svelte-app/src/Flare.svelte b/svelte-app/src/Flare.svelte
index 8a3af28..15092e3 100644
--- a/svelte-app/src/Flare.svelte
+++ b/svelte-app/src/Flare.svelte
@@ -4,7 +4,7 @@
 	import { tweened } from 'svelte/motion';
 	import * as eases from 'svelte/easing';
 	import { fade } from 'svelte/transition';
-	import * as yootils from 'yootils';
+    import { formatTime } from './TimeUtils.svelte';
 	import Treemap from './Treemap.svelte';
 	
     export let data; 
@@ -75,7 +75,7 @@
 				>
 					<div class="contents">
 						<strong>{node.data.name}</strong>
-						<span>{yootils.commas(node.value)}</span>
+						<span>{formatTime(node.value)}</span>
 					</div>
 				</div>
 			{/if}
diff --git a/svelte-app/src/TableRow.svelte b/svelte-app/src/TableRow.svelte
index 4770bdd..e7407a1 100644
--- a/svelte-app/src/TableRow.svelte
+++ b/svelte-app/src/TableRow.svelte
@@ -1,6 +1,7 @@
 <script>
 import IconOpen from "./IconOpen.svelte"
 import IconClosed from "./IconClosed.svelte"
+import { formatTime } from './TimeUtils.svelte';
 
 export let data;
 export let maxtime; 
@@ -23,7 +24,7 @@ function toggle(){
             {data['name']}
         </span>
     </td>
-    <td style="text-align: right;">{data['value']}ms</td>
+    <td style="text-align: right;">{formatTime(data['value'])}</td>
     <td style="text-align: right;">{Math.round(data['value']/maxtime*10000)/100}%</td>
 </tr>
 
diff --git a/svelte-app/src/TimeUtils.svelte b/svelte-app/src/TimeUtils.svelte
new file mode 100644
index 0000000..652648d
--- /dev/null
+++ b/svelte-app/src/TimeUtils.svelte
@@ -0,0 +1,13 @@
+<script context="module">
+    export function formatTime(ms) {
+        if (ms < 1000) {
+            return `${ms} ms`;
+        } else if (ms < 60000) {
+            return `${(ms / 1000).toFixed(1)} s`;
+        } else if (ms < 3600000) {
+            return `${(ms / 60000).toFixed(1)} min`;
+        } else {
+            return `${(ms / 3600000).toFixed(1)} h`;
+        }
+    }
+</script>


Test patch:
diff --git a/pytest_duration_insights/static/build/bundle.css b/pytest_duration_insights/static/build/bundle.css
index 8fbe435..d077f19 100644
--- a/pytest_duration_insights/static/build/bundle.css
+++ b/pytest_duration_insights/static/build/bundle.css
@@ -1,1 +1,1 @@
-.breadcrumbs.svelte-z5r2z6.svelte-z5r2z6{width:100%;padding:0.3rem 0.4rem;background-color:transparent;font-family:inherit;font-size:inherit;text-align:left;border:none;cursor:pointer;outline:none}.breadcrumbs.svelte-z5r2z6.svelte-z5r2z6:disabled{cursor:default}.chart.svelte-z5r2z6.svelte-z5r2z6{width:calc(100% + 2px);height:400px;padding:0;margin:0 -1px 36px -1px;overflow:hidden}.node.svelte-z5r2z6.svelte-z5r2z6{position:absolute;width:100%;height:100%;background-color:white;overflow:hidden;pointer-events:all}.node.svelte-z5r2z6.svelte-z5r2z6:not(.leaf){cursor:pointer}.contents.svelte-z5r2z6.svelte-z5r2z6{width:100%;height:100%;padding:0.3rem 0.4rem;border:1px solid white;background-color:hsl(240, 8%, 70%);color:white;border-radius:4px;box-sizing:border-box}.node.svelte-z5r2z6:not(.leaf) .contents.svelte-z5r2z6{background-color:hsl(240, 8%, 44%)}strong.svelte-z5r2z6.svelte-z5r2z6,span.svelte-z5r2z6.svelte-z5r2z6{display:block;font-size:12px;white-space:nowrap;line-height:1}td.svelte-ro0xpi{font-family:'Courier New', monospace;font-weight:600;padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}pancake-treemap.svelte-omgzip{position:absolute;width:100%;height:100%;pointer-events:none}.pancake-chart.svelte-1gzh5rp{position:relative;display:block;width:100%;height:100%}.clip.svelte-1gzh5rp{overflow:hidden}.pancake-grid-item.svelte-1wq9bba{position:absolute;left:0;top:0}.pancake-point.svelte-11ba04d{position:absolute;width:0;height:0}.pancake-box.svelte-38xupb{position:absolute}svg.svelte-4s4ihd{position:absolute;width:100%;height:100%;overflow:visible}.clip.svelte-4s4ihd{overflow:hidden}svg.svelte-4s4ihd *{vector-effect:non-scaling-stroke}
\ No newline at end of file
+.breadcrumbs.svelte-z5r2z6.svelte-z5r2z6{width:100%;padding:0.3rem 0.4rem;background-color:transparent;font-family:inherit;font-size:inherit;text-align:left;border:none;cursor:pointer;outline:none}.breadcrumbs.svelte-z5r2z6.svelte-z5r2z6:disabled{cursor:default}.chart.svelte-z5r2z6.svelte-z5r2z6{width:calc(100% + 2px);height:400px;padding:0;margin:0 -1px 36px -1px;overflow:hidden}.node.svelte-z5r2z6.svelte-z5r2z6{position:absolute;width:100%;height:100%;background-color:white;overflow:hidden;pointer-events:all}.node.svelte-z5r2z6.svelte-z5r2z6:not(.leaf){cursor:pointer}.contents.svelte-z5r2z6.svelte-z5r2z6{width:100%;height:100%;padding:0.3rem 0.4rem;border:1px solid white;background-color:hsl(240, 8%, 70%);color:white;border-radius:4px;box-sizing:border-box}.node.svelte-z5r2z6:not(.leaf) .contents.svelte-z5r2z6{background-color:hsl(240, 8%, 44%)}strong.svelte-z5r2z6.svelte-z5r2z6,span.svelte-z5r2z6.svelte-z5r2z6{display:block;font-size:12px;white-space:nowrap;line-height:1}td.svelte-ro0xpi{font-family:'Courier New', monospace;font-weight:600;padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}pancake-treemap.svelte-omgzip{position:absolute;width:100%;height:100%;pointer-events:none}.pancake-grid-item.svelte-1wq9bba{position:absolute;left:0;top:0}.pancake-box.svelte-38xupb{position:absolute}.pancake-point.svelte-11ba04d{position:absolute;width:0;height:0}svg.svelte-4s4ihd{position:absolute;width:100%;height:100%;overflow:visible}.clip.svelte-4s4ihd{overflow:hidden}svg.svelte-4s4ihd *{vector-effect:non-scaling-stroke}.pancake-chart.svelte-1gzh5rp{position:relative;display:block;width:100%;height:100%}.clip.svelte-1gzh5rp{overflow:hidden}
\ No newline at end of file
diff --git a/pytest_duration_insights/static/build/bundle.js b/pytest_duration_insights/static/build/bundle.js
index b271b6a..61a50b4 100644
--- a/pytest_duration_insights/static/build/bundle.js
+++ b/pytest_duration_insights/static/build/bundle.js
@@ -1,2 +1,2 @@
-var app=function(){"use strict";function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function r(t){return t()}function o(){return Object.create(null)}function c(t){t.forEach(r)}function i(t){return"function"==typeof t}function l(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function u(n,...e){if(null==n)return t;const r=n.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function s(t,n,e){t.$$.on_destroy.push(u(n,e))}function a(t,n,e,r){if(t){const o=f(t,n,e,r);return t[0](o)}}function f(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function d(t,n,e,r,o,c,i){const l=function(t,n,e,r){if(t[2]&&r){const o=t[2](r(e));if(void 0===n.dirty)return o;if("object"==typeof o){const t=[],e=Math.max(n.dirty.length,o.length);for(let r=0;r<e;r+=1)t[r]=n.dirty[r]|o[r];return t}return n.dirty|o}return n.dirty}(n,r,o,c);if(l){const o=f(n,e,r,i);t.p(o,l)}}const p="undefined"!=typeof window;let h=p?()=>window.performance.now():()=>Date.now(),$=p?t=>requestAnimationFrame(t):t;const m=new Set;function g(t){m.forEach((n=>{n.c(t)||(m.delete(n),n.f())})),0!==m.size&&$(g)}function y(t){let n;return 0===m.size&&$(g),{promise:new Promise((e=>{m.add(n={c:t,f:e})})),abort(){m.delete(n)}}}function x(t,n){t.appendChild(n)}function v(t,n,e){t.insertBefore(n,e||null)}function b(t){t.parentNode.removeChild(t)}function w(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function k(t){return document.createElement(t)}function _(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function A(){return z(" ")}function E(){return z("")}function M(t,n,e,r){return t.addEventListener(n,e,r),()=>t.removeEventListener(n,e,r)}function C(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function j(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function B(t,n,e,r){t.style.setProperty(n,e,r?"important":"")}let O;function N(){if(void 0===O){O=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){O=!0}}return O}function S(t,n,e){t.classList[e?"add":"remove"](n)}const L=new Set;let P,R=0;function T(t,n,e,r,o,c,i,l=0){const u=16.666/r;let s="{\n";for(let t=0;t<=1;t+=u){const r=n+(e-n)*c(t);s+=100*t+`%{${i(r,1-r)}}\n`}const a=s+`100% {${i(e,1-e)}}\n}`,f=`__svelte_${function(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(a)}_${l}`,d=t.ownerDocument;L.add(d);const p=d.__svelte_stylesheet||(d.__svelte_stylesheet=d.head.appendChild(k("style")).sheet),h=d.__svelte_rules||(d.__svelte_rules={});h[f]||(h[f]=!0,p.insertRule(`@keyframes ${f} ${a}`,p.cssRules.length));const $=t.style.animation||"";return t.style.animation=`${$?`${$}, `:""}${f} ${r}ms linear ${o}ms 1 both`,R+=1,f}function D(t,n){const e=(t.style.animation||"").split(", "),r=e.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),o=e.length-r.length;o&&(t.style.animation=r.join(", "),R-=o,R||$((()=>{R||(L.forEach((t=>{const n=t.__svelte_stylesheet;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.__svelte_rules={}})),L.clear())})))}function I(t){P=t}function W(){if(!P)throw new Error("Function called outside component initialization");return P}const q=[],Y=[],F=[],H=[],X=Promise.resolve();let G=!1;function J(t){F.push(t)}let K=!1;const Q=new Set;function U(){if(!K){K=!0;do{for(let t=0;t<q.length;t+=1){const n=q[t];I(n),V(n.$$)}for(I(null),q.length=0;Y.length;)Y.pop()();for(let t=0;t<F.length;t+=1){const n=F[t];Q.has(n)||(Q.add(n),n())}F.length=0}while(q.length);for(;H.length;)H.pop()();G=!1,K=!1,Q.clear()}}function V(t){if(null!==t.fragment){t.update(),c(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(J)}}let Z;function tt(t,n,e){t.dispatchEvent(function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(`${n?"intro":"outro"}${e}`))}const nt=new Set;let et;function rt(){et={r:0,c:[],p:et}}function ot(){et.r||c(et.c),et=et.p}function ct(t,n){t&&t.i&&(nt.delete(t),t.i(n))}function it(t,n,e,r){if(t&&t.o){if(nt.has(t))return;nt.add(t),et.c.push((()=>{nt.delete(t),r&&(e&&t.d(1),r())})),t.o(n)}}const lt={duration:0};function ut(e,r,o,l){let u=r(e,o),s=l?0:1,a=null,f=null,d=null;function p(){d&&D(e,d)}function $(t,n){const e=t.b-s;return n*=Math.abs(e),{a:s,b:t.b,d:e,duration:n,start:t.start,end:t.start+n,group:t.group}}function m(r){const{delay:o=0,duration:i=300,easing:l=n,tick:m=t,css:g}=u||lt,x={start:h()+o,b:r};r||(x.group=et,et.r+=1),a||f?f=x:(g&&(p(),d=T(e,s,r,i,o,l,g)),r&&m(0,1),a=$(x,i),J((()=>tt(e,r,"start"))),y((t=>{if(f&&t>f.start&&(a=$(f,i),f=null,tt(e,a.b,"start"),g&&(p(),d=T(e,s,a.b,a.duration,0,l,u.css))),a)if(t>=a.end)m(s=a.b,1-s),tt(e,a.b,"end"),f||(a.b?p():--a.group.r||c(a.group.c)),a=null;else if(t>=a.start){const n=t-a.start;s=a.a+a.d*l(n/a.duration),m(s,1-s)}return!(!a&&!f)})))}return{run(t){i(u)?(Z||(Z=Promise.resolve(),Z.then((()=>{Z=null}))),Z).then((()=>{u=u(),m(t)})):m(t)},end(){p(),a=f=null}}}function st(t,n){const e=n.token={};function r(t,r,o,c){if(n.token!==e)return;n.resolved=c;let i=n.ctx;void 0!==o&&(i=i.slice(),i[o]=c);const l=t&&(n.current=t)(i);let u=!1;n.block&&(n.blocks?n.blocks.forEach(((t,e)=>{e!==r&&t&&(rt(),it(t,1,1,(()=>{n.blocks[e]===t&&(n.blocks[e]=null)})),ot())})):n.block.d(1),l.c(),ct(l,1),l.m(n.mount(),n.anchor),u=!0),n.block=l,n.blocks&&(n.blocks[r]=l),u&&U()}if((o=t)&&"object"==typeof o&&"function"==typeof o.then){const e=W();if(t.then((t=>{I(e),r(n.then,1,n.value,t),I(null)}),(t=>{if(I(e),r(n.catch,2,n.error,t),I(null),!n.hasCatch)throw t})),n.current!==n.pending)return r(n.pending,0),!0}else{if(n.current!==n.then)return r(n.then,1,n.value,t),!0;n.resolved=t}var o}function at(t,n,e){const r=n.slice(),{resolved:o}=t;t.current===t.then&&(r[t.value]=o),t.current===t.catch&&(r[t.error]=o),t.block.p(r,e)}function ft(t){t&&t.c()}function dt(t,n,e,o){const{fragment:l,on_mount:u,on_destroy:s,after_update:a}=t.$$;l&&l.m(n,e),o||J((()=>{const n=u.map(r).filter(i);s?s.push(...n):c(n),t.$$.on_mount=[]})),a.forEach(J)}function pt(t,n){const e=t.$$;null!==e.fragment&&(c(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function ht(t,n){-1===t.$$.dirty[0]&&(q.push(t),G||(G=!0,X.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function $t(n,e,r,i,l,u,s=[-1]){const a=P;I(n);const f=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:l,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:o(),dirty:s,skip_bound:!1};let d=!1;if(f.ctx=r?r(n,e.props||{},((t,e,...r)=>{const o=r.length?r[0]:e;return f.ctx&&l(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),d&&ht(n,t)),e})):[],f.update(),d=!0,c(f.before_update),f.fragment=!!i&&i(f.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);f.fragment&&f.fragment.l(t),t.forEach(b)}else f.fragment&&f.fragment.c();e.intro&&ct(n.$$.fragment),dt(n,e.target,e.anchor,e.customElement),U()}I(a)}class mt{$destroy(){pt(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gt=[];function yt(n,e=t){let r;const o=[];function c(t){if(l(n,t)&&(n=t,r)){const t=!gt.length;for(let t=0;t<o.length;t+=1){const e=o[t];e[1](),gt.push(e,n)}if(t){for(let t=0;t<gt.length;t+=2)gt[t][0](gt[t+1]);gt.length=0}}}return{set:c,update:function(t){c(t(n))},subscribe:function(i,l=t){const u=[i,l];return o.push(u),1===o.length&&(r=e(c)||t),i(n),()=>{const t=o.indexOf(u);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}function xt(n,e,r){const o=!Array.isArray(n),l=o?[n]:n,s=e.length<2;return{subscribe:yt(r,(n=>{let r=!1;const a=[];let f=0,d=t;const p=()=>{if(f)return;d();const r=e(o?a[0]:a,n);s?n(r):d=i(r)?r:t},h=l.map(((t,n)=>u(t,(t=>{a[n]=t,f&=~(1<<n),r&&p()}),(()=>{f|=1<<n}))));return r=!0,p(),function(){c(h),d()}})).subscribe}}function vt(t,n){var e=t[0],r=n[0],o=(n[1]-r)/(t[1]-e);return Object.assign((function(t){return r+(t-e)*o}),{inverse:function(){return vt(n,t)}})}function bt(t){var n=String(t).split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")}function wt(t){let n,e,r,o,i;const l=t[15].default,u=a(l,t,t[14],null);return{c(){n=k("div"),u&&u.c(),C(n,"class","pancake-chart svelte-1gzh5rp"),J((()=>t[17].call(n))),S(n,"clip",t[0])},m(c,l){v(c,n,l),u&&u.m(n,null),t[16](n),e=function(t,n){"static"===getComputedStyle(t).position&&(t.style.position="relative");const e=k("iframe");e.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),e.setAttribute("aria-hidden","true"),e.tabIndex=-1;const r=N();let o;return r?(e.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=M(window,"message",(t=>{t.source===e.contentWindow&&n()}))):(e.src="about:blank",e.onload=()=>{o=M(e.contentWindow,"resize",n)}),x(t,e),()=>{(r||o&&e.contentWindow)&&o(),b(e)}}(n,t[17].bind(n)),r=!0,o||(i=[M(n,"mousemove",t[6]),M(n,"mouseleave",t[7])],o=!0)},p(t,[e]){u&&u.p&&(!r||16384&e)&&d(u,l,t,t[14],e,null,null),1&e&&S(n,"clip",t[0])},i(t){r||(ct(u,t),r=!0)},o(t){it(u,t),r=!1},d(r){r&&b(n),u&&u.d(r),t[16](null),e(),o=!1,c(i)}}}const kt={};function _t(){return function(t){return W().$$.context.get(t)}(kt)}function zt(t,n,e){let r,o,c,i,l,{$$slots:u={},$$scope:a}=n,{x1:f=0}=n,{y1:d=0}=n,{x2:p=1}=n,{y2:h=1}=n,{clip:$=!1}=n;const m=yt(),g=yt(),y=yt(),x=yt(),v=yt();s(t,v,(t=>e(2,c=t)));const b=yt();s(t,b,(t=>e(3,i=t)));const w=yt(null),k=xt([m,y],(([t,n])=>vt([t,n],[0,100]))),_=xt([g,x],(([t,n])=>vt([t,n],[100,0]))),z=xt(k,(t=>t.inverse()));s(t,z,(t=>e(18,r=t)));const A=xt(_,(t=>t.inverse()));return s(t,A,(t=>e(19,o=t))),function(t,n){W().$$.context.set(t,n)}(kt,{x1:m,y1:g,x2:y,y2:x,x_scale:k,y_scale:_,x_scale_inverse:z,y_scale_inverse:A,pointer:w,width:v,height:b}),t.$$set=t=>{"x1"in t&&e(10,f=t.x1),"y1"in t&&e(11,d=t.y1),"x2"in t&&e(12,p=t.x2),"y2"in t&&e(13,h=t.y2),"clip"in t&&e(0,$=t.clip),"$$scope"in t&&e(14,a=t.$$scope)},t.$$.update=()=>{1024&t.$$.dirty&&m.set(f),2048&t.$$.dirty&&g.set(d),4096&t.$$.dirty&&y.set(p),8192&t.$$.dirty&&x.set(h)},[$,l,c,i,v,b,t=>{const n=l.getBoundingClientRect(),e=t.clientX-n.left,c=t.clientY-n.top,i=r(100*e/(n.right-n.left)),u=o(100*c/(n.bottom-n.top));w.set({x:i,y:u,left:e,top:c})},()=>{w.set(null)},z,A,f,d,p,h,a,u,function(t){Y[t?"unshift":"push"]((()=>{l=t,e(1,l)}))},function(){c=this.clientWidth,v.set(c),i=this.clientHeight,b.set(i)}]}class At extends mt{constructor(t){super(),$t(this,t,zt,wt,l,{x1:10,y1:11,x2:12,y2:13,clip:0})}}function Et(t){let n,e;const r=t[10].default,o=a(r,t,t[9],null);return{c(){n=k("div"),o&&o.c(),C(n,"class","pancake-box svelte-38xupb"),C(n,"style",t[0])},m(t,r){v(t,n,r),o&&o.m(n,null),e=!0},p(t,[c]){o&&o.p&&(!e||512&c)&&d(o,r,t,t[9],c,null,null),(!e||1&c)&&C(n,"style",t[0])},i(t){e||(ct(o,t),e=!0)},o(t){it(o,t),e=!1},d(t){t&&b(n),o&&o.d(t)}}}function Mt(t,n,e){let r,o,{$$slots:c={},$$scope:i}=n,{x1:l=0}=n,{x2:u=1}=n,{y1:a=0}=n,{y2:f=1}=n;const{x_scale:d,y_scale:p}=_t();let h;return s(t,d,(t=>e(7,r=t))),s(t,p,(t=>e(8,o=t))),t.$$set=t=>{"x1"in t&&e(3,l=t.x1),"x2"in t&&e(4,u=t.x2),"y1"in t&&e(5,a=t.y1),"y2"in t&&e(6,f=t.y2),"$$scope"in t&&e(9,i=t.$$scope)},t.$$.update=()=>{if(504&t.$$.dirty){const t=r(l),n=r(u),c=o(a),i=o(f),s=Math.min(t,n),d=Math.max(t,n),p=Math.min(c,i),$=Math.max(c,i);e(0,h=`left: ${s}%; bottom: ${100-$}%; width: ${d-s}%; height: ${$-p}%;`)}},[h,d,p,l,u,a,f,r,o,i,c]}class Ct extends mt{constructor(t){super(),$t(this,t,Mt,Et,l,{x1:3,x2:4,y1:5,y2:6})}}function jt(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Bt(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Nt)):void 0===n&&(n=Ot);for(var e,r,o,c,i,l=new Pt(t),u=[l];e=u.pop();)if((o=n(e.data))&&(i=(o=Array.from(o)).length))for(e.children=o,c=i-1;c>=0;--c)u.push(r=o[c]=new Pt(o[c])),r.parent=e,r.depth=e.depth+1;return l.eachBefore(Lt)}function Ot(t){return t.children}function Nt(t){return Array.isArray(t)?t[1]:null}function St(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Lt(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Pt(t){this.data=t,this.depth=this.height=0,this.parent=null}function Rt(t){if("function"!=typeof t)throw new Error;return t}function Tt(){return 0}function Dt(t){return function(){return t}}function It(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Wt(t,n,e,r,o){for(var c,i=t.children,l=-1,u=i.length,s=t.value&&(r-n)/t.value;++l<u;)(c=i[l]).y0=e,c.y1=o,c.x0=n,c.x1=n+=c.value*s}function qt(t,n,e,r,o){for(var c,i=t.children,l=-1,u=i.length,s=t.value&&(o-e)/t.value;++l<u;)(c=i[l]).x0=n,c.x1=r,c.y0=e,c.y1=e+=c.value*s}Pt.prototype=Bt.prototype={constructor:Pt,count:function(){return this.eachAfter(jt)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,o,c=this,i=[c],l=[],u=-1;c=i.pop();)if(l.push(c),e=c.children)for(r=0,o=e.length;r<o;++r)i.push(e[r]);for(;c=l.pop();)t.call(n,c,++u,this);return this},eachBefore:function(t,n){for(var e,r,o=this,c=[o],i=-1;o=c.pop();)if(t.call(n,o,++i,this),e=o.children)for(r=e.length-1;r>=0;--r)c.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,o=r&&r.length;--o>=0;)e+=r[o].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),o=null;t=e.pop(),n=r.pop();for(;t===n;)o=t,t=e.pop(),n=r.pop();return o}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var o=r.length;t!==e;)r.splice(o,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Bt(this).eachBefore(St)},[Symbol.iterator]:function*(){var t,n,e,r,o=this,c=[o];do{for(t=c.reverse(),c=[];o=t.pop();)if(yield o,n=o.children)for(e=0,r=n.length;e<r;++e)c.push(n[e])}while(c.length)}};var Yt=function t(n){function e(t,e,r,o,c){!function(t,n,e,r,o,c){for(var i,l,u,s,a,f,d,p,h,$,m,g=[],y=n.children,x=0,v=0,b=y.length,w=n.value;x<b;){u=o-e,s=c-r;do{a=y[v++].value}while(!a&&v<b);for(f=d=a,m=a*a*($=Math.max(s/u,u/s)/(w*t)),h=Math.max(d/m,m/f);v<b;++v){if(a+=l=y[v].value,l<f&&(f=l),l>d&&(d=l),m=a*a*$,(p=Math.max(d/m,m/f))>h){a-=l;break}h=p}g.push(i={value:a,dice:u<s,children:y.slice(x,v)}),i.dice?Wt(i,e,r,o,w?r+=s*a/w:c):qt(i,e,r,w?e+=u*a/w:o,c),w-=a,x=v}}(n,t,e,r,o,c)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}((1+Math.sqrt(5))/2);function Ft(t){const n=t-1;return n*n*n+1}function Ht(t){return"[object Date]"===Object.prototype.toString.call(t)}function Xt(t,n){if(t===n||t!=t)return()=>t;const e=typeof t;if(e!==typeof n||Array.isArray(t)!==Array.isArray(n))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const e=n.map(((n,e)=>Xt(t[e],n)));return t=>e.map((n=>n(t)))}if("object"===e){if(!t||!n)throw new Error("Object cannot be null");if(Ht(t)&&Ht(n)){t=t.getTime();const e=(n=n.getTime())-t;return n=>new Date(t+n*e)}const e=Object.keys(n),r={};return e.forEach((e=>{r[e]=Xt(t[e],n[e])})),t=>{const n={};return e.forEach((e=>{n[e]=r[e](t)})),n}}if("number"===e){const e=n-t;return n=>t+n*e}throw new Error(`Cannot interpolate ${e} values`)}function Gt(t,{delay:e=0,duration:r=400,easing:o=n}={}){const c=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:o,css:t=>"opacity: "+t*c}}function Jt(t,n,e){const r=t.slice();return r[3]=n[e],r}const Kt=t=>({node:1&t}),Qt=t=>({node:t[0]}),Ut=t=>({node:1&t}),Vt=t=>({node:t[0]});function Zt(t){let n;const e=t[1].default,r=a(e,t,t[2],Vt);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,o){r&&r.p&&(!n||5&o)&&d(r,e,t,t[2],o,Ut,Vt)},i(t){n||(ct(r,t),n=!0)},o(t){it(r,t),n=!1},d(t){r&&r.d(t)}}}function tn(t){let n,e;const r=t[1].default,o=a(r,t,t[2],Qt);return{c(){o&&o.c(),n=A()},m(t,r){o&&o.m(t,r),v(t,n,r),e=!0},p(t,n){o&&o.p&&(!e||5&n)&&d(o,r,t,t[2],n,Kt,Qt)},i(t){e||(ct(o,t),e=!0)},o(t){it(o,t),e=!1},d(t){o&&o.d(t),t&&b(n)}}}function nn(t){let n,e;return n=new on({props:{node:t[3],$$slots:{default:[tn,({node:t})=>({0:t}),({node:t})=>t?1:0]},$$scope:{ctx:t}}}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},p(t,e){const r={};1&e&&(r.node=t[3]),5&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function en(t){let n,e,r,o;n=new Ct({props:{x1:t[0].x0,x2:t[0].x1,y1:t[0].y1,y2:t[0].y0,$$slots:{default:[Zt]},$$scope:{ctx:t}}});let c=t[0].children||[],i=[];for(let n=0;n<c.length;n+=1)i[n]=nn(Jt(t,c,n));const l=t=>it(i[t],1,1,(()=>{i[t]=null}));return{c(){ft(n.$$.fragment),e=A();for(let t=0;t<i.length;t+=1)i[t].c();r=E()},m(t,c){dt(n,t,c),v(t,e,c);for(let n=0;n<i.length;n+=1)i[n].m(t,c);v(t,r,c),o=!0},p(t,[e]){const o={};if(1&e&&(o.x1=t[0].x0),1&e&&(o.x2=t[0].x1),1&e&&(o.y1=t[0].y1),1&e&&(o.y2=t[0].y0),5&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),5&e){let n;for(c=t[0].children||[],n=0;n<c.length;n+=1){const o=Jt(t,c,n);i[n]?(i[n].p(o,e),ct(i[n],1)):(i[n]=nn(o),i[n].c(),ct(i[n],1),i[n].m(r.parentNode,r))}for(rt(),n=c.length;n<i.length;n+=1)l(n);ot()}},i(t){if(!o){ct(n.$$.fragment,t);for(let t=0;t<c.length;t+=1)ct(i[t]);o=!0}},o(t){it(n.$$.fragment,t),i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)it(i[t]);o=!1},d(t){pt(n,t),t&&b(e),w(i,t),t&&b(r)}}}function rn(t,n,e){let{$$slots:r={},$$scope:o}=n,{node:c}=n;return t.$$set=t=>{"node"in t&&e(0,c=t.node),"$$scope"in t&&e(2,o=t.$$scope)},[c,r,o]}class on extends mt{constructor(t){super(),$t(this,t,rn,en,l,{node:0})}}const cn=t=>({node:8&t}),ln=t=>({node:t[3]});function un(t){let n;const e=t[1].default,r=a(e,t,t[2],ln);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,o){r&&r.p&&(!n||12&o)&&d(r,e,t,t[2],o,cn,ln)},i(t){n||(ct(r,t),n=!0)},o(t){it(r,t),n=!1},d(t){r&&r.d(t)}}}function sn(t){let n,e,r;return e=new on({props:{node:t[0],$$slots:{default:[un,({node:t})=>({3:t}),({node:t})=>t?8:0]},$$scope:{ctx:t}}}),{c(){var t,r,o;n=k("pancake-treemap"),ft(e.$$.fragment),o="svelte-omgzip",(r="class")in(t=n)?t[r]="boolean"==typeof t[r]&&""===o||o:C(t,r,o)},m(t,o){v(t,n,o),dt(e,n,null),r=!0},p(t,[n]){const r={};1&n&&(r.node=t[0]),12&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){r||(ct(e.$$.fragment,t),r=!0)},o(t){it(e.$$.fragment,t),r=!1},d(t){t&&b(n),pt(e)}}}function an(t,n,e){let{$$slots:r={},$$scope:o}=n,{root:c}=n;return t.$$set=t=>{"root"in t&&e(0,c=t.root),"$$scope"in t&&e(2,o=t.$$scope)},[c,r,o]}class fn extends mt{constructor(t){super(),$t(this,t,an,sn,l,{root:0})}}function dn(t){let n,e,r,o,c,i,l,u,s,a,f,d=t[12].data.name+"",p=bt(t[12].value)+"";function h(){return t[9](t[12])}return{c(){n=k("div"),e=k("div"),r=k("strong"),o=z(d),c=A(),i=k("span"),l=z(p),C(r,"class","svelte-z5r2z6"),C(i,"class","svelte-z5r2z6"),C(e,"class","contents svelte-z5r2z6"),C(n,"class","node svelte-z5r2z6"),S(n,"leaf",!t[12].children)},m(t,u){v(t,n,u),x(n,e),x(e,r),x(r,o),x(e,c),x(e,i),x(i,l),s=!0,a||(f=M(n,"click",h),a=!0)},p(e,r){t=e,(!s||4096&r)&&d!==(d=t[12].data.name+"")&&j(o,d),(!s||4096&r)&&p!==(p=bt(t[12].value)+"")&&j(l,p),4096&r&&S(n,"leaf",!t[12].children)},i(t){s||(J((()=>{u||(u=ut(n,Gt,{duration:400},!0)),u.run(1)})),s=!0)},o(t){u||(u=ut(n,Gt,{duration:400},!1)),u.run(0),s=!1},d(t){t&&b(n),t&&u&&u.end(),a=!1,f()}}}function pn(t){let n,e,r=t[6](t[12],t[0]),o=r&&dn(t);return{c(){o&&o.c(),n=E()},m(t,r){o&&o.m(t,r),v(t,n,r),e=!0},p(t,e){4097&e&&(r=t[6](t[12],t[0])),r?o?(o.p(t,e),4097&e&&ct(o,1)):(o=dn(t),o.c(),ct(o,1),o.m(n.parentNode,n)):o&&(rt(),it(o,1,1,(()=>{o=null})),ot())},i(t){e||(ct(o),e=!0)},o(t){it(o),e=!1},d(t){o&&o.d(t),t&&b(n)}}}function hn(t){let n,e;return n=new fn({props:{root:t[2],$$slots:{default:[pn,({node:t})=>({12:t}),({node:t})=>t?4096:0]},$$scope:{ctx:t}}}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},p(t,e){const r={};12289&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function $n(t){let n,e,r,o,c,i,l,u,s,a=t[4](t[0])+"";return i=new At({props:{x1:t[1].x1,x2:t[1].x2,y1:t[1].y1,y2:t[1].y2,$$slots:{default:[hn]},$$scope:{ctx:t}}}),{c(){n=k("button"),e=z(a),o=A(),c=k("div"),ft(i.$$.fragment),C(n,"class","breadcrumbs svelte-z5r2z6"),n.disabled=r=!t[0].parent,C(c,"class","chart svelte-z5r2z6")},m(r,a){v(r,n,a),x(n,e),v(r,o,a),v(r,c,a),dt(i,c,null),l=!0,u||(s=M(n,"click",t[8]),u=!0)},p(t,[o]){(!l||1&o)&&a!==(a=t[4](t[0])+"")&&j(e,a),(!l||1&o&&r!==(r=!t[0].parent))&&(n.disabled=r);const c={};2&o&&(c.x1=t[1].x1),2&o&&(c.x2=t[1].x2),2&o&&(c.y1=t[1].y1),2&o&&(c.y2=t[1].y2),8193&o&&(c.$$scope={dirty:o,ctx:t}),i.$set(c)},i(t){l||(ct(i.$$.fragment,t),l=!0)},o(t){it(i.$$.fragment,t),l=!1},d(t){t&&b(n),t&&b(o),t&&b(c),pt(i),u=!1,s()}}}function mn(t,r,o){let c,{data:i}=r;const l=function(){var t=Yt,n=!1,e=1,r=1,o=[0],c=Tt,i=Tt,l=Tt,u=Tt,s=Tt;function a(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),o=[0],n&&t.eachBefore(It),t}function f(n){var e=o[n.depth],r=n.x0+e,a=n.y0+e,f=n.x1-e,d=n.y1-e;f<r&&(r=f=(r+f)/2),d<a&&(a=d=(a+d)/2),n.x0=r,n.y0=a,n.x1=f,n.y1=d,n.children&&(e=o[n.depth+1]=c(n)/2,r+=s(n)-e,a+=i(n)-e,(f-=l(n)-e)<r&&(r=f=(r+f)/2),(d-=u(n)-e)<a&&(a=d=(a+d)/2),t(n,r,a,f,d))}return a.round=function(t){return arguments.length?(n=!!t,a):n},a.size=function(t){return arguments.length?(e=+t[0],r=+t[1],a):[e,r]},a.tile=function(n){return arguments.length?(t=Rt(n),a):t},a.padding=function(t){return arguments.length?a.paddingInner(t).paddingOuter(t):a.paddingInner()},a.paddingInner=function(t){return arguments.length?(c="function"==typeof t?t:Dt(+t),a):c},a.paddingOuter=function(t){return arguments.length?a.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):a.paddingTop()},a.paddingTop=function(t){return arguments.length?(i="function"==typeof t?t:Dt(+t),a):i},a.paddingRight=function(t){return arguments.length?(l="function"==typeof t?t:Dt(+t),a):l},a.paddingBottom=function(t){return arguments.length?(u="function"==typeof t?t:Dt(+t),a):u},a.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:Dt(+t),a):s},a}()(Bt(i).sum((t=>t.value)).sort(((t,n)=>n.value-t.value)));let u=l;const a=t=>{for(;t.parent&&t.parent!==u;)t=t.parent;t&&t.children&&o(0,u=t)},f=function(t,r={}){const o=yt(t);let c,i=t;function l(l,u){if(null==t)return o.set(t=l),Promise.resolve();i=l;let s=c,a=!1,{delay:f=0,duration:d=400,easing:p=n,interpolate:$=Xt}=e(e({},r),u);if(0===d)return s&&(s.abort(),s=null),o.set(t=i),Promise.resolve();const m=h()+f;let g;return c=y((n=>{if(n<m)return!0;a||(g=$(t,l),"function"==typeof d&&(d=d(t,l)),a=!0),s&&(s.abort(),s=null);const e=n-m;return e>d?(o.set(t=l),!1):(o.set(t=g(p(e/d))),!0)})),c.promise}return{set:l,update:(n,e)=>l(n(i,t),e),subscribe:o.subscribe}}(void 0,{easing:Ft,duration:600});s(t,f,(t=>o(1,c=t)));return t.$$set=t=>{"data"in t&&o(7,i=t.data)},t.$$.update=()=>{1&t.$$.dirty&&function(t,n,e=n){t.set(e)}(f,c={x1:u.x0,x2:u.x1,y1:u.y1,y2:u.y0},c)},[u,c,l,a,t=>{const n=[];for(;t;)n.unshift(t.data.name),t=t.parent;return n.join("/")},f,(t,n)=>{for(;n;){if(t.parent===n)return!0;n=n.parent}return!1},i,()=>o(0,u=u.parent),t=>a(t)]}class gn extends mt{constructor(t){super(),$t(this,t,mn,$n,l,{data:7})}}function yn(n){let e,r;return{c(){e=_("svg"),r=_("path"),C(r,"fill-rule","evenodd"),C(r,"d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"),C(r,"clip-rule","evenodd"),C(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"height","12px"),B(e,"width","12px"),C(e,"viewBox","0 0 20 20"),C(e,"fill","currentColor")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}class xn extends mt{constructor(t){super(),$t(this,t,null,yn,l,{})}}function vn(n){let e,r;return{c(){e=_("svg"),r=_("path"),C(r,"fill-rule","evenodd"),C(r,"d","M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"),C(r,"clip-rule","evenodd"),C(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"height","12px"),B(e,"width","12px"),C(e,"viewBox","0 0 20 20"),C(e,"fill","currentColor")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}class bn extends mt{constructor(t){super(),$t(this,t,null,vn,l,{})}}function wn(t,n,e){const r=t.slice();return r[5]=n[e],r}function kn(t){let n,e;return n=new bn({}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function _n(t){let n,e;return n=new xn({}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function zn(t){let n,e,r=t[1].children,o=[];for(let n=0;n<r.length;n+=1)o[n]=Mn(wn(t,r,n));const c=t=>it(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();n=E()},m(t,r){for(let n=0;n<o.length;n+=1)o[n].m(t,r);v(t,n,r),e=!0},p(t,e){if(30&e){let i;for(r=t[1].children,i=0;i<r.length;i+=1){const c=wn(t,r,i);o[i]?(o[i].p(c,e),ct(o[i],1)):(o[i]=Mn(c),o[i].c(),ct(o[i],1),o[i].m(n.parentNode,n))}for(rt(),i=r.length;i<o.length;i+=1)c(i);ot()}},i(t){if(!e){for(let t=0;t<r.length;t+=1)ct(o[t]);e=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)it(o[t]);e=!1},d(t){w(o,t),t&&b(n)}}}function An(n){let e,r,o,c,i,l,u,s,a,f,d,p,h,$,m=n[5].name+"",g=n[5].value+"",y=Math.round(n[5].value/n[2]*1e4)/100+"";return{c(){e=k("tr"),r=k("td"),o=z(m),c=A(),i=k("td"),l=z(g),u=z("ms"),s=A(),a=k("td"),f=z(y),d=z("%"),p=A(),B(r,"padding-left",10*n[3]+31+"px"),C(r,"class","svelte-ro0xpi"),B(i,"text-align","right"),C(i,"class","svelte-ro0xpi"),B(a,"text-align","right"),C(a,"class","svelte-ro0xpi")},m(t,m){v(t,e,m),x(e,r),x(r,o),x(e,c),x(e,i),x(i,l),x(i,u),x(e,s),x(e,a),x(a,f),x(a,d),x(e,p),h||($=M(r,"click",n[4]),h=!0)},p(t,n){2&n&&m!==(m=t[5].name+"")&&j(o,m),8&n&&B(r,"padding-left",10*t[3]+31+"px"),2&n&&g!==(g=t[5].value+"")&&j(l,g),6&n&&y!==(y=Math.round(t[5].value/t[2]*1e4)/100+"")&&j(f,y)},i:t,o:t,d(t){t&&b(e),h=!1,$()}}}function En(t){let n,e;return n=new Bn({props:{data:t[5],maxtime:t[2],depth:t[3]+1}}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},p(t,e){const r={};2&e&&(r.data=t[5]),4&e&&(r.maxtime=t[2]),8&e&&(r.depth=t[3]+1),n.$set(r)},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function Mn(t){let n,e,r,o;const c=[En,An],i=[];function l(t,n){return"children"in t[5]?0:1}return n=l(t),e=i[n]=c[n](t),{c(){e.c(),r=E()},m(t,e){i[n].m(t,e),v(t,r,e),o=!0},p(t,o){let u=n;n=l(t),n===u?i[n].p(t,o):(rt(),it(i[u],1,1,(()=>{i[u]=null})),ot(),e=i[n],e?e.p(t,o):(e=i[n]=c[n](t),e.c()),ct(e,1),e.m(r.parentNode,r))},i(t){o||(ct(e),o=!0)},o(t){it(e),o=!1},d(t){i[n].d(t),t&&b(r)}}}function Cn(t){let n,e,r,o,c,i,l,u,s,a,f,d,p,h,$,m,g,y,w,_,O=t[1].name+"",N=t[1].value+"",S=Math.round(t[1].value/t[2]*1e4)/100+"";const L=[_n,kn],P=[];function R(t,n){return t[0]?0:1}o=R(t),c=P[o]=L[o](t);let T=t[0]&&zn(t);return{c(){n=k("tr"),e=k("td"),r=k("span"),c.c(),i=A(),l=z(O),u=A(),s=k("td"),a=z(N),f=z("ms"),d=A(),p=k("td"),h=z(S),$=z("%"),m=A(),T&&T.c(),g=E(),B(r,"padding-left",10*t[3]+"px"),B(r,"cursor","pointer"),C(e,"class","svelte-ro0xpi"),B(s,"text-align","right"),C(s,"class","svelte-ro0xpi"),B(p,"text-align","right"),C(p,"class","svelte-ro0xpi")},m(c,b){v(c,n,b),x(n,e),x(e,r),P[o].m(r,null),x(r,i),x(r,l),x(n,u),x(n,s),x(s,a),x(s,f),x(n,d),x(n,p),x(p,h),x(p,$),v(c,m,b),T&&T.m(c,b),v(c,g,b),y=!0,w||(_=M(e,"click",t[4]),w=!0)},p(t,[n]){let e=o;o=R(t),o!==e&&(rt(),it(P[e],1,1,(()=>{P[e]=null})),ot(),c=P[o],c||(c=P[o]=L[o](t),c.c()),ct(c,1),c.m(r,i)),(!y||2&n)&&O!==(O=t[1].name+"")&&j(l,O),(!y||8&n)&&B(r,"padding-left",10*t[3]+"px"),(!y||2&n)&&N!==(N=t[1].value+"")&&j(a,N),(!y||6&n)&&S!==(S=Math.round(t[1].value/t[2]*1e4)/100+"")&&j(h,S),t[0]?T?(T.p(t,n),1&n&&ct(T,1)):(T=zn(t),T.c(),ct(T,1),T.m(g.parentNode,g)):T&&(rt(),it(T,1,1,(()=>{T=null})),ot())},i(t){y||(ct(c),ct(T),y=!0)},o(t){it(c),it(T),y=!1},d(t){t&&b(n),P[o].d(),t&&b(m),T&&T.d(t),t&&b(g),w=!1,_()}}}function jn(t,n,e){let{data:r}=n,{maxtime:o}=n,{depth:c=0}=n,{expanded:i=!1}=n;return t.$$set=t=>{"data"in t&&e(1,r=t.data),"maxtime"in t&&e(2,o=t.maxtime),"depth"in t&&e(3,c=t.depth),"expanded"in t&&e(0,i=t.expanded)},[i,r,o,c,function(){e(0,i=!i)}]}class Bn extends mt{constructor(t){super(),$t(this,t,jn,Cn,l,{data:1,maxtime:2,depth:3,expanded:0})}}function On(n){let e,r,o=n[3].message+"";return{c(){e=k("p"),r=z(o),B(e,"color","red")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Nn(n){let e,r;return e=new gn({props:{data:n[4]}}),{c(){ft(e.$$.fragment)},m(t,n){dt(e,t,n),r=!0},p:t,i(t){r||(ct(e.$$.fragment,t),r=!0)},o(t){it(e.$$.fragment,t),r=!1},d(t){pt(e,t)}}}function Sn(n){let e;return{c(){e=k("p"),e.textContent="...waiting"},m(t,n){v(t,e,n)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Ln(n){let e,r,o=n[3].message+"";return{c(){e=k("p"),r=z(o),B(e,"color","red")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Pn(n){let e,r,o;return r=new Bn({props:{data:n[2],maxtime:n[2].value}}),{c(){e=k("table"),ft(r.$$.fragment),B(e,"width","100%"),B(e,"max-width","100%"),B(e,"margin-bottom","1rem"),B(e,"background-color","transparent")},m(t,n){v(t,e,n),dt(r,e,null),o=!0},p:t,i(t){o||(ct(r.$$.fragment,t),o=!0)},o(t){it(r.$$.fragment,t),o=!1},d(t){t&&b(e),pt(r)}}}function Rn(n){let e;return{c(){e=k("p"),e.textContent="...waiting"},m(t,n){v(t,e,n)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Tn(t){let n,e,r,o,c,i,l,u,s,a,f,d={ctx:t,current:null,token:null,hasCatch:!0,pending:Sn,then:Nn,catch:On,value:4,error:3,blocks:[,,,]};st(t[0],d);let p={ctx:t,current:null,token:null,hasCatch:!0,pending:Rn,then:Pn,catch:Ln,value:2,error:3,blocks:[,,,]};return st(t[1],p),{c(){n=k("html"),e=A(),r=k("h1"),r.textContent="Pytest Duration Insights",o=A(),c=k("p"),c.textContent="You can click in the treemap below to explore where most time is spent.",i=A(),d.block.c(),l=A(),u=k("p"),u.textContent="You can also explore the nested tree below for more details.",s=A(),a=E(),p.block.c(),document.title="Duration Insights",C(n,"lang","en")},m(t,h){x(document.head,n),v(t,e,h),v(t,r,h),v(t,o,h),v(t,c,h),v(t,i,h),d.block.m(t,d.anchor=h),d.mount=()=>l.parentNode,d.anchor=l,v(t,l,h),v(t,u,h),v(t,s,h),v(t,a,h),p.block.m(t,p.anchor=h),p.mount=()=>a.parentNode,p.anchor=a,f=!0},p(n,[e]){at(d,t=n,e),at(p,t,e)},i(t){f||(ct(d.block),ct(p.block),f=!0)},o(t){for(let t=0;t<3;t+=1){it(d.blocks[t])}for(let t=0;t<3;t+=1){it(p.blocks[t])}f=!1},d(t){b(n),t&&b(e),t&&b(r),t&&b(o),t&&b(c),t&&b(i),d.block.d(t),d.token=null,d=null,t&&b(l),t&&b(u),t&&b(s),t&&b(a),p.block.d(t),p.token=null,p=null}}}async function Dn(t){const n=await fetch(t);return await n.json()}function In(t){return[Dn("data.json"),Dn("treedata.json")]}return new class extends mt{constructor(t){super(),$t(this,t,In,Tn,l,{})}}({target:document.body,props:{name:"world"}})}();
+var app=function(){"use strict";function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function r(t){return t()}function o(){return Object.create(null)}function c(t){t.forEach(r)}function i(t){return"function"==typeof t}function u(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function l(n,...e){if(null==n)return t;const r=n.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function s(t,n,e){t.$$.on_destroy.push(l(n,e))}function a(t,n,e,r){if(t){const o=f(t,n,e,r);return t[0](o)}}function f(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function d(t,n,e,r,o,c,i){const u=function(t,n,e,r){if(t[2]&&r){const o=t[2](r(e));if(void 0===n.dirty)return o;if("object"==typeof o){const t=[],e=Math.max(n.dirty.length,o.length);for(let r=0;r<e;r+=1)t[r]=n.dirty[r]|o[r];return t}return n.dirty|o}return n.dirty}(n,r,o,c);if(u){const o=f(n,e,r,i);t.p(o,u)}}const p="undefined"!=typeof window;let h=p?()=>window.performance.now():()=>Date.now(),$=p?t=>requestAnimationFrame(t):t;const m=new Set;function g(t){m.forEach((n=>{n.c(t)||(m.delete(n),n.f())})),0!==m.size&&$(g)}function y(t){let n;return 0===m.size&&$(g),{promise:new Promise((e=>{m.add(n={c:t,f:e})})),abort(){m.delete(n)}}}function x(t,n){t.appendChild(n)}function v(t,n,e){t.insertBefore(n,e||null)}function b(t){t.parentNode.removeChild(t)}function w(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function k(t){return document.createElement(t)}function _(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function A(){return z(" ")}function E(){return z("")}function M(t,n,e,r){return t.addEventListener(n,e,r),()=>t.removeEventListener(n,e,r)}function C(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function j(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function B(t,n,e,r){t.style.setProperty(n,e,r?"important":"")}let O;function N(){if(void 0===O){O=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){O=!0}}return O}function S(t,n,e){t.classList[e?"add":"remove"](n)}const L=new Set;let P,R=0;function T(t,n,e,r,o,c,i,u=0){const l=16.666/r;let s="{\n";for(let t=0;t<=1;t+=l){const r=n+(e-n)*c(t);s+=100*t+`%{${i(r,1-r)}}\n`}const a=s+`100% {${i(e,1-e)}}\n}`,f=`__svelte_${function(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}(a)}_${u}`,d=t.ownerDocument;L.add(d);const p=d.__svelte_stylesheet||(d.__svelte_stylesheet=d.head.appendChild(k("style")).sheet),h=d.__svelte_rules||(d.__svelte_rules={});h[f]||(h[f]=!0,p.insertRule(`@keyframes ${f} ${a}`,p.cssRules.length));const $=t.style.animation||"";return t.style.animation=`${$?`${$}, `:""}${f} ${r}ms linear ${o}ms 1 both`,R+=1,f}function D(t,n){const e=(t.style.animation||"").split(", "),r=e.filter(n?t=>t.indexOf(n)<0:t=>-1===t.indexOf("__svelte")),o=e.length-r.length;o&&(t.style.animation=r.join(", "),R-=o,R||$((()=>{R||(L.forEach((t=>{const n=t.__svelte_stylesheet;let e=n.cssRules.length;for(;e--;)n.deleteRule(e);t.__svelte_rules={}})),L.clear())})))}function I(t){P=t}function F(){if(!P)throw new Error("Function called outside component initialization");return P}const W=[],q=[],Y=[],H=[],X=Promise.resolve();let G=!1;function J(t){Y.push(t)}let K=!1;const Q=new Set;function U(){if(!K){K=!0;do{for(let t=0;t<W.length;t+=1){const n=W[t];I(n),V(n.$$)}for(I(null),W.length=0;q.length;)q.pop()();for(let t=0;t<Y.length;t+=1){const n=Y[t];Q.has(n)||(Q.add(n),n())}Y.length=0}while(W.length);for(;H.length;)H.pop()();G=!1,K=!1,Q.clear()}}function V(t){if(null!==t.fragment){t.update(),c(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(J)}}let Z;function tt(t,n,e){t.dispatchEvent(function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(`${n?"intro":"outro"}${e}`))}const nt=new Set;let et;function rt(){et={r:0,c:[],p:et}}function ot(){et.r||c(et.c),et=et.p}function ct(t,n){t&&t.i&&(nt.delete(t),t.i(n))}function it(t,n,e,r){if(t&&t.o){if(nt.has(t))return;nt.add(t),et.c.push((()=>{nt.delete(t),r&&(e&&t.d(1),r())})),t.o(n)}}const ut={duration:0};function lt(e,r,o,u){let l=r(e,o),s=u?0:1,a=null,f=null,d=null;function p(){d&&D(e,d)}function $(t,n){const e=t.b-s;return n*=Math.abs(e),{a:s,b:t.b,d:e,duration:n,start:t.start,end:t.start+n,group:t.group}}function m(r){const{delay:o=0,duration:i=300,easing:u=n,tick:m=t,css:g}=l||ut,x={start:h()+o,b:r};r||(x.group=et,et.r+=1),a||f?f=x:(g&&(p(),d=T(e,s,r,i,o,u,g)),r&&m(0,1),a=$(x,i),J((()=>tt(e,r,"start"))),y((t=>{if(f&&t>f.start&&(a=$(f,i),f=null,tt(e,a.b,"start"),g&&(p(),d=T(e,s,a.b,a.duration,0,u,l.css))),a)if(t>=a.end)m(s=a.b,1-s),tt(e,a.b,"end"),f||(a.b?p():--a.group.r||c(a.group.c)),a=null;else if(t>=a.start){const n=t-a.start;s=a.a+a.d*u(n/a.duration),m(s,1-s)}return!(!a&&!f)})))}return{run(t){i(l)?(Z||(Z=Promise.resolve(),Z.then((()=>{Z=null}))),Z).then((()=>{l=l(),m(t)})):m(t)},end(){p(),a=f=null}}}function st(t,n){const e=n.token={};function r(t,r,o,c){if(n.token!==e)return;n.resolved=c;let i=n.ctx;void 0!==o&&(i=i.slice(),i[o]=c);const u=t&&(n.current=t)(i);let l=!1;n.block&&(n.blocks?n.blocks.forEach(((t,e)=>{e!==r&&t&&(rt(),it(t,1,1,(()=>{n.blocks[e]===t&&(n.blocks[e]=null)})),ot())})):n.block.d(1),u.c(),ct(u,1),u.m(n.mount(),n.anchor),l=!0),n.block=u,n.blocks&&(n.blocks[r]=u),l&&U()}if((o=t)&&"object"==typeof o&&"function"==typeof o.then){const e=F();if(t.then((t=>{I(e),r(n.then,1,n.value,t),I(null)}),(t=>{if(I(e),r(n.catch,2,n.error,t),I(null),!n.hasCatch)throw t})),n.current!==n.pending)return r(n.pending,0),!0}else{if(n.current!==n.then)return r(n.then,1,n.value,t),!0;n.resolved=t}var o}function at(t,n,e){const r=n.slice(),{resolved:o}=t;t.current===t.then&&(r[t.value]=o),t.current===t.catch&&(r[t.error]=o),t.block.p(r,e)}function ft(t){t&&t.c()}function dt(t,n,e,o){const{fragment:u,on_mount:l,on_destroy:s,after_update:a}=t.$$;u&&u.m(n,e),o||J((()=>{const n=l.map(r).filter(i);s?s.push(...n):c(n),t.$$.on_mount=[]})),a.forEach(J)}function pt(t,n){const e=t.$$;null!==e.fragment&&(c(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function ht(t,n){-1===t.$$.dirty[0]&&(W.push(t),G||(G=!0,X.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function $t(n,e,r,i,u,l,s=[-1]){const a=P;I(n);const f=n.$$={fragment:null,ctx:null,props:l,update:t,not_equal:u,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:o(),dirty:s,skip_bound:!1};let d=!1;if(f.ctx=r?r(n,e.props||{},((t,e,...r)=>{const o=r.length?r[0]:e;return f.ctx&&u(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),d&&ht(n,t)),e})):[],f.update(),d=!0,c(f.before_update),f.fragment=!!i&&i(f.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);f.fragment&&f.fragment.l(t),t.forEach(b)}else f.fragment&&f.fragment.c();e.intro&&ct(n.$$.fragment),dt(n,e.target,e.anchor,e.customElement),U()}I(a)}class mt{$destroy(){pt(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gt=[];function yt(n,e=t){let r;const o=[];function c(t){if(u(n,t)&&(n=t,r)){const t=!gt.length;for(let t=0;t<o.length;t+=1){const e=o[t];e[1](),gt.push(e,n)}if(t){for(let t=0;t<gt.length;t+=2)gt[t][0](gt[t+1]);gt.length=0}}}return{set:c,update:function(t){c(t(n))},subscribe:function(i,u=t){const l=[i,u];return o.push(l),1===o.length&&(r=e(c)||t),i(n),()=>{const t=o.indexOf(l);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}function xt(n,e,r){const o=!Array.isArray(n),u=o?[n]:n,s=e.length<2;return{subscribe:yt(r,(n=>{let r=!1;const a=[];let f=0,d=t;const p=()=>{if(f)return;d();const r=e(o?a[0]:a,n);s?n(r):d=i(r)?r:t},h=u.map(((t,n)=>l(t,(t=>{a[n]=t,f&=~(1<<n),r&&p()}),(()=>{f|=1<<n}))));return r=!0,p(),function(){c(h),d()}})).subscribe}}function vt(t,n){var e=t[0],r=n[0],o=(n[1]-r)/(t[1]-e);return Object.assign((function(t){return r+(t-e)*o}),{inverse:function(){return vt(n,t)}})}function bt(t){let n,e,r,o,i;const u=t[15].default,l=a(u,t,t[14],null);return{c(){n=k("div"),l&&l.c(),C(n,"class","pancake-chart svelte-1gzh5rp"),J((()=>t[17].call(n))),S(n,"clip",t[0])},m(c,u){v(c,n,u),l&&l.m(n,null),t[16](n),e=function(t,n){"static"===getComputedStyle(t).position&&(t.style.position="relative");const e=k("iframe");e.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),e.setAttribute("aria-hidden","true"),e.tabIndex=-1;const r=N();let o;return r?(e.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",o=M(window,"message",(t=>{t.source===e.contentWindow&&n()}))):(e.src="about:blank",e.onload=()=>{o=M(e.contentWindow,"resize",n)}),x(t,e),()=>{(r||o&&e.contentWindow)&&o(),b(e)}}(n,t[17].bind(n)),r=!0,o||(i=[M(n,"mousemove",t[6]),M(n,"mouseleave",t[7])],o=!0)},p(t,[e]){l&&l.p&&(!r||16384&e)&&d(l,u,t,t[14],e,null,null),1&e&&S(n,"clip",t[0])},i(t){r||(ct(l,t),r=!0)},o(t){it(l,t),r=!1},d(r){r&&b(n),l&&l.d(r),t[16](null),e(),o=!1,c(i)}}}const wt={};function kt(){return function(t){return F().$$.context.get(t)}(wt)}function _t(t,n,e){let r,o,c,i,u,{$$slots:l={},$$scope:a}=n,{x1:f=0}=n,{y1:d=0}=n,{x2:p=1}=n,{y2:h=1}=n,{clip:$=!1}=n;const m=yt(),g=yt(),y=yt(),x=yt(),v=yt();s(t,v,(t=>e(2,c=t)));const b=yt();s(t,b,(t=>e(3,i=t)));const w=yt(null),k=xt([m,y],(([t,n])=>vt([t,n],[0,100]))),_=xt([g,x],(([t,n])=>vt([t,n],[100,0]))),z=xt(k,(t=>t.inverse()));s(t,z,(t=>e(18,r=t)));const A=xt(_,(t=>t.inverse()));return s(t,A,(t=>e(19,o=t))),function(t,n){F().$$.context.set(t,n)}(wt,{x1:m,y1:g,x2:y,y2:x,x_scale:k,y_scale:_,x_scale_inverse:z,y_scale_inverse:A,pointer:w,width:v,height:b}),t.$$set=t=>{"x1"in t&&e(10,f=t.x1),"y1"in t&&e(11,d=t.y1),"x2"in t&&e(12,p=t.x2),"y2"in t&&e(13,h=t.y2),"clip"in t&&e(0,$=t.clip),"$$scope"in t&&e(14,a=t.$$scope)},t.$$.update=()=>{1024&t.$$.dirty&&m.set(f),2048&t.$$.dirty&&g.set(d),4096&t.$$.dirty&&y.set(p),8192&t.$$.dirty&&x.set(h)},[$,u,c,i,v,b,t=>{const n=u.getBoundingClientRect(),e=t.clientX-n.left,c=t.clientY-n.top,i=r(100*e/(n.right-n.left)),l=o(100*c/(n.bottom-n.top));w.set({x:i,y:l,left:e,top:c})},()=>{w.set(null)},z,A,f,d,p,h,a,l,function(t){q[t?"unshift":"push"]((()=>{u=t,e(1,u)}))},function(){c=this.clientWidth,v.set(c),i=this.clientHeight,b.set(i)}]}class zt extends mt{constructor(t){super(),$t(this,t,_t,bt,u,{x1:10,y1:11,x2:12,y2:13,clip:0})}}function At(t){let n,e;const r=t[10].default,o=a(r,t,t[9],null);return{c(){n=k("div"),o&&o.c(),C(n,"class","pancake-box svelte-38xupb"),C(n,"style",t[0])},m(t,r){v(t,n,r),o&&o.m(n,null),e=!0},p(t,[c]){o&&o.p&&(!e||512&c)&&d(o,r,t,t[9],c,null,null),(!e||1&c)&&C(n,"style",t[0])},i(t){e||(ct(o,t),e=!0)},o(t){it(o,t),e=!1},d(t){t&&b(n),o&&o.d(t)}}}function Et(t,n,e){let r,o,{$$slots:c={},$$scope:i}=n,{x1:u=0}=n,{x2:l=1}=n,{y1:a=0}=n,{y2:f=1}=n;const{x_scale:d,y_scale:p}=kt();let h;return s(t,d,(t=>e(7,r=t))),s(t,p,(t=>e(8,o=t))),t.$$set=t=>{"x1"in t&&e(3,u=t.x1),"x2"in t&&e(4,l=t.x2),"y1"in t&&e(5,a=t.y1),"y2"in t&&e(6,f=t.y2),"$$scope"in t&&e(9,i=t.$$scope)},t.$$.update=()=>{if(504&t.$$.dirty){const t=r(u),n=r(l),c=o(a),i=o(f),s=Math.min(t,n),d=Math.max(t,n),p=Math.min(c,i),$=Math.max(c,i);e(0,h=`left: ${s}%; bottom: ${100-$}%; width: ${d-s}%; height: ${$-p}%;`)}},[h,d,p,u,l,a,f,r,o,i,c]}class Mt extends mt{constructor(t){super(),$t(this,t,Et,At,u,{x1:3,x2:4,y1:5,y2:6})}}function Ct(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function jt(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Ot)):void 0===n&&(n=Bt);for(var e,r,o,c,i,u=new Lt(t),l=[u];e=l.pop();)if((o=n(e.data))&&(i=(o=Array.from(o)).length))for(e.children=o,c=i-1;c>=0;--c)l.push(r=o[c]=new Lt(o[c])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(St)}function Bt(t){return t.children}function Ot(t){return Array.isArray(t)?t[1]:null}function Nt(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function St(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Lt(t){this.data=t,this.depth=this.height=0,this.parent=null}function Pt(t){if("function"!=typeof t)throw new Error;return t}function Rt(){return 0}function Tt(t){return function(){return t}}function Dt(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function It(t,n,e,r,o){for(var c,i=t.children,u=-1,l=i.length,s=t.value&&(r-n)/t.value;++u<l;)(c=i[u]).y0=e,c.y1=o,c.x0=n,c.x1=n+=c.value*s}function Ft(t,n,e,r,o){for(var c,i=t.children,u=-1,l=i.length,s=t.value&&(o-e)/t.value;++u<l;)(c=i[u]).x0=n,c.x1=r,c.y0=e,c.y1=e+=c.value*s}Lt.prototype=jt.prototype={constructor:Lt,count:function(){return this.eachAfter(Ct)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,o,c=this,i=[c],u=[],l=-1;c=i.pop();)if(u.push(c),e=c.children)for(r=0,o=e.length;r<o;++r)i.push(e[r]);for(;c=u.pop();)t.call(n,c,++l,this);return this},eachBefore:function(t,n){for(var e,r,o=this,c=[o],i=-1;o=c.pop();)if(t.call(n,o,++i,this),e=o.children)for(r=e.length-1;r>=0;--r)c.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,o=r&&r.length;--o>=0;)e+=r[o].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),o=null;t=e.pop(),n=r.pop();for(;t===n;)o=t,t=e.pop(),n=r.pop();return o}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var o=r.length;t!==e;)r.splice(o,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return jt(this).eachBefore(Nt)},[Symbol.iterator]:function*(){var t,n,e,r,o=this,c=[o];do{for(t=c.reverse(),c=[];o=t.pop();)if(yield o,n=o.children)for(e=0,r=n.length;e<r;++e)c.push(n[e])}while(c.length)}};var Wt=function t(n){function e(t,e,r,o,c){!function(t,n,e,r,o,c){for(var i,u,l,s,a,f,d,p,h,$,m,g=[],y=n.children,x=0,v=0,b=y.length,w=n.value;x<b;){l=o-e,s=c-r;do{a=y[v++].value}while(!a&&v<b);for(f=d=a,m=a*a*($=Math.max(s/l,l/s)/(w*t)),h=Math.max(d/m,m/f);v<b;++v){if(a+=u=y[v].value,u<f&&(f=u),u>d&&(d=u),m=a*a*$,(p=Math.max(d/m,m/f))>h){a-=u;break}h=p}g.push(i={value:a,dice:l<s,children:y.slice(x,v)}),i.dice?It(i,e,r,o,w?r+=s*a/w:c):Ft(i,e,r,w?e+=l*a/w:o,c),w-=a,x=v}}(n,t,e,r,o,c)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}((1+Math.sqrt(5))/2);function qt(t){const n=t-1;return n*n*n+1}function Yt(t){return"[object Date]"===Object.prototype.toString.call(t)}function Ht(t,n){if(t===n||t!=t)return()=>t;const e=typeof t;if(e!==typeof n||Array.isArray(t)!==Array.isArray(n))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const e=n.map(((n,e)=>Ht(t[e],n)));return t=>e.map((n=>n(t)))}if("object"===e){if(!t||!n)throw new Error("Object cannot be null");if(Yt(t)&&Yt(n)){t=t.getTime();const e=(n=n.getTime())-t;return n=>new Date(t+n*e)}const e=Object.keys(n),r={};return e.forEach((e=>{r[e]=Ht(t[e],n[e])})),t=>{const n={};return e.forEach((e=>{n[e]=r[e](t)})),n}}if("number"===e){const e=n-t;return n=>t+n*e}throw new Error(`Cannot interpolate ${e} values`)}function Xt(t,{delay:e=0,duration:r=400,easing:o=n}={}){const c=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:o,css:t=>"opacity: "+t*c}}function Gt(t){return t<1e3?`${t} ms`:t<6e4?`${(t/1e3).toFixed(1)} s`:t<36e5?`${(t/6e4).toFixed(1)} min`:`${(t/36e5).toFixed(1)} h`}function Jt(t,n,e){const r=t.slice();return r[3]=n[e],r}const Kt=t=>({node:1&t}),Qt=t=>({node:t[0]}),Ut=t=>({node:1&t}),Vt=t=>({node:t[0]});function Zt(t){let n;const e=t[1].default,r=a(e,t,t[2],Vt);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,o){r&&r.p&&(!n||5&o)&&d(r,e,t,t[2],o,Ut,Vt)},i(t){n||(ct(r,t),n=!0)},o(t){it(r,t),n=!1},d(t){r&&r.d(t)}}}function tn(t){let n,e;const r=t[1].default,o=a(r,t,t[2],Qt);return{c(){o&&o.c(),n=A()},m(t,r){o&&o.m(t,r),v(t,n,r),e=!0},p(t,n){o&&o.p&&(!e||5&n)&&d(o,r,t,t[2],n,Kt,Qt)},i(t){e||(ct(o,t),e=!0)},o(t){it(o,t),e=!1},d(t){o&&o.d(t),t&&b(n)}}}function nn(t){let n,e;return n=new on({props:{node:t[3],$$slots:{default:[tn,({node:t})=>({0:t}),({node:t})=>t?1:0]},$$scope:{ctx:t}}}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},p(t,e){const r={};1&e&&(r.node=t[3]),5&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function en(t){let n,e,r,o;n=new Mt({props:{x1:t[0].x0,x2:t[0].x1,y1:t[0].y1,y2:t[0].y0,$$slots:{default:[Zt]},$$scope:{ctx:t}}});let c=t[0].children||[],i=[];for(let n=0;n<c.length;n+=1)i[n]=nn(Jt(t,c,n));const u=t=>it(i[t],1,1,(()=>{i[t]=null}));return{c(){ft(n.$$.fragment),e=A();for(let t=0;t<i.length;t+=1)i[t].c();r=E()},m(t,c){dt(n,t,c),v(t,e,c);for(let n=0;n<i.length;n+=1)i[n].m(t,c);v(t,r,c),o=!0},p(t,[e]){const o={};if(1&e&&(o.x1=t[0].x0),1&e&&(o.x2=t[0].x1),1&e&&(o.y1=t[0].y1),1&e&&(o.y2=t[0].y0),5&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),5&e){let n;for(c=t[0].children||[],n=0;n<c.length;n+=1){const o=Jt(t,c,n);i[n]?(i[n].p(o,e),ct(i[n],1)):(i[n]=nn(o),i[n].c(),ct(i[n],1),i[n].m(r.parentNode,r))}for(rt(),n=c.length;n<i.length;n+=1)u(n);ot()}},i(t){if(!o){ct(n.$$.fragment,t);for(let t=0;t<c.length;t+=1)ct(i[t]);o=!0}},o(t){it(n.$$.fragment,t),i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)it(i[t]);o=!1},d(t){pt(n,t),t&&b(e),w(i,t),t&&b(r)}}}function rn(t,n,e){let{$$slots:r={},$$scope:o}=n,{node:c}=n;return t.$$set=t=>{"node"in t&&e(0,c=t.node),"$$scope"in t&&e(2,o=t.$$scope)},[c,r,o]}class on extends mt{constructor(t){super(),$t(this,t,rn,en,u,{node:0})}}const cn=t=>({node:8&t}),un=t=>({node:t[3]});function ln(t){let n;const e=t[1].default,r=a(e,t,t[2],un);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,o){r&&r.p&&(!n||12&o)&&d(r,e,t,t[2],o,cn,un)},i(t){n||(ct(r,t),n=!0)},o(t){it(r,t),n=!1},d(t){r&&r.d(t)}}}function sn(t){let n,e,r;return e=new on({props:{node:t[0],$$slots:{default:[ln,({node:t})=>({3:t}),({node:t})=>t?8:0]},$$scope:{ctx:t}}}),{c(){var t,r,o;n=k("pancake-treemap"),ft(e.$$.fragment),o="svelte-omgzip",(r="class")in(t=n)?t[r]="boolean"==typeof t[r]&&""===o||o:C(t,r,o)},m(t,o){v(t,n,o),dt(e,n,null),r=!0},p(t,[n]){const r={};1&n&&(r.node=t[0]),12&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){r||(ct(e.$$.fragment,t),r=!0)},o(t){it(e.$$.fragment,t),r=!1},d(t){t&&b(n),pt(e)}}}function an(t,n,e){let{$$slots:r={},$$scope:o}=n,{root:c}=n;return t.$$set=t=>{"root"in t&&e(0,c=t.root),"$$scope"in t&&e(2,o=t.$$scope)},[c,r,o]}class fn extends mt{constructor(t){super(),$t(this,t,an,sn,u,{root:0})}}function dn(t){let n,e,r,o,c,i,u,l,s,a,f,d=t[12].data.name+"",p=Gt(t[12].value)+"";function h(){return t[9](t[12])}return{c(){n=k("div"),e=k("div"),r=k("strong"),o=z(d),c=A(),i=k("span"),u=z(p),C(r,"class","svelte-z5r2z6"),C(i,"class","svelte-z5r2z6"),C(e,"class","contents svelte-z5r2z6"),C(n,"class","node svelte-z5r2z6"),S(n,"leaf",!t[12].children)},m(t,l){v(t,n,l),x(n,e),x(e,r),x(r,o),x(e,c),x(e,i),x(i,u),s=!0,a||(f=M(n,"click",h),a=!0)},p(e,r){t=e,(!s||4096&r)&&d!==(d=t[12].data.name+"")&&j(o,d),(!s||4096&r)&&p!==(p=Gt(t[12].value)+"")&&j(u,p),4096&r&&S(n,"leaf",!t[12].children)},i(t){s||(J((()=>{l||(l=lt(n,Xt,{duration:400},!0)),l.run(1)})),s=!0)},o(t){l||(l=lt(n,Xt,{duration:400},!1)),l.run(0),s=!1},d(t){t&&b(n),t&&l&&l.end(),a=!1,f()}}}function pn(t){let n,e,r=t[6](t[12],t[0]),o=r&&dn(t);return{c(){o&&o.c(),n=E()},m(t,r){o&&o.m(t,r),v(t,n,r),e=!0},p(t,e){4097&e&&(r=t[6](t[12],t[0])),r?o?(o.p(t,e),4097&e&&ct(o,1)):(o=dn(t),o.c(),ct(o,1),o.m(n.parentNode,n)):o&&(rt(),it(o,1,1,(()=>{o=null})),ot())},i(t){e||(ct(o),e=!0)},o(t){it(o),e=!1},d(t){o&&o.d(t),t&&b(n)}}}function hn(t){let n,e;return n=new fn({props:{root:t[2],$$slots:{default:[pn,({node:t})=>({12:t}),({node:t})=>t?4096:0]},$$scope:{ctx:t}}}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},p(t,e){const r={};12289&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function $n(t){let n,e,r,o,c,i,u,l,s,a=t[4](t[0])+"";return i=new zt({props:{x1:t[1].x1,x2:t[1].x2,y1:t[1].y1,y2:t[1].y2,$$slots:{default:[hn]},$$scope:{ctx:t}}}),{c(){n=k("button"),e=z(a),o=A(),c=k("div"),ft(i.$$.fragment),C(n,"class","breadcrumbs svelte-z5r2z6"),n.disabled=r=!t[0].parent,C(c,"class","chart svelte-z5r2z6")},m(r,a){v(r,n,a),x(n,e),v(r,o,a),v(r,c,a),dt(i,c,null),u=!0,l||(s=M(n,"click",t[8]),l=!0)},p(t,[o]){(!u||1&o)&&a!==(a=t[4](t[0])+"")&&j(e,a),(!u||1&o&&r!==(r=!t[0].parent))&&(n.disabled=r);const c={};2&o&&(c.x1=t[1].x1),2&o&&(c.x2=t[1].x2),2&o&&(c.y1=t[1].y1),2&o&&(c.y2=t[1].y2),8193&o&&(c.$$scope={dirty:o,ctx:t}),i.$set(c)},i(t){u||(ct(i.$$.fragment,t),u=!0)},o(t){it(i.$$.fragment,t),u=!1},d(t){t&&b(n),t&&b(o),t&&b(c),pt(i),l=!1,s()}}}function mn(t,r,o){let c,{data:i}=r;const u=function(){var t=Wt,n=!1,e=1,r=1,o=[0],c=Rt,i=Rt,u=Rt,l=Rt,s=Rt;function a(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),o=[0],n&&t.eachBefore(Dt),t}function f(n){var e=o[n.depth],r=n.x0+e,a=n.y0+e,f=n.x1-e,d=n.y1-e;f<r&&(r=f=(r+f)/2),d<a&&(a=d=(a+d)/2),n.x0=r,n.y0=a,n.x1=f,n.y1=d,n.children&&(e=o[n.depth+1]=c(n)/2,r+=s(n)-e,a+=i(n)-e,(f-=u(n)-e)<r&&(r=f=(r+f)/2),(d-=l(n)-e)<a&&(a=d=(a+d)/2),t(n,r,a,f,d))}return a.round=function(t){return arguments.length?(n=!!t,a):n},a.size=function(t){return arguments.length?(e=+t[0],r=+t[1],a):[e,r]},a.tile=function(n){return arguments.length?(t=Pt(n),a):t},a.padding=function(t){return arguments.length?a.paddingInner(t).paddingOuter(t):a.paddingInner()},a.paddingInner=function(t){return arguments.length?(c="function"==typeof t?t:Tt(+t),a):c},a.paddingOuter=function(t){return arguments.length?a.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):a.paddingTop()},a.paddingTop=function(t){return arguments.length?(i="function"==typeof t?t:Tt(+t),a):i},a.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:Tt(+t),a):u},a.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:Tt(+t),a):l},a.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:Tt(+t),a):s},a}()(jt(i).sum((t=>t.value)).sort(((t,n)=>n.value-t.value)));let l=u;const a=t=>{for(;t.parent&&t.parent!==l;)t=t.parent;t&&t.children&&o(0,l=t)},f=function(t,r={}){const o=yt(t);let c,i=t;function u(u,l){if(null==t)return o.set(t=u),Promise.resolve();i=u;let s=c,a=!1,{delay:f=0,duration:d=400,easing:p=n,interpolate:$=Ht}=e(e({},r),l);if(0===d)return s&&(s.abort(),s=null),o.set(t=i),Promise.resolve();const m=h()+f;let g;return c=y((n=>{if(n<m)return!0;a||(g=$(t,u),"function"==typeof d&&(d=d(t,u)),a=!0),s&&(s.abort(),s=null);const e=n-m;return e>d?(o.set(t=u),!1):(o.set(t=g(p(e/d))),!0)})),c.promise}return{set:u,update:(n,e)=>u(n(i,t),e),subscribe:o.subscribe}}(void 0,{easing:qt,duration:600});s(t,f,(t=>o(1,c=t)));return t.$$set=t=>{"data"in t&&o(7,i=t.data)},t.$$.update=()=>{1&t.$$.dirty&&function(t,n,e=n){t.set(e)}(f,c={x1:l.x0,x2:l.x1,y1:l.y1,y2:l.y0},c)},[l,c,u,a,t=>{const n=[];for(;t;)n.unshift(t.data.name),t=t.parent;return n.join("/")},f,(t,n)=>{for(;n;){if(t.parent===n)return!0;n=n.parent}return!1},i,()=>o(0,l=l.parent),t=>a(t)]}class gn extends mt{constructor(t){super(),$t(this,t,mn,$n,u,{data:7})}}function yn(n){let e,r;return{c(){e=_("svg"),r=_("path"),C(r,"fill-rule","evenodd"),C(r,"d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"),C(r,"clip-rule","evenodd"),C(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"height","12px"),B(e,"width","12px"),C(e,"viewBox","0 0 20 20"),C(e,"fill","currentColor")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}class xn extends mt{constructor(t){super(),$t(this,t,null,yn,u,{})}}function vn(n){let e,r;return{c(){e=_("svg"),r=_("path"),C(r,"fill-rule","evenodd"),C(r,"d","M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"),C(r,"clip-rule","evenodd"),C(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"height","12px"),B(e,"width","12px"),C(e,"viewBox","0 0 20 20"),C(e,"fill","currentColor")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}class bn extends mt{constructor(t){super(),$t(this,t,null,vn,u,{})}}function wn(t,n,e){const r=t.slice();return r[5]=n[e],r}function kn(t){let n,e;return n=new bn({}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function _n(t){let n,e;return n=new xn({}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function zn(t){let n,e,r=t[1].children,o=[];for(let n=0;n<r.length;n+=1)o[n]=Mn(wn(t,r,n));const c=t=>it(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();n=E()},m(t,r){for(let n=0;n<o.length;n+=1)o[n].m(t,r);v(t,n,r),e=!0},p(t,e){if(30&e){let i;for(r=t[1].children,i=0;i<r.length;i+=1){const c=wn(t,r,i);o[i]?(o[i].p(c,e),ct(o[i],1)):(o[i]=Mn(c),o[i].c(),ct(o[i],1),o[i].m(n.parentNode,n))}for(rt(),i=r.length;i<o.length;i+=1)c(i);ot()}},i(t){if(!e){for(let t=0;t<r.length;t+=1)ct(o[t]);e=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)it(o[t]);e=!1},d(t){w(o,t),t&&b(n)}}}function An(n){let e,r,o,c,i,u,l,s,a,f,d,p,h,$,m=n[5].name+"",g=n[5].value+"",y=Math.round(n[5].value/n[2]*1e4)/100+"";return{c(){e=k("tr"),r=k("td"),o=z(m),c=A(),i=k("td"),u=z(g),l=z("ms"),s=A(),a=k("td"),f=z(y),d=z("%"),p=A(),B(r,"padding-left",10*n[3]+31+"px"),C(r,"class","svelte-ro0xpi"),B(i,"text-align","right"),C(i,"class","svelte-ro0xpi"),B(a,"text-align","right"),C(a,"class","svelte-ro0xpi")},m(t,m){v(t,e,m),x(e,r),x(r,o),x(e,c),x(e,i),x(i,u),x(i,l),x(e,s),x(e,a),x(a,f),x(a,d),x(e,p),h||($=M(r,"click",n[4]),h=!0)},p(t,n){2&n&&m!==(m=t[5].name+"")&&j(o,m),8&n&&B(r,"padding-left",10*t[3]+31+"px"),2&n&&g!==(g=t[5].value+"")&&j(u,g),6&n&&y!==(y=Math.round(t[5].value/t[2]*1e4)/100+"")&&j(f,y)},i:t,o:t,d(t){t&&b(e),h=!1,$()}}}function En(t){let n,e;return n=new Bn({props:{data:t[5],maxtime:t[2],depth:t[3]+1}}),{c(){ft(n.$$.fragment)},m(t,r){dt(n,t,r),e=!0},p(t,e){const r={};2&e&&(r.data=t[5]),4&e&&(r.maxtime=t[2]),8&e&&(r.depth=t[3]+1),n.$set(r)},i(t){e||(ct(n.$$.fragment,t),e=!0)},o(t){it(n.$$.fragment,t),e=!1},d(t){pt(n,t)}}}function Mn(t){let n,e,r,o;const c=[En,An],i=[];function u(t,n){return"children"in t[5]?0:1}return n=u(t),e=i[n]=c[n](t),{c(){e.c(),r=E()},m(t,e){i[n].m(t,e),v(t,r,e),o=!0},p(t,o){let l=n;n=u(t),n===l?i[n].p(t,o):(rt(),it(i[l],1,1,(()=>{i[l]=null})),ot(),e=i[n],e?e.p(t,o):(e=i[n]=c[n](t),e.c()),ct(e,1),e.m(r.parentNode,r))},i(t){o||(ct(e),o=!0)},o(t){it(e),o=!1},d(t){i[n].d(t),t&&b(r)}}}function Cn(t){let n,e,r,o,c,i,u,l,s,a,f,d,p,h,$,m,g,y,w,_=t[1].name+"",O=Gt(t[1].value)+"",N=Math.round(t[1].value/t[2]*1e4)/100+"";const S=[_n,kn],L=[];function P(t,n){return t[0]?0:1}o=P(t),c=L[o]=S[o](t);let R=t[0]&&zn(t);return{c(){n=k("tr"),e=k("td"),r=k("span"),c.c(),i=A(),u=z(_),l=A(),s=k("td"),a=z(O),f=A(),d=k("td"),p=z(N),h=z("%"),$=A(),R&&R.c(),m=E(),B(r,"padding-left",10*t[3]+"px"),B(r,"cursor","pointer"),C(e,"class","svelte-ro0xpi"),B(s,"text-align","right"),C(s,"class","svelte-ro0xpi"),B(d,"text-align","right"),C(d,"class","svelte-ro0xpi")},m(c,b){v(c,n,b),x(n,e),x(e,r),L[o].m(r,null),x(r,i),x(r,u),x(n,l),x(n,s),x(s,a),x(n,f),x(n,d),x(d,p),x(d,h),v(c,$,b),R&&R.m(c,b),v(c,m,b),g=!0,y||(w=M(e,"click",t[4]),y=!0)},p(t,[n]){let e=o;o=P(t),o!==e&&(rt(),it(L[e],1,1,(()=>{L[e]=null})),ot(),c=L[o],c||(c=L[o]=S[o](t),c.c()),ct(c,1),c.m(r,i)),(!g||2&n)&&_!==(_=t[1].name+"")&&j(u,_),(!g||8&n)&&B(r,"padding-left",10*t[3]+"px"),(!g||2&n)&&O!==(O=Gt(t[1].value)+"")&&j(a,O),(!g||6&n)&&N!==(N=Math.round(t[1].value/t[2]*1e4)/100+"")&&j(p,N),t[0]?R?(R.p(t,n),1&n&&ct(R,1)):(R=zn(t),R.c(),ct(R,1),R.m(m.parentNode,m)):R&&(rt(),it(R,1,1,(()=>{R=null})),ot())},i(t){g||(ct(c),ct(R),g=!0)},o(t){it(c),it(R),g=!1},d(t){t&&b(n),L[o].d(),t&&b($),R&&R.d(t),t&&b(m),y=!1,w()}}}function jn(t,n,e){let{data:r}=n,{maxtime:o}=n,{depth:c=0}=n,{expanded:i=!1}=n;return t.$$set=t=>{"data"in t&&e(1,r=t.data),"maxtime"in t&&e(2,o=t.maxtime),"depth"in t&&e(3,c=t.depth),"expanded"in t&&e(0,i=t.expanded)},[i,r,o,c,function(){e(0,i=!i)}]}class Bn extends mt{constructor(t){super(),$t(this,t,jn,Cn,u,{data:1,maxtime:2,depth:3,expanded:0})}}function On(n){let e,r,o=n[3].message+"";return{c(){e=k("p"),r=z(o),B(e,"color","red")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Nn(n){let e,r;return e=new gn({props:{data:n[4]}}),{c(){ft(e.$$.fragment)},m(t,n){dt(e,t,n),r=!0},p:t,i(t){r||(ct(e.$$.fragment,t),r=!0)},o(t){it(e.$$.fragment,t),r=!1},d(t){pt(e,t)}}}function Sn(n){let e;return{c(){e=k("p"),e.textContent="...waiting"},m(t,n){v(t,e,n)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Ln(n){let e,r,o=n[3].message+"";return{c(){e=k("p"),r=z(o),B(e,"color","red")},m(t,n){v(t,e,n),x(e,r)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Pn(n){let e,r,o;return r=new Bn({props:{data:n[2],maxtime:n[2].value}}),{c(){e=k("table"),ft(r.$$.fragment),B(e,"width","100%"),B(e,"max-width","100%"),B(e,"margin-bottom","1rem"),B(e,"background-color","transparent")},m(t,n){v(t,e,n),dt(r,e,null),o=!0},p:t,i(t){o||(ct(r.$$.fragment,t),o=!0)},o(t){it(r.$$.fragment,t),o=!1},d(t){t&&b(e),pt(r)}}}function Rn(n){let e;return{c(){e=k("p"),e.textContent="...waiting"},m(t,n){v(t,e,n)},p:t,i:t,o:t,d(t){t&&b(e)}}}function Tn(t){let n,e,r,o,c,i,u,l,s,a,f,d={ctx:t,current:null,token:null,hasCatch:!0,pending:Sn,then:Nn,catch:On,value:4,error:3,blocks:[,,,]};st(t[0],d);let p={ctx:t,current:null,token:null,hasCatch:!0,pending:Rn,then:Pn,catch:Ln,value:2,error:3,blocks:[,,,]};return st(t[1],p),{c(){n=k("html"),e=A(),r=k("h1"),r.textContent="Pytest Duration Insights",o=A(),c=k("p"),c.textContent="You can click in the treemap below to explore where most time is spent.",i=A(),d.block.c(),u=A(),l=k("p"),l.textContent="You can also explore the nested tree below for more details.",s=A(),a=E(),p.block.c(),document.title="Duration Insights",C(n,"lang","en")},m(t,h){x(document.head,n),v(t,e,h),v(t,r,h),v(t,o,h),v(t,c,h),v(t,i,h),d.block.m(t,d.anchor=h),d.mount=()=>u.parentNode,d.anchor=u,v(t,u,h),v(t,l,h),v(t,s,h),v(t,a,h),p.block.m(t,p.anchor=h),p.mount=()=>a.parentNode,p.anchor=a,f=!0},p(n,[e]){at(d,t=n,e),at(p,t,e)},i(t){f||(ct(d.block),ct(p.block),f=!0)},o(t){for(let t=0;t<3;t+=1){it(d.blocks[t])}for(let t=0;t<3;t+=1){it(p.blocks[t])}f=!1},d(t){b(n),t&&b(e),t&&b(r),t&&b(o),t&&b(c),t&&b(i),d.block.d(t),d.token=null,d=null,t&&b(u),t&&b(l),t&&b(s),t&&b(a),p.block.d(t),p.token=null,p=null}}}async function Dn(t){const n=await fetch(t);return await n.json()}function In(t){return[Dn("data.json"),Dn("treedata.json")]}return new class extends mt{constructor(t){super(),$t(this,t,In,Tn,u,{})}}({target:document.body,props:{name:"world"}})}();
 //# sourceMappingURL=bundle.js.map
diff --git a/pytest_duration_insights/static/build/bundle.js.map b/pytest_duration_insights/static/build/bundle.js.map
index e0df38e..2ab3365 100644
--- a/pytest_duration_insights/static/build/bundle.js.map
+++ b/pytest_duration_insights/static/build/bundle.js.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte/store/index.mjs","../../node_modules/yootils/yootils.es.js","../../node_modules/@sveltejs/pancake/components/Chart.svelte","../../node_modules/@sveltejs/pancake/components/Box.svelte","../../node_modules/d3-hierarchy/src/hierarchy/count.js","../../node_modules/d3-hierarchy/src/hierarchy/index.js","../../node_modules/d3-hierarchy/src/accessors.js","../../node_modules/d3-hierarchy/src/constant.js","../../node_modules/d3-hierarchy/src/treemap/round.js","../../node_modules/d3-hierarchy/src/treemap/dice.js","../../node_modules/d3-hierarchy/src/treemap/slice.js","../../node_modules/d3-hierarchy/src/hierarchy/each.js","../../node_modules/d3-hierarchy/src/hierarchy/eachAfter.js","../../node_modules/d3-hierarchy/src/hierarchy/eachBefore.js","../../node_modules/d3-hierarchy/src/hierarchy/find.js","../../node_modules/d3-hierarchy/src/hierarchy/sum.js","../../node_modules/d3-hierarchy/src/hierarchy/sort.js","../../node_modules/d3-hierarchy/src/hierarchy/path.js","../../node_modules/d3-hierarchy/src/hierarchy/ancestors.js","../../node_modules/d3-hierarchy/src/hierarchy/descendants.js","../../node_modules/d3-hierarchy/src/hierarchy/leaves.js","../../node_modules/d3-hierarchy/src/hierarchy/links.js","../../node_modules/d3-hierarchy/src/hierarchy/iterator.js","../../node_modules/d3-hierarchy/src/treemap/squarify.js","../../node_modules/svelte/easing/index.mjs","../../node_modules/svelte/motion/index.mjs","../../node_modules/svelte/transition/index.mjs","../../src/TreemapNode.svelte","../../src/Treemap.svelte","../../src/Flare.svelte","../../node_modules/d3-hierarchy/src/treemap/index.js","../../src/TableRow.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n    // @ts-ignore\n    for (const k in src)\n        tar[k] = src[k];\n    return tar;\n}\nfunction is_promise(value) {\n    return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n    element.__svelte_meta = {\n        loc: { file, line, column, char }\n    };\n}\nfunction run(fn) {\n    return fn();\n}\nfunction blank_object() {\n    return Object.create(null);\n}\nfunction run_all(fns) {\n    fns.forEach(run);\n}\nfunction is_function(thing) {\n    return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n    return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n    return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n    return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n    if (store != null && typeof store.subscribe !== 'function') {\n        throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n    }\n}\nfunction subscribe(store, ...callbacks) {\n    if (store == null) {\n        return noop;\n    }\n    const unsub = store.subscribe(...callbacks);\n    return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n    let value;\n    subscribe(store, _ => value = _)();\n    return value;\n}\nfunction component_subscribe(component, store, callback) {\n    component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n    if (definition) {\n        const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n        return definition[0](slot_ctx);\n    }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n    return definition[1] && fn\n        ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n        : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n    if (definition[2] && fn) {\n        const lets = definition[2](fn(dirty));\n        if ($$scope.dirty === undefined) {\n            return lets;\n        }\n        if (typeof lets === 'object') {\n            const merged = [];\n            const len = Math.max($$scope.dirty.length, lets.length);\n            for (let i = 0; i < len; i += 1) {\n                merged[i] = $$scope.dirty[i] | lets[i];\n            }\n            return merged;\n        }\n        return $$scope.dirty | lets;\n    }\n    return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n    const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n    if (slot_changes) {\n        const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n        slot.p(slot_context, slot_changes);\n    }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n    const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n    if (slot_changes) {\n        const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n        slot.p(slot_context, slot_changes);\n    }\n}\nfunction exclude_internal_props(props) {\n    const result = {};\n    for (const k in props)\n        if (k[0] !== '$')\n            result[k] = props[k];\n    return result;\n}\nfunction compute_rest_props(props, keys) {\n    const rest = {};\n    keys = new Set(keys);\n    for (const k in props)\n        if (!keys.has(k) && k[0] !== '$')\n            rest[k] = props[k];\n    return rest;\n}\nfunction compute_slots(slots) {\n    const result = {};\n    for (const key in slots) {\n        result[key] = true;\n    }\n    return result;\n}\nfunction once(fn) {\n    let ran = false;\n    return function (...args) {\n        if (ran)\n            return;\n        ran = true;\n        fn.call(this, ...args);\n    };\n}\nfunction null_to_empty(value) {\n    return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n    store.set(value);\n    return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n    return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n    ? () => window.performance.now()\n    : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n    now = fn;\n}\nfunction set_raf(fn) {\n    raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n    tasks.forEach(task => {\n        if (!task.c(now)) {\n            tasks.delete(task);\n            task.f();\n        }\n    });\n    if (tasks.size !== 0)\n        raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n    tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n    let task;\n    if (tasks.size === 0)\n        raf(run_tasks);\n    return {\n        promise: new Promise(fulfill => {\n            tasks.add(task = { c: callback, f: fulfill });\n        }),\n        abort() {\n            tasks.delete(task);\n        }\n    };\n}\n\nfunction append(target, node) {\n    target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n    target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n    node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n    for (let i = 0; i < iterations.length; i += 1) {\n        if (iterations[i])\n            iterations[i].d(detaching);\n    }\n}\nfunction element(name) {\n    return document.createElement(name);\n}\nfunction element_is(name, is) {\n    return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n    const target = {};\n    for (const k in obj) {\n        if (has_prop(obj, k)\n            // @ts-ignore\n            && exclude.indexOf(k) === -1) {\n            // @ts-ignore\n            target[k] = obj[k];\n        }\n    }\n    return target;\n}\nfunction svg_element(name) {\n    return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n    return document.createTextNode(data);\n}\nfunction space() {\n    return text(' ');\n}\nfunction empty() {\n    return text('');\n}\nfunction listen(node, event, handler, options) {\n    node.addEventListener(event, handler, options);\n    return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n    return function (event) {\n        event.preventDefault();\n        // @ts-ignore\n        return fn.call(this, event);\n    };\n}\nfunction stop_propagation(fn) {\n    return function (event) {\n        event.stopPropagation();\n        // @ts-ignore\n        return fn.call(this, event);\n    };\n}\nfunction self(fn) {\n    return function (event) {\n        // @ts-ignore\n        if (event.target === this)\n            fn.call(this, event);\n    };\n}\nfunction attr(node, attribute, value) {\n    if (value == null)\n        node.removeAttribute(attribute);\n    else if (node.getAttribute(attribute) !== value)\n        node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n    // @ts-ignore\n    const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n    for (const key in attributes) {\n        if (attributes[key] == null) {\n            node.removeAttribute(key);\n        }\n        else if (key === 'style') {\n            node.style.cssText = attributes[key];\n        }\n        else if (key === '__value') {\n            node.value = node[key] = attributes[key];\n        }\n        else if (descriptors[key] && descriptors[key].set) {\n            node[key] = attributes[key];\n        }\n        else {\n            attr(node, key, attributes[key]);\n        }\n    }\n}\nfunction set_svg_attributes(node, attributes) {\n    for (const key in attributes) {\n        attr(node, key, attributes[key]);\n    }\n}\nfunction set_custom_element_data(node, prop, value) {\n    if (prop in node) {\n        node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n    }\n    else {\n        attr(node, prop, value);\n    }\n}\nfunction xlink_attr(node, attribute, value) {\n    node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n    const value = new Set();\n    for (let i = 0; i < group.length; i += 1) {\n        if (group[i].checked)\n            value.add(group[i].__value);\n    }\n    if (!checked) {\n        value.delete(__value);\n    }\n    return Array.from(value);\n}\nfunction to_number(value) {\n    return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n    const array = [];\n    for (let i = 0; i < ranges.length; i += 1) {\n        array.push({ start: ranges.start(i), end: ranges.end(i) });\n    }\n    return array;\n}\nfunction children(element) {\n    return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n    for (let i = 0; i < nodes.length; i += 1) {\n        const node = nodes[i];\n        if (node.nodeName === name) {\n            let j = 0;\n            const remove = [];\n            while (j < node.attributes.length) {\n                const attribute = node.attributes[j++];\n                if (!attributes[attribute.name]) {\n                    remove.push(attribute.name);\n                }\n            }\n            for (let k = 0; k < remove.length; k++) {\n                node.removeAttribute(remove[k]);\n            }\n            return nodes.splice(i, 1)[0];\n        }\n    }\n    return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n    for (let i = 0; i < nodes.length; i += 1) {\n        const node = nodes[i];\n        if (node.nodeType === 3) {\n            node.data = '' + data;\n            return nodes.splice(i, 1)[0];\n        }\n    }\n    return text(data);\n}\nfunction claim_space(nodes) {\n    return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n    data = '' + data;\n    if (text.wholeText !== data)\n        text.data = data;\n}\nfunction set_input_value(input, value) {\n    input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n    try {\n        input.type = type;\n    }\n    catch (e) {\n        // do nothing\n    }\n}\nfunction set_style(node, key, value, important) {\n    node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n    for (let i = 0; i < select.options.length; i += 1) {\n        const option = select.options[i];\n        if (option.__value === value) {\n            option.selected = true;\n            return;\n        }\n    }\n}\nfunction select_options(select, value) {\n    for (let i = 0; i < select.options.length; i += 1) {\n        const option = select.options[i];\n        option.selected = ~value.indexOf(option.__value);\n    }\n}\nfunction select_value(select) {\n    const selected_option = select.querySelector(':checked') || select.options[0];\n    return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n    return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n    if (crossorigin === undefined) {\n        crossorigin = false;\n        try {\n            if (typeof window !== 'undefined' && window.parent) {\n                void window.parent.document;\n            }\n        }\n        catch (error) {\n            crossorigin = true;\n        }\n    }\n    return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n    const computed_style = getComputedStyle(node);\n    if (computed_style.position === 'static') {\n        node.style.position = 'relative';\n    }\n    const iframe = element('iframe');\n    iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n        'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n    iframe.setAttribute('aria-hidden', 'true');\n    iframe.tabIndex = -1;\n    const crossorigin = is_crossorigin();\n    let unsubscribe;\n    if (crossorigin) {\n        iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n        unsubscribe = listen(window, 'message', (event) => {\n            if (event.source === iframe.contentWindow)\n                fn();\n        });\n    }\n    else {\n        iframe.src = 'about:blank';\n        iframe.onload = () => {\n            unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n        };\n    }\n    append(node, iframe);\n    return () => {\n        if (crossorigin) {\n            unsubscribe();\n        }\n        else if (unsubscribe && iframe.contentWindow) {\n            unsubscribe();\n        }\n        detach(iframe);\n    };\n}\nfunction toggle_class(element, name, toggle) {\n    element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n    const e = document.createEvent('CustomEvent');\n    e.initCustomEvent(type, false, false, detail);\n    return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n    return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n    constructor(anchor = null) {\n        this.a = anchor;\n        this.e = this.n = null;\n    }\n    m(html, target, anchor = null) {\n        if (!this.e) {\n            this.e = element(target.nodeName);\n            this.t = target;\n            this.h(html);\n        }\n        this.i(anchor);\n    }\n    h(html) {\n        this.e.innerHTML = html;\n        this.n = Array.from(this.e.childNodes);\n    }\n    i(anchor) {\n        for (let i = 0; i < this.n.length; i += 1) {\n            insert(this.t, this.n[i], anchor);\n        }\n    }\n    p(html) {\n        this.d();\n        this.h(html);\n        this.i(this.a);\n    }\n    d() {\n        this.n.forEach(detach);\n    }\n}\nfunction attribute_to_object(attributes) {\n    const result = {};\n    for (const attribute of attributes) {\n        result[attribute.name] = attribute.value;\n    }\n    return result;\n}\nfunction get_custom_elements_slots(element) {\n    const result = {};\n    element.childNodes.forEach((node) => {\n        result[node.slot || 'default'] = true;\n    });\n    return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n    let hash = 5381;\n    let i = str.length;\n    while (i--)\n        hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n    return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n    const step = 16.666 / duration;\n    let keyframes = '{\\n';\n    for (let p = 0; p <= 1; p += step) {\n        const t = a + (b - a) * ease(p);\n        keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n    }\n    const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n    const name = `__svelte_${hash(rule)}_${uid}`;\n    const doc = node.ownerDocument;\n    active_docs.add(doc);\n    const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n    const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n    if (!current_rules[name]) {\n        current_rules[name] = true;\n        stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n    }\n    const animation = node.style.animation || '';\n    node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n    active += 1;\n    return name;\n}\nfunction delete_rule(node, name) {\n    const previous = (node.style.animation || '').split(', ');\n    const next = previous.filter(name\n        ? anim => anim.indexOf(name) < 0 // remove specific animation\n        : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n    );\n    const deleted = previous.length - next.length;\n    if (deleted) {\n        node.style.animation = next.join(', ');\n        active -= deleted;\n        if (!active)\n            clear_rules();\n    }\n}\nfunction clear_rules() {\n    raf(() => {\n        if (active)\n            return;\n        active_docs.forEach(doc => {\n            const stylesheet = doc.__svelte_stylesheet;\n            let i = stylesheet.cssRules.length;\n            while (i--)\n                stylesheet.deleteRule(i);\n            doc.__svelte_rules = {};\n        });\n        active_docs.clear();\n    });\n}\n\nfunction create_animation(node, from, fn, params) {\n    if (!from)\n        return noop;\n    const to = node.getBoundingClientRect();\n    if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n        return noop;\n    const { delay = 0, duration = 300, easing = identity, \n    // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n    start: start_time = now() + delay, \n    // @ts-ignore todo:\n    end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n    let running = true;\n    let started = false;\n    let name;\n    function start() {\n        if (css) {\n            name = create_rule(node, 0, 1, duration, delay, easing, css);\n        }\n        if (!delay) {\n            started = true;\n        }\n    }\n    function stop() {\n        if (css)\n            delete_rule(node, name);\n        running = false;\n    }\n    loop(now => {\n        if (!started && now >= start_time) {\n            started = true;\n        }\n        if (started && now >= end) {\n            tick(1, 0);\n            stop();\n        }\n        if (!running) {\n            return false;\n        }\n        if (started) {\n            const p = now - start_time;\n            const t = 0 + 1 * easing(p / duration);\n            tick(t, 1 - t);\n        }\n        return true;\n    });\n    start();\n    tick(0, 1);\n    return stop;\n}\nfunction fix_position(node) {\n    const style = getComputedStyle(node);\n    if (style.position !== 'absolute' && style.position !== 'fixed') {\n        const { width, height } = style;\n        const a = node.getBoundingClientRect();\n        node.style.position = 'absolute';\n        node.style.width = width;\n        node.style.height = height;\n        add_transform(node, a);\n    }\n}\nfunction add_transform(node, a) {\n    const b = node.getBoundingClientRect();\n    if (a.left !== b.left || a.top !== b.top) {\n        const style = getComputedStyle(node);\n        const transform = style.transform === 'none' ? '' : style.transform;\n        node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n    }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n    current_component = component;\n}\nfunction get_current_component() {\n    if (!current_component)\n        throw new Error('Function called outside component initialization');\n    return current_component;\n}\nfunction beforeUpdate(fn) {\n    get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n    get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n    get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n    get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n    const component = get_current_component();\n    return (type, detail) => {\n        const callbacks = component.$$.callbacks[type];\n        if (callbacks) {\n            // TODO are there situations where events could be dispatched\n            // in a server (non-DOM) environment?\n            const event = custom_event(type, detail);\n            callbacks.slice().forEach(fn => {\n                fn.call(component, event);\n            });\n        }\n    };\n}\nfunction setContext(key, context) {\n    get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n    return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n    return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n    const callbacks = component.$$.callbacks[event.type];\n    if (callbacks) {\n        callbacks.slice().forEach(fn => fn(event));\n    }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n    if (!update_scheduled) {\n        update_scheduled = true;\n        resolved_promise.then(flush);\n    }\n}\nfunction tick() {\n    schedule_update();\n    return resolved_promise;\n}\nfunction add_render_callback(fn) {\n    render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n    flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n    if (flushing)\n        return;\n    flushing = true;\n    do {\n        // first, call beforeUpdate functions\n        // and update components\n        for (let i = 0; i < dirty_components.length; i += 1) {\n            const component = dirty_components[i];\n            set_current_component(component);\n            update(component.$$);\n        }\n        set_current_component(null);\n        dirty_components.length = 0;\n        while (binding_callbacks.length)\n            binding_callbacks.pop()();\n        // then, once components are updated, call\n        // afterUpdate functions. This may cause\n        // subsequent updates...\n        for (let i = 0; i < render_callbacks.length; i += 1) {\n            const callback = render_callbacks[i];\n            if (!seen_callbacks.has(callback)) {\n                // ...so guard against infinite loops\n                seen_callbacks.add(callback);\n                callback();\n            }\n        }\n        render_callbacks.length = 0;\n    } while (dirty_components.length);\n    while (flush_callbacks.length) {\n        flush_callbacks.pop()();\n    }\n    update_scheduled = false;\n    flushing = false;\n    seen_callbacks.clear();\n}\nfunction update($$) {\n    if ($$.fragment !== null) {\n        $$.update();\n        run_all($$.before_update);\n        const dirty = $$.dirty;\n        $$.dirty = [-1];\n        $$.fragment && $$.fragment.p($$.ctx, dirty);\n        $$.after_update.forEach(add_render_callback);\n    }\n}\n\nlet promise;\nfunction wait() {\n    if (!promise) {\n        promise = Promise.resolve();\n        promise.then(() => {\n            promise = null;\n        });\n    }\n    return promise;\n}\nfunction dispatch(node, direction, kind) {\n    node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n    outros = {\n        r: 0,\n        c: [],\n        p: outros // parent group\n    };\n}\nfunction check_outros() {\n    if (!outros.r) {\n        run_all(outros.c);\n    }\n    outros = outros.p;\n}\nfunction transition_in(block, local) {\n    if (block && block.i) {\n        outroing.delete(block);\n        block.i(local);\n    }\n}\nfunction transition_out(block, local, detach, callback) {\n    if (block && block.o) {\n        if (outroing.has(block))\n            return;\n        outroing.add(block);\n        outros.c.push(() => {\n            outroing.delete(block);\n            if (callback) {\n                if (detach)\n                    block.d(1);\n                callback();\n            }\n        });\n        block.o(local);\n    }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = false;\n    let animation_name;\n    let task;\n    let uid = 0;\n    function cleanup() {\n        if (animation_name)\n            delete_rule(node, animation_name);\n    }\n    function go() {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        if (css)\n            animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n        tick(0, 1);\n        const start_time = now() + delay;\n        const end_time = start_time + duration;\n        if (task)\n            task.abort();\n        running = true;\n        add_render_callback(() => dispatch(node, true, 'start'));\n        task = loop(now => {\n            if (running) {\n                if (now >= end_time) {\n                    tick(1, 0);\n                    dispatch(node, true, 'end');\n                    cleanup();\n                    return running = false;\n                }\n                if (now >= start_time) {\n                    const t = easing((now - start_time) / duration);\n                    tick(t, 1 - t);\n                }\n            }\n            return running;\n        });\n    }\n    let started = false;\n    return {\n        start() {\n            if (started)\n                return;\n            delete_rule(node);\n            if (is_function(config)) {\n                config = config();\n                wait().then(go);\n            }\n            else {\n                go();\n            }\n        },\n        invalidate() {\n            started = false;\n        },\n        end() {\n            if (running) {\n                cleanup();\n                running = false;\n            }\n        }\n    };\n}\nfunction create_out_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = true;\n    let animation_name;\n    const group = outros;\n    group.r += 1;\n    function go() {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        if (css)\n            animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n        const start_time = now() + delay;\n        const end_time = start_time + duration;\n        add_render_callback(() => dispatch(node, false, 'start'));\n        loop(now => {\n            if (running) {\n                if (now >= end_time) {\n                    tick(0, 1);\n                    dispatch(node, false, 'end');\n                    if (!--group.r) {\n                        // this will result in `end()` being called,\n                        // so we don't need to clean up here\n                        run_all(group.c);\n                    }\n                    return false;\n                }\n                if (now >= start_time) {\n                    const t = easing((now - start_time) / duration);\n                    tick(1 - t, t);\n                }\n            }\n            return running;\n        });\n    }\n    if (is_function(config)) {\n        wait().then(() => {\n            // @ts-ignore\n            config = config();\n            go();\n        });\n    }\n    else {\n        go();\n    }\n    return {\n        end(reset) {\n            if (reset && config.tick) {\n                config.tick(1, 0);\n            }\n            if (running) {\n                if (animation_name)\n                    delete_rule(node, animation_name);\n                running = false;\n            }\n        }\n    };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n    let config = fn(node, params);\n    let t = intro ? 0 : 1;\n    let running_program = null;\n    let pending_program = null;\n    let animation_name = null;\n    function clear_animation() {\n        if (animation_name)\n            delete_rule(node, animation_name);\n    }\n    function init(program, duration) {\n        const d = program.b - t;\n        duration *= Math.abs(d);\n        return {\n            a: t,\n            b: program.b,\n            d,\n            duration,\n            start: program.start,\n            end: program.start + duration,\n            group: program.group\n        };\n    }\n    function go(b) {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        const program = {\n            start: now() + delay,\n            b\n        };\n        if (!b) {\n            // @ts-ignore todo: improve typings\n            program.group = outros;\n            outros.r += 1;\n        }\n        if (running_program || pending_program) {\n            pending_program = program;\n        }\n        else {\n            // if this is an intro, and there's a delay, we need to do\n            // an initial tick and/or apply CSS animation immediately\n            if (css) {\n                clear_animation();\n                animation_name = create_rule(node, t, b, duration, delay, easing, css);\n            }\n            if (b)\n                tick(0, 1);\n            running_program = init(program, duration);\n            add_render_callback(() => dispatch(node, b, 'start'));\n            loop(now => {\n                if (pending_program && now > pending_program.start) {\n                    running_program = init(pending_program, duration);\n                    pending_program = null;\n                    dispatch(node, running_program.b, 'start');\n                    if (css) {\n                        clear_animation();\n                        animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n                    }\n                }\n                if (running_program) {\n                    if (now >= running_program.end) {\n                        tick(t = running_program.b, 1 - t);\n                        dispatch(node, running_program.b, 'end');\n                        if (!pending_program) {\n                            // we're done\n                            if (running_program.b) {\n                                // intro — we can tidy up immediately\n                                clear_animation();\n                            }\n                            else {\n                                // outro — needs to be coordinated\n                                if (!--running_program.group.r)\n                                    run_all(running_program.group.c);\n                            }\n                        }\n                        running_program = null;\n                    }\n                    else if (now >= running_program.start) {\n                        const p = now - running_program.start;\n                        t = running_program.a + running_program.d * easing(p / running_program.duration);\n                        tick(t, 1 - t);\n                    }\n                }\n                return !!(running_program || pending_program);\n            });\n        }\n    }\n    return {\n        run(b) {\n            if (is_function(config)) {\n                wait().then(() => {\n                    // @ts-ignore\n                    config = config();\n                    go(b);\n                });\n            }\n            else {\n                go(b);\n            }\n        },\n        end() {\n            clear_animation();\n            running_program = pending_program = null;\n        }\n    };\n}\n\nfunction handle_promise(promise, info) {\n    const token = info.token = {};\n    function update(type, index, key, value) {\n        if (info.token !== token)\n            return;\n        info.resolved = value;\n        let child_ctx = info.ctx;\n        if (key !== undefined) {\n            child_ctx = child_ctx.slice();\n            child_ctx[key] = value;\n        }\n        const block = type && (info.current = type)(child_ctx);\n        let needs_flush = false;\n        if (info.block) {\n            if (info.blocks) {\n                info.blocks.forEach((block, i) => {\n                    if (i !== index && block) {\n                        group_outros();\n                        transition_out(block, 1, 1, () => {\n                            if (info.blocks[i] === block) {\n                                info.blocks[i] = null;\n                            }\n                        });\n                        check_outros();\n                    }\n                });\n            }\n            else {\n                info.block.d(1);\n            }\n            block.c();\n            transition_in(block, 1);\n            block.m(info.mount(), info.anchor);\n            needs_flush = true;\n        }\n        info.block = block;\n        if (info.blocks)\n            info.blocks[index] = block;\n        if (needs_flush) {\n            flush();\n        }\n    }\n    if (is_promise(promise)) {\n        const current_component = get_current_component();\n        promise.then(value => {\n            set_current_component(current_component);\n            update(info.then, 1, info.value, value);\n            set_current_component(null);\n        }, error => {\n            set_current_component(current_component);\n            update(info.catch, 2, info.error, error);\n            set_current_component(null);\n            if (!info.hasCatch) {\n                throw error;\n            }\n        });\n        // if we previously had a then/catch block, destroy it\n        if (info.current !== info.pending) {\n            update(info.pending, 0);\n            return true;\n        }\n    }\n    else {\n        if (info.current !== info.then) {\n            update(info.then, 1, info.value, promise);\n            return true;\n        }\n        info.resolved = promise;\n    }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n    const child_ctx = ctx.slice();\n    const { resolved } = info;\n    if (info.current === info.then) {\n        child_ctx[info.value] = resolved;\n    }\n    if (info.current === info.catch) {\n        child_ctx[info.error] = resolved;\n    }\n    info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n    ? window\n    : typeof globalThis !== 'undefined'\n        ? globalThis\n        : global);\n\nfunction destroy_block(block, lookup) {\n    block.d(1);\n    lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n    transition_out(block, 1, 1, () => {\n        lookup.delete(block.key);\n    });\n}\nfunction fix_and_destroy_block(block, lookup) {\n    block.f();\n    destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n    block.f();\n    outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n    let o = old_blocks.length;\n    let n = list.length;\n    let i = o;\n    const old_indexes = {};\n    while (i--)\n        old_indexes[old_blocks[i].key] = i;\n    const new_blocks = [];\n    const new_lookup = new Map();\n    const deltas = new Map();\n    i = n;\n    while (i--) {\n        const child_ctx = get_context(ctx, list, i);\n        const key = get_key(child_ctx);\n        let block = lookup.get(key);\n        if (!block) {\n            block = create_each_block(key, child_ctx);\n            block.c();\n        }\n        else if (dynamic) {\n            block.p(child_ctx, dirty);\n        }\n        new_lookup.set(key, new_blocks[i] = block);\n        if (key in old_indexes)\n            deltas.set(key, Math.abs(i - old_indexes[key]));\n    }\n    const will_move = new Set();\n    const did_move = new Set();\n    function insert(block) {\n        transition_in(block, 1);\n        block.m(node, next);\n        lookup.set(block.key, block);\n        next = block.first;\n        n--;\n    }\n    while (o && n) {\n        const new_block = new_blocks[n - 1];\n        const old_block = old_blocks[o - 1];\n        const new_key = new_block.key;\n        const old_key = old_block.key;\n        if (new_block === old_block) {\n            // do nothing\n            next = new_block.first;\n            o--;\n            n--;\n        }\n        else if (!new_lookup.has(old_key)) {\n            // remove old block\n            destroy(old_block, lookup);\n            o--;\n        }\n        else if (!lookup.has(new_key) || will_move.has(new_key)) {\n            insert(new_block);\n        }\n        else if (did_move.has(old_key)) {\n            o--;\n        }\n        else if (deltas.get(new_key) > deltas.get(old_key)) {\n            did_move.add(new_key);\n            insert(new_block);\n        }\n        else {\n            will_move.add(old_key);\n            o--;\n        }\n    }\n    while (o--) {\n        const old_block = old_blocks[o];\n        if (!new_lookup.has(old_block.key))\n            destroy(old_block, lookup);\n    }\n    while (n)\n        insert(new_blocks[n - 1]);\n    return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n    const keys = new Set();\n    for (let i = 0; i < list.length; i++) {\n        const key = get_key(get_context(ctx, list, i));\n        if (keys.has(key)) {\n            throw new Error('Cannot have duplicate keys in a keyed each');\n        }\n        keys.add(key);\n    }\n}\n\nfunction get_spread_update(levels, updates) {\n    const update = {};\n    const to_null_out = {};\n    const accounted_for = { $$scope: 1 };\n    let i = levels.length;\n    while (i--) {\n        const o = levels[i];\n        const n = updates[i];\n        if (n) {\n            for (const key in o) {\n                if (!(key in n))\n                    to_null_out[key] = 1;\n            }\n            for (const key in n) {\n                if (!accounted_for[key]) {\n                    update[key] = n[key];\n                    accounted_for[key] = 1;\n                }\n            }\n            levels[i] = n;\n        }\n        else {\n            for (const key in o) {\n                accounted_for[key] = 1;\n            }\n        }\n    }\n    for (const key in to_null_out) {\n        if (!(key in update))\n            update[key] = undefined;\n    }\n    return update;\n}\nfunction get_spread_object(spread_props) {\n    return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n    'allowfullscreen',\n    'allowpaymentrequest',\n    'async',\n    'autofocus',\n    'autoplay',\n    'checked',\n    'controls',\n    'default',\n    'defer',\n    'disabled',\n    'formnovalidate',\n    'hidden',\n    'ismap',\n    'loop',\n    'multiple',\n    'muted',\n    'nomodule',\n    'novalidate',\n    'open',\n    'playsinline',\n    'readonly',\n    'required',\n    'reversed',\n    'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n    const attributes = Object.assign({}, ...args);\n    if (classes_to_add) {\n        if (attributes.class == null) {\n            attributes.class = classes_to_add;\n        }\n        else {\n            attributes.class += ' ' + classes_to_add;\n        }\n    }\n    let str = '';\n    Object.keys(attributes).forEach(name => {\n        if (invalid_attribute_name_character.test(name))\n            return;\n        const value = attributes[name];\n        if (value === true)\n            str += ' ' + name;\n        else if (boolean_attributes.has(name.toLowerCase())) {\n            if (value)\n                str += ' ' + name;\n        }\n        else if (value != null) {\n            str += ` ${name}=\"${String(value).replace(/\"/g, '&#34;').replace(/'/g, '&#39;')}\"`;\n        }\n    });\n    return str;\n}\nconst escaped = {\n    '\"': '&quot;',\n    \"'\": '&#39;',\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;'\n};\nfunction escape(html) {\n    return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n    let str = '';\n    for (let i = 0; i < items.length; i += 1) {\n        str += fn(items[i], i);\n    }\n    return str;\n}\nconst missing_component = {\n    $$render: () => ''\n};\nfunction validate_component(component, name) {\n    if (!component || !component.$$render) {\n        if (name === 'svelte:component')\n            name += ' this={...}';\n        throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n    }\n    return component;\n}\nfunction debug(file, line, column, values) {\n    console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n    console.log(values); // eslint-disable-line no-console\n    return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n    function $$render(result, props, bindings, slots, context) {\n        const parent_component = current_component;\n        const $$ = {\n            on_destroy,\n            context: new Map(parent_component ? parent_component.$$.context : context || []),\n            // these will be immediately discarded\n            on_mount: [],\n            before_update: [],\n            after_update: [],\n            callbacks: blank_object()\n        };\n        set_current_component({ $$ });\n        const html = fn(result, props, bindings, slots);\n        set_current_component(parent_component);\n        return html;\n    }\n    return {\n        render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n            on_destroy = [];\n            const result = { title: '', head: '', css: new Set() };\n            const html = $$render(result, props, {}, $$slots, context);\n            run_all(on_destroy);\n            return {\n                html,\n                css: {\n                    code: Array.from(result.css).map(css => css.code).join('\\n'),\n                    map: null // TODO\n                },\n                head: result.title + result.head\n            };\n        },\n        $$render\n    };\n}\nfunction add_attribute(name, value, boolean) {\n    if (value == null || (boolean && !value))\n        return '';\n    return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n    return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n    const index = component.$$.props[name];\n    if (index !== undefined) {\n        component.$$.bound[index] = callback;\n        callback(component.$$.ctx[index]);\n    }\n}\nfunction create_component(block) {\n    block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n    block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n    const { fragment, on_mount, on_destroy, after_update } = component.$$;\n    fragment && fragment.m(target, anchor);\n    if (!customElement) {\n        // onMount happens before the initial afterUpdate\n        add_render_callback(() => {\n            const new_on_destroy = on_mount.map(run).filter(is_function);\n            if (on_destroy) {\n                on_destroy.push(...new_on_destroy);\n            }\n            else {\n                // Edge case - component was destroyed immediately,\n                // most likely as a result of a binding initialising\n                run_all(new_on_destroy);\n            }\n            component.$$.on_mount = [];\n        });\n    }\n    after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n    const $$ = component.$$;\n    if ($$.fragment !== null) {\n        run_all($$.on_destroy);\n        $$.fragment && $$.fragment.d(detaching);\n        // TODO null out other refs, including component.$$ (but need to\n        // preserve final state?)\n        $$.on_destroy = $$.fragment = null;\n        $$.ctx = [];\n    }\n}\nfunction make_dirty(component, i) {\n    if (component.$$.dirty[0] === -1) {\n        dirty_components.push(component);\n        schedule_update();\n        component.$$.dirty.fill(0);\n    }\n    component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n    const parent_component = current_component;\n    set_current_component(component);\n    const $$ = component.$$ = {\n        fragment: null,\n        ctx: null,\n        // state\n        props,\n        update: noop,\n        not_equal,\n        bound: blank_object(),\n        // lifecycle\n        on_mount: [],\n        on_destroy: [],\n        on_disconnect: [],\n        before_update: [],\n        after_update: [],\n        context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n        // everything else\n        callbacks: blank_object(),\n        dirty,\n        skip_bound: false\n    };\n    let ready = false;\n    $$.ctx = instance\n        ? instance(component, options.props || {}, (i, ret, ...rest) => {\n            const value = rest.length ? rest[0] : ret;\n            if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n                if (!$$.skip_bound && $$.bound[i])\n                    $$.bound[i](value);\n                if (ready)\n                    make_dirty(component, i);\n            }\n            return ret;\n        })\n        : [];\n    $$.update();\n    ready = true;\n    run_all($$.before_update);\n    // `false` as a special case of no DOM component\n    $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n    if (options.target) {\n        if (options.hydrate) {\n            const nodes = children(options.target);\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            $$.fragment && $$.fragment.l(nodes);\n            nodes.forEach(detach);\n        }\n        else {\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            $$.fragment && $$.fragment.c();\n        }\n        if (options.intro)\n            transition_in(component.$$.fragment);\n        mount_component(component, options.target, options.anchor, options.customElement);\n        flush();\n    }\n    set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n    SvelteElement = class extends HTMLElement {\n        constructor() {\n            super();\n            this.attachShadow({ mode: 'open' });\n        }\n        connectedCallback() {\n            const { on_mount } = this.$$;\n            this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n            // @ts-ignore todo: improve typings\n            for (const key in this.$$.slotted) {\n                // @ts-ignore todo: improve typings\n                this.appendChild(this.$$.slotted[key]);\n            }\n        }\n        attributeChangedCallback(attr, _oldValue, newValue) {\n            this[attr] = newValue;\n        }\n        disconnectedCallback() {\n            run_all(this.$$.on_disconnect);\n        }\n        $destroy() {\n            destroy_component(this, 1);\n            this.$destroy = noop;\n        }\n        $on(type, callback) {\n            // TODO should this delegate to addEventListener?\n            const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n            callbacks.push(callback);\n            return () => {\n                const index = callbacks.indexOf(callback);\n                if (index !== -1)\n                    callbacks.splice(index, 1);\n            };\n        }\n        $set($$props) {\n            if (this.$$set && !is_empty($$props)) {\n                this.$$.skip_bound = true;\n                this.$$set($$props);\n                this.$$.skip_bound = false;\n            }\n        }\n    };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n    $destroy() {\n        destroy_component(this, 1);\n        this.$destroy = noop;\n    }\n    $on(type, callback) {\n        const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n        callbacks.push(callback);\n        return () => {\n            const index = callbacks.indexOf(callback);\n            if (index !== -1)\n                callbacks.splice(index, 1);\n        };\n    }\n    $set($$props) {\n        if (this.$$set && !is_empty($$props)) {\n            this.$$.skip_bound = true;\n            this.$$set($$props);\n            this.$$.skip_bound = false;\n        }\n    }\n}\n\nfunction dispatch_dev(type, detail) {\n    document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n    dispatch_dev('SvelteDOMInsert', { target, node });\n    append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n    dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n    insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n    dispatch_dev('SvelteDOMRemove', { node });\n    detach(node);\n}\nfunction detach_between_dev(before, after) {\n    while (before.nextSibling && before.nextSibling !== after) {\n        detach_dev(before.nextSibling);\n    }\n}\nfunction detach_before_dev(after) {\n    while (after.previousSibling) {\n        detach_dev(after.previousSibling);\n    }\n}\nfunction detach_after_dev(before) {\n    while (before.nextSibling) {\n        detach_dev(before.nextSibling);\n    }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n    const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n    if (has_prevent_default)\n        modifiers.push('preventDefault');\n    if (has_stop_propagation)\n        modifiers.push('stopPropagation');\n    dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n    const dispose = listen(node, event, handler, options);\n    return () => {\n        dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n        dispose();\n    };\n}\nfunction attr_dev(node, attribute, value) {\n    attr(node, attribute, value);\n    if (value == null)\n        dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n    else\n        dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n    node[property] = value;\n    dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n    node.dataset[property] = value;\n    dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n    data = '' + data;\n    if (text.wholeText === data)\n        return;\n    dispatch_dev('SvelteDOMSetData', { node: text, data });\n    text.data = data;\n}\nfunction validate_each_argument(arg) {\n    if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n        let msg = '{#each} only iterates over array-like objects.';\n        if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n            msg += ' You can use a spread to convert this iterable into an array.';\n        }\n        throw new Error(msg);\n    }\n}\nfunction validate_slots(name, slot, keys) {\n    for (const slot_key of Object.keys(slot)) {\n        if (!~keys.indexOf(slot_key)) {\n            console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n        }\n    }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n    constructor(options) {\n        if (!options || (!options.target && !options.$$inline)) {\n            throw new Error(\"'target' is a required option\");\n        }\n        super();\n    }\n    $destroy() {\n        super.$destroy();\n        this.$destroy = () => {\n            console.warn('Component was already destroyed'); // eslint-disable-line no-console\n        };\n    }\n    $capture_state() { }\n    $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n    constructor(options) {\n        super(options);\n    }\n}\nfunction loop_guard(timeout) {\n    const start = Date.now();\n    return () => {\n        if (Date.now() - start > timeout) {\n            throw new Error('Infinite loop detected');\n        }\n    };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n    return {\n        subscribe: writable(value, start).subscribe\n    };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n    let stop;\n    const subscribers = [];\n    function set(new_value) {\n        if (safe_not_equal(value, new_value)) {\n            value = new_value;\n            if (stop) { // store is ready\n                const run_queue = !subscriber_queue.length;\n                for (let i = 0; i < subscribers.length; i += 1) {\n                    const s = subscribers[i];\n                    s[1]();\n                    subscriber_queue.push(s, value);\n                }\n                if (run_queue) {\n                    for (let i = 0; i < subscriber_queue.length; i += 2) {\n                        subscriber_queue[i][0](subscriber_queue[i + 1]);\n                    }\n                    subscriber_queue.length = 0;\n                }\n            }\n        }\n    }\n    function update(fn) {\n        set(fn(value));\n    }\n    function subscribe(run, invalidate = noop) {\n        const subscriber = [run, invalidate];\n        subscribers.push(subscriber);\n        if (subscribers.length === 1) {\n            stop = start(set) || noop;\n        }\n        run(value);\n        return () => {\n            const index = subscribers.indexOf(subscriber);\n            if (index !== -1) {\n                subscribers.splice(index, 1);\n            }\n            if (subscribers.length === 0) {\n                stop();\n                stop = null;\n            }\n        };\n    }\n    return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n    const single = !Array.isArray(stores);\n    const stores_array = single\n        ? [stores]\n        : stores;\n    const auto = fn.length < 2;\n    return readable(initial_value, (set) => {\n        let inited = false;\n        const values = [];\n        let pending = 0;\n        let cleanup = noop;\n        const sync = () => {\n            if (pending) {\n                return;\n            }\n            cleanup();\n            const result = fn(single ? values[0] : values, set);\n            if (auto) {\n                set(result);\n            }\n            else {\n                cleanup = is_function(result) ? result : noop;\n            }\n        };\n        const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n            values[i] = value;\n            pending &= ~(1 << i);\n            if (inited) {\n                sync();\n            }\n        }, () => {\n            pending |= (1 << i);\n        }));\n        inited = true;\n        sync();\n        return function stop() {\n            run_all(unsubscribers);\n            cleanup();\n        };\n    });\n}\n\nexport { derived, readable, writable };\n","var default_sort = function (item, needle) { return item - needle; };\nfunction binarySearch(array, search, fn) {\n    if (fn === void 0) { fn = default_sort; }\n    var low = 0;\n    var high = array.length - 1;\n    var sort = fn.length === 1\n        ? function (item, needle) { return fn(item) - search; }\n        : fn;\n    while (low <= high) {\n        var i = (high + low) >> 1;\n        var d = sort(array[i], search);\n        if (d < 0) {\n            low = i + 1;\n        }\n        else if (d > 0) {\n            high = i - 1;\n        }\n        else {\n            return i;\n        }\n    }\n    return -low - 1;\n}\n\nfunction pickRandom(array) {\n    var i = ~~(Math.random() * array.length);\n    return array[i];\n}\n\n// http://bost.ocks.org/mike/shuffle/\nfunction shuffle(array) {\n    var m = array.length;\n    // While there remain elements to shuffle…\n    while (m > 0) {\n        // Pick a remaining element…\n        var i = Math.floor(Math.random() * m--);\n        // And swap it with the current element.\n        var t = array[m];\n        array[m] = array[i];\n        array[i] = t;\n    }\n    return array;\n}\n\nfunction queue(max) {\n    if (max === void 0) { max = 4; }\n    var items = []; // TODO\n    var pending = 0;\n    var closed = false;\n    var fulfil_closed;\n    function dequeue() {\n        if (pending === 0 && items.length === 0) {\n            if (fulfil_closed)\n                fulfil_closed();\n        }\n        if (pending >= max)\n            return;\n        if (items.length === 0)\n            return;\n        pending += 1;\n        var _a = items.shift(), fn = _a.fn, fulfil = _a.fulfil, reject = _a.reject;\n        var promise = fn();\n        try {\n            promise.then(fulfil, reject).then(function () {\n                pending -= 1;\n                dequeue();\n            });\n        }\n        catch (err) {\n            reject(err);\n            pending -= 1;\n            dequeue();\n        }\n        dequeue();\n    }\n    return {\n        add: function (fn) {\n            if (closed) {\n                throw new Error(\"Cannot add to a closed queue\");\n            }\n            return new Promise(function (fulfil, reject) {\n                items.push({ fn: fn, fulfil: fulfil, reject: reject });\n                dequeue();\n            });\n        },\n        close: function () {\n            closed = true;\n            return new Promise(function (fulfil, reject) {\n                if (pending === 0) {\n                    fulfil();\n                }\n                else {\n                    fulfil_closed = fulfil;\n                }\n            });\n        }\n    };\n}\n\nfunction createSprite(width, height, fn) {\n    var canvas = document.createElement('canvas');\n    canvas.width = width;\n    canvas.height = height;\n    var ctx = canvas.getContext('2d');\n    fn(ctx, canvas);\n    return canvas;\n}\n\nfunction clamp(num, min, max) {\n    return num < min ? min : num > max ? max : num;\n}\n\nfunction random(a, b) {\n    if (b === undefined)\n        return Math.random() * a;\n    return a + Math.random() * (b - a);\n}\n\nfunction linear(domain, range) {\n    var d0 = domain[0];\n    var r0 = range[0];\n    var m = (range[1] - r0) / (domain[1] - d0);\n    return Object.assign(function (num) {\n        return r0 + (num - d0) * m;\n    }, {\n        inverse: function () { return linear(range, domain); }\n    });\n}\n\n// https://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript\nfunction commas(num) {\n    var parts = String(num).split('.');\n    parts[0] = parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n    return parts.join('.');\n}\n\n// array\n\nexport { binarySearch, pickRandom, shuffle, queue, createSprite, clamp, random, linear as linearScale, commas };\n","<script context=\"module\">\n\timport { getContext } from 'svelte';\n\n\tconst key = {};\n\n\texport function getChartContext() {\n\t\treturn getContext(key);\n\t}\n</script>\n\n<script>\n\timport { setContext, onDestroy } from 'svelte';\n\timport { writable, derived } from 'svelte/store';\n\timport * as yootils from 'yootils';\n\n\texport let x1 = 0;\n\texport let y1 = 0;\n\texport let x2 = 1;\n\texport let y2 = 1;\n\texport let clip = false;\n\n\tlet chart;\n\n\tconst _x1 = writable();\n\tconst _y1 = writable();\n\tconst _x2 = writable();\n\tconst _y2 = writable();\n\n\tconst width = writable();\n\tconst height = writable();\n\tconst pointer = writable(null);\n\n\tconst handle_mousemove = e => {\n\t\tconst bcr = chart.getBoundingClientRect();\n\t\tconst left = e.clientX - bcr.left;\n\t\tconst top = e.clientY - bcr.top;\n\n\t\tconst x = $x_scale_inverse(100 * left / (bcr.right - bcr.left));\n\t\tconst y = $y_scale_inverse(100 * top / (bcr.bottom - bcr.top));\n\n\t\tpointer.set({ x, y, left, top });\n\t};\n\n\tconst handle_mouseleave = () => {\n\t\tpointer.set(null);\n\t};\n\n\t$: _x1.set(x1);\n\t$: _y1.set(y1);\n\t$: _x2.set(x2);\n\t$: _y2.set(y2);\n\n\tconst x_scale = derived([_x1, _x2], ([$x1, $x2]) => {\n\t\treturn yootils.linearScale([$x1, $x2], [0, 100]);\n\t});\n\n\tconst y_scale = derived([_y1, _y2], ([$y1, $y2]) => {\n\t\treturn yootils.linearScale([$y1, $y2], [100, 0]);\n\t});\n\n\tconst x_scale_inverse = derived(x_scale, $x_scale => $x_scale.inverse());\n\tconst y_scale_inverse = derived(y_scale, $y_scale => $y_scale.inverse());\n\n\tsetContext(key, {\n\t\tx1: _x1,\n\t\ty1: _y1,\n\t\tx2: _x2,\n\t\ty2: _y2,\n\t\tx_scale,\n\t\ty_scale,\n\t\tx_scale_inverse,\n\t\ty_scale_inverse,\n\t\tpointer,\n\t\twidth,\n\t\theight\n\t});\n</script>\n\n<div\n\tclass=\"pancake-chart\"\n\tbind:this={chart}\n\tbind:clientWidth={$width}\n\tbind:clientHeight={$height}\n\ton:mousemove={handle_mousemove}\n\ton:mouseleave={handle_mouseleave}\n\tclass:clip\n>\n\t<slot></slot>\n</div>\n\n<style>\n\t.pancake-chart {\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.clip {\n\t\toverflow: hidden;\n\t}\n</style>","<script>\n\timport { getChartContext } from './Chart.svelte';\n\n\texport let x1 = 0;\n\texport let x2 = 1;\n\texport let y1 = 0;\n\texport let y2 = 1;\n\n\tconst { x_scale, y_scale } = getChartContext();\n\n\tlet style; $: {\n\t\tconst _x1 = $x_scale(x1);\n\t\tconst _x2 = $x_scale(x2);\n\t\tconst _y1 = $y_scale(y1);\n\t\tconst _y2 = $y_scale(y2);\n\n\t\tconst left   = Math.min(_x1, _x2);\n\t\tconst right  = Math.max(_x1, _x2);\n\t\tconst top    = Math.min(_y1, _y2);\n\t\tconst bottom = Math.max(_y1, _y2);\n\n\t\tconst width = right - left;\n\t\tconst height = bottom - top;\n\n\t\tstyle = `left: ${left}%; bottom: ${100 - bottom}%; width: ${right - left}%; height: ${height}%;`;\n\t};\n</script>\n\n<div class=\"pancake-box\" style={style}>\n\t<slot></slot>\n</div>\n\n<style>\n\t.pancake-box {\n\t\tposition: absolute;\n\t}\n</style>","function count(node) {\n  var sum = 0,\n      children = node.children,\n      i = children && children.length;\n  if (!i) sum = 1;\n  else while (--i >= 0) sum += children[i].value;\n  node.value = sum;\n}\n\nexport default function() {\n  return this.eachAfter(count);\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_find from \"./find.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\nimport node_iterator from \"./iterator.js\";\n\nexport default function hierarchy(data, children) {\n  if (data instanceof Map) {\n    data = [undefined, data];\n    if (children === undefined) children = mapChildren;\n  } else if (children === undefined) {\n    children = objectChildren;\n  }\n\n  var root = new Node(data),\n      node,\n      nodes = [root],\n      child,\n      childs,\n      i,\n      n;\n\n  while (node = nodes.pop()) {\n    if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {\n      node.children = childs;\n      for (i = n - 1; i >= 0; --i) {\n        nodes.push(child = childs[i] = new Node(childs[i]));\n        child.parent = node;\n        child.depth = node.depth + 1;\n      }\n    }\n  }\n\n  return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n  return hierarchy(this).eachBefore(copyData);\n}\n\nfunction objectChildren(d) {\n  return d.children;\n}\n\nfunction mapChildren(d) {\n  return Array.isArray(d) ? d[1] : null;\n}\n\nfunction copyData(node) {\n  if (node.data.value !== undefined) node.value = node.data.value;\n  node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n  var height = 0;\n  do node.height = height;\n  while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n  this.data = data;\n  this.depth =\n  this.height = 0;\n  this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n  constructor: Node,\n  count: node_count,\n  each: node_each,\n  eachAfter: node_eachAfter,\n  eachBefore: node_eachBefore,\n  find: node_find,\n  sum: node_sum,\n  sort: node_sort,\n  path: node_path,\n  ancestors: node_ancestors,\n  descendants: node_descendants,\n  leaves: node_leaves,\n  links: node_links,\n  copy: node_copy,\n  [Symbol.iterator]: node_iterator\n};\n","export function optional(f) {\n  return f == null ? null : required(f);\n}\n\nexport function required(f) {\n  if (typeof f !== \"function\") throw new Error;\n  return f;\n}\n","export function constantZero() {\n  return 0;\n}\n\nexport default function(x) {\n  return function() {\n    return x;\n  };\n}\n","export default function(node) {\n  node.x0 = Math.round(node.x0);\n  node.y0 = Math.round(node.y0);\n  node.x1 = Math.round(node.x1);\n  node.y1 = Math.round(node.y1);\n}\n","export default function(parent, x0, y0, x1, y1) {\n  var nodes = parent.children,\n      node,\n      i = -1,\n      n = nodes.length,\n      k = parent.value && (x1 - x0) / parent.value;\n\n  while (++i < n) {\n    node = nodes[i], node.y0 = y0, node.y1 = y1;\n    node.x0 = x0, node.x1 = x0 += node.value * k;\n  }\n}\n","export default function(parent, x0, y0, x1, y1) {\n  var nodes = parent.children,\n      node,\n      i = -1,\n      n = nodes.length,\n      k = parent.value && (y1 - y0) / parent.value;\n\n  while (++i < n) {\n    node = nodes[i], node.x0 = x0, node.x1 = x1;\n    node.y0 = y0, node.y1 = y0 += node.value * k;\n  }\n}\n","export default function(callback, that) {\n  let index = -1;\n  for (const node of this) {\n    callback.call(that, node, ++index, this);\n  }\n  return this;\n}\n","export default function(callback, that) {\n  var node = this, nodes = [node], next = [], children, i, n, index = -1;\n  while (node = nodes.pop()) {\n    next.push(node);\n    if (children = node.children) {\n      for (i = 0, n = children.length; i < n; ++i) {\n        nodes.push(children[i]);\n      }\n    }\n  }\n  while (node = next.pop()) {\n    callback.call(that, node, ++index, this);\n  }\n  return this;\n}\n","export default function(callback, that) {\n  var node = this, nodes = [node], children, i, index = -1;\n  while (node = nodes.pop()) {\n    callback.call(that, node, ++index, this);\n    if (children = node.children) {\n      for (i = children.length - 1; i >= 0; --i) {\n        nodes.push(children[i]);\n      }\n    }\n  }\n  return this;\n}\n","export default function(callback, that) {\n  let index = -1;\n  for (const node of this) {\n    if (callback.call(that, node, ++index, this)) {\n      return node;\n    }\n  }\n}\n","export default function(value) {\n  return this.eachAfter(function(node) {\n    var sum = +value(node.data) || 0,\n        children = node.children,\n        i = children && children.length;\n    while (--i >= 0) sum += children[i].value;\n    node.value = sum;\n  });\n}\n","export default function(compare) {\n  return this.eachBefore(function(node) {\n    if (node.children) {\n      node.children.sort(compare);\n    }\n  });\n}\n","export default function(end) {\n  var start = this,\n      ancestor = leastCommonAncestor(start, end),\n      nodes = [start];\n  while (start !== ancestor) {\n    start = start.parent;\n    nodes.push(start);\n  }\n  var k = nodes.length;\n  while (end !== ancestor) {\n    nodes.splice(k, 0, end);\n    end = end.parent;\n  }\n  return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n  if (a === b) return a;\n  var aNodes = a.ancestors(),\n      bNodes = b.ancestors(),\n      c = null;\n  a = aNodes.pop();\n  b = bNodes.pop();\n  while (a === b) {\n    c = a;\n    a = aNodes.pop();\n    b = bNodes.pop();\n  }\n  return c;\n}\n","export default function() {\n  var node = this, nodes = [node];\n  while (node = node.parent) {\n    nodes.push(node);\n  }\n  return nodes;\n}\n","export default function() {\n  return Array.from(this);\n}\n","export default function() {\n  var leaves = [];\n  this.eachBefore(function(node) {\n    if (!node.children) {\n      leaves.push(node);\n    }\n  });\n  return leaves;\n}\n","export default function() {\n  var root = this, links = [];\n  root.each(function(node) {\n    if (node !== root) { // Don’t include the root’s parent, if any.\n      links.push({source: node.parent, target: node});\n    }\n  });\n  return links;\n}\n","export default function*() {\n  var node = this, current, next = [node], children, i, n;\n  do {\n    current = next.reverse(), next = [];\n    while (node = current.pop()) {\n      yield node;\n      if (children = node.children) {\n        for (i = 0, n = children.length; i < n; ++i) {\n          next.push(children[i]);\n        }\n      }\n    }\n  } while (next.length);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n  var rows = [],\n      nodes = parent.children,\n      row,\n      nodeValue,\n      i0 = 0,\n      i1 = 0,\n      n = nodes.length,\n      dx, dy,\n      value = parent.value,\n      sumValue,\n      minValue,\n      maxValue,\n      newRatio,\n      minRatio,\n      alpha,\n      beta;\n\n  while (i0 < n) {\n    dx = x1 - x0, dy = y1 - y0;\n\n    // Find the next non-empty node.\n    do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n    minValue = maxValue = sumValue;\n    alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n    beta = sumValue * sumValue * alpha;\n    minRatio = Math.max(maxValue / beta, beta / minValue);\n\n    // Keep adding nodes while the aspect ratio maintains or improves.\n    for (; i1 < n; ++i1) {\n      sumValue += nodeValue = nodes[i1].value;\n      if (nodeValue < minValue) minValue = nodeValue;\n      if (nodeValue > maxValue) maxValue = nodeValue;\n      beta = sumValue * sumValue * alpha;\n      newRatio = Math.max(maxValue / beta, beta / minValue);\n      if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n      minRatio = newRatio;\n    }\n\n    // Position and record the row orientation.\n    rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n    if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n    else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n    value -= sumValue, i0 = i1;\n  }\n\n  return rows;\n}\n\nexport default (function custom(ratio) {\n\n  function squarify(parent, x0, y0, x1, y1) {\n    squarifyRatio(ratio, parent, x0, y0, x1, y1);\n  }\n\n  squarify.ratio = function(x) {\n    return custom((x = +x) > 1 ? x : 1);\n  };\n\n  return squarify;\n})(phi);\n","export { identity as linear } from '../internal/index.mjs';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n    const s = 1.70158 * 1.525;\n    if ((t *= 2) < 1)\n        return 0.5 * (t * t * ((s + 1) * t - s));\n    return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n    const s = 1.70158;\n    return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n    const s = 1.70158;\n    return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n    const a = 4.0 / 11.0;\n    const b = 8.0 / 11.0;\n    const c = 9.0 / 10.0;\n    const ca = 4356.0 / 361.0;\n    const cb = 35442.0 / 1805.0;\n    const cc = 16061.0 / 1805.0;\n    const t2 = t * t;\n    return t < a\n        ? 7.5625 * t2\n        : t < b\n            ? 9.075 * t2 - 9.9 * t + 3.4\n            : t < c\n                ? ca * t2 - cb * t + cc\n                : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n    return t < 0.5\n        ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n        : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n    return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n    if ((t *= 2) < 1)\n        return -0.5 * (Math.sqrt(1 - t * t) - 1);\n    return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n    return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n    return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n    return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n    return t * t * t;\n}\nfunction cubicOut(t) {\n    const f = t - 1.0;\n    return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n    return t < 0.5\n        ? 0.5 *\n            Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n            Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n        : 0.5 *\n            Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n            Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n            1.0;\n}\nfunction elasticIn(t) {\n    return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n    return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n    return t === 0.0 || t === 1.0\n        ? t\n        : t < 0.5\n            ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n            : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n    return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n    return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n    t /= 0.5;\n    if (t < 1)\n        return 0.5 * t * t;\n    t--;\n    return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n    return t * t;\n}\nfunction quadOut(t) {\n    return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n    return t < 0.5\n        ? +8.0 * Math.pow(t, 4.0)\n        : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n    return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n    return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n    if ((t *= 2) < 1)\n        return 0.5 * t * t * t * t * t;\n    return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n    return t * t * t * t * t;\n}\nfunction quintOut(t) {\n    return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n    return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n    const v = Math.cos(t * Math.PI * 0.5);\n    if (Math.abs(v) < 1e-14)\n        return 1;\n    else\n        return 1 - v;\n}\nfunction sineOut(t) {\n    return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { writable } from '../store/index.mjs';\nimport { now, loop, assign } from '../internal/index.mjs';\nimport { linear } from '../easing/index.mjs';\n\nfunction is_date(obj) {\n    return Object.prototype.toString.call(obj) === '[object Date]';\n}\n\nfunction tick_spring(ctx, last_value, current_value, target_value) {\n    if (typeof current_value === 'number' || is_date(current_value)) {\n        // @ts-ignore\n        const delta = target_value - current_value;\n        // @ts-ignore\n        const velocity = (current_value - last_value) / (ctx.dt || 1 / 60); // guard div by 0\n        const spring = ctx.opts.stiffness * delta;\n        const damper = ctx.opts.damping * velocity;\n        const acceleration = (spring - damper) * ctx.inv_mass;\n        const d = (velocity + acceleration) * ctx.dt;\n        if (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) {\n            return target_value; // settled\n        }\n        else {\n            ctx.settled = false; // signal loop to keep ticking\n            // @ts-ignore\n            return is_date(current_value) ?\n                new Date(current_value.getTime() + d) : current_value + d;\n        }\n    }\n    else if (Array.isArray(current_value)) {\n        // @ts-ignore\n        return current_value.map((_, i) => tick_spring(ctx, last_value[i], current_value[i], target_value[i]));\n    }\n    else if (typeof current_value === 'object') {\n        const next_value = {};\n        for (const k in current_value) {\n            // @ts-ignore\n            next_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);\n        }\n        // @ts-ignore\n        return next_value;\n    }\n    else {\n        throw new Error(`Cannot spring ${typeof current_value} values`);\n    }\n}\nfunction spring(value, opts = {}) {\n    const store = writable(value);\n    const { stiffness = 0.15, damping = 0.8, precision = 0.01 } = opts;\n    let last_time;\n    let task;\n    let current_token;\n    let last_value = value;\n    let target_value = value;\n    let inv_mass = 1;\n    let inv_mass_recovery_rate = 0;\n    let cancel_task = false;\n    function set(new_value, opts = {}) {\n        target_value = new_value;\n        const token = current_token = {};\n        if (value == null || opts.hard || (spring.stiffness >= 1 && spring.damping >= 1)) {\n            cancel_task = true; // cancel any running animation\n            last_time = now();\n            last_value = new_value;\n            store.set(value = target_value);\n            return Promise.resolve();\n        }\n        else if (opts.soft) {\n            const rate = opts.soft === true ? .5 : +opts.soft;\n            inv_mass_recovery_rate = 1 / (rate * 60);\n            inv_mass = 0; // infinite mass, unaffected by spring forces\n        }\n        if (!task) {\n            last_time = now();\n            cancel_task = false;\n            task = loop(now => {\n                if (cancel_task) {\n                    cancel_task = false;\n                    task = null;\n                    return false;\n                }\n                inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);\n                const ctx = {\n                    inv_mass,\n                    opts: spring,\n                    settled: true,\n                    dt: (now - last_time) * 60 / 1000\n                };\n                const next_value = tick_spring(ctx, last_value, value, target_value);\n                last_time = now;\n                last_value = value;\n                store.set(value = next_value);\n                if (ctx.settled) {\n                    task = null;\n                }\n                return !ctx.settled;\n            });\n        }\n        return new Promise(fulfil => {\n            task.promise.then(() => {\n                if (token === current_token)\n                    fulfil();\n            });\n        });\n    }\n    const spring = {\n        set,\n        update: (fn, opts) => set(fn(target_value, value), opts),\n        subscribe: store.subscribe,\n        stiffness,\n        damping,\n        precision\n    };\n    return spring;\n}\n\nfunction get_interpolator(a, b) {\n    if (a === b || a !== a)\n        return () => a;\n    const type = typeof a;\n    if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) {\n        throw new Error('Cannot interpolate values of different type');\n    }\n    if (Array.isArray(a)) {\n        const arr = b.map((bi, i) => {\n            return get_interpolator(a[i], bi);\n        });\n        return t => arr.map(fn => fn(t));\n    }\n    if (type === 'object') {\n        if (!a || !b)\n            throw new Error('Object cannot be null');\n        if (is_date(a) && is_date(b)) {\n            a = a.getTime();\n            b = b.getTime();\n            const delta = b - a;\n            return t => new Date(a + t * delta);\n        }\n        const keys = Object.keys(b);\n        const interpolators = {};\n        keys.forEach(key => {\n            interpolators[key] = get_interpolator(a[key], b[key]);\n        });\n        return t => {\n            const result = {};\n            keys.forEach(key => {\n                result[key] = interpolators[key](t);\n            });\n            return result;\n        };\n    }\n    if (type === 'number') {\n        const delta = b - a;\n        return t => a + t * delta;\n    }\n    throw new Error(`Cannot interpolate ${type} values`);\n}\nfunction tweened(value, defaults = {}) {\n    const store = writable(value);\n    let task;\n    let target_value = value;\n    function set(new_value, opts) {\n        if (value == null) {\n            store.set(value = new_value);\n            return Promise.resolve();\n        }\n        target_value = new_value;\n        let previous_task = task;\n        let started = false;\n        let { delay = 0, duration = 400, easing = linear, interpolate = get_interpolator } = assign(assign({}, defaults), opts);\n        if (duration === 0) {\n            if (previous_task) {\n                previous_task.abort();\n                previous_task = null;\n            }\n            store.set(value = target_value);\n            return Promise.resolve();\n        }\n        const start = now() + delay;\n        let fn;\n        task = loop(now => {\n            if (now < start)\n                return true;\n            if (!started) {\n                fn = interpolate(value, new_value);\n                if (typeof duration === 'function')\n                    duration = duration(value, new_value);\n                started = true;\n            }\n            if (previous_task) {\n                previous_task.abort();\n                previous_task = null;\n            }\n            const elapsed = now - start;\n            if (elapsed > duration) {\n                store.set(value = new_value);\n                return false;\n            }\n            // @ts-ignore\n            store.set(value = fn(easing(elapsed / duration)));\n            return true;\n        });\n        return task.promise;\n    }\n    return {\n        set,\n        update: (fn, opts) => set(fn(target_value, value), opts),\n        subscribe: store.subscribe\n    };\n}\n\nexport { spring, tweened };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const f = style.filter === 'none' ? '' : style.filter;\n    const od = target_opacity * (1 - opacity);\n    return {\n        delay,\n        duration,\n        easing,\n        css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n    };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n    const o = +getComputedStyle(node).opacity;\n    return {\n        delay,\n        duration,\n        easing,\n        css: t => `opacity: ${t * o}`\n    };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const transform = style.transform === 'none' ? '' : style.transform;\n    const od = target_opacity * (1 - opacity);\n    return {\n        delay,\n        duration,\n        easing,\n        css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n    };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n    const style = getComputedStyle(node);\n    const opacity = +style.opacity;\n    const height = parseFloat(style.height);\n    const padding_top = parseFloat(style.paddingTop);\n    const padding_bottom = parseFloat(style.paddingBottom);\n    const margin_top = parseFloat(style.marginTop);\n    const margin_bottom = parseFloat(style.marginBottom);\n    const border_top_width = parseFloat(style.borderTopWidth);\n    const border_bottom_width = parseFloat(style.borderBottomWidth);\n    return {\n        delay,\n        duration,\n        easing,\n        css: t => 'overflow: hidden;' +\n            `opacity: ${Math.min(t * 20, 1) * opacity};` +\n            `height: ${t * height}px;` +\n            `padding-top: ${t * padding_top}px;` +\n            `padding-bottom: ${t * padding_bottom}px;` +\n            `margin-top: ${t * margin_top}px;` +\n            `margin-bottom: ${t * margin_bottom}px;` +\n            `border-top-width: ${t * border_top_width}px;` +\n            `border-bottom-width: ${t * border_bottom_width}px;`\n    };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const transform = style.transform === 'none' ? '' : style.transform;\n    const sd = 1 - start;\n    const od = target_opacity * (1 - opacity);\n    return {\n        delay,\n        duration,\n        easing,\n        css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n    };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n    const len = node.getTotalLength();\n    if (duration === undefined) {\n        if (speed === undefined) {\n            duration = 800;\n        }\n        else {\n            duration = len / speed;\n        }\n    }\n    else if (typeof duration === 'function') {\n        duration = duration(len);\n    }\n    return {\n        delay,\n        duration,\n        easing,\n        css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n    };\n}\nfunction crossfade(_a) {\n    var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n    const to_receive = new Map();\n    const to_send = new Map();\n    function crossfade(from, node, params) {\n        const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n        const to = node.getBoundingClientRect();\n        const dx = from.left - to.left;\n        const dy = from.top - to.top;\n        const dw = from.width / to.width;\n        const dh = from.height / to.height;\n        const d = Math.sqrt(dx * dx + dy * dy);\n        const style = getComputedStyle(node);\n        const transform = style.transform === 'none' ? '' : style.transform;\n        const opacity = +style.opacity;\n        return {\n            delay,\n            duration: is_function(duration) ? duration(d) : duration,\n            easing,\n            css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n        };\n    }\n    function transition(items, counterparts, intro) {\n        return (node, params) => {\n            items.set(params.key, {\n                rect: node.getBoundingClientRect()\n            });\n            return () => {\n                if (counterparts.has(params.key)) {\n                    const { rect } = counterparts.get(params.key);\n                    counterparts.delete(params.key);\n                    return crossfade(rect, node, params);\n                }\n                // if the node is disappearing altogether\n                // (i.e. wasn't claimed by the other list)\n                // then we need to supply an outro\n                items.delete(params.key);\n                return fallback && fallback(node, params, intro);\n            };\n        };\n    }\n    return [\n        transition(to_send, to_receive, false),\n        transition(to_receive, to_send, true)\n    ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","<script>\n\timport * as Pancake from '@sveltejs/pancake';\n\timport { getContext } from 'svelte';\n\n\texport let node;\n</script>\n\n<Pancake.Box x1={node.x0} x2={node.x1} y1={node.y1} y2={node.y0}>\n\t<slot {node}></slot>\n</Pancake.Box>\n\n{#each (node.children || []) as child}\n\t<svelte:self node={child} let:node>\n\t\t<slot {node}></slot>\n\t</svelte:self>\n{/each}","<script>\n\timport TreemapNode from './TreemapNode.svelte';\n\n\texport let root;\n</script>\n\n<pancake-treemap>\n\t<TreemapNode node={root} let:node>\n\t\t<slot {node}></slot>\n\t</TreemapNode>\n</pancake-treemap>\n\n<style>\n\tpancake-treemap {\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tpointer-events: none;\n\t}\n</style>","<script>\n\timport * as Pancake from '@sveltejs/pancake';\n\timport * as d3 from 'd3-hierarchy';\n\timport { tweened } from 'svelte/motion';\n\timport * as eases from 'svelte/easing';\n\timport { fade } from 'svelte/transition';\n\timport * as yootils from 'yootils';\n\timport Treemap from './Treemap.svelte';\n\t\n    export let data; \n\n\tconst treemap = d3.treemap();\n\n\tconst hierarchy = d3.hierarchy(data)\n\t\t.sum(d => d.value)\n\t\t.sort((a, b) => b.value - a.value)\n\n\tconst root = treemap(hierarchy);\n\n\tlet selected = root;\n\n\tconst select = node => {\n\t\twhile (node.parent && node.parent !== selected) {\n\t\t\tnode = node.parent;\n\t\t}\n\n\t\tif (node && node.children) selected = node;\n\t};\n\n\tconst breadcrumbs = node => {\n\t\tconst crumbs = [];\n\t\twhile (node) {\n\t\t\tcrumbs.unshift(node.data.name)\n\t\t\tnode = node.parent;\n\t\t}\n\n\t\treturn crumbs.join('/');\n\t};\n\n\tconst extents = tweened(undefined, {\n\t\teasing: eases.cubicOut,\n\t\tduration: 600\n\t});\n\n\tconst is_visible = (a, b) => {\n\t\twhile (b) {\n\t\t\tif (a.parent === b) return true;\n\t\t\tb = b.parent;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\t$: $extents = {\n\t\tx1: selected.x0,\n\t\tx2: selected.x1,\n\t\ty1: selected.y1,\n\t\ty2: selected.y0\n\t};\n</script>\n\n<button class=\"breadcrumbs\" disabled=\"{!selected.parent}\" on:click=\"{() => selected = selected.parent}\">\n\t{breadcrumbs(selected)}\n</button>\n\n<div class=\"chart\">\n\t<Pancake.Chart x1={$extents.x1} x2={$extents.x2} y1={$extents.y1} y2={$extents.y2}>\n\t\t<Treemap {root} let:node>\n\t\t\t{#if is_visible(node, selected)}\n\t\t\t\t<div\n\t\t\t\t\ttransition:fade={{duration:400}}\n\t\t\t\t\tclass=\"node\"\n\t\t\t\t\tclass:leaf={!node.children}\n\t\t\t\t\ton:click=\"{() => select(node)}\"\n\t\t\t\t>\n\t\t\t\t\t<div class=\"contents\">\n\t\t\t\t\t\t<strong>{node.data.name}</strong>\n\t\t\t\t\t\t<span>{yootils.commas(node.value)}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</Treemap>\n\t</Pancake.Chart>\n</div>\n\n<style>\n\t.breadcrumbs {\n\t\twidth: 100%;\n\t\tpadding: 0.3rem 0.4rem;\n\t\tbackground-color: transparent;\n\t\tfont-family: inherit;\n\t\tfont-size: inherit;\n\t\ttext-align: left;\n\t\tborder: none;\n\t\tcursor: pointer;\n\t\toutline: none;\n\t}\n\n\t.breadcrumbs:disabled {\n\t\tcursor: default;\n\t}\n\n\t.chart {\n\t\twidth: calc(100% + 2px);\n\t\theight: 400px;\n\t\tpadding: 0;\n\t\tmargin: 0 -1px 36px -1px;\n\t\toverflow: hidden;\n\t}\n\n\t.node {\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground-color: white;\n\t\toverflow: hidden;\n\t\tpointer-events: all;\n\t}\n\n\t.node:not(.leaf) {\n\t\tcursor: pointer;\n\t}\n\n\t.contents {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tpadding: 0.3rem 0.4rem;\n\t\tborder: 1px solid white;\n\t\tbackground-color: hsl(240, 8%, 70%);\n\t\tcolor: white;\n\t\tborder-radius: 4px;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.node:not(.leaf) .contents {\n\t\tbackground-color: hsl(240, 8%, 44%);\n\t}\n\n\tstrong, span {\n\t\tdisplay: block;\n\t\tfont-size: 12px;\n\t\twhite-space: nowrap;\n\t\tline-height: 1;\n\t}\n</style>","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n  var tile = squarify,\n      round = false,\n      dx = 1,\n      dy = 1,\n      paddingStack = [0],\n      paddingInner = constantZero,\n      paddingTop = constantZero,\n      paddingRight = constantZero,\n      paddingBottom = constantZero,\n      paddingLeft = constantZero;\n\n  function treemap(root) {\n    root.x0 =\n    root.y0 = 0;\n    root.x1 = dx;\n    root.y1 = dy;\n    root.eachBefore(positionNode);\n    paddingStack = [0];\n    if (round) root.eachBefore(roundNode);\n    return root;\n  }\n\n  function positionNode(node) {\n    var p = paddingStack[node.depth],\n        x0 = node.x0 + p,\n        y0 = node.y0 + p,\n        x1 = node.x1 - p,\n        y1 = node.y1 - p;\n    if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n    if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n    node.x0 = x0;\n    node.y0 = y0;\n    node.x1 = x1;\n    node.y1 = y1;\n    if (node.children) {\n      p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n      x0 += paddingLeft(node) - p;\n      y0 += paddingTop(node) - p;\n      x1 -= paddingRight(node) - p;\n      y1 -= paddingBottom(node) - p;\n      if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n      if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n      tile(node, x0, y0, x1, y1);\n    }\n  }\n\n  treemap.round = function(x) {\n    return arguments.length ? (round = !!x, treemap) : round;\n  };\n\n  treemap.size = function(x) {\n    return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n  };\n\n  treemap.tile = function(x) {\n    return arguments.length ? (tile = required(x), treemap) : tile;\n  };\n\n  treemap.padding = function(x) {\n    return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n  };\n\n  treemap.paddingInner = function(x) {\n    return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n  };\n\n  treemap.paddingOuter = function(x) {\n    return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n  };\n\n  treemap.paddingTop = function(x) {\n    return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n  };\n\n  treemap.paddingRight = function(x) {\n    return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n  };\n\n  treemap.paddingBottom = function(x) {\n    return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n  };\n\n  treemap.paddingLeft = function(x) {\n    return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n  };\n\n  return treemap;\n}\n","<script>\nimport IconOpen from \"./IconOpen.svelte\"\nimport IconClosed from \"./IconClosed.svelte\"\n\nexport let data;\nexport let maxtime; \nexport let depth = 0;\nexport let expanded = false;\n\nfunction toggle(){\n    expanded = !expanded;\n}\n</script>\n\n<tr>\n    <td on:click={toggle}>\n        <span style=\"padding-left: {depth*10}px; cursor: pointer;\">\n            {#if expanded}\n                <IconOpen/>\n            {:else}\n                <IconClosed/>\n            {/if}\n            {data['name']}\n        </span>\n    </td>\n    <td style=\"text-align: right;\">{data['value']}ms</td>\n    <td style=\"text-align: right;\">{Math.round(data['value']/maxtime*10000)/100}%</td>\n</tr>\n\n{#if expanded}\n    {#each data['children'] as child}\n        {#if 'children' in child}\n            <svelte:self data={child} maxtime={maxtime} depth={depth + 1}/>\n        {:else}\n            <tr>\n                <td style=\"padding-left: {depth*10+31}px;\" on:click={toggle}>\n                    {child['name']}\n                </td>\n                <td style=\"text-align: right;\">{child['value']}ms</td>\n                <td style=\"text-align: right;\">{Math.round(child['value']/maxtime*10000)/100}%</td>\n            </tr>\n        {/if}\n    {/each}\n{/if}\n\n<style>\ntd{\n    font-family: 'Courier New', monospace;\n    font-weight: 600;\n\n\n    padding: .75rem;\n    vertical-align: top;\n    border-top: 1px solid #dee2e6;\n}\n</style>","<script>\n\timport Flare from './Flare.svelte';\n\timport TableRow from './TableRow.svelte'\n\n\tasync function getData(url){\n\t\tconst res = await fetch(url);\n\t\tconst blob = await res.json();\n\t\treturn blob\n\t}\n\n\tlet mapPromise = getData(\"data.json\");\n\tlet treePromise = getData(\"treedata.json\");\n\t\n</script>\n\n<svelte:head>\n\t<title>Duration Insights</title>\n\t<html lang=\"en\" />\n</svelte:head>\n\n<h1>Pytest Duration Insights</h1>\n<p>You can click in the treemap below to explore where most time is spent.</p>\n\n{#await mapPromise}\n\t<p>...waiting</p>\n{:then data}\n\t<Flare data={data}></Flare>\n{:catch error}\n\t<p style=\"color: red\">{error.message}</p>\n{/await}\n\n<p>You can also explore the nested tree below for more details.</p>\n\n{#await treePromise}\n\t<p>...waiting</p>\n{:then treedata}\n\t<table style=\"width: 100%; max-width: 100%; margin-bottom: 1rem; background-color: transparent;\">\n\t\t<TableRow data={treedata} maxtime={treedata['value']}></TableRow>\n\t</table>\n{:catch error}\n\t<p style=\"color: red\">{error.message}</p>\n{/await}","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n\tprops: {\n\t\tname: 'world'\n\t}\n});\n\nexport default app;"],"names":["noop","identity","x","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","subscribe","store","callbacks","unsub","unsubscribe","component_subscribe","component","callback","$$","on_destroy","push","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","loop","promise","Promise","fulfill","add","[object Object]","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","svg_element","createElementNS","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","value","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_style","key","important","style","setProperty","crossorigin","is_crossorigin","parent","error","toggle_class","toggle","classList","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","get_current_component","Error","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","dispatch","direction","kind","dispatchEvent","type","detail","e","createEvent","initCustomEvent","custom_event","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_bidirectional_transition","params","intro","config","running_program","pending_program","animation_name","clear_animation","init","program","abs","start","end","group","go","easing","tick","css","then","handle_promise","info","token","index","resolved","child_ctx","current","needs_flush","blocks","m","mount","catch","hasCatch","pending","update_await_block_branch","create_component","mount_component","customElement","on_mount","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","SvelteComponent","this","$destroy","splice","$$props","obj","$$set","keys","subscriber_queue","writable","stop","subscribers","set","new_value","run_queue","s","invalidate","subscriber","derived","stores","initial_value","single","isArray","stores_array","auto","inited","values","cleanup","sync","result","unsubscribers","linear","domain","range","d0","r0","num","inverse","commas","parts","String","replace","getComputedStyle","position","iframe","tabIndex","source","contentWindow","onload","getChartContext","get","getContext","chart","x1","y1","x2","y2","clip","_x1","_y1","_x2","_y2","width","height","pointer","x_scale","$x1","$x2","yootils.linearScale","y_scale","$y1","$y2","x_scale_inverse","$x_scale","y_scale_inverse","$y_scale","setContext","bcr","getBoundingClientRect","left","clientX","top","clientY","$x_scale_inverse","right","y","$y_scale_inverse","bottom","$width","$height","min","count","sum","hierarchy","mapChildren","objectChildren","child","childs","n","root","Node","depth","eachBefore","computeHeight","copyData","required","constantZero","x0","round","y0","prototype","constructor","eachAfter","each","that","call","find","sort","compare","path","ancestor","aNodes","ancestors","bNodes","leastCommonAncestor","descendants","leaves","links","copy","Symbol","iterator","reverse","custom","ratio","squarify","row","nodeValue","dx","dy","sumValue","minValue","maxValue","newRatio","minRatio","alpha","beta","rows","i0","i1","dice","treemapDice","treemapSlice","squarifyRatio","sqrt","cubicOut","is_date","toString","get_interpolator","arr","bi","getTime","delta","interpolators","fade","opacity","prop","yootils.commas","tile","paddingStack","paddingInner","paddingTop","paddingRight","paddingBottom","paddingLeft","treemap","positionNode","roundNode","arguments","padding","paddingOuter","constant","d3.treemap","d3.hierarchy","selected","select","extents","defaults","target_value","opts","previous_task","started","interpolate","abort","elapsed","tweened","eases.cubicOut","$extents","crumbs","unshift","maxtime","expanded","message","getData","url","res","fetch","json","body"],"mappings":"gCAAA,SAASA,KACT,MAAMC,EAAWC,GAAKA,EACtB,SAASC,EAAOC,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAahF,SAASE,EAAUC,KAAUC,GACzB,GAAa,MAATD,EACA,OAAOrB,EAEX,MAAMuB,EAAQF,EAAMD,aAAaE,GACjC,OAAOC,EAAMC,YAAc,IAAMD,EAAMC,cAAgBD,EAO3D,SAASE,EAAoBC,EAAWL,EAAOM,GAC3CD,EAAUE,GAAGC,WAAWC,KAAKV,EAAUC,EAAOM,IAElD,SAASI,EAAYC,EAAYC,EAAKC,EAAS1B,GAC3C,GAAIwB,EAAY,CACZ,MAAMG,EAAWC,EAAiBJ,EAAYC,EAAKC,EAAS1B,GAC5D,OAAOwB,EAAW,GAAGG,IAG7B,SAASC,EAAiBJ,EAAYC,EAAKC,EAAS1B,GAChD,OAAOwB,EAAW,IAAMxB,EAClBL,EAAO+B,EAAQD,IAAII,QAASL,EAAW,GAAGxB,EAAGyB,KAC7CC,EAAQD,IAo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,yCADe,GAANA,KAAS,qBAGHA,KAAa,8BACbgB,KAAKyU,MAAMzV,KAAa,MAAEA,KAAQ,KAAO,qGAP1DA,aAAgBA,WAAgBA,KAAQ,mFAAxCA,sBAAgBA,oBAAgBA,KAAQ,sKAD1D,aAAcA,gXATdA,KAAW,UAGYA,KAAY,WACZgB,KAAKyU,MAAMzV,KAAY,MAAEA,KAAQ,KAAO,mDAT3DA,qCAYZA,mLAbqC,GAANA,uVADlBA,2JAOLA,KAAW,+CANkB,GAANA,6BASAA,KAAY,oCACZgB,KAAKyU,MAAMzV,KAAY,MAAEA,KAAQ,KAAO,gBAGvEA,8PAzBMkE,cACAkX,YACAlG,EAAQ,eACRmG,GAAW,yKAGlBA,GAAYA,mICkBQrb,KAAMsb,iKAFhBtb,uRAcUA,KAAMsb,mKAHZtb,aAAmBA,KAAgB,+hBAd7CA,6HAUAA,i6BA7BQub,GAAQC,SAChBC,QAAYC,MAAMF,gBACLC,EAAIE,6BAIPJ,GAAQ,aACPA,GAAQ,yBCTf,oEAAQ,CACnBzY,OAAQe,SAAS+X,KACjBhO,MAAO,CACNhK,KAAM"}
\ No newline at end of file
+{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte/store/index.mjs","../../node_modules/yootils/yootils.es.js","../../node_modules/@sveltejs/pancake/components/Chart.svelte","../../node_modules/@sveltejs/pancake/components/Box.svelte","../../node_modules/d3-hierarchy/src/hierarchy/count.js","../../node_modules/d3-hierarchy/src/hierarchy/index.js","../../node_modules/d3-hierarchy/src/accessors.js","../../node_modules/d3-hierarchy/src/constant.js","../../node_modules/d3-hierarchy/src/treemap/round.js","../../node_modules/d3-hierarchy/src/treemap/dice.js","../../node_modules/d3-hierarchy/src/treemap/slice.js","../../node_modules/d3-hierarchy/src/hierarchy/each.js","../../node_modules/d3-hierarchy/src/hierarchy/eachAfter.js","../../node_modules/d3-hierarchy/src/hierarchy/eachBefore.js","../../node_modules/d3-hierarchy/src/hierarchy/find.js","../../node_modules/d3-hierarchy/src/hierarchy/sum.js","../../node_modules/d3-hierarchy/src/hierarchy/sort.js","../../node_modules/d3-hierarchy/src/hierarchy/path.js","../../node_modules/d3-hierarchy/src/hierarchy/ancestors.js","../../node_modules/d3-hierarchy/src/hierarchy/descendants.js","../../node_modules/d3-hierarchy/src/hierarchy/leaves.js","../../node_modules/d3-hierarchy/src/hierarchy/links.js","../../node_modules/d3-hierarchy/src/hierarchy/iterator.js","../../node_modules/d3-hierarchy/src/treemap/squarify.js","../../node_modules/svelte/easing/index.mjs","../../node_modules/svelte/motion/index.mjs","../../node_modules/svelte/transition/index.mjs","../../src/TimeUtils.svelte","../../src/TreemapNode.svelte","../../src/Treemap.svelte","../../src/Flare.svelte","../../node_modules/d3-hierarchy/src/treemap/index.js","../../src/TableRow.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n    // @ts-ignore\n    for (const k in src)\n        tar[k] = src[k];\n    return tar;\n}\nfunction is_promise(value) {\n    return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n    element.__svelte_meta = {\n        loc: { file, line, column, char }\n    };\n}\nfunction run(fn) {\n    return fn();\n}\nfunction blank_object() {\n    return Object.create(null);\n}\nfunction run_all(fns) {\n    fns.forEach(run);\n}\nfunction is_function(thing) {\n    return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n    return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n    return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n    return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n    if (store != null && typeof store.subscribe !== 'function') {\n        throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n    }\n}\nfunction subscribe(store, ...callbacks) {\n    if (store == null) {\n        return noop;\n    }\n    const unsub = store.subscribe(...callbacks);\n    return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n    let value;\n    subscribe(store, _ => value = _)();\n    return value;\n}\nfunction component_subscribe(component, store, callback) {\n    component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n    if (definition) {\n        const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n        return definition[0](slot_ctx);\n    }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n    return definition[1] && fn\n        ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n        : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n    if (definition[2] && fn) {\n        const lets = definition[2](fn(dirty));\n        if ($$scope.dirty === undefined) {\n            return lets;\n        }\n        if (typeof lets === 'object') {\n            const merged = [];\n            const len = Math.max($$scope.dirty.length, lets.length);\n            for (let i = 0; i < len; i += 1) {\n                merged[i] = $$scope.dirty[i] | lets[i];\n            }\n            return merged;\n        }\n        return $$scope.dirty | lets;\n    }\n    return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n    const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n    if (slot_changes) {\n        const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n        slot.p(slot_context, slot_changes);\n    }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n    const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n    if (slot_changes) {\n        const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n        slot.p(slot_context, slot_changes);\n    }\n}\nfunction exclude_internal_props(props) {\n    const result = {};\n    for (const k in props)\n        if (k[0] !== '$')\n            result[k] = props[k];\n    return result;\n}\nfunction compute_rest_props(props, keys) {\n    const rest = {};\n    keys = new Set(keys);\n    for (const k in props)\n        if (!keys.has(k) && k[0] !== '$')\n            rest[k] = props[k];\n    return rest;\n}\nfunction compute_slots(slots) {\n    const result = {};\n    for (const key in slots) {\n        result[key] = true;\n    }\n    return result;\n}\nfunction once(fn) {\n    let ran = false;\n    return function (...args) {\n        if (ran)\n            return;\n        ran = true;\n        fn.call(this, ...args);\n    };\n}\nfunction null_to_empty(value) {\n    return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n    store.set(value);\n    return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n    return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n    ? () => window.performance.now()\n    : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n    now = fn;\n}\nfunction set_raf(fn) {\n    raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n    tasks.forEach(task => {\n        if (!task.c(now)) {\n            tasks.delete(task);\n            task.f();\n        }\n    });\n    if (tasks.size !== 0)\n        raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n    tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n    let task;\n    if (tasks.size === 0)\n        raf(run_tasks);\n    return {\n        promise: new Promise(fulfill => {\n            tasks.add(task = { c: callback, f: fulfill });\n        }),\n        abort() {\n            tasks.delete(task);\n        }\n    };\n}\n\nfunction append(target, node) {\n    target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n    target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n    node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n    for (let i = 0; i < iterations.length; i += 1) {\n        if (iterations[i])\n            iterations[i].d(detaching);\n    }\n}\nfunction element(name) {\n    return document.createElement(name);\n}\nfunction element_is(name, is) {\n    return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n    const target = {};\n    for (const k in obj) {\n        if (has_prop(obj, k)\n            // @ts-ignore\n            && exclude.indexOf(k) === -1) {\n            // @ts-ignore\n            target[k] = obj[k];\n        }\n    }\n    return target;\n}\nfunction svg_element(name) {\n    return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n    return document.createTextNode(data);\n}\nfunction space() {\n    return text(' ');\n}\nfunction empty() {\n    return text('');\n}\nfunction listen(node, event, handler, options) {\n    node.addEventListener(event, handler, options);\n    return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n    return function (event) {\n        event.preventDefault();\n        // @ts-ignore\n        return fn.call(this, event);\n    };\n}\nfunction stop_propagation(fn) {\n    return function (event) {\n        event.stopPropagation();\n        // @ts-ignore\n        return fn.call(this, event);\n    };\n}\nfunction self(fn) {\n    return function (event) {\n        // @ts-ignore\n        if (event.target === this)\n            fn.call(this, event);\n    };\n}\nfunction attr(node, attribute, value) {\n    if (value == null)\n        node.removeAttribute(attribute);\n    else if (node.getAttribute(attribute) !== value)\n        node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n    // @ts-ignore\n    const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n    for (const key in attributes) {\n        if (attributes[key] == null) {\n            node.removeAttribute(key);\n        }\n        else if (key === 'style') {\n            node.style.cssText = attributes[key];\n        }\n        else if (key === '__value') {\n            node.value = node[key] = attributes[key];\n        }\n        else if (descriptors[key] && descriptors[key].set) {\n            node[key] = attributes[key];\n        }\n        else {\n            attr(node, key, attributes[key]);\n        }\n    }\n}\nfunction set_svg_attributes(node, attributes) {\n    for (const key in attributes) {\n        attr(node, key, attributes[key]);\n    }\n}\nfunction set_custom_element_data(node, prop, value) {\n    if (prop in node) {\n        node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n    }\n    else {\n        attr(node, prop, value);\n    }\n}\nfunction xlink_attr(node, attribute, value) {\n    node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n    const value = new Set();\n    for (let i = 0; i < group.length; i += 1) {\n        if (group[i].checked)\n            value.add(group[i].__value);\n    }\n    if (!checked) {\n        value.delete(__value);\n    }\n    return Array.from(value);\n}\nfunction to_number(value) {\n    return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n    const array = [];\n    for (let i = 0; i < ranges.length; i += 1) {\n        array.push({ start: ranges.start(i), end: ranges.end(i) });\n    }\n    return array;\n}\nfunction children(element) {\n    return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n    for (let i = 0; i < nodes.length; i += 1) {\n        const node = nodes[i];\n        if (node.nodeName === name) {\n            let j = 0;\n            const remove = [];\n            while (j < node.attributes.length) {\n                const attribute = node.attributes[j++];\n                if (!attributes[attribute.name]) {\n                    remove.push(attribute.name);\n                }\n            }\n            for (let k = 0; k < remove.length; k++) {\n                node.removeAttribute(remove[k]);\n            }\n            return nodes.splice(i, 1)[0];\n        }\n    }\n    return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n    for (let i = 0; i < nodes.length; i += 1) {\n        const node = nodes[i];\n        if (node.nodeType === 3) {\n            node.data = '' + data;\n            return nodes.splice(i, 1)[0];\n        }\n    }\n    return text(data);\n}\nfunction claim_space(nodes) {\n    return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n    data = '' + data;\n    if (text.wholeText !== data)\n        text.data = data;\n}\nfunction set_input_value(input, value) {\n    input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n    try {\n        input.type = type;\n    }\n    catch (e) {\n        // do nothing\n    }\n}\nfunction set_style(node, key, value, important) {\n    node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n    for (let i = 0; i < select.options.length; i += 1) {\n        const option = select.options[i];\n        if (option.__value === value) {\n            option.selected = true;\n            return;\n        }\n    }\n}\nfunction select_options(select, value) {\n    for (let i = 0; i < select.options.length; i += 1) {\n        const option = select.options[i];\n        option.selected = ~value.indexOf(option.__value);\n    }\n}\nfunction select_value(select) {\n    const selected_option = select.querySelector(':checked') || select.options[0];\n    return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n    return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n    if (crossorigin === undefined) {\n        crossorigin = false;\n        try {\n            if (typeof window !== 'undefined' && window.parent) {\n                void window.parent.document;\n            }\n        }\n        catch (error) {\n            crossorigin = true;\n        }\n    }\n    return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n    const computed_style = getComputedStyle(node);\n    if (computed_style.position === 'static') {\n        node.style.position = 'relative';\n    }\n    const iframe = element('iframe');\n    iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n        'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n    iframe.setAttribute('aria-hidden', 'true');\n    iframe.tabIndex = -1;\n    const crossorigin = is_crossorigin();\n    let unsubscribe;\n    if (crossorigin) {\n        iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n        unsubscribe = listen(window, 'message', (event) => {\n            if (event.source === iframe.contentWindow)\n                fn();\n        });\n    }\n    else {\n        iframe.src = 'about:blank';\n        iframe.onload = () => {\n            unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n        };\n    }\n    append(node, iframe);\n    return () => {\n        if (crossorigin) {\n            unsubscribe();\n        }\n        else if (unsubscribe && iframe.contentWindow) {\n            unsubscribe();\n        }\n        detach(iframe);\n    };\n}\nfunction toggle_class(element, name, toggle) {\n    element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n    const e = document.createEvent('CustomEvent');\n    e.initCustomEvent(type, false, false, detail);\n    return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n    return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n    constructor(anchor = null) {\n        this.a = anchor;\n        this.e = this.n = null;\n    }\n    m(html, target, anchor = null) {\n        if (!this.e) {\n            this.e = element(target.nodeName);\n            this.t = target;\n            this.h(html);\n        }\n        this.i(anchor);\n    }\n    h(html) {\n        this.e.innerHTML = html;\n        this.n = Array.from(this.e.childNodes);\n    }\n    i(anchor) {\n        for (let i = 0; i < this.n.length; i += 1) {\n            insert(this.t, this.n[i], anchor);\n        }\n    }\n    p(html) {\n        this.d();\n        this.h(html);\n        this.i(this.a);\n    }\n    d() {\n        this.n.forEach(detach);\n    }\n}\nfunction attribute_to_object(attributes) {\n    const result = {};\n    for (const attribute of attributes) {\n        result[attribute.name] = attribute.value;\n    }\n    return result;\n}\nfunction get_custom_elements_slots(element) {\n    const result = {};\n    element.childNodes.forEach((node) => {\n        result[node.slot || 'default'] = true;\n    });\n    return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n    let hash = 5381;\n    let i = str.length;\n    while (i--)\n        hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n    return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n    const step = 16.666 / duration;\n    let keyframes = '{\\n';\n    for (let p = 0; p <= 1; p += step) {\n        const t = a + (b - a) * ease(p);\n        keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n    }\n    const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n    const name = `__svelte_${hash(rule)}_${uid}`;\n    const doc = node.ownerDocument;\n    active_docs.add(doc);\n    const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n    const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n    if (!current_rules[name]) {\n        current_rules[name] = true;\n        stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n    }\n    const animation = node.style.animation || '';\n    node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n    active += 1;\n    return name;\n}\nfunction delete_rule(node, name) {\n    const previous = (node.style.animation || '').split(', ');\n    const next = previous.filter(name\n        ? anim => anim.indexOf(name) < 0 // remove specific animation\n        : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n    );\n    const deleted = previous.length - next.length;\n    if (deleted) {\n        node.style.animation = next.join(', ');\n        active -= deleted;\n        if (!active)\n            clear_rules();\n    }\n}\nfunction clear_rules() {\n    raf(() => {\n        if (active)\n            return;\n        active_docs.forEach(doc => {\n            const stylesheet = doc.__svelte_stylesheet;\n            let i = stylesheet.cssRules.length;\n            while (i--)\n                stylesheet.deleteRule(i);\n            doc.__svelte_rules = {};\n        });\n        active_docs.clear();\n    });\n}\n\nfunction create_animation(node, from, fn, params) {\n    if (!from)\n        return noop;\n    const to = node.getBoundingClientRect();\n    if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n        return noop;\n    const { delay = 0, duration = 300, easing = identity, \n    // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n    start: start_time = now() + delay, \n    // @ts-ignore todo:\n    end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n    let running = true;\n    let started = false;\n    let name;\n    function start() {\n        if (css) {\n            name = create_rule(node, 0, 1, duration, delay, easing, css);\n        }\n        if (!delay) {\n            started = true;\n        }\n    }\n    function stop() {\n        if (css)\n            delete_rule(node, name);\n        running = false;\n    }\n    loop(now => {\n        if (!started && now >= start_time) {\n            started = true;\n        }\n        if (started && now >= end) {\n            tick(1, 0);\n            stop();\n        }\n        if (!running) {\n            return false;\n        }\n        if (started) {\n            const p = now - start_time;\n            const t = 0 + 1 * easing(p / duration);\n            tick(t, 1 - t);\n        }\n        return true;\n    });\n    start();\n    tick(0, 1);\n    return stop;\n}\nfunction fix_position(node) {\n    const style = getComputedStyle(node);\n    if (style.position !== 'absolute' && style.position !== 'fixed') {\n        const { width, height } = style;\n        const a = node.getBoundingClientRect();\n        node.style.position = 'absolute';\n        node.style.width = width;\n        node.style.height = height;\n        add_transform(node, a);\n    }\n}\nfunction add_transform(node, a) {\n    const b = node.getBoundingClientRect();\n    if (a.left !== b.left || a.top !== b.top) {\n        const style = getComputedStyle(node);\n        const transform = style.transform === 'none' ? '' : style.transform;\n        node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n    }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n    current_component = component;\n}\nfunction get_current_component() {\n    if (!current_component)\n        throw new Error('Function called outside component initialization');\n    return current_component;\n}\nfunction beforeUpdate(fn) {\n    get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n    get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n    get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n    get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n    const component = get_current_component();\n    return (type, detail) => {\n        const callbacks = component.$$.callbacks[type];\n        if (callbacks) {\n            // TODO are there situations where events could be dispatched\n            // in a server (non-DOM) environment?\n            const event = custom_event(type, detail);\n            callbacks.slice().forEach(fn => {\n                fn.call(component, event);\n            });\n        }\n    };\n}\nfunction setContext(key, context) {\n    get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n    return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n    return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n    const callbacks = component.$$.callbacks[event.type];\n    if (callbacks) {\n        callbacks.slice().forEach(fn => fn(event));\n    }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n    if (!update_scheduled) {\n        update_scheduled = true;\n        resolved_promise.then(flush);\n    }\n}\nfunction tick() {\n    schedule_update();\n    return resolved_promise;\n}\nfunction add_render_callback(fn) {\n    render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n    flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n    if (flushing)\n        return;\n    flushing = true;\n    do {\n        // first, call beforeUpdate functions\n        // and update components\n        for (let i = 0; i < dirty_components.length; i += 1) {\n            const component = dirty_components[i];\n            set_current_component(component);\n            update(component.$$);\n        }\n        set_current_component(null);\n        dirty_components.length = 0;\n        while (binding_callbacks.length)\n            binding_callbacks.pop()();\n        // then, once components are updated, call\n        // afterUpdate functions. This may cause\n        // subsequent updates...\n        for (let i = 0; i < render_callbacks.length; i += 1) {\n            const callback = render_callbacks[i];\n            if (!seen_callbacks.has(callback)) {\n                // ...so guard against infinite loops\n                seen_callbacks.add(callback);\n                callback();\n            }\n        }\n        render_callbacks.length = 0;\n    } while (dirty_components.length);\n    while (flush_callbacks.length) {\n        flush_callbacks.pop()();\n    }\n    update_scheduled = false;\n    flushing = false;\n    seen_callbacks.clear();\n}\nfunction update($$) {\n    if ($$.fragment !== null) {\n        $$.update();\n        run_all($$.before_update);\n        const dirty = $$.dirty;\n        $$.dirty = [-1];\n        $$.fragment && $$.fragment.p($$.ctx, dirty);\n        $$.after_update.forEach(add_render_callback);\n    }\n}\n\nlet promise;\nfunction wait() {\n    if (!promise) {\n        promise = Promise.resolve();\n        promise.then(() => {\n            promise = null;\n        });\n    }\n    return promise;\n}\nfunction dispatch(node, direction, kind) {\n    node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n    outros = {\n        r: 0,\n        c: [],\n        p: outros // parent group\n    };\n}\nfunction check_outros() {\n    if (!outros.r) {\n        run_all(outros.c);\n    }\n    outros = outros.p;\n}\nfunction transition_in(block, local) {\n    if (block && block.i) {\n        outroing.delete(block);\n        block.i(local);\n    }\n}\nfunction transition_out(block, local, detach, callback) {\n    if (block && block.o) {\n        if (outroing.has(block))\n            return;\n        outroing.add(block);\n        outros.c.push(() => {\n            outroing.delete(block);\n            if (callback) {\n                if (detach)\n                    block.d(1);\n                callback();\n            }\n        });\n        block.o(local);\n    }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = false;\n    let animation_name;\n    let task;\n    let uid = 0;\n    function cleanup() {\n        if (animation_name)\n            delete_rule(node, animation_name);\n    }\n    function go() {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        if (css)\n            animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n        tick(0, 1);\n        const start_time = now() + delay;\n        const end_time = start_time + duration;\n        if (task)\n            task.abort();\n        running = true;\n        add_render_callback(() => dispatch(node, true, 'start'));\n        task = loop(now => {\n            if (running) {\n                if (now >= end_time) {\n                    tick(1, 0);\n                    dispatch(node, true, 'end');\n                    cleanup();\n                    return running = false;\n                }\n                if (now >= start_time) {\n                    const t = easing((now - start_time) / duration);\n                    tick(t, 1 - t);\n                }\n            }\n            return running;\n        });\n    }\n    let started = false;\n    return {\n        start() {\n            if (started)\n                return;\n            delete_rule(node);\n            if (is_function(config)) {\n                config = config();\n                wait().then(go);\n            }\n            else {\n                go();\n            }\n        },\n        invalidate() {\n            started = false;\n        },\n        end() {\n            if (running) {\n                cleanup();\n                running = false;\n            }\n        }\n    };\n}\nfunction create_out_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = true;\n    let animation_name;\n    const group = outros;\n    group.r += 1;\n    function go() {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        if (css)\n            animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n        const start_time = now() + delay;\n        const end_time = start_time + duration;\n        add_render_callback(() => dispatch(node, false, 'start'));\n        loop(now => {\n            if (running) {\n                if (now >= end_time) {\n                    tick(0, 1);\n                    dispatch(node, false, 'end');\n                    if (!--group.r) {\n                        // this will result in `end()` being called,\n                        // so we don't need to clean up here\n                        run_all(group.c);\n                    }\n                    return false;\n                }\n                if (now >= start_time) {\n                    const t = easing((now - start_time) / duration);\n                    tick(1 - t, t);\n                }\n            }\n            return running;\n        });\n    }\n    if (is_function(config)) {\n        wait().then(() => {\n            // @ts-ignore\n            config = config();\n            go();\n        });\n    }\n    else {\n        go();\n    }\n    return {\n        end(reset) {\n            if (reset && config.tick) {\n                config.tick(1, 0);\n            }\n            if (running) {\n                if (animation_name)\n                    delete_rule(node, animation_name);\n                running = false;\n            }\n        }\n    };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n    let config = fn(node, params);\n    let t = intro ? 0 : 1;\n    let running_program = null;\n    let pending_program = null;\n    let animation_name = null;\n    function clear_animation() {\n        if (animation_name)\n            delete_rule(node, animation_name);\n    }\n    function init(program, duration) {\n        const d = program.b - t;\n        duration *= Math.abs(d);\n        return {\n            a: t,\n            b: program.b,\n            d,\n            duration,\n            start: program.start,\n            end: program.start + duration,\n            group: program.group\n        };\n    }\n    function go(b) {\n        const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n        const program = {\n            start: now() + delay,\n            b\n        };\n        if (!b) {\n            // @ts-ignore todo: improve typings\n            program.group = outros;\n            outros.r += 1;\n        }\n        if (running_program || pending_program) {\n            pending_program = program;\n        }\n        else {\n            // if this is an intro, and there's a delay, we need to do\n            // an initial tick and/or apply CSS animation immediately\n            if (css) {\n                clear_animation();\n                animation_name = create_rule(node, t, b, duration, delay, easing, css);\n            }\n            if (b)\n                tick(0, 1);\n            running_program = init(program, duration);\n            add_render_callback(() => dispatch(node, b, 'start'));\n            loop(now => {\n                if (pending_program && now > pending_program.start) {\n                    running_program = init(pending_program, duration);\n                    pending_program = null;\n                    dispatch(node, running_program.b, 'start');\n                    if (css) {\n                        clear_animation();\n                        animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n                    }\n                }\n                if (running_program) {\n                    if (now >= running_program.end) {\n                        tick(t = running_program.b, 1 - t);\n                        dispatch(node, running_program.b, 'end');\n                        if (!pending_program) {\n                            // we're done\n                            if (running_program.b) {\n                                // intro — we can tidy up immediately\n                                clear_animation();\n                            }\n                            else {\n                                // outro — needs to be coordinated\n                                if (!--running_program.group.r)\n                                    run_all(running_program.group.c);\n                            }\n                        }\n                        running_program = null;\n                    }\n                    else if (now >= running_program.start) {\n                        const p = now - running_program.start;\n                        t = running_program.a + running_program.d * easing(p / running_program.duration);\n                        tick(t, 1 - t);\n                    }\n                }\n                return !!(running_program || pending_program);\n            });\n        }\n    }\n    return {\n        run(b) {\n            if (is_function(config)) {\n                wait().then(() => {\n                    // @ts-ignore\n                    config = config();\n                    go(b);\n                });\n            }\n            else {\n                go(b);\n            }\n        },\n        end() {\n            clear_animation();\n            running_program = pending_program = null;\n        }\n    };\n}\n\nfunction handle_promise(promise, info) {\n    const token = info.token = {};\n    function update(type, index, key, value) {\n        if (info.token !== token)\n            return;\n        info.resolved = value;\n        let child_ctx = info.ctx;\n        if (key !== undefined) {\n            child_ctx = child_ctx.slice();\n            child_ctx[key] = value;\n        }\n        const block = type && (info.current = type)(child_ctx);\n        let needs_flush = false;\n        if (info.block) {\n            if (info.blocks) {\n                info.blocks.forEach((block, i) => {\n                    if (i !== index && block) {\n                        group_outros();\n                        transition_out(block, 1, 1, () => {\n                            if (info.blocks[i] === block) {\n                                info.blocks[i] = null;\n                            }\n                        });\n                        check_outros();\n                    }\n                });\n            }\n            else {\n                info.block.d(1);\n            }\n            block.c();\n            transition_in(block, 1);\n            block.m(info.mount(), info.anchor);\n            needs_flush = true;\n        }\n        info.block = block;\n        if (info.blocks)\n            info.blocks[index] = block;\n        if (needs_flush) {\n            flush();\n        }\n    }\n    if (is_promise(promise)) {\n        const current_component = get_current_component();\n        promise.then(value => {\n            set_current_component(current_component);\n            update(info.then, 1, info.value, value);\n            set_current_component(null);\n        }, error => {\n            set_current_component(current_component);\n            update(info.catch, 2, info.error, error);\n            set_current_component(null);\n            if (!info.hasCatch) {\n                throw error;\n            }\n        });\n        // if we previously had a then/catch block, destroy it\n        if (info.current !== info.pending) {\n            update(info.pending, 0);\n            return true;\n        }\n    }\n    else {\n        if (info.current !== info.then) {\n            update(info.then, 1, info.value, promise);\n            return true;\n        }\n        info.resolved = promise;\n    }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n    const child_ctx = ctx.slice();\n    const { resolved } = info;\n    if (info.current === info.then) {\n        child_ctx[info.value] = resolved;\n    }\n    if (info.current === info.catch) {\n        child_ctx[info.error] = resolved;\n    }\n    info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n    ? window\n    : typeof globalThis !== 'undefined'\n        ? globalThis\n        : global);\n\nfunction destroy_block(block, lookup) {\n    block.d(1);\n    lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n    transition_out(block, 1, 1, () => {\n        lookup.delete(block.key);\n    });\n}\nfunction fix_and_destroy_block(block, lookup) {\n    block.f();\n    destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n    block.f();\n    outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n    let o = old_blocks.length;\n    let n = list.length;\n    let i = o;\n    const old_indexes = {};\n    while (i--)\n        old_indexes[old_blocks[i].key] = i;\n    const new_blocks = [];\n    const new_lookup = new Map();\n    const deltas = new Map();\n    i = n;\n    while (i--) {\n        const child_ctx = get_context(ctx, list, i);\n        const key = get_key(child_ctx);\n        let block = lookup.get(key);\n        if (!block) {\n            block = create_each_block(key, child_ctx);\n            block.c();\n        }\n        else if (dynamic) {\n            block.p(child_ctx, dirty);\n        }\n        new_lookup.set(key, new_blocks[i] = block);\n        if (key in old_indexes)\n            deltas.set(key, Math.abs(i - old_indexes[key]));\n    }\n    const will_move = new Set();\n    const did_move = new Set();\n    function insert(block) {\n        transition_in(block, 1);\n        block.m(node, next);\n        lookup.set(block.key, block);\n        next = block.first;\n        n--;\n    }\n    while (o && n) {\n        const new_block = new_blocks[n - 1];\n        const old_block = old_blocks[o - 1];\n        const new_key = new_block.key;\n        const old_key = old_block.key;\n        if (new_block === old_block) {\n            // do nothing\n            next = new_block.first;\n            o--;\n            n--;\n        }\n        else if (!new_lookup.has(old_key)) {\n            // remove old block\n            destroy(old_block, lookup);\n            o--;\n        }\n        else if (!lookup.has(new_key) || will_move.has(new_key)) {\n            insert(new_block);\n        }\n        else if (did_move.has(old_key)) {\n            o--;\n        }\n        else if (deltas.get(new_key) > deltas.get(old_key)) {\n            did_move.add(new_key);\n            insert(new_block);\n        }\n        else {\n            will_move.add(old_key);\n            o--;\n        }\n    }\n    while (o--) {\n        const old_block = old_blocks[o];\n        if (!new_lookup.has(old_block.key))\n            destroy(old_block, lookup);\n    }\n    while (n)\n        insert(new_blocks[n - 1]);\n    return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n    const keys = new Set();\n    for (let i = 0; i < list.length; i++) {\n        const key = get_key(get_context(ctx, list, i));\n        if (keys.has(key)) {\n            throw new Error('Cannot have duplicate keys in a keyed each');\n        }\n        keys.add(key);\n    }\n}\n\nfunction get_spread_update(levels, updates) {\n    const update = {};\n    const to_null_out = {};\n    const accounted_for = { $$scope: 1 };\n    let i = levels.length;\n    while (i--) {\n        const o = levels[i];\n        const n = updates[i];\n        if (n) {\n            for (const key in o) {\n                if (!(key in n))\n                    to_null_out[key] = 1;\n            }\n            for (const key in n) {\n                if (!accounted_for[key]) {\n                    update[key] = n[key];\n                    accounted_for[key] = 1;\n                }\n            }\n            levels[i] = n;\n        }\n        else {\n            for (const key in o) {\n                accounted_for[key] = 1;\n            }\n        }\n    }\n    for (const key in to_null_out) {\n        if (!(key in update))\n            update[key] = undefined;\n    }\n    return update;\n}\nfunction get_spread_object(spread_props) {\n    return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n    'allowfullscreen',\n    'allowpaymentrequest',\n    'async',\n    'autofocus',\n    'autoplay',\n    'checked',\n    'controls',\n    'default',\n    'defer',\n    'disabled',\n    'formnovalidate',\n    'hidden',\n    'ismap',\n    'loop',\n    'multiple',\n    'muted',\n    'nomodule',\n    'novalidate',\n    'open',\n    'playsinline',\n    'readonly',\n    'required',\n    'reversed',\n    'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n    const attributes = Object.assign({}, ...args);\n    if (classes_to_add) {\n        if (attributes.class == null) {\n            attributes.class = classes_to_add;\n        }\n        else {\n            attributes.class += ' ' + classes_to_add;\n        }\n    }\n    let str = '';\n    Object.keys(attributes).forEach(name => {\n        if (invalid_attribute_name_character.test(name))\n            return;\n        const value = attributes[name];\n        if (value === true)\n            str += ' ' + name;\n        else if (boolean_attributes.has(name.toLowerCase())) {\n            if (value)\n                str += ' ' + name;\n        }\n        else if (value != null) {\n            str += ` ${name}=\"${String(value).replace(/\"/g, '&#34;').replace(/'/g, '&#39;')}\"`;\n        }\n    });\n    return str;\n}\nconst escaped = {\n    '\"': '&quot;',\n    \"'\": '&#39;',\n    '&': '&amp;',\n    '<': '&lt;',\n    '>': '&gt;'\n};\nfunction escape(html) {\n    return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n    let str = '';\n    for (let i = 0; i < items.length; i += 1) {\n        str += fn(items[i], i);\n    }\n    return str;\n}\nconst missing_component = {\n    $$render: () => ''\n};\nfunction validate_component(component, name) {\n    if (!component || !component.$$render) {\n        if (name === 'svelte:component')\n            name += ' this={...}';\n        throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n    }\n    return component;\n}\nfunction debug(file, line, column, values) {\n    console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n    console.log(values); // eslint-disable-line no-console\n    return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n    function $$render(result, props, bindings, slots, context) {\n        const parent_component = current_component;\n        const $$ = {\n            on_destroy,\n            context: new Map(parent_component ? parent_component.$$.context : context || []),\n            // these will be immediately discarded\n            on_mount: [],\n            before_update: [],\n            after_update: [],\n            callbacks: blank_object()\n        };\n        set_current_component({ $$ });\n        const html = fn(result, props, bindings, slots);\n        set_current_component(parent_component);\n        return html;\n    }\n    return {\n        render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n            on_destroy = [];\n            const result = { title: '', head: '', css: new Set() };\n            const html = $$render(result, props, {}, $$slots, context);\n            run_all(on_destroy);\n            return {\n                html,\n                css: {\n                    code: Array.from(result.css).map(css => css.code).join('\\n'),\n                    map: null // TODO\n                },\n                head: result.title + result.head\n            };\n        },\n        $$render\n    };\n}\nfunction add_attribute(name, value, boolean) {\n    if (value == null || (boolean && !value))\n        return '';\n    return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n    return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n    const index = component.$$.props[name];\n    if (index !== undefined) {\n        component.$$.bound[index] = callback;\n        callback(component.$$.ctx[index]);\n    }\n}\nfunction create_component(block) {\n    block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n    block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n    const { fragment, on_mount, on_destroy, after_update } = component.$$;\n    fragment && fragment.m(target, anchor);\n    if (!customElement) {\n        // onMount happens before the initial afterUpdate\n        add_render_callback(() => {\n            const new_on_destroy = on_mount.map(run).filter(is_function);\n            if (on_destroy) {\n                on_destroy.push(...new_on_destroy);\n            }\n            else {\n                // Edge case - component was destroyed immediately,\n                // most likely as a result of a binding initialising\n                run_all(new_on_destroy);\n            }\n            component.$$.on_mount = [];\n        });\n    }\n    after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n    const $$ = component.$$;\n    if ($$.fragment !== null) {\n        run_all($$.on_destroy);\n        $$.fragment && $$.fragment.d(detaching);\n        // TODO null out other refs, including component.$$ (but need to\n        // preserve final state?)\n        $$.on_destroy = $$.fragment = null;\n        $$.ctx = [];\n    }\n}\nfunction make_dirty(component, i) {\n    if (component.$$.dirty[0] === -1) {\n        dirty_components.push(component);\n        schedule_update();\n        component.$$.dirty.fill(0);\n    }\n    component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n    const parent_component = current_component;\n    set_current_component(component);\n    const $$ = component.$$ = {\n        fragment: null,\n        ctx: null,\n        // state\n        props,\n        update: noop,\n        not_equal,\n        bound: blank_object(),\n        // lifecycle\n        on_mount: [],\n        on_destroy: [],\n        on_disconnect: [],\n        before_update: [],\n        after_update: [],\n        context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n        // everything else\n        callbacks: blank_object(),\n        dirty,\n        skip_bound: false\n    };\n    let ready = false;\n    $$.ctx = instance\n        ? instance(component, options.props || {}, (i, ret, ...rest) => {\n            const value = rest.length ? rest[0] : ret;\n            if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n                if (!$$.skip_bound && $$.bound[i])\n                    $$.bound[i](value);\n                if (ready)\n                    make_dirty(component, i);\n            }\n            return ret;\n        })\n        : [];\n    $$.update();\n    ready = true;\n    run_all($$.before_update);\n    // `false` as a special case of no DOM component\n    $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n    if (options.target) {\n        if (options.hydrate) {\n            const nodes = children(options.target);\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            $$.fragment && $$.fragment.l(nodes);\n            nodes.forEach(detach);\n        }\n        else {\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            $$.fragment && $$.fragment.c();\n        }\n        if (options.intro)\n            transition_in(component.$$.fragment);\n        mount_component(component, options.target, options.anchor, options.customElement);\n        flush();\n    }\n    set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n    SvelteElement = class extends HTMLElement {\n        constructor() {\n            super();\n            this.attachShadow({ mode: 'open' });\n        }\n        connectedCallback() {\n            const { on_mount } = this.$$;\n            this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n            // @ts-ignore todo: improve typings\n            for (const key in this.$$.slotted) {\n                // @ts-ignore todo: improve typings\n                this.appendChild(this.$$.slotted[key]);\n            }\n        }\n        attributeChangedCallback(attr, _oldValue, newValue) {\n            this[attr] = newValue;\n        }\n        disconnectedCallback() {\n            run_all(this.$$.on_disconnect);\n        }\n        $destroy() {\n            destroy_component(this, 1);\n            this.$destroy = noop;\n        }\n        $on(type, callback) {\n            // TODO should this delegate to addEventListener?\n            const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n            callbacks.push(callback);\n            return () => {\n                const index = callbacks.indexOf(callback);\n                if (index !== -1)\n                    callbacks.splice(index, 1);\n            };\n        }\n        $set($$props) {\n            if (this.$$set && !is_empty($$props)) {\n                this.$$.skip_bound = true;\n                this.$$set($$props);\n                this.$$.skip_bound = false;\n            }\n        }\n    };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n    $destroy() {\n        destroy_component(this, 1);\n        this.$destroy = noop;\n    }\n    $on(type, callback) {\n        const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n        callbacks.push(callback);\n        return () => {\n            const index = callbacks.indexOf(callback);\n            if (index !== -1)\n                callbacks.splice(index, 1);\n        };\n    }\n    $set($$props) {\n        if (this.$$set && !is_empty($$props)) {\n            this.$$.skip_bound = true;\n            this.$$set($$props);\n            this.$$.skip_bound = false;\n        }\n    }\n}\n\nfunction dispatch_dev(type, detail) {\n    document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n    dispatch_dev('SvelteDOMInsert', { target, node });\n    append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n    dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n    insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n    dispatch_dev('SvelteDOMRemove', { node });\n    detach(node);\n}\nfunction detach_between_dev(before, after) {\n    while (before.nextSibling && before.nextSibling !== after) {\n        detach_dev(before.nextSibling);\n    }\n}\nfunction detach_before_dev(after) {\n    while (after.previousSibling) {\n        detach_dev(after.previousSibling);\n    }\n}\nfunction detach_after_dev(before) {\n    while (before.nextSibling) {\n        detach_dev(before.nextSibling);\n    }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n    const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n    if (has_prevent_default)\n        modifiers.push('preventDefault');\n    if (has_stop_propagation)\n        modifiers.push('stopPropagation');\n    dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n    const dispose = listen(node, event, handler, options);\n    return () => {\n        dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n        dispose();\n    };\n}\nfunction attr_dev(node, attribute, value) {\n    attr(node, attribute, value);\n    if (value == null)\n        dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n    else\n        dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n    node[property] = value;\n    dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n    node.dataset[property] = value;\n    dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n    data = '' + data;\n    if (text.wholeText === data)\n        return;\n    dispatch_dev('SvelteDOMSetData', { node: text, data });\n    text.data = data;\n}\nfunction validate_each_argument(arg) {\n    if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n        let msg = '{#each} only iterates over array-like objects.';\n        if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n            msg += ' You can use a spread to convert this iterable into an array.';\n        }\n        throw new Error(msg);\n    }\n}\nfunction validate_slots(name, slot, keys) {\n    for (const slot_key of Object.keys(slot)) {\n        if (!~keys.indexOf(slot_key)) {\n            console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n        }\n    }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n    constructor(options) {\n        if (!options || (!options.target && !options.$$inline)) {\n            throw new Error(\"'target' is a required option\");\n        }\n        super();\n    }\n    $destroy() {\n        super.$destroy();\n        this.$destroy = () => {\n            console.warn('Component was already destroyed'); // eslint-disable-line no-console\n        };\n    }\n    $capture_state() { }\n    $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n    constructor(options) {\n        super(options);\n    }\n}\nfunction loop_guard(timeout) {\n    const start = Date.now();\n    return () => {\n        if (Date.now() - start > timeout) {\n            throw new Error('Infinite loop detected');\n        }\n    };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n    return {\n        subscribe: writable(value, start).subscribe\n    };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n    let stop;\n    const subscribers = [];\n    function set(new_value) {\n        if (safe_not_equal(value, new_value)) {\n            value = new_value;\n            if (stop) { // store is ready\n                const run_queue = !subscriber_queue.length;\n                for (let i = 0; i < subscribers.length; i += 1) {\n                    const s = subscribers[i];\n                    s[1]();\n                    subscriber_queue.push(s, value);\n                }\n                if (run_queue) {\n                    for (let i = 0; i < subscriber_queue.length; i += 2) {\n                        subscriber_queue[i][0](subscriber_queue[i + 1]);\n                    }\n                    subscriber_queue.length = 0;\n                }\n            }\n        }\n    }\n    function update(fn) {\n        set(fn(value));\n    }\n    function subscribe(run, invalidate = noop) {\n        const subscriber = [run, invalidate];\n        subscribers.push(subscriber);\n        if (subscribers.length === 1) {\n            stop = start(set) || noop;\n        }\n        run(value);\n        return () => {\n            const index = subscribers.indexOf(subscriber);\n            if (index !== -1) {\n                subscribers.splice(index, 1);\n            }\n            if (subscribers.length === 0) {\n                stop();\n                stop = null;\n            }\n        };\n    }\n    return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n    const single = !Array.isArray(stores);\n    const stores_array = single\n        ? [stores]\n        : stores;\n    const auto = fn.length < 2;\n    return readable(initial_value, (set) => {\n        let inited = false;\n        const values = [];\n        let pending = 0;\n        let cleanup = noop;\n        const sync = () => {\n            if (pending) {\n                return;\n            }\n            cleanup();\n            const result = fn(single ? values[0] : values, set);\n            if (auto) {\n                set(result);\n            }\n            else {\n                cleanup = is_function(result) ? result : noop;\n            }\n        };\n        const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n            values[i] = value;\n            pending &= ~(1 << i);\n            if (inited) {\n                sync();\n            }\n        }, () => {\n            pending |= (1 << i);\n        }));\n        inited = true;\n        sync();\n        return function stop() {\n            run_all(unsubscribers);\n            cleanup();\n        };\n    });\n}\n\nexport { derived, readable, writable };\n","var default_sort = function (item, needle) { return item - needle; };\nfunction binarySearch(array, search, fn) {\n    if (fn === void 0) { fn = default_sort; }\n    var low = 0;\n    var high = array.length - 1;\n    var sort = fn.length === 1\n        ? function (item, needle) { return fn(item) - search; }\n        : fn;\n    while (low <= high) {\n        var i = (high + low) >> 1;\n        var d = sort(array[i], search);\n        if (d < 0) {\n            low = i + 1;\n        }\n        else if (d > 0) {\n            high = i - 1;\n        }\n        else {\n            return i;\n        }\n    }\n    return -low - 1;\n}\n\nfunction pickRandom(array) {\n    var i = ~~(Math.random() * array.length);\n    return array[i];\n}\n\n// http://bost.ocks.org/mike/shuffle/\nfunction shuffle(array) {\n    var m = array.length;\n    // While there remain elements to shuffle…\n    while (m > 0) {\n        // Pick a remaining element…\n        var i = Math.floor(Math.random() * m--);\n        // And swap it with the current element.\n        var t = array[m];\n        array[m] = array[i];\n        array[i] = t;\n    }\n    return array;\n}\n\nfunction queue(max) {\n    if (max === void 0) { max = 4; }\n    var items = []; // TODO\n    var pending = 0;\n    var closed = false;\n    var fulfil_closed;\n    function dequeue() {\n        if (pending === 0 && items.length === 0) {\n            if (fulfil_closed)\n                fulfil_closed();\n        }\n        if (pending >= max)\n            return;\n        if (items.length === 0)\n            return;\n        pending += 1;\n        var _a = items.shift(), fn = _a.fn, fulfil = _a.fulfil, reject = _a.reject;\n        var promise = fn();\n        try {\n            promise.then(fulfil, reject).then(function () {\n                pending -= 1;\n                dequeue();\n            });\n        }\n        catch (err) {\n            reject(err);\n            pending -= 1;\n            dequeue();\n        }\n        dequeue();\n    }\n    return {\n        add: function (fn) {\n            if (closed) {\n                throw new Error(\"Cannot add to a closed queue\");\n            }\n            return new Promise(function (fulfil, reject) {\n                items.push({ fn: fn, fulfil: fulfil, reject: reject });\n                dequeue();\n            });\n        },\n        close: function () {\n            closed = true;\n            return new Promise(function (fulfil, reject) {\n                if (pending === 0) {\n                    fulfil();\n                }\n                else {\n                    fulfil_closed = fulfil;\n                }\n            });\n        }\n    };\n}\n\nfunction createSprite(width, height, fn) {\n    var canvas = document.createElement('canvas');\n    canvas.width = width;\n    canvas.height = height;\n    var ctx = canvas.getContext('2d');\n    fn(ctx, canvas);\n    return canvas;\n}\n\nfunction clamp(num, min, max) {\n    return num < min ? min : num > max ? max : num;\n}\n\nfunction random(a, b) {\n    if (b === undefined)\n        return Math.random() * a;\n    return a + Math.random() * (b - a);\n}\n\nfunction linear(domain, range) {\n    var d0 = domain[0];\n    var r0 = range[0];\n    var m = (range[1] - r0) / (domain[1] - d0);\n    return Object.assign(function (num) {\n        return r0 + (num - d0) * m;\n    }, {\n        inverse: function () { return linear(range, domain); }\n    });\n}\n\n// https://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript\nfunction commas(num) {\n    var parts = String(num).split('.');\n    parts[0] = parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n    return parts.join('.');\n}\n\n// array\n\nexport { binarySearch, pickRandom, shuffle, queue, createSprite, clamp, random, linear as linearScale, commas };\n","<script context=\"module\">\n\timport { getContext } from 'svelte';\n\n\tconst key = {};\n\n\texport function getChartContext() {\n\t\treturn getContext(key);\n\t}\n</script>\n\n<script>\n\timport { setContext, onDestroy } from 'svelte';\n\timport { writable, derived } from 'svelte/store';\n\timport * as yootils from 'yootils';\n\n\texport let x1 = 0;\n\texport let y1 = 0;\n\texport let x2 = 1;\n\texport let y2 = 1;\n\texport let clip = false;\n\n\tlet chart;\n\n\tconst _x1 = writable();\n\tconst _y1 = writable();\n\tconst _x2 = writable();\n\tconst _y2 = writable();\n\n\tconst width = writable();\n\tconst height = writable();\n\tconst pointer = writable(null);\n\n\tconst handle_mousemove = e => {\n\t\tconst bcr = chart.getBoundingClientRect();\n\t\tconst left = e.clientX - bcr.left;\n\t\tconst top = e.clientY - bcr.top;\n\n\t\tconst x = $x_scale_inverse(100 * left / (bcr.right - bcr.left));\n\t\tconst y = $y_scale_inverse(100 * top / (bcr.bottom - bcr.top));\n\n\t\tpointer.set({ x, y, left, top });\n\t};\n\n\tconst handle_mouseleave = () => {\n\t\tpointer.set(null);\n\t};\n\n\t$: _x1.set(x1);\n\t$: _y1.set(y1);\n\t$: _x2.set(x2);\n\t$: _y2.set(y2);\n\n\tconst x_scale = derived([_x1, _x2], ([$x1, $x2]) => {\n\t\treturn yootils.linearScale([$x1, $x2], [0, 100]);\n\t});\n\n\tconst y_scale = derived([_y1, _y2], ([$y1, $y2]) => {\n\t\treturn yootils.linearScale([$y1, $y2], [100, 0]);\n\t});\n\n\tconst x_scale_inverse = derived(x_scale, $x_scale => $x_scale.inverse());\n\tconst y_scale_inverse = derived(y_scale, $y_scale => $y_scale.inverse());\n\n\tsetContext(key, {\n\t\tx1: _x1,\n\t\ty1: _y1,\n\t\tx2: _x2,\n\t\ty2: _y2,\n\t\tx_scale,\n\t\ty_scale,\n\t\tx_scale_inverse,\n\t\ty_scale_inverse,\n\t\tpointer,\n\t\twidth,\n\t\theight\n\t});\n</script>\n\n<div\n\tclass=\"pancake-chart\"\n\tbind:this={chart}\n\tbind:clientWidth={$width}\n\tbind:clientHeight={$height}\n\ton:mousemove={handle_mousemove}\n\ton:mouseleave={handle_mouseleave}\n\tclass:clip\n>\n\t<slot></slot>\n</div>\n\n<style>\n\t.pancake-chart {\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.clip {\n\t\toverflow: hidden;\n\t}\n</style>","<script>\n\timport { getChartContext } from './Chart.svelte';\n\n\texport let x1 = 0;\n\texport let x2 = 1;\n\texport let y1 = 0;\n\texport let y2 = 1;\n\n\tconst { x_scale, y_scale } = getChartContext();\n\n\tlet style; $: {\n\t\tconst _x1 = $x_scale(x1);\n\t\tconst _x2 = $x_scale(x2);\n\t\tconst _y1 = $y_scale(y1);\n\t\tconst _y2 = $y_scale(y2);\n\n\t\tconst left   = Math.min(_x1, _x2);\n\t\tconst right  = Math.max(_x1, _x2);\n\t\tconst top    = Math.min(_y1, _y2);\n\t\tconst bottom = Math.max(_y1, _y2);\n\n\t\tconst width = right - left;\n\t\tconst height = bottom - top;\n\n\t\tstyle = `left: ${left}%; bottom: ${100 - bottom}%; width: ${right - left}%; height: ${height}%;`;\n\t};\n</script>\n\n<div class=\"pancake-box\" style={style}>\n\t<slot></slot>\n</div>\n\n<style>\n\t.pancake-box {\n\t\tposition: absolute;\n\t}\n</style>","function count(node) {\n  var sum = 0,\n      children = node.children,\n      i = children && children.length;\n  if (!i) sum = 1;\n  else while (--i >= 0) sum += children[i].value;\n  node.value = sum;\n}\n\nexport default function() {\n  return this.eachAfter(count);\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_find from \"./find.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\nimport node_iterator from \"./iterator.js\";\n\nexport default function hierarchy(data, children) {\n  if (data instanceof Map) {\n    data = [undefined, data];\n    if (children === undefined) children = mapChildren;\n  } else if (children === undefined) {\n    children = objectChildren;\n  }\n\n  var root = new Node(data),\n      node,\n      nodes = [root],\n      child,\n      childs,\n      i,\n      n;\n\n  while (node = nodes.pop()) {\n    if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {\n      node.children = childs;\n      for (i = n - 1; i >= 0; --i) {\n        nodes.push(child = childs[i] = new Node(childs[i]));\n        child.parent = node;\n        child.depth = node.depth + 1;\n      }\n    }\n  }\n\n  return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n  return hierarchy(this).eachBefore(copyData);\n}\n\nfunction objectChildren(d) {\n  return d.children;\n}\n\nfunction mapChildren(d) {\n  return Array.isArray(d) ? d[1] : null;\n}\n\nfunction copyData(node) {\n  if (node.data.value !== undefined) node.value = node.data.value;\n  node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n  var height = 0;\n  do node.height = height;\n  while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n  this.data = data;\n  this.depth =\n  this.height = 0;\n  this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n  constructor: Node,\n  count: node_count,\n  each: node_each,\n  eachAfter: node_eachAfter,\n  eachBefore: node_eachBefore,\n  find: node_find,\n  sum: node_sum,\n  sort: node_sort,\n  path: node_path,\n  ancestors: node_ancestors,\n  descendants: node_descendants,\n  leaves: node_leaves,\n  links: node_links,\n  copy: node_copy,\n  [Symbol.iterator]: node_iterator\n};\n","export function optional(f) {\n  return f == null ? null : required(f);\n}\n\nexport function required(f) {\n  if (typeof f !== \"function\") throw new Error;\n  return f;\n}\n","export function constantZero() {\n  return 0;\n}\n\nexport default function(x) {\n  return function() {\n    return x;\n  };\n}\n","export default function(node) {\n  node.x0 = Math.round(node.x0);\n  node.y0 = Math.round(node.y0);\n  node.x1 = Math.round(node.x1);\n  node.y1 = Math.round(node.y1);\n}\n","export default function(parent, x0, y0, x1, y1) {\n  var nodes = parent.children,\n      node,\n      i = -1,\n      n = nodes.length,\n      k = parent.value && (x1 - x0) / parent.value;\n\n  while (++i < n) {\n    node = nodes[i], node.y0 = y0, node.y1 = y1;\n    node.x0 = x0, node.x1 = x0 += node.value * k;\n  }\n}\n","export default function(parent, x0, y0, x1, y1) {\n  var nodes = parent.children,\n      node,\n      i = -1,\n      n = nodes.length,\n      k = parent.value && (y1 - y0) / parent.value;\n\n  while (++i < n) {\n    node = nodes[i], node.x0 = x0, node.x1 = x1;\n    node.y0 = y0, node.y1 = y0 += node.value * k;\n  }\n}\n","export default function(callback, that) {\n  let index = -1;\n  for (const node of this) {\n    callback.call(that, node, ++index, this);\n  }\n  return this;\n}\n","export default function(callback, that) {\n  var node = this, nodes = [node], next = [], children, i, n, index = -1;\n  while (node = nodes.pop()) {\n    next.push(node);\n    if (children = node.children) {\n      for (i = 0, n = children.length; i < n; ++i) {\n        nodes.push(children[i]);\n      }\n    }\n  }\n  while (node = next.pop()) {\n    callback.call(that, node, ++index, this);\n  }\n  return this;\n}\n","export default function(callback, that) {\n  var node = this, nodes = [node], children, i, index = -1;\n  while (node = nodes.pop()) {\n    callback.call(that, node, ++index, this);\n    if (children = node.children) {\n      for (i = children.length - 1; i >= 0; --i) {\n        nodes.push(children[i]);\n      }\n    }\n  }\n  return this;\n}\n","export default function(callback, that) {\n  let index = -1;\n  for (const node of this) {\n    if (callback.call(that, node, ++index, this)) {\n      return node;\n    }\n  }\n}\n","export default function(value) {\n  return this.eachAfter(function(node) {\n    var sum = +value(node.data) || 0,\n        children = node.children,\n        i = children && children.length;\n    while (--i >= 0) sum += children[i].value;\n    node.value = sum;\n  });\n}\n","export default function(compare) {\n  return this.eachBefore(function(node) {\n    if (node.children) {\n      node.children.sort(compare);\n    }\n  });\n}\n","export default function(end) {\n  var start = this,\n      ancestor = leastCommonAncestor(start, end),\n      nodes = [start];\n  while (start !== ancestor) {\n    start = start.parent;\n    nodes.push(start);\n  }\n  var k = nodes.length;\n  while (end !== ancestor) {\n    nodes.splice(k, 0, end);\n    end = end.parent;\n  }\n  return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n  if (a === b) return a;\n  var aNodes = a.ancestors(),\n      bNodes = b.ancestors(),\n      c = null;\n  a = aNodes.pop();\n  b = bNodes.pop();\n  while (a === b) {\n    c = a;\n    a = aNodes.pop();\n    b = bNodes.pop();\n  }\n  return c;\n}\n","export default function() {\n  var node = this, nodes = [node];\n  while (node = node.parent) {\n    nodes.push(node);\n  }\n  return nodes;\n}\n","export default function() {\n  return Array.from(this);\n}\n","export default function() {\n  var leaves = [];\n  this.eachBefore(function(node) {\n    if (!node.children) {\n      leaves.push(node);\n    }\n  });\n  return leaves;\n}\n","export default function() {\n  var root = this, links = [];\n  root.each(function(node) {\n    if (node !== root) { // Don’t include the root’s parent, if any.\n      links.push({source: node.parent, target: node});\n    }\n  });\n  return links;\n}\n","export default function*() {\n  var node = this, current, next = [node], children, i, n;\n  do {\n    current = next.reverse(), next = [];\n    while (node = current.pop()) {\n      yield node;\n      if (children = node.children) {\n        for (i = 0, n = children.length; i < n; ++i) {\n          next.push(children[i]);\n        }\n      }\n    }\n  } while (next.length);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n  var rows = [],\n      nodes = parent.children,\n      row,\n      nodeValue,\n      i0 = 0,\n      i1 = 0,\n      n = nodes.length,\n      dx, dy,\n      value = parent.value,\n      sumValue,\n      minValue,\n      maxValue,\n      newRatio,\n      minRatio,\n      alpha,\n      beta;\n\n  while (i0 < n) {\n    dx = x1 - x0, dy = y1 - y0;\n\n    // Find the next non-empty node.\n    do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n    minValue = maxValue = sumValue;\n    alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n    beta = sumValue * sumValue * alpha;\n    minRatio = Math.max(maxValue / beta, beta / minValue);\n\n    // Keep adding nodes while the aspect ratio maintains or improves.\n    for (; i1 < n; ++i1) {\n      sumValue += nodeValue = nodes[i1].value;\n      if (nodeValue < minValue) minValue = nodeValue;\n      if (nodeValue > maxValue) maxValue = nodeValue;\n      beta = sumValue * sumValue * alpha;\n      newRatio = Math.max(maxValue / beta, beta / minValue);\n      if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n      minRatio = newRatio;\n    }\n\n    // Position and record the row orientation.\n    rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n    if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n    else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n    value -= sumValue, i0 = i1;\n  }\n\n  return rows;\n}\n\nexport default (function custom(ratio) {\n\n  function squarify(parent, x0, y0, x1, y1) {\n    squarifyRatio(ratio, parent, x0, y0, x1, y1);\n  }\n\n  squarify.ratio = function(x) {\n    return custom((x = +x) > 1 ? x : 1);\n  };\n\n  return squarify;\n})(phi);\n","export { identity as linear } from '../internal/index.mjs';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n    const s = 1.70158 * 1.525;\n    if ((t *= 2) < 1)\n        return 0.5 * (t * t * ((s + 1) * t - s));\n    return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n    const s = 1.70158;\n    return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n    const s = 1.70158;\n    return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n    const a = 4.0 / 11.0;\n    const b = 8.0 / 11.0;\n    const c = 9.0 / 10.0;\n    const ca = 4356.0 / 361.0;\n    const cb = 35442.0 / 1805.0;\n    const cc = 16061.0 / 1805.0;\n    const t2 = t * t;\n    return t < a\n        ? 7.5625 * t2\n        : t < b\n            ? 9.075 * t2 - 9.9 * t + 3.4\n            : t < c\n                ? ca * t2 - cb * t + cc\n                : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n    return t < 0.5\n        ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n        : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n    return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n    if ((t *= 2) < 1)\n        return -0.5 * (Math.sqrt(1 - t * t) - 1);\n    return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n    return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n    return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n    return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n    return t * t * t;\n}\nfunction cubicOut(t) {\n    const f = t - 1.0;\n    return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n    return t < 0.5\n        ? 0.5 *\n            Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n            Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n        : 0.5 *\n            Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n            Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n            1.0;\n}\nfunction elasticIn(t) {\n    return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n    return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n    return t === 0.0 || t === 1.0\n        ? t\n        : t < 0.5\n            ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n            : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n    return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n    return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n    t /= 0.5;\n    if (t < 1)\n        return 0.5 * t * t;\n    t--;\n    return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n    return t * t;\n}\nfunction quadOut(t) {\n    return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n    return t < 0.5\n        ? +8.0 * Math.pow(t, 4.0)\n        : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n    return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n    return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n    if ((t *= 2) < 1)\n        return 0.5 * t * t * t * t * t;\n    return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n    return t * t * t * t * t;\n}\nfunction quintOut(t) {\n    return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n    return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n    const v = Math.cos(t * Math.PI * 0.5);\n    if (Math.abs(v) < 1e-14)\n        return 1;\n    else\n        return 1 - v;\n}\nfunction sineOut(t) {\n    return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { writable } from '../store/index.mjs';\nimport { now, loop, assign } from '../internal/index.mjs';\nimport { linear } from '../easing/index.mjs';\n\nfunction is_date(obj) {\n    return Object.prototype.toString.call(obj) === '[object Date]';\n}\n\nfunction tick_spring(ctx, last_value, current_value, target_value) {\n    if (typeof current_value === 'number' || is_date(current_value)) {\n        // @ts-ignore\n        const delta = target_value - current_value;\n        // @ts-ignore\n        const velocity = (current_value - last_value) / (ctx.dt || 1 / 60); // guard div by 0\n        const spring = ctx.opts.stiffness * delta;\n        const damper = ctx.opts.damping * velocity;\n        const acceleration = (spring - damper) * ctx.inv_mass;\n        const d = (velocity + acceleration) * ctx.dt;\n        if (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) {\n            return target_value; // settled\n        }\n        else {\n            ctx.settled = false; // signal loop to keep ticking\n            // @ts-ignore\n            return is_date(current_value) ?\n                new Date(current_value.getTime() + d) : current_value + d;\n        }\n    }\n    else if (Array.isArray(current_value)) {\n        // @ts-ignore\n        return current_value.map((_, i) => tick_spring(ctx, last_value[i], current_value[i], target_value[i]));\n    }\n    else if (typeof current_value === 'object') {\n        const next_value = {};\n        for (const k in current_value) {\n            // @ts-ignore\n            next_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);\n        }\n        // @ts-ignore\n        return next_value;\n    }\n    else {\n        throw new Error(`Cannot spring ${typeof current_value} values`);\n    }\n}\nfunction spring(value, opts = {}) {\n    const store = writable(value);\n    const { stiffness = 0.15, damping = 0.8, precision = 0.01 } = opts;\n    let last_time;\n    let task;\n    let current_token;\n    let last_value = value;\n    let target_value = value;\n    let inv_mass = 1;\n    let inv_mass_recovery_rate = 0;\n    let cancel_task = false;\n    function set(new_value, opts = {}) {\n        target_value = new_value;\n        const token = current_token = {};\n        if (value == null || opts.hard || (spring.stiffness >= 1 && spring.damping >= 1)) {\n            cancel_task = true; // cancel any running animation\n            last_time = now();\n            last_value = new_value;\n            store.set(value = target_value);\n            return Promise.resolve();\n        }\n        else if (opts.soft) {\n            const rate = opts.soft === true ? .5 : +opts.soft;\n            inv_mass_recovery_rate = 1 / (rate * 60);\n            inv_mass = 0; // infinite mass, unaffected by spring forces\n        }\n        if (!task) {\n            last_time = now();\n            cancel_task = false;\n            task = loop(now => {\n                if (cancel_task) {\n                    cancel_task = false;\n                    task = null;\n                    return false;\n                }\n                inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);\n                const ctx = {\n                    inv_mass,\n                    opts: spring,\n                    settled: true,\n                    dt: (now - last_time) * 60 / 1000\n                };\n                const next_value = tick_spring(ctx, last_value, value, target_value);\n                last_time = now;\n                last_value = value;\n                store.set(value = next_value);\n                if (ctx.settled) {\n                    task = null;\n                }\n                return !ctx.settled;\n            });\n        }\n        return new Promise(fulfil => {\n            task.promise.then(() => {\n                if (token === current_token)\n                    fulfil();\n            });\n        });\n    }\n    const spring = {\n        set,\n        update: (fn, opts) => set(fn(target_value, value), opts),\n        subscribe: store.subscribe,\n        stiffness,\n        damping,\n        precision\n    };\n    return spring;\n}\n\nfunction get_interpolator(a, b) {\n    if (a === b || a !== a)\n        return () => a;\n    const type = typeof a;\n    if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) {\n        throw new Error('Cannot interpolate values of different type');\n    }\n    if (Array.isArray(a)) {\n        const arr = b.map((bi, i) => {\n            return get_interpolator(a[i], bi);\n        });\n        return t => arr.map(fn => fn(t));\n    }\n    if (type === 'object') {\n        if (!a || !b)\n            throw new Error('Object cannot be null');\n        if (is_date(a) && is_date(b)) {\n            a = a.getTime();\n            b = b.getTime();\n            const delta = b - a;\n            return t => new Date(a + t * delta);\n        }\n        const keys = Object.keys(b);\n        const interpolators = {};\n        keys.forEach(key => {\n            interpolators[key] = get_interpolator(a[key], b[key]);\n        });\n        return t => {\n            const result = {};\n            keys.forEach(key => {\n                result[key] = interpolators[key](t);\n            });\n            return result;\n        };\n    }\n    if (type === 'number') {\n        const delta = b - a;\n        return t => a + t * delta;\n    }\n    throw new Error(`Cannot interpolate ${type} values`);\n}\nfunction tweened(value, defaults = {}) {\n    const store = writable(value);\n    let task;\n    let target_value = value;\n    function set(new_value, opts) {\n        if (value == null) {\n            store.set(value = new_value);\n            return Promise.resolve();\n        }\n        target_value = new_value;\n        let previous_task = task;\n        let started = false;\n        let { delay = 0, duration = 400, easing = linear, interpolate = get_interpolator } = assign(assign({}, defaults), opts);\n        if (duration === 0) {\n            if (previous_task) {\n                previous_task.abort();\n                previous_task = null;\n            }\n            store.set(value = target_value);\n            return Promise.resolve();\n        }\n        const start = now() + delay;\n        let fn;\n        task = loop(now => {\n            if (now < start)\n                return true;\n            if (!started) {\n                fn = interpolate(value, new_value);\n                if (typeof duration === 'function')\n                    duration = duration(value, new_value);\n                started = true;\n            }\n            if (previous_task) {\n                previous_task.abort();\n                previous_task = null;\n            }\n            const elapsed = now - start;\n            if (elapsed > duration) {\n                store.set(value = new_value);\n                return false;\n            }\n            // @ts-ignore\n            store.set(value = fn(easing(elapsed / duration)));\n            return true;\n        });\n        return task.promise;\n    }\n    return {\n        set,\n        update: (fn, opts) => set(fn(target_value, value), opts),\n        subscribe: store.subscribe\n    };\n}\n\nexport { spring, tweened };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const f = style.filter === 'none' ? '' : style.filter;\n    const od = target_opacity * (1 - opacity);\n    return {\n        delay,\n        duration,\n        easing,\n        css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n    };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n    const o = +getComputedStyle(node).opacity;\n    return {\n        delay,\n        duration,\n        easing,\n        css: t => `opacity: ${t * o}`\n    };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const transform = style.transform === 'none' ? '' : style.transform;\n    const od = target_opacity * (1 - opacity);\n    return {\n        delay,\n        duration,\n        easing,\n        css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n    };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n    const style = getComputedStyle(node);\n    const opacity = +style.opacity;\n    const height = parseFloat(style.height);\n    const padding_top = parseFloat(style.paddingTop);\n    const padding_bottom = parseFloat(style.paddingBottom);\n    const margin_top = parseFloat(style.marginTop);\n    const margin_bottom = parseFloat(style.marginBottom);\n    const border_top_width = parseFloat(style.borderTopWidth);\n    const border_bottom_width = parseFloat(style.borderBottomWidth);\n    return {\n        delay,\n        duration,\n        easing,\n        css: t => 'overflow: hidden;' +\n            `opacity: ${Math.min(t * 20, 1) * opacity};` +\n            `height: ${t * height}px;` +\n            `padding-top: ${t * padding_top}px;` +\n            `padding-bottom: ${t * padding_bottom}px;` +\n            `margin-top: ${t * margin_top}px;` +\n            `margin-bottom: ${t * margin_bottom}px;` +\n            `border-top-width: ${t * border_top_width}px;` +\n            `border-bottom-width: ${t * border_bottom_width}px;`\n    };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const transform = style.transform === 'none' ? '' : style.transform;\n    const sd = 1 - start;\n    const od = target_opacity * (1 - opacity);\n    return {\n        delay,\n        duration,\n        easing,\n        css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n    };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n    const len = node.getTotalLength();\n    if (duration === undefined) {\n        if (speed === undefined) {\n            duration = 800;\n        }\n        else {\n            duration = len / speed;\n        }\n    }\n    else if (typeof duration === 'function') {\n        duration = duration(len);\n    }\n    return {\n        delay,\n        duration,\n        easing,\n        css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n    };\n}\nfunction crossfade(_a) {\n    var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n    const to_receive = new Map();\n    const to_send = new Map();\n    function crossfade(from, node, params) {\n        const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n        const to = node.getBoundingClientRect();\n        const dx = from.left - to.left;\n        const dy = from.top - to.top;\n        const dw = from.width / to.width;\n        const dh = from.height / to.height;\n        const d = Math.sqrt(dx * dx + dy * dy);\n        const style = getComputedStyle(node);\n        const transform = style.transform === 'none' ? '' : style.transform;\n        const opacity = +style.opacity;\n        return {\n            delay,\n            duration: is_function(duration) ? duration(d) : duration,\n            easing,\n            css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n        };\n    }\n    function transition(items, counterparts, intro) {\n        return (node, params) => {\n            items.set(params.key, {\n                rect: node.getBoundingClientRect()\n            });\n            return () => {\n                if (counterparts.has(params.key)) {\n                    const { rect } = counterparts.get(params.key);\n                    counterparts.delete(params.key);\n                    return crossfade(rect, node, params);\n                }\n                // if the node is disappearing altogether\n                // (i.e. wasn't claimed by the other list)\n                // then we need to supply an outro\n                items.delete(params.key);\n                return fallback && fallback(node, params, intro);\n            };\n        };\n    }\n    return [\n        transition(to_send, to_receive, false),\n        transition(to_receive, to_send, true)\n    ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","<script context=\"module\">\r\n    export function formatTime(ms) {\r\n        if (ms < 1000) {\r\n            return `${ms} ms`;\r\n        } else if (ms < 60000) {\r\n            return `${(ms / 1000).toFixed(1)} s`;\r\n        } else if (ms < 3600000) {\r\n            return `${(ms / 60000).toFixed(1)} min`;\r\n        } else {\r\n            return `${(ms / 3600000).toFixed(1)} h`;\r\n        }\r\n    }\r\n</script>\r\n","<script>\r\n\timport * as Pancake from '@sveltejs/pancake';\r\n\timport { getContext } from 'svelte';\r\n\r\n\texport let node;\r\n</script>\r\n\r\n<Pancake.Box x1={node.x0} x2={node.x1} y1={node.y1} y2={node.y0}>\r\n\t<slot {node}></slot>\r\n</Pancake.Box>\r\n\r\n{#each (node.children || []) as child}\r\n\t<svelte:self node={child} let:node>\r\n\t\t<slot {node}></slot>\r\n\t</svelte:self>\r\n{/each}","<script>\r\n\timport TreemapNode from './TreemapNode.svelte';\r\n\r\n\texport let root;\r\n</script>\r\n\r\n<pancake-treemap>\r\n\t<TreemapNode node={root} let:node>\r\n\t\t<slot {node}></slot>\r\n\t</TreemapNode>\r\n</pancake-treemap>\r\n\r\n<style>\r\n\tpancake-treemap {\r\n\t\tposition: absolute;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tpointer-events: none;\r\n\t}\r\n</style>","<script>\r\n\timport * as Pancake from '@sveltejs/pancake';\r\n\timport * as d3 from 'd3-hierarchy';\r\n\timport { tweened } from 'svelte/motion';\r\n\timport * as eases from 'svelte/easing';\r\n\timport { fade } from 'svelte/transition';\r\n    import { formatTime } from './TimeUtils.svelte';\r\n\timport Treemap from './Treemap.svelte';\r\n\t\r\n    export let data; \r\n\r\n\tconst treemap = d3.treemap();\r\n\r\n\tconst hierarchy = d3.hierarchy(data)\r\n\t\t.sum(d => d.value)\r\n\t\t.sort((a, b) => b.value - a.value)\r\n\r\n\tconst root = treemap(hierarchy);\r\n\r\n\tlet selected = root;\r\n\r\n\tconst select = node => {\r\n\t\twhile (node.parent && node.parent !== selected) {\r\n\t\t\tnode = node.parent;\r\n\t\t}\r\n\r\n\t\tif (node && node.children) selected = node;\r\n\t};\r\n\r\n\tconst breadcrumbs = node => {\r\n\t\tconst crumbs = [];\r\n\t\twhile (node) {\r\n\t\t\tcrumbs.unshift(node.data.name)\r\n\t\t\tnode = node.parent;\r\n\t\t}\r\n\r\n\t\treturn crumbs.join('/');\r\n\t};\r\n\r\n\tconst extents = tweened(undefined, {\r\n\t\teasing: eases.cubicOut,\r\n\t\tduration: 600\r\n\t});\r\n\r\n\tconst is_visible = (a, b) => {\r\n\t\twhile (b) {\r\n\t\t\tif (a.parent === b) return true;\r\n\t\t\tb = b.parent;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t};\r\n\r\n\t$: $extents = {\r\n\t\tx1: selected.x0,\r\n\t\tx2: selected.x1,\r\n\t\ty1: selected.y1,\r\n\t\ty2: selected.y0\r\n\t};\r\n</script>\r\n\r\n<button class=\"breadcrumbs\" disabled=\"{!selected.parent}\" on:click=\"{() => selected = selected.parent}\">\r\n\t{breadcrumbs(selected)}\r\n</button>\r\n\r\n<div class=\"chart\">\r\n\t<Pancake.Chart x1={$extents.x1} x2={$extents.x2} y1={$extents.y1} y2={$extents.y2}>\r\n\t\t<Treemap {root} let:node>\r\n\t\t\t{#if is_visible(node, selected)}\r\n\t\t\t\t<div\r\n\t\t\t\t\ttransition:fade={{duration:400}}\r\n\t\t\t\t\tclass=\"node\"\r\n\t\t\t\t\tclass:leaf={!node.children}\r\n\t\t\t\t\ton:click=\"{() => select(node)}\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<div class=\"contents\">\r\n\t\t\t\t\t\t<strong>{node.data.name}</strong>\r\n\t\t\t\t\t\t<span>{formatTime(node.value)}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t{/if}\r\n\t\t</Treemap>\r\n\t</Pancake.Chart>\r\n</div>\r\n\r\n<style>\r\n\t.breadcrumbs {\r\n\t\twidth: 100%;\r\n\t\tpadding: 0.3rem 0.4rem;\r\n\t\tbackground-color: transparent;\r\n\t\tfont-family: inherit;\r\n\t\tfont-size: inherit;\r\n\t\ttext-align: left;\r\n\t\tborder: none;\r\n\t\tcursor: pointer;\r\n\t\toutline: none;\r\n\t}\r\n\r\n\t.breadcrumbs:disabled {\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t.chart {\r\n\t\twidth: calc(100% + 2px);\r\n\t\theight: 400px;\r\n\t\tpadding: 0;\r\n\t\tmargin: 0 -1px 36px -1px;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\t.node {\r\n\t\tposition: absolute;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tbackground-color: white;\r\n\t\toverflow: hidden;\r\n\t\tpointer-events: all;\r\n\t}\r\n\r\n\t.node:not(.leaf) {\r\n\t\tcursor: pointer;\r\n\t}\r\n\r\n\t.contents {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tpadding: 0.3rem 0.4rem;\r\n\t\tborder: 1px solid white;\r\n\t\tbackground-color: hsl(240, 8%, 70%);\r\n\t\tcolor: white;\r\n\t\tborder-radius: 4px;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t.node:not(.leaf) .contents {\r\n\t\tbackground-color: hsl(240, 8%, 44%);\r\n\t}\r\n\r\n\tstrong, span {\r\n\t\tdisplay: block;\r\n\t\tfont-size: 12px;\r\n\t\twhite-space: nowrap;\r\n\t\tline-height: 1;\r\n\t}\r\n</style>","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n  var tile = squarify,\n      round = false,\n      dx = 1,\n      dy = 1,\n      paddingStack = [0],\n      paddingInner = constantZero,\n      paddingTop = constantZero,\n      paddingRight = constantZero,\n      paddingBottom = constantZero,\n      paddingLeft = constantZero;\n\n  function treemap(root) {\n    root.x0 =\n    root.y0 = 0;\n    root.x1 = dx;\n    root.y1 = dy;\n    root.eachBefore(positionNode);\n    paddingStack = [0];\n    if (round) root.eachBefore(roundNode);\n    return root;\n  }\n\n  function positionNode(node) {\n    var p = paddingStack[node.depth],\n        x0 = node.x0 + p,\n        y0 = node.y0 + p,\n        x1 = node.x1 - p,\n        y1 = node.y1 - p;\n    if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n    if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n    node.x0 = x0;\n    node.y0 = y0;\n    node.x1 = x1;\n    node.y1 = y1;\n    if (node.children) {\n      p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n      x0 += paddingLeft(node) - p;\n      y0 += paddingTop(node) - p;\n      x1 -= paddingRight(node) - p;\n      y1 -= paddingBottom(node) - p;\n      if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n      if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n      tile(node, x0, y0, x1, y1);\n    }\n  }\n\n  treemap.round = function(x) {\n    return arguments.length ? (round = !!x, treemap) : round;\n  };\n\n  treemap.size = function(x) {\n    return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n  };\n\n  treemap.tile = function(x) {\n    return arguments.length ? (tile = required(x), treemap) : tile;\n  };\n\n  treemap.padding = function(x) {\n    return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n  };\n\n  treemap.paddingInner = function(x) {\n    return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n  };\n\n  treemap.paddingOuter = function(x) {\n    return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n  };\n\n  treemap.paddingTop = function(x) {\n    return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n  };\n\n  treemap.paddingRight = function(x) {\n    return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n  };\n\n  treemap.paddingBottom = function(x) {\n    return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n  };\n\n  treemap.paddingLeft = function(x) {\n    return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n  };\n\n  return treemap;\n}\n","<script>\r\nimport IconOpen from \"./IconOpen.svelte\"\r\nimport IconClosed from \"./IconClosed.svelte\"\r\nimport { formatTime } from './TimeUtils.svelte';\r\n\r\nexport let data;\r\nexport let maxtime; \r\nexport let depth = 0;\r\nexport let expanded = false;\r\n\r\nfunction toggle(){\r\n    expanded = !expanded;\r\n}\r\n</script>\r\n\r\n<tr>\r\n    <td on:click={toggle}>\r\n        <span style=\"padding-left: {depth*10}px; cursor: pointer;\">\r\n            {#if expanded}\r\n                <IconOpen/>\r\n            {:else}\r\n                <IconClosed/>\r\n            {/if}\r\n            {data['name']}\r\n        </span>\r\n    </td>\r\n    <td style=\"text-align: right;\">{formatTime(data['value'])}</td>\r\n    <td style=\"text-align: right;\">{Math.round(data['value']/maxtime*10000)/100}%</td>\r\n</tr>\r\n\r\n{#if expanded}\r\n    {#each data['children'] as child}\r\n        {#if 'children' in child}\r\n            <svelte:self data={child} maxtime={maxtime} depth={depth + 1}/>\r\n        {:else}\r\n            <tr>\r\n                <td style=\"padding-left: {depth*10+31}px;\" on:click={toggle}>\r\n                    {child['name']}\r\n                </td>\r\n                <td style=\"text-align: right;\">{child['value']}ms</td>\r\n                <td style=\"text-align: right;\">{Math.round(child['value']/maxtime*10000)/100}%</td>\r\n            </tr>\r\n        {/if}\r\n    {/each}\r\n{/if}\r\n\r\n<style>\r\ntd{\r\n    font-family: 'Courier New', monospace;\r\n    font-weight: 600;\r\n\r\n\r\n    padding: .75rem;\r\n    vertical-align: top;\r\n    border-top: 1px solid #dee2e6;\r\n}\r\n</style>","<script>\r\n\timport Flare from './Flare.svelte';\r\n\timport TableRow from './TableRow.svelte'\r\n\r\n\tasync function getData(url){\r\n\t\tconst res = await fetch(url);\r\n\t\tconst blob = await res.json();\r\n\t\treturn blob\r\n\t}\r\n\r\n\tlet mapPromise = getData(\"data.json\");\r\n\tlet treePromise = getData(\"treedata.json\");\r\n\t\r\n</script>\r\n\r\n<svelte:head>\r\n\t<title>Duration Insights</title>\r\n\t<html lang=\"en\" />\r\n</svelte:head>\r\n\r\n<h1>Pytest Duration Insights</h1>\r\n<p>You can click in the treemap below to explore where most time is spent.</p>\r\n\r\n{#await mapPromise}\r\n\t<p>...waiting</p>\r\n{:then data}\r\n\t<Flare data={data}></Flare>\r\n{:catch error}\r\n\t<p style=\"color: red\">{error.message}</p>\r\n{/await}\r\n\r\n<p>You can also explore the nested tree below for more details.</p>\r\n\r\n{#await treePromise}\r\n\t<p>...waiting</p>\r\n{:then treedata}\r\n\t<table style=\"width: 100%; max-width: 100%; margin-bottom: 1rem; background-color: transparent;\">\r\n\t\t<TableRow data={treedata} maxtime={treedata['value']}></TableRow>\r\n\t</table>\r\n{:catch error}\r\n\t<p style=\"color: red\">{error.message}</p>\r\n{/await}","import App from './App.svelte';\r\n\r\nconst app = new App({\r\n\ttarget: document.body,\r\n\tprops: {\r\n\t\tname: 'world'\r\n\t}\r\n});\r\n\r\nexport default app;"],"names":["noop","identity","x","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","subscribe","store","callbacks","unsub","unsubscribe","component_subscribe","component","callback","$$","on_destroy","push","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","loop","promise","Promise","fulfill","add","[object Object]","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","svg_element","createElementNS","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","value","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_style","key","important","style","setProperty","crossorigin","is_crossorigin","parent","error","toggle_class","toggle","classList","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","get_current_component","Error","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","dispatch","direction","kind","dispatchEvent","type","detail","e","createEvent","initCustomEvent","custom_event","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_bidirectional_transition","params","intro","config","running_program","pending_program","animation_name","clear_animation","init","program","abs","start","end","group","go","easing","tick","css","then","handle_promise","info","token","index","resolved","child_ctx","current","needs_flush","blocks","m","mount","catch","hasCatch","pending","update_await_block_branch","create_component","mount_component","customElement","on_mount","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","SvelteComponent","this","$destroy","splice","$$props","obj","$$set","keys","subscriber_queue","writable","stop","subscribers","set","new_value","run_queue","s","invalidate","subscriber","derived","stores","initial_value","single","isArray","stores_array","auto","inited","values","cleanup","sync","result","unsubscribers","linear","domain","range","d0","r0","num","inverse","getComputedStyle","position","iframe","tabIndex","source","contentWindow","onload","getChartContext","get","getContext","chart","x1","y1","x2","y2","clip","_x1","_y1","_x2","_y2","width","height","pointer","x_scale","$x1","$x2","yootils.linearScale","y_scale","$y1","$y2","x_scale_inverse","$x_scale","y_scale_inverse","$y_scale","setContext","bcr","getBoundingClientRect","left","clientX","top","clientY","$x_scale_inverse","right","y","$y_scale_inverse","bottom","$width","$height","min","count","sum","hierarchy","mapChildren","objectChildren","child","childs","n","root","Node","depth","eachBefore","computeHeight","copyData","required","constantZero","x0","round","y0","prototype","constructor","eachAfter","each","that","call","find","sort","compare","path","ancestor","aNodes","ancestors","bNodes","leastCommonAncestor","descendants","leaves","links","copy","Symbol","iterator","reverse","custom","ratio","squarify","row","nodeValue","dx","dy","sumValue","minValue","maxValue","newRatio","minRatio","alpha","beta","rows","i0","i1","dice","treemapDice","treemapSlice","squarifyRatio","sqrt","cubicOut","is_date","toString","get_interpolator","arr","bi","getTime","delta","interpolators","fade","opacity","formatTime","ms","toFixed","prop","tile","paddingStack","paddingInner","paddingTop","paddingRight","paddingBottom","paddingLeft","treemap","positionNode","roundNode","arguments","padding","paddingOuter","constant","d3.treemap","d3.hierarchy","selected","select","extents","defaults","target_value","opts","previous_task","started","interpolate","abort","elapsed","tweened","eases.cubicOut","$extents","crumbs","unshift","maxtime","expanded","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