@eigenpal/docx-editor-core 1.0.0 → 1.0.1

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.
Files changed (77) hide show
  1. package/dist/agent/index.js +1 -1
  2. package/dist/agent/index.mjs +1 -1
  3. package/dist/chunk-3GNIP6IX.mjs +4 -0
  4. package/dist/chunk-7UTXBQKF.mjs +1 -0
  5. package/dist/{chunk-CKXAHSJQ.js → chunk-AFMMYLPX.js} +2 -2
  6. package/dist/{chunk-J7ULKGU2.mjs → chunk-AGNZEOVL.mjs} +1 -1
  7. package/dist/chunk-BD4CYYFB.js +1 -0
  8. package/dist/{chunk-6ILFFGGS.js → chunk-C6GSFUV2.js} +1 -1
  9. package/dist/chunk-DN36K5JU.mjs +1 -0
  10. package/dist/{chunk-CWAP26GB.js → chunk-DV6IEOP5.js} +3 -3
  11. package/dist/{chunk-23CP3TOP.js → chunk-GH5N36F7.js} +1 -1
  12. package/dist/chunk-GNPLUGUG.mjs +1 -0
  13. package/dist/chunk-HVZMO3BU.js +1 -0
  14. package/dist/chunk-ITVXBQGR.mjs +1 -0
  15. package/dist/{chunk-S7IKPRC3.js → chunk-KSYEBTYE.js} +1 -1
  16. package/dist/{chunk-ZRZ2VRQQ.mjs → chunk-LDAOONXZ.mjs} +1 -1
  17. package/dist/{chunk-36VIYQHD.mjs → chunk-N3GIC2UI.mjs} +1 -1
  18. package/dist/{chunk-FC6QL3E6.js → chunk-NFYCMDM5.js} +1 -1
  19. package/dist/chunk-P3AXSRLG.mjs +1 -0
  20. package/dist/chunk-PK4PDRTA.js +1 -0
  21. package/dist/{chunk-VKTCTMIO.mjs → chunk-R7RR6M4A.mjs} +1 -1
  22. package/dist/{chunk-BGC7QKP5.mjs → chunk-RSMS6OTE.mjs} +1 -1
  23. package/dist/chunk-TZJUO3NW.js +1 -0
  24. package/dist/chunk-YE357WVA.js +1 -0
  25. package/dist/core-plugins.js +1 -1
  26. package/dist/core-plugins.mjs +1 -1
  27. package/dist/core.d.mts +1 -1
  28. package/dist/core.d.ts +1 -1
  29. package/dist/core.js +1 -1
  30. package/dist/core.mjs +1 -1
  31. package/dist/docx/index.js +1 -1
  32. package/dist/docx/index.mjs +1 -1
  33. package/dist/docx/parser.js +1 -1
  34. package/dist/docx/parser.mjs +1 -1
  35. package/dist/headless.js +1 -1
  36. package/dist/headless.mjs +1 -1
  37. package/dist/layout-bridge/index.d.mts +1 -1
  38. package/dist/layout-bridge/index.d.ts +1 -1
  39. package/dist/layout-bridge/index.js +1 -1
  40. package/dist/layout-bridge/index.mjs +1 -1
  41. package/dist/layout-bridge/measuring/index.d.mts +17 -1
  42. package/dist/layout-bridge/measuring/index.d.ts +17 -1
  43. package/dist/layout-bridge/measuring/index.js +1 -1
  44. package/dist/layout-bridge/measuring/index.mjs +1 -1
  45. package/dist/layout-bridge/tableInsertHover.js +1 -1
  46. package/dist/layout-bridge/tableInsertHover.mjs +1 -1
  47. package/dist/layout-bridge/toFlowBlocks.js +1 -1
  48. package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
  49. package/dist/layout-engine/types.d.mts +8 -4
  50. package/dist/layout-engine/types.d.ts +8 -4
  51. package/dist/layout-painter/index.js +1 -1
  52. package/dist/layout-painter/index.mjs +1 -1
  53. package/dist/layout-painter/renderPage.d.mts +7 -0
  54. package/dist/layout-painter/renderPage.d.ts +7 -0
  55. package/dist/layout-painter/renderPage.js +1 -1
  56. package/dist/layout-painter/renderPage.mjs +1 -1
  57. package/dist/mcp-cli.mjs +15 -15
  58. package/dist/mcp.js +2 -2
  59. package/dist/mcp.mjs +1 -1
  60. package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
  61. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
  62. package/dist/prosemirror/conversion/index.js +1 -1
  63. package/dist/prosemirror/conversion/index.mjs +1 -1
  64. package/dist/prosemirror/index.js +1 -1
  65. package/dist/prosemirror/index.mjs +1 -1
  66. package/package.json +1 -1
  67. package/dist/chunk-4AJYHCPB.js +0 -2
  68. package/dist/chunk-7GHQ4YCJ.mjs +0 -1
  69. package/dist/chunk-BWHUD2XC.mjs +0 -4
  70. package/dist/chunk-DY2MJCSV.js +0 -1
  71. package/dist/chunk-G6Y4UZMJ.mjs +0 -1
  72. package/dist/chunk-LMF2ELOB.js +0 -1
  73. package/dist/chunk-N27FJQTG.js +0 -1
  74. package/dist/chunk-UIROUI5I.mjs +0 -1
  75. package/dist/chunk-UOFQYE2L.mjs +0 -1
  76. package/dist/chunk-V7BKPX67.mjs +0 -2
  77. package/dist/chunk-Y7JZPBBW.js +0 -1
package/dist/mcp.js CHANGED
@@ -1,6 +1,6 @@
1
- 'use strict';var chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunkWNTT4MGC_js=require('./chunk-WNTT4MGC.js');require('./chunk-CCWOLPZE.js');var chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunk6ILFFGGS_js=require('./chunk-6ILFFGGS.js');require('./chunk-CWAP26GB.js'),require('./chunk-KBU6QQFU.js'),require('./chunk-MZOVDLYL.js'),require('./chunk-YGHHSCPR.js'),require('./chunk-7VCMJCBY.js'),require('./chunk-T4CPTPRP.js'),require('./chunk-Q4CKLXWA.js'),require('./chunk-4Q2IP5FW.js'),require('./chunk-DC7S76ZX.js');var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
1
+ 'use strict';var chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunkWNTT4MGC_js=require('./chunk-WNTT4MGC.js');require('./chunk-CCWOLPZE.js');var chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunkC6GSFUV2_js=require('./chunk-C6GSFUV2.js');require('./chunk-DV6IEOP5.js'),require('./chunk-KBU6QQFU.js'),require('./chunk-MZOVDLYL.js'),require('./chunk-YGHHSCPR.js'),require('./chunk-7VCMJCBY.js'),require('./chunk-T4CPTPRP.js'),require('./chunk-Q4CKLXWA.js'),require('./chunk-4Q2IP5FW.js'),require('./chunk-DC7S76ZX.js');var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
2
2
  Returns a document ID that can be used with other tools.
