galaxy-charts 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,7 @@ async function ic(e, t) {
85
85
  function ac(e) {
86
86
  return `/api/datasets/${e}/display`;
87
87
  }
88
- const ha = ["auto", void 0], vr = E({});
88
+ const ha = ["auto"], vr = E({});
89
89
  function e1() {
90
90
  function e(n, r) {
91
91
  const o = [];
@@ -110,7 +110,7 @@ function e1() {
110
110
  const d = {};
111
111
  o.forEach((f) => {
112
112
  const u = s[f];
113
- u && !ha.includes(u) && (d[f] = vr.value[n][u]);
113
+ u !== void 0 && !ha.includes(u) && (d[f] = vr.value[n][u]);
114
114
  }), l.push(d);
115
115
  }), l;
116
116
  }
@@ -1,5 +1,5 @@
1
1
  (function(We,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(We=typeof globalThis<"u"?globalThis:We||self,o(We.GalaxyCharts={},We.vue))})(this,function(We,o){"use strict";var Mi=document.createElement("style");Mi.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.z-10{z-index:10}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mr-1{margin-right:.25rem}.mt-0{margin-top:0}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.\\!hidden{display:none!important}.hidden{display:none}.size-14{width:3.5rem;height:3.5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.h-screen{height:100vh}.w-full{width:100%}.min-w-14{min-width:3.5rem}.max-w-14{max-width:3.5rem}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-\\[70\\%_30\\%\\]{grid-template-columns:70% 30%}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-dotted{border-style:dotted}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\\:flex{display:flex}}
2
- `,document.head.appendChild(Mi);function Ii(e,t="Request failed."){let n=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?n=e.response.data.err_msg:e&&e.data&&e.data.err_msg?n=e.data.err_msg:e&&e.response?n=`${e.response.statusText} (${e.response.status})`:e instanceof Error?n=e.message:typeof e=="string"&&(n=e),n}function go(e){throw Error(Ii(e))}const Oi=o.ref("/"),Ai=o.ref("include");function Fi(){function e(){return Ai.value}function t(i){Ai.value=i}function n(){return Oi.value}function r(i){Oi.value=i}return{getCredentials:e,setCredentials:t,getRoot:n,setRoot:r}}async function ir(e,t){const n=Fi(),r=`${n.getRoot()}${e.substring(1)}`;try{const i=await fetch(r,{credentials:n.getCredentials(),headers:{"Content-Type":"application/json"},...t});return{data:await i.json(),response:i}}catch(i){go(i)}}function en(){async function e(r){return ir(r,{method:"GET"})}async function t(r,i){return ir(r,{body:JSON.stringify(i),method:"POST"})}async function n(r,i){return ir(r,{body:JSON.stringify(i),method:"PUT"})}return{GET:e,POST:t,PUT:n}}async function Vs(e,t){try{const n=new URLSearchParams({data_type:"raw_data",provider:"dataset-column",indeces:t.toString()}).toString(),{data:r}=await en().GET(`/api/datasets/${e}?${n}`),i=t.length,a=new Array(i).fill(null).map(()=>[]);for(const l of r.data)for(const s in l){const d=Number(s),c=l[s];c!==void 0&&c!=2147483647&&d<i&&a[d].push(c)}return a}catch(n){console.error(n);return}}function Hs(e){return`/api/datasets/${e}/display`}const Di=["auto",void 0],Ln=o.ref({});function Ls(){function e(n,r){const i=[];for(const a of n)for(const l of r){const s=a[l];s&&![...i,...Di].includes(s)&&i.push(s)}return i}async function t(n,r,i){Ln.value[n]=Ln.value[n]||{};const a=Object.keys(Ln.value[n]),l=e(r,i).filter(d=>!a.includes(d));if(l.length>0){const d=await Vs(n,l);if(d)for(const[c,f]of l.entries())Ln.value[n][f]=d[c]}const s=[];return r.forEach(d=>{const c={};i.forEach(f=>{const u=d[f];u&&!Di.includes(u)&&(c[f]=Ln.value[n][u])}),s.push(c)}),s}return{fetchColumns:t}}function Ns(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Ws(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Vi(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function js(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Us(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function Gs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Hi(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Ks(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function qs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Xs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}let mo=[];const Li=new WeakMap;function Ys(){mo.forEach(e=>e(...Li.get(e))),mo=[]}function Ni(e,...t){Li.set(e,t),!mo.includes(e)&&mo.push(e)===1&&requestAnimationFrame(Ys)}function Nn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function $n(e){return e.composedPath()[0]||null}function ot(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function tn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function dt(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const Wi={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function ji(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function vo(e,t,n){t/=100,n/=100;const r=n-n*t/2,i=Math.min(r,1-r);return[e,i?(n-r)/i*100:0,r*100]}function Dt(e,t,n){t/=100,n/=100;let r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function ar(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(a<0?a+6:a),r&&i/r*100,r*100]}function lr(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=1-Math.abs(r+r-i-1),l=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(r+r-i)*50]}function sr(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(a,l=(a+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const wt="^\\s*",Ct="\\s*$",Vt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ct="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",nn="([0-9A-Fa-f])",on="([0-9A-Fa-f]{2})",Zs=new RegExp(`${wt}hsl\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Js=new RegExp(`${wt}hsv\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Qs=new RegExp(`${wt}hsla\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),ed=new RegExp(`${wt}hsva\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),td=new RegExp(`${wt}rgb\\s*\\(${ct},${ct},${ct}\\)${Ct}`),nd=new RegExp(`${wt}rgba\\s*\\(${ct},${ct},${ct},${ct}\\)${Ct}`),dr=new RegExp(`${wt}#${nn}${nn}${nn}${Ct}`),cr=new RegExp(`${wt}#${on}${on}${on}${Ct}`),ur=new RegExp(`${wt}#${nn}${nn}${nn}${nn}${Ct}`),fr=new RegExp(`${wt}#${on}${on}${on}${on}${Ct}`);function at(e){return parseInt(e,16)}function kn(e){try{let t;if(t=Qs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Zs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function rn(e){try{let t;if(t=ed.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Js.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Qe(e){try{let t;if(t=cr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),1];if(t=td.exec(e))return[He(t[1]),He(t[5]),He(t[9]),1];if(t=nd.exec(e))return[He(t[1]),He(t[5]),He(t[9]),Rt(t[13])];if(t=dr.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),1];if(t=fr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),Rt(at(t[4])/255)];if(t=ur.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),Rt(at(t[4]+t[4])/255)];if(e in Wi)return Qe(Wi[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function od(e){return e>1?1:e<0?0:e}function rd(e,t,n){return`rgb(${He(e)}, ${He(t)}, ${He(n)})`}function hr(e,t,n,r){return`rgba(${He(e)}, ${He(t)}, ${He(n)}, ${od(r)})`}function pr(e,t,n,r,i){return He((e*t*(1-r)+n*r)/i)}function ft(e,t){Array.isArray(e)||(e=Qe(e)),Array.isArray(t)||(t=Qe(t));const n=e[3],r=t[3],i=Rt(n+r-n*r);return hr(pr(e[0],n,t[0],r,i),pr(e[1],n,t[1],r,i),pr(e[2],n,t[2],r,i),i)}function me(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e);return t.alpha?hr(n,r,i,t.alpha):hr(n,r,i,a)}function xo(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e),{lightness:l=1,alpha:s=1}=t;return $t([n*l,r*l,i*l,a*s])}function Rt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function St(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function He(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ge(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function br(e){const[t,n,r]=Array.isArray(e)?e:Qe(e);return rd(t,n,r)}function $t(e){const[t,n,r]=e;return 3 in e?`rgba(${He(t)}, ${He(n)}, ${He(r)}, ${Rt(e[3])})`:`rgba(${He(t)}, ${He(n)}, ${He(r)}, 1)`}function gr(e){return`hsv(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function an(e){const[t,n,r]=e;return 3 in e?`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function mr(e){return`hsl(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function Ht(e){const[t,n,r]=e;return 3 in e?`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function Lt(e){if(typeof e=="string"){let r;if(r=cr.exec(e))return`${r[0]}FF`;if(r=fr.exec(e))return r[0];if(r=dr.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=ur.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>He(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":He(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function Wn(e){if(typeof e=="string"){let t;if(t=cr.exec(e))return t[0];if(t=fr.exec(e))return t[0].slice(0,7);if(t=dr.exec(e)||ur.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>He(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function id(e=8){return Math.random().toString(16).slice(2,2+e)}function ad(e,t=[],n){const r={};return t.forEach(i=>{r[i]=e[i]}),Object.assign(r,n)}function ld(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,n)}function zn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){zn(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&zn(r.children,t,n)}else{if(r.type===o.Comment&&t)return;n.push(r)}}}),n}function de(e,...t){if(Array.isArray(e))e.forEach(n=>de(n,...t));else return e(...t)}function ln(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?o.createTextVNode(e):typeof e=="number"?o.createTextVNode(String(e)):null}const Ui=new Set;function tt(e,t){const n=`[naive/${e}]: ${t}`;Ui.has(n)||(Ui.add(n),console.error(n))}function jn(e,t){console.error(`[naive/${e}]: ${t}`)}function vr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Gi(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ki(e,t="default",n=void 0){const r=e[t];if(!r)return jn("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=zn(r(n));return i.length===1?i[0]:(jn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function dy(e){return e}function Un(e){return e.some(t=>o.isVNode(t)?!(t.type===o.Comment||t.type===o.Fragment&&!Un(t.children)):!0)?e:null}function mt(e,t){return e&&Un(e())||t()}function sd(e,t,n){return e&&Un(e(t))||n(t)}function Oe(e,t){const n=e&&Un(e());return t(n||null)}function Tn(e){return!(e&&Un(e()))}function xr(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}const yr=o.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),dd=/^(\d|\.)+$/,qi=/(\d|\.)+/;function lt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const i=(e+n)*t;return i===0?"0":`${i}px`}else if(typeof e=="string")if(dd.test(e)){const i=(Number(e)+n)*t;return r?i===0?"0":`${i}px`:`${i}`}else{const i=qi.exec(e);return i?e.replace(qi,String((Number(i[0])+n)*t)):e}return e}function yo(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function cd(e){const{left:t,right:n,top:r,bottom:i}=dt(e);return`${r} ${n} ${i} ${t}`}function ud(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Xi=/\s*,(?![^(]*\))\s*/g,fd=/\s+/g;function hd(e,t){const n=[];return t.split(Xi).forEach(r=>{let i=ud(r);if(i){if(i===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let a=[r];for(;i--;){const l=[];a.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),a=l}a.forEach(l=>n.push(l))}),n}function pd(e,t){const n=[];return t.split(Xi).forEach(r=>{e.forEach(i=>{n.push((i&&i+" ")+r)})}),n}function bd(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hd(t,n):t=pd(t,n))}),t.join(", ").replace(fd," ")}function Yi(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wo(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function gd(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Co(e){return e?/^\s*@(s|m)/.test(e):!1}const md=/[A-Z]/g;function Zi(e){return e.replace(md,t=>"-"+t.toLowerCase())}function vd(e,t=" "){return typeof e=="object"&&e!==null?` {
2
+ `,document.head.appendChild(Mi);function Ii(e,t="Request failed."){let n=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?n=e.response.data.err_msg:e&&e.data&&e.data.err_msg?n=e.data.err_msg:e&&e.response?n=`${e.response.statusText} (${e.response.status})`:e instanceof Error?n=e.message:typeof e=="string"&&(n=e),n}function go(e){throw Error(Ii(e))}const Oi=o.ref("/"),Ai=o.ref("include");function Fi(){function e(){return Ai.value}function t(i){Ai.value=i}function n(){return Oi.value}function r(i){Oi.value=i}return{getCredentials:e,setCredentials:t,getRoot:n,setRoot:r}}async function ir(e,t){const n=Fi(),r=`${n.getRoot()}${e.substring(1)}`;try{const i=await fetch(r,{credentials:n.getCredentials(),headers:{"Content-Type":"application/json"},...t});return{data:await i.json(),response:i}}catch(i){go(i)}}function en(){async function e(r){return ir(r,{method:"GET"})}async function t(r,i){return ir(r,{body:JSON.stringify(i),method:"POST"})}async function n(r,i){return ir(r,{body:JSON.stringify(i),method:"PUT"})}return{GET:e,POST:t,PUT:n}}async function Vs(e,t){try{const n=new URLSearchParams({data_type:"raw_data",provider:"dataset-column",indeces:t.toString()}).toString(),{data:r}=await en().GET(`/api/datasets/${e}?${n}`),i=t.length,a=new Array(i).fill(null).map(()=>[]);for(const l of r.data)for(const s in l){const d=Number(s),c=l[s];c!==void 0&&c!=2147483647&&d<i&&a[d].push(c)}return a}catch(n){console.error(n);return}}function Hs(e){return`/api/datasets/${e}/display`}const Di=["auto"],Ln=o.ref({});function Ls(){function e(n,r){const i=[];for(const a of n)for(const l of r){const s=a[l];s&&![...i,...Di].includes(s)&&i.push(s)}return i}async function t(n,r,i){Ln.value[n]=Ln.value[n]||{};const a=Object.keys(Ln.value[n]),l=e(r,i).filter(d=>!a.includes(d));if(l.length>0){const d=await Vs(n,l);if(d)for(const[c,f]of l.entries())Ln.value[n][f]=d[c]}const s=[];return r.forEach(d=>{const c={};i.forEach(f=>{const u=d[f];u!==void 0&&!Di.includes(u)&&(c[f]=Ln.value[n][u])}),s.push(c)}),s}return{fetchColumns:t}}function Ns(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Ws(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Vi(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function js(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Us(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function Gs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Hi(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Ks(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function qs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Xs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}let mo=[];const Li=new WeakMap;function Ys(){mo.forEach(e=>e(...Li.get(e))),mo=[]}function Ni(e,...t){Li.set(e,t),!mo.includes(e)&&mo.push(e)===1&&requestAnimationFrame(Ys)}function Nn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function $n(e){return e.composedPath()[0]||null}function ot(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function tn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function dt(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const Wi={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function ji(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function vo(e,t,n){t/=100,n/=100;const r=n-n*t/2,i=Math.min(r,1-r);return[e,i?(n-r)/i*100:0,r*100]}function Dt(e,t,n){t/=100,n/=100;let r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function ar(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(a<0?a+6:a),r&&i/r*100,r*100]}function lr(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=1-Math.abs(r+r-i-1),l=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(r+r-i)*50]}function sr(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(a,l=(a+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const wt="^\\s*",Ct="\\s*$",Vt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ct="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",nn="([0-9A-Fa-f])",on="([0-9A-Fa-f]{2})",Zs=new RegExp(`${wt}hsl\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Js=new RegExp(`${wt}hsv\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Qs=new RegExp(`${wt}hsla\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),ed=new RegExp(`${wt}hsva\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),td=new RegExp(`${wt}rgb\\s*\\(${ct},${ct},${ct}\\)${Ct}`),nd=new RegExp(`${wt}rgba\\s*\\(${ct},${ct},${ct},${ct}\\)${Ct}`),dr=new RegExp(`${wt}#${nn}${nn}${nn}${Ct}`),cr=new RegExp(`${wt}#${on}${on}${on}${Ct}`),ur=new RegExp(`${wt}#${nn}${nn}${nn}${nn}${Ct}`),fr=new RegExp(`${wt}#${on}${on}${on}${on}${Ct}`);function at(e){return parseInt(e,16)}function kn(e){try{let t;if(t=Qs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Zs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function rn(e){try{let t;if(t=ed.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Js.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Qe(e){try{let t;if(t=cr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),1];if(t=td.exec(e))return[He(t[1]),He(t[5]),He(t[9]),1];if(t=nd.exec(e))return[He(t[1]),He(t[5]),He(t[9]),Rt(t[13])];if(t=dr.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),1];if(t=fr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),Rt(at(t[4])/255)];if(t=ur.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),Rt(at(t[4]+t[4])/255)];if(e in Wi)return Qe(Wi[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function od(e){return e>1?1:e<0?0:e}function rd(e,t,n){return`rgb(${He(e)}, ${He(t)}, ${He(n)})`}function hr(e,t,n,r){return`rgba(${He(e)}, ${He(t)}, ${He(n)}, ${od(r)})`}function pr(e,t,n,r,i){return He((e*t*(1-r)+n*r)/i)}function ft(e,t){Array.isArray(e)||(e=Qe(e)),Array.isArray(t)||(t=Qe(t));const n=e[3],r=t[3],i=Rt(n+r-n*r);return hr(pr(e[0],n,t[0],r,i),pr(e[1],n,t[1],r,i),pr(e[2],n,t[2],r,i),i)}function me(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e);return t.alpha?hr(n,r,i,t.alpha):hr(n,r,i,a)}function xo(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e),{lightness:l=1,alpha:s=1}=t;return $t([n*l,r*l,i*l,a*s])}function Rt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function St(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function He(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ge(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function br(e){const[t,n,r]=Array.isArray(e)?e:Qe(e);return rd(t,n,r)}function $t(e){const[t,n,r]=e;return 3 in e?`rgba(${He(t)}, ${He(n)}, ${He(r)}, ${Rt(e[3])})`:`rgba(${He(t)}, ${He(n)}, ${He(r)}, 1)`}function gr(e){return`hsv(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function an(e){const[t,n,r]=e;return 3 in e?`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function mr(e){return`hsl(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function Ht(e){const[t,n,r]=e;return 3 in e?`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function Lt(e){if(typeof e=="string"){let r;if(r=cr.exec(e))return`${r[0]}FF`;if(r=fr.exec(e))return r[0];if(r=dr.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=ur.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>He(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":He(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function Wn(e){if(typeof e=="string"){let t;if(t=cr.exec(e))return t[0];if(t=fr.exec(e))return t[0].slice(0,7);if(t=dr.exec(e)||ur.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>He(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function id(e=8){return Math.random().toString(16).slice(2,2+e)}function ad(e,t=[],n){const r={};return t.forEach(i=>{r[i]=e[i]}),Object.assign(r,n)}function ld(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,n)}function zn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){zn(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&zn(r.children,t,n)}else{if(r.type===o.Comment&&t)return;n.push(r)}}}),n}function de(e,...t){if(Array.isArray(e))e.forEach(n=>de(n,...t));else return e(...t)}function ln(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?o.createTextVNode(e):typeof e=="number"?o.createTextVNode(String(e)):null}const Ui=new Set;function tt(e,t){const n=`[naive/${e}]: ${t}`;Ui.has(n)||(Ui.add(n),console.error(n))}function jn(e,t){console.error(`[naive/${e}]: ${t}`)}function vr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Gi(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ki(e,t="default",n=void 0){const r=e[t];if(!r)return jn("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=zn(r(n));return i.length===1?i[0]:(jn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function dy(e){return e}function Un(e){return e.some(t=>o.isVNode(t)?!(t.type===o.Comment||t.type===o.Fragment&&!Un(t.children)):!0)?e:null}function mt(e,t){return e&&Un(e())||t()}function sd(e,t,n){return e&&Un(e(t))||n(t)}function Oe(e,t){const n=e&&Un(e());return t(n||null)}function Tn(e){return!(e&&Un(e()))}function xr(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}const yr=o.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),dd=/^(\d|\.)+$/,qi=/(\d|\.)+/;function lt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const i=(e+n)*t;return i===0?"0":`${i}px`}else if(typeof e=="string")if(dd.test(e)){const i=(Number(e)+n)*t;return r?i===0?"0":`${i}px`:`${i}`}else{const i=qi.exec(e);return i?e.replace(qi,String((Number(i[0])+n)*t)):e}return e}function yo(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function cd(e){const{left:t,right:n,top:r,bottom:i}=dt(e);return`${r} ${n} ${i} ${t}`}function ud(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Xi=/\s*,(?![^(]*\))\s*/g,fd=/\s+/g;function hd(e,t){const n=[];return t.split(Xi).forEach(r=>{let i=ud(r);if(i){if(i===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let a=[r];for(;i--;){const l=[];a.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),a=l}a.forEach(l=>n.push(l))}),n}function pd(e,t){const n=[];return t.split(Xi).forEach(r=>{e.forEach(i=>{n.push((i&&i+" ")+r)})}),n}function bd(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hd(t,n):t=pd(t,n))}),t.join(", ").replace(fd," ")}function Yi(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wo(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function gd(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Co(e){return e?/^\s*@(s|m)/.test(e):!1}const md=/[A-Z]/g;function Zi(e){return e.replace(md,t=>"-"+t.toLowerCase())}function vd(e,t=" "){return typeof e=="object"&&e!==null?` {
3
3
  `+Object.entries(e).map(n=>t+` ${Zi(n[0])}: ${n[1]};`).join(`
4
4
  `)+`
5
5
  `+t+"}":`: ${e};`}function xd(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ji(e,t,n,r){if(!t)return"";const i=xd(t,n,r);if(!i)return"";if(typeof i=="string")return`${e} {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "charts"
7
7
  ],
8
8
  "license": "MIT",
9
- "version": "0.0.32",
9
+ "version": "0.0.33",
10
10
  "type": "module",
11
11
  "main": "./dist/galaxy-charts.umd.cjs",
12
12
  "module": "./dist/galaxy-charts.js",