@bendyline/gezel-service 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/gezeld.js +17797 -16874
- package/dist/handboek-content/whats-new/1.26226.md +89 -0
- package/dist/handboek.js +13 -2
- package/dist/index-store/static-index-worker.js +8 -5
- package/dist/index.d.ts +109 -7
- package/dist/index.js +17797 -16874
- package/dist/memory/embed-worker.js +22 -3
- package/dist/providers/mlx/python/gezel_mlx_server.py +154 -22
- package/dist/ui/assets/{TerminalCodeEditor-BpkIEKrW.js → TerminalCodeEditor-BuMcfTS4.js} +2 -2
- package/dist/ui/assets/{_.contribution-DESswd3T.js → _.contribution-CZO2XAKt.js} +1 -1
- package/dist/ui/assets/{chunk-6N2J7C2B-Du7clJkV.js → chunk-6N2J7C2B-BNHR_rFP.js} +1 -1
- package/dist/ui/assets/chunk-ILCJ3WFD-CUnKgI_I.js +4 -0
- package/dist/ui/assets/chunk-S5PCVMKU-i2wfHmvU.js +6 -0
- package/dist/ui/assets/{chunk-WATAOG4Y-BnCgSncI.js → chunk-WATAOG4Y-BbL-tDgQ.js} +1 -1
- package/dist/ui/assets/{cpp.contribution-DazoHQwn.js → cpp.contribution-BJzhk0Zj.js} +1 -1
- package/dist/ui/assets/{csharp.contribution-B64MdTmq.js → csharp.contribution-BR9K2qKj.js} +1 -1
- package/dist/ui/assets/{css.contribution-u617lXYH.js → css.contribution-CfkVmdah.js} +1 -1
- package/dist/ui/assets/{cssMode-Cf_QqRjJ.js → cssMode-MMeGUmV2.js} +1 -1
- package/dist/ui/assets/dist-8uH4DcHx.js +2 -0
- package/dist/ui/assets/dist-CFOmf7nD.js +222 -0
- package/dist/ui/assets/{dockerfile.contribution-P8T1FxHz.js → dockerfile.contribution-IZMl57B5.js} +1 -1
- package/dist/ui/assets/docx-BEJpkI6I.js +2 -0
- package/dist/ui/assets/extract-UTAOG7LV-BY3SCkzz.js +1 -0
- package/dist/ui/assets/{go.contribution-BqqmPpYF.js → go.contribution-BxCBwhZs.js} +1 -1
- package/dist/ui/assets/{handlebars-B9qcPqjD.js → handlebars-CreIkams.js} +1 -1
- package/dist/ui/assets/handlebars.contribution-BGlyL-dm.js +2 -0
- package/dist/ui/assets/{html-Fp2jEZ7j.js → html-BSrz1IKi.js} +1 -1
- package/dist/ui/assets/html.contribution-CucOMFQ_.js +2 -0
- package/dist/ui/assets/{htmlMode-B5cPhGim.js → htmlMode-DRG7XY5Z.js} +1 -1
- package/dist/ui/assets/{index-CQSh1NUQ.js → index-Bqu-32S3.js} +197 -191
- package/dist/ui/assets/index-DTicLc4o.css +1 -0
- package/dist/ui/assets/infer-D6e75m-s.js +2 -0
- package/dist/ui/assets/{ini.contribution-XkZYQphY.js → ini.contribution-CGX5OdXM.js} +1 -1
- package/dist/ui/assets/{java.contribution-CUQitE0a.js → java.contribution-CVhfJ_us.js} +1 -1
- package/dist/ui/assets/{javascript-CcBUpTjJ.js → javascript-QelFp9t5.js} +1 -1
- package/dist/ui/assets/javascript.contribution--no0ijCu.js +2 -0
- package/dist/ui/assets/{jsonMode-D9SbmDW6.js → jsonMode-T4Ss3lDu.js} +1 -1
- package/dist/ui/assets/{kotlin.contribution-B9AYd3Yp.js → kotlin.contribution-DxFbGDYA.js} +1 -1
- package/dist/ui/assets/layouts-2A7QNF6Y-CWQp8HDd.js +1 -0
- package/dist/ui/assets/{less.contribution-DtKQK3HF.js → less.contribution-g9R8XRZf.js} +1 -1
- package/dist/ui/assets/{lua.contribution-DxFFDcBW.js → lua.contribution-YqDsEy8Z.js} +1 -1
- package/dist/ui/assets/{markdown.contribution-B7aCxle-.js → markdown.contribution-DboXnPnx.js} +1 -1
- package/dist/ui/assets/{monaco-BBFILBn6.js → monaco-BdFw56DI.js} +3 -3
- package/dist/ui/assets/{monaco-base-CvsKN-Z-.js → monaco-base-DrP3D13F.js} +1 -1
- package/dist/ui/assets/{monaco-setup-BeHgXlpG.js → monaco-setup-QyF22y9h.js} +1 -1
- package/dist/ui/assets/{monaco.contribution-BBrbIBfd.js → monaco.contribution-BkqIxESv.js} +2 -2
- package/dist/ui/assets/{monaco.contribution-B-c9k_-7.js → monaco.contribution-CMzPFHtO.js} +2 -2
- package/dist/ui/assets/{monaco.contribution-Baa3Cv83.js → monaco.contribution-FA_ESP-W.js} +2 -2
- package/dist/ui/assets/{monaco.contribution-DRZnYNPl.js → monaco.contribution-XEpc63ty.js} +2 -2
- package/dist/ui/assets/{php.contribution-vC08ovbS.js → php.contribution-rnpik0Kk.js} +1 -1
- package/dist/ui/assets/pptx-DZdEoDP9.js +6 -0
- package/dist/ui/assets/{python-CevkXHVb.js → python-CF7X5t9Q.js} +1 -1
- package/dist/ui/assets/python.contribution-CyJGCfSq.js +2 -0
- package/dist/ui/assets/{ruby.contribution-BMZvE4z1.js → ruby.contribution-4ZyPGu2E.js} +1 -1
- package/dist/ui/assets/{rust.contribution-DOWKjtrn.js → rust.contribution-Cl_B3X2G.js} +1 -1
- package/dist/ui/assets/{scss.contribution-BXLJWEv0.js → scss.contribution-BO02gVLZ.js} +1 -1
- package/dist/ui/assets/{shell.contribution-gbqcscnj.js → shell.contribution-Dn9Y0uHs.js} +1 -1
- package/dist/ui/assets/{sql.contribution-DO39C_-u.js → sql.contribution-Bog_5Rc8.js} +1 -1
- package/dist/ui/assets/{swift.contribution-D4Vjb2VA.js → swift.contribution-CfiAr7AX.js} +1 -1
- package/dist/ui/assets/{terminal-monaco-setup-Bb4lnoOq.js → terminal-monaco-setup-B-EnkGiy.js} +1 -1
- package/dist/ui/assets/{tsMode-BAHQHAnm.js → tsMode-B2WuLuPL.js} +1 -1
- package/dist/ui/assets/{typescript-15FhCrR2.js → typescript-Bv_J1tKT.js} +1 -1
- package/dist/ui/assets/typescript.contribution-CM0XQCYi.js +2 -0
- package/dist/ui/assets/xlsx-DDBRN-IU.js +4 -0
- package/dist/ui/assets/{xml-BA1mrkDo.js → xml-DMV-f4tm.js} +1 -1
- package/dist/ui/assets/xml.contribution-QqmOB9gT.js +2 -0
- package/dist/ui/assets/{yaml-CIqCv-ro.js → yaml-Bb6mZXY5.js} +1 -1
- package/dist/ui/assets/yaml.contribution-DCDnWhHR.js +2 -0
- package/dist/ui/index.html +11 -11
- package/package.json +13 -13
- package/dist/ui/assets/chunk-ILCJ3WFD-fHFoZ9wm.js +0 -4
- package/dist/ui/assets/chunk-S5PCVMKU-DopU3Q9j.js +0 -6
- package/dist/ui/assets/dist-DB6xxrlD.js +0 -2
- package/dist/ui/assets/dist-DucbO86I.js +0 -222
- package/dist/ui/assets/docx-IZY6hX8A.js +0 -2
- package/dist/ui/assets/extract-UTAOG7LV-BZ_L7lLL.js +0 -1
- package/dist/ui/assets/handlebars.contribution-vZslMuRE.js +0 -2
- package/dist/ui/assets/html.contribution-B1GzaEV-.js +0 -2
- package/dist/ui/assets/index-Ch0qGtVJ.css +0 -1
- package/dist/ui/assets/infer-v-bCXeT9.js +0 -2
- package/dist/ui/assets/javascript.contribution-D6DhUpPP.js +0 -2
- package/dist/ui/assets/layouts-2A7QNF6Y-D94iKLLQ.js +0 -1
- package/dist/ui/assets/pptx-CsdVR0xn.js +0 -6
- package/dist/ui/assets/python.contribution-C6TUOYNZ.js +0 -2
- package/dist/ui/assets/typescript.contribution-D30L44Mw.js +0 -2
- package/dist/ui/assets/xlsx-CdLmEC42.js +0 -4
- package/dist/ui/assets/xml.contribution-CN9NFcUA.js +0 -2
- package/dist/ui/assets/yaml.contribution-BsLB8vrs.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-aKtaBQYM.js";import{B as t,E as n,F as r,H as i,I as a,J as o,L as s,M as c,Q as l,R as u,U as d,V as f,W as p,a as m,at as h,c as g,et as _,i as ee,it as v,k as y,l as te,n as ne,nt as b,o as re,r as ie,rt as x,s as ae,tt as S,u as oe,z as se}from"./chunk-S5PCVMKU-DopU3Q9j.js";import{C}from"./doc-B7NXSLxH.js";import{l as w}from"./chunk-O7JILDEF-CqcO1qaI.js";import{O as T}from"./chunk-GAZKTT4R-BUf32614.js";import{l as ce}from"./markdown-ekej7NJt.js";import"./schemas-Drh23Boe.js";import{a as le,i as ue,n as de,r as fe}from"./chunk-USU6HTKB-B-ElCUQS.js";import"./chunk-7AWFHP5U-MiVVPFTx.js";import{i as pe,n as E,t as D}from"./chunk-JU2RHXUB-CMFDhTux.js";import{a as me,i as O,n as he,r as ge,t as _e}from"./chunk-DWNNYO5H-C9-5Gy65.js";import{t as ve}from"./chunk-ILCJ3WFD-fHFoZ9wm.js";import{t as k}from"./chunk-IIQYS2YH-CPXng8SW.js";import{t as ye}from"./chunk-AONELFLA-Cv2nS9ga.js";var be={Heading1:1,Heading2:2,Heading3:3,Heading4:4,Heading5:5,Heading6:6,heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6,Title:1,Subtitle:2},xe={1:`Heading1`,2:`Heading2`,3:`Heading3`,4:`Heading4`,5:`Heading5`,6:`Heading6`},Se=new Set([`Quote`,`IntenseQuote`,`quote`,`BlockQuote`]),Ce=new Set([`Code`,`CodeBlock`,`HTMLCode`,`PlainText`]),we=new Set([`CodeChar`,`HTMLCodeChar`,`VerbatimChar`]),Te=new Set([`bullet`,`none`]),Ee=`Calibri`,De=`Calibri Light`,A=22,j=`Consolas`,M=20,Oe={1:32,2:26,3:24,4:22,5:22,6:22},ke=`0563C1`;function Ae(e){return Math.round(e*20)}async function je(e,t={}){t.signal?.throwIfAborted();let n=t.themeId===void 0?{...t,themeId:w(e.frontmatter)}:t,r=new Ne(n,e),i=Me(e.children);r.setRelationshipSource(`document`);let a=N(i.body,r);r.setRelationshipSource(`header`);let o=N(i.header,r);r.setRelationshipSource(`footer`);let s=N(i.footer,r);return r.setRelationshipSource(`document`),it(a,o,s,r,n)}function Me(e){let t={body:[],header:[],footer:[]};for(let n of e)n.type===`containerDirective`&&n.name===`docx-header`?t.header.push(...n.children):n.type===`containerDirective`&&n.name===`docx-footer`?t.footer.push(...n.children):t.body.push(n);return t}var Ne=class{constructor(e,t){this.relIds=new _e,this.nextNumId=1,this.nextFootnoteId=1,this.relationships=[],this.relationshipSource=`document`,this.numberingDefs=[],this.footnotes=new Map,this.footnoteIdMap=new Map,this.images=[],this.hasLists=!1,this.hasFootnotes=!1,this.iconFamilies=new Set,this.nextDocPrId=1;let n,r,i,a,o,s;if(e.themeId){let c=C(t,e.themeId,e.themeRegistry);n=Fe(T(c.typography?.bodyFont,``)),r=Fe(T(c.typography?.titleFont,``)),i=O(c.colors?.primary),a=O(c.colors?.text),o=O(c.colors?.textMuted),s=O(c.colors?.background)}this.font=e.defaultFont??n??Ee,this.headingFont=r??this.font,this.fontSize=e.defaultFontSize?e.defaultFontSize*2:A,this.headingColor=i,this.bodyColor=a,this.mutedColor=o,this.backgroundColor=s,this.resolvedImages=e.images??new Map,this.allowRelativeHyperlinks=e.allowRelativeHyperlinks??!1,this.signal=e.signal}allocRelId(){return this.allocRelIdFor(this.relationshipSource)}allocRelIdFor(e){return this.relIds.alloc(Pe(e))}setRelationshipSource(e){this.relationshipSource=e}addHyperlink(e){let n=me(e,{allowRelative:this.allowRelativeHyperlinks});if(!n)return null;let r=this.allocRelId();return this.relationships.push({id:r,type:t,target:n,targetMode:`External`,source:this.relationshipSource}),r}addImage(e,t,n){let r=this.allocRelId(),i=this.nextDocPrId++,a=`word/media/${n}`;return this.images.push({relId:r,path:a,data:e,contentType:t}),this.relationships.push({id:r,type:f,target:`media/${n}`,source:this.relationshipSource}),{relId:r,docPrId:i}}allocNumbering(e){let t=this.nextNumId++;return this.numberingDefs.push({numId:t,ordered:e}),this.hasLists=!0,t}getFootnoteId(e){let t=this.footnoteIdMap.get(e);return t===void 0&&(t=this.nextFootnoteId++,this.footnoteIdMap.set(e,t),this.hasFootnotes=!0),t}};function Pe(e){return e===`header`?`word/header1.xml`:e===`footer`?`word/footer1.xml`:`word/document.xml`}function Fe(e){if(!e)return``;let t=new Set([`sans-serif`,`serif`,`monospace`,`system-ui`,`cursive`,`fantasy`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`inherit`,`initial`]);for(let n of e.split(`,`)){let e=n.trim().replace(/^["']|["']$/g,``);if(e&&!t.has(e.toLowerCase()))return e}return``}function N(e,t){let n=[];for(let r=0;r<e.length;r++){r&255||t.signal?.throwIfAborted();let i=e[r];n.push(P(i,t,0))}return n.join(``)}function P(e,t,n){switch(e.type){case`heading`:return Ie(e,t);case`paragraph`:return Le(e,t);case`blockquote`:return Re(e,t);case`list`:return ze(e,t,n);case`code`:return Ve(e);case`table`:return He(e,t);case`thematicBreak`:return Ge();case`htmlBlock`:return Ke(e);case`math`:return qe(e);case`footnoteDefinition`:return Je(e,t);case`containerDirective`:return N(e.children,t);default:return``}}function Ie(e,t){let n=xe[e.depth]??`Heading1`,r=I(e.children,t);return`<w:p><w:pPr><w:pStyle w:val="${n}"/></w:pPr>`+r+`</w:p>`}function Le(e,t){return`<w:p>${I(e.children,t,F(t))}</w:p>`}function F(e){return e.bodyColor?{color:e.bodyColor}:{}}function Re(e,t){let n=[];for(let r of e.children)if(r.type===`paragraph`){let e=t.mutedColor?{color:t.mutedColor}:F(t),i=I(r.children,t,e);n.push(`<w:p><w:pPr><w:pStyle w:val="Quote"/><w:ind w:left="${Ae(36)}"/><w:pBdr><w:left w:val="single" w:sz="12" w:space="4" w:color="CCCCCC"/></w:pBdr></w:pPr>`+i+`</w:p>`)}else n.push(P(r,t,0));return n.join(``)}function ze(e,t,n){let r=t.allocNumbering(e.ordered??!1),i=[];for(let a of e.children)i.push(Be(a,t,r,n));return i.join(``)}function Be(e,t,n,r){let i=[];for(let a of e.children)if(a.type===`paragraph`){let e=I(a.children,t,F(t));i.push(`<w:p><w:pPr><w:pStyle w:val="ListParagraph"/><w:numPr><w:ilvl w:val="${r}"/><w:numId w:val="${n}"/></w:numPr></w:pPr>`+e+`</w:p>`)}else a.type===`list`?i.push(ze(a,t,r+1)):i.push(P(a,t,r));return i.join(``)}function Ve(e){let t=e.value.split(`
|
|
2
|
-
`),n=[];for(let e of t)n.push(`<w:p><w:pPr><w:pStyle w:val="Code"/><w:pBdr><w:top w:val="single" w:sz="4" w:space="1" w:color="CCCCCC"/><w:left w:val="single" w:sz="4" w:space="4" w:color="CCCCCC"/><w:bottom w:val="single" w:sz="4" w:space="1" w:color="CCCCCC"/><w:right w:val="single" w:sz="4" w:space="4" w:color="CCCCCC"/></w:pBdr><w:shd w:val="clear" w:color="auto" w:fill="F5F5F5"/></w:pPr><w:r><w:rPr><w:rFonts w:ascii="${j}" w:hAnsi="${j}"/><w:sz w:val="${M}"/></w:rPr><w:t xml:space="preserve">${D(e)}</w:t></w:r></w:p>`);return n.join(``)}function He(e,t){let n=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];n.push(Ue(i,t,r===0,e.align))}return`<w:tbl><w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="0" w:type="auto"/><w:tblBorders><w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/></w:tblBorders></w:tblPr><w:tblGrid/>`+n.join(``)+`</w:tbl>`}function Ue(e,t,n,r){let i=[];for(let a=0;a<e.children.length;a++){let o=e.children[a],s=r?.[a]??null;i.push(We(o,t,n,s))}return`<w:tr>${n?`<w:trPr><w:tblHeader/></w:trPr>`:``}${i.join(``)}</w:tr>`}function We(e,t,n,r){let i=I(e.children,t,F(t)),a=n?`<w:rPr><w:b/></w:rPr>`:``,o=r?`<w:jc w:val="${{left:`left`,center:`center`,right:`right`}[r]}"/>`:``;return`<w:tc><w:p>${a||o?`<w:pPr>${o}</w:pPr>`:``}${i}</w:p></w:tc>`}function Ge(){return`<w:p><w:pPr><w:pBdr><w:bottom w:val="single" w:sz="6" w:space="1" w:color="auto"/></w:pBdr></w:pPr></w:p>`}function Ke(e){let t=pe(e.rawHtml);return t.trim()?`<w:p><w:r><w:t xml:space="preserve">${D(t)}</w:t></w:r></w:p>`:``}function qe(e){return`<w:p><w:pPr><w:jc w:val="center"/></w:pPr><w:r><w:rPr><w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math"/><w:i/></w:rPr><w:t xml:space="preserve">${D(e.value)}</w:t></w:r></w:p>`}function Je(e,t){let n=t.getFootnoteId(e.identifier),r=[];for(let n of e.children)if(n.type===`paragraph`){let e=I(n.children,t,F(t));r.push(`<w:p>${e}</w:p>`)}let i=`<w:footnote w:id="${n}">`+(r.length>0?r.join(``):`<w:p/>`)+`</w:footnote>`;return t.footnotes.set(n,i),``}function Ye(e){return{run:(e,t)=>L(e,t),link:(t,n)=>Qe(t,e,n),image:t=>tt(t,e),icon:(t,n)=>Ze(t,n,e),lineBreak:()=>`<w:r><w:br/></w:r>`,footnoteRef:t=>rt(t,e)}}function I(e,t,n={}){return ge(e,Ye(t),n)}function Xe(e,t,n){return he(e,Ye(t),n)}function L(e,t){if(!e)return``;let n=[];return t.code&&n.push(`<w:rFonts w:ascii="${j}" w:hAnsi="${j}"/>`),t.bold&&n.push(`<w:b/>`),t.italic&&n.push(`<w:i/>`),t.strike&&n.push(`<w:strike/>`),t.color&&n.push(`<w:color w:val="${t.color}"/>`),t.code&&n.push(`<w:sz w:val="${M}"/>`),`<w:r>${n.length>0?`<w:rPr>${n.join(``)}</w:rPr>`:``}<w:t xml:space="preserve">${D(e)}</w:t></w:r>`}function Ze(e,t,n){let r=ue(e.family,e.name);if(!r)return L(`{[${e.token}]}`,t);let i=de(e.family);n.iconFamilies.add(e.family);let a=D(i.typeface),o=[`<w:rFonts w:ascii="${a}" w:hAnsi="${a}" w:eastAsia="${a}" w:cs="${a}"/>`];return t.strike&&o.push(`<w:strike/>`),t.color&&o.push(`<w:color w:val="${t.color}"/>`),`<w:r><w:rPr>${o.join(``)}</w:rPr><w:t xml:space="preserve">${D(r)}</w:t></w:r>`}function Qe(e,t,n){let r=t.addHyperlink(e.url);return r?`<w:hyperlink r:id="${r}">${$e(e.children,t,n)}</w:hyperlink>`:I(e.children,t,n)}function $e(e,t,n){let r=[];for(let i of e)i.type===`text`?r.push(et(i.value,n)):r.push(Xe(i,t,n));return r.join(``)}function et(e,t){if(!e)return``;let n=[`<w:rStyle w:val="Hyperlink"/>`];return t.bold&&n.push(`<w:b/>`),t.italic&&n.push(`<w:i/>`),n.push(`<w:color w:val="${ke}"/>`,`<w:u w:val="single"/>`),`<w:r><w:rPr>${n.join(``)}</w:rPr><w:t xml:space="preserve">${D(e)}</w:t></w:r>`}function tt(e,t){let n=t.resolvedImages.get(e.url);if(!n)return L(`[Image: ${e.alt||e.url}]`,{italic:!0});let{data:r,contentType:i}=n,a=i.split(`/`)[1]?.replace(`jpeg`,`jpg`)||`png`,o=`image${t.images.length+1}.${a}`,{relId:s,docPrId:c}=t.addImage(r,i,o),l=nt(r),u=914400,d=6*u,f,p;if(l){let e=l.width/96*u,t=l.height/96*u;if(e>d){let n=d/e;f=d,p=Math.round(t*n)}else f=Math.round(e),p=Math.round(t)}else f=5*u,p=3*u;let m=D(e.alt||o),h=`http://schemas.openxmlformats.org/drawingml/2006/main`,g=`http://schemas.openxmlformats.org/drawingml/2006/picture`;return`<w:r><w:drawing><wp:inline distT="0" distB="0" distL="0" distR="0"><wp:extent cx="${f}" cy="${p}"/><wp:docPr id="${c}" name="${m}"/><wp:cNvGraphicFramePr><a:graphicFrameLocks xmlns:a="${h}" noChangeAspect="1"/></wp:cNvGraphicFramePr><a:graphic xmlns:a="${h}"><a:graphicData uri="${g}"><pic:pic xmlns:pic="${g}"><pic:nvPicPr><pic:cNvPr id="0" name="${m}"/><pic:cNvPicPr/></pic:nvPicPr><pic:blipFill><a:blip r:embed="${s}"/><a:stretch><a:fillRect/></a:stretch></pic:blipFill><pic:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="${f}" cy="${p}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></pic:spPr></pic:pic></a:graphicData></a:graphic></wp:inline></w:drawing></w:r>`}function nt(e){let t=e instanceof Uint8Array?e:new Uint8Array(e);if(t.length<24)return null;if(t[0]===137&&t[1]===80&&t[2]===78&&t[3]===71)return{width:t[16]<<24|t[17]<<16|t[18]<<8|t[19],height:t[20]<<24|t[21]<<16|t[22]<<8|t[23]};if(t[0]===255&&t[1]===216){let e=2;for(;e<t.length-9&&t[e]===255;){let n=t[e+1];if(n===192||n===194){let n=t[e+5]<<8|t[e+6];return{width:t[e+7]<<8|t[e+8],height:n}}let r=t[e+2]<<8|t[e+3];e+=2+r}}return t[0]===71&&t[1]===73&&t[2]===70?{width:t[6]|t[7]<<8,height:t[8]|t[9]<<8}:null}function rt(e,t){return`<w:r><w:rPr><w:rStyle w:val="FootnoteReference"/><w:vertAlign w:val="superscript"/></w:rPr><w:footnoteReference w:id="${t.getFootnoteId(e.identifier)}"/></w:r>`}async function it(e,t,n,c,l){let f=ve(),h=fe(c.iconFamilies),_=t.trim().length>0,v=n.trim().length>0,y=c.allocRelIdFor(`document`),b=c.allocRelIdFor(`document`),x=c.allocRelIdFor(`document`),S=c.hasLists?c.allocRelIdFor(`document`):void 0,C=c.hasFootnotes?c.allocRelIdFor(`document`):void 0,w=_?c.allocRelIdFor(`document`):void 0,T=v?c.allocRelIdFor(`document`):void 0,ce=at(e,c.backgroundColor,w,T);f.addPart(`word/document.xml`,ce,ne),_&&f.addPart(`word/header1.xml`,ot(`header`,t),re),v&&f.addPart(`word/footer1.xml`,ot(`footer`,n),ee);let ue=st(l,c);f.addPart(`word/styles.xml`,ue,oe);let de=lt(c.backgroundColor!==void 0);f.addPart(`word/settings.xml`,de,te);let pe=ut(l,h);f.addPart(`word/fontTable.xml`,pe,ie);for(let e=0;e<h.length;e++){let t=h[e],n=`${t.fileStem}.odttf`;f.addBinaryPart(`word/fonts/${n}`,le(t),g),f.addRelationship(`word/fontTable.xml`,{id:`rId${e+1}`,type:r,target:`fonts/${n}`})}if(c.hasLists){let e=dt(c);f.addPart(`word/numbering.xml`,e,ae)}if(c.hasFootnotes){let e=ft(c);f.addPart(`word/footnotes.xml`,e,m)}f.addRelationship(``,{id:`rId1`,type:d,target:`word/document.xml`}),f.addRelationship(`word/document.xml`,{id:y,type:o,target:`styles.xml`}),f.addRelationship(`word/document.xml`,{id:b,type:p,target:`settings.xml`}),f.addRelationship(`word/document.xml`,{id:x,type:a,target:`fontTable.xml`}),S&&f.addRelationship(`word/document.xml`,{id:S,type:i,target:`numbering.xml`}),C&&f.addRelationship(`word/document.xml`,{id:C,type:u,target:`footnotes.xml`}),w&&f.addRelationship(`word/document.xml`,{id:w,type:se,target:`header1.xml`}),T&&f.addRelationship(`word/document.xml`,{id:T,type:s,target:`footer1.xml`});for(let e of c.relationships)f.addRelationship(Pe(e.source),{id:e.id,type:e.type,target:e.target,...e.targetMode?{targetMode:e.targetMode}:{}});for(let e of c.images)f.addBinaryPart(e.path,e.data,e.contentType);return(l.title||l.author||l.description)&&f.setCoreProperties({title:l.title,creator:l.author,description:l.description,created:new Date().toISOString(),modified:new Date().toISOString()}),f.toArrayBuffer()}function at(e,t,r,i){let a=t?`<w:background w:color="${t}"/>`:``,o=(r?`<w:headerReference w:type="default" r:id="${r}"/>`:``)+(i?`<w:footerReference w:type="default" r:id="${i}"/>`:``);return E()+`<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="${n}" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="${y}" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="${c}" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">`+a+`<w:body>`+e+`<w:sectPr>`+o+`<w:pgSz w:w="12240" w:h="15840"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/><w:cols w:space="720"/></w:sectPr></w:body></w:document>`}function ot(e,t){let n=e===`header`?`hdr`:`ftr`;return E()+`<w:${n} xmlns:w="${c}" xmlns:r="${y}" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">`+t+`</w:${n}>`}function st(e,t){let n=t.font,r=t.headingFont,i=t.bodyColor?`<w:color w:val="${t.bodyColor}"/>`:``,a=t.mutedColor??`404040`;return E()+`<w:styles xmlns:w="${c}"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii="${D(n)}" w:hAnsi="${D(n)}" w:eastAsia="${D(n)}" w:cs="${D(n)}"/>`+i+`<w:sz w:val="${A}"/><w:szCs w:val="${A}"/></w:rPr></w:rPrDefault><w:pPrDefault/></w:docDefaults><w:style w:type="paragraph" w:default="1" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/>`+(i?`<w:rPr>${i}</w:rPr>`:``)+`</w:style>`+ct(r,t.headingColor)+`<w:style w:type="paragraph" w:styleId="Quote"><w:name w:val="Quote"/><w:basedOn w:val="Normal"/><w:pPr><w:ind w:left="720"/></w:pPr><w:rPr><w:i/><w:color w:val="${a}"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Code"><w:name w:val="Code"/><w:basedOn w:val="Normal"/><w:rPr><w:rFonts w:ascii="${j}" w:hAnsi="${j}"/><w:sz w:val="${M}"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="ListParagraph"><w:name w:val="List Paragraph"/><w:basedOn w:val="Normal"/><w:pPr><w:ind w:left="720"/></w:pPr></w:style><w:style w:type="character" w:styleId="Hyperlink"><w:name w:val="Hyperlink"/><w:rPr><w:color w:val="${ke}"/><w:u w:val="single"/></w:rPr></w:style><w:style w:type="character" w:styleId="FootnoteReference"><w:name w:val="footnote reference"/><w:rPr><w:vertAlign w:val="superscript"/></w:rPr></w:style><w:style w:type="table" w:styleId="TableGrid"><w:name w:val="Table Grid"/><w:tblPr><w:tblBorders><w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/></w:tblBorders></w:tblPr></w:style></w:styles>`}function ct(e,t){let n=``;for(let r=1;r<=6;r++){let i=xe[r],a=Oe[r]??22,o=t?`<w:color w:val="${t}"/>`:``;n+=`<w:style w:type="paragraph" w:styleId="${i}"><w:name w:val="heading ${r}"/><w:basedOn w:val="Normal"/><w:next w:val="Normal"/><w:qFormat/><w:pPr><w:outlineLvl w:val="${r-1}"/><w:spacing w:before="240" w:after="60"/></w:pPr><w:rPr><w:rFonts w:ascii="${D(e)}" w:hAnsi="${D(e)}"/><w:b/>`+o+`<w:sz w:val="${a}"/><w:szCs w:val="${a}"/></w:rPr></w:style>`}return n}function lt(e){return E()+`<w:settings xmlns:w="${c}">`+(e?`<w:displayBackgroundShape/>`:``)+`<w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/></w:compat></w:settings>`}function ut(e,t){let n=e.defaultFont??Ee,r=t.map((e,t)=>`<w:font w:name="${D(e.typeface)}"><w:charset w:val="00"/><w:family w:val="decorative"/><w:pitch w:val="variable"/><w:embedRegular r:id="rId${t+1}" w:fontKey="{${e.docxFontKey}}"/></w:font>`).join(``);return E()+`<w:fonts xmlns:w="${c}" xmlns:r="${y}"><w:font w:name="${D(n)}"><w:panose1 w:val="020F0502020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/></w:font><w:font w:name="${De}"><w:panose1 w:val="020F0302020204030204"/><w:charset w:val="00"/><w:family w:val="swiss"/><w:pitch w:val="variable"/></w:font><w:font w:name="${j}"><w:charset w:val="00"/><w:family w:val="modern"/><w:pitch w:val="fixed"/></w:font>`+r+`</w:fonts>`}function dt(e){let t=[],n=[];for(let r of e.numberingDefs){let e=r.numId,i=[];for(let e=0;e<9;e++)if(r.ordered)i.push(`<w:lvl w:ilvl="${e}"><w:start w:val="1"/><w:numFmt w:val="decimal"/><w:lvlText w:val="%${e+1}."/><w:lvlJc w:val="left"/><w:pPr><w:ind w:left="${720*(e+1)}" w:hanging="360"/></w:pPr></w:lvl>`);else{let t=[`•`,`◦`,`▪`],n=t[e%t.length];i.push(`<w:lvl w:ilvl="${e}"><w:start w:val="1"/><w:numFmt w:val="bullet"/><w:lvlText w:val="${n}"/><w:lvlJc w:val="left"/><w:pPr><w:ind w:left="${720*(e+1)}" w:hanging="360"/></w:pPr></w:lvl>`)}t.push(`<w:abstractNum w:abstractNumId="${e}">`+i.join(``)+`</w:abstractNum>`),n.push(`<w:num w:numId="${r.numId}"><w:abstractNumId w:val="${e}"/></w:num>`)}return E()+`<w:numbering xmlns:w="${c}">`+t.join(``)+n.join(``)+`</w:numbering>`}function ft(e){let t=[];t.push(`<w:footnote w:type="separator" w:id="-1"><w:p><w:r><w:separator/></w:r></w:p></w:footnote>`),t.push(`<w:footnote w:type="continuationSeparator" w:id="0"><w:p><w:r><w:continuationSeparator/></w:r></w:p></w:footnote>`);for(let[n,r]of e.footnotes)t.push(r);return E()+`<w:footnotes xmlns:w="${c}" xmlns:r="${y}">`+t.join(``)+`</w:footnotes>`}var R=`word/document.xml`;async function pt(e,t={}){let n=await x(e,t),r=v(n,R,`DOCX`),i=await ht(n,t,r),a=await b(n,r);if(!a)throw Error(`Invalid DOCX package: main document part "${r}" could not be parsed.`);let o=Lt(a,`body`);return o?{type:`document`,children:await bt(o,i)}:{type:`document`,children:[]}}async function mt(e,t={}){let n=await x(e,t),r=v(n,R,`DOCX`),i=await ht(n,{...t,extractImages:!0},r),a=await b(n,r);if(!a)throw Error(`Invalid DOCX package: main document part "${r}" could not be parsed.`);let o=Lt(a,`body`);return o?k(ce({type:`document`,children:await bt(o,i)}),i.extractedImages):k(``,[])}async function ht(e,t,n=R){let r={headingStyles:new Map,quoteStyles:new Set,codeStyles:new Set,inlineCodeStyles:new Set,documentRels:new Map,numbering:new Map,footnotes:new Map,endnotes:new Map,currentPartPath:n,mainPartPath:n,pkg:e,options:t,extractedImages:new Map,imageCounter:0};for(let[e,t]of Object.entries(be))r.headingStyles.set(e,t);for(let e of Se)r.quoteStyles.add(e);for(let e of Ce)r.codeStyles.add(e);for(let e of we)r.inlineCodeStyles.add(e);await gt(e,r);let i=await S(e,n);for(let e of i)r.documentRels.set(e.id,e);return await _t(e,r),await vt(e,r),await yt(e,r),r}async function gt(e,t){let n=await b(e,`word/styles.xml`);if(!n)return;let r=n.getElementsByTagNameNS(c,`style`),i=r.length>0?r:n.getElementsByTagName(`style`);for(let e=0;e<i.length;e++){let n=i[e],r=n.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`styleId`)??n.getAttribute(`w:styleId`);if(!r)continue;let a=J(n,`name`),o=(a?.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`val`)??a?.getAttribute(`w:val`)??``).match(/^heading\s+(\d+)$/i);if(o){let e=parseInt(o[1],10);e>=1&&e<=6&&t.headingStyles.set(r,e)}let s=J(n,`pPr`);if(s){let e=J(s,`outlineLvl`);if(e){let n=e.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`val`)??e.getAttribute(`w:val`);if(n!==null){let e=parseInt(n,10)+1;e>=1&&e<=6&&t.headingStyles.set(r,e)}}}}}async function _t(e,t){let n=await b(e,`word/numbering.xml`);if(!n)return;let r=new Map,i=X(n,`abstractNum`);for(let e of i){let t=Z(e,`abstractNumId`);if(!t)continue;let n=new Map,i=Y(e,`lvl`);for(let e of i){let t=Z(e,`ilvl`);if(t===null)continue;let r=parseInt(t,10),i=J(e,`numFmt`),a=i?Z(i,`val`):null,o=a!==null&&!Te.has(a);n.set(r,o)}r.set(t,n)}let a=X(n,`num`);for(let e of a){let n=Z(e,`numId`);if(!n)continue;let i=J(e,`abstractNumId`),a=i?Z(i,`val`):null;if(!a)continue;let o=r.get(a);o&&t.numbering.set(n,{levels:o})}}async function vt(e,t){let n=await b(e,`word/footnotes.xml`);if(!n)return;let r=X(n,`footnote`);for(let e of r){let n=Z(e,`id`),r=Z(e,`type`);!n||r===`separator`||r===`continuationSeparator`||t.footnotes.set(n,e)}}async function yt(e,t){let n=await b(e,`word/endnotes.xml`);if(!n)return;let r=X(n,`endnote`);for(let e of r){let n=Z(e,`id`),r=Z(e,`type`);!n||r===`separator`||r===`continuationSeparator`||t.endnotes.set(n,e)}}async function bt(e,t){let n=await z(e,t),r=await xt(e,t,`header`),i=await xt(e,t,`footer`),a=await Ft(t);return[...n,...r,...i,...a]}async function xt(e,t,n){let r=`/${n}`,i=`${n}Reference`,a=new Map;for(let t of X(e,i)){let e=t.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`id`)??t.getAttribute(`r:id`);e&&a.set(e,Z(t,`type`)??`default`)}let o=t.documentRels,s=t.currentPartPath,c=[];for(let e of o.values()){if(!e.type.endsWith(r))continue;let i=h(l(t.mainPartPath),e.target),u=await b(t.pkg,i);if(!u?.documentElement)continue;let d=await S(t.pkg,i);t.documentRels=new Map(d.map(e=>[e.id,e])),t.currentPartPath=i;try{let r=await z(u.documentElement,t);if(r.length===0)continue;c.push({type:`containerDirective`,name:`docx-${n}`,attributes:{type:a.get(e.id)??`default`,source:i},children:r})}finally{t.documentRels=o,t.currentPartPath=s}}return c}async function z(e,t){return B(Array.from(e.children),t)}async function B(e,t){let n=[],r=0;for(;r<e.length;){let i=e[r],a=i.localName;if(a===`p`){if(q(i)){let{node:i,consumed:a}=await At(e,r,t);n.push(i),r+=a;continue}let a=await St(i,t);a&&n.push(a),r++}else if(a===`tbl`){let e=await Mt(i,t);e&&n.push(e),r++}else if(a===`sdt`){let e=J(i,`sdtContent`);e&&n.push(...await B(Array.from(e.children),t)),r++}else if(a===`ins`||a===`moveTo`||a===`customXml`||a===`smartTag`||a===`fldSimple`)n.push(...await B(Array.from(i.children),t)),r++;else if(a===`AlternateContent`){let e=J(i,`Choice`)??J(i,`Fallback`);e&&n.push(...await B(Array.from(e.children),t)),r++}else r++}return n}async function St(e,t){let n=Rt(J(e,`pPr`));if(n&&t.headingStyles.has(n)){let r=t.headingStyles.get(n),i=await V(e,t);return i.length===0?null:{type:`heading`,depth:Math.min(Math.max(r,1),6),children:i}}if(n&&t.quoteStyles.has(n)){let n=await V(e,t);return n.length===0?null:{type:`blockquote`,children:[{type:`paragraph`,children:n}]}}if(n&&t.codeStyles.has(n))return{type:`code`,value:zt(e)};let r=await V(e,t);return r.length===0?null:{type:`paragraph`,children:r}}async function V(e,t){return $(await H(Array.from(e.children),t))}async function H(e,t){let n=[];for(let r of e){let e=r.localName;if(e===`r`){let e=await Ct(r,t);n.push(...e)}else if(e===`hyperlink`){let e=await Dt(r,t);e&&n.push(e)}else if(e===`sdt`){let e=J(r,`sdtContent`);e&&n.push(...await H(Array.from(e.children),t))}else if(e===`ins`||e===`moveTo`||e===`customXml`||e===`smartTag`||e===`fldSimple`)n.push(...await H(Array.from(r.children),t));else if(e===`AlternateContent`){let e=J(r,`Choice`)??J(r,`Fallback`);e&&n.push(...await H(Array.from(e.children),t))}else(e===`drawing`||e===`pict`)&&n.push(...await wt(r,t))}return n}async function Ct(e,t){let n=[],r=Et(J(e,`rPr`),t);for(let i of Array.from(e.children)){let e=i.localName;if(e===`t`){let e=i.textContent??``;if(!e)continue;if(r.code)n.push({type:`inlineCode`,value:e});else{let t={type:`text`,value:e};r.strike&&(t={type:`delete`,children:[t]}),r.italic&&(t={type:`emphasis`,children:[t]}),r.bold&&(t={type:`strong`,children:[t]}),n.push(t)}}else if(e===`br`||e===`cr`)n.push({type:`break`});else if(e===`tab`)n.push({type:`text`,value:` `});else if(e===`footnoteReference`){let e=Z(i,`id`);e&&e!==`0`&&e!==`-1`&&n.push({type:`footnoteReference`,identifier:`fn${e}`})}else if(e===`endnoteReference`){let e=Z(i,`id`);e&&e!==`0`&&e!==`-1`&&n.push({type:`footnoteReference`,identifier:`endnote${e}`})}else if(e===`drawing`||e===`pict`||e===`object`)n.push(...await wt(i,t));else if(e===`AlternateContent`){let e=J(i,`Choice`)??J(i,`Fallback`);e&&n.push(...await H(Array.from(e.children),t))}}return n}async function wt(e,t){let n=[],r=kt(e,`txbxContent`);for(let e of r)W(n,await U(e,t));let i=await Ot(e,t);return i&&n.push(i),r.length>0&&n.length>0&&(n[0]?.type!==`break`&&n.unshift({type:`break`}),n[n.length-1]?.type!==`break`&&n.push({type:`break`})),n}async function U(e,t){let n=[];for(let r of Array.from(e.children))if(r.localName===`p`)W(n,await V(r,t));else if(r.localName===`tbl`)W(n,await Tt(r,t));else if(r.localName===`sdt`){let e=J(r,`sdtContent`);e&&W(n,await U(e,t))}else if(r.localName===`ins`||r.localName===`moveTo`||r.localName===`customXml`||r.localName===`smartTag`||r.localName===`fldSimple`)W(n,await U(r,t));else if(r.localName===`AlternateContent`){let e=J(r,`Choice`)??J(r,`Fallback`);e&&W(n,await U(e,t))}else(r.localName===`r`||r.localName===`hyperlink`)&&W(n,await H([r],t));return $(n)}async function Tt(e,t){let n=[];for(let r of Y(e,`tr`))for(let e of Y(r,`tc`))W(n,await U(e,t));return $(n)}function W(e,t){t.length!==0&&(e.length>0&&e[e.length-1]?.type!==`break`&&e.push({type:`break`}),e.push(...t))}function Et(e,t){if(!e)return{bold:!1,italic:!1,strike:!1,code:!1};let n=Q(e,`b`)&&!G(J(e,`b`)),r=Q(e,`i`)&&!G(J(e,`i`)),i=Q(e,`strike`)&&!G(J(e,`strike`)),a=J(e,`rStyle`),o=a?Z(a,`val`):null,s=o?t.inlineCodeStyles.has(o):!1,c=J(e,`rFonts`),l=c?Z(c,`ascii`)??Z(c,`hAnsi`)??``:``,u=/consolas|courier|mono/i.test(l);return{bold:n,italic:r,strike:i,code:s||u}}function G(e){let t=Z(e,`val`);return t===`0`||t===`false`}async function Dt(e,t){let n=e.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`id`)??e.getAttribute(`r:id`),r=``;if(n){let e=t.documentRels.get(n);e&&(r=e.target)}if(!r){let t=e.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,`anchor`)??e.getAttribute(`w:anchor`);t&&(r=`#${t}`)}let i=await H(Array.from(e.children),t);return i.length===0?null:{type:`link`,url:r,children:$(i)}}async function Ot(e,t){let n=K(e,`blip`),r=K(e,`imagedata`),i=n?n.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`embed`)??n.getAttribute(`r:embed`):r?.getAttributeNS(`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,`id`)??r?.getAttribute(`r:id`)??r?.getAttribute(`o:relid`);if(!i)return null;let a=t.documentRels.get(i);if(!a||a.targetMode===`External`)return null;let o=h(l(t.currentPartPath),a.target),s=await _(t.pkg,o);if(!s)return null;let c=o.lastIndexOf(`.`),u=c===-1?`.png`:o.slice(c).toLowerCase(),d=ye(u);t.imageCounter++;let f=`images/image${t.imageCounter}${u}`;t.extractedImages.set(f,{data:s,mimeType:d});let p=K(e,`docPr`),m=K(e,`shape`);return{type:`image`,url:f,alt:p?.getAttribute(`descr`)||p?.getAttribute(`title`)||m?.getAttribute(`alt`)||m?.getAttribute(`title`)||`Image`}}function K(e,t){for(let n of Array.from(e.children)){if(n.localName===t)return n;let e=K(n,t);if(e)return e}return null}function kt(e,t){let n=[];for(let r of Array.from(e.children))r.localName===t&&n.push(r),n.push(...kt(r,t));return n}async function At(e,t,n){let r=q(e[t]),{numId:i}=r,a=n.numbering.get(i),o=a?.levels.get(0)??!1,s=[],c=0,l=t;for(;l<e.length;){let t=e[l];if(t.localName!==`p`)break;let o=q(t);if(!o||o.numId!==i)break;let u=await V(t,n);if(u.length>0){let t={type:`paragraph`,children:u};if(o.ilvl>r.ilvl){let t=await jt(e,l,n,r.ilvl);if(s.length>0){let e=s[s.length-1],n={type:`list`,ordered:a?.levels.get(o.ilvl)??!1,children:t.items};e.children.push(n)}else s.push(...t.items);l+=t.consumed,c+=t.consumed;continue}s.push({type:`listItem`,children:[t]})}l++,c++}return{node:{type:`list`,ordered:o,children:s},consumed:c}}async function jt(e,t,n,r){let i=[],a=0,o=t;for(;o<e.length;){let t=e[o];if(t.localName!==`p`)break;let s=q(t);if(!s||s.ilvl<=r)break;let c=await V(t,n);if(c.length>0){let e={type:`paragraph`,children:c};i.push({type:`listItem`,children:[e]})}o++,a++}return{items:i,consumed:a}}function q(e){let t=J(e,`pPr`);if(!t)return null;let n=J(t,`numPr`);if(!n)return null;let r=J(n,`ilvl`),i=J(n,`numId`),a=r?Z(r,`val`):null,o=i?Z(i,`val`):null;return!o||o===`0`?null:{numId:o,ilvl:a?parseInt(a,10):0}}async function Mt(e,t){let n=[],r=Y(e,`tr`);for(let e=0;e<r.length;e++){let i=await Nt(r[e],t,e===0);n.push(i)}return n.length===0?null:{type:`table`,children:n}}async function Nt(e,t,n){let r=[],i=Y(e,`tc`);for(let e of i){let i=await Pt(e,t,n);r.push(i)}return{type:`tableRow`,children:r}}async function Pt(e,t,n){return{type:`tableCell`,isHeader:n,children:$(await U(e,t))}}async function Ft(e){return[...await It(e,e.footnotes,`fn`,`word/footnotes.xml`),...await It(e,e.endnotes,`endnote`,`word/endnotes.xml`)]}async function It(e,t,n,r){let i=[],a=e.documentRels,o=e.currentPartPath,s=await S(e.pkg,r);e.documentRels=new Map(s.map(e=>[e.id,e])),e.currentPartPath=r;try{for(let[r,a]of t){let t=await z(a,e);t.length>0&&i.push({type:`footnoteDefinition`,identifier:`${n}${r}`,children:t})}}finally{e.documentRels=a,e.currentPartPath=o}return i}function J(e,t){for(let n of Array.from(e.children??[]))if(n.localName===t)return n;return null}function Y(e,t){let n=[];for(let r of Array.from(e.children))r.localName===t&&n.push(r);return n}function X(e,t){let n=`getElementsByTagNameNS`in e?e.getElementsByTagNameNS(c,t):null;if(n&&n.length>0)return Array.from(n);let r=e.getElementsByTagName(`w:${t}`);return r.length>0?Array.from(r):Array.from(e.getElementsByTagName(t))}function Lt(e,t){let n=X(e,t);return n.length>0?n[0]:null}function Z(e,t){return e.getAttributeNS(`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,t)||e.getAttribute(`w:${t}`)||null}function Q(e,t){return J(e,t)!==null}function Rt(e){if(!e)return null;let t=J(e,`pStyle`);return t?Z(t,`val`):null}function zt(e){let t=[];function n(e){e.localName===`t`&&t.push(e.textContent??``);for(let t of Array.from(e.children))n(t)}return n(e),t.join(``)}function $(e){if(e.length<=1)return e;let t=[];for(let n of e){let e=t[t.length-1];n.type===`text`&&e?.type===`text`?e.value+=n.value:t.push(n)}return t}var Bt=e({docxToContainer:()=>mt,docxToMarkdownDoc:()=>pt,markdownDocToDocx:()=>je});export{je as n,Bt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-S5PCVMKU-DopU3Q9j.js";import"./chunk-7AWFHP5U-MiVVPFTx.js";import{n as e}from"./chunk-WATAOG4Y-BnCgSncI.js";export{e as extractPptxTheme};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/handlebars-B9qcPqjD.js","assets/monaco-BBFILBn6.js","assets/rolldown-runtime-aKtaBQYM.js","assets/preload-helper-Czpn1I53.js","assets/index-CQSh1NUQ.js","assets/dist-DucbO86I.js","assets/dist-DB6xxrlD.js","assets/chunk-S5PCVMKU-DopU3Q9j.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/jszip.min-DhiFe-R7.js","assets/doc-B7NXSLxH.js","assets/chunk-O7JILDEF-CqcO1qaI.js","assets/chunk-BAOV476U-yPHu-ECL.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/chunk-GAZKTT4R-BUf32614.js","assets/chunk-6MVWWZHL-BtFOxGE8.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/markdown-ekej7NJt.js","assets/schemas-Drh23Boe.js","assets/pptx-CsdVR0xn.js","assets/chunk-USU6HTKB-B-ElCUQS.js","assets/chunk-JU2RHXUB-CMFDhTux.js","assets/chunk-DWNNYO5H-C9-5Gy65.js","assets/chunk-ILCJ3WFD-fHFoZ9wm.js","assets/chunk-IIQYS2YH-CPXng8SW.js","assets/storage-DUIC1aL6.js","assets/chunk-AONELFLA-Cv2nS9ga.js","assets/chunk-6RQOV3B3-CwvKotJw.js","assets/chunk-6N2J7C2B-Du7clJkV.js","assets/transform-MBfVXq54.js","assets/container-CKiqsJHV.js","assets/docx-IZY6hX8A.js","assets/html-Cgejr9YM.js","assets/pdf-66KslaXf.js","assets/chunk-KXOZMWBS-BwD4KMLI.js","assets/index-Ch0qGtVJ.css","assets/iconLabel-uMn49Ame.js","assets/iconLabel-Bdh_-Hrb.css","assets/codiconStyles-104B1IQ5.js","assets/codiconStyles-Bp1tMeMk.css","assets/monaco-BBUd89IN.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./preload-helper-Czpn1I53.js";import{t}from"./_.contribution-DESswd3T.js";t({id:`handlebars`,extensions:[`.handlebars`,`.hbs`],aliases:[`Handlebars`,`handlebars`,`hbs`],mimetypes:[`text/x-handlebars-template`],loader:()=>e(()=>import(`./handlebars-B9qcPqjD.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]))});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/html-Fp2jEZ7j.js","assets/monaco-BBFILBn6.js","assets/rolldown-runtime-aKtaBQYM.js","assets/preload-helper-Czpn1I53.js","assets/index-CQSh1NUQ.js","assets/dist-DucbO86I.js","assets/dist-DB6xxrlD.js","assets/chunk-S5PCVMKU-DopU3Q9j.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/jszip.min-DhiFe-R7.js","assets/doc-B7NXSLxH.js","assets/chunk-O7JILDEF-CqcO1qaI.js","assets/chunk-BAOV476U-yPHu-ECL.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/chunk-GAZKTT4R-BUf32614.js","assets/chunk-6MVWWZHL-BtFOxGE8.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/markdown-ekej7NJt.js","assets/schemas-Drh23Boe.js","assets/pptx-CsdVR0xn.js","assets/chunk-USU6HTKB-B-ElCUQS.js","assets/chunk-JU2RHXUB-CMFDhTux.js","assets/chunk-DWNNYO5H-C9-5Gy65.js","assets/chunk-ILCJ3WFD-fHFoZ9wm.js","assets/chunk-IIQYS2YH-CPXng8SW.js","assets/storage-DUIC1aL6.js","assets/chunk-AONELFLA-Cv2nS9ga.js","assets/chunk-6RQOV3B3-CwvKotJw.js","assets/chunk-6N2J7C2B-Du7clJkV.js","assets/transform-MBfVXq54.js","assets/container-CKiqsJHV.js","assets/docx-IZY6hX8A.js","assets/html-Cgejr9YM.js","assets/pdf-66KslaXf.js","assets/chunk-KXOZMWBS-BwD4KMLI.js","assets/index-Ch0qGtVJ.css","assets/iconLabel-uMn49Ame.js","assets/iconLabel-Bdh_-Hrb.css","assets/codiconStyles-104B1IQ5.js","assets/codiconStyles-Bp1tMeMk.css","assets/monaco-BBUd89IN.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./preload-helper-Czpn1I53.js";import{t}from"./_.contribution-DESswd3T.js";t({id:`html`,extensions:[`.html`,`.htm`,`.shtml`,`.xhtml`,`.mdoc`,`.jsp`,`.asp`,`.aspx`,`.jshtm`],aliases:[`HTML`,`htm`,`html`,`xhtml`],mimetypes:[`text/html`,`text/x-jshtm`,`text/template`,`text/ng-template`],loader:()=>e(()=>import(`./html-Fp2jEZ7j.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]))});
|