vue-data-ui 0.4.5 → 0.4.6
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-
|
|
12823
|
+
return (Ft.canvg ? Promise.resolve(Ft.canvg) : import("./index.es-fca13fe3.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;
|
|
@@ -38426,9 +38426,9 @@ const TO = ["id"], QO = { class: "vue-ui-vertical-bar-user-option-item" }, IO =
|
|
|
38426
38426
|
}
|
|
38427
38427
|
function Y(se) {
|
|
38428
38428
|
const de = document.createElement("DIV");
|
|
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 =
|
|
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 = i.value.style.info.boxShadow, de.style.fontFamily = i.value.style.info.fontFamily, de.style.fontSize = `${i.value.style.info.fontSize}px`, de.style.border = i.value.style.info.border, de.style.userSelect = "none";
|
|
38430
38430
|
const we = document.createElement("BUTTON");
|
|
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
|
+
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.borderRadius = `${i.value.style.cancelButton.borderRadius}px`, 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);
|
|
38432
38432
|
}
|
|
38433
38433
|
function P(se) {
|
|
38434
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));
|
|
@@ -38535,7 +38535,7 @@ const TO = ["id"], QO = { class: "vue-ui-vertical-bar-user-option-item" }, IO =
|
|
|
38535
38535
|
const F = document.createElement("DIV");
|
|
38536
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");
|
|
38537
38537
|
const B = document.createElement("BUTTON");
|
|
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
|
+
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.fontSize = `${i.value.style.captureButton.fontSize}px`, 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", () => {
|
|
38539
38539
|
B.style.opacity = "1";
|
|
38540
38540
|
}), B.addEventListener("mouseleave", () => {
|
|
38541
38541
|
B.style.opacity = "0.95";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Ha } from "./index-
|
|
1
|
+
import { _ as Ha } from "./index-0516bc3f.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) {
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -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-
|
|
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-0516bc3f.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
u as VueUiChestnut,
|
package/dist/vue-data-ui.umd.cjs
CHANGED
|
@@ -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.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">
|
|
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=o.value.style.info.boxShadow,le.style.fontFamily=o.value.style.info.fontFamily,le.style.fontSize=`${o.value.style.info.fontSize}px`,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.borderRadius=`${o.value.style.cancelButton.borderRadius}px`,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=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.
|
|
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.fontSize=`${o.value.style.captureButton.fontSize}px`,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)!==`
|