@docx-editor.dev/core 2.7.0 → 2.8.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.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +8 -7
- package/dist/binding.d.ts +8 -7
- package/dist/binding.js +1 -1
- package/dist/chunk-2WIXJ7CW.js +10 -0
- package/dist/chunk-5XKD3VFP.js +18 -0
- package/dist/{chunk-DTR64XCS.cjs → chunk-HCSWWXS2.cjs} +2 -2
- package/dist/chunk-HTJLSGBH.cjs +18 -0
- package/dist/{chunk-O4VILLOM.cjs → chunk-JEHWQPXS.cjs} +1 -1
- package/dist/chunk-KCJLRAKT.js +5 -0
- package/dist/chunk-KTL3UMPK.js +2 -0
- package/dist/chunk-M6ZIVJUA.cjs +2 -0
- package/dist/chunk-NU57YOQE.js +15 -0
- package/dist/chunk-RUS2YBWU.cjs +10 -0
- package/dist/chunk-TJEWP7MX.cjs +15 -0
- package/dist/chunk-UGUPVZDY.cjs +5 -0
- package/dist/{chunk-NDTLLSG7.js → chunk-XJRMFS6O.js} +1 -1
- package/dist/chunk-XN634HAC.js +2 -0
- package/dist/contracts/document.d.cts +25 -3
- package/dist/contracts/document.d.ts +25 -3
- package/dist/contracts/editor.d.cts +7 -7
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.cts +6 -6
- package/dist/contracts/interaction.d.ts +6 -6
- package/dist/contracts/modules.d.cts +4 -3
- package/dist/contracts/modules.d.ts +4 -3
- package/dist/contracts/types.d.cts +101 -1
- package/dist/contracts/types.d.ts +101 -1
- package/dist/{custom-node-writes-BpOBjNzo.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -4
- package/dist/{custom-node-writes-C_AlNvds.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -4
- package/dist/{editor-CXaGlcUa.d.cts → editor-CWlj33GH.d.cts} +78 -67
- package/dist/{editor-C--WWCBA.d.ts → editor-D52SD4jG.d.ts} +78 -67
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.cts +63 -31
- package/dist/editor.d.ts +63 -31
- package/dist/editor.js +1 -1
- package/dist/{image-resources-Bkmu1Jei.d.cts → image-resources-BveffuKp.d.cts} +1 -1
- package/dist/{image-resources-BWd5u-op.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
- package/dist/{index-QsE1xXyT.d.cts → index-39yzaZO_.d.cts} +1573 -1429
- package/dist/{index-DW0TsrYl.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +149 -21
- package/dist/layout.d.ts +149 -21
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -5
- package/dist/output.d.ts +6 -5
- package/dist/output.js +1 -1
- package/dist/{review-reads-C5E7u-pt.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
- package/dist/{review-reads-ChgUq41I.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
- package/dist/{review-support-Cr2n7f1-.d.ts → review-support--I4ChuzF.d.ts} +1 -1
- package/dist/{review-support-oQrX6Xu3.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
- package/dist/{semantic-cell-selection-CQOgvtbT.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
- package/dist/{semantic-cell-selection-C8RC0VnN.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
- package/dist/{semantic-interaction-C45D_oG2.d.ts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
- package/dist/{semantic-interaction-f4GyBQ_1.d.cts → semantic-interaction-DVUqu_47.d.cts} +14 -2
- package/dist/{semantic-paint-DUkGLJ_L.d.ts → semantic-paint-BKiiDJol.d.ts} +2 -2
- package/dist/{semantic-paint-BUt0ePEW.d.cts → semantic-paint-COQY0Lnq.d.cts} +2 -2
- package/dist/{semantic-records-DoW_xNgJ.d.ts → semantic-records-DHcMZM2-.d.ts} +22 -30
- package/dist/{semantic-records-CuT3Wsd-.d.cts → semantic-records-rAKWaD-1.d.cts} +22 -30
- package/dist/{shaped-measurer-CDcHzjhf.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
- package/dist/{shaped-measurer-CakZ7g1s.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +21 -9
- package/dist/store.d.ts +21 -9
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-QujrzgCz.d.cts → tree-op-types-A-SLSKzK.d.cts} +54 -9
- package/dist/{tree-op-types-fZgbrR5F.d.ts → tree-op-types-BbzrA-kg.d.ts} +54 -9
- package/dist/{tree-session-5UWKAQ41.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
- package/dist/{tree-session--6LDTNjR.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
- package/dist/{tree-store-Dy9FZ1pa.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
- package/dist/{tree-store-DhYIACNE.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
- package/package.json +2 -2
- package/dist/chunk-32HTRN7R.js +0 -10
- package/dist/chunk-BRBRYJKE.cjs +0 -2
- package/dist/chunk-EMQSFPJO.cjs +0 -15
- package/dist/chunk-GBK7Z6F4.cjs +0 -5
- package/dist/chunk-GPJXQDHC.js +0 -2
- package/dist/chunk-JLSB6KNZ.js +0 -5
- package/dist/chunk-LEV2X47E.cjs +0 -18
- package/dist/chunk-OB6JFVYA.js +0 -15
- package/dist/chunk-QTUZFJ4O.js +0 -18
- package/dist/chunk-UE7KTQLK.js +0 -2
- package/dist/chunk-WC3LI6FC.cjs +0 -10
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';var chunkHCSWWXS2_cjs=require('./chunk-HCSWWXS2.cjs'),chunkRUS2YBWU_cjs=require('./chunk-RUS2YBWU.cjs');var Jn=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},ai=(e,n)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${n} must be non-blank and contain no control characters`)},Ob=(e,n)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${n} must be a four-byte ASCII tag`)},vf=(e,n,t)=>{let r=Object.entries(e).sort(([a],[i])=>a<i?-1:a>i?1:0),o=Object.create(null);for(let[a,i]of r){if(Ob(a,`${n} key`),!Number.isFinite(i)||t&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${n} value must be ${t?"a non-negative safe integer":"finite"}`);if(t&&i>4294967295)throw new RangeError(`${n} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},As=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),Cb=e=>e?Object.freeze({requested:As(e.requested),resolved:As(e.resolved)}):void 0,Tf=new WeakSet,_s=e=>{if(chunkRUS2YBWU_cjs.h(e),!Tf.has(e)){if(e.identity!==`${e.hash}#${e.faceIndex}`)throw new TypeError("Resolved font identity does not match hash and face index");if(!Number.isSafeInteger(e.byteLength)||e.byteLength<0)throw new TypeError("Resolved font byte length is invalid");Tf.add(e);}},Ds=e=>(_s(e),e),li=e=>(_s(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:As(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:Cb(e.substitution)??null})),or=e=>{if(ai(e.shapingLibrary.name,"shaping library name"),ai(e.shapingLibrary.version,"shaping library version"),ai(e.unicodeDataVersion,"Unicode data version"),!/^\d+(?:\.\d+){0,3}(?:[-+][0-9A-Za-z.-]+)?$/.test(e.shapingLibrary.version))throw new TypeError("shaping library version must be a numeric version");if(!/^\d+(?:\.\d+){1,2}$/.test(e.unicodeDataVersion))throw new TypeError("Unicode data version must be a dotted numeric version");if(!/^[A-Z][a-z]{3}$/.test(e.script))throw new TypeError("script must be a four-letter ISO 15924 code");if(ai(e.language,"language"),!/^(?:und|[A-Za-z]{2,8})(?:-[A-Za-z0-9]{1,8})*$/.test(e.language))throw new TypeError("language must be a BCP 47 language tag");if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("direction must be ltr or rtl");if(!["none","NFC","NFD","NFKC","NFKD"].includes(e.normalization))throw new TypeError("invalid normalization policy");if(!["halfAwayFromZero","halfToEven","towardZero"].includes(e.roundingMode))throw new TypeError("invalid fixed-point rounding mode");if(!Number.isSafeInteger(e.fixedPointScale)||e.fixedPointScale<=0)throw new RangeError("fixed-point scale must be a positive safe integer");let n=Ds(e.font),t=e.fallbackOrder.map(Ds),r=new Set;for(let o of t){let a=JSON.stringify(li(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:n,variationAxes:vf(e.variationAxes,"variation axis",false),shapingLibrary:Object.freeze({name:e.shapingLibrary.name,version:e.shapingLibrary.version}),unicodeDataVersion:e.unicodeDataVersion,normalization:e.normalization,script:e.script,language:e.language,direction:e.direction,features:vf(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...t]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},Of=e=>{let n=or(e);return Object.freeze({font:li(n.font),variationAxes:Object.freeze(Object.entries(n.variationAxes).map(t=>Object.freeze(t))),shapingLibrary:Object.freeze({name:n.shapingLibrary.name,version:n.shapingLibrary.version}),unicodeDataVersion:n.unicodeDataVersion,normalization:n.normalization,script:n.script,language:n.language,direction:n.direction,features:Object.freeze(Object.entries(n.features).map(t=>Object.freeze(t))),fallbackOrder:Object.freeze(n.fallbackOrder.map(li)),fixedPointScale:n.fixedPointScale,roundingMode:n.roundingMode})},Hs=e=>JSON.stringify(Of(e)),rr=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},Hn=e=>{try{return Jn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},kf=new WeakMap,ii=e=>{let n=kf.get(e);if(n)return n;_s(e);let t=JSON.stringify({identity:e.identity,id:e.id,family:e.family,request:e.request,hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:e.substitution??null});return kf.set(e,t),t},si=(e,n)=>{let t=or(n);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==t.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(rr(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(s=>{rr(s.id,"glyph id"),rr(s.cluster,"glyph cluster");let d=r.get(s.outline);if(!d){if(!Number.isSafeInteger(s.outline.unitsPerEm)||s.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(s.outline)?s.outline:Object.freeze({path:s.outline.path,unitsPerEm:s.outline.unitsPerEm}),r.set(s.outline,d);}return Object.freeze({id:s.id,cluster:s.cluster,originX:Hn(s.originX),originY:Hn(s.originY),advanceX:Hn(s.advanceX),advanceY:Hn(s.advanceY),offsetX:Hn(s.offsetX),offsetY:Hn(s.offsetY),outline:d})}),a=e.fontSpans.map(s=>{if(rr(s.glyphStart,"font span start"),rr(s.glyphEnd,"font span end"),s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");s.fallbackIndex!==null&&rr(s.fallbackIndex,"fallback index");let d=Ds(s.font);if(s.fallbackIndex===null){if(ii(d)!==ii(t.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=t.fallbackOrder[s.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(ii(d)!==ii(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...s,font:d})});for(let s=0;s<a.length;s+=1){let d=s===0?0:a[s-1].glyphEnd;if(a[s].glyphStart!==d)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(s=>{for(let[c,u]of [["cluster text start",s.textStart],["cluster text end",s.textEnd],["cluster glyph start",s.glyphStart],["cluster glyph end",s.glyphEnd],["cluster font span",s.fontSpan]])rr(u,c);if(s.textEnd<=s.textStart||s.textEnd>e.text.length||s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[s.fontSpan];if(!d||s.glyphStart<d.glyphStart||s.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...s,advance:Hn(s.advance),caretEdges:Object.freeze(s.caretEdges.map(Hn))})}),l=Object.freeze({ascent:Hn(e.metrics.ascent),descent:Hn(e.metrics.descent),lineGap:Hn(e.metrics.lineGap)});return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:l})},Bb=(e,n)=>{let t=si(e,n);return Object.freeze({text:t.text,direction:t.direction,script:n.script,language:n.language,bidiLevel:t.bidiLevel,glyphs:t.glyphs,clusters:t.clusters,fontSpans:Object.freeze(t.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:li(r.font)}))),metrics:t.metrics})};function jr(e){try{let n=new URL(e);return n.username!==""||n.password!==""||n.search!==""||n.hash!==""?`${n.protocol}//${n.host}${n.pathname}\u2026`:e}catch{let n=e.search(/[?#]/);return n===-1?e:`${e.slice(0,n)}\u2026`}}function Cf(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,n=>jr(n))}function Mb(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function Bf(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function Lf(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16 and 22.3. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${Cf(e instanceof Error?e.message:String(e))})`}function Ff(e){let n=Cf(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${n})`}function Mf(e,n){let t=`expected HarfBuzz ${e}, loaded ${n}`;return `${t}. The bundled binary does not match this build of the engine.`}var Wo=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),Go=null,zo=null;function Eb(){return Go?Promise.resolve():zo||(zo=import('harfbuzzjs').then(e=>{let n=e.versionString();if(n!==Wo.version)throw new Me("shapingLibraryMismatch",{diagnostic:Mf(Wo.version,n)});Go=e;}).catch(e=>{throw zo=null,e instanceof Me?e:Bf(e)?new Me("unsupportedRuntime",{diagnostic:Lf(e),cause:e}):new Me("wasmUnavailable",{diagnostic:Ff(e),cause:e})}),zo)}function Nb(){return Go!==null}function Ab(){if(!Go)throw new Me("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return Go}var Me=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(n,t={}){super(`HarfBuzz shaping failed (${n})`,{cause:t.cause}),this.code=n,this.limit=t.limit,this.actual=t.actual,this.diagnostic=t.diagnostic;}},Db=16*1024*1024,_b=1e6,Hb=1e6,zb=1e6,jb=4,Wb=512,Gb=1024*1024,$b=16*1024*1024,Xb=32*1024*1024,Vb=64*1024*1024,Yb=64*1024*1024,Kb=1e6,Ub=1e6,Zb=1e6,qb=64,Jb=4096,Qb=4*1024*1024,ex=64*1024*1024,nx=64*1024*1024,tx=256*1024*1024,rx=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Ef=["cmap","head","hhea","hmtx","maxp"],ox=(e,n)=>e[n]<<8|e[n+1],ax=(e,n)=>e[n]*16777216+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3]>>>0,ix=(e,n)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?ax(e,12+n*4):0,lx=(e,n)=>{let t=ix(e,n),r=ox(e,t+4),o=new Set;for(let a=0;a<r;a+=1){let i=t+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},sx=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),dx=(e,n)=>{let t=chunkRUS2YBWU_cjs.j(e,n);if(!t.valid)return t;let r=lx(e,n);for(let o of Ef)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},cx=dx,Qn=(e,n,t)=>{if(!Number.isSafeInteger(e)||e<=0||e>t)throw new RangeError(`${n} must be a positive safe integer no greater than ${t}`);return e},ux=(e,n,t)=>{let r=e<0n,o=r?-e:e,a=o/n,i=o%n;if(t!=="towardZero"){let d=i*2n;(d>n||d===n&&(t==="halfAwayFromZero"||t==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let l=r?-a:a,s=Number(l);if(!Number.isSafeInteger(s))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return s},Nf=(e,n,t,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(t)||t<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");return Jn(ux(BigInt(e)*BigInt(t),BigInt(n),r))},fx=(e,n,t,r)=>{if(!Number.isSafeInteger(n)||n<=0)throw new RangeError("font size must be a positive integer number of half points");if(n>Math.floor(Number.MAX_SAFE_INTEGER/t))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=n*t,a=e*2;return i=>Nf(i,a,o,r)},px=(e,n)=>{if(n.length===0)return [];let t=[...new Set(n.map(i=>i.cluster))].sort((i,l)=>i-l),r=new Map;for(let i=0;i<t.length;i+=1)r.set(t[i],t[i+1]??e.length);let o=[],a=0;for(;a<n.length;){let i=n[a].cluster,l=a+1;for(;l<n.length&&n[l].cluster===i;)l+=1;let s=n.slice(a,l).reduce((c,u)=>c+u.advanceX,0),d=Jn(s);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:l,advance:d,caretEdges:Object.freeze([Jn(0),d]),fontSpan:0}),a=l;}return o},et=64,mt=8,ar=8,mx=32,Af=et+2*mt,gx=et+mt+ar,hx=et+mt+ar,yx=et+mt+ar,Df=et+8*mt,_f=et+8*ar+mt,bx=et+6*ar+mt,xx=et+3*ar+2*mt,Sx=et+3*ar,$o=e=>et+e.length*Uint16Array.BYTES_PER_ELEMENT,js=e=>yx+$o(e),jo=e=>mx+e*mt,Px=(e,n)=>Af+$o(e)+gx+js(n),wx=e=>Df+$o(e)+jo(e.length)+e.length*_f,Rx=e=>{let n=new Set(e.glyphs.map(t=>t.outline));return Df+$o(e.text)+jo(e.glyphs.length)+e.glyphs.length*_f+jo(e.clusters.length)+e.clusters.length*bx+e.clusters.reduce((t,r)=>t+jo(r.caretEdges.length),0)+jo(e.fontSpans.length)+e.fontSpans.length*xx+Sx+[...n].reduce((t,r)=>t+js(r.path),0)},Ix=(e,n)=>Af+$o(e)+hx+n,zs=class{#n;#l;#u;#f;#p;#y;#b;#m;#g;#s;#h;#d;#e;#o=new Map;#a=new Map;#t=new Map;#i=0;#r=0;#c;constructor(n,t){this.#n=n,this.#l=Qn(t.maxFontBytes??Db,"maximum font bytes",Yb),this.#u=Qn(t.maxInputUtf16??_b,"maximum input UTF-16 code units",Kb),this.#f=Qn(t.maxCodepoints??Hb,"maximum input code points",Ub),this.#p=Qn(t.maxGlyphs??zb,"maximum shaped glyphs",Zb),this.#y=Qn(t.maxCachedFaces??jb,"maximum cached faces",qb),this.#b=Qn(t.maxCachedShapes??Wb,"maximum cached shape results",Jb),this.#m=Qn(t.maxOutlineBytes??Gb,"maximum outline bytes",Qb),this.#g=Qn(t.maxCachedOutlineBytes??$b,"maximum cached outline bytes",ex),this.#s=Qn(t.maxShapedRunBytes??Xb,"maximum shaped run bytes",nx),this.#h=Qn(t.maxCachedShapeBytes??Vb,"maximum cached shape bytes",tx),this.#d=t.instrumentation?.onFaceCacheEvent,this.#e=t.instrumentation,this.#c=new this.#n.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#t.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(n,t){let r=this.#o.get(n.identity);if(r)return this.#o.delete(n.identity),this.#o.set(n.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:n.identity})),r;let o=chunkRUS2YBWU_cjs.g(n);for(let c of Ef)if(!o.has(c))throw new Me("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#n.Blob(sx(t)),i=new this.#n.Face(a,n.faceIndex),l=new this.#n.Font(i),s=l.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(s.ascender)||!Number.isSafeInteger(s.descender)||!Number.isSafeInteger(s.lineGap))throw new Me("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(l.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:n.identity,blob:a,face:i,font:l,unitsPerEm:i.upem};return this.#o.set(n.identity,d),this.#d?.(Object.freeze({kind:"created",identity:n.identity})),d}#P(n,t,r){let o=JSON.stringify([n.identity,n.unitsPerEm,r,t]),a=this.#a.get(o);if(a)return this.#a.delete(o),this.#a.set(o,a),this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#i})),a.outline;this.#e?.onOutlinePathCall?.();let i=n.font.glyphToPath(t),l=js(i);if(l>this.#m)throw new Me("outlineOverLimit",{limit:this.#m,actual:l});let s=Object.freeze({path:i,unitsPerEm:n.unitsPerEm}),d=Px(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),s;for(;this.#i+d>this.#g;){let c=this.#a.keys().next().value;if(c===void 0)break;let u=this.#a.get(c);this.#a.delete(c),this.#i-=u.bytes,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#i}));}return this.#a.set(o,{outline:s,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),s}#x(n){if(n.length>this.#u)throw new Me("textOverLimit",{limit:this.#u,actual:n.length});let t=0;for(let r=0;r<n.length;){let o=n.codePointAt(r);if(r+=o>65535?2:1,t+=1,t>this.#f)throw new Me("codepointsOverLimit",{limit:this.#f,actual:t})}}shape(n){if(!this.#c)throw new Me("disposed");if(chunkRUS2YBWU_cjs.h(n.environment.font),n.environment.font.byteLength>this.#l)throw new Me("fontOverLimit",{limit:this.#l,actual:n.environment.font.byteLength});this.#x(n.text);let t=wx(n.text);if(t>this.#s)throw new Me("shapedRunOverLimit",{limit:this.#s,actual:t});let r=or(n.environment),o=JSON.stringify([n.text,n.fontSizeHalfPoints,n.bidiLevel,Hs(r)]),a=this.#t.get(o);if(a)return this.#t.delete(o),this.#t.set(o,a),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==Wo.name||r.shapingLibrary.version!==Wo.version)throw new Me("shapingLibraryMismatch");if(r.normalization!=="none")throw new Me("unsupportedNormalization");if(!Number.isSafeInteger(n.bidiLevel)||n.bidiLevel<0||(n.bidiLevel&1)===1!=(r.direction==="rtl"))throw new Me("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new Me("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new Me("unsupportedFallback");let i=chunkRUS2YBWU_cjs.f(r.font),l=chunkRUS2YBWU_cjs.g(r.font);if([...rx].some(d=>l.has(d)))throw new Me("unsupportedColorFont");let s=n.text;this.#x(s);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(s),f.setDirection(r.direction==="rtl"?this.#n.Direction.RTL:this.#n.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#n.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([C,k])=>new this.#n.Feature(C,k));this.#e?.onShapeCall?.(),this.#n.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new Me("glyphOverLimit",{limit:this.#p,actual:m.length});let g=fx(c.upem,n.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=Jn(0),y=Jn(0),x=new Map,T=JSON.stringify(Object.entries(r.variationAxes).sort(([C],[k])=>C.localeCompare(k))),R=m.map(C=>{let k=g(C.xAdvance??0),b=g(C.yAdvance??0),H={id:C.codepoint,cluster:C.cluster,originX:h,originY:y,advanceX:k,advanceY:b,offsetX:g(C.xOffset??0),offsetY:g(C.yOffset??0),outline:x.get(C.codepoint)??(()=>{let O=this.#P(d,C.codepoint,T);return x.set(C.codepoint,O),O})()};return h=Jn(h+k),y=Jn(y+b),H}),B=u.hExtents(),E=si({text:s,direction:r.direction,bidiLevel:n.bidiLevel,glyphs:R,clusters:px(s,R),fontSpans:R.length===0?[]:[{glyphStart:0,glyphEnd:R.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(B.ascender),descent:g(-B.descender),lineGap:g(B.lineGap)}},r),w=Rx(E);if(w>this.#s)throw new Me("shapedRunOverLimit",{limit:this.#s,actual:w});let L=Ix(o,w);if(L>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),E;for(;this.#t.size>=this.#b||this.#r+L>this.#h;){let C=this.#t.keys().next().value;if(C===void 0)break;let k=this.#t.get(C);this.#t.delete(C),this.#r-=k.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#t.set(o,{run:E,bytes:L}),this.#r+=L,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),E}catch(d){throw d instanceof Me?d:new Me("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},vx=(e={})=>new zs(Ab(),e);var re=(e,n,t)=>e>=n&&e<=t,di=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(n){super(`Unsupported Unicode script at U+${n.toString(16).toUpperCase()}`),this.codePoint=n;}},Tx=e=>{if(re(e,65313,65338)||re(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(re(e,1424,1535)||re(e,64285,64335))return {slot:"cs",script:"Hebr"};if(re(e,1536,1791)||re(e,1872,1919)||re(e,2160,2207)||re(e,2208,2303)||re(e,64336,65023)||re(e,65136,65279)||re(e,126464,126719))return {slot:"cs",script:"Arab"};if(re(e,4352,4607)||re(e,11904,12351)||re(e,12352,12543)||re(e,12544,12687)||re(e,12784,12799)||re(e,13312,19903)||re(e,19968,40959)||re(e,44032,55215)||re(e,63744,64255)||re(e,65382,65437)||re(e,65440,65500)||re(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(re(e,2304,2431)||re(e,43232,43263))return {slot:"cs",script:"Deva"};if(re(e,2432,2559))return {slot:"cs",script:"Beng"};if(re(e,880,1023)||re(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(re(e,1024,1327)||re(e,7296,7311)||re(e,11744,11775)||re(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(re(e,3584,3711))return {slot:"cs",script:"Thai"};if(re(e,6016,6143)||re(e,6624,6655))return {slot:"cs",script:"Khmr"};if(re(e,768,879)||re(e,6832,6911)||re(e,7616,7679)||re(e,8400,8447)||re(e,8192,8303)||re(e,65056,65071)||e<=47||re(e,58,64)||re(e,91,96)||re(e,123,191)||e===5760||re(e,8192,11263)||re(e,65024,65039)||re(e,65280,65381)||re(e,65438,65439)||re(e,65501,65535)||re(e,126976,129791)||re(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(re(e,192,687)||re(e,7424,7551)||re(e,7552,7615)||re(e,7680,7935)||re(e,11360,11391)||re(e,42784,43007)||re(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new di(e)};function kx(e,n,t){let r=[];for(let l=0;l<e.length;){let s=e.codePointAt(l),d=l+(s>65535?2:1);r.push({from:l,to:d,classified:Tx(s)}),l=d;}let o=null;for(let l of r)l.classified?o=l.classified:o&&(l.classified=o);o=null;for(let l=r.length-1;l>=0;l-=1){let s=r[l];s.classified?o=s.classified:o&&(s.classified=o);}let a=[],i=r.every(({from:l})=>e.codePointAt(l)<=127)?"ascii":"hAnsi";for(let l of r){let s=t.levels[n+l.from]??0,d=(s&1)===1?"rtl":"ltr",c=l.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===l.from&&u.bidiLevel===s&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:l.to}:a.push({from:l.from,to:l.to,direction:d,bidiLevel:s,script:c.script,slot:c.slot});}return a}var Ox="und";function Cx(){return typeof Intl.Segmenter=="function"}function Bx(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function Lx(){let e=new(Bx())("und",{granularity:"grapheme"});return {segment(n){let t=[],r=0;for(let o of e.segment(n)){let a=o.index,i=a+o.segment.length;t.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return t}}}var $s=Lx(),Xs=$s,Hf=0;function Vs(){return Hf}var Wr=null,ir=null,ci=null,Xo=null;function zn(e){if(Wr===e&&ir)return ir;if(ci===e&&Xo){let t=Xo;return ci=Wr,Xo=ir,Wr=e,ir=t,t}let n=Xs.segment(e);return ci=Wr,Xo=ir,Wr=e,ir=n,n}function Fx(e){Xs=e,zf();}function Mx(){Xs=$s,zf();}function zf(){Hf+=1,Wr=null,ir=null,ci=null,Xo=null,Ws=null,ui=null,Gs=0;}function Ex(e){return zn(e).length}var Ws=null,ui=null,Gs=0;function Nx(e){if(Ws===e&&ui)return {offsets:ui,count:Gs};let n=zn(e),t=new Int32Array(e.length+1);for(let r of n)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)t[o]=r.index;return t[e.length]=n.length,Ws=e,ui=t,Gs=n.length,{offsets:t,count:n.length}}function fi(e,n){let t=Math.max(0,Math.min(n,e.length)),{offsets:r}=Nx(e);return r[t]}function Ax(e,n){let t=zn(e);if(t.length===0)return 0;let r=Math.max(0,Math.min(n,t.length));return r>=t.length?e.length:t[r].utf16From}function Ys(e){let n=new Set([0,e.text.length]);for(let r of zn(e.text))n.add(r.utf16From),n.add(r.utf16To);let t=new Set([0,e.text.length]);for(let r of e.clusters)t.add(r.textStart),t.add(r.textEnd);return [...n].filter(r=>t.has(r)).sort((r,o)=>r-o)}function pi(e,n){return Ys(e).includes(n)}function Dx(e,n){return pi(e,n)}function _x(e,n,t){return t>=n&&pi(e,n)&&pi(e,t)}function Hx(e){let n=zn(e.text);return Ys(e).map(t=>t===e.text.length?n.length:n.findIndex(r=>r.utf16From===t))}var Us="und";function $f(){return typeof Intl.Segmenter=="function"}function zx(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Us})`);return e}function Xf(){let e=new(zx())(Us,{granularity:"word"});return {segment(n){let t=[];for(let r of e.segment(n)){let o=r.index,a=o+r.segment.length;t.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return t}}}var jx=/^[\p{L}\p{N}']$/u,Wx=/^\s$/u;function jf(e){return jx.test(e)}function Wf(e){return Wx.test(e)}function Ks(e,n,t,r){let o=e[n],a=e[t-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function Vf(e){let n=zn(e);if(n.length===0)return [];let t=[],r=0;for(;r<n.length;){let o=n[r];if(Wf(o.text)){let a=r+1;for(;a<n.length&&Wf(n[a].text);)a+=1;t.push(Ks(n,r,a,false)),r=a;continue}if(jf(o.text)){let a=r+1;for(;a<n.length&&jf(n[a].text);)a+=1;t.push(Ks(n,r,a,true)),r=a;continue}t.push(Ks(n,r,r+1,false)),r+=1;}return t}function Yf(){return {segment:Vf}}function Kf(e={}){let n=e.isIntlAvailable??$f,t=e.createIntlBoundary??Xf,r=e.createFallbackBoundary??Yf;if(!n())return r();try{return t()}catch{return r()}}var Gf;function Uf(){return Gf??=Kf(),Gf}function Gx(e,n=Uf()){return n.segment(e)}function $x(e,n){return n.map(t=>({graphemeFrom:fi(e,t.utf16From),graphemeTo:fi(e,t.utf16To),wordLike:t.wordLike}))}var mi=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},Gr=(e,n)=>{if(e.trim().length===0)throw new TypeError(`${n} must not be blank`)},$r=e=>(mi(e.resourceEpoch,"resourceEpoch"),mi(e.configEpoch,"configEpoch"),mi(e.producerVersion,"producerVersion"),Gr(e.extensionFingerprint,"extensionFingerprint"),Gr(e.shapingHash,"shapingHash"),Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})),Xx=(e,n)=>{let t=$r(e),r=$r(n),a=["resourceEpoch","configEpoch","extensionFingerprint","shapingHash","producerVersion"].filter(i=>t[i]!==r[i]);return a.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(a)})},Zs=e=>{let n=e.map(({key:t,fingerprint:r})=>(Gr(t,"resource dependency key"),Gr(r,"resource dependency fingerprint"),Object.freeze({key:t,fingerprint:r}))).sort((t,r)=>t.key<r.key?-1:t.key>r.key?1:0);for(let t=1;t<n.length;t+=1)if(n[t-1].key===n[t].key)throw new TypeError(`Duplicate resource dependency: ${n[t].key}`);return Object.freeze(n)},Vx=e=>(mi(e.revision,"revision"),Gr(e.dependencyFingerprint,"dependencyFingerprint"),Gr(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Zs(e.resourceDependencies),...$r(e)})),Yx=(e,n)=>{let t=Zs(e),r=Zs(n),o=Math.max(t.length,r.length);for(let a=0;a<o;a+=1){let i=t[a],l=r[a];if(i?.key!==l?.key||i?.fingerprint!==l?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??l.key}}return null};function Kx(e,n){if(e.dependencyFingerprint!==n.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==n.inputFingerprint)return {hit:false,reason:"input-changed"};let t=Yx(e.resourceDependencies,n.resourceDependencies);if(t)return t;let r=["configEpoch","extensionFingerprint","shapingHash","producerVersion"];for(let o of r)if(e[o]!==n[o])return {hit:false,reason:"epoch-changed",epoch:o};return null}var qs=class{entries=new Map;get(n,t){let r=this.entries.get(n);if(!r)return {hit:false,reason:"absent"};let o=Kx(r.provenance,t);return o||{hit:true,value:r.value,provenance:r.provenance}}set(n,t,r){this.entries.set(n,{value:t,provenance:Vx(r)});}evictEpoch(n){let t=$r(n),r=0;for(let[o,a]of this.entries){let i=a.provenance;(i.configEpoch!==t.configEpoch||i.extensionFingerprint!==t.extensionFingerprint||i.shapingHash!==t.shapingHash||i.producerVersion!==t.producerVersion)&&(this.entries.delete(o),r+=1);}return r}evictResources(n,t){let r=$r(n),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(s=>t.get(s.key)!==s.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function $e(e,n=false){return jn(e.fragments,n)}var Zf=new WeakMap;function jn(e,n=false){let t=Zf.get(e),r=n?"withRepeats":"withoutRepeats",o=t?.[r];if(o)return o;let a=[],i=l=>{for(let s of l){if(s.kind==="paragraph"){a.push(s);continue}for(let d of s.rows)if(!(d.isHeaderRepeat&&!n))for(let c of d.cells)i(c.blocks);}};return i(e),t||(t={},Zf.set(e,t)),t[r]=a,a}function Js(e){let n=[];for(let t of e.pages)for(let r of $e(t))n.push(...r.lines);return n}function Ux(e){return e.anchoredDrawings??[]}function qf(e,n){let t=[];for(let r of e.pages)for(let o of $e(r))o.paragraphId===n&&t.push(o);return t.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function Vo(e,n,t,r){for(let o of r??Js(e)){let a=o.range.paragraphId===n?o.range.start:Number.NaN,i=o.range.paragraphId===n?o.range.end:Number.NaN;for(let l of o.spans)l.range.paragraphId===n&&(a=Number.isNaN(a)?l.range.start:Math.min(a,l.range.start),i=Number.isNaN(i)?l.range.end:Math.max(i,l.range.end));for(let l of o.drawings??[])l.paragraphId===n&&(a=Number.isNaN(a)?l.start:Math.min(a,l.start),i=Number.isNaN(i)?l.start+1:Math.max(i,l.start+1));if(!Number.isNaN(a)&&t>=a&&t<=i)return o}return null}function gi(e){return e.contentControls??[]}function Yo(e){if(e.length===0)return null;let n=1/0,t=1/0,r=-1/0,o=-1/0;for(let a of e)n=Math.min(n,a.x),t=Math.min(t,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:n,y:t,width:r-n,height:o-t}}function Ko(e){let n=false,t=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(n=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(t=true);return n&&t?"sdtContentLocked":n?"contentLocked":t?"sdtLocked":"unlocked"}var Uo=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var Jf=1,hi=1;function Xr(e){let n=Math.max(e,1),t=3;if(n>=t){let i=n/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:n,insetPt:0}}let r=1,o=1,a=Math.max(n,t);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(n-a)/2}}var Zx=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function qx(e){return Zx.has(e)}function Qf(e,n){return qx(e)?Xr(n).extentPt:n}function ed(e){let n=false;for(let t of e){if(t.localName!=="pageBreakBefore")continue;let r=t.attributes?.val;n=r===void 0||bi(r);}return n}var np=31680/20,qo=12,tp=3168,rp=14,Yr=Object.freeze({rule:"auto",value:240}),Jx=132,Qx=1584,op=["top","left","bottom","right","between","bar"],eS=Object.freeze({}),nS=/^[0-9A-Fa-f]{6}$/,tS=new Set(["nil","none"]);function yi(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Qs(e,n){return !Number.isFinite(e)||e<=0?0:e>n?n:e}function ep(e){let n=yi(e,true);return n===null?0:Qs(n/20,np)}function bi(e){return e!=="0"&&e!=="false"&&e!=="off"}function rS(e){return e===void 0||e==="auto"?null:nS.test(e)?e.toUpperCase():null}function Zo(e,n){return e.attributes.find(t=>t.localName===n)?.value}function nt(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Xv(e,n){let t=null;for(let r of e)r.localName===n&&(t={...t??{},...r.attributes??{}});return t}function nd(e,n){let t=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let l=i.attributes?.before,s=i.attributes?.after;l!==void 0&&(t=ep(l)),s!==void 0&&(r=ep(s));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=bi(d)),c!==void 0&&(a=bi(c));}if(o||a){let i=n?.inList||n?.inTableCell?0:rp;o&&(t=i),a&&(r=i);}return {before:t,after:r}}function td(e){let n,t;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(n=i);let l=a.attributes?.line;if(l!==void 0){let s=yi(l,true);s!==null&&(t=s);}}if(t===void 0)return Yr;let r=n??"auto";if(r==="auto"){let a=t/240;return a>0?{rule:"auto",value:Math.min(a,Jx)*240}:Yr}let o=t/20;return o>0?{rule:r,value:Math.min(o,Qx)}:Yr}function rd(e,n,t){let r=e.rule==="auto"?n*(e.value/240):e.rule==="exact"?e.value:Math.max(n,e.value),o=r-n;return o<0?{height:r,baseline:Math.max(0,Math.min(t,r))}:e.rule==="exact"?{height:r,baseline:t+o/2}:{height:r,baseline:t}}function od(e){let n=false;for(let t of e){if(t.localName!=="contextualSpacing")continue;let r=t.attributes?.val;n=r===void 0||bi(r);}return n}function Vr(e){if(!e)return;let n=Zo(e,"val");if(!n||tS.has(n))return;let t=yi(Zo(e,"sz")),r=t===null?.5:Qs(t/8,qo)||.5,o=yi(Zo(e,"space")),a=o===null?0:Qs(o,tp),i=Zo(e,"shadow"),l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:n,color:rS(Zo(e,"color")),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function ap(e){let n=Vr(nt(e,"top")),t=Vr(nt(e,"left")??nt(e,"start")),r=Vr(nt(e,"bottom")),o=Vr(nt(e,"right")??nt(e,"end")),a=Vr(nt(e,"between")),i=Vr(nt(e,"bar"));return {...n?{top:n}:{},...t?{left:t}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function gt(e){if(!e||e.kind==="textValue")return {};let n=nt(e,"pBdr");return n?ap(n):{}}function Jo(e){let n=eS;for(let t of e){if(!t||t.kind==="textValue")continue;let r=nt(t,"pBdr");r&&(n=ap(r));}return n}function Pn(e){return Qf(e.val,e.widthPt)}function Dt(e){return e?e.spacePt+Pn(e):0}function oS(e){return Dt(e)}function ad(e){let n=[];for(let t of op){let r=e[t];r&&n.push(`${t}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return n.join("|")}function Kr(e,n){return Math.max(e,n)-n}function id(e,n,t,r){return t&&!r?0:Kr(e,n)}var aS=/^[0-9A-Fa-f]{6}$/;function xi(e){if(!(e===void 0||e==="auto"||e==="nil")&&aS.test(e))return e.toUpperCase()}function Qo(e){if(e&&e.val!=="nil")return xi(e.fill)}function ld(e){if(!e||e.localName!=="shd")return;let n={};for(let t of e.attributes)n[t.localName]=t.value;return Qo(n)}function sd(e){let n;for(let t of e)t.localName==="shd"&&(n=Qo(t.attributes));return n}function ea(e,n,t){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:n,y:r,width:t,height:Math.max(o.y+o.height-r,0)}}var iS=64,lS=31680,sS=720,dS=36,dd=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),Ur=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),cS=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),uS=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function na(e){return e.kind!=="textValue"}function Si(e,n){return e.attributes.find(t=>t.localName===n)?.value}function cd(e,n){for(let t of e.children)if(na(t)&&t.localName===n)return t}function ip(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function fS(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function lp(e,n){if(!n)return;let t=0;for(let r of n.children){if(t>=128)break;if(t+=1,!na(r)||r.localName!=="tab")continue;let o=fS(ip(Si(r,"pos"))??NaN);if(o===null)continue;let a=Si(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=cS.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=Si(r,"leader");e.set(o,{alignment:i,...l!==void 0&&uS.has(l)?{leader:l}:{}});}}function sp(e,n=36){let t=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<t.length&&o<64;o+=1){let[a,i]=t[o];r.push({positionPt:a/20,alignment:i.alignment,...pS(i)});}return {stops:Object.freeze(r),defaultIntervalPt:n}}function pS(e){return e.leader?{leader:e.leader}:{}}function ud(e){let n=new Map;for(let t of e)!t||!na(t)||lp(n,cd(t,"tabs"));return sp(n)}function fd(e){if(!e||!na(e))return Ur;let n=new Map;return lp(n,cd(e,"tabs")),sp(n)}function ta(e,n){return n===void 0||!Number.isFinite(n)||n<=0||n===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:n}}function mS(e){if(!e||!na(e))return 36;let n=cd(e,"defaultTabStop");if(!n)return 36;let t=ip(Si(n,"val"));return t===null||t<=0||t>31680?36:t/20}function Zr(e,n,t){let r=Math.max(n,t);for(let i of e.stops)if(i.positionPt>n)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((n+1e-9)/o)*o;return a<=n&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function pd(e,n,t,r,o){let a=t;switch(e){case "center":a=t-r/2;break;case "right":a=t-r;break;case "decimal":a=t-o;break;default:a=t;}let i=a-n;return i>0?i:0}function lr(e){return `tabs(${e.stops.map(t=>`${t.alignment}@${Math.round(t.positionPt*1e3)}${t.leader?`/${t.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var Pi=4,dp=4096,_t=64,yd=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),gS=/\s*\\\*\s*MERGEFORMAT\s*$/i;function qr(e){if(e.length>chunkRUS2YBWU_cjs.qc)return null;let n=e.replace(/\s+/g," ").trim().toUpperCase();return n.length>chunkRUS2YBWU_cjs.qc?null:n.replace(gS,"").trim()}function sr(e){let n=qr(e);return n==="PAGE"||n==="NUMPAGES"||n==="SECTIONPAGES"?n:null}function wn(e,n){return chunkRUS2YBWU_cjs.fc(e,n)}function dr(e){return chunkRUS2YBWU_cjs.gc(e)}function bd(){return {nodes:0,exhausted:false}}function ht(e){return e.exhausted?false:(e.nodes+=1,e.nodes>dp?(e.exhausted=true,false):true)}function oa(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function ra(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="idle",e.inner.length=0;}function wi(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function hS(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function aa(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="instruction",e.inner.length=0),e.nesting+=1,e.nesting>Pi?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function Jr(e){return e.nesting<2||e.nesting>Pi?null:e.inner[e.nesting-2]??null}function cp(e){if(e.nesting===1)return e.phase==="instruction";let n=Jr(e);return n!==null&&!n.separated}function gd(e,n){if(!cp(e))return false;if(e.nesting===1)return n?!e.deletedInstructionOverflow:!e.instructionOverflow;let t=Jr(e);return n?!t.deletedOverflow:!t.overflow}function up(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let n=Jr(e);n&&(n.sawLive=true);}function hd(e,n){if(e.nesting===1){n?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let t=Jr(e);t&&(n?(t.deletedOverflow=true,t.deletedInstruction=""):(t.overflow=true,t.instruction=""));}function md(e){hd(e,false),hd(e,true);}function yS(e,n,t=false){if(!gd(e,t))return;let r=Jr(e);t||up(e);let o=r?t?r.deletedInstruction:r.instruction:t?e.deletedInstruction:e.instruction;if(o.length+n.length>chunkRUS2YBWU_cjs.qc){hd(e,t);return}r?t?r.deletedInstruction=o+n:r.instruction=o+n:t?e.deletedInstruction=o+n:e.instruction=o+n;}function ia(e,n,t,r){if(!cp(e))return;let o=chunkRUS2YBWU_cjs.hc(n);if(o||up(e),!gd(e,o))return;if(r>_t){md(e);return}let a=[],i=n.kind==="textValue"?[]:n.children??[];for(let l=i.length-1;l>=0;l-=1)a.push({node:i[l],depth:r+1});for(;a.length>0;){let l=a.pop();if(!ht(t)){md(e);return}if(l.depth>_t){md(e);return}if(l.node.kind==="textValue"){if(yS(e,l.node.value,o),!gd(e,o))return;continue}let s=l.node.children??[];for(let d=s.length-1;d>=0;d-=1)a.push({node:s[d],depth:l.depth+1});}}function la(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=wi(e);return r.overflow?null:sr(r.instruction)}let n=Jr(e);if(!n||n.separated)return null;n.separated=true;let t=hS(n);return t.overflow?null:sr(t.instruction)}function sa(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&ra(e);}function fp(e){return e.phase==="instruction"&&e.nesting>=1}function pp(e){return e.phase==="result"&&e.nesting>=1}function xd(e){let n=false,t=false,r=false,o=bd(),a=oa(),i=()=>n&&t&&r,l=p=>{p==="PAGE"?n=true:p==="NUMPAGES"?t=true:r=true;},s=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(wn(p,"begin")){aa(a),a.nestingOverflow&&(s=true);return}if(dr(p)){ia(a,p,o,m);return}if(wn(p,"separate")){let g=a.nesting,h=a.phase,y=la(a);if(s)return;y&&(g<=1||h==="result")&&d.push(y);return}if(wn(p,"end")&&(sa(a),a.nesting===0)){if(!s)for(let g of d)l(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!ht(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!dr(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(T=>({...T}))},y=s,x=d;d=[],f(g,m+1),Object.assign(a,h),s=y,d=x;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&ht(o)&&!(m>_t)&&p.kind!=="textValue"){if(p.kind==="paragraph"){ra(a),s=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;ra(a),s=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(chunkRUS2YBWU_cjs.ic(p)){let g=sr(chunkRUS2YBWU_cjs.kc(p)??"");if(g){l(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!n&&!t&&!r?yd:{hasPage:n,hasNumPages:t,hasSectionPages:r}}var bS=64,xS=64,SS=[{value:1e3,glyph:"M"},{value:900,glyph:"CM"},{value:500,glyph:"D"},{value:400,glyph:"CD"},{value:100,glyph:"C"},{value:90,glyph:"XC"},{value:50,glyph:"L"},{value:40,glyph:"XL"},{value:10,glyph:"X"},{value:9,glyph:"IX"},{value:5,glyph:"V"},{value:4,glyph:"IV"},{value:1,glyph:"I"}];function yt(e){if(!Number.isFinite(e))return 1;let n=Math.trunc(e);return n<0?1:n>9999?9999:n}function Ht(e){return String(yt(e))}function mp(e){let n=yt(e);return n<10?`0${n}`:String(n)}function Sd(e){let n=yt(e);n>3999&&(n=3999);let t="";for(let{value:r,glyph:o}of SS)for(;n>=r;)if(t+=o,n-=r,t.length>=64)return t.slice(0,64);return t||"I"}function gp(e){return Sd(e).toLowerCase()}function Pd(e){let n=yt(e),t="";for(;n>0&&t.length<8;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t||"A"}function hp(e){return Pd(e).toLowerCase()}function PS(e){let n=yt(e),t=n%100,r=n%10,o=t>=11&&t<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${n}${o}`}function wS(e){return yt(e).toString(16).toUpperCase()}function RS(e){let n=["*","\u2020","\u2021","\xA7"],t=yt(e);if(t<=0)return n[0];let r=(t-1)%n.length,o=Math.min(Math.floor((t-1)/n.length)+1,IS);return n[r].repeat(o)}var IS=8,Ri=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],vS=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function Ii(e){let n=yt(e);if(n<20)return Ri[n];if(n<100){let r=n%10;return vS[Math.floor(n/10)]+(r===0?"":`-${Ri[r]}`)}if(n<1e3){let r=n%100;return `${Ri[Math.floor(n/100)]} hundred${r===0?"":` ${Ii(r)}`}`}let t=n%1e3;return `${Ri[Math.floor(n/1e3)]} thousand${t===0?"":` ${Ii(t)}`}`}function yp(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function TS(e){return yp(Ii(e))}var kS=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function OS(e){let n=kS.get(e);return n!==void 0?n:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function CS(e){let n=Ii(e),t=Math.max(n.lastIndexOf(" "),n.lastIndexOf("-")),r=t<0?"":n.slice(0,t+1);return yp(r+OS(n.slice(t+1)))}function bt(e,n){switch(e){case "decimal":return Ht(n);case "decimalZero":return mp(n);case "upperRoman":return Sd(n);case "lowerRoman":return gp(n);case "upperLetter":return Pd(n);case "lowerLetter":return hp(n);case "ordinal":return PS(n);case "cardinalText":return TS(n);case "ordinalText":return CS(n);case "hex":return wS(n);case "chicago":return RS(n);case "numberInDash":return `- ${Ht(n)} -`;case "none":case "bullet":return "";default:return Ht(n)}}function wd(e,n,t){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let l=r[a+1];if(l>="1"&&l<="9"){let s=Number(l)-1,d=t[s]??"decimal",c=n[s]??1,u=d==="bullet"?"":bt(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var vi="0";function Rd(e,n){if(!Number.isFinite(e)||e<0)return "";let t=Math.floor(e),r=n&&n.length>0?n:"decimal";if(r==="none"||r==="bullet")return Ht(t);let o=bt(r,t);return o.length>0?o:Ht(t)}function xt(e,n){if(e==="PAGE")return Rd(n.pageNumber,n.format);let t=e==="NUMPAGES"?n.pageCount:n.sectionPageCount??n.pageCount;return !Number.isFinite(t)||t<0?"":Ht(Math.floor(t))}function zt(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function Id(e,n=yd){if(!e||!zt(n))return "";let t=[];return n.hasPage&&(t.push(`p${e.pageNumber}`),e.format&&t.push(`f${e.format}`)),n.hasNumPages&&t.push(`n${e.pageCount}`),n.hasSectionPages&&t.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${t.join("/")}`}function Qr(e,n,t,r){let o=false,a=e.map((i,l)=>{let s=n+l,d=i.pageFieldSource;return d&&d.pageNumber===s&&d.sectionPageCount===t&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:s,sectionPageCount:t,...r?{format:r}:{}}})});return o?a:e}function BS(e){for(let n of e.spans)if(n.fieldAtom?.pageField)return true;return false}function bp(e){if(e.kind==="paragraph"){for(let n of e.lines)if(BS(n))return true;return false}for(let n of e.rows)for(let t of n.cells)for(let r of t.blocks)if(bp(r))return true;return false}function vd(e,n){let t=n,r=false;for(let o of e)t=Math.max(t,o.box.y+o.box.height),!r&&bp(o)&&(r=true);return {usedBottom:t,hasBodyPageFields:r}}function LS(e,n){let t=null;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r],a=o.fieldAtom?.pageField?.kind;if(!a)continue;let i=xt(a,n);i!==o.text&&(t||(t=e.spans.slice()),t[r]={...o,text:i});}return t?{...e,spans:t}:e}function xp(e,n){let t=null;for(let r=0;r<e.length;r+=1){let o=e[r],a=o;if(o.kind==="paragraph"){let i=null;for(let l=0;l<o.lines.length;l+=1){let s=o.lines[l],d=LS(s,n);d!==s&&(i||(i=o.lines.slice()),i[l]=d);}i&&(a={...o,lines:i});}else {let i=null;for(let l=0;l<o.rows.length;l+=1){let s=o.rows[l],d=null;for(let c=0;c<s.cells.length;c+=1){let u=s.cells[c],f=xp(u.blocks,n);f!==u.blocks&&(d||(d=s.cells.slice()),d[c]={...u,blocks:f});}d&&(i||(i=o.rows.slice()),i[l]={...s,cells:d});}i&&(a={...o,rows:i});}a!==o&&(t||(t=e.slice()),t[r]=a);}return t??e}function jt(e){let n=e.pages.length;if(n===0)return e;let t=false,r=e.pages.map(o=>{let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,pageCount:n,sectionPageCount:a?.sectionPageCount??n,...a?.format?{format:a.format}:{}},l=u=>{if(!u?.pageFieldProjector)return u;t=true;let f=u.pageFieldProjector(i),{pageFieldProjector:p,...m}=f;return m},s=l(o.header),d=l(o.footer),c=o.hasBodyPageFields===false?o.fragments:xp(o.fragments,i);return s===o.header&&d===o.footer&&c===o.fragments?o:(c!==o.fragments&&(t=true),{...o,...s!==void 0?{header:s}:{},...d!==void 0?{footer:d}:{},...c!==o.fragments?{fragments:c}:{}})});return t?{revision:e.revision,pages:r}:e}var FS=`
|
|
2
|
+
\r`,MS=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function Sp(e,n){let t=n;for(;t<e.length&&FS.includes(e[t]);)t+=1;return t}function Pp(e,n){if(e[n]==='"'){let r=n+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let t=n;for(;t<e.length&&!`
|
|
3
|
+
\r"`.includes(e[t]);)t+=1;return t}function Ti(e){if(e.length===0||e.length>256)return null;let n=Sp(e,0);if(e[n]==='"')return null;let t=Pp(e,n),r=e.slice(n,t).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=Sp(e,t);if(o>=e.length)return null;let a=Pp(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(MS,"").trimEnd();if(l===i)break;i=l;}if(i[0]==='"'){let l=i.indexOf('"',1);l===-1?i=i.slice(1):l===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var wp=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),ES=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function NS(e){let n=e;for(;;){let t=n.replace(ES,"").trimEnd();if(t===n)return n;n=t;}}function AS(e){let n=e.trimStart();if(n.length===0)return null;if(n[0]==='"'){let o=n.indexOf('"',1),a=o===-1?n.slice(1):n.slice(1,o);return a.length>0?a:null}let t=n.search(/\s/),r=t===-1?n:n.slice(0,t);return r.length>0?r:null}function ki(e){let n=qr(e);if(n===null||n.length===0)return null;let t=NS(n),r=wp[t];if(r)return {property:r};if(!t.startsWith("DOCPROPERTY"))return null;let o=t.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=AS(o);if(a===null)return null;let i=wp[a];return i?{property:i}:null}function Oi(e,n){if(!n)return null;let t=n[e.property];return t!==void 0&&t.length>0?t:null}var DS=chunkRUS2YBWU_cjs.qc,_S=2048,HS=256;function zS(e){let n=[],t=0;for(;t<e.length;){let r=e[t];if(r===" "||r===" "||r===`
|
|
4
|
+
`||r==="\r"){t+=1;continue}if(r==='"'){let a=t+1;for(;a<e.length&&e[a]!=='"';)a+=1;n.push({value:e.slice(t+1,a),quoted:true}),t=a<e.length?a+1:a;continue}let o=t;for(;o<e.length&&!`
|
|
5
|
+
\r"`.includes(e[o]);)o+=1;n.push({value:e.slice(t,o),quoted:false}),t=o;}return n}var jS=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function Ci(e){if(e.length===0||e.length>DS)return null;let n=zS(e);if(n.length<2)return null;let t=n[0];if(t.quoted||t.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,l=null,s=false;for(let d=1;d<n.length;d+=1){let c=n[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!jS.has(u))continue;let f=n[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=HS;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(s||(s=true,p&&(l=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=_S&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}function da(e){if(e.kind==="text"||e.kind==="deletedText"){let n="";for(let t of e.children)t.kind==="textValue"&&(n+=t.value);return n}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkRUS2YBWU_cjs._b(e):""}function eo(e){if(!e||e.kind==="textValue")return [];let n=[];for(let t of e.children){if(t.kind==="textValue")continue;let r={};for(let o of t.attributes)r[o.localName]=o.value;n.push(Object.keys(r).length>0?{localName:t.localName,attributes:r}:{localName:t.localName});}return n}function Bi(e,n,t){let r=eo(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}var tt=Object.freeze({fontFamily:null,fontSizePt:10,color:null,bold:false,italic:false,underline:null,strike:false,doubleStrike:false,highlight:null,shading:null,verticalAlign:"baseline",baselineShiftPt:0,caps:false,smallCaps:false,characterSpacingPt:0,horizontalScalePercent:100,kerningMinPt:0,hidden:false}),WS=/^[0-9A-Fa-f]{6}$/;function Wt(e){let n=e.attributes?.val;return n===void 0||!(n==="0"||n==="false"||n==="off")}function ca(e,n=false){return e===void 0||!(n?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function Rp(e){return e===void 0||e==="auto"?null:WS.test(e)?e.toUpperCase():null}function Ip(e,n){return e==="minorAscii"||e==="minorHAnsi"?n.minor:e==="majorAscii"||e==="majorHAnsi"?n.major:null}function Ne(e,n){let t={...tt};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(n?Ip(o?.asciiTheme,n)??Ip(o?.hAnsiTheme,n):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(t.fontFamily=i);break}case "sz":{let o=ca(r.attributes?.val);o!==null&&o>0&&(t.fontSizePt=o/2);break}case "color":{t.color=Rp(r.attributes?.val);break}case "b":t.bold=Wt(r);break;case "i":t.italic=Wt(r);break;case "u":{let o=r.attributes?.val??"single";t.underline=o==="none"||!Wt(r)?null:{variant:o,color:Rp(r.attributes?.color)};break}case "strike":t.strike=Wt(r);break;case "dstrike":t.doubleStrike=Wt(r);break;case "highlight":{let o=r.attributes?.val;t.highlight=o&&o!=="none"?o:null;break}case "shd":{t.shading=Qo(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?t.verticalAlign=o:o==="baseline"&&(t.verticalAlign="baseline");break}case "position":{let o=ca(r.attributes?.val,true);o!==null&&(t.baselineShiftPt=o/2);break}case "caps":t.caps=Wt(r);break;case "smallCaps":t.smallCaps=Wt(r);break;case "spacing":{let o=ca(r.attributes?.val,true);o!==null&&(t.characterSpacingPt=o/20);break}case "w":{let o=ca(r.attributes?.val);o!==null&&o>0&&(t.horizontalScalePercent=o);break}case "kern":{let o=ca(r.attributes?.val);o!==null&&(t.kerningMinPt=o/2);break}case "vanish":t.hidden=Wt(r);break;}return t}function Gt(e,n){return n.caps?e.toUpperCase():e}function rt(e,n,t){return t.measure(Gt(e,n),n)}function GS(e,n){return e.fontFamily===n.fontFamily&&e.fontSizePt===n.fontSizePt&&e.color===n.color&&e.bold===n.bold&&e.italic===n.italic&&e.strike===n.strike&&e.doubleStrike===n.doubleStrike&&e.highlight===n.highlight&&e.shading===n.shading&&e.verticalAlign===n.verticalAlign&&e.baselineShiftPt===n.baselineShiftPt&&e.caps===n.caps&&e.smallCaps===n.smallCaps&&e.characterSpacingPt===n.characterSpacingPt&&e.horizontalScalePercent===n.horizontalScalePercent&&e.kerningMinPt===n.kerningMinPt&&e.hidden===n.hidden&&e.underline?.variant===n.underline?.variant&&e.underline?.color===n.underline?.color}function Td(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var $S=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),vp=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),Tp=new Map([[167,"\u25AA"],[183,"\u2022"]]),kp=new Map([["symbol",$S],["wingdings",vp],["wingdings 2",Tp],["wingdings 3",Tp],["webdings",vp]]),XS=64;function ua(e){return !e||e.length>XS?false:kp.has(e.toLowerCase())}function no(e,n,t){if(e.length===0||!ua(n))return e;let r=kp.get(n.toLowerCase());if(t?.(n)===true)return e;let o="",a=false;for(let i of e){let l=i.codePointAt(0);if(l>=61440&&l<=61695){let s=r.get(l-61440);if(s!==void 0){o+=s,a=true;continue}}o+=i;}return a?o:e}var $t=61440,fa=61695,kd=128;function to(e){return e.kind==="generic"&&e.namespaceUri===chunkRUS2YBWU_cjs.ma&&e.localName==="sym"}function Op(e,n){if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes)if(t.localName===n&&(t.namespaceUri===chunkRUS2YBWU_cjs.ma||t.namespaceUri===""))return t.value}}function VS(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function Li(e){return !(!Number.isInteger(e)||e<32||e>1114111||e>=127&&e<=159||e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65534)===65534||e===65532)}function ro(e){if(!to(e))return null;let n=VS(Op(e,"char"));if(n===null)return null;let t=Op(e,"font"),r=t&&t.length<=kd?t:null,o=ua(r),a=o&&n<=255&&n+$t<=fa?n+$t:n;if(o&&a>=$t&&a<=fa){let i=no(String.fromCodePoint(a),r),l=i.codePointAt(0)<$t;return {text:i,font:r,unicode:l}}return Li(n)?{text:String.fromCodePoint(n),font:r,unicode:n<57344||n>63743}:null}function Od(e,n,t){if(!n.font)return {props:e,style:Ne(e,t)};let r=[...e,{localName:"rFonts",attributes:{ascii:n.font,hAnsi:n.font}}];return {props:r,style:Ne(r,t)}}var YS=256,KS=9;function US(e){let n=[],t=0;for(;t<e.length;){let r=e[t];if(r===" "||r===" "||r===`
|
|
6
|
+
`||r==="\r"){t+=1;continue}if(r==='"'){let a=t+1;for(;a<e.length&&e[a]!=='"';)a+=1;n.push({value:e.slice(t+1,a),quoted:true}),t=a<e.length?a+1:a;continue}let o=t;for(;o<e.length&&!`
|
|
7
|
+
\r"`.includes(e[o]);)o+=1;n.push({value:e.slice(t,o),quoted:false}),t=o;}return n}function ZS(e){if(e.quoted)return null;let n=e.value;if(n.length===0||n.length>KS)return null;let t;if(n.startsWith("0x")||n.startsWith("0X")){let r=n.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;t=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(n))return null;t=Number.parseInt(n,10);}return t>1114111||t>=55296&&t<=57343?null:t}function Fi(e){if(e.length===0||e.length>YS)return null;let n=US(e);if(n.length<2)return null;let t=n[0];if(t.quoted||t.value.toUpperCase()!=="SYMBOL")return null;let r=ZS(n[1]);if(r===null)return null;let o=null,a=null,i=false;for(let l=2;l<n.length;l+=1){let s=n[l];if(s.quoted||!s.value.startsWith("\\"))continue;let d=s.value.toLowerCase();if(d==="\\f"){let c=n[l+1];c&&c.value.length>0&&c.value.length<=kd&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,l+=1);continue}if(d==="\\s"){let c=n[l+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(l+=1,/^\d{1,3}$/.test(c.value))){let u=Number(c.value);u>=1&&u<=999&&(a=u);}continue}d==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function Mi(e,n,t){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...n,...r]:n,a=Ne(o,t);if(e.unicode)return Li(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(ua(i)){let l=e.code<=255&&e.code+$t<=fa?e.code+$t:e.code;if(l>=$t&&l<=fa)return {text:no(String.fromCodePoint(l),i),props:o,style:a}}return Li(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function Ei(){let e=null,n=0,t=false,r=false,o=()=>{e=null,n=0,t=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,n=i,t=false,r=false);},onEnd(a,i){if(e===null||a>n)return null;let l=a===n,d=l&&i&&!(t&&!r)?xt(e,i):"";return o(),l?d:null},reset:o,noteResult(a){t=true,a&&(r=true);}}}var mn="all-markup",Cp=Object.freeze([]),qS=32,JS={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function St(e,n){for(let t of e.attributes)if(t.localName===n&&t.namespaceUri===e.namespaceUri&&(t.kind==="wmlVal"||t.kind==="genericExtension"||t.kind==="xmlSpace"))return t.value}function Ai(e){if(e.kind==="textValue")return null;let n=JS[e.kind];if(n===void 0)return null;let t=St(e,"date");return {kind:n,id:St(e,"id")??"",author:St(e,"author")??"",...t===void 0?{}:{date:t},nodeId:e.id}}function Di(e,n){return e.length===0?[n]:[...e,n]}function _i(e){return e.kind!=="textValue"&&chunkRUS2YBWU_cjs.ra(e.kind)}var oo=qS;function tn(e,n){if(n==="all-markup"||e.length===0)return true;for(let t of e)if(n==="proposed"?t.kind==="delete"||t.kind==="moveFrom":t.kind==="insert"||t.kind==="moveTo")return false;return true}function ao(e){if(e.kind==="textValue")return Ni;let n=e.children.find(o=>o.kind==="paragraphProperties");if(!n||n.kind==="textValue")return Ni;let t=n.children.find(o=>o.kind==="runProperties");if(!t||t.kind==="textValue")return Ni;let r=[];for(let o of t.children){if(o.kind==="textValue"||o.namespaceUri!==chunkRUS2YBWU_cjs.ma)continue;let a=QS[o.localName];if(a===void 0)continue;let i=St(o,"date");r.push({kind:a,id:St(o,"id")??"",author:St(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:Ni}var QS={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function pa(e){if(e.kind==="textValue")return null;let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n||n.kind==="textValue")return null;let t=n.children.find(r=>r.kind==="runProperties");if(!t||t.kind==="textValue")return null;for(let r of t.children){if(r.kind==="textValue"||r.namespaceUri!==chunkRUS2YBWU_cjs.ma||r.localName!=="rPrChange")continue;let o=St(r,"date");return {kind:"format",id:St(r,"id")??"",author:St(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var Ni=Object.freeze([]);function Cd(e){return e.find(n=>Bp(n))??e[0]}function Bp(e){return e.kind==="delete"||e.kind==="moveFrom"}function Hi(e,n){let t=Cd(e);return {...t?{markRevisions:e,markRevision:t}:{},...n?{markFormatRevision:n}:{}}}function eP(e){return Cd(ao(e))??null}function nP(e){for(let n of e){if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")continue;let t=n.attributes??{},r=t.date;return {kind:"format",id:t.id??"",author:t.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function Pt(e){return e.some(n=>n.kind==="delete"||n.kind==="moveFrom")}function tP(e){let{simple:n,depth:t,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,p=false,m=oa(),g=Ei(),h=(x,T)=>{u||(u=x,f=T);},y=(x,T,R)=>{if(!(x.kind==="textValue"||T>_t)){for(let B of x.children)if(B.kind!=="textValue"){if(!ht(o))return;if(B.kind==="run"){let E=Bi(B,l,s),w=Ne(E,d);for(let L of B.children){if(L.kind==="runProperties")continue;if(wn(L,"begin")){aa(m),m.nesting===1&&g.reset();continue}if(dr(L)){ia(m,L,o,T+1);continue}if(wn(L,"separate")){let O=m.nesting,te=m.phase,v=la(m);(O===1||te==="result"&&!m.nestingOverflow)&&g.onSeparate(r?v:null,O);continue}if(wn(L,"end")){let O=g.onEnd(m.nesting,r);O!==null&&(c+=O),sa(m);continue}if(chunkRUS2YBWU_cjs.nc(L))continue;if(to(L)){if(tn(R,i)&&(p=true),g.active){g.noteResult(!w.hidden&&tn(R,i));continue}let O=ro(L);if(!O?.unicode||w.hidden||!tn(R,i))continue;h(E,w),c+=O.text;continue}let C=da(L);if(C.length===0)continue;let k=Pt(R),b=!tn(R,i)||L.kind==="deletedText"&&!k;b||(p=true);let H=w.hidden||b;if(g.active){g.noteResult(!H),H||h(E,w);continue}H||(h(E,w),c+=C);}continue}if(chunkRUS2YBWU_cjs.ic(B)){let E=g.active?null:sr(chunkRUS2YBWU_cjs.kc(B)??"");if(E&&r){if(!tn(R,i))continue;let w=c.length;y(B,T+1,R),c=c.slice(0,w),c+=xt(E,r);continue}y(B,T+1,R);continue}if(B.kind==="hyperlink"){y(B,T+1,R);continue}if(_i(B)&&R.length<oo){let E=Ai(B);y(B,T+1,E?Di(R,E):R);continue}y(B,T+1,R);}}};return y(n,t,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function Lp(e){let{simple:n,pageContext:t,inheritedRunProperties:r,themeFonts:o}=e,a=tP(e),i=chunkRUS2YBWU_cjs.kc(n)??"",l=a.resultProps??r,s=sr(i);if(s&&t){let g=a.resultStyle??Ne(r,o);return g.hidden?null:{text:xt(s,t),props:l,style:g}}if(s&&e.bodyPageFields&&!t&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Ne(r,o);return g.hidden?null:{text:vi,props:l,style:g,pageField:{kind:s}}}let d=Fi(i);if(d){let g=Mi(d,l,o);if(g)return g.style.hidden?null:{text:g.text,props:g.props,style:g.style}}let c=a.text.length===0&&!a.sawResultContent;if(c){let g=ki(i);if(g){let h=Oi(g,e.documentProperties);if(h!==null){let y=a.resultStyle??Ne(r,o);return y.hidden?null:{text:h,props:l,style:y}}}}let u=c?Ti(i):null;if(u){let g=a.resultStyle??Ne(r,o);return g.hidden?null:{text:u.display,props:l,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Ne(r,o);if(f.hidden)return null;let p=e.currentLink?null:Ci(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:l,style:f,...m?{link:m}:{}}}var rP="\u2612",oP="\u2610";function aP(e){let n=qr(e);return n==="FORMCHECKBOX"?"checkbox":n==="FORMDROPDOWN"?"dropdown":null}function Bd(e,n){e.symbolSpec=Fi(n),!e.symbolSpec&&(e.linkSpec=Ci(n),!e.linkSpec&&(e.formSpec=aP(n),!e.formSpec&&(e.buttonSpec=Ti(n),!e.buttonSpec&&(e.docPropertySpec=ki(n)))));}function Fp(e,n){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let t=e.formData.checked?rP:oP;if(e.formData.sizeHalfPoints===null)return {text:t,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:t,props:r,style:Ne(r,n)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let t=e.formData.entries[e.formData.selectedIndex]??"";return t.length===0?null:{text:t,props:e.props,style:e.style}}return null}function Mp(e,n){if(e.symbolSpec){let r=Mi(e.symbolSpec,e.props,n.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let t=Fp(e,n.themeFonts);if(t)return {text:t.text,props:t.props,style:t.style};if(e.kind&&n.pageContext)return {text:xt(e.kind,n.pageContext),props:e.props,style:e.style};if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style};if(!e.sawResultContent){if(e.kind&&n.bodyPageFields)return {text:vi,props:e.props,style:e.style,pageField:{kind:e.kind}};if(e.docPropertySpec){let r=Oi(e.docPropertySpec,n.documentProperties);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.buttonSpec)return {text:e.buttonSpec.display,props:e.props,style:e.style}}return null}function cr(e,n,t){if(t<=n)return;let r=e[e.length-1];if(r&&r.end>=n){r.end=Math.max(r.end,t);return}e.push({start:n,end:t});}var iP=new Set(["left","center","right"]),lP=new Set(["margin","indent","leftMargin"]),sP=new Set(["dot","hyphen","underscore","middleDot"]);function Ep(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkRUS2YBWU_cjs.ma)return null;let n="left",t="margin",r;for(let o of e.attributes)o.namespaceUri===chunkRUS2YBWU_cjs.ma&&(o.localName==="alignment"?n=o.value:o.localName==="relativeTo"?t=o.value:o.localName==="leader"&&(r=o.value));return {alignment:iP.has(n)?n:"left",relativeTo:lP.has(t)?t:"margin",...r!==void 0&&sP.has(r)?{leader:r}:{}}}Object.freeze({marks:Object.freeze(new Map)});function ur(e,n){return chunkRUS2YBWU_cjs.ed(e,n)}function Ld(e,n){if(!chunkRUS2YBWU_cjs.vd(e))return null;if(chunkRUS2YBWU_cjs.ld(e)||chunkRUS2YBWU_cjs.md(e))return {text:"",projected:true,kind:null,noteId:null};let t=chunkRUS2YBWU_cjs.jd(e),r=chunkRUS2YBWU_cjs.rd(e)??chunkRUS2YBWU_cjs.sd(e);if(!r)return null;let o=chunkRUS2YBWU_cjs.od(e),a=o!==null?ur(r,o):t?void 0:n?.activeNoteKey,i=o!==null?o:a?dP(a,r)??null:null,l=a,s=l!==void 0?t?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...s?{nav:s}:{},...l?{scopeId:l}:{}};if(t&&o!==null&&chunkRUS2YBWU_cjs.td(e))return {text:"",...d};if(!n||!a)return {text:"",...d};let c=n.marks.get(a);return c==null?{text:"",...d}:n.reservedMarkText&&n.reservedMarkText.length>0?{text:c,measureText:n.reservedMarkText,...d}:{text:c,...d}}function dP(e,n){let t=`${n}:`;if(!e.startsWith(t))return null;let r=e.slice(t.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function Ap(e){return chunkRUS2YBWU_cjs.jd(e)||chunkRUS2YBWU_cjs.kd(e)||chunkRUS2YBWU_cjs.ld(e)||chunkRUS2YBWU_cjs.md(e)}function cP(e){let n=2166136261;for(let t=0;t<e.length;t+=1)n^=e.charCodeAt(t),n=Math.imul(n,16777619);return (n>>>0).toString(16).padStart(8,"0")}var Np=new WeakMap;function Dp(e){if(!e)return "";let n=Np.get(e);if(n!==void 0)return n;let t=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${cP(t)}`;return Np.set(e,r),r}function zi(e,n=[],t,r,o,a,i=mn,l,s,d,c,u,f=false){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let p=[],m=0,g,h=chunkRUS2YBWU_cjs.rc(e,{maxNesting:Pi,maxInstructionChars:chunkRUS2YBWU_cjs.qc}),y=h.filter(I=>I.addressing==="atomic"),x=new Set(y.filter(I=>I.kind==="complex").map(I=>I.node.id)),T=new Set(h.filter(I=>I.kind==="complex"&&I.addressing==="editable-result").map(I=>I.node.id)),R=new Set;for(let I of y)for(let A of I.removeNodeIds)R.add(A);let B=oa(),E=bd(),w=null,L=null,C=Ei(),k=Cp,b=(I,A,F,Y,K,$,V)=>{if(I.length===0&&!Y&&!V?.inlineDrawing)return;let Z=V?.linkOverride??g,j=V?.revisionsOverride??k,Q=Z?{link:Z}:{},ne=j.length===0?{}:{revisions:j};if(Y){p.push({text:I,props:A,style:F,start:K,end:$,projected:true,...V?.measureText!==void 0?{measureText:V.measureText}:{},...V?.noteNav?{noteNav:V.noteNav}:{},...V?.inlineDrawing?{inlineDrawing:V.inlineDrawing}:{},...V?.fieldAtom?{fieldAtom:V.fieldAtom}:{},...Q,...ne});return}I.length!==0&&p.push({text:I,props:A,style:F,start:K,end:$,...V?.positionalTab?{positionalTab:V.positionalTab}:{},...V?.breakKind?{breakKind:V.breakKind}:{},...Q,...ne});},H=()=>{if(!w||!w.atomic){w=null,L=null;return}let I=w.atomStart,A=I+1;if(w.style.hidden){w=null,L=null;return}if(!tn(w.resultRevisions,i)){l&&Pt(w.resultRevisions)&&cr(l,I,A),w=null,L=null;return}let{resultLink:F,linkSpec:Y,resultRevisions:K,formField:$}=w,V,Z=()=>{if(V)return V;let Q=!F&&Y?c?.(Y)??null:null,ne=F??Q;return V={...K.length>0?{revisionsOverride:K}:{},...ne?{linkOverride:ne}:{},fieldAtom:{formField:$}},V},j=Mp(w,{pageContext:t,themeFonts:d,documentProperties:u,bodyPageFields:f});if(j){let Q=Z(),ne=j.pageField?{...Q,fieldAtom:{formField:w.formField,pageField:j.pageField}}:Q;b(j.text,j.props,j.style,true,I,A,ne);}w=null,L=null;},O=()=>{if(!w)return;let I=!w.resultLink&&w.linkSpec?c?.(w.linkSpec)??null:null,A=F=>I&&!F.link?{...F,link:I}:F;if(w.atomic){m=w.atomStart;for(let F of w.buffered)p.push({...A(F),start:m,end:m+(F.end-F.start)}),m+=F.end-F.start;w.cachedText.length>0&&w.buffered.length===0&&(b(w.cachedText,w.props,w.style,false,m,m+w.cachedText.length,I?{linkOverride:I}:void 0),m+=w.cachedText.length);}else {for(let F of w.buffered)p.push(A(F));m=w.bufferOffset;}w=null,L=null;},te=(I,A,F)=>{let Y=(j,Q,ne,ce)=>{let pe=Pt(k),me=F.hidden||!tn(k,i)||pe;if(Q.hidden||me){if(pe&&l&&cr(l,ne,ce),!Q.hidden)return;b("\uFFFC",A,F,true,ne,ce);return}b("\uFFFC",A,F,true,ne,ce,{inlineDrawing:Object.freeze({drawingNodeId:j,ownerPartName:s.ownerPartName,projection:Q,resource:s.resourceOf(Q)})});};if(I.kind==="drawing"){let j=m;m+=1;let Q=m;if(!s)return;let ne=s.projectionForAtom?.(I.id)??(I.kind==="drawing"?s.project(I):null);if(!ne||ne.kind!=="inline"){b("\uFFFC",A,F,true,j,Q);return}Y(I.id,ne,j,Q);return}if(chunkRUS2YBWU_cjs.ab(I)){let j=m;m+=1;let Q=m;if(!s)return;let ne=s.projectionForAtom?.(I.id)??null;if(!ne||ne.kind!=="inline"){b("\uFFFC",A,F,true,j,Q);return}Y(I.id,ne,j,Q);return}if(Ap(I)){let j=Ld(I,a),Q=m,ne=Q+1;if(m=ne,F.hidden||!j||j.text.length===0&&!j.measureText)return;let ce=j.scopeId&&j.nav?{scopeId:j.scopeId,direction:j.nav}:void 0;b(j.text.length>0?j.text:j.measureText??"",A,F,true,Q,ne,{...j.measureText!==void 0?{measureText:j.measureText}:{},...ce?{noteNav:ce}:{}});return}let K=Ep(I);if(K){F.hidden||b(" ",A,F,false,m,m,{positionalTab:K});return}if(to(I)){let j=ro(I);if(!j||F.hidden||!tn(k,i))return;let Q=Od(A,j,d);b(j.text,Q.props,Q.style,true,m,m);return}let $=da(I);if($.length===0)return;let V=Pt(k);F.hidden||!tn(k,i)||I.kind==="deletedText"&&!V||b($,A,F,false,m,m+$.length,{...I.kind==="hardBreak"?{breakKind:chunkRUS2YBWU_cjs.Yb(I)}:{}}),V&&l&&cr(l,m,m+$.length),m+=$.length;},v=(I,A)=>{if(I.kind!=="run")return;let F=Bi(I,n,r),Y=Ne(F,d),K=()=>{w&&(w.capturedResultStyle||(w.props=F,w.style=Y,w.capturedResultStyle=true),w.capturedResultRevisions||(w.resultRevisions=k,w.capturedResultRevisions=true,!w.resultLink&&g&&(w.resultLink=g)));};for(let $ of I.children){if(!ht(E)){if(O(),ra(B),C.reset(),$.kind==="runProperties"||wn($,"begin")||wn($,"separate")||wn($,"end")||dr($)||R.has($.id)&&L===null)continue;te($,F,Y);continue}if($.kind!=="runProperties"){if(wn($,"begin")){let V=x.has($.id);aa(B),B.nesting===1&&(O(),C.reset(),L=V?$.id:null,w={kind:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,formData:chunkRUS2YBWU_cjs.pc($),atomic:V,editableResult:T.has($.id),atomStart:m,props:F,style:Y,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:m,resultRevisions:k,capturedResultRevisions:k.length>0,formField:chunkRUS2YBWU_cjs.oc($),...g?{resultLink:g}:{}},V&&(m+=1));continue}if(dr($)){ia(B,$,E,A+1);continue}if(wn($,"separate")){let V=B.nesting===1&&B.phase==="instruction",Z=B.nesting,j=la(B);if(V&&w){w.kind=j;let Q=wi(B);!w.kind&&!Q.overflow&&!B.nestingOverflow&&Bd(w,Q.instruction),w.props=F,w.style=Y;}else w?.atomic&&B.phase==="result"&&!B.nestingOverflow&&C.onSeparate(t?j:null,Z);continue}if(wn($,"end")){let V=B.nesting===1;if(V&&w?.atomic&&B.phase==="instruction"){let j=wi(B);!j.overflow&&!B.nestingOverflow&&Bd(w,j.instruction);}let Z=C.onEnd(B.nesting,t);Z!==null&&w?.atomic&&(w.cachedText+=Z),sa(B),V&&(w?.atomic?H():O());continue}if(!(fp(B)&&w?.atomic)){if(w&&pp(B)){if(to($)){if(w.atomic){if(tn(k,i)&&(w.sawResultContent=true),C.active){C.noteResult(!Y.hidden&&tn(k,i));continue}if(!Y.hidden&&tn(k,i)){let ce=ro($);ce?.unicode&&(K(),w.cachedText+=ce.text);}continue}let Q=ro($);if(!Q||Y.hidden||!tn(k,i))continue;let ne=Od(F,Q,d);w.buffered.push({text:Q.text,props:ne.props,style:ne.style,start:m,end:m,projected:true,...k.length>0?{revisions:k}:{},...g?{link:g}:{},fieldAtom:{formField:w.formField}});continue}let V=da($);if(V.length===0)continue;let Z=Pt(k),j=!tn(k,i)||$.kind==="deletedText"&&!Z;if(w.atomic&&!j&&(w.sawResultContent=true),Z&&l&&(w.atomic?cr(l,w.atomStart,w.atomStart+1):cr(l,m,m+V.length)),j){w.atomic&&C.active&&C.noteResult(false),w.atomic||(m+=V.length,w.bufferOffset=m);continue}if(w.atomic){if(C.active){if(C.noteResult(!Y.hidden),Y.hidden)continue;K();continue}if(Y.hidden)continue;K(),w.cachedText+=V;continue}if(Y.hidden){m+=V.length,w.bufferOffset=m;continue}w.capturedResultStyle||(w.props=F,w.style=Y,w.capturedResultStyle=true),w.buffered.push({text:V,props:F,style:Y,start:m,end:m+V.length,...k.length>0?{revisions:k}:{},...g?{link:g}:{},fieldAtom:{formField:w.formField}}),m+=V.length,w.bufferOffset=m;continue}R.has($.id)&&L===null&&x.size>0,te($,F,Y);}}}};if(!ht(E))return p;let M=chunkRUS2YBWU_cjs.Wa(),_=(I,A)=>{let F=m;if(m+=1,I.kind==="textValue"||(Pt(k)&&l&&cr(l,F,F+1),!tn(k,i)))return;let Y=Lp({simple:I,depth:A,pageContext:t,budget:E,revisions:k,displayMode:i,inheritedRunProperties:n,cascadeRuns:r,themeFonts:d,currentLink:g,projectFieldLink:c,documentProperties:u,bodyPageFields:f});Y&&b(Y.text,Y.props,Y.style,true,F,F+1,{fieldAtom:{formField:false,...Y.pageField?{pageField:Y.pageField}:{}},...Y.link?{linkOverride:Y.link}:{}});},z=(I,A,F,Y)=>{if(chunkRUS2YBWU_cjs.ic(I)){_(I,A);return}if(I.kind==="run"){v(I,A);return}if(chunkRUS2YBWU_cjs.Lb(I)){if(Y>=chunkRUS2YBWU_cjs.Kb||A>_t)return;for(let Z of chunkRUS2YBWU_cjs.Ob(I))z(Z,A+1,F,Y+1);return}if(A>_t||A>=oo)return;let K=I.kind!=="textValue"&&"localName"in I?chunkRUS2YBWU_cjs.Va(F,I):F;if(I.kind==="hyperlink"){let Z=g;g=o?.(I)??void 0;for(let j of I.children)z(j,A+1,K,Y);g=Z;return}if(!_i(I))return;let $=Ai(I);if(!$||!ht(E))return;let V=k;k=Di(V,$);for(let Z of I.children)z(Z,A+1,K,Y);k=V;};for(let I of e.children)z(I,1,M,0);return O(),p}function uP(e){let n=Object.entries(e.attributes??{}).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${t}=${r}`).join(",");return `${e.localName}(${n})`}function fP(e){return e.map(uP).join(";")}var _p=new WeakMap,zp=1<<18;function jp(e){if(e.kind==="textValue")return `t:${e.value}`;let n=e.kind==="paragraph"||e.kind==="table";if(n){let r=_p.get(e);if(r!==void 0)return r}let t=pP(e);return n&&t.length<=zp&&_p.set(e,t),t}function pP(e){if(e.kind==="textValue")return `t:${e.value}`;let n=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let t=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of t)n.push(r);}for(let t of e.children??[])n.push(jp(t));return `(${n.join("|")})`}var Hp=new WeakMap;function fr(e){let n=Math.round(e.width*1e3),t=e.drawingToken??"",r=e.exclusionToken??"",o=fP(e.properties),a=Hp.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===n&&a.drawingToken===t&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,n,t,r,o,jp(e.paragraph)].join("\0");return i.length<=zp&&Hp.set(e.paragraph,{producer:e.producer,width:n,drawingToken:t,exclusionToken:r,propertiesToken:o,key:i}),i}var Wp=new WeakMap;function Gp(e,n){Wp.set(e,n);}function $p(e,n,t,r){if(!e)return;let o=n??new Set;for(let a of t)o.add(a);for(let a of r){let i=Wp.get(a);if(i)for(let l of i)o.add(l);}n||e.retain(o);}var mP=8,gP=8;function hP(e={}){let n=Math.max(1,e.maxEntries??4096),t=n*8,r=new Map,o=0,a=0,i=0,l=0,s=0;return {get(d){let c=r.get(d);if(c===void 0){l+=1;return}return i+=1,r.delete(d),c.generation=o,r.set(d,c),c.value},set(d,c){for(r.has(d)&&r.delete(d),r.set(d,{value:c,generation:o});r.size>n;){let u=r.entries().next();if(u.done||u.value[1].generation>=o&&r.size<=t)break;r.delete(u.value[0]),s+=1;}},retentionPassDue(){return a+=1,a%mP===0},retain(d){o+=1;for(let c of d){let u=r.get(c);u&&(u.generation=o);}for(let[c,u]of r)o-u.generation>gP&&(r.delete(c),s+=1);},clear(){r.clear();},get stats(){return {hits:i,misses:l,evictions:s,size:r.size}}}}var Xp=21600;function ze(e){return Number.isFinite(e)?e:0}function ma(e){if(e.length===0)return Object.freeze([]);let n=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),t=[],r=n[0];for(let o=1;o<n.length;o+=1){let a=n[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(t.push(r),r=a);}return t.push(r),Object.freeze(t)}function yP(e,n){let t=[];for(let r of e)for(let o of n){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&t.push(Object.freeze({start:a,end:i}));}return ma(t)}function Fd(e,n,t){let r=[];for(let o of e){let a=Math.max(o.start,n),i=Math.min(o.end,t);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return ma(r)}function bP(e,n,t){let r=[],o=n;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<t&&r.push(Object.freeze({start:o,end:t})),Object.freeze(r)}function Yp(e,n){return io(e,n)}function Md(e,n,t){return Yp(io(e,n),t)}function xP(e,n){let t=[],r=Math.min(e.length,dn);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],l=a.y,s=i.y;if(l===s)continue;let d=Math.min(l,s),c=Math.max(l,s);if(n<d||n>c||n===c&&s>l||n===d&&s<l)continue;let u=(n-l)/(s-l),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&t.push({x:f,delta:s>l?1:-1});}return t.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(t)}function SP(e,n){let t=[],r=Math.min(e.length,dn);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(n-a.y)>1e-6)continue;let l=Math.min(a.x,i.x),s=Math.max(a.x,i.x);s>l&&t.push(Object.freeze({start:l,end:s}));}return ma(t)}function Vp(e,n,t){let r=PP(xP(e,n),t),o=SP(e,n);return ma([...r,...o])}function PP(e,n){if(e.length===0)return Object.freeze([]);let t=[];if(n==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,l=e[a+1].x;l>i&&t.push(Object.freeze({start:i,end:l}));}return Object.freeze(t)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&t.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(t)}function wP(e,n){return Object.freeze({top:ze(e.top)+ze(n.top),right:ze(e.right)+ze(n.right),bottom:ze(e.bottom)+ze(n.bottom),left:ze(e.left)+ze(n.left)})}function RP(e,n,t,r,o,a){let i=n.x-e.x,l=n.y-e.y,s=r.x-t.x,d=r.y-t.y,c=i*d-l*s;if(Math.abs(c)<1e-12)return null;let f=((t.x-e.x)*l-(t.y-e.y)*i)/c,p=((t.x-e.x)*d-(t.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*l;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function IP(e,n,t,r){let o=[],a=Math.min(e.length,dn),i=Math.min(n.length,dn);if(a<2||i<2)return Object.freeze([]);let l=dn*dn,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(s>=l)return Object.freeze(o);s+=1;let p=n[f],m=n[(f+1)%i],g=RP(c,u,p,m,t,r);g!==null&&o.push(g);}}return Object.freeze(o)}function vP(e,n,t){let r=new Set;r.add(n),r.add(t);for(let o of e){let a=Math.min(o.length,dn);for(let i=0;i<a;i+=1){let l=o[i].y;Number.isFinite(l)&&l>=n-1e-6&&l<=t+1e-6&&r.add(l);}for(let i=0;i<a;i+=1){let l=o[i],s=o[(i+1)%a],d=l.y,c=s.y;if(d!==c)for(let u of [n,t]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of IP(e[0],e[1],n,t))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function TP(e,n,t,r){let o=Vp(e,t,r);return n&&n.length>=3&&(o=yP(o,Vp(n,t,"nonzero"))),o}function Kp(e,n,t,r,o=null){let a=ze(t.top),i=ze(t.bottom),l=ze(t.left),s=ze(t.right),d=n-i,c=n+a,u=vP(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((m,g)=>{if(g+1>=u.length)return [];let h=u[g+1];return h<=m+1e-6?[m]:[m,h,(m+h)/2]}):[d];for(let m of p){let g=TP(e,o,m,r);for(let h of g)f.push(Object.freeze({start:h.start-l,end:h.end+s}));}return ma(f)}function Up(e){let{x:n,y:t,width:r,height:o}=e;return Object.freeze([Object.freeze({x:n,y:t}),Object.freeze({x:n+r,y:t}),Object.freeze({x:n+r,y:t+o}),Object.freeze({x:n,y:t+o})])}function kP(e){let n=Math.max(0,ze(e.extentWidthPt)),t=Math.max(0,ze(e.extentHeightPt)),r=Wi(e.transform,n,t),o=Math.min(e.polygonEmu.length,dn);if(o<3)return Up({x:e.anchorX,y:e.anchorY,width:n,height:t});let a=r.width/Xp,i=r.height/Xp,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:ze(d.x)*a,y:ze(d.y)*i}));}return Gi({points:Object.freeze(l),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:e.anchorX,anchorY:e.anchorY})}function OP(e,n){let t=n.effectInsets??ji,r=n.wrapDistances??ji,o=ze(n.contentLeft),a=ze(n.contentRight);if(n.mode==="topAndBottom"){let c=Yp(io(n.contentBounds,t),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Fd([{start:o,end:a}],o,a)}if(n.mode==="square"){let c=Md(n.contentBounds,t,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Fd([{start:c.x,end:c.x+c.width}],o,a)}let i=n.polygon&&n.polygon.length>=3?n.polygon:Up(n.contentBounds),l=n.mode==="through"?"evenodd":"nonzero",s=wP(r,t),d=Kp(i,e,s,l,n.clipPolygon);return Fd(d,o,a)}function CP(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(n=>n.start)),end:Math.max(...e.map(n=>n.end))})}function BP(e,n,t,r,o){if(t==="bothSides"||n.length===0)return e;let a=CP(n);if(!a)return e;if(t==="left")return Object.freeze(e.filter(s=>s.end<=a.start+1e-4));if(t==="right")return Object.freeze(e.filter(s=>s.start>=a.end-1e-4));let i=Math.max(0,a.start-r),l=Math.max(0,o-a.end);return i===l?Object.freeze(e.filter(s=>s.start>=a.end-1e-4)):i>l?Object.freeze(e.filter(s=>s.end<=a.start+1e-4)):Object.freeze(e.filter(s=>s.start>=a.end-1e-4))}function Zp(e,n){let t=OP(e,n),r=bP(t,n.contentLeft,n.contentRight);return BP(r,t,n.textSide,n.contentLeft,n.contentRight)}function LP(e,n,t,r){return t.length<3?false:Kp(t,n,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Ed(e,n,t){let r=t.effectInsets??ji,o=t.hitBounds;if(e<o.x||e>o.x+o.width||n<o.y||n>o.y+o.height)return false;if(t.clipPolygon&&t.clipPolygon.length>=3)return LP(e,n,t.clipPolygon,r);let a=io(t.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&n>=a.y&&n<=a.y+a.height}function qp(e){let n=Object.freeze({top:ze(e.wrapDistancesEmu.top/ot),right:ze(e.wrapDistancesEmu.right/ot),bottom:ze(e.wrapDistancesEmu.bottom/ot),left:ze(e.wrapDistancesEmu.left/ot)}),t=e.mode==="tight"||e.mode==="through"?kP({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:t,clipPolygon:e.geometry.clipPolygon,wrapDistances:n,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var Rn=1e5,dn=chunkRUS2YBWU_cjs.E.maxPolygonPoints,ji=Object.freeze({top:0,right:0,bottom:0,left:0}),FP=32,MP=.1,EP=new Set(["rect","ellipse","roundRect"]);function he(e){return Number.isFinite(e)?e:0}function Bn(e,n,t){return Number.isFinite(e)?Math.min(t,Math.max(n,e)):n}function Jp(e,n){let t=e+n;return Number.isFinite(t)?t:0}function Qp(e,n,t){let r=Bn(e,0,t),o=Bn(n,0,t);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=t){let i=(t-1)/a;r*=i,o*=i;}return {left:r,right:o}}function NP(e){let n=Qp(Bn(e.left,0,Rn),Bn(e.right,0,Rn),Rn),t=Qp(Bn(e.top,0,Rn),Bn(e.bottom,0,Rn),Rn);return Object.freeze({left:n.left,top:t.left,right:n.right,bottom:t.right})}function AP(e){let n=NP({left:e.left*Rn,top:e.top*Rn,right:e.right*Rn,bottom:e.bottom*Rn});return Object.freeze({left:n.left/Rn,top:n.top/Rn,right:n.right/Rn,bottom:n.bottom/Rn})}function DP(e){let n=t=>{if(!Number.isFinite(t))return 0;let r=t/ot;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:n(e.top),right:n(e.right),bottom:n(e.bottom),left:n(e.left)})}function io(e,n){let t=he(n.left),r=he(n.right),o=he(n.top),a=he(n.bottom);return Object.freeze({x:e.x-t,y:e.y-o,width:Math.max(0,Jp(e.width,t+r)),height:Math.max(0,Jp(e.height,o+a))})}function _P(e,n,t){let r=e*Bn(t.left,0,1),o=n*Bn(t.top,0,1),a=e*(1-Bn(t.right,0,1)),i=n*(1-Bn(t.bottom,0,1));if(a<=r||i<=o){let l=e/2,s=n/2;return Object.freeze({left:l,top:s,right:l,bottom:s})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Wi(e,n,t){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?he(Xt(r)??n):Math.max(0,he(n)),l=o>0?he(Xt(o)??t):Math.max(0,he(t));return Object.freeze({offsetX:he(Xt(a.x)??0),offsetY:he(Xt(a.y)??0),width:i,height:l})}function HP(e,n,t,r){let o=_P(n,t,r),a=o.right-o.left,i=o.bottom-o.top,l=n>0?n:1,s=t>0?t:1,d=[],c=Math.min(e.length,dn);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Bn(f.x/l,0,1)*a,m=i<=0?o.top:o.top+Bn(f.y/s,0,1)*i;d.push(Object.freeze({x:he(p),y:he(m)}));}return Object.freeze(d)}function em(e,n,t){let r=e.x-n.x,o=e.y-n.y;t.flipHorizontal&&(r=-r),t.flipVertical&&(o=-o);let a=he(t.rotationDegrees)*Math.PI/180,i=Math.cos(a),l=Math.sin(a),s=r*i-o*l,d=r*l+o*i;return Object.freeze({x:he(s+n.x),y:he(d+n.y)})}function nm(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let n=e[0].x,t=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,dn);for(let i=1;i<a;i+=1){let l=e[i];!Number.isFinite(l.x)||!Number.isFinite(l.y)||(n=Math.min(n,l.x),t=Math.max(t,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y));}return Object.freeze({x:n,y:r,width:Math.max(0,t-n),height:Math.max(0,o-r)})}function Nd(e){let n=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),t=ga(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of t)r.push(em(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),n,e.transform));let o=nm(r),a=Math.max(o.width,1e-6),i=Math.max(o.height,1e-6);return Object.freeze({bboxX:o.x,bboxY:o.y,scaleX:Math.max(0,he(e.layoutWidth))/a,scaleY:Math.max(0,he(e.layoutHeight))/i,anchorX:he(e.anchorX),anchorY:he(e.anchorY)})}function zP(e,n){return Object.freeze({x:he(n.anchorX+(e.x-n.bboxX)*n.scaleX),y:he(n.anchorY+(e.y-n.bboxY)*n.scaleY)})}function Gi(e){let n=e.mapping??Nd({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),t=HP(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(t.length>0?t.length:e.points.length,dn),o=t.length>0?t:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let l=0;l<r;l+=1){let s=o[l],d=Object.freeze({x:he(s.x+e.offsetX),y:he(s.y+e.offsetY)});i.push(zP(em(d,a,e.transform),n));}return Object.freeze(i)}function ga(e,n,t,r){if(t<=0||r<=0){let o=Object.freeze({x:e,y:n});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:n}),Object.freeze({x:e+t,y:n}),Object.freeze({x:e+t,y:n+r}),Object.freeze({x:e,y:n+r})])}function jP(e,n,t){if(!e||!EP.has(e))return null;if(n<=0||t<=0)return ga(0,0,Math.max(0,n),Math.max(0,t));if(e==="rect")return ga(0,0,n,t);if(e==="ellipse"){let l=[],s=n/2,d=t/2,c=n/2,u=t/2,f=Math.min(FP,dn);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(l)}let r=Math.min(n,t)*MP,o=Math.max(0,r),a=n,i=t;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function so(e){return Object.freeze({x:he(e.x),y:he(e.y)})}function WP(e,n){if(e.length===0)return Object.freeze([]);let t=n.x+n.width,r=n.y+n.height,o=(i,l,s)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,dn);for(let u=0;u<c;u+=1){let f=so(i[u]),p=so(i[(u+1)%c]),m=l(f),g=l(p);if(m&&g?d.push(p):m&&!g?d.push(so(s(f,p))):!m&&g&&(d.push(so(s(f,p))),d.push(p)),d.length>=dn)break}return Object.freeze(d.slice(0,dn))},a=e.slice(0,dn).map(so);return a=[...o(a,i=>i.x>=n.x,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(n.x-i.x)/s:0;return Object.freeze({x:n.x,y:he(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.x<=t,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(t-i.x)/s:0;return Object.freeze({x:t,y:he(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.y>=n.y,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(n.y-i.y)/s:0;return Object.freeze({x:he(i.x+d*(l.x-i.x)),y:n.y})})],a=[...o(a,i=>i.y<=r,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(r-i.y)/s:0;return Object.freeze({x:he(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function GP(e){let n=nm(e);return Object.freeze({x:n.x,y:n.y,width:n.width,height:n.height})}function $i(e,n){let t=$P(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=a=>{if(!a||a.length===0)return a;let i=WP(a,n);return i.length>=3?Object.freeze(i.map(so)):Object.freeze([])};return Object.freeze({...e,paintBounds:t,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function $P(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function XP(e){let n=Math.max(0,he(e.extentWidth)),t=Math.max(0,he(e.extentHeight)),r=he(e.anchorX),o=he(e.anchorY),a=AP(e.crop),i=DP(e.effectExtentEmu),l=Wi(e.transform,n,t),s=Object.freeze({x:r,y:o,width:n,height:t}),d={sourceWidth:l.width,sourceHeight:l.height,offsetX:l.offsetX,offsetY:l.offsetY,crop:a,transform:e.transform,layoutWidth:n,layoutHeight:t,anchorX:r,anchorY:o},c=Nd(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=Gi({points:ga(0,0,l.width,l.height),...d,crop:u,mapping:c}),p=jP(e.presetGeometry,l.width,l.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=ga(0,0,l.width,l.height));let h=Gi({points:g,...d,crop:u,mapping:c}),y=GP(h.length>=3?h:f),x=io(y,i);return Object.freeze({contentBounds:s,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:m,effectInsets:i})}function co(e){let n=e.projection.picture,t=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return XP({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:n?.crop??{left:0,top:0,right:0,bottom:0},transform:n?.transform??t,presetGeometry:n?.presetGeometry??null})}function VP(e){let{transform:n,contentWidth:t,contentHeight:r}=e;if(t<=0||r<=0)return null;let o=Wi(n,t,r),a=o.width,i=o.height,l=Nd({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:n,layoutWidth:t,layoutHeight:r,anchorX:0,anchorY:0}),s=he(n.rotationDegrees),d=Math.abs(s%360)>1e-4,c=n.flipHorizontal?-1:1,u=n.flipVertical?-1:1,f=l.scaleX,p=l.scaleY,m=a>0?a/t:1,g=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(g-1)<1e-4)return null;let y=s*Math.PI/180,x=Math.cos(y),T=Math.sin(y),R=o.offsetX+a/2,B=o.offsetY+i/2,E=f*x*c,w=-f*T*u,L=p*T*c,C=p*x*u,k=f*(R-x*c*(a/2)+T*u*(i/2)-l.bboxX),b=p*(B-T*c*(a/2)-x*u*(i/2)-l.bboxY);return Object.freeze({a:he(E*m),b:he(L*m),c:he(w*g),d:he(C*g),e:he(k),f:he(b)})}function Tk(e){let n=VP(e);if(n)return `matrix(${lo(n.a)}, ${lo(n.b)}, ${lo(n.c)}, ${lo(n.d)}, ${lo(n.e)}, ${lo(n.f)})`}function lo(e){return Number.isFinite(e)?String(e):"0"}var YP=Object.freeze({"http://schemas.openxmlformats.org/drawingml/2006/chart":"chart","http://schemas.openxmlformats.org/drawingml/2006/diagram":"diagram","http://schemas.microsoft.com/office/word/2010/wordprocessingGroup":"group","http://schemas.microsoft.com/office/word/2010/wordprocessingShape":"textbox","http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas":"canvas"}),KP=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),UP=Object.freeze({left:0,top:0,right:0,bottom:0});function om(e){let n=e.picture,t=null;if(!n){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";t=YP[o]??"graphic";break}t===null&&(t="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:n?.crop??UP,transform:n?.transform??KP,placeholderGraphicKind:n?null:t,vectorShape:e.vectorShape})}var ot=12700;function rn(e){return e/ot}function Xt(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*ot*72)return null;let n=e/ot;return Number.isFinite(n)?n:null}function wt(e){let n=rn(e.inlineDistancesEmu.left),t=rn(e.inlineDistancesEmu.right),r=rn(e.inlineDistancesEmu.top),o=rn(e.inlineDistancesEmu.bottom),a=rn(e.effectExtentEmu.left),i=rn(e.effectExtentEmu.right),l=rn(e.effectExtentEmu.top),s=rn(e.effectExtentEmu.bottom),d=rn(e.extentEmu.cx),c=rn(e.extentEmu.cy);return Object.freeze({distL:n,distR:t,distT:r,distB:o,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:n+a+d+i+t,lineContribution:r+l+c+s+o})}function am(e,n,t){let r=Math.max(t.distT+t.effectT,e-t.height),o=Math.max(n,r-t.effectT+t.height+t.effectB+t.distB),a=r+t.height+t.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function Xi(e,n,t){if(Math.abs(n)<1e-4&&Math.abs(t)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+n,y:a.y+t}),o=a=>Object.freeze({x:a.x+n,y:a.y+t});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function Vi(e,n,t){return Math.abs(n)<1e-4&&Math.abs(t)<1e-4?e:Object.freeze({...e,x:e.x+n,y:e.y+t,advanceStart:e.advanceStart+n,advanceEnd:e.advanceEnd+n,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+n,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+n,y:e.hitBounds.y+t}),geometry:Xi(e.geometry,n,t)})}function Ad(e,n){return e.length===0?e:e.map(t=>{let r=t.geometry.effectInsets.bottom,o=n-t.height-r,a=o-t.y;return Math.abs(a)<1e-4&&t.baselineOffset===n?t:Object.freeze({...t,y:o,baselineOffset:n,geometry:Xi(t.geometry,0,a),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+a}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+a})})})}function Dd(e,n){let t=Math.max(e.x,n.x),r=Math.max(e.y,n.y),o=Math.min(e.x+e.width,n.x+n.width),a=Math.min(e.y+e.height,n.y+n.height);return o<=t||a<=r?Object.freeze({x:t,y:r,width:0,height:0}):Object.freeze({x:t,y:r,width:o-t,height:a-r})}function Yi(e,n){let t=Dd(e.paintBounds,n),r=t.width>0&&t.height>0?t:Object.freeze({...t}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=Xi(e.geometry,o,a);return Object.freeze({...e,paintBounds:t,hitBounds:r,geometry:$i(i,n)})}var tm=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),rm=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function at(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function im(e,n){return !(!n.layoutInCell||n.cellBox===null||!Number.isFinite(n.cellBox.height)||n.cellBox.height<=0||!Number.isFinite(n.cellBox.width)||n.cellBox.width<=0)}function lm(e,n){if(im(e,n)){let s=n.cellBox;if(!s)return null;let{x:d,width:c}=s;switch(e){case "page":case "column":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "insideMargin":return at(n)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return at(n)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let t=-n.marginLeft,r=n.contentWidth+n.marginRight,o=0,a=n.contentWidth,i=n.columnBox.x,l=n.columnBox.x+n.columnBox.width;switch(e){case "page":return {left:t,right:r,center:(t+r)/2};case "margin":return {left:o,right:a,center:o+n.contentWidth/2};case "column":return {left:i,right:l,center:i+n.columnBox.width/2};case "character":return {left:n.anchorCharacterX,right:n.anchorCharacterX,center:n.anchorCharacterX};case "leftMargin":return {left:t,right:t,center:t};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return at(n)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return at(n)?{left:r,right:r,center:r}:{left:t,right:t,center:t};default:return null}}function sm(e,n){if(im(e,n)){let s=n.cellBox;if(!s)return null;let{y:d,height:c}=s;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "insideMargin":return at(n)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return at(n)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let t=-n.contentInsetTop,r=n.contentBandHeight,o=t+n.pageHeight-n.marginBottom,a=r+n.contentInsetBottom,i=0,l=n.contentHeight;switch(e){case "page":return {top:t,bottom:a,center:(t+a)/2};case "margin":return {top:i,bottom:l,center:i+n.contentHeight/2};case "paragraph":return {top:n.paragraphBox.y,bottom:n.paragraphBox.y+n.paragraphBox.height,center:n.paragraphBox.y+n.paragraphBox.height/2};case "line":return {top:n.anchorLineBox.y,bottom:n.anchorLineBox.y+n.anchorLineBox.height,center:n.anchorLineBox.y+n.anchorLineBox.height/2};case "topMargin":return {top:t,bottom:t,center:t};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return at(n)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return at(n)?{top:a,bottom:a,center:a}:{top:t,bottom:t,center:t};default:return null}}function dm(e){return e===null?0:Xt(e)}function ZP(e,n,t){let r=at(t);if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.width)&&t.cellBox.width>0){let{x:o,width:a}=t.cellBox;return e==="inside"?r?o:o+a-n:e==="outside"?r?o+a-n:o:null}return e==="inside"?r?0:t.contentWidth-n:e==="outside"?r?t.contentWidth-n:0:null}function qP(e,n,t){let r=at(t),o=t.contentBandHeight;if(t.layoutInCell&&t.cellBox&&Number.isFinite(t.cellBox.height)&&t.cellBox.height>0){let{y:a,height:i}=t.cellBox;return e==="inside"?r?a:a+i-n:e==="outside"?r?a+i-n:a:null}return e==="inside"?r?0:o-n:e==="outside"?r?o-n:0:null}function JP(e,n,t,r,o){let a=lm(e,o);if(!a)return null;let i=dm(t);if(i===null)return null;if(n==="left")return a.left+i;if(n==="center")return a.center-r/2+i;if(n==="right")return a.right-r+i;if(n==="inside"||n==="outside"){let l=ZP(n,r,o);if(l!==null)return l+i}return a.left+i}function QP(e,n,t,r,o){let a=sm(e,o);if(!a)return null;let i=dm(t);if(i===null)return null;if(n==="top")return a.top+i;if(n==="center")return a.center-r/2+i;if(n==="bottom")return a.bottom-r+i;if(n==="inside"||n==="outside"){let l=qP(n,r,o);if(l!==null)return l+i}return a.top+i}function ha(e){let n=e.contentBandHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:n+e.contentInsetTop+e.contentInsetBottom})}function _d(e,n){let t=wt(e),r=e.position,o=e.anchor,a="page",i="page";if(!r||!o)return Object.freeze({x:0,y:0,horizontalFrame:a,verticalFrame:i,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"});if(o.simplePos){let g=Xt(r.simplePosition.xEmu),h=Xt(r.simplePosition.yEmu);return Object.freeze(g===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-n.marginLeft,y:h-n.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,s=r.vertical.relativeFrom,d=lm(l,n),c=sm(s,n),u=d?.left??0,f=c?.top??0;if(!tm.has(l)||!rm.has(s))return Object.freeze({x:0,y:0,horizontalFrame:tm.has(l)?l:a,verticalFrame:rm.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=JP(l,r.horizontal.align,r.horizontal.offsetEmu,t.width,n),m=QP(s,r.vertical.align,r.vertical.offsetEmu,t.height,n);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function ew(e){let n=e.input.projection,t=n.anchor,r=wt(n),o=co({projection:n,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Dd(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:t?.behindDocument??false,allowOverlap:t?.allowOverlap??true,layoutInCell:t?.layoutInCell??true,relativeHeight:t?.relativeHeight??0,wrap:n.wrap==="inline"?"inFront":n.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?$i(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkRUS2YBWU_cjs.bb(n),...om(n)})}function Ln(e,n){if(e.kind!=="paragraph")return [];let t=[],r=o=>{if(o.kind==="drawing"){let a=n.projectionForAtom?.(o.id)??n.project(o);a?.kind==="anchored"&&t.push({atomId:o.id,projection:a});return}if(chunkRUS2YBWU_cjs.ab(o)){let a=n.projectionForAtom?.(o.id)??null;a?.kind==="anchored"&&t.push({atomId:o.id,projection:a});return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children)r(o);return Object.freeze(t)}function Wn(e){let n=new Map;if(e.kind!=="paragraph")return n;let t=0,r=o=>{if(o.kind==="drawing"||chunkRUS2YBWU_cjs.ab(o)){n.set(o.id,t),t+=1;return}if(o.kind==="textValue"){t+=o.value.length;return}if("children"in o)for(let a of o.children)r(a);};for(let o of e.children){if(o.kind==="run"){for(let a of o.children)r(a);continue}if(o.kind==="hyperlink"){for(let a of o.children)if(a.kind==="run")for(let i of a.children)r(i);}}return n}function nw(e,n,t){for(let o of e.spans){if(n<o.range.start)break;if(n<o.range.end){if(t&&o.text!==void 0&&o.style!==void 0){let l=n-o.range.start;return o.box.x+rt(o.text.slice(0,l),o.style,t)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=n-o.range.start;return o.box.x+o.box.width*i/a}if(n===o.range.end)return t&&o.text!==void 0&&o.style!==void 0?o.box.x+rt(o.text,o.style,t):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=n&&(r=o);return r?t&&r.text!==void 0&&r.style!==void 0?r.box.x+rt(r.text,r.style,t):r.box.x+r.box.width:e.box.x}function tw(e,n){let t=e.range.start;for(let r of e.spans)r.range.end<=n&&(t=r.range.end);return t}function Hd(e,n,t){if(!(Math.abs(t)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===n&&(e[r]=Object.freeze({...o,y:o.y+t,geometry:Xi(o.geometry,0,t),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+t}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+t})}));}}function uo(e){let n=Ln(e.paragraph,e.drawingLayout);if(n.length===0)return [];let t=Wn(e.paragraph),r=[];for(let o of n){let a=o.projection;if(a.hidden)continue;let i=t.get(o.atomId);if(i===void 0||e.fragmentRange&&(i<e.fragmentRange.start||i>=e.fragmentRange.end))continue;let l=e.lines.find(h=>i>=h.range.start&&i<h.range.end);if(!l)continue;let s=a.anchor?.layoutInCell??true,c=a.position?.horizontal.relativeFrom==="character"?tw(l,i):i,u=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:l.box,anchorCharacterX:nw(l,c,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:s}),f=_d(a,u),m=s&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:ha(e.frameBase),g=ew({input:Object.freeze({drawingNodeId:o.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:a,resource:e.drawingLayout.resourceOf(a)}),anchorParagraphId:e.paragraphId,start:c,resolved:f,clipRegion:m,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(o.atomId)}:{},...a.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(a)}:{}});r.push(g);}return Object.freeze(r)}function cm(e){let n=wt(e.input.projection),t=e.slotX+n.distL+n.effectL,r=co({projection:e.input.projection,anchorX:t,anchorY:e.y,extentWidth:n.width,extentHeight:n.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=Dd(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:t,y:e.y,width:n.width,height:n.height,distL:n.distL,distR:n.distR,distT:n.distT,distB:n.distB,advanceStart:e.slotX,advanceEnd:e.slotX+n.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:$i(r,o),resource:e.input.resource,accessibility:chunkRUS2YBWU_cjs.bb(e.input.projection),...om(e.input.projection)})}var rw=256,Wd=8,pr=8,fo=class extends Error{name="DrawingExclusionConvergenceError";constructor(n="drawing exclusion reflow did not converge"){super(n);}};function ow(e,n){let t=Math.max(1,n.columnCount);if(t<=1)return 0;let r=e.x+e.width/2;if(n.columnLefts&&n.columnWidths&&n.columnLefts.length===t){for(let i=0;i<t;i+=1){let l=n.columnLefts[i],s=l+n.columnWidths[i];if(r>=l-.001&&r<s+.001)return i}return t-1}let o=n.columnGapPt,a=(n.contentWidth-o*(t-1))/t;for(let i=0;i<t;i+=1){let l=i*(a+o),s=l+a;if(r>=l-.001&&r<s+.001)return i}return t-1}function jd(e){return e.behindDocument?"behind":"inFront"}function um(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function aw(e){switch(e){case "inline":case "behind":case "inFront":return null;case "square":case "squareLeft":case "squareRight":return "square";case "tight":return "tight";case "through":return "through";case "topAndBottom":return "topAndBottom";default:return null}}function iw(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function Gd(e){let n=aw(e.projection.wrap);if(!n||!e.projection.wrapGeometry)return null;let t=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return qp({mode:n,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:t.distancesEmu,polygonEmu:t.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:n==="square"?iw(e.projection.wrap):t.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function $d(e){if(e.mode==="topAndBottom"||e.mode==="square")return Md(e.contentBounds,e.effectInsets,e.wrapDistances);let n=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)n.push(o.y);let t=Math.min(...n)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...n)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:t,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-t)})}function lw(e){if(e.drawing.behindDocument||!um(e.drawing.wrap))return null;let n=e.yOverride??e.drawing.y,t=Gd({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:n});return t?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:jd(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:n,verticalBand:$d(t),input:t}):null}function fm(e,n){let t=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=n.sourceOrder??Number.MAX_SAFE_INTEGER;return t!==r?t-r:e.drawingNodeId.localeCompare(n.drawingNodeId)}function sw(e,n){let t=jd(e),r=jd(n);return t!==r?t==="behind"?-1:1:e.relativeHeight!==n.relativeHeight?e.relativeHeight-n.relativeHeight:fm(e,n)}function pm(e){return Object.freeze([...e].sort(sw))}function zd(e,n){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function Xd(e,n){if(Math.abs(n)<=1e-4)return e;let t=e.geometry;return Object.freeze({...e,y:e.y+n,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+n}),geometry:Object.freeze({...t,contentBounds:Object.freeze({...t.contentBounds,y:t.contentBounds.y+n}),paintBounds:Object.freeze({...t.paintBounds,y:t.paintBounds.y+n}),hitBounds:Object.freeze({...t.hitBounds,y:t.hitBounds.y+n}),transformedCorners:t.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+n})),clipPolygon:t.clipPolygon?t.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+n})):null})})}function mm(e,n){let t=n.maxAttempts??rw,r=[...e].sort(fm),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<t&&o.some(g=>zd(g.paintBounds,s.paintBounds));){let p=o.find(g=>zd(g.paintBounds,s.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-s.paintBounds.y+.001;s=Xd(s,m),d+=1;}let c=o.some(f=>zd(f.paintBounds,s.paintBounds)),u=s.paintBounds.y+s.paintBounds.height>n.pageBottom+.001;if(c||u){a.push(s),i.push(s.drawingNodeId);continue}o.push(s);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function po(e,n,t,r){let o=[{start:t,end:r}];for(let a of n){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let l=Zp(e,a.input),s=[];for(let d of o)for(let c of l){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&s.push(Object.freeze({start:u,end:f}));}if(o=s,o.length===0)break}return Object.freeze(o)}function gm(e,n){for(let t of n)if(e>=t.start-1e-6&&e<t.end-1e-6)return Math.max(0,t.end-e);return 0}function dw(e,n){for(let t of n)if(t.end>e+1e-6)return t;return null}function Vd(e,n){let t=dw(e,n);if(!t)return null;let r=Math.max(e,t.start),o=t.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function cw(e,n,t){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+n,y:r.y+t}),contentLeft:e.contentLeft+n,contentRight:e.contentRight+n,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+n,y:o.y+t}))}:{}})}function Yd(e,n){return Object.freeze({...e,layoutFallback:n})}function hm(e,n,t,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-t,verticalBand:Object.freeze({...a,x:a.x-n,y:a.y-t}),input:Object.freeze({...cw(i,-n,-t),contentLeft:r?.left,contentRight:r?.right??i.contentRight-n})})}))}function ym(e,n,t){return Object.freeze(e.filter(r=>{let o=t(r.anchorParagraphId);return o===void 0?r.sourceOrder<=n:o<=n}))}function bm(e){let n=Ln(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Wn(e.paragraph),r=Math.max(1,e.contentRight-e.contentLeft),o=[];for(let a of n){if(a.projection.anchor?.behindDocument||!um(a.projection.wrap)||a.projection.wrap==="topAndBottom")continue;let i=t.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let s=Object.freeze({x:e.contentLeft,y:l,width:r,height:14}),d=e.anchorCellBox!=null,c=_d(a.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+r,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:r,contentHeight:648,contentBandHeight:648,paragraphBox:s,anchorLineBox:s,anchorCharacterX:e.contentLeft,columnBox:s,cellBox:d?e.anchorCellBox:null,layoutInCell:d,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),u=e.paragraphStartY+l,f=wt(a.projection),p=co({projection:a.projection,anchorX:c.x,anchorY:u,extentWidth:f.width,extentHeight:f.height}),m=Gd({projection:a.projection,geometry:p,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:c.x,anchorY:u});m&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:a.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.projection.anchor?.relativeHeight??0,allowOverlap:a.projection.anchor?.allowOverlap??true,columnIndex:0,y:u,verticalBand:$d(m),input:m}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function Ki(e){let n=Ln(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Wn(e.paragraph),r=[];for(let o of n){if(o.projection.anchor?.behindDocument||o.projection.wrap!=="topAndBottom")continue;let a=t.get(o.atomId);if(a===void 0)continue;let i=e.anchorLineTopByModelStart.get(a);if(i===void 0)continue;let l=e.paragraphStartY+i,s=wt(o.projection),d=co({projection:o.projection,anchorX:e.contentLeft,anchorY:l,extentWidth:s.width,extentHeight:s.height}),c=Gd({projection:o.projection,geometry:d,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:l});c&&r.push(Object.freeze({drawingNodeId:o.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:a,sourceOrder:e.sourceOrderOf?.(o.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:o.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:o.projection.anchor?.relativeHeight??0,allowOverlap:o.projection.anchor?.allowOverlap??true,columnIndex:e.columnIndex??0,y:l,verticalBand:$d(c),input:c}));}return r.sort((o,a)=>o.sourceOrder-a.sourceOrder),Object.freeze(r)}var uw=8;function fw(e,n,t,r){return e<r&&n>t}function Rt(e,n,t){if(n<=0||t.length===0)return 0;let r=0;for(let o=0;o<uw;o+=1){let a=e+r,i=a+n,l=a,s=false;for(let c of t){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;fw(a,i,u,f)&&(s=true,l=Math.max(l,f));}if(!s)break;let d=l-e;if(d<=r+.001)break;r=d;}return r}function pw(e){return e.map(n=>`${n.start.toFixed(3)}-${n.end.toFixed(3)}`).join(",")}function mw(e){let n=e.contentBounds,t=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),t.top.toFixed(3),t.right.toFixed(3),t.bottom.toFixed(3),t.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function it(e){return e.length===0?"":e.map(n=>{let t=n.verticalBand,r=n.y+n.input.contentBounds.height/2,o=po(r,[n],n.input.contentLeft,n.input.contentRight);return [n.drawingNodeId,String(n.sourceOrder),String(n.columnIndex),n.y.toFixed(3),t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),mw(n.input),pw(o)].join("|")}).join(`
|
|
8
|
+
`)}function Kd(e,n,t,r,o,a){let i=[];for(let l of e){let s=n.projectionForAtom?.(l.drawingNodeId);if(!s)continue;let d=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?ow(l,a):0,u=lw({drawing:l,projection:s,sourceOrder:d,contentLeft:t,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,s)=>l.sourceOrder-s.sourceOrder),Object.freeze(i)}function ya(e,n,t,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:t}),i=new Map;for(let l of e){let s=l.anchoredDrawings??[],d=Kd(s,n,0,t,r,a);d.length>0&&i.set(l.index,d);}return i}function Ui(e,n){if(e.size!==n.size)return false;for(let[t,r]of e){let o=n.get(t);if(!o||it(r)!==it(o))return false}return true}function Zi(e){return e.size===0?"":[...e.entries()].sort(([n],[t])=>n-t).map(([n,t])=>`${n}:${it(t)}`).join(`
|
|
9
|
+
`)}var gw=.001;function In(e){return eo(e)}var Ji=new Set(["-","\u2010","\u2013","\u2014"]);function xm(e){let n=[];for(let t=0;t<e.length;t+=1){let r=e[t];r===" "?(t>0&&n[n.length-1]!==t&&n.push(t),n.push(t+1)):(r===" "||Ji.has(r)&&t>0&&e[t-1]!==" "&&t+1<e.length&&e[t+1]!==" "&&!Ji.has(e[t+1]))&&n.push(t+1);}return n[n.length-1]!==e.length&&n.push(e.length),n}function hw(e,n,t){for(let r=n;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===n?t:0;for(let i=a;i<o.text.length;i+=1){let l=o.text[i];if(l===`
|
|
10
|
+
`||l===chunkRUS2YBWU_cjs.Xb)return false;if(l!==" "&&l!==" ")return true}}return false}function yw(e,n,t,r){let o=0,a=0,i=false;for(let l=n;l<e.length;l+=1){let s=e[l],d=l===n?t:0;for(let c=d;c<s.text.length;){let u=s.text[c];if(u===" "||u===`
|
|
11
|
+
`||u===chunkRUS2YBWU_cjs.Xb)return {width:o,decimalOffset:i?a:o};let f=c+1,p=s.text.slice(c,f),m=r.measure(Gt(p,s.style),s.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=f;}}return {width:o,decimalOffset:i?a:o}}function bw(e,n,t,r){let o=e.relativeTo==="indent"||!r?{left:n,right:t}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}function Sm(e,n,t,r=0){return (t.length>0?Rt(e,n.height,t):n.exclusionSkipBefore??0)+Math.max(0,n.height-n.trailingSpacing)+r}function xw(e){return Object.freeze({spans:e.spans.map(n=>Object.freeze({...n,box:Object.freeze({...n.box})})),drawings:e.drawings.map(n=>Object.freeze({...n,paintBounds:Object.freeze({...n.paintBounds}),hitBounds:Object.freeze({...n.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{}})}var qi=31680;function ba(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let n=Number(e);return Number.isFinite(n)?n>qi?qi:n<-qi?-qi:n:null}function xa(e){let n=0,t=0;for(let r of e){if(r.localName!=="ind")continue;let o=r.attributes?.left??r.attributes?.start,a=r.attributes?.right??r.attributes?.end,i=ba(o),l=ba(a);i!==null&&(n=i/20),l!==null&&(t=l/20);}return {left:n,right:t}}function Pm(e){let n="left";for(let t of e)if(t.localName==="jc")switch(t.attributes?.val){case "center":n="center";break;case "right":case "end":n="right";break;case "both":case "distribute":n="both";break;default:n="left";}return n}function Sw(e){return e.endsWith(" ")}function Pw(e,n){let t=e.range.end-e.range.start;if(t<=0||e.text===" "||e.projected||e.text.length!==t)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(rt(e.text.slice(0,o),e.style,n));return Object.freeze(r)}function mo(e,n){return e.map(t=>t.caretEdges?t:{...t,caretEdges:Pw(t,n)})}function Qi(e,n,t,r,o,a,i){if(e.length===0)return e;if(o==="left")return mo(e,n);let l=e[e.length-1],s=l.text.replace(/\s+$/,""),d=s===l.text?0:l.box.width-rt(s,l.style,n),c=i??l.box.x-t+l.box.width-d,u=r-c;if(u<=0)return mo(e,n);if(o==="both"){if(a)return mo(e,n);let p=[];for(let y=1;y<e.length;y+=1)Sw(e[y-1].text)&&p.push(y);if(p.length===0)return mo(e,n);let m=u/p.length,g=new Set(p),h=0;return mo(e.map((y,x)=>(g.has(x)&&(h+=m),h===0?y:{...y,box:{...y.box,x:y.box.x+h}})),n)}let f=o==="center"?u/2:u;return mo(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),n)}function el(e,n){return n===0||e.length===0?e:e.map(t=>Vi(t,n,0))}function nl(e,n,t,r,o,a,i,l=[],s=Ur,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??Yr,m=u?.firstLineOffset??0,g=[],h=zi(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??mn,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false),y=Math.max(0,u?.startOffset??0),x=h.flatMap(N=>{if(N.end<=y)return [];if(N.start>=y)return [N];let S=y-N.start;return [{...N,text:N.projected?N.text:N.text.slice(S),start:y}]});if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let T=N=>({...N.revisions===void 0?{}:{revisions:N.revisions},...N.fieldAtom===void 0?{}:{fieldAtom:N.fieldAtom}}),R=u?.markRunProperties??l,B=R.length===0?tt:Ne(R,u?.themeFonts),E=t+r,w=u?.contentLeft??t,L=u?.contentRight??E,C=u?.contentOriginX??0,k=[],b={spans:[],start:y,end:y,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},H=false,O=new Map,te=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let S=Wn(e);for(let q of Ln(e,u.inlineDrawingLayout)){if(q.projection.wrap!=="topAndBottom")continue;let U=S.get(q.atomId);U!==void 0&&N.add(U);}return N})(),v=(()=>{let N=new Set;if(!u?.inlineDrawingLayout)return N;let S=Wn(e);for(let q of Ln(e,u.inlineDrawingLayout)){if(q.projection.anchor?.behindDocument||q.projection.wrap==="topAndBottom"||q.projection.wrap==="inline"||q.projection.wrap==="behind"||q.projection.wrap==="inFront")continue;let U=S.get(q.atomId);U!==void 0&&N.add(U);}return N})(),M=[...(u?.pageExclusionZones??[]).filter(N=>N.anchorParagraphId===n).map(N=>N.anchorModelStart),...te,...v],_=(()=>{let N=new Map;if(M.length===0)return N;let S=0,q=0,U=0,W=()=>U===0?m:0,oe=()=>Math.max(1,r-W()),Se=X=>{S=X,q=0,U+=1;};for(let X of x){if(X.inlineDrawing){let ve=wt(X.inlineDrawing.projection).totalWidth;q>0&&q+ve>oe()&&Se(X.start),M.includes(X.start)&&N.set(X.start,S),q+=ve;continue}if(X.text===`
|
|
12
|
+
`||X.text===chunkRUS2YBWU_cjs.Xb){Se(X.end);continue}let Ue=0;for(let ve of xm(X.text)){let We=X.text.slice(Ue,ve);if(We.length===0)continue;let Ce=X.style,en=o.measure(We,Ce),un=X.start+Ue;q>0&&q+en>oe()&&Se(un),M.includes(un)&&N.set(un,S),M.includes(X.start)&&N.set(X.start,S),q+=en,Ue=ve;}}for(let X of M)N.has(X)||N.set(X,S);return N})();for(let N of v){let S=_.get(N);S!==void 0&&O.set(N,S);}let z=N=>{if(N.anchorParagraphId!==n)return true;let S=_.get(N.anchorModelStart);return S!==void 0&&b.start>=S||b.end>=N.anchorModelStart},I=()=>{let N=u?.pageExclusionZones?.filter(U=>!(!z(U)||U.anchorParagraphId===n&&(U.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],S=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&O.size>0?bm({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:w,contentRight:L,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:O,anchorCellBox:u.anchorCellBox}):Object.freeze([]),q=u?.inlineDrawingLayout&&O.size>0?Ki({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:w,contentRight:L,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:O}):Object.freeze([]);return Object.freeze([...N,...S,...q])},A=()=>k.length===0?m:0,F=()=>C+t+A(),Y=()=>Math.max(1,r-A()),K=()=>k.reduce((N,S)=>N+S.height+(S.exclusionSkipBefore??0),0),$=()=>(u?.paragraphStartY??0)+K(),V=N=>{te.has(N)&&O.set(N,K());},Z=()=>{if(H)return;let N=I();if(N.length===0||b.spans.length>0||b.drawings.length>0)return;let S=o.lineMetrics(B),q=Rt($(),b.height>0?b.height:S.height,N);q>.001&&(H=true,b.exclusionSkipBefore=q);},j=()=>$()+(b.exclusionSkipBefore??0)+.001,Q=()=>{let N=I();if(N.length===0)return true;Z();let S=po(j(),N,w,L),q=F()+b.width,U=Vd(q,S);return U?(U.x>q+.001&&(b.width=U.x-F()),true):false},ne=()=>{let N=Y(),S=I();if(S.length===0)return N;if(Z(),!Q())return 0;let q=po(j(),S,w,L),U=F()+b.width,W=gm(U,q);return W<=.001?0:Math.min(N,b.width+W)},ce=()=>Math.max(0,ne()-b.width),pe=()=>{let N=I();if(N.length===0||!N.some(oe=>oe.anchorParagraphId!==n||b.end>oe.anchorModelStart))return false;let q=po(j(),N,w,L),U=F()+b.width,W=false;for(let oe of q){if(!W){U>=oe.start-1e-6&&U<oe.end-1e-6&&(W=true);continue}if(oe.end-oe.start>.001)return b.width=oe.start-F(),true}return false},me=N=>{if(M.length===0||N<Math.min(...M))return;let S=I().filter(Se=>Se.anchorParagraphId===n&&N>=Se.anchorModelStart);if(S.length===0)return;Z();let q=po(j(),S,w,L),U=F()+b.width,W=-1;for(let Se=0;Se<q.length;Se+=1){let X=q[Se];if(U>=X.start-.001&&U<X.end-.001){W=Se;break}}if(W>=0)return;let oe=Vd(U,q);oe&&oe.x>U+.001&&(b.width=oe.x-F());},Oe=N=>{I().filter(q=>q.input.mode==="topAndBottom"&&q.anchorParagraphId===n&&N>=q.anchorModelStart).length!==0&&((b.spans.length>0||b.drawings.length>0)&&_e(),Z());},Ie=(N,S=0)=>S>64?ce()>=N:(Z(),Q()?N<=ce()+.001?true:b.spans.length>0||b.drawings.length>0?pe()&&N<=ce()+.001?true:(_e(),Ie(N,S+1)):pe()?Ie(N,S+1):true:b.spans.length>0||b.drawings.length>0?(_e(),Ie(N,S+1)):true),be=(N,S)=>g.filter(q=>q.start<S&&q.end>N).map(q=>({start:Math.max(q.start,N),end:Math.min(q.end,S)})),Le=-1,on=0,Tn=0,Ke="",Yn=(N,S)=>{let q=o.lineMetrics(N),U=am(q.baseline,b.height||q.height,S);return b.height===0?(b.height=U.lineHeight,b.baseline=U.baseline):(U.lineHeight>b.height&&(b.height=U.lineHeight),b.baseline=Math.max(b.baseline,U.baseline)),{extentTopY:U.extentTopY}},yn=()=>{if(b.drawings.length===0)return;b.spans.length===0&&(b.baseline=Math.max(b.baseline,...b.drawings.map(S=>S.y+S.height)));let N=Ad(b.drawings,b.baseline);b.drawings.splice(0,b.drawings.length,...N),b.baseline=Math.max(b.baseline,...b.drawings.map(S=>S.y+S.height));},En=()=>{if(b.drawings.length===0)return;let N=Ad(b.drawings,b.baseline);b.drawings.splice(0,b.drawings.length,...N);},Nn=N=>{let S=0;for(let q of b.spans)S=Math.max(S,o.lineMetrics(q.style).height);return S>0?S:N},je=()=>{if(b.drawings.length===0)return;let N=Math.max(0,...b.drawings.map(S=>S.y+S.height+S.distB));b.height=Math.max(b.height,N);},An=()=>{yn(),je();},an=()=>{if(!(b.spans.length<2))for(let N=1;N<b.spans.length;N+=1){let S=b.spans[N-1],q=b.spans[N],U=q.box.x-(S.box.x+S.box.width);U<=.001||b.drawings.some(oe=>oe.start>=S.range.end&&oe.start<q.range.start)||(b.spans[N]={...q,wrapAdvanceBefore:U});}},_e=N=>{let S=o.lineMetrics(B),q=b.baseline;b.height===0?(b.height=S.height,b.baseline=S.baseline,q=S.baseline):N?.includeParagraphMark&&(b.height=Math.max(b.height,S.height)),An();let U=b.height,W=p.rule==="auto"&&b.drawings.length>0,oe=W?Nn(S.height):U,Se=rd(p,oe,b.baseline);W||(b.baseline=Se.baseline),b.leading=Math.max(0,b.baseline-q),b.height=Se.height,En(),p.rule!=="exact"&&je(),b.trailingSpacing=b.drawings.length===0&&p.rule!=="exact"?Math.max(0,Se.height-U):0,(()=>{let ve=I();if(ve.length===0)return;let We=Rt($(),b.height,ve);We>.001?b.exclusionSkipBefore=We:delete b.exclusionSkipBefore;})(),an();let Ue=be(b.start,b.end);Ue.length>0&&(b.deletedRanges=Ue),k.push(b),Le=-1,on=0,H=false,b={spans:[],drawings:[],start:b.end,end:b.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},Z();},Cn=false;for(let N=0;N<x.length;N+=1){let S=x[N];if(S.breakKind==="column"){let W=o.lineMetrics(S.style);b.spans.push({range:{paragraphId:n,start:S.start,end:S.end},text:S.text,props:S.props,style:S.style,box:{x:F()+b.width,y:0,width:0,height:W.height},...S.link?{link:S.link}:{},...T(S)}),b.height=Math.max(b.height,W.height),b.baseline=Math.max(b.baseline,W.baseline),b.end=S.end,_e(),k[k.length-1].columnBreakAfter=true,Cn=true;continue}if(S.projected&&!S.inlineDrawing&&S.text==="\uFFFC"){V(S.start),b.end=S.end;continue}if(S.inlineDrawing){V(S.start);let W=wt(S.inlineDrawing.projection),oe=W.totalWidth;if((b.spans.length>0||b.drawings.length>0)&&b.width+oe>ne()&&_e(),!Ie(oe))continue;let{extentTopY:X}=Yn(S.style,W),Ue=F()+b.width;b.drawings.push(cm({input:S.inlineDrawing,paragraphId:n,start:S.start,slotX:Ue,y:X,baseline:b.baseline,contentLeft:w,contentRight:L})),b.width+=oe,b.end=S.end,Le=-1,Ke="";continue}if(S.text===chunkRUS2YBWU_cjs.Xb){let W=o.lineMetrics(S.style);b.spans.push({range:{paragraphId:n,start:S.start,end:S.end},text:chunkRUS2YBWU_cjs.Xb,props:S.props,style:S.style,box:{x:F()+b.width,y:0,width:0,height:W.height},...S.link?{link:S.link}:{},...T(S)}),b.height=Math.max(b.height,W.height),b.baseline=Math.max(b.baseline,W.baseline),b.end=S.end,_e(),k[k.length-1].pageBreakAfter=true,Cn=false;continue}if(S.text===`
|
|
13
|
+
`){let W=o.lineMetrics(S.style);b.spans.push({range:{paragraphId:n,start:S.start,end:S.end},text:`
|
|
14
|
+
`,props:S.props,style:S.style,box:{x:F()+b.width,y:0,width:0,height:W.height},...S.link?{link:S.link}:{},...T(S)}),b.height=Math.max(b.height,W.height),b.baseline=Math.max(b.baseline,W.baseline),b.end=S.end,_e(),Cn=true;continue}Cn=false,Oe(S.start),M.length>0&&S.start>=Math.min(...M)&&me(S.start);let q=o.lineMetrics(S.style),U=0;for(let W of xm(S.text)){let oe=S.text.slice(U,W);if(oe.length===0)continue;let Se=!!S.projected||!!S.positionalTab||S.end-S.start!==S.text.length,X=Se?{paragraphId:n,start:S.start,end:S.end}:{paragraphId:n,start:S.start+U,end:S.start+W};if(oe===" "){(b.spans.length>0||b.drawings.length>0)&&b.width>=ne()&&hw(x,N,W)&&_e();let Ze=F()+b.width,qe=yw(x,N,W,o),Ee=S.positionalTab?bw(S.positionalTab,t,E,u?.marginExtent):null,xe=Ee===null?Zr(s,Ze,E):Ee.positionPt>Ze?Ee:{...Zr(s,Ze,E),...Ee.leader?{leader:Ee.leader}:{}},Ct=pd(xe.alignment,Ze,xe.positionPt,qe.width,qe.decimalOffset);b.spans.push({range:X,text:" ",props:S.props,style:S.style,box:{x:Ze,y:0,width:Ct,height:q.height},...xe.leader?{tabLeader:xe.leader,tabLeaderAdvancePt:o.measure(dd.get(xe.leader)??".",S.style)}:{},...S.link?{link:S.link}:{},...xe.leader?{tabLeader:xe.leader}:{},...Se&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...T(S)}),b.width+=Ct,b.height=Math.max(b.height,q.height),b.baseline=Math.max(b.baseline,q.baseline),b.end=Se?S.end:S.start+W,Ke=" ",U=W;continue}let Ue=S.measureText??oe,ve=o.measure(Gt(Ue,S.style),S.style),We=U>0||Ke===""||/[\s\u00a0]$/.test(Ke)||/^[\s\u00a0]/.test(oe)||Ji.has(Ke[Ke.length-1])&&!Ji.has(oe[0]);if(We&&(Le=b.spans.length,on=b.width,Tn=b.end),me(S.start+U),b.width+ve>ne()+gw&&(b.spans.length>0||b.drawings.length>0))if(We||Le<=0){if(!(pe()&&b.width+ve<=ne()+.001)){if(_e(),!Ie(ve))continue}}else {let Ze=b.spans.splice(Le);b.width=on,b.end=Tn,b.height=0,b.baseline=0;for(let qe of b.spans){let Ee=o.lineMetrics(qe.style);b.height=Math.max(b.height,Ee.height),b.baseline=Math.max(b.baseline,Ee.baseline);}_e();for(let qe of Ze){let Ee=o.lineMetrics(qe.style);b.spans.push({...qe,box:{...qe.box,x:F()+b.width}}),b.width+=qe.box.width,b.height=Math.max(b.height,Ee.height),b.baseline=Math.max(b.baseline,Ee.baseline),b.end=qe.range.end;}Le=0,on=0;}else if(b.spans.length===0&&b.drawings.length===0&&ve>ne()+.001&&!Ie(ve))continue;let Ce=oe,en=S.start+U,un=ve;if(!Se&&S.measureText===void 0)for(;b.spans.length===0&&Ce.length>1&&un>ne();){let Ze=1,qe=Ce.length-1,Ee=1;for(;Ze<=qe;){let Tr=Ze+qe>>1;o.measure(Gt(Ce.slice(0,Tr),S.style),S.style)<=ne()?(Ee=Tr,Ze=Tr+1):qe=Tr-1;}let xe=Ce.slice(0,Ee),Ct=o.measure(Gt(xe,S.style),S.style);b.spans.push({range:{paragraphId:n,start:en,end:en+Ee},text:xe,props:S.props,style:S.style,box:{x:F()+b.width,y:0,width:Ct,height:q.height},...S.link?{link:S.link}:{},...S.noteNav?{noteNav:S.noteNav}:{},...T(S)}),b.width+=Ct,b.height=Math.max(b.height,q.height),b.baseline=Math.max(b.baseline,q.baseline),b.end=en+Ee,_e(),Ce=Ce.slice(Ee),en+=Ee,un=o.measure(Gt(Ce,S.style),S.style);}b.spans.push({range:Se?X:{paragraphId:n,start:en,end:S.start+W},text:Ce,props:S.props,style:S.style,box:{x:F()+b.width,y:0,width:un,height:q.height},...S.link?{link:S.link}:{},...Se&&!S.positionalTab?{projected:true}:{},...S.noteNav?{noteNav:S.noteNav}:{},...T(S)}),b.width+=un,b.height=Math.max(b.height,q.height),b.baseline=Math.max(b.baseline,q.baseline),b.end=Se?S.end:S.start+W,Ke=oe,U=W;}}return (b.spans.length>0||b.drawings.length>0||k.length===0||Cn)&&_e({includeParagraphMark:true}),i!==null&&a&&a.set(i,k.map(xw)),k}var rl=32,Rm=4096,ww=128,Rw=/[\u0000-\u001F\u007F-\u009F]/,Iw={major:null,minor:null};function mr(e){return e.kind!=="textValue"}function Sa(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Pa(e,n){for(let t of e.children)if(mr(t)&&t.localName===n)return t}function go(e){return !(e===void 0||e.length===0||e.length>ww||Rw.test(e)||chunkRUS2YBWU_cjs.S(e))}function vw(e){return e==="1"||e==="true"||e==="on"}function tl(e){return e.map(n=>n.attributes?{n:n.localName,a:n.attributes}:{n:n.localName})}function Ra(e){if(e){for(let n of e.children)if(mr(n)&&(n.kind==="runProperties"||n.localName==="rPr"))return n}}function ol(e){if(e){for(let n of e.children)if(mr(n)&&(n.kind==="paragraphProperties"||n.localName==="pPr"))return n}}var wm=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function ho(e){return e.some(n=>wm.has(n.localName))?e.filter(n=>!wm.has(n.localName)):e}function Tw(e){let n=Pa(e,"docDefaults");if(!n)return {run:[],paragraph:[],paragraphNode:void 0};let t=Pa(n,"rPrDefault"),r=Pa(n,"pPrDefault"),o=Ra(t),a=ol(r);return {run:ho(In(o)),paragraph:ho(In(a)),paragraphNode:a}}function kw(e){let n=Sa(e,"styleId");if(!go(n))return null;let t=Sa(e,"type")??"",r=(()=>{let d=Pa(e,"basedOn");return d?Sa(d,"val"):void 0})(),o=go(r)?r:null,a=ol(e),i=Ra(e),l=new Map,s=0;for(let d of e.children){if(d.kind==="textValue"||d.localName!=="tblStylePr")continue;if(s>=Ow)break;s+=1;let c=Sa(d,"type");c&&!l.has(c)&&l.set(c,d);}return {styleId:n,type:t,basedOn:o,isDefault:vw(Sa(e,"default")),paragraphProperties:ho(In(a)),runProperties:ho(In(i)),paragraphPropertiesNode:a,tablePropertiesNode:Pa(e,"tblPr"),conditionalTableFormats:l}}var Ow=32,wa=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function Im(e,n){if(!n||!go(n))return wa;let t=qd(e,n,"table");if(t.length===0)return wa;let r=[],o=[],a=[],i=[],l=new Map;for(let s of t){s.tablePropertiesNode&&r.push(s.tablePropertiesNode),s.paragraphPropertiesNode&&o.push(s.paragraphPropertiesNode),a.push(...s.paragraphProperties),i.push(...s.runProperties);for(let[d,c]of s.conditionalTableFormats)l.set(d,c);}return {tablePropertyNodes:r,paragraphPropertyNodes:o,paragraphProperties:a,runProperties:i,conditional:l}}var Ud=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function vm(e,n){let t=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of n){let i=e.conditional.get(a);if(!i)continue;let l=ol(i);l&&(t.push(l),r.push(...ho(In(l))));let s=Ra(i);s&&o.push(...ho(In(s)));}return t.length===0&&r.length===0&&o.length===0?Ud:{paragraphProperties:r,paragraphPropertyNodes:t,runProperties:o}}function Cw(e,n=Iw){let t=new Map;if(!e)return {cacheToken:chunkHCSWWXS2_cjs.y({empty:true,theme:n}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,themeFonts:n,styles:t};let r=Tw(e),o=null,a=null,i=0;for(let s of e.children){if(!mr(s)||s.localName!=="style")continue;if(i>=Rm)break;i+=1;let d=kw(s);if(!d)continue;let{isDefault:c,...u}=d;t.set(u.styleId,u),u.type==="paragraph"?c?o=u.styleId:o===u.styleId&&(o=null):u.type==="character"&&(c?a=u.styleId:a===u.styleId&&(a=null));}return {cacheToken:chunkHCSWWXS2_cjs.y({dR:tl(r.run),dP:tl(r.paragraph),defP:o,defC:a,theme:n,styles:[...t.values()].map(s=>({id:s.styleId,type:s.type,basedOn:s.basedOn,p:tl(s.paragraphProperties),r:tl(s.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,themeFonts:n,styles:t}}function Zd(e,n){let t=null;for(let r of e){if(r.localName!==n)continue;let o=r.attributes?.val;t=go(o)?o:null;}return t}function qd(e,n,t){let r=e.styles.get(n);if(!r||r.type!==t)return [];let o=[],a=new Set,i=n,l=0;for(;i!==null&&l<rl&&!(a.has(i)||!go(i));){a.add(i);let s=e.styles.get(i);if(!s)break;o.push(s),i=s.basedOn,l+=1;}return o.reverse()}function yo(e,n,t){let r=In(n),o=Zd(r,"pStyle")??e.defaultParagraphStyleId,a=o?qd(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...t?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],l=[...i,...r],s=[];e.docDefaultsParagraphNode&&s.push(e.docDefaultsParagraphNode),t&&s.push(...t.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&s.push(p.paragraphPropertiesNode);n&&s.push(n);let d=Ra(n&&mr(n)?n:void 0),c=In(d),u=[...e.docDefaultsRun,...t?.runProperties??[],...a.flatMap(p=>p.runProperties)],f=c.length===0?u:[...u,...c];return {paragraphProperties:l,inheritedParagraphProperties:i,paragraphPropertyNodes:s,runProperties:u,markRunProperties:f,styleId:o??null}}function Tm(e){let n;for(let t of e){if(!t||t.kind==="textValue")continue;let r=false;for(let o of t.children)if(mr(o)&&o.localName==="pBdr"){r=true;break}r&&(n=gt(t).bottom);}return n}function It(e,n,t){let r=[];if(t){let a=Zd(n,"rStyle")??t.defaultCharacterStyleId;a&&(r=qd(t,a,"character").flatMap(i=>i.runProperties));}return e.length===0&&r.length===0?n:n.length===0&&r.length===0?e:[...e,...r,...n]}function Ia(e,n,t,r,o,a=false){let i=ol(e),l=t?yo(t,i,o):null,s=l?[...l.paragraphProperties]:In(i),d=In(Ra(i&&mr(i)?i:void 0)),c=l?l.runProperties:[],u=l?l.markRunProperties:d,f=xa(s),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let y of s){if(y.localName!=="ind")continue;let x=ba(y.attributes?.hanging),T=ba(y.attributes?.firstLine);(y.attributes?.hanging!==void 0||y.attributes?.firstLine!==void 0)&&(p=x!==null?Math.max(0,x)/20:0,m=T!==null?T/20:0);}let g=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:m}:{left:f.left,right:f.right,hanging:p,firstLine:m},h=l?ud(l.paragraphPropertyNodes):fd(i);return {props:s,indent:g,available:Math.max(1,n-g.left-g.right),alignment:Pm(s),spacing:nd(s,{inList:r!==void 0,inTableCell:a}),lineSpacing:td(s),contextualSpacing:od(s),styleId:l?l.styleId:Zd(s,"pStyle")??null,bottomBorder:l?Tm(l.paragraphPropertyNodes):gt(i).bottom,borders:l?Jo(l.paragraphPropertyNodes):gt(i),shading:sd(s),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:lr(h),...r?{listItem:r}:{}}}var km=new WeakMap;function Bw(e){let n=km.get(e);if(n!==void 0)return n;let t=o=>o.some(a=>a.localName==="pBdr"),r=t(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(t(o.paragraphProperties)){r=true;break}}return km.set(e,r),r}function Om(e,n){return !n||!Bw(n)?gt(e):Jo(yo(n,e).paragraphPropertyNodes)}var Lw=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Jd(e){let n=e?.val;return n!=="0"&&n!=="false"&&n!=="off"}function Cm(e){let n=false,t=false,r=true;for(let o of e)switch(o.localName){case "keepNext":n=Jd(o.attributes);break;case "keepLines":t=Jd(o.attributes);break;case "widowControl":r=Jd(o.attributes);break;}return !n&&!t&&r?Lw:{keepNext:n,keepLines:t,widowControl:r}}function Bm(e,n,t,r,o){if(e<=n)return e;if(r.keepLines&&!o)return n;if(!r.widowControl||t<2)return e;let a=e;return t-a<2&&(a-=1),a-n===1&&(a-=1),a<n&&(a=n),a===n&&o?e:a}function Lm(e,n,t,r){let o=0,a=t;for(let i=n;i-n<8;i+=1){let l=e[i];if(!l||l.kind!=="paragraph"||!l.spacing||!l.keeps)return null;o+=Math.max(l.spacing.before,a)-a;let s=r(i);if(!l.keeps.keepNext||i+1>=e.length)return o+=s[0]??0,l.keeps.widowControl&&s.length>1&&(o+=s[1]),o;for(let d of s)o+=d;o+=l.spacing.after,a=l.spacing.after;}return null}function Fm(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);o!==void 0&&(t===e&&(t=[...e]),t[r]=`${t[r]}~mk~${o}`);}return t}function Mm(e,n,t){let r=e;for(let o=0;o<e.length;o+=1){if(!n(o))continue;let a=t(o);if(a===null)continue;let i=o>0&&t(o-1)===a,l=o+1<e.length&&t(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${l?1:0}`;}return r}function Em(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);if(o==="")continue;let a=r>0&&n(r-1)===o,i=r+1<e.length&&n(r+1)===o;t===e&&(t=[...e]),t[r]=`${t[r]}~bg~${a?1:0}${i?1:0}`;}return t}function Nm(e,n){let t=e;for(let r=0;r<e.length;r+=1){let o=n(r);o!==""&&(t===e&&(t=[...e]),t[r]=`${t[r]}~toc~${o}`);}return t}function Am(e,n){let t=e,r=0;for(let o=e.length-2;o>=0;o-=1)n(o)&&r<8?(t===e&&(t=[...e]),t[o]=`${e[o]}~kn~${t[o+1]}`,r+=1):r=0;return t}var Fw=oo;function Gn(e,n){if(e.kind!=="textValue"){for(let t of e.children)if(t.kind!=="textValue"&&t.namespaceUri===chunkRUS2YBWU_cjs.ma&&t.localName===n)return t}}function Dm(e){if(e.kind==="textValue")return false;let n=Gn(e,"paragraphProperties")??Gn(e,"pPr");if(!n)return false;let t=Gn(n,"runProperties")??Gn(n,"rPr");return t===void 0?false:Gn(t,"del")!==void 0||Gn(t,"moveFrom")!==void 0}function _m(e,n){if(e.kind==="textValue"||n>Fw)return true;let t=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let l of a.children){if(l.kind==="text"){for(let s of l.children)if(s.kind==="textValue"&&s.value.length>0)return false;continue}if(l.kind!=="runProperties")return false}continue}if(chunkRUS2YBWU_cjs.Lb(a)){if(o>=chunkRUS2YBWU_cjs.Kb)continue;let l=chunkRUS2YBWU_cjs.Nb(a);if(l&&!t(l,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!_m(a,o+1))return false}return true};return t(e.children,n)}function Hm(e,n){if(n==="all-markup"||e.kind==="textValue")return false;let t=Gn(e,"paragraphProperties")??Gn(e,"pPr");if(!t)return false;let r=Gn(t,"runProperties")??Gn(t,"rPr");return r===void 0?false:(n==="proposed"?["del","moveFrom"]:["ins","moveTo"]).some(a=>Gn(r,a)!==void 0)}function Qd(e,n="proposed"){return e.kind!=="paragraph"||n!=="proposed"||!Dm(e)?false:_m(e,0)}function Mw(e){let n=e.root;if(n.localName==="hdr"||n.localName==="ftr")return n;let t=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=t(o);if(a)return a}}};return t(n)}function Ew(e,n){return !(e.kind==="paragraph"&&Qd(e,n))}var $m=new WeakMap;function al(e){return $m.get(e)??null}function Xm(e,n){let t=n.children.filter(a=>zm(a)),r=e.flatMap(a=>a.children.filter(i=>!zm(i))),o={...n,children:[...t,...r]};return $m.set(o,{merged:o,members:e}),o}function zm(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function Nw(e,n){if(n==="all-markup")return e.map(i=>i.block);let t=[],r=[],o=null,a=()=>{t.push(...jm(r)),r=[],o=null;};for(let{block:i,parentKey:l}of e){if(r.length>0&&l!==o&&a(),i.kind!=="paragraph"){a(),t.push(i);continue}let s=Hm(i,n);if((s||r.length>0)&&!Dw(i,n)){a(),t.push(i);continue}if(s){r.push(i),o=l;continue}if(r.length===0){t.push(i);continue}let d=[...r,i];r=[],o=null,t.push(Xm(d,i));}return t.push(...jm(r)),t}function jm(e){if(e.length<2)return e;let n=e[e.length-1];return [Xm(e,n)]}function va(e,n){return Nw(Aw(e),n).filter(r=>Ew(r,n))}function Aw(e){let n=[],t=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){n.push({block:i,parentKey:a});continue}chunkRUS2YBWU_cjs.Lb(i)&&o<chunkRUS2YBWU_cjs.Kb&&t(chunkRUS2YBWU_cjs.Ob(i),o+1,i.id);}};return t(e,0,""),n}var Wm=new WeakMap;function Dw(e,n){let t=Wm.get(e),r=t?.get(n);if(r!==void 0)return r;let o=_w(e,n);return t?t.set(n,o):Wm.set(e,new Map([[n,o]])),o}function _w(e,n){if(!Hw(e))return false;let t=zi(e,[],void 0,void 0,void 0,void 0,n),r=0;for(let o of t)r=Math.max(r,o.end);return r<=chunkRUS2YBWU_cjs.Sd(e).length}function Hw(e){let n=0,t=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkRUS2YBWU_cjs.ma&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?n+=1:a==="end"&&(n-=1,n<0&&(t=true));}for(let a of o.children)r(a);}};return r(e),n===0&&!t}var Gm=chunkRUS2YBWU_cjs.Ie(16);function vt(e,n="all-markup"){let t=Gm.get(e),r=t?.[n];if(r)return r;let o=Mw(e),a=o?va(o.children,n):[];return t?t[n]=a:Gm.set(e,{[n]:a}),a}function il(e,n="all-markup"){return e.kind!=="note"?[]:va(e.children,n)}function Vm(e,n="all-markup"){return e.kind==="textValue"?[]:va(e.children,n)}var zw={state:"none"},Ym=(e,n)=>n.state==="omitted"?e:n;function ll(e,n,t={}){return e.state==="omitted"?n:e.state==="none"?zw:e}function ec(e,n){let t=Ym;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right),insideH:t(e.insideH,n.insideH),insideV:t(e.insideV,n.insideV)}}function nc(e,n){let t=Ym;return {top:t(e.top,n.top),left:t(e.left,n.left),bottom:t(e.bottom,n.bottom),right:t(e.right,n.right)}}function sl(e=1048576){let n=e|0;return {intervalsRemaining:n>0?n:0}}function Km(e,n,t,r){let o=Math.max(0,Math.min(n|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=jw(e[i],o,t,r);}return a}function jw(e,n,t,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(n,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,s=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=s[s.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?s[s.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(s.push({start:l,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),t&&(t.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),l=c.x;}return s}function Ww(e,n){let t=0,r=e.length;for(;t<r;){let o=t+r>>1;e[o].start<=n?t=o+1:r=o;}return t}function tc(e,n,t,r){r&&(r.columnLookups+=1);let o=e[n];if(!o||t<0)return;let a=Ww(o,t)-1;if(a<0)return;let i=o[a];if(!(t>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Jm=256,Xe={state:"omitted"},ml={state:"none"},Qm={top:Xe,left:Xe,bottom:Xe,right:Xe,insideH:Xe,insideV:Xe},eg={top:Xe,left:Xe,bottom:Xe,right:Xe},Um={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},$w=new Map([["single","single"],["thick","thick"],["double","double"],["dotted","dotted"],["dashed","dashed"],["dashSmallGap","dashed"],["dotDash","dashed"],["dotDotDash","dashed"],["triple","triple"],["wave","single"],["hairline","single"],["inset","single"],["outset","single"]]);function bo(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function rc(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Xw(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function Vw(e){if(e===null)return .5;let n=e/8;return !Number.isFinite(n)||n<=0?.5:n>qo?qo:n}function gl(e){if(!e)return Xe;let n=rc(e,"val");if(!n)return Xe;if(n==="nil"||n==="none")return ml;let t=$w.get(n)??"single",r=rc(e,"color"),o=r===void 0||r==="auto"?null:xi(r)??null;return {state:"edge",style:t,color:o,widthPt:Vw(Xw(rc(e,"sz")))}}function ng(e,n){if(!e)return eg;let t={top:Xe,left:Xe,bottom:Xe,right:Xe};for(let r of n){let o=r==="left"?"start":r==="right"?"end":void 0,a=bo(e,r)??(o?bo(e,o):void 0);t[r]=gl(a);}return t}function hl(e){let n=e&&bo(e,"tblBorders");return n?{...ng(n,["top","left","bottom","right"]),insideH:gl(bo(n,"insideH")),insideV:gl(bo(n,"insideV"))}:Qm}function yl(e){return ng(e&&bo(e,"tcBorders"),["top","left","bottom","right"])}function oc(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function Zm(e){if(!e)return 0;let n=Number.parseInt(e.slice(0,2),16),t=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return n+t+r}function tg(e,n,t=true){if(e.state==="omitted")return n.state==="omitted"?Xe:n;if(n.state==="omitted")return e;if(e.state==="none")return n.state==="none"?ml:n;if(n.state==="none")return e;let r=oc(e),o=oc(n);if(r>o)return e;if(o>r)return n;let a=Um[e.style],i=Um[n.style];if(a!==i)return a>i?e:n;let l=Zm(e.color),s=Zm(n.color);return l<s?e:s<l?n:t?e:n}function dl(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function Yw(e,n,t){return t?n==="top"||n==="bottom"?e.insideH:e.insideV:e[n]}function Kw(e,n){return e===void 0&&n===void 0?true:!e||!n?false:e.style===n.style&&e.color===n.color&&e.widthPt===n.widthPt}function cl(e){if(e.length===0)return [];let n=[],t={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];t.gridEnd===o.gridStart&&Kw(t.edge,o.edge)?t={...t,gridEnd:o.gridEnd}:(n.push(t),t={...o});}return n.push(t),n}function ul(e,n,t){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==n||o.gridEnd!==t))return o.edge}function qm(e,n,t){let r=0,o=Math.min(t,e.length);for(let a=Math.max(0,n);a<o;a+=1)r+=e[a];return r}function Uw(e){if(!(!e||e.style!=="double"))return Xr(e.widthPt)}function fl(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function Zw(e,n){return n?e==="outer"?n.insetPt:n.insetPt+n.strokePt+n.gapPt:0}function qw(e,n,t){return t?e==="outer"?n-t.insetPt:n-t.insetPt-t.strokePt-t.gapPt:n}function Jw(e,n){return n?e==="outer"?n.insetPt+n.strokePt:n.insetPt+n.extentPt:0}function Qw(e,n,t){return t?e==="outer"?n-t.insetPt-t.strokePt:n-t.insetPt-t.extentPt:n}function Vt(e,n){e.length>=Jm||!(n.width>0)||!(n.height>0)||e.push(n);}function e0(e,n,t,r,o,a,i,l,s,d,c){let u=Xr(t.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,h=Math.abs(r)<1e-6,y=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,T=Math.abs(o-i)<1e-6;if(n==="top"||n==="bottom"){let E=n==="top"?g:i-g-f,w=n==="top"?g+f+p:i-g-m;for(let L of ["outer","inner"]){let C=r,k=o;h&&(C=Zw(L,l)),y&&(k=qw(L,a,s)),Vt(e,{side:n,role:L,color:t.color,cssStyle:"solid",x:C,y:L==="outer"?E:w,width:k-C,height:f});}return}let R=n==="left"?g:a-g-f,B=n==="left"?g+f+p:a-g-m;for(let E of ["outer","inner"]){let w=r,L=o;x&&(w=Jw(E,d)),T&&(L=Qw(E,i,c)),Vt(e,{side:n,role:E,color:t.color,cssStyle:"solid",x:E==="outer"?R:B,y:w,width:f,height:L-w});}}function n0(e,n,t,r,o,a,i){let l=t.widthPt,s=Math.max(1,l),d=l*3+s*2;if(n==="top"||n==="bottom"){let u=n==="top"?0:i-d;for(let f=0;f<3;f+=1)Vt(e,{side:n,role:f===0?"outer":f===1?"middle":"inner",color:t.color,cssStyle:"solid",x:r,y:u+f*(l+s),width:o-r,height:l});return}let c=n==="left"?0:a-d;for(let u=0;u<3;u+=1)Vt(e,{side:n,role:u===0?"outer":u===1?"middle":"inner",color:t.color,cssStyle:"solid",x:c+u*(l+s),y:r,width:l,height:o-r});}function t0(e,n,t,r,o,a,i){let l=t.widthPt;n==="top"?Vt(e,{side:n,role:"edge",color:t.color,cssStyle:fl(t.style),x:r,y:0,width:o-r,height:l}):n==="bottom"?Vt(e,{side:n,role:"edge",color:t.color,cssStyle:fl(t.style),x:r,y:i-l,width:o-r,height:l}):n==="left"?Vt(e,{side:n,role:"edge",color:t.color,cssStyle:fl(t.style),x:0,y:r,width:l,height:o-r}):Vt(e,{side:n,role:"edge",color:t.color,cssStyle:fl(t.style),x:a-l,y:r,width:l,height:o-r});}function pl(e,n){if(e.length===0)return;let t=e[0];return Uw(t.edge)}function r0(e,n,t,r,o,a,i,l,s,d){let c=(H,O,te)=>{let v=[];for(let M of O){if(!M.edge)continue;let _,z;te?(_=qm(i,l,M.gridStart),z=qm(i,l,M.gridEnd)):(_=s[M.gridStart-d]??0,z=s[M.gridEnd-d]??a),v.push({side:H,gridStart:M.gridStart,gridEnd:M.gridEnd,startPt:_,endPt:z,edge:M.edge});}return v},u=c("top",e,true),f=c("left",n,false),p=c("bottom",t,true),m=c("right",r,false),g=[...u,...m,...p,...f],h=pl(n),y=pl(r),x=pl(e),T=pl(t),R=(H,O)=>H.length===1&&Math.abs(H[0].startPt)<1e-6&&Math.abs(H[0].endPt-O)<1e-6,B=R(u,o),E=R(f,a),w=R(p,o),L=R(m,a),C=[],k=(H,O,te)=>{for(let v of O){let{edge:M,startPt:_,endPt:z}=v;M.style==="double"?e0(C,H,M,_,z,o,a,H==="top"||H==="bottom"?h:void 0,H==="top"||H==="bottom"?y:void 0,H==="left"||H==="right"?x:void 0,H==="left"||H==="right"?T:void 0):M.style==="triple"?n0(C,H,M,_,z,o,a):te||t0(C,H,M,_,z,o,a);}};k("top",u,B),k("left",f,E),k("bottom",p,w),k("right",m,L);let b={};return B&&u[0]&&(b.top=u[0].edge),E&&f[0]&&(b.left=f[0].edge),w&&p[0]&&(b.bottom=p[0].edge),L&&m[0]&&(b.right=m[0].edge),g.length>0&&(b.edgeSegments=g),C.length>0&&(b.strokes=C),b}function ac(e,n,t,r,o,a){let i=e.length,l=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let s=Km(e,t,o,a),d=(u,f,p)=>ll(u.borders[f],Yw(n,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?ml:tg(p,m);for(let u=0;u<i;u+=1){let f=e[u];for(let p=0;p<f.length;p+=1){let m=f[p];if(m.vMergeContinue){l[u][p]={};continue}let g=m.mergeRowSpan??1,h=u+g-1,y=u===0,x=h===i-1,T=m.gridColumn===0,R=m.gridColumn+m.gridSpan-1,B=R>=t-1,E=[];if(y)for(let _=m.gridColumn;_<=R;_+=1)E.push({gridStart:_,gridEnd:_+1,edge:dl(d(m,"top",false))});let w=[];if(T)for(let _=u;_<=h;_+=1)w.push({gridStart:_,gridEnd:_+1,edge:dl(d(m,"left",false))});let L=[];for(let _=m.gridColumn;_<=R;_+=1){let z;if(x)z=d(m,"bottom",false);else {let I=tc(s,h+1,_,o);I?.cell.vMergeContinue?z=Xe:z=c(m.borders.bottom,I?I.cell.borders.top:Xe,d(m,"bottom",true),I?d(I.cell,"top",true):n.insideH);}L.push({gridStart:_,gridEnd:_+1,edge:dl(z)});}let C=[];for(let _=u;_<=h;_+=1){let z;if(B)z=d(m,"right",false);else {let I=tc(s,_,R+1,o);z=c(m.borders.right,I?I.cell.borders.left:Xe,d(m,"right",true),I?d(I.cell,"left",true):n.insideV);}C.push({gridStart:_,gridEnd:_+1,edge:dl(z)});}let k=cl(E),b=cl(w),H=cl(L),O=cl(C);if(!r){let _={},z=ul(k,m.gridColumn,R+1),I=ul(b,u,h+1),A=ul(H,m.gridColumn,R+1),F=ul(O,u,h+1);z&&(_.top=z),I&&(_.left=I),A&&(_.bottom=A),F&&(_.right=F);let Y=[],K=($,V)=>{for(let Z of V)Z.edge&&Y.push({side:$,gridStart:Z.gridStart,gridEnd:Z.gridEnd,startPt:Z.gridStart,endPt:Z.gridEnd,edge:Z.edge});};K("top",k),K("left",b),K("bottom",H),K("right",O),Y.length>0&&(_.edgeSegments=Y),l[u][p]=_;continue}let te=r.cellBoxes[u][p],v=[0],M=0;for(let _=u;_<=h;_+=1){let z=r.rowBands[_];M+=z.height,v.push(M);}v.length>1&&(v[v.length-1]=te.height),l[u][p]=r0(k,b,H,O,te.width,te.height,r.columnWidthsPt,m.gridColumn,v,u);}}return l}function gr(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var ic=Qm,lc=eg;var og=31680/20,$n=Object.freeze({type:"auto",value:0}),o0=100,a0=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function i0(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function dc(e,n){return e.attributes.find(t=>t.localName===n)?.value}function ag(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let n=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(n){let r=Number(n[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let t=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(t){let r=Number(t[1])*a0[t[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function hr(e){if(!e)return $n;let n=dc(e,"type");if(n!==void 0&&n!=="pct"&&n!=="dxa")return n==="nil"?{type:"nil",value:0}:$n;let t=dc(e,"w");if(t===void 0)return $n;let r=ag(t);if(!r)return $n;let o=/^\d{1,9}$/.test(t);if(r.kind==="percent"||o&&n==="pct"){let a=r.kind==="percent"?r.percent:Number(t)/50;return !Number.isFinite(a)||a<=0?$n:{type:"pct",value:Math.min(a,o0)}}return !Number.isFinite(r.pt)||r.pt<=0?$n:{type:"dxa",value:Math.min(r.pt,og)}}function Ta(e,n){if(!e)return;let t=hr(e);if(t.type==="dxa")return Math.min(t.value,n)}function ig(e){let n=i0(e,"tblGrid");if(!n)return [];let t=[];for(let r of n.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(t.push(r),t.length>=1024))break;return t}function l0(e){let n=[];for(let t of e){let r=dc(t,"w"),o=r===void 0?null:ag(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){n.push(void 0);continue}n.push(o.pt>og?void 0:o.pt);}return n}var sc=1,rg=.001;function s0(e,n,t,r){let o=[];for(let i=0;i<t;i+=1)o.push(e[i]);let a=n.filter(i=>i.start<t&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,l)=>i.span-l.span);for(let i of a){let l=Math.min(i.start+i.span,t);if(l<=i.start)continue;let s=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(s)||s<=0)continue;if(l-i.start===1){let f=o[i.start];o[i.start]=f===void 0?s:Math.max(f,s);continue}let d=[],c=s;for(let f=i.start;f<l;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function lg(e){let{columnCount:n,tableWidth:t}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:sc,a=t.type==="dxa"?t.value:t.type==="pct"?o*t.value/100:0,i=l0(e.gridCols),l=s0(i,e.claims,n,a),s=0,d=0;for(let y of l)y===void 0?d+=1:s+=y;let c=[];if(d>0){let y=s>0?s/Math.max(n-d,1):o/n,x=Math.max(o-s,0)/d,T=Math.max(Math.min(x,y),sc);for(let R of l)c.push(R??T);}else for(let y of l)c.push(y);let u=c.reduce((y,x)=>y+x,0);if(!Number.isFinite(u)||u<=0)return new Array(n).fill(o/n);let f=n*sc,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=t.type==="pct"&&a>0;if(u<=m+rg&&!g||Math.abs(u-m)<=rg)return c;let h=m/u;return c.map(y=>y*h)}var Sl=16,Oa=3,xl=31680/20,Pg=31680/20,sg=1023,d0=256,dg=31680/20;function cg(e){let n=e&&ye(e,"jc");if(!n)return;let t=De(n,"val");if(t==="center")return "center";if(t==="right"||t==="end")return "right";if(t==="left"||t==="start")return "left"}var ug=31680/20,wg={top:Oa,right:Oa,bottom:Oa,left:Oa};function ye(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function De(e,n){return e.attributes.find(t=>t.localName===n)?.value}function c0(e){let n=e&&ye(e,"gridSpan"),t=n&&De(n,"val");if(!t||!/^\d{1,7}$/.test(t))return 1;let r=Number(t);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function fg(e,n){let t=e&&ye(e,n),r=t&&De(t,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function u0(e){let n=e&&ye(e,"vMerge");return n?De(n,"val")!=="restart":false}function f0(e){let n=e&&ye(e,"vAlign"),t=n&&De(n,"val");return t==="center"?"center":t==="bottom"?"bottom":"top"}function pg(e){return ld(e&&ye(e,"shd"))}function mg(e,n){let t=e&&ye(e,n);if(!t)return false;let r=De(t,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var ka=Object.freeze({rule:"auto"});function p0(e){let n=e&&ye(e,"trHeight");if(!n)return ka;let t=De(n,"hRule"),r=t==="auto"||t==="exact"||t==="atLeast"?t:void 0;if(r==="auto")return ka;let o=De(n,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return ka;let a=Number(o);if(!Number.isFinite(a)||a<=0)return ka;let i=Math.min(a/20,Pg);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:ka}function bl(e){if(!e)return;let n=De(e,"w");if(n===void 0||!/^\d{1,9}$/.test(n))return;let t=Number(n);if(!Number.isFinite(t)||t<0)return;let r=t/20;return r>xl?xl:r}function cc(e){if(!e)return {};let n=bl(ye(e,"top")),t=bl(ye(e,"left")??ye(e,"start")),r=bl(ye(e,"bottom")),o=bl(ye(e,"right")??ye(e,"end"));return {...n===void 0?{}:{top:n},...t===void 0?{}:{left:t},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function uc(e,n){return {top:n.top??e.top,right:n.right??e.right,bottom:n.bottom??e.bottom,left:n.left??e.left}}function Ca(e,n){let t=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=n-t;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function gg(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function hg(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let n=Number(e);if(!Number.isFinite(n))return;let t=n/20;return Math.max(-ug,Math.min(ug,t))}function yg(e){let n=e&&ye(e,"tblpPr");if(!n)return;let t=De(n,"tblpXSpec"),r=t==="left"||t==="center"||t==="right"||t==="inside"||t==="outside"?t:void 0,o=De(n,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:gg(De(n,"horzAnchor"))??"text",vertAnchor:gg(De(n,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:hg(De(n,"tblpX"))??0,...a?{ySpec:a}:{},yPt:hg(De(n,"tblpY"))??0}}function Rg(e,n,t){let r=t[e.horzAnchor],o=r.width-n,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=t.page.left+t.page.width;return Math.max(t.page.left,Math.min(a,i))}var m0=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function Tt(e,n){let t=De(e,n);if(t!==void 0)return t!=="0"&&t!=="false"&&t!=="off"}function g0(e){let n=e&&ye(e,"tblLook");if(!n)return m0;let t=De(n,"val"),r=t&&/^[0-9A-Fa-f]{1,4}$/.test(t)?Number.parseInt(t,16):0;return {firstRow:Tt(n,"firstRow")??(r&32)!==0,lastRow:Tt(n,"lastRow")??(r&64)!==0,firstColumn:Tt(n,"firstColumn")??(r&128)!==0,lastColumn:Tt(n,"lastColumn")??(r&256)!==0,rowBanding:Tt(n,"noHBand")===void 0?(r&512)===0:!Tt(n,"noHBand"),columnBanding:Tt(n,"noVBand")===void 0?(r&1024)===0:!Tt(n,"noVBand")}}var fc=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],bg=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function xg(e,n){let t=e&&ye(e,"cnfStyle");if(!t)return;let r=De(t,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<fc.length;o+=1)r[o]==="1"&&n.add(fc[o]);for(let o=0;o<bg.length;o+=1)Tt(t,bg[o])===true&&n.add(fc[o]);}var h0=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function y0(e){let n=new Set;xg(e.rowProperties,n),xg(e.cellProperties,n);let{look:t,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,s=n.has("firstRow")||t.firstRow&&r===0,d=n.has("lastRow")||t.lastRow&&r===o-1,c=n.has("firstCol")||t.firstColumn&&a===0,u=n.has("lastCol")||t.lastColumn&&a+i>=l;if(!(n.has("band1Vert")||n.has("band2Vert"))&&t.columnBanding&&!c&&!u){let g=a-(t.firstColumn?1:0);n.add(g%2===0?"band1Vert":"band2Vert");}if(!(n.has("band1Horz")||n.has("band2Horz"))&&t.rowBanding&&!s&&!d){let g=r-(t.firstRow?1:0);n.add(g%2===0?"band1Horz":"band2Horz");}c&&n.add("firstCol"),u&&n.add("lastCol"),s&&n.add("firstRow"),d&&n.add("lastRow"),s&&c&&n.add("nwCell"),s&&u&&n.add("neCell"),d&&c&&n.add("swCell"),d&&u&&n.add("seCell");let m=[];for(let g of h0)n.has(g)&&m.push(g);return m}var Sg=new WeakMap;function xo(e,n,t,r,o="all-markup"){let a=Sg.get(e);if(a&&a.contentWidthPt===n&&a.depth===t&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=b0(e,n,t,r,o);return Sg.set(e,{contentWidthPt:n,depth:t,styleCascade:r,displayMode:o,structure:i}),i}function b0(e,n,t,r,o){if(t>=Sl||e.kind!=="table")return null;let a=ye(e,"tblPr"),i=a&&ye(a,"tblStyle")?De(ye(a,"tblStyle"),"val"):void 0,l=r?Im(r,i):wa,s=g0(a),d=wg,c=ic;for(let A of l.tablePropertyNodes)d=uc(d,cc(ye(A,"tblCellMar"))),c=ec(c,hl(A));let u=uc(d,cc(a&&ye(a,"tblCellMar"))),f=ec(c,a?hl(a):ic),p=new Map,m=A=>{if(l===wa)return Ud;let F=A.join("|"),Y=p.get(F);if(Y)return Y;let K=vm(l,A);return p.size<d0&&p.set(F,K),K},g=[],h=[],y=1;for(let A of chunkRUS2YBWU_cjs.me(e.children)){if(A.kind!=="tableRow")continue;let F=ye(A,"trPr"),Y=[],K=[],$=[],V=Math.min(fg(F,"gridBefore"),sg);V>0&&h.push({start:0,span:V,preferred:hr(F&&ye(F,"wBefore"))});let Z=V,j=chunkRUS2YBWU_cjs.me(A.children);for(let ce of j){if(ce.kind!=="tableCell")continue;let pe=ye(ce,"tcPr"),me=Math.min(Z,sg),Oe=Math.min(c0(pe),1024-me),Ie=hr(pe&&ye(pe,"tcW"));Y.push(me),K.push(Oe),$.push(Ie),h.push({start:me,span:Oe,preferred:Ie}),Z=me+Oe;}let Q=fg(F,"gridAfter"),ne=Math.min(Z+Q,1024);Q>0&&Z<1024&&h.push({start:Z,span:Math.min(Q,1024-Z),preferred:hr(F&&ye(F,"wAfter"))}),ne>y&&(y=ne),g.push({node:A,cells:j,properties:F,starts:Y,spans:K,preferred:$,gridColumns:ne});}let x=ig(e),T=x.length>0?x.length:y,R=g.length,B=[];for(let A=0;A<g.length;A+=1){let F=g[A],Y=F.node,K=F.properties,$=0,V=[];for(let pe of F.cells){if(pe.kind!=="tableCell")continue;let me=ye(pe,"tcPr"),Oe=F.starts[$],Ie=F.spans[$],be=F.preferred[$]??$n,Le=y0({look:s,rowIndex:A,rowCount:R,gridColumn:Oe,gridSpan:Ie,columnCount:T,rowProperties:K,cellProperties:me});$+=1;let on,Tn=lc;for(let En of Le){let Nn=l.conditional.get(En);if(!Nn)continue;let je=ye(Nn,"tcPr");on=pg(je)??on,Tn=nc(Tn,yl(je));}let Ke=pg(me)??on,Yn=uc(u,cc(me&&ye(me,"tcMar"))),yn=va(pe.children,o);V.push({id:pe.id,gridSpan:Ie,gridColumn:Oe,...x[Oe]?.id?{gridColumnId:x[Oe].id}:{},vMergeContinue:u0(me),vAlign:f0(me),margins:Yn,borders:nc(Tn,me?yl(me):lc),...Ke===void 0?{}:{shading:Ke},preferredWidth:be,styleFormatting:m(Le),blocks:yn});}let Z=K?ye(K,"ins")??ye(K,"del"):void 0,j=Z?Z.localName==="ins"?"insert":"delete":void 0,Q=Z&&De(Z,"id"),ne=Z&&De(Z,"author"),ce=Z&&De(Z,"date");B.push({id:Y.id,...j?{revisionKind:j}:{},...Q!==void 0?{revisionId:Q}:{},...ne!==void 0?{revisionAuthor:ne}:{},...ce!==void 0?{revisionDate:ce}:{},isHeader:mg(K,"tblHeader"),cantSplit:mg(K,"cantSplit"),height:p0(K),cells:V});}let E=$n,w,L,C,k,b;for(let A of l.tablePropertyNodes){let F=ye(A,"tblW");F&&(E=hr(F));let Y=ye(A,"tblLayout");Y&&(w=De(Y,"type")==="fixed"),L=Ta(ye(A,"tblInd"),dg)??L,C=cg(A)??C,k=Ta(ye(A,"tblCellSpacing"),xl)??k,b=yg(A)??b;}let H=a&&ye(a,"tblW"),O=H?hr(H):E,te=a&&ye(a,"tblLayout"),v=te?De(te,"type")==="fixed":w??false,M=Ta(a&&ye(a,"tblInd"),dg)??L??0,_=cg(a)??C??"left",z=t===0?yg(a)??b:void 0,I=Ta(a&&ye(a,"tblCellSpacing"),xl)??k??0;return {columnWidthsPt:lg({gridCols:x,claims:h,columnCount:T,contentWidthPt:n,tableWidth:O,layoutFixed:v}),rows:B,tableWidth:O,layoutFixed:v,indentPt:M,alignment:_,...z?{float:z}:{},cellSpacingPt:I,tableBorders:f,defaultMargins:u}}function Pl(e){let n=[],t=0;for(let r of e.members){let o=chunkRUS2YBWU_cjs.Sd(r).length;n.push({paragraphId:r.id,base:t,length:o}),t+=o;}return {members:n,total:t}}function pc(e,n){let t;for(let r of e.members){if(r.base>n)break;(t===void 0||r.length>0||r.base>t.base)&&(t=r);}return t??e.members[e.members.length-1]}function Ig(e,n){let t=pc(n,e.start);if(!t)return e;let r=e.end-t.base;return {paragraphId:t.paragraphId,start:e.start-t.base,end:Math.min(r,t.length)}}function x0(e,n){return {...e,range:Ig(e.range,n)}}function wl(e,n){return e.map(t=>{let r=t.spans.map(u=>x0(u,n)),o=r[0],a=t.drawings?.map(u=>{let f=pc(n,u.start);return f?{...u,paragraphId:f.paragraphId,start:u.start-f.base}:u}),i=o?r.filter(u=>u.range.paragraphId===o.range.paragraphId):[],l=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],s=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...l.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...l.map(u=>u.start+1))}:Ig(t.range,n),d=a,c=t.deletedRanges?.map(u=>({deleted:u,member:pc(n,u.start)})).filter(({member:u})=>u?.paragraphId===s.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...t,range:s,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}var gc=512,Tg=9,Xn=31680/20,S0=8,P0=128;function Ba(e,n){return e.kind!=="textValue"&&e.namespaceUri===chunkRUS2YBWU_cjs.ma&&e.localName===n}function Ve(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function vn(e,n){for(let t of e.children)if(Ba(t,n))return t}function kt(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function w0(e){let n=e/20;return !Number.isFinite(n)||n<=0?0:n>Xn?Xn:n}function mc(e){let n=e/20;return Number.isFinite(n)?n>Xn?Xn:n<-Xn?-Xn:n:0}function R0(e){let n={left:0,right:0,hanging:0,firstLine:0};if(!e)return n;let t=vn(e,"ind");if(!t)return n;let r=kt(Ve(t,"left")??Ve(t,"start"),true),o=kt(Ve(t,"right")??Ve(t,"end"),true),a=kt(Ve(t,"hanging")),i=kt(Ve(t,"firstLine"),true);return {left:r===null?0:mc(r),right:o===null?0:mc(o),hanging:a===null?0:w0(a),firstLine:i===null?0:mc(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function I0(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function v0(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function T0(e,n){let t=vn(e,n);if(!t)return false;let r=Ve(t,"val");return r!=="0"&&r!=="false"&&r!=="off"}function vg(e,n){let t=vn(e,n);if(!t)return;let r=Ve(t,"val");if(!(r===void 0||r.length===0||r.length>P0))return r}function k0(e,n){for(let t of e){if(t.localName!==n)continue;let r=t.attributes?.val;return !(r==="0"||r==="false")}return false}function kg(e){let n=kt(Ve(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=vn(e,"start"),r=1;if(t){let y=kt(Ve(t,"val"));y!==null&&y>=0&&(r=Math.min(y,9999));}let o=vn(e,"numFmt"),a=(o?Ve(o,"val"):void 0)??"decimal",i=vn(e,"lvlText"),l=i?Ve(i,"val")??"":"",s=vn(e,"lvlJc"),d=v0(s?Ve(s,"val"):void 0),c=vn(e,"suff"),u=I0(c?Ve(c,"val"):void 0),f=vn(e,"lvlRestart"),p;if(f){let y=kt(Ve(f,"val"));y!==null&&y>=0&&y<=9&&(p=y);}let m=vn(e,"pPr"),g=vn(e,"rPr"),h=g?eo(g):[];return {ilvl:n,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:R0(m),...p!==void 0?{lvlRestart:p}:{},isLgl:T0(e,"isLgl"),runProperties:h,vanish:k0(h,"vanish")}}function O0(e){let n=Ve(e,"abstractNumId");if(n===void 0||n.length===0||n.length>64)return null;let t=new Map;for(let a of e.children){if(!Ba(a,"lvl"))continue;if(t.size>=9)break;let i=kg(a);i&&!t.has(i.ilvl)&&t.set(i.ilvl,i);}let r=vg(e,"numStyleLink"),o=vg(e,"styleLink");return {abstractNumId:n,levels:t,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function C0(e){let n=kt(Ve(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=vn(e,"startOverride"),r;if(t){let i=kt(Ve(t,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=vn(e,"lvl"),a=o?kg(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:n,override:{}}:{ilvl:n,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function B0(e){let n=Ve(e,"numId");if(n===void 0||n.length===0||n.length>64)return null;let t=vn(e,"abstractNumId"),r=t?Ve(t,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Ba(a,"lvlOverride"))continue;if(o.size>=Tg)break;let i=C0(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:n,abstractNumId:r,overrides:o}}function L0(e){let n=new Map,t=new Map;if(!e)return {abstractNums:n,nums:t};let r=0,o=0;for(let a of e.children){if(Ba(a,"abstractNum")){if(r>=gc)continue;r+=1;let i=O0(a);i&&!n.has(i.abstractNumId)&&n.set(i.abstractNumId,i);continue}if(Ba(a,"num")){if(o>=gc)continue;o+=1;let i=B0(a);i&&!t.has(i.numId)&&t.set(i.numId,i);}}return {abstractNums:n,nums:t}}function F0(e,n,t){let r=new Set([n.abstractNumId]),o=n;for(let a=0;a<S0;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=t(i);if(l===void 0)return null;let s=e.nums.get(l);if(!s)return null;let d=e.abstractNums.get(s.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function Og(e,n){let t=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=F0(e,a,n);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),t=true);}return t?{abstractNums:r,nums:e.nums}:e}function So(e,n,t){if(t<0||t>8)return null;let r=e.nums.get(n);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(t),i=a?.level??o.levels.get(t);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var hc=Object.freeze({abstractNums:new Map,nums:new Map});function M0(e,n){let t=e.nums.get(n),r=[];for(let o=0;o<=8;o+=1){let a=So(e,n,o);if(!a){r.push(1);continue}let i=t?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function E0(e,n,t){let r=[];for(let o=0;o<=8;o+=1){let a=So(e,n,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...t]}}function N0(e,n){if(n===0)return null;if(n===void 0)return e-1;let t=n-1;return t>=e?null:t}function yc(e){let n=new Map,t=new Map,r=new Map,o=a=>{let i=n.get(a);i||(i=[0,0,0,0,0,0,0,0,0],n.set(a,i));let l=t.get(a);l||(l=[false,false,false,false,false,false,false,false,false],t.set(a,l));let s=r.get(a);return s||(s=M0(e,a),r.set(a,s)),{counters:i,initialized:l,starts:s}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let l=So(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=E0(e,a,f);for(let R=i+1;R<=8;R+=1){let B=So(e,a,R);if(!B)continue;let E=N0(R,B.level.lvlRestart);E!==null&&i<=E&&(u[R]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),h=u.slice(),y=g.map((R,B)=>h[B]?R:f[B]??1),x=d.isLgl?p.map(R=>R==="bullet"||R==="none"?R:"decimal"):p,T=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:wd(d.lvlText,y,x);return {abstractNumId:s,numId:a,ilvl:i,level:d,counters:g,markerText:T}}}}function xc(e){return e.kind!=="textValue"}function Cg(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function Rl(e,n){for(let t of e.children)if(xc(t)&&t.localName===n)return t}function Sc(e){let n=null;for(let t of e){if(!xc(t))continue;let r=Rl(t,"numPr");if(!r)continue;let o=Rl(r,"ilvl"),a=Rl(r,"numId"),i=a?Cg(a,"val"):void 0,l=o?Cg(o,"val"):"0";if(!i||i==="0"){n=null;continue}if(i.length>64){n=null;continue}let s=/^\d{1,2}$/.test(l??"")?Number(l):0;if(s<0||s>8){n=null;continue}n={numId:i,ilvl:s};}return n}function A0(e,n){let t=new Set,r=e.styles.get(n);for(let o=0;r!==void 0&&o<rl;o+=1){if(t.has(r.styleId))return;t.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?Sc([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var bc=new WeakMap;function Pc(e,n){if(!n)return e;let t=bc.get(e);if(t&&t.styleCascade===n)return t.linked;let r=Og(e,a=>A0(n,a)),o={styleCascade:n,linked:r};return bc.set(e,o),bc.set(r,o),r}function Bg(e){return Number.isFinite(e)?e>Xn?Xn:e<-Xn?-Xn:e:0}function Lg(e){let n=null;for(let t of e){if(t.localName!=="ind")continue;let r=t.attributes?.hanging,o=t.attributes?.firstLine;r===void 0&&o===void 0||(n={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?Bg(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?Bg(Number(o)/20):0});}return n}function Fg(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.start!==void 0))}function Mg(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.end!==void 0))}function _g(e,n,t=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=xa(n),a=xa(t),i={hanging:e.hanging,firstLine:e.firstLine},l=Fg(t)?a.left:r.left?e.left:Fg(n)?o.left:e.left,s=Mg(t)?a.right:r.right?e.right:Mg(n)?o.right:e.right,d=Lg(t)??(r.firstLineOffset?i:Lg(n)??i);return {left:l,right:s,...d}}function wc(e,n=8){let t=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){t.push(i);continue}if(!(i.kind!=="table"||a>=n)){for(let l of chunkRUS2YBWU_cjs.me(i.children))if(l.kind==="tableRow")for(let s of chunkRUS2YBWU_cjs.me(l.children)){if(s.kind!=="tableCell")continue;let d=chunkRUS2YBWU_cjs.Pb(s.children);r(d,a+1);}}}};return r(e,0),t}var Eg=new WeakMap;function Hg(e,n){let t=Eg.get(e);if(t&&t.styleCascade===n)return t;let r=e.children.find(s=>s.kind==="paragraphProperties"),o=n?yo(n,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&xc(r)?Rl(r,"rPr"):void 0,l={styleCascade:n,numPr:Sc(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:In(r),inheritedMarkProps:o?o.markRunProperties:In(i),perLevel:new WeakMap};return Eg.set(e,l),l}function zg(e,n,t,r){let o=new Map;if(n.nums.size===0)return o;let a=Pc(n,t),i=yc(a);for(let l of wc(e)){let s=Hg(l,t),d=s.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=s.perLevel.get(c.level);if(!u){let h=_g(c.level.indent,s.inheritedParagraphProperties,s.directProps),y=It(s.inheritedMarkProps,c.level.runProperties,t);u={indent:h,markerStyle:Ne(y,t?.themeFonts)},s.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=no(c.markerText,p.fontFamily,r),g=[c.numId,c.ilvl,c.level.numFmt,c.level.lvlText,f.left,f.right,f.hanging,f.firstLine,c.level.lvlJc,c.level.suff,c.level.vanish?1:0,m].join("|");o.set(l.id,{numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:p,cacheToken:g});}return o}var Ng=new WeakMap;function yr(e,n){if(e.listItems===void 0){let o=Ng.get(n);if(o&&o.rawIndex===e.numberingIndex&&o.styleCascade===e.styleCascade&&o.isFontAvailable===e.isFontAvailable)return {...e,numberingIndex:o.linkedIndex,...o.listItems?{listItems:o.listItems}:{}}}let t=Pc(e.numberingIndex??hc,e.styleCascade),r=e.listItems??(t.nums.size>0?_0(n,e.numberingIndex,t,e.styleCascade,e.isFontAvailable):void 0);return e.listItems===void 0&&Ng.set(n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:t,listItems:r}),{...e,numberingIndex:t,...r?{listItems:r}:{}}}var Ag=new WeakMap;function D0(e,n){let t=Ag.get(e);if(t&&t.styleCascade===n)return t.numbered;let r=wc([e]).filter(o=>Hg(o,n).numPr!==null);return Ag.set(e,{styleCascade:n,numbered:r}),r}var Dg=new WeakMap;function _0(e,n,t,r,o){let a=e[0],i=[];for(let d of e){let c=D0(d,r);for(let u of c)i.push(u);}let l=a?Dg.get(a):void 0;if(l&&l.rawIndex===n&&l.styleCascade===r&&l.isFontAvailable===o&&l.numbered.length===i.length&&l.numbered.every((d,c)=>d===i[c]))return l.listItems;let s=zg(e,t,r,o);return a&&Dg.set(a,{rawIndex:n,styleCascade:r,isFontAvailable:o,numbered:i,listItems:s}),s}function Il(e,n,t,r){if((!e.markerText||e.indent.hanging<=0&&n<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),l=Math.max(i,o-a),s=Math.max(a,n),d=l;return e.markerAlign==="right"?d=o-n:e.markerAlign==="center"&&(d=l+(s-n)/2),d<i&&(d=i),{x:d,y:t,width:Math.max(n,0),height:r}}function H0(e,n,t=Ur,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=n.measure(e.markerText,e.markerStyle),a=Il(e,o,0,0);if(!a)return 0;let i=e.indent.left,l=a.x+a.width;return e.suffix==="nothing"?l-i:e.suffix==="space"?l+n.measure(" ",e.markerStyle)-i:l<=i?0:Zr(t,l,r).positionPt-i}function vl(e,n,t,r,o){return e?H0(e,t,r,o===void 0?void 0:n.left+o):n.hanging>0?-n.hanging:n.firstLine}function Tl(e,n,t,r=0){if(!e||!e.markerText||!t)return;let o=n.measure(e.markerText,e.markerStyle),a=Il(e,o,t.y,t.height);if(a)return {text:e.markerText,style:e.markerStyle,box:{x:a.x+r,y:a.y,width:a.width,height:a.height},level:e.ilvl,numId:e.numId,numFmt:e.numFmt}}var jg=new WeakMap,Wg=new WeakMap,Gg=new WeakMap,$g=new WeakMap;function Xg(e){let n=$g.get(e);if(n)return n;let t=new Set,r=[];for(let o of $e(e)){for(let a of o.lines)for(let i of cn(a))t.has(i.paragraphId)||(t.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!t.has(o.paragraphId)&&(t.add(o.paragraphId),r.push(o.paragraphId));}return $g.set(e,r),r}function br(e){let n=jg.get(e);if(n)return n;let t=new Set,r=[];for(let o of e.pages)for(let a of Xg(o))t.has(a)||(t.add(a),r.push(a));return jg.set(e,r),r}function La(e){let n=Wg.get(e);if(n)return n;let t=new Map;for(let[r,o]of br(e).entries())t.set(o,r);return Wg.set(e,t),t}function Vg(e){let n=Gg.get(e);if(n)return n;let t=new Set,r=[],o=a=>{for(let i of jn(a)){for(let l of i.lines)for(let s of cn(l))t.has(s.paragraphId)||(t.add(s.paragraphId),r.push(s.paragraphId));i.lines.length===0&&!t.has(i.paragraphId)&&(t.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of Xg(a))t.has(i)||(t.add(i),r.push(i));for(let i of [a.header,a.footer])i&&o(i.fragments);for(let i of [a.footnotes,a.endnotes])if(i){i.separator&&o(i.separator.fragments);for(let l of i.notes)o(l.fragments);}}return Gg.set(e,r),r}var Yg=new WeakMap;function Rc(e){let n=Yg.get(e);if(n)return n;let t=[...$e(e)];for(let r of [e.header,e.footer])r&&t.push(...jn(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)t.push(...jn(o.fragments));return Yg.set(e,t),t}var Kg=new WeakMap;function cn(e){let n=Kg.get(e);if(n)return n;let t={paragraphId:e.range.paragraphId,start:e.range.start,end:e.range.end,spans:e.spans,drawings:e.drawings??[]},o=e.spans.some(a=>a.range.paragraphId!==e.range.paragraphId)?z0(e):[t];return Kg.set(e,o),o}function z0(e){let n=[];for(let t of e.spans){let r=n[n.length-1];if(r&&r.paragraphId===t.range.paragraphId){n[n.length-1]={...r,start:Math.min(r.start,t.range.start),end:Math.max(r.end,t.range.end),spans:[...r.spans,t]};continue}n.push({paragraphId:t.range.paragraphId,start:t.range.start,end:t.range.end,spans:[t],drawings:[]});}return n.map(t=>({...t,drawings:(e.drawings??[]).filter(r=>r.paragraphId===t.paragraphId)}))}function Ot(e,n){return cn(e).find(t=>t.paragraphId===n)??null}function Po(e,n,t,r){let o=La(e),a=o.get(n.paragraphId)??-1,i=o.get(t.paragraphId)??-1,l=o.get(r.paragraphId)??-1;if(a<i||a>l)return null;let s=a===i?Math.max(n.start,t.offset):n.start,d=a===l?Math.min(n.end,r.offset):n.end;return d>s?{start:s,end:d}:null}function uC(e,n){for(let t of e.pages)for(let r of $e(t)){let o=Yt(r).indexOf(n);if(o>0)return Yt(r).slice(0,o).reverse()}return []}var Ug=new WeakMap;function Yt(e){let n=Ug.get(e);if(n)return n;let t=[];for(let r of e.lines??[])for(let o of cn(r))t.includes(o.paragraphId)||t.push(o.paragraphId);return t.includes(e.paragraphId)||t.push(e.paragraphId),Ug.set(e,t),t}function j0(e,n){let t=Yt(e);if(t.length===1)return t[0]===n?{start:e.range.start,end:e.range.end}:null;let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(let a of e.lines??[]){let i=Ot(a,n);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Ic(e,n,t){let r=j0(e,n);return r!==null&&t>=r.start&&t<r.end}function fC(e,n){for(let t of e.pages)for(let r of Rc(t))if(r.paragraphId===n)return r;for(let t of e.pages)for(let r of Rc(t))if(Yt(r).includes(n))return r;return null}var Cc=8,Zg=new WeakMap;function Ol(e){let n=Zg.get(e);if(n)return n;let t=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,s=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let m=a.get(f.tableId)??0;r.set(p.id,m),a.set(f.tableId,m+1);}for(let m of p.cells){if(!p.isHeaderRepeat&&!u){let g=`${f.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=l.get(g);h&&i.set(m,h);}else l.set(g,{row:p,cell:m});}s(m.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)t.push(c.box.y),s(c.fragments,false);let d={pageTops:t,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return Zg.set(e,d),d}function Ea(e,n){let t=Ol(e).pageTops;if(t.length===0)return -1;let r=0,o=t.length-1,a=0;for(;r<=o;){let i=r+o>>1;t[i]<=n?(a=i,r=i+1):o=i-1;}return a}function W0(e,n){let t=e.pages[Ea(e,n.y)];if(!t)return false;for(let r of [t.header,t.footer])if(r&&Bl(r.box,n))return true;return false}function kc(e,n,t,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!Fa(a,n))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:t},pageIndex:t,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function Cl(e,n,t,r={}){let o=e.pages[n];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??Cc,measurer:r.measurer},i=qg(e,o.index,t),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=kc(l,t,a.pageIndex);if(d)return {...d,contentControlId:i};let c=kl(o.fragments,t,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=kc(s,t,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [n-f,n+f]){let m=e.pages[p];if(!m)continue;let g=kl(m.fragments,t,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:qg(e,m.index,t)}}return null}function xC(e,n,t,r,o={}){let a=e.pages[n];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??Cc,measurer:o.measurer};return kl(t,r,i,null)}function G0(e,n,t={}){let r=e.pages[Ea(e,n.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:n.x-o.box.x,y:n.y-o.box.y}),i=kc(o.anchoredDrawings,a,r.index);if(i)return i}return Cl(e,r.index,{x:n.x-r.contentBox.x,y:n.y-r.contentBox.y},t)}function Bl(e,n){return n.x>=e.x&&n.x<e.x+e.width&&n.y>=e.y&&n.y<e.y+e.height}function Ll(e,n,t){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===n&&Bl(i.box,t)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function qg(e,n,t){return Ll(e,n,t)?.id??null}function Oc(e,n,t){let r=Math.max(e.x-n.x,0,n.x-(e.x+e.width)),o=Math.max(e.y-n.y,0,n.y-(e.y+e.height));return r+o*t}function $0(e,n,t){return e.kind!=="table"||Math.max(e.box.y-n.y,0,n.y-(e.box.y+e.box.height))>0?Oc(e.box,n,t):0}function kl(e,n,t,r){if(e.length===0)return null;let o=null;for(let i of e){if(!Bl(i.box,n))continue;o=i;let l=Jg(i,n,t,r);if(l)return l;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:$0(i,n,t.verticalWeight)})).sort((i,l)=>i.score-l.score);for(let{block:i}of a){let l=Jg(i,n,t,r);if(l)return l}return null}function Jg(e,n,t,r){return e.kind==="paragraph"?X0(e,n,t,r,Bl(e.box,n)):Q0(e,n,t)}function X0(e,n,t,r,o){let a=V0(e.lines,n.y);if(!a)return null;let i=Z0(a,n.x,n.y,t),l=K0(a,n.x),s=Math.min(Math.max(i.offset,l.start),l.end),d={paragraphId:l.paragraphId,offset:s},c=Na(a,s,t.measurer,l);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:t.pageIndex},pageIndex:t.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&n.y>=a.box.y&&n.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?Y0(i.drawing):null}}function V0(e,n){if(e.length===0)return null;for(let o of e)if(n>=o.box.y&&n<o.box.y+o.box.height)return o;let t=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=n<o.box.y?o.box.y-n:n-(o.box.y+o.box.height);a<r&&(r=a,t=o);}return t}function Y0(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function K0(e,n){let t=cn(e),r=t[0];for(let o of t){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(n>=a.box.x&&(r=o),n<i.box.x+i.box.width)break}return r}function U0(e,n,t){for(let r of t??e.drawings??[])if(r.start===n||r.start+1===n)return r;return null}function Fa(e,n){let t=e.hitBounds;return n.x<t.x||n.x>=t.x+t.width||n.y<t.y||n.y>=t.y+t.height?false:Ed(n.x,n.y,e.geometry)}function Z0(e,n,t,r){let o=e.spans;for(let s of e.drawings??[])if(Fa(s,{x:n,y:t}))return {offset:s.start,x:s.hitBounds.x,withinSpan:true,drawing:s};if(o.length===0&&(e.drawings?.length??0)>0){let s=e.drawings[0];if(n<=s.advanceStart)return {offset:e.range.start,x:s.advanceStart,withinSpan:false,drawing:s};let d=e.drawings[e.drawings.length-1];if(n>=d.advanceEnd)return vc(e,d.advanceEnd,r);for(let c of e.drawings??[])if(n>=c.advanceStart&&n<c.advanceEnd){let u=n>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:Fa(c,{x:n,y:t}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(n<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],l=i.box.x+i.box.width;if(n>=l)return vc(e,l,r);for(let s of o)if(n>=s.box.x&&n<s.box.x+s.box.width)return q0(s,n,r);for(let s=0;s<o.length;s+=1){let d=o[s];for(let c of e.drawings??[]){if(n>=c.advanceStart&&n<c.advanceEnd){let u=Fa(c,{x:n,y:t}),f=n>=c.x+c.width/2;return {offset:f?c.start+1:c.start,x:f?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(Fa(c,{x:n,y:t}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(n<d.box.x&&n>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(n<c.hitBounds.x&&n>=(o[s-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(n<d.box.x){let c=o[s-1],u=c.box.x+c.box.width;return n-u<=d.box.x-n?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return vc(e,l,r)}function vc(e,n,t){let r=oh(t.layout,e);if(r===e.range.end)return {offset:r,x:n,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,l=t.measurer?Ma(a,i,t.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+l,withinSpan:false}}return {offset:r,x:n,withinSpan:false}}function oh(e,n){let t=n.range.end;if(t>n.range.start&&Tc(n,t-1)===chunkRUS2YBWU_cjs.Xb)return t-1;if(Ol(e).lastLineIdOfParagraph.get(n.range.paragraphId)===n.id)return t;let r=t;for(r>n.range.start&&Tc(n,r-1)===`
|
|
15
|
+
`&&(r-=1);r>n.range.start&&Tc(n,r-1)===" ";)r-=1;return r}function Tc(e,n){for(let t of e.spans)if(!(n<t.range.start||n>=t.range.end))return t.text.length!==t.range.end-t.range.start?null:t.text[n-t.range.start]??null;return null}var Qg=new WeakMap,eh=new WeakMap;function nh(e){let n=Vs(),t=Qg.get(e);if(t&&t.epoch===n)return t.boundaries;let r=[0];for(let o of zn(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),Qg.set(e,{epoch:n,boundaries:r}),r}function Ma(e,n,t){let r=e.caretEdges;if(r&&n>=0&&n<r.length)return r[n];let o=eh.get(t);o||(o=new WeakMap,eh.set(t,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(n);if(i!==void 0)return i;let l=n<=0?0:rt(e.text.slice(0,n),e.style,t);return a.set(n,l),l}function Bc(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function Fl(e,n,t){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(n-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!t||Bc(e)?e.box.x+e.box.width*(o/r):e.box.x+Ma(e,o,t)}function Na(e,n,t,r){let o=U0(e,n,r?.drawings);if(o)return {x:n>o.start?o.advanceEnd:o.advanceStart,y:o.y,height:o.height};let a=r?r.spans:e.spans;if(a.length===0){let d=e.leading??0;return {x:e.contentX,y:e.box.y+d,height:Math.max(0,e.box.height-d-(e.trailingSpacing??0))}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(n>c.range.start&&n<c.range.end){i=c;break}if(n===c.range.end){let u=a[d+1];if(u&&u.range.start===n&&Bc(c)){i=u;break}if(u&&u.range.start===n&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else n>c.range.end&&(i=c);}let l=Fl(i,n,t),s=t?.lineMetrics(i.style);return !s||s.height<=0?{x:l,y:e.box.y,height:e.box.height}:{x:l,y:e.box.y+e.baseline-s.baseline-Td(i.style),height:s.height}}function q0(e,n,t){let r=n-e.box.x,o=e.range.end-e.range.start;if(o<=0||Bc(e)){let p=r>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:p?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!t.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),g=nh(e),h=g[0],y=Number.POSITIVE_INFINITY;for(let x of g){let T=Math.abs(x-m);T<y&&(y=T,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=nh(e),i=1,l=a.length-1;for(;i<l;){let p=i+l>>1;Ma(e,a[p],t.measurer)<r?i=p+1:l=p;}let s=a[i],d=a[i-1],c=Ma(e,s,t.measurer),u=Ma(e,d,t.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:s),x:e.box.x+(f?u:c),withinSpan:true}}function th(e,n,t,r){if(e.length===0)return null;for(let i of e){let l=t(i);if(n>=l&&n<l+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let l=t(i),s=n<l?l-n:n-(l+r(i));s<a&&(a=s,o=i);}return o}function J0(e,n,t,r){return {tableId:n.tableId,rowId:t.id,cellId:r.id,rowIndex:Ol(e).rowIndexById.get(t.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function Q0(e,n,t,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=th(a,n.y,d=>d.box.y,d=>d.box.height);if(l){let d=th(l.cells,n.x,c=>c.box.x,c=>c.box.width);d&&i.push(eR(t,l,d));}let s=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||s.push({entry:{row:d,cell:c},score:Oc(c.box,n,t.verticalWeight)}));s.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...s.map(u=>u.entry)]){let u=J0(t.layout,e,d,c),f=kl(c.blocks,n,t,u);if(f)return f}return null}function eR(e,n,t){return t.blocks.length>0?{row:n,cell:t}:Ol(e.layout).mergeOriginOf.get(t)??{row:n,cell:t}}function ah(e,n){let t=n.paintBounds;return t.width<=0||t.height<=0?null:Object.freeze({pageIndex:e,x:t.x,y:t.y,width:t.width,height:t.height,record:n})}function nR(e,n,t){for(let r of n.lines)for(let o of r.drawings??[])if(o.drawingNodeId===t)return ah(e,o);return null}function ih(e,n,t){if(n.kind==="paragraph")return nR(e,n,t);for(let r of n.rows)for(let o of r.cells)for(let a of o.blocks){let i=ih(e,a,t);if(i)return i}return null}function rh(e,n,t){for(let r of n){let o=ih(e,r,t);if(o)return o}return null}function tR(e,n){for(let t of e.pages){for(let o of t.anchoredDrawings??[])if(o.drawingNodeId===n)return ah(t.index,o);let r=rh(t.index,t.fragments,n);if(r)return r;for(let o of [t.header,t.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==n)continue;let l=i.paintBounds;return l.width<=0||l.height<=0?null:Object.freeze({pageIndex:t.index,x:o.box.x+l.x-t.contentBox.x,y:o.box.y+l.y-t.contentBox.y,width:l.width,height:l.height,record:i})}let a=rh(t.index,o.fragments,n);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:t.index,x:t.header?.box.x===o.box.x||t.footer?.box.x===o.box.x?o.box.x+i.x-t.contentBox.x:a.x,y:o.box.y+i.y-t.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function rR(e){let n=[0],t=0;for(let r of e)t+=r,n.push(t);return n}function oR(e,n){let t=n.get(e.id);return t===void 0&&(e.isHeaderRepeat?t=0:(t=n.size,n.set(e.id,t))),{...e,rowIndex:t}}function Ml(e,n,t,r){return {...e,nestingDepth:t,columnEdges:e.columnEdges??rR(n),rows:e.rows.map(o=>oR(o,r))}}var lh=new WeakMap,wo=4,Lc=6,sh=14,aR={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Fc(e,n,t,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let l of a.rows){o({pageIndex:n,table:a,row:l,rowOrdinal:l.rowIndex,nestingDepth:i,editable:!l.isHeaderRepeat,pageContentBox:t});for(let s of l.cells)Fc(s.blocks,n,t,i+1,o);}}}function wC(e){let n=lh.get(e);if(n)return n;let t=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=l=>{t.push(l);};Fc(a.fragments,o,a.contentBox,0,i);for(let l of [a.header,a.footer])l&&Fc(l.fragments,o,l.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(t)});return lh.set(e,r),r}function RC(e){let n=e.sourceRevision;switch(e.kind){case "rowDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${n}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function IC(e){switch(e.kind){case "rowDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function vC(e,n){if(n.kind==="insertRow"){for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat)return t.editable?{kind:"insertRow",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}:null;return null}for(let t of e.occurrences)if(t.pageIndex===n.pageIndex&&t.table.tableId===n.tableId&&t.row.id===n.rowId&&t.row.isHeaderRepeat===n.isHeaderRepeat&&t.editable)for(let r=0;r<t.table.columnEdges.length-1;r+=1){let o=Aa(t.row,r);if(o===n.gridColumnId)return {kind:"insertColumn",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:t.table.tableId,rowId:t.row.id,gridColumnId:o,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth}}return null}function Aa(e,n){for(let t of e.cells)if(t.gridColumn===n)return t.gridColumnId??null;return null}function iR(e,n,t,r,o){if(!e.pages[n.pageIndex])return null;let i=n.pageContentBox,l=t-i.x-o,s=r-i.y,d=n.table,c=l-d.box.x,u=s-d.box.y;return c<-wo||u<-sh||c>d.box.width+wo||u>d.box.height+Lc?null:{x:c,y:u}}function lR(e,n,t,r){if(n.row.isHeaderRepeat)return null;let o=n.table,a=n.row.box.y-o.box.y+n.row.box.height;if(!o.columnEdges.slice(1).some(s=>Math.abs(t-s)<=wo)&&t>=0&&t<=o.box.width&&Math.abs(r-a)<=wo)return {kind:"rowDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeY:a};if(r<n.row.box.y-n.table.box.y||r>n.row.box.y-n.table.box.y+n.row.box.height)return null;for(let s=1;s<o.columnEdges.length-1;s+=1){let d=o.columnEdges[s];if(Math.abs(t-d)>wo)continue;let c=Aa(n.row,s-1),u=Aa(n.row,s);if(!(!c||!u))return {kind:"columnDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:n.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:d,sheetY:n.pageContentBox.y+o.box.y+r}}let l=o.columnEdges.at(-1);if(Math.abs(t-l)<=wo){let s=o.columnEdges.length-2,d=Aa(n.row,s);return d?{kind:"rightEdge",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:n.row.id,gridColumnId:d,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:l,sheetY:n.pageContentBox.y+o.box.y+r}:null}return null}function TC(e,n,t,r,o=0,a){let i=a??Ea(r,t),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let p=aR[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=iR(r,f,n,t,l);if(!p||(u(lR(e,f,p.x,p.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let m=f.row.box.y-f.table.box.y;p.x<=Lc&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+Lc&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let g=0;g<f.table.columnEdges.length-1;g+=1){let h=f.table.columnEdges[g],y=f.table.columnEdges[g+1],x=(h+y)/2;if(Math.abs(p.x-x)>(y-h)/2+2||p.y>sh)continue;let T=Aa(f.row,g);if(T){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:T,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return s}var dh=1048576;function Mc(e=dh){let n=e|0;return {cellsRemaining:n>0?n:0}}function Ec(e,n,t,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=new Set,s=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>t!==void 0&&t.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}s&&p.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let m=new Set,g=false;for(let h of p.cells){if(t){if(t.cellsRemaining<=0){g=true;break}t.cellsRemaining-=1;}let y=Math.max(0,Math.min(h.gridColumn|0,1023));if(m.add(y),h.vMergeContinue){let x=a.get(y);x?x.span+=1:l&&!l.has(y)&&(a.set(y,{id:h.id,span:1}));}else c(y),a.set(y,{id:h.id,span:1});l?.add(y);}if(g){f();break}for(let h of [...a.keys()])m.has(h)||c(h);}return f(),o}function uh(e,n,t,r){let o=new Map,a=0,i=l=>{let s=xo(l,n,0,t,r);if(s)for(let d of s.rows)for(let c of d.cells)for(let u of c.blocks)u.localName==="p"?o.set(u.id,a++):u.localName==="tbl"&&i(u);};for(let l of e)l.kind==="paragraph"&&l.paragraph?o.set(l.paragraph.id,a++):l.kind==="table"&&l.table&&i(l.table);return o}var Nl=4096,ch=1,Fn=class extends Error{code;constructor(n,t){super(t),this.name="TablePaginationError",this.code=n;}};function Nc(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0}))}function fh(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function ph(e,n,t,r,o){let a=fh(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let l=null,s=null,d=i.lines;for(let u of n){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,d=f.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:t,width:i.cellContentWidth,height:r});a(uo({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(l)??l,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}}function sR(e,n,t,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=n.find(l=>l.kind==="paragraph"&&l.id===o.paragraphId);!a||a.kind!=="paragraph"||Ln(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,uo({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:t,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{}}));}}function dR(e,n){let t=fh(e),r=e.deferAnchoredDrawings;return !t&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:t,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{n.push(i);}},flushDeferred:(i,l,s)=>{if(n.length!==0){if(t&&!e.anchorDeferOnly)ph(n,i,l,s,e);else if(r)for(let d of n)r(d);n.length=0;}}}}function El(e,n,t){let r=0;for(let o=n;o<t&&o<e.length;o+=1)r+=e[o];return r}function Ac(e,n){return n===0?[...e]:e.map(t=>t.kind==="table"?{...t,box:{...t.box,y:t.box.y+n},rows:t.rows.map(r=>({...r,box:{...r.box,y:r.box.y+n},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+n},blocks:Ac(o.blocks,n)}))}))}:{...t,box:{...t.box,y:t.box.y+n},...t.shadingBox?{shadingBox:{...t.shadingBox,y:t.shadingBox.y+n}}:{},...t.bottomBorder?{bottomBorder:{...t.bottomBorder,box:{...t.bottomBorder.box,y:t.bottomBorder.box.y+n}}}:{},...t.borders?{borders:t.borders.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}:{},...t.marker?{marker:{...t.marker,box:{...t.marker.box,y:t.marker.box.y+n}}}:{},lines:t.lines.map(r=>({...r,box:{...r.box,y:r.box.y+n},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+n}})),...r.drawings?{drawings:r.drawings.map(o=>Vi(o,0,n))}:{}}))})}function cR(e,n,t,r,o,a,i){let l=e.id,s=o.listItems?.get(l),{props:d,indent:c,available:u,alignment:f,spacing:p,lineSpacing:m,bottomBorder:g,borders:h,shading:y,inheritedRunProperties:x,markRunProperties:T,tabStops:R,tabStopsCacheToken:B}=Ia(e,t,o.styleCascade,s,i?.tableCellStyle,true),E=ta(R,o.defaultTabStopPt),w=E===R?B:lr(E),L=vl(s,c,o.measurer,E,u),C=o.pageExclusionZones?.()??Object.freeze([]),k=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,b=o.paragraphOrderIndex?ym(C,k,U=>o.paragraphOrderIndex?.(U)):C,H=hm(b,n,0,{left:0,right:c.left+u+c.right}),O=it(H),te=O?`${r.toFixed(3)}|${O}`:"",v=fr({paragraph:e,properties:[...d,...x,...T,{localName:"tabStops",attributes:{token:w}},...s?[{localName:"list",attributes:{token:s.cacheToken}}]:[]],width:u,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...te?{exclusionToken:te}:{}});o.cache&&o.onCellBreakKey?.(v);let M=nl(e,l,c.left,u,o.measurer,o.cache,o.cache?v:null,x,E,o.pageContext,o.styleCascade?(U,W)=>It(U,W,o.styleCascade):void 0,{lineSpacing:m,firstLineOffset:L,marginExtent:{left:0,right:c.left+u+c.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:true}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:c.left+u+c.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:c.left+u+c.right,height:Math.max(1,u)}),...H.length>0?{pageExclusionZones:H}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:T}),_=i?.lineStart??0,z=i?.fragmentIndex??0,I=i?.maxBottom??Number.POSITIVE_INFINITY,A=i?.includeAfter??true,F=i?.includeBottomBorder??true,Y=_===0?Kr(p.before,a):0,K=n+c.left,$=_===0?Dt(h.top):0,V=[],Z=r+Y+$,j=_,Q=false;for(let U=_;U<M.length;U+=1){let W=M[U],oe=U===M.length-1,Se=oe&&F&&g?Dt(g):0,X=oe&&A?p.after:0,Ue=H.length>0?Rt(Z,W.height,H):W.exclusionSkipBefore??0;if(Z+Ue+W.height+Se+X>I+.001)break;Z+=Ue;let We=n+c.left+(U===0?L:0),Ce=Math.max(1,u-(U===0?L:0)),en=W.spans.map(xe=>({...xe,range:{...xe.range,paragraphId:l},box:{...xe.box,x:xe.box.x+n,y:Z}})),un=Qi(en,o.measurer,We,Ce,f,oe,f==="center"||f==="right"?W.width:void 0),Ze=en.length>0&&un.length>0?un[0].box.x-en[0].box.x:f!=="left"&&f!=="both"?(()=>{let xe=Ce-W.width;return xe<=0?0:f==="center"?xe/2:xe})():0,qe=Object.freeze({x:n,y:r,width:t,height:Math.max(0,I-r)}),Ee=el(W.drawings.map(xe=>Yi(Object.freeze({...xe,paragraphId:l,x:n+xe.x,advanceStart:n+xe.advanceStart,advanceEnd:n+xe.advanceEnd,y:Z+xe.y,paintBounds:Object.freeze({...xe.paintBounds,x:n+xe.paintBounds.x,y:Z+xe.paintBounds.y}),hitBounds:Object.freeze({...xe.hitBounds,x:n+xe.hitBounds.x,y:Z+xe.hitBounds.y})}),qe)),Ze);V.push({id:o.nextLineId(l,W.start,U),range:{paragraphId:l,start:W.start,end:W.end},spans:un,...Ee.length>0?{drawings:Ee}:{},box:{x:n+c.left,y:Z,width:u,height:W.height},contentX:un[0]?.box.x??We+Ze,baseline:W.baseline,leading:W.leading,trailingSpacing:W.trailingSpacing,...W.deletedRanges?{deletedRanges:W.deletedRanges}:{}}),Z+=W.height,j=U+1,Q=true;}if(!Q)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:_,complete:false,fitted:false};let ne=j>=M.length,ce=V[0].box.y,pe=Z,me=[],Oe,Ie=ce,be=pe,Le=h.left?Pn(h.left):0,on=h.right?Pn(h.right):0,Tn=h.left?K-h.left.spacePt-Le:K,Ke=h.right?K+u+h.right.spacePt+on:K+u,Yn=Math.max(Ke-Tn,0);if($>0&&h.top){let U=Pn(h.top),W=ce-h.top.spacePt-U;me.push({side:"top",edge:h.top,box:{x:Tn,y:W,width:Yn,height:U}}),Ie=W;}if(ne&&F&&g){let U=Pn(g),W=pe+g.spacePt,oe={x:Tn,y:W,width:Yn,height:U};Oe={edge:g,box:oe},me.push({side:"bottom",edge:g,box:oe}),be=W+U;}let yn=Math.max(be-Ie,0);if(h.left&&me.push({side:"left",edge:h.left,box:{x:K-h.left.spacePt-Le,y:Ie,width:Le,height:yn}}),h.right&&me.push({side:"right",edge:h.right,box:{x:K+u+h.right.spacePt,y:Ie,width:on,height:yn}}),h.bar){let U=Pn(h.bar);me.push({side:"bar",edge:h.bar,box:{x:K-h.bar.spacePt-U,y:ce,width:U,height:Math.max(pe-ce,0)}});}let En=ne&&A?p.after:0,Nn=be+En,je=y===void 0?void 0:h.left||h.right?{x:Tn,y:Ie,width:Yn,height:Math.max(be-Ie,0)}:ea(V,K,u),An=ne&&o.displayMode==="all-markup",an=An?ao(e):[],_e=An?pa(e):null,Cn=_===0?Tl(s,o.measurer,V[0]?{y:V[0].box.y,height:V[0].box.height}:void 0,n):void 0,N=al(e),S=N?wl(V,Pl(N)):V,q={kind:"paragraph",id:`${l}#f${z}`,paragraphId:l,fragmentIndex:z,range:{paragraphId:l,start:S[0].range.start,end:S[S.length-1].range.end},props:d,spacing:{before:Y,after:En},indent:c,tabStops:E,...Oe?{bottomBorder:Oe}:{},...me.length>0?{borders:me}:{},...y===void 0?{}:{shading:y},...je===void 0?{}:{shadingBox:je},...Cn?{marker:Cn}:{},...Hi(an,_e),lines:S,box:{x:K,y:r,width:u,height:Nn-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let U=Object.freeze({x:n,y:r,width:t,height:Math.max(0,I-r)}),W=q.box,oe={paragraph:e,paragraphId:l,paragraphBox:W,lines:S};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...oe,cellOriginX:n,cellContentWidth:t}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(uo({paragraph:e,paragraphId:l,paragraphBox:W,lines:S,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(W)??W,cellBox:U,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}return {fragment:q,bottom:Nn,spaceAfter:En,nextLineIndex:j,complete:ne,fitted:true}}function xr(e,n,t,r,o,a){let i=mh(e,n,t,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0});return {blocks:i.blocks,bottom:i.bottom}}function mh(e,n,t,r,o,a,i,l,s){let d=[],c=r,u=l.previousSpaceAfter,f=l.blockIndex,p=l.lineIndex,m=l.paragraphFragmentIndex,g=false,h=false;for(;f<e.length;){let y=e[f];if(y.kind==="table"){p!==0&&(p=0),u=0;let T=pR(y,n,t,c,a+1,i);if(!T){f+=1;continue}if(T.bottom>o+.001){h=!g;break}d.push(T.fragment),c=T.bottom,g=true,f+=1,p=0;continue}if(y.kind!=="paragraph"){f+=1,p=0;continue}let x=cR(y,n,Math.max(1,t-n),c,i,u,{lineStart:p,fragmentIndex:m,maxBottom:o,includeAfter:true,includeBottomBorder:true,...s?{tableCellStyle:s}:{}});if(!x.fitted||!x.fragment)break;if(d.push(x.fragment),c=x.bottom,g=true,x.complete)u=x.spaceAfter,f+=1,p=0,m=0;else return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:x.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:m+1},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:p,previousSpaceAfter:u,paragraphFragmentIndex:m},complete:f>=e.length,fitted:g,nestedSplitBlocked:h}}function gh(e,n){return {top:e.top+gr(n.top),right:e.right+gr(n.right),bottom:e.bottom+gr(n.bottom),left:e.left+gr(n.left)}}function uR(e,n,t){return {top:n?{state:"none"}:e.top,left:e.left,bottom:t?{state:"none"}:e.bottom,right:e.right}}function hh(e,n,t){return !n&&!t?e:{...e,cells:e.cells.map(r=>({...r,borders:uR(r.borders,n,t)}))}}function Da(e,n,t,r,o,a,i,l=0){let s=Dc(e,n,t,r,Number.POSITIVE_INFINITY,o,false,a,i,Nc(e),l);return {record:s.record,bottom:s.bottom}}function Dc(e,n,t,r,o,a,i,l,s,d,c=0){let u=El(n,0,n.length),f=Number.isFinite(c)&&c>0?c/2:0,p=s.measurer.lineMetrics(tt).height,m=e.height,g=m.rule==="exact"?m.valuePt:void 0,h=m.rule==="atLeast"?m.valuePt:void 0,y=[],{rowDeps:x,flushDeferred:T}=dR(s,y),R=a&&s.pageOccurrenceKey?{...x,nextLineId:(v,M,_)=>x.nextLineId(v,M,_,s.pageOccurrenceKey())}:x,B=g===void 0?o:Math.min(o,r+Math.max(0,g)),E=[],w=false,L=false,C=r;for(let v=0;v<e.cells.length;v+=1){let M=e.cells[v],_=d[v]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0},z=M.gridSpan,I=M.gridColumn,A=t+El(n,0,I),F=El(n,I,Math.min(I+z,n.length))||u,Y=Math.min(f,Math.max((F-ch)/2,0)),K=A+Y,$=Math.max(F-2*Y,ch),V=gh(M.margins,M.borders),Z=i?gr(M.borders.top):V.top,j=r+Z,Q=B-V.bottom,ne=[],ce=j,pe=_,me=true,Oe=false,Ie=false;if(!M.vMergeContinue)if(Q<j+.001)me=_.blockIndex>=M.blocks.length;else {let Le=mh(M.blocks,K+V.left,K+$-V.right,j,Q,l,R,_,M.styleFormatting);ne=Le.blocks,ce=Le.bottom,pe=Le.cursor,me=Le.complete,Oe=Le.fitted,Ie=Le.nestedSplitBlocked,Oe&&(w=true),Ie&&(L=true);}let be=Math.min(B,Oe?ce+V.bottom:r+Z+p+V.bottom);be>C&&(C=be),E.push({cell:M,x:K,width:$,gridColumn:I,blocks:ne,contentTop:j,contentBottom:ce,insets:{...V,top:Z},nextCursor:pe,complete:M.vMergeContinue?true:me,fitted:Oe,nestedSplitBlocked:Ie});}C=Math.min(B,Math.max(C,r));for(let v of E){let M=v.fitted?v.contentBottom+v.insets.bottom:r+v.insets.top+p+v.insets.bottom;M>C&&M<=B+.001&&(C=M);}C=Math.min(B,C);let k=false;if(g!==void 0){let v=r+g;v<=o+.001?(C=v,k=true):C=Math.min(o,C);}else if(h!==void 0){let v=r+h;E.every(_=>_.complete)&&v<=o+.001&&v>C&&(C=v);}C=Math.min(o,C);let b=Math.max(0,C-r),H=E.map(v=>{let M=v.blocks,_=k?true:v.complete;if(!v.cell.vMergeContinue&&_&&v.cell.vAlign!=="top"&&M.length>0){let z=v.contentBottom-v.contentTop,I=b-v.insets.top-v.insets.bottom-z;if(I>0){let A=v.cell.vAlign==="center"?I/2:I;M=Ac(M,A);}}return {id:v.cell.id,gridColumn:v.gridColumn,...v.cell.gridColumnId?{gridColumnId:v.cell.gridColumnId}:{},gridSpan:v.cell.gridSpan,vMergeContinue:v.cell.vMergeContinue,...v.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...v.cell.shading===void 0?{}:{shading:v.cell.shading},blocks:M,box:{x:v.x,y:r,width:v.width,height:b}}}),O=k||E.every(v=>v.complete)?null:E.map(v=>v.nextCursor),te=k||E.every(v=>v.complete);return T(H,r,b),{record:{id:e.id,...e.revisionKind?{revisionKind:e.revisionKind}:{},...e.revisionId!==void 0?{revisionId:e.revisionId}:{},...e.revisionAuthor!==void 0?{revisionAuthor:e.revisionAuthor}:{},...e.revisionDate!==void 0?{revisionDate:e.revisionDate}:{},rowIndex:0,isHeaderRepeat:a,...i?{isContinuation:true}:{},cells:H,box:{x:t,y:r,width:u,height:b}},bottom:C,remainder:te?null:O,fitted:w||e.cells.every(v=>v.vMergeContinue)||k,nestedSplitBlocked:L}}function fR(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function _c(e,n,t,r,o,a=0){let i=0,l={...fR(o),pageExclusionZones:void 0,nextLineId:()=>`probe-${i++}`};return Da(e,n,t,0,false,r,l,a).record.box.height}function Hc(e,n,t,r,o,a,i,l){if(e.length===0)return [];let s=new Map;for(let h of t)for(let y of h.cells)s.set(y.id,y);let d=Ec(e,a,o,{pageFragment:true}),c=e.map((h,y)=>({...h,cells:h.cells.map(x=>{let T=d.get(x.id);if(x.vMergeContinue&&T===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let R=x.vMergeContinue,B=T??1,E=x.box.height;if(B>1){let k=e[y+B-1];E=k.box.y+k.box.height-x.box.y;}let w=s.get(x.id),L=x.blocks;if(w&&w.vAlign!=="top"&&L.length>0){let k=gh(w.margins,w.borders),b=Number.POSITIVE_INFINITY,H=Number.NEGATIVE_INFINITY;for(let O of L)b=Math.min(b,O.box.y),H=Math.max(H,O.box.y+O.box.height);if(Number.isFinite(b)&&Number.isFinite(H)){let O=E-k.top-k.bottom-(H-b),v=x.box.y+k.top+(O>0?w.vAlign==="center"?O/2:O:0)-b;if(Math.abs(v)>.001){L=Ac(L,v);for(let M of L)M.kind==="paragraph"&&i?.(M.paragraphId,v);}}}let C=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:E});return w&&l&&(B>1||w.vAlign!=="top"&&L.length>0)&&sR(L,w.blocks,C,l),{...x,...R?{vMergeContinue:false,paintInert:false}:{},rowSpan:B,blocks:L,box:{...x.box,height:E}}})})),u=c.map(h=>h.cells.map(y=>{let x=s.get(y.id);return {gridColumn:y.gridColumn,gridSpan:y.gridSpan,vMergeContinue:y.vMergeContinue,borders:x?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:y.rowSpan??1}})),f=n.columnWidthsPt.length,p=n.tableBorders,m={columnWidthsPt:n.columnWidthsPt,rowBands:c.map(h=>({y:h.box.y,height:h.box.height})),cellBoxes:c.map(h=>h.cells.map(y=>({width:y.box.width,height:y.box.height})))},g=ac(u,p,f,m,void 0,r);return c.map((h,y)=>({...h,cells:h.cells.map((x,T)=>{let R=g[y][T];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:R}})}))}function pR(e,n,t,r,o,a){if(o>=Sl)return null;let i=Math.max(1,t-n),l=xo(e,i,o,a.styleCascade,a.displayMode);if(!l||l.rows.length===0)return null;let s=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{s.push(h);}},c=n+Ca(l,i),u=[],f=r;for(let h of l.rows){let y=Da(h,l.columnWidthsPt,c,f,false,o,d,l.cellSpacingPt);u.push(y.record),f=y.bottom;}let p=Hc(u,l,l.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of s)for(let y of p)if(y.cells.some(T=>T.blocks.some(R=>R.kind==="paragraph"&&R.paragraphId===h.paragraphId))){ph([h],y.cells,y.box.y,y.box.height,a);break}let m=El(l.columnWidthsPt,0,l.columnWidthsPt.length),g=new Map;return {fragment:Ml({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:p,box:{x:c,y:r,width:m,height:f-r}},l.columnWidthsPt,o,g),bottom:f}}function yh(e){let n=e.picture;return n?.embeddedRelationshipId?`embed:${e.ownerPartName}:${n.embeddedRelationshipId}`:n?.linkedRelationshipId?`link:${e.ownerPartName}:${n.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var bh=new WeakMap,zc=new Map,mR=16,gR=32;function Sh(e,n){let t=bh.get(e);if(t)return t;let r;if(e.kind==="drawing"||chunkRUS2YBWU_cjs.ab(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:zc,visited:1,deepest:0};else if((n<2||e.children.length>=mR)&&n<gR){let o=null,a=1,i=0;for(let l of e.children){let s=Sh(l,n+1);if(a+=s.visited,s.deepest+1>i&&(i=s.deepest+1),s.atoms.size>0){o||(o=new Map);for(let[d,c]of s.atoms)o.set(d,c);}}r={atoms:o??zc,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,l=[{node:e,depth:0}];for(;l.length>0;){let s=l.pop();if(a+=1,a>chunkRUS2YBWU_cjs._a)break;s.depth>i&&(i=s.depth);let d=s.node;if(d.kind==="drawing"||chunkRUS2YBWU_cjs.ab(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)l.push({node:d.children[c],depth:s.depth+1});}r={atoms:o.size>0?o:zc,visited:a,deepest:i};}return bh.set(e,r),r}function xh(e){let n=Sh(e.root,0);return n.visited>chunkRUS2YBWU_cjs._a||n.deepest>chunkRUS2YBWU_cjs.Ya.maxDrawingDepth?null:n.atoms}function jc(e){let n=e.position,t=e.anchor,r=e.picture,o=e.wrapGeometry;return [e.drawingNodeId,e.ownerPartName,e.kind,e.hidden?"1":"0",String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left),e.compatibilityBranchNodeId??"",t?.simplePos?"sp":"pv",t?String(t.relativeHeight):"",t?t.layoutInCell?"1":"0":"",r?[String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),r.transform.flipHorizontal?"1":"0",r.transform.flipVertical?"1":"0",String(r.transform.offsetEmu.x),String(r.transform.offsetEmu.y),String(r.transform.extentEmu.cx),String(r.transform.extentEmu.cy),r.embeddedRelationshipId??"",r.linkedRelationshipId??"",r.presetGeometry??""].join(":"):"",o?[o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)].join(":"):"",n?[n.horizontal.relativeFrom,n.horizontal.align??"",String(n.horizontal.offsetEmu??""),n.vertical.relativeFrom,n.vertical.align??"",String(n.vertical.offsetEmu??""),String(n.simplePosition.xEmu),String(n.simplePosition.yEmu)].join(":"):""].join("|")}function Al(e){switch(e.kind){case "ready":return `ready:${e.resourceKey}:${e.contentId}:${e.pixelWidth}x${e.pixelHeight}`;case "pending":return `pending:${e.resourceKey}`;case "external":return `external:${e.relationshipId}:${e.sinkSafe?"1":"0"}`;case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var hR=1;function Wc(e,n){if(e.kind==="drawing"||chunkRUS2YBWU_cjs.ab(e)){n.push(e.id);return}if("children"in e)for(let t of e.children)Wc(t,n);}function yR(e){if(e.kind!=="paragraph")return [];let n=[];for(let t of e.children)Wc(t,n);return Object.freeze(n)}function bR(e){let{ownerPartName:n,part:t,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,s=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,m=new WeakMap,g=0,h=chunkRUS2YBWU_cjs.$a(r,n),y=chunkRUS2YBWU_cjs.eb(t,{resolveRelationship:h}),x=xh(t),T=(C,k)=>{if(s||u.has(k))return;u.add(k);let b=d;o.resolveForProjection(C).then(H=>{s||b!==d||(c.set(k,H),H.kind==="ready"&&i(H.validatedHandle),g+=1,f.set(k,g),a(n));}).catch(()=>{s||b!==d||(c.set(k,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(k,g),a(n));}).finally(()=>{u.delete(k);});},R=C=>{let k=yh(C),b=c.get(k);if(b)return b;let H=C.picture?.linkedRelationshipId;if(H){let te=o.resolveLinked(n,H);return c.set(k,te),g+=1,f.set(k,g),te}let O=Object.freeze({kind:"pending",resourceKey:k});return c.set(k,O),g+=1,f.set(k,g),T(C,k),O},B=C=>y.get(C)??null,E=Object.freeze({ownerPartName:n,projectionForAtom:B,project:C=>B(C.id),resourceOf:R}),w=C=>{let k=m.get(C);if(k)return k;let b=yR(C),H=null,O=(v,M)=>{if(!(M>=hR))for(let _ of v){let z=y.get(_)?.textboxStory;if(!z)continue;let I=[];if(Wc(z.content,I),I.length!==0){H||(H=[...b]);for(let A of I)H.push(A);O(I,M+1);}}};O(b,0);let te=H??b;return m.set(C,te),te};return {context:E,cacheTokenForPart:()=>`${n}|${g}|${d}|${y.size}`,drawingTokenForParagraph:C=>{let k=p.get(C);if(k?.resourceEpoch===g)return k.token;let b=w(C);if(b.length===0)return p.set(C,{resourceEpoch:g,token:""}),"";let O=b.map(te=>{let v=y.get(te);if(!v)return `${te}:refused`;let M=R(v);return [te,jc(v),Al(M),String(f.get(yh(v))??0)].join("|")}).sort().join(";");return p.set(C,{resourceEpoch:g,token:O}),O},isCompatibleWith:(C,k)=>{if(C===t)return true;let b=xh(C);if(x&&b&&x.size===b.size){let O=true;for(let[te,v]of x)if(b.get(te)!==v){O=false;break}if(O)return true}let H=chunkRUS2YBWU_cjs.eb(C,{resolveRelationship:chunkRUS2YBWU_cjs.$a(k,n)});if(H.size!==y.size)return false;for(let[O,te]of y){let v=H.get(O);if(!v||jc(v)!==jc(te))return false}return true},dispose:()=>{s=true,d+=1;for(let C of c.values())C.kind==="ready"&&l(C.validatedHandle);c.clear(),u.clear(),f.clear();}}}function eB(e){let n=e.session.packageRevision(),t=e.session.currentPackage(),r=e.resourceLookup??chunkRUS2YBWU_cjs.rb(t,{decodePort:e.decodePort}),o=new Map,a=new Map,i=0,l=new WeakMap,s=new Map,d=new Map,c=g=>{s.set(g.resourceKey,g);let h=chunkRUS2YBWU_cjs.gb(g);h&&d.set(g.resourceKey,h);},u=g=>{s.delete(g.resourceKey);let h=d.get(g.resourceKey);h&&(chunkRUS2YBWU_cjs.hb(h),d.delete(g.resourceKey));},f=(g,h)=>{let x=h.currentPackage().parts.get(g)??a.get(g);if(x)return x;if(g===h.part().name)return h.part();throw new Error(`Missing inline drawing part ${g}`)},p=(g,h)=>{let y=o.get(g);if(y)return y;let x=f(g,h);a.set(g,x);let T=bR({ownerPartName:g,part:x,pkg:h.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:c,forgetReadyHandle:u});return o.set(g,T),i+=1,l.set(T,i),T},m=g=>{let h=g.currentPackage();if(h.partBytes===t.partBytes&&h.relationships===t.relationships&&h.contentTypes===t.contentTypes){for(let[x,T]of o){let R=h.parts.get(x)??(x===g.part().name?g.part():void 0);if(R&&T.isCompatibleWith(R,h)){a.set(x,R);continue}T.dispose(),o.delete(x),a.delete(x);}n=g.packageRevision(),t=h;return}for(let x of o.values())x.dispose();o.clear(),a.clear();for(let x of d.values())chunkRUS2YBWU_cjs.hb(x);d.clear(),s.clear(),e.resourceLookup||r.dispose(),n=g.packageRevision(),t=h,r=e.resourceLookup??chunkRUS2YBWU_cjs.rb(h,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return p(e.session.part().name,e.session).context},contextForPart(g){return p(g,e.session).context},cacheTokenForPart(g){let h=p(g,e.session);return `${l.get(h)??0}|${h.cacheTokenForPart()}`},drawingTokenForParagraph(g,h){return p(h,e.session).drawingTokenForParagraph(g)},mintValidatedBytes(g,h){let y=s.get(g.resourceKey);return !y||y.contentId!==g.contentId?null:chunkRUS2YBWU_cjs.fb(g,h)},sync(g){g.packageRevision()!==n&&m(g);},dispose(){for(let g of o.values())g.dispose();o.clear(),a.clear();for(let g of d.values())chunkRUS2YBWU_cjs.hb(g);d.clear(),s.clear(),e.resourceLookup||r.dispose();}})}function Ph(e,n){let t=[],r=o=>{if(o.kind==="paragraph"){let a=n(o);a&&t.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),t.sort().join(";")}function xR(e){let n=t=>{if(t.kind==="textValue"||chunkRUS2YBWU_cjs.dc(t)||chunkRUS2YBWU_cjs.bc(t)!==null)return false;if(t.kind==="text"||t.localName==="t"){for(let r of t.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of t.children)if(r.kind!=="textValue"&&n(r))return true;return false};for(let t of e.children)if(t.kind!=="textValue"&&n(t))return true;return false}function vh(e,n){for(let t of n.resultParagraphIds){let r=chunkRUS2YBWU_cjs.Fa(e,t);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&xR(r))return true}return false}var wh=new WeakMap,Rh=new WeakMap,Ih=new WeakMap;function Gc(e){let n=wh.get(e);if(n)return n;let t=new Set;for(let r of chunkRUS2YBWU_cjs.Ac(e))t.add(r.beginParagraphId),t.add(r.endParagraphId);return wh.set(e,t),t}function $c(e){let n=Rh.get(e);if(n)return n;let t=new Set;for(let r of chunkRUS2YBWU_cjs.Ac(e))vh(e,r)||t.add(r.beginParagraphId);return Rh.set(e,t),t}function Xc(e){let n=Ih.get(e);if(n)return n;let t=new Set;for(let r of chunkRUS2YBWU_cjs.Ac(e))if(!vh(e,r))for(let o of r.resultParagraphIds)t.add(o);return Ih.set(e,t),t}var SR=4,Th=256;function PR(e){return `txbx-${e}`}function Dl(e,n){let t=e.textboxStory;if(!t)return null;let r=rn(e.extentEmu.cx),o=rn(e.extentEmu.cy),a=rn(t.insetsEmu.left),i=rn(t.insetsEmu.right),l=rn(t.insetsEmu.top),s=rn(t.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=rn(t.strokeWidthEmu),f={fillHex:t.fillHex,strokeHex:t.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((n.depth??0)>=SR)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let m=Vm(t.content,n.displayMode),g=PR(e.drawingNodeId),h=0,y=xr(m,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${g}-line-${h++}`,styleCascade:n.styleCascade,...n.pageContext?{pageContext:n.pageContext}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...n.displayMode?{displayMode:n.displayMode}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:{}}),x=y.blocks,T=y.bottom,R;if(x.length>Th){x=x.slice(0,Th);let w=x[x.length-1];T=w?w.box.y+w.box.height:0,R="textbox-fragment-limit";}if(T>c+.001){let w=x.filter(L=>L.box.y<c-.001);w.length<x.length&&(x=w,R=R??"textbox-height-clip");}let B=Math.max(0,c-T),E=t.verticalAnchor==="center"?B/2:t.verticalAnchor==="bottom"?B:0;return {fragments:x,flowHeight:T,contentOffset:{x:a,y:l+E},...f,...R?{fallbackReason:R}:{}}}var wR=128,kh=new WeakMap;function RR(e){let n=kh.get(e);if(n!==void 0)return n;let t=chunkHCSWWXS2_cjs.y(chunkRUS2YBWU_cjs.xa(e));return kh.set(e,t),t}function IR(e){let n=Math.max(1,Math.floor(e)),t=new Map;return {get(r){let o=t.get(r);if(o!==void 0)return t.delete(r),t.set(r,o),o},set(r,o){for(t.has(r)&&t.delete(r),t.set(r,o);t.size>n;){let a=t.keys().next();if(a.done)break;t.delete(a.value);}},get size(){return t.size}}}function vR(e,n,t,r,o,a,i,l=wR,s,d=mn,c,u,f,p,m,g){let h=xd(e.root),y=IR(l),x=vt(e,d),T=yr({numberingIndex:g?.numberingIndex,styleCascade:a},x).listItems,R=RR(e),B,E=w=>{let L=zt(h)||c?w:void 0,C=L?.pageNumber??p?.pageNumber??1,k=Id(L,h)+(c?`|pn:${C}`:"");if(k===""){if(B)return B}else {let _=y.get(k);if(_)return _}let b=0,H=[],O=()=>{let _=L?.pageNumber??p?.pageNumber??1,z=p?.pageWidth??n,I=p?.pageHeight??Math.max(1,n),A=p?.marginLeft??0,F=p?.marginRight??0,Y=p?.marginTop??0,K=p?.marginBottom??0,$=Math.max(1,I-Y-K);return Object.freeze({pageNumber:_,pageWidth:z,pageHeight:I,marginLeft:A,marginRight:F,marginBottom:K,contentInsetTop:Y,contentInsetBottom:K,contentWidth:n,contentHeight:$,contentBandHeight:$,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},te=Object.freeze([]),v;if(c){let _=false;for(let z=0;z<pr;z+=1){H.splice(0,H.length),b=0,v=xr(x,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+k+(d===mn?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${b++}`,styleCascade:a,...T?{listItems:T}:{},pageContext:L,...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:O,pageContentClip:()=>ha(O()),layoutTextboxStoryFor:A=>Dl(A,{measurer:t,producer:r+k+(d===mn?"":`|rev:${d}`),cache:o,styleCascade:a,...L?{pageContext:L}:{},...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{}}),collectAnchoredDrawings:A=>{H.push(...A);},columnBoxForParagraph:A=>Object.freeze({x:0,y:A.y,width:n,height:A.height}),pageExclusionZones:()=>te,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let I=Kd(H,c,0,n);if(I.length===0){_=true,te=I;break}if(z>0&&it(te)===it(I)){_=true,te=I;break}te=I;}if(!_)throw new fo(`header/footer exclusion reflow did not converge within ${pr} passes`)}else v=xr(x,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+k+(d===mn?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${b++}`,styleCascade:a,...T?{listItems:T}:{},pageContext:L,...s!==void 0?{defaultTabStopPt:s}:{},displayMode:d,...m?{documentProperties:m}:{}});let M={partName:e.name,part:e,contentKey:R,fragments:v.blocks,flowHeight:v.bottom,pageFieldNeeds:h,...H.length>0?{anchoredDrawings:Object.freeze([...H])}:{},withPageContext:_=>!zt(h)&&!M.anchoredDrawings?.length?B??M:E(_)};return k===""?B=M:y.set(k,M),M};return E(i)}function _a(e,n,t){let r=t-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:m=>{let g=p(m);return {...g,box:o(g.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},l=a(e.header),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${n}`,index:n,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}function Vc(e){let n=[],t=r=>{if(r.kind==="table"){for(let a of r.rows)for(let i of a.cells)for(let l of i.blocks)t(l);return}let o=r.marker;o&&n.push(`${r.paragraphId}=${o.text}@${o.numFmt}:${o.level}`);};for(let r of e.fragments)t(r);return n.length===0?"":`|list:${n.join(",")}`}function Yc(e){let n=[],t=r=>{if(r.kind==="table"){for(let o of r.rows)for(let a of o.cells)for(let i of a.blocks)t(i);return}for(let o of r.lines)for(let a of o.drawings??[])n.push(Al(a.resource));};for(let r of e.anchoredDrawings??[])n.push(Al(r.resource));for(let r of e.fragments)t(r);return n.length===0?"":`!${n.join("!")}`}function Oh(e,n,t){if(!e)return "";let r=(o,a)=>[...a].map(([i,l])=>`${o}${i}=${l.flowHeight}@${l.contentKey}${Yc(l)}${Vc(l)}`).sort().join(",");return `|hf:${n},${t},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+r("h",e.headers)+";"+r("f",e.footers)}function Ch(e){return e.delta===0?true:(e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity)&&(!e.titlePage||e.markPageCount>0)&&!e.hasNoteReserves&&!e.hasExclusionZones}var TR="http://schemas.openxmlformats.org/wordprocessingml/2006/main",kR="http://schemas.microsoft.com/office/word/2010/wordml",OR="http://schemas.microsoft.com/office/word/2012/wordml";function CR(e){if(e.kind!=="textValue"){for(let n of e.attributes)if(n.localName==="val"&&n.namespaceUri===TR)return n.value}}function Ro(e){for(let n of e.children)if(n.kind!=="textValue"&&(n.kind==="contentControlProperties"||n.localName==="sdtPr"))return n}function Kt(e,n){if(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function lt(e,n){let t=Kt(e,n);return t?CR(t):void 0}function _l(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Hl(e){if(!e)return "richText";for(let n of e.children){if(n.kind==="textValue")continue;let t=n.kind,r=n.localName,o=n.namespaceUri;if(t==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(t==="contentControlComboBox"||r==="comboBox")return "comboBox";if(t==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(t==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(t==="contentControlCheckbox"||r==="checkbox"&&o===kR)return "checkbox";if(r==="repeatingSection"&&o===OR)return "repeatingSection"}return "richText"}function Bh(e){let n=(t,r)=>{for(let o of t)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(chunkRUS2YBWU_cjs.Lb(o)&&r<chunkRUS2YBWU_cjs.Kb){let a=n(chunkRUS2YBWU_cjs.Ob(o),r+1);if(a)return a}}return null};return n(chunkRUS2YBWU_cjs.Ob(e),0)??"inline"}function Fh(e,n){let t=[n],r=new Set([n]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),t.push(a.part));return t}var Lh=new WeakMap;function Mh(e){if(e.length===1)return Ha(e[0]);let n=Lh.get(e[0]);if(n&&BR(n.parts,e))return n.index;let t=[],r=new Set,o=new Set;for(let l of e){let s=Ha(l);for(let d of s.controls)t.push(d);for(let d of s.neededBlockIds)r.add(d);for(let d of s.neededParagraphIds)o.add(d);}let a=`${[...r].sort().join(",")};${[...o].sort().join(",")}`,i={controls:t,neededBlockIds:r,neededParagraphIds:o,neededToken:a};return Lh.set(e[0],{parts:e,index:i}),i}function BR(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(e[t]!==n[t])return false;return true}function za(e){let n=Eh.get(e);if(n!==void 0)return n;let t=LR(e);return Eh.set(e,t),t}var Eh=new WeakMap,Nh=new WeakMap;function LR(e){let n=(t,r)=>{if(t.kind==="textValue")return "";if(r===0&&(t.kind==="paragraph"||t.kind==="table")){let a=Nh.get(t);if(a!==void 0)return a}let o;if(chunkRUS2YBWU_cjs.Lb(t)){if(r>=chunkRUS2YBWU_cjs.Kb)return "";let a=Ro(t),i=[t.id,lt(a,"alias")??"",lt(a,"tag")??"",_l(lt(a,"lock")),Hl(a),Kt(a,"showingPlcHdr")?"1":"0",Kt(a,"dataBinding")?"1":"0"].join(":"),l=chunkRUS2YBWU_cjs.Ob(t).map(s=>n(s,r+1)).filter(s=>s.length>0);o=[i,...l].join("|");}else o=t.children.map(a=>n(a,r)).filter(a=>a.length>0).join("|");return r===0&&(t.kind==="paragraph"||t.kind==="table")&&Nh.set(t,o),o};return n(e.root,0)}function zl(e){if(e.kind==="textValue")return e.value.length;if(e.kind==="tab"||e.kind==="hardBreak")return 1;if(e.kind==="runProperties"||e.kind==="paragraphProperties"||e.kind==="generic")return 0;if(chunkRUS2YBWU_cjs.Lb(e)){let t=0;for(let r of chunkRUS2YBWU_cjs.Ob(e))t+=zl(r);return t}let n=0;for(let t of e.children)n+=zl(t);return n}var Ah=new WeakMap;function Ha(e){let n=Ah.get(e);if(n!==void 0)return n;let t=FR(e),r=new Set,o=new Set;for(let i of t){for(let l of i.blockIds)r.add(l);i.paragraphId!==void 0&&o.add(i.paragraphId);}let a={controls:t,neededBlockIds:r,neededParagraphIds:o,neededToken:`${[...r].sort().join(",")};${[...o].sort().join(",")}`};return Ah.set(e,a),a}function FR(e){let n=[],t=(a,i)=>{for(let l of a){if(l.kind==="paragraph"||l.kind==="table"){i.push(l.id);continue}if(chunkRUS2YBWU_cjs.Lb(l)){t(chunkRUS2YBWU_cjs.Ob(l),i);continue}(l.kind==="tableRow"||l.kind==="tableCell")&&t(l.children,i);}},r=(a,i,l,s,d)=>{let c=l;for(let u of a)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunkRUS2YBWU_cjs.Lb(u)){if(s>=chunkRUS2YBWU_cjs.Kb){c+=zl(u);continue}let f=Ro(u),p=_l(lt(f,"lock")),m=[...d,p],g=c,h=r(chunkRUS2YBWU_cjs.Ob(u),i,c,s+1,m);n.push({control:u,nestingDepth:s,lockStack:m,level:"inline",paragraphId:i,range:{start:g,end:h},blockIds:[]}),c=h;continue}if(u.kind==="hyperlink"){c=r(u.children,i,c,s,d);continue}c+=zl(u);}return c},o=(a,i,l)=>{for(let s of a){if(s.kind==="textValue")continue;if(s.kind==="paragraph"){r(s.children,s.id,0,i,l);continue}if(s.kind==="table"){for(let g of s.children)g.kind==="tableRow"&&o([g],i,l);continue}if(s.kind==="tableRow"){for(let g of s.children)g.kind==="tableCell"?o(g.children,i,l):chunkRUS2YBWU_cjs.Lb(g)&&o([g],i,l);continue}if(!chunkRUS2YBWU_cjs.Lb(s)||i>=chunkRUS2YBWU_cjs.Kb)continue;let d=Ro(s),c=_l(lt(d,"lock")),u=[...l,c],f=Bh(s),p=chunkRUS2YBWU_cjs.Ob(s);if(f==="inline"){o(p,i+1,u);continue}let m=[];t(p,m),n.push({control:s,nestingDepth:i,lockStack:u,level:f,blockIds:m}),o(p,i+1,u);}};for(let a of chunkRUS2YBWU_cjs.De(e))if(a.root.kind!=="textValue")for(let i of a.root.children){if(i.kind==="textValue")continue;let l=Dh.get(i);if(l!==void 0){for(let d of l)n.push(d);continue}let s=n.length;o([i],0,[]),Dh.set(i,Object.freeze(n.slice(s)));}return n}var Dh=new WeakMap,Kc=1<<20,_h=new WeakMap,Hh=null,zh=0;function MR(e){return e!==Hh&&(Hh=e,zh+=1),zh}function ER(e,n,t,r){let o=_h.get(e);if(o!==void 0&&o.neededStamp===t)return o;let a=[],i=[],l=e.index*Kc,s=0,d=0,c=p=>s===0&&d===0?p:{x:p.x+s,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){n.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c(m.box)}));let g=n.neededParagraphIds.has(m.paragraphId);for(let h of m.lines){let y=l;if(l=Math.min(l+1,e.index*Kc+Kc-1),!g)continue;let x=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0));for(let T of h.spans)i.push({pageIndex:p,paragraphId:T.range.paragraphId,start:T.range.start,end:T.range.end,line:y,box:{x:T.box.x+s,y:T.box.y+h.leading+d,width:T.box.width,height:x}});}return}n.neededBlockIds.has(m.tableId)&&(a.push({pageIndex:p,blockId:m.tableId,box:c(m.box)}));for(let g of m.rows)if(!g.isHeaderRepeat)for(let h of g.cells)for(let y of h.blocks)u(p,y);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){s=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}s=0,d=0;let f={neededStamp:t,blocks:a,spans:i};return _h.set(e,f),f}function NR(e,n,t){let r=MR(n.neededToken),o=new Map,a=new Map,i=new Set;for(let l of e.pages){let s=ER(l,n,r);for(let d of s.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of s.spans){let c=a.get(d.paragraphId);c?(d.start<c[c.length-1].start&&i.add(d.paragraphId),c.push(d)):a.set(d.paragraphId,[d]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function AR(e,n,t){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of n.blocksById.get(a)??[]){let l=r.get(i.pageIndex);l?l.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let l=Yo(i);return l?[{pageIndex:a,box:l}]:[]})}function DR(e,n,t,r){let o=t.spansByParagraph.get(e)??[],a=new Map,i=t.repeatedParagraphs.has(e),l=0,s=o.length;for(;!i&&l<s;){let d=l+(s-l>>1);(n.start===n.end?o[d].end<n.start:o[d].end<=n.start)?l=d+1:s=d;}i&&(l=0);for(let d=l;d<o.length;d+=1){let c=o[d];if(c.end<=n.start)continue;if(c.start>=n.end){if(i)continue;break}let u=a.get(c.line);u?u.boxes.push(c.box):a.set(c.line,{pageIndex:c.pageIndex,boxes:[c.box]});}if(a.size===0&&n.start===n.end){let d=[],c=new Set;for(let u=l;u<o.length;u+=1){let f=o[u];if(f.start>n.start){if(i)continue;break}if(n.start>f.end||c.has(f.pageIndex))continue;c.add(f.pageIndex);let p=f.start===f.end?f.box.x:f.box.x+f.box.width*(n.start-f.start)/Math.max(1,f.end-f.start);if(d.push({pageIndex:f.pageIndex,box:{x:p,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(d.length>0)return d}return [...a.entries()].sort(([d],[c])=>d-c).flatMap(([,d])=>{let c=Yo(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}function _R(e,n,t){let r=Ro(e.control),o=lt(r,"alias"),a=lt(r,"tag"),i=e.lockStack[e.lockStack.length-1]??"unlocked",l=e.level==="inline"&&e.paragraphId&&e.range?DR(e.paragraphId,e.range,n):AR(e.blockIds,n);return {id:e.control.id,...o!==void 0?{alias:o}:{},...a!==void 0?{tag:a}:{},controlType:Hl(r),lock:i,effectiveLock:Ko(e.lockStack),placeholder:Kt(r,"showingPlcHdr")!==void 0,bound:Kt(r,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:l}}function HR(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function zR(e,n){return e.id===n.id&&e.alias===n.alias&&e.tag===n.tag&&e.controlType===n.controlType&&e.lock===n.lock&&e.effectiveLock===n.effectiveLock&&e.placeholder===n.placeholder&&e.bound===n.bound&&e.nestingDepth===n.nestingDepth&&e.level===n.level&&HR(e.fragments,n.fragments)}function Io(e,n){if(!e)return n.length===0;if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(!zR(e[t],n[t]))return false;return true}function Uc(e,n){return {revision:e.revision,pages:e.pages,...n.contentControls!==void 0?{contentControls:n.contentControls}:{},...n.controlContextToken!==void 0?{controlContextToken:n.controlContextToken}:{}}}var jh=new WeakMap;function Zc(e,n,t=za(n),r){let o=Fh(e,n);if(o.length>1){let f=o.map(p=>za(p));t=f.some(p=>p!=="")?f.join("|"):"";}if(t===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===t&&Io(e.contentControls,[]))return e;let p=f?e.pages.map(m=>m.contentControls!==void 0&&m.contentControls.length>0?{...m,contentControls:[]}:m):e.pages;return {revision:e.revision,pages:p,contentControls:[],controlContextToken:t}}let a=Mh(o),i=NR(e,a),l=a.controls.map(f=>_R(f,i)),s=new Map;for(let f of l)for(let p of f.fragments){let m=s.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):s.set(p.pageIndex,[g]);}if(e.controlContextToken===t&&Io(e.contentControls,l)&&e.pages.every(f=>Io(f.contentControls,s.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=s.get(f.index)??[];if(Io(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=jh.get(f);if(m&&Io(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return jh.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===t&&Io(e.contentControls,l)?e:{revision:e.revision,pages:u,contentControls:l,controlContextToken:t}}function jR(e,n){return Ha(e).controls.filter(r=>n?r.paragraphId!==void 0?n.has(r.paragraphId):Wh(r.control).some(o=>n.has(o)):true).map(Gh)}function Wh(e){let n=[],t=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){n.push(o.id);continue}if(chunkRUS2YBWU_cjs.Lb(o)){t(chunkRUS2YBWU_cjs.Ob(o));continue}t(o.children);}};return t(chunkRUS2YBWU_cjs.Ob(e)),n}function WR(e,n){let t=null;for(let r of Ha(e).controls)(r.paragraphId===n||r.blockIds.includes(n)||Wh(r.control).includes(n))&&(!t||r.nestingDepth>=t.nestingDepth)&&(t=r);return t?Gh(t):null}function Gh(e){let n=Ro(e.control),t=lt(n,"alias"),r=lt(n,"tag");return {id:e.control.id,...t!==void 0?{alias:t}:{},...r!==void 0?{tag:r}:{},controlType:Hl(n),lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:Ko(e.lockStack),placeholder:Kt(n,"showingPlcHdr")!==void 0,bound:Kt(n,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var jl=4096,Ut=20,Vn=Object.freeze({pageSize:Object.freeze({widthTwips:12240,heightTwips:15840}),margins:Object.freeze({topTwips:1440,rightTwips:1440,bottomTwips:1440,leftTwips:1440,headerTwips:720,footerTwips:720,gutterTwips:0}),columns:Object.freeze({count:1,gapTwips:720,equalWidth:true,separator:false,definitions:Object.freeze([])}),landscape:false,titlePage:false,breakType:"nextPage"});function qc(e,n,t=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<=0||r>t?n:r}function Sr(e,n){if(e===void 0||!/^-?\d{1,7}$/.test(e))return n;let t=Number(e);return !Number.isFinite(t)||Math.abs(t)>31680?n:t}function Vh(e,n,t=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return n;let r=Number(e);return !Number.isFinite(r)||r<0||r>t?n:r}var Ye=(e,n)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes??[])if(t.localName===n)return t.value}},Pr=(e,n)=>{if(e.kind!=="textValue"){for(let t of e.children??[])if(t.kind!=="textValue"&&"localName"in t&&t.localName===n)return t}};function $h(e,n,t){let r=Ye(e,n);return r===void 0?t:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:t}function GR(e){if(!e)return 1;let n=Ye(e,"num");return !n||!/^\d{1,7}$/.test(n)?1:Math.max(1,Math.min(12,Number(n)))}function $R(e,n,t){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=n||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:qc(Ye(o,"w"),1,31680),gapTwips:a===n-1?0:Vh(Ye(o,"space"),t)});}return r}function XR(e){let n=e?Pr(e,"type"):void 0,t=n?Ye(n,"val"):void 0;return t==="continuous"||t==="evenPage"||t==="oddPage"||t==="nextColumn"?t:"nextPage"}var VR=new Set(["hyphen","period","colon","emDash","enDash"]);function Yh(e){let n=Pr(e,"pgNumType");if(!n||n.kind==="textValue")return;let t={},r=Ye(n,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let l=Number(r);Number.isFinite(l)&&l>=0&&l<=9999&&(t.start=l);}let o=Ye(n,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(t.fmt=o);let a=Ye(n,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let l=Number(a);Number.isFinite(l)&&l>=0&&l<=9&&(t.chapStyle=l);}let i=Ye(n,"chapSep");return i!==void 0&&VR.has(i)&&(t.chapSep=i),t}function Wl(e){if(!e)return Vn;let n=Pr(e,"pgSz"),t=Pr(e,"pgMar"),r=Pr(e,"cols"),o=Vn,a=n?Ye(n,"orient"):void 0,i=n?qc(Ye(n,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,l=n?qc(Ye(n,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,s=Yh(e),d=GR(r),c=r?Vh(Ye(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?$h(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:l},margins:{topTwips:t?Sr(Ye(t,"top"),1440):o.margins.topTwips,rightTwips:t?Sr(Ye(t,"right"),1440):o.margins.rightTwips,bottomTwips:t?Sr(Ye(t,"bottom"),1440):o.margins.bottomTwips,leftTwips:t?Sr(Ye(t,"left"),1440):o.margins.leftTwips,headerTwips:t?Sr(Ye(t,"header"),720):o.margins.headerTwips,footerTwips:t?Sr(Ye(t,"footer"),720):o.margins.footerTwips,gutterTwips:t?Sr(Ye(t,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?$h(r,"sep",false):false,definitions:u?[]:$R(r,d,c)},landscape:a==="landscape"||i>l,titlePage:chunkRUS2YBWU_cjs.ta(e,"titlePg"),breakType:XR(e),...s!==void 0?{pageNumbering:s}:{}}}function YR(e){let n=t=>{if(t.kind!=="textValue"){if(t.kind==="body")return Pr(t,"sectPr");for(let r of t.children??[]){let o=n(r);if(o)return o}}};return n(e.root)}function Gl(e){let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n)return;let t=Pr(n,"sectPr");return t&&t.kind!=="textValue"?t:void 0}function KR(e){let n=Kh(e);return n[n.length-1]?.properties??Vn}function Kh(e,n="all-markup"){return Uh(e,n).sections}function Uh(e,n="all-markup"){return Jc(e,vt(e,n))}var Xh=chunkRUS2YBWU_cjs.Ie(16);function Jc(e,n){let t=Xh.get(n);if(t&&t.part===e)return t.result;let r=UR(e,n);return Xh.set(n,{part:e,result:r}),r}function UR(e,n){let t=[],r=0,o=false;for(let i=0;i<n.length;i+=1){let l=n[i];if(l.kind!=="paragraph")continue;let s=Gl(l);if(s){if(t.length>=jl){o=true;continue}t.push({index:t.length,properties:Wl(s),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(t.length>0){let i=t[t.length-1];t[t.length-1]={...i,blockEndExclusive:n.length};}return {sections:t,truncated:true}}let a=YR(e);if(r<n.length||t.length===0){if(t.length>=jl){let i=t[t.length-1];return t[t.length-1]={...i,blockEndExclusive:n.length},{sections:t,truncated:true}}t.push({index:t.length,properties:Wl(a),blockStart:r,blockEndExclusive:n.length});}else if(a){if(t.length>=jl)return {sections:t,truncated:true};t.push({index:t.length,properties:Wl(a),blockStart:r,blockEndExclusive:n.length});}return {sections:t,truncated:o}}function wr(e){let n=e.pageSize.widthTwips/Ut,t=e.pageSize.heightTwips/Ut,r=(e.margins.leftTwips+e.margins.gutterTwips)/Ut,o=e.margins.rightTwips/Ut,a=e.margins.topTwips/Ut,i=e.margins.bottomTwips/Ut;return n-r-o<=0||t-a-i<=0?Uo:{width:n,height:t,margin:{top:a,right:o,bottom:i,left:r},headerDistance:Math.max(0,e.margins.headerTwips)/Ut,footerDistance:Math.max(0,e.margins.footerTwips)/Ut}}function Qc(e,n){let t=Math.max(1,n),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,l;if(a){i=o.map(p=>Math.max(1,p.widthTwips/20)),l=o.slice(0,-1).map(p=>Math.max(0,p.gapTwips/20));let c=l.reduce((p,m)=>p+m,0),u=Math.max(r*1,t-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(1,m*p));}}else {let c=Math.max(0,e.gapTwips/20),u=Math.min(c,Math.max(0,(t-r*1)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(1,(t-l.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let s=[],d=0;for(let c=0;c<r;c+=1)s.push(d),d+=i[c]+(l[c]??0);return {count:r,widths:i,gaps:l,lefts:s,separator:e.separator===true&&r>1}}function ZR(e,n,t){return ja(e,n,()=>t)}function ja(e,n,t){let r=[],o=null,a=-1,i=-1;for(let l of n){let s=t(l.sectionIndex);if(l.customMarkFollows){r.push({noteId:l.noteId,mark:null});continue}o===null?(o=s.numStart,a=l.sectionIndex,i=l.pageIndex??-1):s.numRestart==="eachSect"&&l.sectionIndex!==a?(o=s.numStart,a=l.sectionIndex):s.numRestart==="eachPage"&&l.pageIndex!==void 0&&l.pageIndex!==i?(o=s.numStart,i=l.pageIndex):s.numRestart==="eachSect"?a=l.sectionIndex:s.numRestart==="eachPage"&&l.pageIndex!==void 0&&(i=l.pageIndex);let d=o;o+=1,r.push({noteId:l.noteId,mark:bt(s.numFmt,d),displayNumber:d});}return r}function Zh(e){let n=new Map;for(let t of e)n.set(t.noteId,t.mark);return n}var vo=chunkRUS2YBWU_cjs.xd,Wa=512,eu=6,qR=1/3;function qh(e,n){return `note-${e}-${n}`}function JR(e){if(!e)return [];let n=[];for(let t of chunkRUS2YBWU_cjs.zd(e.root)){if(n.length>=vo)break;chunkRUS2YBWU_cjs.qd(t)&&n.push(t);}return n}function Jh(e,n){if(e){for(let t of chunkRUS2YBWU_cjs.zd(e.root))if(chunkRUS2YBWU_cjs.pd(t)===n)return t}}function nu(e,n,t){let r=chunkRUS2YBWU_cjs.nd(e),o=chunkRUS2YBWU_cjs.od(e);if(!r||o===null)return null;let a=chunkRUS2YBWU_cjs.ed(r,o),i=il(e),l=qh(r,o),s=0,d=Math.max(1,n),c=t.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=t.noteMarks?{...t.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},f=t.ownerPartName?t.drawingsForPart?.(t.ownerPartName):void 0,p=yr({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},i).listItems,m=xr(i,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|${a}`,nextLineId:()=>`${l}-line-${s++}`,styleCascade:t.styleCascade,...p?{listItems:p}:{},noteMarks:u,...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),g=m.blocks,h=m.bottom,y;if(g.length>Wa){g=g.slice(0,Wa);let x=g[g.length-1];h=x?x.box.y+x.box.height:0,y="note-fragment-limit";}if(h>c){let x=[],T=0;for(let R of g){let B=R.box.y+R.box.height;if(B>c+.001&&x.length>0)break;x.push(R),T=B;}g=x,h=T,y=y??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkRUS2YBWU_cjs.pd(e),fragments:g,flowHeight:h,...y?{fallbackReason:y}:{}}}function $l(e,n,t,r){if(!e)return null;let o=chunkRUS2YBWU_cjs.Ad(e.root,n);return o?nu(o,t,{...r,ownerPartName:e.name}):null}function Qh(e,n){return "single"}function ey(e){let n=il(e);if(n.length===0)return true;for(let t of n){if(t.kind!=="paragraph")return false;let r=t.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(gt(r)).length>0||!QR(t))return false}return true}function QR(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="paragraphProperties"){if(n.kind==="run"){if(!eI(n))return false;continue}return false}return true}function eI(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="runProperties"&&!(chunkRUS2YBWU_cjs.ld(n)||chunkRUS2YBWU_cjs.md(n)||chunkRUS2YBWU_cjs.kd(n))){if(n.kind==="text"){if(n.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function Ga(e,n,t,r,o,a){let i=Qh(),l=Jh(e,n);if(l){if(ey(l))return {kind:n,fragments:[],flowHeight:eu,synthetic:false,ruleStyle:i};let s=nu(l,t,{...r,...e?{ownerPartName:e.name}:{}});if(s&&s.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return s.flowHeight>d+.001?{kind:n,fragments:[],flowHeight:eu,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:n,fragments:s.fragments,flowHeight:s.flowHeight,synthetic:false}}}return {kind:n,fragments:[],flowHeight:eu,synthetic:true,ruleStyle:i}}function ny(e,n){let t=Math.max(1,e*qR);return {x:0,y:Math.max(0,(n-.75)/2),width:t,height:.75}}function Xl(e,n,t,r){if(e.ruleStyle!==void 0||e.synthetic){let o=ny(t,e.flowHeight);return {x:n+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:n,y:r,width:t,height:e.flowHeight}}var ru=8,cy=4096,uy=256,fy=14,ou=12;function nI(e){let n=[];for(let t of e)n.push(`${t.noteKind}|${t.noteId}|${t.paragraphId}|${t.atomOffset}|${t.customMarkFollows?1:0}|${t.sectionIndex}`);return n.join(";")}function Vl(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function tI(e){return e.drawingsForPart!==void 0&&e.drawingLayoutEpoch===void 0?null:[e.producer,e.defaultTabStopPt??"",e.drawingLayoutEpoch??"",Vl(e.documentFootnoteProps),Vl(e.documentEndnoteProps),e.footnotePropsBySection.map(Vl).join(";"),e.endnotePropsBySection.map(Vl).join(";")].join("\0")}var ty=new WeakMap;function rI(e,n,t){if(!e)return {memo:null,allHits:n,reused:false};let r=tI(t);if(r===null)return e.notes=null,{memo:null,allHits:n,reused:false};let o=nI(n),a=e.notes;if(a&&a.hitsFingerprint===o){let l=ty.get(a);if(a.inputFingerprint===r&&l&&l.footnotesPart===t.footnotesPart&&l.endnotesPart===t.endnotesPart&&l.measurer===t.measurer&&l.cache===t.cache&&l.styleCascade===t.styleCascade&&l.numberingIndex===t.numberingIndex)return {memo:a,allHits:a.allHits,reused:true}}let i={hitsFingerprint:o,inputFingerprint:r,allHits:n,provisionalMarks:cu(n,t),finalMarks:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return ty.set(i,{footnotesPart:t.footnotesPart,endnotesPart:t.endnotesPart,measurer:t.measurer,cache:t.cache,styleCascade:t.styleCascade,numberingIndex:t.numberingIndex}),e.notes=i,{memo:i,allHits:n,reused:false}}function oI(e,n){return n>=e.range.start&&n<e.range.end}var ry=new WeakMap;function py(e){let n=ry.get(e);if(n)return n;let t=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){t.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)r(l.blocks);}};return r(e),ry.set(e,t),t}function iu(e){let n=new Map;for(let t of e){let r=n.get(t.paragraphId);r?r.push(t):n.set(t.paragraphId,[t]);}return n}function Kl(e,n,t){let r=py(e.fragments);if(!t)return n.filter(i=>r.some(l=>Ic(l,i.paragraphId,i.atomOffset)));let o=[],a=new Set;for(let i of r)for(let l of Yt(i)){let s=t.get(l);if(s)for(let d of s)a.has(d)||Ic(i,l,d.atomOffset)&&(a.add(d),o.push(d));}return o}function my(){let e=new Map;return {get(n,t,r,o,a,i,l){let d=`${n?.name??"none"}\0${o}\0${t}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=Ga(n,t,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function aI(e,n){let t=[];for(let r of e){if(t.length>=vo)break;t.push({...r,sectionIndex:n.get(r.paragraphId)??0});}return t}function To(e,n){return e.footnotePropsBySection[n]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function lu(e,n){return e.endnotePropsBySection[n]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function gy(e,n){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:e.defaultTabStopPt,projectLink:e.projectLink,projectFieldLink:e.projectFieldLink,documentProperties:e.documentProperties,noteMarks:n,drawingsForPart:e.drawingsForPart}}function iI(e,n){return n===0?e:{...e,box:{...e.box,y:e.box.y+n},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+n}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+n}}}:{},...e.borders?{borders:e.borders.map(t=>({...t,box:{...t.box,y:t.box.y+n}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+n}}}:{},lines:e.lines.map(t=>({...t,box:{...t.box,y:t.box.y+n},spans:t.spans.map(r=>({...r,box:{...r.box,y:r.box.y+n}}))}))}}function oy(e,n){return n===0?[...e]:e.map(t=>t.kind==="paragraph"?iI(t,n):{...t,box:{...t.box,y:t.box.y+n}})}function lI(e,n){if(e.lines.length===0)return e.box.y+e.box.height<=n+.001?{head:e,tail:null}:{head:null,tail:e};let t=0;for(;t<e.lines.length;t+=1){let g=e.lines[t];if(g.box.y+g.box.height>n+.001)break}if(t===0)return {head:null,tail:e};if(t>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,t),o=e.lines.slice(t),a=r[r.length-1],i=e.box.y,l=a.box.y+a.box.height,s=e.borders?.filter(g=>g.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,l-i)},...s&&s.length>0?{borders:s}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,l-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(g=>g.side!=="top"),m={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:m}}function sI(e){let n=0;for(let t of e)n=Math.max(n,t.box.y+t.box.height);return n}function Ul(e,n,t){if(e.flowHeight<=n+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(n<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<Wa;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=n+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=lI(f,n);if(m.head)r.push(m.head),o=m.head.box.y+m.head.box.height,i=m.tail,a=u+1;else {let g=t?.fullContentHeight??n,y=f.lines[0]?.box.height??f.box.height;if(r.length===0&&n>=g-.001&&y>g+.001){t?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),T=x[0]?.box.y??0;return {head:[],headHeight:0,tail:oy(x,-T),tailHeight:Math.max(0,e.flowHeight-T)}}a=u,i=null;}break}a=u;break}let l=[...i?[i]:[],...e.fragments.slice(a)];if(l.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let s=l[0]?.box.y??0,d=oy(l,-s),c=sI(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function dI(e,n){let t="FootnoteReference";if(!n)return {...tt,verticalAlign:"superscript"};let r=It([],[{localName:"rStyle",attributes:{val:t}}],n);return Ne(r,n.themeFonts)}function cI(e,n,t,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(n.footnotePropsBySection.length,n.endnotePropsBySection.length,1,...t.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=To(n,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<ou;p+=1){let m=bt(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=lu(n,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<ou;p+=1){let m=bt(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let l=dI("footnote",n.styleCascade),s,d=-1;for(let c of o){let u=n.measurer.measure(c,l);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(s?.length??0))&&(s=c,d=u);}return s}function hy(e,n,t){let r=ja("footnote",e,l=>To(t,l)),o=ja("endnote",n,l=>lu(t,l)),a=new Map;for(let l of r)a.set(ur("footnote",l.noteId),l.mark);for(let l of o)a.set(ur("endnote",l.noteId),l.mark);let i=cI(a,t,e,n);return {marks:a,...i?{reservedMarkText:i}:{}}}function Zl(e){let n=0;for(let t of e.fragments)n=Math.max(n,t.box.y+t.box.height);return n}function au(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:n,endnotes:t,noteStream:r,...o}=e;return o}function uI(e,n){if(n.marks.size===0)return e;let t=false,r=e.pages.map(o=>{if(!fI(o.fragments))return o;let a=yy(o.fragments,n);return a===o.fragments?o:(t=true,{...o,fragments:a})});return t?{revision:e.revision,pages:r}:e}var ay=new WeakMap;function fI(e){let n=ay.get(e);if(n!==void 0)return n;let t=false,r=o=>{for(let a of o){if(t)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let l of i.spans)if(l.projected&&l.noteNav?.direction==="to-note"){t=true;return}continue}for(let i of a.rows)for(let l of i.cells)r(l.blocks);}};return r(e),ay.set(e,t),t}function yy(e,n){let t=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=pI(o,n);return l!==o&&(t=true),l}let a=false,i=o.rows.map(l=>{let s=false,d=l.cells.map(c=>{let u=yy(c.blocks,n);return u===c.blocks?c:(s=true,{...c,blocks:u})});return s?(a=true,{...l,cells:d}):l});return a?(t=true,{...o,rows:i}):o});return t?r:e}function pI(e,n){let t=false,r=e.lines.map(o=>{let a=mI(o,n);return a!==o&&(t=true),a});return t?{...e,lines:r}:e}function mI(e,n){let t=false,r=e.spans.map(o=>{let a=gI(o,n);return a!==o&&(t=true),a});return t?{...e,spans:r}:e}function gI(e,n){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let t=n.marks.get(e.noteNav.scopeId);if(t===void 0)return e;let r=t??"";return e.text===r?e:{...e,text:r}}function hI(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function by(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function yI(e){for(let n=e.length-1;n>=0;n-=1)if(by(e[n]))return n;return Math.max(0,e.length-1)}function su(e,n,t,r,o,a,i,l){let s=new Map(a),d=n.filter(v=>v.noteKind==="footnote"),c=e.contentBox.width,u=gy(t,r),f=[],p=0,m=cy,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),y=l?.separatorCache?l.separatorCache.get(t.footnotesPart,g,c,"footnote",h,u,i):(()=>{let v=Ga(t.footnotesPart,g,c,u,"footnote",h);return v.fallbackReason&&i.push(v.fallbackReason),v})(),x=Math.max(0,e.contentBox.height-Zl(e)-y.flowHeight),T=Math.max(0,e.contentBox.height-fy-y.flowHeight),R=l?.reserveColumnBudget?T:x,E={fullContentHeight:Math.max(0,e.contentBox.height-y.flowHeight),reasons:i};for(let[v,M]of a){let _=v.match(/^(footnote|endnote):(-?\d+)$/);if(!_||_[1]!=="footnote")continue;let z=Number(_[2]),I=Math.max(0,R-p);if(M.height<=I+.001)f.push({noteKind:"footnote",noteId:z,scopeId:v,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:M.height},fragments:M.fragments}),p+=M.height,s.delete(v);else {let A=Ul({fragments:M.fragments,flowHeight:M.height},I,E);A.head.length>0&&(f.push({noteKind:"footnote",noteId:z,scopeId:v,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:A.headHeight},fragments:A.head}),p+=A.headHeight),A.tail.length>0?s.set(v,{fragments:A.tail,height:A.tailHeight,mark:null}):s.delete(v);}}for(let v of d){if(f.length>=vo){i.push("note-count-limit");break}let M=$l(t.footnotesPart,v.noteId,c,u);if(!M){i.push("missing-note-body");continue}let _=r.marks.get(ur("footnote",v.noteId))??null,z=Math.max(0,R-p);if(m-=M.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(M.flowHeight<=z+.001)f.push({noteKind:"footnote",noteId:v.noteId,scopeId:M.scopeId,mark:v.customMarkFollows?null:_,box:{x:e.contentBox.x,y:0,width:c,height:M.flowHeight},fragments:M.fragments}),p+=M.flowHeight;else {let I=Ul(M,z,E);I.head.length>0&&(f.push({noteKind:"footnote",noteId:v.noteId,scopeId:M.scopeId,mark:v.customMarkFollows?null:_,box:{x:e.contentBox.x,y:0,width:c,height:I.headHeight},fragments:I.head}),p+=I.headHeight),I.tail.length>0&&s.set(M.scopeId,{fragments:I.tail,height:I.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s};let w=y.flowHeight,L=w+p,C=Zl(e),k;o==="beneathText"?k=e.contentBox.y+C:(k=e.contentBox.y+e.contentBox.height-L,k=Math.max(k,e.contentBox.y+C));let b=k+w,H=f.map(v=>{let M={...v,box:{...v.box,y:b}};return b+=v.box.height,M}),O=Xl(y,e.contentBox.x,c,k);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:k,width:c,height:L},separator:{kind:g,box:O,fragments:y.fragments,synthetic:y.synthetic,...y.ruleStyle!==void 0?{ruleStyle:y.ruleStyle}:{}},notes:H},nextCarry:s}}function xy(e,n,t){return {id:`page-${n}`,index:n,box:e.box,contentBox:e.contentBox,fragments:[],...t?{noteStream:t}:{},...e.header?{header:e.header}:{},...e.footer?{footer:e.footer}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+(n-e.index)}}:{}}}function du(e,n){let t=new Set;for(let r of py(e.fragments))t.add(n.get(r.paragraphId)??0);return [...t].sort((r,o)=>r-o)}function Sy(e,n,t){for(let r=e.length-1;r>=0;r-=1)if(du(e[r],t).includes(n))return r;return Math.max(0,e.length-1)}function bI(e,n,t){let r=Sy(e,n,t);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=du(a,t);if(i.length!==0&&!i.includes(n))return o}return e.length}function xI(e){return e.map((n,t)=>n.index===t&&n.id===`page-${t}`?n:{...n,id:`page-${t}`,index:t})}function SI(e){let n=xI(e);return [...jt({revision:0,pages:n}).pages]}function PI(e,n,t,r,o,a,i,l){let s=new Map(a),d=[];if(n.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};let c=e.contentBox.width,u=gy(t,r),f=l?.separatorKind??"separator",p=z=>z==="footnote"?t.footnotesPart:t.endnotesPart,m=t.endnotesPart??t.footnotesPart,g=Math.max(0,e.contentBox.height),h=l?.separatorCache?l.separatorCache.get(m,f,c,"endnote",g,u,i):(()=>{let z=Ga(m,f,c,u,"endnote",g);return z.fallbackReason&&i.push(z.fallbackReason),z})(),y=h.flowHeight,x=Zl(e),T=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,R=hI(e),B=Math.max(0,R-T-y),w={fullContentHeight:Math.max(0,R-y),reasons:i},L=[],C=0,k=cy;for(let[z,I]of a){let A=z.match(/^(footnote|endnote):(-?\d+)$/);if(!A)continue;let F=A[1],Y=Number(A[2]),K=Math.max(0,B-C);if(I.height<=K+.001)L.push({noteKind:F,noteId:Y,scopeId:z,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:I.height},fragments:I.fragments}),C+=I.height,s.delete(z);else {let $=Ul({fragments:I.fragments,flowHeight:I.height},K,w);$.head.length>0&&(L.push({noteKind:F,noteId:Y,scopeId:z,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:$.headHeight},fragments:$.head}),C+=$.headHeight),$.tail.length>0?s.set(z,{fragments:$.tail,height:$.tailHeight,mark:null}):s.delete(z);}}for(let z=0;z<n.length;z+=1){let I=n[z];if(L.length>=vo){i.push("note-count-limit"),d.push(...n.slice(z));break}let A=p(I.noteKind),F=$l(A,I.noteId,c,u);if(!F){i.push("missing-note-body");continue}let Y=r.marks.get(ur(I.noteKind,I.noteId))??null,K=Math.max(0,B-C);if(k-=F.fragments.length,k<0){i.push("note-area-fragment-limit"),d.push(...n.slice(z));break}if(F.flowHeight<=K+.001)L.push({noteKind:I.noteKind,noteId:I.noteId,scopeId:F.scopeId,mark:I.customMarkFollows?null:Y,box:{x:e.contentBox.x,y:0,width:c,height:F.flowHeight},fragments:F.fragments}),C+=F.flowHeight;else {let $=Ul(F,K,w);$.head.length>0&&(L.push({noteKind:I.noteKind,noteId:I.noteId,scopeId:F.scopeId,mark:I.customMarkFollows?null:Y,box:{x:e.contentBox.x,y:0,width:c,height:$.headHeight},fragments:$.head}),C+=$.headHeight),$.tail.length>0&&s.set(F.scopeId,{fragments:$.tail,height:$.tailHeight,mark:null}),d.push(...n.slice(z+1));break}}if(L.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(L.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let b=e.contentBox.y+T,H=b+y,O=L.map(z=>{let I={...z,box:{...z.box,y:H}};return H+=z.box.height,I}),te=Xl(h,e.contentBox.x,c,b),v=y+C,M=Math.max(0,R-T),_=Math.min(v,M);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:b,width:c,height:_},separator:{kind:f,box:te,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:O},nextCarry:s,remainingRefs:d}}function wI(e,n,t,r,o,a,i){let l=e,s=n;for(;s.size>0&&a.remaining>0;){let d=l[l.length-1],c=xy(d,d.index+1,"footnote-drain"),u=su(c,[],t,r,"pageBottom",s,o,{separatorCache:i}),f=u.area?.notes.length??0;if(s=u.nextCarry,f===0){o.push("note-overflow-stalled"),u.area&&(l=[...l,{...c,footnotes:u.area}],a.remaining-=1);break}l=[...l,{...c,footnotes:u.area}],a.remaining-=1;}return s.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:l,carry:s}}function RI(e,n,t,r="endnote-overflow"){let o=xy(t,n,r);return {pages:[...e.slice(0,n),o,...e.slice(n)],pageIndex:n}}function iy(e,n,t){if(t<=n||n>=e.length)return e;let r=Math.min(t,e.length),o=e[n],a=o.pageFieldSource?.pageNumber??n+1,i=o.pageFieldSource?.format,l=r-n,s=[...e];for(let d=n;d<r;d+=1){let c=s[d];s[d]={...c,pageFieldSource:{pageNumber:a+(d-n),sectionPageCount:l,...i?{format:i}:{}}};}return s}function ly(e,n,t,r,o,a,i,l,s){if(t.length===0||e.length===0)return e;let d=[...e],c=[...t],u=new Map,f=n,p=0,m="separator",g=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=s?.sectionStartIndex??n,y=s?.stopBeforeIndex!==void 0,x=s?.separatorCache;for(;c.length>0||u.size>0;){if(f>=d.length||f>=g){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let E=d[Math.min(Math.max(f,1),d.length)-1]??d[d.length-1],w=Math.min(f,g,d.length),L=RI(d,w,E,"endnote-overflow");d=L.pages,f=L.pageIndex,y&&(g=w+1),p+=1,l.remaining-=1;}let T=d[f];if(!by(T)){f+=1;continue}let R=PI(T,c,r,o,a,u,i,{separatorKind:m,...x?{separatorCache:x}:{}});u=R.nextCarry,c=R.remainingRefs;let B=R.area?.notes.length??0;if(R.area){let E=d[f];d[f]={...E,endnotes:E.endnotes?{...R.area,notes:[...E.endnotes.notes,...R.area.notes],box:{...R.area.box,y:E.endnotes.box.y,height:E.endnotes.box.height+R.area.box.height}}:R.area};}else {if(u.size===0&&c.length===0)break;if(!R.area&&u.size===0&&c.length>0){f+=1,m="separator";continue}}if(B===0&&(u.size>0||c.length>0)&&T.fragments.length===0&&T.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(u.size>0||c.length>0){m="continuationSeparator",f+=1;continue}break}return (c.length>0||u.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),y?d=iy(d,h,Math.min(g,d.length)):p>0&&(d=iy(d,h,d.length)),d}function Py(e,n,t,r,o){let a=o??null,i=new Map,l=[],s=new Map,d=iu(n),c=my();for(let f of e.pages){let p=au(f),g=Kl(p,n,d).filter(L=>L.noteKind==="footnote"),h=g[0]?.sectionIndex??0,y=To(t,h);if(y.pos==="sectEnd"||y.pos==="docEnd")continue;if(a&&s.size===0){let L=a.pageReserve.get(f);if(L&&L.allHits===n&&L.marks===r){for(let C of L.reasons)l.push(C);L.reserve>0&&i.set(f.index,Math.max(i.get(f.index)??0,L.reserve));continue}}let x=Math.max(0,p.contentBox.height-fy),T=s.size===0,R=l.length,{area:B,nextCarry:E}=su(p,g,t,r,y.pos,s,l,{reserveColumnBudget:true,separatorCache:c});s=E;let w=Math.min(B?.box.height??0,x);if(a&&T&&s.size===0&&a.pageReserve.set(f,{allHits:n,marks:r,reserve:w>0?w:0,reasons:l.slice(R)}),w>0){let L=i.get(f.index)??0;i.set(f.index,Math.max(L,w));}}let u=true;for(let f of e.pages){let p=i.get(f.index)??0;if(p<=0)continue;if(Zl(au(f))+p>f.contentBox.height+.5){u=false;break}}return {reserves:i,stable:u,reasons:l}}function wy(e,n,t,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,l={remaining:uy},s=iu(n),d=my(),c=[],u=[];for(let R of e.pages)for(let B of Kl(R,n,s)){let E={noteId:B.noteId,sectionIndex:B.sectionIndex,pageIndex:R.index,customMarkFollows:B.customMarkFollows};B.noteKind==="footnote"?c.push(E):u.push(E);}let f=o?[...c,...u].map(R=>`${R.noteId}|${R.sectionIndex}|${R.pageIndex??""}|${R.customMarkFollows?1:0}`).join(";"):"",p;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===f?p=o.finalMarks.marks:(p=hy(c,u,t),o&&(o.finalMarks={sitesFingerprint:f,marks:p}));let m=new Map,g=new Map,h=[],y=e.pages.map(R=>{let B=Kl(R,n,s),E=B.filter(v=>v.noteKind==="footnote"),w=B.filter(v=>v.noteKind==="endnote");for(let v of w)if(lu(t,v.sectionIndex).pos==="sectEnd"){let _=g.get(v.sectionIndex)??[];_.push(v),g.set(v.sectionIndex,_);}else h.push(v);for(let v of E){let M=To(t,v.sectionIndex);if(M.pos==="sectEnd"){let _=g.get(v.sectionIndex)??[];_.push(v),g.set(v.sectionIndex,_);}else M.pos==="docEnd"&&h.push(v);}if(o&&m.size===0){let v=o.pageAttach.get(R);if(v&&v.allHits===n&&v.marks===p){for(let M of v.reasons)a.push(M);return v.attached}}let L=au(R),C=E[0]?.sectionIndex??0,k=To(t,C),b,H=m.size===0,O=a.length;if(k.pos==="pageBottom"||k.pos==="beneathText"){let v=E.filter(_=>{let z=To(t,_.sectionIndex).pos;return z==="pageBottom"||z==="beneathText"}),M=su(L,v,t,p,k.pos,m,a,{separatorCache:d});b=M.area,m=M.nextCarry;}let te=b?{...L,footnotes:b}:L;return o&&H&&m.size===0&&o.pageAttach.set(R,{allHits:n,marks:p,attached:te,reserve:0,reasons:a.slice(O)}),te}),x=y.length;if(m.size>0){let R=wI(y,m,t,p,a,l,d);y=R.pages,m=R.carry;}if(g.size>0&&y.length>0){let R=[...g.keys()].sort((B,E)=>B-E);for(let B of R){let E=g.get(B),w=Sy(y,B,i),L=bI(y,B,i),C=w;for(let k=0;k<=w;k+=1)if(du(y[k],i).includes(B)){C=k;break}y=ly(y,w,E,t,p,"sectEnd",a,l,{stopBeforeIndex:L,sectionStartIndex:C,separatorCache:d});}}return h.length>0&&y.length>0&&(y=ly(y,yI(y),h,t,p,"docEnd",a,l,{separatorCache:d})),y.length!==x&&(y=SI(y)),{layout:uI({revision:e.revision,pages:y},p),fallbackReasons:a,noteMarks:p}}function II(e){return chunkRUS2YBWU_cjs.Zd(e).map(n=>({noteKind:n.noteKind,noteId:n.noteId,paragraphId:n.paragraphId,atomOffset:n.atomOffset,customMarkFollows:n.customMarkFollows}))}function vI(e,n,t){let r=new Map,o=vt(e,t);for(let a=0;a<n.length;a+=1){let i=n[a];for(let l=i.blockStart;l<i.blockEndExclusive;l+=1){let s=o[l];if(s){if(s.kind==="paragraph"){r.set(s.id,a);continue}for(let d of TI(s))r.set(d,a);}}}return r}var sy=new WeakMap;function TI(e){let n=sy.get(e);if(n)return n;let t=[],r=(o,a)=>{if(!(a>32)&&o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),sy.set(e,t),t}function Rr(e){let n=new Map;for(let[t,r]of e)r>0&&n.set(t,r);return n}function tu(e,n){let t=Rr(e),r=Rr(n);if(t.size!==r.size)return false;for(let[o,a]of t)if((r.get(o)??0)!==a)return false;return true}function dy(e,n){let t=Rr(e);for(let[r,o]of n)o<=0||t.set(r,Math.max(t.get(r)??0,o));return t}function Yl(e){return [...Rr(e)].map(([n,t])=>`${n}=${t}`).sort().join(",")}function Ry(e,n,t,r,o){let a=II(e),i=vI(e,n,t.displayMode??mn),l=aI(a,i),s=rI(t.session,l,r),d=s.memo,c=s.allHits,u=d?.provisionalMarks??cu(c,r),f=t.session?.notePageBottomReserves,p=f?Rr(f):new Map,m=[],g=o({...t,noteMarks:u,pageBottomReserves:p}),h=new Set([Yl(p)]);for(let x=0;x<ru;x+=1){let T=Py(g,c,r,u,d);if(m=[...T.reasons],T.stable&&tu(T.reserves,p))break;let R=T.stable?Rr(T.reserves):dy(p,T.reserves);if(tu(R,p)){m.push("note-reflow-exhausted");break}let B=Yl(R);if(h.has(B)){R=dy(p,T.reserves);let E=Yl(R);if(tu(R,p)||h.has(E)){m.push("note-reflow-exhausted");break}}p=R,h.add(Yl(p)),g=o({...t,noteMarks:u,pageBottomReserves:p}),x===ru-1&&m.push("note-reflow-exhausted");}let y=wy(g,c,r,{fallbackReasons:m,paragraphSectionIndex:i,memo:d});return t.session&&(t.session.previous=y.layout,t.session.notePageBottomReserves=Rr(p)),y.layout}function cu(e,n){let t=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?t.push(a):r.push(a);}return hy(t,r,n)}function Iy(e,n){let t=e.projectLink??n.projectLink,r=e.projectFieldLink??n.projectFieldLink,o=e.documentProperties??n.documentProperties;return {...e,...t?{projectLink:t}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{}}}var kI={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",range:"hashed",props:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},OI={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function ky(e){return Object.keys(e).filter(n=>e[n]==="hashed")}var CI=ky(kI),BI=ky(OI),vy=new WeakMap;function Ty(e){let n=vy.get(e);if(n!==void 0)return n;let t=e.kind==="table"?JSON.stringify(BI.map(r=>e[r])):JSON.stringify(CI.map(r=>e[r]));return vy.set(e,t),t}function Oy(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1){let r=e[t],o=n[t];if(r!==o&&Ty(r)!==Ty(o))return false}return true}function uu(e,n){if(e.length!==n.length)return false;for(let t=0;t<e.length;t+=1)if(e[t]!==n[t])return false;return true}var Cy=Object.freeze([]),By=new Map;function Ly(e,n){if(e===n)return true;if(e.size!==n.size)return false;for(let[t,r]of e)if(n.get(t)!==r)return false;return true}function ql(){return {previous:null,checkpoints:[],keys:[],context:"",parityDependent:false,startPageParity:0,prepass:null,startLineCounter:0,endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null,notes:null}}function Fy(e,n){return [...e].map(([t,r])=>`${t}=${r.flowHeight}`).sort().join(",")}function Ey(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${Fy(e.headers)};f:${Fy(e.footers)}`:""}function Jl(e,n,t){if(e.sectionFurniture)return e.sectionFurniture[n];if(n===t-1)return e.furniture}function LI(e,n){return e.map((t,r)=>{let o=wr(t.properties),a=Jl(n,r,e.length),i=t.properties.pageNumbering,l=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",s=t.properties.columns,d=`cols:${s.count},${s.gapTwips},${s.equalWidth===false?0:1},${s.separator?1:0};${(s.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [t.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,Ey(a),l,d].join(":")}).join("|")}function FI(e,n,t){if(!e)return null;let r=e.multi;if(r&&r.structureKey===n&&r.sections.length===t)return r;let o={structureKey:n,sections:Array.from({length:t},()=>ql()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function MI(e){return e!=="continuous"}function EI(e,n){return e.width===n.width&&e.height===n.height}function NI(e,n){if(n.fragments.length===0&&!n.columnSeparators?.length&&!n.anchoredDrawings?.length)return e;let t=e.anchoredDrawings||n.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...n.anchoredDrawings??[]]):void 0;return {...e,fragments:n.fragments.length>0?[...e.fragments,...n.fragments]:e.fragments,...(e.columnSeparators?.length||n.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...n.columnSeparators??[]]},...t?{anchoredDrawings:t}:{}}}function My(e,n,t){e.previous=n,e.startLineCounter=0,e.endLineCounter=t,e.keys=[],e.checkpoints=[],e.context="";}function Ny(e,n,t,r,o){let{session:a,...i}=r,l=LI(n,r),s=FI(a,l,n.length),d=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,c=()=>{d&&!i.retainKeys&&i.cache?.retain(d);},u=[],f=[],p=[],m=0,g=0,h=0,y=0,x=0,T=0,R=0,B=true,E=null,w="",L=1;for(let b=0;b<n.length;b+=1){let H=n[b],O=e.slice(H.blockStart,H.blockEndExclusive),te=wr(H.properties),v=Jl(r,b,n.length),M=u.length,_=m,z=s?.spans[b],I=Ey(v);if(O.length===0&&!MI(H.properties.breakType)){p.push({startIndex:M,pageCount:0,sheetY:_,remappedPages:[]});continue}let A=b>0&&H.properties.breakType==="continuous"&&u.length>0&&B&&E!==null&&EI(E,te)&&w===I,F=s?.sections[b],Y=H.properties.columns.count>1&&n[b+1]?.properties.breakType==="continuous",K=o(O,t,{...i,retainKeys:d,geometry:te,furniture:v,sectionColumns:H.properties.columns,...Y?{balanceColumns:Y}:{},lineCounterStart:g,pageIndexStart:A?M-1:M,...A?{flowStartY:T,spaceBeforeCarry:R}:{},...F?{session:F}:{}});g=K.lineCounter,T=K.endCursorY,R=K.endSpaceAfter,B=K.endsOpenPage,E=te,w=I,F?(h+=F.stats.placed,y+=F.stats.total):(h+=O.length,y+=O.length);let $=F!==void 0&&F.stats.placed===0&&F.stats.reusedPages===K.pages.length&&z!==void 0&&z.pageCount===K.pages.length,V=z!==void 0&&z.startIndex===M&&z.sheetY===_&&z.remappedPages.length===K.pages.length,Z=H.properties.pageNumbering,j=Z?.start!==void 0?Z.start:L,Q=Z?.fmt,ne;if(A){let ce=u.length-1,pe=u[ce],me=NI(pe,K.pages[0]);if(me!==pe){u[ce]=me;let be=f.lastIndexOf(pe);be!==-1&&(f[be]=me);}let Oe=[];for(let be of K.pages.slice(1)){let Le=_a(be,u.length+Oe.length,m);Oe.push(Le),m=Le.box.y+Le.box.height+24;}let Ie=Oe.length+1;ne=Qr(Oe,j+1,Ie,Q);for(let be of ne)u.push(be),f.push(be);L=j+Ie;}else if($&&V){ne=z.remappedPages,x+=ne.length;for(let ce of ne)u.push(ce),f.push(ce),m=ce.box.y+ce.box.height+24;L=j+ne.length;}else {let ce=[];for(let pe of K.pages){let me=_a(pe,u.length+ce.length,m);ce.push(me),m=me.box.y+me.box.height+24;}ne=Qr(ce,j,ce.length,Q);for(let pe of ne)u.push(pe),f.push(pe);L=j+ne.length;}p.push({startIndex:M,pageCount:ne.length,sheetY:_,remappedPages:ne});}if(u.length===0){let b=wr(n[0]?.properties??Vn),H=o([],t,{...i,retainKeys:d,geometry:b,sectionColumns:n[0]?.properties.columns??Vn.columns});c();let O=jt({revision:t,pages:H.pages});return s&&(s.spans=[],s.previousRemapped=H.pages,s.previousFinalized=O,s.previousPageCount=O.pages.length),a&&(My(a,O,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),O}let C=jt({revision:t,pages:u}),k=C;if(s?.previousFinalized&&s.previousPageCount===C.pages.length&&s.previousRemapped.length===f.length){let b=s.previousFinalized.pages,H=s.previousRemapped,O=C.pages.map((te,v)=>f[v]===H[v]&&b[v]?b[v]:te);k={revision:t,pages:O};}return s&&(s.spans=p,s.previousRemapped=f,s.previousFinalized=k,s.previousPageCount=k.pages.length),a&&(My(a,k,g),a.stats={placed:h,total:y||1,reusedPages:x,fullPasses:a.stats.fullPasses+(h===y&&x===0?1:0)}),c(),k}function Ql(e=6,n=14){let t=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*t(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=n*t(r)*o;return {height:a,baseline:a*.8}}}}var AI=2;function DI(e,n){if(!n||n.size===0)return "";let t=[],r=o=>{if(o.kind==="paragraph"){let a=n.get(o.id)?.cacheToken;a&&t.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),t.join(";")}var Ay=new WeakMap,Dy=new WeakMap;function pu(e){if(e===void 0||e.size===0)return "";let n=Dy.get(e);if(n!==void 0)return n;let t=[...e].join(",");return Dy.set(e,t),t}function _I(e){let n=pu(e.chrome),t=pu(e.placeholder),r=pu(e.suppressed);return n===""&&t===""&&r===""?"":`${n}|${t}|${r}`}function HI(e,n){let t=n.chrome?.has(e)??false,r=n.placeholder?.has(e)??false,o=n.suppressed?.has(e)??false;return !t&&!r&&!o?"":`${t?1:0}${r?1:0}${o?1:0}`}var _y=new WeakMap;function zI(e,n,t){let r=t.displayMode??mn,o=vt(e,r),a=Jc(e,o).sections,i=za(e),l={...t,producer:`${t.producer??"unversioned-measurer"}|cc:${i}`,tocFieldChromeParagraphIds:t.tocFieldChromeParagraphIds??Gc(e),emptyTocPlaceholderParagraphIds:t.emptyTocPlaceholderParagraphIds??$c(e),emptyTocSuppressedResultParagraphIds:t.emptyTocSuppressedResultParagraphIds??Xc(e)},s=t.drawingSourceOrder;!s&&t.inlineDrawingLayout&&(s=_y.get(t.inlineDrawingLayout),s||(s=(()=>{let p=new Map;return chunkRUS2YBWU_cjs.db(e).forEach((m,g)=>{p.set(m.drawingNodeId,g);}),p})(),_y.set(t.inlineDrawingLayout,s)));let d=yr(s?{...l,drawingSourceOrder:s}:l,o),c=p=>{if(a.length>1)return Ny(o,a,n,p,ko);let m=a[0],g=p.geometry??(m?wr(m.properties):Uo),h=Jl(p,0,a.length)??p.furniture,y=ko(o,n,{...p,geometry:g,furniture:h,sectionColumns:m?.properties.columns??Vn.columns}),x=m?.properties.pageNumbering,T=Uc({revision:y.layout.revision,pages:Qr(y.pages,x?.start??1,y.pages.length,x?.fmt)},y.layout),R=jt(T);return p.session&&(p.session.multi=null,p.session.previous=R),R},u=p=>{let m=Zc(p,e,i);return t.session&&(t.session.previous=m),m};if(!t.notes)return u(c(d));let f=Iy(t.notes,t);return u(Ry(e,a,d,f,c))}function Hy(e,n,t,r){let o=`line:${e}:${t}:${n}`;return r===void 0?o:`${o}:occ:${r}`}function Ir(e,n,t){let r=t.geometry,o=r.width-r.margin.left-r.margin.right,a=Qc(t.sectionColumns??Vn.columns,o);if(t.inlineDrawingLayout&&t.drawingExclusionPass===void 0&&!t.drawingExclusionConverged){let P=J=>t.drawingSourceOrder?.get(J),G=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),D=new Map,ie=null,ue=false,ge=new Set,fe=t.session?.previous?.pages;if(fe){D=ya(fe,t.inlineDrawingLayout,o,P,G),ie=ko(e,n,{...t,drawingExclusionPass:0,drawingExclusionZonesByPage:D});let J=ya(ie.pages,t.inlineDrawingLayout,o,P,G);if(Ui(D,J))return ie;D=new Map(J),ge.add(Zi(J));}for(let J=0;J<pr;J+=1){ie=ko(e,n,{...t,session:void 0,drawingExclusionPass:J,drawingExclusionZonesByPage:D});let le=ya(ie.pages,t.inlineDrawingLayout,o,P,G);if(le.size===0){ue=true,D=le;break}let ee=Zi(le);if(ge.has(ee)){ue=true,D=le;break}if(ge.add(ee),J>0&&Ui(D,le)){ue=true,D=le;break}D=new Map(le);}if(!ue)for(let J=0;J<AI&&!ue;J+=1){ie=ko(e,n,{...t,session:void 0,drawingExclusionPass:pr+J,drawingExclusionZonesByPage:D});let le=ya(ie.pages,t.inlineDrawingLayout,o,P,G),ee=Zi(le);if(Ui(D,le)||ge.has(ee)){ue=true,D=le;break}ge.add(ee),D=new Map(le);}if(!ue)throw new fo(`wrap exclusion reflow did not converge within ${pr} passes`);return ko(e,n,{...t,drawingExclusionConverged:true,drawingExclusionZonesByPage:D})}let i=t.measurer,l=t.cache,s=t.styleCascade,d=t.listItems,c=t.defaultTabStopPt,u=t.displayMode??mn,f=u==="all-markup",p=t.tocFieldChromeParagraphIds,m=t.emptyTocPlaceholderParagraphIds,g=t.emptyTocSuppressedResultParagraphIds,h={chrome:p,placeholder:m,suppressed:g},y=_I(h),x=(t.producer??"unversioned-measurer")+(s?`|sc:${s.cacheToken}`:"")+(t.noteMarks?`|nm:${Dp(t.noteMarks)}`:"")+(c!==void 0?`|dts:${c}`:"")+(u===mn?"":`|rev:${u}`),T=a.widths[0],R=t.furniture,B=r.headerDistance??36,E=r.footerDistance??36,w=P=>{let G=0;for(let D of P?.values()??[])G=Math.max(G,D.flowHeight);return G},L=r.height*.4,C=Math.min(L,Math.max(r.margin.top,R?B+w(R.headers):0)),k=Math.min(L,Math.max(r.margin.bottom,R?E+w(R.footers):0)),b=r.height-C-k,H=t.pageBottomReserves,O=t.session,te=t.lineCounterStart??0,v=Oh(R,B,E),M=t.flowStartY??0,_=t.spaceBeforeCarry??0,z=t.pageIndexStart??0,I=H?`|nr:${[...H].map(([P,G])=>`${P}=${G}`).join(",")}`:"",A=t.columnRegionBottom,F=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${A!==void 0?`;bal:${A}`:""}`,Y=`${x}|${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${M},${_}${v}${I}${F}`,K=z&1,$=false,V=null,Z=()=>{$=true;},j=[],Q=()=>{let P=Math.max(1,b-(H?.get(j.length)??0));return A!==void 0&&j.length===0?Math.max(1,Math.min(P,A)):P},ne=(P,G)=>{let D=P.kind==="paragraph"?t.drawingTokenForParagraph?.(P)??t.drawingLayoutToken??"":P.kind==="table"&&t.drawingTokenForParagraph?Ph(P,t.drawingTokenForParagraph):"",ie=P.kind==="table"?DI(P,d):d?.get(P.id)?.cacheToken??"",ue=Ay.get(P);if(ue&&ue.contentWidth===G&&ue.producer===x&&ue.drawingToken===D&&ue.listToken===ie)return ue.entry;let ge;if(P.kind==="table")ge={kind:"table",table:P,key:fr({paragraph:P,properties:[],width:G,producer:x,...D?{drawingToken:D}:{}})};else {let fe=d?.get(P.id),J=Ia(P,G,s,fe),{props:le,indent:ee,available:Pe,alignment:we,spacing:Re,lineSpacing:Te,contextualSpacing:nn,styleId:se,shading:He,inheritedRunProperties:Be,markRunProperties:Ae}=J,st=Om(P.children.find(Jt=>Jt.kind==="paragraphProperties"),s),Ge=ad(st),dt=ta(J.tabStops,c),bn=dt===J.tabStops?J.tabStopsCacheToken:lr(dt);ge={kind:"paragraph",paragraph:P,props:le,indent:ee,available:Pe,alignment:we,spacing:Re,lineSpacing:Te,contextualSpacing:nn,styleId:se,borders:st,borderGroupKey:Ge===""?"":`${Ge}@${ee.left},${ee.right}`,shading:He,inheritedRunProperties:Be,markRunProperties:Ae,tabStops:dt,keeps:Cm(le),...fe?{listItem:fe}:{},key:fr({paragraph:P,properties:[...le,...Be,...Ae,{localName:"tabStops",attributes:{token:bn}},...fe?[{localName:"list",attributes:{token:fe.cacheToken}}]:[]],width:Pe,producer:x,...D?{drawingToken:D}:{}})};}return Ay.set(P,{contentWidth:G,producer:x,drawingToken:D,listToken:ie,entry:ge}),ge},ce=t.drawingTokenForParagraph===void 0&&t.drawingLayoutToken===void 0?t.drawingLayoutEpoch??"":t.drawingLayoutEpoch??null,pe=O?.prepass,me=pe!=null&&ce!==null&&pe.drawingEpoch===ce&&pe.producer===x&&pe.contentWidth===T&&pe.styleCascade===s&&pe.listItems===d&&pe.tocToken===y&&pe.bodies.length===e.length&&pe.bodies.every((P,G)=>P===e[G]),Oe=me?pe:Ie();function Ie(){let P=e.map(ee=>ne(ee,T)),G=P.map(ee=>ee.key),D=P.map(ee=>ee.kind==="paragraph"&&ee.keeps.keepNext),ie=P.map(ee=>ee.kind==="paragraph"?d?.get(ee.paragraph.id)?.markerText:void 0),ue=P.map(ee=>ee.kind==="paragraph"&&ee.contextualSpacing),ge=P.map(ee=>ee.kind==="paragraph"?ee.styleId:null),fe=P.map(ee=>ee.kind==="paragraph"?ee.borderGroupKey:""),J=y===""?[]:P.map(ee=>ee.kind==="paragraph"?HI(ee.paragraph.id,h):""),le=Mm(G,ee=>ue[ee],ee=>ge[ee]??null);return le=Em(le,ee=>fe[ee]),J.length>0&&(le=Nm(le,ee=>J[ee])),le=Fm(le,ee=>ie[ee]),le=Am(le,ee=>D[ee]),{bodies:e,producer:x,contentWidth:T,styleCascade:s,listItems:d,drawingEpoch:ce??"",prepared:P,keys:G,paragraphDocumentOrder:uh(P,T,s,u),keepsNext:D,markerTexts:ie,tocToken:y,flowKeys:le}}O&&ce!==null&&!me&&(O.prepass=Oe);let{prepared:be,keys:Le,paragraphDocumentOrder:on,keepsNext:Tn,flowKeys:Ke}=Oe,Yn=()=>{t.retainKeys!==false&&(t.retainKeys===void 0&&l&&!(l.retentionPassDue?.()??true)||$p(l,t.retainKeys,Le,be.flatMap(P=>P.kind==="table"?[P.table]:[])));},yn=O?.previous??null,En=yn!==null&&O!==void 0&&O.context===Y&&(!O.parityDependent||O.startPageParity===K),Nn=a.count===1&&En,je=0;if(En){let P=Math.min(Ke.length,O.keys.length);for(;je<P&&Ke[je]===O.keys[je];)je+=1;}let An=0;if(Nn){let P=Math.min(Ke.length,O.keys.length)-je;for(;An<P&&Ke[Ke.length-1-An]===O.keys[O.keys.length-1-An];)An+=1;}if(En&&je===be.length&&be.length===O.keys.length){let P=Uc({revision:n,pages:yn.pages},yn),G=te+(O.endLineCounter-O.startLineCounter);return O.previous=P,O.startLineCounter=te,O.endLineCounter=G,O.startPageParity=K,O.stats={placed:0,total:be.length,reusedPages:yn.pages.length,fullPasses:O.stats.fullPasses},Yn(),{layout:P,pages:P.pages,lineCounter:G,endCursorY:O.endCursorY,endSpaceAfter:O.endSpaceAfter,endsOpenPage:O.endsOpenPage}}let an=[],_e=0,Cn=0,N=()=>a.lefts[_e],S=()=>a.widths[_e],q=()=>({text:{left:N(),width:S()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),U=()=>an.length>Cn,W=[],oe=[],Se=new Map,X=M,Ue=M,ve=0,We=te,Ce=_,en=[],un=()=>({pageCount:j.length,pageFragments:[...an],pendingAnchoredDrawings:[...W],deferredAnchoredDrawings:oe.length>0?[...oe]:Cy,anchorPageDeferCounts:Se.size>0?new Map(Se):By,cursorY:X,lineCounter:We,previousSpaceAfter:Ce,flowColumnIndex:ve}),Ze=0,qe=0,Ee=0,xe=M===0;if(Nn&&je>0&&je<O.checkpoints.length){let P=O.checkpoints[je];j.push(...yn.pages.slice(0,P.pageCount)),an=[...P.pageFragments],W=[...P.pendingAnchoredDrawings],oe=[...P.deferredAnchoredDrawings],Se.clear();for(let[G,D]of P.anchorPageDeferCounts)Se.set(G,D);X=P.cursorY,ve=P.flowColumnIndex,_e=P.flowColumnIndex,We=P.lineCounter,Ce=P.previousSpaceAfter,Ze=je,xe=false,Ee=j.length,en.push(...O.checkpoints.slice(0,je));}let Ct=P=>({x:0,y:P*(r.height+24),width:r.width,height:r.height}),Tr=P=>R?.titlePage&&P===0?"first":R?.evenAndOddHeaders&&(z+P+1)%2===0?"even":"default",as=(P,G,D)=>{if(!R)return;let ie=Tr(G),ue=(P==="header"?R.headers:R.footers).get(ie);if(!ue)return;let ge=Re=>{let Te=P==="header"?D.y+B:D.y+r.height-E-Re.flowHeight;return {kind:P,variant:ie,partName:Re.partName,...Re.part?{part:Re.part}:{},...Re.rId?{rId:Re.rId}:{},box:{x:D.x+r.margin.left,y:Te,width:o,height:Re.flowHeight},fragments:Re.fragments,...Re.anchoredDrawings?{anchoredDrawings:Re.anchoredDrawings}:{}}},fe=z+G+1,J={pageNumber:fe,pageCount:Math.max(fe,j.length+1),sectionPageCount:G+1},le=ue.pageFieldNeeds,Pe=zt(le)||(ue.anchoredDrawings?.length??0)>0?ue.withPageContext(J):ue,we=ge(Pe);return zt(le)?{...we,pageFieldProjector:Re=>ge(ue.withPageContext(Re))}:we},Ya=a.count,kr=N,is=P=>Object.freeze({x:a.lefts[ve]??0,y:P.y,width:a.widths[ve]??T,height:P.height}),ls=()=>Object.freeze({pageNumber:z+j.length+1,onPageParityRead:Z,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginBottom:r.margin.bottom,contentInsetTop:C,contentInsetBottom:k,contentWidth:T,contentHeight:Q(),contentBandHeight:b,ownerPartName:t.inlineDrawingLayout?.ownerPartName??chunkRUS2YBWU_cjs.n,storyKind:"body"}),Su=()=>ha(ls()),ss=P=>t.drawingSourceOrder?.get(P),Ka=P=>{if(P.length===0)return;for(let D of P)W.some(ie=>ie.drawingNodeId===D.drawingNodeId)||W.push(D.sourceOrder===void 0&&ss(D.drawingNodeId)!==void 0?Object.freeze({...D,sourceOrder:ss(D.drawingNodeId)}):D);if(!t.inlineDrawingLayout)return;let G=mm(W,{pageBottom:Q()});if(W.splice(0,W.length,...G.drawings),G.deferred.length>0)for(let D of G.deferred){let ie=(Se.get(D.drawingNodeId)??0)+1;Se.set(D.drawingNodeId,ie),ie>=Wd?W.push(Yd(D,"page-defer-exhausted")):oe.push(D);}},Pu=()=>{if(oe.length===0)return;let P=oe.map(G=>Xd(G,X-G.y));oe=[],Ka(P);},Or=()=>{let P=j.length,G=Ct(P),D=as("header",P,G),ie=as("footer",P,G),{usedBottom:ue,hasBodyPageFields:ge}=vd(an,Ue);j.push({id:`page-${P}`,index:P,box:G,contentBox:{x:G.x+r.margin.left,y:G.y+C,width:o,height:b},fragments:an,hasBodyPageFields:ge,...a.separator?{columnSeparators:a.gaps.map((fe,J)=>({x:a.lefts[J]+a.widths[J]+fe/2-.375,y:Ue,width:.75,height:Math.max(0,ue-Ue)}))}:{},...W.length>0?{anchoredDrawings:pm(W)}:{},...D?{header:D}:{},...ie?{footer:ie}:{}}),an=[],W=[],X=0,_e=0,ve=0,Ue=0,Cn=0;},bb=(P,G)=>{if(P.kind!=="paragraph"||P.listItem!==void 0||P.shading!==void 0)return false;let{top:D,bottom:ie,left:ue,right:ge,between:fe}=P.borders;if(D??ie??ue??ge??fe)return false;let J=t.inlineDrawingLayout;return J&&Ln(P.paragraph,J).length>0?false:G.every(le=>le.drawings.length===0&&!le.pageBreakAfter&&!le.columnBreakAfter&&le.spans.every(ee=>ee.text.length===0))},Co=()=>{if(_e+1<a.count){_e+=1,ve=_e,X=Ue,Ce=0,Cn=an.length;return}Or(),Pu();},wu=P=>Dl(P,{measurer:i,producer:x,cache:l,styleCascade:s,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},inlineDrawingLayout:t.inlineDrawingLayout,drawingTokenForParagraph:t.drawingTokenForParagraph}),Bt={measurer:i,cache:l,producer:x,onCellBreakKey:P=>{V?.push(P);},nextLineId:(P,G,D,ie)=>(We+=1,Hy(P,G,D,ie)),pageOccurrenceKey:()=>String(j.length),styleCascade:s,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},bodyPageFields:true,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:t.drawingLayoutToken?{drawingLayoutToken:t.drawingLayoutToken}:{},...t.inlineDrawingLayout?{anchorFrameBase:ls,pageContentClip:Su,layoutTextboxStoryFor:wu,publishAnchoredDrawings:Ka,collectAnchoredDrawings:Ka,columnBoxForParagraph:is,pageExclusionZones:()=>t.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([]),paragraphOrderIndex:P=>on.get(P),onAnchorShift:(P,G)=>Hd(W,P,G),onAnchorRepublish:(P,G)=>{for(let D=W.length-1;D>=0;D-=1)W[D].anchorParagraphId===P&&W.splice(D,1);W.push(...G);}}:{},borderOwnershipBudget:sl(),vMergeResolveBudget:Mc(),displayMode:u},ds=P=>vl(d?.get(P.paragraph.id)??P.listItem,P.indent,i,P.tabStops,P.available),cs=(P,G,D=0)=>{let ie=P.paragraph.id,ge=!(m?.has(ie)??false)&&((p?.has(ie)??false)||(g?.has(ie)??false)),fe=P.available,J=kr(),ee=(t.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([])).filter(nn=>{let se=on.get(P.paragraph.id),He=on.get(nn.anchorParagraphId);if(se!==void 0&&He!==void 0){if(He>se)return false}else {let Be=be.findIndex(Ae=>Ae.kind==="paragraph"&&Ae.paragraph.id===nn.anchorParagraphId);if(Be<0||Be>G)return false}return !(Ya>1&&nn.columnIndex!==ve)}),Pe=it(ee),we=t.drawingTokenForParagraph?.(P.paragraph)??t.drawingLayoutToken??(t.inlineDrawingLayout?"drawing":void 0),Re=l&&!ge?Pe||we?fr({paragraph:P.paragraph,properties:P.props,width:fe,producer:x,...we?{drawingToken:we}:{},...Pe?{exclusionToken:`${ve}|${X.toFixed(3)}|${Pe}`}:{},...D>0?{startOffset:D}:{}}):D===0?P.key:`${P.key}|from:${D}`:null,Te=Ya>1;return nl(P.paragraph,ie,P.indent.left,fe,i,l,Re,P.inheritedRunProperties,P.tabStops,void 0,s?(nn,se)=>It(nn,se,s):void 0,{lineSpacing:P.lineSpacing,firstLineOffset:D===0?ds(P):0,startOffset:D,marginExtent:{left:0,right:P.indent.left+fe+P.indent.right},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},bodyPageFields:true,displayMode:u,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},contentLeft:Te?J:0,contentRight:Te?J+S():P.indent.left+fe+P.indent.right,paragraphStartY:X,...ee.length>0?{pageExclusionZones:ee}:{},...ge?{suppressEmptyPlaceholderLine:true}:{},...s?{themeFonts:s.themeFonts}:{},markRunProperties:P.markRunProperties})},Ru=(P,G)=>(t.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([])).filter(ie=>{let ue=on.get(P.paragraph.id),ge=on.get(ie.anchorParagraphId);if(ue!==void 0&&ge!==void 0){if(ge>ue)return false}else {let fe=be.findIndex(J=>J.kind==="paragraph"&&J.paragraph.id===ie.anchorParagraphId);if(fe<0||fe>G)return false}return !(Ya>1&&ie.columnIndex!==ve||ie.anchorParagraphId===P.paragraph.id&&ie.input.mode==="topAndBottom")}),Iu=(P,G,D,ie,ue,ge,fe)=>{let J=Ru(P,G);if(!t.inlineDrawingLayout||ie<=ue)return J;let le=Wn(P.paragraph),ee=new Map,Pe=0;for(let se=ue;se<ie;se+=1){let He=D[se];for(let Ae of le.values())Ae>=He.start&&Ae<He.end&&ee.set(Ae,Pe);let Be=fe.get(se)??D[se].exclusionSkipBefore??0;Pe+=Be+D[se].height;}if(ee.size===0)return J;let we=Ya>1,Re=P.available,Te=kr(),nn=Ki({paragraph:P.paragraph,paragraphId:P.paragraph.id,drawingLayout:t.inlineDrawingLayout,contentLeft:we?Te:0,contentRight:we?Te+S():P.indent.left+Re+P.indent.right,paragraphStartY:ge,anchorLineTopByModelStart:ee,columnIndex:ve});return Object.freeze([...J,...nn])},xb=(P,G,D,ie,ue,ge,fe,J)=>{if(t.inlineDrawingLayout){let we=[...Wn(P.paragraph).values()];if(we.length>0){let Re=Math.min(...we);if(fe.end<=Re||we.some(Te=>Te>=fe.start&&Te<fe.end)&&fe.end<=Re+1)return 0}}let le=Iu(P,G,D,ie,ue,ge,J),ee=le.length>0?Rt(X,fe.height,le):0,Pe=fe.exclusionSkipBefore??0;return ee>.001?ee:Pe},Sb=P=>{let G=S(),D=xo(P,G,0,s,u);if(!D||D.rows.length===0)return;let ie=D.columnWidthsPt.reduce((se,He)=>se+He,0),ue=()=>D.float?Rg(D.float,ie,q()):N()+Ca(D,S()),ge=ue();D.float&&D.float.vertAnchor==="text"&&!D.float.ySpec&&(X=Math.max(0,Math.min(X+D.float.yPt,Q())));let fe=[];for(let se of D.rows)if(se.isHeader)fe.push(se);else break;let J=0,le=X,ee=[],Pe=new Map,we=[],Re=()=>{if(ee.length===0)return;let se=Hc(ee,D,we,Bt.borderOwnershipBudget,Bt.vMergeResolveBudget,void 0,(Be,Ae)=>{Hd(W,Be,Ae);},Bt),He=se[se.length-1];an.push(Ml({kind:"table",id:`${P.id}#f${J}`,tableId:P.id,fragmentIndex:J,rows:se,box:{x:ge,y:le,width:D.columnWidthsPt.reduce((Be,Ae)=>Be+Ae,0),height:He.box.y+He.box.height-le}},D.columnWidthsPt,0,Pe)),J+=1,ee=[],we=[];},Te=se=>{if(fe.length===0)return;let He=0;for(let Be of fe)He+=_c(Be,D.columnWidthsPt,ge,0,Bt,D.cellSpacingPt);if(He>Q()+.001)throw new Fn("table-row-overheight",`Table header group (${fe.length} row(s)) is taller than the page content box`);X+He>Q()+.001&&X>0&&(Re(),Co(),ge=ue(),le=X);for(let Be of fe){let Ae=Da(Be,D.columnWidthsPt,ge,X,se,0,Bt,D.cellSpacingPt);if(Ae.bottom>Q()+.001)throw new Fn("table-row-overheight",`Table header row ${Be.id} overflowed the page content box`);ee.push(Ae.record),we.push(Be),X=Ae.bottom;}},nn=se=>{Re(),Co(),ge=ue(),le=X,Te(true);};Te(false);for(let se of D.rows.slice(fe.length)){let He=_c(se,D.columnWidthsPt,ge,0,Bt,D.cellSpacingPt),Be=Nc(se),Ae=false,st=0,Ge=false;for(He<=Q()+.001&&X+He>Q()+.001&&X>0&&(nn(),Ge=true);;){if(st+=1,st>Nl)throw new Fn("table-row-fragment-limit",`Table row ${se.id} exceeded ${Nl} page fragments`);let dt=Q()-X;if(dt<=.001&&X>0){if(Ge)throw new Fn("table-row-overheight",`Table row ${se.id} cannot fit after repeated header rows`);nn(),Ge=true;continue}if(!Ae&&He<=dt+.001){let ct=Da(se,D.columnWidthsPt,ge,X,false,0,Bt,D.cellSpacingPt);if(ct.bottom>Q()+.001)throw new Fn("table-row-overheight",`Table row ${se.id} overflowed the page content box after placement`);ee.push(ct.record),we.push(se),X=ct.bottom;break}if(se.cantSplit||se.height.rule==="exact"){if(X>0&&!Ge){nn(),Ge=true;continue}throw new Fn("table-row-overheight",se.height.rule==="exact"?`Table row ${se.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${se.id} has w:cantSplit and is taller than the available page content`)}let bn=Dc(se,D.columnWidthsPt,ge,X,Q(),false,Ae,0,Bt,Be,D.cellSpacingPt);if(!bn.fitted&&X>0&&!Ge){nn(),Ge=true;continue}if(!bn.fitted)throw new Fn(bn.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",bn.nestedSplitBlocked?`Table row ${se.id} contains a nested table taller than the page content box`:`Table row ${se.id} has content that cannot fit a page content box`);if(bn.bottom>Q()+.001)throw new Fn("table-row-overheight",`Table row ${se.id} overflowed the page content box`);let Jt=bn.remainder!==null,Cr=hh(se,Ae,Jt);if(ee.push(bn.record),we.push(Cr),X=bn.bottom,!Jt)break;Be=bn.remainder,Ae=true,Ge=false,nn();}}Re();},Lt=false,us=be.length,fs=0;for(let P=Ze;P<be.length;P+=1){let G=ne(e[P],S());if(en[P]=un(),Nn&&An>0&&P>=be.length-An){let ae=O.checkpoints[P+(O.keys.length-be.length)];if(ae&&ae.cursorY===X&&ae.previousSpaceAfter===Ce&&ae.flowColumnIndex===ve&&Oy(ae.pageFragments,an)&&uu(ae.pendingAnchoredDrawings,W)&&uu(ae.deferredAnchoredDrawings,oe)&&Ly(ae.anchorPageDeferCounts,Se)){let de=j.length-ae.pageCount;if(Ch({delta:de,titlePage:R?.titlePage===true,evenAndOddHeaders:R?.evenAndOddHeaders===true,parityDependent:O.parityDependent,usedPageParity:$,markPageCount:ae.pageCount,hasNoteReserves:H!==void 0,hasExclusionZones:(t.drawingExclusionZonesByPage?.size??0)>0})){let kn=de===0?yn.pages.slice(ae.pageCount):yn.pages.slice(ae.pageCount).map((gn,Kn)=>_a(gn,j.length+Kn,Ct(j.length+Kn).y));j.push(...kn),Ee+=kn.length,Lt=true,us=P,fs=de,We+=O.endLineCounter-ae.lineCounter;break}}}if(qe+=1,G.kind==="table"){Ce=0,V=[];try{Sb(G.table),Gp(G.table,V);}finally{V=null;}continue}let{paragraph:D,props:ie,spacing:ue,contextualSpacing:ge,styleId:fe,borders:J,shading:le,keeps:ee}=G,{indent:Pe,alignment:we,markRunProperties:Re}=G,Te=G.available,nn=P>0?be[P-1]:void 0,se=be[P+1],He=ae=>ae?.kind==="paragraph"&&ae.styleId===fe&&fe!==null,Be=ge?{before:He(nn)?0:ue.before,after:He(se)?0:ue.after}:ue,Ae=d?.get(D.id)??G.listItem,st=ds(G),Ge=D.id,dt=G.borderGroupKey,bn=ae=>dt!==""&&ae?.kind==="paragraph"&&ae.borderGroupKey===dt,Jt=bn(nn),Cr=bn(se),ct=Jt?void 0:J.top,Br=Cr?J.between:J.bottom,Qt=Dt(ct),Lu=Dt(Br);ed(ie)&&(an.length>0||j.length===0)&&(Or(),Ce=0);let Je=cs(G,P);if(Je.length===0)continue;let wb=Gl(D)!==void 0&&bb(G,Je),Fu=()=>wb&&A===void 0&&_e+1>=a.count,ps=ae=>{let de=ne(D,S());de.kind==="paragraph"&&(Pe=de.indent,we=de.alignment,Te=de.available,Re=de.markRunProperties,st=ae===0?ds(de):0,Je=[...cs(de,P,ae)]);};{let ae=Kr(Be.before,Ce),de=Re.length===0?tt:Ne(Re,s?.themeFonts),fn=Je.length<=1?Lu+Be.after:0,kn=X+ae+Qt,gn=Iu(G,P,Je,0,0,kn,new Map),Kn=Je[0]?Sm(kn,Je[0],gn,fn):i.lineMetrics(de).height+fn,Mt=ae+Qt+Kn;if(ee.keepNext&&!Tn[P-1]){let Qe=Lm(be,P,Ce,ut=>{let Un=be[ut];return Un?.kind==="paragraph"?cs(Un,ut).map(Dn=>Dn.height):[]});Qe!==null&&Qe+Qt<=Q()&&(Mt=Math.max(Mt,Qe+Qt));}X+Mt>Q()&&X>0&&!Fu()&&(Co(),Ce=0,ps(0));}let Rb=X===0&&!U(),ms=id(Be.before,Ce,Rb,xe);ms>0&&(X+=ms),Qt>0&&(X+=Qt),xe=false;let er=0,Fe=[],Mu=Je[0]?.start??0,Lr=ms,nr=Qt,gs=false,Bo=X,Eu=0,Ua=new Map;Ce=0;let Nu=t.inlineDrawingLayout!==void 0&&Ln(G.paragraph,t.inlineDrawingLayout).length>0,Au=false,hs=null,Ib=ao(G.paragraph),Du=al(G.paragraph),_u=Du?Pl(Du):null,vb=()=>{let ae=Fe[0];if(!ae)return 0;let de=Eu;if(de<=.001)return 0;let fn=Rt(Bo,ae.box.height,Ru(G,P));return Math.max(0,de-fn)},Za=ae=>{if(Fe.length===0)return;let de=N(),fn=kr(),kn=Fe[0].box.y,gn=kn-Lr-nr,Kn=Fe[Fe.length-1].box.y+Fe[Fe.length-1].box.height,Mt=ae?Be.after:0,Qe=[],ut,Un=kn,Dn=Kn,Et=J.left?Pn(J.left):0,Fo=J.right?Pn(J.right):0,Fr=J.left?de+Pe.left-J.left.spacePt-Et:de+Pe.left,bs=J.right?de+Pe.left+Te+J.right.spacePt+Fo:de+Pe.left+Te,Mr=Math.max(bs-Fr,0);if(nr>0&&ct){let ln=Pn(ct),Zn=kn-ct.spacePt-ln;Qe.push({side:"top",edge:ct,box:{x:Fr,y:Zn,width:Mr,height:ln}}),Un=Zn;}if(ae&&Br){let ln=Pn(Br),Zn=Kn+Br.spacePt,Nt={x:Fr,y:Zn,width:Mr,height:ln};Qe.push({side:Cr?"between":"bottom",edge:Br,box:Nt}),Cr||(ut={edge:Br,box:Nt}),Dn=Zn+ln;}ae&&(X=Math.max(X,Dn+Mt));let Er=Math.max(Dn+Mt-gn,0),ke=Jt&&er===0?gn:Un,ft=Cr&&ae?gn+Er:Dn,Nr=Math.max(ft-ke,0);if(J.left&&Qe.push({side:"left",edge:J.left,box:{x:de+Pe.left-J.left.spacePt-Et,y:ke,width:Et,height:Nr}}),J.right&&Qe.push({side:"right",edge:J.right,box:{x:de+Pe.left+Te+J.right.spacePt,y:ke,width:Fo,height:Nr}}),J.bar){let ln=Pn(J.bar);Qe.push({side:"bar",edge:J.bar,box:{x:de+Pe.left-J.bar.spacePt-ln,y:kn,width:ln,height:Math.max(Kn-kn,0)}});}let Ar=_u?wl(Fe,_u):null,Dr=er===0?Tl(Ae,i,Fe[0]?{y:Fe[0].box.y,height:Fe[0].box.height}:void 0):void 0,qa=Dr?{...Dr,box:{...Dr.box,x:Dr.box.x+de}}:void 0;if(an.push({kind:"paragraph",id:`${Ge}#f${er}`,paragraphId:Ge,fragmentIndex:er,range:Ar?Ar[Ar.length-1].range:{paragraphId:Ge,start:Mu,end:Fe[Fe.length-1].range.end},props:ie,spacing:{before:Lr,after:Mt},indent:Pe,...ut?{bottomBorder:ut}:{},...Qe.length>0?{borders:Qe}:{},...le===void 0?{}:{shading:le,shadingBox:J.left||J.right?{x:Fr,y:Un,width:Mr,height:Math.max(Dn-Un,0)}:ea(Fe,de+Pe.left,Te)},tabStops:G.tabStops,...qa?{marker:qa}:{},...ae&&f?Hi(Ib,pa(G.paragraph)):{},lines:Ar??Fe,box:{x:fn+Pe.left,y:gn,width:Te,height:Er}}),t.inlineDrawingLayout&&Nu&&!Au){Au=true;let ln=[...Wn(G.paragraph).values()],Zn=ln.length>0&&ln.every(On=>Fe.some(tr=>On>=tr.range.start&&On<tr.range.end)),Nt,Ja,xs;if(Zn){let On=gn-vb();Nt=Fe,Ja={x:fn+Pe.left,y:On,width:Te,height:Er},xs=is({x:fn+Pe.left,y:On,height:Er});}else {let On=hs??{columnX:fn,columnWidth:S(),startY:gn},tr=On.startY;Nt=Je.map((_n,Tb)=>{let kb={id:`anchor-line-${Tb}`,range:{paragraphId:Ge,start:_n.start,end:_n.end},box:{x:On.columnX+Pe.left,y:tr,width:Te,height:_n.height},contentX:_n.spans.length>0?_n.spans[0].box.x+On.columnX:On.columnX+Pe.left,baseline:_n.baseline,leading:_n.leading,trailingSpacing:_n.trailingSpacing,spans:_n.spans.map(Ss=>({...Ss,box:{...Ss.box,x:Ss.box.x+On.columnX,y:tr}}))};return tr+=_n.height+(_n.exclusionSkipBefore??0),kb});let Hu=On.startY;Ja={x:On.columnX+Pe.left,y:Hu,width:Te,height:Math.max(tr-Hu,Fe[0]?.box.height??0)},xs=is(Ja);}Ka(uo({paragraph:G.paragraph,paragraphId:Ge,paragraphBox:Ja,lines:Nt,drawingLayout:t.inlineDrawingLayout,frameBase:ls(),columnBox:xs,cellBox:null,pageClip:Su(),measurer:i,sourceOrderOf:ss,layoutTextboxStory:wu}));}er+=1,Mu=Fe[Fe.length-1].range.end,Fe=[],Lr=0,nr=0;},Ft=0,ys=0,Lo=Je.length+8;for(let ae=0;ae<Je.length;ae+=1){let de=Je[ae],fn=ae===Je.length-1,kn=fn?Lu+Be.after:0;ae===Ft&&(Bo=X,Nu&&hs===null&&er===0&&(hs=Object.freeze({columnX:kr(),columnWidth:S(),startY:Bo})));let gn=xb(G,P,Je,ae,Ft,Bo,de,Ua),Kn=gn+Math.max(0,de.height-de.trailingSpacing)+kn;if(X+Kn>Q()&&!Fu()&&(Fe.length>0||an.length>0||j.length>0)){let ke=!U(),ft=ys<Lo?Bm(ae,Ft,Je.length,ee,ke):ae,Nr=ft<ae;for(let ln=ae;ln>ft;ln-=1){Fe.pop();let Zn=Je[ln-1],Nt=Ua.get(ln-1)??Zn.exclusionSkipBefore??0;Ua.delete(ln-1),X-=Zn.height+Nt,We-=1;}let Ar=Nr&&Fe.length===0&&er===0,Dr=Je[ft].start,qa=S();if(Za(false),Co(),Lr=0,Ar?X=nr:nr=0,S()!==qa){ps(Dr),Lo=Math.max(Lo,Je.length+8),Ft=0,Nr&&(ys+=1),ae=-1;continue}if(Ft=ft,Bo=X,Nr){ys+=1,ae=ft-1;continue}}let Qe=kr();Ua.set(ae,gn),X+=gn;let ut=Qe+Pe.left+(ae===0?st:0),Un=Math.max(1,Te-(ae===0?st:0)),Dn=de.spans.map(ke=>({...ke,range:{...ke.range,paragraphId:Ge},box:{...ke.box,x:ke.box.x+Qe,y:X}})),Et=Qi(Dn,i,ut,Un,we,fn,we==="center"||we==="right"?de.width:void 0),Fo=Dn.length>0&&Et.length>0?Et[0].box.x-Dn[0].box.x:we!=="left"&&we!=="both"?(()=>{let ke=Un-de.width;return ke<=0?0:we==="center"?ke/2:ke})():0,Fr=Object.freeze({x:0,y:0,width:T,height:Q()}),bs=de.drawings.map(ke=>{let ft=Object.freeze({...ke,paragraphId:Ge,x:Qe+ke.x,y:X+ke.y,advanceStart:ke.advanceStart+Qe,advanceEnd:ke.advanceEnd+Qe,paintBounds:Object.freeze({...ke.paintBounds,x:Qe+ke.paintBounds.x,y:X+ke.paintBounds.y}),hitBounds:Object.freeze({...ke.hitBounds,x:Qe+ke.hitBounds.x,y:X+ke.hitBounds.y})});return Yi(ft,Fr)}),Mr=el(bs,Fo),Er={id:Hy(D.id,de.start,ae),range:{paragraphId:Ge,start:de.start,end:de.end},spans:Et,box:{x:kr()+Pe.left,y:X,width:Te,height:de.height},contentX:Et[0]?.box.x??ut+Fo,baseline:de.baseline,leading:de.leading,trailingSpacing:de.trailingSpacing,...de.deletedRanges?{deletedRanges:de.deletedRanges}:{},...Mr.length>0?{drawings:Mr}:{}};if(We+=1,Fe.length===0&&(Eu=gn),Fe.push(Er),X+=de.height,de.columnBreakAfter){let ke=S();if(Za(fn),Co(),Lr=0,nr=0,gs=true,!fn&&S()!==ke){ps(de.end),Lo=Math.max(Lo,Je.length+8),Ft=0,ae=-1;continue}Ft=ae+1;}else de.pageBreakAfter&&(Za(fn),Or(),Lr=0,nr=0,gs=true,Ft=ae+1);}Za(true),Ce=gs?0:Be.after;}Lt||(en[be.length]=un());let vu=Lt&&O?O.endCursorY:X,Tu=Lt&&O?O.endSpaceAfter:Ce,ku=!Lt&&(an.length>0||j.length===0),Ou=Lt&&O?O.endsOpenPage:ku;ku&&Or();let Cu=0,Pb=Wd*4+8;for(;(W.length>0||oe.length>0)&&Cu<Pb;)Cu+=1,W.length===0&&Pu(),Or();oe.length>0&&(W.push(...oe.map(P=>Yd(P,"page-defer-exhausted"))),oe=[],Or()),Yn();let Bu={revision:n,pages:j};if(O){O.previous=Bu,O.checkpoints=Lt?[...en.slice(0,us),...O.checkpoints.slice(us+(O.keys.length-be.length)).map(G=>fs===0?G:{...G,pageCount:G.pageCount+fs})]:en,O.keys=Ke,O.context=Y;let P=$||R?.evenAndOddHeaders===true;O.parityDependent=Ze===0&&!Lt?P:O.parityDependent||P,O.startPageParity=K,O.startLineCounter=te,O.endLineCounter=We,O.endCursorY=vu,O.endSpaceAfter=Tu,O.endsOpenPage=Ou,O.stats={placed:qe,total:be.length,reusedPages:Ee,fullPasses:O.stats.fullPasses+(Ze===0?1:0)};}return {layout:Bu,pages:j,lineCounter:We,endCursorY:vu,endSpaceAfter:Tu,endsOpenPage:Ou}}function zy(e,n,t){let r=n.lefts.map(()=>t);for(let o of e.fragments){let a=0;for(let i=n.count-1;i>=0;i-=1)if(o.box.x+.5>=n.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var jI=.25,WI=20;function ko(e,n,t){let r=Qc(t.sectionColumns??Vn.columns,t.geometry.width-t.geometry.margin.left-t.geometry.margin.right);if(!t.balanceColumns||r.count<2||t.columnRegionBottom!==void 0)return t.session&&(t.session.balanceLimit=null),Ir(e,n,t);let o=t.session,a=t.flowStartY??0,{session:i,...l}=t,s=h=>{let y=h.pages[0],x=y?Math.max(...zy(y,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,y=Ir(e,n,{...t,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===y.pages.length)return o.balanceLimit=h,s(y)}let d=Ir(e,n,l);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),Ir(e,n,t);let c=zy(d.pages[0],r,a),u=c.reduce((h,y)=>h+Math.max(0,y-a),0);if(u<=0)return o&&(o.balanceLimit=null),Ir(e,n,t);let f=a+u/r.count,p=Math.max(...c)+.01,m=h=>{try{let y=Ir(e,n,{...l,columnRegionBottom:h});return y.pages.length===1&&y.endsOpenPage}catch{return false}};for(let h=0;h<WI&&p-f>jI;h+=1){let y=(f+p)/2;m(y)?p=y:f=y;}let g=Ir(e,n,{...t,columnRegionBottom:p});return o&&(o.balanceLimit=p),s(g)}var $y="Calibri, Carlito, Helvetica, Arial, sans-serif",oF=new Map([["calibri","Carlito"]]),GI=65536,$I=256;function jy(e,n){return e===void 0?Math.max(1,Math.floor(n)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function Wy(e){let n=new Map,t=0;return {get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>e;){let a=n.keys().next();if(a.done)break;n.delete(a.value),t+=1;}},get size(){return n.size},get evictions(){return t}}}var Gy=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function Xy(e=null){return e!=null&&typeof e.measureText=="function"}function Vy(e={}){let n=e.scale??1;if(!(n>0)||!Number.isFinite(n))return null;let t=e.fallbackFamily??$y,r=e.context??null;if(!Xy(r))return null;let o=r,a=Wy(jy(e.maxWidthEntries,GI)),i=Wy(jy(e.maxMetricsEntries,$I)),l=e.fontAlias,s=c=>{let u=c.fontFamily&&Gy.test(c.fontFamily)?c.fontFamily:null,f=u?l?.(u):void 0,p=f&&Gy.test(f)?f:null,m=u?p?`"${p}", "${u}", ${t}`:`"${u}", ${t}`:t,g=c.bold?"bold":"normal",h=c.italic?"italic":"normal",y=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*n;return `${h} ${g} ${y}px ${m}`},d=(c,u,f)=>c/n*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=s(u),p=`${f}\0${c}`,m=a.get(p);if(m!==void 0)return d(m,c,u);o.font=f;let g=o.measureText(c).width;return a.set(p,g),d(g,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),f=s(c),p=i.get(f);if(p)return p;let m=u*1.15,g=u*.8;o.font=f;let h=o.measureText("Hxg"),y=h.fontBoundingBoxAscent,x=h.fontBoundingBoxDescent;if(typeof y=="number"&&Number.isFinite(y)&&y>0&&(g=y/n,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let R=(y+x)/n;R>0&&(m=R);}m>0||(m=u*1.15);let T={height:m,baseline:g};return i.set(f,T),T}}}function XI(e=1,n={}){let t=Vy({...n,scale:n.scale??e});return t?{measurer:t,producer:n.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:Ql(),producer:"fixed-measurer"}}function VI(e){return e.box}function Yy(e,n){if(e.kind==="paragraph"){n.add(e.paragraphId);return}for(let t of e.rows)for(let r of t.cells)for(let o of r.blocks)Yy(o,n);}function YI(e){let n=new Map,t=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkRUS2YBWU_cjs.fe*4)){for(let l of o.children)if(l.kind!=="textValue"){if(l.kind==="paragraph"){for(let s of r)n.get(s)?.push(l.id);t(l,l.id,i+1);continue}if(l.kind==="contentControl"){n.set(l.id,[]),r.push(l.id);let s=chunkRUS2YBWU_cjs.pe(l);s&&t(s,a,i+1),r.pop();let d=n.get(l.id);d&&d.length===0&&a!==null&&d.push(a);continue}t(l,a,i+1);}}},r=[];return t(e,null,0),n}function KI(e,n){let t=Math.min(e.x,n.x),r=Math.min(e.y,n.y);return {x:t,y:r,width:Math.max(e.x+e.width,n.x+n.width)-t,height:Math.max(e.y+e.height,n.y+n.height)-r}}function UI(e,n){let t=chunkRUS2YBWU_cjs.te(e.root);if(t.length===0)return ZI;let r=new Map;n.pages.forEach((i,l)=>{(d=>{for(let c of d){let u=new Set;Yy(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:l,box:VI(c)}),r.set(f,p);}}})(i.fragments);});let o=YI(e.root),a=[];for(let i of t){let l=chunkRUS2YBWU_cjs.re(i.node),s=[...i.ancestors.map(f=>chunkRUS2YBWU_cjs.re(f).lock),l.lock],d=o.get(i.node.id)??[],c=new Map;for(let f of d)for(let p of r.get(f)??[]){let m=c.get(p.pageIndex);c.set(p.pageIndex,m?KI(m,p.box):p.box);}let u=[...c.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:l.type,level:chunkRUS2YBWU_cjs.se(i.node),depth:i.depth,lock:l.lock,effectiveLock:chunkRUS2YBWU_cjs.we(s),showingPlaceholder:l.showingPlaceholder,temporary:l.temporary,...l.tag===void 0?{}:{tag:l.tag},...l.alias===void 0?{}:{alias:l.alias},...l.id===void 0?{}:{id:l.id},...l.dataBinding===void 0?{}:{dataBinding:l.dataBinding},paragraphIds:d,fragments:u});}return a}var ZI=Object.freeze([]);var Ky=e=>e.verticalAlign==="baseline"?1:.75;function mu(e){let n=Math.round(e.fontSizePt*2);return Math.max(1,n)}function qI(e){let{shaper:n,resolveFont:t,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:l="Latn",language:s="en"}=e,d=new WeakMap,c=new WeakMap,u=new WeakMap,f=g=>{let h=u.get(g);if(h!==void 0)return h;let y=t(g);return u.set(g,y),y},p=(g,h)=>{let y=d.get(g);y||(y=new Map,d.set(g,y));let x=y.get(h);return x||(x=new Map,y.set(h,x)),x},m=(g,h,y)=>n.shape({text:g,fontSizeHalfPoints:mu(y),bidiLevel:0,environment:or({font:h,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:l,language:s,direction:"ltr",features:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})});return {measure(g,h){if(g.length===0)return 0;let y=f(h);if(!y)return r.measure(g,h);let x=p(y,mu(h)),T=x.get(g);if(T===void 0){let R=0;try{for(let B of m(g,y,h).glyphs)R+=B.advanceX;}catch{return r.measure(g,h)}T=R/i,x.set(g,T);}return T*Ky(h)*(h.horizontalScalePercent/100)+g.length*h.characterSpacingPt},lineMetrics(g){let h=f(g);if(!h)return r.lineMetrics(g);let y=Ky(g),x=c.get(h);x||(x=new Map,c.set(h,x));let T=mu(g),R=x.get(T);if(R)return y===1?R:{height:R.height*y,baseline:R.baseline*y};let B,E=true;try{let w=m(" ",h,g),L=w.metrics.ascent/i,C=w.metrics.descent/i,k=L+C;k>0?B={height:k,baseline:L}:(B=r.lineMetrics(g),E=!1);}catch{B=r.lineMetrics(g),E=false;}return E?(x.set(T,B),y===1?B:{height:B.height*y,baseline:B.baseline*y}):B}}}function JI(e){let{layout:n,viewport:t}=e,r=new Set;if(!t){for(let s of n.pages)r.add(s.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=t.top+t.height,i=-1,l=-1;for(let s of n.pages){let d=s.box.y;d+s.box.height>=t.top&&d<=a&&(i===-1&&(i=s.index),l=s.index);}if(i===-1){let s=QI(n,t.top);s!==null&&(i=s,l=s);}if(i!==-1){let s=Math.max(0,i-o),d=Math.min(n.pages.length-1,l+o);for(let c=s;c<=d;c+=1)r.add(c);}for(let s of e.pinnedPages??[])s>=0&&s<n.pages.length&&r.add(s);return r}function QI(e,n){let t=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=n<o.box.y?o.box.y-n:n>o.box.y+o.box.height?n-(o.box.y+o.box.height):0;a<r&&(r=a,t=o.index);}return t}var Uy=["text-local","paragraph-local","flow-structural","global"];function Zy(e,n){return Uy.indexOf(n)>Uy.indexOf(e)?n:e}function ev(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function nv(e){let{run:n,currentRevision:t,publish:r,schedule:o}=e,a=null,i=null,l=null,s=0,d=0;function c(h){let y=e.runCooperatively;if(!y)return n(h);let x=y(h);l=x;try{for(;;){let T=x.step();if(T)return T;if(t()!==h.revision)return x.cancel(),d+=1,null;if(l!==x)return null}}finally{l===x&&(l=null);}}function u(h){let y=p(t());y.impact=Zy(y.impact,h.impact),y.structural=y.structural||h.structural;for(let x of h.paragraphIds)y.paragraphIds.add(x);for(let x of h.created)y.created.add(x);for(let x of h.deleted)y.deleted.add(x);for(let x of h.dependencyKeys)y.dependencyKeys.add(x);}let f=h=>({impact:h.impact,paragraphIds:h.paragraphIds,created:h.created,deleted:h.deleted,dependencyKeys:h.dependencyKeys,structural:h.structural,revision:h.revision});function p(h){return a||(a=ev(h)),a.revision=Math.max(a.revision,h),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),l&&(l.cancel(),l=null,d+=1);let h=a;if(!h)return false;a=null;let y=f(h),x=c(y);return !x||x.revision!==t()?(s+=1,u(y),m(),false):(r(x,y),true)}return {notify(h){let y=p(t());y.impact=Zy(y.impact,h.impact);for(let x of h.dirty)y.paragraphIds.add(x);for(let x of h.created)y.created.add(x),y.paragraphIds.add(x);for(let x of h.deleted)y.deleted.add(x),y.paragraphIds.add(x);for(let x of h.dependencyKeys)y.dependencyKeys.add(x);for(let x of h.splitJoin)y.structural=true,"split"in x?(y.paragraphIds.add(x.split.from),y.paragraphIds.add(x.split.tail)):(y.paragraphIds.add(x.join.kept),y.paragraphIds.add(x.join.removed));(h.impact==="flow-structural"||h.impact==="global")&&(y.structural=true),m();},invalidateAll(h,y){let x=p(h);x.impact="flow-structural",x.structural=true,y&&x.dependencyKeys.add(y),m();},flush:g,pending:()=>a?f(a):null,cancel(){i?.(),i=null,l?.cancel(),l=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}function vr(e,n,t,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(n===i.start)return i.advanceStart;if(n===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(n<=i.range.start)return i.box.x;if(n>=i.range.end){a=i.box.x+i.box.width;continue}return Fl(i,n,t)}return a}function qy(e,n,t){let r=gu(n,t);if(!r)return [];let o=[];for(let a of e.pages)for(let i of $e(a))for(let l of i.lines)for(let s of cn(l)){let d=Po(e,s,r.from,r.to);if(!d)continue;let c=vr(l,d.start,void 0,s),u=vr(l,d.end,void 0,s);o.push({pageIndex:a.index,x:Math.min(c,u),y:l.box.y,width:Math.abs(u-c),height:l.box.height});}return o}function Jy(e,n,t){let r=new Map;if(n.length===0)return r;for(let o of e.pages)if(!(t&&!t.has(o.index)))for(let a of $e(o))for(let i of a.lines)for(let l of cn(i))for(let s of n){let d=Po(e,l,s.from,s.to);if(!d)continue;let c=vr(i,d.start,void 0,l),u=vr(i,d.end,void 0,l),f=r.get(s.key)??[];f.push({pageIndex:o.index,x:Math.min(c,u),y:i.box.y,width:Math.abs(u-c),height:i.box.height}),r.set(s.key,f);}return r}function hu(e){let n=new Map;for(let t=0;t<e.length;t+=1){let r=e[t].position,o=n.get(r.paragraphId);o||(o=new Map,n.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,t);}return {stops:e,index:n}}var es=class{#n=new WeakMap;#l=new WeakMap;get(n,t,r,o){let a;if(!r)a=this.#n.get(n)??new Map,this.#n.has(n)||this.#n.set(n,a);else {let s=this.#l.get(n);s||(s=new WeakMap,this.#l.set(n,s)),a=s.get(r)??new Map,s.has(r)||s.set(r,a);}let i=a.get(t);if(i)return i;let l=o();return a.set(t,l),l}};function Qy(e){let n=[],t=new Set;for(let r of e)t.has(r.lineId)||(t.add(r.lineId),n.push(r.lineId));return n}function eb(e,n,t){let r=null;for(let o of e)o.lineId===n&&(!r||Math.abs(o.x-t)<Math.abs(r.x-t))&&(r=o);return r}function $a(e,n){let t=null;for(let r of e)r.position.paragraphId===n.paragraphId&&(!t||Math.abs(r.position.offset-n.offset)<Math.abs(t.position.offset-n.offset))&&(t=r);return t}function yu(e,n,t){let r=null;for(let o of e){if(o.position.paragraphId!==n.paragraphId)continue;let a=o.position.offset;t===1?a>n.offset&&(!r||a<r.position.offset)&&(r=o):a<n.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function nb(e,n,t){let r=t.index.get(e.paragraphId)?.get(e.offset),o=r===void 0?$a(t.stops,e):t.stops[r];if(!o)return null;let a=o.lineId,i=t.stops.filter(l=>l.lineId===a);return (n===-1?i[0]:i[i.length-1])?.position??null}function tb(e,n,t,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0){let c=yu(a.stops,e,n);if(c)return {position:c.position,desiredX:null}}else {let c=i+n;if(c>=0&&c<a.stops.length)return {position:a.stops[c].position,desiredX:null}}let l=t[r+n];if(!l)return {position:e,desiredX:null};let s=o(l).stops,d=n===-1?s[s.length-1]:s[0];return d?{position:d.position,desiredX:null}:null}function rb(e,n,t){let r=e===-1?n[0]:n[n.length-1];if(!r)return null;let o=t(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function ob(e,n,t,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=l===void 0?$a(i.stops,e):i.stops[l];if(!s)return null;let d=t??s.x,c=Qy(i.stops),u=c.indexOf(s.lineId),f=c[u+n];if(f){let m=eb(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+n;m>=0&&m<r.length;m+=n){let g=a(r[m]),h=Qy(g.stops),y=n===-1?h[h.length-1]:h[0];if(!y)continue;let x=eb(g.stops,y,d);if(x)return {position:x.position,desiredX:d}}let p=n===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var ab=new WeakMap,ib=new WeakMap;function Mn(e){let n=ab.get(e);if(n)return n;let t=new Map;for(let r of e.pages)for(let[o,a]of tv(r)){let i=t.get(o);i?i.push(...a):t.set(o,[...a]);}return ab.set(e,t),t}function tv(e){let n=ib.get(e);if(n)return n;let t=new Map,r=(a,i)=>{for(let l of cn(a)){let s={line:a,pageIndex:i},d=t.get(l.paragraphId);d?d.push(s):t.set(l.paragraphId,[s]);}},o=(a,i)=>{let l=s=>{for(let d of s){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i);continue}for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)l(u.blocks);}};l(a);};for(let a of $e(e))for(let i of a.lines)r(i,e.index);e.header&&o(e.header.fragments,e.index),e.footer&&o(e.footer.fragments,e.index);for(let a of [e.footnotes,e.endnotes])if(a)for(let i of a.notes)o(i.fragments,e.index);return ib.set(e,t),t}function RF(e,n,t){let r=Mn(e).get(n);if(r&&r.length>0){let o=Vo(e,n,t,r.map(a=>a.line));if(o)return o}return Vo(e,n,t)}var lb=new WeakMap;function bu(e,n){let t=lb.get(e);t||(t=new Map,lb.set(e,t));let r=t.get(n);if(r)return r;let o=[];for(let{line:i}of Mn(e).get(n)??[])if(i.range.paragraphId===n)for(let l of i.deletedRanges??[])o.push({start:l.start,end:l.end});o.sort((i,l)=>i.start-l.start);let a=[];for(let i of o){let l=a[a.length-1];l&&i.start<=l.end?l.end=Math.max(l.end,i.end):a.push(i);}return t.set(n,a),a}function sb(e,n){for(let t of e)if(n>t.start&&n<t.end)return true;return false}function db(e,n){for(let t of bu(e,n.paragraphId))if(n.offset>t.start&&n.offset<t.end)return {paragraphId:n.paragraphId,offset:t.end};return n}var rv=/[\p{L}\p{N}_'\u2019]/u;function Xa(e,n,t){let r=a=>{let i=e[a];return i!==void 0&&rv.test(i)},o=Math.max(0,Math.min(n,e.length));if(t===-1){for(;o>0&&!r(o-1);)o-=1;for(;o>0&&r(o-1);)o-=1;return o}for(;o<e.length&&!r(o);)o+=1;for(;o<e.length&&r(o);)o+=1;return o}function ov(e,n,t){let r=Mn(e).get(n.range.paragraphId)??[],o=false;for(let a of r){if(a.line===n){o=true;continue}if(o&&a.line.range.start===t)return true}return false}function av(e,n,t){for(let{line:r}of Mn(e).get(n)??[])if(r.range.start===t&&r.drawings?.some(o=>o.start===t))return r;return null}function iv(e,n,t){for(let r of t?t.spans:e.spans)if(!(n<=r.range.start||n>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function fb(e){let n=e.spans[e.spans.length-1]?.text;return n===`
|
|
16
|
+
`||n===chunkRUS2YBWU_cjs.Xb}function rs(e,n,t,r,o,a,i){for(let l of cn(t))i!==void 0&&l.paragraphId!==i||lv(e,n,t,l,r,o,a);}function lv(e,n,t,r,o,a,i){let l=cn(t).length>1,s=bu(n,r.paragraphId),d=c=>r.spans.some(u=>u.range.start<=c&&c<=u.range.end);for(let c=r.start;c<=r.end;c+=1)if(!(c===r.end&&c>r.start&&!l&&fb(t)&&ov(n,t,c))){if(c===r.start&&c>a&&e.length>0){let u=e[e.length-1];if(u.position.paragraphId===r.paragraphId&&u.position.offset===c)continue}iv(t,c,r)||sb(s,c)&&!d(c)||e.push({position:{paragraphId:r.paragraphId,offset:c},x:vr(t,c,i,r),y:t.box.y,height:t.box.height,lineId:t.id,pageIndex:o});}}function pb(e,n,t,r,o){for(let a of n){if(a.kind==="paragraph"){for(let i of a.lines)rs(r,e,i,t,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)pb(e,l.blocks,t,r,o);}}var sv=new es;function mb(e,n){let t=[];for(let r of e.pages)for(let o of $e(r))for(let a of o.lines)rs(t,e,a,r.index,o.range.start,n);return t}function dv(e,n,t){let o=(Mn(e).get(n.paragraphId)??[]).find(({line:i})=>{let l=Ot(i,n.paragraphId);return l!==null&&n.offset>=l.start&&n.offset<=l.end});if(!o||cn(o.line).length<2)return null;let a=[];return rs(a,e,o.line,o.pageIndex,0,t),hu(a)}function ns(e,n,t){return sv.get(e,n,t,()=>{let r=[];for(let{line:o,pageIndex:a}of Mn(e).get(n)??[])rs(r,e,o,a,0,t,n);return hu(r)})}function cv(e,n,t,r){if(!e.pages[n])return [];let o=[];return pb(e,t,n,o,r),o}function uv(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function gb(e,n,t){let r=uv(t),o=Mn(e).get(n.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?o:[...o].sort((s,d)=>{let c=s.pageIndex===a?0:1,u=d.pageIndex===a?0:1;return c-u}),l=null;for(let{line:s,pageIndex:d}of i){let c=Ot(s,n.paragraphId);if(!c||n.offset<c.start||n.offset>c.end)continue;if(n.offset===c.end&&n.offset>c.start&&cn(s).length===1&&fb(s)){l??={line:s,pageIndex:d};continue}if(n.offset===c.end&&n.offset>c.start&&av(e,n.paragraphId,n.offset))continue;let u=Na(s,n.offset,r.measurer,c);return {position:n,x:u.x,y:u.y,height:u.height,lineId:s.id,pageIndex:d}}if(l){let s=Na(l.line,n.offset,r.measurer,Ot(l.line,n.paragraphId));return {position:n,x:s.x,y:s.y,height:s.height,lineId:l.line.id,pageIndex:l.pageIndex}}return null}function fv(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return Cl(e,t,n)?.caret??null}function pv(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return Ll(e,t,n)}function mv(e){return gi(e)}var cb=new WeakMap;function ts(e,n){let t=cb.get(e);return t||(t=new Map,e.forEach((r,o)=>{t.has(r)||t.set(r,o);}),cb.set(e,t)),t.get(n)??-1}function gu(e,n){if(e.anchor.paragraphId===e.head.paragraphId)return e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor};let t=ts(n,e.anchor.paragraphId),r=ts(n,e.head.paragraphId);return t===-1||r===-1?null:t<r||t===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function Oo(e,n){let t=[],r=new Set;for(let{line:a}of Mn(e).get(n)??[]){let i=Ot(a,n);if(i){for(let l of i.spans){if(l.range.end===l.range.start)continue;let s=`${l.range.start}:${l.range.end}`;if(r.has(s))continue;r.add(s);let d=l.range.end-l.range.start,c=l.text.length===d?l.text:l.text.slice(0,d).padEnd(d," ");t.push({start:l.range.start,text:c});}for(let l of i.drawings){let s=l.start,d=s+1,c=`${s}:${d}`;r.has(c)||(r.add(c),t.push({start:s,text:"\uFFFC"}));}}}t.sort((a,i)=>a.start-i.start);let o="";for(let a of t)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function ub(e,n,t,r){let o=br(e),a=La(e).get(n.paragraphId);return a===void 0?null:tb(n,t,o,a,i=>ns(e,i,r))}function gv(e,n,t,r=null,o={}){if(!o.stops&&(t==="left"||t==="right"))return ub(e,n,t==="left"?-1:1,o.measurer);if(!o.stops&&(t==="wordLeft"||t==="wordRight")){let s=t==="wordLeft"?-1:1,d=Xa(Oo(e,n.paragraphId),n.offset,s);return d===n.offset?ub(e,n,s,o.measurer):{position:{paragraphId:n.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(t==="lineStart"||t==="lineEnd")){let s=nb(n,t==="lineStart"?-1:1,dv(e,n,o.measurer)??ns(e,n.paragraphId,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="documentStart"||t==="documentEnd")){let s=rb(t==="documentStart"?-1:1,br(e),d=>ns(e,d,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(t==="up"||t==="down")){let s=La(e).get(n.paragraphId);return s===void 0?null:ob(n,t==="up"?-1:1,r,br(e),s,d=>ns(e,d,o.measurer))}let a=o.stops?[...o.stops]:mb(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(s=>s.position.paragraphId===n.paragraphId&&s.position.offset===n.offset);if(i===-1){if(t==="left"||t==="right"){let d=yu(a,n,t==="left"?-1:1)??$a(a,n);return d?{position:d.position,desiredX:null}:null}let s=$a(a,n);if(!s)return null;i=a.indexOf(s);}let l=a[i];switch(t){case "left":return {position:a[Math.max(0,i-1)].position,desiredX:null};case "right":return {position:a[Math.min(a.length-1,i+1)].position,desiredX:null};case "lineStart":return {position:a.filter(d=>d.lineId===l.lineId)[0].position,desiredX:null};case "lineEnd":{let s=a.filter(d=>d.lineId===l.lineId);return {position:s[s.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let s=Oo(e,n.paragraphId),d=t==="wordLeft"?-1:1,c=Xa(s,n.offset,d);return c===n.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:n.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:a[0].position,desiredX:null};case "documentEnd":return {position:a[a.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let s=r??l.x,d=l.pageIndex+(t==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(t==="pageUp"?a[0]:a[a.length-1]).position,desiredX:s};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-l.y)*1e3+Math.abs(p.x-s);m<f&&(f=m,u=p);}return {position:u.position,desiredX:s}}case "up":case "down":{let s=r??l.x,d=[],c=new Set;for(let g of a)c.has(g.lineId)||(c.add(g.lineId),d.push(g.lineId));let u=d.indexOf(l.lineId),f=t==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(t==="up"?a[0]:a[a.length-1]).position,desiredX:s};let p=a.filter(g=>g.lineId===d[f]),m=p[0];for(let g of p)Math.abs(g.x-s)<Math.abs(m.x-s)&&(m=g);return {position:m.position,desiredX:s}}default:return null}}function hv(e,n){return gb(e,n)}function yv(e,n,t){let r=gu(n,t);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return bv(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:s}of Mn(e).get(r.from.paragraphId)??[]){let d=Ot(s,r.from.paragraphId);if(!d)continue;let c=Po(e,d,r.from,r.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=Mn(e),i=ts(t,r.from.paragraphId),l=ts(t,r.to.paragraphId);if(i===-1||l===-1)return [];for(let s=i;s<=l;s+=1)for(let{line:d}of a.get(t[s])??[]){let c=Ot(d,t[s]);if(!c)continue;let u=Po(e,c,r.from,r.to);if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&o.push(f);}return o}function bv(e,n){let t=null;for(let{line:r}of Mn(e).get(n.paragraphId)??[])for(let o of Ot(r,n.paragraphId)?.spans??[]){if(o.range.start<n.offset&&n.offset<=o.range.end)return [o];t===null&&o.range.start===n.offset&&(t=o);}return t?[t]:[]}var hb=new WeakMap;function qt(e){let n=hb.get(e);if(n)return n;let t=new Map,r=new Map,o=new Map,a=(l,s,d,c)=>{for(let u of l){if(u.kind==="paragraph")continue;let f=u.tableId,p=o.get(f);p||(p=new Map,o.set(f,p),t.set(f,[]),r.set(f,new Map));for(let m of u.rows){let g=p.get(m.id);g===void 0&&(g=p.size,p.set(m.id,g),r.get(f).set(g,m.cells));for(let h of m.cells)t.get(f).push({pageIndex:s,tableId:f,row:m,cell:h,rowIndex:g,isHeaderRepeat:m.isHeaderRepeat,offsetX:d,offsetY:c}),a(h.blocks,s,d,c);}}};for(let l of e.pages){a(l.fragments,l.index,0,0);for(let s of [l.header,l.footer])s&&a(s.fragments,l.index,s.box.x-l.contentBox.x,s.box.y-l.contentBox.y);for(let s of [l.footnotes,l.endnotes])if(s)for(let d of s.notes)a(d.fragments,l.index,d.box.x-l.contentBox.x,d.box.y-l.contentBox.y);}let i=new Map;for(let[l,s]of t)i.set(l,{placed:s,rows:r.get(l)??new Map});return hb.set(e,i),i}function yb(e){let n=0;for(let t of e.rows.values())for(let r of t)n=Math.max(n,Zt(r).to+1);return n}var Zt=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function xv(e,n,t){if(n.tableId!==t.tableId)return null;let r=qt(e).get(n.tableId);if(!r)return null;let o=Math.min(n.rowIndex,t.rowIndex),a=Math.max(n.rowIndex,t.rowIndex),i=Math.min(Zt(n).from,Zt(t).from),l=Math.max(Zt(n).to,Zt(t).to),s=p=>{let{from:m,to:g}=Zt(p);return g>=i&&m<=l},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&s(m)),c=r.rows.size+yb(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[g,h]of r.rows)if(!(g<o||g>a))for(let y of h){if(!s(y))continue;let{from:x,to:T}=Zt(y);x<i&&(i=x,m=true),T>l&&(l=T,m=true);}for(;o>0&&d(o);)o-=1,m=true;for(;d(a+1);)a+=1,m=true;if(!m)break}let u=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:m,to:g}=Zt(p.cell);g<i||m>l||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:n.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:l},text:Sv(e,n.tableId,u)}}function os(e,n){let t=new Set(n),r=[],o=new Set;for(let a of qt(e).values())for(let i of a.placed)if(!(i.isHeaderRepeat||!t.has(i.cell.id)))for(let l of i.cell.blocks)Va(l,r,o);return r}function Va(e,n,t){if(e.kind==="paragraph"){for(let r of Yt(e))t.has(r)||(t.add(r),n.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)Va(a,n,t);}function Sv(e,n,t){let r=os(e,t),o=r[0],a=r[r.length-1];return !o||!a?Pv(e,n):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:Oo(e,a).length}}}function Pv(e,n){let t=qt(e).get(n);for(let o of t?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let l of o.cell.blocks)Va(l,a,new Set);let i=a[0];if(i){let l={paragraphId:i,offset:0};return {anchor:l,head:l}}}for(let o of e.pages)for(let a of $e(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function wv(e){let n=[...$e(e)];for(let t of [e.header,e.footer])t&&n.push(...jn(t.fragments));for(let t of [e.footnotes,e.endnotes])if(t)for(let r of t.notes)n.push(...jn(r.fragments));return n}function Rv(e,n){let t=new Set(os(e,n)),r=[],o=new Set;for(let a of e.pages)for(let i of wv(a))if(t.has(i.paragraphId))for(let l of i.lines)for(let s of l.spans){let d=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(d)||(o.add(d),r.push(s));}return r}function Iv(e,n){let t=new Set(n),r=[];for(let o of qt(e).values())for(let a of o.placed)t.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function vv(e,n){let t=qt(e).get(n.tableId);if(!t)return "";let r=new Set(n.cellIds),o=new Map,a=new Set;for(let i of t.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let l=os(e,[i.cell.id]).map(d=>Oo(e,d)).join(`
|
|
17
|
+
`),s=o.get(i.rowIndex);s?s.set(i.cell.gridColumn,l):o.set(i.rowIndex,new Map([[i.cell.gridColumn,l]]));}return [...o.keys()].sort((i,l)=>i-l).map(i=>{let l=o.get(i),s=[];for(let d=n.columns.from;d<=n.columns.to;d+=1)s.push(l.get(d)??"");return s.join(" ")}).join(`
|
|
18
|
+
`)}function xu(e,n){let t=null,r=-1;for(let[o,a]of qt(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let l=[];for(let d of i.cell.blocks)Va(d,l,new Set);if(!l.includes(n))continue;let s=o.length;s<=r||(r=s,t={tableId:o,rows:a.rows.size,columns:yb(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return t}function $F(e,n,t){if(t){let a=xu(e,n);if(!a||a.tableId!==t.tableId)return null;let i=t.cellIds[0];if(!i)return null;let l=qt(e).get(t.tableId);if(!l)return null;for(let s of l.placed)if(s.cell.id===i)return {tableId:t.tableId,rowId:s.row.id,cellId:i,cellIds:t.cellIds,gridColumnIndex:s.cell.gridColumn,isHeaderRepeat:s.isHeaderRepeat};return null}let r=xu(e,n);if(!r)return null;let o=qt(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let l of a.cell.blocks)Va(l,i,new Set);if(i.includes(n))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}exports.$=Jf;exports.$a=Ne;exports.$b=So;exports.$c=vo;exports.$d=$F;exports.A=Ys;exports.Aa=ea;exports.Ab=Tm;exports.Ac=wC;exports.Ad=Vy;exports.B=pi;exports.Ba=iS;exports.Bb=It;exports.Bc=RC;exports.Bd=XI;exports.C=Dx;exports.Ca=lS;exports.Cb=Ia;exports.Cc=IC;exports.Cd=UI;exports.D=_x;exports.Da=sS;exports.Db=Cm;exports.Dc=vC;exports.Dd=qI;exports.E=Hx;exports.Ea=dS;exports.Eb=Dm;exports.Ec=TC;exports.Ed=JI;exports.F=Us;exports.Fa=dd;exports.Fb=Qd;exports.Fc=Nl;exports.Fd=nv;exports.G=$f;exports.Ga=Ur;exports.Gb=vt;exports.Gc=Fn;exports.Gd=qy;exports.H=Xf;exports.Ha=ud;exports.Hb=il;exports.Hc=eB;exports.Hd=Jy;exports.I=Vf;exports.Ia=fd;exports.Ib=ll;exports.Ic=Gc;exports.Id=RF;exports.J=Yf;exports.Ja=ta;exports.Jb=Jm;exports.Jc=$c;exports.Jd=db;exports.K=Kf;exports.Ka=mS;exports.Kb=gl;exports.Kc=Xc;exports.Kd=Xa;exports.L=Uf;exports.La=Zr;exports.Lb=hl;exports.Lc=vR;exports.Ld=mb;exports.M=Gx;exports.Ma=pd;exports.Mb=yl;exports.Mc=jR;exports.Md=cv;exports.N=$x;exports.Na=lr;exports.Nb=oc;exports.Nc=WR;exports.Nd=gb;exports.O=$r;exports.Oa=bS;exports.Ob=tg;exports.Oc=jl;exports.Od=fv;exports.P=Xx;exports.Pa=xS;exports.Pb=ac;exports.Pc=Vn;exports.Pd=pv;exports.Q=qs;exports.Qa=yt;exports.Qb=gr;exports.Qc=Yh;exports.Qd=mv;exports.R=$e;exports.Ra=Ht;exports.Rb=$n;exports.Rc=Wl;exports.Rd=Oo;exports.S=jn;exports.Sa=mp;exports.Sb=Sl;exports.Sc=YR;exports.Sd=gv;exports.T=Js;exports.Ta=Sd;exports.Tb=Oa;exports.Tc=Gl;exports.Td=hv;exports.U=Ux;exports.Ua=gp;exports.Ub=Pg;exports.Uc=KR;exports.Ud=yv;exports.V=qf;exports.Va=Pd;exports.Vb=wg;exports.Vc=Kh;exports.Vd=xv;exports.W=Vo;exports.Wa=hp;exports.Wb=Ca;exports.Wc=Uh;exports.Wd=os;exports.X=gi;exports.Xa=bt;exports.Xb=xo;exports.Xc=wr;exports.Xd=Rv;exports.Y=Yo;exports.Ya=wd;exports.Yb=gc;exports.Yc=ZR;exports.Yd=Iv;exports.Z=Ko;exports.Za=Rd;exports.Zb=Tg;exports.Zc=ja;exports.Zd=vv;exports._=Uo;exports._a=tt;exports._b=L0;exports._c=Zh;exports._d=xu;exports.a=Jn;exports.aa=hi;exports.ab=Gt;exports.ac=hc;exports.ad=Wa;exports.b=or;exports.ba=Xr;exports.bb=rt;exports.bc=yc;exports.bd=qh;exports.c=Of;exports.ca=ed;exports.cb=GS;exports.cc=Sc;exports.cd=JR;exports.d=Hs;exports.da=np;exports.db=Td;exports.dc=Pc;exports.dd=Jh;exports.e=si;exports.ea=qo;exports.eb=mn;exports.ec=_g;exports.ed=nu;exports.f=Bb;exports.fa=tp;exports.fb=tn;exports.fc=wc;exports.fd=$l;exports.g=Mb;exports.ga=rp;exports.gb=ao;exports.gc=zg;exports.gd=Qh;exports.h=Wo;exports.ha=Yr;exports.hb=pa;exports.hc=yr;exports.hd=ey;exports.i=Eb;exports.ia=op;exports.ib=Cd;exports.ic=Il;exports.id=Ga;exports.j=Nb;exports.ja=Xv;exports.jb=Bp;exports.jc=br;exports.jd=ny;exports.k=Me;exports.ka=nd;exports.kb=eP;exports.kc=Vg;exports.kd=Xl;exports.l=cx;exports.la=td;exports.lb=nP;exports.lc=cn;exports.ld=ru;exports.m=Nf;exports.ma=rd;exports.mb=Pt;exports.mc=uC;exports.md=uy;exports.n=vx;exports.na=od;exports.nb=ur;exports.nc=Yt;exports.nd=ou;exports.o=di;exports.oa=gt;exports.ob=Ld;exports.oc=fC;exports.od=oI;exports.p=kx;exports.pa=Jo;exports.pb=fr;exports.pc=Cc;exports.pd=iu;exports.q=Ox;exports.qa=Pn;exports.qb=hP;exports.qc=Ea;exports.qd=Kl;exports.r=Cx;exports.ra=Dt;exports.rb=Tk;exports.rc=W0;exports.rd=Py;exports.s=$s;exports.sa=oS;exports.sb=jd;exports.sc=Cl;exports.sd=wy;exports.t=Vs;exports.ta=ad;exports.tb=qi;exports.tc=xC;exports.td=cu;exports.u=zn;exports.ua=Kr;exports.ub=Pm;exports.uc=G0;exports.ud=ql;exports.v=Fx;exports.va=id;exports.vb=rl;exports.vc=Ll;exports.vd=Ql;exports.w=Mx;exports.wa=xi;exports.wb=Rm;exports.wc=oh;exports.wd=zI;exports.x=Ex;exports.xa=Qo;exports.xb=go;exports.xc=Fl;exports.xd=$y;exports.y=fi;exports.ya=ld;exports.yb=Cw;exports.yc=Na;exports.yd=oF;exports.z=Ax;exports.za=sd;exports.zb=yo;exports.zc=tR;exports.zd=Xy;
|