x-print-designer 0.3.0 → 0.3.2
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.
- package/README.md +683 -507
- package/dist/Axis-NtNlSRsM.js +18246 -0
- package/dist/JsBarcode-CjIGssVQ.js +3866 -0
- package/dist/browser-C6dIfuJY.js +2153 -0
- package/dist/charts-CJaPVvDI.js +18428 -0
- package/dist/components-Dye0evtC.js +16442 -0
- package/dist/core-BbvNjmfU.js +233 -0
- package/dist/createSeriesData-DGiG-J3b.js +434 -0
- package/dist/customGraphicKeyframeAnimation-BY-XZFeb.js +9429 -0
- package/dist/dom-to-image-more.min-D3v39OhI.js +540 -0
- package/dist/graphic-BEFAeatd.js +11299 -0
- package/dist/html2canvas.esm-DWZSdXKi.js +7795 -0
- package/dist/index-DP3SRWJa.js +336 -0
- package/dist/index.es-CruLo21o.js +10445 -0
- package/dist/jspdf.es.min-tuXNPC83.js +11560 -0
- package/dist/jszip.min-BA8HtUau.js +2354 -0
- package/dist/print-designer.css +1 -0
- package/dist/print-designer.es.js +4 -0
- package/dist/print-designer.umd.js +394 -0
- package/dist/purify.es-DadB-l2n.js +1029 -0
- package/dist/renderers-Dm0Mcw0c.js +2387 -0
- package/dist/typeof-DxTVrAEz.js +11 -0
- package/dist/web-component-Bb1zyh8n.js +51520 -0
- package/dist/web-component.d.ts +102 -0
- package/package.json +1 -1
- package/dist/assets/Axis-hDyHms34.js +0 -21
- package/dist/assets/JsBarcode-BOwNyIpk.js +0 -1
- package/dist/assets/barcode-BoWGE6Vo.js +0 -8
- package/dist/assets/browser-CR_q2Gy7.js +0 -1
- package/dist/assets/canvg-ChoTXRpY.js +0 -18
- package/dist/assets/charts-oAXpTr-7.js +0 -1
- package/dist/assets/components-scMrpbvF.js +0 -22
- package/dist/assets/core-DLbFUvXo.js +0 -1
- package/dist/assets/createSeriesData-DY7MF9QR.js +0 -1
- package/dist/assets/customGraphicKeyframeAnimation-g4tvH6et.js +0 -3
- package/dist/assets/dom-to-image-more.min-Bzng6PqA.js +0 -1
- package/dist/assets/favicon-o5K9zUr2.ico +0 -0
- package/dist/assets/graphic-Cay9kDL2.js +0 -29
- package/dist/assets/html2canvas.esm-QH1iLAAe.js +0 -22
- package/dist/assets/index-BSfajosV.js +0 -154
- package/dist/assets/index-DNdDSD-C.css +0 -1
- package/dist/assets/jszip.min-DLPWIKb1.js +0 -12
- package/dist/assets/logo-DXm7qK2I.png +0 -0
- package/dist/assets/monaco-CyPiZSXM.js +0 -11
- package/dist/assets/pdf-Cjgn4CZy.js +0 -170
- package/dist/assets/purify.es-B5CD4DQe.js +0 -2
- package/dist/assets/renderers-CHDIdITR.js +0 -3
- package/dist/assets/utils-C6aID195.js +0 -1
- package/dist/assets/vendor-BlGuBhzR.js +0 -39
- package/dist/index.html +0 -19
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs } from "./web-component-Bb1zyh8n.js";
|
|
2
|
+
function _mergeNamespaces(n, m) {
|
|
3
|
+
for (var i = 0; i < m.length; i++) {
|
|
4
|
+
const e = m[i];
|
|
5
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const k in e) {
|
|
7
|
+
if (k !== "default" && !(k in n)) {
|
|
8
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
+
if (d) {
|
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: () => e[k]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
}
|
|
21
|
+
var domToImageMore_min$3 = { exports: {} };
|
|
22
|
+
/*! dom-to-image-more 23-10-2025 */
|
|
23
|
+
var domToImageMore_min$2 = domToImageMore_min$3.exports;
|
|
24
|
+
var hasRequiredDomToImageMore_min;
|
|
25
|
+
function requireDomToImageMore_min() {
|
|
26
|
+
if (hasRequiredDomToImageMore_min) return domToImageMore_min$3.exports;
|
|
27
|
+
hasRequiredDomToImageMore_min = 1;
|
|
28
|
+
(function(module, exports$1) {
|
|
29
|
+
((l) => {
|
|
30
|
+
let m = /* @__PURE__ */ (() => {
|
|
31
|
+
let e2 = 0;
|
|
32
|
+
return { escape: function(e3) {
|
|
33
|
+
return e3.replace(/([.*+?^${}()|[\]/\\])/g, "\\$1");
|
|
34
|
+
}, isDataUrl: function(e3) {
|
|
35
|
+
return -1 !== e3.search(/^(data:)/);
|
|
36
|
+
}, canvasToBlob: function(t3) {
|
|
37
|
+
if (t3.toBlob) return new Promise(function(e3) {
|
|
38
|
+
t3.toBlob(e3);
|
|
39
|
+
});
|
|
40
|
+
return ((r3) => new Promise(function(e3) {
|
|
41
|
+
var t4 = s(r3.toDataURL().split(",")[1]), n3 = t4.length, o3 = new Uint8Array(n3);
|
|
42
|
+
for (let e4 = 0; e4 < n3; e4++) o3[e4] = t4.charCodeAt(e4);
|
|
43
|
+
e3(new Blob([o3], { type: "image/png" }));
|
|
44
|
+
}))(t3);
|
|
45
|
+
}, resolveUrl: function(e3, t3) {
|
|
46
|
+
var n3 = document.implementation.createHTMLDocument(), o3 = n3.createElement("base"), r3 = (n3.head.appendChild(o3), n3.createElement("a"));
|
|
47
|
+
return n3.body.appendChild(r3), o3.href = t3, r3.href = e3, r3.href;
|
|
48
|
+
}, getAndEncode: function(l2) {
|
|
49
|
+
let e3 = d.impl.urlCache.find(function(e4) {
|
|
50
|
+
return e4.url === l2;
|
|
51
|
+
});
|
|
52
|
+
e3 || (e3 = { url: l2, promise: null }, d.impl.urlCache.push(e3));
|
|
53
|
+
null === e3.promise && (d.impl.options.cacheBust && (l2 += (/\?/.test(l2) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()), e3.promise = new Promise(function(n3) {
|
|
54
|
+
let r3 = new XMLHttpRequest();
|
|
55
|
+
function i3(e5) {
|
|
56
|
+
console.error(e5), n3("");
|
|
57
|
+
}
|
|
58
|
+
function t3() {
|
|
59
|
+
var e5 = d.impl.options.imagePlaceholder;
|
|
60
|
+
e5 ? n3(e5) : i3("Status:" + r3.status + " while fetching resource: " + l2);
|
|
61
|
+
}
|
|
62
|
+
if (r3.timeout = d.impl.options.httpTimeout, r3.onerror = t3, r3.ontimeout = t3, r3.onloadend = function() {
|
|
63
|
+
if (r3.readyState === XMLHttpRequest.DONE) {
|
|
64
|
+
var e5 = r3.status;
|
|
65
|
+
if (0 === e5 && l2.toLowerCase().startsWith("file://") || 200 <= e5 && e5 <= 300 && null !== r3.response) {
|
|
66
|
+
e5 = r3.response;
|
|
67
|
+
e5 instanceof Blob || i3("Expected response to be a Blob, but got: " + typeof e5);
|
|
68
|
+
let t4 = new FileReader();
|
|
69
|
+
t4.onloadend = function() {
|
|
70
|
+
var e6 = t4.result;
|
|
71
|
+
n3(e6);
|
|
72
|
+
};
|
|
73
|
+
try {
|
|
74
|
+
t4.readAsDataURL(e5);
|
|
75
|
+
} catch (e6) {
|
|
76
|
+
i3("Failed to read the response as Data URL: " + e6.toString());
|
|
77
|
+
}
|
|
78
|
+
} else t3();
|
|
79
|
+
}
|
|
80
|
+
}, 0 < d.impl.options.useCredentialsFilters.length && (d.impl.options.useCredentials = 0 < d.impl.options.useCredentialsFilters.filter((e5) => 0 <= l2.search(e5)).length), d.impl.options.useCredentials && (r3.withCredentials = true), d.impl.options.corsImg && 0 === l2.indexOf("http") && -1 === l2.indexOf(window.location.origin)) {
|
|
81
|
+
var e4 = "POST" === (d.impl.options.corsImg.method || "GET").toUpperCase() ? "POST" : "GET";
|
|
82
|
+
r3.open(e4, (d.impl.options.corsImg.url || "").replace("#{cors}", l2), true);
|
|
83
|
+
let t4 = false, n4 = d.impl.options.corsImg.headers || {}, o3 = (Object.keys(n4).forEach(function(e5) {
|
|
84
|
+
-1 !== n4[e5].indexOf("application/json") && (t4 = true), r3.setRequestHeader(e5, n4[e5]);
|
|
85
|
+
}), ((e5) => {
|
|
86
|
+
try {
|
|
87
|
+
return JSON.parse(JSON.stringify(e5));
|
|
88
|
+
} catch (e6) {
|
|
89
|
+
i3("corsImg.data is missing or invalid:" + e6.toString());
|
|
90
|
+
}
|
|
91
|
+
})(d.impl.options.corsImg.data || ""));
|
|
92
|
+
Object.keys(o3).forEach(function(e5) {
|
|
93
|
+
"string" == typeof o3[e5] && (o3[e5] = o3[e5].replace("#{cors}", l2));
|
|
94
|
+
}), r3.responseType = "blob", r3.send(t4 ? JSON.stringify(o3) : o3);
|
|
95
|
+
} else r3.open("GET", l2, true), r3.responseType = "blob", r3.send();
|
|
96
|
+
}));
|
|
97
|
+
return e3.promise;
|
|
98
|
+
}, uid: function() {
|
|
99
|
+
return "u" + ("0000" + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4) + e2++;
|
|
100
|
+
}, asArray: function(t3) {
|
|
101
|
+
var n3 = [], o3 = t3.length;
|
|
102
|
+
for (let e3 = 0; e3 < o3; e3++) n3.push(t3[e3]);
|
|
103
|
+
return n3;
|
|
104
|
+
}, escapeXhtml: function(e3) {
|
|
105
|
+
return e3.replace(/%/g, "%25").replace(/#/g, "%23").replace(/\n/g, "%0A");
|
|
106
|
+
}, makeImage: function(r3) {
|
|
107
|
+
return "data:," !== r3 ? new Promise(function(e3, t3) {
|
|
108
|
+
let n3 = document.createElementNS("http://www.w3.org/2000/svg", "svg"), o3 = new Image();
|
|
109
|
+
d.impl.options.useCredentials && (o3.crossOrigin = "use-credentials"), o3.onload = function() {
|
|
110
|
+
document.body.removeChild(n3), window && window.requestAnimationFrame ? window.requestAnimationFrame(function() {
|
|
111
|
+
e3(o3);
|
|
112
|
+
}) : e3(o3);
|
|
113
|
+
}, o3.onerror = (e4) => {
|
|
114
|
+
document.body.removeChild(n3), t3(e4);
|
|
115
|
+
}, n3.appendChild(o3), o3.src = r3, document.body.appendChild(n3);
|
|
116
|
+
}) : Promise.resolve();
|
|
117
|
+
}, width: function(e3) {
|
|
118
|
+
var t3 = i2(e3, "width");
|
|
119
|
+
if (!isNaN(t3)) return t3;
|
|
120
|
+
var t3 = i2(e3, "border-left-width"), n3 = i2(e3, "border-right-width");
|
|
121
|
+
return e3.scrollWidth + t3 + n3;
|
|
122
|
+
}, height: function(e3) {
|
|
123
|
+
var t3 = i2(e3, "height");
|
|
124
|
+
if (!isNaN(t3)) return t3;
|
|
125
|
+
var t3 = i2(e3, "border-top-width"), n3 = i2(e3, "border-bottom-width");
|
|
126
|
+
return e3.scrollHeight + t3 + n3;
|
|
127
|
+
}, getWindow: t2, isElement: r2, isElementHostForOpenShadowRoot: function(e3) {
|
|
128
|
+
return r2(e3) && null !== e3.shadowRoot;
|
|
129
|
+
}, isShadowRoot: n2, isInShadowRoot: o2, isHTMLElement: function(e3) {
|
|
130
|
+
return e3 instanceof t2(e3).HTMLElement;
|
|
131
|
+
}, isHTMLCanvasElement: function(e3) {
|
|
132
|
+
return e3 instanceof t2(e3).HTMLCanvasElement;
|
|
133
|
+
}, isHTMLInputElement: function(e3) {
|
|
134
|
+
return e3 instanceof t2(e3).HTMLInputElement;
|
|
135
|
+
}, isHTMLImageElement: function(e3) {
|
|
136
|
+
return e3 instanceof t2(e3).HTMLImageElement;
|
|
137
|
+
}, isHTMLLinkElement: function(e3) {
|
|
138
|
+
return e3 instanceof t2(e3).HTMLLinkElement;
|
|
139
|
+
}, isHTMLScriptElement: function(e3) {
|
|
140
|
+
return e3 instanceof t2(e3).HTMLScriptElement;
|
|
141
|
+
}, isHTMLStyleElement: function(e3) {
|
|
142
|
+
return e3 instanceof t2(e3).HTMLStyleElement;
|
|
143
|
+
}, isHTMLTextAreaElement: function(e3) {
|
|
144
|
+
return e3 instanceof t2(e3).HTMLTextAreaElement;
|
|
145
|
+
}, isShadowSlotElement: function(e3) {
|
|
146
|
+
return o2(e3) && e3 instanceof t2(e3).HTMLSlotElement;
|
|
147
|
+
}, isSVGElement: function(e3) {
|
|
148
|
+
return e3 instanceof t2(e3).SVGElement;
|
|
149
|
+
}, isSVGRectElement: function(e3) {
|
|
150
|
+
return e3 instanceof t2(e3).SVGRectElement;
|
|
151
|
+
}, isDimensionMissing: function(e3) {
|
|
152
|
+
return isNaN(e3) || e3 <= 0;
|
|
153
|
+
} };
|
|
154
|
+
function t2(e3) {
|
|
155
|
+
e3 = e3 ? e3.ownerDocument : void 0;
|
|
156
|
+
return (e3 ? e3.defaultView : void 0) || window || l;
|
|
157
|
+
}
|
|
158
|
+
function n2(e3) {
|
|
159
|
+
return e3 instanceof t2(e3).ShadowRoot;
|
|
160
|
+
}
|
|
161
|
+
function o2(e3) {
|
|
162
|
+
return null != e3 && void 0 !== e3.getRootNode && n2(e3.getRootNode());
|
|
163
|
+
}
|
|
164
|
+
function r2(e3) {
|
|
165
|
+
return e3 instanceof t2(e3).Element;
|
|
166
|
+
}
|
|
167
|
+
function i2(t3, n3) {
|
|
168
|
+
if (t3.nodeType === f) {
|
|
169
|
+
let e3 = h(t3).getPropertyValue(n3);
|
|
170
|
+
if ("px" === e3.slice(-2)) return e3 = e3.slice(0, -2), parseFloat(e3);
|
|
171
|
+
}
|
|
172
|
+
return NaN;
|
|
173
|
+
}
|
|
174
|
+
})(), r = /* @__PURE__ */ (() => {
|
|
175
|
+
let o2 = /url\(\s*(["']?)((?:\\.|[^\\)])+)\1\s*\)/gm;
|
|
176
|
+
return { inlineAll: function(t2, o3, r3) {
|
|
177
|
+
if (!e2(t2)) return Promise.resolve(t2);
|
|
178
|
+
return Promise.resolve(t2).then(n2).then(function(e3) {
|
|
179
|
+
let n3 = Promise.resolve(t2);
|
|
180
|
+
return e3.forEach(function(t3) {
|
|
181
|
+
n3 = n3.then(function(e4) {
|
|
182
|
+
return i2(e4, t3, o3, r3);
|
|
183
|
+
});
|
|
184
|
+
}), n3;
|
|
185
|
+
});
|
|
186
|
+
}, shouldProcess: e2, impl: { readUrls: n2, inline: i2, urlAsRegex: r2 } };
|
|
187
|
+
function e2(e3) {
|
|
188
|
+
return -1 !== e3.search(o2);
|
|
189
|
+
}
|
|
190
|
+
function n2(e3) {
|
|
191
|
+
for (var t2, n3 = []; null !== (t2 = o2.exec(e3)); ) n3.push(t2[2]);
|
|
192
|
+
return n3.filter(function(e4) {
|
|
193
|
+
return !m.isDataUrl(e4);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function r2(e3) {
|
|
197
|
+
return new RegExp(`url\\((["']?)(${m.escape(e3)})\\1\\)`, "gm");
|
|
198
|
+
}
|
|
199
|
+
function i2(n3, o3, t2, e3) {
|
|
200
|
+
return Promise.resolve(o3).then(function(e4) {
|
|
201
|
+
return t2 ? m.resolveUrl(e4, t2) : e4;
|
|
202
|
+
}).then(e3 || m.getAndEncode).then(function(e4) {
|
|
203
|
+
var t3 = r2(o3);
|
|
204
|
+
return n3.replace(t3, `url($1${e4}$1)`);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
})(), e = { resolveAll: function() {
|
|
208
|
+
return t().then(function(e2) {
|
|
209
|
+
return Promise.all(e2.map(function(e3) {
|
|
210
|
+
return e3.resolve();
|
|
211
|
+
}));
|
|
212
|
+
}).then(function(e2) {
|
|
213
|
+
return e2.join("\n");
|
|
214
|
+
});
|
|
215
|
+
}, impl: { readAll: t } };
|
|
216
|
+
function t() {
|
|
217
|
+
return Promise.resolve(m.asArray(document.styleSheets)).then(function(e2) {
|
|
218
|
+
let n2 = [];
|
|
219
|
+
return e2.forEach(function(t3) {
|
|
220
|
+
var e3 = Object.getPrototypeOf(t3);
|
|
221
|
+
if (Object.prototype.hasOwnProperty.call(e3, "cssRules")) try {
|
|
222
|
+
m.asArray(t3.cssRules || []).forEach(n2.push.bind(n2));
|
|
223
|
+
} catch (e4) {
|
|
224
|
+
console.error("domtoimage: Error while reading CSS rules from: " + t3.href, e4.toString());
|
|
225
|
+
}
|
|
226
|
+
}), n2;
|
|
227
|
+
}).then(function(e2) {
|
|
228
|
+
return e2.filter(function(e3) {
|
|
229
|
+
return e3.type === CSSRule.FONT_FACE_RULE;
|
|
230
|
+
}).filter(function(e3) {
|
|
231
|
+
return r.shouldProcess(e3.style.getPropertyValue("src"));
|
|
232
|
+
});
|
|
233
|
+
}).then(function(e2) {
|
|
234
|
+
return e2.map(t2);
|
|
235
|
+
});
|
|
236
|
+
function t2(t3) {
|
|
237
|
+
return { resolve: function() {
|
|
238
|
+
var e2 = (t3.parentStyleSheet || {}).href;
|
|
239
|
+
return r.inlineAll(t3.cssText, e2);
|
|
240
|
+
}, src: function() {
|
|
241
|
+
return t3.style.getPropertyValue("src");
|
|
242
|
+
} };
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
let n = { inlineAll: function t2(e2) {
|
|
246
|
+
if (!m.isElement(e2)) return Promise.resolve(e2);
|
|
247
|
+
return n2(e2).then(function() {
|
|
248
|
+
return m.isHTMLImageElement(e2) ? o(e2).inline() : Promise.all(m.asArray(e2.childNodes).map(function(e3) {
|
|
249
|
+
return t2(e3);
|
|
250
|
+
}));
|
|
251
|
+
});
|
|
252
|
+
function n2(o2) {
|
|
253
|
+
let e3 = ["background", "background-image"], t3 = e3.map(function(t4) {
|
|
254
|
+
let e4 = o2.style.getPropertyValue(t4), n3 = o2.style.getPropertyPriority(t4);
|
|
255
|
+
return e4 ? r.inlineAll(e4).then(function(e5) {
|
|
256
|
+
o2.style.setProperty(t4, e5, n3);
|
|
257
|
+
}) : Promise.resolve();
|
|
258
|
+
});
|
|
259
|
+
return Promise.all(t3).then(function() {
|
|
260
|
+
return o2;
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}, impl: { newImage: o } };
|
|
264
|
+
function o(n2) {
|
|
265
|
+
return { inline: function(e2) {
|
|
266
|
+
if (m.isDataUrl(n2.src)) return Promise.resolve();
|
|
267
|
+
return Promise.resolve(n2.src).then(e2 || m.getAndEncode).then(function(t2) {
|
|
268
|
+
return new Promise(function(e3) {
|
|
269
|
+
n2.onload = e3, n2.onerror = e3, n2.src = t2;
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
} };
|
|
273
|
+
}
|
|
274
|
+
let i = { copyDefaultStyles: true, imagePlaceholder: void 0, cacheBust: false, useCredentials: false, useCredentialsFilters: [], httpTimeout: 3e4, styleCaching: "strict", corsImg: void 0 }, d = { toSvg: u, toPng: function(e2, t2) {
|
|
275
|
+
return a(e2, t2).then(function(e3) {
|
|
276
|
+
return e3.toDataURL();
|
|
277
|
+
});
|
|
278
|
+
}, toJpeg: function(e2, t2) {
|
|
279
|
+
return a(e2, t2).then(function(e3) {
|
|
280
|
+
return e3.toDataURL("image/jpeg", (t2 ? t2.quality : void 0) || 1);
|
|
281
|
+
});
|
|
282
|
+
}, toBlob: function(e2, t2) {
|
|
283
|
+
return a(e2, t2).then(m.canvasToBlob);
|
|
284
|
+
}, toPixelData: function(t2, e2) {
|
|
285
|
+
return a(t2, e2).then(function(e3) {
|
|
286
|
+
return e3.getContext("2d").getImageData(0, 0, m.width(t2), m.height(t2)).data;
|
|
287
|
+
});
|
|
288
|
+
}, toCanvas: a, impl: { fontFaces: e, images: n, util: m, inliner: r, urlCache: [], options: {}, copyOptions: function(e2) {
|
|
289
|
+
void 0 === e2.copyDefaultStyles ? d.impl.options.copyDefaultStyles = i.copyDefaultStyles : d.impl.options.copyDefaultStyles = e2.copyDefaultStyles;
|
|
290
|
+
d.impl.options.imagePlaceholder = (void 0 === e2.imagePlaceholder ? i : e2).imagePlaceholder;
|
|
291
|
+
d.impl.options.cacheBust = (void 0 === e2.cacheBust ? i : e2).cacheBust;
|
|
292
|
+
d.impl.options.corsImg = (void 0 === e2.corsImg ? i : e2).corsImg;
|
|
293
|
+
d.impl.options.useCredentials = (void 0 === e2.useCredentials ? i : e2).useCredentials;
|
|
294
|
+
d.impl.options.useCredentialsFilters = (void 0 === e2.useCredentialsFilters ? i : e2).useCredentialsFilters;
|
|
295
|
+
d.impl.options.httpTimeout = (void 0 === e2.httpTimeout ? i : e2).httpTimeout;
|
|
296
|
+
d.impl.options.styleCaching = (void 0 === e2.styleCaching ? i : e2).styleCaching;
|
|
297
|
+
} } }, f = (module.exports = d, (void 0 === Node ? void 0 : Node.ELEMENT_NODE) || 1), h = (void 0 === l ? void 0 : l.getComputedStyle) || (void 0 === window ? void 0 : window.getComputedStyle) || globalThis.getComputedStyle, s = (void 0 === l ? void 0 : l.atob) || (void 0 === window ? void 0 : window.atob) || globalThis.atob;
|
|
298
|
+
function u(t2, r2) {
|
|
299
|
+
d.impl.util.getWindow(t2);
|
|
300
|
+
let o2 = (r2 = r2 || {}, d.impl.copyOptions(r2), []);
|
|
301
|
+
return Promise.resolve(t2).then(function(e2) {
|
|
302
|
+
if (e2.nodeType === f) return e2;
|
|
303
|
+
var t3 = e2, n2 = document.createElement("span");
|
|
304
|
+
return t3.replaceWith(n2), n2.append(e2), o2.push({ child: t3, wrapper: n2 }), n2;
|
|
305
|
+
}).then(function(e2) {
|
|
306
|
+
return (function l2(t3, s2, i2, u2) {
|
|
307
|
+
let e3 = s2.filter;
|
|
308
|
+
if (t3 === p || m.isHTMLScriptElement(t3) || m.isHTMLStyleElement(t3) || m.isHTMLLinkElement(t3) || null !== i2 && e3 && !e3(t3)) return Promise.resolve();
|
|
309
|
+
return Promise.resolve(t3).then(n2).then(o3).then(function(e4) {
|
|
310
|
+
return c2(e4, a2(t3));
|
|
311
|
+
}).then(r3).then(function(e4) {
|
|
312
|
+
return d2(e4, t3);
|
|
313
|
+
});
|
|
314
|
+
function n2(e4) {
|
|
315
|
+
return m.isHTMLCanvasElement(e4) ? m.makeImage(e4.toDataURL()) : e4.cloneNode(false);
|
|
316
|
+
}
|
|
317
|
+
function o3(e4) {
|
|
318
|
+
return s2.adjustClonedNode && s2.adjustClonedNode(t3, e4, false), Promise.resolve(e4);
|
|
319
|
+
}
|
|
320
|
+
function r3(e4) {
|
|
321
|
+
return s2.adjustClonedNode && s2.adjustClonedNode(t3, e4, true), Promise.resolve(e4);
|
|
322
|
+
}
|
|
323
|
+
function a2(e4) {
|
|
324
|
+
return m.isElementHostForOpenShadowRoot(e4) ? e4.shadowRoot : e4;
|
|
325
|
+
}
|
|
326
|
+
function c2(n3, e4) {
|
|
327
|
+
let o4 = t4(e4), r4 = Promise.resolve();
|
|
328
|
+
if (0 !== o4.length) {
|
|
329
|
+
let t5 = h(i3(e4));
|
|
330
|
+
m.asArray(o4).forEach(function(e5) {
|
|
331
|
+
r4 = r4.then(function() {
|
|
332
|
+
return l2(e5, s2, t5).then(function(e6) {
|
|
333
|
+
e6 && n3.appendChild(e6);
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
return r4.then(function() {
|
|
339
|
+
return n3;
|
|
340
|
+
});
|
|
341
|
+
function i3(e5) {
|
|
342
|
+
return m.isShadowRoot(e5) ? e5.host : e5;
|
|
343
|
+
}
|
|
344
|
+
function t4(t5) {
|
|
345
|
+
if (m.isShadowSlotElement(t5)) {
|
|
346
|
+
let e5 = t5.assignedNodes();
|
|
347
|
+
if (e5 && 0 < e5.length) return e5;
|
|
348
|
+
}
|
|
349
|
+
return t5.childNodes;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function d2(u3, a3) {
|
|
353
|
+
return !m.isElement(u3) || m.isShadowSlotElement(a3) ? Promise.resolve(u3) : Promise.resolve().then(t4).then(n3).then(o4).then(r4).then(e4).then(function() {
|
|
354
|
+
return u3;
|
|
355
|
+
});
|
|
356
|
+
function e4() {
|
|
357
|
+
m.isHTMLImageElement(u3) && (u3.removeAttribute("loading"), a3.srcset || a3.sizes) && (u3.removeAttribute("srcset"), u3.removeAttribute("sizes"), u3.src = a3.currentSrc || a3.src);
|
|
358
|
+
}
|
|
359
|
+
function t4() {
|
|
360
|
+
function o5(e6, t5) {
|
|
361
|
+
t5.font = e6.font, t5.fontFamily = e6.fontFamily, t5.fontFeatureSettings = e6.fontFeatureSettings, t5.fontKerning = e6.fontKerning, t5.fontSize = e6.fontSize, t5.fontStretch = e6.fontStretch, t5.fontStyle = e6.fontStyle, t5.fontVariant = e6.fontVariant, t5.fontVariantCaps = e6.fontVariantCaps, t5.fontVariantEastAsian = e6.fontVariantEastAsian, t5.fontVariantLigatures = e6.fontVariantLigatures, t5.fontVariantNumeric = e6.fontVariantNumeric, t5.fontVariationSettings = e6.fontVariationSettings, t5.fontWeight = e6.fontWeight;
|
|
362
|
+
}
|
|
363
|
+
function e5(e6, t5) {
|
|
364
|
+
let n4 = h(e6);
|
|
365
|
+
n4.cssText ? (t5.style.cssText = n4.cssText, o5(n4, t5.style)) : (y(s2, e6, n4, i2, t5), null === i2 && (["inset-block", "inset-block-start", "inset-block-end"].forEach((e7) => t5.style.removeProperty(e7)), ["left", "right", "top", "bottom"].forEach((e7) => {
|
|
366
|
+
t5.style.getPropertyValue(e7) && t5.style.setProperty(e7, "0px");
|
|
367
|
+
})));
|
|
368
|
+
}
|
|
369
|
+
e5(a3, u3);
|
|
370
|
+
}
|
|
371
|
+
function n3() {
|
|
372
|
+
let s3 = m.uid();
|
|
373
|
+
function t5(r5) {
|
|
374
|
+
let i3 = h(a3, r5), l3 = i3.getPropertyValue("content");
|
|
375
|
+
if ("" !== l3 && "none" !== l3) {
|
|
376
|
+
let n4 = function() {
|
|
377
|
+
let e6 = `.${s3}:` + r5, t7 = (i3.cssText ? n5 : o5)();
|
|
378
|
+
return document.createTextNode(e6 + `{${t7}}`);
|
|
379
|
+
function n5() {
|
|
380
|
+
return `${i3.cssText} content: ${l3};`;
|
|
381
|
+
}
|
|
382
|
+
function o5() {
|
|
383
|
+
let e7 = m.asArray(i3).map(t8).join("; ");
|
|
384
|
+
return e7 + ";";
|
|
385
|
+
function t8(e8) {
|
|
386
|
+
let t9 = i3.getPropertyValue(e8), n6 = i3.getPropertyPriority(e8) ? " !important" : "";
|
|
387
|
+
return e8 + ": " + t9 + n6;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
let e5 = u3.getAttribute("class") || "", t6 = (u3.setAttribute("class", e5 + " " + s3), document.createElement("style"));
|
|
392
|
+
t6.appendChild(n4()), u3.appendChild(t6);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
[":before", ":after"].forEach(function(e5) {
|
|
396
|
+
t5(e5);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
function o4() {
|
|
400
|
+
m.isHTMLTextAreaElement(a3) && (u3.innerHTML = a3.value), m.isHTMLInputElement(a3) && u3.setAttribute("value", a3.value);
|
|
401
|
+
}
|
|
402
|
+
function r4() {
|
|
403
|
+
m.isSVGElement(u3) && (u3.setAttribute("xmlns", "http://www.w3.org/2000/svg"), m.isSVGRectElement(u3)) && ["width", "height"].forEach(function(e5) {
|
|
404
|
+
let t5 = u3.getAttribute(e5);
|
|
405
|
+
t5 && u3.style.setProperty(e5, t5);
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
})(e2, r2, null);
|
|
410
|
+
}).then(r2.disableEmbedFonts ? Promise.resolve(t2) : c).then(r2.disableInlineImages ? Promise.resolve(t2) : g).then(function(t3) {
|
|
411
|
+
r2.bgcolor && (t3.style.backgroundColor = r2.bgcolor);
|
|
412
|
+
r2.width && (t3.style.width = r2.width + "px");
|
|
413
|
+
r2.height && (t3.style.height = r2.height + "px");
|
|
414
|
+
r2.style && Object.keys(r2.style).forEach(function(e3) {
|
|
415
|
+
t3.style[e3] = r2.style[e3];
|
|
416
|
+
});
|
|
417
|
+
let e2 = null;
|
|
418
|
+
"function" == typeof r2.onclone && (e2 = r2.onclone(t3));
|
|
419
|
+
return Promise.resolve(e2).then(function() {
|
|
420
|
+
return t3;
|
|
421
|
+
});
|
|
422
|
+
}).then(function(e2) {
|
|
423
|
+
let n2 = r2.width || m.width(t2), o3 = r2.height || m.height(t2);
|
|
424
|
+
return Promise.resolve(e2).then(function(e3) {
|
|
425
|
+
return e3.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), new XMLSerializer().serializeToString(e3);
|
|
426
|
+
}).then(m.escapeXhtml).then(function(e3) {
|
|
427
|
+
var t3 = (m.isDimensionMissing(n2) ? ' width="100%"' : ` width="${n2}"`) + (m.isDimensionMissing(o3) ? ' height="100%"' : ` height="${o3}"`);
|
|
428
|
+
return `<svg xmlns="http://www.w3.org/2000/svg"${(m.isDimensionMissing(n2) ? "" : ` width="${n2}"`) + (m.isDimensionMissing(o3) ? "" : ` height="${o3}"`)}><foreignObject${t3}>${e3}</foreignObject></svg>`;
|
|
429
|
+
}).then(function(e3) {
|
|
430
|
+
return "data:image/svg+xml;charset=utf-8," + e3;
|
|
431
|
+
});
|
|
432
|
+
}).then(function(e2) {
|
|
433
|
+
for (; 0 < o2.length; ) {
|
|
434
|
+
var t3 = o2.pop();
|
|
435
|
+
t3.wrapper.replaceWith(t3.child);
|
|
436
|
+
}
|
|
437
|
+
return e2;
|
|
438
|
+
}).then(function(e2) {
|
|
439
|
+
return d.impl.urlCache = [], (() => {
|
|
440
|
+
p && (document.body.removeChild(p), p = null), v && clearTimeout(v), v = setTimeout(() => {
|
|
441
|
+
v = null, w = {};
|
|
442
|
+
}, 2e4);
|
|
443
|
+
})(), e2;
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function a(r2, i2) {
|
|
447
|
+
return u(r2, i2 = i2 || {}).then(m.makeImage).then(function(e2) {
|
|
448
|
+
var t2 = "number" != typeof i2.scale ? 1 : i2.scale, n2 = ((e3, t3) => {
|
|
449
|
+
let n3 = i2.width || m.width(e3), o3 = i2.height || m.height(e3);
|
|
450
|
+
return m.isDimensionMissing(n3) && (n3 = m.isDimensionMissing(o3) ? 300 : 2 * o3), m.isDimensionMissing(o3) && (o3 = n3 / 2), (e3 = document.createElement("canvas")).width = n3 * t3, e3.height = o3 * t3, i2.bgcolor && ((t3 = e3.getContext("2d")).fillStyle = i2.bgcolor, t3.fillRect(0, 0, e3.width, e3.height)), e3;
|
|
451
|
+
})(r2, t2), o2 = n2.getContext("2d");
|
|
452
|
+
return o2.msImageSmoothingEnabled = false, o2.imageSmoothingEnabled = false, e2 && (o2.scale(t2, t2), o2.drawImage(e2, 0, 0)), n2;
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
let p = null;
|
|
456
|
+
function c(n2) {
|
|
457
|
+
return e.resolveAll().then(function(e2) {
|
|
458
|
+
var t2;
|
|
459
|
+
return "" !== e2 && (t2 = document.createElement("style"), n2.appendChild(t2), t2.appendChild(document.createTextNode(e2))), n2;
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
function g(e2) {
|
|
463
|
+
return n.inlineAll(e2).then(function() {
|
|
464
|
+
return e2;
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
function y(i2, l2, s2, u2, e2) {
|
|
468
|
+
let a2 = d.impl.options.copyDefaultStyles ? ((t2, e3) => {
|
|
469
|
+
var n2, o2 = ((e4) => ("relaxed" !== t2.styleCaching ? e4 : e4.filter((e5, t3, n3) => 0 === t3 || t3 === n3.length - 1)).join(">"))(e3 = ((e4) => {
|
|
470
|
+
var t3 = [];
|
|
471
|
+
do {
|
|
472
|
+
if (e4.nodeType === f) {
|
|
473
|
+
var n3 = e4.tagName;
|
|
474
|
+
if (t3.push(n3), E.includes(n3)) break;
|
|
475
|
+
}
|
|
476
|
+
} while (e4 = e4.parentNode);
|
|
477
|
+
return t3;
|
|
478
|
+
})(e3));
|
|
479
|
+
{
|
|
480
|
+
if (w[o2]) return w[o2];
|
|
481
|
+
e3 = ((e4, t3) => {
|
|
482
|
+
let n3 = e4.body;
|
|
483
|
+
do {
|
|
484
|
+
var o3 = t3.pop(), o3 = e4.createElement(o3);
|
|
485
|
+
n3.appendChild(o3), n3 = o3;
|
|
486
|
+
} while (0 < t3.length);
|
|
487
|
+
return n3.textContent = "", n3;
|
|
488
|
+
})((n2 = (() => {
|
|
489
|
+
if (p) return p.contentWindow;
|
|
490
|
+
t3 = document.characterSet || "UTF-8", e4 = (e4 = document.doctype) ? (`<!DOCTYPE ${s3(e4.name)} ${s3(e4.publicId)} ` + s3(e4.systemId)).trim() + ">" : "", (p = document.createElement("iframe")).id = "domtoimage-sandbox-" + m.uid(), p.style.top = "-9999px", p.style.visibility = "hidden", p.style.position = "fixed", document.body.appendChild(p);
|
|
491
|
+
var e4, t3, n3 = p, o3 = "domtoimage-sandbox";
|
|
492
|
+
try {
|
|
493
|
+
return n3.contentWindow.document.write(e4 + `<html><head><meta charset='${t3}'><title>${o3}</title></head><body></body></html>`), n3.contentWindow;
|
|
494
|
+
} catch (e5) {
|
|
495
|
+
}
|
|
496
|
+
var r3 = document.createElement("meta");
|
|
497
|
+
r3.setAttribute("charset", t3);
|
|
498
|
+
try {
|
|
499
|
+
var i4 = document.implementation.createHTMLDocument(o3), l3 = (i4.head.appendChild(r3), e4 + i4.documentElement.outerHTML);
|
|
500
|
+
return n3.setAttribute("srcdoc", l3), n3.contentWindow;
|
|
501
|
+
} catch (e5) {
|
|
502
|
+
}
|
|
503
|
+
return n3.contentDocument.head.appendChild(r3), n3.contentDocument.title = o3, n3.contentWindow;
|
|
504
|
+
function s3(e5) {
|
|
505
|
+
var t4;
|
|
506
|
+
return e5 ? ((t4 = document.createElement("div")).innerText = e5, t4.innerHTML) : "";
|
|
507
|
+
}
|
|
508
|
+
})()).document, e3), n2 = ((e4, t3) => {
|
|
509
|
+
let n3 = {}, o3 = e4.getComputedStyle(t3);
|
|
510
|
+
return m.asArray(o3).forEach(function(e5) {
|
|
511
|
+
n3[e5] = "width" === e5 || "height" === e5 ? "auto" : o3.getPropertyValue(e5);
|
|
512
|
+
}), n3;
|
|
513
|
+
})(n2, e3);
|
|
514
|
+
var r2 = e3;
|
|
515
|
+
do {
|
|
516
|
+
var i3 = r2.parentElement;
|
|
517
|
+
null !== i3 && i3.removeChild(r2), r2 = i3;
|
|
518
|
+
} while (r2 && "BODY" !== r2.tagName);
|
|
519
|
+
return w[o2] = n2;
|
|
520
|
+
}
|
|
521
|
+
})(i2, l2) : {}, c2 = e2.style;
|
|
522
|
+
m.asArray(s2).forEach(function(e3) {
|
|
523
|
+
var t2, n2, o2, r2;
|
|
524
|
+
i2.filterStyles && !i2.filterStyles(l2, e3) || (n2 = s2.getPropertyValue(e3), o2 = a2[e3], t2 = u2 ? u2.getPropertyValue(e3) : void 0, c2.getPropertyValue(e3)) || (n2 !== o2 || u2 && n2 !== t2) && (o2 = s2.getPropertyPriority(e3), t2 = c2, n2 = n2, o2 = o2, r2 = 0 <= ["background-clip"].indexOf(e3 = e3), o2 ? (t2.setProperty(e3, n2, o2), r2 && t2.setProperty("-webkit-" + e3, n2, o2)) : (t2.setProperty(e3, n2), r2 && t2.setProperty("-webkit-" + e3, n2)));
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
let v = null, w = {}, E = ["ADDRESS", "ARTICLE", "ASIDE", "BLOCKQUOTE", "DETAILS", "DIALOG", "DD", "DIV", "DL", "DT", "FIELDSET", "FIGCAPTION", "FIGURE", "FOOTER", "FORM", "H1", "H2", "H3", "H4", "H5", "H6", "HEADER", "HGROUP", "HR", "LI", "MAIN", "NAV", "OL", "P", "PRE", "SECTION", "SVG", "TABLE", "UL", "math", "svg", "BODY", "HEAD", "HTML"];
|
|
528
|
+
})(domToImageMore_min$2);
|
|
529
|
+
})(domToImageMore_min$3);
|
|
530
|
+
return domToImageMore_min$3.exports;
|
|
531
|
+
}
|
|
532
|
+
var domToImageMore_minExports = requireDomToImageMore_min();
|
|
533
|
+
const domToImageMore_min = /* @__PURE__ */ getDefaultExportFromCjs(domToImageMore_minExports);
|
|
534
|
+
const domToImageMore_min$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
535
|
+
__proto__: null,
|
|
536
|
+
default: domToImageMore_min
|
|
537
|
+
}, [domToImageMore_minExports]);
|
|
538
|
+
export {
|
|
539
|
+
domToImageMore_min$1 as domToImageMore_min
|
|
540
|
+
};
|