@docx-editor.dev/core 2.11.0 → 2.12.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.
Files changed (109) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +5 -5
  3. package/dist/automation.d.ts +5 -5
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +8 -8
  7. package/dist/binding.d.ts +8 -8
  8. package/dist/binding.js +1 -1
  9. package/dist/{chunk-EJATEGJZ.cjs → chunk-3JON7JMD.cjs} +1 -1
  10. package/dist/{chunk-GRDFEH5Q.cjs → chunk-5V6FNKBE.cjs} +1 -1
  11. package/dist/chunk-BXRVGHTY.cjs +18 -0
  12. package/dist/chunk-BXTTPJSH.js +5 -0
  13. package/dist/chunk-ILTZTY3K.cjs +10 -0
  14. package/dist/chunk-IUM7FZPA.js +2 -0
  15. package/dist/chunk-JWZG4QJ5.cjs +2 -0
  16. package/dist/chunk-JXZYDBKU.cjs +19 -0
  17. package/dist/chunk-KBOOIC2Q.js +19 -0
  18. package/dist/chunk-L6XZTLPS.js +10 -0
  19. package/dist/chunk-L7OR5TJK.cjs +5 -0
  20. package/dist/chunk-MHQNR2OU.js +2 -0
  21. package/dist/chunk-MLGPISGH.js +1 -0
  22. package/dist/chunk-NJXQABQU.js +18 -0
  23. package/dist/chunk-TKEGK4GQ.cjs +2 -0
  24. package/dist/chunk-VGFMPWND.js +2 -0
  25. package/dist/{chunk-BP7ANXGA.js → chunk-W77HJGYX.js} +1 -1
  26. package/dist/{chunk-WPQMPHNR.cjs → chunk-XCFM3G5L.cjs} +1 -1
  27. package/dist/collaboration/replication.cjs +1 -1
  28. package/dist/collaboration/replication.d.cts +3 -3
  29. package/dist/collaboration/replication.d.ts +3 -3
  30. package/dist/collaboration/replication.js +1 -1
  31. package/dist/collaboration.d.cts +3 -3
  32. package/dist/collaboration.d.ts +3 -3
  33. package/dist/contracts/editor.d.cts +7 -7
  34. package/dist/contracts/editor.d.ts +7 -7
  35. package/dist/contracts/interaction.d.cts +7 -7
  36. package/dist/contracts/interaction.d.ts +7 -7
  37. package/dist/contracts/modules.d.cts +7 -7
  38. package/dist/contracts/modules.d.ts +7 -7
  39. package/dist/{custom-node-writes-JfTn-Sy6.d.ts → custom-node-writes-CcNeHH5C.d.ts} +2 -2
  40. package/dist/{custom-node-writes-CwkYRw3V.d.cts → custom-node-writes-D4rMJIES.d.cts} +2 -2
  41. package/dist/{editor-C8edZgy5.d.cts → editor-B76SEMZw.d.cts} +3 -3
  42. package/dist/{editor-BogcVHXk.d.ts → editor-BcdsPdbY.d.ts} +3 -3
  43. package/dist/editor.cjs +1 -1
  44. package/dist/editor.d.cts +56 -23
  45. package/dist/editor.d.ts +56 -23
  46. package/dist/editor.js +1 -1
  47. package/dist/{index-BNv-ZLQP.d.ts → index-BYTvklN5.d.ts} +12 -12
  48. package/dist/{index-Dn0lOp9Z.d.cts → index-CDGhPib1.d.cts} +12 -12
  49. package/dist/index.cjs +1 -1
  50. package/dist/index.d.cts +15 -15
  51. package/dist/index.d.ts +15 -15
  52. package/dist/index.js +1 -1
  53. package/dist/layout.cjs +1 -1
  54. package/dist/layout.d.cts +29 -18
  55. package/dist/layout.d.ts +29 -18
  56. package/dist/layout.js +1 -1
  57. package/dist/{note-properties-BmoSdyKS.d.ts → note-properties-Bx7rXruA.d.ts} +1 -1
  58. package/dist/{note-properties-BvGfHk5e.d.cts → note-properties-zQ8w04en.d.cts} +1 -1
  59. package/dist/{omml-equation-Ciq5rgb7.d.ts → omml-equation-69O1Pd8G.d.ts} +1 -1
  60. package/dist/{omml-equation-CqQOt_dD.d.cts → omml-equation-BmV51rim.d.cts} +1 -1
  61. package/dist/output.cjs +1 -1
  62. package/dist/output.d.cts +6 -6
  63. package/dist/output.d.ts +6 -6
  64. package/dist/output.js +1 -1
  65. package/dist/{protocol-Ckl7hWsv.d.ts → protocol-DC7ueVuo.d.ts} +2 -2
  66. package/dist/{protocol-BB-WP3zk.d.cts → protocol-FTXtrAIT.d.cts} +2 -2
  67. package/dist/{review-items-CkYyXhXM.d.ts → review-items-B78OsJU2.d.ts} +1 -1
  68. package/dist/{review-items-BdeLNRi2.d.cts → review-items-C-2WQdEb.d.cts} +1 -1
  69. package/dist/{review-reads-BOLSBm5w.d.cts → review-reads-CbBQlb-n.d.cts} +2 -2
  70. package/dist/{review-reads-Crf0Xn42.d.ts → review-reads-UexYBp-m.d.ts} +2 -2
  71. package/dist/{revision-projection-C2S8PSQm.d.cts → revision-projection-6u8lae9J.d.cts} +1 -1
  72. package/dist/{revision-projection-Ae2CWa8E.d.ts → revision-projection-B2v9U3qx.d.ts} +1 -1
  73. package/dist/{semantic-cell-selection-DdmoxC-y.d.ts → semantic-cell-selection-DsYz2Vg3.d.ts} +4 -4
  74. package/dist/{semantic-cell-selection-C0OFD4D9.d.cts → semantic-cell-selection-nEE7E3Z8.d.cts} +4 -4
  75. package/dist/{semantic-interaction-COyhZ9WH.d.ts → semantic-interaction-C00BpIyC.d.ts} +1 -1
  76. package/dist/{semantic-interaction-Cs2jErnt.d.cts → semantic-interaction-DiOX0FIH.d.cts} +1 -1
  77. package/dist/{semantic-paint-UHaj3sBY.d.cts → semantic-paint-Cc11nrDL.d.cts} +2 -2
  78. package/dist/{semantic-paint-vA-oLSdV.d.ts → semantic-paint-ofuoBsYo.d.ts} +2 -2
  79. package/dist/{semantic-records-5AOQJmLX.d.cts → semantic-records-CRG1r6-a.d.cts} +3 -3
  80. package/dist/{semantic-records-9xhwbJ23.d.ts → semantic-records-CzI0ZEuR.d.ts} +3 -3
  81. package/dist/{shaped-measurer-vzsY88oK.d.ts → shaped-measurer-CkOGZQn9.d.ts} +1 -1
  82. package/dist/{shaped-measurer-NeF2mPSu.d.cts → shaped-measurer-CneACGcP.d.cts} +1 -1
  83. package/dist/store.cjs +1 -1
  84. package/dist/store.d.cts +19 -13
  85. package/dist/store.d.ts +19 -13
  86. package/dist/store.js +1 -1
  87. package/dist/{tree-op-types-BPyXNxyL.d.cts → tree-op-types-CA7qgAUF.d.cts} +42 -9
  88. package/dist/{tree-op-types-DnzAOnc9.d.ts → tree-op-types-HKfUzt_-.d.ts} +42 -9
  89. package/dist/{tree-package-fragment-BjZ3RWAS.d.cts → tree-package-fragment-Cz-v-0B3.d.cts} +2 -2
  90. package/dist/{tree-package-fragment-CDER0G3B.d.ts → tree-package-fragment-oJZX_5iN.d.ts} +2 -2
  91. package/dist/{tree-session-contract-DhdsFT_z.d.ts → tree-session-contract-BPDLrEPX.d.ts} +5 -5
  92. package/dist/{tree-session-contract-BF2FVBOM.d.cts → tree-session-contract-Cbl87xa8.d.cts} +5 -5
  93. package/dist/{tree-store-CNZ3O83s.d.ts → tree-store-B7hd6cEa.d.ts} +1 -1
  94. package/dist/{tree-store-DfZi7FqY.d.cts → tree-store-BenW0Mg_.d.cts} +1 -1
  95. package/package.json +2 -2
  96. package/dist/chunk-34BNQUD4.js +0 -10
  97. package/dist/chunk-5AVHO75P.cjs +0 -19
  98. package/dist/chunk-6HMSC7UV.js +0 -2
  99. package/dist/chunk-76Y3Y45J.cjs +0 -2
  100. package/dist/chunk-CRZR6K5Z.js +0 -19
  101. package/dist/chunk-GWV65NQW.cjs +0 -10
  102. package/dist/chunk-GXLZCXEH.js +0 -2
  103. package/dist/chunk-JUQOPVSK.cjs +0 -2
  104. package/dist/chunk-LAETEBHD.js +0 -1
  105. package/dist/chunk-M6Z3KFXM.cjs +0 -5
  106. package/dist/chunk-UQFOYZJO.cjs +0 -18
  107. package/dist/chunk-WXQ245MQ.js +0 -18
  108. package/dist/chunk-WZHIFNSU.js +0 -5
  109. package/dist/chunk-X7A5XART.js +0 -2
@@ -0,0 +1,18 @@
1
+ 'use strict';var chunk5V6FNKBE_cjs=require('./chunk-5V6FNKBE.cjs'),chunkJWZG4QJ5_cjs=require('./chunk-JWZG4QJ5.cjs'),chunkILTZTY3K_cjs=require('./chunk-ILTZTY3K.cjs');var XS=Symbol("validated-resolved-font"),Td=64*1024*1024,Cd=256,kd=128*1024*1024,Yn=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(t,n,r={}){super(`Font resolution failed (${t}) for ${no(n)}`),this.code=t,this.request=ro(n),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash;}},Ep=e=>{if(e.family.trim().length===0)throw new TypeError("Font family must not be empty");if(!Number.isInteger(e.weight)||e.weight<1||e.weight>1e3)throw new RangeError("Font weight must be an integer from 1 through 1000");if(e.style!=="normal"&&e.style!=="italic")throw new TypeError("Font style must be normal or italic")},ro=e=>(Ep(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),no=e=>(Ep(e),JSON.stringify([e.family,e.weight,e.style])),Od=class{[XS]=true;id;identity;request;family;byteLength;hash;faceIndex;substitution;constructor(t,n){if(t.id.length===0)throw new TypeError("Resolved font id must not be empty");if(!Number.isInteger(t.faceIndex)||t.faceIndex<0)throw new RangeError("Font face index must be a non-negative integer");this.id=t.id,this.request=ro(t.request),this.family=this.request.family,this.hash=t.hash,this.faceIndex=t.faceIndex,this.identity=`${this.hash}#${this.faceIndex}`,this.byteLength=t.byteLength,this.substitution=null,n&&(this.substitution=Object.freeze({requested:ro(n.requested),resolved:ro(n.resolved)})),Object.freeze(this);}get bytes(){return Ei(this).slice()}},Np=new WeakSet,Ap=new WeakMap,Dp=new WeakMap,_p=(e,t,n,r)=>{let o=new Od(e,r);return Ap.set(o,t),Dp.set(o,n),Np.add(o),o},Ei=e=>{ao(e);let t=Ap.get(e);if(!t)throw new TypeError("Resolved font has no owned byte capability");return t},Ni=e=>{ao(e);let t=Dp.get(e);if(!t)throw new TypeError("Resolved font has no admitted table metadata");return t},ao=e=>{if(typeof e!="object"||e===null||!Np.has(e))throw new TypeError("Shaping requires a validated resolved font")},Hp=(e,t)=>e[t]<<8|e[t+1],oo=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Fp=(e,t)=>{if(t>e.byteLength-12)return {valid:false,diagnostic:"truncated sfnt header"};let n=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]);if(!(e[t]===0&&e[t+1]===1&&e[t+2]===0&&e[t+3]===0)&&n!=="OTTO"&&n!=="true"&&n!=="typ1")return {valid:false,diagnostic:"unsupported sfnt signature"};let o=Hp(e,t+4),a=t+12+o*16;if(!Number.isSafeInteger(a)||a>e.byteLength)return {valid:false,diagnostic:"truncated sfnt table directory"};for(let i=0;i<o;i+=1){let s=t+12+i*16,l=oo(e,s+8),d=oo(e,s+12);if(l>e.byteLength||d>e.byteLength-l)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},YS=(e,t)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?oo(e,12+t*4):0,o=Hp(e,r+4),a=new Set;for(let i=0;i<o;i+=1){let s=r+12+i*16;a.add(String.fromCharCode(e[s],e[s+1],e[s+2],e[s+3]));}return Object.freeze(a)},Ai=(e,t)=>{if(!Number.isSafeInteger(t)||t<0)return {valid:false,diagnostic:"invalid font face index"};if(e.byteLength<12)return {valid:false,diagnostic:"truncated sfnt header"};if(String.fromCharCode(e[0],e[1],e[2],e[3])!=="ttcf")return t!==0?{valid:false,diagnostic:"standalone sfnt has only face index zero"}:Fp(e,0);let r=oo(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=oo(e,8),a=12+o*4;if(o===0||!Number.isSafeInteger(a)||a>e.byteLength||t>=o)return {valid:false,diagnostic:"invalid TTC face directory"};let i=oo(e,12+t*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:Fp(e,i)},KS=(e,t,n,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};if(e.bytes.byteLength>t)return {kind:"overLimit",actual:e.bytes.byteLength};let o=e.bytes.slice();r?.onOwnedByteCopy?.(),r?.onHash?.();let a=chunkILTZTY3K_cjs.a(o);if(e.hash!==a)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:a};let i=Ai(o,e.faceIndex);if(!i.valid)return {kind:"malformed",diagnostic:i.diagnostic};r?.onTableScan?.();let s=YS(o,e.faceIndex);try{let d=n(o,e.faceIndex);if(!d.valid)return {kind:"malformed",diagnostic:d.diagnostic}}catch(d){return {kind:"malformed",diagnostic:d instanceof Error?d.message:"font validator threw"}}let l={kind:"resolved",font:_p({...e,byteLength:o.byteLength},o,s)};return r?.onAdmission?.(),l},US=e=>{if(!Number.isSafeInteger(e.epoch)||e.epoch<0)throw new RangeError("Font resource epoch must be a non-negative safe integer");if(!Number.isSafeInteger(e.maxFontBytes)||e.maxFontBytes<=0||e.maxFontBytes>Td)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${Td}`);if(typeof e.validateFont!="function")throw new TypeError("Font snapshot requires a validator");if(e.resources.length>Cd)throw new RangeError(`Font source count must not exceed ${Cd}`);let t=0;for(let l of e.resources){if(l.bytes.byteLength>kd-t)throw new RangeError(`Aggregate font bytes must not exceed ${kd}`);t+=l.bytes.byteLength;}let n=e.epoch,r=e.maxFontBytes,o=e.validateFont,a=new Map;for(let l of e.resources){let d=no(l.request);if(a.has(d))throw new TypeError(`Duplicate font resource request: ${d}`);a.set(d,KS(l,r,o,e.instrumentation));}let i=new Map;for(let l of e.substitutions??[]){let d=no(l.from);if(i.has(d))throw new TypeError(`Duplicate font substitution request: ${d}`);i.set(d,ro(l.to));}return Object.freeze({epoch:n,resolve:l=>{let d=ro(l),c=no(d),u=i.get(c),f=u??d,p=a.get(no(f));return p?p.kind==="forbidden"?new Yn("forbidden",d):p.kind==="overLimit"?new Yn("overLimit",d,{limit:r,actual:p.actual}):p.kind==="malformed"?new Yn("malformed",d,{diagnostic:p.diagnostic}):p.kind==="hashMismatch"?new Yn("hashMismatch",d,{expectedHash:p.expectedHash,actualHash:p.actualHash}):u?_p({request:p.font.request,id:p.font.id,hash:p.font.hash,faceIndex:p.font.faceIndex,byteLength:p.font.byteLength},Ei(p.font),Ni(p.font),{requested:d,resolved:u}):p.font:new Yn("missing",d)}})};var dn=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},Di=(e,t)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${t} must be non-blank and contain no control characters`)},qS=(e,t)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${t} must be a four-byte ASCII tag`)},zp=(e,t,n)=>{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(qS(a,`${t} key`),!Number.isFinite(i)||n&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${t} value must be ${n?"a non-negative safe integer":"finite"}`);if(n&&i>4294967295)throw new RangeError(`${t} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},Bd=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),ZS=e=>e?Object.freeze({requested:Bd(e.requested),resolved:Bd(e.resolved)}):void 0,jp=new WeakSet,Ld=e=>{if(ao(e),!jp.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");jp.add(e);}},Md=e=>(Ld(e),e),Hi=e=>(Ld(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:Bd(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:ZS(e.substitution)??null})),hr=e=>{if(Di(e.shapingLibrary.name,"shaping library name"),Di(e.shapingLibrary.version,"shaping library version"),Di(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(Di(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 t=Md(e.font),n=e.fallbackOrder.map(Md),r=new Set;for(let o of n){let a=JSON.stringify(Hi(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:t,variationAxes:zp(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:zp(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...n]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},Wp=e=>{let t=hr(e);return Object.freeze({font:Hi(t.font),variationAxes:Object.freeze(Object.entries(t.variationAxes).map(n=>Object.freeze(n))),shapingLibrary:Object.freeze({name:t.shapingLibrary.name,version:t.shapingLibrary.version}),unicodeDataVersion:t.unicodeDataVersion,normalization:t.normalization,script:t.script,language:t.language,direction:t.direction,features:Object.freeze(Object.entries(t.features).map(n=>Object.freeze(n))),fallbackOrder:Object.freeze(t.fallbackOrder.map(Hi)),fixedPointScale:t.fixedPointScale,roundingMode:t.roundingMode})},Fd=e=>JSON.stringify(Wp(e)),gr=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},$t=e=>{try{return dn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},Gp=new WeakMap,_i=e=>{let t=Gp.get(e);if(t)return t;Ld(e);let n=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 Gp.set(e,n),n},zi=(e,t)=>{let n=hr(t);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==n.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(gr(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(l=>{gr(l.id,"glyph id"),gr(l.cluster,"glyph cluster");let d=r.get(l.outline);if(!d){if(!Number.isSafeInteger(l.outline.unitsPerEm)||l.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(l.outline)?l.outline:Object.freeze({path:l.outline.path,unitsPerEm:l.outline.unitsPerEm}),r.set(l.outline,d);}return Object.freeze({id:l.id,cluster:l.cluster,originX:$t(l.originX),originY:$t(l.originY),advanceX:$t(l.advanceX),advanceY:$t(l.advanceY),offsetX:$t(l.offsetX),offsetY:$t(l.offsetY),outline:d})}),a=e.fontSpans.map(l=>{if(gr(l.glyphStart,"font span start"),gr(l.glyphEnd,"font span end"),l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");l.fallbackIndex!==null&&gr(l.fallbackIndex,"fallback index");let d=Md(l.font);if(l.fallbackIndex===null){if(_i(d)!==_i(n.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=n.fallbackOrder[l.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(_i(d)!==_i(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...l,font:d})});for(let l=0;l<a.length;l+=1){let d=l===0?0:a[l-1].glyphEnd;if(a[l].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(l=>{for(let[c,u]of [["cluster text start",l.textStart],["cluster text end",l.textEnd],["cluster glyph start",l.glyphStart],["cluster glyph end",l.glyphEnd],["cluster font span",l.fontSpan]])gr(u,c);if(l.textEnd<=l.textStart||l.textEnd>e.text.length||l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[l.fontSpan];if(!d||l.glyphStart<d.glyphStart||l.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...l,advance:$t(l.advance),caretEdges:Object.freeze(l.caretEdges.map($t))})}),s=Object.freeze({ascent:$t(e.metrics.ascent),descent:$t(e.metrics.descent),lineGap:$t(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:s})},JS=(e,t)=>{let n=zi(e,t);return Object.freeze({text:n.text,direction:n.direction,script:t.script,language:t.language,bidiLevel:n.bidiLevel,glyphs:n.glyphs,clusters:n.clusters,fontSpans:Object.freeze(n.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:Hi(r.font)}))),metrics:n.metrics})};function so(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function Vp(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>so(t))}function tR(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 $p(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function Xp(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. (${Vp(e instanceof Error?e.message:String(e))})`}function Yp(e){let t=Vp(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. (${t})`}function Kp(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var ba=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),xa=null,ha=null;function nR(){return xa?Promise.resolve():ha||(ha=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==ba.version)throw new Ne("shapingLibraryMismatch",{diagnostic:Kp(ba.version,t)});xa=e;}).catch(e=>{throw ha=null,e instanceof Ne?e:$p(e)?new Ne("unsupportedRuntime",{diagnostic:Xp(e),cause:e}):new Ne("wasmUnavailable",{diagnostic:Yp(e),cause:e})}),ha)}function rR(){return xa!==null}function oR(){if(!xa)throw new Ne("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return xa}var Ne=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},aR=16*1024*1024,iR=1e6,sR=1e6,lR=1e6,dR=4,cR=512,uR=1024*1024,fR=16*1024*1024,pR=32*1024*1024,mR=64*1024*1024,gR=64*1024*1024,hR=1e6,yR=1e6,bR=1e6,xR=64,SR=4096,RR=4*1024*1024,wR=64*1024*1024,PR=64*1024*1024,IR=256*1024*1024,vR=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Up=["cmap","head","hhea","hmtx","maxp"],TR=(e,t)=>e[t]<<8|e[t+1],CR=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,kR=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?CR(e,12+t*4):0,OR=(e,t)=>{let n=kR(e,t),r=TR(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},BR=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),MR=(e,t)=>{let n=Ai(e,t);if(!n.valid)return n;let r=OR(e,t);for(let o of Up)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},LR=MR,cn=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},FR=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let d=i*2n;(d>t||d===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let s=r?-a:a,l=Number(s);if(!Number.isSafeInteger(l))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return l},qp=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");return dn(FR(BigInt(e)*BigInt(n),BigInt(t),r))},ER=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>qp(i,a,o,r)},NR=(e,t)=>{if(t.length===0)return [];let n=[...new Set(t.map(i=>i.cluster))].sort((i,s)=>i-s),r=new Map;for(let i=0;i<n.length;i+=1)r.set(n[i],n[i+1]??e.length);let o=[],a=0;for(;a<t.length;){let i=t[a].cluster,s=a+1;for(;s<t.length&&t[s].cluster===i;)s+=1;let l=t.slice(a,s).reduce((c,u)=>c+u.advanceX,0),d=dn(l);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:s,advance:d,caretEdges:Object.freeze([dn(0),d]),fontSpan:0}),a=s;}return o},un=64,Cn=8,yr=8,AR=32,Zp=un+2*Cn,DR=un+Cn+yr,_R=un+Cn+yr,HR=un+Cn+yr,Jp=un+8*Cn,Qp=un+8*yr+Cn,zR=un+6*yr+Cn,jR=un+3*yr+2*Cn,GR=un+3*yr,Sa=e=>un+e.length*Uint16Array.BYTES_PER_ELEMENT,Nd=e=>HR+Sa(e),ya=e=>AR+e*Cn,WR=(e,t)=>Zp+Sa(e)+DR+Nd(t),VR=e=>Jp+Sa(e)+ya(e.length)+e.length*Qp,$R=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return Jp+Sa(e.text)+ya(e.glyphs.length)+e.glyphs.length*Qp+ya(e.clusters.length)+e.clusters.length*zR+e.clusters.reduce((n,r)=>n+ya(r.caretEdges.length),0)+ya(e.fontSpans.length)+e.fontSpans.length*jR+GR+[...t].reduce((n,r)=>n+Nd(r.path),0)},XR=(e,t)=>Zp+Sa(e)+_R+t,Ed=class{#t;#s;#u;#f;#p;#y;#b;#m;#g;#l;#h;#d;#e;#o=new Map;#a=new Map;#n=new Map;#i=0;#r=0;#c;constructor(t,n){this.#t=t,this.#s=cn(n.maxFontBytes??aR,"maximum font bytes",gR),this.#u=cn(n.maxInputUtf16??iR,"maximum input UTF-16 code units",hR),this.#f=cn(n.maxCodepoints??sR,"maximum input code points",yR),this.#p=cn(n.maxGlyphs??lR,"maximum shaped glyphs",bR),this.#y=cn(n.maxCachedFaces??dR,"maximum cached faces",xR),this.#b=cn(n.maxCachedShapes??cR,"maximum cached shape results",SR),this.#m=cn(n.maxOutlineBytes??uR,"maximum outline bytes",RR),this.#g=cn(n.maxCachedOutlineBytes??fR,"maximum cached outline bytes",wR),this.#l=cn(n.maxShapedRunBytes??pR,"maximum shaped run bytes",PR),this.#h=cn(n.maxCachedShapeBytes??mR,"maximum cached shape bytes",IR),this.#d=n.instrumentation?.onFaceCacheEvent,this.#e=n.instrumentation,this.#c=new this.#t.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#n.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(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=Ni(t);for(let c of Up)if(!o.has(c))throw new Ne("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#t.Blob(BR(n)),i=new this.#t.Face(a,t.faceIndex),s=new this.#t.Font(i),l=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(l.ascender)||!Number.isSafeInteger(l.descender)||!Number.isSafeInteger(l.lineGap))throw new Ne("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(s.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:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem};return this.#o.set(t.identity,d),this.#d?.(Object.freeze({kind:"created",identity:t.identity})),d}#R(t,n,r){let o=JSON.stringify([t.identity,t.unitsPerEm,r,n]),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=t.font.glyphToPath(n),s=Nd(i);if(s>this.#m)throw new Ne("outlineOverLimit",{limit:this.#m,actual:s});let l=Object.freeze({path:i,unitsPerEm:t.unitsPerEm}),d=WR(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),l;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:l,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),l}#x(t){if(t.length>this.#u)throw new Ne("textOverLimit",{limit:this.#u,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#f)throw new Ne("codepointsOverLimit",{limit:this.#f,actual:n})}}shape(t){if(!this.#c)throw new Ne("disposed");if(ao(t.environment.font),t.environment.font.byteLength>this.#s)throw new Ne("fontOverLimit",{limit:this.#s,actual:t.environment.font.byteLength});this.#x(t.text);let n=VR(t.text);if(n>this.#l)throw new Ne("shapedRunOverLimit",{limit:this.#l,actual:n});let r=hr(t.environment),o=JSON.stringify([t.text,t.fontSizeHalfPoints,t.bidiLevel,Fd(r)]),a=this.#n.get(o);if(a)return this.#n.delete(o),this.#n.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!==ba.name||r.shapingLibrary.version!==ba.version)throw new Ne("shapingLibraryMismatch");if(r.normalization!=="none")throw new Ne("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new Ne("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new Ne("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new Ne("unsupportedFallback");let i=Ei(r.font),s=Ni(r.font);if([...vR].some(d=>s.has(d)))throw new Ne("unsupportedColorFont");let l=t.text;this.#x(l);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(l),f.setDirection(r.direction==="rtl"?this.#t.Direction.RTL:this.#t.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#t.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([C,T])=>new this.#t.Feature(C,T));this.#e?.onShapeCall?.(),this.#t.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new Ne("glyphOverLimit",{limit:this.#p,actual:m.length});let g=ER(c.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),x=dn(0),h=dn(0),b=new Map,P=JSON.stringify(Object.entries(r.variationAxes).sort(([C],[T])=>C.localeCompare(T))),k=m.map(C=>{let T=g(C.xAdvance??0),N=g(C.yAdvance??0),M={id:C.codepoint,cluster:C.cluster,originX:x,originY:h,advanceX:T,advanceY:N,offsetX:g(C.xOffset??0),offsetY:g(C.yOffset??0),outline:b.get(C.codepoint)??(()=>{let y=this.#R(d,C.codepoint,P);return b.set(C.codepoint,y),y})()};return x=dn(x+T),h=dn(h+N),M}),v=u.hExtents(),L=zi({text:l,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:k,clusters:NR(l,k),fontSpans:k.length===0?[]:[{glyphStart:0,glyphEnd:k.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(v.ascender),descent:g(-v.descender),lineGap:g(v.lineGap)}},r),w=$R(L);if(w>this.#l)throw new Ne("shapedRunOverLimit",{limit:this.#l,actual:w});let S=XR(o,w);if(S>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),L;for(;this.#n.size>=this.#b||this.#r+S>this.#h;){let C=this.#n.keys().next().value;if(C===void 0)break;let T=this.#n.get(C);this.#n.delete(C),this.#r-=T.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:L,bytes:S}),this.#r+=S,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),L}catch(d){throw d instanceof Ne?d:new Ne("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},YR=(e={})=>new Ed(oR(),e);var Q=(e,t,n)=>e>=t&&e<=n,ji=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},KR=e=>{if(Q(e,65313,65338)||Q(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(Q(e,1424,1535)||Q(e,64285,64335))return {slot:"cs",script:"Hebr"};if(Q(e,1536,1791)||Q(e,1872,1919)||Q(e,2160,2207)||Q(e,2208,2303)||Q(e,64336,65023)||Q(e,65136,65279)||Q(e,126464,126719))return {slot:"cs",script:"Arab"};if(Q(e,4352,4607)||Q(e,11904,12351)||Q(e,12352,12543)||Q(e,12544,12687)||Q(e,12784,12799)||Q(e,13312,19903)||Q(e,19968,40959)||Q(e,44032,55215)||Q(e,63744,64255)||Q(e,65382,65437)||Q(e,65440,65500)||Q(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(Q(e,2304,2431)||Q(e,43232,43263))return {slot:"cs",script:"Deva"};if(Q(e,2432,2559))return {slot:"cs",script:"Beng"};if(Q(e,880,1023)||Q(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(Q(e,1024,1327)||Q(e,7296,7311)||Q(e,11744,11775)||Q(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(Q(e,3584,3711))return {slot:"cs",script:"Thai"};if(Q(e,6016,6143)||Q(e,6624,6655))return {slot:"cs",script:"Khmr"};if(Q(e,768,879)||Q(e,6832,6911)||Q(e,7616,7679)||Q(e,8400,8447)||Q(e,8192,8303)||Q(e,65056,65071)||e<=47||Q(e,58,64)||Q(e,91,96)||Q(e,123,191)||e===5760||Q(e,8192,11263)||Q(e,65024,65039)||Q(e,65280,65381)||Q(e,65438,65439)||Q(e,65501,65535)||Q(e,126976,129791)||Q(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(Q(e,192,687)||Q(e,7424,7551)||Q(e,7552,7615)||Q(e,7680,7935)||Q(e,11360,11391)||Q(e,42784,43007)||Q(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new ji(e)};function UR(e,t,n){let r=[];for(let s=0;s<e.length;){let l=e.codePointAt(s),d=s+(l>65535?2:1);r.push({from:s,to:d,classified:KR(l)}),s=d;}let o=null;for(let s of r)s.classified?o=s.classified:o&&(s.classified=o);o=null;for(let s=r.length-1;s>=0;s-=1){let l=r[s];l.classified?o=l.classified:o&&(l.classified=o);}let a=[],i=r.every(({from:s})=>e.codePointAt(s)<=127)?"ascii":"hAnsi";for(let s of r){let l=n.levels[t+s.from]??0,d=(l&1)===1?"rtl":"ltr",c=s.classified??{slot:i,script:"Zyyy"},u=a.at(-1);u&&u.to===s.from&&u.bidiLevel===l&&u.slot===c.slot&&u.script===c.script?a[a.length-1]={...u,to:s.to}:a.push({from:s.from,to:s.to,direction:d,bidiLevel:l,script:c.script,slot:c.slot});}return a}var qR="und";function ZR(){return typeof Intl.Segmenter=="function"}function JR(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function QR(){let e=new(JR())("und",{granularity:"grapheme"});return {segment(t){let n=[],r=0;for(let o of e.segment(t)){let a=o.index,i=a+o.segment.length;n.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return n}}}var _d=QR(),Hd=_d,em=0;function zd(){return em}var lo=null,br=null,Gi=null,Ra=null;function Xt(e){if(lo===e&&br)return br;if(Gi===e&&Ra){let n=Ra;return Gi=lo,Ra=br,lo=e,br=n,n}let t=Hd.segment(e);return Gi=lo,Ra=br,lo=e,br=t,t}function ew(e){Hd=e,tm();}function tw(){Hd=_d,tm();}function tm(){em+=1,lo=null,br=null,Gi=null,Ra=null,Ad=null,Wi=null,Dd=0;}function nw(e){return Xt(e).length}var Ad=null,Wi=null,Dd=0;function rw(e){if(Ad===e&&Wi)return {offsets:Wi,count:Dd};let t=Xt(e),n=new Int32Array(e.length+1);for(let r of t)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)n[o]=r.index;return n[e.length]=t.length,Ad=e,Wi=n,Dd=t.length,{offsets:n,count:t.length}}function Vi(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=rw(e);return r[n]}function ow(e,t){let n=Xt(e);if(n.length===0)return 0;let r=Math.max(0,Math.min(t,n.length));return r>=n.length?e.length:n[r].utf16From}function jd(e){let t=new Set([0,e.text.length]);for(let r of Xt(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function $i(e,t){return jd(e).includes(t)}function aw(e,t){return $i(e,t)}function iw(e,t,n){return n>=t&&$i(e,t)&&$i(e,n)}function sw(e){let t=Xt(e.text);return jd(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var Wd="und";function am(){return typeof Intl.Segmenter=="function"}function lw(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Wd})`);return e}function im(){let e=new(lw())(Wd,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var dw=/^[\p{L}\p{N}']$/u,cw=/^\s$/u;function nm(e){return dw.test(e)}function rm(e){return cw.test(e)}function Gd(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function sm(e){let t=Xt(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(rm(o.text)){let a=r+1;for(;a<t.length&&rm(t[a].text);)a+=1;n.push(Gd(t,r,a,false)),r=a;continue}if(nm(o.text)){let a=r+1;for(;a<t.length&&nm(t[a].text);)a+=1;n.push(Gd(t,r,a,true)),r=a;continue}n.push(Gd(t,r,r+1,false)),r+=1;}return n}function lm(){return {segment:sm}}function dm(e={}){let t=e.isIntlAvailable??am,n=e.createIntlBoundary??im,r=e.createFallbackBoundary??lm;if(!t())return r();try{return n()}catch{return r()}}var om;function cm(){return om??=dm(),om}function uw(e,t=cm()){return t.segment(e)}function fw(e,t){return t.map(n=>({graphemeFrom:Vi(e,n.utf16From),graphemeTo:Vi(e,n.utf16To),wordLike:n.wordLike}))}var um={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},Xd=Object.keys(um),fm=Xd.filter(e=>um[e]==="coarse-gate"),Xi=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},co=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},pw={resourceEpoch:Xi,configEpoch:Xi,extensionFingerprint:co,shapingHash:co,producerVersion:Xi},mw=(e,t)=>{pw[t](e[t],t);},uo=e=>{for(let t of Xd)mw(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},gw=(e,t)=>{let n=uo(e),r=uo(t),o=Xd.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},Vd=e=>{let t=e.map(({key:n,fingerprint:r})=>(co(n,"resource dependency key"),co(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},hw=e=>(Xi(e.revision,"revision"),co(e.dependencyFingerprint,"dependencyFingerprint"),co(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Vd(e.resourceDependencies),...uo(e)})),yw=(e,t)=>{let n=Vd(e),r=Vd(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function bw(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=yw(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of fm)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var $d=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=bw(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:hw(r)});}evictEpoch(t){let n=uo(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;fm.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=uo(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(l=>n.get(l.key)!==l.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Xe(e,t=false){return St(e.fragments,t)}var pm=new WeakMap;function St(e,t=false){let n=pm.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=s=>{for(let l of s){if(l.kind==="paragraph"){a.push(l);continue}for(let d of l.rows)if(!(d.isHeaderRepeat&&!t))for(let c of d.cells)i(c.blocks);}};return i(e),n||(n={},pm.set(e,n)),n[r]=a,a}function Yd(e){let t=[];for(let n of e.pages)for(let r of Xe(n))t.push(...r.lines);return t}function xw(e){return e.anchoredDrawings??[]}var mm=16;function wa(e,t){let n=o=>{if(o.kind==="table"){for(let a of o.rows)for(let i of a.cells)for(let s of i.blocks)n(s);return}for(let a of o.lines)for(let i of a.drawings??[])t(i);},r=(o,a)=>{if(!(a>mm)){for(let i of o.anchoredDrawings??[])t(i),i.textboxStory&&r(i.textboxStory,a+1);for(let i of o.fragments)n(i);}};r(e,0);}function Kd(e,t){let n=(r,o)=>{if(!(o>mm)){for(let a of r.anchoredDrawings??[])a.textboxStory&&n(a.textboxStory,o+1);for(let a of St(r.fragments,true))t(a);}};n(e,0);}function gm(e,t){let n=[];for(let r of e.pages)for(let o of Xe(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function Pa(e,t,n,r){for(let o of r??Yd(e)){let a=o.range.paragraphId===t?o.range.start:Number.NaN,i=o.range.paragraphId===t?o.range.end:Number.NaN;for(let s of o.spans)s.range.paragraphId===t&&(a=Number.isNaN(a)?s.range.start:Math.min(a,s.range.start),i=Number.isNaN(i)?s.range.end:Math.max(i,s.range.end));for(let s of o.drawings??[])s.paragraphId===t&&(a=Number.isNaN(a)?s.start:Math.min(a,s.start),i=Number.isNaN(i)?s.start+1:Math.max(i,s.start+1));if(!Number.isNaN(a)&&n>=a&&n<=i)return o}return null}function Yi(e){return e.contentControls??[]}function Ia(e){if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,o=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:t,y:n,width:r-t,height:o-n}}function Ki(e){let t=false,n=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(t=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(n=true);return t&&n?"sdtContentLocked":t?"contentLocked":n?"sdtLocked":"unlocked"}var va=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var hm=1,Ui=1;function fo(e){let t=Math.max(e,1),n=3;if(t>=n){let i=t/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:t,insetPt:0}}let r=1,o=1,a=Math.max(t,n);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(t-a)/2}}var Sw=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function Rw(e){return Sw.has(e)}function ym(e,t){return Rw(e)?fo(t).extentPt:t}function qd(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Zi(r);}return t}var xm=31680/20,Ca=12,Sm=3168,Rm=14,mo=Object.freeze({rule:"auto",value:240}),ww=132,Pw=1584,wm=["top","left","bottom","right","between","bar"],Iw=Object.freeze({}),vw=/^[0-9A-Fa-f]{6}$/,Tw=new Set(["nil","none"]);function qi(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Ud(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function bm(e){let t=qi(e,true);return t===null?0:Ud(chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(t)),xm)}function Zi(e){return e!=="0"&&e!=="false"&&e!=="off"}function Cw(e){return e===void 0||e==="auto"?null:vw.test(e)?e.toUpperCase():null}function Ta(e,t){return e.attributes.find(n=>n.localName===t)?.value}function fn(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function LO(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function Zd(e,t){let n=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let s=i.attributes?.before,l=i.attributes?.after;s!==void 0&&(n=bm(s)),l!==void 0&&(r=bm(l));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Zi(d)),c!==void 0&&(a=Zi(c));}if(o||a){let i=t?.inList||t?.inTableCell?0:Rm;o&&(n=i),a&&(r=i);}return {before:n,after:r}}function Jd(e){let t,n;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(t=i);let s=a.attributes?.line;if(s!==void 0){let l=qi(s,true);l!==null&&(n=l);}}if(n===void 0)return mo;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,ww)*240}:mo}let o=n/20;return o>0?{rule:r,value:Math.min(o,Pw)}:mo}function Qd(e,t,n){let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value),o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="exact"?{height:r,baseline:n+o/2}:{height:r,baseline:n}}function ec(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Zi(r);}return t}function po(e){if(!e)return;let t=Ta(e,"val");if(!t||Tw.has(t))return;let n=qi(Ta(e,"sz")),r=n===null?.5:Ud(n/8,Ca)||.5,o=qi(Ta(e,"space")),a=o===null?0:Ud(o,Sm),i=Ta(e,"shadow"),s=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:Cw(Ta(e,"color")),widthPt:r,spacePt:a,...s?{shadow:true}:{}}}function Pm(e){let t=po(fn(e,"top")),n=po(fn(e,"left")??fn(e,"start")),r=po(fn(e,"bottom")),o=po(fn(e,"right")??fn(e,"end")),a=po(fn(e,"between")),i=po(fn(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function kn(e){if(!e||e.kind==="textValue")return {};let t=fn(e,"pBdr");return t?Pm(t):{}}function ka(e){let t=Iw;for(let n of e){if(!n||n.kind==="textValue")continue;let r=fn(n,"pBdr");r&&(t=Pm(r));}return t}function wt(e){return ym(e.val,e.widthPt)}function Kn(e){return e?e.spacePt+wt(e):0}function kw(e){return Kn(e)}function tc(e){let t=[];for(let n of wm){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return t.join("|")}function go(e,t){return Math.max(e,t)-t}function nc(e,t,n,r){return n&&!r?0:go(e,t)}var Ow=/^[0-9A-Fa-f]{6}$/;function Ji(e){if(!(e===void 0||e==="auto"||e==="nil")&&Ow.test(e))return e.toUpperCase()}function Oa(e){if(e&&e.val!=="nil")return Ji(e.fill)}function rc(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return Oa(t)}function oc(e){let t;for(let n of e)n.localName==="shd"&&(t=Oa(n.attributes));return t}function Ba(e,t,n){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:t,y:r,width:n,height:Math.max(o.y+o.height-r,0)}}var Bw=64,Mw=31680,Lw=720,Fw=36,ac=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),ho=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),Ew=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),Nw=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function Ma(e){return e.kind!=="textValue"}function Qi(e,t){return e.attributes.find(n=>n.localName===t)?.value}function ic(e,t){for(let n of e.children)if(Ma(n)&&n.localName===t)return n}function Im(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function Aw(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function vm(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!Ma(r)||r.localName!=="tab")continue;let o=Aw(Im(Qi(r,"pos"))??NaN);if(o===null)continue;let a=Qi(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=Ew.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let s=Qi(r,"leader");e.set(o,{alignment:i,...s!==void 0&&Nw.has(s)?{leader:s}:{}});}}function Tm(e,t=36){let n=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<n.length&&o<64;o+=1){let[a,i]=n[o];r.push({positionPt:a/20,alignment:i.alignment,...Dw(i)});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function Dw(e){return e.leader?{leader:e.leader}:{}}function sc(e){let t=new Map;for(let n of e)!n||!Ma(n)||vm(t,ic(n,"tabs"));return Tm(t)}function lc(e){if(!e||!Ma(e))return ho;let t=new Map;return vm(t,ic(e,"tabs")),Tm(t)}function La(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:t}}function _w(e){if(!e||!Ma(e))return 36;let t=ic(e,"defaultTabStop");if(!t)return 36;let n=Im(Qi(t,"val"));return n===null||n<=0||n>31680?36:n/20}function yo(e,t,n){let r=Math.max(t,n);for(let i of e.stops)if(i.positionPt>t)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((t+1e-9)/o)*o;return a<=t&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function dc(e,t,n,r,o){let a=n;switch(e){case "center":a=n-r/2;break;case "right":a=n-r;break;case "decimal":a=n-o;break;default:a=n;}let i=a-t;return i>0?i:0}function xr(e){return `tabs(${e.stops.map(n=>`${n.alignment}@${Math.round(n.positionPt*1e3)}${n.leader?`/${n.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var es=4,Cm=4096,Un=64,pc=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),km=/\s*\\\*\s*MERGEFORMAT\s*$/i;function Ea(e){if(e.length>chunkILTZTY3K_cjs.Xc)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkILTZTY3K_cjs.Xc?null:t.replace(km,"").trim()}var Hw=/\s*\\#\s*(?:"([^"]*)"|([^\\"]+))$/;function zw(e){if(e.length>chunkILTZTY3K_cjs.Xc)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkILTZTY3K_cjs.Xc)return null;let n=t.replace(km,"").trim(),r=Hw.exec(n);if(!r)return {keyword:n.toUpperCase(),picture:void 0};let o=r[1]??r[2]??"";return {keyword:n.slice(0,r.index).trim().toUpperCase(),picture:o.length>0?o:void 0}}function bo(e){let t=zw(e);if(t===null)return null;let{keyword:n,picture:r}=t;return n!=="PAGE"&&n!=="NUMPAGES"&&n!=="SECTIONPAGES"?null:r===void 0?{kind:n}:{kind:n,picture:r}}function Om(e){return bo(e)?.kind??null}function Pt(e,t){return chunkILTZTY3K_cjs.Mc(e,t)}function Sr(e){return chunkILTZTY3K_cjs.Nc(e)}function mc(){return {nodes:0,exhausted:false}}function On(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Cm?(e.exhausted=true,false):true)}function Na(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function Fa(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 ts(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function jw(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>es?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function xo(e){return e.nesting<2||e.nesting>es?null:e.inner[e.nesting-2]??null}function Bm(e){if(e.nesting===1)return e.phase==="instruction";let t=xo(e);return t!==null&&!t.separated}function uc(e,t){if(!Bm(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=xo(e);return t?!n.deletedOverflow:!n.overflow}function Mm(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=xo(e);t&&(t.sawLive=true);}function fc(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=xo(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function cc(e){fc(e,false),fc(e,true);}function Gw(e,t,n=false){if(!uc(e,n))return;let r=xo(e);n||Mm(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkILTZTY3K_cjs.Xc){fc(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function Da(e,t,n,r){if(!Bm(e))return;let o=chunkILTZTY3K_cjs.Oc(t);if(o||Mm(e),!uc(e,o))return;if(r>Un){cc(e);return}let a=[],i=t.kind==="textValue"?[]:t.children??[];for(let s=i.length-1;s>=0;s-=1)a.push({node:i[s],depth:r+1});for(;a.length>0;){let s=a.pop();if(!On(n)){cc(e);return}if(s.depth>Un){cc(e);return}if(s.node.kind==="textValue"){if(Gw(e,s.node.value,o),!uc(e,o))return;continue}let l=s.node.children??[];for(let d=l.length-1;d>=0;d-=1)a.push({node:l[d],depth:s.depth+1});}}function _a(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=ts(e);return r.overflow?null:bo(r.instruction)}let t=xo(e);if(!t||t.separated)return null;t.separated=true;let n=jw(t);return n.overflow?null:bo(n.instruction)}function Ha(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Fa(e);}function Lm(e){return e.phase==="instruction"&&e.nesting>=1}function Fm(e){return e.phase==="result"&&e.nesting>=1}function gc(e){let t=false,n=false,r=false,o=mc(),a=Na(),i=()=>t&&n&&r,s=p=>{p==="PAGE"?t=true:p==="NUMPAGES"?n=true:r=true;},l=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(Pt(p,"begin")){Aa(a),a.nestingOverflow&&(l=true);return}if(Sr(p)){Da(a,p,o,m);return}if(Pt(p,"separate")){let g=a.nesting,x=a.phase,h=_a(a);if(l)return;h&&(g<=1||x==="result")&&d.push(h.kind);return}if(Pt(p,"end")&&(Ha(a),a.nesting===0)){if(!l)for(let g of d)s(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!On(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!Sr(g)&&"children"in g&&g.children.length>0){let x={...a,inner:a.inner.map(P=>({...P}))},h=l,b=d;d=[],f(g,m+1),Object.assign(a,x),l=h,d=b;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&On(o)&&!(m>Un)&&p.kind!=="textValue"){if(p.kind==="paragraph"){Fa(a),l=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;Fa(a),l=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(chunkILTZTY3K_cjs.Pc(p)){let g=Om(chunkILTZTY3K_cjs.Rc(p)??"");if(g){s(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?pc:{hasPage:t,hasNumPages:n,hasSectionPages:r}}function ns(e,t){if(!Number.isFinite(e)||e<0||t.length===0||t.length>64||t.includes(".")||t.includes(";")||t.includes("'"))return null;let n=String(Math.floor(e)),r=[],o=false;for(let m=0;m<t.length;m+=1)r.push(o),t[m]==="0"&&(o=true);let a=n.length,i=false,s=0,l=0,d=[],c=-1;for(let m=t.length-1;m>=0;m-=1){let g=t[m];if(g==="0"||g==="#"){i=true,s+=1,c=d.length,a>0?(a-=1,d.push(n[a])):d.push(g==="0"?"0":" ");continue}if(g===","){l===0&&(l=s),s=0,(a>0||r[m])&&(c=d.length,d.push(","));continue}d.push(g);}if(!i)return null;let u=[];for(;a>0;)l>0&&s>=l&&(u.push(","),s=0),a-=1,s+=1,u.push(n[a]);let f=d.slice(c+1).reverse().join(""),p=d.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+p}var Ww=64,Vw=64,$w=[{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 Bn(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function qn(e){return String(Bn(e))}function Em(e){let t=Bn(e);return t<10?`0${t}`:String(t)}function hc(e){let t=Bn(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of $w)for(;t>=r;)if(n+=o,t-=r,n.length>=64)return n.slice(0,64);return n||"I"}function Nm(e){return hc(e).toLowerCase()}function yc(e){let t=Bn(e),n="";for(;t>0&&n.length<8;)t-=1,n=String.fromCharCode(65+t%26)+n,t=Math.floor(t/26);return n||"A"}function Am(e){return yc(e).toLowerCase()}function Xw(e){let t=Bn(e),n=t%100,r=t%10,o=n>=11&&n<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${t}${o}`}function Yw(e){return Bn(e).toString(16).toUpperCase()}function Kw(e){let t=["*","\u2020","\u2021","\xA7"],n=Bn(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,Uw);return t[r].repeat(o)}var Uw=8,rs=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],qw=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function os(e){let t=Bn(e);if(t<20)return rs[t];if(t<100){let r=t%10;return qw[Math.floor(t/10)]+(r===0?"":`-${rs[r]}`)}if(t<1e3){let r=t%100;return `${rs[Math.floor(t/100)]} hundred${r===0?"":` ${os(r)}`}`}let n=t%1e3;return `${rs[Math.floor(t/1e3)]} thousand${n===0?"":` ${os(n)}`}`}function Dm(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function Zw(e){return Dm(os(e))}var Jw=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function Qw(e){let t=Jw.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function eP(e){let t=os(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return Dm(r+Qw(t.slice(n+1)))}function Mn(e,t){switch(e){case "decimal":return qn(t);case "decimalZero":return Em(t);case "upperRoman":return hc(t);case "lowerRoman":return Nm(t);case "upperLetter":return yc(t);case "lowerLetter":return Am(t);case "ordinal":return Xw(t);case "cardinalText":return Zw(t);case "ordinalText":return eP(t);case "hex":return Yw(t);case "chicago":return Kw(t);case "numberInDash":return `- ${qn(t)} -`;case "none":case "bullet":return "";default:return qn(t)}}function bc(e,t,n){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 s=r[a+1];if(s>="1"&&s<="9"){let l=Number(s)-1,d=n[l]??"decimal",c=t[l]??1,u=d==="bullet"?"":Mn(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var _m="0";function Zn(e,t){return e!=="PAGE"||!t||t==="decimal"}function is(e,t,n){return t===void 0||!Zn(e,n)?_m:ns(0,t)??_m}function Sc(e,t){if(!Number.isFinite(e)||e<0)return "";let n=Math.floor(e),r=t&&t.length>0?t:"decimal";if(r==="none"||r==="bullet")return qn(n);let o=Mn(r,n);return o.length>0?o:qn(n)}function Ln(e,t,n){if(e==="PAGE"){if(n!==void 0&&Zn(e,t.format)){let o=ns(t.pageNumber,n);if(o!==null)return o}return Sc(t.pageNumber,t.format)}let r=e==="NUMPAGES"?t.pageCount:t.sectionPageCount??t.pageCount;if(!Number.isFinite(r)||r<0)return "";if(n!==void 0){let o=ns(r,n);if(o!==null)return o}return qn(Math.floor(r))}function Jn(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function Rc(e,t=pc){if(!e||!Jn(t))return "";let n=[];return t.hasPage&&(n.push(`p${e.pageNumber}`),e.format&&n.push(`f${e.format}`)),t.hasNumPages&&n.push(`n${e.pageCount}`),t.hasSectionPages&&n.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${n.join("/")}`}function So(e,t,n,r){let o=false,a=e.map((i,s)=>{let l=t+s,d=i.pageFieldSource;return d&&d.pageNumber===l&&d.sectionPageCount===n&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:l,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function tP(e){for(let t of e.spans)if(t.fieldAtom?.pageField)return true;return false}function Hm(e){if(e.kind==="paragraph"){for(let t of e.lines)if(tP(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(Hm(r))return true;return false}function wc(e,t){let n=t,r=false;for(let o of e)n=Math.max(n,o.box.y+o.box.height),!r&&Hm(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}function nP(e,t){let n=null;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r],a=o.fieldAtom?.pageField;if(!a)continue;let i=Ln(a.kind,t,a.picture);i!==o.text&&(n||(n=e.spans.slice()),n[r]={...o,text:i});}return n?{...e,spans:n}:e}function zm(e,t){let n=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 s=0;s<o.lines.length;s+=1){let l=o.lines[s],d=nP(l,t);d!==l&&(i||(i=o.lines.slice()),i[s]=d);}i&&(a={...o,lines:i});}else {let i=null;for(let s=0;s<o.rows.length;s+=1){let l=o.rows[s],d=null;for(let c=0;c<l.cells.length;c+=1){let u=l.cells[c],f=zm(u.blocks,t);f!==u.blocks&&(d||(d=l.cells.slice()),d[c]={...u,blocks:f});}d&&(i||(i=o.rows.slice()),i[s]={...l,cells:d});}i&&(a={...o,rows:i});}a!==o&&(n||(n=e.slice()),n[r]=a);}return n??e}var as=new WeakMap;function rP(e,t){return e.pageNumber===t.pageNumber&&e.pageCount===t.pageCount&&(e.sectionPageCount??e.pageCount)===(t.sectionPageCount??t.pageCount)&&e.format===t.format}function Pc(e,t,n){let r=as.get(e);r&&as.set(t,{context:r.context,projector:r.projector,dy:r.dy+n});}var xc=new WeakMap;function Qn(e){let t=e.pages.length;if(t===0)return e;let n=false,r=e.pages.map(o=>{let a=xc.get(o);if(a&&a.pageCount===t)return a.result!==o&&(n=true),a.result;let i=o.pageFieldSource,s={pageNumber:i?.pageNumber??o.index+1,pageCount:t,sectionPageCount:i?.sectionPageCount??t,...i?.format?{format:i.format}:{}},l=p=>{if(!p)return p;let m=p.pageFieldProjector,g=0;if(!m){let v=as.get(p);if(!v||rP(v.context,s))return p;m=v.projector,g=v.dy;}n=true;let x=m(s),{pageFieldProjector:h,box:b,...P}=x,k={...P,box:g===0?b:{...b,y:b.y+g}};return as.set(k,{context:s,projector:m,dy:g}),k},d=l(o.header),c=l(o.footer),u=o.hasBodyPageFields===false?o.fragments:zm(o.fragments,s);if(d===o.header&&c===o.footer&&u===o.fragments)return xc.set(o,{pageCount:t,result:o}),o;u!==o.fragments&&(n=true);let f={...o,...d!==void 0?{header:d}:{},...c!==void 0?{footer:c}:{},...u!==o.fragments?{fragments:u}:{}};return xc.set(o,{pageCount:t,result:f}),f});return n?{revision:e.revision,pages:r}:e}var oP=`
2
+ \r`,aP=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function jm(e,t){let n=t;for(;n<e.length&&oP.includes(e[n]);)n+=1;return n}function Gm(e,t){if(e[t]==='"'){let r=t+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let n=t;for(;n<e.length&&!`
3
+ \r"`.includes(e[n]);)n+=1;return n}function ss(e){if(e.length===0||e.length>256)return null;let t=jm(e,0);if(e[t]==='"')return null;let n=Gm(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=jm(e,n);if(o>=e.length)return null;let a=Gm(e,o),i=e.slice(a).trim();for(;;){let s=i.replace(aP,"").trimEnd();if(s===i)break;i=s;}if(i[0]==='"'){let s=i.indexOf('"',1);s===-1?i=i.slice(1):s===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var Wm=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),iP=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function sP(e){let t=e;for(;;){let n=t.replace(iP,"").trimEnd();if(n===t)return t;t=n;}}function lP(e){let t=e.trimStart();if(t.length===0)return null;if(t[0]==='"'){let o=t.indexOf('"',1),a=o===-1?t.slice(1):t.slice(1,o);return a.length>0?a:null}let n=t.search(/\s/),r=n===-1?t:t.slice(0,n);return r.length>0?r:null}function ls(e){let t=Ea(e);if(t===null||t.length===0)return null;let n=sP(t),r=Wm[n];if(r)return {property:r};if(!n.startsWith("DOCPROPERTY"))return null;let o=n.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=lP(o);if(a===null)return null;let i=Wm[a];return i?{property:i}:null}function ds(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}var dP=chunkILTZTY3K_cjs.Xc,cP=2048,uP=256;function fP(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
4
+ `||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
5
+ \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}var pP=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function cs(e){if(e.length===0||e.length>dP)return null;let t=fP(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,s=null,l=false;for(let d=1;d<t.length;d+=1){let c=t[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!pP.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=uP;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(l||(l=true,p&&(s=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=cP&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:s}}function za(e){if(e.kind==="text"||e.kind==="deletedText"){let t="";for(let n of e.children)n.kind==="textValue"&&(t+=n.value);return t}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkILTZTY3K_cjs.Fc(e):""}function Ro(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;let r={};for(let o of n.attributes)r[o.localName]=o.value;t.push(Object.keys(r).length>0?{localName:n.localName,attributes:r}:{localName:n.localName});}return t}function us(e,t,n){let r=Ro(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}var mP=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function pn(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}var Vm=new WeakMap;function fs(e){let t=[],n;for(let r of e){let o=r.role==="carried"?Vm.get(r.properties):void 0,a;for(let i of r.properties){if(!mP.has(i.localName)){r.emit&&t.push(i);continue}o||(a||(a=new Map),a.set(i.localName,pn(i)));}if(o){if(o.size>0){n||(n=new Map);for(let[i,s]of o)n.set(i,s);}continue}if(a){n||(n=new Map);for(let[i,s]of a){let l=n.get(i);r.role==="direct"?n.set(i,{value:s,forced:false}):s?r.role==="defaults"?n.set(i,{value:true,forced:true}):n.set(i,{value:l?.forced===true?true:!(l?.value??false),forced:l?.forced===true}):n.set(i,{value:false,forced:false});}}}if(!n)return t;for(let[r,o]of n)t.push(o.value?{localName:r}:{localName:r,attributes:{val:"0"}});return Vm.set(t,n),t}var mn=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}),gP=/^[0-9A-Fa-f]{6}$/;function ja(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function $m(e){return e===void 0||e==="auto"?null:gP.test(e)?e.toUpperCase():null}function Xm(e,t){return e==="minorAscii"||e==="minorHAnsi"?t.minor:e==="majorAscii"||e==="majorHAnsi"?t.major:null}function Ae(e,t){let n={...mn};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(t?Xm(o?.asciiTheme,t)??Xm(o?.hAnsiTheme,t):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(n.fontFamily=i);break}case "sz":{let o=ja(r.attributes?.val);o!==null&&o>0&&(n.fontSizePt=o/2);break}case "color":{n.color=$m(r.attributes?.val);break}case "b":n.bold=pn(r);break;case "i":n.italic=pn(r);break;case "u":{let o=r.attributes?.val??"single";n.underline=o==="none"||!pn(r)?null:{variant:o,color:$m(r.attributes?.color)};break}case "strike":n.strike=pn(r);break;case "dstrike":n.doubleStrike=pn(r);break;case "highlight":{let o=r.attributes?.val;n.highlight=o&&o!=="none"?o:null;break}case "shd":{n.shading=Oa(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?n.verticalAlign=o:o==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let o=ja(r.attributes?.val,true);o!==null&&(n.baselineShiftPt=o/2);break}case "caps":n.caps=pn(r);break;case "smallCaps":n.smallCaps=pn(r);break;case "spacing":{let o=ja(r.attributes?.val,true);o!==null&&(n.characterSpacingPt=o/20);break}case "w":{let o=ja(r.attributes?.val);o!==null&&o>0&&(n.horizontalScalePercent=o);break}case "kern":{let o=ja(r.attributes?.val);o!==null&&(n.kerningMinPt=o/2);break}case "vanish":n.hidden=pn(r);break;}return n}function er(e,t){return t.caps?e.toUpperCase():e}function Dt(e,t,n){return n.measure(er(e,t),t)}function hP(e,t){return e.fontFamily===t.fontFamily&&e.fontSizePt===t.fontSizePt&&e.color===t.color&&e.bold===t.bold&&e.italic===t.italic&&e.strike===t.strike&&e.doubleStrike===t.doubleStrike&&e.highlight===t.highlight&&e.shading===t.shading&&e.verticalAlign===t.verticalAlign&&e.baselineShiftPt===t.baselineShiftPt&&e.caps===t.caps&&e.smallCaps===t.smallCaps&&e.characterSpacingPt===t.characterSpacingPt&&e.horizontalScalePercent===t.horizontalScalePercent&&e.kerningMinPt===t.kerningMinPt&&e.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function Ic(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var yP=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),Ym=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),Km=new Map([[167,"\u25AA"],[183,"\u2022"]]),Um=new Map([["symbol",yP],["wingdings",Ym],["wingdings 2",Km],["wingdings 3",Km],["webdings",Ym]]),bP=64;function Ga(e){return !e||e.length>bP?false:Um.has(e.toLowerCase())}function wo(e,t,n){if(e.length===0||!Ga(t))return e;let r=Um.get(t.toLowerCase());if(n?.(t)===true)return e;let o="",a=false;for(let i of e){let s=i.codePointAt(0);if(s>=61440&&s<=61695){let l=r.get(s-61440);if(l!==void 0){o+=l,a=true;continue}}o+=i;}return a?o:e}var tr=61440,Wa=61695,vc=128;function Po(e){return e.kind==="generic"&&e.namespaceUri===chunkILTZTY3K_cjs.ca&&e.localName==="sym"}function qm(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunkILTZTY3K_cjs.ca||n.namespaceUri===""))return n.value}}function xP(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function ps(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 Io(e){if(!Po(e))return null;let t=xP(qm(e,"char"));if(t===null)return null;let n=qm(e,"font"),r=n&&n.length<=vc?n:null,o=Ga(r),a=o&&t<=255&&t+tr<=Wa?t+tr:t;if(o&&a>=tr&&a<=Wa){let i=wo(String.fromCodePoint(a),r),s=i.codePointAt(0)<tr;return {text:i,font:r,unicode:s}}return ps(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function Tc(e,t,n){if(!t.font)return {props:e,style:Ae(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font}}];return {props:r,style:Ae(r,n)}}var SP=256,RP=9;function wP(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
6
+ `||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
7
+ \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}function PP(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>RP)return null;let n;if(t.startsWith("0x")||t.startsWith("0X")){let r=t.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;n=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(t))return null;n=Number.parseInt(t,10);}return n>1114111||n>=55296&&n<=57343?null:n}function ms(e){if(e.length===0||e.length>SP)return null;let t=wP(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=PP(t[1]);if(r===null)return null;let o=null,a=null,i=false;for(let s=2;s<t.length;s+=1){let l=t[s];if(l.quoted||!l.value.startsWith("\\"))continue;let d=l.value.toLowerCase();if(d==="\\f"){let c=t[s+1];c&&c.value.length>0&&c.value.length<=vc&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,s+=1);continue}if(d==="\\s"){let c=t[s+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(s+=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 gs(e,t,n){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?[...t,...r]:t,a=Ae(o,n);if(e.unicode)return ps(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Ga(i)){let s=e.code<=255&&e.code+tr<=Wa?e.code+tr:e.code;if(s>=tr&&s<=Wa)return {text:wo(String.fromCodePoint(s),i),props:o,style:a}}return ps(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function hs(){let e=null,t=0,n=false,r=false,o=()=>{e=null,t=0,n=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,t=i,n=false,r=false);},onEnd(a,i){if(e===null||a>t)return null;let s=a===t,d=s&&i&&!(n&&!r)?Ln(e.kind,i,e.picture):"";return o(),s?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}var We="all-markup",bs=Object.freeze([]),IP=32,vP={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function Fn(e,t){for(let n of e.attributes)if(n.localName===t&&n.namespaceUri===e.namespaceUri&&(n.kind==="wmlVal"||n.kind==="genericExtension"||n.kind==="xmlSpace"))return n.value}function vo(e){if(e.kind==="textValue")return null;let t=vP[e.kind];if(t===void 0)return null;let n=Fn(e,"date");return {kind:t,id:Fn(e,"id")??"",author:Fn(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function To(e,t){return e.length===0?[t]:[...e,t]}function Rr(e){return e.kind!=="textValue"&&chunkILTZTY3K_cjs.ja(e.kind)}var Co=IP;function Oe(e,t){if(t==="all-markup"||e.length===0)return true;for(let n of e)if(t==="proposed"?n.kind==="delete"||n.kind==="moveFrom":n.kind==="insert"||n.kind==="moveTo")return false;return true}function wr(e){if(e.kind==="textValue")return ys;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return ys;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return ys;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunkILTZTY3K_cjs.ca)continue;let a=TP[o.localName];if(a===void 0)continue;let i=Fn(o,"date");r.push({kind:a,id:Fn(o,"id")??"",author:Fn(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:ys}var TP={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function ko(e){if(e.kind==="textValue")return null;let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t||t.kind==="textValue")return null;let n=t.children.find(r=>r.kind==="runProperties");if(!n||n.kind==="textValue")return null;for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==chunkILTZTY3K_cjs.ca||r.localName!=="rPrChange")continue;let o=Fn(r,"date");return {kind:"format",id:Fn(r,"id")??"",author:Fn(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var ys=Object.freeze([]);function Cc(e){return e.find(t=>Zm(t))??e[0]}function Zm(e){return e.kind==="delete"||e.kind==="moveFrom"}function xs(e,t){let n=Cc(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function CP(e){return Cc(wr(e))??null}function kP(e){for(let t of e){if(t.localName!=="rPrChange"&&t.localName!=="pPrChange")continue;let n=t.attributes??{},r=n.date;return {kind:"format",id:n.id??"",author:n.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function Yt(e){return e.some(t=>t.kind==="delete"||t.kind==="moveFrom")}function OP(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:s,cascadeRuns:l,themeFonts:d}=e,c="",u,f,p=false,m=Na(),g=hs(),x=(b,P)=>{u||(u=b,f=P);},h=(b,P,k)=>{if(!(b.kind==="textValue"||P>Un)){for(let v of b.children)if(v.kind!=="textValue"){if(!On(o))return;if(v.kind==="run"){let L=us(v,s,l),w=Ae(L,d);for(let S of v.children){if(S.kind==="runProperties")continue;if(Pt(S,"begin")){Aa(m),m.nesting===1&&g.reset();continue}if(Sr(S)){Da(m,S,o,P+1);continue}if(Pt(S,"separate")){let y=m.nesting,G=m.phase,D=_a(m);(y===1||G==="result"&&!m.nestingOverflow)&&g.onSeparate(r?D:null,y);continue}if(Pt(S,"end")){let y=g.onEnd(m.nesting,r);y!==null&&(c+=y),Ha(m);continue}if(chunkILTZTY3K_cjs.Uc(S))continue;if(Po(S)){if(Oe(k,i)&&(p=true),g.active){g.noteResult(!w.hidden&&Oe(k,i));continue}let y=Io(S);if(!y?.unicode||w.hidden||!Oe(k,i))continue;x(L,w),c+=y.text;continue}let C=za(S);if(C.length===0)continue;let T=Yt(k),N=!Oe(k,i)||S.kind==="deletedText"&&!T;N||(p=true);let M=w.hidden||N;if(g.active){g.noteResult(!M),M||x(L,w);continue}M||(x(L,w),c+=C);}continue}if(chunkILTZTY3K_cjs.Pc(v)){let L=g.active?null:bo(chunkILTZTY3K_cjs.Rc(v)??"");if(L&&r){if(!Oe(k,i))continue;let w=c.length;h(v,P+1,k),c=c.slice(0,w),c+=Ln(L.kind,r,L.picture);continue}h(v,P+1,k);continue}if(v.kind==="hyperlink"){h(v,P+1,k);continue}if(Rr(v)&&k.length<Co){let L=vo(v);h(v,P+1,L?To(k,L):k);continue}h(v,P+1,k);}}};return h(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function Jm(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=OP(e),i=chunkILTZTY3K_cjs.Rc(t)??"",s=a.resultProps??r,l=bo(i);if(l&&n){let g=a.resultStyle??Ae(r,o);return g.hidden?null:{text:Ln(l.kind,n,l.picture),props:s,style:g}}if(l&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Ae(r,o);if(g.hidden)return null;let h=l.picture!==void 0&&Zn(l.kind,e.bodyPageFields.format)?l.picture:void 0;return {text:is(l.kind,h,e.bodyPageFields.format),props:s,style:g,pageField:h===void 0?{kind:l.kind}:{kind:l.kind,picture:h}}}let d=ms(i);if(d){let g=gs(d,s,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=ls(i);if(g){let x=ds(g,e.documentProperties);if(x!==null){let h=a.resultStyle??Ae(r,o);return h.hidden?null:{text:x,props:s,style:h}}}}let u=c?ss(i):null;if(u){let g=a.resultStyle??Ae(r,o);return g.hidden?null:{text:u.display,props:s,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Ae(r,o);if(f.hidden)return null;let p=e.currentLink?null:cs(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:s,style:f,...m?{link:m}:{}}}var BP="\u2612",MP="\u2610";function LP(e){let t=Ea(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function kc(e,t){e.symbolSpec=ms(t),!e.symbolSpec&&(e.linkSpec=cs(t),!e.linkSpec&&(e.formSpec=LP(t),!e.formSpec&&(e.buttonSpec=ss(t),!e.buttonSpec&&(e.docPropertySpec=ls(t)))));}function Qm(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?BP:MP;if(e.formData.sizeHalfPoints===null)return {text:n,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:n,props:r,style:Ae(r,t)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let n=e.formData.entries[e.formData.selectedIndex]??"";return n.length===0?null:{text:n,props:e.props,style:e.style}}return null}function eg(e,t){if(e.symbolSpec){let r=gs(e.symbolSpec,e.props,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let n=Qm(e,t.themeFonts);if(n)return {text:n.text,props:n.props,style:n.style};if(e.kind&&t.pageContext)return {text:Ln(e.kind,t.pageContext,e.picture??void 0),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&&t.bodyPageFields){let o=e.picture!==null&&Zn(e.kind,t.bodyPageFields.format)?e.picture:void 0;return {text:is(e.kind,o,t.bodyPageFields.format),props:e.props,style:e.style,pageField:{kind:e.kind,...o!==void 0?{picture:o}:{}}}}if(e.docPropertySpec){let r=ds(e.docPropertySpec,t.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 nr(e,t,n){if(n<=t)return;let r=e[e.length-1];if(r&&r.end>=t){r.end=Math.max(r.end,n);return}e.push({start:t,end:n});}var FP=new Set(["left","center","right"]),EP=new Set(["margin","indent","leftMargin"]),NP=new Set(["dot","hyphen","underscore","middleDot"]);function tg(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkILTZTY3K_cjs.ca)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkILTZTY3K_cjs.ca&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:FP.has(t)?t:"left",relativeTo:EP.has(n)?n:"margin",...r!==void 0&&NP.has(r)?{leader:r}:{}}}function ng(e){return e.kind==="drawing"||chunkILTZTY3K_cjs.bb(e)}function rg(e){let{node:t,layout:n,revisions:r,displayMode:o}=e,a=n.projectionForAtom?.(t.id)??(t.kind==="drawing"?n.project(t):null);if(!a||a.kind!=="inline")return a?.kind==="anchored"&&!a.hidden?{recordDeleted:false,emit:true,extras:{anchoredAtom:true}}:{recordDeleted:false,emit:true};let i=Yt(r),s=e.hiddenRun||!Oe(r,o);return a.hidden||s?a.hidden?{recordDeleted:i,emit:true}:{recordDeleted:i,emit:false}:{recordDeleted:i,emit:true,extras:{inlineDrawing:Object.freeze({drawingNodeId:t.id,ownerPartName:n.ownerPartName,projection:a,resource:n.resourceOf(a)})}}}Object.freeze({marks:Object.freeze(new Map)});function Pr(e,t){return chunkILTZTY3K_cjs.Pd(e,t)}function Oc(e,t){if(!chunkILTZTY3K_cjs.ee(e))return null;if(chunkILTZTY3K_cjs.Wd(e)||chunkILTZTY3K_cjs.Xd(e))return {text:"",projected:true,kind:null,noteId:null};let n=chunkILTZTY3K_cjs.Ud(e),r=chunkILTZTY3K_cjs.ae(e)??chunkILTZTY3K_cjs.be(e);if(!r)return null;let o=chunkILTZTY3K_cjs.Zd(e),a=o!==null?Pr(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?AP(a,r)??null:null,s=a,l=s!==void 0?n?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...l?{nav:l}:{},...s?{scopeId:s}:{}};if(n&&o!==null&&chunkILTZTY3K_cjs.ce(e))return {text:"",...d};if(!t||!a)return {text:"",...d};let c=t.marks.get(a);return c==null?{text:"",...d}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...d}:{text:c,...d}}function AP(e,t){let n=`${t}:`;if(!e.startsWith(n))return null;let r=e.slice(n.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function ag(e){return chunkILTZTY3K_cjs.Ud(e)||chunkILTZTY3K_cjs.Vd(e)||chunkILTZTY3K_cjs.Wd(e)||chunkILTZTY3K_cjs.Xd(e)}function DP(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return (t>>>0).toString(16).padStart(8,"0")}var og=new WeakMap;function ig(e){if(!e)return "";let t=og.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${DP(n)}`;return og.set(e,r),r}var Oo=.7,_P=1.25,sg="Cambria Math";function Rs(e){return e.fontFamily===sg?e:Object.freeze({...e,fontFamily:sg})}function gn(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function Bt(e,t,n){return Object.freeze({...e,box:gn(t,n,e.box.width,e.box.height)})}var HP=4,zP=8,lg=new WeakMap;function jP(e){let t=Rs(e);return [t.fontFamily??"",t.fontSizePt,t.bold?1:0,t.italic?1:0,t.verticalAlign,t.baselineShiftPt,t.caps?1:0,t.smallCaps?1:0,t.characterSpacingPt,t.horizontalScalePercent,t.kerningMinPt].join("|")}function GP(e,t){if(t===void 0)return {projections:new WeakMap};let n=lg.get(e);n||(n=new Map,lg.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=HP){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function Bo(e,t,n){let r=n.styles.get(t);if(r)return r;let o=t===1?e:Object.freeze({...e,fontSizePt:e.fontSizePt*t,characterSpacingPt:e.characterSpacingPt*t});return n.styles.set(t,o),o}function dg(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(Bo(t,n,r));return r.metrics.set(n,a),a}function Ss(e,t,n,r,o,a){let i=Bo(r,o,a),s=dg(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:gn(0,0,Dt(t,i,n),s.height),baseline:s.baseline})}function WP(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:gn(0,0,0,t.height),baseline:t.baseline});let n=Math.max(...e.map(i=>i.baseline)),r=Math.max(...e.map(i=>i.box.height-i.baseline)),o=0,a=e.map(i=>{let s=Bt(i,o,n-i.baseline);return o+=i.box.width,s});return Object.freeze({kind:"row",items:Object.freeze(a),box:gn(0,0,o,n+r),baseline:n})}function _t(e,t,n,r,o){switch(e.kind){case "text":return Ss("text",e.value,t,n,r,o);case "fallback":return Ss("fallback",e.text||"\u2026",t,n,r,o);case "row":return WP(e.items.map(a=>_t(a,t,n,r,o)),dg(t,n,r,o));case "fraction":{let a=Bo(n,r,o),i=_t(e.numerator,t,n,r*Oo,o),s=_t(e.denominator,t,n,r*Oo,o),l=Math.max(.75,a.fontSizePt*.08),d=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,s.box.width)+l*2,f=i.box.height+d,p=f+c+d,m=p+s.box.height,g=Math.min(m,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:Bt(i,(u-i.box.width)/2,0),denominator:Bt(s,(u-s.box.width)/2,p),bar:gn(l/2,f,u-l,c),box:gn(0,0,u,m),baseline:g})}case "radical":{let a=Bo(n,r,o),i=_t(e.radicand,t,n,r,o),s=Ss("text","\u221A",t,n,r,o),l=e.degree?_t(e.degree,t,n,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=l?Math.max(0,l.box.width*.65):0,p=f+s.box.width,m=u+i.baseline,g=Math.max(u+i.box.height,m+(s.box.height-s.baseline));return Object.freeze({kind:"radical",sign:Bt(s,f,m-s.baseline),radicand:Bt(i,p,u),...l?{degree:Bt(l,0,0)}:{},bar:gn(p,0,i.box.width,d),box:gn(0,0,p+i.box.width,g),baseline:m})}case "script":{let a=Bo(n,r,o),i=_t(e.base,t,n,r,o),s=e.subscript?_t(e.subscript,t,n,r*Oo,o):void 0,l=e.superscript?_t(e.superscript,t,n,r*Oo,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=l?Math.max(0,l.box.height-i.baseline*.45):0,p=f+i.baseline,m=p+a.fontSizePt*.08,g=c+Math.max(s?.box.width??0,l?.box.width??0,-d),x=Math.max(f+i.box.height,l?u+l.box.height:0,s?m+s.box.height:0);return Object.freeze({kind:"script",base:Bt(i,0,f),...s?{subscript:Bt(s,c,m)}:{},...l?{superscript:Bt(l,c,u)}:{},box:gn(0,0,g,x),baseline:p})}case "nary":{let a=Bo(n,r,o),i=Ss("text",e.operator,t,n,r*_P,o),s=_t(e.body,t,n,r,o),l=e.lowerLimit?_t(e.lowerLimit,t,n,r*Oo,o):void 0,d=e.upperLimit?_t(e.upperLimit,t,n,r*Oo,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,l?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,m=p+i.baseline,g=p+i.box.height+(l?c:0),x=u+c,h=m-s.baseline,P=-Math.min(0,p,h,l?g:0),k=m+P,v=Math.max(p+i.box.height,l?g+l.box.height:0,h+s.box.height)+P;return Object.freeze({kind:"nary",operator:Bt(i,(u-i.box.width)/2,p+P),body:Bt(s,x,h+P),...l?{lowerLimit:Bt(l,(u-l.box.width)/2,g+P)}:{},...d?{upperLimit:Bt(d,(u-d.box.width)/2,P)}:{},box:gn(0,0,x+s.box.width,v),baseline:k})}}}function cg(e,t,n){let r=Rs(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:_t(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function ug(e,t){let n=GP(e,t);return (r,o)=>{let a=jP(o),i=n.projections.get(r),s=i?.get(a);if(s&&i)return i.delete(a),i.set(a,s),s;let l=cg(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=zP){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,l),l}}function ws(e,t=[],n,r,o,a,i=We,s,l,d,c,u,f=false){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let p=[],m=0,g,x=chunkILTZTY3K_cjs.Yc(e,{maxNesting:es,maxInstructionChars:chunkILTZTY3K_cjs.Xc}),h=x.filter(R=>R.addressing==="atomic"),b=new Set(h.filter(R=>R.kind==="complex").map(R=>R.node.id)),P=new Set(x.filter(R=>R.kind==="complex"&&R.addressing==="editable-result").map(R=>R.node.id)),k=new Set;for(let R of h)for(let W of R.removeNodeIds)k.add(W);let v=Na(),L=mc(),w=null,S=null,C=hs(),T=bs,N=(R,W,A,z,q,_,X)=>{if(R.length===0&&!z&&!X?.inlineDrawing)return;let U=X?.linkOverride??g,j=X?.revisionsOverride??T,K=U?{link:U}:{},pe=j.length===0?{}:{revisions:j};if(z){p.push({text:R,props:W,style:A,start:q,end:_,projected:true,...X?.measureText!==void 0?{measureText:X.measureText}:{},...X?.noteNav?{noteNav:X.noteNav}:{},...X?.inlineDrawing?{inlineDrawing:X.inlineDrawing}:{},...X?.anchoredAtom?{anchoredAtom:true}:{},...X?.equation?{equation:X.equation}:{},...X?.fieldAtom?{fieldAtom:X.fieldAtom}:{},...K,...pe});return}R.length!==0&&p.push({text:R,props:W,style:A,start:q,end:_,...X?.positionalTab?{positionalTab:X.positionalTab}:{},...X?.breakKind?{breakKind:X.breakKind}:{},...K,...pe});},M=()=>{if(!w||!w.atomic){w=null,S=null;return}let R=w.atomStart,W=R+1;if(w.style.hidden){w=null,S=null;return}if(!Oe(w.resultRevisions,i)){s&&Yt(w.resultRevisions)&&nr(s,R,W),w=null,S=null;return}let{resultLink:A,linkSpec:z,resultRevisions:q,formField:_}=w,X,U=()=>{if(X)return X;let K=!A&&z?c?.(z)??null:null,pe=A??K;return X={...q.length>0?{revisionsOverride:q}:{},...pe?{linkOverride:pe}:{},fieldAtom:{formField:_}},X},j=eg(w,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f});if(j){let K=U(),pe=j.pageField?{...K,fieldAtom:{formField:w.formField,pageField:j.pageField}}:K;N(j.text,j.props,j.style,true,R,W,pe);}w=null,S=null;},y=()=>{if(!w)return;let R=!w.resultLink&&w.linkSpec?c?.(w.linkSpec)??null:null,W=A=>R&&!A.link?{...A,link:R}:A;if(w.atomic){m=w.atomStart;for(let A of w.buffered)p.push({...W(A),start:m,end:m+(A.end-A.start)}),m+=A.end-A.start;w.cachedText.length>0&&w.buffered.length===0&&(N(w.cachedText,w.props,w.style,false,m,m+w.cachedText.length,R?{linkOverride:R}:void 0),m+=w.cachedText.length);}else {for(let A of w.buffered)p.push(W(A));m=w.bufferOffset;}w=null,S=null;},G=(R,W,A)=>{if(ng(R)){let U=m;m+=1;let j=m;if(!l)return;let K=rg({node:R,layout:l,hiddenRun:A.hidden,revisions:T,displayMode:i});K.recordDeleted&&s&&nr(s,U,j),K.emit&&N("\uFFFC",W,A,true,U,j,K.extras);return}if(ag(R)){let U=Oc(R,a),j=m,K=j+1;if(m=K,A.hidden||!U||U.text.length===0&&!U.measureText)return;let pe=U.scopeId&&U.nav?{scopeId:U.scopeId,direction:U.nav}:void 0;N(U.text.length>0?U.text:U.measureText??"",W,A,true,j,K,{...U.measureText!==void 0?{measureText:U.measureText}:{},...pe?{noteNav:pe}:{}});return}let z=tg(R);if(z){A.hidden||N(" ",W,A,false,m,m,{positionalTab:z});return}if(Po(R)){let U=Io(R);if(!U||A.hidden||!Oe(T,i))return;let j=Tc(W,U,d);N(U.text,j.props,j.style,true,m,m);return}let q=za(R);if(q.length===0)return;let _=Yt(T);A.hidden||!Oe(T,i)||R.kind==="deletedText"&&!_||N(q,W,A,false,m,m+q.length,{...R.kind==="hardBreak"?{breakKind:chunkILTZTY3K_cjs.Dc(R)}:{}}),_&&s&&nr(s,m,m+q.length),m+=q.length;},D=(R,W)=>{if(R.kind!=="run")return;let A=us(R,t,r),z=Ae(A,d),q=()=>{w&&(w.capturedResultStyle||(w.props=A,w.style=z,w.capturedResultStyle=true),w.capturedResultRevisions||(w.resultRevisions=T,w.capturedResultRevisions=true,!w.resultLink&&g&&(w.resultLink=g)));};for(let _ of R.children){if(!On(L)){if(y(),Fa(v),C.reset(),_.kind==="runProperties"||Pt(_,"begin")||Pt(_,"separate")||Pt(_,"end")||Sr(_)||k.has(_.id)&&S===null)continue;G(_,A,z);continue}if(_.kind!=="runProperties"){if(Pt(_,"begin")){let X=b.has(_.id);Aa(v),v.nesting===1&&(y(),C.reset(),S=X?_.id:null,w={kind:null,picture:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,formData:chunkILTZTY3K_cjs.Wc(_),atomic:X,editableResult:P.has(_.id),atomStart:m,props:A,style:z,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:m,resultRevisions:T,capturedResultRevisions:T.length>0,formField:chunkILTZTY3K_cjs.Vc(_),...g?{resultLink:g}:{}},X&&(m+=1));continue}if(Sr(_)){Da(v,_,L,W+1);continue}if(Pt(_,"separate")){let X=v.nesting===1&&v.phase==="instruction",U=v.nesting,j=_a(v);if(X&&w){w.kind=j?.kind??null,w.picture=j?.picture??null;let K=ts(v);!w.kind&&!K.overflow&&!v.nestingOverflow&&kc(w,K.instruction),w.props=A,w.style=z;}else w?.atomic&&v.phase==="result"&&!v.nestingOverflow&&C.onSeparate(n?j:null,U);continue}if(Pt(_,"end")){let X=v.nesting===1;if(X&&w?.atomic&&v.phase==="instruction"){let j=ts(v);!j.overflow&&!v.nestingOverflow&&kc(w,j.instruction);}let U=C.onEnd(v.nesting,n);U!==null&&w?.atomic&&(w.cachedText+=U),Ha(v),X&&(w?.atomic?M():y());continue}if(!(Lm(v)&&w?.atomic)){if(w&&Fm(v)){if(Po(_)){if(w.atomic){if(Oe(T,i)&&(w.sawResultContent=true),C.active){C.noteResult(!z.hidden&&Oe(T,i));continue}if(!z.hidden&&Oe(T,i)){let Fe=Io(_);Fe?.unicode&&(q(),w.cachedText+=Fe.text);}continue}let K=Io(_);if(!K||z.hidden||!Oe(T,i))continue;let pe=Tc(A,K,d);w.buffered.push({text:K.text,props:pe.props,style:pe.style,start:m,end:m,projected:true,...T.length>0?{revisions:T}:{},...g?{link:g}:{},fieldAtom:{formField:w.formField}});continue}let X=za(_);if(X.length===0)continue;let U=Yt(T),j=!Oe(T,i)||_.kind==="deletedText"&&!U;if(w.atomic&&!j&&(w.sawResultContent=true),U&&s&&(w.atomic?nr(s,w.atomStart,w.atomStart+1):nr(s,m,m+X.length)),j){w.atomic&&C.active&&C.noteResult(false),w.atomic||(m+=X.length,w.bufferOffset=m);continue}if(w.atomic){if(C.active){if(C.noteResult(!z.hidden),z.hidden)continue;q();continue}if(z.hidden)continue;q(),w.cachedText+=X;continue}if(z.hidden){m+=X.length,w.bufferOffset=m;continue}w.capturedResultStyle||(w.props=A,w.style=z,w.capturedResultStyle=true),w.buffered.push({text:X,props:A,style:z,start:m,end:m+X.length,...T.length>0?{revisions:T}:{},...g?{link:g}:{},fieldAtom:{formField:w.formField}}),m+=X.length,w.bufferOffset=m;continue}k.has(_.id)&&S===null&&b.size>0,G(_,A,z);}}}};if(!On(L))return p;let F=chunkILTZTY3K_cjs.Va(),E=(R,W)=>{let A=m;if(m+=1,R.kind==="textValue"||(Yt(T)&&s&&nr(s,A,A+1),!Oe(T,i)))return;let z=Jm({simple:R,depth:W,pageContext:n,budget:L,revisions:T,displayMode:i,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:g,projectFieldLink:c,documentProperties:u,bodyPageFields:f});z&&N(z.text,z.props,z.style,true,A,A+1,{fieldAtom:{formField:false,...z.pageField?{pageField:z.pageField}:{}},...z.link?{linkOverride:z.link}:{}});},B=(R,W,A,z)=>{let q=chunkILTZTY3K_cjs.ic(R);if(q){let j=m++;Yt(T)&&s&&nr(s,j,m);let K=Rs(Ae(t,d));return K.hidden||!Oe(T,i)?void 0:N("\uFFFC",t,K,true,j,m,{equation:q})}if(chunkILTZTY3K_cjs.Pc(R)){E(R,W);return}if(R.kind==="run"){D(R,W);return}if(chunkILTZTY3K_cjs.nc(R)){if(z>=chunkILTZTY3K_cjs.mc||W>Un)return;for(let j of chunkILTZTY3K_cjs.qc(R))B(j,W+1,A,z+1);return}if(W>Un||W>=Co)return;let _=R.kind!=="textValue"&&"localName"in R?chunkILTZTY3K_cjs.Ua(A,R):A;if(R.kind==="hyperlink"){let j=g;g=o?.(R)??void 0;for(let K of R.children)B(K,W+1,_,z);g=j;return}if(!Rr(R))return;let X=vo(R);if(!X||!On(L))return;let U=T;T=To(U,X);for(let j of R.children)B(j,W+1,_,z);T=U;};for(let R of e.children)B(R,1,F,0);return y(),p}function VP(e){let t=Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:n>r?1:0).map(([n,r])=>`${n}=${r}`).join(",");return `${e.localName}(${t})`}function $P(e){return e.map(VP).join(";")}var fg=new WeakMap,mg=1<<18;function gg(e){if(e.kind==="textValue")return `t:${e.value}`;let t=e.kind==="paragraph"||e.kind==="table";if(t){let r=fg.get(e);if(r!==void 0)return r}let n=XP(e);return t&&n.length<=mg&&fg.set(e,n),n}function XP(e){if(e.kind==="textValue")return `t:${e.value}`;let t=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let n=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of n)t.push(r);}for(let n of e.children??[])t.push(gg(n));return `(${t.join("|")})`}var pg=new WeakMap;function Ir(e){let t=Math.round(e.width*1e3),n=e.drawingToken??"",r=e.exclusionToken??"",o=$P(e.properties),a=pg.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===t&&a.drawingToken===n&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,t,n,r,o,gg(e.paragraph)].join("\0");return i.length<=mg&&pg.set(e.paragraph,{producer:e.producer,width:t,drawingToken:n,exclusionToken:r,propertiesToken:o,key:i}),i}var hg=new WeakMap;function yg(e,t){hg.set(e,t);}function bg(e,t,n,r){if(!e)return;let o=t??new Set;for(let a of n)o.add(a);for(let a of r){let i=hg.get(a);if(i)for(let s of i)o.add(s);}t||e.retain(o);}var YP=8,KP=8;function UP(e={}){let t=Math.max(1,e.maxEntries??4096),n=t*8,r=new Map,o=0,a=0,i=0,s=0,l=0;return {get(d){let c=r.get(d);if(c===void 0){s+=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>t;){let u=r.entries().next();if(u.done||u.value[1].generation>=o&&r.size<=n)break;r.delete(u.value[0]),l+=1;}},retentionPassDue(){return a+=1,a%YP===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>KP&&(r.delete(c),l+=1);},clear(){r.clear();},get stats(){return {hits:i,misses:s,evictions:l,size:r.size}}}}var xg=21600;function Ye(e){return Number.isFinite(e)?e:0}function Va(e){if(e.length===0)return Object.freeze([]);let t=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),n=[],r=t[0];for(let o=1;o<t.length;o+=1){let a=t[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(n.push(r),r=a);}return n.push(r),Object.freeze(n)}function qP(e,t){let n=[];for(let r of e)for(let o of t){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&n.push(Object.freeze({start:a,end:i}));}return Va(n)}function Bc(e,t,n){let r=[];for(let o of e){let a=Math.max(o.start,t),i=Math.min(o.end,n);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return Va(r)}function ZP(e,t,n){let r=[],o=t;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<n&&r.push(Object.freeze({start:o,end:n})),Object.freeze(r)}function Rg(e,t){return Mo(e,t)}function Mc(e,t,n){return Rg(Mo(e,t),n)}function JP(e,t){let n=[],r=Math.min(e.length,mt);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],s=a.y,l=i.y;if(s===l)continue;let d=Math.min(s,l),c=Math.max(s,l);if(t<d||t>c||t===c&&l>s||t===d&&l<s)continue;let u=(t-s)/(l-s),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:l>s?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function QP(e,t){let n=[],r=Math.min(e.length,mt);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(t-a.y)>1e-6)continue;let s=Math.min(a.x,i.x),l=Math.max(a.x,i.x);l>s&&n.push(Object.freeze({start:s,end:l}));}return Va(n)}function Sg(e,t,n){let r=e0(JP(e,t),n),o=QP(e,t);return Va([...r,...o])}function e0(e,t){if(e.length===0)return Object.freeze([]);let n=[];if(t==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,s=e[a+1].x;s>i&&n.push(Object.freeze({start:i,end:s}));}return Object.freeze(n)}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&&n.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(n)}function t0(e,t){return Object.freeze({top:Ye(e.top)+Ye(t.top),right:Ye(e.right)+Ye(t.right),bottom:Ye(e.bottom)+Ye(t.bottom),left:Ye(e.left)+Ye(t.left)})}function n0(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y,l=r.x-n.x,d=r.y-n.y,c=i*d-s*l;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*s-(n.y-e.y)*i)/c,p=((n.x-e.x)*d-(n.y-e.y)*l)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*s;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function r0(e,t,n,r){let o=[],a=Math.min(e.length,mt),i=Math.min(t.length,mt);if(a<2||i<2)return Object.freeze([]);let s=mt*mt,l=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(l>=s)return Object.freeze(o);l+=1;let p=t[f],m=t[(f+1)%i],g=n0(c,u,p,m,n,r);g!==null&&o.push(g);}}return Object.freeze(o)}function o0(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,mt);for(let i=0;i<a;i+=1){let s=o[i].y;Number.isFinite(s)&&s>=t-1e-6&&s<=n+1e-6&&r.add(s);}for(let i=0;i<a;i+=1){let s=o[i],l=o[(i+1)%a],d=s.y,c=l.y;if(d!==c)for(let u of [t,n]){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 r0(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function a0(e,t,n,r){let o=Sg(e,n,r);return t&&t.length>=3&&(o=qP(o,Sg(t,n,"nonzero"))),o}function wg(e,t,n,r,o=null){let a=Ye(n.top),i=Ye(n.bottom),s=Ye(n.left),l=Ye(n.right),d=t-i,c=t+a,u=o0(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 x=u[g+1];return x<=m+1e-6?[m]:[m,x,(m+x)/2]}):[d];for(let m of p){let g=a0(e,o,m,r);for(let x of g)f.push(Object.freeze({start:x.start-s,end:x.end+l}));}return Va(f)}function Pg(e){let{x:t,y:n,width:r,height:o}=e;return Object.freeze([Object.freeze({x:t,y:n}),Object.freeze({x:t+r,y:n}),Object.freeze({x:t+r,y:n+o}),Object.freeze({x:t,y:n+o})])}function i0(e){let t=Math.max(0,Ye(e.extentWidthPt)),n=Math.max(0,Ye(e.extentHeightPt)),r=Is(e.transform,t,n),o=Math.min(e.polygonEmu.length,mt);if(o<3)return Pg({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/xg,i=r.height/xg,s=[];for(let l=0;l<o;l+=1){let d=e.polygonEmu[l];s.push(Object.freeze({x:Ye(d.x)*a,y:Ye(d.y)*i}));}return vs({points:Object.freeze(s),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:t,layoutHeight:n,anchorX:e.anchorX,anchorY:e.anchorY})}function s0(e,t){let n=t.effectInsets??Ps,r=t.wrapDistances??Ps,o=Ye(t.contentLeft),a=Ye(t.contentRight);if(t.mode==="topAndBottom"){let c=Rg(Mo(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Bc([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=Mc(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Bc([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:Pg(t.contentBounds),s=t.mode==="through"?"evenodd":"nonzero",l=t0(r,n),d=wg(i,e,l,s,t.clipPolygon);return Bc(d,o,a)}function l0(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(t=>t.start)),end:Math.max(...e.map(t=>t.end))})}function d0(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=l0(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(l=>l.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(l=>l.start>=a.end-1e-4));let i=Math.max(0,a.start-r),s=Math.max(0,o-a.end);return i===s?Object.freeze(e.filter(l=>l.start>=a.end-1e-4)):i>s?Object.freeze(e.filter(l=>l.end<=a.start+1e-4)):Object.freeze(e.filter(l=>l.start>=a.end-1e-4))}function Ig(e,t){let n=s0(e,t),r=ZP(n,t.contentLeft,t.contentRight);return d0(r,n,t.textSide,t.contentLeft,t.contentRight)}function c0(e,t,n,r){return n.length<3?false:wg(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Lc(e,t,n){let r=n.effectInsets??Ps,o=n.hitBounds;if(e<o.x||e>o.x+o.width||t<o.y||t>o.y+o.height)return false;if(n.clipPolygon&&n.clipPolygon.length>=3)return c0(e,t,n.clipPolygon,r);let a=Mo(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function vg(e){let t=Object.freeze({top:Ye(e.wrapDistancesEmu.top/hn),right:Ye(e.wrapDistancesEmu.right/hn),bottom:Ye(e.wrapDistancesEmu.bottom/hn),left:Ye(e.wrapDistancesEmu.left/hn)}),n=e.mode==="tight"||e.mode==="through"?i0({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:n,clipPolygon:e.geometry.clipPolygon,wrapDistances:t,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var It=1e5,mt=chunkILTZTY3K_cjs.m.maxPolygonPoints,Ps=Object.freeze({top:0,right:0,bottom:0,left:0}),u0=32,f0=.1,p0=new Set(["rect","ellipse","roundRect"]);function fe(e){return Number.isFinite(e)?e:0}function Ht(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function Tg(e,t){let n=e+t;return Number.isFinite(n)?n:0}function Cg(e,t,n){let r=Ht(e,0,n),o=Ht(t,0,n);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=n){let i=(n-1)/a;r*=i,o*=i;}return {left:r,right:o}}function m0(e){let t=Cg(Ht(e.left,0,It),Ht(e.right,0,It),It),n=Cg(Ht(e.top,0,It),Ht(e.bottom,0,It),It);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function g0(e){let t=m0({left:e.left*It,top:e.top*It,right:e.right*It,bottom:e.bottom*It});return Object.freeze({left:t.left/It,top:t.top/It,right:t.right/It,bottom:t.bottom/It})}function h0(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/hn;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:t(e.top),right:t(e.right),bottom:t(e.bottom),left:t(e.left)})}function Mo(e,t){let n=fe(t.left),r=fe(t.right),o=fe(t.top),a=fe(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,Tg(e.width,n+r)),height:Math.max(0,Tg(e.height,o+a))})}function y0(e,t,n){let r=e*Ht(n.left,0,1),o=t*Ht(n.top,0,1),a=e*(1-Ht(n.right,0,1)),i=t*(1-Ht(n.bottom,0,1));if(a<=r||i<=o){let s=e/2,l=t/2;return Object.freeze({left:s,top:l,right:s,bottom:l})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Is(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?fe(rr(r)??t):Math.max(0,fe(t)),s=o>0?fe(rr(o)??n):Math.max(0,fe(n));return Object.freeze({offsetX:fe(rr(a.x)??0),offsetY:fe(rr(a.y)??0),width:i,height:s})}function b0(e,t,n,r){let o=y0(t,n,r),a=o.right-o.left,i=o.bottom-o.top,s=t>0?t:1,l=n>0?n:1,d=[],c=Math.min(e.length,mt);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Ht(f.x/s,0,1)*a,m=i<=0?o.top:o.top+Ht(f.y/l,0,1)*i;d.push(Object.freeze({x:fe(p),y:fe(m)}));}return Object.freeze(d)}function kg(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=fe(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),s=Math.sin(a),l=r*i-o*s,d=r*s+o*i;return Object.freeze({x:fe(l+t.x),y:fe(d+t.y)})}function Og(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let t=e[0].x,n=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,mt);for(let i=1;i<a;i+=1){let s=e[i];!Number.isFinite(s.x)||!Number.isFinite(s.y)||(t=Math.min(t,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),o=Math.max(o,s.y));}return Object.freeze({x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,o-r)})}function Fc(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=$a(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let s of n)r.push(kg(Object.freeze({x:s.x+e.offsetX,y:s.y+e.offsetY}),t,e.transform));let o=Og(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,fe(e.layoutWidth))/a,scaleY:Math.max(0,fe(e.layoutHeight))/i,anchorX:fe(e.anchorX),anchorY:fe(e.anchorY)})}function x0(e,t){return Object.freeze({x:fe(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:fe(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function vs(e){let t=e.mapping??Fc({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}),n=b0(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,mt),o=n.length>0?n:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let s=0;s<r;s+=1){let l=o[s],d=Object.freeze({x:fe(l.x+e.offsetX),y:fe(l.y+e.offsetY)});i.push(x0(kg(d,a,e.transform),t));}return Object.freeze(i)}function $a(e,t,n,r){if(n<=0||r<=0){let o=Object.freeze({x:e,y:t});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:t}),Object.freeze({x:e+n,y:t}),Object.freeze({x:e+n,y:t+r}),Object.freeze({x:e,y:t+r})])}function S0(e,t,n){if(!e||!p0.has(e))return null;if(t<=0||n<=0)return $a(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return $a(0,0,t,n);if(e==="ellipse"){let s=[],l=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(u0,mt);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;s.push(Object.freeze({x:l+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(s)}let r=Math.min(t,n)*f0,o=Math.max(0,r),a=t,i=n;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 Fo(e){return Object.freeze({x:fe(e.x),y:fe(e.y)})}function R0(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,s,l)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,mt);for(let u=0;u<c;u+=1){let f=Fo(i[u]),p=Fo(i[(u+1)%c]),m=s(f),g=s(p);if(m&&g?d.push(p):m&&!g?d.push(Fo(l(f,p))):!m&&g&&(d.push(Fo(l(f,p))),d.push(p)),d.length>=mt)break}return Object.freeze(d.slice(0,mt))},a=e.slice(0,mt).map(Fo);return a=[...o(a,i=>i.x>=t.x,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(t.x-i.x)/l:0;return Object.freeze({x:t.x,y:fe(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(n-i.x)/l:0;return Object.freeze({x:n,y:fe(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(t.y-i.y)/l:0;return Object.freeze({x:fe(i.x+d*(s.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(r-i.y)/l:0;return Object.freeze({x:fe(i.x+d*(s.x-i.x)),y:r})})],Object.freeze(a)}function w0(e){let t=Og(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function Ts(e,t){let n=P0(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=a=>{if(!a||a.length===0)return a;let i=R0(a,t);return i.length>=3?Object.freeze(i.map(Fo)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function P0(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function I0(e){let t=Math.max(0,fe(e.extentWidth)),n=Math.max(0,fe(e.extentHeight)),r=fe(e.anchorX),o=fe(e.anchorY),a=g0(e.crop),i=h0(e.effectExtentEmu),s=Is(e.transform,t,n),l=Object.freeze({x:r,y:o,width:t,height:n}),d={sourceWidth:s.width,sourceHeight:s.height,offsetX:s.offsetX,offsetY:s.offsetY,crop:a,transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:r,anchorY:o},c=Fc(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=vs({points:$a(0,0,s.width,s.height),...d,crop:u,mapping:c}),p=S0(e.presetGeometry,s.width,s.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=$a(0,0,s.width,s.height));let x=vs({points:g,...d,crop:u,mapping:c}),h=w0(x.length>=3?x:f),b=Mo(h,i);return Object.freeze({contentBounds:l,paintBounds:b,hitBounds:b,transformedCorners:f,clipPolygon:x.length>=3?x:f,clipFallback:m,effectInsets:i})}function Eo(e){let t=e.projection.picture,n=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return I0({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:t?.crop??{left:0,top:0,right:0,bottom:0},transform:t?.transform??n,presetGeometry:t?.presetGeometry??null})}function v0(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=Is(t,n,r),a=o.width,i=o.height,s=Fc({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),l=fe(t.rotationDegrees),d=Math.abs(l%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=s.scaleX,p=s.scaleY,m=a>0?a/n: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 h=l*Math.PI/180,b=Math.cos(h),P=Math.sin(h),k=o.offsetX+a/2,v=o.offsetY+i/2,L=f*b*c,w=-f*P*u,S=p*P*c,C=p*b*u,T=f*(k-b*c*(a/2)+P*u*(i/2)-s.bboxX),N=p*(v-P*c*(a/2)-b*u*(i/2)-s.bboxY);return Object.freeze({a:fe(L*m),b:fe(S*m),c:fe(w*g),d:fe(C*g),e:fe(T),f:fe(N)})}function PM(e){let t=v0(e);if(t)return `matrix(${Lo(t.a)}, ${Lo(t.b)}, ${Lo(t.c)}, ${Lo(t.d)}, ${Lo(t.e)}, ${Lo(t.f)})`}function Lo(e){return Number.isFinite(e)?String(e):"0"}var T0=new Map([["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"]]),C0=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),k0=Object.freeze({left:0,top:0,right:0,bottom:0});function Lg(e){let t=e.picture,n=null;if(!t){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";n=T0.get(o)??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??k0,transform:t?.transform??C0,placeholderGraphicKind:t?null:n,vectorShape:e.vectorShape})}var hn=12700;function ct(e){return e/hn}function rr(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*hn*72)return null;let t=e/hn;return Number.isFinite(t)?t:null}function En(e){let t=ct(e.inlineDistancesEmu.left),n=ct(e.inlineDistancesEmu.right),r=ct(e.inlineDistancesEmu.top),o=ct(e.inlineDistancesEmu.bottom),a=ct(e.effectExtentEmu.left),i=ct(e.effectExtentEmu.right),s=ct(e.effectExtentEmu.top),l=ct(e.effectExtentEmu.bottom),d=ct(e.extentEmu.cx),c=ct(e.extentEmu.cy);return Object.freeze({distL:t,distR:n,distT:r,distB:o,effectL:a,effectR:i,effectT:s,effectB:l,width:d,height:c,totalWidth:t+a+d+i+n,lineContribution:r+s+c+l+o})}function Fg(e,t,n){let r=Math.max(n.distT+n.effectT,e-n.height),o=Math.max(t,r-n.effectT+n.height+n.effectB+n.distB),a=r+n.height+n.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function Cs(e,t,n){if(Math.abs(t)<1e-4&&Math.abs(n)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+t,y:a.y+n}),o=a=>Object.freeze({x:a.x+t,y:a.y+n});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 ks(e,t,n){return Math.abs(t)<1e-4&&Math.abs(n)<1e-4?e:Object.freeze({...e,x:e.x+t,y:e.y+n,advanceStart:e.advanceStart+t,advanceEnd:e.advanceEnd+t,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+t,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+t,y:e.hitBounds.y+n}),geometry:Cs(e.geometry,t,n)})}function Ec(e,t){return e.length===0?e:e.map(n=>{let r=n.geometry.effectInsets.bottom,o=t-n.height-r,a=o-n.y;return Math.abs(a)<1e-4&&n.baselineOffset===t?n:Object.freeze({...n,y:o,baselineOffset:t,geometry:Cs(n.geometry,0,a),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+a}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+a})})})}function Nc(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function Os(e,t){let n=Nc(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=Cs(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:Ts(i,t)})}var Bg=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),Mg=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function yn(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function Eg(e,t){return !(!t.layoutInCell||t.cellBox===null||!Number.isFinite(t.cellBox.height)||t.cellBox.height<=0||!Number.isFinite(t.cellBox.width)||t.cellBox.width<=0)}function Ng(e,t){if(Eg(e,t)){let l=t.cellBox;if(!l)return null;let{x:d,width:c}=l;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:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return yn(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return yn(t)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,s=t.columnBox.x+t.columnBox.width;switch(e){case "page":return {left:n,right:r,center:(n+r)/2};case "margin":return {left:o,right:a,center:o+t.contentWidth/2};case "column":return {left:i,right:s,center:i+t.columnBox.width/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "leftMargin":return {left:n,right:n,center:n};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return yn(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return yn(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function Ag(e,t){if(Eg(e,t)){let l=t.cellBox;if(!l)return null;let{y:d,height:c}=l;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "insideMargin":return yn(t)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return yn(t)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let n=-t.contentInsetTop,r=t.contentBandHeight,o=n+t.pageHeight-t.marginBottom,a=r+t.contentInsetBottom,i=0,s=t.contentHeight;switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:i,bottom:s,center:i+t.contentHeight/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "topMargin":return {top:n,bottom:n,center:n};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return yn(t)?{top:i,bottom:i,center:i}:{top:s,bottom:s,center:s};case "outsideMargin":return yn(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function Dg(e){return e===null?0:rr(e)}function O0(e,t,n){let r=yn(n);if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.width)&&n.cellBox.width>0){let{x:o,width:a}=n.cellBox;return e==="inside"?r?o:o+a-t:e==="outside"?r?o+a-t:o:null}return e==="inside"?r?0:n.contentWidth-t:e==="outside"?r?n.contentWidth-t:0:null}function B0(e,t,n){let r=yn(n),o=n.contentBandHeight;if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.height)&&n.cellBox.height>0){let{y:a,height:i}=n.cellBox;return e==="inside"?r?a:a+i-t:e==="outside"?r?a+i-t:a:null}return e==="inside"?r?0:o-t:e==="outside"?r?o-t:0:null}function M0(e,t,n,r,o){let a=Ng(e,o);if(!a)return null;let i=Dg(n);if(i===null)return null;if(t==="left")return a.left+i;if(t==="center")return a.center-r/2+i;if(t==="right")return a.right-r+i;if(t==="inside"||t==="outside"){let s=O0(t,r,o);if(s!==null)return s+i}return a.left+i}function L0(e,t,n,r,o){let a=Ag(e,o);if(!a)return null;let i=Dg(n);if(i===null)return null;if(t==="top")return a.top+i;if(t==="center")return a.center-r/2+i;if(t==="bottom")return a.bottom-r+i;if(t==="inside"||t==="outside"){let s=B0(t,r,o);if(s!==null)return s+i}return a.top+i}function Xa(e){let t=e.contentBandHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:t+e.contentInsetTop+e.contentInsetBottom})}function Ac(e,t){let n=En(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=rr(r.simplePosition.xEmu),x=rr(r.simplePosition.yEmu);return Object.freeze(g===null||x===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-t.marginLeft,y:x-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let s=r.horizontal.relativeFrom,l=r.vertical.relativeFrom,d=Ng(s,t),c=Ag(l,t),u=d?.left??0,f=c?.top??0;if(!Bg.has(s)||!Mg.has(l))return Object.freeze({x:0,y:0,horizontalFrame:Bg.has(s)?s:a,verticalFrame:Mg.has(l)?l:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=M0(s,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),m=L0(l,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function F0(e){let t=e.input.projection,n=t.anchor,r=En(t),o=Eo({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Nc(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:n?.behindDocument??false,allowOverlap:n?.allowOverlap??true,layoutInCell:n?.layoutInCell??true,relativeHeight:n?.relativeHeight??0,wrap:t.wrap==="inline"?"inFront":t.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?Ts(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkILTZTY3K_cjs.cb(t),...Lg(t)})}function Mt(e,t){if(e.kind!=="paragraph")return [];let n=[],r=(o,a)=>{if(o.kind==="drawing"){let i=t.projectionForAtom?.(o.id)??t.project(o);i?.kind==="anchored"&&n.push({atomId:o.id,projection:i,revisions:a});return}if(chunkILTZTY3K_cjs.bb(o)){let i=t.projectionForAtom?.(o.id)??null;i?.kind==="anchored"&&n.push({atomId:o.id,projection:i,revisions:a});return}if("children"in o){let i=Rr(o)?vo(o):null,s=i?To(a,i):a;for(let l of o.children)r(l,s);}};for(let o of e.children)r(o,bs);return Object.freeze(n)}function Kt(e){let t=new Map;if(e.kind!=="paragraph")return t;let n=0,r=a=>{if(a.kind==="drawing"||chunkILTZTY3K_cjs.bb(a)){t.set(a.id,n),n+=1;return}if(a.kind==="textValue"){n+=a.value.length;return}if("children"in a)for(let i of a.children)r(i);},o=a=>{if(a.kind==="run"){for(let i of a.children)r(i);return}if(a.kind==="hyperlink"||Rr(a))for(let i of a.children)o(i);};for(let a of e.children)o(a);return t}function E0(e,t,n){for(let o of e.spans){if(t<o.range.start)break;if(t<o.range.end){if(n&&o.text!==void 0&&o.style!==void 0){let s=t-o.range.start;return o.box.x+Dt(o.text.slice(0,s),o.style,n)}let a=o.range.end-o.range.start;if(a<=0)return o.box.x;let i=t-o.range.start;return o.box.x+o.box.width*i/a}if(t===o.range.end)return n&&o.text!==void 0&&o.style!==void 0?o.box.x+Dt(o.text,o.style,n):o.box.x+o.box.width}let r;for(let o of e.spans)o.range.end<=t&&(r=o);return r?n&&r.text!==void 0&&r.style!==void 0?r.box.x+Dt(r.text,r.style,n):r.box.x+r.box.width:e.box.x}function N0(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function Dc(e,t,n){if(!(Math.abs(n)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===t&&(e[r]=Object.freeze({...o,y:o.y+n,geometry:Cs(o.geometry,0,n),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+n}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+n})}));}}function or(e){let t=Mt(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=Kt(e.paragraph),r=e.displayMode??We,o=[];for(let a of t){let i=a.projection;if(i.hidden||!Oe(a.revisions,r))continue;let s=n.get(a.atomId);if(s===void 0||e.fragmentRange&&(s<e.fragmentRange.start||s>=e.fragmentRange.end))continue;let l=e.lines.find(h=>s>=h.range.start&&s<h.range.end);if(!l)continue;let d=i.anchor?.layoutInCell??true,u=i.position?.horizontal.relativeFrom==="character"?N0(l,s):s,f=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:l.box,anchorCharacterX:E0(l,u,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:d}),p=Ac(i,f),g=d&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:Xa(e.frameBase),x=F0({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:i,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:u,resolved:p,clipRegion:g,revisions:a.revisions,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(a.atomId)}:{},...i.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(i)}:{}});o.push(x);}return Object.freeze(o)}function _g(e){let t=En(e.input.projection),n=e.slotX+t.distL+t.effectL,r=Eo({projection:e.input.projection,anchorX:n,anchorY:e.y,extentWidth:t.width,extentHeight:t.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=Nc(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:n,y:e.y,width:t.width,height:t.height,distL:t.distL,distR:t.distR,distT:t.distT,distB:t.distB,advanceStart:e.slotX,advanceEnd:e.slotX+t.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:Ts(r,o),resource:e.input.resource,accessibility:chunkILTZTY3K_cjs.cb(e.input.projection),...Lg(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{}})}var A0=256,zc=8,vr=8,No=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function D0(e,t){let n=Math.max(1,t.columnCount);if(n<=1)return 0;let r=e.x+e.width/2;if(t.columnLefts&&t.columnWidths&&t.columnLefts.length===n){for(let i=0;i<n;i+=1){let s=t.columnLefts[i],l=s+t.columnWidths[i];if(r>=s-.001&&r<l+.001)return i}return n-1}let o=t.columnGapPt,a=(t.contentWidth-o*(n-1))/n;for(let i=0;i<n;i+=1){let s=i*(a+o),l=s+a;if(r>=s-.001&&r<l+.001)return i}return n-1}function Hc(e){return e.behindDocument?"behind":"inFront"}function zg(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function _0(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 H0(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function jc(e){let t=_0(e.projection.wrap);if(!t||!e.projection.wrapGeometry)return null;let n=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return vg({mode:t,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:n.distancesEmu,polygonEmu:n.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:t==="square"?H0(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Gc(e){if(e.mode==="topAndBottom"||e.mode==="square")return Mc(e.contentBounds,e.effectInsets,e.wrapDistances);let t=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)t.push(o.y);let n=Math.min(...t)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...t)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:n,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-n)})}function z0(e){if(e.drawing.behindDocument||!zg(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=jc({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:t});return n?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:Hc(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:Gc(n),input:n}):null}function jg(e,t){let n=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=t.sourceOrder??Number.MAX_SAFE_INTEGER;return n!==r?n-r:e.drawingNodeId.localeCompare(t.drawingNodeId)}function j0(e,t){let n=Hc(e),r=Hc(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:jg(e,t)}function Gg(e){return Object.freeze([...e].sort(j0))}function _c(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Wc(e,t){if(Math.abs(t)<=1e-4)return e;let n=e.geometry;return Object.freeze({...e,y:e.y+t,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+t}),geometry:Object.freeze({...n,contentBounds:Object.freeze({...n.contentBounds,y:n.contentBounds.y+t}),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+t}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+t}),transformedCorners:n.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+t})),clipPolygon:n.clipPolygon?n.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+t})):null})})}function Wg(e,t){let n=t.maxAttempts??A0,r=[...e].sort(jg),o=[],a=[],i=[];for(let s of r){if(s.allowOverlap){o.push(s);continue}let l=s,d=0;for(;d<n&&o.some(g=>_c(g.paintBounds,l.paintBounds));){let p=o.find(g=>_c(g.paintBounds,l.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-l.paintBounds.y+.001;l=Wc(l,m),d+=1;}let c=o.some(f=>_c(f.paintBounds,l.paintBounds)),u=l.paintBounds.y+l.paintBounds.height>t.pageBottom+.001;if(c||u){a.push(l),i.push(l.drawingNodeId);continue}o.push(l);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function Ao(e,t,n,r){let o=[{start:n,end:r}];for(let a of t){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let s=Ig(e,a.input),l=[];for(let d of o)for(let c of s){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&l.push(Object.freeze({start:u,end:f}));}if(o=l,o.length===0)break}return Object.freeze(o)}function Vg(e,t){for(let n of t)if(e>=n.start-1e-6&&e<n.end-1e-6)return Math.max(0,n.end-e);return 0}function G0(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function Vc(e,t){let n=G0(e,t);if(!n)return null;let r=Math.max(e,n.start),o=n.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function W0(e,t,n){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+t,y:r.y+n}),contentLeft:e.contentLeft+t,contentRight:e.contentRight+t,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{}})}function $c(e,t){return Object.freeze({...e,layoutFallback:t})}function $g(e,t,n,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-n,verticalBand:Object.freeze({...a,x:a.x-t,y:a.y-n}),input:Object.freeze({...W0(i,-t,-n),contentLeft:r?.left,contentRight:r?.right??i.contentRight-t})})}))}function Xg(e,t,n){return Object.freeze(e.filter(r=>{let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function Yg(e){let t=Mt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Kt(e.paragraph),r=e.displayMode??We,o=Math.max(1,e.contentRight-e.contentLeft),a=[];for(let i of t){if(!Oe(i.revisions,r)||i.projection.anchor?.behindDocument||!zg(i.projection.wrap)||i.projection.wrap==="topAndBottom")continue;let s=n.get(i.atomId);if(s===void 0)continue;let l=e.anchorLineTopByModelStart.get(s);if(l===void 0)continue;let d=Object.freeze({x:e.contentLeft,y:l,width:o,height:14}),c=e.anchorCellBox!=null,u=Ac(i.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+o,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:o,contentHeight:648,contentBandHeight:648,paragraphBox:d,anchorLineBox:d,anchorCharacterX:e.contentLeft,columnBox:d,cellBox:c?e.anchorCellBox:null,layoutInCell:c,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),f=e.paragraphStartY+l,p=En(i.projection),m=Eo({projection:i.projection,anchorX:u.x,anchorY:f,extentWidth:p.width,extentHeight:p.height}),g=jc({projection:i.projection,geometry:m,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:u.x,anchorY:f});g&&a.push(Object.freeze({drawingNodeId:i.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:s,sourceOrder:e.sourceOrderOf?.(i.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:i.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:i.projection.anchor?.relativeHeight??0,allowOverlap:i.projection.anchor?.allowOverlap??true,columnIndex:0,y:f,verticalBand:Gc(g),input:g}));}return a.sort((i,s)=>i.sourceOrder-s.sourceOrder),Object.freeze(a)}function Bs(e){let t=Mt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Kt(e.paragraph),r=e.displayMode??We,o=[];for(let a of t){if(!Oe(a.revisions,r)||a.projection.anchor?.behindDocument||a.projection.wrap!=="topAndBottom")continue;let i=n.get(a.atomId);if(i===void 0)continue;let s=e.anchorLineTopByModelStart.get(i);if(s===void 0)continue;let l=e.paragraphStartY+s,d=En(a.projection),c=Eo({projection:a.projection,anchorX:e.contentLeft,anchorY:l,extentWidth:d.width,extentHeight:d.height}),u=jc({projection:a.projection,geometry:c,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:l});u&&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:e.columnIndex??0,y:l,verticalBand:Gc(u),input:u}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}var V0=8;function $0(e,t,n,r){return e<r&&t>n}function xn(e,t,n){if(t<=0||n.length===0)return 0;let r=0;for(let o=0;o<V0;o+=1){let a=e+r,i=a+t,s=a,l=false;for(let c of n){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;$0(a,i,u,f)&&(l=true,s=Math.max(s,f));}if(!l)break;let d=s-e;if(d<=r+.001)break;r=d;}return r}function X0(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function Y0(e){let t=e.contentBounds,n=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,t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),n.top.toFixed(3),n.right.toFixed(3),n.bottom.toFixed(3),n.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function bn(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=Ao(r,[t],t.input.contentLeft,t.input.contentRight);return [t.drawingNodeId,String(t.sourceOrder),String(t.columnIndex),t.y.toFixed(3),n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),Y0(t.input),X0(o)].join("|")}).join(`
8
+ `)}function Xc(e,t,n,r,o,a){let i=[];for(let s of e){let l=t.projectionForAtom?.(s.drawingNodeId);if(!l)continue;let d=s.sourceOrder??o?.(s.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?D0(s,a):0,u=z0({drawing:s,projection:l,sourceOrder:d,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((s,l)=>s.sourceOrder-l.sourceOrder),Object.freeze(i)}function Ms(e,t,n,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:n}),i=new Map;for(let s of e){let l=s.anchoredDrawings??[],d=Xc(l,t,0,n,r,a);d.length>0&&i.set(s.index,d);}return i}var Hg=new WeakMap;function K0(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function Yc(e,t,n,r,o,a){let i=K0(a),s=Hg.get(e);if(s&&s.drawingLayout===t&&s.drawingLayoutEpoch===n&&s.contentWidth===r&&s.drawingSourceOrder===o&&s.columnToken===i)return s.zones;let l=Ms(e,t,r,o?d=>o.get(d):void 0,a);return Hg.set(e,{drawingLayout:t,drawingLayoutEpoch:n,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:l}),l}function Ls(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||bn(r)!==bn(o))return false}return true}function Fs(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${bn(n)}`).join(`
9
+ `)}function Kc(e,t,n,r=0){return (n.length>0?xn(e,t.height,n):t.exclusionSkipBefore??0)+Math.max(0,t.height-t.trailingSpacing)+r}function Kg(e){return Object.freeze({spans:e.spans.map(t=>Object.freeze({...t,box:Object.freeze({...t.box})})),drawings:e.drawings.map(t=>Object.freeze({...t,paintBounds:Object.freeze({...t.paintBounds}),hitBounds:Object.freeze({...t.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}:{},...e.anchorRevisions?{anchorRevisions:Object.freeze(e.anchorRevisions)}:{}})}var U0=.001;function vt(e){return Ro(e)}var Ns=new Set(["-","\u2010","\u2013","\u2014"]);function Ug(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];r===" "?(n>0&&t[t.length-1]!==n&&t.push(n),t.push(n+1)):(r===" "||Ns.has(r)&&n>0&&e[n-1]!==" "&&n+1<e.length&&e[n+1]!==" "&&!Ns.has(e[n+1]))&&t.push(n+1);}return t[t.length-1]!==e.length&&t.push(e.length),t}function q0(e,t,n){for(let r=t;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===t?n:0;for(let i=a;i<o.text.length;i+=1){let s=o.text[i];if(s===`
10
+ `||s===chunkILTZTY3K_cjs.Cc)return false;if(s!==" "&&s!==" ")return true}}return false}function Z0(e,t,n,r){let o=0,a=0,i=false;for(let s=t;s<e.length;s+=1){let l=e[s],d=s===t?n:0;for(let c=d;c<l.text.length;){let u=l.text[c];if(u===" "||u===`
11
+ `||u===chunkILTZTY3K_cjs.Cc)return {width:o,decimalOffset:i?a:o};let f=c+1,p=l.text.slice(c,f),m=r.measure(er(p,l.style),l.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=f;}}return {width:o,decimalOffset:i?a:o}}function J0(e,t,n,r){let o=e.relativeTo==="indent"||!r?{left:t,right:n}: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}:{}}}var Es=31680;function Ya(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>Es?chunkILTZTY3K_cjs.jd(Es):t<-Es?chunkILTZTY3K_cjs.jd(-Es):chunkILTZTY3K_cjs.jd(t):null}function Ka(e){let t=0,n=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=Ya(o),s=Ya(a);i!==null&&(t=chunkILTZTY3K_cjs.ld(i)),s!==null&&(n=chunkILTZTY3K_cjs.ld(s));}return {left:t,right:n}}function qg(e){let t="left";for(let n of e)if(n.localName==="jc")switch(n.attributes?.val){case "center":t="center";break;case "right":case "end":t="right";break;case "both":case "distribute":t="both";break;default:t="left";}return t}function Q0(e){return e.endsWith(" ")}function eI(e,t){let n=e.range.end-e.range.start;if(n<=0||e.text===" "||e.projected||e.text.length!==n)return Object.freeze([0,e.box.width]);let r=[0];for(let o=1;o<=e.text.length;o+=1)r.push(Dt(e.text.slice(0,o),e.style,t));return Object.freeze(r)}function Do(e,t){return e.map(n=>n.caretEdges?n:{...n,caretEdges:eI(n,t)})}function As(e,t,n,r,o,a,i){if(e.length===0)return e;if(o==="left")return Do(e,t);let s=e[e.length-1],l=s.text.replace(/\s+$/,""),d=l===s.text?0:s.box.width-Dt(l,s.style,t),c=i??s.box.x-n+s.box.width-d,u=r-c;if(u<=0)return Do(e,t);if(o==="both"){if(a)return Do(e,t);let p=[];for(let h=1;h<e.length;h+=1)Q0(e[h-1].text)&&p.push(h);if(p.length===0)return Do(e,t);let m=u/p.length,g=new Set(p),x=0;return Do(e.map((h,b)=>(g.has(b)&&(x+=m),x===0?h:{...h,box:{...h.box,x:h.box.x+x}})),t)}let f=o==="center"?u/2:u;return Do(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),t)}function Ds(e,t){return t===0||e.length===0?e:e.map(n=>ks(n,t,0))}function _s(e,t,n,r,o,a,i,s=[],l=ho,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??mo,m=u?.firstLineOffset??0,g=[],x=ws(e,s,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??We,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false),h=Math.max(0,u?.startOffset??0),b=x.flatMap(H=>{if(H.end<=h)return [];if(H.start>=h)return [H];let I=h-H.start;return [{...H,text:H.projected?H.text:H.text.slice(I),start:h}]}),P=ug(o,u?.equationCacheToken),k=H=>H.equation?P(H.equation,H.style):null;if(b.length===0&&u?.suppressEmptyPlaceholderLine)return [];let v=H=>({...H.revisions===void 0?{}:{revisions:H.revisions},...H.fieldAtom===void 0?{}:{fieldAtom:H.fieldAtom}}),L=u?.markRunProperties??s,w=L.length===0?mn:Ae(L,u?.themeFonts),S=n+r,C=u?.contentLeft??n,T=u?.contentRight??S,N=u?.contentOriginX??0,M=[],y={spans:[],start:h,end:h,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},G=false,D=new Map,F=u?.displayMode??We,E=(()=>{let H=new Set;if(!u?.inlineDrawingLayout)return H;let I=Kt(e);for(let V of Mt(e,u.inlineDrawingLayout)){if(!Oe(V.revisions,F)||V.projection.wrap!=="topAndBottom")continue;let ne=I.get(V.atomId);ne!==void 0&&H.add(ne);}return H})(),B=(()=>{let H=new Set;if(!u?.inlineDrawingLayout)return H;let I=Kt(e);for(let V of Mt(e,u.inlineDrawingLayout)){if(!Oe(V.revisions,F)||V.projection.anchor?.behindDocument||V.projection.wrap==="topAndBottom"||V.projection.wrap==="inline"||V.projection.wrap==="behind"||V.projection.wrap==="inFront")continue;let ne=I.get(V.atomId);ne!==void 0&&H.add(ne);}return H})(),R=[...(u?.pageExclusionZones??[]).filter(H=>H.anchorParagraphId===t).map(H=>H.anchorModelStart),...E,...B],W=(()=>{let H=new Map;if(R.length===0)return H;let I=0,V=0,ne=0,re=()=>ne===0?m:0,Z=()=>Math.max(1,r-re()),ue=ce=>{I=ce,V=0,ne+=1;};for(let ce of b){let ae=k(ce);if(ae){let Pe=ae.geometry.box.width;V>0&&V+Pe>Z()&&ue(ce.start),R.includes(ce.start)&&H.set(ce.start,I),V+=Pe;continue}if(ce.inlineDrawing){let Pe=En(ce.inlineDrawing.projection).totalWidth;V>0&&V+Pe>Z()&&ue(ce.start),R.includes(ce.start)&&H.set(ce.start,I),V+=Pe;continue}if(ce.text===`
12
+ `||ce.text===chunkILTZTY3K_cjs.Cc){ue(ce.end);continue}let $e=0;for(let Pe of Ug(ce.text)){let He=ce.text.slice($e,Pe);if(He.length===0)continue;let le=ce.style,de=o.measure(He,le),Le=ce.start+$e;V>0&&V+de>Z()&&ue(Le),R.includes(Le)&&H.set(Le,I),R.includes(ce.start)&&H.set(ce.start,I),V+=de,$e=Pe;}}for(let ce of R)H.has(ce)||H.set(ce,I);return H})();for(let H of B){let I=W.get(H);I!==void 0&&D.set(H,I);}let A=H=>{if(H.anchorParagraphId!==t)return true;let I=W.get(H.anchorModelStart);return I!==void 0&&y.start>=I||y.end>=H.anchorModelStart},z=()=>{let H=u?.pageExclusionZones?.filter(ne=>!(!A(ne)||ne.anchorParagraphId===t&&(ne.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],I=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&D.size>0?Yg({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:C,contentRight:T,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:D,anchorCellBox:u.anchorCellBox,displayMode:F}):Object.freeze([]),V=u?.inlineDrawingLayout&&D.size>0?Bs({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:C,contentRight:T,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:D,displayMode:F}):Object.freeze([]);return Object.freeze([...H,...I,...V])},q=()=>M.length===0?m:0,_=()=>N+n+q(),X=()=>Math.max(1,r-q()),U=()=>M.reduce((H,I)=>H+I.height+(I.exclusionSkipBefore??0),0),j=()=>(u?.paragraphStartY??0)+U(),K=H=>{E.has(H)&&D.set(H,U());},pe=()=>{if(G)return;let H=z();if(H.length===0||y.spans.length>0||y.drawings.length>0)return;let I=o.lineMetrics(w),V=xn(j(),y.height>0?y.height:I.height,H);V>.001&&(G=true,y.exclusionSkipBefore=V);},Fe=()=>j()+(y.exclusionSkipBefore??0)+.001,Ie=()=>{let H=z();if(H.length===0)return true;pe();let I=Ao(Fe(),H,C,T),V=_()+y.width,ne=Vc(V,I);return ne?(ne.x>V+.001&&(y.width=ne.x-_()),true):false},me=()=>{let H=X(),I=z();if(I.length===0)return H;if(pe(),!Ie())return 0;let V=Ao(Fe(),I,C,T),ne=_()+y.width,re=Vg(ne,V);return re<=.001?0:Math.min(H,y.width+re)},ge=()=>Math.max(0,me()-y.width),Be=()=>{let H=z();if(H.length===0||!H.some(Z=>Z.anchorParagraphId!==t||y.end>Z.anchorModelStart))return false;let V=Ao(Fe(),H,C,T),ne=_()+y.width,re=false;for(let Z of V){if(!re){ne>=Z.start-1e-6&&ne<Z.end-1e-6&&(re=true);continue}if(Z.end-Z.start>.001)return y.width=Z.start-_(),true}return false},we=H=>{if(R.length===0||H<Math.min(...R))return;let I=z().filter(ue=>ue.anchorParagraphId===t&&H>=ue.anchorModelStart);if(I.length===0)return;pe();let V=Ao(Fe(),I,C,T),ne=_()+y.width,re=-1;for(let ue=0;ue<V.length;ue+=1){let ce=V[ue];if(ne>=ce.start-.001&&ne<ce.end-.001){re=ue;break}}if(re>=0)return;let Z=Vc(ne,V);Z&&Z.x>ne+.001&&(y.width=Z.x-_());},Se=H=>{z().filter(V=>V.input.mode==="topAndBottom"&&V.anchorParagraphId===t&&H>=V.anchorModelStart).length!==0&&((y.spans.length>0||y.drawings.length>0)&&ve(),pe());},ye=(H,I=0)=>I>64?ge()>=H:(pe(),Ie()?H<=ge()+.001?true:y.spans.length>0||y.drawings.length>0?Be()&&H<=ge()+.001?true:(ve(),ye(H,I+1)):Be()?ye(H,I+1):true:y.spans.length>0||y.drawings.length>0?(ve(),ye(H,I+1)):true),De=(H,I)=>g.filter(V=>V.start<I&&V.end>H).map(V=>({start:Math.max(V.start,H),end:Math.min(V.end,I)})),se=-1,_e=0,Ze=0,be="",st=(H,I)=>{let V=o.lineMetrics(H),ne=Fg(V.baseline,y.height||V.height,I);return y.height===0?(y.height=ne.lineHeight,y.baseline=ne.baseline):(ne.lineHeight>y.height&&(y.height=ne.lineHeight),y.baseline=Math.max(y.baseline,ne.baseline)),{extentTopY:ne.extentTopY}},Ft=()=>{if(y.drawings.length===0)return;y.spans.length===0&&(y.baseline=Math.max(y.baseline,...y.drawings.map(I=>I.y+I.height)));let H=Ec(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...H),y.baseline=Math.max(y.baseline,...y.drawings.map(I=>I.y+I.height));},lt=()=>{if(y.drawings.length===0)return;let H=Ec(y.drawings,y.baseline);y.drawings.splice(0,y.drawings.length,...H);},wn=H=>{let I=0;for(let V of y.spans)I=Math.max(I,o.lineMetrics(V.style).height);return I>0?I:H},Pn=()=>{if(y.drawings.length===0)return;let H=Math.max(0,...y.drawings.map(I=>I.y+I.height+I.distB));y.height=Math.max(y.height,H);},dt=()=>{Ft(),Pn();},Qt=()=>{if(!(y.spans.length<2))for(let H=1;H<y.spans.length;H+=1){let I=y.spans[H-1],V=y.spans[H],ne=V.box.x-(I.box.x+I.box.width);ne<=.001||y.drawings.some(Z=>Z.start>=I.range.end&&Z.start<V.range.start)||(y.spans[H]={...V,wrapAdvanceBefore:ne});}},ve=H=>{let I=o.lineMetrics(w),V=y.baseline;y.height===0?(y.height=I.height,y.baseline=I.baseline,V=I.baseline):H?.includeParagraphMark&&(y.height=Math.max(y.height,I.height)),dt();let ne=y.height,re=p.rule==="auto"&&y.drawings.length>0,Z=re?wn(I.height):ne,ue=Qd(p,Z,y.baseline);re||(y.baseline=ue.baseline),y.leading=Math.max(0,y.baseline-V),y.height=ue.height,lt(),p.rule!=="exact"&&Pn(),y.trailingSpacing=y.drawings.length===0&&p.rule!=="exact"?Math.max(0,ue.height-ne):0,(()=>{let $e=z();if($e.length===0)return;let Pe=xn(j(),y.height,$e);Pe>.001?y.exclusionSkipBefore=Pe:delete y.exclusionSkipBefore;})(),Qt();let ae=De(y.start,y.end);ae.length>0&&(y.deletedRanges=ae),M.push(y),se=-1,_e=0,G=false,y={spans:[],drawings:[],start:y.end,end:y.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},pe();},tt=false;for(let H=0;H<b.length;H+=1){let I=b[H];if(I.breakKind==="column"){let re=o.lineMetrics(I.style);y.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:I.text,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:0,height:re.height},...I.link?{link:I.link}:{},...v(I)}),y.height=Math.max(y.height,re.height),y.baseline=Math.max(y.baseline,re.baseline),y.end=I.end,ve(),M[M.length-1].columnBreakAfter=true,tt=true;continue}if(I.equation){let re=k(I),Z=re.geometry.box.width;if((y.spans.length>0||y.drawings.length>0)&&y.width+Z>me()&&ve(),!ye(Z))continue;let ce=Math.max(0,y.height-y.baseline),ae=Math.max(0,re.geometry.box.height-re.geometry.baseline);y.baseline=Math.max(y.baseline,re.geometry.baseline),y.height=y.baseline+Math.max(ce,ae),y.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:"\uFFFC",props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:Z,height:re.geometry.box.height},projected:true,equation:re,...v(I)}),y.width+=Z,y.end=I.end,se=-1,be="";continue}if(I.projected&&!I.inlineDrawing&&I.text==="\uFFFC"){K(I.start),I.anchoredAtom&&I.revisions!==void 0&&Oe(I.revisions,F)&&(y.anchorRevisions=[...y.anchorRevisions??[],...I.revisions]),y.end=I.end;continue}if(I.inlineDrawing){K(I.start);let re=En(I.inlineDrawing.projection),Z=re.totalWidth;if((y.spans.length>0||y.drawings.length>0)&&y.width+Z>me()&&ve(),!ye(Z))continue;let{extentTopY:ce}=st(I.style,re),ae=_()+y.width;y.drawings.push(_g({input:I.inlineDrawing,paragraphId:t,start:I.start,slotX:ae,y:ce,baseline:y.baseline,contentLeft:C,contentRight:T,...I.revisions?{revisions:I.revisions}:{}})),y.width+=Z,y.end=I.end,se=-1,be="";continue}if(I.text===chunkILTZTY3K_cjs.Cc){let re=o.lineMetrics(I.style);y.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:chunkILTZTY3K_cjs.Cc,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:0,height:re.height},...I.link?{link:I.link}:{},...v(I)}),y.height=Math.max(y.height,re.height),y.baseline=Math.max(y.baseline,re.baseline),y.end=I.end,ve(),M[M.length-1].pageBreakAfter=true,tt=false;continue}if(I.text===`
13
+ `){let re=o.lineMetrics(I.style);y.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:`
14
+ `,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:0,height:re.height},...I.link?{link:I.link}:{},...v(I)}),y.height=Math.max(y.height,re.height),y.baseline=Math.max(y.baseline,re.baseline),y.end=I.end,ve(),tt=true;continue}tt=false,Se(I.start),R.length>0&&I.start>=Math.min(...R)&&we(I.start);let V=o.lineMetrics(I.style),ne=0;for(let re of Ug(I.text)){let Z=I.text.slice(ne,re);if(Z.length===0)continue;let ue=!!I.projected||!!I.positionalTab||I.end-I.start!==I.text.length,ce=ue?{paragraphId:t,start:I.start,end:I.end}:{paragraphId:t,start:I.start+ne,end:I.start+re};if(Z===" "){(y.spans.length>0||y.drawings.length>0)&&y.width>=me()&&q0(b,H,re)&&ve();let Le=_()+y.width,Ke=Z0(b,H,re,o),ze=I.positionalTab?J0(I.positionalTab,n,S,u?.marginExtent):null,ut=ze===null?yo(l,Le,S):ze.positionPt>Le?ze:{...yo(l,Le,S),...ze.leader?{leader:ze.leader}:{}},en=dc(ut.alignment,Le,ut.positionPt,Ke.width,Ke.decimalOffset);y.spans.push({range:ce,text:" ",props:I.props,style:I.style,box:{x:Le,y:0,width:en,height:V.height},...ut.leader?{tabLeader:ut.leader,tabLeaderAdvancePt:o.measure(ac.get(ut.leader)??".",I.style)}:{},...I.link?{link:I.link}:{},...ut.leader?{tabLeader:ut.leader}:{},...ue&&!I.positionalTab?{projected:true}:{},...I.noteNav?{noteNav:I.noteNav}:{},...v(I)}),y.width+=en,y.height=Math.max(y.height,V.height),y.baseline=Math.max(y.baseline,V.baseline),y.end=ue?I.end:I.start+re,be=" ",ne=re;continue}let ae=I.measureText??Z,$e=o.measure(er(ae,I.style),I.style),Pe=ne>0||be===""||/[\s\u00a0]$/.test(be)||/^[\s\u00a0]/.test(Z)||Ns.has(be[be.length-1])&&!Ns.has(Z[0]);if(Pe&&(se=y.spans.length,_e=y.width,Ze=y.end),we(I.start+ne),y.width+$e>me()+U0&&(y.spans.length>0||y.drawings.length>0))if(Pe||se<=0){if(!(Be()&&y.width+$e<=me()+.001)){if(ve(),!ye($e))continue}}else {let Le=y.spans.splice(se);y.width=_e,y.end=Ze,y.height=0,y.baseline=0;for(let Ke of y.spans){let ze=o.lineMetrics(Ke.style);y.height=Math.max(y.height,ze.height),y.baseline=Math.max(y.baseline,ze.baseline);}ve();for(let Ke of Le){let ze=o.lineMetrics(Ke.style);y.spans.push({...Ke,box:{...Ke.box,x:_()+y.width}}),y.width+=Ke.box.width,y.height=Math.max(y.height,ze.height),y.baseline=Math.max(y.baseline,ze.baseline),y.end=Ke.range.end;}se=0,_e=0;}else if(y.spans.length===0&&y.drawings.length===0&&$e>me()+.001&&!ye($e))continue;let He=Z,le=I.start+ne,de=$e;if(!ue&&I.measureText===void 0)for(;y.spans.length===0&&He.length>1&&de>me();){let Le=1,Ke=He.length-1,ze=1;for(;Le<=Ke;){let Et=Le+Ke>>1;o.measure(er(He.slice(0,Et),I.style),I.style)<=me()?(ze=Et,Le=Et+1):Ke=Et-1;}let ut=He.slice(0,ze),en=o.measure(er(ut,I.style),I.style);y.spans.push({range:{paragraphId:t,start:le,end:le+ze},text:ut,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:en,height:V.height},...I.link?{link:I.link}:{},...I.noteNav?{noteNav:I.noteNav}:{},...v(I)}),y.width+=en,y.height=Math.max(y.height,V.height),y.baseline=Math.max(y.baseline,V.baseline),y.end=le+ze,ve(),He=He.slice(ze),le+=ze,de=o.measure(er(He,I.style),I.style);}y.spans.push({range:ue?ce:{paragraphId:t,start:le,end:I.start+re},text:He,props:I.props,style:I.style,box:{x:_()+y.width,y:0,width:de,height:V.height},...I.link?{link:I.link}:{},...ue&&!I.positionalTab?{projected:true}:{},...I.noteNav?{noteNav:I.noteNav}:{},...v(I)}),y.width+=de,y.height=Math.max(y.height,V.height),y.baseline=Math.max(y.baseline,V.baseline),y.end=ue?I.end:I.start+re,be=Z,ne=re;}}return (y.spans.length>0||y.drawings.length>0||M.length===0||tt)&&ve({includeParagraphMark:true}),i!==null&&a&&a.set(i,M.map(Kg)),M}var js=32,eh=4096,tI=128,nI=/[\u0000-\u001F\u007F-\u009F]/,rI={major:null,minor:null};function Cr(e){return e.kind!=="textValue"}function _o(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Ho(e,t){for(let n of e.children)if(Cr(n)&&n.localName===t)return n}function Tr(e){return !(e===void 0||e.length===0||e.length>tI||nI.test(e)||chunkILTZTY3K_cjs.I(e))}function oI(e){return e==="1"||e==="true"||e==="on"}function Hs(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function Ua(e){if(e){for(let t of e.children)if(Cr(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function Gs(e){if(e){for(let t of e.children)if(Cr(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var Zg=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function zo(e){return e.some(t=>Zg.has(t.localName))?e.filter(t=>!Zg.has(t.localName)):e}function aI(e){let t=Ho(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=Ho(t,"rPrDefault"),r=Ho(t,"pPrDefault"),o=Ua(n),a=Gs(r);return {run:zo(vt(o)),paragraph:zo(vt(a)),paragraphNode:a}}function iI(e){let t=_o(e,"styleId");if(!Tr(t))return null;let n=_o(e,"type")??"",r=(()=>{let u=Ho(e,"basedOn");return u?_o(u,"val"):void 0})(),o=Tr(r)?r:null,a=(()=>{let u=Ho(e,"next");return u?_o(u,"val"):void 0})(),i=Tr(a)?a:null,s=Gs(e),l=Ua(e),d=new Map,c=0;for(let u of e.children){if(u.kind==="textValue"||u.localName!=="tblStylePr")continue;if(c>=sI)break;c+=1;let f=_o(u,"type");f&&!d.has(f)&&d.set(f,u);}return {styleId:t,type:n,basedOn:o,next:i,isDefault:oI(_o(e,"default")),paragraphProperties:zo(vt(s)),runProperties:zo(vt(l)),paragraphPropertiesNode:s,tablePropertiesNode:Ho(e,"tblPr"),conditionalTableFormats:d}}var sI=32,zs=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function th(e,t){let n=t&&Tr(t)?t:null,r=n?Qg(e,n):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===n?zs:Qg(e,o)??zs}var Jg=new WeakMap;function Qg(e,t){let n=Jg.get(e);n||(n=new Map,Jg.set(e,n));let r=n.get(t);if(r)return r;let o=lI(e,t);return o?(n.set(t,o),o):null}function lI(e,t){let n=Zc(e,t,"table");if(n.length===0)return null;let r=[],o=[],a=[],i=[],s=new Map;for(let l of n){l.tablePropertiesNode&&r.push(l.tablePropertiesNode),l.paragraphPropertiesNode&&o.push(l.paragraphPropertiesNode),a.push(...l.paragraphProperties),i.push(...l.runProperties);for(let[d,c]of l.conditionalTableFormats)s.set(d,c);}return Object.freeze({tablePropertyNodes:Object.freeze(r),paragraphPropertyNodes:Object.freeze(o),paragraphProperties:Object.freeze(a),runProperties:Object.freeze(i),conditional:dI(s)})}function dI(e){let t=Object.freeze({get:n=>e.get(n),has:n=>e.has(n),forEach:(n,r)=>{for(let[o,a]of e)n.call(r,a,o,t);},keys:()=>e.keys(),values:()=>e.values(),entries:()=>e.entries(),[Symbol.iterator]:()=>e[Symbol.iterator](),[Symbol.toStringTag]:"Map",get size(){return e.size}});return t}function nh(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var Uc=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function rh(e,t){let n=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of t){let i=e.conditional.get(a);if(!i)continue;let s=Gs(i);s&&(n.push(s),r.push(...zo(vt(s))));let l=Ua(i);l&&o.push(...zo(vt(l)));}return n.length===0&&r.length===0&&o.length===0?Uc:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function cI(e,t=rI){let n=new Map;if(!e)return {cacheToken:chunk5V6FNKBE_cjs.y({empty:true,theme:t}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:t,styles:n};let r=aI(e),o=null,a=null,i=null,s=0;for(let d of e.children){if(!Cr(d)||d.localName!=="style")continue;if(s>=eh)break;s+=1;let c=iI(d);if(!c)continue;let{isDefault:u,...f}=c;n.set(f.styleId,f),f.type==="paragraph"?u?o=f.styleId:o===f.styleId&&(o=null):f.type==="character"?u?a=f.styleId:a===f.styleId&&(a=null):f.type==="table"&&(u?i=f.styleId:i===f.styleId&&(i=null));}return {cacheToken:chunk5V6FNKBE_cjs.y({dR:Hs(r.run),dP:Hs(r.paragraph),defP:o,defC:a,defT:i,theme:t,styles:[...n.values()].map(d=>({id:d.styleId,type:d.type,basedOn:d.basedOn,p:Hs(d.paragraphProperties),r:Hs(d.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,defaultTableStyleId:i,themeFonts:t,styles:n}}function qc(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Tr(o)?o:null;}return n}function Zc(e,t,n){let r=e.styles.get(t);if(!r||r.type!==n)return [];let o=[],a=new Set,i=t,s=0;for(;i!==null&&s<js&&!(a.has(i)||!Tr(i));){a.add(i);let l=e.styles.get(i);if(!l)break;o.push(l),i=l.basedOn,s+=1;}return o.reverse()}function jo(e,t,n){let r=vt(t),o=qc(r,"pStyle")??e.defaultParagraphStyleId,a=o?Zc(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],s=[...i,...r],l=[];e.docDefaultsParagraphNode&&l.push(e.docDefaultsParagraphNode),n&&l.push(...n.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&l.push(p.paragraphPropertiesNode);t&&l.push(t);let d=Ua(t&&Cr(t)?t:void 0),c=vt(d),u=fs([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:n?.runProperties??[],role:"xor",emit:true},{properties:a.flatMap(p=>p.runProperties),role:"xor",emit:true}]),f=c.length===0?u:fs([{properties:u,role:"carried",emit:true},{properties:c,role:"direct",emit:true}]);return {paragraphProperties:s,inheritedParagraphProperties:i,paragraphPropertyNodes:l,runProperties:u,markRunProperties:f,styleId:o??null}}function oh(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(Cr(o)&&o.localName==="pBdr"){r=true;break}r&&(t=kn(n).bottom);}return t}function Nn(e,t,n){let r=[];if(n){let i=qc(t,"rStyle")??n.defaultCharacterStyleId;i&&(r=Zc(n,i,"character").flatMap(s=>s.runProperties));}if(e.length===0&&r.length===0)return t;if(r.length===0&&t.length===0)return e;let o=r.length===0?e:fs([...e.length>0?[{properties:n?.docDefaultsRun??[],role:"defaults",emit:false}]:[],{properties:e,role:"carried",emit:true},{properties:r,role:"xor",emit:true}]);return t.length===0?o:[...o,...t]}function kr(e,t,n,r,o,a=false){let i=Gs(e),s=n?jo(n,i,o):null,l=s?[...s.paragraphProperties]:vt(i),d=vt(Ua(i&&Cr(i)?i:void 0)),c=s?s.runProperties:[],u=s?s.markRunProperties:d,f=Ka(l),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let h of l){if(h.localName!=="ind")continue;let b=Ya(h.attributes?.hanging),P=Ya(h.attributes?.firstLine);(h.attributes?.hanging!==void 0||h.attributes?.firstLine!==void 0)&&(p=b!==null?Math.max(0,chunkILTZTY3K_cjs.ld(b)):0,m=P!==null?chunkILTZTY3K_cjs.ld(P):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},x=s?sc(s.paragraphPropertyNodes):lc(i);return {props:l,indent:g,available:Math.max(1,t-g.left-g.right),alignment:qg(l),spacing:Zd(l,{inList:r!==void 0,inTableCell:a}),lineSpacing:Jd(l),contextualSpacing:ec(l),styleId:s?s.styleId:qc(l,"pStyle")??null,bottomBorder:s?oh(s.paragraphPropertyNodes):kn(i).bottom,borders:s?ka(s.paragraphPropertyNodes):kn(i),shading:oc(l),inheritedRunProperties:c,markRunProperties:u,tabStops:x,tabStopsCacheToken:xr(x),...r?{listItem:r}:{}}}var ah=new WeakMap;function uI(e){let t=ah.get(e);if(t!==void 0)return t;let n=o=>o.some(a=>a.localName==="pBdr"),r=n(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(n(o.paragraphProperties)){r=true;break}}return ah.set(e,r),r}function ih(e,t){return !t||!uI(t)?kn(e):ka(jo(t,e).paragraphPropertyNodes)}var fI=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Jc(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function sh(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=Jc(o.attributes);break;case "keepLines":n=Jc(o.attributes);break;case "widowControl":r=Jc(o.attributes);break;}return !t&&!n&&r?fI:{keepNext:t,keepLines:n,widowControl:r}}function lh(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<2)return e;let a=e;return n-a<2&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function dh(e,t,n,r){let o=0,a=n;for(let i=t;i-t<8;i+=1){let s=e[i];if(!s||s.kind!=="paragraph"||!s.spacing||!s.keeps)return null;o+=Math.max(s.spacing.before,a)-a;let l=r(i);if(!s.keeps.keepNext||i+1>=e.length)return o+=l[0]??0,s.keeps.widowControl&&l.length>1&&(o+=l[1]),o;for(let d of l)o+=d;o+=s.spacing.after,a=s.spacing.after;}return null}function pI(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==void 0&&(n===e&&(n=[...e]),n[r]=`${n[r]}~mk~${o}`);}return n}function mI(e,t,n){let r=e;for(let o=0;o<e.length;o+=1){if(!t(o))continue;let a=n(o);if(a===null)continue;let i=o>0&&n(o-1)===a,s=o+1<e.length&&n(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${s?1:0}`;}return r}function gI(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);if(o==="")continue;let a=r>0&&t(r-1)===o,i=r+1<e.length&&t(r+1)===o;n===e&&(n=[...e]),n[r]=`${n[r]}~bg~${a?1:0}${i?1:0}`;}return n}function hI(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==""&&(n===e&&(n=[...e]),n[r]=`${n[r]}~toc~${o}`);}return n}function yI(e,t){let n=e,r=0;for(let o=e.length-2;o>=0;o-=1)t(o)&&r<8?(n===e&&(n=[...e]),n[o]=`${e[o]}~kn~${n[o+1]}`,r+=1):r=0;return n}function ch(e,t){let n=mI(e,t.contextualSpacingAt,t.styleIdAt);return n=gI(n,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(n=hI(n,r=>t.tocVerdicts[r])),n=pI(n,t.markerTextAt),n=yI(n,t.keepsNextAt),n}var uh=new WeakMap;function qa(e){let t=tc(e.borders);return t===""?"":`${t}@${e.indent.left},${e.indent.right}`}function Qc(e,t,n){uh.set(e,{styleCascade:t.styleCascade,tableCellStyle:t.tableCellStyle,listItem:t.listItems?.get(e.id),key:n});}function bI(e,t){let n=t.listItems?.get(e.id),r=uh.get(e);if(r&&r.styleCascade===t.styleCascade&&r.tableCellStyle===t.tableCellStyle&&r.listItem===n)return r.key;let o=qa(kr(e,1,t.styleCascade,n,t.tableCellStyle,true));return Qc(e,t,o),o}function fh(e,t){return e&&e.kind==="paragraph"?bI(e,t):""}function Ws(e){let t=[],n=0;for(let r of e.members){let o=chunkILTZTY3K_cjs.Ie(r).length;t.push({paragraphId:r.id,base:n,length:o}),n+=o;}return {members:t,total:n}}function eu(e,t){let n;for(let r of e.members){if(r.base>t)break;(n===void 0||r.length>0||r.base>n.base)&&(n=r);}return n??e.members[e.members.length-1]}function ph(e,t){let n=eu(t,e.start);if(!n)return e;let r=e.end-n.base;return {paragraphId:n.paragraphId,start:e.start-n.base,end:Math.min(r,n.length)}}function xI(e,t){return {...e,range:ph(e.range,t)}}function Vs(e,t){return e.map(n=>{let r=n.spans.map(u=>xI(u,t)),o=r[0],a=n.drawings?.map(u=>{let f=eu(t,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):[],s=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],l=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...s.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...s.map(u=>u.start+1))}:ph(n.range,t),d=a,c=n.deletedRanges?.map(u=>({deleted:u,member:eu(t,u.start)})).filter(({member:u})=>u?.paragraphId===l.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...n,range:l,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}var SI=Co;function Ut(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkILTZTY3K_cjs.ca&&n.localName===t)return n}}function mh(e){if(e.kind==="textValue")return false;let t=Ut(e,"paragraphProperties")??Ut(e,"pPr");if(!t)return false;let n=Ut(t,"runProperties")??Ut(t,"rPr");return n===void 0?false:Ut(n,"del")!==void 0||Ut(n,"moveFrom")!==void 0}function gh(e,t){if(e.kind==="textValue"||t>SI)return true;let n=(r,o)=>{for(let a of r){if(a.kind==="textValue")continue;if(a.kind==="run"){for(let s of a.children){if(s.kind==="text"){for(let l of s.children)if(l.kind==="textValue"&&l.value.length>0)return false;continue}if(s.kind!=="runProperties")return false}continue}if(chunkILTZTY3K_cjs.nc(a)){if(o>=chunkILTZTY3K_cjs.mc)continue;let s=chunkILTZTY3K_cjs.pc(a);if(s&&!n(s,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!gh(a,o+1))return false}return true};return n(e.children,t)}function hh(e,t){if(t==="all-markup"||e.kind==="textValue")return false;let n=Ut(e,"paragraphProperties")??Ut(e,"pPr");if(!n)return false;let r=Ut(n,"runProperties")??Ut(n,"rPr");return r===void 0?false:(t==="proposed"?["del","moveFrom"]:["ins","moveTo"]).some(a=>Ut(r,a)!==void 0)}function tu(e,t="proposed"){return e.kind!=="paragraph"||t!=="proposed"||!mh(e)?false:gh(e,0)}function RI(e){let t=e.root;if(t.localName==="hdr"||t.localName==="ftr")return t;let n=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=n(o);if(a)return a}}};return n(t)}function wI(e,t){return !(e.kind==="paragraph"&&tu(e,t))}var Rh=new WeakMap;function $s(e){return Rh.get(e)??null}function wh(e,t){let n=t.children.filter(a=>yh(a)),r=e.flatMap(a=>a.children.filter(i=>!yh(i))),o={...t,children:[...n,...r]};return Rh.set(o,{merged:o,members:e}),o}function yh(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function PI(e,t){if(t==="all-markup")return e.map(i=>i.block);let n=[],r=[],o=null,a=()=>{n.push(...bh(r)),r=[],o=null;};for(let{block:i,parentKey:s}of e){if(r.length>0&&s!==o&&a(),i.kind!=="paragraph"){a(),n.push(i);continue}let l=hh(i,t);if((l||r.length>0)&&!TI(i,t)){a(),n.push(i);continue}if(l){r.push(i),o=s;continue}if(r.length===0){n.push(i);continue}let d=[...r,i];r=[],o=null,n.push(wh(d,i));}return n.push(...bh(r)),n}function bh(e){if(e.length<2)return e;let t=e[e.length-1];return [wh(e,t)]}function Za(e,t){return PI(vI(e),t).filter(r=>wI(r,t))}var II=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function Ph(e){for(let t of e.children){if(t.kind==="textValue"){if(t.value.length>0)return false;continue}if(t.namespaceUri!==chunkILTZTY3K_cjs.ca||!II.has(t.localName))return false}return true}function vI(e){let t=[],n=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){t.push({block:i,parentKey:a});continue}chunkILTZTY3K_cjs.nc(i)&&o<chunkILTZTY3K_cjs.mc&&n(chunkILTZTY3K_cjs.qc(i),o+1,i.id);}};return n(e,0,""),t}var xh=new WeakMap;function TI(e,t){let n=xh.get(e),r=n?.get(t);if(r!==void 0)return r;let o=CI(e,t);return n?n.set(t,o):xh.set(e,new Map([[t,o]])),o}function CI(e,t){if(!kI(e))return false;let n=ws(e,[],void 0,void 0,void 0,void 0,t),r=0;for(let o of n)r=Math.max(r,o.end);return r<=chunkILTZTY3K_cjs.Ie(e).length}function kI(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkILTZTY3K_cjs.ca&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?t+=1:a==="end"&&(t-=1,t<0&&(n=true));}for(let a of o.children)r(a);}};return r(e),t===0&&!n}var Sh=chunkILTZTY3K_cjs.Mf(16);function An(e,t="all-markup"){let n=Sh.get(e),r=n?.[t];if(r)return r;let o=RI(e),a=o?Za(o.children,t):[];return n?n[t]=a:Sh.set(e,{[t]:a}),a}function Xs(e,t="all-markup"){return e.kind!=="note"?[]:Za(e.children,t)}function nu(e,t="all-markup"){return e.kind==="textValue"?[]:Za(e.children,t)}function Ih(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function ru(e,t,n,r,o){let a=Ih(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let s=null,l=null,d=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){s=f.box,d=f.lines,l=u.box;break}if(s)break}if(!s)continue;let c=l??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(or({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:s,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(s)??s,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{}}));}}function vh(e,t){let n=Ih(e),r=e.deferAnchoredDrawings;return !n&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:n,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{t.push(i);}},flushDeferred:(i,s,l)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)ru(t,i,s,l,e);else if(r)for(let d of t)r(d);t.length=0;}}}}var OI={state:"none"},Th=(e,t)=>t.state==="omitted"?e:t;function Ys(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?OI:e}function ou(e,t){let n=Th;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right),insideH:n(e.insideH,t.insideH),insideV:n(e.insideV,t.insideV)}}function au(e,t){let n=Th;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right)}}function Ks(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function Ch(e,t,n,r){let o=Math.max(0,Math.min(t|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]=BI(e[i],o,n,r);}return a}function BI(e,t,n,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(t,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,s=o[0].x,l=[],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>s&&i&&(!r||r.intervalsRemaining>0)){let u=l[l.length-1];u&&u.end===s&&u.cellIndex===i.cellIndex&&u.cell===i.cell?l[l.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(l.push({start:s,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),s=c.x;}return l}function MI(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>1;e[o].start<=t?n=o+1:r=o;}return n}function iu(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=MI(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Mh=256,Je={state:"omitted"},el={state:"none"},Lh={top:Je,left:Je,bottom:Je,right:Je,insideH:Je,insideV:Je},Fh={top:Je,left:Je,bottom:Je,right:Je},kh={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},FI=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 Go(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function su(e,t){return e.attributes.find(n=>n.localName===t)?.value}function EI(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function NI(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>Ca?Ca:t}function tl(e){if(!e)return Je;let t=su(e,"val");if(!t)return Je;if(t==="nil"||t==="none")return el;let n=FI.get(t)??"single",r=su(e,"color"),o=r===void 0||r==="auto"?null:Ji(r)??null;return {state:"edge",style:n,color:o,widthPt:NI(EI(su(e,"sz")))}}function Eh(e,t){if(!e)return Fh;let n={top:Je,left:Je,bottom:Je,right:Je};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=Go(e,r)??(o?Go(e,o):void 0);n[r]=tl(a);}return n}function nl(e){let t=e&&Go(e,"tblBorders");return t?{...Eh(t,["top","left","bottom","right"]),insideH:tl(Go(t,"insideH")),insideV:tl(Go(t,"insideV"))}:Lh}function rl(e){return Eh(e&&Go(e,"tcBorders"),["top","left","bottom","right"])}function lu(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function Oh(e){if(!e)return 0;let t=Number.parseInt(e.slice(0,2),16),n=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return t+n+r}function Nh(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?Je:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?el:t;if(t.state==="none")return e;let r=lu(e),o=lu(t);if(r>o)return e;if(o>r)return t;let a=kh[e.style],i=kh[t.style];if(a!==i)return a>i?e:t;let s=Oh(e.color),l=Oh(t.color);return s<l?e:l<s?t:n?e:t}function Us(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function AI(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function DI(e,t){return e===void 0&&t===void 0?true:!e||!t?false:e.style===t.style&&e.color===t.color&&e.widthPt===t.widthPt}function qs(e){if(e.length===0)return [];let t=[],n={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];n.gridEnd===o.gridStart&&DI(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function Zs(e,t,n){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==t||o.gridEnd!==n))return o.edge}function Bh(e,t,n){let r=0,o=Math.min(n,e.length);for(let a=Math.max(0,t);a<o;a+=1)r+=e[a];return r}function _I(e){if(!(!e||e.style!=="double"))return fo(e.widthPt)}function Js(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function HI(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function zI(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function jI(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function GI(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function ar(e,t){e.length>=Mh||!(t.width>0)||!(t.height>0)||e.push(t);}function WI(e,t,n,r,o,a,i,s,l,d,c){let u=fo(n.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,x=Math.abs(r)<1e-6,h=Math.abs(o-a)<1e-6,b=Math.abs(r)<1e-6,P=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let L=t==="top"?g:i-g-f,w=t==="top"?g+f+p:i-g-m;for(let S of ["outer","inner"]){let C=r,T=o;x&&(C=HI(S,s)),h&&(T=zI(S,a,l)),ar(e,{side:t,role:S,color:n.color,cssStyle:"solid",x:C,y:S==="outer"?L:w,width:T-C,height:f});}return}let k=t==="left"?g:a-g-f,v=t==="left"?g+f+p:a-g-m;for(let L of ["outer","inner"]){let w=r,S=o;b&&(w=jI(L,d)),P&&(S=GI(L,i,c)),ar(e,{side:t,role:L,color:n.color,cssStyle:"solid",x:L==="outer"?k:v,y:w,width:f,height:S-w});}}function VI(e,t,n,r,o,a,i){let s=n.widthPt,l=Math.max(1,s),d=s*3+l*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-d;for(let f=0;f<3;f+=1)ar(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(s+l),width:o-r,height:s});return}let c=t==="left"?0:a-d;for(let u=0;u<3;u+=1)ar(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(s+l),y:r,width:s,height:o-r});}function $I(e,t,n,r,o,a,i){let s=n.widthPt;t==="top"?ar(e,{side:t,role:"edge",color:n.color,cssStyle:Js(n.style),x:r,y:0,width:o-r,height:s}):t==="bottom"?ar(e,{side:t,role:"edge",color:n.color,cssStyle:Js(n.style),x:r,y:i-s,width:o-r,height:s}):t==="left"?ar(e,{side:t,role:"edge",color:n.color,cssStyle:Js(n.style),x:0,y:r,width:s,height:o-r}):ar(e,{side:t,role:"edge",color:n.color,cssStyle:Js(n.style),x:a-s,y:r,width:s,height:o-r});}function Qs(e,t){if(e.length===0)return;let n=e[0];return _I(n.edge)}function XI(e,t,n,r,o,a,i,s,l,d){let c=(M,y,G)=>{let D=[];for(let F of y){if(!F.edge)continue;let E,B;G?(E=Bh(i,s,F.gridStart),B=Bh(i,s,F.gridEnd)):(E=l[F.gridStart-d]??0,B=l[F.gridEnd-d]??a),D.push({side:M,gridStart:F.gridStart,gridEnd:F.gridEnd,startPt:E,endPt:B,edge:F.edge});}return D},u=c("top",e,true),f=c("left",t,false),p=c("bottom",n,true),m=c("right",r,false),g=[...u,...m,...p,...f],x=Qs(t),h=Qs(r),b=Qs(e),P=Qs(n),k=(M,y)=>M.length===1&&Math.abs(M[0].startPt)<1e-6&&Math.abs(M[0].endPt-y)<1e-6,v=k(u,o),L=k(f,a),w=k(p,o),S=k(m,a),C=[],T=(M,y,G)=>{for(let D of y){let{edge:F,startPt:E,endPt:B}=D;F.style==="double"?WI(C,M,F,E,B,o,a,M==="top"||M==="bottom"?x:void 0,M==="top"||M==="bottom"?h:void 0,M==="left"||M==="right"?b:void 0,M==="left"||M==="right"?P:void 0):F.style==="triple"?VI(C,M,F,E,B,o,a):G||$I(C,M,F,E,B,o,a);}};T("top",u,v),T("left",f,L),T("bottom",p,w),T("right",m,S);let N={};return v&&u[0]&&(N.top=u[0].edge),L&&f[0]&&(N.left=f[0].edge),w&&p[0]&&(N.bottom=p[0].edge),S&&m[0]&&(N.right=m[0].edge),g.length>0&&(N.edgeSegments=g),C.length>0&&(N.strokes=C),N}function du(e,t,n,r,o,a){let i=e.length,s=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let l=Ch(e,n,o,a),d=(u,f,p)=>Ys(u.borders[f],AI(t,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?el:Nh(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){s[u][p]={};continue}let g=m.mergeRowSpan??1,x=u+g-1,h=u===0,b=x===i-1,P=m.gridColumn===0,k=m.gridColumn+m.gridSpan-1,v=k>=n-1,L=[];if(h)for(let E=m.gridColumn;E<=k;E+=1)L.push({gridStart:E,gridEnd:E+1,edge:Us(d(m,"top",false))});let w=[];if(P)for(let E=u;E<=x;E+=1)w.push({gridStart:E,gridEnd:E+1,edge:Us(d(m,"left",false))});let S=[];for(let E=m.gridColumn;E<=k;E+=1){let B;if(b)B=d(m,"bottom",false);else {let R=iu(l,x+1,E,o);R?.cell.vMergeContinue?B=Je:B=c(m.borders.bottom,R?R.cell.borders.top:Je,d(m,"bottom",true),R?d(R.cell,"top",true):t.insideH);}S.push({gridStart:E,gridEnd:E+1,edge:Us(B)});}let C=[];for(let E=u;E<=x;E+=1){let B;if(v)B=d(m,"right",false);else {let R=iu(l,E,k+1,o);B=c(m.borders.right,R?R.cell.borders.left:Je,d(m,"right",true),R?d(R.cell,"left",true):t.insideV);}C.push({gridStart:E,gridEnd:E+1,edge:Us(B)});}let T=qs(L),N=qs(w),M=qs(S),y=qs(C);if(!r){let E={},B=Zs(T,m.gridColumn,k+1),R=Zs(N,u,x+1),W=Zs(M,m.gridColumn,k+1),A=Zs(y,u,x+1);B&&(E.top=B),R&&(E.left=R),W&&(E.bottom=W),A&&(E.right=A);let z=[],q=(_,X)=>{for(let U of X)U.edge&&z.push({side:_,gridStart:U.gridStart,gridEnd:U.gridEnd,startPt:U.gridStart,endPt:U.gridEnd,edge:U.edge});};q("top",T),q("left",N),q("bottom",M),q("right",y),z.length>0&&(E.edgeSegments=z),s[u][p]=E;continue}let G=r.cellBoxes[u][p],D=[0],F=0;for(let E=u;E<=x;E+=1){let B=r.rowBands[E];F+=B.height,D.push(F);}D.length>1&&(D[D.length-1]=G.height),s[u][p]=XI(T,N,M,y,G.width,G.height,r.columnWidthsPt,m.gridColumn,D,u);}}return s}function ir(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var cu=Lh,uu=Fh;var Dh=31680/20,qt=Object.freeze({type:"auto",value:0}),YI=100,KI=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function UI(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function pu(e,t){return e.attributes.find(n=>n.localName===t)?.value}function _h(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let t=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(t){let r=Number(t[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let n=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(n){let r=Number(n[1])*KI[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function Or(e){if(!e)return qt;let t=pu(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:qt;let n=pu(e,"w");if(n===void 0)return qt;let r=_h(n);if(!r)return qt;let o=/^\d{1,9}$/.test(n);if(r.kind==="percent"||o&&t==="pct"){let a=r.kind==="percent"?r.percent:Number(n)/50;return !Number.isFinite(a)||a<=0?qt:{type:"pct",value:Math.min(a,YI)}}return !Number.isFinite(r.pt)||r.pt<=0?qt:{type:"dxa",value:Math.min(r.pt,Dh)}}function Ja(e,t){if(!e)return;let n=Or(e);if(n.type==="dxa")return Math.min(n.value,t)}function Hh(e){let t=UI(e,"tblGrid");if(!t)return [];let n=[];for(let r of t.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(n.push(r),n.length>=1024))break;return n}function qI(e){let t=[];for(let n of e){let r=pu(n,"w"),o=r===void 0?null:_h(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>Dh?void 0:o.pt);}return t}var fu=1,Ah=.001;function ZI(e,t,n,r){let o=[];for(let i=0;i<n;i+=1)o.push(e[i]);let a=t.filter(i=>i.start<n&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,s)=>i.span-s.span);for(let i of a){let s=Math.min(i.start+i.span,n);if(s<=i.start)continue;let l=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(l)||l<=0)continue;if(s-i.start===1){let f=o[i.start];o[i.start]=f===void 0?l:Math.max(f,l);continue}let d=[],c=l;for(let f=i.start;f<s;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 zh(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:fu,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=qI(e.gridCols),s=ZI(i,e.claims,t,a),l=0,d=0;for(let h of s)h===void 0?d+=1:l+=h;let c=[];if(d>0){let h=l>0?l/Math.max(t-d,1):o/t,b=Math.max(o-l,0)/d,P=Math.max(Math.min(b,h),fu);for(let k of s)c.push(k??P);}else for(let h of s)c.push(h);let u=c.reduce((h,b)=>h+b,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*fu,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=n.type==="pct"&&a>0;if(u<=m+Ah&&!g||Math.abs(u-m)<=Ah)return c;let x=m/u;return c.map(h=>h*x)}function Wo(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function JI(e,t){return e.attributes.find(n=>n.localName===t)?.value}var Gh=3,jh=108/20,Qa=31680/20,mu={top:0,right:jh,bottom:0,left:jh};function ol(e){if(!e)return;let t=JI(e,"w");if(t===void 0||!/^\d{1,9}$/.test(t))return;let n=Number(t);if(!Number.isFinite(n)||n<0)return;let r=n/20;return r>Qa?Qa:r}function al(e){if(!e)return {};let t=ol(Wo(e,"top")),n=ol(Wo(e,"left")??Wo(e,"start")),r=ol(Wo(e,"bottom")),o=ol(Wo(e,"right")??Wo(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function il(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}var sl=16,ny=31680/20,Wh=1023,QI=256,Vh=31680/20;function $h(e){let t=e&&Re(e,"jc");if(!t)return;let n=Ve(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}var Xh=31680/20;function Re(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Ve(e,t){return e.attributes.find(n=>n.localName===t)?.value}function ev(e){let t=e&&Re(e,"gridSpan"),n=t&&Ve(t,"val");if(!n||!/^\d{1,7}$/.test(n))return 1;let r=Number(n);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function Yh(e,t){let n=e&&Re(e,t),r=n&&Ve(n,"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 tv(e){let t=e&&Re(e,"vMerge");return t?Ve(t,"val")!=="restart":false}function nv(e){let t=e&&Re(e,"vAlign"),n=t&&Ve(t,"val");return n==="center"?"center":n==="bottom"?"bottom":"top"}function Kh(e){return rc(e&&Re(e,"shd"))}function Uh(e,t){let n=e&&Re(e,t);if(!n)return false;let r=Ve(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var ei=Object.freeze({rule:"auto"});function rv(e){let t=e&&Re(e,"trHeight");if(!t)return ei;let n=Ve(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return ei;let o=Ve(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return ei;let a=Number(o);if(!Number.isFinite(a)||a<=0)return ei;let i=Math.min(a/20,ny);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:ei}function ti(e,t){let n=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=t-n;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function qh(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Zh(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let t=Number(e);if(!Number.isFinite(t))return;let n=t/20;return Math.max(-Xh,Math.min(Xh,n))}function Jh(e){let t=e&&Re(e,"tblpPr");if(!t)return;let n=Ve(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=Ve(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:qh(Ve(t,"horzAnchor"))??"text",vertAnchor:qh(Ve(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Zh(Ve(t,"tblpX"))??0,...a?{ySpec:a}:{},yPt:Zh(Ve(t,"tblpY"))??0}}function ry(e,t,n){let r=n[e.horzAnchor],o=r.width-t,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=n.page.left+n.page.width;return Math.max(n.page.left,Math.min(a,i))}var ov=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function Dn(e,t){let n=Ve(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function av(e){let t=e&&Re(e,"tblLook");if(!t)return ov;let n=Ve(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:Dn(t,"firstRow")??(r&32)!==0,lastRow:Dn(t,"lastRow")??(r&64)!==0,firstColumn:Dn(t,"firstColumn")??(r&128)!==0,lastColumn:Dn(t,"lastColumn")??(r&256)!==0,rowBanding:Dn(t,"noHBand")===void 0?(r&512)===0:!Dn(t,"noHBand"),columnBanding:Dn(t,"noVBand")===void 0?(r&1024)===0:!Dn(t,"noVBand")}}var gu=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],Qh=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function ey(e,t){let n=e&&Re(e,"cnfStyle");if(!n)return;let r=Ve(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<gu.length;o+=1)r[o]==="1"&&t.add(gu[o]);for(let o=0;o<Qh.length;o+=1)Dn(n,Qh[o])===true&&t.add(gu[o]);}var iv=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function sv(e){let t=new Set;ey(e.rowProperties,t),ey(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:s}=e,l=t.has("firstRow")||n.firstRow&&r===0,d=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=s;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let g=a-(n.firstColumn?1:0);t.add(g%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!l&&!d){let g=r-(n.firstRow?1:0);t.add(g%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),l&&t.add("firstRow"),d&&t.add("lastRow"),l&&c&&t.add("nwCell"),l&&u&&t.add("neCell"),d&&c&&t.add("swCell"),d&&u&&t.add("seCell");let m=[];for(let g of iv)t.has(g)&&m.push(g);return m}var ty=new WeakMap;function Vo(e,t,n,r,o="all-markup"){let a=ty.get(e);if(a&&a.contentWidthPt===t&&a.depth===n&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=lv(e,t,n,r,o);return ty.set(e,{contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,structure:i}),i}function lv(e,t,n,r,o){if(n>=sl||e.kind!=="table")return null;let a=Re(e,"tblPr"),i=a&&Re(a,"tblStyle")?Ve(Re(a,"tblStyle"),"val"):void 0,s=r?th(r,i):zs,l=av(a),d=mu,c=cu;for(let A of s.tablePropertyNodes)d=il(d,al(Re(A,"tblCellMar"))),c=ou(c,nl(A));let u=il(d,al(a&&Re(a,"tblCellMar"))),f=ou(c,a?nl(a):cu),p=new Map,m=nh(s),g=A=>{if(!m)return Uc;let z=A.join("|"),q=p.get(z);if(q)return q;let _=rh(s,A);return p.size<QI&&p.set(z,_),_},x=[],h=[],b=1;for(let A of chunkILTZTY3K_cjs.qf(e.children)){if(A.kind!=="tableRow")continue;let z=Re(A,"trPr"),q=[],_=[],X=[],U=Math.min(Yh(z,"gridBefore"),Wh);U>0&&h.push({start:0,span:U,preferred:Or(z&&Re(z,"wBefore"))});let j=U,K=chunkILTZTY3K_cjs.qf(A.children);for(let Ie of K){if(Ie.kind!=="tableCell")continue;let me=Re(Ie,"tcPr"),ge=Math.min(j,Wh),Be=Math.min(ev(me),1024-ge),we=Or(me&&Re(me,"tcW"));q.push(ge),_.push(Be),X.push(we),h.push({start:ge,span:Be,preferred:we}),j=ge+Be;}let pe=Yh(z,"gridAfter"),Fe=Math.min(j+pe,1024);pe>0&&j<1024&&h.push({start:j,span:Math.min(pe,1024-j),preferred:Or(z&&Re(z,"wAfter"))}),Fe>b&&(b=Fe),x.push({node:A,cells:K,properties:z,starts:q,spans:_,preferred:X,gridColumns:Fe});}let P=Hh(e),k=P.length>0?P.length:b,v=x.length,L=[];for(let A=0;A<x.length;A+=1){let z=x[A],q=z.node,_=z.properties,X=0,U=[];for(let me of z.cells){if(me.kind!=="tableCell")continue;let ge=Re(me,"tcPr"),Be=z.starts[X],we=z.spans[X],Se=z.preferred[X]??qt,ye=sv({look:l,rowIndex:A,rowCount:v,gridColumn:Be,gridSpan:we,columnCount:k,rowProperties:_,cellProperties:ge});X+=1;let De,se=uu;for(let st of ye){let Ft=s.conditional.get(st);if(!Ft)continue;let lt=Re(Ft,"tcPr");De=Kh(lt)??De,se=au(se,rl(lt));}let _e=Kh(ge)??De,Ze=il(u,al(ge&&Re(ge,"tcMar"))),be=Za(me.children,o);U.push({id:me.id,gridSpan:we,gridColumn:Be,...P[Be]?.id?{gridColumnId:P[Be].id}:{},vMergeContinue:tv(ge),vAlign:nv(ge),margins:Ze,borders:au(se,ge?rl(ge):uu),..._e===void 0?{}:{shading:_e},preferredWidth:Se,styleFormatting:g(ye),blocks:be});}let j=_?Re(_,"ins")??Re(_,"del"):void 0,K=j?j.localName==="ins"?"insert":"delete":void 0,pe=j&&Ve(j,"id"),Fe=j&&Ve(j,"author"),Ie=j&&Ve(j,"date");L.push({id:q.id,...K?{revisionKind:K}:{},...pe!==void 0?{revisionId:pe}:{},...Fe!==void 0?{revisionAuthor:Fe}:{},...Ie!==void 0?{revisionDate:Ie}:{},isHeader:Uh(_,"tblHeader"),cantSplit:Uh(_,"cantSplit"),height:rv(_),cells:U});}let w=qt,S,C,T,N,M;for(let A of s.tablePropertyNodes){let z=Re(A,"tblW");z&&(w=Or(z));let q=Re(A,"tblLayout");q&&(S=Ve(q,"type")==="fixed"),C=Ja(Re(A,"tblInd"),Vh)??C,T=$h(A)??T,N=Ja(Re(A,"tblCellSpacing"),Qa)??N,M=Jh(A)??M;}let y=a&&Re(a,"tblW"),G=y?Or(y):w,D=a&&Re(a,"tblLayout"),F=D?Ve(D,"type")==="fixed":S??false,E=Ja(a&&Re(a,"tblInd"),Vh)??C??0,B=$h(a)??T??"left",R=n===0?Jh(a)??M:void 0,W=Ja(a&&Re(a,"tblCellSpacing"),Qa)??N??0;return {columnWidthsPt:zh({gridCols:P,claims:h,columnCount:k,contentWidthPt:t,tableWidth:G,layoutFixed:F}),rows:L,tableWidth:G,layoutFixed:F,indentPt:E,alignment:B,...R?{float:R}:{},cellSpacingPt:W,tableBorders:f,defaultMargins:u}}var yu=512,ay=9,Zt=31680/20,dv=8,cv=128;function ni(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkILTZTY3K_cjs.ca&&e.localName===t}function Qe(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Tt(e,t){for(let n of e.children)if(ni(n,t))return n}function _n(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function uv(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>Zt?Zt:t}function hu(e){let t=e/20;return Number.isFinite(t)?t>Zt?Zt:t<-Zt?-Zt:t:0}function fv(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=Tt(e,"ind");if(!n)return t;let r=_n(Qe(n,"left")??Qe(n,"start"),true),o=_n(Qe(n,"right")??Qe(n,"end"),true),a=_n(Qe(n,"hanging")),i=_n(Qe(n,"firstLine"),true);return {left:r===null?0:hu(r),right:o===null?0:hu(o),hanging:a===null?0:uv(a),firstLine:i===null?0:hu(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function pv(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function mv(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function gv(e,t){let n=Tt(e,t);if(!n)return false;let r=Qe(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function oy(e,t){let n=Tt(e,t);if(!n)return;let r=Qe(n,"val");if(!(r===void 0||r.length===0||r.length>cv))return r}function hv(e,t){for(let n of e){if(n.localName!==t)continue;let r=n.attributes?.val;return !(r==="0"||r==="false")}return false}function iy(e){let t=_n(Qe(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Tt(e,"start"),r=1;if(n){let h=_n(Qe(n,"val"));h!==null&&h>=0&&(r=Math.min(h,9999));}let o=Tt(e,"numFmt"),a=(o?Qe(o,"val"):void 0)??"decimal",i=Tt(e,"lvlText"),s=i?Qe(i,"val")??"":"",l=Tt(e,"lvlJc"),d=mv(l?Qe(l,"val"):void 0),c=Tt(e,"suff"),u=pv(c?Qe(c,"val"):void 0),f=Tt(e,"lvlRestart"),p;if(f){let h=_n(Qe(f,"val"));h!==null&&h>=0&&h<=9&&(p=h);}let m=Tt(e,"pPr"),g=Tt(e,"rPr"),x=g?Ro(g):[];return {ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:s.length>64?s.slice(0,64):s,lvlJc:d,suff:u,indent:fv(m),...p!==void 0?{lvlRestart:p}:{},isLgl:gv(e,"isLgl"),runProperties:x,vanish:hv(x,"vanish")}}function yv(e){let t=Qe(e,"abstractNumId");if(t===void 0||t.length===0||t.length>64)return null;let n=new Map;for(let a of e.children){if(!ni(a,"lvl"))continue;if(n.size>=9)break;let i=iy(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=oy(e,"numStyleLink"),o=oy(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function bv(e){let t=_n(Qe(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Tt(e,"startOverride"),r;if(n){let i=_n(Qe(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=Tt(e,"lvl"),a=o?iy(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:t,override:{}}:{ilvl:t,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function xv(e){let t=Qe(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=Tt(e,"abstractNumId"),r=n?Qe(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!ni(a,"lvlOverride"))continue;if(o.size>=ay)break;let i=bv(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function Sv(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let a of e.children){if(ni(a,"abstractNum")){if(r>=yu)continue;r+=1;let i=yv(a);i&&!t.has(i.abstractNumId)&&t.set(i.abstractNumId,i);continue}if(ni(a,"num")){if(o>=yu)continue;o+=1;let i=xv(a);i&&!n.has(i.numId)&&n.set(i.numId,i);}}return {abstractNums:t,nums:n}}function Rv(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<dv;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let s=n(i);if(s===void 0)return null;let l=e.nums.get(s);if(!l)return null;let d=e.abstractNums.get(l.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function sy(e,t){let n=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=Rv(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?{abstractNums:r,nums:e.nums}:e}function $o(e,t,n){if(n<0||n>8)return null;let r=e.nums.get(t);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(n),i=a?.level??o.levels.get(n);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var bu=Object.freeze({abstractNums:new Map,nums:new Map});function wv(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=$o(e,t,o);if(!a){r.push(1);continue}let i=n?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function Pv(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=$o(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function Iv(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function xu(e){let t=new Map,n=new Map,r=new Map,o=a=>{let i=t.get(a);i||(i=[0,0,0,0,0,0,0,0,0],t.set(a,i));let s=n.get(a);s||(s=[false,false,false,false,false,false,false,false,false],n.set(a,s));let l=r.get(a);return l||(l=wv(e,a),r.set(a,l)),{counters:i,initialized:s,starts:l}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let s=$o(e,a,i);if(!s)return null;let{abstractNumId:l,level:d}=s,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=Pv(e,a,f);for(let k=i+1;k<=8;k+=1){let v=$o(e,a,k);if(!v)continue;let L=Iv(k,v.level.lvlRestart);L!==null&&i<=L&&(u[k]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),x=u.slice(),h=g.map((k,v)=>x[v]?k:f[v]??1),b=d.isLgl?p.map(k=>k==="bullet"||k==="none"?k:"decimal"):p,P=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:bc(d.lvlText,h,b);return {abstractNumId:l,numId:a,ilvl:i,level:d,counters:g,markerText:P}}}}var wu=new WeakMap;function mF(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkILTZTY3K_cjs.g.story);wu.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function Tv(e){let t=wu.get(e);return wu.delete(e),t}function Cv(e){return [e.fontFamily??"",e.fontSizePt,e.bold?1:0,e.italic?1:0,e.characterSpacingPt,e.horizontalScalePercent,e.verticalAlign,e.hidden?1:0,e.kerningMinPt,e.caps?1:0,e.smallCaps?1:0].join(",")}function Pu(e){return e.kind!=="textValue"}function ly(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function ll(e,t){for(let n of e.children)if(Pu(n)&&n.localName===t)return n}function Iu(e){let t=null;for(let n of e){if(!Pu(n))continue;let r=ll(n,"numPr");if(!r)continue;let o=ll(r,"ilvl"),a=ll(r,"numId"),i=a?ly(a,"val"):void 0,s=o?ly(o,"val"):"0";if(!i||i==="0"){t=null;continue}if(i.length>64){t=null;continue}let l=/^\d{1,2}$/.test(s??"")?Number(s):0;if(l<0||l>8){t=null;continue}t={numId:i,ilvl:l};}return t}function kv(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<js;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?Iu([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var Su=new WeakMap;function ri(e,t){if(!t)return e;let n=Su.get(e);if(n&&n.styleCascade===t)return n.linked;let r=sy(e,a=>kv(t,a)),o={styleCascade:t,linked:r};return Su.set(e,o),Su.set(r,o),r}function dy(e){return Number.isFinite(e)?e>Zt?Zt:e<-Zt?-Zt:e:0}function cy(e){let t=null;for(let n of e){if(n.localName!=="ind")continue;let r=n.attributes?.hanging,o=n.attributes?.firstLine;r===void 0&&o===void 0||(t={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?dy(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?dy(Number(o)/20):0});}return t}function uy(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.left!==void 0||t.attributes?.start!==void 0))}function fy(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.right!==void 0||t.attributes?.end!==void 0))}function hy(e,t,n=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=Ka(t),a=Ka(n),i={hanging:e.hanging,firstLine:e.firstLine},s=uy(n)?a.left:r.left?e.left:uy(t)?o.left:e.left,l=fy(n)?a.right:r.right?e.right:fy(t)?o.right:e.right,d=cy(n)??(r.firstLineOffset?i:cy(t)??i);return {left:s,right:l,...d}}function vu(e,t=8){let n=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){n.push(i);continue}if(!(i.kind!=="table"||a>=t)){for(let s of chunkILTZTY3K_cjs.qf(i.children))if(s.kind==="tableRow")for(let l of chunkILTZTY3K_cjs.qf(s.children)){if(l.kind!=="tableCell")continue;let d=chunkILTZTY3K_cjs.rc(l.children);r(d,a+1);}}}};return r(e,0),n}var py=new WeakMap;function yy(e,t){let n=py.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(l=>l.kind==="paragraphProperties"),o=t?jo(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Pu(r)?ll(r,"rPr"):void 0,s={styleCascade:t,numPr:Iu(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:vt(r),inheritedMarkProps:o?o.markRunProperties:vt(i),perLevel:new WeakMap};return py.set(e,s),s}function dl(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=ri(t,n),i=xu(a);for(let s of vu(e)){let l=yy(s,n),d=l.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=l.perLevel.get(c.level);if(!u){let x=hy(c.level.indent,l.inheritedParagraphProperties,l.directProps),h=Nn(l.inheritedMarkProps,c.level.runProperties,n);u={indent:x,markerStyle:Ae(h,n?.themeFonts)},l.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=wo(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,Cv(p)].join("|");o.set(s.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 by=new WeakMap,xy=new WeakMap;function my(e,t,n){let r=n?xy.get(n):by.get(t);if(r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable)return r}function Ov(e,t,n){t?xy.set(t,n):by.set(e,n);}function Sy(e,t,n){if(e.listItems===void 0){let i=my(e,t,n);if(i&&n===void 0)return {...e,numberingIndex:i.linkedIndex,...i.listItems?{listItems:i.listItems}:{}}}let r=e.listItems===void 0?my(e,t,n):void 0,o=r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable?r.linkedIndex:ri(e.numberingIndex??bu,e.styleCascade),a=e.listItems??(o.nums.size>0?Fv(t,e.numberingIndex,o,e.styleCascade,e.isFontAvailable,n):void 0);return e.listItems===void 0&&Ov(t,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:o,listItems:a}),{...e,numberingIndex:o,...a?{listItems:a}:{}}}function Br(e,t){return Sy(e,t,void 0)}function Ry(e,t,n){return Sy(e,t,n)}var gy=new WeakMap,Bv=Object.freeze([]);function Mv(e,t){let n=gy.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=vu([e]).filter(a=>yy(a,t).numPr!==null),o=r.length>0?r:Bv;return gy.set(e,{styleCascade:t,numbered:o}),o}var Xo=new WeakMap,Ru=new WeakMap;function Lv(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];if(!o||n.id!==o.id)return false;let a=n.children.find(s=>s.kind==="paragraphProperties"),i=o.children.find(s=>s.kind==="paragraphProperties");return a===i})}function Fv(e,t,n,r,o,a){let i=e[0],s=e[e.length-1],l=a?Ru.get(a):(i?Xo.get(i):void 0)??(s?Xo.get(s):void 0);if((a?Tv(a):void 0)?.preservesNumberedSequence&&l&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o)return l.listItems;let c=new Array(e.length),u=l!==void 0&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o&&l.blocks.length===e.length;for(let m=0;m<e.length;m+=1){let g=e[m],x=l&&l.blocks[m]===g?l.numberedByBlock[m]:Mv(g,r);c[m]=x,u&&!Lv(x,l.numberedByBlock[m])&&(u=false);}if(l&&u){let m={...l,blocks:e,numberedByBlock:c};return a?Ru.set(a,m):(i&&Xo.set(i,m),s&&s!==i&&Xo.set(s,m)),l.listItems}let f=dl(e,n,r,o),p={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?Ru.set(a,p):(i&&Xo.set(i,p),s&&s!==i&&Xo.set(s,p)),f}function cl(e,t,n,r){if((!e.markerText||e.indent.hanging<=0&&t<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=Math.min(0,o),s=Math.max(i,o-a),l=Math.max(a,t),d=s;return e.markerAlign==="right"?d=o-t:e.markerAlign==="center"&&(d=s+(l-t)/2),d<i&&(d=i),{x:d,y:n,width:Math.max(t,0),height:r}}function Ev(e,t,n=ho,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=t.measure(e.markerText,e.markerStyle),a=cl(e,o,0,0);if(!a)return 0;let i=e.indent.left,s=a.x+a.width;return e.suffix==="nothing"?s-i:e.suffix==="space"?s+t.measure(" ",e.markerStyle)-i:s<=i?0:yo(n,s,r).positionPt-i}function ul(e,t,n,r,o){return e?Ev(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}function fl(e,t,n,r=0){if(!e||!e.markerText||!n)return;let o=t.measure(e.markerText,e.markerStyle),a=cl(e,o,n.y,n.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 wy=new WeakMap,Py=new WeakMap,Iy=new WeakMap,vy=new WeakMap;function Ty(e){let t=vy.get(e);if(t)return t;let n=new Set,r=[];for(let o of Xe(e)){for(let a of o.lines)for(let i of it(a))n.has(i.paragraphId)||(n.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!n.has(o.paragraphId)&&(n.add(o.paragraphId),r.push(o.paragraphId));}return vy.set(e,r),r}function Mr(e){let t=wy.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of Ty(o))n.has(a)||(n.add(a),r.push(a));return wy.set(e,r),r}function Lr(e){let t=Py.get(e);if(t)return t;let n=new Map;for(let[r,o]of Mr(e).entries())n.set(o,r);return Py.set(e,n),n}function Cy(e){let t=Iy.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of St(a)){for(let s of i.lines)for(let l of it(s))n.has(l.paragraphId)||(n.add(l.paragraphId),r.push(l.paragraphId));i.lines.length===0&&!n.has(i.paragraphId)&&(n.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of Ty(a))n.has(i)||(n.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 s of i.notes)o(s.fragments);}}return Iy.set(e,r),r}var ky=new WeakMap;function Tu(e){let t=ky.get(e);if(t)return t;let n=[...Xe(e)];for(let r of [e.header,e.footer])r&&n.push(...St(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...St(o.fragments));return ky.set(e,n),n}var Oy=new WeakMap;function it(e){let t=Oy.get(e);if(t)return t;let n={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)?Nv(e):[n];return Oy.set(e,o),o}function Nv(e){let t=[];for(let n of e.spans){let r=t[t.length-1];if(r&&r.paragraphId===n.range.paragraphId){t[t.length-1]={...r,start:Math.min(r.start,n.range.start),end:Math.max(r.end,n.range.end),spans:[...r.spans,n]};continue}t.push({paragraphId:n.range.paragraphId,start:n.range.start,end:n.range.end,spans:[n],drawings:[]});}return t.map(n=>({...n,drawings:(e.drawings??[]).filter(r=>r.paragraphId===n.paragraphId)}))}function Sn(e,t){return it(e).find(n=>n.paragraphId===t)??null}function Fr(e,t,n,r){let o=Lr(e),a=o.get(t.paragraphId)??-1,i=o.get(n.paragraphId)??-1,s=o.get(r.paragraphId)??-1;if(a<i||a>s)return null;let l=a===i?Math.max(t.start,n.offset):t.start,d=a===s?Math.min(t.end,r.offset):t.end;return d>l?{start:l,end:d}:null}function TF(e,t){for(let n of e.pages)for(let r of Xe(n)){let o=sr(r).indexOf(t);if(o>0)return sr(r).slice(0,o).reverse()}return []}var By=new WeakMap;function sr(e){let t=By.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of it(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),By.set(e,n),n}function Av(e,t){let n=sr(e);if(n.length===1)return n[0]===t?{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=Sn(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Cu(e,t,n){let r=Av(e,t);return r!==null&&n>=r.start&&n<r.end}function CF(e,t){for(let n of e.pages)for(let r of Tu(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Tu(n))if(sr(r).includes(t))return r;return null}var Lu=8,My=new WeakMap;function ml(e){let t=My.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,s=new Map,l=(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 x=s.get(g);x&&i.set(m,x);}else s.set(g,{row:p,cell:m});}l(m.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)n.push(c.box.y),l(c.fragments,false);let d={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return My.set(e,d),d}function ii(e,t){let n=ml(e).pageTops;if(n.length===0)return -1;let r=0,o=n.length-1,a=0;for(;r<=o;){let i=r+o>>1;n[i]<=t?(a=i,r=i+1):o=i-1;}return a}function Dv(e,t){let n=e.pages[ii(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&hl(r.box,t))return true;return false}function Bu(e,t,n,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||!oi(a,t))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:n},pageIndex:n,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function gl(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??Lu,measurer:r.measurer},i=Ly(e,o.index,n),s=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),l=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Bu(s,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=pl(o.fragments,n,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=Bu(l,n,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 [t-f,t+f]){let m=e.pages[p];if(!m)continue;let g=pl(m.fragments,n,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:Ly(e,m.index,n)}}return null}function EF(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??Lu,measurer:o.measurer};return pl(n,r,i,null)}function _v(e,t,n={}){let r=e.pages[ii(e,t.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:t.x-o.box.x,y:t.y-o.box.y}),i=Bu(o.anchoredDrawings,a,r.index);if(i)return i}return gl(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function hl(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function yl(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&hl(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Ly(e,t,n){return yl(e,t,n)?.id??null}function Mu(e,t,n){let r=Math.max(e.x-t.x,0,t.x-(e.x+e.width)),o=Math.max(e.y-t.y,0,t.y-(e.y+e.height));return r+o*n}function Hv(e,t,n){return e.kind!=="table"||Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?Mu(e.box,t,n):0}function pl(e,t,n,r){if(e.length===0)return null;let o=null;for(let i of e){if(!hl(i.box,t))continue;o=i;let s=Fy(i,t,n,r);if(s)return s;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:Hv(i,t,n.verticalWeight)})).sort((i,s)=>i.score-s.score);for(let{block:i}of a){let s=Fy(i,t,n,r);if(s)return s}return null}function Fy(e,t,n,r){return e.kind==="paragraph"?zv(e,t,n,r,hl(e.box,t)):Kv(e,t,n)}function zv(e,t,n,r,o){let a=jv(e.lines,t.y);if(!a)return null;let i=$v(a,t.x,t.y,n),s=Wv(a,t.x),l=Math.min(Math.max(i.offset,s.start),s.end),d={paragraphId:s.paragraphId,offset:l},c=si(a,l,n.measurer,s);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:n.pageIndex},pageIndex:n.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&t.y>=a.box.y&&t.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?Gv(i.drawing):null}}function jv(e,t){if(e.length===0)return null;for(let o of e)if(t>=o.box.y&&t<o.box.y+o.box.height)return o;let n=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=t<o.box.y?o.box.y-t:t-(o.box.y+o.box.height);a<r&&(r=a,n=o);}return n}function Gv(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function Wv(e,t){let n=it(e),r=n[0];for(let o of n){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(t>=a.box.x&&(r=o),t<i.box.x+i.box.width)break}return r}function Vv(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function oi(e,t){let n=e.hitBounds;return t.x<n.x||t.x>=n.x+n.width||t.y<n.y||t.y>=n.y+n.height?false:Lc(t.x,t.y,e.geometry)}function $v(e,t,n,r){let o=e.spans;for(let l of e.drawings??[])if(oi(l,{x:t,y:n}))return {offset:l.start,x:l.hitBounds.x,withinSpan:true,drawing:l};if(o.length===0&&(e.drawings?.length??0)>0){let l=e.drawings[0];if(t<=l.advanceStart)return {offset:e.range.start,x:l.advanceStart,withinSpan:false,drawing:l};let d=e.drawings[e.drawings.length-1];if(t>=d.advanceEnd)return ku(e,d.advanceEnd,r);for(let c of e.drawings??[])if(t>=c.advanceStart&&t<c.advanceEnd){let u=t>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:oi(c,{x:t,y:n}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(t<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],s=i.box.x+i.box.width;if(t>=s)return ku(e,s,r);for(let l of o)if(t>=l.box.x&&t<l.box.x+l.box.width)return Xv(l,t,r);for(let l=0;l<o.length;l+=1){let d=o[l];for(let c of e.drawings??[]){if(t>=c.advanceStart&&t<c.advanceEnd){let u=oi(c,{x:t,y:n}),f=t>=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(oi(c,{x:t,y:n}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(t<d.box.x&&t>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(t<c.hitBounds.x&&t>=(o[l-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(t<d.box.x){let c=o[l-1],u=c.box.x+c.box.width;return t-u<=d.box.x-t?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return ku(e,s,r)}function ku(e,t,n){let r=Hy(n.layout,e);if(r===e.range.end)return {offset:r,x:t,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,s=n.measurer?ai(a,i,n.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+s,withinSpan:false}}return {offset:r,x:t,withinSpan:false}}function Hy(e,t){let n=t.range.end;if(n>t.range.start&&Ou(t,n-1)===chunkILTZTY3K_cjs.Cc)return n-1;if(ml(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&Ou(t,r-1)===`
15
+ `&&(r-=1);r>t.range.start&&Ou(t,r-1)===" ";)r-=1;return r}function Ou(e,t){for(let n of e.spans)if(!(t<n.range.start||t>=n.range.end))return n.text.length!==n.range.end-n.range.start?null:n.text[t-n.range.start]??null;return null}var Ey=new WeakMap,Ny=new WeakMap;function Ay(e){let t=zd(),n=Ey.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of Xt(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),Ey.set(e,{epoch:t,boundaries:r}),r}function ai(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];let o=Ny.get(n);o||(o=new WeakMap,Ny.set(n,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(t);if(i!==void 0)return i;let s=t<=0?0:Dt(e.text.slice(0,t),e.style,n);return a.set(t,s),s}function Fu(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function bl(e,t,n){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(t-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!n||Fu(e)?e.box.x+e.box.width*(o/r):e.box.x+ai(e,o,n)}function si(e,t,n,r){let o=Vv(e,t,r?.drawings);if(o)return {x:t>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,c=Math.max(0,e.box.height-d-(e.trailingSpacing??0));if(c<=0&&e.box.height<=0){let u=Math.max(0,e.baseline);return {x:e.contentX,y:e.box.y-u,height:u}}return {x:e.contentX,y:e.box.y+d,height:c}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[d+1];if(u&&u.range.start===t&&Fu(c)){i=u;break}if(u&&u.range.start===t&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else t>c.range.end&&(i=c);}let s=bl(i,t,n),l=n?.lineMetrics(i.style);return !l||l.height<=0?{x:s,y:e.box.y,height:e.box.height}:{x:s,y:e.box.y+e.baseline-l.baseline-Ic(i.style),height:l.height}}function Xv(e,t,n){let r=t-e.box.x,o=e.range.end-e.range.start;if(o<=0||Fu(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(!n.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),g=Ay(e),x=g[0],h=Number.POSITIVE_INFINITY;for(let b of g){let P=Math.abs(b-m);P<h&&(h=P,x=b);}return {offset:e.range.start+x,x:e.box.x+e.box.width*(x/o),withinSpan:true}}let a=Ay(e),i=1,s=a.length-1;for(;i<s;){let p=i+s>>1;ai(e,a[p],n.measurer)<r?i=p+1:s=p;}let l=a[i],d=a[i-1],c=ai(e,l,n.measurer),u=ai(e,d,n.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:l),x:e.box.x+(f?u:c),withinSpan:true}}function Dy(e,t,n,r){if(e.length===0)return null;for(let i of e){let s=n(i);if(t>=s&&t<s+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let s=n(i),l=t<s?s-t:t-(s+r(i));l<a&&(a=l,o=i);}return o}function Yv(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:ml(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function Kv(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],s=Dy(a,t.y,d=>d.box.y,d=>d.box.height);if(s){let d=Dy(s.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(Uv(n,s,d));}let l=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||l.push({entry:{row:d,cell:c},score:Mu(c.box,t,n.verticalWeight)}));l.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...l.map(u=>u.entry)]){let u=Yv(n.layout,e,d,c),f=pl(c.blocks,t,n,u);if(f)return f}return null}function Uv(e,t,n){return n.blocks.length>0?{row:t,cell:n}:ml(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function zy(e,t){let n=t.paintBounds;return n.width<=0||n.height<=0?null:Object.freeze({pageIndex:e,x:n.x,y:n.y,width:n.width,height:n.height,record:t})}function qv(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return zy(e,o);return null}function jy(e,t,n){if(t.kind==="paragraph")return qv(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=jy(e,a,n);if(i)return i}return null}function _y(e,t,n){for(let r of t){let o=jy(e,r,n);if(o)return o}return null}function Zv(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return zy(n.index,o);let r=_y(n.index,n.fragments,t);if(r)return r;for(let o of [n.header,n.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==t)continue;let s=i.paintBounds;return s.width<=0||s.height<=0?null:Object.freeze({pageIndex:n.index,x:o.box.x+s.x-n.contentBox.x,y:o.box.y+s.y-n.contentBox.y,width:s.width,height:s.height,record:i})}let a=_y(n.index,o.fragments,t);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:n.index,x:n.header?.box.x===o.box.x||n.footer?.box.x===o.box.x?o.box.x+i.x-n.contentBox.x:a.x,y:o.box.y+i.y-n.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function Jv(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function Qv(e,t){let n=t.get(e.id);return n===void 0&&(e.isHeaderRepeat?n=0:(n=t.size,t.set(e.id,n))),{...e,rowIndex:n}}function xl(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??Jv(t),rows:e.rows.map(o=>Qv(o,r))}}var Gy=new WeakMap,Yo=4,Eu=6,Wy=14,eT={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Nu(e,t,n,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let s of a.rows){o({pageIndex:t,table:a,row:s,rowOrdinal:s.rowIndex,nestingDepth:i,editable:!s.isHeaderRepeat,pageContentBox:n});for(let l of s.cells)Nu(l.blocks,t,n,i+1,o);}}}function DF(e){let t=Gy.get(e);if(t)return t;let n=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=s=>{n.push(s);};Nu(a.fragments,o,a.contentBox,0,i);for(let s of [a.header,a.footer])s&&Nu(s.fragments,o,s.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return Gy.set(e,r),r}function _F(e){let t=e.sourceRevision;switch(e.kind){case "rowDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function HF(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 zF(e,t){if(t.kind==="insertRow"){for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat)return n.editable?{kind:"insertRow",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}:null;return null}for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat&&n.editable)for(let r=0;r<n.table.columnEdges.length-1;r+=1){let o=li(n.row,r);if(o===t.gridColumnId)return {kind:"insertColumn",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,gridColumnId:o,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}}return null}function li(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function tT(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,s=n-i.x-o,l=r-i.y,d=t.table,c=s-d.box.x,u=l-d.box.y;return c<-Yo||u<-Wy||c>d.box.width+Yo||u>d.box.height+Eu?null:{x:c,y:u}}function nT(e,t,n,r){if(t.row.isHeaderRepeat)return null;let o=t.table,a=t.row.box.y-o.box.y+t.row.box.height;if(!o.columnEdges.slice(1).some(l=>Math.abs(n-l)<=Yo)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=Yo)return {kind:"rowDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeY:a};if(r<t.row.box.y-t.table.box.y||r>t.row.box.y-t.table.box.y+t.row.box.height)return null;for(let l=1;l<o.columnEdges.length-1;l+=1){let d=o.columnEdges[l];if(Math.abs(n-d)>Yo)continue;let c=li(t.row,l-1),u=li(t.row,l);if(!(!c||!u))return {kind:"columnDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:d,sheetY:t.pageContentBox.y+o.box.y+r}}let s=o.columnEdges.at(-1);if(Math.abs(n-s)<=Yo){let l=o.columnEdges.length-2,d=li(t.row,l);return d?{kind:"rightEdge",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,gridColumnId:d,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:s,sheetY:t.pageContentBox.y+o.box.y+r}:null}return null}function jF(e,t,n,r,o=0,a){let i=a??ii(r,n),s=i>=0?o:0,l=null,d=-1,c=-1,u=f=>{if(!f)return;let p=eT[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,l=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=tT(r,f,t,n,s);if(!p||(u(nT(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<=Eu&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+Eu&&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 x=f.table.columnEdges[g],h=f.table.columnEdges[g+1],b=(x+h)/2;if(Math.abs(p.x-b)>(h-x)/2+2||p.y>Wy)continue;let P=li(f.row,g);if(P){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:P,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return l}var Vy=1048576;function Au(e=Vy){let t=e|0;return {cellsRemaining:t>0?t:0}}function Sl(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,s=i?new Set:null,l=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}l&&p.isHeaderRepeat!==true&&(l=false,f(),s?.clear());let m=new Set,g=false;for(let x of p.cells){if(n){if(n.cellsRemaining<=0){g=true;break}n.cellsRemaining-=1;}let h=Math.max(0,Math.min(x.gridColumn|0,1023));if(m.add(h),x.vMergeContinue){let b=a.get(h);b?b.span+=1:s&&!s.has(h)&&(a.set(h,{id:x.id,span:1}));}else c(h),a.set(h,{id:x.id,span:1});s?.add(h);}if(g){f();break}for(let x of [...a.keys()])m.has(x)||c(x);}return f(),o}var Rl=.001;function rT(e,t){return {...e,height:{rule:"auto"},cells:[t]}}function oT(e){let t=Sl(e),n=[],r=new Map;for(let o=0;o<e.length;o+=1)for(let a of e[o].cells){let i=t.get(a.id);if(i===void 0||i<2)continue;let s=Math.min(o+i-1,e.length-1);if(s<=o)continue;n.push({span:{headRow:o,endRow:s,headCellId:a.id},cell:a});let l=r.get(o);l?l.add(a.id):r.set(o,new Set([a.id]));}return {heads:n,headIdsByRow:r}}function aT(e,t){if(e.length===0||!e.some(S=>S.cells.some(C=>C.vMergeContinue)))return null;let{heads:n,headIdsByRow:r}=oT(e);if(n.length===0)return null;let o=new Map(n.map(S=>[S.span,S])),a=new Map;for(let S of n){let C=a.get(S.span.headRow);C?C.push(S.span):a.set(S.span.headRow,[S.span]);}for(let S of a.values())S.sort((C,T)=>T.endRow-C.endRow);let i=new Map,s=new Map,l=new Map,d=new Map,c=new Set,u=new Set,f=new Set,p=new Set,m=new Map,g=new Map,x=(S,C,T)=>{let N=new Set;for(let F of r.get(S)??[])(f.has(F)||F===C)&&N.add(F);let M=T===void 0?"":`@${T.toFixed(2)}`,y=`${S}${M}\0${[...N].sort().join("\0")}`,G=i.get(y);if(G!==void 0)return G;let D=t(e[S],N,T);return i.set(y,D),D},h=(S,C)=>{let T=C===void 0?S:`${S.headCellId}@${C.toFixed(2)}`,N=s.get(T);if(N!==void 0)return N;let M=o.get(S),y=t(rT(e[S.headRow],M.cell),void 0,C);return s.set(T,y),y},b=(S,C,T)=>x(S,C,T)+(l.get(S)??0),P=S=>{for(let C=S.headRow+1;C<=S.endRow;C+=1)if(r.has(C))return true;return false},k=(S,C)=>{let T=0;for(let N=S.headRow;N<=S.endRow;N+=1)T+=b(N,S.headCellId,C===void 0?void 0:C+T);return T},v=(S,C)=>{let T=new Map,N=0;for(let M=S.headRow;M<=S.endRow;M+=1){let y=b(M,S.headCellId,C===void 0?void 0:C+N);T.set(M,y),N+=y;}return T},L=S=>{for(let C=S.endRow;C>=S.headRow;C-=1)if(e[C].height.rule!=="exact")return C},w=(S,C)=>{if(P(S)||p.has(S.headRow)&&!u.has(S))return Number.POSITIVE_INFINITY;let T=k(S,C);return L(S)===void 0?T:Math.max(T,h(S,C))};return {spansAt:S=>a.get(S)??[],heightOf:w,accept:(S,C)=>{if(u.has(S)||P(S)||p.has(S.headRow))return;let T=v(S,C),N=0;for(let D of T.values())N+=D;let M=L(S),y=h(S,C);if(M===void 0&&y>N+Rl)return;let G=M===void 0?0:y-N;u.add(S),f.add(S.headCellId),p.add(S.headRow),G>Rl&&(l.set(M,(l.get(M)??0)+G),T.set(M,(T.get(M)??0)+G));for(let[D,F]of T)c.add(D),d.set(D,Math.max(d.get(D)??0,F));m.set(S,C),g.set(S,G>Rl?M:void 0);},withdrawAt:S=>{for(let C of a.get(S)??[]){if(!u.delete(C))continue;f.delete(C.headCellId),p.delete(C.headRow),m.delete(C);let T=g.get(C);T!==void 0&&l.delete(T),g.delete(C);for(let N=C.headRow;N<=C.endRow;N+=1)c.delete(N),d.delete(N);}},rowOptions:S=>{if(!c.has(S))return;let C;for(let T of a.get(S)??[])u.has(T)&&(C??=new Map,C.set(T.headCellId,w(T,m.get(T))));return {...C?{detachedSpanHeightPtByCellId:C}:{},heightFloorPt:d.get(S)??b(S)}}}}function $y(e,t,n,r){for(let o of e?.spansAt(t)??[])n+e.heightOf(o,n)>r+Rl||e.accept(o,n);return e?.rowOptions(t)}function Xy(e,t,n,r,o){return aT(e.rows,(a,i,s)=>o(a,e.columnWidthsPt,typeof t=="function"?t():t,n,r,e.cellSpacingPt,i?{detachedSpanHeightPtByCellId:new Map([...i].map(l=>[l,Number.POSITIVE_INFINITY]))}:void 0,s))}function Yy(e,t,n){for(let r of e?.spansAt(t)??[])e.accept(r,n);return e?.rowOptions(t)}function wl(e,t){return {top:e.top+ir(t.top),right:e.right+ir(t.right),bottom:e.bottom+ir(t.bottom),left:e.left+ir(t.left)}}function iT(e,t,n){return {top:t?{state:"none"}:e.top,left:e.left,bottom:n?{state:"none"}:e.bottom,right:e.right}}function Pl(e,t,n){return !t&&!n?e:{...e,cells:e.cells.map(r=>({...r,borders:iT(r.borders,t,n)}))}}function sT(e,t,n,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=t.find(s=>s.kind==="paragraph"&&s.id===o.paragraphId);!a||a.kind!=="paragraph"||Mt(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,or({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:n,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{}}));}}function Il(e,t){return t===0?[...e]:e.map(n=>n.kind==="table"?{...n,box:{...n.box,y:n.box.y+t},rows:n.rows.map(r=>({...r,box:{...r.box,y:r.box.y+t},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+t},blocks:Il(o.blocks,t)}))}))}:{...n,box:{...n.box,y:n.box.y+t},...n.shadingBox?{shadingBox:{...n.shadingBox,y:n.shadingBox.y+t}}:{},...n.bottomBorder?{bottomBorder:{...n.bottomBorder,box:{...n.bottomBorder.box,y:n.bottomBorder.box.y+t}}}:{},...n.borders?{borders:n.borders.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}:{},...n.marker?{marker:{...n.marker,box:{...n.marker.box,y:n.marker.box.y+t}}}:{},lines:n.lines.map(r=>({...r,box:{...r.box,y:r.box.y+t},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+t}})),...r.drawings?{drawings:r.drawings.map(o=>ks(o,0,t))}:{}}))})}function di(e,t,n,r,o,a,i,s){if(e.length===0)return [];let l=new Map;for(let x of n)for(let h of x.cells)l.set(h.id,h);let d=Sl(e,a,o,{pageFragment:true}),c=e.map((x,h)=>({...x,cells:x.cells.map(b=>{let P=d.get(b.id);if(b.vMergeContinue&&P===void 0)return {...b,paintInert:true,rowSpan:1,borders:{},blocks:[]};let k=b.vMergeContinue,v=P??1,L=b.box.height;if(v>1){let T=e[h+v-1];L=T.box.y+T.box.height-b.box.y;}let w=l.get(b.id),S=b.blocks;if(w&&w.vAlign!=="top"&&S.length>0){let T=wl(w.margins,w.borders),N=Number.POSITIVE_INFINITY,M=Number.NEGATIVE_INFINITY;for(let y of S)N=Math.min(N,y.box.y),M=Math.max(M,y.box.y+y.box.height);if(Number.isFinite(N)&&Number.isFinite(M)){let y=L-T.top-T.bottom-(M-N),D=b.box.y+T.top+(y>0?w.vAlign==="center"?y/2:y:0)-N;if(Math.abs(D)>.001){S=Il(S,D);for(let F of S)F.kind==="paragraph"&&i?.(F.paragraphId,D);}}}let C=Object.freeze({x:b.box.x,y:b.box.y,width:b.box.width,height:L});return w&&s&&(v>1||w.vAlign!=="top"&&S.length>0)&&sT(S,w.blocks,C,s),{...b,...k?{vMergeContinue:false,paintInert:false}:{},rowSpan:v,blocks:S,box:{...b.box,height:L}}})})),u=c.map(x=>x.cells.map(h=>{let b=l.get(h.id);return {gridColumn:h.gridColumn,gridSpan:h.gridSpan,vMergeContinue:h.vMergeContinue,borders:b?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:h.rowSpan??1}})),f=t.columnWidthsPt.length,p=t.tableBorders,m={columnWidthsPt:t.columnWidthsPt,rowBands:c.map(x=>({y:x.box.y,height:x.box.height})),cellBoxes:c.map(x=>x.cells.map(h=>({width:h.box.width,height:h.box.height})))},g=du(u,p,f,m,void 0,r);return c.map((x,h)=>({...x,cells:x.cells.map((b,P)=>{let k=g[h][P];return b.paintInert||b.vMergeContinue?{...b,borders:{},paintInert:true}:{...b,borders:k}})}))}function Uy(e,t,n,r){let o=new Map,a=0,i=s=>{let l=Vo(s,t,0,n,r);if(l)for(let d of l.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 s of e)s.kind==="paragraph"&&s.paragraph?o.set(s.paragraph.id,a++):s.kind==="table"&&s.table&&i(s.table);return o}var Tl=4096,Ky=1,zt=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function Du(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}))}function vl(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function lT(e,t,n,r,o,a,i){let s=e.id,l=o.listItems?.get(s),d=kr(e,n,o.styleCascade,l,i?.tableCellStyle,true),{props:c,indent:u,available:f,alignment:p,spacing:m,lineSpacing:g,bottomBorder:x,borders:h,shading:b,inheritedRunProperties:P,markRunProperties:k,tabStops:v,tabStopsCacheToken:L}=d,w={styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},S=qa(d);Qc(e,w,S);let C=le=>S!==""&&fh(le,w)===S,T=C(i?.borderNeighbours?.previous),N=C(i?.borderNeighbours?.next),M=T?void 0:h.top,y=N?h.between:x,G=La(v,o.defaultTabStopPt),D=G===v?L:xr(G),F=ul(l,u,o.measurer,G,f),E=o.pageExclusionZones?.()??Object.freeze([]),B=o.paragraphOrderIndex?.(s)??Number.MAX_SAFE_INTEGER,R=o.paragraphOrderIndex?Xg(E,B,le=>o.paragraphOrderIndex?.(le)):E,W=$g(R,t,0,{left:0,right:u.left+f+u.right}),A=bn(W),z=A?`${r.toFixed(3)}|${A}`:"",q=Ir({paragraph:e,properties:[...c,...P,...k,{localName:"tabStops",attributes:{token:D}},...l?[{localName:"list",attributes:{token:l.cacheToken}}]:[]],width:f,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...z?{exclusionToken:z}:{}});o.cache&&o.onCellBreakKey?.(q);let _=_s(e,s,u.left,f,o.measurer,o.cache,o.cache?q:null,P,G,o.pageContext,o.styleCascade?(le,de)=>Nn(le,de,o.styleCascade):void 0,{lineSpacing:g,equationCacheToken:o.producer,firstLineOffset:F,marginExtent:{left:0,right:u.left+f+u.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:o.bodyPageFields}:{},displayMode:o.displayMode,...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:u.left+f+u.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:u.left+f+u.right,height:Math.max(1,f)}),...W.length>0?{pageExclusionZones:W}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:k}),X=i?.lineStart??0,U=i?.fragmentIndex??0,j=i?.maxBottom??Number.POSITIVE_INFINITY,K=i?.includeAfter??true,pe=i?.includeBottomBorder??true,Fe=()=>l!==void 0||o.displayMode==="all-markup"&&(wr(e).length>0||ko(e)!==null),Ie=(i?.collapseHeight??false)&&!Fe(),me=X===0&&!Ie?go(m.before,a):0,ge=t+u.left,Be=X===0&&!Ie?Kn(M):0,we=[],Se=r+me+Be,ye=X,De=false;for(let le=X;le<_.length;le+=1){let de=_[le],Le=le===_.length-1,Ke=Le&&pe&&y&&!Ie?Kn(y):0,ze=Le&&K&&!Ie?m.after:0,ut=Ie?0:W.length>0?xn(Se,de.height,W):de.exclusionSkipBefore??0;if((Ie?Se:Se+ut+de.height+Ke+ze)>j+.001)break;Se+=ut;let Et=t+u.left+(le===0?F:0),tn=Math.max(1,f-(le===0?F:0)),dr=de.spans.map(je=>({...je,range:{...je.range,paragraphId:s},box:{...je.box,x:je.box.x+t,y:Se}})),jn=As(dr,o.measurer,Et,tn,p,Le,p==="center"||p==="right"?de.width:void 0),ra=dr.length>0&&jn.length>0?jn[0].box.x-dr[0].box.x:p!=="left"&&p!=="both"?(()=>{let je=tn-de.width;return je<=0?0:p==="center"?je/2:je})():0,oa=Object.freeze({x:t,y:r,width:n,height:Math.max(0,j-r)}),cr=Ds(de.drawings.map(je=>Os(Object.freeze({...je,paragraphId:s,x:t+je.x,advanceStart:t+je.advanceStart,advanceEnd:t+je.advanceEnd,y:Se+je.y,paintBounds:Object.freeze({...je.paintBounds,x:t+je.paintBounds.x,y:Se+je.paintBounds.y}),hitBounds:Object.freeze({...je.hitBounds,x:t+je.hitBounds.x,y:Se+je.hitBounds.y})}),oa)),ra);we.push({id:o.nextLineId(s,de.start,le),range:{paragraphId:s,start:de.start,end:de.end},spans:jn,...cr.length>0?{drawings:cr}:{},box:{x:t+u.left,y:Se,width:f,height:Ie?0:de.height},contentX:jn[0]?.box.x??Et+ra,baseline:Ie?Math.max(0,Math.min(de.baseline,i?.collapseBandAbove??0)):de.baseline,leading:Ie?0:de.leading,trailingSpacing:Ie?0:de.trailingSpacing,...de.deletedRanges?{deletedRanges:de.deletedRanges}:{},...de.anchorRevisions?{anchorRevisions:de.anchorRevisions}:{}}),Ie||(Se+=de.height),ye=le+1,De=true;}if(!De)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:X,complete:false,fitted:false};let se=ye>=_.length,_e=we[0].box.y,Ze=Se,be=[],st,Ft=_e,lt=Ze,wn=h.left?wt(h.left):0,Pn=h.right?wt(h.right):0,dt=h.left?ge-h.left.spacePt-wn:ge,Qt=h.right?ge+f+h.right.spacePt+Pn:ge+f,ve=Math.max(Qt-dt,0);if(Be>0&&M){let le=wt(M),de=_e-M.spacePt-le;be.push({side:"top",edge:M,box:{x:dt,y:de,width:ve,height:le}}),Ft=de;}if(se&&pe&&y&&!Ie){let le=wt(y),de=Ze+y.spacePt,Le={x:dt,y:de,width:ve,height:le};N||(st={edge:y,box:Le}),be.push({side:N?"between":"bottom",edge:y,box:Le}),lt=de+le;}let tt=se&&K&&!Ie?m.after:0,H=T&&X===0?r:Ft,I=N&&se?lt+tt:lt,V=Math.max(I-H,0);if(h.left&&be.push({side:"left",edge:h.left,box:{x:ge-h.left.spacePt-wn,y:H,width:wn,height:V}}),h.right&&be.push({side:"right",edge:h.right,box:{x:ge+f+h.right.spacePt,y:H,width:Pn,height:V}}),h.bar){let le=wt(h.bar);be.push({side:"bar",edge:h.bar,box:{x:ge-h.bar.spacePt-le,y:_e,width:le,height:Math.max(Ze-_e,0)}});}let ne=lt+tt,re=b===void 0?void 0:h.left||h.right?{x:dt,y:Ft,width:ve,height:Math.max(lt-Ft,0)}:Ba(we,ge,f),Z=se&&o.displayMode==="all-markup",ue=Z?wr(e):[],ce=Z?ko(e):null,ae=X===0?fl(l,o.measurer,we[0]?{y:we[0].box.y,height:we[0].box.height}:void 0,t):void 0,$e=$s(e),Pe=$e?Vs(we,Ws($e)):we,He={kind:"paragraph",id:`${s}#f${U}`,paragraphId:s,fragmentIndex:U,range:{paragraphId:s,start:Pe[0].range.start,end:Pe[Pe.length-1].range.end},props:c,spacing:{before:me,after:tt},indent:u,tabStops:G,...st?{bottomBorder:st}:{},...be.length>0?{borders:be}:{},...b===void 0?{}:{shading:b},...re===void 0?{}:{shadingBox:re},...ae?{marker:ae}:{},...xs(ue,ce),lines:Pe,box:{x:ge,y:r,width:f,height:ne-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let le=Object.freeze({x:t,y:r,width:n,height:Math.max(0,j-r)}),de=He.box,Le={paragraph:e,paragraphId:s,paragraphBox:de,lines:Pe};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...Le,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(or({paragraph:e,paragraphId:s,paragraphBox:de,lines:Pe,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(de)??de,cellBox:le,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{}}));}return {fragment:He,bottom:ne,spaceAfter:tt,nextLineIndex:ye,complete:se,fitted:true}}function Er(e,t,n,r,o,a){let i=qy(e,t,n,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false});return {blocks:i.blocks,bottom:i.bottom}}function qy(e,t,n,r,o,a,i,s,l,d=false){let c=[],u=r,f=s.previousSpaceAfter,p=s.blockIndex,m=s.lineIndex,g=s.paragraphFragmentIndex,x=false,h=false,b=s.precededByEmittedTable;for(;p<e.length;){let P=e[p];if(P.kind==="table"){m!==0&&(m=0),f=0;let L=uT(P,t,n,u,a+1,i);if(!L){b=false,p+=1;continue}if(L.bottom>o+.001){h=!x;break}c.push(L.fragment),u=L.bottom,x=true,b=true,p+=1,m=0;continue}if(P.kind!=="paragraph"){b=false,p+=1,m=0;continue}let k=d&&p===e.length-1&&b&&Ph(P),v=lT(P,t,Math.max(1,n-t),u,i,f,{lineStart:m,fragmentIndex:g,maxBottom:o,includeAfter:true,includeBottomBorder:true,collapseHeight:k,collapseBandAbove:u-r,...l?{tableCellStyle:l}:{},borderNeighbours:{previous:p>0?e[p-1]:void 0,next:e[p+1]}});if(!v.fitted||!v.fragment)break;if(c.push(v.fragment),u=v.bottom,x=true,v.complete)f=v.spaceAfter,b=false,p+=1,m=0,g=0;else return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:v.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:g+1,precededByEmittedTable:b},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:m,previousSpaceAfter:f,paragraphFragmentIndex:g,precededByEmittedTable:b},complete:p>=e.length,fitted:x,nestedSplitBlocked:h}}function ci(e,t,n,r,o,a,i,s=0,l,d=Number.POSITIVE_INFINITY){return _u(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,Du(e),s,l,d)}function _u(e,t,n,r,o,a,i,s,l,d,c=0,u,f=o){let p=u?.detachedSpanHeightPtByCellId,m=vl(t,0,t.length),g=Number.isFinite(c)&&c>0?c/2:0,x=l.measurer.lineMetrics(mn).height,h=e.height,b=h.rule==="exact"?h.valuePt:void 0,P=h.rule==="atLeast"?h.valuePt:void 0,k=[],{rowDeps:v,flushDeferred:L}=vh(l,k),w=a&&l.pageOccurrenceKey?{...v,nextLineId:(B,R,W)=>v.nextLineId(B,R,W,l.pageOccurrenceKey())}:v,S=b===void 0?o:Math.min(o,r+Math.max(0,b)),C=[],T=false,N=false,M=r;for(let B=0;B<e.cells.length;B+=1){let R=e.cells[B],W=d[B]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false},A=R.gridSpan,z=R.gridColumn,q=n+vl(t,0,z),_=vl(t,z,Math.min(z+A,t.length))||m,X=Math.min(g,Math.max((_-Ky)/2,0)),U=q+X,j=Math.max(_-2*X,Ky),K=wl(R.margins,R.borders),pe=i?ir(R.borders.top):K.top,Fe=r+pe,Ie=p?.get(R.id),me=Ie!==void 0,ge=me?Math.min(f,r+Ie):S,Be=ge-K.bottom,we=[],Se=Fe,ye=W,De=true,se=false,_e=false;if(!R.vMergeContinue)if(Be<Fe+.001)De=W.blockIndex>=R.blocks.length;else {let be=qy(R.blocks,U+K.left,U+j-K.right,Fe,Be,s,w,W,R.styleFormatting,true);we=be.blocks,Se=be.bottom,ye=be.cursor,De=be.complete,se=be.fitted,_e=be.nestedSplitBlocked,se&&(T=true),_e&&(N=true);}let Ze=Math.min(ge,se?Se+K.bottom:r+pe+x+K.bottom);Ze>M&&!me&&(M=Ze),C.push({cell:R,x:U,width:j,gridColumn:z,blocks:we,contentTop:Fe,contentBottom:Se,insets:{...K,top:pe},nextCursor:ye,complete:R.vMergeContinue?true:De,fitted:se,nestedSplitBlocked:_e});}M=Math.min(S,Math.max(M,r));for(let B of C){if(p?.has(B.cell.id)===true)continue;let R=B.fitted?B.contentBottom+B.insets.bottom:r+B.insets.top+x+B.insets.bottom;R>M&&R<=S+.001&&(M=R);}if(M<=r+.001&&C.length>0){let B=r;for(let R of C){let W=r+R.insets.top+x+R.insets.bottom;W>B&&(B=W);}M=Math.min(S,B);}M=Math.min(S,M);let y=false;if(b!==void 0){let B=r+b;B<=o+.001?(M=B,y=true):M=Math.min(o,M);}else {let B=i?0:u?.heightFloorPt??0,R=r+Math.max(P??0,B);R>M&&R<=o+.001&&C.every(A=>A.complete)&&(M=R);}M=Math.min(o,M);let G=Math.max(0,M-r),D=C.map(B=>{let R=B.blocks,W=y?true:B.complete;if(!B.cell.vMergeContinue&&W&&B.cell.vAlign!=="top"&&R.length>0){let A=B.contentBottom-B.contentTop,z=G-B.insets.top-B.insets.bottom-A;if(z>0){let q=B.cell.vAlign==="center"?z/2:z;R=Il(R,q);}}return {id:B.cell.id,gridColumn:B.gridColumn,...B.cell.gridColumnId?{gridColumnId:B.cell.gridColumnId}:{},gridSpan:B.cell.gridSpan,vMergeContinue:B.cell.vMergeContinue,...B.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...B.cell.shading===void 0?{}:{shading:B.cell.shading},blocks:R,box:{x:B.x,y:r,width:B.width,height:G}}}),F=y||C.every(B=>B.complete)?null:C.map(B=>B.nextCursor),E=y||C.every(B=>B.complete);return L(D,r,G),{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:D,box:{x:n,y:r,width:m,height:G}},bottom:M,remainder:E?null:F,fitted:T||e.cells.every(B=>B.vMergeContinue)||y,nestedSplitBlocked:N}}function dT(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function Hu(e,t,n,r,o,a=0,i,s){let l=0,d=s!==void 0,c={...dT(o),...d?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${l++}`};return ci(e,t,n,s??0,false,r,c,a,i).record.box.height}function cT(e,t,n,r,o,a,i,s,l){let d=u=>ci(e,t.columnWidthsPt,n,r,i,o,a,t.cellSpacingPt,u),c=d(s);return c.remainder===null||s===void 0?c:(l(),d(void 0))}var zu=(e,t,n,r,o)=>r.measuringOnly===true?null:Xy(o?{...e,rows:o}:e,t,n,r,Hu);function uT(e,t,n,r,o,a){if(o>=sl)return null;let i=Math.max(1,n-t),s=Vo(e,i,o,a.styleCascade,a.displayMode);if(!s||s.rows.length===0)return null;let l=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:h=>{l.push(h);}},c=t+ti(s,i),u=zu(s,c,o,d),f=[],p=r;for(let[h,b]of s.rows.entries()){let P=l.length,k=cT(b,s,c,p,o,d,false,Yy(u,h,p),()=>{l.length=P,u?.withdrawAt(h);});f.push(k.record),p=k.bottom;}let m=di(f,s,s.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of l)for(let b of m)if(b.cells.some(k=>k.blocks.some(v=>v.kind==="paragraph"&&v.paragraphId===h.paragraphId))){ru([h],b.cells,b.box.y,b.box.height,a);break}let g=vl(s.columnWidthsPt,0,s.columnWidthsPt.length),x=new Map;return {fragment:xl({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:m,box:{x:c,y:r,width:g,height:p-r}},s.columnWidthsPt,o,x),bottom:p}}function Zy(e,t){let{columnWidth:n,columnLeft:r,contentHeight:o,advanceColumn:a,anchorFrames:i,styleCascade:s,displayMode:l,deps:d,shiftAnchor:c,publishFragment:u}=t,f=n(),p=Vo(e,f,0,s,l);if(!p||p.rows.length===0)return;let m=p.columnWidthsPt.reduce((F,E)=>F+E,0),g=()=>p.float?ry(p.float,m,i()):r()+ti(p,n()),x=g();p.float&&p.float.vertAnchor==="text"&&!p.float.ySpec&&(t.cursorY=Math.max(0,Math.min(t.cursorY+p.float.yPt,o())));let h=F=>Hu(F,p.columnWidthsPt,x,0,d,p.cellSpacingPt),b=[];for(let F of p.rows)if(F.isHeader)b.push(F);else break;let P=0,k=t.cursorY,v=[],L=new Map,w=[],S=()=>{if(v.length===0)return;let F=di(v,p,w,d.borderOwnershipBudget,d.vMergeResolveBudget,void 0,c,d),E=F[F.length-1];u(xl({kind:"table",id:`${e.id}#f${P}`,tableId:e.id,fragmentIndex:P,rows:F,box:{x,y:k,width:p.columnWidthsPt.reduce((B,R)=>B+R,0),height:E.box.y+E.box.height-k}},p.columnWidthsPt,0,L)),P+=1,v=[],w=[];},C=F=>{if(b.length===0)return;let E=0;for(let B of b)E+=h(B);if(E>o()+.001)throw new zt("table-row-overheight",`Table header group (${b.length} row(s)) is taller than the page content box`);t.cursorY+E>o()+.001&&t.cursorY>0&&(S(),a(),x=g(),k=t.cursorY);for(let B of b){let R=ci(B,p.columnWidthsPt,x,t.cursorY,F,0,d,p.cellSpacingPt);if(R.bottom>o()+.001)throw new zt("table-row-overheight",`Table header row ${B.id} overflowed the page content box`);v.push(R.record),w.push(B),t.cursorY=R.bottom;}},T=F=>{S(),a(),x=g(),k=t.cursorY,C(true);};C(false);let N=p.rows.slice(b.length),M=zu(p,()=>x,0,d,N),y,G=0,D=(F,E)=>{y=$y(M,F,t.cursorY,o()),G=y?.heightFloorPt??(E?h(E):G);};for(let[F,E]of N.entries()){D(F,E);let B=Du(E),R=false,W=0,A=false;for(!(y!==void 0&&y.detachedSpanHeightPtByCellId===void 0)&&G<=o()+.001&&t.cursorY+G>o()+.001&&t.cursorY>0&&(T(),A=true,D(F));;){if(W+=1,W>Tl)throw new zt("table-row-fragment-limit",`Table row ${E.id} exceeded ${Tl} page fragments`);let q=o()-t.cursorY;if(q<=.001&&t.cursorY>0){if(A)throw new zt("table-row-overheight",`Table row ${E.id} cannot fit after repeated header rows`);T(),A=true,D(F);continue}if(!R&&G<=q+.001){let j=ci(E,p.columnWidthsPt,x,t.cursorY,false,0,d,p.cellSpacingPt,y,o());if(j.bottom>o()+.001)throw new zt("table-row-overheight",`Table row ${E.id} overflowed the page content box after placement`);let K=j.remainder!==null;if(v.push(j.record),w.push(K?Pl(E,R,true):E),t.cursorY=j.bottom,!K)break;B=j.remainder,R=true,A=false,T();continue}if(!R&&(E.cantSplit||E.height.rule==="exact")){if(t.cursorY>0&&!A){T(),A=true,D(F);continue}throw new zt("table-row-overheight",E.height.rule==="exact"?`Table row ${E.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${E.id} has w:cantSplit and is taller than the available page content`)}let _=_u(E,p.columnWidthsPt,x,t.cursorY,o(),false,R,0,d,B,p.cellSpacingPt,y);if(!_.fitted&&t.cursorY>0&&!A){T(),A=true,D(F);continue}if(!_.fitted)throw new zt(_.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",_.nestedSplitBlocked?`Table row ${E.id} contains a nested table taller than the page content box`:`Table row ${E.id} has content that cannot fit a page content box`);if(_.bottom>o()+.001)throw new zt("table-row-overheight",`Table row ${E.id} overflowed the page content box`);let X=_.remainder!==null,U=Pl(E,R,X);if(v.push(_.record),w.push(U),t.cursorY=_.bottom,!X)break;B=_.remainder,R=true,A=false,T();}}S();}function Jy(e){let t=e.picture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var Qy=new WeakMap,ju=new Map,fT=16,pT=32;function ob(e,t){let n=Qy.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkILTZTY3K_cjs.bb(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:ju,visited:1,deepest:0};else if((t<2||e.children.length>=fT)&&t<pT){let o=null,a=1,i=0;for(let s of e.children){let l=ob(s,t+1);if(a+=l.visited,l.deepest+1>i&&(i=l.deepest+1),l.atoms.size>0){o||(o=new Map);for(let[d,c]of l.atoms)o.set(d,c);}}r={atoms:o??ju,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,s=[{node:e,depth:0}];for(;s.length>0;){let l=s.pop();if(a+=1,a>chunkILTZTY3K_cjs.$a)break;l.depth>i&&(i=l.depth);let d=l.node;if(d.kind==="drawing"||chunkILTZTY3K_cjs.bb(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)s.push({node:d.children[c],depth:l.depth+1});}r={atoms:o.size>0?o:ju,visited:a,deepest:i};}return Qy.set(e,r),r}function eb(e){let t=ob(e.root,0);return t.visited>chunkILTZTY3K_cjs.$a||t.deepest>chunkILTZTY3K_cjs.Za.maxDrawingDepth?null:t.atoms}var Wu=new Float64Array(1),Cl=new Uint32Array(Wu.buffer);function mT(e){let t=2166136261,n=268435859,r=[];for(let o of e.components){r.push(o.fillHex??"",String(o.fillAlpha),o.strokeHex??"",String(o.strokeAlpha),String(o.strokeWidthEmu),String(o.subpathsEmu.length));for(let a of o.subpathsEmu){r.push(String(a.length));for(let i of a)Wu[0]=i.x,t=Math.imul(t^Cl[0],16777619),n=Math.imul(n^Cl[1],16777651),Wu[0]=i.y,t=Math.imul(t^Cl[1],16777619),n=Math.imul(n^Cl[0],16777651);}}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),r.join(","),(t>>>0).toString(36),(n>>>0).toString(36)].join(";")}function Gu(e){let t=e.position,n=e.anchor,r=e.picture,o=e.wrapGeometry,a=e.vectorShape;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??"",n?.simplePos?"sp":"pv",n?String(n.relativeHeight):"",n?n.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(":"):"",a?mT(a):"",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(":"):"",t?[t.horizontal.relativeFrom,t.horizontal.align??"",String(t.horizontal.offsetEmu??""),t.vertical.relativeFrom,t.vertical.align??"",String(t.vertical.offsetEmu??""),String(t.simplePosition.xEmu),String(t.simplePosition.yEmu)].join(":"):""].join("|")}function ui(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 gT=1;function Vu(e,t){if(e.kind==="drawing"||chunkILTZTY3K_cjs.bb(e)){t.push(e.id);return}if("children"in e)for(let n of e.children)Vu(n,t);}function hT(e){if(e.kind!=="paragraph")return [];let t=[];for(let n of e.children)Vu(n,t);return Object.freeze(t)}function yT(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:s}=e,l=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,m=new WeakMap,g=0,x=chunkILTZTY3K_cjs.ab(r,t),h=chunkILTZTY3K_cjs.Xa(r),b=chunkILTZTY3K_cjs.fb(n,{resolveRelationship:x,resolveSchemeColor:h.resolveSchemeColor,resolveStyleMatrixReference:h.resolveStyleMatrixReference}),P=eb(n),k=(T,N)=>{if(l||u.has(N))return;u.add(N);let M=d;o.resolveForProjection(T).then(y=>{l||M!==d||(c.set(N,y),y.kind==="ready"&&i(y.validatedHandle),g+=1,f.set(N,g),a(t));}).catch(()=>{l||M!==d||(c.set(N,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(N,g),a(t));}).finally(()=>{u.delete(N);});},v=T=>{let N=Jy(T),M=c.get(N);if(M)return M;let y=T.picture?.linkedRelationshipId;if(y){let D=o.resolveLinked(t,y);return c.set(N,D),g+=1,f.set(N,g),D}let G=Object.freeze({kind:"pending",resourceKey:N});return c.set(N,G),g+=1,f.set(N,g),k(T,N),G},L=T=>b.get(T)??null,w=Object.freeze({ownerPartName:t,projectionForAtom:L,project:T=>L(T.id),resourceOf:v}),S=T=>{let N=m.get(T);if(N)return N;let M=hT(T),y=null,G=(F,E)=>{if(!(E>=gT))for(let B of F){let R=b.get(B)?.textboxStory;if(!R)continue;let W=[];if(Vu(R.content,W),W.length!==0){y||(y=[...M]);for(let A of W)y.push(A);G(W,E+1);}}};G(M,0);let D=y??M;return m.set(T,D),D};return {context:w,cacheTokenForPart:()=>`${t}|${g}|${d}|${b.size}`,drawingTokenForParagraph:T=>{let N=p.get(T);if(N?.resourceEpoch===g)return N.token;let M=S(T);if(M.length===0)return p.set(T,{resourceEpoch:g,token:""}),"";let G=M.map(D=>{let F=b.get(D);if(!F)return `${D}:refused`;let E=v(F);return [D,Gu(F),ui(E),String(f.get(Jy(F))??0)].join("|")}).sort().join(";");return p.set(T,{resourceEpoch:g,token:G}),G},isCompatibleWith:(T,N)=>{let M=chunkILTZTY3K_cjs.Xa(N);if(M.cacheToken!==h.cacheToken)return false;if(T===n)return true;let y=eb(T);if(P&&y&&P.size===y.size){let D=true;for(let[F,E]of P)if(y.get(F)!==E){D=false;break}if(D)return true}let G=chunkILTZTY3K_cjs.fb(T,{resolveRelationship:chunkILTZTY3K_cjs.ab(N,t),resolveSchemeColor:M.resolveSchemeColor,resolveStyleMatrixReference:M.resolveStyleMatrixReference});if(G.size!==b.size)return false;for(let[D,F]of b){let E=G.get(D);if(!E||Gu(E)!==Gu(F))return false}return true},dispose:()=>{l=true,d+=1;for(let T of c.values())T.kind==="ready"&&s(T.validatedHandle);c.clear(),u.clear(),f.clear();}}}var tb=0;function AE(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkILTZTY3K_cjs.sb(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,s=new Map,l=new Map,d=m=>{s.set(m.resourceKey,m);let g=chunkILTZTY3K_cjs.hb(m);g&&l.set(m.resourceKey,g);},c=m=>{s.delete(m.resourceKey);let g=l.get(m.resourceKey);g&&(chunkILTZTY3K_cjs.ib(g),l.delete(m.resourceKey));},u=(m,g)=>{let h=g.currentPackage().parts.get(m)??a.get(m);if(h)return h;if(m===g.part().name)return g.part();throw new Error(`Missing inline drawing part ${m}`)},f=(m,g)=>{let x=o.get(m);if(x)return x;let h=u(m,g);a.set(m,h);let b=yT({ownerPartName:m,part:h,pkg:g.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:d,forgetReadyHandle:c});return o.set(m,b),tb+=1,i.set(b,tb),b},p=m=>{let g=m.currentPackage();if(g.partBytes===n.partBytes&&g.relationships===n.relationships&&g.contentTypes===n.contentTypes){for(let[h,b]of o){let P=g.parts.get(h)??(h===m.part().name?m.part():void 0);if(P&&b.isCompatibleWith(P,g)){a.set(h,P);continue}b.dispose(),o.delete(h),a.delete(h);}t=m.packageRevision(),n=g;return}for(let h of o.values())h.dispose();o.clear(),a.clear();for(let h of l.values())chunkILTZTY3K_cjs.ib(h);l.clear(),s.clear(),e.resourceLookup||r.dispose(),t=m.packageRevision(),n=g,r=e.resourceLookup??chunkILTZTY3K_cjs.sb(g,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return f(e.session.part().name,e.session).context},contextForPart(m){return f(m,e.session).context},cacheTokenForPart(m){let g=f(m,e.session);return `${i.get(g)??0}|${g.cacheTokenForPart()}`},drawingTokenForParagraph(m,g){let x=f(g,e.session);return `${i.get(x)??0}|${x.drawingTokenForParagraph(m)}`},mintValidatedBytes(m,g){return chunkILTZTY3K_cjs.gb(m,g)},sync(m){m.packageRevision()!==t&&p(m);},dispose(){for(let m of o.values())m.dispose();o.clear(),a.clear();for(let m of l.values())chunkILTZTY3K_cjs.ib(m);l.clear(),s.clear(),e.resourceLookup||r.dispose();}})}function ab(e,t,n){if(t===void 0)return rb(e,n);let r=nb.get(e);if(r&&r.epoch===t)return r.token;let o=rb(e,n);return nb.set(e,{epoch:t,token:o}),o}var nb=new WeakMap;function rb(e,t){let n=[],r=o=>{if(o.kind==="paragraph"){let a=t(o);a&&n.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),n.sort().join(";")}var ib=new WeakMap;function bT(e){let t=ib.get(e);if(t!==void 0)return t;let n=xT(e);return ib.set(e,n),n}function xT(e){let t=n=>{if(n.kind==="textValue"||chunkILTZTY3K_cjs.Kc(n)||chunkILTZTY3K_cjs.Ic(n)!==null)return false;if(n.kind==="text"||n.localName==="t"){for(let r of n.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of n.children)if(r.kind!=="textValue"&&t(r))return true;return false};for(let n of e.children)if(n.kind!=="textValue"&&t(n))return true;return false}function cb(e,t){for(let n of t.resultParagraphIds){let r=chunkILTZTY3K_cjs.Ca(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&bT(r))return true}return false}var sb=new WeakMap,lb=new WeakMap,db=new WeakMap;function $u(e){let t=sb.get(e);if(t)return t;let n=new Set;for(let r of chunkILTZTY3K_cjs.fd(e))n.add(r.beginParagraphId),n.add(r.endParagraphId);return sb.set(e,n),n}function Xu(e){let t=lb.get(e);if(t)return t;let n=new Set;for(let r of chunkILTZTY3K_cjs.fd(e))cb(e,r)||n.add(r.beginParagraphId);return lb.set(e,n),n}function Yu(e){let t=db.get(e);if(t)return t;let n=new Set;for(let r of chunkILTZTY3K_cjs.fd(e))if(!cb(e,r))for(let o of r.resultParagraphIds)n.add(o);return db.set(e,n),n}var ST=4,Ku=256;function RT(e){return `txbx-${e}`}var ub=new WeakMap;function yb(e,t,n,r="all-markup"){if(!t||t.nums.size===0)return;let o=ub.get(e);if(o&&o.rawIndex===t&&o.styleCascade===n&&o.displayMode===r)return o.listItems;let a=ri(t,n),i=nu(e,r),s=dl(i,a,n),l=s.size>0?s:void 0;return ub.set(e,{rawIndex:t,styleCascade:n,displayMode:r,listItems:l}),l}var wT=2e4,PT=Object.freeze({contents:Object.freeze([]),truncated:false}),fb=new WeakMap;function IT(e){let t=fb.get(e);if(t)return t;let n=[],r=0,o=false,a=[e];for(;a.length>0;){let s=a.pop();if(r+=1,r>wT){o=true;break}if(s.kind!=="textValue"&&s.localName==="txbxContent"){n.push(s);continue}if("children"in s)for(let l=s.children.length-1;l>=0;l-=1)a.push(s.children[l]);}let i=n.length>0||o?Object.freeze({contents:Object.freeze(n),truncated:o}):PT;return fb.set(e,i),i}var pb=1,mb=new WeakMap;function vT(e){let t=mb.get(e);return t===void 0&&(t=pb,pb+=1,mb.set(e,t)),t}var gb=new WeakMap;function bb(e,t,n,r="all-markup"){if(!t||t.nums.size===0)return "";let o=IT(e);if(o.contents.length===0&&!o.truncated)return "";let a=gb.get(e);if(a&&a.rawIndex===t&&a.styleCascade===n&&a.displayMode===r)return a.token;let i=[];for(let l of o.contents){let d=yb(l,t,n,r);if(d)for(let[c,u]of d)i.push(`${c}=${u.cacheToken}`);}o.truncated&&i.push(`truncated:${vT(t)}`);let s=i.length===0?"":`|txbxlist:${i.join(",")}`;return gb.set(e,{rawIndex:t,styleCascade:n,displayMode:r,token:s}),s}function kl(e,t){let n=e.textboxStory;if(!n)return null;let r=ct(e.extentEmu.cx),o=ct(e.extentEmu.cy),a=ct(n.insetsEmu.left),i=ct(n.insetsEmu.right),s=ct(n.insetsEmu.top),l=ct(n.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-s-l),u=ct(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((t.depth??0)>=ST)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:s},...f,fallbackReason:"textbox-nesting-limit"};let m=nu(n.content,t.displayMode),g=yb(n.content,t.numberingIndex,t.styleCascade,t.displayMode),x=RT(e.drawingNodeId),h=0,b=Er(m,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${x}-line-${h++}`,styleCascade:t.styleCascade,...g?{listItems:g}:{},...t.pageContext?{pageContext:t.pageContext}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...t.displayMode?{displayMode:t.displayMode}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:{}}),P=b.blocks,k=b.bottom,v,L=[];if(P.length>Ku){hb(P.slice(Ku),L),P=P.slice(0,Ku);let C=P[P.length-1];k=C?C.box.y+C.box.height:0,v="textbox-fragment-limit";}if(k>c+.001){let C=P.filter(T=>T.box.y<c-.001);C.length<P.length&&(hb(P.filter(T=>T.box.y>=c-.001),L),P=C,v=v??"textbox-height-clip");}let w=Math.max(0,c-k),S=n.verticalAnchor==="center"?w/2:n.verticalAnchor==="bottom"?w:0;return {fragments:P,flowHeight:k,contentOffset:{x:a,y:s+S},...f,...v?{fallbackReason:v}:{},...L.length>0?{clippedResourceToken:L.join("!")}:{}}}function hb(e,t){wa({fragments:e},n=>{t.push(ui(n.resource));});}var TT=128,xb=new WeakMap;function CT(e){let t=xb.get(e);if(t!==void 0)return t;let n=chunk5V6FNKBE_cjs.y(chunkILTZTY3K_cjs.na(e));return xb.set(e,n),n}function kT(e){let t=Math.max(1,Math.floor(e)),n=new Map;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>t;){let a=n.keys().next();if(a.done)break;n.delete(a.value);}},get size(){return n.size}}}function OT(e,t,n,r,o,a,i,s=TT,l,d=We,c,u,f,p,m,g){let x=gc(e.root),h=kT(s),b=An(e,d),P=Br({numberingIndex:g?.numberingIndex,styleCascade:a},b).listItems,k=CT(e),v,L=w=>{let S=Jn(x)||c?w:void 0,C=S?.pageNumber??p?.pageNumber??1,T=Rc(S,x)+(c?`|pn:${C}`:"");if(T===""){if(v)return v}else {let E=h.get(T);if(E)return E}let N=0,M=[],y=()=>{let E=S?.pageNumber??p?.pageNumber??1,B=p?.pageWidth??t,R=p?.pageHeight??Math.max(1,t),W=p?.marginLeft??0,A=p?.marginRight??0,z=p?.marginTop??0,q=p?.marginBottom??0,_=Math.max(1,R-z-q);return Object.freeze({pageNumber:E,pageWidth:B,pageHeight:R,marginLeft:W,marginRight:A,marginBottom:q,contentInsetTop:z,contentInsetBottom:q,contentWidth:t,contentHeight:_,contentBandHeight:_,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},G=Object.freeze([]),D;if(c){let E=false;for(let B=0;B<vr;B+=1){M.splice(0,M.length),N=0,D=Er(b,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+T+(d===We?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${N++}`,styleCascade:a,...P?{listItems:P}:{},pageContext:S,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:y,pageContentClip:()=>Xa(y()),layoutTextboxStoryFor:W=>kl(W,{measurer:n,producer:r+T+(d===We?"":`|rev:${d}`),cache:o,styleCascade:a,...S?{pageContext:S}:{},...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{},...g?.numberingIndex?{numberingIndex:g.numberingIndex}:{}}),collectAnchoredDrawings:W=>{M.push(...W);},columnBoxForParagraph:W=>Object.freeze({x:0,y:W.y,width:t,height:W.height}),pageExclusionZones:()=>G,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let R=Xc(M,c,0,t);if(R.length===0){E=true,G=R;break}if(B>0&&bn(G)===bn(R)){E=true,G=R;break}G=R;}if(!E)throw new No(`header/footer exclusion reflow did not converge within ${vr} passes`)}else D=Er(b,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+T+(d===We?"":`|rev:${d}`),nextLineId:()=>`hf-${e.name}-line-${N++}`,styleCascade:a,...P?{listItems:P}:{},pageContext:S,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...m?{documentProperties:m}:{}});let F={partName:e.name,part:e,contentKey:k,fragments:D.blocks,flowHeight:D.bottom,pageFieldNeeds:x,...M.length>0?{anchoredDrawings:Object.freeze([...M])}:{},withPageContext:E=>!Jn(x)&&!F.anchoredDrawings?.length?v??F:L(E)};return T===""?v=F:h.set(T,F),F};return L(i)}function Nr(e,t,n){let r=n-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 Pc(u,f,r),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)}))}},s=a(e.header),l=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...s?{header:s}:{},...l?{footer:l}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}var Sb=new WeakMap;function Uu(e){let t=Sb.get(e);if(t!==void 0)return t;let n=[];Kd(e,o=>{let a=o.marker;a&&n.push(`${o.paragraphId}=${a.text}@${a.numFmt}:${a.level}`);});let r=n.length===0?"":`|list:${n.join(",")}`;return Sb.set(e,r),r}var Rb=new WeakMap;function qu(e){let t=Rb.get(e);if(t!==void 0)return t;let n=[];wa(e,o=>{n.push(ui(o.resource)),o.kind==="anchoredDrawing"&&o.textboxStory?.clippedResourceToken&&n.push(`clip:${o.textboxStory.clippedResourceToken}`);});let r=n.length===0?"":`!${n.join("!")}`;return Rb.set(e,r),r}function wb(e,t,n){if(!e)return "";let r=(o,a)=>[...a].map(([i,s])=>`${o}${i}=${s.flowHeight}@${s.contentKey}${qu(s)}${Uu(s)}`).sort().join(",");return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+r("h",e.headers)+";"+r("f",e.footers)}function Zu(e,t,n){return e?.titlePage&&n===0?"first":e?.evenAndOddHeaders&&(t+n+1)%2===0?"even":"default"}function Pb(e){let{furniture:t,pageHeight:n,marginTop:r,marginBottom:o}=e,a=n*.4,i=new Map,s=(l,d,c)=>Math.min(a,Math.max(c,d?l+d.flowHeight:0));return l=>{if(l===0&&e.continuedPageInsets)return e.continuedPageInsets;let d=Zu(t,e.pageIndexStart,l),c=i.get(d);if(c)return c;let u=s(e.headerDistance,t?.headers.get(d),r),f=s(e.footerDistance,t?.footers.get(d),o),p=Object.freeze({top:u,bottom:f,height:n-u-f});return i.set(d,p),p}}var Ib=new WeakMap;function fi(e,t){Ib.set(e,t);}function Ju(e,t,n,r){return Ib.get(e)?.(t,n,r)}var Ar=24;function vb(e){let{furniture:t,geometry:n,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(n.height+Ar),width:n.width,height:n.height}),s=c=>Zu(t,a,c),l=(c,u,f)=>{if(!t)return;let p=s(u),m=(c==="header"?t.headers:t.footers).get(p);if(!m)return;let g=L=>{let w=c==="header"?f.y+r:f.y+n.height-o-L.flowHeight;return {kind:c,variant:p,partName:L.partName,...L.part?{part:L.part}:{},...L.rId?{rId:L.rId}:{},box:{x:f.x+n.margin.left,y:w,width:e.contentWidth,height:L.flowHeight},fragments:L.fragments,...L.anchoredDrawings?{anchoredDrawings:L.anchoredDrawings}:{}}},x=a+u+1,h={pageNumber:x,pageCount:Math.max(x,e.pageCount()+1),sectionPageCount:u+1},b=m.pageFieldNeeds,k=Jn(b)||(m.anchoredDrawings?.length??0)>0?m.withPageContext(h):m,v=g(k);return Jn(b)?{...v,pageFieldProjector:L=>g(m.withPageContext(L))}:v};return {pageBox:i,variantFor:s,furnitureFor:l,overflowShellAt:(c,u)=>{let f=c-a,p=l("header",f,u),m=l("footer",f,u);return {insets:e.insetsFor(f),...p?{header:p}:{},...m?{footer:m}:{}}}}}function Tb(e){if(e.delta===0)return true;let t=e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity,r=!(e.titlePage||e.continuedInsets)||e.markPageCount>0&&e.delta+e.markPageCount>0;return t&&r&&!e.hasNoteReserves&&!e.hasExclusionZones}var BT="http://schemas.openxmlformats.org/wordprocessingml/2006/main",MT="http://schemas.microsoft.com/office/word/2010/wordml",LT="http://schemas.microsoft.com/office/word/2012/wordml";function FT(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===BT)return t.value}}function Ko(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function Dr(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function Hn(e,t){let n=Dr(e,t);return n?FT(n):void 0}function pi(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Ol(e){if(!e)return "richText";for(let t of e.children){if(t.kind==="textValue")continue;let n=t.kind,r=t.localName,o=t.namespaceUri;if(n==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(n==="contentControlComboBox"||r==="comboBox")return "comboBox";if(n==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===MT)return "checkbox";if(r==="repeatingSection"&&o===LT)return "repeatingSection"}return "richText"}function Cb(e){let t=(n,r)=>{for(let o of n)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(chunkILTZTY3K_cjs.nc(o)&&r<chunkILTZTY3K_cjs.mc){let a=t(chunkILTZTY3K_cjs.qc(o),r+1);if(a)return a}}return null};return t(chunkILTZTY3K_cjs.qc(e),0)??"inline"}function Uo(e){let t=kb.get(e);if(t!==void 0)return t;let n=ET(e);return Bl!==null&&Bl===n?n=Bl:Bl=n,kb.set(e,n),n}var Bl=null,kb=new WeakMap,Ob=new WeakMap;function ET(e){let t=(n,r)=>{if(n.kind==="textValue")return "";let o=n.kind==="paragraph"||n.kind==="table"||chunkILTZTY3K_cjs.nc(n);if(o){let i=Ob.get(n);if(i!==void 0&&i.depth===r)return i.token}let a;if(chunkILTZTY3K_cjs.nc(n)){if(r>=chunkILTZTY3K_cjs.mc)return "";let i=Ko(n),s=[n.id,Hn(i,"alias")??"",Hn(i,"tag")??"",pi(Hn(i,"lock")),Ol(i),Dr(i,"showingPlcHdr")?"1":"0",Dr(i,"dataBinding")?"1":"0"].join(":"),l=chunkILTZTY3K_cjs.qc(n).map(d=>t(d,r+1)).filter(d=>d.length>0);a=[s,...l].join("|");}else a=n.children.map(i=>t(i,r)).filter(i=>i.length>0).join("|");return o&&Ob.set(n,{depth:r,token:a}),a};return t(e.root,0)}function Mb(e,t){let n=[t],r=new Set([t]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),n.push(a.part));return n}var Qu=new WeakMap,Bb=new WeakMap;function Lb(e){if(e.length===1)return mi(e[0]);let t=Qu.get(e[0]);if(t&&Ml(t.parts,e))return t.index;let n=e.map(d=>mi(d)),r=Bb.get(n[0]);if(r&&Ml(r.indexes,n))return Qu.set(e[0],{parts:e,index:r.index}),r.index;let o=[],a=new Set,i=new Set;for(let d of n){for(let c of d.controls)o.push(c);for(let c of d.neededBlockIds)a.add(c);for(let c of d.neededParagraphIds)i.add(c);}let s=`${[...a].sort().join(",")};${[...i].sort().join(",")}`,l={controls:o,neededBlockIds:a,neededParagraphIds:i,neededToken:s};return Bb.set(n[0],{indexes:n,index:l}),Qu.set(e[0],{parts:e,index:l}),l}function Ll(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(chunkILTZTY3K_cjs.nc(e)){let n=0;for(let r of chunkILTZTY3K_cjs.qc(e))n+=Ll(r);return n}let t=0;for(let n of e.children)t+=Ll(n);return t}var ef=new WeakMap;function Ml(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var Fb=new WeakMap;function NT(e){for(let t of chunkILTZTY3K_cjs.Hf(e))if(t.root.kind!=="textValue"){for(let n of t.root.children)if(n.kind!=="textValue")return n}return null}function mi(e){let t=ef.get(e);if(t!==void 0)return t;let n=DT(e),r=NT(e),o=r?Fb.get(r):void 0;if(o&&Ml(o.lists,n))return ef.set(e,o.index),o.index;let a=[];for(let d of n)for(let c of d)a.push(c);let i=new Set,s=new Set;for(let d of a){for(let c of d.blockIds)i.add(c);d.paragraphId!==void 0&&s.add(d.paragraphId);}let l={controls:a,neededBlockIds:i,neededParagraphIds:s,neededToken:`${[...i].sort().join(",")};${[...s].sort().join(",")}`};return r&&Fb.set(r,{lists:n,index:l}),ef.set(e,l),l}var AT=Object.freeze([]);function DT(e){let t=[],n=(i,s)=>{for(let l of i){if(l.kind==="paragraph"||l.kind==="table"){s.push(l.id);continue}if(chunkILTZTY3K_cjs.nc(l)){n(chunkILTZTY3K_cjs.qc(l),s);continue}(l.kind==="tableRow"||l.kind==="tableCell")&&n(l.children,s);}},r=(i,s,l,d,c)=>{let u=l;for(let f of i)if(!(f.kind==="textValue"||f.kind==="paragraphProperties")){if(chunkILTZTY3K_cjs.nc(f)){if(d>=chunkILTZTY3K_cjs.mc){u+=Ll(f);continue}let p=Ko(f),m=pi(Hn(p,"lock")),g=[...c,m],x=u,h=r(chunkILTZTY3K_cjs.qc(f),s,u,d+1,g);t.push({control:f,nestingDepth:d,lockStack:g,level:"inline",paragraphId:s,range:{start:x,end:h},blockIds:[]}),u=h;continue}if(f.kind==="hyperlink"){u=r(f.children,s,u,d,c);continue}u+=Ll(f);}return u},o=(i,s,l)=>{for(let d of i){if(d.kind==="textValue")continue;if(d.kind==="paragraph"){r(d.children,d.id,0,s,l);continue}if(d.kind==="table"){for(let x of d.children)x.kind==="tableRow"&&o([x],s,l);continue}if(d.kind==="tableRow"){for(let x of d.children)x.kind==="tableCell"?o(x.children,s,l):chunkILTZTY3K_cjs.nc(x)&&o([x],s,l);continue}if(!chunkILTZTY3K_cjs.nc(d)||s>=chunkILTZTY3K_cjs.mc)continue;let c=Ko(d),u=pi(Hn(c,"lock")),f=[...l,u],p=Cb(d),m=chunkILTZTY3K_cjs.qc(d);if(p==="inline"){o(m,s+1,f);continue}let g=[];n(m,g),t.push({control:d,nestingDepth:s,lockStack:f,level:p,blockIds:g}),o(m,s+1,f);}},a=[];for(let i of chunkILTZTY3K_cjs.Hf(e))if(i.root.kind!=="textValue")for(let s of i.root.children){if(s.kind==="textValue")continue;let l=Eb.get(s);if(l!==void 0){a.push(l);continue}let d=t.length;o([s],0,[]);let c=t.length===d?AT:Object.freeze(t.slice(d));Eb.set(s,c),a.push(c);}return a}var Eb=new WeakMap,tf=1<<20,Nb=new WeakMap,Ab=null,Db=0;function _T(e){return e!==Ab&&(Ab=e,Db+=1),Db}function HT(e,t,n,r){let o=Nb.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],s=e.index*tf,l=0,d=0,c=p=>l===0&&d===0?p:{x:p.x+l,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){t.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c(m.box)}));let g=t.neededParagraphIds.has(m.paragraphId);for(let x of m.lines){let h=s;if(s=Math.min(s+1,e.index*tf+tf-1),!g)continue;let b=Math.max(0,x.box.height-x.leading-(x.trailingSpacing??0));for(let P of x.spans)i.push({pageIndex:p,paragraphId:P.range.paragraphId,start:P.range.start,end:P.range.end,line:h,box:{x:P.box.x+l,y:P.box.y+x.leading+d,width:P.box.width,height:b}});}return}t.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 x of g.cells)for(let h of x.blocks)u(p,h);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){l=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}l=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return Nb.set(e,f),f}function zT(e,t,n){let r=_T(t.neededToken),o=new Map,a=new Map,i=new Set;for(let s of e.pages){let l=HT(s,t,r);for(let d of l.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of l.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 jT(e,t,n){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of t.blocksById.get(a)??[]){let s=r.get(i.pageIndex);s?s.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let s=Ia(i);return s?[{pageIndex:a,box:s}]:[]})}function GT(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),s=0,l=o.length;for(;!i&&s<l;){let d=s+(l-s>>1);(t.start===t.end?o[d].end<t.start:o[d].end<=t.start)?s=d+1:l=d;}i&&(s=0);for(let d=s;d<o.length;d+=1){let c=o[d];if(c.end<=t.start)continue;if(c.start>=t.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&&t.start===t.end){let d=[],c=new Set;for(let u=s;u<o.length;u+=1){let f=o[u];if(f.start>t.start){if(i)continue;break}if(t.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*(t.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=Ia(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}var _b=new WeakMap;function WT(e){let t=_b.get(e);if(t!==void 0)return t;let n=Ko(e),r=Hn(n,"alias"),o=Hn(n,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:Ol(n),placeholder:Dr(n,"showingPlcHdr")!==void 0,bound:Dr(n,"dataBinding")!==void 0};return _b.set(e,a),a}function VT(e,t,n){let r=e.level==="inline"&&e.paragraphId&&e.range?GT(e.paragraphId,e.range,t):jT(e.blockIds,t);return {...of(e),fragments:r}}function $T(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];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 XT(e,t){return e.id===t.id&&e.alias===t.alias&&e.tag===t.tag&&e.controlType===t.controlType&&e.lock===t.lock&&e.effectiveLock===t.effectiveLock&&e.placeholder===t.placeholder&&e.bound===t.bound&&e.nestingDepth===t.nestingDepth&&e.level===t.level&&$T(e.fragments,t.fragments)}function qo(e,t){if(!e)return t.length===0;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(!XT(e[n],t[n]))return false;return true}function nf(e,t){return {revision:e.revision,pages:e.pages,...t.contentControls!==void 0?{contentControls:t.contentControls}:{},...t.controlContextToken!==void 0?{controlContextToken:t.controlContextToken}:{}}}var Hb=new WeakMap;function rf(e,t,n=Uo(t),r){let o=Mb(e,t);if(o.length>1){let f=o.map(p=>Uo(p));n=f.some(p=>p!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===n&&qo(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:n}}let a=Lb(o),i=zT(e,a),s=a.controls.map(f=>VT(f,i)),l=new Map;for(let f of s)for(let p of f.fragments){let m=l.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):l.set(p.pageIndex,[g]);}if(e.controlContextToken===n&&qo(e.contentControls,s)&&e.pages.every(f=>qo(f.contentControls,l.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=l.get(f.index)??[];if(qo(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=Hb.get(f);if(m&&qo(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return Hb.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&qo(e.contentControls,s)?e:{revision:e.revision,pages:u,contentControls:s,controlContextToken:n}}function YT(e,t){return mi(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):zb(r.control).some(o=>t.has(o)):true).map(of)}function zb(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkILTZTY3K_cjs.nc(o)){n(chunkILTZTY3K_cjs.qc(o));continue}n(o.children);}};return n(chunkILTZTY3K_cjs.qc(e)),t}function KT(e,t){let n=null;for(let r of mi(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||zb(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?of(n):null}function of(e){let t=WT(e.control);return {id:e.control.id,...t.alias!==void 0?{alias:t.alias}:{},...t.tag!==void 0?{tag:t.tag}:{},controlType:t.controlType,lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:Ki(e.lockStack),placeholder:t.placeholder,bound:t.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var Fl=4096,Jt=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 af(e,t,n=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<=0||r>n?t:r}function _r(e,t){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let n=Number(e);return !Number.isFinite(n)||Math.abs(n)>31680?t:n}function $b(e,t,n=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<0||r>n?t:r}var et=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},Hr=(e,t)=>{if(e.kind!=="textValue"){for(let n of e.children??[])if(n.kind!=="textValue"&&"localName"in n&&n.localName===t)return n}};function jb(e,t,n){let r=et(e,t);return r===void 0?n:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:n}function UT(e){if(!e)return 1;let t=et(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function qT(e,t,n){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=t||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:af(et(o,"w"),1,31680),gapTwips:a===t-1?0:$b(et(o,"space"),n)});}return r}function ZT(e){let t=e?Hr(e,"type"):void 0,n=t?et(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var JT=new Set(["hyphen","period","colon","emDash","enDash"]);function Xb(e){let t=Hr(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=et(t,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let s=Number(r);Number.isFinite(s)&&s>=0&&s<=9999&&(n.start=s);}let o=et(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=et(t,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let s=Number(a);Number.isFinite(s)&&s>=0&&s<=9&&(n.chapStyle=s);}let i=et(t,"chapSep");return i!==void 0&&JT.has(i)&&(n.chapSep=i),n}var Gb=new WeakMap;function El(e){if(!e)return Jt;let t=Gb.get(e);if(t!==void 0)return t;let n=QT(e);return Gb.set(e,n),n}function QT(e){let t=Hr(e,"pgSz"),n=Hr(e,"pgMar"),r=Hr(e,"cols"),o=Jt,a=t?et(t,"orient"):void 0,i=t?af(et(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,s=t?af(et(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,l=Xb(e),d=UT(r),c=r?$b(et(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?jb(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:s},margins:{topTwips:n?_r(et(n,"top"),1440):o.margins.topTwips,rightTwips:n?_r(et(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?_r(et(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?_r(et(n,"left"),1440):o.margins.leftTwips,headerTwips:n?_r(et(n,"header"),720):o.margins.headerTwips,footerTwips:n?_r(et(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?_r(et(n,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?jb(r,"sep",false):false,definitions:u?[]:qT(r,d,c)},landscape:a==="landscape"||i>s,titlePage:chunkILTZTY3K_cjs.la(e,"titlePg"),breakType:ZT(e),...l!==void 0?{pageNumbering:l}:{}}}function eC(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return Hr(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}var Wb=new WeakMap;function Nl(e){let t=Wb.get(e);if(t!==void 0)return t??void 0;let n=e.children.find(a=>a.kind==="paragraphProperties"),r=n?Hr(n,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return Wb.set(e,o??null),o}function tC(e){let t=Yb(e);return t[t.length-1]?.properties??Jt}function Yb(e,t="all-markup"){return Kb(e,t).sections}function Kb(e,t="all-markup"){return sf(e,An(e,t))}var Vb=chunkILTZTY3K_cjs.Mf(16);function sf(e,t){let n=Vb.get(t);if(n&&n.part===e)return n.result;let r=nC(e,t);return Vb.set(t,{part:e,result:r}),r}function nC(e,t){let n=[],r=0,o=false;for(let i=0;i<t.length;i+=1){let s=t[i];if(s.kind!=="paragraph")continue;let l=Nl(s);if(l){if(n.length>=Fl){o=true;continue}n.push({index:n.length,properties:El(l),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(n.length>0){let i=n[n.length-1];n[n.length-1]={...i,blockEndExclusive:t.length};}return {sections:n,truncated:true}}let a=eC(e);if(r<t.length||n.length===0){if(n.length>=Fl){let i=n[n.length-1];return n[n.length-1]={...i,blockEndExclusive:t.length},{sections:n,truncated:true}}n.push({index:n.length,properties:El(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=Fl)return {sections:n,truncated:true};n.push({index:n.length,properties:El(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function zr(e){let t=chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.pageSize.widthTwips)),n=chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.pageSize.heightTwips)),r=chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.margins.rightTwips)),a=chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.margins.topTwips)),i=chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.margins.bottomTwips));return t-r-o<=0||n-a-i<=0?va:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(Math.max(0,e.margins.headerTwips))),footerDistance:chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(Math.max(0,e.margins.footerTwips)))}}var Zo=1;function lf(e,t){let n=Math.max(Zo,t),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,s;if(a){i=o.map(p=>Math.max(Zo,chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(p.widthTwips)))),s=o.slice(0,-1).map(p=>Math.max(0,chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(p.gapTwips))));let c=s.reduce((p,m)=>p+m,0),u=Math.max(r*Zo,n-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(Zo,m*p));}}else {let c=Math.max(0,chunkILTZTY3K_cjs.ld(chunkILTZTY3K_cjs.jd(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*Zo)/(r-1||1)));s=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(Zo,(n-s.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let l=[],d=0;for(let c=0;c<r;c+=1)l.push(d),d+=i[c]+(s[c]??0);return {count:r,widths:i,gaps:s,lefts:l,separator:e.separator===true&&r>1}}function rC(e,t,n){return gi(e,t,()=>n)}function gi(e,t,n){let r=[],o=null,a=-1,i=-1;for(let s of t){let l=n(s.sectionIndex);if(s.customMarkFollows){r.push({noteId:s.noteId,mark:null});continue}o===null?(o=l.numStart,a=s.sectionIndex,i=s.pageIndex??-1):l.numRestart==="eachSect"&&s.sectionIndex!==a?(o=l.numStart,a=s.sectionIndex):l.numRestart==="eachPage"&&s.pageIndex!==void 0&&s.pageIndex!==i?(o=l.numStart,i=s.pageIndex):l.numRestart==="eachSect"?a=s.sectionIndex:l.numRestart==="eachPage"&&s.pageIndex!==void 0&&(i=s.pageIndex);let d=o;o+=1,r.push({noteId:s.noteId,mark:Mn(l.numFmt,d),displayNumber:d});}return r}function Ub(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var Jo=chunkILTZTY3K_cjs.ge,hi=512,df=6,oC=1/3;function qb(e,t){return `note-${e}-${t}`}function aC(e){if(!e)return [];let t=[];for(let n of chunkILTZTY3K_cjs.ie(e.root)){if(t.length>=Jo)break;chunkILTZTY3K_cjs.$d(n)&&t.push(n);}return t}function Zb(e,t){if(e){for(let n of chunkILTZTY3K_cjs.ie(e.root))if(chunkILTZTY3K_cjs._d(n)===t)return n}}function cf(e,t,n){let r=chunkILTZTY3K_cjs.Yd(e),o=chunkILTZTY3K_cjs.Zd(e);if(!r||o===null)return null;let a=chunkILTZTY3K_cjs.Pd(r,o),i=Xs(e),s=qb(r,o),l=0,d=Math.max(1,t),c=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,u=n.noteMarks?{...n.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},f=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,p=Br({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade},i).listItems,m=Er(i,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|${a}`,nextLineId:()=>`${s}-line-${l++}`,styleCascade:n.styleCascade,...p?{listItems:p}:{},noteMarks:u,...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),g=m.blocks,x=m.bottom,h;if(g.length>hi){g=g.slice(0,hi);let b=g[g.length-1];x=b?b.box.y+b.box.height:0,h="note-fragment-limit";}if(x>c){let b=[],P=0;for(let k of g){let v=k.box.y+k.box.height;if(v>c+.001&&b.length>0)break;b.push(k),P=v;}g=b,x=P,h=h??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkILTZTY3K_cjs._d(e),fragments:g,flowHeight:x,...h?{fallbackReason:h}:{}}}function Al(e,t,n,r){if(!e)return null;let o=chunkILTZTY3K_cjs.je(e.root,t);return o?cf(o,n,{...r,ownerPartName:e.name}):null}function Jb(e,t){return "single"}function Qb(e){let t=Xs(e);if(t.length===0)return true;for(let n of t){if(n.kind!=="paragraph")return false;let r=n.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(kn(r)).length>0||!iC(n))return false}return true}function iC(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!sC(t))return false;continue}return false}return true}function sC(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkILTZTY3K_cjs.Wd(t)||chunkILTZTY3K_cjs.Xd(t)||chunkILTZTY3K_cjs.Vd(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function yi(e,t,n,r,o,a){let i=Jb(),s=Zb(e,t);if(s){if(Qb(s))return {kind:t,fragments:[],flowHeight:df,synthetic:false,ruleStyle:i};let l=cf(s,n,{...r,...e?{ownerPartName:e.name}:{}});if(l&&l.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return l.flowHeight>d+.001?{kind:t,fragments:[],flowHeight:df,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:l.fragments,flowHeight:l.flowHeight,synthetic:false}}}return {kind:t,fragments:[],flowHeight:df,synthetic:true,ruleStyle:i}}function ex(e,t){let n=Math.max(1,e*oC);return {x:0,y:Math.max(0,(t-.75)/2),width:n,height:.75}}function Dl(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=ex(n,e.flowHeight);return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:t,y:r,width:n,height:e.flowHeight}}function tx(e){let t=0;return e.map((n,r)=>{let o=`page-${r}`,i=n.index===r&&n.id===o&&n.box.y===t?n:Nr(n,r,t);return t+=n.box.height+Ar,i})}var ff=8,mx=4096,gx=256,hx=14,pf=12;function lC(e){let t=[];for(let n of e)t.push(`${n.noteKind}|${n.noteId}|${n.paragraphId}|${n.atomOffset}|${n.customMarkFollows?1:0}|${n.sectionIndex}`);return t.join(";")}function _l(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function dC(e){return e.drawingsForPart!==void 0&&e.drawingLayoutEpoch===void 0?null:[e.producer,e.defaultTabStopPt??"",e.drawingLayoutEpoch??"",_l(e.documentFootnoteProps),_l(e.documentEndnoteProps),e.footnotePropsBySection.map(_l).join(";"),e.endnotePropsBySection.map(_l).join(";")].join("\0")}var nx=new WeakMap;function cC(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=dC(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=lC(t),a=e.notes;if(a&&a.hitsFingerprint===o){let s=nx.get(a);if(a.inputFingerprint===r&&s&&s.footnotesPart===n.footnotesPart&&s.endnotesPart===n.endnotesPart&&s.measurer===n.measurer&&s.cache===n.cache&&s.styleCascade===n.styleCascade&&s.numberingIndex===n.numberingIndex)return {memo:a,allHits:a.allHits,reused:true}}let i={hitsFingerprint:o,inputFingerprint:r,allHits:t,provisionalMarks:Rf(t,n),finalMarks:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return nx.set(i,{footnotesPart:n.footnotesPart,endnotesPart:n.endnotesPart,measurer:n.measurer,cache:n.cache,styleCascade:n.styleCascade,numberingIndex:n.numberingIndex}),e.notes=i,{memo:i,allHits:t,reused:false}}function uC(e,t){return t>=e.range.start&&t<e.range.end}var rx=new WeakMap;function yx(e){let t=rx.get(e);if(t)return t;let n=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){n.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)r(s.blocks);}};return r(e),rx.set(e,n),n}var ox=new WeakMap;function hf(e){let t=ox.get(e);if(t)return t;let n=new Map;for(let r of e){let o=n.get(r.paragraphId);o?o.push(r):n.set(r.paragraphId,[r]);}return ox.set(e,n),n}var ax=new WeakMap;function zl(e,t,n){let r=yx(e.fragments);if(!n)return t.filter(s=>r.some(l=>Cu(l,s.paragraphId,s.atomOffset)));let o=ax.get(e.fragments);if(o&&o.refIndex===n)return o.result;let a=[],i=new Set;for(let s of r)for(let l of sr(s)){let d=n.get(l);if(d)for(let c of d)i.has(c)||Cu(s,l,c.atomOffset)&&(i.add(c),a.push(c));}return ax.set(e.fragments,{refIndex:n,result:a}),a}function bx(){let e=new Map;return {get(t,n,r,o,a,i,s){let d=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=yi(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&s.push(u.fallbackReason),u}}}function fC(e,t){let n=[];for(let r of e){if(n.length>=Jo)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function Qo(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function yf(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function xx(e,t){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:t,drawingsForPart:e.drawingsForPart}}function pC(e,t){return t===0?e:{...e,box:{...e.box,y:e.box.y+t},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+t}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+t}}}:{},...e.borders?{borders:e.borders.map(n=>({...n,box:{...n.box,y:n.box.y+t}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+t}}}:{},lines:e.lines.map(n=>({...n,box:{...n.box,y:n.box.y+t},spans:n.spans.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}))}}function ix(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?pC(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function mC(e,t){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let n=0;for(;n<e.lines.length;n+=1){let g=e.lines[n];if(g.box.y+g.box.height>t+.001)break}if(n===0)return {head:null,tail:e};if(n>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,n),o=e.lines.slice(n),a=r[r.length-1],i=e.box.y,s=a.box.y+a.box.height,l=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,s-i)},...l&&l.length>0?{borders:l}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,s-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 gC(e){let t=0;for(let n of e)t=Math.max(t,n.box.y+n.box.height);return t}function jl(e,t,n){if(e.flowHeight<=t+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(t<=.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<hi;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=t+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=mC(f,t);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=n?.fullContentHeight??t,h=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=g-.001&&h>g+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let b=e.fragments.slice(a),P=b[0]?.box.y??0;return {head:[],headHeight:0,tail:ix(b,-P),tailHeight:Math.max(0,e.flowHeight-P)}}a=u,i=null;}break}a=u;break}let s=[...i?[i]:[],...e.fragments.slice(a)];if(s.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let l=s[0]?.box.y??0,d=ix(s,-l),c=gC(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function hC(e,t){let n="FootnoteReference";if(!t)return {...mn,verticalAlign:"superscript"};let r=Nn([],[{localName:"rStyle",attributes:{val:n}}],t);return Ae(r,t.themeFonts)}function yC(e,t,n,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(t.footnotePropsBySection.length,t.endnotePropsBySection.length,1,...n.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=Qo(t,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<pf;p+=1){let m=Mn(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=yf(t,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<pf;p+=1){let m=Mn(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let s=hC("footnote",t.styleCascade),l,d=-1;for(let c of o){let u=t.measurer.measure(c,s);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(l?.length??0))&&(l=c,d=u);}return l}function Sx(e,t,n){let r=gi("footnote",e,s=>Qo(n,s)),o=gi("endnote",t,s=>yf(n,s)),a=new Map;for(let s of r)a.set(Pr("footnote",s.noteId),s.mark);for(let s of o)a.set(Pr("endnote",s.noteId),s.mark);let i=yC(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function Gl(e){let t=0;for(let n of e.fragments)t=Math.max(t,n.box.y+n.box.height);return t}function mf(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:t,endnotes:n,noteStream:r,...o}=e;return o}function bC(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!xC(o.fragments))return o;let a=Rx(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{revision:e.revision,pages:r}:e}var sx=new WeakMap;function xC(e){let t=sx.get(e);if(t!==void 0)return t;let n=false,r=o=>{for(let a of o){if(n)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let s of i.spans)if(s.projected&&s.noteNav?.direction==="to-note"){n=true;return}continue}for(let i of a.rows)for(let s of i.cells)r(s.blocks);}};return r(e),sx.set(e,n),n}function Rx(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let s=SC(o,t);return s!==o&&(n=true),s}let a=false,i=o.rows.map(s=>{let l=false,d=s.cells.map(c=>{let u=Rx(c.blocks,t);return u===c.blocks?c:(l=true,{...c,blocks:u})});return l?(a=true,{...s,cells:d}):s});return a?(n=true,{...o,rows:i}):o});return n?r:e}function SC(e,t){let n=false,r=e.lines.map(o=>{let a=RC(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function RC(e,t){let n=false,r=e.spans.map(o=>{let a=wC(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function wC(e,t){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let n=t.marks.get(e.noteNav.scopeId);if(n===void 0)return e;let r=n??"";return e.text===r?e:{...e,text:r}}function PC(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function wx(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function IC(e){for(let t=e.length-1;t>=0;t-=1)if(wx(e[t]))return t;return Math.max(0,e.length-1)}function bf(e,t,n,r,o,a,i,s){let l=new Map(a),d=t.filter(D=>D.noteKind==="footnote"),c=e.contentBox.width,u=xx(n,r),f=[],p=0,m=mx,g=a.size>0?"continuationSeparator":"separator",x=Math.max(0,e.contentBox.height),h=s?.separatorCache?s.separatorCache.get(n.footnotesPart,g,c,"footnote",x,u,i):(()=>{let D=yi(n.footnotesPart,g,c,u,"footnote",x);return D.fallbackReason&&i.push(D.fallbackReason),D})(),b=Math.max(0,e.contentBox.height-Gl(e)-h.flowHeight),P=Math.max(0,e.contentBox.height-hx-h.flowHeight),k=s?.reserveColumnBudget?P:b,L={fullContentHeight:Math.max(0,e.contentBox.height-h.flowHeight),reasons:i};for(let[D,F]of a){let E=D.match(/^(footnote|endnote):(-?\d+)$/);if(!E||E[1]!=="footnote")continue;let B=Number(E[2]),R=Math.max(0,k-p);if(F.height<=R+.001)f.push({noteKind:"footnote",noteId:B,scopeId:D,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:F.height},fragments:F.fragments}),p+=F.height,l.delete(D);else {let W=jl({fragments:F.fragments,flowHeight:F.height},R,L);W.head.length>0&&(f.push({noteKind:"footnote",noteId:B,scopeId:D,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:W.headHeight},fragments:W.head}),p+=W.headHeight),W.tail.length>0?l.set(D,{fragments:W.tail,height:W.tailHeight,mark:null}):l.delete(D);}}for(let D of d){if(f.length>=Jo){i.push("note-count-limit");break}let F=Al(n.footnotesPart,D.noteId,c,u);if(!F){i.push("missing-note-body");continue}let E=r.marks.get(Pr("footnote",D.noteId))??null,B=Math.max(0,k-p);if(m-=F.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(F.flowHeight<=B+.001)f.push({noteKind:"footnote",noteId:D.noteId,scopeId:F.scopeId,mark:D.customMarkFollows?null:E,box:{x:e.contentBox.x,y:0,width:c,height:F.flowHeight},fragments:F.fragments}),p+=F.flowHeight;else {let R=jl(F,B,L);R.head.length>0&&(f.push({noteKind:"footnote",noteId:D.noteId,scopeId:F.scopeId,mark:D.customMarkFollows?null:E,box:{x:e.contentBox.x,y:0,width:c,height:R.headHeight},fragments:R.head}),p+=R.headHeight),R.tail.length>0&&l.set(F.scopeId,{fragments:R.tail,height:R.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:l};let w=h.flowHeight,S=w+p,C=Gl(e),T;o==="beneathText"?T=e.contentBox.y+C:(T=e.contentBox.y+e.contentBox.height-S,T=Math.max(T,e.contentBox.y+C));let N=T+w,M=f.map(D=>{let F={...D,box:{...D.box,y:N}};return N+=D.box.height,F}),y=Dl(h,e.contentBox.x,c,T);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:T,width:c,height:S},separator:{kind:g,box:y,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:M},nextCarry:l}}function Px(e,t){let n=Math.min(Math.max(t,0),e.length-1);for(;n>0&&e[n].noteStream!==void 0;)n-=1;return n}function vC(e){return t=>{let n=Ju(e,t.sectionAnchorIndex,t.landingIndex,t.template.box);return TC(t.template,t.landingIndex,t.noteStream,n)}}function TC(e,t,n,r){let o=r?{x:e.contentBox.x,y:e.box.y+r.insets.top,width:e.contentBox.width,height:r.insets.height}:e.contentBox,a=r?r.header:e.header,i=r?r.footer:e.footer;return {id:`page-${t}`,index:t,box:e.box,contentBox:o,fragments:[],...n?{noteStream:n}:{},...a?{header:a}:{},...i?{footer:i}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+1}}:{}}}function CC(e,t){let n=null,r=false,o=e.map((a,i)=>{if(a.noteStream===void 0)return n=a.index,a;if(n===null)return a;let s=Ju(t,n,i,a.box);if(!s)return a;let l=a.box.y+s.insets.top;if(l===a.contentBox.y&&s.insets.height===a.contentBox.height&&s.header?.variant===a.header?.variant&&s.footer?.variant===a.footer?.variant)return a;let c={...a.contentBox,y:l,height:s.insets.height},u=l+c.height,f=a.contentBox.y+a.contentBox.height,p=kC(a,l-a.contentBox.y,u-f);if(!p.fits(l,u))return a;r=true;let{header:m,footer:g,...x}=a;return {...x,contentBox:c,...p.footnotes?{footnotes:p.footnotes}:{},...p.endnotes?{endnotes:p.endnotes}:{},...s.header?{header:s.header}:{},...s.footer?{footer:s.footer}:{}}});return r?o:[...e]}function lx(e,t){if(t===0)return e;let n=r=>({...r,y:r.y+t});return {...e,box:n(e.box),...e.separator?{separator:{...e.separator,box:n(e.separator.box)}}:{},notes:e.notes.map(r=>({...r,box:n(r.box)}))}}function kC(e,t,n){let r=i=>i.placement==="pageBottom"?n:t,o=e.footnotes?lx(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?lx(e.endnotes,r(e.endnotes)):void 0;return {...o?{footnotes:o}:{},...a?{endnotes:a}:{},fits(i,s){let l=d=>d===void 0||d.box.y>=i-.001&&d.box.y+d.box.height<=s+.001;return l(o)&&l(a)}}}function xf(e,t){let n=new Set;for(let r of yx(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function Ix(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(xf(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function OC(e,t,n){let r=Ix(e,t,n);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=xf(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function BC(e){let t=tx(e);return [...Qn({revision:0,pages:t}).pages]}function MC(e,t,n,r,o,a,i,s){let l=new Map(a),d=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};let c=e.contentBox.width,u=xx(n,r),f=s?.separatorKind??"separator",p=B=>B==="footnote"?n.footnotesPart:n.endnotesPart,m=n.endnotesPart??n.footnotesPart,g=Math.max(0,e.contentBox.height),x=s?.separatorCache?s.separatorCache.get(m,f,c,"endnote",g,u,i):(()=>{let B=yi(m,f,c,u,"endnote",g);return B.fallbackReason&&i.push(B.fallbackReason),B})(),h=x.flowHeight,b=Gl(e),P=e.endnotes?Math.max(b,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):b,k=PC(e),v=Math.max(0,k-P-h),w={fullContentHeight:Math.max(0,k-h),reasons:i},S=[],C=0,T=mx;for(let[B,R]of a){let W=B.match(/^(footnote|endnote):(-?\d+)$/);if(!W)continue;let A=W[1],z=Number(W[2]),q=Math.max(0,v-C);if(R.height<=q+.001)S.push({noteKind:A,noteId:z,scopeId:B,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:R.height},fragments:R.fragments}),C+=R.height,l.delete(B);else {let _=jl({fragments:R.fragments,flowHeight:R.height},q,w);_.head.length>0&&(S.push({noteKind:A,noteId:z,scopeId:B,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:_.headHeight},fragments:_.head}),C+=_.headHeight),_.tail.length>0?l.set(B,{fragments:_.tail,height:_.tailHeight,mark:null}):l.delete(B);}}for(let B=0;B<t.length;B+=1){let R=t[B];if(S.length>=Jo){i.push("note-count-limit"),d.push(...t.slice(B));break}let W=p(R.noteKind),A=Al(W,R.noteId,c,u);if(!A){i.push("missing-note-body");continue}let z=r.marks.get(Pr(R.noteKind,R.noteId))??null,q=Math.max(0,v-C);if(T-=A.fragments.length,T<0){i.push("note-area-fragment-limit"),d.push(...t.slice(B));break}if(A.flowHeight<=q+.001)S.push({noteKind:R.noteKind,noteId:R.noteId,scopeId:A.scopeId,mark:R.customMarkFollows?null:z,box:{x:e.contentBox.x,y:0,width:c,height:A.flowHeight},fragments:A.fragments}),C+=A.flowHeight;else {let _=jl(A,q,w);_.head.length>0&&(S.push({noteKind:R.noteKind,noteId:R.noteId,scopeId:A.scopeId,mark:R.customMarkFollows?null:z,box:{x:e.contentBox.x,y:0,width:c,height:_.headHeight},fragments:_.head}),C+=_.headHeight),_.tail.length>0&&l.set(A.scopeId,{fragments:_.tail,height:_.tailHeight,mark:null}),d.push(...t.slice(B+1));break}}if(S.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};if(S.length===0)return {area:void 0,nextCarry:l,remainingRefs:d};let N=e.contentBox.y+P,M=N+h,y=S.map(B=>{let R={...B,box:{...B.box,y:M}};return M+=B.box.height,R}),G=Dl(x,e.contentBox.x,c,N),D=h+C,F=Math.max(0,k-P),E=Math.min(D,F);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:N,width:c,height:E},separator:{kind:f,box:G,fragments:x.fragments,synthetic:x.synthetic,...x.ruleStyle!==void 0?{ruleStyle:x.ruleStyle}:{}},notes:y},nextCarry:l,remainingRefs:d}}function LC(e,t,n,r,o,a,i,s){let l=e,d=t,c=e[Px(e,e.length-1)].index;for(;d.size>0&&a.remaining>0;){let u=l[l.length-1],f=s({template:u,landingIndex:l.length,noteStream:"footnote-drain",sectionAnchorIndex:c}),p=bf(f,[],n,r,"pageBottom",d,o,{separatorCache:i}),m=p.area?.notes.length??0;if(d=p.nextCarry,m===0){o.push("note-overflow-stalled"),p.area&&(l=[...l,{...f,footnotes:p.area}],a.remaining-=1);break}l=[...l,{...f,footnotes:p.area}],a.remaining-=1;}return d.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:l,carry:d}}function FC(e,t,n,r,o,a="endnote-overflow"){let i=r({template:n,landingIndex:t,noteStream:a,sectionAnchorIndex:o});return {pages:[...e.slice(0,t),i,...e.slice(t)],pageIndex:t}}function dx(e,t,n){if(n<=t||t>=e.length)return e;let r=Math.min(n,e.length),o=e[t],a=o.pageFieldSource?.pageNumber??t+1,i=o.pageFieldSource?.format,s=r-t,l=[...e];for(let d=t;d<r;d+=1){let c=l[d];l[d]={...c,pageFieldSource:{pageNumber:a+(d-t),sectionPageCount:s,...i?{format:i}:{}}};}return l}function cx(e,t,n,r,o,a,i,s,l){if(n.length===0||e.length===0)return e;let d=e[Px(e,t)].index,c=[...e],u=[...n],f=new Map,p=t,m=0,g="separator",x=l?.stopBeforeIndex??Number.POSITIVE_INFINITY,h=l?.sectionStartIndex??t,b=l?.stopBeforeIndex!==void 0,P=l?.separatorCache;for(;u.length>0||f.size>0;){if(p>=c.length||p>=x){if(s.remaining<=0){i.push("note-overflow-page-limit");break}let w=c[Math.min(Math.max(p,1),c.length)-1]??c[c.length-1],S=Math.min(p,x,c.length),C=FC(c,S,w,l.mint,d,"endnote-overflow");c=C.pages,p=C.pageIndex,b&&(x=S+1),m+=1,s.remaining-=1;}let k=c[p];if(!wx(k)){p+=1;continue}let v=MC(k,u,r,o,a,f,i,{separatorKind:g,...P?{separatorCache:P}:{}});f=v.nextCarry,u=v.remainingRefs;let L=v.area?.notes.length??0;if(v.area){let w=c[p];c[p]={...w,endnotes:w.endnotes?{...v.area,notes:[...w.endnotes.notes,...v.area.notes],box:{...v.area.box,y:w.endnotes.box.y,height:w.endnotes.box.height+v.area.box.height}}:v.area};}else {if(f.size===0&&u.length===0)break;if(!v.area&&f.size===0&&u.length>0){p+=1,g="separator";continue}}if(L===0&&(f.size>0||u.length>0)&&k.fragments.length===0&&k.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){g="continuationSeparator",p+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?c=dx(c,h,Math.min(x,c.length)):m>0&&(c=dx(c,h,c.length)),c}function vx(e,t,n,r,o){let a=o??null,i=new Map,s=[],l=new Map,d=hf(t),c=bx();for(let f of e.pages){let p=mf(f),g=zl(p,t,d).filter(S=>S.noteKind==="footnote"),x=g[0]?.sectionIndex??0,h=Qo(n,x);if(h.pos==="sectEnd"||h.pos==="docEnd")continue;if(a&&l.size===0){let S=a.pageReserve.get(f);if(S&&S.allHits===t&&S.marks===r){for(let C of S.reasons)s.push(C);S.reserve>0&&i.set(f.index,Math.max(i.get(f.index)??0,S.reserve));continue}}let b=Math.max(0,p.contentBox.height-hx),P=l.size===0,k=s.length,{area:v,nextCarry:L}=bf(p,g,n,r,h.pos,l,s,{reserveColumnBudget:true,separatorCache:c});l=L;let w=Math.min(v?.box.height??0,b);if(a&&P&&l.size===0&&a.pageReserve.set(f,{allHits:t,marks:r,reserve:w>0?w:0,reasons:s.slice(k)}),w>0){let S=i.get(f.index)??0;i.set(f.index,Math.max(S,w));}}let u=true;for(let f of e.pages){let p=i.get(f.index)??0;if(p<=0)continue;if(Gl(mf(f))+p>f.contentBox.height+.5){u=false;break}}return {reserves:i,stable:u,reasons:s}}function Tx(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,s={remaining:gx},l=hf(t),d=bx(),c=vC(e),u=[],f=[];for(let v of e.pages)for(let L of zl(v,t,l)){let w={noteId:L.noteId,sectionIndex:L.sectionIndex,pageIndex:v.index,customMarkFollows:L.customMarkFollows};L.noteKind==="footnote"?u.push(w):f.push(w);}let p=o?[...u,...f].map(v=>`${v.noteId}|${v.sectionIndex}|${v.pageIndex??""}|${v.customMarkFollows?1:0}`).join(";"):"",m;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===p?m=o.finalMarks.marks:(m=Sx(u,f,n),o&&(o.finalMarks={sitesFingerprint:p,marks:m}));let g=new Map,x=new Map,h=[],b=e.pages.map(v=>{let L=zl(v,t,l),w=L.filter(F=>F.noteKind==="footnote"),S=L.filter(F=>F.noteKind==="endnote");for(let F of S)if(yf(n,F.sectionIndex).pos==="sectEnd"){let B=x.get(F.sectionIndex)??[];B.push(F),x.set(F.sectionIndex,B);}else h.push(F);for(let F of w){let E=Qo(n,F.sectionIndex);if(E.pos==="sectEnd"){let B=x.get(F.sectionIndex)??[];B.push(F),x.set(F.sectionIndex,B);}else E.pos==="docEnd"&&h.push(F);}if(o&&g.size===0){let F=o.pageAttach.get(v);if(F&&F.allHits===t&&F.marks===m){for(let E of F.reasons)a.push(E);return F.attached}}let C=mf(v),T=w[0]?.sectionIndex??0,N=Qo(n,T),M,y=g.size===0,G=a.length;if(N.pos==="pageBottom"||N.pos==="beneathText"){let F=w.filter(B=>{let R=Qo(n,B.sectionIndex).pos;return R==="pageBottom"||R==="beneathText"}),E=bf(C,F,n,m,N.pos,g,a,{separatorCache:d});M=E.area,g=E.nextCarry;}let D=M?{...C,footnotes:M}:C;return o&&y&&g.size===0&&o.pageAttach.set(v,{allHits:t,marks:m,attached:D,reserve:0,reasons:a.slice(G)}),D}),P=b.length;if(g.size>0){let v=LC(b,g,n,m,a,s,d,c);b=v.pages,g=v.carry;}if(x.size>0&&b.length>0){let v=[...x.keys()].sort((L,w)=>L-w);for(let L of v){let w=x.get(L),S=Ix(b,L,i),C=OC(b,L,i),T=S;for(let N=0;N<=S;N+=1)if(xf(b[N],i).includes(L)){T=N;break}b=cx(b,S,w,n,m,"sectEnd",a,s,{stopBeforeIndex:C,sectionStartIndex:T,separatorCache:d,mint:c});}}return h.length>0&&b.length>0&&(b=cx(b,IC(b),h,n,m,"docEnd",a,s,{separatorCache:d,mint:c})),b.length!==P&&(b=CC(b,e),b=BC(b)),{layout:bC({revision:e.revision,pages:b},m),fallbackReasons:a,noteMarks:m}}function EC(e){return chunkILTZTY3K_cjs.Qe(e).map(t=>({noteKind:t.noteKind,noteId:t.noteId,paragraphId:t.paragraphId,atomOffset:t.atomOffset,customMarkFollows:t.customMarkFollows}))}var ux=new WeakMap;function NC(e,t){return `${t};${e.map(n=>`${n.blockStart}-${n.blockEndExclusive}`).join(",")}`}function AC(e,t){if(e.kind!==t.kind)return false;if(e.kind==="paragraph")return e.id===t.id;let n=gf(e),r=gf(t);if(n.length!==r.length)return false;for(let o=0;o<n.length;o+=1)if(n[o]!==r[o])return false;return true}function DC(e,t,n,r){let o=An(e,n),a=NC(t,n),i=r?ux.get(r):void 0;if(i&&i.boundsFingerprint===a&&i.blocks.length===o.length){let l=true;for(let d=0;d<o.length;d+=1){let c=o[d],u=i.blocks[d];if(c!==u&&!AC(c,u)){l=false;break}}if(l)return i.blocks=o,i.map}let s=new Map;for(let l=0;l<t.length;l+=1){let d=t[l];for(let c=d.blockStart;c<d.blockEndExclusive;c+=1){let u=o[c];if(u){if(u.kind==="paragraph"){s.set(u.id,l);continue}for(let f of gf(u))s.set(f,l);}}}return r&&ux.set(r,{blocks:o,boundsFingerprint:a,map:s}),s}var fx=new WeakMap;function gf(e){let t=fx.get(e);if(t)return t;let n=[],r=(o,a)=>{if(!(a>32)&&o.kind!=="textValue"){if(o.kind==="paragraph"){n.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),fx.set(e,n),n}function Sf(e,t,n){if(!e)return "";let r=[];for(let[o,a]of e){let i=o-t;i>=0&&i<n&&r.push([i,a]);}return r.length===0?"":(r.sort((o,a)=>o[0]-a[0]),`|nr:${r.map(([o,a])=>`${o}=${a}`).join(",")}`)}function jr(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function uf(e,t){let n=jr(e),r=jr(t);if(n.size!==r.size)return false;for(let[o,a]of n)if((r.get(o)??0)!==a)return false;return true}function px(e,t){let n=jr(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function Hl(e){return [...jr(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function Cx(e,t,n,r,o){let a=EC(e);if(a.length===0)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),o({...n,noteMarks:void 0,pageBottomReserves:void 0});let i=DC(e,t,n.displayMode??We,n.session),s=fC(a,i),l=cC(n.session,s,r),d=l.memo,c=l.allHits,u=d?.provisionalMarks??Rf(c,r),f=n.session?.notePageBottomReserves,p=f?jr(f):new Map,m=[],g=o({...n,noteMarks:u,pageBottomReserves:p}),x=new Set([Hl(p)]);for(let b=0;b<ff;b+=1){let P=vx(g,c,r,u,d);if(m=[...P.reasons],P.stable&&uf(P.reserves,p))break;let k=P.stable?jr(P.reserves):px(p,P.reserves);if(uf(k,p)){m.push("note-reflow-exhausted");break}let v=Hl(k);if(x.has(v)){k=px(p,P.reserves);let L=Hl(k);if(uf(k,p)||x.has(L)){m.push("note-reflow-exhausted");break}}p=k,x.add(Hl(p)),g=o({...n,noteMarks:u,pageBottomReserves:p}),b===ff-1&&m.push("note-reflow-exhausted");}let h=Tx(g,c,r,{fallbackReasons:m,paragraphSectionIndex:i,memo:d});return n.session&&(n.session.previous=h.layout,n.session.notePageBottomReserves=jr(p)),h.layout}function Rf(e,t){let n=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?n.push(a):r.push(a);}return Sx(n,r,t)}function kx(e,t){let n=e.projectLink??t.projectLink,r=e.projectFieldLink??t.projectFieldLink,o=e.documentProperties??t.documentProperties;return {...e,...n?{projectLink:n}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{}}}var Ox=null;function Lx(e,t){let n=Ox;if(n&&n.base===e&&n.token===t)return n.producer;let r=`${e??"unversioned-measurer"}|cc:${t}`;return Ox={base:e,token:t,producer:r},r}var Bx=new WeakMap,Mx=null;function _C(e,t,n,r,o,a){return e!=null&&e.base===t&&e.noteMarks===n&&e.defaultTabStopPt===r&&e.displayMode===o&&e.pageNumberFormat===a}function Fx(e,t,n,r,o,a){let i=t?Bx.get(t):Mx;if(_C(i,e,n,r,o,a))return i.producer;let s=(e??"unversioned-measurer")+(t?`|sc:${t.cacheToken}`:"")+(n?`|nm:${ig(n)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===We?"":`|rev:${o}`)+(a!==void 0?`|pnf:${a}`:""),l={base:e,noteMarks:n,defaultTabStopPt:r,displayMode:o,pageNumberFormat:a,producer:s};return t?Bx.set(t,l):Mx=l,s}var HC={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"},zC={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function Ax(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var jC=Ax(HC),GC=Ax(zC),Ex=new WeakMap;function Nx(e){let t=Ex.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify(GC.map(r=>e[r])):JSON.stringify(jC.map(r=>e[r]));return Ex.set(e,n),n}function Dx(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&Nx(r)!==Nx(o))return false}return true}function wf(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var _x=Object.freeze([]),Hx=new Map;function zx(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let[n,r]of e)if(t.get(n)!==r)return false;return true}function Wl(){return {previous:null,checkpoints:[],keys:[],context:"",producer:"",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 jx(e,t){return [...e].map(([n,r])=>`${n}=${r.flowHeight}`).sort().join(",")}function Vx(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${jx(e.headers)};f:${jx(e.footers)}`:""}function Vl(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function WC(e,t){return e.map((n,r)=>{let o=zr(n.properties),a=Vl(t,r,e.length),i=n.properties.pageNumbering,s=i?`pn:${i.start??""},${i.fmt??""},${i.chapStyle??""},${i.chapSep??""}`:"pn:",l=n.properties.columns,d=`cols:${l.count},${l.gapTwips},${l.equalWidth===false?0:1},${l.separator?1:0};${(l.definitions??[]).map(c=>`${c.widthTwips}/${c.gapTwips}`).join(",")}`;return [n.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,Vx(a),s,d].join(":")}).join("|")}function VC(e,t,n){if(!e)return null;let r=e.multi;if(r&&r.structureKey===t&&r.sections.length===n)return r;let o={structureKey:t,sections:Array.from({length:n},()=>Wl()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function $C(e){return e!=="continuous"}function XC(e,t){return e.width===t.width&&e.height===t.height}function YC(e){let t=e.contentBox.y-e.box.y;return {top:t,bottom:e.box.height-t-e.contentBox.height,height:e.contentBox.height}}function KC(e,t){if(t.fragments.length===0&&!t.columnSeparators?.length&&!t.anchoredDrawings?.length)return e;let n=e.anchoredDrawings||t.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...t.anchoredDrawings??[]]):void 0;return {...e,fragments:t.fragments.length>0?[...e.fragments,...t.fragments]:e.fragments,...(e.columnSeparators?.length||t.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...t.columnSeparators??[]]},...n?{anchoredDrawings:n}:{}}}function Gx(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var Wx=new WeakMap;function UC(e,t,n,r,o,a){let i=Wx.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let s=Nr(e,t,n),l=So([s],r,o,a)[0];return Wx.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:l}),l}function $x(e,t,n,r,o){let{session:a,...i}=r,s=WC(t,r),l=VC(a,s,t.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,x=0,h=0,b=0,P=0,k=0,v=true,L=[],w=null,S="",C=1;for(let M=0;M<t.length;M+=1){let y=t[M],G=e.slice(y.blockStart,y.blockEndExclusive),D=zr(y.properties),F=Vl(r,M,t.length),E=u.length,B=m,R=l?.spans[M],W=Vx(F);if(G.length===0&&!$C(y.properties.breakType)){p.push({startIndex:E,pageCount:0,sheetY:B,remappedPages:[],sourcePages:[]});continue}let A=M>0&&y.properties.breakType==="continuous"&&u.length>0&&v&&w!==null&&XC(w,D)&&S===W,z=l?.sections[M],q=y.properties.columns.count>1&&t[M+1]?.properties.breakType==="continuous",_=A?YC(u[u.length-1]):void 0,X=y.properties.pageNumbering?.fmt,U=A?u[u.length-1]?.pageFieldSource?.format:void 0,j=A&&!Zn("PAGE",U)?U:X,K=o(G,n,{...i,retainKeys:d,geometry:D,furniture:F,sectionColumns:y.properties.columns,...q?{balanceColumns:q}:{},lineCounterStart:g,pageIndexStart:A?E-1:E,...A?{flowStartY:P,spaceBeforeCarry:k}:{},..._?{continuedPageInsets:_}:{},...j!==void 0?{bodyPageNumberFormat:j}:{},...z?{session:z}:{}});L.push({startIndex:E,at:K.overflowShellAt}),g=K.lineCounter,P=K.endCursorY,k=K.endSpaceAfter,v=K.endsOpenPage,w=D,S=W,z?(x+=z.stats.placed,h+=z.stats.total):(x+=G.length,h+=G.length);let pe=z!==void 0&&z.stats.placed===0&&z.stats.reusedPages===K.pages.length&&R!==void 0&&R.pageCount===K.pages.length&&R.sourcePages.length===K.pages.length&&R.sourcePages.every((ye,De)=>ye===K.pages[De]),Fe=R!==void 0&&R.startIndex===E&&R.sheetY===B&&R.remappedPages.length===K.pages.length,Ie=y.properties.pageNumbering,me=Ie?.start!==void 0?Ie.start:C,ge=Ie?.fmt,Be=R?.remappedPages[0],we=R===void 0||R.remappedPages.length===0||Be?.pageFieldSource!==void 0&&Be.pageFieldSource.pageNumber===me&&Be.pageFieldSource.sectionPageCount===R.remappedPages.length&&Be.pageFieldSource.format===ge,Se;if(A){let ye=u.length-1,De=u[ye],se=KC(De,K.pages[0]);if(se!==De){u[ye]=se;let be=f.lastIndexOf(De);be!==-1&&(f[be]=se);}let _e=[];for(let be of K.pages.slice(1)){let st=Nr(be,u.length+_e.length,m);_e.push(st),m=st.box.y+st.box.height+Ar;}let Ze=_e.length+1;Se=So(_e,me+1,Ze,ge);for(let be of Se)u.push(be),f.push(be);C=me+Ze;}else if(pe&&Fe&&we){Se=R.remappedPages,b+=Se.length;for(let ye of Se)u.push(ye),f.push(ye),m=ye.box.y+ye.box.height+Ar;C=me+Se.length;}else {let ye=[];for(let De of K.pages){let se=UC(De,u.length+ye.length,m,me+ye.length,K.pages.length,ge);ye.push(se),m=se.box.y+se.box.height+Ar;}Se=ye;for(let De of Se)u.push(De),f.push(De);C=me+Se.length;}p.push({startIndex:E,pageCount:Se.length,sheetY:B,remappedPages:Se,sourcePages:K.pages});}if(u.length===0){let M=zr(t[0]?.properties??Jt),y=o([],n,{...i,retainKeys:d,geometry:M,sectionColumns:t[0]?.properties.columns??Jt.columns});c();let G=Qn({revision:n,pages:y.pages});return fi(G,(D,F,E)=>y.overflowShellAt(F,E)),l&&(l.spans=[],l.previousRemapped=y.pages,l.previousFinalized=G,l.previousPageCount=G.pages.length),a&&(Gx(a,G,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),G}let T=Qn({revision:n,pages:u}),N=T;if(l?.previousFinalized&&l.previousPageCount===T.pages.length&&l.previousRemapped.length===f.length){let M=l.previousFinalized.pages,y=l.previousRemapped,G=T.pages.map((D,F)=>f[F]===y[F]&&M[F]?M[F]:D);N={revision:n,pages:G};}return l&&(l.spans=p,l.previousRemapped=f,l.previousFinalized=N,l.previousPageCount=N.pages.length),a&&(Gx(a,N,g),a.stats={placed:x,total:h||1,reusedPages:b,fullPasses:a.stats.fullPasses+(x===h&&b===0?1:0)}),fi(N,(M,y,G)=>{let D=L[0];for(let E of L)E.startIndex<=M&&(D=E);return (D??L[L.length-1])?.at(y,G)}),c(),N}function $l(e=6,t=14){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var qC=2;function ZC(e,t){if(!t||t.size===0)return "";let n=[],r=o=>{if(o.kind==="paragraph"){let a=t.get(o.id)?.cacheToken;a&&n.push(a);return}if("children"in o)for(let a of o.children)r(a);};return r(e),n.join(";")}var Xx=new WeakMap,Yx=new WeakMap;function If(e){if(e===void 0||e.size===0)return "";let t=Yx.get(e);if(t!==void 0)return t;let n=[...e].join(",");return Yx.set(e,n),n}function JC(e){let t=If(e.chrome),n=If(e.placeholder),r=If(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function QC(e,t){let n=t.chrome?.has(e)??false,r=t.placeholder?.has(e)??false,o=t.suppressed?.has(e)??false;return !n&&!r&&!o?"":`${n?1:0}${r?1:0}${o?1:0}`}var Kx=new WeakMap;function ek(e,t,n){let r=n.displayMode??We,o=An(e,r),a=sf(e,o).sections,i=Uo(e),s={...n,producer:Lx(n.producer,i),tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??$u(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??Xu(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??Yu(e)},l=n.drawingSourceOrder;!l&&n.inlineDrawingLayout&&(l=Kx.get(n.inlineDrawingLayout),l||(l=(()=>{let p=new Map;return chunkILTZTY3K_cjs.eb(e).forEach((m,g)=>{p.set(m.drawingNodeId,g);}),p})(),Kx.set(n.inlineDrawingLayout,l)));let d=n.session?Ry(l?{...s,drawingSourceOrder:l}:s,o,n.session):Br(l?{...s,drawingSourceOrder:l}:s,o),c=p=>{if(a.length>1)return $x(o,a,t,p,ea);let m=a[0],g=p.geometry??(m?zr(m.properties):va),x=Vl(p,0,a.length)??p.furniture,h=m?.properties.pageNumbering,b=ea(o,t,{...p,geometry:g,furniture:x,sectionColumns:m?.properties.columns??Jt.columns,...h?.fmt?{bodyPageNumberFormat:h.fmt}:{}}),P=h,k=nf({revision:b.layout.revision,pages:So(b.pages,P?.start??1,b.pages.length,P?.fmt)},b.layout),v=Qn(k);return fi(v,(L,w,S)=>b.overflowShellAt(w,S)),p.session&&(p.session.multi=null,p.session.previous=v),v},u=p=>{let m=rf(p,e,i);return n.session&&(n.session.previous=m),m};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),u(c(d));let f=kx(n.notes,n);return u(Cx(e,a,d,f,c))}function Ux(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function Gr(e,t,n){let r=n.geometry,o=r.width-r.margin.left-r.margin.right,a=lf(n.sectionColumns??Jt.columns,o);if(n.inlineDrawingLayout&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let O=J=>n.drawingSourceOrder?.get(J),$=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),Y=new Map,oe=null,ke=false,Te=new Set,xe=n.session?.previous?.pages;if(xe){if(Y=Yc(xe,n.inlineDrawingLayout,n.drawingLayoutEpoch,o,n.drawingSourceOrder,$),oe=ea(e,t,{...n,drawingExclusionPass:0,drawingExclusionZonesByPage:Y}),oe.pages===xe)return oe;let J=Yc(oe.pages,n.inlineDrawingLayout,n.drawingLayoutEpoch,o,n.drawingSourceOrder,$);if(Ls(Y,J))return oe;Y=new Map(J),Te.add(Fs(J));}for(let J=0;J<vr;J+=1){oe=ea(e,t,{...n,session:void 0,drawingExclusionPass:J,drawingExclusionZonesByPage:Y});let he=Ms(oe.pages,n.inlineDrawingLayout,o,O,$);if(he.size===0){ke=true,Y=he;break}let ee=Fs(he);if(Te.has(ee)){ke=true,Y=he;break}if(Te.add(ee),J>0&&Ls(Y,he)){ke=true,Y=he;break}Y=new Map(he);}if(!ke)for(let J=0;J<qC&&!ke;J+=1){oe=ea(e,t,{...n,session:void 0,drawingExclusionPass:vr+J,drawingExclusionZonesByPage:Y});let he=Ms(oe.pages,n.inlineDrawingLayout,o,O,$),ee=Fs(he);if(Ls(Y,he)||Te.has(ee)){ke=true,Y=he;break}Te.add(ee),Y=new Map(he);}if(!ke)throw new No(`wrap exclusion reflow did not converge within ${vr} passes`);return ea(e,t,{...n,drawingExclusionConverged:true,drawingExclusionZonesByPage:Y})}let i=n.measurer,s=n.cache,l=n.styleCascade,d=n.listItems,c=n.defaultTabStopPt,u=n.displayMode??We,f=u==="all-markup",p=n.tocFieldChromeParagraphIds,m=n.emptyTocPlaceholderParagraphIds,g=n.emptyTocSuppressedResultParagraphIds,x={chrome:p,placeholder:m,suppressed:g},h=JC(x),b=Fx(n.producer,l,n.noteMarks,c,u,n.bodyPageNumberFormat),P=a.widths[0],k=n.furniture,v=r.headerDistance??36,L=r.footerDistance??36,w=n.pageBottomReserves,S=n.session,C=n.lineCounterStart??0,T=wb(k,v,L),N=n.flowStartY??0,M=n.spaceBeforeCarry??0,y=n.pageIndexStart??0,G=Pb({...k?{furniture:k}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:v,footerDistance:L,pageIndexStart:y,...n.continuedPageInsets?{continuedPageInsets:n.continuedPageInsets}:{}}),D=Object.freeze(n.bodyPageNumberFormat!==void 0?{format:n.bodyPageNumberFormat}:{}),F=S?.previous?S.previous.pages.length+1:1/0,E=n.columnRegionBottom,B=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${E!==void 0?`;bal:${E}`:""}`,R=n.continuedPageInsets,W=R?`|cont:${R.top},${R.height}`:"",A=O=>`${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${N},${M}${W}${T}${O}${B}`,z=A(Sf(w,y,F)),q=y&1,_=false,X=null,U=()=>{_=true;},j=[],K=vb({...k?{furniture:k}:{},geometry:r,headerDistance:v,footerDistance:L,pageIndexStart:y,contentWidth:o,insetsFor:G,pageCount:()=>j.length}),{pageBox:pe,furnitureFor:Fe,overflowShellAt:Ie}=K,me=()=>{let O=Math.max(1,G(j.length).height-(w?.get(y+j.length)??0));return E!==void 0&&j.length===0?Math.max(1,Math.min(O,E)):O},ge=(O,$)=>{let Y=O.kind==="paragraph"?n.drawingTokenForParagraph?.(O)??n.drawingLayoutToken??"":O.kind==="table"&&n.drawingTokenForParagraph?ab(O,n.drawingLayoutEpoch,n.drawingTokenForParagraph):"",oe=bb(O,n.numberingIndex,l,u),ke=(O.kind==="table"?ZC(O,d):d?.get(O.id)?.cacheToken??"")+oe,Te=Xx.get(O);if(Te&&Te.contentWidth===$&&Te.producer===b&&Te.drawingToken===Y&&Te.listToken===ke)return Te.entry;let xe;if(O.kind==="table")xe={kind:"table",table:O,key:Ir({paragraph:O,properties:oe?[{localName:"txbxList",attributes:{token:oe}}]:[],width:$,producer:b,...Y?{drawingToken:Y}:{}})};else {let J=d?.get(O.id),he=kr(O,$,l,J),{props:ee,indent:Ce,available:Ue,alignment:Nt,spacing:Ge,lineSpacing:At,contextualSpacing:gt,styleId:nn,shading:Ct,inheritedRunProperties:jt,markRunProperties:Vr}=he,Gt=ih(O.children.find(wi=>wi.kind==="paragraphProperties"),l),$r=La(he.tabStops,c),Ri=$r===he.tabStops?he.tabStopsCacheToken:xr($r);xe={kind:"paragraph",paragraph:O,props:ee,indent:Ce,available:Ue,alignment:Nt,spacing:Ge,lineSpacing:At,contextualSpacing:gt,styleId:nn,borders:Gt,borderGroupKey:qa({borders:Gt,indent:Ce}),shading:Ct,inheritedRunProperties:jt,markRunProperties:Vr,tabStops:$r,keeps:sh(ee),...J?{listItem:J}:{},key:Ir({paragraph:O,properties:[...ee,...jt,...Vr,{localName:"tabStops",attributes:{token:Ri}},...J?[{localName:"list",attributes:{token:J.cacheToken}}]:[],...oe?[{localName:"txbxList",attributes:{token:oe}}]:[]],width:Ue,producer:b,...Y?{drawingToken:Y}:{}})};}return Xx.set(O,{contentWidth:$,producer:b,drawingToken:Y,listToken:ke,entry:xe}),xe},Be=n.drawingTokenForParagraph===void 0&&n.drawingLayoutToken===void 0?n.drawingLayoutEpoch??"":n.drawingLayoutEpoch??null,we=S?.prepass,Se=we!=null&&Be!==null&&we.drawingEpoch===Be&&we.producer===b&&we.contentWidth===P&&we.styleCascade===l&&we.listItems===d&&we.tocToken===h&&we.bodies.length===e.length&&we.bodies.every((O,$)=>O===e[$]),ye=Se?we:De();function De(){let O=e.map(ee=>ge(ee,P)),$=O.map(ee=>ee.key),Y=O.map(ee=>ee.kind==="paragraph"&&ee.keeps.keepNext),oe=O.map(ee=>ee.kind==="paragraph"?d?.get(ee.paragraph.id)?.markerText:void 0),ke=O.map(ee=>ee.kind==="paragraph"&&ee.contextualSpacing),Te=O.map(ee=>ee.kind==="paragraph"?ee.styleId:null),xe=O.map(ee=>ee.kind==="paragraph"?ee.borderGroupKey:""),J=h===""?[]:O.map(ee=>ee.kind==="paragraph"?QC(ee.paragraph.id,x):""),he=ch($,{contextualSpacingAt:ee=>ke[ee],styleIdAt:ee=>Te[ee]??null,borderGroupKeyAt:ee=>xe[ee],tocVerdicts:J,markerTextAt:ee=>oe[ee],keepsNextAt:ee=>Y[ee]});return {bodies:e,producer:b,contentWidth:P,styleCascade:l,listItems:d,drawingEpoch:Be??"",prepared:O,keys:$,paragraphDocumentOrder:Uy(O,P,l,u),keepsNext:Y,markerTexts:oe,tocToken:h,flowKeys:he}}S&&Be!==null&&!Se&&(S.prepass=ye);let{prepared:se,keys:_e,paragraphDocumentOrder:Ze,keepsNext:be,flowKeys:st}=ye,Ft=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&s&&!(s.retentionPassDue?.()??true)||bg(s,n.retainKeys,_e,se.flatMap(O=>O.kind==="table"?[O.table]:[])));},lt=S?.previous??null,wn=lt!==null&&S!==void 0&&S.context===z&&S.producer===b&&(!S.parityDependent||S.startPageParity===q),Pn=a.count===1&&wn,dt=0;if(wn){let O=Math.min(st.length,S.keys.length);for(;dt<O&&st[dt]===S.keys[dt];)dt+=1;}let Qt=0;if(Pn){let O=Math.min(st.length,S.keys.length)-dt;for(;Qt<O&&st[st.length-1-Qt]===S.keys[S.keys.length-1-Qt];)Qt+=1;}if(wn&&dt===se.length&&se.length===S.keys.length){let O=nf({revision:t,pages:lt.pages},lt),$=C+(S.endLineCounter-S.startLineCounter);return S.previous=O,S.startLineCounter=C,S.endLineCounter=$,S.startPageParity=q,S.stats={placed:0,total:se.length,reusedPages:lt.pages.length,fullPasses:S.stats.fullPasses},Ft(),{layout:O,pages:O.pages,lineCounter:$,endCursorY:S.endCursorY,endSpaceAfter:S.endSpaceAfter,endsOpenPage:S.endsOpenPage,overflowShellAt:Ie}}let ve=[],tt=0,H=0,I=()=>a.lefts[tt],V=()=>a.widths[tt],ne=()=>({text:{left:I(),width:V()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),re=()=>ve.length>H,Z=[],ue=[],ce=new Map,ae=N,$e=N,Pe=0,He=C,le=M,de=[],Le=()=>({pageCount:j.length,pageFragments:[...ve],pendingAnchoredDrawings:[...Z],deferredAnchoredDrawings:ue.length>0?[...ue]:_x,anchorPageDeferCounts:ce.size>0?new Map(ce):Hx,cursorY:ae,lineCounter:He,previousSpaceAfter:le,flowColumnIndex:Pe}),Ke=0,ze=0,ut=0,en=N===0;if(Pn&&dt>0&&dt<S.checkpoints.length){let O=S.checkpoints[dt];j.push(...lt.pages.slice(0,O.pageCount)),ve=[...O.pageFragments],Z=[...O.pendingAnchoredDrawings],ue=[...O.deferredAnchoredDrawings],ce.clear();for(let[$,Y]of O.anchorPageDeferCounts)ce.set($,Y);ae=O.cursorY,Pe=O.flowColumnIndex,tt=O.flowColumnIndex,He=O.lineCounter,le=O.previousSpaceAfter,Ke=dt,en=false,ut=j.length,de.push(...S.checkpoints.slice(0,dt));}let Et=a.count,tn=I,dr=O=>Object.freeze({x:a.lefts[Pe]??0,y:O.y,width:a.widths[Pe]??P,height:O.height}),jn=()=>{let O=G(j.length);return Object.freeze({pageNumber:y+j.length+1,onPageParityRead:U,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginBottom:r.margin.bottom,contentInsetTop:O.top,contentInsetBottom:O.bottom,contentWidth:P,contentHeight:me(),contentBandHeight:O.height,ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkILTZTY3K_cjs.s,storyKind:"body"})},ra=()=>Xa(jn()),oa=O=>n.drawingSourceOrder?.get(O),cr=O=>{if(O.length===0)return;for(let Y of O)Z.some(oe=>oe.drawingNodeId===Y.drawingNodeId)||Z.push(Y.sourceOrder===void 0&&oa(Y.drawingNodeId)!==void 0?Object.freeze({...Y,sourceOrder:oa(Y.drawingNodeId)}):Y);if(!n.inlineDrawingLayout)return;let $=Wg(Z,{pageBottom:me()});if(Z.splice(0,Z.length,...$.drawings),$.deferred.length>0)for(let Y of $.deferred){let oe=(ce.get(Y.drawingNodeId)??0)+1;ce.set(Y.drawingNodeId,oe),oe>=zc?Z.push($c(Y,"page-defer-exhausted")):ue.push(Y);}},je=()=>{if(ue.length===0)return;let O=ue.map($=>Wc($,ae-$.y));ue=[],cr(O);},Wr=()=>{let O=j.length,$=pe(O),Y=Fe("header",O,$),oe=Fe("footer",O,$),{usedBottom:ke,hasBodyPageFields:Te}=wc(ve,$e),xe=G(O);j.push({id:`page-${O}`,index:O,box:$,contentBox:{x:$.x+r.margin.left,y:$.y+xe.top,width:o,height:xe.height},fragments:ve,hasBodyPageFields:Te,...a.separator?{columnSeparators:a.gaps.map((J,he)=>({x:a.lefts[he]+a.widths[he]+J/2-.375,y:$e,width:.75,height:Math.max(0,ke-$e)}))}:{},...Z.length>0?{anchoredDrawings:Gg(Z)}:{},...Y?{header:Y}:{},...oe?{footer:oe}:{}}),ve=[],Z=[],ae=0,tt=0,Pe=0,$e=0,H=0;},NS=(O,$)=>{if(O.kind!=="paragraph"||O.listItem!==void 0||O.shading!==void 0)return false;let{top:Y,bottom:oe,left:ke,right:Te,between:xe}=O.borders;if(Y??oe??ke??Te??xe)return false;let J=n.inlineDrawingLayout;return J&&Mt(O.paragraph,J).length>0?false:$.every(he=>he.drawings.length===0&&!he.pageBreakAfter&&!he.columnBreakAfter&&he.spans.every(ee=>ee.text.length===0))},Si=()=>{if(tt+1<a.count){tt+=1,Pe=tt,ae=$e,le=0,H=ve.length;return}Wr(),je();},Mf=O=>kl(O,{measurer:i,producer:b,cache:s,styleCascade:l,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.numberingIndex?{numberingIndex:n.numberingIndex}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph}),AS={measurer:i,cache:s,producer:b,onCellBreakKey:O=>{X?.push(O);},nextLineId:(O,$,Y,oe)=>(He+=1,Ux(O,$,Y,oe)),pageOccurrenceKey:()=>String(j.length),styleCascade:l,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:D,...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:n.drawingLayoutToken?{drawingLayoutToken:n.drawingLayoutToken}:{},...n.inlineDrawingLayout?{anchorFrameBase:jn,pageContentClip:ra,layoutTextboxStoryFor:Mf,publishAnchoredDrawings:cr,collectAnchoredDrawings:cr,columnBoxForParagraph:dr,pageExclusionZones:()=>n.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([]),paragraphOrderIndex:O=>Ze.get(O),onAnchorShift:(O,$)=>Dc(Z,O,$),onAnchorRepublish:(O,$)=>{for(let Y=Z.length-1;Y>=0;Y-=1)Z[Y].anchorParagraphId===O&&Z.splice(Y,1);Z.push(...$);}}:{},borderOwnershipBudget:Ks(),vMergeResolveBudget:Au(),displayMode:u},Jl=O=>ul(d?.get(O.paragraph.id)??O.listItem,O.indent,i,O.tabStops,O.available),Ql=(O,$,Y=0)=>{let oe=O.paragraph.id,Te=!(m?.has(oe)??false)&&((p?.has(oe)??false)||(g?.has(oe)??false)),xe=O.available,J=tn(),ee=(n.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([])).filter(At=>{let gt=Ze.get(O.paragraph.id),nn=Ze.get(At.anchorParagraphId);if(gt!==void 0&&nn!==void 0){if(nn>gt)return false}else {let Ct=se.findIndex(jt=>jt.kind==="paragraph"&&jt.paragraph.id===At.anchorParagraphId);if(Ct<0||Ct>$)return false}return !(Et>1&&At.columnIndex!==Pe)}),Ce=bn(ee),Ue=n.drawingTokenForParagraph?.(O.paragraph)??n.drawingLayoutToken??(n.inlineDrawingLayout?"drawing":void 0),Nt=s&&!Te?Ce||Ue?Ir({paragraph:O.paragraph,properties:O.props,width:xe,producer:b,...Ue?{drawingToken:Ue}:{},...Ce?{exclusionToken:`${Pe}|${ae.toFixed(3)}|${Ce}`}:{},...Y>0?{startOffset:Y}:{}}):Y===0?O.key:`${O.key}|from:${Y}`:null,Ge=Et>1;return _s(O.paragraph,oe,O.indent.left,xe,i,s,Nt,O.inheritedRunProperties,O.tabStops,void 0,l?(At,gt)=>Nn(At,gt,l):void 0,{lineSpacing:O.lineSpacing,equationCacheToken:b,firstLineOffset:Y===0?Jl(O):0,startOffset:Y,marginExtent:{left:0,right:O.indent.left+xe+O.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:D,displayMode:u,...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:Ge?J:0,contentRight:Ge?J+V():O.indent.left+xe+O.indent.right,paragraphStartY:ae,...ee.length>0?{pageExclusionZones:ee}:{},...Te?{suppressEmptyPlaceholderLine:true}:{},...l?{themeFonts:l.themeFonts}:{},markRunProperties:O.markRunProperties})},Lf=(O,$)=>(n.drawingExclusionZonesByPage?.get(j.length)??Object.freeze([])).filter(oe=>{let ke=Ze.get(O.paragraph.id),Te=Ze.get(oe.anchorParagraphId);if(ke!==void 0&&Te!==void 0){if(Te>ke)return false}else {let xe=se.findIndex(J=>J.kind==="paragraph"&&J.paragraph.id===oe.anchorParagraphId);if(xe<0||xe>$)return false}return !(Et>1&&oe.columnIndex!==Pe||oe.anchorParagraphId===O.paragraph.id&&oe.input.mode==="topAndBottom")}),Ff=(O,$,Y,oe,ke,Te,xe)=>{let J=Lf(O,$);if(!n.inlineDrawingLayout||oe<=ke)return J;let he=Kt(O.paragraph),ee=new Map,Ce=0;for(let gt=ke;gt<oe;gt+=1){let nn=Y[gt];for(let jt of he.values())jt>=nn.start&&jt<nn.end&&ee.set(jt,Ce);let Ct=xe.get(gt)??Y[gt].exclusionSkipBefore??0;Ce+=Ct+Y[gt].height;}if(ee.size===0)return J;let Ue=Et>1,Nt=O.available,Ge=tn(),At=Bs({paragraph:O.paragraph,paragraphId:O.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:Ue?Ge:0,contentRight:Ue?Ge+V():O.indent.left+Nt+O.indent.right,paragraphStartY:Te,anchorLineTopByModelStart:ee,columnIndex:Pe,displayMode:u});return Object.freeze([...J,...At])},DS=(O,$,Y,oe,ke,Te,xe,J)=>{if(n.inlineDrawingLayout){let Ue=[...Kt(O.paragraph).values()];if(Ue.length>0){let Nt=Math.min(...Ue);if(xe.end<=Nt||Ue.some(Ge=>Ge>=xe.start&&Ge<xe.end)&&xe.end<=Nt+1)return 0}}let he=Ff(O,$,Y,oe,ke,Te,J),ee=he.length>0?xn(ae,xe.height,he):0,Ce=xe.exclusionSkipBefore??0;return ee>.001?ee:Ce},_S=O=>{let $={cursorY:ae,columnWidth:V,columnLeft:I,contentHeight:me,advanceColumn:()=>{ae=$.cursorY,Si(),$.cursorY=ae;},anchorFrames:ne,styleCascade:l,displayMode:u,deps:AS,shiftAnchor:(Y,oe)=>Dc(Z,Y,oe),publishFragment:Y=>ve.push(Y)};Zy(O,$),ae=$.cursorY;},Gn=false,ed=se.length,td=0;for(let O=Ke;O<se.length;O+=1){let $=ge(e[O],V());if(de[O]=Le(),Pn&&Qt>0&&O>=se.length-Qt){let te=S.checkpoints[O+(S.keys.length-se.length)];if(te&&te.cursorY===ae&&te.previousSpaceAfter===le&&te.flowColumnIndex===Pe&&Dx(te.pageFragments,ve)&&wf(te.pendingAnchoredDrawings,Z)&&wf(te.deferredAnchoredDrawings,ue)&&zx(te.anchorPageDeferCounts,ce)){let ie=j.length-te.pageCount;if(Tb({delta:ie,titlePage:k?.titlePage===true,evenAndOddHeaders:k?.evenAndOddHeaders===true,parityDependent:S.parityDependent,usedPageParity:_,markPageCount:te.pageCount,continuedInsets:R!==void 0,hasNoteReserves:w!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let kt=ie===0?lt.pages.slice(te.pageCount):lt.pages.slice(te.pageCount).map((bt,rn)=>Nr(bt,j.length+rn,pe(j.length+rn).y));j.push(...kt),ut+=kt.length,Gn=true,ed=O,td=ie,He+=S.endLineCounter-te.lineCounter;break}}}if(ze+=1,$.kind==="table"){le=0,X=[];try{_S($.table),yg($.table,X);}finally{X=null;}continue}let{paragraph:Y,props:oe,spacing:ke,contextualSpacing:Te,styleId:xe,borders:J,shading:he,keeps:ee}=$,{indent:Ce,alignment:Ue,markRunProperties:Nt}=$,Ge=$.available,At=O>0?se[O-1]:void 0,gt=se[O+1],nn=te=>te?.kind==="paragraph"&&te.styleId===xe&&xe!==null,Ct=Te?{before:nn(At)?0:ke.before,after:nn(gt)?0:ke.after}:ke,jt=d?.get(Y.id)??$.listItem,Vr=Jl($),Gt=Y.id,$r=$.borderGroupKey,Ri=te=>$r!==""&&te?.kind==="paragraph"&&te.borderGroupKey===$r,wi=Ri(At),Pi=Ri(gt),aa=wi?void 0:J.top,Xr=Pi?J.between:J.bottom,ur=Kn(aa),zf=Kn(Xr);qd(oe)&&(ve.length>0||j.length===0)&&(Wr(),le=0);let nt=Ql($,O);if(nt.length===0)continue;let zS=Nl(Y)!==void 0&&NS($,nt),jf=()=>zS&&E===void 0&&tt+1>=a.count,nd=te=>{let ie=ge(Y,V());ie.kind==="paragraph"&&(Ce=ie.indent,Ue=ie.alignment,Ge=ie.available,Nt=ie.markRunProperties,Vr=te===0?Jl(ie):0,nt=[...Ql(ie,O,te)]);};{let te=go(Ct.before,le),ie=Nt.length===0?mn:Ae(Nt,l?.themeFonts),ht=nt.length<=1?zf+Ct.after:0,kt=ae+te+ur,bt=Ff($,O,nt,0,0,kt,new Map),rn=nt[0]?Kc(kt,nt[0],bt,ht):i.lineMetrics(ie).height+ht,Vn=te+ur+rn;if(ee.keepNext&&!be[O-1]){let rt=dh(se,O,le,In=>{let on=se[In];return on?.kind==="paragraph"?Ql(on,In).map(Wt=>Wt.height):[]});rt!==null&&rt+ur<=me()&&(Vn=Math.max(Vn,rt+ur));}ae+Vn>me()&&ae>0&&!jf()&&(Si(),le=0,nd(0));}let jS=ae===0&&!re(),rd=nc(Ct.before,le,jS,en);rd>0&&(ae+=rd),ur>0&&(ae+=ur),en=false;let fr=0,Ee=[],Gf=nt[0]?.start??0,Yr=rd,pr=ur,od=false,ia=ae,Wf=0,Ii=new Map;le=0;let Vf=n.inlineDrawingLayout!==void 0&&Mt($.paragraph,n.inlineDrawingLayout).length>0,$f=false,ad=null,GS=wr($.paragraph),Xf=$s($.paragraph),Yf=Xf?Ws(Xf):null,WS=()=>{let te=Ee[0];if(!te)return 0;let ie=Wf;if(ie<=.001)return 0;let ht=xn(ia,te.box.height,Lf($,O));return Math.max(0,ie-ht)},vi=te=>{if(Ee.length===0)return;let ie=I(),ht=tn(),kt=Ee[0].box.y,bt=kt-Yr-pr,rn=Ee[Ee.length-1].box.y+Ee[Ee.length-1].box.height,Vn=te?Ct.after:0,rt=[],In,on=kt,Wt=rn,$n=J.left?wt(J.left):0,la=J.right?wt(J.right):0,Kr=J.left?ie+Ce.left-J.left.spacePt-$n:ie+Ce.left,sd=J.right?ie+Ce.left+Ge+J.right.spacePt+la:ie+Ce.left+Ge,Ur=Math.max(sd-Kr,0);if(pr>0&&aa){let ft=wt(aa),an=kt-aa.spacePt-ft;rt.push({side:"top",edge:aa,box:{x:Kr,y:an,width:Ur,height:ft}}),on=an;}if(te&&Xr){let ft=wt(Xr),an=rn+Xr.spacePt,Xn={x:Kr,y:an,width:Ur,height:ft};rt.push({side:Pi?"between":"bottom",edge:Xr,box:Xn}),Pi||(In={edge:Xr,box:Xn}),Wt=an+ft;}te&&(ae=Math.max(ae,Wt+Vn));let qr=Math.max(Wt+Vn-bt,0),Me=wi&&fr===0?bt:on,vn=Pi&&te?bt+qr:Wt,Zr=Math.max(vn-Me,0);if(J.left&&rt.push({side:"left",edge:J.left,box:{x:ie+Ce.left-J.left.spacePt-$n,y:Me,width:$n,height:Zr}}),J.right&&rt.push({side:"right",edge:J.right,box:{x:ie+Ce.left+Ge+J.right.spacePt,y:Me,width:la,height:Zr}}),J.bar){let ft=wt(J.bar);rt.push({side:"bar",edge:J.bar,box:{x:ie+Ce.left-J.bar.spacePt-ft,y:kt,width:ft,height:Math.max(rn-kt,0)}});}let Jr=Yf?Vs(Ee,Yf):null,Qr=fr===0?fl(jt,i,Ee[0]?{y:Ee[0].box.y,height:Ee[0].box.height}:void 0):void 0,Ti=Qr?{...Qr,box:{...Qr.box,x:Qr.box.x+ie}}:void 0;if(ve.push({kind:"paragraph",id:`${Gt}#f${fr}`,paragraphId:Gt,fragmentIndex:fr,range:Jr?Jr[Jr.length-1].range:{paragraphId:Gt,start:Gf,end:Ee[Ee.length-1].range.end},props:oe,spacing:{before:Yr,after:Vn},indent:Ce,...In?{bottomBorder:In}:{},...rt.length>0?{borders:rt}:{},...he===void 0?{}:{shading:he,shadingBox:J.left||J.right?{x:Kr,y:on,width:Ur,height:Math.max(Wt-on,0)}:Ba(Ee,ie+Ce.left,Ge)},tabStops:$.tabStops,...Ti?{marker:Ti}:{},...te&&f?xs(GS,ko($.paragraph)):{},lines:Jr??Ee,box:{x:ht+Ce.left,y:bt,width:Ge,height:qr}}),n.inlineDrawingLayout&&Vf&&!$f){$f=true;let ft=[...Kt($.paragraph).values()],an=ft.length>0&&ft.every(Ot=>Ee.some(mr=>Ot>=mr.range.start&&Ot<mr.range.end)),Xn,Ci,ld;if(an){let Ot=bt-WS();Xn=Ee,Ci={x:ht+Ce.left,y:Ot,width:Ge,height:qr},ld=dr({x:ht+Ce.left,y:Ot,height:qr});}else {let Ot=ad??{columnX:ht,columnWidth:V(),startY:bt},mr=Ot.startY;Xn=nt.map((Vt,VS)=>{let $S={id:`anchor-line-${VS}`,range:{paragraphId:Gt,start:Vt.start,end:Vt.end},box:{x:Ot.columnX+Ce.left,y:mr,width:Ge,height:Vt.height},contentX:Vt.spans.length>0?Vt.spans[0].box.x+Ot.columnX:Ot.columnX+Ce.left,baseline:Vt.baseline,leading:Vt.leading,trailingSpacing:Vt.trailingSpacing,spans:Vt.spans.map(dd=>({...dd,box:{...dd.box,x:dd.box.x+Ot.columnX,y:mr}}))};return mr+=Vt.height+(Vt.exclusionSkipBefore??0),$S});let Kf=Ot.startY;Ci={x:Ot.columnX+Ce.left,y:Kf,width:Ge,height:Math.max(mr-Kf,Ee[0]?.box.height??0)},ld=dr(Ci);}cr(or({paragraph:$.paragraph,paragraphId:Gt,paragraphBox:Ci,lines:Xn,drawingLayout:n.inlineDrawingLayout,frameBase:jn(),columnBox:ld,cellBox:null,pageClip:ra(),measurer:i,sourceOrderOf:oa,layoutTextboxStory:Mf,displayMode:u}));}fr+=1,Gf=Ee[Ee.length-1].range.end,Ee=[],Yr=0,pr=0;},Wn=0,id=0,sa=nt.length+8;for(let te=0;te<nt.length;te+=1){let ie=nt[te],ht=te===nt.length-1,kt=ht?zf+Ct.after:0;te===Wn&&(ia=ae,Vf&&ad===null&&fr===0&&(ad=Object.freeze({columnX:tn(),columnWidth:V(),startY:ia})));let bt=DS($,O,nt,te,Wn,ia,ie,Ii),rn=bt+Math.max(0,ie.height-ie.trailingSpacing)+kt;if(ae+rn>me()&&!jf()&&(Ee.length>0||ve.length>0||j.length>0)){let Me=!re(),vn=id<sa?lh(te,Wn,nt.length,ee,Me):te,Zr=vn<te;for(let ft=te;ft>vn;ft-=1){Ee.pop();let an=nt[ft-1],Xn=Ii.get(ft-1)??an.exclusionSkipBefore??0;Ii.delete(ft-1),ae-=an.height+Xn,He-=1;}let Jr=Zr&&Ee.length===0&&fr===0,Qr=nt[vn].start,Ti=V();if(vi(false),Si(),Yr=0,Jr?ae=pr:pr=0,V()!==Ti){nd(Qr),sa=Math.max(sa,nt.length+8),Wn=0,Zr&&(id+=1),te=-1;continue}if(Wn=vn,ia=ae,Zr){id+=1,te=vn-1;continue}}let rt=tn();Ii.set(te,bt),ae+=bt;let In=rt+Ce.left+(te===0?Vr:0),on=Math.max(1,Ge-(te===0?Vr:0)),Wt=ie.spans.map(Me=>({...Me,range:{...Me.range,paragraphId:Gt},box:{...Me.box,x:Me.box.x+rt,y:ae}})),$n=As(Wt,i,In,on,Ue,ht,Ue==="center"||Ue==="right"?ie.width:void 0),la=Wt.length>0&&$n.length>0?$n[0].box.x-Wt[0].box.x:Ue!=="left"&&Ue!=="both"?(()=>{let Me=on-ie.width;return Me<=0?0:Ue==="center"?Me/2:Me})():0,Kr=Object.freeze({x:0,y:0,width:P,height:me()}),sd=ie.drawings.map(Me=>{let vn=Object.freeze({...Me,paragraphId:Gt,x:rt+Me.x,y:ae+Me.y,advanceStart:Me.advanceStart+rt,advanceEnd:Me.advanceEnd+rt,paintBounds:Object.freeze({...Me.paintBounds,x:rt+Me.paintBounds.x,y:ae+Me.paintBounds.y}),hitBounds:Object.freeze({...Me.hitBounds,x:rt+Me.hitBounds.x,y:ae+Me.hitBounds.y})});return Os(vn,Kr)}),Ur=Ds(sd,la),qr={id:Ux(Y.id,ie.start,te),range:{paragraphId:Gt,start:ie.start,end:ie.end},spans:$n,box:{x:tn()+Ce.left,y:ae,width:Ge,height:ie.height},contentX:$n[0]?.box.x??In+la,baseline:ie.baseline,leading:ie.leading,trailingSpacing:ie.trailingSpacing,...ie.deletedRanges?{deletedRanges:ie.deletedRanges}:{},...Ur.length>0?{drawings:Ur}:{},...ie.anchorRevisions?{anchorRevisions:ie.anchorRevisions}:{}};if(He+=1,Ee.length===0&&(Wf=bt),Ee.push(qr),ae+=ie.height,ie.columnBreakAfter){let Me=V();if(vi(ht),Si(),Yr=0,pr=0,od=true,!ht&&V()!==Me){nd(ie.end),sa=Math.max(sa,nt.length+8),Wn=0,te=-1;continue}Wn=te+1;}else ie.pageBreakAfter&&(vi(ht),Wr(),Yr=0,pr=0,od=true,Wn=te+1);}vi(true),le=od?0:Ct.after;}Gn||(de[se.length]=Le());let Ef=Gn&&S?S.endCursorY:ae,Nf=Gn&&S?S.endSpaceAfter:le,Af=!Gn&&(ve.length>0||j.length===0),Df=Gn&&S?S.endsOpenPage:Af;Af&&Wr();let _f=0,HS=zc*4+8;for(;(Z.length>0||ue.length>0)&&_f<HS;)_f+=1,Z.length===0&&je(),Wr();ue.length>0&&(Z.push(...ue.map(O=>$c(O,"page-defer-exhausted"))),ue=[],Wr()),Ft();let Hf={revision:t,pages:j};if(S){S.previous=Hf,S.checkpoints=Gn?[...de.slice(0,ed),...S.checkpoints.slice(ed+(S.keys.length-se.length)).map($=>td===0?$:{...$,pageCount:$.pageCount+td})]:de,S.keys=st,S.context=j.length+1===F?z:A(Sf(w,y,j.length+1)),S.producer=b;let O=_||k?.evenAndOddHeaders===true;S.parityDependent=Ke===0&&!Gn?O:S.parityDependent||O,S.startPageParity=q,S.startLineCounter=C,S.endLineCounter=He,S.endCursorY=Ef,S.endSpaceAfter=Nf,S.endsOpenPage=Df,S.stats={placed:ze,total:se.length,reusedPages:ut,fullPasses:S.stats.fullPasses+(Ke===0?1:0)};}return {layout:Hf,pages:j,lineCounter:He,endCursorY:Ef,endSpaceAfter:Nf,endsOpenPage:Df,overflowShellAt:Ie}}function qx(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){let a=0;for(let i=t.count-1;i>=0;i-=1)if(o.box.x+.5>=t.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var tk=.25,nk=20;function ea(e,t,n){let r=lf(n.sectionColumns??Jt.columns,n.geometry.width-n.geometry.margin.left-n.geometry.margin.right);if(!n.balanceColumns||r.count<2||n.columnRegionBottom!==void 0)return n.session&&(n.session.balanceLimit=null),Gr(e,t,n);let o=n.session,a=n.flowStartY??0,{session:i,...s}=n,l=x=>{let h=x.pages[0],b=h?Math.max(...qx(h,r,a)):x.endCursorY;return o&&(o.endCursorY=b),{...x,endCursorY:b}};if(o&&o.balanceLimit!==null){let x=o.balanceLimit,h=Gr(e,t,{...n,columnRegionBottom:x});if(o.stats.placed===0&&o.stats.reusedPages===h.pages.length)return o.balanceLimit=x,l(h)}let d=Gr(e,t,s);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),Gr(e,t,n);let c=qx(d.pages[0],r,a),u=c.reduce((x,h)=>x+Math.max(0,h-a),0);if(u<=0)return o&&(o.balanceLimit=null),Gr(e,t,n);let f=a+u/r.count,p=Math.max(...c)+.01,m=x=>{try{let h=Gr(e,t,{...s,columnRegionBottom:x});return h.pages.length===1&&h.endsOpenPage}catch{return false}};for(let x=0;x<nk&&p-f>tk;x+=1){let h=(f+p)/2;m(h)?p=h:f=h;}let g=Gr(e,t,{...n,columnRegionBottom:p});return o&&(o.balanceLimit=p),l(g)}var eS="Calibri, Carlito, Helvetica, Arial, sans-serif",fD=new Map([["calibri","Carlito"]]),rk=65536,ok=256;function Zx(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function Jx(e){let t=new Map,n=0;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>e;){let a=t.keys().next();if(a.done)break;t.delete(a.value),n+=1;}},get size(){return t.size},get evictions(){return n}}}var Qx=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function tS(e=null){return e!=null&&typeof e.measureText=="function"}function nS(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??eS,r=e.context??null;if(!tS(r))return null;let o=r,a=Jx(Zx(e.maxWidthEntries,rk)),i=Jx(Zx(e.maxMetricsEntries,ok)),s=e.fontAlias,l=c=>{let u=c.fontFamily&&Qx.test(c.fontFamily)?c.fontFamily:null,f=u?s?.(u):void 0,p=f&&Qx.test(f)?f:null,m=u?p?`"${p}", "${u}", ${n}`:`"${u}", ${n}`:n,g=c.bold?"bold":"normal",x=c.italic?"italic":"normal",h=c.smallCaps?"small-caps":"normal",b=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*t;return `${x} ${h} ${g} ${b}px ${m}`},d=(c,u,f)=>c/t*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=l(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=l(c),p=i.get(f);if(p)return p;let m=u*1.15,g=u*.8;o.font=f;let x=o.measureText("Hxg"),h=x.fontBoundingBoxAscent,b=x.fontBoundingBoxDescent;if(typeof h=="number"&&Number.isFinite(h)&&h>0&&(g=h/t,typeof b=="number"&&Number.isFinite(b)&&b>=0)){let k=(h+b)/t;k>0&&(m=Math.max(k,m));}m>0||(m=u*1.15);let P={height:m,baseline:g};return i.set(f,P),P}}}function ak(e=1,t={}){let n=nS({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:$l(),producer:"fixed-measurer"}}function ik(e){return e.box}function rS(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)rS(o,t);}function sk(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkILTZTY3K_cjs.jf*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let l of r)t.get(l)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let l=chunkILTZTY3K_cjs.tf(s);l&&n(l,a,i+1),r.pop();let d=t.get(s.id);d&&d.length===0&&a!==null&&d.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function lk(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function dk(e,t){let n=chunkILTZTY3K_cjs.xf(e.root);if(n.length===0)return ck;let r=new Map;t.pages.forEach((i,s)=>{(d=>{for(let c of d){let u=new Set;rS(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:s,box:ik(c)}),r.set(f,p);}}})(i.fragments);});let o=sk(e.root),a=[];for(let i of n){let s=chunkILTZTY3K_cjs.vf(i.node),l=[...i.ancestors.map(f=>chunkILTZTY3K_cjs.vf(f).lock),s.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?lk(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:s.type,level:chunkILTZTY3K_cjs.wf(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunkILTZTY3K_cjs.Af(l),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:d,fragments:u});}return a}var ck=Object.freeze([]);function aS(e,t,n){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return n<o.range.end;let i=a.filter(s=>s.range.paragraphId===t);return i.length===a.length?n<o.range.end:i.length>0&&n<i[i.length-1].range.end});return r?r.box.y:e.fragmentY}function Rk(e,t){let n=new Map;for(let r of e.pages)for(let[o,a]of wk(r,t))n.has(o)||n.set(o,a);return n}var oS=new WeakMap;function wk(e,t){let n=oS.get(t);n||(n=new WeakMap,oS.set(t,n));let r=n.get(e);if(r)return r;let o=new Map;for(let a of t(e)){let i=new Set([a.paragraphId]);for(let s of a.lines??[])for(let l of s.spans??[])i.add(l.range.paragraphId);for(let s of i)o.has(s)||o.set(s,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return n.set(e,o),o}function Pk(e,t){let n=chunkJWZG4QJ5_cjs.Y(e);if(!n)return null;let r=t.get(n.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+aS(r,n.start.paragraphId,n.start.offset)}:null}var Ik=.5,vk=4,Tk="abcdefghijklmnopqrstuvwxyz",iS=e=>e.verticalAlign==="baseline"?1:.75;function vf(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function Ck(e){let{shaper:t,resolveFont:n,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:s="Latn",language:l="en"}=e,d=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,m=b=>{let P=f.get(b);if(P!==void 0)return P;let k=n(b);return f.set(b,k),k},g=(b,P,k)=>{let v=k?c:d,L=v.get(b);L||(L=new Map,v.set(b,L));let w=L.get(P);return w||(w=new Map,L.set(P,w)),w},x=(b,P,k)=>t.shape({text:b,fontSizeHalfPoints:vf(k),bidiLevel:0,environment:hr({font:P,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:s,language:l,direction:"ltr",features:k.smallCaps?{smcp:1}:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})}),h=(b,P)=>{let k=p.get(b);if(k!==void 0)return k;let v=true;try{for(let L of Tk){let w=x(L,b,{...P,smallCaps:!0}),S=x(L,b,{...P,smallCaps:!1});if(!(w.glyphs.length!==S.glyphs.length||w.glyphs.some((T,N)=>T.id!==S.glyphs[N]?.id))){v=!1;break}}}catch{v=false;}return p.set(b,v),v};return {measure(b,P){if(b.length===0)return 0;let k=m(P);if(!k)return r.measure(b,P);let v=g(k,vf(P),P.smallCaps),L=v.get(b);if(L===void 0){let w=0;try{if(P.smallCaps&&!h(k,P))return r.measure(b,P);let S=x(b,k,P);for(let C of S.glyphs)w+=C.advanceX;}catch{return r.measure(b,P)}L=w/i,v.set(b,L);}return L*iS(P)*(P.horizontalScalePercent/100)+b.length*P.characterSpacingPt},lineMetrics(b){let P=m(b);if(!P)return r.lineMetrics(b);let k=iS(b),v=u.get(P);v||(v=new Map,u.set(P,v));let L=vf(b),w=v.get(L);if(w)return k===1?w:{height:w.height*k,baseline:w.baseline*k};let S,C=true;try{let T=x(" ",P,b),N=T.metrics.ascent/i,M=T.metrics.descent/i,y=L/2,G=N+M,D=y*vk,F=G>D?D/G:1,E=G*F,B=Math.min(Math.max(0,T.metrics.lineGap/i),E*Ik),R=E+B;R>0?S={height:R,baseline:N*F}:(S=r.lineMetrics(b),C=!1);}catch{S=r.lineMetrics(b),C=false;}return C?(v.set(L,S),k===1?S:{height:S.height*k,baseline:S.baseline*k}):S}}}function kk(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let l of t.pages)r.add(l.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let l of t.pages){let d=l.box.y;d+l.box.height>=n.top&&d<=a&&(i===-1&&(i=l.index),s=l.index);}if(i===-1){let l=Ok(t,n.top);l!==null&&(i=l,s=l);}if(i!==-1){let l=Math.max(0,i-o),d=Math.min(t.pages.length-1,s+o);for(let c=l;c<=d;c+=1)r.add(c);}for(let l of e.pinnedPages??[])l>=0&&l<t.pages.length&&r.add(l);return r}function Ok(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var sS=["text-local","paragraph-local","flow-structural","global"];function lS(e,t){return sS.indexOf(t)>sS.indexOf(e)?t:e}function Bk(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function Mk(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,l=0,d=0;function c(x){let h=e.runCooperatively;if(!h)return t(x);let b=h(x);s=b;try{for(;;){let P=b.step();if(P)return P;if(n()!==x.revision)return b.cancel(),d+=1,null;if(s!==b)return null}}finally{s===b&&(s=null);}}function u(x){let h=p(n());h.impact=lS(h.impact,x.impact),h.structural=h.structural||x.structural;for(let b of x.paragraphIds)h.paragraphIds.add(b);for(let b of x.created)h.created.add(b);for(let b of x.deleted)h.deleted.add(b);for(let b of x.dependencyKeys)h.dependencyKeys.add(b);}let f=x=>({impact:x.impact,paragraphIds:x.paragraphIds,created:x.created,deleted:x.deleted,dependencyKeys:x.dependencyKeys,structural:x.structural,revision:x.revision});function p(x){return a||(a=Bk(x)),a.revision=Math.max(a.revision,x),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),s&&(s.cancel(),s=null,d+=1);let x=a;if(!x)return false;a=null;let h=f(x),b=c(h);return !b||b.revision!==n()?(l+=1,u(h),m(),false):(r(b,h),true)}return {notify(x){let h=p(n());h.impact=lS(h.impact,x.impact);for(let b of x.dirty)h.paragraphIds.add(b);for(let b of x.created)h.created.add(b),h.paragraphIds.add(b);for(let b of x.deleted)h.deleted.add(b),h.paragraphIds.add(b);for(let b of x.dependencyKeys)h.dependencyKeys.add(b);for(let b of x.splitJoin)h.structural=true,"split"in b?(h.paragraphIds.add(b.split.from),h.paragraphIds.add(b.split.tail)):(h.paragraphIds.add(b.join.kept),h.paragraphIds.add(b.join.removed));(x.impact==="flow-structural"||x.impact==="global")&&(h.structural=true),m();},invalidateAll(x,h){let b=p(x);b.impact="flow-structural",b.structural=true,h&&b.dependencyKeys.add(h),m();},flush:g,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return l},get cancelledRuns(){return d}}}function Rn(e,t,n,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(t===i.start)return i.advanceStart;if(t===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(t<=i.range.start)return i.box.x;if(t>=i.range.end){a=i.box.x+i.box.width;continue}return bl(i,t,n)}return a}function uS(e,t,n){return fS(e,t,n,true)}function FD(e,t,n){return fS(e,t,n,false)}var dS=new WeakMap,cS=new WeakMap;function Lk(e){let t=dS.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of Xe(r))for(let a of o.lines)for(let i of it(a)){let s=n.get(i.paragraphId);(!s||i.end>s.end||i.end===s.end&&i.start>s.start)&&n.set(i.paragraphId,{end:i.end,start:i.start});}return dS.set(e,n),n}function Fk(e){let t=cS.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return cS.set(e,n),n}function Ek(e){return Math.max(3,Math.min(8,e*.25))}function fS(e,t,n,r){let o=Xl(t,n);if(!o)return [];let a=Fk(n),i=a.get(o.from.paragraphId),s=a.get(o.to.paragraphId),l=Lk(e),d=[];for(let c of e.pages)for(let u of Xe(c))for(let f of u.lines){let p=it(f);for(let[m,g]of p.entries()){let x=Fr(e,g,o.from,o.to),h=a.get(g.paragraphId),b=l.get(g.paragraphId),P=i!==void 0&&s!==void 0&&h!==void 0&&h>=i&&h<s&&b?.end===g.end&&b.start===g.start&&m===p.length-1;if((!r||!x)&&!P)continue;let k=r&&x?Rn(f,x.start,void 0,g):null,v=r&&x?Rn(f,x.end,void 0,g):null,L=P?Rn(f,g.end,void 0,g):null,w=L!==null?L+Ek(Math.max(0,f.box.height-f.leading-(f.trailingSpacing??0))):null,S=[k,v,L,w].filter(N=>N!==null),C=Math.min(...S),T=Math.max(...S);d.push({pageIndex:c.index,x:C,y:f.box.y,width:T-C,height:f.box.height});}}return d}function pS(e,t,n){let r=new Map;if(t.length===0)return r;for(let o of e.pages)if(!(n&&!n.has(o.index)))for(let a of Xe(o))for(let i of a.lines)for(let s of it(i))for(let l of t){let d=Fr(e,s,l.from,l.to);if(!d)continue;let c=Rn(i,d.start,void 0,s),u=Rn(i,d.end,void 0,s),f=r.get(l.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(l.key,f);}return r}function ED(e,t,n){if(Lr(e).has(t))return {x:0,y:0};let r=e.pages[n];if(!r)return {x:0,y:0};let o=a=>St(a).some(i=>i.paragraphId===t);if(r.header&&o(r.header.fragments))return {x:r.header.box.x-r.contentBox.x,y:r.header.box.y-r.contentBox.y};if(r.footer&&o(r.footer.fragments))return {x:r.footer.box.x-r.contentBox.x,y:r.footer.box.y-r.contentBox.y};for(let a of [r.footnotes,r.endnotes])if(a){for(let i of a.notes)if(o(i.fragments))return {x:i.box.x-r.contentBox.x,y:i.box.y-r.contentBox.y}}return {x:0,y:0}}function ND(e,t,n,r){let o=new Map,a=[];for(let s of t){let l=Xl({anchor:s.from,head:s.to},n);l&&a.push({key:s.key,from:l.from,to:l.to});}if(a.length===0)return o;let i=(s,l,d,c)=>{for(let u of St(s))for(let f of u.lines){for(let p of it(f))for(let m of a){let g=Fr(e,p,m.from,m.to);if(!g)continue;let x=Rn(f,g.start,void 0,p),h=Rn(f,g.end,void 0,p),b=o.get(m.key)??[];b.push({pageIndex:l,x:Math.min(x,h)+d,y:f.box.y+c,width:Math.abs(h-x),height:f.box.height}),o.set(m.key,b);}}};for(let s of e.pages)if(!(r&&!r.has(s.index))){i(s.fragments,s.index,0,0);for(let l of [s.header,s.footer])l&&i(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);for(let l of [s.footnotes,s.endnotes])if(l)for(let d of l.notes)i(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);}return o}function Tf(e){let t=new Map;for(let n=0;n<e.length;n+=1){let r=e[n].position,o=t.get(r.paragraphId);o||(o=new Map,t.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,n);}return {stops:e,index:t}}var Yl=class{#t=new WeakMap;#s=new WeakMap;get(t,n,r,o){let a;if(!r)a=this.#t.get(t)??new Map,this.#t.has(t)||this.#t.set(t,a);else {let l=this.#s.get(t);l||(l=new WeakMap,this.#s.set(t,l)),a=l.get(r)??new Map,l.has(r)||l.set(r,a);}let i=a.get(n);if(i)return i;let s=o();return a.set(n,s),s}};function mS(e){let t=[],n=new Set;for(let r of e)n.has(r.lineId)||(n.add(r.lineId),t.push(r.lineId));return t}function gS(e,t,n){let r=null;for(let o of e)o.lineId===t&&(!r||Math.abs(o.x-n)<Math.abs(r.x-n))&&(r=o);return r}function bi(e,t){let n=null;for(let r of e)r.position.paragraphId===t.paragraphId&&(!n||Math.abs(r.position.offset-t.offset)<Math.abs(n.position.offset-t.offset))&&(n=r);return n}function Cf(e,t,n){let r=null;for(let o of e){if(o.position.paragraphId!==t.paragraphId)continue;let a=o.position.offset;n===1?a>t.offset&&(!r||a<r.position.offset)&&(r=o):a<t.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function hS(e,t,n){let r=n.index.get(e.paragraphId)?.get(e.offset),o=r===void 0?bi(n.stops,e):n.stops[r];if(!o)return null;let a=o.lineId,i=n.stops.filter(s=>s.lineId===a);return (t===-1?i[0]:i[i.length-1])?.position??null}function yS(e,t,n,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0){let c=Cf(a.stops,e,t);if(c)return {position:c.position,desiredX:null}}else {let c=i+t;if(c>=0&&c<a.stops.length)return {position:a.stops[c].position,desiredX:null}}let s=n[r+t];if(!s)return {position:e,desiredX:null};let l=o(s).stops,d=t===-1?l[l.length-1]:l[0];return d?{position:d.position,desiredX:null}:null}function bS(e,t,n){let r=e===-1?t[0]:t[t.length-1];if(!r)return null;let o=n(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function xS(e,t,n,r,o,a){let i=a(e.paragraphId),s=i.index.get(e.paragraphId)?.get(e.offset),l=s===void 0?bi(i.stops,e):i.stops[s];if(!l)return null;let d=n??l.x,c=mS(i.stops),u=c.indexOf(l.lineId),f=c[u+t];if(f){let m=gS(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+t;m>=0&&m<r.length;m+=t){let g=a(r[m]),x=mS(g.stops),h=t===-1?x[x.length-1]:x[0];if(!h)continue;let b=gS(g.stops,h,d);if(b)return {position:b.position,desiredX:d}}let p=t===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var SS=new WeakMap,RS=new WeakMap;function Lt(e){let t=SS.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of Dk(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return SS.set(e,n),n}function Dk(e){let t=RS.get(e);if(t)return t;let n=new Map,r=(a,i)=>{for(let s of it(a)){let l={line:a,pageIndex:i},d=n.get(s.paragraphId);d?d.push(l):n.set(s.paragraphId,[l]);}},o=(a,i)=>{let s=l=>{for(let d of l){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)s(u.blocks);}};s(a);};for(let a of Xe(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 RS.set(e,n),n}function jD(e,t,n){let r=Lt(e).get(t);if(r&&r.length>0){let o=Pa(e,t,n,r.map(a=>a.line));if(o)return o}return Pa(e,t,n)}var wS=new WeakMap;function kf(e,t){let n=wS.get(e);n||(n=new Map,wS.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of Lt(e).get(t)??[])if(i.range.paragraphId===t)for(let s of i.deletedRanges??[])o.push({start:s.start,end:s.end});o.sort((i,s)=>i.start-s.start);let a=[];for(let i of o){let s=a[a.length-1];s&&i.start<=s.end?s.end=Math.max(s.end,i.end):a.push(i);}return n.set(t,a),a}function PS(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function IS(e,t){for(let n of kf(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var _k=/[\p{L}\p{N}_'\u2019]/u;function xi(e,t,n,r=Hk){let o=i=>{let s=e[i];return s!==void 0&&_k.test(s)},a=Math.max(0,Math.min(t,e.length));if(n===-1){for(;a>0&&!o(a-1);)if(a-=1,r.has(a))return a;for(;a>0&&o(a-1);)if(a-=1,r.has(a))return a;return a}for(;a<e.length&&!o(a);)if(a+=1,r.has(a))return a;for(;a<e.length&&o(a);)if(a+=1,r.has(a))return a;return a}var Hk=new Set;function zk(e,t,n){let r=Lt(e).get(t.range.paragraphId)??[],o=false;for(let a of r){if(a.line===t){o=true;continue}if(o&&a.line.range.start===n)return true}return false}function jk(e,t,n){for(let{line:r}of Lt(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function Gk(e,t,n){for(let r of n?n.spans:e.spans)if(!(t<=r.range.start||t>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function CS(e){let t=e.spans[e.spans.length-1]?.text;return t===`
16
+ `||t===chunkILTZTY3K_cjs.Cc}function Wk(e,t){if(t.end-t.start!==1||!e.drawings?.some(n=>n.start===t.start))return false;for(let n of t.spans)if(n.range.end>n.range.start)return false;return true}function ql(e,t,n,r,o,a,i){for(let s of it(n))i!==void 0&&s.paragraphId!==i||Vk(e,t,n,s,r,o,a);}function Vk(e,t,n,r,o,a,i){let s=it(n).length>1,l=kf(t,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&&!s&&CS(n)&&zk(t,n,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}Gk(n,c,r)||PS(l,c)&&!d(c)||e.push({position:{paragraphId:r.paragraphId,offset:c},x:Rn(n,c,i,r),y:n.box.y,height:n.box.height,lineId:n.id,pageIndex:o});}}function kS(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)ql(r,e,i,n,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)kS(e,s.blocks,n,r,o);}}var $k=new Yl;function OS(e,t){let n=[];for(let r of e.pages)for(let o of Xe(r))for(let a of o.lines)ql(n,e,a,r.index,o.range.start,t);return n}function Xk(e,t,n){let o=(Lt(e).get(t.paragraphId)??[]).find(({line:i})=>{let s=Sn(i,t.paragraphId);return s!==null&&t.offset>=s.start&&t.offset<=s.end});if(!o||it(o.line).length<2)return null;let a=[];return ql(a,e,o.line,o.pageIndex,0,n),Tf(a)}function Kl(e,t,n){return $k.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a}of Lt(e).get(t)??[])ql(r,e,o,a,0,n,t);return Tf(r)})}function Yk(e,t,n,r){if(!e.pages[t])return [];let o=[];return kS(e,n,t,o,r),o}function Kk(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function Uk(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of Xe(r,true))if(a.paragraphId===n)for(let i of a.lines)o.push({line:i,pageIndex:t});return o}function BS(e,t,n){let r=Kk(n),o=Lt(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:Uk(e,a,t.paragraphId),s=new Set(o.map(f=>f.line.id)),l=i.filter(f=>!s.has(f.line.id)),d=l.length>0?[...o,...l]:o,c=a===void 0?d:[...d].sort((f,p)=>{let m=f.pageIndex===a?0:1,g=p.pageIndex===a?0:1;return m-g}),u=null;for(let{line:f,pageIndex:p}of c){let m=Sn(f,t.paragraphId);if(!m||t.offset<m.start||t.offset>m.end)continue;if(t.offset===m.end&&t.offset>m.start&&it(f).length===1&&(CS(f)||Wk(f,m))){u??={line:f,pageIndex:p};continue}if(t.offset===m.end&&t.offset>m.start&&jk(e,t.paragraphId,t.offset))continue;let g=si(f,t.offset,r.measurer,m);return {position:t,x:g.x,y:g.y,height:g.height,lineId:f.id,pageIndex:p}}if(u){let f=si(u.line,t.offset,r.measurer,Sn(u.line,t.paragraphId));return {position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}}return null}function qk(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return gl(e,n,t)?.caret??null}function Zk(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return yl(e,n,t)}function Jk(e){return Yi(e)}var vS=new WeakMap;function Ul(e,t){let n=vS.get(e);return n||(n=new Map,e.forEach((r,o)=>{n.has(r)||n.set(r,o);}),vS.set(e,n)),n.get(t)??-1}function Xl(e,t){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 n=Ul(t,e.anchor.paragraphId),r=Ul(t,e.head.paragraphId);return n===-1||r===-1?null:n<r||n===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function ta(e,t){let n=[],r=new Set;for(let{line:a}of Lt(e).get(t)??[]){let i=Sn(a,t);if(i){for(let s of i.spans){if(s.range.end===s.range.start)continue;let l=`${s.range.start}:${s.range.end}`;if(r.has(l))continue;r.add(l);let d=s.range.end-s.range.start,c=s.text.length===d?s.text:s.text.slice(0,d).padEnd(d," ");n.push({start:s.range.start,text:c});}for(let s of i.drawings){let l=s.start,d=l+1,c=`${l}:${d}`;r.has(c)||(r.add(c),n.push({start:l,text:"\uFFFC"}));}}}n.sort((a,i)=>a.start-i.start);let o="";for(let a of n)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function Of(e,t){let n=new Set;for(let{line:r}of Lt(e).get(t)??[]){let o=Sn(r,t);if(o)for(let a of o.spans)a.range.end!==a.range.start&&a.revisions?.some(i=>i.kind==="delete"||i.kind==="moveFrom")&&(n.add(a.range.start),n.add(a.range.end));}return n}function TS(e,t,n,r){let o=Mr(e),a=Lr(e).get(t.paragraphId);return a===void 0?null:yS(t,n,o,a,i=>Kl(e,i,r))}function Qk(e,t,n,r=null,o={}){if(!o.stops&&(n==="left"||n==="right"))return TS(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let l=n==="wordLeft"?-1:1,d=xi(ta(e,t.paragraphId),t.offset,l,Of(e,t.paragraphId));return d===t.offset?TS(e,t,l,o.measurer):{position:{paragraphId:t.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let l=hS(t,n==="lineStart"?-1:1,Xk(e,t,o.measurer)??Kl(e,t.paragraphId,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let l=bS(n==="documentStart"?-1:1,Mr(e),d=>Kl(e,d,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let l=Lr(e).get(t.paragraphId);return l===void 0?null:xS(t,n==="up"?-1:1,r,Mr(e),l,d=>Kl(e,d,o.measurer))}let a=o.stops?[...o.stops]:OS(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(l=>l.position.paragraphId===t.paragraphId&&l.position.offset===t.offset);if(i===-1){if(n==="left"||n==="right"){let d=Cf(a,t,n==="left"?-1:1)??bi(a,t);return d?{position:d.position,desiredX:null}:null}let l=bi(a,t);if(!l)return null;i=a.indexOf(l);}let s=a[i];switch(n){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===s.lineId)[0].position,desiredX:null};case "lineEnd":{let l=a.filter(d=>d.lineId===s.lineId);return {position:l[l.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let l=ta(e,t.paragraphId),d=n==="wordLeft"?-1:1,c=xi(l,t.offset,d,Of(e,t.paragraphId));return c===t.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:t.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 l=r??s.x,d=s.pageIndex+(n==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(n==="pageUp"?a[0]:a[a.length-1]).position,desiredX:l};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-s.y)*1e3+Math.abs(p.x-l);m<f&&(f=m,u=p);}return {position:u.position,desiredX:l}}case "up":case "down":{let l=r??s.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(s.lineId),f=n==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(n==="up"?a[0]:a[a.length-1]).position,desiredX:l};let p=a.filter(g=>g.lineId===d[f]),m=p[0];for(let g of p)Math.abs(g.x-l)<Math.abs(m.x-l)&&(m=g);return {position:m.position,desiredX:l}}default:return null}}function eO(e,t){return BS(e,t)}function tO(e,t,n){let r=Xl(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return nO(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:l}of Lt(e).get(r.from.paragraphId)??[]){let d=Sn(l,r.from.paragraphId);if(!d)continue;let c=Fr(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=Lt(e),i=Ul(n,r.from.paragraphId),s=Ul(n,r.to.paragraphId);if(i===-1||s===-1)return [];for(let l=i;l<=s;l+=1)for(let{line:d}of a.get(n[l])??[]){let c=Sn(d,n[l]);if(!c)continue;let u=Fr(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 nO(e,t){let n=null;for(let{line:r}of Lt(e).get(t.paragraphId)??[])for(let o of Sn(r,t.paragraphId)?.spans??[]){if(o.range.start<t.offset&&t.offset<=o.range.end)return [o];n===null&&o.range.start===t.offset&&(n=o);}return n?[n]:[]}var MS=new WeakMap;function zn(e){let t=MS.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=(s,l,d,c)=>{for(let u of s){if(u.kind==="paragraph")continue;let f=u.tableId,p=o.get(f);p||(p=new Map,o.set(f,p),n.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 x of m.cells)n.get(f).push({pageIndex:l,tableId:f,row:m,cell:x,rowIndex:g,isHeaderRepeat:m.isHeaderRepeat,offsetX:d,offsetY:c}),a(x.blocks,l,d,c);}}};for(let s of e.pages){a(s.fragments,s.index,0,0);for(let l of [s.header,s.footer])l&&a(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);for(let l of [s.footnotes,s.endnotes])if(l)for(let d of l.notes)a(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);}let i=new Map;for(let[s,l]of n)i.set(s,{placed:l,rows:r.get(s)??new Map});return MS.set(e,i),i}function FS(e){let t=0;for(let n of e.rows.values())for(let r of n)t=Math.max(t,lr(r).to+1);return t}var lr=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function rO(e,t,n){if(t.tableId!==n.tableId)return null;let r=zn(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(lr(t).from,lr(n).from),s=Math.max(lr(t).to,lr(n).to),l=p=>{let{from:m,to:g}=lr(p);return g>=i&&m<=s},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&l(m)),c=r.rows.size+FS(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[g,x]of r.rows)if(!(g<o||g>a))for(let h of x){if(!l(h))continue;let{from:b,to:P}=lr(h);b<i&&(i=b,m=true),P>s&&(s=P,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}=lr(p.cell);g<i||m>s||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:s},text:oO(e,t.tableId,u)}}function l1(e,t){return ES(e,t,true)}function Zl(e,t){return ES(e,t,false)}function ES(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of zn(e).values())for(let s of i.placed)if(!(s.isHeaderRepeat||!r.has(s.cell.id)))for(let l of s.cell.blocks)n&&l.kind!=="paragraph"||na(l,o,a);return o}function na(e,t,n){if(e.kind==="paragraph"){for(let r of sr(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)na(a,t,n);}function oO(e,t,n){let r=Zl(e,n),o=r[0],a=r[r.length-1];return !o||!a?aO(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:ta(e,a).length}}}function aO(e,t){let n=zn(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)na(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of Xe(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function iO(e){let t=[...Xe(e)];for(let n of [e.header,e.footer])n&&t.push(...St(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...St(r.fragments));return t}function sO(e,t){let n=new Set(Zl(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of iO(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let l of s.spans){let d=`${l.range.paragraphId}:${l.range.start}:${l.range.end}`;o.has(d)||(o.add(d),r.push(l));}return r}function lO(e,t){let n=new Set(t),r=[];for(let o of zn(e).values())for(let a of o.placed)n.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 dO(e,t){let n=zn(e).get(t.tableId);if(!n)return "";let r=new Set(t.cellIds),o=new Map,a=new Set;for(let i of n.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let s=Zl(e,[i.cell.id]).map(d=>ta(e,d)).join(`
17
+ `),l=o.get(i.rowIndex);l?l.set(i.cell.gridColumn,s):o.set(i.rowIndex,new Map([[i.cell.gridColumn,s]]));}return [...o.keys()].sort((i,s)=>i-s).map(i=>{let s=o.get(i),l=[];for(let d=t.columns.from;d<=t.columns.to;d+=1)l.push(s.get(d)??"");return l.join(" ")}).join(`
18
+ `)}function Bf(e,t){let n=null,r=-1;for(let[o,a]of zn(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let d of i.cell.blocks)na(d,s,new Set);if(!s.includes(t))continue;let l=o.length;l<=r||(r=l,n={tableId:o,rows:a.rows.size,columns:FS(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return n}function d1(e,t,n){if(n){let a=Bf(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let s=zn(e).get(n.tableId);if(!s)return null;for(let l of s.placed)if(l.cell.id===i)return {tableId:n.tableId,rowId:l.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:l.cell.gridColumn,isHeaderRepeat:l.isHeaderRepeat};return null}let r=Bf(e,t);if(!r)return null;let o=zn(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let s of a.cell.blocks)na(s,i,new Set);if(i.includes(t))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}var LS=new WeakMap;function c1(e,t){let n=LS.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of zn(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let d of i.cell.blocks)na(d,s,new Set);let l={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let d of s){let c=r.get(d);c&&c.tableId.length>=o.length||r.set(d,l);}}return LS.set(e,r),r.get(t)??null}exports.$=xw;exports.$a=hc;exports.$b=Gh;exports.$c=El;exports.$d=OS;exports.A=zd;exports.Aa=kw;exports.Ab=PM;exports.Ac=ii;exports.Ad=zl;exports.B=Xt;exports.Ba=tc;exports.Bb=Hc;exports.Bc=Dv;exports.Bd=vx;exports.C=ew;exports.Ca=go;exports.Cb=Es;exports.Cc=gl;exports.Cd=Tx;exports.D=tw;exports.Da=nc;exports.Db=qg;exports.Dc=EF;exports.Dd=Rf;exports.E=nw;exports.Ea=Ji;exports.Eb=js;exports.Ec=_v;exports.Ed=Wl;exports.F=Vi;exports.Fa=Oa;exports.Fb=eh;exports.Fc=yl;exports.Fd=$l;exports.G=ow;exports.Ga=rc;exports.Gb=Tr;exports.Gc=Hy;exports.Gd=ek;exports.H=jd;exports.Ha=oc;exports.Hb=cI;exports.Hc=bl;exports.Hd=eS;exports.I=$i;exports.Ia=Ba;exports.Ib=jo;exports.Ic=si;exports.Id=fD;exports.J=aw;exports.Ja=Bw;exports.Jb=oh;exports.Jc=Zv;exports.Jd=tS;exports.K=iw;exports.Ka=Mw;exports.Kb=Nn;exports.Kc=DF;exports.Kd=nS;exports.L=sw;exports.La=Lw;exports.Lb=kr;exports.Lc=_F;exports.Ld=ak;exports.M=Wd;exports.Ma=Fw;exports.Mb=sh;exports.Mc=HF;exports.Md=dk;exports.N=am;exports.Na=ac;exports.Nb=mh;exports.Nc=zF;exports.Nd=aS;exports.O=im;exports.Oa=ho;exports.Ob=tu;exports.Oc=jF;exports.Od=Rk;exports.P=sm;exports.Pa=sc;exports.Pb=An;exports.Pc=Tl;exports.Pd=Pk;exports.Q=lm;exports.Qa=lc;exports.Qb=Xs;exports.Qc=zt;exports.Qd=Ck;exports.R=dm;exports.Ra=La;exports.Rb=Ys;exports.Rc=AE;exports.Rd=kk;exports.S=cm;exports.Sa=_w;exports.Sb=Mh;exports.Sc=$u;exports.Sd=Mk;exports.T=uw;exports.Ta=yo;exports.Tb=tl;exports.Tc=Xu;exports.Td=uS;exports.U=fw;exports.Ua=dc;exports.Ub=nl;exports.Uc=Yu;exports.Ud=FD;exports.V=uo;exports.Va=xr;exports.Vb=rl;exports.Vc=OT;exports.Vd=pS;exports.W=gw;exports.Wa=Ww;exports.Wb=lu;exports.Wc=YT;exports.Wd=ED;exports.X=$d;exports.Xa=Vw;exports.Xb=Nh;exports.Xc=KT;exports.Xd=ND;exports.Y=Xe;exports.Ya=Bn;exports.Yb=du;exports.Yc=Fl;exports.Yd=jD;exports.Z=St;exports.Za=qn;exports.Zb=ir;exports.Zc=Jt;exports.Zd=IS;exports._=Yd;exports._a=Em;exports._b=qt;exports._c=Xb;exports._d=xi;exports.a=Td;exports.aa=wa;exports.ab=Nm;exports.ac=mu;exports.ad=eC;exports.ae=Yk;exports.b=Cd;exports.ba=gm;exports.bb=yc;exports.bc=sl;exports.bd=Nl;exports.be=BS;exports.c=kd;exports.ca=Pa;exports.cb=Am;exports.cc=ny;exports.cd=tC;exports.ce=qk;exports.d=Yn;exports.da=Yi;exports.db=Mn;exports.dc=ti;exports.dd=Yb;exports.de=Zk;exports.e=no;exports.ea=Ia;exports.eb=bc;exports.ec=Vo;exports.ed=Kb;exports.ee=Jk;exports.f=Ai;exports.fa=Ki;exports.fb=Sc;exports.fc=yu;exports.fd=zr;exports.fe=ta;exports.g=US;exports.ga=va;exports.gb=mn;exports.gc=ay;exports.gd=rC;exports.ge=Of;exports.h=dn;exports.ha=hm;exports.hb=Ae;exports.hc=Sv;exports.hd=gi;exports.he=Qk;exports.i=hr;exports.ia=Ui;exports.ib=er;exports.ic=$o;exports.id=Ub;exports.ie=eO;exports.j=Wp;exports.ja=fo;exports.jb=Dt;exports.jc=bu;exports.jd=Jo;exports.je=tO;exports.k=Fd;exports.ka=qd;exports.kb=hP;exports.kc=xu;exports.kd=hi;exports.ke=rO;exports.l=zi;exports.la=xm;exports.lb=Ic;exports.lc=mF;exports.ld=qb;exports.le=l1;exports.m=JS;exports.ma=Ca;exports.mb=We;exports.mc=Iu;exports.md=aC;exports.me=Zl;exports.n=tR;exports.na=Sm;exports.nb=Oe;exports.nc=ri;exports.nd=Zb;exports.ne=sO;exports.o=ba;exports.oa=Rm;exports.ob=wr;exports.oc=hy;exports.od=cf;exports.oe=lO;exports.p=nR;exports.pa=mo;exports.pb=ko;exports.pc=vu;exports.pd=Al;exports.pe=dO;exports.q=rR;exports.qa=wm;exports.qb=Cc;exports.qc=dl;exports.qd=Jb;exports.qe=Bf;exports.r=Ne;exports.ra=LO;exports.rb=Zm;exports.rc=Br;exports.rd=Qb;exports.re=d1;exports.s=LR;exports.sa=Zd;exports.sb=CP;exports.sc=cl;exports.sd=yi;exports.se=c1;exports.t=qp;exports.ta=Jd;exports.tb=kP;exports.tc=Mr;exports.td=ex;exports.u=YR;exports.ua=Qd;exports.ub=Yt;exports.uc=Cy;exports.ud=Dl;exports.v=ji;exports.va=ec;exports.vb=Pr;exports.vc=it;exports.vd=ff;exports.w=UR;exports.wa=kn;exports.wb=Oc;exports.wc=TF;exports.wd=gx;exports.x=qR;exports.xa=ka;exports.xb=cg;exports.xc=sr;exports.xd=pf;exports.y=ZR;exports.ya=wt;exports.yb=Ir;exports.yc=CF;exports.yd=uC;exports.z=_d;exports.za=Kn;exports.zb=UP;exports.zc=Lu;exports.zd=hf;