@docx-editor.dev/core 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +30 -11
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +8 -8
- package/dist/binding.js +1 -1
- package/dist/{chunk-BOGQGMMU.cjs → chunk-3RMHRNDA.cjs} +1 -1
- package/dist/{chunk-6CPYOVRT.cjs → chunk-42N7OV3G.cjs} +1 -1
- package/dist/chunk-47ZJEEBT.js +2 -0
- package/dist/chunk-4B3SXBV6.js +4 -0
- package/dist/chunk-5MWFZ7F4.cjs +11 -0
- package/dist/chunk-AS2OC6J4.cjs +26 -0
- package/dist/{chunk-DF7F7TNU.cjs → chunk-B7SYEMZ7.cjs} +1 -1
- package/dist/{chunk-TBFZZX7Z.cjs → chunk-BME2KUNL.cjs} +1 -1
- package/dist/chunk-CDGVVEUK.js +26 -0
- package/dist/chunk-E4RAPI5J.cjs +2 -0
- package/dist/{chunk-YIBEBHT3.js → chunk-FZJTQPH4.js} +1 -1
- package/dist/chunk-H7XMRUAO.cjs +5 -0
- package/dist/{chunk-KPSGB64S.js → chunk-ILUE2SI5.js} +1 -1
- package/dist/{chunk-G765WG4R.js → chunk-IZT3C23R.js} +1 -1
- package/dist/{chunk-AKF5KM2W.cjs → chunk-KJLPVGSX.cjs} +2 -2
- package/dist/{chunk-W3ZUPQIZ.cjs → chunk-LF5LPZOP.cjs} +13 -13
- package/dist/{chunk-JDAAGZNE.cjs → chunk-MEF2AK5L.cjs} +1 -1
- package/dist/{chunk-SOUJNWXV.js → chunk-N5WE5O5Q.js} +1 -1
- package/dist/{chunk-VPKKYCZI.cjs → chunk-OVDW4XQD.cjs} +1 -1
- package/dist/{chunk-XWXJB4J7.js → chunk-SNN53UPD.js} +1 -1
- package/dist/chunk-V7LBEUVW.js +5 -0
- package/dist/chunk-VE7YBFQD.js +5 -0
- package/dist/chunk-VOVDX7GW.js +18 -0
- package/dist/chunk-VQ33XGNP.cjs +5 -0
- package/dist/{chunk-2LXGB2X7.js → chunk-WVJRO4WY.js} +1 -1
- package/dist/chunk-XUJINXW6.js +1 -0
- package/dist/{chunk-ZSM6X52G.cjs → chunk-Y3TPAITU.cjs} +1 -1
- package/dist/chunk-Z65JJLLF.js +11 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +4 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +2 -2
- package/dist/contracts/editor.d.ts +8 -8
- package/dist/contracts/modules.d.ts +6 -6
- package/dist/contracts/types.d.ts +1 -1
- package/dist/{custom-node-writes-77rvPW2-.d.ts → custom-node-writes-Cy9imOjA.d.ts} +2 -2
- package/dist/{document-protection-CYIjO-li.d.ts → document-protection-Bp19Ad4I.d.ts} +1 -1
- package/dist/{editor-BU6rjQZz.d.ts → editor-DkfCCTxA.d.ts} +145 -9
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +3 -1
- package/dist/editor.d.ts +179 -34
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +12 -12
- package/dist/export.js +1 -1
- package/dist/{font-resolver-CPO7wtg6.d.ts → font-resolver-C295obND.d.ts} +1 -1
- package/dist/{headless-document-view-Cc3fFWhv.d.ts → headless-document-view-R9bzzepb.d.ts} +2 -2
- package/dist/{image-resources-DkuzBnTM.d.ts → image-resources-DfagDguq.d.ts} +1 -1
- package/dist/{index-BOkQYOsZ.d.ts → index-3KAxeSic.d.ts} +333 -308
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-BOOxnLxF.d.ts → layout-shaping-C889tgmj.d.ts} +2 -2
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +19 -19
- package/dist/layout.js +1 -1
- package/dist/{note-properties-DMfKK3QU.d.ts → note-properties-CmfvOJsi.d.ts} +1 -1
- package/dist/{omml-equation-BY7OdfGY.d.ts → omml-equation-CZ6IG2ja.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +7 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-CPAakntQ.d.ts → protocol-BhmenALD.d.ts} +43 -22
- package/dist/{review-paragraph-order-B0BP_wJP.d.ts → review-paragraph-order-BwhRT264.d.ts} +1 -1
- package/dist/{revision-projection-CVJeA2jp.d.ts → revision-projection-DfWxdBqA.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BtO2s2Za.d.ts → semantic-cell-selection-CC3NwCtx.d.ts} +4 -4
- package/dist/{semantic-interaction-COMnWyBQ.d.ts → semantic-interaction-BHlV61hK.d.ts} +1 -1
- package/dist/{semantic-paint-C032N0ps.d.ts → semantic-paint-DfWIWUs6.d.ts} +2 -2
- package/dist/{semantic-records-BSjo-xck.d.ts → semantic-records-DrExlBy-.d.ts} +6 -6
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +37 -40
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-BIyGh6L8.d.ts → tree-package-fragment-YPyYC1aD.d.ts} +9 -4
- package/dist/{tree-session-contract-CHcCnz3W.d.ts → tree-session-contract-AeY2v0x9.d.ts} +8 -6
- package/dist/{types-barrel-DN_-gaRX.d.ts → types-barrel-BO73JqHG.d.ts} +44 -30
- package/package.json +3 -3
- package/dist/chunk-3OMDEMLL.js +0 -1
- package/dist/chunk-CVNDMQIX.cjs +0 -26
- package/dist/chunk-IEXYOLNR.cjs +0 -5
- package/dist/chunk-J3EM5ZEA.js +0 -18
- package/dist/chunk-JNE6QF47.js +0 -26
- package/dist/chunk-JQTVFP72.cjs +0 -2
- package/dist/chunk-JXL25DRU.js +0 -11
- package/dist/chunk-P4SBMHHO.cjs +0 -5
- package/dist/chunk-QQAF64KN.js +0 -5
- package/dist/chunk-SI5FLZGU.js +0 -4
- package/dist/chunk-T4TKRNZT.cjs +0 -11
- package/dist/chunk-XMWH2R23.js +0 -5
- package/dist/chunk-ZXAGLAY2.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk5MWFZ7F4_cjs=require('./chunk-5MWFZ7F4.cjs');var X=new Set(["document","hdr","ftr","footnotes","endnotes"]),W=24,U=512,E=chunk5MWFZ7F4_cjs.gh(W);function z(o){let t=o.root;return t.namespaceUri===chunk5MWFZ7F4_cjs.fa&&X.has(t.localName)}function $(o){let t=[],e=r=>{if(r.kind!=="textValue"){r.namespaceUri===chunk5MWFZ7F4_cjs.fa&&r.localName==="p"&&t.push(r);for(let i of r.children)e(i);}};return e(o.root),t}function V(o){let t=chunk5MWFZ7F4_cjs.eb(o);let e=[],r=new Set;for(let i of $(t)){let n=chunk5MWFZ7F4_cjs.Ya(i);if(!n||!chunk5MWFZ7F4_cjs.Xa(n))continue;let a=n.toUpperCase();if(r.has(a))continue;r.add(a);let s=chunk5MWFZ7F4_cjs.Cj(t,i.id);s!==null&&e.push(Object.freeze({paragraphId:a,nodeId:i.id,text:s}));}return Object.freeze(e)}function Y(o){let t=E.get(o.root);if(t)return t;let e=chunk5MWFZ7F4_cjs.eb(o);let r=new Map,i=new Set,n=a=>{if(a.kind!=="textValue"){if(a.namespaceUri===chunk5MWFZ7F4_cjs.fa&&a.localName==="p"){let s=chunk5MWFZ7F4_cjs.Ya(a);if(s&&chunk5MWFZ7F4_cjs.Xa(s)){let p=s.toUpperCase();i.has(p)||(i.add(p),a.kind==="paragraph"&&r.set(p,a.id));}}for(let s of a.children)n(s);}};return n(e.root),E.set(o.root,r),r}function w(o,t){if(o.length!==t.length)return false;for(let e=0;e<o.length;e+=1)if(o[e].root!==t[e])return false;return true}function B(o){let t=new Map,e=null,r=(n,a,s)=>{for(t.delete(n),t.set(n,{partName:a.name,root:a.root,nodeId:s});t.size>U;){let p=t.keys().next();if(p.done)break;t.delete(p.value);}},i=(n,a)=>{let s=t.get(n);if(!s)return null;let p=a.find(c=>c.name===s.partName);if(!p)return null;if(p.root===s.root)return {part:p,nodeId:s.nodeId};let l=chunk5MWFZ7F4_cjs.Ja(p,s.nodeId);if(!l||l.kind!=="paragraph")return null;let d=chunk5MWFZ7F4_cjs.Ya(l);return !d||d.toUpperCase()!==n?null:(r(n,p,s.nodeId),{part:p,nodeId:s.nodeId})};return n=>{let a=o(),s=i(n,a);if(s)return s;if(e&&e.ids.has(n)&&w(a,e.roots))return null;for(let p of a){let l=Y(p).get(n);if(l!==void 0)return r(n,p,l),{part:p,nodeId:l}}return (!e||!w(a,e.roots))&&(e={roots:a.map(p=>p.root),ids:new Set}),e.ids.size<U&&e.ids.add(n),null}}function H(o,t){return chunk5MWFZ7F4_cjs.Da(o,t)}var q=Object.freeze({kind:"body"}),F=1e6;function b(o,t){if(t<=0||t>=o.length)return false;let e=o.charCodeAt(t-1),r=o.charCodeAt(t);return e>=55296&&e<=56319&&r>=56320&&r<=57343}function Q(o,t,e){if(t===e)return [];let r=0,i=Math.min(t.length,e.length);for(;r<i&&t.charCodeAt(r)===e.charCodeAt(r);)r+=1;for(;r>0&&(b(t,r)||b(e,r));)r-=1;let n=0;for(;n<t.length-r&&n<e.length-r&&t.charCodeAt(t.length-n-1)===e.charCodeAt(e.length-n-1);)n+=1;for(;n>0&&(b(t,t.length-n)||b(e,e.length-n));)n-=1;let a=t.length-r-n,s=e.slice(r,e.length-n),p=[];return a>0&&p.push({op:"deleteText",paragraphId:o,start:r,end:r+a}),s.length>0&&p.push({op:"insertText",paragraphId:o,offset:r,text:s}),Object.freeze(p)}function K(o){let t=r=>!!r&&r.kind!=="textValue"&&r.namespaceUri===chunk5MWFZ7F4_cjs.fa&&r.localName==="t"&&r.attributes.every(i=>i.namespaceUri===chunk5MWFZ7F4_cjs.ga&&i.localName==="space")&&r.children.every(i=>i.kind==="textValue"),e=[];for(let r of o){let i=e.at(-1);if(!t(i)||!t(r)){e.push(r);continue}let n=i.children.map(a=>a.kind==="textValue"?a.value:"").join("")+r.children.map(a=>a.kind==="textValue"?a.value:"").join("");e[e.length-1]={...i,attributes:/^\s|\s$/.test(n)?[{kind:"xmlSpace",namespaceUri:chunk5MWFZ7F4_cjs.ga,localName:"space",prefix:"xml",value:"preserve"}]:[],children:[{id:i.children[0]?.id??`${i.id}/text`,kind:"textValue",value:n}]};}return e}function G(o){if(o.kind==="textValue")return o;let t=false,e=o.children.map(r=>{let i=G(r);return i!==r&&(t=true),i});if(o.namespaceUri===chunk5MWFZ7F4_cjs.fa&&o.localName==="r"){let r=K(e);(r.length!==e.length||r.some((i,n)=>i!==e[n]))&&(e=[...r],t=true);}return t?{...o,children:e}:o}function rr(o,t,e){let r=o.parts.get(t);if(!r)return o;let i=false,n=new Set;for(let a of e)(a.op==="insertText"||a.op==="deleteText")&&!a.revision&&n.add(a.paragraphId);for(let a of n){let s=chunk5MWFZ7F4_cjs.Ja(r,a);if(!s||s.kind==="textValue")continue;let p=G(s);if(p===s)continue;let l=chunk5MWFZ7F4_cjs.Oa(r,a,p,{deferValidation:true});l.ok&&(r=l.part,i=true);}return i?chunk5MWFZ7F4_cjs.Xd(o,r):o}function er(o,t){let e=t.documentId.trim();if(e.length===0||e.length>256)throw new TypeError("documentId must contain 1 to 256 characters");let r=()=>V(o.bodyStore().part),i,a=B(()=>{let l=o.bodyStore().part,d=o.currentPackage();if(i?.pkg===d&&i.body===l)return i.parts;let c=[l];for(let g of d.parts.values())g===l||!z(g)||c.push(g);return i={pkg:d,body:l,parts:Object.freeze(c)},i.parts}),s=(l,d)=>{if(l.length===0)return {ok:true,changed:false};let c=r(),g=new Set,h=[];for(let u of l){if(typeof u.text!="string"||u.text.length>F)return {ok:false,reason:"collaboration-text-limit"};if(typeof u.paragraphId!="string"||u.paragraphId.length===0||u.paragraphId.length>256)return {ok:false,reason:"unknown-paragraph-id"};let m=u.paragraphId.toUpperCase();if(g.has(m))return {ok:false,reason:"duplicate-paragraph-id"};g.add(m);let N=c.filter(L=>L.paragraphId===m);if(N.length!==1)return {ok:false,reason:"unknown-paragraph-id"};let T=N[0];h.push(...Q(T.nodeId,T.text,u.text));}if(h.length===0)return {ok:true,changed:false};let y=o.transact(q,u=>{for(let m of h)u.apply(m);u.applyPackage(m=>rr(m,m.mainDocumentPart,h));},{origin:d.origin,actorId:d.actorId,operationId:d.operationId,recordsHistory:false});return y.ok?{ok:true,changed:y.change!==null}:{ok:false,reason:y.detail??y.reason}};return Object.freeze({documentId:e,paragraphs:r,paragraphByNodeId(l){return r().find(d=>d.nodeId===l)??null},paragraphByStableId(l){let d=l.toUpperCase(),c=a(d);if(!c)return null;let g=chunk5MWFZ7F4_cjs.Cj(c.part,c.nodeId);return g===null?null:Object.freeze({paragraphId:d,nodeId:c.nodeId,text:g})},applyParagraphText(l,d,c){return s([{paragraphId:l,text:d}],c)},applyParagraphTexts:s,applyRemotePackage(l,d){let c=o.publishRemotePackage(l,d);return c.ok?{ok:true,changed:c.change!==null}:{ok:false,reason:c.detail??c.reason}},revision:()=>o.packageRevision,subscribe:l=>o.subscribe(l),observePrimitiveJournal:l=>H(o,l),hasPendingJournals:()=>chunk5MWFZ7F4_cjs.Ba(o),flushPendingJournals:()=>{chunk5MWFZ7F4_cjs.Ca(o);},save:()=>chunk5MWFZ7F4_cjs.Wd(o.currentPackage()),binaryPart(l){let d=o.currentPackage();return d.partBytes.get(l)??d.partBytes.get(l.startsWith("/")?l.slice(1):`/${l}`)??null}})}exports.a=rr;exports.b=er;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {c}from'./chunk-
|
|
1
|
+
import {c}from'./chunk-SNN53UPD.js';import {Ga,Ea,Fa}from'./chunk-VE7YBFQD.js';import {ve,Qe,pf}from'./chunk-Z65JJLLF.js';function F(t){let r=[],s=0;for(let e of t){let o=s+e.text.length;e.resultRuns?r.push({text:e.text,rawStart:e.rawStart,rawEnd:e.rawEnd,resultRuns:e.resultRuns,projectedStart:s,projectedEnd:o,expansion:e.text.length!==e.rawEnd-e.rawStart}):r.push({text:e.text,rawStart:e.rawStart,rawEnd:e.rawEnd,projectedStart:s,projectedEnd:o,expansion:e.text.length!==e.rawEnd-e.rawStart}),s=o;}return r}function T(t,r){return r<=t.rawStart?t.projectedStart:r>=t.rawEnd?t.projectedEnd:t.expansion?t.projectedStart:t.projectedStart+r-t.rawStart}function M(t,r){return t.expansion?t.rawStart:t.rawStart+r-t.projectedStart}function V(t,r){return t.expansion?t.rawEnd:t.rawStart+r-t.projectedStart}function g(t){let r=F(t),s="";for(let e of t)s+=e.text;return {text:s,projectedOffset(e){let o=0;for(let a of r){if(e<=a.rawEnd)return T(a,e);o=a.projectedEnd;}return o},rawRange(e,o){if(e<0||e>=o||o>s.length)return null;let a=r.find(d=>e>=d.projectedStart&&e<d.projectedEnd),n=r.find(d=>o>d.projectedStart&&o<=d.projectedEnd);return !a||!n?null:{start:M(a,e),end:V(n,o)}},sliceRaw(e,o){if(e>=o)return "";let a="";for(let n of r){if(n.expansion){e<=n.rawStart&&o>=n.rawEnd&&(a+=n.text);continue}let d=Math.max(e,n.rawStart),u=Math.min(o,n.rawEnd);d<u&&(a+=n.text.slice(d-n.rawStart,u-n.rawStart));}return a},resultRunAddressAt(e){let o=r.find(n=>n.resultRuns!==void 0&&e>=n.projectedStart&&e<n.projectedEnd);if(!o?.resultRuns)return null;let a=e-o.projectedStart;for(let n of o.resultRuns)if(a>=n.start&&a<n.end)return {runId:n.runId,offset:a-n.start};return null},findOccurrences(e,o,a={}){let n=[];if(o<=0||!Ga(e)||s.length===0)return {matches:n,truncated:false};let d=a.matchCase===true,u=a.wholeWord===true,i=d?e:Ea(e),l=d?s:Ea(s),f=Math.min(s.length,a.to??s.length),j=new Set,c=l.indexOf(i,Math.max(0,a.from??0));for(;c>=0;){let p=c+i.length;if(p>f)return {matches:n,truncated:false};if(!u||Fa(s,c,p)){let m=r.find(x=>c>=x.projectedStart&&c<x.projectedEnd),P=r.find(x=>p>x.projectedStart&&p<=x.projectedEnd);if(!m||!P)return {matches:n,truncated:false};let h=m===P&&m.expansion?m:null;if(!h||!j.has(h)){if(n.length>=o)return {matches:n,truncated:true};n.push({start:c,length:i.length,rawStart:M(m,c),rawEnd:V(P,p)}),h&&j.add(h);}}c=l.indexOf(i,p);}return {matches:n,truncated:false}}}}function A(t){return t.length===0?g([]):g([{text:t,rawStart:0,rawEnd:t.length}])}function B(t,r,s="allMarkup"){if(!r.includes(ve))return r.length===0?[]:[{text:r,rawStart:0,rawEnd:r.length}];let e=Qe(t),o=pf(t,e),a=c(t,e,s),n=new Map;for(let i of e)n.set(i.node.id,i);let d=[],u=0;for(let i of o){let l=n.get(i.node.id);if(!l)continue;u<i.start&&d.push({text:r.slice(u,i.start),rawStart:u,rawEnd:i.start});let f=a.get(l.node.id);l.kind==="simple"&&f?d.push({text:f.text,rawStart:i.start,rawEnd:i.end,resultRuns:f.runs}):d.push({text:f?.text??ve,rawStart:i.start,rawEnd:i.end}),u=i.end;}return u<r.length&&d.push({text:r.slice(u),rawStart:u,rawEnd:r.length}),d}function N(t,r,s="allMarkup"){return r.includes(ve)?g(B(t,r,s)):A(r)}export{g as a,A as b,B as c,N as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkAKF5KM2W_cjs=require('./chunk-AKF5KM2W.cjs'),chunkW3ZUPQIZ_cjs=require('./chunk-W3ZUPQIZ.cjs');function Ue(t,e,o){let n=e.marker?.picture,i=o.urlRegistry;if(!n||n.resource.kind!=="ready"||!i)return null;let r=o.scale,a=i.urlForReady(n.resource.validatedHandle,n.resource.mime);if(a===null)return null;let s=n.box,l=t.createElement("span");l.className="docx-list-marker",l.dataset.docxMarker="",l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.x-e.box.x)*r}px`,l.style.top=`${(s.y-e.box.y)*r}px`,l.style.width=`${s.width*r}px`,l.style.height=`${s.height*r}px`,l.style.display="block",l.style.overflow="hidden";let d=t.createElement("img");return d.className="docx-list-marker-image",d.setAttribute("src",a),d.setAttribute("alt",""),d.setAttribute("draggable","false"),d.style.display="block",d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,d.style.maxWidth="none",d.style.maxHeight="none",l.append(d),l}function je(t,e,o,n){let i=t.createElement("span");i.dataset.docxNoteRule="single",i.setAttribute("contenteditable","false"),i.setAttribute("aria-hidden","true"),i.style.display="inline-block",i.style.position="relative",i.style.verticalAlign="top",i.style.width=`${e.box.width*n}px`,i.style.height=`${Math.min(e.box.height+(o.leading??0),o.box.height)*n}px`;let r=chunkW3ZUPQIZ_cjs.le(e,o),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-o.box.y)*n}px`,a.style.width=`${r.width*n}px`,a.style.height=`${r.height*n}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function Y(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function I(t,e,o,n,i,r){switch(e){case "dashed":case "dashSmallGap":case "dotDash":case "dotDotDash":case "dashDotStroked":{let a=Math.max(4,4*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"bottom":"right"}, #${o} 60%, transparent 60%)`,t.style.backgroundSize=n?`100% ${a}px`:`${a}px 100%`;return}case "dotted":{let a=Math.max(3,3*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"bottom":"right"}, #${o} 35%, transparent 35%)`,t.style.backgroundSize=n?`100% ${a}px`:`${a}px 100%`;return}case "double":case "doubleWave":case "triple":case "thinThickSmallGap":case "thickThinSmallGap":case "thinThickThinSmallGap":case "thinThickMediumGap":case "thickThinMediumGap":case "thinThickThinMediumGap":case "thinThickLargeGap":case "thickThinLargeGap":case "thinThickThinLargeGap":{let a=i/3;t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"right":"bottom"}, #${o} 0px, #${o} ${a}px, transparent ${a}px, transparent ${a*2}px, #${o} ${a*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${o}`,n?t.style.width="0px":t.style.height="0px";return}default:return}}var io=/^[0-9A-Fa-f]{6}$/;function Ge(t,e,o,n){for(let{box:i,edge:r,side:a}of chunkW3ZUPQIZ_cjs.Ub(o)){let s=r.color&&io.test(r.color)?r.color:"000000",l=t.createElement("span");l.className=`docx-run-border docx-run-border-${a}`,l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),Object.assign(l.style,{position:"absolute",pointerEvents:"none",left:`${(i.x-o.contentX)*n}px`,top:`${(i.y-o.box.y)*n}px`,width:`${i.width*n}px`,height:`${i.height*n}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";I(l,r.val,s,d,(d?i.width:i.height)*n,n),e.append(l);}}function We(t,e){let o=e.fieldAtom?.formControl;if(o?.kind!=="dropdown"||o.entries.length===0)return;let n=t.ownerDocument.createElement("select");n.dataset.docxFormDropdown="",n.dataset.docxMarker="",n.setAttribute("aria-label",o.accessibleName??e.text);for(let[i,r]of o.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,n.append(a);}n.selectedIndex=o.selectedIndex,Object.assign(n.style,{position:"absolute",inset:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer",font:"inherit",padding:"0",border:"0"}),t.style.position="relative",t.append(n);}function Ve(t,e,o){let n=e.fieldAtom?.formControl;if(n?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(n.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(n.checked)),n.accessibleName&&t.setAttribute("aria-label",n.accessibleName),t.style.width=`${e.box.width*o}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}var $=8,Ye={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},Ze=Object.keys(Ye),ao=Ze.filter(t=>Ye[t]==="painted"),so=new Set(["http","https","data","blob"]),lo=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function co(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let o=lo.exec(e);if(o)return !so.has(o[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let n=i=>e[i]==="/"||e[i]==="\\";return n(0)&&n(1)?void 0:e}function uo(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},o=Object.prototype.hasOwnProperty;for(let n of Ze){if(!o.call(t,n))continue;let i=t[n];if(!(typeof i!="string"||i.length===0)){if(n==="avatarUrl"){let r=co(i);r!==void 0&&(e.avatarUrl=r);continue}e[n]=i;}}return Object.keys(e).length>0?e:null}function J(t){return `var(--doc-review-author-${t%$})`}function Je(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[o,n]of Object.entries(t.authors)){let i=uo(n);i&&e.set(o,i);}return e}function jn(t,e){let o=Je(e);return [...t].map(([n,i])=>{let r=o.get(n);return {author:n,slot:i,color:r?.color??J(i),...r?{style:r}:{}}})}var yo=128;function Z(t,e,o=yo){let n=e.length<o?e.length:o,i=t;for(let r=0;r<n;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function po(t,e,o){let n=Z(2166136261,o);for(let i of t.keys())n=Z(n,i);for(let[i,r]of e){n=Z(n,i);for(let a of ao)n=Z(n,r[a]??"",1/0);}return `${t.size}.${e.size}.${(n>>>0).toString(36)}`}function Qe(t){return t===null?"kind":t.key}var le=new WeakMap;function et(t,e,o){if(t==="kind")return null;let n=le.get(e);if(n&&n.option===t&&n.authorSlots===o)return n.context;let i=Je(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return le.set(e,{option:t,authorSlots:o,context:null}),null;let a=o??fo(e),s=new Map;for(let[d,c]of i){if(!c.spanClassName)continue;let u=c.spanClassName.split(/\s+/).filter(h=>h.length>0);u.length>0&&s.set(d,u);}let l={authorSlots:a,styles:i,classTokens:s,others:r,key:po(a,i,r)};return le.set(e,{option:t,authorSlots:o,context:l}),l}var Xe=new WeakMap;function ho(t){let e=Xe.get(t);if(e)return e;let o=[],n=new Set,i=r=>{r===""||n.has(r)||(n.add(r),o.push(r));};for(let r of chunkW3ZUPQIZ_cjs.va(t)){for(let s of r.lines)for(let l of s.spans){let d=l.revisions;if(d!==void 0)for(let c=0;c<d.length;c+=1)i(d[c].author);for(let c of l.props){if(c.localName!=="rPrChange"&&c.localName!=="pPrChange")continue;let u=c.attributes?.author;i(u??"");break}}for(let s of r.lines){let l=s.drawings;if(l!==void 0)for(let d=0;d<l.length;d+=1){let c=l[d].revisions;if(c!==void 0)for(let u=0;u<c.length;u+=1)i(c[u].author);}}let a=r.markRevisions;if(a)for(let s=0;s<a.length;s+=1)i(a[s].author);}return Xe.set(t,o),o}var qe=new WeakMap;function fo(t){let e=qe.get(t);if(e)return e;let o=new Map,n=i=>{for(let r of ho(i))o.has(r)||o.set(r,o.size);};for(let i of t.pages){n(i.fragments),i.header&&n(i.header.fragments),i.footer&&n(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&n(r.separator.fragments),r.continuationNotice&&n(r.continuationNotice.fragments);for(let a of r.notes)n(a.fragments);}for(let r of [i.anchoredDrawings,i.header?.anchoredDrawings,i.footer?.anchoredDrawings])if(r)for(let a of r){if(a.accessibility.hidden)continue;let s=a.revisions;if(s!==void 0)for(let l=0;l<s.length;l+=1){let d=s[l].author;d!==""&&!o.has(d)&&o.set(d,o.size);}a.textboxStory&&n(a.textboxStory.fragments);}}return qe.set(t,o),o}function go(t,e){let o=null;for(let n of e)n===""||t.has(n)||(o===null&&(o=new Map(t)),o.has(n)||o.set(n,o.size));return o??t}function Gn(){let t=new Map,e=0;return {resolve(o,n){let i=go(o,n);for(let r of i.keys())t.has(r)||(t.set(r,e),e+=1);return new Map([...i.keys()].map(r=>[r,t.get(r)]).sort((r,a)=>r[1]-a[1]))}}}function F(t,e,o){if(t===void 0||t.length===0)return null;let n=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=n.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:n,line:i&&a==="underline"?"line-through":a,decorationStyle:r==="moveFrom"||r==="moveTo"?"double":"solid",color:i?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)",authorColor:o?.get(n.author)?.color??J(e?.get(n.author)??0),deleted:i}}function de(t,e=false){let o=t.spans.find(i=>i.style.shaping)?.style.shaping?.baseLevel,n=o===void 0?e:o===1;return t.spans.length?{x:n?t.spans.reduce((i,r)=>Math.min(i,r.box.x),1/0):t.spans.reduce((i,r)=>Math.max(i,r.box.x+r.box.width),-1/0),rtl:n}:{x:t.contentX,rtl:n}}function ce(t,e,o,n){t.style.left=`${(e.x-o)*n}px`,t.style.marginLeft=`${(e.rtl?-2:2)*n}px`,e.rtl&&(t.style.transform="translateX(-100%)");}function tt(t,e,o,n,i=false){let r=t.createElement("span"),a=e.spans[e.spans.length-1];r.className="docx-line-break-mark",r.dataset.docxMarker="",r.setAttribute("aria-hidden","true"),r.contentEditable="false",r.textContent="\u21B5",r.style.position="absolute",r.style.pointerEvents="none",r.style.userSelect="none",ce(r,de(e,i),e.contentX,o),r.style.top=`${e.leading*o}px`,r.style.fontSize=`${(a?.style.fontSizePt??e.box.height)*o}px`,r.style.lineHeight=`${Math.max(0,e.box.height-e.leading-(e.trailingSpacing??0))*o}px`,r.style.color="var(--doc-revision-format)";let s=F(a?.revisions,n?.authorSlots,n?.styles);if(s){let{attribution:l}=s,d=n?.styles.get(l.author),c=n&&(d?.color!==void 0||n.others==="author");if(r.style.color=c?s.authorColor:s.color,r.dataset.revisionKind=l.kind,r.dataset.revisionId=l.id,r.dataset.reviewAuthor=l.author,n){r.dataset.reviewAuthorSlot=String((n.authorSlots.get(l.author)??0)%$);for(let u of n.classTokens.get(l.author)??[])r.classList.add(u);}s.line&&(r.style.textDecorationLine=s.line,r.style.textDecorationStyle=s.decorationStyle,r.style.textDecorationColor=r.style.color);}return r}function ot(t,e,o,n){let i=chunkW3ZUPQIZ_cjs.Ya(e);if(!i){let d=t.createElement("span");return d.className="docx-paragraph-mark",d.setAttribute("aria-hidden","true"),d.contentEditable="false",d.textContent="\xB6",d.style.position="absolute",d.style.pointerEvents="none",d.style.marginLeft=`${2*o}px`,d.style.color="var(--doc-revision-format)",d}let r=t.createElement("span");r.className=`docx-paragraph-mark docx-revision-pmark docx-revision-pmark-${i.kind}`,r.setAttribute("aria-hidden","true"),r.contentEditable="false",r.dataset.revisionKind=i.kind,r.dataset.revisionId=i.id,i.author!==""&&(r.dataset.reviewAuthor=i.author),r.dataset.revisionIds=e.map(d=>d.id).join(" "),r.dataset.revisionKinds=e.map(d=>d.kind).join(" "),r.textContent="\xB6",r.style.position="absolute",r.style.pointerEvents="none",r.style.marginLeft=`${2*o}px`;let a=chunkW3ZUPQIZ_cjs.Za(i),s=n?.styles.get(i.author),l=n?(n.authorSlots.get(i.author)??0)%$:0;if(n){r.dataset.reviewAuthorSlot=String(l);let d=n.classTokens.get(i.author);if(d)for(let c=0;c<d.length;c+=1)r.classList.add(d[c]);}return r.style.color=s?.color??(n?.others==="author"?J(l):a?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),a&&(r.style.textDecorationLine="line-through"),r}function ue(t,e,o=false){let n=o?null:chunkW3ZUPQIZ_cjs.$a(e.props.filter(r=>r.localName==="pPrChange")),i=n??e.markFormatRevision;i&&(mo(t,i,n?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function mo(t,e,o){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=o,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function nt(t,e,o,n,i,r){for(let a of [o.footnotes,o.endnotes])a&&e.append(xo(t,o,a,n,i,r));}function xo(t,e,o,n,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=o.kind,a.dataset.docxNotesPlacement=o.placement,a.style.position="absolute",a.style.left=`${(o.box.x-e.box.x)*n.scale}px`,a.style.top=`${(o.box.y-e.box.y)*n.scale}px`,a.style.width=`${o.box.width*n.scale}px`,a.style.height=`${o.box.height*n.scale}px`;for(let s of [o.separator,o.continuationNotice]){if(!s)continue;let l=t.createElement("div");l.className="docx-note-separator",l.dataset.docxNoteSeparator=s.kind,l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.box.x-o.box.x)*n.scale}px`,l.style.top=`${(s.box.y-o.box.y)*n.scale}px`,l.style.width=`${s.box.width*n.scale}px`,l.style.height=`${s.box.height*n.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)bo(l,t,d??"single",n.scale,s.box.height,s.ruleColor);else {let c={...n,tabLeaderOriginXPt:s.box.x-e.box.x};for(let u of s.fragments)l.append(u.kind==="table"?r(t,u,c):i(t,u,c));}a.append(l);}for(let s of o.notes){let l={...n,tabLeaderOriginXPt:s.box.x-e.box.x},d=t.createElement("div");d.className="docx-note",d.dataset.docxNote=s.noteKind,d.dataset.docxNoteId=String(s.noteId),d.dataset.docxNoteScope=s.scopeId,s.mark!==null&&(d.dataset.docxNoteMark=s.mark),s.continuation&&(d.dataset.docxNoteContinuation=""),d.setAttribute("role","doc-footnote"),d.style.position="absolute",d.style.left=`${(s.box.x-o.box.x)*n.scale}px`,d.style.top=`${(s.box.y-o.box.y)*n.scale}px`,d.style.width=`${s.box.width*n.scale}px`,d.style.height=`${s.box.height*n.scale}px`;for(let c of s.fragments)d.append(c.kind==="table"?r(t,c,l):i(t,c,l));a.append(d);}return a}function bo(t,e,o,n,i,r){t.dataset.docxNoteRule=o;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,n*.75);if(o==="single"){t.style.backgroundColor=a,t.style.height=`${i*n}px`;return}t.style.opacity="0.85";let l=Math.max(1,n*1.25);for(let d of [0,s+l]){let c=e.createElement("div");c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top=`${d}px`,c.style.height="0",c.style.borderTop=`${s}px solid currentColor`,t.append(c);}}var vo=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function rt(t,e,o,n){let i=n.contentControlChrome,r=i?.suppressedIds,a=(o.contentControls??[]).filter(h=>r?.has(h.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(h=>r?.has(h.id)!==true&&!a.some(p=>p.id===h.id))];if(s.length===0)return;let l=i?.showAll===true,d=i?.activeIds,c=i?.hoverIds,u=i?.tocControlIds;for(let h of s){let p=u?.has(h.id)===true,y=!p&&d?.has(h.id)===true,x=c?.has(h.id)===true;e.append(Ro(t,o,h,n.scale,y,x,l||y||p&&x,i?.checkedIds?.has(h.id),p,i?.readOnly===true));}}function So(t,e,o,n){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(o==="checkbox"){let h=Math.max(1,Math.min(e.height,16))*n,p=e.width>0?(i+e.x+e.width/2)*n-h/2:(i+e.x)*n,y=(r+e.y)*n+Math.max(0,(e.height*n-h)/2);return {left:p,top:y,size:h}}let a=16*n,s=(i+e.x+e.width)*n,l=t.box.width*n,d=s+2*n,c=d+a<=l?d:Math.max(0,s-a),u=(r+e.y)*n+Math.max(0,(e.height*n-a)/2);return {left:c,top:u,size:a}}function Ro(t,e,o,n,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=o.id,c.dataset.docxMarker="",c.dataset.controlType=o.controlType,c.dataset.lock=o.effectiveLock,o.bound&&(c.dataset.bound=""),o.placeholder&&(c.dataset.placeholder=""),l&&(c.dataset.docxToc=""),d&&(c.dataset.readOnly=""),i&&(c.dataset.active=""),r&&(c.dataset.hover=""),a&&(c.dataset.boundaryVisible=""),c.setAttribute("contenteditable","false"),c.setAttribute("role","group"),o.alias&&(c.dataset.alias=o.alias),o.tag&&(c.dataset.tag=o.tag),o.alias&&c.setAttribute("aria-label",o.alias),c.style.position="absolute",c.style.inset="0",c.style.pointerEvents="none",c.style.zIndex="2";let u=e.contentBox.x-e.box.x,h=e.contentBox.y-e.box.y;for(let y of o.fragments){if(y.pageIndex!==e.index)continue;let x=t.createElement("div");x.className="docx-content-control-boundary",x.dataset.docxMarker="",x.setAttribute("contenteditable","false"),x.setAttribute("aria-hidden","true"),x.style.position="absolute",x.style.left=`${(u+y.box.x)*n}px`,x.style.top=`${(h+y.box.y)*n}px`,x.style.width=`${Math.max(y.box.width,1)*n}px`,x.style.height=`${Math.max(y.box.height,1)*n}px`,x.style.pointerEvents="none",c.append(x);}let p=o.fragments.find(y=>y.pageIndex===e.index);if(p&&o.alias){let y=t.createElement("div");y.className="docx-content-control-label",y.dataset.docxMarker="",y.setAttribute("contenteditable","false"),y.setAttribute("aria-hidden","true"),y.textContent=o.alias,y.style.position="absolute",y.style.left=`${(u+p.box.x)*n}px`,y.style.top=`${Math.max(0,(h+p.box.y)*n-16)}px`,y.style.pointerEvents="none",c.append(y);}if(p&&vo.has(o.controlType)){let y=t.createElement("button");y.type="button",y.className="docx-content-control-widget",y.dataset.docxMarker="",y.dataset.docxCcWidget=o.controlType,y.dataset.docxCcId=o.id,y.setAttribute("contenteditable","false"),y.setAttribute("tabindex","-1"),o.controlType==="checkbox"?y.setAttribute("role","checkbox"):o.controlType==="dropdown"||o.controlType==="comboBox"||o.controlType==="buildingBlockGallery"?y.setAttribute("role","listbox"):(o.controlType==="date"||o.controlType==="picture")&&y.setAttribute("role","button"),o.alias&&(y.dataset.name=o.alias),o.alias&&y.setAttribute("aria-label",o.alias),o.controlType==="checkbox"&&(y.setAttribute("data-checked",s?"true":"false"),y.setAttribute("aria-checked",s?"true":"false"));let x=o.effectiveLock==="contentLocked"||o.effectiveLock==="sdtContentLocked";(d||x||o.bound)&&(y.disabled=true,y.dataset.disabledReason=d?"readOnly":o.bound?"bound":"locked",y.setAttribute("aria-disabled","true"));let m=So(e,p.box,o.controlType,n);y.style.position="absolute",y.style.left=`${m.left}px`,y.style.top=`${m.top}px`,y.style.width=`${m.size}px`,y.style.height=`${m.size}px`,y.style.fontSize=`${m.size}px`,y.style.pointerEvents="auto",y.style.padding="0",y.style.margin="0",y.style.cursor=y.disabled?"not-allowed":"pointer",c.append(y);}return c}var at="docx-change-bars",Q="docx-change-bar",wo=.5;function st(t,e){for(let o of e)switch(o.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function lt(t,e,o){let n=t.lines,i=n.length-1,r=[];for(let a=0;a<=i;a+=1){let s=n[a];if(r.length=0,e.mode==="simple-markup"){s.changeSites&&r.push(...s.changeSites),a===i&&t.markChangeSites&&r.push(...t.markChangeSites),r.length>0&&it(t,n,a,e,r,o);continue}for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunkW3ZUPQIZ_cjs.$a(l.props);d&&r.push(d);}for(let l of s.drawings??[])l.revisions&&r.push(...l.revisions);if(s.anchorRevisions&&r.push(...s.anchorRevisions),a===i){t.markRevisions&&r.push(...t.markRevisions),t.markFormatRevision&&r.push(t.markFormatRevision);let l=chunkW3ZUPQIZ_cjs.$a(t.props);l&&r.push(l);}r.length!==0&&it(t,n,a,e,r,o);}}function it(t,e,o,n,i,r){let a=e[o],s=e.length-1,l=(o===0?t.box.y:a.box.y)+n.dy,d=Math.min((o===s?t.box.y+t.box.height:e[o+1].box.y)+n.dy,n.limit);if(d<=l)return;let c={top:l,bottom:d,story:n.story,insertion:false,deletion:false,format:false};st(c,i),r.push(c);}function ko(t,e,o){for(let n of t.rows){let i=e.mode==="simple-markup"?n.changeSites:void 0;if(e.mode==="all-markup"&&n.revisionKind||i&&i.length>0){let r=chunkW3ZUPQIZ_cjs.Td(n)?Math.max(n.box.y,...n.cells.map(s=>s.box.y+s.box.height)):n.box.y+n.box.height,a={top:n.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,insertion:n.revisionKind==="insert",deletion:n.revisionKind==="delete",format:false};i&&st(a,i),o.push(a);}for(let r of n.cells){if(r.textDirection==="btLr"){let a=[];if(ye(r.blocks,e,a),a.length===0)continue;let s={top:r.box.y+e.dy,bottom:Math.min(r.box.y+r.box.height+e.dy,e.limit),story:e.story,insertion:false,deletion:false,format:false};for(let l of a)s.insertion||=l.insertion,s.deletion||=l.deletion,s.format||=l.format;s.bottom>s.top&&o.push(s);continue}ye(r.blocks,e,o);}}}function ye(t,e,o){for(let n of t)n.kind==="table"?ko(n,e,o):lt(n,e,o);}function Po(t){t.sort((o,n)=>o.top-n.top||o.bottom-n.bottom);let e=[];for(let o of t){let n=e[e.length-1];if(n&&n.story===o.story&&o.top<=n.bottom+wo){n.bottom=Math.max(n.bottom,o.bottom),n.insertion||=o.insertion,n.deletion||=o.deletion,n.format||=o.format;continue}e.push({...o});}return e}function dt(t,e,o,n=false){let i=[];if(o==="none")return {mode:o,toggle:n,left:0,runs:i,signature:"none"};let r=t.box.height,a=t.contentBox.y-t.box.y+t.contentBox.height,s={x:t.box.x,y:t.box.y};chunkW3ZUPQIZ_cjs.ya(t,u=>{if(u.story==="note-separator")return;let h={mode:o,story:u.story,dy:u.origin.y-t.box.y,limit:u.story==="body"?a:r};ye(u.host.fragments,h,i);let p=u.story==="header"||u.story==="footer"?y=>chunkW3ZUPQIZ_cjs.ta(y,u.origin,s):void 0;chunkW3ZUPQIZ_cjs.Ca(u.host,(y,x)=>{x.textboxDepth!==0&<(y,{mode:o,story:u.story,dy:x.storyOrigin.y-t.box.y,limit:r},i);},u.origin,p);});let l=Math.round(Math.max(0,(t.contentBox.x-t.box.x)/2)*e),d=Po(i),c=`${o}|${n?"t":""}|${l}`;for(let u of d)c+=`|${u.story}:${u.top.toFixed(3)}-${u.bottom.toFixed(3)}${u.insertion?"i":""}${u.deletion?"d":""}${u.format?"f":""}`;return {mode:o,toggle:n,left:l,runs:d,signature:c}}function ct(t,e,o){if(e.runs.length===0)return null;let n=e.mode==="simple-markup",i=t.createElement("div");i.className=at,i.dataset.docxChangeBars=e.signature,i.dataset.docxChangeBarsMode=e.mode,i.setAttribute("aria-hidden","true"),i.setAttribute("contenteditable","false"),i.style.position="absolute",i.style.inset="0",i.style.pointerEvents="none";for(let r of e.runs){let a=t.createElement("div");a.className=Q,r.insertion&&a.classList.add(`${Q}-insertion`),r.deletion&&a.classList.add(`${Q}-deletion`),r.format&&a.classList.add(`${Q}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*o}px`,a.style.height=`${(r.bottom-r.top)*o}px`,a.style.width=n?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=n?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)",e.toggle?(a.dataset.docxChangeBarToggle="",a.style.pointerEvents="auto",a.style.cursor="pointer"):a.style.pointerEvents="none",i.append(a);}return i}function ut(t,e,o,n,i=false){return ct(t,dt(e,o,n,i),o)}function yt(t,e,o,n,i,r=false){let a=e.querySelector(`:scope > .${at}`),s=dt(o,n,i,r);if(a&&a.dataset.docxChangeBars===s.signature)return;a?.remove();let l=ct(t,s,n);l&&e.append(l);}function ee(t,e,o){return !!o.activeHeaderFooterRId&&!!t.rId&&o.activeHeaderFooterRId===t.rId&&(o.activeHeaderFooterPageIndex===void 0||o.activeHeaderFooterPageIndex===e)}function pe(t,e,o){return o?t.kind==="footer"?Math.max(t.box.height,e.box.y+e.box.height-t.box.y):Math.max(t.box.height,e.contentBox.y-t.box.y):t.box.height}function Ao(t,e){let{box:o}=e,n=t.contentBox,i=e.kind==="header"?o.y:Math.max(o.y,n.y+n.height),r=e.kind==="header"?Math.min(o.y+o.height,n.y):o.y+o.height;return r>i?{x:o.x,y:i,width:o.width,height:r-i}:null}function Eo(t,e){let o=e.box,n=t.contentBox;return o.x<n.x+n.width&&n.x<o.x+o.width&&o.y<n.y+n.height&&n.y<o.y+o.height}function pt(t,e,o,n,i,r){let a=i.box;if(Eo(n,i)){o.dataset.docxHfOverBody="";let l=Ao(n,i);if(!l)return;let d=t.createElement("div");d.className="docx-hf-hover",d.dataset.docxHfHover=i.kind,d.setAttribute("contenteditable","false"),d.style.position="absolute",d.style.left=`${(l.x-n.box.x)*r}px`,d.style.top=`${(l.y-n.box.y)*r}px`,d.style.width=`${l.width*r}px`,d.style.height=`${l.height*r}px`,o.before(d),a=l;}let s=t.createElement("div");s.className="docx-hf-edit-hint",s.dataset.docxHfHint=i.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(a.x-n.box.x)*r}px`,s.style.width=`${a.width*r}px`,s.style.top=i.kind==="header"?`${(a.y+a.height-n.box.y)*r}px`:`${(a.y-n.box.y)*r}px`,i.kind==="footer"&&(s.style.transform="translateY(-100%)"),e.append(s);}function ht(t,e){for(let{record:o,element:n,materialized:i}of t){if(!i)continue;let r=n.querySelector(":scope > .docx-page-content");r&&(e.activeHeaderFooterRId?r.setAttribute("contenteditable","false"):r.removeAttribute("contenteditable")),delete n.dataset.docxHfActiveKind;for(let a of n.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let s=Lo(o,a);if(!s)continue;let l=ee(s,o.index,e);l&&(n.dataset.docxHfActiveKind=s.kind),$o(a,o,s,l,e.scale);}for(let a of n.querySelectorAll(":scope > [data-docx-hf-front]")){let s=ft(o,a.dataset.docxHfFront);gt(a,!!s&&ee(s,o.index,e));}}}function Lo(t,e){return ft(t,e.dataset.docxHf)}function ft(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function $o(t,e,o,n,i){n?(t.dataset.docxHfActive="",t.setAttribute("contenteditable","true")):(delete t.dataset.docxHfActive,t.setAttribute("contenteditable","false")),t.style.height=`${pe(o,e,n)*i}px`,gt(t,n);}function gt(t,e){let o=t.querySelectorAll(t instanceof Element&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *");for(let n of o){n.style.pointerEvents=e?"auto":"none";for(let i of n.querySelectorAll(".docx-drawing"))i.style.pointerEvents=e?"auto":"none";}}var Mo=0;function mt(t,e,o,n){if(n===void 0||!Number.isFinite(n)||n<0||n>1)return;let i="http://www.w3.org/2000/svg",r=(u,h)=>{let p=t.createElementNS(i,u);for(let[y,x]of Object.entries(h))p.setAttribute(y,x);return p},a=`docx-bilevel-${++Mo}`,s=r("svg",{width:"0",height:"0","aria-hidden":"true"});s.style.position="absolute",s.style.pointerEvents="none";let l=r("filter",{id:a,"color-interpolation-filters":"sRGB"});l.append(r("feColorMatrix",{type:"saturate",values:"0"}));let d=r("feComponentTransfer",{}),c=Array.from({length:256},(u,h)=>h/255>=n?1:0).join(" ");for(let u of ["R","G","B"])d.append(r(`feFunc${u}`,{type:"discrete",tableValues:c}));l.append(d),s.append(l),e.append(s),o.style.filter=`${o.style.filter} url(#${a})`.trim();}function xt(t){return Math.max(-1,Math.min(1,t))}function To(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let o=xt(t/100),n=xt(e/100);if(o===0&&n===0)return null;let i=n>=0?Math.min(1e3,1/(1-n)):Math.max(0,1+n),r=.5-o/2,a=r+o-i*r;return Object.freeze({slope:i,intercept:a})}function te(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function Co(t){let{slope:e,intercept:o}=t;if(o>=0){let i=e+2*o;return i<=0?"brightness(0)":`contrast(${te(e/i)}) brightness(${te(i)})`}let n=1-2*o;return `brightness(${te(e/n)}) contrast(${te(n)})`}function he(t){let e=[];t.grayscale&&e.push("grayscale(1)");let o=To(t.brightness,t.contrast);o&&e.push(Co(o));let{opacity:n}=t;return n!==void 0&&Number.isFinite(n)&&n>=0&&n<1&&e.push(`opacity(${Math.round(n*1e3)/1e3})`),e.length>0?e.join(" "):void 0}var bt="http://www.w3.org/2000/svg",Do=0;function vt(t,e){let{cx:o,cy:n}=t.extentEmu;if(o>0&&n>0)return {viewBox:[0,0,o,n],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(o<=0){let a=n>0?e.height/n:0;return {viewBox:[-i,0,2*i,Math.max(1,n)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/o;return {viewBox:[0,-i,o,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function St(t,e,o,n,i){let r=`docx-inset-${++Do}`,a=t.createElementNS(bt,"clipPath");a.setAttribute("id",r);let s=t.createElementNS(bt,"path");s.setAttribute("d",n),s.setAttribute("clip-rule","evenodd"),a.append(s),e.append(a),o.setAttribute("stroke-width",String(2*Math.max(1,i))),o.setAttribute("clip-path",`url(#${r})`);}var fe="http://www.w3.org/2000/svg";function T(t){return Number.isFinite(t)?String(t):"0"}function ge(t,e,o,n,i){if(n===o)return;let r=a=>`${T(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(o.y-n.y)} ${r(n.x+n.width-(o.x+o.width))} ${r(n.y+n.height-(o.y+o.height))} ${r(o.x-n.x)})`,e.style.pointerEvents="none";}function me(t,e,o){let n=e.vectorShape,i=e.geometry.contentBounds,r=e.paintBounds,a=t.createElement("div");a.className="docx-drawing-image-frame",a.style.position="absolute";let s=vt(n,i);a.style.left=`${(s.frame.x-r.x)*o}px`,a.style.top=`${(s.frame.y-r.y)*o}px`,a.style.width=`${s.frame.width*o}px`,a.style.height=`${s.frame.height*o}px`;let l=t.createElementNS(fe,"svg");l.setAttribute("viewBox",s.viewBox.map(T).join(" ")),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.style.display="block",l.style.overflow="visible";for(let d of n.components){let c=t.createElementNS(fe,"path"),u=d.subpathsEmu.map((h,p)=>`M${h.map(y=>`${T(y.x)} ${T(y.y)}`).join("L")}${d.subpathsClosed?.[p]===false?"":"Z"}`).join("");if(c.setAttribute("d",u),c.setAttribute("fill",d.fillHex!==null?`#${d.fillHex}`:"none"),c.setAttribute("fill-rule","evenodd"),d.fillAlpha<1&&c.setAttribute("fill-opacity",T(Math.max(0,d.fillAlpha))),d.strokeHex!==null&&(c.setAttribute("stroke",`#${d.strokeHex}`),c.setAttribute("stroke-width",T(Math.max(1,d.strokeWidthEmu))),d.strokeInset&&St(t,l,c,u,chunkW3ZUPQIZ_cjs.cb(d.strokeWidthEmu)),d.strokeAlpha<1&&c.setAttribute("stroke-opacity",T(Math.max(0,d.strokeAlpha)))),l.append(c),d.strokeHex!==null)for(let h of d.arrowheadsEmu??[]){let p=t.createElementNS(fe,"path");p.setAttribute("d",`M${h.map(y=>`${T(y.x)} ${T(y.y)}`).join("L")}Z`),p.setAttribute("fill",`#${d.strokeHex}`),p.setAttribute("fill-opacity",T(Math.max(0,Math.min(1,d.strokeAlpha)))),p.setAttribute("data-docx-line-end","triangle"),l.append(p);}}return a.append(l),a}var Ho=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Bo="Unknown",ne=new WeakMap,oe=new WeakMap,Io=256;function kt(t,e){let o=ne.get(t);if(o)return o;let n=new Map,i=new Map;return o=Object.freeze({urlForReady(r,a){let s=n.get(r.resourceKey);if(s)return s;let l;try{l=e.create(r,a);}catch(d){if(d instanceof Error&&d.message.startsWith("PaintImageUrlSource:"))return null;throw d}return n.set(r.resourceKey,l),l},imageFor(r,a,s){let l=i.get(r);if(l&&l.resourceKey===a)return l.element;let d=s.createElement("img");return i.size<Io&&i.set(r,{element:d,resourceKey:a,...l?.readyElement?{readyElement:l.readyElement}:{}}),d},imageForPending(r){return i.get(r)?.element??null},readyElementFor(r){return i.get(r)?.readyElement??null},rememberReadyElement(r,a){let s=i.get(r);s&&i.set(r,{...s,readyElement:a});},reconcile(r,a){for(let[s,l]of n)r.has(s)||(e.revoke(l),n.delete(s));for(let[s,l]of i)a.has(s)||(l.element.removeAttribute("src"),i.delete(s));},revokeAll(){for(let r of n.values())e.revoke(r);n.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),ne.set(t,o),o}function xe(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function vr(t){ne.get(t)?.revokeAll(),ne.delete(t);}function N(t){return Number.isFinite(t)?String(t):"0"}function Pt(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let o=[];for(let n of t){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let i=(n.x-e.x)/e.width*100,r=(n.y-e.y)/e.height*100;o.push(`${N(i)}% ${N(r)}%`);}return `polygon(${o.join(", ")})`}function At(t){let e=t.geometry.contentBounds;return chunkW3ZUPQIZ_cjs.eb({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function Et(t,e){let{crop:o}=t,n=Math.max(0,Math.min(1,o.left)),i=Math.max(0,Math.min(1,o.top)),r=Math.max(0,Math.min(1,o.right)),a=Math.max(0,Math.min(1,o.bottom)),s=Math.max(1e-4,1-n-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${N(1/s*100)}%`,height:`${N(1/l*100)}%`,left:`${N(-n/s*100)}%`,top:`${N(-i/l*100)}%`})}function Fo(t,e){let{resource:o}=t;switch(o.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(o.reason){case "unsupported-format":return e.unsupportedFormat(Ho.get(o.mime)??Bo);case "non-picture-graphic":return e.nonPictureGraphic(t.placeholderGraphicKind??"graphic");case "signature-mismatch":return e.contentMismatch;case "decode-failed":return e.decodeFailed;case "resource-limit":return e.resourceLimit;default:return e.invalidResource}default:return e.invalidResource}}function B(t,e,o){let{accessibility:n}=e;n.hidden||(t.setAttribute("role",o?"link":"img"),n.label?t.setAttribute("aria-label",n.label):o||t.setAttribute("aria-hidden","true"));}function G(t,e,o,n){let i=n?.x??0,r=n?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*o}px`,t.style.top=`${(e.y-r)*o}px`,t.style.width=`${e.width*o}px`,t.style.height=`${e.height*o}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}function Lt(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let o=1/0,n=1/0,i=-1/0,r=-1/0;for(let a of e)o=Math.min(o,a.x),n=Math.min(n,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:o,y:n,width:i-o,height:r-n}}function No(t,e,o,n,i){let r=t.paintBounds,a=Lt(t),s=Et(t);return [n,o.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,Pt(t.geometry.clipPolygon??[],r)??"",he(t.effects)??"",t.effects.bilevel??"",At(t)??"",s.width,s.height,s.left,s.top,o.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function j(t,e,o,n){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",i.dataset.drawingNodeId=e.drawingNodeId,G(i,e.paintBounds,o.scale,n);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");return a.className="docx-drawing-placeholder-label",a.textContent=Fo(e,o.strings),r.append(a),i.append(r),e.hyperlinkHref&&!o.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),B(i,e,true)):B(i,e,false),i}function Oo(t,e,o,n,i,r){let a=e.resource;if(a.kind!=="ready")return j(t,e,o,r);let s=xe(e,o),l=i?.readyElementFor?.(s)??t.createElement("div"),d=No(e,a,o,n,r),c=!e.vectorShape;if(c&&oe.get(l)===d)return l;l.className="docx-drawing docx-drawing-ready",l.style.cssText="",l.dataset.drawingNodeId=e.drawingNodeId,delete l.dataset.docxDrawingLink,delete l.dataset.docxDrawingLinkKind,delete l.dataset.docxDrawingLinkHref,l.removeAttribute("aria-hidden"),l.removeAttribute("aria-label"),l.removeAttribute("role"),l.removeAttribute("tabindex"),G(l,e.paintBounds,o.scale,r);let u=t.createElement("div");u.className="docx-drawing-image-frame",u.style.position="absolute";let h=Lt(e),p=e.paintBounds,y=Pt(e.geometry.clipPolygon??[],e.groupPicture?h:p);y&&((e.groupPicture?u:l).style.clipPath=y),u.style.left=`${(h.x-p.x)*o.scale}px`,u.style.top=`${(h.y-p.y)*o.scale}px`,u.style.width=`${h.width*o.scale}px`,u.style.height=`${h.height*o.scale}px`;let x=he(e.effects);x&&(u.style.filter=x);let m=t.createElement("div");m.className="docx-drawing-transform-stage",m.style.position="relative",m.style.width="100%",m.style.height="100%";let A=At(e);A&&(m.style.transform=A,m.style.transformOrigin="0 0");let w=t.createElement("div");w.className="docx-drawing-crop-viewport",w.style.position="relative",w.style.width="100%",w.style.height="100%",w.style.overflow="hidden";let b=i?.imageFor?.(s,a.resourceKey,t)??t.createElement("img");b.className="docx-drawing-image",b.setAttribute("draggable","false"),b.getAttribute("src")!==n&&b.setAttribute("src",n),b.setAttribute("alt","");let k=Et(e);if(b.style.position="absolute",b.style.width=k.width,b.style.height=k.height,b.style.left=k.left,b.style.top=k.top,b.style.maxWidth="none",b.style.maxHeight="none",w.append(b),m.append(w),u.append(m),l.replaceChildren(u),e.vectorShape){let L=me(t,e,o.scale),E=e.paintBounds;ge(l,L,E,chunkAKF5KM2W_cjs.M(e,E),o.scale),l.append(L);}return mt(t,l,u,e.effects.bilevel),e.hyperlinkHref&&!o.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),B(l,e,true)):B(l,e,false),i?.rememberReadyElement?.(s,l),c?oe.set(l,d):oe.delete(l),l}function Ko(t,e,o,n,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",r.dataset.drawingNodeId=e.drawingNodeId;let a=e.paintBounds;G(r,a,o.scale,i);let s=me(t,e,o.scale);return ge(r,s,a,n,o.scale),r.append(s),e.hyperlinkHref&&!o.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),B(r,e,true)):B(r,e,false),r}function zo(t,e,o,n,i){let r=n.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",a.dataset.drawingNodeId=e.drawingNodeId,a.setAttribute("contenteditable","false"),G(a,e.paintBounds,n.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(o.fillHex!==null||o.strokeHex!==null){let c=t.createElement("div");c.className="docx-drawing-textbox-box",c.style.position="absolute",c.style.left=`${s}px`,c.style.top=`${l}px`,c.style.width=`${e.width*r}px`,c.style.height=`${e.height*r}px`,c.style.boxSizing="border-box",o.fillHex!==null&&(c.style.backgroundColor=`#${o.fillHex}`),o.strokeHex!==null&&(c.style.border=`${Math.max(o.strokeWidthPt*r,.5)}px solid #${o.strokeHex}`),a.append(c);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+o.contentOffset.x*r}px`,d.style.top=`${l+o.contentOffset.y*r}px`,d.style.width=`${o.contentWidth*r}px`,d.style.height=`${Math.max(0,o.contentHeight)*r}px`,d.style.overflow="hidden";for(let c of o.fragments)d.append(n.paintStoryFragment(t,c));for(let c of d.querySelectorAll("[data-paragraph-id]"))c.dataset.textboxParagraphId=c.dataset.paragraphId,delete c.dataset.paragraphId;return a.append(d),B(a,e,false),a}function _o(t,e,o){let n=o.revisionStyles,i=F(e.revisions,n?.authorSlots,n?.styles);if(!i){if(t.dataset.revisionKind===void 0)return;t.classList.remove("docx-drawing--revision","docx-drawing--revision-insertion","docx-drawing--revision-deletion"),delete t.dataset.revisionKind,delete t.dataset.revisionId,delete t.dataset.reviewAuthor,delete t.dataset.revisionDate,delete t.dataset.reviewAuthorSlot;return}let{attribution:r}=i;t.classList.add("docx-drawing--revision",i.deleted?"docx-drawing--revision-deletion":"docx-drawing--revision-insertion"),t.classList.remove(i.deleted?"docx-drawing--revision-insertion":"docx-drawing--revision-deletion"),t.dataset.revisionKind=r.kind,t.dataset.revisionId=r.id,r.author!==""?t.dataset.reviewAuthor=r.author:delete t.dataset.reviewAuthor,r.date!==void 0?t.dataset.revisionDate=r.date:delete t.dataset.revisionDate,n?t.dataset.reviewAuthorSlot=String((n.authorSlots.get(r.author)??0)%$):delete t.dataset.reviewAuthorSlot;}function $t(t,e,o,n,i){let r=Uo(t,e,o,n,i);return r&&_o(r,e,o),r}function Uo(t,e,o,n,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunkAKF5KM2W_cjs.M(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.kind==="anchoredDrawing"&&e.textboxStory!==void 0&&o.paintStoryFragment!==void 0)return zo(t,e,e.textboxStory,o,i);let{resource:a}=e,s=a.kind==="ready"&&o.imageUrlPort&&n?n.urlForReady(a.validatedHandle,a.mime):null;if(e.groupPicture&&a.kind!=="pending"&&!s)return j(t,e,o,i);let l=e.groupPicture!==void 0&&s!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!l)return Ko(t,e,o,r,i);if(a.kind==="ready")return !s||!n?j(t,e,o,i):Oo(t,e,o,s,n,i);if(a.kind==="pending"){let d=n?.readyElementFor?.(xe(e,o))??n?.imageForPending?.(xe(e,o))?.closest(".docx-drawing-ready");return d?(oe.delete(d),d.dataset.drawingNodeId=e.drawingNodeId,G(d,e.paintBounds,o.scale,i),d):j(t,e,o,i)}return j(t,e,o,i)}function Mt(t,e,o,n,i){let r=[];for(let a of e.drawings??[]){let s=$t(t,a,o,n,i);s&&r.push(s);}return Object.freeze(r)}function Tt(t,e,o,n,i,r){let a=[];for(let s of e){if(chunkW3ZUPQIZ_cjs.Tb(s)!==o)continue;let l=$t(t,s,n,i,r);l&&(l.dataset.drawingLayer=o,a.push(l));}return Object.freeze(a)}function jo(t,e){chunkW3ZUPQIZ_cjs.ya(t,({host:o})=>chunkW3ZUPQIZ_cjs.Aa(o,e));}var Rt=new WeakMap;function Go(t){let e=Rt.get(t);if(e)return e;let o=[],n=[];jo(t,r=>{r.resource.kind==="ready"&&o.push(r.resource.resourceKey),n.push(`p${t.index}|${r.drawingNodeId}`);}),chunkW3ZUPQIZ_cjs.ya(t,({host:r})=>chunkW3ZUPQIZ_cjs.Ca(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&o.push(s.resource.resourceKey);}));let i=Object.freeze({resourceKeys:Object.freeze(o),elementKeys:Object.freeze(n)});return Rt.set(t,i),i}var wt=new WeakMap;function Ct(t){let e=wt.get(t);if(e)return e;let o=new Set,n=new Set;for(let r of t.pages){let a=Go(r);for(let s of a.resourceKeys)o.add(s);for(let s of a.elementKeys)n.add(s);}let i=Object.freeze({resourceKeys:o,elementKeys:n});return wt.set(t,i),i}function Dt(t){return Ct(t).resourceKeys}function Ht(t){return Ct(t).elementKeys}function Bt(t){return [t.missingResource,t.externalResource,t.invalidResource,t.contentMismatch,t.decodeFailed,t.resourceLimit,t.pendingResource,t.unsupportedFormat("probe"),t.nonPictureGraphic("probe")].join("\0")}var be=Object.freeze({unsupportedFormat:t=>`Unsupported image format (${t})`,nonPictureGraphic:t=>`Unsupported graphic (${t})`,missingResource:"Image missing",externalResource:"External image not loaded",invalidResource:"Invalid image",contentMismatch:"Image content does not match its type",decodeFailed:"Image could not be decoded",resourceLimit:"Image exceeds size limits",pendingResource:"Loading image"});function Sr(t){return Object.freeze({unsupportedFormat:e=>t("image.unsupportedFormat",{format:e}),nonPictureGraphic:e=>t("image.nonPictureGraphic",{kind:e}),missingResource:t("image.missingResource"),externalResource:t("image.externalResource"),invalidResource:t("image.invalidResource"),contentMismatch:t("image.contentMismatch"),decodeFailed:t("image.decodeFailed"),resourceLimit:t("image.resourceLimit"),pendingResource:t("image.pendingResource")})}function Wo(t,e,o){t.style.position="absolute",t.style.left=`${e.x*o}px`,t.style.top=`${e.y*o}px`,t.style.width=`${e.width*o}px`,t.style.height=`${e.height*o}px`;}function It(t,e,o,n){let i=t.createElement("span");return i.className=e,i.setAttribute("aria-hidden","true"),i.style.position="absolute",i.style.display="block",i.style.left=`${o.x*n}px`,i.style.top=`${o.y*n}px`,i.style.width=`${o.width*n}px`,i.style.height=`${o.height*n}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function P(t,e,o,n,i=0,r=0,a=[]){let s=i+o.box.x,l=r+o.box.y,d=[...a,o.kind];switch(o.kind){case "text":case "fallback":{let c=t.createElement("span");c.className=["docx-equation-node",...d.map(u=>`docx-equation-${u}`)].join(" "),Wo(c,{x:s,y:l,width:o.box.width,height:o.box.height},n),c.textContent=o.text,c.style.display="block",c.style.fontSize=`${o.fontSizePt*n}px`,c.style.lineHeight=`${o.box.height*n}px`,c.style.whiteSpace="pre",e.append(c);break}case "row":for(let c of o.items)P(t,e,c,n,s,l,d);break;case "fraction":P(t,e,o.numerator,n,s,l,d),e.append(It(t,"docx-equation-fraction-bar",{...o.bar,x:s+o.bar.x,y:l+o.bar.y},n)),P(t,e,o.denominator,n,s,l,d);break;case "radical":P(t,e,o.sign,n,s,l,d),o.degree&&P(t,e,o.degree,n,s,l,d),e.append(It(t,"docx-equation-radical-bar",{...o.bar,x:s+o.bar.x,y:l+o.bar.y},n)),P(t,e,o.radicand,n,s,l,d);break;case "script":P(t,e,o.base,n,s,l,d),o.subscript&&P(t,e,o.subscript,n,s,l,d),o.superscript&&P(t,e,o.superscript,n,s,l,d);break;case "nary":P(t,e,o.operator,n,s,l,d),o.lowerLimit&&P(t,e,o.lowerLimit,n,s,l,d),o.upperLimit&&P(t,e,o.upperLimit,n,s,l,d),P(t,e,o.body,n,s,l,d);break}}function Ft(t,e,o,n){let i=o.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=o.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),o.fallbackText&&e.setAttribute("aria-label",o.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${i.box.width*n}px`,e.style.height=`${i.box.height*n}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(i.box.height-i.baseline)*n}px`;let r=t.createDocumentFragment();P(t,r,i,n),e.append(r);}function Nt(t,e,o,n){if(o.glyphOffsetPt!==void 0){let s=o.style.horizontalScalePercent/100,l=o.box.width*n;e.style.width=`${l/s}px`,s!==1&&(e.style.marginRight=`${l-l/s}px`);let d=t.createElement("span");if(d.dataset.docxGlyphOffset="",s!==1&&(d.style.letterSpacing=`${o.style.characterSpacingPt*n/s}px`),o.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${o.glyphOffsetPt*n/s}px`;d.style.setProperty("--docx-glyph-ink-offset",c),e.style.color&&e.style.color!=="inherit"&&d.style.setProperty("--docx-glyph-ink-color",e.style.color),d.style.textShadow=`${c} 0 currentColor`;}return e.append(d),d}let i=o.lineEndWhitespace===true;(o.style.horizontalScalePercent!==100||o.text===" "||i)&&(e.style.width=`${o.box.width*n}px`);let r=o.style.shaping!==void 0&&o.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),o.style.horizontalScalePercent===100))return e;let a=t.createElement("span");if(a.dataset.docxClippedFill="",a.style.display="inline-block",a.style.transform=e.style.transform,a.style.transformOrigin=e.style.transformOrigin,r){let s=o.style.horizontalScalePercent/100;a.style.width=`${o.box.width*n/s}px`,a.style.letterSpacing=`${o.style.characterSpacingPt*n/s}px`,o.style.shaping?.wordSpacingPt&&(a.style.wordSpacing=`${o.style.shaping.wordSpacingPt*n/s}px`),a.style.direction=o.style.shaping?.direction??"ltr",a.style.transformOrigin=a.style.direction==="rtl"?"right":"left";}return a.style.textDecorationLine=e.style.textDecorationLine,a.style.textDecorationStyle=e.style.textDecorationStyle,a.style.textDecorationColor=e.style.textDecorationColor,a.style.textDecorationThickness=e.style.textDecorationThickness,e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("text-decoration-line"),e.style.removeProperty("text-decoration-style"),e.style.removeProperty("text-decoration-color"),e.style.removeProperty("text-decoration-thickness"),e.append(a),a}function Ot(t,e,o){let n=e.textOutline;if(!n||!Number.isFinite(o)||o<=0||!Number.isFinite(n.widthPt)||n.widthPt<=0||n.widthPt>1584||!/^[0-9a-f]{6}$/i.test(n.color))return;let i=n.widthPt*o;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${n.color}`));}var Vo=/^[0-9A-Fa-f]{6}$/;function Xo(t,e,o){let n=t.createElement("div");n.className=`docx-page-border docx-page-border-${e.side}`,n.setAttribute("aria-hidden","true"),n.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*o,a=Y(e.edge.val)?r:Math.max(1,r),s=a-r;n.style.left=`${e.box.x*o-(e.side==="right"?s:0)}px`,n.style.top=`${e.box.y*o-(e.side==="bottom"?s:0)}px`,n.style.width=i?`${a}px`:`${e.box.width*o}px`,n.style.height=i?`${e.box.height*o}px`:`${a}px`;let l=e.edge.color&&Vo.test(e.edge.color)?e.edge.color:"000000";return n.style.backgroundColor=`#${l}`,I(n,e.edge.val,l,i,a,o),n}function Kt(t,e,o){let n=t.createElement("div");n.className="docx-page-borders",n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.inset="0",n.style.pointerEvents="none";for(let i of e.strokes)n.append(Xo(t,i,o));return n}var qo=/^[0-9A-Fa-f]{6}$/;function Yo(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function Re(t){return t&&qo.test(t)?t:"000000"}function ve(t,e){let o=t.createElement("div");return o.className=e,o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.right="0",o.style.bottom="0",o.style.overflow="visible",o.style.pointerEvents="none",o.style.boxSizing="border-box",o}function Zo(t,e,o,n){if(!o)return;let i=`#${Re(o.color)}`,r=`${Math.max(0,o.widthPt*n)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,o.style==="double"||o.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=Yo(o.style);}function Se(t,e,o,n,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=o.side,r.dataset.stroke=o.role,r.style.position="absolute",r.style.left=`${o.x*n}px`,r.style.top=`${o.y*n}px`,r.style.width=`${o.width*n}px`,r.style.height=`${o.height*n}px`,r.style.pointerEvents="none",o.cssStyle==="solid")r.style.backgroundColor=`#${Re(o.color)}`;else {let a=o.side==="top"||o.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?o.height:o.width)*n}px ${o.cssStyle} #${Re(o.color)}`;}e.append(r);}function Jo(t){let e=new Set;for(let o of t)e.add(`${o.side}\0${o.role}`);return e}function Qo(t,e,o,n){let i=Jo(o),r=h=>i.has(`${h}\0middle`),a=ve(t,"docx-table-border-double"),s=ve(t,"docx-table-border-triple"),l=ve(t,"docx-table-border-edge");for(let h of [a,s,l])h.style.zIndex="1";let d=false,c=false,u=false;for(let h of o){if(h.role==="edge"){u=true,Se(t,l,h,n,"docx-table-border-edge-stroke");continue}if(r(h.side)){c=true,Se(t,s,h,n,"docx-table-border-triple-stroke");continue}(h.role==="outer"||h.role==="inner")&&(d=true,Se(t,a,h,n,"docx-table-border-double-stroke"));}d&&e.append(a),c&&e.append(s),u&&e.append(l);}function zt(t,e,o,n){let i=new Set((o?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;Zo(e,a,o?.[r],n),i.has(r)&&(e.style[`border${a}Style`]="none");}o?.strokes&&o.strokes.length>0&&Qo(t,e,o.strokes,n);}function _t(t,e,o,n){if(e.textDirection!=="btLr")return n;let i=t.createElement("div");return i.className="docx-table-cell-content-btlr",i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width=`${e.box.height*o}px`,i.style.height=`${e.box.width*o}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*o}px) rotate(-90deg)`,n.append(i),i}var we="when-selected",Ut=new WeakMap,jt=0;function en(t){let e=Ut.get(t);return e||(jt+=1,e=`alias${jt}`,Ut.set(t,e)),e}function Pe(t){return {...t,drawingStrings:t.drawingStrings??be,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function tn(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},paintStoryFragment:(o,n)=>n.kind==="table"?K(o,n,e):O(o,n,e)})}function Qt(t){return Object.freeze({ctx:tn(t),urlRegistry:t.urlRegistry})}function Gt(t,e,o,n,i,r){ie(t,e,chunkW3ZUPQIZ_cjs.xa(o),n,i,r);}function ie(t,e,o,n,i,r,a=true,s){if(o.length===0)return;let l=Qt(n),d=t.createElement("div");d.className=r==="behind"?"docx-drawing-layer docx-drawing-layer-behind":"docx-drawing-layer docx-drawing-layer-front",d.style.position="absolute",d.style.inset="0",d.style.pointerEvents="none",s&&(d.dataset.docxHfFront=s);for(let c of Tt(t,o,r,l.ctx,l.urlRegistry,i)){if(c.style.pointerEvents=a?"auto":"none",!a)for(let u of c.querySelectorAll(".docx-drawing"))u.style.pointerEvents="none";d.append(c);}d.childElementCount>0&&e.append(d);}function eo(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function to(t,e,o){let n=e.paintBounds,i=chunkW3ZUPQIZ_cjs.ta(e,t.box,o),r=i.x-e.x,a=i.y-e.y,s=l=>Object.freeze({x:l.x+r,y:l.y+a,width:l.width,height:l.height});return Object.freeze({...e,x:e.x+r,y:e.y+a,paintBounds:s(n),hitBounds:s(e.hitBounds),geometry:Object.freeze({...e.geometry,contentBounds:s(e.geometry.contentBounds),paintBounds:s(e.geometry.paintBounds),...e.geometry.clipPolygon?{clipPolygon:Object.freeze(e.geometry.clipPolygon.map(l=>Object.freeze({x:l.x+r,y:l.y+a})))}:{}})})}function on(t,e,o,n,i,r){let a=n.map(l=>to(o,l,r)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=o.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",ie(t,s,a,i,r,"behind",false),s.childElementCount>0&&e.append(s);}function nn(t,e,o,n,i,r,a,s=false){let l=n.filter(eo).map(d=>to(o,d,r));ie(t,e,l,i,r,a,s,o.kind);}var z=/^[0-9A-Fa-f]{6}$/,Wt=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,rn=new Map(Object.entries({single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"})),an=new Map(Object.entries({black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"}));function sn(t){return t.doubleStrike?"double":t.strike?"single":"none"}function ln(t){return t==="thick"||t.endsWith("Heavy")}function oo(t){if(!t.underline)return null;let e=t.underline.color&&z.test(t.underline.color)?t.underline.color:null;return {cssStyle:rn.get(t.underline.variant)??"solid",color:e,heavy:ln(t.underline.variant)}}function no(t,e,o,n){t.textDecorationLine=e,t.textDecorationStyle=o,n.color&&(t.textDecorationColor=`#${n.color}`),n.heavy&&(t.textDecorationThickness=`max(${2*n.scale}px, 0.12em)`);}function Vt(t,e,o){e!=="none"&&no(t,"line-through",e==="double"?"double":"solid",{scale:o});}function Xt(t,e,o){no(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:o});}function dn(t,e,o){let n=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*o}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=n;}function re(t,e,o){let n=t.style,i=o.scale;Ot(n,e,i);let r=chunkW3ZUPQIZ_cjs.da(e);n.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(n.fontWeight="bold"),e.italic&&(n.fontStyle="italic");let a=e.fontFamily&&Wt.test(e.fontFamily)?e.fontFamily:o.defaultFontFamily&&Wt.test(o.defaultFontFamily)?o.defaultFontFamily:null;if(a){let d=o.fontAlias?.(a);n.fontFamily=d?`"${d}", "${a}", ${chunkAKF5KM2W_cjs.O}`:`"${a}", ${chunkAKF5KM2W_cjs.O}`;}e.color&&z.test(e.color)&&(n.color=`#${e.color}`);let s=e.highlight?an.get(e.highlight):void 0;s?(n.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&z.test(e.shading)&&(n.backgroundColor=`#${e.shading}`),e.caps&&(n.textTransform="uppercase"),n.fontKerning=chunkAKF5KM2W_cjs.N(e)?"normal":"none",e.smallCaps&&(n.fontVariant="small-caps");let l=chunkW3ZUPQIZ_cjs.ca(e);l!==0&&(n.position="relative",n.top=`${-l*i}px`),e.characterSpacingPt!==0&&(n.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(n.transformOrigin="left",n.transform=`scaleX(${e.horizontalScalePercent/100})`);}function ro(t,e,o,n,i){let r=o===" "?null:oo(n),a=sn(n),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",Xt(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",Vt(d.style,a,i),l.append(d),e.append(l),s=d;}else r?Xt(e.style,r,i):a!=="none"&&Vt(e.style,a,i);s.textContent=o;}function D(t,e,o,n){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${o.x*n}px`,i.style.top=`${o.y*n}px`,i.style.width=`${o.width*n}px`,i.style.height=`${o.height*n}px`,i}function cn(t,e,o){let n=e.fieldAtom;!n||(t.dataset.fieldAtom=n.formField?"form":"field",!(n.formField?o.shadeFormFields!==false:(o.fieldShading??we)!=="never"))||(t.classList.add("docx-field-atom"),(n.formField||(o.fieldShading??we)==="always")&&t.classList.add("docx-field-atom--shaded"));}function qt(t,e,o){let n=chunkW3ZUPQIZ_cjs.$a(e.props),i=o.revisionStyles,r=F(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!n)){if(r){let{attribution:a}=r;t.classList.add("docx-revision",`docx-revision-${a.kind}`),t.dataset.revisionKind=a.kind,t.dataset.revisionId=a.id,a.author!==""&&(t.dataset.reviewAuthor=a.author),a.date!==void 0&&(t.dataset.revisionDate=a.date);let s=i?.styles.get(a.author);if(i){t.dataset.reviewAuthorSlot=String((i.authorSlots.get(a.author)??0)%$);let c=i.classTokens.get(a.author);if(c)for(let u=0;u<c.length;u+=1)t.classList.add(c[u]);}let d=i!==void 0&&(s?.color!==void 0||i.others==="author")?r.authorColor:r.color;t.style.color=d,t.style.backgroundColor=s?.background??(r.deleted?"var(--doc-revision-deletion-wash)":"var(--doc-revision-insertion-wash)"),r.line&&(t.style.textDecorationLine=r.line,a.kind==="insert"&&r.line==="underline"?(t.style.textDecorationStyle="var(--doc-revision-insertion-decoration-style)",t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"):t.style.textDecorationStyle=r.decorationStyle,t.style.textDecorationColor=d);return}if(t.classList.add("docx-revision","docx-revision-format"),t.dataset.revisionKind="format",t.dataset.formattingKind="rPrChange",t.dataset.revisionId=n.id,n.author!==""&&(t.dataset.reviewAuthor=n.author),n.date!==void 0&&(t.dataset.revisionDate=n.date),i){let a=i.styles.get(n.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(n.author)??0)%$);let s=i.classTokens.get(n.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}}}function un(t,e,o,n,i){let r=t.createElement("span"),a=chunkW3ZUPQIZ_cjs.sa(e.style,e.fontSlot);if(e.equation)return r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end),re(r,a,o),Ft(t,r,e.equation,o.scale),qt(r,e,o),r;r.className="layout-run layout-run-text",r.style.display="inline-block",r.style.verticalAlign="baseline",r.style.boxSizing="border-box",r.style.height=`${n*o.scale}px`,r.style.paddingTop=`${i*o.scale}px`,r.style.lineHeight=`${(n-i)*o.scale}px`,e.range.end>e.range.start?(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)):(r.setAttribute("aria-hidden","true"),r.contentEditable="false"),re(r,a,o),cn(r,e,o),qt(r,e,o);let s=Nt(t,r,e,o.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let l=oo(e.style);l&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",dn(r.style,l,o.scale));}return ro(t,s,e.text,e.style,o.scale),Ve(r,e,o.scale),We(r,e),e.projected&&(r.dataset.docxField="",r.setAttribute("contenteditable","false"),e.noteNav?(r.style.userSelect="none",e.noteNav.direction==="to-note"?(r.dataset.docxNoteRef="",r.dataset.docxNoteScope=e.noteNav.scopeId,e.text.length>0&&r.setAttribute("aria-description",e.text)):(r.dataset.docxNoteMarkBack="",r.dataset.docxNoteScope=e.noteNav.scopeId)):e.fieldAtom?.formControl?(r.style.userSelect="none",r.style.cursor="pointer"):(r.style.pointerEvents="none",r.style.userSelect="none")),r}function Yt(t,e,o){let n=t.createElement("a");return n.className="docx-hyperlink",n.style.cursor=!o.inertLinks&&e.href?"pointer":"default",n.dataset.docxLink=e.id,n.dataset.docxLinkKind=e.kind,n.setAttribute("tabindex","-1"),!o.inertLinks&&e.href&&(n.setAttribute("href",e.href),e.kind==="external"&&n.setAttribute("rel","noopener noreferrer")),e.tooltip&&n.setAttribute("title",e.tooltip),n.style.display="inline-block",n.style.verticalAlign="baseline",n.style.textDecoration="none",n.style.color="inherit",n}function yn(t,e,o,n=false){let i=o.scale,r=t.createElement("div");r.className="docx-line layout-line",r.dataset.lineId=e.id,r.dataset.paragraphId=e.range.paragraphId,r.style.position="absolute",r.style.top=`${e.box.y*i}px`,r.style.left=`${e.contentX*i}px`,r.style.height=`${e.box.height*i}px`,r.style.fontSize="0",r.style.whiteSpace="pre",r.style.overflow="visible";let a=e.leading??0,s=Math.min(Math.max(a,...e.spans.map(f=>f.box.height+a),e.spans.length===0?e.box.height-(e.trailingSpacing??0):0),e.box.height),l=Math.max(0,e.box.height-s);r.style.boxSizing="border-box",r.style.paddingBottom=`${l*i}px`,r.style.lineHeight=`${(e.box.height-l)*i}px`;let d=null,c=null,u=null,h=new Map;for(let[f,g]of chunkW3ZUPQIZ_cjs.Ja(e).entries())h.set(g.paragraphId,f);let p=f=>h.get(f)??0,y=[...e.drawings??[]].sort((f,g)=>p(f.paragraphId)-p(g.paragraphId)||f.start-g.start),x=0,m=(f,g)=>{for(;x<y.length&&(p(y[x].paragraphId)<p(f)||p(y[x].paragraphId)===p(f)&&y[x].start<g);){let v=y[x],S=Math.max(0,v.advanceEnd-v.advanceStart),R=t.createElement("span");R.className="docx-inline-drawing-advance",R.dataset.docxMarker="",R.setAttribute("contenteditable","false"),R.setAttribute("aria-hidden","true"),R.style.display="inline-block",R.style.width=`${S*i}px`,R.style.height=`${v.baselineOffset*i}px`,R.style.lineHeight="0",R.style.pointerEvents="none",R.style.verticalAlign="baseline",r.append(R),x+=1,d=null,c=null;}},A=f=>{let g=f.wrapAdvanceBefore??0;if(g<=.001)return;let v=t.createElement("span");v.className="docx-wrap-advance",v.dataset.docxMarker="",v.setAttribute("contenteditable","false"),v.setAttribute("aria-hidden","true"),v.style.display="inline-block",v.style.width=`${g*i}px`,v.style.height="0",v.style.lineHeight="0",v.style.pointerEvents="none",v.style.verticalAlign="baseline",r.append(v),d=null,c=null;},w=e.spans.some(f=>f.style.shaping!==void 0),b=0,k=0,L=false;for(let[f,g]of e.spans.entries()){m(g.range.paragraphId,g.range.start),w||A(g);let v=Math.min(g.box.height+a,e.box.height),S=g.noteSeparator?je(t,g,e,i):un(t,g,o,v,a);w&&(S.style.position="relative",S.style.left=`${(g.box.x-e.contentX-b)*i}px`,S.style.width||(S.style.width=`${g.box.width*i}px`),S.style.direction=g.style.shaping?.direction??"ltr",S.style.unicodeBidi="isolate",g.style.shaping?.wordSpacingPt&&(S.style.wordSpacing=`${g.style.shaping.wordSpacingPt*i}px`),b+=g.box.width),k>0&&!L&&(S.style.marginLeft=`${k*i}px`);let R=e.spans[f+1],_=w?0:pn(e,f+1,p);L=_>0&&R!==void 0&&fn(g,R),L&&(S.style.wordSpacing=`${_*i}px`),k=_;let M=g.link;if(!M){d=null,c=null,u=null,r.append(S);continue}if(g.fieldAtom){d!==null&&c===M.id&&u===g.range.start||(d=Yt(t,M,o),c=M.id,u=g.range.start,r.append(d)),d.append(S);continue}(!d||c!==M.id||u!==null)&&(d=Yt(t,M,o),c=M.id,u=null,r.append(d)),d.append(S);}if(m(chunkW3ZUPQIZ_cjs.Ja(e)[chunkW3ZUPQIZ_cjs.Ja(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),e.spans.length===0){let f=t.createElement("br");f.style.lineHeight=`${e.box.height*i}px`,r.append(f);}let E=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});Ge(t,r,e,i),o.showParagraphMarks&&e.manualBreakAfter&&r.append(tt(t,e,i,o.revisionStyles,n));let C=Qt(Pe(o));if(e.drawings&&e.drawings.length>0)for(let f of Mt(t,e,C.ctx,C.urlRegistry,E))r.append(f);return r}function pn(t,e,o){if(e<=0||e>=t.spans.length)return 0;let n=t.spans[e-1],i=t.spans[e],r=o(n.range.paragraphId),a=o(i.range.paragraphId);if(t.drawings?.some(d=>{let c=o(d.paragraphId),u=c>r||c===r&&d.start>=n.range.start,h=c<a||c===a&&d.start<i.range.start;return u&&h}))return 0;let l=i.box.x-(n.box.x+n.box.width)-(i.wrapAdvanceBefore??0);return l>.001?l:0}var hn=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function fn(t,e){return !t.text.endsWith(" ")||t.style.horizontalScalePercent!==100||!gn(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!hn.test(t.text.slice(0,-1))}function gn(t,e){return !t.link&&!e.link?true:!t.link||!e.link||t.link.id!==e.link.id||!!t.fieldAtom!=!!e.fieldAtom?false:!t.fieldAtom||t.range.start===e.range.start}function O(t,e,o){let n=o.scale,i=D(t,"div",e.box,n);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),i.dataset.paragraphId=e.paragraphId,i.dataset.fragmentIndex=String(e.fragmentIndex),ue(i,e),o.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),o.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&z.test(e.shading)&&e.shadingBox&&i.append(bn(t,e,n)),e.marker&&i.append(mn(t,e,o));for(let r of e.lines)for(let a of r.spans){if(!a.tabLeader)continue;let s=xn(t,e,r,a,o);s&&i.append(s);}if(o.showParagraphMarks&&e.paragraphEnd||e.markRevisions&&e.markRevisions.length>0){let r=ot(t,e.markRevisions??[],n,o.revisionStyles),a=e.lines[e.lines.length-1];a&&(r.style.top=`${(a.box.y-e.box.y)*n}px`,ce(r,de(a,chunkW3ZUPQIZ_cjs.Xb(e.props)),e.box.x,n),i.append(r));}for(let r of e.lines){let a=yn(t,r,o,chunkW3ZUPQIZ_cjs.Xb(e.props));e.markFormatRevision&&r===e.lines[e.lines.length-1]&&ue(a,e,true),a.style.top=`${(r.box.y-e.box.y)*n}px`,a.style.left=`${(r.contentX-e.box.x)*n}px`,i.append(a);}if(e.borders)for(let r of e.borders)i.append(Zt(t,e,r,n));else e.bottomBorder&&i.append(Zt(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},n));return i}function mn(t,e,o){let n=e.marker,i=o.scale,r=Ue(t,e,Pe(o));if(r)return r;let a=e.lines[0]?.leading??0,s=D(t,"span",n.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(n.box.x-e.box.x)*i}px`,s.style.top=`${(n.box.y-e.box.y)*i}px`,s.style.display="block",s.style.overflow="visible",s.style.whiteSpace="pre";let l=e.lines[0],d=l?Math.max(a,...l.spans.map(p=>p.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):n.box.height,c=Math.min(d,n.box.height),u=Math.max(0,n.box.height-c);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${u*i}px`,s.style.lineHeight=`${c*i}px`;let h=t.createElement("span");return h.style.display="inline-block",h.style.verticalAlign="baseline",h.style.boxSizing="border-box",h.style.height=`${c*i}px`,h.style.paddingTop=`${a*i}px`,h.style.lineHeight=`${(c-a)*i}px`,re(h,n.style,o),n.pieces&&(h.dir="rtl"),ro(t,h,n.text,n.style,i),s.append(h),s}function xn(t,e,o,n,i){let r=n.tabLeader?chunkW3ZUPQIZ_cjs.Kb.get(n.tabLeader):void 0;if(!r||n.box.width<=0)return null;let a=i.scale,s=t.createElement("div");s.className="docx-tab-leader",s.dataset.docxTabLeader="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",n.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(n.box.x-e.box.x)*a}px`,s.style.top=`${(o.box.y-e.box.y)*a}px`,s.style.width=`${n.box.width*a}px`,s.style.height=`${o.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=o.leading??0,d=Math.min(n.box.height+l,o.box.height),c=Math.max(0,o.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(o.box.height-c)*a}px`;let u=t.createElement("span");u.style.display="inline-block",u.style.verticalAlign="baseline",re(u,n.style,i),u.style.boxSizing="border-box",u.style.height=`${d*a}px`,u.style.paddingTop=`${l*a}px`,u.style.lineHeight=`${(d-l)*a}px`,n.tabLeader==="heavy"&&(u.style.fontWeight="bold");let h=n.tabLeaderAdvancePt&&n.tabLeaderAdvancePt>0?n.tabLeaderAdvancePt:Math.max(.5,n.style.fontSizePt*.2),p=chunkAKF5KM2W_cjs.na((i.tabLeaderOriginXPt??0)+n.box.x,n.box.width,h);return u.style.marginLeft=`${p.offsetPt*a}px`,u.textContent=r.repeat(p.count),u.style.letterSpacing="0",s.append(u),s}function bn(t,e,o){let n=e.shadingBox,i=D(t,"div",n,o);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(n.x-e.box.x)*o}px`,i.style.top=`${(n.y-e.box.y)*o}px`,i.style.backgroundColor=`#${e.shading}`,i}function Zt(t,e,o,n){let i=D(t,"div",o.box,n);i.className=`docx-paragraph-border docx-paragraph-border-${o.side}`,i.setAttribute("aria-hidden","true");let r=(o.box.x-e.box.x)*n,a=(o.box.y-e.box.y)*n,s=o.side==="left"||o.side==="right"||o.side==="bar",l=(s?o.box.width:o.box.height)*n,c=Y(o.edge.val)?l:Math.max(1,l);i.style.left=`${o.side==="right"?r-(c-l):r}px`,i.style.top=`${o.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let u=o.edge.color&&z.test(o.edge.color)?o.edge.color:"000000";return i.style.backgroundColor=`#${u}`,I(i,o.edge.val,u,s,c,n),i}function vn(t,e,o,n){let i=n.scale,r=D(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-o.x)*i}px`,r.style.top=`${(e.box.y-o.y)*i}px`,r.style.boxSizing="border-box",r.style.overflow="visible",r.dataset.cellId=e.id,r.dataset.gridColumn=String(e.gridColumn),r.dataset.gridSpan=String(e.gridSpan),e.rowSpan&&e.rowSpan>1&&(r.dataset.rowSpan=String(e.rowSpan)),e.paintInert||e.vMergeContinue)return r.dataset.vMergeContinue="true",r.style.border="none",r.style.backgroundColor="transparent",r;r.style.border="none",zt(t,r,e.borders,i),e.shading&&z.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`);let a=_t(t,e,i,r);for(let s of e.blocks){let l=s.kind==="table"?K(t,s,n):O(t,s,n);l.style.left=`${(s.box.x-e.box.x)*i}px`,l.style.top=`${(s.box.y-e.box.y)*i}px`,a.append(l);}return r}function K(t,e,o){let n=o.scale,i=D(t,"div",e.box,n);i.className="docx-table-fragment layout-table",i.dataset.tableId=e.tableId,i.dataset.fragmentIndex=String(e.fragmentIndex),i.style.overflow="visible";for(let r of e.rows){let a=D(t,"div",r.box,n);a.className="docx-table-row",r.revisionKind&&(a.classList.add("docx-table-row--revision",r.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),a.dataset.revisionKind=r.revisionKind,r.revisionId!==void 0&&(a.dataset.revisionId=r.revisionId),r.revisionAuthor!==void 0&&(a.dataset.reviewAuthor=r.revisionAuthor),r.revisionDate!==void 0&&(a.dataset.revisionDate=r.revisionDate)),a.dataset.rowId=r.id,r.isHeaderRepeat&&(a.dataset.headerRepeat="true"),a.style.left=`${(r.box.x-e.box.x)*n}px`,a.style.top=`${(r.box.y-e.box.y)*n}px`,a.style.overflow="visible";for(let s of r.cells)a.append(vn(t,s,r.box,o));i.append(a);}return i}function Sn(t,e,o,n,i){let r={...o,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=D(t,"div",e.box,r.scale);if(a.className="docx-page",a.style.fontFamily=chunkAKF5KM2W_cjs.O,a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(n),!n)return a;let s=Object.freeze({x:e.box.x,y:e.box.y,width:e.box.width,height:e.box.height}),l=Object.freeze({x:-(e.contentBox.x-e.box.x),y:-(e.contentBox.y-e.box.y),width:e.box.width,height:e.box.height});Gt(t,a,e,r,l,"behind");for(let p of [e.header,e.footer])p?.anchoredDrawings?.length&&on(t,a,p,p.anchoredDrawings,r,{x:e.box.x,y:e.box.y,width:e.box.width,height:e.box.height});let d=e.pageBorders?Kt(t,e.pageBorders,r.scale):null;d&&e.pageBorders?.zOrder==="back"&&a.append(d);let c=t.createElement("div");c.className="docx-page-content",c.style.position="absolute",c.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,c.style.top=`${(e.contentBox.y-e.box.y)*r.scale}px`,c.style.width=`${e.contentBox.width*r.scale}px`,c.style.height=`${e.contentBox.height*r.scale}px`,r.activeHeaderFooterRId&&c.setAttribute("contenteditable","false");for(let p of e.columnSeparators??[]){let y=t.createElement("div");y.className="docx-column-separator",y.setAttribute("contenteditable","false"),y.style.position="absolute",y.style.left=`${p.x*r.scale}px`,y.style.top=`${p.y*r.scale}px`,y.style.width=`${p.width*r.scale}px`,y.style.height=`${p.height*r.scale}px`,y.style.backgroundColor="currentColor",y.style.pointerEvents="none",c.append(y);}let u=i?new Map:null;for(let p of e.fragments){let y=p.kind==="table"?K(t,p,r):O(t,p,r);u?.set(p,y),c.append(y);}i&&u&&(i.content=c,i.blocks=u),a.append(c),d&&e.pageBorders?.zOrder==="front"&&a.append(d),Gt(t,a,e,r,l,"inFront"),nt(t,a,e,r,O,K);for(let p of ["header","footer"]){if(e[p]||e.parityBlank)continue;let y=t.createElement("div");y.className="docx-hf docx-hf--placeholder",y.dataset.docxHf=p,y.setAttribute("contenteditable","false");let x=p==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),m=Math.min(x,Rn);if(m<=0)continue;let A=Math.max(0,Math.min(wn,x-m)),w=p==="header"?A:e.box.height-A-m;y.style.position="absolute",y.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,y.style.top=`${w*r.scale}px`,y.style.width=`${e.contentBox.width*r.scale}px`,y.style.height=`${m*r.scale}px`,a.append(y);}for(let p of [e.header,e.footer]){if(!p)continue;let y=p.anchoredDrawings??[],x=ee(p,e.index,r),m=t.createElement("div");m.className="docx-hf",m.dataset.docxHf=p.kind,p.rId&&(m.dataset.docxRId=p.rId),x?(m.dataset.docxHfActive="",m.setAttribute("contenteditable","true")):m.setAttribute("contenteditable","false"),m.style.position="absolute",m.style.left=`${(p.box.x-e.box.x)*r.scale}px`,m.style.top=`${(p.box.y-e.box.y)*r.scale}px`,m.style.width=`${p.box.width*r.scale}px`;let A=pe(p,e,x);m.style.height=`${A*r.scale}px`,m.style.overflow="visible";let w=(e.box.x-p.box.x)*r.scale,b=(e.box.y-p.box.y)*r.scale,k=w+e.box.width*r.scale,L=b+e.box.height*r.scale;m.style.clipPath=`polygon(${w}px ${b}px, ${k}px ${b}px, ${k}px ${L}px, ${w}px ${L}px)`;let E=Object.freeze({x:0,y:0,width:p.box.width,height:p.box.height}),C=y.filter(g=>!eo(g)),f={...r,inertLinks:true,tabLeaderOriginXPt:p.box.x-e.box.x};for(let g of p.fragments)m.append(g.kind==="table"?K(t,g,f):O(t,g,f));ie(t,m,C,Pe(r),E,"inFront",x),a.append(m),pt(t,a,m,e,p,r.scale),nn(t,a,p,y,r,s,"inFront",x);}rt(t,a,e,r);let h=ut(t,e,r.scale,r.changeBars,r.changeBarsToggle);return h&&a.append(h),a}var Rn=30,wn=36,ke=new WeakMap;function ii(t){ke.delete(t);}function kn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pn(t,e){let o=Object.keys(t);if(o.length!==Object.keys(e).length)return false;for(let n of o){let i=t[n],r=e[n];if(i!==r)return false}return true}function An(t,e){if(t.length!==e.length)return false;for(let o=0;o<t.length;o+=1)if(t[o]!==e[o])return false;return true}function En(t,e){if(t===e)return false;let o=new Set([...Object.keys(t),...Object.keys(e)]);for(let n of o){if(n==="fragments")continue;let i=t[n],r=e[n];if(i!==r&&!(Array.isArray(i)&&Array.isArray(r)&&An(i,r))&&!(typeof i=="object"&&typeof r=="object"&&i!==null&&r!==null&&!Array.isArray(i)&&!Array.isArray(r)&&Pn(i,r)))return false}return true}var Jt="docx-column-separator";function Ln(t,e,o,n){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...n,paintInstance:`p${o.index}`,tabLeaderOriginXPt:o.contentBox.x-o.box.x},s=new Map,l=[];for(let h of o.fragments){let p=r.get(h)??(h.kind==="table"?K(t,h,a):O(t,h,a));s.set(h,p),l.push(p);}let d=new Set(l),c=i.firstChild;for(;c;){let h=c.nextSibling,p=c;!d.has(p)&&p.classList?.contains(Jt)!==true&&c.remove(),c=h;}let u=i.firstChild;for(;u&&u.classList?.contains(Jt);)u=u.nextSibling;for(let h of l){if(h===u){u=u.nextSibling;continue}i.insertBefore(h,u);}return yt(t,e.element,o,n.scale,n.changeBars,n.changeBarsToggle),{record:o,materialized:true,element:e.element,content:i,blocks:s}}function $n(t,e,o,n){let i=t.element;return !t.materialized&&kn(t.record.box,e.box)&&i.style.left===`${e.box.x*o}px`&&i.style.top===`${e.box.y*o}px`&&i.style.width===`${e.box.width*o}px`&&i.style.height===`${e.box.height*o}px`&&i.getAttribute("aria-hidden")===(n?"true":null)}function Mn(t,e,o={}){Tn(t,e,o);}function Tn(t,e,o,n){t.classList.toggle("docx-show-paragraph-marks",o.showParagraphMarks??false);let i=o.contentControlChrome,r=i?`${i.showAll===true?"1":"0"}:${i.activeIds?[...i.activeIds].sort().join(","):""}:${i.checkedIds?[...i.checkedIds].sort().join(","):""}:${i.tocControlIds?[...i.tocControlIds].sort().join(","):""}:${i.suppressedIds?[...i.suppressedIds].sort().join(","):""}:${i.readOnly===true?"ro":""}`:"",a=o.drawingStrings??be,s=o.imageUrlPort!==void 0?kt(t,o.imageUrlPort):null,l=i?.additionalBoundaries?i.additionalBoundaries.flatMap(f=>f.fragments.map(g=>`${f.id}:${g.pageIndex}:${g.box.x}:${g.box.y}:${g.box.width}:${g.box.height}`)).sort().join(","):"",d=o.readOnlyParagraphIds?[...o.readOnlyParagraphIds].sort().join(","):"",c=o.emptyTocPlaceholderIds?[...o.emptyTocPlaceholderIds].sort().join(","):"",u=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",h=et(o.revisionStyles,e,n),p={scale:o.scale??96/72,ariaHidden:o.ariaHidden??true,drawingStrings:a,urlRegistry:s,...o.fontAlias?{fontAlias:o.fontAlias}:{},...o.readOnlyParagraphIds?{readOnlyParagraphIds:o.readOnlyParagraphIds}:{},...o.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:o.emptyTocPlaceholderIds}:{},...o.defaultFontFamily?{defaultFontFamily:o.defaultFontFamily}:{},...o.fieldShading?{fieldShading:o.fieldShading}:{},showParagraphMarks:o.showParagraphMarks??false,changeBars:o.changeBars??"all-markup",changeBarsToggle:o.changeBarsToggle??false,...o.shadeFormFields!==void 0?{shadeFormFields:o.shadeFormFields}:{},...h?{revisionStyles:h}:{},...o.imageUrlPort?{imageUrlPort:o.imageUrlPort}:{},...o.activeHeaderFooterRId?{activeHeaderFooterRId:o.activeHeaderFooterRId}:{},...o.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:o.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},y=t.ownerDocument,x=`${p.scale}|${p.ariaHidden}|${p.fontAlias?en(p.fontAlias):""}|${p.defaultFontFamily??""}|cc:${r}:${l}|toc:${u}|ro:${d}|tocEmpty:${c}|${o.imageUrlPort?"url":""}|${Bt(a)}|rev:${Qe(h)}|marks:${o.showParagraphMarks??false}|bars:${p.changeBars}:${p.changeBarsToggle}`,m=ke.get(t),A=m?.parameters===x,w=A?new Map(m.pages.map(f=>[f.record,f])):null,b=m?new Map(m.pages.map(f=>[f.record.index,f])):null,k=e.pages.map(f=>{let g=o.materialize?.has(f.index)??true,v=w?.get(f);if(v&&v.materialized===g)return v;let S=b?.get(f.index);if(!g&&S&&$n(S,f,p.scale,p.ariaHidden))return {record:f,materialized:false,element:S.element};if(A&&g&&S?.materialized&&En(S.record,f)){let M=Ln(y,S,f,p);if(M)return M}let R={},_=Sn(y,f,p,g,R);return {record:f,materialized:g,element:_,...R.content?{content:R.content}:{},...R.blocks?{blocks:R.blocks}:{}}});ke.set(t,{parameters:x,pages:k}),t.dataset.revision=String(e.revision),s&&s.reconcile(Dt(e),Ht(e));let L=new Set(k.map(f=>f.element)),E=t.firstChild;for(;E;){let f=E.nextSibling;L.has(E)||E.remove(),E=f;}let C=t.firstChild;for(let f of k){if(f.element===C){C=C.nextSibling;continue}t.insertBefore(f.element,C);}ht(k,p);}function Cn(t,e,o,n){let i=t.ownerDocument,r=n.scale,a=[];for(let s of o){let l=e.pages[s.pageIndex];if(!l)continue;let d=i.createElement("div");d.className=s.className??n.className??"docx-cell-selection-rect",d.style.position="absolute";let c=n.pageOffsetX?.get(s.pageIndex)??0;d.style.left=`${(l.contentBox.x+s.x+c)*r}px`,d.style.top=`${(l.contentBox.y+s.y)*r}px`,d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,s.reviewAuthor&&(d.dataset.reviewAuthor=s.reviewAuthor.author,d.dataset.reviewAuthorSlot=String(s.reviewAuthor.slot%$),d.style.setProperty("--doc-review-author-current",s.reviewAuthor.color)),s.activeBackground!==void 0&&(d.style.backgroundColor=s.activeBackground,d.style.boxShadow="none"),a.push(d);}t.replaceChildren(...a);}
|
|
1
|
+
'use strict';var chunkKJLPVGSX_cjs=require('./chunk-KJLPVGSX.cjs'),chunkLF5LPZOP_cjs=require('./chunk-LF5LPZOP.cjs');function Ue(t,e,o){let n=e.marker?.picture,i=o.urlRegistry;if(!n||n.resource.kind!=="ready"||!i)return null;let r=o.scale,a=i.urlForReady(n.resource.validatedHandle,n.resource.mime);if(a===null)return null;let s=n.box,l=t.createElement("span");l.className="docx-list-marker",l.dataset.docxMarker="",l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.x-e.box.x)*r}px`,l.style.top=`${(s.y-e.box.y)*r}px`,l.style.width=`${s.width*r}px`,l.style.height=`${s.height*r}px`,l.style.display="block",l.style.overflow="hidden";let d=t.createElement("img");return d.className="docx-list-marker-image",d.setAttribute("src",a),d.setAttribute("alt",""),d.setAttribute("draggable","false"),d.style.display="block",d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,d.style.maxWidth="none",d.style.maxHeight="none",l.append(d),l}function je(t,e,o,n){let i=t.createElement("span");i.dataset.docxNoteRule="single",i.setAttribute("contenteditable","false"),i.setAttribute("aria-hidden","true"),i.style.display="inline-block",i.style.position="relative",i.style.verticalAlign="top",i.style.width=`${e.box.width*n}px`,i.style.height=`${Math.min(e.box.height+(o.leading??0),o.box.height)*n}px`;let r=chunkLF5LPZOP_cjs.me(e,o),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-o.box.y)*n}px`,a.style.width=`${r.width*n}px`,a.style.height=`${r.height*n}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function Y(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function I(t,e,o,n,i,r){switch(e){case "dashed":case "dashSmallGap":case "dotDash":case "dotDotDash":case "dashDotStroked":{let a=Math.max(4,4*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"bottom":"right"}, #${o} 60%, transparent 60%)`,t.style.backgroundSize=n?`100% ${a}px`:`${a}px 100%`;return}case "dotted":{let a=Math.max(3,3*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"bottom":"right"}, #${o} 35%, transparent 35%)`,t.style.backgroundSize=n?`100% ${a}px`:`${a}px 100%`;return}case "double":case "doubleWave":case "triple":case "thinThickSmallGap":case "thickThinSmallGap":case "thinThickThinSmallGap":case "thinThickMediumGap":case "thickThinMediumGap":case "thinThickThinMediumGap":case "thinThickLargeGap":case "thickThinLargeGap":case "thinThickThinLargeGap":{let a=i/3;t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${n?"right":"bottom"}, #${o} 0px, #${o} ${a}px, transparent ${a}px, transparent ${a*2}px, #${o} ${a*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${o}`,n?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=n?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${o}`,n?t.style.width="0px":t.style.height="0px";return}default:return}}var io=/^[0-9A-Fa-f]{6}$/;function Ge(t,e,o,n){for(let{box:i,edge:r,side:a}of chunkLF5LPZOP_cjs.Ub(o)){let s=r.color&&io.test(r.color)?r.color:"000000",l=t.createElement("span");l.className=`docx-run-border docx-run-border-${a}`,l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),Object.assign(l.style,{position:"absolute",pointerEvents:"none",left:`${(i.x-o.contentX)*n}px`,top:`${(i.y-o.box.y)*n}px`,width:`${i.width*n}px`,height:`${i.height*n}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";I(l,r.val,s,d,(d?i.width:i.height)*n,n),e.append(l);}}function We(t,e){let o=e.fieldAtom?.formControl;if(o?.kind!=="dropdown"||o.entries.length===0)return;let n=t.ownerDocument.createElement("select");n.dataset.docxFormDropdown="",n.dataset.docxMarker="",n.setAttribute("aria-label",o.accessibleName??e.text);for(let[i,r]of o.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,n.append(a);}n.selectedIndex=o.selectedIndex,Object.assign(n.style,{position:"absolute",inset:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer",font:"inherit",padding:"0",border:"0"}),t.style.position="relative",t.append(n);}function Ve(t,e,o){let n=e.fieldAtom?.formControl;if(n?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(n.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(n.checked)),n.accessibleName&&t.setAttribute("aria-label",n.accessibleName),t.style.width=`${e.box.width*o}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}var $=8,Ye={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},Ze=Object.keys(Ye),ao=Ze.filter(t=>Ye[t]==="painted"),so=new Set(["http","https","data","blob"]),lo=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function co(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let o=lo.exec(e);if(o)return !so.has(o[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let n=i=>e[i]==="/"||e[i]==="\\";return n(0)&&n(1)?void 0:e}function uo(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},o=Object.prototype.hasOwnProperty;for(let n of Ze){if(!o.call(t,n))continue;let i=t[n];if(!(typeof i!="string"||i.length===0)){if(n==="avatarUrl"){let r=co(i);r!==void 0&&(e.avatarUrl=r);continue}e[n]=i;}}return Object.keys(e).length>0?e:null}function J(t){return `var(--doc-review-author-${t%$})`}function Je(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[o,n]of Object.entries(t.authors)){let i=uo(n);i&&e.set(o,i);}return e}function jn(t,e){let o=Je(e);return [...t].map(([n,i])=>{let r=o.get(n);return {author:n,slot:i,color:r?.color??J(i),...r?{style:r}:{}}})}var yo=128;function Z(t,e,o=yo){let n=e.length<o?e.length:o,i=t;for(let r=0;r<n;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function po(t,e,o){let n=Z(2166136261,o);for(let i of t.keys())n=Z(n,i);for(let[i,r]of e){n=Z(n,i);for(let a of ao)n=Z(n,r[a]??"",1/0);}return `${t.size}.${e.size}.${(n>>>0).toString(36)}`}function Qe(t){return t===null?"kind":t.key}var le=new WeakMap;function et(t,e,o){if(t==="kind")return null;let n=le.get(e);if(n&&n.option===t&&n.authorSlots===o)return n.context;let i=Je(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return le.set(e,{option:t,authorSlots:o,context:null}),null;let a=o??fo(e),s=new Map;for(let[d,c]of i){if(!c.spanClassName)continue;let u=c.spanClassName.split(/\s+/).filter(h=>h.length>0);u.length>0&&s.set(d,u);}let l={authorSlots:a,styles:i,classTokens:s,others:r,key:po(a,i,r)};return le.set(e,{option:t,authorSlots:o,context:l}),l}var Xe=new WeakMap;function ho(t){let e=Xe.get(t);if(e)return e;let o=[],n=new Set,i=r=>{r===""||n.has(r)||(n.add(r),o.push(r));};for(let r of chunkLF5LPZOP_cjs.va(t)){for(let s of r.lines)for(let l of s.spans){let d=l.revisions;if(d!==void 0)for(let c=0;c<d.length;c+=1)i(d[c].author);for(let c of l.props){if(c.localName!=="rPrChange"&&c.localName!=="pPrChange")continue;let u=c.attributes?.author;i(u??"");break}}for(let s of r.lines){let l=s.drawings;if(l!==void 0)for(let d=0;d<l.length;d+=1){let c=l[d].revisions;if(c!==void 0)for(let u=0;u<c.length;u+=1)i(c[u].author);}}let a=r.markRevisions;if(a)for(let s=0;s<a.length;s+=1)i(a[s].author);}return Xe.set(t,o),o}var qe=new WeakMap;function fo(t){let e=qe.get(t);if(e)return e;let o=new Map,n=i=>{for(let r of ho(i))o.has(r)||o.set(r,o.size);};for(let i of t.pages){n(i.fragments),i.header&&n(i.header.fragments),i.footer&&n(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&n(r.separator.fragments),r.continuationNotice&&n(r.continuationNotice.fragments);for(let a of r.notes)n(a.fragments);}for(let r of [i.anchoredDrawings,i.header?.anchoredDrawings,i.footer?.anchoredDrawings])if(r)for(let a of r){if(a.accessibility.hidden)continue;let s=a.revisions;if(s!==void 0)for(let l=0;l<s.length;l+=1){let d=s[l].author;d!==""&&!o.has(d)&&o.set(d,o.size);}a.textboxStory&&n(a.textboxStory.fragments);}}return qe.set(t,o),o}function go(t,e){let o=null;for(let n of e)n===""||t.has(n)||(o===null&&(o=new Map(t)),o.has(n)||o.set(n,o.size));return o??t}function Gn(){let t=new Map,e=0;return {resolve(o,n){let i=go(o,n);for(let r of i.keys())t.has(r)||(t.set(r,e),e+=1);return new Map([...i.keys()].map(r=>[r,t.get(r)]).sort((r,a)=>r[1]-a[1]))}}}function F(t,e,o){if(t===void 0||t.length===0)return null;let n=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=n.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:n,line:i&&a==="underline"?"line-through":a,decorationStyle:r==="moveFrom"||r==="moveTo"?"double":"solid",color:i?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)",authorColor:o?.get(n.author)?.color??J(e?.get(n.author)??0),deleted:i}}function de(t,e=false){let o=t.spans.find(i=>i.style.shaping)?.style.shaping?.baseLevel,n=o===void 0?e:o===1;return t.spans.length?{x:n?t.spans.reduce((i,r)=>Math.min(i,r.box.x),1/0):t.spans.reduce((i,r)=>Math.max(i,r.box.x+r.box.width),-1/0),rtl:n}:{x:t.contentX,rtl:n}}function ce(t,e,o,n){t.style.left=`${(e.x-o)*n}px`,t.style.marginLeft=`${(e.rtl?-2:2)*n}px`,e.rtl&&(t.style.transform="translateX(-100%)");}function tt(t,e,o,n,i=false){let r=t.createElement("span"),a=e.spans[e.spans.length-1];r.className="docx-line-break-mark",r.dataset.docxMarker="",r.setAttribute("aria-hidden","true"),r.contentEditable="false",r.textContent="\u21B5",r.style.position="absolute",r.style.pointerEvents="none",r.style.userSelect="none",ce(r,de(e,i),e.contentX,o),r.style.top=`${e.leading*o}px`,r.style.fontSize=`${(a?.style.fontSizePt??e.box.height)*o}px`,r.style.lineHeight=`${Math.max(0,e.box.height-e.leading-(e.trailingSpacing??0))*o}px`,r.style.color="var(--doc-revision-format)";let s=F(a?.revisions,n?.authorSlots,n?.styles);if(s){let{attribution:l}=s,d=n?.styles.get(l.author),c=n&&(d?.color!==void 0||n.others==="author");if(r.style.color=c?s.authorColor:s.color,r.dataset.revisionKind=l.kind,r.dataset.revisionId=l.id,r.dataset.reviewAuthor=l.author,n){r.dataset.reviewAuthorSlot=String((n.authorSlots.get(l.author)??0)%$);for(let u of n.classTokens.get(l.author)??[])r.classList.add(u);}s.line&&(r.style.textDecorationLine=s.line,r.style.textDecorationStyle=s.decorationStyle,r.style.textDecorationColor=r.style.color);}return r}function ot(t,e,o,n){let i=chunkLF5LPZOP_cjs.Ya(e);if(!i){let d=t.createElement("span");return d.className="docx-paragraph-mark",d.setAttribute("aria-hidden","true"),d.contentEditable="false",d.textContent="\xB6",d.style.position="absolute",d.style.pointerEvents="none",d.style.marginLeft=`${2*o}px`,d.style.color="var(--doc-revision-format)",d}let r=t.createElement("span");r.className=`docx-paragraph-mark docx-revision-pmark docx-revision-pmark-${i.kind}`,r.setAttribute("aria-hidden","true"),r.contentEditable="false",r.dataset.revisionKind=i.kind,r.dataset.revisionId=i.id,i.author!==""&&(r.dataset.reviewAuthor=i.author),r.dataset.revisionIds=e.map(d=>d.id).join(" "),r.dataset.revisionKinds=e.map(d=>d.kind).join(" "),r.textContent="\xB6",r.style.position="absolute",r.style.pointerEvents="none",r.style.marginLeft=`${2*o}px`;let a=chunkLF5LPZOP_cjs.Za(i),s=n?.styles.get(i.author),l=n?(n.authorSlots.get(i.author)??0)%$:0;if(n){r.dataset.reviewAuthorSlot=String(l);let d=n.classTokens.get(i.author);if(d)for(let c=0;c<d.length;c+=1)r.classList.add(d[c]);}return r.style.color=s?.color??(n?.others==="author"?J(l):a?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),a&&(r.style.textDecorationLine="line-through"),r}function ue(t,e,o=false){let n=o?null:chunkLF5LPZOP_cjs.$a(e.props.filter(r=>r.localName==="pPrChange")),i=n??e.markFormatRevision;i&&(mo(t,i,n?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function mo(t,e,o){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=o,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function nt(t,e,o,n,i,r){for(let a of [o.footnotes,o.endnotes])a&&e.append(xo(t,o,a,n,i,r));}function xo(t,e,o,n,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=o.kind,a.dataset.docxNotesPlacement=o.placement,a.style.position="absolute",a.style.left=`${(o.box.x-e.box.x)*n.scale}px`,a.style.top=`${(o.box.y-e.box.y)*n.scale}px`,a.style.width=`${o.box.width*n.scale}px`,a.style.height=`${o.box.height*n.scale}px`;for(let s of [o.separator,o.continuationNotice]){if(!s)continue;let l=t.createElement("div");l.className="docx-note-separator",l.dataset.docxNoteSeparator=s.kind,l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.box.x-o.box.x)*n.scale}px`,l.style.top=`${(s.box.y-o.box.y)*n.scale}px`,l.style.width=`${s.box.width*n.scale}px`,l.style.height=`${s.box.height*n.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)bo(l,t,d??"single",n.scale,s.box.height,s.ruleColor);else {let c={...n,tabLeaderOriginXPt:s.box.x-e.box.x};for(let u of s.fragments)l.append(u.kind==="table"?r(t,u,c):i(t,u,c));}a.append(l);}for(let s of o.notes){let l={...n,tabLeaderOriginXPt:s.box.x-e.box.x},d=t.createElement("div");d.className="docx-note",d.dataset.docxNote=s.noteKind,d.dataset.docxNoteId=String(s.noteId),d.dataset.docxNoteScope=s.scopeId,s.mark!==null&&(d.dataset.docxNoteMark=s.mark),s.continuation&&(d.dataset.docxNoteContinuation=""),d.setAttribute("role","doc-footnote"),d.style.position="absolute",d.style.left=`${(s.box.x-o.box.x)*n.scale}px`,d.style.top=`${(s.box.y-o.box.y)*n.scale}px`,d.style.width=`${s.box.width*n.scale}px`,d.style.height=`${s.box.height*n.scale}px`;for(let c of s.fragments)d.append(c.kind==="table"?r(t,c,l):i(t,c,l));a.append(d);}return a}function bo(t,e,o,n,i,r){t.dataset.docxNoteRule=o;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,n*.75);if(o==="single"){t.style.backgroundColor=a,t.style.height=`${i*n}px`;return}t.style.opacity="0.85";let l=Math.max(1,n*1.25);for(let d of [0,s+l]){let c=e.createElement("div");c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top=`${d}px`,c.style.height="0",c.style.borderTop=`${s}px solid currentColor`,t.append(c);}}var vo=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function rt(t,e,o,n){let i=n.contentControlChrome,r=i?.suppressedIds,a=(o.contentControls??[]).filter(h=>r?.has(h.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(h=>r?.has(h.id)!==true&&!a.some(p=>p.id===h.id))];if(s.length===0)return;let l=i?.showAll===true,d=i?.activeIds,c=i?.hoverIds,u=i?.tocControlIds;for(let h of s){let p=u?.has(h.id)===true,y=!p&&d?.has(h.id)===true,x=c?.has(h.id)===true;e.append(Ro(t,o,h,n.scale,y,x,l||y||p&&x,i?.checkedIds?.has(h.id),p,i?.readOnly===true));}}function So(t,e,o,n){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(o==="checkbox"){let h=Math.max(1,Math.min(e.height,16))*n,p=e.width>0?(i+e.x+e.width/2)*n-h/2:(i+e.x)*n,y=(r+e.y)*n+Math.max(0,(e.height*n-h)/2);return {left:p,top:y,size:h}}let a=16*n,s=(i+e.x+e.width)*n,l=t.box.width*n,d=s+2*n,c=d+a<=l?d:Math.max(0,s-a),u=(r+e.y)*n+Math.max(0,(e.height*n-a)/2);return {left:c,top:u,size:a}}function Ro(t,e,o,n,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=o.id,c.dataset.docxMarker="",c.dataset.controlType=o.controlType,c.dataset.lock=o.effectiveLock,o.bound&&(c.dataset.bound=""),o.placeholder&&(c.dataset.placeholder=""),l&&(c.dataset.docxToc=""),d&&(c.dataset.readOnly=""),i&&(c.dataset.active=""),r&&(c.dataset.hover=""),a&&(c.dataset.boundaryVisible=""),c.setAttribute("contenteditable","false"),c.setAttribute("role","group"),o.alias&&(c.dataset.alias=o.alias),o.tag&&(c.dataset.tag=o.tag),o.alias&&c.setAttribute("aria-label",o.alias),c.style.position="absolute",c.style.inset="0",c.style.pointerEvents="none",c.style.zIndex="2";let u=e.contentBox.x-e.box.x,h=e.contentBox.y-e.box.y;for(let y of o.fragments){if(y.pageIndex!==e.index)continue;let x=t.createElement("div");x.className="docx-content-control-boundary",x.dataset.docxMarker="",x.setAttribute("contenteditable","false"),x.setAttribute("aria-hidden","true"),x.style.position="absolute",x.style.left=`${(u+y.box.x)*n}px`,x.style.top=`${(h+y.box.y)*n}px`,x.style.width=`${Math.max(y.box.width,1)*n}px`,x.style.height=`${Math.max(y.box.height,1)*n}px`,x.style.pointerEvents="none",c.append(x);}let p=o.fragments.find(y=>y.pageIndex===e.index);if(p&&o.alias){let y=t.createElement("div");y.className="docx-content-control-label",y.dataset.docxMarker="",y.setAttribute("contenteditable","false"),y.setAttribute("aria-hidden","true"),y.textContent=o.alias,y.style.position="absolute",y.style.left=`${(u+p.box.x)*n}px`,y.style.top=`${Math.max(0,(h+p.box.y)*n-16)}px`,y.style.pointerEvents="none",c.append(y);}if(p&&vo.has(o.controlType)){let y=t.createElement("button");y.type="button",y.className="docx-content-control-widget",y.dataset.docxMarker="",y.dataset.docxCcWidget=o.controlType,y.dataset.docxCcId=o.id,y.setAttribute("contenteditable","false"),y.setAttribute("tabindex","-1"),o.controlType==="checkbox"?y.setAttribute("role","checkbox"):o.controlType==="dropdown"||o.controlType==="comboBox"||o.controlType==="buildingBlockGallery"?y.setAttribute("role","listbox"):(o.controlType==="date"||o.controlType==="picture")&&y.setAttribute("role","button"),o.alias&&(y.dataset.name=o.alias),o.alias&&y.setAttribute("aria-label",o.alias),o.controlType==="checkbox"&&(y.setAttribute("data-checked",s?"true":"false"),y.setAttribute("aria-checked",s?"true":"false"));let x=o.effectiveLock==="contentLocked"||o.effectiveLock==="sdtContentLocked";(d||x||o.bound)&&(y.disabled=true,y.dataset.disabledReason=d?"readOnly":o.bound?"bound":"locked",y.setAttribute("aria-disabled","true"));let m=So(e,p.box,o.controlType,n);y.style.position="absolute",y.style.left=`${m.left}px`,y.style.top=`${m.top}px`,y.style.width=`${m.size}px`,y.style.height=`${m.size}px`,y.style.fontSize=`${m.size}px`,y.style.pointerEvents="auto",y.style.padding="0",y.style.margin="0",y.style.cursor=y.disabled?"not-allowed":"pointer",c.append(y);}return c}var at="docx-change-bars",Q="docx-change-bar",wo=.5;function st(t,e){for(let o of e)switch(o.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function lt(t,e,o){let n=t.lines,i=n.length-1,r=[];for(let a=0;a<=i;a+=1){let s=n[a];if(r.length=0,e.mode==="simple-markup"){s.changeSites&&r.push(...s.changeSites),a===i&&t.markChangeSites&&r.push(...t.markChangeSites),r.length>0&&it(t,n,a,e,r,o);continue}for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunkLF5LPZOP_cjs.$a(l.props);d&&r.push(d);}for(let l of s.drawings??[])l.revisions&&r.push(...l.revisions);if(s.anchorRevisions&&r.push(...s.anchorRevisions),a===i){t.markRevisions&&r.push(...t.markRevisions),t.markFormatRevision&&r.push(t.markFormatRevision);let l=chunkLF5LPZOP_cjs.$a(t.props);l&&r.push(l);}r.length!==0&&it(t,n,a,e,r,o);}}function it(t,e,o,n,i,r){let a=e[o],s=e.length-1,l=(o===0?t.box.y:a.box.y)+n.dy,d=Math.min((o===s?t.box.y+t.box.height:e[o+1].box.y)+n.dy,n.limit);if(d<=l)return;let c={top:l,bottom:d,story:n.story,insertion:false,deletion:false,format:false};st(c,i),r.push(c);}function ko(t,e,o){for(let n of t.rows){let i=e.mode==="simple-markup"?n.changeSites:void 0;if(e.mode==="all-markup"&&n.revisionKind||i&&i.length>0){let r=chunkLF5LPZOP_cjs.Ud(n)?Math.max(n.box.y,...n.cells.map(s=>s.box.y+s.box.height)):n.box.y+n.box.height,a={top:n.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,insertion:n.revisionKind==="insert",deletion:n.revisionKind==="delete",format:false};i&&st(a,i),o.push(a);}for(let r of n.cells){if(r.textDirection==="btLr"){let a=[];if(ye(r.blocks,e,a),a.length===0)continue;let s={top:r.box.y+e.dy,bottom:Math.min(r.box.y+r.box.height+e.dy,e.limit),story:e.story,insertion:false,deletion:false,format:false};for(let l of a)s.insertion||=l.insertion,s.deletion||=l.deletion,s.format||=l.format;s.bottom>s.top&&o.push(s);continue}ye(r.blocks,e,o);}}}function ye(t,e,o){for(let n of t)n.kind==="table"?ko(n,e,o):lt(n,e,o);}function Po(t){t.sort((o,n)=>o.top-n.top||o.bottom-n.bottom);let e=[];for(let o of t){let n=e[e.length-1];if(n&&n.story===o.story&&o.top<=n.bottom+wo){n.bottom=Math.max(n.bottom,o.bottom),n.insertion||=o.insertion,n.deletion||=o.deletion,n.format||=o.format;continue}e.push({...o});}return e}function dt(t,e,o,n=false){let i=[];if(o==="none")return {mode:o,toggle:n,left:0,runs:i,signature:"none"};let r=t.box.height,a=t.contentBox.y-t.box.y+t.contentBox.height,s={x:t.box.x,y:t.box.y};chunkLF5LPZOP_cjs.ya(t,u=>{if(u.story==="note-separator")return;let h={mode:o,story:u.story,dy:u.origin.y-t.box.y,limit:u.story==="body"?a:r};ye(u.host.fragments,h,i);let p=u.story==="header"||u.story==="footer"?y=>chunkLF5LPZOP_cjs.ta(y,u.origin,s):void 0;chunkLF5LPZOP_cjs.Ca(u.host,(y,x)=>{x.textboxDepth!==0&<(y,{mode:o,story:u.story,dy:x.storyOrigin.y-t.box.y,limit:r},i);},u.origin,p);});let l=Math.round(Math.max(0,(t.contentBox.x-t.box.x)/2)*e),d=Po(i),c=`${o}|${n?"t":""}|${l}`;for(let u of d)c+=`|${u.story}:${u.top.toFixed(3)}-${u.bottom.toFixed(3)}${u.insertion?"i":""}${u.deletion?"d":""}${u.format?"f":""}`;return {mode:o,toggle:n,left:l,runs:d,signature:c}}function ct(t,e,o){if(e.runs.length===0)return null;let n=e.mode==="simple-markup",i=t.createElement("div");i.className=at,i.dataset.docxChangeBars=e.signature,i.dataset.docxChangeBarsMode=e.mode,i.setAttribute("aria-hidden","true"),i.setAttribute("contenteditable","false"),i.style.position="absolute",i.style.inset="0",i.style.pointerEvents="none";for(let r of e.runs){let a=t.createElement("div");a.className=Q,r.insertion&&a.classList.add(`${Q}-insertion`),r.deletion&&a.classList.add(`${Q}-deletion`),r.format&&a.classList.add(`${Q}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*o}px`,a.style.height=`${(r.bottom-r.top)*o}px`,a.style.width=n?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=n?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)",e.toggle?(a.dataset.docxChangeBarToggle="",a.style.pointerEvents="auto",a.style.cursor="pointer"):a.style.pointerEvents="none",i.append(a);}return i}function ut(t,e,o,n,i=false){return ct(t,dt(e,o,n,i),o)}function yt(t,e,o,n,i,r=false){let a=e.querySelector(`:scope > .${at}`),s=dt(o,n,i,r);if(a&&a.dataset.docxChangeBars===s.signature)return;a?.remove();let l=ct(t,s,n);l&&e.append(l);}function ee(t,e,o){return !!o.activeHeaderFooterRId&&!!t.rId&&o.activeHeaderFooterRId===t.rId&&(o.activeHeaderFooterPageIndex===void 0||o.activeHeaderFooterPageIndex===e)}function pe(t,e,o){return o?t.kind==="footer"?Math.max(t.box.height,e.box.y+e.box.height-t.box.y):Math.max(t.box.height,e.contentBox.y-t.box.y):t.box.height}function Ao(t,e){let{box:o}=e,n=t.contentBox,i=e.kind==="header"?o.y:Math.max(o.y,n.y+n.height),r=e.kind==="header"?Math.min(o.y+o.height,n.y):o.y+o.height;return r>i?{x:o.x,y:i,width:o.width,height:r-i}:null}function Eo(t,e){let o=e.box,n=t.contentBox;return o.x<n.x+n.width&&n.x<o.x+o.width&&o.y<n.y+n.height&&n.y<o.y+o.height}function pt(t,e,o,n,i,r){let a=i.box;if(Eo(n,i)){o.dataset.docxHfOverBody="";let l=Ao(n,i);if(!l)return;let d=t.createElement("div");d.className="docx-hf-hover",d.dataset.docxHfHover=i.kind,d.setAttribute("contenteditable","false"),d.style.position="absolute",d.style.left=`${(l.x-n.box.x)*r}px`,d.style.top=`${(l.y-n.box.y)*r}px`,d.style.width=`${l.width*r}px`,d.style.height=`${l.height*r}px`,o.before(d),a=l;}let s=t.createElement("div");s.className="docx-hf-edit-hint",s.dataset.docxHfHint=i.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(a.x-n.box.x)*r}px`,s.style.width=`${a.width*r}px`,s.style.top=i.kind==="header"?`${(a.y+a.height-n.box.y)*r}px`:`${(a.y-n.box.y)*r}px`,i.kind==="footer"&&(s.style.transform="translateY(-100%)"),e.append(s);}function ht(t,e){for(let{record:o,element:n,materialized:i}of t){if(!i)continue;let r=n.querySelector(":scope > .docx-page-content");r&&(e.activeHeaderFooterRId?r.setAttribute("contenteditable","false"):r.removeAttribute("contenteditable")),delete n.dataset.docxHfActiveKind;for(let a of n.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let s=Lo(o,a);if(!s)continue;let l=ee(s,o.index,e);l&&(n.dataset.docxHfActiveKind=s.kind),$o(a,o,s,l,e.scale);}for(let a of n.querySelectorAll(":scope > [data-docx-hf-front]")){let s=ft(o,a.dataset.docxHfFront);gt(a,!!s&&ee(s,o.index,e));}}}function Lo(t,e){return ft(t,e.dataset.docxHf)}function ft(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function $o(t,e,o,n,i){n?(t.dataset.docxHfActive="",t.setAttribute("contenteditable","true")):(delete t.dataset.docxHfActive,t.setAttribute("contenteditable","false")),t.style.height=`${pe(o,e,n)*i}px`,gt(t,n);}function gt(t,e){let o=t.querySelectorAll(t instanceof Element&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *");for(let n of o){n.style.pointerEvents=e?"auto":"none";for(let i of n.querySelectorAll(".docx-drawing"))i.style.pointerEvents=e?"auto":"none";}}var Mo=0;function mt(t,e,o,n){if(n===void 0||!Number.isFinite(n)||n<0||n>1)return;let i="http://www.w3.org/2000/svg",r=(u,h)=>{let p=t.createElementNS(i,u);for(let[y,x]of Object.entries(h))p.setAttribute(y,x);return p},a=`docx-bilevel-${++Mo}`,s=r("svg",{width:"0",height:"0","aria-hidden":"true"});s.style.position="absolute",s.style.pointerEvents="none";let l=r("filter",{id:a,"color-interpolation-filters":"sRGB"});l.append(r("feColorMatrix",{type:"saturate",values:"0"}));let d=r("feComponentTransfer",{}),c=Array.from({length:256},(u,h)=>h/255>=n?1:0).join(" ");for(let u of ["R","G","B"])d.append(r(`feFunc${u}`,{type:"discrete",tableValues:c}));l.append(d),s.append(l),e.append(s),o.style.filter=`${o.style.filter} url(#${a})`.trim();}function xt(t){return Math.max(-1,Math.min(1,t))}function To(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let o=xt(t/100),n=xt(e/100);if(o===0&&n===0)return null;let i=n>=0?Math.min(1e3,1/(1-n)):Math.max(0,1+n),r=.5-o/2,a=r+o-i*r;return Object.freeze({slope:i,intercept:a})}function te(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function Co(t){let{slope:e,intercept:o}=t;if(o>=0){let i=e+2*o;return i<=0?"brightness(0)":`contrast(${te(e/i)}) brightness(${te(i)})`}let n=1-2*o;return `brightness(${te(e/n)}) contrast(${te(n)})`}function he(t){let e=[];t.grayscale&&e.push("grayscale(1)");let o=To(t.brightness,t.contrast);o&&e.push(Co(o));let{opacity:n}=t;return n!==void 0&&Number.isFinite(n)&&n>=0&&n<1&&e.push(`opacity(${Math.round(n*1e3)/1e3})`),e.length>0?e.join(" "):void 0}var bt="http://www.w3.org/2000/svg",Do=0;function vt(t,e){let{cx:o,cy:n}=t.extentEmu;if(o>0&&n>0)return {viewBox:[0,0,o,n],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(o<=0){let a=n>0?e.height/n:0;return {viewBox:[-i,0,2*i,Math.max(1,n)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/o;return {viewBox:[0,-i,o,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function St(t,e,o,n,i){let r=`docx-inset-${++Do}`,a=t.createElementNS(bt,"clipPath");a.setAttribute("id",r);let s=t.createElementNS(bt,"path");s.setAttribute("d",n),s.setAttribute("clip-rule","evenodd"),a.append(s),e.append(a),o.setAttribute("stroke-width",String(2*Math.max(1,i))),o.setAttribute("clip-path",`url(#${r})`);}var fe="http://www.w3.org/2000/svg";function T(t){return Number.isFinite(t)?String(t):"0"}function ge(t,e,o,n,i){if(n===o)return;let r=a=>`${T(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(o.y-n.y)} ${r(n.x+n.width-(o.x+o.width))} ${r(n.y+n.height-(o.y+o.height))} ${r(o.x-n.x)})`,e.style.pointerEvents="none";}function me(t,e,o){let n=e.vectorShape,i=e.geometry.contentBounds,r=e.paintBounds,a=t.createElement("div");a.className="docx-drawing-image-frame",a.style.position="absolute";let s=vt(n,i);a.style.left=`${(s.frame.x-r.x)*o}px`,a.style.top=`${(s.frame.y-r.y)*o}px`,a.style.width=`${s.frame.width*o}px`,a.style.height=`${s.frame.height*o}px`;let l=t.createElementNS(fe,"svg");l.setAttribute("viewBox",s.viewBox.map(T).join(" ")),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.style.display="block",l.style.overflow="visible";for(let d of n.components){let c=t.createElementNS(fe,"path"),u=d.subpathsEmu.map((h,p)=>`M${h.map(y=>`${T(y.x)} ${T(y.y)}`).join("L")}${d.subpathsClosed?.[p]===false?"":"Z"}`).join("");if(c.setAttribute("d",u),c.setAttribute("fill",d.fillHex!==null?`#${d.fillHex}`:"none"),c.setAttribute("fill-rule","evenodd"),d.fillAlpha<1&&c.setAttribute("fill-opacity",T(Math.max(0,d.fillAlpha))),d.strokeHex!==null&&(c.setAttribute("stroke",`#${d.strokeHex}`),c.setAttribute("stroke-width",T(Math.max(1,d.strokeWidthEmu))),d.strokeInset&&St(t,l,c,u,chunkLF5LPZOP_cjs.cb(d.strokeWidthEmu)),d.strokeAlpha<1&&c.setAttribute("stroke-opacity",T(Math.max(0,d.strokeAlpha)))),l.append(c),d.strokeHex!==null)for(let h of d.arrowheadsEmu??[]){let p=t.createElementNS(fe,"path");p.setAttribute("d",`M${h.map(y=>`${T(y.x)} ${T(y.y)}`).join("L")}Z`),p.setAttribute("fill",`#${d.strokeHex}`),p.setAttribute("fill-opacity",T(Math.max(0,Math.min(1,d.strokeAlpha)))),p.setAttribute("data-docx-line-end","triangle"),l.append(p);}}return a.append(l),a}var Ho=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Bo="Unknown",ne=new WeakMap,oe=new WeakMap,Io=256;function kt(t,e){let o=ne.get(t);if(o)return o;let n=new Map,i=new Map;return o=Object.freeze({urlForReady(r,a){let s=n.get(r.resourceKey);if(s)return s;let l;try{l=e.create(r,a);}catch(d){if(d instanceof Error&&d.message.startsWith("PaintImageUrlSource:"))return null;throw d}return n.set(r.resourceKey,l),l},imageFor(r,a,s){let l=i.get(r);if(l&&l.resourceKey===a)return l.element;let d=s.createElement("img");return i.size<Io&&i.set(r,{element:d,resourceKey:a,...l?.readyElement?{readyElement:l.readyElement}:{}}),d},imageForPending(r){return i.get(r)?.element??null},readyElementFor(r){return i.get(r)?.readyElement??null},rememberReadyElement(r,a){let s=i.get(r);s&&i.set(r,{...s,readyElement:a});},reconcile(r,a){for(let[s,l]of n)r.has(s)||(e.revoke(l),n.delete(s));for(let[s,l]of i)a.has(s)||(l.element.removeAttribute("src"),i.delete(s));},revokeAll(){for(let r of n.values())e.revoke(r);n.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),ne.set(t,o),o}function xe(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function vr(t){ne.get(t)?.revokeAll(),ne.delete(t);}function N(t){return Number.isFinite(t)?String(t):"0"}function Pt(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let o=[];for(let n of t){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))return null;let i=(n.x-e.x)/e.width*100,r=(n.y-e.y)/e.height*100;o.push(`${N(i)}% ${N(r)}%`);}return `polygon(${o.join(", ")})`}function At(t){let e=t.geometry.contentBounds;return chunkLF5LPZOP_cjs.eb({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function Et(t,e){let{crop:o}=t,n=Math.max(0,Math.min(1,o.left)),i=Math.max(0,Math.min(1,o.top)),r=Math.max(0,Math.min(1,o.right)),a=Math.max(0,Math.min(1,o.bottom)),s=Math.max(1e-4,1-n-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${N(1/s*100)}%`,height:`${N(1/l*100)}%`,left:`${N(-n/s*100)}%`,top:`${N(-i/l*100)}%`})}function Fo(t,e){let{resource:o}=t;switch(o.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(o.reason){case "unsupported-format":return e.unsupportedFormat(Ho.get(o.mime)??Bo);case "non-picture-graphic":return e.nonPictureGraphic(t.placeholderGraphicKind??"graphic");case "signature-mismatch":return e.contentMismatch;case "decode-failed":return e.decodeFailed;case "resource-limit":return e.resourceLimit;default:return e.invalidResource}default:return e.invalidResource}}function B(t,e,o){let{accessibility:n}=e;n.hidden||(t.setAttribute("role",o?"link":"img"),n.label?t.setAttribute("aria-label",n.label):o||t.setAttribute("aria-hidden","true"));}function G(t,e,o,n){let i=n?.x??0,r=n?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*o}px`,t.style.top=`${(e.y-r)*o}px`,t.style.width=`${e.width*o}px`,t.style.height=`${e.height*o}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}function Lt(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let o=1/0,n=1/0,i=-1/0,r=-1/0;for(let a of e)o=Math.min(o,a.x),n=Math.min(n,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:o,y:n,width:i-o,height:r-n}}function No(t,e,o,n,i){let r=t.paintBounds,a=Lt(t),s=Et(t);return [n,o.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,Pt(t.geometry.clipPolygon??[],r)??"",he(t.effects)??"",t.effects.bilevel??"",At(t)??"",s.width,s.height,s.left,s.top,o.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function j(t,e,o,n){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",i.dataset.drawingNodeId=e.drawingNodeId,G(i,e.paintBounds,o.scale,n);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");return a.className="docx-drawing-placeholder-label",a.textContent=Fo(e,o.strings),r.append(a),i.append(r),e.hyperlinkHref&&!o.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),B(i,e,true)):B(i,e,false),i}function Oo(t,e,o,n,i,r){let a=e.resource;if(a.kind!=="ready")return j(t,e,o,r);let s=xe(e,o),l=i?.readyElementFor?.(s)??t.createElement("div"),d=No(e,a,o,n,r),c=!e.vectorShape;if(c&&oe.get(l)===d)return l;l.className="docx-drawing docx-drawing-ready",l.style.cssText="",l.dataset.drawingNodeId=e.drawingNodeId,delete l.dataset.docxDrawingLink,delete l.dataset.docxDrawingLinkKind,delete l.dataset.docxDrawingLinkHref,l.removeAttribute("aria-hidden"),l.removeAttribute("aria-label"),l.removeAttribute("role"),l.removeAttribute("tabindex"),G(l,e.paintBounds,o.scale,r);let u=t.createElement("div");u.className="docx-drawing-image-frame",u.style.position="absolute";let h=Lt(e),p=e.paintBounds,y=Pt(e.geometry.clipPolygon??[],e.groupPicture?h:p);y&&((e.groupPicture?u:l).style.clipPath=y),u.style.left=`${(h.x-p.x)*o.scale}px`,u.style.top=`${(h.y-p.y)*o.scale}px`,u.style.width=`${h.width*o.scale}px`,u.style.height=`${h.height*o.scale}px`;let x=he(e.effects);x&&(u.style.filter=x);let m=t.createElement("div");m.className="docx-drawing-transform-stage",m.style.position="relative",m.style.width="100%",m.style.height="100%";let A=At(e);A&&(m.style.transform=A,m.style.transformOrigin="0 0");let w=t.createElement("div");w.className="docx-drawing-crop-viewport",w.style.position="relative",w.style.width="100%",w.style.height="100%",w.style.overflow="hidden";let b=i?.imageFor?.(s,a.resourceKey,t)??t.createElement("img");b.className="docx-drawing-image",b.setAttribute("draggable","false"),b.getAttribute("src")!==n&&b.setAttribute("src",n),b.setAttribute("alt","");let k=Et(e);if(b.style.position="absolute",b.style.width=k.width,b.style.height=k.height,b.style.left=k.left,b.style.top=k.top,b.style.maxWidth="none",b.style.maxHeight="none",w.append(b),m.append(w),u.append(m),l.replaceChildren(u),e.vectorShape){let L=me(t,e,o.scale),E=e.paintBounds;ge(l,L,E,chunkKJLPVGSX_cjs.M(e,E),o.scale),l.append(L);}return mt(t,l,u,e.effects.bilevel),e.hyperlinkHref&&!o.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),B(l,e,true)):B(l,e,false),i?.rememberReadyElement?.(s,l),c?oe.set(l,d):oe.delete(l),l}function Ko(t,e,o,n,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",r.dataset.drawingNodeId=e.drawingNodeId;let a=e.paintBounds;G(r,a,o.scale,i);let s=me(t,e,o.scale);return ge(r,s,a,n,o.scale),r.append(s),e.hyperlinkHref&&!o.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),B(r,e,true)):B(r,e,false),r}function zo(t,e,o,n,i){let r=n.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",a.dataset.drawingNodeId=e.drawingNodeId,a.setAttribute("contenteditable","false"),G(a,e.paintBounds,n.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(o.fillHex!==null||o.strokeHex!==null){let c=t.createElement("div");c.className="docx-drawing-textbox-box",c.style.position="absolute",c.style.left=`${s}px`,c.style.top=`${l}px`,c.style.width=`${e.width*r}px`,c.style.height=`${e.height*r}px`,c.style.boxSizing="border-box",o.fillHex!==null&&(c.style.backgroundColor=`#${o.fillHex}`),o.strokeHex!==null&&(c.style.border=`${Math.max(o.strokeWidthPt*r,.5)}px solid #${o.strokeHex}`),a.append(c);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+o.contentOffset.x*r}px`,d.style.top=`${l+o.contentOffset.y*r}px`,d.style.width=`${o.contentWidth*r}px`,d.style.height=`${Math.max(0,o.contentHeight)*r}px`,d.style.overflow="hidden";for(let c of o.fragments)d.append(n.paintStoryFragment(t,c));for(let c of d.querySelectorAll("[data-paragraph-id]"))c.dataset.textboxParagraphId=c.dataset.paragraphId,delete c.dataset.paragraphId;return a.append(d),B(a,e,false),a}function _o(t,e,o){let n=o.revisionStyles,i=F(e.revisions,n?.authorSlots,n?.styles);if(!i){if(t.dataset.revisionKind===void 0)return;t.classList.remove("docx-drawing--revision","docx-drawing--revision-insertion","docx-drawing--revision-deletion"),delete t.dataset.revisionKind,delete t.dataset.revisionId,delete t.dataset.reviewAuthor,delete t.dataset.revisionDate,delete t.dataset.reviewAuthorSlot;return}let{attribution:r}=i;t.classList.add("docx-drawing--revision",i.deleted?"docx-drawing--revision-deletion":"docx-drawing--revision-insertion"),t.classList.remove(i.deleted?"docx-drawing--revision-insertion":"docx-drawing--revision-deletion"),t.dataset.revisionKind=r.kind,t.dataset.revisionId=r.id,r.author!==""?t.dataset.reviewAuthor=r.author:delete t.dataset.reviewAuthor,r.date!==void 0?t.dataset.revisionDate=r.date:delete t.dataset.revisionDate,n?t.dataset.reviewAuthorSlot=String((n.authorSlots.get(r.author)??0)%$):delete t.dataset.reviewAuthorSlot;}function $t(t,e,o,n,i){let r=Uo(t,e,o,n,i);return r&&_o(r,e,o),r}function Uo(t,e,o,n,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunkKJLPVGSX_cjs.M(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.kind==="anchoredDrawing"&&e.textboxStory!==void 0&&o.paintStoryFragment!==void 0)return zo(t,e,e.textboxStory,o,i);let{resource:a}=e,s=a.kind==="ready"&&o.imageUrlPort&&n?n.urlForReady(a.validatedHandle,a.mime):null;if(e.groupPicture&&a.kind!=="pending"&&!s)return j(t,e,o,i);let l=e.groupPicture!==void 0&&s!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!l)return Ko(t,e,o,r,i);if(a.kind==="ready")return !s||!n?j(t,e,o,i):Oo(t,e,o,s,n,i);if(a.kind==="pending"){let d=n?.readyElementFor?.(xe(e,o))??n?.imageForPending?.(xe(e,o))?.closest(".docx-drawing-ready");return d?(oe.delete(d),d.dataset.drawingNodeId=e.drawingNodeId,G(d,e.paintBounds,o.scale,i),d):j(t,e,o,i)}return j(t,e,o,i)}function Mt(t,e,o,n,i){let r=[];for(let a of e.drawings??[]){let s=$t(t,a,o,n,i);s&&r.push(s);}return Object.freeze(r)}function Tt(t,e,o,n,i,r){let a=[];for(let s of e){if(chunkLF5LPZOP_cjs.Tb(s)!==o)continue;let l=$t(t,s,n,i,r);l&&(l.dataset.drawingLayer=o,a.push(l));}return Object.freeze(a)}function jo(t,e){chunkLF5LPZOP_cjs.ya(t,({host:o})=>chunkLF5LPZOP_cjs.Aa(o,e));}var Rt=new WeakMap;function Go(t){let e=Rt.get(t);if(e)return e;let o=[],n=[];jo(t,r=>{r.resource.kind==="ready"&&o.push(r.resource.resourceKey),n.push(`p${t.index}|${r.drawingNodeId}`);}),chunkLF5LPZOP_cjs.ya(t,({host:r})=>chunkLF5LPZOP_cjs.Ca(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&o.push(s.resource.resourceKey);}));let i=Object.freeze({resourceKeys:Object.freeze(o),elementKeys:Object.freeze(n)});return Rt.set(t,i),i}var wt=new WeakMap;function Ct(t){let e=wt.get(t);if(e)return e;let o=new Set,n=new Set;for(let r of t.pages){let a=Go(r);for(let s of a.resourceKeys)o.add(s);for(let s of a.elementKeys)n.add(s);}let i=Object.freeze({resourceKeys:o,elementKeys:n});return wt.set(t,i),i}function Dt(t){return Ct(t).resourceKeys}function Ht(t){return Ct(t).elementKeys}function Bt(t){return [t.missingResource,t.externalResource,t.invalidResource,t.contentMismatch,t.decodeFailed,t.resourceLimit,t.pendingResource,t.unsupportedFormat("probe"),t.nonPictureGraphic("probe")].join("\0")}var be=Object.freeze({unsupportedFormat:t=>`Unsupported image format (${t})`,nonPictureGraphic:t=>`Unsupported graphic (${t})`,missingResource:"Image missing",externalResource:"External image not loaded",invalidResource:"Invalid image",contentMismatch:"Image content does not match its type",decodeFailed:"Image could not be decoded",resourceLimit:"Image exceeds size limits",pendingResource:"Loading image"});function Sr(t){return Object.freeze({unsupportedFormat:e=>t("image.unsupportedFormat",{format:e}),nonPictureGraphic:e=>t("image.nonPictureGraphic",{kind:e}),missingResource:t("image.missingResource"),externalResource:t("image.externalResource"),invalidResource:t("image.invalidResource"),contentMismatch:t("image.contentMismatch"),decodeFailed:t("image.decodeFailed"),resourceLimit:t("image.resourceLimit"),pendingResource:t("image.pendingResource")})}function Wo(t,e,o){t.style.position="absolute",t.style.left=`${e.x*o}px`,t.style.top=`${e.y*o}px`,t.style.width=`${e.width*o}px`,t.style.height=`${e.height*o}px`;}function It(t,e,o,n){let i=t.createElement("span");return i.className=e,i.setAttribute("aria-hidden","true"),i.style.position="absolute",i.style.display="block",i.style.left=`${o.x*n}px`,i.style.top=`${o.y*n}px`,i.style.width=`${o.width*n}px`,i.style.height=`${o.height*n}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function P(t,e,o,n,i=0,r=0,a=[]){let s=i+o.box.x,l=r+o.box.y,d=[...a,o.kind];switch(o.kind){case "text":case "fallback":{let c=t.createElement("span");c.className=["docx-equation-node",...d.map(u=>`docx-equation-${u}`)].join(" "),Wo(c,{x:s,y:l,width:o.box.width,height:o.box.height},n),c.textContent=o.text,c.style.display="block",c.style.fontSize=`${o.fontSizePt*n}px`,c.style.lineHeight=`${o.box.height*n}px`,c.style.whiteSpace="pre",e.append(c);break}case "row":for(let c of o.items)P(t,e,c,n,s,l,d);break;case "fraction":P(t,e,o.numerator,n,s,l,d),e.append(It(t,"docx-equation-fraction-bar",{...o.bar,x:s+o.bar.x,y:l+o.bar.y},n)),P(t,e,o.denominator,n,s,l,d);break;case "radical":P(t,e,o.sign,n,s,l,d),o.degree&&P(t,e,o.degree,n,s,l,d),e.append(It(t,"docx-equation-radical-bar",{...o.bar,x:s+o.bar.x,y:l+o.bar.y},n)),P(t,e,o.radicand,n,s,l,d);break;case "script":P(t,e,o.base,n,s,l,d),o.subscript&&P(t,e,o.subscript,n,s,l,d),o.superscript&&P(t,e,o.superscript,n,s,l,d);break;case "nary":P(t,e,o.operator,n,s,l,d),o.lowerLimit&&P(t,e,o.lowerLimit,n,s,l,d),o.upperLimit&&P(t,e,o.upperLimit,n,s,l,d),P(t,e,o.body,n,s,l,d);break}}function Ft(t,e,o,n){let i=o.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=o.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),o.fallbackText&&e.setAttribute("aria-label",o.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${i.box.width*n}px`,e.style.height=`${i.box.height*n}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(i.box.height-i.baseline)*n}px`;let r=t.createDocumentFragment();P(t,r,i,n),e.append(r);}function Nt(t,e,o,n){if(o.glyphOffsetPt!==void 0){let s=o.style.horizontalScalePercent/100,l=o.box.width*n;e.style.width=`${l/s}px`,s!==1&&(e.style.marginRight=`${l-l/s}px`);let d=t.createElement("span");if(d.dataset.docxGlyphOffset="",s!==1&&(d.style.letterSpacing=`${o.style.characterSpacingPt*n/s}px`),o.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${o.glyphOffsetPt*n/s}px`;d.style.setProperty("--docx-glyph-ink-offset",c),e.style.color&&e.style.color!=="inherit"&&d.style.setProperty("--docx-glyph-ink-color",e.style.color),d.style.textShadow=`${c} 0 currentColor`;}return e.append(d),d}let i=o.lineEndWhitespace===true;(o.style.horizontalScalePercent!==100||o.text===" "||i)&&(e.style.width=`${o.box.width*n}px`);let r=o.style.shaping!==void 0&&o.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),o.style.horizontalScalePercent===100))return e;let a=t.createElement("span");if(a.dataset.docxClippedFill="",a.style.display="inline-block",a.style.transform=e.style.transform,a.style.transformOrigin=e.style.transformOrigin,r){let s=o.style.horizontalScalePercent/100;a.style.width=`${o.box.width*n/s}px`,a.style.letterSpacing=`${o.style.characterSpacingPt*n/s}px`,o.style.shaping?.wordSpacingPt&&(a.style.wordSpacing=`${o.style.shaping.wordSpacingPt*n/s}px`),a.style.direction=o.style.shaping?.direction??"ltr",a.style.transformOrigin=a.style.direction==="rtl"?"right":"left";}return a.style.textDecorationLine=e.style.textDecorationLine,a.style.textDecorationStyle=e.style.textDecorationStyle,a.style.textDecorationColor=e.style.textDecorationColor,a.style.textDecorationThickness=e.style.textDecorationThickness,e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("text-decoration-line"),e.style.removeProperty("text-decoration-style"),e.style.removeProperty("text-decoration-color"),e.style.removeProperty("text-decoration-thickness"),e.append(a),a}function Ot(t,e,o){let n=e.textOutline;if(!n||!Number.isFinite(o)||o<=0||!Number.isFinite(n.widthPt)||n.widthPt<=0||n.widthPt>1584||!/^[0-9a-f]{6}$/i.test(n.color))return;let i=n.widthPt*o;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${n.color}`));}var Vo=/^[0-9A-Fa-f]{6}$/;function Xo(t,e,o){let n=t.createElement("div");n.className=`docx-page-border docx-page-border-${e.side}`,n.setAttribute("aria-hidden","true"),n.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*o,a=Y(e.edge.val)?r:Math.max(1,r),s=a-r;n.style.left=`${e.box.x*o-(e.side==="right"?s:0)}px`,n.style.top=`${e.box.y*o-(e.side==="bottom"?s:0)}px`,n.style.width=i?`${a}px`:`${e.box.width*o}px`,n.style.height=i?`${e.box.height*o}px`:`${a}px`;let l=e.edge.color&&Vo.test(e.edge.color)?e.edge.color:"000000";return n.style.backgroundColor=`#${l}`,I(n,e.edge.val,l,i,a,o),n}function Kt(t,e,o){let n=t.createElement("div");n.className="docx-page-borders",n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.inset="0",n.style.pointerEvents="none";for(let i of e.strokes)n.append(Xo(t,i,o));return n}var qo=/^[0-9A-Fa-f]{6}$/;function Yo(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function Re(t){return t&&qo.test(t)?t:"000000"}function ve(t,e){let o=t.createElement("div");return o.className=e,o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.right="0",o.style.bottom="0",o.style.overflow="visible",o.style.pointerEvents="none",o.style.boxSizing="border-box",o}function Zo(t,e,o,n){if(!o)return;let i=`#${Re(o.color)}`,r=`${Math.max(0,o.widthPt*n)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,o.style==="double"||o.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=Yo(o.style);}function Se(t,e,o,n,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=o.side,r.dataset.stroke=o.role,r.style.position="absolute",r.style.left=`${o.x*n}px`,r.style.top=`${o.y*n}px`,r.style.width=`${o.width*n}px`,r.style.height=`${o.height*n}px`,r.style.pointerEvents="none",o.cssStyle==="solid")r.style.backgroundColor=`#${Re(o.color)}`;else {let a=o.side==="top"||o.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?o.height:o.width)*n}px ${o.cssStyle} #${Re(o.color)}`;}e.append(r);}function Jo(t){let e=new Set;for(let o of t)e.add(`${o.side}\0${o.role}`);return e}function Qo(t,e,o,n){let i=Jo(o),r=h=>i.has(`${h}\0middle`),a=ve(t,"docx-table-border-double"),s=ve(t,"docx-table-border-triple"),l=ve(t,"docx-table-border-edge");for(let h of [a,s,l])h.style.zIndex="1";let d=false,c=false,u=false;for(let h of o){if(h.role==="edge"){u=true,Se(t,l,h,n,"docx-table-border-edge-stroke");continue}if(r(h.side)){c=true,Se(t,s,h,n,"docx-table-border-triple-stroke");continue}(h.role==="outer"||h.role==="inner")&&(d=true,Se(t,a,h,n,"docx-table-border-double-stroke"));}d&&e.append(a),c&&e.append(s),u&&e.append(l);}function zt(t,e,o,n){let i=new Set((o?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;Zo(e,a,o?.[r],n),i.has(r)&&(e.style[`border${a}Style`]="none");}o?.strokes&&o.strokes.length>0&&Qo(t,e,o.strokes,n);}function _t(t,e,o,n){if(e.textDirection!=="btLr")return n;let i=t.createElement("div");return i.className="docx-table-cell-content-btlr",i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width=`${e.box.height*o}px`,i.style.height=`${e.box.width*o}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*o}px) rotate(-90deg)`,n.append(i),i}var we="when-selected",Ut=new WeakMap,jt=0;function en(t){let e=Ut.get(t);return e||(jt+=1,e=`alias${jt}`,Ut.set(t,e)),e}function Pe(t){return {...t,drawingStrings:t.drawingStrings??be,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function tn(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},paintStoryFragment:(o,n)=>n.kind==="table"?K(o,n,e):O(o,n,e)})}function Qt(t){return Object.freeze({ctx:tn(t),urlRegistry:t.urlRegistry})}function Gt(t,e,o,n,i,r){ie(t,e,chunkLF5LPZOP_cjs.xa(o),n,i,r);}function ie(t,e,o,n,i,r,a=true,s){if(o.length===0)return;let l=Qt(n),d=t.createElement("div");d.className=r==="behind"?"docx-drawing-layer docx-drawing-layer-behind":"docx-drawing-layer docx-drawing-layer-front",d.style.position="absolute",d.style.inset="0",d.style.pointerEvents="none",s&&(d.dataset.docxHfFront=s);for(let c of Tt(t,o,r,l.ctx,l.urlRegistry,i)){if(c.style.pointerEvents=a?"auto":"none",!a)for(let u of c.querySelectorAll(".docx-drawing"))u.style.pointerEvents="none";d.append(c);}d.childElementCount>0&&e.append(d);}function eo(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function to(t,e,o){let n=e.paintBounds,i=chunkLF5LPZOP_cjs.ta(e,t.box,o),r=i.x-e.x,a=i.y-e.y,s=l=>Object.freeze({x:l.x+r,y:l.y+a,width:l.width,height:l.height});return Object.freeze({...e,x:e.x+r,y:e.y+a,paintBounds:s(n),hitBounds:s(e.hitBounds),geometry:Object.freeze({...e.geometry,contentBounds:s(e.geometry.contentBounds),paintBounds:s(e.geometry.paintBounds),...e.geometry.clipPolygon?{clipPolygon:Object.freeze(e.geometry.clipPolygon.map(l=>Object.freeze({x:l.x+r,y:l.y+a})))}:{}})})}function on(t,e,o,n,i,r){let a=n.map(l=>to(o,l,r)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=o.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",ie(t,s,a,i,r,"behind",false),s.childElementCount>0&&e.append(s);}function nn(t,e,o,n,i,r,a,s=false){let l=n.filter(eo).map(d=>to(o,d,r));ie(t,e,l,i,r,a,s,o.kind);}var z=/^[0-9A-Fa-f]{6}$/,Wt=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,rn=new Map(Object.entries({single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"})),an=new Map(Object.entries({black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"}));function sn(t){return t.doubleStrike?"double":t.strike?"single":"none"}function ln(t){return t==="thick"||t.endsWith("Heavy")}function oo(t){if(!t.underline)return null;let e=t.underline.color&&z.test(t.underline.color)?t.underline.color:null;return {cssStyle:rn.get(t.underline.variant)??"solid",color:e,heavy:ln(t.underline.variant)}}function no(t,e,o,n){t.textDecorationLine=e,t.textDecorationStyle=o,n.color&&(t.textDecorationColor=`#${n.color}`),n.heavy&&(t.textDecorationThickness=`max(${2*n.scale}px, 0.12em)`);}function Vt(t,e,o){e!=="none"&&no(t,"line-through",e==="double"?"double":"solid",{scale:o});}function Xt(t,e,o){no(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:o});}function dn(t,e,o){let n=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*o}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=n;}function re(t,e,o){let n=t.style,i=o.scale;Ot(n,e,i);let r=chunkLF5LPZOP_cjs.da(e);n.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(n.fontWeight="bold"),e.italic&&(n.fontStyle="italic");let a=e.fontFamily&&Wt.test(e.fontFamily)?e.fontFamily:o.defaultFontFamily&&Wt.test(o.defaultFontFamily)?o.defaultFontFamily:null;if(a){let d=o.fontAlias?.(a);n.fontFamily=d?`"${d}", "${a}", ${chunkKJLPVGSX_cjs.O}`:`"${a}", ${chunkKJLPVGSX_cjs.O}`;}e.color&&z.test(e.color)&&(n.color=`#${e.color}`);let s=e.highlight?an.get(e.highlight):void 0;s?(n.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&z.test(e.shading)&&(n.backgroundColor=`#${e.shading}`),e.caps&&(n.textTransform="uppercase"),n.fontKerning=chunkKJLPVGSX_cjs.N(e)?"normal":"none",e.smallCaps&&(n.fontVariant="small-caps");let l=chunkLF5LPZOP_cjs.ca(e);l!==0&&(n.position="relative",n.top=`${-l*i}px`),e.characterSpacingPt!==0&&(n.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(n.transformOrigin="left",n.transform=`scaleX(${e.horizontalScalePercent/100})`);}function ro(t,e,o,n,i){let r=o===" "?null:oo(n),a=sn(n),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",Xt(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",Vt(d.style,a,i),l.append(d),e.append(l),s=d;}else r?Xt(e.style,r,i):a!=="none"&&Vt(e.style,a,i);s.textContent=o;}function D(t,e,o,n){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${o.x*n}px`,i.style.top=`${o.y*n}px`,i.style.width=`${o.width*n}px`,i.style.height=`${o.height*n}px`,i}function cn(t,e,o){let n=e.fieldAtom;!n||(t.dataset.fieldAtom=n.formField?"form":"field",!(n.formField?o.shadeFormFields!==false:(o.fieldShading??we)!=="never"))||(t.classList.add("docx-field-atom"),(n.formField||(o.fieldShading??we)==="always")&&t.classList.add("docx-field-atom--shaded"));}function qt(t,e,o){let n=chunkLF5LPZOP_cjs.$a(e.props),i=o.revisionStyles,r=F(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!n)){if(r){let{attribution:a}=r;t.classList.add("docx-revision",`docx-revision-${a.kind}`),t.dataset.revisionKind=a.kind,t.dataset.revisionId=a.id,a.author!==""&&(t.dataset.reviewAuthor=a.author),a.date!==void 0&&(t.dataset.revisionDate=a.date);let s=i?.styles.get(a.author);if(i){t.dataset.reviewAuthorSlot=String((i.authorSlots.get(a.author)??0)%$);let c=i.classTokens.get(a.author);if(c)for(let u=0;u<c.length;u+=1)t.classList.add(c[u]);}let d=i!==void 0&&(s?.color!==void 0||i.others==="author")?r.authorColor:r.color;t.style.color=d,t.style.backgroundColor=s?.background??(r.deleted?"var(--doc-revision-deletion-wash)":"var(--doc-revision-insertion-wash)"),r.line&&(t.style.textDecorationLine=r.line,a.kind==="insert"&&r.line==="underline"?(t.style.textDecorationStyle="var(--doc-revision-insertion-decoration-style)",t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"):t.style.textDecorationStyle=r.decorationStyle,t.style.textDecorationColor=d);return}if(t.classList.add("docx-revision","docx-revision-format"),t.dataset.revisionKind="format",t.dataset.formattingKind="rPrChange",t.dataset.revisionId=n.id,n.author!==""&&(t.dataset.reviewAuthor=n.author),n.date!==void 0&&(t.dataset.revisionDate=n.date),i){let a=i.styles.get(n.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(n.author)??0)%$);let s=i.classTokens.get(n.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}}}function un(t,e,o,n,i){let r=t.createElement("span"),a=chunkLF5LPZOP_cjs.sa(e.style,e.fontSlot);if(e.equation)return r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end),re(r,a,o),Ft(t,r,e.equation,o.scale),qt(r,e,o),r;r.className="layout-run layout-run-text",r.style.display="inline-block",r.style.verticalAlign="baseline",r.style.boxSizing="border-box",r.style.height=`${n*o.scale}px`,r.style.paddingTop=`${i*o.scale}px`,r.style.lineHeight=`${(n-i)*o.scale}px`,e.range.end>e.range.start?(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)):(r.setAttribute("aria-hidden","true"),r.contentEditable="false"),re(r,a,o),cn(r,e,o),qt(r,e,o);let s=Nt(t,r,e,o.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let l=oo(e.style);l&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",dn(r.style,l,o.scale));}return ro(t,s,e.text,e.style,o.scale),Ve(r,e,o.scale),We(r,e),e.projected&&(r.dataset.docxField="",r.setAttribute("contenteditable","false"),e.noteNav?(r.style.userSelect="none",e.noteNav.direction==="to-note"?(r.dataset.docxNoteRef="",r.dataset.docxNoteScope=e.noteNav.scopeId,e.text.length>0&&r.setAttribute("aria-description",e.text)):(r.dataset.docxNoteMarkBack="",r.dataset.docxNoteScope=e.noteNav.scopeId)):e.fieldAtom?.formControl?(r.style.userSelect="none",r.style.cursor="pointer"):(r.style.pointerEvents="none",r.style.userSelect="none")),r}function Yt(t,e,o){let n=t.createElement("a");return n.className="docx-hyperlink",n.style.cursor=!o.inertLinks&&e.href?"pointer":"default",n.dataset.docxLink=e.id,n.dataset.docxLinkKind=e.kind,n.setAttribute("tabindex","-1"),!o.inertLinks&&e.href&&(n.setAttribute("href",e.href),e.kind==="external"&&n.setAttribute("rel","noopener noreferrer")),e.tooltip&&n.setAttribute("title",e.tooltip),n.style.display="inline-block",n.style.verticalAlign="baseline",n.style.textDecoration="none",n.style.color="inherit",n}function yn(t,e,o,n=false){let i=o.scale,r=t.createElement("div");r.className="docx-line layout-line",r.dataset.lineId=e.id,r.dataset.paragraphId=e.range.paragraphId,r.style.position="absolute",r.style.top=`${e.box.y*i}px`,r.style.left=`${e.contentX*i}px`,r.style.height=`${e.box.height*i}px`,r.style.fontSize="0",r.style.whiteSpace="pre",r.style.overflow="visible";let a=e.leading??0,s=Math.min(Math.max(a,...e.spans.map(f=>f.box.height+a),e.spans.length===0?e.box.height-(e.trailingSpacing??0):0),e.box.height),l=Math.max(0,e.box.height-s);r.style.boxSizing="border-box",r.style.paddingBottom=`${l*i}px`,r.style.lineHeight=`${(e.box.height-l)*i}px`;let d=null,c=null,u=null,h=new Map;for(let[f,g]of chunkLF5LPZOP_cjs.Ja(e).entries())h.set(g.paragraphId,f);let p=f=>h.get(f)??0,y=[...e.drawings??[]].sort((f,g)=>p(f.paragraphId)-p(g.paragraphId)||f.start-g.start),x=0,m=(f,g)=>{for(;x<y.length&&(p(y[x].paragraphId)<p(f)||p(y[x].paragraphId)===p(f)&&y[x].start<g);){let v=y[x],S=Math.max(0,v.advanceEnd-v.advanceStart),R=t.createElement("span");R.className="docx-inline-drawing-advance",R.dataset.docxMarker="",R.setAttribute("contenteditable","false"),R.setAttribute("aria-hidden","true"),R.style.display="inline-block",R.style.width=`${S*i}px`,R.style.height=`${v.baselineOffset*i}px`,R.style.lineHeight="0",R.style.pointerEvents="none",R.style.verticalAlign="baseline",r.append(R),x+=1,d=null,c=null;}},A=f=>{let g=f.wrapAdvanceBefore??0;if(g<=.001)return;let v=t.createElement("span");v.className="docx-wrap-advance",v.dataset.docxMarker="",v.setAttribute("contenteditable","false"),v.setAttribute("aria-hidden","true"),v.style.display="inline-block",v.style.width=`${g*i}px`,v.style.height="0",v.style.lineHeight="0",v.style.pointerEvents="none",v.style.verticalAlign="baseline",r.append(v),d=null,c=null;},w=e.spans.some(f=>f.style.shaping!==void 0),b=0,k=0,L=false;for(let[f,g]of e.spans.entries()){m(g.range.paragraphId,g.range.start),w||A(g);let v=Math.min(g.box.height+a,e.box.height),S=g.noteSeparator?je(t,g,e,i):un(t,g,o,v,a);w&&(S.style.position="relative",S.style.left=`${(g.box.x-e.contentX-b)*i}px`,S.style.width||(S.style.width=`${g.box.width*i}px`),S.style.direction=g.style.shaping?.direction??"ltr",S.style.unicodeBidi="isolate",g.style.shaping?.wordSpacingPt&&(S.style.wordSpacing=`${g.style.shaping.wordSpacingPt*i}px`),b+=g.box.width),k>0&&!L&&(S.style.marginLeft=`${k*i}px`);let R=e.spans[f+1],_=w?0:pn(e,f+1,p);L=_>0&&R!==void 0&&fn(g,R),L&&(S.style.wordSpacing=`${_*i}px`),k=_;let M=g.link;if(!M){d=null,c=null,u=null,r.append(S);continue}if(g.fieldAtom){d!==null&&c===M.id&&u===g.range.start||(d=Yt(t,M,o),c=M.id,u=g.range.start,r.append(d)),d.append(S);continue}(!d||c!==M.id||u!==null)&&(d=Yt(t,M,o),c=M.id,u=null,r.append(d)),d.append(S);}if(m(chunkLF5LPZOP_cjs.Ja(e)[chunkLF5LPZOP_cjs.Ja(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),e.spans.length===0){let f=t.createElement("br");f.style.lineHeight=`${e.box.height*i}px`,r.append(f);}let E=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});Ge(t,r,e,i),o.showParagraphMarks&&e.manualBreakAfter&&r.append(tt(t,e,i,o.revisionStyles,n));let C=Qt(Pe(o));if(e.drawings&&e.drawings.length>0)for(let f of Mt(t,e,C.ctx,C.urlRegistry,E))r.append(f);return r}function pn(t,e,o){if(e<=0||e>=t.spans.length)return 0;let n=t.spans[e-1],i=t.spans[e],r=o(n.range.paragraphId),a=o(i.range.paragraphId);if(t.drawings?.some(d=>{let c=o(d.paragraphId),u=c>r||c===r&&d.start>=n.range.start,h=c<a||c===a&&d.start<i.range.start;return u&&h}))return 0;let l=i.box.x-(n.box.x+n.box.width)-(i.wrapAdvanceBefore??0);return l>.001?l:0}var hn=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function fn(t,e){return !t.text.endsWith(" ")||t.style.horizontalScalePercent!==100||!gn(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!hn.test(t.text.slice(0,-1))}function gn(t,e){return !t.link&&!e.link?true:!t.link||!e.link||t.link.id!==e.link.id||!!t.fieldAtom!=!!e.fieldAtom?false:!t.fieldAtom||t.range.start===e.range.start}function O(t,e,o){let n=o.scale,i=D(t,"div",e.box,n);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),i.dataset.paragraphId=e.paragraphId,i.dataset.fragmentIndex=String(e.fragmentIndex),ue(i,e),o.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),o.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&z.test(e.shading)&&e.shadingBox&&i.append(bn(t,e,n)),e.marker&&i.append(mn(t,e,o));for(let r of e.lines)for(let a of r.spans){if(!a.tabLeader)continue;let s=xn(t,e,r,a,o);s&&i.append(s);}if(o.showParagraphMarks&&e.paragraphEnd||e.markRevisions&&e.markRevisions.length>0){let r=ot(t,e.markRevisions??[],n,o.revisionStyles),a=e.lines[e.lines.length-1];a&&(r.style.top=`${(a.box.y-e.box.y)*n}px`,ce(r,de(a,chunkLF5LPZOP_cjs.Xb(e.props)),e.box.x,n),i.append(r));}for(let r of e.lines){let a=yn(t,r,o,chunkLF5LPZOP_cjs.Xb(e.props));e.markFormatRevision&&r===e.lines[e.lines.length-1]&&ue(a,e,true),a.style.top=`${(r.box.y-e.box.y)*n}px`,a.style.left=`${(r.contentX-e.box.x)*n}px`,i.append(a);}if(e.borders)for(let r of e.borders)i.append(Zt(t,e,r,n));else e.bottomBorder&&i.append(Zt(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},n));return i}function mn(t,e,o){let n=e.marker,i=o.scale,r=Ue(t,e,Pe(o));if(r)return r;let a=e.lines[0]?.leading??0,s=D(t,"span",n.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(n.box.x-e.box.x)*i}px`,s.style.top=`${(n.box.y-e.box.y)*i}px`,s.style.display="block",s.style.overflow="visible",s.style.whiteSpace="pre";let l=e.lines[0],d=l?Math.max(a,...l.spans.map(p=>p.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):n.box.height,c=Math.min(d,n.box.height),u=Math.max(0,n.box.height-c);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${u*i}px`,s.style.lineHeight=`${c*i}px`;let h=t.createElement("span");return h.style.display="inline-block",h.style.verticalAlign="baseline",h.style.boxSizing="border-box",h.style.height=`${c*i}px`,h.style.paddingTop=`${a*i}px`,h.style.lineHeight=`${(c-a)*i}px`,re(h,n.style,o),n.pieces&&(h.dir="rtl"),ro(t,h,n.text,n.style,i),s.append(h),s}function xn(t,e,o,n,i){let r=n.tabLeader?chunkLF5LPZOP_cjs.Kb.get(n.tabLeader):void 0;if(!r||n.box.width<=0)return null;let a=i.scale,s=t.createElement("div");s.className="docx-tab-leader",s.dataset.docxTabLeader="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",n.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(n.box.x-e.box.x)*a}px`,s.style.top=`${(o.box.y-e.box.y)*a}px`,s.style.width=`${n.box.width*a}px`,s.style.height=`${o.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=o.leading??0,d=Math.min(n.box.height+l,o.box.height),c=Math.max(0,o.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(o.box.height-c)*a}px`;let u=t.createElement("span");u.style.display="inline-block",u.style.verticalAlign="baseline",re(u,n.style,i),u.style.boxSizing="border-box",u.style.height=`${d*a}px`,u.style.paddingTop=`${l*a}px`,u.style.lineHeight=`${(d-l)*a}px`,n.tabLeader==="heavy"&&(u.style.fontWeight="bold");let h=n.tabLeaderAdvancePt&&n.tabLeaderAdvancePt>0?n.tabLeaderAdvancePt:Math.max(.5,n.style.fontSizePt*.2),p=chunkKJLPVGSX_cjs.na((i.tabLeaderOriginXPt??0)+n.box.x,n.box.width,h);return u.style.marginLeft=`${p.offsetPt*a}px`,u.textContent=r.repeat(p.count),u.style.letterSpacing="0",s.append(u),s}function bn(t,e,o){let n=e.shadingBox,i=D(t,"div",n,o);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(n.x-e.box.x)*o}px`,i.style.top=`${(n.y-e.box.y)*o}px`,i.style.backgroundColor=`#${e.shading}`,i}function Zt(t,e,o,n){let i=D(t,"div",o.box,n);i.className=`docx-paragraph-border docx-paragraph-border-${o.side}`,i.setAttribute("aria-hidden","true");let r=(o.box.x-e.box.x)*n,a=(o.box.y-e.box.y)*n,s=o.side==="left"||o.side==="right"||o.side==="bar",l=(s?o.box.width:o.box.height)*n,c=Y(o.edge.val)?l:Math.max(1,l);i.style.left=`${o.side==="right"?r-(c-l):r}px`,i.style.top=`${o.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let u=o.edge.color&&z.test(o.edge.color)?o.edge.color:"000000";return i.style.backgroundColor=`#${u}`,I(i,o.edge.val,u,s,c,n),i}function vn(t,e,o,n){let i=n.scale,r=D(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-o.x)*i}px`,r.style.top=`${(e.box.y-o.y)*i}px`,r.style.boxSizing="border-box",r.style.overflow="visible",r.dataset.cellId=e.id,r.dataset.gridColumn=String(e.gridColumn),r.dataset.gridSpan=String(e.gridSpan),e.rowSpan&&e.rowSpan>1&&(r.dataset.rowSpan=String(e.rowSpan)),e.paintInert||e.vMergeContinue)return r.dataset.vMergeContinue="true",r.style.border="none",r.style.backgroundColor="transparent",r;r.style.border="none",zt(t,r,e.borders,i),e.shading&&z.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`);let a=_t(t,e,i,r);for(let s of e.blocks){let l=s.kind==="table"?K(t,s,n):O(t,s,n);l.style.left=`${(s.box.x-e.box.x)*i}px`,l.style.top=`${(s.box.y-e.box.y)*i}px`,a.append(l);}return r}function K(t,e,o){let n=o.scale,i=D(t,"div",e.box,n);i.className="docx-table-fragment layout-table",i.dataset.tableId=e.tableId,i.dataset.fragmentIndex=String(e.fragmentIndex),i.style.overflow="visible";for(let r of e.rows){let a=D(t,"div",r.box,n);a.className="docx-table-row",r.revisionKind&&(a.classList.add("docx-table-row--revision",r.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),a.dataset.revisionKind=r.revisionKind,r.revisionId!==void 0&&(a.dataset.revisionId=r.revisionId),r.revisionAuthor!==void 0&&(a.dataset.reviewAuthor=r.revisionAuthor),r.revisionDate!==void 0&&(a.dataset.revisionDate=r.revisionDate)),a.dataset.rowId=r.id,r.isHeaderRepeat&&(a.dataset.headerRepeat="true"),a.style.left=`${(r.box.x-e.box.x)*n}px`,a.style.top=`${(r.box.y-e.box.y)*n}px`,a.style.overflow="visible";for(let s of r.cells)a.append(vn(t,s,r.box,o));i.append(a);}return i}function Sn(t,e,o,n,i){let r={...o,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=D(t,"div",e.box,r.scale);if(a.className="docx-page",a.style.fontFamily=chunkKJLPVGSX_cjs.O,a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(n),!n)return a;let s=Object.freeze({x:e.box.x,y:e.box.y,width:e.box.width,height:e.box.height}),l=Object.freeze({x:-(e.contentBox.x-e.box.x),y:-(e.contentBox.y-e.box.y),width:e.box.width,height:e.box.height});Gt(t,a,e,r,l,"behind");for(let p of [e.header,e.footer])p?.anchoredDrawings?.length&&on(t,a,p,p.anchoredDrawings,r,{x:e.box.x,y:e.box.y,width:e.box.width,height:e.box.height});let d=e.pageBorders?Kt(t,e.pageBorders,r.scale):null;d&&e.pageBorders?.zOrder==="back"&&a.append(d);let c=t.createElement("div");c.className="docx-page-content",c.style.position="absolute",c.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,c.style.top=`${(e.contentBox.y-e.box.y)*r.scale}px`,c.style.width=`${e.contentBox.width*r.scale}px`,c.style.height=`${e.contentBox.height*r.scale}px`,r.activeHeaderFooterRId&&c.setAttribute("contenteditable","false");for(let p of e.columnSeparators??[]){let y=t.createElement("div");y.className="docx-column-separator",y.setAttribute("contenteditable","false"),y.style.position="absolute",y.style.left=`${p.x*r.scale}px`,y.style.top=`${p.y*r.scale}px`,y.style.width=`${p.width*r.scale}px`,y.style.height=`${p.height*r.scale}px`,y.style.backgroundColor="currentColor",y.style.pointerEvents="none",c.append(y);}let u=i?new Map:null;for(let p of e.fragments){let y=p.kind==="table"?K(t,p,r):O(t,p,r);u?.set(p,y),c.append(y);}i&&u&&(i.content=c,i.blocks=u),a.append(c),d&&e.pageBorders?.zOrder==="front"&&a.append(d),Gt(t,a,e,r,l,"inFront"),nt(t,a,e,r,O,K);for(let p of ["header","footer"]){if(e[p]||e.parityBlank)continue;let y=t.createElement("div");y.className="docx-hf docx-hf--placeholder",y.dataset.docxHf=p,y.setAttribute("contenteditable","false");let x=p==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),m=Math.min(x,Rn);if(m<=0)continue;let A=Math.max(0,Math.min(wn,x-m)),w=p==="header"?A:e.box.height-A-m;y.style.position="absolute",y.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,y.style.top=`${w*r.scale}px`,y.style.width=`${e.contentBox.width*r.scale}px`,y.style.height=`${m*r.scale}px`,a.append(y);}for(let p of [e.header,e.footer]){if(!p)continue;let y=p.anchoredDrawings??[],x=ee(p,e.index,r),m=t.createElement("div");m.className="docx-hf",m.dataset.docxHf=p.kind,p.rId&&(m.dataset.docxRId=p.rId),x?(m.dataset.docxHfActive="",m.setAttribute("contenteditable","true")):m.setAttribute("contenteditable","false"),m.style.position="absolute",m.style.left=`${(p.box.x-e.box.x)*r.scale}px`,m.style.top=`${(p.box.y-e.box.y)*r.scale}px`,m.style.width=`${p.box.width*r.scale}px`;let A=pe(p,e,x);m.style.height=`${A*r.scale}px`,m.style.overflow="visible";let w=(e.box.x-p.box.x)*r.scale,b=(e.box.y-p.box.y)*r.scale,k=w+e.box.width*r.scale,L=b+e.box.height*r.scale;m.style.clipPath=`polygon(${w}px ${b}px, ${k}px ${b}px, ${k}px ${L}px, ${w}px ${L}px)`;let E=Object.freeze({x:0,y:0,width:p.box.width,height:p.box.height}),C=y.filter(g=>!eo(g)),f={...r,inertLinks:true,tabLeaderOriginXPt:p.box.x-e.box.x};for(let g of p.fragments)m.append(g.kind==="table"?K(t,g,f):O(t,g,f));ie(t,m,C,Pe(r),E,"inFront",x),a.append(m),pt(t,a,m,e,p,r.scale),nn(t,a,p,y,r,s,"inFront",x);}rt(t,a,e,r);let h=ut(t,e,r.scale,r.changeBars,r.changeBarsToggle);return h&&a.append(h),a}var Rn=30,wn=36,ke=new WeakMap;function ii(t){ke.delete(t);}function kn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pn(t,e){let o=Object.keys(t);if(o.length!==Object.keys(e).length)return false;for(let n of o){let i=t[n],r=e[n];if(i!==r)return false}return true}function An(t,e){if(t.length!==e.length)return false;for(let o=0;o<t.length;o+=1)if(t[o]!==e[o])return false;return true}function En(t,e){if(t===e)return false;let o=new Set([...Object.keys(t),...Object.keys(e)]);for(let n of o){if(n==="fragments")continue;let i=t[n],r=e[n];if(i!==r&&!(Array.isArray(i)&&Array.isArray(r)&&An(i,r))&&!(typeof i=="object"&&typeof r=="object"&&i!==null&&r!==null&&!Array.isArray(i)&&!Array.isArray(r)&&Pn(i,r)))return false}return true}var Jt="docx-column-separator";function Ln(t,e,o,n){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...n,paintInstance:`p${o.index}`,tabLeaderOriginXPt:o.contentBox.x-o.box.x},s=new Map,l=[];for(let h of o.fragments){let p=r.get(h)??(h.kind==="table"?K(t,h,a):O(t,h,a));s.set(h,p),l.push(p);}let d=new Set(l),c=i.firstChild;for(;c;){let h=c.nextSibling,p=c;!d.has(p)&&p.classList?.contains(Jt)!==true&&c.remove(),c=h;}let u=i.firstChild;for(;u&&u.classList?.contains(Jt);)u=u.nextSibling;for(let h of l){if(h===u){u=u.nextSibling;continue}i.insertBefore(h,u);}return yt(t,e.element,o,n.scale,n.changeBars,n.changeBarsToggle),{record:o,materialized:true,element:e.element,content:i,blocks:s}}function $n(t,e,o,n){let i=t.element;return !t.materialized&&kn(t.record.box,e.box)&&i.style.left===`${e.box.x*o}px`&&i.style.top===`${e.box.y*o}px`&&i.style.width===`${e.box.width*o}px`&&i.style.height===`${e.box.height*o}px`&&i.getAttribute("aria-hidden")===(n?"true":null)}function Mn(t,e,o={}){Tn(t,e,o);}function Tn(t,e,o,n){t.classList.toggle("docx-show-paragraph-marks",o.showParagraphMarks??false);let i=o.contentControlChrome,r=i?`${i.showAll===true?"1":"0"}:${i.activeIds?[...i.activeIds].sort().join(","):""}:${i.checkedIds?[...i.checkedIds].sort().join(","):""}:${i.tocControlIds?[...i.tocControlIds].sort().join(","):""}:${i.suppressedIds?[...i.suppressedIds].sort().join(","):""}:${i.readOnly===true?"ro":""}`:"",a=o.drawingStrings??be,s=o.imageUrlPort!==void 0?kt(t,o.imageUrlPort):null,l=i?.additionalBoundaries?i.additionalBoundaries.flatMap(f=>f.fragments.map(g=>`${f.id}:${g.pageIndex}:${g.box.x}:${g.box.y}:${g.box.width}:${g.box.height}`)).sort().join(","):"",d=o.readOnlyParagraphIds?[...o.readOnlyParagraphIds].sort().join(","):"",c=o.emptyTocPlaceholderIds?[...o.emptyTocPlaceholderIds].sort().join(","):"",u=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",h=et(o.revisionStyles,e,n),p={scale:o.scale??96/72,ariaHidden:o.ariaHidden??true,drawingStrings:a,urlRegistry:s,...o.fontAlias?{fontAlias:o.fontAlias}:{},...o.readOnlyParagraphIds?{readOnlyParagraphIds:o.readOnlyParagraphIds}:{},...o.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:o.emptyTocPlaceholderIds}:{},...o.defaultFontFamily?{defaultFontFamily:o.defaultFontFamily}:{},...o.fieldShading?{fieldShading:o.fieldShading}:{},showParagraphMarks:o.showParagraphMarks??false,changeBars:o.changeBars??"all-markup",changeBarsToggle:o.changeBarsToggle??false,...o.shadeFormFields!==void 0?{shadeFormFields:o.shadeFormFields}:{},...h?{revisionStyles:h}:{},...o.imageUrlPort?{imageUrlPort:o.imageUrlPort}:{},...o.activeHeaderFooterRId?{activeHeaderFooterRId:o.activeHeaderFooterRId}:{},...o.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:o.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},y=t.ownerDocument,x=`${p.scale}|${p.ariaHidden}|${p.fontAlias?en(p.fontAlias):""}|${p.defaultFontFamily??""}|cc:${r}:${l}|toc:${u}|ro:${d}|tocEmpty:${c}|${o.imageUrlPort?"url":""}|${Bt(a)}|rev:${Qe(h)}|marks:${o.showParagraphMarks??false}|bars:${p.changeBars}:${p.changeBarsToggle}`,m=ke.get(t),A=m?.parameters===x,w=A?new Map(m.pages.map(f=>[f.record,f])):null,b=m?new Map(m.pages.map(f=>[f.record.index,f])):null,k=e.pages.map(f=>{let g=o.materialize?.has(f.index)??true,v=w?.get(f);if(v&&v.materialized===g)return v;let S=b?.get(f.index);if(!g&&S&&$n(S,f,p.scale,p.ariaHidden))return {record:f,materialized:false,element:S.element};if(A&&g&&S?.materialized&&En(S.record,f)){let M=Ln(y,S,f,p);if(M)return M}let R={},_=Sn(y,f,p,g,R);return {record:f,materialized:g,element:_,...R.content?{content:R.content}:{},...R.blocks?{blocks:R.blocks}:{}}});ke.set(t,{parameters:x,pages:k}),t.dataset.revision=String(e.revision),s&&s.reconcile(Dt(e),Ht(e));let L=new Set(k.map(f=>f.element)),E=t.firstChild;for(;E;){let f=E.nextSibling;L.has(E)||E.remove(),E=f;}let C=t.firstChild;for(let f of k){if(f.element===C){C=C.nextSibling;continue}t.insertBefore(f.element,C);}ht(k,p);}function Cn(t,e,o,n){let i=t.ownerDocument,r=n.scale,a=[];for(let s of o){let l=e.pages[s.pageIndex];if(!l)continue;let d=i.createElement("div");d.className=s.className??n.className??"docx-cell-selection-rect",d.style.position="absolute";let c=n.pageOffsetX?.get(s.pageIndex)??0;d.style.left=`${(l.contentBox.x+s.x+c)*r}px`,d.style.top=`${(l.contentBox.y+s.y)*r}px`,d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,s.reviewAuthor&&(d.dataset.reviewAuthor=s.reviewAuthor.author,d.dataset.reviewAuthorSlot=String(s.reviewAuthor.slot%$),d.style.setProperty("--doc-review-author-current",s.reviewAuthor.color)),s.activeBackground!==void 0&&(d.style.backgroundColor=s.activeBackground,d.style.boxShadow="none"),a.push(d);}t.replaceChildren(...a);}
|
|
2
2
|
exports.a=J;exports.b=Je;exports.c=jn;exports.d=fo;exports.e=Gn;exports.f=vr;exports.g=Bt;exports.h=be;exports.i=Sr;exports.j=we;exports.k=an;exports.l=ii;exports.m=Mn;exports.n=Tn;exports.o=Cn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Me,Ae,ve,Ne,Be,De,Le,Oe}from'./chunk-Z65JJLLF.js';function V(e){return e.kind!=="textValue"}function O(e,t){for(let r of e.children)if(V(r)&&r.localName===t)return r}function A(e,t){return e.attributes.find(r=>r.localName===t)?.value}function z(e){let t=O(e,"pPr"),r=t?O(t,"outlineLvl"):void 0;if(r){let o=A(r,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let n=O(e,"name"),l=n?/^heading\s+([1-9])$/i.exec(A(n,"val")?.trim()??""):null;return l?Number(l[1])-1:null}function M(e,t=0,r=e.length,n){let l=new Set,o=new Map,s=new Map,a=n?[n]:[];n&&l.add(n);for(let d=t;d<r;d+=1){let i=e[d].node;if(Ae(i,"begin")){a.push(i.id);continue}if(Ae(i,"separate")){let u=a[a.length-1];u&&(l.add(u),o.set(i.id,u));continue}if(Ae(i,"end")){let u=a.pop();u&&(l.add(u),s.set(i.id,u));}}return {activeBegins:l,separateBegin:o,endBegin:s}}function b(e,t,r){if(Ae(r,"begin"))return t.activeBegins.has(r.id)&&e.push({beginId:r.id,separated:false}),true;if(Ae(r,"separate")){let n=t.separateBegin.get(r.id),l=e[e.length-1];return n&&l?.beginId===n&&(l.separated=true),true}if(Ae(r,"end")){let n=t.endBegin.get(r.id),l=e[e.length-1];return n&&l?.beginId===n&&e.pop(),true}return false}function F(e){for(let t of e)if(!t.separated)return false;return true}function q(e,t){let r=[];Me(e,r,t);let n=M(r),l=[];return {consume:o=>b(l,n,o),visible:()=>F(l)}}var _=4096,j=Ne*16;function C(){return {out:[],runs:[],length:0}}function L(e,t,r,n){if(t.length===0||r===n)return;let l=e.runs[e.runs.length-1];if(l?.runId===t&&l.end===r){e.runs[e.runs.length-1]={runId:t,start:l.start,end:n};return}e.runs.push({runId:t,start:r,end:n});}function N(e,t,r,n){if(t.length>n.left)return false;if(n.left-=t.length,t.length>0){let l=e.length;e.out.push(t),e.length+=t.length,L(e,r,l,e.length);}return true}function D(e,t){let r=e.length;t.text.length>0&&e.out.push(t.text),e.length+=t.text.length;for(let n of t.runs)L(e,n.runId,r+n.start,r+n.end);}function w(e){return {text:e.out.join(""),runs:e.runs}}var U=Object.freeze({text:"",runs:[]});function I(){return {text:ve,runs:[]}}function X(e,t,r,n){let l=[];if(!Me(e,l,r))return null;let o=l.reverse(),s=C();for(;o.length>0;){let a=o.pop();if(t==="original"&&a.hiddenInOriginal)continue;if(De(a.node)){let i=[];if(!Me(a.node,i,r))return null;for(let u=i.length-1;u>=0;u-=1)o.push(i[u]);continue}if(Be(a.node))continue;let d=Le(a.node);if(!N(s,d,a.runId,n))return null}return w(s)}function H(e,t,r,n,l){let o=C(),s=[],a=M(e);for(let d of e){let i=d.node;if(b(s,a,i)||Be(i)||!F(s)||t==="original"&&d.hiddenInOriginal)continue;if(De(i)){let p=l>=Oe?X(i,t,r,n):v(i,t,r,n,l+1);if(p===null)return null;D(o,p);continue}let u=Le(i);if(!N(o,u,d.runId,n))return null}return w(o)}function v(e,t,r,n,l){let o=[];return Me(e,o,r)?H(o,t,r,n,l):null}function $(e,t,r){let n=t.node;if(e.owned.has(n.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),n.id===e.endId)return true;if(n.id===e.span.node.id||b(e.states,e.markers,n)||e.overflow||Be(n)||De(n)||!e.owned.has(n.id)||!F(e.states)||r==="original"&&t.hiddenInOriginal)return false;let l=Le(n);return N(e.result,l,t.runId,e.chars)||(e.overflow=true),false}function W(e,t,r="allMarkup"){let n=new Map,l=new Map,o=new Map;for(let i of t)i.kind==="complex"?l.set(i.node.id,i):o.set(i.node.id,i);let s=[];Me(e,s);let a=new Map;for(let i=0;i<s.length;i+=1)a.set(s[i].node.id,i);let d=null;for(let i=0;i<s.length;i+=1){let u=s[i],p=o.get(u.node.id);if(p)if(d!==null&&!F(d.states))n.set(p.node.id,U);else {let f={left:_},S={left:j},g=v(p.node,r,f,S,0);n.set(p.node.id,g??I());}if(d===null){let f=l.get(u.node.id);if(!f)continue;let S=new Set(f.removeNodeIds),g=-1;for(let k=f.removeNodeIds.length-1;k>=0;k-=1){let R=a.get(f.removeNodeIds[k]);if(!(R===void 0||R<=i)&&Ae(s[R].node,"end")){g=R;break}}let P=s[g];if(!P){n.set(f.node.id,I());continue}d={span:f,owned:S,states:[{beginId:f.node.id,separated:false}],markers:M(s,i+1,g,f.node.id),endId:P.node.id,result:C(),chars:{left:j},nodesLeft:_,overflow:false};}$(d,u,r)&&(n.set(d.span.node.id,d.overflow?I():w(d.result)),d=null);}return d!==null&&n.set(d.span.node.id,I()),n}export{q as a,_ as b,W as c,z as d};
|