@eigenpal/docx-editor-core 1.3.3 → 1.5.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/dist/agent/index.d.mts +7 -6
- package/dist/agent/index.d.ts +7 -6
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2LVK7EF5.mjs +2 -0
- package/dist/chunk-3HENAL6V.mjs +2 -0
- package/dist/{chunk-BUEMXRXH.js → chunk-3SJQRYO7.js} +1 -1
- package/dist/chunk-4JPHW7ZI.js +2 -0
- package/dist/chunk-4RQAAKQI.mjs +1 -0
- package/dist/{chunk-OF373DBR.mjs → chunk-5HA66FH4.mjs} +1 -1
- package/dist/chunk-5WINQXA3.js +1 -0
- package/dist/{chunk-3QPKTG2Y.js → chunk-6KM4VW4L.js} +2 -2
- package/dist/chunk-AA6D2C6R.js +4 -0
- package/dist/{chunk-7CZEZ3UL.mjs → chunk-AMJNIGO2.mjs} +1 -1
- package/dist/chunk-BTSL4AYY.js +1 -0
- package/dist/{chunk-GE2GV2AX.mjs → chunk-CBKJOPOW.mjs} +1 -1
- package/dist/chunk-CDBKFBC2.mjs +15 -0
- package/dist/chunk-COV4LHQ7.js +1 -0
- package/dist/chunk-DZ3FN3JI.js +2 -0
- package/dist/chunk-ENIWJBS7.mjs +2 -0
- package/dist/{chunk-55XWETY4.mjs → chunk-EZNVVB63.mjs} +1 -1
- package/dist/{chunk-CHN26LLL.mjs → chunk-F24WZXN4.mjs} +1 -1
- package/dist/{chunk-LIW3H4WB.js → chunk-GB7RICH6.js} +1 -1
- package/dist/{chunk-CZSAC65M.js → chunk-GFM6PERG.js} +1 -1
- package/dist/chunk-GKAXYZCE.mjs +1 -0
- package/dist/chunk-H57LNDBH.js +1 -0
- package/dist/chunk-IGYHDSM7.mjs +1 -0
- package/dist/{chunk-BH3ACQ3M.js → chunk-JQUIUKRO.js} +3 -3
- package/dist/chunk-L6ZRNW7Y.mjs +1 -0
- package/dist/{chunk-Q4IEATDJ.js → chunk-LJ2TB6CY.js} +1 -1
- package/dist/{chunk-DFUWJHKF.mjs → chunk-M3UL6EUU.mjs} +3 -3
- package/dist/chunk-M7KTKPGO.mjs +1 -0
- package/dist/chunk-MA3HLGFO.js +1 -0
- package/dist/chunk-ND33YQGU.js +1 -0
- package/dist/{chunk-KXVCCT2A.js → chunk-NPFFCPZ6.js} +1 -1
- package/dist/chunk-NTBZRITU.mjs +1 -0
- package/dist/{chunk-SCK6ZM5V.js → chunk-O2643IUW.js} +1 -1
- package/dist/chunk-P7HWOJC5.js +2 -0
- package/dist/{chunk-YNUPP7UG.mjs → chunk-PYDX4MOT.mjs} +2 -2
- package/dist/{chunk-CHTIWTHQ.mjs → chunk-QUM4DFRE.mjs} +1 -1
- package/dist/chunk-QVRMX2AC.js +15 -0
- package/dist/chunk-QXSDGNJ4.js +1 -0
- package/dist/{chunk-FYRJTDC4.mjs → chunk-QZPVZY6S.mjs} +1 -1
- package/dist/chunk-RT52EYG3.mjs +4 -0
- package/dist/chunk-SHYNWAW6.mjs +1 -0
- package/dist/chunk-SKBHY5MK.mjs +1 -0
- package/dist/chunk-SNTAAXXA.mjs +1 -0
- package/dist/chunk-T4O4PFJD.mjs +1 -0
- package/dist/chunk-TAQTZAVZ.js +1 -0
- package/dist/{chunk-2SGJZYQF.js → chunk-TDYWEVAE.js} +1 -1
- package/dist/{chunk-OPSOGVSU.js → chunk-TV6JLFY5.js} +1 -1
- package/dist/chunk-UKMKGIME.js +1 -0
- package/dist/chunk-UXPY65AC.js +1 -0
- package/dist/chunk-VDKSZ5BQ.mjs +1 -0
- package/dist/chunk-VJFIAFZ5.mjs +1 -0
- package/dist/chunk-WQRWRWSK.js +1 -0
- package/dist/chunk-WWVIVYX6.mjs +1 -0
- package/dist/chunk-WXSGCEBZ.js +1 -0
- package/dist/{chunk-C52D36FA.mjs → chunk-WYFK4QOF.mjs} +1 -1
- package/dist/chunk-X6AICTHN.js +1 -0
- package/dist/chunk-YHXVNJK5.mjs +1 -0
- package/dist/{chunk-J3YFJDZD.js → chunk-ZETEPB7I.js} +1 -1
- package/dist/{colorResolver-8A-qj-LP.d.ts → colorResolver-C696sd9x.d.ts} +1 -1
- package/dist/{colorResolver-BCvxTlLF.d.mts → colorResolver-DCBfI4ld.d.mts} +1 -1
- package/dist/{content-3xF4WDE8.d.mts → content-BlWiORm-.d.mts} +3 -147
- package/dist/{content-C8fc_tL6.d.ts → content-eG_Rtl0l.d.ts} +3 -147
- package/dist/{contentControlValues-DGDKD589.d.ts → contentControlValues-CO7pUqOf.d.ts} +1 -1
- package/dist/{contentControlValues-DjWvoJQ-.d.mts → contentControlValues-DfYN9BZ8.d.mts} +1 -1
- package/dist/core-plugins.d.mts +4 -3
- package/dist/core-plugins.d.ts +4 -3
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +11 -10
- package/dist/core.d.ts +11 -10
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-qR0VR2s0.d.mts → documentStyles-1G0xTl1v.d.mts} +1 -1
- package/dist/{documentStyles-C7k_8Sye.d.ts → documentStyles-Bw98BwEy.d.ts} +1 -1
- package/dist/docx/index.d.mts +7 -67
- package/dist/docx/index.d.ts +7 -67
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +4 -3
- package/dist/docx/parser.d.ts +4 -3
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +4 -3
- package/dist/docx/rezip.d.ts +4 -3
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +5 -4
- package/dist/docx/serializer/index.d.ts +5 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/editor/index.d.mts +4 -3
- package/dist/editor/index.d.ts +4 -3
- package/dist/editor/index.js +1 -1
- package/dist/editor/index.mjs +1 -1
- package/dist/{fontLoader-CUS1BPv7.d.mts → fontLoader-3MFD_Hj2.d.mts} +48 -5
- package/dist/{fontLoader-Dl9SEKex.d.ts → fontLoader-C6VvBUVB.d.ts} +48 -5
- package/dist/{formatting-BH4hcZiq.d.mts → formatting-DFtuRFQY.d.mts} +13 -0
- package/dist/{formatting-_OXU8gLB.d.ts → formatting-JhqWT_XM.d.ts} +13 -0
- package/dist/{headerFooterLayout-CU6hvszp.d.mts → headerFooterLayout-DJb-dV7X.d.mts} +2 -2
- package/dist/{headerFooterLayout-AtAOhM8E.d.ts → headerFooterLayout-bdHWlU6g.d.ts} +2 -2
- package/dist/headless.d.mts +9 -8
- package/dist/headless.d.ts +9 -8
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +5 -4
- package/dist/layout-bridge/index.d.ts +5 -4
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +3 -2
- package/dist/layout-bridge/measuring/index.d.ts +3 -2
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +4 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +4 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +4 -3
- package/dist/layout-engine/index.d.ts +4 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +21 -9
- package/dist/layout-engine/types.d.ts +21 -9
- package/dist/layout-painter/index.d.mts +5 -4
- package/dist/layout-painter/index.d.ts +5 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +5 -4
- package/dist/layout-painter/renderPage.d.ts +5 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/lists-Bn29SzeS.d.ts +148 -0
- package/dist/lists-CyGxd5Y2.d.mts +148 -0
- package/dist/managers/AutoSaveManager.d.mts +4 -3
- package/dist/managers/AutoSaveManager.d.ts +4 -3
- package/dist/managers/TableSelectionManager.d.mts +4 -3
- package/dist/managers/TableSelectionManager.d.ts +4 -3
- package/dist/managers/types.d.mts +4 -3
- package/dist/managers/types.d.ts +4 -3
- package/dist/{marks-BY573yZn.d.mts → marks-CzrbFi4o.d.mts} +1 -1
- package/dist/{marks-CjC9tF5k.d.ts → marks-Dq1QsxKA.d.ts} +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +4 -3
- package/dist/mcp.d.ts +4 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +7 -7
- package/dist/{nodes-75Q9GBxV.d.ts → nodes-BJef4KFW.d.ts} +17 -2
- package/dist/{nodes-cEI7hVY2.d.mts → nodes-RfTS-NSv.d.mts} +17 -2
- package/dist/numberingParser-ZSQ3SDCV.d.ts +81 -0
- package/dist/numberingParser-nSPZlzKr.d.mts +81 -0
- package/dist/prosemirror/applyFormatting.d.mts +5 -2
- package/dist/prosemirror/applyFormatting.d.ts +5 -2
- package/dist/prosemirror/applyFormatting.js +1 -1
- package/dist/prosemirror/applyFormatting.mjs +1 -1
- package/dist/prosemirror/cellDragSelection.d.mts +46 -0
- package/dist/prosemirror/cellDragSelection.d.ts +46 -0
- package/dist/prosemirror/cellDragSelection.js +1 -0
- package/dist/prosemirror/cellDragSelection.mjs +1 -0
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +32 -3
- package/dist/prosemirror/commands/index.d.ts +32 -3
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +11 -1
- package/dist/prosemirror/commands/paragraph.d.ts +11 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/commentIdAllocator.d.mts +3 -2
- package/dist/prosemirror/commentIdAllocator.d.ts +3 -2
- package/dist/prosemirror/commentOps.d.mts +3 -2
- package/dist/prosemirror/commentOps.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +4 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +4 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +4 -3
- package/dist/prosemirror/conversion/index.d.ts +4 -3
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +13 -0
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
- package/dist/prosemirror/imageCommit.d.mts +18 -1
- package/dist/prosemirror/imageCommit.d.ts +18 -1
- package/dist/prosemirror/imageCommit.js +1 -1
- package/dist/prosemirror/imageCommit.mjs +1 -1
- package/dist/prosemirror/index.d.mts +20 -10
- package/dist/prosemirror/index.d.ts +20 -10
- package/dist/prosemirror/index.js +3 -3
- package/dist/prosemirror/index.mjs +3 -3
- package/dist/prosemirror/plugins/index.d.mts +5 -4
- package/dist/prosemirror/plugins/index.d.ts +5 -4
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/queries.d.mts +45 -3
- package/dist/prosemirror/queries.d.ts +45 -3
- package/dist/prosemirror/queries.js +2 -2
- package/dist/prosemirror/queries.mjs +2 -2
- package/dist/prosemirror/schema/index.d.mts +5 -4
- package/dist/prosemirror/schema/index.d.ts +5 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/tableResize.js +1 -1
- package/dist/prosemirror/tableResize.mjs +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +3 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +3 -2
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
- package/dist/{sectionPropertiesSerializer-D86QlzlT.d.mts → sectionPropertiesSerializer-C8XCmzE4.d.mts} +1 -1
- package/dist/{sectionPropertiesSerializer-uXyGONxu.d.ts → sectionPropertiesSerializer-S8J1V9mb.d.ts} +1 -1
- package/dist/{selectionContext-BPAqgNgk.d.ts → selectionContext-BJZZW1JA.d.ts} +1 -1
- package/dist/{selectionContext-CoZat7QZ.d.mts → selectionContext-BjMyVQZO.d.mts} +1 -1
- package/dist/{styles-BOJ93SAm.d.mts → styles-Dqec8Aw6.d.mts} +1 -1
- package/dist/{styles-BWqX2AS-.d.ts → styles-gEujs7j6.d.ts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +3 -2
- package/dist/types/content.d.ts +3 -2
- package/dist/types/document.d.mts +7 -5
- package/dist/types/document.d.ts +7 -5
- package/dist/utils/comments.d.mts +3 -2
- package/dist/utils/comments.d.ts +3 -2
- package/dist/utils/index.d.mts +6 -5
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/{variableDetector-CaY-sDau.d.mts → variableDetector-CN9_pUR_.d.mts} +1 -1
- package/dist/{variableDetector-1mxzPfs2.d.ts → variableDetector-o4Rb2Csy.d.ts} +1 -1
- package/package.json +9 -1
- package/dist/chunk-2WGTGBBS.js +0 -2
- package/dist/chunk-3G44SFHX.mjs +0 -4
- package/dist/chunk-4MYKVWNF.js +0 -1
- package/dist/chunk-7KMTWDPE.mjs +0 -1
- package/dist/chunk-7LRR7RKE.mjs +0 -15
- package/dist/chunk-CRMZH7U7.mjs +0 -2
- package/dist/chunk-D3PRIF3Y.mjs +0 -1
- package/dist/chunk-ESCPS4AO.mjs +0 -1
- package/dist/chunk-EUZLYQRB.mjs +0 -1
- package/dist/chunk-EV4LVK4X.js +0 -1
- package/dist/chunk-FW23IMBF.mjs +0 -1
- package/dist/chunk-HKN2NKOG.mjs +0 -1
- package/dist/chunk-INDYZOOS.js +0 -1
- package/dist/chunk-IUJCUITW.mjs +0 -1
- package/dist/chunk-IYKBX24M.js +0 -1
- package/dist/chunk-JHTURDPX.mjs +0 -1
- package/dist/chunk-L5NPEM7C.js +0 -1
- package/dist/chunk-LERLET2D.js +0 -4
- package/dist/chunk-LX35TFGF.mjs +0 -1
- package/dist/chunk-MNOHUTKE.js +0 -15
- package/dist/chunk-NAFMAKLK.js +0 -2
- package/dist/chunk-OTHV7YV2.js +0 -2
- package/dist/chunk-QAJSNLJR.mjs +0 -1
- package/dist/chunk-RSU4HTC6.js +0 -1
- package/dist/chunk-TUIEV7Q7.js +0 -1
- package/dist/chunk-U67MWOPZ.mjs +0 -1
- package/dist/chunk-UE2ZKRYB.mjs +0 -2
- package/dist/chunk-WVERBZZU.js +0 -1
- package/dist/chunk-WWNOXNEX.mjs +0 -2
- package/dist/chunk-XLB6AC5Q.js +0 -1
- package/dist/chunk-YPQACU4A.js +0 -1
- package/dist/chunk-YWM2QH36.js +0 -1
- package/dist/chunk-ZX26QZJ5.mjs +0 -1
package/dist/chunk-LERLET2D.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkSCK6ZM5V_js=require('./chunk-SCK6ZM5V.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js');var He={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},J={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ge={name:"Office Theme",colorScheme:He,fontScheme:J},gt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function ht(e){if(!e)return null;switch(chunk3R7QHNI5_js.d(e.name||"")){case "srgbClr":return chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val")??null;case "sysClr":{let n=chunk3R7QHNI5_js.j(e,"a","lastClr")??chunk3R7QHNI5_js.j(e,null,"lastClr");if(n)return n;switch(chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val")){case "windowText":case "menuText":case "captionText":case "btnText":return "000000";case "window":case "menu":case "btnFace":case "btnHighlight":return "FFFFFF";case "highlight":return "0078D7";case "highlightText":return "FFFFFF";case "grayText":return "808080";default:return null}}case "schemeClr":{chunk3R7QHNI5_js.j(e,"a","val")??chunk3R7QHNI5_js.j(e,null,"val");return null}default:return null}}function wt(e){let t={...He};if(!e)return t;for(let n of gt){let o=chunk3R7QHNI5_js.e(e,"a",n);if(o){let r=chunk3R7QHNI5_js.i(o);if(r.length>0){let a=ht(r[0]);a&&(t[n]=a);}}}return t}function Ne(e){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","latin");n&&(t.latin=chunk3R7QHNI5_js.j(n,"a","typeface")??chunk3R7QHNI5_js.j(n,null,"typeface")??"");let o=chunk3R7QHNI5_js.e(e,"a","ea");o&&(t.ea=chunk3R7QHNI5_js.j(o,"a","typeface")??chunk3R7QHNI5_js.j(o,null,"typeface")??"");let r=chunk3R7QHNI5_js.e(e,"a","cs");r&&(t.cs=chunk3R7QHNI5_js.j(r,"a","typeface")??chunk3R7QHNI5_js.j(r,null,"typeface")??"");let a=chunk3R7QHNI5_js.f(e,"a","font");for(let u of a){let l=chunk3R7QHNI5_js.j(u,"a","script")??chunk3R7QHNI5_js.j(u,null,"script"),f=chunk3R7QHNI5_js.j(u,"a","typeface")??chunk3R7QHNI5_js.j(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function yt(e){let t={...J};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"a","majorFont");n&&(t.majorFont=Ne(n));let o=chunk3R7QHNI5_js.e(e,"a","minorFont");return o&&(t.minorFont=Ne(o)),t}function In(e){if(!e)return {...ge};try{let t=chunk3R7QHNI5_js.c(e);if(!t)return {...ge};let n=chunk3R7QHNI5_js.j(t,"a","name")??chunk3R7QHNI5_js.j(t,null,"name")??"Office Theme",o=chunk3R7QHNI5_js.e(t,"a","themeElements"),r=chunk3R7QHNI5_js.e(o,"a","clrScheme"),a=wt(r),u=chunk3R7QHNI5_js.e(o,"a","fontScheme"),l=yt(u);return {name:n,colorScheme:a,fontScheme:l}}catch(t){return console.warn("Failed to parse theme:",t),{...ge}}}function bt(e,t="latin"){if(!e?.fontScheme?.majorFont)return J.majorFont?.latin??"Calibri Light";let n=e.fontScheme.majorFont;return t==="latin"?n.latin||"Calibri Light":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri Light"}function Ae(e,t="latin"){if(!e?.fontScheme?.minorFont)return J.minorFont?.latin??"Calibri";let n=e.fontScheme.minorFont;return t==="latin"?n.latin||"Calibri":t==="ea"?n.ea||"":t==="cs"?n.cs||"":n.fonts?.[t]?n.fonts[t]:n.latin||"Calibri"}function $(e,t){if(!t)return "Calibri";let n=t.toLowerCase().includes("major"),o=t.toLowerCase().includes("minor"),r="latin",a=t.toLowerCase();return a.includes("eastasia")?r="ea":(a.includes("bidi")||a.includes("cs"))&&(r="cs"),n?bt(e,r):o?Ae(e,r):Ae(e,"latin")}function Ie(e){if(!e)return;let t=chunk3R7QHNI5_js.l(e,"w","w")??0,n=chunk3R7QHNI5_js.j(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function O(e){return Ie(e)}function V(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0}}function ee(e){return V(e)}function W(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade");(u||l||f||c)&&(o.color={rgb:u??void 0,themeColor:l,themeTint:f??void 0,themeShade:c??void 0});let p=chunk3R7QHNI5_js.j(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let d=chunk3R7QHNI5_js.j(e,"w","frame");return (d==="1"||d==="true")&&(o.frame=true),o}function te(e){if(!e)return;let t={},n=W(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=W(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=W(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=W(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));a&&(t.right=a);let u=W(chunk3R7QHNI5_js.e(e,"w","insideH"));u&&(t.insideH=u);let l=W(chunk3R7QHNI5_js.e(e,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","top"));n&&(t.top=n);let o=O(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(t.bottom=o);let r=O(chunk3R7QHNI5_js.e(e,"w","left")??chunk3R7QHNI5_js.e(e,"w","start"));r&&(t.left=r);let a=O(chunk3R7QHNI5_js.e(e,"w","right")??chunk3R7QHNI5_js.e(e,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function oe(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=chunk3R7QHNI5_js.j(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=chunk3R7QHNI5_js.j(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=chunk3R7QHNI5_js.j(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=chunk3R7QHNI5_js.j(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function he(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=chunk3R7QHNI5_js.j(e,"w","val");if(f){let c=parseInt(f,16);isNaN(c)||(c&32&&(t.firstRow=true),c&64&&(t.lastRow=true),c&128&&(t.firstColumn=true),c&256&&(t.lastColumn=true),c&512&&(t.noHBand=true),c&1024&&(t.noVBand=true));}if(Object.keys(t).length!==0)return t}function we(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=chunk3R7QHNI5_js.j(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=chunk3R7QHNI5_js.l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=chunk3R7QHNI5_js.j(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=chunk3R7QHNI5_js.l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l=chunk3R7QHNI5_js.j(e,"w","tblpYSpec");l&&(t.tblpYSpec=l);let f=chunk3R7QHNI5_js.l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=chunk3R7QHNI5_js.l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=chunk3R7QHNI5_js.l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let d=chunk3R7QHNI5_js.l(e,"w","rightFromText");if(d!==void 0&&(t.rightFromText=d),Object.keys(t).length!==0)return t}function Tt(e){return e.columnWidths&&e.columnWidths.length>0?e.columnWidths.length:e.rows.length===0?0:e.rows[0].cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function Ct(e){return e.rows.length}function Ft(e){return e.formatting?.vMerge==="continue"}function xt(e){return e.formatting?.vMerge==="restart"}function kt(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}var St={richText:"richText",text:"plainText",date:"date",dropDownList:"dropDownList",comboBox:"comboBox",picture:"picture",docPartObj:"buildingBlockGallery",docPartList:"buildingBlockGallery",group:"group",equation:"equation",citation:"citation",bibliography:"bibliography",checkbox:"checkbox"};function Mt(e){if(!e||!e.elements)return "richText";for(let t of e.elements){if(t.type!=="element"||!t.name)continue;let n=chunk3R7QHNI5_js.d(t.name),o=St[n];if(o)return o}return "richText"}function Rt(e){let t=[];for(let n of e.elements??[])n.type==="element"&&chunk3R7QHNI5_js.d(n.name||"")==="listItem"&&t.push({displayText:chunk3R7QHNI5_js.j(n,"w","displayText")||"",value:chunk3R7QHNI5_js.j(n,"w","value")||""});return t}function re(e,t){let n={sdtType:Mt(e)};if(e){n.rawPropertiesXml=chunk3R7QHNI5_js.b(e);for(let o of e.elements??[]){if(o.type!=="element"||!o.name)continue;switch(chunk3R7QHNI5_js.d(o.name)){case "id":{let a=chunk3R7QHNI5_js.j(o,"w","val");if(a!=null){let u=parseInt(a,10);Number.isNaN(u)||(n.id=u);}break}case "alias":n.alias=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "tag":n.tag=chunk3R7QHNI5_js.j(o,"w","val")??void 0;break;case "lock":n.lock=chunk3R7QHNI5_js.j(o,"w","val")??"unlocked";break;case "placeholder":{let a=chunk3R7QHNI5_js.e(o,"w","docPart");a&&(n.placeholder=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "showingPlcHdr":{let a=chunk3R7QHNI5_js.j(o,"w","val");n.showingPlaceholder=a==null||!/^(0|false|off)$/i.test(a);break}case "date":{let a=chunk3R7QHNI5_js.e(o,"w","dateFormat");a&&(n.dateFormat=chunk3R7QHNI5_js.j(a,"w","val")??void 0);break}case "dropDownList":case "comboBox":n.listItems=Rt(o);break;case "checkbox":{let a=chunk3R7QHNI5_js.e(o,"w14","checked")??chunk3R7QHNI5_js.e(o,"w","checked");n.checked=a?chunk3R7QHNI5_js.j(a,"w14","val")==="1"||chunk3R7QHNI5_js.j(a,"w","val")==="1":false;break}case "dataBinding":{let a={},u=chunk3R7QHNI5_js.j(o,"w","xpath"),l=chunk3R7QHNI5_js.j(o,"w","storeItemID"),f=chunk3R7QHNI5_js.j(o,"w","prefixMappings");u!=null&&(a.xpath=u),l!=null&&(a.storeItemID=l),f!=null&&(a.prefixMappings=f),n.dataBinding=a;break}}}}return t&&(n.rawEndPropertiesXml=chunk3R7QHNI5_js.b(t)),n}var Le={183:"\u2022",111:"\u25CB",167:"\u25A0",252:"\u2713",110:"\u25A0",113:"\u25CB",117:"\u25C6",118:"\u2756",168:"\u2713",251:"\u2713",254:"\u2713",61623:"\u2022",61550:"\u25A0",61551:"\u25CB",61607:"\u25A0",61692:"\u2713",8226:"\u2022",9679:"\u25CF",9675:"\u25CB",9632:"\u25A0",9633:"\u25A1",9670:"\u25C6",9671:"\u25C7",8211:"\u2013",8212:"\u2014",62:">",45:"-"};function Et(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0);return Le[t]?Le[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function Pt(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Et(t.marker||""));}function Bt(e,t,n,o,r,a,u){if(e.content.length===0)return;let l=chunk3R7QHNI5_js.i(t),f=0;function c(p){if(!chunkSCK6ZM5V_js.h(p))return;let d=chunkSCK6ZM5V_js.j(p);if(!d)return;let w=chunk3R7QHNI5_js.n(p,"wps","wsp");if(w){let b=chunkSCK6ZM5V_js.k(w);b&&(d.content=chunkSCK6ZM5V_js.g(b,Y,null,n,o,r,a??void 0,u??void 0));}let C={type:"shape",shapeType:"rect",size:d.size,position:d.position,wrap:d.wrap,fill:d.fill,outline:d.outline,textBody:{content:d.content,margins:d.margins}};d.id&&(C.id=d.id);let y={type:"shape",shape:C},h=f;if(h>=e.content.length){h=-1;for(let b=e.content.length-1;b>=0;b--)if(e.content[b].type==="run"){h=b;break}}if(h>=0){let b=e.content[h];b.type==="run"&&b.content.push(y);}}for(let p of l){if(chunk3R7QHNI5_js.d(p.name??"")!=="r")continue;let d=chunk3R7QHNI5_js.i(p);for(let w of d){let C=chunk3R7QHNI5_js.d(w.name??"");if(C==="drawing")c(w);else if(C==="AlternateContent"){let y=chunk3R7QHNI5_js.i(w),b=y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Choice")??y.find(P=>chunk3R7QHNI5_js.d(P.name??"")==="Fallback");if(b)for(let P of chunk3R7QHNI5_js.i(b))chunk3R7QHNI5_js.d(P.name??"")==="drawing"&&c(P);}}f++;}}function q(e,t,n,o,r,a,u){let l=[],f=chunk3R7QHNI5_js.i(e);for(let c of f){let p=c.name??"";if(p==="w:p"||p.endsWith(":p")){let d=Y(c,t,n,o,r,a,u);Bt(d,c,t,n,o,r,a),Pt(d),l.push(d);}else if(p==="w:tbl"||p.endsWith(":tbl")){let d=ye(c,t,n,o,r,a,u);l.push(d);}else (p==="w:sdt"||p.endsWith(":sdt"))&&l.push(vt(c,t,n,o,r,a,u));}return l}function vt(e,t,n,o,r,a,u){let l=chunk3R7QHNI5_js.e(e,"w","sdtPr"),f=chunk3R7QHNI5_js.e(e,"w","sdtEndPr"),c=chunk3R7QHNI5_js.e(e,"w","sdtContent"),p=re(l,f),d=c?q(c,t,n,o,r,a,u):[];return {type:"blockSdt",properties:p,content:d}}function Xe(e){let t={};if(!e)return t;for(let n of e.split(";")){let o=n.indexOf(":");if(o<0)continue;let r=n.slice(0,o).trim().toLowerCase(),a=n.slice(o+1).trim();r&&(t[r]=a);}return t}function Nt(e){if(!e)return "#C0C0C0";let t=e.trim();return t.startsWith("#")?t:/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:t}function Oe(e){if(!e)return;let t=e.match(/^(-?[0-9.]+)(pt|px|in|cm|mm)?$/);if(!t)return;let n=parseFloat(t[1]);if(!isNaN(n))switch(t[2]){case "in":return n*96;case "cm":return n/2.54*96;case "mm":return n/25.4*96;case "px":return n;default:return n*96/72}}var De=914400/96;function At(e,t,n){if(!e||!t)return {};let o=t.get(e);if(!o?.target)return {};let r=o.target,a=r.split("/").pop()??r,u=[r,r.replace(/^\/+/,""),`word/${r.replace(/^\/+/,"")}`,`word/media/${a}`,`media/${a}`];if(n)for(let l of u){let f=l.toLowerCase();for(let[c,p]of n.entries())if(c.toLowerCase()===f)return {dataUrl:p.dataUrl??p.base64,mediaPath:p.path,contentType:p.mimeType}}return {}}function Ht(e,t){return !!(t.includes("watermark")||(chunk3R7QHNI5_js.j(e,null,"type")??"").includes("_t136"))}function We(e,t=null,n=null){if(!e)return;let o=chunk3R7QHNI5_js.o(e,"v","shape");for(let r of o){let a=(chunk3R7QHNI5_js.j(r,null,"id")??"").toLowerCase(),u=chunk3R7QHNI5_js.i(r),l=u.find(w=>w.name==="v:textpath"||w.name?.endsWith(":textpath")),f=u.find(w=>w.name==="v:imagedata"||w.name?.endsWith(":imagedata"));if(!Ht(r,a)&&!l&&!f)continue;let c=Xe(chunk3R7QHNI5_js.j(r,null,"style")),p=parseFloat(c.rotation??"0")||0,d=Math.abs(p)>5;if(l){let w=chunk3R7QHNI5_js.j(l,null,"string")??"",h=(Xe(chunk3R7QHNI5_js.j(l,null,"style"))["font-family"]??"Calibri").replace(/["']/g,"").replace(/^"|"$/g,"").trim()||"Calibri",b=u.find(x=>x.name==="v:fill"||x.name?.endsWith(":fill")),P=b?chunk3R7QHNI5_js.j(b,null,"opacity"):null,S=P!=null&&parseFloat(P)<1;return {kind:"text",text:w,font:h,color:Nt(chunk3R7QHNI5_js.j(r,null,"fillcolor")),semitransparent:S,layout:d?"diagonal":"horizontal",fontSize:void 0}}if(f){let w=chunk3R7QHNI5_js.j(f,"r","id")??chunk3R7QHNI5_js.j(f,"r","embed")??chunk3R7QHNI5_js.j(f,null,"id")??"",{dataUrl:C,mediaPath:y,contentType:h}=At(w,t,n),b=chunk3R7QHNI5_js.j(f,null,"gain"),P=chunk3R7QHNI5_js.j(f,null,"blacklevel"),S=b!=null||P!=null,x=Oe(c.width),m=Oe(c.height);return {kind:"picture",relId:w||void 0,mediaPath:y,contentType:h,dataUrl:C,scale:1,washout:S,widthEmu:x!=null?Math.round(x*De):void 0,heightEmu:m!=null?Math.round(m*De):void 0}}}}function Ve(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function je(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:Ve(t),rId:n}}function Ue(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"r","id")??"";return {type:Ve(t),rId:n}}function Jn(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:hdr"||d.name?.endsWith(":hdr")));if(!c)return l;l.content=q(c,n,o,r,a,u,{inHeaderFooter:true});let p=We(c,a,u);return p&&(l.watermark=p),l}function eo(e,t="default",n=null,o=null,r=null,a=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=chunk3R7QHNI5_js.a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:ftr"||p.name?.endsWith(":ftr")));return c&&(l.content=q(c,n,o,r,a,u,{inHeaderFooter:true})),l}function ze(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function _e(e,t,n,o,r,a){let u=q(e,t,n,o,r,a),l=false;for(let f of chunk3R7QHNI5_js.i(e)){let c=f.name??"";if(c==="w:bookmarkStart"||c.endsWith(":bookmarkStart")||c==="w:bookmarkEnd"||c.endsWith(":bookmarkEnd")||c==="w:customXml"||c.endsWith(":customXml")){l=true;break}}return {blocks:u,hasUnmodeled:l}}function It(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=ze(l),{blocks:c,hasUnmodeled:p}=_e(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function ro(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ie(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ie(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:footnotes"||d.name?.endsWith(":footnotes")));if(!c)return ie(u,l);let p=chunk3R7QHNI5_js.f(c,"w","footnote");for(let d of p){let w=It(d,t,n,o,r,a);u.set(w.id,w),l.push(w);}return ie(u,l)}function ie(e,t){return {byId:e,footnotes:t,getFootnote(n){return e.get(n)},hasFootnote(n){return e.has(n)},getNormalFootnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function Lt(e,t,n,o,r,a){let u=chunk3R7QHNI5_js.l(e,"w","id")??0,l=chunk3R7QHNI5_js.j(e,"w","type"),f=ze(l),{blocks:c,hasUnmodeled:p}=_e(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c,...p?{verbatimXml:chunk3R7QHNI5_js.b(e)}:{}}}function io(e,t=null,n=null,o=null,r=null,a=null){let u=new Map,l=[];if(!e)return ae(u,l);let f=chunk3R7QHNI5_js.a(e);if(!f)return ae(u,l);let c=f.elements?.find(d=>d.type==="element"&&(d.name==="w:endnotes"||d.name?.endsWith(":endnotes")));if(!c)return ae(u,l);let p=chunk3R7QHNI5_js.f(c,"w","endnote");for(let d of p){let w=Lt(d,t,n,o,r,a);u.set(w.id,w),l.push(w);}return ae(u,l)}function ae(e,t){return {byId:e,endnotes:t,getEndnote(n){return e.get(n)},hasEndnote(n){return e.has(n)},getNormalEndnotes(){return t.filter(n=>n.noteType==="normal")},getSeparator(){return t.find(n=>n.noteType==="separator")},getContinuationSeparator(){return t.find(n=>n.noteType==="continuationSeparator")}}}function qe(e){return e?{decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",bullet:"bullet",chicago:"chicago",none:"none"}[e]:void 0}function Xt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ot(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Ge(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function $e(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Xt(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=qe(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ge(u);}return t}function Ye(e){let t={};if(!e)return t;let n=chunk3R7QHNI5_js.e(e,"w","pos");if(n){let u=chunk3R7QHNI5_js.j(n,"w","val");t.position=Ot(u);}let o=chunk3R7QHNI5_js.e(e,"w","numFmt");if(o){let u=chunk3R7QHNI5_js.j(o,"w","val");t.numFmt=qe(u);}let r=chunk3R7QHNI5_js.e(e,"w","numStart");r&&(t.numStart=chunk3R7QHNI5_js.l(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numRestart");if(a){let u=chunk3R7QHNI5_js.j(a,"w","val");t.numRestart=Ge(u);}return t}function ao(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
|
|
2
|
-
`)}function lo(e){let t=[];for(let n of e.content){if(n.type!=="paragraph")continue;let o=[];for(let r of n.content)if(r.type==="run")for(let a of r.content)a.type==="text"&&o.push(a.text);t.push(o.join(""));}return t.join(`
|
|
3
|
-
`)}function so(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function uo(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Dt(e,t,n,o){if(!e&&!t)return;let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),Object.keys(r).length>0?r:void 0}function le(e){if(!e)return;let o={style:chunk3R7QHNI5_js.j(e,"w","val")??"none"},r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(o.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(o.space=a);let u=chunk3R7QHNI5_js.j(e,"w","color"),l=chunk3R7QHNI5_js.j(e,"w","themeColor"),f=chunk3R7QHNI5_js.j(e,"w","themeTint"),c=chunk3R7QHNI5_js.j(e,"w","themeShade"),p=Dt(u,l,f,c);p&&(o.color=p);let d=chunk3R7QHNI5_js.j(e,"w","shadow");(d==="1"||d==="true")&&(o.shadow=true);let w=chunk3R7QHNI5_js.j(e,"w","frame");return (w==="1"||w==="true")&&(o.frame=true),o}function Wt(e){switch(e){case "landscape":return "landscape";case "portrait":return "portrait";default:return}}function Vt(e){switch(e){case "continuous":return "continuous";case "nextPage":return "nextPage";case "oddPage":return "oddPage";case "evenPage":return "evenPage";case "nextColumn":return "nextColumn";default:return}}function jt(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Ut(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function Ze(e,t){let n={};if(!e)return n;let o=chunk3R7QHNI5_js.e(e,"w","pgSz");if(o){let m=chunk3R7QHNI5_js.l(o,"w","w");m!==void 0&&(n.pageWidth=m);let F=chunk3R7QHNI5_js.l(o,"w","h");F!==void 0&&(n.pageHeight=F);let E=chunk3R7QHNI5_js.j(o,"w","orient"),T=Wt(E);T&&(n.orientation=T);}let r=chunk3R7QHNI5_js.e(e,"w","pgMar");if(r){let m=chunk3R7QHNI5_js.l(r,"w","top");m!==void 0&&(n.marginTop=m);let F=chunk3R7QHNI5_js.l(r,"w","bottom");F!==void 0&&(n.marginBottom=F);let E=chunk3R7QHNI5_js.l(r,"w","left");E!==void 0&&(n.marginLeft=E);let T=chunk3R7QHNI5_js.l(r,"w","right");T!==void 0&&(n.marginRight=T);let k=chunk3R7QHNI5_js.l(r,"w","header");k!==void 0&&(n.headerDistance=k);let B=chunk3R7QHNI5_js.l(r,"w","footer");B!==void 0&&(n.footerDistance=B);let v=chunk3R7QHNI5_js.l(r,"w","gutter");v!==void 0&&(n.gutter=v);}let a=chunk3R7QHNI5_js.e(e,"w","cols");if(a){let m=chunk3R7QHNI5_js.l(a,"w","num");m!==void 0&&(n.columnCount=m);let F=chunk3R7QHNI5_js.l(a,"w","space");F!==void 0&&(n.columnSpace=F);let E=chunk3R7QHNI5_js.j(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let T=chunk3R7QHNI5_js.j(a,"w","sep");(T==="1"||T==="true")&&(n.separator=true);let k=chunk3R7QHNI5_js.f(a,"w","col");if(k.length>0){n.columns=[];for(let B of k){let v={},I=chunk3R7QHNI5_js.l(B,"w","w");I!==void 0&&(v.width=I);let H=chunk3R7QHNI5_js.l(B,"w","space");H!==void 0&&(v.space=H),n.columns.push(v);}n.columnCount===void 0&&(n.columnCount=k.length);}}let u=chunk3R7QHNI5_js.e(e,"w","type");if(u){let m=chunk3R7QHNI5_js.j(u,"w","val"),F=Vt(m);F&&(n.sectionStart=F);}let l=chunk3R7QHNI5_js.e(e,"w","vAlign");if(l){let m=chunk3R7QHNI5_js.j(l,"w","val"),F=jt(m);F&&(n.verticalAlign=F);}let f=chunk3R7QHNI5_js.e(e,"w","bidi");f&&(n.bidi=chunk3R7QHNI5_js.m(f));let c=chunk3R7QHNI5_js.f(e,"w","headerReference");c.length>0&&(n.headerReferences=c.map(m=>je(m)));let p=chunk3R7QHNI5_js.f(e,"w","footerReference");p.length>0&&(n.footerReferences=p.map(m=>Ue(m)));let d=chunk3R7QHNI5_js.e(e,"w","titlePg");d&&(n.titlePg=chunk3R7QHNI5_js.m(d));let w=chunk3R7QHNI5_js.e(e,"w","evenAndOddHeaders");w&&(n.evenAndOddHeaders=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","lnNumType");if(C){n.lineNumbers={};let m=chunk3R7QHNI5_js.l(C,"w","start");m!==void 0&&(n.lineNumbers.start=m);let F=chunk3R7QHNI5_js.l(C,"w","countBy");F!==void 0&&(n.lineNumbers.countBy=F);let E=chunk3R7QHNI5_js.l(C,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let T=chunk3R7QHNI5_js.j(C,"w","restart"),k=Ut(T);k&&(n.lineNumbers.restart=k);}let y=chunk3R7QHNI5_js.e(e,"w","pgBorders");if(y){n.pageBorders={};let m=le(chunk3R7QHNI5_js.e(y,"w","top"));m&&(n.pageBorders.top=m);let F=le(chunk3R7QHNI5_js.e(y,"w","bottom"));F&&(n.pageBorders.bottom=F);let E=le(chunk3R7QHNI5_js.e(y,"w","left"));E&&(n.pageBorders.left=E);let T=le(chunk3R7QHNI5_js.e(y,"w","right"));T&&(n.pageBorders.right=T);let k=chunk3R7QHNI5_js.j(y,"w","display");(k==="allPages"||k==="firstPage"||k==="notFirstPage")&&(n.pageBorders.display=k);let B=chunk3R7QHNI5_js.j(y,"w","offsetFrom");(B==="page"||B==="text")&&(n.pageBorders.offsetFrom=B);let v=chunk3R7QHNI5_js.j(y,"w","zOrder");(v==="front"||v==="back")&&(n.pageBorders.zOrder=v);}let h=chunk3R7QHNI5_js.e(e,"w","background");if(h){n.background={};let m=chunk3R7QHNI5_js.j(h,"w","color");m&&m!=="auto"&&(n.background.color={rgb:m});let F=chunk3R7QHNI5_js.j(h,"w","themeColor");F&&(n.background.themeColor=F);let E=chunk3R7QHNI5_js.j(h,"w","themeTint");E&&(n.background.themeTint=E);let T=chunk3R7QHNI5_js.j(h,"w","themeShade");T&&(n.background.themeShade=T);}let b=chunk3R7QHNI5_js.e(e,"w","footnotePr");if(b){let m=$e(b);Object.keys(m).length>0&&(n.footnotePr=m);}let P=chunk3R7QHNI5_js.e(e,"w","endnotePr");if(P){let m=Ye(P);Object.keys(m).length>0&&(n.endnotePr=m);}let S=chunk3R7QHNI5_js.e(e,"w","docGrid");if(S){n.docGrid={};let m=chunk3R7QHNI5_js.j(S,"w","type");(m==="default"||m==="lines"||m==="linesAndChars"||m==="snapToChars")&&(n.docGrid.type=m);let F=chunk3R7QHNI5_js.l(S,"w","linePitch");F!==void 0&&(n.docGrid.linePitch=F);let E=chunk3R7QHNI5_js.l(S,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let x=chunk3R7QHNI5_js.e(e,"w","paperSrc");if(x){let m=chunk3R7QHNI5_js.l(x,"w","first");m!==void 0&&(n.paperSrcFirst=m);let F=chunk3R7QHNI5_js.l(x,"w","other");F!==void 0&&(n.paperSrcOther=F);}return n}function go(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function Ke(e,t){if(!t||t.length===0)return e;let n=new Set((e??[]).map(r=>r.type)),o=t.filter(r=>!n.has(r.type));return o.length===0?e:[...e??[],...o]}function ho(e){if(e.length<2)return e;let t=[e[0]];for(let n=1;n<e.length;n++){let o=t[n-1].properties,r=e[n].properties,a=Ke(r.headerReferences,o.headerReferences),u=Ke(r.footerReferences,o.footerReferences),l=r.titlePg!==void 0?r.titlePg:o.titlePg;if(a===r.headerReferences&&u===r.footerReferences&&l===r.titlePg){t.push(e[n]);continue}t.push({...e[n],properties:{...r,headerReferences:a,footerReferences:u,titlePg:l}});}return t}function zt(e,t){return !e&&!t?true:!(!e||!t||e.bold!==t.bold||e.boldCs!==t.boldCs||e.italic!==t.italic||e.italicCs!==t.italicCs||e.strike!==t.strike||e.doubleStrike!==t.doubleStrike||e.smallCaps!==t.smallCaps||e.allCaps!==t.allCaps||e.hidden!==t.hidden||e.emboss!==t.emboss||e.imprint!==t.imprint||e.outline!==t.outline||e.shadow!==t.shadow||e.rtl!==t.rtl||e.cs!==t.cs||e.fontSize!==t.fontSize||e.fontSizeCs!==t.fontSizeCs||e.spacing!==t.spacing||e.position!==t.position||e.scale!==t.scale||e.kerning!==t.kerning||e.vertAlign!==t.vertAlign||e.highlight!==t.highlight||e.effect!==t.effect||e.emphasisMark!==t.emphasisMark||e.styleId!==t.styleId||!_t(e.underline,t.underline)||!se(e.color,t.color)||!qt(e.shading,t.shading)||!Gt(e.fontFamily,t.fontFamily))}function _t(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:se(e.color,t.color)}function se(e,t){return !e&&!t?true:!e||!t?false:e.rgb===t.rgb&&e.auto===t.auto&&e.themeColor===t.themeColor&&e.themeTint===t.themeTint&&e.themeShade===t.themeShade}function qt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!se(e.color,t.color)||!se(e.fill,t.fill))}function Gt(e,t){return !e&&!t?true:!e||!t?false:e.ascii===t.ascii&&e.hAnsi===t.hAnsi&&e.eastAsia===t.eastAsia&&e.cs===t.cs&&e.asciiTheme===t.asciiTheme&&e.hAnsiTheme===t.hAnsiTheme&&e.eastAsiaTheme===t.eastAsiaTheme&&e.csTheme===t.csTheme}function $t(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Qe(e){return e.content.length===0?true:e.content.every($t)}function Yt(e,t){let n=[];for(let o of e)n.push(o);if(n.length>0&&t.length>0&&n[n.length-1].type==="text"&&t[0].type==="text"){let o=n[n.length-1],r=t[0];n[n.length-1]={type:"text",text:o.text+r.text,preserveSpace:o.preserveSpace||r.preserveSpace||void 0};for(let a=1;a<t.length;a++)n.push(t[a]);}else for(let o of t)n.push(o);return n}function Kt(e){if(e.length<=1)return e;let t=[],n=null;for(let o of e)if(o.content.length!==0){if(n===null){n={...o,content:[...o.content]};continue}Qe(n)&&Qe(o)&&zt(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Yt(n.content,o.content)}:(t.push(n),n={...o,content:[...o.content]});}return n!==null&&t.push(n),t}function be(e){if(e.length<=1)return e;let t=[],n=[];function o(){if(n.length>0){let r=Kt(n);t.push(...r),n.length=0;}}for(let r of e)if(r.type==="run")n.push(r);else if(o(),r.type==="hyperlink"){let a={...r,children:be(r.children)};t.push(a);}else t.push(r);return o(),t}function Je(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function Zt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function fe(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","b");r&&(o.bold=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","bCs");a&&(o.boldCs=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","i");u&&(o.italic=chunk3R7QHNI5_js.m(u));let l=chunk3R7QHNI5_js.e(e,"w","iCs");l&&(o.italicCs=chunk3R7QHNI5_js.m(l));let f=chunk3R7QHNI5_js.e(e,"w","u");if(f){let M=chunk3R7QHNI5_js.j(f,"w","val");if(M){o.underline={style:M};let U=chunk3R7QHNI5_js.j(f,"w","color"),z=chunk3R7QHNI5_js.j(f,"w","themeColor");(U||z)&&(o.underline.color=Je(U,z,chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));}}let c=chunk3R7QHNI5_js.e(e,"w","strike");c&&(o.strike=chunk3R7QHNI5_js.m(c));let p=chunk3R7QHNI5_js.e(e,"w","dstrike");p&&(o.doubleStrike=chunk3R7QHNI5_js.m(p));let d=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(d){let M=chunk3R7QHNI5_js.j(d,"w","val");(M==="superscript"||M==="subscript"||M==="baseline")&&(o.vertAlign=M);}let w=chunk3R7QHNI5_js.e(e,"w","smallCaps");w&&(o.smallCaps=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","caps");C&&(o.allCaps=chunk3R7QHNI5_js.m(C));let y=chunk3R7QHNI5_js.e(e,"w","vanish");y&&(o.hidden=chunk3R7QHNI5_js.m(y));let h=chunk3R7QHNI5_js.e(e,"w","color");h&&(o.color=Je(chunk3R7QHNI5_js.j(h,"w","val"),chunk3R7QHNI5_js.j(h,"w","themeColor"),chunk3R7QHNI5_js.j(h,"w","themeTint"),chunk3R7QHNI5_js.j(h,"w","themeShade")));let b=chunk3R7QHNI5_js.e(e,"w","highlight");if(b){let M=chunk3R7QHNI5_js.j(b,"w","val");M&&(o.highlight=M);}let P=chunk3R7QHNI5_js.e(e,"w","shd");P&&(o.shading=Zt(P));let S=chunk3R7QHNI5_js.e(e,"w","sz");if(S){let M=chunk3R7QHNI5_js.l(S,"w","val");M!==void 0&&(o.fontSize=M);}let x=chunk3R7QHNI5_js.e(e,"w","szCs");if(x){let M=chunk3R7QHNI5_js.l(x,"w","val");M!==void 0&&(o.fontSizeCs=M);}let m=chunk3R7QHNI5_js.e(e,"w","rFonts");if(m){o.fontFamily={ascii:chunk3R7QHNI5_js.j(m,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(m,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(m,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(m,"w","cs")??void 0};let M=chunk3R7QHNI5_js.j(m,"w","asciiTheme");M&&(o.fontFamily.asciiTheme=M,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=$(t,M)));let U=chunk3R7QHNI5_js.j(m,"w","hAnsiTheme");U&&(o.fontFamily.hAnsiTheme=U,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=$(t,U)));let z=chunk3R7QHNI5_js.j(m,"w","eastAsiaTheme");z&&(o.fontFamily.eastAsiaTheme=z,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=$(t,z)));let pe=chunk3R7QHNI5_js.j(m,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=$(t,pe)));}let F=chunk3R7QHNI5_js.e(e,"w","spacing");if(F){let M=chunk3R7QHNI5_js.l(F,"w","val");M!==void 0&&(o.spacing=M);}let E=chunk3R7QHNI5_js.e(e,"w","position");if(E){let M=chunk3R7QHNI5_js.l(E,"w","val");M!==void 0&&(o.position=M);}let T=chunk3R7QHNI5_js.e(e,"w","w");if(T){let M=chunk3R7QHNI5_js.l(T,"w","val");M!==void 0&&(o.scale=M);}let k=chunk3R7QHNI5_js.e(e,"w","kern");if(k){let M=chunk3R7QHNI5_js.l(k,"w","val");M!==void 0&&(o.kerning=M);}let B=chunk3R7QHNI5_js.e(e,"w","effect");if(B){let M=chunk3R7QHNI5_js.j(B,"w","val");M&&(o.effect=M);}let v=chunk3R7QHNI5_js.e(e,"w","em");if(v){let M=chunk3R7QHNI5_js.j(v,"w","val");M&&(o.emphasisMark=M);}let I=chunk3R7QHNI5_js.e(e,"w","emboss");I&&(o.emboss=chunk3R7QHNI5_js.m(I));let H=chunk3R7QHNI5_js.e(e,"w","imprint");H&&(o.imprint=chunk3R7QHNI5_js.m(H));let X=chunk3R7QHNI5_js.e(e,"w","outline");X&&(o.outline=chunk3R7QHNI5_js.m(X));let Te=chunk3R7QHNI5_js.e(e,"w","shadow");Te&&(o.shadow=chunk3R7QHNI5_js.m(Te));let Ce=chunk3R7QHNI5_js.e(e,"w","rtl");Ce&&(o.rtl=chunk3R7QHNI5_js.m(Ce));let Fe=chunk3R7QHNI5_js.e(e,"w","cs");Fe&&(o.cs=chunk3R7QHNI5_js.m(Fe));let xe=chunk3R7QHNI5_js.e(e,"w","rStyle");if(xe){let M=chunk3R7QHNI5_js.j(xe,"w","val");M&&(o.styleId=M);}return Object.keys(o).length>0?o:void 0}function Qt(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=(chunk3R7QHNI5_js.j(e,"w","author")??"").trim(),r=(chunk3R7QHNI5_js.j(e,"w","date")??"").trim(),a=(chunk3R7QHNI5_js.j(e,"w","rsid")??"").trim();return {id:Number.isInteger(n)&&n>=0?n:0,author:o.length>0?o:"Unknown",date:r.length>0?r:void 0,rsid:a.length>0?a:void 0}}function Jt(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","rPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","rPr");return {type:"runPropertyChange",info:Qt(a),previousFormatting:fe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function en(e){let t=chunk3R7QHNI5_js.k(e),n=chunk3R7QHNI5_js.j(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function tn(){return {type:"tab"}}function nn(e){let t=chunk3R7QHNI5_js.j(e,"w","type"),n=chunk3R7QHNI5_js.j(e,"w","clear"),o={type:"break"};return (t==="page"||t==="column"||t==="textWrapping")&&(o.breakType=t),(n==="none"||n==="left"||n==="right"||n==="all")&&(o.clear=n),o}function on(e){let t=chunk3R7QHNI5_js.j(e,"w","font")??"",n=chunk3R7QHNI5_js.j(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function rn(e){return {type:"footnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function an(e){return {type:"endnoteRef",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function ln(e){let t=chunk3R7QHNI5_js.j(e,"w","fldCharType"),n=chunk3R7QHNI5_js.j(e,"w","fldLock")==="true"||chunk3R7QHNI5_js.j(e,"w","fldLock")==="1",o=chunk3R7QHNI5_js.j(e,"w","dirty")==="true"||chunk3R7QHNI5_js.j(e,"w","dirty")==="1",r="begin";return t==="separate"?r="separate":t==="end"&&(r="end"),{type:"fieldChar",charType:r,fldLock:n||void 0,dirty:o||void 0}}function sn(e){return {type:"instrText",text:chunk3R7QHNI5_js.k(e)}}function et(e,t,n){let o=chunkSCK6ZM5V_js.z(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function ue(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function un(e,t,n){let o=[],r=chunk3R7QHNI5_js.i(e);for(let a of r)switch(ue(a.name)){case "t":o.push(en(a));break;case "tab":o.push(tn());break;case "br":o.push(nn(a));break;case "sym":o.push(on(a));break;case "footnoteReference":o.push(rn(a));break;case "endnoteReference":o.push(an(a));break;case "fldChar":o.push(ln(a));break;case "instrText":o.push(sn(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=et(a,t,n);l&&o.push(l);break;case "pict":case "object":break;case "rPr":break;case "lastRenderedPageBreak":break;case "cr":o.push({type:"break",breakType:"textWrapping"});break;case "AlternateContent":{let c=chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Choice")??chunk3R7QHNI5_js.i(a).find(p=>ue(p.name)==="Fallback");if(c){for(let p of chunk3R7QHNI5_js.i(c))if(ue(p.name)==="drawing"){let w=et(p,t,n);w?.image?.src&&o.push(w);}}break}case "footnoteRef":o.push({type:"footnoteRefMark"});break;case "endnoteRef":o.push({type:"endnoteRefMark"});break;case "separator":o.push({type:"separator"});break;case "continuationSeparator":o.push({type:"continuationSeparator"});break;}return o}function K(e,t,n,o=null,r=null){let a={type:"run",content:[]},u=chunk3R7QHNI5_js.e(e,"w","rPr");return u&&(a.formatting=fe(u,n),a.propertyChanges=Jt(u,n,t,a.formatting)),a.content=un(e,o,r),a}function fn(e,t,n,o){let r={};return e&&e!=="auto"?r.rgb=e:e==="auto"&&(r.auto=true),t&&(r.themeColor=t),n&&(r.themeTint=n),o&&(r.themeShade=o),r}function cn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=chunk3R7QHNI5_js.j(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=chunk3R7QHNI5_js.j(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=chunk3R7QHNI5_js.j(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function G(e){if(!e)return;let t=chunk3R7QHNI5_js.j(e,"w","val");if(!t)return;let n={style:t},o=chunk3R7QHNI5_js.j(e,"w","color"),r=chunk3R7QHNI5_js.j(e,"w","themeColor");(o||r)&&(n.color=fn(o,r,chunk3R7QHNI5_js.j(e,"w","themeTint"),chunk3R7QHNI5_js.j(e,"w","themeShade")));let a=chunk3R7QHNI5_js.l(e,"w","sz");a!==void 0&&(n.size=a);let u=chunk3R7QHNI5_js.l(e,"w","space");u!==void 0&&(n.space=u);let l=chunk3R7QHNI5_js.j(e,"w","shadow");l&&(n.shadow=l==="1"||l==="true");let f=chunk3R7QHNI5_js.j(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function pn(e){if(!e)return;let t=chunk3R7QHNI5_js.f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=chunk3R7QHNI5_js.l(o,"w","pos"),a=chunk3R7QHNI5_js.j(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=chunk3R7QHNI5_js.j(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function dn(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.l(e,"w","w");n!==void 0&&(t.width=n);let o=chunk3R7QHNI5_js.l(e,"w","h");o!==void 0&&(t.height=o);let r=chunk3R7QHNI5_js.j(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=chunk3R7QHNI5_js.j(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=chunk3R7QHNI5_js.l(e,"w","x");u!==void 0&&(t.x=u);let l=chunk3R7QHNI5_js.l(e,"w","y");l!==void 0&&(t.y=l);let f=chunk3R7QHNI5_js.j(e,"w","xAlign");f&&(t.xAlign=f);let c=chunk3R7QHNI5_js.j(e,"w","yAlign");c&&(t.yAlign=c);let p=chunk3R7QHNI5_js.j(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function ce(e,t,n){if(!e)return;let o={},r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let T=chunk3R7QHNI5_js.j(r,"w","val");T&&(o.alignment=T);}let a=chunk3R7QHNI5_js.e(e,"w","bidi");a&&(o.bidi=chunk3R7QHNI5_js.m(a));let u=chunk3R7QHNI5_js.e(e,"w","spacing");if(u){let T=chunk3R7QHNI5_js.l(u,"w","before");T!==void 0&&(o.spaceBefore=T);let k=chunk3R7QHNI5_js.l(u,"w","after");k!==void 0&&(o.spaceAfter=k);let B=chunk3R7QHNI5_js.l(u,"w","line");B!==void 0&&(o.lineSpacing=B);let v={};T!==void 0&&(v.before=true),k!==void 0&&(v.after=true),(v.before||v.after)&&(o.spacingExplicit=v);let I=chunk3R7QHNI5_js.j(u,"w","lineRule");I&&(o.lineSpacingRule=I);let H=chunk3R7QHNI5_js.j(u,"w","beforeAutospacing");H&&(o.beforeAutospacing=H==="1"||H==="true");let X=chunk3R7QHNI5_js.j(u,"w","afterAutospacing");X&&(o.afterAutospacing=X==="1"||X==="true");}let l=chunk3R7QHNI5_js.e(e,"w","ind");if(l){let T=chunk3R7QHNI5_js.l(l,"w","left");T!==void 0&&(o.indentLeft=T);let k=chunk3R7QHNI5_js.l(l,"w","right");k!==void 0&&(o.indentRight=k);let B=chunk3R7QHNI5_js.l(l,"w","firstLine");B!==void 0&&(o.indentFirstLine=B);let v=chunk3R7QHNI5_js.l(l,"w","hanging");v!==void 0&&(o.indentFirstLine=-v,o.hangingIndent=true);let I=chunk3R7QHNI5_js.l(l,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let H=chunk3R7QHNI5_js.l(l,"w","end");H!==void 0&&o.indentRight===void 0&&(o.indentRight=H);}let f=chunk3R7QHNI5_js.e(e,"w","pBdr");if(f){let T={},k=G(chunk3R7QHNI5_js.e(f,"w","top"));k&&(T.top=k);let B=G(chunk3R7QHNI5_js.e(f,"w","bottom"));B&&(T.bottom=B);let v=G(chunk3R7QHNI5_js.e(f,"w","left"));v&&(T.left=v);let I=G(chunk3R7QHNI5_js.e(f,"w","right"));I&&(T.right=I);let H=G(chunk3R7QHNI5_js.e(f,"w","between"));H&&(T.between=H);let X=G(chunk3R7QHNI5_js.e(f,"w","bar"));X&&(T.bar=X),Object.keys(T).length>0&&(o.borders=T);}let c=chunk3R7QHNI5_js.e(e,"w","shd");c&&(o.shading=cn(c));let p=chunk3R7QHNI5_js.e(e,"w","tabs");p&&(o.tabs=pn(p));let d=chunk3R7QHNI5_js.e(e,"w","keepNext");d&&(o.keepNext=chunk3R7QHNI5_js.m(d));let w=chunk3R7QHNI5_js.e(e,"w","keepLines");w&&(o.keepLines=chunk3R7QHNI5_js.m(w));let C=chunk3R7QHNI5_js.e(e,"w","widowControl");C&&(o.widowControl=chunk3R7QHNI5_js.m(C));let y=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");y&&(o.pageBreakBefore=chunk3R7QHNI5_js.m(y));let h=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");h&&(o.contextualSpacing=chunk3R7QHNI5_js.m(h));let b=chunk3R7QHNI5_js.e(e,"w","numPr");if(b){let T=chunk3R7QHNI5_js.e(b,"w","numId"),k=chunk3R7QHNI5_js.e(b,"w","ilvl");if(T||k){if(o.numPr={},T){let B=chunk3R7QHNI5_js.l(T,"w","val");B!==void 0&&(o.numPr.numId=B);}if(k){let B=chunk3R7QHNI5_js.l(k,"w","val");B!==void 0&&(o.numPr.ilvl=B);}}}let P=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(P){let T=chunk3R7QHNI5_js.l(P,"w","val");T!==void 0&&(o.outlineLevel=T);}let S=chunk3R7QHNI5_js.e(e,"w","pStyle");if(S){let T=chunk3R7QHNI5_js.j(S,"w","val");T&&(o.styleId=T);}let x=chunk3R7QHNI5_js.e(e,"w","framePr");x&&(o.frame=dn(x));let m=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");m&&(o.suppressLineNumbers=chunk3R7QHNI5_js.m(m));let F=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");F&&(o.suppressAutoHyphens=chunk3R7QHNI5_js.m(F));let E=chunk3R7QHNI5_js.e(e,"w","rPr");return E&&(o.runProperties=fe(E,t)),Object.keys(o).length>0?o:void 0}function mn(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function gn(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function hn(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function tt(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=chunk3R7QHNI5_js.j(e,"r","id");if(u&&(a.rId=u,t)){let C=t.get(u);C&&(chunkZ3LGMBJC_js.c(C),a.href=C.target);}let l=chunk3R7QHNI5_js.j(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=chunk3R7QHNI5_js.j(e,"w","tooltip");f&&(a.tooltip=f);let c=chunk3R7QHNI5_js.j(e,"w","tgtFrame");c&&(a.target=c);let p=chunk3R7QHNI5_js.j(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let d=chunk3R7QHNI5_js.j(e,"w","docLocation");d&&(a.docLocation=d);let w=chunk3R7QHNI5_js.i(e);for(let C of w)switch(mn(C.name)){case "r":a.children.push(K(C,n,o,t,r));break;case "bookmarkStart":a.children.push(gn(C));break;case "bookmarkEnd":a.children.push(hn(C));break}return a}function Po(e){let t="";for(let n of e.children)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"&&(t+=" ");return t}function Bo(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function vo(e){return !!e.anchor}function No(e){return e.href}function Ao(e){return e.children.some(t=>t.type==="run")}function Ho(e){return e.children.filter(t=>t.type==="run")}function Io(e,t){if(e.rId){let n=t.get(e.rId);if(n)return chunkZ3LGMBJC_js.c(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function nt(e){let t=chunk3R7QHNI5_js.l(e,"w","id")??0,n=chunk3R7QHNI5_js.j(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=chunk3R7QHNI5_js.l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=chunk3R7QHNI5_js.l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function ot(e){return {type:"bookmarkEnd",id:chunk3R7QHNI5_js.l(e,"w","id")??0}}function it(e){let t="";if(e.type==="text"&&typeof e.text=="string")return e.text;if(e.elements)for(let n of e.elements)if((n.name?.replace(/^.*:/,"")??"")==="t"&&n.elements)for(let r of n.elements)r.type==="text"&&typeof r.text=="string"&&(t+=r.text);else t+=it(n);return t}function Q(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function at(e){let t=new Set(["hyperlink","smartTag","sdt","sdtContent","fldSimple","customXml","ins","del","moveFrom","moveTo"]),n=new Set(["pPr","proofErr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","commentReference","permStart","permEnd","rsidR"]),o=new Set(["t","tab","br","cr","sym","drawing","pict","object","softHyphen","noBreakHyphen","fldChar","instrText","pgNum","separator","continuationSeparator","footnoteRef","endnoteRef","footnoteReference","endnoteReference","ptab","monthShort","monthLong","yearShort","yearLong","dayShort","dayLong"]),r=false;function a(l){for(let f of chunk3R7QHNI5_js.i(l)){let c=Q(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of chunk3R7QHNI5_js.i(f)){let d=Q(p.name);if(d!=="rPr"){if(d==="lastRenderedPageBreak"){r=true;continue}if(d==="br"&&chunk3R7QHNI5_js.j(p,"w","type")==="page")return "forced";if(o.has(d))return "visible"}}continue}if(t.has(c)){let p=a(f);if(p!=="continue")return p;continue}return "continue"}}return "continue"}let u=a(e);return u==="forced"?true:u==="visible"?r:false}function rt(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function lt(e){if(e.type!=="element")return e;let t=Q(e.name),n=e.name;return t==="delText"?n=rt(e.name,"t"):t==="delInstrText"&&(n=rt(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(lt)}}function Z(e){let t=chunk3R7QHNI5_js.j(e,"w","id"),n=t?parseInt(t,10):0,o=chunk3R7QHNI5_js.j(e,"w","author"),r=chunk3R7QHNI5_js.j(e,"w","date"),a=o?.trim()??"",u=r?.trim()??"";return {id:Number.isInteger(n)&&n>=0?n:0,author:a.length>0?a:"Unknown",date:u.length>0?u:void 0}}function wn(e){return Z(e)}function st(e,t,n,o){if(!e)return;let r=chunk3R7QHNI5_js.f(e,"w","pPrChange").map(a=>{let u=chunk3R7QHNI5_js.e(a,"w","pPr");return {type:"paragraphPropertyChange",info:wn(a),previousFormatting:ce(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function yn(e,t,n,o,r){return tt(e,t,n,o,r)}function bn(e){return nt(e)}function Tn(e){return ot(e)}function ut(e){let t=e.trim().match(/^\\?([A-Z]+)/i);if(!t)return "UNKNOWN";let n=t[1].toUpperCase();return ["PAGE","NUMPAGES","NUMWORDS","NUMCHARS","DATE","TIME","CREATEDATE","SAVEDATE","PRINTDATE","AUTHOR","TITLE","SUBJECT","KEYWORDS","COMMENTS","FILENAME","FILESIZE","TEMPLATE","DOCPROPERTY","DOCVARIABLE","REF","PAGEREF","NOTEREF","HYPERLINK","TOC","TOA","INDEX","SEQ","STYLEREF","AUTONUM","AUTONUMLGL","AUTONUMOUT","IF","MERGEFIELD","NEXT","NEXTIF","ASK","SET","QUOTE","INCLUDETEXT","INCLUDEPICTURE","SYMBOL","ADVANCE","EDITTIME","REVNUM","SECTION","SECTIONPAGES","USERADDRESS","USERNAME","USERINITIALS"].includes(n)?n:"UNKNOWN"}function Cn(e,t,n,o,r){let a=chunk3R7QHNI5_js.j(e,"w","instr")??"",u=ut(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=chunk3R7QHNI5_js.j(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=chunk3R7QHNI5_js.j(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=chunk3R7QHNI5_js.i(e);for(let d of p)Q(d.name)==="r"&&l.content.push(K(d,t,n,o,r));return l}function j(e,t,n,o,r,a,u="default"){let l=[],f=chunk3R7QHNI5_js.i(e),c=false,p="",d=[],w=[],C=false,y=false,h=false;for(let b of f){let P=Q(b.name);switch(P){case "r":{let S=u==="deletion"?lt(b):b,x=K(S,t,n,r,a),m=false,F=false,E=false,T="";for(let k of x.content)k.type==="fieldChar"?k.charType==="begin"?(m=true,k.fldLock&&(y=true),k.dirty&&(h=true)):k.charType==="separate"?F=true:k.charType==="end"&&(E=true):k.type==="instrText"&&(T+=k.text);if(m&&(c=true,C=false,p="",d=[],w=[],y=false,h=false),c){if(T&&(p+=T),F&&(C=true),C&&!E?F||w.push(x):!C&&!m&&d.push(x),E){let k={type:"complexField",instruction:p.trim(),fieldType:ut(p),fieldCode:d,fieldResult:w};y&&(k.fldLock=true),h&&(k.dirty=true),l.push(k),c=false;}}else l.push(x);break}case "hyperlink":l.push(yn(b,r,t,n,a));break;case "bookmarkStart":l.push(bn(b));break;case "bookmarkEnd":l.push(Tn(b));break;case "fldSimple":l.push(Cn(b,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let S=(b.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtPr"||m.name?.endsWith(":sdtPr"))),x=(b.elements??[]).find(m=>m.type==="element"&&(m.name==="w:sdtContent"||m.name?.endsWith(":sdtContent")));if(x){let m=j(x,t,n,null,r,a,u),E={type:"inlineSdt",properties:re(S??null),content:m.filter(T=>T.type==="run"||T.type==="hyperlink"||T.type==="simpleField"||T.type==="complexField"||T.type==="inlineSdt"||T.type==="mathEquation")};l.push(E);}break}case "ins":{let S=Z(b),x=j(b,t,n,null,r,a),m={type:"insertion",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "del":{let S=Z(b),x=j(b,t,n,null,r,a,"deletion"),m={type:"deletion",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveFrom":{let S=Z(b),x=j(b,t,n,null,r,a,"deletion"),m={type:"moveFrom",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "moveTo":{let S=Z(b),x=j(b,t,n,null,r,a),m={type:"moveTo",info:S,content:x.filter(F=>F.type==="run"||F.type==="hyperlink")};l.push(m);break}case "smartTag":break;case "moveFromRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10),x=chunk3R7QHNI5_js.j(b,"w","name")??"";l.push({type:"moveFromRangeStart",id:S,name:x});break}case "moveFromRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:S});break}case "moveToRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10),x=chunk3R7QHNI5_js.j(b,"w","name")??"";l.push({type:"moveToRangeStart",id:S,name:x});break}case "moveToRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:S});break}case "commentRangeStart":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"commentRangeStart",id:S});break}case "commentRangeEnd":{let S=parseInt(chunk3R7QHNI5_js.j(b,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:S});break}case "oMath":case "oMathPara":{let S=P==="oMathPara",x=chunk3R7QHNI5_js.b(b),m=it(b),F={type:"mathEquation",display:S?"block":"inline",ommlXml:x,plainText:m||void 0};l.push(F);break}}}return l}function Fn(e){let t="";for(let n of e.content)if(n.type==="run")for(let o of n.content)o.type==="text"?t+=o.text:o.type==="tab"?t+=" ":o.type==="break"&&(o.breakType==="page"?t+="\f":t+=`
|
|
4
|
-
`);else if(n.type==="hyperlink"){for(let o of n.children)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="simpleField"){for(let o of n.content)if(o.type==="run")for(let r of o.content)r.type==="text"&&(t+=r.text);}else if(n.type==="complexField")for(let o of n.fieldResult)for(let r of o.content)r.type==="text"&&(t+=r.text);return t}function ft(e){let t=chunk3R7QHNI5_js.j(e,"w","id");if(t==null)return null;let n=parseInt(t,10);if(Number.isNaN(n))return null;let o=chunk3R7QHNI5_js.j(e,"w","author")??"",r=chunk3R7QHNI5_js.j(e,"w","date")??void 0,a={id:n,author:o};return r&&(a.date=r),a}function Y(e,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=chunk3R7QHNI5_js.j(e,"w14","paraId")??chunk3R7QHNI5_js.j(e,"w","paraId");f&&(l.paraId=f);let c=chunk3R7QHNI5_js.j(e,"w14","textId")??chunk3R7QHNI5_js.j(e,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&at(e)&&(l.renderedPageBreakBefore=true);let p=chunk3R7QHNI5_js.e(e,"w","pPr");if(p){l.formatting=ce(p,n),l.propertyChanges=st(p,n,t,l.formatting);let C=chunk3R7QHNI5_js.e(p,"w","rPr");if(C){let h=chunk3R7QHNI5_js.e(C,"w","ins");if(h){let P=ft(h);P&&(l.pPrIns=P);}let b=chunk3R7QHNI5_js.e(C,"w","del");if(b){let P=ft(b);P&&(l.pPrDel=P);}}let y=chunk3R7QHNI5_js.e(p,"w","sectPr");y&&(l.sectionProperties=Ze(y));}let d=j(e,t,n,o,r,a);l.content=be(d);let w=l.formatting?.numPr;if(!w&&l.formatting?.styleId&&t){let C=t.get(l.formatting.styleId);C?.pPr?.numPr&&(w=C.pPr.numPr,l.formatting||(l.formatting={}),l.formatting.numPr=w);}if(w&&o){let{numId:C,ilvl:y=0}=w;if(C!==void 0&&C!==0){let h=o.getLevel(C,y);if(h){let b=[];for(let x=0;x<=y;x+=1){let m=o.getLevel(C,x);b.push(m?.numFmt??"decimal");}let P=o.getInstance(C),S=P?.levelOverrides?.find(x=>x.ilvl===y);if(l.listRendering={level:y,numId:C,marker:h.lvlText,isBullet:h.numFmt==="bullet",numFmt:h.numFmt,markerHidden:h.rPr?.hidden||void 0,markerFontFamily:h.rPr?.fontFamily?.ascii||h.rPr?.fontFamily?.hAnsi||void 0,markerFontSize:h.rPr?.fontSize?h.rPr.fontSize/2:void 0,markerSuffix:h.suffix,levelNumFmts:b,abstractNumId:P?.abstractNumId,startOverride:S?.startOverride},h.pPr){l.formatting||(l.formatting={});let x=p?chunk3R7QHNI5_js.e(p,"w","ind"):null,m=x!=null&&(chunk3R7QHNI5_js.j(x,"w","left")!==null||chunk3R7QHNI5_js.j(x,"w","start")!==null),F=T=>{let k=x?chunk3R7QHNI5_js.j(x,"w",T):null;if(k===null)return false;let B=parseInt(k,10);return Number.isNaN(B)||B!==0},E=x!=null&&(F("firstLine")||F("hanging"));!m&&h.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=h.pPr.indentLeft),E||(h.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=h.pPr.indentFirstLine),h.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=h.pPr.hangingIndent));}}}}return l}function ct(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tblW"));n&&(t.width=n);let o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let h=chunk3R7QHNI5_js.j(o,"w","val");(h==="left"||h==="center"||h==="right"||h==="start")&&(t.justification=h==="start"?"left":h);}let r=O(chunk3R7QHNI5_js.e(e,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=O(chunk3R7QHNI5_js.e(e,"w","tblInd"));a&&(t.indent=a);let u=te(chunk3R7QHNI5_js.e(e,"w","tblBorders"));u&&(t.borders=u);let l=ne(chunk3R7QHNI5_js.e(e,"w","tblCellMar"));l&&(t.cellMargins=l);let f=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(f){let h=chunk3R7QHNI5_js.j(f,"w","type");(h==="fixed"||h==="autofit")&&(t.layout=h);}let c=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(c){let h=chunk3R7QHNI5_js.j(c,"w","val");h&&(t.styleId=h);}let p=he(chunk3R7QHNI5_js.e(e,"w","tblLook"));p&&(t.look=p);let d=oe(chunk3R7QHNI5_js.e(e,"w","shd"));d&&(t.shading=d);let w=chunk3R7QHNI5_js.e(e,"w","tblOverlap");if(w){let h=chunk3R7QHNI5_js.j(w,"w","val");(h==="never"||h==="overlap")&&(t.overlap=h);}let C=we(chunk3R7QHNI5_js.e(e,"w","tblpPr"));if(C&&(t.floating=C),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function xn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tblPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tblPr");return {type:"tablePropertyChange",info:ee(o),previousFormatting:ct(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function kn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","trPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","trPr");return {type:"tableRowPropertyChange",info:ee(o),previousFormatting:pt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Sn(e,t){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tcPrChange").map(o=>{let r=chunk3R7QHNI5_js.e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:ee(o),previousFormatting:mt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function Mn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function Rn(e){if(!e)return;let t=chunk3R7QHNI5_js.e(e,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=chunk3R7QHNI5_js.e(e,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(n)};let o=chunk3R7QHNI5_js.e(e,"w","cellMerge");if(o){let r=chunk3R7QHNI5_js.j(o,"w","vMerge"),a=chunk3R7QHNI5_js.j(o,"w","vMergeOrig"),u=l=>l==="rest"||l==="cont";return {type:"tableCellMerge",info:V(o),...u(r)?{vMerge:r}:{},...u(a)?{vMergeOrig:a}:{}}}}function pt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.e(e,"w","trHeight");if(n){let f=chunk3R7QHNI5_js.l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=chunk3R7QHNI5_js.j(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","tblHeader"))&&(t.header=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","cantSplit"))&&(t.cantSplit=true);let a=chunk3R7QHNI5_js.e(e,"w","jc");if(a){let f=chunk3R7QHNI5_js.j(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","hidden"))&&(t.hidden=true);let l=dt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(l&&(t.conditionalFormat=l),Object.keys(t).length!==0)return t}function dt(e){if(!e)return;let t={},n=chunk3R7QHNI5_js.j(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=chunk3R7QHNI5_js.j(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=chunk3R7QHNI5_js.j(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=chunk3R7QHNI5_js.j(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=chunk3R7QHNI5_js.j(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=chunk3R7QHNI5_js.j(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=chunk3R7QHNI5_js.j(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=chunk3R7QHNI5_js.j(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=chunk3R7QHNI5_js.j(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let d=chunk3R7QHNI5_js.j(e,"w","firstRowLastColumn");(d==="1"||d==="true")&&(t.neCell=true);let w=chunk3R7QHNI5_js.j(e,"w","lastRowFirstColumn");(w==="1"||w==="true")&&(t.swCell=true);let C=chunk3R7QHNI5_js.j(e,"w","lastRowLastColumn");(C==="1"||C==="true")&&(t.seCell=true);let y=chunk3R7QHNI5_js.j(e,"w","val");if(y&&y.length===12&&(y[0]==="1"&&(t.firstRow=true),y[1]==="1"&&(t.lastRow=true),y[2]==="1"&&(t.firstColumn=true),y[3]==="1"&&(t.lastColumn=true),y[4]==="1"&&(t.oddVBand=true),y[5]==="1"&&(t.evenVBand=true),y[6]==="1"&&(t.oddHBand=true),y[7]==="1"&&(t.evenHBand=true),y[8]==="1"&&(t.nwCell=true),y[9]==="1"&&(t.neCell=true),y[10]==="1"&&(t.swCell=true),y[11]==="1"&&(t.seCell=true)),Object.keys(t).length!==0)return t}function mt(e){if(!e)return;let t={},n=O(chunk3R7QHNI5_js.e(e,"w","tcW"));n&&(t.width=n);let o=te(chunk3R7QHNI5_js.e(e,"w","tcBorders"));o&&(t.borders=o);let r=ne(chunk3R7QHNI5_js.e(e,"w","tcMar"));r&&(t.margins=r);let a=oe(chunk3R7QHNI5_js.e(e,"w","shd"));a&&(t.shading=a);let u=chunk3R7QHNI5_js.e(e,"w","vAlign");if(u){let y=chunk3R7QHNI5_js.j(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l=chunk3R7QHNI5_js.e(e,"w","textDirection");if(l){let y=chunk3R7QHNI5_js.j(l,"w","val");y&&(t.textDirection=y);}let f=chunk3R7QHNI5_js.e(e,"w","gridSpan");if(f){let y=chunk3R7QHNI5_js.l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=chunk3R7QHNI5_js.e(e,"w","vMerge");c&&(chunk3R7QHNI5_js.j(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","tcFitText"))&&(t.fitText=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","noWrap"))&&(t.noWrap=true),chunk3R7QHNI5_js.m(chunk3R7QHNI5_js.e(e,"w","hideMark"))&&(t.hideMark=true);let C=dt(chunk3R7QHNI5_js.e(e,"w","cnfStyle"));if(C&&(t.conditionalFormat=C),Object.keys(t).length!==0)return t}function En(e,t,n,o,r,a,u){let l=[],f=e.elements||[];for(let c of f){if(!c.name)continue;let p=c.name.split(":").pop();if(p==="p"){let d=Y(c,t,n,o,r,a,u);l.push(d);}else if(p==="tbl"){let d=ye(c,t,n,o,r,a,u);l.push(d);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function Pn(e,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=chunk3R7QHNI5_js.e(e,"w","tcPr"),c=mt(f);return c&&(l.formatting=c),l.propertyChanges=Sn(f,c),l.structuralChange=Rn(f),l.content=En(e,t,n,o,r,a,u),l}function Bn(e,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f=chunk3R7QHNI5_js.e(e,"w","trPr"),c=pt(f);c&&(l.formatting=c),l.propertyChanges=kn(f,c),l.structuralChange=Mn(f);let p=chunk3R7QHNI5_js.f(e,"w","tc");for(let d of p){let w=Pn(d,t,n,o,r,a,u);l.cells.push(w);}return l}function vn(e){if(!e)return;let t=[],n=chunk3R7QHNI5_js.f(e,"w","gridCol");for(let o of n){let r=chunk3R7QHNI5_js.l(o,"w","w")??0;t.push(r);}if(!(t.length>0&&t.every(o=>o<=0)))return t.length>0?t:void 0}function Nn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function An(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Nn(n)));if(!(t<=1))for(let n of e.rows){if(n.cells.length!==1)continue;let o=n.cells[0];(o.formatting?.gridSpan??1)>=t||o.formatting?.vMerge||o.formatting?.gridSpan==null&&(o.formatting={...o.formatting??{},gridSpan:t});}}function ye(e,t,n,o,r,a,u){let l={type:"table",rows:[]},f=chunk3R7QHNI5_js.e(e,"w","tblPr"),c=ct(f);c&&(l.formatting=c),l.propertyChanges=xn(f,c);let p=vn(chunk3R7QHNI5_js.e(e,"w","tblGrid"));p&&(l.columnWidths=p);let d=chunk3R7QHNI5_js.f(e,"w","tr");for(let w of d){let C=Bn(w,t,n,o,r,a,u);l.rows.push(C);}return An(l),l}exports.A=uo;exports.B=Ze;exports.C=go;exports.D=ho;exports.E=K;exports.F=tt;exports.G=Po;exports.H=Bo;exports.I=vo;exports.J=No;exports.K=Ao;exports.L=Ho;exports.M=Io;exports.N=Fn;exports.O=Y;exports.a=In;exports.b=$;exports.c=Ie;exports.d=W;exports.e=te;exports.f=ne;exports.g=oe;exports.h=he;exports.i=we;exports.j=Tt;exports.k=Ct;exports.l=Ft;exports.m=xt;exports.n=kt;exports.o=ct;exports.p=Et;exports.q=q;exports.r=Jn;exports.s=eo;exports.t=ro;exports.u=io;exports.v=$e;exports.w=Ye;exports.x=ao;exports.y=lo;exports.z=so;
|
package/dist/chunk-LX35TFGF.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var T=".layout-page-content";function M(l){return Array.from(l.querySelectorAll(`${T} span[data-pm-start][data-pm-end]`))}function B(l){return Array.from(l.querySelectorAll(`${T} .layout-empty-run`))}function I(l){return Array.from(l.querySelectorAll(`${T} [data-pm-start]`))}function q(l,t){return Number.isFinite(t)?l.querySelector(`${T} [data-pm-start="${t}"]`):null}function w(l,t,s,p=1){let g=document.elementsFromPoint(t,s),f=g.find(e=>e.classList.contains("layout-page"));if(!f)return null;let r=g.find(e=>e.tagName==="SPAN"&&e.dataset.pmStart!==void 0&&e.dataset.pmEnd!==void 0);if(r)return L(r,t);let a=g.find(e=>e.classList.contains("layout-empty-run"));if(a){let e=a.closest(".layout-paragraph");if(e&&e.dataset.pmStart)return Number(e.dataset.pmStart)}let c=g.find(e=>e.classList.contains("layout-paragraph")&&e.dataset.pmStart!==void 0);if(c&&c.dataset.pmStart){let e=N(c,t,s);return e!==null?e:Number(c.dataset.pmStart)}let u=g.find(e=>e.classList.contains("layout-table-cell"));return u?N(u,t,s):R(l,f,t,s)}function L(l,t,s){let p=Number(l.dataset.pmStart),g=Number(l.dataset.pmEnd);if(l.classList.contains("layout-run-tab")){let n=l.getBoundingClientRect(),i=(n.left+n.right)/2;return t<i?p:g}let f=l.firstChild;if(!f||f.nodeType!==Node.TEXT_NODE)return p;let r=f,a=r.length;if(a===0)return p;let c=l.ownerDocument;if(!c)return p;let u=0,e=a;for(;u<e;){let n=Math.floor((u+e)/2),i=c.createRange();i.setStart(r,n),i.setEnd(r,n);let m=i.getBoundingClientRect().left;t<m?e=n:u=n+1;}if(u>0&&u<=a){let n=c.createRange();n.setStart(r,u-1),n.setEnd(r,u-1);let i=n.getBoundingClientRect();n.setStart(r,Math.min(u,a)),n.setEnd(r,Math.min(u,a));let o=n.getBoundingClientRect(),m=Math.abs(t-i.left),d=Math.abs(t-o.left);if(m<d)return p+(u-1)}return p+Math.min(u,g-p)}function N(l,t,s){let p=l.querySelector(".layout-empty-run");if(p){let n=p.closest(".layout-paragraph");if(n&&n.dataset.pmStart)return Number(n.dataset.pmStart)}let g=l.querySelectorAll(".layout-line"),f=null,r=1/0;for(let n of Array.from(g)){let i=n,o=i.getBoundingClientRect(),m=(o.top+o.bottom)/2,d=Math.abs(s-m);d<r&&(r=d,f=i);}if(!f){let n=l.querySelector(".layout-paragraph[data-pm-start]");return n?.dataset.pmStart?Number(n.dataset.pmStart):l.dataset.pmStart?Number(l.dataset.pmStart):null}let a=f.querySelectorAll("span[data-pm-start][data-pm-end]");if(a.length===0){let n=f.closest(".layout-paragraph");return n?.dataset.pmStart?Number(n.dataset.pmStart):null}let c=null,u=1/0;for(let n of Array.from(a)){let i=n,o=i.getBoundingClientRect();if(t>=o.left&&t<=o.right)return L(i,t);let m=t<o.left?o.left-t:t-o.right;m<u&&(u=m,c=i);}if(!c)return null;let e=c.getBoundingClientRect();return t<e.left?Number(c.dataset.pmStart):Number(c.dataset.pmEnd)}function R(l,t,s,p,g){if(t.querySelectorAll("span[data-pm-start][data-pm-end]").length===0){let o=t.querySelectorAll(".layout-paragraph");if(o.length>0){let m=o[0];return Number(m.dataset.pmStart)||0}return null}let r=t.querySelectorAll(".layout-line"),a=null,c=1/0;for(let o of Array.from(r)){let m=o,d=m.getBoundingClientRect(),h=(d.top+d.bottom)/2,b=Math.abs(p-h);b<c&&(c=b,a=m);}if(!a)return null;let u=a.querySelectorAll("span[data-pm-start][data-pm-end]");if(u.length===0){let o=a.closest(".layout-paragraph");return o?.dataset.pmStart?Number(o.dataset.pmStart):null}let e=null,n=1/0;for(let o of Array.from(u)){let m=o,d=m.getBoundingClientRect();if(s>=d.left&&s<=d.right)return L(m,s);let h=s<d.left?d.left-s:s-d.right;h<n&&(n=h,e=m);}if(!e)return null;let i=e.getBoundingClientRect();return s<i.left?Number(e.dataset.pmStart):Number(e.dataset.pmEnd)}var D=.5;function A(l,t){let s=l.closest(".layout-table:not(.layout-nested-table)");if(!s)return {left:t.left,top:t.top,right:t.right,bottom:t.bottom};let p=s.getBoundingClientRect(),g=Math.max(t.top,p.top),f=Math.min(t.bottom,p.bottom);return f-g<=D?null:{left:t.left,top:g,right:t.right,bottom:f}}function O(l,t,s,p){let g=[],f=M(l);for(let r of Array.from(f)){let a=r,c=Number(a.dataset.pmStart);if(Number(a.dataset.pmEnd)<=t||c>=s)continue;let e=a.closest(".layout-page"),n=e?Number(e.dataset.pageNumber||1)-1:0,i=y=>{let E=A(a,y);E&&g.push({x:E.left-p.left,y:E.top-p.top,width:E.right-E.left,height:E.bottom-E.top,pageIndex:n});};if(a.classList.contains("layout-run-tab")){i(a.getBoundingClientRect());continue}let o=null;if(a.firstChild?.nodeType===Node.TEXT_NODE?o=a.firstChild:a.firstChild?.nodeType===Node.ELEMENT_NODE&&a.firstChild.tagName==="A"&&a.firstChild.firstChild?.nodeType===Node.TEXT_NODE&&(o=a.firstChild.firstChild),!o)continue;let m=a.ownerDocument;if(!m)continue;let d=Math.max(0,t-c),h=Math.min(o.length,s-c);if(d>=h)continue;let b=m.createRange();b.setStart(o,d),b.setEnd(o,h);for(let y of Array.from(b.getClientRects()))i(y);}return g}function $(l,t,s){let p=M(l);for(let f of Array.from(p)){let r=f,a=Number(r.dataset.pmStart),c=Number(r.dataset.pmEnd);if(r.classList.contains("layout-run-tab")){if(t>=a&&t<c){let u=r.getBoundingClientRect(),e=r.closest(".layout-page"),n=e?Number(e.dataset.pageNumber||1)-1:0,i=r.closest(".layout-line"),o=i?i.offsetHeight:16;return {x:u.left-s.left,y:u.top-s.top,height:o,pageIndex:n}}continue}if(t>=a&&t<=c){let u=r.firstChild;if(!u||u.nodeType!==Node.TEXT_NODE){let E=r.getBoundingClientRect(),S=r.closest(".layout-page"),x=S?Number(S.dataset.pageNumber||1)-1:0,H=r.closest(".layout-line"),C=H?H.offsetHeight:16;return {x:E.left-s.left,y:E.top-s.top,height:C,pageIndex:x}}let e=u,n=Math.min(t-a,e.length),i=r.ownerDocument;if(!i)continue;let o=i.createRange();o.setStart(e,n),o.setEnd(e,n);let m=o.getBoundingClientRect(),d=r.closest(".layout-page"),h=d?Number(d.dataset.pageNumber||1)-1:0,b=r.closest(".layout-line"),y=b?b.offsetHeight:16;return {x:m.left-s.left,y:m.top-s.top,height:y,pageIndex:h}}}let g=l.querySelectorAll(".layout-paragraph");for(let f of Array.from(g)){let r=f,a=Number(r.dataset.pmStart),c=Number(r.dataset.pmEnd);if(t>=a&&t<=c){let e=r.querySelector(".layout-empty-run")||r,n=e.getBoundingClientRect(),i=r.closest(".layout-page"),o=i?Number(i.dataset.pageNumber||1)-1:0,d=(e.closest(".layout-line")||e).offsetHeight||16;return {x:n.left-s.left,y:n.top-s.top,height:d,pageIndex:o}}}return null}export{M as a,B as b,I as c,q as d,w as e,A as f,O as g,$ as h};
|
package/dist/chunk-MNOHUTKE.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';var l=new Set,d=new Map,y=new Set,f=new Map,w=new Set,p=new Set,u=false;function m(t,n){let e=t instanceof Error?t.message:String(t),o=new Error(`[font] ${n}: ${e}`,{cause:t});if(p.size>0)for(let i of p)try{i(o);}catch(a){console.error("Font error subscriber threw:",a);}else console.warn(o.message);}function x(t,n="normal"){return `${t.trim()}|${n}`}function P(t,n=[400,700],e=["normal","italic"]){let o=encodeURIComponent(t),i=[];for(let s of e){let r=s==="italic"?1:0;for(let c of n)i.push(`${r},${c}`);}i.sort();let a=i.join(";");return `https://fonts.googleapis.com/css2?family=${o}:ital,wght@${a}&display=swap`}async function h(t,n){if(typeof document>"u")return false;let e=t.trim();if(l.has(e))return true;let o=d.get(e);if(o)return o;let i=(async()=>{u=true;try{let a=P(e,n?.weights,n?.styles),s=document.createElement("link");return s.rel="stylesheet",s.href=a,await new Promise(c=>{s.onload=()=>c(!0),s.onerror=()=>c(!1),document.head.appendChild(s),setTimeout(()=>c(!1),5e3);})?(await b(e,3e3),l.add(e),F([e]),!0):!1}catch(a){return m(a,`failed to load "${e}"`),false}finally{d.delete(e),d.size===0&&f.size===0&&(u=false);}})();return d.set(e,i),i}async function A(t,n){let e=t.filter(o=>!l.has(o.trim()));e.length!==0&&await Promise.all(e.map(o=>h(o,n)));}function T(t){return l.has(t.trim())}function z(){return u}function G(){return Array.from(l)}function U(t){return w.add(t),()=>{w.delete(t);}}function F(t){for(let n of w)try{n(t);}catch(e){m(e,"load callback threw");}}function I(t){return p.add(t),()=>{p.delete(t);}}async function b(t,n){if("fonts"in document)try{let e=`400 16px "${t}"`;return await Promise.race([document.fonts.load(e),new Promise(o=>setTimeout(o,n))]),document.fonts.check(e)}catch{}return await new Promise(e=>setTimeout(e,100)),true}function M(t,n="sans-serif"){if(typeof document>"u")return false;let e=(i,a)=>{let r=document.createElement("canvas").getContext("2d");if(!r)return false;r.textBaseline="top";let c="abcdefghijklmnopqrstuvwxyz0123456789";r.font=`72px ${a}`;let g=r.measureText(c).width;return r.font=`72px "${i}", ${a}`,r.measureText(c).width!==g};return e(t,n)?true:e(t,n==="sans-serif"?"serif":"sans-serif")}async function R(t,n,e){if(typeof document>"u")return false;let o=t.trim(),i=x(o,e?.weight);if(y.has(i))return true;let a=f.get(i);if(a)return a;let s=(async()=>{u=true;try{let r=new Blob([n],{type:"font/ttf"}),c=URL.createObjectURL(r),g=document.createElement("style");return g.textContent=`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: "${o}";
|
|
4
|
-
src: url(${c}) format('truetype');
|
|
5
|
-
font-weight: ${e?.weight??"normal"};
|
|
6
|
-
font-display: swap;
|
|
7
|
-
}
|
|
8
|
-
`,document.head.appendChild(g),await b(o,3e3),y.add(i),l.add(o),F([o]),!0}catch(r){return m(r,`failed to load "${o}" from buffer`),false}finally{f.delete(i),d.size===0&&f.size===0&&(u=false);}})();return f.set(i,s),s}function C(t){let n=t.split("?")[0].split("#")[0].toLowerCase();return n.endsWith(".woff2")?"woff2":n.endsWith(".woff")?"woff":n.endsWith(".otf")?"opentype":"truetype"}async function $(t,n,e){if(typeof document>"u")return false;if(/[<>]/.test(n))return m(new Error(`invalid src URL for "${t}": contains '<' or '>'`),"rejected src"),false;let o=t.trim(),i=x(o,e?.weight);if(y.has(i))return true;let a=f.get(i);if(a)return a;let s=(async()=>{u=true;try{let r=document.createElement("style");return r.textContent=`
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: "${o}";
|
|
11
|
-
src: url(${JSON.stringify(n)}) format('${C(n)}');
|
|
12
|
-
font-weight: ${e?.weight??"normal"};
|
|
13
|
-
font-display: swap;
|
|
14
|
-
}
|
|
15
|
-
`,document.head.appendChild(r),await b(o,3e3),y.add(i),l.add(o),F([o]),!0}catch(r){return m(r,`failed to load "${o}" from ${n}`),false}finally{f.delete(i),d.size===0&&f.size===0&&(u=false);}})();return f.set(i,s),s}async function D(t){!t||t.length===0||await Promise.all(t.map(n=>$(n.family,n.src,{weight:n.weight})));}var k={Calibri:"Carlito",Cambria:"Caladea",Arial:"Arimo","Times New Roman":"Tinos","Courier New":"Cousine",Garamond:"EB Garamond","Book Antiqua":"EB Garamond",Georgia:"Tinos",Verdana:"Open Sans",Tahoma:"Open Sans","Trebuchet MS":"Source Sans Pro","Century Gothic":"Poppins","Franklin Gothic":"Libre Franklin",Palatino:"EB Garamond","Palatino Linotype":"EB Garamond","Lucida Sans":"Open Sans","Segoe UI":"Open Sans",Impact:"Anton","Comic Sans MS":"Comic Neue",Consolas:"Inconsolata","Lucida Console":"Inconsolata",Monaco:"Fira Code"};function S(t){let n=t.trim();return k[n]||n}async function E(t){let n=t.trim(),e=S(n);if(e!==n){let o=await h(e);return o&&l.add(n),o}return h(e)}async function v(t){let n=[...new Set(t.map(e=>e.trim()))];await Promise.all(n.map(e=>E(e)));}async function W(){await A(["Carlito","Caladea","Arimo","Tinos","Cousine","EB Garamond"]);}function B(t){let n=new Set,e=t;if(!e?.package)return n;let o=e.package?.document?.content;if(Array.isArray(o)){for(let a of o)if(a?.type==="paragraph"&&Array.isArray(a.content)){for(let s of a.content)if(s?.type==="run"&&s.formatting?.fontFamily){let{ascii:r,hAnsi:c}=s.formatting.fontFamily;r&&n.add(r),c&&c!==r&&n.add(c);}}}let i=e.package?.styles?.styles;if(Array.isArray(i)){for(let a of i)if(a?.runProperties?.fontFamily){let{ascii:s,hAnsi:r}=a.runProperties.fontFamily;s&&n.add(s),r&&r!==s&&n.add(r);}}return n}async function O(t){let n=B(t);n.size!==0&&await v(Array.from(n));}async function j(t){if(t instanceof ArrayBuffer)return t;if(t instanceof Uint8Array){let n=new ArrayBuffer(t.byteLength);return new Uint8Array(n).set(t),n}if(t instanceof Blob)return t.arrayBuffer();throw new TypeError(`Unsupported DocxInput type: ${typeof t}`)}exports.a=h;exports.b=A;exports.c=T;exports.d=z;exports.e=G;exports.f=U;exports.g=I;exports.h=M;exports.i=R;exports.j=$;exports.k=D;exports.l=k;exports.m=S;exports.n=E;exports.o=v;exports.p=W;exports.q=B;exports.r=O;exports.s=j;
|
package/dist/chunk-NAFMAKLK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkC2BAPYGJ_js=require('./chunk-C2BAPYGJ.js');function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e){return e==null||!Number.isFinite(e)?"0":String(Math.round(e))}var x='xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16du="http://schemas.microsoft.com/office/word/2023/wordml/word16du" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16sdtfl="http://schemas.microsoft.com/office/word/2024/wordml/sdtformatlock" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"',y='mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14"';function R(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function ze(e){return `<w:headerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function ke(e){return `<w:footerReference ${[`w:type="${e.type}"`,`r:id="${e.rId}"`].join(" ")}/>`}function Re(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:footnotePr>${t.join("")}</w:footnotePr>`}function Ie(e){if(!e)return "";let t=[];return e.position&&t.push(`<w:pos w:val="${e.position}"/>`),e.numFmt&&t.push(`<w:numFmt w:val="${e.numFmt}"/>`),e.numStart!==void 0&&t.push(`<w:numStart w:val="${e.numStart}"/>`),e.numRestart&&t.push(`<w:numRestart w:val="${e.numRestart}"/>`),t.length===0?"":`<w:endnotePr>${t.join("")}</w:endnotePr>`}function je(e){let t=[];return e.pageWidth!==void 0&&t.push(`w:w="${s(e.pageWidth)}"`),e.pageHeight!==void 0&&t.push(`w:h="${s(e.pageHeight)}"`),e.orientation==="landscape"&&t.push('w:orient="landscape"'),t.length===0?"":`<w:pgSz ${t.join(" ")}/>`}function Be(e){let t=[];return e.marginTop!==void 0&&t.push(`w:top="${s(e.marginTop)}"`),e.marginRight!==void 0&&t.push(`w:right="${s(e.marginRight)}"`),e.marginBottom!==void 0&&t.push(`w:bottom="${s(e.marginBottom)}"`),e.marginLeft!==void 0&&t.push(`w:left="${s(e.marginLeft)}"`),e.headerDistance!==void 0&&t.push(`w:header="${s(e.headerDistance)}"`),e.footerDistance!==void 0&&t.push(`w:footer="${s(e.footerDistance)}"`),e.gutter!==void 0&&t.push(`w:gutter="${s(e.gutter)}"`),t.length===0?"":`<w:pgMar ${t.join(" ")}/>`}function Ae(e){if(!e.columnCount&&!e.columns?.length)return "";let t=[];e.columnCount!==void 0&&e.columnCount>1&&t.push(`w:num="${s(e.columnCount)}"`),e.columnSpace!==void 0&&t.push(`w:space="${s(e.columnSpace)}"`),e.equalWidth!==void 0&&t.push(`w:equalWidth="${e.equalWidth?"1":"0"}"`),e.separator&&t.push('w:sep="1"');let n="";return e.columns&&e.columns.length>0&&(n=e.columns.map(i=>{let o=[];return i.width!==void 0&&o.push(`w:w="${s(i.width)}"`),i.space!==void 0&&o.push(`w:space="${s(i.space)}"`),`<w:col ${o.join(" ")}/>`}).join("")),t.length===0&&!n?"":`<w:cols${t.length>0?" "+t.join(" "):""}>${n}</w:cols>`}function Ee(e){if(!e.lineNumbers)return "";let t=e.lineNumbers,n=[];return t.countBy!==void 0&&n.push(`w:countBy="${s(t.countBy)}"`),t.start!==void 0&&n.push(`w:start="${s(t.start)}"`),t.distance!==void 0&&n.push(`w:distance="${s(t.distance)}"`),t.restart&&n.push(`w:restart="${t.restart}"`),n.length===0?"":`<w:lnNumType ${n.join(" ")}/>`}function De(e){if(!e.pageBorders)return "";let t=e.pageBorders,n=[],r=[];if(t.display&&n.push(`w:display="${t.display}"`),t.offsetFrom&&n.push(`w:offsetFrom="${t.offsetFrom}"`),t.zOrder&&n.push(`w:zOrder="${t.zOrder}"`),t.top){let o=R(t.top,"top");o&&r.push(o);}if(t.left){let o=R(t.left,"left");o&&r.push(o);}if(t.bottom){let o=R(t.bottom,"bottom");o&&r.push(o);}if(t.right){let o=R(t.right,"right");o&&r.push(o);}return r.length===0?"":`<w:pgBorders${n.length>0?" "+n.join(" "):""}>${r.join("")}</w:pgBorders>`}function Xe(e){if(!e.docGrid)return "";let t=e.docGrid,n=[];return t.type&&n.push(`w:type="${t.type}"`),t.linePitch!==void 0&&n.push(`w:linePitch="${t.linePitch}"`),t.charSpace!==void 0&&n.push(`w:charSpace="${t.charSpace}"`),n.length===0?"":`<w:docGrid ${n.join(" ")}/>`}function I(e){if(!e)return "";let t=[];if(e.headerReferences)for(let p of e.headerReferences)t.push(ze(p));if(e.footerReferences)for(let p of e.footerReferences)t.push(ke(p));let n=Re(e.footnotePr);n&&t.push(n);let r=Ie(e.endnotePr);r&&t.push(r),e.sectionStart&&t.push(`<w:type w:val="${e.sectionStart}"/>`);let i=je(e);i&&t.push(i);let o=Be(e);if(o&&t.push(o),e.paperSrcFirst!==void 0||e.paperSrcOther!==void 0){let p=[];e.paperSrcFirst!==void 0&&p.push(`w:first="${e.paperSrcFirst}"`),e.paperSrcOther!==void 0&&p.push(`w:other="${e.paperSrcOther}"`),t.push(`<w:paperSrc ${p.join(" ")}/>`);}let c=De(e);c&&t.push(c);let l=Ee(e);l&&t.push(l);let u=Ae(e);u&&t.push(u),e.verticalAlign&&t.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.titlePg&&t.push("<w:titlePg/>"),e.bidi&&t.push("<w:bidi/>");let f=Xe(e);return f&&t.push(f),e.evenAndOddHeaders&&t.push("<w:evenAndOddHeaders/>"),t.length===0?"":`<w:sectPr>${t.join("")}</w:sectPr>`}function Me(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}var Le=["top","left","bottom","right","between","bar"];function q(e){if(!e)return "";let t=[];for(let n of Le){let r=Me(e[n],n);r&&t.push(r);}return t.length===0?"":`<w:pBdr>${t.join("")}</w:pBdr>`}function G(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function _(e){return !e||e.length===0?"":`<w:tabs>${e.map(n=>{let r=[`w:val="${n.alignment}"`,`w:pos="${s(n.position)}"`];return n.leader&&n.leader!=="none"&&r.push(`w:leader="${n.leader}"`),`<w:tab ${r.join(" ")}/>`}).join("")}</w:tabs>`}function V(e){let t=[];return e.spaceBefore!==void 0&&t.push(`w:before="${s(e.spaceBefore)}"`),e.spaceAfter!==void 0&&t.push(`w:after="${s(e.spaceAfter)}"`),e.lineSpacing!==void 0&&t.push(`w:line="${s(e.lineSpacing)}"`),e.lineSpacingRule&&t.push(`w:lineRule="${e.lineSpacingRule}"`),e.beforeAutospacing&&t.push('w:beforeAutospacing="1"'),e.afterAutospacing&&t.push('w:afterAutospacing="1"'),t.length===0?"":`<w:spacing ${t.join(" ")}/>`}function U(e){let t=[];return e.indentLeft!==void 0&&t.push(`w:left="${s(e.indentLeft)}"`),e.indentRight!==void 0&&t.push(`w:right="${s(e.indentRight)}"`),e.indentFirstLine!==void 0&&(e.hangingIndent?t.push(`w:hanging="${s(Math.abs(e.indentFirstLine))}"`):e.indentFirstLine!==0&&t.push(`w:firstLine="${s(e.indentFirstLine)}"`)),t.length===0?"":`<w:ind ${t.join(" ")}/>`}function Y(e){if(!e)return "";let t=[];return e.ilvl!==void 0&&t.push(`<w:ilvl w:val="${s(e.ilvl)}"/>`),e.numId!==void 0&&t.push(`<w:numId w:val="${s(e.numId)}"/>`),t.length===0?"":`<w:numPr>${t.join("")}</w:numPr>`}function Z(e){if(!e)return "";let t=[];return e.width!==void 0&&t.push(`w:w="${s(e.width)}"`),e.height!==void 0&&t.push(`w:h="${s(e.height)}"`),e.hAnchor&&t.push(`w:hAnchor="${e.hAnchor}"`),e.vAnchor&&t.push(`w:vAnchor="${e.vAnchor}"`),e.x!==void 0&&t.push(`w:x="${s(e.x)}"`),e.y!==void 0&&t.push(`w:y="${s(e.y)}"`),e.xAlign&&t.push(`w:xAlign="${e.xAlign}"`),e.yAlign&&t.push(`w:yAlign="${e.yAlign}"`),e.wrap&&t.push(`w:wrap="${e.wrap}"`),t.length===0?"":`<w:framePr ${t.join(" ")}/>`}function K(e){let t=[`w:id="${e.id}"`,`w:name="${a(e.name)}"`];return e.colFirst!==void 0&&t.push(`w:colFirst="${e.colFirst}"`),e.colLast!==void 0&&t.push(`w:colLast="${e.colLast}"`),`<w:bookmarkStart ${t.join(" ")}/>`}function Q(e){return `<w:bookmarkEnd w:id="${e.id}"/>`}function W(e){let t=[];e.rId&&t.push(`r:id="${e.rId}"`),e.anchor&&t.push(`w:anchor="${a(e.anchor)}"`),e.tooltip&&t.push(`w:tooltip="${a(e.tooltip)}"`),e.target&&t.push(`w:tgtFrame="${a(e.target)}"`),e.history===false&&t.push('w:history="0"'),e.docLocation&&t.push(`w:docLocation="${a(e.docLocation)}"`);let n=e.children.map(i=>i.type==="run"?P(i):i.type==="bookmarkStart"?K(i):i.type==="bookmarkEnd"?Q(i):"").join("");return `<w:hyperlink${t.length>0?" "+t.join(" "):""}>${n}</w:hyperlink>`}function ee(e){let t=[],n=e.content.find(l=>l.type==="run"),r=n?.formatting?T(n.formatting):"",i=['w:fldCharType="begin"'];e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`);let c=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${c}>${a(e.instruction)}</w:instrText></w:r>`),t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`);for(let l of e.content)l.type==="run"&&t.push(P(l));return t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function te(e){let t=[],n=e.fieldResult?.[0]?.formatting,r=n?T(n):"",i=['w:fldCharType="begin"'];if(e.fldLock&&i.push('w:fldLock="true"'),t.push(`<w:r>${r}<w:fldChar ${i.join(" ")}/></w:r>`),e.fieldCode.length>0)t.push(...e.fieldCode.map(o=>P(o)));else {let c=e.instruction.startsWith(" ")||e.instruction.endsWith(" ")||e.instruction.includes(" ")?' xml:space="preserve"':"";t.push(`<w:r>${r}<w:instrText${c}>${a(e.instruction)}</w:instrText></w:r>`);}return t.push(`<w:r>${r}<w:fldChar w:fldCharType="separate"/></w:r>`),t.push(...e.fieldResult.map(o=>P(o))),t.push(`<w:r>${r}<w:fldChar w:fldCharType="end"/></w:r>`),t.join("")}function ne(e){let t=e.properties,n=[];switch(t.alias&&n.push(`<w:alias w:val="${a(t.alias)}"/>`),t.tag&&n.push(`<w:tag w:val="${a(t.tag)}"/>`),t.lock&&t.lock!=="unlocked"&&n.push(`<w:lock w:val="${t.lock}"/>`),t.showingPlaceholder&&n.push("<w:showingPlcHdr/>"),t.sdtType){case "plainText":n.push("<w:text/>");break;case "date":t.dateFormat?n.push(`<w:date w:fullDate="${a(t.dateFormat)}"/>`):n.push("<w:date/>");break;case "dropDownList":{let i=(t.listItems??[]).map(o=>`<w:listItem w:displayText="${a(o.displayText)}" w:value="${a(o.value)}"/>`).join("");n.push(`<w:dropDownList>${i}</w:dropDownList>`);break}case "comboBox":{let i=(t.listItems??[]).map(o=>`<w:listItem w:displayText="${a(o.displayText)}" w:value="${a(o.value)}"/>`).join("");n.push(`<w:comboBox>${i}</w:comboBox>`);break}case "checkbox":n.push(`<w14:checkbox><w14:checked w14:val="${t.checked?"1":"0"}"/></w14:checkbox>`);break;case "picture":n.push("<w:picture/>");break}let r=e.content.map(i=>{switch(i.type){case "run":return P(i);case "hyperlink":return W(i);case "simpleField":return ee(i);case "complexField":return te(i);case "inlineSdt":return ne(i);case "mathEquation":return i.ommlXml||"";default:return i}}).join("");return `<w:sdt><w:sdtPr>${n.join("")}</w:sdtPr><w:sdtContent>${r}</w:sdtContent></w:sdt>`}function J(e,t){let n=[`w:id="${t.id}"`,`w:name="${a(t.name)}"`];return `<w:${e} ${n.join(" ")}/>`}function j(e,t){let n=t.info,r=Number.isInteger(n.id)&&n.id>=0?n.id:0,i=typeof n.author=="string"?n.author.trim():"",o=i.length>0?i:"Unknown",c=typeof n.date=="string"?n.date.trim():void 0,l=[`w:id="${r}"`,`w:author="${a(o)}"`];c&&l.push(`w:date="${a(c)}"`);let u=t.content.map(f=>{if(f.type==="run"){let p=P(f),w=f.content.some(m=>m.type==="drawing");return (e==="del"||e==="moveFrom")&&!w?p.replace(/<w:t\b/g,"<w:delText").replace(/<\/w:t>/g,"</w:delText>").replace(/<w:instrText\b/g,"<w:delInstrText").replace(/<\/w:instrText>/g,"</w:delInstrText>"):p}return f.type==="hyperlink"?W(f):""}).join("");return `<w:${e} ${l.join(" ")}>${u}</w:${e}>`}function re(e){switch(e.type){case "run":return P(e);case "hyperlink":return W(e);case "bookmarkStart":return K(e);case "bookmarkEnd":return Q(e);case "simpleField":return ee(e);case "complexField":return te(e);case "inlineSdt":return ne(e);case "commentRangeStart":return `<w:commentRangeStart w:id="${e.id}"/>`;case "commentRangeEnd":return `<w:commentRangeEnd w:id="${e.id}"/><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="${e.id}"/></w:r>`;case "insertion":return j("ins",e);case "deletion":return j("del",e);case "moveFrom":return j("moveFrom",e);case "moveTo":return j("moveTo",e);case "moveFromRangeStart":return J("moveFromRangeStart",e);case "moveFromRangeEnd":return `<w:moveFromRangeEnd w:id="${e.id}"/>`;case "moveToRangeStart":return J("moveToRangeStart",e);case "moveToRangeEnd":return `<w:moveToRangeEnd w:id="${e.id}"/>`;case "mathEquation":return e.ommlXml||"";default:return ""}}function ie(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"&&e.author.length>0?e.author:"Unknown",r=[`w:id="${t}"`,`w:author="${a(n)}"`],i=typeof e.date=="string"&&e.date.length>0?e.date:void 0;return i&&r.push(`w:date="${a(i)}"`),r.join(" ")}function We(e,t,n){let r=[];if(t&&r.push(`<w:ins ${ie(t)}/>`),n&&r.push(`<w:del ${ie(n)}/>`),e?.runProperties){let i=T(e.runProperties);if(i)if(i.startsWith("<w:rPr>")&&i.endsWith("</w:rPr>")){let o=i.slice(7,-8);o.length>0&&r.push(o);}else i.startsWith("<w:rPr/>")||r.push(i);}return r.length===0?"":`<w:rPr>${r.join("")}</w:rPr>`}function oe(e,t,n,r,i){let o=[];if(e){e.styleId&&o.push(`<w:pStyle w:val="${a(e.styleId)}"/>`),e.keepNext===true?o.push("<w:keepNext/>"):e.keepNext===false&&o.push('<w:keepNext w:val="0"/>'),e.keepLines===true?o.push("<w:keepLines/>"):e.keepLines===false&&o.push('<w:keepLines w:val="0"/>'),e.contextualSpacing===true?o.push("<w:contextualSpacing/>"):e.contextualSpacing===false&&o.push('<w:contextualSpacing w:val="0"/>'),e.pageBreakBefore===true?o.push("<w:pageBreakBefore/>"):e.pageBreakBefore===false&&o.push('<w:pageBreakBefore w:val="0"/>');let c=Z(e.frame);c&&o.push(c),e.widowControl===false?o.push('<w:widowControl w:val="0"/>'):e.widowControl===true&&o.push("<w:widowControl/>");let l=Y(e.numPr);l&&o.push(l);let u=q(e.borders);u&&o.push(u);let f=G(e.shading);f&&o.push(f);let p=_(e.tabs);p&&o.push(p),e.suppressLineNumbers===true?o.push("<w:suppressLineNumbers/>"):e.suppressLineNumbers===false&&o.push('<w:suppressLineNumbers w:val="0"/>'),e.suppressAutoHyphens===true?o.push("<w:suppressAutoHyphens/>"):e.suppressAutoHyphens===false&&o.push('<w:suppressAutoHyphens w:val="0"/>');let w=V(e);w&&o.push(w);let m=U(e);m&&o.push(m),e.bidi===true?o.push("<w:bidi/>"):e.bidi===false&&o.push('<w:bidi w:val="0"/>'),e.alignment&&o.push(`<w:jc w:val="${e.alignment}"/>`),e.outlineLevel!==void 0&&o.push(`<w:outlineLvl w:val="${e.outlineLevel}"/>`);}if(!i?.baseOnly){let c=We(e,n??void 0,r??void 0);if(c&&o.push(c),i?.sectionProperties){let l=I(i.sectionProperties);l&&o.push(l);}t&&t.length>0&&o.push(Oe(t[0]));}return o.length===0?"":`<w:pPr>${o.join("")}</w:pPr>`}function He(e){return !e.startsWith("<w:pPr>")||!e.endsWith("</w:pPr>")?"":e.slice(7,-8)}function Oe(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${a(r)}"`];i&&o.push(`w:date="${a(i)}"`);let c=oe(e.previousFormatting,void 0,void 0,void 0,{baseOnly:true})||"<w:pPr/>",l=He(c),u=l.length>0?`<w:pPr>${l}</w:pPr>`:"<w:pPr/>";return `<w:pPrChange ${o.join(" ")}>${u}</w:pPrChange>`}function v(e){let t=[],n=[];e.paraId&&n.push(`w14:paraId="${e.paraId}"`),e.textId&&n.push(`w14:textId="${e.textId}"`);let r=n.length>0?" "+n.join(" "):"",i=oe(e.formatting,e.propertyChanges,e.pPrIns,e.pPrDel,e.sectionProperties?{sectionProperties:e.sectionProperties}:void 0);i&&t.push(i);let o=!!e.renderedPageBreakBefore;for(let c of e.content){let l=re(c);if(l){if(o){let u=Ne(l);u&&(l=u,o=false);}t.push(l);}}return `<w:p${r}>${t.join("")}</w:p>`}function Ne(e){let t=/<w:r(?=[\s>/])[^>]*>/;return t.test(e)?e.replace(t,n=>`${n}<w:lastRenderedPageBreak/>`):null}var se=1e5;function O(){se=1e5;}function ae(e){return e!=null&&e!==""&&e!==0?String(e):String(se++)}function H(e){if(!e)return "";if(e.rgb)return `<a:srgbClr val="${e.rgb.replace("#","")}"/>`;if(e.themeColor){let t=`<a:schemeClr val="${e.themeColor}"`;return e.themeTint?t+=`><a:tint val="${e.themeTint}"/></a:schemeClr>`:e.themeShade?t+=`><a:shade val="${e.themeShade}"/></a:schemeClr>`:t+="/>",t}return ""}function qe(e){if(!e||e.type==="none")return "<a:noFill/>";if(e.type==="solid"&&e.color)return `<a:solidFill>${H(e.color)}</a:solidFill>`;if(e.type==="gradient"&&e.gradient){let t=e.gradient,n=t.stops.map(i=>`<a:gs pos="${i.position}">${H(i.color)}</a:gs>`).join(""),r=t.type==="linear"?`<a:lin ang="${(t.angle||0)*6e4}" scaled="1"/>`:"";return `<a:gradFill><a:gsLst>${n}</a:gsLst>${r}</a:gradFill>`}return ""}function le(e){if(!e)return "";let t=[];e.width!=null&&t.push(`w="${e.width}"`),e.cap&&t.push(`cap="${e.cap}"`);let n=[];return e.color&&n.push(`<a:solidFill>${H(e.color)}</a:solidFill>`),e.style&&e.style!=="solid"&&n.push(`<a:prstDash val="${e.style}"/>`),e.headEnd&&n.push(`<a:headEnd type="${e.headEnd.type}"${e.headEnd.width?` w="${e.headEnd.width}"`:""}${e.headEnd.length?` len="${e.headEnd.length}"`:""}/>`),e.tailEnd&&n.push(`<a:tailEnd type="${e.tailEnd.type}"${e.tailEnd.width?` w="${e.tailEnd.width}"`:""}${e.tailEnd.length?` len="${e.tailEnd.length}"`:""}/>`),n.length===0&&t.length===0?"":`<a:ln${t.length?" "+t.join(" "):""}>${n.join("")}</a:ln>`}function ce(e){let t=[],n=e.horizontal;t.push(`<wp:positionH relativeFrom="${n.relativeTo}">`),n.alignment?t.push(`<wp:align>${n.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(n.posOffset)}</wp:posOffset>`),t.push("</wp:positionH>");let r=e.vertical;return t.push(`<wp:positionV relativeFrom="${r.relativeTo}">`),r.alignment?t.push(`<wp:align>${r.alignment}</wp:align>`):t.push(`<wp:posOffset>${s(r.posOffset)}</wp:posOffset>`),t.push("</wp:positionV>"),t.join("")}function pe(e){let t=e.wrapText?` wrapText="${e.wrapText}"`:' wrapText="bothSides"';switch(e.type){case "square":return `<wp:wrapSquare${t}/>`;case "tight":return `<wp:wrapTight${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapTight>`;case "through":return `<wp:wrapThrough${t}><wp:wrapPolygon edited="0"><wp:start x="0" y="0"/><wp:lineTo x="0" y="21600"/><wp:lineTo x="21600" y="21600"/><wp:lineTo x="21600" y="0"/><wp:lineTo x="0" y="0"/></wp:wrapPolygon></wp:wrapThrough>`;case "topAndBottom":return "<wp:wrapTopAndBottom/>";case "behind":case "inFront":return "<wp:wrapNone/>";default:return "<wp:wrapNone/>"}}function Ge(e,t){let n=e.size.width,r=e.size.height,i=e.rId||"rId1",o=t,c=e.filename||`image${o}`,l="";e.transform?.rotation&&(l+=` rot="${Math.round(e.transform.rotation*6e4)}"`),e.transform?.flipH&&(l+=' flipH="1"'),e.transform?.flipV&&(l+=' flipV="1"');let u=e.opacity!==void 0&&e.opacity<1?`<a:alphaModFix amt="${Math.round(Math.max(0,Math.min(1,e.opacity))*1e5)}"/>`:"",f=u?`<a:blip r:embed="${i}">${u}</a:blip>`:`<a:blip r:embed="${i}"/>`,p=[];e.crop?.left&&p.push(`l="${Math.round(e.crop.left*1e5)}"`),e.crop?.top&&p.push(`t="${Math.round(e.crop.top*1e5)}"`),e.crop?.right&&p.push(`r="${Math.round(e.crop.right*1e5)}"`),e.crop?.bottom&&p.push(`b="${Math.round(e.crop.bottom*1e5)}"`);let w=p.length>0?`<a:srcRect ${p.join(" ")}/>`:"";return ['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">','<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">',"<pic:nvPicPr>",`<pic:cNvPr id="${o}" name="${a(c)}"${e.alt?` descr="${a(e.alt)}"`:""}/>`,"<pic:cNvPicPr/>","</pic:nvPicPr>","<pic:blipFill>",f,w,"<a:stretch><a:fillRect/></a:stretch>","</pic:blipFill>","<pic:spPr>",`<a:xfrm${l}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",'<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',e.outline?le(e.outline):"","</pic:spPr>","</pic:pic>","</a:graphicData>","</a:graphic>"].join("")}function ue(e){let t=e.image,n=t.wrap.type!=="inline",r=t.size.width,i=t.size.height,o=t.wrap.distT??0,c=t.wrap.distB??0,l=t.wrap.distL??0,u=t.wrap.distR??0,f=t.padding?.left??0,p=t.padding?.top??0,w=t.padding?.right??0,m=t.padding?.bottom??0,k=`<wp:effectExtent l="${s(f)}" t="${s(p)}" r="${s(w)}" b="${s(m)}"/>`,g=ae(t.id),E=t.title||t.filename||`Picture ${g}`,F=Ge(t,g);if(!n)return ["<w:drawing>",`<wp:inline distT="${s(o)}" distB="${s(c)}" distL="${s(l)}" distR="${s(u)}">`,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,k,`<wp:docPr id="${g}" name="${a(E)}"${t.alt?` descr="${a(t.alt)}"`:""}${t.decorative?' hidden="1"':""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',F,"</wp:inline>","</w:drawing>"].join("");let D=t.wrap.type==="behind"?"1":"0",X=t.position?ce(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',M=pe(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(o)}" distB="${s(c)}" distL="${s(l)}" distR="${s(u)}" simplePos="0" relativeHeight="251658240" behindDoc="${D}" locked="0" layoutInCell="${t.layoutInCell===false?"0":"1"}" allowOverlap="${t.allowOverlap===false?"0":"1"}">`,'<wp:simplePos x="0" y="0"/>',X,`<wp:extent cx="${s(r)}" cy="${s(i)}"/>`,k,M,`<wp:docPr id="${g}" name="${a(E)}"${t.alt?` descr="${a(t.alt)}"`:""}/>`,'<wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></wp:cNvGraphicFramePr>',F,"</wp:anchor>","</w:drawing>"].join("")}function _e(e){return e.map(t=>v(t)).join("")}function fe(e){let t=e.shape,n=t.size.width,r=t.size.height,i=t.shapeType==="textBox",o=t.wrap&&t.wrap.type!=="inline",c=t.wrap?.distT??0,l=t.wrap?.distB??0,u=t.wrap?.distL??0,f=t.wrap?.distR??0,p=ae(t.id),w=t.name||(i?`TextBox ${p}`:`Shape ${p}`),m="";t.transform?.rotation&&(m+=` rot="${Math.round(t.transform.rotation*6e4)}"`),t.transform?.flipH&&(m+=' flipH="1"'),t.transform?.flipV&&(m+=' flipV="1"');let k=["<wps:spPr>",`<a:xfrm${m}>`,'<a:off x="0" y="0"/>',`<a:ext cx="${s(n)}" cy="${s(r)}"/>`,"</a:xfrm>",`<a:prstGeom prst="${t.shapeType==="textBox"?"rect":t.shapeType}"><a:avLst/></a:prstGeom>`,qe(t.fill),le(t.outline),"</wps:spPr>"].join(""),g="";if(t.textBody){let d=t.textBody,$=['rot="0"','vert="horz"'];d.anchor&&$.push(`anchor="${d.anchor==="middle"?"ctr":d.anchor}"`),d.anchorCenter&&$.push('anchorCtr="1"'),d.margins&&(d.margins.left!=null&&$.push(`lIns="${s(d.margins.left)}"`),d.margins.top!=null&&$.push(`tIns="${s(d.margins.top)}"`),d.margins.right!=null&&$.push(`rIns="${s(d.margins.right)}"`),d.margins.bottom!=null&&$.push(`bIns="${s(d.margins.bottom)}"`)),i?g=["<wps:txbx><w:txbxContent>",_e(d.content),"</w:txbxContent></wps:txbx>",`<wps:bodyPr ${$.join(" ")}/>`].join(""):g=[`<wps:bodyPr ${$.join(" ")}/>`].join("");}let F=['<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">','<a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">',["<wps:wsp>",`<wps:cNvSpPr${i?' txBox="1"':""}/>`,k,g,"</wps:wsp>"].join(""),"</a:graphicData>","</a:graphic>"].join("");if(!o)return ["<w:drawing>",`<wp:inline distT="${s(c)}" distB="${s(l)}" distL="${s(u)}" distR="${s(f)}">`,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',`<wp:docPr id="${p}" name="${a(w)}"/>`,"<wp:cNvGraphicFramePr/>",F,"</wp:inline>","</w:drawing>"].join("");let D=t.wrap?.type==="behind"?"1":"0",X=t.position?ce(t.position):'<wp:positionH relativeFrom="column"><wp:posOffset>0</wp:posOffset></wp:positionH><wp:positionV relativeFrom="paragraph"><wp:posOffset>0</wp:posOffset></wp:positionV>',M=pe(t.wrap);return ["<w:drawing>",`<wp:anchor distT="${s(c)}" distB="${s(l)}" distL="${s(u)}" distR="${s(f)}" simplePos="0" relativeHeight="251658240" behindDoc="${D}" locked="0" layoutInCell="1" allowOverlap="1">`,'<wp:simplePos x="0" y="0"/>',X,`<wp:extent cx="${s(n)}" cy="${s(r)}"/>`,'<wp:effectExtent l="0" t="0" r="0" b="0"/>',M,`<wp:docPr id="${p}" name="${a(w)}"/>`,"<wp:cNvGraphicFramePr/>",F,"</wp:anchor>","</w:drawing>"].join("")}var Ve=new Set(["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","red","white","yellow"]);function Ue(e){if(!e)return "";let t=[];return e.auto?t.push('w:val="auto"'):e.rgb&&t.push(`w:val="${e.rgb}"`),e.themeColor&&t.push(`w:themeColor="${e.themeColor}"`),e.themeTint&&t.push(`w:themeTint="${e.themeTint}"`),e.themeShade&&t.push(`w:themeShade="${e.themeShade}"`),t.length===0?"":`<w:color ${t.join(" ")}/>`}function Ye(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function T(e){if(!e)return "";let t=[];if(e.styleId&&t.push(`<w:rStyle w:val="${a(e.styleId)}"/>`),e.fontFamily){let i=[];e.fontFamily.ascii&&i.push(`w:ascii="${a(e.fontFamily.ascii)}"`),e.fontFamily.hAnsi&&i.push(`w:hAnsi="${a(e.fontFamily.hAnsi)}"`),e.fontFamily.eastAsia&&i.push(`w:eastAsia="${a(e.fontFamily.eastAsia)}"`),e.fontFamily.cs&&i.push(`w:cs="${a(e.fontFamily.cs)}"`),e.fontFamily.asciiTheme&&i.push(`w:asciiTheme="${e.fontFamily.asciiTheme}"`),e.fontFamily.hAnsiTheme&&i.push(`w:hAnsiTheme="${e.fontFamily.hAnsiTheme}"`),e.fontFamily.eastAsiaTheme&&i.push(`w:eastAsiaTheme="${e.fontFamily.eastAsiaTheme}"`),e.fontFamily.csTheme&&i.push(`w:csTheme="${e.fontFamily.csTheme}"`),i.length>0&&t.push(`<w:rFonts ${i.join(" ")}/>`);}e.bold===true?t.push("<w:b/>"):e.bold===false&&t.push('<w:b w:val="0"/>'),e.boldCs===true?t.push("<w:bCs/>"):e.boldCs===false&&t.push('<w:bCs w:val="0"/>'),e.italic===true?t.push("<w:i/>"):e.italic===false&&t.push('<w:i w:val="0"/>'),e.italicCs===true?t.push("<w:iCs/>"):e.italicCs===false&&t.push('<w:iCs w:val="0"/>'),e.allCaps===true?t.push("<w:caps/>"):e.allCaps===false&&t.push('<w:caps w:val="0"/>'),e.smallCaps===true?t.push("<w:smallCaps/>"):e.smallCaps===false&&t.push('<w:smallCaps w:val="0"/>'),e.strike===true?t.push("<w:strike/>"):e.strike===false&&t.push('<w:strike w:val="0"/>'),e.doubleStrike===true?t.push("<w:dstrike/>"):e.doubleStrike===false&&t.push('<w:dstrike w:val="0"/>'),e.outline===true?t.push("<w:outline/>"):e.outline===false&&t.push('<w:outline w:val="0"/>'),e.shadow===true?t.push("<w:shadow/>"):e.shadow===false&&t.push('<w:shadow w:val="0"/>'),e.emboss===true?t.push("<w:emboss/>"):e.emboss===false&&t.push('<w:emboss w:val="0"/>'),e.imprint===true?t.push("<w:imprint/>"):e.imprint===false&&t.push('<w:imprint w:val="0"/>'),e.hidden===true?t.push("<w:vanish/>"):e.hidden===false&&t.push('<w:vanish w:val="0"/>');let n=Ue(e.color);if(n&&t.push(n),e.spacing!==void 0&&t.push(`<w:spacing w:val="${s(e.spacing)}"/>`),e.scale!==void 0&&t.push(`<w:w w:val="${s(e.scale)}"/>`),e.kerning!==void 0&&t.push(`<w:kern w:val="${s(e.kerning)}"/>`),e.position!==void 0&&t.push(`<w:position w:val="${s(e.position)}"/>`),e.fontSize!==void 0&&t.push(`<w:sz w:val="${s(e.fontSize)}"/>`),e.fontSizeCs!==void 0&&t.push(`<w:szCs w:val="${s(e.fontSizeCs)}"/>`),e.highlight&&e.highlight!=="none"){if(Ve.has(e.highlight))t.push(`<w:highlight w:val="${e.highlight}"/>`);else if(!e.shading){let i=e.highlight.replace(/^#/,"");/^[0-9a-fA-F]{6}$/.test(i)&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`);}}if(e.underline){let i=[`w:val="${e.underline.style}"`];e.underline.color&&(e.underline.color.rgb&&i.push(`w:color="${e.underline.color.rgb}"`),e.underline.color.themeColor&&i.push(`w:themeColor="${e.underline.color.themeColor}"`),e.underline.color.themeTint&&i.push(`w:themeTint="${e.underline.color.themeTint}"`),e.underline.color.themeShade&&i.push(`w:themeShade="${e.underline.color.themeShade}"`)),t.push(`<w:u ${i.join(" ")}/>`);}e.effect&&e.effect!=="none"&&t.push(`<w:effect w:val="${e.effect}"/>`),e.emphasisMark&&e.emphasisMark!=="none"&&t.push(`<w:em w:val="${e.emphasisMark}"/>`);let r=Ye(e.shading);return r&&t.push(r),e.vertAlign&&e.vertAlign!=="baseline"&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),e.rtl===true?t.push("<w:rtl/>"):e.rtl===false&&t.push('<w:rtl w:val="0"/>'),e.cs===true?t.push("<w:cs/>"):e.cs===false&&t.push('<w:cs w:val="0"/>'),t.length===0?"":`<w:rPr>${t.join("")}</w:rPr>`}function Ze(e){return !e.startsWith("<w:rPr>")||!e.endsWith("</w:rPr>")?"":e.slice(7,-8)}function Je(e){let t=Number.isInteger(e.info.id)&&e.info.id>=0?e.info.id:0,n=typeof e.info.author=="string"?e.info.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.info.date=="string"?e.info.date.trim():void 0,o=[`w:id="${t}"`,`w:author="${a(r)}"`];i&&o.push(`w:date="${a(i)}"`);let c=T(e.previousFormatting)||"<w:rPr/>";return `<w:rPrChange ${o.join(" ")}>${c}</w:rPrChange>`}function Ke(e,t){let n=T(e),r=n?Ze(n):"",i=(t??[]).map(Je).join(""),o=`${r}${i}`;return o?`<w:rPr>${o}</w:rPr>`:""}function Qe(e){return `<w:t${e.preserveSpace||e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${a(e.text)}</w:t>`}function et(e){return "<w:tab/>"}function tt(e){let t=[];return e.breakType==="page"?t.push('w:type="page"'):e.breakType==="column"?t.push('w:type="column"'):e.breakType==="textWrapping"&&(t.push('w:type="textWrapping"'),e.clear&&e.clear!=="none"&&t.push(`w:clear="${e.clear}"`)),t.length===0?"<w:br/>":`<w:br ${t.join(" ")}/>`}function nt(e){return `<w:sym w:font="${a(e.font)}" w:char="${a(e.char)}"/>`}function rt(e){return e.type==="footnoteRef"?`<w:footnoteReference w:id="${e.id}"/>`:`<w:endnoteReference w:id="${e.id}"/>`}function it(e){let t=[`w:fldCharType="${e.charType}"`];return e.fldLock&&t.push('w:fldLock="true"'),e.dirty&&t.push('w:dirty="true"'),`<w:fldChar ${t.join(" ")}/>`}function ot(e){return `<w:instrText${e.text.startsWith(" ")||e.text.endsWith(" ")||e.text.includes(" ")?' xml:space="preserve"':""}>${a(e.text)}</w:instrText>`}function st(e){return "<w:softHyphen/>"}function at(e){return "<w:noBreakHyphen/>"}function lt(e){switch(e.type){case "text":return Qe(e);case "tab":return et();case "break":return tt(e);case "symbol":return nt(e);case "footnoteRef":case "endnoteRef":return rt(e);case "footnoteRefMark":return "<w:footnoteRef/>";case "endnoteRefMark":return "<w:endnoteRef/>";case "separator":return "<w:separator/>";case "continuationSeparator":return "<w:continuationSeparator/>";case "fieldChar":return it(e);case "instrText":return ot(e);case "softHyphen":return st();case "noBreakHyphen":return at();case "drawing":return ue(e);case "shape":return fe(e);default:return ""}}function P(e){let t=[],n=Ke(e.formatting,e.propertyChanges);n&&t.push(n);for(let r of e.content){let i=lt(r);i&&t.push(i);}return `<w:r>${t.join("")}</w:r>`}function N(e){if(!e)return "";let n=[e.firstRow?"1":"0",e.lastRow?"1":"0",e.firstColumn?"1":"0",e.lastColumn?"1":"0",e.oddVBand?"1":"0",e.evenVBand?"1":"0",e.oddHBand?"1":"0",e.evenHBand?"1":"0",e.nwCell?"1":"0",e.neCell?"1":"0",e.swCell?"1":"0",e.seCell?"1":"0"].join("");return n==="000000000000"?"":`<w:cnfStyle w:val="${n}"/>`}function ct(e){let t=Number.isInteger(e.id)&&e.id>=0?e.id:0,n=typeof e.author=="string"?e.author.trim():"",r=n.length>0?n:"Unknown",i=typeof e.date=="string"?e.date.trim():void 0;return {id:t,author:r,date:i}}function C(e){let t=ct(e),n=[`w:id="${t.id}"`,`w:author="${a(t.author)}"`];return t.date&&n.push(`w:date="${a(t.date)}"`),n.join(" ")}function b(e,t){if(!e)return "";let n=[`w:w="${s(e.value)}"`,`w:type="${e.type}"`];return `<w:${t} ${n.join(" ")}/>`}function S(e,t){if(!e||e.style==="none"||e.style==="nil")return "";let n=[`w:val="${e.style}"`];return e.size!==void 0&&n.push(`w:sz="${s(e.size)}"`),e.space!==void 0&&n.push(`w:space="${s(e.space)}"`),e.color&&(e.color.auto?n.push('w:color="auto"'):e.color.rgb&&n.push(`w:color="${e.color.rgb}"`),e.color.themeColor&&n.push(`w:themeColor="${e.color.themeColor}"`),e.color.themeTint&&n.push(`w:themeTint="${e.color.themeTint}"`),e.color.themeShade&&n.push(`w:themeShade="${e.color.themeShade}"`)),e.shadow&&n.push('w:shadow="true"'),e.frame&&n.push('w:frame="true"'),`<w:${t} ${n.join(" ")}/>`}function he(e,t){if(!e)return "";let n=[];if(e.top){let r=S(e.top,"top");r&&n.push(r);}if(e.left){let r=S(e.left,"left");r&&n.push(r);}if(e.bottom){let r=S(e.bottom,"bottom");r&&n.push(r);}if(e.right){let r=S(e.right,"right");r&&n.push(r);}if(e.insideH){let r=S(e.insideH,"insideH");r&&n.push(r);}if(e.insideV){let r=S(e.insideV,"insideV");r&&n.push(r);}return n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function de(e,t){if(!e)return "";let n=[];return e.top&&n.push(b(e.top,"top")),e.left&&n.push(b(e.left,"left")),e.bottom&&n.push(b(e.bottom,"bottom")),e.right&&n.push(b(e.right,"right")),n.length===0?"":`<w:${t}>${n.join("")}</w:${t}>`}function we(e){if(!e)return "";let t=[];return e.pattern?t.push(`w:val="${e.pattern}"`):t.push('w:val="clear"'),e.color?.rgb?t.push(`w:color="${e.color.rgb}"`):e.color?.auto&&t.push('w:color="auto"'),e.fill?.rgb?t.push(`w:fill="${e.fill.rgb}"`):e.fill?.auto&&t.push('w:fill="auto"'),e.fill?.themeColor&&t.push(`w:themeFill="${e.fill.themeColor}"`),e.fill?.themeTint&&t.push(`w:themeFillTint="${e.fill.themeTint}"`),e.fill?.themeShade&&t.push(`w:themeFillShade="${e.fill.themeShade}"`),t.length===0?"":`<w:shd ${t.join(" ")}/>`}function pt(e){if(!e)return "";let t=[];return e.firstRow&&t.push('w:firstRow="1"'),e.lastRow&&t.push('w:lastRow="1"'),e.firstColumn&&t.push('w:firstColumn="1"'),e.lastColumn&&t.push('w:lastColumn="1"'),e.noHBand&&t.push('w:noHBand="1"'),e.noVBand&&t.push('w:noVBand="1"'),t.length===0?"":`<w:tblLook ${t.join(" ")}/>`}function ut(e){if(!e)return "";let t=[];return e.horzAnchor&&t.push(`w:horzAnchor="${e.horzAnchor}"`),e.vertAnchor&&t.push(`w:vertAnchor="${e.vertAnchor}"`),e.tblpX!==void 0&&t.push(`w:tblpX="${s(e.tblpX)}"`),e.tblpXSpec&&t.push(`w:tblpXSpec="${e.tblpXSpec}"`),e.tblpY!==void 0&&t.push(`w:tblpY="${s(e.tblpY)}"`),e.tblpYSpec&&t.push(`w:tblpYSpec="${e.tblpYSpec}"`),e.topFromText!==void 0&&t.push(`w:topFromText="${s(e.topFromText)}"`),e.bottomFromText!==void 0&&t.push(`w:bottomFromText="${s(e.bottomFromText)}"`),e.leftFromText!==void 0&&t.push(`w:leftFromText="${s(e.leftFromText)}"`),e.rightFromText!==void 0&&t.push(`w:rightFromText="${s(e.rightFromText)}"`),t.length===0?"":`<w:tblpPr ${t.join(" ")}/>`}function me(e,t){let n=[];if(e){e.styleId&&n.push(`<w:tblStyle w:val="${a(e.styleId)}"/>`);let r=ut(e.floating);r&&n.push(r),e.bidi&&n.push("<w:bidiVisual/>");let i=b(e.width,"tblW");i&&n.push(i),e.justification&&n.push(`<w:jc w:val="${e.justification}"/>`);let o=b(e.cellSpacing,"tblCellSpacing");o&&n.push(o);let c=b(e.indent,"tblInd");c&&n.push(c);let l=he(e.borders,"tblBorders");l&&n.push(l);let u=de(e.cellMargins,"tblCellMar");u&&n.push(u),e.layout&&n.push(`<w:tblLayout w:type="${e.layout}"/>`);let f=we(e.shading);f&&n.push(f);let p=pt(e.look);p&&n.push(p),e.overlap&&n.push(`<w:tblOverlap w:val="${e.overlap}"/>`);}return t&&t.length>0&&n.push(ht(t[0])),n.length===0?"":`<w:tblPr>${n.join("")}</w:tblPr>`}function ft(e){return !e.startsWith("<w:tblPr>")||!e.endsWith("</w:tblPr>")?"":e.slice(9,-10)}function ht(e){let t=C(e.info),n=me(e.previousFormatting)||"<w:tblPr/>",r=ft(n),i=r.length>0?`<w:tblPr>${r}</w:tblPr>`:"<w:tblPr/>";return `<w:tblPrChange ${t}>${i}</w:tblPrChange>`}function ge(e,t,n){let r=[];if(e){let i=N(e.conditionalFormat);if(i&&r.push(i),e.cantSplit&&r.push("<w:cantSplit/>"),e.header&&r.push("<w:tblHeader/>"),e.height){let o=[`w:val="${s(e.height.value)}"`];e.heightRule&&o.push(`w:hRule="${e.heightRule}"`),r.push(`<w:trHeight ${o.join(" ")}/>`);}e.justification&&r.push(`<w:jc w:val="${e.justification}"/>`),e.hidden&&r.push("<w:hidden/>");}return n&&(n.type==="tableRowInsertion"?r.push(`<w:ins ${C(n.info)}/>`):n.type==="tableRowDeletion"&&r.push(`<w:del ${C(n.info)}/>`)),t&&t.length>0&&r.push(wt(t[0])),r.length===0?"":`<w:trPr>${r.join("")}</w:trPr>`}function dt(e){return !e.startsWith("<w:trPr>")||!e.endsWith("</w:trPr>")?"":e.slice(8,-9)}function wt(e){let t=C(e.info),n=ge(e.previousFormatting)||"<w:trPr/>",r=dt(n),i=r.length>0?`<w:trPr>${r}</w:trPr>`:"<w:trPr/>";return `<w:trPrChange ${t}>${i}</w:trPrChange>`}function $e(e,t,n){let r=[];if(e){let i=N(e.conditionalFormat);i&&r.push(i);let o=b(e.width,"tcW");o&&r.push(o),e.gridSpan&&e.gridSpan>1&&r.push(`<w:gridSpan w:val="${s(e.gridSpan)}"/>`),e.vMerge&&(e.vMerge==="restart"?r.push('<w:vMerge w:val="restart"/>'):r.push("<w:vMerge/>"));let c=he(e.borders,"tcBorders");c&&r.push(c);let l=we(e.shading);l&&r.push(l),e.noWrap&&r.push("<w:noWrap/>");let u=de(e.margins,"tcMar");u&&r.push(u),e.textDirection&&r.push(`<w:textDirection w:val="${e.textDirection}"/>`),e.fitText&&r.push("<w:tcFitText/>"),e.verticalAlign&&r.push(`<w:vAlign w:val="${e.verticalAlign}"/>`),e.hideMark&&r.push("<w:hideMark/>");}if(n){if(n.type==="tableCellInsertion")r.push(`<w:cellIns ${C(n.info)}/>`);else if(n.type==="tableCellDeletion")r.push(`<w:cellDel ${C(n.info)}/>`);else if(n.type==="tableCellMerge"){let i=n.vMerge?` w:vMerge="${n.vMerge}"`:"",o=n.vMergeOrig?` w:vMergeOrig="${n.vMergeOrig}"`:"";r.push(`<w:cellMerge ${C(n.info)}${i}${o}/>`);}}return t&&t.length>0&&r.push(gt(t[0])),r.length===0?"":`<w:tcPr>${r.join("")}</w:tcPr>`}function mt(e){return !e.startsWith("<w:tcPr>")||!e.endsWith("</w:tcPr>")?"":e.slice(8,-9)}function gt(e){let t=C(e.info),n=$e(e.previousFormatting)||"<w:tcPr/>",r=mt(n),i=r.length>0?`<w:tcPr>${r}</w:tcPr>`:"<w:tcPr/>";return `<w:tcPrChange ${t}>${i}</w:tcPrChange>`}function $t(e){return !e||e.length===0?"":`<w:tblGrid>${e.map(n=>`<w:gridCol w:w="${s(n)}"/>`).join("")}</w:tblGrid>`}function xt(e){let t=[];for(let n of e)n.type==="paragraph"?t.push(v(n)):n.type==="table"&&t.push(z(n));return t.length===0&&t.push("<w:p/>"),t.join("")}function yt(e){let t=[],n=$e(e.formatting,e.propertyChanges,e.structuralChange);return n&&t.push(n),t.push(xt(e.content)),`<w:tc>${t.join("")}</w:tc>`}function Pt(e){let t=[],n=ge(e.formatting,e.propertyChanges,e.structuralChange);n&&t.push(n);for(let r of e.cells)t.push(yt(r));return `<w:tr>${t.join("")}</w:tr>`}function z(e){let t=[],n=me(e.formatting,e.propertyChanges);n&&t.push(n);let r=$t(e.columnWidths);r&&t.push(r);for(let i of e.rows)t.push(Pt(i));return `<w:tbl>${t.join("")}</w:tbl>`}function B(e,t){let n=e.content.map(t).join(""),r=e.properties.rawPropertiesXml??"",i=e.properties.rawEndPropertiesXml??"";return `<w:sdt>${r}${i}<w:sdtContent>${n}</w:sdtContent></w:sdt>`}var h={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function vt(){let e={wpc:h.wpc,mc:h.mc,o:h.o,r:h.r,m:h.m,v:h.v,wp14:h.wp14,wp:h.wp,w10:h.w10,w:h.w,w14:h.w14,w15:h.w15,w16se:h.w16se,w16cid:h.w16cid,w16:h.w16,w16cex:h.w16cex,w16sdtdh:h.w16sdtdh,wne:h.wne,wpg:h.wpg,wps:h.wps};return Object.entries(e).map(([t,n])=>`xmlns:${t}="${n}"`).join(" ")}function A(e){return e.type==="paragraph"?v(e):e.type==="table"?z(e):e.type==="blockSdt"?B(e,A):""}function bt(e){return e.map(t=>A(t)).join("")}function Ct(e){let t=[];return t.push(bt(e.content)),e.finalSectionProperties&&t.push(I(e.finalSectionProperties)),t.join("")}function hn(e){O();let t=[];t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');let n=vt();return t.push(`<w:document ${n} mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14">`),t.push("<w:body>"),t.push(Ct(e.package.document)),t.push("</w:body>"),t.push("</w:document>"),t.join("")}var Tt='<v:shapetype id="_x0000_t136" coordsize="21600,21600" o:spt="136" adj="10800" path="m@7,l@8,m@5,21600l@6,21600e"><v:formulas><v:f eqn="sum #0 0 10800"/><v:f eqn="prod #0 2 1"/><v:f eqn="sum 21600 0 @1"/><v:f eqn="sum 0 0 @2"/><v:f eqn="sum 21600 0 @3"/><v:f eqn="if @0 @3 0"/><v:f eqn="if @0 21600 @1"/><v:f eqn="if @0 0 @2"/><v:f eqn="if @0 @4 21600"/><v:f eqn="mid @5 @6"/><v:f eqn="mid @8 @5"/><v:f eqn="mid @7 @8"/><v:f eqn="mid @6 @7"/><v:f eqn="sum @6 0 @5"/></v:formulas><v:path textpathok="t" o:connecttype="custom" o:connectlocs="@9,0;@10,10800;@9,21600;@11,10800" o:connectangles="270,180,90,0"/><v:textpath on="t" fitshape="t"/><v:handles><v:h position="#0,bottomRight" xrange="6629,14971"/></v:handles><o:lock v:ext="edit" text="t" shapetype="t"/></v:shapetype>',St='<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"/><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"/><v:f eqn="sum @0 1 0"/><v:f eqn="sum 0 0 @1"/><v:f eqn="prod @2 1 2"/><v:f eqn="prod @3 21600 pixelWidth"/><v:f eqn="prod @3 21600 pixelHeight"/><v:f eqn="sum @0 0 1"/><v:f eqn="prod @6 1 2"/><v:f eqn="prod @7 21600 pixelWidth"/><v:f eqn="sum @8 21600 0"/><v:f eqn="prod @7 21600 pixelHeight"/><v:f eqn="sum @10 21600 0"/></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/><o:lock v:ext="edit" aspectratio="t"/></v:shapetype>';function Ft(e){let t=Math.max(e.text.trim().length,1),n=Math.min(Math.max(t*26,120),468);return {width:n,height:n/2}}var xe=12700;function zt(e){let t=e.widthEmu!==void 0?e.widthEmu/xe:311.4,n=e.heightEmu!==void 0?e.heightEmu/xe:t;return {width:t*(e.scale||1),height:n*(e.scale||1)}}function kt(e){let{width:t,height:n}=Ft(e),r=e.layout==="diagonal"?";rotation:315":"",i=`position:absolute;margin-left:0;margin-top:0;width:${t}pt;height:${n}pt${r};z-index:-251658240;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin`,o=e.semitransparent?'<v:fill opacity=".5"/>':"",c=e.fontSize!==void 0?e.fontSize:1,l=`font-family:"${a(e.font)}";font-size:${c}pt`;return "<w:p><w:r><w:rPr><w:noProof/></w:rPr><w:pict>"+Tt+`<v:shape id="PowerPlusWaterMarkObject1" o:spid="_x0000_s2049" type="#_x0000_t136" style="${i}" o:allowincell="f" fillcolor="${a(e.color)}" stroked="f">`+o+`<v:textpath style="${l}" string="${a(e.text)}"/></v:shape></w:pict></w:r></w:p>`}function Rt(e){if(!e.relId)return "";let{width:t,height:n}=zt(e),r=`position:absolute;margin-left:0;margin-top:0;width:${t}pt;height:${n}pt;z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin`,i=e.washout?' gain="19661f" blacklevel="22938f"':"";return "<w:p><w:r><w:rPr><w:noProof/></w:rPr><w:pict>"+St+`<v:shape id="WordPictureWatermark1" o:spid="_x0000_s2050" type="#_x0000_t75" style="${r}" o:allowincell="f"><v:imagedata r:id="${a(e.relId)}" o:title="watermark"${i}/></v:shape></w:pict></w:r></w:p>`}function ye(e){return e.kind==="text"?kt(e):Rt(e)}var It={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"};function jt(){return Object.entries(It).map(([e,t])=>`xmlns:${e}="${t}"`).join(" ")}function Pe(e){return e.type==="paragraph"?v(e):e.type==="table"?z(e):e.type==="blockSdt"?B(e,Pe):""}function Pn(e){let t=e.type==="header"?"w:hdr":"w:ftr",n=jt(),r=e.content.map(i=>Pe(i)).join("");return e.watermark&&(r=ye(e.watermark)+r),r||(r="<w:p><w:pPr/></w:p>"),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
-
<${t} ${n}>${r}</${t}>`}function Te(e){let t="<w:r>",n=[];e.formatting?.bold&&n.push("<w:b/>"),e.formatting?.italic&&n.push("<w:i/>"),n.length>0&&(t+=`<w:rPr>${n.join("")}</w:rPr>`);for(let r of e.content)if(r.type==="text"){let i=r.text!==r.text.trim()||r.text.includes(" ");t+=i?`<w:t xml:space="preserve">${a(r.text)}</w:t>`:`<w:t>${a(r.text)}</w:t>`;}else r.type==="break"&&(t+="<w:br/>");return t+="</w:r>",t}function ve(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";for(let r of e.content)r.type==="run"&&(n+=Te(r));return n+="</w:p>",n}function be(e,t){let n=t?`<w:p w14:paraId="${t}">`:"<w:p>";n+='<w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r>';for(let r of e.content)r.type==="run"&&(n+=Te(r));return n+="</w:p>",n}function Ce(e,t){let n=chunkC2BAPYGJ_js.a(),r=[`w:id="${e.id}"`];if(e.author&&r.push(`w:author="${a(e.author)}"`),e.initials?r.push(`w:initials="${a(e.initials)}"`):r.push('w:initials=""'),e.date){let o=e.date.replace(/\.\d{3}Z$/,"Z");r.push(`w:date="${a(o)}"`);}let i=`<w:comment ${r.join(" ")}>`;if(e.content&&e.content.length>0)if(e.content.length===1)i+=be(e.content[0],n);else {i+=be(e.content[0]);for(let o=1;o<e.content.length-1;o++)i+=ve(e.content[o]);i+=ve(e.content[e.content.length-1],n);}else i+=`<w:p w14:paraId="${n}"><w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r></w:p>`;return i+="</w:comment>",t.push({commentId:e.id,lastParaId:n,durableId:chunkC2BAPYGJ_js.a(),parentId:e.parentId,done:e.done}),i}function Bt(e){if(!e||e.length===0)return {xml:"",paraInfos:[]};let t=[],n=[];for(let o of e)(o.parentId==null?t:n).push(o);let r=[],i=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:comments ${x} ${y}>`;for(let o of t)i+=Ce(o,r);for(let o of n)i+=Ce(o,r);return i+="</w:comments>",{xml:i,paraInfos:r}}function Tn(e){return Bt(e).xml}function Sn(e){if(e.length===0)return "";let t=new Map;for(let r of e)t.set(r.commentId,r.lastParaId);let n=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w15:commentsEx ${x} ${y}>`;for(let r of e){let i=`w15:paraId="${r.lastParaId}" w15:done="${r.done?"1":"0"}"`;if(r.parentId!=null){let o=t.get(r.parentId);o&&(i+=` w15:paraIdParent="${o}"`);}n+=`<w15:commentEx ${i} />`;}return n+="</w15:commentsEx>",n}function Fn(e){if(e.length===0)return "";let t=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cid:commentsIds ${x} ${y}>`;for(let n of e)t+=`<w16cid:commentId w16cid:paraId="${n.lastParaId}" w16cid:durableId="${n.durableId}" />`;return t+="</w16cid:commentsIds>",t}function zn(e,t){if(e.length===0)return "";let n=new Map;for(let i of t)n.set(i.id,i);let r=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w16cex:commentsExtensible ${x} ${y}>`;for(let i of e){let o=n.get(i.commentId);if(!o?.date)continue;let c=i.durableId,l=(o.date.endsWith("Z")?o.date:o.date+"Z").replace(/\.\d{3}Z$/,"Z");r+=`<w16cex:commentExtensible w16cex:durableId="${c}" w16cex:dateUtc="${l}"/>`;}return r+="</w16cex:commentsExtensible>",r}var Se='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';function Fe(e,t){if(t.verbatimXml)return t.verbatimXml;let n=[];t.noteType&&t.noteType!=="normal"&&n.push(`w:type="${t.noteType}"`),n.push(`w:id="${t.id}"`);let r=t.content.map(i=>A(i)).join("");return `<w:${e} ${n.join(" ")}>${r}</w:${e}>`}function jn(e){let t=e.map(n=>Fe("footnote",n)).join("");return `${Se}<w:footnotes ${x} ${y}>${t}</w:footnotes>`}function Bn(e){let t=e.map(n=>Fe("endnote",n)).join("");return `${Se}<w:endnotes ${x} ${y}>${t}</w:endnotes>`}exports.a=a;exports.b=P;exports.c=I;exports.d=v;exports.e=z;exports.f=A;exports.g=Ct;exports.h=hn;exports.i=Pn;exports.j=Bt;exports.k=Tn;exports.l=Sn;exports.m=Fn;exports.n=zn;exports.o=jn;exports.p=Bn;
|
package/dist/chunk-OTHV7YV2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkLERLET2D_js=require('./chunk-LERLET2D.js'),chunkFIGLFSNR_js=require('./chunk-FIGLFSNR.js'),chunkMNOHUTKE_js=require('./chunk-MNOHUTKE.js'),chunkZ3LGMBJC_js=require('./chunk-Z3LGMBJC.js'),chunk3R7QHNI5_js=require('./chunk-3R7QHNI5.js'),chunkGSKMHXHG_js=require('./chunk-GSKMHXHG.js'),Ue=require('jszip');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Ue__default=/*#__PURE__*/_interopDefault(Ue);async function Y(e){let n=await Ue__default.default.loadAsync(e),t={documentXml:null,stylesXml:null,themeXml:null,numberingXml:null,fontTableXml:null,settingsXml:null,webSettingsXml:null,headers:new Map,footers:new Map,footnotesXml:null,endnotesXml:null,commentsXml:null,commentsExtensibleXml:null,commentsExtendedXml:null,documentRels:null,packageRels:null,contentTypesXml:null,corePropsXml:null,appPropsXml:null,customPropsXml:null,media:new Map,fonts:new Map,allXml:new Map,originalZip:n,originalBuffer:e};for(let[o,s]of Object.entries(n.files)){if(s.dir)continue;let r=o.toLowerCase();if(r.endsWith(".xml")||r.endsWith(".rels")){let a=await s.async("text");if(t.allXml.set(o,a),r==="word/document.xml")t.documentXml=a;else if(r==="word/styles.xml")t.stylesXml=a;else if(r==="word/theme/theme1.xml")t.themeXml=a;else if(r==="word/numbering.xml")t.numberingXml=a;else if(r==="word/fonttable.xml")t.fontTableXml=a;else if(r==="word/settings.xml")t.settingsXml=a;else if(r==="word/websettings.xml")t.webSettingsXml=a;else if(r==="word/footnotes.xml")t.footnotesXml=a;else if(r==="word/endnotes.xml")t.endnotesXml=a;else if(r==="word/comments.xml")t.commentsXml=a;else if(r==="word/commentsextensible.xml")t.commentsExtensibleXml=a;else if(r==="word/commentsextended.xml")t.commentsExtendedXml=a;else if(r==="word/_rels/document.xml.rels")t.documentRels=a;else if(r==="_rels/.rels")t.packageRels=a;else if(r==="[content_types].xml")t.contentTypesXml=a;else if(r==="docprops/core.xml")t.corePropsXml=a;else if(r==="docprops/app.xml")t.appPropsXml=a;else if(r==="docprops/custom.xml")t.customPropsXml=a;else if(r.match(/^word\/header\d+\.xml$/)){let c=o.split("/").pop()||o;t.headers.set(c,a);}else if(r.match(/^word\/footer\d+\.xml$/)){let c=o.split("/").pop()||o;t.footers.set(c,a);}}else if(r.startsWith("word/media/")){let a=await s.async("arraybuffer");t.media.set(o,a);}else if(r.startsWith("word/fonts/")){let a=await s.async("arraybuffer");t.fonts.set(o,a);}}return t}function Me(e){switch(e.toLowerCase().split(".").pop()){case "png":return "image/png";case "jpg":case "jpeg":return "image/jpeg";case "gif":return "image/gif";case "bmp":return "image/bmp";case "tif":case "tiff":return "image/tiff";case "wmf":return "image/x-wmf";case "emf":return "image/x-emf";case "svg":return "image/svg+xml";case "webp":return "image/webp";default:return "application/octet-stream"}}function K(e,n,t,o){let s={};return e&&e!=="auto"?s.rgb=e:e==="auto"&&(s.auto=true),n&&(s.themeColor=n),t&&(s.themeTint=t),o&&(s.themeShade=o),s}function $(e){if(!e)return;let n={},t=chunk3R7QHNI5_js.j(e,"w","color");t&&t!=="auto"&&(n.color={rgb:t});let o=chunk3R7QHNI5_js.j(e,"w","fill");o&&o!=="auto"&&(n.fill={rgb:o});let s=chunk3R7QHNI5_js.j(e,"w","themeFill");s&&(n.fill=n.fill||{},n.fill.themeColor=s);let r=chunk3R7QHNI5_js.j(e,"w","themeFillTint");r&&n.fill&&(n.fill.themeTint=r);let a=chunk3R7QHNI5_js.j(e,"w","themeFillShade");a&&n.fill&&(n.fill.themeShade=a);let c=chunk3R7QHNI5_js.j(e,"w","val");return c&&(n.pattern=c),Object.keys(n).length>0?n:void 0}function Z(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","b");o&&(t.bold=chunk3R7QHNI5_js.m(o));let s=chunk3R7QHNI5_js.e(e,"w","bCs");s&&(t.boldCs=chunk3R7QHNI5_js.m(s));let r=chunk3R7QHNI5_js.e(e,"w","i");r&&(t.italic=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","iCs");a&&(t.italicCs=chunk3R7QHNI5_js.m(a));let c=chunk3R7QHNI5_js.e(e,"w","u");if(c){let h=chunk3R7QHNI5_js.j(c,"w","val");if(h){t.underline={style:h};let T=chunk3R7QHNI5_js.j(c,"w","color"),L=chunk3R7QHNI5_js.j(c,"w","themeColor");(T||L)&&(t.underline.color=K(T,L,chunk3R7QHNI5_js.j(c,"w","themeTint"),chunk3R7QHNI5_js.j(c,"w","themeShade")));}}let d=chunk3R7QHNI5_js.e(e,"w","strike");d&&(t.strike=chunk3R7QHNI5_js.m(d));let u=chunk3R7QHNI5_js.e(e,"w","dstrike");u&&(t.doubleStrike=chunk3R7QHNI5_js.m(u));let m=chunk3R7QHNI5_js.e(e,"w","vertAlign");if(m){let h=chunk3R7QHNI5_js.j(m,"w","val");(h==="superscript"||h==="subscript"||h==="baseline")&&(t.vertAlign=h);}let g=chunk3R7QHNI5_js.e(e,"w","smallCaps");g&&(t.smallCaps=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","caps");p&&(t.allCaps=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","vanish");S&&(t.hidden=chunk3R7QHNI5_js.m(S));let f=chunk3R7QHNI5_js.e(e,"w","color");f&&(t.color=K(chunk3R7QHNI5_js.j(f,"w","val"),chunk3R7QHNI5_js.j(f,"w","themeColor"),chunk3R7QHNI5_js.j(f,"w","themeTint"),chunk3R7QHNI5_js.j(f,"w","themeShade")));let b=chunk3R7QHNI5_js.e(e,"w","highlight");if(b){let h=chunk3R7QHNI5_js.j(b,"w","val");h&&(t.highlight=h);}let C=chunk3R7QHNI5_js.e(e,"w","shd");C&&(t.shading=$(C));let D=chunk3R7QHNI5_js.e(e,"w","sz");if(D){let h=chunk3R7QHNI5_js.l(D,"w","val");h!==void 0&&(t.fontSize=h);}let I=chunk3R7QHNI5_js.e(e,"w","szCs");if(I){let h=chunk3R7QHNI5_js.l(I,"w","val");h!==void 0&&(t.fontSizeCs=h);}let P=chunk3R7QHNI5_js.e(e,"w","rFonts");if(P){t.fontFamily={ascii:chunk3R7QHNI5_js.j(P,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(P,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(P,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(P,"w","cs")??void 0};let h=chunk3R7QHNI5_js.j(P,"w","asciiTheme");h&&(t.fontFamily.asciiTheme=h,n&&!t.fontFamily.ascii&&(t.fontFamily.ascii=chunkLERLET2D_js.b(n,h)));let T=chunk3R7QHNI5_js.j(P,"w","hAnsiTheme");T&&(t.fontFamily.hAnsiTheme=T,n&&!t.fontFamily.hAnsi&&(t.fontFamily.hAnsi=chunkLERLET2D_js.b(n,T)));let L=chunk3R7QHNI5_js.j(P,"w","eastAsiaTheme");L&&(t.fontFamily.eastAsiaTheme=L,n&&!t.fontFamily.eastAsia&&(t.fontFamily.eastAsia=chunkLERLET2D_js.b(n,L)));let U=chunk3R7QHNI5_js.j(P,"w","cstheme");U&&(t.fontFamily.csTheme=U,n&&!t.fontFamily.cs&&(t.fontFamily.cs=chunkLERLET2D_js.b(n,U)));}let N=chunk3R7QHNI5_js.e(e,"w","spacing");if(N){let h=chunk3R7QHNI5_js.l(N,"w","val");h!==void 0&&(t.spacing=h);}let y=chunk3R7QHNI5_js.e(e,"w","position");if(y){let h=chunk3R7QHNI5_js.l(y,"w","val");h!==void 0&&(t.position=h);}let x=chunk3R7QHNI5_js.e(e,"w","w");if(x){let h=chunk3R7QHNI5_js.l(x,"w","val");h!==void 0&&(t.scale=h);}let F=chunk3R7QHNI5_js.e(e,"w","kern");if(F){let h=chunk3R7QHNI5_js.l(F,"w","val");h!==void 0&&(t.kerning=h);}let X=chunk3R7QHNI5_js.e(e,"w","effect");if(X){let h=chunk3R7QHNI5_js.j(X,"w","val");h&&(t.effect=h);}let A=chunk3R7QHNI5_js.e(e,"w","em");if(A){let h=chunk3R7QHNI5_js.j(A,"w","val");h&&(t.emphasisMark=h);}let M=chunk3R7QHNI5_js.e(e,"w","emboss");M&&(t.emboss=chunk3R7QHNI5_js.m(M));let E=chunk3R7QHNI5_js.e(e,"w","imprint");E&&(t.imprint=chunk3R7QHNI5_js.m(E));let V=chunk3R7QHNI5_js.e(e,"w","outline");V&&(t.outline=chunk3R7QHNI5_js.m(V));let H=chunk3R7QHNI5_js.e(e,"w","shadow");H&&(t.shadow=chunk3R7QHNI5_js.m(H));let B=chunk3R7QHNI5_js.e(e,"w","rtl");B&&(t.rtl=chunk3R7QHNI5_js.m(B));let j=chunk3R7QHNI5_js.e(e,"w","cs");j&&(t.cs=chunk3R7QHNI5_js.m(j));let _=chunk3R7QHNI5_js.e(e,"w","rStyle");if(_){let h=chunk3R7QHNI5_js.j(_,"w","val");h&&(t.styleId=h);}return Object.keys(t).length>0?t:void 0}function k(e){if(!e)return;let n=chunk3R7QHNI5_js.j(e,"w","val");if(!n)return;let t={style:n},o=chunk3R7QHNI5_js.j(e,"w","color"),s=chunk3R7QHNI5_js.j(e,"w","themeColor");(o||s)&&(t.color=K(o,s,chunk3R7QHNI5_js.j(e,"w","themeTint"),chunk3R7QHNI5_js.j(e,"w","themeShade")));let r=chunk3R7QHNI5_js.l(e,"w","sz");r!==void 0&&(t.size=r);let a=chunk3R7QHNI5_js.l(e,"w","space");a!==void 0&&(t.space=a);let c=chunk3R7QHNI5_js.j(e,"w","shadow");c&&(t.shadow=c==="1"||c==="true");let d=chunk3R7QHNI5_js.j(e,"w","frame");return d&&(t.frame=d==="1"||d==="true"),t}function We(e){if(!e)return;let n=chunk3R7QHNI5_js.f(e,"w","tab");if(n.length===0)return;let t=[];for(let o of n){let s=chunk3R7QHNI5_js.l(o,"w","pos"),r=chunk3R7QHNI5_js.j(o,"w","val");if(s!==void 0&&r){let a={position:s,alignment:r},c=chunk3R7QHNI5_js.j(o,"w","leader");c&&(a.leader=c),t.push(a);}}return t.length>0?t:void 0}function ee(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","jc");if(o){let y=chunk3R7QHNI5_js.j(o,"w","val");y&&(t.alignment=y);}let s=chunk3R7QHNI5_js.e(e,"w","bidi");s&&(t.bidi=chunk3R7QHNI5_js.m(s));let r=chunk3R7QHNI5_js.e(e,"w","spacing");if(r){let y=chunk3R7QHNI5_js.l(r,"w","before");y!==void 0&&(t.spaceBefore=y);let x=chunk3R7QHNI5_js.l(r,"w","after");x!==void 0&&(t.spaceAfter=x);let F=chunk3R7QHNI5_js.l(r,"w","line");F!==void 0&&(t.lineSpacing=F);let X=chunk3R7QHNI5_js.j(r,"w","lineRule");X&&(t.lineSpacingRule=X);let A=chunk3R7QHNI5_js.j(r,"w","beforeAutospacing");A&&(t.beforeAutospacing=A==="1"||A==="true");let M=chunk3R7QHNI5_js.j(r,"w","afterAutospacing");M&&(t.afterAutospacing=M==="1"||M==="true");}let a=chunk3R7QHNI5_js.e(e,"w","ind");if(a){let y=chunk3R7QHNI5_js.l(a,"w","left");y!==void 0&&(t.indentLeft=y);let x=chunk3R7QHNI5_js.l(a,"w","right");x!==void 0&&(t.indentRight=x);let F=chunk3R7QHNI5_js.l(a,"w","firstLine");F!==void 0&&(t.indentFirstLine=F);let X=chunk3R7QHNI5_js.l(a,"w","hanging");X!==void 0&&(t.indentFirstLine=-X,t.hangingIndent=true);}let c=chunk3R7QHNI5_js.e(e,"w","pBdr");if(c){let y={},x=k(chunk3R7QHNI5_js.e(c,"w","top"));x&&(y.top=x);let F=k(chunk3R7QHNI5_js.e(c,"w","bottom"));F&&(y.bottom=F);let X=k(chunk3R7QHNI5_js.e(c,"w","left"));X&&(y.left=X);let A=k(chunk3R7QHNI5_js.e(c,"w","right"));A&&(y.right=A);let M=k(chunk3R7QHNI5_js.e(c,"w","between"));M&&(y.between=M);let E=k(chunk3R7QHNI5_js.e(c,"w","bar"));E&&(y.bar=E),Object.keys(y).length>0&&(t.borders=y);}let d=chunk3R7QHNI5_js.e(e,"w","shd");d&&(t.shading=$(d));let u=chunk3R7QHNI5_js.e(e,"w","tabs");u&&(t.tabs=We(u));let m=chunk3R7QHNI5_js.e(e,"w","keepNext");m&&(t.keepNext=chunk3R7QHNI5_js.m(m));let g=chunk3R7QHNI5_js.e(e,"w","keepLines");g&&(t.keepLines=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","widowControl");p&&(t.widowControl=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","pageBreakBefore");S&&(t.pageBreakBefore=chunk3R7QHNI5_js.m(S));let f=chunk3R7QHNI5_js.e(e,"w","contextualSpacing");f&&(t.contextualSpacing=chunk3R7QHNI5_js.m(f));let b=chunk3R7QHNI5_js.e(e,"w","numPr");if(b){let y=chunk3R7QHNI5_js.e(b,"w","numId"),x=chunk3R7QHNI5_js.e(b,"w","ilvl");if(y||x){if(t.numPr={},y){let F=chunk3R7QHNI5_js.l(y,"w","val");F!==void 0&&(t.numPr.numId=F);}if(x){let F=chunk3R7QHNI5_js.l(x,"w","val");F!==void 0&&(t.numPr.ilvl=F);}}}let C=chunk3R7QHNI5_js.e(e,"w","outlineLvl");if(C){let y=chunk3R7QHNI5_js.l(C,"w","val");y!==void 0&&(t.outlineLevel=y);}let D=chunk3R7QHNI5_js.e(e,"w","pStyle");if(D){let y=chunk3R7QHNI5_js.j(D,"w","val");y&&(t.styleId=y);}let I=chunk3R7QHNI5_js.e(e,"w","suppressLineNumbers");I&&(t.suppressLineNumbers=chunk3R7QHNI5_js.m(I));let P=chunk3R7QHNI5_js.e(e,"w","suppressAutoHyphens");P&&(t.suppressAutoHyphens=chunk3R7QHNI5_js.m(P));let N=chunk3R7QHNI5_js.e(e,"w","rPr");return N&&(t.runProperties=Z(N,n)),Object.keys(t).length>0?t:void 0}function O(e){if(!e)return;let n=chunk3R7QHNI5_js.l(e,"w","w"),t=chunk3R7QHNI5_js.j(e,"w","type");if(n!==void 0&&t)return {value:n,type:t}}function De(e){if(!e)return;let n={},t=k(chunk3R7QHNI5_js.e(e,"w","top"));t&&(n.top=t);let o=k(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=k(chunk3R7QHNI5_js.e(e,"w","left"));s&&(n.left=s);let r=k(chunk3R7QHNI5_js.e(e,"w","right"));r&&(n.right=r);let a=k(chunk3R7QHNI5_js.e(e,"w","insideH"));a&&(n.insideH=a);let c=k(chunk3R7QHNI5_js.e(e,"w","insideV"));return c&&(n.insideV=c),Object.keys(n).length>0?n:void 0}function Xe(e){if(!e)return;let n={},t=O(chunk3R7QHNI5_js.e(e,"w","top"));t&&(n.top=t);let o=O(chunk3R7QHNI5_js.e(e,"w","bottom"));o&&(n.bottom=o);let s=O(chunk3R7QHNI5_js.e(e,"w","left"));s&&(n.left=s);let r=O(chunk3R7QHNI5_js.e(e,"w","right"));return r&&(n.right=r),Object.keys(n).length>0?n:void 0}function ze(e){if(!e)return;let n={},t=chunk3R7QHNI5_js.j(e,"w","val");if(t){let u=parseInt(t,16);isNaN(u)||(n.firstRow=(u&32)!==0,n.lastRow=(u&64)!==0,n.firstColumn=(u&128)!==0,n.lastColumn=(u&256)!==0,n.noHBand=(u&512)!==0,n.noVBand=(u&1024)!==0);}let o=chunk3R7QHNI5_js.j(e,"w","firstColumn");o&&(n.firstColumn=o==="1");let s=chunk3R7QHNI5_js.j(e,"w","firstRow");s&&(n.firstRow=s==="1");let r=chunk3R7QHNI5_js.j(e,"w","lastColumn");r&&(n.lastColumn=r==="1");let a=chunk3R7QHNI5_js.j(e,"w","lastRow");a&&(n.lastRow=a==="1");let c=chunk3R7QHNI5_js.j(e,"w","noHBand");c&&(n.noHBand=c==="1");let d=chunk3R7QHNI5_js.j(e,"w","noVBand");return d&&(n.noVBand=d==="1"),Object.keys(n).length>0?n:void 0}function le(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","tblW");o&&(t.width=O(o));let s=chunk3R7QHNI5_js.e(e,"w","jc");if(s){let f=chunk3R7QHNI5_js.j(s,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}let r=chunk3R7QHNI5_js.e(e,"w","tblCellSpacing");r&&(t.cellSpacing=O(r));let a=chunk3R7QHNI5_js.e(e,"w","tblInd");a&&(t.indent=O(a));let c=chunk3R7QHNI5_js.e(e,"w","tblBorders");c&&(t.borders=De(c));let d=chunk3R7QHNI5_js.e(e,"w","tblCellMar");d&&(t.cellMargins=Xe(d));let u=chunk3R7QHNI5_js.e(e,"w","tblLayout");if(u){let f=chunk3R7QHNI5_js.j(u,"w","type");(f==="fixed"||f==="autofit")&&(t.layout=f);}let m=chunk3R7QHNI5_js.e(e,"w","tblStyle");if(m){let f=chunk3R7QHNI5_js.j(m,"w","val");f&&(t.styleId=f);}let g=chunk3R7QHNI5_js.e(e,"w","tblLook");g&&(t.look=ze(g));let p=chunk3R7QHNI5_js.e(e,"w","shd");p&&(t.shading=$(p));let S=chunk3R7QHNI5_js.e(e,"w","bidiVisual");return S&&(t.bidi=chunk3R7QHNI5_js.m(S)),Object.keys(t).length>0?t:void 0}function ce(e){if(!e)return;let n={},t=chunk3R7QHNI5_js.e(e,"w","trHeight");if(t){n.height=O(t);let c=chunk3R7QHNI5_js.j(t,"w","hRule");c&&(n.heightRule=c);}let o=chunk3R7QHNI5_js.e(e,"w","tblHeader");o&&(n.header=chunk3R7QHNI5_js.m(o));let s=chunk3R7QHNI5_js.e(e,"w","cantSplit");s&&(n.cantSplit=chunk3R7QHNI5_js.m(s));let r=chunk3R7QHNI5_js.e(e,"w","jc");if(r){let c=chunk3R7QHNI5_js.j(r,"w","val");(c==="left"||c==="center"||c==="right")&&(n.justification=c);}let a=chunk3R7QHNI5_js.e(e,"w","hidden");return a&&(n.hidden=chunk3R7QHNI5_js.m(a)),Object.keys(n).length>0?n:void 0}function fe(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","tcW");o&&(t.width=O(o));let s=chunk3R7QHNI5_js.e(e,"w","tcBorders");s&&(t.borders=De(s));let r=chunk3R7QHNI5_js.e(e,"w","tcMar");r&&(t.margins=Xe(r));let a=chunk3R7QHNI5_js.e(e,"w","shd");a&&(t.shading=$(a));let c=chunk3R7QHNI5_js.e(e,"w","vAlign");if(c){let f=chunk3R7QHNI5_js.j(c,"w","val");(f==="top"||f==="center"||f==="bottom")&&(t.verticalAlign=f);}let d=chunk3R7QHNI5_js.e(e,"w","textDirection");if(d){let f=chunk3R7QHNI5_js.j(d,"w","val");f&&(t.textDirection=f);}let u=chunk3R7QHNI5_js.e(e,"w","gridSpan");if(u){let f=chunk3R7QHNI5_js.l(u,"w","val");f!==void 0&&(t.gridSpan=f);}let m=chunk3R7QHNI5_js.e(e,"w","vMerge");if(m){let f=chunk3R7QHNI5_js.j(m,"w","val");t.vMerge=f==="restart"?"restart":"continue";}let g=chunk3R7QHNI5_js.e(e,"w","tcFitText");g&&(t.fitText=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","noWrap");p&&(t.noWrap=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","hideMark");return S&&(t.hideMark=chunk3R7QHNI5_js.m(S)),Object.keys(t).length>0?t:void 0}function $e(e,n){let t={styleId:chunk3R7QHNI5_js.j(e,"w","styleId")??"",type:chunk3R7QHNI5_js.j(e,"w","type")??"paragraph"},o=chunk3R7QHNI5_js.j(e,"w","default");o&&(t.default=o==="1"||o==="true");let s=chunk3R7QHNI5_js.e(e,"w","name");s&&(t.name=chunk3R7QHNI5_js.j(s,"w","val")??void 0);let r=chunk3R7QHNI5_js.e(e,"w","basedOn");r&&(t.basedOn=chunk3R7QHNI5_js.j(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","next");a&&(t.next=chunk3R7QHNI5_js.j(a,"w","val")??void 0);let c=chunk3R7QHNI5_js.e(e,"w","link");c&&(t.link=chunk3R7QHNI5_js.j(c,"w","val")??void 0);let d=chunk3R7QHNI5_js.e(e,"w","uiPriority");if(d){let N=chunk3R7QHNI5_js.l(d,"w","val");N!==void 0&&(t.uiPriority=N);}let u=chunk3R7QHNI5_js.e(e,"w","hidden");u&&(t.hidden=chunk3R7QHNI5_js.m(u));let m=chunk3R7QHNI5_js.e(e,"w","semiHidden");m&&(t.semiHidden=chunk3R7QHNI5_js.m(m));let g=chunk3R7QHNI5_js.e(e,"w","unhideWhenUsed");g&&(t.unhideWhenUsed=chunk3R7QHNI5_js.m(g));let p=chunk3R7QHNI5_js.e(e,"w","qFormat");p&&(t.qFormat=chunk3R7QHNI5_js.m(p));let S=chunk3R7QHNI5_js.e(e,"w","personal");S&&(t.personal=chunk3R7QHNI5_js.m(S));let f=chunk3R7QHNI5_js.e(e,"w","pPr");f&&(t.pPr=ee(f,n));let b=chunk3R7QHNI5_js.e(e,"w","rPr");b&&(t.rPr=Z(b,n));let C=chunk3R7QHNI5_js.e(e,"w","tblPr");C&&(t.tblPr=le(C));let D=chunk3R7QHNI5_js.e(e,"w","trPr");D&&(t.trPr=ce(D));let I=chunk3R7QHNI5_js.e(e,"w","tcPr");I&&(t.tcPr=fe(I));let P=chunk3R7QHNI5_js.f(e,"w","tblStylePr");if(P.length>0){t.tblStylePr=[];for(let N of P){let y=chunk3R7QHNI5_js.j(N,"w","type");if(y){let x={type:y},F=chunk3R7QHNI5_js.e(N,"w","pPr");F&&(x.pPr=ee(F,n));let X=chunk3R7QHNI5_js.e(N,"w","rPr");X&&(x.rPr=Z(X,n));let A=chunk3R7QHNI5_js.e(N,"w","tblPr");A&&(x.tblPr=le(A));let M=chunk3R7QHNI5_js.e(N,"w","trPr");M&&(x.trPr=ce(M));let E=chunk3R7QHNI5_js.e(N,"w","tcPr");E&&(x.tcPr=fe(E)),t.tblStylePr.push(x);}}}return t}function Ze(e,n){if(!e)return;let t={},o=chunk3R7QHNI5_js.e(e,"w","rPrDefault");if(o){let r=chunk3R7QHNI5_js.e(o,"w","rPr");r&&(t.rPr=Z(r,n));}let s=chunk3R7QHNI5_js.e(e,"w","pPrDefault");if(s){let r=chunk3R7QHNI5_js.e(s,"w","pPr");r&&(t.pPr=ee(r,n));}return t.rPr||t.pPr?t:void 0}function _e(e,n){if(!n)return e;if(!e)return n?{...n}:void 0;let t={...e};for(let o of Object.keys(n)){let s=n[o];if(s!==void 0)if(o==="runProperties")t.runProperties=chunkGSKMHXHG_js.b(t.runProperties,n.runProperties);else if(o==="borders"||o==="numPr"||o==="frame"){let r=t[o],a=s;t[o]={...r||{},...a||{}};}else o==="tabs"&&Array.isArray(s)?t.tabs=[...s]:t[o]=s;}return t}function Ie(e,n,t,o=new Set){if(o.has(e.styleId)||(o.add(e.styleId),!e.basedOn))return e;let s=n.get(e.basedOn);if(!s)return e;let r=Ie(s,n,t,o),a={...e,pPr:_e(r.pPr,e.pPr),rPr:chunkGSKMHXHG_js.b(r.rPr,e.rPr)};return e.type==="table"&&((r.tblPr||e.tblPr)&&(a.tblPr={...r.tblPr||{},...e.tblPr||{}}),(r.trPr||e.trPr)&&(a.trPr={...r.trPr||{},...e.trPr||{}}),(r.tcPr||e.tcPr)&&(a.tcPr={...r.tcPr||{},...e.tcPr||{}})),a}function ue(e,n){let t=new Map;try{let o=chunk3R7QHNI5_js.c(e);if(!o)return t;let s=chunk3R7QHNI5_js.f(o,"w","style");for(let r of s){let a=$e(r,n);a.styleId&&t.set(a.styleId,a);}for(let[r,a]of t){let c=Ie(a,t,n);t.set(r,c);}}catch(o){console.warn("Failed to parse styles:",o);}return t}function Ae(e,n){let t={styles:[]};try{let o=chunk3R7QHNI5_js.c(e);if(!o)return t;let s=chunk3R7QHNI5_js.e(o,"w","docDefaults");t.docDefaults=Ze(s,n);let r=chunk3R7QHNI5_js.e(o,"w","latentStyles");r&&(t.latentStyles={defLockedState:chunk3R7QHNI5_js.j(r,"w","defLockedState")==="1",defUIPriority:chunk3R7QHNI5_js.l(r,"w","defUIPriority"),defSemiHidden:chunk3R7QHNI5_js.j(r,"w","defSemiHidden")==="1",defUnhideWhenUsed:chunk3R7QHNI5_js.j(r,"w","defUnhideWhenUsed")==="1",defQFormat:chunk3R7QHNI5_js.j(r,"w","defQFormat")==="1",count:chunk3R7QHNI5_js.l(r,"w","count")});let a=ue(e,n);t.styles=Array.from(a.values());}catch(o){console.warn("Failed to parse style definitions:",o);}return t}function ke(e){let n={abstractNums:[],nums:[]};if(!e)return de(n);let t=chunk3R7QHNI5_js.c(e);if(!t)return de(n);let o=chunk3R7QHNI5_js.f(t,"w","abstractNum");for(let r of o){let a=Je(r);a&&n.abstractNums.push(a);}let s=chunk3R7QHNI5_js.f(t,"w","num");for(let r of s){let a=qe(r);a&&n.nums.push(a);}return de(n)}function Je(e){let n=chunk3R7QHNI5_js.j(e,"w","abstractNumId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o={abstractNumId:t,levels:[]},s=chunk3R7QHNI5_js.e(e,"w","multiLevelType");if(s){let u=chunk3R7QHNI5_js.j(s,"w","val");(u==="hybridMultilevel"||u==="multilevel"||u==="singleLevel")&&(o.multiLevelType=u);}let r=chunk3R7QHNI5_js.e(e,"w","name");r&&(o.name=chunk3R7QHNI5_js.j(r,"w","val")??void 0);let a=chunk3R7QHNI5_js.e(e,"w","numStyleLink");a&&(o.numStyleLink=chunk3R7QHNI5_js.j(a,"w","val")??void 0);let c=chunk3R7QHNI5_js.e(e,"w","styleLink");c&&(o.styleLink=chunk3R7QHNI5_js.j(c,"w","val")??void 0);let d=chunk3R7QHNI5_js.f(e,"w","lvl");for(let u of d){let m=Re(u);m&&o.levels.push(m);}return o.levels.sort((u,m)=>u.ilvl-m.ilvl),o}function qe(e){let n=chunk3R7QHNI5_js.j(e,"w","numId");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t))return null;let o=chunk3R7QHNI5_js.e(e,"w","abstractNumId");if(!o)return null;let s=chunk3R7QHNI5_js.j(o,"w","val");if(s===null)return null;let r=parseInt(s,10);if(isNaN(r))return null;let a={numId:t,abstractNumId:r},c=chunk3R7QHNI5_js.f(e,"w","lvlOverride");if(c.length>0){a.levelOverrides=[];for(let d of c){let u=chunk3R7QHNI5_js.j(d,"w","ilvl");if(u===null)continue;let m=parseInt(u,10);if(isNaN(m))continue;let g={ilvl:m},p=chunk3R7QHNI5_js.e(d,"w","startOverride");if(p){let f=chunk3R7QHNI5_js.j(p,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(g.startOverride=b);}}let S=chunk3R7QHNI5_js.e(d,"w","lvl");S&&(g.lvl=Re(S)??void 0),a.levelOverrides.push(g);}}return a}function Re(e){let n=chunk3R7QHNI5_js.j(e,"w","ilvl");if(n===null)return null;let t=parseInt(n,10);if(isNaN(t)||t<0||t>8)return null;let o={ilvl:t,numFmt:"decimal",lvlText:""},s=chunk3R7QHNI5_js.e(e,"w","start");if(s){let f=chunk3R7QHNI5_js.j(s,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.start=b);}}let r=chunk3R7QHNI5_js.e(e,"w","numFmt");if(r){let f=chunk3R7QHNI5_js.j(r,"w","val");f&&(o.numFmt=Qe(f));}let a=chunk3R7QHNI5_js.e(e,"w","lvlText");a&&(o.lvlText=chunk3R7QHNI5_js.j(a,"w","val")??"");let c=chunk3R7QHNI5_js.e(e,"w","lvlJc");if(c){let f=chunk3R7QHNI5_js.j(c,"w","val");(f==="left"||f==="center"||f==="right")&&(o.lvlJc=f);}let d=chunk3R7QHNI5_js.e(e,"w","suff");if(d){let f=chunk3R7QHNI5_js.j(d,"w","val");(f==="tab"||f==="space"||f==="nothing")&&(o.suffix=f);}let u=chunk3R7QHNI5_js.e(e,"w","isLgl");u&&(o.isLgl=chunk3R7QHNI5_js.m(u));let m=chunk3R7QHNI5_js.e(e,"w","lvlRestart");if(m){let f=chunk3R7QHNI5_js.j(m,"w","val");if(f!==null){let b=parseInt(f,10);isNaN(b)||(o.lvlRestart=b);}}let g=chunk3R7QHNI5_js.e(e,"w","legacy");g&&(o.legacy={legacy:chunk3R7QHNI5_js.m(g),legacySpace:chunk3R7QHNI5_js.l(g,"w","legacySpace"),legacyIndent:chunk3R7QHNI5_js.l(g,"w","legacyIndent")});let p=chunk3R7QHNI5_js.e(e,"w","pPr");p&&(o.pPr=Ge(p));let S=chunk3R7QHNI5_js.e(e,"w","rPr");return S&&(o.rPr=et(S)),o}function Qe(e){return {decimal:"decimal",upperRoman:"upperRoman",lowerRoman:"lowerRoman",upperLetter:"upperLetter",lowerLetter:"lowerLetter",ordinal:"ordinal",cardinalText:"cardinalText",ordinalText:"ordinalText",hex:"hex",chicago:"chicago",bullet:"bullet",none:"none",decimalZero:"decimalZero",ganada:"ganada",chosung:"chosung",ideographDigital:"ideographDigital",japaneseCounting:"japaneseCounting",aiueo:"aiueo",iroha:"iroha",decimalFullWidth:"decimalFullWidth",decimalHalfWidth:"decimalHalfWidth",japaneseLegal:"japaneseLegal",japaneseDigitalTenThousand:"japaneseDigitalTenThousand",decimalEnclosedCircle:"decimalEnclosedCircle",decimalFullWidth2:"decimalFullWidth2",aiueoFullWidth:"aiueoFullWidth",irohaFullWidth:"irohaFullWidth",decimalEnclosedFullstop:"decimalEnclosedFullstop",decimalEnclosedParen:"decimalEnclosedParen",decimalEnclosedCircleChinese:"decimalEnclosedCircleChinese",ideographEnclosedCircle:"ideographEnclosedCircle",ideographTraditional:"ideographTraditional",ideographZodiac:"ideographZodiac",ideographZodiacTraditional:"ideographZodiacTraditional",taiwaneseCounting:"taiwaneseCounting",ideographLegalTraditional:"ideographLegalTraditional",taiwaneseCountingThousand:"taiwaneseCountingThousand",taiwaneseDigital:"taiwaneseDigital",chineseCounting:"chineseCounting",chineseLegalSimplified:"chineseLegalSimplified",chineseCountingThousand:"chineseCountingThousand",koreanDigital:"koreanDigital",koreanCounting:"koreanCounting",koreanLegal:"koreanLegal",koreanDigital2:"koreanDigital2",vietnameseCounting:"vietnameseCounting",russianLower:"russianLower",russianUpper:"russianUpper",numberInDash:"numberInDash",hebrew1:"hebrew1",hebrew2:"hebrew2",arabicAlpha:"arabicAlpha",arabicAbjad:"arabicAbjad",hindiVowels:"hindiVowels",hindiConsonants:"hindiConsonants",hindiNumbers:"hindiNumbers",hindiCounting:"hindiCounting",thaiLetters:"thaiLetters",thaiNumbers:"thaiNumbers",thaiCounting:"thaiCounting"}[e]??"decimal"}function Ge(e){let n={},t=chunk3R7QHNI5_js.e(e,"w","ind");if(t){let s=chunk3R7QHNI5_js.l(t,"w","left"),r=chunk3R7QHNI5_js.l(t,"w","right"),a=chunk3R7QHNI5_js.l(t,"w","start"),c=chunk3R7QHNI5_js.l(t,"w","end"),d=chunk3R7QHNI5_js.l(t,"w","firstLine"),u=chunk3R7QHNI5_js.l(t,"w","hanging"),m=s??a,g=r??c;m!==void 0&&(n.indentLeft=m),g!==void 0&&(n.indentRight=g),u!==void 0?(n.indentFirstLine=-u,n.hangingIndent=true):d!==void 0&&(n.indentFirstLine=d);}let o=chunk3R7QHNI5_js.e(e,"w","tabs");if(o){n.tabs=[];let s=chunk3R7QHNI5_js.f(o,"w","tab");for(let r of s){let a=chunk3R7QHNI5_js.l(r,"w","pos"),c=chunk3R7QHNI5_js.j(r,"w","val"),d=chunk3R7QHNI5_js.j(r,"w","leader");a!==void 0&&c&&n.tabs.push({position:a,alignment:Ye(c),leader:Ke(d)});}}return n}function Ye(e){switch(e){case "left":return "left";case "center":return "center";case "right":return "right";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "num";default:return "left"}}function Ke(e){if(e)switch(e){case "none":return "none";case "dot":return "dot";case "hyphen":return "hyphen";case "underscore":return "underscore";case "heavy":return "heavy";case "middleDot":return "middleDot";default:return}}function et(e){let n={},t=chunk3R7QHNI5_js.e(e,"w","rFonts");t&&(n.fontFamily={ascii:chunk3R7QHNI5_js.j(t,"w","ascii")??void 0,hAnsi:chunk3R7QHNI5_js.j(t,"w","hAnsi")??void 0,eastAsia:chunk3R7QHNI5_js.j(t,"w","eastAsia")??void 0,cs:chunk3R7QHNI5_js.j(t,"w","cs")??void 0});let o=chunk3R7QHNI5_js.e(e,"w","sz");if(o){let d=chunk3R7QHNI5_js.l(o,"w","val");d!==void 0&&(n.fontSize=d);}let s=chunk3R7QHNI5_js.e(e,"w","color");if(s){let d=chunk3R7QHNI5_js.j(s,"w","val"),u=chunk3R7QHNI5_js.j(s,"w","themeColor");d==="auto"?n.color={auto:true}:u?n.color={themeColor:u,themeTint:chunk3R7QHNI5_js.j(s,"w","themeTint")??void 0,themeShade:chunk3R7QHNI5_js.j(s,"w","themeShade")??void 0}:d&&(n.color={rgb:d});}let r=chunk3R7QHNI5_js.e(e,"w","b");r&&(n.bold=chunk3R7QHNI5_js.m(r));let a=chunk3R7QHNI5_js.e(e,"w","i");a&&(n.italic=chunk3R7QHNI5_js.m(a));let c=chunk3R7QHNI5_js.e(e,"w","vanish");return c&&(n.hidden=chunk3R7QHNI5_js.m(c)),n}function de(e){let n=new Map;for(let o of e.abstractNums)n.set(o.abstractNumId,o);let t=new Map;for(let o of e.nums)t.set(o.numId,o);return {definitions:e,getLevel(o,s){let r=t.get(o);if(!r)return null;if(r.levelOverrides){let c=r.levelOverrides.find(d=>d.ilvl===s);if(c){if(c.lvl)return c.lvl;let d=n.get(r.abstractNumId);if(d){let u=d.levels.find(m=>m.ilvl===s);if(u&&c.startOverride!==void 0)return {...u,start:c.startOverride}}}}let a=n.get(r.abstractNumId);if(!a)return null;if(a.numStyleLink&&a.levels.length===0){for(let c of n.values())if(c.styleLink===a.numStyleLink&&c.levels.length>0){a=c;break}}return a.levels.find(c=>c.ilvl===s)??null},getAbstract(o){return n.get(o)??null},getInstance(o){return t.get(o)??null},hasNumbering(o){return t.has(o)}}}function tt(e,n){switch(n){case "decimal":case "decimalZero":return e.toString();case "upperRoman":return Le(e).toUpperCase();case "lowerRoman":return Le(e).toLowerCase();case "upperLetter":return Ee(e).toUpperCase();case "lowerLetter":return Ee(e).toLowerCase();case "ordinal":return nt(e);case "bullet":return "\u2022";case "none":return "";case "decimalEnclosedParen":return `(${e})`;case "numberInDash":return `-${e}-`;default:return e.toString()}}function Le(e){if(e<=0||e>3999)return e.toString();let n=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],t="",o=e;for(let[s,r]of n)for(;o>=s;)t+=r,o-=s;return t}function Ee(e){if(e<=0)return "";let n="",t=e;for(;t>0;)t--,n=String.fromCharCode(97+t%26)+n,t=Math.floor(t/26);return n}function nt(e){let n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Dt(e,n,t){let o=e;for(let s=1;s<=9;s++){let r=`%${s}`;if(o.includes(r)){let a=s-1,c=n[a]??1,d=t[a]??"decimal",u=tt(c,d);o=o.replace(r,u);}}return o}function Xt(e){if(e.lvlText)return e.lvlText;let n=e.rPr?.fontFamily?.ascii||e.rPr?.fontFamily?.hAnsi;if(n){let t=n.toLowerCase();if(t==="symbol")return "\u2022";if(t.includes("wingding"))return "\u2751"}return "\u2022"}function It(e){return e.numFmt==="bullet"||e.numFmt==="none"}var Be=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function Ve(e){let n=[],t;for(Be.lastIndex=0;(t=Be.exec(e))!==null;){let o=t[1].trim();o&&!n.includes(o)&&n.push(o);}return n}function te(e){let n=[];for(let t of e)if(t.type==="paragraph"){let o=chunkLERLET2D_js.N(t),s=Ve(o);for(let r of s)n.includes(r)||n.push(r);}else if(t.type==="table"){let o=je(t);for(let s of o)n.includes(s)||n.push(s);}return n}function je(e){let n=[];for(let t of e.rows)for(let o of t.cells)for(let s of o.content)if(s.type==="paragraph"){let r=chunkLERLET2D_js.N(s),a=Ve(r);for(let c of a)n.includes(c)||n.push(c);}else if(s.type==="table"){let r=je(s);for(let a of r)n.includes(a)||n.push(a);}return n}function ot(e,n){let t=[],o=[];for(let s of e)o.push(s),s.type==="paragraph"&&s.sectionProperties&&(t.push({properties:s.sectionProperties,content:o}),o=[]);return (o.length>0||t.length===0)&&t.push({properties:n??chunkLERLET2D_js.C(),content:o}),t}function ne(e,n=null,t=null,o=null,s=null,r=null){let a={content:[]};if(!e)return a;let c=chunk3R7QHNI5_js.a(e);if(!c)return a;let d=(c.elements??[]).find(p=>p.type==="element"&&(p.name==="w:document"||p.name?.endsWith(":document")));if(!d)return a;let u=chunk3R7QHNI5_js.e(d,"w","body");if(!u)return a;a.content=chunkLERLET2D_js.q(u,n,t,o,s,r);let m=chunk3R7QHNI5_js.e(u,"w","sectPr");m&&(a.finalSectionProperties=chunkLERLET2D_js.B(m,s));let g=ot(a.content,a.finalSectionProperties);return a.sections=chunkLERLET2D_js.D(g),a.finalSectionProperties&&a.sections.length>0&&(a.finalSectionProperties=a.sections[a.sections.length-1].properties),a}function rt(e){let n=new Map,t=chunk3R7QHNI5_js.a(e);if(!t)return n;let o=chunk3R7QHNI5_js.e(t,"w16cex","commentsExtensible")??t;for(let s of chunk3R7QHNI5_js.i(o)){if((s.name?.replace(/^.*:/,"")??"")!=="comment")continue;let a=chunk3R7QHNI5_js.j(s,"w16cex","paraId")??chunk3R7QHNI5_js.j(s,"w15","paraId")??s.attributes?.["w16cex:paraId"]??s.attributes?.["w15:paraId"],c=chunk3R7QHNI5_js.j(s,"w16cex","dateUtc")??chunk3R7QHNI5_js.j(s,"w15","dateUtc")??s.attributes?.["w16cex:dateUtc"]??s.attributes?.["w15:dateUtc"];a&&c&&n.set(String(a).toUpperCase(),String(c));}return n}function it(e){let n=new Map,t=new Map,o=chunk3R7QHNI5_js.a(e);if(!o)return {parentByParaId:n,doneByParaId:t};let s=chunk3R7QHNI5_js.e(o,"w15","commentsEx")??o;for(let r of chunk3R7QHNI5_js.i(s)){if((r.name?.replace(/^.*:/,"")??"")!=="commentEx")continue;let c=chunk3R7QHNI5_js.j(r,"w15","paraId")??r.attributes?.["w15:paraId"],d=chunk3R7QHNI5_js.j(r,"w15","paraIdParent")??r.attributes?.["w15:paraIdParent"],u=chunk3R7QHNI5_js.j(r,"w15","done")??r.attributes?.["w15:done"];if(c){let m=String(c).toUpperCase();d&&n.set(m,String(d).toUpperCase()),u==="1"&&t.set(m,true);}}return {parentByParaId:n,doneByParaId:t}}function Oe(e,n,t,o,s,r,a){if(!e)return [];let c=chunk3R7QHNI5_js.a(e);if(!c)return [];let d=r?rt(r):new Map,u=a?it(a):null,m=chunk3R7QHNI5_js.e(c,"w","comments")??c,g=chunk3R7QHNI5_js.i(m),p=[],S=[];for(let f of g){if((f.name?.replace(/^.*:/,"")??"")!=="comment")continue;let C=parseInt(chunk3R7QHNI5_js.j(f,"w","id")??"0",10),D=chunk3R7QHNI5_js.j(f,"w","author")??"Unknown",I=chunk3R7QHNI5_js.j(f,"w","initials"),P=I!=null?String(I):void 0,N=chunk3R7QHNI5_js.j(f,"w","date"),y=N!=null?String(N):void 0,x=chunk3R7QHNI5_js.j(f,"w14","paraId")??f.attributes?.["w14:paraId"]??chunk3R7QHNI5_js.j(f,"w","paraId"),X=(x?d.get(String(x).toUpperCase()):void 0)??y,A=chunk3R7QHNI5_js.j(f,"w","done")??f.attributes?.["w:done"],M=A==="1"||A==="true"?true:void 0,E=chunk3R7QHNI5_js.j(f,"w16cid","parentId")??chunk3R7QHNI5_js.j(f,"w","parentId")??f.attributes?.["w16cid:parentId"]??f.attributes?.["w:parentId"],V=E!=null?parseInt(String(E),10):void 0,H=[],B="";for(let j of chunk3R7QHNI5_js.i(f))if((j.name?.replace(/^.*:/,"")??"")==="p"){let h=chunkLERLET2D_js.O(j,n,t,null,o,s);H.push(h);let T=chunk3R7QHNI5_js.j(j,"w14","paraId")??j.attributes?.["w14:paraId"];T&&(B=String(T).toUpperCase());}M==null&&u&&B&&u.doneByParaId.get(B)&&(M=true),S.push(B),p.push({id:C,author:D,initials:P,date:X,content:H,...M!=null?{done:M}:{},...V!=null&&!isNaN(V)?{parentId:V}:{}});}if(u&&u.parentByParaId.size>0){let f=new Map;for(let b=0;b<p.length;b++){let C=S[b];C&&f.set(C,p[b].id);}for(let b=0;b<p.length;b++){if(p[b].parentId!=null)continue;let C=S[b];if(!C)continue;let D=u.parentByParaId.get(C);if(!D)continue;let I=f.get(D);I!=null&&(p[b]={...p[b],parentId:I});}}return p}async function He(e,n={}){let t=e instanceof ArrayBuffer?e:await chunkMNOHUTKE_js.s(e),{onProgress:o=()=>{},preloadFonts:s=true,parseHeadersFooters:r=true,parseNotes:a=true,detectVariables:c=true}=n,d=[];try{let p=function(T,L){let U=performance.now(),re=L(),W=performance.now()-U;return g.push({stage:T,ms:W}),W>1e3&&console.warn(`[parseDocx] ${T} took ${Math.round(W)}ms`),re};var u=p;let m=performance.now(),g=[];async function S(T,L){let U=performance.now(),re=await L(),W=performance.now()-U;return g.push({stage:T,ms:W}),W>1e3&&console.warn(`[parseDocx] ${T} took ${Math.round(W)}ms`),re}o("Extracting DOCX...",0);let f=await S("unzip",()=>Y(t));o("Extracted DOCX",10),o("Parsing relationships...",10);let b=p("relationships",()=>f.documentRels?chunkZ3LGMBJC_js.b(f.documentRels):new Map);o("Parsed relationships",15),o("Parsing theme...",15);let C=p("theme",()=>chunkLERLET2D_js.a(f.themeXml));o("Parsed theme",20),o("Parsing styles...",20);let D=null,I;p("styles",()=>{f.stylesXml&&(D=ue(f.stylesXml,C),I=Ae(f.stylesXml,C));}),o("Parsed styles",30),o("Parsing numbering...",30);let P=p("numbering",()=>ke(f.numberingXml)),N=p("settings",()=>chunkFIGLFSNR_js.b(f.settingsXml));o("Parsed numbering",35),o("Processing media files...",35);let y=p("media",()=>st(f,b));o("Processed media",40),o("Parsing document body...",40);let x={content:[]};p("documentBody",()=>{f.documentXml?x=ne(f.documentXml,D,C,P,b,y):d.push("No document.xml found in DOCX");}),o("Parsed document body",55);let F,X;if(r){o("Parsing headers/footers...",55);let T=p("headersFooters",()=>at(f,D,C,P,b,y));F=T.headers,X=T.footers,o("Parsed headers/footers",65);}else o("Skipping headers/footers",65);let A,M,E,V;if(a){o("Parsing footnotes/endnotes...",65);let T=p("footnotesEndnotes",()=>lt(f,D,C,P,b,y));A=T.footnotes,M=T.endnotes,E=T.footnoteSeparators,V=T.endnoteSeparators,o("Parsed footnotes/endnotes",75);}else o("Skipping footnotes/endnotes",75);o("Parsing comments...",75);let H=p("comments",()=>Oe(f.commentsXml,D,C,b,y,f.commentsExtensibleXml,f.commentsExtendedXml));H.length>0&&(x.comments=H);let B;c?(o("Detecting template variables...",75),B=p("variables",()=>te(x.content)),o("Detected variables",80)):o("Skipping variable detection",80),s?(o("Loading fonts...",80),await S("fonts",()=>ct(C,I,x)),o("Loaded fonts",95)):o("Skipping font loading",95),o("Assembling document...",95);let _={package:{document:x,styles:I,theme:C,numbering:P.definitions,settings:N,headers:F,footers:X,footnotes:A,endnotes:M,footnoteSeparators:E,endnoteSeparators:V,relationships:b,media:y},originalBuffer:t,templateVariables:B,warnings:d.length>0?d:void 0},h=performance.now()-m;if(h>2e3){let T=g.filter(L=>L.ms>100).map(L=>`${L.stage}: ${Math.round(L.ms)}ms`).join(", ");console.warn(`[parseDocx] Total: ${Math.round(h)}ms`+(T?` (${T})`:""));}return o("Complete",100),_}catch(m){let g=m instanceof Error?m.message:String(m);throw console.error("[parseDocx] Failed to parse DOCX:",g,m),new Error(`Failed to parse DOCX: ${g}`)}}function st(e,n){let t=new Map;for(let[o,s]of e.media.entries()){let r=o.split("/").pop()||o,a=Me(o),c=new Uint8Array(s),d="";for(let S=0;S<c.length;S++)d+=String.fromCharCode(c[S]);let u=btoa(d),m=`data:${a};base64,${u}`,g={path:o,filename:r,mimeType:a,data:s,dataUrl:m};t.set(o,g);let p=o.replace(/^word\//,"");p!==o&&t.set(p,g);}return t}function oe(e,n){let t=n.toLowerCase();for(let[o,s]of e.entries())if(o.toLowerCase()===t)return s}function at(e,n,t,o,s,r){let a=new Map,c=new Map;for(let[d,u]of s.entries())if(u.type===chunkZ3LGMBJC_js.a.header&&u.target){let m=u.target.split("/").pop()||u.target,g=oe(e.headers,m);if(g){let p=`word/_rels/${m}.rels`,S=oe(e.allXml,p),f=S?chunkZ3LGMBJC_js.b(S):s,b=chunkLERLET2D_js.r(g,"default",n,t,o,f,r);a.set(d,b);}}else if(u.type===chunkZ3LGMBJC_js.a.footer&&u.target){let m=u.target.split("/").pop()||u.target,g=oe(e.footers,m);if(g){let p=`word/_rels/${m}.rels`,S=oe(e.allXml,p),f=S?chunkZ3LGMBJC_js.b(S):s,b=chunkLERLET2D_js.s(g,"default",n,t,o,f,r);c.set(d,b);}}return {headers:a,footers:c}}function lt(e,n,t,o,s,r){let a=chunkLERLET2D_js.t(e.footnotesXml,n,t,o,s,r),c=chunkLERLET2D_js.u(e.endnotesXml,n,t,o,s,r);return {footnotes:a.getNormalFootnotes(),endnotes:c.getNormalEndnotes(),footnoteSeparators:a.footnotes.filter(chunkLERLET2D_js.z),endnoteSeparators:c.endnotes.filter(chunkLERLET2D_js.A)}}async function ct(e,n,t){let o=new Set;if(e?.fontScheme){let{majorFont:s,minorFont:r}=e.fontScheme;s?.latin&&o.add(s.latin),r?.latin&&o.add(r.latin);}if(n?.docDefaults?.rPr?.fontFamily?.ascii&&o.add(n.docDefaults.rPr.fontFamily.ascii),n?.styles)for(let s of n.styles)s.rPr?.fontFamily?.ascii&&o.add(s.rPr.fontFamily.ascii),s.rPr?.fontFamily?.hAnsi&&o.add(s.rPr.fontFamily.hAnsi);if(t.content){for(let s of t.content)if(s.type==="paragraph")for(let r of s.content)r.type==="run"&&r.formatting?.fontFamily&&(r.formatting.fontFamily.ascii&&o.add(r.formatting.fontFamily.ascii),r.formatting.fontFamily.hAnsi&&o.add(r.formatting.fontFamily.hAnsi));}if(o.size>0)try{await chunkMNOHUTKE_js.o(Array.from(o));}catch(s){console.warn("Failed to load some fonts:",s);}}async function Kt(e){return He(e,{preloadFonts:false,parseHeadersFooters:false,parseNotes:false,detectVariables:true})}async function en(e,n){return He(e,{onProgress:n,preloadFonts:true,parseHeadersFooters:true,parseNotes:true,detectVariables:true})}async function tn(e){let n=await Y(e);if(!n.documentXml)return [];let t=ne(n.documentXml);return te(t.content)}async function nn(e){let n=await Y(e),t=n.documentXml?te(ne(n.documentXml).content):[];return {hasDocument:n.documentXml!==null,hasStyles:n.stylesXml!==null,hasTheme:n.themeXml!==null,hasNumbering:n.numberingXml!==null,headerCount:n.headers.size,footerCount:n.footers.size,mediaCount:n.media.size,variableCount:t.length}}
|
|
2
|
-
exports.a=ke;exports.b=tt;exports.c=Dt;exports.d=Xt;exports.e=It;exports.f=He;exports.g=Kt;exports.h=en;exports.i=tn;exports.j=nn;
|
package/dist/chunk-QAJSNLJR.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {r,q}from'./chunk-CRMZH7U7.mjs';var t=new r(q());t.buildSchema();t.initializeRuntime();var s=t,n=t.getSchema();export{s as a,n as b};
|