diff --git a/.travis.yml b/.travis.yml index 2957ef91..e9242f0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ language: node_js node_js: - '18' install: - - npm set-script prepare "" + - npm pkg delete scripts.prepare - npm install before_script: - DOCKER_IMAGE_NAME="q-table" diff --git a/dist/Q-Table.js b/dist/Q-Table.js index fb40ee66..843d1979 100644 --- a/dist/Q-Table.js +++ b/dist/Q-Table.js @@ -1 +1 @@ -this.window=this.window||{},this.window.q_table=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function l(t){t.forEach(e)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,l){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const l=e.subscribe(...n);return l.unsubscribe?()=>l.unsubscribe():l}(n,l))}function i(t,e,n,l){return t[1]&&l?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](l(e))):n.ctx}function s(t){return null==t?"":t}function a(t,e){t.appendChild(e)}function u(t,e,n){const l=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;if(e&&e.host)return e;return t.ownerDocument}(t);if(!l.getElementById(e)){const t=p("style");t.id=e,t.textContent=n,function(t,e){a(t.head||t,e),e.sheet}(l,t)}}function d(t,e,n){t.insertBefore(e,n||null)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}function m(t,e){for(let n=0;nt.removeEventListener(e,n,l)}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function w(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function q(t,e){t.value=null==e?"":e}function y(t,e,n,l){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,l?"important":"")}function C(t,e,n){t.classList[n?"add":"remove"](e)}class _{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.is_svg?this.e=g(e.nodeName):this.e=p(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e{L.delete(t),l&&(n&&t.d(1),l())})),t.o(e)}else l&&l()}function Q(t,e){K(t,1,1,(()=>{e.delete(t.key)}))}function Y(t,e,n,l,o,r,c,i,s,a,u,d){let f=t.length,m=r.length,p=f;const g={};for(;p--;)g[t[p].key]=p;const h=[],b=new Map,$=new Map;for(p=m;p--;){const t=d(o,r,p),i=n(t);let s=c.get(i);s?l&&s.p(t,e):(s=a(i,t),s.c()),b.set(i,h[p]=s),i in g&&$.set(i,Math.abs(p-g[i]))}const x=new Set,v=new Set;function w(t){G(t,1),t.m(i,u),c.set(t.key,t),u=t.first,m--}for(;f&&m;){const e=h[m-1],n=t[f-1],l=e.key,o=n.key;e===n?(u=e.first,f--,m--):b.has(o)?!c.has(l)||x.has(l)?w(e):v.has(o)?f--:$.get(l)>$.get(o)?(v.add(l),w(e)):(x.add(o),f--):(s(n,c),f--)}for(;f--;){const e=t[f];b.has(e.key)||s(e,c)}for(;m;)w(h[m-1]);return h}function W(t){t&&t.c()}function X(t,n,r,c){const{fragment:i,after_update:s}=t.$$;i&&i.m(n,r),c||D((()=>{const n=t.$$.on_mount.map(e).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...n):l(n),t.$$.on_mount=[]})),s.forEach(D)}function J(t,e){const n=t.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function U(t,e){-1===t.$$.dirty[0]&&(N.push(t),j||(j=!0,V.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=l.length?l[0]:n;return m.ctx&&i(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),p&&U(e,t)),n})):[],m.update(),p=!0,l(m.before_update),m.fragment=!!c&&c(m.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);m.fragment&&m.fragment.l(t),t.forEach(f)}else m.fragment&&m.fragment.c();o.intro&&G(e.$$.fragment),X(e,o.target,o.anchor,o.customElement),A()}I(d)}class tt{$destroy(){J(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const l=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return l.push(n),()=>{const t=l.indexOf(n);-1!==t&&l.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function et(t,e,n){const l=t.slice();return l[4]=e[n],l[6]=n,l}function nt(t){let e;return{c(){e=p("div"),v(e,"class","s-q-item__footer__notes")},m(n,l){d(n,e,l),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},d(t){t&&f(e)}}}function lt(t){let e,n,l;function o(t,e){return t[1].length>1?rt:ot}let r=o(t),c=r(t),i=t[1],s=[];for(let e=0;e0&&nt(e),i=e[1].length>0&<(e),s=e[2]&&st(e);return{c(){n=p("div"),c&&c.c(),l=b(),o=p("div"),i&&i.c(),r=b(),s&&s.c(),v(o,"class","s-q-item__footer__details"),v(n,"class","s-q-item__footer")},m(t,e){d(t,n,e),c&&c.m(n,null),a(n,l),a(n,o),i&&i.m(o,null),a(o,r),s&&s.m(o,null)},p(t,[e]){t[0].length>0?c?c.p(t,e):(c=nt(t),c.c(),c.m(n,l)):c&&(c.d(1),c=null),t[1].length>0?i?i.p(t,e):(i=lt(t),i.c(),i.m(o,r)):i&&(i.d(1),i=null),t[2]?s?s.p(t,e):(s=st(t),s.c(),s.m(o,null)):s&&(s.d(1),s=null)},i:t,o:t,d(t){t&&f(n),c&&c.d(),i&&i.d(),s&&s.d()}}}function ut(t,e,n){let{notes:l=""}=e,{sources:o=[]}=e,{acronym:r=""}=e;return t.$$set=t=>{"notes"in t&&n(0,l=t.notes),"sources"in t&&n(1,o=t.sources),"acronym"in t&&n(2,r=t.acronym)},[l,o,r,function(t,e){let n="";return n=t.link.url&&!0===t.link.isValid?`${t.text}`:t.text,e!==o.length-1&&""!==o[e+1].text&&(n+=","),n}]}class dt extends tt{constructor(t){super(),Z(this,t,ut,at,r,{notes:0,sources:1,acronym:2})}}function ft(t,e,n){const l=t.slice();return l[1]=e[n],l}function mt(t){let e,n,l,o,r,c,i,s=t[1].index+"",u=t[1].value+"";return{c(){e=p("div"),n=p("span"),l=h(s),o=b(),r=p("span"),c=h(u),i=b(),v(n,"class","q-table-footnote-index s-font-note--tabularnums"),v(r,"class","q-table-footnote-text"),v(e,"class","q-table-footnote-footer s-font-note-s")},m(t,s){d(t,e,s),a(e,n),a(n,l),a(e,o),a(e,r),a(r,c),a(e,i)},p(t,e){1&e&&s!==(s=t[1].index+"")&&w(l,s),1&e&&u!==(u=t[1].value+"")&&w(c,u)},d(t){t&&f(e)}}}function pt(e){let n,l=e[0],o=[];for(let t=0;t{"footnotes"in t&&n(0,l=t.footnotes)},[l]}class ht extends tt{constructor(t){super(),Z(this,t,gt,pt,r,{footnotes:0})}}function bt(t,e,n){const l=t.slice();return l[9]=e[n],l}function $t(e){let n;return{c(){n=g("rect"),v(n,"class","q-table-colorColumn-legend-bucket "+e[9].color.colorClass),v(n,"width",kt(e[9],e[6],e[5])+"%"),v(n,"height","16"),v(n,"x",_t(e[9],e[6],e[5])+"%"),v(n,"y","12")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function xt(e){let n;return{c(){n=g("rect"),v(n,"class","q-table-colorColumn-legend-bucket"),y(n,"color",e[9].color.customColor),v(n,"width",kt(e[9],e[6],e[5])+"%"),v(n,"height","16"),v(n,"x",_t(e[9],e[6],e[5])+"%"),v(n,"y","12")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function vt(t){let e;let n=function(t,e){return t[9].color.customColor?xt:$t}(t),l=n(t);return{c(){l.c(),e=$()},m(t,n){l.m(t,n),d(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&f(e)}}}function wt(t){let e,n,l=t[3]&&function(t){let e,n,l,o;function r(t,e){return t[1][0].color.customColor?yt:qt}let c=r(t),i=c(t);return{c(){e=p("div"),n=g("svg"),i.c(),l=b(),o=p("div"),o.textContent=`= ${t[1][0].from}`,v(n,"width","11"),v(n,"height","11"),v(n,"class","s-legend-item-label__item__icon q-table-colorColumn-legend-info-icon"),C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0]),v(o,"class","s-legend-item-label__item__label s-font-note--tabularnums"),v(e,"class","s-legend-item-label__item q-table-colorColumn-legend-info--single-bucket")},m(t,r){d(t,e,r),a(e,n),i.m(n,null),a(e,l),a(e,o)},p(t,e){i.p(t,e),1&e&&C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),1&e&&C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0])},d(t){t&&f(e),i.d()}}}(t),o=t[2]&&function(t){let e,n,l,o,r;return{c(){e=p("div"),n=g("svg"),l=g("rect"),o=b(),r=p("div"),r.textContent="Keine Daten",v(l,"width","11"),v(l,"height","11"),v(l,"class","s-color-gray-4"),v(l,"fill","white"),v(l,"stroke","currentColor"),v(l,"stroke-width","2"),v(n,"width","11"),v(n,"height","11"),v(n,"class","s-legend-item-label__item__icon q-table-colorColumn-legend-info-icon"),C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0]),v(r,"class","s-legend-item-label__item__label"),v(e,"class","s-legend-item-label__item q-table-colorColumn-legend-info--no-data")},m(t,c){d(t,e,c),a(e,n),a(n,l),a(e,o),a(e,r)},p(t,e){1&e&&C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),1&e&&C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0])},d(t){t&&f(e)}}}(t);return{c(){e=p("div"),l&&l.c(),n=b(),o&&o.c(),v(e,"class","s-legend-icon-label")},m(t,r){d(t,e,r),l&&l.m(e,null),a(e,n),o&&o.m(e,null)},p(t,e){t[3]&&l.p(t,e),t[2]&&o.p(t,e)},d(t){t&&f(e),l&&l.d(),o&&o.d()}}}function qt(e){let n;return{c(){n=g("rect"),v(n,"width","11"),v(n,"height","11"),v(n,"class","q-table-colorColumn-legend-bucket "+e[1][0].color.colorClass)},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function yt(e){let n;return{c(){n=g("rect"),v(n,"width","11"),v(n,"height","11"),v(n,"class","q-table-colorColumn-legend-bucket"),y(n,"color",e[1][0].color.customColor)},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function Ct(e){let n,l,o,r,c,i,s,u,$,x,w,q,y,C,_=e[1],k=[];for(let t=0;t<_.length;t+=1)k[t]=vt(bt(e,_,t));let I=null!==e[4]&&function(e){let n,l,o;return{c(){n=g("g"),l=g("circle"),o=g("rect"),v(l,"cx",e[4].position+"%"),v(l,"cy","20"),v(l,"r","4"),v(l,"stroke","white"),v(l,"stroke-width","1"),v(l,"fill","none"),v(o,"class","s-color-gray-9"),v(o,"fill","currentColor"),v(o,"width","0.5px"),v(o,"height","16"),v(o,"x",e[4].position+"%"),v(o,"y","20")},m(t,e){d(t,n,e),a(n,l),a(n,o)},p:t,d(t){t&&f(n)}}}(e),z=null!==e[4]&&function(e){let n,l,o,r,c=e[4].label+"",i=e[4].value+"";return{c(){n=p("div"),l=h(c),o=h(": "),r=h(i),v(n,"class","q-table-colorColumn-legend-marker s-font-note s-font-note--tabularnums"),v(n,"style",e[4].descriptionAlignment)},m(t,e){d(t,n,e),a(n,l),a(n,o),a(n,r)},p:t,d(t){t&&f(n)}}}(e),S=(e[3]||e[2])&&wt(e);return{c(){n=p("div"),l=p("div"),o=p("div"),r=p("span"),r.textContent=`${e[6]}`,c=b(),i=p("span"),i.textContent=`${e[5]}`,s=b(),u=p("div"),$=g("svg"),x=g("g");for(let t=0;t{"colorColumn"in t&&n(7,l=t.colorColumn),"noInteraction"in t&&n(0,o=t.noInteraction)},[o,c,i,s,a,u,d,l]}class zt extends tt{constructor(t){super(),Z(this,t,It,Ct,r,{colorColumn:7,noInteraction:0})}}function St(t,e,n){const l=t.slice();return l[3]=e[n],l}function Nt(e){let n,l,o,r,c,i,s=e[3].label+"";return{c(){n=p("div"),l=p("div"),o=b(),r=p("div"),c=h(s),i=b(),v(l,"class","s-legend-item-label__item__icon s-legend-item-label__item__icon--default"),v(r,"class","s-legend-item-label__item__label"),v(n,"class","s-legend-item-label__item "+e[3].color.colorClass)},m(t,e){d(t,n,e),a(n,l),a(n,o),a(n,r),a(r,c),a(n,i)},p:t,d(t){t&&f(n)}}}function Et(e){let n,l,o,r,c,i,s=e[3].label+"";return{c(){n=p("div"),l=p("div"),o=b(),r=p("div"),c=h(s),i=b(),v(l,"class","s-legend-item-label__item__icon s-legend-item-label__item__icon--default"),v(r,"class","s-legend-item-label__item__label"),v(n,"class","s-legend-item-label__item"),y(n,"color",e[3].color.customColor)},m(t,e){d(t,n,e),a(n,l),a(n,o),a(n,r),a(r,c),a(n,i)},p:t,d(t){t&&f(n)}}}function Mt(t){let e;let n=function(t,e){return t[3].color.customColor?Et:Nt}(t),l=n(t);return{c(){l.c(),e=$()},m(t,n){l.m(t,n),d(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&f(e)}}}function Tt(e){let n,l,o,r=e[1].categories,c=[];for(let t=0;t{"colorColumn"in t&&n(2,l=t.colorColumn),"noInteraction"in t&&n(0,o=t.noInteraction)},[o,r,l]}class jt extends tt{constructor(t){super(),Z(this,t,Vt,Tt,r,{colorColumn:2,noInteraction:0})}}function Dt(t){let e,n;return e=new jt({props:{colorColumn:t[0],noInteraction:t[1]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.colorColumn=t[0]),2&n&&(l.noInteraction=t[1]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Bt(t){let e,n;return e=new zt({props:{colorColumn:t[0],noInteraction:t[1]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.colorColumn=t[0]),2&n&&(l.noInteraction=t[1]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Pt(t){let e,n,l,o;const r=[Bt,Dt],c=[];function i(t,e){return"numerical"===t[0].colorColumnType?0:1}return n=i(t),l=c[n]=r[n](t),{c(){e=p("div"),l.c(),v(e,"class","q-table-legend-container q-table-legend-container--desktop")},m(t,l){d(t,e,l),c[n].m(e,null),o=!0},p(t,[o]){let s=n;n=i(t),n===s?c[n].p(t,o):(R(),K(c[s],1,1,(()=>{c[s]=null})),F(),l=c[n],l?l.p(t,o):(l=c[n]=r[n](t),l.c()),G(l,1),l.m(e,null))},i(t){o||(G(l),o=!0)},o(t){K(l),o=!1},d(t){t&&f(e),c[n].d()}}}function At(t,e,n){let{colorColumn:l}=e,{noInteraction:o}=e;return t.$$set=t=>{"colorColumn"in t&&n(0,l=t.colorColumn),"noInteraction"in t&&n(1,o=t.noInteraction)},[l,o]}class Ht extends tt{constructor(t){super(),Z(this,t,At,Pt,r,{colorColumn:0,noInteraction:1})}}function Lt(e){let n;return{c(){n=p("div"),n.innerHTML='',v(n,"class","q-table-methods-link-icon-plus")},m(t,e){d(t,n,e)},p:t,i:t,o:t,d(t){t&&f(n)}}}class Ot extends tt{constructor(t){super(),Z(this,t,null,Lt,r,{})}}function Rt(e){let n;return{c(){n=p("div"),n.innerHTML='',v(n,"class","q-table-methods-link-icon-close")},m(t,e){d(t,n,e)},p:t,i:t,o:t,d(t){t&&f(n)}}}class Ft extends tt{constructor(t){super(),Z(this,t,null,Rt,r,{})}}function Gt(t){u(t,"svelte-lqfo6x",".qtable-methodiek-btn{align-items:center;cursor:pointer;display:flex;flex-direction:row;gap:4px;margin-top:8px;text-decoration:underline}.qtable-methodiek-btn svg{height:10px;width:10px}.qtable-methodiek-cntr{margin-top:8px;box-shadow:1px 1px 4px rgba(0, 0, 0, 0.1);border:1px solid #f0f0f2;padding:8px}.qtable-methodiek-cntr table{table-layout:auto}.qtable-methodiek-cntr table tr{text-align:right}.qtable-methodiek-cntr table tr td{width:auto}.qtable-methodiek-legend-circle{position:relative;box-sizing:content-box;width:7px;height:7px;margin:2px 8px 2px 2px;border:1px solid;border-radius:50%;background-color:currentColor}.qtable-methodiek-descr{margin-top:4px}.qtable-methodiek-clr-explainer{color:#05032d;display:block;margin-top:4px}")}function Kt(t,e,n){const l=t.slice();return l[7]=e[n],l[9]=n,l}function Qt(e){let n,l,o,r,c,i;return l=new Ot({}),{c(){n=p("div"),W(l.$$.fragment),o=h("\n Daten und Methodik"),v(n,"class","qtable-methodiek-btn s-font-note-s")},m(t,s){d(t,n,s),X(l,n,null),a(n,o),r=!0,c||(i=x(n,"click",e[5]),c=!0)},p:t,i(t){r||(G(l.$$.fragment,t),r=!0)},o(t){K(l.$$.fragment,t),r=!1},d(t){t&&f(n),J(l),c=!1,i()}}}function Yt(e){let n,l,o,r,c,i;return l=new Ft({}),{c(){n=p("div"),W(l.$$.fragment),o=h("\n Daten und Methodik"),v(n,"class","qtable-methodiek-btn s-font-note-s")},m(t,s){d(t,n,s),X(l,n,null),a(n,o),r=!0,c||(i=x(n,"click",e[6]),c=!0)},p:t,i(t){r||(G(l.$$.fragment,t),r=!0)},o(t){K(l.$$.fragment,t),r=!1},d(t){t&&f(n),J(l),c=!1,i()}}}function Wt(t){let e,n,l,o,r,c,i,s=t[2].article.title+"",u=t[3]&&function(t){let e,n=t[3],l=[];for(let e=0;e{r=null})),F()):r?(r.p(t,o),2&o&&G(r,1)):(r=Qt(t),r.c(),G(r,1),r.m(e.parentNode,e)),t[1]?c?(c.p(t,o),2&o&&G(c,1)):(c=Yt(t),c.c(),G(c,1),c.m(n.parentNode,n)):c&&(R(),K(c,1,1,(()=>{c=null})),F()),t[1]?i?i.p(t,o):(i=Wt(t),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(t){o||(G(r),G(c),o=!0)},o(t){K(r),K(c),o=!1},d(t){r&&r.d(t),t&&f(e),c&&c.d(t),t&&f(n),i&&i.d(t),t&&f(l)}}}function te(t,e,n){let{legend:l}=e;const o=l.methodBox,r=o.formattedBuckets;let c=!1;function i(t){n(1,c=t)}return t.$$set=t=>{"legend"in t&&n(0,l=t.legend)},[l,c,o,r,i,()=>i(!0),()=>i(!1)]}class ee extends tt{constructor(t){super(),Z(this,t,te,Zt,r,{legend:0},Gt)}}function ne(t){u(t,"svelte-1cr35o3",".qtable-methodiek-static{margin-top:12px;padding-right:20px}.qtable-methodiek-static .s-legend-item-label__item__icon{margin-right:8px}.qtable-methodiek-descr{margin-top:4px}")}function le(t,e,n){const l=t.slice();return l[3]=e[n],l[5]=n,l}function oe(e){let n,l,o,r=e[3].from+"",c=e[3].to+"";return{c(){n=h(r),l=h("–"),o=h(c)},m(t,e){d(t,n,e),d(t,l,e),d(t,o,e)},p:t,d(t){t&&f(n),t&&f(l),t&&f(o)}}}function re(e){let n,l,o=e[3].from+"";return{c(){n=h(o),l=h(" (nur ein Datenpunkt)")},m(t,e){d(t,n,e),d(t,l,e)},p:t,d(t){t&&f(n),t&&f(l)}}}function ce(t){let e,n,l,o,r;function c(t,e){return 0===t[5]&&t[0].hasSingleValueBucket?re:oe}let i=c(t),s=i(t);return{c(){e=p("div"),n=p("div"),l=b(),o=p("div"),s.c(),r=b(),v(n,"class","s-legend-item-label__item__icon s-legend-item-label__item__icon--default "+t[3].color.colorClass),y(n,"color",t[3].color.customColor),v(o,"class","s-legend-item-label__item__label s-font-note--tabularnums"),v(e,"class","s-legend-item-label__item")},m(t,c){d(t,e,c),a(e,n),a(e,l),a(e,o),s.m(o,null),a(e,r)},p(t,e){i===(i=c(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(o,null)))},d(t){t&&f(e),s.d()}}}function ie(e){let n,l,o,r,c,i,s=e[2]&&function(t){let e,n=t[2],l=[];for(let e=0;e{"legend"in t&&n(0,l=t.legend)},[l,o,r]}class ae extends tt{constructor(t){super(),Z(this,t,se,ie,r,{legend:0},ne)}}function ue(t){u(t,"svelte-1w4hlr2","ul.svelte-1w4hlr2{margin:0;list-style:none;display:flex;align-items:center;justify-content:end}.counters.svelte-1w4hlr2{margin:0 5px}button.svelte-1w4hlr2{background:transparent;border:1px solid #ccc;padding:5px 10px;margin-left:3px;float:left;cursor:pointer}button[disabled].svelte-1w4hlr2{opacity:0.5}")}function de(t){let e,n,l,o=t[0]+1+"";return{c(){e=h(o),n=h(" / "),l=h(t[3])},m(t,o){d(t,e,o),d(t,n,o),d(t,l,o)},p(t,n){1&n&&o!==(o=t[0]+1+"")&&w(e,o),8&n&&w(l,t[3])},d(t){t&&f(e),t&&f(n),t&&f(l)}}}function fe(e){let n;return{c(){n=h("0 / 0")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function me(e){let n,o,r,c,i,s,u,m,g,$,q,y,C,_,k,I,z,S,N,E,M,T,V,j,D=e[2].first+"",B=e[2].previous+"",P=e[2].next+"",A=e[2].last+"";function H(t,e){return 0===t[1]?fe:de}let L=H(e),O=L(e);return{c(){n=p("ul"),o=p("li"),r=p("button"),c=h(D),s=b(),u=p("li"),m=p("button"),g=h(B),q=b(),y=p("li"),O.c(),C=b(),_=p("li"),k=p("button"),I=h(P),S=b(),N=p("li"),E=p("button"),M=h(A),r.disabled=i=0===e[0],v(r,"class","svelte-1w4hlr2"),m.disabled=$=0===e[0],v(m,"class","svelte-1w4hlr2"),v(y,"class","counters s-font-note svelte-1w4hlr2"),k.disabled=z=e[0]>=e[3]-1,v(k,"class","svelte-1w4hlr2"),E.disabled=T=e[0]>=e[3]-1,v(E,"class","svelte-1w4hlr2"),v(n,"class","svelte-1w4hlr2")},m(t,l){d(t,n,l),a(n,o),a(o,r),a(r,c),a(n,s),a(n,u),a(u,m),a(m,g),a(n,q),a(n,y),O.m(y,null),a(n,C),a(n,_),a(_,k),a(k,I),a(n,S),a(n,N),a(N,E),a(E,M),V||(j=[x(r,"click",e[6]),x(m,"click",e[7]),x(k,"click",e[8]),x(E,"click",e[9])],V=!0)},p(t,[e]){4&e&&D!==(D=t[2].first+"")&&w(c,D),1&e&&i!==(i=0===t[0])&&(r.disabled=i),4&e&&B!==(B=t[2].previous+"")&&w(g,B),1&e&&$!==($=0===t[0])&&(m.disabled=$),L===(L=H(t))&&O?O.p(t,e):(O.d(1),O=L(t),O&&(O.c(),O.m(y,null))),4&e&&P!==(P=t[2].next+"")&&w(I,P),9&e&&z!==(z=t[0]>=t[3]-1)&&(k.disabled=z),4&e&&A!==(A=t[2].last+"")&&w(M,A),9&e&&T!==(T=t[0]>=t[3]-1)&&(E.disabled=T)},i:t,o:t,d(t){t&&f(n),O.d(),V=!1,l(j)}}}function pe(t,e,n){let l;const o=S("state");let{count:r}=e,{pageSize:c}=e,{page:i}=e,{labels:s={first:"<<",last:">>",next:">",previous:"<"}}=e;function a(t){o.setPage(t),n(0,i=t)}return t.$$set=t=>{"count"in t&&n(1,r=t.count),"pageSize"in t&&n(5,c=t.pageSize),"page"in t&&n(0,i=t.page),"labels"in t&&n(2,s=t.labels)},t.$$.update=()=>{34&t.$$.dirty&&n(3,l=Math.ceil(r/c))},[i,r,s,l,a,c,()=>a(0),()=>a(i-1),()=>a(i+1),()=>a(l-1)]}class ge extends tt{constructor(t){super(),Z(this,t,pe,me,r,{count:1,pageSize:5,page:0,labels:2},ue)}}function he(e){let n,o,r,c;return{c(){n=p("div"),o=p("input"),v(o,"class","q-table__search__input s-input-field"),v(o,"type","search"),v(o,"placeholder","Bitte Suche eingeben"),v(o,"maxlength","20"),v(o,"autocapitalize","off"),v(o,"autocomplete","off"),v(o,"spellcheck","false"),v(o,"aria-label","Suchen"),v(n,"class","q-table__search")},m(t,l){d(t,n,l),a(n,o),q(o,e[0]),r||(c=[x(o,"keyup",e[1]),x(o,"input",e[4])],r=!0)},p(t,[e]){1&e&&q(o,t[0])},i:t,o:t,d(t){t&&f(n),r=!1,l(c)}}}function be(t,e,n){const l=S("state");let{index:o=-1}=e,{text:r=""}=e,{filter:c=((t,e)=>{e=e.toLowerCase();for(let n=0;n-1)return!0}return!1})}=e;return t.$$set=t=>{"index"in t&&n(2,o=t.index),"text"in t&&n(0,r=t.text),"filter"in t&&n(3,c=t.filter)},[r,function(){const t=l.getState(),e={filter:c,index:o,text:r,page:t.page,pageIndex:t.pageIndex,pageSize:t.pageSize,rows:t.filteredRows};if(e.text.length<=0)l.setFilteredRows(t.rows);else{const n=t.rows.filter((t=>e.filter(t,e.text)));l.setFilteredRows(n)}l.setPage(0)},o,c,function(){r=this.value,n(0,r)}]}class $e extends tt{constructor(t){super(),Z(this,t,be,he,r,{index:2,text:0,filter:3})}}function xe(t){u(t,"svelte-vfhnmu",".qtable-cell{text-align:left}.qtable-cell-numeric{text-align:right !important;padding:10px 12px !important;white-space:nowrap}")}function ve(t){let e,n,l;const o=t[5].default,r=function(t,e,n,l){if(t){const o=i(t,e,n,l);return t[0](o)}}(o,t,t[4],null);return{c(){e=p("td"),r&&r.c(),v(e,"class",t[1]),v(e,"style",n=t[0].join(";"))},m(t,n){d(t,e,n),r&&r.m(e,null),l=!0},p(t,[c]){r&&r.p&&(!l||16&c)&&function(t,e,n,l,o,r){if(o){const c=i(e,n,l,r);t.p(c,o)}}(r,o,t,t[4],l?function(t,e,n,l){if(t[2]&&l){const o=t[2](l(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let l=0;l32){const e=[],n=t.ctx.length/32;for(let t=0;t{"type"in t&&n(2,r=t.type),"classes"in t&&n(3,c=t.classes),"styles"in t&&n(0,i=t.styles),"$$scope"in t&&n(4,o=t.$$scope)},[i,s,r,c,o,l]}class qe extends tt{constructor(t){super(),Z(this,t,we,ve,r,{type:2,classes:3,styles:0},xe)}}function ye(t){u(t,"svelte-svqxzq",".qtable-footnote{font-size:10px;left:0;position:relative;top:-10px}")}function Ce(e){let n,l,o;return{c(){n=p("span"),l=h(e[0]),v(n,"class",o="qtable-footnote "+e[1])},m(t,e){d(t,n,e),a(n,l)},p(t,[e]){1&e&&w(l,t[0]),2&e&&o!==(o="qtable-footnote "+t[1])&&v(n,"class",o)},i:t,o:t,d(t){t&&f(n)}}}function _e(t,e,n){let{text:l=""}=e,{cls:o=""}=e;return t.$$set=t=>{"text"in t&&n(0,l=t.text),"cls"in t&&n(1,o=t.cls)},[l,o]}class ke extends tt{constructor(t){super(),Z(this,t,_e,Ce,r,{text:0,cls:1},ye)}}function Ie(t){u(t,"svelte-1tzhy04",".qtable-cell-label{display:inline-block;position:relative}")}function ze(t){let e,n;return e=new ke({props:{text:t[2]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};4&n&&(l.text=t[2]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Se(t){let e,n,l,o,r,c=""!==t[2]&&ze(t);return{c(){e=p("span"),n=h(t[1]),l=b(),c&&c.c(),v(e,"class",o="qtable-cell-label "+t[0])},m(t,o){d(t,e,o),a(e,n),a(e,l),c&&c.m(e,null),r=!0},p(t,[l]){(!r||2&l)&&w(n,t[1]),""!==t[2]?c?(c.p(t,l),4&l&&G(c,1)):(c=ze(t),c.c(),G(c,1),c.m(e,null)):c&&(R(),K(c,1,1,(()=>{c=null})),F()),(!r||1&l&&o!==(o="qtable-cell-label "+t[0]))&&v(e,"class",o)},i(t){r||(G(c),r=!0)},o(t){K(c),r=!1},d(t){t&&f(e),c&&c.d()}}}function Ne(t,e,n){let{cls:l=""}=e,{label:o=""}=e,{footnote:r=""}=e;return t.$$set=t=>{"cls"in t&&n(0,l=t.cls),"label"in t&&n(1,o=t.label),"footnote"in t&&n(2,r=t.footnote)},[l,o,r]}class Ee extends tt{constructor(t){super(),Z(this,t,Ne,Se,r,{cls:0,label:1,footnote:2},Ie)}}function Me(t){let e,n;return e=new Ee({props:{label:t[0].label,footnote:t[0].footnote}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.label=t[0].label),1&n&&(l.footnote=t[0].footnote),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Te(t){let e,n;return e=new qe({props:{type:t[0].type,classes:t[0].classes,$$slots:{default:[Me]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,[n]){const l={};1&n&&(l.type=t[0].type),1&n&&(l.classes=t[0].classes),3&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Ve(t,e,n){let{cell:l}=e;return t.$$set=t=>{"cell"in t&&n(0,l=t.cell)},[l]}class je extends tt{constructor(t){super(),Z(this,t,Ve,Te,r,{cell:0})}}function De(t){let e,n;return e=new Ee({props:{cls:t[1].colors[t[2]].textColor,label:t[0].label,footnote:t[0].footnote}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};6&n&&(l.cls=t[1].colors[t[2]].textColor),1&n&&(l.label=t[0].label),1&n&&(l.footnote=t[0].footnote),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Be(t){let e,n;return e=new qe({props:{type:t[0].type,classes:t[3].classes,styles:t[3].styles,$$slots:{default:[De]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,[n]){const l={};1&n&&(l.type=t[0].type),8&n&&(l.classes=t[3].classes),8&n&&(l.styles=t[3].styles),39&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Pe(t,e,n){let l,{cell:o}=e,{colorColumn:r}=e,{rowIndex:c}=e;return t.$$set=t=>{"cell"in t&&n(0,o=t.cell),"colorColumn"in t&&n(1,r=t.colorColumn),"rowIndex"in t&&n(2,c=t.rowIndex)},t.$$.update=()=>{4&t.$$.dirty&&n(3,l=function(t){let e=[],n=[];const l=r.colors[t];return l?""!==l.customColor?n.push(`background-color: ${r.colors[t].customColor}`):""!==l.colorClass&&(e.push(r.colors[t].colorClass),n.push("background-color: currentColor")):console.log("Failed to get cell color for row",t),{classes:e,styles:n}}(c))},[o,r,c,l]}class Ae extends tt{constructor(t){super(),Z(this,t,Pe,Be,r,{cell:0,colorColumn:1,rowIndex:2})}}var He;function Le(t){u(t,"svelte-1elvk92",'.qtable-minibar{background-color:currentColor;display:inline-block;height:17px;left:0;position:absolute;top:50%;transform:translate(0, -50%)}.qtable-minibar::before{content:"";border-left:0.5px solid #393855;height:19px;left:0;position:absolute;top:-1px;width:1px}.qtable-minibar-negative{left:unset;right:0}.qtable-minibar-negative::before{left:unset;right:0}')}function Oe(e){let n,l;return{c(){n=p("div"),v(n,"class",l="qtable-minibar qtable-minibar-"+e[0]+" "+e[2]),y(n,"background",e[1]),y(n,"width",`${e[3]}%`)},m(t,e){d(t,n,e)},p(t,[e]){5&e&&l!==(l="qtable-minibar qtable-minibar-"+t[0]+" "+t[2])&&v(n,"class",l),2&e&&y(n,"background",t[1]),8&e&&y(n,"width",`${t[3]}%`)},i:t,o:t,d(t){t&&f(n)}}}function Re(t,e,n){let{type:l=He.POSITIVE}=e,{clrCode:o=""}=e,{clrClass:r=""}=e,{width:c=0}=e;return t.$$set=t=>{"type"in t&&n(0,l=t.type),"clrCode"in t&&n(1,o=t.clrCode),"clrClass"in t&&n(2,r=t.clrClass),"width"in t&&n(3,c=t.width)},[l,o,r,c]}!function(t){t.POSITIVE="positive",t.NEGATIVE="negative",t.MIXED="mixed",t.EMPTY="empty"}(He||(He={}));class Fe extends tt{constructor(t){super(),Z(this,t,Re,Oe,r,{type:0,clrCode:1,clrClass:2,width:3},Le)}}function Ge(t){u(t,"svelte-1yn4v7z",".qtable-minibar-cell{align-items:center;background-color:hsla(0deg, 0%, 78%, 0.15);display:flex;min-width:90px}.qtable-minibar-holder{position:relative;width:50%}.qtable-minibar-cell-empty{justify-content:center}.qtable-minibar-cell-positive{justify-content:end}.qtable-minibar-cell-positive .qtable-minibar-holder{margin-left:10px}.qtable-minibar-cell-negative{justify-content:start}.qtable-minibar-cell-negative .qtable-minibar-holder{margin-right:5px}.qtable-desktop .qtable-minibar-cell{min-width:140px}")}function Ke(e){let n,l,o;return l=new Fe({props:{type:He.NEGATIVE,clrCode:e[4],clrClass:e[5],width:e[6]}}),{c(){n=p("div"),W(l.$$.fragment),v(n,"class","qtable-minibar-holder")},m(t,e){d(t,n,e),X(l,n,null),o=!0},p:t,i(t){o||(G(l.$$.fragment,t),o=!0)},o(t){K(l.$$.fragment,t),o=!1},d(t){t&&f(n),J(l)}}}function Qe(e){let n,l,o;return l=new Fe({props:{type:He.POSITIVE,clrCode:e[2],clrClass:e[3],width:e[6]}}),{c(){n=p("div"),W(l.$$.fragment),v(n,"class","qtable-minibar-holder")},m(t,e){d(t,n,e),X(l,n,null),o=!0},p:t,i(t){o||(G(l.$$.fragment,t),o=!0)},o(t){K(l.$$.fragment,t),o=!1},d(t){t&&f(n),J(l)}}}function Ye(t){let e,n,l,o,r,c=t[0].value<0&&Ke(t);n=new Ee({props:{label:t[0].label,footnote:t[0].footnote}});let i=t[0].value>0&&Qe(t);return{c(){c&&c.c(),e=b(),W(n.$$.fragment),l=b(),i&&i.c(),o=$()},m(t,s){c&&c.m(t,s),d(t,e,s),X(n,t,s),d(t,l,s),i&&i.m(t,s),d(t,o,s),r=!0},p(t,l){t[0].value<0?c?(c.p(t,l),1&l&&G(c,1)):(c=Ke(t),c.c(),G(c,1),c.m(e.parentNode,e)):c&&(R(),K(c,1,1,(()=>{c=null})),F());const r={};1&l&&(r.label=t[0].label),1&l&&(r.footnote=t[0].footnote),n.$set(r),t[0].value>0?i?(i.p(t,l),1&l&&G(i,1)):(i=Qe(t),i.c(),G(i,1),i.m(o.parentNode,o)):i&&(R(),K(i,1,1,(()=>{i=null})),F())},i(t){r||(G(c),G(n.$$.fragment,t),G(i),r=!0)},o(t){K(c),K(n.$$.fragment,t),K(i),r=!1},d(t){c&&c.d(t),t&&f(e),J(n,t),t&&f(l),i&&i.d(t),t&&f(o)}}}function We(t){let e,n;return e=new qe({props:{type:t[0].type,classes:t[1],$$slots:{default:[Ye]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,[n]){const l={};1&n&&(l.type=t[0].type),1025&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Xe(t,e,n){let{minibar:l}=e,{cell:o}=e,{rowIndex:r}=e;const c=["qtable-minibar-cell"].concat(o.classes);let i=He.EMPTY;o.value<0?i=He.NEGATIVE:o.value>0&&(i=He.POSITIVE),c.push(`qtable-minibar-cell-${i}`);const s=l.barColor.positive.colorCode,a=l.barColor.positive.className,u=l.barColor.negative.colorCode,d=l.barColor.negative.className,f=l.values[r];return t.$$set=t=>{"minibar"in t&&n(7,l=t.minibar),"cell"in t&&n(0,o=t.cell),"rowIndex"in t&&n(8,r=t.rowIndex)},[o,c,s,a,u,d,f,l,r]}class Je extends tt{constructor(t){super(),Z(this,t,Xe,We,r,{minibar:7,cell:0,rowIndex:8},Ge)}}function Ue(t){u(t,"svelte-wlhiv6",".qtable-th-arrow-ascending.svelte-wlhiv6{transform:rotate(180deg)}")}function Ze(e){let n,l,o,r,c,i;return{c(){n=g("svg"),l=g("title"),o=h("Path"),r=g("g"),c=g("g"),i=g("polygon"),v(i,"id","Path"),v(i,"points","1135.824 657.121 1135.823 667.256 1139.063 664.028 1140.121 665.091 1135.074 670.121 1130 665.064 1131.059 664 1134.323 667.256 1134.324 657.121"),v(c,"id","Grenze-und-Epizentrum"),v(c,"transform","translate(-1130.000000, -657.000000)"),v(c,"fill","#000000"),v(r,"id","Page-1"),v(r,"stroke","none"),v(r,"stroke-width","1"),v(r,"fill","none"),v(r,"fill-rule","evenodd"),v(n,"width","11px"),v(n,"height","14px"),v(n,"viewBox","0 0 11 14"),v(n,"version","1.1"),v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),v(n,"class","svelte-wlhiv6"),C(n,"qtable-th-arrow-ascending",e[0])},m(t,e){d(t,n,e),a(n,l),a(l,o),a(n,r),a(r,c),a(c,i)},p(t,[e]){1&e&&C(n,"qtable-th-arrow-ascending",t[0])},i:t,o:t,d(t){t&&f(n)}}}function tn(t,e,n){let{sortAscending:l=!0}=e;return t.$$set=t=>{"sortAscending"in t&&n(0,l=t.sortAscending)},[l]}class en extends tt{constructor(t){super(),Z(this,t,tn,Ze,r,{sortAscending:0},Ue)}}const nn=[];const ln=function(e,n=t){let l;const o=new Set;function c(t){if(r(e,t)&&(e=t,l)){const t=!nn.length;for(const t of o)t[1](),nn.push(t,e);if(t){for(let t=0;t{o.delete(s),0===o.size&&(l(),l=null)}}}}({colIndex:null,sortDirection:"asc"});function on(t){u(t,"svelte-dx4yiw",".qtable-th{text-align:left}.q-table-minibar-header{text-align:center}.qtable-sort-icon-holder{opacity:0.25}.qtable-sort-active{opacity:1}")}function rn(t,e,n){const l=t.slice();return l[6]=e[n],l[8]=n,l}function cn(t){let e,n,l=t[0],o=[];for(let e=0;eK(o[t],1,1,(()=>{o[t]=null}));return{c(){e=p("thead");for(let t=0;t{i=null})),F()),(!c||1&l&&r!==(r="qtable-th qtable-th-"+t[6].type+" "+t[6].classes.join(" ")+" "+t[2](t[8]).classes))&&v(e,"class",r)},i(t){c||(G(n.$$.fragment,t),G(i),c=!0)},o(t){K(n.$$.fragment,t),K(i),c=!1},d(t){t&&f(e),J(n),i&&i.d()}}}function un(t){let e,n,l=t[0].length>0&&cn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),d(t,e,o),n=!0},p(t,[n]){t[0].length>0?l?(l.p(t,n),1&n&&G(l,1)):(l=cn(t),l.c(),G(l,1),l.m(e.parentNode,e)):l&&(R(),K(l,1,1,(()=>{l=null})),F())},i(t){n||(G(l),n=!0)},o(t){K(l),n=!1},d(t){l&&l.d(t),t&&f(e)}}}function dn(t,e,n){let l;c(t,ln,(t=>n(1,l=t)));let{minibar:o=null}=e,{tableHead:r=[]}=e;const i=t=>{l.colIndex===t?ln.set({colIndex:t,sortDirection:"asc"===l.sortDirection?"desc":"asc"}):ln.set({colIndex:t,sortDirection:"asc"})};return t.$$set=t=>{"minibar"in t&&n(4,o=t.minibar),"tableHead"in t&&n(0,r=t.tableHead)},[r,l,function(t){let e="";if(null!==o){o.settings.selectedColumn===t&&(e="q-table-minibar-header")}return{colspan:0,classes:e}},i,o,t=>i(t)]}class fn extends tt{constructor(t){super(),Z(this,t,dn,un,r,{minibar:4,tableHead:0},on)}}function mn(t){u(t,"svelte-1sf02r5",".qtable-holder .qtable{border-collapse:collapse;border:none;margin:0;padding:0;width:100%;table-layout:auto;empty-cells:show}.qtable-holder .qtable th,.qtable-holder .qtable td{padding:10px 4px;vertical-align:top;border:none !important;font-size:unset;line-height:unset;font-weight:unset}.qtable-holder .qtable thead{background:unset}.qtable-holder .qtable tbody tr,.qtable-holder .qtable thead{border-width:0 0 1px 0;border-style:solid;border-color:#e9e9ee}.qtable-holder .qtable .qtable-tr-frozen{background-color:#f4f4f4;border-bottom:2px solid #000 !important;border-top:2px solid #000 !important}")}function pn(t,e,n){const l=t.slice();return l[6]=e[n],l}function gn(t,e,n){const l=t.slice();return l[9]=e[n],l[11]=n,l}function hn(t){let e,n;return e=new je({props:{cell:t[9]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.cell=t[9]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function bn(t){let e,n;return e=new Ae({props:{cell:t[9],colorColumn:t[3],rowIndex:t[6].key}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.cell=t[9]),1&n&&(l.rowIndex=t[6].key),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function $n(t){let e,n;return e=new Je({props:{cell:t[9],minibar:t[2],rowIndex:t[6].key}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.cell=t[9]),1&n&&(l.rowIndex=t[6].key),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function xn(t){let e,n,l,o;const r=[$n,bn,hn],c=[];return e=function(t,e){return t[2]?.columnIndex===t[11]?0:t[3]?.selectedColumn===t[11]?1:2}(t),n=c[e]=r[e](t),{c(){n.c(),l=$()},m(t,n){c[e].m(t,n),d(t,l,n),o=!0},p(t,e){n.p(t,e)},i(t){o||(G(n),o=!0)},o(t){K(n),o=!1},d(t){c[e].d(t),t&&f(l)}}}function vn(t,e){let n,l,o,r=e[6].cells,c=[];for(let t=0;tK(c[t],1,1,(()=>{c[t]=null}));return{key:t,first:null,c(){n=p("tr");for(let t=0;tt[6].key;for(let t=0;t{"componentConfiguration"in t&&n(5,l=t.componentConfiguration),"rows"in t&&n(0,o=t.rows)},[o,r,c,i,s,l]}class yn extends tt{constructor(t){super(),Z(this,t,qn,wn,r,{componentConfiguration:5,rows:0},mn)}}function Cn(t){u(t,"svelte-f5q3l2",".qtable-card-layout{margin-top:16px}.qtable-card-layout .qtable-card-row.svelte-f5q3l2{border-bottom:1px solid #e9e9ee}.qtable-card-layout .qtable-card-row.svelte-f5q3l2:first-child{padding-top:0}.qtable-card-layout .qtable-row-frozen.svelte-f5q3l2{background-color:#f4f4f4;border-bottom:2px solid #000;border-top:2px solid #000}.qtable-card-layout .qtable-card-cell.svelte-f5q3l2{display:flex;justify-content:space-between;padding:4px 0;position:relative}.qtable-card-layout .qtable-card-cell-title.svelte-f5q3l2{font-weight:500;max-width:80%;position:relative;text-align:left}.qtable-card-layout .qtable-card-cell-value.svelte-f5q3l2{text-align:right}")}function _n(t,e,n){const l=t.slice();return l[3]=e[n],l}function kn(t,e,n){const l=t.slice();return l[6]=e[n],l[8]=n,l}function In(t){let e,n;return e=new ke({props:{text:t[6].footnote}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.text=t[6].footnote),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function zn(e){let n,l,o,r,c,i,u,m,g,$,x=e[1][e[8]].value+"",q=e[6].value+"",y=""!==e[1][e[8]].footnote&&function(e){let n,l;return n=new ke({props:{text:e[1][e[8]].footnote}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}(e),C=""!==e[6].footnote&&In(e);return{c(){n=p("div"),l=p("span"),o=h(x),r=b(),y&&y.c(),c=b(),i=p("span"),u=h(q),m=b(),C&&C.c(),v(l,"class","qtable-card-cell-title svelte-f5q3l2"),v(i,"class","qtable-card-cell-value svelte-f5q3l2"),v(n,"class",g=s(`qtable-card-cell ${e[6].classes.join(" ")} `)+" svelte-f5q3l2")},m(t,e){d(t,n,e),a(n,l),a(l,o),a(l,r),y&&y.m(l,null),a(n,c),a(n,i),a(i,u),a(i,m),C&&C.m(i,null),$=!0},p(t,e){""!==t[1][t[8]].footnote&&y.p(t,e),(!$||1&e)&&q!==(q=t[6].value+"")&&w(u,q),""!==t[6].footnote?C?(C.p(t,e),1&e&&G(C,1)):(C=In(t),C.c(),G(C,1),C.m(i,null)):C&&(R(),K(C,1,1,(()=>{C=null})),F()),(!$||1&e&&g!==(g=s(`qtable-card-cell ${t[6].classes.join(" ")} `)+" svelte-f5q3l2"))&&v(n,"class",g)},i(t){$||(G(y),G(C),$=!0)},o(t){K(y),K(C),$=!1},d(t){t&&f(n),y&&y.d(),C&&C.d()}}}function Sn(t,e){let n,l,o,r=e[3].cells,c=[];for(let t=0;tK(c[t],1,1,(()=>{c[t]=null}));return{key:t,first:null,c(){n=p("div");for(let t=0;tt[3].key;for(let e=0;e{"componentConfiguration"in t&&n(2,l=t.componentConfiguration),"rows"in t&&n(0,o=t.rows)},[o,r,l]}class Mn extends tt{constructor(t){super(),Z(this,t,En,Nn,r,{componentConfiguration:2,rows:0},Cn)}}function Tn(t){let e,n;return e=new yn({props:{componentConfiguration:t[0],rows:t[4]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.componentConfiguration=t[0]),16&n&&(l.rows=t[4]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Vn(t){let e,n;return e=new Mn({props:{componentConfiguration:t[0],rows:t[4]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.componentConfiguration=t[0]),16&n&&(l.rows=t[4]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function jn(e){let n,l;return n=new ee({props:{legend:e[9].legend}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}function Dn(e){let n,l;return n=new ae({props:{legend:e[9].legend}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}function Bn(e){let n,l,o,r,c,i,s,u,m,g,h,x,w,q,C,_=e[14](),k=e[13](),I=e[15](),z=_&&function(e){let n;return{c(){n=p("h3"),n.textContent=`${e[6].title}`,v(n,"class","s-q-item__title")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}(e),S=e[6].subtitle&&""!==e[6].subtitle&&function(e){let n;return{c(){n=p("div"),n.textContent=`${e[6].subtitle}`,v(n,"class","s-q-item__subtitle")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}(e),N=k&&function(t){let e,n;return e=new $e({}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}(),E=I&&function(t){let e,n;return e=new ge({props:{page:t[3],pageSize:t[1],count:t[2].length}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.page=t[3]),2&n&&(l.pageSize=t[1]),4&n&&(l.count=t[2].length),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}(e),M=!0!==e[12].hideLegend&&null!==e[9]&&"number"==typeof e[9].selectedColumn&&e[9].selectedColumn!==e[12].minibar.selectedColumn&&!e[7]&&function(e){let n,l;return n=new Ht({props:{colorColumn:e[9],noInteraction:e[10]}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}(e);const T=[Vn,Tn],V=[];u=function(t,e){return t[7]?0:1}(e),m=V[u]=T[u](e);let j=e[8]&&e[8].length>0&&function(e){let n,l;return n=new ht({props:{footnotes:e[8]}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}(e),D=e[9]&&"numerical"===e[9].legend.type&&function(t){let e,n,l,o;const r=[Dn,jn],c=[];return e=function(t,e){return t[10]?0:1}(t),n=c[e]=r[e](t),{c(){n.c(),l=$()},m(t,n){c[e].m(t,n),d(t,l,n),o=!0},p(t,e){n.p(t,e)},i(t){o||(G(n),o=!0)},o(t){K(n),o=!1},d(t){c[e].d(t),t&&f(l)}}}(e);return w=new dt({props:{notes:e[6].notes,sources:e[6].sources,acronym:e[6].acronym}}),{c(){n=p("div"),z&&z.c(),l=b(),S&&S.c(),o=b(),r=p("div"),N&&N.c(),c=b(),E&&E.c(),i=b(),M&&M.c(),s=b(),m.c(),g=b(),j&&j.c(),h=b(),D&&D.c(),x=b(),W(w.$$.fragment),y(r,"overflow-x","auto"),v(n,"id",e[11]),v(n,"class",q="s-q-item qtable-holder "+e[5])},m(t,e){d(t,n,e),z&&z.m(n,null),a(n,l),S&&S.m(n,null),a(n,o),a(n,r),N&&N.m(r,null),a(r,c),E&&E.m(r,null),a(r,i),M&&M.m(r,null),a(r,s),V[u].m(r,null),a(n,g),j&&j.m(n,null),a(n,h),D&&D.m(n,null),a(n,x),X(w,n,null),C=!0},p(t,[e]){_&&z.p(t,e),t[6].subtitle&&""!==t[6].subtitle&&S.p(t,e),I&&E.p(t,e),!0===t[12].hideLegend||null===t[9]||"number"!=typeof t[9].selectedColumn||t[9].selectedColumn===t[12].minibar.selectedColumn||t[7]||M.p(t,e),m.p(t,e),t[8]&&t[8].length>0&&j.p(t,e),t[9]&&"numerical"===t[9].legend.type&&D.p(t,e),(!C||32&e&&q!==(q="s-q-item qtable-holder "+t[5]))&&v(n,"class",q)},i(t){C||(G(N),G(E),G(M),G(m),G(j),G(D),G(w.$$.fragment,t),C=!0)},o(t){K(N),K(E),K(M),K(m),K(j),K(D),K(w.$$.fragment,t),C=!1},d(t){t&&f(n),z&&z.d(),S&&S.d(),N&&N.d(),E&&E.d(),M&&M.d(),V[u].d(),j&&j.d(),D&&D.d(),J(w)}}}function Pn(t,e,n){let{componentConfiguration:l}=e;const{config:o,initWithCardLayout:r,rows:c,footnotes:i,colorColumn:s,displayOptions:a,noInteraction:u,id:d,width:f,frozenRowKey:m,tableHead:p}=l;let{pageSize:g}=l;const h=o.options;let b,$,x,v=0,w=0;var q,y;"number"==typeof m&&(null==c?void 0:c.length)&&c[m]&&(x=c.splice(m,1)[0],x.frozen=!0,g-=1),ln.subscribe((t=>{if("number"==typeof t.colIndex){const e=t.colIndex;$.sort(((n,l)=>((t,e,n,l,o)=>{const r=t.cells[n].value,c=e.cells[n].value;if("text"===l||"country-flag-emoji"===l)return"asc"===o?r.localeCompare(c,"de"):c.localeCompare(r,"de");const i=t.cells[n].value,s=e.cells[n].value;return"asc"===o?i-s:s-i})(n,l,e,p[e].type,t.sortDirection))),n(2,$)}})),q="state",y={getState:()=>({page:w,pageIndex:v,pageSize:g,rows:c,filteredRows:$}),setPage:t=>{n(3,w=t),n(16,v=t*g)},setPageSize:t=>n(1,g=t),setFilteredRows:t=>n(2,$=t)},z().$$.context.set(q,y);let C="";return f&&f>420&&(C="qtable-desktop"),t.$$set=t=>{"componentConfiguration"in t&&n(0,l=t.componentConfiguration)},t.$$.update=()=>{if(196614&t.$$.dirty){const t=$.slice(v,v+g);x&&t.unshift(x),n(4,b=t)}},n(2,$=c),[l,g,$,w,b,C,o,r,i,s,u,d,h,function(){return!0!==u&&!0===h.showTableSearch},function(){return"boolean"!=typeof a.hideTitle||!a.hideTitle},function(){return!1===u&&"number"==typeof g&&$.length>g},v,x]}return class extends tt{constructor(t){super(),Z(this,t,Pn,Bn,r,{componentConfiguration:0})}}}(); +this.window=this.window||{},this.window.q_table=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function l(t){t.forEach(e)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,l){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const l=e.subscribe(...n);return l.unsubscribe?()=>l.unsubscribe():l}(n,l))}function i(t,e,n,l){return t[1]&&l?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](l(e))):n.ctx}function s(t){return null==t?"":t}function a(t,e){t.appendChild(e)}function u(t,e,n){const l=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;if(e&&e.host)return e;return t.ownerDocument}(t);if(!l.getElementById(e)){const t=p("style");t.id=e,t.textContent=n,function(t,e){a(t.head||t,e),e.sheet}(l,t)}}function d(t,e,n){t.insertBefore(e,n||null)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}function m(t,e){for(let n=0;nt.removeEventListener(e,n,l)}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function w(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function q(t,e){t.value=null==e?"":e}function y(t,e,n,l){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,l?"important":"")}function C(t,e,n){t.classList[n?"add":"remove"](e)}class _{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.is_svg?this.e=g(e.nodeName):this.e=p(e.nodeName),this.t=e,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e{L.delete(t),l&&(n&&t.d(1),l())})),t.o(e)}else l&&l()}function Q(t,e){K(t,1,1,(()=>{e.delete(t.key)}))}function Y(t,e,n,l,o,r,c,i,s,a,u,d){let f=t.length,m=r.length,p=f;const g={};for(;p--;)g[t[p].key]=p;const h=[],b=new Map,$=new Map;for(p=m;p--;){const t=d(o,r,p),i=n(t);let s=c.get(i);s?l&&s.p(t,e):(s=a(i,t),s.c()),b.set(i,h[p]=s),i in g&&$.set(i,Math.abs(p-g[i]))}const x=new Set,v=new Set;function w(t){G(t,1),t.m(i,u),c.set(t.key,t),u=t.first,m--}for(;f&&m;){const e=h[m-1],n=t[f-1],l=e.key,o=n.key;e===n?(u=e.first,f--,m--):b.has(o)?!c.has(l)||x.has(l)?w(e):v.has(o)?f--:$.get(l)>$.get(o)?(v.add(l),w(e)):(x.add(o),f--):(s(n,c),f--)}for(;f--;){const e=t[f];b.has(e.key)||s(e,c)}for(;m;)w(h[m-1]);return h}function W(t){t&&t.c()}function X(t,n,r,c){const{fragment:i,after_update:s}=t.$$;i&&i.m(n,r),c||D((()=>{const n=t.$$.on_mount.map(e).filter(o);t.$$.on_destroy?t.$$.on_destroy.push(...n):l(n),t.$$.on_mount=[]})),s.forEach(D)}function J(t,e){const n=t.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function U(t,e){-1===t.$$.dirty[0]&&(N.push(t),j||(j=!0,V.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=l.length?l[0]:n;return m.ctx&&i(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),p&&U(e,t)),n})):[],m.update(),p=!0,l(m.before_update),m.fragment=!!c&&c(m.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);m.fragment&&m.fragment.l(t),t.forEach(f)}else m.fragment&&m.fragment.c();o.intro&&G(e.$$.fragment),X(e,o.target,o.anchor,o.customElement),A()}I(d)}class tt{$destroy(){J(this,1),this.$destroy=t}$on(e,n){if(!o(n))return t;const l=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return l.push(n),()=>{const t=l.indexOf(n);-1!==t&&l.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function et(t,e,n){const l=t.slice();return l[4]=e[n],l[6]=n,l}function nt(t){let e;return{c(){e=p("div"),v(e,"class","s-q-item__footer__notes")},m(n,l){d(n,e,l),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},d(t){t&&f(e)}}}function lt(t){let e,n,l;function o(t,e){return t[1].length>1?rt:ot}let r=o(t),c=r(t),i=t[1],s=[];for(let e=0;e0&&nt(e),i=e[1].length>0&<(e),s=e[2]&&st(e);return{c(){n=p("div"),c&&c.c(),l=b(),o=p("div"),i&&i.c(),r=b(),s&&s.c(),v(o,"class","s-q-item__footer__details"),v(n,"class","s-q-item__footer")},m(t,e){d(t,n,e),c&&c.m(n,null),a(n,l),a(n,o),i&&i.m(o,null),a(o,r),s&&s.m(o,null)},p(t,[e]){t[0].length>0?c?c.p(t,e):(c=nt(t),c.c(),c.m(n,l)):c&&(c.d(1),c=null),t[1].length>0?i?i.p(t,e):(i=lt(t),i.c(),i.m(o,r)):i&&(i.d(1),i=null),t[2]?s?s.p(t,e):(s=st(t),s.c(),s.m(o,null)):s&&(s.d(1),s=null)},i:t,o:t,d(t){t&&f(n),c&&c.d(),i&&i.d(),s&&s.d()}}}function ut(t,e,n){let{notes:l=""}=e,{sources:o=[]}=e,{acronym:r=""}=e;return t.$$set=t=>{"notes"in t&&n(0,l=t.notes),"sources"in t&&n(1,o=t.sources),"acronym"in t&&n(2,r=t.acronym)},[l,o,r,function(t,e){let n="";return n=t.link.url&&!0===t.link.isValid?`${t.text}`:t.text,e!==o.length-1&&""!==o[e+1].text&&(n+=","),n}]}class dt extends tt{constructor(t){super(),Z(this,t,ut,at,r,{notes:0,sources:1,acronym:2})}}function ft(t,e,n){const l=t.slice();return l[1]=e[n],l}function mt(t){let e,n,l,o,r,c,i,s=t[1].index+"",u=t[1].value+"";return{c(){e=p("div"),n=p("span"),l=h(s),o=b(),r=p("span"),c=h(u),i=b(),v(n,"class","q-table-footnote-index s-font-note--tabularnums"),v(r,"class","q-table-footnote-text"),v(e,"class","q-table-footnote-footer s-font-note-s")},m(t,s){d(t,e,s),a(e,n),a(n,l),a(e,o),a(e,r),a(r,c),a(e,i)},p(t,e){1&e&&s!==(s=t[1].index+"")&&w(l,s),1&e&&u!==(u=t[1].value+"")&&w(c,u)},d(t){t&&f(e)}}}function pt(e){let n,l=e[0],o=[];for(let t=0;t{"footnotes"in t&&n(0,l=t.footnotes)},[l]}class ht extends tt{constructor(t){super(),Z(this,t,gt,pt,r,{footnotes:0})}}function bt(t,e,n){const l=t.slice();return l[9]=e[n],l}function $t(e){let n;return{c(){n=g("rect"),v(n,"class","q-table-colorColumn-legend-bucket "+e[9].color.colorClass),v(n,"width",kt(e[9],e[6],e[5])+"%"),v(n,"height","16"),v(n,"x",_t(e[9],e[6],e[5])+"%"),v(n,"y","12")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function xt(e){let n;return{c(){n=g("rect"),v(n,"class","q-table-colorColumn-legend-bucket"),y(n,"color",e[9].color.customColor),v(n,"width",kt(e[9],e[6],e[5])+"%"),v(n,"height","16"),v(n,"x",_t(e[9],e[6],e[5])+"%"),v(n,"y","12")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function vt(t){let e;let n=function(t,e){return t[9].color.customColor?xt:$t}(t),l=n(t);return{c(){l.c(),e=$()},m(t,n){l.m(t,n),d(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&f(e)}}}function wt(t){let e,n,l=t[3]&&function(t){let e,n,l,o;function r(t,e){return t[1][0].color.customColor?yt:qt}let c=r(t),i=c(t);return{c(){e=p("div"),n=g("svg"),i.c(),l=b(),o=p("div"),o.textContent=`= ${t[1][0].from}`,v(n,"width","11"),v(n,"height","11"),v(n,"class","s-legend-item-label__item__icon q-table-colorColumn-legend-info-icon"),C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0]),v(o,"class","s-legend-item-label__item__label s-font-note--tabularnums"),v(e,"class","s-legend-item-label__item q-table-colorColumn-legend-info--single-bucket")},m(t,r){d(t,e,r),a(e,n),i.m(n,null),a(e,l),a(e,o)},p(t,e){i.p(t,e),1&e&&C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),1&e&&C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0])},d(t){t&&f(e),i.d()}}}(t),o=t[2]&&function(t){let e,n,l,o,r;return{c(){e=p("div"),n=g("svg"),l=g("rect"),o=b(),r=p("div"),r.textContent="Keine Daten",v(l,"width","11"),v(l,"height","11"),v(l,"class","s-color-gray-4"),v(l,"fill","white"),v(l,"stroke","currentColor"),v(l,"stroke-width","2"),v(n,"width","11"),v(n,"height","11"),v(n,"class","s-legend-item-label__item__icon q-table-colorColumn-legend-info-icon"),C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0]),v(r,"class","s-legend-item-label__item__label"),v(e,"class","s-legend-item-label__item q-table-colorColumn-legend-info--no-data")},m(t,c){d(t,e,c),a(e,n),a(n,l),a(e,o),a(e,r)},p(t,e){1&e&&C(n,"q-table-colorColumn-legend-info-icon--interactive",!t[0]),1&e&&C(n,"q-table-colorColumn-legend-info-icon--no-interactive",t[0])},d(t){t&&f(e)}}}(t);return{c(){e=p("div"),l&&l.c(),n=b(),o&&o.c(),v(e,"class","s-legend-icon-label")},m(t,r){d(t,e,r),l&&l.m(e,null),a(e,n),o&&o.m(e,null)},p(t,e){t[3]&&l.p(t,e),t[2]&&o.p(t,e)},d(t){t&&f(e),l&&l.d(),o&&o.d()}}}function qt(e){let n;return{c(){n=g("rect"),v(n,"width","11"),v(n,"height","11"),v(n,"class","q-table-colorColumn-legend-bucket "+e[1][0].color.colorClass)},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function yt(e){let n;return{c(){n=g("rect"),v(n,"width","11"),v(n,"height","11"),v(n,"class","q-table-colorColumn-legend-bucket"),y(n,"color",e[1][0].color.customColor)},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function Ct(e){let n,l,o,r,c,i,s,u,$,x,w,q,y,C,_=e[1],k=[];for(let t=0;t<_.length;t+=1)k[t]=vt(bt(e,_,t));let I=null!==e[4]&&function(e){let n,l,o;return{c(){n=g("g"),l=g("circle"),o=g("rect"),v(l,"cx",e[4].position+"%"),v(l,"cy","20"),v(l,"r","4"),v(l,"stroke","white"),v(l,"stroke-width","1"),v(l,"fill","none"),v(o,"class","s-color-gray-9"),v(o,"fill","currentColor"),v(o,"width","0.5px"),v(o,"height","16"),v(o,"x",e[4].position+"%"),v(o,"y","20")},m(t,e){d(t,n,e),a(n,l),a(n,o)},p:t,d(t){t&&f(n)}}}(e),z=null!==e[4]&&function(e){let n,l,o,r,c=e[4].label+"",i=e[4].value+"";return{c(){n=p("div"),l=h(c),o=h(": "),r=h(i),v(n,"class","q-table-colorColumn-legend-marker s-font-note s-font-note--tabularnums"),v(n,"style",e[4].descriptionAlignment)},m(t,e){d(t,n,e),a(n,l),a(n,o),a(n,r)},p:t,d(t){t&&f(n)}}}(e),S=(e[3]||e[2])&&wt(e);return{c(){n=p("div"),l=p("div"),o=p("div"),r=p("span"),r.textContent=`${e[6]}`,c=b(),i=p("span"),i.textContent=`${e[5]}`,s=b(),u=p("div"),$=g("svg"),x=g("g");for(let t=0;t{"colorColumn"in t&&n(7,l=t.colorColumn),"noInteraction"in t&&n(0,o=t.noInteraction)},[o,c,i,s,a,u,d,l]}class zt extends tt{constructor(t){super(),Z(this,t,It,Ct,r,{colorColumn:7,noInteraction:0})}}function St(t,e,n){const l=t.slice();return l[3]=e[n],l}function Nt(e){let n,l,o,r,c,i,s=e[3].label+"";return{c(){n=p("div"),l=p("div"),o=b(),r=p("div"),c=h(s),i=b(),v(l,"class","s-legend-item-label__item__icon s-legend-item-label__item__icon--default"),v(r,"class","s-legend-item-label__item__label"),v(n,"class","s-legend-item-label__item "+e[3].color.colorClass)},m(t,e){d(t,n,e),a(n,l),a(n,o),a(n,r),a(r,c),a(n,i)},p:t,d(t){t&&f(n)}}}function Et(e){let n,l,o,r,c,i,s=e[3].label+"";return{c(){n=p("div"),l=p("div"),o=b(),r=p("div"),c=h(s),i=b(),v(l,"class","s-legend-item-label__item__icon s-legend-item-label__item__icon--default"),v(r,"class","s-legend-item-label__item__label"),v(n,"class","s-legend-item-label__item"),y(n,"color",e[3].color.customColor)},m(t,e){d(t,n,e),a(n,l),a(n,o),a(n,r),a(r,c),a(n,i)},p:t,d(t){t&&f(n)}}}function Mt(t){let e;let n=function(t,e){return t[3].color.customColor?Et:Nt}(t),l=n(t);return{c(){l.c(),e=$()},m(t,n){l.m(t,n),d(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&f(e)}}}function Tt(e){let n,l,o,r=e[1].categories,c=[];for(let t=0;t{"colorColumn"in t&&n(2,l=t.colorColumn),"noInteraction"in t&&n(0,o=t.noInteraction)},[o,r,l]}class jt extends tt{constructor(t){super(),Z(this,t,Vt,Tt,r,{colorColumn:2,noInteraction:0})}}function Dt(t){let e,n;return e=new jt({props:{colorColumn:t[0],noInteraction:t[1]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.colorColumn=t[0]),2&n&&(l.noInteraction=t[1]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Bt(t){let e,n;return e=new zt({props:{colorColumn:t[0],noInteraction:t[1]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.colorColumn=t[0]),2&n&&(l.noInteraction=t[1]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Pt(t){let e,n,l,o;const r=[Bt,Dt],c=[];function i(t,e){return"numerical"===t[0].colorColumnType?0:1}return n=i(t),l=c[n]=r[n](t),{c(){e=p("div"),l.c(),v(e,"class","q-table-legend-container q-table-legend-container--desktop")},m(t,l){d(t,e,l),c[n].m(e,null),o=!0},p(t,[o]){let s=n;n=i(t),n===s?c[n].p(t,o):(R(),K(c[s],1,1,(()=>{c[s]=null})),F(),l=c[n],l?l.p(t,o):(l=c[n]=r[n](t),l.c()),G(l,1),l.m(e,null))},i(t){o||(G(l),o=!0)},o(t){K(l),o=!1},d(t){t&&f(e),c[n].d()}}}function At(t,e,n){let{colorColumn:l}=e,{noInteraction:o}=e;return t.$$set=t=>{"colorColumn"in t&&n(0,l=t.colorColumn),"noInteraction"in t&&n(1,o=t.noInteraction)},[l,o]}class Ht extends tt{constructor(t){super(),Z(this,t,At,Pt,r,{colorColumn:0,noInteraction:1})}}function Lt(e){let n;return{c(){n=p("div"),n.innerHTML='',v(n,"class","q-table-methods-link-icon-plus")},m(t,e){d(t,n,e)},p:t,i:t,o:t,d(t){t&&f(n)}}}class Ot extends tt{constructor(t){super(),Z(this,t,null,Lt,r,{})}}function Rt(e){let n;return{c(){n=p("div"),n.innerHTML='',v(n,"class","q-table-methods-link-icon-close")},m(t,e){d(t,n,e)},p:t,i:t,o:t,d(t){t&&f(n)}}}class Ft extends tt{constructor(t){super(),Z(this,t,null,Rt,r,{})}}function Gt(t){u(t,"svelte-lqfo6x",".qtable-methodiek-btn{align-items:center;cursor:pointer;display:flex;flex-direction:row;gap:4px;margin-top:8px;text-decoration:underline}.qtable-methodiek-btn svg{height:10px;width:10px}.qtable-methodiek-cntr{margin-top:8px;box-shadow:1px 1px 4px rgba(0, 0, 0, 0.1);border:1px solid #f0f0f2;padding:8px}.qtable-methodiek-cntr table{table-layout:auto}.qtable-methodiek-cntr table tr{text-align:right}.qtable-methodiek-cntr table tr td{width:auto}.qtable-methodiek-legend-circle{position:relative;box-sizing:content-box;width:7px;height:7px;margin:2px 8px 2px 2px;border:1px solid;border-radius:50%;background-color:currentColor}.qtable-methodiek-descr{margin-top:4px}.qtable-methodiek-clr-explainer{color:#05032d;display:block;margin-top:4px}")}function Kt(t,e,n){const l=t.slice();return l[7]=e[n],l[9]=n,l}function Qt(e){let n,l,o,r,c,i;return l=new Ot({}),{c(){n=p("div"),W(l.$$.fragment),o=h("\n Daten und Methodik"),v(n,"class","qtable-methodiek-btn s-font-note-s")},m(t,s){d(t,n,s),X(l,n,null),a(n,o),r=!0,c||(i=x(n,"click",e[5]),c=!0)},p:t,i(t){r||(G(l.$$.fragment,t),r=!0)},o(t){K(l.$$.fragment,t),r=!1},d(t){t&&f(n),J(l),c=!1,i()}}}function Yt(e){let n,l,o,r,c,i;return l=new Ft({}),{c(){n=p("div"),W(l.$$.fragment),o=h("\n Daten und Methodik"),v(n,"class","qtable-methodiek-btn s-font-note-s")},m(t,s){d(t,n,s),X(l,n,null),a(n,o),r=!0,c||(i=x(n,"click",e[6]),c=!0)},p:t,i(t){r||(G(l.$$.fragment,t),r=!0)},o(t){K(l.$$.fragment,t),r=!1},d(t){t&&f(n),J(l),c=!1,i()}}}function Wt(t){let e,n,l,o,r,c,i,s=t[2].article.title+"",u=t[3]&&function(t){let e,n=t[3],l=[];for(let e=0;e{r=null})),F()):r?(r.p(t,o),2&o&&G(r,1)):(r=Qt(t),r.c(),G(r,1),r.m(e.parentNode,e)),t[1]?c?(c.p(t,o),2&o&&G(c,1)):(c=Yt(t),c.c(),G(c,1),c.m(n.parentNode,n)):c&&(R(),K(c,1,1,(()=>{c=null})),F()),t[1]?i?i.p(t,o):(i=Wt(t),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(t){o||(G(r),G(c),o=!0)},o(t){K(r),K(c),o=!1},d(t){r&&r.d(t),t&&f(e),c&&c.d(t),t&&f(n),i&&i.d(t),t&&f(l)}}}function te(t,e,n){let{legend:l}=e;const o=l.methodBox,r=o.formattedBuckets;let c=!1;function i(t){n(1,c=t)}return t.$$set=t=>{"legend"in t&&n(0,l=t.legend)},[l,c,o,r,i,()=>i(!0),()=>i(!1)]}class ee extends tt{constructor(t){super(),Z(this,t,te,Zt,r,{legend:0},Gt)}}function ne(t){u(t,"svelte-1cr35o3",".qtable-methodiek-static{margin-top:12px;padding-right:20px}.qtable-methodiek-static .s-legend-item-label__item__icon{margin-right:8px}.qtable-methodiek-descr{margin-top:4px}")}function le(t,e,n){const l=t.slice();return l[3]=e[n],l[5]=n,l}function oe(e){let n,l,o,r=e[3].from+"",c=e[3].to+"";return{c(){n=h(r),l=h("–"),o=h(c)},m(t,e){d(t,n,e),d(t,l,e),d(t,o,e)},p:t,d(t){t&&f(n),t&&f(l),t&&f(o)}}}function re(e){let n,l,o=e[3].from+"";return{c(){n=h(o),l=h(" (nur ein Datenpunkt)")},m(t,e){d(t,n,e),d(t,l,e)},p:t,d(t){t&&f(n),t&&f(l)}}}function ce(t){let e,n,l,o,r;function c(t,e){return 0===t[5]&&t[0].hasSingleValueBucket?re:oe}let i=c(t),s=i(t);return{c(){e=p("div"),n=p("div"),l=b(),o=p("div"),s.c(),r=b(),v(n,"class","s-legend-item-label__item__icon s-legend-item-label__item__icon--default "+t[3].color.colorClass),y(n,"color",t[3].color.customColor),v(o,"class","s-legend-item-label__item__label s-font-note--tabularnums"),v(e,"class","s-legend-item-label__item")},m(t,c){d(t,e,c),a(e,n),a(e,l),a(e,o),s.m(o,null),a(e,r)},p(t,e){i===(i=c(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(o,null)))},d(t){t&&f(e),s.d()}}}function ie(e){let n,l,o,r,c,i,s=e[2]&&function(t){let e,n=t[2],l=[];for(let e=0;e{"legend"in t&&n(0,l=t.legend)},[l,o,r]}class ae extends tt{constructor(t){super(),Z(this,t,se,ie,r,{legend:0},ne)}}function ue(t){u(t,"svelte-1w4hlr2","ul.svelte-1w4hlr2{margin:0;list-style:none;display:flex;align-items:center;justify-content:end}.counters.svelte-1w4hlr2{margin:0 5px}button.svelte-1w4hlr2{background:transparent;border:1px solid #ccc;padding:5px 10px;margin-left:3px;float:left;cursor:pointer}button[disabled].svelte-1w4hlr2{opacity:0.5}")}function de(t){let e,n,l,o=t[0]+1+"";return{c(){e=h(o),n=h(" / "),l=h(t[3])},m(t,o){d(t,e,o),d(t,n,o),d(t,l,o)},p(t,n){1&n&&o!==(o=t[0]+1+"")&&w(e,o),8&n&&w(l,t[3])},d(t){t&&f(e),t&&f(n),t&&f(l)}}}function fe(e){let n;return{c(){n=h("0 / 0")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}function me(e){let n,o,r,c,i,s,u,m,g,$,q,y,C,_,k,I,z,S,N,E,M,T,V,j,D=e[2].first+"",B=e[2].previous+"",P=e[2].next+"",A=e[2].last+"";function H(t,e){return 0===t[1]?fe:de}let L=H(e),O=L(e);return{c(){n=p("ul"),o=p("li"),r=p("button"),c=h(D),s=b(),u=p("li"),m=p("button"),g=h(B),q=b(),y=p("li"),O.c(),C=b(),_=p("li"),k=p("button"),I=h(P),S=b(),N=p("li"),E=p("button"),M=h(A),r.disabled=i=0===e[0],v(r,"class","svelte-1w4hlr2"),m.disabled=$=0===e[0],v(m,"class","svelte-1w4hlr2"),v(y,"class","counters s-font-note svelte-1w4hlr2"),k.disabled=z=e[0]>=e[3]-1,v(k,"class","svelte-1w4hlr2"),E.disabled=T=e[0]>=e[3]-1,v(E,"class","svelte-1w4hlr2"),v(n,"class","svelte-1w4hlr2")},m(t,l){d(t,n,l),a(n,o),a(o,r),a(r,c),a(n,s),a(n,u),a(u,m),a(m,g),a(n,q),a(n,y),O.m(y,null),a(n,C),a(n,_),a(_,k),a(k,I),a(n,S),a(n,N),a(N,E),a(E,M),V||(j=[x(r,"click",e[6]),x(m,"click",e[7]),x(k,"click",e[8]),x(E,"click",e[9])],V=!0)},p(t,[e]){4&e&&D!==(D=t[2].first+"")&&w(c,D),1&e&&i!==(i=0===t[0])&&(r.disabled=i),4&e&&B!==(B=t[2].previous+"")&&w(g,B),1&e&&$!==($=0===t[0])&&(m.disabled=$),L===(L=H(t))&&O?O.p(t,e):(O.d(1),O=L(t),O&&(O.c(),O.m(y,null))),4&e&&P!==(P=t[2].next+"")&&w(I,P),9&e&&z!==(z=t[0]>=t[3]-1)&&(k.disabled=z),4&e&&A!==(A=t[2].last+"")&&w(M,A),9&e&&T!==(T=t[0]>=t[3]-1)&&(E.disabled=T)},i:t,o:t,d(t){t&&f(n),O.d(),V=!1,l(j)}}}function pe(t,e,n){let l;const o=S("state");let{count:r}=e,{pageSize:c}=e,{page:i}=e,{labels:s={first:"<<",last:">>",next:">",previous:"<"}}=e;function a(t){o.setPage(t),n(0,i=t)}return t.$$set=t=>{"count"in t&&n(1,r=t.count),"pageSize"in t&&n(5,c=t.pageSize),"page"in t&&n(0,i=t.page),"labels"in t&&n(2,s=t.labels)},t.$$.update=()=>{34&t.$$.dirty&&n(3,l=Math.ceil(r/c))},[i,r,s,l,a,c,()=>a(0),()=>a(i-1),()=>a(i+1),()=>a(l-1)]}class ge extends tt{constructor(t){super(),Z(this,t,pe,me,r,{count:1,pageSize:5,page:0,labels:2},ue)}}function he(e){let n,o,r,c;return{c(){n=p("div"),o=p("input"),v(o,"class","q-table__search__input s-input-field"),v(o,"type","search"),v(o,"placeholder","Bitte Suche eingeben"),v(o,"maxlength","20"),v(o,"autocapitalize","off"),v(o,"autocomplete","off"),v(o,"spellcheck","false"),v(o,"aria-label","Suchen"),v(n,"class","q-table__search")},m(t,l){d(t,n,l),a(n,o),q(o,e[0]),r||(c=[x(o,"keyup",e[1]),x(o,"input",e[4])],r=!0)},p(t,[e]){1&e&&q(o,t[0])},i:t,o:t,d(t){t&&f(n),r=!1,l(c)}}}function be(t,e,n){const l=S("state");let{index:o=-1}=e,{text:r=""}=e,{filter:c=((t,e)=>{e=e.toLowerCase();for(let n=0;n-1)return!0}return!1})}=e;return t.$$set=t=>{"index"in t&&n(2,o=t.index),"text"in t&&n(0,r=t.text),"filter"in t&&n(3,c=t.filter)},[r,function(){const t=l.getState(),e={filter:c,index:o,text:r,page:t.page,pageIndex:t.pageIndex,pageSize:t.pageSize,rows:t.filteredRows};if(e.text.length<=0)l.setFilteredRows(t.rows);else{const n=t.rows.filter((t=>e.filter(t,e.text)));l.setFilteredRows(n)}l.setPage(0)},o,c,function(){r=this.value,n(0,r)}]}class $e extends tt{constructor(t){super(),Z(this,t,be,he,r,{index:2,text:0,filter:3})}}function xe(t){u(t,"svelte-vfhnmu",".qtable-cell{text-align:left}.qtable-cell-numeric{text-align:right !important;padding:10px 12px !important;white-space:nowrap}")}function ve(t){let e,n,l;const o=t[5].default,r=function(t,e,n,l){if(t){const o=i(t,e,n,l);return t[0](o)}}(o,t,t[4],null);return{c(){e=p("td"),r&&r.c(),v(e,"class",t[1]),v(e,"style",n=t[0].join(";"))},m(t,n){d(t,e,n),r&&r.m(e,null),l=!0},p(t,[c]){r&&r.p&&(!l||16&c)&&function(t,e,n,l,o,r){if(o){const c=i(e,n,l,r);t.p(c,o)}}(r,o,t,t[4],l?function(t,e,n,l){if(t[2]&&l){const o=t[2](l(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let l=0;l32){const e=[],n=t.ctx.length/32;for(let t=0;t{"type"in t&&n(2,r=t.type),"classes"in t&&n(3,c=t.classes),"styles"in t&&n(0,i=t.styles),"$$scope"in t&&n(4,o=t.$$scope)},[i,s,r,c,o,l]}class qe extends tt{constructor(t){super(),Z(this,t,we,ve,r,{type:2,classes:3,styles:0},xe)}}function ye(t){u(t,"svelte-svqxzq",".qtable-footnote{font-size:10px;left:0;position:relative;top:-10px}")}function Ce(e){let n,l,o;return{c(){n=p("span"),l=h(e[0]),v(n,"class",o="qtable-footnote "+e[1])},m(t,e){d(t,n,e),a(n,l)},p(t,[e]){1&e&&w(l,t[0]),2&e&&o!==(o="qtable-footnote "+t[1])&&v(n,"class",o)},i:t,o:t,d(t){t&&f(n)}}}function _e(t,e,n){let{text:l=""}=e,{cls:o=""}=e;return t.$$set=t=>{"text"in t&&n(0,l=t.text),"cls"in t&&n(1,o=t.cls)},[l,o]}class ke extends tt{constructor(t){super(),Z(this,t,_e,Ce,r,{text:0,cls:1},ye)}}function Ie(t){u(t,"svelte-1tzhy04",".qtable-cell-label{display:inline-block;position:relative}")}function ze(t){let e,n;return e=new ke({props:{text:t[2]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};4&n&&(l.text=t[2]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Se(t){let e,n,l,o,r,c=""!==t[2]&&ze(t);return{c(){e=p("span"),n=h(t[1]),l=b(),c&&c.c(),v(e,"class",o="qtable-cell-label "+t[0])},m(t,o){d(t,e,o),a(e,n),a(e,l),c&&c.m(e,null),r=!0},p(t,[l]){(!r||2&l)&&w(n,t[1]),""!==t[2]?c?(c.p(t,l),4&l&&G(c,1)):(c=ze(t),c.c(),G(c,1),c.m(e,null)):c&&(R(),K(c,1,1,(()=>{c=null})),F()),(!r||1&l&&o!==(o="qtable-cell-label "+t[0]))&&v(e,"class",o)},i(t){r||(G(c),r=!0)},o(t){K(c),r=!1},d(t){t&&f(e),c&&c.d()}}}function Ne(t,e,n){let{cls:l=""}=e,{label:o=""}=e,{footnote:r=""}=e;return t.$$set=t=>{"cls"in t&&n(0,l=t.cls),"label"in t&&n(1,o=t.label),"footnote"in t&&n(2,r=t.footnote)},[l,o,r]}class Ee extends tt{constructor(t){super(),Z(this,t,Ne,Se,r,{cls:0,label:1,footnote:2},Ie)}}function Me(t){let e,n;return e=new Ee({props:{label:t[0].label,footnote:t[0].footnote}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.label=t[0].label),1&n&&(l.footnote=t[0].footnote),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Te(t){let e,n;return e=new qe({props:{type:t[0].type,classes:t[0].classes,$$slots:{default:[Me]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,[n]){const l={};1&n&&(l.type=t[0].type),1&n&&(l.classes=t[0].classes),3&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Ve(t,e,n){let{cell:l}=e;return t.$$set=t=>{"cell"in t&&n(0,l=t.cell)},[l]}class je extends tt{constructor(t){super(),Z(this,t,Ve,Te,r,{cell:0})}}function De(t){let e,n;return e=new Ee({props:{cls:t[1].colors[t[2]].textColor,label:t[0].label,footnote:t[0].footnote}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};6&n&&(l.cls=t[1].colors[t[2]].textColor),1&n&&(l.label=t[0].label),1&n&&(l.footnote=t[0].footnote),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Be(t){let e,n;return e=new qe({props:{type:t[0].type,classes:t[3].classes,styles:t[3].styles,$$slots:{default:[De]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,[n]){const l={};1&n&&(l.type=t[0].type),8&n&&(l.classes=t[3].classes),8&n&&(l.styles=t[3].styles),39&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Pe(t,e,n){let l,{cell:o}=e,{colorColumn:r}=e,{rowIndex:c}=e;return t.$$set=t=>{"cell"in t&&n(0,o=t.cell),"colorColumn"in t&&n(1,r=t.colorColumn),"rowIndex"in t&&n(2,c=t.rowIndex)},t.$$.update=()=>{4&t.$$.dirty&&n(3,l=function(t){let e=[],n=[];const l=r.colors[t];return l?""!==l.customColor?n.push(`background-color: ${r.colors[t].customColor}`):""!==l.colorClass&&(e.push(r.colors[t].colorClass),n.push("background-color: currentColor")):console.log("Failed to get cell color for row",t),{classes:e,styles:n}}(c))},[o,r,c,l]}class Ae extends tt{constructor(t){super(),Z(this,t,Pe,Be,r,{cell:0,colorColumn:1,rowIndex:2})}}var He;function Le(t){u(t,"svelte-1elvk92",'.qtable-minibar{background-color:currentColor;display:inline-block;height:17px;left:0;position:absolute;top:50%;transform:translate(0, -50%)}.qtable-minibar::before{content:"";border-left:0.5px solid #393855;height:19px;left:0;position:absolute;top:-1px;width:1px}.qtable-minibar-negative{left:unset;right:0}.qtable-minibar-negative::before{left:unset;right:0}')}function Oe(e){let n,l;return{c(){n=p("div"),v(n,"class",l="qtable-minibar qtable-minibar-"+e[0]+" "+e[2]),y(n,"background",e[1]),y(n,"width",`${e[3]}%`)},m(t,e){d(t,n,e)},p(t,[e]){5&e&&l!==(l="qtable-minibar qtable-minibar-"+t[0]+" "+t[2])&&v(n,"class",l),2&e&&y(n,"background",t[1]),8&e&&y(n,"width",`${t[3]}%`)},i:t,o:t,d(t){t&&f(n)}}}function Re(t,e,n){let{type:l=He.POSITIVE}=e,{clrCode:o=""}=e,{clrClass:r=""}=e,{width:c=0}=e;return t.$$set=t=>{"type"in t&&n(0,l=t.type),"clrCode"in t&&n(1,o=t.clrCode),"clrClass"in t&&n(2,r=t.clrClass),"width"in t&&n(3,c=t.width)},[l,o,r,c]}!function(t){t.POSITIVE="positive",t.NEGATIVE="negative",t.MIXED="mixed",t.EMPTY="empty"}(He||(He={}));class Fe extends tt{constructor(t){super(),Z(this,t,Re,Oe,r,{type:0,clrCode:1,clrClass:2,width:3},Le)}}function Ge(t){u(t,"svelte-1yn4v7z",".qtable-minibar-cell{align-items:center;background-color:hsla(0deg, 0%, 78%, 0.15);display:flex;min-width:90px}.qtable-minibar-holder{position:relative;width:50%}.qtable-minibar-cell-empty{justify-content:center}.qtable-minibar-cell-positive{justify-content:end}.qtable-minibar-cell-positive .qtable-minibar-holder{margin-left:10px}.qtable-minibar-cell-negative{justify-content:start}.qtable-minibar-cell-negative .qtable-minibar-holder{margin-right:5px}.qtable-desktop .qtable-minibar-cell{min-width:140px}")}function Ke(e){let n,l,o;return l=new Fe({props:{type:He.NEGATIVE,clrCode:e[4],clrClass:e[5],width:e[6]}}),{c(){n=p("div"),W(l.$$.fragment),v(n,"class","qtable-minibar-holder")},m(t,e){d(t,n,e),X(l,n,null),o=!0},p:t,i(t){o||(G(l.$$.fragment,t),o=!0)},o(t){K(l.$$.fragment,t),o=!1},d(t){t&&f(n),J(l)}}}function Qe(e){let n,l,o;return l=new Fe({props:{type:He.POSITIVE,clrCode:e[2],clrClass:e[3],width:e[6]}}),{c(){n=p("div"),W(l.$$.fragment),v(n,"class","qtable-minibar-holder")},m(t,e){d(t,n,e),X(l,n,null),o=!0},p:t,i(t){o||(G(l.$$.fragment,t),o=!0)},o(t){K(l.$$.fragment,t),o=!1},d(t){t&&f(n),J(l)}}}function Ye(t){let e,n,l,o,r,c=t[0].value<0&&Ke(t);n=new Ee({props:{label:t[0].label,footnote:t[0].footnote}});let i=t[0].value>0&&Qe(t);return{c(){c&&c.c(),e=b(),W(n.$$.fragment),l=b(),i&&i.c(),o=$()},m(t,s){c&&c.m(t,s),d(t,e,s),X(n,t,s),d(t,l,s),i&&i.m(t,s),d(t,o,s),r=!0},p(t,l){t[0].value<0?c?(c.p(t,l),1&l&&G(c,1)):(c=Ke(t),c.c(),G(c,1),c.m(e.parentNode,e)):c&&(R(),K(c,1,1,(()=>{c=null})),F());const r={};1&l&&(r.label=t[0].label),1&l&&(r.footnote=t[0].footnote),n.$set(r),t[0].value>0?i?(i.p(t,l),1&l&&G(i,1)):(i=Qe(t),i.c(),G(i,1),i.m(o.parentNode,o)):i&&(R(),K(i,1,1,(()=>{i=null})),F())},i(t){r||(G(c),G(n.$$.fragment,t),G(i),r=!0)},o(t){K(c),K(n.$$.fragment,t),K(i),r=!1},d(t){c&&c.d(t),t&&f(e),J(n,t),t&&f(l),i&&i.d(t),t&&f(o)}}}function We(t){let e,n;return e=new qe({props:{type:t[0].type,classes:t[1],$$slots:{default:[Ye]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,[n]){const l={};1&n&&(l.type=t[0].type),1025&n&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Xe(t,e,n){let{minibar:l}=e,{cell:o}=e,{rowIndex:r}=e;const c=["qtable-minibar-cell"].concat(o.classes);let i=He.EMPTY;o.value<0?i=He.NEGATIVE:o.value>0&&(i=He.POSITIVE),c.push(`qtable-minibar-cell-${i}`);const s=l.barColor.positive.colorCode,a=l.barColor.positive.className,u=l.barColor.negative.colorCode,d=l.barColor.negative.className,f=l.values[r];return t.$$set=t=>{"minibar"in t&&n(7,l=t.minibar),"cell"in t&&n(0,o=t.cell),"rowIndex"in t&&n(8,r=t.rowIndex)},[o,c,s,a,u,d,f,l,r]}class Je extends tt{constructor(t){super(),Z(this,t,Xe,We,r,{minibar:7,cell:0,rowIndex:8},Ge)}}function Ue(t){u(t,"svelte-wlhiv6",".qtable-th-arrow-ascending.svelte-wlhiv6{transform:rotate(180deg)}")}function Ze(e){let n,l,o,r,c,i;return{c(){n=g("svg"),l=g("title"),o=h("Path"),r=g("g"),c=g("g"),i=g("polygon"),v(i,"id","Path"),v(i,"points","1135.824 657.121 1135.823 667.256 1139.063 664.028 1140.121 665.091 1135.074 670.121 1130 665.064 1131.059 664 1134.323 667.256 1134.324 657.121"),v(c,"id","Grenze-und-Epizentrum"),v(c,"transform","translate(-1130.000000, -657.000000)"),v(c,"fill","#000000"),v(r,"id","Page-1"),v(r,"stroke","none"),v(r,"stroke-width","1"),v(r,"fill","none"),v(r,"fill-rule","evenodd"),v(n,"width","11px"),v(n,"height","14px"),v(n,"viewBox","0 0 11 14"),v(n,"version","1.1"),v(n,"xmlns","http://www.w3.org/2000/svg"),v(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),v(n,"class","svelte-wlhiv6"),C(n,"qtable-th-arrow-ascending",e[0])},m(t,e){d(t,n,e),a(n,l),a(l,o),a(n,r),a(r,c),a(c,i)},p(t,[e]){1&e&&C(n,"qtable-th-arrow-ascending",t[0])},i:t,o:t,d(t){t&&f(n)}}}function tn(t,e,n){let{sortAscending:l=!0}=e;return t.$$set=t=>{"sortAscending"in t&&n(0,l=t.sortAscending)},[l]}class en extends tt{constructor(t){super(),Z(this,t,tn,Ze,r,{sortAscending:0},Ue)}}const nn=[];const ln=function(e,n=t){let l;const o=new Set;function c(t){if(r(e,t)&&(e=t,l)){const t=!nn.length;for(const t of o)t[1](),nn.push(t,e);if(t){for(let t=0;t{o.delete(s),0===o.size&&(l(),l=null)}}}}({colIndex:null,sortDirection:"asc"});function on(t){u(t,"svelte-19asm30",".qtable-th{text-align:left}.q-table-minibar-header{text-align:center}.qtable-sort-icon-holder{opacity:0.25}.qtable-sort-active{opacity:1}.qtable-th-numeric{text-align:right}")}function rn(t,e,n){const l=t.slice();return l[6]=e[n],l[8]=n,l}function cn(t){let e,n,l=t[0],o=[];for(let e=0;eK(o[t],1,1,(()=>{o[t]=null}));return{c(){e=p("thead");for(let t=0;t{i=null})),F()),(!c||1&l&&r!==(r="qtable-th qtable-th-"+t[6].type+" "+t[6].classes.join(" ")+" "+t[2](t[8]).classes))&&v(e,"class",r)},i(t){c||(G(n.$$.fragment,t),G(i),c=!0)},o(t){K(n.$$.fragment,t),K(i),c=!1},d(t){t&&f(e),J(n),i&&i.d()}}}function un(t){let e,n,l=t[0].length>0&&cn(t);return{c(){l&&l.c(),e=$()},m(t,o){l&&l.m(t,o),d(t,e,o),n=!0},p(t,[n]){t[0].length>0?l?(l.p(t,n),1&n&&G(l,1)):(l=cn(t),l.c(),G(l,1),l.m(e.parentNode,e)):l&&(R(),K(l,1,1,(()=>{l=null})),F())},i(t){n||(G(l),n=!0)},o(t){K(l),n=!1},d(t){l&&l.d(t),t&&f(e)}}}function dn(t,e,n){let l;c(t,ln,(t=>n(1,l=t)));let{minibar:o=null}=e,{tableHead:r=[]}=e;const i=t=>{l.colIndex===t?ln.set({colIndex:t,sortDirection:"asc"===l.sortDirection?"desc":"asc"}):ln.set({colIndex:t,sortDirection:"asc"})};return t.$$set=t=>{"minibar"in t&&n(4,o=t.minibar),"tableHead"in t&&n(0,r=t.tableHead)},[r,l,function(t){let e="";if(null!==o){o.settings.selectedColumn===t&&(e="q-table-minibar-header")}return{colspan:0,classes:e}},i,o,t=>i(t)]}class fn extends tt{constructor(t){super(),Z(this,t,dn,un,r,{minibar:4,tableHead:0},on)}}function mn(t){u(t,"svelte-1sf02r5",".qtable-holder .qtable{border-collapse:collapse;border:none;margin:0;padding:0;width:100%;table-layout:auto;empty-cells:show}.qtable-holder .qtable th,.qtable-holder .qtable td{padding:10px 4px;vertical-align:top;border:none !important;font-size:unset;line-height:unset;font-weight:unset}.qtable-holder .qtable thead{background:unset}.qtable-holder .qtable tbody tr,.qtable-holder .qtable thead{border-width:0 0 1px 0;border-style:solid;border-color:#e9e9ee}.qtable-holder .qtable .qtable-tr-frozen{background-color:#f4f4f4;border-bottom:2px solid #000 !important;border-top:2px solid #000 !important}")}function pn(t,e,n){const l=t.slice();return l[6]=e[n],l}function gn(t,e,n){const l=t.slice();return l[9]=e[n],l[11]=n,l}function hn(t){let e,n;return e=new je({props:{cell:t[9]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.cell=t[9]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function bn(t){let e,n;return e=new Ae({props:{cell:t[9],colorColumn:t[3],rowIndex:t[6].key}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.cell=t[9]),1&n&&(l.rowIndex=t[6].key),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function $n(t){let e,n;return e=new Je({props:{cell:t[9],minibar:t[2],rowIndex:t[6].key}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.cell=t[9]),1&n&&(l.rowIndex=t[6].key),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function xn(t){let e,n,l,o;const r=[$n,bn,hn],c=[];return e=function(t,e){return t[2]?.columnIndex===t[11]?0:t[3]?.selectedColumn===t[11]?1:2}(t),n=c[e]=r[e](t),{c(){n.c(),l=$()},m(t,n){c[e].m(t,n),d(t,l,n),o=!0},p(t,e){n.p(t,e)},i(t){o||(G(n),o=!0)},o(t){K(n),o=!1},d(t){c[e].d(t),t&&f(l)}}}function vn(t,e){let n,l,o,r=e[6].cells,c=[];for(let t=0;tK(c[t],1,1,(()=>{c[t]=null}));return{key:t,first:null,c(){n=p("tr");for(let t=0;tt[6].key;for(let t=0;t{"componentConfiguration"in t&&n(5,l=t.componentConfiguration),"rows"in t&&n(0,o=t.rows)},[o,r,c,i,s,l]}class yn extends tt{constructor(t){super(),Z(this,t,qn,wn,r,{componentConfiguration:5,rows:0},mn)}}function Cn(t){u(t,"svelte-f5q3l2",".qtable-card-layout{margin-top:16px}.qtable-card-layout .qtable-card-row.svelte-f5q3l2{border-bottom:1px solid #e9e9ee}.qtable-card-layout .qtable-card-row.svelte-f5q3l2:first-child{padding-top:0}.qtable-card-layout .qtable-row-frozen.svelte-f5q3l2{background-color:#f4f4f4;border-bottom:2px solid #000;border-top:2px solid #000}.qtable-card-layout .qtable-card-cell.svelte-f5q3l2{display:flex;justify-content:space-between;padding:4px 0;position:relative}.qtable-card-layout .qtable-card-cell-title.svelte-f5q3l2{font-weight:500;max-width:80%;position:relative;text-align:left}.qtable-card-layout .qtable-card-cell-value.svelte-f5q3l2{text-align:right}")}function _n(t,e,n){const l=t.slice();return l[3]=e[n],l}function kn(t,e,n){const l=t.slice();return l[6]=e[n],l[8]=n,l}function In(t){let e,n;return e=new ke({props:{text:t[6].footnote}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.text=t[6].footnote),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function zn(e){let n,l,o,r,c,i,u,m,g,$,x=e[1][e[8]].value+"",q=e[6].value+"",y=""!==e[1][e[8]].footnote&&function(e){let n,l;return n=new ke({props:{text:e[1][e[8]].footnote}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}(e),C=""!==e[6].footnote&&In(e);return{c(){n=p("div"),l=p("span"),o=h(x),r=b(),y&&y.c(),c=b(),i=p("span"),u=h(q),m=b(),C&&C.c(),v(l,"class","qtable-card-cell-title svelte-f5q3l2"),v(i,"class","qtable-card-cell-value svelte-f5q3l2"),v(n,"class",g=s(`qtable-card-cell ${e[6].classes.join(" ")} `)+" svelte-f5q3l2")},m(t,e){d(t,n,e),a(n,l),a(l,o),a(l,r),y&&y.m(l,null),a(n,c),a(n,i),a(i,u),a(i,m),C&&C.m(i,null),$=!0},p(t,e){""!==t[1][t[8]].footnote&&y.p(t,e),(!$||1&e)&&q!==(q=t[6].value+"")&&w(u,q),""!==t[6].footnote?C?(C.p(t,e),1&e&&G(C,1)):(C=In(t),C.c(),G(C,1),C.m(i,null)):C&&(R(),K(C,1,1,(()=>{C=null})),F()),(!$||1&e&&g!==(g=s(`qtable-card-cell ${t[6].classes.join(" ")} `)+" svelte-f5q3l2"))&&v(n,"class",g)},i(t){$||(G(y),G(C),$=!0)},o(t){K(y),K(C),$=!1},d(t){t&&f(n),y&&y.d(),C&&C.d()}}}function Sn(t,e){let n,l,o,r=e[3].cells,c=[];for(let t=0;tK(c[t],1,1,(()=>{c[t]=null}));return{key:t,first:null,c(){n=p("div");for(let t=0;tt[3].key;for(let e=0;e{"componentConfiguration"in t&&n(2,l=t.componentConfiguration),"rows"in t&&n(0,o=t.rows)},[o,r,l]}class Mn extends tt{constructor(t){super(),Z(this,t,En,Nn,r,{componentConfiguration:2,rows:0},Cn)}}function Tn(t){let e,n;return e=new yn({props:{componentConfiguration:t[0],rows:t[4]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.componentConfiguration=t[0]),16&n&&(l.rows=t[4]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function Vn(t){let e,n;return e=new Mn({props:{componentConfiguration:t[0],rows:t[4]}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};1&n&&(l.componentConfiguration=t[0]),16&n&&(l.rows=t[4]),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function jn(e){let n,l;return n=new ee({props:{legend:e[9].legend}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}function Dn(e){let n,l;return n=new ae({props:{legend:e[9].legend}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}function Bn(e){let n,l,o,r,c,i,s,u,m,g,h,x,w,q,C,_=e[14](),k=e[13](),I=e[15](),z=_&&function(e){let n;return{c(){n=p("h3"),n.textContent=`${e[6].title}`,v(n,"class","s-q-item__title")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}(e),S=e[6].subtitle&&""!==e[6].subtitle&&function(e){let n;return{c(){n=p("div"),n.textContent=`${e[6].subtitle}`,v(n,"class","s-q-item__subtitle")},m(t,e){d(t,n,e)},p:t,d(t){t&&f(n)}}}(e),N=k&&function(t){let e,n;return e=new $e({}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}(),E=I&&function(t){let e,n;return e=new ge({props:{page:t[3],pageSize:t[1],count:t[2].length}}),{c(){W(e.$$.fragment)},m(t,l){X(e,t,l),n=!0},p(t,n){const l={};8&n&&(l.page=t[3]),2&n&&(l.pageSize=t[1]),4&n&&(l.count=t[2].length),e.$set(l)},i(t){n||(G(e.$$.fragment,t),n=!0)},o(t){K(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}(e),M=!0!==e[12].hideLegend&&null!==e[9]&&"number"==typeof e[9].selectedColumn&&e[9].selectedColumn!==e[12].minibar.selectedColumn&&!e[7]&&function(e){let n,l;return n=new Ht({props:{colorColumn:e[9],noInteraction:e[10]}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}(e);const T=[Vn,Tn],V=[];u=function(t,e){return t[7]?0:1}(e),m=V[u]=T[u](e);let j=e[8]&&e[8].length>0&&function(e){let n,l;return n=new ht({props:{footnotes:e[8]}}),{c(){W(n.$$.fragment)},m(t,e){X(n,t,e),l=!0},p:t,i(t){l||(G(n.$$.fragment,t),l=!0)},o(t){K(n.$$.fragment,t),l=!1},d(t){J(n,t)}}}(e),D=e[9]&&"numerical"===e[9].legend.type&&function(t){let e,n,l,o;const r=[Dn,jn],c=[];return e=function(t,e){return t[10]?0:1}(t),n=c[e]=r[e](t),{c(){n.c(),l=$()},m(t,n){c[e].m(t,n),d(t,l,n),o=!0},p(t,e){n.p(t,e)},i(t){o||(G(n),o=!0)},o(t){K(n),o=!1},d(t){c[e].d(t),t&&f(l)}}}(e);return w=new dt({props:{notes:e[6].notes,sources:e[6].sources,acronym:e[6].acronym}}),{c(){n=p("div"),z&&z.c(),l=b(),S&&S.c(),o=b(),r=p("div"),N&&N.c(),c=b(),E&&E.c(),i=b(),M&&M.c(),s=b(),m.c(),g=b(),j&&j.c(),h=b(),D&&D.c(),x=b(),W(w.$$.fragment),y(r,"overflow-x","auto"),v(n,"id",e[11]),v(n,"class",q="s-q-item qtable-holder "+e[5])},m(t,e){d(t,n,e),z&&z.m(n,null),a(n,l),S&&S.m(n,null),a(n,o),a(n,r),N&&N.m(r,null),a(r,c),E&&E.m(r,null),a(r,i),M&&M.m(r,null),a(r,s),V[u].m(r,null),a(n,g),j&&j.m(n,null),a(n,h),D&&D.m(n,null),a(n,x),X(w,n,null),C=!0},p(t,[e]){_&&z.p(t,e),t[6].subtitle&&""!==t[6].subtitle&&S.p(t,e),I&&E.p(t,e),!0===t[12].hideLegend||null===t[9]||"number"!=typeof t[9].selectedColumn||t[9].selectedColumn===t[12].minibar.selectedColumn||t[7]||M.p(t,e),m.p(t,e),t[8]&&t[8].length>0&&j.p(t,e),t[9]&&"numerical"===t[9].legend.type&&D.p(t,e),(!C||32&e&&q!==(q="s-q-item qtable-holder "+t[5]))&&v(n,"class",q)},i(t){C||(G(N),G(E),G(M),G(m),G(j),G(D),G(w.$$.fragment,t),C=!0)},o(t){K(N),K(E),K(M),K(m),K(j),K(D),K(w.$$.fragment,t),C=!1},d(t){t&&f(n),z&&z.d(),S&&S.d(),N&&N.d(),E&&E.d(),M&&M.d(),V[u].d(),j&&j.d(),D&&D.d(),J(w)}}}function Pn(t,e,n){let{componentConfiguration:l}=e;const{config:o,initWithCardLayout:r,rows:c,footnotes:i,colorColumn:s,displayOptions:a,noInteraction:u,id:d,width:f,frozenRowKey:m,tableHead:p}=l;let{pageSize:g}=l;const h=o.options;let b,$,x,v=0,w=0;var q,y;"number"==typeof m&&(null==c?void 0:c.length)&&c[m]&&(x=c.splice(m,1)[0],x.frozen=!0,g-=1),ln.subscribe((t=>{if("number"==typeof t.colIndex){const e=t.colIndex;$.sort(((n,l)=>((t,e,n,l,o)=>{const r=t.cells[n].value,c=e.cells[n].value;if("text"===l||"country-flag-emoji"===l)return"asc"===o?r.localeCompare(c,"de"):c.localeCompare(r,"de");const i=t.cells[n].value,s=e.cells[n].value;return"asc"===o?i-s:s-i})(n,l,e,p[e].type,t.sortDirection))),n(2,$)}})),q="state",y={getState:()=>({page:w,pageIndex:v,pageSize:g,rows:c,filteredRows:$}),setPage:t=>{n(3,w=t),n(16,v=t*g)},setPageSize:t=>n(1,g=t),setFilteredRows:t=>n(2,$=t)},z().$$.context.set(q,y);let C="";return f&&f>420&&(C="qtable-desktop"),t.$$set=t=>{"componentConfiguration"in t&&n(0,l=t.componentConfiguration)},t.$$.update=()=>{if(196614&t.$$.dirty){const t=$.slice(v,v+g);x&&t.unshift(x),n(4,b=t)}},n(2,$=c),[l,g,$,w,b,C,o,r,i,s,u,d,h,function(){return!0!==u&&!0===h.showTableSearch},function(){return"boolean"!=typeof a.hideTitle||!a.hideTitle},function(){return!1===u&&"number"==typeof g&&$.length>g},v,x]}return class extends tt{constructor(t){super(),Z(this,t,Pn,Bn,r,{componentConfiguration:0})}}}(); diff --git a/dist/routes.js b/dist/routes.js index 9e682f4a..28572442 100644 --- a/dist/routes.js +++ b/dist/routes.js @@ -990,8 +990,9 @@ function getCategoricalLegend(data, colorColumnSettings) { */ function getCategoryColor(index, customColorMap) { const colorScheme = digitWords[index]; - const customColor = customColorMap.get(index); let colorClass = ''; + // The map starts at index 1 so we have to offset the index by 1. + const customColor = customColorMap.get(index + 1); if (colorScheme) { colorClass = `s-viz-color-${colorScheme}-5`; } @@ -15744,12 +15745,12 @@ var options = { { textColor: "dark", color: "pink", - position: 0 + position: 1 }, { textColor: "dark", color: "lightblue", - position: 1 + position: 2 } ], customCategoriesOrder: [ diff --git a/package-lock.json b/package-lock.json index 84b6fe30..a72cc408 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "q-table", - "version": "7.2.3", + "version": "7.2.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "q-table", - "version": "7.2.3", + "version": "7.2.4", "license": "MIT", "dependencies": { "@hapi/boom": "^10.0.0", @@ -37,14 +37,14 @@ "@types/hapi__inert": "^5.2.4", "@types/jest": "^29.2.5", "@types/jsdom": "^20.0.1", - "@types/node": "^18.11.18", + "@types/node": "^18.13.0", "@types/uglify-js": "^3.17.1", - "@typescript-eslint/eslint-plugin": "^5.49.0", - "@typescript-eslint/parser": "^5.49.0", + "@typescript-eslint/eslint-plugin": "^5.51.0", + "@typescript-eslint/parser": "^5.51.0", "autoprefixer": "^10.4.13", "cssnano": "^5.1.14", "eslint": "^8.33.0", - "eslint-plugin-svelte": "^2.15.0", + "eslint-plugin-svelte": "^2.17.0", "eslint-svelte3-preprocess": "^0.0.5", "happy-dom": "^8.1.4", "html-minifier": "^4.0.0", @@ -56,16 +56,16 @@ "npm-run-all": "^4.1.5", "postcss": "^8.4.21", "postcss-import": "^15.1.0", - "rollup": "^3.12.0", + "rollup": "^3.14.0", "rollup-plugin-svelte": "^7.1.0", - "sass": "^1.57.1", + "sass": "^1.58.0", "svelte-check": "^3.0.3", "svelte-jester": "^2.3.2", "svelte-preprocess": "^5.0.1", "svelte-strip": "^1.0.3", "ts-jest": "^29.0.5", "ts-node": "^10.9.1", - "typescript": "^4.9.4" + "typescript": "^4.9.5" } }, "node_modules/@adobe/css-tools": { @@ -2600,9 +2600,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", + "version": "18.13.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", + "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", "dev": true }, "node_modules/@types/prettier": { @@ -2684,15 +2684,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.49.0.tgz", - "integrity": "sha512-IhxabIpcf++TBaBa1h7jtOWyon80SXPRLDq0dVz5SLFC/eW6tofkw/O7Ar3lkx5z5U6wzbKDrl2larprp5kk5Q==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz", + "integrity": "sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.49.0", - "@typescript-eslint/type-utils": "5.49.0", - "@typescript-eslint/utils": "5.49.0", + "@typescript-eslint/scope-manager": "5.51.0", + "@typescript-eslint/type-utils": "5.51.0", + "@typescript-eslint/utils": "5.51.0", "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", "regexpp": "^3.2.0", @@ -2717,14 +2718,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.49.0.tgz", - "integrity": "sha512-veDlZN9mUhGqU31Qiv2qEp+XrJj5fgZpJ8PW30sHU+j/8/e5ruAhLaVDAeznS7A7i4ucb/s8IozpDtt9NqCkZg==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.51.0.tgz", + "integrity": "sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.49.0", - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/typescript-estree": "5.49.0", + "@typescript-eslint/scope-manager": "5.51.0", + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/typescript-estree": "5.51.0", "debug": "^4.3.4" }, "engines": { @@ -2744,13 +2745,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.49.0.tgz", - "integrity": "sha512-clpROBOiMIzpbWNxCe1xDK14uPZh35u4QaZO1GddilEzoCLAEz4szb51rBpdgurs5k2YzPtJeTEN3qVbG+LRUQ==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.51.0.tgz", + "integrity": "sha512-gNpxRdlx5qw3yaHA0SFuTjW4rxeYhpHxt491PEcKF8Z6zpq0kMhe0Tolxt0qjlojS+/wArSDlj/LtE69xUJphQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/visitor-keys": "5.49.0" + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/visitor-keys": "5.51.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2761,13 +2762,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.49.0.tgz", - "integrity": "sha512-eUgLTYq0tR0FGU5g1YHm4rt5H/+V2IPVkP0cBmbhRyEmyGe4XvJ2YJ6sYTmONfjmdMqyMLad7SB8GvblbeESZA==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.51.0.tgz", + "integrity": "sha512-QHC5KKyfV8sNSyHqfNa0UbTbJ6caB8uhcx2hYcWVvJAZYJRBo5HyyZfzMdRx8nvS+GyMg56fugMzzWnojREuQQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.49.0", - "@typescript-eslint/utils": "5.49.0", + "@typescript-eslint/typescript-estree": "5.51.0", + "@typescript-eslint/utils": "5.51.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -2788,9 +2789,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.49.0.tgz", - "integrity": "sha512-7If46kusG+sSnEpu0yOz2xFv5nRz158nzEXnJFCGVEHWnuzolXKwrH5Bsf9zsNlOQkyZuk0BZKKoJQI+1JPBBg==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.51.0.tgz", + "integrity": "sha512-SqOn0ANn/v6hFn0kjvLwiDi4AzR++CBZz0NV5AnusT2/3y32jdc0G4woXPWHCumWtUXZKPAS27/9vziSsC9jnw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2801,13 +2802,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.49.0.tgz", - "integrity": "sha512-PBdx+V7deZT/3GjNYPVQv1Nc0U46dAHbIuOG8AZ3on3vuEKiPDwFE/lG1snN2eUB9IhF7EyF7K1hmTcLztNIsA==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.51.0.tgz", + "integrity": "sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/visitor-keys": "5.49.0", + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/visitor-keys": "5.51.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2828,16 +2829,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.49.0.tgz", - "integrity": "sha512-cPJue/4Si25FViIb74sHCLtM4nTSBXtLx1d3/QT6mirQ/c65bV8arBEebBJJizfq8W2YyMoPI/WWPFWitmNqnQ==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.51.0.tgz", + "integrity": "sha512-76qs+5KWcaatmwtwsDJvBk4H76RJQBFe+Gext0EfJdC3Vd2kpY2Pf//OHHzHp84Ciw0/rYoGTDnIAr3uWhhJYw==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.49.0", - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/typescript-estree": "5.49.0", + "@typescript-eslint/scope-manager": "5.51.0", + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/typescript-estree": "5.51.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" @@ -2854,12 +2855,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.49.0.tgz", - "integrity": "sha512-v9jBMjpNWyn8B6k/Mjt6VbUS4J1GvUlR4x3Y+ibnP1z7y7V4n0WRz+50DY6+Myj0UaXVSuUlHohO+eZ8IJEnkg==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.51.0.tgz", + "integrity": "sha512-Oh2+eTdjHjOFjKA27sxESlA87YPSOJafGCR0md5oeMdh1ZcCfAGCIOL216uTBAkAIptvLIfKQhl7lHxMJet4GQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.49.0", + "@typescript-eslint/types": "5.51.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -4359,9 +4360,9 @@ } }, "node_modules/eslint-plugin-svelte": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.15.0.tgz", - "integrity": "sha512-29RfdKqEPdrT6vRK66Tn8u9UlM0Kxq/JfLtmdimMbvHfb3tXMNyYN0sW5ontQRFea7mf5qH/mr1kDMzz0vOFHw==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.17.0.tgz", + "integrity": "sha512-ZhEVSCVgRUc6lHbOccr/sYcYRstOBy/Oq2atfN83feAH4Yyha0ZZ4IHQ1Qhl0yW2/vPkpaT7fIVkEeYJ2POIXw==", "dev": true, "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.14", @@ -4372,7 +4373,7 @@ "postcss": "^8.4.5", "postcss-load-config": "^3.1.4", "postcss-safe-parser": "^6.0.0", - "svelte-eslint-parser": "^0.22.0" + "svelte-eslint-parser": "^0.23.0" }, "engines": { "node": "^14.17.0 || >=16.0.0" @@ -14835,9 +14836,9 @@ } }, "node_modules/rollup": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.12.0.tgz", - "integrity": "sha512-4MZ8kA2HNYahIjz63rzrMMRvDqQDeS9LoriJvMuV0V6zIGysP36e9t4yObUfwdT9h/szXoHQideICftcdZklWg==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.14.0.tgz", + "integrity": "sha512-o23sdgCLcLSe3zIplT9nQ1+r97okuaiR+vmAPZPTDYB7/f3tgWIYNyiQveMsZwshBT0is4eGax/HH83Q7CG+/Q==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -14982,9 +14983,9 @@ } }, "node_modules/sass": { - "version": "1.57.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.57.1.tgz", - "integrity": "sha512-O2+LwLS79op7GI0xZ8fqzF7X2m/m8WFfI02dHOdsK5R2ECeS5F62zrwg/relM1rjSLy7Vd/DiMNIvPrQGsA0jw==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.58.0.tgz", + "integrity": "sha512-PiMJcP33DdKtZ/1jSjjqVIKihoDc6yWmYr9K/4r3fVVIEDAluD0q7XZiRKrNJcPK3qkLRF/79DND1H5q1LBjgg==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -15480,9 +15481,9 @@ } }, "node_modules/svelte-eslint-parser": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.22.4.tgz", - "integrity": "sha512-3ra5jhS9u1LaeqvxuMSKbCiB4WXB4BZODFHDQWdGfGJMC42UMouXH3XppFjdsOPsWNZj/kT/SfyiXbieE/cTnA==", + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.23.0.tgz", + "integrity": "sha512-1BJBYGDzlhxmBvbx0ZXdwfPkEP+9sOn63ei6HgkWNNx/J1LH04Ykw+ZHx9Bf5Rh3zzZqjVvy23vmx+WIjCu7CA==", "dev": true, "dependencies": { "eslint-scope": "^7.0.0", @@ -16111,9 +16112,9 @@ } }, "node_modules/typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -18607,9 +18608,9 @@ "dev": true }, "@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", + "version": "18.13.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", + "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", "dev": true }, "@types/prettier": { @@ -18691,15 +18692,16 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.49.0.tgz", - "integrity": "sha512-IhxabIpcf++TBaBa1h7jtOWyon80SXPRLDq0dVz5SLFC/eW6tofkw/O7Ar3lkx5z5U6wzbKDrl2larprp5kk5Q==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz", + "integrity": "sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.49.0", - "@typescript-eslint/type-utils": "5.49.0", - "@typescript-eslint/utils": "5.49.0", + "@typescript-eslint/scope-manager": "5.51.0", + "@typescript-eslint/type-utils": "5.51.0", + "@typescript-eslint/utils": "5.51.0", "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", "regexpp": "^3.2.0", @@ -18708,53 +18710,53 @@ } }, "@typescript-eslint/parser": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.49.0.tgz", - "integrity": "sha512-veDlZN9mUhGqU31Qiv2qEp+XrJj5fgZpJ8PW30sHU+j/8/e5ruAhLaVDAeznS7A7i4ucb/s8IozpDtt9NqCkZg==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.51.0.tgz", + "integrity": "sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.49.0", - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/typescript-estree": "5.49.0", + "@typescript-eslint/scope-manager": "5.51.0", + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/typescript-estree": "5.51.0", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.49.0.tgz", - "integrity": "sha512-clpROBOiMIzpbWNxCe1xDK14uPZh35u4QaZO1GddilEzoCLAEz4szb51rBpdgurs5k2YzPtJeTEN3qVbG+LRUQ==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.51.0.tgz", + "integrity": "sha512-gNpxRdlx5qw3yaHA0SFuTjW4rxeYhpHxt491PEcKF8Z6zpq0kMhe0Tolxt0qjlojS+/wArSDlj/LtE69xUJphQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/visitor-keys": "5.49.0" + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/visitor-keys": "5.51.0" } }, "@typescript-eslint/type-utils": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.49.0.tgz", - "integrity": "sha512-eUgLTYq0tR0FGU5g1YHm4rt5H/+V2IPVkP0cBmbhRyEmyGe4XvJ2YJ6sYTmONfjmdMqyMLad7SB8GvblbeESZA==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.51.0.tgz", + "integrity": "sha512-QHC5KKyfV8sNSyHqfNa0UbTbJ6caB8uhcx2hYcWVvJAZYJRBo5HyyZfzMdRx8nvS+GyMg56fugMzzWnojREuQQ==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "5.49.0", - "@typescript-eslint/utils": "5.49.0", + "@typescript-eslint/typescript-estree": "5.51.0", + "@typescript-eslint/utils": "5.51.0", "debug": "^4.3.4", "tsutils": "^3.21.0" } }, "@typescript-eslint/types": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.49.0.tgz", - "integrity": "sha512-7If46kusG+sSnEpu0yOz2xFv5nRz158nzEXnJFCGVEHWnuzolXKwrH5Bsf9zsNlOQkyZuk0BZKKoJQI+1JPBBg==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.51.0.tgz", + "integrity": "sha512-SqOn0ANn/v6hFn0kjvLwiDi4AzR++CBZz0NV5AnusT2/3y32jdc0G4woXPWHCumWtUXZKPAS27/9vziSsC9jnw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.49.0.tgz", - "integrity": "sha512-PBdx+V7deZT/3GjNYPVQv1Nc0U46dAHbIuOG8AZ3on3vuEKiPDwFE/lG1snN2eUB9IhF7EyF7K1hmTcLztNIsA==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.51.0.tgz", + "integrity": "sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/visitor-keys": "5.49.0", + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/visitor-keys": "5.51.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -18763,28 +18765,28 @@ } }, "@typescript-eslint/utils": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.49.0.tgz", - "integrity": "sha512-cPJue/4Si25FViIb74sHCLtM4nTSBXtLx1d3/QT6mirQ/c65bV8arBEebBJJizfq8W2YyMoPI/WWPFWitmNqnQ==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.51.0.tgz", + "integrity": "sha512-76qs+5KWcaatmwtwsDJvBk4H76RJQBFe+Gext0EfJdC3Vd2kpY2Pf//OHHzHp84Ciw0/rYoGTDnIAr3uWhhJYw==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.49.0", - "@typescript-eslint/types": "5.49.0", - "@typescript-eslint/typescript-estree": "5.49.0", + "@typescript-eslint/scope-manager": "5.51.0", + "@typescript-eslint/types": "5.51.0", + "@typescript-eslint/typescript-estree": "5.51.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" } }, "@typescript-eslint/visitor-keys": { - "version": "5.49.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.49.0.tgz", - "integrity": "sha512-v9jBMjpNWyn8B6k/Mjt6VbUS4J1GvUlR4x3Y+ibnP1z7y7V4n0WRz+50DY6+Myj0UaXVSuUlHohO+eZ8IJEnkg==", + "version": "5.51.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.51.0.tgz", + "integrity": "sha512-Oh2+eTdjHjOFjKA27sxESlA87YPSOJafGCR0md5oeMdh1ZcCfAGCIOL216uTBAkAIptvLIfKQhl7lHxMJet4GQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.49.0", + "@typescript-eslint/types": "5.51.0", "eslint-visitor-keys": "^3.3.0" } }, @@ -19928,9 +19930,9 @@ } }, "eslint-plugin-svelte": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.15.0.tgz", - "integrity": "sha512-29RfdKqEPdrT6vRK66Tn8u9UlM0Kxq/JfLtmdimMbvHfb3tXMNyYN0sW5ontQRFea7mf5qH/mr1kDMzz0vOFHw==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.17.0.tgz", + "integrity": "sha512-ZhEVSCVgRUc6lHbOccr/sYcYRstOBy/Oq2atfN83feAH4Yyha0ZZ4IHQ1Qhl0yW2/vPkpaT7fIVkEeYJ2POIXw==", "dev": true, "requires": { "@jridgewell/sourcemap-codec": "^1.4.14", @@ -19941,7 +19943,7 @@ "postcss": "^8.4.5", "postcss-load-config": "^3.1.4", "postcss-safe-parser": "^6.0.0", - "svelte-eslint-parser": "^0.22.0" + "svelte-eslint-parser": "^0.23.0" } }, "eslint-scope": { @@ -27802,9 +27804,9 @@ } }, "rollup": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.12.0.tgz", - "integrity": "sha512-4MZ8kA2HNYahIjz63rzrMMRvDqQDeS9LoriJvMuV0V6zIGysP36e9t4yObUfwdT9h/szXoHQideICftcdZklWg==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.14.0.tgz", + "integrity": "sha512-o23sdgCLcLSe3zIplT9nQ1+r97okuaiR+vmAPZPTDYB7/f3tgWIYNyiQveMsZwshBT0is4eGax/HH83Q7CG+/Q==", "dev": true, "requires": { "fsevents": "~2.3.2" @@ -27902,9 +27904,9 @@ } }, "sass": { - "version": "1.57.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.57.1.tgz", - "integrity": "sha512-O2+LwLS79op7GI0xZ8fqzF7X2m/m8WFfI02dHOdsK5R2ECeS5F62zrwg/relM1rjSLy7Vd/DiMNIvPrQGsA0jw==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.58.0.tgz", + "integrity": "sha512-PiMJcP33DdKtZ/1jSjjqVIKihoDc6yWmYr9K/4r3fVVIEDAluD0q7XZiRKrNJcPK3qkLRF/79DND1H5q1LBjgg==", "dev": true, "requires": { "chokidar": ">=3.0.0 <4.0.0", @@ -28281,9 +28283,9 @@ } }, "svelte-eslint-parser": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.22.4.tgz", - "integrity": "sha512-3ra5jhS9u1LaeqvxuMSKbCiB4WXB4BZODFHDQWdGfGJMC42UMouXH3XppFjdsOPsWNZj/kT/SfyiXbieE/cTnA==", + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.23.0.tgz", + "integrity": "sha512-1BJBYGDzlhxmBvbx0ZXdwfPkEP+9sOn63ei6HgkWNNx/J1LH04Ykw+ZHx9Bf5Rh3zzZqjVvy23vmx+WIjCu7CA==", "dev": true, "requires": { "eslint-scope": "^7.0.0", @@ -28663,9 +28665,9 @@ } }, "typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index e675acc1..229b6022 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "q-table", - "version": "7.2.3", + "version": "7.2.4", "description": "", "main": "index.js", "type": "module", @@ -49,14 +49,14 @@ "@types/hapi__inert": "^5.2.4", "@types/jest": "^29.2.5", "@types/jsdom": "^20.0.1", - "@types/node": "^18.11.18", + "@types/node": "^18.13.0", "@types/uglify-js": "^3.17.1", - "@typescript-eslint/eslint-plugin": "^5.49.0", - "@typescript-eslint/parser": "^5.49.0", + "@typescript-eslint/eslint-plugin": "^5.51.0", + "@typescript-eslint/parser": "^5.51.0", "autoprefixer": "^10.4.13", "cssnano": "^5.1.14", "eslint": "^8.33.0", - "eslint-plugin-svelte": "^2.15.0", + "eslint-plugin-svelte": "^2.17.0", "eslint-svelte3-preprocess": "^0.0.5", "happy-dom": "^8.1.4", "html-minifier": "^4.0.0", @@ -68,15 +68,15 @@ "npm-run-all": "^4.1.5", "postcss": "^8.4.21", "postcss-import": "^15.1.0", - "rollup": "^3.12.0", + "rollup": "^3.14.0", "rollup-plugin-svelte": "^7.1.0", - "sass": "^1.57.1", + "sass": "^1.58.0", "svelte-check": "^3.0.3", "svelte-jester": "^2.3.2", "svelte-preprocess": "^5.0.1", "svelte-strip": "^1.0.3", "ts-jest": "^29.0.5", "ts-node": "^10.9.1", - "typescript": "^4.9.4" + "typescript": "^4.9.5" } } diff --git a/resources/fixtures/data/colorColumn-categorical-custom-colors.json b/resources/fixtures/data/colorColumn-categorical-custom-colors.json index bee29bad..e3078728 100644 --- a/resources/fixtures/data/colorColumn-categorical-custom-colors.json +++ b/resources/fixtures/data/colorColumn-categorical-custom-colors.json @@ -98,12 +98,12 @@ { "textColor": "dark", "color": "pink", - "position": 0 + "position": 1 }, { "textColor": "dark", "color": "lightblue", - "position": 1 + "position": 2 } ], "customCategoriesOrder": [] diff --git a/src/helpers/colorColumnLegend.ts b/src/helpers/colorColumnLegend.ts index 2d77f934..0accf2a7 100644 --- a/src/helpers/colorColumnLegend.ts +++ b/src/helpers/colorColumnLegend.ts @@ -106,9 +106,11 @@ export function getCategoricalLegend(data: QTableDataRaw, colorColumnSettings: C */ function getCategoryColor(index: number, customColorMap: CustomColorMap): CategoryColor { const colorScheme: string | undefined = digitWords[index]; - const customColor = customColorMap.get(index); let colorClass = ''; + // The map starts at index 1 so we have to offset the index by 1. + const customColor = customColorMap.get(index + 1); + if (colorScheme) { colorClass = `s-viz-color-${colorScheme}-5`; }