vue-data-ui 2.8.0 → 2.8.2-beta.0
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 +4 -0
- package/dist/{Arrow-I5AiHXxB.js → Arrow-COsmVQGg.js} +1 -1
- package/dist/{Arrow-D6q7wT70.cjs → Arrow-CRkagNj_.cjs} +1 -1
- package/dist/{BaseIcon-BNBdVypn.cjs → BaseIcon-B4pcy-8f.cjs} +1 -1
- package/dist/{BaseIcon-eOI-TaGA.js → BaseIcon-Dmcf856A.js} +1 -1
- package/dist/{ColorPicker-RxZk7X7b.js → ColorPicker-BQSP45oM.js} +3 -3
- package/dist/{ColorPicker-B3YPWhmx.cjs → ColorPicker-C9SFkHn3.cjs} +1 -1
- package/dist/{DataTable-D6KdvUip.js → DataTable-B1yJapRL.js} +2 -2
- package/dist/{DataTable-DbFdIOSA.cjs → DataTable-Bjx5Ccho.cjs} +1 -1
- package/dist/{Legend-D2hXVij0.js → Legend--YhaiVet.js} +2 -2
- package/dist/{Legend-C-PmQikI.cjs → Legend-BjHoFybL.cjs} +1 -1
- package/dist/{PackageVersion-m64FzgEd.js → PackageVersion-BwGV13wg.js} +3 -3
- package/dist/PackageVersion-_-duZr_B.cjs +1 -0
- package/dist/{PenAndPaper-DQgGlIFz.cjs → PenAndPaper-BLqBmiek.cjs} +1 -1
- package/dist/{PenAndPaper-DsrtCBwN.js → PenAndPaper-BwOppffl.js} +3 -3
- package/dist/{Shape-B75ciWNR.cjs → Shape-Cbao7HSz.cjs} +1 -1
- package/dist/{Shape-B5iAAqd4.js → Shape-Dg-hzjV4.js} +1 -1
- package/dist/{Slicer-CbLRKclY.cjs → Slicer-B4Mbf7CA.cjs} +1 -1
- package/dist/{Slicer-kYbzIqGE.js → Slicer-XYuzh148.js} +2 -2
- package/dist/{Title-BqVhWQj9.cjs → Title-CF40M_nk.cjs} +1 -1
- package/dist/{Title-C0CT6jA6.js → Title-D08zl5ev.js} +1 -1
- package/dist/{Tooltip-TflEtITP.js → Tooltip-BXmEpCan.js} +1 -1
- package/dist/{Tooltip-DG7xNLW-.cjs → Tooltip-CupB-l8u.cjs} +1 -1
- package/dist/{dom-to-png-DOvFiyVD.js → dom-to-png-B2070iQl.js} +1 -1
- package/dist/{dom-to-png-CpKxlQQV.cjs → dom-to-png-CHSv0xMW.cjs} +1 -1
- package/dist/{img-DJuM6hTd.cjs → img-BR_cEhe8.cjs} +1 -1
- package/dist/{img-Df4jddw0.js → img-BtO99VMK.js} +1 -1
- package/dist/{index-B8vOvwaf.cjs → index-CRA3TjQQ.cjs} +1 -1
- package/dist/{index-CHhWsvsT.js → index-DmMaSSqc.js} +1 -1
- package/dist/pdf-Bc4mkqYX.js +51 -0
- package/dist/pdf-D6x7WEvy.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useNestedProp-BFjDbZR0.js → useNestedProp-B47aFTkT.js} +1 -1
- package/dist/{useNestedProp-C4sQAs2T.cjs → useNestedProp-wDhEx7x9.cjs} +1 -1
- package/dist/{usePrinter-Bi6GyL7Z.cjs → usePrinter-06EDG1PE.cjs} +1 -1
- package/dist/{usePrinter-CAc9dBow.js → usePrinter-1GlKtPCq.js} +3 -3
- package/dist/{vue-data-ui-BiqUTQHh.js → vue-data-ui-CDFtEOu4.js} +61 -61
- package/dist/{vue-data-ui-BXyPpDlS.cjs → vue-data-ui-Dx4piIh9.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CsfKeMor.cjs → vue-ui-3d-bar-DLMD2SZo.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BukVhbUM.js → vue-ui-3d-bar-DeixcN8U.js} +9 -9
- package/dist/{vue-ui-accordion-CBE2Lscz.cjs → vue-ui-accordion-DcFabpGO.cjs} +1 -1
- package/dist/{vue-ui-accordion-C7pRXQdw.js → vue-ui-accordion-QdoZquMy.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dax4kNLx.js → vue-ui-age-pyramid-2y2FFtHU.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CmhWu1qE.cjs → vue-ui-age-pyramid-B8jim3J5.cjs} +1 -1
- package/dist/vue-ui-annotator-CfEp5EPK.cjs +371 -0
- package/dist/{vue-ui-annotator-3Q8JcMLX.js → vue-ui-annotator-DGIvKHlF.js} +36 -31
- package/dist/{vue-ui-bullet-BnqMZQ7a.js → vue-ui-bullet-DtC5tbBO.js} +8 -8
- package/dist/{vue-ui-bullet-Da3iBcaw.cjs → vue-ui-bullet-sk8TiDAx.cjs} +1 -1
- package/dist/{vue-ui-candlestick-9FDrczZR.cjs → vue-ui-candlestick-Bp1X8rCI.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D0mY94Jp.js → vue-ui-candlestick-aZW1FkBk.js} +11 -11
- package/dist/{vue-ui-carousel-table-D82JYyHE.cjs → vue-ui-carousel-table-Cyg9E2_P.cjs} +1 -1
- package/dist/{vue-ui-carousel-table--HXY8XEd.js → vue-ui-carousel-table-DEkz5mlG.js} +4 -4
- package/dist/{vue-ui-chestnut-ChxHav21.cjs → vue-ui-chestnut-Dc8BR4Fp.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DGMEqNF1.js → vue-ui-chestnut-Dt3E_CqF.js} +8 -8
- package/dist/{vue-ui-circle-pack-Bto97bX9.cjs → vue-ui-circle-pack-LTgaNsYK.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-DDtij6Kr.js → vue-ui-circle-pack-POZYcUlI.js} +9 -9
- package/dist/{vue-ui-cursor-DnQjJnVr.cjs → vue-ui-cursor-C3N9zUA7.cjs} +1 -1
- package/dist/{vue-ui-cursor-BffyiKnL.js → vue-ui-cursor-DK5VB3D0.js} +2 -2
- package/dist/vue-ui-dashboard-BEbiVgOQ.cjs +1 -0
- package/dist/vue-ui-dashboard-jqW1Xxpz.js +317 -0
- package/dist/{vue-ui-digits-BTZHIHFC.cjs → vue-ui-digits-BXZmcW0S.cjs} +1 -1
- package/dist/{vue-ui-digits-CLgeA2NX.js → vue-ui-digits-Bcx-kLHo.js} +2 -2
- package/dist/{vue-ui-donut-7BmcLSnQ.cjs → vue-ui-donut-C3CUnPIO.cjs} +1 -1
- package/dist/{vue-ui-donut-Bb9t4OWG.js → vue-ui-donut-OvjOLwRW.js} +12 -12
- package/dist/{vue-ui-donut-evolution-B3c99AS5.cjs → vue-ui-donut-evolution-Bx8FunVF.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BzETpvh8.js → vue-ui-donut-evolution-TsbcmiBs.js} +11 -11
- package/dist/{vue-ui-dumbbell-CovXfgXM.js → vue-ui-dumbbell-CHcPo7vY.js} +10 -10
- package/dist/{vue-ui-dumbbell-q0DWy_nW.cjs → vue-ui-dumbbell-CezLEwpL.cjs} +1 -1
- package/dist/{vue-ui-flow-D-S2_qAL.js → vue-ui-flow-BMNYBEJh.js} +9 -9
- package/dist/{vue-ui-flow-DOBvmEXN.cjs → vue-ui-flow-C0qwgT75.cjs} +1 -1
- package/dist/{vue-ui-funnel-CG030eaF.cjs → vue-ui-funnel-Ct3GgY7y.cjs} +1 -1
- package/dist/{vue-ui-funnel-AgQDv8GV.js → vue-ui-funnel-uz_CQDJI.js} +9 -9
- package/dist/{vue-ui-galaxy-VTaUhuNb.cjs → vue-ui-galaxy-Cx51n6hM.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Eh1iX0hH.js → vue-ui-galaxy-DawYn5OS.js} +11 -11
- package/dist/{vue-ui-gauge-Dp49FLkw.cjs → vue-ui-gauge-CACfaNHg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BU3D6eVu.js → vue-ui-gauge-CcQP3sPy.js} +7 -7
- package/dist/{vue-ui-gizmo-bDjkcGjm.cjs → vue-ui-gizmo-CjsP-8Li.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BALGIrUN.js → vue-ui-gizmo-CtfaITb7.js} +3 -3
- package/dist/{vue-ui-heatmap-C4-jHxqE.js → vue-ui-heatmap-C9k81DDp.js} +10 -10
- package/dist/{vue-ui-heatmap-BSjmR3sS.cjs → vue-ui-heatmap-DrtdWgC5.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CRhDY60l.js → vue-ui-history-plot-BWuqP7cL.js} +11 -11
- package/dist/{vue-ui-history-plot-JQTLEF-0.cjs → vue-ui-history-plot-Cz4rOch3.cjs} +1 -1
- package/dist/{vue-ui-kpi-BKvh1huR.js → vue-ui-kpi-DPwY24JT.js} +3 -3
- package/dist/{vue-ui-kpi-CVkh7BAP.cjs → vue-ui-kpi-sHiuWUD6.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DbH7yYMi.js → vue-ui-mini-loader-CWXeBzw9.js} +2 -2
- package/dist/{vue-ui-mini-loader-C1LzgA-e.cjs → vue-ui-mini-loader-OuKZN9HN.cjs} +1 -1
- package/dist/{vue-ui-molecule-CysKbgkZ.js → vue-ui-molecule-BxWIQrOy.js} +11 -11
- package/dist/{vue-ui-molecule-NnAic6UM.cjs → vue-ui-molecule-oHkRoNBr.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DjGSlhy3.js → vue-ui-mood-radar-Cd7HI8bj.js} +11 -11
- package/dist/{vue-ui-mood-radar-ByisyMbS.cjs → vue-ui-mood-radar-DCxDtpf3.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-XBgi1vDJ.js → vue-ui-nested-donuts-BoXT5OAw.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Bqlr_1UH.cjs → vue-ui-nested-donuts-CXFtb1M0.cjs} +1 -1
- package/dist/{vue-ui-onion-D-O_hUCV.cjs → vue-ui-onion-DYgInDb8.cjs} +1 -1
- package/dist/{vue-ui-onion-BXMEYteQ.js → vue-ui-onion-Dxss5Mnb.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Tpk1xRt0.cjs → vue-ui-parallel-coordinate-plot-Bs7704DX.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Bs32LBr4.js → vue-ui-parallel-coordinate-plot-C-K9WUQq.js} +12 -12
- package/dist/{vue-ui-quadrant-CxrjcS0W.cjs → vue-ui-quadrant-CgBI3znD.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DfG2m9U9.js → vue-ui-quadrant-ol8blyLN.js} +12 -12
- package/dist/{vue-ui-quick-chart-xFcZf4ic.js → vue-ui-quick-chart-BoPihMU7.js} +9 -9
- package/dist/{vue-ui-quick-chart-BN752LC5.cjs → vue-ui-quick-chart-Ds8vvott.cjs} +1 -1
- package/dist/{vue-ui-radar-Dg9fIl6V.js → vue-ui-radar-BYikeYez.js} +12 -12
- package/dist/{vue-ui-radar-CpkoNVZF.cjs → vue-ui-radar-Bq9yv1Nz.cjs} +1 -1
- package/dist/{vue-ui-rating-CSIg9dgg.cjs → vue-ui-rating-CIgPOsF9.cjs} +1 -1
- package/dist/{vue-ui-rating-BOzOOjeP.js → vue-ui-rating-CS87Hplo.js} +2 -2
- package/dist/{vue-ui-relation-circle-B8eDBnFj.js → vue-ui-relation-circle-B1_IFEQE.js} +7 -7
- package/dist/{vue-ui-relation-circle-BNNRdeuH.cjs → vue-ui-relation-circle-DYB4yUiA.cjs} +1 -1
- package/dist/{vue-ui-rings-Cmr5uRZw.js → vue-ui-rings-BnNg87-v.js} +12 -12
- package/dist/{vue-ui-rings-DjDW0-Q6.cjs → vue-ui-rings-Doe8Q28H.cjs} +1 -1
- package/dist/{vue-ui-scatter-hA9kp5k6.cjs → vue-ui-scatter-CKRjkm-h.cjs} +1 -1
- package/dist/{vue-ui-scatter-DGnuVGR2.js → vue-ui-scatter-CXwmuMIU.js} +12 -12
- package/dist/{vue-ui-skeleton-Du-JZESo.cjs → vue-ui-skeleton-5g5yLLM4.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bbm-HuYK.js → vue-ui-skeleton-8OZ9rJXh.js} +3 -3
- package/dist/{vue-ui-smiley-BRN7oHvx.cjs → vue-ui-smiley-CqN-vQye.cjs} +1 -1
- package/dist/{vue-ui-smiley-DgI0gw_a.js → vue-ui-smiley-CzqaH8_8.js} +2 -2
- package/dist/{vue-ui-spark-trend-CuGZ7SUB.js → vue-ui-spark-trend-DK6gOZHz.js} +5 -5
- package/dist/{vue-ui-spark-trend-BcNN-FO8.cjs → vue-ui-spark-trend-yVxR7PiI.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CsyQT684.js → vue-ui-sparkbar-BKOe_Cee.js} +4 -4
- package/dist/{vue-ui-sparkbar-DjoAo8_e.cjs → vue-ui-sparkbar-rR2c2FDd.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-D7iAELw1.cjs → vue-ui-sparkgauge-C7OYH1Fs.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BCPkzgDv.js → vue-ui-sparkgauge-RN8tIAc9.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Ddkf1jvO.js → vue-ui-sparkhistogram-Zzy9jGiy.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Bf0QfydV.cjs → vue-ui-sparkhistogram-__Vd5tky.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CdgHJGYS.cjs → vue-ui-sparkline-DDWOEIzY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DxwDic0p.js → vue-ui-sparkline-liB_Hmaq.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-FV9amPXv.cjs → vue-ui-sparkstackbar-BrpeJTzl.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-oQ5zFbnG.js → vue-ui-sparkstackbar-COJVT609.js} +5 -5
- package/dist/{vue-ui-stackbar-DXCUbrDs.js → vue-ui-stackbar-B8f8IS8C.js} +13 -13
- package/dist/{vue-ui-stackbar-B2BaQqZp.cjs → vue-ui-stackbar-DtHaJXGD.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-8FTALylL.js → vue-ui-strip-plot-CVKQziT5.js} +11 -11
- package/dist/{vue-ui-strip-plot-CTTgQkQq.cjs → vue-ui-strip-plot-Dp816JKq.cjs} +1 -1
- package/dist/{vue-ui-table-BSZ4-uk3.cjs → vue-ui-table-CwRXfETT.cjs} +1 -1
- package/dist/{vue-ui-table-CoQmm6oQ.js → vue-ui-table-D1Kid804.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DbrXViRF.js → vue-ui-table-heatmap-COLSO8dn.js} +4 -4
- package/dist/{vue-ui-table-heatmap-9co1bgsX.cjs → vue-ui-table-heatmap-Do-ARjlq.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DmifMZlU.js → vue-ui-table-sparkline-CKETpujG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bedq8Umj.cjs → vue-ui-table-sparkline-nTd1T2Nq.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dq06rElD.cjs → vue-ui-thermometer-BZyDvYE0.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CRPYJ2zm.js → vue-ui-thermometer-DiCuDyU3.js} +7 -7
- package/dist/{vue-ui-timer-DxuD_GzY.cjs → vue-ui-timer-CkfRiOdo.cjs} +1 -1
- package/dist/{vue-ui-timer-BKBy1ZLE.js → vue-ui-timer-DULQQyad.js} +5 -5
- package/dist/{vue-ui-tiremarks-NfgbQpwX.js → vue-ui-tiremarks-CxSfMNfB.js} +7 -7
- package/dist/{vue-ui-tiremarks-DNMh2uS8.cjs → vue-ui-tiremarks-D_-IhOIM.cjs} +1 -1
- package/dist/{vue-ui-treemap-BPToyCts.cjs → vue-ui-treemap-Bom01mr7.cjs} +1 -1
- package/dist/{vue-ui-treemap-BIFpEdcW.js → vue-ui-treemap-uNR6Swq2.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CJPzwkOs.js → vue-ui-vertical-bar-B-HEGjmy.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DvXKngor.cjs → vue-ui-vertical-bar-BCyVbfNP.cjs} +1 -1
- package/dist/{vue-ui-waffle-CjAk1ZgB.cjs → vue-ui-waffle-B6zy86qy.cjs} +1 -1
- package/dist/{vue-ui-waffle-W6LYkj3J.js → vue-ui-waffle-CI6IaCpT.js} +12 -12
- package/dist/{vue-ui-wheel-BrQpTjAd.js → vue-ui-wheel-B_ZTQj8n.js} +7 -7
- package/dist/{vue-ui-wheel-C6CiUQPX.cjs → vue-ui-wheel-DZfrwJOK.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DLZNBF3e.cjs → vue-ui-word-cloud-B7KEJYTm.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BDHwUS2t.js → vue-ui-word-cloud-B8Da_fNw.js} +10 -10
- package/dist/{vue-ui-world-CHeMS2oK.js → vue-ui-world-BRaOylAI.js} +14 -14
- package/dist/{vue-ui-world-_B_bmsir.cjs → vue-ui-world-B_tKcYOS.cjs} +2 -2
- package/dist/{vue-ui-xy-DCqIGXDR.js → vue-ui-xy-CZvUtKRw.js} +16 -16
- package/dist/{vue-ui-xy-Bxf4aZvK.cjs → vue-ui-xy-DBRrNTNO.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DkW65e7N.js → vue-ui-xy-canvas-BZFEUjUp.js} +12 -12
- package/dist/{vue-ui-xy-canvas-C-FBIlH7.cjs → vue-ui-xy-canvas-CuKeAw-R.cjs} +1 -1
- package/package.json +8 -3
- package/dist/PackageVersion-D22bJIIL.cjs +0 -1
- package/dist/html2canvas.esm-BA_v9SIU.cjs +0 -22
- package/dist/html2canvas.esm-DgdJBc_o.js +0 -4871
- package/dist/index.es-BloWY6jv.js +0 -6645
- package/dist/index.es-HygMioe_.cjs +0 -18
- package/dist/jspdf.es.min-C518mmma.cjs +0 -243
- package/dist/jspdf.es.min-t_OLULUR.js +0 -8094
- package/dist/pdf-BV7moOjc.js +0 -46
- package/dist/pdf-Bihl06mH.cjs +0 -1
- package/dist/purify.es-BGDLgQxM.js +0 -519
- package/dist/purify.es-DSp9NJ6S.cjs +0 -2
- package/dist/vue-ui-annotator-iiL8Nzi5.cjs +0 -371
- package/dist/vue-ui-dashboard-B9YwIx1g.cjs +0 -1
- package/dist/vue-ui-dashboard-BvzyqjWd.js +0 -248
package/dist/pdf-BV7moOjc.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { E as p } from "./jspdf.es.min-t_OLULUR.js";
|
|
2
|
-
import { d as u } from "./dom-to-png-DOvFiyVD.js";
|
|
3
|
-
async function I({ domElement: d, fileName: m, scale: f = 2, options: P = {} }) {
|
|
4
|
-
if (!d) return Promise.reject("No domElement provided");
|
|
5
|
-
const t = {
|
|
6
|
-
width: 595.28,
|
|
7
|
-
height: 841.89
|
|
8
|
-
}, a = await u({ container: d, scale: f });
|
|
9
|
-
return await new Promise((l, w) => {
|
|
10
|
-
const e = new window.Image();
|
|
11
|
-
e.onload = function() {
|
|
12
|
-
const i = e.naturalWidth, r = e.naturalHeight;
|
|
13
|
-
let g = t.width, h = t.width / i * r;
|
|
14
|
-
const o = new p("", "pt", "a4");
|
|
15
|
-
let s = 0, n = r;
|
|
16
|
-
const c = i / t.width * t.height;
|
|
17
|
-
if (n < c)
|
|
18
|
-
o.addImage(
|
|
19
|
-
a,
|
|
20
|
-
"PNG",
|
|
21
|
-
0,
|
|
22
|
-
0,
|
|
23
|
-
g,
|
|
24
|
-
h,
|
|
25
|
-
"",
|
|
26
|
-
"FAST"
|
|
27
|
-
);
|
|
28
|
-
else
|
|
29
|
-
for (; n > 0; )
|
|
30
|
-
o.addImage(
|
|
31
|
-
a,
|
|
32
|
-
"PNG",
|
|
33
|
-
0,
|
|
34
|
-
s,
|
|
35
|
-
g,
|
|
36
|
-
h,
|
|
37
|
-
"",
|
|
38
|
-
"FAST"
|
|
39
|
-
), n -= c, s -= t.height, n > 0 && o.addPage();
|
|
40
|
-
o.save(`${m}.pdf`), l();
|
|
41
|
-
}, e.onerror = (i) => w("Failed to load image for PDF: " + i), e.src = a;
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
I as default
|
|
46
|
-
};
|
package/dist/pdf-Bihl06mH.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-CpKxlQQV.cjs");async function P({domElement:d,fileName:l,scale:m=2,options:H={}}){if(!d)return Promise.reject("No domElement provided");const t={width:595.28,height:841.89},a=await p.domToPng({container:d,scale:m});return await new Promise((f,u)=>{const e=new window.Image;e.onload=function(){const i=e.naturalWidth,r=e.naturalHeight;let g=t.width,s=t.width/i*r;const o=new w.E("","pt","a4");let c=0,n=r;const h=i/t.width*t.height;if(n<h)o.addImage(a,"PNG",0,0,g,s,"","FAST");else for(;n>0;)o.addImage(a,"PNG",0,c,g,s,"","FAST"),n-=h,c-=t.height,n>0&&o.addPage();o.save(`${l}.pdf`),f()},e.onerror=i=>u("Failed to load image for PDF: "+i),e.src=a})}exports.default=P;
|
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
2
|
-
const {
|
|
3
|
-
entries: dt,
|
|
4
|
-
setPrototypeOf: at,
|
|
5
|
-
isFrozen: Wt,
|
|
6
|
-
getPrototypeOf: Bt,
|
|
7
|
-
getOwnPropertyDescriptor: Yt
|
|
8
|
-
} = Object;
|
|
9
|
-
let {
|
|
10
|
-
freeze: S,
|
|
11
|
-
seal: y,
|
|
12
|
-
create: Tt
|
|
13
|
-
} = Object, {
|
|
14
|
-
apply: Ce,
|
|
15
|
-
construct: we
|
|
16
|
-
} = typeof Reflect < "u" && Reflect;
|
|
17
|
-
S || (S = function(o) {
|
|
18
|
-
return o;
|
|
19
|
-
});
|
|
20
|
-
y || (y = function(o) {
|
|
21
|
-
return o;
|
|
22
|
-
});
|
|
23
|
-
Ce || (Ce = function(o, l, s) {
|
|
24
|
-
return o.apply(l, s);
|
|
25
|
-
});
|
|
26
|
-
we || (we = function(o, l) {
|
|
27
|
-
return new o(...l);
|
|
28
|
-
});
|
|
29
|
-
const se = R(Array.prototype.forEach), Xt = R(Array.prototype.lastIndexOf), rt = R(Array.prototype.pop), V = R(Array.prototype.push), jt = R(Array.prototype.splice), ce = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), st = R(String.prototype.match), $ = R(String.prototype.replace), Vt = R(String.prototype.indexOf), $t = R(String.prototype.trim), L = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), q = qt(TypeError);
|
|
30
|
-
function R(r) {
|
|
31
|
-
return function(o) {
|
|
32
|
-
for (var l = arguments.length, s = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
|
33
|
-
s[T - 1] = arguments[T];
|
|
34
|
-
return Ce(r, o, s);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function qt(r) {
|
|
38
|
-
return function() {
|
|
39
|
-
for (var o = arguments.length, l = new Array(o), s = 0; s < o; s++)
|
|
40
|
-
l[s] = arguments[s];
|
|
41
|
-
return we(r, l);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function a(r, o) {
|
|
45
|
-
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ce;
|
|
46
|
-
at && at(r, null);
|
|
47
|
-
let s = o.length;
|
|
48
|
-
for (; s--; ) {
|
|
49
|
-
let T = o[s];
|
|
50
|
-
if (typeof T == "string") {
|
|
51
|
-
const b = l(T);
|
|
52
|
-
b !== T && (Wt(o) || (o[s] = b), T = b);
|
|
53
|
-
}
|
|
54
|
-
r[T] = !0;
|
|
55
|
-
}
|
|
56
|
-
return r;
|
|
57
|
-
}
|
|
58
|
-
function Kt(r) {
|
|
59
|
-
for (let o = 0; o < r.length; o++)
|
|
60
|
-
L(r, o) || (r[o] = null);
|
|
61
|
-
return r;
|
|
62
|
-
}
|
|
63
|
-
function w(r) {
|
|
64
|
-
const o = Tt(null);
|
|
65
|
-
for (const [l, s] of dt(r))
|
|
66
|
-
L(r, l) && (Array.isArray(s) ? o[l] = Kt(s) : s && typeof s == "object" && s.constructor === Object ? o[l] = w(s) : o[l] = s);
|
|
67
|
-
return o;
|
|
68
|
-
}
|
|
69
|
-
function K(r, o) {
|
|
70
|
-
for (; r !== null; ) {
|
|
71
|
-
const s = Yt(r, o);
|
|
72
|
-
if (s) {
|
|
73
|
-
if (s.get)
|
|
74
|
-
return R(s.get);
|
|
75
|
-
if (typeof s.value == "function")
|
|
76
|
-
return R(s.value);
|
|
77
|
-
}
|
|
78
|
-
r = Bt(r);
|
|
79
|
-
}
|
|
80
|
-
function l() {
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
return l;
|
|
84
|
-
}
|
|
85
|
-
const lt = S(["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"]), De = S(["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"]), be = S(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Zt = S(["animate", "color-profile", "cursor", "discard", "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"]), Ie = S(["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", "mprescripts"]), Jt = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ct = S(["#text"]), ft = S(["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", "popover", "popovertarget", "popovertargetaction", "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", "wrap", "xmlns", "slot"]), Me = S(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "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", "exponent", "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", "intercept", "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", "slope", "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", "tablevalues", "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"]), ut = S(["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"]), le = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qt = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), en = y(/<%[\w\W]*|[\w\W]*%>/gm), tn = y(/\$\{[\w\W]*/gm), nn = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), on = y(/^aria-[\-\w]+$/), _t = y(
|
|
86
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
87
|
-
// eslint-disable-line no-useless-escape
|
|
88
|
-
), an = y(/^(?:\w+script|data):/i), rn = y(
|
|
89
|
-
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
90
|
-
// eslint-disable-line no-control-regex
|
|
91
|
-
), Et = y(/^html$/i), sn = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
92
|
-
var mt = /* @__PURE__ */ Object.freeze({
|
|
93
|
-
__proto__: null,
|
|
94
|
-
ARIA_ATTR: on,
|
|
95
|
-
ATTR_WHITESPACE: rn,
|
|
96
|
-
CUSTOM_ELEMENT: sn,
|
|
97
|
-
DATA_ATTR: nn,
|
|
98
|
-
DOCTYPE_NAME: Et,
|
|
99
|
-
ERB_EXPR: en,
|
|
100
|
-
IS_ALLOWED_URI: _t,
|
|
101
|
-
IS_SCRIPT_OR_DATA: an,
|
|
102
|
-
MUSTACHE_EXPR: Qt,
|
|
103
|
-
TMPLIT_EXPR: tn
|
|
104
|
-
});
|
|
105
|
-
const Z = {
|
|
106
|
-
element: 1,
|
|
107
|
-
text: 3,
|
|
108
|
-
// Deprecated
|
|
109
|
-
progressingInstruction: 7,
|
|
110
|
-
comment: 8,
|
|
111
|
-
document: 9
|
|
112
|
-
}, ln = function() {
|
|
113
|
-
return typeof window > "u" ? null : window;
|
|
114
|
-
}, cn = function(o, l) {
|
|
115
|
-
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
116
|
-
return null;
|
|
117
|
-
let s = null;
|
|
118
|
-
const T = "data-tt-policy-suffix";
|
|
119
|
-
l && l.hasAttribute(T) && (s = l.getAttribute(T));
|
|
120
|
-
const b = "dompurify" + (s ? "#" + s : "");
|
|
121
|
-
try {
|
|
122
|
-
return o.createPolicy(b, {
|
|
123
|
-
createHTML(x) {
|
|
124
|
-
return x;
|
|
125
|
-
},
|
|
126
|
-
createScriptURL(x) {
|
|
127
|
-
return x;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
} catch {
|
|
131
|
-
return console.warn("TrustedTypes policy " + b + " could not be created."), null;
|
|
132
|
-
}
|
|
133
|
-
}, pt = function() {
|
|
134
|
-
return {
|
|
135
|
-
afterSanitizeAttributes: [],
|
|
136
|
-
afterSanitizeElements: [],
|
|
137
|
-
afterSanitizeShadowDOM: [],
|
|
138
|
-
beforeSanitizeAttributes: [],
|
|
139
|
-
beforeSanitizeElements: [],
|
|
140
|
-
beforeSanitizeShadowDOM: [],
|
|
141
|
-
uponSanitizeAttribute: [],
|
|
142
|
-
uponSanitizeElement: [],
|
|
143
|
-
uponSanitizeShadowNode: []
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
function gt() {
|
|
147
|
-
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ln();
|
|
148
|
-
const o = (i) => gt(i);
|
|
149
|
-
if (o.version = "3.2.4", o.removed = [], !r || !r.document || r.document.nodeType !== Z.document || !r.Element)
|
|
150
|
-
return o.isSupported = !1, o;
|
|
151
|
-
let {
|
|
152
|
-
document: l
|
|
153
|
-
} = r;
|
|
154
|
-
const s = l, T = s.currentScript, {
|
|
155
|
-
DocumentFragment: b,
|
|
156
|
-
HTMLTemplateElement: x,
|
|
157
|
-
Node: fe,
|
|
158
|
-
Element: xe,
|
|
159
|
-
NodeFilter: z,
|
|
160
|
-
NamedNodeMap: ht = r.NamedNodeMap || r.MozNamedAttrMap,
|
|
161
|
-
HTMLFormElement: At,
|
|
162
|
-
DOMParser: St,
|
|
163
|
-
trustedTypes: J
|
|
164
|
-
} = r, G = xe.prototype, Rt = K(G, "cloneNode"), Ot = K(G, "remove"), yt = K(G, "nextSibling"), Lt = K(G, "childNodes"), Q = K(G, "parentNode");
|
|
165
|
-
if (typeof x == "function") {
|
|
166
|
-
const i = l.createElement("template");
|
|
167
|
-
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
|
168
|
-
}
|
|
169
|
-
let E, W = "";
|
|
170
|
-
const {
|
|
171
|
-
implementation: ue,
|
|
172
|
-
createNodeIterator: Nt,
|
|
173
|
-
createDocumentFragment: Dt,
|
|
174
|
-
getElementsByTagName: bt
|
|
175
|
-
} = l, {
|
|
176
|
-
importNode: It
|
|
177
|
-
} = s;
|
|
178
|
-
let g = pt();
|
|
179
|
-
o.isSupported = typeof dt == "function" && typeof Q == "function" && ue && ue.createHTMLDocument !== void 0;
|
|
180
|
-
const {
|
|
181
|
-
MUSTACHE_EXPR: me,
|
|
182
|
-
ERB_EXPR: pe,
|
|
183
|
-
TMPLIT_EXPR: de,
|
|
184
|
-
DATA_ATTR: Mt,
|
|
185
|
-
ARIA_ATTR: Ct,
|
|
186
|
-
IS_SCRIPT_OR_DATA: wt,
|
|
187
|
-
ATTR_WHITESPACE: Pe,
|
|
188
|
-
CUSTOM_ELEMENT: xt
|
|
189
|
-
} = mt;
|
|
190
|
-
let {
|
|
191
|
-
IS_ALLOWED_URI: ve
|
|
192
|
-
} = mt, u = null;
|
|
193
|
-
const ke = a({}, [...lt, ...De, ...be, ...Ie, ...ct]);
|
|
194
|
-
let p = null;
|
|
195
|
-
const Ue = a({}, [...ft, ...Me, ...ut, ...le]);
|
|
196
|
-
let f = Object.seal(Tt(null, {
|
|
197
|
-
tagNameCheck: {
|
|
198
|
-
writable: !0,
|
|
199
|
-
configurable: !1,
|
|
200
|
-
enumerable: !0,
|
|
201
|
-
value: null
|
|
202
|
-
},
|
|
203
|
-
attributeNameCheck: {
|
|
204
|
-
writable: !0,
|
|
205
|
-
configurable: !1,
|
|
206
|
-
enumerable: !0,
|
|
207
|
-
value: null
|
|
208
|
-
},
|
|
209
|
-
allowCustomizedBuiltInElements: {
|
|
210
|
-
writable: !0,
|
|
211
|
-
configurable: !1,
|
|
212
|
-
enumerable: !0,
|
|
213
|
-
value: !1
|
|
214
|
-
}
|
|
215
|
-
})), B = null, Te = null, Fe = !0, _e = !0, He = !1, ze = !0, P = !1, Ee = !0, C = !1, ge = !1, he = !1, v = !1, ee = !1, te = !1, Ge = !0, We = !1;
|
|
216
|
-
const Pt = "user-content-";
|
|
217
|
-
let Ae = !0, Y = !1, k = {}, U = null;
|
|
218
|
-
const Be = a({}, ["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"]);
|
|
219
|
-
let Ye = null;
|
|
220
|
-
const Xe = a({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
221
|
-
let Se = null;
|
|
222
|
-
const je = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ne = "http://www.w3.org/1998/Math/MathML", oe = "http://www.w3.org/2000/svg", I = "http://www.w3.org/1999/xhtml";
|
|
223
|
-
let F = I, Re = !1, Oe = null;
|
|
224
|
-
const vt = a({}, [ne, oe, I], Ne);
|
|
225
|
-
let ie = a({}, ["mi", "mo", "mn", "ms", "mtext"]), ae = a({}, ["annotation-xml"]);
|
|
226
|
-
const kt = a({}, ["title", "style", "font", "a", "script"]);
|
|
227
|
-
let X = null;
|
|
228
|
-
const Ut = ["application/xhtml+xml", "text/html"], Ft = "text/html";
|
|
229
|
-
let m = null, H = null;
|
|
230
|
-
const Ht = l.createElement("form"), Ve = function(e) {
|
|
231
|
-
return e instanceof RegExp || e instanceof Function;
|
|
232
|
-
}, ye = function() {
|
|
233
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
234
|
-
if (!(H && H === e)) {
|
|
235
|
-
if ((!e || typeof e != "object") && (e = {}), e = w(e), X = // eslint-disable-next-line unicorn/prefer-includes
|
|
236
|
-
Ut.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ft : e.PARSER_MEDIA_TYPE, m = X === "application/xhtml+xml" ? Ne : ce, u = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, m) : ke, p = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, m) : Ue, Oe = L(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, Ne) : vt, Se = L(e, "ADD_URI_SAFE_ATTR") ? a(w(je), e.ADD_URI_SAFE_ATTR, m) : je, Ye = L(e, "ADD_DATA_URI_TAGS") ? a(w(Xe), e.ADD_DATA_URI_TAGS, m) : Xe, U = L(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, m) : Be, B = L(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, m) : {}, Te = L(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, m) : {}, k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Fe = e.ALLOW_ARIA_ATTR !== !1, _e = e.ALLOW_DATA_ATTR !== !1, He = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Ee = e.SAFE_FOR_XML !== !1, C = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ee = e.RETURN_DOM_FRAGMENT || !1, te = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, Ge = e.SANITIZE_DOM !== !1, We = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || _t, F = e.NAMESPACE || I, ie = e.MATHML_TEXT_INTEGRATION_POINTS || ie, ae = e.HTML_INTEGRATION_POINTS || ae, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ve(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ve(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (_e = !1), ee && (v = !0), k && (u = a({}, ct), p = [], k.html === !0 && (a(u, lt), a(p, ft)), k.svg === !0 && (a(u, De), a(p, Me), a(p, le)), k.svgFilters === !0 && (a(u, be), a(p, Me), a(p, le)), k.mathMl === !0 && (a(u, Ie), a(p, ut), a(p, le))), e.ADD_TAGS && (u === ke && (u = w(u)), a(u, e.ADD_TAGS, m)), e.ADD_ATTR && (p === Ue && (p = w(p)), a(p, e.ADD_ATTR, m)), e.ADD_URI_SAFE_ATTR && a(Se, e.ADD_URI_SAFE_ATTR, m), e.FORBID_CONTENTS && (U === Be && (U = w(U)), a(U, e.FORBID_CONTENTS, m)), Ae && (u["#text"] = !0), C && a(u, ["html", "head", "body"]), u.table && (a(u, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
237
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
238
|
-
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
239
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
240
|
-
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
241
|
-
E = e.TRUSTED_TYPES_POLICY, W = E.createHTML("");
|
|
242
|
-
} else
|
|
243
|
-
E === void 0 && (E = cn(J, T)), E !== null && typeof W == "string" && (W = E.createHTML(""));
|
|
244
|
-
S && S(e), H = e;
|
|
245
|
-
}
|
|
246
|
-
}, $e = a({}, [...De, ...be, ...Zt]), qe = a({}, [...Ie, ...Jt]), zt = function(e) {
|
|
247
|
-
let t = Q(e);
|
|
248
|
-
(!t || !t.tagName) && (t = {
|
|
249
|
-
namespaceURI: F,
|
|
250
|
-
tagName: "template"
|
|
251
|
-
});
|
|
252
|
-
const n = ce(e.tagName), c = ce(t.tagName);
|
|
253
|
-
return Oe[e.namespaceURI] ? e.namespaceURI === oe ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === ne ? n === "svg" && (c === "annotation-xml" || ie[c]) : !!$e[n] : e.namespaceURI === ne ? t.namespaceURI === I ? n === "math" : t.namespaceURI === oe ? n === "math" && ae[c] : !!qe[n] : e.namespaceURI === I ? t.namespaceURI === oe && !ae[c] || t.namespaceURI === ne && !ie[c] ? !1 : !qe[n] && (kt[n] || !$e[n]) : !!(X === "application/xhtml+xml" && Oe[e.namespaceURI]) : !1;
|
|
254
|
-
}, N = function(e) {
|
|
255
|
-
V(o.removed, {
|
|
256
|
-
element: e
|
|
257
|
-
});
|
|
258
|
-
try {
|
|
259
|
-
Q(e).removeChild(e);
|
|
260
|
-
} catch {
|
|
261
|
-
Ot(e);
|
|
262
|
-
}
|
|
263
|
-
}, re = function(e, t) {
|
|
264
|
-
try {
|
|
265
|
-
V(o.removed, {
|
|
266
|
-
attribute: t.getAttributeNode(e),
|
|
267
|
-
from: t
|
|
268
|
-
});
|
|
269
|
-
} catch {
|
|
270
|
-
V(o.removed, {
|
|
271
|
-
attribute: null,
|
|
272
|
-
from: t
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
if (t.removeAttribute(e), e === "is")
|
|
276
|
-
if (v || ee)
|
|
277
|
-
try {
|
|
278
|
-
N(t);
|
|
279
|
-
} catch {
|
|
280
|
-
}
|
|
281
|
-
else
|
|
282
|
-
try {
|
|
283
|
-
t.setAttribute(e, "");
|
|
284
|
-
} catch {
|
|
285
|
-
}
|
|
286
|
-
}, Ke = function(e) {
|
|
287
|
-
let t = null, n = null;
|
|
288
|
-
if (he)
|
|
289
|
-
e = "<remove></remove>" + e;
|
|
290
|
-
else {
|
|
291
|
-
const d = st(e, /^[\r\n\t ]+/);
|
|
292
|
-
n = d && d[0];
|
|
293
|
-
}
|
|
294
|
-
X === "application/xhtml+xml" && F === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
295
|
-
const c = E ? E.createHTML(e) : e;
|
|
296
|
-
if (F === I)
|
|
297
|
-
try {
|
|
298
|
-
t = new St().parseFromString(c, X);
|
|
299
|
-
} catch {
|
|
300
|
-
}
|
|
301
|
-
if (!t || !t.documentElement) {
|
|
302
|
-
t = ue.createDocument(F, "template", null);
|
|
303
|
-
try {
|
|
304
|
-
t.documentElement.innerHTML = Re ? W : c;
|
|
305
|
-
} catch {
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
const _ = t.body || t.documentElement;
|
|
309
|
-
return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === I ? bt.call(t, C ? "html" : "body")[0] : C ? t.documentElement : _;
|
|
310
|
-
}, Ze = function(e) {
|
|
311
|
-
return Nt.call(
|
|
312
|
-
e.ownerDocument || e,
|
|
313
|
-
e,
|
|
314
|
-
// eslint-disable-next-line no-bitwise
|
|
315
|
-
z.SHOW_ELEMENT | z.SHOW_COMMENT | z.SHOW_TEXT | z.SHOW_PROCESSING_INSTRUCTION | z.SHOW_CDATA_SECTION,
|
|
316
|
-
null
|
|
317
|
-
);
|
|
318
|
-
}, Le = function(e) {
|
|
319
|
-
return e instanceof At && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ht) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
320
|
-
}, Je = function(e) {
|
|
321
|
-
return typeof fe == "function" && e instanceof fe;
|
|
322
|
-
};
|
|
323
|
-
function M(i, e, t) {
|
|
324
|
-
se(i, (n) => {
|
|
325
|
-
n.call(o, e, t, H);
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
const Qe = function(e) {
|
|
329
|
-
let t = null;
|
|
330
|
-
if (M(g.beforeSanitizeElements, e, null), Le(e))
|
|
331
|
-
return N(e), !0;
|
|
332
|
-
const n = m(e.nodeName);
|
|
333
|
-
if (M(g.uponSanitizeElement, e, {
|
|
334
|
-
tagName: n,
|
|
335
|
-
allowedTags: u
|
|
336
|
-
}), e.hasChildNodes() && !Je(e.firstElementChild) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || Ee && e.nodeType === Z.comment && A(/<[/\w]/g, e.data))
|
|
337
|
-
return N(e), !0;
|
|
338
|
-
if (!u[n] || B[n]) {
|
|
339
|
-
if (!B[n] && tt(n) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
340
|
-
return !1;
|
|
341
|
-
if (Ae && !U[n]) {
|
|
342
|
-
const c = Q(e) || e.parentNode, _ = Lt(e) || e.childNodes;
|
|
343
|
-
if (_ && c) {
|
|
344
|
-
const d = _.length;
|
|
345
|
-
for (let O = d - 1; O >= 0; --O) {
|
|
346
|
-
const D = Rt(_[O], !0);
|
|
347
|
-
D.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(D, yt(e));
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
return N(e), !0;
|
|
352
|
-
}
|
|
353
|
-
return e instanceof xe && !zt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (N(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, se([me, pe, de], (c) => {
|
|
354
|
-
t = $(t, c, " ");
|
|
355
|
-
}), e.textContent !== t && (V(o.removed, {
|
|
356
|
-
element: e.cloneNode()
|
|
357
|
-
}), e.textContent = t)), M(g.afterSanitizeElements, e, null), !1);
|
|
358
|
-
}, et = function(e, t, n) {
|
|
359
|
-
if (Ge && (t === "id" || t === "name") && (n in l || n in Ht))
|
|
360
|
-
return !1;
|
|
361
|
-
if (!(_e && !Te[t] && A(Mt, t))) {
|
|
362
|
-
if (!(Fe && A(Ct, t))) {
|
|
363
|
-
if (!p[t] || Te[t]) {
|
|
364
|
-
if (
|
|
365
|
-
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
366
|
-
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
367
|
-
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
368
|
-
!(tt(e) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && A(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
369
|
-
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
370
|
-
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
371
|
-
) return !1;
|
|
372
|
-
} else if (!Se[t]) {
|
|
373
|
-
if (!A(ve, $(n, Pe, ""))) {
|
|
374
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Vt(n, "data:") === 0 && Ye[e])) {
|
|
375
|
-
if (!(He && !A(wt, $(n, Pe, "")))) {
|
|
376
|
-
if (n)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
return !0;
|
|
385
|
-
}, tt = function(e) {
|
|
386
|
-
return e !== "annotation-xml" && st(e, xt);
|
|
387
|
-
}, nt = function(e) {
|
|
388
|
-
M(g.beforeSanitizeAttributes, e, null);
|
|
389
|
-
const {
|
|
390
|
-
attributes: t
|
|
391
|
-
} = e;
|
|
392
|
-
if (!t || Le(e))
|
|
393
|
-
return;
|
|
394
|
-
const n = {
|
|
395
|
-
attrName: "",
|
|
396
|
-
attrValue: "",
|
|
397
|
-
keepAttr: !0,
|
|
398
|
-
allowedAttributes: p,
|
|
399
|
-
forceKeepAttr: void 0
|
|
400
|
-
};
|
|
401
|
-
let c = t.length;
|
|
402
|
-
for (; c--; ) {
|
|
403
|
-
const _ = t[c], {
|
|
404
|
-
name: d,
|
|
405
|
-
namespaceURI: O,
|
|
406
|
-
value: D
|
|
407
|
-
} = _, j = m(d);
|
|
408
|
-
let h = d === "value" ? D : $t(D);
|
|
409
|
-
if (n.attrName = j, n.attrValue = h, n.keepAttr = !0, n.forceKeepAttr = void 0, M(g.uponSanitizeAttribute, e, n), h = n.attrValue, We && (j === "id" || j === "name") && (re(d, e), h = Pt + h), Ee && A(/((--!?|])>)|<\/(style|title)/i, h)) {
|
|
410
|
-
re(d, e);
|
|
411
|
-
continue;
|
|
412
|
-
}
|
|
413
|
-
if (n.forceKeepAttr || (re(d, e), !n.keepAttr))
|
|
414
|
-
continue;
|
|
415
|
-
if (!ze && A(/\/>/i, h)) {
|
|
416
|
-
re(d, e);
|
|
417
|
-
continue;
|
|
418
|
-
}
|
|
419
|
-
P && se([me, pe, de], (it) => {
|
|
420
|
-
h = $(h, it, " ");
|
|
421
|
-
});
|
|
422
|
-
const ot = m(e.nodeName);
|
|
423
|
-
if (et(ot, j, h)) {
|
|
424
|
-
if (E && typeof J == "object" && typeof J.getAttributeType == "function" && !O)
|
|
425
|
-
switch (J.getAttributeType(ot, j)) {
|
|
426
|
-
case "TrustedHTML": {
|
|
427
|
-
h = E.createHTML(h);
|
|
428
|
-
break;
|
|
429
|
-
}
|
|
430
|
-
case "TrustedScriptURL": {
|
|
431
|
-
h = E.createScriptURL(h);
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
try {
|
|
436
|
-
O ? e.setAttributeNS(O, d, h) : e.setAttribute(d, h), Le(e) ? N(e) : rt(o.removed);
|
|
437
|
-
} catch {
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
M(g.afterSanitizeAttributes, e, null);
|
|
442
|
-
}, Gt = function i(e) {
|
|
443
|
-
let t = null;
|
|
444
|
-
const n = Ze(e);
|
|
445
|
-
for (M(g.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
|
|
446
|
-
M(g.uponSanitizeShadowNode, t, null), Qe(t), nt(t), t.content instanceof b && i(t.content);
|
|
447
|
-
M(g.afterSanitizeShadowDOM, e, null);
|
|
448
|
-
};
|
|
449
|
-
return o.sanitize = function(i) {
|
|
450
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
|
|
451
|
-
if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !Je(i))
|
|
452
|
-
if (typeof i.toString == "function") {
|
|
453
|
-
if (i = i.toString(), typeof i != "string")
|
|
454
|
-
throw q("dirty is not a string, aborting");
|
|
455
|
-
} else
|
|
456
|
-
throw q("toString is not a function");
|
|
457
|
-
if (!o.isSupported)
|
|
458
|
-
return i;
|
|
459
|
-
if (ge || ye(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
460
|
-
if (i.nodeName) {
|
|
461
|
-
const D = m(i.nodeName);
|
|
462
|
-
if (!u[D] || B[D])
|
|
463
|
-
throw q("root node is forbidden and cannot be sanitized in-place");
|
|
464
|
-
}
|
|
465
|
-
} else if (i instanceof fe)
|
|
466
|
-
t = Ke("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Z.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
|
467
|
-
else {
|
|
468
|
-
if (!v && !P && !C && // eslint-disable-next-line unicorn/prefer-includes
|
|
469
|
-
i.indexOf("<") === -1)
|
|
470
|
-
return E && te ? E.createHTML(i) : i;
|
|
471
|
-
if (t = Ke(i), !t)
|
|
472
|
-
return v ? null : te ? W : "";
|
|
473
|
-
}
|
|
474
|
-
t && he && N(t.firstChild);
|
|
475
|
-
const d = Ze(Y ? i : t);
|
|
476
|
-
for (; c = d.nextNode(); )
|
|
477
|
-
Qe(c), nt(c), c.content instanceof b && Gt(c.content);
|
|
478
|
-
if (Y)
|
|
479
|
-
return i;
|
|
480
|
-
if (v) {
|
|
481
|
-
if (ee)
|
|
482
|
-
for (_ = Dt.call(t.ownerDocument); t.firstChild; )
|
|
483
|
-
_.appendChild(t.firstChild);
|
|
484
|
-
else
|
|
485
|
-
_ = t;
|
|
486
|
-
return (p.shadowroot || p.shadowrootmode) && (_ = It.call(s, _, !0)), _;
|
|
487
|
-
}
|
|
488
|
-
let O = C ? t.outerHTML : t.innerHTML;
|
|
489
|
-
return C && u["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(Et, t.ownerDocument.doctype.name) && (O = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
490
|
-
` + O), P && se([me, pe, de], (D) => {
|
|
491
|
-
O = $(O, D, " ");
|
|
492
|
-
}), E && te ? E.createHTML(O) : O;
|
|
493
|
-
}, o.setConfig = function() {
|
|
494
|
-
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
495
|
-
ye(i), ge = !0;
|
|
496
|
-
}, o.clearConfig = function() {
|
|
497
|
-
H = null, ge = !1;
|
|
498
|
-
}, o.isValidAttribute = function(i, e, t) {
|
|
499
|
-
H || ye({});
|
|
500
|
-
const n = m(i), c = m(e);
|
|
501
|
-
return et(n, c, t);
|
|
502
|
-
}, o.addHook = function(i, e) {
|
|
503
|
-
typeof e == "function" && V(g[i], e);
|
|
504
|
-
}, o.removeHook = function(i, e) {
|
|
505
|
-
if (e !== void 0) {
|
|
506
|
-
const t = Xt(g[i], e);
|
|
507
|
-
return t === -1 ? void 0 : jt(g[i], t, 1)[0];
|
|
508
|
-
}
|
|
509
|
-
return rt(g[i]);
|
|
510
|
-
}, o.removeHooks = function(i) {
|
|
511
|
-
g[i] = [];
|
|
512
|
-
}, o.removeAllHooks = function() {
|
|
513
|
-
g = pt();
|
|
514
|
-
}, o;
|
|
515
|
-
}
|
|
516
|
-
var fn = gt();
|
|
517
|
-
export {
|
|
518
|
-
fn as default
|
|
519
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:dt,setPrototypeOf:at,isFrozen:Wt,getPrototypeOf:Bt,getOwnPropertyDescriptor:Yt}=Object;let{freeze:S,seal:y,create:Tt}=Object,{apply:Ce,construct:we}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});y||(y=function(o){return o});Ce||(Ce=function(o,l,s){return o.apply(l,s)});we||(we=function(o,l){return new o(...l)});const se=R(Array.prototype.forEach),Xt=R(Array.prototype.lastIndexOf),rt=R(Array.prototype.pop),V=R(Array.prototype.push),jt=R(Array.prototype.splice),ce=R(String.prototype.toLowerCase),Ne=R(String.prototype.toString),st=R(String.prototype.match),$=R(String.prototype.replace),Vt=R(String.prototype.indexOf),$t=R(String.prototype.trim),L=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),q=qt(TypeError);function R(r){return function(o){for(var l=arguments.length,s=new Array(l>1?l-1:0),T=1;T<l;T++)s[T-1]=arguments[T];return Ce(r,o,s)}}function qt(r){return function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return we(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;at&&at(r,null);let s=o.length;for(;s--;){let T=o[s];if(typeof T=="string"){const D=l(T);D!==T&&(Wt(o)||(o[s]=D),T=D)}r[T]=!0}return r}function Kt(r){for(let o=0;o<r.length;o++)L(r,o)||(r[o]=null);return r}function w(r){const o=Tt(null);for(const[l,s]of dt(r))L(r,l)&&(Array.isArray(s)?o[l]=Kt(s):s&&typeof s=="object"&&s.constructor===Object?o[l]=w(s):o[l]=s);return o}function K(r,o){for(;r!==null;){const s=Yt(r,o);if(s){if(s.get)return R(s.get);if(typeof s.value=="function")return R(s.value)}r=Bt(r)}function l(){return null}return l}const lt=S(["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"]),be=S(["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"]),De=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Zt=S(["animate","color-profile","cursor","discard","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"]),Ie=S(["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","mprescripts"]),Jt=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ct=S(["#text"]),ft=S(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),Me=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),ut=S(["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"]),le=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qt=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),en=y(/<%[\w\W]*|[\w\W]*%>/gm),tn=y(/\$\{[\w\W]*/gm),nn=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),on=y(/^aria-[\-\w]+$/),_t=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),an=y(/^(?:\w+script|data):/i),rn=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Et=y(/^html$/i),sn=y(/^[a-z][.\w]*(-[.\w]+)+$/i);var mt=Object.freeze({__proto__:null,ARIA_ATTR:on,ATTR_WHITESPACE:rn,CUSTOM_ELEMENT:sn,DATA_ATTR:nn,DOCTYPE_NAME:Et,ERB_EXPR:en,IS_ALLOWED_URI:_t,IS_SCRIPT_OR_DATA:an,MUSTACHE_EXPR:Qt,TMPLIT_EXPR:tn});const Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},ln=function(){return typeof window>"u"?null:window},cn=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null;const T="data-tt-policy-suffix";l&&l.hasAttribute(T)&&(s=l.getAttribute(T));const D="dompurify"+(s?"#"+s:"");try{return o.createPolicy(D,{createHTML(P){return P},createScriptURL(P){return P}})}catch{return console.warn("TrustedTypes policy "+D+" could not be created."),null}},pt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function gt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln();const o=i=>gt(i);if(o.version="3.2.4",o.removed=[],!r||!r.document||r.document.nodeType!==Z.document||!r.Element)return o.isSupported=!1,o;let{document:l}=r;const s=l,T=s.currentScript,{DocumentFragment:D,HTMLTemplateElement:P,Node:fe,Element:Pe,NodeFilter:z,NamedNodeMap:ht=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:At,DOMParser:St,trustedTypes:J}=r,G=Pe.prototype,Rt=K(G,"cloneNode"),Ot=K(G,"remove"),yt=K(G,"nextSibling"),Lt=K(G,"childNodes"),Q=K(G,"parentNode");if(typeof P=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let E,W="";const{implementation:ue,createNodeIterator:Nt,createDocumentFragment:bt,getElementsByTagName:Dt}=l,{importNode:It}=s;let g=pt();o.isSupported=typeof dt=="function"&&typeof Q=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:pe,TMPLIT_EXPR:de,DATA_ATTR:Mt,ARIA_ATTR:Ct,IS_SCRIPT_OR_DATA:wt,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:Pt}=mt;let{IS_ALLOWED_URI:ve}=mt,u=null;const ke=a({},[...lt,...be,...De,...Ie,...ct]);let p=null;const Ue=a({},[...ft,...Me,...ut,...le]);let f=Object.seal(Tt(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}})),B=null,Te=null,Fe=!0,_e=!0,He=!1,ze=!0,x=!1,Ee=!0,C=!1,ge=!1,he=!1,v=!1,ee=!1,te=!1,Ge=!0,We=!1;const xt="user-content-";let Ae=!0,Y=!1,k={},U=null;const Be=a({},["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"]);let Ye=null;const Xe=a({},["audio","video","img","source","image","track"]);let Se=null;const je=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml";let F=I,Re=!1,Oe=null;const vt=a({},[ne,oe,I],Ne);let ie=a({},["mi","mo","mn","ms","mtext"]),ae=a({},["annotation-xml"]);const kt=a({},["title","style","font","a","script"]);let X=null;const Ut=["application/xhtml+xml","text/html"],Ft="text/html";let m=null,H=null;const Ht=l.createElement("form"),Ve=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=w(e),X=Ut.indexOf(e.PARSER_MEDIA_TYPE)===-1?Ft:e.PARSER_MEDIA_TYPE,m=X==="application/xhtml+xml"?Ne:ce,u=L(e,"ALLOWED_TAGS")?a({},e.ALLOWED_TAGS,m):ke,p=L(e,"ALLOWED_ATTR")?a({},e.ALLOWED_ATTR,m):Ue,Oe=L(e,"ALLOWED_NAMESPACES")?a({},e.ALLOWED_NAMESPACES,Ne):vt,Se=L(e,"ADD_URI_SAFE_ATTR")?a(w(je),e.ADD_URI_SAFE_ATTR,m):je,Ye=L(e,"ADD_DATA_URI_TAGS")?a(w(Xe),e.ADD_DATA_URI_TAGS,m):Xe,U=L(e,"FORBID_CONTENTS")?a({},e.FORBID_CONTENTS,m):Be,B=L(e,"FORBID_TAGS")?a({},e.FORBID_TAGS,m):{},Te=L(e,"FORBID_ATTR")?a({},e.FORBID_ATTR,m):{},k=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,Fe=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,He=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ze=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=e.SAFE_FOR_TEMPLATES||!1,Ee=e.SAFE_FOR_XML!==!1,C=e.WHOLE_DOCUMENT||!1,v=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,Ge=e.SANITIZE_DOM!==!1,We=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,Y=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||_t,F=e.NAMESPACE||I,ie=e.MATHML_TEXT_INTEGRATION_POINTS||ie,ae=e.HTML_INTEGRATION_POINTS||ae,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ve(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ve(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),x&&(_e=!1),ee&&(v=!0),k&&(u=a({},ct),p=[],k.html===!0&&(a(u,lt),a(p,ft)),k.svg===!0&&(a(u,be),a(p,Me),a(p,le)),k.svgFilters===!0&&(a(u,De),a(p,Me),a(p,le)),k.mathMl===!0&&(a(u,Ie),a(p,ut),a(p,le))),e.ADD_TAGS&&(u===ke&&(u=w(u)),a(u,e.ADD_TAGS,m)),e.ADD_ATTR&&(p===Ue&&(p=w(p)),a(p,e.ADD_ATTR,m)),e.ADD_URI_SAFE_ATTR&&a(Se,e.ADD_URI_SAFE_ATTR,m),e.FORBID_CONTENTS&&(U===Be&&(U=w(U)),a(U,e.FORBID_CONTENTS,m)),Ae&&(u["#text"]=!0),C&&a(u,["html","head","body"]),u.table&&(a(u,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=e.TRUSTED_TYPES_POLICY,W=E.createHTML("")}else E===void 0&&(E=cn(J,T)),E!==null&&typeof W=="string"&&(W=E.createHTML(""));S&&S(e),H=e}},$e=a({},[...be,...De,...Zt]),qe=a({},[...Ie,...Jt]),zt=function(e){let t=Q(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const n=ce(e.tagName),c=ce(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===oe?t.namespaceURI===I?n==="svg":t.namespaceURI===ne?n==="svg"&&(c==="annotation-xml"||ie[c]):!!$e[n]:e.namespaceURI===ne?t.namespaceURI===I?n==="math":t.namespaceURI===oe?n==="math"&&ae[c]:!!qe[n]:e.namespaceURI===I?t.namespaceURI===oe&&!ae[c]||t.namespaceURI===ne&&!ie[c]?!1:!qe[n]&&(kt[n]||!$e[n]):!!(X==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},N=function(e){V(o.removed,{element:e});try{Q(e).removeChild(e)}catch{Ot(e)}},re=function(e,t){try{V(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{V(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(v||ee)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Ke=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{const d=st(e,/^[\r\n\t ]+/);n=d&&d[0]}X==="application/xhtml+xml"&&F===I&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=E?E.createHTML(e):e;if(F===I)try{t=new St().parseFromString(c,X)}catch{}if(!t||!t.documentElement){t=ue.createDocument(F,"template",null);try{t.documentElement.innerHTML=Re?W:c}catch{}}const _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),F===I?Dt.call(t,C?"html":"body")[0]:C?t.documentElement:_},Ze=function(e){return Nt.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof At&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof ht)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Je=function(e){return typeof fe=="function"&&e instanceof fe};function M(i,e,t){se(i,n=>{n.call(o,e,t,H)})}const Qe=function(e){let t=null;if(M(g.beforeSanitizeElements,e,null),Le(e))return N(e),!0;const n=m(e.nodeName);if(M(g.uponSanitizeElement,e,{tagName:n,allowedTags:u}),e.hasChildNodes()&&!Je(e.firstElementChild)&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent)||e.nodeType===Z.progressingInstruction||Ee&&e.nodeType===Z.comment&&A(/<[/\w]/g,e.data))return N(e),!0;if(!u[n]||B[n]){if(!B[n]&&tt(n)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n)))return!1;if(Ae&&!U[n]){const c=Q(e)||e.parentNode,_=Lt(e)||e.childNodes;if(_&&c){const d=_.length;for(let O=d-1;O>=0;--O){const b=Rt(_[O],!0);b.__removalCount=(e.__removalCount||0)+1,c.insertBefore(b,yt(e))}}}return N(e),!0}return e instanceof Pe&&!zt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(x&&e.nodeType===Z.text&&(t=e.textContent,se([me,pe,de],c=>{t=$(t,c," ")}),e.textContent!==t&&(V(o.removed,{element:e.cloneNode()}),e.textContent=t)),M(g.afterSanitizeElements,e,null),!1)},et=function(e,t,n){if(Ge&&(t==="id"||t==="name")&&(n in l||n in Ht))return!1;if(!(_e&&!Te[t]&&A(Mt,t))){if(!(Fe&&A(Ct,t))){if(!p[t]||Te[t]){if(!(tt(e)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&A(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,n)||f.tagNameCheck instanceof Function&&f.tagNameCheck(n))))return!1}else if(!Se[t]){if(!A(ve,$(n,xe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Vt(n,"data:")===0&&Ye[e])){if(!(He&&!A(wt,$(n,xe,"")))){if(n)return!1}}}}}}return!0},tt=function(e){return e!=="annotation-xml"&&st(e,Pt)},nt=function(e){M(g.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:p,forceKeepAttr:void 0};let c=t.length;for(;c--;){const _=t[c],{name:d,namespaceURI:O,value:b}=_,j=m(d);let h=d==="value"?b:$t(b);if(n.attrName=j,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,M(g.uponSanitizeAttribute,e,n),h=n.attrValue,We&&(j==="id"||j==="name")&&(re(d,e),h=xt+h),Ee&&A(/((--!?|])>)|<\/(style|title)/i,h)){re(d,e);continue}if(n.forceKeepAttr||(re(d,e),!n.keepAttr))continue;if(!ze&&A(/\/>/i,h)){re(d,e);continue}x&&se([me,pe,de],it=>{h=$(h,it," ")});const ot=m(e.nodeName);if(et(ot,j,h)){if(E&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!O)switch(J.getAttributeType(ot,j)){case"TrustedHTML":{h=E.createHTML(h);break}case"TrustedScriptURL":{h=E.createScriptURL(h);break}}try{O?e.setAttributeNS(O,d,h):e.setAttribute(d,h),Le(e)?N(e):rt(o.removed)}catch{}}}M(g.afterSanitizeAttributes,e,null)},Gt=function i(e){let t=null;const n=Ze(e);for(M(g.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)M(g.uponSanitizeShadowNode,t,null),Qe(t),nt(t),t.content instanceof D&&i(t.content);M(g.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,c=null,_=null;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!Je(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!o.isSupported)return i;if(ge||ye(e),o.removed=[],typeof i=="string"&&(Y=!1),Y){if(i.nodeName){const b=m(i.nodeName);if(!u[b]||B[b])throw q("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof fe)t=Ke("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===Z.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!v&&!x&&!C&&i.indexOf("<")===-1)return E&&te?E.createHTML(i):i;if(t=Ke(i),!t)return v?null:te?W:""}t&&he&&N(t.firstChild);const d=Ze(Y?i:t);for(;c=d.nextNode();)Qe(c),nt(c),c.content instanceof D&&Gt(c.content);if(Y)return i;if(v){if(ee)for(_=bt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(p.shadowroot||p.shadowrootmode)&&(_=It.call(s,_,!0)),_}let O=C?t.outerHTML:t.innerHTML;return C&&u["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(Et,t.ownerDocument.doctype.name)&&(O="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
2
|
-
`+O),x&&se([me,pe,de],b=>{O=$(O,b," ")}),E&&te?E.createHTML(O):O},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),ge=!0},o.clearConfig=function(){H=null,ge=!1},o.isValidAttribute=function(i,e,t){H||ye({});const n=m(i),c=m(e);return et(n,c,t)},o.addHook=function(i,e){typeof e=="function"&&V(g[i],e)},o.removeHook=function(i,e){if(e!==void 0){const t=Xt(g[i],e);return t===-1?void 0:jt(g[i],t,1)[0]}return rt(g[i])},o.removeHooks=function(i){g[i]=[]},o.removeAllHooks=function(){g=pt()},o}var fn=gt();exports.default=fn;
|