vue-data-ui 0.4.4 → 0.4.5

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.
@@ -12820,7 +12820,7 @@ function(e) {
12820
12820
  */
12821
12821
  function(e) {
12822
12822
  function t() {
12823
- return (Ft.canvg ? Promise.resolve(Ft.canvg) : import("./index.es-9bb16c7a.js")).catch(function(A) {
12823
+ return (Ft.canvg ? Promise.resolve(Ft.canvg) : import("./index.es-4a8fa7b4.js")).catch(function(A) {
12824
12824
  return Promise.reject(new Error("Could not load canvg: " + A));
12825
12825
  }).then(function(A) {
12826
12826
  return A.default ? A.default : A;
@@ -31341,7 +31341,7 @@ const Q6 = {
31341
31341
  bold: !0,
31342
31342
  border: "none",
31343
31343
  borderRadius: 4,
31344
- boxShadowCss: "0 6px 12px -6px rgba(0,0,0,0.2)",
31344
+ boxShadow: "0 6px 12px -6px rgba(0,0,0,0.2)",
31345
31345
  color: "#2D353C",
31346
31346
  fontFamily: "inherit",
31347
31347
  fontSize: 14,
@@ -31356,6 +31356,7 @@ const Q6 = {
31356
31356
  borderRadius: 4,
31357
31357
  boxShadow: "0 6px 12px -6px rgba(0,0,0,0.2)",
31358
31358
  color: "#2D353C",
31359
+ fontFamily: "inherit",
31359
31360
  fontSize: 14,
31360
31361
  minHeight: 40,
31361
31362
  padding: "8px 12px"
@@ -38427,7 +38428,7 @@ const TO = ["id"], QO = { class: "vue-ui-vertical-bar-user-option-item" }, IO =
38427
38428
  const de = document.createElement("DIV");
38428
38429
  de.classList.add("vue-ui-screenshot-info-text"), de.innerHTML = i.value.translations.info, de.dataset.html2canvasIgnore = "true", de.style.background = i.value.style.info.background, de.style.color = i.value.style.info.color, de.style.fontWeight = i.value.style.info.bold ? "bold" : "normal", de.style.minWidth = `${i.value.style.info.minWidth}px`, de.style.left = "50%", de.style.padding = `${i.value.style.info.padding}px`, de.style.position = "absolute", de.style.textAlign = "center", de.style.top = `${i.value.style.info.top}px`, de.style.transform = "translateX(-50%)", de.style.borderRadius = `${i.value.style.info.borderRadius}px`, de.style.boxShadow = "0 6px 12px -6px rgba(0,0,0,0.2)", de.style.fontFamily = i.value.style.info.fontFamily, de.style.border = i.value.style.info.border, de.style.userSelect = "none";
38429
38430
  const we = document.createElement("BUTTON");
38430
- we.classList.add("vue-ui-screenshot-close-button"), we.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>', we.style.outline = "none", we.style.display = "flex", we.style.cursor = "pointer", we.style.borderRadius = "50%", we.style.alignItems = "center", we.style.position = "absolute", we.style.justifyContent = "center", we.style.transformOrigin = "center", we.style.top = `${i.value.style.cancelButton.top}px`, we.style.right = `${i.value.style.cancelButton.right}px`, we.style.background = i.value.style.cancelButton.background, we.style.border = i.value.style.cancelButton.border, we.style.height = `${i.value.style.cancelButton.size}px`, we.style.width = `${i.value.style.cancelButton.size}px`, we.addEventListener("click", Ae), de.appendChild(we), se.appendChild(de);
38431
+ we.classList.add("vue-ui-screenshot-close-button"), we.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>', we.style.outline = "none", we.style.display = "flex", we.style.cursor = "pointer", we.style.borderRadius = "50%", we.style.alignItems = "center", we.style.position = "absolute", we.style.justifyContent = "center", we.style.transformOrigin = "center", we.style.top = `${i.value.style.cancelButton.top}px`, we.style.right = `${i.value.style.cancelButton.right}px`, we.style.background = i.value.style.cancelButton.background, we.style.color = i.value.style.cancelButton.color, we.style.border = i.value.style.cancelButton.border, we.style.height = `${i.value.style.cancelButton.size}px`, we.style.width = `${i.value.style.cancelButton.size}px`, we.addEventListener("click", Ae), de.appendChild(we), se.appendChild(de);
38431
38432
  }
38432
38433
  function P(se) {
38433
38434
  s.value && (U.value = !0, se.touches ? (h.value = se.touches[0].clientX, d.value = se.touches[0].clientY) : (h.value = se.clientX, d.value = se.clientY), w.value = s.value.getBoundingClientRect().width, p.value = s.value.getBoundingClientRect().height, se.target.addEventListener("mousemove", I), se.target.addEventListener("touchmove", I));
@@ -38534,7 +38535,7 @@ const TO = ["id"], QO = { class: "vue-ui-vertical-bar-user-option-item" }, IO =
38534
38535
  const F = document.createElement("DIV");
38535
38536
  F.style.top = "auto", F.style.left = "auto", F.style.right = `${-de}px`, F.style.bottom = `${-de}px`, F.style.cursor = "se-resize", F.classList.add("vue-ui-screenshot-handle-se");
38536
38537
  const B = document.createElement("BUTTON");
38537
- B.innerHTML = `<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /></svg><span>${i.value.translations.captureButton}</span>`, B.classList.add("vue-ui-screenshot-capture-button"), B.id = `vue-ui-screenshot-button-${n.value}`, B.style.position = "absolute", B.style.top = "50%", B.style.left = "50%", B.style.transform = "translate(-50%,-50%)", B.style.background = i.value.style.captureButton.background, B.style.color = i.value.style.captureButton.color, B.style.border = i.value.style.captureButton.border, B.style.outline = "none", B.style.cursor = "pointer", B.style.padding = i.value.style.captureButton.padding, B.style.fontFamily = "inherit", B.style.minHeight = `${i.value.style.captureButton.minHeight}px`, B.style.width = "fit-content", B.style.display = "flex", B.style.alignItems = "center", B.style.justifyContent = "center", B.style.gap = "3px", B.style.borderRadius = `${i.value.style.captureButton.borderRadius}px`, B.style.boxShadow = i.value.style.captureButton.boxShadow, B.style.userSelect = "none", B.style.opacity = "0.95", B.style.textAlign = "left", B.style.fontWeight = i.value.style.captureButton.bold ? "bold" : "normal", B.addEventListener("mouseenter", () => {
38538
+ B.innerHTML = `<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /></svg><span>${i.value.translations.captureButton}</span>`, B.classList.add("vue-ui-screenshot-capture-button"), B.id = `vue-ui-screenshot-button-${n.value}`, B.style.position = "absolute", B.style.top = "50%", B.style.left = "50%", B.style.transform = "translate(-50%,-50%)", B.style.background = i.value.style.captureButton.background, B.style.color = i.value.style.captureButton.color, B.style.border = i.value.style.captureButton.border, B.style.outline = "none", B.style.cursor = "pointer", B.style.padding = i.value.style.captureButton.padding, B.style.fontFamily = i.value.style.captureButton.fontFamily, B.style.minHeight = `${i.value.style.captureButton.minHeight}px`, B.style.width = "fit-content", B.style.display = "flex", B.style.alignItems = "center", B.style.justifyContent = "center", B.style.gap = "3px", B.style.borderRadius = `${i.value.style.captureButton.borderRadius}px`, B.style.boxShadow = i.value.style.captureButton.boxShadow, B.style.userSelect = "none", B.style.opacity = "0.95", B.style.textAlign = "left", B.style.fontWeight = i.value.style.captureButton.bold ? "bold" : "normal", B.addEventListener("mouseenter", () => {
38538
38539
  B.style.opacity = "1";
38539
38540
  }), B.addEventListener("mouseleave", () => {
38540
38541
  B.style.opacity = "0.95";
@@ -38551,7 +38552,8 @@ const TO = ["id"], QO = { class: "vue-ui-vertical-bar-user-option-item" }, IO =
38551
38552
  });
38552
38553
  }
38553
38554
  return t({
38554
- shoot: me
38555
+ shoot: me,
38556
+ close: Ae
38555
38557
  }), (se, de) => (_(), E("div"));
38556
38558
  }
38557
38559
  };
@@ -1,4 +1,4 @@
1
- import { _ as Ha } from "./index-820429cd.js";
1
+ import { _ as Ha } from "./index-535c50d5.js";
2
2
  import "vue";
3
3
  var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Vo(a) {
@@ -1,4 +1,4 @@
1
- import { g as u, b as s, f as V, h as U, e as r, d as t, j as n, a as o, i as f, c, v as d } from "./index-820429cd.js";
1
+ import { g as u, b as s, f as V, h as U, e as r, d as t, j as n, a as o, i as f, c, v as d } from "./index-535c50d5.js";
2
2
  import "vue";
3
3
  export {
4
4
  u as VueUiChestnut,
@@ -355,7 +355,7 @@ end`};e.events.push(["putFont",function(A){(function(o){var s=o.font,l=o.out,c=o
355
355
  `),l.push(` </office:body>
356
356
  `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function qB(t,e){if(e.bookType=="fods")return XB(t,e);var r=ig(),n="",a=[],A=[];return n="mimetype",Qt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Qt(r,n,XB(t,e)),a.push([n,"text/xml"]),A.push([n,"ContentFile"]),n="styles.xml",Qt(r,n,fQ(t,e)),a.push([n,"text/xml"]),A.push([n,"StylesFile"]),n="meta.xml",Qt(r,n,jr+qw()),a.push([n,"text/xml"]),A.push([n,"MetadataFile"]),n="manifest.rdf",Qt(r,n,E6(A)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Qt(r,n,b6(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function $h(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function dQ(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):ja(XA(t))}function gQ(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function Qi(t){var e=t.reduce(function(a,A){return a+A.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(a){r.set(a,n),n+=a.length}),r}function pQ(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var A=0;a>=1;++A,a/=256)t[e+A]=a&255;t[e+15]|=r>=0?0:128}function oc(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function ar(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function Ss(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function nn(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],a=oc(t,r),A=a&7;a=Math.floor(a/8);var o=0,s;if(a==0)break;switch(A){case 0:{for(var l=r[0];t[r[0]++]>=128;);s=t.slice(l,r[0])}break;case 5:o=4,s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=oc(t,r),s=t.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(A," for Field ").concat(a," at offset ").concat(n))}var c={data:s,type:A};e[a]==null?e[a]=[c]:e[a].push(c)}return e}function En(t){var e=[];return t.forEach(function(r,n){r.forEach(function(a){a.data&&(e.push(ar(n*8+a.type)),a.type==2&&e.push(ar(a.data.length)),e.push(a.data))})}),Qi(e)}function qa(t){for(var e,r=[],n=[0];n[0]<t.length;){var a=oc(t,n),A=nn(t.slice(n[0],n[0]+a));n[0]+=a;var o={id:Ss(A[1][0].data),messages:[]};A[2].forEach(function(s){var l=nn(s.data),c=Ss(l[3][0].data);o.messages.push({meta:l,data:t.slice(n[0],n[0]+c)}),n[0]+=c}),(e=A[3])!=null&&e[0]&&(o.merge=Ss(A[3][0].data)>>>0>0),r.push(o)}return r}function ks(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:ar(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ar(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:ar(o.data.length)}],n[2].push({data:En(o.meta),type:2})});var A=En(n);e.push(ar(A.length)),e.push(A),a.forEach(function(o){return e.push(o)})}),Qi(e)}function mQ(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=oc(e,r),a=[];r[0]<e.length;){var A=e[r[0]]&3;if(A==0){var o=e[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=e[r[0]],s>1&&(o|=e[r[0]+1]<<8),s>2&&(o|=e[r[0]+2]<<16),s>3&&(o|=e[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(e.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,c=0;if(A==1?(c=(e[r[0]]>>2&7)+4,l=(e[r[0]++]&224)<<3,l|=e[r[0]++]):(c=(e[r[0]++]>>2)+1,A==2?(l=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(l=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Qi(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(a.push(a[0].slice(-l)),c-=l;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-l,-l+c))}}var u=Qi(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Ya(t){for(var e=[],r=0;r<t.length;){var n=t[r++],a=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(mQ(n,t.slice(r,r+a))),r+=a}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Qi(e)}function Ts(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),a=new Uint8Array(4);e.push(a);var A=ar(n),o=A.length;e.push(A),n<=60?(o++,e.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return Qi(e)}function Tg(t,e){var r=new Uint8Array(32),n=$h(r),a=12,A=0;switch(r[0]=5,t.t){case"n":r[1]=2,pQ(r,a,t.v),A|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,t.v?1:0,!0),A|=2,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(a,e.indexOf(t.v),!0),A|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,A,!0),r.slice(0,a)}function Ng(t,e){var r=new Uint8Array(32),n=$h(r),a=12,A=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(a,t.v,!0),A|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,t.v?1:0,!0),A|=32,a+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(a,e.indexOf(t.v),!0),A|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,A,!0),r.slice(0,a)}function Oi(t){var e=nn(t);return oc(e[1][0].data)}function vQ(t,e,r){var n,a,A,o;if(!((n=t[6])!=null&&n[0])||!((a=t[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(A=t[8])==null?void 0:A[0])==null?void 0:o.data)&&Ss(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=$h(t[7][0].data),u=0,p=[],h=$h(t[4][0].data),d=0,w=[],g=0;g<e.length;++g){if(e[g]==null){c.setUint16(g*2,65535,!0),h.setUint16(g*2,65535);continue}c.setUint16(g*2,u,!0),h.setUint16(g*2,d,!0);var v,m;switch(typeof e[g]){case"string":v=Tg({t:"s",v:e[g]},r),m=Ng({t:"s",v:e[g]},r);break;case"number":v=Tg({t:"n",v:e[g]},r),m=Ng({t:"n",v:e[g]},r);break;case"boolean":v=Tg({t:"b",v:e[g]},r),m=Ng({t:"b",v:e[g]},r);break;default:throw new Error("Unsupported value "+e[g])}p.push(v),u+=v.length,w.push(m),d+=m.length,++l}for(t[2][0].data=ar(l);g<t[7][0].data.length/2;++g)c.setUint16(g*2,65535,!0),h.setUint16(g*2,65535,!0);return t[6][0].data=Qi(p),t[3][0].data=Qi(w),l}function yQ(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=pa(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(Wr(n)));var A=Kh(r,{range:n,header:1}),o=["~Sh33tJ5~"];A.forEach(function(_){return _.forEach(function(B){typeof B=="string"&&o.push(B)})});var s={},l=[],c=cr.read(e.numbers,{type:"base64"});c.FileIndex.map(function(_,B){return[_,c.FullPaths[B]]}).forEach(function(_){var B=_[0],x=_[1];if(B.type==2&&B.name.match(/\.iwa/)){var S=B.content,D=Ya(S),W=qa(D);W.forEach(function(ue){l.push(ue.id),s[ue.id]={deps:[],location:x,type:Ss(ue.messages[0].meta[1][0].data)}})}}),l.sort(function(_,B){return _-B});var u=l.filter(function(_){return _>1}).map(function(_){return[_,ar(_)]});c.FileIndex.map(function(_,B){return[_,c.FullPaths[B]]}).forEach(function(_){var B=_[0];if(_[1],!!B.name.match(/\.iwa/)){var x=qa(Ya(B.content));x.forEach(function(S){S.messages.forEach(function(D){u.forEach(function(W){S.messages.some(function(ue){return Ss(ue.meta[1][0].data)!=11006&&gQ(ue.data,W[1])})&&s[W[0]].deps.push(S.id)})})})}});for(var p=cr.find(c,s[1].location),h=qa(Ya(p.content)),d,w=0;w<h.length;++w){var g=h[w];g.id==1&&(d=g)}var v=Oi(nn(d.messages[0].data)[1][0].data);for(p=cr.find(c,s[v].location),h=qa(Ya(p.content)),w=0;w<h.length;++w)g=h[w],g.id==v&&(d=g);for(v=Oi(nn(d.messages[0].data)[2][0].data),p=cr.find(c,s[v].location),h=qa(Ya(p.content)),w=0;w<h.length;++w)g=h[w],g.id==v&&(d=g);for(v=Oi(nn(d.messages[0].data)[2][0].data),p=cr.find(c,s[v].location),h=qa(Ya(p.content)),w=0;w<h.length;++w)g=h[w],g.id==v&&(d=g);var m=nn(d.messages[0].data);{m[6][0].data=ar(n.e.r+1),m[7][0].data=ar(n.e.c+1);var F=Oi(m[46][0].data),N=cr.find(c,s[F].location),Q=qa(Ya(N.content));{for(var G=0;G<Q.length&&Q[G].id!=F;++G);if(Q[G].id!=F)throw"Bad ColumnRowUIDMapArchive";var z=nn(Q[G].messages[0].data);z[1]=[],z[2]=[],z[3]=[];for(var I=0;I<=n.e.c;++I){var U=[];U[1]=U[2]=[{type:0,data:ar(I+420690)}],z[1].push({type:2,data:En(U)}),z[2].push({type:0,data:ar(I)}),z[3].push({type:0,data:ar(I)})}z[4]=[],z[5]=[],z[6]=[];for(var M=0;M<=n.e.r;++M)U=[],U[1]=U[2]=[{type:0,data:ar(M+726270)}],z[4].push({type:2,data:En(U)}),z[5].push({type:0,data:ar(M)}),z[6].push({type:0,data:ar(M)});Q[G].messages[0].data=En(z)}N.content=Ts(ks(Q)),N.size=N.content.length,delete m[46];var q=nn(m[4][0].data);{q[7][0].data=ar(n.e.r+1);var T=nn(q[1][0].data),L=Oi(T[2][0].data);N=cr.find(c,s[L].location),Q=qa(Ya(N.content));{if(Q[0].id!=L)throw"Bad HeaderStorageBucket";var K=nn(Q[0].messages[0].data);for(M=0;M<A.length;++M){var Y=nn(K[2][0].data);Y[1][0].data=ar(M),Y[4][0].data=ar(A[M].length),K[2][M]={type:K[2][0].type,data:En(Y)}}Q[0].messages[0].data=En(K)}N.content=Ts(ks(Q)),N.size=N.content.length;var se=Oi(q[2][0].data);N=cr.find(c,s[se].location),Q=qa(Ya(N.content));{if(Q[0].id!=se)throw"Bad HeaderStorageBucket";for(K=nn(Q[0].messages[0].data),I=0;I<=n.e.c;++I)Y=nn(K[2][0].data),Y[1][0].data=ar(I),Y[4][0].data=ar(n.e.r+1),K[2][I]={type:K[2][0].type,data:En(Y)};Q[0].messages[0].data=En(K)}N.content=Ts(ks(Q)),N.size=N.content.length;var he=Oi(q[4][0].data);(function(){for(var _=cr.find(c,s[he].location),B=qa(Ya(_.content)),x,S=0;S<B.length;++S){var D=B[S];D.id==he&&(x=D)}var W=nn(x.messages[0].data);{W[3]=[];var ue=[];o.forEach(function(ke,ne){ue[1]=[{type:0,data:ar(ne)}],ue[2]=[{type:0,data:ar(1)}],ue[3]=[{type:2,data:dQ(ke)}],W[3].push({type:2,data:En(ue)})})}x.messages[0].data=En(W);var Ce=ks(B),de=Ts(Ce);_.content=de,_.size=_.content.length})();var ge=nn(q[3][0].data);{var re=ge[1][0];delete ge[2];var le=nn(re.data);{var fe=Oi(le[2][0].data);(function(){for(var _=cr.find(c,s[fe].location),B=qa(Ya(_.content)),x,S=0;S<B.length;++S){var D=B[S];D.id==fe&&(x=D)}var W=nn(x.messages[0].data);{delete W[6],delete ge[7];var ue=new Uint8Array(W[5][0].data);W[5]=[];for(var Ce=0,de=0;de<=n.e.r;++de){var ke=nn(ue);Ce+=vQ(ke,A[de],o),ke[1][0].data=ar(de),W[5].push({data:En(ke),type:2})}W[1]=[{type:0,data:ar(n.e.c+1)}],W[2]=[{type:0,data:ar(n.e.r+1)}],W[3]=[{type:0,data:ar(Ce)}],W[4]=[{type:0,data:ar(n.e.r+1)}]}x.messages[0].data=En(W);var ne=ks(B),Ee=Ts(ne);_.content=Ee,_.size=_.content.length})()}re.data=En(le)}q[3][0].data=En(ge)}m[4][0].data=En(q)}d.messages[0].data=En(m);var Te=ks(h),b=Ts(Te);return p.content=b,p.size=p.content.length,c}function wQ(t){return function(r){for(var n=0;n!=t.length;++n){var a=t[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Lg(t){wQ([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function BQ(t,e){return e.bookType=="ods"?qB(t,e):e.bookType=="numbers"?yQ(t,e):e.bookType=="xlsb"?xQ(t,e):bQ(t,e)}function xQ(t,e){_s=1024,t&&!t.SSF&&(t.SSF=ra(kr)),t&&t.SSF&&(Eh(),Ch(t.SSF),e.revssf=_h(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ac?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=FB.indexOf(e.bookType)>-1,a=Gw();Lg(e=e||{});var A=ig(),o="",s=0;if(e.cellXfs=[],Di(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Qt(A,o,Yw(t.Props,e)),a.coreprops.push(o),nr(e.rels,2,o,Xt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}for(t.Props.Worksheets=t.Props.SheetNames.length,Qt(A,o,Zw(t.Props)),a.extprops.push(o),nr(e.rels,3,o,Xt.EXT_PROPS),t.Custprops!==t.Props&&Bn(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Qt(A,o,eB(t.Custprops)),a.custprops.push(o),nr(e.rels,4,o,Xt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},p=t.Sheets[t.SheetNames[s-1]],h=(p||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Qt(A,o,ED(s-1,o,e,t,u)),a.sheets.push(o),nr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(p){var d=p["!comments"],w=!1,g="";d&&d.length>0&&(g="xl/comments"+s+"."+r,Qt(A,g,SD(d,g)),a.comments.push(g),nr(u,-1,"../comments"+s+"."+r,Xt.CMNT),w=!0),p["!legacy"]&&w&&Qt(A,"xl/drawings/vmlDrawing"+s+".vml",EB(s,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&Qt(A,Ww(o),Cs(u))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,Qt(A,o,FD(e.Strings,o,e)),a.strs.push(o),nr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),o="xl/workbook."+r,Qt(A,o,CD(t,o)),a.workbooks.push(o),nr(e.rels,1,o,Xt.WB),o="xl/theme/theme1.xml",Qt(A,o,bB(t.Themes,e)),a.themes.push(o),nr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),o="xl/styles."+r,Qt(A,o,_D(t,o,e)),a.styles.push(o),nr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Qt(A,o,t.vbaraw),a.vba.push(o),nr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),o="xl/metadata."+r,Qt(A,o,kD(o)),a.metadata.push(o),nr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),Qt(A,"[Content_Types].xml",jw(a,e)),Qt(A,"_rels/.rels",Cs(e.rels)),Qt(A,"xl/_rels/workbook."+r+".rels",Cs(e.wbrels)),delete e.revssf,delete e.ssf,A}function bQ(t,e){_s=1024,t&&!t.SSF&&(t.SSF=ra(kr)),t&&t.SSF&&(Eh(),Ch(t.SSF),e.revssf=_h(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ac?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=FB.indexOf(e.bookType)>-1,a=Gw();Lg(e=e||{});var A=ig(),o="",s=0;if(e.cellXfs=[],Di(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Qt(A,o,Yw(t.Props,e)),a.coreprops.push(o),nr(e.rels,2,o,Xt.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],c=0;c<t.SheetNames.length;++c)(t.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,Qt(A,o,Zw(t.Props)),a.extprops.push(o),nr(e.rels,3,o,Xt.EXT_PROPS),t.Custprops!==t.Props&&Bn(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Qt(A,o,eB(t.Custprops)),a.custprops.push(o),nr(e.rels,4,o,Xt.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var p={"!id":{}},h=t.Sheets[t.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Qt(A,o,MB(s-1,e,t,p)),a.sheets.push(o),nr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(h){var w=h["!comments"],g=!1,v="";if(w&&w.length>0){var m=!1;w.forEach(function(F){F[1].forEach(function(N){N.T==!0&&(m=!0)})}),m&&(v="xl/threadedComments/threadedComment"+s+"."+r,Qt(A,v,e8(w,u,e)),a.threadedcomments.push(v),nr(p,-1,"../threadedComments/threadedComment"+s+"."+r,Xt.TCMNT)),v="xl/comments"+s+"."+r,Qt(A,v,_B(w)),a.comments.push(v),nr(p,-1,"../comments"+s+"."+r,Xt.CMNT),g=!0}h["!legacy"]&&g&&Qt(A,"xl/drawings/vmlDrawing"+s+".vml",EB(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}p["!id"].rId1&&Qt(A,Ww(o),Cs(p))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,Qt(A,o,gB(e.Strings,e)),a.strs.push(o),nr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),o="xl/workbook."+r,Qt(A,o,VB(t)),a.workbooks.push(o),nr(e.rels,1,o,Xt.WB),o="xl/theme/theme1.xml",Qt(A,o,bB(t.Themes,e)),a.themes.push(o),nr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),o="xl/styles."+r,Qt(A,o,wB(t,e)),a.styles.push(o),nr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Qt(A,o,t.vbaraw),a.vba.push(o),nr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),o="xl/metadata."+r,Qt(A,o,CB()),a.metadata.push(o),nr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),u.length>1&&(o="xl/persons/person.xml",Qt(A,o,t8(u)),a.people.push(o),nr(e.wbrels,-1,"persons/person.xml",Xt.PEOPLE)),Qt(A,"[Content_Types].xml",jw(a,e)),Qt(A,"_rels/.rels",Cs(e.rels)),Qt(A,"xl/_rels/workbook."+r+".rels",Cs(e.wbrels)),delete e.revssf,delete e.ssf,A}function CQ(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=KA(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function YB(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return jl(e.file,cr.write(t,{type:Yt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return cr.write(t,e)}function EQ(t,e){var r=ra(e||{}),n=BQ(t,r);return _Q(n,r)}function _Q(t,e){var r={},n=Yt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var a=t.FullPaths?cr.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(e.type=="binary"||e.type=="base64")return a;a=new Uint8Array(vh(a))}return e.password&&typeof encrypt_agile<"u"?YB(encrypt_agile(a,e.password),e):e.type==="file"?jl(e.file,a):e.type=="string"?Xl(a):a}function FQ(t,e){var r=e||{},n=$D(t,r);return YB(n,r)}function _A(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return zl(XA(n));case"binary":return XA(n);case"string":return t;case"file":return jl(e.file,n,"utf8");case"buffer":return Yt?GA(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):_A(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function SQ(t,e){switch(e.type){case"base64":return zl(t);case"binary":return t;case"string":return t;case"file":return jl(e.file,t,"binary");case"buffer":return Yt?GA(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function zh(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?zl(r):e.type=="string"?Xl(r):r;case"file":return jl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function JB(t,e){tN(),fD(t);var r=ra(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=JB(t,r);return r.type="array",vh(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=t.SheetNames.indexOf(r.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return _A(HD(t,r),r);case"slk":case"sylk":return _A(cL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"htm":case"html":return _A(KB(t.Sheets[t.SheetNames[a]],r),r);case"txt":return SQ(ex(t.Sheets[t.SheetNames[a]],r),r);case"csv":return _A(Ug(t.Sheets[t.SheetNames[a]],r),r,"\uFEFF");case"dif":return _A(uL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"dbf":return zh(lL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"prn":return _A(hL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"rtf":return _A(yL.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"eth":return _A(fB.from_sheet(t.Sheets[t.SheetNames[a]],r),r);case"fods":return _A(qB(t,r),r);case"wk1":return zh(dB.sheet_to_wk1(t.Sheets[t.SheetNames[a]],r),r);case"wk3":return zh(dB.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),zh(zB(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),FQ(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return EQ(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function kQ(t,e,r,n,a,A,o,s){var l=bn(r),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),p=!0,h=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!o||t[r])for(var d=e.s.c;d<=e.e.c;++d){var w=o?t[r][d]:t[n[d]+l];if(w===void 0||w.t===void 0){if(c===void 0)continue;A[d]!=null&&(h[A[d]]=c);continue}var g=w.v;switch(w.t){case"z":if(g==null)break;continue;case"e":g=g==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+w.t)}if(A[d]!=null){if(g==null)if(w.t=="e"&&g===null)h[A[d]]=null;else if(c!==void 0)h[A[d]]=c;else if(u&&g===null)h[A[d]]=null;else continue;else h[A[d]]=u&&(w.t!=="n"||w.t==="n"&&s.rawNumbers!==!1)?g:qA(w,g,s);g!=null&&(p=!1)}}return{row:h,isempty:p}}function Kh(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,A=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=c.range!=null?c.range:t["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=Br(u);break;case"number":l=Br(t["!ref"]),l.s.r=u;break;default:l=u}n>0&&(a=0);var p=bn(l.s.r),h=[],d=[],w=0,g=0,v=Array.isArray(t),m=l.s.r,F=0,N={};v&&!t[m]&&(t[m]=[]);var Q=c.skipHidden&&t["!cols"]||[],G=c.skipHidden&&t["!rows"]||[];for(F=l.s.c;F<=l.e.c;++F)if(!(Q[F]||{}).hidden)switch(h[F]=Dn(F),r=v?t[m][F]:t[h[F]+p],n){case 1:A[F]=F-l.s.c;break;case 2:A[F]=h[F];break;case 3:A[F]=c.header[F-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=qA(r,null,c),g=N[o]||0,!g)N[o]=1;else{do s=o+"_"+g++;while(N[s]);N[o]=g,N[s]=1}A[F]=s}for(m=l.s.r+a;m<=l.e.r;++m)if(!(G[m]||{}).hidden){var z=kQ(t,l,m,h,n,A,v,c);(z.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(d[w++]=z.row)}return d.length=w,d}var ZB=/"/g;function TQ(t,e,r,n,a,A,o,s){for(var l=!0,c=[],u="",p=bn(r),h=e.s.c;h<=e.e.c;++h)if(n[h]){var d=s.dense?(t[r]||[])[h]:t[n[h]+p];if(d==null)u="";else if(d.v!=null){l=!1,u=""+(s.rawNumbers&&d.t=="n"?d.v:qA(d,null,s));for(var w=0,g=0;w!==u.length;++w)if((g=u.charCodeAt(w))===a||g===A||g===34||s.forceQuotes){u='"'+u.replace(ZB,'""')+'"';break}u=="ID"&&(u='"ID"')}else d.f!=null&&!d.F?(l=!1,u="="+d.f,u.indexOf(",")>=0&&(u='"'+u.replace(ZB,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function Ug(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var a=Br(t["!ref"]),A=n.FS!==void 0?n.FS:",",o=A.charCodeAt(0),s=n.RS!==void 0?n.RS:`
357
357
  `,l=s.charCodeAt(0),c=new RegExp((A=="|"?"\\|":A)+"+$"),u="",p=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],d=n.skipHidden&&t["!rows"]||[],w=a.s.c;w<=a.e.c;++w)(h[w]||{}).hidden||(p[w]=Dn(w));for(var g=0,v=a.s.r;v<=a.e.r;++v)(d[v]||{}).hidden||(u=TQ(t,a,v,p,o,l,A,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((g++?s:"")+u)));return delete n.dense,r.join("")}function ex(t,e){e||(e={}),e.FS=" ",e.RS=`
358
- `;var r=Ug(t,e);return r}function NQ(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=Br(t["!ref"]),A="",o=[],s,l=[],c=Array.isArray(t);for(s=a.s.c;s<=a.e.c;++s)o[s]=Dn(s);for(var u=a.s.r;u<=a.e.r;++u)for(A=bn(u),s=a.s.c;s<=a.e.c;++s)if(e=o[s]+A,r=c?(t[u]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function tx(t,e,r){var n=r||{},a=+!n.skipHeader,A=t||{},o=0,s=0;if(A&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?un(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+e.length-1+a}};if(A["!ref"]){var p=Br(A["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),o==-1&&(o=p.e.r+1,u.e.r=o+e.length-1+a)}else o==-1&&(o=0,u.e.r=e.length-1+a);var h=n.header||[],d=0;e.forEach(function(g,v){Bn(g).forEach(function(m){(d=h.indexOf(m))==-1&&(h[d=h.length]=m);var F=g[m],N="z",Q="",G=rr({c:s+d,r:o+v+a});c=sc(A,G),F&&typeof F=="object"&&!(F instanceof Date)?A[G]=F:(typeof F=="number"?N="n":typeof F=="boolean"?N="b":typeof F=="string"?N="s":F instanceof Date?(N="d",n.cellDates||(N="n",F=ta(F)),Q=n.dateNF||kr[14]):F===null&&n.nullError&&(N="e",F=0),c?(c.t=N,c.v=F,delete c.w,delete c.R,Q&&(c.z=Q)):A[G]=c={t:N,v:F},Q&&(c.z=Q))})}),u.e.c=Math.max(u.e.c,s+h.length-1);var w=bn(o);if(a)for(d=0;d<h.length;++d)A[Dn(d+s)+w]={t:"s",v:h[d]};return A["!ref"]=Wr(u),A}function LQ(t,e){return tx(null,t,e)}function sc(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=un(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?sc(t,rr(e)):sc(t,rr({r:e,c:r||0}))}function UQ(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function IQ(){return{SheetNames:[],Sheets:{}}}function DQ(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var A=r.match(/(^.*?)(\d+)$/);a=A&&+A[2]||0;var o=A&&A[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=o+a)!=-1;++a);}if(HB(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function QQ(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=UQ(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function OQ(t,e){return t.z=e,t}function rx(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function PQ(t,e,r){return rx(t,"#"+e,r)}function MQ(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function RQ(t,e,r,n){for(var a=typeof e!="string"?e:Br(e),A=typeof e=="string"?e:Wr(e),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=sc(t,o,s);l.t="n",l.F=A,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return t}var Ig={encode_col:Dn,encode_row:bn,encode_cell:rr,encode_range:Wr,decode_col:gg,decode_row:dg,split_cell:r6,decode_cell:un,decode_range:pa,format_cell:qA,sheet_add_aoa:Pw,sheet_add_json:tx,sheet_add_dom:GB,aoa_to_sheet:Bs,json_to_sheet:LQ,table_to_sheet:jB,table_to_book:uQ,sheet_to_csv:Ug,sheet_to_txt:ex,sheet_to_json:Kh,sheet_to_html:KB,sheet_to_formulae:NQ,sheet_to_row_object_array:Kh,sheet_get_cell:sc,book_new:IQ,book_append_sheet:DQ,book_set_sheet_visibility:QQ,cell_set_number_format:OQ,cell_set_hyperlink:rx,cell_set_internal_link:PQ,cell_add_comment:MQ,sheet_set_array_formula:RQ,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Gh(t,e,r,n,a){let{series:A}=t;if(!A||t.base===0)return{...A,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const o=[...A].map(c=>c.value).reduce((c,u)=>c+u,0),s=[];let l=0;for(let c=0;c<A.length;c+=1){let u=A[c].value/o;const p=u*(Math.PI*1.9999),d=A[c].value/2/o*(Math.PI*2),{startX:w,startY:g,endX:v,endY:m,path:F}=ax([e,r],[n,a],[l,p],110);s.push({cx:e,cy:r,...A[c],proportion:u,ratio:p,path:F,startX:w,startY:g,endX:v,endY:m,center:ax([e,r],[n*1.45,a*1.45],[l,d],110)}),l+=p}return s}function jh([t,e],[r,n]){return[t+r,e+n]}function Wh([[t,e],[r,n]],[a,A]){return[t*a+e*A,r*a+n*A]}function nx(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function ax([t,e],[r,n],[a,A],o){A=A%(2*Math.PI);const s=nx(o),[l,c]=jh(Wh(s,[r*Math.cos(a),n*Math.sin(a)]),[t,e]),[u,p]=jh(Wh(s,[r*Math.cos(a+A),n*Math.sin(a+A)]),[t,e]),h=A>Math.PI?1:0,d=A>0?1:0;return{startX:l,startY:c,endX:u,endY:p,path:`M${l} ${c} A ${[r,n,o/(2*Math.PI)*360,h,d,u,p].join(" ")}`}}function La({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(n=>{if(Object.hasOwn(e,n)){const a=e[n];typeof a=="boolean"?r[n]=a:["string","number"].includes(typeof a)?$Q(a)&&(r[n]=a):Array.isArray(r[n])?HQ({userConfig:e,key:n})&&(r[n]=a):VQ({userConfig:e,key:n})&&(r[n]=La({defaultConfig:r[n],userConfig:a}))}}),r}function HQ({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length>=0}function VQ({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function $Q(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function zQ(t){return![void 0,NaN,1/0,-1/0].includes(t)}function KQ(t,e=0){return isNaN(t)?e:t}const Ut=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],Ar=["00","03","05","08","0A","0D","0F","12","14","17","1A","1C","1F","21","24","26","29","2B","2E","30","33","36","38","3B","3D","40","42","45","47","4A","4D","4F","52","54","57","59","5C","5E","61","63","66","69","6B","6E","70","73","75","78","7A","7D","80","82","85","87","8A","8C","8F","91","94","96","99","9C","9E","A1","A3","A6","A8","AB","AD","B0","B3","B5","B8","BA","BD","BF","C2","C4","C7","C9","CC","CF","D1","D4","D6","D9","DB","DE","E0","E3","E6","E8","EB","ED","F0","F2","F5","F7","FA","FC","FF"];function Nr(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,n=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;if([void 0,null,NaN].includes(t))return null;if(t==="transparent")return"#FFFFFF00";let a;if(a=t.match(e)){const[,A,o,s]=a;return`#${A}${o}${s}`}else if(a=t.match(r)){const[,A,o,s]=a;return`#${Ns(A)}${Ns(o)}${Ns(s)}`}else if(a=t.match(n)){const[,A,o,s]=a,l=GQ(Number(A),Number(o),Number(s));return`#${Ns(l[0])}${Ns(l[1])}${Ns(l[2])}`}return null}function Ns(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function GQ(t,e,r){t/=360,e/=100,r/=100;let n,a,A;if(e===0)n=a=A=r;else{const o=(c,u,p)=>(p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?c+(u-c)*6*p:p<.5?u:p<.6666666666666666?c+(u-c)*(.6666666666666666-p)*6:c),s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),a=o(l,s,t),A=o(l,s,t-1/3)}return[Math.round(n*255),Math.round(a*255),Math.round(A*255)]}function _o(t,e){const r=c=>({r:parseInt(c.substring(1,3),16),g:parseInt(c.substring(3,5),16),b:parseInt(c.substring(5,7),16)}),n=({r:c,g:u,b:p})=>{c/=255,u/=255,p/=255;const h=Math.max(c,u,p),d=Math.min(c,u,p);let w,g,v=(h+d)/2;if(h===d)w=g=0;else{const m=h-d;switch(g=v>.5?m/(2-h-d):m/(h+d),h){case c:w=(u-p)/m+(u<p?6:0);break;case u:w=(p-c)/m+2;break;case p:w=(c-u)/m+4;break}w/=6}return{h:w,s:g,l:v}},a=({h:c,s:u,l:p})=>{let h,d,w;if(u===0)h=d=w=p;else{const g=(F,N,Q)=>(Q<0&&(Q+=1),Q>1&&(Q-=1),Q<.16666666666666666?F+(N-F)*6*Q:Q<.5?N:Q<.6666666666666666?F+(N-F)*(.6666666666666666-Q)*6:F),v=p<.5?p*(1+u):p+u-p*u,m=2*p-v;h=g(m,v,c+.3333333333333333),d=g(m,v,c),w=g(m,v,c-.3333333333333333)}return{r:Math.round(h*255),g:Math.round(d*255),b:Math.round(w*255)}},A=r(t),o=n(A);o.h+=e,o.h=(o.h+1)%1;const s=a(o);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`}function jQ({centerX:t,centerY:e,outerPoints:r,radius:n,rotation:a}){const A=Math.PI/r,o=a;let s="";const l=[];for(let c=0;c<r*2;c+=1){let u=t+Math.cos(c*A+o)*n,p=e+Math.sin(c*A+o)*n;s+=`${u},${p} `,l.push({x:u,y:p})}return{path:`M${s}Z`,coordinates:l}}function Fo({plot:t,radius:e,sides:r,rotation:n=0}){const a=t.x,A=t.y,o=r/2;return jQ({centerX:a,centerY:A,outerPoints:o,radius:e+1,rotation:n})}function WQ({centerX:t,centerY:e,innerCirclePoints:r,innerRadius:n,outerRadius:a}){const A=Math.PI/r,o=60,s=r*2;let l="";for(let c=0;c<s;c+=1){let p=c%2==0?a:n,h=t+Math.cos(c*A+o)*p,d=e+Math.sin(c*A+o)*p;l+=`${h},${d} `}return l}function XQ({plot:t,radius:e}){const r=t.x,n=t.y,a=5,A=e*3.5/a,s=A*2;return WQ({centerX:r,centerY:n,innerCirclePoints:a,innerRadius:A,outerRadius:s})}function qQ({series:t}){t=t.sort((c,u)=>c.x-u.x);function e(c,u,p){const h=(c.x-u.x)*(p.x-u.x)+(c.y-u.y)*(p.y-u.y),d=(c.x-u.x)*(p.y-u.y)-(p.x-u.x)*(c.y-u.y);return Math.atan2(d,h)}const r=[];let n;n=t[0];for(const c of t)c.x<n.x&&(n=c);r[0]=n;let a,A,o,s;a=r[0],A={x:a.x,y:a.y+1};do{o=Math.PI;for(const c of t)n=e(A,a,c),n<=o&&(s=c,o=n);s!==r[0]&&(r.push(s),A=a,a=s)}while(s!==r[0]);let l;return r.forEach(c=>{c&&c.x&&c.y&&(l+=`${Math.round(c.x)},${Math.round(c.y)} `)}),l=l.replaceAll("undefined",""),l}function Dg(t){if(t){let e=t;e.charAt(0)!=="#"&&(e=this.rgbToHex(t)),e=e.substring(1,7);let r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=[r/255,n/255,a/255].map(l=>l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4));return .2126*o[0]+.7152*o[1]+.0722*o[2]>.3?"#000000":"#FFFFFF"}return"#000000"}function Ua(t){for(const e in t)typeof t[e]=="object"&&!Array.isArray(t[e])&&t[e]!==null?Ua(t[e]):(e==="color"||e==="backgroundColor"||e==="stroke")&&(t[e]===""?t[e]="#000000":t[e]==="transparent"?t[e]="#FFFFFF00":t[e]=Nr(t[e]));return t}function JA(t,e){function r(l){let c=new ArrayBuffer(l.length),u=new Uint8Array(c);for(let p=0;p<l.length;p++)u[p]=l.charCodeAt(p)&255;return c}const n=Ig.book_new(),a=Ig.aoa_to_sheet(t);Ig.book_append_sheet(n,a,"Sheet1");const A=JB(n,{bookType:"xlsx",type:"binary"}),o=new Blob([r(A)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=document.createElement("a");s.href=window.URL.createObjectURL(o),s.download=`${e.replaceAll(" ","_")}.xlsx`,s.click(),window.URL.revokeObjectURL(s.href)}function Ax(t){let e,r,n,a;const A=t.length;let o=0,s=0,l=0,c=0;for(const{x:h,y:d}of t)o+=h,s+=d,l+=h*d,c+=h*h;const u=(A*l-o*s)/(A*c-o*o),p=(s-u*o)/A;return e=t[0].x,n=t[A-1].x,r=u*e+p,a=u*n+p,{x1:e,y1:r,x2:n,y2:a,slope:u}}const Ja={vue_ui_table:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},vue_ui_xy:{chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,zoom:{show:!0,color:"#2D353C"},padding:{top:36,right:12,bottom:12,left:48},highlighter:{color:"#2D353C",opacity:5},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6,showOnlyFirstAndLast:!1}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}},showTable:!1},vue_ui_donut:{style:{fontFamily:"inherit",chart:{useGradient:!0,gradientIntensity:40,backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!1,labels:{dataLabels:{show:!0,hideUnderValue:3},percentage:{color:"#2D353C",bold:!0,fontSize:18},name:{color:"#2D353C",bold:!1,fontSize:14},hollow:{total:{show:!0,bold:!1,fontSize:18,color:"#AAAAAA",text:"Total",offsetY:0,value:{color:"#2D353C",fontSize:18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0}},average:{show:!0,bold:!1,fontSize:18,color:"#AAAAAA",text:"Average",offsetY:0,value:{color:"#2D353C",fontSize:18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0}}}},donut:{strokeWidth:64}},legend:{backgroundColor:"#FFFFFF",color:"#2D353C",show:!0,fontSize:16,bold:!1,roundingValue:0,roundingPercentage:0},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,color:"#2D353C",backgroundColor:"#FFFFFF",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",useDiv:"Title & legend inside",showTable:"Show table"}},translations:{total:"Total",average:"Average"},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}}},vue_ui_waffle:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{grid:{size:20,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:"#2D353C",strokeWidth:1,useGradient:!0,gradientIntensity:40},useDiv:!0},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}}},vue_ui_radar:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,plots:{show:!0,radius:2},outerPolygon:{stroke:"#CCCCCC",strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,stroke:"#e1e5e8",strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:12,color:"#2D353C"}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingPercentage:0}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},translations:{target:"Target"}},vue_ui_quadrant:{style:{fontFamily:"inherit",chart:{height:512,width:512,backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,labels:{quadrantLabels:{show:!0,tl:{text:"",color:"#2D353C",fontSize:16,bold:!0},tr:{text:"",color:"#2D353C",fontSize:16,bold:!0},br:{text:"",color:"#2D353C",fontSize:16,bold:!0},bl:{text:"",color:"#2D353C",fontSize:16,bold:!0}},plotLabels:{show:!0,fontSize:10,color:"#2D353C",offsetY:8},axisLabels:{show:!0,fontSize:14,color:{positive:"#2D353C",negative:"#2D353C"}}},grid:{stroke:"#e1e5e8",strokeWidth:1.5,showArrows:!0,graduations:{stroke:"#e1e5e8",strokeWidth:.5,show:!0,steps:5,fill:!0,color:"#E1E5E8",roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:""},yAxis:{min:-100,max:100,auto:!0,name:""}},plots:{radius:6,outline:!0,outlineColor:"#FFFFFF",outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table",showPlotLabels:"Show plot labels"}},translations:{category:"Category",item:"Item",side:"Side"}},vue_ui_gauge:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",animation:{use:!0,speed:1,acceleration:1},layout:{useDiv:!1,track:{size:1,useGradient:!0,gradientIntensity:40},markers:{size:1,color:"#2D353C",strokeWidth:1,stroke:"#2D353C",backgroundColor:"#FFFFFF",bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0},pointer:{size:1,stroke:"#2D353C",strokeWidth:12,useRatingColor:!0,color:"#CCCCCC",circle:{radius:10,stroke:"#2D353C",strokeWidth:2,color:"#FFFFFF"}}},legend:{fontSize:48,prefix:"",suffix:"",roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:"#2D353C"},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title inside",showTable:"Show table"}},translations:{base:"Base"}},vue_ui_chestnut:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{grandTotal:{show:!0,fontSize:20,bold:!0,suffix:"",prefix:"",roundingValue:0,color:"#2D353C",text:"Grand total",offsetY:0},roots:{stroke:"#FFFFFF",strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:"#FFFFFF",labels:{show:!0,fontSize:16,adaptColorToBackground:!0,color:"#FFFFFF",bold:!0,roundingValue:0,prefix:"",suffix:"",name:{color:"#2D353C",fontSize:16,bold:!0}}},verticalSeparator:{stroke:"#FFFFFF",strokeWidth:5},links:{opacity:10},branches:{stroke:"#FFFFFF",strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:"#FFFFFF",widthRatio:1.5,labels:{show:!0,fontSize:14,color:"#2D353C",bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:14,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:"#2D353C",fontSize:12,bold:!0,prefix:"",suffix:""},core:{total:{color:"#2D353C",fontSize:24,bold:!1},value:{color:"#2D353C",fontSize:24,bold:!0,prefix:"",suffix:""}}}}},legend:{fontSize:16,color:"#2D353C",roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},title:{color:"#2D353C",fontSize:20,text:"",bold:!0,offsetY:0,subtitle:{text:"",color:"#CCCCCC",bold:!1,fontSize:16,offsetY:0}}}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8",translations:{rootName:"root name",rootValue:"root value",rootToTotal:"%/total",branchName:"branch name",branchValue:"branch value",branchToRoot:"%/root",branchToTotal:"%/total",nutName:"nut name",nutValue:"nut value",nutToBranch:"%/branch",nutToRoot:"%/root",nutToTotal:"%/total"}},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}},userOptions:{show:!0,title:"options",labels:{showTable:"Show table"}},translations:{total:"Total",proportionToTree:"of grand total",of:"of"}},vue_ui_onion:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",useGradient:!1,gradientIntensity:20,layout:{useDiv:!0,gutter:{color:"#e1e5e8",width:.62},track:{width:.62},labels:{show:!0,fontSize:14,color:"#2D353C",roundingValue:0,roundingPercentage:0,bold:!0,offsetY:0,offsetX:0,value:{show:!0},percentage:{show:!0}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0},translations:{value:"Value",percentage:"Percentage",serie:"Serie"}}},vue_ui_vertical_bar:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,bars:{sort:"desc",useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:64,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:"#FFFFFF",dataLabels:{color:"#2D353C",bold:!0,fontSize:12,value:{show:!0,roundingValue:0,prefix:"",suffix:""},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:"#2D353C",bold:!1,fontSize:10,offsetX:0},parentLabels:{show:!0,color:"#2D353C",bold:!1,fontSize:10,offsetX:0}},highlighter:{color:"#2D353C",opacity:5},separators:{show:!0,color:"#e1e5e8",strokeWidth:1}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,fontSize:14,color:"#2D353C",backgroundColor:"#FFFFFF",bold:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table",sort:"Sort desc"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}},translations:{parentName:"Serie",childName:"Child",value:"value",percentageToTotal:"%/total",percentageToSerie:"%/serie"}},vue_ui_screenshot:{mode:"download",quality:1,style:{info:{background:"#FFFFFF",bold:!0,border:"none",borderRadius:4,boxShadowCss:"0 6px 12px -6px rgba(0,0,0,0.2)",color:"#2D353C",fontFamily:"inherit",fontSize:14,minWidth:300,padding:12,top:-100},captureButton:{background:"#E1E5E8",bold:!0,border:"none",borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",color:"#2D353C",fontSize:14,minHeight:40,padding:"8px 12px"},cancelButton:{background:"#F17171",border:"none",borderRadius:10,color:"#FFFFFF",right:-14,size:28,top:-14},captureArea:{background:"radial-gradient(transparent, rgba(0,0,0,0.15))",border:"dashed 4px #2D353C",initialHeight:200,initialWidth:200},handles:{background:"#FFFFFF",border:"4px solid #2D353C",borderRadius:4,size:40}},translations:{captureButton:"capture",info:"Resize or move and click to capture"}}},OAe="",FA=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},YQ={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`,e=Math.max(...this.dataset.map(n=>n.series.length)),r={start:0,end:e};return{opacity:Ar,useSafeValues:!0,palette:Ut,defaultConfig:Ja.vue_ui_xy,clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t,slicer:r,maxX:e}},computed:{chartConfig(){if(!Object.keys(this.config||{}).length)return this.defaultConfig;const t=this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config});return this.convertConfigColors(t)},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,n)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*n*this.absoluteDataset.filter(a=>a.type==="bar").filter(a=>!this.segregatedSeries.includes(a.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[n]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){const t=Math.min(...this.safeDataset.filter(e=>!this.segregatedSeries.includes(e.id)).map(e=>Math.min(...e.series)));return t>0?0:t},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.chartConfig.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=this.relativeDataset.map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.timeLabels.forEach((r,n)=>{const a=[r];this.relativeDataset.forEach(A=>{a.push(this.canShowValue(A.absoluteValues[n])?Number(A.absoluteValues[n].toFixed(this.chartConfig.table.rounding)):"")}),e.push(a)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(a=>({name:a.name,color:a.color,type:a.type,value:a.absoluteValues.find((A,o)=>o===this.selectedSerieIndex)}));let e="",r=t.map(a=>a.value).filter(a=>this.isSafeValue(a)&&a!==null).reduce((a,A)=>Math.abs(a)+Math.abs(A),0);const n=this.timeLabels[this.selectedSerieIndex];return n&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${n}</div>`),t.forEach(a=>{this.isSafeValue(a.value)&&a.value!==null&&(e+=`<div><span style="color:${a.color}; margin-right: 3px">${this.icons[a.type]}</span>${a.name} : <b>${this.chartConfig.chart.tooltip.showValue?a.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(a.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,n=48;if(t&&e){const{width:a,height:A}=t.getBoundingClientRect(),o=e.getBoundingClientRect();this.clientPosition.x+a/2>o.right?r=-a:this.clientPosition.x-a/2<o.left?r=0:r=-a/2,this.clientPosition.y+A>o.bottom&&(n=-A-48)}return{top:this.clientPosition.y+n,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let a=5;a>0;a-=1){const A=t*a;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*a),value:A})}const r=this.closestDecimal(this.min/5),n=[];for(let a=5;a>=0;a-=1){const A=Math.abs(r)*a;n.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*a),value:-A})}return[...e,...n]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,n=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${n})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",n),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,n)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
358
+ `;var r=Ug(t,e);return r}function NQ(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var a=Br(t["!ref"]),A="",o=[],s,l=[],c=Array.isArray(t);for(s=a.s.c;s<=a.e.c;++s)o[s]=Dn(s);for(var u=a.s.r;u<=a.e.r;++u)for(A=bn(u),s=a.s.c;s<=a.e.c;++s)if(e=o[s]+A,r=c?(t[u]||[])[s]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function tx(t,e,r){var n=r||{},a=+!n.skipHeader,A=t||{},o=0,s=0;if(A&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?un(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+e.length-1+a}};if(A["!ref"]){var p=Br(A["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),o==-1&&(o=p.e.r+1,u.e.r=o+e.length-1+a)}else o==-1&&(o=0,u.e.r=e.length-1+a);var h=n.header||[],d=0;e.forEach(function(g,v){Bn(g).forEach(function(m){(d=h.indexOf(m))==-1&&(h[d=h.length]=m);var F=g[m],N="z",Q="",G=rr({c:s+d,r:o+v+a});c=sc(A,G),F&&typeof F=="object"&&!(F instanceof Date)?A[G]=F:(typeof F=="number"?N="n":typeof F=="boolean"?N="b":typeof F=="string"?N="s":F instanceof Date?(N="d",n.cellDates||(N="n",F=ta(F)),Q=n.dateNF||kr[14]):F===null&&n.nullError&&(N="e",F=0),c?(c.t=N,c.v=F,delete c.w,delete c.R,Q&&(c.z=Q)):A[G]=c={t:N,v:F},Q&&(c.z=Q))})}),u.e.c=Math.max(u.e.c,s+h.length-1);var w=bn(o);if(a)for(d=0;d<h.length;++d)A[Dn(d+s)+w]={t:"s",v:h[d]};return A["!ref"]=Wr(u),A}function LQ(t,e){return tx(null,t,e)}function sc(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=un(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?sc(t,rr(e)):sc(t,rr({r:e,c:r||0}))}function UQ(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function IQ(){return{SheetNames:[],Sheets:{}}}function DQ(t,e,r,n){var a=1;if(!r)for(;a<=65535&&t.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var A=r.match(/(^.*?)(\d+)$/);a=A&&+A[2]||0;var o=A&&A[1]||r;for(++a;a<=65535&&t.SheetNames.indexOf(r=o+a)!=-1;++a);}if(HB(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function QQ(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=UQ(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function OQ(t,e){return t.z=e,t}function rx(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function PQ(t,e,r){return rx(t,"#"+e,r)}function MQ(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function RQ(t,e,r,n){for(var a=typeof e!="string"?e:Br(e),A=typeof e=="string"?e:Wr(e),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=sc(t,o,s);l.t="n",l.F=A,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return t}var Ig={encode_col:Dn,encode_row:bn,encode_cell:rr,encode_range:Wr,decode_col:gg,decode_row:dg,split_cell:r6,decode_cell:un,decode_range:pa,format_cell:qA,sheet_add_aoa:Pw,sheet_add_json:tx,sheet_add_dom:GB,aoa_to_sheet:Bs,json_to_sheet:LQ,table_to_sheet:jB,table_to_book:uQ,sheet_to_csv:Ug,sheet_to_txt:ex,sheet_to_json:Kh,sheet_to_html:KB,sheet_to_formulae:NQ,sheet_to_row_object_array:Kh,sheet_get_cell:sc,book_new:IQ,book_append_sheet:DQ,book_set_sheet_visibility:QQ,cell_set_number_format:OQ,cell_set_hyperlink:rx,cell_set_internal_link:PQ,cell_add_comment:MQ,sheet_set_array_formula:RQ,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Gh(t,e,r,n,a){let{series:A}=t;if(!A||t.base===0)return{...A,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const o=[...A].map(c=>c.value).reduce((c,u)=>c+u,0),s=[];let l=0;for(let c=0;c<A.length;c+=1){let u=A[c].value/o;const p=u*(Math.PI*1.9999),d=A[c].value/2/o*(Math.PI*2),{startX:w,startY:g,endX:v,endY:m,path:F}=ax([e,r],[n,a],[l,p],110);s.push({cx:e,cy:r,...A[c],proportion:u,ratio:p,path:F,startX:w,startY:g,endX:v,endY:m,center:ax([e,r],[n*1.45,a*1.45],[l,d],110)}),l+=p}return s}function jh([t,e],[r,n]){return[t+r,e+n]}function Wh([[t,e],[r,n]],[a,A]){return[t*a+e*A,r*a+n*A]}function nx(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function ax([t,e],[r,n],[a,A],o){A=A%(2*Math.PI);const s=nx(o),[l,c]=jh(Wh(s,[r*Math.cos(a),n*Math.sin(a)]),[t,e]),[u,p]=jh(Wh(s,[r*Math.cos(a+A),n*Math.sin(a+A)]),[t,e]),h=A>Math.PI?1:0,d=A>0?1:0;return{startX:l,startY:c,endX:u,endY:p,path:`M${l} ${c} A ${[r,n,o/(2*Math.PI)*360,h,d,u,p].join(" ")}`}}function La({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(n=>{if(Object.hasOwn(e,n)){const a=e[n];typeof a=="boolean"?r[n]=a:["string","number"].includes(typeof a)?$Q(a)&&(r[n]=a):Array.isArray(r[n])?HQ({userConfig:e,key:n})&&(r[n]=a):VQ({userConfig:e,key:n})&&(r[n]=La({defaultConfig:r[n],userConfig:a}))}}),r}function HQ({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length>=0}function VQ({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function $Q(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function zQ(t){return![void 0,NaN,1/0,-1/0].includes(t)}function KQ(t,e=0){return isNaN(t)?e:t}const Ut=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"],Ar=["00","03","05","08","0A","0D","0F","12","14","17","1A","1C","1F","21","24","26","29","2B","2E","30","33","36","38","3B","3D","40","42","45","47","4A","4D","4F","52","54","57","59","5C","5E","61","63","66","69","6B","6E","70","73","75","78","7A","7D","80","82","85","87","8A","8C","8F","91","94","96","99","9C","9E","A1","A3","A6","A8","AB","AD","B0","B3","B5","B8","BA","BD","BF","C2","C4","C7","C9","CC","CF","D1","D4","D6","D9","DB","DE","E0","E3","E6","E8","EB","ED","F0","F2","F5","F7","FA","FC","FF"];function Nr(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,n=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;if([void 0,null,NaN].includes(t))return null;if(t==="transparent")return"#FFFFFF00";let a;if(a=t.match(e)){const[,A,o,s]=a;return`#${A}${o}${s}`}else if(a=t.match(r)){const[,A,o,s]=a;return`#${Ns(A)}${Ns(o)}${Ns(s)}`}else if(a=t.match(n)){const[,A,o,s]=a,l=GQ(Number(A),Number(o),Number(s));return`#${Ns(l[0])}${Ns(l[1])}${Ns(l[2])}`}return null}function Ns(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function GQ(t,e,r){t/=360,e/=100,r/=100;let n,a,A;if(e===0)n=a=A=r;else{const o=(c,u,p)=>(p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?c+(u-c)*6*p:p<.5?u:p<.6666666666666666?c+(u-c)*(.6666666666666666-p)*6:c),s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),a=o(l,s,t),A=o(l,s,t-1/3)}return[Math.round(n*255),Math.round(a*255),Math.round(A*255)]}function _o(t,e){const r=c=>({r:parseInt(c.substring(1,3),16),g:parseInt(c.substring(3,5),16),b:parseInt(c.substring(5,7),16)}),n=({r:c,g:u,b:p})=>{c/=255,u/=255,p/=255;const h=Math.max(c,u,p),d=Math.min(c,u,p);let w,g,v=(h+d)/2;if(h===d)w=g=0;else{const m=h-d;switch(g=v>.5?m/(2-h-d):m/(h+d),h){case c:w=(u-p)/m+(u<p?6:0);break;case u:w=(p-c)/m+2;break;case p:w=(c-u)/m+4;break}w/=6}return{h:w,s:g,l:v}},a=({h:c,s:u,l:p})=>{let h,d,w;if(u===0)h=d=w=p;else{const g=(F,N,Q)=>(Q<0&&(Q+=1),Q>1&&(Q-=1),Q<.16666666666666666?F+(N-F)*6*Q:Q<.5?N:Q<.6666666666666666?F+(N-F)*(.6666666666666666-Q)*6:F),v=p<.5?p*(1+u):p+u-p*u,m=2*p-v;h=g(m,v,c+.3333333333333333),d=g(m,v,c),w=g(m,v,c-.3333333333333333)}return{r:Math.round(h*255),g:Math.round(d*255),b:Math.round(w*255)}},A=r(t),o=n(A);o.h+=e,o.h=(o.h+1)%1;const s=a(o);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`}function jQ({centerX:t,centerY:e,outerPoints:r,radius:n,rotation:a}){const A=Math.PI/r,o=a;let s="";const l=[];for(let c=0;c<r*2;c+=1){let u=t+Math.cos(c*A+o)*n,p=e+Math.sin(c*A+o)*n;s+=`${u},${p} `,l.push({x:u,y:p})}return{path:`M${s}Z`,coordinates:l}}function Fo({plot:t,radius:e,sides:r,rotation:n=0}){const a=t.x,A=t.y,o=r/2;return jQ({centerX:a,centerY:A,outerPoints:o,radius:e+1,rotation:n})}function WQ({centerX:t,centerY:e,innerCirclePoints:r,innerRadius:n,outerRadius:a}){const A=Math.PI/r,o=60,s=r*2;let l="";for(let c=0;c<s;c+=1){let p=c%2==0?a:n,h=t+Math.cos(c*A+o)*p,d=e+Math.sin(c*A+o)*p;l+=`${h},${d} `}return l}function XQ({plot:t,radius:e}){const r=t.x,n=t.y,a=5,A=e*3.5/a,s=A*2;return WQ({centerX:r,centerY:n,innerCirclePoints:a,innerRadius:A,outerRadius:s})}function qQ({series:t}){t=t.sort((c,u)=>c.x-u.x);function e(c,u,p){const h=(c.x-u.x)*(p.x-u.x)+(c.y-u.y)*(p.y-u.y),d=(c.x-u.x)*(p.y-u.y)-(p.x-u.x)*(c.y-u.y);return Math.atan2(d,h)}const r=[];let n;n=t[0];for(const c of t)c.x<n.x&&(n=c);r[0]=n;let a,A,o,s;a=r[0],A={x:a.x,y:a.y+1};do{o=Math.PI;for(const c of t)n=e(A,a,c),n<=o&&(s=c,o=n);s!==r[0]&&(r.push(s),A=a,a=s)}while(s!==r[0]);let l;return r.forEach(c=>{c&&c.x&&c.y&&(l+=`${Math.round(c.x)},${Math.round(c.y)} `)}),l=l.replaceAll("undefined",""),l}function Dg(t){if(t){let e=t;e.charAt(0)!=="#"&&(e=this.rgbToHex(t)),e=e.substring(1,7);let r=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=[r/255,n/255,a/255].map(l=>l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4));return .2126*o[0]+.7152*o[1]+.0722*o[2]>.3?"#000000":"#FFFFFF"}return"#000000"}function Ua(t){for(const e in t)typeof t[e]=="object"&&!Array.isArray(t[e])&&t[e]!==null?Ua(t[e]):(e==="color"||e==="backgroundColor"||e==="stroke")&&(t[e]===""?t[e]="#000000":t[e]==="transparent"?t[e]="#FFFFFF00":t[e]=Nr(t[e]));return t}function JA(t,e){function r(l){let c=new ArrayBuffer(l.length),u=new Uint8Array(c);for(let p=0;p<l.length;p++)u[p]=l.charCodeAt(p)&255;return c}const n=Ig.book_new(),a=Ig.aoa_to_sheet(t);Ig.book_append_sheet(n,a,"Sheet1");const A=JB(n,{bookType:"xlsx",type:"binary"}),o=new Blob([r(A)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=document.createElement("a");s.href=window.URL.createObjectURL(o),s.download=`${e.replaceAll(" ","_")}.xlsx`,s.click(),window.URL.revokeObjectURL(s.href)}function Ax(t){let e,r,n,a;const A=t.length;let o=0,s=0,l=0,c=0;for(const{x:h,y:d}of t)o+=h,s+=d,l+=h*d,c+=h*h;const u=(A*l-o*s)/(A*c-o*o),p=(s-u*o)/A;return e=t[0].x,n=t[A-1].x,r=u*e+p,a=u*n+p,{x1:e,y1:r,x2:n,y2:a,slope:u}}const Ja={vue_ui_table:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},vue_ui_xy:{chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,zoom:{show:!0,color:"#2D353C"},padding:{top:36,right:12,bottom:12,left:48},highlighter:{color:"#2D353C",opacity:5},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6,showOnlyFirstAndLast:!1}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}},showTable:!1},vue_ui_donut:{style:{fontFamily:"inherit",chart:{useGradient:!0,gradientIntensity:40,backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!1,labels:{dataLabels:{show:!0,hideUnderValue:3},percentage:{color:"#2D353C",bold:!0,fontSize:18},name:{color:"#2D353C",bold:!1,fontSize:14},hollow:{total:{show:!0,bold:!1,fontSize:18,color:"#AAAAAA",text:"Total",offsetY:0,value:{color:"#2D353C",fontSize:18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0}},average:{show:!0,bold:!1,fontSize:18,color:"#AAAAAA",text:"Average",offsetY:0,value:{color:"#2D353C",fontSize:18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0}}}},donut:{strokeWidth:64}},legend:{backgroundColor:"#FFFFFF",color:"#2D353C",show:!0,fontSize:16,bold:!1,roundingValue:0,roundingPercentage:0},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,color:"#2D353C",backgroundColor:"#FFFFFF",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",useDiv:"Title & legend inside",showTable:"Show table"}},translations:{total:"Total",average:"Average"},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}}},vue_ui_waffle:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{grid:{size:20,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:"#2D353C",strokeWidth:1,useGradient:!0,gradientIntensity:40},useDiv:!0},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}}},vue_ui_radar:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,plots:{show:!0,radius:2},outerPolygon:{stroke:"#CCCCCC",strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,stroke:"#e1e5e8",strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:12,color:"#2D353C"}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingPercentage:0}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},translations:{target:"Target"}},vue_ui_quadrant:{style:{fontFamily:"inherit",chart:{height:512,width:512,backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,labels:{quadrantLabels:{show:!0,tl:{text:"",color:"#2D353C",fontSize:16,bold:!0},tr:{text:"",color:"#2D353C",fontSize:16,bold:!0},br:{text:"",color:"#2D353C",fontSize:16,bold:!0},bl:{text:"",color:"#2D353C",fontSize:16,bold:!0}},plotLabels:{show:!0,fontSize:10,color:"#2D353C",offsetY:8},axisLabels:{show:!0,fontSize:14,color:{positive:"#2D353C",negative:"#2D353C"}}},grid:{stroke:"#e1e5e8",strokeWidth:1.5,showArrows:!0,graduations:{stroke:"#e1e5e8",strokeWidth:.5,show:!0,steps:5,fill:!0,color:"#E1E5E8",roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:""},yAxis:{min:-100,max:100,auto:!0,name:""}},plots:{radius:6,outline:!0,outlineColor:"#FFFFFF",outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table",showPlotLabels:"Show plot labels"}},translations:{category:"Category",item:"Item",side:"Side"}},vue_ui_gauge:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",animation:{use:!0,speed:1,acceleration:1},layout:{useDiv:!1,track:{size:1,useGradient:!0,gradientIntensity:40},markers:{size:1,color:"#2D353C",strokeWidth:1,stroke:"#2D353C",backgroundColor:"#FFFFFF",bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0},pointer:{size:1,stroke:"#2D353C",strokeWidth:12,useRatingColor:!0,color:"#CCCCCC",circle:{radius:10,stroke:"#2D353C",strokeWidth:2,color:"#FFFFFF"}}},legend:{fontSize:48,prefix:"",suffix:"",roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:"#2D353C"},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title inside",showTable:"Show table"}},translations:{base:"Base"}},vue_ui_chestnut:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{grandTotal:{show:!0,fontSize:20,bold:!0,suffix:"",prefix:"",roundingValue:0,color:"#2D353C",text:"Grand total",offsetY:0},roots:{stroke:"#FFFFFF",strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:"#FFFFFF",labels:{show:!0,fontSize:16,adaptColorToBackground:!0,color:"#FFFFFF",bold:!0,roundingValue:0,prefix:"",suffix:"",name:{color:"#2D353C",fontSize:16,bold:!0}}},verticalSeparator:{stroke:"#FFFFFF",strokeWidth:5},links:{opacity:10},branches:{stroke:"#FFFFFF",strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:"#FFFFFF",widthRatio:1.5,labels:{show:!0,fontSize:14,color:"#2D353C",bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:14,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:"#2D353C",fontSize:12,bold:!0,prefix:"",suffix:""},core:{total:{color:"#2D353C",fontSize:24,bold:!1},value:{color:"#2D353C",fontSize:24,bold:!0,prefix:"",suffix:""}}}}},legend:{fontSize:16,color:"#2D353C",roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},title:{color:"#2D353C",fontSize:20,text:"",bold:!0,offsetY:0,subtitle:{text:"",color:"#CCCCCC",bold:!1,fontSize:16,offsetY:0}}}}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8",translations:{rootName:"root name",rootValue:"root value",rootToTotal:"%/total",branchName:"branch name",branchValue:"branch value",branchToRoot:"%/root",branchToTotal:"%/total",nutName:"nut name",nutValue:"nut value",nutToBranch:"%/branch",nutToRoot:"%/root",nutToTotal:"%/total"}},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0}},userOptions:{show:!0,title:"options",labels:{showTable:"Show table"}},translations:{total:"Total",proportionToTree:"of grand total",of:"of"}},vue_ui_onion:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",useGradient:!1,gradientIntensity:20,layout:{useDiv:!0,gutter:{color:"#e1e5e8",width:.62},track:{width:.62},labels:{show:!0,fontSize:14,color:"#2D353C",roundingValue:0,roundingPercentage:0,bold:!0,offsetY:0,offsetX:0,value:{show:!0},percentage:{show:!0}}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,bold:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,roundingValue:0,roundingPercentage:0}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0},translations:{value:"Value",percentage:"Percentage",serie:"Serie"}}},vue_ui_vertical_bar:{style:{fontFamily:"inherit",chart:{backgroundColor:"#FFFFFF",color:"#2D353C",layout:{useDiv:!0,bars:{sort:"desc",useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:64,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:"#FFFFFF",dataLabels:{color:"#2D353C",bold:!0,fontSize:12,value:{show:!0,roundingValue:0,prefix:"",suffix:""},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:"#2D353C",bold:!1,fontSize:10,offsetX:0},parentLabels:{show:!0,color:"#2D353C",bold:!1,fontSize:10,offsetX:0}},highlighter:{color:"#2D353C",opacity:5},separators:{show:!0,color:"#e1e5e8",strokeWidth:1}},title:{text:"",color:"#2D353C",fontSize:20,bold:!0,subtitle:{color:"#A1A1A1",text:"",fontSize:16,bold:!1}},legend:{show:!0,fontSize:14,color:"#2D353C",backgroundColor:"#FFFFFF",bold:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},tooltip:{show:!0,backgroundColor:"#FFFFFF",color:"#2D353C",fontSize:14,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},userOptions:{show:!0,title:"options",labels:{useDiv:"Title & legend inside",showTable:"Show table",sort:"Sort desc"}},table:{show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8",roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}},translations:{parentName:"Serie",childName:"Child",value:"value",percentageToTotal:"%/total",percentageToSerie:"%/serie"}},vue_ui_screenshot:{mode:"download",quality:1,style:{info:{background:"#FFFFFF",bold:!0,border:"none",borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",color:"#2D353C",fontFamily:"inherit",fontSize:14,minWidth:300,padding:12,top:-100},captureButton:{background:"#E1E5E8",bold:!0,border:"none",borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",color:"#2D353C",fontFamily:"inherit",fontSize:14,minHeight:40,padding:"8px 12px"},cancelButton:{background:"#F17171",border:"none",borderRadius:10,color:"#FFFFFF",right:-14,size:28,top:-14},captureArea:{background:"radial-gradient(transparent, rgba(0,0,0,0.15))",border:"dashed 4px #2D353C",initialHeight:200,initialWidth:200},handles:{background:"#FFFFFF",border:"4px solid #2D353C",borderRadius:4,size:40}},translations:{captureButton:"capture",info:"Resize or move and click to capture"}}},OAe="",FA=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},YQ={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`,e=Math.max(...this.dataset.map(n=>n.series.length)),r={start:0,end:e};return{opacity:Ar,useSafeValues:!0,palette:Ut,defaultConfig:Ja.vue_ui_xy,clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t,slicer:r,maxX:e}},computed:{chartConfig(){if(!Object.keys(this.config||{}).length)return this.defaultConfig;const t=this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config});return this.convertConfigColors(t)},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,n)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*n*this.absoluteDataset.filter(a=>a.type==="bar").filter(a=>!this.segregatedSeries.includes(a.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[n]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){const t=Math.min(...this.safeDataset.filter(e=>!this.segregatedSeries.includes(e.id)).map(e=>Math.min(...e.series)));return t>0?0:t},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.chartConfig.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=this.relativeDataset.map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.timeLabels.forEach((r,n)=>{const a=[r];this.relativeDataset.forEach(A=>{a.push(this.canShowValue(A.absoluteValues[n])?Number(A.absoluteValues[n].toFixed(this.chartConfig.table.rounding)):"")}),e.push(a)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(a=>({name:a.name,color:a.color,type:a.type,value:a.absoluteValues.find((A,o)=>o===this.selectedSerieIndex)}));let e="",r=t.map(a=>a.value).filter(a=>this.isSafeValue(a)&&a!==null).reduce((a,A)=>Math.abs(a)+Math.abs(A),0);const n=this.timeLabels[this.selectedSerieIndex];return n&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${n}</div>`),t.forEach(a=>{this.isSafeValue(a.value)&&a.value!==null&&(e+=`<div><span style="color:${a.color}; margin-right: 3px">${this.icons[a.type]}</span>${a.name} : <b>${this.chartConfig.chart.tooltip.showValue?a.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(a.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,n=48;if(t&&e){const{width:a,height:A}=t.getBoundingClientRect(),o=e.getBoundingClientRect();this.clientPosition.x+a/2>o.right?r=-a:this.clientPosition.x-a/2<o.left?r=0:r=-a/2,this.clientPosition.y+A>o.bottom&&(n=-A-48)}return{top:this.clientPosition.y+n,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let a=5;a>0;a-=1){const A=t*a;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*a),value:A})}const r=this.closestDecimal(this.min/5),n=[];for(let a=5;a>=0;a-=1){const A=Math.abs(r)*a;n.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*a),value:-A})}return[...e,...n]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,n=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${n})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",n),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,n)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
359
359
  -----> The serie '${e.name}' contains the value '${r}' at index ${n}.
360
360
  '${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv,showTable:this.chartConfig.showTable===!0}},methods:{checkNaN:KQ,isSafeValue:zQ,treeShake:La,shiftHue:_o,pdf:zA,convertColorToHex:Nr,convertConfigColors:Ua,makeXls:JA,adaptColorToBackground:Dg,calcLinearProgression:Ax,calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let n;return t<0,n=Math.round(t/r)*r,n},ratioToMax(t){return t/this.absoluteMax},selectX(t){this.$emit("selectX",{dataset:this.relativeDataset.map(e=>({name:e.name,value:[null,void 0,NaN].includes(e.absoluteValues[t])?null:e.absoluteValues[t],color:e.color,type:e.type})),index:t,indexLabel:this.chartConfig.chart.grid.labels.xAxisLabels.values[t]})},getData(){return this.absoluteDataset.map(t=>({values:t.absoluteValues,color:t.color,name:t.name,type:t.type}))},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}this.$emit("selectLegend",this.relativeDataset.map(e=>({name:e.name,values:e.absoluteValues,color:e.color,type:e.type})))},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){this.isPrinting=!0,this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.chartConfig.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},generateXls(){const t=[[this.chartConfig.chart.title.text],[this.chartConfig.chart.title.subtitle.text],[""]],e=["",...this.table.head.map(a=>a.label)],r=this.table.body,n=t.concat([e]).concat(r);this.makeXls(n,this.chartConfig.chart.title.text||"vue-ui-xy")}}},JQ=t=>(i.pushScopeId("data-v-98016d71"),t=t(),i.popScopeId(),t),ZQ=["id"],eO={class:"vue-ui-xy-user-option-item"},tO=["id","name"],rO=["for"],nO={class:"vue-ui-xy-user-option-item"},aO=["id","name"],AO=["for"],iO={class:"vue-ui-xy-user-option-item"},oO=["id","name"],sO=["for"],lO={class:"vue-ui-xy-user-option-item"},cO=["id","name"],uO=["for"],hO=["disabled"],fO=["stroke"],dO=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-98016d71></path><path d="M18 16v.01" data-v-98016d71></path><path d="M6 16v.01" data-v-98016d71></path><path d="M12 5v.01" data-v-98016d71></path><path d="M12 12v.01" data-v-98016d71></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-98016d71></path>',6)],gO={key:1},pO=["viewBox"],mO={class:"vue-ui-xy-grid"},vO=["stroke","x1","x2","y1","y2"],yO=["stroke","x1","x2","y1","y2"],wO={key:0},BO=["x1","x2","y1","y2","stroke"],xO=["id"],bO=["stop-color"],CO=["stop-color"],EO=["stop-color"],_O=["id"],FO=["stop-color"],SO=["stop-color"],kO=["stop-color"],TO=["id"],NO=["stop-color"],LO=["stop-color"],UO=["id"],IO=["stop-color"],DO=["stop-color"],QO=["x","y","height","width","fill"],OO={key:0},PO=["id"],MO=["fill"],RO=["x1","x2","y1","y2","stroke","marker-end"],HO=["x","y","font-size","fill"],VO=["cx","cy","r","fill","stroke"],$O={key:0},zO=["id"],KO=["fill"],GO=["x1","x2","y1","y2","stroke","marker-end"],jO=["x","y","font-size","fill"],WO=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],XO=["cx","cy","r","fill","stroke"],qO={key:0},YO=["id"],JO=["fill"],ZO=["x1","x2","y1","y2","stroke","marker-end"],e7=["x","y","font-size","fill"],t7={key:0},r7=["x","y","font-size","fill"],n7={key:1},a7=["x","y","font-size","fill"],A7=["x","y"],i7=["x","y"],o7={key:2},s7=["x","y","font-size","fill"],l7=["x","y"],c7=["x","y"],u7={key:3},h7=["x1","x2","y1","y2","stroke"],f7=["x","y","font-size","fill"],d7=["font-size","fill"],g7=["x","y","font-size","fill"],p7={key:4},m7={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},v7={key:5},y7=["y"],w7={class:"vue-ui-xy-legend"},B7=["onClick"],x7={key:6},b7=["y","x","font-size","fill"],C7={key:7},E7=["x","y","height","width","fill","onMouseenter","onClick"],_7={key:2,class:"vue-ui-xy-range-slider","data-html2canvas-ignore":""},F7={class:"vue-ui-xy-slider--left"},S7=["for"],k7=["id","max"],T7={class:"vue-ui-xy-slider--right"},N7=["for"],L7=["id","min","max"],U7=["onClick"],I7=["innerHTML"],D7=["innerHTML"],Q7={class:"vue-ui-xy-table"},O7={style:{"max-width":"200px",margin:"0 auto","text-align":"center"}},P7=[JQ(()=>i.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[i.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],M7=["onMouseover"];function R7(t,e,r,n,a,A){return i.openBlock(),i.createElementBlock("div",{id:`vue-ui-xy_${a.uniqueId}`,class:"vue-ui-xy",ref:"chart",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor}; color:${A.chartConfig.chart.color};width:100%`)},[A.chartConfig.chart.title.show&&(!a.mutableConfig.titleInside||a.isPrinting)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:i.normalizeStyle(`font-family:${A.chartConfig.chart.fontFamily}`)},[i.createElementVNode("div",{class:"vue-ui-xy-title-main",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.fontSize}px; color:${A.chartConfig.chart.title.color}; font-weight:${A.chartConfig.chart.title.bold?"bold":"400"}`)},i.toDisplayString(A.chartConfig.chart.title.text),5),A.chartConfig.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.subtitle.fontSize}px; color:${A.chartConfig.chart.title.subtitle.color}`)},i.toDisplayString(A.chartConfig.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),A.chartConfig.chart.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)},i.toDisplayString(A.chartConfig.chart.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)},[i.createElementVNode("div",eO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-datalabels_${a.uniqueId}`,name:`vue-ui-xy-option-datalabels_${a.uniqueId}`,"onUpdate:modelValue":e[0]||(e[0]=o=>a.mutableConfig.dataLabels.show=o)},null,8,tO),[[i.vModelCheckbox,a.mutableConfig.dataLabels.show]]),i.createElementVNode("label",{for:`vue-ui-xy-option-datalabels_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.dataLabels),9,rO)]),i.createElementVNode("div",nO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-title_${a.uniqueId}`,name:`vue-ui-xy-option-title_${a.uniqueId}`,"onUpdate:modelValue":e[1]||(e[1]=o=>a.mutableConfig.titleInside=o)},null,8,aO),[[i.vModelCheckbox,a.mutableConfig.titleInside]]),i.createElementVNode("label",{for:`vue-ui-xy-option-title_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.titleInside),9,AO)]),i.createElementVNode("div",iO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-legend_${a.uniqueId}`,name:`vue-ui-xy-option-legend_${a.uniqueId}`,"onUpdate:modelValue":e[2]||(e[2]=o=>a.mutableConfig.legendInside=o)},null,8,oO),[[i.vModelCheckbox,a.mutableConfig.legendInside]]),i.createElementVNode("label",{for:`vue-ui-xy-option-legend_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.legendInside),9,sO)]),i.createElementVNode("div",lO,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-table_${a.uniqueId}`,name:`vue-ui-xy-option-table_${a.uniqueId}`,"onUpdate:modelValue":e[3]||(e[3]=o=>a.mutableConfig.showTable=o)},null,8,cO),[[i.vModelCheckbox,a.mutableConfig.showTable]]),i.createElementVNode("label",{for:`vue-ui-xy-option-table_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.userOptions.labels.showTable),9,uO)]),i.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...o)=>A.generatePdf&&A.generatePdf(...o)),disabled:a.isPrinting,style:i.normalizeStyle(`margin-top: 12px; background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)},[a.isPrinting?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:A.chartConfig.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},dO,8,fO)):(i.openBlock(),i.createElementBlock("span",gO,"PDF"))],12,hO),i.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...o)=>A.generateXls&&A.generateXls(...o)),style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor};color:${A.chartConfig.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{width:"100%",viewBox:A.viewBox,class:"vue-ui-xy-svg",style:i.normalizeStyle(`background:${A.chartConfig.chart.backgroundColor}; color:${A.chartConfig.chart.color}; font-family:${A.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...o)=>A.closeDetails&&A.closeDetails(...o))},[i.createElementVNode("g",mO,[i.createElementVNode("line",{stroke:A.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:A.drawingArea.left,x2:A.drawingArea.left,y1:A.drawingArea.top,y2:A.drawingArea.bottom,"stroke-linecap":"round"},null,8,vO),i.createElementVNode("line",{stroke:A.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:A.drawingArea.left,x2:A.drawingArea.right,y1:A.zero,y2:A.zero,"stroke-linecap":"round"},null,8,yO),A.chartConfig.chart.grid.showVerticalLines?(i.openBlock(),i.createElementBlock("g",wO,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.maxSeries+1,(o,s)=>(i.openBlock(),i.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:A.drawingArea.width/A.maxSeries*s+A.drawingArea.left,x2:A.drawingArea.width/A.maxSeries*s+A.drawingArea.left,y1:A.drawingArea.top,y2:A.drawingArea.bottom,"stroke-width":"0.5",stroke:A.chartConfig.chart.grid.stroke},null,8,BO))),128))])):i.createCommentVNode("",!0)]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.barSet,(o,s)=>(i.openBlock(),i.createElementBlock("defs",{key:`def_rect_${s}`},[i.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${a.uniqueId}`,x2:"0%",y2:"100%"},[i.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,bO),i.createElementVNode("stop",{offset:"62%","stop-color":`${A.shiftHue(o.color,.02)}DE`},null,8,CO),i.createElementVNode("stop",{offset:"100%","stop-color":`${A.shiftHue(o.color,.05)}66`},null,8,EO)],8,xO),i.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${a.uniqueId}`,x2:"0%",y2:"100%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`${A.shiftHue(o.color,.05)}66`},null,8,FO),i.createElementVNode("stop",{offset:"38%","stop-color":`${A.shiftHue(o.color,.02)}DE`},null,8,SO),i.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,kO)],8,_O)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.plotSet,(o,s)=>(i.openBlock(),i.createElementBlock("defs",{key:`def_plot_${s}`},[i.createElementVNode("radialGradient",{id:`plotGradient_${s}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`${A.shiftHue(o.color,.05)}`},null,8,NO),i.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,LO)],8,TO)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.lineSet,(o,s)=>(i.openBlock(),i.createElementBlock("defs",{key:`def_line_${s}`},[i.createElementVNode("radialGradient",{id:`lineGradient_${s}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[i.createElementVNode("stop",{offset:"0%","stop-color":`${A.shiftHue(o.color,.05)}`},null,8,IO),i.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,DO)],8,UO)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.barSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`serie_bar_${s}`,class:i.normalizeClass(`serie_bar_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`bar_plot_${s}_${c}`},[A.canShowValue(l.value)?(i.openBlock(),i.createElementBlock("rect",{key:0,x:A.calcRectX(l),y:A.calcRectY(l),height:A.calcRectHeight(l),width:A.calcRectWidth(),fill:A.chartConfig.bar.useGradient?l.value>=0?`url(#rectGradient_pos_${s}_${a.uniqueId})`:`url(#rectGradient_neg_${s}_${a.uniqueId})`:o.color},null,8,QO)):i.createCommentVNode("",!0)]))),128)),Object.hasOwn(o,"useProgression")&&o.useProgression===!0&&!isNaN(A.calcLinearProgression(o.plots).slope)?(i.openBlock(),i.createElementBlock("g",OO,[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:`bar_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:o.color},null,8,MO)],8,PO)]),i.createElementVNode("line",{x1:A.calcLinearProgression(o.plots).x1,x2:A.calcLinearProgression(o.plots).x2,y1:A.calcLinearProgression(o.plots).y1,y2:A.calcLinearProgression(o.plots).y2,"stroke-width":1,stroke:o.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${s})`},null,8,RO),i.createElementVNode("text",{"text-anchor":"middle",x:A.calcLinearProgression(o.plots).x2,y:A.calcLinearProgression(o.plots).y2-6,"font-size":A.chartConfig.chart.labels.fontSize,fill:o.color},i.toDisplayString(A.calcLinearProgression(o.plots).slope<0?`+${(Math.abs(A.calcLinearProgression(o.plots).slope)*100).toFixed(2)}%`:`-${(Math.abs(A.calcLinearProgression(o.plots).slope)*100).toFixed(2)}%`),9,HO)])):i.createCommentVNode("",!0)],2))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.plotSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`serie_plot_${s}`,class:i.normalizeClass(`serie_plot_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`circle_plot_${s}_${c}`},[A.canShowValue(l.value)?(i.openBlock(),i.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:A.chartConfig.plot.radius,fill:A.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${a.uniqueId})`:o.color,stroke:A.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,VO)):i.createCommentVNode("",!0)]))),128)),Object.hasOwn(o,"useProgression")&&o.useProgression===!0&&!isNaN(A.calcLinearProgression(o.plots).slope)?(i.openBlock(),i.createElementBlock("g",$O,[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:`plot_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:o.color},null,8,KO)],8,zO)]),i.createElementVNode("line",{x1:A.calcLinearProgression(o.plots).x1,x2:A.calcLinearProgression(o.plots).x2,y1:A.calcLinearProgression(o.plots).y1,y2:A.calcLinearProgression(o.plots).y2,"stroke-width":1,stroke:o.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${s})`},null,8,GO),i.createElementVNode("text",{"text-anchor":"middle",x:A.calcLinearProgression(o.plots).x2,y:A.calcLinearProgression(o.plots).y2-6,"font-size":A.chartConfig.chart.labels.fontSize,fill:o.color},i.toDisplayString(A.calcLinearProgression(o.plots).slope<0?`+${(Math.abs(A.calcLinearProgression(o.plots).slope)*100).toFixed(2)}%`:`-${(Math.abs(A.calcLinearProgression(o.plots).slope)*100).toFixed(2)}%`),9,jO)])):i.createCommentVNode("",!0)],2))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.lineSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`serie_line_${s}`,class:i.normalizeClass(`serie_line_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`line_${s}_${c}`},[c<o.plots.length-1&&A.canShowValue(l.value)&&A.canShowValue(o.plots[c+1].value)?(i.openBlock(),i.createElementBlock("line",{key:0,x1:l.x,x2:o.plots[c+1].x,y1:l.y,y2:o.plots[c+1].y,stroke:o.color,"stroke-width":A.chartConfig.line.strokeWidth,"stroke-dasharray":o.dashed?A.chartConfig.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,WO)):i.createCommentVNode("",!0)]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`circle_line_${s}_${c}`},[A.canShowValue(l.value)?(i.openBlock(),i.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:A.chartConfig.line.radius,fill:A.chartConfig.line.useGradient?`url(#lineGradient_${s}_${a.uniqueId})`:o.color,stroke:A.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,XO)):i.createCommentVNode("",!0)]))),128)),Object.hasOwn(o,"useProgression")&&o.useProgression===!0&&!isNaN(A.calcLinearProgression(o.plots).slope)?(i.openBlock(),i.createElementBlock("g",qO,[i.createElementVNode("defs",null,[i.createElementVNode("marker",{id:`line_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[i.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:o.color},null,8,JO)],8,YO)]),i.createElementVNode("line",{x1:A.calcLinearProgression(o.plots).x1,x2:A.calcLinearProgression(o.plots).x2,y1:A.calcLinearProgression(o.plots).y1,y2:A.calcLinearProgression(o.plots).y2,"stroke-width":1,stroke:o.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${s})`},null,8,ZO),i.createElementVNode("text",{"text-anchor":"middle",x:A.calcLinearProgression(o.plots).x2,y:A.calcLinearProgression(o.plots).y2-6,"font-size":A.chartConfig.chart.labels.fontSize,fill:o.color},i.toDisplayString(A.calcLinearProgression(o.plots).slope<0?`+${(Math.abs(A.calcLinearProgression(o.plots).slope)*100).toFixed(2)}%`:`-${(Math.abs(A.calcLinearProgression(o.plots).slope)*100).toFixed(2)}%`),9,e7)])):i.createCommentVNode("",!0)],2))),128)),A.chartConfig.bar.labels.show&&a.mutableConfig.dataLabels.show?(i.openBlock(),i.createElementBlock("g",t7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.barSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_bar_${s}`,class:i.normalizeClass(`xLabel_bar_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_bar_${s}_${c}`},[!Object.hasOwn(o,"dataLabels")||o.dataLabels===!0?(i.openBlock(),i.createElementBlock("text",{key:0,x:l.x+A.calcRectWidth(),y:l.y+A.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":A.chartConfig.chart.labels.fontSize,fill:A.chartConfig.bar.labels.color},i.toDisplayString(A.canShowValue(l.value)?l.value.toFixed(A.chartConfig.bar.labels.rounding):""),9,r7)):i.createCommentVNode("",!0)]))),128))],2))),128))])):i.createCommentVNode("",!0),A.chartConfig.plot.labels.show&&a.mutableConfig.dataLabels.show?(i.openBlock(),i.createElementBlock("g",n7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.plotSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_plot_${s}`,class:i.normalizeClass(`xLabel_plot_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_plot_${s}_${c}`},[!Object.hasOwn(o,"dataLabels")||o.dataLabels===!0?(i.openBlock(),i.createElementBlock("text",{key:0,x:l.x,y:l.y+A.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":A.chartConfig.chart.labels.fontSize,fill:A.chartConfig.plot.labels.color},i.toDisplayString(A.canShowValue(l.value)?l.value.toFixed(A.chartConfig.plot.labels.rounding):""),9,a7)):i.createCommentVNode("",!0),c===0&&o.useTag&&o.useTag==="start"?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:l.x,y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,A7)):i.createCommentVNode("",!0),c===o.plots.length-1&&o.useTag&&o.useTag==="end"?(i.openBlock(),i.createElementBlock("foreignObject",{key:2,x:l.x-o.name.length*(A.chartConfig.chart.labels.fontSize/2),y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,i7)):i.createCommentVNode("",!0)]))),128))],2))),128))])):i.createCommentVNode("",!0),A.chartConfig.line.labels.show&&a.mutableConfig.dataLabels.show?(i.openBlock(),i.createElementBlock("g",o7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.lineSet,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_line_${s}`,class:i.normalizeClass(`xLabel_line_${s}`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.plots,(l,c)=>(i.openBlock(),i.createElementBlock("g",{key:`xLabel_line_${s}_${c}`},[!Object.hasOwn(o,"dataLabels")||o.dataLabels===!0?(i.openBlock(),i.createElementBlock("text",{key:0,x:l.x,y:l.y+A.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":A.chartConfig.chart.labels.fontSize,fill:A.chartConfig.line.labels.color},i.toDisplayString(A.canShowValue(l.value)?l.value.toFixed(A.chartConfig.line.labels.rounding):""),9,s7)):i.createCommentVNode("",!0),c===0&&o.useTag&&o.useTag==="start"?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:l.x,y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,l7)):i.createCommentVNode("",!0),c===o.plots.length-1&&o.useTag&&o.useTag==="end"?(i.openBlock(),i.createElementBlock("foreignObject",{key:2,x:l.x-o.name.length*(A.chartConfig.chart.labels.fontSize/2),y:l.y-20,height:24,width:"150",style:{overflow:"visible"}},[i.createElementVNode("div",{style:i.normalizeStyle(`padding: 3px; background:${o.color}${a.opacity[80]};color:${A.adaptColorToBackground(o.color)};width:fit-content;font-size:${A.chartConfig.chart.labels.fontSize}px;border-radius: 2px;`)},i.toDisplayString(o.name),5)],8,c7)):i.createCommentVNode("",!0)]))),128))],2))),128))])):i.createCommentVNode("",!0),A.chartConfig.chart.grid.labels.show?(i.openBlock(),i.createElementBlock("g",u7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.yLabels,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`yLabel_${s}`},[o.value>=A.min&&o.value<=A.max?(i.openBlock(),i.createElementBlock("line",{key:0,x1:A.drawingArea.left,x2:A.drawingArea.left-5,y1:o.y,y2:o.y,stroke:A.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,h7)):i.createCommentVNode("",!0),o.value>=A.min&&o.value<=A.max?(i.openBlock(),i.createElementBlock("text",{key:1,x:A.drawingArea.left-5,y:o.y+A.chartConfig.chart.labels.fontSize/3,"font-size":A.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:A.chartConfig.chart.grid.labels.color},i.toDisplayString(A.canShowValue(o.value)?o.value.toFixed(0):""),9,f7)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("g",null,[A.chartConfig.chart.grid.labels.axis.yLabel?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":A.chartConfig.chart.grid.labels.axis.fontSize,fill:A.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},i.toDisplayString(A.chartConfig.chart.grid.labels.axis.yLabel),9,d7)):i.createCommentVNode("",!0),A.chartConfig.chart.grid.labels.axis.xLabel?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"middle",x:A.chartConfig.chart.width/2,y:A.drawingArea.bottom+A.chartConfig.chart.grid.labels.axis.fontSize+A.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":A.chartConfig.chart.grid.labels.axis.fontSize,fill:A.chartConfig.chart.grid.labels.color},i.toDisplayString(A.chartConfig.chart.grid.labels.axis.xLabel),9,g7)):i.createCommentVNode("",!0)]),A.chartConfig.chart.title.show&&a.mutableConfig.titleInside&&!a.isPrinting?(i.openBlock(),i.createElementBlock("g",p7,[(i.openBlock(),i.createElementBlock("foreignObject",m7,[i.createElementVNode("div",{class:"vue-ui-xy-title",style:i.normalizeStyle(`font-family:${A.chartConfig.chart.fontFamily}`)},[i.createElementVNode("div",{class:"vue-ui-xy-title-main",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.fontSize*.6}px; color:${A.chartConfig.chart.title.color}; font-weight:${A.chartConfig.chart.title.bold?"bold":"400"}`)},i.toDisplayString(A.chartConfig.chart.title.text),5),A.chartConfig.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${A.chartConfig.chart.title.subtitle.color}`)},i.toDisplayString(A.chartConfig.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)]))])):i.createCommentVNode("",!0),A.chartConfig.chart.legend.show&&a.mutableConfig.legendInside&&!a.isPrinting?(i.openBlock(),i.createElementBlock("g",v7,[(i.openBlock(),i.createElementBlock("foreignObject",{x:"0",y:A.drawingArea.bottom+A.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:i.normalizeStyle(`overflow:visible; font-size:${A.chartConfig.chart.legend.fontSize*.6}px`)},[i.createElementVNode("div",w7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.absoluteDataset,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>A.segregate(o),class:i.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(o.id)})},[["plot"].includes(o.type)?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${o.color}`)},"●",4)):i.createCommentVNode("",!0),["line"].includes(o.type)?(i.openBlock(),i.createElementBlock("span",{key:1,style:i.normalizeStyle(`color:${o.color}`)},"▬",4)):i.createCommentVNode("",!0),["bar"].includes(o.type)?(i.openBlock(),i.createElementBlock("span",{key:2,style:i.normalizeStyle(`color:${o.color}`)},"◼",4)):i.createCommentVNode("",!0),i.createElementVNode("span",{style:i.normalizeStyle(`color:${A.chartConfig.chart.legend.color}`)},i.toDisplayString(o.name),5)],10,B7))),128))])],12,y7))])):i.createCommentVNode("",!0),A.chartConfig.chart.grid.labels.xAxisLabels.show?(i.openBlock(),i.createElementBlock("g",x7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.timeLabels,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`time_label_${s}`},[o&&!A.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast||o&&A.chartConfig.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(s===0||s===A.timeLabels.length-1)?(i.openBlock(),i.createElementBlock("text",{key:0,"text-anchor":"middle",y:A.drawingArea.bottom+A.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:A.drawingArea.left+A.drawingArea.width/A.maxSeries*s+A.drawingArea.width/A.maxSeries/2,"font-size":A.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:A.chartConfig.chart.grid.labels.xAxisLabels.color},i.toDisplayString(o||""),9,b7)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),A.chartConfig.chart.tooltip.show?(i.openBlock(),i.createElementBlock("g",C7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.maxSeries,(o,s)=>(i.openBlock(),i.createElementBlock("g",{key:`tooltip_trap_${s}`},[i.createElementVNode("rect",{x:A.drawingArea.left+A.drawingArea.width/A.maxSeries*s,y:A.drawingArea.top,height:A.drawingArea.height,width:A.drawingArea.width/A.maxSeries,fill:a.selectedSerieIndex===s||a.selectedRowIndex===s?`${A.chartConfig.chart.highlighter.color}${a.opacity[A.chartConfig.chart.highlighter.opacity]}`:"transparent",onMouseenter:l=>A.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=l=>A.toggleTooltip(!1)),onClick:l=>A.selectX(s)},null,40,E7)]))),128))])):i.createCommentVNode("",!0)],12,pO)),A.chartConfig.chart.zoom.show?(i.openBlock(),i.createElementBlock("div",_7,[i.createElementVNode("div",F7,[i.createElementVNode("label",{for:`start_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.grid.labels.xAxisLabels.values[a.slicer.start]),9,S7),i.withDirectives(i.createElementVNode("input",{id:`start_${a.uniqueId}`,type:"range",style:i.normalizeStyle(`accent-color:${A.chartConfig.chart.zoom.color}`),min:0,max:Math.floor(a.maxX/2),"onUpdate:modelValue":e[8]||(e[8]=o=>a.slicer.start=o)},null,12,k7),[[i.vModelText,a.slicer.start]])]),i.createElementVNode("div",T7,[i.createElementVNode("label",{for:`end_${a.uniqueId}`},i.toDisplayString(A.chartConfig.chart.grid.labels.xAxisLabels.values[a.slicer.end-1]),9,N7),i.withDirectives(i.createElementVNode("input",{id:`end_${a.uniqueId}`,type:"range",style:i.normalizeStyle(`accent-color:${A.chartConfig.chart.zoom.color}`),min:Math.ceil(a.maxX/2),max:a.maxX,"onUpdate:modelValue":e[9]||(e[9]=o=>a.slicer.end=o)},null,12,L7),[[i.vModelText,a.slicer.end]])])])):i.createCommentVNode("",!0),A.chartConfig.chart.legend.show&&(!a.mutableConfig.legendInside||a.isPrinting)?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-xy-legend",style:i.normalizeStyle(`font-size:${A.chartConfig.chart.legend.fontSize}px`)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.absoluteDataset,(o,s)=>(i.openBlock(),i.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:l=>A.segregate(o),class:i.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(o.id)})},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${o.color}`),innerHTML:a.icons[o.type]},null,12,I7),i.createElementVNode("span",{style:i.normalizeStyle(`color:${A.chartConfig.chart.legend.color}`)},i.toDisplayString(o.name),5)],10,U7))),128))],4)):i.createCommentVNode("",!0),A.chartConfig.chart.tooltip.show&&a.isTooltip?(i.openBlock(),i.createElementBlock("div",{key:4,class:"vue-ui-xy-tooltip",ref:"tooltip",style:i.normalizeStyle(`top:${A.tooltipPosition.top}px;left:${A.tooltipPosition.left}px; background-color:${A.chartConfig.chart.tooltip.backgroundColor};color:${A.chartConfig.chart.tooltip.color}`),innerHTML:A.tooltipContent},null,12,D7)):i.createCommentVNode("",!0),a.mutableConfig.showTable?(i.openBlock(),i.createElementBlock("div",{key:5,class:i.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":a.isPrinting}),onClick:e[11]||(e[11]=(...o)=>A.closeDetails&&A.closeDetails(...o))},[i.createElementVNode("table",Q7,[i.createElementVNode("thead",null,[i.createElementVNode("tr",null,[i.createElementVNode("th",{style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color}`)},null,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.table.head,(o,s)=>(i.openBlock(),i.createElementBlock("th",{key:`th_${s}`,style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color}`)},[i.createElementVNode("div",O7,[i.createElementVNode("span",{style:i.normalizeStyle(`color:${o.color}; margin-right:3px`)},i.toDisplayString(a.icons[o.type]),5),i.createTextVNode(i.toDisplayString(o.label),1)])],4))),128))]),i.createElementVNode("tr",null,[i.createElementVNode("th",{align:"right",style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color}`)},P7,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.table.head,(o,s)=>(i.openBlock(),i.createElementBlock("th",{align:"right",key:`th_sum_${s}`,style:i.normalizeStyle(`background:${A.chartConfig.table.th.backgroundColor};color:${A.chartConfig.table.th.color};padding-right:6px`)},i.toDisplayString(r.dataset[s].series.slice(a.slicer.start,a.slicer.end).reduce((l,c)=>l+c,0).toFixed(A.chartConfig.table.rounding)),5))),128))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(A.table.body,(o,s)=>(i.openBlock(),i.createElementBlock("tr",{key:`tr_${s}`,class:i.normalizeClass({"vue-ui-xy-table-tr-selected":a.selectedSerieIndex===s||a.selectedRowIndex===s}),onMouseover:l=>a.selectedRowIndex=s,onMouseleave:e[10]||(e[10]=l=>a.selectedRowIndex=null)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o,(l,c)=>(i.openBlock(),i.createElementBlock("td",{key:`td_${s}_${c}`,style:i.normalizeStyle(`background:${A.chartConfig.table.td.backgroundColor};color:${A.chartConfig.table.td.color};padding-right:6px;`)},i.toDisplayString(l),5))),128))],42,M7))),128))])])],2)):i.createCommentVNode("",!0)],12,ZQ)}const H7=FA(YQ,[["render",R7],["__scopeId","data-v-98016d71"]]),RAe="",V7={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,defaultConfig:Ja.vue_ui_table,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((e,r)=>e-r),palette:Ut,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(e=>({average:Object.hasOwn(e,"average")?e.average:!1,decimals:Object.hasOwn(e,"decimals")?e.decimals:0,isMultiselect:Object.hasOwn(e,"isMultiselect")?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,"isPercentage")?e.isPercentage:!1,isSearch:Object.hasOwn(e,"isSearch")?e.isSearch:!1,isSort:Object.hasOwn(e,"isSort")?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,"percentageTo")?e.percentageTo:void 0,prefix:Object.hasOwn(e,"prefix")?e.prefix:"",rangeFilter:Object.hasOwn(e,"rangeFilter")?e.rangeFilter:!1,suffix:Object.hasOwn(e,"suffix")?e.suffix:"",sum:Object.hasOwn(e,"sum")?e.sum:!1,type:e.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
361
361
  Provide an array of objects of type:
@@ -378,14 +378,14 @@ Provide an array of objects of type:
378
378
  `,stroke:`${ne.color}${i.unref(Ar)[h.value.style.chart.layout.links.opacity]}`,fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:i.normalizeStyle(`opacity:${ge(ne)?1:0}`),onClick:he},null,12,K$))),256))]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,ne=>(i.openBlock(),i.createElementBlock("circle",{cx:ne.x,cy:ne.y,r:ne.r,fill:h.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`)},null,12,G$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,ne=>(i.openBlock(),i.createElementBlock("circle",{cx:ne.x,cy:ne.y,r:ne.r,fill:h.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${a.value}_${ne.rootIndex})`:ne.color,stroke:h.value.style.chart.layout.roots.stroke,"stroke-width":h.value.style.chart.layout.roots.strokeWidth,style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>Te(ne)},null,12,j$))),256)),h.value.style.chart.layout.roots.labels.show?(i.openBlock(),i.createElementBlock("g",W$,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,ne=>(i.openBlock(),i.createElementBlock("text",{x:ne.x,y:ne.y+h.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":h.value.style.chart.layout.roots.labels.fontSize,fill:h.value.style.chart.layout.roots.labels.adaptColorToBackground?i.unref(Dg)(ne.color):h.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>Te(ne)},i.toDisplayString(h.value.style.chart.layout.roots.labels.prefix)+" "+i.toDisplayString(ne.total.toFixed(h.value.style.chart.layout.roots.labels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.roots.labels.suffix),13,X$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[L.value&&ne.rootIndex===L.value.rootIndex||Y.value&&ne.rootIndex===Y.value.rootIndex||se.value&&ne.rootIndex===se.value.rootIndex?(i.openBlock(),i.createElementBlock("g",q$,[i.createElementVNode("text",{x:ne.x,y:ne.y+ne.r+24,"text-anchor":"middle",fill:h.value.style.chart.layout.roots.labels.name.color,"font-size":h.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":h.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:he},i.toDisplayString(ne.name),9,Y$)])):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("rect",{x:ne.x1,y:ne.y1,height:w.value.branchSize,width:ne.x2-ne.x1,fill:h.value.style.chart.layout.branches.underlayerColor,rx:h.value.style.chart.layout.branches.borderRadius,stroke:"none",style:i.normalizeStyle(`opacity:${ge(ne)?1:.05}`),onClick:Ee=>fe(ne)},null,12,J$))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("rect",{x:ne.x1,y:ne.y1,height:w.value.branchSize,width:ne.x2-ne.x1,fill:h.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${a.value}_${ne.rootIndex})`:ne.color,rx:h.value.style.chart.layout.branches.borderRadius,stroke:h.value.style.chart.layout.branches.stroke,"stroke-width":h.value.style.chart.layout.branches.strokeWidth,style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>fe(ne)},null,12,Z$))),256)),h.value.style.chart.layout.branches.labels.dataLabels.show?(i.openBlock(),i.createElementBlock("g",ez,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[ne.proportionToRoot*100>h.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(i.openBlock(),i.createElementBlock("text",{key:0,x:ne.x1+6,y:ne.y1+w.value.branchSize/1.5,"text-anchor":"start",fill:i.unref(Dg)(ne.color),"font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:i.normalizeStyle(`cursor:pointer; opacity:${ge(ne)?1:.05}`),onClick:Ee=>fe(ne)},i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+i.toDisplayString(ne.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),13,tz)):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Gh)({series:ne.breakdown,base:1},ne.x2+24+h.value.style.chart.layout.nuts.offsetX,ne.y1+w.value.branchSize/2,w.value.branchSize/3,w.value.branchSize/3),(Ee,xe)=>(i.openBlock(),i.createElementBlock("path",{d:Ee.path,stroke:Ee.color,"stroke-width":10,fill:"none",style:i.normalizeStyle(`opacity:${ge(ne)?1:.1}`)},null,12,rz))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,Ee=>(i.openBlock(),i.createElementBlock("circle",{cx:Ee.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:Ee.y1+w.value.branchSize/2,r:6,fill:h.value.style.chart.backgroundColor,onClick:xe=>re(Ee),style:{cursor:"pointer"}},null,8,nz))),256)),i.createElementVNode("circle",{fill:h.value.style.chart.layout.nuts.useGradient?`url(#nut_${a.value})`:"transparent",cx:ne.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:ne.y1+w.value.branchSize/2,r:w.value.branchSize/2+2,onClick:Ee=>re(ne),style:i.normalizeStyle(`cursor:pointer;opacity:${ge(ne)?1:.1}`)},null,12,az)]))),256)),h.value.style.chart.layout.branches.labels.show&&!Y.value?(i.openBlock(),i.createElementBlock("g",Az,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("text",{x:ne.x2+w.value.branchSize+24+h.value.style.chart.layout.nuts.offsetX,y:ne.y1+w.value.branchSize/2+5,"font-size":h.value.style.chart.layout.branches.labels.fontSize,"font-weight":h.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:h.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:i.normalizeStyle(`opacity:${ge(ne)?1:.1}`)},i.toDisplayString(ne.name),13,iz))),256))])):i.createCommentVNode("",!0),i.createElementVNode("line",{x1:256+w.value.padding.left,x2:256+w.value.padding.left,y1:g.value.top,y2:g.value.bottom,stroke:h.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":h.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,oz),!L.value&&!Y.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:5,x:0,y:g.value.bottom,height:w.value.height-g.value.bottom,width:w.value.width,style:{overflow:"visible"},onClick:he},[i.createElementVNode("div",lz,[i.createElementVNode("div",cz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(I.value,ne=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(i.openBlock(),i.createElementBlock("svg",uz,[i.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:ne.color,stroke:"none"},null,8,hz)])),i.createElementVNode("span",null,i.toDisplayString(ne.name),1),i.createTextVNode(" : "),i.createElementVNode("b",null,i.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+i.toDisplayString(ne.total.toFixed(h.value.style.chart.layout.legend.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.legend.suffix),1),i.createTextVNode("("+i.toDisplayString((ne.total/v.value*100).toFixed(h.value.style.chart.layout.legend.roundingPercentage))+"%) ",1)],4))),256))])])],8,sz)):i.createCommentVNode("",!0),L.value&&K.value?(i.openBlock(),i.createElementBlock("g",fz,[(i.openBlock(),i.createElementBlock("foreignObject",{x:0,y:B(),height:w.value.height-g.value.bottom,width:w.value.width,style:{overflow:"visible"},onClick:he},[i.createElementVNode("div",gz,[i.createElementVNode("b",null,i.toDisplayString(L.value.name),1),i.createElementVNode("div",pz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(L.value.breakdown,(ne,Ee)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${h.value.style.chart.layout.legend.fontSize}px;`)},[(i.openBlock(),i.createElementBlock("svg",mz,[i.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:ne.color,stroke:"none"},null,8,vz)])),i.createElementVNode("span",null,[i.createTextVNode(i.toDisplayString(ne.name)+" : ",1),i.createElementVNode("b",null,i.toDisplayString(h.value.style.chart.layout.legend.prefix)+" "+i.toDisplayString(ne.value.toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.legend.suffix),1),i.createTextVNode(" ("+i.toDisplayString((ne.proportionToBranch*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,dz)),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${a.value})`,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,yz),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:118,fill:h.value.style.chart.backgroundColor,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,wz),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,ne=>(i.openBlock(),i.createElementBlock("path",{d:ne.path,stroke:ne.color,"stroke-width":64,fill:"none",onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Bz))),256)),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:100,fill:`url(#nutpick_${a.value})`,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,xz),i.createElementVNode("circle",{cx:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,cy:L.value.y1+w.value.branchSize/2,r:48,fill:h.value.style.chart.backgroundColor,onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,bz),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[S(ne)?(i.openBlock(),i.createElementBlock("path",{key:0,d:x(ne),stroke:ne.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Cz)):i.createCommentVNode("",!0)]))),256)),i.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+8,fill:h.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString(h.value.translations.total),11,Ez),i.createElementVNode("text",{x:L.value.x2+24+h.value.style.chart.layout.nuts.offsetX,y:L.value.y1+36,fill:h.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":h.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:le,class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.prefix)+" "+i.toDisplayString(L.value.value.toFixed(h.value.style.chart.layout.nuts.selected.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.core.value.suffix),11,_z),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(ne,Ee)=>(i.openBlock(),i.createElementBlock("g",null,[S(ne)?(i.openBlock(),i.createElementBlock("text",{key:0,x:b(ne).x,"text-anchor":b(ne).anchor,y:_(ne),fill:ne.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,Fz)):i.createCommentVNode("",!0),S(ne)?(i.openBlock(),i.createElementBlock("text",{key:1,x:b(ne,!0).x,"text-anchor":b(ne,!0).anchor,y:_(ne),fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString(L.value.breakdown[Ee].name),15,Sz)):i.createCommentVNode("",!0)]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(ne,Ee)=>(i.openBlock(),i.createElementBlock("g",null,[S(ne)?(i.openBlock(),i.createElementBlock("text",{key:0,x:b(ne,!0).x,"text-anchor":b(ne).anchor,y:_(ne)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString((L.value.breakdown[Ee].value/L.value.value*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.of)+" "+i.toDisplayString(L.value.breakdown[Ee].branchName)+" ("+i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix)+" "+i.toDisplayString(L.value.breakdown[Ee].value)+" "+i.toDisplayString(h.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix)+") ",15,kz)):i.createCommentVNode("",!0),S(ne)?(i.openBlock(),i.createElementBlock("text",{key:1,x:b(ne,!0).x,"text-anchor":b(ne).anchor,y:_(ne)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString((L.value.breakdown[Ee].proportionToRoot*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.of)+" "+i.toDisplayString(L.value.breakdown[Ee].rootName),15,Tz)):i.createCommentVNode("",!0),S(ne)?(i.openBlock(),i.createElementBlock("text",{key:2,x:b(ne,!0).x,"text-anchor":b(ne).anchor,y:_(ne)+h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:h.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":h.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:i.normalizeStyle(`font-weight:${h.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:i.normalizeClass(h.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},i.toDisplayString((L.value.breakdown[Ee].proportionToTree*100).toFixed(h.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.proportionToTree),15,Nz)):i.createCommentVNode("",!0)]))),256))])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(q.value,ne=>(i.openBlock(),i.createElementBlock("g",null,[Y.value&&Y.value.id===ne.id&&!L.value?(i.openBlock(),i.createElementBlock("text",{key:0,x:ne.x1+6,y:ne.y1+w.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:he},i.toDisplayString(ne.name)+" : "+i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.prefix)+" "+i.toDisplayString(ne.value.toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingValue))+" "+i.toDisplayString(h.value.style.chart.layout.branches.labels.dataLabels.suffix),9,Lz)):i.createCommentVNode("",!0),Y.value&&Y.value.id===ne.id&&!L.value?(i.openBlock(),i.createElementBlock("text",{key:1,x:ne.x1+6,y:ne.y1+w.value.branchSize+48,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:he},i.toDisplayString((ne.proportionToRoot*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.of)+" "+i.toDisplayString(ne.rootName),9,Uz)):i.createCommentVNode("",!0),Y.value&&Y.value.id===ne.id&&!L.value?(i.openBlock(),i.createElementBlock("text",{key:2,x:ne.x1+6,y:ne.y1+w.value.branchSize+72,"text-anchor":"start","font-size":h.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:h.value.style.chart.layout.branches.labels.color,onClick:he},i.toDisplayString((ne.value/v.value*100).toFixed(h.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage))+"% "+i.toDisplayString(h.value.translations.proportionToTree),9,Iz)):i.createCommentVNode("",!0)]))),256))],12,w$)):i.createCommentVNode("",!0),d.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:2,onClick:Ce,class:"vue-ui-chestnut-table",style:"width:100%;overflow-x:auto"},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[h.value.style.chart.layout.title.text?(i.openBlock(),i.createElementBlock("tr",Dz,[i.createElementVNode("th",{colspan:"12",style:i.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(h.value.style.chart.layout.title.text),1),h.value.style.chart.layout.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",Qz," : "+i.toDisplayString(h.value.style.chart.layout.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(W.value.head,ne=>(i.openBlock(),i.createElementBlock("th",{style:i.normalizeStyle(`background:${h.value.table.th.backgroundColor};color:${h.value.table.th.color};outline:${h.value.table.th.outline}`)},i.toDisplayString(ne),5))),256))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(W.value.body,(ne,Ee)=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].rootName===ne.rootName?(i.openBlock(),i.createElementBlock("span",Oz)):(i.openBlock(),i.createElementBlock("span",Pz,i.toDisplayString(ne.rootName),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].rootName===ne.rootName?(i.openBlock(),i.createElementBlock("span",Mz)):(i.openBlock(),i.createElementBlock("span",Rz,i.toDisplayString(ne.rootValue.toFixed(h.value.table.td.roundingValue)),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].rootName===ne.rootName?(i.openBlock(),i.createElementBlock("span",Hz)):(i.openBlock(),i.createElementBlock("span",Vz,i.toDisplayString((ne.rootToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",$z)):(i.openBlock(),i.createElementBlock("span",zz,i.toDisplayString(ne.branchName),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",Kz)):(i.openBlock(),i.createElementBlock("span",Gz,i.toDisplayString(ne.branchValue.toFixed(h.value.table.td.roundingValue)),1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",jz)):(i.openBlock(),i.createElementBlock("span",Wz,i.toDisplayString((ne.branchToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},[W.value.body[Ee-1]&&W.value.body[Ee-1].branchName===ne.branchName?(i.openBlock(),i.createElementBlock("span",Xz)):(i.openBlock(),i.createElementBlock("span",qz,i.toDisplayString((ne.branchToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",1))],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString(ne.nutName),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString(ne.nutValue.toFixed(h.value.table.td.roundingValue)),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString((ne.nutToBranch*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString((ne.nutToRoot*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${h.value.table.td.backgroundColor};color:${h.value.table.td.color};outline:${h.value.table.td.outline}`)},i.toDisplayString((ne.nutToTotal*100).toFixed(h.value.table.td.roundingPercentage))+"% ",5)]))),256))])])])):i.createCommentVNode("",!0)],12,h$))}},[["__scopeId","data-v-6650dd2d"]]),oie="",Jz=["id"],Zz={class:"vue-ui-onion-user-option-item"},eK=["id","name"],tK=["for"],rK={class:"vue-ui-onion-user-option-item"},nK=["id","name"],aK=["for"],AK=["disabled"],iK=["stroke"],oK=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-82c99d17></path><path d="M18 16v.01" data-v-82c99d17></path><path d="M6 16v.01" data-v-82c99d17></path><path d="M12 5v.01" data-v-82c99d17></path><path d="M12 12v.01" data-v-82c99d17></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-82c99d17></path>',6)],sK={key:1},lK=["viewBox"],cK=["id"],uK=["stop-color"],hK=["stop-color"],fK=["stop-color"],dK={key:0},gK=["font-size","fill","x","y"],pK=["font-size","fill","x","y"],mK=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],vK=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],yK={key:1},wK=["cx","cy","r","fill"],BK={key:2},xK=["x","y","font-size","fill","font-weight"],bK=["y","height"],CK=["onClick"],EK=["onClick"],_K={key:0},FK={key:0},SK=["colspan"],kK=FA({__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-onion-${Math.random()}`),A=i.ref(Ja.vue_ui_onion),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const M=La({defaultConfig:A.value,userConfig:n.config});return Ua(M)}),u=i.ref({inside:!c.value.style.chart.layout.useDiv,showTable:c.value.table.show}),p=i.computed(()=>{const M=u.value.inside?80:64;return{height:512,width:512,padding:{top:M,left:M,right:M,bottom:M}}}),h=i.computed(()=>({top:p.value.padding.top,left:p.value.padding.left,right:p.value.width-p.value.padding.right,bottom:p.value.height-p.value.padding.bottom,centerX:p.value.width/2,centerY:p.value.height/2,width:p.value.width-p.value.padding.right-p.value.padding.left,height:p.value.height-p.value.padding.bottom-p.value.padding.top,minRadius:64,maxRadius:p.value.width-p.value.padding.right-p.value.padding.left})),d=i.computed(()=>n.dataset.map((M,q)=>({...M,color:Nr(M.color)||Ut[q],id:`onion_serie_${q}_${a.value}`}))),w=i.ref([]),g=i.computed(()=>d.value.filter(M=>!w.value.includes(M.id)).length),v=i.computed(()=>({gutter:h.value.width/2/g.value*c.value.style.chart.layout.gutter.width,track:h.value.width/2/g.value*c.value.style.chart.layout.track.width})),m=i.computed(()=>d.value.filter(M=>!w.value.includes(M.id)).map((M,q)=>{const T=(h.value.maxRadius-v.value.track)/g.value/2*(1+q),L=h.value.centerY-(h.value.centerY-h.value.top-c.value.style.chart.layout.labels.fontSize)/g.value*(q+1);return{...M,labelY:L,radius:T,path:F(T,M.percentage)}}));function F(M,q){const T=M*(1.5+(q/100>.3333333333333333?0:1-q/100))*Math.PI,L=M*1.5*Math.PI;return{bgDashArray:`${L} ${L}`,bgDashOffset:L-q/100*L,dashArray:`${T} ${T}`,dashOffset:T-q/100*T,fullOffset:0,active:`M${h.value.centerX},${h.value.centerY} A ${M},${M} 0 0 0 ${h.value.right},${h.value.top}`}}function N(M){w.value.includes(M)?w.value=w.value.filter(q=>q!==M):w.value.push(M),r("selectLegend",m.value)}function Q(){return m.value}e({getData:Q});const G=i.computed(()=>{const M=[c.value.table.translations.serie,c.value.table.translations.percentage,c.value.table.translations.value],q=m.value.map(T=>[T.name,T.percentage,T.value]);return{head:M,body:q}});function z(){o.value=!0,i.nextTick(()=>{zA({domElement:document.getElementById(`vue-ui-onion_${a.value}`),fileName:c.value.style.chart.title.text||"vue-ui-onion"}).finally(()=>{o.value=!1})})}function I(){i.nextTick(()=>{const M=[[c.value.style.chart.title.text],[c.value.style.chart.title.subtitle.text],[""]],q=G.value.head,T=G.value.body,L=M.concat([q]).concat(T);JA(L,c.value.style.chart.title.text||"vue-ui-onion")})}function U(){l.value&&l.value.removeAttribute("open")}return(M,q)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-onion",ref_key:"onionChart",ref:s,id:`vue-ui-onion_${a.value}`,style:i.normalizeStyle(`font-family:${c.value.style.fontFamily};width:100%; text-align:center`)},[(!u.value.inside||o.value)&&c.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${c.value.style.chart.backgroundColor}`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.color};font-size:${c.value.style.chart.title.fontSize}px;font-weight:${c.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.text),5),c.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${c.value.style.chart.title.subtitle.color};font-size:${c.value.style.chart.title.subtitle.fontSize}px;font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),c.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-onion-user-options",style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:l},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},i.toDisplayString(c.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-onion-user-options-items",style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)},[i.createElementVNode("div",Zz,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-title_${a.value}`,name:`vue-ui-onion-option-title_${a.value}`,"onUpdate:modelValue":q[0]||(q[0]=T=>u.value.inside=T)},null,8,eK),[[i.vModelCheckbox,u.value.inside]]),i.createElementVNode("label",{for:`vue-ui-onion-option-title_${a.value}`},i.toDisplayString(c.value.userOptions.labels.useDiv),9,tK)]),i.createElementVNode("div",rK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-onion-option-table_${a.value}`,name:`vue-ui-onion-option-table_${a.value}`,"onUpdate:modelValue":q[1]||(q[1]=T=>u.value.showTable=T)},null,8,nK),[[i.vModelCheckbox,u.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-onion-option-table_${a.value}`},i.toDisplayString(c.value.userOptions.labels.showTable),9,aK)]),i.createElementVNode("button",{class:"vue-ui-onion-button",onClick:z,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-onion-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},oK,8,iK)):(i.openBlock(),i.createElementBlock("span",sK,"PDF"))],12,AK),i.createElementVNode("button",{class:"vue-ui-onion-button",onClick:I,style:i.normalizeStyle(`background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${p.value.width} ${p.value.height}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${c.value.style.chart.backgroundColor};color:${c.value.style.chart.color}`),onClick:U},[i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{id:`onion_gradient_${a.value}`},[i.createElementVNode("stop",{offset:"0%","stop-color":`${i.unref(Nr)(c.value.style.chart.backgroundColor)}00`},null,8,uK),i.createElementVNode("stop",{offset:"90%","stop-color":"#FFFFFF"+i.unref(Ar)[c.value.style.chart.gradientIntensity]},null,8,hK),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(Nr)(c.value.style.chart.backgroundColor)}00`},null,8,fK)],8,cK)]),c.value.style.chart.title.text&&u.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",dK,[i.createElementVNode("text",{"font-size":c.value.style.chart.title.fontSize,fill:c.value.style.chart.title.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${c.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.text),13,gK),c.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":c.value.style.chart.title.subtitle.fontSize,fill:c.value.style.chart.title.subtitle.color,x:p.value.width/2,y:c.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${c.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(c.value.style.chart.title.subtitle.text),13,pK)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,T=>(i.openBlock(),i.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:T.radius,stroke:c.value.style.chart.layout.gutter.color,"stroke-width":v.value.gutter,fill:"none","stroke-dasharray":T.path.bgDashArray,"stroke-dashoffset":T.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,mK))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,T=>(i.openBlock(),i.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:T.radius,stroke:`${T.color}`,"stroke-width":v.value.track,fill:"none","stroke-dasharray":T.path.dashArray,"stroke-dashoffset":T.path.dashOffset,class:"vue-ui-onion-path","stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,vK))),256)),c.value.style.chart.useGradient?(i.openBlock(),i.createElementBlock("g",yK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,T=>(i.openBlock(),i.createElementBlock("circle",{cx:h.value.centerX,cy:h.value.centerY,r:T.radius*1.1,stroke:"none",fill:`url(#onion_gradient_${a.value})`,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,wK))),256))])):i.createCommentVNode("",!0),c.value.style.chart.layout.labels.show?(i.openBlock(),i.createElementBlock("g",BK,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,T=>(i.openBlock(),i.createElementBlock("g",null,[w.value.includes(T.id)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("text",{key:0,x:p.value.width/2-v.value.gutter*.8+c.value.style.chart.layout.labels.offsetX,y:T.labelY,"text-anchor":"end","font-size":c.value.style.chart.layout.labels.fontSize,fill:c.value.style.chart.layout.labels.color,"font-weight":c.value.style.chart.layout.labels.bold?"bold":"normal"},i.toDisplayString(T.name)+" "+i.toDisplayString(c.value.style.chart.layout.labels.percentage.show?` : ${T.percentage.toFixed(c.value.style.chart.layout.labels.roundingPercentage)}%`:"")+" "+i.toDisplayString(!c.value.style.chart.layout.labels.percentage.show&&c.value.style.chart.layout.labels.value.show?` : ${T.value?`${T.prefix}${T.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${T.suffix}`:""}`:`${c.value.style.chart.layout.labels.value.show&&T.value?`(${T.prefix}${T.value.toFixed(c.value.style.chart.layout.labels.roundingValue)}${T.suffix})`:""}`),9,xK))]))),256))])):i.createCommentVNode("",!0),c.value.style.chart.legend.show&&u.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:3,x:0,y:h.value.bottom,width:"100%",height:p.value.height-h.value.bottom,style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-onion-legend",style:i.normalizeStyle(`color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:U},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(T,L)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:K=>N(T.id),style:i.normalizeStyle(`opacity:${w.value.includes(T.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${T.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(T.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(T.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,CK))),256))],4)],8,bK)):i.createCommentVNode("",!0)],12,lK)),c.value.style.chart.legend.show&&(!u.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-onion-legend",style:i.normalizeStyle(`background:${c.value.style.chart.legend.backgroundColor};color:${c.value.style.chart.legend.color};font-size:${c.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${c.value.style.chart.legend.bold?"bold":""}`),onClick:U},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,(T,L)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-onion-legend-item",onClick:K=>N(T.id),style:i.normalizeStyle(`opacity:${w.value.includes(T.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${T.color};font-size:${c.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(T.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(T.percentage.toFixed(c.value.style.chart.legend.roundingPercentage))+"% ",1)],12,EK))),256))],4)):i.createCommentVNode("",!0),u.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:3,onClick:U,class:"vue-ui-onion-table",style:i.normalizeStyle(`width:100%;margin-top:${u.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[c.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",_K,[i.createElementVNode("th",{colspan:"3",style:i.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(c.value.style.chart.title.text),1),c.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",FK," : "+i.toDisplayString(c.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(G.value.head,T=>(i.openBlock(),i.createElementBlock("th",{colspan:T.color?2:1,style:i.normalizeStyle(`background:${c.value.table.th.backgroundColor};color:${c.value.table.th.color};outline:${c.value.table.th.outline}`)},i.toDisplayString(T),13,SK))),256))])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.value,T=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${T.color}`)}," ⬤ ",4),i.createTextVNode(" "+i.toDisplayString(T.name),1)],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},i.toDisplayString(isNaN(T.percentage)?"":T.percentage.toFixed(c.value.table.td.roundingPercentage))+"% ",5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${c.value.table.td.backgroundColor};color:${c.value.table.td.color};outline:${c.value.table.td.outline}`)},i.toDisplayString(T.prefix)+i.toDisplayString(isNaN(T.value)?"":T.value.toFixed(c.value.table.td.roundingValue))+i.toDisplayString(T.suffix),5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,Jz))}},[["__scopeId","data-v-82c99d17"]]),cie="",TK=["id"],NK={class:"vue-ui-vertical-bar-user-option-item"},LK=["id","name"],UK=["for"],IK={class:"vue-ui-vertical-bar-user-option-item"},DK=["id","name"],QK=["for"],OK={class:"vue-ui-vertical-bar-user-option-item"},PK=["id","name"],MK=["for"],RK=["disabled"],HK=["stroke"],VK=[i.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-44939c84></path><path d="M18 16v.01" data-v-44939c84></path><path d="M6 16v.01" data-v-44939c84></path><path d="M12 5v.01" data-v-44939c84></path><path d="M12 12v.01" data-v-44939c84></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-44939c84></path>',6)],$K={key:1},zK=["viewBox"],KK=["id"],GK=["stop-color"],jK=["stop-color"],WK={key:0},XK=["font-size","fill","x","y"],qK=["font-size","fill","x","y"],YK=["x","y","width","height","fill","rx"],JK=["x","y","width","height","fill","rx","stroke","stroke-width"],ZK=["x2","y1","y2","stroke","stroke-width"],eG=["x","y","font-size","fill","font-weight"],tG=["x","y","font-size","fill","font-weight"],rG=["x","y","font-size","fill","font-weight"],nG=["x","y","font-size","fill","font-weight"],aG=["y","width","height","fill","onMouseenter"],AG=["y","height"],iG=["onClick"],oG=["onClick"],sG=["innerHTML"],lG={key:0},cG={key:0},uG={style:{width:"100%"}},hG=FA({__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-vertical-bar-${Math.random()}`),A=i.ref(Ja.vue_ui_vertical_bar),o=i.ref(!1),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref({x:0,y:0}),p=i.ref(!1),h=i.ref(""),d=i.ref(0),w=i.ref(null);i.onMounted(()=>{document.addEventListener("mousemove",g),d.value=n.dataset.flatMap(x=>x.children&&x.children.length>0?x.children.length:1).reduce((x,S)=>x+S,0)}),i.onBeforeUnmount(()=>{document.removeEventListener("mousemove",g)});function g(x){u.value.x=x.clientX,u.value.y=x.clientY}const v=i.computed(()=>{let x=0,S=48;if(l.value&&s.value){const{width:D,height:W}=l.value.getBoundingClientRect(),ue=s.value.getBoundingClientRect();u.value.x+D/2>ue.right?x=-D:u.value.x-D/2<ue.left?x=0:x=-D/2,u.value.y+W>ue.bottom&&(S=-W-48)}return{top:u.value.y+S,left:u.value.x+x}}),m=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const x=La({defaultConfig:A.value,userConfig:n.config});return Ua(x)}),F=i.ref({inside:!m.value.style.chart.layout.useDiv,showTable:m.value.table.show,sortDesc:m.value.style.chart.layout.bars.sort==="desc"}),N=i.computed(()=>F.value.sortDesc),Q=i.computed(()=>n.dataset.sort((x,S)=>N.value?S.value-x.value:x.value-S.value).map((x,S)=>({...x,id:`vertical_parent_${S}_${a.value}`,hasChildren:!!x.children&&x.children.length>0,isChild:!1,color:Nr(x.color)||Ut[S]||Ut[S%Ut.length],children:!x.children||!x.children.length?[]:x.children.sort((D,W)=>N.value?W.value-D.value:D.value-W.value).map((D,W)=>({...D,isChild:!0,parentId:`vertical_parent_${S}_${a.value}`,parentName:x.name,parentValue:x.value,id:`vertical_child_${S}_${W}_${a.value}`,childIndex:W,color:Nr(D.color)||Nr(x.color)||Ut[S]||Ut[S%Ut.length]})).map((D,W)=>({...D,isFirstChild:W===0,isLastChild:W===x.children.length-1}))}))),G=i.computed(()=>({width:512,height:(m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap)*d.value,padding:{top:F.value.inside?64:12,left:128+m.value.style.chart.layout.bars.offsetX,right:64+m.value.style.chart.layout.bars.paddingRight,bottom:F.value.inside?92:12}})),z=i.computed(()=>({fullHeight:G.value.padding.top+G.value.padding.bottom+G.value.height,top:G.value.padding.top,left:G.value.padding.left,right:G.value.width-G.value.padding.right,bottom:G.value.padding.top+G.value.height,width:G.value.width-(G.value.padding.left+G.value.padding.right)}));function I(){d.value=q.value.flatMap(x=>x.children&&x.children.length>0?x.children.length:1).reduce((x,S)=>x+S,0)}const U=i.ref([]);function M(x){U.value.includes(x)?U.value=U.value.filter(S=>S!==x):U.value.push(x),I(),r("selectLegend",q.value)}const q=i.computed(()=>Q.value.filter(x=>!U.value.includes(x.id))),T=i.computed(()=>q.value.map(x=>x.value).reduce((x,S)=>x+S));function L(x,S=!1,D=0){return S?(x/T.value*100).toFixed(D)+"%":x/T.value}const K=i.computed(()=>q.value.flatMap(x=>x.hasChildren?x.children:x)),Y=i.computed(()=>Math.max(...q.value.flatMap(x=>x.children&&x.children.length?Math.max(...x.children.map(S=>S.value)):x.value)));function se(x){const S=x/Y.value;return z.value.width*S}function he(x){return se(x)+z.value.left}function ge(x,S){const D=q.value.find(Ce=>Ce.id===x.parentId),W=z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*S,ue=D.children.length*(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height);return{y:W+ue/2,name:D.name,value:[void 0,NaN,null].includes(D.value)?"":D.value.toFixed(m.value.style.chart.layout.bars.dataLabels.value.roundingValue),percentageToTotal:isNaN(D.value/T.value)?"":L(D.value,!0,m.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)}}function re(){return q.value}e({getData:re,recalculateHeight:I});const le=i.ref(null);function fe(x){p.value=!0,le.value=x.id;let S="";const D=x.isChild?x.parentName:x.name,W=x.isChild?x.name:"";S+=`<div style="width:100%;text-align:center;border-bottom:1px solid #ccc;padding-bottom:6px;margin-bottom:3px;text-align:left;">
379
379
  <div><span style="color:${x.color};margin-right:3px">⬤</span>${D}</div>
380
380
  ${W?`<div>${W}</div>`:""}
381
- </div>`,m.value.style.chart.tooltip.showValue&&(S+=`<div>${m.value.translations.value} : <b>${m.value.style.chart.tooltip.prefix}${[void 0,NaN,null].includes(x.value)?"-":x.value.toFixed(m.value.style.chart.tooltip.roundingValue)}${m.value.style.chart.tooltip.suffix}</b></div>`),m.value.style.chart.tooltip.showPercentage&&(S+=`<div>${m.value.translations.percentageToTotal} : <b>${isNaN(x.value/T.value)?"-":`${(x.value/T.value*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`,x.isChild&&(S+=`<div>${m.value.translations.percentageToSerie} : <b>${isNaN(x.value/x.parentValue)?"-":`${(x.value/x.parentValue*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`)),h.value=`<div style="text-align:left">${S}</div>`}function Te(){o.value=!0,i.nextTick(()=>{zA({domElement:document.getElementById(`vue-ui-vertical-bar_${a.value}`),fileName:m.value.style.chart.title.text||"vue-ui-vertical-bar"}).finally(()=>{o.value=!1})})}const b=i.computed(()=>{const x=[m.value.translations.parentName,m.value.translations.value,m.value.translations.percentageToTotal,m.value.translations.childName,m.value.translations.value,m.value.translations.percentageToSerie,m.value.translations.percentageToTotal],S=K.value.map(D=>D.isChild?D.isFirstChild?{color:D.color,parentName:D.parentName,parentValue:D.parentValue,percentageToTotal:D.parentValue/T.value,childName:D.name,childValue:D.value,childPercentageToParent:D.value/D.parentValue,childPercentageToTotal:D.value/T.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:D.name,childValue:D.value,childPercentageToParent:D.value/D.parentValue,childPercentageToTotal:D.value/T.value}:{color:D.color,parentName:D.name,parentValue:D.value,percentageToTotal:D.value/T.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:x,body:S}});function _(){const x=[[m.value.style.chart.title.text],[m.value.style.chart.title.subtitle.text],[""]],S=b.value.head,D=b.value.body.map(ue=>[ue.parentName,ue.parentValue,ue.percentageToTotal,ue.childName,ue.childValue,ue.childPercentageToParent,ue.childPercentageToTotal]),W=x.concat([S]).concat(D);JA(W,m.value.style.chart.title.text||"vue-ui-vertical-bar")}function B(){c.value&&c.value.removeAttribute("open")}return(x,S)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar",ref:"quadrantChart",id:`vue-ui-vertical-bar_${a.value}`,style:i.normalizeStyle(`font-family:${m.value.style.fontFamily};width:100%; text-align:center`)},[(!F.value.inside||o.value)&&m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${m.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.color};font-size:${m.value.style.chart.title.fontSize}px;font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),5),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.subtitle.color};font-size:${m.value.style.chart.title.subtitle.fontSize}px;font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),m.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-vertical-bar-user-options",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},i.toDisplayString(m.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-vertical-bar-user-options-items",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},[i.createElementVNode("div",NK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-title_${a.value}`,name:`vue-ui-vertical-bar-option-title_${a.value}`,"onUpdate:modelValue":S[0]||(S[0]=D=>F.value.inside=D)},null,8,LK),[[i.vModelCheckbox,F.value.inside]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-title_${a.value}`},i.toDisplayString(m.value.userOptions.labels.useDiv),9,UK)]),i.createElementVNode("div",IK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-table_${a.value}`,name:`vue-ui-vertical-bar-option-table_${a.value}`,"onUpdate:modelValue":S[1]||(S[1]=D=>F.value.showTable=D)},null,8,DK),[[i.vModelCheckbox,F.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-table_${a.value}`},i.toDisplayString(m.value.userOptions.labels.showTable),9,QK)]),i.createElementVNode("div",OK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-sort_${a.value}`,name:`vue-ui-vertical-bar-option-sort_${a.value}`,"onUpdate:modelValue":S[2]||(S[2]=D=>F.value.sortDesc=D),onChange:I},null,40,PK),[[i.vModelCheckbox,F.value.sortDesc]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-sort_${a.value}`},i.toDisplayString(m.value.userOptions.labels.sort),9,MK)]),i.createElementVNode("button",{class:"vue-ui-vertical-bar-button",onClick:Te,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${m.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-vertical-bar-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:m.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},VK,8,HK)):(i.openBlock(),i.createElementBlock("span",$K,"PDF"))],12,RK),i.createElementVNode("button",{class:"vue-ui-vertical-bar-button",onClick:_,style:i.normalizeStyle(`color:${m.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${G.value.width} ${z.value.fullHeight}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(D,W)=>(i.openBlock(),i.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${a.value}_${W}`},[i.createElementVNode("stop",{offset:"0%","stop-color":D.color},null,8,GK),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(_o)(D.color,.03)}${i.unref(Ar)[100-m.value.style.chart.layout.bars.gradientIntensity]}`},null,8,jK)],8,KK))),256)),m.value.style.chart.title.text&&F.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",WK,[i.createElementVNode("text",{"font-size":m.value.style.chart.title.fontSize,fill:m.value.style.chart.title.color,x:G.value.width/2,y:m.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),13,XK),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":m.value.style.chart.title.subtitle.fontSize,fill:m.value.style.chart.title.subtitle.color,x:G.value.width/2,y:m.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),13,qK)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(D,W)=>(i.openBlock(),i.createElementBlock("g",null,[i.createElementVNode("rect",{x:z.value.left,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,width:se(D.value),height:m.value.style.chart.layout.bars.height,fill:m.value.style.chart.layout.bars.underlayerColor,rx:m.value.style.chart.layout.bars.borderRadius},null,8,YK)]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(D,W)=>(i.openBlock(),i.createElementBlock("g",null,[i.createElementVNode("rect",{x:z.value.left,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,width:se(D.value),height:m.value.style.chart.layout.bars.height,fill:m.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${a.value}_${W})`:`${D.color}${i.unref(Ar)[m.value.style.chart.layout.bars.fillOpacity]}`,rx:m.value.style.chart.layout.bars.borderRadius,stroke:m.value.style.chart.layout.bars.useStroke?D.color:"none","stroke-width":m.value.style.chart.layout.bars.useStroke?m.value.style.chart.layout.bars.strokeWidth:0},null,8,JK),(!D.isChild||D.isLastChild)&&m.value.style.chart.layout.separators.show&&W!==K.value.length-1?(i.openBlock(),i.createElementBlock("line",{key:0,x1:0,x2:z.value.left,y1:m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap/2+z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,y2:m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap/2+z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,stroke:m.value.style.chart.layout.separators.color,"stroke-width":m.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,ZK)):i.createCommentVNode("",!0),i.createElementVNode("text",{x:he(D.value)+3+m.value.style.chart.layout.bars.dataLabels.offsetX,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W+m.value.style.chart.layout.bars.height/2+m.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":"start","font-size":m.value.style.chart.layout.bars.dataLabels.fontSize,fill:m.value.style.chart.layout.bars.dataLabels.color,"font-weight":m.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.value.prefix)+" "+i.toDisplayString(isNaN(D.value)||!m.value.style.chart.layout.bars.dataLabels.value.show?"":D.value.toFixed(m.value.style.chart.layout.bars.dataLabels.value.roundingValue))+" "+i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.value.suffix)+" "+i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.percentage.show?`(${L(D.value,!0,m.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`:""),9,eG),(D.isChild||!D.hasChildren)&&m.value.style.chart.layout.bars.nameLabels.show?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"end",x:z.value.left-3+m.value.style.chart.layout.bars.nameLabels.offsetX,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W+m.value.style.chart.layout.bars.height/2+m.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":m.value.style.chart.layout.bars.nameLabels.fontSize,fill:m.value.style.chart.layout.bars.nameLabels.color,"font-weight":m.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},i.toDisplayString(D.name),9,tG)):i.createCommentVNode("",!0),D.isChild&&D.childIndex===0&&m.value.style.chart.layout.bars.parentLabels.show?(i.openBlock(),i.createElementBlock("text",{key:2,x:3+m.value.style.chart.layout.bars.parentLabels.offsetX,y:ge(D,W).y,"font-size":m.value.style.chart.layout.bars.parentLabels.fontSize,fill:m.value.style.chart.layout.bars.parentLabels.color,"font-weight":m.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},i.toDisplayString(ge(D,W).name),9,rG)):i.createCommentVNode("",!0),D.isChild&&D.childIndex===0&&m.value.style.chart.layout.bars.parentLabels.show?(i.openBlock(),i.createElementBlock("text",{key:3,x:3+m.value.style.chart.layout.bars.parentLabels.offsetX,y:ge(D,W).y+m.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":m.value.style.chart.layout.bars.parentLabels.fontSize,fill:m.value.style.chart.layout.bars.parentLabels.color,"font-weight":m.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.value.show?ge(D,W).value:"")+" "+i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.percentage.show?`(${ge(D,W).percentageToTotal})`:""),9,nG)):i.createCommentVNode("",!0),i.createElementVNode("rect",{x:0,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W-m.value.style.chart.layout.bars.gap/2,width:G.value.width,height:m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap,fill:le.value===D.id?`${m.value.style.chart.layout.highlighter.color}${i.unref(Ar)[m.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:ue=>fe(D),onMouseleave:S[3]||(S[3]=ue=>{w.value=null,p.value=!1,le.value=null})},null,40,aG)]))),256)),m.value.style.chart.legend.show&&F.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:0,y:z.value.bottom+24,width:"100%",height:z.value.fullHeight-z.value.bottom-24,style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-vertical-bar-legend",style:i.normalizeStyle(`color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Q.value,(D,W)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar-legend-item",onClick:ue=>M(D.id),style:i.normalizeStyle(`opacity:${U.value.includes(D.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${D.color};font-size:${m.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(D.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.legend.prefix)+i.toDisplayString(D.value.toFixed(m.value.style.chart.legend.roundingValue))+i.toDisplayString(m.value.style.chart.legend.suffix),1)],12,iG))),256))],4)],8,AG)):i.createCommentVNode("",!0)],12,zK)),m.value.style.chart.legend.show&&(!F.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-vertical-bar-legend",style:i.normalizeStyle(`background:${m.value.style.chart.legend.backgroundColor};color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Q.value,(D,W)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar-legend-item",onClick:ue=>M(D.id),style:i.normalizeStyle(`opacity:${U.value.includes(D.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${D.color};font-size:${m.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(D.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.legend.prefix)+i.toDisplayString(D.value.toFixed(m.value.style.chart.legend.roundingValue))+i.toDisplayString(m.value.style.chart.legend.suffix),1)],12,oG))),256))],4)):i.createCommentVNode("",!0),m.value.style.chart.tooltip.show&&p.value&&U.value.length<n.dataset.length?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-vertical-bar-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${v.value.top}px;left:${v.value.left}px;background:${m.value.style.chart.tooltip.backgroundColor};color:${m.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,sG)):i.createCommentVNode("",!0),F.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:B,class:"vue-ui-vertical-bar-table",style:i.normalizeStyle(`width:100%;margin-top:${F.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",lG,[i.createElementVNode("th",{colspan:7,style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.title.text),1),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",cG," : "+i.toDisplayString(m.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value.head,D=>(i.openBlock(),i.createElementBlock("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},[i.createElementVNode("div",uG,i.toDisplayString(D),1)],4))),256))]),i.createElementVNode("tr",null,[i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+i.toDisplayString(m.value.table.td.prefix)+i.toDisplayString(isNaN(T.value)?"":T.value.toFixed(m.value.table.td.roundingValue))+i.toDisplayString(m.value.table.td.suffix),5),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4)])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value.body,D=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},[D.color?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${D.color};margin-right:3px`)},"⬤",4)):i.createCommentVNode("",!0),i.createElementVNode("span",null,i.toDisplayString(D.parentName),1)],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(m.value.table.td.prefix)+i.toDisplayString(["",NaN,void 0].includes(D.parentValue)?"":D.parentValue.toFixed(m.value.table.td.roundingValue))+i.toDisplayString(m.value.table.td.suffix),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(D.percentageToTotal)?"":`${(D.percentageToTotal*100).toFixed(m.value.table.td.roundingPercentage)}%`),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(D.childName),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(m.value.table.td.prefix)+i.toDisplayString(["",NaN,void 0].includes(D.childValue)?"":D.childValue.toFixed(m.value.table.td.roundingValue))+i.toDisplayString(m.value.table.td.suffix),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(D.childPercentageToParent)?"":`${(D.childPercentageToParent*100).toFixed(m.value.table.td.roundingPercentage)}%`),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(D.childPercentageToTotal)?"":`${(D.childPercentageToTotal*100).toFixed(m.value.table.td.roundingPercentage)}%`),5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,TK))}},[["__scopeId","data-v-44939c84"]]),fG={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-screenshot-${Math.random()}`),A=i.ref(Ja.vue_ui_screenshot),o=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const re=La({defaultConfig:A.value,userConfig:n.config});return Ua(re)}),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref(null),p=i.ref(null),h=i.ref(null),d=i.ref(null),w=i.ref(null),g=i.ref(null),v=i.ref(null),m=i.ref(null),F=i.ref(!1),N=i.ref(null);function Q(){const re=document.createElement("DIV");return re.style.position="fixed",re.style.top="200px",re.style.left="100px",re.style.width=`${o.value.style.captureArea.initialWidth}px`,re.style.height=`${o.value.style.captureArea.initialHeight}px`,re.style.background=o.value.style.captureArea.background,re.style.cursor="move",re.style.boxSizing="border-box",re.style.border=o.value.style.captureArea.border,re.style.resize="both",re.style.padding="none !important",re.style.margin="none !important",re}function G(){s.value&&(clearTimeout(N.value),s.value.remove(),s.value=null)}function z(re){const le=document.createElement("DIV");le.classList.add("vue-ui-screenshot-info-text"),le.innerHTML=o.value.translations.info,le.dataset.html2canvasIgnore="true",le.style.background=o.value.style.info.background,le.style.color=o.value.style.info.color,le.style.fontWeight=o.value.style.info.bold?"bold":"normal",le.style.minWidth=`${o.value.style.info.minWidth}px`,le.style.left="50%",le.style.padding=`${o.value.style.info.padding}px`,le.style.position="absolute",le.style.textAlign="center",le.style.top=`${o.value.style.info.top}px`,le.style.transform="translateX(-50%)",le.style.borderRadius=`${o.value.style.info.borderRadius}px`,le.style.boxShadow="0 6px 12px -6px rgba(0,0,0,0.2)",le.style.fontFamily=o.value.style.info.fontFamily,le.style.border=o.value.style.info.border,le.style.userSelect="none";const fe=document.createElement("BUTTON");fe.classList.add("vue-ui-screenshot-close-button"),fe.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>',fe.style.outline="none",fe.style.display="flex",fe.style.cursor="pointer",fe.style.borderRadius="50%",fe.style.alignItems="center",fe.style.position="absolute",fe.style.justifyContent="center",fe.style.transformOrigin="center",fe.style.top=`${o.value.style.cancelButton.top}px`,fe.style.right=`${o.value.style.cancelButton.right}px`,fe.style.background=o.value.style.cancelButton.background,fe.style.border=o.value.style.cancelButton.border,fe.style.height=`${o.value.style.cancelButton.size}px`,fe.style.width=`${o.value.style.cancelButton.size}px`,fe.addEventListener("click",G),le.appendChild(fe),re.appendChild(le)}function I(re){s.value&&(F.value=!0,re.touches?(h.value=re.touches[0].clientX,d.value=re.touches[0].clientY):(h.value=re.clientX,d.value=re.clientY),v.value=s.value.getBoundingClientRect().width,m.value=s.value.getBoundingClientRect().height,re.target.addEventListener("mousemove",U),re.target.addEventListener("touchmove",U))}function U(re){if(!s.value)return;let le,fe;re.touches?(w.value=re.touches[0].clientX,le=re.touches[0].clientX,g.value=re.touches[0].clientY,fe=re.touches[0].clientY):(w.value=re.clientX,le=re.clientX,g.value=re.clientY,fe=re.clientY);const Te=re.target.classList[0],b=s.value.style;switch(!0){case Te==="vue-ui-screenshot-handle-nw":b.top=`${fe}px`,b.left=`${le}px`,b.width=`${v.value+(h.value-w.value)}px`,b.height=`${m.value+(d.value-g.value)}px`;break;case Te==="vue-ui-screenshot-handle-ne":b.top=`${fe}px`,b.width=`${v.value+(w.value-h.value)}px`,b.height=`${m.value+(d.value-g.value)}px`;break;case Te==="vue-ui-screenshot-handle-sw":b.left=`${le}px`,b.width=`${v.value+(h.value-w.value)}px`,b.height=`${m.value+(g.value-d.value)}px`;break;case Te==="vue-ui-screenshot-handle-se":b.width=`${v.value+(w.value-h.value)}px`,b.height=`${m.value+(g.value-d.value)}px`;break}}function M(re){if(!s.value)return;re.stopPropagation();const le=Array.from(re.target.classList);le.includes("vue-ui-screenshot-handle-se")||le.includes("vue-ui-screenshot-handle-sw")||le.includes("vue-ui-screenshot-handle-nw")||le.includes("vue-ui-screenshot-handle-ne")||(F.value=!0,s.value.style.pointerEvents="auto",re.touches?(l.value=re.touches[0].clientX,c.value=re.touches[0].clientY):(l.value=re.clientX,c.value=re.clientY),u.value=l.value,p.value=c.value,document.addEventListener("mousemove",T),document.addEventListener("touchmove",T),document.addEventListener("mouseup",q),document.addEventListener("touchend",q))}function q(){l.value=null,c.value=null,u.value=null,p.value=null,F.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",q),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",q)}function T(re){if(!s.value)return;const le=s.value.getBoundingClientRect();let fe,Te;re.touches?(fe=re.touches[0].clientX-l.value,Te=re.touches[0].clientY-c.value,l.value=re.touches[0].clientX,c.value=re.touches[0].clientY):(fe=re.clientX-l.value,Te=re.clientY-c.value,l.value=re.clientX,c.value=re.clientY),s.value.style.top=`${le.top+Te}px`,s.value.style.left=`${le.left+fe}px`}function L(re){re.target.removeEventListener("mousemove",U),re.target.removeEventListener("touchmove",U),document.removeEventListener("mousemove",T),document.removeEventListener("touchmove",T),document.removeEventListener("mouseup",q),document.removeEventListener("touchend",q),F.value=!1}function K(){const re=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(re)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(re)?"mobile":"desktop"}function Y(){const re=document.getElementById(`vue-ui-screenshot-button-${a.value}`);re.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
381
+ </div>`,m.value.style.chart.tooltip.showValue&&(S+=`<div>${m.value.translations.value} : <b>${m.value.style.chart.tooltip.prefix}${[void 0,NaN,null].includes(x.value)?"-":x.value.toFixed(m.value.style.chart.tooltip.roundingValue)}${m.value.style.chart.tooltip.suffix}</b></div>`),m.value.style.chart.tooltip.showPercentage&&(S+=`<div>${m.value.translations.percentageToTotal} : <b>${isNaN(x.value/T.value)?"-":`${(x.value/T.value*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`,x.isChild&&(S+=`<div>${m.value.translations.percentageToSerie} : <b>${isNaN(x.value/x.parentValue)?"-":`${(x.value/x.parentValue*100).toFixed(m.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`)),h.value=`<div style="text-align:left">${S}</div>`}function Te(){o.value=!0,i.nextTick(()=>{zA({domElement:document.getElementById(`vue-ui-vertical-bar_${a.value}`),fileName:m.value.style.chart.title.text||"vue-ui-vertical-bar"}).finally(()=>{o.value=!1})})}const b=i.computed(()=>{const x=[m.value.translations.parentName,m.value.translations.value,m.value.translations.percentageToTotal,m.value.translations.childName,m.value.translations.value,m.value.translations.percentageToSerie,m.value.translations.percentageToTotal],S=K.value.map(D=>D.isChild?D.isFirstChild?{color:D.color,parentName:D.parentName,parentValue:D.parentValue,percentageToTotal:D.parentValue/T.value,childName:D.name,childValue:D.value,childPercentageToParent:D.value/D.parentValue,childPercentageToTotal:D.value/T.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:D.name,childValue:D.value,childPercentageToParent:D.value/D.parentValue,childPercentageToTotal:D.value/T.value}:{color:D.color,parentName:D.name,parentValue:D.value,percentageToTotal:D.value/T.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:x,body:S}});function _(){const x=[[m.value.style.chart.title.text],[m.value.style.chart.title.subtitle.text],[""]],S=b.value.head,D=b.value.body.map(ue=>[ue.parentName,ue.parentValue,ue.percentageToTotal,ue.childName,ue.childValue,ue.childPercentageToParent,ue.childPercentageToTotal]),W=x.concat([S]).concat(D);JA(W,m.value.style.chart.title.text||"vue-ui-vertical-bar")}function B(){c.value&&c.value.removeAttribute("open")}return(x,S)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar",ref:"quadrantChart",id:`vue-ui-vertical-bar_${a.value}`,style:i.normalizeStyle(`font-family:${m.value.style.fontFamily};width:100%; text-align:center`)},[(!F.value.inside||o.value)&&m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;background:${m.value.style.chart.backgroundColor};padding-bottom:12px`)},[i.createElementVNode("div",{style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.color};font-size:${m.value.style.chart.title.fontSize}px;font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),5),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle(`width:100%;text-align:center;color:${m.value.style.chart.title.subtitle.color};font-size:${m.value.style.chart.title.subtitle.fontSize}px;font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),5)):i.createCommentVNode("",!0)],4)):i.createCommentVNode("",!0),m.value.userOptions.show?(i.openBlock(),i.createElementBlock("details",{key:1,class:"vue-ui-vertical-bar-user-options",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),"data-html2canvas-ignore":"",ref_key:"details",ref:c},[i.createElementVNode("summary",{style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},i.toDisplayString(m.value.userOptions.title),5),i.createElementVNode("div",{class:"vue-ui-vertical-bar-user-options-items",style:i.normalizeStyle(`background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`)},[i.createElementVNode("div",NK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-title_${a.value}`,name:`vue-ui-vertical-bar-option-title_${a.value}`,"onUpdate:modelValue":S[0]||(S[0]=D=>F.value.inside=D)},null,8,LK),[[i.vModelCheckbox,F.value.inside]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-title_${a.value}`},i.toDisplayString(m.value.userOptions.labels.useDiv),9,UK)]),i.createElementVNode("div",IK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-table_${a.value}`,name:`vue-ui-vertical-bar-option-table_${a.value}`,"onUpdate:modelValue":S[1]||(S[1]=D=>F.value.showTable=D)},null,8,DK),[[i.vModelCheckbox,F.value.showTable]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-table_${a.value}`},i.toDisplayString(m.value.userOptions.labels.showTable),9,QK)]),i.createElementVNode("div",OK,[i.withDirectives(i.createElementVNode("input",{type:"checkbox",id:`vue-ui-vertical-bar-option-sort_${a.value}`,name:`vue-ui-vertical-bar-option-sort_${a.value}`,"onUpdate:modelValue":S[2]||(S[2]=D=>F.value.sortDesc=D),onChange:I},null,40,PK),[[i.vModelCheckbox,F.value.sortDesc]]),i.createElementVNode("label",{for:`vue-ui-vertical-bar-option-sort_${a.value}`},i.toDisplayString(m.value.userOptions.labels.sort),9,MK)]),i.createElementVNode("button",{class:"vue-ui-vertical-bar-button",onClick:Te,disabled:o.value,style:i.normalizeStyle([{"margin-top":"12px"},`color:${m.value.style.chart.color}`])},[o.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"vue-ui-vertical-bar-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:m.value.style.chart.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},VK,8,HK)):(i.openBlock(),i.createElementBlock("span",$K,"PDF"))],12,RK),i.createElementVNode("button",{class:"vue-ui-vertical-bar-button",onClick:_,style:i.normalizeStyle(`color:${m.value.style.chart.color}`)}," XLSX ",4)],4)],4)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock("svg",{viewBox:`0 0 ${G.value.width} ${z.value.fullHeight}`,style:i.normalizeStyle(`max-width:100%;overflow:visible;background:${m.value.style.chart.backgroundColor};color:${m.value.style.chart.color}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(D,W)=>(i.openBlock(),i.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${a.value}_${W}`},[i.createElementVNode("stop",{offset:"0%","stop-color":D.color},null,8,GK),i.createElementVNode("stop",{offset:"100%","stop-color":`${i.unref(_o)(D.color,.03)}${i.unref(Ar)[100-m.value.style.chart.layout.bars.gradientIntensity]}`},null,8,jK)],8,KK))),256)),m.value.style.chart.title.text&&F.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("g",WK,[i.createElementVNode("text",{"font-size":m.value.style.chart.title.fontSize,fill:m.value.style.chart.title.color,x:G.value.width/2,y:m.value.style.chart.title.fontSize,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.text),13,XK),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("text",{key:0,"font-size":m.value.style.chart.title.subtitle.fontSize,fill:m.value.style.chart.title.subtitle.color,x:G.value.width/2,y:m.value.style.chart.title.fontSize*2,"text-anchor":"middle",style:i.normalizeStyle(`font-weight:${m.value.style.chart.title.subtitle.bold?"bold":""}`)},i.toDisplayString(m.value.style.chart.title.subtitle.text),13,qK)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(D,W)=>(i.openBlock(),i.createElementBlock("g",null,[i.createElementVNode("rect",{x:z.value.left,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,width:se(D.value),height:m.value.style.chart.layout.bars.height,fill:m.value.style.chart.layout.bars.underlayerColor,rx:m.value.style.chart.layout.bars.borderRadius},null,8,YK)]))),256)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(K.value,(D,W)=>(i.openBlock(),i.createElementBlock("g",null,[i.createElementVNode("rect",{x:z.value.left,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,width:se(D.value),height:m.value.style.chart.layout.bars.height,fill:m.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${a.value}_${W})`:`${D.color}${i.unref(Ar)[m.value.style.chart.layout.bars.fillOpacity]}`,rx:m.value.style.chart.layout.bars.borderRadius,stroke:m.value.style.chart.layout.bars.useStroke?D.color:"none","stroke-width":m.value.style.chart.layout.bars.useStroke?m.value.style.chart.layout.bars.strokeWidth:0},null,8,JK),(!D.isChild||D.isLastChild)&&m.value.style.chart.layout.separators.show&&W!==K.value.length-1?(i.openBlock(),i.createElementBlock("line",{key:0,x1:0,x2:z.value.left,y1:m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap/2+z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,y2:m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap/2+z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W,stroke:m.value.style.chart.layout.separators.color,"stroke-width":m.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,ZK)):i.createCommentVNode("",!0),i.createElementVNode("text",{x:he(D.value)+3+m.value.style.chart.layout.bars.dataLabels.offsetX,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W+m.value.style.chart.layout.bars.height/2+m.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":"start","font-size":m.value.style.chart.layout.bars.dataLabels.fontSize,fill:m.value.style.chart.layout.bars.dataLabels.color,"font-weight":m.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.value.prefix)+" "+i.toDisplayString(isNaN(D.value)||!m.value.style.chart.layout.bars.dataLabels.value.show?"":D.value.toFixed(m.value.style.chart.layout.bars.dataLabels.value.roundingValue))+" "+i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.value.suffix)+" "+i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.percentage.show?`(${L(D.value,!0,m.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`:""),9,eG),(D.isChild||!D.hasChildren)&&m.value.style.chart.layout.bars.nameLabels.show?(i.openBlock(),i.createElementBlock("text",{key:1,"text-anchor":"end",x:z.value.left-3+m.value.style.chart.layout.bars.nameLabels.offsetX,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W+m.value.style.chart.layout.bars.height/2+m.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":m.value.style.chart.layout.bars.nameLabels.fontSize,fill:m.value.style.chart.layout.bars.nameLabels.color,"font-weight":m.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},i.toDisplayString(D.name),9,tG)):i.createCommentVNode("",!0),D.isChild&&D.childIndex===0&&m.value.style.chart.layout.bars.parentLabels.show?(i.openBlock(),i.createElementBlock("text",{key:2,x:3+m.value.style.chart.layout.bars.parentLabels.offsetX,y:ge(D,W).y,"font-size":m.value.style.chart.layout.bars.parentLabels.fontSize,fill:m.value.style.chart.layout.bars.parentLabels.color,"font-weight":m.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},i.toDisplayString(ge(D,W).name),9,rG)):i.createCommentVNode("",!0),D.isChild&&D.childIndex===0&&m.value.style.chart.layout.bars.parentLabels.show?(i.openBlock(),i.createElementBlock("text",{key:3,x:3+m.value.style.chart.layout.bars.parentLabels.offsetX,y:ge(D,W).y+m.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":m.value.style.chart.layout.bars.parentLabels.fontSize,fill:m.value.style.chart.layout.bars.parentLabels.color,"font-weight":m.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.value.show?ge(D,W).value:"")+" "+i.toDisplayString(m.value.style.chart.layout.bars.dataLabels.percentage.show?`(${ge(D,W).percentageToTotal})`:""),9,nG)):i.createCommentVNode("",!0),i.createElementVNode("rect",{x:0,y:z.value.top+(m.value.style.chart.layout.bars.gap+m.value.style.chart.layout.bars.height)*W-m.value.style.chart.layout.bars.gap/2,width:G.value.width,height:m.value.style.chart.layout.bars.height+m.value.style.chart.layout.bars.gap,fill:le.value===D.id?`${m.value.style.chart.layout.highlighter.color}${i.unref(Ar)[m.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:ue=>fe(D),onMouseleave:S[3]||(S[3]=ue=>{w.value=null,p.value=!1,le.value=null})},null,40,aG)]))),256)),m.value.style.chart.legend.show&&F.value.inside&&!o.value?(i.openBlock(),i.createElementBlock("foreignObject",{key:1,x:0,y:z.value.bottom+24,width:"100%",height:z.value.fullHeight-z.value.bottom-24,style:{overflow:"visible"}},[i.createElementVNode("div",{class:"vue-ui-vertical-bar-legend",style:i.normalizeStyle(`color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Q.value,(D,W)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar-legend-item",onClick:ue=>M(D.id),style:i.normalizeStyle(`opacity:${U.value.includes(D.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${D.color};font-size:${m.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(D.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.legend.prefix)+i.toDisplayString(D.value.toFixed(m.value.style.chart.legend.roundingValue))+i.toDisplayString(m.value.style.chart.legend.suffix),1)],12,iG))),256))],4)],8,AG)):i.createCommentVNode("",!0)],12,zK)),m.value.style.chart.legend.show&&(!F.value.inside||o.value)?(i.openBlock(),i.createElementBlock("div",{key:2,class:"vue-ui-vertical-bar-legend",style:i.normalizeStyle(`background:${m.value.style.chart.legend.backgroundColor};color:${m.value.style.chart.legend.color};font-size:${m.value.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${m.value.style.chart.legend.bold?"bold":""}`),onClick:B},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Q.value,(D,W)=>(i.openBlock(),i.createElementBlock("div",{class:"vue-ui-vertical-bar-legend-item",onClick:ue=>M(D.id),style:i.normalizeStyle(`opacity:${U.value.includes(D.id)?.5:1}`)},[i.createElementVNode("span",{style:i.normalizeStyle(`color:${D.color};font-size:${m.value.style.chart.legend.fontSize}px`)},"⬤",4),i.createElementVNode("span",null,i.toDisplayString(D.name)+" : ",1),i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.legend.prefix)+i.toDisplayString(D.value.toFixed(m.value.style.chart.legend.roundingValue))+i.toDisplayString(m.value.style.chart.legend.suffix),1)],12,oG))),256))],4)):i.createCommentVNode("",!0),m.value.style.chart.tooltip.show&&p.value&&U.value.length<n.dataset.length?(i.openBlock(),i.createElementBlock("div",{key:3,class:"vue-ui-vertical-bar-tooltip",ref_key:"tooltip",ref:l,style:i.normalizeStyle(`top:${v.value.top}px;left:${v.value.left}px;background:${m.value.style.chart.tooltip.backgroundColor};color:${m.value.style.chart.tooltip.color}`),innerHTML:h.value},null,12,sG)):i.createCommentVNode("",!0),F.value.showTable?(i.openBlock(),i.createElementBlock("div",{key:4,onClick:B,class:"vue-ui-vertical-bar-table",style:i.normalizeStyle(`width:100%;margin-top:${F.value.inside?"48px":""}`)},[i.createElementVNode("table",null,[i.createElementVNode("thead",null,[m.value.style.chart.title.text?(i.openBlock(),i.createElementBlock("tr",lG,[i.createElementVNode("th",{colspan:7,style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},[i.createElementVNode("span",null,i.toDisplayString(m.value.style.chart.title.text),1),m.value.style.chart.title.subtitle.text?(i.openBlock(),i.createElementBlock("span",cG," : "+i.toDisplayString(m.value.style.chart.title.subtitle.text),1)):i.createCommentVNode("",!0)],4)])):i.createCommentVNode("",!0),i.createElementVNode("tr",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value.head,D=>(i.openBlock(),i.createElementBlock("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},[i.createElementVNode("div",uG,i.toDisplayString(D),1)],4))),256))]),i.createElementVNode("tr",null,[i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+i.toDisplayString(m.value.table.td.prefix)+i.toDisplayString(isNaN(T.value)?"":T.value.toFixed(m.value.table.td.roundingValue))+i.toDisplayString(m.value.table.td.suffix),5),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4),i.createElementVNode("th",{style:i.normalizeStyle(`background:${m.value.table.th.backgroundColor};color:${m.value.table.th.color};outline:${m.value.table.th.outline}`)},null,4)])]),i.createElementVNode("tbody",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(b.value.body,D=>(i.openBlock(),i.createElementBlock("tr",null,[i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},[D.color?(i.openBlock(),i.createElementBlock("span",{key:0,style:i.normalizeStyle(`color:${D.color};margin-right:3px`)},"⬤",4)):i.createCommentVNode("",!0),i.createElementVNode("span",null,i.toDisplayString(D.parentName),1)],4),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(m.value.table.td.prefix)+i.toDisplayString(["",NaN,void 0].includes(D.parentValue)?"":D.parentValue.toFixed(m.value.table.td.roundingValue))+i.toDisplayString(m.value.table.td.suffix),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(D.percentageToTotal)?"":`${(D.percentageToTotal*100).toFixed(m.value.table.td.roundingPercentage)}%`),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(D.childName),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(m.value.table.td.prefix)+i.toDisplayString(["",NaN,void 0].includes(D.childValue)?"":D.childValue.toFixed(m.value.table.td.roundingValue))+i.toDisplayString(m.value.table.td.suffix),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(D.childPercentageToParent)?"":`${(D.childPercentageToParent*100).toFixed(m.value.table.td.roundingPercentage)}%`),5),i.createElementVNode("td",{style:i.normalizeStyle(`background:${m.value.table.td.backgroundColor};color:${m.value.table.td.color};outline:${m.value.table.td.outline}`)},i.toDisplayString(["",NaN,void 0].includes(D.childPercentageToTotal)?"":`${(D.childPercentageToTotal*100).toFixed(m.value.table.td.roundingPercentage)}%`),5)]))),256))])])],4)):i.createCommentVNode("",!0)],12,TK))}},[["__scopeId","data-v-44939c84"]]),fG={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(t,{expose:e,emit:r}){const n=t,a=i.ref(`vue-ui-screenshot-${Math.random()}`),A=i.ref(Ja.vue_ui_screenshot),o=i.computed(()=>{if(!Object.keys(n.config||{}).length)return A.value;const re=La({defaultConfig:A.value,userConfig:n.config});return Ua(re)}),s=i.ref(null),l=i.ref(null),c=i.ref(null),u=i.ref(null),p=i.ref(null),h=i.ref(null),d=i.ref(null),w=i.ref(null),g=i.ref(null),v=i.ref(null),m=i.ref(null),F=i.ref(!1),N=i.ref(null);function Q(){const re=document.createElement("DIV");return re.style.position="fixed",re.style.top="200px",re.style.left="100px",re.style.width=`${o.value.style.captureArea.initialWidth}px`,re.style.height=`${o.value.style.captureArea.initialHeight}px`,re.style.background=o.value.style.captureArea.background,re.style.cursor="move",re.style.boxSizing="border-box",re.style.border=o.value.style.captureArea.border,re.style.resize="both",re.style.padding="none !important",re.style.margin="none !important",re}function G(){s.value&&(clearTimeout(N.value),s.value.remove(),s.value=null)}function z(re){const le=document.createElement("DIV");le.classList.add("vue-ui-screenshot-info-text"),le.innerHTML=o.value.translations.info,le.dataset.html2canvasIgnore="true",le.style.background=o.value.style.info.background,le.style.color=o.value.style.info.color,le.style.fontWeight=o.value.style.info.bold?"bold":"normal",le.style.minWidth=`${o.value.style.info.minWidth}px`,le.style.left="50%",le.style.padding=`${o.value.style.info.padding}px`,le.style.position="absolute",le.style.textAlign="center",le.style.top=`${o.value.style.info.top}px`,le.style.transform="translateX(-50%)",le.style.borderRadius=`${o.value.style.info.borderRadius}px`,le.style.boxShadow="0 6px 12px -6px rgba(0,0,0,0.2)",le.style.fontFamily=o.value.style.info.fontFamily,le.style.border=o.value.style.info.border,le.style.userSelect="none";const fe=document.createElement("BUTTON");fe.classList.add("vue-ui-screenshot-close-button"),fe.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>',fe.style.outline="none",fe.style.display="flex",fe.style.cursor="pointer",fe.style.borderRadius="50%",fe.style.alignItems="center",fe.style.position="absolute",fe.style.justifyContent="center",fe.style.transformOrigin="center",fe.style.top=`${o.value.style.cancelButton.top}px`,fe.style.right=`${o.value.style.cancelButton.right}px`,fe.style.background=o.value.style.cancelButton.background,fe.style.color=o.value.style.cancelButton.color,fe.style.border=o.value.style.cancelButton.border,fe.style.height=`${o.value.style.cancelButton.size}px`,fe.style.width=`${o.value.style.cancelButton.size}px`,fe.addEventListener("click",G),le.appendChild(fe),re.appendChild(le)}function I(re){s.value&&(F.value=!0,re.touches?(h.value=re.touches[0].clientX,d.value=re.touches[0].clientY):(h.value=re.clientX,d.value=re.clientY),v.value=s.value.getBoundingClientRect().width,m.value=s.value.getBoundingClientRect().height,re.target.addEventListener("mousemove",U),re.target.addEventListener("touchmove",U))}function U(re){if(!s.value)return;let le,fe;re.touches?(w.value=re.touches[0].clientX,le=re.touches[0].clientX,g.value=re.touches[0].clientY,fe=re.touches[0].clientY):(w.value=re.clientX,le=re.clientX,g.value=re.clientY,fe=re.clientY);const Te=re.target.classList[0],b=s.value.style;switch(!0){case Te==="vue-ui-screenshot-handle-nw":b.top=`${fe}px`,b.left=`${le}px`,b.width=`${v.value+(h.value-w.value)}px`,b.height=`${m.value+(d.value-g.value)}px`;break;case Te==="vue-ui-screenshot-handle-ne":b.top=`${fe}px`,b.width=`${v.value+(w.value-h.value)}px`,b.height=`${m.value+(d.value-g.value)}px`;break;case Te==="vue-ui-screenshot-handle-sw":b.left=`${le}px`,b.width=`${v.value+(h.value-w.value)}px`,b.height=`${m.value+(g.value-d.value)}px`;break;case Te==="vue-ui-screenshot-handle-se":b.width=`${v.value+(w.value-h.value)}px`,b.height=`${m.value+(g.value-d.value)}px`;break}}function M(re){if(!s.value)return;re.stopPropagation();const le=Array.from(re.target.classList);le.includes("vue-ui-screenshot-handle-se")||le.includes("vue-ui-screenshot-handle-sw")||le.includes("vue-ui-screenshot-handle-nw")||le.includes("vue-ui-screenshot-handle-ne")||(F.value=!0,s.value.style.pointerEvents="auto",re.touches?(l.value=re.touches[0].clientX,c.value=re.touches[0].clientY):(l.value=re.clientX,c.value=re.clientY),u.value=l.value,p.value=c.value,document.addEventListener("mousemove",T),document.addEventListener("touchmove",T),document.addEventListener("mouseup",q),document.addEventListener("touchend",q))}function q(){l.value=null,c.value=null,u.value=null,p.value=null,F.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",q),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",q)}function T(re){if(!s.value)return;const le=s.value.getBoundingClientRect();let fe,Te;re.touches?(fe=re.touches[0].clientX-l.value,Te=re.touches[0].clientY-c.value,l.value=re.touches[0].clientX,c.value=re.touches[0].clientY):(fe=re.clientX-l.value,Te=re.clientY-c.value,l.value=re.clientX,c.value=re.clientY),s.value.style.top=`${le.top+Te}px`,s.value.style.left=`${le.left+fe}px`}function L(re){re.target.removeEventListener("mousemove",U),re.target.removeEventListener("touchmove",U),document.removeEventListener("mousemove",T),document.removeEventListener("touchmove",T),document.removeEventListener("mouseup",q),document.removeEventListener("touchend",q),F.value=!1}function K(){const re=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(re)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(re)?"mobile":"desktop"}function Y(){const re=document.getElementById(`vue-ui-screenshot-button-${a.value}`);re.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
382
382
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
383
383
  <path d="M4 8v-2a2 2 0 0 1 2 -2h2" />
384
384
  <path d="M4 16v2a2 2 0 0 0 2 2h2" />
385
385
  <path d="M16 4h2a2 2 0 0 1 2 2v2" />
386
386
  <path d="M16 20h2a2 2 0 0 0 2 -2v-2" />
387
387
  <path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" />
388
- </svg>`,document.getElementById(`vue-ui-screenshot-button-${a.value}`).animate([{opacity:"0.3"},{opacity:"1"},{opacity:"0.3"}],{duration:1e3,iterations:1/0}),re.classList.add("loading"),re.setAttribute("disabled","true")}function se(){if(!s.value)return;Y();const re=s.value.getBoundingClientRect();N.value=setTimeout(()=>{Ld(document.body,{allowTaint:!0,width:re.width,height:re.height,x:re.left+window.scrollX,y:re.top+window.scrollY,useCORS:!0,scale:o.value.quality}).then(le=>{const fe=le.toDataURL("image/png",1);if(o.value.mode==="download"){const Te=document.createElement("a");Te.download="screenshot.png",Te.href=fe,Te.click()}o.value.mode==="post"&&r("postImage",{image:fe,x:re.left+window.scrollX,y:re.top+window.scrollY,screenWidth:window.innerWidth>0?window.innerWidth:screen.width,deviceType:K()})}).finally(G)},10)}function he(re){const le=o.value.style.handles.size/2+4,fe=document.createElement("DIV");fe.style.top=`${-le}px`,fe.style.left=`${-le}px`,fe.style.cursor="nw-resize",fe.classList.add("vue-ui-screenshot-handle-nw");const Te=document.createElement("DIV");Te.style.top=`${-le}px`,Te.style.left="auto",Te.style.right=`${-le}px`,Te.style.cursor="ne-resize",Te.classList.add("vue-ui-screenshot-handle-ne");const b=document.createElement("DIV");b.style.top="auto",b.style.bottom=`${-le}px`,b.style.left=`${-le}px`,b.style.cursor="sw-resize",b.classList.add("vue-ui-screenshot-handle-sw");const _=document.createElement("DIV");_.style.top="auto",_.style.left="auto",_.style.right=`${-le}px`,_.style.bottom=`${-le}px`,_.style.cursor="se-resize",_.classList.add("vue-ui-screenshot-handle-se");const B=document.createElement("BUTTON");B.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /></svg><span>${o.value.translations.captureButton}</span>`,B.classList.add("vue-ui-screenshot-capture-button"),B.id=`vue-ui-screenshot-button-${a.value}`,B.style.position="absolute",B.style.top="50%",B.style.left="50%",B.style.transform="translate(-50%,-50%)",B.style.background=o.value.style.captureButton.background,B.style.color=o.value.style.captureButton.color,B.style.border=o.value.style.captureButton.border,B.style.outline="none",B.style.cursor="pointer",B.style.padding=o.value.style.captureButton.padding,B.style.fontFamily="inherit",B.style.minHeight=`${o.value.style.captureButton.minHeight}px`,B.style.width="fit-content",B.style.display="flex",B.style.alignItems="center",B.style.justifyContent="center",B.style.gap="3px",B.style.borderRadius=`${o.value.style.captureButton.borderRadius}px`,B.style.boxShadow=o.value.style.captureButton.boxShadow,B.style.userSelect="none",B.style.opacity="0.95",B.style.textAlign="left",B.style.fontWeight=o.value.style.captureButton.bold?"bold":"normal",B.addEventListener("mouseenter",()=>{B.style.opacity="1"}),B.addEventListener("mouseleave",()=>{B.style.opacity="0.95"}),B.addEventListener("click",se),re.appendChild(B),[fe,Te,b,_].forEach((x,S)=>{x.classList.add(`handle-${S}`),x.dataset.html2canvasIgnore="true",x.style.position="absolute",x.style.height=`${o.value.style.handles.size}px`,x.style.width=`${o.value.style.handles.size}px`,x.style.background=o.value.style.handles.background,x.style.border=o.value.style.handles.border,x.style.borderRadius=`${o.value.style.handles.borderRadius}px`,x.style.pointerEvents="auto !important",x.addEventListener("mousedown",I),x.addEventListener("touchstart",I),re.appendChild(x)})}function ge(){s.value||i.nextTick(()=>{const re=Q();re.dataset.html2canvasIgnore=!0,z(re),he(re),s.value=re,re.addEventListener("touchmove",function(le){le.preventDefault()},{passive:!1}),document.body.appendChild(re),document.addEventListener("mousedown",M),document.addEventListener("touchstart",M),document.addEventListener("mouseup",L),document.addEventListener("touchend",L)})}return e({shoot:ge}),(re,le)=>(i.openBlock(),i.createElementBlock("div"))}};/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Pi(t){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(t)}function Qg(t,e){return Qg=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Qg(t,e)}function dG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xh(t,e,r){return dG()?Xh=Reflect.construct:Xh=function(a,A,o){var s=[null];s.push.apply(s,A);var l=Function.bind.apply(a,s),c=new l;return o&&Qg(c,o.prototype),c},Xh.apply(null,arguments)}function eA(t){return gG(t)||pG(t)||mG(t)||vG()}function gG(t){if(Array.isArray(t))return Og(t)}function pG(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mG(t,e){if(t){if(typeof t=="string")return Og(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Og(t,e)}}function Og(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
388
+ </svg>`,document.getElementById(`vue-ui-screenshot-button-${a.value}`).animate([{opacity:"0.3"},{opacity:"1"},{opacity:"0.3"}],{duration:1e3,iterations:1/0}),re.classList.add("loading"),re.setAttribute("disabled","true")}function se(){if(!s.value)return;Y();const re=s.value.getBoundingClientRect();N.value=setTimeout(()=>{Ld(document.body,{allowTaint:!0,width:re.width,height:re.height,x:re.left+window.scrollX,y:re.top+window.scrollY,useCORS:!0,scale:o.value.quality}).then(le=>{const fe=le.toDataURL("image/png",1);if(o.value.mode==="download"){const Te=document.createElement("a");Te.download="screenshot.png",Te.href=fe,Te.click()}o.value.mode==="post"&&r("postImage",{image:fe,x:re.left+window.scrollX,y:re.top+window.scrollY,screenWidth:window.innerWidth>0?window.innerWidth:screen.width,deviceType:K()})}).finally(G)},10)}function he(re){const le=o.value.style.handles.size/2+4,fe=document.createElement("DIV");fe.style.top=`${-le}px`,fe.style.left=`${-le}px`,fe.style.cursor="nw-resize",fe.classList.add("vue-ui-screenshot-handle-nw");const Te=document.createElement("DIV");Te.style.top=`${-le}px`,Te.style.left="auto",Te.style.right=`${-le}px`,Te.style.cursor="ne-resize",Te.classList.add("vue-ui-screenshot-handle-ne");const b=document.createElement("DIV");b.style.top="auto",b.style.bottom=`${-le}px`,b.style.left=`${-le}px`,b.style.cursor="sw-resize",b.classList.add("vue-ui-screenshot-handle-sw");const _=document.createElement("DIV");_.style.top="auto",_.style.left="auto",_.style.right=`${-le}px`,_.style.bottom=`${-le}px`,_.style.cursor="se-resize",_.classList.add("vue-ui-screenshot-handle-se");const B=document.createElement("BUTTON");B.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /></svg><span>${o.value.translations.captureButton}</span>`,B.classList.add("vue-ui-screenshot-capture-button"),B.id=`vue-ui-screenshot-button-${a.value}`,B.style.position="absolute",B.style.top="50%",B.style.left="50%",B.style.transform="translate(-50%,-50%)",B.style.background=o.value.style.captureButton.background,B.style.color=o.value.style.captureButton.color,B.style.border=o.value.style.captureButton.border,B.style.outline="none",B.style.cursor="pointer",B.style.padding=o.value.style.captureButton.padding,B.style.fontFamily=o.value.style.captureButton.fontFamily,B.style.minHeight=`${o.value.style.captureButton.minHeight}px`,B.style.width="fit-content",B.style.display="flex",B.style.alignItems="center",B.style.justifyContent="center",B.style.gap="3px",B.style.borderRadius=`${o.value.style.captureButton.borderRadius}px`,B.style.boxShadow=o.value.style.captureButton.boxShadow,B.style.userSelect="none",B.style.opacity="0.95",B.style.textAlign="left",B.style.fontWeight=o.value.style.captureButton.bold?"bold":"normal",B.addEventListener("mouseenter",()=>{B.style.opacity="1"}),B.addEventListener("mouseleave",()=>{B.style.opacity="0.95"}),B.addEventListener("click",se),re.appendChild(B),[fe,Te,b,_].forEach((x,S)=>{x.classList.add(`handle-${S}`),x.dataset.html2canvasIgnore="true",x.style.position="absolute",x.style.height=`${o.value.style.handles.size}px`,x.style.width=`${o.value.style.handles.size}px`,x.style.background=o.value.style.handles.background,x.style.border=o.value.style.handles.border,x.style.borderRadius=`${o.value.style.handles.borderRadius}px`,x.style.pointerEvents="auto !important",x.addEventListener("mousedown",I),x.addEventListener("touchstart",I),re.appendChild(x)})}function ge(){s.value||i.nextTick(()=>{const re=Q();re.dataset.html2canvasIgnore=!0,z(re),he(re),s.value=re,re.addEventListener("touchmove",function(le){le.preventDefault()},{passive:!1}),document.body.appendChild(re),document.addEventListener("mousedown",M),document.addEventListener("touchstart",M),document.addEventListener("mouseup",L),document.addEventListener("touchend",L)})}return e({shoot:ge,close:G}),(re,le)=>(i.openBlock(),i.createElementBlock("div"))}};/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Pi(t){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(t)}function Qg(t,e){return Qg=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Qg(t,e)}function dG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xh(t,e,r){return dG()?Xh=Reflect.construct:Xh=function(a,A,o){var s=[null];s.push.apply(s,A);var l=Function.bind.apply(a,s),c=new l;return o&&Qg(c,o.prototype),c},Xh.apply(null,arguments)}function eA(t){return gG(t)||pG(t)||mG(t)||vG()}function gG(t){if(Array.isArray(t))return Og(t)}function pG(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mG(t,e){if(t){if(typeof t=="string")return Og(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Og(t,e)}}function Og(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
389
389
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yG=Object.hasOwnProperty,ix=Object.setPrototypeOf,wG=Object.isFrozen,BG=Object.getPrototypeOf,xG=Object.getOwnPropertyDescriptor,Wn=Object.freeze,tA=Object.seal,bG=Object.create,ox=typeof Reflect<"u"&&Reflect,qh=ox.apply,Pg=ox.construct;qh||(qh=function(e,r,n){return e.apply(r,n)}),Wn||(Wn=function(e){return e}),tA||(tA=function(e){return e}),Pg||(Pg=function(e,r){return Xh(e,eA(r))});var CG=Ia(Array.prototype.forEach),sx=Ia(Array.prototype.pop),lc=Ia(Array.prototype.push),Yh=Ia(String.prototype.toLowerCase),Mg=Ia(String.prototype.toString),EG=Ia(String.prototype.match),rA=Ia(String.prototype.replace),_G=Ia(String.prototype.indexOf),FG=Ia(String.prototype.trim),Xn=Ia(RegExp.prototype.test),Rg=SG(TypeError);function Ia(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return qh(t,e,n)}}function SG(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Pg(t,r)}}function Ot(t,e,r){var n;r=(n=r)!==null&&n!==void 0?n:Yh,ix&&ix(t,null);for(var a=e.length;a--;){var A=e[a];if(typeof A=="string"){var o=r(A);o!==A&&(wG(e)||(e[a]=o),A=o)}t[A]=!0}return t}function So(t){var e=bG(null),r;for(r in t)qh(yG,t,[r])===!0&&(e[r]=t[r]);return e}function Jh(t,e){for(;t!==null;){var r=xG(t,e);if(r){if(r.get)return Ia(r.get);if(typeof r.value=="function")return Ia(r.value)}t=BG(t)}function n(a){return console.warn("fallback value for",a),null}return n}var lx=Wn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Hg=Wn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vg=Wn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kG=Wn(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$g=Wn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),TG=Wn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cx=Wn(["#text"]),ux=Wn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),zg=Wn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hx=Wn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zh=Wn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),NG=tA(/\{\{[\w\W]*|[\w\W]*\}\}/gm),LG=tA(/<%[\w\W]*|[\w\W]*%>/gm),UG=tA(/\${[\w\W]*}/gm),IG=tA(/^data-[\-\w.\u00B7-\uFFFF]/),DG=tA(/^aria-[\-\w]+$/),QG=tA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OG=tA(/^(?:\w+script|data):/i),PG=tA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),MG=tA(/^html$/i),RG=function(){return typeof window>"u"?null:window},HG=function(e,r){if(Pi(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,a="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(a)&&(n=r.currentScript.getAttribute(a));var A="dompurify"+(n?"#"+n:"");try{return e.createPolicy(A,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+A+" could not be created."),null}};function fx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RG(),e=function(X){return fx(X)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,n=t.document,a=t.DocumentFragment,A=t.HTMLTemplateElement,o=t.Node,s=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,u=c===void 0?t.NamedNodeMap||t.MozNamedAttrMap:c,p=t.HTMLFormElement,h=t.DOMParser,d=t.trustedTypes,w=s.prototype,g=Jh(w,"cloneNode"),v=Jh(w,"nextSibling"),m=Jh(w,"childNodes"),F=Jh(w,"parentNode");if(typeof A=="function"){var N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}var Q=HG(d,r),G=Q?Q.createHTML(""):"",z=n,I=z.implementation,U=z.createNodeIterator,M=z.createDocumentFragment,q=z.getElementsByTagName,T=r.importNode,L={};try{L=So(n).documentMode?n.documentMode:{}}catch{}var K={};e.isSupported=typeof F=="function"&&I&&I.createHTMLDocument!==void 0&&L!==9;var Y=NG,se=LG,he=UG,ge=IG,re=DG,le=OG,fe=PG,Te=QG,b=null,_=Ot({},[].concat(eA(lx),eA(Hg),eA(Vg),eA($g),eA(cx))),B=null,x=Ot({},[].concat(eA(ux),eA(zg),eA(hx),eA(Zh))),S=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),D=null,W=null,ue=!0,Ce=!0,de=!1,ke=!0,ne=!1,Ee=!1,xe=!1,te=!1,Pe=!1,rt=!1,Ve=!1,We=!0,Ye=!1,Je="user-content-",ot=!0,at=!1,ft={},vt=null,St=Ot({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Tt=null,dt=Ot({},["audio","video","img","source","image","track"]),xt=null,tt=Ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ir="http://www.w3.org/1998/Math/MathML",Nt="http://www.w3.org/2000/svg",fr="http://www.w3.org/1999/xhtml",Dt=fr,zt=!1,Jr=null,Mt=Ot({},[ir,Nt,fr],Mg),_r,qt=["application/xhtml+xml","text/html"],An="text/html",Et,Kt=null,bt=n.createElement("form"),Vt=function(X){return X instanceof RegExp||X instanceof Function},ya=function(X){Kt&&Kt===X||((!X||Pi(X)!=="object")&&(X={}),X=So(X),_r=qt.indexOf(X.PARSER_MEDIA_TYPE)===-1?_r=An:_r=X.PARSER_MEDIA_TYPE,Et=_r==="application/xhtml+xml"?Mg:Yh,b="ALLOWED_TAGS"in X?Ot({},X.ALLOWED_TAGS,Et):_,B="ALLOWED_ATTR"in X?Ot({},X.ALLOWED_ATTR,Et):x,Jr="ALLOWED_NAMESPACES"in X?Ot({},X.ALLOWED_NAMESPACES,Mg):Mt,xt="ADD_URI_SAFE_ATTR"in X?Ot(So(tt),X.ADD_URI_SAFE_ATTR,Et):tt,Tt="ADD_DATA_URI_TAGS"in X?Ot(So(dt),X.ADD_DATA_URI_TAGS,Et):dt,vt="FORBID_CONTENTS"in X?Ot({},X.FORBID_CONTENTS,Et):St,D="FORBID_TAGS"in X?Ot({},X.FORBID_TAGS,Et):{},W="FORBID_ATTR"in X?Ot({},X.FORBID_ATTR,Et):{},ft="USE_PROFILES"in X?X.USE_PROFILES:!1,ue=X.ALLOW_ARIA_ATTR!==!1,Ce=X.ALLOW_DATA_ATTR!==!1,de=X.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ne=X.SAFE_FOR_TEMPLATES||!1,Ee=X.WHOLE_DOCUMENT||!1,Pe=X.RETURN_DOM||!1,rt=X.RETURN_DOM_FRAGMENT||!1,Ve=X.RETURN_TRUSTED_TYPE||!1,te=X.FORCE_BODY||!1,We=X.SANITIZE_DOM!==!1,Ye=X.SANITIZE_NAMED_PROPS||!1,ot=X.KEEP_CONTENT!==!1,at=X.IN_PLACE||!1,Te=X.ALLOWED_URI_REGEXP||Te,Dt=X.NAMESPACE||fr,S=X.CUSTOM_ELEMENT_HANDLING||{},X.CUSTOM_ELEMENT_HANDLING&&Vt(X.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=X.CUSTOM_ELEMENT_HANDLING.tagNameCheck),X.CUSTOM_ELEMENT_HANDLING&&Vt(X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ne&&(Ce=!1),rt&&(Pe=!0),ft&&(b=Ot({},eA(cx)),B=[],ft.html===!0&&(Ot(b,lx),Ot(B,ux)),ft.svg===!0&&(Ot(b,Hg),Ot(B,zg),Ot(B,Zh)),ft.svgFilters===!0&&(Ot(b,Vg),Ot(B,zg),Ot(B,Zh)),ft.mathMl===!0&&(Ot(b,$g),Ot(B,hx),Ot(B,Zh))),X.ADD_TAGS&&(b===_&&(b=So(b)),Ot(b,X.ADD_TAGS,Et)),X.ADD_ATTR&&(B===x&&(B=So(B)),Ot(B,X.ADD_ATTR,Et)),X.ADD_URI_SAFE_ATTR&&Ot(xt,X.ADD_URI_SAFE_ATTR,Et),X.FORBID_CONTENTS&&(vt===St&&(vt=So(vt)),Ot(vt,X.FORBID_CONTENTS,Et)),ot&&(b["#text"]=!0),Ee&&Ot(b,["html","head","body"]),b.table&&(Ot(b,["tbody"]),delete D.tbody),Wn&&Wn(X),Kt=X)},Ir=Ot({},["mi","mo","mn","ms","mtext"]),Yn=Ot({},["foreignobject","desc","title","annotation-xml"]),Aa=Ot({},["title","style","font","a","script"]),gt=Ot({},Hg);Ot(gt,Vg),Ot(gt,kG);var Fn=Ot({},$g);Ot(Fn,TG);var Mn=function(X){var we=F(X);(!we||!we.tagName)&&(we={namespaceURI:Dt,tagName:"template"});var Ue=Yh(X.tagName),Ke=Yh(we.tagName);return Jr[X.namespaceURI]?X.namespaceURI===Nt?we.namespaceURI===fr?Ue==="svg":we.namespaceURI===ir?Ue==="svg"&&(Ke==="annotation-xml"||Ir[Ke]):!!gt[Ue]:X.namespaceURI===ir?we.namespaceURI===fr?Ue==="math":we.namespaceURI===Nt?Ue==="math"&&Yn[Ke]:!!Fn[Ue]:X.namespaceURI===fr?we.namespaceURI===Nt&&!Yn[Ke]||we.namespaceURI===ir&&!Ir[Ke]?!1:!Fn[Ue]&&(Aa[Ue]||!gt[Ue]):!!(_r==="application/xhtml+xml"&&Jr[X.namespaceURI]):!1},mr=function(X){lc(e.removed,{element:X});try{X.parentNode.removeChild(X)}catch{try{X.outerHTML=G}catch{X.remove()}}},xr=function(X,we){try{lc(e.removed,{attribute:we.getAttributeNode(X),from:we})}catch{lc(e.removed,{attribute:null,from:we})}if(we.removeAttribute(X),X==="is"&&!B[X])if(Pe||rt)try{mr(we)}catch{}else try{we.setAttribute(X,"")}catch{}},br=function(X){var we,Ue;if(te)X="<remove></remove>"+X;else{var Ke=EG(X,/^[\r\n\t ]+/);Ue=Ke&&Ke[0]}_r==="application/xhtml+xml"&&Dt===fr&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");var ze=Q?Q.createHTML(X):X;if(Dt===fr)try{we=new h().parseFromString(ze,_r)}catch{}if(!we||!we.documentElement){we=I.createDocument(Dt,"template",null);try{we.documentElement.innerHTML=zt?G:ze}catch{}}var qe=we.body||we.documentElement;return X&&Ue&&qe.insertBefore(n.createTextNode(Ue),qe.childNodes[0]||null),Dt===fr?q.call(we,Ee?"html":"body")[0]:Ee?we.documentElement:qe},R=function(X){return U.call(X.ownerDocument||X,X,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ie=function(X){return X instanceof p&&(typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||!(X.attributes instanceof u)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function")},Z=function(X){return Pi(o)==="object"?X instanceof o:X&&Pi(X)==="object"&&typeof X.nodeType=="number"&&typeof X.nodeName=="string"},ee=function(X,we,Ue){K[X]&&CG(K[X],function(Ke){Ke.call(e,we,Ue,Kt)})},Ae=function(X){var we;if(ee("beforeSanitizeElements",X,null),ie(X)||Xn(/[\u0080-\uFFFF]/,X.nodeName))return mr(X),!0;var Ue=Et(X.nodeName);if(ee("uponSanitizeElement",X,{tagName:Ue,allowedTags:b}),X.hasChildNodes()&&!Z(X.firstElementChild)&&(!Z(X.content)||!Z(X.content.firstElementChild))&&Xn(/<[/\w]/g,X.innerHTML)&&Xn(/<[/\w]/g,X.textContent)||Ue==="select"&&Xn(/<template/i,X.innerHTML))return mr(X),!0;if(!b[Ue]||D[Ue]){if(!D[Ue]&&Se(Ue)&&(S.tagNameCheck instanceof RegExp&&Xn(S.tagNameCheck,Ue)||S.tagNameCheck instanceof Function&&S.tagNameCheck(Ue)))return!1;if(ot&&!vt[Ue]){var Ke=F(X)||X.parentNode,ze=m(X)||X.childNodes;if(ze&&Ke)for(var qe=ze.length,ut=qe-1;ut>=0;--ut)Ke.insertBefore(g(ze[ut],!0),v(X))}return mr(X),!0}return X instanceof s&&!Mn(X)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&Xn(/<\/no(script|embed|frames)/i,X.innerHTML)?(mr(X),!0):(ne&&X.nodeType===3&&(we=X.textContent,we=rA(we,Y," "),we=rA(we,se," "),we=rA(we,he," "),X.textContent!==we&&(lc(e.removed,{element:X.cloneNode()}),X.textContent=we)),ee("afterSanitizeElements",X,null),!1)},oe=function(X,we,Ue){if(We&&(we==="id"||we==="name")&&(Ue in n||Ue in bt))return!1;if(!(Ce&&!W[we]&&Xn(ge,we))){if(!(ue&&Xn(re,we))){if(!B[we]||W[we]){if(!(Se(X)&&(S.tagNameCheck instanceof RegExp&&Xn(S.tagNameCheck,X)||S.tagNameCheck instanceof Function&&S.tagNameCheck(X))&&(S.attributeNameCheck instanceof RegExp&&Xn(S.attributeNameCheck,we)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(we))||we==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Xn(S.tagNameCheck,Ue)||S.tagNameCheck instanceof Function&&S.tagNameCheck(Ue))))return!1}else if(!xt[we]){if(!Xn(Te,rA(Ue,fe,""))){if(!((we==="src"||we==="xlink:href"||we==="href")&&X!=="script"&&_G(Ue,"data:")===0&&Tt[X])){if(!(de&&!Xn(le,rA(Ue,fe,"")))){if(Ue)return!1}}}}}}return!0},Se=function(X){return X.indexOf("-")>0},Ie=function(X){var we,Ue,Ke,ze;ee("beforeSanitizeAttributes",X,null);var qe=X.attributes;if(qe){var ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};for(ze=qe.length;ze--;){we=qe[ze];var $t=we,Ct=$t.name,Er=$t.namespaceURI;if(Ue=Ct==="value"?we.value:FG(we.value),Ke=Et(Ct),ut.attrName=Ke,ut.attrValue=Ue,ut.keepAttr=!0,ut.forceKeepAttr=void 0,ee("uponSanitizeAttribute",X,ut),Ue=ut.attrValue,!ut.forceKeepAttr&&(xr(Ct,X),!!ut.keepAttr)){if(!ke&&Xn(/\/>/i,Ue)){xr(Ct,X);continue}ne&&(Ue=rA(Ue,Y," "),Ue=rA(Ue,se," "),Ue=rA(Ue,he," "));var ia=Et(X.nodeName);if(oe(ia,Ke,Ue)){if(Ye&&(Ke==="id"||Ke==="name")&&(xr(Ct,X),Ue=Je+Ue),Q&&Pi(d)==="object"&&typeof d.getAttributeType=="function"&&!Er)switch(d.getAttributeType(ia,Ke)){case"TrustedHTML":{Ue=Q.createHTML(Ue);break}case"TrustedScriptURL":{Ue=Q.createScriptURL(Ue);break}}try{Er?X.setAttributeNS(Er,Ct,Ue):X.setAttribute(Ct,Ue),sx(e.removed)}catch{}}}}ee("afterSanitizeAttributes",X,null)}},Fe=function pe(X){var we,Ue=R(X);for(ee("beforeSanitizeShadowDOM",X,null);we=Ue.nextNode();)ee("uponSanitizeShadowNode",we,null),!Ae(we)&&(we.content instanceof a&&pe(we.content),Ie(we));ee("afterSanitizeShadowDOM",X,null)};return e.sanitize=function(pe){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we,Ue,Ke,ze,qe;if(zt=!pe,zt&&(pe="<!-->"),typeof pe!="string"&&!Z(pe))if(typeof pe.toString=="function"){if(pe=pe.toString(),typeof pe!="string")throw Rg("dirty is not a string, aborting")}else throw Rg("toString is not a function");if(!e.isSupported){if(Pi(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof pe=="string")return t.toStaticHTML(pe);if(Z(pe))return t.toStaticHTML(pe.outerHTML)}return pe}if(xe||ya(X),e.removed=[],typeof pe=="string"&&(at=!1),at){if(pe.nodeName){var ut=Et(pe.nodeName);if(!b[ut]||D[ut])throw Rg("root node is forbidden and cannot be sanitized in-place")}}else if(pe instanceof o)we=br("<!---->"),Ue=we.ownerDocument.importNode(pe,!0),Ue.nodeType===1&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?we=Ue:we.appendChild(Ue);else{if(!Pe&&!ne&&!Ee&&pe.indexOf("<")===-1)return Q&&Ve?Q.createHTML(pe):pe;if(we=br(pe),!we)return Pe?null:Ve?G:""}we&&te&&mr(we.firstChild);for(var $t=R(at?pe:we);Ke=$t.nextNode();)Ke.nodeType===3&&Ke===ze||Ae(Ke)||(Ke.content instanceof a&&Fe(Ke.content),Ie(Ke),ze=Ke);if(ze=null,at)return pe;if(Pe){if(rt)for(qe=M.call(we.ownerDocument);we.firstChild;)qe.appendChild(we.firstChild);else qe=we;return(B.shadowroot||B.shadowrootmod)&&(qe=T.call(r,qe,!0)),qe}var Ct=Ee?we.outerHTML:we.innerHTML;return Ee&&b["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&Xn(MG,we.ownerDocument.doctype.name)&&(Ct="<!DOCTYPE "+we.ownerDocument.doctype.name+`>
390
390
  `+Ct),ne&&(Ct=rA(Ct,Y," "),Ct=rA(Ct,se," "),Ct=rA(Ct,he," ")),Q&&Ve?Q.createHTML(Ct):Ct},e.setConfig=function(pe){ya(pe),xe=!0},e.clearConfig=function(){Kt=null,xe=!1},e.isValidAttribute=function(pe,X,we){Kt||ya({});var Ue=Et(pe),Ke=Et(X);return oe(Ue,Ke,we)},e.addHook=function(pe,X){typeof X=="function"&&(K[pe]=K[pe]||[],lc(K[pe],X))},e.removeHook=function(pe){if(K[pe])return sx(K[pe])},e.removeHooks=function(pe){K[pe]&&(K[pe]=[])},e.removeAllHooks=function(){K={}},e}var VG=fx();const $G=Object.freeze(Object.defineProperty({__proto__:null,default:VG},Symbol.toStringTag,{value:"Module"}));var cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ef=function(t){return t&&t.Math==Math&&t},an=ef(typeof globalThis=="object"&&globalThis)||ef(typeof window=="object"&&window)||ef(typeof self=="object"&&self)||ef(typeof cc=="object"&&cc)||function(){return this}()||cc||Function("return this")(),Ls={},Vr=function(t){try{return!!t()}catch{return!0}},zG=Vr,SA=!zG(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),KG=Vr,tf=!KG(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),GG=tf,rf=Function.prototype.call,_n=GG?rf.bind(rf):function(){return rf.apply(rf,arguments)},gx={},px={}.propertyIsEnumerable,mx=Object.getOwnPropertyDescriptor,jG=mx&&!px.call({1:2},1);gx.f=jG?function(e){var r=mx(this,e);return!!r&&r.enumerable}:px;var nf=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},vx=tf,yx=Function.prototype,Kg=yx.call,WG=vx&&yx.bind.bind(Kg,Kg),$r=vx?WG:function(t){return function(){return Kg.apply(t,arguments)}},wx=$r,XG=wx({}.toString),qG=wx("".slice),ko=function(t){return qG(XG(t),8,-1)},YG=$r,JG=Vr,ZG=ko,Gg=Object,ej=YG("".split),Bx=JG(function(){return!Gg("z").propertyIsEnumerable(0)})?function(t){return ZG(t)=="String"?ej(t,""):Gg(t)}:Gg,To=function(t){return t==null},tj=To,rj=TypeError,kA=function(t){if(tj(t))throw rj("Can't call method on "+t);return t},nj=Bx,aj=kA,uc=function(t){return nj(aj(t))},jg=typeof document=="object"&&document.all,Aj=typeof jg>"u"&&jg!==void 0,xx={all:jg,IS_HTMLDDA:Aj},bx=xx,ij=bx.all,Lr=bx.IS_HTMLDDA?function(t){return typeof t=="function"||t===ij}:function(t){return typeof t=="function"},Cx=Lr,Ex=xx,oj=Ex.all,ZA=Ex.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Cx(t)||t===oj}:function(t){return typeof t=="object"?t!==null:Cx(t)},Wg=an,sj=Lr,lj=function(t){return sj(t)?t:void 0},No=function(t,e){return arguments.length<2?lj(Wg[t]):Wg[t]&&Wg[t][e]},cj=$r,af=cj({}.isPrototypeOf),Af=typeof navigator<"u"&&String(navigator.userAgent)||"",_x=an,Xg=Af,Fx=_x.process,Sx=_x.Deno,kx=Fx&&Fx.versions||Sx&&Sx.version,Tx=kx&&kx.v8,nA,of;Tx&&(nA=Tx.split("."),of=nA[0]>0&&nA[0]<4?1:+(nA[0]+nA[1])),!of&&Xg&&(nA=Xg.match(/Edge\/(\d+)/),(!nA||nA[1]>=74)&&(nA=Xg.match(/Chrome\/(\d+)/),nA&&(of=+nA[1])));var qg=of,Nx=qg,uj=Vr,hj=an,fj=hj.String,Lx=!!Object.getOwnPropertySymbols&&!uj(function(){var t=Symbol();return!fj(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Nx&&Nx<41}),dj=Lx,Ux=dj&&!Symbol.sham&&typeof Symbol.iterator=="symbol",gj=No,pj=Lr,mj=af,vj=Ux,yj=Object,Ix=vj?function(t){return typeof t=="symbol"}:function(t){var e=gj("Symbol");return pj(e)&&mj(e.prototype,yj(t))},wj=String,sf=function(t){try{return wj(t)}catch{return"Object"}},Bj=Lr,xj=sf,bj=TypeError,ei=function(t){if(Bj(t))return t;throw bj(xj(t)+" is not a function")},Cj=ei,Ej=To,Us=function(t,e){var r=t[e];return Ej(r)?void 0:Cj(r)},Yg=_n,Jg=Lr,Zg=ZA,_j=TypeError,Fj=function(t,e){var r,n;if(e==="string"&&Jg(r=t.toString)&&!Zg(n=Yg(r,t))||Jg(r=t.valueOf)&&!Zg(n=Yg(r,t))||e!=="string"&&Jg(r=t.toString)&&!Zg(n=Yg(r,t)))return n;throw _j("Can't convert object to primitive value")},Dx={exports:{}},Qx=an,Sj=Object.defineProperty,e1=function(t,e){try{Sj(Qx,t,{value:e,configurable:!0,writable:!0})}catch{Qx[t]=e}return e},kj=an,Tj=e1,Ox="__core-js_shared__",Nj=kj[Ox]||Tj(Ox,{}),t1=Nj,Px=t1;(Dx.exports=function(t,e){return Px[t]||(Px[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.32.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"});var r1=Dx.exports,Lj=kA,Uj=Object,lf=function(t){return Uj(Lj(t))},Ij=$r,Dj=lf,Qj=Ij({}.hasOwnProperty),aA=Object.hasOwn||function(e,r){return Qj(Dj(e),r)},Oj=$r,Pj=0,Mj=Math.random(),Rj=Oj(1 .toString),Mx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Rj(++Pj+Mj,36)},Hj=an,Vj=r1,Rx=aA,$j=Mx,zj=Lx,Kj=Ux,Is=Hj.Symbol,n1=Vj("wks"),Gj=Kj?Is.for||Is:Is&&Is.withoutSetter||$j,fn=function(t){return Rx(n1,t)||(n1[t]=zj&&Rx(Is,t)?Is[t]:Gj("Symbol."+t)),n1[t]},jj=_n,Hx=ZA,Vx=Ix,Wj=Us,Xj=Fj,qj=fn,Yj=TypeError,Jj=qj("toPrimitive"),Zj=function(t,e){if(!Hx(t)||Vx(t))return t;var r=Wj(t,Jj),n;if(r){if(e===void 0&&(e="default"),n=jj(r,t,e),!Hx(n)||Vx(n))return n;throw Yj("Can't convert object to primitive value")}return e===void 0&&(e="number"),Xj(t,e)},eW=Zj,tW=Ix,a1=function(t){var e=eW(t,"string");return tW(e)?e:e+""},rW=an,$x=ZA,A1=rW.document,nW=$x(A1)&&$x(A1.createElement),cf=function(t){return nW?A1.createElement(t):{}},aW=SA,AW=Vr,iW=cf,zx=!aW&&!AW(function(){return Object.defineProperty(iW("div"),"a",{get:function(){return 7}}).a!=7}),oW=SA,sW=_n,lW=gx,cW=nf,uW=uc,hW=a1,fW=aA,dW=zx,Kx=Object.getOwnPropertyDescriptor;Ls.f=oW?Kx:function(e,r){if(e=uW(e),r=hW(r),dW)try{return Kx(e,r)}catch{}if(fW(e,r))return cW(!sW(lW.f,e,r),e[r])};var TA={},gW=SA,pW=Vr,Gx=gW&&pW(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),mW=ZA,vW=String,yW=TypeError,On=function(t){if(mW(t))return t;throw yW(vW(t)+" is not an object")},wW=SA,BW=zx,xW=Gx,uf=On,jx=a1,bW=TypeError,i1=Object.defineProperty,CW=Object.getOwnPropertyDescriptor,o1="enumerable",s1="configurable",l1="writable";TA.f=wW?xW?function(e,r,n){if(uf(e),r=jx(r),uf(n),typeof e=="function"&&r==="prototype"&&"value"in n&&l1 in n&&!n[l1]){var a=CW(e,r);a&&a[l1]&&(e[r]=n.value,n={configurable:s1 in n?n[s1]:a[s1],enumerable:o1 in n?n[o1]:a[o1],writable:!1})}return i1(e,r,n)}:i1:function(e,r,n){if(uf(e),r=jx(r),uf(n),BW)try{return i1(e,r,n)}catch{}if("get"in n||"set"in n)throw bW("Accessors not supported");return"value"in n&&(e[r]=n.value),e};var EW=SA,_W=TA,FW=nf,hc=EW?function(t,e,r){return _W.f(t,e,FW(1,r))}:function(t,e,r){return t[e]=r,t},Wx={exports:{}},c1=SA,SW=aA,Xx=Function.prototype,kW=c1&&Object.getOwnPropertyDescriptor,u1=SW(Xx,"name"),TW=u1&&(function(){}).name==="something",NW=u1&&(!c1||c1&&kW(Xx,"name").configurable),hf={EXISTS:u1,PROPER:TW,CONFIGURABLE:NW},LW=$r,UW=Lr,h1=t1,IW=LW(Function.toString);UW(h1.inspectSource)||(h1.inspectSource=function(t){return IW(t)});var f1=h1.inspectSource,DW=an,QW=Lr,qx=DW.WeakMap,OW=QW(qx)&&/native code/.test(String(qx)),PW=r1,MW=Mx,Yx=PW("keys"),d1=function(t){return Yx[t]||(Yx[t]=MW(t))},g1={},RW=OW,Jx=an,HW=ZA,VW=hc,p1=aA,m1=t1,$W=d1,zW=g1,Zx="Object already initialized",v1=Jx.TypeError,KW=Jx.WeakMap,ff,fc,df,GW=function(t){return df(t)?fc(t):ff(t,{})},jW=function(t){return function(e){var r;if(!HW(e)||(r=fc(e)).type!==t)throw v1("Incompatible receiver, "+t+" required");return r}};if(RW||m1.state){var NA=m1.state||(m1.state=new KW);NA.get=NA.get,NA.has=NA.has,NA.set=NA.set,ff=function(t,e){if(NA.has(t))throw v1(Zx);return e.facade=t,NA.set(t,e),e},fc=function(t){return NA.get(t)||{}},df=function(t){return NA.has(t)}}else{var Ds=$W("state");zW[Ds]=!0,ff=function(t,e){if(p1(t,Ds))throw v1(Zx);return e.facade=t,VW(t,Ds,e),e},fc=function(t){return p1(t,Ds)?t[Ds]:{}},df=function(t){return p1(t,Ds)}}var gf={set:ff,get:fc,has:df,enforce:GW,getterFor:jW},y1=$r,WW=Vr,XW=Lr,pf=aA,w1=SA,qW=hf.CONFIGURABLE,YW=f1,eb=gf,JW=eb.enforce,ZW=eb.get,tb=String,mf=Object.defineProperty,eX=y1("".slice),tX=y1("".replace),rX=y1([].join),nX=w1&&!WW(function(){return mf(function(){},"length",{value:8}).length!==8}),aX=String(String).split("String"),AX=Wx.exports=function(t,e,r){eX(tb(e),0,7)==="Symbol("&&(e="["+tX(tb(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!pf(t,"name")||qW&&t.name!==e)&&(w1?mf(t,"name",{value:e,configurable:!0}):t.name=e),nX&&r&&pf(r,"arity")&&t.length!==r.arity&&mf(t,"length",{value:r.arity});try{r&&pf(r,"constructor")&&r.constructor?w1&&mf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var n=JW(t);return pf(n,"source")||(n.source=rX(aX,typeof e=="string"?e:"")),t};Function.prototype.toString=AX(function(){return XW(this)&&ZW(this).source||YW(this)},"toString");var rb=Wx.exports,iX=Lr,oX=TA,sX=rb,lX=e1,Lo=function(t,e,r,n){n||(n={});var a=n.enumerable,A=n.name!==void 0?n.name:e;if(iX(r)&&sX(r,A,n),n.global)a?t[e]=r:lX(e,r);else{try{n.unsafe?t[e]&&(a=!0):delete t[e]}catch{}a?t[e]=r:oX.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},nb={},cX=Math.ceil,uX=Math.floor,hX=Math.trunc||function(e){var r=+e;return(r>0?uX:cX)(r)},fX=hX,vf=function(t){var e=+t;return e!==e||e===0?0:fX(e)},dX=vf,gX=Math.max,pX=Math.min,ab=function(t,e){var r=dX(t);return r<0?gX(r+e,0):pX(r,e)},mX=vf,vX=Math.min,Qs=function(t){return t>0?vX(mX(t),9007199254740991):0},yX=Qs,yf=function(t){return yX(t.length)},wX=uc,BX=ab,xX=yf,Ab=function(t){return function(e,r,n){var a=wX(e),A=xX(a),o=BX(n,A),s;if(t&&r!=r){for(;A>o;)if(s=a[o++],s!=s)return!0}else for(;A>o;o++)if((t||o in a)&&a[o]===r)return t||o||0;return!t&&-1}},ib={includes:Ab(!0),indexOf:Ab(!1)},bX=$r,B1=aA,CX=uc,EX=ib.indexOf,_X=g1,ob=bX([].push),sb=function(t,e){var r=CX(t),n=0,a=[],A;for(A in r)!B1(_X,A)&&B1(r,A)&&ob(a,A);for(;e.length>n;)B1(r,A=e[n++])&&(~EX(a,A)||ob(a,A));return a},x1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],FX=sb,SX=x1,kX=SX.concat("length","prototype");nb.f=Object.getOwnPropertyNames||function(e){return FX(e,kX)};var lb={};lb.f=Object.getOwnPropertySymbols;var TX=No,NX=$r,LX=nb,UX=lb,IX=On,DX=NX([].concat),QX=TX("Reflect","ownKeys")||function(e){var r=LX.f(IX(e)),n=UX.f;return n?DX(r,n(e)):r},cb=aA,OX=QX,PX=Ls,MX=TA,RX=function(t,e,r){for(var n=OX(e),a=MX.f,A=PX.f,o=0;o<n.length;o++){var s=n[o];!cb(t,s)&&!(r&&cb(r,s))&&a(t,s,A(e,s))}},HX=Vr,VX=Lr,$X=/#|\.prototype\./,dc=function(t,e){var r=KX[zX(t)];return r==jX?!0:r==GX?!1:VX(e)?HX(e):!!e},zX=dc.normalize=function(t){return String(t).replace($X,".").toLowerCase()},KX=dc.data={},GX=dc.NATIVE="N",jX=dc.POLYFILL="P",ub=dc,b1=an,WX=Ls.f,XX=hc,qX=Lo,YX=e1,JX=RX,ZX=ub,qn=function(t,e){var r=t.target,n=t.global,a=t.stat,A,o,s,l,c,u;if(n?o=b1:a?o=b1[r]||YX(r,{}):o=(b1[r]||{}).prototype,o)for(s in e){if(c=e[s],t.dontCallGetSet?(u=WX(o,s),l=u&&u.value):l=o[s],A=ZX(n?s:r+(a?".":"#")+s,t.forced),!A&&l!==void 0){if(typeof c==typeof l)continue;JX(c,l)}(t.sham||l&&l.sham)&&XX(c,"sham",!0),qX(o,s,c,t)}},eq=ko,gc=typeof process<"u"&&eq(process)=="process",tq=$r,rq=ei,nq=function(t,e,r){try{return tq(rq(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}},aq=Lr,Aq=String,iq=TypeError,oq=function(t){if(typeof t=="object"||aq(t))return t;throw iq("Can't set "+Aq(t)+" as a prototype")},sq=nq,lq=On,cq=oq,hb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=sq(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch{}return function(a,A){return lq(a),cq(A),t?r(a,A):a.__proto__=A,a}}():void 0),uq=TA.f,hq=aA,fq=fn,fb=fq("toStringTag"),C1=function(t,e,r){t&&!r&&(t=t.prototype),t&&!hq(t,fb)&&uq(t,fb,{configurable:!0,value:e})},db=rb,dq=TA,gq=function(t,e,r){return r.get&&db(r.get,e,{getter:!0}),r.set&&db(r.set,e,{setter:!0}),dq.f(t,e,r)},pq=No,mq=gq,vq=fn,yq=SA,gb=vq("species"),wq=function(t){var e=pq(t);yq&&e&&!e[gb]&&mq(e,gb,{configurable:!0,get:function(){return this}})},Bq=af,xq=TypeError,bq=function(t,e){if(Bq(e,t))return t;throw xq("Incorrect invocation")},Cq=fn,Eq=Cq("toStringTag"),pb={};pb[Eq]="z";var _q=String(pb)==="[object z]",Fq=_q,Sq=Lr,wf=ko,kq=fn,Tq=kq("toStringTag"),Nq=Object,Lq=wf(function(){return arguments}())=="Arguments",Uq=function(t,e){try{return t[e]}catch{}},E1=Fq?wf:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=Uq(e=Nq(t),Tq))=="string"?r:Lq?wf(e):(n=wf(e))=="Object"&&Sq(e.callee)?"Arguments":n},Iq=$r,Dq=Vr,mb=Lr,Qq=E1,Oq=No,Pq=f1,vb=function(){},Mq=[],yb=Oq("Reflect","construct"),_1=/^\s*(?:class|function)\b/,Rq=Iq(_1.exec),Hq=!_1.exec(vb),pc=function(e){if(!mb(e))return!1;try{return yb(vb,Mq,e),!0}catch{return!1}},wb=function(e){if(!mb(e))return!1;switch(Qq(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Hq||!!Rq(_1,Pq(e))}catch{return!0}};wb.sham=!0;var Vq=!yb||Dq(function(){var t;return pc(pc.call)||!pc(Object)||!pc(function(){t=!0})||t})?wb:pc,$q=Vq,zq=sf,Kq=TypeError,Gq=function(t){if($q(t))return t;throw Kq(zq(t)+" is not a constructor")},Bb=On,jq=Gq,Wq=To,Xq=fn,qq=Xq("species"),xb=function(t,e){var r=Bb(t).constructor,n;return r===void 0||Wq(n=Bb(r)[qq])?e:jq(n)},Yq=tf,bb=Function.prototype,Cb=bb.apply,Eb=bb.call,F1=typeof Reflect=="object"&&Reflect.apply||(Yq?Eb.bind(Cb):function(){return Eb.apply(Cb,arguments)}),Jq=ko,Zq=$r,mc=function(t){if(Jq(t)==="Function")return Zq(t)},_b=mc,eY=ei,tY=tf,rY=_b(_b.bind),S1=function(t,e){return eY(t),e===void 0?t:tY?rY(t,e):function(){return t.apply(e,arguments)}},nY=No,Fb=nY("document","documentElement"),aY=$r,AY=aY([].slice),iY=TypeError,oY=function(t,e){if(t<e)throw iY("Not enough arguments");return t},sY=Af,Sb=/(?:ipad|iphone|ipod).*applewebkit/i.test(sY),va=an,lY=F1,cY=S1,kb=Lr,uY=aA,Tb=Vr,Nb=Fb,hY=AY,Lb=cf,fY=oY,dY=Sb,gY=gc,k1=va.setImmediate,T1=va.clearImmediate,pY=va.process,N1=va.Dispatch,mY=va.Function,Ub=va.MessageChannel,vY=va.String,L1=0,vc={},Ib="onreadystatechange",yc,Uo,U1,I1;Tb(function(){yc=va.location});var D1=function(t){if(uY(vc,t)){var e=vc[t];delete vc[t],e()}},Q1=function(t){return function(){D1(t)}},Db=function(t){D1(t.data)},Qb=function(t){va.postMessage(vY(t),yc.protocol+"//"+yc.host)};(!k1||!T1)&&(k1=function(e){fY(arguments.length,1);var r=kb(e)?e:mY(e),n=hY(arguments,1);return vc[++L1]=function(){lY(r,void 0,n)},Uo(L1),L1},T1=function(e){delete vc[e]},gY?Uo=function(t){pY.nextTick(Q1(t))}:N1&&N1.now?Uo=function(t){N1.now(Q1(t))}:Ub&&!dY?(U1=new Ub,I1=U1.port2,U1.port1.onmessage=Db,Uo=cY(I1.postMessage,I1)):va.addEventListener&&kb(va.postMessage)&&!va.importScripts&&yc&&yc.protocol!=="file:"&&!Tb(Qb)?(Uo=Qb,va.addEventListener("message",Db,!1)):Ib in Lb("script")?Uo=function(t){Nb.appendChild(Lb("script"))[Ib]=function(){Nb.removeChild(this),D1(t)}}:Uo=function(t){setTimeout(Q1(t),0)});var Ob={set:k1,clear:T1},Pb=function(){this.head=null,this.tail=null};Pb.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Mb=Pb,yY=Af,wY=/ipad|iphone|ipod/i.test(yY)&&typeof Pebble<"u",BY=Af,xY=/web0s(?!.*chrome)/i.test(BY),Io=an,Rb=S1,bY=Ls.f,O1=Ob.set,CY=Mb,EY=Sb,_Y=wY,FY=xY,P1=gc,Hb=Io.MutationObserver||Io.WebKitMutationObserver,Vb=Io.document,$b=Io.process,Bf=Io.Promise,zb=bY(Io,"queueMicrotask"),M1=zb&&zb.value,Os,R1,H1,xf,Kb;if(!M1){var bf=new CY,Cf=function(){var t,e;for(P1&&(t=$b.domain)&&t.exit();e=bf.get();)try{e()}catch(r){throw bf.head&&Os(),r}t&&t.enter()};!EY&&!P1&&!FY&&Hb&&Vb?(R1=!0,H1=Vb.createTextNode(""),new Hb(Cf).observe(H1,{characterData:!0}),Os=function(){H1.data=R1=!R1}):!_Y&&Bf&&Bf.resolve?(xf=Bf.resolve(void 0),xf.constructor=Bf,Kb=Rb(xf.then,xf),Os=function(){Kb(Cf)}):P1?Os=function(){$b.nextTick(Cf)}:(O1=Rb(O1,Io),Os=function(){O1(Cf)}),M1=function(t){bf.head||Os(),bf.add(t)}}var SY=M1,kY=function(t,e){try{arguments.length==1?console.error(t):console.error(t,e)}catch{}},V1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},TY=an,Ef=TY.Promise,Gb=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",NY=Gb,LY=gc,UY=!NY&&!LY&&typeof window=="object"&&typeof document=="object",IY=an,wc=Ef,DY=Lr,QY=ub,OY=f1,PY=fn,MY=UY,RY=Gb,$1=qg;wc&&wc.prototype;var HY=PY("species"),z1=!1,jb=DY(IY.PromiseRejectionEvent),VY=QY("Promise",function(){var t=OY(wc),e=t!==String(wc);if(!e&&$1===66)return!0;if(!$1||$1<51||!/native code/.test(t)){var r=new wc(function(A){A(1)}),n=function(A){A(function(){},function(){})},a=r.constructor={};if(a[HY]=n,z1=r.then(function(){})instanceof n,!z1)return!0}return!e&&(MY||RY)&&!jb}),Bc={CONSTRUCTOR:VY,REJECTION_EVENT:jb,SUBCLASSING:z1},Ps={},Wb=ei,$Y=TypeError,zY=function(t){var e,r;this.promise=new t(function(n,a){if(e!==void 0||r!==void 0)throw $Y("Bad Promise constructor");e=n,r=a}),this.resolve=Wb(e),this.reject=Wb(r)};Ps.f=function(t){return new zY(t)};var KY=qn,_f=gc,Mi=an,Ms=_n,Xb=Lo,qb=hb,GY=C1,jY=wq,WY=ei,Ff=Lr,XY=ZA,qY=bq,YY=xb,Yb=Ob.set,K1=SY,JY=kY,ZY=V1,eJ=Mb,Jb=gf,Sf=Ef,G1=Bc,Zb=Ps,kf="Promise",e5=G1.CONSTRUCTOR,tJ=G1.REJECTION_EVENT,rJ=G1.SUBCLASSING,j1=Jb.getterFor(kf),nJ=Jb.set,Rs=Sf&&Sf.prototype,Do=Sf,Tf=Rs,t5=Mi.TypeError,W1=Mi.document,X1=Mi.process,q1=Zb.f,aJ=q1,AJ=!!(W1&&W1.createEvent&&Mi.dispatchEvent),r5="unhandledrejection",iJ="rejectionhandled",n5=0,a5=1,oJ=2,Y1=1,A5=2,Nf,i5,sJ,o5,s5=function(t){var e;return XY(t)&&Ff(e=t.then)?e:!1},l5=function(t,e){var r=e.value,n=e.state==a5,a=n?t.ok:t.fail,A=t.resolve,o=t.reject,s=t.domain,l,c,u;try{a?(n||(e.rejection===A5&&cJ(e),e.rejection=Y1),a===!0?l=r:(s&&s.enter(),l=a(r),s&&(s.exit(),u=!0)),l===t.promise?o(t5("Promise-chain cycle")):(c=s5(l))?Ms(c,l,A,o):A(l)):o(r)}catch(p){s&&!u&&s.exit(),o(p)}},c5=function(t,e){t.notified||(t.notified=!0,K1(function(){for(var r=t.reactions,n;n=r.get();)l5(n,t);t.notified=!1,e&&!t.rejection&&lJ(t)}))},u5=function(t,e,r){var n,a;AJ?(n=W1.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),Mi.dispatchEvent(n)):n={promise:e,reason:r},!tJ&&(a=Mi["on"+t])?a(n):t===r5&&JY("Unhandled promise rejection",r)},lJ=function(t){Ms(Yb,Mi,function(){var e=t.facade,r=t.value,n=h5(t),a;if(n&&(a=ZY(function(){_f?X1.emit("unhandledRejection",r,e):u5(r5,e,r)}),t.rejection=_f||h5(t)?A5:Y1,a.error))throw a.value})},h5=function(t){return t.rejection!==Y1&&!t.parent},cJ=function(t){Ms(Yb,Mi,function(){var e=t.facade;_f?X1.emit("rejectionHandled",e):u5(iJ,e,t.value)})},Hs=function(t,e,r){return function(n){t(e,n,r)}},Vs=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=oJ,c5(t,!0))},J1=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw t5("Promise can't be resolved itself");var n=s5(e);n?K1(function(){var a={done:!1};try{Ms(n,e,Hs(J1,a,t),Hs(Vs,a,t))}catch(A){Vs(a,A,t)}}):(t.value=e,t.state=a5,c5(t,!1))}catch(a){Vs({done:!1},a,t)}}};if(e5&&(Do=function(e){qY(this,Tf),WY(e),Ms(Nf,this);var r=j1(this);try{e(Hs(J1,r),Hs(Vs,r))}catch(n){Vs(r,n)}},Tf=Do.prototype,Nf=function(e){nJ(this,{type:kf,done:!1,notified:!1,parent:!1,reactions:new eJ,rejection:!1,state:n5,value:void 0})},Nf.prototype=Xb(Tf,"then",function(e,r){var n=j1(this),a=q1(YY(this,Do));return n.parent=!0,a.ok=Ff(e)?e:!0,a.fail=Ff(r)&&r,a.domain=_f?X1.domain:void 0,n.state==n5?n.reactions.add(a):K1(function(){l5(a,n)}),a.promise}),i5=function(){var t=new Nf,e=j1(t);this.promise=t,this.resolve=Hs(J1,e),this.reject=Hs(Vs,e)},Zb.f=q1=function(t){return t===Do||t===sJ?new i5(t):aJ(t)},Ff(Sf)&&Rs!==Object.prototype)){o5=Rs.then,rJ||Xb(Rs,"then",function(e,r){var n=this;return new Do(function(a,A){Ms(o5,n,a,A)}).then(e,r)},{unsafe:!0});try{delete Rs.constructor}catch{}qb&&qb(Rs,Tf)}KY({global:!0,constructor:!0,wrap:!0,forced:e5},{Promise:Do}),GY(Do,kf,!1),jY(kf);var xc={},uJ=fn,hJ=xc,fJ=uJ("iterator"),dJ=Array.prototype,gJ=function(t){return t!==void 0&&(hJ.Array===t||dJ[fJ]===t)},pJ=E1,f5=Us,mJ=To,vJ=xc,yJ=fn,wJ=yJ("iterator"),d5=function(t){if(!mJ(t))return f5(t,wJ)||f5(t,"@@iterator")||vJ[pJ(t)]},BJ=_n,xJ=ei,bJ=On,CJ=sf,EJ=d5,_J=TypeError,FJ=function(t,e){var r=arguments.length<2?EJ(t):e;if(xJ(r))return bJ(BJ(r,t));throw _J(CJ(t)+" is not iterable")},SJ=_n,g5=On,kJ=Us,TJ=function(t,e,r){var n,a;g5(t);try{if(n=kJ(t,"return"),!n){if(e==="throw")throw r;return r}n=SJ(n,t)}catch(A){a=!0,n=A}if(e==="throw")throw r;if(a)throw n;return g5(n),r},NJ=S1,LJ=_n,UJ=On,IJ=sf,DJ=gJ,QJ=yf,p5=af,OJ=FJ,PJ=d5,m5=TJ,MJ=TypeError,Lf=function(t,e){this.stopped=t,this.result=e},v5=Lf.prototype,y5=function(t,e,r){var n=r&&r.that,a=!!(r&&r.AS_ENTRIES),A=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=NJ(e,n),c,u,p,h,d,w,g,v=function(F){return c&&m5(c,"normal",F),new Lf(!0,F)},m=function(F){return a?(UJ(F),s?l(F[0],F[1],v):l(F[0],F[1])):s?l(F,v):l(F)};if(A)c=t.iterator;else if(o)c=t;else{if(u=PJ(t),!u)throw MJ(IJ(t)+" is not iterable");if(DJ(u)){for(p=0,h=QJ(t);h>p;p++)if(d=m(t[p]),d&&p5(v5,d))return d;return new Lf(!1)}c=OJ(t,u)}for(w=A?t.next:c.next;!(g=LJ(w,c)).done;){try{d=m(g.value)}catch(F){m5(c,"throw",F)}if(typeof d=="object"&&d&&p5(v5,d))return d}return new Lf(!1)},RJ=fn,w5=RJ("iterator"),B5=!1;try{var HJ=0,x5={next:function(){return{done:!!HJ++}},return:function(){B5=!0}};x5[w5]=function(){return this},Array.from(x5,function(){throw 2})}catch{}var VJ=function(t,e){if(!e&&!B5)return!1;var r=!1;try{var n={};n[w5]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},$J=Ef,zJ=VJ,KJ=Bc.CONSTRUCTOR,b5=KJ||!zJ(function(t){$J.all(t).then(void 0,function(){})}),GJ=qn,jJ=_n,WJ=ei,XJ=Ps,qJ=V1,YJ=y5,JJ=b5;GJ({target:"Promise",stat:!0,forced:JJ},{all:function(e){var r=this,n=XJ.f(r),a=n.resolve,A=n.reject,o=qJ(function(){var s=WJ(r.resolve),l=[],c=0,u=1;YJ(e,function(p){var h=c++,d=!1;u++,jJ(s,r,p).then(function(w){d||(d=!0,l[h]=w,--u||a(l))},A)}),--u||a(l)});return o.error&&A(o.value),n.promise}});var ZJ=qn,eZ=Bc.CONSTRUCTOR,Z1=Ef,tZ=No,rZ=Lr,nZ=Lo,C5=Z1&&Z1.prototype;if(ZJ({target:"Promise",proto:!0,forced:eZ,real:!0},{catch:function(t){return this.then(void 0,t)}}),rZ(Z1)){var E5=tZ("Promise").prototype.catch;C5.catch!==E5&&nZ(C5,"catch",E5,{unsafe:!0})}var aZ=qn,AZ=_n,iZ=ei,oZ=Ps,sZ=V1,lZ=y5,cZ=b5;aZ({target:"Promise",stat:!0,forced:cZ},{race:function(e){var r=this,n=oZ.f(r),a=n.reject,A=sZ(function(){var o=iZ(r.resolve);lZ(e,function(s){AZ(o,r,s).then(n.resolve,a)})});return A.error&&a(A.value),n.promise}});var uZ=qn,hZ=_n,fZ=Ps,dZ=Bc.CONSTRUCTOR;uZ({target:"Promise",stat:!0,forced:dZ},{reject:function(e){var r=fZ.f(this);return hZ(r.reject,void 0,e),r.promise}});var gZ=On,pZ=ZA,mZ=Ps,vZ=function(t,e){if(gZ(t),pZ(e)&&e.constructor===t)return e;var r=mZ.f(t),n=r.resolve;return n(e),r.promise},yZ=qn,wZ=No,BZ=Bc.CONSTRUCTOR,xZ=vZ;wZ("Promise"),yZ({target:"Promise",stat:!0,forced:BZ},{resolve:function(e){return xZ(this,e)}});function _5(t,e,r,n,a,A,o){try{var s=t[A](o),l=s.value}catch(c){r(c);return}s.done?e(l):Promise.resolve(l).then(n,a)}function ti(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var A=t.apply(e,r);function o(l){_5(A,n,a,o,s,"next",l)}function s(l){_5(A,n,a,o,s,"throw",l)}o(void 0)})}}var bZ=E1,CZ=String,LA=function(t){if(bZ(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return CZ(t)},EZ=On,F5=function(){var t=EZ(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ep=Vr,_Z=an,tp=_Z.RegExp,rp=ep(function(){var t=tp("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),FZ=rp||ep(function(){return!tp("a","y").sticky}),SZ=rp||ep(function(){var t=tp("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),S5={BROKEN_CARET:SZ,MISSED_STICKY:FZ,UNSUPPORTED_Y:rp},k5={},kZ=sb,TZ=x1,NZ=Object.keys||function(e){return kZ(e,TZ)},LZ=SA,UZ=Gx,IZ=TA,DZ=On,QZ=uc,OZ=NZ;k5.f=LZ&&!UZ?Object.defineProperties:function(e,r){DZ(e);for(var n=QZ(r),a=OZ(r),A=a.length,o=0,s;A>o;)IZ.f(e,s=a[o++],n[s]);return e};var PZ=On,MZ=k5,T5=x1,RZ=g1,HZ=Fb,VZ=cf,$Z=d1,N5=">",L5="<",np="prototype",ap="script",U5=$Z("IE_PROTO"),Ap=function(){},I5=function(t){return L5+ap+N5+t+L5+"/"+ap+N5},D5=function(t){t.write(I5("")),t.close();var e=t.parentWindow.Object;return t=null,e},zZ=function(){var t=VZ("iframe"),e="java"+ap+":",r;return t.style.display="none",HZ.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(I5("document.F=Object")),r.close(),r.F},Uf,If=function(){try{Uf=new ActiveXObject("htmlfile")}catch{}If=typeof document<"u"?document.domain&&Uf?D5(Uf):zZ():D5(Uf);for(var t=T5.length;t--;)delete If[np][T5[t]];return If()};RZ[U5]=!0;var ip=Object.create||function(e,r){var n;return e!==null?(Ap[np]=PZ(e),n=new Ap,Ap[np]=null,n[U5]=e):n=If(),r===void 0?n:MZ.f(n,r)},KZ=Vr,GZ=an,jZ=GZ.RegExp,WZ=KZ(function(){var t=jZ(".","s");return!(t.dotAll&&t.exec(`
391
391
  `)&&t.flags==="s")}),XZ=Vr,qZ=an,YZ=qZ.RegExp,JZ=XZ(function(){var t=YZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),$s=_n,Df=$r,ZZ=LA,eee=F5,tee=S5,ree=r1,nee=ip,aee=gf.get,Aee=WZ,iee=JZ,oee=ree("native-string-replace",String.prototype.replace),Qf=RegExp.prototype.exec,op=Qf,see=Df("".charAt),lee=Df("".indexOf),cee=Df("".replace),sp=Df("".slice),lp=function(){var t=/a/,e=/b*/g;return $s(Qf,t,"a"),$s(Qf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),Q5=tee.BROKEN_CARET,cp=/()??/.exec("")[1]!==void 0,uee=lp||cp||Q5||Aee||iee;uee&&(op=function(e){var r=this,n=aee(r),a=ZZ(e),A=n.raw,o,s,l,c,u,p,h;if(A)return A.lastIndex=r.lastIndex,o=$s(op,A,a),r.lastIndex=A.lastIndex,o;var d=n.groups,w=Q5&&r.sticky,g=$s(eee,r),v=r.source,m=0,F=a;if(w&&(g=cee(g,"y",""),lee(g,"g")===-1&&(g+="g"),F=sp(a,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&see(a,r.lastIndex-1)!==`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "0.4.4",
4
+ "version": "0.4.5",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue components library",
7
7
  "keywords": [