@agile-team/mach-report 2.23.1 → 2.24.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 +8 -2
- package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BV12hGiK.cjs} +1 -1
- package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-Cy_lPjWV.js} +3 -3
- package/dist/ParamEditor-DenKjvKu.cjs +1 -0
- package/dist/ParamEditor-PyOqHzzw.js +750 -0
- package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-8EFtMrKk.js} +2 -2
- package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-pQ6d0yqJ.cjs} +1 -1
- package/dist/ReportLabelStudio-B_KF3Zc_.cjs +1 -0
- package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-HUeo2TsU.js} +68 -68
- package/dist/ReportParamPanel-8xR85nz-.cjs +1 -0
- package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DA-YpkvC.js} +328 -298
- package/dist/ReportPreview-CyUXJSVX.cjs +6 -0
- package/dist/ReportPreview-_wTJnsG1.js +7120 -0
- package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-CjArKxRG.cjs} +1 -1
- package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DH8jl9IF.js} +28 -28
- package/dist/RuleEditor-Bmj98oC4.cjs +1 -0
- package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-GDydlEHz.js} +846 -834
- package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-B554_qk1.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-DjPqzU9h.js} +10 -10
- package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-D0628OYc.cjs} +1 -1
- package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DtYbCN7U.js} +2 -2
- package/dist/TemplateReviewPanel-CSwvCz3f.cjs +1 -0
- package/dist/TemplateReviewPanel-D_FR4ISq.js +602 -0
- package/dist/artifact-integrity.json +94 -94
- package/dist/assets-B4AJIOTB.cjs +1 -0
- package/dist/assets-D0FbszhB.js +137 -0
- package/dist/{auto-BB99S802.js → auto-BksreoKc.js} +5 -5
- package/dist/auto-C3mGqzJ8.cjs +1 -0
- package/dist/capabilities-CTwlcl8q.cjs +1 -0
- package/dist/capabilities-lqDEZSq5.js +121 -0
- package/dist/data-bar-2NLRzOCQ.cjs +1 -0
- package/dist/{data-bar-IkI6VvMQ.js → data-bar-BnGtnJ82.js} +1 -1
- package/dist/designer-BNf7NWd6.js +7589 -0
- package/dist/designer-DWnZZ_ej.cjs +2 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +137 -4
- package/dist/designer.d.ts +137 -4
- package/dist/designer.js +5 -5
- package/dist/diagnostic-collector-1sqd7DQP.js +355 -0
- package/dist/diagnostic-collector-D3rlvxm3.cjs +1 -0
- package/dist/{dom-JWrchIre.js → dom-C90cTM6Y.js} +4 -4
- package/dist/dom-CxOkm_Sy.cjs +1 -0
- package/dist/{encoding-7lquyj0w.cjs → encoding-CkziAnZI.cjs} +1 -1
- package/dist/{encoding-CEd-dq9A.js → encoding-DSc9zv2F.js} +2 -2
- package/dist/{font-loader-D8pI87fL.cjs → font-loader-D-znWNWS.cjs} +1 -1
- package/dist/{font-loader-CNWXomuV.js → font-loader-i7lZbqH_.js} +1 -1
- package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-BPiV1WHe.js} +1 -1
- package/dist/grid-strokes-DYf-6DMl.cjs +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +46 -7
- package/dist/index.d.ts +46 -7
- package/dist/index.js +69 -68
- package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-BJWZNryO.js} +919 -791
- package/dist/json-snapshot-C7QZrRBf.cjs +2 -0
- package/dist/{pdf-CJToa81Z.js → pdf-0_5XiTCx.js} +2499 -2492
- package/dist/{pdf-DpMkW72B.cjs → pdf-DWuq6uxx.cjs} +31 -31
- package/dist/pdf.cjs +1 -1
- package/dist/pdf.d.cts +18 -0
- package/dist/pdf.d.ts +18 -0
- package/dist/pdf.js +2 -2
- package/dist/{plugin-_BkUVc2z.js → plugin-B1ydqEmS.js} +1 -1
- package/dist/{plugin-BWTp-X7b.cjs → plugin-BQBz2vLG.cjs} +1 -1
- package/dist/prefill-2p9wrpn9.cjs +1 -0
- package/dist/{prefill-CWGdnqQd.js → prefill-Cuzh1wxf.js} +13 -13
- package/dist/prepared-CVbgO9KR.js +128 -0
- package/dist/prepared-DAwe8Il2.cjs +1 -0
- package/dist/protocol-BOri9qJL.js +105 -0
- package/dist/protocol-DD5dHSz-.cjs +1 -0
- package/dist/record-bindings-CAyM5tGg.cjs +1 -0
- package/dist/{record-bindings-DatJZv_e.js → record-bindings-fhav-NLG.js} +1 -1
- package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-Cm4mqhih.js} +2 -2
- package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-DWCUgjZl.cjs} +1 -1
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/rich-text-layout-X9YOz1JD.cjs +3 -0
- package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-YJHtCWQI.js} +1 -1
- package/dist/runtime-BpSAgOw1.js +201 -0
- package/dist/runtime-Cd2UTnwe.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server/node.d.cts +55 -7
- package/dist/server/node.d.ts +55 -7
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +2721 -2430
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +47 -12
- package/dist/server.d.ts +47 -12
- package/dist/server.js +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog--yBX169M.cjs} +1 -1
- package/dist/{template-catalog-CRuZL3pi.js → template-catalog-Bu7s7ReF.js} +3 -3
- package/dist/template-fragments-5EzVn7bm.cjs +1 -0
- package/dist/{template-fragments-CPpGpQoz.js → template-fragments-Di2vDFnx.js} +2 -2
- package/dist/{template-registry-O0hNIOfB.js → template-registry-BCBF2b8j.js} +10 -10
- package/dist/template-registry-Bnh5aEYf.cjs +1 -0
- package/dist/textwrap-BPFxhpOw.cjs +4 -0
- package/dist/{textwrap-D4ZksyMK.js → textwrap-CmVkhMhx.js} +1 -1
- package/dist/vue/async.d.cts +97 -18
- package/dist/vue/async.d.ts +97 -18
- package/dist/vue/index.d.cts +127 -28
- package/dist/vue/index.d.ts +127 -28
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +192 -162
- package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-B6P_-5a4.js} +2 -2
- package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-BnPK3T58.cjs} +1 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.d.cts +55 -7
- package/dist/worker.d.ts +55 -7
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +4 -4
- package/dist/xlsx.d.cts +18 -1
- package/dist/xlsx.d.ts +18 -1
- package/dist/xlsx.js +279 -272
- package/package.json +1 -1
- package/dist/ParamEditor-BGjovFUe.js +0 -737
- package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
- package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
- package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
- package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
- package/dist/ReportPreview-QLONCyci.js +0 -6257
- package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
- package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
- package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
- package/dist/assets-D2gHc4Mz.cjs +0 -1
- package/dist/assets-T_gDeFaz.js +0 -132
- package/dist/auto-BrPWo7Xm.cjs +0 -1
- package/dist/capabilities-DiBj4Qgl.cjs +0 -1
- package/dist/capabilities-pg7j7VLT.js +0 -106
- package/dist/data-bar-CeZuFmYl.cjs +0 -1
- package/dist/designer-BZoVWTgl.js +0 -7172
- package/dist/designer-zS2uKJmY.cjs +0 -2
- package/dist/dom-ChE5D-L-.cjs +0 -1
- package/dist/grid-strokes-Be24LGuV.cjs +0 -1
- package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
- package/dist/prefill-PaAy6wLk.cjs +0 -1
- package/dist/prepared-CJy_qk7d.js +0 -94
- package/dist/prepared-D0yCSxSO.cjs +0 -1
- package/dist/progress-ByiOxUD3.js +0 -250
- package/dist/progress-WomPRP3B.cjs +0 -1
- package/dist/protocol-BG16rz6D.js +0 -90
- package/dist/protocol-wzhl1Fim.cjs +0 -1
- package/dist/record-bindings-MBxbeBsi.cjs +0 -1
- package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
- package/dist/runtime-DYMOS_gz.cjs +0 -1
- package/dist/runtime-PiCax9zQ.js +0 -171
- package/dist/template-fragments-GVjpew_q.cjs +0 -1
- package/dist/template-registry-DI59PXVK.cjs +0 -1
- package/dist/textwrap-DEHqAjKZ.cjs +0 -4
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.24.0",
|
|
3
3
|
"algorithm": "sha256",
|
|
4
4
|
"files": {
|
|
5
|
-
"ExcelBindingWizard-
|
|
6
|
-
"ExcelBindingWizard-
|
|
7
|
-
"ParamEditor-
|
|
8
|
-
"ParamEditor-
|
|
9
|
-
"ReportBatchPanel-
|
|
10
|
-
"ReportBatchPanel-
|
|
11
|
-
"ReportLabelStudio-
|
|
12
|
-
"ReportLabelStudio-
|
|
13
|
-
"ReportParamPanel-
|
|
14
|
-
"ReportParamPanel-
|
|
15
|
-
"ReportPreview-
|
|
16
|
-
"ReportPreview-
|
|
17
|
-
"ReportTemplateLibrary-
|
|
18
|
-
"ReportTemplateLibrary-
|
|
19
|
-
"RuleEditor-
|
|
20
|
-
"RuleEditor-
|
|
21
|
-
"TemplateOutlinePanel-
|
|
22
|
-
"TemplateOutlinePanel-
|
|
23
|
-
"TemplateReusePanel-
|
|
24
|
-
"TemplateReusePanel-
|
|
25
|
-
"TemplateReviewPanel-
|
|
26
|
-
"TemplateReviewPanel-
|
|
5
|
+
"ExcelBindingWizard-BV12hGiK.cjs": "2fd9430a224c282ece7e830f8155f72d2b199eade6376e071127ccc933c6ef3e",
|
|
6
|
+
"ExcelBindingWizard-Cy_lPjWV.js": "bbb4d9ef46370b479fa3fbcd490269f5ff61847137858e61961b2b93ffea4db9",
|
|
7
|
+
"ParamEditor-DenKjvKu.cjs": "081e8dfa377a76861e54a79100ee406a881eddcaa1c0fe8438c97f1147cf4c56",
|
|
8
|
+
"ParamEditor-PyOqHzzw.js": "c5611cf5d53dc67ab46ade82634655102ea36a75f0cd64ea6e5adc4c5404cba0",
|
|
9
|
+
"ReportBatchPanel-8EFtMrKk.js": "0ebeef841666649e374dcf401cc34c7c6d987374b16c8d55e1ea9588a6e15bae",
|
|
10
|
+
"ReportBatchPanel-pQ6d0yqJ.cjs": "e706b16833705d2f72044ff96b44ce6f8c17dc137a2d8b40776ec4158efe47c0",
|
|
11
|
+
"ReportLabelStudio-B_KF3Zc_.cjs": "2cc7ce6d853d28aab294192319909489dac5f469a2df33c12ba6d940019f1259",
|
|
12
|
+
"ReportLabelStudio-HUeo2TsU.js": "00ac2afe88bded745df76d90dc32c9eaa03de95a7629888034c5d68ac00305cf",
|
|
13
|
+
"ReportParamPanel-8xR85nz-.cjs": "195bb58459745ac350cef5ae9afabc5ded4ed9d00880079da48f18b7f232a9df",
|
|
14
|
+
"ReportParamPanel-DA-YpkvC.js": "d019744682475776bd823cdb3c65ce2e349cadaf91bdc478bfa5e267e8ce532c",
|
|
15
|
+
"ReportPreview-CyUXJSVX.cjs": "329d7d6637a9831990b6e524712f7b389b4d62d5272ae869e2a7a8e9ddb73e91",
|
|
16
|
+
"ReportPreview-_wTJnsG1.js": "83f6b7e09eda760de8c6c508b92ad0b49b9063f01d2bbfe96542f12d9fb77853",
|
|
17
|
+
"ReportTemplateLibrary-CjArKxRG.cjs": "c8f30b328d30323ca35c0dbc2ff7005ef143fc97d9d569b4682b9b428e088e09",
|
|
18
|
+
"ReportTemplateLibrary-DH8jl9IF.js": "3c484e06c4460af719c2f0ebf15d0c3b7fc2b535255a41d617e59c3160115ed2",
|
|
19
|
+
"RuleEditor-Bmj98oC4.cjs": "c5230b15c8e00d0146e2ff798e0f8d538c504f30d1eb80a5ff46230b1f75c7f5",
|
|
20
|
+
"RuleEditor-GDydlEHz.js": "a2d446446d93f095191398a1b678e7e199fd8526565257830a486ba4a6dc11f7",
|
|
21
|
+
"TemplateOutlinePanel-B554_qk1.cjs": "e0180ce8960f6d800abe5b6352879da392bcfc4a5f733e5babef6bb962bef6e1",
|
|
22
|
+
"TemplateOutlinePanel-DjPqzU9h.js": "3abd225f588523fda8f2249cc72202c68f1d357c96ce0f7c9150b804fc625268",
|
|
23
|
+
"TemplateReusePanel-D0628OYc.cjs": "c224c97dcdbbd66dfd628f18ac856bf24fa23105265b821d4f2647403f03ab68",
|
|
24
|
+
"TemplateReusePanel-DtYbCN7U.js": "7f27edbc9b5afe26a2b0eb9464b542afdc4c8af3dc1439f75bad96a6ca263fca",
|
|
25
|
+
"TemplateReviewPanel-CSwvCz3f.cjs": "c7d54e8485e4037ef41586d91515d23f73fc15c68a8c2d3838821b69e1552e5f",
|
|
26
|
+
"TemplateReviewPanel-D_FR4ISq.js": "7e6306b7ad838b5418ea76862c675534ee2137b6e3b5fceafdb0ad09371b189a",
|
|
27
27
|
"_commonjsHelpers-DKOUU3wS.cjs": "9fb4a8db4e3ab1aba23d44b6965615369004c05bfb5a323027ab5191080340d4",
|
|
28
28
|
"_commonjsHelpers-DaMA6jEr.js": "6d52e5d0f36d01714a54c94e082101e88ddce58c7189eeca8f2abc012a7cea12",
|
|
29
29
|
"_plugin-vue_export-helper-8SL1F89S.js": "233ffd200e30e23b8dad3eaee11bc8ef37724bf79606de66035c07f92dc5bd3d",
|
|
30
30
|
"_plugin-vue_export-helper-BLmdZLlg.cjs": "f7b5ccf7b4a1d92229cd7906bb614a43b84e50d340e80a509d64ac9a7b0b172d",
|
|
31
31
|
"analytics.cjs": "7d04630bf6091b2989461694f4bdba2b3763fe992dd9058ab2959b47f127101b",
|
|
32
32
|
"analytics.js": "e102e4a84b801a178ea43ca1bb0be62c976b432fb6b3bc5514dbe8934681149c",
|
|
33
|
-
"assets-
|
|
34
|
-
"assets-
|
|
35
|
-
"auto-
|
|
36
|
-
"auto-
|
|
33
|
+
"assets-B4AJIOTB.cjs": "b8c5e46e57d11ec851dbd90e95fab11b5df7138b88f7dc264d564a6a3f6cd339",
|
|
34
|
+
"assets-D0FbszhB.js": "9dbb3acbe1b16467dee8641eae3305fadde69a5e502e136bec5641e0c557ed75",
|
|
35
|
+
"auto-BksreoKc.js": "f59da26b5b92e9c4d483f6f75df15005bee981bdbd69d950abf0b0a5bcab0b40",
|
|
36
|
+
"auto-C3mGqzJ8.cjs": "563261186510303a6502d7a3aac208d777abcdc918ef381f472eceea073083de",
|
|
37
37
|
"batch-DGCt44XM.js": "8b4e701e19c6342025eea92f969437c0e288a88e53383d82ec1a895c72a1dd90",
|
|
38
38
|
"batch-DYcokH4v.cjs": "29a6bb725bd57b508ef61fa450993d87447aa0a0b74f56953f0f35651a148d51",
|
|
39
|
-
"capabilities-
|
|
40
|
-
"capabilities-
|
|
39
|
+
"capabilities-CTwlcl8q.cjs": "29ea104a0fec9c240adeaf0eaee2368712778087ddb0b621f1ea304ece5a8a68",
|
|
40
|
+
"capabilities-lqDEZSq5.js": "fbd969bdd33a94c048a96cc44d3f3a22e0f4582bc1ab5e2601aac68fe0ba0447",
|
|
41
41
|
"charts-Cjw5AYkg.cjs": "21029210f210ac75d29749c6b96588971ec6e60c095e92c7c6fe1e32c342bce5",
|
|
42
42
|
"charts-CxJZ0XaY.js": "8f898d448e128434f3e9fe7b2dacd116f2befd7b19ec7e0031d75b17cd164cac",
|
|
43
43
|
"code-options-BKXXY7NI.js": "67696253b923c214c5b628f86c65968d4de6e0812cb142bdb043806be6158038",
|
|
@@ -46,32 +46,34 @@
|
|
|
46
46
|
"codes.js": "60794ba407233d62c22653f85ec21d0116287c2bee96f1c5c90a0075f9b3eb61",
|
|
47
47
|
"computed-DK6BruFz.cjs": "f26215bcfc829ed2f0880863939b27214c0d6d0cfaf4482ec47a1c9924172e38",
|
|
48
48
|
"computed-f3pOqWLX.js": "42beff58ce182392c91009de04864963081605d1f4322167062e0134db6b9b1c",
|
|
49
|
-
"data-bar-
|
|
50
|
-
"data-bar-
|
|
49
|
+
"data-bar-2NLRzOCQ.cjs": "df0d432d0f0a7dafb4d111cf72e5f25e847a41eacd854dd96a72821534ede6c0",
|
|
50
|
+
"data-bar-BnGtnJ82.js": "365294715bda83a80822074a1c65728fe3e0f76e229f69f5dda0411c7d5ca8b4",
|
|
51
51
|
"dataset-DL83majE.js": "5733ea2048b60120b6f74ffb485b92abfa62712bf1e045debebbe50631643a3a",
|
|
52
52
|
"dataset-IrlXbUvh.cjs": "fcd1efa71845aa6ad44559918cc8206a473c4ce343afb057ba91d23b041363b3",
|
|
53
|
-
"designer-
|
|
54
|
-
"designer-
|
|
55
|
-
"designer.cjs": "
|
|
56
|
-
"designer.js": "
|
|
57
|
-
"
|
|
58
|
-
"
|
|
53
|
+
"designer-BNf7NWd6.js": "7244d9e575d24cba358d02621e0afc07377c2457cf4b980cfc7fc98d31c64d2a",
|
|
54
|
+
"designer-DWnZZ_ej.cjs": "e9bc31001d8a3a57b7b99a57a39d5f10c9ba1e96a720352ba7123d74e1d70a40",
|
|
55
|
+
"designer.cjs": "a71a5fc2b3968328a6840c61685730fff510eb35f712b78c08aa520d0c4d1953",
|
|
56
|
+
"designer.js": "e02a2483f2be885a7dcc29ebd4bdb6b5177410cfab05170f93eb0c3685144d88",
|
|
57
|
+
"diagnostic-collector-1sqd7DQP.js": "92c9eb4d612285bf5500a203a5e2231a4a684e6ea54b0cb762405d4b8ebe35d3",
|
|
58
|
+
"diagnostic-collector-D3rlvxm3.cjs": "bc9e011020cef6fbbb8cfe6d75b21b3df8b980f9f1f50b0a2388ff93c5501e6f",
|
|
59
|
+
"dom-C90cTM6Y.js": "69c0d0c52dd3e7b7fe32ae79fd89f6b0c81ef813f6def0a49d77291e0ebcf46d",
|
|
60
|
+
"dom-CxOkm_Sy.cjs": "e154d78185295c46de5783d6e35b448f003998222623045a417bf7ed16ec7ced",
|
|
59
61
|
"dom-cell-address-DLD1mkTB.cjs": "6338fd0aff421f07e6d18dd013e951bf3ebb3f24eb62fb6b857465f0be9cfaa9",
|
|
60
62
|
"dom-cell-address-Fn-8nk7D.js": "ba69ee95af411e0c1ef51949009595099e14d75e43feb6628d9a9302e59abe25",
|
|
61
|
-
"encoding-
|
|
62
|
-
"encoding-
|
|
63
|
-
"font-loader-
|
|
64
|
-
"font-loader-
|
|
65
|
-
"grid-strokes-
|
|
66
|
-
"grid-strokes-
|
|
63
|
+
"encoding-CkziAnZI.cjs": "cf9f53a0ff19a8c03aca158c09e8aec4c49f0c4c7198db3333738173e427b21d",
|
|
64
|
+
"encoding-DSc9zv2F.js": "26e5d3c212907ab84eca0304a87f0c28c0385bde218fa0d2c3a093d31fc289a3",
|
|
65
|
+
"font-loader-D-znWNWS.cjs": "0b6d14d7da123ae62c260224cad871e764f7a6c9dc5d11e9ea9d0d6000afb102",
|
|
66
|
+
"font-loader-i7lZbqH_.js": "79000ed27b4c1d0d0eeef1864f7043edbbd1a7894d3a298648eba6480566565d",
|
|
67
|
+
"grid-strokes-BPiV1WHe.js": "58a2805fc685198f04baff781c236597bea04f188b4537d04c3194a3360d7d94",
|
|
68
|
+
"grid-strokes-DYf-6DMl.cjs": "e4c9f9ea3b2de6a6fe8f5395ceaf81bad40e130af3324d375e39bcce946c1168",
|
|
67
69
|
"index-CPh6tqge.js": "7c296b48cef38d5964457d24709d00ccc27f5129fe704680d05a07995296331a",
|
|
68
70
|
"index-CUNw7dL9.cjs": "3903d4cbd382319dcfbe79bc936898a53b9d3ea0eddf02c969f4834b51e3dd3d",
|
|
69
|
-
"index.cjs": "
|
|
70
|
-
"index.js": "
|
|
71
|
+
"index.cjs": "6fff7d210bb32bfde382b511ee915ad355164e01a4deab2add6b16534bbb3741",
|
|
72
|
+
"index.js": "f67e6ae733e7ebfa7d563a6f65f63cdd98cb29f102db880ec10881701940014f",
|
|
71
73
|
"injection-keys-Db_DyLkm.cjs": "0d656460efa0c48f6153aae745dd61a7907128938d98b358b5b6d413db5ec4ed",
|
|
72
74
|
"injection-keys-e85udZCp.js": "101e96fc627b33003ba295d281e7f7bfb2c077300556b2bf039cb1938e36f582",
|
|
73
|
-
"json-snapshot-
|
|
74
|
-
"json-snapshot-
|
|
75
|
+
"json-snapshot-BJWZNryO.js": "5445ee6d6e6617d621387cb25aa56c3aed666a6147041cb747061bf288fe0631",
|
|
76
|
+
"json-snapshot-C7QZrRBf.cjs": "6971f1704b3dda0c0d2d2e363ea1597b1bfe0933a5f44f88e66929206812831d",
|
|
75
77
|
"matrix-B8QWbsGM.cjs": "42585d79913872c489cbcd3778b639046a831c2174f35605336304580275ec99",
|
|
76
78
|
"matrix-C6e_r_vp.js": "cb87c13bdea88ecc9e2d09b0ff16dfa36c292e70ec29487975402ccfd6ef59ef",
|
|
77
79
|
"media-B7vnpD8k.cjs": "c667063f9745af571f35561ec272496f0e3d7b7d4ee003a823003337155497d9",
|
|
@@ -80,68 +82,66 @@
|
|
|
80
82
|
"number-format-CZ2T_5kF.cjs": "bfbf7b30ddf4d27c80917f17c6609cb3a339436fc0a3d7a643ba5ac8faae0aec",
|
|
81
83
|
"param-validation-C-8sRJLq.cjs": "aee8af8de317622f4fc4c32585ae4ea2b837577392a861d57a81e869e0162f9a",
|
|
82
84
|
"param-validation-CnDEd2l-.js": "ebfea3402c3bac95fe3fc917f1ed9f2a69e36140b7c735ab995bad9ff2a03b26",
|
|
83
|
-
"pdf-
|
|
84
|
-
"pdf-
|
|
85
|
-
"pdf.cjs": "
|
|
86
|
-
"pdf.js": "
|
|
87
|
-
"plugin-
|
|
88
|
-
"plugin-
|
|
89
|
-
"prefill-
|
|
90
|
-
"prefill-
|
|
91
|
-
"prepared-
|
|
92
|
-
"prepared-
|
|
85
|
+
"pdf-0_5XiTCx.js": "0e7bd600439679b2e73f1bbd3f1d8f2ac2228e429efe827faa8d16fa5b5cb658",
|
|
86
|
+
"pdf-DWuq6uxx.cjs": "a3d008da6dd0b994fdad54302bf81a5cd365d89e3e9476e3492a2f7dd4401daa",
|
|
87
|
+
"pdf.cjs": "1b0ebde38a8693b633684685cc2f2297cb3b37267cdec345d0eb5f6e7547c8f1",
|
|
88
|
+
"pdf.js": "a7f28a07a912b3d9cad0aa9d41cbca1e712062856e9ea1d33fe3e71469464dc5",
|
|
89
|
+
"plugin-B1ydqEmS.js": "594c5cb1ebae6b79ee814a5e039c544d1b1fb2ad88e83bcab703ffb4dbe79760",
|
|
90
|
+
"plugin-BQBz2vLG.cjs": "db7f046066ebd7c66bf6c11ac07081f47a6d3a5b01c82783b120976f7feb110b",
|
|
91
|
+
"prefill-2p9wrpn9.cjs": "93ca190ecb29937e75c26027602bd3d85b3d075e6096d4b6bcd9aba111b3caee",
|
|
92
|
+
"prefill-Cuzh1wxf.js": "8a36a95f1fc251d4a29a36be9ffda8d65829326d16b1b74fdb7a9cbb1792e265",
|
|
93
|
+
"prepared-CVbgO9KR.js": "78a0721224a76b37e7cb840cde16ec6fecb3b576a1fe3dcd94e3d2c6ab12801a",
|
|
94
|
+
"prepared-DAwe8Il2.cjs": "e5d8975483b818b779547beb9e1ee12d304ddbb12cf587a3e4284ae30e6acca8",
|
|
93
95
|
"progress-BXzlVbIp.js": "aac2149222ce5bed9533f609a7de79367bd79f85a5915bcd86b34adc74eaba90",
|
|
94
|
-
"progress-ByiOxUD3.js": "fa7a4b34894e7004f7ec0015a497e84c759ea2d9868f82fbb76c003bbfc0b9ec",
|
|
95
96
|
"progress-DJBd9Rb9.cjs": "466d542700eab48cf11710a6639da603a52bbab19730151fa1594b472c0f1ee2",
|
|
96
|
-
"
|
|
97
|
-
"protocol-
|
|
98
|
-
"
|
|
99
|
-
"record-bindings-
|
|
100
|
-
"
|
|
101
|
-
"region-binding-workflow-
|
|
102
|
-
"
|
|
103
|
-
"report-encoding-worker.
|
|
104
|
-
"report-encoding-worker.js": "d762ded955411a7f82f9dd20cd7281e201ce1e5c3e90e4ae76e9d4b7a06e79dc",
|
|
97
|
+
"protocol-BOri9qJL.js": "2d02c68dcc88dec902bdf82d5589a890d7fdd3a63c7416bcdc28eee2963ae862",
|
|
98
|
+
"protocol-DD5dHSz-.cjs": "4bd026b1408777eafe4e35ad8ea8323ea1d579e0be38dee40494c71ed9edc7d6",
|
|
99
|
+
"record-bindings-CAyM5tGg.cjs": "4e1e1cae85149d6e6b5250daf6c866e1d68aeed312dffbb5dbfd2f49efe7dd2d",
|
|
100
|
+
"record-bindings-fhav-NLG.js": "7a1fc1dafc91715ed07638f43fa3b482d68feb1ab39fd1a9965617d28fffb547",
|
|
101
|
+
"region-binding-workflow-Cm4mqhih.js": "ac269f501d00deca1150b60474af484efdbbe38a363f1a4e3ca4a474fa6856e7",
|
|
102
|
+
"region-binding-workflow-DWCUgjZl.cjs": "318676870598773fddb2af73f59a0597252add9d676c544c709e5e7963a7c0c6",
|
|
103
|
+
"report-encoding-worker.cjs": "776829dcc07831318a7f917eb16a5953a42b3e51d04dcc5e8a4e3e0c6f24ceee",
|
|
104
|
+
"report-encoding-worker.js": "7eb42305a3aa17eb841ad58afd1f908998aeb5864ec95e10bb4f4ee64544a87b",
|
|
105
105
|
"report-params-D9tBuM9B.js": "ece9133b39e06ff8769c039d94d6734ac46e5aef8c9a795c0255b217b8f4e560",
|
|
106
106
|
"report-params-VTg8MoCp.cjs": "06600716e1621dd96088355786c67db6ce12860030118777450b1eb0a3ba655b",
|
|
107
|
-
"rich-text-layout-
|
|
108
|
-
"rich-text-layout-
|
|
109
|
-
"runtime-
|
|
110
|
-
"runtime-
|
|
111
|
-
"server-node.cjs": "
|
|
112
|
-
"server-node.js": "
|
|
113
|
-
"server.cjs": "
|
|
114
|
-
"server.js": "
|
|
107
|
+
"rich-text-layout-X9YOz1JD.cjs": "eb43bc7a11a448f71673a905a7bb22fc239b575469614dd44d6edc1db086ef8c",
|
|
108
|
+
"rich-text-layout-YJHtCWQI.js": "32d0614e622fd02c79283563ecbc3ce3bb678c3f06a54d35132161ca07b93fc3",
|
|
109
|
+
"runtime-BpSAgOw1.js": "0f3c3800e0068d6cae14438f40895db0540cceb973a17eca871887d1819ac4b4",
|
|
110
|
+
"runtime-Cd2UTnwe.cjs": "7a6db26203324529ffb2b73a87202f4da7caeffc50d4de3d6155c3590929a3d5",
|
|
111
|
+
"server-node.cjs": "3cc05b6937b2108a085960c27f8871f14338054cba93f7b9cadb8ddb51c4f946",
|
|
112
|
+
"server-node.js": "e836a8fb6c2138edb838cd4c0dd00e7f538f1a09c41e464cec82b1f8309ef677",
|
|
113
|
+
"server.cjs": "5d7a0261f609657942e7ef684f9e575371edde26d42ab8b5795e0013d47e5114",
|
|
114
|
+
"server.js": "755238508ea91777ec55c3620d916af7d7e9ab2de4a950e3d6eb51b11c89f08c",
|
|
115
115
|
"sha256-BDQ1Qk7A.js": "b0add3fe6ab451f8fe0563a7d9ba4f062bd489dffaf77df39e0a462dc8e9ee82",
|
|
116
116
|
"sha256-DgZAKXqI.cjs": "9dba2652fc0de8c96f33258fa7defcae98f5a1e3655c5065f99f721fbd0899fb",
|
|
117
117
|
"sql.cjs": "3f6410be368c6f8e3677e5c8a10fa76943685c49da1ab725262def05b13872ff",
|
|
118
118
|
"sql.js": "8c44d864340e02ec5ee4512e31b787da5dd1d3e7be750ab8280cfe2d1d733c06",
|
|
119
|
-
"style.css": "
|
|
120
|
-
"template-catalog
|
|
121
|
-
"template-catalog-
|
|
122
|
-
"template-fragments-
|
|
123
|
-
"template-fragments-
|
|
124
|
-
"template-registry-
|
|
125
|
-
"template-registry-
|
|
119
|
+
"style.css": "c6a102f8b4f1ef537d1f9f07f4d6b2b95e12c1544982c746d9a8449ed58f958b",
|
|
120
|
+
"template-catalog--yBX169M.cjs": "eb8e041d19e17f208e3405e49699eb5c51fa9436ba91350a5c32631a6c841737",
|
|
121
|
+
"template-catalog-Bu7s7ReF.js": "1f20b07f4d8ce99c93ea3f20f246f3081cd3c40cf0265db306647e1c18bef15c",
|
|
122
|
+
"template-fragments-5EzVn7bm.cjs": "f9afda01f11056db075521e2b560ca10005ce37460044bd36618e7f1c6ed6537",
|
|
123
|
+
"template-fragments-Di2vDFnx.js": "3f540a216c19cdb8a881c57085da7c3b2d6019536e88b7f18b8b13f2a51696eb",
|
|
124
|
+
"template-registry-BCBF2b8j.js": "a311efb01cee50a484841b122090971ee24305000351cd6dfdaf6db9c3b9d0f4",
|
|
125
|
+
"template-registry-Bnh5aEYf.cjs": "03265b01525c6ad963c3d39cdae90195886d27de57f18450e50f8e4d58d5cc84",
|
|
126
126
|
"template-serialization-CWmHq7lX.js": "8fcb4043e00f2d4313e4ba042549a149d55748790258ed8a63275bab79f7268f",
|
|
127
127
|
"template-serialization-CqQY4zDg.cjs": "c9ff9fe1b57f49c0f391a56d62326ab6ca8ca101bff57452c8fd3356dc69cdb9",
|
|
128
|
-
"textwrap-
|
|
129
|
-
"textwrap-
|
|
128
|
+
"textwrap-BPFxhpOw.cjs": "11d136c5476b02d29727d9e353e640c6749b0ef579f0990ce82b42232f7ccb9c",
|
|
129
|
+
"textwrap-CmVkhMhx.js": "6b22975c7e8c50a187630a32a698194d03bfe5b38c51332f88153bfca9e517c0",
|
|
130
130
|
"useLocalDraft-BnhcxXk_.js": "4329b21ab9806f229ec5039c48d140184f1a8b17713972548016e36d8c5ad2a5",
|
|
131
131
|
"useLocalDraft-CioIfDb6.cjs": "4aecc84e63a2bef15f690937d5cea415a6e5c529b1d7a2575d738215c1ff908f",
|
|
132
|
-
"vue-async.cjs": "
|
|
133
|
-
"vue-async.js": "
|
|
134
|
-
"vue.cjs": "
|
|
135
|
-
"vue.js": "
|
|
136
|
-
"workbook-session-
|
|
137
|
-
"workbook-session-
|
|
132
|
+
"vue-async.cjs": "1244d39eb38e3c7561536de8821d34a57be7e20e913bc8123e0980a6ae29b2be",
|
|
133
|
+
"vue-async.js": "09624b21938923b4b660abd7a63091eaf1733e0088eb3dd05197035ee2f73e18",
|
|
134
|
+
"vue.cjs": "a239bfc41664f8c2a312c2f9fe1dc713a62d58ecd31a64c38b9736815c49f615",
|
|
135
|
+
"vue.js": "0ab9bc38b03e519d0bbd5dc09cec4ae3e19e258877bac465402950a2a2c5098e",
|
|
136
|
+
"workbook-session-B6P_-5a4.js": "db117e3a8afab0fa13fa76cc87419e54615c35954b3b248c5369bb593f80df8d",
|
|
137
|
+
"workbook-session-BnPK3T58.cjs": "f09bf1506d36b53c139c657e882baeac0d97deb6cbfe9f5cb7836df5a8d968f8",
|
|
138
138
|
"workbook-sheets-CaPAulQ6.cjs": "7a9c89b6d94d3036bf13a5562cb799dcae6ae4c1824f0fa9a50e7938848bd2c4",
|
|
139
139
|
"workbook-sheets-D4M7XXBh.js": "650a92b5db22c6ff07e8c8a40e87febf3757f5abe7e3f07d67313ca3db7c9bc5",
|
|
140
|
-
"worker.cjs": "
|
|
141
|
-
"worker.js": "
|
|
140
|
+
"worker.cjs": "51dd9cf69d6846d6c9daf4b6b2b70bb00c2f9237e43b510e16bfd703c8eb7d48",
|
|
141
|
+
"worker.js": "d27c90e69b1a68eef9de9ef4324aff74b13063d2853a54cb0e1566456b9f61de",
|
|
142
142
|
"xlsx-node.cjs": "178988375a5c3ea69d7741f03026479ed6644f589076ea5838804ec8f552fd3b",
|
|
143
143
|
"xlsx-node.js": "3046b2a44983b5ce37856e871dc51fcfd4f6da0ff9421935330b8b9272628210",
|
|
144
|
-
"xlsx.cjs": "
|
|
145
|
-
"xlsx.js": "
|
|
144
|
+
"xlsx.cjs": "129108caedf7fe496c7c376eff8772405566b7ebcd0726ed6b72fa855ab2c724",
|
|
145
|
+
"xlsx.js": "225ff4f2923b9e7313ebe6070238faf529cdbb815b1fb9ed08a32a5d9c04f72e"
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("./diagnostic-collector-D3rlvxm3.cjs"),y=require("./capabilities-CTwlcl8q.cjs"),x=require("./media-B7vnpD8k.cjs");class w extends Error{constructor(e,r){super(e.message),this.name="OutputAssetError",this.diagnostic=e,this.cause=r}}function b(t){if(t.aborted)throw t.reason??new DOMException("The operation was aborted.","AbortError")}function E(t){const e={maxAssets:1e3,maxImageBytes:33554432,maxTotalImageBytes:134217728,maxDurationMs:3e4,...t.assetBudget};for(const[r,s]of Object.entries(e))if(!Number.isSafeInteger(s)||s<=0||s>2147483647)throw new RangeError(`${r} must be a positive safe integer at most 2147483647.`);return e}function A(t){const e=/^data:image\/[a-z0-9.+-]+(;base64)?,(.*)$/is.exec(t);if(!e)throw new TypeError("Asset renderers must return an image data URL.");return e[1]?Math.ceil(e[2].length*3/4):new TextEncoder().encode(decodeURIComponent(e[2])).byteLength}function p(t,e,r,s,i){const n={code:r,message:s,severity:"warning",format:t.options.format??"dom",pageIndex:e.pageIndex,componentIndex:e.componentIndex,componentPath:e.componentPath,kind:e.component.kind,nid:e.component.nid};if(t.diagnostics.push(n),y.notifyOutputDiagnostic(n,{...t.options,signal:t.signal}),t.options.assetFailure!=="placeholder")throw new w(n,i)}async function D(t,e,r){const s=t.options.assetRegistry?.rendererFor(e)??t.options.assetRenderers?.[e.kind];if(e.imageData||!s)return e.imageData;if(++t.rendered>t.budget.maxAssets)return p(t,r,"asset-budget-exceeded","Output exceeded the asset count budget.");let i;try{if(t.active=r,i=await l.waitForOutput(s({...r,signal:t.signal}),t.signal),b(t.signal),i.length>t.budget.maxImageBytes*4+1024)return p(t,r,"asset-budget-exceeded","Output exceeded the image payload byte budget.");const n=A(i);if(n>t.budget.maxImageBytes||t.bytes+n>t.budget.maxTotalImageBytes)return p(t,r,"asset-budget-exceeded","Output exceeded the encoded image byte budget.");/^data:image\/(png|jpe?g);base64,/i.test(i)&&t.inspectImage(i),t.bytes+=n}catch(n){if(t.signal.aborted||n instanceof w||n instanceof x.ImageMediaError&&n.code==="image-budget-exceeded")throw n;return p(t,r,"asset-render-failed",`Asset renderer failed for ${e.kind}; output was not silently omitted.`,n)}return i}function O(t,e){const r=t.active;if(!r){e.abort(new Error("Asset rendering exceeded maxDurationMs."));return}const s={code:"asset-budget-exceeded",message:"Asset rendering exceeded maxDurationMs.",severity:"warning",format:t.options.format??"dom",pageIndex:r.pageIndex,componentIndex:r.componentIndex,componentPath:r.componentPath,kind:r.component.kind,nid:r.component.nid};t.diagnostics.push(s);try{y.notifyOutputDiagnostic(s,{...t.options,signal:t.signal})}catch(i){e.abort(i);return}e.abort(new w(s))}async function M(t,e,r,s,i){if(!e?.children?.length)return e;const n=[];for(const[a,o]of e.children.entries())n.push(await v(t,o,{...r,component:o,componentPath:[...s,a]},i));return n.some((a,o)=>a!==e.children[o])?{...e,children:n}:e}async function v(t,e,r,s){if(b(t.signal),s.has(e))throw new TypeError("Cyclic grid children cannot be rendered.");let i=t.cache.get(e);i||(i=D(t,e,r),t.cache.set(e,i));const n=await i;b(t.signal);let a=e.grid;if(a){const o=new Set(s).add(e),m=[];for(const[f,d]of a.cells.entries()){if(!d.some(g=>g?.children?.length)){m.push(d);continue}const c=[];for(const[g,u]of d.entries())c.push(u?.children?.length?await M(t,u,r,[...r.componentPath,f,g],o):u);m.push(c.some((g,u)=>g!==d[u])?c:d)}m.some((f,d)=>f!==a.cells[d])&&(a={...a,cells:m})}return n!==e.imageData||a!==e.grid?{...e,imageData:n,grid:a}:e}function R(t,e,r){const s=new Set,i=n=>{if(l.assertOutputActive(r),!s.has(n)){if(s.add(n),n.imageData&&/^data:image\/(png|jpe?g);base64,/i.test(n.imageData))try{e(n.imageData)}catch(a){if(!(a instanceof x.ImageMediaError)||a.code==="image-budget-exceeded")throw a}for(const a of n.grid?.cells??[])for(const o of a)for(const m of o?.children??[])i(m)}};for(const n of t.pages)for(const a of n.components)i(a)}function T(t){if(t.options.fidelity==="strict"&&t.diagnostics.total)throw new y.OutputFidelityError(t.diagnostics.entries,t.options.diagnosticLimit===void 0?void 0:t.diagnostics.snapshot())}function I(t,e,r){return{plan:t,diagnostics:e.entries,...r===void 0?{}:{diagnosticSummary:e.snapshot()}}}async function k(t,e={}){l.assertOutputActive(e.signal);const r=l.createDiagnosticCollector(e.diagnosticLimit);l.assertBoundedRenderTree(t);const s=E(e),i=x.createImageMediaInspector(e);if(R(t,i,e.signal),e.signal?.aborted)throw e.signal.reason??new DOMException("The operation was aborted.","AbortError");const n=new AbortController,a=()=>n.abort(e.signal?.reason);if(e.signal?.addEventListener("abort",a,{once:!0}),!e.assetRegistry&&(!e.assetRenderers||!Object.keys(e.assetRenderers).length))return e.signal?.removeEventListener("abort",a),I(t,r,e.diagnosticLimit);const o={options:e,signal:n.signal,diagnostics:r,rendered:0,bytes:0,budget:s,cache:new WeakMap,inspectImage:i},m=setTimeout(()=>O(o,n),s.maxDurationMs);try{const f=[];for(const[d,c]of t.pages.entries()){if(d<(e.start??0)||d>(e.end??t.pages.length-1)){f.push(c);continue}const g=[];for(const[u,h]of c.components.entries())g.push(await v(o,h,{component:h,pageIndex:d,componentIndex:u,componentPath:[]},new Set));f.push(g.some((u,h)=>u!==c.components[h])?{...c,components:g}:c)}return b(o.signal),T(o),I(f.some((d,c)=>d!==t.pages[c])?{...t,pages:f}:t,o.diagnostics,e.diagnosticLimit)}finally{clearTimeout(m),e.signal?.removeEventListener("abort",a)}}exports.OutputAssetError=w;exports.resolvePlanAssets=k;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { y, u as E, I as A, w as D } from "./diagnostic-collector-1sqd7DQP.js";
|
|
2
|
+
import { n as x, O } from "./capabilities-lqDEZSq5.js";
|
|
3
|
+
import { c as M, I } from "./media-Y90dHK9z.js";
|
|
4
|
+
class b extends Error {
|
|
5
|
+
constructor(e, r) {
|
|
6
|
+
super(e.message), this.name = "OutputAssetError", this.diagnostic = e, this.cause = r;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
function p(t) {
|
|
10
|
+
if (t.aborted) throw t.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
11
|
+
}
|
|
12
|
+
function R(t) {
|
|
13
|
+
const e = { maxAssets: 1e3, maxImageBytes: 33554432, maxTotalImageBytes: 134217728, maxDurationMs: 3e4, ...t.assetBudget };
|
|
14
|
+
for (const [r, s] of Object.entries(e))
|
|
15
|
+
if (!Number.isSafeInteger(s) || s <= 0 || s > 2147483647) throw new RangeError(`${r} must be a positive safe integer at most 2147483647.`);
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
function T(t) {
|
|
19
|
+
const e = /^data:image\/[a-z0-9.+-]+(;base64)?,(.*)$/is.exec(t);
|
|
20
|
+
if (!e) throw new TypeError("Asset renderers must return an image data URL.");
|
|
21
|
+
return e[1] ? Math.ceil(e[2].length * 3 / 4) : new TextEncoder().encode(decodeURIComponent(e[2])).byteLength;
|
|
22
|
+
}
|
|
23
|
+
function h(t, e, r, s, i) {
|
|
24
|
+
const n = { code: r, message: s, severity: "warning", format: t.options.format ?? "dom", pageIndex: e.pageIndex, componentIndex: e.componentIndex, componentPath: e.componentPath, kind: e.component.kind, nid: e.component.nid };
|
|
25
|
+
if (t.diagnostics.push(n), x(n, { ...t.options, signal: t.signal }), t.options.assetFailure !== "placeholder") throw new b(n, i);
|
|
26
|
+
}
|
|
27
|
+
async function k(t, e, r) {
|
|
28
|
+
const s = t.options.assetRegistry?.rendererFor(e) ?? t.options.assetRenderers?.[e.kind];
|
|
29
|
+
if (e.imageData || !s) return e.imageData;
|
|
30
|
+
if (++t.rendered > t.budget.maxAssets) return h(t, r, "asset-budget-exceeded", "Output exceeded the asset count budget.");
|
|
31
|
+
let i;
|
|
32
|
+
try {
|
|
33
|
+
if (t.active = r, i = await D(s({ ...r, signal: t.signal }), t.signal), p(t.signal), i.length > t.budget.maxImageBytes * 4 + 1024) return h(t, r, "asset-budget-exceeded", "Output exceeded the image payload byte budget.");
|
|
34
|
+
const n = T(i);
|
|
35
|
+
if (n > t.budget.maxImageBytes || t.bytes + n > t.budget.maxTotalImageBytes) return h(t, r, "asset-budget-exceeded", "Output exceeded the encoded image byte budget.");
|
|
36
|
+
/^data:image\/(png|jpe?g);base64,/i.test(i) && t.inspectImage(i), t.bytes += n;
|
|
37
|
+
} catch (n) {
|
|
38
|
+
if (t.signal.aborted || n instanceof b || n instanceof I && n.code === "image-budget-exceeded") throw n;
|
|
39
|
+
return h(t, r, "asset-render-failed", `Asset renderer failed for ${e.kind}; output was not silently omitted.`, n);
|
|
40
|
+
}
|
|
41
|
+
return i;
|
|
42
|
+
}
|
|
43
|
+
function B(t, e) {
|
|
44
|
+
const r = t.active;
|
|
45
|
+
if (!r) {
|
|
46
|
+
e.abort(new Error("Asset rendering exceeded maxDurationMs."));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const s = { code: "asset-budget-exceeded", message: "Asset rendering exceeded maxDurationMs.", severity: "warning", format: t.options.format ?? "dom", pageIndex: r.pageIndex, componentIndex: r.componentIndex, componentPath: r.componentPath, kind: r.component.kind, nid: r.component.nid };
|
|
50
|
+
t.diagnostics.push(s);
|
|
51
|
+
try {
|
|
52
|
+
x(s, { ...t.options, signal: t.signal });
|
|
53
|
+
} catch (i) {
|
|
54
|
+
e.abort(i);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
e.abort(new b(s));
|
|
58
|
+
}
|
|
59
|
+
async function L(t, e, r, s, i) {
|
|
60
|
+
if (!e?.children?.length) return e;
|
|
61
|
+
const n = [];
|
|
62
|
+
for (const [a, o] of e.children.entries())
|
|
63
|
+
n.push(await v(t, o, { ...r, component: o, componentPath: [...s, a] }, i));
|
|
64
|
+
return n.some((a, o) => a !== e.children[o]) ? { ...e, children: n } : e;
|
|
65
|
+
}
|
|
66
|
+
async function v(t, e, r, s) {
|
|
67
|
+
if (p(t.signal), s.has(e)) throw new TypeError("Cyclic grid children cannot be rendered.");
|
|
68
|
+
let i = t.cache.get(e);
|
|
69
|
+
i || (i = k(t, e, r), t.cache.set(e, i));
|
|
70
|
+
const n = await i;
|
|
71
|
+
p(t.signal);
|
|
72
|
+
let a = e.grid;
|
|
73
|
+
if (a) {
|
|
74
|
+
const o = new Set(s).add(e), m = [];
|
|
75
|
+
for (const [f, d] of a.cells.entries()) {
|
|
76
|
+
if (!d.some((g) => g?.children?.length)) {
|
|
77
|
+
m.push(d);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
const c = [];
|
|
81
|
+
for (const [g, u] of d.entries()) c.push(u?.children?.length ? await L(t, u, r, [...r.componentPath, f, g], o) : u);
|
|
82
|
+
m.push(c.some((g, u) => g !== d[u]) ? c : d);
|
|
83
|
+
}
|
|
84
|
+
m.some((f, d) => f !== a.cells[d]) && (a = { ...a, cells: m });
|
|
85
|
+
}
|
|
86
|
+
return n !== e.imageData || a !== e.grid ? { ...e, imageData: n, grid: a } : e;
|
|
87
|
+
}
|
|
88
|
+
function P(t, e, r) {
|
|
89
|
+
const s = /* @__PURE__ */ new Set(), i = (n) => {
|
|
90
|
+
if (y(r), !s.has(n)) {
|
|
91
|
+
if (s.add(n), n.imageData && /^data:image\/(png|jpe?g);base64,/i.test(n.imageData))
|
|
92
|
+
try {
|
|
93
|
+
e(n.imageData);
|
|
94
|
+
} catch (a) {
|
|
95
|
+
if (!(a instanceof I) || a.code === "image-budget-exceeded") throw a;
|
|
96
|
+
}
|
|
97
|
+
for (const a of n.grid?.cells ?? []) for (const o of a) for (const m of o?.children ?? []) i(m);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
for (const n of t.pages) for (const a of n.components) i(a);
|
|
101
|
+
}
|
|
102
|
+
function C(t) {
|
|
103
|
+
if (t.options.fidelity === "strict" && t.diagnostics.total) throw new O(t.diagnostics.entries, t.options.diagnosticLimit === void 0 ? void 0 : t.diagnostics.snapshot());
|
|
104
|
+
}
|
|
105
|
+
function w(t, e, r) {
|
|
106
|
+
return { plan: t, diagnostics: e.entries, ...r === void 0 ? {} : { diagnosticSummary: e.snapshot() } };
|
|
107
|
+
}
|
|
108
|
+
async function $(t, e = {}) {
|
|
109
|
+
y(e.signal);
|
|
110
|
+
const r = E(e.diagnosticLimit);
|
|
111
|
+
A(t);
|
|
112
|
+
const s = R(e), i = M(e);
|
|
113
|
+
if (P(t, i, e.signal), e.signal?.aborted) throw e.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
114
|
+
const n = new AbortController(), a = () => n.abort(e.signal?.reason);
|
|
115
|
+
if (e.signal?.addEventListener("abort", a, { once: !0 }), !e.assetRegistry && (!e.assetRenderers || !Object.keys(e.assetRenderers).length))
|
|
116
|
+
return e.signal?.removeEventListener("abort", a), w(t, r, e.diagnosticLimit);
|
|
117
|
+
const o = { options: e, signal: n.signal, diagnostics: r, rendered: 0, bytes: 0, budget: s, cache: /* @__PURE__ */ new WeakMap(), inspectImage: i }, m = setTimeout(() => B(o, n), s.maxDurationMs);
|
|
118
|
+
try {
|
|
119
|
+
const f = [];
|
|
120
|
+
for (const [d, c] of t.pages.entries()) {
|
|
121
|
+
if (d < (e.start ?? 0) || d > (e.end ?? t.pages.length - 1)) {
|
|
122
|
+
f.push(c);
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const g = [];
|
|
126
|
+
for (const [u, l] of c.components.entries()) g.push(await v(o, l, { component: l, pageIndex: d, componentIndex: u, componentPath: [] }, /* @__PURE__ */ new Set()));
|
|
127
|
+
f.push(g.some((u, l) => u !== c.components[l]) ? { ...c, components: g } : c);
|
|
128
|
+
}
|
|
129
|
+
return p(o.signal), C(o), w(f.some((d, c) => d !== t.pages[c]) ? { ...t, pages: f } : t, o.diagnostics, e.diagnosticLimit);
|
|
130
|
+
} finally {
|
|
131
|
+
clearTimeout(m), e.signal?.removeEventListener("abort", a);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
b as O,
|
|
136
|
+
$ as r
|
|
137
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as S,
|
|
2
|
-
import { H as I } from "./json-snapshot-
|
|
3
|
-
import { b as W, R as C, v as $, c as N } from "./protocol-
|
|
4
|
-
import {
|
|
5
|
-
import { c as K, e as X } from "./runtime-
|
|
1
|
+
import { s as S, d as j, c as U, a as H } from "./prepared-CVbgO9KR.js";
|
|
2
|
+
import { H as I } from "./json-snapshot-BJWZNryO.js";
|
|
3
|
+
import { b as W, R as C, v as $, c as N } from "./protocol-BOri9qJL.js";
|
|
4
|
+
import { x as G } from "./diagnostic-collector-1sqd7DQP.js";
|
|
5
|
+
import { c as K, e as X } from "./runtime-BpSAgOw1.js";
|
|
6
6
|
import { D as z, R as O, t as R, v as J, c as D, b as M } from "./sha256-BDQ1Qk7A.js";
|
|
7
7
|
class T extends Error {
|
|
8
8
|
constructor(r) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const O=require("./prepared-DAwe8Il2.cjs"),C=require("./json-snapshot-C7QZrRBf.cjs"),P=require("./protocol-DD5dHSz-.cjs"),I=require("./diagnostic-collector-D3rlvxm3.cjs"),W=require("./runtime-Cd2UTnwe.cjs"),l=require("./sha256-DgZAKXqI.cjs");class M extends Error{constructor(r){super("报表 Worker 无法启动"),this.cause=r,this.name="ReportWorkerStartError"}}let j=0;function F(e){const r=new Error("报表 Worker 任务已取消");return r.name="AbortError",Object.defineProperty(r,"cause",{value:e}),r}function U(e,r){if(!e||typeof e!="object")return;const t=e;return t.protocol===P.REPORT_WORKER_PROTOCOL&&t.id===r?t:void 0}function z(e,r={}){const t=r.timeoutMs??12e4;if(!Number.isFinite(t)||t<=0||t>2147483647)throw new RangeError("Worker timeoutMs 应为正有限数字,且不能超过 2147483647");const n=(o,s,a,d)=>a?.aborted?Promise.reject(F(a.reason)):new Promise((v,i)=>{let g;try{g=e()}catch(f){i(new M(f));return}const h=`mach-report-${Date.now()}-${++j}`;let b=!1,p=()=>{},R;const u=(f,c)=>{if(b)return;b=!0,R&&clearTimeout(R);let w;try{p()}catch(y){w=y}a?.removeEventListener("abort",k),f??=w,Promise.resolve().then(()=>g.terminate()).then(()=>f===void 0?v(c):i(f),y=>i(f??y))},k=()=>u(F(a?.reason)),m=f=>{const c=U(f,h);if(!(!c||b)){if("type"in c&&c.type==="event"){const w="event"in c?c.event:void 0;P.validReportWorkerEvent(w,s)?C.notifyReportTaskEvent(d,w,a):u(new Error("报表 Worker 返回无效阶段事件"));return}c.error&&typeof c.error.name=="string"&&typeof c.error.message=="string"?u(new P.ReportWorkerError(c.error)):P.validReportWorkerResult(c.result,o)&&(o==="prepare"||"format"in c.result&&"format"in s&&c.result.format===s.format)?u(void 0,c.result):u(new Error("报表 Worker 返回无效响应"))}};try{if(p=g.subscribe(m,f=>u(f??new Error("报表 Worker 执行失败"))),b){p();return}if(a?.addEventListener("abort",k,{once:!0}),R=setTimeout(()=>u(new P.ReportWorkerError({name:"ReportRuntimeError",code:"timeout",message:`报表 Worker 执行超过 ${t}ms`})),t),a?.aborted)k();else{const{onEvent:f,signal:c,...w}=s,y=N(w);g.postMessage({protocol:P.REPORT_WORKER_PROTOCOL,id:h,operation:o,input:w,...r.budget?{budget:r.budget}:{}},y)}}catch(f){u(f)}});return{exportPrepared:(o,s,a)=>n("exportPrepared",o,s,a),prepare:(o,s,a)=>n("prepare",o,s,a),export:(o,s,a)=>n("export",o,s,a)}}function N(e){return e.pdf?(e.pdf=O.snapshotPdfFonts(e.pdf),(e.pdf?.customFontFaces?Object.values(e.pdf.customFontFaces):[e.pdf?.customFontBytes]).filter(t=>t instanceof Uint8Array).map(t=>t.buffer)):[]}function _(e,r={}){return z(()=>{const t=e();return{postMessage:(n,o)=>t.postMessage(n,o),terminate:()=>t.terminate(),subscribe:(n,o)=>{const s=d=>n(d.data),a=d=>o(d instanceof ErrorEvent?new Error(d.message):new Error("报表 Worker 消息无法解码"));return t.addEventListener("message",s),t.addEventListener("error",a),t.addEventListener("messageerror",a),()=>{t.removeEventListener("message",s),t.removeEventListener("error",a),t.removeEventListener("messageerror",a)}}}},r)}const $={cells:2e4,pages:20,bytes:2e6};function T(e){return e.cells>=e.limits.cells||e.pages>=e.limits.pages||e.bytes>=e.limits.bytes||e.capped}function x(e){return++e.visits>=1e5&&(e.capped=!0),!T(e)}function E(e){return typeof e=="string"?e.length*2:0}function L(e,r){for(const t of e??[]){if(!x(r))return;for(const n of t.segments){if(!x(r))return;r.bytes+=E(n.text)}}}function S(e,r,t){if(t>32){r.capped=!0;return}if(x(r)){r.bytes+=E(e.text)+E(e.rawText)+E(e.imageData),L(e.richParagraphs,r);for(const n of e.lines??[]){if(!x(r))return;r.bytes+=E(n)}for(const n of e.grid?.cells??[]){if(!x(r))return;for(const o of n){if(!x(r))return;if(o){r.cells++,r.bytes+=E(o.text)+E(o.rawText)+E(o.value),L(o.richParagraphs,r);for(const s of o.children??[]){if(T(r))return;S(s,r,t+1)}}}}}}function H(e,r){if(e.format==="xlsx")for(const t of e.xlsx?.additionalSheets??[]){if(!x(r))return;r.bytes+=E(t?.name);for(const n of t?.rows??[]){if(!x(r))return;for(const o of n??[]){if(!x(r))return;r.cells++,r.bytes+=E(o)}}}}function G(e){const r={...$,...e.thresholds};for(const t of Object.values(r))if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("导出隔离阈值应为正安全整数");return r}function K(e,r){const t=G(r),n=e.pdf?.customFontFaces?Object.values(e.pdf.customFontFaces):[e.pdf?.customFontBytes],o={pages:e.prepared.plan.pages.length,cells:0,bytes:n.reduce((d,v)=>d+(v?.byteLength??0),0),visits:0,capped:!1,limits:t};for(const d of e.prepared.plan.pages){if(T(o))break;for(const v of d.components){if(T(o))break;S(v,o,0)}}H(e,o);let s=T(o)?"worker":"local",a=o.capped?"scan-limit":s==="worker"?"threshold":"small-task";return r.mode==="local"&&(s="local",a="explicit-local"),r.mode==="worker"&&(s="worker",a="explicit-worker"),Object.values(e.xlsx??{}).some(d=>typeof d=="function")&&(s="local",a="nonserializable-options"),{mode:s,reason:a,estimate:{pages:o.pages,cells:o.cells,bytes:o.bytes},hardCancellation:s==="worker"}}function X(e){if(e.mode!==void 0&&!["auto","local","worker"].includes(e.mode))throw new TypeError("无效的导出执行模式");if(e.fallback!==void 0&&!["local","error"].includes(e.fallback))throw new TypeError("无效的导出回退策略");l.validateBudget({...e.budget,maxDurationMs:e.timeoutMs??e.budget?.maxDurationMs??12e4})}function A(e,r){I.observeOutput(()=>e.onDecision?.({...r,estimate:{...r.estimate}}))}function B(e,r){return{...e,mode:"local",reason:r,hardCancellation:!1}}function D(e,r,t){l.assertBudget(t,"maxRows",e.stats.rows),l.assertBudget(t,"maxPages",e.stats.pages),l.assertBudget(t,"maxCells",e.stats.cells),l.assertBudget(t,"maxOutputBytes",e.bytes.byteLength),O.assertPreparedOutputBudget({...r,prepared:{...r.prepared,stats:e.stats}},t)}function J(e,r){const t={...l.DEFAULT_REPORT_RUNTIME_BUDGET,...r.budget},n=O.capturePreparedHandoff(e.prepared,t.maxPreparedBytes,e.signal),o={...e,prepared:n.prepared,pdf:O.snapshotPdfFonts(e.pdf),xlsx:O.snapshotXlsxOptions(e.xlsx)};return{request:o,forward:()=>({...o,prepared:n.forward()})}}function Q(e,r){X(e);const t={...e,thresholds:{...e.thresholds},budget:{...l.DEFAULT_REPORT_RUNTIME_BUDGET,...e.budget}},n=t.timeoutMs??t.budget.maxDurationMs??12e4,o=W.createReportRuntime({reports:{},budget:{...t.budget,maxDurationMs:n}}),s=new Set;let a=!1;const d=t.mode!=="worker"&&t.fallback!=="error";async function v(i,g){const h=Date.now(),b=()=>{const m=n-(Date.now()-h);if(m<=0)throw new l.ReportRuntimeError("timeout",`报表执行超过 ${n}ms`);return m};let p=K(i,t);if(p.reason==="nonserializable-options"&&t.mode==="worker")throw new TypeError("Worker 模式不接受函数选项;请使用本地模式或可序列化配置");if(p.mode==="worker"&&!r){if(!d)throw new M(new Error("未配置 workerFactory"));p=B(p,"worker-unavailable")}const R=J(i,t),u=R.request;if(A(t,p),l.throwIfAborted(i.signal),p.mode==="worker")try{const m=r(b());if(!m.exportPrepared)throw new TypeError("隔离执行器缺少 exportPrepared");const{signal:f,onEvent:c,...w}=u,y=await m.exportPrepared(w,f,c);return l.throwIfAborted(f),D(y,u,t.budget),{...y,execution:p}}catch(m){if(!(m instanceof M)||!d)throw m;l.throwIfAborted(i.signal),p=B(p,"worker-start-failed"),A(t,p)}g&&(u.prepared=W.enforcePrepared(u.prepared,t.budget),O.assertPreparedOutputBudget(u,t.budget));const k=g?await l.controlled(i.signal,b(),m=>g({...u,signal:m})):await l.controlled(i.signal,b(),m=>o.exportPrepared({...R.forward(),signal:m}));return l.throwIfAborted(i.signal),D(k,u,t.budget),{...k,execution:p}}return{async exportPrepared(i,g){if(a)throw new l.ReportRuntimeError("closed","导出执行器已释放");if(l.throwIfAborted(i.signal),s.size>=2)throw new l.ReportRuntimeError("queue-full","同时导出的任务已达 2 个,请等待完成后重试");const h=new AbortController;s.add(h);const b=()=>h.abort(i.signal?.reason);i.signal?.addEventListener("abort",b,{once:!0});try{return await v({...i,signal:h.signal},g)}finally{i.signal?.removeEventListener("abort",b),s.delete(h)}},cancel(){for(const i of s)i.abort()},dispose(){a=!0;for(const i of s)i.abort()}}}function q(e={}){const r=e.workerFactory,t={timeoutMs:e.timeoutMs??e.budget?.maxDurationMs,budget:{...e.budget}};return Q(e,r?n=>_(r,{...t,timeoutMs:n}):void 0)}const V=Object.freeze(Object.defineProperty({__proto__:null,createAutoReportExporter:q},Symbol.toStringTag,{value:"Module"}));exports.ReportWorkerStartError=M;exports.auto=V;exports.createAutoReportExporter=q;exports.createBrowserReportExecutor=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./diagnostic-collector-D3rlvxm3.cjs");function D(e,t){c.assertOutputActive(t.signal),c.observeOutput(()=>t.onDiagnostic?.(e)),c.assertOutputActive(t.signal)}class M extends Error{constructor(t,i){super(`Output contains ${i?.total??t.length} known fidelity issue(s): ${t[0]?.code??Object.keys(i?.counts??{})[0]??"unknown"}`),this.diagnostics=t,this.diagnosticSummary=i,this.code="output-fidelity",this.name="OutputFidelityError"}}const C=new Set(["text","rect","line","ellipse"]),k=new Set(["image","chart","barcode","qrcode"]);function $(e,t){if(!e.grid){if(c.isImageBackedComponent(e))return(t==="pdf"||t==="xlsx")&&!/^data:image\/(png|jpe?g);base64,/i.test(e.imageData)?{code:"unsupported-image-format",message:`${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.`}:void 0;if(k.has(e.kind))return{code:"missing-image",message:`${e.kind} requires imageData or a renderer adapter before output.`};if(!C.has(e.kind))return{code:"unsupported-component",message:`Unsupported component kind: ${e.kind}.`};if(t==="xlsx"&&e.kind!=="text")return{code:"unsupported-component",message:`XLSX data export omits ${e.kind} geometry.`}}}function p(e,t,i,n,s){const o=Object.getOwnPropertyDescriptor(e,"meta")?.value,a=o&&Object.getOwnPropertyDescriptor(o,"componentExtension")?.value,u=a&&Object.getOwnPropertyDescriptor(a,"id")?.value,r=a&&Object.getOwnPropertyDescriptor(a,"version")?.value,d=typeof u=="string"&&u.length<=128&&typeof r=="string"&&r.length<=64?{id:u,version:r}:void 0;return{...s,severity:"warning",format:t,pageIndex:i,componentIndex:n,kind:e.kind,nid:e.nid,...d?{extension:d}:{}}}function h(e,t){if(!e||t==="dom")return;const i=[];return e.rotateDeg&&i.push("rotateDeg"),e.opacity!==void 0&&e.opacity!==1&&i.push("opacity"),t!=="xlsx"&&e.align==="justify"&&i.push("justify"),t==="xlsx"&&e.letterSpacing&&i.push("letterSpacing"),i.length?`${t} does not preserve these styles: ${i.join(", ")}.`:void 0}function S(e){if(!e)return;const t=["backgroundColor","align","verticalAlign","lineHeight","borderTop","borderRight","borderBottom","borderLeft","borderColor","lineColor","lineWidthPt"].filter(i=>e[i]!==void 0);return t.length?`XLSX rich text does not retain independent run styles: ${t.join(", ")}.`:void 0}function L(e){if(e.kind!=="text")return;const t=S(e.style);if(e.leftMm||e.topMm||t)return{code:"unsupported-style",message:`Nested XLSX text is retained as rich text in component order; absolute child offsets and independent paragraph styles are not retained.${t?` ${t}`:""}`}}function m(e,t,i,n,s,o){const a=u=>{s.push({...p(e,t,i,n,{code:"unsupported-style",message:u}),componentPath:o})};for(const u of e.richParagraphs??[]){t==="xlsx"&&(u.spaceBeforeMm||u.spaceAfterMm||u.indentMm||u.align||u.lineHeight)&&a("XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained.");const r=h({align:u.align},t);r&&a(r);for(const d of u.segments){const l=h(d.style,t)??(t==="xlsx"?S(d.style):void 0);l&&a(l)}}}function w(e,t,i,n,s,o,a){if(a.has(e))return;const u=new Set(a).add(e),r=$(e,t);r&&o.push({...p(e,t,i,n,r),componentPath:s});const d=h(e.style,t);d&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:d}),componentPath:s}),m(e,t,i,n,o,s),B(e,t,i,n,s,o,u)}function X(e,t,i){if(e.grid)return{code:"nested-components-omitted",message:"XLSX cannot place a nested grid inside a single cell; the nested grid is omitted."};const n=L(e);if(n)return n;if(c.isImageBackedComponent(e)&&(e.leftMm<0||e.topMm<0||e.leftMm+e.widthMm>t+.001||e.topMm+e.heightMm>i+.001))return{code:"unsupported-style",message:"XLSX cannot clip a child image to a cell; it retains the original image dimensions."}}function j(e){let t;return(i,n,s,o)=>{t??=new Map(c.resolveGridLayout(e.grid,e.widthMm,e.heightMm).cells.map(r=>[`${r.ri}:${r.ci}`,r]));const a=t.get(`${n}:${s}`),u=2*(e.grid?.paddingMm??.5);return X(i,(a?.widthMm??0)-u-(o?.indentMm??0),(a?.heightMm??0)-u)}}function B(e,t,i,n,s,o,a){const u=j(e);for(const[r,d]of(e.grid?.cells??[]).entries())for(const[l,g]of d.entries()){g?.dataBar!==void 0&&!c.validDataBar(g.dataBar)&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:"Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors."}),componentPath:[...s,r,l]});const v=h(g?.style,t);v&&o.push({...p(e,t,i,n,{code:"unsupported-style",message:v}),componentPath:[...s,r,l]}),g?.richParagraphs?.length&&m({...e,richParagraphs:g.richParagraphs},t,i,n,o,[...s,r,l]);for(const[E,f]of(g?.children??[]).entries()){const O=[...s,r,l,E];if(t==="xlsx"){const b=u(f,r,l,g);if(b&&o.push({...p(f,t,i,n,b),componentPath:O}),f.grid)continue}w(f,t,i,n,O,o,a)}}}function y(e,t,i){c.assertBoundedRenderTree(e),e.pages.forEach((n,s)=>n.components.forEach((o,a)=>w(o,t,s,a,[],i,new Set)))}function A(e,t){const i=[];return y(e,t,i),i}function G(e,t,i=c.DEFAULT_DIAGNOSTIC_LIMIT){const n=c.createDiagnosticCollector(i);return y(e,t,n),n.snapshot()}function x(e,t,i,n){c.assertOutputActive(i.signal);const s=c.createDiagnosticCollector(i.diagnosticLimit);n?.diagnosticSummary?s.merge(n.diagnosticSummary):n?.diagnostics.forEach(r=>s.push(r));const o=s.entries.length,a=i.diagnosticLimit===void 0?void 0:new Set(s.entries);if(y(e,t,{push:r=>{c.assertOutputActive(i.signal),s.push(r)}}),(a?s.entries.filter(r=>!a.has(r)):s.entries.slice(o)).forEach(r=>D(r,i)),i.fidelity==="strict"&&s.total)throw new M(s.entries,i.diagnosticLimit===void 0?void 0:s.snapshot());return s}function P(e,t,i){return x(e,t,i).entries}exports.OutputFidelityError=M;exports.collectOutputDiagnostics=x;exports.inspectOutputCapabilities=A;exports.inspectOutputCapabilitiesSummary=G;exports.notifyOutputDiagnostic=D;exports.reportOutputDiagnostics=P;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { y as f, x as E, E as k, u as M, I as $, i as O, A as L, r as C } from "./diagnostic-collector-1sqd7DQP.js";
|
|
2
|
+
function X(e, t) {
|
|
3
|
+
f(t.signal), E(() => t.onDiagnostic?.(e)), f(t.signal);
|
|
4
|
+
}
|
|
5
|
+
class j extends Error {
|
|
6
|
+
constructor(t, i) {
|
|
7
|
+
super(`Output contains ${i?.total ?? t.length} known fidelity issue(s): ${t[0]?.code ?? Object.keys(i?.counts ?? {})[0] ?? "unknown"}`), this.diagnostics = t, this.diagnosticSummary = i, this.code = "output-fidelity", this.name = "OutputFidelityError";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const B = /* @__PURE__ */ new Set(["text", "rect", "line", "ellipse"]), G = /* @__PURE__ */ new Set(["image", "chart", "barcode", "qrcode"]);
|
|
11
|
+
function P(e, t) {
|
|
12
|
+
if (!e.grid) {
|
|
13
|
+
if (O(e))
|
|
14
|
+
return (t === "pdf" || t === "xlsx") && !/^data:image\/(png|jpe?g);base64,/i.test(e.imageData) ? { code: "unsupported-image-format", message: `${t.toUpperCase()} accepts PNG or JPEG data URLs; convert this image before exporting.` } : void 0;
|
|
15
|
+
if (G.has(e.kind)) return { code: "missing-image", message: `${e.kind} requires imageData or a renderer adapter before output.` };
|
|
16
|
+
if (!B.has(e.kind)) return { code: "unsupported-component", message: `Unsupported component kind: ${e.kind}.` };
|
|
17
|
+
if (t === "xlsx" && e.kind !== "text") return { code: "unsupported-component", message: `XLSX data export omits ${e.kind} geometry.` };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function g(e, t, i, n, s) {
|
|
21
|
+
const o = Object.getOwnPropertyDescriptor(e, "meta")?.value, a = o && Object.getOwnPropertyDescriptor(o, "componentExtension")?.value, u = a && Object.getOwnPropertyDescriptor(a, "id")?.value, r = a && Object.getOwnPropertyDescriptor(a, "version")?.value, d = typeof u == "string" && u.length <= 128 && typeof r == "string" && r.length <= 64 ? { id: u, version: r } : void 0;
|
|
22
|
+
return { ...s, severity: "warning", format: t, pageIndex: i, componentIndex: n, kind: e.kind, nid: e.nid, ...d ? { extension: d } : {} };
|
|
23
|
+
}
|
|
24
|
+
function h(e, t) {
|
|
25
|
+
if (!e || t === "dom") return;
|
|
26
|
+
const i = [];
|
|
27
|
+
return e.rotateDeg && i.push("rotateDeg"), e.opacity !== void 0 && e.opacity !== 1 && i.push("opacity"), t !== "xlsx" && e.align === "justify" && i.push("justify"), t === "xlsx" && e.letterSpacing && i.push("letterSpacing"), i.length ? `${t} does not preserve these styles: ${i.join(", ")}.` : void 0;
|
|
28
|
+
}
|
|
29
|
+
function S(e) {
|
|
30
|
+
if (!e) return;
|
|
31
|
+
const t = ["backgroundColor", "align", "verticalAlign", "lineHeight", "borderTop", "borderRight", "borderBottom", "borderLeft", "borderColor", "lineColor", "lineWidthPt"].filter((i) => e[i] !== void 0);
|
|
32
|
+
return t.length ? `XLSX rich text does not retain independent run styles: ${t.join(", ")}.` : void 0;
|
|
33
|
+
}
|
|
34
|
+
function A(e) {
|
|
35
|
+
if (e.kind !== "text") return;
|
|
36
|
+
const t = S(e.style);
|
|
37
|
+
if (e.leftMm || e.topMm || t) return { code: "unsupported-style", message: `Nested XLSX text is retained as rich text in component order; absolute child offsets and independent paragraph styles are not retained.${t ? ` ${t}` : ""}` };
|
|
38
|
+
}
|
|
39
|
+
function w(e, t, i, n, s, o) {
|
|
40
|
+
const a = (u) => {
|
|
41
|
+
s.push({ ...g(e, t, i, n, { code: "unsupported-style", message: u }), componentPath: o });
|
|
42
|
+
};
|
|
43
|
+
for (const u of e.richParagraphs ?? []) {
|
|
44
|
+
t === "xlsx" && (u.spaceBeforeMm || u.spaceAfterMm || u.indentMm || u.align || u.lineHeight) && a("XLSX rich text preserves fonts and paragraph newlines; paragraph spacing, indentation and alignment are not retained.");
|
|
45
|
+
const r = h({ align: u.align }, t);
|
|
46
|
+
r && a(r);
|
|
47
|
+
for (const d of u.segments) {
|
|
48
|
+
const c = h(d.style, t) ?? (t === "xlsx" ? S(d.style) : void 0);
|
|
49
|
+
c && a(c);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function D(e, t, i, n, s, o, a) {
|
|
54
|
+
if (a.has(e)) return;
|
|
55
|
+
const u = new Set(a).add(e), r = P(e, t);
|
|
56
|
+
r && o.push({ ...g(e, t, i, n, r), componentPath: s });
|
|
57
|
+
const d = h(e.style, t);
|
|
58
|
+
d && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: d }), componentPath: s }), w(e, t, i, n, o, s), N(e, t, i, n, s, o, u);
|
|
59
|
+
}
|
|
60
|
+
function R(e, t, i) {
|
|
61
|
+
if (e.grid) return { code: "nested-components-omitted", message: "XLSX cannot place a nested grid inside a single cell; the nested grid is omitted." };
|
|
62
|
+
const n = A(e);
|
|
63
|
+
if (n) return n;
|
|
64
|
+
if (O(e) && (e.leftMm < 0 || e.topMm < 0 || e.leftMm + e.widthMm > t + 1e-3 || e.topMm + e.heightMm > i + 1e-3)) return { code: "unsupported-style", message: "XLSX cannot clip a child image to a cell; it retains the original image dimensions." };
|
|
65
|
+
}
|
|
66
|
+
function T(e) {
|
|
67
|
+
let t;
|
|
68
|
+
return (i, n, s, o) => {
|
|
69
|
+
t ??= new Map(C(e.grid, e.widthMm, e.heightMm).cells.map((r) => [`${r.ri}:${r.ci}`, r]));
|
|
70
|
+
const a = t.get(`${n}:${s}`), u = 2 * (e.grid?.paddingMm ?? 0.5);
|
|
71
|
+
return R(i, (a?.widthMm ?? 0) - u - (o?.indentMm ?? 0), (a?.heightMm ?? 0) - u);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function N(e, t, i, n, s, o, a) {
|
|
75
|
+
const u = T(e);
|
|
76
|
+
for (const [r, d] of (e.grid?.cells ?? []).entries()) for (const [c, l] of d.entries()) {
|
|
77
|
+
l?.dataBar !== void 0 && !L(l.dataBar) && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: "Invalid resolved data-bar geometry or color; visual data bars require ordered 0–1 ratios and #RRGGBB colors." }), componentPath: [...s, r, c] });
|
|
78
|
+
const v = h(l?.style, t);
|
|
79
|
+
v && o.push({ ...g(e, t, i, n, { code: "unsupported-style", message: v }), componentPath: [...s, r, c] }), l?.richParagraphs?.length && w({ ...e, richParagraphs: l.richParagraphs }, t, i, n, o, [...s, r, c]);
|
|
80
|
+
for (const [m, p] of (l?.children ?? []).entries()) {
|
|
81
|
+
const b = [...s, r, c, m];
|
|
82
|
+
if (t === "xlsx") {
|
|
83
|
+
const x = u(p, r, c, l);
|
|
84
|
+
if (x && o.push({ ...g(p, t, i, n, x), componentPath: b }), p.grid) continue;
|
|
85
|
+
}
|
|
86
|
+
D(p, t, i, n, b, o, a);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function y(e, t, i) {
|
|
91
|
+
$(e), e.pages.forEach((n, s) => n.components.forEach((o, a) => D(o, t, s, a, [], i, /* @__PURE__ */ new Set())));
|
|
92
|
+
}
|
|
93
|
+
function _(e, t) {
|
|
94
|
+
const i = [];
|
|
95
|
+
return y(e, t, i), i;
|
|
96
|
+
}
|
|
97
|
+
function q(e, t, i = k) {
|
|
98
|
+
const n = M(i);
|
|
99
|
+
return y(e, t, n), n.snapshot();
|
|
100
|
+
}
|
|
101
|
+
function I(e, t, i, n) {
|
|
102
|
+
f(i.signal);
|
|
103
|
+
const s = M(i.diagnosticLimit);
|
|
104
|
+
n?.diagnosticSummary ? s.merge(n.diagnosticSummary) : n?.diagnostics.forEach((r) => s.push(r));
|
|
105
|
+
const o = s.entries.length, a = i.diagnosticLimit === void 0 ? void 0 : new Set(s.entries);
|
|
106
|
+
if (y(e, t, { push: (r) => {
|
|
107
|
+
f(i.signal), s.push(r);
|
|
108
|
+
} }), (a ? s.entries.filter((r) => !a.has(r)) : s.entries.slice(o)).forEach((r) => X(r, i)), i.fidelity === "strict" && s.total) throw new j(s.entries, i.diagnosticLimit === void 0 ? void 0 : s.snapshot());
|
|
109
|
+
return s;
|
|
110
|
+
}
|
|
111
|
+
function F(e, t, i) {
|
|
112
|
+
return I(e, t, i).entries;
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
j as O,
|
|
116
|
+
q as a,
|
|
117
|
+
I as c,
|
|
118
|
+
_ as i,
|
|
119
|
+
X as n,
|
|
120
|
+
F as r
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("./diagnostic-collector-D3rlvxm3.cjs");function i(t,r,c,o){if(!d.validDataBar(t)||t.start===t.end)return;const a=Math.max(0,r-2*o);return{x:o+a*t.start,y:o,width:a*(t.end-t.start),height:Math.max(0,c-2*o),color:t.color}}exports.dataBarBox=i;
|