3
- The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await chunk6ILFFGGS_js.f(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
3
+ The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await chunkC6GSFUV2_js.f(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
4
4
  Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await chunkWNTT4MGC_js.h(c.document):t=await chunkWNTT4MGC_js.s(c.document);let n=new Uint8Array(t),o="";for(let d=0;d<n.length;d++)o+=String.fromCharCode(n[d]);let a=btoa(o);return {content:[{type:"text",text:JSON.stringify({documentId:e,base64:a,size:t.byteLength,message:"Document exported successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to save document: ${t.message}`}]}}},annotations:{category:"core",readOnly:true,complexity:"low"}},R={name:"docx_close",description:`Close a document and free its memory.
5
5
  Use this when done working with a document.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r;return s.session.documents.has(e)?(s.session.documents.delete(e),{content:[{type:"text",text:JSON.stringify({documentId:e,message:"Document closed"})}]}):{isError:true,content:[{type:"text",text:`Document not found: ${e}`}]}},annotations:{category:"core",readOnly:false,complexity:"low"}},k={name:"docx_get_info",description:`Get metadata and statistics about a document.
6
6
  Returns paragraph count, word count, table count, and other useful info.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};let t=c.document,n=t.package.document,o=n.content.filter(p=>p.type==="paragraph"),a=n.content.filter(p=>p.type==="table"),d=0;for(let p of o)if(p.type==="paragraph"){let l=P(p);d+=l.split(/\s+/).filter(y=>y.length>0).length;}return {content:[{type:"text",text:JSON.stringify({documentId:e,paragraphCount:o.length,tableCount:a.length,wordCount:d,hasStyles:!!t.package.styles,hasTheme:!!t.package.theme,source:c.source,lastModified:c.lastModified})}]}},annotations:{category:"core",readOnly:true,complexity:"low"}},$={name:"docx_get_text",description:`Get the plain text content of the document.
package/dist/mcp.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {a}from'./chunk-CUY2THAO.mjs';import {h as h$1,s}from'./chunk-4EHBV73E.mjs';import'./chunk-ZYESB4KC.mjs';import {b}from'./chunk-3NRMSZX2.mjs';import {f}from'./chunk-VKTCTMIO.mjs';import'./chunk-BWHUD2XC.mjs';import'./chunk-Y5HZAMND.mjs';import'./chunk-ILJUDEZ5.mjs';import'./chunk-IBNUQL57.mjs';import'./chunk-6LOYA7G5.mjs';import'./chunk-6VUYFDHY.mjs';import'./chunk-VQWZHPWI.mjs';import'./chunk-VW22RZ6C.mjs';import'./chunk-QYUPLKLP.mjs';var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
1
+ import {a}from'./chunk-CUY2THAO.mjs';import {h as h$1,s}from'./chunk-4EHBV73E.mjs';import'./chunk-ZYESB4KC.mjs';import {b}from'./chunk-3NRMSZX2.mjs';import {f}from'./chunk-R7RR6M4A.mjs';import'./chunk-3GNIP6IX.mjs';import'./chunk-Y5HZAMND.mjs';import'./chunk-ILJUDEZ5.mjs';import'./chunk-IBNUQL57.mjs';import'./chunk-6LOYA7G5.mjs';import'./chunk-6VUYFDHY.mjs';import'./chunk-VQWZHPWI.mjs';import'./chunk-VW22RZ6C.mjs';import'./chunk-QYUPLKLP.mjs';var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
2
2
  Returns a document ID that can be used with other tools.
3
3
  The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await f(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
4
4
  Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s$1)=>{let{documentId:e}=r,c=s$1.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await h$1(c.document):t=await s(c.document);let n=new Uint8Array(t),o="";for(let d=0;d<n.length;d++)o+=String.fromCharCode(n[d]);let a=btoa(o);return {content:[{type:"text",text:JSON.stringify({documentId:e,base64:a,size:t.byteLength,message:"Document exported successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to save document: ${t.message}`}]}}},annotations:{category:"core",readOnly:true,complexity:"low"}},R={name:"docx_close",description:`Close a document and free its memory.
@@ -1 +1 @@
1
- 'use strict';var chunkLMF2ELOB_js=require('../../chunk-LMF2ELOB.js');require('../../chunk-D4RPOJC7.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-YGHHSCPR.js'),require('../../chunk-7VCMJCBY.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkLMF2ELOB_js.a}});Object.defineProperty(exports,"proseDocToBlocks",{enumerable:true,get:function(){return chunkLMF2ELOB_js.c}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkLMF2ELOB_js.b}});
1
+ 'use strict';var chunkYE357WVA_js=require('../../chunk-YE357WVA.js');require('../../chunk-D4RPOJC7.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-YGHHSCPR.js'),require('../../chunk-7VCMJCBY.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkYE357WVA_js.a}});Object.defineProperty(exports,"proseDocToBlocks",{enumerable:true,get:function(){return chunkYE357WVA_js.c}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkYE357WVA_js.b}});
@@ -1 +1 @@
1
- export{a as fromProseDoc,c as proseDocToBlocks,b as updateDocumentContent}from'../../chunk-UOFQYE2L.mjs';import'../../chunk-LBKMYD3M.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-IBNUQL57.mjs';import'../../chunk-6LOYA7G5.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
1
+ export{a as fromProseDoc,c as proseDocToBlocks,b as updateDocumentContent}from'../../chunk-P3AXSRLG.mjs';import'../../chunk-LBKMYD3M.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-IBNUQL57.mjs';import'../../chunk-6LOYA7G5.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';require('../../chunk-UQ6WNWXX.js');var chunkLMF2ELOB_js=require('../../chunk-LMF2ELOB.js'),chunkY7JZPBBW_js=require('../../chunk-Y7JZPBBW.js');require('../../chunk-D4RPOJC7.js'),require('../../chunk-IP2VXNWG.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-MZOVDLYL.js'),require('../../chunk-YGHHSCPR.js'),require('../../chunk-7VCMJCBY.js'),require('../../chunk-SUXJX72X.js'),require('../../chunk-DFZTUQ7O.js'),require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-NERY274X.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-T4CPTPRP.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkLMF2ELOB_js.a}});Object.defineProperty(exports,"proseDocToBlocks",{enumerable:true,get:function(){return chunkLMF2ELOB_js.c}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkLMF2ELOB_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.a}});
1
+ 'use strict';require('../../chunk-UQ6WNWXX.js');var chunkYE357WVA_js=require('../../chunk-YE357WVA.js'),chunkHVZMO3BU_js=require('../../chunk-HVZMO3BU.js');require('../../chunk-D4RPOJC7.js'),require('../../chunk-IP2VXNWG.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-MZOVDLYL.js'),require('../../chunk-YGHHSCPR.js'),require('../../chunk-7VCMJCBY.js'),require('../../chunk-SUXJX72X.js'),require('../../chunk-DFZTUQ7O.js'),require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-NERY274X.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-T4CPTPRP.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkYE357WVA_js.a}});Object.defineProperty(exports,"proseDocToBlocks",{enumerable:true,get:function(){return chunkYE357WVA_js.c}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkYE357WVA_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.a}});
@@ -1 +1 @@
1
- import'../../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,c as proseDocToBlocks,b as updateDocumentContent}from'../../chunk-UOFQYE2L.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../../chunk-UIROUI5I.mjs';import'../../chunk-LBKMYD3M.mjs';import'../../chunk-NBLJPT54.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-ILJUDEZ5.mjs';import'../../chunk-IBNUQL57.mjs';import'../../chunk-6LOYA7G5.mjs';import'../../chunk-JKVXID22.mjs';import'../../chunk-LVD6HXRF.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-6VUYFDHY.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
1
+ import'../../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,c as proseDocToBlocks,b as updateDocumentContent}from'../../chunk-P3AXSRLG.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../../chunk-GNPLUGUG.mjs';import'../../chunk-LBKMYD3M.mjs';import'../../chunk-NBLJPT54.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-ILJUDEZ5.mjs';import'../../chunk-IBNUQL57.mjs';import'../../chunk-6LOYA7G5.mjs';import'../../chunk-JKVXID22.mjs';import'../../chunk-LVD6HXRF.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-6VUYFDHY.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -1 +1 @@
1
- 'use strict';require('../chunk-TRJWRZZD.js');var chunk4GER4JLW_js=require('../chunk-4GER4JLW.js'),chunkI6PMX4BO_js=require('../chunk-I6PMX4BO.js');require('../chunk-UQ6WNWXX.js');var chunkLMF2ELOB_js=require('../chunk-LMF2ELOB.js'),chunkY7JZPBBW_js=require('../chunk-Y7JZPBBW.js');require('../chunk-D4RPOJC7.js');var chunkIP2VXNWG_js=require('../chunk-IP2VXNWG.js');require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js');var chunkSYJAAHUK_js=require('../chunk-SYJAAHUK.js'),chunk62NPHRTF_js=require('../chunk-62NPHRTF.js'),chunkUDPROEUK_js=require('../chunk-UDPROEUK.js'),chunkGGPKPXON_js=require('../chunk-GGPKPXON.js');require('../chunk-2KHWHVTA.js');var chunkSUXJX72X_js=require('../chunk-SUXJX72X.js'),chunkDFZTUQ7O_js=require('../chunk-DFZTUQ7O.js');require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js');var chunk6LVPRTB6_js=require('../chunk-6LVPRTB6.js'),chunkNERY274X_js=require('../chunk-NERY274X.js');require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');var prosemirrorState=require('prosemirror-state');function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}Object.defineProperty(exports,"LayoutSelectionGate",{enumerable:true,get:function(){return chunk4GER4JLW_js.a}});Object.defineProperty(exports,"findParagraphByParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.b}});Object.defineProperty(exports,"findStartPosForParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.a}});Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkLMF2ELOB_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkLMF2ELOB_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.a}});Object.defineProperty(exports,"StyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.b}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkSYJAAHUK_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.h}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkSYJAAHUK_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkSYJAAHUK_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkSYJAAHUK_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkSYJAAHUK_js.B}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkSYJAAHUK_js.n}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkSYJAAHUK_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkSYJAAHUK_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkSYJAAHUK_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkSYJAAHUK_js.v}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkSYJAAHUK_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkSYJAAHUK_js.D}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkSYJAAHUK_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkSYJAAHUK_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunk62NPHRTF_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunk62NPHRTF_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.r}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunk62NPHRTF_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.q}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunk62NPHRTF_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunk62NPHRTF_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunk62NPHRTF_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunk62NPHRTF_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunk62NPHRTF_js.B}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunk62NPHRTF_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunk62NPHRTF_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.h}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkUDPROEUK_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkUDPROEUK_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkUDPROEUK_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkUDPROEUK_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkSUXJX72X_js.b}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.h}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.n}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.l}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.p}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.f}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.m}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.k}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.o}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.e}});Object.defineProperty(exports,"createSelectionTrackerPlugin",{enumerable:true,get:function(){return chunk6LVPRTB6_js.c}});Object.defineProperty(exports,"extractSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.b}});Object.defineProperty(exports,"getSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.d}});Object.defineProperty(exports,"selectionTrackerKey",{enumerable:true,get:function(){return chunk6LVPRTB6_js.a}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkNERY274X_js.e}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkNERY274X_js.f}});Object.defineProperty(exports,"TextSelection",{enumerable:true,get:function(){return prosemirrorState.TextSelection}});exports.extractSelectionState=fe;
1
+ 'use strict';require('../chunk-TRJWRZZD.js');var chunk4GER4JLW_js=require('../chunk-4GER4JLW.js'),chunkI6PMX4BO_js=require('../chunk-I6PMX4BO.js');require('../chunk-UQ6WNWXX.js');var chunkYE357WVA_js=require('../chunk-YE357WVA.js'),chunkHVZMO3BU_js=require('../chunk-HVZMO3BU.js');require('../chunk-D4RPOJC7.js');var chunkIP2VXNWG_js=require('../chunk-IP2VXNWG.js');require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js');var chunkSYJAAHUK_js=require('../chunk-SYJAAHUK.js'),chunk62NPHRTF_js=require('../chunk-62NPHRTF.js'),chunkUDPROEUK_js=require('../chunk-UDPROEUK.js'),chunkGGPKPXON_js=require('../chunk-GGPKPXON.js');require('../chunk-2KHWHVTA.js');var chunkSUXJX72X_js=require('../chunk-SUXJX72X.js'),chunkDFZTUQ7O_js=require('../chunk-DFZTUQ7O.js');require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js');var chunk6LVPRTB6_js=require('../chunk-6LVPRTB6.js'),chunkNERY274X_js=require('../chunk-NERY274X.js');require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');var prosemirrorState=require('prosemirror-state');function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}Object.defineProperty(exports,"LayoutSelectionGate",{enumerable:true,get:function(){return chunk4GER4JLW_js.a}});Object.defineProperty(exports,"findParagraphByParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.b}});Object.defineProperty(exports,"findStartPosForParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.a}});Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkYE357WVA_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkYE357WVA_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.a}});Object.defineProperty(exports,"StyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.b}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkSYJAAHUK_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.h}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkSYJAAHUK_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkSYJAAHUK_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkSYJAAHUK_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkSYJAAHUK_js.B}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkSYJAAHUK_js.n}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkSYJAAHUK_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkSYJAAHUK_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkSYJAAHUK_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkSYJAAHUK_js.v}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkSYJAAHUK_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkSYJAAHUK_js.D}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkSYJAAHUK_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkSYJAAHUK_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunk62NPHRTF_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunk62NPHRTF_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.r}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunk62NPHRTF_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.q}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunk62NPHRTF_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunk62NPHRTF_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunk62NPHRTF_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunk62NPHRTF_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunk62NPHRTF_js.B}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunk62NPHRTF_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunk62NPHRTF_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.h}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkUDPROEUK_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkUDPROEUK_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkUDPROEUK_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkUDPROEUK_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkSUXJX72X_js.b}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.h}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.n}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.l}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.p}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.f}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.m}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.k}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.o}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.e}});Object.defineProperty(exports,"createSelectionTrackerPlugin",{enumerable:true,get:function(){return chunk6LVPRTB6_js.c}});Object.defineProperty(exports,"extractSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.b}});Object.defineProperty(exports,"getSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.d}});Object.defineProperty(exports,"selectionTrackerKey",{enumerable:true,get:function(){return chunk6LVPRTB6_js.a}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkNERY274X_js.e}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkNERY274X_js.f}});Object.defineProperty(exports,"TextSelection",{enumerable:true,get:function(){return prosemirrorState.TextSelection}});exports.extractSelectionState=fe;
@@ -1 +1 @@
1
- import'../chunk-NNQWQOC5.mjs';export{a as LayoutSelectionGate}from'../chunk-Q5QOBZWT.mjs';export{b as findParagraphByParaId,a as findStartPosForParaId}from'../chunk-3SXJPJSV.mjs';import'../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,b as updateDocumentContent}from'../chunk-UOFQYE2L.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-UIROUI5I.mjs';import'../chunk-LBKMYD3M.mjs';export{a as StyleResolver,b as createStyleResolver}from'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';export{g as addColumnLeft,h as addColumnRight,d as addRowAbove,e as addRowBelow,E as applyTableStyle,C as autoFitContents,i as deleteColumn,f as deleteRow,j as deleteTable,B as distributeColumns,c as insertTable,n as mergeCells,r as removeTableBorders,m as selectColumn,l as selectRow,k as selectTable,s as setAllTableBorders,p as setCellBorder,F as setCellFillColor,w as setCellMargins,x as setCellTextDirection,v as setCellVerticalAlign,u as setInsideTableBorders,t as setOutsideTableBorders,z as setRowHeight,G as setTableBorderColor,H as setTableBorderWidth,q as setTableBorders,D as setTableProperties,o as splitCell,A as toggleHeaderRow,y as toggleNoWrap}from'../chunk-GXW7YSFL.mjs';export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,D as generateTOC,j as increaseIndent,q as increaseListLevel,s as removeList,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,o as toggleBulletList,p as toggleNumberedList}from'../chunk-YUKBAAB5.mjs';export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../chunk-DWFWYHM5.mjs';export{a as insertPageBreak}from'../chunk-3COGZG7O.mjs';import'../chunk-KQTB5Y7P.mjs';export{b as schema}from'../chunk-JKVXID22.mjs';export{h as clearFormatting,n as findHyperlinkRangeAt,l as getHyperlinkAttrs,p as getListInfo,f as getMarkAttr,a as getParagraphAlignment,d as getParagraphBidi,m as getSelectedText,c as getStyleId,k as isHyperlinkActive,o as isInList,e as isMarkActive}from'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../chunk-BGY3CB37.mjs';export{e as getTableContext,f as isInTable}from'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';export{TextSelection}from'prosemirror-state';function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}export{fe as extractSelectionState};
1
+ import'../chunk-NNQWQOC5.mjs';export{a as LayoutSelectionGate}from'../chunk-Q5QOBZWT.mjs';export{b as findParagraphByParaId,a as findStartPosForParaId}from'../chunk-3SXJPJSV.mjs';import'../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,b as updateDocumentContent}from'../chunk-P3AXSRLG.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-GNPLUGUG.mjs';import'../chunk-LBKMYD3M.mjs';export{a as StyleResolver,b as createStyleResolver}from'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';export{g as addColumnLeft,h as addColumnRight,d as addRowAbove,e as addRowBelow,E as applyTableStyle,C as autoFitContents,i as deleteColumn,f as deleteRow,j as deleteTable,B as distributeColumns,c as insertTable,n as mergeCells,r as removeTableBorders,m as selectColumn,l as selectRow,k as selectTable,s as setAllTableBorders,p as setCellBorder,F as setCellFillColor,w as setCellMargins,x as setCellTextDirection,v as setCellVerticalAlign,u as setInsideTableBorders,t as setOutsideTableBorders,z as setRowHeight,G as setTableBorderColor,H as setTableBorderWidth,q as setTableBorders,D as setTableProperties,o as splitCell,A as toggleHeaderRow,y as toggleNoWrap}from'../chunk-GXW7YSFL.mjs';export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,D as generateTOC,j as increaseIndent,q as increaseListLevel,s as removeList,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,o as toggleBulletList,p as toggleNumberedList}from'../chunk-YUKBAAB5.mjs';export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../chunk-DWFWYHM5.mjs';export{a as insertPageBreak}from'../chunk-3COGZG7O.mjs';import'../chunk-KQTB5Y7P.mjs';export{b as schema}from'../chunk-JKVXID22.mjs';export{h as clearFormatting,n as findHyperlinkRangeAt,l as getHyperlinkAttrs,p as getListInfo,f as getMarkAttr,a as getParagraphAlignment,d as getParagraphBidi,m as getSelectedText,c as getStyleId,k as isHyperlinkActive,o as isInList,e as isMarkActive}from'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../chunk-BGY3CB37.mjs';export{e as getTableContext,f as isInTable}from'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';export{TextSelection}from'prosemirror-state';function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}export{fe as extractSelectionState};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/docx-editor-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "sideEffects": false,
5
5
  "description": "Framework-agnostic core for DOCX parsing, editing, and rendering",
6
6
  "main": "./dist/core.js",
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkN27FJQTG_js=require('./chunk-N27FJQTG.js'),chunk44RUAQA2_js=require('./chunk-44RUAQA2.js'),chunkDROCYKAR_js=require('./chunk-DROCYKAR.js'),chunkDY2MJCSV_js=require('./chunk-DY2MJCSV.js'),chunkCWAP26GB_js=require('./chunk-CWAP26GB.js'),chunkY7JZPBBW_js=require('./chunk-Y7JZPBBW.js'),chunkJFZIXFRC_js=require('./chunk-JFZIXFRC.js'),chunkBHBOAP6Z_js=require('./chunk-BHBOAP6Z.js'),chunkN3Y5BUKV_js=require('./chunk-N3Y5BUKV.js'),chunk4Q2IP5FW_js=require('./chunk-4Q2IP5FW.js');var _={fragment:"layout-fragment",paragraph:"layout-fragment-paragraph",table:"layout-fragment-table",image:"layout-fragment-image",line:"layout-line",run:"layout-run"};function st(e){return e.kind==="paragraph"}function lt(e){return e.kind==="table"}function dt(e){return e.kind==="image"}function ne(e){e.style.position="absolute",e.style.overflow="hidden";}function pt(e,t,n){let o=n.createElement("div");return o.className=`${_.fragment} ${_.paragraph}`,ne(o),o.dataset.blockId=String(e.blockId),o.dataset.fromLine=String(e.fromLine),o.dataset.toLine=String(e.toLine),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.continuesFromPrev&&(o.dataset.continuesFromPrev="true"),e.continuesOnNext&&(o.dataset.continuesOnNext="true"),o}function ct(e,t,n){let o=n.createElement("div");return o.className=`${_.fragment} ${_.table}`,ne(o),o.dataset.blockId=String(e.blockId),o.dataset.fromRow=String(e.fromRow),o.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),o}function gt(e,t,n){let o=n.createElement("div");return o.className=`${_.fragment} ${_.image}`,ne(o),o.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(o.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(o.dataset.pmEnd=String(e.pmEnd)),e.isAnchored&&(o.dataset.anchored="true"),e.zIndex!==void 0&&(o.style.zIndex=String(e.zIndex)),o}function xe(e,t,n={}){let o=n.document??document;if(st(e))return pt(e,t,o);if(lt(e))return ct(e,t,o);if(dt(e))return gt(e,t,o);let r=o.createElement("div");r.className=_.fragment,ne(r);let i=e;return i.blockId!==void 0&&(r.dataset.blockId=String(i.blockId)),i.kind&&(r.dataset.kind=i.kind),r}var E={fragment:"layout-paragraph",line:"layout-line",run:"layout-run",text:"layout-run-text",tab:"layout-run-tab",image:"layout-run-image",lineBreak:"layout-run-linebreak"};function W(e){return e.kind==="text"}function j(e){return e.kind==="tab"}function K(e){return e.kind==="image"}function U(e){return e.kind==="lineBreak"}function X(e){return e.kind==="field"}function Z(e){return !chunkJFZIXFRC_js.b(e.wrapType)&&e.wrapType!=="topAndBottom"}function G(e){return e.wrapType==="behind"}function H(e){return chunkJFZIXFRC_js.a(e.wrapType)?true:e.displayMode==="float"}function ft(e){return chunkJFZIXFRC_js.b(e.wrapType)||e.wrapType==="topAndBottom"?false:chunkJFZIXFRC_js.c(e.wrapType)?true:e.displayMode==="float"&&e.cssFloat!=="none"}function oe(e){return e==="left"?"right":e==="right"?"left":"bothSides"}var je={image:"layout-image",imageAnchored:"layout-image-anchored"};function q(e){return !!(e.cropTop||e.cropRight||e.cropBottom||e.cropLeft||e.opacity!=null&&e.opacity<1)}function J(e,t){let n=t.cropTop??0,o=t.cropRight??0,r=t.cropBottom??0,i=t.cropLeft??0;(n||o||r||i)&&(e.style.clipPath=`inset(${n*100}% ${o*100}% ${r*100}% ${i*100}%)`),t.opacity!=null&&t.opacity<1&&(e.style.opacity=String(Math.max(0,t.opacity)));}function re(e,t,n,o,r={}){let i=r.document??document,a=i.createElement("div");a.className=je.image,e.isAnchored&&a.classList.add(je.imageAnchored),a.style.position="absolute",a.style.width=`${e.width}px`,a.style.height=`${e.height}px`,a.style.overflow="hidden",e.zIndex!==void 0&&(a.style.zIndex=String(e.zIndex)),t.anchor?.behindDoc&&(a.style.zIndex="-1"),a.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(a.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(a.dataset.pmEnd=String(e.pmEnd));let l=i.createElement("img");if(l.src=t.src,l.alt=t.alt??"",l.style.width="100%",l.style.height="100%",l.style.objectFit="contain",l.style.display="block",t.transform&&(l.style.transform=t.transform),l.draggable=false,t.hlinkHref){let d=i.createElement("a");d.href=t.hlinkHref,d.target="_blank",d.rel="noopener noreferrer",d.style.display="block",d.style.width="100%",d.style.height="100%",d.appendChild(l),a.appendChild(d);}else a.appendChild(l);return a}function mt(e,t,n){if(t.fontFamily&&(e.style.fontFamily=chunkN3Y5BUKV_js.a(t.fontFamily).cssFallback),t.fontSize){let r=t.fontSize*96/72;e.style.fontSize=`${r}px`;}if(t.bold&&(e.style.fontWeight="bold"),t.italic&&(e.style.fontStyle="italic"),t.color&&(e.style.color=t.color),t.letterSpacing&&(e.style.letterSpacing=`${t.letterSpacing}px`),t.allCaps&&(e.style.textTransform="uppercase"),t.smallCaps&&(e.style.fontVariant="small-caps"),t.positionPx&&(e.style.verticalAlign=`${t.positionPx}px`),t.horizontalScale&&t.horizontalScale!==100&&(e.style.display="inline-block",e.style.transform=`scaleX(${t.horizontalScale/100})`,e.style.transformOrigin="left center"),t.kerningMinPt&&t.kerningMinPt>0&&(t.fontSize??11)>=t.kerningMinPt&&(e.style.fontKerning="normal"),t.emboss&&(e.style.textShadow="1px 1px 1px rgba(255,255,255,0.5), -1px -1px 1px rgba(0,0,0,0.3)"),t.imprint&&(e.style.textShadow="-1px -1px 1px rgba(255,255,255,0.5), 1px 1px 1px rgba(0,0,0,0.3)"),t.textShadow&&!t.emboss&&!t.imprint&&(e.style.textShadow="1px 1px 2px rgba(0,0,0,0.3)"),t.textOutline&&(e.style.webkitTextStroke="1px currentColor",e.style.webkitTextFillColor="transparent"),t.emphasisMark){let r=t.emphasisMark==="comma"?"filled sesame":t.emphasisMark==="circle"?"filled circle":"filled dot",i=t.emphasisMark==="underDot"?"under right":"over right";e.style.textEmphasis=`${r}`,e.style.textEmphasisPosition=i,e.style.webkitTextEmphasis=r,e.style.webkitTextEmphasisPosition=i;}t.highlight&&(e.style.backgroundColor=t.highlight);let o=[];if(t.underline&&(o.push("underline"),typeof t.underline=="object"&&(t.underline.style&&(e.style.textDecorationStyle=t.underline.style),t.underline.color&&(e.style.textDecorationColor=t.underline.color))),t.strike&&o.push("line-through"),t.commentIds&&t.commentIds.length>0){let r=t.commentIds.find(i=>!n||!n.has(i));r!=null&&(e.style.backgroundColor="rgba(255, 212, 0, 0.15)",e.style.borderBottom="1px solid rgba(255, 212, 0, 0.4)",e.dataset.commentId=String(r));}t.isInsertion&&(e.style.backgroundColor="rgba(52, 168, 83, 0.08)",e.style.borderBottom="2px dashed #2e7d32",e.style.paddingBottom="1px",e.classList.add("docx-insertion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),t.isDeletion&&(e.style.backgroundColor="rgba(211, 47, 47, 0.08)",e.style.color="#c62828",o.includes("line-through")||o.push("line-through"),e.style.textDecorationColor="#c62828",e.classList.add("docx-deletion"),t.changeAuthor&&(e.dataset.changeAuthor=t.changeAuthor),t.changeDate&&(e.dataset.changeDate=t.changeDate),t.changeRevisionId!=null&&(e.dataset.revisionId=String(t.changeRevisionId))),o.length>0&&(e.style.textDecorationLine=o.join(" ")),t.superscript&&(e.style.verticalAlign="super",e.style.fontSize="0.75em"),t.subscript&&(e.style.verticalAlign="sub",e.style.fontSize="0.75em"),t.hidden&&(e.classList.add("docx-hidden"),e.style.opacity="0.4",e.style.textDecoration="underline dotted"),t.rtl&&e.setAttribute("dir","rtl"),t.textEffect&&(e.classList.add("docx-text-effect",`docx-text-effect-${t.textEffect}`),e.dataset.effect=t.textEffect);}function D(e,t,n){t!==void 0&&(e.dataset.pmStart=String(t)),n!==void 0&&(e.dataset.pmEnd=String(n));}function ie(e,t,n){let o=t.createElement("span");if(o.className=`${E.run} ${E.text}`,mt(o,e,n),D(o,e.pmStart,e.pmEnd),e.hyperlink){let r=t.createElement("a");r.href=e.hyperlink.href,e.hyperlink.href.startsWith("#")||(r.target="_blank",r.rel="noopener noreferrer"),e.hyperlink.tooltip&&(r.title=e.hyperlink.tooltip),r.textContent=e.text;let i=e.color||"#0563c1";r.style.color=i,r.style.textDecoration="underline",o.style.color=i,o.appendChild(r);}else o.textContent=e.text;return o}function Te(e,t,n,o){let r=t.createElement("span");if(r.className=`${E.run} ${E.tab}`,r.style.display="inline-block",r.style.width=`${n}px`,r.style.overflow="hidden",D(r,e.pmStart,e.pmEnd),o&&o!=="none"){let i=ht(o);i&&(r.style.backgroundImage=`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='4' height='16'><text x='0' y='12' font-size='12' fill='%23000'>${i}</text></svg>`)}")`,r.style.backgroundRepeat="repeat-x",r.style.backgroundPosition="bottom");}return r.textContent="\xA0",r}function ht(e){switch(e){case "dot":return ".";case "hyphen":return "-";case "underscore":return "_";case "middleDot":return "\xB7";case "heavy":return "_";default:return null}}function Ke(e){if(!e)return 0;let t=e.match(/rotate\(([-\d.]+)deg\)/);return t?(parseFloat(t[1])%360+360)%360:0}function Ue(e,t,n){if(n===0||n===180)return {w:e,h:t};if(n===90||n===270)return {w:t,h:e};let o=n*Math.PI/180,r=Math.abs(Math.sin(o)),i=Math.abs(Math.cos(o));return {w:e*i+t*r,h:e*r+t*i}}function ut(e,t){let n=t.createElement("img");n.className=`${E.run} ${E.image}`,n.src=e.src,n.width=e.width,n.height=e.height,n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,e.alt&&(n.alt=e.alt),e.transform&&(n.style.transform=e.transform,n.style.transformOrigin="center center"),q(e)&&J(n,e);let o=Ke(e.transform);if(o!==0){let r=Ue(e.width,e.height,o),i=t.createElement("span");return i.style.display="inline-block",i.style.position="relative",i.style.width=`${r.w}px`,i.style.height=`${r.h}px`,i.style.verticalAlign="middle",n.style.position="absolute",n.style.left=`${(r.w-e.width)/2}px`,n.style.top=`${(r.h-e.height)/2}px`,D(i,e.pmStart,e.pmEnd),i.appendChild(n),i}return n.style.display="inline-block",n.style.verticalAlign="middle",D(n,e.pmStart,e.pmEnd),n}function Ye(e,t){let n=t.createElement("div");n.className="layout-block-image",n.style.display="block",n.style.textAlign="center",n.style.marginTop=`${e.distTop??6}px`,n.style.marginBottom=`${e.distBottom??6}px`;let o=t.createElement("img");o.src=e.src,o.width=e.width,o.height=e.height,o.style.marginLeft="auto",o.style.marginRight="auto",e.alt&&(o.alt=e.alt),e.transform&&(o.style.transform=e.transform,o.style.transformOrigin="center center"),q(e)&&J(o,e);let r=Ke(e.transform);if(r!==0){let i=Ue(e.width,e.height,r);n.style.height=`${i.h}px`,n.style.position="relative",o.style.position="absolute",o.style.left="50%",o.style.top="50%",o.style.marginLeft=`${-e.width/2}px`,o.style.marginRight="0",o.style.marginTop=`${-e.height/2}px`;}return D(n,e.pmStart,e.pmEnd),n.appendChild(o),n}function Se(e,t){return H(e)||e.displayMode==="block"||e.wrapType==="topAndBottom"?Ye(e,t):ut(e,t)}function we(e,t){let n=t.createElement("br");return n.className=`${E.run} ${E.lineBreak}`,D(n,e.pmStart,e.pmEnd),n}function Fe(e,t,n){let o=e.fallback??"";switch(e.fieldType){case "PAGE":o=String(n.pageNumber);break;case "NUMPAGES":o=String(n.totalPages);break;case "DATE":o=new Date().toLocaleDateString();break;case "TIME":o=new Date().toLocaleTimeString();break}let r={text:o,bold:e.bold,italic:e.italic,underline:e.underline,strike:e.strike,color:e.color,highlight:e.highlight,fontFamily:e.fontFamily,fontSize:e.fontSize,pmStart:e.pmStart,pmEnd:e.pmEnd};return ie(r,t,n?.resolvedCommentIds)}function Xe(e,t,n){if(W(e))return ie(e,t,n?.resolvedCommentIds);if(j(e))return Te(e,t,48,void 0);if(K(e))return Se(e,t);if(U(e))return we(e,t);if(X(e)&&n)return Fe(e,t,n);let o=t.createElement("span");return o.className=E.run,o}function ke(e){return e/1440*96}function yt(e){return e/96*1440}function bt(e){let{explicitStops:t=[],defaultTabInterval:n=720,leftIndent:o=0}=e,r=t.filter(c=>c.val!=="clear").filter(c=>c.pos>=o),i=t.filter(c=>c.val==="clear").map(c=>c.pos),a=r.reduce((c,x)=>Math.max(c,x.pos),0),l=[...r];o>0&&!r.some(c=>c.pos<=o)&&(i.some(x=>Math.abs(x-o)<20)||l.push({val:"start",pos:o,leader:"none"}));let g=a>0?Math.max(a,o):o,s=o+14400;for(;g<s;){g+=n;let c=r.some(f=>Math.abs(f.pos-g)<20),x=i.some(f=>Math.abs(f-g)<20),b=o>0&&Math.abs(g-o)<20;!c&&!x&&!b&&l.push({val:"start",pos:g,leader:"none"});}return l.sort((c,x)=>c.pos-x.pos)}function Ze(e,t,n="",o,r="."){let{defaultTabInterval:i=720}=t,a=yt(e),d=bt(t).find(c=>c.pos>a);if(!d){let c=ke(i),x=c-e%c;return x<=0&&(x=c),{width:x,alignment:"default"}}let s=ke(d.pos)-e;if(d.val==="center"||d.val==="end"){let c=o?o(n):0;d.val==="center"?s-=c/2:s-=c;}else if(d.val==="decimal"){let c=n.indexOf(r);if(c>=0&&o){let x=n.slice(0,c),b=o(x);s-=b;}}else if(d.val==="bar")return {width:0,leader:d.leader,alignment:"bar"};if(s<1){let c=ke(i),x=c-e%c;return x<=0&&(x=c),{width:x,alignment:"default"}}return {width:s,leader:d.leader,alignment:d.val}}function qe(e,t){let n=[],o=e.runs;for(let r=t.fromRun;r<=t.toRun;r++){let i=o[r];if(i)if(W(i)){let a=r===t.fromRun?t.fromChar:0,l=r===t.toRun?t.toChar:i.text.length;if(a>0||l<i.text.length){let d=i.text.slice(a,l);n.push({...i,text:d,pmStart:i.pmStart!==void 0?i.pmStart+a:void 0,pmEnd:i.pmStart!==void 0?i.pmStart+l:void 0});}else n.push(i);}else n.push(i);}return n}function xt(e){return [e.pmStart??"no-start",e.pmEnd??"no-end",e.src,e.width,e.height,e.displayMode??"inline",e.wrapType??"none"].join("|")}function Tt(e){return {val:e.val,pos:e.pos,leader:e.leader}}function St(e,t,n){let o="";for(let r=t+1;r<e.length;r++){let i=e[r];if(W(i))o+=i.text;else if(X(i))i.fieldType==="PAGE"&&n?o+=String(n.pageNumber):i.fieldType==="NUMPAGES"&&n?o+=String(n.totalPages):o+=i.fallback??"";else if(j(i)||U(i))break}return o}function wt(e){let n=e.createElement("canvas").getContext("2d");return (o,r=11,i="Calibri")=>{if(!n)return o.length*7;let a=chunkN3Y5BUKV_js.a(i).cssFallback,l=r*96/72;return n.font=`${l}px ${a}`,n.measureText(o).width}}function ae(e,t,n,o,r){let i=o.createElement("div");i.className=E.line,i.style.height=`${t.lineHeight}px`,i.style.lineHeight=`${t.lineHeight}px`;let a=qe(e,t);if(a.length===1&&K(a[0])){let p=a[0].position?.horizontal?.align??n;i.style.display="flex",i.style.alignItems="center",i.style.justifyContent=p==="center"?"center":p==="right"?"flex-end":"flex-start";}if(a.length===0){let h=o.createElement("span");return h.className=`${E.run} layout-empty-run`,h.innerHTML="&nbsp;",i.appendChild(h),i}let l=n==="justify",d=false;l&&r&&(d=!r.isLastLine||r.paragraphEndsWithLineBreak,d&&(i.style.textAlign="justify",i.style.textAlignLast="justify",i.style.width=`${r.availableWidth}px`)),i.style.whiteSpace="pre";let g=a.some(h=>W(h)&&h.highlight);i.style.overflow=g?"hidden":"visible";let s=a.some(j),c,x=wt(o);if(s){let h=r?.tabStops?.map(Tt),m=r?.leftIndentPx?Math.round(r.leftIndentPx*15):0;c={explicitStops:h,leftIndent:m};}let b=0,f=r?.leftIndentPx??0;if(r?.isFirstLine){let h=r?.firstLineIndentPx??0;b=f+h;}else b=f;for(let h=0;h<a.length;h++){let m=a[h];if(j(m)&&c){let p=St(a,h,r?.context),y=Ze(b,c,p,x),u=Te(m,o,y.width,y.leader);i.appendChild(u),b+=y.width;}else if(W(m)){let p=ie(m,o,r?.context?.resolvedCommentIds);if(m.highlight){let F=(m.fontSize?m.fontSize*96/72:14.67)*1.2,S=Math.max(0,t.lineHeight-F);if(S>0){let I=S/2;p.style.paddingTop=`${I}px`,p.style.paddingBottom=`${I}px`;}}i.appendChild(p);let y=m.fontSize||11,u=m.fontFamily||"Calibri";b+=x(m.text,y,u);}else if(K(m)){if(H(m))continue;let p=xt(m);if(r?.renderedInlineImageKeys?.has(p))continue;r?.renderedInlineImageKeys?.add(p);let y=Se(m,o);i.appendChild(y),m.displayMode!=="block"&&m.wrapType!=="topAndBottom"&&(b+=m.width);}else if(U(m)){let p=we(m,o);i.appendChild(p);}else if(X(m)&&r?.context){let p=Fe(m,o,r.context);i.appendChild(p);let y=m.fallback??"";m.fieldType==="PAGE"?y=String(r.context.pageNumber):m.fieldType==="NUMPAGES"&&(y=String(r.context.totalPages));let u=m.fontSize||11,w=m.fontFamily||"Calibri";b+=x(y,u,w);}else {let p=Xe(m,o,r?.context);i.appendChild(p);}}return i}function Q(e,t){return !e&&!t?true:!e||!t?false:e.style===t.style&&e.width===t.width&&e.color===t.color}function Je(e,t){return !e&&!t||!e||!t?false:Q(e.top,t.top)&&Q(e.bottom,t.bottom)&&Q(e.left,t.left)&&Q(e.right,t.right)&&Q(e.between,t.between)}function v(e,t,n,o,r={}){let i=r.document??document,a=i.createElement("div");a.className=E.fragment,a.style.position=o.positioning==="absolute"?"absolute":"relative",a.dataset.blockId=String(e.blockId),a.dataset.fromLine=String(e.fromLine),a.dataset.toLine=String(e.toLine),D(a,e.pmStart,e.pmEnd),e.continuesFromPrev&&(a.dataset.continuesFromPrev="true"),e.continuesOnNext&&(a.dataset.continuesOnNext="true");let l=n.lines.slice(e.fromLine,e.toLine),d=t.attrs?.alignment;t.attrs?.styleId&&(a.dataset.styleId=t.attrs.styleId);let g=t.attrs?.bidi;g&&(a.dir="rtl"),d?d==="center"?a.style.textAlign="center":d==="right"?a.style.textAlign="right":d==="left"?a.style.textAlign="left":a.style.textAlign=g?"right":"left":g&&(a.style.textAlign="right");let s=t.attrs?.indent,c=0,x=0;s&&(g?(s.left&&s.left>0&&(x=s.left),s.right&&s.right>0&&(c=s.right)):(s.left&&s.left>0&&(c=s.left),s.right&&s.right>0&&(x=s.right)));let b=t.attrs?.borders;if(b){let w=R=>{switch(R){case "single":return "solid";case "double":return "double";case "dotted":return "dotted";case "dashed":return "dashed";case "thick":return "solid";case "wave":return "wavy";case "dashSmallGap":return "dashed";case "nil":case "none":return "none";default:return "solid"}};a.style.boxSizing="border-box";let F=R=>`${R.width}px ${w(R.style)} ${R.color}`,S=Je(r.prevBorders,b),I=Je(b,r.nextBorders),C=S?b.between:b.top,T=I?void 0:b.bottom,k=i.createElement("div");if(k.className="layout-paragraph-border",k.style.position="absolute",k.style.pointerEvents="none",k.style.boxSizing="border-box",k.style.left=`${c-(b.left?.space??0)}px`,k.style.right=`${x-(b.right?.space??0)}px`,k.style.top=`${-(C?.space??0)}px`,k.style.bottom=`${-(T?.space??0)}px`,C&&(k.style.borderTop=F(C)),T&&(k.style.borderBottom=F(T)),b.left&&(k.style.borderLeft=F(b.left)),b.right&&(k.style.borderRight=F(b.right)),(C||T||b.left||b.right)&&a.appendChild(k),b.bar){let R=i.createElement("div");R.style.position="absolute",R.style.left="-8px",R.style.top="0",R.style.bottom="0",R.style.borderLeft=F(b.bar),a.style.position="relative",a.appendChild(R);}}t.attrs?.shading&&(a.style.backgroundColor=t.attrs.shading);let f=e.width-c-x,m=t.runs[t.runs.length-1]?.kind==="lineBreak",p=n.lines.length,y=0;s?.hanging&&s.hanging>0?y=-s.hanging:s?.firstLine&&s.firstLine>0&&(y=s.firstLine);let u=r.renderedInlineImageKeys??new Set;for(let w=0;w<l.length;w++){let F=l[w],S=e.fromLine+w,I=S===p-1,C=S===0&&!e.continuesFromPrev,T=F.leftOffset??0,k=F.rightOffset??0,P=f;if(C){let B=s?.hanging&&s.hanging>0,L=s?.firstLine&&s.firstLine>0;B&&s?.hanging?P=f+s.hanging:L&&s?.firstLine&&(P=f-s.firstLine);}if(Ft(F,t)){let B=i.createElement("div");B.className=`${E.line} layout-line-split`,B.style.position="relative",B.style.height=`${F.lineHeight}px`,B.style.lineHeight=`${F.lineHeight}px`;for(let L of F.segments){let he={fromRun:L.fromRun,fromChar:L.fromChar,toRun:L.toRun,toChar:L.toChar,width:L.width,ascent:F.ascent,descent:F.descent,lineHeight:F.lineHeight},O=ae(t,he,d,i,{availableWidth:L.availableWidth,isLastLine:I,isFirstLine:C,paragraphEndsWithLineBreak:m,tabStops:t.attrs?.tabs,leftIndentPx:c,firstLineIndentPx:C?y:0,context:o,renderedInlineImageKeys:u});O.className+=" layout-line-segment",O.style.position="absolute",O.style.left=`${L.leftOffset}px`,O.style.top="0",O.style.width=`${L.availableWidth}px`,B.appendChild(O);}a.appendChild(B);continue}let R=ae(t,F,d,i,{availableWidth:P-T-k,isLastLine:I,isFirstLine:C,paragraphEndsWithLineBreak:m,tabStops:t.attrs?.tabs,leftIndentPx:c,firstLineIndentPx:C?y:0,context:o,renderedInlineImageKeys:u});if(T>0||k>0){T>0&&(R.style.marginLeft=`${T}px`),k>0&&(R.style.marginRight=`${k}px`);let B=P-T-k;B>0&&(R.style.width=`${B}px`);}let Be=s?.hanging&&s.hanging>0,Me=s?.firstLine&&s.firstLine>0;if(C?c>0&&Be?(R.style.paddingLeft=`${c}px`,R.style.textIndent=`-${s.hanging}px`):c>0&&Me?(R.style.paddingLeft=`${c}px`,R.style.textIndent=`${s.firstLine}px`):c>0?R.style.paddingLeft=`${c}px`:Me&&(R.style.textIndent=`${s.firstLine}px`):c>0?R.style.paddingLeft=`${c}px`:Be&&(R.style.paddingLeft=`${s.hanging}px`),x>0&&(R.style.paddingRight=`${x}px`),C&&t.attrs?.listMarker&&!t.attrs?.listMarkerHidden){let B=Math.max(0,c-(s?.hanging??0));R.style.paddingLeft=`${B}px`,R.style.textIndent="0";let L;if(!t.attrs.listMarkerFontFamily||!t.attrs.listMarkerFontSize)for(let $=F.fromRun;$<=F.toRun;$++){let ue=t.runs[$];if(ue&&ue.kind==="text"){L=ue;break}}let he=t.attrs.listMarkerFontFamily??L?.fontFamily??t.attrs.defaultFontFamily,O=t.attrs.listMarkerFontSize??L?.fontSize??t.attrs.defaultFontSize,ve=kt(t.attrs.listMarker,s,i,he,O);if((s?.hanging??0)>0)R.insertBefore(ve,R.firstChild);else {let $=i.createElement("div");$.className="layout-line layout-list-marker-line",$.style.height=`${F.lineHeight}px`,$.style.lineHeight=`${F.lineHeight}px`,$.appendChild(ve),a.appendChild($);}}a.appendChild(R);}return a}function Ft(e,t){return (e.segments?.length??0)>1&&!t.attrs?.listMarker}function kt(e,t,n,o,r){let i=n.createElement("span");if(i.className="layout-list-marker",o&&(i.style.fontFamily=chunkN3Y5BUKV_js.a(o).cssFallback),r){let l=r*96/72;i.style.fontSize=`${l}px`;}i.textContent=e,i.style.textAlign="left",i.style.boxSizing="border-box";let a=t?.hanging??0;return i.style.display="inline-block",a>0&&(i.style.minWidth=`${a}px`),i}function V(e,t,n){let o=t.createElement("div");o.className=n.layerClass,o.style.position="absolute",o.style.top="0",o.style.left="0",n.sizing==="inset0"?(o.style.right="0",o.style.bottom="0"):(o.style.width="100%",o.style.height="100%",o.style.overflow="hidden"),o.style.pointerEvents="none",n.layerMode==="front"&&(o.style.zIndex="10");for(let r of e){let i=t.createElement("div");i.className=n.itemClass,i.style.position="absolute",i.style.pointerEvents="auto",i.style.top=`${r.y}px`,i.style.left=`${r.x}px`,r.pmStart!==void 0&&(i.dataset.pmStart=String(r.pmStart)),r.pmEnd!==void 0&&(i.dataset.pmEnd=String(r.pmEnd));let a=t.createElement("img");a.src=r.src,a.style.width=`${r.width}px`,a.style.height=`${r.height}px`,a.style.display="block",r.alt&&(a.alt=r.alt),r.transform&&(a.style.transform=r.transform,a.style.transformOrigin="center center"),q(r)&&J(a,r),i.appendChild(a),o.appendChild(i);}return o}var A={table:"layout-table",row:"layout-table-row",cell:"layout-table-cell",cellContent:"layout-table-cell-content",resizeHandle:"layout-table-resize-handle",rowResizeHandle:"layout-table-row-resize-handle",tableEdgeHandleBottom:"layout-table-edge-handle-bottom",tableEdgeHandleRight:"layout-table-edge-handle-right"};function It(e,t,n){let o=[],r=0;for(let i=0;i<e.blocks.length;i++){let a=e.blocks[i];if(a?.kind!=="paragraph"){let g=t.blocks[i];g&&g.kind==="table"&&(r+=g.totalHeight??0);continue}let l=a;for(let g of l.runs){if(g.kind!=="image")continue;let s=g;if(!H(s))continue;let c=s.position,x=s.distTop??0,b=s.distBottom??0,f=s.distLeft??12,h=s.distRight??12,m="left",p=0;if(c?.horizontal){let u=c.horizontal;u.align==="right"?(m="right",p=n-s.width):u.align==="left"?p=0:u.align==="center"?p=(n-s.width)/2:u.posOffset!==void 0&&(p=chunk4Q2IP5FW_js.e(u.posOffset),m=p>n/2?"right":"left");}else s.cssFloat==="right"&&(m="right",p=n-s.width);let y=r;if(c?.vertical){let u=c.vertical;u.posOffset!==void 0?y=r+chunk4Q2IP5FW_js.e(u.posOffset):u.align==="top"&&(y=0);}p=Math.max(0,Math.min(p,n-s.width)),o.push({src:s.src,width:s.width,height:s.height,alt:s.alt,transform:s.transform,x:p,y,side:m,distTop:x,distBottom:b,distLeft:f,distRight:h,wrapText:oe(s.cssFloat),wrapType:s.wrapType,pmStart:s.pmStart,pmEnd:s.pmEnd});}let d=t.blocks[i];d&&d.kind==="paragraph"&&(r+=d.totalHeight);}return o}function Rt(e,t,n,o){let r=o.createElement("div");r.className=A.cellContent,r.style.position="relative";let i=e.padding?.left??7,a=e.padding?.right??7,l=Math.max(0,t.width-i-a);r.style.width=`${l}px`;let d=It(e,t,l),g;if(d.length>0){g=d.filter(Z).map(f=>{let h=f.x+f.width+f.distRight,m=f.y-f.distTop,p=f.y+f.height+f.distBottom,y=0,u=0,w=f.wrapText??"bothSides";return w==="right"?y=h:w==="left"?u=l-(f.x-f.distLeft):f.side==="left"?y=h:u=l-(f.x-f.distLeft),{leftMargin:y,rightMargin:u,topY:m,bottomY:p}});let b=d.filter(G);b.length>0&&r.appendChild(V(b,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"behind"}));}let s=0,c=0;for(let b=0;b<e.blocks.length;b++){let f=e.blocks[b],h=t.blocks[b];if(f?.kind==="paragraph"&&h?.kind==="paragraph"){let m=f,p=h,y=m.attrs?.spacing,u=Math.max(c,y?.before??0);s+=u,g&&g.length>0&&(p=chunkDY2MJCSV_js.r(m,l,{floatingZones:g,paragraphYOffset:s}));let w={blockId:m.id,width:l,height:p.totalHeight,fromLine:0,toLine:p.lines.length,pmStart:m.pmStart,pmEnd:m.pmEnd},F={...n,insideTableCell:true},S=v(w,m,p,F,{document:o});S.style.position="relative",u>0&&(S.style.marginTop=`${u}px`),r.appendChild(S),s+=p.totalHeight,c=y?.after??0;}else if(f?.kind==="table"&&h?.kind==="table"){let m=f,p=h,y=c,u=Ct(m,p,n,o);u.style.position="relative",y>0&&(u.style.marginTop=`${y}px`),r.appendChild(u),s+=y+(h.totalHeight??0),c=0;}}c>0&&(r.style.paddingBottom=`${c}px`);let x=d.filter(b=>!G(b));return x.length>0&&r.appendChild(V(x,o,{layerClass:"layout-cell-floating-images-layer",itemClass:"layout-cell-floating-image",sizing:"fullSize",layerMode:"front"})),r}function Ct(e,t,n,o){let r=o.createElement("div");r.className=`${A.table} layout-nested-table`,r.style.position="relative",r.style.width=`${t.totalWidth}px`,r.style.display="block",e.justification==="center"?(r.style.marginLeft="auto",r.style.marginRight="auto"):e.justification==="right"?r.style.marginLeft="auto":e.indent&&(r.style.marginLeft=`${e.indent}px`),r.dataset.blockId=String(e.id),e.pmStart!==void 0&&(r.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(r.dataset.pmEnd=String(e.pmEnd));let i=[],a=0;for(let g=0;g<t.rows.length;g++)i.push(a),a+=t.rows[g]?.height??0;i.push(a);let l=new Map,d=0;for(let g=0;g<e.rows.length;g++){let s=e.rows[g],c=t.rows[g];if(!s||!c)continue;let x=Ie(s,c,g,d,t.columnWidths,e.rows.length,n,o,l,i);r.appendChild(x),d+=c.height;}return r.style.height=`${d}px`,r}function se(e,t,n){let o=`border${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!n||n.style==="none"||n.style==="nil"||n.width===0)e.style[o]="none";else {let r=n.width??1,i=n.color??"#000000",a=n.style??"solid";e.style[o]=`${r}px ${a} ${i}`;}}function Pt(e,t,n,o,r,i,a){let l=a.createElement("div");l.className=A.cell,l.style.position="absolute",l.style.left=`${n}px`,l.style.top="0",l.style.width=`${t.width}px`,l.style.height=`${o}px`,l.style.overflow="hidden",l.style.boxSizing="border-box";let d=e.padding?.top??1,g=e.padding?.right??7,s=e.padding?.bottom??1,c=e.padding?.left??7;if(l.style.padding=`${d}px ${g}px ${s}px ${c}px`,e.borders&&(r.isFirstRow&&se(l,"top",e.borders.top),se(l,"right",e.borders.right),se(l,"bottom",e.borders.bottom),r.isFirstCol&&se(l,"left",e.borders.left)),e.background&&(l.style.backgroundColor=e.background),e.noWrap&&(l.style.whiteSpace="nowrap"),e.verticalAlign)switch(l.style.display="flex",l.style.flexDirection="column",e.verticalAlign){case "top":l.style.justifyContent="flex-start";break;case "center":l.style.justifyContent="center";break;case "bottom":l.style.justifyContent="flex-end";break}let x=Rt(e,t,i,a);if(l.appendChild(x),e.blocks.length>0){let b=e.blocks[0],f=e.blocks[e.blocks.length-1];b&&"pmStart"in b&&b.pmStart!==void 0&&(l.dataset.pmStart=String(b.pmStart)),f&&"pmEnd"in f&&f.pmEnd!==void 0&&(l.dataset.pmEnd=String(f.pmEnd));}return l}function Ie(e,t,n,o,r,i,a,l,d,g,s){let c=l.createElement("div");c.className=A.row,c.style.position="absolute",c.style.left="0",c.style.top=`${o}px`,c.style.width="100%",c.style.height=`${t.height}px`,c.dataset.rowIndex=String(n);let x=new Set;if(d){for(let[,h]of d)if(h.startRow<n&&h.startRow+h.rowSpan>n)for(let m=0;m<h.colSpan;m++)x.add(h.columnIndex+m);}let b=0,f=0;for(;x.has(f);)b+=r[f]??0,f++;for(let h=0;h<e.cells.length;h++){let m=e.cells[h],p=t.cells[h];if(!m||!p)continue;let y=m.colSpan??1,u=m.rowSpan??1,w=t.height;if(u>1&&g){w=0;for(let k=n;k<n+u&&k<g.length-1;k++)w+=(g[k+1]??0)-(g[k]??0);w===0&&(w=t.height*u);}let F=n===0||s===true,I=f===0;f+y>=r.length;let T=Pt(m,p,b,w,{isFirstRow:F,isFirstCol:I},a,l);if(T.dataset.cellIndex=String(h),T.dataset.columnIndex=String(f),u>1&&(T.dataset.rowSpan=String(u)),c.appendChild(T),u>1&&d){let k=`${n}-${f}`;d.set(k,{cell:m,cellMeasure:p,columnIndex:f,startRow:n,rowSpan:u,colSpan:y,x:b,totalHeight:w});}for(let k=0;k<y&&f+k<r.length;k++)b+=r[f+k]??0;for(f+=y;x.has(f);)b+=r[f]??0,f++;}return c}function Y(e,t,n,o,r={}){let i=r.document??document,a=i.createElement("div");a.className=A.table,a.style.position=o.positioning==="flow"?"relative":"absolute",a.style.width=`${e.width}px`,a.style.height=`${e.height}px`,a.style.overflow="hidden",a.dataset.blockId=String(e.blockId),a.dataset.fromRow=String(e.fromRow),a.dataset.toRow=String(e.toRow),e.pmStart!==void 0&&(a.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(a.dataset.pmEnd=String(e.pmEnd));let l=0;for(let f=0;f<n.columnWidths.length-1;f++){l+=n.columnWidths[f]??0;let h=i.createElement("div");h.className=A.resizeHandle,h.style.position="absolute",h.style.left=`${l-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(f),h.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),a.appendChild(h);}let d=[],g=0;for(let f=0;f<n.rows.length;f++)d.push(g),g+=n.rows[f]?.height??0;d.push(g);let s=new Map,c=e.headerRowCount??0,x=0;if(c>0&&e.continuesFromPrev)for(let f=0;f<c;f++){let h=t.rows[f],m=n.rows[f];if(!h||!m)continue;let p=Ie(h,m,f,x,n.columnWidths,t.rows.length,o,i,s,d,f===0);p.dataset.repeatedHeader="true",a.appendChild(p),x+=m.height;}for(let f=e.fromRow;f<e.toRow;f++){let h=t.rows[f],m=n.rows[f];if(!h||!m)continue;let p=c>0&&e.continuesFromPrev?false:e.continuesFromPrev&&f===e.fromRow,y=Ie(h,m,f,x,n.columnWidths,t.rows.length,o,i,s,d,p);a.appendChild(y),x+=m.height;}let b=0;for(let f=e.fromRow;f<e.toRow;f++)if(b+=n.rows[f]?.height??0,f<e.toRow-1){let h=i.createElement("div");h.className=A.rowResizeHandle,h.style.position="absolute",h.style.left="0",h.style.top=`${b-3}px`,h.style.width="100%",h.style.height="6px",h.style.cursor="row-resize",h.style.zIndex="10",h.dataset.rowIndex=String(f),h.dataset.tableBlockId=String(e.blockId),e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),a.appendChild(h);}if(e.toRow===t.rows.length){let f=i.createElement("div");f.className=A.tableEdgeHandleBottom,f.style.position="absolute",f.style.left="0",f.style.top=`${b-3}px`,f.style.width="100%",f.style.height="6px",f.style.cursor="row-resize",f.style.zIndex="10",f.dataset.rowIndex=String(t.rows.length-1),f.dataset.tableBlockId=String(e.blockId),f.dataset.isEdge="bottom",e.pmStart!==void 0&&(f.dataset.tablePmStart=String(e.pmStart)),a.appendChild(f);}if(e.toRow===t.rows.length){let f=n.columnWidths.reduce((m,p)=>m+p,0),h=i.createElement("div");h.className=A.tableEdgeHandleRight,h.style.position="absolute",h.style.left=`${f-3}px`,h.style.top="0",h.style.width="6px",h.style.height="100%",h.style.cursor="col-resize",h.style.zIndex="10",h.dataset.columnIndex=String(n.columnWidths.length-1),h.dataset.tableBlockId=String(e.blockId),h.dataset.isEdge="right",e.pmStart!==void 0&&(h.dataset.tablePmStart=String(e.pmStart)),a.appendChild(h);}return a}var Et={textBox:"layout-textbox"};function le(e,t,n,o,r={}){let i=r.document??document,a=i.createElement("div");if(a.className=Et.textBox,a.style.position="absolute",a.style.width=`${e.width}px`,a.style.height=`${e.height}px`,a.style.overflow="hidden",a.style.boxSizing="border-box",Lt(a,e),t.fillColor&&(a.style.backgroundColor=t.fillColor),t.outlineWidth&&t.outlineWidth>0){let s=t.outlineStyle||"solid",c=t.outlineColor||"#000000";a.style.border=`${t.outlineWidth}px ${s} ${c}`;}let l=t.margins??chunkDROCYKAR_js.a;a.style.padding=`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`,a.dataset.blockId=String(e.blockId),e.pmStart!==void 0&&(a.dataset.pmStart=String(e.pmStart)),e.pmEnd!==void 0&&(a.dataset.pmEnd=String(e.pmEnd));let d=e.width-l.left-l.right,g=0;for(let s=0;s<t.content.length;s++){let c=t.content[s],x=n.innerMeasures[s];if(!x)continue;let b={blockId:c.id,width:d,height:x.totalHeight,pmStart:c.pmStart,pmEnd:c.pmEnd,fromLine:0,toLine:x.lines.length},f=v(b,c,x,{...o,positioning:"flow"},{document:i});a.appendChild(f),g+=x.totalHeight;}return a}function Lt(e,t){!t.isFloating&&t.zIndex===void 0||(e.style.zIndex=String(t.zIndex??10));}function Qe(e){return {pageWidth:e.size.w,pageHeight:e.size.h,marginLeft:e.margins.left,marginTop:e.margins.top,contentWidth:e.size.w-e.margins.left-e.margins.right,contentHeight:e.size.h-e.margins.top-e.margins.bottom}}function Re(e,t,n,o){let{x:r,side:i}=Bt(e,n,o),a=vt(e,t,o);return {x:r,y:a,side:i}}function Bt(e,t,n){let o=e.position?.horizontal;if(!o)return e.cssFloat==="right"?{x:t-e.width,side:"right"}:{x:0,side:"left"};let r=Mt(o.relativeTo,t,n);if(o.align==="right")return {x:r.size?r.base+r.size-e.width:0,side:"right"};if(o.align==="left")return {x:r.base,side:"left"};if(o.align==="center")return {x:r.size?r.base+(r.size-e.width)/2:0,side:"left"};if(o.posOffset!==void 0){let i=r.base+chunk4Q2IP5FW_js.e(o.posOffset);return {x:i,side:i>t/2?"right":"left"}}return {x:r.base,side:"left"}}function Mt(e,t,n){let o=n?.pageWidth??0,r=n?.marginLeft??0;switch(e){case "page":return {base:-r,size:o};case "leftMargin":return {base:-r,size:r};case "rightMargin":return {base:t,size:r};case "character":return {base:0,size:0};default:return {base:0,size:t}}}function vt(e,t,n){let o=e.position?.vertical;if(!o)return t;let r=$t(o.relativeTo,t,n);return o.align==="top"?r.base:o.align==="center"?r.size?r.base+(r.size-e.height)/2:t:o.align==="bottom"?r.size?r.base+r.size-e.height:t:o.posOffset!==void 0?r.base+chunk4Q2IP5FW_js.e(o.posOffset):o.relativeTo==="paragraph"||o.relativeTo==="line"?t:r.base}function $t(e,t,n){let o=n?.pageHeight??0,r=n?.marginTop??0,i=n?.contentHeight??0;switch(e){case "paragraph":case "line":return {base:t,size:0};case "page":return {base:-r,size:o};case "topMargin":return {base:-r,size:r};case "bottomMargin":return {base:i,size:r};default:return {base:0,size:i}}}function et(e){return e?.align??e?.alignment}function Ht(e,t){let n=e.position.vertical;if(!n)return e.paragraphY;let o=et(n),r=n.posOffset!==void 0?chunk4Q2IP5FW_js.e(n.posOffset):void 0;if(n.relativeTo==="page"){if(r!==void 0)return r-t.flowTop;if(o==="top")return -t.flowTop;if(o==="bottom")return t.pageHeight-e.height-t.flowTop;if(o==="center")return (t.pageHeight-e.height)/2-t.flowTop}if(n.relativeTo==="margin"){let i=t.margins.top,a=t.pageHeight-t.margins.top-t.margins.bottom;if(r!==void 0)return i+r-t.flowTop;if(o==="top")return i-t.flowTop;if(o==="bottom")return i+a-e.height-t.flowTop;if(o==="center")return i+(a-e.height)/2-t.flowTop}return r!==void 0?e.paragraphY+r:e.paragraphY}function At(e,t,n){let o=t.position.horizontal;if(!o){e.style.left="0";return}let r=et(o);if(o.relativeTo==="page"){if(o.posOffset!==void 0){e.style.left=`${chunk4Q2IP5FW_js.e(o.posOffset)-n.flowLeft}px`;return}if(r==="right"){e.style.left=`${n.pageWidth-t.width-n.flowLeft}px`;return}if(r==="center"){e.style.left=`${(n.pageWidth-t.width)/2-n.flowLeft}px`;return}if(r==="left"){e.style.left=`${-n.flowLeft}px`;return}}if(o.posOffset!==void 0){e.style.left=`${chunk4Q2IP5FW_js.e(o.posOffset)}px`;return}if(r==="right"){e.style.left=`${n.contentWidth-t.width}px`;return}if(r==="center"){e.style.left=`${(n.contentWidth-t.width)/2}px`;return}e.style.left="0";}function tt(e,t){let n=e.tblpY??0;e.vertAnchor==="page"?n-=t.flowTop:e.vertAnchor==="margin"&&(n+=t.margins.top-t.flowTop);let o=e.tblpX??0;return e.horzAnchor==="page"?o-=t.flowLeft:e.horzAnchor==="margin"&&(o+=t.margins.left-t.flowLeft),{left:o,top:n}}function Ce(e,t,n,o){let r=n.document??document,i=r.createElement("div");i.style.position="relative";let a=t.contentWidth??600,l=[],d=0;for(let g=0;g<e.blocks.length;g++){let s=e.blocks[g],c=e.measures[g];if(!(!s||!c)){if(s.kind==="paragraph"&&c.kind==="paragraph"){let x=s,b=c,f=x.attrs?.spacing?.before??0,h=d,m=[];for(let w of x.runs)if(w.kind==="image"&&"position"in w&&w.position){let F=w;l.push({src:F.src,width:F.width,height:F.height,alt:F.alt,paragraphY:h,position:F.position});}else m.push(w);let p={...x,runs:m},y={blockId:x.id,width:a,height:b.totalHeight,fromLine:0,toLine:b.lines.length},u=v(y,p,b,{...t,positioning:"absolute"},{document:r});u.style.top=`${d+f}px`,u.style.left="0",u.style.width=`${a}px`,i.appendChild(u),d+=b.totalHeight;}else if(s.kind==="table"&&c.kind==="table"){let x={blockId:s.id,width:c.totalWidth,height:c.totalHeight,fromRow:0,toRow:c.rows.length,pmStart:s.pmStart,pmEnd:s.pmEnd},b=Y(x,s,c,{...t,positioning:"absolute"},{document:r});if(s.floating){let{left:f,top:h}=tt(s.floating,o);b.style.top=`${h}px`,b.style.left=`${f}px`,i.appendChild(b);}else b.style.top=`${d}px`,b.style.left="0",i.appendChild(b),d+=c.totalHeight;}}}for(let g of l){let s=r.createElement("img");s.src=g.src,s.width=g.width,s.height=g.height,g.alt&&(s.alt=g.alt),s.style.position="absolute",s.style.display="block",s.style.width=`${g.width}px`,s.style.height=`${g.height}px`,s.style.maxWidth="none",s.style.maxHeight="none",At(s,g,o),s.style.top=`${Ht(g,o)}px`,i.appendChild(s);}return i}var de=12,nt=6;function zt(e,t){if(e.size!==t.size)return false;for(let[n,o]of e)if(t.get(n)!==o)return false;return true}var Pe=8;function jn(e){let t=[];for(let n of e)if(n.kind==="paragraph")for(let o of n.runs)o.kind==="text"&&o.footnoteRefId!=null&&t.push({footnoteId:o.footnoteRefId,pmPos:o.pmStart??0});return t}function Ee(e,t){let n=new Map;if(t.length===0)return n;for(let o of t)for(let r of e){let i=false;for(let a of r.fragments){let l=a.pmStart??-1,d=a.pmEnd??-1;if(l>=0&&d>=0&&o.pmPos>=l&&o.pmPos<d){let g=n.get(r.number)??[];g.includes(o.footnoteId)||g.push(o.footnoteId),n.set(r.number,g),i=true;break}}if(i)break}return n}function Ot(e,t){if(e.length===0)return [{kind:"paragraph",id:`fn-empty-${t}`,runs:[{kind:"text",text:`${t} `,fontSize:Pe,superscript:true}]}];let n=e.map(r=>{if(r.kind!=="paragraph")return r;let i=r;return {...i,runs:i.runs.map(a=>(a.kind==="text"||a.kind==="tab")&&a.fontSize==null?{...a,fontSize:Pe}:a)}}),o=n[0];if(o.kind==="paragraph"){let r={kind:"text",text:`${t} `,fontSize:Pe,superscript:true};n[0]={...o,runs:[r,...o.runs]};}return n}function Nt(e,t,n,o){let r=chunkY7JZPBBW_js.c(e.content,{styles:o.styles??void 0,theme:o.theme??null}),i=chunkN27FJQTG_js.d(r,{theme:o.theme??void 0}),a=Ot(i,t),l=o.measureBlocks(a,n),d=l.reduce((g,s)=>s.kind==="paragraph"||s.kind==="table"?g+s.totalHeight:s.kind==="image"||s.kind==="textBox"?g+s.height:g,0);return {id:e.id,displayNumber:t,blocks:a,measures:l,height:d}}function Yn(e,t,n,o){let r=new Map,i=new Map;for(let d of e)(d.noteType==="normal"||d.noteType==null)&&i.set(d.id,d);let a=1,l=new Set;for(let d of t){if(l.has(d.footnoteId))continue;l.add(d.footnoteId);let g=i.get(d.footnoteId);g&&(r.set(d.footnoteId,Nt(g,a,n,o)),a++);}return r}function ot(e,t){let n=new Map;for(let[o,r]of e){let i=0;for(let a of r){let l=t.get(a);l&&(i+=l.height);}i>0&&(i+=de,n.set(o,i));}return n}function Kn(e){let{blocks:t,measures:n,layoutOpts:o,footnoteRefs:r,footnoteContentMap:i,initialLayout:a}=e,l=Ee(a.pages,r),d=ot(l,i);if(d.size===0)return {layout:a,pageFootnoteMap:l,converged:true};let g=a,s=false;for(let c=0;c<nt;c++){g=chunk44RUAQA2_js.q(t,n,{...o,footnoteReservedHeights:d});let x=Ee(g.pages,r),b=ot(x,i);if(l=x,zt(d,b)){d=b,s=true;break}d=b;}s||(g=chunk44RUAQA2_js.q(t,n,{...o,footnoteReservedHeights:d}),l=Ee(g.pages,r),console.warn(`[docx-editor] footnote layout did not stabilize within ${nt} passes; settling with best-effort reservation. If footnotes appear misplaced, please file a bug with the document.`));for(let[c,x]of l){let b=g.pages.find(f=>f.number===c);b&&(b.footnoteIds=x);}return {layout:g,pageFootnoteMap:l,converged:s}}function Un(e,t,n){let o=new Map;if(!n?.package?.footnotes)return o;let r=new Map;for(let i of n.package.footnotes)i.noteType&&i.noteType!=="normal"||r.set(i.id,i);for(let[i,a]of e){let l=[];for(let d of a){let g=r.get(d);if(!g)continue;let s=t.get(d),c=s?.displayNumber??0;l.push({displayNumber:String(c),text:chunkCWAP26GB_js.v(g),content:s});}l.length>0&&o.set(i,l);}return o}function Dt(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-content",r.style.position="relative",r.style.width=`${t}px`,r.style.height=`${e.height}px`;let i=0;for(let a=0;a<e.blocks.length;a++){let l=e.blocks[a],d=e.measures[a];if(!(!l||!d)){if(l.kind==="paragraph"&&d.kind==="paragraph"){let g=l.attrs?.spacing?.before??0,s={blockId:l.id,width:t,height:d.totalHeight,pmStart:l.pmStart,pmEnd:l.pmEnd,fromLine:0,toLine:d.lines.length},c=v(s,l,d,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});c.style.top=`${i+g}px`,c.style.left="0",c.style.width=`${t}px`,c.style.height=`${d.totalHeight}px`,r.appendChild(c),i+=d.totalHeight;}else if(l.kind==="table"&&d.kind==="table"){let g={blockId:l.id,width:d.totalWidth,height:d.totalHeight,pmStart:l.pmStart,pmEnd:l.pmEnd,fromRow:0,toRow:d.rows.length},s=Y(g,l,d,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${i}px`,s.style.left="0",r.appendChild(s),i+=d.totalHeight;}else if(l.kind==="image"&&d.kind==="image"){let g={blockId:l.id,width:d.width,height:d.height,pmStart:l.pmStart,pmEnd:l.pmEnd},s=re(g,l,d,{...n},{document:o});s.style.top=`${i}px`,s.style.left="0",r.appendChild(s),i+=d.height;}else if(l.kind==="textBox"&&d.kind==="textBox"){let g={blockId:l.id,width:d.width,height:d.height,pmStart:l.pmStart,pmEnd:l.pmEnd},s=le(g,l,d,{...n,section:"body",contentWidth:t,positioning:"absolute"},{document:o});s.style.top=`${i}px`,s.style.left="0",r.appendChild(s),i+=d.height;}}}return r}function _t(e,t){let n=t.createElement("div");n.style.fontSize="10px",n.style.lineHeight="1.3",n.style.marginBottom="4px",n.style.color="#000";let o=t.createElement("sup");o.textContent=e.displayNumber,o.style.fontSize="7px",o.style.marginRight="2px",n.appendChild(o);let r=t.createTextNode(" "+e.text);return n.appendChild(r),n}function rt(e){let t=de;for(let n of e)n.content&&(t+=n.content.height);return t}function it(e,t,n,o){let r=o.createElement("div");r.className="layout-footnote-area",r.style.width=`${t}px`;let i=o.createElement("div"),a=.5,l=(de-a)/2;i.style.width="33%",i.style.height=`${a}px`,i.style.backgroundColor="#000",i.style.marginBottom=`${l}px`,i.style.marginTop=`${l}px`,r.appendChild(i);for(let d of e)r.appendChild(d.content?Dt(d.content,t,n,o):_t(d,o));return r}function Le(e,t,n){let o={pageNumber:e.number,totalPages:t,section:"body",resolvedCommentIds:n.resolvedCommentIds},r={...n};if(n.titlePg&&e.number===1&&(r.headerContent=n.firstPageHeaderContent,r.footerContent=n.firstPageFooterContent),n.footnotesByPage){let i=n.footnotesByPage.get(e.number);i&&i.length>0&&(r.footnoteArea=i);}return {context:o,pageOptions:r}}function at(e){let t=[];t.push(`s:${e.size.w},${e.size.h}`),t.push(`m:${e.margins.top},${e.margins.right},${e.margins.bottom},${e.margins.left}`),t.push(`n:${e.number}`),e.footnoteReservedHeight&&t.push(`fn:${e.footnoteReservedHeight}`);for(let n of e.fragments){let o=`${n.kind}:${n.blockId},${n.x},${n.y},${n.width},${n.height}`;n.pmStart!==void 0&&(o+=`,ps:${n.pmStart}`),n.pmEnd!==void 0&&(o+=`,pe:${n.pmEnd}`),n.kind==="paragraph"?o+=`,fl:${n.fromLine},tl:${n.toLine}`:n.kind==="table"&&(o+=`,fr:${n.fromRow},tr:${n.toRow}`),t.push(o);}return t.join("|")}function Wt(e){let t=[];return e.headerContent&&t.push(`hdr:${e.headerContent.blocks.length},${e.headerContent.height},${e.headerContent.visualTop??0},${e.headerContent.visualBottom??e.headerContent.height}`),e.footerContent&&t.push(`ftr:${e.footerContent.blocks.length},${e.footerContent.height},${e.footerContent.visualTop??0},${e.footerContent.visualBottom??e.footerContent.height}`),e.firstPageHeaderContent&&t.push(`fp-hdr:${e.firstPageHeaderContent.blocks.length},${e.firstPageHeaderContent.height}`),e.firstPageFooterContent&&t.push(`fp-ftr:${e.firstPageFooterContent.blocks.length},${e.firstPageFooterContent.height}`),e.titlePg&&t.push("titlePg"),e.theme&&t.push(`thm:${e.theme.name??"default"}`),e.pageBorders&&t.push(`pb:${JSON.stringify(e.pageBorders)}`),e.headerDistance!==void 0&&t.push(`hd:${e.headerDistance}`),e.footerDistance!==void 0&&t.push(`fd:${e.footerDistance}`),t.join("|")}function Gt(e,t){e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap=`${t}px`,e.style.padding=`${t}px`,e.style.backgroundColor="var(--doc-bg, #f8f9fa)";}var pe=2,Vt=8;function jt(e,t,n={}){let o=e.length,r=n.pageGap??24,i=t,a=i.__pageRenderState,l=Wt(n),d=o>=Vt;if(a&&a.optionsHash===l&&d){let m=a.pageStates,p=a.pageDataMap,y=i.__pageObserver,u=[];for(let S of e)u.push(at(S));let w=a.totalPages!==o,F=Math.min(m.length,e.length);for(let S=0;S<F;S++){let I=m[S],C=u[S];if(I.fingerprint===C&&!w){let P=p.get(I.element);P&&(P.page=e[S]);continue}let T=I.element,k=p.get(T);k&&(k.page=e[S],k.rendered&&Yt(T,p,o,n)),I.fingerprint=C,ee(T,e[S].size.w,e[S].size.h,n),T.dataset.pageNumber=String(e[S].number);}if(e.length>m.length){let S=n.document??document;for(let I=m.length;I<e.length;I++){let C=e[I],T=S.createElement("div");T.className=n.pageClassName??z.page,T.dataset.pageNumber=String(C.number),T.dataset.pageIndex=String(I),ee(T,C.size.w,C.size.h,n),t.appendChild(T),m.push({element:T,fingerprint:u[I]}),p.set(T,{page:C,index:I,rendered:false}),y&&y.observe(T);}}if(e.length<m.length){for(let S=m.length-1;S>=e.length;S--){let I=m[S].element;y&&y.unobserve(I),p.delete(I),t.removeChild(I);}m.length=e.length;}for(let S=0;S<m.length;S++){let I=p.get(m[S].element);I&&(I.index=S);}return a.totalPages=o,a.currentOptions=n,"incremental"}let s=i.__pageObserver;s&&(s.disconnect(),i.__pageObserver=void 0),t.innerHTML="",i.__pageRenderState=void 0,Gt(t,r);let c=[],x=[];for(let m=0;m<e.length;m++){let p=e[m];if(x.push(at(p)),d){let u=(n.document??document).createElement("div");u.className=n.pageClassName??z.page,u.dataset.pageNumber=String(p.number),u.dataset.pageIndex=String(m),ee(u,p.size.w,p.size.h,n),t.appendChild(u),c.push(u);}else {let{context:y,pageOptions:u}=Le(p,o,n),w=ge(p,y,u);t.appendChild(w),c.push(w);}}if(!d)return "full";let b=new Map;for(let m=0;m<e.length;m++)b.set(c[m],{page:e[m],index:m,rendered:false});let f=new IntersectionObserver(m=>{let p=i.__pageRenderState;if(!p)return;let{currentOptions:y,totalPages:u,pageDataMap:w}=p;for(let C of m){let T=C.target,k=w.get(T);if(k&&C.isIntersecting){ce(T,w,u,y);for(let P=-pe;P<=pe;P++){let R=k.index+P;R>=0&&R<p.pageStates.length&&R!==k.index&&ce(p.pageStates[R].element,w,u,y);}}}let F=window.innerHeight,S=F*3,I=new Set;for(let[C,T]of w){if(!T.rendered)continue;let k=C.getBoundingClientRect();k.bottom>-S&&k.top<F+S&&I.add(T.index);}for(let[C,T]of w){if(!T.rendered)continue;let k=false;for(let P of I)if(Math.abs(T.index-P)<=pe+1){k=true;break}!k&&I.size>0&&Kt(C,w);}},{root:null,rootMargin:"1500px 0px 1500px 0px"});for(let m of c)f.observe(m);i.__pageObserver=f,i.__pageRenderState={pageStates:c.map((m,p)=>({element:m,fingerprint:x[p]})),totalPages:o,optionsHash:l,pageDataMap:b,currentOptions:n};let h=Math.min(e.length,pe+3);for(let m=0;m<h;m++)ce(c[m],b,o,n);return "full"}function ce(e,t,n,o){let r=t.get(e);if(!r||r.rendered)return;let{context:i,pageOptions:a}=Le(r.page,n,o),l=ge(r.page,i,a);for(;l.firstChild;)e.appendChild(l.firstChild);r.rendered=true;}function Yt(e,t,n,o){let r=t.get(e);if(!r)return;let{context:i,pageOptions:a}=Le(r.page,n,o),d=ge(r.page,i,a).querySelector(`.${z.content}`),g=e.querySelector(`.${z.content}`);d&&g?e.replaceChild(d,g):(e.innerHTML="",r.rendered=false,ce(e,t,n,o));}function Kt(e,t){let n=t.get(e);!n||!n.rendered||(e.innerHTML="",n.rendered=false);}var z={page:"layout-page",content:"layout-page-content",header:"layout-page-header",footer:"layout-page-footer"};function ee(e,t,n,o){e.style.position="relative",e.style.width=`${t}px`,e.style.height=`${n}px`,e.style.backgroundColor=o.backgroundColor??"#ffffff",e.style.overflow="hidden",e.style.fontFamily=chunkN3Y5BUKV_js.a("Calibri").cssFallback,e.style.fontSize=`${1056/72}px`,e.style.color="#000000",o.showBorders&&(e.style.border="1px solid #ccc"),o.showShadow&&(e.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");}function Ut(e,t){switch(t??"allPages"){case "firstPage":return e===1;case "notFirstPage":return e!==1;default:return true}}function fe(e){return e?.space!==void 0?chunk4Q2IP5FW_js.i(e.space):0}function me(e,t,n,o){if(!t||t.style==="none"||t.style==="nil")return;let r=chunkBHBOAP6Z_js.c(t,n,o);for(let[d,g]of Object.entries(r))e.style[d]=String(g);let i=`border${n}Style`,a=`border${n}Width`;if(e.style[i]==="double"){let d=parseFloat(e.style[a]);(!Number.isFinite(d)||d<3)&&(e.style[a]="3px");}}function Xt(e,t,n){let o=t.pageBorders;if(!o||!Ut(e.number,o.display)||![o.top,o.bottom,o.left,o.right].some(c=>c&&c.style!=="none"&&c.style!=="nil"))return null;let i=o.offsetFrom??"text",a=fe(o.top),l=fe(o.right),d=fe(o.bottom),g=fe(o.left),s=n.createElement("div");return s.className="layout-page-border",s.style.position="absolute",s.style.pointerEvents="none",s.style.boxSizing="border-box",s.style.zIndex=o.zOrder==="back"?"0":"20",i==="page"?(s.style.top=`${a}px`,s.style.right=`${l}px`,s.style.bottom=`${d}px`,s.style.left=`${g}px`):(s.style.top=`${Math.max(0,e.margins.top-a)}px`,s.style.right=`${Math.max(0,e.margins.right-l)}px`,s.style.bottom=`${Math.max(0,e.margins.bottom-d)}px`,s.style.left=`${Math.max(0,e.margins.left-g)}px`),me(s,o.top,"Top",t.theme),me(s,o.bottom,"Bottom",t.theme),me(s,o.left,"Left",t.theme),me(s,o.right,"Right",t.theme),s}function Zt(e,t){let n=t.margins;e.style.position="absolute",e.style.top=`${n.top}px`,e.style.left=`${n.left}px`,e.style.right=`${n.right}px`,e.style.bottom=`${n.bottom}px`,e.style.overflow="visible";}function qt(e,t,n){e.style.position="absolute",e.style.left=`${t.x-n.left}px`,e.style.top=`${t.y-n.top}px`,e.style.width=`${t.width}px`,"height"in t&&(e.style.height=`${t.height}px`);}function Jt(e,t,n,o){let r=[];for(let i of e.runs){if(i.kind!=="image")continue;let a=i;if(!H(a))continue;let l=a.distTop??0,d=a.distBottom??0,g=a.distLeft??12,s=a.distRight??12,{x:c,y:x,side:b}=Re(a,t,n,o);r.push({src:a.src,width:a.width,height:a.height,alt:a.alt,transform:a.transform,side:b,x:c,y:x,distTop:l,distBottom:d,distLeft:g,distRight:s,pmStart:a.pmStart,pmEnd:a.pmEnd,wrapText:oe(a.cssFloat),wrapType:a.wrapType,cropTop:a.cropTop,cropRight:a.cropRight,cropBottom:a.cropBottom,cropLeft:a.cropLeft,opacity:a.opacity});}return r}function ge(e,t,n={}){let o=n.document??document,r=o.createElement("div");r.className=n.pageClassName??z.page,r.dataset.pageNumber=String(e.number),ee(r,e.size.w,e.size.h,n);let i=Xt(e,n,o);i&&n.pageBorders?.zOrder==="back"&&r.appendChild(i);let a=o.createElement("div");a.className=z.content,Zt(a,e);let l=Qe(e),d=l.contentWidth,g=[],s=[];for(let p of e.fragments)if(p.kind==="paragraph"&&n.blockLookup){let y=n.blockLookup.get(String(p.blockId));if(y?.block.kind==="paragraph"){let u=y.block,w=p.y-e.margins.top,F=Jt(u,w,d,l);g.push(...F);}}for(let p of g)Z(p)&&s.push({side:p.side,x:p.x,y:p.y,width:p.width,height:p.height,distTop:p.distTop,distBottom:p.distBottom,distLeft:p.distLeft,distRight:p.distRight,wrapText:p.wrapText,wrapType:p.wrapType});if(n.blockLookup)for(let p of e.fragments){if(p.kind!=="table")continue;let y=n.blockLookup.get(String(p.blockId));if(y?.block.kind!=="table")continue;let w=y.block.floating;if(!w)continue;let F=p.x-e.margins.left,S=p.y-e.margins.top,I=w.topFromText??0,C=w.bottomFromText??0,T=w.leftFromText??12,k=w.rightFromText??12,P=F<d/2?"left":"right";s.push({side:P,x:F,y:S,width:p.width,height:p.height,distTop:I,distBottom:C,distLeft:T,distRight:k});}if(n.blockLookup)for(let p of e.fragments){if(p.kind!=="textBox")continue;let y=n.blockLookup.get(String(p.blockId));if(y?.block.kind!=="textBox")continue;let u=y.block;if(!chunk44RUAQA2_js.g(u))continue;let w=p.y-e.margins.top,F=Re({width:p.width,height:p.height,position:u.position,cssFloat:u.cssFloat},w,d,l);p.x=e.margins.left+F.x,p.y=e.margins.top+F.y,chunk44RUAQA2_js.h(u)&&s.push({side:F.side,x:F.x,y:F.y,width:p.width,height:p.height,distTop:u.distTop??0,distBottom:u.distBottom??0,distLeft:u.distLeft??12,distRight:u.distRight??12,wrapText:u.wrapText,wrapType:u.wrapType});}let c=s.length>0?chunkDY2MJCSV_js.p(s,d):[],x=g.filter(G),b=g.filter(p=>!G(p));if(x.length>0){let p=V(x,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"behind"});a.appendChild(p);}let f=p=>{if(p.kind!=="paragraph"||!n.blockLookup||!p.blockId)return;let y=n.blockLookup.get(String(p.blockId));if(y?.block.kind==="paragraph")return y.block.attrs?.borders},h,m=new Map;for(let p=0;p<e.fragments.length;p++){let y=e.fragments[p],u,w={...t,section:"body",contentWidth:d},F=y.y-e.margins.top;if(n.blockLookup&&y.blockId){let S=n.blockLookup.get(String(y.blockId));if(y.kind==="paragraph"&&S?.block.kind==="paragraph"&&S?.measure.kind==="paragraph"){let I=S.block,C=p+1<e.fragments.length?f(e.fragments[p+1]):void 0,T=String(y.blockId),k=m.get(T);k||(k=new Set,m.set(T,k));let P=S.measure;c.length>0&&(P=chunkDY2MJCSV_js.r(I,d,{floatingZones:c,paragraphYOffset:F})),u=v(y,I,P,w,{document:o,prevBorders:h,nextBorders:C,renderedInlineImageKeys:k}),h=I.attrs?.borders;}else y.kind==="table"&&S?.block.kind==="table"&&S?.measure.kind==="table"?(u=Y(y,S.block,S.measure,w,{document:o}),h=void 0):y.kind==="image"&&S?.block.kind==="image"&&S?.measure.kind==="image"?(u=re(y,S.block,S.measure,w,{document:o}),h=void 0):y.kind==="textBox"&&S?.block.kind==="textBox"&&S?.measure.kind==="textBox"?(u=le(y,S.block,S.measure,w,{document:o}),h=void 0):(u=xe(y,w,{document:o}),h=void 0);}else u=xe(y,w,{document:o}),h=void 0;qt(u,y,{left:e.margins.left,top:e.margins.top}),a.appendChild(u);}if(b.length>0){let p=V(b,o,{layerClass:"layout-floating-images-layer",itemClass:"layout-page-floating-image",sizing:"inset0",layerMode:"front"});a.appendChild(p);}if(e.columns&&e.columns.separator&&e.columns.count>1){let p=e.columns.count,y=e.columns.gap,u=(d-(p-1)*y)/p,w=e.size.h-e.margins.top-e.margins.bottom;for(let F=0;F<p-1;F++){let S=(F+1)*u+F*y+y/2,I=o.createElement("div");I.style.position="absolute",I.style.left=`${S}px`,I.style.top="0",I.style.height=`${w}px`,I.style.width="0.5px",I.style.backgroundColor="#000",I.style.pointerEvents="none",a.appendChild(I);}}if(n.footnoteArea&&n.footnoteArea.length>0){let p=it(n.footnoteArea,d,t,o);p.style.position="absolute";let y=Math.max(e.footnoteReservedHeight??0,rt(n.footnoteArea)),u=e.size.h-e.margins.bottom-e.margins.top;p.style.top=`${Math.max(-e.margins.top,u-y)}px`,p.style.left="0",p.style.right="0",a.appendChild(p);}r.appendChild(a);{let y=n.headerDistance??e.margins.header??48,u=e.size.w-e.margins.left-e.margins.right,w=Math.max(e.margins.top-y,48),F=n.headerContent?.visualTop??0,S=n.headerContent?.visualBottom??n.headerContent?.height??0,I=Math.max(S-F,24),C=S>w,T=o.createElement("div");T.className=z.header,T.style.position="absolute",T.style.top=`${y+F}px`,T.style.left=`${e.margins.left}px`,T.style.right=`${e.margins.right}px`,T.style.width=`${u}px`,T.style.height=`${I}px`,T.style.minHeight=`${I}px`;let k=!C;if(n.headerContent&&n.headerContent.blocks.length>0){let P={flowTop:y,flowLeft:e.margins.left,contentWidth:u,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},R=Ce(n.headerContent,{...t,section:"header",contentWidth:u},n,P);R.style.top=`${-F}px`,R.querySelector("img")&&(k=false),T.appendChild(R);}k&&(T.style.maxHeight=`${w}px`,T.style.overflow="hidden"),r.appendChild(T);}{let y=n.footerDistance??e.margins.footer??48,u=e.size.w-e.margins.left-e.margins.right,w=Math.max(e.margins.bottom-y,48),F=n.footerContent?.visualTop??0,S=n.footerContent?.visualBottom??n.footerContent?.height??0,I=Math.max(S-F,24),C=I>w,T=o.createElement("div");T.className=z.footer,T.style.position="absolute",T.style.top=`${e.size.h-y-I}px`,T.style.left=`${e.margins.left}px`,T.style.right=`${e.margins.right}px`,T.style.width=`${u}px`,T.style.height=`${I}px`,T.style.minHeight=`${I}px`;let k=!C;if(n.footerContent&&n.footerContent.blocks.length>0){let P={flowTop:e.size.h-y-(n.footerContent?.height??0),flowLeft:e.margins.left,contentWidth:u,pageWidth:e.size.w,pageHeight:e.size.h,margins:e.margins},R=Ce(n.footerContent,{...t,section:"footer",contentWidth:u},n,P);R.style.top=`${-F}px`,R.querySelector("img")&&(k=false),T.appendChild(R);}k&&(T.style.maxHeight=`${w}px`,T.style.overflow="hidden"),r.appendChild(T);}return i&&n.pageBorders?.zOrder!=="back"&&r.appendChild(i),r}
2
- exports.A=le;exports.B=tt;exports.C=jt;exports.D=z;exports.E=ee;exports.F=ge;exports.a=de;exports.b=nt;exports.c=zt;exports.d=jn;exports.e=Ee;exports.f=Ot;exports.g=Nt;exports.h=Yn;exports.i=ot;exports.j=Kn;exports.k=Un;exports.l=_;exports.m=xe;exports.n=Z;exports.o=G;exports.p=H;exports.q=ft;exports.r=je;exports.s=re;exports.t=qe;exports.u=ae;exports.v=v;exports.w=V;exports.x=A;exports.y=Y;exports.z=Et;
@@ -1 +0,0 @@
1
- import {a as a$1,b}from'./chunk-7E5VBRDL.mjs';import {J as J$1}from'./chunk-BWHUD2XC.mjs';import {a,b as b$1,o}from'./chunk-67LVRQIR.mjs';import {i,j as j$1,k}from'./chunk-VW22RZ6C.mjs';function m(t){return t/1440*96}function x(t,i,r){if(!r||i<=r)return {width:t,height:i};let n=r/i;return {width:Math.round(t*n),height:r}}var z=0;function h(){return `block-${++z}`}function _(){z=0;}function E(t,i){let r={};for(let n of t)switch(n.type.name){case "bold":r.bold=true;break;case "italic":r.italic=true;break;case "underline":{let e=n.attrs;if(e.style||e.color){let a$1=e.color?a(e.color,i):void 0;r.underline={style:e.style,color:a$1};}else r.underline=true;break}case "strike":r.strike=true;break;case "textColor":{let e=n.attrs;(e.themeColor||e.rgb)&&(r.color=a({rgb:e.rgb,themeColor:e.themeColor,themeTint:e.themeTint,themeShade:e.themeShade},i));break}case "highlight":r.highlight=o(n.attrs.color);break;case "fontSize":{let e=n.attrs;r.fontSize=e.size/2;break}case "fontFamily":{let e=n.attrs;r.fontFamily=e.ascii||e.hAnsi;break}case "characterSpacing":{let e=n.attrs;e.spacing!=null&&e.spacing!==0&&(r.letterSpacing=m(e.spacing)),e.position!=null&&e.position!==0&&(r.positionPx=j$1(e.position)),e.scale!=null&&e.scale!==100&&(r.horizontalScale=e.scale),e.kerning!=null&&e.kerning>0&&(r.kerningMinPt=k(e.kerning));break}case "allCaps":r.allCaps=true;break;case "smallCaps":r.smallCaps=true;break;case "emboss":r.emboss=true;break;case "imprint":r.imprint=true;break;case "textShadow":r.textShadow=true;break;case "textOutline":r.textOutline=true;break;case "hidden":r.hidden=true;break;case "rtl":r.rtl=true;break;case "textEffect":{let e=n.attrs.effect;(e==="blinkBackground"||e==="lights"||e==="antsBlack"||e==="antsRed"||e==="shimmer"||e==="sparkle")&&(r.textEffect=e);break}case "emphasisMark":{let e=n.attrs.type;e==="dot"||e==="comma"||e==="circle"||e==="underDot"?r.emphasisMark=e:r.emphasisMark="dot";break}case "superscript":r.superscript=true;break;case "subscript":r.subscript=true;break;case "hyperlink":{let e=n.attrs;r.hyperlink={href:e.href,tooltip:e.tooltip};break}case "footnoteRef":{let e=n.attrs,a=typeof e.id=="string"?parseInt(e.id,10):e.id;e.noteType==="endnote"?r.endnoteRefId=a:r.footnoteRefId=a;break}case "comment":{let e=n.attrs.commentId;e&&(r.commentIds||(r.commentIds=[]),r.commentIds.push(e));break}case "insertion":r.isInsertion=true,r.changeAuthor=n.attrs.author,r.changeDate=n.attrs.date,r.changeRevisionId=n.attrs.revisionId;break;case "deletion":r.isDeletion=true,r.changeAuthor=n.attrs.author,r.changeDate=n.attrs.date,r.changeRevisionId=n.attrs.revisionId;break}return r}function U(t){let i=t.defaultTextFormatting;if(!i)return {};let r={};if(i.fontFamily){let n=i.fontFamily.ascii||i.fontFamily.hAnsi;n&&(r.fontFamily=n);}return i.fontSize!=null&&(r.fontSize=i.fontSize/2),r}function L(t,i,r){let n=[],e=i+1,a=r.theme,s=U(t.attrs);function d(u,c){if(u.isText&&u.text){let l=E(u.marks,a),o={kind:"text",text:u.text,...s,...l,pmStart:c,pmEnd:c+u.nodeSize};n.push(o);}else if(u.type.name==="hardBreak")n.push({kind:"lineBreak",pmStart:c,pmEnd:c+u.nodeSize});else if(u.type.name==="tab"){let l=E(u.marks,a),o={kind:"tab",...s,...l,pmStart:c,pmEnd:c+u.nodeSize};n.push(o);}else if(u.type.name==="image"){let l=u.attrs,o=x(l.width||100,l.height||100,r.pageContentHeight),p={kind:"image",src:l.src,width:o.width,height:o.height,alt:l.alt,transform:l.transform,wrapType:l.wrapType,displayMode:l.displayMode,cssFloat:l.cssFloat,distTop:l.distTop,distBottom:l.distBottom,distLeft:l.distLeft,distRight:l.distRight,position:l.position,cropTop:l.cropTop,cropRight:l.cropRight,cropBottom:l.cropBottom,cropLeft:l.cropLeft,opacity:l.opacity,pmStart:c,pmEnd:c+u.nodeSize};n.push(p);}else if(u.type.name==="field"){let l=u.attrs.fieldType,o=l==="PAGE"?"PAGE":l==="NUMPAGES"?"NUMPAGES":l==="DATE"?"DATE":l==="TIME"?"TIME":"OTHER";n.push({kind:"field",fieldType:o,fallback:u.attrs.displayText||"",pmStart:c,pmEnd:c+u.nodeSize});}else if(u.type.name==="math"){let l=u.attrs.plainText||"[equation]";n.push({kind:"text",text:l,italic:true,fontFamily:"Cambria Math",pmStart:c,pmEnd:c+u.nodeSize});}else if(u.type.name==="sdt"){let l=c+1;u.forEach((o,p)=>{d(o,l+p);});}}return t.forEach((u,c)=>{d(u,e+c);}),n}function Y(t){return Math.max(1,Math.round(t/8*1.333))}var $={single:"solid",double:"double",dotted:"dotted",dashed:"dashed",thick:"solid",dashSmallGap:"dashed",dotDash:"dashed",dotDotDash:"dotted",triple:"double",wave:"solid",doubleWave:"double",threeDEmboss:"ridge",threeDEngrave:"groove",outset:"outset",inset:"inset"};function S(t,i$1){if(!t||!t.style||t.style==="none"||t.style==="nil")return;let r={style:$[t.style]||"solid",width:Y(t.size??0),color:t.color?a(t.color,i$1):"#000000"};return t.space!==void 0&&(r.space=i(t.space)),r}function N(t,i){let r=t.borders;if(!r)return;let n={},e=["top","bottom","left","right"];for(let a of e){let s=r[a],d=s?S(s,i):void 0;n[a]=d??{width:0,style:"none"};}return Object.keys(n).length>0?n:void 0}function G(t,i){let r=[];for(let n=0;n<=i;n+=1){let e=t[n]??0;if(e<=0)break;r.push(e);}return r.length===0?"1.":`${r.join(".")}.`}var j=[[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"]];function O(t,i){if(t<=0)return "";let r=t,n="";for(let[e,a]of j)for(;r>=e;)n+=a,r-=e;return i?n:n.toLowerCase()}function D(t,i){if(t<=0)return "";let r=t,n="";for(;r>0;){let e=(r-1)%26;n=String.fromCharCode(65+e)+n,r=Math.floor((r-1)/26);}return i?n:n.toLowerCase()}function V(t,i){if(t<=0)return "";switch(i){case "upperRoman":return O(t,true);case "lowerRoman":return O(t,false);case "upperLetter":return D(t,true);case "lowerLetter":return D(t,false);case "decimalZero":return t<10?`0${t}`:String(t);case "none":return "";default:return String(t)}}function W(t,i,r){return t.replace(/%(\d)([.):\]])?/g,(n,e,a="")=>{let s=parseInt(e,10)-1;if(s<0)return "";let d=i[s]??0,u=r?.[s]??"decimal",c=V(d,u);return c?c+a:""})}function X(t,i,r){let n=t.numPr;if(!n)return null;let e=n.numId;if(e==null||e===0)return null;if(t.listIsBullet)return J$1(t.listMarker||"");let a=n.ilvl??0,s=t.listAbstractNumId??e,d=i.get(s)??new Array(9).fill(0),u=`${e}:${a}`;r.has(u)||(r.add(u),t.listStartOverride!=null&&(d[a]=t.listStartOverride-1)),d[a]=(d[a]??0)+1;for(let c=a+1;c<d.length;c+=1)d[c]=0;return i.set(s,d),t.listMarker&&t.listMarker.includes("%")?W(t.listMarker,d,t.listLevelNumFmts??void 0):t.listMarker?t.listMarker:G(d,a)}var q="Calibri",K=11;function Z(t,i,r,n){let e={};if(t.alignment){let o=t.alignment;o==="both"||o==="distribute"?e.alignment="justify":o==="left"?e.alignment="left":o==="center"?e.alignment="center":o==="right"&&(e.alignment="right");}(t.spaceBefore!=null||t.spaceAfter!=null||t.lineSpacing!=null)&&(e.spacing={},t.spaceBefore!=null&&(e.spacing.before=m(t.spaceBefore)),t.spaceAfter!=null&&(e.spacing.after=m(t.spaceAfter)),t.lineSpacing!=null&&(t.lineSpacingRule==="exact"||t.lineSpacingRule==="atLeast"?(e.spacing.line=m(t.lineSpacing),e.spacing.lineUnit="px",e.spacing.lineRule=t.lineSpacingRule):(e.spacing.line=t.lineSpacing/240,e.spacing.lineUnit="multiplier",e.spacing.lineRule="auto"))),t.spacingExplicit&&(e.spacingExplicit=t.spacingExplicit);let a=t.indentLeft,s=t.indentFirstLine,d=t.hangingIndent;if(t.numPr?.numId&&a==null&&(a=((t.numPr.ilvl??0)+1)*720,s==null&&(s=-360,d=true)),(a!=null||t.indentRight!=null||s!=null)&&(e.indent={},a!=null&&(e.indent.left=m(a)),t.indentRight!=null&&(e.indent.right=m(t.indentRight)),s!=null&&(d?e.indent.hanging=Math.abs(m(s)):e.indent.firstLine=m(s))),t.styleId&&(e.styleId=t.styleId),t.borders){let o=t.borders;e.borders={};let p=f=>f?S(f,i):void 0;o.top&&(e.borders.top=p(o.top)),o.bottom&&(e.borders.bottom=p(o.bottom)),o.left&&(e.borders.left=p(o.left)),o.right&&(e.borders.right=p(o.right)),o.between&&(e.borders.between=p(o.between)),o.bar&&(e.borders.bar=p(o.bar)),!e.borders.top&&!e.borders.bottom&&!e.borders.left&&!e.borders.right&&!e.borders.between&&!e.borders.bar&&delete e.borders;}let u=b$1(t.shading?.fill,i);u&&(e.shading=`#${u}`),t.tabs&&t.tabs.length>0&&(e.tabs=t.tabs.map(o=>({val:J(o.alignment),pos:o.position,leader:o.leader}))),t.pageBreakBefore&&(e.pageBreakBefore=true),t.keepNext&&(e.keepNext=true),t.keepLines&&(e.keepLines=true),t.contextualSpacing&&(e.contextualSpacing=true),t.bidi&&(e.bidi=true),t.styleId&&(e.styleId=t.styleId),t.numPr&&(e.numPr={numId:t.numPr.numId,ilvl:t.numPr.ilvl});let c=r&&n?X(t,r,n):null;c!=null?e.listMarker=c:t.listMarker&&(e.listMarker=t.listMarker),t.listIsBullet!=null&&(e.listIsBullet=t.listIsBullet),t.listMarkerHidden&&(e.listMarkerHidden=true),t.listMarkerFontFamily&&(e.listMarkerFontFamily=t.listMarkerFontFamily),t.listMarkerFontSize&&(e.listMarkerFontSize=t.listMarkerFontSize);let l=t.defaultTextFormatting;return l&&(l.fontSize!=null&&(e.defaultFontSize=l.fontSize/2),l.fontFamily&&(e.defaultFontFamily=l.fontFamily.ascii||l.fontFamily.hAnsi)),e}function J(t){switch(t){case "left":return "start";case "right":return "end";case "center":return "center";case "decimal":return "decimal";case "bar":return "bar";case "clear":return "clear";case "num":return "start";default:return "start"}}function B(t,i,r){let n=t.attrs,e=L(t,i,r),a=Z(n,r.theme,r.listCounters,r.listSeenNumIds);return {kind:"paragraph",id:h(),runs:e,attrs:a,pmStart:i,pmEnd:i+t.nodeSize}}function Q(t,i,r,n){let e=[],a=i+1;t.forEach(f=>{f.type.name==="paragraph"?e.push(B(f,a,r)):f.type.name==="table"&&e.push(H(f,a,r)),a+=f.nodeSize;});let s=t.attrs,d=s.width,u=s.widthType,c=d&&(!u||u==="dxa"||u==="auto")?m(d):void 0,l=s.margins,o=(f,g)=>{if(f!=null){let b=m(f);if(b>0)return b}if(g!=null){let b=m(g);if(b>=0)return b}return 0},p={top:o(l?.top,n?.top),right:o(l?.right,n?.right),bottom:o(l?.bottom,n?.bottom),left:o(l?.left,n?.left)};return {id:h(),blocks:e,colSpan:s.colspan,rowSpan:s.rowspan,width:c,widthValue:d,widthType:u,verticalAlign:s.verticalAlign,background:s.backgroundColor?`#${s.backgroundColor}`:void 0,borders:N(s,r.theme),padding:p,noWrap:s.noWrap||void 0}}function A(t,i,r,n){let e=[],a=i+1;t.forEach(d=>{(d.type.name==="tableCell"||d.type.name==="tableHeader")&&e.push(Q(d,a,r,n)),a+=d.nodeSize;});let s=t.attrs;return {id:h(),cells:e,height:s.height?m(s.height):void 0,heightRule:s.heightRule??void 0,isHeader:s.isHeader}}function H(t,i,r){let n=[],e=i+1,a=t.attrs.cellMargins;t.forEach(b=>{b.type.name==="tableRow"&&n.push(A(b,e,r,a)),e+=b.nodeSize;});let d=t.attrs.columnWidths?.map(m),u=t.attrs.width,c=t.attrs.widthType;if(!d&&n.length>0){let F=n[0].cells.map(y=>y.width);F.every(y=>y!==void 0&&y>0)&&(d=F);}let l=t.attrs.justification,o=t.attrs._originalFormatting,p=o?.indent?.value&&o.indent.type==="dxa"?m(o.indent.value):void 0,f=t.attrs.floating,g=f?{horzAnchor:f.horzAnchor,vertAnchor:f.vertAnchor,tblpX:f.tblpX!==void 0?m(f.tblpX):void 0,tblpXSpec:f.tblpXSpec,tblpY:f.tblpY!==void 0?m(f.tblpY):void 0,tblpYSpec:f.tblpYSpec,topFromText:f.topFromText!==void 0?m(f.topFromText):void 0,bottomFromText:f.bottomFromText!==void 0?m(f.bottomFromText):void 0,leftFromText:f.leftFromText!==void 0?m(f.leftFromText):void 0,rightFromText:f.rightFromText!==void 0?m(f.rightFromText):void 0}:void 0;return {kind:"table",id:h(),rows:n,columnWidths:d,width:u,widthType:c,justification:l,indent:p,floating:g,pmStart:i,pmEnd:i+t.nodeSize}}function ee(t,i,r){let n=t.attrs,e=n.wrapType,a=e==="behind"||e==="inFront",s=x(n.width||100,n.height||100,r);return {kind:"image",id:h(),src:n.src,width:s.width,height:s.height,alt:n.alt,transform:n.transform,anchor:a?{isAnchored:true,offsetH:n.distLeft,offsetV:n.distTop,behindDoc:e==="behind"}:void 0,hlinkHref:n.hlinkHref,pmStart:i,pmEnd:i+t.nodeSize}}function te(t,i,r){let n=t.attrs,e=[];return t.forEach((a,s)=>{if(a.type.name==="paragraph"){let d=B(a,i+1+s,r);e.push(d);}}),{kind:"textBox",id:h(),width:n.width??b,height:n.height??void 0,fillColor:n.fillColor,outlineWidth:n.outlineWidth,outlineColor:n.outlineColor,outlineStyle:n.outlineStyle,margins:{top:n.marginTop??a$1.top,bottom:n.marginBottom??a$1.bottom,left:n.marginLeft??a$1.left,right:n.marginRight??a$1.right},content:e,displayMode:n.displayMode,cssFloat:n.cssFloat,wrapType:n.wrapType,wrapText:n.wrapText,anchorTarget:n.anchorTarget,position:n.position,distTop:n.distTop,distBottom:n.distBottom,distLeft:n.distLeft,distRight:n.distRight,pmStart:i,pmEnd:i+t.nodeSize}}function ke(t,i={}){let r={...i,defaultFont:i.defaultFont??q,defaultSize:i.defaultSize??K},n=[],e=0,a={top:1440,bottom:1440,left:1440,right:1440};return r.listCounters||(r.listCounters=new Map),r.listSeenNumIds||(r.listSeenNumIds=new Set),t.forEach((s,d)=>{let u=e+d;switch(s.type.name){case "paragraph":{let c=B(s,u,r),l=s.attrs;n.push(c);let o=l._sectionProperties;if(o||l.sectionBreakType){let p={kind:"sectionBreak",id:h(),type:o?.sectionStart??l.sectionBreakType};if(o){if((o.pageWidth!==void 0||o.pageHeight!==void 0)&&(p.pageSize={w:m(o.pageWidth??12240),h:m(o.pageHeight??15840)}),o.marginTop!==void 0||o.marginBottom!==void 0||o.marginLeft!==void 0||o.marginRight!==void 0){let g={top:o.marginTop??a.top,bottom:o.marginBottom??a.bottom,left:o.marginLeft??a.left,right:o.marginRight??a.right};p.margins={top:m(g.top),bottom:m(g.bottom),left:m(g.left),right:m(g.right)},a=g;}let f=o.columnCount??1;if(f>1){let g={count:f,gap:m(o.columnSpace??720),equalWidth:o.equalWidth??true,separator:o.separator};p.columns=g;}}n.push(p);}}break;case "table":n.push(H(s,u,r));break;case "image":n.push(ee(s,u,r.pageContentHeight));break;case "textBox":n.push(te(s,u,r));break;case "horizontalRule":case "pageBreak":{let c={kind:"pageBreak",id:h(),pmStart:u,pmEnd:u+s.nodeSize};n.push(c);break}}}),n}export{_ as a,S as b,W as c,ke as d};
@@ -1,4 +0,0 @@
1
- import {z as z$1,h,j as j$2,k as k$1,g}from'./chunk-IBNUQL57.mjs';import {c,j as j$1,e,l,a,f,q as q$1,i,m,b,d,k,n}from'./chunk-6LOYA7G5.mjs';var Ne={dk1:"000000",lt1:"FFFFFF",dk2:"44546A",lt2:"E7E6E6",accent1:"4472C4",accent2:"ED7D31",accent3:"A5A5A5",accent4:"FFC000",accent5:"5B9BD5",accent6:"70AD47",hlink:"0563C1",folHlink:"954F72"},Q={majorFont:{latin:"Calibri Light",ea:"",cs:"",fonts:{}},minorFont:{latin:"Calibri",ea:"",cs:"",fonts:{}}},ge={name:"Office Theme",colorScheme:Ne,fontScheme:Q},gt=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function ht(e){if(!e)return null;switch(d(e.name||"")){case "srgbClr":return j$1(e,"a","val")??j$1(e,null,"val")??null;case "sysClr":{let n=j$1(e,"a","lastClr")??j$1(e,null,"lastClr");if(n)return n;switch(j$1(e,"a","val")??j$1(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":{j$1(e,"a","val")??j$1(e,null,"val");return null}default:return null}}function wt(e$1){let t={...Ne};if(!e$1)return t;for(let n of gt){let o=e(e$1,"a",n);if(o){let r=i(o);if(r.length>0){let a=ht(r[0]);a&&(t[n]=a);}}}return t}function Ae(e$1){let t={latin:"",ea:"",cs:"",fonts:{}};if(!e$1)return t;let n=e(e$1,"a","latin");n&&(t.latin=j$1(n,"a","typeface")??j$1(n,null,"typeface")??"");let o=e(e$1,"a","ea");o&&(t.ea=j$1(o,"a","typeface")??j$1(o,null,"typeface")??"");let r=e(e$1,"a","cs");r&&(t.cs=j$1(r,"a","typeface")??j$1(r,null,"typeface")??"");let a=f(e$1,"a","font");for(let u of a){let l=j$1(u,"a","script")??j$1(u,null,"script"),f=j$1(u,"a","typeface")??j$1(u,null,"typeface");l&&f&&(t.fonts=t.fonts||{},t.fonts[l]=f);}return t}function yt(e$1){let t={...Q};if(!e$1)return t;let n=e(e$1,"a","majorFont");n&&(t.majorFont=Ae(n));let o=e(e$1,"a","minorFont");return o&&(t.minorFont=Ae(o)),t}function Pn(e$1){if(!e$1)return {...ge};try{let t=c(e$1);if(!t)return {...ge};let n=j$1(t,"a","name")??j$1(t,null,"name")??"Office Theme",o=e(t,"a","themeElements"),r=e(o,"a","clrScheme"),a=wt(r),u=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 Q.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 He(e,t="latin"){if(!e?.fontScheme?.minorFont)return Q.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 Y(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?He(e,r):He(e,"latin")}function Ie(e){if(!e)return;let t=l(e,"w","w")??0,n=j$1(e,"w","type")??"dxa",o="dxa";return (n==="auto"||n==="dxa"||n==="nil"||n==="pct")&&(o=n),{value:t,type:o}}function X(e){return Ie(e)}function V(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=(j$1(e,"w","author")??"").trim(),r=(j$1(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 J(e){let t=V(e),n=(j$1(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function W(e){if(!e)return;let o={style:j$1(e,"w","val")??"none"},r=l(e,"w","sz");r!==void 0&&(o.size=r);let a=l(e,"w","space");a!==void 0&&(o.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade");(u||l$1||f||c)&&(o.color={rgb:u??void 0,themeColor:l$1,themeTint:f??void 0,themeShade:c??void 0});let p=j$1(e,"w","shadow");(p==="1"||p==="true")&&(o.shadow=true);let g=j$1(e,"w","frame");return (g==="1"||g==="true")&&(o.frame=true),o}function ee(e$1){if(!e$1)return;let t={},n=W(e(e$1,"w","top"));n&&(t.top=n);let o=W(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=W(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=W(e(e$1,"w","right")??e(e$1,"w","end"));a&&(t.right=a);let u=W(e(e$1,"w","insideH"));u&&(t.insideH=u);let l=W(e(e$1,"w","insideV"));if(l&&(t.insideV=l),Object.keys(t).length!==0)return t}function te(e$1){if(!e$1)return;let t={},n=X(e(e$1,"w","top"));n&&(t.top=n);let o=X(e(e$1,"w","bottom"));o&&(t.bottom=o);let r=X(e(e$1,"w","left")??e(e$1,"w","start"));r&&(t.left=r);let a=X(e(e$1,"w","right")??e(e$1,"w","end"));if(a&&(t.right=a),Object.keys(t).length!==0)return t}function ne(e){if(!e)return;let t={},n=j$1(e,"w","fill");n&&n!=="auto"&&(t.fill={rgb:n});let o=j$1(e,"w","themeFill");if(o){t.fill={themeColor:o};let u=j$1(e,"w","themeFillTint");u&&t.fill&&(t.fill.themeTint=u);let l=j$1(e,"w","themeFillShade");l&&t.fill&&(t.fill.themeShade=l);}let r=j$1(e,"w","color");r&&r!=="auto"&&(t.color={rgb:r});let a=j$1(e,"w","val");if(a&&(t.pattern=a),Object.keys(t).length!==0)return t}function he(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=j$1(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=j$1(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","noHBand");(u==="1"||u==="true")&&(t.noHBand=true);let l=j$1(e,"w","noVBand");(l==="1"||l==="true")&&(t.noVBand=true);let f=j$1(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=j$1(e,"w","horzAnchor");(n==="margin"||n==="page"||n==="text")&&(t.horzAnchor=n);let o=j$1(e,"w","vertAnchor");(o==="margin"||o==="page"||o==="text")&&(t.vertAnchor=o);let r=l(e,"w","tblpX");r!==void 0&&(t.tblpX=r);let a=j$1(e,"w","tblpXSpec");a&&(t.tblpXSpec=a);let u=l(e,"w","tblpY");u!==void 0&&(t.tblpY=u);let l$1=j$1(e,"w","tblpYSpec");l$1&&(t.tblpYSpec=l$1);let f=l(e,"w","topFromText");f!==void 0&&(t.topFromText=f);let c=l(e,"w","bottomFromText");c!==void 0&&(t.bottomFromText=c);let p=l(e,"w","leftFromText");p!==void 0&&(t.leftFromText=p);let g=l(e,"w","rightFromText");if(g!==void 0&&(t.rightFromText=g),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 St(e){return e.rows.length===0?false:e.rows[0].formatting?.header===true}function Le(e){switch(e){case "first":return "first";case "even":return "even";default:return "default"}}function Xe(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:Le(t),rId:n}}function De(e){let t=j$1(e,"w","type"),n=j$1(e,"r","id")??"";return {type:Le(t),rId:n}}function ye(e,t,n,o,r,a){let u=[],l=e.elements??[],f={inHeaderFooter:true};for(let c of l){if(c.type!=="element")continue;let p=c.name??"";if(p==="w:p"||p.endsWith(":p"))u.push(D(c,t,n,o,r,a,f));else if(p==="w:tbl"||p.endsWith(":tbl")){let g=j(c,t,n,o,r,a,f);u.push(g);}else if(p==="w:sdt"||p.endsWith(":sdt")){let g=(c.elements??[]).find(h=>h.type==="element"&&(h.name==="w:sdtContent"||h.name?.endsWith(":sdtContent")));if(g){let h=ye(g,t,n,o,r,a);u.push(...h);}}}return u}function Xn(e,t="default",n=null,o=null,r=null,a$1=null,u=null){let l={type:"header",hdrFtrType:t,content:[]};if(!e)return l;let f=a(e);if(!f)return l;let c=f.elements?.find(p=>p.type==="element"&&(p.name==="w:hdr"||p.name?.endsWith(":hdr")));return c&&(l.content=ye(c,n,o,r,a$1,u)),l}function Dn(e,t="default",n=null,o=null,r=null,a$1=null,u=null){let l={type:"footer",hdrFtrType:t,content:[]};if(!e)return l;let f=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=ye(c,n,o,r,a$1,u)),l}function Oe(e){switch(e){case "separator":return "separator";case "continuationSeparator":return "continuationSeparator";case "continuationNotice":return "continuationNotice";default:return "normal"}}function We(e,t,n,o,r,a){let u=[];for(let l of i(e)){let f=l.name??"";f==="w:p"?u.push(D(l,t,n,o,r)):f==="w:tbl"&&u.push(j(l,t,n,o,r,a));}return u}function kt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=Oe(l$1),c=We(e,t,n,o,r,a);return {type:"footnote",id:u,noteType:f,content:c}}function zn(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return oe(u,l);let f$1=a(e);if(!f$1)return oe(u,l);let c=f$1.elements?.find(g=>g.type==="element"&&(g.name==="w:footnotes"||g.name?.endsWith(":footnotes")));if(!c)return oe(u,l);let p=f(c,"w","footnote");for(let g of p){let h=kt(g,t,n,o,r,a$1);u.set(h.id,h),l.push(h);}return oe(u,l)}function oe(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 Mt(e,t,n,o,r,a){let u=l(e,"w","id")??0,l$1=j$1(e,"w","type"),f=Oe(l$1),c=We(e,t,n,o,r,a);return {type:"endnote",id:u,noteType:f,content:c}}function Un(e,t=null,n=null,o=null,r=null,a$1=null){let u=new Map,l=[];if(!e)return re(u,l);let f$1=a(e);if(!f$1)return re(u,l);let c=f$1.elements?.find(g=>g.type==="element"&&(g.name==="w:endnotes"||g.name?.endsWith(":endnotes")));if(!c)return re(u,l);let p=f(c,"w","endnote");for(let g of p){let h=Mt(g,t,n,o,r,a$1);u.set(h.id,h),l.push(h);}return re(u,l)}function re(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 Ve(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 Rt(e){switch(e){case "pageBottom":return "pageBottom";case "beneathText":return "beneathText";case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function Et(e){switch(e){case "sectEnd":return "sectEnd";case "docEnd":return "docEnd";default:return}}function je(e){switch(e){case "continuous":return "continuous";case "eachSect":return "eachSect";case "eachPage":return "eachPage";default:return}}function ze(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=Rt(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=Ve(u);}let r=e(e$1,"w","numStart");r&&(t.numStart=l(r,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=je(u);}return t}function Ue(e$1){let t={};if(!e$1)return t;let n=e(e$1,"w","pos");if(n){let u=j$1(n,"w","val");t.position=Et(u);}let o=e(e$1,"w","numFmt");if(o){let u=j$1(o,"w","val");t.numFmt=Ve(u);}let r=e(e$1,"w","numStart");r&&(t.numStart=l(r,"w","val")??void 0);let a=e(e$1,"w","numRestart");if(a){let u=j$1(a,"w","val");t.numRestart=je(u);}return t}function Gn(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 qn(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 _n(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Yn(e){return e.noteType==="separator"||e.noteType==="continuationSeparator"||e.noteType==="continuationNotice"}function Pt(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 ie(e){if(!e)return;let o={style:j$1(e,"w","val")??"none"},r=l(e,"w","sz");r!==void 0&&(o.size=r);let a=l(e,"w","space");a!==void 0&&(o.space=a);let u=j$1(e,"w","color"),l$1=j$1(e,"w","themeColor"),f=j$1(e,"w","themeTint"),c=j$1(e,"w","themeShade"),p=Pt(u,l$1,f,c);p&&(o.color=p);let g=j$1(e,"w","shadow");(g==="1"||g==="true")&&(o.shadow=true);let h=j$1(e,"w","frame");return (h==="1"||h==="true")&&(o.frame=true),o}function Bt(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 At(e){switch(e){case "top":return "top";case "center":return "center";case "both":return "both";case "bottom":return "bottom";default:return}}function Ht(e){switch(e){case "continuous":return "continuous";case "newPage":return "newPage";case "newSection":return "newSection";default:return}}function ae(e$1,t){let n={};if(!e$1)return n;let o=e(e$1,"w","pgSz");if(o){let d=l(o,"w","w");d!==void 0&&(n.pageWidth=d);let b=l(o,"w","h");b!==void 0&&(n.pageHeight=b);let E=j$1(o,"w","orient"),w=Bt(E);w&&(n.orientation=w);}let r=e(e$1,"w","pgMar");if(r){let d=l(r,"w","top");d!==void 0&&(n.marginTop=d);let b=l(r,"w","bottom");b!==void 0&&(n.marginBottom=b);let E=l(r,"w","left");E!==void 0&&(n.marginLeft=E);let w=l(r,"w","right");w!==void 0&&(n.marginRight=w);let S=l(r,"w","header");S!==void 0&&(n.headerDistance=S);let P=l(r,"w","footer");P!==void 0&&(n.footerDistance=P);let B=l(r,"w","gutter");B!==void 0&&(n.gutter=B);}let a=e(e$1,"w","cols");if(a){let d=l(a,"w","num");d!==void 0&&(n.columnCount=d);let b=l(a,"w","space");b!==void 0&&(n.columnSpace=b);let E=j$1(a,"w","equalWidth");E==="1"||E==="true"?n.equalWidth=true:(E==="0"||E==="false")&&(n.equalWidth=false);let w=j$1(a,"w","sep");(w==="1"||w==="true")&&(n.separator=true);let S=f(a,"w","col");if(S.length>0){n.columns=[];for(let P of S){let B={},I=l(P,"w","w");I!==void 0&&(B.width=I);let H=l(P,"w","space");H!==void 0&&(B.space=H),n.columns.push(B);}n.columnCount===void 0&&(n.columnCount=S.length);}}let u=e(e$1,"w","type");if(u){let d=j$1(u,"w","val"),b=vt(d);b&&(n.sectionStart=b);}let l$1=e(e$1,"w","vAlign");if(l$1){let d=j$1(l$1,"w","val"),b=At(d);b&&(n.verticalAlign=b);}let f$1=e(e$1,"w","bidi");f$1&&(n.bidi=m(f$1));let c=f(e$1,"w","headerReference");c.length>0&&(n.headerReferences=c.map(d=>Xe(d)));let p=f(e$1,"w","footerReference");p.length>0&&(n.footerReferences=p.map(d=>De(d)));let g=e(e$1,"w","titlePg");g&&(n.titlePg=m(g));let h=e(e$1,"w","evenAndOddHeaders");h&&(n.evenAndOddHeaders=m(h));let C=e(e$1,"w","lnNumType");if(C){n.lineNumbers={};let d=l(C,"w","start");d!==void 0&&(n.lineNumbers.start=d);let b=l(C,"w","countBy");b!==void 0&&(n.lineNumbers.countBy=b);let E=l(C,"w","distance");E!==void 0&&(n.lineNumbers.distance=E);let w=j$1(C,"w","restart"),S=Ht(w);S&&(n.lineNumbers.restart=S);}let y=e(e$1,"w","pgBorders");if(y){n.pageBorders={};let d=ie(e(y,"w","top"));d&&(n.pageBorders.top=d);let b=ie(e(y,"w","bottom"));b&&(n.pageBorders.bottom=b);let E=ie(e(y,"w","left"));E&&(n.pageBorders.left=E);let w=ie(e(y,"w","right"));w&&(n.pageBorders.right=w);let S=j$1(y,"w","display");(S==="allPages"||S==="firstPage"||S==="notFirstPage")&&(n.pageBorders.display=S);let P=j$1(y,"w","offsetFrom");(P==="page"||P==="text")&&(n.pageBorders.offsetFrom=P);let B=j$1(y,"w","zOrder");(B==="front"||B==="back")&&(n.pageBorders.zOrder=B);}let T=e(e$1,"w","background");if(T){n.background={};let d=j$1(T,"w","color");d&&d!=="auto"&&(n.background.color={rgb:d});let b=j$1(T,"w","themeColor");b&&(n.background.themeColor=b);let E=j$1(T,"w","themeTint");E&&(n.background.themeTint=E);let w=j$1(T,"w","themeShade");w&&(n.background.themeShade=w);}let F=e(e$1,"w","footnotePr");if(F){let d=ze(F);Object.keys(d).length>0&&(n.footnotePr=d);}let N=e(e$1,"w","endnotePr");if(N){let d=Ue(N);Object.keys(d).length>0&&(n.endnotePr=d);}let M=e(e$1,"w","docGrid");if(M){n.docGrid={};let d=j$1(M,"w","type");(d==="default"||d==="lines"||d==="linesAndChars"||d==="snapToChars")&&(n.docGrid.type=d);let b=l(M,"w","linePitch");b!==void 0&&(n.docGrid.linePitch=b);let E=l(M,"w","charSpace");E!==void 0&&(n.docGrid.charSpace=E);}let x=e(e$1,"w","paperSrc");if(x){let d=l(x,"w","first");d!==void 0&&(n.paperSrcFirst=d);let b=l(x,"w","other");b!==void 0&&(n.paperSrcOther=b);}return n}function qe(){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 Ge(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 _e(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=Ge(r.headerReferences,o.headerReferences),u=Ge(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 Nt(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||!It(e.underline,t.underline)||!le(e.color,t.color)||!Lt(e.shading,t.shading)||!Xt(e.fontFamily,t.fontFamily))}function It(e,t){return !e&&!t?true:!e||!t||e.style!==t.style?false:le(e.color,t.color)}function le(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 Lt(e,t){return !e&&!t?true:!(!e||!t||e.pattern!==t.pattern||!le(e.color,t.color)||!le(e.fill,t.fill))}function Xt(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 Dt(e){return e.type==="text"||e.type==="softHyphen"||e.type==="noBreakHyphen"}function Ye(e){return e.content.length===0?true:e.content.every(Dt)}function Ot(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 Wt(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}Ye(n)&&Ye(o)&&Nt(n.formatting,o.formatting)?n={type:"run",formatting:n.formatting,content:Ot(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=Wt(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 $e(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 Vt(e){if(!e)return;let t={},n=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=j$1(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=j$1(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function ue(e$1,t,n){if(!e$1)return;let o={},r=e(e$1,"w","b");r&&(o.bold=m(r));let a=e(e$1,"w","bCs");a&&(o.boldCs=m(a));let u=e(e$1,"w","i");u&&(o.italic=m(u));let l$1=e(e$1,"w","iCs");l$1&&(o.italicCs=m(l$1));let f=e(e$1,"w","u");if(f){let k=j$1(f,"w","val");if(k){o.underline={style:k};let U=j$1(f,"w","color"),G=j$1(f,"w","themeColor");(U||G)&&(o.underline.color=$e(U,G,j$1(f,"w","themeTint"),j$1(f,"w","themeShade")));}}let c=e(e$1,"w","strike");c&&(o.strike=m(c));let p=e(e$1,"w","dstrike");p&&(o.doubleStrike=m(p));let g=e(e$1,"w","vertAlign");if(g){let k=j$1(g,"w","val");(k==="superscript"||k==="subscript"||k==="baseline")&&(o.vertAlign=k);}let h=e(e$1,"w","smallCaps");h&&(o.smallCaps=m(h));let C=e(e$1,"w","caps");C&&(o.allCaps=m(C));let y=e(e$1,"w","vanish");y&&(o.hidden=m(y));let T=e(e$1,"w","color");T&&(o.color=$e(j$1(T,"w","val"),j$1(T,"w","themeColor"),j$1(T,"w","themeTint"),j$1(T,"w","themeShade")));let F=e(e$1,"w","highlight");if(F){let k=j$1(F,"w","val");k&&(o.highlight=k);}let N=e(e$1,"w","shd");N&&(o.shading=Vt(N));let M=e(e$1,"w","sz");if(M){let k=l(M,"w","val");k!==void 0&&(o.fontSize=k);}let x=e(e$1,"w","szCs");if(x){let k=l(x,"w","val");k!==void 0&&(o.fontSizeCs=k);}let d=e(e$1,"w","rFonts");if(d){o.fontFamily={ascii:j$1(d,"w","ascii")??void 0,hAnsi:j$1(d,"w","hAnsi")??void 0,eastAsia:j$1(d,"w","eastAsia")??void 0,cs:j$1(d,"w","cs")??void 0};let k=j$1(d,"w","asciiTheme");k&&(o.fontFamily.asciiTheme=k,t&&!o.fontFamily.ascii&&(o.fontFamily.ascii=Y(t,k)));let U=j$1(d,"w","hAnsiTheme");U&&(o.fontFamily.hAnsiTheme=U,t&&!o.fontFamily.hAnsi&&(o.fontFamily.hAnsi=Y(t,U)));let G=j$1(d,"w","eastAsiaTheme");G&&(o.fontFamily.eastAsiaTheme=G,t&&!o.fontFamily.eastAsia&&(o.fontFamily.eastAsia=Y(t,G)));let pe=j$1(d,"w","cstheme");pe&&(o.fontFamily.csTheme=pe,t&&!o.fontFamily.cs&&(o.fontFamily.cs=Y(t,pe)));}let b=e(e$1,"w","spacing");if(b){let k=l(b,"w","val");k!==void 0&&(o.spacing=k);}let E=e(e$1,"w","position");if(E){let k=l(E,"w","val");k!==void 0&&(o.position=k);}let w=e(e$1,"w","w");if(w){let k=l(w,"w","val");k!==void 0&&(o.scale=k);}let S=e(e$1,"w","kern");if(S){let k=l(S,"w","val");k!==void 0&&(o.kerning=k);}let P=e(e$1,"w","effect");if(P){let k=j$1(P,"w","val");k&&(o.effect=k);}let B=e(e$1,"w","em");if(B){let k=j$1(B,"w","val");k&&(o.emphasisMark=k);}let I=e(e$1,"w","emboss");I&&(o.emboss=m(I));let H=e(e$1,"w","imprint");H&&(o.imprint=m(H));let L=e(e$1,"w","outline");L&&(o.outline=m(L));let Te=e(e$1,"w","shadow");Te&&(o.shadow=m(Te));let Ce=e(e$1,"w","rtl");Ce&&(o.rtl=m(Ce));let Fe=e(e$1,"w","cs");Fe&&(o.cs=m(Fe));let xe=e(e$1,"w","rStyle");if(xe){let k=j$1(xe,"w","val");k&&(o.styleId=k);}return Object.keys(o).length>0?o:void 0}function jt(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=(j$1(e,"w","author")??"").trim(),r=(j$1(e,"w","date")??"").trim(),a=(j$1(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 zt(e$1,t,n,o){if(!e$1)return;let r=f(e$1,"w","rPrChange").map(a=>{let u=e(a,"w","rPr");return {type:"runPropertyChange",info:jt(a),previousFormatting:ue(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function Ut(e){let t=k(e),n=j$1(e,"xml","space")==="preserve";return {type:"text",text:t,preserveSpace:n||void 0}}function Gt(){return {type:"tab"}}function qt(e){let t=j$1(e,"w","type"),n=j$1(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 _t(e){let t=j$1(e,"w","font")??"",n=j$1(e,"w","char")??"";return {type:"symbol",font:t,char:n}}function Yt(e){return {type:"footnoteRef",id:l(e,"w","id")??0}}function $t(e){return {type:"endnoteRef",id:l(e,"w","id")??0}}function Zt(e){let t=j$1(e,"w","fldCharType"),n=j$1(e,"w","fldLock")==="true"||j$1(e,"w","fldLock")==="1",o=j$1(e,"w","dirty")==="true"||j$1(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 Kt(e){return {type:"instrText",text:k(e)}}function Ze(e,t,n){let o=z$1(e,t??void 0,n??void 0);return o?{type:"drawing",image:o}:null}function se(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function Qt(e,t,n){let o=[],r=i(e);for(let a of r)switch(se(a.name)){case "t":o.push(Ut(a));break;case "tab":o.push(Gt());break;case "br":o.push(qt(a));break;case "sym":o.push(_t(a));break;case "footnoteReference":o.push(Yt(a));break;case "endnoteReference":o.push($t(a));break;case "fldChar":o.push(Zt(a));break;case "instrText":o.push(Kt(a));break;case "softHyphen":o.push({type:"softHyphen"});break;case "noBreakHyphen":o.push({type:"noBreakHyphen"});break;case "drawing":let l=Ze(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=i(a).find(p=>se(p.name)==="Choice")??i(a).find(p=>se(p.name)==="Fallback");if(c){for(let p of i(c))if(se(p.name)==="drawing"){let h=Ze(p,t,n);h?.image?.src&&o.push(h);}}break}}return o}function $(e$1,t,n,o=null,r=null){let a={type:"run",content:[]},u=e(e$1,"w","rPr");return u&&(a.formatting=ue(u,n),a.propertyChanges=zt(u,n,t,a.formatting)),a.content=Qt(e$1,o,r),a}function Jt(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 en(e){if(!e)return;let t={},n=j$1(e,"w","color");n&&n!=="auto"&&(t.color={rgb:n});let o=j$1(e,"w","fill");o&&o!=="auto"&&(t.fill={rgb:o});let r=j$1(e,"w","themeFill");r&&(t.fill=t.fill||{},t.fill.themeColor=r);let a=j$1(e,"w","themeFillTint");a&&t.fill&&(t.fill.themeTint=a);let u=j$1(e,"w","themeFillShade");u&&t.fill&&(t.fill.themeShade=u);let l=j$1(e,"w","val");return l&&(t.pattern=l),Object.keys(t).length>0?t:void 0}function q(e){if(!e)return;let t=j$1(e,"w","val");if(!t)return;let n={style:t},o=j$1(e,"w","color"),r=j$1(e,"w","themeColor");(o||r)&&(n.color=Jt(o,r,j$1(e,"w","themeTint"),j$1(e,"w","themeShade")));let a=l(e,"w","sz");a!==void 0&&(n.size=a);let u=l(e,"w","space");u!==void 0&&(n.space=u);let l$1=j$1(e,"w","shadow");l$1&&(n.shadow=l$1==="1"||l$1==="true");let f=j$1(e,"w","frame");return f&&(n.frame=f==="1"||f==="true"),n}function tn(e){if(!e)return;let t=f(e,"w","tab");if(t.length===0)return;let n=[];for(let o of t){let r=l(o,"w","pos"),a=j$1(o,"w","val");if(r!==void 0&&a){let u={position:r,alignment:a},l=j$1(o,"w","leader");l&&(u.leader=l),n.push(u);}}return n.length>0?n:void 0}function nn(e){if(!e)return;let t={},n=l(e,"w","w");n!==void 0&&(t.width=n);let o=l(e,"w","h");o!==void 0&&(t.height=o);let r=j$1(e,"w","hAnchor");(r==="text"||r==="margin"||r==="page")&&(t.hAnchor=r);let a=j$1(e,"w","vAnchor");(a==="text"||a==="margin"||a==="page")&&(t.vAnchor=a);let u=l(e,"w","x");u!==void 0&&(t.x=u);let l$1=l(e,"w","y");l$1!==void 0&&(t.y=l$1);let f=j$1(e,"w","xAlign");f&&(t.xAlign=f);let c=j$1(e,"w","yAlign");c&&(t.yAlign=c);let p=j$1(e,"w","wrap");return p&&(t.wrap=p),Object.keys(t).length>0?t:void 0}function fe(e$1,t,n){if(!e$1)return;let o={},r=e(e$1,"w","jc");if(r){let w=j$1(r,"w","val");w&&(o.alignment=w);}let a=e(e$1,"w","bidi");a&&(o.bidi=m(a));let u=e(e$1,"w","spacing");if(u){let w=l(u,"w","before");w!==void 0&&(o.spaceBefore=w);let S=l(u,"w","after");S!==void 0&&(o.spaceAfter=S);let P=l(u,"w","line");P!==void 0&&(o.lineSpacing=P);let B={};w!==void 0&&(B.before=true),S!==void 0&&(B.after=true),(B.before||B.after)&&(o.spacingExplicit=B);let I=j$1(u,"w","lineRule");I&&(o.lineSpacingRule=I);let H=j$1(u,"w","beforeAutospacing");H&&(o.beforeAutospacing=H==="1"||H==="true");let L=j$1(u,"w","afterAutospacing");L&&(o.afterAutospacing=L==="1"||L==="true");}let l$1=e(e$1,"w","ind");if(l$1){let w=l(l$1,"w","left");w!==void 0&&(o.indentLeft=w);let S=l(l$1,"w","right");S!==void 0&&(o.indentRight=S);let P=l(l$1,"w","firstLine");P!==void 0&&(o.indentFirstLine=P);let B=l(l$1,"w","hanging");B!==void 0&&(o.indentFirstLine=-B,o.hangingIndent=true);let I=l(l$1,"w","start");I!==void 0&&o.indentLeft===void 0&&(o.indentLeft=I);let H=l(l$1,"w","end");H!==void 0&&o.indentRight===void 0&&(o.indentRight=H);}let f=e(e$1,"w","pBdr");if(f){let w={},S=q(e(f,"w","top"));S&&(w.top=S);let P=q(e(f,"w","bottom"));P&&(w.bottom=P);let B=q(e(f,"w","left"));B&&(w.left=B);let I=q(e(f,"w","right"));I&&(w.right=I);let H=q(e(f,"w","between"));H&&(w.between=H);let L=q(e(f,"w","bar"));L&&(w.bar=L),Object.keys(w).length>0&&(o.borders=w);}let c=e(e$1,"w","shd");c&&(o.shading=en(c));let p=e(e$1,"w","tabs");p&&(o.tabs=tn(p));let g=e(e$1,"w","keepNext");g&&(o.keepNext=m(g));let h=e(e$1,"w","keepLines");h&&(o.keepLines=m(h));let C=e(e$1,"w","widowControl");C&&(o.widowControl=m(C));let y=e(e$1,"w","pageBreakBefore");y&&(o.pageBreakBefore=m(y));let T=e(e$1,"w","contextualSpacing");T&&(o.contextualSpacing=m(T));let F=e(e$1,"w","numPr");if(F){let w=e(F,"w","numId"),S=e(F,"w","ilvl");if(w||S){if(o.numPr={},w){let P=l(w,"w","val");P!==void 0&&(o.numPr.numId=P);}if(S){let P=l(S,"w","val");P!==void 0&&(o.numPr.ilvl=P);}}}let N=e(e$1,"w","outlineLvl");if(N){let w=l(N,"w","val");w!==void 0&&(o.outlineLevel=w);}let M=e(e$1,"w","pStyle");if(M){let w=j$1(M,"w","val");w&&(o.styleId=w);}let x=e(e$1,"w","framePr");x&&(o.frame=nn(x));let d=e(e$1,"w","suppressLineNumbers");d&&(o.suppressLineNumbers=m(d));let b=e(e$1,"w","suppressAutoHyphens");b&&(o.suppressAutoHyphens=m(b));let E=e(e$1,"w","rPr");return E&&(o.runProperties=ue(E,t)),Object.keys(o).length>0?o:void 0}function on(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function rn(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function an(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function Ke(e,t,n=null,o=null,r=null){let a={type:"hyperlink",children:[]},u=j$1(e,"r","id");if(u&&(a.rId=u,t)){let C=t.get(u);C&&(q$1(C),a.href=C.target);}let l=j$1(e,"w","anchor");l&&(a.anchor=l,a.href||(a.href=`#${l}`));let f=j$1(e,"w","tooltip");f&&(a.tooltip=f);let c=j$1(e,"w","tgtFrame");c&&(a.target=c);let p=j$1(e,"w","history");(p==="1"||p==="true")&&(a.history=true);let g=j$1(e,"w","docLocation");g&&(a.docLocation=g);let h=i(e);for(let C of h)switch(on(C.name)){case "r":a.children.push($(C,n,o,t,r));break;case "bookmarkStart":a.children.push(rn(C));break;case "bookmarkEnd":a.children.push(an(C));break}return a}function co(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 po(e){return e.href?/^https?:\/\/|^mailto:|^tel:|^ftp:/i.test(e.href):!!e.rId&&!e.anchor}function mo(e){return !!e.anchor}function go(e){return e.href}function ho(e){return e.children.some(t=>t.type==="run")}function wo(e){return e.children.filter(t=>t.type==="run")}function yo(e,t){if(e.rId){let n=t.get(e.rId);if(n)return q$1(n),e.href=n.target,e.href}return e.anchor&&!e.href&&(e.href=`#${e.anchor}`),e.href}function Qe(e){let t=l(e,"w","id")??0,n=j$1(e,"w","name")??"",o={type:"bookmarkStart",id:t,name:n},r=l(e,"w","colFirst");r!==void 0&&(o.colFirst=r);let a=l(e,"w","colLast");return a!==void 0&&(o.colLast=a),o}function Je(e){return {type:"bookmarkEnd",id:l(e,"w","id")??0}}function ln(e$1){let t={sdtType:"richText"};if(!e$1||!e$1.elements)return t;for(let n of e$1.elements){if(n.type!=="element")continue;switch(n.name?.replace(/^w:/,"")??""){case "alias":t.alias=j$1(n,"w","val")??void 0;break;case "tag":t.tag=j$1(n,"w","val")??void 0;break;case "lock":t.lock=j$1(n,"w","val")??"unlocked";break;case "placeholder":{let r=e(n,"w","docPart");if(r){let a=e(r,"w","val");t.placeholder=a?j$1(a,"w","val")??void 0:void 0;}break}case "showingPlcHdr":t.showingPlaceholder=true;break;case "text":t.sdtType="plainText";break;case "date":t.sdtType="date",t.dateFormat=j$1(n,"w","fullDate")??void 0;break;case "dropDownList":t.sdtType="dropdown",t.listItems=et(n);break;case "comboBox":t.sdtType="comboBox",t.listItems=et(n);break;case "checkbox":{t.sdtType="checkbox";let r=e(n,"w14","checked")??e(n,"w","checked");t.checked=r?j$1(r,"w14","val")==="1"||j$1(r,"w","val")==="1":false;break}case "picture":t.sdtType="picture";break;case "docPartObj":t.sdtType="buildingBlockGallery";break;case "group":t.sdtType="group";break}}return t}function et(e){let t=[];for(let n of e.elements??[])n.type==="element"&&(n.name==="w:listItem"||n.name?.endsWith(":listItem"))&&t.push({displayText:j$1(n,"w","displayText")??"",value:j$1(n,"w","value")??""});return t}function nt(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+=nt(n);return t}function K(e){if(!e)return "";let t=e.indexOf(":");return t>=0?e.substring(t+1):e}function ot(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 i(l)){let c=K(f.name);if(!n.has(c)){if(c==="lastRenderedPageBreak"){r=true;continue}if(c==="r"){for(let p of i(f)){let g=K(p.name);if(g!=="rPr"){if(g==="lastRenderedPageBreak"){r=true;continue}if(g==="br"&&j$1(p,"w","type")==="page")return "forced";if(o.has(g))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 tt(e,t){if(!e)return `w:${t}`;let n=e.indexOf(":");return n<0?t:`${e.substring(0,n+1)}${t}`}function rt(e){if(e.type!=="element")return e;let t=K(e.name),n=e.name;return t==="delText"?n=tt(e.name,"t"):t==="delInstrText"&&(n=tt(e.name,"instrText")),{...e,name:n,elements:e.elements?.map(rt)}}function Z(e){let t=j$1(e,"w","id"),n=t?parseInt(t,10):0,o=j$1(e,"w","author"),r=j$1(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 sn(e){let t=Z(e),n=(j$1(e,"w","rsid")??"").trim();return n.length>0?{...t,rsid:n}:t}function it(e$1,t,n,o){if(!e$1)return;let r=f(e$1,"w","pPrChange").map(a=>{let u=e(a,"w","pPr");return {type:"paragraphPropertyChange",info:sn(a),previousFormatting:fe(u,t),currentFormatting:o}}).filter(a=>a.previousFormatting||a.currentFormatting);return r.length>0?r:void 0}function un(e,t,n,o,r){return Ke(e,t,n,o,r)}function fn(e){return Qe(e)}function cn(e){return Je(e)}function at(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 pn(e,t,n,o,r){let a=j$1(e,"w","instr")??"",u=at(a),l={type:"simpleField",instruction:a,fieldType:u,content:[]},f=j$1(e,"w","fldLock");(f==="1"||f==="true")&&(l.fldLock=true);let c=j$1(e,"w","dirty");(c==="1"||c==="true")&&(l.dirty=true);let p=i(e);for(let g of p)K(g.name)==="r"&&l.content.push($(g,t,n,o,r));return l}function z(e,t,n,o,r,a,u="default"){let l=[],f=i(e),c=false,p="",g=[],h=[],C=false,y=false,T=false;for(let F of f){let N=K(F.name);switch(N){case "r":{let M=u==="deletion"?rt(F):F,x=$(M,t,n,r,a),d=false,b=false,E=false,w="";for(let S of x.content)S.type==="fieldChar"?S.charType==="begin"?(d=true,S.fldLock&&(y=true),S.dirty&&(T=true)):S.charType==="separate"?b=true:S.charType==="end"&&(E=true):S.type==="instrText"&&(w+=S.text);if(d&&(c=true,C=false,p="",g=[],h=[],y=false,T=false),c){if(w&&(p+=w),b&&(C=true),C&&!E?b||h.push(x):!C&&!d&&g.push(x),E){let S={type:"complexField",instruction:p.trim(),fieldType:at(p),fieldCode:g,fieldResult:h};y&&(S.fldLock=true),T&&(S.dirty=true),l.push(S),c=false;}}else l.push(x);break}case "hyperlink":l.push(un(F,r,t,n,a));break;case "bookmarkStart":l.push(fn(F));break;case "bookmarkEnd":l.push(cn(F));break;case "fldSimple":l.push(pn(F,t,n,r,a));break;case "pPr":break;case "proofErr":case "permStart":case "permEnd":case "customXml":break;case "sdt":{let M=(F.elements??[]).find(d=>d.type==="element"&&(d.name==="w:sdtPr"||d.name?.endsWith(":sdtPr"))),x=(F.elements??[]).find(d=>d.type==="element"&&(d.name==="w:sdtContent"||d.name?.endsWith(":sdtContent")));if(x){let d=z(x,t,n,null,r,a,u),E={type:"inlineSdt",properties:ln(M??null),content:d.filter(w=>w.type==="run"||w.type==="hyperlink"||w.type==="simpleField"||w.type==="complexField"||w.type==="inlineSdt"||w.type==="mathEquation")};l.push(E);}break}case "ins":{let M=Z(F),x=z(F,t,n,null,r,a),d={type:"insertion",info:M,content:x.filter(b=>b.type==="run"||b.type==="hyperlink")};l.push(d);break}case "del":{let M=Z(F),x=z(F,t,n,null,r,a,"deletion"),d={type:"deletion",info:M,content:x.filter(b=>b.type==="run"||b.type==="hyperlink")};l.push(d);break}case "moveFrom":{let M=Z(F),x=z(F,t,n,null,r,a,"deletion"),d={type:"moveFrom",info:M,content:x.filter(b=>b.type==="run"||b.type==="hyperlink")};l.push(d);break}case "moveTo":{let M=Z(F),x=z(F,t,n,null,r,a),d={type:"moveTo",info:M,content:x.filter(b=>b.type==="run"||b.type==="hyperlink")};l.push(d);break}case "smartTag":break;case "moveFromRangeStart":{let M=parseInt(j$1(F,"w","id")??"0",10),x=j$1(F,"w","name")??"";l.push({type:"moveFromRangeStart",id:M,name:x});break}case "moveFromRangeEnd":{let M=parseInt(j$1(F,"w","id")??"0",10);l.push({type:"moveFromRangeEnd",id:M});break}case "moveToRangeStart":{let M=parseInt(j$1(F,"w","id")??"0",10),x=j$1(F,"w","name")??"";l.push({type:"moveToRangeStart",id:M,name:x});break}case "moveToRangeEnd":{let M=parseInt(j$1(F,"w","id")??"0",10);l.push({type:"moveToRangeEnd",id:M});break}case "commentRangeStart":{let M=parseInt(j$1(F,"w","id")??"0",10);l.push({type:"commentRangeStart",id:M});break}case "commentRangeEnd":{let M=parseInt(j$1(F,"w","id")??"0",10);l.push({type:"commentRangeEnd",id:M});break}case "oMath":case "oMathPara":{let M=N==="oMathPara",x=b(F),d=nt(F),b$1={type:"mathEquation",display:M?"block":"inline",ommlXml:x,plainText:d||void 0};l.push(b$1);break}}}return l}function ce(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 D(e$1,t,n,o,r=null,a=null,u){let l={type:"paragraph",content:[]},f=j$1(e$1,"w14","paraId")??j$1(e$1,"w","paraId");f&&(l.paraId=f);let c=j$1(e$1,"w14","textId")??j$1(e$1,"w","textId");c&&(l.textId=c),!u?.inHeaderFooter&&ot(e$1)&&(l.renderedPageBreakBefore=true);let p=e(e$1,"w","pPr");if(p){l.formatting=fe(p,n),l.propertyChanges=it(p,n,t,l.formatting);let C=e(p,"w","sectPr");C&&(l.sectionProperties=ae(C));}let g=z(e$1,t,n,o,r,a);l.content=be(g);let h=l.formatting?.numPr;if(!h&&l.formatting?.styleId&&t){let C=t.get(l.formatting.styleId);C?.pPr?.numPr&&(h=C.pPr.numPr,l.formatting||(l.formatting={}),l.formatting.numPr=h);}if(h&&o){let{numId:C,ilvl:y=0}=h;if(C!==void 0&&C!==0){let T=o.getLevel(C,y);if(T){let F=[];for(let x=0;x<=y;x+=1){let d=o.getLevel(C,x);F.push(d?.numFmt??"decimal");}let N=o.getInstance(C),M=N?.levelOverrides?.find(x=>x.ilvl===y);if(l.listRendering={level:y,numId:C,marker:T.lvlText,isBullet:T.numFmt==="bullet",numFmt:T.numFmt,markerHidden:T.rPr?.hidden||void 0,markerFontFamily:T.rPr?.fontFamily?.ascii||T.rPr?.fontFamily?.hAnsi||void 0,markerFontSize:T.rPr?.fontSize?T.rPr.fontSize/2:void 0,levelNumFmts:F,abstractNumId:N?.abstractNumId,startOverride:M?.startOverride},T.pPr){l.formatting||(l.formatting={});let x=p?e(p,"w","ind"):null,d=x!=null&&(j$1(x,"w","left")!==null||j$1(x,"w","start")!==null),b=x!=null&&(j$1(x,"w","firstLine")!==null||j$1(x,"w","hanging")!==null);!d&&T.pPr.indentLeft!==void 0&&(l.formatting.indentLeft=T.pPr.indentLeft),b||(T.pPr.indentFirstLine!==void 0&&(l.formatting.indentFirstLine=T.pPr.indentFirstLine),T.pPr.hangingIndent!==void 0&&(l.formatting.hangingIndent=T.pPr.hangingIndent));}}}}return l}function lt(e$1){if(!e$1)return;let t={},n=X(e(e$1,"w","tblW"));n&&(t.width=n);let o=e(e$1,"w","jc");if(o){let T=j$1(o,"w","val");(T==="left"||T==="center"||T==="right"||T==="start")&&(t.justification=T==="start"?"left":T);}let r=X(e(e$1,"w","tblCellSpacing"));r&&(t.cellSpacing=r);let a=X(e(e$1,"w","tblInd"));a&&(t.indent=a);let u=ee(e(e$1,"w","tblBorders"));u&&(t.borders=u);let l=te(e(e$1,"w","tblCellMar"));l&&(t.cellMargins=l);let f=e(e$1,"w","tblLayout");if(f){let T=j$1(f,"w","type");(T==="fixed"||T==="autofit")&&(t.layout=T);}let c=e(e$1,"w","tblStyle");if(c){let T=j$1(c,"w","val");T&&(t.styleId=T);}let p=he(e(e$1,"w","tblLook"));p&&(t.look=p);let g=ne(e(e$1,"w","shd"));g&&(t.shading=g);let h=e(e$1,"w","tblOverlap");if(h){let T=j$1(h,"w","val");(T==="never"||T==="overlap")&&(t.overlap=T);}let C=we(e(e$1,"w","tblpPr"));if(C&&(t.floating=C),m(e(e$1,"w","bidiVisual"))&&(t.bidi=true),Object.keys(t).length!==0)return t}function dn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tblPrChange").map(o=>{let r=e(o,"w","tblPr");return {type:"tablePropertyChange",info:J(o),previousFormatting:lt(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function mn(e$1,t){if(!e$1)return;let n=f(e$1,"w","trPrChange").map(o=>{let r=e(o,"w","trPr");return {type:"tableRowPropertyChange",info:J(o),previousFormatting:st(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function gn(e$1,t){if(!e$1)return;let n=f(e$1,"w","tcPrChange").map(o=>{let r=e(o,"w","tcPr");return {type:"tableCellPropertyChange",info:J(o),previousFormatting:ft(r),currentFormatting:t}}).filter(o=>o.previousFormatting||o.currentFormatting);return n.length>0?n:void 0}function hn(e$1){if(!e$1)return;let t=e(e$1,"w","ins");if(t)return {type:"tableRowInsertion",info:V(t)};let n=e(e$1,"w","del");if(n)return {type:"tableRowDeletion",info:V(n)}}function wn(e$1){if(!e$1)return;let t=e(e$1,"w","cellIns");if(t)return {type:"tableCellInsertion",info:V(t)};let n=e(e$1,"w","cellDel");if(n)return {type:"tableCellDeletion",info:V(n)};let o=e(e$1,"w","cellMerge");if(o)return {type:"tableCellMerge",info:V(o)}}function st(e$1){if(!e$1)return;let t={},n=e(e$1,"w","trHeight");if(n){let f=l(n,"w","val");f!==void 0&&f>0&&(t.height={value:f,type:"dxa"});let c=j$1(n,"w","hRule");(c==="auto"||c==="atLeast"||c==="exact")&&(t.heightRule=c);}m(e(e$1,"w","tblHeader"))&&(t.header=true),m(e(e$1,"w","cantSplit"))&&(t.cantSplit=true);let a=e(e$1,"w","jc");if(a){let f=j$1(a,"w","val");(f==="left"||f==="center"||f==="right")&&(t.justification=f);}m(e(e$1,"w","hidden"))&&(t.hidden=true);let l$1=ut(e(e$1,"w","cnfStyle"));if(l$1&&(t.conditionalFormat=l$1),Object.keys(t).length!==0)return t}function ut(e){if(!e)return;let t={},n=j$1(e,"w","firstRow");(n==="1"||n==="true")&&(t.firstRow=true);let o=j$1(e,"w","lastRow");(o==="1"||o==="true")&&(t.lastRow=true);let r=j$1(e,"w","firstColumn");(r==="1"||r==="true")&&(t.firstColumn=true);let a=j$1(e,"w","lastColumn");(a==="1"||a==="true")&&(t.lastColumn=true);let u=j$1(e,"w","oddHBand");(u==="1"||u==="true")&&(t.oddHBand=true);let l=j$1(e,"w","evenHBand");(l==="1"||l==="true")&&(t.evenHBand=true);let f=j$1(e,"w","oddVBand");(f==="1"||f==="true")&&(t.oddVBand=true);let c=j$1(e,"w","evenVBand");(c==="1"||c==="true")&&(t.evenVBand=true);let p=j$1(e,"w","firstRowFirstColumn");(p==="1"||p==="true")&&(t.nwCell=true);let g=j$1(e,"w","firstRowLastColumn");(g==="1"||g==="true")&&(t.neCell=true);let h=j$1(e,"w","lastRowFirstColumn");(h==="1"||h==="true")&&(t.swCell=true);let C=j$1(e,"w","lastRowLastColumn");(C==="1"||C==="true")&&(t.seCell=true);let y=j$1(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 ft(e$1){if(!e$1)return;let t={},n=X(e(e$1,"w","tcW"));n&&(t.width=n);let o=ee(e(e$1,"w","tcBorders"));o&&(t.borders=o);let r=te(e(e$1,"w","tcMar"));r&&(t.margins=r);let a=ne(e(e$1,"w","shd"));a&&(t.shading=a);let u=e(e$1,"w","vAlign");if(u){let y=j$1(u,"w","val");(y==="top"||y==="center"||y==="bottom")&&(t.verticalAlign=y);}let l$1=e(e$1,"w","textDirection");if(l$1){let y=j$1(l$1,"w","val");y&&(t.textDirection=y);}let f=e(e$1,"w","gridSpan");if(f){let y=l(f,"w","val");y!==void 0&&y>1&&(t.gridSpan=y);}let c=e(e$1,"w","vMerge");c&&(j$1(c,"w","val")==="restart"?t.vMerge="restart":t.vMerge="continue"),m(e(e$1,"w","tcFitText"))&&(t.fitText=true),m(e(e$1,"w","noWrap"))&&(t.noWrap=true),m(e(e$1,"w","hideMark"))&&(t.hideMark=true);let C=ut(e(e$1,"w","cnfStyle"));if(C&&(t.conditionalFormat=C),Object.keys(t).length!==0)return t}function yn(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 g=D(c,t,n,o,r,a,u);l.push(g);}else if(p==="tbl"){let g=j(c,t,n,o,r,a,u);l.push(g);}}return l.length===0&&l.push({type:"paragraph",content:[]}),l}function bn(e$1,t,n,o,r,a,u){let l={type:"tableCell",content:[]},f=e(e$1,"w","tcPr"),c=ft(f);return c&&(l.formatting=c),l.propertyChanges=gn(f,c),l.structuralChange=wn(f),l.content=yn(e$1,t,n,o,r,a,u),l}function Tn(e$1,t,n,o,r,a,u){let l={type:"tableRow",cells:[]},f$1=e(e$1,"w","trPr"),c=st(f$1);c&&(l.formatting=c),l.propertyChanges=mn(f$1,c),l.structuralChange=hn(f$1);let p=f(e$1,"w","tc");for(let g of p){let h=bn(g,t,n,o,r,a,u);l.cells.push(h);}return l}function Cn(e){if(!e)return;let t=[],n=f(e,"w","gridCol");for(let o of n){let r=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 Fn(e){return e.cells.reduce((t,n)=>t+(n.formatting?.gridSpan??1),0)}function xn(e){let t=Math.max(e.columnWidths?.length??0,...e.rows.map(n=>Fn(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 j(e$1,t,n,o,r,a,u){let l={type:"table",rows:[]},f$1=e(e$1,"w","tblPr"),c=lt(f$1);c&&(l.formatting=c),l.propertyChanges=dn(f$1,c);let p=Cn(e(e$1,"w","tblGrid"));p&&(l.columnWidths=p);let g=f(e$1,"w","tr");for(let h of g){let C=Tn(h,t,n,o,r,a,u);l.rows.push(C);}return xn(l),l}function Sn(e){if(!e||e.trim()==="")return "\u2022";let t=e.charCodeAt(0),n={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:"-"};return n[t]?n[t]:t>=57344&&t<=63743||t<32||t>=127&&t<160?"\u2022":e}function kn(e){let t=e.listRendering;t&&t.isBullet&&(t.marker=Sn(t.marker||""));}var ct=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g;function pt(e){let t=[],n;for(ct.lastIndex=0;(n=ct.exec(e))!==null;){let o=n[1].trim();o&&!t.includes(o)&&t.push(o);}return t}function nr(e){let t=[];for(let n of e)if(n.type==="paragraph"){let o=ce(n),r=pt(o);for(let a of r)t.includes(a)||t.push(a);}else if(n.type==="table"){let o=dt(n);for(let r of o)t.includes(r)||t.push(r);}return t}function dt(e){let t=[];for(let n of e.rows)for(let o of n.cells)for(let r of o.content)if(r.type==="paragraph"){let a=ce(r),u=pt(a);for(let l of u)t.includes(l)||t.push(l);}else if(r.type==="table"){let a=dt(r);for(let u of a)t.includes(u)||t.push(u);}return t}function Mn(e,t,n$1,o,r,a,u){if(e.content.length===0)return;let l=i(t),f=0;for(let c of l){if(d(c.name??"")!=="r")continue;let p=i(c);for(let g$1 of p)if(d(g$1.name??"")==="drawing"&&h(g$1)){let h=j$2(g$1);if(h){let C=n(g$1,"wps","wsp");if(C){let F=k$1(C);F&&(h.content=g(F,D,null,n$1,o,r,a??void 0,u??void 0));}let y={type:"shape",shapeType:"rect",size:h.size,position:h.position,wrap:h.wrap,fill:h.fill,outline:h.outline,textBody:{content:h.content,margins:h.margins}};h.id&&(y.id=h.id);let T={type:"shape",shape:y};if(f<e.content.length){let F=e.content[f];F.type==="run"&&F.content.push(T);}}}f++;}}function mt(e,t,n,o,r,a){let u=[],l=i(e);for(let f of l){let c=f.name??"";if(c==="w:p"||c.endsWith(":p")){let p=D(f,t,n,o,r,a);Mn(p,f,t,n,o,r,a),kn(p),u.push(p);}else if(c==="w:tbl"||c.endsWith(":tbl")){let p=j(f,t,n,o,r,a);u.push(p);}else if(c==="w:sdt"||c.endsWith(":sdt")){let p=(f.elements??[]).find(g=>g.type==="element"&&(g.name==="w:sdtContent"||g.name?.endsWith(":sdtContent")));if(p){let g=mt(p,t,n,o,r,a);u.push(...g);}}}return u}function Rn(e,t){let n=[],o=[];for(let r of e)o.push(r),r.type==="paragraph"&&r.sectionProperties&&(n.push({properties:r.sectionProperties,content:o}),o=[]);return (o.length>0||n.length===0)&&n.push({properties:t??qe(),content:o}),n}function or(e$1,t=null,n=null,o=null,r=null,a$1=null){let u={content:[]};if(!e$1)return u;let l=a(e$1);if(!l)return u;let f=(l.elements??[]).find(h=>h.type==="element"&&(h.name==="w:document"||h.name?.endsWith(":document")));if(!f)return u;let c=e(f,"w","body");if(!c)return u;u.content=mt(c,t,n,o,r,a$1);let p=e(c,"w","sectPr");p&&(u.finalSectionProperties=ae(p));let g=Rn(u.content,u.finalSectionProperties);return u.sections=_e(g),u.finalSectionProperties&&u.sections.length>0&&(u.finalSectionProperties=u.sections[u.sections.length-1].properties),u}export{Ke as A,co as B,po as C,mo as D,go as E,ho as F,wo as G,yo as H,D as I,Sn as J,nr as K,or as L,Pn as a,Y as b,Ie as c,W as d,ee as e,te as f,ne as g,he as h,we as i,Tt as j,Ct as k,Ft as l,xt as m,St as n,lt as o,Xn as p,Dn as q,zn as r,Un as s,ze as t,Ue as u,Gn as v,qn as w,_n as x,Yn as y,$ as z};