@docx-editor.dev/core 2.23.0 → 2.24.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 (80) hide show
  1. package/README.md +7 -6
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.d.ts +1 -1
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.js +1 -1
  7. package/dist/{chunk-KRBBWATQ.js → chunk-2LXGB2X7.js} +1 -1
  8. package/dist/chunk-3OMDEMLL.js +1 -0
  9. package/dist/{chunk-PCPBDYEL.cjs → chunk-6CPYOVRT.cjs} +1 -1
  10. package/dist/chunk-AKF5KM2W.cjs +4 -0
  11. package/dist/{chunk-QTFAXWVI.cjs → chunk-BOGQGMMU.cjs} +1 -1
  12. package/dist/chunk-CVNDMQIX.cjs +26 -0
  13. package/dist/{chunk-FWX535CS.cjs → chunk-DF7F7TNU.cjs} +1 -1
  14. package/dist/{chunk-UMBHUW6R.js → chunk-G765WG4R.js} +1 -1
  15. package/dist/{chunk-BUDXZ7T2.cjs → chunk-IEXYOLNR.cjs} +5 -5
  16. package/dist/chunk-J3EM5ZEA.js +18 -0
  17. package/dist/{chunk-QK23BSRK.cjs → chunk-JDAAGZNE.cjs} +1 -1
  18. package/dist/chunk-JNE6QF47.js +26 -0
  19. package/dist/{chunk-KV5HFE23.cjs → chunk-JQTVFP72.cjs} +1 -1
  20. package/dist/chunk-JXL25DRU.js +11 -0
  21. package/dist/{chunk-GRVRQBKU.js → chunk-KPSGB64S.js} +1 -1
  22. package/dist/chunk-P4SBMHHO.cjs +5 -0
  23. package/dist/chunk-QQAF64KN.js +5 -0
  24. package/dist/chunk-SI5FLZGU.js +4 -0
  25. package/dist/{chunk-DZOGUV7O.js → chunk-SOUJNWXV.js} +1 -1
  26. package/dist/chunk-T4TKRNZT.cjs +11 -0
  27. package/dist/{chunk-EHT4LKKZ.cjs → chunk-TBFZZX7Z.cjs} +1 -1
  28. package/dist/chunk-VPKKYCZI.cjs +2 -0
  29. package/dist/chunk-W3ZUPQIZ.cjs +18 -0
  30. package/dist/chunk-XMWH2R23.js +5 -0
  31. package/dist/{chunk-6QS5WL63.js → chunk-XWXJB4J7.js} +1 -1
  32. package/dist/chunk-YIBEBHT3.js +2 -0
  33. package/dist/{chunk-RLO64PHP.cjs → chunk-ZSM6X52G.cjs} +1 -1
  34. package/dist/chunk-ZXAGLAY2.js +2 -0
  35. package/dist/collaboration/replication.cjs +1 -1
  36. package/dist/collaboration/replication.js +1 -1
  37. package/dist/contracts/editor.d.ts +3 -3
  38. package/dist/{editor-DhUQsWWH.d.ts → editor-BU6rjQZz.d.ts} +3 -1
  39. package/dist/editor.cjs +1 -1
  40. package/dist/editor.css +1 -1
  41. package/dist/editor.d.ts +12 -12
  42. package/dist/editor.js +1 -1
  43. package/dist/export.cjs +2 -2
  44. package/dist/export.d.ts +5 -5
  45. package/dist/export.js +1 -1
  46. package/dist/{font-resolver-BwoHFBlr.d.ts → font-resolver-CPO7wtg6.d.ts} +1 -1
  47. package/dist/{index-BYaCkGKO.d.ts → index-BOkQYOsZ.d.ts} +21 -17
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.d.ts +7 -7
  50. package/dist/index.js +1 -1
  51. package/dist/{layout-shaping-DpWQG26a.d.ts → layout-shaping-BOOxnLxF.d.ts} +1 -1
  52. package/dist/layout.cjs +1 -1
  53. package/dist/layout.d.ts +55 -40
  54. package/dist/layout.js +1 -1
  55. package/dist/output.cjs +1 -1
  56. package/dist/output.d.ts +3 -3
  57. package/dist/output.js +1 -1
  58. package/dist/{semantic-cell-selection-B8GF_H2e.d.ts → semantic-cell-selection-BtO2s2Za.d.ts} +2 -2
  59. package/dist/{semantic-interaction-DQjtIruQ.d.ts → semantic-interaction-COMnWyBQ.d.ts} +1 -1
  60. package/dist/{semantic-paint-DoPl85nR.d.ts → semantic-paint-C032N0ps.d.ts} +1 -1
  61. package/dist/{semantic-records-DB0VgWsr.d.ts → semantic-records-BSjo-xck.d.ts} +3 -3
  62. package/dist/store.cjs +1 -1
  63. package/dist/store.d.ts +0 -1
  64. package/dist/store.js +1 -1
  65. package/package.json +2 -2
  66. package/dist/chunk-4OAXZNBU.js +0 -5
  67. package/dist/chunk-6745I4XF.cjs +0 -20
  68. package/dist/chunk-6KA3L3FR.cjs +0 -11
  69. package/dist/chunk-DYRXA5UJ.cjs +0 -2
  70. package/dist/chunk-F5LAOPAD.js +0 -20
  71. package/dist/chunk-JN62FLHE.cjs +0 -4
  72. package/dist/chunk-Q4RDWB3U.cjs +0 -18
  73. package/dist/chunk-T7RGKBCE.cjs +0 -5
  74. package/dist/chunk-VE6H5EJA.js +0 -5
  75. package/dist/chunk-WHG23WNI.js +0 -1
  76. package/dist/chunk-XBYZTDF7.js +0 -4
  77. package/dist/chunk-XRBPZCNK.js +0 -11
  78. package/dist/chunk-Y5JCIWTF.js +0 -2
  79. package/dist/chunk-ZA6HEWUM.js +0 -2
  80. package/dist/chunk-ZCRSPN4Q.js +0 -18
@@ -1,18 +0,0 @@
1
- 'use strict';var chunkEHT4LKKZ_cjs=require('./chunk-EHT4LKKZ.cjs'),chunkT7RGKBCE_cjs=require('./chunk-T7RGKBCE.cjs'),chunk6KA3L3FR_cjs=require('./chunk-6KA3L3FR.cjs'),V1=require('bidi-js');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var V1__default=/*#__PURE__*/_interopDefault(V1);var aL=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),WS=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),zS=new Map([[167,"\u25AA"],[183,"\u2022"]]),vu=new Map([["symbol",aL],["wingdings",WS],["wingdings 2",zS],["wingdings 3",zS],["webdings",WS]]),iL=64,VS=Object.freeze([...vu.keys()]);function ra(e){return !e||e.length>iL?false:vu.has(e.toLowerCase())}function GS(e){for(let t of e){let n=t.codePointAt(0);if(n>=61440&&n<=61695)return true}return false}function ai(e,t,n){if(e.length===0||!ra(t))return e;let r=vu.get(t.toLowerCase());if(n?.(t)===true)return e;let o="",a=false;for(let i of e){let l=i.codePointAt(0);if(l>=61440&&l<=61695){let d=r.get(l-61440);if(d!==void 0){o+=d,a=true;continue}}o+=i;}return a?o:e}function KS(e,t,n){if(e.length===1&&ra(t)){let r=t.toLowerCase();if(r==="symbol"||r==="wingdings"){let o=vu.get(r).get(e.charCodeAt(0));if(o!==void 0&&n?.(t)!==true)return o}}return ai(e,t,n)}var lL=Symbol("validated-resolved-font"),sL=4,$S=64*1024*1024,Fu=256,Ou=128*1024*1024,ii=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(t,n,r={}){super(`Font resolution failed (${t}) for ${pd(n)}`),this.code=t,this.request=oa(n),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash;}},XS=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")},oa=e=>(XS(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),mg=e=>{let t={family:e.family,weight:e.weight,style:e.style};return oa(t)},US=Symbol("prepared-font-resource"),pg=new WeakMap,dL=new Uint8Array(0),qS=Object.getPrototypeOf(Uint8Array.prototype),cL=Object.getOwnPropertyDescriptor(qS,"length").get,uL=Object.getOwnPropertyDescriptor(qS,"byteLength").get;function Iu(e){if(!ArrayBuffer.isView(e))throw new TypeError("Font bytes must be a genuine byte array");let t,n;try{t=cL.call(e),n=uL.call(e);}catch{throw new TypeError("Font bytes must be a genuine byte array")}if(t!==n)throw new TypeError("Font bytes must use one-byte elements");return n}function ZS(e){let t=new Uint8Array(Iu(e));return Uint8Array.prototype.set.call(t,e),t}function yK(e,t){let n=oa(e.request);if(e.availability==="forbidden"){let i=Object.freeze({...e,request:n,actualHash:null,[US]:true});return pg.set(i,null),i}let r=ZS(e.bytes);t?.onOwnedByteCopy?.(),t?.onHash?.();let o=chunk6KA3L3FR_cjs.a(r),a=Object.freeze({...e,request:n,bytes:r,actualHash:o,[US]:true});return pg.set(a,o),a}function JS(e){return pg.get(e)}var QS=e=>{if(!Number.isFinite(e.heightEm)||!Number.isFinite(e.baselineEm)||e.heightEm<=0||e.heightEm>sL||e.baselineEm<0||e.baselineEm>e.heightEm)throw new RangeError("Font substitution line metrics must fit within a bounded em box");return Object.freeze({heightEm:e.heightEm,baselineEm:e.baselineEm})},pd=e=>(XS(e),JSON.stringify([e.family.trim().toLowerCase(),e.weight,e.style])),gg=class{[lL]=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=oa(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:oa(n.requested),resolved:oa(n.resolved),...n.lineMetrics?{lineMetrics:QS(n.lineMetrics)}:{}})),Object.freeze(this);}get bytes(){return oP(this).slice()}},eP=new WeakSet,tP=new WeakMap,nP=new WeakMap,rP=(e,t,n,r)=>{let o=new gg(e,r);return tP.set(o,t),nP.set(o,n),eP.add(o),o},oP=e=>{Cu(e);let t=tP.get(e);if(!t)throw new TypeError("Resolved font has no owned byte capability");return t},fL=e=>{Cu(e);let t=nP.get(e);if(!t)throw new TypeError("Resolved font has no admitted table metadata");return t},Cu=e=>{if(typeof e!="object"||e===null||!eP.has(e))throw new TypeError("Shaping requires a validated resolved font")},aP=(e,t)=>e[t]<<8|e[t+1],yl=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,YS=(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=aP(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 l=t+12+i*16,d=yl(e,l+8),s=yl(e,l+12);if(d>e.byteLength||s>e.byteLength-d)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},mL=(e,t)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?yl(e,12+t*4):0,o=aP(e,r+4),a=new Set;for(let i=0;i<o;i+=1){let l=r+12+i*16;a.add(String.fromCharCode(e[l],e[l+1],e[l+2],e[l+3]));}return Object.freeze(a)},pL=(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"}:YS(e,0);let r=yl(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=yl(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=yl(e,12+t*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:YS(e,i)},gL=(e,t,n,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};let o=Iu(e.bytes);if(o>t)return {kind:"overLimit",actual:o};let a=JS(e),i=a===void 0?ZS(e.bytes):e.bytes;a===void 0&&r?.onOwnedByteCopy?.(),a===void 0&&r?.onHash?.();let l=a??chunk6KA3L3FR_cjs.a(i);if(e.hash!==l)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:l};let d=pL(i,e.faceIndex);if(!d.valid)return {kind:"malformed",diagnostic:d.diagnostic};r?.onTableScan?.();let s=mL(i,e.faceIndex);try{let u=n(i,e.faceIndex);if(!u.valid)return {kind:"malformed",diagnostic:u.diagnostic}}catch(u){return {kind:"malformed",diagnostic:u instanceof Error?u.message:"font validator threw"}}let c={kind:"resolved",font:rP({...e,byteLength:i.byteLength},i,s)};return r?.onAdmission?.(),c},bK=e=>{let t=e.epoch,n=e.maxFontBytes,r=e.validateFont,o=e.instrumentation,a=e.resources,i=e.substitutions;if(!Number.isSafeInteger(t)||t<0)throw new RangeError("Font resource epoch must be a non-negative safe integer");if(!Number.isSafeInteger(n)||n<=0||n>$S)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${$S}`);if(typeof r!="function")throw new TypeError("Font snapshot requires a validator");let l=a.length,d=i?.length??0;if(l>Fu)throw new RangeError(`Font source count must not exceed ${Fu}`);if(d>Fu)throw new RangeError(`Font substitution count must not exceed ${Fu}`);let s=0,c=[];for(let p=0;p<l;p+=1){let h=a[p];if(JS(h)!==void 0){let F=h.availability==="forbidden"?0:Iu(h.bytes);if(F>Ou-s)throw new RangeError(`Aggregate font bytes must not exceed ${Ou}`);s+=F,c.push(h);continue}let b=mg(h.request),y=h.id,x=h.hash,S=h.faceIndex,R=h.availability,P=R==="forbidden"?dL:h.bytes,w=R==="forbidden"?0:Iu(P);if(w>Ou-s)throw new RangeError(`Aggregate font bytes must not exceed ${Ou}`);s+=w,c.push(Object.freeze({request:b,id:y,bytes:P,hash:x,faceIndex:S,...R?{availability:R}:{}}));}let u=[];if(i)for(let p=0;p<d;p+=1){let h=i[p],b=mg(h.from),y=mg(h.to),x=h.lineMetrics;u.push(Object.freeze({from:b,to:y,...x?{lineMetrics:Object.freeze({heightEm:x.heightEm,baselineEm:x.baselineEm})}:{}}));}let f=new Map;for(let p of c){let h=pd(p.request);f.has(h)||f.set(h,gL(p,n,r,o));}let m=new Map;for(let p of u){let h=pd(p.from);m.has(h)||m.set(h,Object.freeze({to:oa(p.to),...p.lineMetrics?{lineMetrics:QS(p.lineMetrics)}:{}}));}return Object.freeze({epoch:t,resolve:p=>{let h=oa(p),b=pd(h),y=m.get(b),x=y?.to??h,S=f.get(pd(x));return S?S.kind==="forbidden"?new ii("forbidden",h):S.kind==="overLimit"?new ii("overLimit",h,{limit:n,actual:S.actual}):S.kind==="malformed"?new ii("malformed",h,{diagnostic:S.diagnostic}):S.kind==="hashMismatch"?new ii("hashMismatch",h,{expectedHash:S.expectedHash,actualHash:S.actualHash}):y?rP({request:S.font.request,id:S.font.id,hash:S.font.hash,faceIndex:S.font.faceIndex,byteLength:S.font.byteLength},oP(S.font),fL(S.font),{requested:h,resolved:y.to,...y.lineMetrics?{lineMetrics:y.lineMetrics}:{}}):S.font:new ii("missing",h)}})};var hL=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},gd=16,Mu=(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`)},yL=(e,t)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${t} must be a four-byte ASCII tag`)},iP=(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(yL(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)},hg=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),bL=e=>e?Object.freeze({requested:hg(e.requested),resolved:hg(e.resolved),...e.lineMetrics?{lineMetrics:Object.freeze({...e.lineMetrics})}:{}}):void 0,lP=new WeakSet,yg=new WeakSet,sP=new WeakMap,xg=e=>{if(Cu(e),!lP.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");lP.add(e);}},bg=e=>(xg(e),e),Eu=e=>(xg(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:hg(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:bL(e.substitution)??null})),cP=e=>{if(yg.has(e))return e;if(Mu(e.shapingLibrary.name,"shaping library name"),Mu(e.shapingLibrary.version,"shaping library version"),Mu(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(Mu(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=bg(e.font),n=e.fallbackOrder.map(bg),r=new Set;for(let a of n){let i=JSON.stringify(Eu(a));if(r.has(i))throw new TypeError("fallback order contains a duplicate font");r.add(i);}let o=Object.freeze({font:t,variationAxes:iP(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:iP(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...n]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode});return yg.add(o),o},xL=e=>{let t=cP(e);return Object.freeze({font:Eu(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(Eu)),fixedPointScale:t.fixedPointScale,roundingMode:t.roundingMode})},PK=e=>{let t=sP.get(e);if(t!==void 0)return t;let n=JSON.stringify(xL(e));return yg.has(e)&&sP.set(e,n),n},li=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},Pr=e=>{try{return hL(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},dP=new WeakMap,Bu=e=>{let t=dP.get(e);if(t)return t;xg(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 dP.set(e,n),n},SL=(e,t)=>{let n=cP(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(li(e.bidiLevel,"bidi level"),(e.bidiLevel&1)===1!=(e.direction==="rtl"))throw new TypeError("Shaped run direction does not match bidi level parity");let r=new Map,o=e.glyphs.map(s=>{li(s.id,"glyph id"),li(s.cluster,"glyph cluster");let c=r.get(s.outline);if(!c){if(!Number.isSafeInteger(s.outline.unitsPerEm)||s.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");c=Object.isFrozen(s.outline)?s.outline:Object.freeze({path:s.outline.path,unitsPerEm:s.outline.unitsPerEm}),r.set(s.outline,c);}return Object.freeze({id:s.id,cluster:s.cluster,originX:Pr(s.originX),originY:Pr(s.originY),advanceX:Pr(s.advanceX),advanceY:Pr(s.advanceY),offsetX:Pr(s.offsetX),offsetY:Pr(s.offsetY),outline:c,...s.drawScale!==void 0?{drawScale:s.drawScale}:{}})}),a=e.fontSpans.map(s=>{if(li(s.glyphStart,"font span start"),li(s.glyphEnd,"font span end"),s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");s.fallbackIndex!==null&&li(s.fallbackIndex,"fallback index");let c=bg(s.font);if(s.fallbackIndex===null){if(Bu(c)!==Bu(n.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let u=n.fallbackOrder[s.fallbackIndex];if(!u)throw new RangeError("Shaped fallback index is outside fallback order");if(Bu(c)!==Bu(u))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...s,font:c})});for(let s=0;s<a.length;s+=1){let c=s===0?0:a[s-1].glyphEnd;if(a[s].glyphStart!==c)throw new RangeError("Font spans must cover glyphs contiguously")}if(o.length===0&&a.length!==0||o.length>0&&a.at(-1)?.glyphEnd!==o.length)throw new RangeError("Font spans must cover every glyph exactly once");let i=e.clusters.map(s=>{for(let[u,f]of [["cluster text start",s.textStart],["cluster text end",s.textEnd],["cluster glyph start",s.glyphStart],["cluster glyph end",s.glyphEnd],["cluster font span",s.fontSpan]])li(f,u);if(s.textEnd<=s.textStart||s.textEnd>e.text.length||s.glyphEnd<=s.glyphStart||s.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let c=a[s.fontSpan];if(!c||s.glyphStart<c.glyphStart||s.glyphEnd>c.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...s,advance:Pr(s.advance),caretEdges:Object.freeze(s.caretEdges.map(Pr))})}),l=Object.freeze({ascent:Pr(e.metrics.ascent),descent:Pr(e.metrics.descent),lineGap:Pr(e.metrics.lineGap)}),d=e.exactAdvancesX;if(d!==void 0){if(d.length!==o.length)throw new RangeError("Exact advances must be parallel to the shaped glyphs");if(d.some(s=>!Number.isFinite(s)))throw new RangeError("Exact advance must be a finite number")}return Object.freeze({text:e.text,direction:e.direction,bidiLevel:e.bidiLevel,glyphs:Object.freeze(o),clusters:Object.freeze(i),fontSpans:Object.freeze(a),metrics:l,...d===void 0?{}:{exactAdvancesX:Object.freeze([...d])}})},RK=(e,t)=>{let n=SL(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:Eu(r.font)}))),metrics:n.metrics})};var PL=/^[0-9A-Fa-f]{6}$/;function Sg(e){if(!(e===void 0||e==="auto"||e==="nil")&&PL.test(e))return e.toUpperCase()}function Lu(e){if(e&&e.val!=="nil")return Sg(e.fill)}function uP(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return Lu(t)}function fP(e){let t;for(let n of e)n.localName==="shd"&&(t=Lu(n.attributes));return t}function Nu(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 Au=.25,Du=.25;function bl(e){let t=Math.max(e,.25),n=Math.max(e,.25),r=t*2+n;return {strokePt:t,gapPt:n,extentPt:r,insetPt:(e-r)/2}}var RL=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function wL(e){return RL.has(e)}function si(e,t){return wL(e)?bl(t).extentPt:t}var kL=new Set(["single","thick","double","dotted","dashed","dotDash","dotDotDash","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","wave","doubleWave","dashSmallGap","dashDotStroked","threeDEmboss","threeDEngrave","outset","inset"]);function mP(e){return kL.has(e)}var TL=.001;function pP(e){return e===void 0||e!=="0"&&e!=="false"&&e!=="off"}function vL(e){let t=true;for(let n of e)n.localName==="snapToGrid"&&(t=pP(n.attributes?.val));return t}function gP(e){if(!e||e.namespaceUri!==chunk6KA3L3FR_cjs.da||e.localName!=="settings")return false;let t=false;for(let n of e.children)if(!(n.kind==="textValue"||n.localName!=="compat")&&n.namespaceUri===chunk6KA3L3FR_cjs.da)for(let r of n.children)r.kind==="textValue"||r.namespaceUri!==chunk6KA3L3FR_cjs.da||r.localName==="adjustLineHeightInTable"&&(t=pP(r.attributes.find(o=>o.namespaceUri===chunk6KA3L3FR_cjs.da&&o.localName==="val")?.value));return t}function hP(e,t,n,r,o){return n===void 0||!(n>0)||e.rule!=="auto"||r&&!o||!vL(t)?e:{...e,gridPitch:n}}function yP(e,t,n){let r=e.gridPitch,a=Math.max(1,Math.ceil((t-TL)/r))*r,i=n+(a-t)/2,l=Math.max(1,e.value/240),d=a*l;return {height:d,baseline:i,trailing:d-a}}function Pl(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Sl(r);}return t}var Pg=31680/20,_u=12,FL=3168,bP=14,OL=5,IL=10,hd=Object.freeze({rule:"auto",value:240}),CL=132,ML=1584,BL=["top","left","bottom","right","between","bar"],EL=Object.freeze({}),LL=/^[0-9A-Fa-f]{6}$/,NL=new Set(["nil","none"]);function xl(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function yd(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function xP(e){let t=xl(e,true);return t===null?0:yd(chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(t)),Pg)}function Sl(e){return e!=="0"&&e!=="false"&&e!=="off"}function AL(e){return e===void 0||e==="auto"?null:LL.test(e)?e.toUpperCase():null}function Wr(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function MK(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function SP(e){let t=false,n=false;for(let r of e){if(r.localName!=="spacing")continue;let o=r.attributes?.beforeAutospacing,a=r.attributes?.afterAutospacing;o!==void 0&&(t=Sl(o)),a!==void 0&&(n=Sl(a));}return {before:t,after:n}}function ia(e,t){let n=0,r=0,o=null,a=null,i=false,l=false;for(let d of e){if(d.localName!=="spacing")continue;let s=d.attributes?.before,c=d.attributes?.after;s!==void 0&&(n=xP(s)),c!==void 0&&(r=xP(c)),d.attributes?.beforeLines!==void 0&&(o=xl(d.attributes.beforeLines,true)),d.attributes?.afterLines!==void 0&&(a=xl(d.attributes.afterLines,true));let u=d.attributes?.beforeAutospacing,f=d.attributes?.afterAutospacing;u!==void 0&&(i=Sl(u)),f!==void 0&&(l=Sl(f));}if(o!==null&&(n=yd(o*(t?.lineUnitPt??12)/100,Pg)),a!==null&&(r=yd(a*(t?.lineUnitPt??12)/100,Pg)),i||l){let d=t?.fixedAutoSpacing===true,s=d?OL:bP,c=d?IL:bP;i&&(n=t?.inList?0:s),l&&(r=t?.inList?0:c);}return {before:n,after:r}}function PP(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 l=a.attributes?.line;if(l!==void 0){let d=xl(l,true);d!==null&&(n=d);}}if(n===void 0)return hd;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,CL)*240}:hd}let o=n/20;return o>0?{rule:r,value:Math.min(o,ML)}:hd}function zr(e,t,n){if(e.gridPitch!==void 0&&e.gridPitch>0&&e.rule==="auto")return yP({...e,gridPitch:e.gridPitch},t,n);let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value);if(e.rule==="exact")return {height:r,baseline:e.preserveExactBaseline?Math.max(0,Math.min(n,r)):r*.8};let o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="atLeast"?{height:r,baseline:n+o,trailing:0}:{height:r,baseline:n}}function RP(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Sl(r);}return t}function aa(e){if(e)return Rg(Object.fromEntries(e.attributes.map(t=>[t.localName,t.value])))}function Rg(e){let t=e?.val;if(!t||NL.has(t))return;let n=xl(e?.sz),r=n===null?.5:yd(n/8,_u)||.5,o=xl(e?.space),a=o===null?0:yd(o,FL),i=e?.shadow,l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:AL(e?.color),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function wP(e){let t=aa(Wr(e,"top")),n=aa(Wr(e,"left")??Wr(e,"start")),r=aa(Wr(e,"bottom")),o=aa(Wr(e,"right")??Wr(e,"end")),a=aa(Wr(e,"between")),i=aa(Wr(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function ju(e){if(!e||e.kind==="textValue")return {};let t=Wr(e,"pBdr");return t?wP(t):{}}function kP(e){let t=EL;for(let n of e){if(!n||n.kind==="textValue")continue;let r=Wr(n,"pBdr");r&&(t=wP(r));}return t}function Gn(e){return si(e.val,e.widthPt)}function Ro(e){return e?e.spacePt+Gn(e):0}function BK(e){return Ro(e)}function TP(e){let t=[];for(let n of BL){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 la(e,t){return Math.max(e,t)-t}function wg(e,t,n,r){return n&&!r?0:la(e,t)}var di="http://schemas.microsoft.com/office/word/2010/wordml",vP=/^[0-9a-f]{6}$/i;function FP(e){if(e.namespaceUri!==di||e.localName!=="textOutline")return null;let t={localName:"textOutline"},n={};for(let l of e.attributes){if(l.namespaceUri!==di||!["w","cap","cmpd","algn"].includes(l.localName))return t;n[l.localName]=l.value;}if(n.cmpd!==void 0&&n.cmpd!=="sng"||n.algn!==void 0&&n.algn!=="ctr"||n.cap!==void 0&&!["flat","rnd","sq"].includes(n.cap)||!/^\d{1,8}$/.test(n.w??"")||Number(n.w)>20116800)return t;let r,o=false,a=false,i=false;if(e.children.length>7)return t;for(let l of e.children){if(l.kind==="textValue"){if(l.value.trim())return t;continue}if(l.namespaceUri!==di)return t;if(l.localName==="solidFill"&&!o&&l.attributes.length===0){if(o=true,l.children.length>3||l.children.some(u=>u.kind==="textValue"&&u.value.trim()))return t;let d=l.children.filter(u=>u.kind!=="textValue");if(d.length!==1)return t;let s=d[0];if(s.namespaceUri!==di||s.localName!=="srgbClr"||s.children.length!==0||s.attributes.length!==1)return t;let c=s.attributes[0];if(c.namespaceUri!==di||c.localName!=="val"||!vP.test(c.value))return t;r=c.value.toUpperCase();}else if(l.localName==="prstDash"&&!a){a=true;let d=l.attributes[0];if(l.children.length||l.attributes.length!==1||d?.namespaceUri!==di||d.localName!=="val"||d.value!=="solid")return t}else if(["round","bevel","miter"].includes(l.localName)&&!i){if(i=true,l.children.length)return t;if(l.localName==="miter"){if(l.attributes.length>1)return t;let d=l.attributes[0];if(d&&(d.namespaceUri!==di||d.localName!=="lim"||!/^\d{1,8}$/.test(d.value)))return t}else if(l.attributes.length)return t}else return t}return r&&Number(n.w)>0?{localName:"textOutline",attributes:{w:n.w,outlineColor:r}}:t}function OP(e){let t=e.attributes?.w,n=e.attributes?.outlineColor;if(!t||!/^\d{1,8}$/.test(t)||!n||!vP.test(n))return;let r=Number(t);return r>0&&r<=20116800?Object.freeze({widthPt:r/12700,color:n.toUpperCase()}):void 0}var DL=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function Bn(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}var IP=new WeakMap;function sa(e){let t=[],n;for(let r of e){let o=r.role==="carried"?IP.get(r.properties):void 0,a;for(let i of r.properties){if(!DL.has(i.localName)){r.emit&&t.push(i);continue}o||(a||(a=new Map),a.set(i.localName,Bn(i)));}if(o){if(o.size>0){n||(n=new Map);for(let[i,l]of o)n.set(i,l);}continue}if(a){n||(n=new Map);for(let[i,l]of a){let d=n.get(i);r.role==="direct"?n.set(i,{value:l,forced:false}):l?r.role==="defaults"?n.set(i,{value:true,forced:true}):n.set(i,{value:d?.forced===true?true:!(d?.value??false),forced:d?.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 IP.set(t,n),t}var _L="http://schemas.microsoft.com/office/word";function Rl(e){if(!e||e.namespaceUri!==chunk6KA3L3FR_cjs.da||e.localName!=="settings")return;let t,n=false;for(let r of e.children)if(!(r.kind==="textValue"||r.namespaceUri!==chunk6KA3L3FR_cjs.da||r.localName!=="compat"))for(let o of r.children){if(o.kind==="textValue"||o.namespaceUri!==chunk6KA3L3FR_cjs.da||o.localName!=="compatSetting")continue;let a=d=>o.attributes.find(s=>s.namespaceUri===chunk6KA3L3FR_cjs.da&&s.localName===d)?.value;if(a("name")!=="compatibilityMode"||a("uri")!==_L)continue;if(n)return;n=true;let i=a("val"),l=i!==void 0&&/^\d{1,4}$/.test(i)?Number(i):void 0;t=l!==void 0&&l>=11?l:void 0;}return t}function pn(e){return e!==void 0&&e>=15}var CP="http://schemas.microsoft.com/office/word/2010/wordml",jL="http://schemas.microsoft.com/office/word",HL=new Set(["none","standard","contextual","historical","discretional","standardContextual","standardHistorical","contextualHistorical","standardDiscretional","contextualDiscretional","historicalDiscretional","standardContextualHistorical","standardContextualDiscretional","standardHistoricalDiscretional","contextualHistoricalDiscretional","all"]);function MP(e){if(!(e.namespaceUri!==CP||e.localName!=="ligatures"))return e.attributes.find(t=>t.namespaceUri===CP&&t.localName==="val")?.value}function BP(e){if(!e||!HL.has(e))return;let t=e.toLowerCase();return {standard:e==="all"||t.includes("standard"),contextual:e==="all"||t.includes("contextual"),historical:e==="all"||t.includes("historical"),discretionary:e==="all"||t.includes("discretional")}}function WK(e){return {liga:e.ligatures?.standard?1:0,clig:e.ligatures?.contextual?1:0,hlig:e.ligatures?.historical?1:0,dlig:e.ligatures?.discretionary?1:0}}function zK(e){return `${e.ligatures?.standard?1:0}${e.ligatures?.contextual?1:0}${e.ligatures?.historical?1:0}${e.ligatures?.discretionary?1:0}`}function EP(e){if(!e||e.namespaceUri!==chunk6KA3L3FR_cjs.da||e.localName!=="settings")return false;let t=Rl(e),n=t!==void 0&&t>=15,r=false;for(let o of e?.children??[])if(!(o.kind==="textValue"||o.namespaceUri!==chunk6KA3L3FR_cjs.da||o.localName!=="compat"))for(let a of o.children){if(a.kind==="textValue"||a.namespaceUri!==chunk6KA3L3FR_cjs.da||a.localName!=="compatSetting")continue;let i=l=>a.attributes.find(d=>d.namespaceUri===chunk6KA3L3FR_cjs.da&&d.localName===l)?.value;if(!(i("name")!=="enableOpenTypeFeatures"||i("uri")!==jL)){if(r)return false;r=true,n=["1","true","on"].includes(i("val")??"");}}return n}var WL=Object.freeze([Object.freeze({localName:"ligatures",attributes:Object.freeze({val:"none"})})]);function Hu(e,t){return !t||!e.some(n=>n.localName==="ligatures"&&n.attributes?.val!=="none")?e:sa([{properties:e,role:"carried",emit:true},{properties:WL,role:"direct",emit:true}])}var En=Object.freeze({fontFamily:null,fontFamilyEastAsia: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}),zL=/^[0-9A-Fa-f]{6}$/;function wl(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function LP(e){return e===void 0||e==="auto"?null:zL.test(e)?e.toUpperCase():null}var AP={major:null,minor:null,majorEastAsia:null,minorEastAsia:null},VL=Object.freeze({fontFamily:"Times New Roman",fontFamilyAuthored:false,fontSizePt:10,bold:false,italic:false,rtl:false,forced:false});function je(e,t){let n={...En},r,o=false,a={...VL};for(let i of e)i.localName==="lang"&&i.attributes?.eastAsia!==void 0&&(r=i.attributes.eastAsia);for(let i of e)switch(i.localName){case "rFonts":{let l=i.attributes;o||=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(g=>!!l?.[g]);let s=(t?chunkT7RGKBCE_cjs.b(l?.asciiTheme,t,r)??chunkT7RGKBCE_cjs.b(l?.hAnsiTheme,t,r):null)??l?.ascii??l?.hAnsi;s&&s.length<=128&&(n.fontFamily=s);let u=(t?chunkT7RGKBCE_cjs.b(l?.eastAsiaTheme,t,r):null)??l?.eastAsia;u&&u.length<=128&&(n.fontFamilyEastAsia=u);let m=(t?chunkT7RGKBCE_cjs.b(l?.cstheme,t,r):null)||l?.cs;m&&m.length<=128&&(a.fontFamily=m,a.fontFamilyAuthored=true);break}case "sz":{let l=wl(i.attributes?.val);l!==null&&l>0&&(n.fontSizePt=l/2);break}case "szCs":{let l=wl(i.attributes?.val);l!==null&&l>0&&(a.fontSizePt=l/2);break}case "bCs":a.bold=Bn(i);break;case "iCs":a.italic=Bn(i);break;case "rtl":a.rtl=Bn(i);break;case "cs":a.forced=Bn(i);break;case "color":{n.color=LP(i.attributes?.val);break}case "b":n.bold=Bn(i);break;case "textOutline":n.textOutline=OP(i);break;case "bdr":n.border=Rg(i.attributes);break;case "i":n.italic=Bn(i);break;case "u":{let l=i.attributes?.val??"single";n.underline=l==="none"||!Bn(i)?null:{variant:l,color:LP(i.attributes?.color)};break}case "strike":n.strike=Bn(i);break;case "dstrike":n.doubleStrike=Bn(i);break;case "highlight":{let l=i.attributes?.val;n.highlight=l&&l!=="none"?l:null;break}case "shd":{n.shading=Lu(i.attributes)??null;break}case "vertAlign":{let l=i.attributes?.val;l==="superscript"||l==="subscript"?n.verticalAlign=l:l==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let l=wl(i.attributes?.val,true);l!==null&&(n.baselineShiftPt=l/2);break}case "caps":n.caps=Bn(i);break;case "smallCaps":n.smallCaps=Bn(i);break;case "spacing":{let l=wl(i.attributes?.val,true);l!==null&&(n.characterSpacingPt=l/20);break}case "w":{let l=wl(i.attributes?.val);l!==null&&l>0&&(n.horizontalScalePercent=l);break}case "kern":{let l=wl(i.attributes?.val);l!==null&&l>=0&&(n.kerningMinPt=l/2,n.kerningEnabled=l>0);break}case "ligatures":{let l=BP(i.attributes?.val);l&&(n.ligatures=l);break}case "vanish":n.hidden=Bn(i);break;}return o||(n.fontFamily??=t?.minor??null),n.fontFamilyEastAsia??=t?.minorEastAsia??chunkT7RGKBCE_cjs.c(r),n.complexLane={fontFamily:a.fontFamilyAuthored?a.fontFamily:null,fontSizePt:a.fontSizePt,bold:a.bold,italic:a.italic},(a.rtl||a.forced)&&(n.latinLane={fontFamily:n.fontFamily,fontFamilyEastAsia:n.fontFamilyEastAsia,fontSizePt:n.fontSizePt,bold:n.bold,italic:n.italic},n.fontFamily=a.fontFamily,n.fontFamilyEastAsia=a.fontFamily,n.fontSizePt=a.fontSizePt,n.bold=a.bold,n.italic=a.italic),n}var NP=new WeakMap;function Wu(e,t){if(e.fontFamily===t)return e;let n=NP.get(e);n||(n=new Map,NP.set(e,n));let r=n.get(t);return r||(r=Object.freeze({...e,fontFamily:t}),n.set(t,r)),r}function Xt(e,t){return t.caps?e.toUpperCase():e}function et(e,t,n){return n.measure(Xt(e,t),t)}function zu(e,t){return e.shaping?.script===t.shaping?.script&&e.shaping?.direction===t.shaping?.direction&&e.shaping?.level===t.shaping?.level&&e.shaping?.baseLevel===t.shaping?.baseLevel&&e.shaping?.runDirection===t.shaping?.runDirection&&e.shaping?.wordSpacingPt===t.shaping?.wordSpacingPt&&e.shaping?.context?.before===t.shaping?.context?.before&&e.shaping?.context?.after===t.shaping?.context?.after&&e.fontFamily===t.fontFamily&&e.fontFamilyEastAsia===t.fontFamilyEastAsia&&e.latinLane?.fontFamily===t.latinLane?.fontFamily&&e.latinLane?.fontFamilyEastAsia===t.latinLane?.fontFamilyEastAsia&&e.latinLane?.fontSizePt===t.latinLane?.fontSizePt&&e.latinLane?.bold===t.latinLane?.bold&&e.latinLane?.italic===t.latinLane?.italic&&e.complexLane?.fontFamily===t.complexLane?.fontFamily&&e.complexLane?.fontSizePt===t.complexLane?.fontSizePt&&e.complexLane?.bold===t.complexLane?.bold&&e.complexLane?.italic===t.complexLane?.italic&&e.fontSizePt===t.fontSizePt&&e.color===t.color&&e.textOutline?.widthPt===t.textOutline?.widthPt&&e.textOutline?.color===t.textOutline?.color&&e.border?.val===t.border?.val&&e.border?.color===t.border?.color&&e.border?.widthPt===t.border?.widthPt&&e.border?.spacePt===t.border?.spacePt&&e.border?.shadow===t.border?.shadow&&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.kerningEnabled===t.kerningEnabled&&e.ligatures?.standard===t.ligatures?.standard&&e.ligatures?.contextual===t.ligatures?.contextual&&e.ligatures?.historical===t.ligatures?.historical&&e.ligatures?.discretionary===t.ligatures?.discretionary&&e.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function da(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}function kg(e){return e.verticalAlign==="baseline"?1:.65}var DP=6,_P=14,JK=`fixed:char-width=${DP}:line-height=${_P}`;function GL(e=DP,t=_P){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*kg(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=kg(r),a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var e$="und";function t$(){return typeof Intl.Segmenter=="function"}function KL(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function $L(){let e=new(KL())("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 jP=$L(),Fg=jP,HP=0;function Ku(){return HP}var kl=null,ci=null,Vu=null,bd=null;function pt(e){if(kl===e&&ci)return ci;if(Vu===e&&bd){let n=bd;return Vu=kl,bd=ci,kl=e,ci=n,n}let t=Fg.segment(e);return Vu=kl,bd=ci,kl=e,ci=t,t}function n$(e){Fg=e,WP();}function r$(){Fg=jP,WP();}function WP(){HP+=1,kl=null,ci=null,Vu=null,bd=null,Tg=null,Gu=null,vg=0;}function o$(e){return pt(e).length}var Tg=null,Gu=null,vg=0;function UL(e){if(Tg===e&&Gu)return {offsets:Gu,count:vg};let t=pt(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,Tg=e,Gu=n,vg=t.length,{offsets:n,count:t.length}}function a$(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=UL(e);return r[n]}function i$(e,t){let n=pt(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 zP(e){let t,n=false,r=false;for(let o of e)if(o.localName==="rFonts"&&o.attributes?.hint!==void 0)t=o.attributes.hint;else if(o.localName==="cs"||o.localName==="rtl"){let a=!["0","false","off"].includes(o.attributes?.val??"1");o.localName==="cs"?n=a:r=a;}return t==="eastAsia"&&!n&&!r}function VP(e,t,n){if(t?.toLowerCase()!=="times new roman")return false;let r,o,a=(i,l)=>((n?chunkT7RGKBCE_cjs.b(i,n):null)??l)?.toLowerCase()??null;for(let i of e){if(i.localName!=="rFonts")continue;let l=i.attributes;(l?.asciiTheme!==void 0||l?.ascii!==void 0)&&(r=a(l.asciiTheme,l.ascii)),(l?.hAnsiTheme!==void 0||l?.hAnsi!==void 0)&&(o=a(l.hAnsiTheme,l.hAnsi));}return r==null||o==null?true:r===o}function Og(e){return e===161||e===164||e>=167&&e<=168||e===170||e===173||e===175||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===215||e===247||e>=688&&e<=767||e>=880&&e<=975||e>=1024&&e<=1279||e>=8192&&e<=8202||e>=8208&&e<=8231||e>=8240&&e<=8287||e>=8304&&e<=8399||e>=8448&&e<=10175||e>=64256&&e<=64284}var ke=(e,t,n)=>e>=t&&e<=n,$u=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},$P=e=>{if(ke(e,65313,65338)||ke(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(ke(e,1424,1535)||ke(e,64285,64335))return {slot:"cs",script:"Hebr"};if(ke(e,1536,1791)||ke(e,1872,1919)||ke(e,2160,2207)||ke(e,2208,2303)||ke(e,64336,65023)||ke(e,65136,65279)||ke(e,126464,126719))return {slot:"cs",script:"Arab"};if(ke(e,4352,4607)||ke(e,11904,12351)||ke(e,12352,12543)||ke(e,12544,12687)||ke(e,12784,12799)||ke(e,13312,19903)||ke(e,19968,40959)||ke(e,44032,55215)||ke(e,63744,64255)||ke(e,65382,65437)||ke(e,65440,65500)||ke(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(ke(e,2304,2431)||ke(e,43232,43263))return {slot:"cs",script:"Deva"};if(ke(e,2432,2559))return {slot:"cs",script:"Beng"};if(ke(e,880,1023)||ke(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(ke(e,1024,1327)||ke(e,7296,7311)||ke(e,11744,11775)||ke(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(ke(e,3584,3711))return {slot:"cs",script:"Thai"};if(ke(e,6016,6143)||ke(e,6624,6655))return {slot:"cs",script:"Khmr"};if(ke(e,768,879)||ke(e,6832,6911)||ke(e,7616,7679)||ke(e,8400,8447)||ke(e,8192,8303)||ke(e,65056,65071)||e<=47||ke(e,58,64)||ke(e,91,96)||ke(e,123,191)||e===5760||ke(e,8192,11263)||ke(e,65024,65039)||ke(e,65280,65381)||ke(e,65438,65439)||ke(e,65501,65535)||ke(e,126976,129791)||ke(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(ke(e,192,687)||ke(e,7424,7551)||ke(e,7552,7615)||ke(e,7680,7935)||ke(e,11360,11391)||ke(e,42784,43007)||ke(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new $u(e)};function YL(e){let t=[];for(let r=0;r<e.length;){let o=e.codePointAt(r),a=r+(o>65535?2:1);t.push({from:r,to:a,classified:$P(o)}),r=a;}let n=null;for(let r of t)r.classified?n=r.classified:n&&(r.classified=n);n=null;for(let r=t.length-1;r>=0;r-=1){let o=t[r];o.classified?n=o.classified:n&&(o.classified=n);}return t}function Uu(e,t,n){let r=YL(e),o=[],a=r.every(({from:i})=>e.codePointAt(i)<=127)?"ascii":"hAnsi";for(let i of r){let l=n.levels[t+i.from]??0,d=(l&1)===1?"rtl":"ltr",s=i.classified??{slot:a,script:"Zyyy"},c=o.at(-1);c&&c.to===i.from&&c.bidiLevel===l&&c.slot===s.slot&&c.script===s.script?o[o.length-1]={...c,to:i.to}:o.push({from:i.from,to:i.to,direction:d,bidiLevel:l,script:s.script,slot:s.slot});}return o}function Ve(e,t){if(t!=="eastAsia")return e;let n=e.fontFamilyEastAsia;return n===null?e:Wu(e,n)}var GP=e=>{let t;try{t=$P(e);}catch(n){if(n instanceof $u)return "base";throw n}return t===null?"common":t.slot==="eastAsia"?"eastAsia":"base"},KP=e=>{for(let t=0;t<e.length;t+=1)if(e.charCodeAt(t)>=128)return false;return true};function UP(e,t=[]){let n=[],r=(m,g,p)=>{let h=n.at(-1);h&&h.segment===m&&h.to===g?n[n.length-1]={segment:m,from:h.from,to:p}:n.push({segment:m,from:g,to:p});},o=null,i=e.some((m,g)=>{if(!t[g]||KP(m))return false;for(let p of m)if(Og(p.codePointAt(0)))return true;return false})?pt(e.join("")):null,l=0,d=0,s=false,c=[],u=m=>{for(let g of c)m==="eastAsia"&&!g.ascii&&r(g.segment,g.from,g.to);c.length=0;};for(let m=0;m<e.length;m+=1){let g=e[m],p=d;if(d+=g.length,!i&&KP(g)){/[0-9A-Za-z]/.test(g)&&(u("base"),o="base");continue}for(let h=0;h<g.length;){let b=g.codePointAt(h),y=h+(b>65535?2:1),x=false;if(i){let R=p+h;for(;i[l].utf16To<=R;)l+=1;let P=i[l];b=P.text.codePointAt(0),y=Math.min(g.length,P.utf16To-p),R===P.utf16From&&(s=!!t[m]&&Og(b)),x=s;}if(x){let R=GP(b);R!=="common"&&(u(R),o=R),r(m,h,y),h=y;continue}let S=GP(b);S==="common"?o===null?c.push({segment:m,from:h,to:y,ascii:b<=127}):o==="eastAsia"&&b>127&&r(m,h,y):(u(S),o=S,S==="eastAsia"&&r(m,h,y)),h=y;}}if(n.length<2)return n;n.sort((m,g)=>m.segment-g.segment||m.from-g.from);let f=[n[0]];for(let m=1;m<n.length;m+=1){let g=n[m],p=f[f.length-1];p.segment===g.segment&&g.from<=p.to?g.to>p.to&&(f[f.length-1]={...p,to:g.to}):f.push(g);}return f}function Yu(e,t,n){return Object.freeze({x:e.horizontalFrame==="page"?n.x+e.x-e.horizontalFrameOrigin:t.x+e.x,y:e.verticalFrame==="page"?n.y+e.y-e.verticalFrameOrigin:t.y+e.y})}function Gt(e,t=false){return Kn(e.fragments,t)}var YP=new WeakMap;function Kn(e,t=false){let n=YP.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=l=>{for(let d of l){if(d.kind==="paragraph"){a.push(d);continue}for(let s of d.rows)if(!(s.isHeaderRepeat&&!t))for(let c of s.cells)i(c.blocks);}};return i(e),n||(n={},YP.set(e,n)),n[r]=a,a}function qP(e){let t=[];for(let n of e.pages)for(let r of Gt(n))t.push(...r.lines);return t}function XL(e){return e.anchoredDrawings??[]}var qL=Object.freeze({x:0,y:0,width:0,height:0});function Tl(e){let t=e??qL;return {box:t,origin:Object.freeze({x:t.x,y:t.y})}}var ZL={fragments:true,anchoredDrawings:true,header:true,footer:true,footnotes:true,endnotes:true},JL=Object.freeze(Object.keys(ZL));var QL={separator:true,notes:true,continuationNotice:true},eN=Object.freeze(Object.keys(QL));function XP(e,t,n,r){let o=t.kind??(n==="footnote"?"footnotes":"endnotes");for(let a of eN)switch(a){case "separator":case "continuationNotice":t[a]&&r({page:e,story:"note-separator",host:t[a],...Tl(t[a].box),noteScopeId:null,noteAreaKind:o});break;case "notes":for(let i of t.notes)switch(n){case "footnote":r({page:e,story:"footnote",host:i,...Tl(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;case "endnote":r({page:e,story:"endnote",host:i,...Tl(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;}break;}}function tN(e,t){for(let n of JL)switch(n){case "fragments":t({page:e,story:"body",host:e,...Tl(e.contentBox),noteScopeId:null,noteAreaKind:null});break;case "anchoredDrawings":break;case "header":e.header&&t({page:e,story:"header",host:e.header,...Tl(e.header.box),noteScopeId:null,noteAreaKind:null});break;case "footer":e.footer&&t({page:e,story:"footer",host:e.footer,...Tl(e.footer.box),noteScopeId:null,noteAreaKind:null});break;case "footnotes":e.footnotes&&XP(e,e.footnotes,"footnote",t);break;case "endnotes":e.endnotes&&XP(e,e.endnotes,"endnote",t);break;}}function nN(e,t){for(let n of e.pages)tN(n,t);}var ZP=16,Ig=Object.freeze({x:0,y:0});function JP(e,t,n){let r=t.textboxStory?.contentOffset??Ig,o=n??{x:e.x+t.x,y:e.y+t.y};return Object.freeze({x:o.x+r.x,y:o.y+r.y})}function vl(e,t,n=Ig,r){let o=(i,l)=>{if(i.kind==="table"){for(let d of i.rows)for(let s of d.cells)for(let c of s.blocks)o(c,l);return}for(let d of i.lines)for(let s of d.drawings??[])t(s,{...l,paragraph:i,line:d});},a=(i,l,d,s)=>{if(l>ZP)return;let c={storyOrigin:s,textboxDepth:l,textboxOwner:d[d.length-1]??null,textboxPath:d};for(let u of i.anchoredDrawings??[])t(u,{...c,paragraph:null,line:null}),u.textboxStory&&a(u.textboxStory,l+1,Object.freeze([...d,u]),JP(s,u,l===0?r?.(u):void 0));for(let u of i.fragments)o(u,c);};a(e,0,Object.freeze([]),n);}function h$(e,t){nN(e,n=>{let{page:r,story:o,host:a,noteScopeId:i,noteAreaKind:l}=n,d=o==="header"||o==="footer"?s=>Yu(s,n.origin,{x:r.box.x,y:r.box.y}):void 0;vl(a,(s,c)=>{let u=s.kind==="anchoredDrawing"&&c.textboxDepth===0&&d?d(s):Object.freeze({x:c.storyOrigin.x+s.x,y:c.storyOrigin.y+s.y}),f=m=>Object.freeze({x:u.x+m.x-s.x,y:u.y+m.y-s.y,width:m.width,height:m.height});t({page:r,story:c.textboxDepth===0?o:"textbox",rootStory:o,noteScopeId:i,noteAreaKind:l,root:n,drawingOrigin:u,absolutePaintBounds:f(s.paintBounds),absoluteHitBounds:f(s.hitBounds),paintLayer:s.kind==="inlineDrawing"?"inline":s.behindDocument?"behind-text":"in-front-of-text",drawing:s,...c});},n.origin,d);});}function Cg(e,t,n=Ig,r){let o=(a,i,l,d)=>{if(!(i>ZP)){for(let s of Kn(a.fragments,true))t(s,{storyOrigin:d,textboxDepth:i,textboxOwner:l[l.length-1]??null,textboxPath:l});for(let s of a.anchoredDrawings??[])s.textboxStory&&o(s.textboxStory,i+1,Object.freeze([...l,s]),JP(d,s,i===0?r?.(s):void 0));}};o(e,0,Object.freeze([]),n);}function rN(e,t){let n=[];for(let r of e.pages)for(let o of Gt(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function Xu(e,t,n,r){for(let o of r??qP(e)){let a=o.range.paragraphId===t?o.range.start:Number.NaN,i=o.range.paragraphId===t?o.range.end:Number.NaN;for(let l of o.spans)l.range.paragraphId===t&&(a=Number.isNaN(a)?l.range.start:Math.min(a,l.range.start),i=Number.isNaN(i)?l.range.end:Math.max(i,l.range.end));for(let l of o.drawings??[])l.paragraphId===t&&(a=Number.isNaN(a)?l.start:Math.min(a,l.start),i=Number.isNaN(i)?l.start+1:Math.max(i,l.start+1));if(!Number.isNaN(a)&&n>=a&&n<=i)return o}return null}function Mg(e){return e.contentControls??[]}function qu(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 Bg(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 Zu=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var QP=new WeakMap,eR=new WeakMap,tR=new WeakMap,nR=new WeakMap;function rR(e){let t=nR.get(e);if(t)return t;let n=new Set,r=[];for(let o of Gt(e)){for(let a of o.lines)for(let i of Fl(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 nR.set(e,r),r}function Ol(e){let t=QP.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of rR(o))n.has(a)||(n.add(a),r.push(a));return QP.set(e,r),r}function ui(e){let t=eR.get(e);if(t)return t;let n=new Map;for(let[r,o]of Ol(e).entries())n.set(o,r);return eR.set(e,n),n}function oN(e){let t=tR.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of Kn(a)){for(let l of i.lines)for(let d of Fl(l))n.has(d.paragraphId)||(n.add(d.paragraphId),r.push(d.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 rR(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),i.continuationNotice&&o(i.continuationNotice.fragments);for(let l of i.notes)o(l.fragments);}}return tR.set(e,r),r}var oR=new WeakMap;function Il(e){let t=oR.get(e);if(t)return t;let n=[...Gt(e)];for(let r of [e.header,e.footer])r&&n.push(...Kn(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...Kn(o.fragments));return oR.set(e,n),n}function Ju(e,t,n){return e.paragraphId===t&&n>=e.start&&n<e.end}var aR=new WeakMap;function Pt(e){let t=aR.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)||(e.drawings??[]).some(a=>a.paragraphId!==e.range.paragraphId)?aN(e):[n];return aR.set(e,o),o}function Fl(e){let t=Pt(e);if(t.length<2||!e.spans.some(o=>o.style.shaping))return t;let n=new Map(t.map(o=>[o.paragraphId,o])),r=[];for(let o of e.spans){let a=n.get(o.range.paragraphId);a&&(r.push(a),n.delete(a.paragraphId));}return [...r,...n.values()]}function aN(e){let t=[...e.spans.map((r,o)=>({paragraphId:r.range.paragraphId,x:r.box?.x??o,order:o*2+1})),...(e.drawings??[]).map((r,o)=>({paragraphId:r.paragraphId,x:r.advanceStart??r.x??e.spans.length+o,order:o*2}))].sort((r,o)=>r.x-o.x||r.order-o.order),n=[];for(let r of t)n.includes(r.paragraphId)||n.push(r.paragraphId);return n.map(r=>{let o=e.spans.filter(c=>c.range.paragraphId===r),a=(e.drawings??[]).filter(c=>c.paragraphId===r),i=[...o.map(c=>c.range.start),...a.map(c=>c.start)],l=[...o.map(c=>c.range.end),...a.map(c=>c.start+1)],d=i[0],s=l[0];for(let c=1;c<i.length;c+=1)i[c]<d&&(d=i[c]),l[c]>s&&(s=l[c]);return {paragraphId:r,start:d,end:s,spans:o,drawings:a}})}function wo(e,t){return Pt(e).find(n=>n.paragraphId===t)??null}function fi(e,t,n,r,o=ui(e)){if(n.paragraphId===r.paragraphId){if(t.paragraphId!==n.paragraphId)return null;let c=Math.max(t.start,n.offset),u=Math.min(t.end,r.offset);return u>c?{start:c,end:u}:null}let a=o.get(t.paragraphId),i=o.get(n.paragraphId),l=o.get(r.paragraphId);if(a===void 0||i===void 0||l===void 0||a<i||a>l)return null;let d=a===i?Math.max(t.start,n.offset):t.start,s=a===l?Math.min(t.end,r.offset):t.end;return s>d?{start:d,end:s}:null}function O$(e,t){for(let n of e.pages)for(let r of Gt(n)){let o=Cl(r).indexOf(t);if(o>0)return Cl(r).slice(0,o).reverse()}return []}var iR=new WeakMap;function Cl(e){let t=iR.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of Fl(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),iR.set(e,n),n}function iN(e,t){let n=Cl(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=wo(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Ln(e,t,n){let r=iN(e,t);return r!==null&&n>=r.start&&n<r.end}function lN(e,t){for(let n of e.pages)for(let r of Il(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Il(n))if(Cl(r).includes(t))return r;return null}function I$(e,t){let n=lN(e,t);if(!n||n.marker)return n?.marker??null;if(!n.lines.every(o=>o.spans.every(a=>!/[^\f]/.test(a.text)))||n.paragraphId!==t)return null;for(let o of e.pages)for(let a of Il(o))if(a.paragraphId===t&&a.marker)return a.marker;return null}function lR(e,t){return t?{...e,range:{paragraphId:t.paragraphId,start:t.start,end:t.end},spans:t.spans,drawings:t.drawings}:e}function B$(e){return e==="simple-markup"?"proposed":e}var Ye="all-markup",sN=Object.freeze({hiddenAuthors:Object.freeze(new Set),resolvedMarkup:"plain",cacheKey:"plain"}),sR=new WeakMap;function E$(e){if(!e)return sN;if(e.resolvedMarkup==="plain")return e;let t=sR.get(e);return t||(t=Object.freeze({...e,resolvedMarkup:"plain",cacheKey:`${e.cacheKey}|plain`}),sR.set(e,t)),t}var ef=class{#e;constructor(t){this.#e=new Set(t),Object.freeze(this);}get size(){return this.#e.size}has(t){return this.#e.has(t)}forEach(t,n){this.#e.forEach(r=>t.call(n,r,r,this));}entries(){return this.#e.entries()}keys(){return this.#e.keys()}values(){return this.#e.values()}union(t){let n=new Set(this.#e),r=t.keys(),o=r.next();for(;!o.done;)n.add(o.value),o=r.next();return n}intersection(t){let n=new Set;for(let r of this.#e)t.has(r)&&n.add(r);return n}difference(t){let n=new Set;for(let r of this.#e)t.has(r)||n.add(r);return n}symmetricDifference(t){let n=new Set(this.#e),r=t.keys(),o=r.next();for(;!o.done;){let a=o.value;this.#e.has(a)?n.delete(a):n.add(a),o=r.next();}return n}isSubsetOf(t){if(this.size>t.size)return false;for(let n of this.#e)if(!t.has(n))return false;return true}isSupersetOf(t){if(this.size<t.size)return false;let n=t.keys(),r=n.next();for(;!r.done;){if(!this.#e.has(r.value))return false;r=n.next();}return true}isDisjointFrom(t){for(let n of this.#e)if(t.has(n))return false;return true}[Symbol.iterator](){return this.#e[Symbol.iterator]()}},L$=new ef([]);function N$(e){let t=new Set;for(let o of e)t.add(o);if(t.size===0)return;let n=[...t].sort(),r=new ef(n);return Object.freeze({hiddenAuthors:r,includes:o=>!r.has(o.author),includesNode:(o,a)=>!r.has(a),cacheKey:JSON.stringify(n)})}function To(e,t){return e.includes?.(t)??nf(e,t.nodeId,t.author)}function nf(e,t,n){return e.includesNode?.(t,n)??!e.hiddenAuthors.has(n)}function xd(e,t,n){return To(e,t)?n:e.excludedNodeMode?.(t.nodeId,t.author)??"proposed"}function cR(e,t,n,r){return nf(e,t,n)?r:e.excludedNodeMode?.(t,n)??"proposed"}var or=Object.freeze([]),dN=32,cN={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function ko(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 Rn(e){if(e.kind==="textValue")return null;let t=cN[e.kind];if(t===void 0)return null;let n=ko(e,"date");return {kind:t,id:ko(e,"id")??"",author:ko(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function Nn(e,t){return e.length===0?[t]:[...e,t]}function gn(e){return e.kind!=="textValue"&&chunk6KA3L3FR_cjs.ka(e.kind)}var rf=dN;function $e(e,t,n){if(e.length===0||t==="all-markup"&&!n)return true;for(let r of e){let o=n?xd(n,r,t):t;if(o==="all-markup")continue;if(o==="proposed"?r.kind==="delete"||r.kind==="moveFrom":r.kind==="insert"||r.kind==="moveTo")return false}return true}function Eg(e,t,n){if(!n&&t==="all-markup")return e;if(!$e(e,t,n))return null;if(t!=="all-markup"&&n?.resolvedMarkup==="plain")return or;if(!n)return e;let r=e.filter(o=>To(n,o));return r.length===0?or:r}function Sd(e,t,n){if(t==="all-markup"||e.length===0)return or;if(!n)return e;let r=e.filter(o=>To(n,o));return r.length===0?or:r}function dR(e,t,n){return t==="all-markup"&&(!n||To(n,e))}function uN(e,t){return t?e.filter(n=>{if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")return true;let r="revisionNodeId"in n&&typeof n.revisionNodeId=="string"?n.revisionNodeId:"";return To(t,{kind:"format",id:n.attributes?.id??"",author:n.attributes?.author??"",...n.attributes?.date===void 0?{}:{date:n.attributes.date},nodeId:r})}):e}function of(e,t,n,r){let o=Eg(e,n,r);if(o===null)return null;let a=r?uN(t,r):t,i=Sd(e,n,r);return {props:a,...o.length===0?{}:{revisions:o},...i.length===0?{}:{changeSites:i}}}function af(e,t,n){if(t!=="all-markup")return {revisions:or,formatRevision:null};if(!n)return {revisions:ca(e),formatRevision:tf(e)};let r=ca(e).filter(a=>dR(a,t,n)),o=tf(e);return {revisions:r,formatRevision:o&&dR(o,t,n)?o:null}}function Lg(e,t,n){let r=ca(e);if(!n)return r.length>0||tf(e)!==null;if(r.some(a=>To(n,a)))return true;let o=tf(e);return o!==null&&To(n,o)}function ca(e){if(e.kind==="textValue")return Qu;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return Qu;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return Qu;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunk6KA3L3FR_cjs.da)continue;let a=fN[o.localName];if(a===void 0)continue;let i=ko(o,"date");r.push({kind:a,id:ko(o,"id")??"",author:ko(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:Qu}var fN={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function tf(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!==chunk6KA3L3FR_cjs.da||r.localName!=="rPrChange")continue;let o=ko(r,"date");return {kind:"format",id:ko(r,"id")??"",author:ko(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var Qu=Object.freeze([]);function uR(e){return e.find(t=>mN(t))??e[0]}function mN(e){return e.kind==="delete"||e.kind==="moveFrom"}function lf(e,t){let n=uR(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function A$(e){return uR(ca(e))??null}function sf(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 Vr(e){return e.some(t=>{switch(t.kind){case "delete":case "moveFrom":return true;case "insert":case "moveTo":case "format":return false;default:return t.kind}})}var pN=new WeakMap;function fR(e,t){pN.set(e,t);}function gN(e){let t=Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:n>r?1:0).map(([n,r])=>`${n}=${r}`).join("\0,");return `${e.localName}(\0${t}\0)`}function hN(e){return e.map(gN).join("\0;")}var yN=1<<18,bN=new TextEncoder;function df(e){return chunk6KA3L3FR_cjs.a(bN.encode(e))}var xN=2048,mR=2*1024*1024,mi=new Map,Ng=0,SN;function Pd(e){if(e.length===0)return SN??=df(e);let t=mi.get(e);if(t)return mi.delete(e),mi.set(e,t),t.digest;let n=df(e),r=e.length*2;if(r<=mR){mi.set(e,{digest:n,bytes:r}),Ng+=r;for(let[o,a]of mi){if(mi.size<=xN&&Ng<=mR)break;mi.delete(o),Ng-=a.bytes;}}return n}function Rd(e,t){return `${e}|${t?"drawing":""}`}function ie(e){let t="";for(let n of e)t+=`${n.length}:${n}`;return t}var pR=new WeakMap;function yR(e,t){if(!t||t.size===0)return "";let n=pR.get(e),r=n?.get(t);if(r!==void 0)return r;let o=pi(e,a=>t.get(a.id)?.cacheToken??"");return o.length<=yN&&(n||(n=new WeakMap,pR.set(e,n)),n.set(t,o)),o}function pi(e,t){let n=[],r=false;for(let o of PN(e)){let a=t(o);a&&(r=true),n.push(a);}return r?ie(n):""}var gR=new WeakMap;function PN(e){let t=gR.get(e);if(t)return t;let n=[],r=[e];for(;r.length>0;){let o=r.pop();if(o.kind==="paragraph"){n.push(o);continue}if("children"in o)for(let a=o.children.length-1;a>=0;a-=1)r.push(o.children[a]);}return gR.set(e,n),n}function Ag(e){return e?{nodeDigests:new WeakMap,paragraphKeys:new WeakMap}:{nodeDigests:new Map,paragraphKeys:new Map}}var bR=Ag(true);function xR(e,t){if(e.kind==="textValue")return df(Dg(e));let n=t.nodeDigests.get(e);if(n!==void 0)return n;let r=df(Dg(e,t));return t.nodeDigests.set(e,r),r}function Dg(e,t=bR){if(e.kind==="textValue")return ie(["text",e.value]);let n=[];for(let o of e.attributes)n.push(ie([o.namespaceUri??"",o.localName,o.value]));n.sort();let r=[];for(let o of e.children)r.push(o.kind==="textValue"?Dg(o):ie(["child-digest",xR(o,t)]));return ie(["element",e.kind,e.localName,e.id,ie(n),ie(r)])}var RN=8;function cf(e){return SR(e,bR)}function SR(e,t){let n=Math.round(e.width*1e3),r=e.drawingToken??"",o=e.projectionToken??"",a=e.exclusionToken??"",i=Pd(hN(e.properties)),l=xR(e.paragraph,t),d=Pd(e.producer),s=Pd(r),c=Pd(o),u=Pd(a),f=t.paragraphKeys.get(e.paragraph),m=f?.entries.findIndex(h=>h.producerIdentity===d&&h.width===n&&h.drawingIdentity===s&&h.projectionIdentity===c&&h.exclusionIdentity===u&&h.propertiesToken===i);if(f&&m!==void 0&&m>=0){let[h]=f.entries.splice(m,1);return f.entries.push(h),h.key}let g=`plk:${l}:${d}:${n}:${s}:${c}:${u}:${i}`;f||(f={entries:[]},t.paragraphKeys.set(e.paragraph,f));let p=f.entries.find(h=>h.propertiesToken===i)?.propertiesToken??i;return f.entries.push({producerIdentity:d,width:n,drawingIdentity:s,projectionIdentity:c,exclusionIdentity:u,propertiesToken:p,key:g}),f.entries.length>RN&&f.entries.shift(),g}var PR=new WeakMap;function uf(e,t){PR.set(e,t);}function RR(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=PR.get(a);if(i)for(let l of i)o.add(l);}t||e.retain(o);}var wN=8,kN=8;function W$(e={}){let t=Math.max(1,e.maxEntries??4096),n=e.retainAcrossPasses??true,r=t*8,o=new Map,a=Ag(n),i=0,l=0,d=0,s=0,c=0,u=0,f=0,m=0,g=0,p=0,h={retainAcrossPasses:n,keyFor(b){return SR(b,a)},get(b){let y=o.get(b);if(y===void 0){s+=1;return}return d+=1,o.delete(b),y.generation=i,o.set(b,y),y.value},set(b,y){if(o.has(b)&&o.delete(b),o.set(b,{value:y,generation:i}),!(o.size<=t))for(let[x,S]of o){if(o.size<=t||S.generation>=i&&o.size<=r)break;o.size>r?f+=1:u+=1,o.delete(x),c+=1;}},release(b){!n&&o.delete(b)&&(g+=1);},retentionPassDue(){return l+=1,l%wN===0},retain(b){i+=1;for(let y of b){let x=o.get(y);x&&(x.generation=i);}for(let[y,x]of o)i-x.generation>kN&&(o.delete(y),c+=1,m+=1);},clear(){p+=o.size,o.clear(),a=Ag(n);},get stats(){return {hits:d,misses:s,evictions:c,size:o.size}}};return fR(h,{snapshot(){let b=0;for(let y of o.keys())b+=y.length*2;return {hits:d,misses:s,evictions:c,size:o.size,softLimit:t,hardLimit:r,keyTextBytes:b,softLimitEvictions:u,hardLimitEvictions:f,staleEvictions:m,releasedEntries:g,clearedEntries:p}},visit(b){for(let y of o.values())b(y.value);}}),h}var Bl=4096,jt=64,Wg=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),wR=/\s*\\\*\s*MERGEFORMAT\s*$/i;function gi(e){if(e.length>chunk6KA3L3FR_cjs.ze)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunk6KA3L3FR_cjs.ze?null:t.replace(wR,"").trim()}var TN=/\s*\\#\s*(?:"([^"]*)"|([^\\"]+))$/;function vN(e){if(e.length>chunk6KA3L3FR_cjs.ze)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunk6KA3L3FR_cjs.ze)return null;let n=t.replace(wR,"").trim(),r=TN.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 Ml(e){let t=vN(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 Fo(e){return Ml(e)?.kind??null}function rn(e,t){return chunk6KA3L3FR_cjs.me(e,t)}function vo(e){return chunk6KA3L3FR_cjs.ne(e)}function Oo(){return {nodes:0,exhausted:false}}function Ht(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Bl?(e.exhausted=true,false):true)}function hi(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function wd(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 El(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function FN(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function yi(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>chunk6KA3L3FR_cjs.Ae?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function Ll(e){return e.nesting<2||e.nesting>chunk6KA3L3FR_cjs.Ae?null:e.inner[e.nesting-2]??null}function kR(e){if(e.nesting===1)return e.phase==="instruction";let t=Ll(e);return t!==null&&!t.separated}function jg(e,t){if(!kR(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=Ll(e);return t?!n.deletedOverflow:!n.overflow}function TR(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=Ll(e);t&&(t.sawLive=true);}function Hg(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=Ll(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function _g(e){Hg(e,false),Hg(e,true);}function ON(e,t,n=false){if(!jg(e,n))return;let r=Ll(e);n||TR(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunk6KA3L3FR_cjs.ze){Hg(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function bi(e,t,n,r){if(!kR(e))return;let o=chunk6KA3L3FR_cjs.oe(t);if(o||TR(e),!jg(e,o))return;if(r>jt){_g(e);return}let a=[],i=t.kind==="textValue"?[]:t.children??[];for(let l=i.length-1;l>=0;l-=1)a.push({node:i[l],depth:r+1});for(;a.length>0;){let l=a.pop();if(!Ht(n)){_g(e);return}if(l.depth>jt){_g(e);return}if(l.node.kind==="textValue"){if(ON(e,l.node.value,o),!jg(e,o))return;continue}let d=l.node.children??[];for(let s=d.length-1;s>=0;s-=1)a.push({node:d[s],depth:l.depth+1});}}function xi(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=El(e);return r.overflow?null:Ml(r.instruction)}let t=Ll(e);if(!t||t.separated)return null;t.separated=true;let n=FN(t);return n.overflow?null:Ml(n.instruction)}function Si(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&wd(e);}function vR(e){return e.phase==="result"&&e.nesting>=1}function zg(e){let t=false,n=false,r=false,o=Oo(),a=hi(),i=()=>t&&n&&r,l=m=>{m==="PAGE"?t=true:m==="NUMPAGES"?n=true:r=true;},d=false,s=[],c=(m,g)=>{if(m.kind!=="runProperties"){if(rn(m,"begin")){yi(a),a.nestingOverflow&&(d=true);return}if(vo(m)){bi(a,m,o,g);return}if(rn(m,"separate")){let p=a.nesting,h=a.phase,b=xi(a);if(d)return;b&&(p<=1||h==="result")&&s.push(b.kind);return}if(rn(m,"end")&&(Si(a),a.nesting===0)){if(!d)for(let p of s)l(p);s.length=0;}}},u=(m,g)=>{if(m.kind==="run")for(let p of m.children){if(!Ht(o))return;if(c(p,g+1),(p.kind==="drawing"||p.kind==="generic")&&!vo(p)&&"children"in p&&p.children.length>0){let h={...a,inner:a.inner.map(x=>({...x}))},b=d,y=s;s=[],f(p,g+1),Object.assign(a,h),d=b,s=y;}if(i()||o.exhausted)return}},f=(m,g)=>{if(!i()&&Ht(o)&&!(g>jt)&&m.kind!=="textValue"){if(m.kind==="paragraph"){wd(a),d=false,s.length=0;for(let p of m.children)if(f(p,g+1),i()||o.exhausted)return;wd(a),d=false,s.length=0;return}if(m.kind==="run"){u(m,g);return}if(chunk6KA3L3FR_cjs.pe(m)){let p=Fo(chunk6KA3L3FR_cjs.re(m)??"");if(p){l(p);return}}for(let p of m.children)if(f(p,g+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?Wg:{hasPage:t,hasNumPages:n,hasSectionPages:r}}var kd=256,IN=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:false}),CN=Object.freeze({suppressNonDelimiterText:true,noteRef:false,pageRef:false}),MN=Object.freeze({suppressNonDelimiterText:false,noteRef:true,pageRef:false}),BN=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:true}),ff=new WeakMap;function Rr(e){return ff.get(e)??IN}function EN(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "){n+=1;continue}if(r==='"'){let a=e.indexOf('"',n+1);if(a===-1)return null;t.push(e.slice(n+1,a)),n=a+1;continue}let o=n;for(;o<e.length&&e[o]!==" ";)o+=1;t.push(e.slice(n,o)),n=o;}return t}function ua(e){if(e.length>chunk6KA3L3FR_cjs.ze)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunk6KA3L3FR_cjs.ze)return null;let n=EN(t);if(n===null||n.length<2)return null;let r=n[0].toUpperCase();if(r!=="REF"&&r!=="NOTEREF"&&r!=="PAGEREF")return null;let o=n[1];if(o.length===0||o.length>kd||o.startsWith("\\"))return null;if(r==="NOTEREF")return LN(n,o);if(r==="PAGEREF")return NN(n,o);let a=false,i=false,l=false,d=false,s=false;for(let f=2;f<n.length;f+=1){let m=n[f].toUpperCase();if(m==="\\R")i=true;else if(m==="\\W")l=true;else if(m==="\\N")a=true;else if(m==="\\T")d=true;else if(m==="\\H")s=true;else if(m==="\\*"&&n[f+1]?.toUpperCase()==="MERGEFORMAT")f+=1;else {if(m==="\\*MERGEFORMAT")continue;return null}}let u={bookmark:o,numberSwitch:a?"n":i?"r":l?"w":null,hyperlink:s};return d&&ff.set(u,CN),u}function LN(e,t){let n=false;for(let o=2;o<e.length;o+=1){let a=e[o].toUpperCase();if(a==="\\H")n=true;else if(a==="\\*"&&e[o+1]?.toUpperCase()==="MERGEFORMAT")o+=1;else {if(a==="\\*MERGEFORMAT")continue;return null}}let r={bookmark:t,numberSwitch:null,hyperlink:n};return ff.set(r,MN),r}function NN(e,t){let n=false;for(let o=2;o<e.length;o+=1){let a=e[o].toUpperCase();if(a==="\\H")n=true;else if(a==="\\*"&&e[o+1]?.toUpperCase()==="MERGEFORMAT")o+=1;else {if(a==="\\*MERGEFORMAT")continue;return null}}let r={bookmark:t,numberSwitch:null,hyperlink:n};return ff.set(r,BN),r}var AN=["","\u05D0","\u05D1","\u05D2","\u05D3","\u05D4","\u05D5","\u05D6","\u05D7","\u05D8"],DN=["","\u05D9","\u05DB","\u05DC","\u05DE","\u05E0","\u05E1","\u05E2","\u05E4","\u05E6"],_N=["","\u05E7","\u05E8","\u05E9"],jN="\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DB\u05DC\u05DE\u05E0\u05E1\u05E2\u05E4\u05E6\u05E7\u05E8\u05E9\u05EA",HN="\u0623\u0628\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u064A",WN="\u0623\u0628\u062C\u062F\u0647\u0648\u0632\u062D\u0637\u064A\u0643\u0644\u0645\u0646\u0633\u0639\u0641\u0635\u0642\u0631\u0634\u062A\u062B\u062E\u0630\u0636\u0638\u063A",zN="\u0966\u0967\u0968\u0969\u096A\u096B\u096C\u096D\u096E\u096F";function Vg(e){return e<1?0:(e-1)%392+1}function FR(e){let t=Vg(e);if(t===0)return String(e);let n=_N[Math.floor(t/100)],r=t%100;return r===15?`${n}\u05D8\u05D5`:r===16?`${n}\u05D8\u05D6`:n+DN[Math.floor(r/10)]+AN[r%10]}function OR(e){let t=Vg(e);if(t===0)return String(e);let n=[...jN];return "\u200F"+n[n.length-1].repeat(Math.floor((t-1)/n.length))+n[(t-1)%n.length]}function IR(e,t,n){let r=Vg(e);if(r===0)return String(e);let o=[...t],a=o[(r-1)%o.length];return (n?a+"\u200C":"\u200C"+a).repeat(Math.floor((r-1)/o.length)+1)}function CR(e){return IR(e,HN,true)}function MR(e){return IR(e,WN,false)}function BR(e){return e.replace(/[0-9]/g,t=>zN[Number(t)])}var pf=64,ER=64,VN=[{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 ar(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function fa(e){return String(ar(e))}function GN(e){let t=ar(e);return t<10?`0${t}`:String(t)}function LR(e){let t=ar(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of VN)for(;t>=r;)if(n+=o,t-=r,n.length>=pf)return n.slice(0,pf);return n||"I"}function KN(e){return LR(e).toLowerCase()}function NR(e){let t=ar(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 $N(e){return NR(e).toLowerCase()}function UN(e){let t=ar(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 YN(e){return ar(e).toString(16).toUpperCase()}function XN(e){let t=["*","\u2020","\u2021","\xA7"],n=ar(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,qN);return t[r].repeat(o)}var qN=8,mf=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],ZN=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function gf(e){let t=ar(e);if(t<20)return mf[t];if(t<100){let r=t%10;return ZN[Math.floor(t/10)]+(r===0?"":`-${mf[r]}`)}if(t<1e3){let r=t%100;return `${mf[Math.floor(t/100)]} hundred${r===0?"":` ${gf(r)}`}`}let n=t%1e3;return `${mf[Math.floor(t/1e3)]} thousand${n===0?"":` ${gf(n)}`}`}function AR(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function JN(e){return AR(gf(e))}var QN=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function eA(e){let t=QN.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function tA(e){let t=gf(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return AR(r+eA(t.slice(n+1)))}function Gr(e,t){switch(e){case "decimal":return fa(t);case "decimalZero":return GN(t);case "upperRoman":return LR(t);case "lowerRoman":return KN(t);case "upperLetter":return NR(t);case "lowerLetter":return $N(t);case "ordinal":return UN(t);case "cardinalText":return JN(t);case "ordinalText":return tA(t);case "hex":return YN(t);case "chicago":return XN(t);case "numberInDash":return `- ${fa(t)} -`;case "hebrew1":return FR(ar(t));case "hebrew2":return OR(ar(t));case "arabicAlpha":return CR(ar(t));case "arabicAbjad":return MR(ar(t));case "hindiNumbers":return BR(fa(t));case "none":case "bullet":return "";default:return fa(t)}}function Gg(e,t,n){let r=e.length>ER?e.slice(0,ER):e,o="";for(let a=0;a<r.length&&!(o.length>=pf);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let l=r[a+1];if(l>="1"&&l<="9"){let d=Number(l)-1,s=n[d]??"decimal",c=t[d]??1,u=s==="bullet"?"":Gr(s,c);for(let f of u){if(o.length>=pf)break;o+=f;}a+=1;continue}}o+=i;}return o}function nA(e){let t=e.toUpperCase(),n=e[0]===e[0]?.toUpperCase();switch(t){case "ARABIC":return "decimal";case "ALPHABETIC":return n?"upperLetter":"lowerLetter";case "ROMAN":return n?"upperRoman":"lowerRoman";case "ORDINAL":return "ordinal";case "CARDTEXT":return "cardinalText";case "ORDTEXT":return "ordinalText";case "HEX":return "hex";default:return null}}function Pi(e){if(gi(e)===null)return null;let n=e.replace(/\s+/g," ").trim().split(" "),r=n[0]?.toUpperCase();if(r!=="AUTONUM"&&r!=="AUTONUMLGL"&&r!=="AUTONUMOUT")return null;let o=null,a=false;for(let i=1;i<n.length;i+=1){let d=n[i].toUpperCase();if(d==="\\E"){a=true;continue}if(d==="\\*"){let s=n[i+1];if(s===void 0)return null;if(i+=1,s.toUpperCase()==="MERGEFORMAT")continue;if(o=nA(s),o===null)return null;continue}return null}return {kind:r,numFmt:o,suppressPeriod:a}}function DR(e,t){let n=Gr(e.numFmt??"decimal",t);return n.length===0?"":e.suppressPeriod?n:`${n}.`}var _R=new WeakMap;function zR(e){let t=_R.get(e);if(t!==void 0)return t;let n=rA(e);return _R.set(e,n),n}function rA(e){let t=(n,r)=>{if(n.kind==="textValue"||r>=chunk6KA3L3FR_cjs.la||chunk6KA3L3FR_cjs.ke(n)||chunk6KA3L3FR_cjs.ie(n)!==null)return false;if(n.kind==="text"||n.localName==="t"){for(let a of n.children)if(a.kind==="textValue"&&a.value.trim().length>0)return true;return false}let o=chunk6KA3L3FR_cjs.ma(n,r);for(let a of n.children)if(a.kind!=="textValue"&&t(a,o))return true;return false};for(let n of e.children)if(n.kind!=="textValue"&&t(n,0))return true;return false}function VR(e,t){for(let n of t.resultParagraphIds){let r=chunk6KA3L3FR_cjs.Ha(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&zR(r))return true}return false}var jR=new WeakMap,HR=new WeakMap,WR=new WeakMap;function hf(e){let t=jR.get(e);if(t)return t;let n=new Set;for(let r of chunk6KA3L3FR_cjs.Le(e)){let o=chunk6KA3L3FR_cjs.Ha(e,r.beginParagraphId);o!==null&&o.kind!=="textValue"&&o.kind==="paragraph"&&zR(o)||n.add(r.beginParagraphId),n.add(r.endParagraphId);}return jR.set(e,n),n}function GR(e){let t=HR.get(e);if(t)return t;let n=new Set;for(let r of chunk6KA3L3FR_cjs.Le(e))VR(e,r)||n.add(r.beginParagraphId);return HR.set(e,n),n}function yf(e){let t=WR.get(e);if(t)return t;let n=new Set;for(let r of chunk6KA3L3FR_cjs.Le(e))if(!VR(e,r))for(let o of r.resultParagraphIds)n.add(o);return WR.set(e,n),n}var a2=64,i2=31680,l2=720,s2=36,KR=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),Td=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),oA=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),aA=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function vd(e){return e.kind!=="textValue"}function bf(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Kg(e,t){for(let n of e.children)if(vd(n)&&n.localName===t)return n}function $R(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function iA(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function UR(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!vd(r)||r.localName!=="tab")continue;let o=iA($R(bf(r,"pos"))??NaN);if(o===null)continue;let a=bf(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=a==="num"?"left":oA.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=bf(r,"leader");e.set(o,{alignment:i,...a==="num"?{numberingOnly:true}:{},...l!==void 0&&aA.has(l)?{leader:l}:{}});}}function YR(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,...i});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function XR(e){let t=new Map;for(let n of e)!n||!vd(n)||UR(t,Kg(n,"tabs"));return YR(t)}function d2(e){if(!e||!vd(e))return Td;let t=new Map;return UR(t,Kg(e,"tabs")),YR(t)}function qR(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{...e,defaultIntervalPt:t}}function ZR(e){if(!e||!vd(e))return 36;let t=Kg(e,"defaultTabStop");if(!t)return 36;let n=$R(bf(t,"val"));return n===null||n<=0||n>31680?36:n/20}function Ri(e,t,n,r=false){let o=Math.max(t,n);for(let l of e.stops)if(!(l.numberingOnly&&!r)&&!(l.implied&&r)&&l.positionPt>t)return {positionPt:Math.min(l.positionPt,o),alignment:l.alignment,...l.leader?{leader:l.leader}:{}};let a=e.defaultIntervalPt>0?e.defaultIntervalPt:36,i=Math.ceil((t+1e-9)/a)*a;return i<=t&&(i+=a),{positionPt:Math.min(i,o),alignment:"left"}}function JR(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 xf(e){let t=e.stops.map(r=>`${r.alignment}@${Math.round(r.positionPt*1e3)}${r.numberingOnly?"#num":""}${r.implied?"#implied":""}${r.leader?`/${r.leader}`:""}`).join(","),n=e.ignoreIndentAsNumberingTabStop?"|numStop":"";return `tabs(${t}|d${Math.round(e.defaultIntervalPt*1e3)}${n})`}function wi(e){return e>=11904&&e<=12591||e>=12736&&e<=40959||e>=63744&&e<=64255||e>=65072&&e<=65103||e>=65281&&e<=65439||e>=131072&&e<=205743}var t0=e=>new Set([...e].map(t=>t.codePointAt(0))),Fd=t0("\u3002\uFF0E\uFF0C\u3001\uFF1B\uFF1A\uFF1F\uFF01\u300D\u300F\uFF09\u3011\u3009\u300B\u3015\u3017\u3019\u301B\uFF5D\uFF3D\uFF1E\uFF05\u3000\u30FB\uFF61\uFF63\uFF64\uFF65\uFF70\uFF9E\uFF9F\u3005\u301C\u309D\u309E\u30FD\u30FE\u30FC\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F"),Od=t0("\u300C\u300E\uFF08\u3010\u3008\u300A\u3014\u3016\u3018\u301A\uFF5B\uFF3B\uFF1C\uFF62\uFF04\uFFE5");function n0(e,t){return !(!wi(e)||!wi(t)||Od.has(e)||Fd.has(t))}function wr(e){if(e.length===0)return;let t=e.charCodeAt(e.length-1);return t>=56320&&t<=57343&&e.length>=2?e.codePointAt(e.length-2):t}var Pf=new Set(["-","\u2010","\u2013","\u2014"]),r0=/[\u00a0\u2007\u202f\u2060\ufeff]/u,lA=/[^\S\u00a0\u2007\u202f\ufeff]$/,sA=/^[^\S\u00a0\u2007\u202f\ufeff]/,QR=11904;function dA(e){let t=null;return n=>{if(t===null){t=new Set;for(let r of pt(e))t.add(r.utf16From);t.add(e.length);}return t.has(n)}}function cA(e,t){let n=[],r=0,o=0;for(;r<e.length||o<t.length;){let a=r<e.length?e[r]:Number.POSITIVE_INFINITY,i=o<t.length?t[o]:Number.POSITIVE_INFINITY;a<i?(n.push(a),r+=1):(n.push(i),o+=1);}return n}function Io(e,t){let n=[];for(let o=0;o<e.length;o+=1){let a=e[o];a===" "?(o>0&&n[n.length-1]!==o&&n.push(o),n.push(o+1)):(a===" "||Pf.has(a)&&o>0&&e[o-1]!==" "&&o+1<e.length&&e[o+1]!==" "&&!Pf.has(e[o+1]))&&n.push(o+1);}let r=n;if(t){let o=[],a=dA(e);for(let i=0;i<e.length;){let l=e.codePointAt(i),d=i+(l>65535?2:1);if(d>=e.length)break;n0(l,e.codePointAt(d))&&a(d)&&o.push(d),i=d;}o.length>0&&(r=cA(n,o));}return r[r.length-1]!==e.length&&r.push(e.length),r}function Rf(e,t){return !(t!==void 0&&Fd.has(t)||e!==void 0&&Od.has(e))}function o0(e,t){return t<=0||t>=e.length?true:Rf(wr(e.slice(0,t)),e.codePointAt(t))}var Sf=new Map,e0=-1;function uA(e,t){let n=Ku();(e0!==n||Sf.size>=2048)&&(Sf.clear(),e0=n);let r=e*1114112+t,o=Sf.get(r);if(o!==void 0)return o;let a=0;for(let l of pt(String.fromCodePoint(e,t)))a+=1;let i=a>1;return Sf.set(r,i),i}function Nl(e,t,n){let r=n||e===""||lA.test(e)||sA.test(t)||Pf.has(e[e.length-1])&&!Pf.has(t[0]),o=e.length===0?0:e.charCodeAt(e.length-1);if(o<QR&&t.charCodeAt(0)<QR)return r?"opens":"continues";if(o===9)return "opens";let a=wr(e),i=t.codePointAt(0);return a!==void 0&&!uA(a,i)||!Rf(a,i)?"forbidden":r||a!==void 0&&n0(a,i)?"opens":"continues"}var fA=Object.freeze({inTableCell:true,compatibilityMode:void 0,anchorsWrapText:true,rowsClearOutOfCellFloats:false});function ki(e,t,n){return Object.freeze({inTableCell:e===true,compatibilityMode:t.compatibilityMode,anchorsWrapText:t.anchorsWrapText!==false||e===true,rowsClearOutOfCellFloats:n!==void 0&&t.outOfCellFloatParagraphs?.has(n)===true})}function Id(e,t){if(!t.inTableCell||pn(t.compatibilityMode))return true;let n=e.position;return n?.horizontal.relativeFrom==="character"||n?.vertical.relativeFrom==="line"?true:e.anchor?.layoutInCell??true}function $g(e,t){return t.anchorCellBox!=null&&!Id(e,t.cellAnchorScope??fA)}function a0(e,t,n){return {anchorCellBox:Object.freeze({x:0,y:0,width:e,height:Math.max(1,t)}),cellAnchorScope:n}}function Ti(e){let t=e.pageHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:t!==void 0&&Number.isFinite(t)&&t>0?t:e.contentBandHeight+e.contentInsetTop+e.contentInsetBottom})}var i0=21600;function Cd(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 kf(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 Cd(n)}function Ug(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 Cd(r)}function mA(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 s0(e,t){return Al(e,t)}function Md(e,t,n){return s0(Al(e,t),n)}function pA(e,t){let n=[],r=Math.min(e.length,cn);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],l=a.y,d=i.y;if(l===d)continue;let s=Math.min(l,d),c=Math.max(l,d);if(t<s||t>c||t===c&&d>l||t===s&&d<l)continue;let u=(t-l)/(d-l),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:d>l?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function gA(e,t){let n=[],r=Math.min(e.length,cn);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 l=Math.min(a.x,i.x),d=Math.max(a.x,i.x);d>l&&n.push(Object.freeze({start:l,end:d}));}return Cd(n)}function l0(e,t,n){let r=hA(pA(e,t),n),o=gA(e,t);return Cd([...r,...o])}function hA(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,l=e[a+1].x;l>i&&n.push(Object.freeze({start:i,end:l}));}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 yA(e,t){return Object.freeze({top:he(e.top)+he(t.top),right:he(e.right)+he(t.right),bottom:he(e.bottom)+he(t.bottom),left:he(e.left)+he(t.left)})}function bA(e,t,n,r,o,a){let i=t.x-e.x,l=t.y-e.y,d=r.x-n.x,s=r.y-n.y,c=i*s-l*d;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*l-(n.y-e.y)*i)/c,m=((n.x-e.x)*s-(n.y-e.y)*d)/c;if(f<-1e-9||f>1+1e-9||m<-1e-9||m>1+1e-9)return null;let g=e.y+f*l;return !Number.isFinite(g)||g<o-1e-6||g>a+1e-6?null:g}function xA(e,t,n,r){let o=[],a=Math.min(e.length,cn),i=Math.min(t.length,cn);if(a<2||i<2)return Object.freeze([]);let l=cn*cn,d=0;for(let s=0;s<a;s+=1){let c=e[s],u=e[(s+1)%a];for(let f=0;f<i;f+=1){if(d>=l)return Object.freeze(o);d+=1;let m=t[f],g=t[(f+1)%i],p=bA(c,u,m,g,n,r);p!==null&&o.push(p);}}return Object.freeze(o)}function SA(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,cn);for(let i=0;i<a;i+=1){let l=o[i].y;Number.isFinite(l)&&l>=t-1e-6&&l<=n+1e-6&&r.add(l);}for(let i=0;i<a;i+=1){let l=o[i],d=o[(i+1)%a],s=l.y,c=d.y;if(s!==c)for(let u of [t,n]){let f=Math.min(s,c),m=Math.max(s,c);u>=f&&u<=m&&r.add(u);}}}if(e.length>=2)for(let o of xA(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function PA(e,t,n,r){let o=l0(e,n,r);return t&&t.length>=3&&(o=kf(o,l0(t,n,"nonzero"))),o}function d0(e,t,n,r,o=null){let a=he(n.top),i=he(n.bottom),l=he(n.left),d=he(n.right),s=t-i,c=t+a,u=SA(o&&o.length>=3?[e,o]:[e],s,c),f=[],m=u.length>=2?u.flatMap((g,p)=>{if(p+1>=u.length)return [];let h=u[p+1];return h<=g+1e-6?[g]:[g,h,(g+h)/2]}):[s];for(let g of m){let p=PA(e,o,g,r);for(let h of p)f.push(Object.freeze({start:h.start-l,end:h.end+d}));}return Cd(f)}function c0(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 RA(e){let t=Math.max(0,he(e.extentWidthPt)),n=Math.max(0,he(e.extentHeightPt)),r=Tf(e.transform,t,n),o=Math.min(e.polygonEmu.length,cn);if(o<3)return c0({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/i0,i=r.height/i0,l=[];for(let d=0;d<o;d+=1){let s=e.polygonEmu[d];l.push(Object.freeze({x:he(s.x)*a,y:he(s.y)*i}));}return vf({points:Object.freeze(l),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:e.anchorX,anchorY:e.anchorY})}function wA(e,t){let n=t.effectInsets??wf,r=t.wrapDistances??wf,o=he(t.contentLeft),a=he(t.contentRight);if(t.mode==="topAndBottom"){let c=s0(Al(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Ug([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=Md(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Ug([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:c0(t.contentBounds),l=t.mode==="through"?"evenodd":"nonzero",d=yA(r,n),s=d0(i,e,d,l,t.clipPolygon);return Ug(s,o,a)}function kA(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 TA(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=kA(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(d=>d.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(d=>d.start>=a.end-1e-4));let i=Math.max(0,a.start-r),l=Math.max(0,o-a.end);return i===l?Object.freeze(e.filter(d=>d.start>=a.end-1e-4)):i>l?Object.freeze(e.filter(d=>d.end<=a.start+1e-4)):Object.freeze(e.filter(d=>d.start>=a.end-1e-4))}function u0(e,t){let n=wA(e,t),r=mA(n,t.contentLeft,t.contentRight);return TA(r,n,t.textSide,t.contentLeft,t.contentRight)}function vA(e,t,n,r){return n.length<3?false:d0(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Yg(e,t,n){let r=n.effectInsets??wf,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 vA(e,t,n.clipPolygon,r);let a=Al(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function f0(e){let t=Object.freeze({top:he(e.wrapDistancesEmu.top/Kr),right:he(e.wrapDistancesEmu.right/Kr),bottom:he(e.wrapDistancesEmu.bottom/Kr),left:he(e.wrapDistancesEmu.left/Kr)}),n=e.mode==="tight"||e.mode==="through"?RA({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 An=1e5,cn=chunk6KA3L3FR_cjs.m.maxPolygonPoints,wf=Object.freeze({top:0,right:0,bottom:0,left:0}),FA=32,OA=.1,IA=new Set(["rect","ellipse","roundRect"]);function he(e){return Number.isFinite(e)?e:0}function ir(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function m0(e,t){let n=e+t;return Number.isFinite(n)?n:0}function p0(e,t,n){let r=ir(e,0,n),o=ir(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 CA(e){let t=p0(ir(e.left,0,An),ir(e.right,0,An),An),n=p0(ir(e.top,0,An),ir(e.bottom,0,An),An);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function MA(e){let t=CA({left:e.left*An,top:e.top*An,right:e.right*An,bottom:e.bottom*An});return Object.freeze({left:t.left/An,top:t.top/An,right:t.right/An,bottom:t.bottom/An})}function BA(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/Kr;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 Al(e,t){let n=he(t.left),r=he(t.right),o=he(t.top),a=he(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,m0(e.width,n+r)),height:Math.max(0,m0(e.height,o+a))})}function EA(e,t,n){let r=e*ir(n.left,0,1),o=t*ir(n.top,0,1),a=e*(1-ir(n.right,0,1)),i=t*(1-ir(n.bottom,0,1)),l=e>0?a<=r:a<r,d=t>0?i<=o:i<o;if(l||d){let s=e/2,c=t/2;return Object.freeze({left:s,top:c,right:s,bottom:c})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Tf(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?he($r(r)??t):Math.max(0,he(t)),l=o>0?he($r(o)??n):Math.max(0,he(n));return Object.freeze({offsetX:he($r(a.x)??0),offsetY:he($r(a.y)??0),width:i,height:l})}function LA(e,t,n,r){let o=EA(t,n,r),a=o.right-o.left,i=o.bottom-o.top,l=t>0?t:1,d=n>0?n:1,s=[],c=Math.min(e.length,cn);for(let u=0;u<c;u+=1){let f=e[u],m=a<=0?o.left:o.left+ir(f.x/l,0,1)*a,g=i<=0?o.top:o.top+ir(f.y/d,0,1)*i;s.push(Object.freeze({x:he(m),y:he(g)}));}return Object.freeze(s)}function g0(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=he(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),l=Math.sin(a),d=r*i-o*l,s=r*l+o*i;return Object.freeze({x:he(d+t.x),y:he(s+t.y)})}function h0(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,cn);for(let i=1;i<a;i+=1){let l=e[i];!Number.isFinite(l.x)||!Number.isFinite(l.y)||(t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),o=Math.max(o,l.y));}return Object.freeze({x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,o-r)})}function qg(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=Bd(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of n)r.push(g0(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),t,e.transform));let o=h0(r),a=Math.max(o.width,1e-6),i=Math.max(o.height,1e-6);return Object.freeze({bboxX:o.x,bboxY:o.y,scaleX:Math.max(0,he(e.layoutWidth))/a,scaleY:Math.max(0,he(e.layoutHeight))/i,anchorX:he(e.anchorX),anchorY:he(e.anchorY)})}function NA(e,t){return Object.freeze({x:he(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:he(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function vf(e){let t=e.mapping??qg({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=LA(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,cn),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 l=0;l<r;l+=1){let d=o[l],s=Object.freeze({x:he(d.x+e.offsetX),y:he(d.y+e.offsetY)});i.push(NA(g0(s,a,e.transform),t));}return Object.freeze(i)}function Bd(e,t,n,r){if(n<0||r<0||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 AA(e,t,n){if(!e||!IA.has(e))return null;if(t<=0||n<=0)return Bd(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return Bd(0,0,t,n);if(e==="ellipse"){let l=[],d=t/2,s=n/2,c=t/2,u=n/2,f=Math.min(FA,cn);for(let m=0;m<f;m+=1){let g=m/f*Math.PI*2;l.push(Object.freeze({x:d+c*Math.cos(g),y:s+u*Math.sin(g)}));}return Object.freeze(l)}let r=Math.min(t,n)*OA,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 _l(e){return Object.freeze({x:he(e.x),y:he(e.y)})}function DA(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,l,d)=>{if(i.length===0)return Object.freeze([]);let s=[],c=Math.min(i.length,cn);for(let u=0;u<c;u+=1){let f=_l(i[u]),m=_l(i[(u+1)%c]),g=l(f),p=l(m);if(g&&p?s.push(m):g&&!p?s.push(_l(d(f,m))):!g&&p&&(s.push(_l(d(f,m))),s.push(m)),s.length>=cn)break}return Object.freeze(s.slice(0,cn))},a=e.slice(0,cn).map(_l);return a=[...o(a,i=>i.x>=t.x,(i,l)=>{let d=l.x-i.x,s=Math.abs(d)>1e-6?(t.x-i.x)/d:0;return Object.freeze({x:t.x,y:he(i.y+s*(l.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,l)=>{let d=l.x-i.x,s=Math.abs(d)>1e-6?(n-i.x)/d:0;return Object.freeze({x:n,y:he(i.y+s*(l.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,l)=>{let d=l.y-i.y,s=Math.abs(d)>1e-6?(t.y-i.y)/d:0;return Object.freeze({x:he(i.x+s*(l.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,l)=>{let d=l.y-i.y,s=Math.abs(d)>1e-6?(r-i.y)/d:0;return Object.freeze({x:he(i.x+s*(l.x-i.x)),y:r})})],Object.freeze(a)}function _A(e){let t=h0(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function Ff(e,t){let n=Ed(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=DA(a,t);return i.length>=3?Object.freeze(i.map(_l)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function Xg(e){let t=Math.max(0,he(e.extentWidth)),n=Math.max(0,he(e.extentHeight)),r=he(e.anchorX),o=he(e.anchorY),a=MA(e.crop),i=BA(e.effectExtentEmu),l=Tf(e.transform,t,n),d=Object.freeze({x:r,y:o,width:t,height:n}),s={sourceWidth:l.width,sourceHeight:l.height,offsetX:l.offsetX,offsetY:l.offsetY,crop:a,transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:r,anchorY:o},c=qg(s),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=vf({points:Bd(0,0,l.width,l.height),...s,crop:u,mapping:c}),m=AA(e.presetGeometry,l.width,l.height),g="none",p=m;p||(g=e.presetGeometry?"unsupported-preset":"none",p=Bd(0,0,l.width,l.height));let h=vf({points:p,...s,crop:u,mapping:c}),b=_A(h.length>=3?h:f),y=Al(b,i);return Object.freeze({contentBounds:d,paintBounds:y,hitBounds:y,transformedCorners:f,imageTransformCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:g,effectInsets:i})}function jl(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})}),r=e.projection.groupPicture;if(r){let o=Xg({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:{left:0,top:0,right:0,bottom:0},transform:n,presetGeometry:null}),a=e.projection.extentEmu,i=a.cx>0?e.extentWidth/a.cx:0,l=a.cy>0?e.extentHeight/a.cy:0,d=r.frameEmu,s=Xg({extentWidth:d.cx*i,extentHeight:d.cy*l,anchorX:e.anchorX+d.x*i,anchorY:e.anchorY+d.y*l,effectExtentEmu:{top:0,right:0,bottom:0,left:0},crop:r.crop,transform:n,presetGeometry:null});return Object.freeze({...o,imageTransformCorners:s.transformedCorners})}return Xg({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 jA(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=Tf(t,n,r),a=o.width,i=o.height,l=qg({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),d=he(t.rotationDegrees),s=Math.abs(d%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=l.scaleX,m=l.scaleY,g=a>0?a/n:1,p=i>0?i/r:1;if(!s&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(g-1)<1e-4&&Math.abs(p-1)<1e-4)return null;let b=d*Math.PI/180,y=Math.cos(b),x=Math.sin(b),S=o.offsetX+a/2,R=o.offsetY+i/2,P=f*y*c,w=-f*x*u,F=m*x*c,I=m*y*u,v=f*(S-y*c*(a/2)+x*u*(i/2)-l.bboxX),T=m*(R-x*c*(a/2)-y*u*(i/2)-l.bboxY);return Object.freeze({a:he(P*g),b:he(F*g),c:he(w*p),d:he(I*p),e:he(v),f:he(T)})}function P2(e){let t=jA(e);if(t)return `matrix(${Dl(t.a)}, ${Dl(t.b)}, ${Dl(t.c)}, ${Dl(t.d)}, ${Dl(t.e)}, ${Dl(t.f)})`}function Dl(e){return Number.isFinite(e)?String(e):"0"}function y0(e,t){let n=(r,o)=>{if(!(o>=chunk6KA3L3FR_cjs.la)){if(r.kind==="run"){for(let a of r.children)t(a);return}if(chunk6KA3L3FR_cjs.na(r)){for(let a of r.children)n(a,o+1);return}if(chunk6KA3L3FR_cjs.rc(r))for(let a of chunk6KA3L3FR_cjs.uc(r))n(a,o+1);}};for(let r of e.children)n(r,0);}function Of(e,t){let n=[],r=(o,a)=>{if(!(a>=chunk6KA3L3FR_cjs.la)){if(o.kind==="run"){for(let i of o.children)(i.kind==="drawing"||chunk6KA3L3FR_cjs.Zc(i)||chunk6KA3L3FR_cjs.Hc(i))&&t(i,n,o);return}if(chunk6KA3L3FR_cjs.na(o)){n.push(o);for(let i of o.children)r(i,a+1);n.pop();return}if(chunk6KA3L3FR_cjs.rc(o)){n.push(o);for(let i of chunk6KA3L3FR_cjs.uc(o))r(i,a+1);n.pop();}}};for(let o of e.children)r(o,0);}function Ld(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"?chunk6KA3L3FR_cjs.Xa(e):""}function Zg(e){return e.kind!=="textValue"&&e.localName==="noBreakHyphen"&&e.namespaceUri==="http://schemas.openxmlformats.org/wordprocessingml/2006/main"}function Ur(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;if(n.localName==="ligatures"){let a=MP(n);a!==void 0&&t.push({localName:"ligatures",attributes:{val:a}});continue}if(n.localName==="textOutline"){let a=FP(n);a&&t.push(a);continue}let r={};for(let a of n.attributes)r[a.localName]=a.value;let o=Object.keys(r).length>0;if(n.localName==="rPrChange"||n.localName==="pPrChange"){let a=o?{localName:n.localName,attributes:r,revisionNodeId:n.id}:{localName:n.localName,revisionNodeId:n.id};t.push(a);continue}t.push(o?{localName:n.localName,attributes:r}:{localName:n.localName});}return t}function Co(e,t,n){let r=Ur(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}var b0=new WeakMap;function HA(e){if(e.kind!=="run")return false;let t=b0.get(e);return t===void 0&&(t=je(Co(e,[])).hidden,b0.set(e,t)),t}function yt(e,t){if(e.kind!=="paragraph")return [];let n=[];return Of(e,(r,o,a)=>{let i=or;for(let l of o){let d=gn(l)?Rn(l):null;d&&(i=Nn(i,d));}if(r.kind==="drawing"){let l=t.projectionForAtom?.(r.id)??t.project(r);l?.kind==="anchored"&&n.push({atomId:r.id,projection:l,revisions:i});return}if(chunk6KA3L3FR_cjs.Zc(r)||chunk6KA3L3FR_cjs.Hc(r)){if(chunk6KA3L3FR_cjs.Hc(r)&&HA(a))return;let l=t.projectionForAtom?.(r.id)??null;l?.kind==="anchored"&&n.push({atomId:r.id,projection:l,revisions:i});}}),Object.freeze(n)}function $n(e){let t=new Map;if(e.kind!=="paragraph")return t;let n;return y0(e,r=>{if(r.kind!=="drawing"&&!chunk6KA3L3FR_cjs.Zc(r)&&!chunk6KA3L3FR_cjs.Hc(r))return;let o=(n??=chunk6KA3L3FR_cjs.cf(e)).spanOf(r);o&&t.set(r.id,o.start);}),t}var WA=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"]]),zA=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),VA=Object.freeze({left:0,top:0,right:0,bottom:0});function P0(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=WA.get(o)??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??e.groupPicture?.crop??VA,transform:t?.transform??zA,placeholderGraphicKind:t||e.legacyGraphic?null:n,vectorShape:e.vectorShape,...e.groupPicture?{groupPicture:Object.freeze({alternateContent:e.groupPicture.alternateContent})}:{}})}var Kr=12700;function Dn(e){return e/Kr}function $r(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*Kr*72)return null;let t=e/Kr;return Number.isFinite(t)?t:null}function Xr(e){let a=Dn(e.effectExtentEmu.left),i=Dn(e.effectExtentEmu.right),l=Dn(e.effectExtentEmu.top),d=Dn(e.effectExtentEmu.bottom),s=Dn(e.extentEmu.cx),c=Dn(e.extentEmu.cy);return Object.freeze({distL:0,distR:0,distT:0,distB:0,effectL:a,effectR:i,effectT:l,effectB:d,width:s,height:c,totalWidth:0+a+s+i+0,lineContribution:0+l+c+d+0})}function R0(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 If(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)),...e.imageTransformCorners?{imageTransformCorners:Object.freeze(e.imageTransformCorners.map(o))}:{},clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function lr(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:If(e.geometry,t,n)})}function Jg(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:If(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 Ed(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),i=e.width>0?o<=n:o<n,l=e.height>0?a<=r:a<r;return Object.freeze(i||l?{x:n,y:r,width:0,height:0}:{x:n,y:r,width:o-n,height:a-r})}function Cf(e,t){let n=Ed(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=If(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:Ff(i,t)})}var x0=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),S0=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function Yr(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function w0(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 k0(e,t){if(w0(e,t)){let d=t.cellBox;if(!d)return null;let{x:s,width:c}=d;switch(e){case "column":{let u=t.cellContentBox??d;return {left:u.x,right:u.x+u.width,center:u.x+u.width/2}}case "page":case "margin":case "leftMargin":return {left:s,right:s+c,center:s+c/2};case "rightMargin":return {left:s,right:s+c,center:s+c/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return Yr(t)?{left:s,right:s+c,center:s+c/2}:{left:s+c,right:s+c,center:s+c};case "outsideMargin":return Yr(t)?{left:s+c,right:s+c,center:s+c}:{left:s,right:s+c,center:s+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,l=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:l,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 Yr(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return Yr(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function T0(e,t){if(w0(e,t)){let c=t.cellBox;if(!c)return null;let{y:u,height:f}=c;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:u,bottom:u+f,center:u+f/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 Yr(t)?{top:u,bottom:u+f,center:u+f/2}:{top:u+f,bottom:u+f,center:u+f};case "outsideMargin":return Yr(t)?{top:u+f,bottom:u+f,center:u+f}:{top:u,bottom:u+f,center:u+f/2};default:return null}}let n=-t.contentInsetTop,r=t.contentBandHeight,o=n+t.pageHeight-t.marginBottom,a=r+t.contentInsetBottom,i=0,l=t.contentHeight,d=t.verticalMarginFrame?.top??i,s=d+(t.verticalMarginFrame?.height??t.contentHeight);switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:d,bottom:s,center:(d+s)/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 Yr(t)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return Yr(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function v0(e){return e===null?0:$r(e)}function GA(e,t,n){let r=Yr(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 KA(e,t,n){let r=Yr(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 $A(e,t,n,r,o){let a=k0(e,o);if(!a)return null;let i=v0(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 l=GA(t,r,o);if(l!==null)return l+i}return a.left+i}function UA(e,t,n,r,o){let a=T0(e,o);if(!a)return null;let i=v0(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 l=KA(t,r,o);if(l!==null)return l+i}return a.top+i}function Qg(e,t){let n=Xr(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 p=$r(r.simplePosition.xEmu),h=$r(r.simplePosition.yEmu);return Object.freeze(p===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:p-t.marginLeft,y:h-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,d=r.vertical.relativeFrom,s=k0(l,t),c=T0(d,t),u=s?.left??0,f=c?.top??0;if(!x0.has(l)||!S0.has(d))return Object.freeze({x:0,y:0,horizontalFrame:x0.has(l)?l:a,verticalFrame:S0.has(d)?d:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let m=$A(l,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),g=UA(d,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(m===null||g===null?{x:0,y:0,horizontalFrame:l,verticalFrame:d,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:m,y:g,horizontalFrame:l,verticalFrame:d,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function YA(e){let t=e.input.projection,n=t.anchor,r=Xr(t),o=jl({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Ed(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:e.layoutInCell,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?Ff(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunk6KA3L3FR_cjs.ad(t),...P0(t)})}function XA(e,t,n){let r=(a,i,l)=>et(a,Ve(i,l),n);for(let a of e.spans){if(t<a.range.start)break;if(t<a.range.end){if(n&&a.text!==void 0&&a.style!==void 0){let d=t-a.range.start;return a.box.x+r(a.text.slice(0,d),a.style,a.fontSlot)}let i=a.range.end-a.range.start;if(i<=0)return a.box.x;let l=t-a.range.start;return a.box.x+a.box.width*l/i}if(t===a.range.end)return n&&a.text!==void 0&&a.style!==void 0?a.box.x+r(a.text,a.style,a.fontSlot):a.box.x+a.box.width}let o;for(let a of e.spans)a.range.end<=t&&(o=a);return o?n&&o.text!==void 0&&o.style!==void 0?o.box.x+r(o.text,o.style,o.fontSlot):o.box.x+o.box.width:e.box.x}function qA(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function eh(e,t,n){if(!(Math.abs(n)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===t&&(!o.layoutInCell&&!["paragraph","line"].includes(o.verticalFrame)||(e[r]=Object.freeze({...o,y:o.y+n,geometry:If(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 vi(e){let t=yt(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=$n(e.paragraph),r=e.displayMode??Ye,o=[];for(let a of t){let i=a.projection;if(i.hidden)continue;let l=Eg(a.revisions,r,e.revisionAuthorFilter);if(l===null)continue;let d=n.get(a.atomId);if(d===void 0||e.fragmentRange&&(d<e.fragmentRange.start||d>=e.fragmentRange.end))continue;let s=e.lines.find(x=>d>=x.range.start&&d<x.range.end);if(!s)continue;let c=e.cellBox===null?i.anchor?.layoutInCell??true:Id(i,e.cellAnchorScope),f=i.position?.horizontal.relativeFrom==="character"?qA(s,d):d,m=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:s.box,anchorCharacterX:XA(s,f,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,cellContentBox:e.cellContentBox,layoutInCell:c}),g=Qg(i,m),p=i.wrap!=="inFront"&&i.wrap!=="behind"&&c&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0,h=i.position?.vertical.relativeFrom==="margin"?e.pageClip:Ti(e.frameBase),b=p?e.cellBox:h,y=YA({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:i,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:f,resolved:g,layoutInCell:c,clipRegion:b,revisions:l,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(i.drawingNodeId)}:{},...i.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(i)}:{}});o.push(y);}return Object.freeze(o)}function F0(e){let t=Xr(e.input.projection),n=e.slotX+t.distL+t.effectL,r=jl({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=Ed(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:Ff(r,o),resource:e.input.resource,accessibility:chunk6KA3L3FR_cjs.ad(e.input.projection),...P0(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{}})}function rh(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 nh(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 Nd(e,t,n){return Object.freeze({...e,x:e.x+t,y:e.y+n})}function th(e,t,n){return Object.freeze({x:e.x+t,y:e.y+n})}function Ad(e,t,n){if(Math.abs(t)<=1e-4&&Math.abs(n)<=1e-4)return e;let r=e.geometry;return Object.freeze({...e,x:e.x+t,y:e.y+n,paintBounds:Nd(e.paintBounds,t,n),hitBounds:Nd(e.hitBounds,t,n),geometry:Object.freeze({...r,contentBounds:Nd(r.contentBounds,t,n),paintBounds:Nd(r.paintBounds,t,n),hitBounds:Nd(r.hitBounds,t,n),transformedCorners:r.transformedCorners.map(o=>th(o,t,n)),...r.imageTransformCorners?{imageTransformCorners:r.imageTransformCorners.map(o=>th(o,t,n))}:{},clipPolygon:r.clipPolygon?r.clipPolygon.map(o=>th(o,t,n)):null})})}function oh(e,t){return Ad(e,0,t)}function ZA(e,t,n,r){let o=e.paintBounds,a=t.paintBounds.x+t.paintBounds.width-o.x,i=t.paintBounds.x-(o.x+o.width);for(let l of [a,i]){let d=o.x+l;if(d<-1e-3||d+o.width>r+.001)continue;let s=Ad(e,l,0);if(!n.some(c=>nh(c.paintBounds,s.paintBounds)))return s}return null}function O0(e,t){let n=t.maxAttempts??256,r=[...e].sort(rh),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let d=l,s=0;for(;s<n;){let f=o.find(p=>nh(p.paintBounds,d.paintBounds));if(!f)break;let m=t.contentWidth===void 0?null:ZA(d,f,o,t.contentWidth);if(m){d=m;break}let g=f.paintBounds.y+f.paintBounds.height-d.paintBounds.y+.001;d=oh(d,g),s+=1;}let c=o.some(f=>nh(f.paintBounds,d.paintBounds)),u=d!==l&&d.paintBounds.y+d.paintBounds.height>t.contentHeight+.001;if(c||u){d.x!==l.x&&(d=Ad(d,l.x-d.x,0)),a.push(d),i.push(d.drawingNodeId);continue}o.push(d);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}var M0=8;function I0(e,t,n,r){return e<r-C0&&t>n+C0}var C0=.01;function kr(e,t,n,r=0){if(t<=0||n.length===0)return 0;let o=0;if(r>.001){let a=-1/0;for(let i of n){if(i.input.mode!=="topAndBottom"||i.sourceKind)continue;let l=i.verticalBand.y,d=l+i.verticalBand.height;I0(e-r,e+t,l,d)&&(a=Math.max(a,d));}a>-1/0&&(o=Math.max(0,a+r-e));}for(let a=0;a<M0;a+=1){let i=e+o,l=i+t,d=i,s=false;for(let u of n){if(u.input.mode!=="topAndBottom")continue;let f=u.verticalBand.y,m=f+u.verticalBand.height;I0(i,l,f,m)&&(s=true,d=Math.max(d,m));}if(!s)break;let c=d-e;if(c<=o+.001)break;o=c;}return o}function ah(e,t,n,r){if(!n||e<=.001)return 0;let o=kr(t,n.box.height,r.inheritedZones,r.spaceAbove);return Math.max(0,e-o)}function B0(e,t){if(!t||t.align!==null||t.relativeFrom!=="paragraph"&&t.relativeFrom!=="line")return e;let n=$r(t.offsetEmu??0);return n===null?e:e+n}function ih(e,t,n,r){let o=kr(e,t,r.withOwn,n),a=kr(e,t,r.inherited,n);return Math.max(0,o-a)}var sh=8,ma=16,Mo=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function JA(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 l=t.columnLefts[i],d=l+t.columnWidths[i];if(r>=l-.001&&r<d+.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 l=i*(a+o),d=l+a;if(r>=l-.001&&r<d+.001)return i}return n-1}function lh(e){return e.behindDocument?"behind":"inFront"}function Mf(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function QA(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 e1(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function dh(e){let t=QA(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 f0({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"?e1(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Dd(e){if(e.mode==="topAndBottom"||e.mode==="square")return Md(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 t1(e){return e!=="paragraph"&&e!=="line"}function _d(e){if(!Mf(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=dh({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,...t1(e.drawing.verticalFrame)?{pageFramedBand:true}:{},sourceOrder:e.sourceOrder,paintLayer:lh(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:Dd(n),input:n}):null}function n1(e,t){let n=lh(e),r=lh(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:rh(e,t)}function L0(e){return Object.freeze([...e].sort(n1))}function pa(e,t,n,r,o=0){let a=[{start:n,end:r}],i=false;for(let l of t){let d=l.verticalBand,s=l.input.mode==="square"&&o>0;if(e>=d.y+d.height||(s?e+o<=d.y+.001:e<d.y))continue;let c=s?Math.max(e,d.y):e,u=u0(c,l.input);l.sourceKind==="table"&&!u.some(m=>m.start<=n&&m.end>=r)&&(i=true);let f=[];for(let m of a)for(let g of u){let p=Math.max(m.start,g.start),h=Math.min(m.end,g.end);h>p+1e-6&&f.push(Object.freeze({start:p,end:h}));}if(a=f,a.length===0)break}return i&&(a=a.filter(l=>l.end-l.start>18.001)),Object.freeze(a)}function N0(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 r1(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function ch(e,t){let n=r1(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 o1(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 uh(e,t){return Object.freeze({...e,layoutFallback:t})}function Hl(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({...o1(i,-t,-n),contentLeft:r?.left??i.contentLeft-t,contentRight:r?.right??i.contentRight-t})})}))}function A0(e,t,n){return Object.freeze(e.filter(r=>{if(r.sourceKind==="furniture")return true;let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function D0(e){let t=yt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=$n(e.paragraph),r=e.displayMode??Ye,o=Math.max(1,e.contentRight-e.contentLeft),a=[];for(let i of t){if(!$e(i.revisions,r,e.revisionAuthorFilter)||$g(i.projection,e)||!Mf(i.projection.wrap)||i.projection.wrap==="topAndBottom")continue;let l=n.get(i.atomId);if(l===void 0)continue;let d=e.anchorLineTopByModelStart.get(l);if(d===void 0)continue;let s=Object.freeze({x:e.contentLeft,y:d,width:o,height:14}),c=e.anchorCellBox!=null,u=Qg(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:s,anchorLineBox:s,anchorCharacterX:e.contentLeft,columnBox:s,cellBox:c?e.anchorCellBox:null,layoutInCell:c,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),f=e.paragraphStartY+d,m=Xr(i.projection),g=jl({projection:i.projection,anchorX:u.x,anchorY:f,extentWidth:m.width,extentHeight:m.height}),p=dh({projection:i.projection,geometry:g,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:u.x,anchorY:f});p&&a.push(Object.freeze({drawingNodeId:i.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:l,sourceOrder:e.sourceOrderOf?.(i.projection.drawingNodeId)??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:Dd(p),input:p}));}return a.sort((i,l)=>i.sourceOrder-l.sourceOrder),Object.freeze(a)}function Bf(e){let t=yt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=$n(e.paragraph),r=e.displayMode??Ye,o=[];for(let a of t){if(!$e(a.revisions,r,e.revisionAuthorFilter)||a.projection.wrap!=="topAndBottom"||e.cellAnchorScope?.rowsClearOutOfCellFloats&&$g(a.projection,e))continue;let i=n.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let d=B0(e.paragraphStartY+l,a.projection.position?.vertical??null),s=Xr(a.projection),c=jl({projection:a.projection,anchorX:e.contentLeft,anchorY:d,extentWidth:s.width,extentHeight:s.height}),u=dh({projection:a.projection,geometry:c,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:d});u&&o.push(Object.freeze({drawingNodeId:a.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:i,sourceOrder:e.sourceOrderOf?.(a.projection.drawingNodeId)??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:d,verticalBand:Dd(u),input:u}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function a1(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function i1(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 sr(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=pa(r,[t],t.input.contentLeft,t.input.contentRight);return [t.drawingNodeId,t.sourceKind??"",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),i1(t.input),a1(o)].join("|")}).join(`
2
- `)}function fh(e,t,n,r,o,a){let i=[];for(let l of e){let d=t.projectionForAtom?.(l.drawingNodeId);if(!d)continue;let s=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?JA(l,a):0,u=_d({drawing:l,projection:d,sourceOrder:s,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,d)=>l.sourceOrder-d.sourceOrder),Object.freeze(i)}function mh(e,t,n,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:n}),i=new Map;for(let l of e){let d=l.anchoredDrawings??[],s=fh(d,t,0,n,r,a);s.length>0&&i.set(l.index,s);}return i}var E0=new WeakMap;function s1(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function _0(e,t,n,r,o,a){let i=s1(a),l=E0.get(e);if(l&&l.drawingLayout===t&&l.drawingLayoutEpoch===n&&l.contentWidth===r&&l.drawingSourceOrder===o&&l.columnToken===i)return l.zones;let d=mh(e,t,r,o?s=>{let c=t.projectionForAtom?.(s)?.drawingNodeId??s;return o.get(c)}:void 0,a);return E0.set(e,{drawingLayout:t,drawingLayoutEpoch:n,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:d}),d}function Ef(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||sr(r)!==sr(o))return false}return true}function Lf(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${sr(n)}`).join(`
3
- `)}function Bo(e,t){let n=Math.max(e.height-e.baseline,t.height-t.baseline);e.baseline=Math.max(e.baseline,t.baseline),e.height=e.baseline+n;}function j0(e,t){let n=false;for(let r of e)if(!(r.start>=t)){if(r.text!==chunk6KA3L3FR_cjs.Ua)return false;n=true;}return n}function H0(e,t){return e.drawings.length>0||e.spans.length>0&&!t?true:e.spans.some(n=>n.text!==chunk6KA3L3FR_cjs.Ua)}function W0(e,t){if(!t||e.spans[0]?.text!==chunk6KA3L3FR_cjs.Ua)return;let n=e.spans.find(a=>a.text!==chunk6KA3L3FR_cjs.Ua),r=n?.range.start??1/0,o=n?.box.x;for(let a of e.drawings)a.start<r&&([r,o]=[a.start,a.advanceStart]);if(o!==void 0)for(let a=0;e.spans[a]?.text===chunk6KA3L3FR_cjs.Ua;a+=1){let i=e.spans[a];i.range.start<r&&(e.spans[a]={...i,box:{...i.box,x:o}});}}function Eo(e){return e.pageBreakAfter===true&&e.drawings.length===0&&e.spans.every(t=>t.text===""||t.text===chunk6KA3L3FR_cjs.Ua)}function ph(e){return e.length>0&&/^[ \t]+$/.test(e)}function Wl(e,t){let n=t?.baselineShiftPt?da(t):0;return n?{height:e.height,baseline:e.baseline+n}:e}function zl(e,t,n,r){ph(n)||Bo(e,Wl(t,r));}function qr(e,t){return e.noteSeparator||e.fieldAtom?.formControl?.kind==="checkbox"?void 0:t}var d1={props:true,style:true,fontSlot:true,glyphOffsetPt:true,borderBaselinePt:true,caretEdges:true,tabLeader:true,tabLeaderAdvancePt:true,link:true,wrapAdvanceBefore:true,revisions:true,changeSites:true,fieldAtom:true,projected:true,equation:true,noteNav:true,noteSeparator:true,lineEndWhitespace:true},c1=Object.keys(d1);function u1(e,t){for(let n of c1)if(e[n]!==t[n])return false;return true}function f1(e,t){if(e.glyphOffsetPt||t.glyphOffsetPt||e.caretEdges!==void 0||t.caretEdges!==void 0)return false;let n=wr(e.text),r=t.text.codePointAt(0);return n===void 0||r===void 0||!wi(n)||!wi(r)||e.range.paragraphId!==t.range.paragraphId||e.range.end!==t.range.start||Math.abs(e.box.x+e.box.width-t.box.x)>.01||e.box.height!==t.box.height?false:u1(e,t)}function z0(e){if(e.spans.length<2)return;let t=[];for(let n=0;n<e.spans.length;){let r=n;for(;r+1<e.spans.length&&f1(e.spans[r],e.spans[r+1]);)r+=1;let o=e.spans[n];if(r===n){t.push(o),n+=1;continue}let a=[],i=0;for(let l=n;l<=r;l+=1)a.push(e.spans[l].text),i+=e.spans[l].box.width;t.push({...o,range:{...o.range,end:e.spans[r].range.end},text:a.join(""),box:{...o.box,width:i}}),n=r+1;}if(t.length!==e.spans.length){e.spans.length=0;for(let n of t)e.spans.push(n);}}function gh(e,t,n){return Math.max(kr(t,e.height,n),e.exclusionSkipBefore??0)}function hh(e,t,n,r=0){return gh(t,e,n)+Math.max(0,t.height-t.trailingSpacing)+r}function V0(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.manualBreakAfter?{manualBreakAfter:true}:{},...e.spaceShrink?{spaceShrink:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{},...e.firstLineOffset?{firstLineOffset:e.firstLineOffset}:{},...e.wrapSegment?{wrapSegment:Object.freeze({...e.wrapSegment})}:{},...e.anchorRevisions?{anchorRevisions:Object.freeze(e.anchorRevisions)}:{},...e.changeSites?{changeSites:Object.freeze(e.changeSites)}:{}})}function jd(e,t){return t===0||e.length===0?e:e.map(n=>lr(n,t,0))}function G0(e){if(!(e.spans.length<2))for(let t=1;t<e.spans.length;t+=1){let n=e.spans[t-1],r=e.spans[t],o=r.box.x-(n.box.x+n.box.width);o<=.001||e.drawings.some(i=>i.start>=n.range.end&&i.start<r.range.start)||(e.spans[t]={...r,wrapAdvanceBefore:o});}}function yh(e){for(let t of e.drawings)e.height=Math.max(e.height,t.y+t.height+t.distB);}function m1(e,t){return e.val===t.val&&e.color===t.color&&e.widthPt===t.widthPt&&e.spacePt===t.spacePt&&e.shadow===t.shadow}function SU(e){if(!e.spans.some(o=>o.style.border))return [];let t=[],n,r=()=>{if(!n)return;let{box:o,edge:a}=n,i=si(a.val,a.widthPt),l=o.x-a.spacePt-i,d=o.y-a.spacePt-i,s=o.width+2*(a.spacePt+i),c=o.height+2*(a.spacePt+i);t.push({side:"top",edge:a,box:{x:l,y:d,width:s,height:i}},{side:"bottom",edge:a,box:{x:l,y:d+c-i,width:s,height:i}},{side:"left",edge:a,box:{x:l,y:d,width:i,height:c}},{side:"right",edge:a,box:{x:l+s-i,y:d,width:i,height:c}}),n=void 0;};for(let o of [...e.spans].sort((a,i)=>a.box.x-i.box.x)){let a=o.style.border;if(!a||o.style.hidden||!o.text||/^[\r\n\f]+$/.test(o.text)){r();continue}let i=o.borderBaselinePt===void 0?o.box.y+(e.leading??0):e.box.y+e.baseline-o.borderBaselinePt,l={...o.box,y:i-da(o.style)};if(n&&m1(n.edge,a)&&n.paragraphId===o.range.paragraphId&&(n.end===o.range.start||n.start===o.range.end)&&(n.end===o.range.start?o.wrapAdvanceBefore??0:n.wrapBefore)<=.001){let d=Math.max(n.box.y+n.box.height,l.y+l.height);n.box={x:n.box.x,y:Math.min(n.box.y,l.y),width:l.x+l.width-n.box.x,height:d-Math.min(n.box.y,l.y)},o.range.start<n.start&&(n.wrapBefore=o.wrapAdvanceBefore??0),n.start=Math.min(n.start,o.range.start),n.end=Math.max(n.end,o.range.end);}else r(),n={box:l,edge:a,paragraphId:o.range.paragraphId,start:o.range.start,end:o.range.end,wrapBefore:o.wrapAdvanceBefore??0};}return r(),t}function bh(e,t){for(let n=0;n<e.spans.length;n++){let r=e.spans[n],o=r.style.border;if(!o||r.style.hidden||!r.text||/^[\r\n\f]+$/.test(r.text))continue;let a=t.lineMetrics(Ve(r.style,r.fontSlot),qr(r,r.text));r.borderBaselinePt!==a.baseline&&(e.spans[n]={...r,borderBaselinePt:a.baseline});let i=o.spacePt+si(o.val,o.widthPt);Bo(e,{height:a.height+2*i,baseline:Wl(a,r.style).baseline+i});}}function K0(e,t,n,r=false){let o={height:0,baseline:0,spans:e};for(let a of e)r&&a.text===chunk6KA3L3FR_cjs.Ua||Bo(o,Wl(t.lineMetrics(Ve(a.style,a.fontSlot),qr(a,a.text)),a.style));return bh(o,t),o.height>0?o.height:n}function $0(e,t,n,r,o,a,i){if(!e?.inTableCell||t||n||r!==0)return false;let l=Ri(o,a,Number.POSITIVE_INFINITY);return l.alignment==="left"&&l.positionPt>i}function U0(e,t,n,r,o,a,i){let l=Ri(e,t,r);return i===null?l.alignment==="left"?Ri(e,t,n):l:Number.isFinite(i.positionPt)&&i.positionPt>o?i:{...Ri(e,o,a),...i.leader?{leader:i.leader}:{}}}function Y0(e,t){if(!e?.inTableCell)return;let n=false;for(let r of t)for(let o=0;o<r.text.length;o+=1){let a=r.text[o]===" ";if(a&&n)return;n=a;}return e}function Fi(e){return e.positionalTab||e.measureText!==void 0||e.inlineDrawing||e.anchoredAtom||e.equation||e.noteSeparator||e.fieldAtom?false:e.projected?e.noteNav?.direction==="to-note"&&e.end-e.start===1&&e.text.length>0&&!/\s/u.test(e.text):e.end-e.start===e.text.length}function X0(e,t){let n=new Map,r=(o,a)=>Fi(o)&&Fi(a)&&a.text.length>0&&Nl(o.text,a.text,false)==="continues";return (o,a)=>{let i=e[o],l=e[o+1];if(a!==i.text.length||!l||!r(i,l))return;let d=o+1;if(n.has(d))return n.get(d);let s=[],c;for(let u=d;u<e.length;u+=1){if(n.has(u)){c=n.get(u);break}let f=e[u],m=f.text.search(/\s/u),g=m<0?f.text:f.text.slice(0,m);if(!Fi(f)||!/^[\p{Script=Latin}\p{N}\p{P}]+$/u.test(g)||Io(g,true).length!==1){n.set(u,void 0);break}if(s.push({index:u,width:et(g,Ve(f.style,f.fontSlot),t)}),m>=0){c=f.text[m]===" "?0:void 0;break}let p=e[u+1];if(!p){c=0;break}if(Fi(p)&&p.text.startsWith(" ")){c=0;break}if(!r(f,p))break}for(let u=s.length-1;u>=0;u-=1){let f=s[u];c!==void 0&&(c+=f.width),n.set(f.index,c);}return n.get(d)}}function q0(e,t){if(t<=0||e.drawings.length>0)return false;for(let n=0;n<t;n+=1){let r=e.spans[n];if(r.text!==" "||r.projected||r.fieldAtom||r.noteNav)return false}return true}var p1=/[^ \t\n\r\f\v\uFFFC]/u;function Z0(e,t,n){let r=0;for(let o of e){if(o.style.verticalAlign==="baseline"||!p1.test(o.text))continue;let a={...o.style,verticalAlign:t};r=Math.max(r,n.lineMetrics(Ve(a,o.fontSlot),qr(o,o.text)).height);}return r}var Nf=32;function ga(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Lo(o)?o:null;}return n}function No(e,t,n){let r=e.styles.get(t);if(!r||r.type!==n)return [];let o=[],a=new Set,i=t,l=0;for(;i!==null&&l<Nf&&!(a.has(i)||!Lo(i));){a.add(i);let d=e.styles.get(i);if(!d)break;o.push(d),i=d.basedOn,l+=1;}return o.reverse()}var J0=new WeakMap;function Q0(e,t,n,r){if(n.length===0)return r(t);let o=r(sa([{properties:t,role:"carried",emit:true},{properties:n,role:"direct",emit:true}])),a=ga(n,"rStyle"),i=a?No(e,a,"character").flatMap(d=>d.runProperties):[];if(i.length===0)return o;let l=r(sa([{properties:t,role:"carried",emit:true},{properties:i,role:"xor",emit:true},{properties:n,role:"direct",emit:true}]));return J0.set(l,o),l}function Af(e){return J0.get(e)??e}var ha=e=>({...e.revisions===void 0?{}:{revisions:e.revisions},...e.changeSites===void 0?{}:{changeSites:e.changeSites},...e.fieldAtom===void 0?{}:{fieldAtom:e.fieldAtom},...e.noteSeparator?{noteSeparator:e.noteSeparator}:{}});function Df(e,t){if(!e.style.shaping&&!/^[\p{Script=Latin}\p{N}\p{P} ]*$/u.test(e.text)||e.lineEndWhitespace||!/^[^\s]* $/u.test(e.text)||e.equation)return 0;let n=Ve(e.style,e.fontSlot),r=Math.max(0,e.box.width-et(e.text.slice(0,-1),n,t)),o=r*.75;return r-o}function ew(e,t,n,r,o,a,i=e.length,l=o,d=false,s=0){let c=/^[^\s]+ $/u.test(t);if(!(c||d&&/^[^\s]+$/u.test(t))||e.some(S=>S.text.includes(" ")||S.wrapAdvanceBefore||S.equation))return false;let u=et(c?t.slice(0,-1):t,n,r),f=o+u+s-a,m=e.reduce((S,R)=>S+Df(R,r),0);if(f<=0||f>m+.001)return false;let g=m*4,p=e.slice(0,Math.max(0,Math.min(i,e.length))),h=p.length?Df(p[p.length-1],r)*4:0,b=p.reduce((S,R)=>S+Df(R,r)*4,0)-h;if(b<=0)return false;let y=1+Math.max(0,a-l+h)/b,x=g/(g-f);return y>1.5||1+(y-1)/1.7>=x}function tw(e){let t=0,n=0;for(let r=e.length-1;r>=0;r-=1){let o=e[r];if(!Fi(o)){t=r+1;break}let a=o.text.length;for(;a>0&&o.text[a-1]===" ";)a-=1;if(a>0){t=r,n=a;break}}return (r,o)=>r>t||r===t&&o>=n}function nw(e){return e!==void 0&&e.text[0]===" "&&!e.projected&&!e.positionalTab&&e.measureText===void 0&&e.end-e.start===e.text.length}function rw(e,t,n,r=e.length-1){let o=e.map((d,s)=>s<r?Df(d,n):0);if(t<=0||t>o.reduce((d,s)=>d+s,0)+.001)return e;let a=o.map(()=>0),i=t;for(let d=0;d<o.length&&i>.001;d++){let s=o.map((u,f)=>u-a[f]>.001?f:-1).filter(u=>u>=0);if(!s.length)break;let c=i/s.length;for(let u of s){let f=Math.min(c,o[u]-a[u]);a[u]+=f,i-=f;}}let l=0;return e.map((d,s)=>{let c=a[s],u=l||c?{...d,box:{...d.box,x:d.box.x-l,width:d.box.width-c},...c?{style:{...d.style,shaping:{script:"Latn",direction:"ltr",level:0,baseLevel:0,...d.style.shaping,wordSpacingPt:(d.style.shaping?.wordSpacingPt??0)-c}}}:{}}:d;return l+=c,u})}var ow=new WeakMap;function iw(e){let t=ow.get(e);if(t)return t;let n=new Map;for(let r of chunk6KA3L3FR_cjs.Le(e)){let o=chunk6KA3L3FR_cjs.Ke(r);if(o)for(let a of new Set([o.separateParagraphId,...r.resultParagraphIds,r.endParagraphId])){let i=chunk6KA3L3FR_cjs.Ha(e,a);if(i?.kind!=="paragraph")continue;let l=chunk6KA3L3FR_cjs.cf(i),d=r.beginParagraphId===r.endParagraphId?l.spanOf(r.beginNodeId):void 0,s=d?.start??(a===o.separateParagraphId?l.spanOf(o.separateNodeId)?.end:0),c=d?.end??(a===r.endParagraphId?l.spanOf(o.endNodeId)?.start:l.length);if(s===void 0||c===void 0||c<=s)continue;let u=n.get(a)??[];u.push({start:s,end:c}),n.set(a,u);}}return ow.set(e,n),n}function lw(e,t,n){return !e||!t?.length?e:(r,o)=>e(r,t.some(a=>n()>=a.start&&n()<a.end)?o.filter(a=>!(a.localName==="rStyle"&&a.attributes?.val==="Hyperlink")):o)}var aw=new WeakMap;function sw(e){if(e.size===0)return "";let t=aw.get(e);if(t!==void 0)return t;let n=[];for(let[o,a]of e)n.push(o,a.map(i=>`${i.start},${i.end}`).join(";"));let r=chunkT7RGKBCE_cjs.C(ie(n));return aw.set(e,r),r}function _f(e){return /^[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]+$/u.test(e)}function g1(e){let t="",n=[];for(let r of e){let o=n.every(Boolean);if(chunk6KA3L3FR_cjs.me(r,"begin")){if(n.length>=chunk6KA3L3FR_cjs.Ae)return null;o&&(t+="{"),n.push(true);}else if(chunk6KA3L3FR_cjs.me(r,"separate"))n.length&&(n[n.length-1]=false);else if(chunk6KA3L3FR_cjs.me(r,"end"))n.pop(),n.every(Boolean)&&(t+="}");else if(o&&chunk6KA3L3FR_cjs.pe(r))t+=`{${chunk6KA3L3FR_cjs.re(r)??""}}`;else if(o&&chunk6KA3L3FR_cjs.ne(r)&&r.kind!=="textValue")for(let a of r.children)a.kind==="textValue"&&(t+=a.value);if(t.length>chunk6KA3L3FR_cjs.ze)return null}return t||null}function xh(e,t,n,r,o,a,i,l=[]){if(e.kind!=="paragraph")return [...t];let d=chunk6KA3L3FR_cjs.Be(e);if(d.length===0&&l.length===0)return [...t];let s=[];if(!chunk6KA3L3FR_cjs.ye(e,s,{left:4096}))return [...t];let c=chunk6KA3L3FR_cjs.cf(e),u=new Map,f=new Map,m=(p,h,b)=>{if(p.kind==="textValue"||b>64)return;let y=gn(p)?Nn(h,Rn(p)):h;f.set(p.id,y),p.kind==="run"&&u.set(p.id,p);for(let x of p.children)m(x,y,b+1);};m(e,[],0);let g=[...t];for(let p of d){let h=new Set(p.removeNodeIds),b=s.filter(T=>h.has(T.node.id)&&$e(f.get(T.node.id)??[],a,i)).map(T=>T.node),y=g1(b),x=c.spanOf(p.node);if(!y||!x)continue;let S=p.addressing==="atomic"?x.start+1:x.end;if(p.addressing!=="atomic")for(let T of b)S=Math.max(S,c.spanOf(T)?.end??S);let R=t.find(T=>T.start>=x.start&&T.end<=S&&T.fieldAtom),P=f.get(p.node.id)??[];if(!$e(P,a,i))continue;let w=u.get(p.formatRunIds[0]??p.runId),F=R?.props??(w?Co(w,n,r):n),I=R?.style??je(F,o);if(I.hidden)continue;let v={text:y,props:F,style:I,start:x.start,end:S,projected:true,fieldAtom:{formField:false},...P.length?{revisions:P}:{}};g=g.filter(T=>!(T.start>=x.start&&T.end<=S&&(T.end>T.start||T.fieldAtom))),g.push(v);}for(let p of l)if(g=g.filter(h=>h.end<=p.start||h.start>=p.end),p.code){let h=p.sourceNodeId?f.get(p.sourceNodeId)??[]:[];if(!$e(h,a,i))continue;let b=s.find(R=>R.node.id===p.sourceNodeId),y=b&&u.get(b.runId),x=y?Co(y,n,r):n,S=je(x,o);if(S.hidden)continue;g.push({text:p.code,props:x,style:S,...h.length?{revisions:h}:{},start:p.start,end:p.end,projected:true,fieldAtom:{formField:false}});}return g.sort((p,h)=>p.start-h.start)}function Vl(e){if(e.nesting<1)return false;if(e.phase==="instruction")return true;let t=Math.min(e.nesting,chunk6KA3L3FR_cjs.Ae)-1;for(let n=0;n<t;n+=1)if(e.inner[n]?.separated!==true)return true;return false}function Hd(e){if(e.length>chunk6KA3L3FR_cjs.ze)return null;let t=/^\s*STYLEREF\s+(?:"([^"\\]+)"|([^\s"\\]+))((?:\s+\\l)?(?:\s+\\\*\s+MERGEFORMAT)?)\s*$/i.exec(e);if(!t)return null;let n=(t[1]??t[2]).trim().toLowerCase();if(!n||n.length>128||/[\u0000-\u001f\u007f]/.test(n))return null;let r=/\\l\b/i.test(t[3]);return {name:n,last:r,key:`${r?"last":"first"}:${n}`}}function jf(e,t){return e?t?.characterStyleValues?.get(e.key):void 0}function dw(e){let t=new Map,n=0,r="",o=i=>{let l=Hd(i);l&&t.size<128&&t.set(l.key,l);},a=(i,l)=>{if(!(++n>Bl||l>jt)&&i.kind!=="textValue"){if(i.localName==="fldSimple"&&o(i.attributes.find(d=>d.localName==="instr")?.value??""),i.localName==="fldChar"){let d=i.attributes.find(s=>s.localName==="fldCharType")?.value;d==="begin"?r="":(d==="separate"||d==="end")&&(o(r),r="");}if(i.localName==="instrText")for(let d of i.children)d.kind==="textValue"&&r.length<=chunk6KA3L3FR_cjs.ze&&(r=r.length+d.value.length<=chunk6KA3L3FR_cjs.ze?r+d.value:"x".repeat(chunk6KA3L3FR_cjs.ze+1));for(let d of i.children){if(n>=Bl)break;a(d,l+1);}}};return a(e,0),[...t.values()]}function cw(e){let t=0,n=(r,o)=>{if(++t>Bl||o>jt)return true;if(r.kind==="textValue")return false;if(o>0&&(r.localName==="fldSimple"||r.localName==="fldChar"))return true;for(let a of r.children)if(n(a,o+1))return true;return false};return n(e,0)}var h1=`
4
- \r`,y1=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function uw(e,t){let n=t;for(;n<e.length&&h1.includes(e[n]);)n+=1;return n}function fw(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&&!`
5
- \r"`.includes(e[n]);)n+=1;return n}function Hf(e){if(e.length===0||e.length>256)return null;let t=uw(e,0);if(e[t]==='"')return null;let n=fw(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=uw(e,n);if(o>=e.length)return null;let a=fw(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(y1,"").trimEnd();if(l===i)break;i=l;}if(i[0]==='"'){let l=i.indexOf('"',1);l===-1?i=i.slice(1):l===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var mw=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),b1=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function x1(e){let t=e;for(;;){let n=t.replace(b1,"").trimEnd();if(n===t)return t;t=n;}}function S1(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 Wf(e){let t=gi(e);if(t===null||t.length===0)return null;let n=x1(t),r=mw[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=S1(o);if(a===null)return null;let i=mw[a];return i?{property:i}:null}function zf(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}function Vf(e){if(e.length>chunk6KA3L3FR_cjs.ze)return null;let t=[],n=0;for(;n<e.length;){if(/\s/.test(e[n])){n++;continue}let l=e[n]==='"',d=l?++n:n;for(;n<e.length&&(l?e[n]!=='"':!/\s/.test(e[n]));)n++;if(l&&n===e.length||(t.push({value:e.slice(d,n),quoted:l}),l&&(n++,n<e.length&&!/\s/.test(e[n]))))return null}let[r,o]=t;if(!r||r.quoted||!o)return null;let a=r.value.toUpperCase();if(!["REF","PAGEREF","NOTEREF"].includes(a)||!o.value||o.value.length>kd||o.value.startsWith("\\"))return null;let i=false;for(let l=2;l<t.length;l++){let d=t[l];if(d.quoted)return null;let s=d.value.toLowerCase();if(s==="\\h")i=true;else {if(s==="\\p")continue;if(a==="REF"&&["\\r","\\w","\\n","\\t","\\f"].includes(s))continue;if(a==="NOTEREF"&&s==="\\f")continue;if(s==="\\*mergeformat")continue;if(s==="\\*"||s==="\\#"||a==="REF"&&s==="\\d"){let c=t[++l];if(!c||!c.quoted&&c.value.startsWith("\\"))return null}else return null}}return i?{target:null,anchor:o.value,tooltip:null}:null}var P1=chunk6KA3L3FR_cjs.ze,R1=2048,w1=256;function k1(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}var T1=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function Gf(e){if(e.length===0||e.length>P1)return null;let t=k1(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,l=null,d=false;for(let s=1;s<t.length;s+=1){let c=t[s];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!T1.has(u))continue;let f=t[s+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;s+=1;let m=f.value.length>0&&f.value.length<=w1;u==="\\l"?i||(i=true,m&&(a=f.value)):u==="\\o"&&(d||(d=true,m&&(l=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=R1&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}var Oi=1024;function Wd(e,t){for(let n of e.attributes)if(n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n.value}function Sh(e){return e.kind==="drawing"||e.localName==="drawing"||e.localName==="pict"}function gw(e,t){let n="",r=(o,a)=>{if(!(o.kind==="textValue"||n.length>=Oi)&&!(t.exhausted||a>jt)&&Ht(t)){if(o.kind==="text"){for(let i of o.children)i.kind==="textValue"&&(n+=i.value.slice(0,Oi-n.length));return}for(let i of o.children)r(i,a+1);}};for(let o of e.children)r(o,1);return n}var pw=new WeakMap;function hw(e,t){let n=pw.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l="",d=Oo(),s=u=>{let f=Oi-l.length;if(f<=0){a=true;return}l+=u.length>f?u.slice(0,f):u;},c=(u,f,m)=>{if(a||u.kind==="textValue"||m>=chunk6KA3L3FR_cjs.la||d.exhausted||f>jt)return;if(u.kind==="bookmarkStart"){!o&&Wd(u,"name")===t&&(o=true,i=Wd(u,"id"));return}if(u.kind==="bookmarkEnd"){o&&i!==void 0&&Wd(u,"id")===i&&(a=true);return}if(u.kind==="run"){if(!o)return;for(let p of u.children){if(a||!Ht(d))return;if(p.kind==="text")for(let h of p.children)h.kind==="textValue"&&s(h.value);else p.kind==="tab"&&s(" ");}return}if(Sh(u)||chunk6KA3L3FR_cjs.pe(u)||!Ht(d))return;let g=chunk6KA3L3FR_cjs.ma(u,m);for(let p of u.children)c(p,f+1,g);};for(let u of e.children){if(a||!Ht(d))break;c(u,1,0);}return n||(n=new Map,pw.set(e,n)),n.set(t,l),l}var yw=new WeakMap;function Kf(e){let t=yw.get(e);if(t)return t;let n=new Map;for(let r of chunk6KA3L3FR_cjs.Le(e)){if(r.beginParagraphId===r.endParagraphId)continue;let o=chunk6KA3L3FR_cjs.Ke(r);if(o)for(let a of new Set([r.beginParagraphId,...r.resultParagraphIds,r.endParagraphId])){let i=chunk6KA3L3FR_cjs.Ha(e,a);if(i?.kind!=="paragraph")continue;let l=chunk6KA3L3FR_cjs.cf(i),d=a===r.beginParagraphId,s=d?l.spanOf(r.beginNodeId)?.start??0:0,c=a===r.endParagraphId?l.spanOf(o.endNodeId)?.end??l.length:l.length,u={start:s,end:c,...d?{code:`{ ${r.instruction.raw} }`,sourceNodeId:r.beginNodeId}:{},suppressParagraph:!d&&s===0&&c===l.length},f=n.get(a);f?f.push(u):n.set(a,[u]);}}return yw.set(e,n),n}var Gl=new WeakMap;function xw(e,t){Gl.set(e,t);}function _n(e){return Gl.get(e)}function Ph(e,t){let n=Gl.get(e);if(!n)return t?.get(e.id);let r=[];for(let o of n)for(let a of t?.get(o.paragraph.id)??[])r.push({...a,start:a.start+o.base,end:a.end+o.base});return r.length?r:void 0}function zd(e,t){if(!t)return "";let n=Gl.get(e);if(!n)return t(e);let r=n.map(o=>t(o.paragraph));return r.some(Boolean)?ie(r):""}var bw=new WeakMap;function Sw(e){let t=bw.get(e);if(t)return t;if(!e.some(r=>Gl.has(r)))return e;let n=[];for(let r of e){let o=Gl.get(r);if(o)for(let a of o)n.push(a.paragraph);else n.push(r);}return bw.set(e,n),n}var v1=Object.freeze([Object.freeze({localName:"spacing",attributes:Object.freeze({after:"160",line:"278",lineRule:"auto"})})]);function Pw(e){if(e.namespaceUri!==chunk6KA3L3FR_cjs.da)return [];let t=e.children.find(n=>n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName==="docDefaults");return !t||t.kind==="textValue"||t.children.some(n=>n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName==="pPrDefault")?[]:v1}var Rw=Object.freeze([Object.freeze({localName:"kern",attributes:Object.freeze({val:"2"})})]),F1=Object.freeze([...Rw,Object.freeze({localName:"ligatures",attributes:Object.freeze({val:"standardContextual"})})]);function Rh(e,t=false){let n=t?F1:Rw;if(!e)return n;if(e.namespaceUri!==chunk6KA3L3FR_cjs.da)return [];let r=e.children.find(o=>o.kind!=="textValue"&&o.namespaceUri===chunk6KA3L3FR_cjs.da&&o.localName==="docDefaults");return r&&r.kind!=="textValue"&&r.children.some(o=>o.kind!=="textValue"&&o.namespaceUri===chunk6KA3L3FR_cjs.da&&o.localName==="rPrDefault")?[]:n}var kw=new WeakMap,ww=new WeakMap;function $f(e,t){return t&&kw.set(e,t),e}function Vd(e){return e?kw.get(e):void 0}function Tw(e){let t=Vd(e);if(!t)return "";let n=ww.get(t);return n||(n=chunkT7RGKBCE_cjs.B(chunk6KA3L3FR_cjs.ra(t)),ww.set(t,n)),n}function vw(e){return e!==void 0&&Tr(e)&&e.children.some(t=>Tr(t)&&t.localName==="numPr")}function wh(e,t){if(vw(t))return e.length;for(let n=e.length-1;n>=0;n-=1)if(vw(e[n].paragraphPropertiesNode))return n;return 0}function Fw(e,t,n){let r=t?No(e,t,"paragraph"):[],o=wh(r,n);return {below:[...e.docDefaultsParagraph,...r.slice(0,o).flatMap(a=>a.paragraphProperties)],above:[...r.slice(o).flatMap(a=>a.paragraphProperties),...ct(n)]}}function Ow(e){if(!e||e.namespaceUri!==chunk6KA3L3FR_cjs.da||e.localName!=="settings")return false;let t=Rl(e);if(t!==void 0&&![11,12,14].includes(t))return false;let n=false;for(let r of e.children)if(!(r.kind==="textValue"||r.namespaceUri!==chunk6KA3L3FR_cjs.da||r.localName!=="compat"))for(let o of r.children){if(o.kind!=="textValue"&&o.namespaceUri===chunk6KA3L3FR_cjs.da&&o.localName==="compatSetting"&&t===void 0){let i=l=>o.attributes.find(d=>d.namespaceUri===chunk6KA3L3FR_cjs.da&&d.localName===l)?.value;if(i("name")==="compatibilityMode"&&i("uri")==="http://schemas.microsoft.com/office/word")return false}if(o.kind==="textValue"||o.namespaceUri!==chunk6KA3L3FR_cjs.da||o.localName!=="noExtraLineSpacing")continue;let a=o.attributes.find(i=>i.namespaceUri===chunk6KA3L3FR_cjs.da&&i.localName==="val")?.value;n=a===void 0||a==="1"||a==="true"||a==="on";}return n}function Iw(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}function Cw(e){if(!e||e.namespaceUri!==chunk6KA3L3FR_cjs.da)return {};if(e.localName!=="settings")return {};let t=Iw(e,"compat"),n=t&&Iw(t,"doNotUseHTMLParagraphAutoSpacing");if(!n)return {};let r=n.attributes.find(a=>a.namespaceUri===chunk6KA3L3FR_cjs.da&&a.localName==="val")?.value;return r===void 0||r==="1"||r==="true"||r==="on"?{fixedParagraphSpacing:true}:{}}function Uf(e,t){return t?.fixedParagraphSpacing?0:e}var kh=Object.freeze({kinsoku:true,overflowPunctuation:true,characterWrap:false}),Yf=e=>!["0","false","off"].includes(e??"");function Mw(e){let t=false,n="doNotCompress",r=Object.create(null),o=Object.create(null);for(let a of e?.children??[]){if(!("localName"in a)||a.namespaceUri!=="http://schemas.openxmlformats.org/wordprocessingml/2006/main")continue;let i=a.attributes.find(s=>s.localName==="val"&&s.namespaceUri===a.namespaceUri)?.value;if(a.localName==="strictFirstAndLastChars"&&(t=Yf(i)),a.localName==="characterSpacingControl"&&(i==="doNotCompress"||i==="compressPunctuation"||i==="compressPunctuationAndJapaneseKana")&&(n=i),a.localName!=="noLineBreaksBefore"&&a.localName!=="noLineBreaksAfter")continue;let l=a.attributes.find(s=>s.localName==="lang"&&s.namespaceUri===a.namespaceUri)?.value.toLowerCase();if(!l||!/^[a-z]{2,3}(?:-[a-z0-9]{2,8}){0,3}$/.test(l))continue;let d=a.localName==="noLineBreaksBefore"?r:o;(Object.keys(d).length<64||Object.hasOwn(d,l))&&(d[l]=(i??"").slice(0,4096));}return Object.freeze({strict:t,compression:n,before:Object.freeze(r),after:Object.freeze(o)})}function Kl(e,t){let{kinsoku:n,overflowPunctuation:r,characterWrap:o}=kh;for(let a of e)a.localName==="kinsoku"&&(n=Yf(a.attributes?.val)),a.localName==="overflowPunct"&&(r=Yf(a.attributes?.val)),a.localName==="wordWrap"&&(o=!Yf(a.attributes?.val));return {settings:t,kinsoku:n,overflowPunctuation:r,characterWrap:o}}function Gd(e){let t;for(let n of e){if(n.localName!=="lang")continue;let r=n.attributes?.eastAsia??n.attributes?.val;r&&/^(ja|zh|ko)(-|$)/i.test(r)&&(t=r.toLowerCase());}return t}var O1="!%),.:;?]}\xA2\xB0\u2019\u201D\u2030\u2032\u2033\u2103\u3001\u3002\u3005\u3009\u300B\u300D\u300F\u3011\u3015\u309B\u309C\u309D\u309E\u30FB\u30FD\u30FE\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF61\uFF63\uFF64\uFF65\uFF9E\uFF9F\uFFE0",I1="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFF62\uFFE1\uFFE5",C1="!%),.:;>?]}\xA2\xA8\xB0\xB7\u02C7\u02C9\u2015\u2016\u2019\u201D\u2026\u2030\u2032\u2033\u203A\u2103\u2236\u3001\u3002\u3003\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u301E\uFE36\uFE3A\uFE3E\uFE40\uFE44\uFE5A\uFE5C\uFE5E\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF40\uFF5C\uFF5D\uFF5E\uFFE0",M1="$([{\xA3\xA5\xB7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFE5D\uFF04\uFF08\uFF0E\uFF3B\uFF5B\uFFE1\uFFE5",B1="! ),.:;?]}\xA2\xB7\u2013\u2014\u2019\u201D\u2022\u2025\u2026\u2027\u2032\u2574\u3001\u3002\u3009\u300B\u300D\u300F\u3011\u3015\u301E\uFE30\uFE31\uFE33\uFE34\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE44\uFE4F\uFE50\uFE51\uFE52\uFE54\uFE55\uFE56\uFE57\uFE5A\uFE5C\uFE5E\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5C\uFF5D\uFF64".replace(" ",""),E1="([{\xA3\xA5\u2018\u201C\u2035\u3008\u300A\u300C\u300E\u3010\u3014\u301D\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE59\uFE5B\uFE5D\uFF08\uFF5B",L1="!%),.:;?]}\xA2\xB0\u2019\u201D\u2032\u2033\u2103\u3009\u300B\u300D\u300F\u3011\u3015\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFFE0",N1="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5\uFFE6",A1="\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u30FC\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70";function Bw(e,t){let n=e.split("-")[0],r=/^zh-(tw|hk|mo|hant)(-|$)/.test(e),o=n==="zh"?r?B1:C1:n==="ko"?L1:O1,a=n==="zh"?r?E1:M1:n==="ko"?N1:I1;return n==="ja"&&t?.strict&&(o+=A1),o=t?.before[e]??o,a=t?.after[e]??a,{before:o,after:a}}function Ew(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}function Lw(e){if(!e||e.namespaceUri!==chunk6KA3L3FR_cjs.da)return {};if(e.localName!=="settings")return {};let t=Ew(e,"compat"),n=t&&Ew(t,"doNotUseIndentAsNumberingTabStop");if(!n)return {};let r=n.attributes.find(a=>a.namespaceUri===chunk6KA3L3FR_cjs.da&&a.localName==="val")?.value;return r===void 0||r==="1"||r==="true"||r==="on"?{ignoreIndentAsNumberingTabStop:true}:{}}function Nw(e,t){return !t?.ignoreIndentAsNumberingTabStop||e.ignoreIndentAsNumberingTabStop?e:{...e,ignoreIndentAsNumberingTabStop:true}}function Aw(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}function Dw(e){if(e?.namespaceUri!==chunk6KA3L3FR_cjs.da||e.localName!=="settings")return {};let t=Aw(e,"compat"),n=t&&Aw(t,"doNotBreakWrappedTables");if(!n)return {};let r=n.attributes.find(o=>o.namespaceUri===chunk6KA3L3FR_cjs.da&&o.localName==="val")?.value;return r===void 0||r==="1"||r==="true"||r==="on"?{doNotBreakWrappedTables:true}:{}}var Th="http://schemas.openxmlformats.org/wordprocessingml/2006/main";function _w(e){let t=false;for(let n of e?.children??[])if(!(n.kind==="textValue"||n.namespaceUri!==Th||n.localName!=="compat"))for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==Th||r.localName!=="compatSetting")continue;let o=a=>r.attributes.find(i=>i.namespaceUri===Th&&i.localName===a)?.value;o("name")==="overrideTableStyleFontSizeAndJustification"&&o("uri")==="http://schemas.microsoft.com/office/word"&&(t=["1","true","on"].includes(o("val")??""));}return t}function jw(e,t){let n=new Map;for(let o of e)n.set(o.localName,o.attributes?.val);let r=new Set;for(let o of ["sz","szCs"]){let a=Number(n.get(o));(a===22||a===24)&&t.some(i=>i.localName===o&&Number(i.attributes?.val)>0)&&r.add(o);}return n.get("jc")==="left"&&r.add("jc"),r.size?e.filter(o=>!r.has(o.localName)):e}var D1=4096;function Kd(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function Xf(e){return e?chunkT7RGKBCE_cjs.B(chunk6KA3L3FR_cjs.ra(e)):""}function _1(e){return [...e.conditionalTableFormats].map(([t,n])=>[t,Xf(n)])}var qf=Object.freeze({tablePropertyNodes:Object.freeze([]),tableRowPropertyNodes:Object.freeze([]),tableCellPropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function Kw(e,t){let n=t&&Lo(t)?t:null,r=n?Ww(e,n):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===n?qf:Ww(e,o)??qf}var Hw=new WeakMap;function Ww(e,t){let n=Hw.get(e);n||(n=new Map,Hw.set(e,n));let r=n.get(t);if(r)return r;let o=j1(e,t);return o?(n.set(t,o),o):null}function j1(e,t){let n=No(e,t,"table");if(n.length===0)return null;let r=[],o=[],a=[],i=[],l=[],d=[],s=new Map,c=new Map;for(let u of n){u.tablePropertiesNode&&r.push(u.tablePropertiesNode),u.tableRowPropertiesNode&&o.push(u.tableRowPropertiesNode),u.tableCellPropertiesNode&&a.push(u.tableCellPropertiesNode),u.paragraphPropertiesNode&&i.push(u.paragraphPropertiesNode),l.push(...u.paragraphProperties),d.push(...u.runProperties);for(let[f,m]of u.conditionalTableFormats)s.set(f,m),c.set(f,Object.freeze([...c.get(f)??[],m]));}return Object.freeze({tablePropertyNodes:Object.freeze(r),tableRowPropertyNodes:Object.freeze(o),tableCellPropertyNodes:Object.freeze(a),paragraphPropertyNodes:Object.freeze(i),paragraphProperties:Object.freeze(l),runProperties:Object.freeze(d),conditional:zw(s),conditionalStyleLayers:zw(c)})}function zw(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 $w(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var vh=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function Uw(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 l=Ao(i);l&&(n.push(l),r.push(...Ii(ct(l))));let d=Ul(i);d&&o.push(...Ii(ct(d)));}return n.length===0&&r.length===0&&o.length===0?vh:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function H1(e){return {major:e.major??null,minor:e.minor??null,majorEastAsia:e.majorEastAsia??null,minorEastAsia:e.minorEastAsia??null,majorBidi:e.majorBidi??null,minorBidi:e.minorBidi??null,majorSupplemental:e.majorSupplemental??null,minorSupplemental:e.minorSupplemental??null}}function Yw(e,t=AP,n=null){let r=Mw(n),o=EP(n),a=o?{}:{disableOptionalLigatures:true},i=_w(n),l={...Ow(n)?{preserveExactLineBaseline:true}:{},...gP(n)?{adjustLineHeightInTable:true}:{},...Lw(n),...Dw(n),...Cw(n)},d=new Map,s=H1(t);if(!e){let b=Rh(null,o);return {cacheToken:chunkT7RGKBCE_cjs.B({empty:true,dR:Kd(b),...a,theme:s,typography:r,strictTableHierarchy:i,...l}),...l,...a,strictTableStyleHierarchy:i,typography:r,docDefaultsRun:b,docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:t,styles:d}}let c=Vw(e),u={...c,run:[...Rh(e,o),...c.run],paragraph:[...Pw(e),...c.paragraph]},f=null,m=null,g=null,p=0;for(let b of e.children){if(!Tr(b)||b.localName!=="style")continue;if(p>=D1)break;p+=1;let y=Gw(b);if(!y)continue;let{isDefault:x,...S}=y;d.set(S.styleId,S),S.type==="paragraph"?x?f=S.styleId:f===S.styleId&&(f=null):S.type==="character"?x?m=S.styleId:m===S.styleId&&(m=null):S.type==="table"&&(x?g=S.styleId:g===S.styleId&&(g=null));}return {cacheToken:chunkT7RGKBCE_cjs.B({...l,...a,strictTableHierarchy:i,typography:r,dR:Kd(u.run),dP:Kd(u.paragraph),defP:f,defC:m,defT:g,theme:s,styles:[...d.values()].map(b=>({id:b.styleId,type:b.type,basedOn:b.basedOn,outlineLevel:b.outlineLevel,p:Kd(b.paragraphProperties),r:Kd(b.runProperties),tPr:Xf(b.tablePropertiesNode),trPr:Xf(b.tableRowPropertiesNode),tcPr:Xf(b.tableCellPropertiesNode),tblStylePr:_1(b)}))}),...l,...a,strictTableStyleHierarchy:i,typography:r,docDefaultsRun:u.run,docDefaultsParagraph:u.paragraph,docDefaultsParagraphNode:u.paragraphNode,defaultParagraphStyleId:f,defaultCharacterStyleId:m,defaultTableStyleId:g,themeFonts:t,styles:d}}function jn(e,t,n){return Xw(e,t,n)}function Xw(e,t,n,r){let o=ct(t),a=ga(o,"pStyle")??e.defaultParagraphStyleId,i=a?No(e,a,"paragraph"):[],l=r?wh(i,t):i.length,d=(b,y)=>n&&!e.strictTableStyleHierarchy&&b.styleId===e.defaultParagraphStyleId?jw(y,n.runProperties):y,s=i.map(b=>d(b,b.paragraphProperties)),c=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...s.slice(0,l).flat(),...ct(r),...s.slice(l).flat()],u=[...c,...o],f=[];e.docDefaultsParagraphNode&&f.push(e.docDefaultsParagraphNode),n&&f.push(...n.paragraphPropertyNodes),i.forEach((b,y)=>{y===l&&r&&f.push(r),b.paragraphPropertiesNode&&f.push(b.paragraphPropertiesNode);}),l===i.length&&r&&f.push(r),t&&f.push(t);let m=Ul(t&&Tr(t)?t:void 0),g=ct(m),p=sa([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:n?.runProperties??[],role:"xor",emit:true},{properties:i.flatMap(b=>d(b,b.runProperties)),role:"xor",emit:true}]),h=Q0(e,p,g,b=>Hu(b,e.disableOptionalLigatures));return {paragraphProperties:u,inheritedParagraphProperties:c,paragraphPropertyNodes:f,runProperties:Hu(p,e.disableOptionalLigatures),markRunProperties:h,styleId:a??null}}function W1(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(Tr(o)&&o.localName==="pBdr"){r=true;break}r&&(t=ju(n).bottom);}return t}function dr(e,t,n){let r=i=>Hu(i,n?.disableOptionalLigatures),o=[];if(n){let l=ga(t,"rStyle")??n.defaultCharacterStyleId;l&&(o=No(n,l,"character").flatMap(d=>d.runProperties));}if(e.length===0&&o.length===0)return r(t);if(o.length===0&&t.length===0)return r(e);let a=o.length===0?e:sa([...e.length>0?[{properties:n?.docDefaultsRun??[],role:"defaults",emit:false}]:[],{properties:e,role:"carried",emit:true},{properties:o,role:"xor",emit:true}]);return t.length===0?r(a):r([...a,...t])}function wn(e,t,n,r,o,a=false,i){let l=Ao(e),d=Vd(r),s=n?Xw(n,l,o,d):null,c=s?.paragraphPropertyNodes??[d,l].filter(v=>v!==void 0),u=s?[...s.paragraphProperties]:[...ct(d),...ct(l)],f=ct(Ul(l&&Tr(l)?l:void 0)),m=s?s.runProperties:[],g=s?s.markRunProperties:f,p=Yl(u),h=0,b=0;if(r)h=r.indent.hanging,b=r.indent.firstLine;else for(let v of u){if(v.localName!=="ind")continue;let T=$l(v.attributes?.hanging),k=$l(v.attributes?.firstLine);(v.attributes?.hanging!==void 0||v.attributes?.firstLine!==void 0)&&(h=T!==null?Math.max(0,chunk6KA3L3FR_cjs.mf(T)):0,b=k!==null?chunk6KA3L3FR_cjs.mf(k):0);}let y=r?{left:r.indent.left,right:r.indent.right,hanging:h,firstLine:b}:{left:p.left,right:p.right,hanging:h,firstLine:b},S=_n(e)?.at(-1)?.paragraph,R=S?wn(S,t,n,void 0,o,a,i):void 0,P=Nw(XR(c),n),w=s?s.styleId:ga(u,"pStyle")??null,F=null,I=false;for(let v of u){if(v.localName!=="outlineLvl")continue;I=true;let T=v.attributes?.val;F=T!==void 0&&/^[0-8]$/.test(T)?Number(T):null;}if(!I&&n&&w){let v=No(n,w,"paragraph");for(let T=v.length-1;T>=0;T-=1){let k=v[T].outlineLevel;if(k!==null){F=k;break}}}if(!I&&F===null&&w){let v=/^heading\s*([1-9])$/i.exec(w.trim());v&&(F=Number(v[1])-1);}return {props:u,indent:y,available:Math.max(1,t-y.left-y.right),alignment:$d(u),spacing:{...ia(u,{inList:r!==void 0,lineUnitPt:i,fixedAutoSpacing:n?.fixedParagraphSpacing===true}),...R?{after:R.spacing.after}:{}},lineSpacing:hP({...PP(u),...n?.preserveExactLineBaseline?{preserveExactBaseline:true}:{}},u,i,a,n?.adjustLineHeightInTable===true),contextualSpacing:RP(u),styleId:w,outlineLevel:F,bottomBorder:W1(c),borders:kP(c),shading:fP(u),inheritedRunProperties:m,markRunProperties:R?.markRunProperties??g,tabStops:P,tabStopsCacheToken:xf(P),...r?{listItem:r}:{}}}var qw=new WeakMap;function Zw(e,t){let n=qw.get(e);if(n&&n.styles===t)return n.visible;let r=e.children.find(s=>s.kind==="paragraphProperties"),o=t?jn(t,r).runProperties:[],a=0,i=false,l=(s,c)=>{if(++a>1e4||c>64)return i=true,false;if(s.kind==="textValue")return false;if(s.kind==="run"){let u=Ur(s.children.find(f=>f.kind==="runProperties"));return je(dr(o,u,t)).hidden?false:s.children.some(f=>f.namespaceUri===chunk6KA3L3FR_cjs.da&&f.localName==="t"&&f.children.some(m=>m.kind==="textValue"&&/\S/u.test(m.value)))}if(s!==e&&!["hyperlink","fldSimple","smartTag","customXml"].includes(s.localName))return false;for(let u of s.children)if(l(u,c+1))return true;return false},d=l(e,0)&&!i;return qw.set(e,{styles:t,visible:d}),d}function ya(e,t,n){if(!e.has(t)&&e.size>=8){let r=e.keys().next();r.done||e.delete(r.value);}e.set(t,n);}var Ud=new WeakMap,Jw=new WeakMap;function Zf(e){return e&&e.kind!=="textValue"?Jw.get(e)??null:null}function Ci(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t}function Xl(e,t,n){if(t==="all-markup"||e.kind==="textValue")return [];let r=[...Sd(ca(e),t,n)],o=e.children.find(d=>d.kind==="paragraphProperties"),a=Zf(o);a&&r.push(a);let i=o&&o.kind!=="textValue"?o.children.find(d=>d.kind==="runProperties"):void 0,l=Zf(i);return l&&r.push(l),r}function Fh(e,t,n,r=0){if(t==="all-markup"&&!n||r>=chunk6KA3L3FR_cjs.W)return e;let o=`${t}|${n?.cacheKey??""}`,a=Ud.get(e)?.get(o);if(a)return a;let i=e.children,l=null,d=Ci(e,"pPr")?"pPrChange":Ci(e,"rPr")?"rPrChange":null,s=d?i.find(g=>Ci(g,d)):void 0;if(s&&s.kind!=="textValue"){let g=x=>s.attributes.find(S=>S.namespaceUri===chunk6KA3L3FR_cjs.da&&S.localName===x)?.value??"",p=g("date"),h={kind:"format",nodeId:s.id,id:g("id"),author:g("author"),...p===""?{}:{date:p}},b=n?xd(n,h,t):t,y=b==="original"?chunk6KA3L3FR_cjs.oi(s):null;b==="proposed"&&(i=i.filter(x=>x!==s)),l=b==="proposed"&&(!n||To(n,h))?h:null,y!==null&&(d==="pPrChange"?i=[...y.filter(x=>!Ci(x,"rPr")&&!Ci(x,"sectPr")),...i.filter(x=>Ci(x,"rPr")||Ci(x,"sectPr"))]:i=[...i.filter(chunk6KA3L3FR_cjs.Oe),...y.filter(x=>!chunk6KA3L3FR_cjs.Oe(x))]);}let c=i!==e.children,u=i.map(g=>{if(g.kind==="textValue"||g.localName.endsWith("PrChange"))return g;let p=Fh(g,t,n,r+1);return c||=p!==g,p}),f=c?{...e,children:u}:e;l&&Jw.set(f,l);let m=Ud.get(e);if(m||Ud.set(e,m=new Map),ya(m,o,f),f!==e){let g=Ud.get(f);g||Ud.set(f,g=new Map),ya(g,o,f);}return f}function ql(e,t,n){let r=[],o=0,a=e.members.length-1;return e.members.forEach((i,l)=>{let d=chunk6KA3L3FR_cjs.cf(i).length,s=l<a&&t?Xl(i,t,n):[];r.push({paragraphId:i.id,base:o,length:d,...s.length>0?{markChangeSites:s}:{}}),o+=d;}),{members:r,total:o}}function Oh(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 Qw(e,t){let n=Oh(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 z1(e,t){return {...e,range:Qw(e.range,t)}}function Jf(e,t){let n=t.members.filter(r=>r.markChangeSites!==void 0).map(r=>({offset:r.base+r.length,sites:r.markChangeSites}));return e.map(r=>{let o=n.filter(g=>g.offset>=r.range.start&&(g.offset<r.range.end||g.offset===r.range.end&&g.offset===t.total)).flatMap(g=>g.sites),a=o.length>0?[...r.changeSites??[],...o]:r.changeSites,i=r.spans.map(g=>z1(g,t)),l=i[0],d=r.drawings?.map(g=>{let p=Oh(t,g.start);return p?{...g,paragraphId:p.paragraphId,start:g.start-p.base}:g}),s=l?i.filter(g=>g.range.paragraphId===l.range.paragraphId):[],c=l?(d??[]).filter(g=>g.paragraphId===l.range.paragraphId):[],u=l?{paragraphId:l.range.paragraphId,start:Math.min(l.range.start,...c.map(g=>g.start)),end:Math.max(s[s.length-1].range.end,...c.map(g=>g.start+1))}:Qw(r.range,t),f=d,m=r.deletedRanges?.map(g=>({deleted:g,member:Oh(t,g.start)})).filter(({member:g})=>g?.paragraphId===u.paragraphId).map(({deleted:g,member:p})=>({start:g.start-(p?.base??0),end:g.end-(p?.base??0)}));return {...r,range:u,spans:i,...f?{drawings:f}:{},...m?{deletedRanges:m}:{},...a?{changeSites:a}:{}}})}function ek(e,t){let n=e.map(o=>{if(o.projected||o.inlineDrawing||o.anchoredAtom||o.equation||o.positionalTab||o.breakKind||o.measureText!==void 0||o.fieldAtom||o.end-o.start!==o.text.length||/[\t\r\n]/u.test(o.text))return null;let{text:a,start:i,end:l,style:d,...s}=o;return JSON.stringify(s)}),r=[];for(let o=0;o<e.length;){let a=o+1;for(;a<e.length&&n[o]!==null&&n[a]===n[o]&&e[a-1].end===e[a].start&&!t?.has(e[a].start)&&zu(e[o].style,e[a].style);)a++;let i=e[o];r.push(a===o+1?i:{...i,text:e.slice(o,a).map(l=>l.text).join(""),end:e[a-1].end}),o=a;}return r}function tk(e){let t="children"in e?ba(e):null;return t?new Set(ql(t).members.map(n=>n.base)):void 0}var Mi=V1__default.default();function ht(e){let t=false;for(let n of e)if(n.localName==="bidi"){let r=n.attributes?.val;t=r===void 0||r==="1"||r==="true"||r==="on";}return t}function Xd(e){let t=false;for(let n of e){if(n.localName!=="rtl")continue;let r=n.attributes?.val;t=r===void 0||r==="1"||r==="true"||r==="on";}return t}var ok=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/u;function G1(e,t,n){let r=Mi.getEmbeddingLevels(t,n?"rtl":"ltr");if(ok.test(t))return r;let o=0;for(let a=0;a<e.length;){let i=Xd(e[a].props),l=a,d=0;for(;l<e.length&&Xd(e[l].props)===i;)d+=e[l].text.length,l++;let s=Mi.getEmbeddingLevels(t.slice(o,o+d),i?"rtl":"ltr");r.levels.set(s.levels,o),o+=d,a=l;}return r}function ak(e,t,n,r=false){let o=e.map(l=>l.text).join("");if(!t&&!/[\u0590-\u08ff\ufb1d-\ufdff\ufe70-\ufeff]/u.test(o)&&!e.some(l=>Xd(l.props))||e.some(l=>l.projected||l.inlineDrawing||l.equation||l.positionalTab||l.measureText!==void 0||l.end-l.start!==l.text.length))return e;let a=r&&e.some(Yd),i=a?K1(e,t,n):ik(e,t,n);return i?$1(i,a):e}var Yd=e=>e?.text===chunk6KA3L3FR_cjs.Ua;function K1(e,t,n){let r=[],o=[];for(let f of e){let m=r.length;Yd(f)?r.push({piece:f,at:f.start-m}):o.push(m?{...f,start:f.start-m,end:f.end-m}:f);}let a=f=>{let m=0,g=r.length;for(;m<g;){let p=m+g>>1;r[p].piece.start<f?m=p+1:g=p;}return m},i=n?new Set([...n].map(f=>f-a(f))):void 0,l=ik(o,t,i);if(!l)return null;let d=[],s=0,c=f=>{for(;s<r.length&&r[s].at<=f;s++)d.push(r[s].piece);};for(let f of l){c(f.start);let m=f.start,g=p=>{d.push({...f,text:f.text.slice(m-f.start,p-f.start),start:m+s,end:p+s}),m=p;};for(;s<r.length&&r[s].at<f.end;)g(r[s].at),c(m);g(f.end);}c(1/0);let u;for(let f of d)Yd(f)||(u=f);for(let f=d.length-1;f>=0;f--){let m=d[f];if(!Yd(m)){u=m;continue}let g=u?.style.shaping,p=g?.level??(t?1:0),h=u?g?.runDirection:Xd(m.props)?"rtl":"ltr";d[f]={...m,style:{...m.style,shaping:{script:"Zyyy",direction:p%2?"rtl":"ltr",level:p,baseLevel:t?1:0,...h?{runDirection:h}:{}}}};}return d}function ik(e,t,n){let r=e.map(d=>d.text).join(""),o=G1(e,r,t),a=!ok.test(r),i=[],l=0;for(let d of ek(e,n)){let s;try{s=Uu(d.text,l,o);}catch{return null}for(let c of s){let u=/^\t+$/u.test(d.text.slice(c.from,c.to)),f=u?t?1:0:c.bidiLevel,m={...d.style,shaping:{script:c.script,direction:u?t?"rtl":"ltr":c.direction,level:f,baseLevel:t?1:0,...a?{runDirection:Xd(d.props)?"rtl":"ltr"}:{}}};i.push({...d,text:d.text.slice(c.from,c.to),start:d.start+c.from,end:d.start+c.to,style:m});}l+=d.text.length;}return i}var nk=new Set(["Adlm","Arab","Mand","Mong","Nkoo","Phag","Rohg","Syrc"]);function $1(e,t){if(!e.some(a=>nk.has(a.style.shaping?.script??"")))return e;let n=a=>a?.style.shaping?.level,r=(a,i)=>{let l=a+i,d=i<0?e[a].start:e[a].end;for(;t&&Yd(e[l]);l+=i){let c=e[l];if((i<0?c.end:c.start)!==d)return;d=i<0?c.start:c.end;}let s=e[l];return s&&(i<0?s.end:s.start)===d?s:void 0},o=[];return e.forEach((a,i)=>{let l=a.style.shaping;if(!l||!nk.has(l.script)){o.push(a);return}let d=r(i,-1),s=r(i,1),c=d&&n(d)===l.level&&!Zl.test(d.text.slice(-1))&&!Zl.test(a.text.slice(0,1))?d.text.slice(-gd):"",u=s&&n(s)===l.level&&!Zl.test(a.text.slice(-1))&&!Zl.test(s.text.slice(0,1))?s.text.slice(0,gd):"";if(!c&&!u){o.push(a);return}let f=a.text,m=(y,x,S)=>{x<=y||o.push({...a,text:f.slice(y,x),start:a.start+y,end:a.start+x,style:S?{...a.style,shaping:{...l,context:S}}:a.style});},g=f.search(Zl);if(g===-1){m(0,f.length,{before:c,after:u});return}let p=f.length-1;for(;!Zl.test(f[p]);)p--;let h=c?g:0,b=u?p+1:f.length;c&&m(0,h,{before:c,after:f.slice(h,h+gd)}),m(h,b),u&&m(b,f.length,{before:f.slice(Math.max(0,b-gd),b),after:u});}),o}var Zl=/\s/u;function lk(e,t,n,r){let o=n;for(;o>t&&Array.from(e[o-1].text).every(i=>["WS","B","S"].includes(Mi.getBidiCharTypeName(i)));)o--;if(!r||o===t)return o;let a=o;for(;a<n&&e[a].text===chunk6KA3L3FR_cjs.Ua;)a++;return a===n?a:o}function rk(e,t,n,r,o,a){for(let i=lk(e,n,r,a);i<r;i++)t[i]=o?1:0;return Ih(t,n,r)}function Ih(e,t=0,n=e.length){let r=Array.from({length:n-t},(i,l)=>t+l),o=0,a=1/0;for(let i=t;i<n;i++)o=Math.max(o,e[i]),e[i]%2&&(a=Math.min(a,e[i]));for(let i=o;i>=a;i--)for(let l=0;l<r.length;){if(e[r[l]]<i){l++;continue}let d=l+1;for(;d<r.length&&e[r[d]]>=i;)d++;for(let s=l,c=d-1;s<c;s++,c--)[r[s],r[c]]=[r[c],r[s]];l=d;}return r}function Ch(e,t=e.some(r=>r.style.shaping?.baseLevel===1),n=false){if(!e.some(d=>d.style.shaping))return e;if(e.some((d,s)=>s>0&&(d.wrapAdvanceBefore??0)>0)){let d=[],s=0;for(let c=1;c<=e.length;c++)if(!(c<e.length&&!(e[c].wrapAdvanceBefore>0))){for(let u of Ch(e.slice(s,c),t,n))d.push(u);s=c;}return d}let r=e.map(d=>d.style.shaping?.level??0),o=[];if(e.every(d=>d.style.shaping?.runDirection!==void 0)){let d=lk(e,0,e.length,n),s=u=>u>=d?t:e[u].style.shaping?.runDirection==="rtl",c=[];for(let u=0;u<e.length;){let f=s(u),m=u+1;for(;m<e.length&&s(m)===f;)m++;c.push({start:u,end:m,rtl:f}),u=m;}t&&c.reverse();for(let u of c)for(let f of rk(e,r,u.start,u.end,u.rtl,n))o.push(f);}else for(let d of rk(e,r,0,e.length,t,n))o.push(d);let a=[...e],i=e.reduce((d,s)=>Math.min(d,s.box.x),1/0),l=e.map((d,s)=>d.box.width+Math.max(0,(e[s+1]?.box.x??d.box.x+d.box.width)-d.box.x-d.box.width));for(let d of o){let s=e[d],c=r[d]%2?"rtl":"ltr",u=l[d]-s.box.width,f=s.text.split(" ").length-1,m=f>0?u/f:0;a[d]={...s,style:s.style.shaping?{...s.style,shaping:{...s.style.shaping,direction:c,...m>0?{wordSpacingPt:(s.style.shaping.wordSpacingPt??0)+m}:{}}}:s.style,box:{...s.box,x:i,width:l[d]}},i+=l[d];}return a}function Qf(e,t){return e.length?e.reduce((n,r)=>Math.min(n,r.box.x),1/0):t}function Mh(e,t){if(!e.some(o=>o.style.shaping!==void 0))return null;let n=null,r=1/0;for(let o of e){let a=Math.max(o.box.x-t,t-o.box.x-o.box.width,0);a<r&&(n=o,r=a);}return n}function sk(e,t){if(!e.some(n=>n.style.shaping))return e;for(let n=e.length-1;n>=0;n--){let r=e[n],o=r.text.length;for(;o>0&&["WS","B","S"].includes(Mi.getBidiCharTypeName(r.text[o-1]));)o--;if(o===0)continue;if(o===r.text.length)return e;let a=r.text.slice(o),i=Math.min(r.box.width,et(a,Ve(r.style,r.fontSlot),t)),l={...r,text:r.text.slice(0,o),range:{...r.range,end:r.range.start+o},box:{...r.box,width:r.box.width-i}},d={...r,text:a,range:{...r.range,start:r.range.start+o},box:{...r.box,x:r.box.x+r.box.width-i,width:i}};return [...e.slice(0,n),l,d,...e.slice(n+1)]}return e}function dk(e,t,n){let r=new Map;function o(a,i){if(!a||!i)return null;if(a.last<0)return i;if(i.last<0)return a;let l=a.advance+(n?i.before:Math.max(i.before,a.after)-a.after);return {before:a.before,after:i.after,advance:l+i.advance,maxWhole:Math.max(a.maxWhole,l+i.maxWhole),maxSplit:Math.max(a.maxSplit,l+i.maxSplit),last:i.last}}return {walk(a,i,l,d){function s(c,u,f){if(f<=a||u>i)return true;if(u>=a&&f-1<=i){let p=r.get(c);if(p){let h=l(p);if(h==="stop")return false;if(h)return true}}if(f-u===1){let p=d(u);return r.has(c)||r.set(c,t(u)),p}let m=u+Math.floor((f-u)/2),g=s(c*2,u,m)&&s(c*2+1,m,f);return r.has(c*2)&&r.has(c*2+1)&&r.set(c,o(r.get(c*2),r.get(c*2+1))),g}e>0&&s(1,0,e);}}}var Zd=8,tm=8,qd=2,U1=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function Bh(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function rt(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=Bh(o.attributes);break;case "keepLines":n=Bh(o.attributes);break;case "widowControl":r=Bh(o.attributes);break;}return !t&&!n&&r?U1:{keepNext:t,keepLines:n,widowControl:r}}function xa(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<qd)return e;let a=e;return n-a<qd&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function em(e,t=Number.POSITIVE_INFINITY){let{blocks:n,start:r}=e,o=0,a=e.carry,i=-1,l=true,d=null,s=u=>(d=u,false),c=u=>{let f=n[u];if(f&&e.skipBlock?.(u))return true;if(f?.kind==="table"&&u>r){let x=e.tableOpening?.(u)??null;if(x===null)return false;if(x.breaksPage)return s({height:o-a,lastWhole:i});let S=x.throughHeight,R=S===void 0||e.throughTables===false?void 0:uk(e,u+1,t-o-S),P=typeof R=="number"?S+R:x.height;return s({height:o+P,lastWhole:i})}if(!f||f.kind!=="paragraph"||!f.spacing||!f.keeps)return false;if(u>r&&e.breaksBefore?.(u))return s({height:o-a,lastWhole:i});u===r&&e.headLead!==void 0?o+=e.headLead:e.sumAdjacentSpacing?o+=f.spacing.before:o+=Math.max(f.spacing.before,a)-a;let m=e.linesFor(u),g=m.findIndex(x=>x.pageBreakAfter||x.columnBreakAfter),p=g<0?m.length:g+1,h=Lh(m.length,p,f.keeps),b=o+Eh(m,h);if(!f.keeps.keepNext||u+1>=n.length)return s({height:b,lastWhole:i});let y=Eh(m,p);if(g<0&&h<m.length&&o+y>t)return s({height:b,lastWhole:i});if(g>=0)return s({height:o+y,lastWhole:i});l&&o+y<=t?i=u:l=false;for(let x=0;x<p;x+=1)o+=m[x].height;return o+=f.spacing.after,a=f.spacing.after,o-a>(e.maxHeight??1/0)?s({height:1/0,lastWhole:i}):true};if(e.rangeIndex)e.rangeIndex.walk(r,e.chainEnd?.(r)??n.length-1,u=>{if(u.last<0)return true;if(i<0&&l&&o===0)return false;let f=e.sumAdjacentSpacing?u.before:Math.max(u.before,a)-a,m=o+f;return m+(l?u.maxWhole:u.maxSplit)>t?false:(l&&(i=u.last),o=m+u.advance,a=u.after,o-a>(e.maxHeight??1/0)?(s({height:1/0,lastWhole:i}),"stop"):true)},c);else for(let u=r;u<n.length&&c(u);u+=1);return d}function Eh(e,t){let n=0;for(let o=0;o<t;o+=1)n+=e[o]?.height??0;let r=e[t-1];return r?n-Math.min(r.height,Math.max(0,r.trailingSpacing??0)):n}function Y1(e,t){let n=t.contentHeight-t.cursorY-t.lead-t.topExtent,r=Math.max(n+t.pricedLead,t.contentHeight-t.freshLead-t.topExtent+t.pricedLead),o=d=>em({...e,maxHeight:r},d+t.pricedLead),a=o(n);if(a===null)return null;let i=a.height-t.pricedLead+t.lead+t.topExtent;if(t.cursorY+i<=t.contentHeight)return i;let l=o(t.contentHeight-t.freshLead-t.topExtent);return l===null||l.height-t.pricedLead+t.freshLead+t.topExtent>t.contentHeight?null:!pn(t.compatibilityMode)||a.lastWhole<0?i:fk(e,a.lastWhole)>0?null:i}function X1(e,t,n,r){if(!pn(r))return 0;e={...e,maxHeight:Math.max(t,n)};let o=em(e,t);if(o===null||o.height<=t||o.lastWhole!==e.start)return 0;let a=em(e,n);return a===null||a.height>n?0:fk(e,e.start)}function q1(e,t){let n={before:0,after:0,advance:0,maxWhole:-1/0,maxSplit:-1/0,last:-1},r=dk(e.blocks.length,o=>{if(e.dynamicBlock?.(o))return null;if(e.skipBlock?.(o))return n;let a=e.blocks[o];if(a.kind!=="paragraph"||!a.keeps?.keepNext||!a.spacing||e.breaksBefore?.(o)||o+1===e.blocks.length)return null;let i=e.linesFor(o);if(i.some(s=>s.pageBreakAfter||s.columnBreakAfter))return null;let l=Eh(i,i.length),d=i.reduce((s,c)=>s+c.height,0)+a.spacing.after;return {before:a.spacing.before,after:a.spacing.after,advance:d,maxWhole:l,maxSplit:Lh(i.length,i.length,a.keeps)<i.length?l:-1/0,last:o}},e.sumAdjacentSpacing===true);return {...e,rangeIndex:r,chainEnd:o=>t[o]}}function ck(e,t){let n=new Array(e.blocks.length);for(let i=e.blocks.length-1;i>=0;i-=1){let l=e.blocks[i];n[i]=i+1<n.length&&(e.skipBlock?.(i)||l.kind==="paragraph"&&l.keeps?.keepNext)?n[i+1]:i;}let r,o,a=()=>{let i=e.contextKey?.()??"";return (!o||i!==r)&&(r=i,o=q1(e,n)),o};return {need:(i,l,d)=>Y1({...a(),start:i,carry:l},{...d,compatibilityMode:t}),tailBreak:(i,l,d,s)=>{if(!e.blocks[i]?.keeps?.keepNext||e.skipBlock?.(i))return l;let c={...a(),start:i,carry:0,headLead:0},u=s-d;return l-X1(c,u,s,t)},opening:(i,l)=>uk(a(),i,l)}}function uk(e,t,n){if(t>=e.blocks.length)return;if(e.breaksBefore?.(t))return 0;let r={...e,start:t,carry:0,headLead:void 0,throughTables:false};return em(r,n)?.height??null}function fk(e,t){let n=e.blocks[t]?.keeps;if(!n)return 0;let r=e.linesFor(t);return r.some(o=>o.pageBreakAfter||o.columnBreakAfter)||Lh(r.length,r.length,n)>=r.length?0:n.widowControl?qd:1}function Lh(e,t,n){return n.keepLines?t:n.widowControl?e<qd*2?t:Math.min(qd,t):Math.min(1,t)}function Z1(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 J1(e,t,n,r=(o,a)=>o+a>=0&&o+a<e.length?n(o+a):null){let o=e;for(let a=0;a<e.length;a+=1){if(!t(a))continue;let i=n(a);if(i===null)continue;let l=r(a,-1)===i,d=r(a,1)===i;o===e&&(o=[...e]),o[a]=`${o[a]}~cs~${l?1:0}${d?1:0}`;}return o}function Q1(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 eD(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 tD(e,t){let n=e.length-1;if(!t||n<1)return e;let r=[...e];return r[n-1]=`${e[n-1]}~sm~${e[n]}`,r}function nD(e,t,n,r){let o=new Uint8Array(e.length+1),a=new Uint8Array(e.length),i=[];for(let f=0;f<e.length;f+=1){let m=t(f);if(!m&&!o[f])continue;let g=n?.(f)===true,p=r?.(f)===true;a[f]=(m?1:0)|(p?2:0)|(g?4:0),f+1!==e.length&&(g?o[f+1]|=o[f]:m&&(i.push(f),o[f+1]|=p?1:2,p||(o[f+1]|=o[f])));}if(i.length===0)return e;let l=new TextEncoder,d=f=>f.length<=256?f:`\0h${chunk6KA3L3FR_cjs.a(l.encode(f))}`,s=new Array(e.length+1),c=new Array(e.length+1);s[e.length]=c[e.length]=".";for(let f=e.length-1;f>=0;f-=1){if(!o[f])continue;let m=(a[f]&4)!==0,g=(a[f]&2)!==0,p=(a[f]&1)!==0,h=f+1===e.length?".":"",b=m?"-":`${e[f].length}:${e[f]}`,y=b+(m||p&&!g?s[f+1]:h),x=b+(m?c[f+1]:p?g?`>${s[f+1]}`:c[f+1]:h);o[f]&1&&(s[f]=d(y)),o[f]&2&&(c[f]=o[f]&1&&y===x?s[f]:d(x));}let u=[...e];for(let f of i)u[f]=`${e[f]}~kn~${a[f]&2?s[f+1]:c[f+1]}`;return u}function mk(e,t){let n=t.terminalTableGroup,r=n?e.map((a,i)=>i>=n.start&&i<=n.anchorIndex?ie([a,n.token]):a):e,o=J1(r,t.contextualSpacingAt,t.styleIdAt,t.neighbourStyleAt);return o=Q1(o,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(o=eD(o,a=>t.tocVerdicts[a])),o=Z1(o,t.markerTextAt),o=tD(o,t.endsWithSectionMark===true),o=nD(o,t.keepsNextAt,t.skipKeepNextAt,t.tableAt),o}function pk(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.ligatures?.standard?1:0,e.ligatures?.contextual?1:0,e.ligatures?.historical?1:0,e.ligatures?.discretionary?1:0,e.caps?1:0,e.smallCaps?1:0].join(",")}function nm(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 g=0;g<t.length;g+=1)r.push(o),t[g]==="0"&&(o=true);let a=n.length,i=false,l=0,d=0,s=[],c=-1;for(let g=t.length-1;g>=0;g-=1){let p=t[g];if(p==="0"||p==="#"){i=true,l+=1,c=s.length,a>0?(a-=1,s.push(n[a])):s.push(p==="0"?"0":" ");continue}if(p===","){d===0&&(d=l),l=0,(a>0||r[g])&&(c=s.length,s.push(","));continue}s.push(p);}if(!i)return null;let u=[];for(;a>0;)d>0&&l>=d&&(u.push(","),l=0),a-=1,l+=1,u.push(n[a]);let f=s.slice(c+1).reverse().join(""),m=s.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+m}function Mt(e){return "outOfFlow"in e&&e.outOfFlow===true}var Jl="0";function Sa(e,t){return e!=="PAGE"||!t||t==="decimal"}function rm(e,t,n){return t===void 0||!Sa(e,n)?Jl:nm(0,t)??Jl}function Dh(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 fa(n);let o=Gr(r,n);return o.length>0?o:fa(n)}function Do(e,t,n){if(e==="PAGE"){if(n!==void 0&&Sa(e,t.format)){let o=nm(t.pageNumber,n);if(o!==null)return o}return Dh(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=nm(r,n);if(o!==null)return o}return fa(Math.floor(r))}function _o(e){return e.hasPage||e.hasNumPages||e.hasSectionPages||e.hasPageParity===true}function _h(e,t=Wg){if(!e||!_o(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}`),t.hasPageParity&&n.push(`o${(e.sheetNumber??e.pageNumber)&1}`),`|fld:${n.join("/")}`}function es(e,t,n,r){let o=false,a=e.map((i,l)=>{let d=t+l,s=i.pageFieldSource;return s&&s.pageNumber===d&&s.sectionPageCount===n&&s.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:d,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function rD(e){for(let t of e.spans)if(t.fieldAtom?.pageField||t.fieldAtom?.pageRef)return true;return false}function hk(e){if(e.kind==="paragraph"){for(let t of e.lines)if(rD(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(hk(r))return true;return false}function jh(e,t){let n=t,r=false;for(let o of e)Mt(o)||(n=Math.max(n,o.box.y+o.box.height)),!r&&hk(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}var Nh=new WeakMap;function oD(e,t,n,r){let o=Nh.get(e);if(o)return t.length>0&&n!==t&&o.revision===r?(Nh.delete(e),false):true;let a=t.length===0||t===n;return a&&Number.isFinite(r)&&Nh.set(e,{revision:r}),a}function yk(e,t){if(e.kind==="paragraph"){for(let n of e.lines)for(let r of n.spans){let o=r.fieldAtom?.pageRef?.targetParagraphId;o!==void 0&&t.add(o);}return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)yk(o,t);}function bk(e,t,n,r){if(e.kind==="paragraph"){t.has(e.paragraphId)&&!r.has(e.paragraphId)&&r.set(e.paragraphId,n);return}for(let o of e.rows)for(let a of o.cells)for(let i of a.blocks)bk(i,t,n,r);}var gk=new WeakMap;function xk(e){let t=gk.get(e);if(t!==void 0)return t;let n=aD(e);return gk.set(e,n),n}function aD(e){let t=null;for(let o of e)if(o.hasBodyPageFields!==false)for(let a of o.fragments)yk(a,t??=new Set);if(!t||t.size===0)return null;let n=new Map;for(let o of e){if(n.size>=t.size)break;let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,...a?.format?{format:a.format}:{}};for(let l of o.fragments)bk(l,t,i,n);}let r="";for(let[o,a]of n)r+=`${o}@${a.pageNumber}/${a.format??""};`;return {hosts:n,token:r}}function Hh(e){return xk(e)?.token??""}function iD(e,t,n){let r=null;for(let o=0;o<e.spans.length;o+=1){let a=e.spans[o],i=a.fieldAtom?.pageRef;if(i){let s=n?.hosts.get(i.targetParagraphId);if(!s)continue;let c=Dh(s.pageNumber,s.format);if(c.length===0)continue;let f=oD(i.calibration,i.cached,c,n.revision)?c:i.cached;if(f.length===0||f===a.text)continue;r||(r=e.spans.slice()),r[o]={...a,text:f};continue}let l=a.fieldAtom?.pageField;if(!l)continue;let d=Do(l.kind,t,l.picture);d!==a.text&&(r||(r=e.spans.slice()),r[o]={...a,text:d});}return r?{...e,spans:r}:e}function Sk(e,t,n){let r=null;for(let o=0;o<e.length;o+=1){let a=e[o],i=a;if(a.kind==="paragraph"){let l=null;for(let d=0;d<a.lines.length;d+=1){let s=a.lines[d],c=iD(s,t,n);c!==s&&(l||(l=a.lines.slice()),l[d]=c);}l&&(i={...a,lines:l});}else {let l=null;for(let d=0;d<a.rows.length;d+=1){let s=a.rows[d],c=null;for(let u=0;u<s.cells.length;u+=1){let f=s.cells[u],m=Sk(f.blocks,t,n);m!==f.blocks&&(c||(c=s.cells.slice()),c[u]={...f,blocks:m});}c&&(l||(l=a.rows.slice()),l[d]={...s,cells:c});}l&&(i={...a,rows:l});}i!==a&&(r||(r=e.slice()),r[o]=i);}return r??e}var Ql=new WeakMap;function c6(e){for(let t of Array.isArray(e.pages)?e.pages:[])t.header&&Ql.delete(t.header),t.footer&&Ql.delete(t.footer);}function lD(e,t){return e.pageNumber===t.pageNumber&&e.pageCount===t.pageCount&&(e.sectionPageCount??e.pageCount)===(t.sectionPageCount??t.pageCount)&&e.format===t.format&&(e.sheetNumber??e.pageNumber)===(t.sheetNumber??t.pageNumber)}function Wh(e,t,n){let r=Ql.get(e);r&&Ql.set(t,{context:r.context,projector:r.projector,dy:r.dy+n});}var Ah=new WeakMap;function Pa(e){let t=e.pages.length;if(t===0)return e;let n=xk(e.pages),r=n?.token??"",o=false,a=e.pages.map(i=>{let l=Ah.get(i);if(l&&l.pageCount===t&&l.pageRefToken===r)return l.result!==i&&(o=true),l.result;let d=i.pageFieldSource,s={pageNumber:d?.pageNumber??i.index+1,pageCount:t,sectionPageCount:d?.sectionPageCount??t,...d?.format?{format:d.format}:{},sheetNumber:i.index+1},c=p=>{if(!p)return p;let h=p.pageFieldProjector,b=0;if(!h){let w=Ql.get(p);if(!w||lD(w.context,s))return p;h=w.projector,b=w.dy;}o=true;let y=h(s),{pageFieldProjector:x,box:S,...R}=y,P={...R,box:b===0?S:{...S,y:S.y+b}};return Ql.set(P,{context:s,projector:h,dy:b}),P},u=c(i.header),f=c(i.footer),m=i.hasBodyPageFields===false?i.fragments:Sk(i.fragments,s,n?{hosts:n.hosts,revision:e.revision}:void 0);if(u===i.header&&f===i.footer&&m===i.fragments)return Ah.set(i,{pageCount:t,pageRefToken:r,result:i}),i;m!==i.fragments&&(o=true);let g={...i,...u!==void 0?{header:u}:{},...f!==void 0?{footer:f}:{},...m!==i.fragments?{fragments:m}:{}};return Ah.set(i,{pageCount:t,pageRefToken:r,result:g}),g});return o?{...e,pages:a}:e}function ts(e,t=[],n,r,o,a,i=Ye,l,d,s,c,u,f=false,m,g){return Bi(e,t,n,r,o,a,i,l,d,s,c,u,f,m,g)}var sD="http://schemas.openxmlformats.org/officeDocument/2006/relationships",dD=64,cD=8,uD=256,om=1584,fD=64;function mD(e){return (e-2)/6}function Rk(e,t){if(!Number.isFinite(t))return null;let n=mD(t);if(!Number.isFinite(n)||n<=0)return null;let r=e.width*n,o=e.height*n;return !Number.isFinite(r)||!Number.isFinite(o)||r<=0||o<=0||r>om||o>om?null:{relationshipId:e.relationshipId,width:r,height:o,authored:e}}function wk(e){return e.kind!=="textValue"}function Pk(e){return !Number.isFinite(e)||e<=0?null:e>om?om:e}function pD(e){let t=[{node:e,depth:0}],n=0;for(;t.length>0;){let r=t.shift();if(n>=uD)return null;n+=1;let o=r.node;if(o.namespaceUri===chunk6KA3L3FR_cjs.Cc){let a=chunk6KA3L3FR_cjs.Gc(o),i=a?Pk(chunk6KA3L3FR_cjs.Fc(a.get("width"))):null,l=a?Pk(chunk6KA3L3FR_cjs.Fc(a.get("height"))):null;if(i!==null&&l!==null)for(let d of chunk6KA3L3FR_cjs.Ec(o)){if(d.namespaceUri!==chunk6KA3L3FR_cjs.Cc||d.localName!=="imagedata")continue;let s=chunk6KA3L3FR_cjs.Dc(d,"id",sD);if(!(s===void 0||s.length===0||s.length>fD))return {relationshipId:s,width:i,height:l}}}if(!(r.depth>=cD))for(let a of o.children)wk(a)&&t.push({node:a,depth:r.depth+1});}return null}function kk(e){let t=new Map;if(!e)return t;let n=0;for(let r of e.children){if(!wk(r)||r.namespaceUri!==chunk6KA3L3FR_cjs.da||r.localName!=="numPicBullet")continue;if(n>=dD)break;n+=1;let o=chunk6KA3L3FR_cjs.Dc(r,"numPicBulletId",chunk6KA3L3FR_cjs.da);if(o===void 0||o.length===0||o.length>64||t.has(o))continue;let a=pD(r);a&&t.set(o,{picBulletId:o,...a});}return t}var Tk=512,gD=9,vr=31680/20,hD=8,yD=128;function Jd(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t}function Bt(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function kn(e,t){for(let n of e.children)if(Jd(n,t))return n}function Zr(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function bD(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>vr?vr:t}function am(e){let t=e/20;return Number.isFinite(t)?t>vr?vr:t<-vr?-vr:t:0}function xD(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=kn(e,"ind");if(!n)return t;let r={};for(let d of ["left","right","start","end"]){let s=Zr(Bt(n,d),true);s!==null&&(r[d]=am(s));}let o=Zr(Bt(n,"left")??Bt(n,"start"),true),a=Zr(Bt(n,"right")??Bt(n,"end"),true),i=Zr(Bt(n,"hanging")),l=Zr(Bt(n,"firstLine"),true);return {...r.start!==void 0||r.end!==void 0?{authored:r}:{},left:o===null?0:am(o),right:a===null?0:am(a),hanging:i===null?0:bD(i),firstLine:l===null?0:am(l),stated:{left:o!==null,right:a!==null,firstLineOffset:i!==null||l!==null}}}function SD(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function PD(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function RD(e,t){let n=kn(e,t);if(!n)return false;let r=Bt(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function vk(e,t){let n=kn(e,t);if(!n)return;let r=Bt(n,"val");if(!(r===void 0||r.length===0||r.length>yD))return r}function wD(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 Fk(e){let t=Zr(Bt(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=kn(e,"start"),r=1;if(n){let S=Zr(Bt(n,"val"));S!==null&&S>=0&&(r=Math.min(S,9999));}let o=kn(e,"numFmt"),a=(o?Bt(o,"val"):void 0)??"decimal",i=kn(e,"lvlText"),l=i?Bt(i,"val")??"":"",d=kn(e,"lvlJc"),s=PD(d?Bt(d,"val"):void 0),c=kn(e,"suff"),u=SD(c?Bt(c,"val"):void 0),f=kn(e,"lvlRestart"),m;if(f){let S=Zr(Bt(f,"val"));S!==null&&S>=0&&S<=9&&(m=S);}let g=kn(e,"lvlPicBulletId"),p=g?Bt(g,"val"):void 0,h=p!==void 0&&p.length>0&&p.length<=64?p:void 0,b=kn(e,"pPr"),y=kn(e,"rPr"),x=y?Ur(y):[];return $f({ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:s,suff:u,indent:xD(b),...m!==void 0?{lvlRestart:m}:{},...h!==void 0?{picBulletId:h}:{},isLgl:RD(e,"isLgl"),runProperties:x,vanish:wD(x,"vanish")},b)}function kD(e){let t=Bt(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(!Jd(a,"lvl"))continue;if(n.size>=9)break;let i=Fk(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=vk(e,"numStyleLink"),o=vk(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function TD(e){let t=Zr(Bt(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=kn(e,"startOverride"),r;if(n){let i=Zr(Bt(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=kn(e,"lvl"),a=o?Fk(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 vD(e){let t=Bt(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=kn(e,"abstractNumId"),r=n?Bt(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Jd(a,"lvlOverride"))continue;if(o.size>=gD)break;let i=TD(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function Ok(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let i of e.children){if(Jd(i,"abstractNum")){if(r>=Tk)continue;r+=1;let l=kD(i);l&&!t.has(l.abstractNumId)&&t.set(l.abstractNumId,l);continue}if(Jd(i,"num")){if(o>=Tk)continue;o+=1;let l=vD(i);l&&!n.has(l.numId)&&n.set(l.numId,l);}}let a=kk(e);return a.size>0?{abstractNums:t,nums:n,pictureBullets:a}:{abstractNums:t,nums:n}}function FD(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<hD;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=n(i);if(l===void 0)return null;let d=e.nums.get(l);if(!d)return null;let s=e.abstractNums.get(d.abstractNumId);if(!s||r.has(s.abstractNumId))return null;r.add(s.abstractNumId),o=s;}return null}function Ik(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=FD(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?e.pictureBullets?{abstractNums:r,nums:e.nums,pictureBullets:e.pictureBullets}:{abstractNums:r,nums:e.nums}:e}function ns(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 im=Object.freeze({abstractNums:new Map,nums:new Map});function OD(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=ns(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 ID(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=ns(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function Ck(e,t){return t?e.map(n=>n==="bullet"||n==="none"?n:"decimal"):e}function CD(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function Mk(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 l=n.get(a);l||(l=[false,false,false,false,false,false,false,false,false],n.set(a,l));let d=r.get(a);return d||(d=OD(e,a),r.set(a,d)),{counters:i,initialized:l,starts:d}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let l=ns(e,a,i);if(!l)return null;let{abstractNumId:d,level:s}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:m}=ID(e,a,f);for(let R=i+1;R<=8;R+=1){let P=ns(e,a,R);if(!P)continue;let w=CD(R,P.level.lvlRestart);w!==null&&i<=w&&(u[R]=false);}let g=f[i]??s.start;u[i]?c[i]+=1:(c[i]=g,u[i]=true);let p=c.slice(),h=u.slice(),b=p.map((R,P)=>h[P]?R:f[P]??1),y=Ck(m,s.isLgl),x=s.vanish?"":s.numFmt==="bullet"&&!/%[1-9]/.test(s.lvlText)?s.lvlText:Gg(s.lvlText,b,y),S={abstractNumId:d,numId:a,ilvl:i,level:s,counters:p,markerText:x};return Bk.set(S,b),S}}}var Bk=new WeakMap;function Ek(e){return Bk.get(e)??e.counters}var MD=/[\p{L}\s]/u;function BD(e){let t="";for(let n=0;n<e.length;n+=1){let r=e[n],o=e[n+1];if(r==="%"&&o!==void 0&&o>="1"&&o<="9"){t+=r+o,n+=1;continue}MD.test(r)||(t+=r);}return t}function Lk(e,t=false,n=false){let{index:r,numId:o,ilvl:a,expandCounters:i}=e;if(a<0||a>8)return null;let l=[],d=[];for(let m=0;m<=8;m+=1){let g=ns(r,o,m);l.push(m<=a?g?.level??null:null),d.push(g?.level.numFmt??"decimal");}let s=m=>m!==null&&m.numFmt!=="bullet"&&m.numFmt!=="none"&&m.lvlText.length>0;if(!s(l[a]??null))return null;let c=[],u=[];for(let m=a;m>=0&&!(t&&m!==a);m-=1){let g=l[m];s(g)&&(m!==a&&u.some(p=>p.includes(`%${m+1}`))||(c.push(m),u.push(g.lvlText)));}c.reverse();let f="";for(let m of c){let g=l[m],p=n?BD(g.lvlText):g.lvlText;f+=Gg(p,i,Ck(d,g.isLgl));}return f.length>0?f:null}var Nk=new Map;function ED(e){let t=Nk.get(e);return t||(t=je([{localName:"rFonts",attributes:{ascii:e,hAnsi:e,hint:"default"}}]),Nk.set(e,t)),t}var Ak=new Map,zh=new WeakMap;function Dk(e){let t=e?.hasResolvedFont;if(!e||!t)return;let n=zh.get(e);if(n!==void 0)return n??void 0;let r=[];for(let i of VS){let l=false;try{l=t.call(e,ED(i))===!0;}catch{l=false;}l&&r.push(i);}if(r.length===0){zh.set(e,null);return}let o=r.join("|"),a=Ak.get(o);if(!a){let i=new Set(r);a=l=>i.has(l.toLowerCase()),Ak.set(o,a);}return zh.set(e,a),a}function rs(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}}function A6(e){if(e.kind==="textValue")return false;let t=rs(e,"paragraphProperties")??rs(e,"pPr");if(!t)return false;let n=rs(t,"runProperties")??rs(t,"rPr");return n===void 0?false:rs(n,"del")!==void 0||rs(n,"moveFrom")!==void 0}function lm(e,t,n,r,o=[],a=false){if(e.kind==="textValue")return true;if(t>=chunk6KA3L3FR_cjs.la)return !a;let i=(l,d)=>{for(let s of l){if(s.kind==="textValue")continue;if(s.kind==="run"){if(a&&AD(s))continue;for(let f of s.children){if(f.kind==="text"){for(let m of f.children)if(m.kind==="textValue"&&m.value.length>0)return false;continue}if(f.kind!=="runProperties")return false}continue}if(chunk6KA3L3FR_cjs.rc(s)){if(d+1>=chunk6KA3L3FR_cjs.la){if(a)return false;continue}let f=chunk6KA3L3FR_cjs.tc(s);if(f&&!i(f,d+1))return false;continue}if(chunk6KA3L3FR_cjs.na(s)&&!gn(s)){if(!lm(s,d+1,n,r,o,a))return false;continue}if(!gn(s)){if(a&&!ND(s))return false;continue}let c=Rn(s);if(!c)continue;let u=Nn(o,c);if($e(u,n,r)&&!lm(s,d+1,n,r,u,a))return false}return true};return i(e.children,t)}var LD=new Set(["pPr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","moveFromRangeStart","moveFromRangeEnd","moveToRangeStart","moveToRangeEnd","permStart","permEnd","proofErr"]);function ND(e){return e.kind==="paragraphProperties"?true:e.namespaceUri===chunk6KA3L3FR_cjs.da&&LD.has(e.localName)}function AD(e){let t=e.children.find(n=>n.kind==="runProperties");return t!==void 0&&chunk6KA3L3FR_cjs.pa(t,"vanish")}function _k(e,t,n){return lm(e,0,t,n,[],true)}function Vh(e,t,n){if(t==="all-markup"&&!n)return false;for(let r of ca(e)){let o=n?xd(n,r,t):t;if(o==="all-markup")continue;let a=r.kind==="delete"||r.kind==="moveFrom";if(o==="proposed"&&a||o==="original"&&!a)return true}return false}function jk(e,t="proposed",n){return e.kind!=="paragraph"||!Vh(e,t,n)?false:lm(e,0,t,n)}function sm(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}}var Hk=new WeakMap;function DD(e){let t=Hk.get(e);if(t!==void 0)return t;let n=sm(e,"pPr"),r=n&&sm(n,"rPr"),o=r!==void 0&&(chunk6KA3L3FR_cjs.pa(r,"vanish")||chunk6KA3L3FR_cjs.pa(r,"specVanish"));return Hk.set(e,o),o}function _D(e){let t=sm(e,"pPr");return t!==void 0&&sm(t,"sectPr")!==void 0}var zk=new WeakMap,Vk=new WeakMap,Wk=new WeakMap;function Gh(e){return Vk.get(e)}function jD(e,t){let n=Wk.get(e);if(n&&n.neighbours.before===t.before&&n.neighbours.after===t.after)return n.standIn;let r={...e};return Vk.set(r,t),Wk.set(e,{neighbours:t,standIn:r}),r}function Gk(e,t,n,r=()=>true){let o=null,a;for(let c=e.length-1;c>=0;c-=1){let u=e[c],{block:f}=u;if(f.kind==="paragraph"&&a?.block.kind==="paragraph"&&a.parentKey===u.parentKey&&DD(f)&&!_D(f)&&_k(f,t,n)){(o??=new Set).add(c);continue}a=u;}if(o===null)return e.map(c=>c.block);let i=o,l=(c,u)=>{let f=e[c+u];return f&&i.has(c+u)&&f.parentKey===e[c].parentKey?f.block:void 0},d=e.map((c,u)=>{let{block:f}=c;if(i.has(u)||f.kind!=="paragraph"||!r(f))return f;let m=l(u,-1),g=l(u,1);return !m&&!g?f:jD(f,{...m?{before:m}:{},...g?{after:g}:{}})}),s=d.filter((c,u)=>!i.has(u));return zk.set(s,d),s}function Kk(e){return zk.get(e)??e}function dm(e,t){return e.picBullet?e.picBullet.width:t.measure(e.markerText,e.markerStyle)}function $k(e){return e.markerText.length>0||e.picBullet!==void 0}function cm(e,t,n,r){if(!$k(e))return null;let o=e.indent.left,a=e.indent.hanging,i=a>0?-a:e.indent.firstLine,l=Math.min(0,o),s=Math.max(l,o+i);return e.markerAlign==="right"?s-=t:e.markerAlign==="center"&&(s-=t/2),s<l&&(s=l),{x:s,y:n,width:Math.max(t,0),height:r}}function HD(e,t){return e.stops.find(n=>!n.implied&&n.positionPt>t)}function Uk(e,t,n=Td,r=Number.POSITIVE_INFINITY){if(!$k(e))return 0;let o=dm(e,t),a=cm(e,o,0,0);if(!a)return 0;let i=e.indent.left,l=a.x+a.width;if(e.suffix==="nothing")return l-i;if(e.suffix==="space")return l+t.measure(" ",e.markerStyle)-i;if(l<=i){let d=HD(n,l);return !d||d.positionPt>=i&&!n.ignoreIndentAsNumberingTabStop?0:Math.min(d.positionPt,Math.max(l,r))-i}return Ri(n,l,r,true).positionPt-i}function Kh(e,t,n,r,o){return e?Uk(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}var Yh=new WeakMap;function sq(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunk6KA3L3FR_cjs.g.story);Yh.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function zD(e){let t=Yh.get(e);return Yh.delete(e),t}var nT=new WeakMap;function rT(e){return nT.get(e)}function Xh(e){return e.kind!=="textValue"}function Yk(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function um(e,t){for(let n of e.children)if(Xh(n)&&n.localName===t)return n}function oT(e){if(!Xh(e))return null;let t=um(e,"numPr");if(!t)return null;let n=um(t,"numId"),r=um(t,"ilvl"),o;if(n){let i=Yk(n,"val");o=i!==void 0&&i!=="0"&&i.length<=64?i:null;}let a;if(r){let i=Yk(r,"val"),l=/^\d{1,2}$/.test(i??"")?Number(i):0;a=l<=8?l:null;}return {numId:o,ilvl:a}}function VD(e){let t=null,n=0;for(let r of e){let o=oT(r);o&&(o.numId!==void 0&&(t=o.numId),o.ilvl!==void 0&&(o.ilvl===null?t=null:n=o.ilvl));}return t===null?null:{numId:t,ilvl:n}}function GD(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<Nf;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?oT(a):null;if(i&&i.numId!==void 0)return i.numId??void 0;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var $h=new WeakMap;function fm(e,t){if(!t)return e;let n=$h.get(e);if(n&&n.styleCascade===t)return n.linked;let r=Ik(e,a=>GD(t,a)),o={styleCascade:t,linked:r};return $h.set(e,o),$h.set(r,o),r}function Xk(e){return Number.isFinite(e)?e>vr?vr:e<-vr?-vr:e:0}function qk(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)?Xk(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?Xk(Number(o)/20):0});}return t}function aT(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.left!==void 0||t.attributes?.start!==void 0))}function iT(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.right!==void 0||t.attributes?.end!==void 0))}function Zk(e,t){return t?iT(e):aT(e)}function Jk(e,t){return t?aT(e):iT(e)}function KD(e,t,n=[]){let r=ht([...t,...n]),o={localName:"bidi",attributes:{val:r?"1":"0"}};r&&(e={...e,left:e.right,right:e.left,...e.stated?{stated:{...e.stated,left:e.stated.right,right:e.stated.left}}:{}});let a=e.stated??{left:false,right:false,firstLineOffset:false},i=Yl([...t,o]),l=Yl([...n,o]),d={hanging:e.hanging,firstLine:e.firstLine},s=Zk(n,r)?l.left:a.left?e.left:Zk(t,r)?i.left:e.left,c=Jk(n,r)?l.right:a.right?e.right:Jk(t,r)?i.right:e.right,u=qk(n)??(a.firstLineOffset?d:qk(t)??d);return {left:s,right:c,...u}}function Ei(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 l of chunk6KA3L3FR_cjs.rb(i.children))if(l.kind==="tableRow")for(let d of chunk6KA3L3FR_cjs.rb(l.children)){if(d.kind!=="tableCell")continue;let s=chunk6KA3L3FR_cjs.vc(d.children);r(s,a+1);}}}};return r(e,0),n}var Qk=new WeakMap;function lT(e,t){let n=Qk.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(f=>f.kind==="paragraphProperties"),o=t?jn(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&Xh(r)?um(r,"rPr"):void 0,l=VD(a),d=l&&t&&o?Fw(t,o.styleId,r):{below:[],above:ct(r)},s=o?o.markRunProperties:ct(i),c=_n(e)?[...s.filter(f=>f.localName!=="vanish"),...o?.runProperties.filter(f=>f.localName==="vanish")??[]]:s,u={styleCascade:t,numPr:l,belowLevel:d.below,aboveLevel:d.above,inheritedMarkProps:c,perLevel:new WeakMap};return Qk.set(e,u),u}function Qd(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=fm(t,n),i=Mk(a);for(let l of Ei(e)){let d=lT(l,n),s=d.numPr;if(!s)continue;let c=i.advance(s.numId,s.ilvl);if(!c)continue;let u=d.perLevel.get(c.level);if(!u){let R=KD(c.level.indent,d.belowLevel,d.aboveLevel),P=dr(d.inheritedMarkProps,c.level.runProperties,n);u={indent:R,markerStyle:je(P,n?.themeFonts)},d.perLevel.set(c.level,u);}let{indent:f,markerStyle:m}=u,p=(c.level.numFmt==="bullet"?KS:ai)(c.markerText,m.fontFamily,r),h=p!==c.markerText&&!GS(p)?{...m,fontFamily:null,fontFamilyEastAsia:null}:m,b=c.level.picBulletId===void 0?void 0:a.pictureBullets?.get(c.level.picBulletId),y=b?Rk(b,h.fontSizePt)??void 0:void 0,x=ie([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,Tw(c.level),p,pk(h),y?`${y.relationshipId}:${y.width}:${y.height}`:""].map(String)),S={numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:p,...c.level.numFmt==="bullet"?{}:{ordinal:c.counters[c.ilvl]??1},markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:h,...y?{picBullet:y}:{},cacheToken:x};$f(S,Vd(c.level)),nT.set(S,{index:a,numId:c.numId,ilvl:c.ilvl,expandCounters:Ek(c)}),o.set(l.id,S);}return o}var sT=new WeakMap,dT=new WeakMap;function $D(e){return e.isFontAvailable??Dk(e.measurer)}function eT(e,t,n,r){let o=r?dT.get(r):sT.get(n);if(o&&o.rawIndex===e.numberingIndex&&o.styleCascade===e.styleCascade&&o.isFontAvailable===t)return o}function UD(e,t,n){t?dT.set(t,n):sT.set(e,n);}function cT(e,t,n){let r=Kk(t),o=$D(e);if(e.listItems===void 0){let d=eT(e,o,r,n);if(d&&n===void 0)return {...e,numberingIndex:d.linkedIndex,...d.listItems?{listItems:d.listItems}:{}}}let a=e.listItems===void 0?eT(e,o,r,n):void 0,i=a&&a.rawIndex===e.numberingIndex&&a.styleCascade===e.styleCascade&&a.isFontAvailable===o?a.linkedIndex:fm(e.numberingIndex??im,e.styleCascade),l=e.listItems??(i.nums.size>0?ZD(r,e.numberingIndex,i,e.styleCascade,o,n):void 0);return e.listItems===void 0&&UD(r,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:o,linkedIndex:i,listItems:l}),{...e,numberingIndex:i,...l?{listItems:l}:{}}}function as(e,t){return cT(e,t,void 0)}function uT(e,t,n){return cT(e,t,n)}var tT=new WeakMap,YD=Object.freeze([]);function XD(e,t){let n=tT.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=Ei([e]).filter(a=>lT(a,t).numPr!==null),o=r.length>0?r:YD;return tT.set(e,{styleCascade:t,numbered:o}),o}var os=new WeakMap,Uh=new WeakMap;function qD(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(l=>l.kind==="paragraphProperties"),i=o.children.find(l=>l.kind==="paragraphProperties");return a===i})}function ZD(e,t,n,r,o,a){let i=e[0],l=e[e.length-1],d=a?Uh.get(a):(i?os.get(i):void 0)??(l?os.get(l):void 0);if((a?zD(a):void 0)?.preservesNumberedSequence&&d&&d.rawIndex===t&&d.styleCascade===r&&d.isFontAvailable===o)return d.listItems;let c=new Array(e.length),u=d!==void 0&&d.rawIndex===t&&d.styleCascade===r&&d.isFontAvailable===o&&d.blocks.length===e.length;for(let g=0;g<e.length;g+=1){let p=e[g],h=d&&d.blocks[g]===p?d.numberedByBlock[g]:XD(p,r);c[g]=h,u&&!qD(h,d.numberedByBlock[g])&&(u=false);}if(d&&u){let g={...d,blocks:e,numberedByBlock:c};return a?Uh.set(a,g):(i&&os.set(i,g),l&&l!==i&&os.set(l,g)),d.listItems}let f=Qd(e,n,r,o),m={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?Uh.set(a,m):(i&&os.set(i,m),l&&l!==i&&os.set(l,m)),f}var fT=64,JD=1e4,qh=new WeakMap,mT=new WeakMap,pT=new WeakMap,QD=new WeakMap;function e_(e){return e.children.find(t=>t.kind==="paragraphProperties")}function yT(e,t){let n=e_(e);if(t)return jn(t,n);let r=n?.kind!=="textValue"?n?.children.find(o=>o.kind==="runProperties"):void 0;return {runProperties:[],markRunProperties:Ur(r)}}function Zh(e,t,n=true){let r=t?pT.get(t):QD;r||pT.set(t,r=new WeakMap);let o=r.get(e);if(o)return o.hidden&&(!n||o.special);let a=false,i=false;for(let l of yT(e,t).markRunProperties)l.localName==="vanish"&&(i=!["0","false","off"].includes(l.attributes?.val??"true")),l.localName==="specVanish"&&(a=!["0","false","off"].includes(l.attributes?.val??"true"));return r.set(e,{hidden:i,special:a}),i&&(!n||a)}function t_(e){let t=mT.get(e);if(t!==void 0)return t;let n=0,r=(a,i)=>{if(++n>JD||i>64)return true;if(a.kind==="textValue")return false;if(a.namespaceUri===chunk6KA3L3FR_cjs.da&&["sectPr","framePr","pageBreakBefore","ins","del","moveFrom","moveTo","pPrChange","rPrChange"].includes(a.localName)||a.kind==="hardBreak"&&a.attributes.some(l=>l.localName==="type"&&["page","column"].includes(l.value)))return true;for(let l of a.children)if(r(l,i+1))return true;return false},o=r(e,0);return mT.set(e,o),o}function gT(e){let t=rt(e.props),n=new Map,r=new Set(["snapToGrid","textDirection","suppressAutoHyphens","textAlignment","adjustRightInd","mirrorIndents","suppressOverlap"]);for(let o of e.props)r.has(o.localName)&&n.set(o.localName,o.attributes?.val??"true");return JSON.stringify({direction:ht(e.props),typography:Kl(e.props),flow:[...n].sort(([o],[a])=>o.localeCompare(a)),keeps:t,left:e.indent.left,right:e.indent.right,alignment:e.alignment,lineSpacing:e.lineSpacing,tabs:{...e.tabStops,stops:e.tabStops.stops.filter(o=>!o.numberingOnly)},contextualSpacing:e.contextualSpacing,borders:e.borders,shading:e.shading})}function hT(e,t,n,r,o,a,i,l){if(!e.some(m=>m.block.kind==="paragraph"&&l(m.block)))return e;let d=Qd(e.map(m=>m.block),n??im,t),s=[],c=[],u=false,f=m=>{if(m&&c.length>1&&c.length<=fT){let g=gT(wn(c[0].block,1e3,t,d.get(c[0].block.id)));m=c.slice(1).every(p=>!d.has(p.block.id))&&c.every(p=>{let h=wn(p.block,1e3,t,d.get(p.block.id));return !h.props.some(y=>y.localName==="framePr"||y.localName==="pageBreakBefore"&&!["0","false","off"].includes(y.attributes?.val??"true"))&&!h.contextualSpacing&&gT(h)===g});}else m=false;if(m){let g=c[0],p=c.map(P=>P.block),h=qh.get(g.block)?.find(P=>P.styles===t&&P.numberingIndex===n&&P.members.length===p.length&&p.every((w,F)=>w===P.members[F]));if(h){i(h.merged,p),s.push({block:h.merged,parentKey:g.parentKey}),c=[];return}let b=[],y=0;for(let P of p)b.push({paragraph:P,base:y,runProperties:yT(P,t).runProperties}),y+=chunk6KA3L3FR_cjs.cf(P).length;let x=[...g.block.children.filter(P=>P.kind==="paragraphProperties")];for(let P of p)for(let w of P.children)w.kind!=="paragraphProperties"&&x.push(w);let S={...g.block,children:x};i(S,p),xw(S,b);let R=qh.get(g.block)??[];R.length>=4&&R.shift(),R.push({styles:t,numberingIndex:n,members:p,merged:S}),qh.set(g.block,R),s.push({block:S,parentKey:g.parentKey});}else for(let g of c)s.push(g);c=[];};for(let m of e){c.length&&c[0].parentKey!==m.parentKey&&f(false);let g=m.block;if(g.kind!=="paragraph"||a(g)){f(false),s.push(m);continue}let p=l(g);if(u){s.push(m),u=p;continue}if(c.length===fT){f(false),s.push(m),u=p;continue}if((p||c.length)&&(r?.has(g.id)||t_(g)||!o(g))){f(false),s.push(m),u=p;continue}p||c.length?(c.push(m),p||f(true)):s.push(m);}return f(false),s}function bT(e,t,n,r,o,a,i){if(!e.some(({block:g})=>g.kind==="paragraph"&&Zh(g,t,false)))return e;let l=typeof r=="function"?r():r,d=g=>Zh(g,t),s=hT(e,t,n,l,o,a,i,d),c=new Set;for(let{block:g}of e)g.kind==="paragraph"&&!d(g)&&Zh(g,t,false)&&Zw(g,t)&&c.add(g);if(!c.size)return s;let u=hT(e,t,n,l,o,a,i,g=>d(g)||c.has(g)),f=new Map;for(let g of s){let p=_n(g.block);p&&f.set(p[0].paragraph,g);}let m=[];for(let g=0;g<u.length;g++){let p=u[g],h=f.get(p.block),b=h&&_n(h.block);h&&b&&b.every((y,x)=>u[g+x]?.block===y.paragraph)?(m.push(h),g+=b.length-1):m.push(p);}return m}function n_(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 r_(e,t,n){return !(e.kind==="paragraph"&&jk(e,t,n))}var ec=new WeakMap;function ba(e){return ec.get(e)??null}function wT(e,t){let n=t.children.filter(a=>xT(a)),r=e.flatMap(a=>a.children.filter(i=>!xT(i))),o={...t,children:[...n,...r]};return ec.set(o,{merged:o,members:e}),o}function xT(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function o_(e,t,n){if(t==="all-markup"&&!n)return e;let r=[],o=[],a=null,i=()=>{let l=a??"";for(let d of a_(o))r.push({block:d,parentKey:l});o=[],a=null;};for(let l of e){let{block:d,parentKey:s}=l;if(o.length>0&&s!==a&&i(),d.kind!=="paragraph"){i(),r.push(l);continue}let c=Vh(d,t,n);if((c||o.length>0)&&!TT(d,t,n)){i(),r.push(l);continue}if(c){o.push(d),a=s;continue}if(o.length===0){r.push(l);continue}let u=[...o,d];o=[],a=null,r.push({block:wT(u,d),parentKey:s});}return i(),r}function a_(e){if(e.length<2)return e;let t=e[e.length-1];return [wT(e,t)]}function tc(e,t,n,r,o=false,a,i){let l=l_(e).map(c=>({...c,block:Fh(c.block,t,n)})),d=o_(l,t,n).filter(c=>r_(c.block,t,n)),s=o?bT(d,r,a,i,c=>TT(c,t,n),c=>ec.has(c),(c,u)=>ec.set(c,{merged:c,members:u})):d;return Gk(s,t,n,c=>!ec.has(c))}var i_=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function kT(e){for(let t of e.children){if(t.kind==="textValue"){if(t.value.length>0)return false;continue}if(t.namespaceUri!==chunk6KA3L3FR_cjs.da||!i_.has(t.localName))return false}return true}function l_(e){let t=[],n=(r,o,a)=>{for(let i of r){if(i.kind==="textValue")continue;if(i.kind==="paragraph"||i.kind==="table"){t.push({block:i,parentKey:a});continue}let l=chunk6KA3L3FR_cjs.kc(i);l!==null&&o<chunk6KA3L3FR_cjs.qc&&n(l,o+1,i.id);}};return n(e,0,""),t}var ST=new WeakMap;function TT(e,t,n){let r=`${t}|${n?.cacheKey??""}`,o=ST.get(e),a=o?.get(r);if(a!==void 0)return a;let i=s_(e,t,n);return o?ya(o,r,i):ST.set(e,new Map([[r,i]])),i}function s_(e,t,n){if(!d_(e))return false;let r=ts(e,[],void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n),o=0;for(let a of r)o=Math.max(o,a.end);return o<=chunk6KA3L3FR_cjs.cf(e).length}function d_(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunk6KA3L3FR_cjs.da&&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 PT=chunk6KA3L3FR_cjs.Yg(16),RT=new WeakMap,c_=1;function u_(e){if(!e)return 0;let t=RT.get(e);return t||(t=c_++,RT.set(e,t)),t}function cr(e,t="all-markup",n,r,o){let a=`${t}|${n?.cacheKey??""}|${r?.cacheToken??""}|${u_(o)}`,i=PT.get(e),l=i?.get(a);if(l)return l;let d=n_(e),s=d?tc(d.children,t,n,r,d.kind==="body",o,()=>new Set([...Kf(e).keys(),...hf(e),...yf(e)])):[];return i?ya(i,a,s):PT.set(e,new Map([[a,s]])),s}function is(e,t="all-markup",n){return e.kind!=="note"?[]:tc(e.children,t,n)}function Jh(e,t="all-markup",n){return e.kind==="textValue"?[]:tc(e.children,t,n)}function jq(e,t,n){return ls(e,t,()=>n)}function ls(e,t,n){let r=[],o=null,a=-1,i=-1;for(let l of t){let d=n(l.sectionIndex);if(l.customMarkFollows){r.push({noteId:l.noteId,mark:null});continue}o===null?(o=d.numStart,a=l.sectionIndex,i=l.pageIndex??-1):d.numRestart==="eachSect"&&l.sectionIndex!==a?(o=d.numStart,a=l.sectionIndex):d.numRestart==="eachPage"&&l.pageIndex!==void 0&&l.pageIndex!==i?(o=d.numStart,i=l.pageIndex):d.numRestart==="eachSect"?a=l.sectionIndex:d.numRestart==="eachPage"&&l.pageIndex!==void 0&&(i=l.pageIndex);let s=o;o+=1,r.push({noteId:l.noteId,mark:Gr(d.numFmt,s),displayNumber:s});}return r}function f_(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var m_=["top","left","bottom","right"];function Qh(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}}function nc(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 mm(e){let t=aa(e);if(!(!t||!mP(t.val)))return t}function p_(e){return e==="firstPage"||e==="notFirstPage"?e:"allPages"}function vT(e){let t=nc(e,"pgBorders");if(!t)return;let n=mm(nc(t,"top")),r=mm(nc(t,"left")),o=mm(nc(t,"bottom")),a=mm(nc(t,"right"));if(!(!n&&!r&&!o&&!a))return {offsetFrom:Qh(t,"offsetFrom")==="page"?"page":"text",display:p_(Qh(t,"display")),zOrder:Qh(t,"zOrder")==="back"?"back":"front",...n?{top:n}:{},...r?{left:r}:{},...o?{bottom:o}:{},...a?{right:a}:{}}}function pm(e){if(!e)return "";let t=[e.offsetFrom,e.display,e.zOrder];for(let n of m_){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt}`);}return t.join(",")}function Fr(e){return Math.abs(e)}function ey(e){return e<0}function ss(e){return {top:Fr(e.margin.top),bottom:Fr(e.margin.bottom)}}var ty=4096,Or=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 ry(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 Li(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 oy(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}},Ra=(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 FT(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 g_(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 h_(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:ry(Et(o,"w"),1,31680),gapTwips:a===t-1?0:oy(Et(o,"space"),n)});}return r}function y_(e){let t=e?Ra(e,"type"):void 0,n=t?Et(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var b_=new Set(["hyphen","period","colon","emDash","enDash"]);function x_(e){let t=Ra(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=Et(t,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let l=Number(r);Number.isFinite(l)&&l>=0&&l<=9999&&(n.start=l);}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 l=Number(a);Number.isFinite(l)&&l>=0&&l<=9&&(n.chapStyle=l);}let i=Et(t,"chapSep");return i!==void 0&&b_.has(i)&&(n.chapSep=i),n}var OT=new WeakMap;function ny(e){if(!e)return Or;let t=OT.get(e);if(t!==void 0)return t;let n=S_(e);return OT.set(e,n),n}function S_(e){let t=Ra(e,"pgSz"),n=Ra(e,"pgMar"),r=Ra(e,"cols"),o=Or,a=Ra(e,"docGrid"),i=a?Et(a,"type"):void 0,l=a?oy(Et(a,"linePitch"),0):0,d=t?Et(t,"orient"):void 0,s=t?ry(Et(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,c=t?ry(Et(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,u=x_(e),f=vT(e),m=g_(r),g=r?oy(Et(r,"space"),o.columns.gapTwips):o.columns.gapTwips,p=r?FT(r,"equalWidth",true):true;return {...(i==="lines"||i==="linesAndChars"||i==="snapToChars")&&l>0?{gridLinePitchTwips:l}:{},pageSize:{widthTwips:s,heightTwips:c},margins:{topTwips:n?Li(Et(n,"top"),1440):o.margins.topTwips,rightTwips:n?Li(Et(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?Li(Et(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?Li(Et(n,"left"),1440):o.margins.leftTwips,headerTwips:n?Li(Et(n,"header"),720):o.margins.headerTwips,footerTwips:n?Li(Et(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?Li(Et(n,"gutter"),0):o.margins.gutterTwips},columns:{count:m,gapTwips:g,equalWidth:p,separator:r?FT(r,"sep",false):false,definitions:p?[]:h_(r,m,g)},landscape:d==="landscape"||s>c,titlePage:chunk6KA3L3FR_cjs.pa(e,"titlePg"),breakType:y_(e),...u!==void 0?{pageNumbering:u}:{},...f!==void 0?{pageBorders:f}:{}}}function rc(e){let t=e?.gridLinePitchTwips;return t===void 0?void 0:t/20}function P_(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return Ra(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}var IT=new WeakMap;function Tn(e){let t=IT.get(e);if(t!==void 0)return t??void 0;let n=e.children.find(a=>a.kind==="paragraphProperties"),r=n?Ra(n,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return IT.set(e,o??null),o}function Zq(e){let t=ay(e);return t[t.length-1]?.properties??Or}function ay(e,t="all-markup",n){return iy(e,t,n).sections}function MT(e,t="all-markup",n){let r=cr(e,t,n),o=jo(e,r).sections,a=cr(e,"all-markup"),i=jo(e,a).sections,l=Math.max(0,i.length-1),d=new Map;for(let s of i){if(s.blockStart===s.blockEndExclusive)continue;let c=a[s.blockEndExclusive-1];c?.kind==="paragraph"&&Tn(c)&&d.set(c.id,s.index);}return o.map(s=>{if(s.blockStart===s.blockEndExclusive)return l;let c=r[s.blockEndExclusive-1];return c?.kind!=="paragraph"||!Tn(c)?l:d.get(c.id)??l})}function iy(e,t="all-markup",n){return jo(e,cr(e,t,n))}var CT=chunk6KA3L3FR_cjs.Yg(16);function jo(e,t){let n=CT.get(t);if(n&&n.part===e)return n.result;let r=R_(e,t);return CT.set(t,{part:e,result:r}),r}function R_(e,t){let n=[],r=0,o=false;for(let i=0;i<t.length;i+=1){let l=t[i];if(l.kind!=="paragraph")continue;let d=Tn(l);if(d){if(n.length>=ty){o=true;continue}n.push({index:n.length,properties:ny(d),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=P_(e);if(r<t.length||n.length===0){if(n.length>=ty){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:ny(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=ty)return {sections:n,truncated:true};n.push({index:n.length,properties:ny(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function wa(e){let t=chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.pageSize.widthTwips)),n=chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.pageSize.heightTwips)),r=chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.margins.leftTwips+e.margins.gutterTwips)),o=chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.margins.rightTwips)),a=chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.margins.topTwips)),i=chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.margins.bottomTwips));return t-r-o<=0||n-Fr(a)-Fr(i)<=0?Zu:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(Math.max(0,e.margins.headerTwips))),footerDistance:chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(Math.max(0,e.margins.footerTwips)))}}var BT=4096,ET=new WeakMap;function DT(e,t){let n=ET.get(e);if(n&&n.sections===t)return n.input;let r={sections:t,footnotePropsBySection:e.footnotePropsBySection,endnotePropsBySection:e.endnotePropsBySection,documentFootnoteProps:e.documentFootnoteProps,documentEndnoteProps:e.documentEndnoteProps};return ET.set(e,{sections:t,input:r}),r}function sZ(e,t,n){let r=chunk6KA3L3FR_cjs.Sf(e),o=chunk6KA3L3FR_cjs.Tf(r),a=chunk6KA3L3FR_cjs.Uf(r),i=chunk6KA3L3FR_cjs.Vf(void 0,o),l=chunk6KA3L3FR_cjs.Wf(void 0,a),d=jo(t,n).sections,s=c=>{if(c.blockStart===c.blockEndExclusive)return;let u=n[c.blockEndExclusive-1];return u?.kind==="paragraph"?Tn(u):void 0};return {sections:d,footnotePropsBySection:d.map(c=>chunk6KA3L3FR_cjs.Vf(chunk6KA3L3FR_cjs.Qf(s(c)),o)),endnotePropsBySection:d.map(c=>chunk6KA3L3FR_cjs.Wf(chunk6KA3L3FR_cjs.Rf(s(c)),a)),documentFootnoteProps:i,documentEndnoteProps:l}}var w_=Object.freeze([]);function k_(e){for(let t of e.attributes){if(t.localName!=="customMarkFollows"||t.namespaceUri!==chunk6KA3L3FR_cjs.da&&t.namespaceUri!=="")continue;let n=t.value;return !(n==="0"||n==="false"||n==="off")}return false}var LT=new WeakMap;function T_(e){let t=LT.get(e);if(t)return t;let n=null;for(let o of chunk6KA3L3FR_cjs.af(e)){let a=o.node;if(a.kind!=="noteReference")continue;let i=chunk6KA3L3FR_cjs._b(a),l=chunk6KA3L3FR_cjs.Xb(a);i===null||l===null||(n??=[]).push({nodeId:a.id,noteKind:i,noteId:l,customMarkFollows:k_(a)});}let r=n===null?w_:Object.freeze(n);return LT.set(e,r),r}function v_(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function F_(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}var O_=new Map,NT=new WeakMap;function _T(e,t){let n=NT.get(e);if(n&&n.input===t)return n.index;let r=[],o=[],a=[],i=[],l=0,d=0;for(let f=0;f<e.length&&l<BT;f+=1){for(;d<t.sections.length-1&&f>=t.sections[d].blockEndExclusive;)d+=1;let m=t.sections.length>0?d:0;for(let g of Ei([e[f]]))for(let p of T_(g)){if(l>=BT)break;l+=1;let h={noteId:p.noteId,sectionIndex:m,customMarkFollows:p.customMarkFollows};p.noteKind==="footnote"?(r.push(h),o.push(p.nodeId)):(a.push(h),i.push(p.nodeId));}}let s=null,c=(f,m,g,p)=>{if(m.length===0||(f==="footnote"?t.footnotePropsBySection.length>0?t.footnotePropsBySection:[t.documentFootnoteProps]:t.endnotePropsBySection.length>0?t.endnotePropsBySection:[t.documentEndnoteProps]).some(y=>y.numRestart==="eachPage"))return;let b=ls(f,m,p);for(let y=0;y<b.length;y+=1){let x=b[y].mark,S=g[y];x!==null&&x.length>0&&S!==void 0&&(s??=new Map).set(S,x);}};c("footnote",r,o,f=>v_(t,f)),c("endnote",a,i,f=>F_(t,f));let u=s??O_;return NT.set(e,{input:t,index:u}),u}function ly(e,t){for(let n of e.attributes)if(n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n.value}var AT=new WeakMap;function jT(e,t){let n=AT.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l=null,d=Oo(),s=(c,u,f)=>{if(a||c.kind==="textValue"||f>=chunk6KA3L3FR_cjs.la||d.exhausted||u>jt)return;if(c.kind==="bookmarkStart"){!o&&ly(c,"name")===t&&(o=true,i=ly(c,"id"));return}if(c.kind==="bookmarkEnd"){o&&i!==void 0&&ly(c,"id")===i&&(a=true);return}if(o&&c.kind==="noteReference"){l=c.id,a=true;return}if(!Ht(d))return;let m=chunk6KA3L3FR_cjs.ma(c,f);for(let g of c.children)s(g,u+1,m);};for(let c of e.children){if(a||!Ht(d))break;s(c,1,0);}return n||(n=new Map,AT.set(e,n)),n.set(t,l),l}var I_=512,C_=2048,HT=4096,UT=Object.freeze([]),YT=Object.freeze([]),M_=Object.freeze({fields:YT,bookmarks:UT});function sy(e){return e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}var WT=new WeakMap;function B_(e){let t=WT.get(e);if(t)return t;let n=null,r=null,o=Oo(),a=hi(),i=null,l=null,d=or,s=or,c=()=>{if(a.nesting!==1||a.phase!=="instruction"||a.nestingOverflow)return;let g=El(a);if(g.overflow||l===null)return;let p=ua(g.instruction);if(p){i={spec:p,autonum:null,anchorId:l,cached:"",revisions:s};return}let h=Pi(g.instruction);h&&(i={spec:null,autonum:h,anchorId:l,cached:"",revisions:s});},u=()=>{i&&((n??=[]).push({spec:i.spec,autonum:i.autonum,anchorId:i.anchorId,cached:sy(i.cached),revisions:i.revisions}),i=null);},f=(g,p,h)=>{if(g.kind==="textValue"||h>=chunk6KA3L3FR_cjs.la||o.exhausted||p>jt)return;if(g.kind==="bookmarkStart"){let y=Wd(g,"name");y!==void 0&&y.length>0&&y.length<=kd&&(r??=[]).push(y);return}if(g.kind==="run"){for(let y of g.children){if(!Ht(o))return;if(y.kind!=="runProperties"){if(rn(y,"begin")){yi(a),a.nesting===1&&(l=y.id,s=d,i=null);continue}if(vo(y)){bi(a,y,o,p+1);continue}if(rn(y,"separate")){c(),xi(a);continue}if(rn(y,"end")){let x=a.nesting===1;c(),Si(a),x&&u();continue}if(i&&a.nesting===1&&a.phase==="result")if(y.kind==="text")for(let x of y.children)x.kind==="textValue"&&i.cached.length<Oi&&(i.cached+=x.value.slice(0,Oi-i.cached.length));else y.kind==="tab"&&i.cached.length<Oi&&(i.cached+=" ");}}return}if(chunk6KA3L3FR_cjs.pe(g)){let y=chunk6KA3L3FR_cjs.re(g)??"",x=ua(y),S=x===null?Pi(y):null;(x||S)&&(n??=[]).push({spec:x,autonum:S,anchorId:g.id,cached:sy(gw(g,o)),revisions:d});return}if(Sh(g)||!Ht(o))return;if(gn(g)){let y=Rn(g);if(y){let x=d;d=Nn(x,y);let S=chunk6KA3L3FR_cjs.ma(g,h);for(let R of g.children)f(R,p+1,S);d=x;return}}let b=chunk6KA3L3FR_cjs.ma(g,h);for(let y of g.children)f(y,p+1,b);};for(let g of e.children){if(!Ht(o))break;f(g,1,0);}let m=n===null&&r===null?M_:Object.freeze({fields:n??YT,bookmarks:r??UT});return WT.set(e,m),m}var E_=Object.freeze({fieldsByParagraph:null,bookmarkOwners:null}),zT=new WeakMap;function L_(e){let t=zT.get(e);if(t)return t;let n=null,r=null;for(let a of Ei([e])){let i=B_(a);i.fields.length>0&&(n??=new Map).set(a.id,i.fields);for(let l of i.bookmarks)r??=new Map,!r.has(l)&&r.size<C_&&r.set(l,a);}let o=n===null&&r===null?E_:Object.freeze({fieldsByParagraph:n,bookmarkOwners:r});return zT.set(e,o),o}var gm=new WeakMap;function N_(e){let t=e[0],n=e[e.length-1],r=(t?gm.get(t):void 0)??(n?gm.get(n):void 0)??new Map;return t&&gm.set(t,r),n&&gm.set(n,r),r}var hm=new WeakMap;function A_(e){let t=e[0],n=e[e.length-1],r=(t?hm.get(t):void 0)??(n?hm.get(n):void 0)??new Map;return t&&hm.set(t,r),n&&hm.set(n,r),r}function VT(e){return e.length>1&&e.endsWith(".")?e.slice(0,-1):e}var GT=new WeakMap;function KT(e,t=Ye,n){if(!e)return [];let r=`${t}|${n?.cacheKey??""}`,o=GT.get(e),a=o?.get(r);if(a)return a;let i=[];for(let l of chunk6KA3L3FR_cjs.gc(e.root)){if(i.length>=chunk6KA3L3FR_cjs.ec)break;if(!chunk6KA3L3FR_cjs.Zb(l))continue;let d=is(l,t,n);d.length>0&&i.push(d);}return o?ya(o,r,i):GT.set(e,new Map([[r,i]])),i}var $T=new WeakMap;function D_(e,t,n,r,o,a){let i=new Map,l=[],d=0,s=F=>{for(let I of F){let v=L_(I);if(l.push(v),!!v.fieldsByParagraph)for(let[T,k]of v.fieldsByParagraph){if(d>=I_)break;i.set(T,k),d+=k.length;}}};if(s(e),n){for(let F of KT(n.footnotesPart,o,a))s(F);for(let F of KT(n.endnotesPart,o,a))s(F);}if(i.size===0)return null;let c=new Set;for(let F of i.values())for(let I of F)I.spec&&c.add(I.spec.bookmark);let u=new Map;for(let F of l)if(F.bookmarkOwners)for(let[I,v]of F.bookmarkOwners)c.has(I)&&!u.has(I)&&u.set(I,v);let f=new Map,m=new Map,g=new Map;for(let[F,I]of i)for(let v of I){if(!v.autonum||!$e(v.revisions,o,a))continue;let T=(g.get(v.autonum.kind)??0)+1;g.set(v.autonum.kind,T);let k=DR(v.autonum,T);k.length!==0&&(f.set(v.anchorId,k),m.has(F)||m.set(F,k));}let p=F=>{let I=Rr(F);if(I.pageRef)return null;let v=u.get(F.bookmark);if(!v)return null;if(I.noteRef){if(r===void 0)return null;let k=jT(v,F.bookmark);return k===null?null:_T(e,r).get(k)??null}if(F.numberSwitch!==null){let k=t?.get(v.id);if(!k){if(I.suppressNonDelimiterText)return null;let D=m.get(v.id);return D!==void 0?VT(D):null}let O=rT(k),L=O!==void 0?Lk(O,F.numberSwitch==="n",I.suppressNonDelimiterText):null,H=!I.suppressNonDelimiterText&&k.numFmt!=="bullet"&&k.numFmt!=="none"&&k.markerText.length>0?k.markerText:null,A=L??H;return A===null?null:VT(A)}if(I.suppressNonDelimiterText)return null;let T=hw(v,F.bookmark);return T.length>0?T:null},h=new Map,b=F=>{let I=Rr(F),v=`${I.suppressNonDelimiterText?"t":""}${I.noteRef?"x":""}`,T=`${F.numberSwitch??"-"}${v}\0${F.bookmark}`;if(h.has(T))return h.get(T)??null;let k=p(F);return h.set(T,k),k},y=N_(e),x=A_(e),S=new Map,R=new Map,P=new Map,w=[];for(let[F,I]of i){let v=[];for(let k of I){if(k.spec===null){let A=k.autonum?f.get(k.anchorId)??null:null;v.push(A!==null?`a${A}`:`c${k.cached}`);continue}if(Rr(k.spec).pageRef){let A=u.get(k.spec.bookmark);if(A){let D=x.get(k.anchorId);D===void 0&&x.size<HT&&(D=Object.freeze({}),x.set(k.anchorId,D)),D!==void 0&&R.set(k.anchorId,{spec:k.spec,projection:{targetParagraphId:A.id,cached:k.cached,calibration:D}});}v.push(`c${k.cached}${A?.id??""}`);continue}let O=b(k.spec),L=y.get(k.anchorId);L===void 0&&(L=k.cached.length===0||O!==null&&sy(O)===k.cached,k.cached.length>0&&y.size<HT&&y.set(k.anchorId,L));let H=L?O:null;S.set(k.anchorId,{spec:k.spec,live:H}),v.push(H!==null?`l${H}`:`c${k.cached}`);}let T=v.join("");P.set(F,T),w.push(F,T);}return {valuesToken:ie(w),tokenForParagraph:F=>P.get(F)??"",liveValueOf:(F,I)=>{let v=S.get(F);return !v||v.live===null||v.spec.bookmark!==I.bookmark||v.spec.numberSwitch!==I.numberSwitch||Rr(v.spec)!==Rr(I)?null:v.live},autonumValueOf:F=>f.get(F)??null,pageRefProjectionOf:(F,I)=>{let v=R.get(F);return !v||v.spec.bookmark!==I.bookmark||Rr(v.spec)!==Rr(I)?null:v.projection}}}function kZ(e,t,n){return dy(e,t,n,void 0)}function dy(e,t,n,r,o=Ye,a){let i=n?.footnotesPart??null,l=n?.endnotesPart??null,d=$T.get(e);if(d&&d.listItems===t&&d.footnotesPart===i&&d.endnotesPart===l&&d.noteNumbering===r&&d.displayMode===o&&d.authorFilterKey===(a?.cacheKey??""))return d.context;let s=D_(e,t,n,r,o,a);return $T.set(e,{listItems:t,footnotesPart:i,endnotesPart:l,noteNumbering:r,displayMode:o,authorFilterKey:a?.cacheKey??"",context:s}),s}function XT(e,t){let n=[];for(let r of Ei([e])){let o=t.tokenForParagraph(r.id);o&&n.push(o);}return n.join(";")}var ka=61440,oc=61695,cy=128;function ds(e){return e.kind==="generic"&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName==="sym"}function qT(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunk6KA3L3FR_cjs.da||n.namespaceUri===""))return n.value}}function __(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function ym(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 cs(e){if(!ds(e))return null;let t=__(qT(e,"char"));if(t===null)return null;let n=qT(e,"font"),r=n&&n.length<=cy?n:null,o=ra(r),a=o&&t<=255&&t+ka<=oc?t+ka:t;if(o&&a>=ka&&a<=oc){let i=ai(String.fromCodePoint(a),r),l=i.codePointAt(0)<ka;return {text:i,font:r,unicode:l}}return ym(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function uy(e,t,n){if(!t.font)return {props:e,style:je(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font,eastAsia:t.font,hint:"default"}}];return {props:r,style:je(r,n)}}var j_=256,H_=9;function W_(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
8
- `||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&&!`
9
- \r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}function z_(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>H_)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 bm(e){if(e.length===0||e.length>j_)return null;let t=W_(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=z_(t[1]);if(r===null)return null;let o=null,a=null,i=false;for(let l=2;l<t.length;l+=1){let d=t[l];if(d.quoted||!d.value.startsWith("\\"))continue;let s=d.value.toLowerCase();if(s==="\\f"){let c=t[l+1];c&&c.value.length>0&&c.value.length<=cy&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,l+=1);continue}if(s==="\\s"){let c=t[l+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(l+=1,/^\d{1,3}$/.test(c.value))){let u=Number(c.value);u>=1&&u<=999&&(a=u);}continue}s==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function xm(e,t,n){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font,eastAsia:e.font,hint:"default"}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...t,...r]:t,a=je(o,n);if(e.unicode)return ym(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(ra(i)){let l=e.code<=255&&e.code+ka<=oc?e.code+ka:e.code;if(l>=ka&&l<=oc)return {text:ai(String.fromCodePoint(l),i),props:o,style:a}}return ym(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function Sm(){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 l=a===t,s=l&&i&&!(n&&!r)?Do(e.kind,i,e.picture):"";return o(),l?s:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}function V_(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:d,themeFonts:s}=e,c="",u,f,m=false,g=false,p=hi(),h=Sm(),b={left:chunkEHT4LKKZ_cjs.b},y=chunkEHT4LKKZ_cjs.a(t,b),x=0,S=()=>y===null||y.visible(),R=(F,I,v)=>{let T=v!==void 0&&_f(v);u&&(!m||T)||(u=F,f=I,m=T);},P=(F,I,v)=>{if(!(F.kind==="textValue"||I>jt)){for(let T of F.children)if(T.kind!=="textValue"){if(!Ht(o))return;if(T.kind==="run"){let k=Co(T,l,d),O=je(k,s);for(let L of T.children){if(L.kind==="runProperties")continue;if(rn(L,"begin")){y?.consume(L),yi(p),p.nesting===1&&h.reset();continue}if(vo(L)){bi(p,L,o,I+1);continue}if(rn(L,"separate")){y?.consume(L);let C=p.nesting,M=p.phase,_=xi(p);if(C===1||M==="result"&&!p.nestingOverflow){let U=S()&&!Vl(p);h.onSeparate(r&&U?_:null,C);}continue}if(rn(L,"end")){y?.consume(L);let C=h.onEnd(p.nesting,r);C!==null&&(c+=C),Si(p);continue}if(chunk6KA3L3FR_cjs.ue(L)||!S())continue;if(ds(L)){if($e(v,i,e.authorFilter)&&(g=true),h.active){h.noteResult(!O.hidden&&$e(v,i,e.authorFilter));continue}let C=cs(L);if(!C?.unicode||O.hidden||!$e(v,i,e.authorFilter))continue;R(k,O),c+=C.text;continue}let H=Ld(L);if(H.length===0)continue;let A=Vr(v),D=!$e(v,i,e.authorFilter)||L.kind==="deletedText"&&!A;D||(g=true);let j=O.hidden||D;if(h.active){h.noteResult(!j),j||R(k,O,H);continue}j||(R(k,O,H),c+=H);}continue}if(chunk6KA3L3FR_cjs.pe(T)){if(!S())continue;let k=y,O=x;y=k===null||O>=chunk6KA3L3FR_cjs.Ae?null:chunkEHT4LKKZ_cjs.a(T,b),x=O+1,w(T,I,v),y=k,x=O;continue}if(T.kind==="hyperlink"){P(T,I+1,v);continue}if(gn(T)&&v.length<rf){let k=Rn(T);P(T,I+1,k?Nn(v,k):v);continue}P(T,I+1,v);}}},w=(F,I,v)=>{let T=h.active?null:Ml(chunk6KA3L3FR_cjs.re(F)??"");if(T&&r){if(!$e(v,i,e.authorFilter))return;let k=c.length;P(F,I+1,v),c=c.slice(0,k),c+=Do(T.kind,r,T.picture);return}P(F,I+1,v);};return P(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:g}}function ZT(e){let t=G_(e);if(!t||e.currentLink)return t;let n=chunk6KA3L3FR_cjs.re(e.simple)??"",r=Gf(n)??Vf(n),o=r?e.projectFieldLink?.(r):null;return o?{...t,link:o}:t}function G_(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=V_(e),i=chunk6KA3L3FR_cjs.re(t)??"",l=a.resultProps??r,d=Hd(i),s=jf(d&&!cw(t)?d:null,n);if(s!==void 0){let p=a.resultStyle??je(r,o);return p.hidden?null:{text:s,props:l,style:p}}let c=Ml(i);if(c&&n){let p=a.resultStyle??je(r,o);return p.hidden?null:{text:Do(c.kind,n,c.picture),props:l,style:p}}if(c&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let p=a.resultStyle??je(r,o);if(p.hidden)return null;let b=c.picture!==void 0&&Sa(c.kind,e.bodyPageFields.format)?c.picture:void 0;return {text:rm(c.kind,b,e.bodyPageFields.format),props:l,style:p,pageField:b===void 0?{kind:c.kind}:{kind:c.kind,picture:b}}}let u=bm(i);if(u){let p=xm(u,l,o);if(p)return p.style.hidden?null:{text:p.text,props:p.props,style:p.style}}if(e.refFields){let p=ua(i);if(p){let h=e.refFields.liveValueOf(t.id,p);if(h!==null){let b=a.resultStyle??je(r,o);return b.hidden?null:{text:h,props:l,style:b}}if(e.bodyPageFields&&e.refFields.pageRefProjectionOf){let b=e.refFields.pageRefProjectionOf(t.id,p);if(b){let y=a.resultStyle??je(r,o);if(y.hidden)return null;if(a.text.length>0)return {text:a.text,props:l,style:y,pageRef:b};if(!a.sawResultContent)return {text:Jl,props:l,style:y,pageRef:b}}}}else if(e.refFields.autonumValueOf&&Pi(i)){let h=e.refFields.autonumValueOf(t.id);if(h!==null){let b=a.resultStyle??je(r,o);return b.hidden?null:{text:h,props:l,style:b}}}}let f=a.text.length===0&&!a.sawResultContent;if(f){let p=Wf(i);if(p){let h=zf(p,e.documentProperties);if(h!==null){let b=a.resultStyle??je(r,o);return b.hidden?null:{text:h,props:l,style:b}}}}let m=f?Hf(i):null;if(m){let p=a.resultStyle??je(r,o);return p.hidden?null:{text:m.display,props:l,style:p}}if(a.text.length===0)return null;let g=a.resultStyle??je(r,o);return g.hidden?null:{text:a.text,props:l,style:g}}var K_="\u2612",$_="\u2610";function U_(e){let t=gi(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function ac(e,t){e.characterStyleSpec=Hd(t),e.symbolSpec=bm(t),!e.symbolSpec&&(e.linkSpec=Gf(t),!e.linkSpec&&(e.formSpec=U_(t),!e.formSpec&&(e.buttonSpec=Hf(t),!e.buttonSpec&&(e.docPropertySpec=Wf(t),!e.docPropertySpec&&(e.linkSpec=Vf(t),e.refSpec=ua(t),!e.refSpec&&(e.autonumSpec=Pi(t)))))));}function h4(e,t){if(t.allowPageFields&&t.hasSeparate&&Fo(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return ac(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!Rr(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null||n.formSpec!==null&&t.hasLegacyFormData}function y4(e,t){if(t.allowPageFields&&Fo(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return ac(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!Rr(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null}function JT(e){if(e.formSpec==="dropdown"&&e.formData?.kind==="dropdown")return {...e.formData,...e.formAccessibleName?{accessibleName:e.formAccessibleName}:{}};if(!(e.formSpec!=="checkbox"||e.formData?.kind!=="checkbox"))return {kind:"checkbox",checked:e.formData.checked,...e.formAccessibleName?{accessibleName:e.formAccessibleName}:{}}}function QT(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?K_:$_;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:je(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===void 0?null:{text:n||"\xA0",props:e.props,style:e.style}}return null}function ev(e,t){let n=jf(e.hasNestedField?null:e.characterStyleSpec,t.pageContext);if(n!==void 0)return {text:n,props:e.props,style:e.style};if(e.symbolSpec){let o=xm(e.symbolSpec,e.props,t.themeFonts);if(o)return {text:o.text,props:o.props,style:o.style}}let r=QT(e,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style};if(e.kind&&t.pageContext)return {text:Do(e.kind,t.pageContext,e.picture??void 0),props:e.props,style:e.style};if(e.refSpec&&t.refFields){let o=t.refFields.liveValueOf(e.beginId,e.refSpec);if(o!==null)return {text:o,props:e.props,style:e.style}}if(e.refSpec&&t.refFields?.pageRefProjectionOf&&t.bodyPageFields){let o=t.refFields.pageRefProjectionOf(e.beginId,e.refSpec);if(o){if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style,pageRefField:o};if(!e.sawResultContent)return {text:Jl,props:e.props,style:e.style,pageRefField:o}}}if(e.autonumSpec&&t.refFields?.autonumValueOf){let o=t.refFields.autonumValueOf(e.beginId);if(o!==null)return {text:o,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 a=e.picture!==null&&Sa(e.kind,t.bodyPageFields.format)?e.picture:void 0;return {text:rm(e.kind,a,t.bodyPageFields.format),props:e.props,style:e.style,pageField:{kind:e.kind,...a!==void 0?{picture:a}:{}}}}if(e.docPropertySpec){let o=zf(e.docPropertySpec,t.documentProperties);if(o!==null)return {text:o,props:e.props,style:e.style}}if(e.buttonSpec)return {text:e.buttonSpec.display,props:e.props,style:e.style}}return null}function Y_(e,t,n,r){r.length===0||n<=t||e.push({start:t,end:n,revisions:r});}function tv(e,t,n){return e?(r,o,a)=>Y_(e,r,o,Sd(a,t,n)):()=>{}}function my(e){return e.capturedResultRevisions?{revisionsOverride:e.resultRevisions,formatSiteOverride:e.resultFormatSite}:{}}function nv(e,t){return t?{...e,changeSites:[...e.changeSites??[],t]}:e}function Ta(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 X_=new Set(["left","center","right"]),q_=new Set(["margin","indent","leftMargin"]),Z_=new Set(["dot","hyphen","underscore","middleDot"]);function py(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunk6KA3L3FR_cjs.da)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunk6KA3L3FR_cjs.da&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:X_.has(t)?t:"left",relativeTo:q_.has(n)?n:"margin",...r!==void 0&&Z_.has(r)?{leader:r}:{}}}function fy(e,t,n,r){return {...e,text:e.text.slice(t,n),start:e.start+t,end:e.start+n,...r?{fontSlot:r}:{}}}function gy(e,t){if(!e.some(({style:s})=>s.fontFamilyEastAsia!==null&&s.fontFamilyEastAsia!==s.fontFamily))return e;let n=[],r=[],o=[];for(let s=0;s<e.length;s+=1){let c=e[s];c.positionalTab||c.breakKind||c.inlineDrawing||c.anchoredAtom||c.equation||c.text.length!==0&&(n.push(s),r.push(c.text),o.push(zP(c.props)&&!ra(c.style.fontFamily)&&!VP(c.props,c.style.fontFamilyEastAsia,t)));}let a=UP(r,o);if(a.length===0)return e;let i=new Map;for(let s of a){let c=i.get(s.segment);c?c.push({from:s.from,to:s.to}):i.set(s.segment,[{from:s.from,to:s.to}]);}let l=[],d=0;for(let s=0;s<e.length;s+=1){let c=e[s];if(n[d]!==s){l.push(c);continue}let u=i.get(d);d+=1;let{style:f}=c;if(!u||f.fontFamilyEastAsia===null||f.fontFamilyEastAsia===f.fontFamily){l.push(c);continue}if(!(!c.projected&&!c.fieldAtom&&!c.noteNav&&c.measureText===void 0&&c.end-c.start===c.text.length)){let p=u.length===1&&u[0].from===0&&u[0].to===c.text.length;l.push(p?{...c,fontSlot:"eastAsia"}:c);continue}let g=0;for(let p of u)p.from>g&&l.push(fy(c,g,p.from,void 0)),l.push(fy(c,p.from,p.to,"eastAsia")),g=p.to;g<c.text.length&&l.push(fy(c,g,c.text.length,void 0));}return l}function rv(e){return e.kind==="drawing"||chunk6KA3L3FR_cjs.Zc(e)||chunk6KA3L3FR_cjs.Hc(e)}function ov(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&&!a.footprintOnly?{recordDeleted:false,emit:true,extras:{anchoredAtom:true}}:{recordDeleted:false,emit:true};let i=Vr(r),l=e.hiddenRun||!$e(r,o,e.authorFilter);return a.hidden||l?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)})}}}function av(e){if(e.kind==="textValue")return;let t=e.children.slice(0,256).find(r=>r.kind!=="textValue"&&r.namespaceUri===chunk6KA3L3FR_cjs.da&&r.localName==="ffData");if(!t||t.kind==="textValue"||t.children.length>256||!t.children.some(r=>r.kind!=="textValue"&&r.namespaceUri===chunk6KA3L3FR_cjs.da&&(r.localName==="checkBox"||r.localName==="ddList"))||t.children.some(r=>r.kind!=="textValue"&&r.namespaceUri===chunk6KA3L3FR_cjs.da&&(r.localName==="entryMacro"||r.localName==="exitMacro")))return;let n=t.children.find(r=>r.kind!=="textValue"&&r.namespaceUri===chunk6KA3L3FR_cjs.da&&r.localName==="name");if(!(!n||n.kind==="textValue"))return n.attributes.slice(0,64).find(r=>r.localName==="val"&&(r.namespaceUri===chunk6KA3L3FR_cjs.da||r.namespaceUri===""))?.value.slice(0,256).replace(/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/g,"").trim()||void 0}function iv(e){let t=chunk6KA3L3FR_cjs.Be(e,{maxNesting:chunk6KA3L3FR_cjs.Ae,maxInstructionChars:chunk6KA3L3FR_cjs.ze}),n=t.filter(i=>i.addressing==="atomic"),r=new Set(n.filter(i=>i.kind==="complex").map(i=>i.node.id)),o=new Set(t.filter(i=>i.kind==="complex"&&i.addressing==="editable-result").map(i=>i.node.id)),a=new Set;for(let i of n)for(let l of i.removeNodeIds)a.add(l);return {atomBeginIds:r,editableResultBeginIds:o,coveredIds:a}}Object.freeze({marks:Object.freeze(new Map)});function us(e,t){return chunk6KA3L3FR_cjs.Nb(e,t)}function sv(e,t){if(!chunk6KA3L3FR_cjs.cc(e))return null;if(chunk6KA3L3FR_cjs.Ub(e)||chunk6KA3L3FR_cjs.Vb(e))return {text:t?.measureSeparatorMarkers?chunk6KA3L3FR_cjs.Hb:"",...t?.measureSeparatorMarkers?{noteSeparator:chunk6KA3L3FR_cjs.Ub(e)?"separator":"continuationSeparator"}:{},projected:true,kind:null,noteId:null};let n=chunk6KA3L3FR_cjs.Sb(e),r=chunk6KA3L3FR_cjs._b(e)??chunk6KA3L3FR_cjs.$b(e);if(!r)return null;let o=chunk6KA3L3FR_cjs.Xb(e),a=o!==null?us(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?J_(a,r)??null:null,l=a,d=l!==void 0?n?"to-note":"to-body":void 0,s={projected:true,kind:r,noteId:i,...d?{nav:d}:{},...l?{scopeId:l}:{}};if(n&&o!==null&&chunk6KA3L3FR_cjs.ac(e))return {text:"",...s};if(!t||!a)return {text:"",...s};let c=t.marks.get(a);return c==null?{text:"",...s}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...s}:{text:c,...s}}function J_(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 dv(e){return chunk6KA3L3FR_cjs.Sb(e)||chunk6KA3L3FR_cjs.Tb(e)||chunk6KA3L3FR_cjs.Ub(e)||chunk6KA3L3FR_cjs.Vb(e)}function Q_(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 lv=new WeakMap;function cv(e){if(!e)return "";let t=lv.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null,...e.measureSeparatorMarkers?[true]:[]]),r=`${e.marks.size}:${Q_(n)}`;return lv.set(e,r),r}var fs=.7,ej=1.25,tj="Cambria Math";function Rm(e){return Wu(e,tj)}function Jr(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function Un(e,t,n){return Object.freeze({...e,box:Jr(t,n,e.box.width,e.box.height)})}var nj=4,rj=8,uv=new WeakMap;function oj(e){let t=Rm(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,t.ligatures?.standard?1:0,t.ligatures?.contextual?1:0,t.ligatures?.historical?1:0,t.ligatures?.discretionary?1:0].join("|")}function aj(e,t){if(t===void 0)return {projections:new WeakMap};let n=uv.get(e);n||(n=new Map,uv.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=nj){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function ms(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 fv(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(ms(t,n,r));return r.metrics.set(n,a),a}function Pm(e,t,n,r,o,a){let i=ms(r,o,a),l=fv(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:Jr(0,0,et(t,i,n),l.height),baseline:l.baseline})}function ij(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:Jr(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 l=Un(i,o,n-i.baseline);return o+=i.box.width,l});return Object.freeze({kind:"row",items:Object.freeze(a),box:Jr(0,0,o,n+r),baseline:n})}function ur(e,t,n,r,o){switch(e.kind){case "text":return Pm("text",e.value,t,n,r,o);case "fallback":return Pm("fallback",e.text||"\u2026",t,n,r,o);case "row":return ij(e.items.map(a=>ur(a,t,n,r,o)),fv(t,n,r,o));case "fraction":{let a=ms(n,r,o),i=ur(e.numerator,t,n,r*fs,o),l=ur(e.denominator,t,n,r*fs,o),d=Math.max(.75,a.fontSizePt*.08),s=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,l.box.width)+d*2,f=i.box.height+s,m=f+c+s,g=m+l.box.height,p=Math.min(g,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:Un(i,(u-i.box.width)/2,0),denominator:Un(l,(u-l.box.width)/2,m),bar:Jr(d/2,f,u-d,c),box:Jr(0,0,u,g),baseline:p})}case "radical":{let a=ms(n,r,o),i=ur(e.radicand,t,n,r,o),l=Pm("text","\u221A",t,n,r,o),d=e.degree?ur(e.degree,t,n,r*.55,o):void 0,s=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=s+c,f=d?Math.max(0,d.box.width*.65):0,m=f+l.box.width,g=u+i.baseline,p=Math.max(u+i.box.height,g+(l.box.height-l.baseline));return Object.freeze({kind:"radical",sign:Un(l,f,g-l.baseline),radicand:Un(i,m,u),...d?{degree:Un(d,0,0)}:{},bar:Jr(m,0,i.box.width,s),box:Jr(0,0,m+i.box.width,p),baseline:g})}case "script":{let a=ms(n,r,o),i=ur(e.base,t,n,r,o),l=e.subscript?ur(e.subscript,t,n,r*fs,o):void 0,d=e.superscript?ur(e.superscript,t,n,r*fs,o):void 0,s=Math.max(.4,a.fontSizePt*.04),c=i.box.width+s,u=0,f=d?Math.max(0,d.box.height-i.baseline*.45):0,m=f+i.baseline,g=m+a.fontSizePt*.08,p=c+Math.max(l?.box.width??0,d?.box.width??0,-s),h=Math.max(f+i.box.height,d?u+d.box.height:0,l?g+l.box.height:0);return Object.freeze({kind:"script",base:Un(i,0,f),...l?{subscript:Un(l,c,g)}:{},...d?{superscript:Un(d,c,u)}:{},box:Jr(0,0,p,h),baseline:m})}case "nary":{let a=ms(n,r,o),i=Pm("text",e.operator,t,n,r*ej,o),l=ur(e.body,t,n,r,o),d=e.lowerLimit?ur(e.lowerLimit,t,n,r*fs,o):void 0,s=e.upperLimit?ur(e.upperLimit,t,n,r*fs,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,d?.box.width??0,s?.box.width??0),m=s?s.box.height+c:0,g=m+i.baseline,p=m+i.box.height+(d?c:0),h=u+c,b=g-l.baseline,x=-Math.min(0,m,b,d?p:0),S=g+x,R=Math.max(m+i.box.height,d?p+d.box.height:0,b+l.box.height)+x;return Object.freeze({kind:"nary",operator:Un(i,(u-i.box.width)/2,m+x),body:Un(l,h,b+x),...d?{lowerLimit:Un(d,(u-d.box.width)/2,p+x)}:{},...s?{upperLimit:Un(s,(u-s.box.width)/2,x)}:{},box:Jr(0,0,h+l.box.width,R),baseline:S})}}}function lj(e,t,n){let r=Rm(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:ur(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function mv(e,t){let n=aj(e,t);return (r,o)=>{let a=oj(o),i=n.projections.get(r),l=i?.get(a);if(l&&i)return i.delete(a),i.set(a,l),l;let d=lj(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=rj){let s=i.keys().next().value;s!==void 0&&i.delete(s);}return i.set(a,d),d}}function pv(e,t){let n=_n(e[0]);if(!n)return;let r=[];for(let o of n){let a=[],i=[],l=[...e];l[0]=o.paragraph,l[1]=o.runProperties;let d=o.base+chunk6KA3L3FR_cjs.cf(o.paragraph).length;l[16]=e[16]?.filter(s=>s.start>=o.base&&s.end<=d).map(s=>({...s,start:s.start-o.base,end:s.end-o.base})),l[17]=e[17]?.filter(s=>s.start>=o.base&&s.end<=d).map(s=>({...s,start:s.start-o.base,end:s.end-o.base})),l[7]=a,l[18]=i;for(let s of hy(l,t))r.push({...s,start:s.start+o.base,end:s.end+o.base});for(let s of a)e[7]?.push({...s,start:s.start+o.base,end:s.end+o.base});for(let s of i)e[18]?.push({...s,start:s.start+o.base,end:s.end+o.base});}return r}function hy(e,t){return t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15],e[16],e[17],e[18])}function Bi(...e){return pv(e,yy)??hy(e,yy)}function yy(e,t=[],n,r,o,a,i=Ye,l,d,s,c,u,f=false,m,g,p=false,h,b,y){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let x=tv(y,i,g),S=null,R=[],P=0;r=lw(r,p?void 0:b,()=>O?.atomic?O.atomStart:P);let w,{atomBeginIds:F,editableResultBeginIds:I,coveredIds:v}=iv(e),T=hi(),k=Oo(),O=null,L=null,H=Sm(),A=or,D=(W,z,$,V,te,Q,Y)=>{if(W.length===0&&!V&&!Y?.inlineDrawing)return;let de=Y?.linkOverride??w,J=of(Y?.revisionsOverride??A,z,i,g);if(J===null)return;let ee=nv(J,Y?.revisionsOverride?Y.formatSiteOverride??null:S),re=de?{link:de}:{};if(V){R.push({text:W,...ee,style:$,start:te,end:Q,projected:true,...Y?.measureText!==void 0?{measureText:Y.measureText}:{},...Y?.noteNav?{noteNav:Y.noteNav}:{},...Y?.noteSeparator?{noteSeparator:Y.noteSeparator}:{},...Y?.inlineDrawing?{inlineDrawing:Y.inlineDrawing}:{},...Y?.anchoredAtom?{anchoredAtom:true}:{},...Y?.equation?{equation:Y.equation}:{},...Y?.fieldAtom?{fieldAtom:Y.fieldAtom}:{},...re});return}W.length!==0&&R.push({text:W,...ee,style:$,start:te,end:Q,...Y?.positionalTab?{positionalTab:Y.positionalTab}:{},...Y?.breakKind?{breakKind:Y.breakKind}:{},...re});},j=()=>{if(!O||!O.atomic){O=null,L=null;return}let W=O.atomStart,z=W+1;if(O.style.hidden){O=null,L=null;return}if(!$e(O.resultRevisions,i,g)){l&&Vr(O.resultRevisions)&&Ta(l,W,z),x(W,z,O.resultRevisions),O=null,L=null;return}let{resultLink:$,linkSpec:V,formField:te}=O,Q=my(O),Y=JT(O),de,J=()=>{if(de)return de;let re=!$&&V?c?.(V)??null:null,oe=$??re;return de={...Q,...oe?{linkOverride:oe}:{},fieldAtom:{formField:te,...Y?{formControl:Y}:{}}},de},ee=ev(O,{pageContext:n,themeFonts:s,documentProperties:u,bodyPageFields:f,...m?{refFields:m}:{}});if(ee){let re=J(),oe=ee.pageField||ee.pageRefField?{...re,fieldAtom:{formField:O.formField,...ee.pageField?{pageField:ee.pageField}:{},...ee.pageRefField?{pageRef:ee.pageRefField}:{}}}:re;D(ee.text,ee.props,ee.style,true,W,z,oe);}O=null,L=null;},C=()=>{if(!O)return;let W=!O.resultLink&&O.linkSpec?c?.(O.linkSpec)??null:null,z=$=>W&&!$.link?{...$,link:W}:$;if(O.atomic){P=O.atomStart;for(let $ of O.buffered)R.push({...z($),start:P,end:P+($.end-$.start)}),P+=$.end-$.start;O.cachedText.length>0&&O.buffered.length===0&&(D(O.cachedText,O.props,O.style,false,P,P+O.cachedText.length,{...my(O),...W?{linkOverride:W}:{}}),P+=O.cachedText.length);}else {for(let $ of O.buffered)R.push(z($));P=O.bufferOffset;}O=null,L=null;},M=(W,z,$)=>{if(rv(W)){let J=P;P+=1;let ee=P;if(!d)return;let re=ov({node:W,layout:d,hiddenRun:$.hidden,revisions:A,displayMode:i,authorFilter:g});re.recordDeleted&&l&&Ta(l,J,ee),re.emit||x(J,ee,A),re.emit&&D("\uFFFC",z,$,true,J,ee,re.extras);return}if(dv(W)){let J=sv(W,a),ee=P,re=ee+1;if(P=re,$.hidden||!J||J.text.length===0&&!J.measureText)return;let oe=J.scopeId&&J.nav?{scopeId:J.scopeId,direction:J.nav}:void 0;D(J.text.length>0?J.text:J.measureText??"",z,$,true,ee,re,{...J.measureText!==void 0?{measureText:J.measureText}:{},...oe?{noteNav:oe}:{},...J.noteSeparator?{noteSeparator:J.noteSeparator}:{}});return}if(Zg(W)){!$.hidden&&$e(A,i,g)&&D("\u2011",z,$,true,P,P);return}let V=py(W);if(V){$.hidden||D(" ",z,$,false,P,P,{positionalTab:V});return}if(ds(W)){let J=cs(W);if(!J||$.hidden||!$e(A,i,g))return;let ee=uy(z,J,s);D(J.text,ee.props,ee.style,true,P,P);return}let te=Ld(W);if(te.length===0)return;let Q=Vr(A),Y=!$e(A,i,g),de=$.hidden||Y||W.kind==="deletedText"&&!Q;Y&&!$.hidden&&x(P,P+te.length,A),de||D(te,z,$,false,P,P+te.length,{...W.kind==="hardBreak"?{breakKind:chunk6KA3L3FR_cjs.Va(W)}:{}}),Q&&l&&Ta(l,P,P+te.length),P+=te.length;},_=(W,z)=>{if(W.kind!=="run")return;let $=Co(W,t,r),V=je($,s);S=Zf(W.children.find(Q=>Q.kind==="runProperties"));let te=Q=>{if(!O)return;let Y=Q!==void 0&&_f(Q);(!O.capturedResultStyle||O.capturedResultStyleIsDirectional&&!Y)&&(O.props=$,O.style=V,O.capturedResultStyle=true,O.capturedResultStyleIsDirectional=Y),O.capturedResultRevisions||(O.resultRevisions=A,O.resultFormatSite=S,O.capturedResultRevisions=true,!O.resultLink&&w&&(O.resultLink=w));};for(let Q of W.children){if(!Ht(k)){if(C(),wd(T),H.reset(),Q.kind==="runProperties"||rn(Q,"begin")||rn(Q,"separate")||rn(Q,"end")||vo(Q)||v.has(Q.id)&&L===null)continue;M(Q,$,V);continue}if(Q.kind!=="runProperties"){if(rn(Q,"begin")){O?.atomic&&(O.hasNestedField=true);let Y=F.has(Q.id);if(yi(T),T.nesting===1){C(),H.reset(),L=Y?Q.id:null;let de=chunk6KA3L3FR_cjs.we(Q);O={kind:null,picture:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null,formData:de,formAccessibleName:de?av(Q):void 0,beginId:Q.id,atomic:Y,editableResult:I.has(Q.id),atomStart:P,props:$,style:V,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:P,resultRevisions:A,resultFormatSite:S,capturedResultRevisions:A.length>0,formField:chunk6KA3L3FR_cjs.ve(Q),...w?{resultLink:w}:{}},Y&&(P+=1);}continue}if(vo(Q)){bi(T,Q,k,z+1);continue}if(rn(Q,"separate")){let Y=T.nesting===1&&T.phase==="instruction",de=T.nesting,J=xi(T);if(Y&&O){O.kind=J?.kind??null,O.picture=J?.picture??null;let ee=El(T);!O.kind&&!ee.overflow&&!T.nestingOverflow&&ac(O,ee.instruction),O.props=$,O.style=V;}else if(O?.atomic&&T.phase==="result"&&!T.nestingOverflow){let ee=n&&!Vl(T);H.onSeparate(ee?J:null,de);}continue}if(rn(Q,"end")){let Y=T.nesting===1;if(Y&&O?.atomic&&T.phase==="instruction"){let J=El(T);!J.overflow&&!T.nestingOverflow&&ac(O,J.instruction);}let de=H.onEnd(T.nesting,n);de!==null&&O?.atomic&&(O.cachedText+=de),Si(T),Y&&(O?.atomic?j():C());continue}if(!(Vl(T)&&O?.atomic)){if(O&&vR(T)){if(ds(Q)){if(O.atomic){if($e(A,i,g)&&(O.sawResultContent=true),H.active){H.noteResult(!V.hidden&&$e(A,i,g));continue}if(!V.hidden&&$e(A,i,g)){let ye=cs(Q);ye?.unicode&&(te(),O.cachedText+=ye.text);}continue}let B=cs(Q);if(!B||V.hidden)continue;let pe=uy($,B,s),Ie=of(A,pe.props,i,g);if(Ie===null)continue;O.buffered.push({text:B.text,style:pe.style,start:P,end:P,projected:true,...Ie,...w?{link:w}:{},fieldAtom:{formField:O.formField}});continue}let Y=O.atomic?null:py(Q),de=Zg(Q),J=Y?" ":de?"\u2011":Ld(Q),ee=Y||de?0:J.length;if(J.length===0)continue;let re=Vr(A),oe=of(A,$,i,g),ue=oe===null||Q.kind==="deletedText"&&!re;if(O.atomic&&!ue&&(O.sawResultContent=true),oe===null&&(O.atomic?x(O.atomStart,O.atomStart+1,A):x(P,P+ee,A)),re&&l&&(O.atomic?Ta(l,O.atomStart,O.atomStart+1):Ta(l,P,P+ee)),ue){O.atomic&&H.active&&H.noteResult(false),O.atomic||(P+=ee,O.bufferOffset=P);continue}if(O.atomic){if(H.active){if(H.noteResult(!V.hidden),V.hidden)continue;te(J);continue}if(V.hidden)continue;te(J),O.cachedText+=J;continue}if(V.hidden){P+=ee,O.bufferOffset=P;continue}O.capturedResultStyle||(O.props=$,O.style=V,O.capturedResultStyle=true),O.buffered.push({text:J,style:V,start:P,end:P+ee,...Y?{positionalTab:Y}:{},...de?{projected:true}:{},...oe,...w?{link:w}:{},fieldAtom:{formField:O.formField}}),P+=ee,O.bufferOffset=P;continue}v.has(Q.id)&&L===null&&F.size>0,M(Q,$,V);}}}};if(!Ht(k))return gy(p?xh(e,R,t,r,s,i,g,h):R,s);let U=chunk6KA3L3FR_cjs.Kc(),ne=(W,z)=>{O?.atomic&&(O.hasNestedField=true);let $=P;if(P+=1,W.kind==="textValue")return;if(Vr(A)&&l&&Ta(l,$,$+1),!$e(A,i,g)){x($,$+1,A);return}if(O?.atomic&&Vl(T))return;let V=ZT({simple:W,depth:z,pageContext:n,budget:k,revisions:A,displayMode:i,authorFilter:g,inheritedRunProperties:t,cascadeRuns:r,themeFonts:s,currentLink:w,projectFieldLink:c,documentProperties:u,bodyPageFields:f,...m?{refFields:m}:{}});V&&D(V.text,V.props,V.style,true,$,$+1,{fieldAtom:{formField:false,...V.pageField?{pageField:V.pageField}:{},...V.pageRef?{pageRef:V.pageRef}:{}},...V.link?{linkOverride:V.link}:{}});},X=(W,z,$,V)=>{if(V>=chunk6KA3L3FR_cjs.la)return;let te=chunk6KA3L3FR_cjs.Xd(W);if(te){let Y=P++;Vr(A)&&l&&Ta(l,Y,P);let de=Rm(je(t,s));return !de.hidden&&!$e(A,i,g)&&x(Y,P,A),de.hidden||!$e(A,i,g)?void 0:D("\uFFFC",t,de,true,Y,P,{equation:te})}if(chunk6KA3L3FR_cjs.pe(W)){ne(W,z);return}if(W.kind==="run"){_(W,z),S=null;return}if(chunk6KA3L3FR_cjs.rc(W)){if(z>jt)return;for(let Y of chunk6KA3L3FR_cjs.uc(W))X(Y,z+1,$,V+1);return}if(z>jt)return;let Q=W.kind!=="textValue"&&"localName"in W?chunk6KA3L3FR_cjs.Jc($,W):$;if(W.kind==="hyperlink"){let Y=w;w=o?.(W)??void 0;for(let de of W.children)X(de,z+1,Q,V+1);w=Y;return}if(gn(W)){let Y=Rn(W);if(!Y||!Ht(k))return;let de=A;A=Nn(de,Y);for(let J of W.children)X(J,z+1,Q,V+1);A=de;return}if(chunk6KA3L3FR_cjs.na(W))for(let Y of W.children)X(Y,z+1,Q,V+1);};for(let W of e.children)X(W,1,U,0);return C(),gy(p?xh(e,R,t,r,s,i,g,h):R,s)}function va(e){return e>=4352&&e<=4607||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=44032&&e<=55295}var Rt=e=>wi(e)||va(e),xy=e=>/[\u1100-\u11ff\u2e80-\u318f\u31c0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff01-\uff9f\u{20000}-\u{323af}]/u.test(e),gv=e=>e>=65296&&e<=65305||e>=65313&&e<=65338||e>=65345&&e<=65370,by=e=>!e.projected&&!e.positionalTab&&!e.inlineDrawing&&!e.equation&&e.end-e.start===e.text.length;function wm(e,t){if(!t.characterWrap&&!e.some(R=>/[\u1100-\u11ff\u2e80-\ud7ff\uf900-\uffef\u{20000}-\u{323af}]/u.test(R.text)||Gd(R.props)))return null;let n=new Map,r=[],o=0;for(let R of e){n.set(R,o);let P=by(R)?R.text:"\uFFFC".repeat(Math.min(R.text.length,1));r.push(P),o+=P.length;}let a=r.join(""),i=pt(a),l=new Map([[0,"opens"],[a.length,"opens"]]),d=new Set(Io(a,false)),s=new Set,c=/[$¥£₩+-$£¥+\-]?[0-90-9]+(?:[.,:/.,:/][0-90-9]+)*(?:[%%‰])?|[A-Za-z]+/gu;for(let R of a.matchAll(c))if(/[0-9A-Za-z]/u.test(R[0]))for(let P=R.index+1;P<R.index+R[0].length;P++)s.add(P);let u=0,f=0,m=i.some(R=>va(R.text.codePointAt(0))),g=m?"ko-kr":/[\u3040-\u30ff\uff66-\uff9f]/u.test(a)?"ja-jp":"zh-cn",p=[],h=false;for(let R of i)/^[\p{P}\p{S}\p{M}]+$/u.test(R.text)||(h=Rt(R.text.codePointAt(0))),p.push(h||Rt(R.text.codePointAt(0)));let b=e.map(R=>Gd(R.props)),y=new Map,x=R=>{let P=y.get(R);return P||(P=Bw(R,t.settings),y.set(R,P)),P};for(let R=1;R<i.length;R++){let P=i[R-1],w=i[R],F=w.utf16From;for(;u+1<e.length&&n.get(e[u+1])<=F;)u++;for(;f+1<e.length&&n.get(e[f+1])<=P.utf16From;)f++;let I=wr(P.text),v=P.text.codePointAt(0),T=w.text.codePointAt(0);if(/[\t\n\f\ufffc]/u.test(P.text+w.text)){l.set(F,"opens");continue}if(r0.test(P.text+w.text)){l.set(F,"forbidden");continue}let k=false;if(t.kinsoku){let D=b[u]??(t.settings&&(Rt(T)||p[R-1]&&/^[\p{P}\p{S}]+$/u.test(w.text))?g:void 0),j=b[f]??(t.settings&&(Rt(v)||Rt(T)&&/^[\p{P}\p{S}]+$/u.test(P.text))?g:void 0);if(D||j)k=(D?x(D).before.includes(String.fromCodePoint(T)):Fd.has(T))||(j?x(j).after.includes(String.fromCodePoint(I)):Od.has(I));else if(k=Fd.has(T)||Od.has(I),p[R-1]||Rt(T)){let C=va(I)||va(T)?"ko-kr":"ja-jp",M=x(C);k||=p[R-1]&&M.before.includes(String.fromCodePoint(T))||Rt(T)&&M.after.includes(String.fromCodePoint(I));}}if(k){l.set(F,"forbidden");continue}if(s.has(F)){l.set(F,"continues");continue}let O=Rt(v)&&!gv(v)||Rt(T)&&!gv(T)||p[R-1]&&/^[\p{P}\p{S}]+$/u.test(P.text),L=t.characterWrap&&(!m||va(v)&&va(T)),H=va(v)&&va(T)&&!L,A=d.has(F)||/\s$/u.test(P.text)||/^\s/u.test(w.text)||O&&!H||L;l.set(F,A?"opens":"continues");}let S=new Map;for(let R of e){let P=n.get(R);if(!by(R)){S.set(R,Io(R.text,false));continue}let w=[];for(let F=1;F<R.text.length;F++){let I=l.get(P+F);(I==="opens"||s.has(P+F)&&I==="continues")&&w.push(F);}w.push(R.text.length),S.set(R,w);}return {boundaries:R=>S.get(R),decision:(R,P)=>by(R)?l.get(n.get(R)+P)??"forbidden":"opens",cutAllowed:(R,P,w)=>l.get(n.get(R)+P+w)!=="forbidden"&&l.has(n.get(R)+P+w)}}function hv(e,t,n){if(!e.some(s=>xy(s.text)))return null;if(e.some(s=>s.text.includes(" ")||s.wrapAdvanceBefore))return e;let r=[];for(let s of e){if(s.projected||s.equation||s.range.end-s.range.start!==s.text.length||!xy(s.text)){r.push(s);continue}let c=pt(s.text),u=[],f=0;for(let b=1;b<c.length;b++)(Rt(wr(c[b-1].text))||Rt(c[b].text.codePointAt(0)))&&(u.push({from:f,to:c[b].utf16From}),f=c[b].utf16From);if(u.push({from:f,to:s.text.length}),u.length===1){r.push(s);continue}let m=Ve(s.style,s.fontSlot),g=u.map(b=>et(s.text.slice(b.from,b.to),m,t)),p=g.reduce((b,y)=>b+y,0),h=s.box.x;for(let b=0;b<u.length;b++){let y=u[b],x=p>0?g[b]*s.box.width/p:0,{caretEdges:S,...R}=s;r.push({...R,text:s.text.slice(y.from,y.to),range:{...s.range,start:s.range.start+y.from,end:s.range.start+y.to},box:{...s.box,x:h,width:x}}),h+=x;}}let o=new Set,a=r.map(s=>({text:s.text,props:s.props,style:s.style,start:s.range.start,end:s.range.end,projected:!!(s.projected||s.equation)})),i=wm(a,kh);for(let s=1;s<r.length;s++){let c=r[s-1],u=r[s],f=wr(c.text),m=u.text.codePointAt(0);f===void 0||m===void 0||u.lineEndWhitespace||u.text===`
10
- `||(c.text.endsWith(" ")||(Rt(f)||Rt(m))&&i?.decision(a[s],0)==="opens"&&Rf(f,m)&&!/[\u00a0\u202f\u2060\ufeff]/u.test(c.text.slice(-1)+u.text[0]))&&o.add(s);}if(o.size===0)return e;let l=n/o.size,d=0;return r.map((s,c)=>(o.has(c)&&(d+=l),d===0?s:{...s,box:{...s.box,x:s.box.x+d}}))}function Ni(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===32;)t-=1;return e.slice(0,t)}var yv=.001;function $d(e){let t=ht(e),n=t?"right":"left",r=t?"left":"right",o=n;for(let a of e)if(a.localName==="jc")switch(a.attributes?.val){case "center":o="center";break;case "right":case "end":o=r;break;case "both":case "distribute":case "lowKashida":case "mediumKashida":case "highKashida":case "thaiDistribute":o="both";break;default:o=n;}return o}function V3(e,t){return e==="center"?"center":e==="justify"||e==="both"?"both":t?e==="left"?"right":"left":e}function sj(e){return e.endsWith(" ")}function dj(e,t){let n=e.length;for(;n>0&&e[n-1].text===chunk6KA3L3FR_cjs.Ua&&e[n-1].box.width===0;)n-=1;if(n===0||n===e.length)return null;let r=t(e.slice(0,n)),o=e[n-1],a=r[r.length-1],i=a.box.x+a.box.width-(o.box.x+o.box.width);return [...r,...e.slice(n).map(l=>({...l,box:{...l.box,x:l.box.x+i}}))]}function bv(e,t,n,r,o,a,i,l,d,s){if(e.length===0||o==="left"||!Number.isFinite(r))return e;if(d){let w=dj(e,F=>bv(F,t,n,r,o,a,i,l,false,s));if(w)return w}let c=e.length;for(;c>0&&e[c-1].box.width===0&&(e[c-1].text===`
11
- `||e[c-1].text===chunk6KA3L3FR_cjs.Ua);)c-=1;let u=c;for(;u>0&&e[u-1].lineEndWhitespace;)u-=1;let f=e[c-1],m=u<e.length?e[u].box.x-n:void 0,g=i!==void 0&&f!==void 0&&Math.abs(f.box.x+f.box.width-n-i)<=yv;if(u<c&&g&&(o==="center"||o==="right")){let w=r-m;if(w<=0)return e;let F=o==="center"?w/2:w,I=(i??0)>=r-yv,v=e[u].box.x+F;return e.map((T,k)=>{if(k<u)return {...T,box:{...T.box,x:T.box.x+F}};if(!I)return {...T,box:{...T.box,x:T.box.x+F}};let O=Math.min(T.box.width,Math.max(0,n+r-v)),L={...T,box:{...T.box,x:v,width:O}};return v+=O,L})}let p=e[e.length-1],h=(w,F=w.text.trimEnd())=>F===w.text?0:w.box.width-et(F,Ve(w.style,w.fontSlot),t),b=()=>p.box.x-n+p.box.width-h(p),y=o==="both"&&!l&&i===void 0&&u>0&&u<c,x=i??(m!==void 0&&y?m-h(e[u-1],Ni(e[u-1].text)):m)??b(),S=0;if((o==="center"||o==="right")&&g&&f?.text.endsWith(" ")&&!f.lineEndWhitespace){let w=Ni(f.text),F=et(w,Ve(f.style,f.fontSlot),t),I=Math.max(0,f.box.width-F);x-=I,l&&(S=I);}let R=r-x;if(R<-1e-3&&o==="both"&&(!a||s))return rw(e,-R,t,y?u-1:e.length-1);if(R<=0)return e;if(o==="both"){if(a)return e;let w=hv(e,t,R);if(w)return w;let F=[];for(let k=1;k<u;k+=1)sj(e[k-1].text)&&F.push(k);if(F.length===0)return e;let I=R/F.length,v=new Set(F),T=0;return e.map((k,O)=>(v.has(O)&&(T+=I),T===0?k:{...k,box:{...k.box,x:k.box.x+T}}))}let P=(o==="center"?R/2:R)-S;return e.map(w=>({...w,box:{...w.box,x:w.box.x+P}}))}function ic(e,t,n,r,o,a,i,l=e.some(c=>c.style.shaping?.baseLevel===1),d=false,s=false){let c=o==="both"&&a&&l?"right":o;return Ch(bv(sk(e,t),t,n,r,c,a,i,l,d,s),l,d)}function km(e,t,n,r,o){if(e.length>0&&t.length>0)return t[0].box.x-e[0].box.x;if(n==="left"||n==="both")return 0;let a=r-o;return a<=0||!Number.isFinite(a)?0:n==="center"?a/2:a}function Sy(e,t,n,r){let o=e.wrapSegment;return o?{indent:t+o.start,available:Math.max(1,o.end-o.start),used:n-t+e.width-o.start}:{indent:n,available:r,used:e.width}}var cj=/^[、。〈〉《》「」『』【】〔〕〖〗〘〙〚〛!(),.:;?[]{}]$/u,lc=/^[〈《「『【〔〖〘〚([{]$/u,Py=/^[、。〉》」』】〕〗〙〛),.]}]$/u,uj=/^[\u3041-\u3096\u30a1-\u30fa][\u3099\u309a]?$/u;function xv(e){return e.some(t=>t.spans.some((n,r)=>n.glyphOffsetPt===0&&n.text.endsWith("\uFF1A")&&(!t.spans[r+1]||(t.spans[r+1].wrapAdvanceBefore??0)>0)))}function Sv(e,t,n){let r=new Map,o=0;for(let a of e){if(a.glyphOffsetPt!==0||a.text!=="\uFF1A")continue;for(;o+1<t.length&&t[o].end<=a.start;)o++;let i=t[o];r.set(a,et(a.text,Ve(i.style,i.fontSlot),n));}return r}var fj=e=>!e.projected&&!e.style.textOutline&&e.style.shaping?.direction!=="rtl"&&!e.style.underline&&!e.style.strike&&!e.style.doubleStrike&&!e.revisions?.length&&!sf(e.props)&&e.measureText===void 0&&!e.positionalTab&&!e.equation&&!e.inlineDrawing&&e.end-e.start===e.text.length;function mj(e,t,n,r){let o=[],a=0,i=e.map(c=>{o.push(a);let u=fj(c)?c.text:"\uFFFC";return a+=u.length,u}).join(""),l=new Map,d=0,s=pt(i);for(let c=0;c<s.length;c++){let u=s[c],f=s[c-1]?.text,m=s[c+1]?.text;for(;d+1<e.length&&o[d+1]<=u.utf16From;)d++;let g=e[d],p=lc.test(u.text)&&f!==void 0&&lc.test(f),h=m!==void 0&&(Py.test(u.text)&&(lc.test(m)||Py.test(m)||m==="\uFF1A")||u.text==="\uFF1A"&&(lc.test(m)||Py.test(m))&&!r&&!g.style.highlight&&!g.style.shading),b=p||h?.5:t&&uj.test(u.text)?.125:0;if(!b)continue;let y=Ve(g.style,g.fontSlot),x=et(u.text,y,n),S=p||h?et(u.text,{...y,characterSpacingPt:0},n):x,R=S*b;if(u.text==="\uFF1A"&&m!==void 0){let w=d,F=s[c+1].utf16From;for(;w+1<e.length&&o[w+1]<=F;)w++;let I=e[w],v=Ve(I.style,I.fontSlot);if(lc.test(m)){let T=et(m,{...v,characterSpacingPt:0},n);R=Math.min(R,Math.max(0,T/2));}else {let T=n.inkBounds?.(u.text,y),k=n.inkBounds?.(m,v),O=et(m,v,n);if(!T||!k||![T.left,T.right,k.left,k.right].every(Number.isFinite)||T.left<0||k.left<0||T.right<T.left||k.right<k.left||T.right>S||T.right>x/2+O||k.right>O||I.style.highlight||I.style.shading)continue;R=x/2;}}let P=Math.max(0,Math.min(x,R))/u.text.length;for(let w=d;w<e.length&&o[w]<u.utf16To;w++){let F=e[w],I=Math.max(0,u.utf16From-o[w]),v=Math.min(F.text.length,u.utf16To-o[w]);if(I===v)continue;let T=l.get(F);T||(T=[],l.set(F,T)),T.push({from:I,to:v,reduction:P,glyphOffset:p?-P:h?0:void 0});}}return l}function Pv(e,t,n,r=false){let o=t.settings?.compression;if(!o||o==="doNotCompress")return e;let a=[],i=new WeakMap,l=mj(e,o==="compressPunctuationAndJapaneseKana",n,r);for(let d of e){let s=l.get(d);if(!s){a.push(d);continue}let c=0;for(let u of s){u.from>c&&a.push({...d,text:d.text.slice(c,u.from),start:d.start+c,end:d.start+u.from});let f=d.style.characterSpacingPt-u.reduction,m=i.get(d.style);m||(m=new Map,i.set(d.style,m));let g=m.get(f);g||(g={...d.style,characterSpacingPt:f},m.set(f,g)),a.push({...d,text:d.text.slice(u.from,u.to),start:d.start+u.from,end:d.start+u.to,style:g,...u.glyphOffset!==void 0?{glyphOffsetPt:u.glyphOffset}:{}}),c=u.to;}c===0?a.push(d):c<d.text.length&&a.push({...d,text:d.text.slice(c),start:d.start+c});}return a}function ps(e,t,n,r,o){if(t.projected||t.measureText!==void 0)return false;let a=e[e.length-1];if(!a||!/^[\p{Pe}\p{Pf}\p{Po}]$/u.test(a)||!cj.test(a)&&!Gd(t.props))return false;let i=pt(e).at(-1)?.text;if(!i||!/^[\p{Pe}\p{Pf}\p{Po}]$/u.test(i))return false;let l=et(i,Ve(t.style,t.fontSlot),o);return r-l<=n+.001&&n>=-1e-3}var Rv=/^[〈《「『【〔〖〘〚([{]$/u,wv=/^[、。〉》」』】〕〗〙〛),.]}]$/u,sc=/^[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]$/u,kv=/[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]/u,Fa=.001;function Tv(e){let t=e.style;return !e.revisions?.length&&!t.textOutline&&!t.underline&&!t.strike&&!t.doubleStrike&&!t.highlight&&!t.shading&&t.shaping?.direction!=="rtl"&&!sf(e.props)}function vv(e){return e.every(t=>Tv(t)&&!t.projected&&!t.fieldAtom&&!t.equation&&!t.positionalTab&&!t.inlineDrawing&&t.measureText===void 0&&t.end-t.start===t.text.length&&pt(t.text).every(n=>/^[ \n\f]$/u.test(n.text)||Rt(n.text.codePointAt(0))||sc.test(n.text)))}function pj(e){return Tv(e)&&!e.projected&&!e.fieldAtom&&!e.equation&&!e.caretEdges&&!e.lineEndWhitespace&&!e.wrapAdvanceBefore&&e.range.end-e.range.start===e.text.length}function gj(e,t,n){let r=[],o=0;for(let[a,i]of e.entries()){if(o+=i.text.length,o>4096||!pj(i))return;let l=Ve(i.style,i.fontSlot),d=0;for(let s of pt(i.text)){if(s.text!==" "&&!Rt(s.text.codePointAt(0))&&!sc.test(s.text))return;let c=s.utf16To===i.text.length?i.box.width:et(i.text.slice(0,s.utf16To),l,t),u=c-d,f=i.range.start+s.utf16From,m=0,g=n.length-1;for(;m<g;){let h=m+g+1>>1;n[h].start<=f?m=h:g=h-1;}let p=n[m];r.push({sourceIndex:a,alreadyReduced:Math.max(0,(p.style.characterSpacingPt-i.style.characterSpacingPt)*s.text.length),natural:et(s.text,{...l,characterSpacingPt:0},t),ink:t.inkBounds?.(s.text,l),reduction:0,shift:0,span:{...i,text:s.text,range:{...i.range,start:i.range.start+s.utf16From,end:i.range.start+s.utf16To},box:{...i.box,x:i.box.x+d,width:u}}}),d=c;}}return r}function Ry(e){return e.ink!==void 0&&Number.isFinite(e.ink.left)&&Number.isFinite(e.ink.right)&&e.ink.right>=e.ink.left}function hj(e,t,n,r,o){let a=t.reduce((y,x)=>y+x.box.width,0),i=e.width+a-n;if(i<=Fa||!r.inkBounds||e.drawings.length||!t.some(y=>kv.test(y.text))&&!e.spans.some(y=>kv.test(y.text)))return;for(let y=1;y<e.spans.length;y++){let x=e.spans[y-1];if(Math.abs(x.box.x+x.box.width-e.spans[y].box.x)>Fa)return}let l=e.spans.length,d=gj([...e.spans,...t],r,o);if(!d)return;let s=d.find(y=>y.sourceIndex===l);if(Rt(s.span.text.codePointAt(0))&&!sc.test(s.span.text)&&n-e.width+Fa<s.natural/2)return;let c=d.at(-1);if(wv.test(c.span.text)&&Ry(c)){let y=Math.max(c.natural/2,c.ink.right+(c.span.glyphOffsetPt??0));c.reduction=Math.min(i,Math.max(0,c.span.box.width-y)),i-=c.reduction;}let u=[];for(let y=1;y<d.length;y++){let x=d[y-1],S=d[y],R=x.span.text,P=S.span.text,w,F;if(Rv.test(P)&&Rt(R.codePointAt(0))&&!sc.test(R))w=S,F=true;else if(R==="\uFF1A"&&Rv.test(P)||wv.test(R)&&Rt(P.codePointAt(0))&&!sc.test(P))w=x,F=false;else continue;if(!Ry(x)||!Ry(S))continue;let I=x.span.box.width+(S.span.glyphOffsetPt??0)+S.ink.left-(x.span.glyphOffsetPt??0)-x.ink.right,v=Math.max(0,Math.min(w.natural/2-w.alreadyReduced,w.span.box.width-w.reduction,F?S.ink.left+(S.span.glyphOffsetPt??0):1/0,I));v>Fa&&u.push({cell:w,capacity:v,left:F});}if(i>u.reduce((y,x)=>y+x.capacity,0)+Fa)return;let f=u;for(;i>Fa&&f.length;){let y=i/f.length,x=[];for(let S of f){let R=Math.min(y,S.capacity);S.cell.reduction+=R,S.left&&(S.cell.shift-=R),i-=R,S.capacity-R>Fa&&x.push({...S,capacity:S.capacity-R});}f=x;}let m=[],g=[],p=[],h=e.spans[0]?.box.x??t[0].box.x,b=0;for(let y of d){let x=y.span,S=y.reduction>0,R={...x,...S?{style:{...x.style,characterSpacingPt:x.style.characterSpacingPt-y.reduction/x.text.length},glyphOffsetPt:(x.glyphOffsetPt??0)+y.shift}:{},box:{...x.box,x:h,width:x.box.width-y.reduction}};h+=R.box.width,y.sourceIndex<l?(p[y.sourceIndex]??=m.length,m.push(R)):(g.push(R),b+=R.box.width);}p[l]=m.length,e.spans.length=0;for(let y of m)e.spans.push(y);return e.width=n-b,{candidate:g,width:b,spanStarts:p}}function Fv(e,t,n,r){let o=new Map;return (a,i,l,d,s,c,u,f)=>{let m=o.get(d.start);if(m)return o.delete(d.start),m;if(!f||!n.inkBounds||!t)return;let g=[],p=i,h=l,b=d,y=s,x=c,S=0;for(;;){let v=e[p];if(v.projected||v.measureText!==void 0||v.equation||v.positionalTab||v.inlineDrawing||v.revisions?.length||(S+=h.length,S>4096||g.length>=256))return;if(g.push({text:h,range:b,props:v.props,style:v.style,fontSlot:v.fontSlot,glyphOffsetPt:v.glyphOffsetPt,fieldAtom:v.fieldAtom,box:{x,y:0,width:y,height:n.lineMetrics(Ve(v.style,v.fontSlot)).height}}),x+=y,b.end<v.end)break;let T=e[p+1];if(!T||t.decision(T,0)==="opens")break;p++;let k=t.boundaries(T)[0]??T.text.length;h=T.text.slice(0,k),b={...d,start:T.start,end:T.start+k},y=et(h,Ve(T.style,T.fontSlot),n);}let R=0,P=false;for(let v=g.length-1;v>=0;v--){let T=g[v],k=Ni(T.text);if(R+=et(T.text.slice(k.length),Ve(T.style,T.fontSlot),n),k.length){P=true;break}}if(R>0&&P&&x-c-R<=u-a.width+Fa||r&&ps(g.map(v=>v.text).join(""),e[p],u-a.width,x-c,n))return;let w=hj(a,g,u,n,e);if(!w)return;let F,I=0;for(let v of g){let T=[],k=0;for(;I<w.candidate.length&&w.candidate[I].range.start<v.range.end;){let L=w.candidate[I++];T.push(L),k+=L.box.width;}let O={candidate:T,width:k};F?o.set(v.range.start,O):F={...O,spanStarts:w.spanStarts};}return F}}function Ov(e,t,n){let r=t.box.x;for(let o of n.candidate)e.push({...t,text:o.text,range:o.range,style:o.style,glyphOffsetPt:o.glyphOffsetPt,box:{...t.box,x:r,width:o.box.width}}),r+=o.box.width;}var bt=.001,yj=32,wy=128;function Iv(e,t,n){if(e.input.mode==="topAndBottom")return true;let r=e.input,o=r.contentBounds.x,a=o+r.contentBounds.width;for(let i of [r.polygon,r.clipPolygon])for(let l of i??[])o=Math.min(o,l.x),a=Math.max(a,l.x);return o-=r.wrapDistances.left+r.effectInsets.left,a+=r.wrapDistances.right+r.effectInsets.right,o<n-bt&&a>t+bt}function bj(e,t,n){let r=new Set,o=a=>{a>t&&a<n&&r.add(a);};for(let a of e){if(a.verticalBand.y>=n||a.verticalBand.y+a.verticalBand.height<=t)continue;o(a.verticalBand.y),o(a.verticalBand.y+a.verticalBand.height);let i=a.input.wrapDistances.top+a.input.effectInsets.top,l=a.input.wrapDistances.bottom+a.input.effectInsets.bottom;for(let d of [a.input.polygon,a.input.clipPolygon])for(let s of d??[])if(o(s.y-i),o(s.y+l),r.size>wy)return;if(r.size>wy)return}return [...r].filter(Number.isFinite).sort((a,i)=>a-i)}function xj(e){if(!e||e.length<4)return false;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.max(n,a.x),r=Math.min(r,a.y),o=Math.max(o,a.y);return n>t&&o>r?e.every((a,i)=>{let l=e[(i+1)%e.length];return (Math.abs(a.x-t)<bt||Math.abs(a.x-n)<bt||Math.abs(a.y-r)<bt||Math.abs(a.y-o)<bt)&&(Math.abs(a.x-l.x)<bt||Math.abs(a.y-l.y)<bt)}):false}function ky(e,t,n,r,o,a){if(!(t>0&&a>=0&&a<=o-r)||!Number.isFinite(a)||n.length===0)return 0;let i=n.filter(m=>m.input.mode==="square"||m.input.mode==="topAndBottom"||m.input.mode==="tight"&&xj(m.input.polygon)),l,d=()=>l??=n.filter(m=>Iv(m,r,o)),s=m=>{let g=m,p=[...d()].sort((h,b)=>h.verticalBand.y-b.verticalBand.y);for(let h of p){if(h.verticalBand.y>=g+t-bt)break;g=Math.max(g,h.verticalBand.y+h.verticalBand.height);}return g-e},c=0,u=false,f=e;for(let m=0;m<yj;m++){let g=i.filter(x=>x.verticalBand.y<f+t-bt&&x.verticalBand.y+x.verticalBand.height>f+bt);if(g.length===0&&!u)return f-e;let p=g.some(x=>x.sourceKind==="table"&&Iv(x,r,o));if(a===0&&!p&&!u)return f-e;let h=[{start:r,end:o}],b=[f+bt,f+t-bt];for(let x of g)b.push(Math.max(f,x.verticalBand.y)+bt);for(let x of b)if(h=kf(h,pa(x,i,r,o)).filter(S=>S.end-S.start>=a-bt),h.length===0)break;if(h.length>0){if(!u&&(!p||i.length===n.length))return f-e;let x=bj(d(),f,f+t);if(!x)return s(f);let S=[{start:r,end:o}],R=[f+bt,f+t-bt];for(let P of x)P>f&&P<f+t&&(R.push(Math.max(f+bt,P-bt)),R.push(Math.min(f+t-bt,P+bt)));for(let P of R){if(++c>wy)return s(f);if(S=kf(S,pa(P,n,r,o)).filter(w=>w.end-w.start>=a-bt),S.length===0)break}if(S.length>0)return f-e;u=true,f=Math.min(f+t,x.find(P=>P>f+bt)??1/0);continue}p&&i.length!==n.length&&(u=true);let y=1/0;for(let x of g){let S=x.verticalBand.y+x.verticalBand.height;S>f+bt&&(y=Math.min(y,S));}if(!Number.isFinite(y)||y<=f||y-e>1e5)return u?s(f):f-e;f=y;}return u?s(f):f-e}function Sj(e,t,n,r,o,a,i,l){let d=zr(i,e.height,e.baseline).height;if(n<=d+.001||e.spans.length===0&&e.drawings.length===0)return 0;let s=pa(t,r,o,a,d),c=pa(t,r,o,a,n),u=(y,x)=>x.some(S=>y.x>=S.start-.001&&y.x+y.width<=S.end+.001),f=e.spans.some(y=>y.text.trim()&&u(y.box,s)&&!u(y.box,c)),m=e.drawings.some(y=>u(y,s)&&!u(y,c));if(!f&&!m)return 0;if(e.spans.some(y=>y.text.includes(" ")))return null;let g=1/0,p=-1/0;for(let y of e.spans)g=Math.min(g,y.box.x),p=Math.max(p,y.box.x+y.box.width);for(let y of e.drawings)g=Math.min(g,y.x),p=Math.max(p,y.x+y.width);let h=c.find(y=>Math.max(g,y.start)+p-g+l<=y.end+.001);if(!h)return null;let b=Math.max(0,h.start-g);for(let y=0;y<e.spans.length;y++){let x=e.spans[y];e.spans[y]={...x,box:{...x.box,x:x.box.x+b}};}for(let y=0;y<e.drawings.length;y++)e.drawings[y]=lr(e.drawings[y],b,0);return e.width+=b,b}function Cv(e){let t,n,r=()=>{let l=e.line();if(t===l||e.holdsContent())return;let d=e.zones();if(d.length===0)return;let s=e.measurer.lineMetrics(e.emptyStyle),c=kr(e.top(),l.height>0?l.height:s.height,d,e.spaceAbove?.()??0);c>.001&&(t=l,n=l,l.exclusionSkipBefore=c);};return {applyTopAndBottomSkipIfNeeded:r,applyNarrowWrapSkipIfNeeded:(l,d)=>{let s=e.line();if(e.holdsContent())return;r();let c=e.zones();if(c.length===0)return;let u=e.measurer.lineMetrics(d),f=l.codePointAt(0),m=f===void 0?"":String.fromCodePoint(f),g=ky(e.top()+(s.exclusionSkipBefore??0),Math.max(u.height,zr(e.lineSpacing,u.height,u.baseline).height),c,e.left(),e.right,e.measurer.measure(Xt(m,d),d));g>.001&&(s.exclusionSkipBefore=(s.exclusionSkipBefore??0)+g,s.width=0,t=s,n=void 0);},applyInlineObjectSkipIfNeeded:(l,d)=>{let s=e.line(),c=e.holdsContent();r();let u=e.zones();if(u.length===0)return;let f=ky(e.top()+(s.exclusionSkipBefore??0),Math.max(s.height,d+Math.max(0,s.height-s.baseline)),u,e.left(),e.right,Math.min(s.width+l,Math.max(0,e.right-e.left())));f>.001&&(s.exclusionSkipBefore=(s.exclusionSkipBefore??0)+f,c||(s.width=0),t=s,n=void 0);},finalizeTopAndBottomClearance:()=>{let l=e.line(),d=e.zones();if(d.length===0)return;let s=kr(e.top(),l.height,d,e.spaceAbove?.()??0),u=n===l&&d.every(f=>f.input.mode==="topAndBottom")?s:Math.max(s,l.exclusionSkipBefore??0);u>.001?l.exclusionSkipBefore=u:delete l.exclusionSkipBefore;}}}function Mv(e){let t=e.initialMetrics,n=1/0,r=()=>e.top()+(e.line().exclusionSkipBefore??0)+.001,o=()=>{let a=e.line(),i=Math.max(a.baseline,t.baseline),l=i+Math.max(a.height-a.baseline,t.height-t.baseline);return zr(e.lineSpacing,l,i).height};return {setMetrics:(a,i=1/0)=>{t=a,n=i;},setWidth:a=>{n=a;},intervals:a=>pa(r(),a,e.left,e.right,o()),relocate:a=>Sj(e.line(),r(),o(),a,e.left,e.right,e.lineSpacing,n)}}function Ai(e){if(e.length===0)return false;for(let t of e)if(t!==" "&&t!=="\u3000")return false;return true}function Bv(e,t,n,r){if(n!==" "||!/\S$/u.test(r))return false;let o=t-1;for(;e[o]?.text===chunk6KA3L3FR_cjs.Ua;)o--;return o<t-1&&e[o]?.style===e[t].style}function Ev(e,t){let n=Ni(e);return n.length===0||n.length===e.length?void 0:t(n)}function Tm(e,t,n,r,o){if(t<=n+o)return;let a=e.length;for(;a>0&&e[a-1]===" ";)a--;if(a===0||a===e.length)return;let i=r(e.slice(0,a));if(!(i>n+o))return {length:a,visibleWidth:i,width:Math.max(i,n)}}function Lv(e,t,n){if(!n){e.push(t);return}let r=t.range.start+n.length;e.push({...t,text:t.text.slice(0,n.length),range:{...t.range,end:r},box:{...t.box,width:n.visibleWidth}},{...t,text:t.text.slice(n.length),range:{...t.range,start:r},box:{...t.box,x:t.box.x+n.visibleWidth,width:Math.max(0,t.box.width-n.visibleWidth)},lineEndWhitespace:true});}function Av(e){let{pieces:t,measurer:n,available:r,firstLineOffset:o,anchorStarts:a,equationLayoutOf:i}=e,l=new Map;if(a.length===0)return l;let d=t[0]?.start??0,s=[d],c=0,u=0,f="",m=0,g=-1,p=()=>u===0?o:0,h=()=>Math.max(1,r-p()),b=y=>{d=y,s.push(y),c=0,u+=1;};for(let y of t){let x=i(y);if(x){let P=x.geometry.box.width;c>0&&c+P>h()&&b(y.start),c+=P,f="",g=-1;continue}if(y.inlineDrawing){let P=Xr(y.inlineDrawing.projection).totalWidth;c>0&&c+P>h()&&b(y.start),c+=P,f="",g=-1;continue}if(y.text===chunk6KA3L3FR_cjs.Ua&&e.pageBreaksIgnored)continue;if(y.text===`
12
- `||y.text===chunk6KA3L3FR_cjs.Ua){b(y.end);continue}let S=!!y.projected||!!y.positionalTab||y.end-y.start!==y.text.length,R=0;for(let P of e.cjkBreaks?.boundaries(y)??Io(y.text,!S)){let w=y.text.slice(R,P);if(w.length===0)continue;let F=Ve(y.style,y.fontSlot),I=A=>n.measure(Xt(A,F),F),v=y.fieldAtom?.formControl?.kind==="checkbox"?F.fontSizePt:I(y.measureText??w);if(!S&&y.measureText===void 0){let A=h()-c;v=Tm(w,v,A,I,.001)?.width??v,c>0&&Ai(w)&&(v=Math.min(v,Math.max(0,A)));}let T=y.start+R,k=e.cjkBreaks?.decision(y,R)??Nl(f,w,R>0),O=k==="opens";O&&(m=T,g=c);let L=e.typography?.overflowPunctuation&&ps(w,y,h()-c,v,n),H=e.colonNaturalWidths?.get(y)??v;if(!L&&c>0&&c+H>h()){if(!(k==="forbidden"&&g<=0))if(O||g<=0)b(T);else {let A=c-g;b(m),c=A;}g=0;}c+=v,f=w,R=P;}}for(let y of a){let x=0,S=s.length-1;for(;x<S;){let R=x+S+1>>1;s[R]<=y?x=R:S=R-1;}l.set(y,s[x]);}return l}function Pj(e,t,n,r,o){if(o===void 0||o(e,t[r-1].utf16To))return r;for(let a=r-1;a>n;a-=1)if(o(e,t[a-1].utf16To))return a;for(let a=r+1;a<=t.length;a+=1)if(o(e,t[a-1].utf16To))return a;return t.length}function Dv(e,t,n,r){if(n<=r.remainingLineWidth()+r.overflowTolerancePt)return {text:e,modelStart:t,width:n,brokeLine:false};let o=pt(e),a=0,i=0,l=n,d=false;for(;a<o.length&&l>r.remainingLineWidth()+r.overflowTolerancePt;){if(o.length-a===1){if(r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),d=true;continue}break}let c=r.remainingLineWidth(),u=a+1,f=o.length-1,m=a;for(;u<=f;){let h=u+f>>1,b=o[h-1].utf16To;r.measureText(e.slice(i,b))<=c+r.overflowTolerancePt?(m=h,u=h+1):f=h-1;}if(m===a&&r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),d=true;continue}if(m===a&&(m+=1),m=Pj(e,o,a,m,r.cutAllowedAt),m===o.length)break;let g=o[m-1].utf16To,p=e.slice(i,g);r.appendPrefix({text:p,modelStart:t+i,width:r.measureText(p)}),r.closeLine(),d=true,a=m,i=g,l=r.measureText(e.slice(i));}return {text:e.slice(i),modelStart:t+i,width:l,brokeLine:d}}function Rj(e,t=0,n=0){return {span:t,width:n,end:e.end,height:e.height,baseline:e.baseline}}function wj(e,t,n){if(e.drawings.length>0)return false;for(let r=0;r<t;r+=1)if(!n||e.spans[r].text!==chunk6KA3L3FR_cjs.Ua)return false;return true}function _v(e,t){e.width=t.width,e.end=t.end,e.height=t.height,e.baseline=t.baseline;}function jv(e,t){t&&e.applyNarrowWrapSkipIfNeeded(t.text,Ve(t.style,t.fontSlot)),e.lineAvailable();}function Hv(e,t,n){t>e.lineAvailable()+.001&&e.ensurePlacementWidth(t),jv(e,n);}function Wv(e,t){let n=e.line();for(let r of t){if(n.spans.push({...r,box:{...r.box,x:e.lineOrigin()+n.width}}),n.width+=r.box.width,n.end=r.range.end,e.pageBreaksIgnored&&r.text===chunk6KA3L3FR_cjs.Ua)continue;let o=Ve(r.style,r.fontSlot),a=qr(r,Xt(r.text,o));zl(n,e.measurer.lineMetrics(o,a),r.text,o);}}function kj(e,t,n){let r=e.line(),o=r.spans,a=o[t.span],i=o[o.length-1],l=e.lineOrigin()+r.width;if(!a||!i||Math.abs(l-i.box.x-i.box.width)>.001||!wj(r,t.span,e.pageBreaksIgnored))return false;let d={width:r.width,end:r.end,height:r.height,baseline:r.baseline},s=r.exclusionSkipBefore,c=l-a.box.x+n;return _v(r,t),r.spans=[],e.setProbeWidth(c),Hv(e,c,a),r.spans=o,r.exclusionSkipBefore===s&&Math.abs(e.lineOrigin()+r.width-a.box.x)<=.001?Object.assign(r,d):Wv(e,o.splice(t.span)),e.setProbeWidth(n),true}function zv(e,t,n){if(kj(e,t,n))return t;let r=e.line(),o=r.spans.splice(t.span);_v(r,t);let a=o.reduce((d,s)=>d+s.box.width,n);e.setProbeWidth(a);let i=t,l=o[0];return e.holdsContent()?((!e.tryAdvanceToNextPassage()||r.width+a>e.lineAvailable()+.001)&&(e.closeLine(),r=e.line(),e.ensurePlacementWidth(a),i=Rj(r)),jv(e,l)):Hv(e,a,l),Wv(e,o),e.setProbeWidth(n),i}function Vv(e){let t=i=>`${i.kind}|${i.id}|${i.author}|${i.nodeId}`,n=i=>{let l=new Set,d=[];for(let s of i)if(s)for(let c of s){let u=t(c);l.has(u)||(l.add(u),d.push(c));}return d},r=new Set;return {changeSitesOn:(i,l,d)=>{let s=[];for(let c of e){let u=c.start<i.end&&c.end>i.start,f=i.start===i.end&&c.start<=i.start&&c.end>=i.start;!u&&!f||(r.add(c),s.push(...c.revisions));}return n([d,...l.map(c=>c.changeSites),s])},claimTrailingChangeSites:i=>{let l=i[i.length-1];if(!l)return;let d=e.filter(s=>!r.has(s));if(d.length!==0){for(let s of d)r.add(s);l.changeSites=n([l.changeSites,...d.map(s=>s.revisions)]);}}}}function Gv(e,t=false){let n=new Array(e.length),r=false;for(let o=e.length-1;o>=0;o-=1){let a=e[o],i=new Uint8Array(a.text.length+1);if(i[a.text.length]=r?1:0,a.inlineDrawing)i.fill(1);else for(let l=a.text.length-1;l>=0;l-=1){let d=a.text[l];d===chunk6KA3L3FR_cjs.Ua&&t?i[l]=i[l+1]:d===`
13
- `||d===chunk6KA3L3FR_cjs.Ua?i[l]=0:d!==" "&&!Ai(d)?i[l]=1:i[l]=i[l+1];}n[o]=i,r=i[0]===1;}return n}var Tj=/[\u0590-\u08ff\ufb1d-\ufdff\ufe70-\ufeff]/u;function Kv(e,t,n,r,o=false){let a=0,i=0,l=false,d=false,s,c=()=>({width:a,decimalOffset:l?i:a,rtlDecimalOffset:!l||d?l?i:a:a-i});for(let u=t;u<e.length;u+=1){let f=e[u],m=Ve(f.style,f.fontSlot),g=u===t?n:0,p=g;for(;p<f.text.length;){let S=f.text[p];if(S===" "||S===`
14
- `||S===chunk6KA3L3FR_cjs.Ua&&!o)break;p+=1;}let h=S=>{let R=f.text.slice(g,S);return o?R.replaceAll(chunk6KA3L3FR_cjs.Ua,""):R},b=S=>S>g?r.measure(Xt(h(S),m),m):0,y=b(p);if(!l){let S=f.text.indexOf(".",g);if(S!==-1&&S<p){l=true;let R=h(S).at(-1)??(s?.broken&&s.end===f.start&&vj(s.piece,f)?s.char:void 0);d=R!==void 0&&Tj.test(R),i+=b(S);}else i+=y;}if(a+=y,p<f.text.length)return c();let x=h(p).at(-1);x!==void 0?s={piece:f,char:x,end:f.end,broken:false}:s?.end===f.start&&o&&f.text===chunk6KA3L3FR_cjs.Ua?s={...s,end:f.end,broken:true}:s=void 0;}return c()}function vj(e,t){let n=t.style.shaping;if(!n||!e.style.shaping)return false;let{context:r}=e.style.shaping;return zu(e.style,{...t.style,shaping:{...n,context:r}})}function $v(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 dc=31680;function $l(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>dc?chunk6KA3L3FR_cjs.kf(dc):t<-dc?chunk6KA3L3FR_cjs.kf(-dc):chunk6KA3L3FR_cjs.kf(t):null}function Yl(e){let t=0,n=0,r=ht(e);for(let o of e){if(o.localName!=="ind")continue;let a=o.attributes?.left??o.attributes?.start,i=o.attributes?.right??o.attributes?.end,l=r?i:a,d=r?a:i,s=$l(l),c=$l(d);s!==null&&(t=chunk6KA3L3FR_cjs.mf(s)),c!==null&&(n=chunk6KA3L3FR_cjs.mf(c));}return {left:t,right:n}}var cc=.001;function ct(e){return Ur(e)}function Ty(e,t,n,r,o,a,i,l=[],d=Td,s,c,u,f=false){let m=i!==null&&a?a.get(i):void 0;if(m)return m;let g=u?.lineSpacing??hd,p=u?.cellAnchorScope?.inTableCell===true,h=[],b=[],y=Bi(e,l,s,c,u?.projectLink,u?.noteMarks,u?.displayMode??Ye,h,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false,u?.refFields,u?.revisionAuthorFilter,u?.showFieldCodes,u?.fieldCodeRanges,u?.tocLinkStyleRanges,b),x=u?.paragraphRtl??ht(ct("children"in e?e.children.find(q=>q.kind==="paragraphProperties"):void 0)),S=ak(y,x,tk(e),p),R=Math.max(0,u?.startOffset??0),P=u?.firstLineAfterLeadingBreaks===true,w=R===0||P&&j0(S,R),F=w?u?.firstLineOffset??0:0,I=w?u?.firstLineMinimumBaseline??0:0,v=w?Math.max(0,u?.firstLineMarkerAscent??0):0,T=S.flatMap(q=>{if(q.end<=R&&!((R===0||u?.showFieldCodes)&&q.projected&&q.start===q.end&&q.start===R))return [];if(q.start>=R)return [q];let N=R-q.start;return [{...q,text:q.projected?q.text:q.text.slice(N),start:R}]}),k=u?.typography??Kl(ct("children"in e?e.children.find(q=>q.kind==="paragraphProperties"):void 0)),O=Pv(T,k,o,f),L=Sv(O,T,o),H=k.settings?.compression!==void 0&&k.settings.compression!=="doNotCompress"&&!u?.pageExclusionZones?.length&&o.inkBounds!==void 0&&vv(S),A=H&&!f,D=Gv(O,p),j=Y0(u?.cellAnchorScope,y),C=tw(O),M=wm(O,k),_=Fv(O,M,o,k.overflowPunctuation),U=mv(o,u?.equationCacheToken),ne=q=>q.equation?U(q.equation,q.style):null;if(O.length===0&&u?.suppressEmptyPlaceholderLine)return [];let X=u?.markRunProperties??l,W=X.length===0?En:je(X,u?.themeFonts),z=X===l?W:l.length===0?En:je(l,u?.themeFonts),$=Af(X),V=$===X?W:je($,u?.themeFonts),te=O.length===0?W:o.lineMetrics(V).height<o.lineMetrics(z).height?V:z,Q=n+r,Y=u?.contentLeft??n,de=u?.contentRight??Q,J=u?.contentOriginX??0,ee=Math.max(0,(u?.marginExtent?.right??Q)-Q),re=Math.min(de,J+Q),oe=[],ue=0,B={spans:[],start:R,end:R,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},pe=new Map,Ie=u?.displayMode??Ye,ye=(()=>{let q=new Set;if(!u?.inlineDrawingLayout)return q;let N=$n(e);for(let ce of yt(e,u.inlineDrawingLayout)){if(!$e(ce.revisions,Ie,u?.revisionAuthorFilter)||ce.projection.wrap!=="topAndBottom")continue;let Se=N.get(ce.atomId);Se!==void 0&&q.add(Se);}return q})(),tt=(()=>{let q=new Set;if(!u?.inlineDrawingLayout)return q;let N=$n(e);for(let ce of yt(e,u.inlineDrawingLayout)){if(!$e(ce.revisions,Ie,u?.revisionAuthorFilter)||ce.projection.wrap==="topAndBottom"||ce.projection.wrap==="inline"||ce.projection.wrap==="behind"||ce.projection.wrap==="inFront")continue;let Se=N.get(ce.atomId);Se!==void 0&&q.add(Se);}return q})(),Ne=[...(u?.pageExclusionZones??[]).filter(q=>q.anchorParagraphId===t).map(q=>q.anchorModelStart),...ye,...tt],ae=Av({colonNaturalWidths:L,typography:k,cjkBreaks:M,pieces:O,measurer:o,available:r,firstLineOffset:F,anchorStarts:Ne,equationLayoutOf:ne,pageBreaksIgnored:p});for(let q of tt){let N=ae.get(q);N!==void 0&&pe.set(q,N);}let be=q=>{if(q.anchorParagraphId!==t||q.pageFramedBand)return true;let N=ae.get(q.anchorModelStart);return N!==void 0&&B.start>=N||B.end>=q.anchorModelStart},Z=()=>{let q=u?.pageExclusionZones?.filter(He=>!(!be(He)||He.anchorParagraphId===t&&(!He.sourceKind&&He.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],N=u?.cellAnchorScope?.anchorsWrapText!==false,ce=N&&u?.inlineDrawingLayout&&u.anchorCellBox!=null&&pe.size>0?D0({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:Y,contentRight:de,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:pe,anchorCellBox:u.anchorCellBox,cellAnchorScope:u.cellAnchorScope,displayMode:Ie,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]),Se=N&&u?.inlineDrawingLayout&&pe.size>0?Bf({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:Y,contentRight:de,paragraphStartY:(u.anchorParagraphStartY??u.paragraphStartY??0)-(u.paragraphSpaceBefore??0),anchorLineTopByModelStart:pe,anchorCellBox:u.anchorCellBox,cellAnchorScope:u.cellAnchorScope,displayMode:Ie,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]);return Object.freeze([...q,...ce,...Se])},Pe=true,Te=()=>Pe,ge=()=>H0(B,p),xe=()=>Te()?F:0,Re=()=>J+n+xe(),Ce=()=>Math.max(1,r-xe()),Ae=()=>oe.reduce((q,N)=>q+N.height+(N.exclusionSkipBefore??0),0),qe=()=>(u?.paragraphStartY??0)+Ae(),Le=q=>{ye.has(q)&&pe.set(q,Ae());},{applyTopAndBottomSkipIfNeeded:on,applyNarrowWrapSkipIfNeeded:wt,applyInlineObjectSkipIfNeeded:Fn,finalizeTopAndBottomClearance:kt}=Cv({line:()=>B,top:qe,spaceAbove:()=>oe.length===0?u?.paragraphSpaceBefore??0:0,zones:Z,left:()=>Math.max(Y,Re()),right:re,emptyStyle:te,measurer:o,lineSpacing:g,holdsContent:ge}),Tt=Mv({line:()=>B,top:qe,left:Y,right:re,lineSpacing:g,initialMetrics:o.lineMetrics(te)}),Wt=Tt.intervals,yn=(q,N)=>{let ce=ch(q,N);if(!ce)return null;if(ce.x<=q+.001||B.width>.001||xe()<=0)return ce.x;let Se=ch(ce.x+xe(),N);return Se?Se.x:ce.x},Xe=()=>{let q=Z();if(q.length===0)return true;on();let N=Tt.relocate(q);if(N===null)return false;ve+=N;let ce=Wt(q),Se=Re()+B.width,He=yn(Se,ce);return He===null?false:(He>Se+.001&&(B.width=He-Re()),true)},Ge=()=>{let q=Ce(),N=Z();if(N.length===0)return Math.max(q,ue-Re());if(on(),!Xe())return 0;let ce=Wt(N),Se=Re()+B.width,He=N0(Se,ce);return He<=.001?0:Math.min(q,B.width+He)},nt=()=>Math.max(0,Ge()-B.width),uo=()=>{if(u?.paragraphRtl)return;let q=Z();if(q.length===0)return;let N=Wt(q);if(N.length===0)return;let ce=B.spans[0]?.box.x??Math.max(Y,Re()),Se=Re()+B.width,He=N.find(fe=>ce>=fe.start-.001&&ce<=fe.end+.001);!He||Se>He.end+.001||He.start<=Y+.001&&He.end>=re-.001||(B.wrapSegment={start:ce,end:He.end});},vt=()=>{let q=Z();if(q.length===0||!q.some(fe=>fe.anchorParagraphId!==t||B.end>fe.anchorModelStart))return false;let ce=Wt(q),Se=Re()+B.width,He=false;for(let fe of ce){if(!He){Se>=fe.start-1e-6&&Se<fe.end-1e-6&&(He=true);continue}if(fe.end-fe.start>.001)return B.width=fe.start-Re(),true}return false},On=q=>{if(Ne.length===0||q<Math.min(...Ne))return;let N=Z().filter(Ee=>Ee.anchorParagraphId===t&&q>=Ee.anchorModelStart);if(N.length===0)return;on();let ce=Wt(N),Se=Re()+B.width,He=-1;for(let Ee=0;Ee<ce.length;Ee+=1){let ut=ce[Ee];if(Se>=ut.start-.001&&Se<ut.end-.001){He=Ee;break}}if(He>=0)return;let fe=yn(Se,ce);fe!==null&&fe>Se+.001&&(B.width=fe-Re());},Zn=q=>{let N=Z().filter(Se=>Se.input.mode==="topAndBottom"&&Se.anchorParagraphId===t&&q>=Se.anchorModelStart);if(N.length===0)return;N.some(Se=>B.start<Se.anchorModelStart)&&ge()&&$t(),on();},Ke=(q,N=0)=>N>64?nt()>=q:(on(),Xe()?q<=nt()+.001?true:ge()?vt()&&q<=nt()+.001?true:($t(),Ke(q,N+1)):vt()?Ke(q,N+1):true:ge()?($t(),Ke(q,N+1)):true),lt=(q,N)=>h.filter(ce=>ce.start<N&&ce.end>q).map(ce=>({start:Math.max(ce.start,q),end:Math.min(ce.end,N)})),{changeSitesOn:Ft,claimTrailingChangeSites:zt}=Vv(b),se=-1,ve=0,Ot=0,Ze={height:0,baseline:0},It="",bn,xn=(q,N)=>{let ce=o.lineMetrics(q);bn??={height:0,baseline:0},Bo(bn,ce);let Se=R0(ce.baseline,B.height||ce.height,N);return B.height===0?(B.height=Se.lineHeight,B.baseline=Se.baseline):(Se.lineHeight>B.height&&(B.height=Se.lineHeight),B.baseline=Math.max(B.baseline,Se.baseline)),{extentTopY:Se.extentTopY}},pr=()=>{if(B.drawings.length===0)return;B.spans.every(N=>p&&N.text===chunk6KA3L3FR_cjs.Ua)&&(B.baseline=Math.max(B.baseline,...B.drawings.map(N=>N.y+N.height)));let q=Jg(B.drawings,B.baseline);B.drawings.splice(0,B.drawings.length,...q),B.baseline=Math.max(B.baseline,...B.drawings.map(N=>N.y+N.height));},nl=()=>{if(B.drawings.length===0)return;let q=Jg(B.drawings,B.baseline);B.drawings.splice(0,B.drawings.length,...q);},$t=q=>{W0(B,p);let N=B.drawings.length===0&&B.spans.every(Sn=>ph(Sn.text)),ce=o.lineMetrics(N?W:z),Se=B.baseline;if(B.height===0)B.height=ce.height,B.baseline=ce.baseline,Se=ce.baseline;else if(q?.includeParagraphMark&&!u?.paragraphMarkIsCellEnd){let Sn=Z0(B.spans,V.verticalAlign,o);B.height=Math.max(B.height,Sn);}let He=Te();if(He&&F!==0&&(B.firstLineOffset=F),He&&v>B.baseline){let Sn=v-B.baseline;B.baseline=v,B.height+=Sn,Se+=Sn;}bh(B,o),pr(),yh(B);let fe=B.height,Ee=B.drawings.length>0||B.spans.some(Sn=>Sn.equation!==void 0),ut=g.rule==="auto"&&Ee,Jn=ut?K0(B.spans,o,bn?.height??ce.height,p):fe,Hn=zr(g,Jn,B.baseline);ut||(B.baseline=Hn.baseline);let ft=He&&g.rule!=="exact"?I:0,gr=Math.max(0,ft-B.baseline);B.baseline+=gr,B.leading=Math.max(0,B.baseline-Se),B.height=ut?Math.max(Hn.height,fe):Hn.height,B.height+=gr,nl(),g.rule!=="exact"&&yh(B),B.trailingSpacing=B.drawings.length===0&&g.rule!=="exact"?Math.max(0,Hn.trailing??Hn.height-fe):0,kt(),z0(B),G0(B);let an=lt(B.start,B.end);an.length>0&&(B.deletedRanges=an);let fo=Ft(B,B.spans,B.changeSites);fo.length>0&&(B.changeSites=fo),uo(),oe.push(B),Pe=false,se=-1,ve=0,ue=0,bn=void 0,B={spans:[],drawings:[],start:B.end,end:B.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},on();},Ut=false,we=()=>{for(let q=0;q<se;q+=1)if(!p||B.spans[q].text!==chunk6KA3L3FR_cjs.Ua)return false;return se>=0},Yo=()=>{if(se<0||B.spans.length<=se)return false;Ge();let q=B.spans[B.spans.length-1];return Re()+B.width>q.box.x+q.box.width+.001},Ct={line:()=>B,measurer:o,pageBreaksIgnored:p,holdsContent:ge,closeLine:()=>$t(),ensurePlacementWidth:q=>Ke(q),tryAdvanceToNextPassage:vt,lineAvailable:Ge,lineOrigin:Re,applyNarrowWrapSkipIfNeeded:wt,setProbeWidth:q=>Tt.setWidth(q)},Nr=X0(O,o);for(let q=0;q<O.length;q+=1){let N=O[q];if(N.breakKind==="column"){let fe=o.lineMetrics(N.style);B.spans.push({range:{paragraphId:t,start:N.start,end:N.end},text:N.text,props:N.props,style:N.style,box:{x:Re()+B.width,y:0,width:0,height:fe.height},...N.link?{link:N.link}:{},...ha(N)}),Bo(B,fe),B.end=N.end,$t(),oe[oe.length-1].columnBreakAfter=true,Ut=true;continue}if(N.equation){let fe=ne(N),Ee=fe.geometry.box.width;if(ge()&&B.width+Ee>Ge()&&$t(),Tt.setMetrics({height:fe.geometry.box.height,baseline:fe.geometry.baseline},Ee),Fn(Ee,fe.geometry.box.height),!Ke(Ee))continue;let ut=Math.max(0,B.height-B.baseline),Jn=Math.max(0,fe.geometry.box.height-fe.geometry.baseline);B.baseline=Math.max(B.baseline,fe.geometry.baseline),B.height=B.baseline+Math.max(ut,Jn),B.spans.push({range:{paragraphId:t,start:N.start,end:N.end},text:"\uFFFC",props:N.props,style:N.style,box:{x:Re()+B.width,y:0,width:Ee,height:fe.geometry.box.height},projected:true,equation:fe,...ha(N)}),B.width+=Ee,B.end=N.end,se=-1,It="";continue}if(N.projected&&!N.inlineDrawing&&!N.noteSeparator&&N.text==="\uFFFC"){Le(N.start),N.anchoredAtom&&N.revisions!==void 0&&$e(N.revisions,Ie,u?.revisionAuthorFilter)&&(B.anchorRevisions=[...B.anchorRevisions??[],...N.revisions]),N.anchoredAtom&&N.changeSites&&(B.changeSites=[...B.changeSites??[],...N.changeSites]),B.end=N.end;continue}if(N.inlineDrawing){Le(N.start);let fe=Xr(N.inlineDrawing.projection),Ee=fe.totalWidth;if(ge()&&B.width+Ee>Ge()&&$t(),Tt.setMetrics({height:fe.lineContribution,baseline:fe.lineContribution},Ee),Fn(Ee,fe.lineContribution),!Ke(Ee))continue;let{extentTopY:ut}=xn(N.style,fe),Jn=Re()+B.width;B.drawings.push(F0({input:N.inlineDrawing,paragraphId:t,start:N.start,slotX:Jn,y:ut,baseline:B.baseline,contentLeft:J,contentRight:J+Q,...N.revisions?{revisions:N.revisions}:{}})),N.changeSites&&(B.changeSites=[...B.changeSites??[],...N.changeSites]),B.width+=Ee,B.end=N.end,se=-1,It="";continue}if(N.text===chunk6KA3L3FR_cjs.Ua){let fe=o.lineMetrics(N.style);if(B.spans.push({range:{paragraphId:t,start:N.start,end:N.end},text:chunk6KA3L3FR_cjs.Ua,props:N.props,style:N.style,box:{x:Re()+B.width,y:0,width:0,height:fe.height},...N.link?{link:N.link}:{},...ha(N)}),B.end=N.end,p)continue;Bo(B,fe);let Ee=Pe;$t();let ut=oe[oe.length-1];ut.pageBreakAfter=true,Pe=P&&Ee&&Eo(ut),Ut=false;continue}if(N.text===`
15
- `){N.breakKind==="line"&&(B.manualBreakAfter=true);let fe=o.lineMetrics(N.style);B.spans.push({range:{paragraphId:t,start:N.start,end:N.end},text:`
16
- `,props:N.props,style:N.style,box:{x:Re()+B.width,y:0,width:0,height:fe.height},...N.link?{link:N.link}:{},...ha(N)}),Bo(B,fe),B.end=N.end,$t(),Ut=true;continue}Ut=false,Zn(N.start),Ne.length>0&&N.start>=Math.min(...Ne)&&On(N.start);let ce=Ve(N.style,N.fontSlot),Se=!!N.projected||!!N.positionalTab||N.end-N.start!==N.text.length,He=0;for(let fe of M?.boundaries(N)??Io(N.text,!Se)){let Ee=N.text.slice(He,fe);if(Ee.length===0)continue;let ut=o.lineMetrics(ce,qr(N,Xt(Ee,ce)));Tt.setMetrics(Wl(ut,ce));let Jn=Se?{paragraphId:t,start:N.start,end:N.end}:{paragraphId:t,start:N.start+He,end:N.start+fe};if(Ee===" "){let xt=$0(j,x,!!N.positionalTab,Z().length,d,Re()+B.width,Q);ge()&&(B.width>=Ge()||xt)&&D[q][fe]===1&&$t();let at=Re()+B.width,Jt=x?ee:0,Js=x?Jt+xe()+B.width:at,Jo=x?Jt+r:Q,Wn=Kv(O,q,fe,o,p),Ka=N.positionalTab?$v(N.positionalTab,n,Q,u?.marginExtent):null,al=Z().length===0?Math.max(Jo,u?.marginExtent?.right??Jo):Jo,In=U0(d,Js,Jo,al,at,Q,Ka);In.alignment!=="left"&&!x&&(ue=Math.max(ue,Math.min(In.positionPt,al)));let Qs=JR(In.alignment,Ka===null?Js:at,In.positionPt,Wn.width,x&&Ka===null?Wn.rtlDecimalOffset:Wn.decimalOffset);B.spans.push({range:Jn,text:" ",props:N.props,style:N.style,box:{x:at,y:0,width:Qs,height:ut.height},...In.leader?{tabLeader:In.leader,tabLeaderAdvancePt:o.measure(KR.get(In.leader)??".",N.style)}:{},...N.link?{link:N.link}:{},...In.leader?{tabLeader:In.leader}:{},...Se&&!N.positionalTab?{projected:true}:{},...N.noteNav?{noteNav:N.noteNav}:{},...ha(N)}),B.width+=Qs,zl(B,ut," ",ce),B.end=Se?N.end:N.start+fe,It=" ",He=fe;continue}let Hn=N.measureText??Ee,ft=N.noteSeparator?Math.min(N.noteSeparator==="separator"?144:Ge(),Ge()):N.fieldAtom?.formControl?.kind==="checkbox"?ce.fontSizePt:o.measure(Xt(Hn,ce),ce);Tt.setWidth(ft);let gr=N.noteSeparator||B.spans.at(-1)?.noteSeparator?"opens":M?.decision(N,He)??Nl(It,Ee,He>0),an=gr==="opens";an&&(se=B.spans.length,ve=B.width,Ot=B.end,Ze={height:B.height,baseline:B.baseline}),On(N.start+He),wt(Ee,ce);let fo=H&&Ne.length===0&&fe===N.text.length&&O[q+1]!==void 0&&M?.decision(O[q+1],0)==="forbidden",Sn=!Se&&N.measureText===void 0&&!fo,Va=ft,rl=xt=>o.measure(Xt(xt,ce),ce),Ys=()=>Sn?Tm(Ee,Va,Ge()-B.width,rl,cc):void 0,Qn=Ys();ft=Qn?.width??ft;let qc=k.overflowPunctuation&&ps(Ee,N,Ge()-B.width,ft,o),Ga=A&&Ne.length===0?()=>{let xt=_(B,q,Ee,Jn,ft,Re()+B.width,Ge(),!Ai(Ee)||an&&D[q][fe]===1);return xt&&(ft=xt.width,se>=0&&xt.spanStarts&&(se=xt.spanStarts[se],ve=se<B.spans.length?B.spans[se].box.x-Re():B.width)),xt}:void 0,Xo=B,qo=Ga?.(),Xs=!fo&&Ai(Ee)&&(D[q][fe]!==1&&!(p&&He===0&&Bv(O,q,Ee,It))||!Se&&ge()&&B.width+ft>Ge()+cc);Xs&&(ft=Math.min(ft,Math.max(0,Ge()-B.width)));let Zo=qo?ft:L.get(N)??ft,er=!qc&&!(Xs&&u?.justifySpaceShrink)&&B.width+Zo>Ge()+cc,mo=er&&u?.justifySpaceShrink?Nr(q,fe):void 0,po=er&&u?.justifySpaceShrink===true&&(an||gr==="continues"&&se>0)&&!u.paragraphRtl&&!u.pageExclusionZones?.length&&Ne.length===0&&B.drawings.length===0&&(D[q][fe]===1||C(q,fe))&&ew(B.spans,Ee,ce,o,B.width,Ge(),an?B.spans.length:se,an?B.width:ve,mo!==void 0||C(q,fe)||(fe<N.text.length?!Se&&N.text[fe]===" ":nw(O[q+1])),mo??0),ol=er&&!Se&&N.measureText===void 0&&!x&&ue===0&&!u?.pageExclusionZones?.length&&Ne.length===0&&q0(B,se);if(!an&&Yo()||er&&!po&&ge()&&!ol){let xt=Sn&&!qo?Ev(Ee,rl):void 0,at=xt??Zo;if(!(gr==="forbidden"&&(se<0||we())))if(an||se<0){if(!(vt()&&B.width+at<=Ge()+.001)){if($t(),!Ke(at))continue;se=0,ve=0,Ot=B.end,Ze={height:B.height,baseline:B.baseline};}}else {let Jt=zv(Ct,{span:se,width:ve,end:Ot,...Ze},at);se=Jt.span,ve=Jt.width,Ot=Jt.end,Ze={height:Jt.height,baseline:Jt.baseline};}xt!==void 0&&(Qn=Ys(),ft=Qn?.width??Va);}else if(!ge()&&Zo>Ge()+.001){if(!Ke(Zo))continue}else po&&C(q,fe)&&(B.spaceShrink=true);wt(Ee,ce),!qo&&B!==Xo&&(qo=Ga?.());let go=Ee,qs=N.start+He,Zs=ft;if(!Se&&N.measureText===void 0&&!qc&&(!ge()||!an&&we()||ol)&&ft>nt()+cc){let xt=Dv(Ee,qs,ft,{remainingLineWidth:nt,lineHasText:ge,measureText:at=>o.measure(Xt(at,ce),ce),appendPrefix:at=>{let Jt=o.lineMetrics(ce,Xt(at.text,ce));B.spans.push({range:{paragraphId:t,start:at.modelStart,end:at.modelStart+at.text.length},text:at.text,props:N.props,style:N.style,box:{x:Re()+B.width,y:0,width:at.width,height:Jt.height},...N.link?{link:N.link}:{},...N.noteNav?{noteNav:N.noteNav}:{},...N.fontSlot?{fontSlot:N.fontSlot}:{},...N.glyphOffsetPt!==void 0?{glyphOffsetPt:N.glyphOffsetPt}:{},...ha(N)}),B.width+=at.width,zl(B,Jt,at.text,ce),B.end=at.modelStart+at.text.length;},closeLine:$t,overflowTolerancePt:cc,keepWithPrevious:gr==="forbidden",cutAllowedAt:M?(at,Jt)=>M.cutAllowed(N,He,Jt):o0});go=xt.text,qs=xt.modelStart,Zs=xt.width,xt.brokeLine&&(se=0,ve=0,Ot=B.end,Ze={height:B.height,baseline:B.baseline});}if(go.length>0){let xt=o.lineMetrics(ce,qr(N,Xt(go,ce))),at={range:Se?Jn:{paragraphId:t,start:qs,end:N.start+fe},text:go,props:N.props,style:N.style,box:{x:Re()+B.width,y:0,width:Zs,height:xt.height},...N.link?{link:N.link}:{},...Se&&!N.positionalTab?{projected:true}:{},...N.noteNav?{noteNav:N.noteNav}:{},...N.fontSlot?{fontSlot:N.fontSlot}:{},...N.glyphOffsetPt!==void 0?{glyphOffsetPt:N.glyphOffsetPt}:{},...Xs?{lineEndWhitespace:true}:{},...ha(N)};qo?Ov(B.spans,at,qo):Lv(B.spans,at,Qn),B.width+=Zs,zl(B,xt,go,ce),B.end=Se?N.end:N.start+fe;}It=Ee,He=fe;}}return (B.spans.length>0||B.drawings.length>0||oe.length===0||Ut)&&$t({includeParagraphMark:true}),!f&&xv(oe)?Ty(e,t,n,r,o,a,i,l,d,s,c,u,true):(zt(oe),i!==null&&a&&a.set(i,a.retainAcrossPasses===false?oe:oe.map(V0)),oe)}var Fj=128,Oj=/[\u0000-\u001F\u007F-\u009F]/,Ij=32;function Tr(e){return e.kind!=="textValue"}function Ir(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Cr(e,t){for(let n of e.children)if(Tr(n)&&n.localName===t)return n}function Lo(e){return e===void 0||e.length===0||e.length>Fj?false:!Oj.test(e)&&!chunk6KA3L3FR_cjs.I(e)}function Cj(e){return e==="1"||e==="true"||e==="on"}function Ul(e){if(e){for(let t of e.children)if(Tr(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function Ao(e){if(e){for(let t of e.children)if(Tr(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var Uv=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Ii(e){return e.some(t=>Uv.has(t.localName))?e.filter(t=>!Uv.has(t.localName)):e}function Vw(e){let t=Cr(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=Ul(Cr(t,"rPrDefault")),r=Ao(Cr(t,"pPrDefault"));return {run:Ii(ct(n)),paragraph:Ii(ct(r)),paragraphNode:r}}function Gw(e){let t=Ir(e,"styleId");if(!Lo(t))return null;let n=Ir(e,"type")??"",r=Cr(e,"name"),o=r?Ir(r,"val"):void 0,a=Cr(e,"basedOn"),i=a?Ir(a,"val"):void 0,l=Lo(i)?i:null,d=Cr(e,"next"),s=d?Ir(d,"val"):void 0,c=Lo(s)?s:null,u=Ao(e),f=Ul(e),m=new Map,g=0;for(let p of e.children){if(p.kind==="textValue"||p.localName!=="tblStylePr")continue;if(g>=Ij)break;g+=1;let h=Ir(p,"type");h&&!m.has(h)&&m.set(h,p);}return {styleId:t,name:o&&o.length<=128?o:void 0,type:n,basedOn:l,next:c,outlineLevel:chunkEHT4LKKZ_cjs.d(e),isDefault:Cj(Ir(e,"default")),paragraphProperties:Ii(ct(u)),runProperties:Ii(ct(f)),paragraphPropertiesNode:u,tablePropertiesNode:Cr(e,"tblPr"),tableRowPropertiesNode:Cr(e,"trPr"),tableCellPropertiesNode:Cr(e,"tcPr"),conditionalTableFormats:m}}function B9(e){let t,n,r,o,a,i,l,d,s,c,u,f,m,g,p,h,b;return {styleCascade(){let y=e.stylesRoot(),x=e.documentThemeFonts(),S=e.settingsRoot();return (f===void 0||y!==r||S!==m||x.major!==o||x.minor!==a||x.majorEastAsia!==i||x.minorEastAsia!==l||x.majorBidi!==d||x.minorBidi!==s||x.majorSupplemental!==c||x.minorSupplemental!==u)&&(r=y,o=x.major,a=x.minor,i=x.majorEastAsia,l=x.minorEastAsia,d=x.majorBidi,s=x.minorBidi,c=x.majorSupplemental,u=x.minorSupplemental,m=S,f=Yw(y,x,S)),f},defaultTabStopPt(){let y=e.settingsRoot();return (p===void 0||y!==g)&&(g=y,p=ZR(y)),p},compatibilityMode(){let y=e.settingsRoot();return y!==h&&(h=y,b=Rl(y)),b},numberingIndex(){let y=e.numberingRoot();return (n===void 0||y!==t)&&(t=y,n=Ok(y)),n}}}var Mj={state:"none"},Yv=(e,t)=>t.state==="omitted"?e:t;function Qr(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?Mj:e}function vy(e,t){let n=Yv;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 Fy(e,t){let n=Yv;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 eo(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function vm(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]=Bj(e[i],o,n,r);}return a}function Bj(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),m=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=m||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:m,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,d=[],s=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=d[d.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?d[d.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(d.push({start:l,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),s(),l=c.x;}return d}function Ej(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 Oa(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=Ej(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Nj=256,Kt={state:"omitted"},Mm={state:"none"},Jv={top:Kt,left:Kt,bottom:Kt,right:Kt,insideH:Kt,insideV:Kt},Qv={top:Kt,left:Kt,bottom:Kt,right:Kt},Iy={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},Aj=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 gs(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Oy(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Dj(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function _j(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>_u?_u:t}function Cy(e){if(!e)return Kt;let t=Oy(e,"val");if(!t)return Kt;if(t==="nil"||t==="none")return Mm;let n=Aj.get(t)??"single",r=Oy(e,"color"),o=r===void 0||r==="auto"?null:Sg(r)??null;return {state:"edge",style:n,color:o,widthPt:_j(Dj(Oy(e,"sz")))}}function eF(e,t){if(!e)return Qv;let n={top:Kt,left:Kt,bottom:Kt,right:Kt};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=gs(e,r)??(o?gs(e,o):void 0);n[r]=Cy(a);}return n}function My(e){let t=e&&gs(e,"tblBorders");return t?{...eF(t,["top","left","bottom","right"]),insideH:Cy(gs(t,"insideH")),insideV:Cy(gs(t,"insideV"))}:Jv}function By(e){return eF(e&&gs(e,"tcBorders"),["top","left","bottom","right"])}function Xv(e){return e.state!=="edge"?0:e.style==="dotted"||e.style==="dashed"?1:Math.max(1,Math.round(e.widthPt*8))*Iy[e.style]}function qv(e){if(!e)return [0,0,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+r+2*n,r+2*n,n]}function jj(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?Kt:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?Mm:t;if(t.state==="none")return e;let r=Xv(e),o=Xv(t);if(r>o)return e;if(o>r)return t;let a=Iy[e.style],i=Iy[t.style];if(a!==i)return a>i?e:t;let l=qv(e.color),d=qv(t.color);for(let s=0;s<l.length;s++){if(l[s]<d[s])return e;if(d[s]<l[s])return t}return n?e:t}function Fm(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function Hj(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function Wj(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 Om(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&&Wj(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function Im(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 Zv(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 zj(e){if(!(!e||e.style!=="double"))return bl(e.widthPt)}function Vj(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function Gj(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function Kj(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function $j(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function Uj(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function uc(e,t){e.length>=Nj||!(t.width>0)||!(t.height>0)||e.push(t);}function Yj(e,t,n,r,o,a,i,l,d,s,c){let u=bl(n.widthPt),{strokePt:f,gapPt:m,extentPt:g,insetPt:p}=u,h=Math.abs(r)<1e-6,b=Math.abs(o-a)<1e-6,y=Math.abs(r)<1e-6,x=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let P=t==="top"?p:i-p-f,w=t==="top"?p+f+m:i-p-g;for(let F of ["outer","inner"]){let I=r,v=o;h&&(I=Gj(F,l)),b&&(v=Kj(F,a,d)),uc(e,{side:t,role:F,color:n.color,cssStyle:"solid",x:I,y:F==="outer"?P:w,width:v-I,height:f});}return}let S=t==="left"?p:a-p-f,R=t==="left"?p+f+m:a-p-g;for(let P of ["outer","inner"]){let w=r,F=o;y&&(w=$j(P,s)),x&&(F=Uj(P,i,c)),uc(e,{side:t,role:P,color:n.color,cssStyle:"solid",x:P==="outer"?S:R,y:w,width:f,height:F-w});}}function Xj(e,t,n,r,o,a,i){let l=Math.max(.25,n.widthPt),d=Math.max(.25,l),s=l*3+d*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-s;for(let f=0;f<3;f+=1)uc(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(l+d),width:o-r,height:l});return}let c=t==="left"?0:a-s;for(let u=0;u<3;u+=1)uc(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(l+d),y:r,width:l,height:o-r});}function qj(e,t,n,r,o,a,i,l){let d=t==="top"||t==="bottom",s=n.widthPt,c=d?r:l?t==="right"?a-s/2:-s/2:t==="right"?a:0;uc(e,{side:t,role:"edge",color:n.color,cssStyle:Vj(n.style),x:c,y:d?t==="bottom"?i-(l?0:s):0:r,width:d?o-r:s,height:d?s:o-r});}function Cm(e,t){if(e.length===0)return;let n=e[0];return zj(n.edge)}function Zj(e,t,n,r,o,a,i,l,d,s,c=false,u=false,f=false){let m=(H,A,D)=>{let j=[];for(let C of A){if(!C.edge)continue;let M,_;D?(M=Zv(i,l,C.gridStart),_=Zv(i,l,C.gridEnd)):(M=d[C.gridStart-s]??0,_=d[C.gridEnd-s]??a),j.push({side:H,gridStart:C.gridStart,gridEnd:C.gridEnd,startPt:M,endPt:_,edge:C.edge});}return j},g=m("top",e,true),p=m("left",t,false),h=m("bottom",n,true),b=m("right",r,false),y=[...g,...b,...h,...p],x=Cm(t),S=Cm(r),R=Cm(e),P=Cm(n),w=(H,A)=>H.length===1&&Math.abs(H[0].startPt)<1e-6&&Math.abs(H[0].endPt-A)<1e-6,F=w(g,o),I=w(p,a),v=w(h,o),T=w(b,a),k=[],O=(H,A,D)=>{for(let j of A){let{edge:C,startPt:M,endPt:_}=j;C.style==="double"?Yj(k,H,C,M,_,o,a,H==="top"||H==="bottom"?x:void 0,H==="top"||H==="bottom"?S:void 0,H==="left"||H==="right"?R:void 0,H==="left"||H==="right"?P:void 0):C.style==="triple"?Xj(k,H,C,M,_,o,a):(!D||c&&(H==="top"||H==="bottom")||H==="right"||f&&H==="left")&&qj(k,H,C,M,_,o,a,H==="left"||H==="right"?f:c&&H!=="top"&&!(H==="bottom"&&u));}};O("top",g,F),O("left",p,I),O("bottom",h,v),O("right",b,T);let L={};return F&&g[0]&&(L.top=g[0].edge),I&&p[0]&&(L.left=p[0].edge),v&&h[0]&&(L.bottom=h[0].edge),T&&b[0]&&(L.right=b[0].edge),y.length>0&&(L.edgeSegments=y),k.length>0&&(L.strokes=k),L}function hs(e,t,n,r,o,a){let i=e.length,l=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let d=vm(e,n,o,a),s=(u,f,m)=>Qr(u.borders[f],Hj(t,f,m),{}),c=(u,f,m,g)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?Mm:jj(m,g);for(let u=0;u<i;u+=1){let f=e[u];for(let m=0;m<f.length;m+=1){let g=f[m];if(g.vMergeContinue){l[u][m]={};continue}let p=g.mergeRowSpan??1,h=u+p-1,b=u===0,y=h===i-1,x=g.gridColumn===0,S=g.gridColumn+g.gridSpan-1,R=S>=n-1,P=[];if(b)for(let D=g.gridColumn;D<=S;D+=1)P.push({gridStart:D,gridEnd:D+1,edge:Fm(s(g,"top",false))});let w=[];if(x)for(let D=u;D<=h;D+=1)w.push({gridStart:D,gridEnd:D+1,edge:Fm(s(g,"left",false))});let F=[];for(let D=g.gridColumn;D<=S;D+=1){let j;if(y)j=s(g,"bottom",false);else {let C=Oa(d,h+1,D,o);C?.cell.vMergeContinue?j=Kt:j=c(g.borders.bottom,C?C.cell.borders.top:Kt,s(g,"bottom",true),C?s(C.cell,"top",true):t.insideH);}F.push({gridStart:D,gridEnd:D+1,edge:Fm(j)});}let I=[];for(let D=u;D<=h;D+=1){let j;if(R)j=s(g,"right",false);else {let C=Oa(d,D,S+1,o);j=c(g.borders.right,C?C.cell.borders.left:Kt,s(g,"right",true),C?s(C.cell,"left",true):t.insideV);}I.push({gridStart:D,gridEnd:D+1,edge:Fm(j)});}let v=Om(P),T=Om(w),k=Om(F),O=Om(I);if(!r){let D={},j=Im(v,g.gridColumn,S+1),C=Im(T,u,h+1),M=Im(k,g.gridColumn,S+1),_=Im(O,u,h+1);j&&(D.top=j),C&&(D.left=C),M&&(D.bottom=M),_&&(D.right=_);let U=[],ne=(X,W)=>{for(let z of W)z.edge&&U.push({side:X,gridStart:z.gridStart,gridEnd:z.gridEnd,startPt:z.gridStart,endPt:z.gridEnd,edge:z.edge});};ne("top",v),ne("left",T),ne("bottom",k),ne("right",O),U.length>0&&(D.edgeSegments=U),l[u][m]=D;continue}let L=r.cellBoxes[u][m],H=[0],A=0;for(let D=u;D<=h;D+=1){let j=r.rowBands[D];A+=j.height,H.push(A);}H.length>1&&(H[H.length-1]=L.height),l[u][m]=Zj(v,T,k,O,L.width,L.height,r.columnWidthsPt,g.gridColumn,H,u,r.collapsedHorizontal,y&&L.outerBottomInsetReserved!==false,L.centeredSidePaint??L.centeredSideRules);}}return l}function fc(e){if(!e||"state"in e&&e.state!=="edge")return 0;if(e.style==="double"){let t=bl(e.widthPt);return t.insetPt+t.extentPt}if(e.style==="triple"){let t=Math.max(.25,e.widthPt);return t*3+Math.max(.25,t)*2}return e.widthPt}var Ey=Jv,Ly=Qv;var nF=31680/20,to=Object.freeze({type:"auto",value:0}),Jj=100,rF=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function Qj(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function mc(e,t){return e.attributes.find(n=>n.localName===t)?.value}function oF(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])*rF[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function Di(e){if(!e)return to;let t=mc(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:to;let n=mc(e,"w");if(n===void 0)return to;let r=oF(n);if(!r)return to;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?to:{type:"pct",value:Math.min(a,Jj)}}return !Number.isFinite(r.pt)||r.pt<=0?to:{type:"dxa",value:Math.min(r.pt,nF)}}function Ay(e,t){if(!e)return;let n=Di(e);if(n.type==="dxa")return Math.min(n.value,t)}function pc(e,t){if(!e)return;let n=mc(e,"type");if(n!==void 0&&n!=="dxa"&&n!=="pct")return;let r=mc(e,"w");if(r===void 0)return;let o;if(/^[-+]?\d{1,9}$/.test(r)){if(n==="pct")return;o=Number(r)/20;}else {let a=/^([-+]?\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(r);if(!a)return;o=Math.abs(Number(a[1]))*rF[a[2]];}if(Number.isFinite(o))return Math.max(-t,Math.min(o,t))+0}function aF(e){let t=Qj(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 eH(e){let t=[];for(let n of e){let r=mc(n,"w"),o=r===void 0?null:oF(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>nF?void 0:o.pt);}return t}var Ny=1,tF=.001;function tH(e,t,n,r){let o=r>0,a=[];for(let l=0;l<n;l+=1)a.push(e[l]);let i=t.filter(l=>l.start<n&&(l.preferred.type==="dxa"||l.preferred.type==="pct"&&r>0)).sort((l,d)=>l.span-d.span);for(let l of i){let d=Math.min(l.start+l.span,n);if(d<=l.start)continue;let s=l.preferred.type==="pct"?r*l.preferred.value/100:l.preferred.value;if(!Number.isFinite(s)||s<=0)continue;if(d-l.start===1){if(o&&l.preferred.type==="dxa"&&e[l.start]!==void 0)continue;let m=a[l.start];a[l.start]=m===void 0?s:Math.max(m,s);continue}let c=[],u=s;for(let m=l.start;m<d;m+=1){let g=a[m];g===void 0?c.push(m):u-=g;}if(c.length===0||u<=0)continue;let f=u/c.length;for(let m of c)a[m]=f;}return a}function iF(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:Ny,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=eH(e.gridCols),l=tH(i,e.claims,t,a),d=0,s=0;for(let b of l)b===void 0?s+=1:d+=b;let c=[];if(s>0){let b=d>0?d/Math.max(t-s,1):o/t,y=Math.max(o-d,0)/s,x=Math.max(Math.min(y,b),Ny);for(let S of l)c.push(S??x);}else for(let b of l)c.push(b);let u=c.reduce((b,y)=>b+y,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*Ny,m=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,g=Math.max(a>0?a:Math.min(u,m),f),p=n.type==="pct"&&a>0;if(u<=g+tF&&!p||Math.abs(u-g)<=tF)return c;let h=g/u;return c.map(b=>b*h)}function ys(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function nH(e,t){return e.attributes.find(n=>n.localName===t)?.value}var rH=3,lF=108/20,gc=31680/20,oH={top:0,right:lF,bottom:0,left:lF};function Bm(e){if(!e)return;let t=nH(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>gc?gc:r}function Em(e){if(!e)return {};let t=Bm(ys(e,"top")),n=Bm(ys(e,"left")??ys(e,"start")),r=Bm(ys(e,"bottom")),o=Bm(ys(e,"right")??ys(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function Lm(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}function vn(e,t,n=false,r=false,o=false){if(t.state!=="edge")return e;let a=Math.floor(t.widthPt*20+1e-8)/20,i=n&&t.style!=="double"&&t.style!=="triple",l=n||r&&(t.style==="single"||t.style==="thick"),d=n&&o&&t.style==="double"?fc(t)-t.widthPt:fc(t);return Math.max(e+a*(l?.5:1),d*(i?.5:1))}function sF(e){return e.state!=="edge"||e.style!=="double"&&e.style!=="triple"}function Ia(e){if(!e||"state"in e&&e.state!=="edge")return 0;let{style:t,widthPt:n}=e;return t==="double"||t==="triple"?0:Math.floor(n*20+1e-8)/20}function qt(e,t){return Dy(e.margins,e.contentBorders??e.borders,e.legacyContentAlignment===true&&t,t,e.contentBottomIsOuter,e.centeredSideRules,e.topBandClearancePt)}function Nm(e,t,n,r=0,o=false){return o?0:e.state==="edge"?Ia(e):t.state==="none"?0:Math.max(Ia(Qr(e,n)),r)}function Dy(e,t,n=false,r=true,o=false,a=false,i){let l=fc(t.left),d=fc(t.right),s=[t.left,t.right].every(g=>g.state!=="edge"||g.style==="single"||g.style==="thick"),c=n&&s&&e.left>=l&&e.right>=d,u=r&&i!==void 0,f=u&&sF(t.top),m=u&&!o&&sF(t.bottom);return {top:f?e.top+i:vn(e.top,t.top,r,false,true),right:a&&r?Math.max(e.right,d/2):c?e.right:vn(e.right,t.right,false,r),bottom:m?e.bottom:vn(e.bottom,t.bottom,r&&!o),left:a&&r?Math.max(e.left,l/2):c?e.left:vn(e.left,t.left,false,r)}}function Ca(e,t,n){let r=e.float;if(!r)return t.text.left+bs(e,t.text.width);let o=e.columnWidthsPt.reduce((d,s)=>d+s,0),a=Am(r,o,t),i=e.rows[0]?.cells[0];if(n!==void 0&&![11,12,14].includes(n)||e.bidiVisual||e.cellSpacingPt!==0||r.horzAnchor!=="text"||r.vertAnchor!=="text"||r.xSpec!==void 0||!i||i.gridColumn!==0)return a;let l=Dy(i.margins,i.contentBorders??i.borders).left;return Math.max(t.page.left,a-l)}function bs(e,t){if(e.legacyContentAlignment&&e.alignment==="left")return -(e.rows[0]?.cells[0]?.margins.left??0);let n=e.columnWidthsPt.reduce((a,i)=>a+i,0),r=t-n;if(!Number.isFinite(r))return 0;if(e.alignment==="center")return r/2;let o=e.outerRuleOffsetPt??0;return e.alignment==="right"?e.bidiVisual?r-e.indentPt:r+o:e.bidiVisual?o:e.indentPt+o}function Am(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 Dm=["single","thick"],dF=["dxa","auto"];function aH(e,t=false){let{left:n,right:r}=e.contentBorders??e.borders;if(t&&[n,r].some(i=>i.state==="edge"&&!Dm.includes(i.style)))return false;let o=n.state==="edge"&&Dm.includes(n.style),a=r.state==="edge"&&Dm.includes(r.style);return !(!o&&!a||o&&a&&n.widthPt!==r.widthPt)}function cF(e,t,n=false){return e.map(r=>({...r,cells:r.cells.map(o=>aH(o,n)?t(o):o)}))}function iH(e,t=false){return cF(e,n=>({...n,centeredSidePaint:true}),t)}function _y(e,t=false){return cF(e,n=>({...n,centeredSideRules:true}),t)}function lH(e,t){let n;for(let r of e){let o=r.cells[0],a=r.cells[r.cells.length-1];if(!o||!a||o.gridColumn!==0||a.gridColumn+a.gridSpan!==t)return;for(let i of r.cells){if(i.vMergeContinue)continue;let{left:l,right:d}=i.contentBorders??i.borders;for(let s of [l,d]){if(s.state!=="edge"||!Dm.includes(s.style)||!(s.widthPt>0)||n!==void 0&&s.widthPt!==n)return;n=s.widthPt;}}}return n}function sH(e,t){if(t.compatibilityMode!==15||!dF.includes(t.widthType)||t.alignment==="center")return;let n=lH(e,t.columnWidthsPt.length);if(n===void 0)return;let r=0;for(let i of t.columnWidthsPt)r+=i;let o=t.alignment==="left";if(!(!((o?t.indentPt:0)+r+n<=t.containerWidthPt+1e-6)&&!(o&&t.layoutFixed)))return o?n/2:-n/2}function uF(e,t){let{compatibilityMode:n}=t;if(t.depth!==0||t.bidiVisual||t.floating||t.cellSpacingPt!==0)return {rows:e};let r=n===void 0||[11,12,14].includes(n),o=n===15&&dF.includes(t.widthType),a=o&&t.alignment==="center",i=r?void 0:sH(e,t);if(!r&&!a&&i===void 0)return {rows:e};let l=iH(e,!r),d=t.widthType==="dxa"||o?_y(l,!r):l;return i===void 0?{rows:d}:{rows:d,outerRuleOffsetPt:i}}var fF=1048576;function Ho(e=fF){let t=e|0;return {cellsRemaining:t>0?t:0}}function xs(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=i?new Set:null,d=i,c=m=>{let g=a.get(m);g&&(o.set(g.id,g.span),a.delete(m));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let m of [...a.keys()])c(m);};for(let m of e){if(u()){f();break}d&&m.isHeaderRepeat!==true&&(d=false,f(),l?.clear());let g=new Set,p=false;for(let h of m.cells){if(n){if(n.cellsRemaining<=0){p=true;break}n.cellsRemaining-=1;}let b=Math.max(0,Math.min(h.gridColumn|0,1023));if(g.add(b),h.vMergeContinue){let y=a.get(b);y?y.span+=1:l&&!l.has(b)&&(a.set(b,{id:h.id,span:1}));}else c(b),a.set(b,{id:h.id,span:1});l?.add(b);}if(p){f();break}for(let h of [...a.keys()])g.has(h)||c(h);}return f(),o}var dH={state:"omitted"};function mF(e,t,n){return n?e.map(r=>({...r,cells:r.cells.map(o=>({...o,margins:{...o.margins,left:o.margins.right,right:o.margins.left},borders:{...o.borders,left:o.borders.right,right:o.borders.left},logicalGridColumn:o.gridColumn,gridColumn:Math.max(0,t-o.gridColumn-o.gridSpan)}))})):e}function cH(e,t,n,r,o,a){let i=e.map(()=>new Float64Array(a));for(let l=0;l<e.length;l+=1)for(let d=0;d<e[l].cells.length;d+=1){let s=e[l].cells[d];if(s.vMergeContinue)continue;let c=l+(r.get(s.id)??1),u=i[c];if(u)for(let f of n[l][d].edgeSegments??[]){if(f.side!=="bottom")continue;let m=Ia(f.edge),g=Math.min(f.gridEnd,a);for(let p=Math.max(0,f.gridStart);p<g;p+=1)u[p]=Math.max(u[p],m);}}return e.map((l,d)=>{let s=0;for(let c of l.cells){let u=d===0?t.top:t.insideH,f=Math.min(c.gridColumn+c.gridSpan,a);for(let m=c.gridColumn;m<f;m+=1){let g=d===0?void 0:Oa(o,d-1,m),p=g?e[d-1]?.cells[g.cellIndex]:void 0;s=Math.max(s,Nm(c.borders.top,p?.borders.bottom??dH,u,i[d]?.[m]??0,c.suppressesTopBand));}}return s})}function _m(e,t,n,r=true){let o=xs(e);if(!r)return uH(e,t,n,o);let a=e.map(f=>f.cells.map(m=>({...m,mergeRowSpan:o.get(m.id)??1}))),i=vm(a,n),l=hs(a,t,n),d=new Map;for(let f=0;f<e.length;f++)for(let m of e[f].cells){if(m.vMergeContinue)continue;d.set(m.id,m);let g=f+(o.get(m.id)??1);for(let p=f+1;p<g;p++){let h=Oa(i,p,m.gridColumn),b=h&&e[p]?.cells[h.cellIndex];b?.vMergeContinue&&d.set(b.id,m);}}let s=new Map;for(let f of e)for(let m of f.cells){let g=p=>p.state==="none"?p:{state:"omitted"};s.set(m.id,{top:g(m.borders.top),bottom:g(m.borders.bottom),left:g(m.borders.left),right:g(m.borders.right)});}let c=(f,m,g)=>{let p=d.get(f.id)??f,h=s.get(p.id),b={state:"edge",...g},y=m==="top"||m==="bottom";(h[m].state!=="edge"||vn(p.margins[m],b,y,!y,m==="top")>vn(p.margins[m],h[m],y,!y,m==="top"))&&s.set(p.id,{...h,[m]:b});};for(let f=0;f<e.length;f++)for(let m=0;m<e[f].cells.length;m++){let g=e[f].cells[m];for(let p of l[f][m].edgeSegments??[])if(c(g,p.side,p.edge),p.side==="right"){let h=g.gridColumn+g.gridSpan;for(let b=p.gridStart;b<p.gridEnd;b++){let y=Oa(i,b,h),x=y&&e[b]?.cells[y.cellIndex];x&&c(x,"left",p.edge);}}else if(p.side==="bottom"){let h=f+(o.get(g.id)??1);for(let b=p.gridStart;b<p.gridEnd;b++){let y=Oa(i,h,b),x=y&&e[h]?.cells[y.cellIndex];x&&c(x,"top",p.edge);}}}let u=cH(e,t,l,o,i,n);return e.map((f,m)=>({...f,cells:f.cells.map(g=>{let p=u[m];return g.vMergeContinue?{...g,topBandClearancePt:p}:{...g,topBandClearancePt:p,contentBorders:s.get(g.id),contentBottomIsOuter:m+(o.get(g.id)??1)===e.length}})}))}function uH(e,t,n,r){let o=(a,i)=>a.state==="omitted"&&i.state==="edge"?i:a;return e.map((a,i)=>({...a,cells:a.cells.map(l=>({...l,contentBorders:{top:o(l.borders.top,i===0?t.top:t.insideH),bottom:o(l.borders.bottom,i+(r.get(l.id)??1)===e.length?t.bottom:t.insideH),left:o(l.borders.left,l.gridColumn===0?t.left:t.insideV),right:o(l.borders.right,l.gridColumn+l.gridSpan===n?t.right:t.insideV)}}))}))}function pF(e,t,n,r,o){if(!t.some(i=>i.height.rule==="atLeast")||!t.some(i=>i.cells.some(l=>l.vMergeContinue)))return e;let a=_m(t.map(i=>({...i,cells:i.cells.map(l=>({...l,vMergeContinue:false}))})),n,r,o);return e.map((i,l)=>i.height.rule!=="atLeast"?i:{...i,cells:i.cells.map((d,s)=>{let c=a[l].cells[s],u=qt(c,o);return {...d,minimumContentInsets:{top:u.top,bottom:u.bottom}}})})}function Ss(e,t,n){let r=0,o=0;for(let a of t){let i=n?.get(a.cell.id)??a.cell.minimumContentInsets??a.insets;r=Math.max(r,i.top),o=Math.max(o,i.bottom);}return e+r+o}function fH(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Mr(e,t){return e.attributes.find(n=>n.localName===t)?.value}var gF=31680/20;function hF(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Ps(e,t=false){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let n=Number(e);if(!Number.isFinite(n))return;let r=(n-(t?1:0))/20;return Math.max(-gF,Math.min(gF,r))}function hc(e){let t=e&&fH(e,"tblpPr");if(!t)return;let n=Mr(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=Mr(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:hF(Mr(t,"horzAnchor"))??"text",vertAnchor:hF(Mr(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Ps(Mr(t,"tblpX"),true)??0,...a?{ySpec:a}:{},yPt:Ps(Mr(t,"tblpY"),true)??0,...["topFromText","rightFromText","bottomFromText","leftFromText"].some(i=>Mr(t,i)!==void 0)?{distances:{top:Math.max(0,Ps(Mr(t,"topFromText"))??0),right:Math.max(0,Ps(Mr(t,"rightFromText"))??0),bottom:Math.max(0,Ps(Mr(t,"bottomFromText"))??0),left:Math.max(0,Ps(Mr(t,"leftFromText"))??0)}}:{}}}function jy(e){return e.textDirection==="btLr"&&!e.vMergeContinue}function bF(e,t,n,r,o,a){return e?{flowLeft:t+a.bottom,flowRight:t+Math.max(0,o-r)-a.top,contentTop:r+a.left,contentMaxBottom:r+n-a.right}:{flowLeft:t+a.left,flowRight:t+n-a.right,contentTop:r+a.top,contentMaxBottom:o-a.bottom}}function xF(e,t){let n=false;for(let[r,o]of e.entries()){if(!o.flowTo)continue;let a=o.flowTo(o.x+t-o.insets.top);n||=a.fitted,e[r]={...o,blocks:a.blocks,contentBottom:a.bottom,fitted:a.fitted,nextCursor:mH(o.cell)};}return n}var SF=new WeakMap;function PF(e,t){e.forEach((n,r)=>{let o=n.flowTo,a=t[r];!o||!a||SF.set(a.blocks,i=>o(n.x+i-n.insets.top,true).blocks);});}function RF(e,t){return SF.get(e)?.(t)}function mH(e){return {blockIndex:e.blocks.length,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}}function wF(e,t,n,r){if(e.height.rule==="exact"||!e.cells.some(a=>jy(a)))return false;if(e.cells.every(a=>a.vMergeContinue||a.textDirection==="btLr"))return true;if(e.height.rule!=="atLeast")return false;let o=e.cells.map(a=>({cell:a,insets:n(a)}));return Ss(e.height.valuePt,o,r)>t+.001}function kF(e){let t=e?.children.find(r=>r.kind!=="textValue"&&r.localName==="textDirection");return !t||t.kind==="textValue"?"horizontal":t?.attributes.find(r=>r.localName==="val")?.value==="btLr"?"btLr":"horizontal"}function TF(e,t){return {x:t.x+t.height-(e.y-t.y),y:t.y+(e.x-t.x)}}var yF=new WeakMap,vF=new WeakSet;function pH(e){let t=yF.get(e);if(t)return t;let n=new Map,r=(o,a)=>{for(let i of o)if(i.kind==="table")for(let l of i.rows)for(let d of l.cells)if(d.textDirection==="btLr")for(let s of Kn(d.blocks)){let c=n.get(s.paragraphId)??[];c.push({pageIndex:a,cell:d}),n.set(s.paragraphId,c);}else r(d.blocks,a);};for(let o of e.pages){r(o.fragments,o.index),o.header&&r(o.header.fragments,o.index),o.footer&&r(o.footer.fragments,o.index);for(let a of [o.footnotes,o.endnotes])if(a){a.separator&&r(a.separator.fragments,o.index),a.continuationNotice&&r(a.continuationNotice.fragments,o.index);for(let i of a.notes)r(i.fragments,o.index);}}return yF.set(e,n),n}function FF(e,t,n){let r=pH(e).get(n)??[];return r.find(o=>o.pageIndex===t)??r[0]}function Rs(e,t){let n=FF(e,t.pageIndex,t.position.paragraphId);if(!n)return t;let r=gH(t,n.cell.box),o={...t,...r};return vF.add(o),o}function m5(e){return vF.has(e)}function Hy(e,t,n){let r=FF(e,n.pageIndex,t);if(!r)return n;let o=r.cell.box;return {...n,x:o.x+(n.y-o.y),y:o.y+o.height-(n.x-o.x)-n.width,width:n.height,height:n.width}}function gH(e,t){return {x:t.x+(e.y-t.y),y:t.y+t.height-(e.x-t.x)}}function OF(e){let t;for(let r of e?.children??[])if(r.kind!=="textValue"&&r.localName==="vAlign"){t=r;break}let n=t?.attributes.find(r=>r.localName==="val")?.value;return n==="center"?"center":n==="bottom"?"bottom":"top"}function IF(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}}function Wy(e){let t=IF(e,"tblHeader");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunk6KA3L3FR_cjs.da&&r.localName==="val")?.value;return n===void 0||n!=="0"&&n!=="false"&&n!=="off"}function CF(e,t,n){let r=false;for(let o of e.tableRowPropertyNodes)r=Wy(o)??r;for(let o of t)r=Wy(IF(e.conditional.get(o),"trPr"))??r;return Wy(n)??r}function zy(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}}function jm(e){if(e?.namespaceUri!==chunk6KA3L3FR_cjs.da)return;let t=zy(e,"hideMark");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunk6KA3L3FR_cjs.da&&r.localName==="val")?.value;return n===void 0||!["0","false","off"].includes(n)}function MF(e,t,n){let r=false;for(let o of e.tableCellPropertyNodes??[])r=jm(o)??r;for(let o of t){let a=e.conditionalStyleLayers?.get(o);if(a)for(let i of a)r=jm(zy(i,"tcPr"))??r;else r=jm(zy(e.conditional.get(o),"tcPr"))??r;}return jm(n)??r}function BF(e,t,n,r,o){let a=e.at(-1);if(!t||!a||a.spans.length>0||a.drawings.length>0)return e;let i=e.length===1&&o?.markerText&&!o.markerStyle.hidden?n.lineMetrics(o.markerStyle):{height:0,baseline:0},l=i.height>0?zr(r,i.height,i.baseline):i;return [...e.slice(0,-1),{...a,height:l.height,baseline:l.baseline,leading:Math.max(0,l.baseline-i.baseline),trailingSpacing:r.rule==="exact"?0:Math.max(0,l.trailing??l.height-i.height)}]}function hH(e){if(e.namespaceUri!==chunk6KA3L3FR_cjs.da)return false;let t=new Set;for(let n of e.children){if(n.kind==="textValue")continue;let r=n.localName==="start"?"left":n.localName==="end"?"right":n.localName;if(n.namespaceUri!==chunk6KA3L3FR_cjs.da||!["top","left","bottom","right"].includes(r)||t.has(r))return false;t.add(r);let o=n.attributes.filter(i=>i.localName==="w"),a=n.attributes.filter(i=>i.localName==="type");if(o.length!==1||o[0].namespaceUri!==chunk6KA3L3FR_cjs.da||!/^\d{1,9}$/.test(o[0].value)||Number(o[0].value)>31680||a.length>1||a.length===1&&(a[0].namespaceUri!==chunk6KA3L3FR_cjs.da||a[0].value!=="dxa"))return false}return true}function Hm(e,t){let n=[e,...t];for(;n.length>0;){let r=n.pop();for(let o of r.children)if(!(o.kind==="textValue"||o.kind==="paragraph"||o.kind==="table"))if(o.localName==="tblCellMar"||o.localName==="tcMar"){if(!hH(o))return false}else n.push(o);}return true}var Vy=31680/20,EF=.001;function LF(e,t,n){let r=n/1e4+.025;return e.map(o=>{if(o.span!==1||o.preferred.type!=="pct")return o;let a=o.preferred.value*50;if(Math.abs(a-Math.round(a))>1e-8)return o;let i=no(t[o.start],"w");if(i===void 0||!/^\d{1,9}$/.test(i))return o;let l=Number(i)/20,d=n*o.preferred.value/100-l;return d>0&&d<=r+EF?{...o,preferred:{type:"dxa",value:l}}:o})}function yc(e,t){let n;for(let r of e.children)if(!(r.kind==="textValue"||r.localName!==t)){if(n||r.namespaceUri!==chunk6KA3L3FR_cjs.da)return;n=r;}return n}function no(e,t){let n=e?.attributes.filter(r=>r.localName===t);return n?.length===1&&n[0].namespaceUri===chunk6KA3L3FR_cjs.da?n[0].value:void 0}function NF(e){let{compatibilityMode:t,contentWidthPt:n,table:r,rows:o,columnCount:a}=e;if(t!==void 0&&t!==11&&t!==12&&t!==14||e.depth!==0||e.floating||e.layoutFixed||!["left","center"].includes(e.alignment)||e.indentPt!==0||e.cellSpacingPt!==0||e.tableWidth.type!=="pct"||e.tableWidth.value<=0||e.tableWidth.value>100||!Number.isFinite(n)||n<=0||n>Vy||a<1||a>1024)return;let i=yc(r,"tblPr");if(!i)return;let l=yc(i,"tblW"),d=yc(i,"tblInd"),s=no(l,"w"),c=yc(i,"tblLayout"),u=S=>i.children.some(R=>R.kind!=="textValue"&&R.localName===S);if(no(l,"type")!=="pct"||s===void 0||(!/^\d{1,4}$/.test(s)||Number(s)>5e3)&&(!/^\d{1,3}(?:\.\d+)?%$/.test(s)||Number(s.slice(0,-1))>100)||u("tblInd")&&(no(d,"type")!=="dxa"||no(d,"w")!=="0")||u("tblLayout")&&no(c,"type")!=="autofit")return;for(let S of [...e.propertyNodes,i])for(let R of S.children)if(R.kind!=="textValue"&&(["jc","tblCellSpacing"].includes(R.localName)&&R.namespaceUri!==chunk6KA3L3FR_cjs.da||R.localName==="tblpPr"||R.localName==="bidiVisual"||R.localName==="jc"&&!["left","start","center"].includes(no(R,"val")??"")||R.localName==="tblCellSpacing"&&(no(R,"type")!=="dxa"||no(R,"w")!=="0")))return;let f=o[0]?.cells[0],m=o[0]?.cells.at(-1);if(!f||!m||!Hm(r,e.propertyNodes))return;let g=f.margins.left,p=m.margins.right,h=n+g+p;if(!Number.isFinite(h)||g<0||p<0||g+p<=0||h>Vy)return;for(let S of o){let R=S.cells[0],P=S.cells.at(-1);if(!R||!P||R.gridColumn!==0||P.gridColumn+P.gridSpan!==a||R.margins.left!==g||P.margins.right!==p)return}let b=yc(r,"tblGrid");if(!b)return;let y=0,x=0;for(let S of b.children){if(S.kind==="textValue")continue;if(S.localName!=="gridCol"||S.namespaceUri!==chunk6KA3L3FR_cjs.da)return;let R=no(S,"w");if(R===void 0||!/^\d{1,9}$/.test(R))return;let P=Number(R)/20;if(P<1||P>Vy||++y>1024)return;x+=P;}return y===a&&Math.abs(x-h*e.tableWidth.value/100)<=.025+EF?h:void 0}function yH(e){let t=[...e.children],n=0;for(;t.length>0;){if(++n>1e5)return true;let r=t.pop();if(!(r.kind==="textValue"||r.kind==="paragraph"||r.kind==="table")){if(r.localName==="tblPrEx"&&r.children.some(o=>o.kind!=="textValue"&&["tblW","jc","tblCellSpacing","tblInd","tblBorders","tblLayout","tblCellMar"].includes(o.localName)))return true;if(r.localName==="gridBefore"||r.localName==="gridAfter"){let o=r.attributes.find(a=>a.localName==="val");if(r.namespaceUri!==chunk6KA3L3FR_cjs.da||o?.namespaceUri!==chunk6KA3L3FR_cjs.da||o.value!=="0")return true}for(let o of r.children)t.push(o);}}return false}function AF(e,t,n,r){if(r.compatibilityMode!==14||r.depth!==0||r.bidiVisual||r.floating||r.cellSpacingPt!==0||!r.layoutFixed||r.alignment!=="left"||!["auto","dxa"].includes(r.widthType)||!Hm(e,t)||yH(e))return;let o=e.children.find(i=>i.kind!=="textValue"&&i.localName==="tblPr");for(let i of o&&o.kind!=="textValue"?[...t,o]:t)for(let l of i.children){if(l.kind==="textValue"||l.localName!=="tblInd")continue;let d=l.attributes.filter(c=>c.localName==="type"),s=l.attributes.filter(c=>c.localName==="w");if(l.namespaceUri!==chunk6KA3L3FR_cjs.da||d.length>1||s.length!==1||s[0].namespaceUri!==chunk6KA3L3FR_cjs.da||d[0]&&(d[0].namespaceUri!==chunk6KA3L3FR_cjs.da||d[0].value!=="dxa")||pc(l,31680/20)===void 0)return}let a=n[0]?.cells[0]?.margins.left;if(!(a===void 0||!Number.isFinite(a)||a<0)){for(let i of n){let l=i.cells[0],d=i.cells.at(-1);if(!l||!d||l.gridColumn!==0||l.margins.left!==a||d.gridColumn+d.gridSpan!==r.columnWidthsPt.length)return;for(let s of i.cells){if(s.vMergeContinue)continue;let c=s.contentBorders??s.borders;if(c.left.state==="edge"&&c.right.state==="edge"&&c.left.widthPt!==c.right.widthPt)return;for(let u of ["left","right"]){let f=c[u],m=s.margins[u];if(!Number.isFinite(m)||m<0||f.state==="edge"&&(!["single","thick"].includes(f.style)||m<f.widthPt/2))return}}}return -a}}function jF(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Ky(e,t){return e.attributes.find(n=>n.localName===t)?.value}var bH=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function Wo(e,t){let n=Ky(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function HF(e){let t=e&&jF(e,"tblLook");if(!t)return bH;let n=Ky(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:Wo(t,"firstRow")??(r&32)!==0,lastRow:Wo(t,"lastRow")??(r&64)!==0,firstColumn:Wo(t,"firstColumn")??(r&128)!==0,lastColumn:Wo(t,"lastColumn")??(r&256)!==0,rowBanding:Wo(t,"noHBand")===void 0?(r&512)===0:!Wo(t,"noHBand"),columnBanding:Wo(t,"noVBand")===void 0?(r&1024)===0:!Wo(t,"noVBand")}}var Gy=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],DF=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function _F(e,t){let n=e&&jF(e,"cnfStyle");if(!n)return;let r=Ky(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Gy.length;o+=1)r[o]==="1"&&t.add(Gy[o]);for(let o=0;o<DF.length;o+=1)Wo(n,DF[o])===true&&t.add(Gy[o]);}var xH=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function $y(e){let t=new Set;_F(e.rowProperties,t),_F(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,d=t.has("firstRow")||n.firstRow&&r===0,s=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=l;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let p=a-(n.firstColumn?1:0);t.add(p%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!d&&!s){let p=r-(n.firstRow?1:0);t.add(p%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),d&&t.add("firstRow"),s&&t.add("lastRow"),d&&c&&t.add("nwCell"),d&&u&&t.add("neCell"),s&&c&&t.add("swCell"),s&&u&&t.add("seCell");let g=[];for(let p of xH)t.has(p)&&g.push(p);return g}var Xy=16,SH=31680/20,WF=1023,PH=256,zF=31680/20;function VF(e){let t=e&&ot(e,"jc");if(!t)return;let n=ro(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}function ot(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function ro(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Uy(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)return n}function _i(e,t){return e.attributes.find(n=>n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)?.value}function RH(e){let t=e&&ot(e,"gridSpan"),n=t&&ro(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 GF(e,t){let n=e&&ot(e,t),r=n&&ro(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 wH(e){let t=e&&ot(e,"vMerge");return t?ro(t,"val")!=="restart":false}function KF(e){return uP(e&&ot(e,"shd"))}function Yy(e,t){let n=e&&ot(e,t);if(!n)return false;let r=ro(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var bc=Object.freeze({rule:"auto"});function kH(e){let t=e&&ot(e,"trHeight");if(!t)return bc;let n=ro(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return bc;let o=ro(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return bc;let a=Number(o);if(!Number.isFinite(a)||a<=0)return bc;let i=Math.min(a/20,SH);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:bc}var TH=new WeakMap,vH=new WeakMap;function Zt(e,t,n,r,o="all-markup",a,i){let l=a?vH:TH,d=l.get(e);if(d&&d.contentWidthPt===t&&d.depth===n&&d.styleCascade===r&&d.displayMode===o&&d.authorFilter===a&&d.compatibilityMode===i)return d.structure;let s=FH(e,t,n,r,o,a,i),c={contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,authorFilter:a,compatibilityMode:i,structure:s};return l.set(e,c),s}function FH(e,t,n,r,o,a,i){if(n>=Xy||e.kind!=="table")return null;let l=ot(e,"tblPr"),d=l&&ot(l,"tblStyle")?ro(ot(l,"tblStyle"),"val"):void 0,s=r?Kw(r,d):qf,c=HF(l),u=false;for(let J of s.tablePropertyNodes)ot(J,"bidiVisual")&&(u=Yy(J,"bidiVisual"));l&&ot(l,"bidiVisual")&&(u=Yy(l,"bidiVisual"));let f={top:0,right:.5,bottom:0,left:.5},m=Ey;for(let J of s.tablePropertyNodes)f=Lm(f,Em(ot(J,"tblCellMar"))),m=vy(m,My(J));let g=Lm(f,Em(l&&ot(l,"tblCellMar"))),p=vy(m,l?My(l):Ey),h=new Map,b=$w(s),y=J=>{if(!b)return vh;let ee=J.join("|"),re=h.get(ee);if(re)return re;let oe=Uw(s,J);return h.size<PH&&h.set(ee,oe),oe},x=[],S=[],R=1;for(let J of chunk6KA3L3FR_cjs.rb(e.children)){if(J.kind!=="tableRow")continue;let ee=Uy(J,"trPr"),re=ee?Uy(ee,"ins")??Uy(ee,"del"):void 0,oe=re?.localName,ue=re?_i(re,"author")??"":void 0,B=re&&ue!==void 0&&a?cR(a,re.id,ue,o):o;if(B==="proposed"&&oe==="del"||B==="original"&&oe==="ins")continue;let pe=B==="all-markup"?re:void 0,Ie=re&&B!=="all-markup"&&ue!==void 0&&(!a||nf(a,re.id,ue))?[{kind:oe==="ins"?"insert":"delete",id:_i(re,"id")??"",author:ue,..._i(re,"date")===void 0?{}:{date:_i(re,"date")},nodeId:re.id}]:void 0,ye=[],tt=[],Ne=[],ae=Math.min(GF(ee,"gridBefore"),WF);ae>0&&S.push({start:0,span:ae,preferred:Di(ee&&ot(ee,"wBefore"))});let be=ae,Z=chunk6KA3L3FR_cjs.rb(J.children);for(let ge of Z){if(ge.kind!=="tableCell")continue;let xe=ot(ge,"tcPr"),Re=Math.min(be,WF),Ce=Math.min(RH(xe),1024-Re),Ae=Di(xe&&ot(xe,"tcW"));ye.push(Re),tt.push(Ce),Ne.push(Ae),S.push({start:Re,span:Ce,preferred:Ae}),be=Re+Ce;}let Pe=GF(ee,"gridAfter"),Te=Math.min(be+Pe,1024);Pe>0&&be<1024&&S.push({start:be,span:Math.min(Pe,1024-be),preferred:Di(ee&&ot(ee,"wAfter"))}),Te>R&&(R=Te),x.push({node:J,revision:pe,changeSites:Ie,cells:Z,properties:ee,starts:ye,spans:tt,preferred:Ne,gridColumns:Te});}let P=aF(e),w=P.length>0?P.length:R,F=x.length,I=[];for(let J=0;J<x.length;J+=1){let ee=x[J],re=ee.node,oe=ee.properties,ue=$y({look:c,rowIndex:J,rowCount:F,gridColumn:0,gridSpan:Math.max(1,w),columnCount:Math.max(1,w),rowProperties:oe,cellProperties:void 0}),B=CF(s,ue,oe),pe=0,Ie=[];for(let Z of ee.cells){if(Z.kind!=="tableCell")continue;let Pe=ot(Z,"tcPr"),Te=ee.starts[pe],ge=ee.spans[pe],xe=ee.preferred[pe]??to,Re=$y({look:c,rowIndex:J,rowCount:F,gridColumn:Te,gridSpan:ge,columnCount:w,rowProperties:oe,cellProperties:Pe});pe+=1;let Ce,Ae=Ly;for(let Fn of Re){let kt=s.conditional.get(Fn);if(!kt)continue;let Tt=ot(kt,"tcPr");Ce=KF(Tt)??Ce,Ae=Fy(Ae,By(Tt));}let qe=KF(Pe)??Ce,Le=Lm(g,Em(Pe&&ot(Pe,"tcMar"))),on=tc(Z.children,o,a),wt=Pe?By(Pe):Ly;Ie.push({id:Z.id,gridSpan:ge,gridColumn:Te,...P[Te]?.id?{gridColumnId:P[Te].id}:{},vMergeContinue:wH(Pe),hideEndMark:MF(s,Re,Pe),vAlign:OF(Pe),textDirection:kF(Pe),margins:Le,borders:Fy(Ae,wt),...wt.top.state==="none"?{suppressesTopBand:true}:{},...qe===void 0?{}:{shading:qe},preferredWidth:xe,styleFormatting:y(Re),blocks:on});}let ye=ee.revision,tt=ye?ye.localName==="ins"?"insert":"delete":void 0,Ne=ye&&_i(ye,"id"),ae=ye&&_i(ye,"author"),be=ye&&_i(ye,"date");I.push({id:re.id,...tt?{revisionKind:tt}:{},...Ne!==void 0?{revisionId:Ne}:{},...ae!==void 0?{revisionAuthor:ae}:{},...be!==void 0?{revisionDate:be}:{},...ee.changeSites?{changeSites:ee.changeSites}:{},isHeader:B,cantSplit:Yy(oe,"cantSplit"),height:kH(oe),cells:Ie});}let v=to,T,k,O,L,H;for(let J of s.tablePropertyNodes){let ee=ot(J,"tblW");ee&&(v=Di(ee));let re=ot(J,"tblLayout");re&&(T=ro(re,"type")==="fixed"),k=pc(ot(J,"tblInd"),zF)??k,O=VF(J)??O,L=Ay(ot(J,"tblCellSpacing"),gc)??L,H=hc(J)??H;}let A=l&&ot(l,"tblW"),D=A?Di(A):v,j=l&&ot(l,"tblLayout"),C=j?ro(j,"type")==="fixed":T??false,M=pc(l&&ot(l,"tblInd"),zF)??k??0,_=n===0?M:Math.max(0,M),U=VF(l)??O??"left",ne=n===0?hc(l)??H:void 0,X=Ay(l&&ot(l,"tblCellSpacing"),gc)??L??0,W=NF({table:e,propertyNodes:s.tablePropertyNodes,rows:I,columnCount:w,contentWidthPt:t,compatibilityMode:i,depth:n,tableWidth:D,layoutFixed:C,alignment:U,indentPt:_,cellSpacingPt:X,floating:ne!==void 0}),z=iF({gridCols:P,claims:W===void 0?S:LF(S,P,W*D.value/100),columnCount:w,contentWidthPt:W??t,tableWidth:D,layoutFixed:C}),$=mF(I,z.length,u),V=_m($,u?{...p,left:p.right,right:p.left}:p,z.length,X===0);V=pF(V,$,u?{...p,left:p.right,right:p.left}:p,z.length,X===0);let te={compatibilityMode:i,depth:n,bidiVisual:u,floating:ne!==void 0,cellSpacingPt:X,widthType:D.type,alignment:U,layoutFixed:C,indentPt:_,columnWidthsPt:z,containerWidthPt:t},Q=uF(V,te),Y=AF(e,s.tablePropertyNodes,V,te);V=Y!==void 0&&D.type==="auto"?_y(Q.rows):Q.rows;let de=Y??Q.outerRuleOffsetPt;return {...u?{bidiVisual:true}:{},columnWidthsPt:u?[...z].reverse():z,rows:W===void 0?V:V.map(J=>({...J,cells:J.cells.map(ee=>({...ee,legacyContentAlignment:true}))})),...W===void 0?{}:{legacyContentAlignment:true},...de===void 0?{}:{outerRuleOffsetPt:de},tableWidth:D,layoutFixed:C,indentPt:_,alignment:u?U==="left"?"right":U==="right"?"left":U:U,...ne?{float:ne}:{},cellSpacingPt:X,tableBorders:u?{...p,left:p.right,right:p.left}:p,defaultMargins:u?{...g,left:g.right,right:g.left}:g}}var zm=65536;function a7(e,t){if(e.length>zm)return;let n=new Array(e.length+1).fill(0),r=pt(e),o=Math.max(0,t);for(let[a,i]of r.entries()){let l=o*a/r.length;for(let d=i.utf16From;d<i.utf16To;d++)n[d]=l;n[i.utf16To]=o*(a+1)/r.length;}return n}function i7(e,t,n,r,o){if(e.length>zm||t.text!==e)return;let a=new Array(e.length+1).fill(0),i=[...t.clusters].sort((c,u)=>c.textStart-u.textStart);if(i.length===0&&e.length>0)return;let l=0,d=0,s=Math.max(0,t.glyphs.reduce((c,u)=>c+u.advanceX*n,0)+e.length*r+Wm(e)*o);for(let c of i){if(c.textStart!==d||c.textEnd<=d||c.textEnd>e.length||!Number.isInteger(c.textEnd))return;for(let f=c.textStart;f<c.textEnd;f++)a[f]=l;let u=(c.textEnd-c.textStart)*r+Wm(e.slice(c.textStart,c.textEnd))*o;l=Math.max(l,Math.min(s,l+c.advance*n+u)),a[c.textEnd]=l,d=c.textEnd;}if(d===e.length)return a[e.length]=s,a}function Wm(e){let t=0;for(let n=0;n<e.length;n++)e[n]===" "&&t++;return t}var $F=new WeakMap;function UF(e,t,n){let r=$F.get(n);r||(r=new WeakMap,$F.set(n,r));let o=r.get(e),a=Ve(e.style,e.fontSlot),i=Xt(e.text,a),l=Math.max(0,e.box.width);if(o===void 0){o=null;try{let f=n.caretAdvances?.(i,a);if(f&&f.length===i.length+1){let m=0;o=f.map((g,p)=>p===0?0:(m=Math.max(m,Math.min(l,Number.isFinite(g)?g:m)),p===i.length?l:m));}}catch{}r.set(e,o);}let d=Math.max(0,Math.min(t,e.text.length));if(d===0)return 0;if(d===e.text.length)return l;let s=Xt(e.text.slice(0,d),a);if(o)return o[s.length]??l;let c=a.shaping?.wordSpacingPt??0,u=Math.max(0,l-Wm(i)*c);return Math.max(0,Math.min(l,u*s.length/Math.max(1,i.length)+Wm(s)*c))}function oo(e,t){if(!t)return e;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 a<=r||(e.width===0?o<n:o<=n)?null:{...e,x:n,y:r,width:o-n,height:a-r}}function ws(e){if(e.clipToBox)return e.box;let t=e.box.x,n=t+e.box.width,r=o=>{t=Math.min(t,o.x),n=Math.max(n,o.x+o.width);};e.marker&&r(e.marker.box);for(let o of e.lines){for(let a of o.spans)r(a.box);for(let a of o.drawings??[])r(a);}return t===e.box.x&&n===e.box.x+e.box.width?e.box:{...e.box,x:t,width:n-t}}function Vm(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 YF(e,t,n){return e.kind!=="table"?Vm(ws(e),t,n):Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?Vm(e.box,t,n):0}function qy(e){return e.kind==="paragraph"&&e.outOfFlow===true&&!e.positionedFrame}var XF=new WeakMap;function xc(e){let t=XF.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,d=new Map,s=[],c=(f,m)=>{for(let g of f){if(g.kind==="paragraph"){if(!m)for(let p of g.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of g.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let h=a.get(g.tableId)??0;r.set(p.id,h),a.set(g.tableId,h+1);}for(let h of p.cells){if(!p.isHeaderRepeat&&!m){let b=`${g.tableId}|${h.gridColumn}`;if(h.blocks.length===0){let y=l.get(b);y&&i.set(h,y),h.vMergeContinue||s.push(h);}else l.set(b,{row:p,cell:h}),d.has(h.id)||d.set(h.id,{row:p,cell:h});}c(h.blocks,m||p.isHeaderRepeat);}}}};for(let f of e.pages)n.push(f.box.y),c(f.fragments,false);for(let f of s){let m=d.get(f.id);m&&i.set(f,m);}let u={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return XF.set(e,u),u}var rO=8;function Gm(e,t){return t?{...t,caret:Rs(e,t.caret)}:null}function Km(e,t){let n=xc(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 O7(e,t){let n=e.pages[Km(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&ks(r.box,t))return true;return false}function eb(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||!Sc(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 tb(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??rO,measurer:r.measurer},i=qF(e,o.index,n),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),d=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),s=eb(l,n,a.pageIndex);if(s)return {...s,contentControlId:i};let c=Gm(e,ji(o.fragments,n,a,null));if(c?.onGlyphs)return {...c,contentControlId:i};let u=eb(d,n,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};if(o.parityBlank){let f=n.y+o.contentBox.y-o.box.y<o.box.height/2?-1:1;for(let m=t+f;e.pages[m];m+=f){let g=e.pages[m],{width:p,height:h}=f<0?g.contentBox:{width:0,height:0},b={...a,pageIndex:g.index},y=ji(g.fragments,{x:p,y:h},b,null),x=Gm(e,y);if(x)return {...x,contentControlId:null}}}for(let f=1;f<e.pages.length;f+=1)for(let m of [t-f,t+f]){let g=e.pages[m];if(!g)continue;let p=Gm(e,ji(g.fragments,n,{...a,pageIndex:g.index},null));if(p)return {...p,contentControlId:qF(e,g.index,n)}}return null}function I7(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??rO,measurer:o.measurer};return Gm(e,ji(n,r,i,null))}function C7(e,t,n={}){let r=e.pages[Km(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=eb(o.anchoredDrawings,a,r.index);if(i)return i}return tb(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function ks(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function nb(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&ks(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function qF(e,t,n){return nb(e,t,n)?.id??null}function ji(e,t,n,r){if(e.length===0)return null;let o=e.filter(qy);if(o.length>0&&o.length<e.length){let l=e.filter(d=>!qy(d));return ji(l,t,n,r)??ji(o,t,n,r)}if(e.some(l=>l.kind==="paragraph"&&l.outOfFlow&&ks(l.box,t)))for(let l=e.length-1;l>=0;l-=1){let d=e[l];if(!ks(d.box,t))continue;let s=Zy(d,t,n,r);if(s)return s}let a=null;for(let l of e){if(!ks(l.box,t))continue;a=l;let d=Zy(l,t,n,r);if(d)return d;break}let i=e.filter(l=>l!==a).map(l=>({block:l,score:YF(l,t,n.verticalWeight)})).sort((l,d)=>l.score-d.score);for(let{block:l}of i){let d=Zy(l,t,n,r);if(d)return d}return null}function Zy(e,t,n,r){if(e.kind!=="paragraph")return NH(e,t,n);let o=ks(ws(e),t);return OH(e,t,n,r,o)}function OH(e,t,n,r,o){if(e.clipToBox&&!o)return null;let a=IH(e.lines,t.y);if(!a)return null;let i=EH(a,t.x,t.y,n),l=MH(a,t.x),d=Math.min(Math.max(i.offset,l.start),l.end),s={paragraphId:l.paragraphId,offset:d},c=Rc(a,d,n.measurer,l),u=oo({...c,x:i.x,width:0},e.clipToBox?e.box:void 0);return u?{position:s,caret:{position:s,x:u.x,y:u.y,height:u.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?CH(i.drawing):null}:null}function IH(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 CH(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function MH(e,t){let n=Pt(e),r=Mh(e.spans,t);if(r){let a=n.find(i=>i.paragraphId===r.range.paragraphId);if(a)return a}let o=n[0];for(let a of n){let i=a.spans[0];if(i===void 0)continue;let l=a.spans[a.spans.length-1];if(t>=i.box.x&&(o=a),t<l.box.x+l.box.width)break}return o}function BH(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function Sc(e,t){if(e.accessibility.hidden)return false;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:Yg(t.x,t.y,e.geometry)}function EH(e,t,n,r){let o=e.spans;for(let s of e.drawings??[])if(Sc(s,{x:t,y:n}))return {offset:s.start,x:s.hitBounds.x,withinSpan:true,drawing:s};if(o.length===0&&(e.drawings?.length??0)>0){let s=e.drawings[0];if(t<=s.advanceStart)return {offset:e.range.start,x:s.advanceStart,withinSpan:false,drawing:s};let c=e.drawings[e.drawings.length-1];if(t>=c.advanceEnd)return Jy(e,c.advanceEnd,r);for(let u of e.drawings??[])if(t>=u.advanceStart&&t<u.advanceEnd){let f=t>=u.x+u.width/2;return {offset:f?u.start+1:u.start,x:f?u.advanceEnd:u.advanceStart,withinSpan:Sc(u,{x:t,y:n}),drawing:u}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=Mh(o,t);if(a){let s=eO(a,Math.max(a.box.x,Math.min(t,a.box.x+a.box.width)),r),c=Pt(e).find(m=>m.paragraphId===a.range.paragraphId),u=lR(e,c),f=Math.min(s.offset,oO(r.layout,u));return f===s.offset?s:{...s,offset:f,x:Rc(e,f,r.measurer,c).x}}let i=o[0];if(t<=i.box.x)return {offset:e.range.start,x:i.box.x,withinSpan:false};let l=o[o.length-1],d=l.box.x+l.box.width;if(t>=d)return Jy(e,d,r);for(let s of o)if(t>=s.box.x&&t<s.box.x+s.box.width)return eO(s,t,r);for(let s=0;s<o.length;s+=1){let c=o[s];for(let u of e.drawings??[]){if(t>=u.advanceStart&&t<u.advanceEnd){let f=Sc(u,{x:t,y:n}),m=t>=u.x+u.width/2;return {offset:m?u.start+1:u.start,x:m?u.advanceEnd:u.advanceStart,withinSpan:f,drawing:u}}if(!(u.start<=c.range.start&&u.hitBounds.x+u.hitBounds.width<=c.box.x)){if(Sc(u,{x:t,y:n}))return {offset:u.start,x:u.hitBounds.x,withinSpan:true,drawing:u};if(t<c.box.x&&t>=u.hitBounds.x+u.hitBounds.width)return {offset:u.start+1,x:u.hitBounds.x+u.hitBounds.width,withinSpan:false,drawing:u};if(t<u.hitBounds.x&&t>=(o[s-1]?.box.x??e.contentX))return {offset:u.start,x:u.hitBounds.x,withinSpan:false,drawing:u}}}if(t<c.box.x){let u=o[s-1],f=u.box.x+u.box.width;return t-f<=c.box.x-t?{offset:u.range.end,x:f,withinSpan:false}:{offset:c.range.start,x:c.box.x,withinSpan:false}}}return Jy(e,d,r)}function Jy(e,t,n){let r=oO(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,l=n.measurer?Pc(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+l,withinSpan:false}}return {offset:r,x:t,withinSpan:false}}function oO(e,t){let n=t.range.end;if(n>t.range.start&&Qy(t,n-1)===chunk6KA3L3FR_cjs.Ua)return n-1;if(xc(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&Qy(t,r-1)===`
17
- `&&(r-=1);r>t.range.start&&Qy(t,r-1)===" ";)r-=1;return r}function Qy(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 ZF=new WeakMap,JF=new WeakMap;function QF(e){let t=Ku(),n=ZF.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of pt(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),ZF.set(e,{epoch:t,boundaries:r}),r}function Pc(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];if(e.style.shaping)return UF(e,t,n);let o=JF.get(n);o||(o=new WeakMap,JF.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 l=t<=0?0:et(e.text.slice(0,t),Ve(e.style,e.fontSlot),n),d=e.lineEndWhitespace?Math.min(l,e.box.width):l;return a.set(t,d),d}function rb(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function ao(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=l=>e.box.x+(e.style.shaping?.direction==="rtl"?e.box.width-l:l),i=e.caretEdges;return i&&o<i.length?e.box.x+i[o]:!n||rb(e)?a(e.box.width*(o/r)):a(Pc(e,o,n))}function Rc(e,t,n,r){let o=BH(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 s=e.leading??0,c=Math.max(0,e.box.height-s-(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+s,height:c}}let i=a[0];for(let s=0;s<a.length;s+=1){let c=a[s];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[s+1];if(u?.range.start===t&&c.style.shaping&&u.style.shaping){i=u;break}let f=c.text===chunk6KA3L3FR_cjs.Ua&&c.box.width===0;if(u&&u.range.start===t&&(rb(c)||f)){i=u;break}if(u&&u.range.start===t){let m=Rt(wr(c.text)??0)||Rt(u.text.codePointAt(0)??0),g=u.box.x-(c.box.x+c.box.width)-(u.wrapAdvanceBefore??0);if(c.text.endsWith(" ")&&g>.25||m&&g>.001){i=u;break}}i=c;}else t>c.range.end&&(i=c);}let l=ao(i,t,n),d=n?.lineMetrics(Ve(i.style,i.fontSlot));return !d||d.height<=0?{x:l,y:e.box.y,height:e.box.height}:{x:l,y:e.box.y+e.baseline-d.baseline-da(i.style),height:d.height}}function eO(e,t,n){let r=e.style.shaping?.direction==="rtl",o=r?e.box.x+e.box.width-t:t-e.box.x,a=p=>e.box.x+(r?e.box.width-p:p),i=e.range.end-e.range.start;if(i<=0||rb(e)){let p=o>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:a(p?e.box.width:0),withinSpan:true}}if(!n.measurer){let p=Math.max(0,Math.min(1,o/Math.max(e.box.width,Number.EPSILON))),h=Math.round(p*i),b=QF(e),y=b[0],x=Number.POSITIVE_INFINITY;for(let S of b){let R=Math.abs(S-h);R<x&&(x=R,y=S);}return {offset:e.range.start+y,x:a(e.box.width*(y/i)),withinSpan:true}}let l=QF(e),d=1,s=l.length-1;for(;d<s;){let p=d+s>>1;Pc(e,l[p],n.measurer)<o?d=p+1:s=p;}let c=l[d],u=l[d-1],f=Pc(e,c,n.measurer),m=Pc(e,u,n.measurer),g=o-m<=f-o;return {offset:e.range.start+(g?u:c),x:a(g?m:f),withinSpan:true}}function tO(e,t,n,r){if(e.length===0)return null;for(let i of e){let l=n(i);if(t>=l&&t<l+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let l=n(i),d=t<l?l-t:t-(l+r(i));d<a&&(a=d,o=i);}return o}function LH(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:xc(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function NH(e,t,n,r){let o=e.rows.filter(s=>!s.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=tO(a,t.y,s=>s.box.y,s=>s.box.height);if(l){let s=tO(l.cells,t.x,c=>c.box.x,c=>c.box.width);s&&i.push(AH(n,l,s));}let d=[];for(let s of a)for(let c of s.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||d.push({entry:{row:s,cell:c},score:Vm(c.box,t,n.verticalWeight)}));d.sort((s,c)=>s.score-c.score);for(let{row:s,cell:c}of [...i,...d.map(u=>u.entry)]){let u=LH(n.layout,e,s,c),f=c.textDirection==="btLr"?TF(t,c.box):t,m=ji(c.blocks,f,n,u);if(m)return m}return null}function AH(e,t,n){return n.blocks.length>0?{row:t,cell:n}:xc(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function aO(e,t){let n=t.paintBounds;return n.width<=0||n.height<=0||t.accessibility.hidden?null:Object.freeze({pageIndex:e,x:n.x,y:n.y,width:n.width,height:n.height,record:t})}function DH(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return aO(e,o);return null}function iO(e,t,n){if(t.kind==="paragraph")return DH(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=iO(e,a,n);if(i)return i}return null}function nO(e,t,n){for(let r of t){let o=iO(e,r,n);if(o)return o}return null}function M7(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return aO(n.index,o);let r=nO(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 l=i.paintBounds;return l.width<=0||l.height<=0||i.accessibility.hidden?null:Object.freeze({pageIndex:n.index,x:o.box.x+l.x-n.contentBox.x,y:o.box.y+l.y-n.contentBox.y,width:l.width,height:l.height,record:i})}let a=nO(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 Lt(e,t,n){if(e.cellSpacingPt>0)return n;let r=new Map(n.cellContentInsets),o=new Map(n.cellMinimumContentInsets);for(let a of t.cells){let i=vn(a.margins.top,Qr(a.borders.top,e.tableBorders.top));r.set(a.id,{...r.get(a.id)??qt(a,true),top:i});let l=o.get(a.id)??a.minimumContentInsets;l&&o.set(a.id,{...l,top:i});}return {...n,cellContentInsets:r,...o.size?{cellMinimumContentInsets:o}:{}}}function lO(e,t,n){if(e.cellSpacingPt>0)return n;let r=new Map(n.cellContentInsets),o=new Map(n.cellMinimumContentInsets),a=false;for(let i of t.cells){let l=r.get(i.id)??qt(i,true),d=vn(i.margins.bottom,Qr(i.borders.bottom,e.tableBorders.bottom));l.bottom!==d&&(a=true),r.set(i.id,{...l,bottom:d});let s=o.get(i.id)??i.minimumContentInsets;s&&(s.bottom!==d&&(a=true),o.set(i.id,{...s,bottom:d}));}return a?{...n,cellContentInsets:r,...o.size?{cellMinimumContentInsets:o}:{}}:n}function ob(e,t,n,r,o){return t?{before:r!==void 0&&r===n?0:e.before,after:o!==void 0&&o===n?0:e.after}:e}function $m(e,t,n){if(e?.kind!=="paragraph")return;let r=e.children.find(o=>o.kind==="paragraphProperties");return t?jn(t,r,n).styleId:ct(r).find(o=>o.localName==="pStyle")?.attributes?.val??null}function sO(e,t,n,r,o,a){return t?ob(e,true,n,$m(r?.previous,o,a),$m(r?.next,o,a)):e}function Hi(e,t,n,r){let o=Gh(e),a=t<0?o?.before:o?.after;if(a)return $m(a,r);let i=n?.paragraph?_n(n.paragraph):void 0,l=t<0?i?.at(-1):i?.[0];return l?$m(l.paragraph,r):n?.kind==="paragraph"?n.styleId:void 0}function _H(e,t,n,r){let o=e[t]?.paragraph;if(!o)return null;let a=Hi(o,n,e[t+n],r);return a===void 0?null:a??""}function dO(e,t){let n=Gh(e);return n?{...t,previous:n.before??t?.previous,next:n.after??t?.next}:t}function cO(e,t){let n=e.map(o=>o.kind==="paragraph"&&!!o.contextualSpacing),r=e.map(o=>o.kind==="paragraph"?o.styleId??"":null);return {contextualSpacingAt:o=>n[o],styleIdAt:o=>r[o]??null,neighbourStyleAt:(o,a)=>_H(e,o,a,t)}}function un(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function Ts(e,t){let n=0;return {...un(e),...t?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${n++}`}}function uO(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0}}function fO(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function ab(e,t,n,r,o){let a=fO(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let l=null,d=null,s=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,s=f.lines,d=u.box;break}if(l)break}if(!l)continue;let c=d??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(vi({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:s,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(l)??l,cellBox:c,cellContentBox:{...c,x:i.cellOriginX,width:i.cellContentWidth},pageClip:o.pageContentClip(),cellAnchorScope:ki(true,o),measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}}function mO(e,t,n,r,o){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let a of e){if(a.kind!=="paragraph")continue;let i=t.find(d=>d.kind==="paragraph"&&d.id===a.paragraphId);!i||i.kind!=="paragraph"||yt(i,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(a.paragraphId,vi({paragraph:i,paragraphId:a.paragraphId,paragraphBox:a.box,lines:a.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(a.box)??a.box,cellBox:n,cellContentBox:o,pageClip:r.pageContentClip(),cellAnchorScope:ki(true,r),measurer:r.measurer,...r.hostedStory?{layoutTextboxStory:r.hostedStory.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{},...r.revisionAuthorFilter?{revisionAuthorFilter:r.revisionAuthorFilter}:{}}));}}function pO(e,t){let n=fO(e),r=e.deferAnchoredDrawings;return !n&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:n,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{t.push(i);}},flushDeferred:(i,l,d)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)ab(t,i,l,d,e);else if(r)for(let s of t)r(s);t.length=0;}}}}var vs=.001,jH=64;function HH(e,t){return {...e,height:{rule:"auto"},cells:[t]}}function WH(e){let t=xs(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 l=Math.min(o+i-1,e.length-1);if(l<=o)continue;n.push({span:{headRow:o,endRow:l,headCellId:a.id},cell:a});let d=r.get(o);d?d.add(a.id):r.set(o,new Set([a.id]));}return {heads:n,headIdsByRow:r}}function zH(e,t,n){if(e.length===0||!e.some(C=>C.cells.some(M=>M.vMergeContinue)))return null;let{heads:r,headIdsByRow:o}=WH(e);if(r.length===0)return null;let a=new Map(r.map(C=>[C.span,C])),i=new Map;for(let C of r){let M=i.get(C.span.headRow);M?M.push(C.span):i.set(C.span.headRow,[C.span]);}for(let C of i.values())C.sort((M,_)=>_.endRow-M.endRow);let l=new Map;for(let C of i.values())for(let M=0;M<C.length;){let _=M+1;for(;_<C.length&&C[_].endRow===C[M].endRow;)_+=1;let U=C.slice(M,_);for(let ne of U)l.set(ne,U);M=_;}let d=new Map,s=new Map,c=new Map,u=new Map,f=new Set,m=new Set,g=new Set,p=new Set,h=new Map,b=new Map,y=new Set,x=new Map,S=(C,M,_)=>{let U=new Set;for(let $ of o.get(C)??[])(g.has($)||M?.has($)===true)&&U.add($);let ne=_===void 0?"":`@${_.toFixed(2)}`,X=`${C}${ne}\0${n?.(e[C])??""}\0${[...U].sort().join("\0")}`,W=d.get(X);if(W!==void 0)return W;let z=t(e[C],U,_);return d.set(X,z),z},R=(C,M)=>{let _=n?.(e[C.headRow]),U=M===void 0&&_===void 0?C:`${C.headCellId}@${M?.toFixed(2)??""}:${_??""}`,ne=s.get(U);if(ne!==void 0)return ne;let X=a.get(C),W=t(HH(e[C.headRow],X.cell),void 0,M);return s.set(U,W),W},P=(C,M,_)=>S(C,M,_)+(c.get(C)??0),w=C=>{for(let M=C.endRow;M>=C.headRow;M-=1)if(e[M].height.rule!=="exact")return M},F=C=>w(C)===void 0?[C]:l.get(C)??[C],I=C=>new Set(F(C).map(M=>M.headCellId)),v=(C,M)=>{let _=0;for(let U of F(C))_=Math.max(_,R(U,M));return _},T=new Map,k=C=>{let M=T.get(C);if(M!==void 0)return M;let _=[],U=_,ne=[C.endRow];for(let X=C.headRow+1;X<=C.endRow;X+=1){let W=i.get(X);if(W===void 0)continue;let z=W[0].endRow;for(;ne.length>1&&ne[ne.length-1]<X;)ne.pop();if(W.some($=>$.endRow!==z)||z>ne[ne.length-1]||w(W[0])===void 0||ne.length>=jH){U=null;break}ne.push(z),_.push(W);}return T.set(C,U),U},O=(C,M)=>w(C)===void 0||M.some(_=>p.has(_[0].headRow)),L=(C,M,_)=>{let U=new Map(M.map(te=>[te[0].headRow,te])),ne=l.get(C)??[C],X=new Set;for(let te of [ne,...M])for(let Q of te)X.add(Q.headCellId);let W=new Map,z=[],$=(te,Q)=>{let Y=te[0],de=0;for(let oe=Y.headRow;oe<=Y.endRow;){let ue=Q===void 0?void 0:Q+de,B=oe===Y.headRow?void 0:U.get(oe);if(B!==void 0){de+=$(B,ue),oe=B[0].endRow+1;continue}let pe=P(oe,X,ue);W.set(oe,pe),de+=pe,oe+=1;}let J=0;for(let oe of te)J=Math.max(J,R(oe,Q));let ee=w(Y),re=J-de>vs?J-de:0;return re>0&&W.set(ee,W.get(ee)+re),z.push({spans:te,atYPt:Q,growable:ee,surplusPt:re}),de+re},V=$(ne,_);return {groups:z,floors:W,heightPt:V}},H=(C,M,_)=>{let{groups:U,floors:ne}=L(C,M,_),X=[];for(let z of U){for(let $ of z.spans)X.push($),m.add($),g.add($.headCellId),h.set($,z.atYPt),b.set($,z.surplusPt>0?z.growable:void 0);p.add(z.spans[0].headRow),z.surplusPt>0&&c.set(z.growable,(c.get(z.growable)??0)+z.surplusPt);}let W={headRow:C.headRow,members:X};for(let z of X)x.set(z,W);for(let[z,$]of ne)f.add(z),u.set(z,Math.max(u.get(z)??0,$)),z>C.headRow&&y.add(z);},A=(C,M)=>{let _=I(C),U=0;for(let ne=C.headRow;ne<=C.endRow;ne+=1)U+=P(ne,_,M===void 0?void 0:M+U);return U},D=(C,M)=>{let _=I(C),U=new Map,ne=0;for(let X=C.headRow;X<=C.endRow;X+=1){let W=P(X,_,M===void 0?void 0:M+ne);U.set(X,W),ne+=W;}return U},j=(C,M)=>{if(!m.has(C)){let U=k(C);if(U===null||p.has(C.headRow))return Number.POSITIVE_INFINITY;if(U.length>0)return O(C,U)?Number.POSITIVE_INFINITY:L(C,U,M).heightPt}let _=A(C,M);return w(C)===void 0?_:Math.max(_,v(C,M))};return {spansAt:C=>i.get(C)??[],heightOf:j,accept:(C,M)=>{if(m.has(C))return;let _=k(C);if(_===null||p.has(C.headRow))return;if(_.length>0){O(C,_)||H(C,_,M);return}let U=D(C,M),ne=0;for(let V of U.values())ne+=V;let X=w(C),W=v(C,M);if(X===void 0&&W>ne+vs)return;let z=X===void 0?0:W-ne,$=X===void 0?(l.get(C)??[C]).filter(V=>V===C||!m.has(V)&&R(V,M)<=ne+vs):F(C);for(let V of $)m.add(V),g.add(V.headCellId);p.add(C.headRow),z>vs&&(c.set(X,(c.get(X)??0)+z),U.set(X,(U.get(X)??0)+z));for(let[V,te]of U)f.add(V),u.set(V,Math.max(u.get(V)??0,te)),V>C.headRow&&y.add(V);for(let V of $)h.set(V,M),b.set(V,z>vs?X:void 0);},withdrawAt:C=>{let M=_=>{m.delete(_),g.delete(_.headCellId),p.delete(_.headRow),h.delete(_),b.delete(_),x.delete(_);};for(let _ of i.get(C)??[]){if(!m.has(_))continue;let U=x.get(_)?.members;if(U!==void 0&&x.get(_).headRow!==C){M(_);continue}let ne=b.get(_);ne!==void 0&&c.delete(ne);for(let X of U??[_])M(X);for(let X=_.headRow;X<=_.endRow;X+=1)U!==void 0&&c.delete(X),f.delete(X),u.delete(X),y.delete(X);}},rowOptions:C=>{if(!f.has(C))return;let M;for(let _ of i.get(C)??[])m.has(_)&&(M??=new Map,M.set(_.headCellId,j(_,h.get(_))));return {...M?{detachedSpanHeightPtByCellId:M}:{},heightFloorPt:u.get(C)??P(C),...y.has(C)?{coveredFromAbove:true}:{}}}}}function gO(e,t,n,r){for(let o of e?.spansAt(t)??[])n+e.heightOf(o,n)>r+vs||e.accept(o,n);return e?.rowOptions(t)}function hO(e,t,n,r,o,a){return zH(e.rows,(i,l,d)=>o(i,e.columnWidthsPt,typeof t=="function"?t():t,n,r,e.cellSpacingPt,l?{detachedSpanHeightPtByCellId:new Map([...l].map(s=>[s,Number.POSITIVE_INFINITY]))}:void 0,d),a)}function yO(e,t,n){for(let r of e?.spansAt(t)??[])e.accept(r,n);return e?.rowOptions(t)}function bO(e,t,n){let r=wc([e],t)[0];if(Math.abs(t)<=.001)return r;let o=a=>{for(let i of a)if(i.kind==="paragraph")n(i.paragraphId,t);else for(let l of i.rows)for(let d of l.cells)o(d.blocks);};for(let a of e.rows)for(let i of a.cells)o(i.blocks);return r}function wc(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:wc(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},...n.marker.picture?{picture:{...n.marker.picture,box:{...n.marker.picture.box,y:n.marker.picture.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=>lr(o,0,t))}:{}}))})}function Wi(e,t,n,r,o,a,i,l,d){if(e.length===0)return [];let s=new Map;for(let b of n)for(let y of b.cells)s.set(y.id,y);let c=xs(e,a,o,{pageFragment:true}),u=e.map((b,y)=>({...b,cells:b.cells.map(x=>{let S=c.get(x.id);if(x.vMergeContinue&&S===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let R=x.vMergeContinue,P=S??1,w=x.box.height;if(P>1){let T=e[y+P-1];w=T.box.y+T.box.height-x.box.y;}let F=s.get(x.id),I=P>1&&RF(x.blocks,w)||x.blocks;if(F&&F.vAlign!=="top"&&I.length>0){let T=d?.get(b)?.get(x.id)??qt(F,t.cellSpacingPt===0),k=Number.POSITIVE_INFINITY,O=Number.NEGATIVE_INFINITY;for(let L of I)k=Math.min(k,L.box.y),O=Math.max(O,L.box.y+L.box.height);if(Number.isFinite(k)&&Number.isFinite(O)){let L=F.textDirection==="btLr",H=(L?x.box.width-T.left-T.right:w-T.top-T.bottom)-(O-k),D=x.box.y+(L?T.left:T.top)+(H>0?F.vAlign==="center"?H/2:H:0)-k;if(Math.abs(D)>.001){I=wc(I,D);for(let j of I)j.kind==="paragraph"&&i?.(j.paragraphId,D);}}}let v=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:w});if(F&&l&&(P>1||F.vAlign!=="top"&&I.length>0)){let T=d?.get(b)?.get(x.id)??qt(F,t.cellSpacingPt===0),k={...v,x:v.x+T.left,width:Math.max(1,v.width-T.left-T.right)};mO(I,F.blocks,v,l,k);}return {...x,...R?{vMergeContinue:false,paintInert:false}:{},rowSpan:P,blocks:I,box:{...x.box,height:w}}})})),f=u.map(b=>b.cells.map(y=>{let x=s.get(y.id);return {gridColumn:y.gridColumn,gridSpan:y.gridSpan,vMergeContinue:y.vMergeContinue,borders:x?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:y.rowSpan??1}})),m=t.columnWidthsPt.length,g=t.tableBorders,p={collapsedHorizontal:t.cellSpacingPt===0,columnWidthsPt:t.columnWidthsPt,rowBands:u.map(b=>({y:b.box.y,height:b.box.height})),cellBoxes:u.map((b,y)=>b.cells.map(x=>{let S=s.get(x.id),R=S&&(d?.get(e[y])?.get(x.id)??qt(S,t.cellSpacingPt===0)),P=S&&R?R.bottom>=vn(S.margins.bottom,Qr(S.borders.bottom,t.tableBorders.bottom))-.001:false;return {width:x.box.width,height:x.box.height,outerBottomInsetReserved:P,centeredSideRules:S?.centeredSideRules===true&&t.cellSpacingPt===0,centeredSidePaint:S?.centeredSidePaint===true&&t.cellSpacingPt===0}}))},h=hs(f,g,m,p,void 0,r);return u.map((b,y)=>({...b,cells:b.cells.map((x,S)=>{let R=h[y][S];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:R}})}))}function Ma(e){return e.isContinuation===true&&e.box.height<=0}function xO(e,t){if(!e||!Ma(e))return t;let n=e.cells.filter(r=>r.blocks.length>0);return n.length===0?t:{...t,cells:t.cells.map(r=>{if(!r.vMergeContinue)return r;let o=n.find(a=>a.gridColumn===r.gridColumn);return o?{...o,rowSpan:1,box:r.box}:r})}}function VH(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function GH(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 Os(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??VH(t),rows:e.rows.map(o=>GH(o,r))}}var SO=new WeakMap,PO=new WeakMap;function KH(e){let t=PO.get(e);if(t)return t;let n=new Set;for(let r of e.occurrences)r.row.cells.some(o=>o.gridSpan>1||o.vMergeContinue||(o.rowSpan??1)>1)&&n.add(r.table.tableId);return PO.set(e,n),n}var Fs=4,ib=6,RO=14,$H={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function lb(e,t,n,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let l of a.rows){o({pageIndex:t,table:a,row:l,rowOrdinal:l.rowIndex,nestingDepth:i,editable:!l.isHeaderRepeat,pageContentBox:n});for(let d of l.cells)lb(d.blocks,t,n,i+1,o);}}}function oJ(e){let t=SO.get(e);if(t)return t;let n=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=l=>{Ma(l.row)||n.push(l);};lb(a.fragments,o,a.contentBox,0,i);for(let l of [a.header,a.footer])l&&lb(l.fragments,o,l.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return SO.set(e,r),r}function aJ(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 iJ(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 lJ(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=kc(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 kc(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function UH(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,l=n-i.x-o,d=r-i.y,s=t.table,c=l-s.box.x,u=d-s.box.y;return c<-Fs||u<-RO||c>s.box.width+Fs||u>s.box.height+ib?null:{x:c,y:u}}function YH(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(d=>Math.abs(n-d)<=Fs)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=Fs)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||KH(e).has(o.tableId))return null;for(let d=1;d<o.columnEdges.length-1;d+=1){let s=o.columnEdges[d];if(Math.abs(n-s)>Fs)continue;let c=kc(t.row,d-1),u=kc(t.row,d);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:s,sheetY:t.pageContentBox.y+o.box.y+r}}let l=o.columnEdges.at(-1);if(Math.abs(n-l)<=Fs){let d=o.columnEdges.length-2,s=kc(t.row,d);return !s||t.row.cells.some(c=>c.logicalGridColumn!==void 0)?null:{kind:"rightEdge",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,gridColumnId:s,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:l,sheetY:t.pageContentBox.y+o.box.y+r}}return null}function sJ(e,t,n,r,o=0,a){let i=a??Km(r,n),l=i>=0?o:0,d=null,s=-1,c=-1,u=f=>{if(!f)return;let m=$H[f.kind];f.nestingDepth<s||f.nestingDepth===s&&m<=c||(s=f.nestingDepth,c=m,d=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let m=UH(r,f,t,n,l);if(!m||(u(YH(e,f,m.x,m.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let g=f.row.box.y-f.table.box.y;m.x<=ib&&Math.abs(m.y-(g+f.row.box.height/2))<=f.row.box.height/2+ib&&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 p=0;p<f.table.columnEdges.length-1;p+=1){let h=f.table.columnEdges[p],b=f.table.columnEdges[p+1],y=(h+b)/2;if(Math.abs(m.x-y)>(b-h)/2+2||m.y>RO)continue;let x=kc(f.row,p);if(x){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:x,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return d}function wO(e,t,n,r,o,a,i=Number.POSITIVE_INFINITY,l){if(o>=Xy)return null;let d=Math.max(1,n-t),s=Zt(e,d,o-(a.tableNestingOffset??0),a.styleCascade,a.displayMode,a.revisionAuthorFilter,a.compatibilityMode);if(!s||s.rows.length===0)return null;let c=l?.nextRowIndex??0,u=l?.fragmentIndex??0,f=Number.isFinite(i),m=s.rows.some(T=>T.isHeader||T.cells.some(k=>k.vMergeContinue)),g=0,p={...un(a),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-nested-${g++}`},h=[],b={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:T=>{h.push(T);}},y=t+bs(s,d),x=Ba(s,y,o,b,void 0,T=>T.id===s.rows[c]?.id),S=[],R=new Map,P=r,w=c;for(let T=c;T<s.rows.length;T++){let k=s.rows[T],O=T===c?Lt(s,k,b):b,L=T===c?Lt(s,k,p):p;if(f&&!m){let D=fr(k,s.columnWidthsPt,y,o,L,s.cellSpacingPt,void 0,P);if(P+D>i+.001)break}let H=h.length,A=kO(k,s,y,P,o,O,false,yO(x,T,P),()=>(h.length=H,x?.withdrawAt(T),x?.rowOptions(T)));S.push(A.record),O.cellContentInsets&&R.set(A.record,O.cellContentInsets),P=A.bottom,w=T+1;}if(S.length===0||P>i+.001)return {fragment:null,bottom:r};let F=Wi(S,s,s.rows.slice(c,w),a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0,R);for(let T of h)for(let k of F)if(k.cells.some(L=>L.blocks.some(H=>H.kind==="paragraph"&&H.paragraphId===T.paragraphId))){ab([T],k.cells,k.box.y,k.box.height,a);break}let I=s.columnWidthsPt.reduce((T,k)=>T+k,0),v=new Map(s.rows.map((T,k)=>[T.id,k]));return {...w<s.rows.length?{remainder:{nextRowIndex:w,fragmentIndex:u+1}}:{},fragment:Os({kind:"table",id:`${e.id}#f${u}`,tableId:e.id,fragmentIndex:u,rows:F,box:{x:y,y:r,width:I,height:P-r}},s.columnWidthsPt,o,v),bottom:P}}function Um(e,t,n){return e.some(r=>r.spans.length>0||(r.drawings?.length??0)>0)?{}:{emptyParagraphStyle:t.length===0?En:je(t,n)}}function TO(e,t,n,r){if(!n&&!r)return e;let o=SP(t),a=n&&o.before,i=r&&o.after;return !a&&!i?e:{before:a?0:e.before,after:i?0:e.after}}function Ym(e,t,n){let r=qR(e.tabStops,t),{hanging:o,firstLine:a}=e.indent,i=ht(e.props)?e.indent.right:e.indent.left;(o>0||a<0)&&i>0&&!r.stops.some(d=>d.positionPt===i&&!d.numberingOnly)&&(r={...r,stops:[...r.stops,{positionPt:i,alignment:"left",implied:true}].sort((d,s)=>d.positionPt-s.positionPt)});let l=r===e.tabStops?e.tabStopsCacheToken:xf(r);return {tabStops:r,properties:[...e.props,...e.inheritedRunProperties,...e.markRunProperties,{localName:"tabStops",attributes:{token:l}},...e.lineSpacing.gridPitch!==void 0?[{localName:"lineGrid",attributes:{pitch:String(e.lineSpacing.gridPitch)}}]:[],...n.listToken!==void 0?[{localName:"list",attributes:{token:n.listToken}}]:[],...n.hostedListToken?[{localName:"txbxList",attributes:{token:n.hostedListToken}}]:[],...n.refToken?[{localName:"refFields",attributes:{token:n.refToken}}]:[]]}}function sb(e,t){return e?`${t.toFixed(3)}|${e}`:""}function vO(e,t){let n=sb(t.exclusionToken,t.paragraphStartY),r=e;n&&(r+=`\0excl:${t.columnIndex}|${n}`);let o=t.paragraphSpaceBefore??0;return (n||t.anchorsTopAndBottom)&&o>0&&(r+=`\0before:${o.toFixed(3)}`),t.anchorParagraphStartY!==void 0&&t.anchorParagraphStartY!==t.paragraphStartY&&(r+=`\0anchor:${t.anchorParagraphStartY}`),t.startOffset>0&&(r+=`\0from:${t.startOffset}`),r}function Is(e){let{formatting:t,styleCascade:n}=e;return Ty(e.paragraph,e.paragraphId,e.indentLeft,e.available,e.measurer,e.cache,e.cacheKey,t.inheritedRunProperties,e.tabStops,e.pageContext,n?(r,o)=>dr(r,o,n):void 0,{...e.flow,paragraphRtl:ht(t.props),justifySpaceShrink:e.compatibilityMode!==void 0&&e.compatibilityMode>=15&&$d(t.props)==="both",lineSpacing:t.lineSpacing,typography:Kl(t.props,n?.typography),equationCacheToken:e.producer,...n?{themeFonts:n.themeFonts}:{},markRunProperties:t.markRunProperties})}function FO(e){let t=new Map;return {rememberBreakKey:(o,a)=>{let i=t.get(o);i||(i=new Set,t.set(o,i)),i.add(a);},releasePlacedBreaks:o=>{let a=t.get(o);if(!(!a||!e)){for(let i of a)e.release?.(i);t.delete(o);}}}}function OO(e,t,n){if(e.hideEndMark)return null;let r=e.blocks.at(-1);if(r?.kind!=="paragraph")return null;let o=wn(r,t,n.styleCascade,n.listItems?.get(r.id),e.styleFormatting,true,n.paragraphLineUnitPt),a=Af(o.markRunProperties),i=a.length===0?En:je(a,n.styleCascade?.themeFonts);if(i.hidden||n.measurer.hasResolvedFont?.(i)===false)return null;let l=n.measurer.lineMetrics(i);return {linePt:zr(o.lineSpacing,l.height,l.baseline).height,spacing:o.spacing}}function XH(e,t,n){return OO(e,t,n)?.linePt??0}function qH(e,t,n){let r=OO(e,t,n);return r===null?0:Math.max(0,r.spacing.before)+r.linePt+Math.max(0,r.spacing.after)}function IO(e,t,n,r){return !e.vMergeContinue&&!r.vertical?{markFloor:XH(e,t,n),continuation:0}:{markFloor:0,continuation:r.markSizedRow?qH(e,t,n):0}}var CO=new WeakMap;function Tc(e){let t=TP(e.borders);return t===""?"":`${t}@${e.indent.left},${e.indent.right}`}function MO(e,t,n){CO.set(e,{styleCascade:t.styleCascade,tableCellStyle:t.tableCellStyle,listItem:t.listItems?.get(e.id),key:n});}function ZH(e,t){let n=t.listItems?.get(e.id),r=CO.get(e);if(r&&r.styleCascade===t.styleCascade&&r.tableCellStyle===t.tableCellStyle&&r.listItem===n)return r.key;let o=Tc(wn(e,1,t.styleCascade,n,t.tableCellStyle,true));return MO(e,t,o),o}function JH(e,t){return e&&e.kind==="paragraph"?ZH(e,t):""}function BO(e,t,n,r){MO(e,n,t);let o=a=>t!==""&&JH(a,n)===t;return {continuesAbove:o(r?.previous),continuesBelow:o(r?.next)}}function EO(e,t,n,r){if(e.length===0)return;let o;try{o=Uu(e,0,Mi.getEmbeddingLevels(e,"rtl"));}catch{return}if(o.length===0||o.length===1&&o[0].bidiLevel%2===0)return;let a=[];for(let l of Ih(o.map(d=>d.bidiLevel))){let d=o[l],s=e.slice(d.from,d.to),c={...t,shaping:{script:d.script,direction:d.direction,level:d.bidiLevel,baseLevel:1}},u=r.measure(s,c);a.push({text:s,style:c,box:{...n,width:u}});}let i=n.x+n.width-a.reduce((l,d)=>l+d.box.width,0);return a.map(l=>{let d={...l,box:{...l.box,x:i}};return i+=l.box.width,d})}function LO(e,t){return t?{...e,indent:{...e.indent,left:e.indent.right,right:e.indent.left}}:e}function db(e,t,n,r,o,a){return Kh(e&&LO(e,a),a&&e?{...t,left:t.right}:t,n,r,o)}function cb(e,t){if(!e)return {};if(e.picBullet)return {firstLineMinimumBaseline:e.picBullet.height};if(e.markerText.length===0||e.markerStyle.hidden)return {};let{baseline:n}=t.lineMetrics(e.markerStyle,e.markerText);return n>0?{firstLineMarkerAscent:n}:{}}function NO(e,t){return n=>{let r=e?.get(n.paragraph.id)??n.listItem;return {firstLineOffset:db(r,n.indent,t,n.tabStops,n.available,ht(n.props)),...cb(r,t),...r?{firstLineAfterLeadingBreaks:true}:{}}}}function AO(e){if(!(e.length<2||!Eo(e[0])))return e.find(t=>!Eo(t))?.start}function Xm(e,t,n,r=0,o,a){if(!e||!n||!e.markerText&&!e.picBullet)return;let i=dm(e,t),l=cm(LO(e,o!==void 0),i,n.box.y,n.box.height);if(!l)return;let d=r+(o===void 0?l.x:o-l.x-l.width),s=e.picBullet,c=s&&a?a(s.relationshipId):null,u=s&&c?{picture:{ownerPartName:c.ownerPartName,relationshipId:s.relationshipId,box:{x:d,y:n.box.y+n.baseline-s.height,width:s.width,height:s.height},resource:c.resource}}:{},f={x:d,y:l.y,width:l.width,height:l.height},m=o!==void 0&&!("picture"in u)?EO(e.markerText,e.markerStyle,f,t):void 0;return {text:e.markerText,style:e.markerStyle,box:f,level:e.ilvl,numId:e.numId,numFmt:e.numFmt,...e.ordinal===void 0?{}:{ordinal:e.ordinal},...u,...m?{pieces:m}:{}}}function ub(e,t,n,r,o,a){let i=new Map,l=0,d=s=>{let c=Zt(s,t,0,n,r,o,a);if(c)for(let u of c.rows)for(let f of u.cells)for(let m of f.blocks)m.localName==="p"?i.set(m.id,l++):m.localName==="tbl"&&d(m);};for(let s of e)s.kind==="paragraph"&&s.paragraph?i.set(s.paragraph.id,l++):s.kind==="table"&&s.table&&d(s.table);return i}var fb=4096,DO=1,mr=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function Ea(e){return e.cells.map(_O)}function _O(){return {blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}}function qm(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function QH(e,t,n,r,o,a,i){let l=e.id,d=o.cache?.keyFor?.bind(o.cache)??cf,s=o.listItems?.get(l),c=wn(e,n,o.styleCascade,s,i?.tableCellStyle,true,o.paragraphLineUnitPt),{props:u,indent:f,available:m,alignment:g,styleId:p,outlineLevel:h,spacing:b,bottomBorder:y,borders:x,shading:S}=c,R=TO(b,u,i?.firstInCell===true,i?.lastInCell===true),P=sO(R,c.contextualSpacing,p,dO(e,i?.borderNeighbours),o.styleCascade,i?.tableCellStyle),w=ht(u),{continuesAbove:F,continuesBelow:I}=BO(e,Tc(c),{styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},i?.borderNeighbours),v=F?void 0:x.top,T=I?x.between:y,{tabStops:k,properties:O}=Ym(c,o.defaultTabStopPt,{listToken:s?.cacheToken,hostedListToken:o.hostedStory?.hostedListTokenForParagraph?.(e)??"",refToken:o.refFields?.tokenForParagraph(l)??""}),L=i?.startOffset??0,H=L===0&&(i?.lineStart??0)===0,A=L===0?db(s,f,o.measurer,k,m,w):0,D=ki(i?.inTableCell,o,l),j=D.anchorsWrapText&&o.pageExclusionZones?.()||[],C=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,M=o.paragraphOrderIndex?A0(j,C,se=>o.paragraphOrderIndex?.(se)):j,_=f.left+m+f.right,U=Hl(M,t,0,{left:0,right:_}),ne=sr(U),X=sb(ne,r),W=d({paragraph:e,properties:O,width:m,producer:o.producer,drawingToken:Rd(o.drawingTokenForParagraph?.(e)||o.drawingLayoutToken||"",o.inlineDrawingLayout!==void 0),projectionToken:`${o.projectionTokenForParagraph?.(e)??""}|inTableCell:${i?.inTableCell===true}|cellEndMark:${i?.cellEndMark===true}|from:${L}|rowsClear:${D.rowsClearOutOfCellFloats}`,...X?{exclusionToken:X}:{}});o.cache&&o.onCellBreakKey?.(W);let z=Is({compatibilityMode:o.compatibilityMode,paragraph:e,paragraphId:l,indentLeft:f.left,available:m,measurer:o.measurer,cache:o.cache,cacheKey:o.cache?W:null,formatting:c,producer:o.producer,styleCascade:o.styleCascade,tabStops:k,...o.pageContext?{pageContext:o.pageContext}:{},flow:{paragraphMarkIsCellEnd:i?.cellEndMark,firstLineOffset:A,...L===0?cb(s,o.measurer):{},startOffset:L,marginExtent:{left:0,right:_},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},showFieldCodes:o.showFieldCodes,fieldCodeRanges:o.fieldCodeRanges?.get(l),tocLinkStyleRanges:o.tocLinkStyleRanges?.get(l),suppressEmptyPlaceholderLine:o.fieldCodeRanges?.get(l)?.some(se=>se.suppressParagraph),...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:o.bodyPageFields}:{},...o.refFields?{refFields:o.refFields}:{},displayMode:o.displayMode,...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{},...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:_,paragraphStartY:r,...a0(_,m,D),...U.length>0?{pageExclusionZones:U}:{}}}),$=i?.startOffset!==void 0?0:i?.lineStart??0,V=i?.startOffset!==void 0?i?.lineStart??0:0,te=i?.fragmentIndex??0,Q=i?.maxBottom??Number.POSITIVE_INFINITY,Y=i?.includeAfter??true,de=i?.includeBottomBorder??true,J=()=>s!==void 0||o.displayMode==="all-markup"&&Lg(e,"all-markup",o.revisionAuthorFilter),ee=BF(z,i?.hideEndMark===true&&!(o.displayMode==="all-markup"&&Lg(e,"all-markup",o.revisionAuthorFilter)),o.measurer,c.lineSpacing,s),re=(i?.collapseHeight??false)&&!J(),oe=H&&!re?la(P.before,a):0,ue=t+f.left,B=H&&!re?Ro(v):0,pe=[],Ie=r+oe+B,ye=$,tt=false,Ne=[],ae=Ie;for(let se=$;se<ee.length;se+=1){let ve=ee[se],Ot=se===ee.length-1,Ze=Ot&&de&&T&&!re?Ro(T):0,It=Ot&&Y&&!re?P.after:0,bn=re?0:gh(ve,ae,U),xn=re?ae:ae+bn+ve.height+Ze+It;if((Ot&&!re?Math.max(xn,i?.cellEndMarkMinBottom??xn):xn)>Q+.001)break;Ne.push(ae+bn),re||(ae+=bn+ve.height);}let be=$+Ne.length;be<ee.length&&(o.compatibilityMode??0)>=15&&i?.applyWidowControl!==false&&(be=xa(be,$,ee.length,{...rt(u),keepLines:!!o.keepLinesOpening&&rt(u).keepLines},i?.aloneOnPage??true));for(let se=$;se<be;se+=1){let ve=ee[se],Ot=se===ee.length-1;Ie=Ne[se-$];let Ze=t+f.left+(se===0&&!w?A:0),It=Math.max(1,m-(se===0?A:0)),bn=ve.spans.map(Ut=>({...Ut,range:{...Ut.range,paragraphId:l},box:{...Ut.box,x:Ut.box.x+t-(w&&se===0?A:0),y:Ie}})),xn=ic(bn,o.measurer,Ze,It,g,Ot,g==="center"||g==="right"?ve.width:void 0,w,i?.inTableCell===true,ve.spaceShrink===true),pr=km(bn,xn,g,It,ve.width),nl=Object.freeze({x:t,y:r,width:n,height:Math.max(0,Q-r)}),$t=jd(ve.drawings.map(Ut=>Cf(Object.freeze({...lr(Ut,t,Ie),paragraphId:l}),nl)),pr);pe.push({id:o.nextLineId(l,ve.start,V+se),range:{paragraphId:l,start:ve.start,end:ve.end},spans:xn,...$t.length>0?{drawings:$t}:{},box:{x:t+f.left,y:Ie,width:m,height:re?0:ve.height},contentX:Qf(xn,Ze+pr),baseline:re?Math.max(0,Math.min(ve.baseline,i?.collapseBandAbove??0)):ve.baseline,leading:re?0:ve.leading,trailingSpacing:re?0:ve.trailingSpacing,...ve.manualBreakAfter?{manualBreakAfter:true}:{},...ve.deletedRanges?{deletedRanges:ve.deletedRanges}:{},...ve.anchorRevisions?{anchorRevisions:ve.anchorRevisions}:{},...ve.changeSites?{changeSites:ve.changeSites}:{}}),re||(Ie+=ve.height),ye=se+1,tt=true;}if(!tt)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:V+$,nextStartOffset:L,complete:false,fitted:false};let Z=ye>=ee.length,Pe=pe[0].box.y,Te=Ie,ge=[],xe,Re=Pe,Ce=Te,Ae=x.left?Gn(x.left):0,qe=x.right?Gn(x.right):0,Le=x.left?ue-x.left.spacePt-Ae:ue,on=x.right?ue+m+x.right.spacePt+qe:ue+m,wt=Math.max(on-Le,0);if(B>0&&v){let se=Gn(v),ve=Pe-v.spacePt-se;ge.push({side:"top",edge:v,box:{x:Le,y:ve,width:wt,height:se}}),Re=ve;}if(Z&&de&&T&&!re){let se=Gn(T),ve=Te+T.spacePt,Ot={x:Le,y:ve,width:wt,height:se};I||(xe={edge:T,box:Ot}),ge.push({side:I?"between":"bottom",edge:T,box:Ot}),Ce=ve+se;}let Fn=Z&&Y&&!re?P.after:0,kt=F&&H?r:Re,Tt=I&&Z?Ce+Fn:Ce,Wt=Math.max(Tt-kt,0);if(x.left&&ge.push({side:"left",edge:x.left,box:{x:ue-x.left.spacePt-Ae,y:kt,width:Ae,height:Wt}}),x.right&&ge.push({side:"right",edge:x.right,box:{x:ue+m+x.right.spacePt,y:kt,width:qe,height:Wt}}),x.bar){let se=Gn(x.bar);ge.push({side:"bar",edge:x.bar,box:{x:ue-x.bar.spacePt-se,y:Pe,width:se,height:Math.max(Te-Pe,0)}});}let yn=Ce+Fn,Xe=S===void 0?void 0:x.left||x.right?{x:Le,y:Re,width:wt,height:Math.max(Ce-Re,0)}:Nu(pe,ue,m),nt=Z&&o.displayMode==="all-markup"?af(e,"all-markup",o.revisionAuthorFilter):null,uo=nt?.revisions??[],vt=nt?.formatRevision??null,On=o.displayMode??"proposed",Zn=Z?Xl(e,On,o.revisionAuthorFilter):[],Ke=H?Xm(s,o.measurer,pe[0],t,w?f.left+m+f.right:void 0,o.inlineDrawingLayout?.pictureBulletResource):void 0,lt=ba(e),Ft=lt?Jf(pe,ql(lt,On,o.revisionAuthorFilter)):pe,zt={kind:"paragraph",id:`${l}#f${te}`,...Z?{paragraphEnd:true}:{},paragraphId:l,fragmentIndex:te,range:{paragraphId:l,start:Ft[0].range.start,end:Ft[Ft.length-1].range.end},props:u,styleId:p,outlineLevel:h,alignment:g,spacing:{before:oe,after:Fn},indent:f,tabStops:k,...xe?{bottomBorder:xe}:{},...ge.length>0?{borders:ge}:{},...S===void 0?{}:{shading:S},...Xe===void 0?{}:{shadingBox:Xe},...Ke?{marker:Ke}:{},...lf(uo,vt),...Zn.length>0?{markChangeSites:Zn}:{},lines:Ft,...Um(Ft,c.markRunProperties,o.styleCascade?.themeFonts),box:{x:ue,y:r,width:m,height:yn-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let se=Object.freeze({x:t,y:r,width:n,height:Math.max(0,Q-r)}),ve=zt.box,Ot={paragraph:e,paragraphId:l,paragraphBox:ve,lines:Ft};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...Ot,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(vi({paragraph:e,paragraphId:l,paragraphBox:ve,lines:Ft,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(ve)??ve,cellBox:se,cellContentBox:se,pageClip:o.pageContentClip(),cellAnchorScope:D,measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}return {fragment:zt,bottom:yn,spaceAfter:o.styleCascade?.fixedParagraphSpacing?0:Fn,nextLineIndex:V+ye,nextStartOffset:ee[ye]?.start??ee.at(-1).end,complete:Z,fitted:true}}function zo(e,t,n,r,o,a){let i=jO(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 jO(e,t,n,r,o,a,i,l,d,s=false,c,u=false,f=true){let m=[],g=r,p=l.previousSpaceAfter,h=l.blockIndex,b=l.lineIndex,y=l.startOffset,x=l.nestedTable,S=l.paragraphFragmentIndex,R=false,P=false,w=l.precededByEmittedTable;for(;h<e.length;){let F=e[h];if(F.kind==="table"){b!==0&&(b=0),p=0;let T=wO(F,t,n,g,a+1,i,o,x);if(!T){w=false,h+=1;continue}if(!T.fragment){P=!R;break}if(m.push(T.fragment),g=T.bottom,R=true,w=true,x=T.remainder,x)break;h+=1,b=0,y=void 0;continue}if(F.kind!=="paragraph"){w=false,h+=1,b=0,y=void 0;continue}let I=s&&h===e.length-1&&w&&kT(F),v=QH(F,t,Math.max(1,n-t),g,i,p,{inTableCell:s,lineStart:b,startOffset:y,applyWidowControl:f,aloneOnPage:!R&&i.rowAtPageStart!==false,fragmentIndex:S,maxBottom:o,includeAfter:true,includeBottomBorder:true,firstInCell:h===0,lastInCell:h===e.length-1,cellEndMark:(u||c!==void 0)&&h===e.length-1,hideEndMark:u&&h===e.length-1,cellEndMarkMinBottom:h===e.length-1?c:void 0,collapseHeight:I,collapseBandAbove:g-r,...d?{tableCellStyle:d}:{},borderNeighbours:{previous:h>0?e[h-1]:void 0,next:e[h+1]}});if(!v.fitted||!v.fragment)break;if(m.push(v.fragment),g=v.bottom,R=true,v.complete)p=v.spaceAfter,w=false,h+=1,b=0,y=void 0,S=0;else return {blocks:m,bottom:g,cursor:{blockIndex:h,lineIndex:v.nextLineIndex,startOffset:v.nextStartOffset,previousSpaceAfter:0,paragraphFragmentIndex:S+1,precededByEmittedTable:w},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:m,bottom:g,cursor:{blockIndex:h,lineIndex:b,startOffset:y,...x?{nestedTable:x}:{},previousSpaceAfter:p,paragraphFragmentIndex:S,precededByEmittedTable:w},complete:h>=e.length,fitted:R,nestedSplitBlocked:P}}function hn(e,t,n,r,o,a,i,l=0,d,s=Number.POSITIVE_INFINITY){return zi(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,Ea(e),l,d,s)}function zi(e,t,n,r,o,a,i,l,d,s,c=0,u,f=o){let m=u?.detachedSpanHeightPtByCellId,g=qm(t,0,t.length),p=Number.isFinite(c)&&c>0?c/2:0,h=d.measurer.lineMetrics(En).height,b=e.height,y=b.rule==="exact"?b.valuePt:void 0,x=b.rule==="atLeast"?b.valuePt:void 0,S=[],{rowDeps:R,flushDeferred:P}=pO(d,S),w=a&&d.pageOccurrenceKey?{...R,nextLineId:(M,_,U)=>R.nextLineId(M,_,U,d.pageOccurrenceKey())}:R,F=y===void 0?o:Math.min(o,r+Math.max(0,y)),I=[],v=false,T=false,k=jy,O=e.cells.length>0&&e.cells.every(M=>M.vMergeContinue||k(M)),L=r;for(let M=0;M<e.cells.length;M+=1){let _=e.cells[M],U=s[M]??_O(),{gridSpan:ne,gridColumn:X}=_,W=n+qm(t,0,X),z=qm(t,X,Math.min(X+ne,t.length))||g,$=Math.min(p,Math.max((z-DO)/2,0)),V=W+$,te=Math.max(z-2*$,DO),Q=d.cellContentInsets?.get(_.id)??qt(_,c===0),Y=Q.top,de=m?.get(_.id),J=de!==void 0,ee=J?Math.min(f,r+de):F,re=_.textDirection==="btLr",oe=bF(re,V,te,r,ee,Q),{flowLeft:ue,flowRight:B,contentTop:pe,contentMaxBottom:Ie}=oe,{markFloor:ye,continuation:tt}=IO(_,B-ue,w,{vertical:re,markSizedRow:O}),Ne=[],ae=pe,be=U,Z=true,Pe=false,Te=false,ge=(Ae,qe=false)=>jO(_.blocks,ue,Ae,pe,Ie,l,qe?uO(w):w,U,_.styleFormatting,true,re?void 0:r+Math.min(ye,y??1/0)-Q.bottom,_.hideEndMark,!re&&(J||y===void 0));if(!_.vMergeContinue&&!k(_))if(Ie<pe-.001)Z=U.blockIndex>=_.blocks.length;else {let Ae=ge(B);Ne=Ae.blocks,ae=Ae.bottom,be=Ae.cursor,Z=Ae.complete,Pe=Ae.fitted,Te=Ae.nestedSplitBlocked,Pe&&(v=true),Te&&(T=true);}let xe=Ne.at(-1),Re=Z&&xe?.kind==="paragraph"&&xe.box.height>0?ye:0,Ce=Math.min(ee,Math.max(r+Re,_.vMergeContinue||k(_)?tt>0?r+Y+tt+Q.bottom:r:Pe?ae+Q.bottom:r+Y+h+Q.bottom));Ce>L&&!J&&(L=Ce),I.push({cell:_,x:V,width:te,gridColumn:X,blocks:Ne,contentTop:pe,contentBottom:ae,physicalBottom:Ce,insets:{...Q,top:Y},nextCursor:be,complete:_.vMergeContinue?true:Z,fitted:Pe,nestedSplitBlocked:Te,...k(_)?{flowTo:ge}:{}});}L=Math.min(F,Math.max(L,r));for(let M of I){if(m?.has(M.cell.id)===true)continue;let _=M.physicalBottom;_>L&&_<=F+.001&&(L=_);}if(L<=r+.001&&I.some(M=>!M.cell.vMergeContinue&&!M.cell.hideEndMark)){let M=r;for(let _ of I){if(_.cell.hideEndMark)continue;let U=r+_.insets.top+h+_.insets.bottom;U>M&&(M=U);}L=Math.min(F,M);}L=Math.min(F,L);let H=false;if(y!==void 0){let M=r+y;M<=o+.001?(L=M,H=true):L=Math.min(o,L);}else {let M=i||x===void 0?0:Ss(x,I,d.cellMinimumContentInsets),_=i?0:u?.heightFloorPt??0,U=r+Math.max(M,_);U>L&&U<=o+.001&&I.every(X=>X.complete)&&(L=U);}L=Math.min(o,L);let A=Math.max(0,L-r);xF(I,A)&&O&&(v=true);let D=I.map(M=>{let _=M.blocks,U=H?true:M.complete;if(!M.cell.vMergeContinue&&U&&M.cell.vAlign!=="top"&&_.length>0){let ne=M.contentBottom-M.contentTop,X=M.cell.textDirection==="btLr"?M.width-M.insets.left-M.insets.right-ne:A-M.insets.top-M.insets.bottom-ne;if(X>0){let W=M.cell.vAlign==="center"?X/2:X;_=wc(_,W);}}return {id:M.cell.id,gridColumn:M.gridColumn,...M.cell.logicalGridColumn===void 0?{}:{logicalGridColumn:M.cell.logicalGridColumn},...M.cell.gridColumnId?{gridColumnId:M.cell.gridColumnId}:{},gridSpan:M.cell.gridSpan,vMergeContinue:M.cell.vMergeContinue,...M.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...M.cell.shading===void 0?{}:{shading:M.cell.shading},...M.cell.textDirection==="btLr"?{textDirection:"btLr"}:{},blocks:_,box:{x:M.x,y:r,width:M.width,height:A}}}),j=H||I.every(M=>M.complete)?null:I.map(M=>M.nextCursor),C=H||I.every(M=>M.complete);return PF(I,D),P(D,r,A),{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}:{},...e.changeSites?{changeSites:e.changeSites}:{},rowIndex:0,isHeaderRow:e.isHeader,isHeaderRepeat:a,...i?{isContinuation:true}:{},...e.cantSplit||e.height.rule==="exact"?{placesWhole:true}:{},cells:D,box:{x:n,y:r,width:g,height:A}},bottom:L,remainder:C?null:j,fitted:v||e.cells.every(M=>M.vMergeContinue)||H,nestedSplitBlocked:T}}function fr(e,t,n,r,o,a=0,i,l){let d=Ts(o,l!==void 0);return hn(e,t,n,l??0,false,r,d,a,i).record.box.height}function kO(e,t,n,r,o,a,i,l,d){let s=u=>hn(e,t.columnWidthsPt,n,r,i,o,a,t.cellSpacingPt,u),c=s(l);return c.remainder===null||l===void 0?c:s(d())}var Ba=(e,t,n,r,o,a)=>r.measuringOnly===true?null:hO(o?{...e,rows:o}:e,t,n,r,(i,l,d,s,c,u,f,m)=>fr(i,l,d,s,a?.(i)?Lt(e,i,c):c,u,f,m),a?i=>a(i)?"outer-top":"shared-top":void 0);function Vi(e,t,n,r,o,a,i,l=()=>false){let d=[],s=new Map,c=n;for(let[g,p]of e.rows.entries()){let h=g===0?Lt(e,p,i):i,b=hn(p,e.columnWidthsPt,t,c,l(p),a,h,e.cellSpacingPt);d.push(b.record),h.cellContentInsets&&s.set(b.record,h.cellContentInsets),c=b.bottom;}let u=Wi(d,e,e.rows,i.borderOwnershipBudget,i.vMergeResolveBudget,void 0,void 0,void 0,s),f=qm(e.columnWidthsPt,0,e.columnWidthsPt.length),m=new Map;return {fragment:Os({kind:"table",id:`${o}#f${r}`,tableId:o,fragmentIndex:r,rows:u,box:{x:t,y:n,width:f,height:c-n}},e.columnWidthsPt,a,m),bottom:c}}var eW=1584,HO=1e4,tW="http://schemas.openxmlformats.org/wordprocessingml/2006/main";function vc(e){if(e===void 0||!/^-?\d{1,8}$/.test(e))return null;let t=Number(e)/20;return Math.abs(t)<=eW?t:null}function mb(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>HO||r.namespaceUri!==tW||["drawing","pict","object","sectPr","footnoteReference","endnoteReference","pageBreakBefore","ins","del","moveFrom","moveTo","pPrChange","rPrChange"].includes(r.localName)||r.localName==="br"&&r.attributes.some(o=>o.localName==="type"&&o.value!=="textWrapping")||n+t.length+r.children.length>HO)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function pb(e){let t;for(let m of e)m.localName==="framePr"&&(t=m);if(!t?.attributes)return null;let n=t.attributes,r=new Set(["x","y","w","hAnchor","vAnchor","wrap","anchorLock","hSpace","vSpace"]);if(Object.keys(n).some(m=>!r.has(m)))return null;let o=n.wrap??"around";if(!["around","none","notBeside"].includes(o))return null;let a=vc(n.hSpace??"0"),i=vc(n.vSpace??"0");if(a===null||i===null||a<0||i<0||n.anchorLock!==void 0&&!["0","1","true","false","on","off"].includes(n.anchorLock))return null;let l=vc(n.x??"0"),d=vc(n.y??"0"),s=vc(n.w);if(l===null||d===null||s===null||s<=0)return null;let c=n.hAnchor??"text",u=n.vAnchor??"text";if(!["page","margin","text"].includes(c)||!["page","margin","text"].includes(u)||u==="text"&&d<0)return null;let f=ie(Object.keys(n).sort().map(m=>ie([m,n[m]])));return {x:l,y:d,width:s,wrap:o,hSpace:a,vSpace:i,horizontalAnchor:c,verticalAnchor:u,token:f}}function WO(e,t,n){let r=n[t.horizontalAnchor].x+t.x,o=n[t.verticalAnchor].y+t.y;return {...Fc(e,r,o),outOfFlow:true}}function Fc(e,t,n){let r=o=>({...o,x:o.x+t,y:o.y+n});return {...e,box:r(e.box),...e.shadingBox?{shadingBox:r(e.shadingBox)}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:r(e.bottomBorder.box)}}:{},...e.borders?{borders:e.borders.map(o=>({...o,box:r(o.box)}))}:{},...e.marker?{marker:{...e.marker,box:r(e.marker.box),...e.marker.picture?{picture:{...e.marker.picture,box:r(e.marker.picture.box)}}:{}}}:{},lines:e.lines.map(o=>({...o,box:r(o.box),contentX:o.contentX+t,spans:o.spans.map(a=>({...a,box:r(a.box)})),...o.drawings?{drawings:o.drawings.map(a=>lr(a,t,n))}:{}}))}}function zO(e){let t=0;for(let n of e){if(n.kind!=="paragraph"||!n.positionedFrame)continue;let{box:r,vSpace:o}=n.positionedFrame;t=Math.max(t,r.y+r.height+o);}return t}var VO=4096,nW=24,rW=16,oW=128,aW=1584,iW=new Set(["x","y","w","h","hRule","hAnchor","vAnchor","wrap","hSpace","vSpace","anchorLock"]),lW=new Set(["framePr","pStyle","jc","rPr","pBdr","shd","spacing","ind","contextualSpacing","keepNext","keepLines","widowControl"]),La=(e,t)=>e.kind!=="textValue"&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t;function Ms(e){let t=[];for(let n of e.children)n.kind!=="textValue"&&t.push(n);return t}function sW(e){let t=[{node:e.root,depth:0}],n=0,r=0;for(;t.length;){let{node:o,depth:a}=t.pop();if(++n>VO||a>nW)return null;if(o.kind!=="textValue"){if(o.namespaceUri===chunk6KA3L3FR_cjs.da&&["ins","del","moveFrom","moveTo","pPrChange","rPrChange"].includes(o.localName)||o.namespaceUri===chunk6KA3L3FR_cjs.da&&["fldSimple","fldChar","instrText","delInstrText"].includes(o.localName)||(La(o,"framePr")&&r++,n+t.length+o.children.length>VO))return null;for(let i of o.children)t.push({node:i,depth:a+1});}}return r}function Cs(e,t){if(e===void 0)return t??null;if(!/^\d{1,5}$/.test(e))return null;let n=Number(e)/20;return n<=aW?n:null}function dW(e){let t=Ms(e).filter(g=>La(g,"pPr"));if(t.length!==1)return null;let n=Ms(t[0]);if(n.some(g=>g.namespaceUri!==chunk6KA3L3FR_cjs.da||!lW.has(g.localName)))return null;let r=n.filter(g=>La(g,"framePr"));if(r.length!==1)return null;let o=r[0],a=new Map;for(let g of o.attributes){if(g.namespaceUri!==chunk6KA3L3FR_cjs.da||!iW.has(g.localName)||a.has(g.localName))return null;a.set(g.localName,g.value);}if(o.children.length||a.get("hAnchor")!=="page"||a.get("vAnchor")!=="page"||(a.get("wrap")??"around")!=="around"||a.has("anchorLock")&&!["0","1","true","false","on","off"].includes(a.get("anchorLock")))return null;let i=Cs(a.get("x"),0),l=Cs(a.get("y"),0),d=Cs(a.get("w")),s=Cs(a.get("h"),0),c=Cs(a.get("hSpace"),0),u=Cs(a.get("vSpace"),0),f=a.get("hRule")??"atLeast";if(i===null||l===null||d===null||d<1||s===null||c===null||u===null||!["auto","atLeast"].includes(f))return null;for(let g of Ms(e))if(!La(g,"pPr")){if(!La(g,"r"))return null;for(let p of Ms(g))if(La(p,"rPr")){if(Ms(p).some(h=>h.localName.endsWith("Change")))return null}else if(!La(p,"t")||p.children.some(h=>h.kind!=="textValue"))return null}let m=ie([...a.keys()].sort().map(g=>ie([g,a.get(g)])));return {x:i,y:l,width:d,height:s,heightRule:f,hSpace:c,vSpace:u,token:m}}function GO(e){if(!La(e.root,"hdr"))return null;let t=sW(e);if(t===null||t===0||t>oW)return null;let n=[],r,o=0;for(let a of Ms(e.root)){let i=a.kind==="paragraph"?dW(a):null;if(!i){r=void 0;continue}if(o++,r?.token===i.token)r={...r,paragraphs:[...r.paragraphs,a]},n[n.length-1]=r;else {if(n.length>=rW)return null;r={...i,paragraphs:[a]},n.push(r);}}return o===t?n:null}var Gi=(e,t)=>e.x<t.x+t.width&&t.x<e.x+e.width&&e.y<t.y+t.height&&t.y<e.y+e.height;function cW(e,t){for(let n of t){if(n.kind!=="paragraph"){if(Gi(e,n.box))return true;continue}if(n.props.some(r=>r.localName==="framePr")||n.marker&&Gi(e,n.marker.box))return true;for(let r of n.borders??[])if(Gi(e,r.box))return true;if(n.shadingBox&&Gi(e,n.shadingBox))return true;for(let r of n.lines){for(let o of r.spans)if(o.text.trim()&&Gi(e,o.box))return true;for(let o of r.drawings??[])if(Gi(e,o.paintBounds))return true}}return false}function uW(e,t){let n=t+e.spacing.after;return n<=0?e:{...e,box:{...e.box,height:e.box.height+t},...e.shadingBox?{shadingBox:{...e.shadingBox,height:e.shadingBox.height+n}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+n}}}:{},...e.borders?{borders:e.borders.map(r=>({...r,box:r.side==="bottom"?{...r.box,y:r.box.y+n}:r.side==="left"||r.side==="right"?{...r.box,height:r.box.height+n}:r.box}))}:{}}}function KO(e,t,n,r,o,a){if(![o.pageWidth,o.pageHeight,o.marginLeft,a].every(Number.isFinite)||o.pageWidth<=0||o.pageHeight<=0)return null;let i=new Map(t.map((u,f)=>[u.id,f])),l=[],d=[];for(let u of e){if(u.paragraphs.some(P=>!i.has(P.id)))return null;let f=r(u.paragraphs,u.width);if(f.blocks.length!==u.paragraphs.length||!Number.isFinite(f.bottom))return null;let m=u.heightRule==="auto"?f.bottom:Math.max(f.bottom,u.height);if(m<0||u.x+u.width>o.pageWidth||u.y+m>o.pageHeight)return null;let g={x:u.x-o.marginLeft,y:u.y-a,width:u.width,height:m},p=l.length;for(let P=0;P<f.blocks.length;P++){let w=f.blocks[P];if(w.kind!=="paragraph"||w.paragraphId!==u.paragraphs[P].id||w.marker||w.props.filter(A=>A.localName==="framePr").length!==1)return null;let I=w.props.find(A=>A.localName==="framePr").attributes??{};if(ie(Object.keys(I).sort().map(A=>ie([A,I[A]])))!==u.token)return null;let v=P===f.blocks.length-1?uW(w,m-f.bottom):w,T=1.5,k=v.borders?.some(A=>A.side==="left")??false,O=v.borders?.some(A=>A.side==="right")??false,L=A=>({...A,x:A.x-(k?T:0),width:A.width+(k?T:0)+(O?T:0)}),H={...v,...v.bottomBorder?{bottomBorder:{...v.bottomBorder,box:L(v.bottomBorder.box)}}:{},...v.shadingBox?{shadingBox:L(v.shadingBox)}:{},...v.borders?{borders:v.borders.map(A=>({...A,box:A.side==="left"?{...A.box,x:A.box.x-T}:A.side==="right"?{...A.box,x:A.box.x+T}:A.side==="top"||A.side==="bottom"||A.side==="between"?L(A.box):A.box}))}:{}};l.push({...Fc(H,g.x,g.y),outOfFlow:true});}let h=g.x,b=g.y,y=g.x+g.width,x=g.y+g.height,S=P=>{h=Math.min(h,P.x),b=Math.min(b,P.y),y=Math.max(y,P.x+P.width),x=Math.max(x,P.y+P.height);};for(let P=p;P<l.length;P++){let w=l[P];S(w.box);for(let F of w.borders??[])S(F.box);w.shadingBox&&S(w.shadingBox);for(let F of w.lines)for(let I of F.spans)S(I.box);}if(![h,b,y,x].every(Number.isFinite)||h+o.marginLeft<0||y+o.marginLeft>o.pageWidth||b+a<0||x+a>o.pageHeight)return null;let R={x:h-u.hSpace,y:b-u.vSpace,width:y-h+2*u.hSpace,height:x-b+2*u.vSpace};if(cW(R,n.blocks)||d.some(P=>Gi(P,R)))return null;d.push(R);}let s=n.blocks.concat(l),c=u=>u.kind==="paragraph"?u.paragraphId:u.tableId;return s.some(u=>!i.has(c(u)))?null:(s.sort((u,f)=>i.get(c(u))-i.get(c(f))),{blocks:s,bottom:n.bottom})}var $O=new WeakMap;function Zm(e,t=new Map){let n=$O.get(e);if(n!==void 0)return n;let r=[];for(let[a,i]of e){let l=t.get(i);l===void 0&&(l=chunkT7RGKBCE_cjs.B(i),t.set(i,l)),r.push([a,l]);}let o=chunkT7RGKBCE_cjs.B(JSON.stringify(r));return $O.set(e,o),o}var Jm=new WeakMap;function UO(e,t){Jm.set(e,t);}function Bs(e){return Jm.get(e)?.token??""}function Qm(e,t,n){return e&&(Jm.get(e)?.resolve(t,n)??e.headers.get(t))}function YO(e,t){return e?Jm.get(e)?.reserveHeight(t)??0:0}var XO=new WeakMap,fW=0;function qO(e){let t=XO.get(e.content);return t===void 0&&(t=++fW,XO.set(e.content,t)),ie([String(t),e.contentNodeId,String(e.insetsEmu.top),String(e.insetsEmu.right),String(e.insetsEmu.bottom),String(e.insetsEmu.left),e.verticalAnchor,e.autofit,e.fillHex??"",e.strokeHex??"",String(e.strokeWidthEmu)])}var gb=new Float64Array(1),ep=new Uint32Array(gb.buffer);function ZO(e){Br[0]=2166136261,Br[1]=268435859;let t=[];for(let n of e.components){t.push(n.fillHex??"",String(n.fillAlpha),n.strokeHex??"",String(n.strokeAlpha),String(n.strokeWidthEmu),n.strokeInset===true?"in":"",String(n.subpathsEmu.length));let r=n.subpathsEmu;for(let a=0;a<r.length;a+=1){let i=r[a];t.push(String(i.length),n.subpathsClosed?.[a]===false?"0":"1"),hb(i,Br);}let o=n.arrowheadsEmu;if(t.push(String(o?.length??0)),o)for(let a of o)t.push(String(a.length)),hb(a,Br);}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),t.join(","),Br[0].toString(36),Br[1].toString(36)].join(";")}var Br=new Uint32Array(2);function JO(e){return Br[0]=2166136261,Br[1]=268435859,hb(e,Br),`${Br[0].toString(36)}:${Br[1].toString(36)}`}function hb(e,t){let n=t[0],r=t[1];for(let o of e)gb[0]=o.x,n=Math.imul(n^ep[0],16777619),r=Math.imul(r^ep[1],16777651),gb[0]=o.y,n=Math.imul(n^ep[1],16777619),r=Math.imul(r^ep[0],16777651);t[0]=n,t[1]=r;}var mW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",QO="/word/numbering.xml",pW=64;function eI(e){let t=0,n=0,r,o=new Map,a=new Set,i=()=>{if(r!==void 0)return r;let s=e.currentPackage(),c=null;for(let u of s.relationships.get(s.mainDocumentPart)??[]){if(u.type!==mW)continue;let f=chunk6KA3L3FR_cjs.E(u);if(f.mode!=="Internal"||!f.target.ok)break;s.parts.has(f.target.partName)&&(c=f.target.partName);break}return c===null&&s.parts.has(QO)&&(c=QO),r=c,c},l=(s,c)=>{o.set(s,c),c.kind==="ready"&&e.rememberReadyHandle(c.validatedHandle),a.delete(s),t+=1,e.onResourcesChanged();},d=(s,c)=>{if(a.has(c))return;a.add(c);let u=n;e.lookup().resolveEmbedded(s,c).then(f=>{u===n&&l(c,f);}).catch(()=>{u===n&&l(c,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"}));});};return Object.freeze({resolve(s){let c=i();if(c===null)return null;let u=o.get(s);if(u)return {ownerPartName:c,resource:u};if(o.size>=pW)return null;let f=Object.freeze({kind:"pending",resourceKey:`picbullet:${c}:${s}`});return o.set(s,f),d(c,s),{ownerPartName:c,resource:f}},epoch:()=>t,pendingCount:()=>a.size,reset(){n+=1,t+=1,r=void 0,o.clear(),a.clear();}})}var gW=Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"non-picture-graphic"});function yb(e){let t=e.picture??e.groupPicture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var tI=new WeakMap,bb=new Map,hW=16,yW=32;function iI(e,t){let n=tI.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunk6KA3L3FR_cjs.Zc(e)||chunk6KA3L3FR_cjs.Hc(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:bb,visited:1,deepest:0};else if((t<2||e.children.length>=hW)&&t<yW){let o=null,a=1,i=0;for(let l of e.children){let d=iI(l,t+1);if(a+=d.visited,d.deepest+1>i&&(i=d.deepest+1),d.atoms.size>0){o||(o=new Map);for(let[s,c]of d.atoms)o.set(s,c);}}r={atoms:o??bb,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,l=[{node:e,depth:0}];for(;l.length>0;){let d=l.pop();if(a+=1,a>chunk6KA3L3FR_cjs.Xc)break;d.depth>i&&(i=d.depth);let s=d.node;if(s.kind==="drawing"||chunk6KA3L3FR_cjs.Zc(s)||chunk6KA3L3FR_cjs.Hc(s)){o.set(s.id,s);continue}if("children"in s)for(let c=s.children.length-1;c>=0;c-=1)l.push({node:s.children[c],depth:d.depth+1});}r={atoms:o.size>0?o:bb,visited:a,deepest:i};}return tI.set(e,r),r}function xb(e){let t=iI(e.root,0);return t.visited>chunk6KA3L3FR_cjs.Xc||t.deepest>chunk6KA3L3FR_cjs.Vc.maxDrawingDepth?null:t.atoms}var nI=new WeakMap;function lI(e,t){let n=nI.get(e.root),r=n?.get(t);if(r)return r;let o=xb(e),a=new Map,i=0;if(o)for(let l of o.keys()){let d=t.projectionForAtom?.(l)?.drawingNodeId??l;a.set(d,i),i+=1;}else for(let l of chunk6KA3L3FR_cjs.cd(e))a.set(l.drawingNodeId,i),i+=1;return n||(n=new WeakMap,nI.set(e.root,n)),n.set(t,a),a}function Sb(e){let t=e.position,n=e.anchor,r=e.picture,o=e.wrapGeometry,a=e.vectorShape,i=e.groupPicture,l={drawingNodeId:e.drawingNodeId,ownerPartName:e.ownerPartName,kind:e.kind,diagnostics:ie(e.diagnostics.map(d=>ie([d.code,d.nodeId,d.detail??""]))),relationshipId:e.relationshipId??"",docPrId:String(e.docPrId??""),name:e.name,title:e.title,description:e.description,hyperlinkHref:e.hyperlinkHref??"",hidden:String(e.hidden),extentEmu:ie([String(e.extentEmu.cx),String(e.extentEmu.cy)]),effectExtentEmu:ie([String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left)]),inlineDistancesEmu:ie([String(e.inlineDistancesEmu.top),String(e.inlineDistancesEmu.right),String(e.inlineDistancesEmu.bottom),String(e.inlineDistancesEmu.left)]),wrap:e.wrap,textboxStory:e.textboxStory?qO(e.textboxStory):"",compatibilityBranchNodeId:e.compatibilityBranchNodeId??"",footprintOnly:e.footprintOnly?"footprint":"",anchor:n?ie([String(n.simplePos),String(n.relativeHeight),String(n.layoutInCell),String(n.allowOverlap),String(n.behindDocument)]):"",locks:ie([String(e.locks.select),String(e.locks.move),String(e.locks.resize),String(e.locks.changeAspect)]),effects:ie([String(e.effects.grayscale),String(e.effects.brightness),String(e.effects.contrast),String(e.effects.bilevel??"")]),picture:r?ie([String(r.crop.left),String(r.crop.top),String(r.crop.right),String(r.crop.bottom),String(r.transform.rotationDegrees),String(r.transform.flipHorizontal),String(r.transform.flipVertical),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??"",r.fillMode]):"",groupPicture:i?ie([String(i.crop.left),String(i.crop.top),String(i.crop.right),String(i.crop.bottom),String(i.frameEmu.x),String(i.frameEmu.y),String(i.frameEmu.cx),String(i.frameEmu.cy),i.embeddedRelationshipId??"",i.linkedRelationshipId??"",i.memberNodeId,i.alternateContent?"mc":""]):"",legacyGraphic:e.legacyGraphic?JSON.stringify(e.legacyGraphic):"",vectorShape:a?ZO(a):"",wrapGeometry:o?ie([o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length),JO(o.polygon)]):"",position:t?ie([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)]):""};return ie(Object.values(l))}function Oc(e){switch(e.kind){case "ready":return ie(["ready",e.resourceKey,e.contentId,`${e.pixelWidth}x${e.pixelHeight}`]);case "pending":return ie(["pending",e.resourceKey]);case "external":return ie(["external",e.relationshipId,e.sinkSafe?"1":"0"]);case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var bW=1;function sI(e,t){if(e.kind==="paragraph"){for(let n of dI(e))t.push(n);return}if("children"in e)for(let n of e.children)sI(n,t);}function dI(e){if(e.kind!=="paragraph")return [];let t=[];return Of(e,n=>t.push(n.id)),Object.freeze(t)}function xW(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,d=false,s=0,c=new Map,u=new Set,f=new Map,m=new WeakMap,g=new WeakMap,p=0,h=chunk6KA3L3FR_cjs.Yc(r,t),b=chunk6KA3L3FR_cjs.Tc(r),y=chunk6KA3L3FR_cjs.Ac(r),x=chunk6KA3L3FR_cjs.dd(n,{stylesPart:y,resolveRelationship:h,resolveSchemeColor:b.resolveSchemeColor,resolveStyleMatrixReference:b.resolveStyleMatrixReference}),S=xb(n),R=S?Array.from(S.values()).some(k=>k.kind!=="textValue"&&k.localName==="object"):true,P=(k,O)=>{if(d||u.has(O))return;u.add(O);let L=s;o.resolveForProjection(k).then(H=>{d||L!==s||(c.set(O,H),H.kind==="ready"&&i(H.validatedHandle),p+=1,f.set(O,p),u.delete(O),a(t));}).catch(()=>{d||L!==s||(c.set(O,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),p+=1,f.set(O,p),u.delete(O),a(t));});},w=k=>{if(k.footprintOnly)return gW;let O=yb(k),L=c.get(O);if(L)return L;let H=(k.picture??k.groupPicture)?.linkedRelationshipId;if(H){let D=o.resolveLinked(t,H);return c.set(O,D),p+=1,f.set(O,p),D}let A=Object.freeze({kind:"pending",resourceKey:O});return c.set(O,A),p+=1,f.set(O,p),P(k,O),A},F=k=>{let O=x.get(k)??null;if(!O?.groupPicture?.alternateContent)return O;let L=O.groupPicture.linkedRelationshipId?w(O):c.get(yb(O));return L&&L.kind!=="ready"&&L.kind!=="pending"?chunk6KA3L3FR_cjs.Lc(O):O},I=Object.freeze({ownerPartName:t,projectionForAtom:F,project:k=>F(k.id),resourceOf:w,pictureBulletResource:e.pictureBulletResource}),v=k=>{let O=g.get(k);if(O)return O;let L=dI(k),H=null,A=(j,C)=>{if(!(C>=bW))for(let M of j){let _=x.get(M)?.textboxStory;if(!_)continue;let U=[];if(sI(_.content,U),U.length!==0){H||(H=[...L]);for(let ne of U)H.push(ne);A(U,C+1);}}};A(L,0);let D=H??L;return g.set(k,D),D};return {context:I,cacheTokenForPart:()=>`${t}|${p}|${s}|${x.size}`,drawingTokenForParagraph:k=>{let O=m.get(k);if(O?.resourceEpoch===p)return O.token;let L=v(k);if(L.length===0)return m.set(k,{resourceEpoch:p,token:""}),"";let H=L.map(D=>SW(x.get(D)??null,D,w,j=>f.get(yb(j))??0)).sort(),A=ie(H);return m.set(k,{resourceEpoch:p,token:A}),A},pendingResourceCount:()=>u.size,isCompatibleWith:(k,O)=>{let L=chunk6KA3L3FR_cjs.Tc(O);if(L.cacheToken!==b.cacheToken)return false;if(k===n&&chunk6KA3L3FR_cjs.Ac(O)===y)return true;let H=xb(k);if(!R&&S&&H&&S.size===H.size){let D=true;for(let[j,C]of S)if(H.get(j)!==C){D=false;break}if(D)return true}let A=chunk6KA3L3FR_cjs.dd(k,{stylesPart:chunk6KA3L3FR_cjs.Ac(O),resolveRelationship:chunk6KA3L3FR_cjs.Yc(O,t),resolveSchemeColor:L.resolveSchemeColor,resolveStyleMatrixReference:L.resolveStyleMatrixReference});if(A.size!==x.size)return false;for(let[D,j]of x){let C=A.get(D);if(!C||Sb(C)!==Sb(j))return false}return true},dispose:()=>{d=true,s+=1;for(let k of c.values())k.kind==="ready"&&l(k.validatedHandle);c.clear(),u.clear(),f.clear();}}}var rI=0;function see(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunk6KA3L3FR_cjs.rd(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,l=new Map,d=new Map,s=p=>{l.set(p.resourceKey,p);let h=chunk6KA3L3FR_cjs.fd(p);h&&d.set(p.resourceKey,h);},c=p=>{l.delete(p.resourceKey);let h=d.get(p.resourceKey);h&&(chunk6KA3L3FR_cjs.gd(h),d.delete(p.resourceKey));},u=eI({currentPackage:()=>n,lookup:()=>r,rememberReadyHandle:s,onResourcesChanged:()=>e.onResourcesChanged()}),f=(p,h)=>{let y=h.currentPackage().parts.get(p)??a.get(p);if(y)return y;if(p===h.part().name)return h.part();throw new Error(`Missing inline drawing part ${p}`)},m=(p,h)=>{let b=o.get(p);if(b)return b;let y=f(p,h);a.set(p,y);let x=xW({ownerPartName:p,part:y,pkg:h.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:s,forgetReadyHandle:c,pictureBulletResource:u.resolve});return o.set(p,x),rI+=1,i.set(x,rI),x},g=p=>{let h=p.currentPackage();if(h.partBytes===n.partBytes&&h.relationships===n.relationships&&h.contentTypes===n.contentTypes){for(let[y,x]of o){let S=h.parts.get(y)??(y===p.part().name?p.part():void 0);if(S&&x.isCompatibleWith(S,h)){a.set(y,S);continue}x.dispose(),o.delete(y),a.delete(y);}t=p.packageRevision(),n=h;return}for(let y of o.values())y.dispose();o.clear(),a.clear();for(let y of d.values())chunk6KA3L3FR_cjs.gd(y);d.clear(),l.clear(),u.reset(),e.resourceLookup||r.dispose(),t=p.packageRevision(),n=h,r=e.resourceLookup??chunk6KA3L3FR_cjs.rd(h,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return m(e.session.part().name,e.session).context},contextForPart(p){return m(p,e.session).context},cacheTokenForPart(p){let h=m(p,e.session);return `${u.epoch()}|${i.get(h)??0}|${h.cacheTokenForPart()}`},drawingTokenForParagraph(p,h){let b=m(h,e.session);return `${u.epoch()}|${i.get(b)??0}|${b.drawingTokenForParagraph(p)}`},pendingResourceCount(){let p=u.pendingCount();for(let h of o.values())p+=h.pendingResourceCount();return p},mintValidatedBytes(p,h){return l.get(p.resourceKey)!==p?null:chunk6KA3L3FR_cjs.ed(p,h)},sync(p){p.packageRevision()===t&&p.currentPackage()===n||g(p);},dispose(){u.reset();for(let p of o.values())p.dispose();o.clear(),a.clear();for(let p of d.values())chunk6KA3L3FR_cjs.gd(p);d.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function SW(e,t,n,r){if(!e)return ie([t,"refused"]);let o=[t,Sb(e),Oc(n(e))];return r&&o.push(String(r(e))),ie(o)}function cI(e,t,n){if(t===void 0)return aI(e,n);let r=oI.get(e);if(r&&r.epoch===t)return r.token;let o=aI(e,n);return oI.set(e,{epoch:t,token:o}),o}var oI=new WeakMap;function aI(e,t){return pi(e,t)}var PW=4,Pb=256;function RW(e){return `txbx-${e}`}var uI=new WeakMap;function hI(e,t,n,r="all-markup",o){if(!t||t.nums.size===0)return;let a=uI.get(e);if(a&&a.rawIndex===t&&a.styleCascade===n&&a.displayMode===r&&a.authorFilter===o)return a.listItems;let i=fm(t,n),l=Jh(e,r,o),d=Qd(l,i,n),s=d.size>0?d:void 0;return uI.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,listItems:s}),s}var yI=2e4,Rb=Object.freeze({contents:Object.freeze([]),truncated:false}),Ic=new WeakMap;function wW(e){let t=[],n=0,r=false,o=[e];for(;o.length>0;){let a=o.pop();if(n+=1,n>yI){r=true;break}if(a.kind!=="textValue"&&a.localName==="txbxContent"){t.push(a);continue}if("children"in a)for(let i=a.children.length-1;i>=0;i-=1)o.push(a.children[i]);}return t.length>0||r?Object.freeze({contents:Object.freeze(t),truncated:r}):Rb}function kW(e){let t=Ic.get(e);if(t)return t;if(e.kind!=="table"){let l=wW(e);return Ic.set(e,l),l}let n=[],r=0,o=false,a=[{phase:"enter",node:e,paragraphOwners:[]}];for(;a.length>0;){let l=a.pop();if(l.phase==="exit-paragraph"){Ic.has(l.scan.paragraph)||Ic.set(l.scan.paragraph,l.scan.contents.length>0?Object.freeze({contents:Object.freeze(l.scan.contents),truncated:false}):Rb);continue}let d=l.node;if(r+=1,r>yI){o=true;break}if(d.kind!=="textValue"&&d.localName==="txbxContent"){n.push(d);for(let c of l.paragraphOwners)c.contents.push(d);continue}if(!("children"in d))continue;let s=l.paragraphOwners;if(d.kind==="paragraph"){let c={paragraph:d,contents:[]};s=Object.freeze([...s,c]),a.push({phase:"exit-paragraph",scan:c});}for(let c=d.children.length-1;c>=0;c-=1)a.push({phase:"enter",node:d.children[c],paragraphOwners:s});}let i=n.length>0||o?Object.freeze({contents:Object.freeze(n),truncated:o}):Rb;return Ic.set(e,i),i}var fI=1,mI=new WeakMap;function TW(e){let t=mI.get(e);return t===void 0&&(t=fI,fI+=1,mI.set(e,t)),t}var pI=new WeakMap;function vW(e,t,n,r="all-markup",o){if(t.nums.size===0)return "";let a=kW(e);if(a.contents.length===0&&!a.truncated)return "";let i=pI.get(e);if(i&&i.rawIndex===t&&i.styleCascade===n&&i.displayMode===r&&i.authorFilter===o)return i.token;let l=[];for(let s of a.contents){let c=hI(s,t,n,r,o);if(c)for(let[u,f]of c)l.push(ie([u,f.cacheToken]));}a.truncated&&l.push(`truncated:${TW(t)}`);let d=l.length===0?"":`|txbxlist:${ie(l)}`;return pI.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,token:d}),d}function tp(e,t,n,r,o){return Object.freeze({layoutTextboxStoryFor:e,hostedListTokenForParagraph:!t||t.nums.size===0?null:a=>vW(a,t,n,r,o)})}function np(e,t){let n=e.textboxStory;if(!n)return null;let r=Dn(e.extentEmu.cx),o=Dn(e.extentEmu.cy),a=Dn(n.insetsEmu.left),i=Dn(n.insetsEmu.right),l=Dn(n.insetsEmu.top),d=Dn(n.insetsEmu.bottom),s=Math.max(1,r-a-i),c=Math.max(0,o-l-d),u=Dn(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:s,contentHeight:c};if((t.depth??0)>=PW)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let g=Jh(n.content,t.displayMode,t.revisionAuthorFilter),p=hI(n.content,t.numberingIndex,t.styleCascade,t.displayMode,t.revisionAuthorFilter),h=RW(e.drawingNodeId),b=0,y=zo(g,0,s,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}${t.showFieldCodes?"|field-codes":""}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${h}-line-${b++}`,styleCascade:t.styleCascade,...p?{listItems:p}:{},...t.pageContext?{pageContext:t.pageContext}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},showFieldCodes:t.showFieldCodes,compatibilityMode:t.compatibilityMode,tableNestingOffset:1,...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...t.displayMode?{displayMode:t.displayMode}:{},...t.revisionAuthorFilter?{revisionAuthorFilter:t.revisionAuthorFilter}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:{},...t.projectionTokenForParagraph?{projectionTokenForParagraph:t.projectionTokenForParagraph}:{},...t.projectionTokenForTable?{projectionTokenForTable:t.projectionTokenForTable}:{}}),x=y.blocks,S=y.bottom,R,P=[];if(x.length>Pb){gI(x.slice(Pb),P),x=x.slice(0,Pb);let I=x[x.length-1];S=I?I.box.y+I.box.height:0,R="textbox-fragment-limit";}if(S>c+.001){let I=x.filter(v=>v.box.y<c-.001);I.length<x.length&&(gI(x.filter(v=>v.box.y>=c-.001),P),x=I,R=R??"textbox-height-clip");}let w=Math.max(0,c-S),F=n.verticalAnchor==="center"?w/2:n.verticalAnchor==="bottom"?w:0;return {fragments:x,flowHeight:S,contentOffset:{x:a,y:l+F},...f,...R?{fallbackReason:R}:{},...P.length>0?{clippedResourceToken:ie(P)}:{}}}function gI(e,t){vl({fragments:e},n=>{t.push(Oc(n.resource));});}function bI(e,t,n,r){let o=(r??0)>=15;if(e.placesWhole===true&&e.isContinuation!==true)return null;let a=n,i=0;for(let l of e.cells){if(l.textDirection)return null;if(l.vMergeContinue||(l.rowSpan??1)>1)continue;let d=FW(l,o);if(d.length===0)continue;i=Math.max(i,d[d.length-1]);let s=l===t?d.find(c=>c>=n-.001):d[0];if(s===void 0)return null;a=Math.max(a,s);}return i>a+.001?a:null}function FW(e,t){let n=[];return e.blocks.forEach((r,o)=>{if(r.kind!=="paragraph"||r.lines.length===0){n.push(r.box.y+r.box.height);return}let a=rt(r.props),i={...a,widowControl:a.widowControl&&t,keepLines:a.keepLines&&t},l=r.lines.length,d=o<e.blocks.length-1;for(let s=1;s<=l;s+=1){if(s<l&&xa(s,0,l,i,false)!==s||s===l&&d&&i.keepNext)continue;let c=r.lines[s-1];n.push(c.box.y+c.box.height);}}),n}function op(e,t,n,r){if(t.floatingWrap||Mt(t)||t.nestingDepth!==0)return wb([t],n)?"table":null;let o=0,a=true,i,l;for(let d of t.rows){if(a&&=d.isHeaderRepeat||d.isHeaderRow,a&&(o+=d.box.height),d.isHeaderRepeat)continue;let s=PI(d,n);if(!s){Ma(d)?l=d:[i,l]=[d,void 0];continue}if(d.isHeaderRow||(s.rowSpan??1)>1||rp(d))return "table";let c=IW(s,d,n);if(c===null)return "table";let u=d.box.y,f=d.isContinuation!==true&&i!==void 0&&!i.isHeaderRow&&!rp(i)&&ap(e),g=(c===void 0?null:d.hasContinuation===true?c:bI(xO(l,d),s,c,r))??u+d.box.height,p=OW(e,t,d);return {top:u,bottom:g,blockTop:u-o,evictable:f,endsPage:p,row:d}}return null}function xI(e,t){return PI(e,t)!==null}function ap(e){let t=Number.NEGATIVE_INFINITY;for(let n of e.fragments)if(!Mt(n)&&!(n.kind==="paragraph"&&n.positionedFrame)){if(n.box.y<t-.001)return false;t=n.box.y+n.box.height;}return true}function OW(e,t,n){if(t.rows[t.rows.length-1]!==n)return false;let r=e.fragments.indexOf(t);for(let o=r+1;o<e.fragments.length;o+=1){let a=e.fragments[o];if(!Mt(a)&&!(a.kind==="paragraph"&&a.positionedFrame))return false}return true}function SI(e,t){let n=ip(e);return n===null||n===t}function ip(e){if(!e)return null;for(let t of e.fragments){if(Mt(t)||t.kind==="paragraph"&&t.positionedFrame)continue;if(t.kind!=="table")return "";let n=t.rows.find(r=>!r.isHeaderRepeat&&!Ma(r));return n?.isContinuation===true?n.id:""}return ""}function PI(e,t){for(let n of e.cells)if(wb(n.blocks,t))return n;return null}function wb(e,t){for(let n of e){if(n.kind==="paragraph"){if(Ln(n,t.paragraphId,t.atomOffset))return true;continue}for(let r of n.rows)if(!r.isHeaderRepeat){for(let o of r.cells)if(wb(o.blocks,t))return true}}return false}function rp(e){for(let t of e.cells){let n=t.blocks[0];if(n?.kind==="paragraph"&&rt(n.props).keepNext)return true}return false}function IW(e,t,n){if(!e.textDirection){for(let r of e.blocks)if(r.kind==="paragraph"&&Ln(r,n.paragraphId,n.atomOffset)){for(let o of r.lines)for(let a of Pt(o)){if(!Ju(a,n.paragraphId,n.atomOffset))continue;let i=o.box.y+o.box.height;return o.box.y>=t.box.y-.001&&i<=t.box.y+t.box.height+.001?i:null}return null}}}function Yn(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},...e.marker.picture?{picture:{...e.marker.picture,box:{...e.marker.picture.box,y:e.marker.picture.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 kb(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?Yn(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function Vo(e){let t=0;for(let n of e)Mt(n)||(t=Math.max(t,n.box.y+n.box.height));return t}function Tb(e){let t=0;for(let n of e.fragments)t=Math.max(t,CW(n));return t}function lp(e){let t=0;for(let n of e.fragments)t=Math.max(t,Cc(n));return t}function Cc(e){if(Mt(e))return 0;let t=e.kind==="paragraph"?e.spacing.after:0;return e.box.y+e.box.height-t}function CW(e){let t=Cc(e);if(e.kind!=="paragraph")return t;let n=e.lines[e.lines.length-1];return t-(n?Math.min(n.trailingSpacing??0,n.box.height):0)}function Es(e){let t=Number.POSITIVE_INFINITY;for(let n of e.fragments){if(Mt(n))continue;let r=n.kind==="paragraph"?n.lines[0]?.box.y??n.box.y:n.box.y;t=Math.min(t,r);}return Number.isFinite(t)?t:0}var MW=[false,true].map(()=>new WeakMap);function io(e,t,n){let r=MW[(n??0)>=15?1:0],o=r.get(e.fragments);o||(o=new WeakMap,r.set(e.fragments,o));let a=o.get(t);if(a)return a;let i=BW(e,t,n);return o.set(t,i),i}function RI(e,t,n){for(let r of t)if(io(e,r,n).preserveOrphanLine===true)return true;return false}function BW(e,t,n){let r=0,o=0,a=0,i=false,l=false,d=false,s;for(let m of e.fragments){if(m.kind==="paragraph"){if(!Ln(m,t.paragraphId,t.atomOffset))continue;let h=EW(m,t),b=h?.top??m.box.y,y=h?.bottom??m.box.y+m.box.height;if(y>o){r=b,o=y,a=m.box.y,i=h!==null&&!Mt(m);let x=rt(m.props);d=false,s=void 0,l=i&&h?.index===1&&m.fragmentIndex===0&&(m.lines.length>=4||!m.paragraphEnd)&&x.widowControl&&!x.keepLines;}continue}let g=op(e,m,t,n);if(g===null)continue;let p=g==="table"?{top:m.box.y,bottom:m.box.y+m.box.height,blockTop:a,evictable:false}:g;p.bottom>o&&(r=p.top,o=p.bottom,a=p.blockTop,i=p.evictable,l=false,d=g!=="table",s=g!=="table"&&g.endsPage?g.row.id:void 0);}let c=m=>Math.min(Math.max(0,m),e.contentBox.height),u=c(r),f=c(o);return {top:u,bottom:f,blockTop:c(a),evictable:i&&f>u,...l?{preserveOrphanLine:true}:{},...d?{tableRow:true}:{},...s!==void 0?{endsPageRowId:s}:{}}}function EW(e,t){for(let[n,r]of e.lines.entries())for(let o of Pt(r))if(Ju(o,t.paragraphId,t.atomOffset))return {top:r.box.y,bottom:r.box.y+r.box.height,index:n};return null}function vb(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}var dp=e=>e.kind!=="textValue",Xn=(e,t)=>dp(e)&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t,sp=e=>e.children.filter(dp),Fb=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunk6KA3L3FR_cjs.da?n[0].value:void 0};function Er(e,{leadingTab:t=false,allowDecoration:n=false}={}){let r=0,o="",a="",i="",l=0;for(let d of sp(e))if(!Xn(d,"pPr")){if(n==="text"&&Xn(d,"fldSimple")&&r===0){if(Fo(Fb(d,"instr")??"")!=="PAGE"||sp(d).some(s=>!Xn(s,"r")||sp(s).some(c=>!Xn(c,"rPr")&&(!Xn(c,"t")||c.children.some(dp)||c.children.some(u=>u.kind==="textValue"&&!/^\d*$/.test(u.value))))))return;o=Fb(d,"instr"),r=3;continue}if(!Xn(d,"r"))return;for(let s of sp(d)){if(Xn(s,"rPr"))continue;if(Xn(s,"tab")&&r===0&&!a&&!l&&t&&!s.children.length){l++;continue}if(Xn(s,"fldChar")&&!s.children.length){let u=Fb(s,"fldCharType");if(r===0&&u==="begin")r=1;else if(r===1&&u==="separate"&&Fo(o)==="PAGE")r=2;else if(r===2&&u==="end")r=3;else return;continue}if(s.children.some(dp))return;let c=s.children.map(u=>u.kind==="textValue"?u.value:"").join("");if(Xn(s,"instrText")&&r===1)o+=c;else if(n&&Xn(s,"t")&&r===0)a+=c;else if(n&&Xn(s,"t")&&r===3)i+=c;else if(!(Xn(s,"t")&&r===2&&/^\d*$/.test(c)))return}}return r===3&&Fo(o)==="PAGE"&&l===Number(t)&&(n==="text"||!a&&!i||a==="- "&&i===" -")?a+i:void 0}var Ib=31680/20,vI=e=>e.kind!=="textValue",Ki=(e,t)=>vI(e)&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t,Ns=e=>e.children.filter(vI),Ls=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunk6KA3L3FR_cjs.da?n[0].value:void 0};function Ob(e,t){let n=Ns(e).filter(r=>r.localName===t);return n.length===1&&Ki(n[0],t)?n[0]:void 0}function wI(e){if(e===void 0||!/^\d{1,5}$/.test(e))return;let t=Number(e)/20;return t<=Ib?t:void 0}function kI(e){return e.kind==="paragraph"&&e.lines.length===1&&!e.marker&&!e.borders?.length&&!e.shading&&!e.lines[0].drawings?.length&&e.spacing.before===0&&e.spacing.after===0&&e.indent.left===0&&e.indent.firstLine===0&&e.indent.hanging===0}function LW(e,t){return t.lines[0].spans.length===0&&Ns(e).every(n=>Ki(n,"pPr")||Ki(n,"r")&&Ns(n).every(r=>Ki(r,"rPr")))}function TI(e,t){let n=new Set(["pStyle","tabs","jc","rPr","ind","spacing","widowControl","contextualSpacing","snapToGrid",...t?["framePr"]:[]]);return e.props.length<=64&&e.props.every(r=>n.has(r.localName))&&e.props.filter(r=>r.localName==="framePr").length===Number(t)}function FI(e,t,n){if(!n||!Ki(e.root,"ftr")||t.blocks.length!==2||!Number.isFinite(n.pageWidth)||n.pageWidth<=0||n.pageWidth>Ib||!Number.isFinite(n.marginLeft)||n.marginLeft<0||n.marginLeft>n.pageWidth)return t;let r=Ns(e.root),[o,a]=t.blocks;if(r.length!==2||r.some(R=>R.kind!=="paragraph")||!o||!a||!kI(o)||!kI(a)||!TI(o,true)||!TI(a,false)||o.paragraphId!==r[0].id||a.paragraphId!==r[1].id||o.alignment!=="left"||o.indent.right!==0||a.indent.right<0||a.indent.right>Ib)return t;let i=Ob(r[0],"pPr"),l=Ob(r[1],"pPr");if(!i||!l||Ns(i).some(R=>!["framePr","pStyle","tabs","jc","rPr"].some(P=>Ki(R,P)))||Ns(l).some(R=>!["pStyle","jc","ind","rPr"].some(P=>Ki(R,P)))||Er(r[0],{leadingTab:true,allowDecoration:true})===void 0||Er(r[1],{allowDecoration:true})===void 0&&!LW(r[1],a))return t;let s=Ob(i,"framePr"),c=new Set(["w","wrap","vAnchor","hAnchor","x","yAlign"]);if(!s||s.children.length||s.attributes.some(R=>R.namespaceUri!==chunk6KA3L3FR_cjs.da||!c.has(R.localName))||Ls(s,"wrap")!=="around"||Ls(s,"vAnchor")!=="text"||Ls(s,"hAnchor")!=="page"||Ls(s,"yAlign")!=="center")return t;let u=wI(Ls(s,"w")),f=wI(Ls(s,"x"));if(u===void 0||u<=0||f===void 0||f+u>n.pageWidth)return t;let m=o.lines[0],g=1/0,p=-1/0;for(let R of m.spans)R.box.width<=0||R.text===" "||R.text.trim()===""||(g=Math.min(g,R.box.x-o.box.x),p=Math.max(p,R.box.x+R.box.width-o.box.x));if(!Number.isFinite(g)||!Number.isFinite(p)||g<0||!(p<=u||g>=u))return t;let h=Yn(a,-a.box.y),b=(a.box.height-o.box.height)/2;if(b<0)return t;let y=Yn(o,b-o.box.y),x=f-n.marginLeft-o.box.x,S={...y,clipToBox:true,box:{...y.box,x:o.box.x+x,width:u},lines:y.lines.map(R=>({...R,box:{...R.box,x:R.box.x+x},contentX:R.contentX+x,spans:R.spans.map(P=>({...P,box:{...P.box,x:P.box.x+x}}))}))};return {...t,blocks:[S,h],bottom:h.box.height}}var II=e=>e.kind!=="textValue",$i=(e,t)=>II(e)&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t,As=e=>e.children.filter(II),Na=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunk6KA3L3FR_cjs.da?n[0].value:void 0},Mc=(e,t)=>{let n=As(e).filter(r=>r.localName===t);return n.length===1&&$i(n[0],t)?n[0]:void 0};function NW(e){let t=As(e.root);if(t.length!==2||t.some(u=>u.kind!=="paragraph"))return null;let[n,r]=t,o=Mc(n,"pPr"),a=Mc(r,"pPr");if(!o||!a||As(o).some(u=>!["pStyle","framePr","rPr","spacing"].some(f=>$i(u,f)))||As(a).some(u=>!["pStyle","ind","rPr","spacing"].some(f=>$i(u,f))))return null;let i=Mc(o,"pStyle"),l=Mc(a,"pStyle");if(!i||!l||!Na(i,"val")||Na(i,"val")!==Na(l,"val")||As(r).some(u=>!$i(u,"pPr")&&(!$i(u,"r")||As(u).some(f=>!$i(f,"rPr")))))return null;let d=Mc(o,"framePr"),s=new Set(["wrap","vAnchor","hAnchor","xAlign","y"]);if(!d||d.children.length||d.attributes.some(u=>u.namespaceUri!==chunk6KA3L3FR_cjs.da||!s.has(u.localName))||Na(d,"wrap")!=="around"||Na(d,"vAnchor")!=="text"||Na(d,"hAnchor")!=="margin"||Na(d,"xAlign")!=="right")return null;let c=Na(d,"y")??"0";return !["0","1"].includes(c)||Er(n,{allowDecoration:"text"})===void 0?null:{framed:n.id,anchor:r.id,y:Number(c)/20}}function OI(e){return e.kind==="paragraph"&&e.props.length<=64&&e.props.every(t=>["pStyle","framePr","rPr","spacing","ind","jc","tabs","widowControl","snapToGrid"].includes(t.localName))&&e.props.every(t=>t.localName!=="spacing"||Object.keys(t.attributes??{}).every(n=>["before","after","line","lineRule"].includes(n)))&&e.lines.length===1&&!e.marker&&!e.borders?.length&&!e.shading&&!e.lines[0].drawings?.length&&e.indent.left===0&&e.indent.firstLine===0&&e.indent.hanging===0}function CI(e,t,n,r=false){if(!$i(e.root,"ftr")||t.blocks.length!==2||!(n>0))return t;let o=NW(e),[a,i]=t.blocks;if(!o||!a||!i||!OI(a)||!OI(i)||a.paragraphId!==o.framed||i.paragraphId!==o.anchor||a.indent.right!==0||i.indent.right<0||i.lines[0].spans.length||i.props.some(x=>x.localName==="framePr"))return t;let d=a.lines[0].spans.filter(x=>x.box.width>0&&x.text.trim()!=="");if(!d.length)return t;let s=1/0,c=-1/0;for(let x of d)s=Math.min(s,x.box.x),c=Math.max(c,x.box.x+x.box.width);if(!Number.isFinite(s)||!Number.isFinite(c)||c-s>n)return t;let u=ia(i.props).before,f=Yn(i,u-i.lines[0].box.y),m={...f,spacing:{...f.spacing,before:u},box:{...f.box,y:0,height:f.box.y+f.box.height}},g=r?a.spacing.before:0,p=Yn(a,u+o.y-a.box.y-g),h=n-c,b=p.lines[0],y={...p,box:{...p.box,x:s+h,width:c-s},lines:[{...b,box:{...b.box,x:s+h,width:c-s},contentX:b.contentX+h,spans:b.spans.map(x=>({...x,box:{...x.box,x:x.box.x+h}}))}]};return {...t,blocks:[y,m],bottom:m.box.height}}var Cb=e=>e.kind!=="textValue",qn=(e,t)=>Cb(e)&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t,lo=e=>e.children.filter(Cb),Ui=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunk6KA3L3FR_cjs.da?n[0].value:void 0},MI=(e,t)=>lo(e).every(n=>t.some(r=>qn(n,r))),cp=(e,t)=>lo(e).filter(n=>qn(n,t)).length,AW=new Set(["wrap","vAnchor","hAnchor","xAlign","y"]);function DW(e){let t=false;for(let n of lo(e))if(!qn(n,"pPr")){if(!qn(n,"r"))return false;for(let r of lo(n))if(!qn(r,"rPr")&&!(qn(r,"tab")&&r.children.length===0)){if(!qn(r,"t")||r.children.some(Cb))return false;t||=r.children.some(o=>o.kind==="textValue"&&o.value.trim());}}return t}function _W(e){let t=lo(e.root);if(t.length!==2||t.some(u=>u.kind!=="paragraph"))return null;let[n,r]=t,o=lo(n).filter(u=>qn(u,"pPr")),a=lo(r).filter(u=>qn(u,"pPr"));if(o.length!==1||a.length!==1)return null;let[i,l]=[o[0],a[0]];if(!MI(i,["pStyle","framePr","rPr"])||!MI(l,["pStyle","ind","rPr"])||cp(i,"pStyle")!==1||cp(i,"framePr")!==1||cp(l,"pStyle")!==1||cp(l,"ind")>1)return null;let d=Ui(lo(i).find(u=>qn(u,"pStyle")),"val");if(!d||d!==Ui(lo(l).find(u=>qn(u,"pStyle")),"val"))return null;let s=lo(i).find(u=>qn(u,"framePr"));if(s.children.length||s.attributes.some(u=>u.namespaceUri!==chunk6KA3L3FR_cjs.da||!AW.has(u.localName))||Ui(s,"wrap")!=="none"||Ui(s,"vAnchor")!=="text"||Ui(s,"hAnchor")!=="margin"||Ui(s,"xAlign")!=="right")return null;let c=Ui(s,"y")??"0";return !["0","1"].includes(c)||Er(n)!==""||!DW(r)?null:{framed:n.id,anchor:r.id,y:Number(c)/20}}function BI(e){return e.kind==="paragraph"&&e.lines.length===1&&!e.marker&&!e.borders?.length&&!e.shading&&!e.lines[0].drawings?.length&&e.indent.left===0&&e.indent.firstLine===0&&e.indent.hanging===0}function EI(e){let t=1/0,n=-1/0;for(let r of e.lines[0].spans)r.box.width<=0||r.text.trim()===""||(t=Math.min(t,r.box.x),n=Math.max(n,r.box.x+r.box.width));return Number.isFinite(t)&&Number.isFinite(n)?{left:t,right:n}:null}function LI(e,t,n){if(!qn(e.root,"ftr")||t.blocks.length!==2||!(n>0))return t;let r=_W(e),[o,a]=t.blocks;if(!r||!o||!a||!BI(o)||!BI(a)||o.paragraphId!==r.framed||a.paragraphId!==r.anchor||o.indent.right!==0||a.indent.right<0)return t;let i=EI(o),l=EI(a);if(!i||!l)return t;let d=n-i.right;if(i.left+d<0||l.right>i.left+d)return t;let s=o.lines[0],c=a.lines[0],u=s.box.y-o.box.y,f=Yn(a,u-c.box.y),m={...f,spacing:{...f.spacing,before:o.spacing.before},box:{...f.box,y:0,height:f.box.y+f.box.height}},g=Yn(o,r.y-o.box.y),p=g.lines[0],h=i.right-i.left,b={...g,box:{...g.box,x:i.left+d,width:h},lines:[{...p,box:{...p.box,x:i.left+d,width:h},contentX:p.contentX+d,spans:p.spans.map(y=>({...y,box:{...y.box,x:y.box.x+d}}))}]};return {...t,blocks:[b,m],bottom:Math.max(b.box.y+b.box.height,m.box.y+m.box.height)}}var AI=e=>e.kind!=="textValue",fn=(e,t)=>AI(e)&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t,Aa=(e,t)=>e.attributes.find(n=>n.namespaceUri===chunk6KA3L3FR_cjs.da&&n.localName===t)?.value;function Yi(e){return e.children.filter(AI)}function jW(e){let t=[{node:e.root,depth:0}],n=0;for(;t.length;){let{node:r,depth:o}=t.pop();if(++n>512||o>16)return false;if(r.kind==="textValue"){if(r.value.length>256)return false}else {if(n+t.length+r.children.length>512||r.attributes.length>32||r.attributes.some(a=>a.value.length>1024))return false;for(let a of r.children){if(a.kind==="textValue"&&a.value.trim()&&!fn(r,"t")&&!fn(r,"instrText"))return false;t.push({node:a,depth:o+1});}}}return true}function HW(e){let t="";for(let n of e.children){if(n.kind!=="textValue")return null;t+=n.value;}return t}function WW(e){let t=Yi(e.root);if(t.length!==2||t.some(g=>g.kind!=="paragraph"))return null;let[n,r]=t,o=Yi(n).find(g=>fn(g,"pPr")),a=Yi(r).find(g=>fn(g,"pPr"));if(!o||!a)return null;let i=Yi(o),l=Yi(a);if(i.filter(g=>fn(g,"framePr")).length!==1||i.filter(g=>fn(g,"pStyle")).length!==1||l.filter(g=>fn(g,"pStyle")).length!==1||i.some(g=>!["pStyle","framePr","jc","rPr"].some(p=>fn(g,p)))||l.some(g=>!["pStyle","jc","rPr"].some(p=>fn(g,p))))return null;let d=i.find(g=>fn(g,"pStyle")),s=l.find(g=>fn(g,"pStyle")),c=i.find(g=>fn(g,"framePr"));if(!Aa(d,"val")||Aa(d,"val")!==Aa(s,"val"))return null;let u="";for(let g of Yi(r))if(!fn(g,"pPr")){if(!fn(g,"r"))return null;for(let p of Yi(g)){if(fn(p,"rPr"))continue;if(!fn(p,"t"))return null;let h=HW(p);if(h===null)return null;u+=h;}}if(u&&!/^· {1,15}·$/.test(u))return null;let f=new Set(["wrap","vAnchor","hAnchor","xAlign","y"]);if(c.children.length||c.attributes.some(g=>g.namespaceUri!==chunk6KA3L3FR_cjs.da||!f.has(g.localName))||Aa(c,"wrap")!=="around"||Aa(c,"vAnchor")!=="text"||Aa(c,"hAnchor")!=="margin"||Aa(c,"xAlign")!=="center")return null;let m=Aa(c,"y")??"0";return !["0","1"].includes(m)||Er(n)!==""?null:{first:n.id,empty:r.id,y:Number(m)/20,decoration:u}}function NI(e){return e.kind==="paragraph"&&e.lines.length===1&&!e.marker&&!e.borders?.length&&!e.shading&&!e.lines[0].drawings?.length&&e.spacing.before===0&&e.spacing.after===0&&Object.values(e.indent).every(t=>t===0)}function DI(e,t,n,r,o=false){if(!fn(e.root,"ftr")||!jW(e))return t;let a=WW(e);if(!a){let h=FI(e,t,r);if(h!==t)return h;let b=LI(e,t,n);return b===t?CI(e,t,n,o):b}if(t.blocks.length!==2)return t;let[i,l]=t.blocks;if(!i||!l||!NI(i)||!NI(l)||i.paragraphId!==a.first||l.paragraphId!==a.empty||(a.decoration?l.alignment!=="center"||l.lines[0].spans.map(h=>h.text).join("")!==a.decoration:l.lines[0].spans.length>0))return t;let d=Yn(i,a.y-i.box.y),s=Yn(l,-l.box.y),c=d.lines[0],u=c.spans[0]?.box.x??c.contentX,f=c.spans.at(-1),m=f?f.box.x+f.box.width:u,g=(n-(m-u))/2-u,p={...d,alignment:"center",box:{...d.box,x:u+g,width:m-u},lines:[{...c,box:{...c.box,x:u+g,width:m-u},contentX:c.contentX+g,spans:c.spans.map(h=>({...h,box:{...h.box,x:h.box.x+g}}))}]};return {...t,blocks:[p,s],bottom:Math.max(p.box.y+p.box.height,s.box.y+s.box.height)}}var _I=new WeakMap;function Ds(e){let t=_I.get(e);if(t)return t;let n=new Map;for(let r of e){let o=n.get(r.anchorId)??[];o.push(r),n.set(r.anchorId,o);}return _I.set(e,n),n}function jI(e,t,n,r,o,a){let i=[],l;for(let d=e.length-1;d>=0;d-=1){let s=e[d];if(s.kind==="paragraph"&&!s.props.some(u=>u.localName==="framePr")){l=s.paragraph.id;continue}if(s.kind!=="table")continue;let c=Zt(s.table,t,0,n,r,o,a)?.float;!c||c.ySpec==="inline"||l&&i.push({table:s.table,sourceIndex:d,anchorId:l,float:c});}return i.reverse()}function zW(e,t){let n=e??[];return n.length===t.length&&n.every((r,o)=>r.anchorId===t[o].anchorId&&r.column===t[o].column&&r.fragmentIndex===t[o].fragmentIndex&&r.anchorY===t[o].anchorY)}function Mb(e,t){let n=t.pendingPositionedTableTokens,r=e.pendingPositionedTableTokens;return (n===r||n?.length===r?.length&&n?.signature===r?.signature)&&zW(e.positionedTableAnchorSignals,t.positionedTableAnchorSignals??[])}function HI(e,t){let n=new Map,r=new Map,o=new Set;for(let d of e){let s=JSON.stringify([d.table.id,t[d.sourceIndex]]);n.set(d.table.id,s),r.set(s,d.table.id),o.add(d.anchorId);}let a,i=d=>{a={token:d,previous:a,length:(a?.length??0)+1,signature:chunk6KA3L3FR_cjs.a(new TextEncoder().encode(ie([a?.signature??"",d])))};},l=d=>{if((a?.length??0)!==d.size){a=void 0;for(let s of d){let c=n.get(s);c&&i(c);}}};return {add(d,s){if(l(d),d.has(s))return;let c=n.get(s);c&&(d.add(s),i(c));},note(d,s,c,u,f){o.has(s)&&d.push({anchorId:s,column:c,fragmentIndex:u,anchorY:f});},checkpoint(d,s){return l(d),{pendingPositionedTableTokens:a,positionedTableAnchorSignals:[...s]}},restore(d,s,c){s.clear();let u=[];for(let f=d.pendingPositionedTableTokens;f;f=f.previous)u.push(f.token);for(let f=u.length-1;f>=0;f--){let m=r.get(u[f]);m&&s.add(m);}a=d.pendingPositionedTableTokens,l(s),c.splice(0,c.length,...d.positionedTableAnchorSignals??[]);},same(d,s,c,u){return l(c),Mb({pendingPositionedTableTokens:d,positionedTableAnchorSignals:s},{pendingPositionedTableTokens:a,positionedTableAnchorSignals:u})}}}function WI(e,t,n,r,o){let a=Ds(e),i=0;for(let l of r){let d=a.get(l.anchorId);if(!d)continue;let s=l.fragmentIndex+i,c=n.length;for(let f of d){if(!t.has(f.table.id))continue;let m=n.length;o(f.table,l.column,l.anchorY,s);for(let g=m;g<n.length;g++){let p=n[g];p.kind==="table"&&(n[g]={...p,floatingWrap:{anchorId:l.anchorId,columnIndex:l.column,float:f.float,sourceOrder:f.sourceIndex}});}t.delete(f.table.id);}let u=n.splice(c);n.splice(s,0,...u),i+=u.length;}r.length=0;}function up(e){return e.kind==="table"&&e.outOfFlow===true}function zI(e,t,n){let r=Fr(n);return {text:{top:t,height:Math.max(0,e.contentHeight-t)},margin:{top:r-e.contentInsetTop,height:Math.max(0,e.pageHeight-r-e.marginBottom)},page:{top:-e.contentInsetTop,height:e.pageHeight}}}function VI(e,t){for(let n=t;n<e.length;n+=1){let r=e[n];if(!Mt(r))return true}return false}function Da(e,t,n){let r=n[e.vertAnchor],o=r.height-t,a;if(e.ySpec==="center"?a=r.top+o/2:e.ySpec==="bottom"||e.ySpec==="outside"?a=r.top+o:e.ySpec?a=r.top:a=r.top+e.yPt,!Number.isFinite(a))return r.top;let i=n.page.top+n.page.height;return Math.max(n.page.top,Math.min(a,i))}function GW(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="tblPr")return t}function GI(e){let t=o=>o.kind==="table"?hc(GW(o)):void 0,n=[],r=[];return e.forEach((o,a)=>{let i=t(o);if(!i){r.push(o);return}let l=e.slice(a+1).find(d=>!t(d));n.push({table:o,float:i,nextBlockId:l?.id??null});}),n.length===0?{flowBlocks:e,floating:n}:{flowBlocks:r,floating:n}}function KW(e){if(e.kind==="table")return e.tableId;if(e.kind==="paragraph")return e.paragraphId}function KI(e,t,n,r,o){let a=[...e],i={text:{left:0,width:r.contentWidth},margin:{left:0,width:r.contentWidth},page:{left:-r.marginLeft,width:r.pageWidth}};for(let l of n){let d=o(l.table,0,0,false).find(g=>g.kind==="table");if(!d)continue;let s=e.find(g=>KW(g)===l.nextBlockId),c=s?s.box.y:t,u={text:{top:c,height:Math.max(0,r.pageHeight-r.storyTop-c)},margin:{top:r.marginTop-r.storyTop,height:Math.max(0,r.pageHeight-r.marginTop-r.marginBottom)},page:{top:-r.storyTop,height:r.pageHeight}},f=Am(l.float,d.box.width,i),m=Da(l.float,d.box.height,u);for(let g of o(l.table,f-d.box.x,m,true))a.push({...g,outOfFlow:true});}return a}var $I=4096,$W=24,UW=1440,YW=new Set(["wrap","vAnchor","hAnchor","xAlign","y","anchorLock"]),UI=["pStyle","framePr","jc","rPr"],XW=["left","center","right","inside","outside"],Bb=e=>e.kind!=="textValue",so=(e,t)=>Bb(e)&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&e.localName===t,Ec=e=>e.children.filter(Bb);function Bc(e,t){let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunk6KA3L3FR_cjs.da?n[0].value:void 0}function qW(e){let t=[{node:e.root,depth:0}],n=0,r=0;for(;t.length;){let{node:o,depth:a}=t.pop();if(++n>$I||a>$W)return null;if(o.kind!=="textValue"){if(so(o,"framePr")&&r++,n+t.length+o.children.length>$I)return null;for(let i of o.children)t.push({node:i,depth:a+1});}}return r}function ZW(e){if(Er(e)==="")return true;let t=false;for(let n of Ec(e))if(!so(n,"pPr")){if(!so(n,"r"))return false;for(let r of Ec(n))if(!so(r,"rPr")){if(!so(r,"t")||r.children.some(Bb))return false;t||=r.children.some(o=>o.kind==="textValue"&&o.value.trim());}}return t}function JW(e){if(e.children.length||e.attributes.some(o=>o.namespaceUri!==chunk6KA3L3FR_cjs.da||!YW.has(o.localName))||new Set(e.attributes.map(o=>o.localName)).size!==e.attributes.length)return null;let t=Bc(e,"wrap"),n=Bc(e,"xAlign"),r=Bc(e,"y")??"0";return t!=="around"&&t!=="none"||Bc(e,"vAnchor")!=="text"||Bc(e,"hAnchor")!=="margin"||!n||!XW.includes(n)||!/^\d{1,4}$/.test(r)||Number(r)>UW?null:{align:n,y:Number(r)/20}}function qI(e){if(!so(e.root,"hdr")||qW(e)!==1)return null;let[t,n]=Ec(e.root);if(t?.kind!=="paragraph"||n?.kind!=="paragraph")return null;let r=Ec(t).filter(l=>so(l,"pPr"));if(r.length!==1)return null;let o=Ec(r[0]);if(!o.every(l=>UI.some(d=>so(l,d)))||UI.some(l=>o.filter(d=>so(d,l)).length>1))return null;let a=o.find(l=>so(l,"framePr")),i=a?JW(a):null;return !i||!ZW(t)?null:{frameId:t.id,anchorId:n.id,...i,parity:i.align==="inside"||i.align==="outside"}}function ZI(e){let t=1/0,n=-1/0;for(let r of e.spans)!(r.box.width>0)||r.text.trim()===""||(t=Math.min(t,r.box.x),n=Math.max(n,r.box.x+r.box.width));return Number.isFinite(t)&&Number.isFinite(n)?{left:t,right:n}:null}var YI=e=>e.kind==="paragraph"?e.props.filter(t=>t.localName==="framePr").length:0,_s=(e,t,n,r)=>e<r&&n<t;function QW(e,t,n){let r=t.y,o=t.y+t.height,a=t.x,i=t.x+t.width,l=d=>_s(d.y,d.y+d.height,r,o)&&_s(d.x,d.x+d.width,a,i);for(let d of e){if(!_s(d.box.y,d.box.y+d.box.height,r,o))continue;if(d.kind!=="paragraph"||d.borders?.length||d.bottomBorder||d.shading)return true;let s=d.paragraphId===n;if(s&&d.marker&&l(d.marker.box))return true;for(let c of d.lines){if(!_s(c.box.y,c.box.y+c.box.height,r,o))continue;let u=ZI(c);if(s&&u&&_s(u.left,u.right,a,i))return true;for(let f of c.drawings??[])if(l(f.paintBounds)||_s(f.x,f.x+f.width,a,i))return true}}return false}function XI(e,t){let n=Math.abs(t%2)===1;return e==="inside"?n?"left":"right":e==="outside"?n?"right":"left":e}function JI(e,t,n,r,o,a){let[i]=t.blocks,l=n.blocks[0];if(t.blocks.length!==1||i?.kind!=="paragraph"||i.paragraphId!==e.frameId||l?.kind!=="paragraph"||l.paragraphId!==e.anchorId||i.lines.length!==1||i.marker||i.borders?.length||i.bottomBorder||i.shading||i.lines[0].drawings?.length||Object.values(i.indent).some(b=>b!==0)||!(r>0)||YI(i)!==1||n.blocks.some(b=>YI(b)>0))return null;let d=i.lines[0],s=ZI(d)??{left:d.contentX,right:d.contentX},c=s.right-s.left;if(c>r)return null;let u=b=>({x:b==="left"?0:b==="right"?r-c:(r-c)/2,y:l.box.y+e.y,width:c,height:i.box.height}),f=u(XI(e.align,o)),m=l.lines[0];if(!m||f.y>=m.box.y+m.box.height||a&&(e.parity?["left","right"]:[XI(e.align,o)]).some(y=>QW(n.blocks,u(y),l.paragraphId)))return null;let g=Fc(i,f.x-s.left,f.y-i.box.y),p=g.lines[0],h={...g,box:f,lines:[{...p,box:{...p.box,x:f.x,width:c}}]};return {...n,blocks:[h,...n.blocks],bottom:Math.max(n.bottom,f.y+f.height)}}var ez=128,tz=3,nz=4096,QI=new WeakMap;function rz(e){let t=QI.get(e);if(t!==void 0)return t;let n=chunkT7RGKBCE_cjs.B(chunk6KA3L3FR_cjs.ra(e));return QI.set(e,n),n}function oz(e){let t=Math.max(1,Math.floor(e)),n=new Map;return {growTo(r){Number.isFinite(r)&&r>t&&(t=Math.floor(r));},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 nC(e,t,n,r,o,a,i,l,d,s=Ye,c,u,f,m,g,p){p?.showFieldCodes&&(r+="|field-codes");let h=p?.revisionAuthorFilter,b=qI(e),y=GO(e),x=zg(e.root),S=b?.parity?{...x,hasPageParity:true}:x,R=oz(l??ez),P=cr(e,s,h),w=GI(P),F=as({numberingIndex:p?.numberingIndex,styleCascade:a,measurer:n},P).listItems,I=rz(e),v,T,k=O=>{let L=_o(S)||y||c||O?.characterStyleValues?O:void 0,H=L?.pageNumber??m?.pageNumber??1,A=c&&L?.contentInsetTop!==void 0&&L.contentInsetBottom!==void 0&&L.storyTop!==void 0?`|hf:${L.contentInsetTop},${L.contentInsetBottom},${L.storyTop}`:"",D=(y?`|frames:${L?.storyTop??m?.storyDistance??""}`:"")+_h(L,S)+(c?`|pn:${H}`:"")+A+(L?.characterStyleValues?`|cs:${Zm(L.characterStyleValues)}`:"");if(D===""){if(v)return v}else {let oe=R.get(D);if(oe)return oe;l===void 0&&_o(S)&&R.growTo(Math.min(nz,H*tz));}let j=0,C=[],M=()=>{let oe=L?.pageNumber??m?.pageNumber??1,ue=m?.pageWidth??t,B=m?.pageHeight??Math.max(1,t),pe=m?.marginLeft??0,Ie=m?.marginRight??0,ye=m?.marginTop??0,tt=m?.marginBottom??0,Ne=Math.max(1,B-ye-tt),ae=L?.contentInsetTop!==void 0&&L.contentInsetBottom!==void 0&&L.storyTop!==void 0?Object.freeze({top:L.contentInsetTop-L.storyTop,height:Math.max(1,B-L.contentInsetTop-L.contentInsetBottom)}):void 0;return Object.freeze({pageNumber:oe,pageWidth:ue,pageHeight:B,marginLeft:pe,marginRight:Ie,marginBottom:tt,contentInsetTop:ye,contentInsetBottom:tt,contentWidth:t,...ae?{verticalMarginFrame:ae}:{},contentHeight:Ne,contentBandHeight:Ne,ownerPartName:e.name,storyKind:e.root.localName==="ftr"?"footer":"header"})},U=c?tp(oe=>np(oe,{measurer:n,producer:r+D+(s===Ye?"":`|rev:${s}`)+(h?`|reviewers:${h.cacheKey}`:""),cache:o,styleCascade:a,...L?{pageContext:L}:{},...d!==void 0?{defaultTabStopPt:d}:{},compatibilityMode:p?.compatibilityMode,displayMode:s,...h?{revisionAuthorFilter:h}:{},...g?{documentProperties:g}:{},...p?.projectLink?{projectLink:p.projectLink}:{},...p?.projectFieldLink?{projectFieldLink:p.projectFieldLink}:{},showFieldCodes:p?.showFieldCodes,inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{},...p?.projectionTokenForParagraph?{projectionTokenForParagraph:p.projectionTokenForParagraph}:{},...p?.projectionTokenForTable?{projectionTokenForTable:p.projectionTokenForTable}:{},...p?.numberingIndex?{numberingIndex:p.numberingIndex}:{}}),p?.numberingIndex,a,s,h):void 0,ne=Object.freeze([]),X,W=w.floating.length>0&&m&&(L?.storyTop!==void 0||m.storyDistance!==void 0)?m:void 0,z=W?w.flowBlocks:P,$=()=>({measurer:n,cache:o,producer:r+D+(s===Ye?"":`|rev:${s}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${j++}`,styleCascade:a,...F?{listItems:F}:{},pageContext:L,...d!==void 0?{defaultTabStopPt:d}:{},compatibilityMode:p?.compatibilityMode,tableNestingOffset:1,displayMode:s,...h?{revisionAuthorFilter:h}:{},...g?{documentProperties:g}:{},...p?.projectLink?{projectLink:p.projectLink}:{},...p?.projectFieldLink?{projectFieldLink:p.projectFieldLink}:{},showFieldCodes:p?.showFieldCodes,...p?.projectionTokenForParagraph?{projectionTokenForParagraph:p.projectionTokenForParagraph}:{},...p?.projectionTokenForTable?{projectionTokenForTable:p.projectionTokenForTable}:{}}),V=pn(p?.compatibilityMode),te=oe=>{C.push(...oe);},Q=oe=>({...$(),hostedStory:U,anchorsWrapText:V,inlineDrawingLayout:c,anchorFrameBase:M,pageContentClip:()=>{let ue=M();return L?.storyTop!==void 0?Object.freeze({x:-ue.marginLeft,y:-L.storyTop,width:ue.pageWidth,height:ue.pageHeight}):Ti(ue)},collectAnchoredDrawings:oe,columnBoxForParagraph:ue=>Object.freeze({x:0,y:ue.y,width:t,height:ue.height}),pageExclusionZones:()=>ne,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}}),Y=(oe,ue)=>{if(ne=Object.freeze([]),c){let B=false;for(let pe=0;pe<ma;pe+=1){C.splice(0,C.length),j=ue,X=zo(oe,0,Math.max(1,t),0,0,Q(te));let Ie=fh(C,c,0,t);if(Ie.length===0){B=true,ne=Ie;break}if(pe>0&&sr(ne)===sr(Ie)){B=true,ne=Ie;break}ne=Ie;}if(!B)throw new Mo(`header/footer exclusion reflow did not converge within ${ma} passes`)}else j=ue,X=zo(oe,0,Math.max(1,t),0,0,$());},de=w.floating.length===0&&b&&z[0]?.id===b.frameId&&z[1]?.id===b.anchorId?z[0]:void 0,J=null,ee=L===void 0;if(de&&!ee&&T===void 0&&k(void 0),b&&de&&(ee||T)){Y([de],0);let oe=X;Y(z.slice(1),j),J=C.length===0?JI(b,oe,X,t,L?.sheetNumber??H,ee):null,ee&&(T=J!==null);}if(J)X=J;else if(y&&m?.storyDistance!==void 0&&!w.floating.length){let oe=new Set(y.flatMap(B=>B.paragraphs.map(pe=>pe.id))),ue=z.filter(B=>!oe.has(B.id));ue.some(B=>B.kind==="paragraph")&&(Y(ue,0),C.length===0&&(J=KO(y,z,X,(B,pe)=>zo(B,0,pe,0,0,$()),m,L?.storyTop??m.storyDistance))),J?X=J:Y(z,0);}else Y(z,0);if(W){let oe=L?.storyTop??(e.root.localName==="ftr"?W.pageHeight-W.storyDistance-X.bottom:W.storyDistance),ue={...W,contentWidth:t,storyTop:oe};X={blocks:KI(X.blocks,X.bottom,w.floating,ue,(B,pe,Ie,ye)=>zo([B],pe,pe+Math.max(1,t),Ie,0,c?Q(ye?te:()=>{}):$()).blocks),bottom:X.bottom};}X=DI(e,X,t,m,a?.fixedParagraphSpacing);let re={partName:e.name,part:e,contentKey:I,...p?.projectionEpoch?{projectionEpoch:p.projectionEpoch}:{},fragments:X.blocks,flowHeight:X.bottom,pageFieldNeeds:S,...C.length>0?{anchoredDrawings:Object.freeze([...C])}:{},withPageContext:oe=>!_o(S)&&!y&&!re.anchoredDrawings?.length&&!oe.characterStyleValues&&!L?.characterStyleValues?v??re:k({...oe,characterStyleValues:oe.characterStyleValues??L?.characterStyleValues})};return D===""?v=re:R.set(D,re),re};return k(i)}function Xi(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 Wh(u,f,r),f;let m=u.pageFieldProjector;return {...f,pageFieldProjector:g=>{let p=m(g);return {...p,box:o(p.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},...u.continuationNotice?{continuationNotice:{...u.continuationNotice,box:o(u.continuationNotice.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},l=a(e.header),d=a(e.footer),s=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...d?{footer:d}:{},...s?{footnotes:s}:{},...c?{endnotes:c}:{}}}var eC=new WeakMap;function az(e){let t=eC.get(e);if(t!==void 0)return t;let n=[];Cg(e,o=>{let a=o.marker;a&&n.push(ie([o.paragraphId,a.text,a.numFmt,String(a.level)]));});let r=n.length===0?"":`|list:${ie(n)}`;return eC.set(e,r),r}var tC=new WeakMap;function iz(e){let t=tC.get(e);if(t!==void 0)return t;let n=[];vl(e,o=>{n.push(Oc(o.resource)),o.kind==="anchoredDrawing"&&o.textboxStory?.clippedResourceToken&&n.push(`clip:${o.textboxStory.clippedResourceToken}`);});let r=n.length===0?"":`!${ie(n)}`;return tC.set(e,r),r}function Eb(e,t){return ie([e,String(t.flowHeight),t.contentKey,t.projectionEpoch??"",iz(t),az(t)])}function rC(e,t,n){if(!e)return "";let r=(o,a)=>ie([...a].map(([i,l])=>Eb(`${o}${i}`,l)).sort());return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+ie([r("h",e.headers),r("f",e.footers),Bs(e)])}function oC(e){return e.root.children.some(t=>t.kind!=="textValue"&&t.namespaceUri===chunk6KA3L3FR_cjs.da&&t.localName==="background")}function qi(e,t,n=[]){return {id:e,kind:t==="p"?"paragraph":t==="pPr"?"paragraphProperties":"generic",namespaceUri:chunk6KA3L3FR_cjs.da,localName:t,prefix:"w",namespaceBindings:[],attributes:[],children:n}}function lz(e,t){for(let n of e?.children??[]){if(n.kind==="textValue"||n.localName!=="style"||Ir(n,"type")!=="paragraph")continue;let r=Cr(n,"name");if(r&&Ir(r,"val")?.toLowerCase()===t)return Ir(n,"styleId")??t}return t==="header"?"Header":"Footer"}function aC(e){let t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new Map,a,i=(d,s,c)=>{if(d&&s==="footer")return d;let u=d&&t.get(d);if(u)return u;let f=e();a!==f&&(o.clear(),a=f);let m=`${s}-${c}`;if(!d&&o.has(m))return o.get(m);let g=d?.name??`/__layout/background-${m}.xml`,p=`${d?.id??g}:background-reserve`,h=new Set,b=[];if(!d){let S={...qi(`${p}:style`,"pStyle"),kind:"generic",attributes:[{kind:"wmlVal",namespaceUri:chunk6KA3L3FR_cjs.da,localName:"val",prefix:"w",value:lz(f,s)}]},R=qi(`${p}:initial`,"p",[qi(`${p}:pPr`,"pPr",[S])]);b.push(R),h.add(R.id);}if(s==="header"){let S=qi(`${p}:terminal`,"p");h.add(S.id),b.push(qi(`${p}:container`,"sdt",[qi(`${p}:content`,"sdtContent",[S])]));}let y=d?.root??qi(`${p}:root`,s==="header"?"hdr":"ftr"),x={id:d?.id??g,name:g,contentType:d?.contentType??`application/vnd.openxmlformats-officedocument.wordprocessingml.${s}+xml`,root:{...y,children:[...y.children,...b]}};return n.set(x,{original:d,reserveIds:h}),d?t.set(d,x):o.set(m,x),x},l=d=>{let s=d.part&&n.get(d.part);if(!s)return d;let c=r.get(d);if(c)return c;let u={...d,part:s.original,fragments:d.fragments.filter(f=>f.kind!=="paragraph"||!s.reserveIds.has(f.paragraphId)),withPageContext:f=>l(d.withPageContext(f))};return r.set(d,u),u};return {variantPart:i,authoredStory:l,isImplicitPart:d=>n.has(d)&&!n.get(d).original}}var sz="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",dz="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";function cz(e){let t=new Map;for(let n of e.relationships.get(e.mainDocumentPart)??[]){if(n.type!==sz&&n.type!==dz)continue;let r=chunk6KA3L3FR_cjs.E(n);r.mode!=="Internal"||!r.target.ok||t.has(r.target.partName)||t.set(r.target.partName,n.id);}return t}function uz(e){return e.relationships.get(e.mainDocumentPart)??e.relationships}var fz=8;function Lb(e,t){return e.root.localName==="ftr"?t.footerDistance:t.headerDistance}function zte(e){let{view:t,measurer:n,producer:r,cache:o,styleCascade:a,numberingIndex:i,defaultTabStopPt:l,compatibilityMode:d,displayMode:s,revisionAuthorFilter:c,inlineDrawingLayoutForPart:u,drawingLayoutTokenForPart:f,drawingTokenForParagraphForPart:m,linkProjectors:g,projectFieldLink:p,showFieldCodes:h}=e,b=aC(()=>t.stylesRoot()),y=new WeakMap,x=new WeakMap,S=(T,k,O)=>{if(k.rId===O)return k;let L=x.get(T);L||(L=new WeakMap,x.set(T,L));let H=L.get(k),A=H?.get(O);if(A)return A;let D={...k,rId:O,withPageContext:j=>S(T,k.withPageContext(j),O)};return H||(H=new Map,L.set(k,H)),H.set(O,D),D},R=new Map,P=null,w=(T,k,O)=>(P!==k&&(P=k,R=cz(T)),R.get(O)),F=(T,k,O)=>{let L=g.epochForPart(T.name),H=c?.cacheKey??"",A=l?.(),D=d?.(),j=!b.isImplicitPart(T),C=j?f?.(T.name)??"":"",M=ss(O),_=i?.(),U=a?.(),ne=g.projectLinkForPart(T.name),X=y.get(T),W=X?.find(te=>te.width===k&&te.pageHeight===O.height&&te.marginTop===M.top&&te.marginBottom===M.bottom&&te.marginLeft===O.margin.left&&te.marginRight===O.margin.right&&te.storyDistance===Lb(T,O));if(W&&W.producer===r&&W.projectionEpoch===L&&W.revisionAuthorFilterKey===H&&W.defaultTabStopPt===A&&W.compatibilityMode===D&&W.drawingLayoutToken===C&&W.numberingIndex===_&&W.styleCascade===U)return W.story;let z=nC(T,k,n,r,o,U,void 0,void 0,A,s,j?u?.(T.name):void 0,j&&m?te=>m(T.name,te):void 0,void 0,{pageNumber:1,pageWidth:O.width,pageHeight:O.height,marginLeft:O.margin.left,marginRight:O.margin.right,marginTop:M.top,marginBottom:M.bottom,storyDistance:Lb(T,O)},t.documentProperties(),{compatibilityMode:D,..._?{numberingIndex:_}:{},projectLink:ne,...p?{projectFieldLink:p}:{},showFieldCodes:h,projectionEpoch:L,projectionTokenForParagraph:te=>g.tokenForParagraphForPart(T.name,te),projectionTokenForTable:te=>g.tokenForTableForPart(T.name,te),...c?{revisionAuthorFilter:c}:{}}),$={width:k,pageHeight:O.height,marginTop:M.top,marginBottom:M.bottom,marginLeft:O.margin.left,marginRight:O.margin.right,storyDistance:Lb(T,O),producer:r,projectionEpoch:L,revisionAuthorFilterKey:H,defaultTabStopPt:A,compatibilityMode:D,drawingLayoutToken:C,numberingIndex:_,styleCascade:U,story:z},V=(X??[]).filter(te=>te!==W);return V.push($),V.length>fz&&V.shift(),y.set(T,V),z},I=(T,k,O,L,H)=>{let A=oC(t.part());if(!O||!A&&O.headers.size===0&&O.footers.size===0)return;let D=H.width-H.margin.left-H.margin.right,j=(C,M,_)=>{let U=new Map,ne=A?["default","first","even"]:[...C.keys()];for(let X of ne){let W=C.get(X),z=A?b.variantPart(W,_,X):W,$=M?.get(X),V=$?.partName===z.name?$.rId:w(T,k,z.name),te=b.authoredStory(F(z,D,H));U.set(X,V?S(k,te,V):te);}return U};return {titlePage:O.titlePage,evenAndOddHeaders:O.evenAndOddHeaders,headers:j(O.headers,L?.headers,"header"),footers:j(O.footers,L?.footers,"footer")}},v=()=>{let T=t.currentPackage(),k=uz(T),O=ay(t.part(),s,c),L=MT(t.part(),s,c),H=t.headerFooterPartsBySection(),A=t.headerFooterResolutionBySection?.()??chunk6KA3L3FR_cjs.ce(T);return O.map((D,j)=>{let C=L[j]??j;return I(T,k,H[C],A[C],wa(D.properties))})};return {sectionFurniture:v,furniture(){let T=v();return T[T.length-1]}}}function mz(e,t,n,r,o){let a=cr(e,r,o);if(!n)return t.map(l=>{if(l.blockStart===l.blockEndExclusive)return;let d=a[l.blockEndExclusive-1];return d?.kind==="paragraph"?Tn(d):void 0});let i=[];for(let l of a){if(l.kind!=="paragraph")continue;let d=Tn(l);d&&i.push(d);}for(;i.length<t.length;)i.push(void 0);return i}function qte(e){let t=e.view.currentPackage(),n=chunk6KA3L3FR_cjs.bg(t,"footnote"),r=chunk6KA3L3FR_cjs.bg(t,"endnote");if(!n&&!r)return;let o=e.view.part();if(chunk6KA3L3FR_cjs.cg(o).length===0)return;let a=chunk6KA3L3FR_cjs.Sf(t),i=chunk6KA3L3FR_cjs.Tf(a),l=chunk6KA3L3FR_cjs.Uf(a),d=chunk6KA3L3FR_cjs.Vf(void 0,i),s=chunk6KA3L3FR_cjs.Wf(void 0,l),c=iy(o,e.displayMode,e.revisionAuthorFilter),u=mz(o,c.sections,c.truncated,e.displayMode,e.revisionAuthorFilter),f=c.sections.map((h,b)=>chunk6KA3L3FR_cjs.Vf(chunk6KA3L3FR_cjs.Qf(u[b]),i)),m=c.sections.map((h,b)=>chunk6KA3L3FR_cjs.Wf(chunk6KA3L3FR_cjs.Rf(u[b]),l)),g=e.inlineDrawingLayoutForPart?h=>{let b=e.inlineDrawingLayoutForPart(h);if(b)return {inlineDrawingLayout:b,...e.drawingTokenForParagraphForPart?{drawingTokenForParagraph:y=>e.drawingTokenForParagraphForPart(h,y)}:{}}}:void 0,p=[n,r];return {footnotesPart:n,endnotesPart:r,footnotePropsBySection:f.length>0?f:[d],endnotePropsBySection:m.length>0?m:[s],documentFootnoteProps:d,documentEndnoteProps:s,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade?.(),numberingIndex:e.numberingIndex?.(),defaultTabStopPt:e.defaultTabStopPt,compatibilityMode:e.compatibilityMode,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,projectLinkForPart:e.linkProjectors.projectLinkForPart,linkRelsEpoch:p.map(h=>h?e.linkProjectors.epochForPart(h.name):"").join("\0"),...e.projectFieldLink?{projectFieldLink:e.projectFieldLink}:{},showFieldCodes:e.showFieldCodes,projectionTokenForParagraphForPart:e.linkProjectors.tokenForParagraphForPart,projectionTokenForTableForPart:e.linkProjectors.tokenForTableForPart,projectionEpoch:p.map(h=>h?e.linkProjectors.epochForPart(h.name):"").join("\0"),...g?{drawingsForPart:g}:{},...g&&e.drawingLayoutEpochForPart?{drawingLayoutEpoch:p.map(h=>h?e.drawingLayoutEpochForPart(h.name):"").join("\0")}:{}}}function Zte(e,t,n){return chunk6KA3L3FR_cjs.Hf(e.currentPackage(),t,n)}var pz=new TextEncoder,gz=512,_a=Object.freeze({title:"field-projected",creator:"field-projected",subject:"field-projected",keywords:"field-projected",lastModifiedBy:"field-projected",description:"field-projected",company:"reserved",manager:"reserved"}),hz=Object.freeze({title:_a.title,creator:_a.creator,subject:_a.subject,keywords:_a.keywords,lastModifiedBy:_a.lastModifiedBy,description:_a.description}),Nb=Object.freeze(Object.keys(hz)),iC=Object.freeze({title:"doc-property:title",creator:"doc-property:creator",subject:"doc-property:subject",keywords:"doc-property:keywords",lastModifiedBy:"doc-property:lastModifiedBy",description:"doc-property:description"}),lC=new WeakMap;function yz(e){let t=lC.get(e);if(t)return t;let n=[],r=[e],o=[e];for(;o.length>0;){let d=o.pop();if(d!==e&&d.kind==="paragraph"&&r.push(d),d.kind==="hyperlink"&&n.push(d),d.kind!=="textValue")for(let s=d.children.length-1;s>=0;s-=1)o.push(d.children[s]);}let a=new Set;for(let d of r){let s=ts(d,[],void 0,void 0,void 0,void 0,"all-markup",void 0,void 0,void 0,void 0,iC),c=new Set(s.map(u=>u.text));for(let u of Nb)c.has(iC[u])&&a.add(u);}let i=Nb.filter(d=>a.has(d)),l=Object.freeze({links:Object.freeze(n),documentProperties:Object.freeze(i)});return lC.set(e,l),l}function sC(e){return chunk6KA3L3FR_cjs.a(pz.encode(ie(e)))}var dC=new WeakMap;function cC(e,t){let n=new WeakMap,r=new WeakMap,o=l=>{let d=e.packageRevision(),s=e.currentPackage(),c=dC.get(e);(!c||c.revision!==d||c.pkg!==s)&&(c={revision:d,pkg:s,epochs:new Map},dC.set(e,c));let u=c.epochs.get(l);if(u!==void 0)return u;let f=["story-projection-part:v1",l];f.push(ie(Object.keys(_a).map(p=>`${p}:${_a[p]}`)));for(let p of s.relationships.get(l)??[])f.push(ie([p.id,p.type,p.rawTarget,p.targetMode,String(p.order)]));for(let p of s.externalTargets)p.ownerPart===l&&f.push(ie([p.id,p.type,p.rawTarget,p.sinkSafe?"1":"0"]));let m=e.documentProperties();for(let p of Nb)f.push(ie([p,m[p]??""]));let g=`story-projection-part:${sC(f)}`;return c.epochs.size<gz&&c.epochs.set(l,g),g},a=(l,d)=>{let s=yz(d);if(s.links.length===0&&s.documentProperties.length===0)return "";let c=t(l),u=o(l),f=n.get(d),m=f?.get(c);if(m?.epoch===u)return m.token;let g=e.documentProperties(),p=["story-projection:v1"];for(let y of s.links){let x=c(y);p.push(x?ie([x.id,x.kind,x.href??"",x.anchor??"",x.tooltip??""]):"no-link");}for(let y of s.documentProperties)p.push(ie([y,g[y]??""]));let h=`story-projection:${sC(p)}`,b=f??new WeakMap;return b.set(c,{epoch:u,token:h}),f||n.set(d,b),h};return Object.freeze({tokenForParagraphForPart:a,tokenForTableForPart:(l,d)=>{let s=t(l),c=o(l),u=r.get(d),f=u?.get(s);if(f?.epoch===c)return f.token;let m=pi(d,p=>a(l,p)),g=u??new WeakMap;return g.set(s,{epoch:c,token:m}),u||r.set(d,g),m},epochForPart:o})}var bz=512;function uC(e){return t=>{if(t.kind==="textValue")return null;let n=chunk6KA3L3FR_cjs.Rc(t,e);return {id:t.id,kind:n.kind,href:n.href,...n.anchor!==void 0?{anchor:n.anchor}:{},...n.tooltip!==void 0?{tooltip:n.tooltip}:{}}}}function ane(e){let t=uC(o=>e.relationshipTarget(o)),n=new Map,r=o=>{let a=n.get(o);if(a)return a;let i=uC(l=>chunk6KA3L3FR_cjs.Hf(e.currentPackage(),o,l));return n.size<bz&&n.set(o,i),i};return Object.freeze({projectLink:t,projectLinkForPart:r,...cC(e,r)})}var xz=4096;function Sz(e){let t=e.tooltip!==null?{tooltip:chunk6KA3L3FR_cjs.q(e.tooltip)}:{};if(e.target!==null){let o=chunk6KA3L3FR_cjs.L(e.target);if(o.ok&&o.href.length>0&&chunk6KA3L3FR_cjs.x(o.href).ok){let i=e.anchor!==null&&!o.href.includes("#")?chunk6KA3L3FR_cjs.L(chunk6KA3L3FR_cjs.q(e.anchor)):null;return {kind:"external",href:i&&i.ok&&i.href.length>0?`${o.href}#${i.href}`:o.href,authored:e.target,...e.anchor!==null?{anchor:chunk6KA3L3FR_cjs.q(e.anchor)}:{},...t}}if(e.anchor===null)return null}if(e.anchor===null)return null;let n=chunk6KA3L3FR_cjs.q(e.anchor),r=chunk6KA3L3FR_cjs.L(n);return {kind:"internal",href:r.ok&&r.href.length>0?`#${r.href}`:null,authored:e.anchor,anchor:n,...t}}function dne(){let e=new Map,t=new Map,n=0;return {project(r){let o=Sz(r);if(!o)return null;let a=`${r.target??""}\0${r.anchor??""}\0${r.tooltip??""}`,i=e.get(a);if(i===void 0){if(e.size>=xz)return null;i=`field-hyperlink:${++n}`,e.set(a,i),t.set(i,Object.freeze({id:i,paragraphId:"",start:0,end:0,text:"",kind:o.kind,href:o.href,authored:o.authored,...o.anchor!==void 0?{anchor:o.anchor}:{},...o.tooltip!==void 0?{tooltip:o.tooltip}:{}}));}return {id:i,kind:o.kind,href:o.href,...o.anchor!==void 0?{anchor:o.anchor}:{},...o.tooltip!==void 0?{tooltip:o.tooltip}:{}}},linkById:r=>t.get(r)??null,clear(){e.clear(),t.clear();}}}function Lc(e){return e?si(e.val,e.widthPt):0}function fp(e,t,n){return e==="page"?t?.spacePt??0:Math.max(0,n-(t?.spacePt??0)-Lc(t))}function mp(e,t,n){if(!e||e.display==="firstPage"&&!n||e.display==="notFirstPage"&&n)return;let r=Lc(e.top),o=Lc(e.left),a=Lc(e.bottom),i=Lc(e.right),l=ss(t),d=fp(e.offsetFrom,e.top,l.top),s=fp(e.offsetFrom,e.left,t.margin.left),c=t.height-fp(e.offsetFrom,e.bottom,l.bottom),u=t.width-fp(e.offsetFrom,e.right,t.margin.right),f=u-s,m=c-d;if(f<=0||m<=0)return;let g=[];if(e.top&&g.push({side:"top",edge:e.top,box:{x:s,y:d,width:f,height:r}}),e.bottom&&g.push({side:"bottom",edge:e.bottom,box:{x:s,y:c-a,width:f,height:a}}),e.left&&g.push({side:"left",edge:e.left,box:{x:s,y:d,width:o,height:m}}),e.right&&g.push({side:"right",edge:e.right,box:{x:u-i,y:d,width:i,height:m}}),g.length!==0)return {zOrder:e.zOrder,display:e.display,strokes:g}}var Pz="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Rz="http://schemas.microsoft.com/office/word/2010/wordml",wz="http://schemas.microsoft.com/office/word/2012/wordml";function kz(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===Pz)return t.value}}function js(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function Zi(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function Go(e,t){let n=Zi(e,t);return n?kz(n):void 0}function Nc(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function pp(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(r==="docPartList")return "buildingBlockGallery";if(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===Rz)return "checkbox";if(r==="repeatingSection"&&o===wz)return "repeatingSection"}return "richText"}function fC(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(chunk6KA3L3FR_cjs.rc(o)&&r<chunk6KA3L3FR_cjs.qc){let a=t(chunk6KA3L3FR_cjs.uc(o),r+1);if(a)return a}}return null};return t(chunk6KA3L3FR_cjs.uc(e),0)??"inline"}function Hs(e){let t=mC.get(e);if(t!==void 0)return t;let n=Tz(e);return gp!==null&&gp===n?n=gp:gp=n,mC.set(e,n),n}var gp=null,mC=new WeakMap,pC=new WeakMap;function Tz(e){let t=(n,r)=>{if(n.kind==="textValue")return "";let o=n.kind==="paragraph"||n.kind==="table"||chunk6KA3L3FR_cjs.rc(n);if(o){let i=pC.get(n);if(i!==void 0&&i.depth===r)return i.token}let a;if(chunk6KA3L3FR_cjs.rc(n)){if(r>=chunk6KA3L3FR_cjs.qc)return "";let i=js(n),l=[n.id,Go(i,"alias")??"",Go(i,"tag")??"",Nc(Go(i,"lock")),pp(i),Zi(i,"showingPlcHdr")?"1":"0",Zi(i,"dataBinding")?"1":"0"].join(":"),d=chunk6KA3L3FR_cjs.uc(n).map(s=>t(s,r+1)).filter(s=>s.length>0);a=[l,...d].join("|");}else a=n.children.map(i=>t(i,r)).filter(i=>i.length>0).join("|");return o&&pC.set(n,{depth:r,token:a}),a};return t(e.root,0)}function hC(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 Ab=new WeakMap,gC=new WeakMap;function yC(e){if(e.length===1)return Ac(e[0]);let t=Ab.get(e[0]);if(t&&hp(t.parts,e))return t.index;let n=e.map(s=>Ac(s)),r=gC.get(n[0]);if(r&&hp(r.indexes,n))return Ab.set(e[0],{parts:e,index:r.index}),r.index;let o=[],a=new Set,i=new Set;for(let s of n){for(let c of s.controls)o.push(c);for(let c of s.neededBlockIds)a.add(c);for(let c of s.neededParagraphIds)i.add(c);}let l=`${[...a].sort().join(",")};${[...i].sort().join(",")}`,d={controls:o,neededBlockIds:a,neededParagraphIds:i,neededToken:l};return gC.set(n[0],{indexes:n,index:d}),Ab.set(e[0],{parts:e,index:d}),d}var Db=new WeakMap;function hp(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 bC=new WeakMap;function vz(e){for(let t of chunk6KA3L3FR_cjs.lc(e))if(t.root.kind!=="textValue"){for(let n of t.root.children)if(n.kind!=="textValue")return n}return null}function Ac(e){let t=Db.get(e);if(t!==void 0)return t;let n=Oz(e),r=vz(e),o=r?bC.get(r):void 0;if(o&&hp(o.lists,n))return Db.set(e,o.index),o.index;let a=[];for(let s of n)for(let c of s)a.push(c);let i=new Set,l=new Set;for(let s of a){for(let c of s.blockIds)i.add(c);s.paragraphId!==void 0&&l.add(s.paragraphId);}let d={controls:a,neededBlockIds:i,neededParagraphIds:l,neededToken:`${[...i].sort().join(",")};${[...l].sort().join(",")}`};return r&&bC.set(r,{lists:n,index:d}),Db.set(e,d),d}var Fz=Object.freeze([]);function Oz(e){let t=[],n=(i,l,d=0)=>{for(let s of i){if(s.kind==="paragraph"||s.kind==="table"){l.push(s.id);continue}let c=chunk6KA3L3FR_cjs.kc(s);if(c!==null&&d<chunk6KA3L3FR_cjs.qc){n(c,l,d+1);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&n(s.children,l,d);}},r=(i,l,d,s,c)=>{if(!(s>=chunk6KA3L3FR_cjs.la)){for(let u of i)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunk6KA3L3FR_cjs.rc(u)){let f=chunk6KA3L3FR_cjs.cf(l).spanOf(u);if(!f)continue;let m=js(u),g=Nc(Go(m,"lock")),p=[...c,g];r(chunk6KA3L3FR_cjs.uc(u),l,d+1,s+1,p),t.push({control:u,nestingDepth:d,lockStack:p,level:"inline",paragraphId:l.id,range:f,blockIds:[]});continue}chunk6KA3L3FR_cjs.na(u)&&r(u.children,l,d,s+1,c);}}},o=(i,l,d,s=0)=>{for(let c of i){if(c.kind==="textValue")continue;if(c.kind==="paragraph"){r(c.children,c,l,0,d);continue}if(c.kind==="table"){for(let b of c.children)b.kind==="tableRow"&&o([b],l,d,s);continue}if(c.kind==="tableRow"){for(let b of c.children)b.kind==="tableCell"?o(b.children,l,d,s):chunk6KA3L3FR_cjs.rc(b)&&o([b],l,d,s);continue}if(!chunk6KA3L3FR_cjs.rc(c)){let b=chunk6KA3L3FR_cjs.kc(c);b!==null&&s<chunk6KA3L3FR_cjs.qc&&o(b,l,d,s+1);continue}if(l>=chunk6KA3L3FR_cjs.qc)continue;let u=js(c),f=Nc(Go(u,"lock")),m=[...d,f],g=fC(c),p=chunk6KA3L3FR_cjs.kc(c)??[];if(g==="inline"){o(p,l+1,m,s+1);continue}let h=[];n(p,h),t.push({control:c,nestingDepth:l,lockStack:m,level:g,blockIds:h}),o(p,l+1,m,s+1);}},a=[];for(let i of chunk6KA3L3FR_cjs.lc(e))if(i.root.kind!=="textValue")for(let l of i.root.children){if(l.kind==="textValue")continue;let d=xC.get(l);if(d!==void 0){a.push(d);continue}let s=t.length;o([l],0,[]);let c=t.length===s?Fz:Object.freeze(t.slice(s));xC.set(l,c),a.push(c);}return a}var xC=new WeakMap,_b=1<<20,SC=new WeakMap,PC=null,RC=0;function Iz(e){return e!==PC&&(PC=e,RC+=1),RC}function Cz(e,t,n,r){let o=SC.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],l=e.index*_b,d=0,s=0,c=m=>d===0&&s===0?m:{x:m.x+d,y:m.y+s,width:m.width,height:m.height},u=(m,g)=>{if(g.kind==="paragraph"){t.neededBlockIds.has(g.paragraphId)&&(a.push({pageIndex:m,blockId:g.paragraphId,box:c(ws(g))}));let p=t.neededParagraphIds.has(g.paragraphId);for(let h of g.lines){let b=l;if(l=Math.min(l+1,e.index*_b+_b-1),!p)continue;let y=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0)),x=[];for(let S of h.spans)x.push({pageIndex:m,paragraphId:S.range.paragraphId,start:S.range.start,end:S.range.end,line:b,box:{x:S.box.x+d,y:S.box.y+h.leading+s,width:S.box.width,height:y}});for(let S of h.drawings??[])x.push({pageIndex:m,paragraphId:S.paragraphId,start:S.start,end:S.start+1,line:b,box:c(S.paintBounds)});h.drawings?.length&&x.sort((S,R)=>S.start-R.start||S.end-R.end);for(let S of x)i.push(S);}return}t.neededBlockIds.has(g.tableId)&&(a.push({pageIndex:m,blockId:g.tableId,box:c(g.box)}));for(let p of g.rows)if(!p.isHeaderRepeat)for(let h of p.cells)for(let b of h.blocks)u(m,b);};for(let m of e.fragments)u(e.index,m);for(let m of [e.header,e.footer])if(m){d=m.box.x-e.contentBox.x,s=m.box.y-e.contentBox.y;for(let g of m.fragments)u(e.index,g);}d=0,s=0;let f={neededStamp:n,blocks:a,spans:i};return SC.set(e,f),f}function Mz(e,t,n){let r=Iz(t.neededToken),o=new Map,a=new Map,i=new Set;for(let l of e.pages){let d=Cz(l,t,r);for(let s of d.blocks){let c=o.get(s.blockId);c?c.push(s):o.set(s.blockId,[s]);}for(let s of d.spans){let c=a.get(s.paragraphId);c?(s.start<c[c.length-1].start&&i.add(s.paragraphId),c.push(s)):a.set(s.paragraphId,[s]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function Bz(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 l=r.get(i.pageIndex);l?l.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let l=qu(i);return l?[{pageIndex:a,box:l}]:[]})}function Ez(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),l=0,d=o.length;for(;!i&&l<d;){let s=l+(d-l>>1);(t.start===t.end?o[s].end<t.start:o[s].end<=t.start)?l=s+1:d=s;}i&&(l=0);for(let s=l;s<o.length;s+=1){let c=o[s];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 s=[],c=new Set;for(let u=l;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;if(c.add(f.pageIndex),f.start===f.end&&f.start===t.start&&f.box.width>0){if(s.push({pageIndex:f.pageIndex,box:f.box}),!i)break;continue}let m=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(s.push({pageIndex:f.pageIndex,box:{x:m,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(s.length>0)return s}return [...a.entries()].sort(([s],[c])=>s-c).flatMap(([,s])=>{let c=qu(s.boxes);return c?[{pageIndex:s.pageIndex,box:c}]:[]})}var wC=new WeakMap;function Lz(e){let t=wC.get(e);if(t!==void 0)return t;let n=js(e),r=Go(n,"alias"),o=Go(n,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:pp(n),placeholder:Zi(n,"showingPlcHdr")!==void 0,bound:Zi(n,"dataBinding")!==void 0};return wC.set(e,a),a}function Nz(e,t,n){let r=e.level==="inline"&&e.paragraphId&&e.range?Ez(e.paragraphId,e.range,t):Bz(e.blockIds,t);return {...Wb(e),fragments:r}}function Az(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 Dz(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&&Az(e.fragments,t.fragments)}function Ws(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(!Dz(e[n],t[n]))return false;return true}function jb(e,t){return {...t,revision:e.revision,pages:e.pages}}var kC=new WeakMap;function Hb(e,t,n=Hs(t),r){let o=hC(e,t);if(o.length>1){let f=o.map(m=>Hs(m));n=f.some(m=>m!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(g=>g.contentControls!==void 0&&g.contentControls.length>0);if(!f&&e.controlContextToken===n&&Ws(e.contentControls,[]))return e;let m=f?e.pages.map(g=>g.contentControls!==void 0&&g.contentControls.length>0?{...g,contentControls:[]}:g):e.pages;return {...e,pages:m,contentControls:[],controlContextToken:n}}let a=yC(o),i=Mz(e,a),l=a.controls.map(f=>Nz(f,i)),d=new Map;for(let f of l)for(let m of f.fragments){let g=d.get(m.pageIndex),p={...f,fragments:[m]};g?g.push(p):d.set(m.pageIndex,[p]);}if(e.controlContextToken===n&&Ws(e.contentControls,l)&&e.pages.every(f=>Ws(f.contentControls,d.get(f.index)??[])))return e;let s=false,c=e.pages.map(f=>{let m=d.get(f.index)??[];if(Ws(f.contentControls,m)||m.length===0&&!f.contentControls)return f;s=true;let g=kC.get(f);if(g&&Ws(g.controls,m))return g.wrapped;let p={...f,contentControls:m};return kC.set(f,{controls:m,wrapped:p}),p}),u=s?c:e.pages;return u===e.pages&&e.controlContextToken===n&&Ws(e.contentControls,l)?e:{...e,pages:u,contentControls:l,controlContextToken:n}}function Cne(e,t){return Ac(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):TC(r.control).some(o=>t.has(o)):true).map(Wb)}function TC(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunk6KA3L3FR_cjs.rc(o)){n(chunk6KA3L3FR_cjs.uc(o));continue}n(o.children);}};return n(chunk6KA3L3FR_cjs.uc(e)),t}function Mne(e,t){let n=null;for(let r of Ac(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||TC(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?Wb(n):null}function Wb(e){let t=Lz(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:Bg(e.lockStack),placeholder:t.placeholder,bound:t.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var _z=.25,jz=.5;function vC(e,t,n){let r=n?n.offsetPt:e.style.fontSizePt*_z,o=n?n.thicknessPt:jz;return {x:e.box.x,y:Math.max(t.box.y,t.box.y+t.baseline-da(e.style)-r),width:e.box.width,height:o}}var Dc=chunk6KA3L3FR_cjs.ec,yp=512,FC=6;function Hz(e,t){return `note-${e}-${t}`}function Vne(e){if(!e)return [];let t=[];for(let n of chunk6KA3L3FR_cjs.gc(e.root)){if(t.length>=Dc)break;chunk6KA3L3FR_cjs.Zb(n)&&t.push(n);}return t}function Wz(e,t){if(e){for(let n of chunk6KA3L3FR_cjs.gc(e.root))if(chunk6KA3L3FR_cjs.Yb(n)===t)return n}}function IC(e,t,n){let r=chunk6KA3L3FR_cjs.Wb(e),o=chunk6KA3L3FR_cjs.Xb(e);if(!r||o===null)return null;let a=chunk6KA3L3FR_cjs.Nb(r,o),i=n.displayMode??Ye,l=is(e,i,n.revisionAuthorFilter),d=Hz(r,o),s=0,c=Math.max(1,t),u=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,f=chunk6KA3L3FR_cjs.Yb(e)==="separator"||chunk6KA3L3FR_cjs.Yb(e)==="continuationSeparator",m={...n.noteMarks??{marks:new Map},activeNoteKey:a,...f?{measureSeparatorMarkers:true}:{}},g=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,p=(n.ownerPartName?n.projectLinkForPart?.(n.ownerPartName):void 0)??n.projectLink,h=as({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade,measurer:n.measurer},l).listItems,b=zo(l,0,c,0,0,{measurer:n.measurer,cache:n.cache,producer:n.producer+(f?"|separator-metrics":"")+(n.showFieldCodes?"|field-codes":"")+(i===Ye?"":`|rev:${i}`)+(n.revisionAuthorFilter?`|reviewers:${n.revisionAuthorFilter.cacheKey}`:"")+`|${a}`,nextLineId:()=>`${d}-line-${s++}`,styleCascade:n.styleCascade,...h?{listItems:h}:{},noteMarks:m,...p?{projectLink:p}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.ownerPartName&&n.projectionTokenForParagraphForPart?{projectionTokenForParagraph:R=>n.projectionTokenForParagraphForPart(n.ownerPartName,R)}:{},...n.ownerPartName&&n.projectionTokenForTableForPart?{projectionTokenForTable:R=>n.projectionTokenForTableForPart(n.ownerPartName,R)}:{},...n.refFields?{refFields:n.refFields}:{},displayMode:i,compatibilityMode:n.compatibilityMode,tableNestingOffset:1,...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...g?{inlineDrawingLayout:g.inlineDrawingLayout,...g.drawingTokenForParagraph?{drawingTokenForParagraph:g.drawingTokenForParagraph}:{}}:{},...n.revisionAuthorFilter?{revisionAuthorFilter:n.revisionAuthorFilter}:{}}),y=b.blocks,x=b.bottom,S;if(y.length>yp){y=y.slice(0,yp);let R=y[y.length-1];x=R?R.box.y+R.box.height:0,S="note-fragment-limit";}if(x>u){let R=[],P=0;for(let w of y){let F=w.box.y+w.box.height;if(F>u+.001&&R.length>0)break;R.push(w),P=F;}y=R,x=P,S=S??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunk6KA3L3FR_cjs.Yb(e),fragments:y,flowHeight:x,...S?{fallbackReason:S}:{}}}function OC(e,t,n,r){if(!e)return null;let o=chunk6KA3L3FR_cjs.ic(e.root,t);return o?IC(o,n,{...r,ownerPartName:e.name}):null}function Lr(e,t,n,r,o){if(!o)return OC(e,t,n,r);let a=`${e?.name??"none"}\0${t}\0${n}`,i=o.get(a);if(i!==void 0)return i;let l=OC(e,t,n,r);return o.set(a,l),l}function zz(e,t){return "single"}function Vz(e,t,n){let r=is(e,t,n);if(r.length===0)return true;for(let o of r){if(o.kind!=="paragraph")return false;let a=o.children.find(i=>i.kind==="paragraphProperties");if(Object.keys(ju(a)).length>0||!Gz(o))return false}return true}function Gz(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!Kz(t))return false;continue}return false}return true}function Kz(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunk6KA3L3FR_cjs.Ub(t)||chunk6KA3L3FR_cjs.Vb(t)||chunk6KA3L3FR_cjs.Tb(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function zb(e,t,n,r,o,a){let i=zz(),l=Wz(e,t);if(l){let d=IC(l,n,{...r,...e?{ownerPartName:e.name}:{}});if(d){let s=Vz(l,r.displayMode,r.revisionAuthorFilter),c=d.flowHeight,u,f,m=false;if(s){let p=d.fragments.filter(w=>w.kind==="paragraph"),h=p.flatMap(w=>w.lines.flatMap(F=>F.spans.filter(I=>I.noteSeparator).map(I=>({line:F,span:I}))));m=h.length===1;let b=p.at(-1),x=is(l,r.displayMode,r.revisionAuthorFilter).at(-1),S=x?.kind==="paragraph"?x.children.find(w=>w.kind==="paragraphProperties"):void 0,R=S?.kind==="paragraphProperties"&&S.children.some(w=>w.localName==="pStyle"||w.localName==="spacing"&&w.attributes.some(F=>F.localName==="after"));c-=R?0:b?.spacing.after??0;let P=h[0];P&&(f=P.span.style.color,u=vC(P.span,P.line,r.measurer.strikeoutMetrics?.(P.span.style)));}let g=a??Number.POSITIVE_INFINITY;return c>g+.001?{kind:t,fragments:[],flowHeight:FC,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:s&&m?[]:d.fragments,flowHeight:c,synthetic:false,...s&&m?{ruleStyle:i,...u?{ruleBox:u}:{},...f!==void 0?{ruleColor:f}:{}}:{}}}}return {kind:t,fragments:[],flowHeight:FC,synthetic:true,ruleStyle:i}}function $z(e,t,n="separator"){let r=Math.max(1,Math.min(e,n==="continuationSeparator"?e:144));return {x:0,y:Math.max(0,(t-.5)/2),width:r,height:.5}}function Vb(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=e.ruleBox??$z(n,e.flowHeight,e.kind),a=e.ruleStyle==="double"?2.25:e.ruleBox?0:.5;return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,a)}}return {x:t,y:r,width:n,height:e.flowHeight}}function Gb(){let e=new Map;return {get(t,n,r,o,a,i,l){let s=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(s);if(c)return c;let u=zb(t,n,r,i,o,a);return e.set(s,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function Kb(e,t,n,r,o,a,i,l){if(e)return e.get(t,n,r,o,a,i,l);let d=zb(t,n,r,i,o,a);return d.fallbackReason&&l.push(d.fallbackReason),d}var CC=new WeakMap;function $b(e){let t=CC.get(e);return t||(t=new Map,CC.set(e,t)),t}function _c(e,t,n){if(n.tableRow||!n.evictable)return n.bottom;let r=e.fragments.findIndex(l=>l.kind==="paragraph"&&Ln(l,t.paragraphId,t.atomOffset)),o=e.fragments[r];if(o?.kind!=="paragraph")return n.bottom;let a=n.bottom,i;for(let l=r;l<e.fragments.length&&l<=r+tm;l++){let d=e.fragments[l];if(d?.kind!=="paragraph"||d.positionedFrame||d.outOfFlow||i&&!rt(i.props).keepNext)break;let s=d.lines;if(!s.length)break;let c=rt(d.props),u=l===r?s.findIndex(g=>g.box.y+g.box.height>=n.bottom-.001)+1:1;if(u<=0)break;c.keepLines&&d.fragmentIndex===0&&d.paragraphEnd?u=s.length:c.widowControl&&(u=Math.min(s.length,Math.max(2,u)),d.paragraphEnd&&s.length-u===1&&(u=s.length));let f=s[u-1],m=f.box.y+f.box.height;if(m-o.box.y>=e.contentBox.height||(a=Math.max(a,m),u<s.length||!d.paragraphEnd))break;i=d;}return a}function jc(e){let t=Number.NEGATIVE_INFINITY;for(let n of e.fragments)if(!(n.kind==="paragraph"&&(n.outOfFlow||n.positionedFrame))){if(n.box.y<t-.001||n.kind==="paragraph"&&n.box.width<e.contentBox.width-.001)return false;t=n.box.y+n.box.height;}return true}function Ha(e,t){return Math.max(0,e-14-t)}var Ji=.5,MC=2*Ji;function bp(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 BC(e,t,n){n<=0||e.set(t,Math.max(e.get(t)??0,n));}function ja(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function Hc(e,t){let n=ja(e),r=ja(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 xp(e,t){let n=ja(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function Wa(e){return [...ja(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function Sp(e,t,n,r,o,a){if(!e)return;let i=chunk6KA3L3FR_cjs.gc(e.root).find(s=>chunk6KA3L3FR_cjs.Yb(s)==="continuationNotice"),l=i?chunk6KA3L3FR_cjs.Xb(i):null;if(l===null)return;let d=Lr(e,l,t,r,o);if(!(!d||d.flowHeight<=0)){if(d.fallbackReason||d.flowHeight>=n-14){a?.push("note-continuation-notice-height-cap");return}return d}}function EC(e,t){return e.some(n=>t.has(n.scopeId))}function LC(e,t,n,r){return e?{continuationNotice:{kind:"continuationNotice",box:{x:t,y:n,width:r,height:e.flowHeight},fragments:e.fragments,synthetic:false}}:{}}var NC=new WeakMap,AC=new WeakMap;function Uz(e,t,n){let r=e.map(o=>`${o.blockStart}-${o.blockEndExclusive}`).join(",");return `${t};${n?.cacheKey??""};${r}`}function Ub(e){let t=ba(e);return t?t.members.map(n=>n.id):[e.id]}function Yb(e){let t=AC.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),AC.set(e,n),n}function Yz(e,t){if(e.kind!==t.kind)return false;let n=e.kind==="paragraph"?Ub(e):Yb(e),r=t.kind==="paragraph"?Ub(t):Yb(t);return n.length===r.length&&n.every((o,a)=>o===r[a])}function DC(e,t,n,r,o,a,i){let l=cr(e,n,r,a,i),d=Uz(t,n,r),s=o?NC.get(o):void 0;if(s?.boundsFingerprint===d&&s.blocks.length===l.length&&l.every((u,f)=>u===s.blocks[f]||Yz(u,s.blocks[f])))return s.blocks=l,s.map;let c=new Map;for(let u=0;u<t.length;u+=1){let f=t[u];for(let m=f.blockStart;m<f.blockEndExclusive;m+=1){let g=l[m];if(!g)continue;let p=g.kind==="paragraph"?Ub(g):Yb(g);for(let h of p)c.set(h,u);}}return o&&NC.set(o,{blocks:l,boundsFingerprint:d,map:c}),c}var _C=new WeakMap;function jC(e){e&&(e.settledReserves=null,e.reflowSpent=null,e.orphanPolicyPart=void 0);}function Xb(e,t,n){if(!e)return false;let r=_C.get(e),o=t.pages.map(({box:a,contentBox:i})=>[a.width,a.height,i.x-a.x,i.y-a.y,i.width,i.height].join(","));return _C.set(e,{part:n,pages:o}),r?.part!==n?false:o.some((a,i)=>r.pages[i]!==void 0&&r.pages[i]!==a)}function Xz(e,t,n){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let r=0;for(;r<e.lines.length;r+=1){let h=e.lines[r];if(h.box.y+h.box.height>t+.001)break}if(r>=e.lines.length)return {head:e,tail:null};if(n&&(r=xa(r,0,e.lines.length,rt(e.props),false)),r===0)return {head:null,tail:e};let o=e.lines.slice(0,r),a=e.lines.slice(r),i=o[o.length-1],l=e.box.y,d=i.box.y+i.box.height,s=e.borders?.filter(h=>h.side!=="bottom"),c={...e,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:i.range.end},spacing:{before:e.spacing.before,after:0},lines:o,box:{...e.box,height:Math.max(0,d-l)},...s&&s.length>0?{borders:s}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,d-e.shadingBox.y)}}:{}},u=a[a.length-1],f=a[0].box.y,m=u.box.y+u.box.height,g=e.borders?.filter(h=>h.side!=="top"),p={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:a[0].range.start,end:a[a.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:a,box:{x:e.box.x,y:f,width:e.box.width,height:Math.max(0,m-f)},marker:void 0,...g&&g.length>0?{borders:g}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:f,width:e.shadingBox.width,height:Math.max(0,m-f)}}:{}};return {head:c,tail:p}}function Ko(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<yp;u+=1){let f=e.fragments[u],m=f.box.y+f.box.height;if(m<=t+.001){r.push(f),o=m,a=u+1;continue}if(f.kind==="paragraph"){let g=Xz(f,t,(n?.fullContentHeight??t)>t+.001);if(g.head)r.push(g.head),o=g.head.box.y+g.head.box.height,i=g.tail,a=u+1;else {let p=n?.fullContentHeight??t,b=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=p-.001&&b>p+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let y=e.fragments.slice(a),x=y[0]?.box.y??0;return {head:[],headHeight:0,tail:kb(y,-x),tailHeight:Math.max(0,e.flowHeight-x)}}a=u,i=null;}break}a=u;break}let l=[...i?[i]:[],...e.fragments.slice(a)];if(l.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let d=l[0]?.box.y??0,s=kb(l,-d),c=Vo(s);return {head:r,headHeight:o,tail:s,tailHeight:c}}var qb=2;function HC(e,t,n,r){return e.evictable&&r.evictionAllowed!==false&&!(r.allowOrphanDeferral&&e.preserveOrphanLine)&&t.flowHeight>n+.001&&t.flowHeight<=r.keepWholeBudget-(e.bottom-e.blockTop)+.001&&e.top>r.firstContentTop+.001&&e.top>=14&&!(e.endsPageRowId!==void 0&&SI(r.nextPage,e.endsPageRowId))&&!(e.tableRow===true?qz(t,n,r.fullNoteColumn):r.paragraphSplitAllowed!==false&&Zb(t,n,r.fullNoteColumn,r.compatibilityMode))}function qz(e,t,n){return zs(e,t,n).lines>=qb}function zs(e,t,n){let r=Ko(e,Math.max(0,t),{fullContentHeight:n}),o=0;for(let a of r.head)o+=a.kind==="paragraph"?a.lines.length:1;return {lines:o,height:r.headHeight}}function Zb(e,t,n,r){return r!==void 0&&r!==14&&r!==15||e.fragments.some(o=>o.kind!=="paragraph"||rt(o.props).keepNext)?false:zs(e,t,n).lines>0}function WC(e,t,n,r,o){if(r.fragmentIndex===0||!ap(t)||!ap(n))return 0;let a=Zz(t);if(a?.kind!=="table"||a.tableId!==r.tableId)return 0;let i=a.rows[a.rows.length-1];if(!i||i.isHeaderRepeat||i.isHeaderRow||rp(i))return 0;let l=r.rows.find(y=>!y.isHeaderRepeat);if(!l||l.isContinuation)return 0;let d=[];for(let y of o){if(!xI(l,y))continue;let x=op(n,r,y,e.opts.compatibilityMode);if(x===null||x==="table"||x.row!==l)return 0;d.push({ref:y,band:x});}if(d.length===0)return 0;let s=t.contentBox.height,c=lp(t),u=s-c,f=Number.POSITIVE_INFINITY;for(let{band:y}of d)f=Math.min(f,y.bottom-l.box.y);if(u-e.existingAreaHeight<f-.001)return 0;let m=Ha(s,e.plainSeparatorHeight),g=Math.max(0,s-e.plainSeparatorHeight),p=e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight,h=0,b=false;for(let{ref:y,band:x}of d){let S=Lr(e.footnotesPart,y.noteId,t.contentBox.width,e.opts,e.noteLayoutCache);if(!S||S.flowHeight>m-(x.bottom-x.blockTop)+.001)continue;let R=Math.max(0,s-(c+x.bottom-l.box.y)-p-h);if(S.flowHeight<=R+.001){h+=S.flowHeight;continue}let P=zs(S,R,g);if(P.lines<qb){b=true;break}h+=P.height;}return b?Math.max(0,u-Ji):0}function Zz(e){for(let t=e.fragments.length-1;t>=0;t-=1){let n=e.fragments[t];if(!Mt(n)&&!(n.kind==="paragraph"&&n.positionedFrame))return n}}var zC=tm+1;function VC(e){let{bodyPage:t,nextPage:n}=e;if(!n||nV(t)||n.contentBox.width!==t.contentBox.width||n.contentBox.height!==t.contentBox.height)return 0;let r=n,o=e.pageBottomRefsOf(r);if(o.length===0)return 0;let a=r.fragments[0];if(a?.kind==="table")return WC(e,t,r,a,o);let i,l;for(let V of o){let te=io(r,V,e.opts.compatibilityMode);te.bottom<=te.top||(!i||te.bottom<i.bottom-.001)&&(i=te,l=V);}if(!i||!l)return 0;let d=i.bottom-i.top,s=lp(t),c=t.contentBox.height;if(c-s<d-.001)return 0;let u,f=0;for(let[V,te]of r.fragments.entries()){if(te.kind!=="paragraph"||V>=zC)return 0;if(Ln(te,l.paragraphId,l.atomOffset)){u=te,f=V;break}}if(!u)return 0;let m=Qz(r.fragments,f),g=io(r,l,e.opts.compatibilityMode).preserveOrphanLine,p=e.ownReservePt??e.existingAreaHeight,h=Vo(t.fragments),b=m&&g===true&&eV(e,u,r,l,h,p);if(m&&!b&&Pp(t)&&Pp(r)){let V=tV(r.fragments,f);if(V!==null&&h+V+p<=c+.001)return 0}if(e.allowOrphanDeferral&&g&&!b&&Vo(t.fragments)+i.bottom-Es(r)+e.existingAreaHeight<=c+.001)return 0;let y=Jz(r.fragments,f,u,i.bottom),x=o.filter(V=>y.blocks.some(({block:te,bottom:Q})=>Ln(te,V.paragraphId,V.atomOffset)&&(te===u||io(r,V,e.opts.compatibilityMode).bottom<=Q+.001)));if(x.length===0)return 0;let S=Es(r),R=u,P=x.some(V=>!Ln(R,V.paragraphId,V.atomOffset)),w=Math.max(0,(P?y.lineBottom:i.bottom)-S),F=Math.max(0,(P?y.blockBottom:Cc(u))-S),I=t.contentBox.width,v=Ha(c,e.plainSeparatorHeight),T=t.fragments.at(-1),k=f===0&&Pp(t)&&Pp(r)&&T?.kind==="paragraph"&&T.paragraphId===u.paragraphId&&T.range.end===u.range.start&&T.box.x===u.box.x&&!T.paragraphEnd?Math.max(0,s-T.box.y):0,O=jc(t)&&jc(r),L=rt(u.props);if(k>0&&O&&!L.keepLines&&!L.keepNext&&(e.opts.compatibilityMode===void 0||e.opts.compatibilityMode===14||e.opts.compatibilityMode===15)){let V=_c(r,l,i),te=e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight,Q=true,Y=0;for(let de of x){let J=io(r,de,e.opts.compatibilityMode);if(J.bottom>V+.001)continue;let ee=J.bottom-J.blockTop+k,re=Lr(e.footnotesPart,de.noteId,I,e.opts,e.noteLayoutCache);if(!J.evictable||!re||ee>=v||re.flowHeight>v-ee+.001){Q=false;break}te+=re.flowHeight,Y++;}if(Q&&Y>0&&Math.max(s,Vo(t.fragments))+V-S+te<=c+.001)return 0}let H=0,A=false,D=w,j=e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight;for(let V of x){let te=Lr(e.footnotesPart,V.noteId,I,e.opts,e.noteLayoutCache);if(!te)continue;let Q=io(r,V,e.opts.compatibilityMode),Y=Q.bottom-Q.blockTop,de=Y+(V.paragraphId===u.paragraphId?k:0),J=Q.evictable?de<v?de:Y:0;if(te.flowHeight>v-J+.001)continue;let ee=Math.max(w,_c(r,V,Q)-S),re=c-s-ee-j-H,oe=A||(e.existingNoticeHeight??0)>0?0:Sp(e.footnotesPart,I,c,e.opts,e.noteLayoutCache)?.flowHeight??0,ue=re-oe;O&&Q.evictable&&Q.tableRow!==true&&de<v&&te.flowHeight>re+.001&&Zb(te,ue,v-oe,e.opts.compatibilityMode)?(H+=zs(te,ue,v-oe).height+oe,A=true,D=Math.max(D,ee)):H+=te.flowHeight;}if(H<=0)return 0;let C=j+H,M=A?0:d,_=Math.max(0,c-s-Ji);if(!(s+D+M+C<=c+.001))return _;if(s+F+M+C<=c+.001)return 0;let{usedReservePt:X}=e;if(X===void 0)return 0;let W=Math.max(0,c-X-s),z=w+d>W+.001,$=Math.abs(X-_)<=MC;return z&&!$?0:_}function Jz(e,t,n,r){let o=[{block:n,bottom:Cc(n)}],a=r,i=o[0].bottom,l=n,d=n.lines.at(-1),s=rt(n.props),c=n.fragmentIndex===0&&n.paragraphEnd===true,u=n.paragraphEnd===true&&(c&&s.keepLines||c&&s.widowControl&&n.lines.length<4||d!==void 0&&r>=d.box.y+(s.widowControl?0:d.box.height)-.001);for(let f=t+1;f<e.length&&f-t<zC&&!(!u||!rt(l.props).keepNext);f++){let m=e[f];if(m.kind!=="paragraph"||m.positionedFrame||m.outOfFlow)break;let g=m.lines.length;if(g===0)break;let p=rt(m.props),h=m.fragmentIndex===0&&m.paragraphEnd===true,b=p.keepLines&&h?g:p.widowControl&&m.fragmentIndex===0?h&&g<4?g:Math.min(2,g):p.widowControl&&m.paragraphEnd&&g<3?g:1,y=m.lines[b-1],x=y.box.y+y.box.height;o.push({block:m,bottom:x}),a=Math.max(a,x),i=Math.max(i,x),l=m,u=b===g&&m.paragraphEnd===true;}return {blocks:o,lineBottom:a,blockBottom:i}}function Qz(e,t){for(let n=t-1;n>=0;n-=1){let r=e[n];if(!(r.kind!=="paragraph"||r.positionedFrame||r.outOfFlow)&&!rt(r.props).keepNext)return true}return false}function eV(e,t,n,r,o,a){let i=t.lines[1];if(!i)return false;let l=e.bodyPage.contentBox.height,d=o-Es(n),s=i.box.y+i.box.height-Math.min(i.trailingSpacing??0,i.box.height);if(d+s+a>l+.001)return false;let c=Lr(e.footnotesPart,r.noteId,e.bodyPage.contentBox.width,e.opts,e.noteLayoutCache);if(!c)return false;let u=Math.max(e.existingAreaHeight,e.plainSeparatorHeight),f=l-(d+i.box.y+i.box.height)-u;return Ko(c,Math.max(0,f)).head.length===0}function tV(e,t){let n;for(let r=0;r<t;r+=1){let o=e[r];if(o.kind!=="paragraph"||o.positionedFrame||o.outOfFlow)continue;let a=o.lines;if(a.length===0)continue;n??=a[0].box.y-(o.fragmentIndex===0?o.spacing.before:0);let i=rt(o.props),l=a.length,d=1,s=o.fragmentIndex===0&&o.paragraphEnd===true;i.keepLines&&s?d=l:i.widowControl&&o.fragmentIndex===0?d=s&&l<4?l:Math.min(2,l):i.widowControl&&o.paragraphEnd&&l<3&&(d=l);let c=a[d-1];if(d<l||!o.paragraphEnd||!i.keepNext)return c.box.y+c.box.height-Math.min(c.trailingSpacing??0,c.box.height)-n}return null}function Pp(e){let t=Number.NEGATIVE_INFINITY;for(let n of e.fragments)if(!Mt(n)&&!(n.kind==="paragraph"&&n.positionedFrame)){if(n.box.y<t-.001)return false;t=n.box.y+n.box.height;}return true}function nV(e){for(let t=e.fragments.length-1;t>=0;t-=1){let n=e.fragments[t];if(n.kind!=="paragraph")return false;let o=n.lines[n.lines.length-1]?.spans.some(a=>a.text===chunk6KA3L3FR_cjs.Ua)??false;if(!(!o&&(n.positionedFrame||n.outOfFlow)))return o}return false}var GC=Object.freeze({footnotesPart:"identity-check",endnotesPart:"identity-check",footnotePropsBySection:"content-fingerprint",endnotePropsBySection:"content-fingerprint",documentFootnoteProps:"content-fingerprint",documentEndnoteProps:"content-fingerprint",measurer:"identity-check",producer:"content-fingerprint",displayMode:"content-fingerprint",revisionAuthorFilter:"content-fingerprint",cache:"identity-check",styleCascade:"identity-check",numberingIndex:"identity-check",defaultTabStopPt:"content-fingerprint",compatibilityMode:"content-fingerprint",projectLink:"pass-projector",projectLinkForPart:"relationship-epoch-guarded",linkRelsEpoch:"content-fingerprint",projectionTokenForParagraphForPart:"projection-epoch-guarded",projectionTokenForTableForPart:"projection-epoch-guarded",projectionEpoch:"content-fingerprint",showFieldCodes:"content-fingerprint",projectFieldLink:"pass-projector",documentProperties:"content-fingerprint",refFields:"content-fingerprint",drawingsForPart:"drawing-epoch-guarded",drawingLayoutEpoch:"content-fingerprint"});function Jb(e,t){for(let n of Object.keys(GC))if(GC[n]===t&&e[n]!==void 0)return true;return false}function Rp(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function KC(e){return Jb(e,"drawing-epoch-guarded")&&e.drawingLayoutEpoch===void 0||Jb(e,"relationship-epoch-guarded")&&e.linkRelsEpoch===void 0||Jb(e,"projection-epoch-guarded")&&e.projectionEpoch===void 0?null:[e.producer,e.displayMode??Ye,e.revisionAuthorFilter?.cacheKey??"",e.showFieldCodes??false,e.defaultTabStopPt??"",e.compatibilityMode??"",e.drawingLayoutEpoch??"",e.linkRelsEpoch??"",e.projectionEpoch??"",e.refFields?.valuesToken??"",e.documentProperties?JSON.stringify(e.documentProperties):"",Rp(e.documentFootnoteProps),Rp(e.documentEndnoteProps),e.footnotePropsBySection.map(Rp).join(";"),e.endnotePropsBySection.map(Rp).join(";")].join("\0")}var rV=.4;function Qb(e,t,n){return e&&chunk6KA3L3FR_cjs.$d(e,"first")&&n===0?"first":e&&chunk6KA3L3FR_cjs.$d(e,"even")&&(t+n+1)%2===0?"even":"default"}function $C(e){let{furniture:t,pageHeight:n,marginTop:r,marginBottom:o}=e,a=n*rV,i=new Map,l=(d,s,c,u=0)=>Math.min(a,ey(c)?Fr(c):Math.max(c,s?d+Math.max(s.flowHeight,u):0));return d=>{if(d===0&&e.continuedPageInsets)return e.continuedPageInsets;let s=Qb(t,e.pageIndexStart,d),c=t&&Bs(t)?`${s}:${d}`:s,u=i.get(c);if(u)return u;let f=Qm(t,s,e.pageIndexStart+d),m=l(e.headerDistance,f,r,f&&!ey(r)?YO(t,e.pageIndexStart+d):0),g=l(e.footerDistance,t?.footers.get(s),o),p=Object.freeze({top:m,bottom:g,height:n-m-g});return i.set(c,p),p}}var ex=new WeakMap;function jre(e){ex.delete(e);}function zc(e,t){ex.set(e,t);}function tx(e,t,n,r){return ex.get(e)?.(t,n,r)}var za=24;function UC(e){let{furniture:t,geometry:n,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(n.height+za),width:n.width,height:n.height}),l=c=>Qb(t,a,c),d=(c,u,f)=>{if(!t)return;let m=l(u),g=c==="header"?Qm(t,m,a+u):t.footers.get(m);if(!g)return;let p=F=>{let I=c==="header"?f.y+r:f.y+n.height-o-F.flowHeight;return {kind:c,variant:m,partName:F.partName,...F.part?{part:F.part}:{},...F.rId?{rId:F.rId}:{},box:{x:f.x+n.margin.left,y:I,width:e.contentWidth,height:F.flowHeight},fragments:F.fragments,...F.anchoredDrawings?{anchoredDrawings:F.anchoredDrawings}:{}}},h=a+u+1,b={pageNumber:h,pageCount:Math.max(h,e.pageCount()+1),sectionPageCount:u+1,sheetNumber:h},y=e.insetsFor(u),x=F=>{let I=g;for(let v=0;v<8;v+=1){let T=c==="header"?r:n.height-o-I.flowHeight,k={...F,contentInsetTop:y.top,contentInsetBottom:y.bottom,storyTop:T},O=g.withPageContext(k);if(Math.abs(O.flowHeight-I.flowHeight)<=.001)return O;I=O;}throw new Error("header/footer attached-page anchor layout did not converge")},S=g.pageFieldNeeds,P=_o(S)||(g.anchoredDrawings?.length??0)>0?x(b):g,w=p(P);return _o(S)?{...w,pageFieldProjector:F=>p(x(F))}:w};return {pageBox:i,variantFor:l,furnitureFor:d,overflowShellAt:(c,u)=>{let f=c-a,m=d("header",f,u),g=d("footer",f,u),p=mp(e.pageBorders,n,f===0);return {insets:e.insetsFor(f),...m?{header:m}:{},...g?{footer:g}:{},...p?{pageBorders:p}:{}}}}}function YC(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:Xi(n,r,t);return t+=n.box.height+za,i})}function nx(e){return e.breakType==="continuous"||e.sheetIndex===0?false:e.restart!==void 0?e.evenAndOddHeaders&&(e.restart-(e.sheetIndex+1))%2!==0:e.breakType==="oddPage"?e.nextDisplayed%2===0:e.breakType==="evenPage"?e.nextDisplayed%2!==0:false}function rx(e,t,n,r){let o=ss(n);return r&&r.index===e&&r.box.y===t&&r.box.width===n.width&&r.box.height===n.height&&r.contentBox.x===n.margin.left&&r.contentBox.y===t+o.top&&r.contentBox.width===n.width-n.margin.left-n.margin.right&&r.contentBox.height===n.height-o.top-o.bottom?r:{id:`page-${e}`,index:e,box:{x:0,y:t,width:n.width,height:n.height},contentBox:{x:n.margin.left,y:t+o.top,width:n.width-n.margin.left-n.margin.right,height:n.height-o.top-o.bottom},fragments:[],hasBodyPageFields:false,parityBlank:true}}var XC=new WeakMap;function qC(e,t,n,r){XC.set(e,{evenAndOddHeaders:t,starts:new Map(n.map(o=>[o.pageIndex,o])),runningAfter:new Map(r)});}function ZC(e,t){let n=XC.get(t);if(!n)return e;let r=[],o=0,a=1,i=(l,d)=>{let s=l.pageFieldSource;return s&&s.pageNumber!==d?{...l,pageFieldSource:{...s,pageNumber:d}}:l};for(let l of e){if(l.parityBlank)continue;let d=l.pageFieldSource?.pageNumber;if(l.noteStream!==void 0){r.push(i(l,a)),a+=1,o+=1;continue}if(d===void 0){r.push(l),a+=1;continue}let s=n.starts.get(l.index);if(s){let u=s.restart??s.runningBefore+o;nx({breakType:s.breakType,restart:s.restart,nextDisplayed:u,sheetIndex:r.length,evenAndOddHeaders:n.evenAndOddHeaders})&&(r.push(rx(s.pageIndex,0,s.geometry,void 0)),s.restart===void 0&&(u+=1)),o=s.restart===void 0?u-d:0;}r.push(i(l,d+o));let c=n.runningAfter.get(l.index);c!==void 0?(a=c,o=0):a=d+o+1;}return r}function JC(e){if(e.kind!=="tableRow")return null;let t=e.children.find(a=>a.namespaceUri===chunk6KA3L3FR_cjs.da&&a.localName==="trPr");if(!t)return null;let n=null;for(let a of t.children)if(a.kind!=="textValue"&&a.namespaceUri===chunk6KA3L3FR_cjs.da&&!(a.localName!=="ins"&&a.localName!=="del")){n=a;break}if(!n)return null;let r=a=>n.attributes.find(i=>i.namespaceUri===chunk6KA3L3FR_cjs.da&&i.localName===a)?.value,o=r("date");return {kind:n.localName==="ins"?"insert":"delete",id:r("id")??"",author:r("author")??"",...o===void 0?{}:{date:o},nodeId:n.id}}function QC(e,t,n){let r=[];for(let o of e){let a=gn(o)?Rn(o):JC(o);if(a){if(r.length>=rf)return false;r=Nn(r,a);}}return $e(r,t,n)}function eM(e){let t=[];for(let n of e){let r=gn(n)?Rn(n):JC(n);r&&t.push([r.kind,r.nodeId,r.author]);}return JSON.stringify(t)}function wp(e){return `${e.noteKind}|${e.noteId}|${e.paragraphId}|${e.customMarkFollows?1:0}|${e.sectionIndex}`}function tM(e){return e.map(t=>`${wp(t)}|${t.atomOffset}`).join(";")}function ox(e){return e.map(wp).join(";")}function ax(e,t){if(e===t)return true;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.atomOffset!==o.atomOffset||wp(r)!==wp(o))return false}return true}var fM=64,mM=8,nM=fM+2*mM,pM=4096,oV=256,rM=12,oM=new WeakMap;function aV(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=KC(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=tM(t),a=null,i=e.notes;if(i){let d=oM.get(i),s=i.inputFingerprint===r&&d!==void 0&&d.footnotesPart===n.footnotesPart&&d.endnotesPart===n.endnotesPart&&d.measurer===n.measurer&&d.cache===n.cache&&d.styleCascade===n.styleCascade&&d.numberingIndex===n.numberingIndex;if(s&&i.hitsFingerprint===o)return {memo:i,allHits:i.allHits,reused:true};if(a=s?ox(t):null,a!==null&&i.identityFingerprint===a)return i.hitsFingerprint=o,i.allHits=t,{memo:i,allHits:t,reused:true}}let l={hitsFingerprint:o,identityFingerprint:a??ox(t),inputFingerprint:r,allHits:t,provisionalMarks:TM(t,n),finalMarks:null,settledReserves:null,reflowSpent:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return oM.set(l,{footnotesPart:n.footnotesPart,endnotesPart:n.endnotesPart,measurer:n.measurer,cache:n.cache,styleCascade:n.styleCascade,numberingIndex:n.numberingIndex}),e.notes=l,{memo:l,allHits:t,reused:false}}function Coe(e,t){return t>=e.range.start&&t<e.range.end}var aM=new WeakMap;function gM(e){let t=aM.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 l of i.cells)r(l.blocks);}};return r(e),aM.set(e,n),n}var iM=new WeakMap;function hM(e){let t=iM.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 iM.set(e,n),n}var lM=new WeakMap;function kp(e,t,n){let r=gM(e.fragments);if(!n)return t.filter(l=>r.some(d=>Ln(d,l.paragraphId,l.atomOffset)));let o=lM.get(e.fragments);if(o&&o.refIndex===n)return o.result;let a=[],i=new Set;for(let l of r)for(let d of Cl(l)){let s=n.get(d);if(s)for(let c of s)i.has(c)||Ln(l,d,c.atomOffset)&&(i.add(c),a.push(c));}return lM.set(e.fragments,{refIndex:n,result:a}),a}function yM(e){return e==="sectEnd"||e==="docEnd"}function iV(e,t){let n=[];for(let r of e){if(n.length>=Dc)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function Qi(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function ix(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function lx(e,t){return {measurer:e.measurer,producer:e.producer,displayMode:e.displayMode,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:e.defaultTabStopPt,compatibilityMode:e.compatibilityMode,revisionAuthorFilter:e.revisionAuthorFilter,projectLink:e.projectLink,projectLinkForPart:e.projectLinkForPart,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,documentProperties:e.documentProperties,refFields:e.refFields,noteMarks:t,drawingsForPart:e.drawingsForPart,projectionTokenForParagraphForPart:e.projectionTokenForParagraphForPart,projectionTokenForTableForPart:e.projectionTokenForTableForPart}}function lV(e,t){let n="FootnoteReference";if(!t)return {...En,verticalAlign:"superscript"};let r=dr([],[{localName:"rStyle",attributes:{val:n}}],t);return je(r,t.themeFonts)}function sV(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=Qi(t,c);if(u.numRestart==="eachPage"){i=true;for(let m=0;m<rM;m+=1){let g=Gr(u.numFmt,u.numStart+m);g.length>0&&o.add(g);}}let f=ix(t,c);if(f.numRestart==="eachPage"){i=true;for(let m=0;m<rM;m+=1){let g=Gr(f.numFmt,f.numStart+m);g.length>0&&o.add(g);}}}if(!i||o.size===0)return;let l=lV("footnote",t.styleCascade),d,s=-1;for(let c of o){let u=t.measurer.measure(c,l);(u>s+.001||Math.abs(u-s)<=.001&&c.length>(d?.length??0))&&(d=c,s=u);}return d}function bM(e,t,n){let r=ls("footnote",e,l=>Qi(n,l)),o=ls("endnote",t,l=>ix(n,l)),a=new Map;for(let l of r)a.set(us("footnote",l.noteId),l.mark);for(let l of o)a.set(us("endnote",l.noteId),l.mark);let i=sV(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function dV(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!cV(o.fragments))return o;let a=xM(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{...e,pages:r}:e}var sM=new WeakMap;function cV(e){let t=sM.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 l of i.spans)if(l.projected&&l.noteNav?.direction==="to-note"){n=true;return}continue}for(let i of a.rows)for(let l of i.cells)r(l.blocks);}};return r(e),sM.set(e,n),n}function xM(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=uV(o,t);return l!==o&&(n=true),l}let a=false,i=o.rows.map(l=>{let d=false,s=l.cells.map(c=>{let u=xM(c.blocks,t);return u===c.blocks?c:(d=true,{...c,blocks:u})});return d?(a=true,{...l,cells:s}):l});return a?(n=true,{...o,rows:i}):o});return n?r:e}function uV(e,t){let n=false,r=e.lines.map(o=>{let a=fV(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function fV(e,t){let n=false,r=e.spans.map(o=>{let a=mV(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function mV(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 pV(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function SM(e){return !(e.noteStream==="footnote-drain"||e.parityBlank||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function gV(e){for(let t=e.length-1;t>=0;t-=1)if(SM(e[t]))return t;return Math.max(0,e.length-1)}function Tp(e,t,n,r,o,a,i,l){let d=new Map(a),s=t.filter(z=>z.noteKind==="footnote"),c=e.contentBox.width,u=lx(n,r),f=[],m=0,g=pM,p=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),b=z=>Kb(l?.separatorCache,n.footnotesPart,z,c,"footnote",h,u,i),y=b(p),x=l?.continuationNotice?.flowHeight??0,S=jc(e),R=Tb(e),P=Math.max(0,e.contentBox.height-R-y.flowHeight),w=Ha(e.contentBox.height,y.flowHeight),F=Math.max(0,(l?.reserveColumnBudget?w:P)-x),I=Math.max(0,e.contentBox.height-y.flowHeight-x),v={fullContentHeight:I,reasons:i},T=l?.reserveBandOf?p==="separator"?w:Ha(e.contentBox.height,b("separator").flowHeight):0,k=l?.reserveBandOf?Es(e):0;for(let[z,$]of a){let V=z.match(/^(footnote|endnote):(-?\d+)$/);if(!V||V[1]!=="footnote")continue;let te=Number(V[2]),Q=Math.max(0,F-m);if($.height<=Q+.001)f.push({noteKind:"footnote",noteId:te,scopeId:z,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:$.height},fragments:$.fragments}),m+=$.height,d.delete(z);else {let Y=Ko({fragments:$.fragments,flowHeight:$.height},Q,v);Y.head.length>0&&(f.push({noteKind:"footnote",noteId:te,scopeId:z,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:Y.headHeight},fragments:Y.head}),m+=Y.headHeight),Y.tail.length>0?d.set(z,{fragments:Y.tail,height:Y.tailHeight,mark:null}):d.delete(z);}}let O,L=Number.POSITIVE_INFINITY;for(let z of s){if(f.length>=Dc){i.push("note-count-limit");break}let $=l?.reserveBandOf?.(z)??io(e,z,n.compatibilityMode);if(O!==void 0&&$&&$.evictable&&$.bottom>O+.001)continue;let V=Lr(n.footnotesPart,z.noteId,c,u,l?.noteLayoutCache);if(!V){i.push("missing-note-body");continue}let te=r.marks.get(us("footnote",z.noteId))??null,Q=$?Math.min(F,Math.max(0,e.contentBox.height-Math.max(14,$.bottom)-y.flowHeight-x)):F,Y=l?.reserveBandOf?Q:Math.min(Q,L),de=Math.max(0,Y-m),J=S&&$&&V.flowHeight>de+.001&&!$.tableRow?Math.max(0,Math.min(de,e.contentBox.height-_c(e,z,$)-y.flowHeight-x-m)):de;if($&&HC($,V,J,{keepWholeBudget:T,compatibilityMode:u.compatibilityMode,paragraphSplitAllowed:S,firstContentTop:k,fullNoteColumn:I,evictionAllowed:l?.evictionAllowed,allowOrphanDeferral:l?.allowOrphanDeferral,nextPage:l?.nextPage})){O=O===void 0?$.top:Math.min(O,$.top);continue}if(g-=V.fragments.length,g<0){i.push("note-area-fragment-limit");break}if(V.flowHeight<=de+.001)f.push({noteKind:"footnote",noteId:z.noteId,scopeId:V.scopeId,mark:z.customMarkFollows?null:te,box:{x:e.contentBox.x,y:0,width:c,height:V.flowHeight},fragments:V.fragments}),m+=V.flowHeight,L=Math.min(L,Q);else {let ee=Ko(V,J,v);ee.head.length>0&&(f.push({noteKind:"footnote",noteId:z.noteId,scopeId:V.scopeId,mark:z.customMarkFollows?null:te,box:{x:e.contentBox.x,y:0,width:c,height:ee.headHeight},fragments:ee.head}),m+=ee.headHeight,L=Math.min(L,Q)),ee.tail.length>0&&d.set(V.scopeId,{fragments:ee.tail,height:ee.tailHeight,mark:null});}}let H=EC(f,d),A=false;if(H&&!l?.continuationNotice){let z=i.length,$=Sp(n.footnotesPart,c,e.contentBox.height,u,l?.noteLayoutCache,i);if(A=i.length>z&&i.at(-1)==="note-continuation-notice-height-cap",$){let V=Tp(e,t,n,r,o,a,i,{...l,continuationNotice:$});if((V.area?.notes.length??0)>0||V.nextCarry.size===0)return V;i.push("note-continuation-notice-height-cap"),A=true;}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:d,evictionTopPt:O};let D=y.flowHeight,j=H?l?.continuationNotice:void 0,C=D+m+(j?.flowHeight??0),M=Vo(e.fragments),_;o==="beneathText"?_=e.contentBox.y+Math.max(R,Math.min(M,e.contentBox.height-C)):(_=e.contentBox.y+e.contentBox.height-C,_=Math.max(_,e.contentBox.y+R));let U=_+D,ne=f.map(z=>{let $={...z,box:{...z.box,y:U}};return U+=z.box.height,$}),X=Vb(y,e.contentBox.x,c,_);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:_,width:c,height:C},separator:{kind:p,box:X,fragments:y.fragments,synthetic:y.synthetic,...y.ruleStyle!==void 0?{ruleStyle:y.ruleStyle}:{},...y.ruleColor!==void 0?{ruleColor:y.ruleColor}:{}},notes:ne,...LC(j,e.contentBox.x,U,c),...A?{fallbackReason:"note-continuation-notice-height-cap"}:{}},nextCarry:d,evictionTopPt:O}}function PM(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 hV(e){return t=>{let n=tx(e,t.sectionAnchorIndex,t.landingIndex,t.template.box);return yV(t.template,t.landingIndex,t.noteStream,n)}}function yV(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,l=r?r.pageBorders:e.pageBorders?.display!=="firstPage"?e.pageBorders:void 0;return {id:`page-${t}`,index:t,box:e.box,contentBox:o,fragments:[],...l?{pageBorders:l}:{},...n?{noteStream:n}:{},...a?{header:a}:{},...i?{footer:i}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+1}}:{}}}function bV(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 l=tx(t,n,i,a.box);if(!l)return a;let d=a.box.y+l.insets.top;if(d===a.contentBox.y&&l.insets.height===a.contentBox.height&&l.header?.variant===a.header?.variant&&l.footer?.variant===a.footer?.variant)return a;let c={...a.contentBox,y:d,height:l.insets.height},u=d+c.height,f=a.contentBox.y+a.contentBox.height,m=xV(a,d-a.contentBox.y,u-f);if(!m.fits(d,u))return a;r=true;let{header:g,footer:p,...h}=a;return {...h,contentBox:c,...m.footnotes?{footnotes:m.footnotes}:{},...m.endnotes?{endnotes:m.endnotes}:{},...l.header?{header:l.header}:{},...l.footer?{footer:l.footer}:{}}});return r?o:[...e]}function dM(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)}}:{},...e.continuationNotice?{continuationNotice:{...e.continuationNotice,box:n(e.continuationNotice.box)}}:{},notes:e.notes.map(r=>({...r,box:n(r.box)}))}}function xV(e,t,n){let r=i=>i.placement==="pageBottom"?n:t,o=e.footnotes?dM(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?dM(e.endnotes,r(e.endnotes)):void 0;return {...o?{footnotes:o}:{},...a?{endnotes:a}:{},fits(i,l){let d=s=>s===void 0||s.box.y>=i-.001&&s.box.y+s.box.height<=l+.001;return d(o)&&d(a)}}}function sx(e,t){let n=new Set;for(let r of gM(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function RM(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(sx(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function SV(e,t,n){let r=RM(e,t,n);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.parityBlank)return o;if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=sx(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function PV(e,t){let n=YC(e);return [...Pa({revision:t,pages:n}).pages]}function RV(e,t,n,r,o,a,i,l){let d=new Map(a),s=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:d,remainingRefs:s};let c=e.contentBox.width,u=lx(n,r),f=l?.separatorKind??"separator",m=j=>j==="footnote"?n.footnotesPart:n.endnotesPart,g=n.endnotesPart??n.footnotesPart,p=Math.max(0,e.contentBox.height),h=Kb(l?.separatorCache,g,f,c,"endnote",p,u,i),b=h.flowHeight,y=Vo(e.fragments),x=e.endnotes?Math.max(y,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):y,S=pV(e),R=Math.max(0,S-x-b),w={fullContentHeight:Math.max(0,S-b),reasons:i},F=[],I=0,v=pM;for(let[j,C]of a){let M=j.match(/^(footnote|endnote):(-?\d+)$/);if(!M)continue;let _=M[1],U=Number(M[2]),ne=Math.max(0,R-I);if(C.height<=ne+.001)F.push({noteKind:_,noteId:U,scopeId:j,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:C.height},fragments:C.fragments}),I+=C.height,d.delete(j);else {let X=Ko({fragments:C.fragments,flowHeight:C.height},ne,w);X.head.length>0&&(F.push({noteKind:_,noteId:U,scopeId:j,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:X.headHeight},fragments:X.head}),I+=X.headHeight),X.tail.length>0?d.set(j,{fragments:X.tail,height:X.tailHeight,mark:null}):d.delete(j);}}for(let j=0;j<t.length;j+=1){let C=t[j];if(F.length>=Dc){i.push("note-count-limit"),s.push(...t.slice(j));break}let M=m(C.noteKind),_=Lr(M,C.noteId,c,u,l?.noteLayoutCache);if(!_){i.push("missing-note-body");continue}let U=r.marks.get(us(C.noteKind,C.noteId))??null,ne=Math.max(0,R-I);if(v-=_.fragments.length,v<0){i.push("note-area-fragment-limit"),s.push(...t.slice(j));break}if(_.flowHeight<=ne+.001)F.push({noteKind:C.noteKind,noteId:C.noteId,scopeId:_.scopeId,mark:C.customMarkFollows?null:U,box:{x:e.contentBox.x,y:0,width:c,height:_.flowHeight},fragments:_.fragments}),I+=_.flowHeight;else {let X=Ko(_,ne,w);X.head.length>0&&(F.push({noteKind:C.noteKind,noteId:C.noteId,scopeId:_.scopeId,mark:C.customMarkFollows?null:U,box:{x:e.contentBox.x,y:0,width:c,height:X.headHeight},fragments:X.head}),I+=X.headHeight),X.tail.length>0&&d.set(_.scopeId,{fragments:X.tail,height:X.tailHeight,mark:null}),s.push(...t.slice(j+1));break}}if(F.length===0&&a.size===0)return {area:void 0,nextCarry:d,remainingRefs:s};if(F.length===0)return {area:void 0,nextCarry:d,remainingRefs:s};let T=e.contentBox.y+x,k=T+b,O=F.map(j=>{let C={...j,box:{...j.box,y:k}};return k+=j.box.height,C}),L=Vb(h,e.contentBox.x,c,T),H=b+I,A=Math.max(0,S-x),D=Math.min(H,A);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:T,width:c,height:D},separator:{kind:f,box:L,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{},...h.ruleColor!==void 0?{ruleColor:h.ruleColor}:{}},notes:O},nextCarry:d,remainingRefs:s}}function wV(e,t,n,r,o,a,i,l,d){let s=e,c=t,u=e[PM(e,e.length-1)].index;for(;c.size>0&&a.remaining>0;){let f=s[s.length-1],m=d({template:f,landingIndex:s.length,noteStream:"footnote-drain",sectionAnchorIndex:u}),g=Tp(m,[],n,r,"pageBottom",c,o,{separatorCache:i,noteLayoutCache:l}),p=g.area?.notes.length??0;if(c=g.nextCarry,p===0){o.push("note-overflow-stalled"),g.area&&(s=[...s,{...m,footnotes:g.area}],a.remaining-=1);break}s=[...s,{...m,footnotes:g.area}],a.remaining-=1;}return c.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:s,carry:c}}function kV(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 cM(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,l=r-t,d=[...e];for(let s=t;s<r;s+=1){let c=d[s],u=c.noteStream===void 0?c.pageFieldSource?.pageNumber:void 0,f=s>t?d[s-1].pageFieldSource?.pageNumber:void 0;d[s]={...c,pageFieldSource:{pageNumber:u??(f!==void 0?f+1:a+(s-t)),sectionPageCount:l,...i?{format:i}:{}}};}return d}function uM(e,t,n,r,o,a,i,l,d){if(n.length===0||e.length===0)return e;let s=e[PM(e,t)].index,c=[...e],u=[...n],f=new Map,m=t,g=0,p="separator",h=d?.stopBeforeIndex??Number.POSITIVE_INFINITY,b=d?.sectionStartIndex??t,y=d?.stopBeforeIndex!==void 0,x=d?.separatorCache;for(;u.length>0||f.size>0;){if(m>=c.length||m>=h){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let w=c[Math.min(Math.max(m,1),c.length)-1]??c[c.length-1],F=Math.min(m,h,c.length),I=kV(c,F,w,d.mint,s,"endnote-overflow");c=I.pages,m=I.pageIndex,y&&(h=F+1),g+=1,l.remaining-=1;}let S=c[m];if(!SM(S)){m+=1;continue}let R=RV(S,u,r,o,a,f,i,{separatorKind:p,...x?{separatorCache:x}:{},...d.noteLayoutCache?{noteLayoutCache:d.noteLayoutCache}:{}});f=R.nextCarry,u=R.remainingRefs;let P=R.area?.notes.length??0;if(R.area){let w=c[m];c[m]={...w,endnotes:w.endnotes?{...R.area,notes:[...w.endnotes.notes,...R.area.notes],box:{...R.area.box,y:w.endnotes.box.y,height:w.endnotes.box.height+R.area.box.height}}:R.area};}else {if(f.size===0&&u.length===0)break;if(!R.area&&f.size===0&&u.length>0){m+=1,p="separator";continue}}if(P===0&&(f.size>0||u.length>0)&&S.fragments.length===0&&S.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){p="continuationSeparator",m+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),y?c=cM(c,b,Math.min(h,c.length)):g>0&&(c=cM(c,b,c.length)),c}function Moe(e,t,n,r,o,a){return wM(e,t,n,r,o,a,false)}function wM(e,t,n,r,o,a,i){let l=o??null,d=new Map,s=[],c=false,u=new Map,f=hM(t),m=Gb(),g=$b(r),p=lx(n,r),h=R=>R.noteKind==="footnote"&&!yM(Qi(n,R.sectionIndex).pos),b=t.some(h),y=R=>kp(R,t,f).filter(h),x=(R,P,w)=>BC(d,R,Math.min(P,w));for(let R=0;R<e.pages.length;R+=1){let P=e.pages[R];if(P.parityBlank)continue;let w=vb(P),I=kp(w,t,f).filter(W=>W.noteKind==="footnote"),v=I.filter(h);c||=RI(w,v,n.compatibilityMode);let T=v[0]?.sectionIndex??0,k=Qi(n,T),O=e.pages[R+(e.pages[R+1]?.parityBlank?2:1)],L=a?a.get(P.index)??0:void 0,H=Ha(w.contentBox.height,0),A=(W,z,$=0)=>b?VC({bodyPage:w,nextPage:O,allowOrphanDeferral:i,existingAreaHeight:W,existingNoticeHeight:$,ownReservePt:z,usedReservePt:L,pageBottomRefsOf:y,footnotesPart:n.footnotesPart,opts:p,plainSeparatorHeight:m.get(n.footnotesPart,"separator",w.contentBox.width,"footnote",Math.max(0,w.contentBox.height),p,s).flowHeight,noteLayoutCache:g}):0;if(v.length===0&&u.size===0){x(P.index,A(0,0),H);continue}if(l&&u.size===0){let W=l.pageReserve.get(P);if(W&&W.marks===r&&W.allowOrphanDeferral===i&&W.nextOpening===ip(O)&&ax(I,W.pageRefs)){for(let $ of W.reasons)s.push($);let z=A(W.areaHeight,W.reserve);x(P.index,Math.max(W.reserve,z),H);continue}}let D=u.size===0,j=s.length,{area:C,nextCarry:M,evictionTopPt:_}=Tp(w,v,n,r,k.pos,u,s,{reserveColumnBudget:true,allowOrphanDeferral:i,reserveBandOf:W=>io(w,W,n.compatibilityMode),separatorCache:m,noteLayoutCache:g,evictionAllowed:!O||O.contentBox.width===w.contentBox.width&&O.contentBox.height===w.contentBox.height,nextPage:O});u=M;let U=_!==void 0?Math.max(0,w.contentBox.height-_-Ji):0,ne=C?.box.height??0,X=Math.min(Math.max(ne,U),H);l&&D&&u.size===0&&l.pageReserve.set(P,{allowOrphanDeferral:i,nextOpening:ip(O),pageRefs:I,marks:r,reserve:X,areaHeight:ne,reasons:s.slice(j)}),x(P.index,Math.max(X,A(ne,X,C?.continuationNotice?.box.height)),H);}let S=true;for(let R of e.pages){let P=d.get(R.index)??0;if(P<=0)continue;if(Tb(R)+P>R.contentBox.height+.5){S=false;break}}return {reserves:d,stable:S,reasons:s,orphanCandidates:c}}function TV(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,l={remaining:oV},d=hM(t),s=Gb(),c=hV(e),u=[],f=[];for(let P of e.pages)for(let w of kp(P,t,d)){let F={noteId:w.noteId,sectionIndex:w.sectionIndex,pageIndex:P.index,customMarkFollows:w.customMarkFollows};w.noteKind==="footnote"?u.push(F):f.push(F);}let m=o?[...u,...f].map(P=>`${P.noteId}|${P.sectionIndex}|${P.pageIndex??""}|${P.customMarkFollows?1:0}`).join(";"):"",g;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===m?g=o.finalMarks.marks:(g=bM(u,f,n),o&&(o.finalMarks={sitesFingerprint:m,marks:g}));let p=$b(g),h=new Map,b=new Map,y=[],x=e.pages.map(P=>{if(P.parityBlank)return P;let w=kp(P,t,d),F=w.filter(j=>j.noteKind==="footnote"),I=w.filter(j=>j.noteKind==="endnote");for(let j of I)if(ix(n,j.sectionIndex).pos==="sectEnd"){let M=b.get(j.sectionIndex)??[];M.push(j),b.set(j.sectionIndex,M);}else y.push(j);for(let j of F){let C=Qi(n,j.sectionIndex);if(C.pos==="sectEnd"){let M=b.get(j.sectionIndex)??[];M.push(j),b.set(j.sectionIndex,M);}else C.pos==="docEnd"&&y.push(j);}if(o&&h.size===0){let j=o.pageAttach.get(P);if(j&&j.marks===g&&ax(F,j.pageRefs)){for(let C of j.reasons)a.push(C);return j.attached}}let v=vb(P),T=F.filter(j=>{let C=Qi(n,j.sectionIndex).pos;return C==="pageBottom"||C==="beneathText"}),k=T[0]?.sectionIndex??0,O=Qi(n,k),L,H=h.size===0,A=a.length;if(T.length>0||h.size>0||F.length===0&&!yM(O.pos)){let j=Tp(v,T,n,g,O.pos,h,a,{separatorCache:s,noteLayoutCache:p});L=j.area,h=j.nextCarry;}let D=L?{...v,footnotes:L}:v;if(o&&H&&h.size===0){let j={pageRefs:F,marks:g,attached:D,reserve:0,reasons:a.slice(A)};if(o.pageAttach.set(D,j),D!==P){let C=o.pageReserve.get(P);C&&o.pageReserve.set(D,C);}}return D}),S=x.length;if(h.size>0){let P=wV(x,h,n,g,a,l,s,p,c);x=P.pages,h=P.carry;}if(b.size>0&&x.length>0){let P=[...b.keys()].sort((w,F)=>w-F);for(let w of P){let F=b.get(w),I=RM(x,w,i),v=SV(x,w,i),T=I;for(let k=0;k<=I;k+=1)if(sx(x[k],i).includes(w)){T=k;break}x=uM(x,I,F,n,g,"sectEnd",a,l,{stopBeforeIndex:v,sectionStartIndex:T,separatorCache:s,noteLayoutCache:p,mint:c});}}return y.length>0&&x.length>0&&(x=uM(x,gV(x),y,n,g,"docEnd",a,l,{separatorCache:s,noteLayoutCache:p,mint:c})),x.length!==S&&(x=[...ZC(x,e)],x=bV(x,e),x=PV(x,e.revision)),{layout:dV({...e,pages:x},g),fallbackReasons:a,noteMarks:g}}function vV(e,t,n){return (t==="all-markup"&&n===void 0?chunk6KA3L3FR_cjs.cg(e):chunk6KA3L3FR_cjs.dg(e,{includeReference:(a,i)=>QC(i,t,n),projectionKey:`${t};${n?.cacheKey??""}`,ancestryKey:eM})).map(a=>({noteKind:a.noteKind,noteId:a.noteId,paragraphId:a.paragraphId,atomOffset:a.atomOffset,customMarkFollows:a.customMarkFollows}))}function kM(e,t,n,r,o){let a=n.displayMode??Ye,i=n.revisionAuthorFilter,l=vV(e,a,i);if(l.length===0)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),o({...n,noteMarks:void 0,pageBottomReserves:void 0});let d=DC(e,t,a,i,n.session,n.styleCascade,n.numberingIndex),s=iV(l,d),c=aV(n.session,s,r),u=c.memo,f=c.allHits,m=u?.provisionalMarks??TM(f,r),g=n.session?.notePageBottomReserves,p=g?ja(g):new Map,h=[],b=o({...n,noteMarks:m,pageBottomReserves:p});Xb(n.session,b,e)&&(g=void 0,p=new Map,jC(u),b=o({...n,noteMarks:m,pageBottomReserves:p}));let y=u?.orphanPolicyPart===e,x=Wa(p),S=c.reused&&u?.settledReserves&&u.settledReserves.part===e&&u.settledReserves.fingerprint===x?u.settledReserves:null;if(S)h=[...S.reasons];else {let P=new Set([x]),w=u&&u.reflowSpent&&u.reflowSpent.part===e?u.reflowSpent:{part:e,adopted:0};u&&(u.reflowSpent=w);let F=0,I=g&&p.size>0?mM:fM,v=null,T=[],k=false,O=null,L=p,H=C=>o({...n,noteMarks:m,pageBottomReserves:C}),A=b.pages.length,D=Math.max(8,Math.ceil(A/16)),j=0;for(let C=0;C<I;C+=1){let M=wM(b,f,r,m,u,p,y);if(h=[...M.reasons],M.stable&&(O=p),M.stable&&Hc(M.reserves,p)){if(!y&&M.orphanCandidates){v=p,T=[...M.reasons],y=true,u&&(u.orphanPolicyPart=e),P.clear(),P.add(Wa(p)),L=p;continue}k=true;break}if(w.adopted>=nM){h.push("note-reflow-exhausted");break}if(j>=D){h.push("note-reflow-exhausted");break}let _=ja(M.reserves);if(Hc(_,p)){h.push("note-reflow-exhausted");break}let U=Wa(_);if(P.has(U)){_=xp(p,M.reserves);let ne=X=>Hc(X,p)||P.has(Wa(X));if(!M.stable&&ne(_)&&(_=xp(L,_)),ne(_)){h.push("note-reflow-exhausted"),!M.stable&&O&&O!==p&&(p=O,b=H(O));break}}p=_,L=xp(L,_),P.add(Wa(p)),w.adopted+=1,F+=1,b=H(p),j=b.pages.length>A?j+1:0,A=b.pages.length,C===I-1&&h.push("note-reflow-exhausted");}if(!k&&v){let C=!Hc(v,p);p=v,h=[...T],C&&(b=H(p)),u&&(u.settledReserves={part:e,fingerprint:Wa(p),reasons:[...h]});}u&&(F===0||w.adopted>=nM)&&(u.settledReserves={part:e,fingerprint:Wa(p),reasons:[...h]});}Xb(n.session,b,e);let R=TV(b,f,r,{fallbackReasons:h,paragraphSectionIndex:d,memo:u});return n.session&&(n.session.previous=R.layout,n.session.notePageBottomReserves=ja(p)),R.layout}function TM(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 bM(n,r,t)}function vM(e,t){let n=e.projectLink??t.projectLink,r=e.projectFieldLink??t.projectFieldLink,o=e.documentProperties??t.documentProperties,a=e.refFields??t.refFields,i=e.displayMode??t.displayMode,l=e.revisionAuthorFilter??t.revisionAuthorFilter;return {...e,...n?{projectLink:n}:{},...r?{projectFieldLink:r}:{},showFieldCodes:e.showFieldCodes??t.showFieldCodes,...o?{documentProperties:o}:{},...a?{refFields:a}:{},...i?{displayMode:i}:{},...l?{revisionAuthorFilter:l}:{}}}function $o(){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 vp(e,t){let n={previous:t.previous,checkpoints:t.checkpoints,keys:t.keys,context:t.context,producer:t.producer,parityDependent:t.parityDependent,startPageParity:t.startPageParity,prepass:t.prepass,notes:t.notes,startLineCounter:t.startLineCounter,endLineCounter:t.endLineCounter,endCursorY:t.endCursorY,endSpaceAfter:t.endSpaceAfter,endsOpenPage:t.endsOpenPage,stats:t.stats,balanceLimit:t.balanceLimit,multi:t.multi,notePageBottomReserves:t.notePageBottomReserves};Object.assign(e,n);}function FM(e,t,n,r){let o=Sw(t),a=o===t?n:jo(e,o).sections;return dy(o,r.listItems,r.notes?{footnotesPart:r.notes.footnotesPart,endnotesPart:r.notes.endnotesPart}:void 0,r.notes?DT(r.notes,a):void 0,r.displayMode,r.revisionAuthorFilter)}var FV=2e5,OM=new WeakMap;function IM(e,t){let n=t.styleCascade;if(!n)return;let r=OM.get(e);if(r?.styles===n&&r.mode===t.displayMode&&r.author===t.revisionAuthorFilter)return r.index;let o=new Map,a=0,i=(d,s)=>{if(++a>FV||s>jt)throw new Error("character-style body index exceeds its scan bound");if(d.kind!=="textValue"){if(d.kind==="paragraph"){let c=jn(n,d.children.find(g=>g.kind==="paragraphProperties")).runProperties,u=ts(d,c,void 0,(g,p)=>dr(g,p,n),void 0,void 0,t.displayMode,void 0,void 0,n.themeFonts,void 0,void 0,false,void 0,t.revisionAuthorFilter),f=[],m;for(let g of u){let p=ga(g.props,"rStyle");if(!p||n.styles.get(p)?.type!=="character"||g.projected||g.inlineDrawing||g.equation||!g.text){m=void 0;continue}m?.style===p&&m.end===g.start?(m.text=m.text!==null&&m.text.length+g.text.length<=4096?m.text+g.text:null,m.end=g.end):(m={paragraphId:d.id,start:g.start,end:g.end,text:g.text.length<=4096?g.text:null,style:p},f.push(m));}f.length&&o.set(d.id,f);return}for(let c of d.children)i(c,s+1);}};i(e.root,0);let l={byParagraph:o,styles:n};return OM.set(e,{styles:n,mode:t.displayMode,author:t.revisionAuthorFilter,index:l}),l}function CM(e,t,n){let r=new Map;for(let[a,i]of t.pages.entries())for(let l of Gt(i)){if(l.positionedFrame||l.outOfFlow)continue;let d=new Map;for(let s of l.lines)for(let c of Pt(s)){let u=d.get(c.paragraphId);u?(u.start=Math.min(u.start,c.start),u.end=Math.max(u.end,c.end)):d.set(c.paragraphId,{start:c.start,end:c.end});}for(let[s,c]of d)for(let u of e.byParagraph.get(s)??[]){if(u.end<=c.start||u.start>=c.end)continue;let f=r.get(u);f?f.last=a:r.set(u,{first:a,last:a});}}let o=t.pages.map(()=>new Map);for(let a of n){let i=[...e.styles.styles.values()].find(p=>p.type==="character"&&p.name?.toLowerCase()===a.name);if(!i)continue;let l=[];for(let p of e.byParagraph.values())for(let h of p){let b=r.get(h);b&&h.style===i.styleId&&l.push([h,b]);}let d=l.map((p,h)=>h).sort((p,h)=>l[p][1].first-l[h][1].first||p-h),s=d.slice().sort((p,h)=>l[p][1].last-l[h][1].last||p-h),c=[],u=a.last?(p,h)=>p>h:(p,h)=>p<h,f=0,m=0,g=-1;for(let p=0;p<o.length;p+=1){for(;f<d.length&&l[d[f]][1].first<=p;)OV(c,d[f++],u);for(;m<s.length&&l[s[m]][1].last<p;)g=Math.max(g,s[m++]);for(;c.length&&l[c[0]][1].last<p;)IV(c,u);let h=c[0]??(g>=0?g:d[f]),b=h===void 0?void 0:l[h][0].text;b!=null&&o[p].set(a.key,b);}}return o}function OV(e,t,n){let r=e.length;for(e.push(t);r>0;){let o=Math.floor((r-1)/2);if(!n(t,e[o]))break;e[r]=e[o],r=o;}e[r]=t;}function IV(e,t){let n=e.pop();if(!e.length)return;let r=0;for(;r*2+1<e.length;){let o=r*2+1;if(o+1<e.length&&t(e[o+1],e[o])&&o++,!t(e[o],n))break;e[r]=e[o],r=o;}e[r]=n;}var CV=8,MM=new WeakMap,BM=new WeakMap;function MV(e){let t=BM.get(e);return t||(t=dw(e.root),BM.set(e,t)),t}function dx(e,t,n){if(t.showFieldCodes)return n(t);let r=new Set;t.furniture&&r.add(t.furniture);for(let P of t.sectionFurniture??[])P&&r.add(P);let o=new Map,a=new Set;for(let P of r)for(let w of P.headers.values()){if(!w.part)continue;let F=MV(w.part);F.length&&a.add(w);for(let I of F)o.set(I.key,I);}let i=t.styleCascade;if(!i)return n(t);let l=new Set;for(let P of i.styles.values())P.type==="character"&&P.name&&l.add(P.name.toLowerCase());for(let[P,w]of o)l.has(w.name)||o.delete(P);if(!o.size)return n(t);if(o.size>128)throw new Error("character-style header queries exceed their bound");let d=IM(e,t);if(!d)return n(t);let s=t.session?MM.get(t.session):void 0,c=P=>{let w=new Set([...Object.keys(P),...Object.keys(t)]);for(let F of w){if(F==="session")continue;let I=P[F],v=t[F];if(F==="sectionFurniture"&&Array.isArray(I)&&Array.isArray(v)){if(I.length!==v.length||I.some((T,k)=>T!==v[k]))return false}else if(I!==v)return false}return true},u=s?.index===d&&c(s.options)?s:void 0,f=u?[...u.reserves]:[],m=u?[...u.reserves]:[],g=(P,w,F,I=false)=>{I||(m=[]);let v=new Map;for(let T of r){let k={...T},O=new Map,L=new Map;UO(k,{token:F,reserveHeight:H=>{let A=Math.max(f[H]??0,L.get(H)??0);return f[H]=A,m[H]=A,A},resolve(H,A){let D=T.headers.get(H),j=P[A];if(!D||!a.has(D)||!j?.size)return L.delete(A),D;let C=`${H}:${A}`,M=O.get(C);return M||(M=D.withPageContext({...w[A],characterStyleValues:j}),O.set(C,M)),L.set(A,M.flowHeight),M}}),v.set(T,k);}return {...t,furniture:t.furniture?v.get(t.furniture):void 0,sectionFurniture:t.sectionFurniture?.map(T=>T?v.get(T):void 0)}},p=new Map,h=(P,w,F=true)=>chunkT7RGKBCE_cjs.B(JSON.stringify(P.map((I,v)=>[Zm(I,p),w[v],F?f[v]??0:0]))),b=P=>P.pages.map(w=>({pageNumber:w.pageFieldSource?.pageNumber??w.index+1,pageCount:P.pages.length,sectionPageCount:w.pageFieldSource?.sectionPageCount??P.pages.length,format:w.pageFieldSource?.format,sheetNumber:w.index+1})),y=u?.cacheToken??"",x=u?h(u.values,u.contexts,false):"",S=n(u?.index===d?g(u.values,u.contexts,y,true):t),R=new Set;y&&R.add(y);for(let P=0;P<CV;P+=1){let w=CM(d,S,[...o.values()]);if(P===0&&!y&&w.every(k=>k.size===0))return S;let F=b(S),I=h(w,F),v=h(w,F,false),T=S.pages.every((k,O)=>(m[O]??0)===(f[O]??0));if(I===y||v===x&&T)return t.session&&MM.set(t.session,{index:d,cacheToken:y,options:t,reserves:[...f],values:w,contexts:F}),S;if(R.has(I))throw new Error("character-style header layout did not converge");R.add(I),y=I,x=v,S=n(g(w,F,I));}throw new Error("character-style header layout exceeded its pass limit")}function EM(e,t,n,r){let o=pb(t.props);if(o)return mb(e)?o:void 0;let a;for(let m of t.props)m.localName==="framePr"&&(a=m.attributes);if(!a||a.dropCap!=="drop"||t.lineSpacing.rule!=="exact"||t.lineSpacing.value<=0||t.lineSpacing.value>1584||t.listItem||t.spacing.before!==0||t.spacing.after!==0||t.shading!==void 0||Object.values(t.borders).some(Boolean)||t.alignment!=="left"||ht(t.props))return;let i=Number(a.lines);if(!Number.isInteger(i)||i<2||i>10||!mb(e)||Object.keys(a).some(m=>!["dropCap","lines","wrap","hAnchor","vAnchor","hSpace"].includes(m))||a.wrap!==void 0&&a.wrap!=="around"||a.hAnchor!==void 0&&a.hAnchor!=="text"||a.vAnchor!==void 0&&a.vAnchor!=="text")return;let l=[e],d=0;for(;l.length;)for(let m of l.pop().children)if(m.kind==="textValue"?d+=m.value.length:l.push(m),d>32)return;let s=Is({paragraph:e,paragraphId:e.id,indentLeft:t.indent.left,available:t.available,measurer:n,cache:void 0,cacheKey:null,formatting:t,producer:"drop-cap-probe",styleCascade:r,tabStops:t.tabStops,flow:{firstLineOffset:t.indent.firstLine-t.indent.hanging}}),c=s[0];if(s.length!==1||!c||c.spans.length===0||c.spans.some(m=>m.equation||m.projected||m.style.baselineShiftPt!==c.spans[0].style.baselineShiftPt)||c.spans.reduce((m,g)=>m+g.text.length,0)>32)return;let u=Math.max(...c.spans.map(m=>m.box.x+m.box.width))+t.indent.right;if(!(u>0)||u>=t.available||u>1584)return;let f=pb([{localName:"framePr",attributes:{x:"0",y:"0",w:String(Math.ceil(u*20)),hSpace:a.hSpace??"0"}}]);return f?{...f,width:u+.001,dropCapLines:i,token:`drop-cap:${e.id}:${f.token}`}:void 0}function LM(e,t,n,r){let o=e.lines[0],a=n[0];if(!o||!a)return {fragment:e,height:e.box.height};let i=n[Math.min(t,n.length)-1],l=Math.max(0,t-n.length)*i.box.height,d=i.box.y+i.baseline+l-r,s=i.box.y+i.box.height+l-r,c=o.spans[0]?.style.baselineShiftPt??0,u=d+c-o.baseline-o.box.y;return {height:s,fragment:{...e,box:{...e.box,height:s},lines:e.lines.map(f=>({...f,baseline:f.baseline+u,spans:f.spans.map(m=>({...m,box:{...m.box,y:m.box.y+u}}))}))}}}var NM=new WeakMap;function cx(e,t){if(!t)return false;let n=NM.get(e);return n===void 0&&(n=yt(e,t).some(r=>r.projection.wrap==="topAndBottom"),NM.set(e,n)),n}function AM(e,t,n){if(!t)return false;let r=$n(e),o=yt(e,t),a=o.map(l=>r.get(l.atomId)).filter(l=>l!==void 0);if(a.length===0)return false;let i=a.reduce((l,d)=>Math.min(l,d),1/0);return n.end<=i?true:a.some(l=>l>=n.start&&l<n.end)&&n.end<=i+1&&!o.some(l=>{let d=r.get(l.atomId);return l.projection.wrap==="topAndBottom"&&d!==void 0&&d>=n.start&&d<n.end})}function DM(e){let{pageZones:t,brokenLines:n,lineIndex:r,fragmentFirstLine:o,appliedSkipByLineIndex:a}=e;if(r<=o)return t;let i=$n(e.paragraph),l=new Map,d=0;for(let s=o;s<r;s++){let c=n[s];for(let u of i.values())u>=c.start&&u<c.end&&l.set(u,d);d+=(a.get(s)??c.exclusionSkipBefore??0)+c.height;}return l.size===0?t:Object.freeze([...t,...Bf({...e,anchorLineTopByModelStart:l})])}function _M(e){let t=new Map,n=new Map,r=(a,i)=>{if(a.sourceKind||a.input.mode!=="square"&&a.input.mode!=="topAndBottom"||a.anchorModelStart!==0||!e.drawingLayout)return false;let l=e.paragraphAt(i+1);if(!l||l.frame||l.paragraph.id!==a.anchorParagraphId)return false;let d=n.get(l.paragraph.id);return d||(d=new Set(yt(l.paragraph,e.drawingLayout).filter(({projection:s})=>s.position?.vertical.relativeFrom==="paragraph"&&s.position.vertical.align===null&&(s.position.vertical.offsetEmu??0)>=0).map(({projection:s})=>s.drawingNodeId)),n.set(l.paragraph.id,d)),d.has(a.drawingNodeId)},o=a=>a.reduce((i,l)=>i+l.height+(l.exclusionSkipBefore??0),0);return {select(a,i,l,d,s={}){let{placement:c=false,omittedAnchor:u}=s;return d.filter(f=>{if(f.anchorParagraphId===u)return false;if(f.sourceKind==="furniture")return true;let m=e.paragraphOrder.get(a.paragraph.id),g=e.paragraphOrder.get(f.anchorParagraphId),p=f.pageFramedBand===true||!c&&r(f,i);if(m!==void 0&&g!==void 0){if(g>m&&!p)return false}else {let h=e.paragraphIndex(f.anchorParagraphId);if(h<0||h>i&&!p)return false}return e.columnCount>1&&f.columnIndex!==l?false:!(c&&!f.sourceKind&&f.anchorParagraphId===a.paragraph.id&&f.input.mode==="topAndBottom")}).map(f=>{if(c||!r(f,i))return f;let m=e.paragraphAt(i+1),g=a.contextualSpacing&&a.styleId!==null&&a.styleId===m?.styleId?0:a.spacing.after,p={...f.input,wrapDistances:{...f.input.wrapDistances,top:f.input.wrapDistances.top+g}};return {...f,input:p,verticalBand:Dd(p)}})},measure(a,i,l,d,s){let c=l.find(u=>r(u,i));c&&t.set(`${a}:${c.anchorParagraphId}`,Math.max(0,o(d)-o(s(c.anchorParagraphId))));},displacement(a,i){return t.get(`${a}:${i}`)??0}}}var jM=new WeakMap,WM=e=>!["inline","behind","inFront"].includes(e.wrap);function zM(e,t){if(!e)return false;for(let n of [e.headers,e.footers])for(let r of n.values())if(r.anchoredDrawings?.some(t))return true;return false}function VM(e,t=false){return zM(e,n=>WM(n)&&!(t&&n.accessibility.hidden))}var HM=e=>e.accessibility.hidden&&WM(e);function BV(e,t){return zM(e,HM)?true:[t?.header,t?.footer].some(r=>r?.anchoredDrawings?.some(HM)??false)}function GM(e,t){if(t.drawingExclusionPass!==void 0||t.drawingExclusionConverged||t.yieldHiddenFurnitureZones||!BV(t.furniture,t.continuedPageFurniture))return false;try{return e instanceof Mo||e instanceof mr}catch{return false}}function ux(e,t=false){let n=[];for(let r of [e.header,e.footer]){if(!r?.part||!r.anchoredDrawings?.length)continue;let o=jM.get(r.part);o||(o=chunk6KA3L3FR_cjs.dd(r.part),jM.set(r.part,o));for(let a of r.anchoredDrawings){if(t&&a.accessibility.hidden)continue;let i=o.get(a.drawingNodeId);if(!i)continue;let l=_d({drawing:a,projection:i,sourceOrder:-1,contentLeft:0,contentRight:e.contentBox.width});if(!l)continue;let d=Yu(a,r.box,e.box),[s]=Hl([l],a.x-d.x+e.contentBox.x,a.y-d.y+e.contentBox.y,{left:0,right:e.contentBox.width});!s||s.verticalBand.y>=e.contentBox.height||s.verticalBand.y+s.verticalBand.height<=0||n.push(Object.freeze({...s,sourceKind:"furniture",drawingNodeId:`${r.partName}:${a.drawingNodeId}`,anchorParagraphId:`${r.partName}:${a.anchorParagraphId}`}));}}return Object.freeze(n)}function KM(e,t,n,r,o=false){return ux({header:e.header,footer:e.footer,box:e.box,contentBox:{x:e.box.x+n,y:e.box.y+t.top,width:r,height:t.height}},o)}var $M=new WeakMap;function fx(e){if(e===void 0||e.size===0)return "";let t=$M.get(e);if(t!==void 0)return t;let n=[...e].join(",");return $M.set(e,n),n}function UM(e){let t=fx(e.chrome),n=fx(e.placeholder),r=fx(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function YM(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}`}function XM(e,t,n){if(!t)return e.map(n);let r=0;if(e.length!==t.bodies.length)for(;r<Math.min(e.length,t.bodies.length)&&e[e.length-1-r]===t.bodies[t.bodies.length-1-r];)r+=1;return e.map((o,a)=>o===t.bodies[a]?t.prepared[a]:a>=e.length-r?t.prepared[a+t.bodies.length-e.length]:n(o))}function qM(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];return n===o||n.kind==="paragraph"&&o.kind==="paragraph"&&n.id===o.id})}function ZM(e,t){return e!==1?"columns":t?.size?JSON.stringify([...t].sort()):"body"}function JM(e,t=12,n){return e.map((r,o)=>{if(r.kind!=="paragraph"||!r.listItem&&!r.contextualSpacing)return r;let a=g=>{let p=e[o+g],h=r.paragraph?Hi(r.paragraph,g,p,n):p?.kind==="paragraph"?p.styleId:void 0;return h!==void 0&&h===r.styleId},i=g=>{let p=e[o+g];return !(g<0&&p?.kind==="paragraph"&&p.paragraph!==void 0&&_n(p.paragraph)!==void 0)&&p?.kind==="paragraph"&&r.listItem!==void 0&&p.listItem?.numId===r.listItem.numId||r.contextualSpacing&&a(g)},l=n?.fixedParagraphSpacing===true,d=r.paragraph?_n(r.paragraph)?.at(-1)?.paragraph:void 0,s=d?wn(d,1e3,n,void 0,void 0,false,t).props:r.props,c=ia(r.props,{lineUnitPt:t,fixedAutoSpacing:l}),u=ia(r.props,{inList:r.listItem!==void 0,lineUnitPt:t,fixedAutoSpacing:l}),f=r.listItem&&o===0||i(-1)?u.before:c.before,m=d?ia(s,{lineUnitPt:t,fixedAutoSpacing:l}).after:i(1)?u.after:c.after;return r.contextualSpacing&&(a(-1)&&(f=0),a(1)&&(m=0)),f===r.spacing.before&&m===r.spacing.after?r:{...r,spacing:{before:f,after:m}}})}function QM(e,t){let n=e;return t.forEach((r,o)=>{r.kind!=="paragraph"||r.listItem===void 0||(n===e&&(n=[...e]),n[o]=`${n[o]}~ls~${r.spacing.before},${r.spacing.after}`);}),n}var LV={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",clipToBox:"hashed",outOfFlow:"hashed",positionedFrame:"hashed",range:"hashed",props:"hashed",styleId:"hashed",outlineLevel:"hashed",alignment:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",paragraphEnd:"hashed",emptyParagraphStyle:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",markChangeSites:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},NV={kind:"covered",floatingWrap:"hashed",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function tB(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var AV=tB(LV),DV=tB(NV),eB=new WeakMap;function Fp(e){let t=eB.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify([up(e),...DV.map(r=>e[r])]):JSON.stringify(AV.map(r=>e[r]));return eB.set(e,n),n}function nB(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&&Fp(r)!==Fp(o))return false}return true}function mx(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 rB=Object.freeze([]),oB=new Map;function aB(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 iB(e,t){let n=e,r=-1;for(let o=0;o<=t.length;o++){let a=t[o];if(a?.frame&&r<0&&(r=o),r<0||a&&(a.frame||a.kind!=="paragraph"))continue;let i=Math.min(o,e.length-1),l=chunk6KA3L3FR_cjs.a(new TextEncoder().encode(ie(e.slice(r,i+1))));n===e&&(n=[...e]);for(let d=r;d<=i;d++)n[d]=ie([e[d],l]);r=-1;}return n}function px(e,t){return e===t||e?.length===t?.length&&e?.signature===t?.signature}var Op=class{pending;checkpoint(){return this.pending}restore(t){this.pending=t;}same(t){return px(this.pending,t)}start(t,n){let r=this.pending?.item;return r&&r.fragment.paragraphId===n&&r.frame.token===t.token?{cursorY:r.fragment.box.y+r.fragment.box.height,previousSpaceAfter:r.fragment.spacing.after,groupId:r.groupId}:{cursorY:0,previousSpaceAfter:0}}add(t,n,r=n.paragraphId,o=0){let a=this.pending?.item,i=a?.groupId===r?a:void 0,l={frame:t,fragment:n,groupId:r,sourceOrder:i?.sourceOrder??o},d=chunk6KA3L3FR_cjs.a(new TextEncoder().encode(ie([this.pending?.signature??"",t.token,r,String(l.sourceOrder),Fp(n)])));this.pending={item:l,previous:this.pending,length:(this.pending?.length??0)+1,signature:d};}requiredAnchorBand(t){let n=0;for(let o=this.pending;o;o=o.previous)n=Math.max(n,o.item.frame.dropCapLines??0);let r=0;for(let o=0;o<n;o++){let a=t[Math.min(o,t.length-1)];r+=(a?.height??0)+(a?.exclusionSkipBefore??0);}return r}publish(t,n,r,o=[]){if(!this.pending)return [];let a=new Array(this.pending.length);for(let d=this.pending;d;d=d.previous)a[d.length-1]=d.item;let i=new Map,l=a.map(d=>{let s=d.frame.dropCapLines?LM(d.fragment,d.frame.dropCapLines,o,t.text.y):void 0,c=WO(s?.fragment??d.fragment,d.frame,t),u={x:t[d.frame.horizontalAnchor].x+d.frame.x,y:c.box.y,width:d.frame.width,height:s?.height??c.box.height},f=i.get(d.groupId);if(f){let m=Math.max(f.x+f.width,u.x+u.width),g=Math.max(f.y+f.height,u.y+u.height);f.x=Math.min(f.x,u.x),f.y=Math.min(f.y,u.y),f.width=m-f.x,f.height=g-f.y;}else i.set(d.groupId,u);return {item:d,fragment:c}});return this.pending=void 0,l.map(({item:d,fragment:s})=>({...s,positionedFrame:{anchorId:n,columnIndex:r,groupId:d.groupId,sourceOrder:d.sourceOrder,...d.frame.dropCapLines?{dropCapLines:d.frame.dropCapLines}:{},wrap:d.frame.wrap,hSpace:d.frame.hSpace,vSpace:d.frame.vSpace,box:i.get(d.groupId)}}))}};function lB(e){let{topEdge:t,closingEdge:n,continuesAbove:r,continuesBelow:o,isLast:a,top:i}=e,{linesTop:l,linesBottom:d,regionX:s,indentLeft:c,available:u,appliedAfter:f}=e,m=e.drawn?e.borders:{},g=[],p,h=l,b=d,y=e.borders,x=y.left?Gn(y.left):0,S=y.right?Gn(y.right):0,R=y.left?s+c-y.left.spacePt-x:s+c,P=y.right?s+c+u+y.right.spacePt+S:s+c+u,w=Math.max(P-R,0);if(e.drawn&&e.topExtent>0&&t){let A=Gn(t),D=l-t.spacePt-A;g.push({side:"top",edge:t,box:{x:R,y:D,width:w,height:A}}),h=D;}let F=e.drawn?n:void 0,I=e.inFrame&&F&&!o?f:0;if(a&&F){let A=Gn(F),D=d+I+F.spacePt,j={x:R,y:D,width:w,height:A};g.push({side:o?"between":"bottom",edge:F,box:j}),o||(p={edge:F,box:j}),b=D+A;}let v=f-I,T=Math.max(b+v-i,0),k=r&&e.fragmentIndex===0?i:h,O=o&&a?i+T:b,L=Math.max(O-k,0),H=(A,D)=>({x:A,y:k,width:D,height:L});if(m.left&&g.push({side:"left",edge:m.left,box:H(R,x)}),m.right){let A=s+c+u+m.right.spacePt;g.push({side:"right",edge:m.right,box:H(A,S)});}if(m.bar){let A=Gn(m.bar);g.push({side:"bar",edge:m.bar,box:{x:s+c-m.bar.spacePt-A,y:l,width:A,height:Math.max(d-l,0)}});}return {strokes:g,bottomBorder:p,contentTop:h,contentBottom:b,boxLeft:R,boxWidth:w,bottom:b+v,height:T}}var sB=new WeakMap;function _V(e){let t=sB.get(e);if(t!==void 0)return t;let n=chunk6KA3L3FR_cjs.Bi(e).includes(chunk6KA3L3FR_cjs.Ua);return sB.set(e,n),n}function dB(e,t){let n=new Map,r=i=>{let{styleCascade:l}=e,d=Bi(i.paragraph,i.inheritedRunProperties,void 0,l?(c,u)=>dr(c,u,l):void 0,void 0,e.noteMarks,e.displayMode??Ye,void 0,e.inlineDrawingLayout,l?.themeFonts,void 0,e.documentProperties,t,e.refFields,e.revisionAuthorFilter,e.showFieldCodes,e.fieldCodeRanges?.get(i.paragraph.id)),s="";for(let c of d)s+=c.inlineDrawing||c.equation?"\uFFFC":c.text;return s.startsWith(chunk6KA3L3FR_cjs.Ua)&&/[^\f\n]/.test(s)},o=i=>{if(i.frame||!_V(i.paragraph))return false;let l=n.get(i.paragraph);if(l!==void 0)return l;let d=e.inlineDrawingLayout,s=!(d&&yt(i.paragraph,d).length>0)&&r(i);return n.set(i.paragraph,s),s},a=(i,l)=>l?.kind==="paragraph"&&l.borderGroupKey!==""&&i?.kind==="paragraph"&&i.borderGroupKey===l.borderGroupKey&&!i.frame&&o(l);return {joins:(i,l)=>l?.kind==="paragraph"&&l.borderGroupKey!==""&&i?.kind==="paragraph"&&i.borderGroupKey===l.borderGroupKey&&!a(i,l),admits:(i,l)=>l.borderGroupKey===""||i?.kind!=="paragraph"||i.borderGroupKey!==l.borderGroupKey||a(i,l),flowKeys:(i,l)=>{let d=i;for(let s=0;s+1<l.length;s+=1)a(l[s],l[s+1])&&(d===i&&(d=[...i]),d[s]=`${d[s]}~lbg`);return d}}}function fB(e,t,n,r,o,a){return e.some(i=>{if(i.kind!=="table")return false;let l=Zt(i,t,0,n,r,o,a)?.float;return l!==void 0&&l.ySpec!=="inline"})}function jV(e){let t=Math.max(0,e.columnEdges.length-1),n=0,r=0;for(let o of e.rows)for(let a of o.cells){let i=a.borders;if(!i)continue;let l=a.gridColumn<=0,d=a.gridColumn+a.gridSpan>=t;l&&(n=Math.max(n,i.left?.widthPt??0)),d&&(r=Math.max(r,i.right?.widthPt??0));for(let s of i.edgeSegments??[])l&&s.side==="left"&&(n=Math.max(n,s.edge.widthPt)),d&&s.side==="right"&&(r=Math.max(r,s.edge.widthPt));}return {left:n,right:r}}function mB(e,t,n){let r;for(let[o,a]of e.entries()){let i;for(let l of a.fragments){if(l.kind!=="table")continue;let d=l.floatingWrap;if(!d)continue;let s=l.box,c=d.float.distances??{top:0,right:0,bottom:0,left:0},u=jV(l),f=c.left>0?u.left:0,m=c.right>0?u.right:0,g={x:s.x-f,y:s.y,width:s.width+f+m,height:s.height},p=d.columnIndex,h=n.columnLefts?.[p]??0,b=n.columnWidths?.[p]??n.contentWidth,y={sourceKind:"table",drawingNodeId:`table:${l.tableId}`,anchorParagraphId:d.anchorId,anchorModelStart:0,sourceOrder:d.sourceOrder,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:p,y:g.y,verticalBand:{x:g.x-c.left,y:g.y-c.top,width:g.width+c.left+c.right,height:g.height+c.top+c.bottom},input:{mode:g.x-c.left<=h&&g.x+g.width+c.right>=h+b?"topAndBottom":"square",contentBounds:g,polygon:null,clipPolygon:null,wrapDistances:c,effectInsets:{top:0,right:0,bottom:0,left:0},textSide:"bothSides",contentLeft:h,contentRight:h+b}};i||(r??=new Map(t),i=[...t.get(o)??[]],r.set(o,i)),i.push(y);}}return r??t}var cB=new WeakMap;function gx(e,t,n){let r;if(!n.inlineDrawingLayout){let l=cB.get(n);l||cB.set(n,l=new WeakMap),r=l.get(e),r||l.set(e,r=new Map);let d=r.get(t);if(d!==void 0)return d}let o=Zt(e,t,0,n.styleCascade,n.displayMode,n.revisionAuthorFilter,n.compatibilityMode);if(!o?.float||o.float.vertAnchor!=="text")return 0;if(o.float.ySpec)return 1/0;let a=e.children.find(l=>l.kind==="tableProperties");if(n.isolatedFloatingTableId!==e.id&&a&&a.kind!=="textValue"&&a.children.some(l=>l.kind!=="textValue"&&l.localName==="tblOverlap"&&l.attributes.some(d=>d.localName==="val"&&d.value==="never")))return 1/0;let i=Math.max(0,o.float.yPt)+yB(o,e.id,n)+(o.float.distances?.bottom??0);return r?.set(t,i),i}function HV(e,t){let n=new Map(e.map(({table:o})=>[o.id,false]));if(!e.length)return n;let r=Ds(e);for(let o of t){if(o.kind!=="paragraph")continue;let a=r.get(o.paragraph.id);a?.length!==1||Pl(o.props)||o.spacing.before>0||WV(o.paragraph)||n.set(a[0].table.id,true);}return n}function WV(e){let t=[e];for(;t.length;){let n=t.pop();if(n.kind==="hardBreak"&&["page","column"].includes(chunk6KA3L3FR_cjs.Va(n)))return true;if("children"in n)for(let r of n.children)t.push(r);}return false}function pB(e,t,n,r,o,a){let i=jI(e,t,n,r,o,a),l=HV(i,e);return {positionedTables:i,positionedTablePolicy:l}}function gB(e,t){if(!t.positionedTables.length)return e;let n=[...e];for(let r of t.positionedTables)n[r.sourceIndex]=ie([e[r.sourceIndex],r.anchorId,t.positionedTablePolicy.get(r.table.id)?"split":"whole"]);return n}function hB(e,t,n){if(GV(e,n.zones,t,n.page))return false;let r=gx(e,n.width,t);return r>n.bottom?false:t.styleCascade?.doNotBreakWrappedTables?true:r<=n.bottom-n.top||!n.allowBreak||!zV(e,t,n)}function zV(e,t,n){let r=Zt(e,n.width,0,t.styleCascade,t.displayMode,t.revisionAuthorFilter,t.compatibilityMode),o=r?.float;if(!r||o?.vertAnchor!=="text"||o.ySpec||o.yPt<0)return false;let a=o.distances??{top:0,right:0,bottom:0,left:0};if(a.top>0||a.bottom>0)return false;let i=Ca(r,n.frames,t.compatibilityMode),l=r.columnWidthsPt.reduce((c,u)=>c+u,0),d=n.frames.text;if(i-a.left>d.left||i+l+a.right<d.left+d.width)return false;let s=n.top+o.yPt;for(let[c,u]of r.rows.entries()){if(s+=fr(u,r.columnWidthsPt,i,0,c===0?Lt(r,u,t):t,r.cellSpacingPt),s>n.bottom+.001)return false;if(!u.isHeader)return true}return false}function yB(e,t,n){let r=0;return Vi(e,0,0,0,t,0,{...un(n),onCellBreakKey:void 0,borderOwnershipBudget:eo(),vMergeResolveBudget:Ho(),nextLineId:()=>`floating-table-probe-${r++}`}).bottom}function VV(e,t,n,r){let o=r.frames.text;if(e.float.vertAnchor==="text"||o.left>r.frames.margin.left+.5||o.width<r.frames.margin.width-.5)return 0;let a=r.earlier.flatMap(x=>Mt(x)||x.kind==="table"&&x.floatingWrap?[]:x.kind==="table"?[x.box]:x.lines.map(S=>S.box));if(a.length===0)return 0;let i=Zt(e.table,t,0,n.styleCascade,n.displayMode,n.revisionAuthorFilter,n.compatibilityMode),l=i?.float;if(!i||!l||l.vertAnchor==="text"||l.ySpec==="inline")return 0;let d=l.distances??{top:0,right:0,bottom:0,left:0},s=Ca(i,r.frames,n.compatibilityMode),c=i.columnWidthsPt.reduce((x,S)=>x+S,0),u=s-d.left,f=s+c+d.right;if(u>o.left||f<o.left+o.width)return 0;let m=a.reduce((x,S)=>Math.max(x,S.y+S.height),0);if(!l.ySpec&&m<=Da(l,0,r.verticalFrames)-d.top)return 0;let g=yB(i,e.table.id,n),p=Da(l,g,r.verticalFrames),h=p-d.top,b=p+g+d.bottom,y=1/0;for(let x of a)x.y<b&&x.y+x.height>h&&x.x<f&&x.x+x.width>u&&(y=Math.min(y,x.y));return y>r.anchorY?0:b-y+r.anchorExtent}function bB(e,t,n,r,o,a){if(t.size===0)return 0;let i=0;for(let l of Ds(e).get(n)??[]){if(!t.has(l.table.id))continue;let d=hx(l.table,a.anchorY,r,a.frames,a.earlier,o),s=gx(l.table,r,o)+d-a.anchorY+Math.min(0,l.float.yPt);i=Math.max(i,s,VV(l,r,o,a));}return i}function hx(e,t,n,r,o,a){let i=Zt(e,n,0,a.styleCascade,a.displayMode,a.revisionAuthorFilter,a.compatibilityMode),l=i?.float;if(!i||!l||l.vertAnchor!=="text"||l.ySpec)return t;let d=i.columnWidthsPt.reduce((g,p)=>g+p,0),s=l.distances??{top:0,right:0,left:0},c=Ca(i,r,a.compatibilityMode)-s.left,u=gx(e,n,a)-Math.max(0,l.yPt)+s.top,f=t+l.yPt-s.top,m=o.flatMap(g=>g.kind==="table"?g.floatingWrap?[]:[g.box]:g.lines.flatMap(p=>[...p.spans.filter(h=>h.text.trim()).map(h=>h.box),...(p.drawings??[]).map(h=>h.paintBounds)])).sort((g,p)=>g.y-p.y);for(let g of m)c<g.x+g.width&&c+d+s.left+s.right>g.x&&f<g.y+g.height&&f+u>g.y&&(f=g.y+g.height);return f+s.top-l.yPt}function xB(e){let t=0;for(let n of e)n.kind!=="table"||n.floatingWrap?.float.vertAnchor!=="text"||(t=Math.max(t,n.box.y+n.box.height+(n.floatingWrap.float.distances?.bottom??0)));return t}var uB=new WeakMap;function GV(e,t,n,r=0){if(!n.pageExclusionZones||!t?.size)return false;let o=uB.get(n);if(o?.zones!==t){let c=[];for(let[u,f]of t){let m=1/0;for(let g of f)m=Math.min(m,n.paragraphOrderIndex?.(g.anchorParagraphId)??g.sourceOrder);c.push([u,m]);}c.sort((u,f)=>u[0]-f[0]);for(let u=c.length-2;u>=0;u--)c[u][1]=Math.min(c[u][1],c[u+1][1]);o={zones:t,remainingOrders:c},uB.set(n,o);}let a=0,i=o.remainingOrders.length;for(;a<i;){let c=a+i>>>1;o.remainingOrders[c][0]<r?a=c+1:i=c;}let l=o.remainingOrders[a]?.[1];if(l===void 0||l===1/0)return false;let d=[e],s=0;for(;d.length;){let c=d.pop();if(++s>1e4)return true;if(c.kind==="paragraph"){if(l<=(n.paragraphOrderIndex?.(c.id)??Number.MAX_SAFE_INTEGER))return true;continue}if(s+d.length+c.children.length>1e4)return true;for(let u of c.children)u.kind!=="textValue"&&d.push(u);}return false}var SB=new WeakMap;function PB(e,t){if(t){let n=SB.get(t);if(n===void 0){n=t.docDefaultsParagraph.some(r=>r.localName==="framePr");for(let r of t.styles.values())if(r.paragraphProperties.some(o=>o.localName==="framePr")){n=true;break}SB.set(t,n);}if(n)return true}return e.some(n=>n.kind==="paragraph"&&n.children.some(r=>r.kind==="paragraphProperties"&&r.children.some(o=>o.localName==="framePr")))}function RB(e,t,n){let r;for(let[o,a]of e.entries()){let i=new Set,l;for(let d of a.fragments){if(d.kind!=="paragraph")continue;let s=d.positionedFrame;if(!s||i.has(s.groupId))continue;i.add(s.groupId);let c=s.box,u=s.columnIndex,f=n.columnLefts?.[u]??0,m=n.columnWidths?.[u]??n.contentWidth,g={left:s.hSpace,right:s.hSpace,top:s.vSpace,bottom:s.vSpace},p=c.x-s.hSpace<=f&&c.x+c.width+s.hSpace>=f+m,h={sourceKind:"frame",sourceOrder:s.sourceOrder,drawingNodeId:`frame:${s.groupId}`,anchorParagraphId:s.anchorId,anchorModelStart:0,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:u,y:c.y,verticalBand:{x:c.x-s.hSpace,y:c.y-s.vSpace,width:c.width+2*s.hSpace,height:c.height+2*s.vSpace},input:{mode:s.wrap==="none"||s.wrap==="notBeside"||p?"topAndBottom":"square",contentBounds:c,polygon:null,clipPolygon:null,wrapDistances:g,effectInsets:{left:0,right:0,top:0,bottom:0},textSide:"bothSides",contentLeft:f,contentRight:f+m}};l??=[...t.get(o)??[]],l.push(h);}l&&(r??=new Map(t),r.set(o,l));}return r??t}function yx(e,t=false){let n=new Set;for(let r of e){let o=new Set,a=new Map;for(let i of r.fragments){if(i.kind!=="paragraph"||!i.positionedFrame)continue;let l=i.positionedFrame;if(l.dropCapLines!==void 0){let u=a.get(l.anchorId);u&&(o.add(u),o.add(l.groupId)),a.set(l.anchorId,l.groupId);}let d=l.wrap!=="around"||l.box.x-l.hSpace<=0&&l.box.x+l.box.width+l.hSpace>=r.contentBox.width,s=l.box.y-l.vSpace,c=l.box.y+l.box.height+l.vSpace;(t||l.dropCapLines!==void 0&&(!l.anchorId||c>r.contentBox.height+.001)||d&&c>0&&s<r.contentBox.height&&l.box.height+2*l.vSpace>=r.contentBox.height-.001)&&o.add(l.groupId);}for(let i of r.fragments)i.kind==="paragraph"&&i.positionedFrame&&o.has(i.positionedFrame.groupId)&&n.add(i.paragraphId);}return n}function wB(e){let{geometry:t,insets:n}=e;return Object.freeze({pageNumber:e.pageNumber,onPageParityRead:e.onPageParityRead,pageWidth:t.width,pageHeight:t.height,marginLeft:t.margin.left,marginRight:t.margin.right,marginBottom:Fr(t.margin.bottom),contentInsetTop:n.top,contentInsetBottom:n.bottom,contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentBandHeight:n.height,ownerPartName:e.ownerPartName,storyKind:"body"})}function kB(e,t,n){return e.shading===void 0&&bx(e,t,n)}function bx(e,t,n){if(e.listItem!==void 0)return false;let{top:r,bottom:o,left:a,right:i,between:l,bar:d}=e.borders;return (r??o??a??i??l??d)||n&&yt(e.paragraph,n).length>0?false:t.every(s=>s.drawings.length===0&&!s.pageBreakAfter&&!s.columnBreakAfter&&s.spans.every(c=>c.text.length===0))}var UV=e=>e.drawings.length>0||e.spans.some(t=>/[^\f\n]/.test(t.text));function TB(e,t,n){let r=t[0];return r!==void 0&&r.start===0&&Eo(r)&&t.some((o,a)=>a>0&&UV(o))&&!(n&&yt(e.paragraph,n).length>0)}function vB(e,t){if(t===void 0)return e;let n=Math.min(e.height,t.clip.y+t.clip.height-t.y);return {...e,y:t.y,height:Math.max(n,0)}}var YV="http://schemas.openxmlformats.org/wordprocessingml/2006/main";var FB=new WeakMap;function Ip(e){let t=FB.get(e);if(t!==void 0)return t;let n=e.rows.some(r=>r.cells.some(o=>o.vMergeContinue));return FB.set(e,n),n}var XV=new Set(["p","r","t","tab","br","cr","noBreakHyphen","softHyphen","hyperlink","fldSimple","fldChar","instrText","bookmarkStart","bookmarkEnd","proofErr","pPr","rPr"]);function Cp(e){return e.cells[0]?.logicalGridColumn===void 0?e.cells:[...e.cells].reverse()}function Mp(e,t){let n=0;for(let r of e){let o=0;for(let a of Cp(r)){if(a.vMergeContinue||a.textDirection!=="horizontal"||a.gridColumn!==o||(o+=a.gridSpan,o>t))return false;for(let i of a.blocks){if(i.kind!=="paragraph")return false;let l=[{node:i,depth:0,properties:false}];for(;l.length>0;){let{node:d,depth:s,properties:c}=l.pop();if(++n>8192||s>32)return false;if(d.kind==="textValue")continue;if(d.namespaceUri!==YV||!c&&!XV.has(d.localName)||d.localName==="br"&&d.attributes.some(f=>f.localName==="type"&&f.value!=="textWrapping")||["drawing","pict","object","txbxContent","tbl","vMerge","framePr"].includes(d.localName)||n+l.length+d.children.length>8192)return false;let u=c||d.localName==="pPr"||d.localName==="rPr";for(let f of d.children)l.push({node:f,depth:s+1,properties:u});}}}if(o!==t)return false}return true}function xx(e,t,n,r,o,a){if(e.cellSpacingPt>0||e.float||Ip(e)||e.columnWidthsPt.length>1024||![n,r,o].every(Number.isFinite)||(a.pageExclusionZones?.().length??0)>0)return;let i=lO(e,t,a);if(i===a||!Mp([t],e.columnWidthsPt.length))return;let l=0,d={...un(i),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-terminal-border-${l++}`},s=hn(t,e.columnWidthsPt,n,r,false,0,d);if(!(s.remainder!==null||s.bottom>o+.001))return {height:s.record.box.height,deps:i,probe:s.record}}function OB(e,t){return e.cells.length!==t.cells.length?false:e.cells.every((n,r)=>{let o=t.cells[r];return n.blocks.length===o.blocks.length&&n.blocks.every((a,i)=>{let l=o.blocks[i];return a.kind==="paragraph"&&l.kind==="paragraph"&&a.paragraphId===l.paragraphId&&a.lines.length===l.lines.length&&a.lines.every((d,s)=>d.spans.length===l.lines[s].spans.length&&d.spans.every((c,u)=>c.text===l.lines[s].spans[u].text))})})}function el(e,t,n,r,o,a,i,l,d,s=0,c){let u=0,f={...un(l),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-progress-${u++}`},m=zi(e,t,n,r,o,false,a,i,f,d,s);return m.fitted&&(!c?.requireEveryCell||m.record.cells.every((g,p)=>g.vMergeContinue||e.cells[p].blocks.length===0||g.blocks.length>0))}function Sx(e,t,n,r){if(e.height.rule!=="atLeast"||!(e.height.valuePt>0))return;let o=e.cells.map(i=>({cell:i,insets:t.cellContentInsets?.get(i.id)??qt(i,n===0)})),a=Ss(e.height.valuePt,o,t.cellMinimumContentInsets);return a<=r+.001?a:void 0}function IB(e,t,n,r){if(r.belowBandOnly||r.top<=r.columnTop+.001)return false;let o=r.band-r.columnTop-r.repeat,a=Sx(e,t,n,o);return a!==void 0&&a>r.bottom-r.top+.001}function CB(e,t){if(e.cells.some(i=>i.vMergeContinue))return false;let n=e.cells[0];if(!n)return false;let r=n.blocks[0];if(r?.kind!=="paragraph")return false;let o=Ao(r),a=t?jn(t,o,n.styleFormatting).paragraphProperties:ct(o);return Pl(a)}function Bp(e,t,n,r,o,a){let i=t.length,l=t[0],d=(h,b)=>a(t[h],b,h===0?Lt(e,l,o):o),s=e.rows[i],c=i===0?null:Ba(e,n,0,o,s?[...t,s]:t,h=>h.id===l.id),u=h=>h.endRow<i;if(c===null||!t.some((h,b)=>c.spansAt(b).some(u))){let h=0;for(let b=0;b<i;b+=1)h+=d(b,r+h);return {heightPt:h,planned:false,optionsAt:()=>{}}}let f=Lt(e,l,o),m=(h,b,y)=>hn(t[h],e.columnWidthsPt,n(),b,false,0,Ts(f,true),e.cellSpacingPt,y),g=(h,b,y)=>{if(y===void 0)return {options:y};let x=m(h,b,y);if(x.remainder===null)return {options:y,heightPt:x.record.box.height};c.withdrawAt(h);let S=c.rowOptions(h);return S===void 0?{options:void 0}:{options:S,heightPt:m(h,b,S).record.box.height}},p=0;for(let h=0;h<i;h+=1){let b=r+p;for(let x of c.spansAt(h))u(x)&&c.accept(x,b);let y=g(h,b,c.rowOptions(h));p+=y.heightPt??d(h,b);}return {heightPt:p,planned:true,optionsAt:(h,b)=>{let y=c.rowOptions(h);return y?.detachedSpanHeightPtByCellId===void 0?y:g(h,b,y).options}}}function MB(e,t,n,r,o,a,i){if(a.pageExclusionZones?.().length||t[n].cells.some(p=>p.vMergeContinue)||t[r+1]?.cells.some(p=>p.vMergeContinue))return null;let l=t.slice(n,r+1),d=l[0],s=d===e.rows[0],c=p=>s&&p===d,u={...a,pageExclusionZones:void 0},f=Ba(e,o,0,u,l,c);if(!f)return null;let m=[],g=0;for(let p=0;p<l.length;p+=1){for(let S of f.spansAt(p))f.accept(S,g);let h=l[p],b=c(h)?Lt(e,h,u):u,y=f.rowOptions(p),x;if(y){let S=()=>hn(h,e.columnWidthsPt,o,g,false,0,Ts(b,true),e.cellSpacingPt,y),R=S();R.remainder!==null&&(f.withdrawAt(p),y=f.rowOptions(p),R=S()),x=R.record.box.height;}else x=i(n+p);m.push(x),g+=x;}return m}var qV=256,BB=new WeakMap,EB=new WeakMap;function NB(e,t){let n=EB.get(e);return n===void 0&&(n=CB(e,t),EB.set(e,n)),n}function Ep(e,t,n,r){let o=e.rows[t];if(!o||!NB(o,n))return false;let a=t>0?e.rows[t-1]:void 0;return !(a&&pn(r)&&Px(a,n))}function Px(e,t){let n=BB.get(e);return n===void 0&&(n=ZV(e,t),BB.set(e,n)),n}function ZV(e,t){let n=e.cells[0];if(!n)return false;let r=n.blocks[0];if(r?.kind!=="paragraph")return false;let o=Ao(r),a=t?jn(t,o,n.styleFormatting).paragraphProperties:ct(o);return rt(a).keepNext}function Lp(e,t,n=Number.NEGATIVE_INFINITY){let{rows:r}=e;if(!e.keepsAt(t)||t>0&&e.keepsAt(t-1)&&!e.breaksAt(t))return null;let o=t,a=false;for(;o+1<r.length&&e.keepsAt(o+1)&&!e.breaksAt(o+1);){if(o+1-t>=qV){a=true;break}o+=1;}let i=a?o:o+1,l=Math.min(i,r.length-1),d=false;for(let m=t;m<=l;m+=1)r[m].cells.some(g=>g.vMergeContinue)&&(d=true);let s=d?e.mergedHeights?.(t,l):void 0;if(d&&!s)return null;let c=m=>s?.[m-t]??e.heightOf(m),u=0;for(let m=t;m<=o;m+=1)u+=c(m);if(a)return {end:o,kept:u,successor:e.heightOf(o+1),truncated:true};let f;if(i<r.length)f=e.breaksAt(i)?0:s&&r[i].cells.some(m=>m.vMergeContinue)?c(i):AB(e,i,n-u);else if(f=e.following(n-u),f===void 0)return null;return f===null?null:{end:o,kept:u,successor:f}}function AB(e,t,n){let r=e.heightOf(t);return e.placesWhole(t)||r<=n+.001?r:n===Number.NEGATIVE_INFINITY?e.openingOf(t):n>.001&&e.opensWithin(t,n+.001)?n:r}function Rx(e,t,n=Number.NEGATIVE_INFINITY){if(t>=e.rows.length)return;if(e.breaksAt(t))return 0;let r=Lp(e,t,n);return r?r.kept+r.successor:AB(e,t,n)}function JV(e,t){if(!(e>0)||!t(e))return Math.max(0,e);let n=0,r=e;for(let o=0;o<16;o+=1){let a=(n+r)/2;t(a)?r=a:n=a;}return r}function wx(e){let{structure:t,rows:n,left:r,deps:o,heightOf:a}=e,i=s=>{let c=n[s];return c!==void 0&&Px(c,o.styleCascade)},l={...o,pageExclusionZones:void 0,rowAtPageStart:false,keepLinesOpening:true},d=(s,c)=>{let u=n[s],f=Sx(u,o,t.cellSpacingPt,e.pageHeight);return f!==void 0&&f>c+.001?false:el(u,t.columnWidthsPt,r,0,c,false,0,l,Ea(u),t.cellSpacingPt,{requireEveryCell:true})};return {rows:n,keepsAt:i,breaksAt:s=>Ep(t,t.rows.length-n.length+s,o.styleCascade,o.compatibilityMode),heightOf:a,mergedHeights:(s,c)=>MB(t,n,s,c,r,o,a),placesWhole:s=>{let c=n[s];return c.height.rule==="exact"?true:c.cantSplit&&a(s)<=e.pageHeight+.001},openingOf:s=>JV(a(s),c=>d(s,c)),opensWithin:d,following:e.following}}var DB=(e,t)=>Zt(e,t.width,0,t.styleCascade,t.displayMode,t.authorFilter,t.compatibilityMode);function QV(e,t){if(e?.kind!=="table"||!e.table)return false;let n=DB(e.table,t),r=n?.rows.at(-1);return !!r&&!n.float&&Px(r,t.styleCascade)}var LB=new WeakMap;function eG(e,t,n,r){let o=e?.kind==="table"?e.table:void 0;if(!o)return null;let a=!r.pageExclusionZones&&!r.inlineDrawingLayout&&!r.hostedStory,i=a?LB.get(r):void 0,l=i?.get(o);if(l&&l.pageHeight===n&&l.at.width===t.width&&l.at.styleCascade===t.styleCascade&&l.at.displayMode===t.displayMode&&l.at.authorFilter===t.authorFilter&&l.at.compatibilityMode===t.compatibilityMode)return l.value;let d=tG(o,t,n,r);return a&&(i||(i=new WeakMap,LB.set(r,i)),i.set(o,{at:t,pageHeight:n,value:d})),d}function tG(e,t,n,r){let o=DB(e,t);if(!o||o.float||o.rows.length===0)return null;if(NB(o.rows[0],t.styleCascade))return {breaksPage:true,height:0};let a=(h,b)=>fr(h,o.columnWidthsPt,0,0,b,o.cellSpacingPt),i=[];for(let h of o.rows){if(!h.isHeader)break;i.push(h);}let l=Bp(o,i,()=>0,0,r,(h,b,y)=>a(h,y)).heightPt;if(l>n+.001)return null;let d=pn(t.compatibilityMode);if(i.length>0&&!d)return {height:l};let s=o.rows.slice(i.length),c=new Map,u=h=>{let b=c.get(h);if(b===void 0){let y=i.length===0&&h===0;b=a(s[h],y?Lt(o,s[0],r):r),c.set(h,b);}return b},f=false,m=wx({structure:o,rows:s,left:0,deps:r,pageHeight:n,heightOf:u,following:()=>(f=true,null)}),g=l+(Rx(m,0)??0);if(!f)return {height:g};let p=Lp({...m,following:()=>0},0);return p?{height:g,throughHeight:l+p.kept}:{height:g}}function _B(e,t,n){let r={width:t,styleCascade:n,displayMode:e.displayMode??Ye,authorFilter:e.revisionAuthorFilter,compatibilityMode:e.compatibilityMode};return {endsKept:o=>QV(o,r),opening:(o,a,i,l)=>eG(o,{...r,width:a},i,l)}}var nG=64;function jB(e,t,n,r,o,a,i,l,d){if(e.cellSpacingPt>0||e.float||t.length===0||t.length>nG||e.columnWidthsPt.length>1024||![r,o,a,i,l].every(Number.isFinite)||Ip(e)||(d.pageExclusionZones?.().length??0)>0||!Mp([...t,n],e.columnWidthsPt.length))return;let s=t.reduce((I,v)=>I+v.cells.length,n.cells.length);if(d.borderOwnershipBudget&&d.borderOwnershipBudget.intervalsRemaining<s||!(n.height.rule==="exact"||n.cantSplit&&l<=a+.001)&&l>a-o-i+.001)return;let u=t[t.length-1],f=Cp(u),m=Cp(n),g=hs([f,m],e.tableBorders,e.columnWidthsPt.length)[0],p=new Map,h=[];for(let I=0;I<f.length;I+=1)for(let v of g[I].edgeSegments??[])v.side==="bottom"&&h.push({start:v.gridStart,end:v.gridEnd,edge:v.edge});for(let[I,v]of f.entries()){let T=v.margins.bottom;for(let k of g[I].edgeSegments??[])k.side!=="bottom"||Ia(k.edge)>0||(T=Math.max(T,vn(v.margins.bottom,{state:"edge",...k.edge},true)));p.set(v.id,{...qt(v,true),bottom:T});}let b=0,y=0;for(let I of m)for(let v of f){if(v.gridColumn+v.gridSpan<=I.gridColumn||v.gridColumn>=I.gridColumn+I.gridSpan)continue;let T=0;for(let k of h)k.end<=v.gridColumn||k.start>=v.gridColumn+v.gridSpan||(T=Math.max(T,Ia(k.edge)));y=Math.max(y,Nm(I.borders.top,v.borders.bottom,e.tableBorders.insideH,T,I.suppressesTopBand));}for(let I of m){let v=I.margins.top+y,T=I.gridColumn+I.gridSpan;for(;b<h.length&&h[b].end<=I.gridColumn;)b++;for(let k=b;k<h.length&&h[k].start<T;k++)Ia(h[k].edge)>0||(v=Math.max(v,vn(I.margins.top,{state:"edge",...h[k].edge},true,false,true)));p.set(I.id,{...qt(I,true),top:v});}if([u,n].every(I=>I.cells.every(v=>{let T=qt(v,true),k=p.get(v.id);return T.top===k.top&&T.bottom===k.bottom})))return;let x=Lt(e,t[0],{...d,cellContentInsets:p}),S=0,R={...un(d),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,cellContentInsets:x.cellContentInsets,nextLineId:()=>`probe-header-border-${S++}`},P=o;for(let I of t){let v=hn(I,e.columnWidthsPt,r,P,true,0,R);if(P=v.bottom,v.remainder!==null||P>a+.001)return null}let w=P-o,F=hn(n,e.columnWidthsPt,r,P,false,0,R);return F.remainder!==null||F.bottom>a+.001?null:{bodyRowId:n.id,headerHeight:w,bodyHeight:F.bottom-P,deps:x}}var Np=.001;function rG(e){let t=0;return {...un(e),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-deferred-merge-${t++}`}}var oG=(e,t)=>e.vMergeContinue||t===void 0||t.blockIndex>=e.blocks.length;function aG(e,t,n){let r=new Set,o=n.remainder;if(o===null)return r;for(let[a,i]of e.cells.entries()){if(oG(i,o[a]))continue;let l=n.record.cells[a];if(!t.has(i.id)||l===void 0||l.blocks.length>0)return null;r.add(i.id);}return r}function iG(e,t,n){let r=e.cells.filter(s=>n.has(s.id)),o=new Map,a=new Map,i={...e,cells:e.cells.map(s=>n.has(s.id)?{...s,blocks:[]}:s)},l={...t,cells:t.cells.map(s=>{let c=s.vMergeContinue?r.find(f=>f.gridColumn===s.gridColumn):void 0;if(c===void 0)return s;o.set(c.id,s);let u={...c,vAlign:s.vAlign};return a.set(c.id,u),u})},d={...e,cells:e.cells.map(s=>a.get(s.id)??s)};return {headRow:i,nextRow:l,continuations:o,headSource:d}}function HB(e){let{plan:t,rows:n,rowIndex:r,structure:o,left:a,top:i,contentBottom:l}=e;if(!pn(e.compatibilityMode)||t===null||i<=Np)return null;let d=n[r],s=n[r+1],c=t.spansAt(r);if(d===void 0||s===void 0||c.length===0||d.height.rule==="exact"||s.height.rule==="exact"||t.spansAt(r+1).length>0||c.some(P=>P.endRow!==r+1))return null;let u=new Set(c.map(P=>P.headCellId));for(let P of d.cells){if(!u.has(P.id))continue;let w=s.cells.find(F=>F.vMergeContinue&&F.gridColumn===P.gridColumn);if(P.textDirection==="btLr"||w===void 0||w.gridSpan!==P.gridSpan||w.textDirection==="btLr")return null}let f=o.columnWidthsPt,m=o.cellSpacingPt,g=new Map([...u].map(P=>[P,Number.POSITIVE_INFINITY])),p=P=>e.positioned?P:void 0,h=fr(d,f,a,0,e.deps,m,{detachedSpanHeightPtByCellId:g},p(i)),b=i+h;if(h<=Np||b>l+Np)return null;let y=fr(s,f,a,0,e.nextDeps,m,void 0,p(b));if(b+y<=l+Np||!s.cantSplit&&el(s,f,a,b,l,false,0,{...e.nextDeps,rowAtPageStart:false},Ea(s),m,{requireEveryCell:true}))return null;let x={detachedSpanHeightPtByCellId:new Map([...u].map(P=>[P,h]))},S=zi(d,f,a,i,Number.POSITIVE_INFINITY,false,false,0,rG(e.deps),Ea(d),m,x,l),R=aG(d,u,S);return R===null||R.size===0?null:{...iG(d,s,R),options:x,heightPt:h,nextSource:s}}function lG(e,t){return {id:t.id,gridColumn:e.gridColumn,...e.logicalGridColumn===void 0?{}:{logicalGridColumn:e.logicalGridColumn},...t.gridColumnId?{gridColumnId:t.gridColumnId}:{},gridSpan:e.gridSpan,vMergeContinue:true,paintInert:true,rowSpan:1,...t.shading===void 0?{}:{shading:t.shading},blocks:[],box:e.box}}function sG(e){let t=e.borders;if(e.box.height>0||!t)return e;let{bottom:n,...r}=t;return {...e,borders:{...r,...t.edgeSegments?{edgeSegments:t.edgeSegments.filter(o=>o.side!=="bottom")}:{},...t.strokes?{strokes:t.strokes.filter(o=>o.side!=="bottom")}:{}}}}function dG(e,t,n,r){let o=[],a=[];for(let[i,l]of t.entries()){let d=l.isHeaderRepeat?void 0:e.get(l.id),s=d?l.cells.filter(h=>d.deferred.continuations.has(h.id)):[];if(!d||s.length===0){o.push(l),a.push(n[i]);continue}let{deferred:c,headRecord:u}=d,f=l.box.y,m={...u,isContinuation:true,...l.hasContinuation?{hasContinuation:true}:{},box:{...u.box,y:f,height:0},cells:u.cells.map(h=>s.find(b=>b.id===h.id)??{...h,blocks:[],box:{...h.box,y:f,height:0}})},g={...l,cells:l.cells.map(h=>{let b=c.continuations.get(h.id);return b?lG(h,b):h})},p=r.get(l);p&&(r.set(m,p),r.set(g,p)),o.push(m,g),a.push(c.headSource,c.nextSource);}return {rows:o,sources:a}}function WB(){let e=new Map,t=null;return {rowAt(n,r){let o=t?.index===n?t.row:r;return t=null,o},commit(n,r,o){t={index:n+1,row:r.nextRow},e.set(r.nextRow.id,{deferred:r,headRecord:o});},finish(n){return e.size===0?n:n.map(r=>Ma(r)?{...r,cells:r.cells.map(sG)}:r)},publish(n,r,o){return e.size===0?{rows:n,sources:r}:dG(e,n,r,o)}}}var Uo=.001;function zB(e,t,n,r,o){let a=o.inlineDrawingLayout;if(!a||pn(o.compatibilityMode))return null;let i=new Set(cG(e,a,o));if(i.size===0)return null;let l=fG(e,t,n,r,a,{...o,outOfCellFloatParagraphs:i});for(let p of [...i])l.some(h=>h.paragraphId===p)||i.delete(p);if(i.size===0)return null;let d=0,s=new Map,c=new Set,u=(p,h)=>{let b=p.anchorRowBottom-p.anchorRowTop,y=p.anchorRowTop+d;return (p.top<=y+b+Uo?Math.max(y,p.bottom+p.leadIn):y)+b<=h+Uo},f=p=>p.map(h=>{let b=s.get(h.anchorParagraphId);return b===void 0||!["paragraph","line"].includes(h.verticalFrame)?h:Ad(h,0,-b)}),m=p=>p&&(h=>p(f(h))),g=o.onAnchorRepublish;return {deps:{...o,publishAnchoredDrawings:m(o.publishAnchoredDrawings),collectAnchoredDrawings:m(o.collectAnchoredDrawings),...g?{onAnchorRepublish:(p,h)=>g(p,f(h))}:{},outOfCellFloatParagraphs:i},clear:(p,h,b,y)=>{for(let S of l)c.has(S.paragraphId)||(S.top>=y||!u(S,y))&&i.delete(S.paragraphId);l=l.filter(S=>i.has(S.paragraphId)&&S.bottom>p+Uo&&S.top<y);let x=p;for(let S=0;l.length>0&&S<=l.length;S+=1){let R=x+h(x),P=l.find(w=>w.top<=R+Uo&&w.bottom>x+Uo);if(!P)break;x=P.bottom;}d+=x-p;for(let S of b)for(let R of S.cells)for(let P of R.blocks)i.has(P.id)&&(c.add(P.id),d>Uo&&s.set(P.id,d));return x},end:()=>{l=[],d=0,s.clear(),c.clear(),i.clear();}}}function cG(e,t,n){let r=new Set;if(e.rows.some(a=>a.cells.some(i=>i.vMergeContinue)))return r;let o=ki(true,n);for(let a of e.rows)if(!a.isHeader){for(let i of a.cells)if(i.vAlign==="top")for(let l of i.blocks)l.kind==="paragraph"&&uG(l,t,o)&&r.add(l.id);}return r}function uG(e,t,n){let r=yt(e,t);return r.length===0?false:r.every(({projection:o})=>o.hidden||!Mf(o.wrap)?false:!Id(o,n))}function fG(e,t,n,r,o,a){let i=a.outOfCellFloatParagraphs,l=[],d=g=>{for(let p of g)l.push(p);},s=a.pageExclusionZones,c=0,u=Vi(e,n,r,0,t,0,{...un(a),measuringOnly:a.measuringOnly,anchorDeferOnly:false,publishAnchoredDrawings:d,collectAnchoredDrawings:d,onCellBreakKey:void 0,...s?{pageExclusionZones:()=>s().filter(g=>!i.has(g.anchorParagraphId??""))}:{},borderOwnershipBudget:eo(),vMergeResolveBudget:Ho(),nextLineId:()=>`out-of-cell-float-probe-${c++}`}),f=pG(u.fragment),m=[];for(let g of l){if(!i.has(g.anchorParagraphId))continue;let p=o.projectionForAtom?.(g.drawingNodeId),h=p?_d({drawing:g,projection:p,sourceOrder:0,contentLeft:-1e6,contentRight:1e6}):null;if(!h)continue;let b=h.verticalBand.y,y=h.verticalBand.y+h.verticalBand.height,x=f.get(g.anchorParagraphId);x&&(x.contentTop!==void 0&&g.paintBounds.y<=x.contentTop+Uo&&(b=Math.min(b,x.top)),y>b+Uo&&m.push(Object.freeze({top:b,bottom:y,paragraphId:g.anchorParagraphId,anchorRowTop:x.top,anchorRowBottom:x.bottom,leadIn:Math.max(0,x.top-mG(u.fragment,b))})));}return m}function mG(e,t){let n=e.rows.find(r=>r.box.y+r.box.height>=t-Uo);return n?n.box.y:t}function pG(e){let t=new Map;for(let n of e.rows){let r=n.box.y+n.box.height;for(let o of n.cells)for(let[a,i]of o.blocks.entries())i.kind==="paragraph"&&t.set(i.paragraphId,{top:n.box.y,bottom:r,...a===0?{contentTop:i.box.y}:{}});}return t}var co=.001,gG=16;function hG(e,t,n,r=()=>0,o=()=>false){return (a,i)=>{if(i<=a+co)return true;let l=a+r(a),d=t;if(o()&&(l+=1,d+=1),l>i+co)return true;for(;d<e.length;d+=1)if(l+=n(e[d],l),l>i+co)return true;return false}}function yG(e){let t=e.input;if(t.mode==="topAndBottom"){let d=e.verticalBand;return {top:d.y,bottom:d.y+d.height,left:-1/0,right:1/0}}if(t.mode==="square"||!t.polygon||t.polygon.length<3){let d=Md(t.contentBounds,t.effectInsets,t.wrapDistances);return {top:d.y,bottom:d.y+d.height,left:d.x,right:d.x+d.width}}let n=1/0,r=-1/0,o=1/0,a=-1/0;for(let d of t.polygon)n=Math.min(n,d.y),r=Math.max(r,d.y),o=Math.min(o,d.x),a=Math.max(a,d.x);let i=t.effectInsets,l=t.wrapDistances;return {top:n-i.top-l.top,bottom:r+i.bottom+l.bottom,left:o-i.left-l.left,right:a+i.right+l.right}}function bG(e,t){let n;for(let r of e.rows){for(let o of r.cells)for(let a of o.blocks){if(a.localName!=="p")continue;let i=t(a.id);i!==void 0&&(n===void 0||i<n)&&(n=i);}if(n!==void 0)return n}return n}function VB(e,t,n,r){let o=n.pageExclusionZones;if(!o)return null;let a=n.paragraphOrderIndex,i=a?bG(e,a):void 0,l=`${t}.`,d=e.columnWidthsPt.reduce((p,h)=>p+h,0),s=(p,h)=>{if(p.sourceKind==="furniture")return true;if(p.sourceKind!==void 0||i===void 0||!a||h!==void 0&&p.columnIndex!==h||p.anchorParagraphId.startsWith(l))return false;let b=a(p.anchorParagraphId);return b!==void 0&&b<i},c,u,f=[],m=(p,h)=>{let b=o(),y=r.flow.flowColumn?.();(b!==c||y!==u)&&(c=b,u=y,f=b.filter(w=>s(w,y)).map(yG).sort((w,F)=>w.top-F.top));let x=r.left(),S=r.bottom(),R=f.filter(w=>w.bottom<S-co&&w.left<x+d-co&&w.right>x+co),P=p;for(let w=0;w<gG;w+=1){let F=R.find(I=>I.bottom>P+co);if(!F||!h.reaches(P,F.top))return P;P=F.bottom;}return P},g={pending:void 0,clear(p){let h=r.flow.cursorY,b=m(h,p);if(b<=h+co||b>=r.bottom()-co)return false;let y=r.opensRegion();return y&&!p.fitsAt(b)?false:(r.flow.cursorY=b,r.moved(b,y),true)},clearPending(p){let h=g.pending;h&&g.clear({reaches:(b,y)=>y<=b+co||h.reaches(b+p,y),fitsAt:b=>h.fitsAt(b+p)});},fragment:(p,h,b,y)=>({reaches:hG(e.rows,p,r.heightOf,b,y),fitsAt:h})};return g}var xG=Number.MAX_SAFE_INTEGER/1024;function KB(e,t){let{columnWidth:n,columnLeft:r,contentHeight:o,advanceColumn:a,anchorFrames:i,verticalAnchorFrames:l,styleCascade:d,displayMode:s,revisionAuthorFilter:c,deps:u,shiftAnchor:f,publishFragment:m}=t,g=n(),p=Zt(e,g,0,d,s,c,t.compatibilityMode);if(!p||p.rows.length===0)return {outOfFlow:false};let h=p.float!==void 0&&(p.float.vertAnchor!=="text"||t.positionTextTable===true)&&p.float.ySpec!=="inline",b=p.float===void 0;b&&Ep(p,0,d,t.compatibilityMode)&&t.pageHoldsContent(t.cursorY)&&t.advancePage();let y=t.cursorY,x=h?l():void 0,S=h?()=>xG:o,R=()=>p.float?Ca(p,i(),t.compatibilityMode):r()+bs(p,n()),P=R();!h&&p.float&&p.float.vertAnchor==="text"&&!p.float.ySpec?t.cursorY=Math.max(0,Math.min(t.cursorY+p.float.yPt,S())):h&&p.float&&x&&(t.cursorY=Da(p.float,0,x));let w=(ae,be=t.cursorY,Z)=>fr(ae,p.columnWidthsPt,P,0,Z??I,p.cellSpacingPt,void 0,I.pageExclusionZones?.().length?be:void 0),F=h||p.float?null:zB(p,e.id,P,t.cursorY,u),I=F?.deps??u,v=[];for(let ae of p.rows)if(ae.isHeader)v.push(ae);else break;let T=ae=>Bp(p,v,()=>P,ae,I,w),k=T(t.cursorY),O=k.heightPt,L=k.planned,H=O>(t.unreservedContentHeight?.()??S())+.001,A=!H,D=0,j=t.cursorY,C=0,M=[],_=new Map,U=[],ne=new Map,X=WB(),W=new Set(p.rows),z=false,$=h||p.float?null:VB(p,e.id,I,{flow:t,left:()=>P,bottom:S,opensRegion:()=>M.every(ae=>ae.isHeaderRepeat)&&!t.regionHoldsContent(j),moved:(ae,be)=>{M.length>0||(j=ae,C=be?ae:0);},heightOf:(ae,be)=>w(ae,be)}),V=()=>{let ae=Z=>L?T(Z).heightPt:O,be=Z=>Z+ae(Z)<=S()+.001;$?.clear($.fragment(v.length,be,ae));},te=pn(t.compatibilityMode),Q,Y,de=(ae,be)=>{be.cellContentInsets&&ne.set(ae,be.cellContentInsets);},J=()=>{if(C=0,M.length===0){F?.end();return}let ae=M.length-1,be=M[ae],Z=U[ae];if(!be.isContinuation&&W.has(Z)){let Re={...I,cellContentInsets:ne.get(be)??I.cellContentInsets},Ce=xx(p,Z,P,be.box.y,S(),Re);if(Ce&&OB(be,Ce.probe)){let Ae={...be,box:{...be.box,height:Ce.height},cells:be.cells.map(qe=>({...qe,box:{...qe.box,height:Ce.height}}))};M[ae]=Ae,ne.delete(be),de(Ae,Ce.deps),t.cursorY+=Ce.height-be.box.height;}}({rows:M,sources:U}=X.publish(M,U,ne));let Pe=X.finish(Wi(M,p,U,I.borderOwnershipBudget,I.vMergeResolveBudget,void 0,f,I,ne)),Te=Pe[Pe.length-1],ge=Os({kind:"table",...h?{outOfFlow:true}:{},id:`${e.id}#f${D}`,tableId:e.id,fragmentIndex:D,rows:Pe,box:{x:P,y:j,width:p.columnWidthsPt.reduce((Re,Ce)=>Re+Ce,0),height:Te.box.y+Te.box.height-j}},p.columnWidthsPt,0,_),xe=h&&p.float&&x?bO(ge,Da(p.float,ge.box.height,x)-ge.box.y,f):ge;m(xe),F?.end(),D+=1,M=[],U=[],ne=new Map,Q=void 0;},ee=(ae,be)=>{if(v.length===0)return;let Z=ae?Y?.():void 0;if(Z===null)return;let Pe=()=>L&&!Z?T(t.cursorY):void 0,Te=Pe(),ge=Z?.headerHeight??Te?.heightPt??O;if(ae&&t.cursorY+ge>S()+.001)return;t.cursorY+ge>S()+.001&&t.cursorY>0&&(J(),a(),P=R(),j=t.cursorY,V(),Te=Pe(),ge=Te?.heightPt??ge);let xe=!ae&&t.cursorY+ge>S()+.001?t.unreservedContentHeight?.()??S():S();if(!ae&&t.cursorY+ge>xe+.001){H=true,A=false;return}if(ae&&!Z&&be&&!be(t.cursorY+ge))return;let Re=Lt(p,v[0],Z?.deps??I);for(let[Ce,Ae]of v.entries()){let qe=hn(Ae,p.columnWidthsPt,P,t.cursorY,ae,0,Re,p.cellSpacingPt,Te?.optionsAt(Ce,t.cursorY));if(qe.bottom>xe+.001)throw new mr("table-row-overheight",`Table header row ${Ae.id} overflowed the page content box`);M.push(qe.record),de(qe.record,Re),U.push(Ae),t.cursorY=qe.bottom;}Q=Z;},re=(ae,be=false)=>{J(),be?t.advancePage():a(),P=R(),j=t.cursorY,$?.clearPending(A&&v.length>0?O:0),A&&ee(true,ae);},oe=(ae,be)=>{let Z=new Map(be?[be]:[]);return wx({structure:p,rows:ae,left:P,deps:I,pageHeight:Math.max(S(),t.unreservedContentHeight?.()??0),heightOf:Pe=>{let Te=Z.get(Pe);return Te===void 0&&Z.set(Pe,Te=w(ae[Pe])),Te},following:Pe=>t.followingKeepOpening?.(Pe)})};if(te&&b&&!H&&v.length>0&&t.cursorY>.001){let ae=oe(p.rows.slice(v.length)),be=Pe=>(Rx(ae,0,Pe)??0)<=Pe+.001,Z=S()-O;!be(S()-t.cursorY-O)&&be(Z)&&(J(),a(),P=R(),j=t.cursorY);}H||(F&&(t.cursorY=F.clear(t.cursorY,ae=>L?T(ae).heightPt:O,v,S()),j=t.cursorY),v.length>0&&V(),ee(false));let ue=p.rows.slice(H?0:v.length),B=new Set,pe=Ba(p,()=>P,0,I,ue,ae=>B.has(ae.id)),Ie,ye=0,tt=0,Ne=(ae,be)=>{let Z=be??ue[ae];M.length===0?B.add(Z.id):B.delete(Z.id),Ie=gO(pe,ae,t.cursorY,S()),tt=Ie?.heightFloorPt??w(Z,t.cursorY,M.length===0?Lt(p,Z,I):I),ye=Ie?.heightFloorPt??(Q?.bodyRowId===ue[ae]?.id?Q.bodyHeight:tt);};for(let[ae,be]of ue.entries()){let Z=X.rowAt(ae,be);H&&ae>=v.length&&(A=true);let Pe=z;if(z=false,F){let Xe=M.length===0?Lt(p,Z,I):void 0,Ge=nt=>w(Z,nt,Xe);t.cursorY=F.clear(t.cursorY,Ge,[Z],S()),M.length===0&&(j=t.cursorY);}Ne(ae,Z);let Te,ge=Ea(Z),xe=false,Re=0,Ce=false,Ae=()=>({...Te??(Q?.bodyRowId===Z.id?Q.deps:M.length===0?Lt(p,Z,I):I),rowAtPageStart:Ce||t.cursorY<=.001||M.length>0&&M.every(Xe=>Xe.isHeaderRepeat)});Y=()=>xe?void 0:jB(p,v,Z,P,t.cursorY,S(),O,tt,I);let qe=()=>ye<=Math.max(S(),t.unreservedContentHeight?.()??0)+.001,Le=Xe=>Z.cantSplit||wF(Z,S()-Xe,Ge=>I.cellContentInsets?.get(Ge.id)??qt(Ge,p.cellSpacingPt===0),I.cellMinimumContentInsets),on=Ie?.coveredFromAbove===true,wt=Xe=>{let Ge=S(),nt=Ge-Xe;return nt<=.001?false:!xe&&ye<=nt+.001?true:!xe&&(Z.height.rule==="exact"||Le(Xe)&&qe())?false:el(Z,p.columnWidthsPt,P,Xe,Ge,xe,0,{...I,rowAtPageStart:false},ge,p.cellSpacingPt,{requireEveryCell:!xe&&ye<=Ge+.001})};if($){let Xe=p.rows.length-ue.length+ae,Ge=()=>xe;$.pending=$.fragment(Xe,wt,void 0,Ge),M.length===0&&$.clear($.pending)&&Ne(ae,Z);}let Fn=()=>{if(Te||xe||on||ye<=S()-t.cursorY+.001)return;let Xe=xx(p,Z,P,t.cursorY,S(),Ae());Xe&&(Te=Xe.deps,ye=Xe.height,z=true);},kt=b&&Z!==p.rows[0]&&Ep(p,p.rows.length-ue.length+ae,d,t.compatibilityMode)&&(M.some(Xe=>!Xe.isHeaderRepeat)||t.pageHoldsContent(j)),Tt=b&&!Pe&&!kt&&!on&&t.cursorY>.001&&(M.length===0||M.some(Xe=>!Xe.isHeaderRow)||!te&&!M.some(Xe=>Xe.isHeaderRepeat))?Lp(oe(ue,[ae,ye]),ae,S()-t.cursorY):null,Wt=!!Tt&&t.cursorY+Tt.kept+Tt.successor>S()+.001,yn=Pe||kt||Wt||Ie!==void 0||Z!==be?null:HB({plan:pe,rows:ue,rowIndex:ae,structure:p,left:P,top:t.cursorY,contentBottom:S(),deps:Ae(),nextDeps:I,compatibilityMode:t.compatibilityMode,positioned:(I.pageExclusionZones?.().length??0)>0});for(yn&&(Ie=yn.options,ye=yn.heightPt),!Pe&&!kt&&!Wt&&Fn(),(kt||Pe||Wt||b&&!on&&IB(Z,Ae(),p.cellSpacingPt,{top:t.cursorY,columnTop:t.columnTop?.()??0,bottom:S(),band:Math.max(S(),t.unreservedContentHeight?.()??0),repeat:A?O:0,belowBandOnly:C>0&&j<=C+.001&&M.every(Xe=>Xe.isHeaderRepeat)})||!on&&ye<=S()+.001&&t.cursorY+ye>S()+.001&&t.cursorY>0&&(Le(t.cursorY)||Z.height.rule==="exact"||!el(Z,p.columnWidthsPt,P,t.cursorY,S(),false,0,Ae(),ge,p.cellSpacingPt,{requireEveryCell:true})))&&(re(wt,kt),Ce=true,Ne(ae,Z));;){if(Fn(),Re+=1,Re>fb)throw new mr("table-row-fragment-limit",`Table row ${Z.id} exceeded ${fb} page fragments`);let Xe=S()-t.cursorY;if(Xe<=.001&&t.cursorY>0){if(Ce)throw new mr("table-row-overheight",`Table row ${Z.id} cannot fit after repeated header rows`);re(wt),Ce=true,Ne(ae,Z);continue}if(!xe&&ye<=Xe+.001){let Ke=Ae(),lt=hn(yn?.headRow??Z,p.columnWidthsPt,P,t.cursorY,false,0,Ke,p.cellSpacingPt,Ie,S());if(lt.bottom>S()+.001)throw new mr("table-row-overheight",`Table row ${Z.id} overflowed the page content box after placement`);yn&&(X.commit(ae,yn,lt.record),z=true);let Ft=lt.remainder!==null,zt=Ft?GB(lt.record):lt.record;if(M.push(zt),de(zt,Ke),U.push(Ft?{...Z}:Z),t.cursorY=lt.bottom,!Ft)break;ge=lt.remainder,xe=true,Ce=false,re(wt);continue}if(!xe&&(Z.cantSplit||Z.height.rule==="exact")){let Ke=Z.height.rule!=="exact"&&!qe(),lt=M.length>0&&M.every(zt=>zt.isHeaderRow)&&(j<=.001||M.every(zt=>zt.isHeaderRepeat));if(t.cursorY>C&&!Ce&&!(Ke&&lt)){re(wt),Ce=true,Ne(ae,Z);continue}let Ft=t.unreservedContentHeight?.()??S();if(Ft>S()+.001&&ye<=Ft-t.cursorY+.001){let zt=Ae(),se=hn(Z,p.columnWidthsPt,P,t.cursorY,false,0,zt,p.cellSpacingPt,Ie,Ft);if(se.bottom<=Ft+.001&&se.remainder===null){M.push(se.record),de(se.record,zt),U.push(Z),t.cursorY=se.bottom;break}}if(!Ke)throw new mr("table-row-overheight",Z.height.rule==="exact"?`Table row ${Z.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${Z.id} has w:cantSplit and is taller than the available page content`)}let Ge=Ae(),nt=zi(Z,p.columnWidthsPt,P,t.cursorY,S(),false,xe,0,Ge,ge,p.cellSpacingPt,Ie);if(!nt.fitted&&t.cursorY>0&&!Ce){re(wt),Ce=true,Ne(ae,Z);continue}let uo=t.unreservedContentHeight?.()??S();if(!nt.fitted&&t.cursorY<=.001&&!Ce&&uo>S()+.001){re(wt),Ce=true,Ne(ae,Z);continue}if(!nt.fitted)throw new mr(nt.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",nt.nestedSplitBlocked?`Table row ${Z.id} contains a nested table taller than the page content box`:`Table row ${Z.id} has content that cannot fit a page content box`);if(nt.bottom>S()+.001)throw new mr("table-row-overheight",`Table row ${Z.id} overflowed the page content box`);let vt=nt.remainder!==null,On=xe||vt?{...Z}:Z,Zn=vt?GB(nt.record):nt.record;if(M.push(Zn),de(Zn,Ge),U.push(On),t.cursorY=nt.bottom,!vt)break;ge=nt.remainder,xe=true,Ce=false,re(wt);}}return J(),h&&(t.cursorY=y),{outOfFlow:h}}function GB(e){return {...e,hasContinuation:true}}var Vs="http://schemas.openxmlformats.org/wordprocessingml/2006/main",SG=32,$B=1e4,UB=1e4;function PG(e){if(e.kind!=="paragraph"||e.listItem||e.shading||e.paragraph.children.some(r=>r.kind==="paragraphProperties"?false:r.kind==="textValue"||r.namespaceUri!==Vs?true:["bookmarkStart","bookmarkEnd","proofErr"].includes(r.localName)?r.children.length!==0:r.kind!=="run"||r.children.some(o=>o.kind!=="runProperties"))||e.props.some(r=>["framePr","numPr","pBdr","shd","pageBreakBefore"].includes(r.localName)))return false;let t=[e.paragraph],n=0;for(;t.length;){let r=t.pop();if(++n>UB||r.namespaceUri!==Vs||["ins","del","moveFrom","moveTo","pPrChange","rPrChange","vanish","webHidden"].includes(r.localName)||n+t.length+r.children.length>UB)return false;for(let o of r.children){if(o.kind==="textValue")return false;t.push(o);}}return true}var YB=new WeakMap;function RG(e){let t=YB.get(e);if(t!==void 0)return t;let n=wG(e);return YB.set(e,n),n}function wG(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>$B||r.namespaceUri!==Vs||r!==e&&r.kind==="table"||["vMerge","hMerge","tblHeader","drawing","pict","object","fldChar","fldSimple","instrText","footnoteReference","endnoteReference","ins","del","moveFrom","moveTo","sdt","altChunk","framePr"].includes(r.localName)||r.localName==="tblOverlap"&&!r.attributes.some(o=>o.namespaceUri===Vs&&o.localName==="val"&&o.value==="overlap")||n+t.length+r.children.length>$B)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function kG(e){let t;for(let a of e.children)if(a.kind==="tableProperties"){if(t)return false;t=a;}if(!t)return false;let n=t.children.filter(a=>a.kind!=="textValue"&&a.localName==="tblpPr");if(n.length!==1)return false;let r=n[0];if(r.kind==="textValue"||r.namespaceUri!==Vs||r.children.length)return false;let o=new Set;for(let a of r.attributes){if(a.namespaceUri!==Vs||o.has(a.localName))return false;if(o.add(a.localName),a.localName==="vertAnchor"){if(a.value!=="text")return false}else if(a.localName==="horzAnchor"){if(!["text","margin","page"].includes(a.value))return false}else if(a.localName==="tblpXSpec"){if(!["left","center","right","inside","outside"].includes(a.value))return false}else if(a.localName==="tblpX"||a.localName==="tblpY"){if(!/^-?\d+$/.test(a.value)||Math.abs(Number(a.value))>31680)return false}else if(["leftFromText","rightFromText","topFromText","bottomFromText"].includes(a.localName)){if(!/^\d+$/.test(a.value)||Number(a.value)>31680||(a.localName==="topFromText"||a.localName==="bottomFromText")&&Number(a.value)!==0)return false}else return false}return o.has("vertAnchor")}function XB(e,t,n,r,o,a){let i=e.length-1,l=e[i];if(!l||!PG(l))return;let d=i,s=[],c=[l.key];for(let u=i-1;u>=0;u-=1){let f=e[u];if(f.kind!=="table")break;if(!RG(f.table)||!kG(f.table))return;let g=Zt(f.table,t,0,n,r,o,a)?.float;if(!g||g.vertAnchor!=="text"||g.ySpec||s.length>=SG)return;s.push(f.table),c.push(f.key),d=u;}if(s.length)return {start:d,anchorIndex:i,tables:s.reverse(),token:ie(c)}}function qB(e,t,n){return e.map(r=>{let o=t.find(a=>a.table.id===r.tableId);return {...r,floatingWrap:{anchorId:o.anchorId,columnIndex:n,float:o.float,sourceOrder:o.sourceIndex}}})}function ZB(e,t){let{cursorY:n,anchorHeight:r,contentWidth:o,contentHeight:a}=t;if(!Number.isFinite(r)||r<=0||n+r>a+.001)return;let i=e.tables.map(m=>Zt(m,o,0,t.styleCascade,t.displayMode,t.authorFilter,t.deps.compatibilityMode)),l=[],d=n+r,s=0,c={...un(t.deps),onCellBreakKey:void 0,borderOwnershipBudget:eo(),vMergeResolveBudget:Ho(),nextLineId:()=>`terminal-table-probe-${s++}`};for(let m=0;m<i.length;m+=1){let g=i[m];if(!g?.float||!g.rows.length)return;let p=g.columnWidthsPt.reduce((x,S)=>x+S,0),h=Ca(g,t.frames,t.deps.compatibilityMode),b=n+g.float.yPt;if(![h,b,p].every(Number.isFinite)||p<=0||h<0||h+p>o+.001||b<n||b>a)return;let y=Vi(g,h,b,0,e.tables[m].id,0,c);if(!Number.isFinite(y.bottom)||y.bottom>a+.001||l.some(x=>h<x.right&&h+p>x.left&&b<x.bottom&&y.bottom>x.top))return;d=Math.max(d,y.bottom),l.push({left:h,top:b,right:h+p,bottom:y.bottom});}let u=[];return {fragments:i.map((m,g)=>{let p=[];u.push(p);let{left:h,top:b}=l[g];return {...Vi(m,h,b,0,e.tables[g].id,0,{...t.deps,onCellBreakKey:x=>p.push(x)}).fragment,outOfFlow:true}}),bottom:d,cellBreakKeys:u}}function kx(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function JB(e,t,n,r){let o=t.startY;return {lines:e.map((i,l)=>{let d={id:`anchor-line-${l}`,range:{paragraphId:r,start:i.start,end:i.end},box:{x:n.left,y:o,width:n.width,height:i.height},contentX:i.spans.length>0?i.spans[0].box.x+t.columnX:n.left,baseline:i.baseline,leading:i.leading,trailingSpacing:i.trailingSpacing,spans:i.spans.map(s=>({...s,box:{...s.box,x:s.box.x+t.columnX,y:o}}))};return o+=i.height+(i.exclusionSkipBefore??0),d}),bottom:o}}function QB(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.firstPageBorders)||e.markPageCount>0&&e.delta+e.markPageCount>0;return t&&r&&!e.hasNoteReserves&&!e.hasExclusionZones}function eE(e){let{geometry:t,columns:n,columnRegionBottom:r,continuedInsets:o}=e,a=`|cols:${n.widths.join(",")};${n.gaps.join(",")};${n.separator?1:0}${r!==void 0?`;bal:${r}`:""}`,i=e.continuedZones??"",l=o?`|cont:${o.top},${o.height};z${i.length}:${i}`:"",d=e.sectionPageBorders?`|pgb:${pm(e.sectionPageBorders)}`:"",s=`${t.width}x${t.height}|${t.margin.top},${t.margin.right},${t.margin.bottom},${t.margin.left}|fs:${e.flowStartY},${e.spaceBeforeCarry}${l}${e.furnitureContext}`,c=`${e.sectionMarkCollapses?"|smc":""}${e.markJoinsBreakSheet?"|mjb":""}`;return u=>`${s}${u}${a}${d}${c}`}var tE=e=>e.kind==="paragraphProperties"||e.kind==="bookmarkStart"||e.kind==="bookmarkEnd"||e.kind==="run"&&e.children.every(t=>t.kind==="runProperties");function vG(e){return e.children.every(tE)}var FG=new Set(["proofErr","permStart","permEnd","commentRangeStart","commentRangeEnd"]),OG=e=>e.kind!=="textValue"&&e.namespaceUri===chunk6KA3L3FR_cjs.da&&FG.has(e.localName)&&e.children.length===0,IG=e=>e.kind==="runProperties"?true:e.kind==="textValue"||e.namespaceUri!==chunk6KA3L3FR_cjs.da?false:e.localName==="t"?e.children.every(t=>t.kind==="textValue"&&t.value===""):e.localName==="lastRenderedPageBreak"&&e.children.length===0;function CG(e){return e.children.every(t=>tE(t)||OG(t)||t.kind==="run"&&t.children.every(IG))}function MG(e,t){if(t.blockEndExclusive-t.blockStart!==1)return false;let n=e[t.blockStart];return n?.kind==="paragraph"&&Tn(n)!==void 0&&vG(n)}function nE(e,t,n){return t>0&&t===n-1&&e.kind==="paragraph"&&Tn(e)!==void 0&&CG(e)}function rE(e,t,n){let r=new Array(e.length).fill(false);for(let o=e.length-2;o>=0;o-=1){let a=o+1;r[o]=!n(a)||MG(t,e[a])&&r[a];}return r}var Gs=1;function Ap(e,t){let n=Math.max(Gs,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,l;if(a){i=o.map(m=>Math.max(Gs,chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(m.widthTwips)))),l=o.slice(0,-1).map(m=>Math.max(0,chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(m.gapTwips))));let c=l.reduce((m,g)=>m+g,0),u=Math.max(r*Gs,n-c),f=i.reduce((m,g)=>m+g,0);if(f>u){let m=u/f;i=i.map(g=>Math.max(Gs,g*m));}}else {let c=Math.max(0,chunk6KA3L3FR_cjs.mf(chunk6KA3L3FR_cjs.kf(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*Gs)/(r-1||1)));l=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(Gs,(n-l.reduce((m,g)=>m+g,0))/r);i=Array.from({length:r},()=>f);}let d=[],s=0;for(let c=0;c<r;c+=1)d.push(s),s+=i[c]+(l[c]??0);return {count:r,widths:i,gaps:l,lefts:d,separator:e.separator===true&&r>1}}function oE(e,t,n){return e.gaps.map((r,o)=>({x:e.lefts[o]+e.widths[o]+r/2-.375,y:t,width:.75,height:Math.max(0,n-t)}))}var BG=8,Ks=[],aE=new TextEncoder;function EG(e,t){let n=chunk6KA3L3FR_cjs.a(aE.encode(e===void 0?"undefined":`string:${e}`)),r=chunk6KA3L3FR_cjs.a(aE.encode(t));return `control-producer:v1:${n}:${r}`}function Dp(e,t){let n=Ks.findIndex(o=>o.base===e&&o.token===t);if(n>=0){let[o]=Ks.splice(n,1);return Ks.push(o),o.producer}let r=EG(e,t);return Ks.push({base:e,token:t,producer:r}),Ks.length>BG&&Ks.shift(),r}var iE=new WeakMap,lE=null;function LG(e,t,n,r,o,a,i,l){return e!=null&&e.base===t&&e.noteMarks===n&&e.defaultTabStopPt===r&&e.displayMode===o&&e.authorFilter===a&&e.pageNumberFormat===i&&e.compatibilityMode===l}function sE(e,t,n,r,o,a,i,l){let d=t?iE.get(t):lE;if(LG(d,e,n,r,o,a,i,l))return d.producer;let s=(e??"unversioned-measurer")+(t?`|sc:${t.cacheToken}`:"")+(n?`|nm:${cv(n)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===Ye?"":`|rev:${o}`)+(a?`|reviewers:${a.cacheKey}`:"")+(i!==void 0?`|pnf:${i}`:"")+(l!==void 0?`|compat:${l}`:""),c={base:e,noteMarks:n,defaultTabStopPt:r,displayMode:o,authorFilter:a,pageNumberFormat:i,compatibilityMode:l,producer:s};return t?iE.set(t,c):lE=c,s}var NG={title:true,creator:true,subject:true,keywords:true,lastModifiedBy:true,description:true},dE=Object.keys(NG),cE=new WeakMap;function AG(e,t){if(!t)return e;let n=cE.get(t);if(!n||dE.some((r,o)=>(t[r]??"")!==n.values[o])){let r=dE.map(o=>t[o]??"");n={values:r,token:r.some(Boolean)?`document-properties:${JSON.stringify(r)}`:""},cE.set(t,n);}return n.token===""?e:Dp(e,n.token)}function uE(e,t,n){let r=e.showFieldCodes?`${e.producer??""}|field-codes`:e.producer,o=e.projectionEpoch!==void 0&&e.projectionTokenForParagraph?void 0:e.documentProperties;return Dp(Dp(AG(r,o),t),n)}var _p=class{constructor(t){this.dependencies=t;}dependencies;capture(t){let{paragraphFrames:n,positionedFlow:r,pendingFloatIds:o,floatSignals:a,anchorPageDeferCounts:i}=this.dependencies;return {pageCount:t.pageCount,pageFragments:[...t.pageFragments],pendingAnchoredDrawings:[...t.pendingAnchoredDrawings],pendingParagraphFrames:n.checkpoint(),deferredAnchoredDrawings:t.deferredAnchoredDrawings.length>0?[...t.deferredAnchoredDrawings]:rB,anchorPageDeferCounts:i.size>0?new Map(i):oB,...r.checkpoint(o,a),cursorY:t.cursorY,lineCounter:t.lineCounter,previousSpaceAfter:t.previousSpaceAfter,flowColumnIndex:t.flowColumnIndex}}restore(t){let{paragraphFrames:n,positionedFlow:r,pendingFloatIds:o,floatSignals:a,anchorPageDeferCounts:i}=this.dependencies;n.restore(t.pendingParagraphFrames),i.clear();for(let[l,d]of t.anchorPageDeferCounts)i.set(l,d);return r.restore(t,o,a),{pageCount:t.pageCount,pageFragments:[...t.pageFragments],pendingAnchoredDrawings:[...t.pendingAnchoredDrawings],deferredAnchoredDrawings:[...t.deferredAnchoredDrawings],cursorY:t.cursorY,lineCounter:t.lineCounter,previousSpaceAfter:t.previousSpaceAfter,flowColumnIndex:t.flowColumnIndex}}};function mE(e,t){return e.cursorY===t.cursorY&&e.previousSpaceAfter===t.previousSpaceAfter&&e.flowColumnIndex===t.flowColumnIndex&&nB(e.pageFragments,t.pageFragments)&&px(e.pendingParagraphFrames,t.pendingParagraphFrames)&&mx(e.pendingAnchoredDrawings,t.pendingAnchoredDrawings)&&mx(e.deferredAnchoredDrawings,t.deferredAnchoredDrawings)&&aB(e.anchorPageDeferCounts,t.anchorPageDeferCounts)&&Mb(e,t)}function pE(e,t,n){return ie([...e].map(([r,o])=>`${n}${r}=${o.flowHeight}`).sort())}function _G(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${pE(e.headers,false,"h")};f:${pE(e.footers,false,"f")};cs:${Bs(e)}`:""}function Vc(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function jG(e,t){let n=e.map((r,o)=>{let a=wa(r.properties),i=Vc(t,o,e.length),l=r.properties.pageNumbering,d=l?`pn:${ie([l.start??"",l.fmt??"",l.chapStyle??"",l.chapSep??""].map(String))}`:"pn:",s=r.properties.columns,c=`pgb:${pm(r.properties.pageBorders)}`,u=`cols:${s.count},${s.gapTwips},${s.equalWidth===false?0:1},${s.separator?1:0};${(s.definitions??[]).map(f=>`${f.widthTwips}/${f.gapTwips}`).join(",")}`;return ie([r.properties.breakType,a.width,a.height,a.margin.top,a.margin.right,a.margin.bottom,a.margin.left,a.headerDistance??36,a.footerDistance??36,_G(i),d,u,c].map(String))});return ie(n)}function HG(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},()=>$o()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1,previousPageRefToken:""};return e.multi=o,o}function WG(e){return e!=="continuous"}function gE(e,t){return e.width===t.width&&e.height===t.height}function zG(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 VG(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 hE(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var yE=new WeakMap;function GG(e,t,n,r,o,a){let i=yE.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let l=Xi(e,t,n),d=es([l],r,o,a)[0];return yE.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:d}),d}function bE(e,t,n,r,o){let{session:a,...i}=r,l=jG(t,r),d=HG(a,l,t.length),s=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,c=()=>{s&&!i.retainKeys&&i.cache?.retain(s);},u=[],f=[],m=[],g=0,p=0,h=0,b=0,y=0,x=0,S=0,R=true,P=[],w=null,F=1,I=[],v=new Map,T=r.evenAndOddHeaders??t.some((D,j)=>Vc(r,j,t.length)?.evenAndOddHeaders===true),k=t.map(D=>wa(D.properties)),O=rE(t,e,D=>t[D].properties.breakType==="continuous"&&gE(k[D-1],k[D]));for(let D=0;D<t.length;D+=1){let j=t[D],C=e.slice(j.blockStart,j.blockEndExclusive),M=k[D],_=Vc(r,D,t.length),U=d?.spans[D],ne=j.properties.pageNumbering?.start,X=F,W=nx({breakType:j.properties.breakType,restart:ne,nextDisplayed:F,sheetIndex:u.length,evenAndOddHeaders:T})?rx(u.length,g,M,U?.paritySheet):void 0;W&&(u.push(W),f.push(W),g=W.box.y+W.box.height+za,ne===void 0&&(F+=1));let z=u.length,$=g;if(C.length===0&&!WG(j.properties.breakType)){m.push({startIndex:z,pageCount:0,sheetY:$,remappedPages:[],sourcePages:[]});continue}let V=D>0&&j.properties.breakType==="continuous"&&u.length>0&&R&&w!==null&&gE(w,M),te=d?.sections[D],Q=t[D+1]?.properties.breakType==="continuous",Y=j.properties.columns.count>1&&Q,de=!Y&&O[D],J=V?zG(u[u.length-1]):void 0,ee=V?u[u.length-1]:void 0,re=j.properties.pageNumbering?.fmt,oe=V?u[u.length-1]?.pageFieldSource?.format:void 0,ue=V&&!Sa("PAGE",oe)?oe:re,B=o(C,n,{...i,retainKeys:s,geometry:M,furniture:_,sectionColumns:j.properties.columns,paragraphLineUnitPt:rc(j.properties),...j.properties.pageBorders?{sectionPageBorders:j.properties.pageBorders}:{},...Y?{balanceColumns:Y}:{},...Q?{sectionMarkCollapses:true}:{},...de?{markJoinsBreakSheet:de}:{},lineCounterStart:p,pageIndexStart:V?z-1:z,spaceBeforeCarry:S,...V?{flowStartY:x}:{},...J?{continuedPageInsets:J}:{},...ee?{continuedPageFurniture:ee}:{},...ue!==void 0?{bodyPageNumberFormat:ue}:{},...te?{session:te}:{}});P.push({startIndex:z,at:B.overflowShellAt}),p=B.lineCounter,x=B.endCursorY,S=B.endSpaceAfter,R=B.endsOpenPage,w=M,te?(h+=te.stats.placed,b+=te.stats.total):(h+=C.length,b+=C.length);let pe=te!==void 0&&te.stats.placed===0&&te.stats.reusedPages===B.pages.length&&U!==void 0&&U.pageCount===B.pages.length&&U.sourcePages.length===B.pages.length&&U.sourcePages.every((Te,ge)=>Te===B.pages[ge]),Ie=U!==void 0&&U.startIndex===z&&U.sheetY===$&&U.remappedPages.length===B.pages.length,ye=j.properties.pageNumbering,tt=ye?.start!==void 0?ye.start:F,Ne=ye?.fmt,ae=U?.remappedPages[0],be=U===void 0||U.remappedPages.length===0||ae?.pageFieldSource!==void 0&&ae.pageFieldSource.pageNumber===tt&&ae.pageFieldSource.sectionPageCount===U.remappedPages.length&&ae.pageFieldSource.format===Ne,Z;if(V){let Te=u.length-1,ge=u[Te],xe=VG(ge,B.pages[0]);if(xe!==ge){u[Te]=xe;let qe=f.lastIndexOf(ge);qe!==-1&&(f[qe]=xe);}let Re=[];for(let qe of B.pages.slice(1)){let Le=Xi(qe,u.length+Re.length,g);Re.push(Le),g=Le.box.y+Le.box.height+za;}let Ce=ye?.start??F-1,Ae=Re.length+1;Z=es(Re,Ce+1,Ae,Ne);for(let qe of Z)u.push(qe),f.push(qe);F=Ce+Ae;}else if(pe&&Ie&&be){Z=U.remappedPages,y+=Z.length;for(let Te of Z)u.push(Te),f.push(Te),g=Te.box.y+Te.box.height+za;F=tt+Z.length;}else {let Te=[];for(let ge of B.pages){let xe=GG(ge,u.length+Te.length,g,tt+Te.length,B.pages.length,Ne);Te.push(xe),g=xe.box.y+xe.box.height+za;}Z=Te;for(let ge of Z)u.push(ge),f.push(ge);F=tt+Z.length;}m.push({startIndex:z,pageCount:Z.length,sheetY:$,remappedPages:Z,sourcePages:B.pages,...W?{paritySheet:W}:{}}),Z.length>0&&I.push({pageIndex:z,breakType:j.properties.breakType,restart:ne,runningBefore:X,geometry:M});let Pe=u[u.length-1]?.pageFieldSource?.pageNumber;Pe!==void 0&&Pe+1!==F?v.set(u.length-1,F):v.delete(u.length-1);}if(u.length===0){let D=wa(t[0]?.properties??Or),j=o([],n,{...i,retainKeys:s,geometry:D,paragraphLineUnitPt:rc(t[0]?.properties),sectionColumns:t[0]?.properties.columns??Or.columns,...t[0]?.properties.pageBorders?{sectionPageBorders:t[0].properties.pageBorders}:{}});c();let C=Pa({revision:n,pages:j.pages});return zc(C,(M,_,U)=>j.overflowShellAt(_,U)),d&&(d.spans=[],d.previousRemapped=j.pages,d.previousFinalized=C,d.previousPageCount=C.pages.length,d.previousPageRefToken=Hh(j.pages)),a&&(hE(a,C,p),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),C}let L=Pa({revision:n,pages:u}),H=L,A=Hh(u);if(d?.previousFinalized&&d.previousPageCount===L.pages.length&&d.previousRemapped.length===f.length&&d.previousPageRefToken===A){let D=d.previousFinalized.pages,j=d.previousRemapped,C=L.pages.map((M,_)=>f[_]===j[_]&&D[_]?D[_]:M);H={...L,pages:C};}return d&&(d.spans=m,d.previousRemapped=f,d.previousFinalized=H,d.previousPageCount=H.pages.length,d.previousPageRefToken=A),a&&(hE(a,H,p),a.stats={placed:h,total:b||1,reusedPages:y,fullPasses:a.stats.fullPasses+(h===b&&y===0?1:0)}),zc(H,(D,j,C)=>{let M=P[0];for(let U of P)U.startIndex<=D&&(M=U);return (M??P[P.length-1])?.at(j,C)}),qC(H,T,I,v),c(),H}function xE(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){if(Mt(o))continue;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 KG=.25,$G=20;function Tx(e,t,n,r){let o=Ap(n.sectionColumns??Or.columns,n.geometry.width-n.geometry.margin.left-n.geometry.margin.right);if(!n.balanceColumns||o.count<2||n.columnRegionBottom!==void 0)return n.session&&(n.session.balanceLimit=null),r(e,t,n);let a=n.session,i=n.flowStartY??0,l={...n,session:void 0},d=h=>{let b=h.pages[0],y=b?Math.max(...xE(b,o,i)):h.endCursorY;return a&&(a.endCursorY=y),{...h,endCursorY:y}};if(a&&a.balanceLimit!==null){let h=a.balanceLimit,b=r(e,t,{...n,columnRegionBottom:h});if(a.stats.placed===0&&a.stats.reusedPages===b.pages.length)return a.balanceLimit=h,d(b)}let s=r(e,t,l);if(s.pages.length!==1||!s.endsOpenPage)return a&&(a.balanceLimit=null),r(e,t,n);let c=xE(s.pages[0],o,i),u=c.reduce((h,b)=>h+Math.max(0,b-i),0);if(u<=0)return a&&(a.balanceLimit=null),r(e,t,n);let f=i+u/o.count,m=Math.max(...c)+.01,g=h=>{try{let b=r(e,t,{...l,columnRegionBottom:h});return b.pages.length===1&&b.endsOpenPage}catch{return false}};for(let h=0;h<$G&&m-f>KG;h+=1){let b=(f+m)/2;g(b)?m=b:f=b;}let p=r(e,t,{...n,columnRegionBottom:m});return a&&(a.balanceLimit=m),d(p)}var UG=2,SE=new WeakMap;function Ade(e,t,n){let r=n.displayMode??Ye,o=n.revisionAuthorFilter,a=cr(e,r,o,n.styleCascade,n.numberingIndex),i=jo(e,a).sections,l=Hs(e),d=iw(e),s={...n,fieldCodeRanges:n.showFieldCodes?Kf(e):void 0,tocLinkStyleRanges:d,displayMode:r,producer:uE(n,l,sw(d)),tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??hf(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??GR(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??yf(e)},c=n.drawingSourceOrder;!c&&n.inlineDrawingLayout&&(c=lI(e,n.inlineDrawingLayout));let u=c?{...s,drawingSourceOrder:c}:s,f=n.session?uT(u,a,n.session):as(u,a),m=FM(e,a,i,f),g=m===null?f:{...f,refFields:m},p=y=>{if(i.length>1)return bE(a,i,t,y,jp);let x=i[0],S=y.geometry??(x?wa(x.properties):Zu),R=Vc(y,0,i.length)??y.furniture,P=x?.properties.pageNumbering,w=jp(a,t,{...y,geometry:S,furniture:R,paragraphLineUnitPt:rc(x?.properties),sectionColumns:x?.properties.columns??Or.columns,...x?.properties.pageBorders?{sectionPageBorders:x.properties.pageBorders}:{},...P?.fmt?{bodyPageNumberFormat:P.fmt}:{}}),F=P,I=jb({revision:w.layout.revision,pages:es(w.pages,F?.start??1,w.pages.length,F?.fmt)},w.layout),v=Pa(I);return zc(v,(T,k,O)=>w.overflowShellAt(k,O)),y.session&&(y.session.multi=null,y.session.previous=v),v},h=y=>{let x=y;if(y.displayMode!==r){let{contentControls:R,controlContextToken:P,...w}=y;x={...w,displayMode:r,...R!==void 0?{contentControls:R}:{},...P!==void 0?{controlContextToken:P}:{}};}let S=Hb(x,e,l);return n.session&&(n.session.previous=S),S};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),h(dx(e,g,p));let b=vM(n.notes,m?{...n,refFields:m}:n);return h(dx(e,g,y=>kM(e,i,y,b,p)))}function PE(e,t,n){let r=n.geometry,o=n.cache?.keyFor?.bind(n.cache)??cf,a=r.width-r.margin.left-r.margin.right,i=Ap(n.sectionColumns??Or.columns,a);if((n.inlineDrawingLayout||PB(e,n.styleCascade)||fB(e,a,n.styleCascade,n.displayMode??Ye,n.revisionAuthorFilter,n.compatibilityMode))&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let E=Fe=>{let Ue=n.inlineDrawingLayout?.projectionForAtom?.(Fe)?.drawingNodeId??Fe;return n.drawingSourceOrder?.get(Ue)},K=Object.freeze({columnCount:i.count,columnGapPt:i.gaps[0]??0,contentWidth:a,columnLefts:i.lefts,columnWidths:i.widths}),le=(Fe,Ue=false)=>{let At=n.inlineDrawingLayout?Ue?_0(Fe,n.inlineDrawingLayout,n.drawingLayoutEpoch,a,n.drawingSourceOrder,K):mh(Fe,n.inlineDrawingLayout,a,E,K):new Map;return RB(Fe,mB(Fe,At,K),K)},me=new Map,De=null,ze=false,Je=new Set,We=Fe=>(jp(e,t,Fe)),it=Fe=>{let Ue=yx(Fe.pages);if(Ue.size===0)return null;let At=n.paragraphFrameFallbackRound??0,mt=new Set(n.disabledParagraphFrameIds);for(let Ar of At>=3?yx(Fe.pages,true):Ue)mt.add(Ar);let gt=n.session?$o():void 0,tr=jp(e,t,{...n,session:gt,disabledParagraphFrameIds:mt,paragraphFrameFallbackRound:At+1});return n.session&&gt&&vp(n.session,gt),tr},Qt=n.session?.previous?.pages;if(Qt){me=le(Qt,true),De=We({...n,drawingExclusionPass:0,drawingExclusionZonesByPage:me});let Fe=it(De);if(Fe)return Fe;if(De.pages===Qt)return De;let Ue=le(De.pages,true);if(Ef(me,Ue))return De;me=new Map(Ue),Je.add(Lf(Ue));}let Nt=(Fe,Ue)=>(n.session&&Ue&&vp(n.session,Ue),Fe),Me=Fe=>{let Ue=n.session?$o():void 0;return Nt(We({...n,session:Ue,drawingExclusionConverged:true,drawingExclusionZonesByPage:Fe}),Ue)};for(let Fe=0;Fe<ma;Fe+=1){let Ue=n.session?$o():void 0;De=We({...n,session:Ue,drawingExclusionPass:Fe,drawingExclusionZonesByPage:me});let At=it(De);if(At)return At;let mt=le(De.pages);if(mt.size===0)return Fe===0&&me.size===0?Nt(De,Ue):Me(mt);if(Ef(me,mt))return Nt(De,Ue);let gt=Lf(mt);if(Je.has(gt)){ze=true,me=mt;break}Je.add(gt),me=new Map(mt);}if(!ze)for(let Fe=0;Fe<UG&&!ze;Fe+=1){let Ue=n.session?$o():void 0;De=We({...n,session:Ue,drawingExclusionPass:ma+Fe,drawingExclusionZonesByPage:me});let At=it(De);if(At)return At;let mt=le(De.pages),gt=Lf(mt);if(Ef(me,mt))return Nt(De,Ue);if(Je.has(gt)){ze=true,me=mt;break}Je.add(gt),me=new Map(mt);}if(!ze)throw new Mo(`wrap exclusion reflow did not converge within ${ma} passes`);return Me(me)}let l=n.measurer,d=n.cache,s=n.styleCascade,c=n.listItems,u=n.refFields,f=n.defaultTabStopPt,m=n.displayMode??Ye,g=n.revisionAuthorFilter,p=m==="all-markup",h=n.tocFieldChromeParagraphIds,b=n.emptyTocPlaceholderParagraphIds,y=n.emptyTocSuppressedResultParagraphIds,x={chrome:h,placeholder:b,suppressed:y},S=UM(x),R=sE(n.disabledParagraphFrameIds?.size?ie([n.producer??"",ie([...n.disabledParagraphFrameIds].sort())]):n.producer,s,n.noteMarks,f,m,g,n.bodyPageNumberFormat,n.compatibilityMode),P=i.widths[0],w=_B(n,P,s),F=n.furniture,I=r.headerDistance??36,v=r.footerDistance??36,T=n.pageBottomReserves,k=n.session,O=n.lineCounterStart??0,L=rC(F,I,v),H=n.flowStartY??0,A=n.spaceBeforeCarry??0,D=n.pageIndexStart??0,j=$C({...F?{furniture:F}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:I,footerDistance:v,pageIndexStart:D,...n.continuedPageInsets?{continuedPageInsets:n.continuedPageInsets}:{}}),C=Object.freeze(n.bodyPageNumberFormat!==void 0?{format:n.bodyPageNumberFormat}:{}),M=dB(n,C),_=k?.previous?k.previous.pages.length+1:1/0,U=n.columnRegionBottom,ne=n.continuedPageInsets,X=ne&&n.continuedPageFurniture?KM(n.continuedPageFurniture,ne,r.margin.left,a,n.yieldHiddenFurnitureZones):void 0,W=eE({geometry:r,flowStartY:H,spaceBeforeCarry:A,continuedInsets:ne,continuedZones:X?sr(X):"",furnitureContext:L,columns:i,columnRegionBottom:U,sectionPageBorders:n.sectionPageBorders,sectionMarkCollapses:n.sectionMarkCollapses,markJoinsBreakSheet:n.markJoinsBreakSheet}),z=W(bp(T,D,_)),$=D&1,V=false,te=null,Q=()=>{V=true;},Y=[],de=UC({...F?{furniture:F}:{},geometry:r,headerDistance:I,footerDistance:v,pageIndexStart:D,contentWidth:a,insetsFor:j,pageCount:()=>Y.length,...n.sectionPageBorders?{pageBorders:n.sectionPageBorders}:{}}),{pageBox:J,furnitureFor:ee,overflowShellAt:re}=de,oe=VM(F,n.yieldHiddenFurnitureZones)||(X?.length??0)>0,ue=-1,B=Object.freeze([]),pe=()=>{let E=Y.length;if(ue===E)return B;let K=n.drawingExclusionZonesByPage?.get(E)??Object.freeze([]);ue=E,B=K;let le=E===0?X:void 0;if(le)le.length&&(B=Object.freeze([...K,...le]));else if(oe){let me=J(E),De=j(E),ze=ux({box:me,contentBox:{x:me.x+r.margin.left,y:me.y+De.top,width:a,height:De.height},header:ee("header",E,me),footer:ee("footer",E,me)},n.yieldHiddenFurnitureZones);ze.length&&(B=Object.freeze([...K,...ze]));}return B},Ie=E=>{let K=Math.max(1,j(Y.length).height-E);return U!==void 0&&Y.length===0?Math.max(1,Math.min(K,U)):K},ye=()=>Ie(T?.get(D+Y.length)??0),tt=()=>Ie(0),Ne=n.inlineDrawingLayout!==void 0,be=Ne?tp(E=>np(E,{measurer:l,producer:R,cache:d,styleCascade:s,...f!==void 0?{defaultTabStopPt:f}:{},compatibilityMode:n.compatibilityMode,...m?{displayMode:m}:{},...g?{revisionAuthorFilter:g}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,...n.numberingIndex?{numberingIndex:n.numberingIndex}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph,projectionTokenForParagraph:n.projectionTokenForParagraph,projectionTokenForTable:n.projectionTokenForTable}),n.numberingIndex,s,m,g):void 0,Z=(E,K)=>{let le=E.kind==="paragraph"?zd(E,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":E.kind==="table"&&n.drawingTokenForParagraph?cI(E,n.drawingLayoutEpoch,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":n.drawingLayoutToken||"",me=`${E.kind==="paragraph"?zd(E,n.projectionTokenForParagraph):E.kind==="table"&&n.projectionTokenForParagraph?n.projectionTokenForTable?.(E)??pi(E,n.projectionTokenForParagraph):""}|${n.paragraphLineUnitPt??"-"}`,De=zd(E,be?.hostedListTokenForParagraph),ze=E.kind==="table"?yR(E,c):c?.get(E.id)?.cacheToken??"",Je=ze===""&&De===""?"":ie([ze,De]),We=u===void 0?"":E.kind==="table"?XT(E,u):zd(E,Me=>u.tokenForParagraph(Me.id)),it=SE.get(E);if(it&&it.contentWidth===K&&it.frameEnabled===(i.count===1&&!n.disabledParagraphFrameIds?.has(E.id))&&it.producer===R&&it.drawingToken===le&&it.projectionToken===me&&it.listToken===Je&&it.refToken===We&&it.drawingContext===Ne)return it.entry;let Qt=Rd(le,Ne),Nt;if(E.kind==="table")Nt={kind:"table",table:E,key:o({paragraph:E,properties:[...Je?[{localName:"list",attributes:{token:Je}}]:[],...We?[{localName:"refFields",attributes:{token:We}}]:[]],width:K,producer:R,drawingToken:Qt,projectionToken:me})};else {let Me=c?.get(E.id),Fe=wn(E,K,s,Me,void 0,false,n.paragraphLineUnitPt),Ue=i.count===1&&!n.disabledParagraphFrameIds?.has(E.id)?EM(E,Fe,l,s):void 0;Ue&&(Fe=wn(E,Ue.width,s,Me,void 0,false,n.paragraphLineUnitPt));let{props:At,indent:mt,available:gt,alignment:tr,spacing:Ar,lineSpacing:Qo,contextualSpacing:Dt,styleId:il,outlineLevel:ll,shading:Zc,inheritedRunProperties:Jc,markRunProperties:ea}=Fe,ed=Fe.borders,{tabStops:Qe,properties:Qc}=Ym(Fe,f,{listToken:Me?.cacheToken,hostedListToken:De,refToken:We});Nt={kind:"paragraph",...Ue?{frame:Ue}:{},paragraph:E,props:At,indent:mt,available:gt,alignment:tr,spacing:Ar,lineSpacing:Qo,contextualSpacing:Dt,styleId:il,outlineLevel:ll,borders:ed,borderGroupKey:Tc({borders:ed,indent:mt}),shading:Zc,inheritedRunProperties:Jc,markRunProperties:ea,tabStops:Qe,keeps:rt(At),...Me?{listItem:Me}:{},key:o({paragraph:E,properties:Qc,width:gt,producer:R,drawingToken:Qt,projectionToken:me})};}return SE.set(E,{contentWidth:K,frameEnabled:i.count===1&&!n.disabledParagraphFrameIds?.has(E.id),producer:R,drawingToken:le,projectionToken:me,listToken:Je,refToken:We,drawingContext:Ne,entry:Nt}),Nt},Pe=(n.drawingTokenForParagraph!==void 0||n.drawingLayoutToken!==void 0)&&n.drawingLayoutEpoch===void 0?null:Rd(n.drawingLayoutEpoch??"",Ne),Te=n.projectionTokenForParagraph!==void 0&&n.projectionEpoch===void 0?null:n.projectionEpoch??"",ge=ZM(i.count,n.disabledParagraphFrameIds)+`|${n.paragraphLineUnitPt??"-"}`,xe=k?.prepass,Re=xe!=null&&xe.framePolicy===ge&&Pe!==null&&Te!==null&&xe.drawingEpoch===Pe&&xe.projectionEpoch===Te&&xe.producer===R&&xe.contentWidth===P&&xe.styleCascade===s&&xe.listItems===c&&xe.numberingIndex===n.numberingIndex&&xe.tocToken===S&&xe.refToken===(u?.valuesToken??""),Ce=Re&&xe.bodies.length===e.length&&xe.bodies.every((E,K)=>E===e[K]),Ae=Ce?xe:qe();function qe(){let E=Re&&i.count===1&&!n.disabledParagraphFrameIds?xe:null,K=JM(XM(e,E,Me=>Z(Me,P)),n.paragraphLineUnitPt,s),le=K.map(Me=>Me.key),me=pB(K,P,s,m,g,n.compatibilityMode),De=XB(K,P,s,m,g,n.compatibilityMode),ze=K.map(Me=>Me.kind==="paragraph"&&Me.keeps.keepNext),Je=K.map(Me=>Me.kind==="paragraph"?c?.get(Me.paragraph.id)?.markerText:void 0),We=K.map(Me=>Me.kind==="paragraph"?Me.borderGroupKey:""),it=S===""?[]:K.map(Me=>Me.kind==="paragraph"?YM(Me.paragraph.id,x):""),Qt=K.at(-1),Nt=mk(M.flowKeys(QM(iB(gB(le,me),K),K),K),{terminalTableGroup:De,...cO(K,s),borderGroupKeyAt:Me=>We[Me],tocVerdicts:it,markerTextAt:Me=>Je[Me],keepsNextAt:Me=>ze[Me]||w.endsKept(K[Me]),tableAt:Me=>K[Me]?.kind==="table",endsWithSectionMark:Qt?.kind==="paragraph"&&!!Tn(Qt.paragraph),skipKeepNextAt:Me=>K[Me]?.kind==="paragraph"&&!!K[Me].frame});return {framePolicy:ge,positioned:me,bodies:e,producer:R,contentWidth:P,styleCascade:s,listItems:c,numberingIndex:n.numberingIndex,drawingEpoch:Pe??"",projectionEpoch:Te??"",prepared:K,keys:le,paragraphDocumentOrder:E&&qM(E.bodies,e)?E.paragraphDocumentOrder:ub(K,P,s,m,g,n.compatibilityMode),keepsNext:ze,markerTexts:Je,tocToken:S,refToken:u?.valuesToken??"",flowKeys:Nt,terminalTextTables:De}}k&&Pe!==null&&Te!==null&&!Ce&&(k.prepass=Ae);let{prepared:Le,keys:on,paragraphDocumentOrder:wt,keepsNext:Fn,flowKeys:kt,terminalTextTables:Tt}=Ae,{positionedTables:Wt,positionedTablePolicy:yn}=Ae.positioned,Xe=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&d&&!(d.retentionPassDue?.()??true)||RR(d,n.retainKeys,on,Le.flatMap(E=>E.kind==="table"?[E.table]:[])));},Ge=k?.previous??null,nt=Ge!==null&&k!==void 0&&k.context===z&&k.producer===R&&(!k.parityDependent||k.startPageParity===$),uo=i.count===1&&nt,vt=0;if(nt){let E=Math.min(kt.length,k.keys.length);for(;vt<E&&kt[vt]===k.keys[vt];)vt+=1;}let On=0;if(uo){let E=Math.min(kt.length,k.keys.length)-vt;for(;On<E&&kt[kt.length-1-On]===k.keys[k.keys.length-1-On];)On+=1;}if(nt&&vt===Le.length&&Le.length===k.keys.length){let E=jb({revision:t,pages:Ge.pages},Ge),K=O+(k.endLineCounter-k.startLineCounter);return k.previous=E,k.startLineCounter=O,k.endLineCounter=K,k.startPageParity=$,k.stats={placed:0,total:Le.length,reusedPages:Ge.pages.length,fullPasses:k.stats.fullPasses},Xe(),{layout:E,pages:E.pages,lineCounter:K,endCursorY:k.endCursorY,endSpaceAfter:k.endSpaceAfter,endsOpenPage:k.endsOpenPage,overflowShellAt:re}}let Zn=HI(Wt,kt),Ke=[],lt=0,Ft=0,zt=()=>i.lefts[lt],se=()=>i.widths[lt],ve=()=>({text:{left:zt(),width:se()},margin:{left:0,width:a},page:{left:-r.margin.left,width:r.width}}),Ot=()=>VI(Ke,Ft),Ze=[],It=[],bn=new Map,xn=new Set,pr=[],nl=new Set,$t=0,Ut=new Op,we=H,Yo=H,Ct=0,Nr=O,q=A,N=[],ce=new _p({paragraphFrames:Ut,positionedFlow:Zn,pendingFloatIds:xn,floatSignals:pr,anchorPageDeferCounts:bn}),Se=()=>ce.capture({pageCount:Y.length,pageFragments:Ke,pendingAnchoredDrawings:Ze,deferredAnchoredDrawings:It,cursorY:we,lineCounter:Nr,previousSpaceAfter:q,flowColumnIndex:Ct}),He=0,fe=0,Ee=0,ut=H===0;if(uo&&vt>0&&vt<k.checkpoints.length){let E=k.checkpoints[vt];Y.push(...Ge.pages.slice(0,E.pageCount)),{pageFragments:Ke,pendingAnchoredDrawings:Ze,deferredAnchoredDrawings:It,cursorY:we,flowColumnIndex:Ct,lineCounter:Nr,previousSpaceAfter:q}=ce.restore(E),lt=Ct,He=vt,ut=false,Ee=Y.length,N.push(...k.checkpoints.slice(0,vt));}let Jn=(E,K,le=[])=>{let me=j(Y.length).top;for(let De of Ut.publish({page:{x:-r.margin.left,y:-me},margin:{x:0,y:Math.abs(r.margin.top)-me},text:{x:zt(),y:K}},E,Ct,le))Ke.push(De);},Hn=i.count,ft=zt,gr=E=>Object.freeze({x:i.lefts[Ct]??0,y:E.y,width:i.widths[Ct]??P,height:E.height}),an=()=>wB({pageNumber:D+Y.length+1,onPageParityRead:Q,geometry:r,insets:j(Y.length),contentWidth:P,contentHeight:ye(),ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunk6KA3L3FR_cjs.s}),fo=()=>Ti(an()),Sn=E=>{let K=n.inlineDrawingLayout?.projectionForAtom?.(E)?.drawingNodeId??E;return n.drawingSourceOrder?.get(K)},Va=E=>{if(E.length===0)return;for(let le of E)Ze.some(me=>me.drawingNodeId===le.drawingNodeId)||Ze.push(le.sourceOrder===void 0&&Sn(le.drawingNodeId)!==void 0?Object.freeze({...le,sourceOrder:Sn(le.drawingNodeId)}):le);if(!n.inlineDrawingLayout)return;let K=O0(Ze,an());if(Ze.splice(0,Ze.length,...K.drawings),K.deferred.length>0)for(let le of K.deferred){let me=(bn.get(le.drawingNodeId)??0)+1;bn.set(le.drawingNodeId,me),me>=sh?Ze.push(uh(le,"page-defer-exhausted")):It.push(le);}},rl=()=>{if(It.length===0)return;let E=It.map(K=>oh(K,we-K.y));It=[],Va(E);},Ys=()=>{},Qn=()=>{Ys();let E=Y.length,K=J(E),le=ee("header",E,K),me=ee("footer",E,K),{usedBottom:De,hasBodyPageFields:ze}=jh(Ke,Yo),Je=j(E),We=mp(n.sectionPageBorders,r,E===0);Y.push({id:`page-${E}`,index:E,box:K,contentBox:{x:K.x+r.margin.left,y:K.y+Je.top,width:a,height:Je.height},fragments:Ke,hasBodyPageFields:ze,...i.separator?{columnSeparators:oE(i,Yo,De)}:{},...We?{pageBorders:We}:{},...Ze.length>0?{anchoredDrawings:L0(Ze)}:{},...le?{header:le}:{},...me?{footer:me}:{}}),Ke=[],Ze=[],we=0,lt=0,Ct=0,Yo=0,Ft=0;},qc=(E,K)=>E.kind==="paragraph"&&kB(E,K,n.inlineDrawingLayout),Ga=()=>{if(lt+1<i.count){lt+=1,Ct=lt,we=Yo,q=0,Ft=Ke.length;return}Qn(),rl();},Xo={paragraphLineUnitPt:n.paragraphLineUnitPt,isolatedFloatingTableId:Wt.length===1?Wt[0].table.id:void 0,measurer:l,cache:d,producer:R,onCellBreakKey:E=>{te?.push(E);},nextLineId:(E,K,le,me)=>(Nr+=1,kx(E,K,le,me)),pageOccurrenceKey:()=>String(Y.length),styleCascade:s,listItems:c,...f!==void 0?{defaultTabStopPt:f}:{},compatibilityMode:n.compatibilityMode,...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,fieldCodeRanges:n.fieldCodeRanges,tocLinkStyleRanges:n.tocLinkStyleRanges,...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:C,...u?{refFields:u}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout!==void 0?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:n.drawingLayoutToken?{drawingLayoutToken:n.drawingLayoutToken}:{},...n.projectionTokenForParagraph?{projectionTokenForParagraph:n.projectionTokenForParagraph}:{},...n.inlineDrawingLayout?{anchorFrameBase:an,pageContentClip:fo,hostedStory:be,publishAnchoredDrawings:Va,collectAnchoredDrawings:Va,columnBoxForParagraph:gr,onAnchorShift:(E,K)=>eh(Ze,E,K),onAnchorRepublish:(E,K)=>{for(let le=Ze.length-1;le>=0;le-=1)Ze[le].anchorParagraphId===E&&Ze.splice(le,1);Ze.push(...K);}}:{},...n.inlineDrawingLayout||oe?{pageExclusionZones:pe,paragraphOrderIndex:E=>wt.get(E)}:{},borderOwnershipBudget:eo(),vMergeResolveBudget:Ho(),displayMode:m,...g?{revisionAuthorFilter:g}:{}},qo=NO(c,l),{rememberBreakKey:Xs,releasePlacedBreaks:Zo}=FO(d),er=_M({drawingLayout:n.inlineDrawingLayout,paragraphAt:E=>{let K=Le[E];return K?.kind==="paragraph"?K:void 0},paragraphOrder:wt,paragraphIndex:E=>Le.findIndex(K=>K.kind==="paragraph"&&K.paragraph.id===E),columnCount:Hn}),mo=(E,K)=>Pl(K.props)&&!nE(K.paragraph,E,Le.length),po=(E,K,le=0,me,De)=>{let ze=E.paragraph.id,Je=b?.has(ze)??false,We=n.fieldCodeRanges?.get(ze)?.some(Qo=>Qo.suppressParagraph)||!Je&&((h?.has(ze)??false)||(y?.has(ze)??false)),it=E.available,Qt=ft(),Nt=me??we,Me=0;if(me===void 0&&le===0&&!E.frame){let Qo=Le[K-1],Dt=E.styleId!==null&&Hi(E.paragraph,-1,Qo,s)===E.styleId,il=E.contextualSpacing&&Dt?0:E.spacing.before,ll=M.joins(Qo,E);Me=wg(il,q,we===0&&!Ot(),ut||mo(K,E)),Nt+=Me+Ro(ll?void 0:E.borders.top);}let Fe=E.frame?[]:pe(),Ue={omittedAnchor:De},At=er.select(E,K,Ct,Fe,Ue),mt=Qt===0?At:Hl(At,Qt,0),gt=sr(mt),tr=Nt-er.displacement(Y.length,ze),Ar=null;return d&&!We&&(Ar=vO(E.key,{exclusionToken:gt,paragraphStartY:Nt,anchorParagraphStartY:tr,paragraphSpaceBefore:Me,anchorsTopAndBottom:cx(E.paragraph,n.inlineDrawingLayout),columnIndex:Ct,startOffset:le}),Xs(ze,Ar)),Is({compatibilityMode:n.compatibilityMode,paragraph:E.paragraph,paragraphId:ze,indentLeft:E.indent.left,available:it,measurer:l,cache:d,cacheKey:Ar,formatting:E,producer:R,styleCascade:s,tabStops:E.tabStops,flow:{...qo(E),startOffset:le,marginExtent:{left:0,right:E.indent.left+it+E.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,fieldCodeRanges:Ph(E.paragraph,n.fieldCodeRanges),tocLinkStyleRanges:Ph(E.paragraph,n.tocLinkStyleRanges),...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:C,...u?{refFields:u}:{},displayMode:m,...g?{revisionAuthorFilter:g}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:0,contentRight:Hn>1?se():E.indent.left+it+E.indent.right,paragraphStartY:Nt,anchorParagraphStartY:tr,...Me>0?{paragraphSpaceBefore:Me}:{},...mt.length>0?{pageExclusionZones:mt}:{},...We?{suppressEmptyPlaceholderLine:true}:{}}})},ol=(E,K)=>er.select(E,K,Ct,pe(),{placement:true}),go=(E,K,le,me,De,ze,Je)=>{let We=ol(E,K);return n.inlineDrawingLayout?DM({paragraph:E.paragraph,paragraphId:E.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:Hn>1?ft():0,contentRight:Hn>1?ft()+se():E.indent.left+E.available+E.indent.right,paragraphStartY:ze-er.displacement(Y.length,E.paragraph.id),columnIndex:Ct,displayMode:m,...g?{revisionAuthorFilter:g}:{},pageZones:We,brokenLines:le,lineIndex:me,fragmentFirstLine:De,appliedSkipByLineIndex:Je}):We},qs=(E,K,le,me,De,ze,Je,We,it)=>{if(AM(E.paragraph,n.inlineDrawingLayout,Je))return 0;let Qt=go(E,K,le,me,De,ze-it,We),Nt=me===De?it:0,Me=Qt.length>0?kr(we,Je.height,Qt,Nt):0,Fe=Je.exclusionSkipBefore??0;return Math.max(Me,Fe)},Zs=(E,K,le,me,De,ze)=>ih(we,le[me].height,ze,{inherited:ol(E,K),withOwn:go(E,K,le,me+1,me,De-ze,new Map)}),Kp=E=>zI(an(),E,r.margin.top),xt=(E,K=we,le=false,me)=>{let De=we,ze={positionTextTable:le,cursorY:K,columnWidth:se,columnLeft:zt,flowColumn:()=>i.count>1?Ct:void 0,contentHeight:ye,unreservedContentHeight:tt,advanceColumn:()=>{we=ze.cursorY,Ga(),ze.cursorY=we;},advancePage:()=>{Qn(),rl(),ze.cursorY=we;},pageHoldsContent:We=>Ke.length>0||We>0,columnTop:()=>i.count>1?Yo:0,regionHoldsContent:We=>lt>0?Ot()||We>Yo:ze.pageHoldsContent(We),anchorFrames:ve,verticalAnchorFrames:()=>Kp(K),styleCascade:s,displayMode:m,...g?{revisionAuthorFilter:g}:{},deps:Xo,compatibilityMode:n.compatibilityMode,shiftAnchor:(We,it)=>eh(Ze,We,it),publishFragment:We=>Ke.push(We),followingKeepOpening:We=>me===void 0?void 0:Jo.opening(me,We)},Je=KB(E,ze);return we=Je.outOfFlow?De:ze.cursorY,Je.outOfFlow};Ys=()=>WI(Wt,xn,Ke,pr,(E,K,le,me)=>{let De=lt,ze=Ct;lt=K,Ct=K,te=[];try{let Je=hx(E,le,se(),ve(),Ke.slice(0,me),Xo);xt(E,Je,!0),uf(E,te);}finally{te=null,lt=De,Ct=ze;}});let at=(E,K)=>{let le=Le[E];return E===Le.length-1&&le?.kind==="paragraph"&&!le.frame&&Tn(le.paragraph)!==void 0&&(c?.get(le.paragraph.id)??le.listItem)===void 0&&bx(le,K??po(le,E),n.inlineDrawingLayout)?le:void 0},Jt=-1,Js=(E,K)=>{if(E===Jt)return true;if(n.sectionMarkCollapses!==true||E===0)return false;let le=at(E,K);return le!==void 0&&!mo(E,le)},Jo=ck({blocks:Le,dynamicBlock:E=>Le[E]?.kind==="paragraph"&&cx(Le[E].paragraph,n.inlineDrawingLayout),contextKey:()=>{let E=pe(),K=`${se()}:${Jt}:`;return E.length?K+`${Ct}:${we}:${q}:${ut}:${sr(E)}`:K},linesFor:E=>{let K=Z(e[E],se());return K.kind==="paragraph"?po(K,E):[]},skipBlock:E=>Le[E]?.kind==="paragraph"&&(!!Le[E].frame||Js(E)),breaksBefore:E=>Le[E]?.kind==="paragraph"&&mo(E,Le[E]),sumAdjacentSpacing:s?.fixedParagraphSpacing,tableOpening:E=>w.opening(Le[E],se(),ye(),Xo)},n.compatibilityMode),Wn=false,Ka=Le.length,al=0;for(let E=He;E<Le.length;E+=1){let K=Z(e[E],se());if(N[E]=Se(),uo&&On>0&&E>=Le.length-On){let Oe=k.checkpoints[E+(k.keys.length-Le.length)];if(Oe&&mE(Oe,N[E])){let Be=Y.length-Oe.pageCount;if(QB({delta:Be,titlePage:F?.titlePage===true,evenAndOddHeaders:F?.evenAndOddHeaders===true,parityDependent:k.parityDependent,usedPageParity:V,markPageCount:Oe.pageCount,continuedInsets:ne!==void 0,firstPageBorders:n.sectionPageBorders!==void 0&&n.sectionPageBorders.display!=="allPages",hasNoteReserves:T!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let en=Be===0?Ge.pages.slice(Oe.pageCount):Ge.pages.slice(Oe.pageCount).map((ln,Cn)=>Xi(ln,Y.length+Cn,J(Y.length+Cn).y));Y.push(...en),Ee+=en.length,Wn=true,Ka=E,al=Be,Nr+=k.endLineCounter-Oe.lineCounter;break}}}if(fe+=1,K.kind==="table"){if(nl.has(K.table.id))continue;if(Tt?.start===E&&i.count===1&&xn.size===0&&!Ke.some(up)&&!pe().length){let Oe=Le[Tt.anchorIndex];if(Oe.kind==="paragraph"){let Be=po(Oe,Tt.anchorIndex);if(Be.length===1&&Be[0].spans.length===0){let dt=la(Oe.spacing.before,q),en=ZB(Tt,{cursorY:we+dt,anchorHeight:Be[0].height,contentWidth:P,contentHeight:ye(),frames:ve(),deps:Xo,styleCascade:s,displayMode:m,authorFilter:g});if(en){let ln=qB(en.fragments,Wt,Ct);for(let Cn of ln)Ke.push(Cn);for(let[Cn,Dr]of Tt.tables.entries())nl.add(Dr.id),uf(Dr,en.cellBreakKeys[Cn]);$t=en.bottom;continue}}}}if(yn.has(K.table.id)&&!oe&&hB(K.table,Xo,{allowBreak:i.count===1&&yn.get(K.table.id),zones:n.drawingExclusionZonesByPage,page:Y.length,width:Math.min(...i.widths),frames:ve(),top:we,bottom:ye()})){Zn.add(xn,K.table.id);continue}te=[];try{xt(K.table,we,!1,E+1)||(q=0),uf(K.table,te);}finally{te=null;}continue}let le=K.frame,{paragraph:me,props:De,contextualSpacing:ze,styleId:Je,borders:We,shading:it,keeps:Qt}=K,Nt=Le[E],Me=Nt.kind==="paragraph"?Nt.spacing:K.spacing,{indent:Fe,alignment:Ue,markRunProperties:At}=K,mt=ht(K.props),gt=K.available,tr=E>0?Le[E-1]:void 0,Ar=Le[E+1],Qo=c?.get(me.id)??K.listItem,Dt=me.id,il=M.joins(tr,K),ll=M.joins(K,Ar),Zc=il?void 0:We.top,Jc=ll?We.between:We.bottom,ea=Ro(Zc),ed=Ro(Jc);mo(E,K)&&(Ke.length>0||we>0)&&E!==Jt&&(Qn(),q=0);let Qe=po(K,E),Qc=(Oe=0,Be)=>{er.measure(Y.length,E,pe(),Qe,dt=>po(K,E,Oe,Be,dt));};if(Qc(),Qe.length===0){Zo(Dt),Zn.note(pr,me.id,Ct,Ke.length,we);continue}let Hx=Tn(me)!==void 0,Wx=AO(Qe),QE=Hx&&qc(K,Qe),sl=Hx&&!le&&Js(E,Qe),zx=()=>sl||QE&&U===void 0&&lt+1>=i.count,$p=()=>M.admits(tr,K)&&Ut.checkpoint()===void 0&&!Ds(Wt).has(Dt)&&TB(K,Qe,n.inlineDrawingLayout),dl=ob(sl?{before:0,after:0}:Me,ze,Je,Hi(me,-1,tr,s),Hi(me,1,Ar,s)),eu=(Oe,Be)=>{let dt=Z(me,se());dt.kind==="paragraph"&&(Fe=dt.indent,Ue=dt.alignment,gt=dt.available,At=dt.markRunProperties,Zo(Dt),Qe=[...po(dt,E,Oe,Be)],Qc(Oe,Be));},tu=le||sl?{cursorY:we,previousSpaceAfter:q,firstParagraphOfSection:ut}:null,nu=le?Ut.start(le,tr?.kind==="paragraph"?tr.paragraph.id:void 0):null;if(nu&&(we=nu.cursorY,q=Uf(nu.previousSpaceAfter,s)),!le){let Oe=la(dl.before,q),Be=At.length===0?En:je(At,s?.themeFonts),dt=Qe.length<=1?ed:0,en=we+Oe+ea,ln=go(K,E,Qe,0,0,en,new Map),Cn=Qe[0]?hh(en,Qe[0],ln,dt):l.lineMetrics(Be).height+dt,Dr=Oe+ea+Math.max(Cn,Ut.requiredAnchorBand(Qe),bB(Wt,xn,Dt,se(),Xo,{anchorY:en,anchorExtent:Cn,frames:ve(),verticalFrames:Kp(en),earlier:Ke}));if(Qt.keepNext&&!Fn[E-1]){let _r=Jo.need(E,q,{cursorY:we,contentHeight:ye(),lead:Oe,topExtent:ea,pricedLead:sl?0:la(Me.before,q),freshLead:ut||mo(E,K)?dl.before:0});_r!==null&&(Dr=Math.max(Dr,_r));}we+Dr>ye()&&we>0&&!zx()&&!$p()&&(Ga(),q=0,eu(0));}let eL=we===0&&!Ot(),$a=!le&&$p(),tL=$a?la(dl.before,q):0,Up=$a?0:wg(dl.before,q,le?false:eL,le?false:ut||mo(E,K));Up>0&&(we+=Up),ea>0&&!$a&&(we+=ea),ut=false;let Vx=Jo.tailBreak(E,Qe.length,we,ye()),ho=0,st=[],Gx=Qe[0]?.start??0,hr=Up,yo=$a?0:ea,ru=false,td=false,Kx=0,ta=we,$x=0,Ua=new Map;q=0;let Ux=n.inlineDrawingLayout!==void 0&&yt(K.paragraph,n.inlineDrawingLayout).length>0,Yx=false,Yp=null,{revisions:nL,formatRevision:rL}=af(K.paragraph,m,g),Xx=Xl(K.paragraph,m,g),qx=ba(K.paragraph),Zx=qx?ql(qx,m,g):null,ou=Oe=>{if(st.length===0)return;let Be=zt(),dt=ft(),en=st[0].box.y,ln=en-hr-yo,Cn=st[st.length-1].box.y+st[st.length-1].box.height,Dr=Oe?dl.after:0,{strokes:_r,bottomBorder:cl,contentTop:nd,contentBottom:qp,boxLeft:au,boxWidth:Xa,bottom:rd,height:od}=lB({borders:We,topEdge:ho===0?Zc:We.top,closingEdge:Jc,continuesAbove:il,continuesBelow:ll,inFrame:!!le,isLast:Oe,fragmentIndex:ho,topExtent:yo,appliedAfter:Dr,top:ln,linesTop:en,linesBottom:Cn,regionX:Be,indentLeft:Fe.left,available:gt,drawn:!$a});Oe&&(we=Math.max(we,rd));let ul=Zx?Jf(st,Zx):null,qa=(Wx===void 0?ho===0:st[0].range.start===Wx)?Xm(Qo,l,st[0],0,mt?Fe.left+gt+Fe.right:void 0,n.inlineDrawingLayout?.pictureBulletResource):void 0,iu=qa?{...qa,box:{...qa.box,x:qa.box.x+Be}}:void 0;!le&&ho===0&&(Jn(Dt,ta,st),Zn.note(pr,Dt,Ct,Ke.length,ta));let Pn={kind:"paragraph",id:`${Dt}#f${ho}`,paragraphId:Dt,fragmentIndex:ho,range:ul?ul[ul.length-1].range:{paragraphId:Dt,start:Gx,end:st[st.length-1].range.end},props:De,styleId:K.styleId,outlineLevel:K.outlineLevel,alignment:K.alignment,spacing:{before:hr,after:Dr},indent:Fe,...cl?{bottomBorder:cl}:{},..._r.length>0?{borders:_r}:{},...sl||td?{outOfFlow:true}:{},...it===void 0||sl?{}:{shading:it,shadingBox:vB(We.left||We.right?{x:au,y:nd,width:Xa,height:Math.max(qp-nd,0)}:Nu(st,Be+Fe.left,gt),td?{y:Kx,clip:fo()}:void 0)},tabStops:K.tabStops,...iu?{marker:iu}:{},...Oe?{paragraphEnd:true}:{},...Oe&&p?lf(nL,rL):{},...Oe&&Xx.length>0?{markChangeSites:Xx}:{},lines:ul??st,...Um(st,At,s?.themeFonts),box:{x:dt+Fe.left,y:ln,width:gt,height:od}};if(le?Ut.add(le,Pn,nu?.groupId,E):Ke.push(Pn),n.inlineDrawingLayout&&Ux&&!Yx){Yx=true;let nr=[...$n(K.paragraph).values()],ad=nr.length>0&&nr.every(yr=>st.some(zn=>yr>=zn.range.start&&yr<zn.range.end)),id,Za,ld;if(ad){let yr=ln-ah($x,ta,st[0],{inheritedZones:ol(K,E),spaceAbove:hr})-er.displacement(Y.length,Dt);id=st,Za={x:dt+Fe.left,y:yr,width:gt,height:od},ld=gr(Za);}else {let yr=Yp??{columnX:dt,columnWidth:se(),startY:ln},zn=JB(Qe,yr,{left:yr.columnX+Fe.left,width:gt},Dt);id=zn.lines;let sd=yr.startY-er.displacement(Y.length,Dt);Za={x:yr.columnX+Fe.left,y:sd,width:gt,height:Math.max(zn.bottom-sd,st[0]?.box.height??0)},ld=gr(Za);}Va(vi({paragraph:K.paragraph,paragraphId:Dt,paragraphBox:Za,lines:id,drawingLayout:n.inlineDrawingLayout,frameBase:an(),columnBox:ld,cellBox:null,pageClip:fo(),cellAnchorScope:null,measurer:l,sourceOrderOf:Sn,layoutTextboxStory:be.layoutTextboxStoryFor,displayMode:m,...g?{revisionAuthorFilter:g}:{}}));}ho+=1,Gx=st[st.length-1].range.end,st=[],hr=0,yo=0;},bo=0,Xp=0,Ya=Qe.length+Zd,Jx=0;for(let Oe=0;Oe<Qe.length;Oe+=1){let Be=Qe[Oe],dt=Oe===Qe.length-1,en=dt?ed:0;Oe===bo&&(ta=we,Ux&&Yp===null&&ho===0&&(Yp=Object.freeze({columnX:ft(),columnWidth:se(),startY:ta})));let ln=le?0:qs(K,E,Qe,Oe,bo,ta,Be,Ua,hr),Cn=ln+Math.max(0,Be.height-Be.trailingSpacing)+en;if(td=!le&&Oe===0&&we+Cn>ye()&&$p(),Oe===Vx||!le&&we+Cn>ye()&&!zx()&&!td&&(st.length>0||Ke.length>0||(Y.length>0||oe&&ln>0)&&Zs(K,E,Qe,Oe,ta,hr)+Math.max(0,Be.height-Be.trailingSpacing)+en<=ye())){if(Vx=-1,!Ot()&&ln>0&&pe().some(zn=>zn.sourceKind==="furniture")&&++Jx>ma*Hn)throw new Mo("wrapping page furniture leaves no room for body content");let Pn=!Ot(),nr=Xp<Ya?xa(Oe,bo,Qe.length,Qt,Pn):Oe,ad=nr<Oe;for(let zn=Oe;zn>nr;zn-=1){st.pop();let sd=Qe[zn-1],oL=Ua.get(zn-1)??sd.exclusionSkipBefore??0;Ua.delete(zn-1),we-=sd.height+oL,Nr-=1;}let id=ad&&st.length===0&&ho===0,Za=Qe[nr].start,ld=se(),yr=pe().length>0;if(ou(false),Ga(),hr=0,id?we=yo:yo=0,se()!==ld||yr||pe().length>0){eu(Za,we),Ua.clear(),Ya=Math.max(Ya,Qe.length+Zd),bo=0,ad&&(Xp+=1),Oe=-1;continue}if(bo=nr,ta=we,ad){Xp+=1,Oe=nr-1;continue}}Jx=0;let _r=ft();Ua.set(Oe,ln),we+=ln,td&&(Kx=we,we=Math.min(we,Math.max(0,ye()-Be.height)));let cl=Be.firstLineOffset??0,nd=_r+Fe.left+(mt?0:cl),qp=Math.max(1,gt-cl),au=Be.spans.map(Pn=>({...Pn,range:{...Pn.range,paragraphId:Dt},box:{...Pn.box,x:Pn.box.x+_r-(mt?cl:0),y:we}})),Xa=Sy(Be,_r,nd,qp),rd=ic(au,l,Xa.indent,Xa.available,Ue,dt,Ue==="center"||Ue==="right"?Xa.used:void 0,mt,false,Be.spaceShrink===true),od=km(au,rd,Ue,Xa.available,Xa.used),ul=Object.freeze({x:0,y:0,width:a,height:ye()}),Qx=Be.drawings.map(Pn=>{let nr=Object.freeze({...lr(Pn,_r,we),paragraphId:Dt});return Cf(nr,ul)}),qa=jd(Qx,od),iu={id:kx(me.id,Be.start,Oe),range:{paragraphId:Dt,start:Be.start,end:Be.end},spans:rd,box:{x:ft()+Fe.left,y:we,width:gt,height:Be.height},contentX:Qf(rd,nd+od),baseline:Be.baseline,leading:Be.leading,trailingSpacing:Be.trailingSpacing,...Be.manualBreakAfter?{manualBreakAfter:true}:{},...Be.deletedRanges?{deletedRanges:Be.deletedRanges}:{},...qa.length>0?{drawings:qa}:{},...Be.anchorRevisions?{anchorRevisions:Be.anchorRevisions}:{},...Be.changeSites?{changeSites:Be.changeSites}:{}};if(Nr+=1,st.length===0&&($x=ln),st.push(iu),we+=Be.height,Be.columnBreakAfter){let Pn=se(),nr=pe().length>0;if(ou(dt),Ga(),hr=0,yo=0,ru=true,!dt&&(se()!==Pn||nr||pe().length>0)){eu(Be.end,we),Ua.clear(),Ya=Math.max(Ya,Qe.length+Zd),bo=0,Oe=-1;continue}bo=Oe+1;}else if(Be.pageBreakAfter){let Pn=pe().length>0;if(ou(dt),dt&&n.markJoinsBreakSheet&&!le&&at(E+1)?Jt=E+1:Qn(),hr=0,yo=0,ru=!$a||dt||Eo(Qe[Oe+1]),ru||($a=false,hr=tL,yo=Ro(We.top),we+=hr+yo),!dt&&(Pn||pe().length>0)){eu(Be.end,we),Ua.clear(),Ya=Math.max(Ya,Qe.length+Zd),bo=0,Oe=-1;continue}bo=Oe+1;}}ou(true),Zo(Dt),q=Uf(ru?0:dl.after,s),tu&&(we=tu.cursorY,q=tu.previousSpaceAfter,ut=tu.firstParagraphOfSection);}Wn||Jn("",we),Wn||(N[Le.length]=Se());let In=Wn&&k?k.endCursorY:Math.max(we,$t),Qs=Wn&&k?k.endSpaceAfter:q,Ax=!Wn&&(Ke.length>0||pr.length>0||Y.length===0),Dx=Wn&&k?k.endsOpenPage:Ax;Ax&&(Qn(),In=Math.max(In,xB(Y.at(-1).fragments),zO(Y.at(-1).fragments)));let _x=0,JE=sh*4+8;for(;(Ze.length>0||It.length>0)&&_x<JE;)_x+=1,Ze.length===0&&rl(),Qn();It.length>0&&(Ze.push(...It.map(E=>uh(E,"page-defer-exhausted"))),It=[],Qn()),Xe();let jx={revision:t,pages:Y,...n.displayMode?{displayMode:n.displayMode}:{}};if(k){k.previous=jx,k.checkpoints=Wn?[...N.slice(0,Ka),...k.checkpoints.slice(Ka+(k.keys.length-Le.length)).map(K=>al===0?K:{...K,pageCount:K.pageCount+al})]:N,k.keys=kt,k.context=Y.length+1===_?z:W(bp(T,D,Y.length+1)),k.producer=R;let E=V||F?.evenAndOddHeaders===true;k.parityDependent=He===0&&!Wn?E:k.parityDependent||E,k.startPageParity=$,k.startLineCounter=O,k.endLineCounter=Nr,k.endCursorY=In,k.endSpaceAfter=Qs,k.endsOpenPage=Dx,k.stats={placed:fe,total:Le.length,reusedPages:Ee,fullPasses:k.stats.fullPasses+(He===0?1:0)};}return {layout:jx,pages:Y,lineCounter:Nr,endCursorY:In,endSpaceAfter:Qs,endsOpenPage:Dx,overflowShellAt:re}}function jp(e,t,n){try{return Tx(e,t,n,PE)}catch(r){if(!GM(r,n))throw r;let o=n.session?$o():void 0,a=Tx(e,t,{...n,session:o,producer:ie([n.producer??"","hidden-furniture-yields"]),yieldHiddenFurnitureZones:true},PE);return n.session&&o&&vp(n.session,o),a}}var RE=new WeakMap,wE=new WeakMap;function mn(e){let t=RE.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of YG(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return RE.set(e,n),n}function YG(e){let t=wE.get(e);if(t)return t;let n=new Map,r=(a,i,l)=>{for(let d of Pt(a)){let s={line:a,pageIndex:i,...l?{clipBox:l}:{}},c=n.get(d.paragraphId);c?c.push(s):n.set(d.paragraphId,[s]);}},o=(a,i)=>{let l=d=>{for(let s of d){if(s.kind==="paragraph"){for(let c of s.lines)r(c,i,s.clipToBox?s.box:void 0);continue}for(let c of s.rows)if(!c.isHeaderRepeat)for(let u of c.cells)l(u.blocks);}};l(a);};for(let a of Gt(e))for(let i of a.lines)r(i,e.index,a.clipToBox?a.box:void 0);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 wE.set(e,n),n}function Gde(e,t,n){let r=mn(e).get(t);if(r&&r.length>0){let o=Xu(e,t,n,r.map(a=>a.line));if(o)return o}return Xu(e,t,n)}var kE=new WeakMap;function vx(e,t){let n=kE.get(e);n||(n=new Map,kE.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of mn(e).get(t)??[])if(i.range.paragraphId===t)for(let l of i.deletedRanges??[])o.push({start:l.start,end:l.end});o.sort((i,l)=>i.start-l.start);let a=[];for(let i of o){let l=a[a.length-1];l&&i.start<=l.end?l.end=Math.max(l.end,i.end):a.push(i);}return n.set(t,a),a}function TE(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function XG(e,t){for(let n of vx(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var qG=/[\p{L}\p{N}_'\u2019]/u;function Gc(e,t,n,r=ZG){let o=i=>{let l=e[i];return l!==void 0&&qG.test(l)},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 ZG=new Set;function $s(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.style.shaping?ao(i,i.range.start,n):i.box.x;if(t>=i.range.end){a=i.style.shaping?ao(i,i.range.end,n):i.box.x+i.box.width;continue}return ao(i,t,n)}return a}function Fx(e){e.sort((n,r)=>n.x-r.x);let t=[];for(let n of e){let r=t.at(-1);r&&n.x<=r.x+r.width+.001?t[t.length-1]={x:r.x,width:Math.max(r.x+r.width,n.x+n.width)-r.x}:t.push(n);}return t}var vE=new WeakMap,JG=/^[\p{Control}\p{Default_Ignorable_Code_Point}]+$/u,QG=/[\p{Letter}\p{Number}\p{Punctuation}\p{Symbol}]/u;function eK(e,t,n,r){if(JG.test(e.text.slice(t-e.range.start,n-e.range.start)))return null;if(e.style.shaping&&r&&e.text.length<=zm&&e.text.length===e.range.end-e.range.start){let o=vE.get(e);o||(o=pt(e.text),vE.set(e,o));let a=d=>{let s=0,c=o.length;for(;s<c;){let u=Math.floor((s+c)/2);o[u].utf16To<=d?s=u+1:c=u;}return o[s]},i=a(t-e.range.start),l=a(n-e.range.start-1);if(i&&l){t=e.range.start+i.utf16From,n=e.range.start+l.utf16To;let d=ao(e,e.range.start+l.utf16From,r);if(QG.test(l.text)&&ao(e,n,r)===d){let s=n+1,c=e.range.end;for(;s<c;){let u=Math.floor((s+c)/2);ao(e,u,r)===d?s=u+1:c=u;}n=Math.min(s,e.range.end);}}}return [ao(e,t,r),ao(e,n,r)]}function Hp(e,t,n,r,o){let a=o?.spans??e.spans;if(!a.some(l=>l.style.shaping!==void 0)){let l=$s(e,t,r,o),d=$s(e,n,r,o);return [{x:Math.min(l,d),width:Math.abs(d-l)}]}let i=[];for(let l of a){let d=Math.max(t,l.range.start),s=Math.min(n,l.range.end);if(d>=s)continue;let c=eK(l,d,s,r);if(!c)continue;let[u,f]=c;i.push({x:Math.min(u,f),width:Math.abs(f-u)});}return Fx(i)}function FE(e,t,n){let r;for(let{pageIndex:o}of e)(o-t)*n<=0||(r===void 0||(o-r)*n<0)&&(r=o);return r}var OE=new WeakMap;function Ox(e,t){let n=OE.get(e);if(n||OE.set(e,n=new Map),n.has(t))return n.get(t);let r=mn(e),o=new Set([t]),a=new Map,i=new Map,l=new Map;for(let u of o){let f;for(let m of r.get(u)??[]){let g=m.line.id;a.set(g,m),l.has(g)||l.set(g,0);for(let p of Pt(m.line))o.add(p.paragraphId);if(f&&f!==g){let p=i.get(f);p||i.set(f,p=new Set),p.has(g)||(p.add(g),l.set(g,l.get(g)+1));}f=g;}}if(o.size===1)return n.set(t,null),null;let d=[...a.keys()].filter(u=>l.get(u)===0),s=[];for(let u=0;u<d.length;u++){let f=d[u];s.push(a.get(f));for(let m of i.get(f)??[])l.set(m,l.get(m)-1),l.get(m)===0&&d.push(m);}let c={members:[...o],lines:s};for(let u of o)n.set(u,c);return c}var IE=new WeakMap;function Kc(e,t){let n=IE.get(e);if(n||IE.set(e,n=new Map),!n.get(t.lineId)?.has(t.position.paragraphId)){let r=mn(e).get(t.position.paragraphId)??[],o=r.flatMap(({line:a})=>a.spans).find(a=>a.range.paragraphId===t.position.paragraphId&&a.style.shaping)?.style.shaping?.baseLevel;if(o===void 0&&r.every(({line:a})=>a.spans.length===0&&!a.drawings?.length)){let a=e.pages[r[0]?.pageIndex??-1],i=a&&Il(a).find(l=>l.range.paragraphId===t.position.paragraphId);i&&ht(i.props)&&(o=1);}for(let{line:a}of r){let i=a.spans.find(d=>d.range.paragraphId===t.position.paragraphId&&d.style.shaping)?.style.shaping?.baseLevel??o,l=n.get(a.id);l||n.set(a.id,l=new Map),l.set(t.position.paragraphId,i===void 0?void 0:i%2?-1:1);}}return n.get(t.lineId)?.get(t.position.paragraphId)}var CE=new WeakMap;function Cx(e){let t=CE.get(e);if(t)return t;let n=new Map;for(let o of e){let a=n.get(o.lineId);a||n.set(o.lineId,a=[]),a.push(o);}let r=[...n.keys()];return t={indexes:new Map(e.map((o,a)=>[o,a])),lines:r,lineIndexes:new Map(r.map((o,a)=>[o,a])),groups:new Map([...n].map(([o,a])=>[o,{logical:a,paragraphIds:new Set(a.map(i=>i.position.paragraphId))}]))},CE.set(e,t),t}function Ix(e){return e.visual||(e.visual=[...e.logical].sort((t,n)=>t.x-n.x),e.indexes=new Map(e.visual.map((t,n)=>[t,n]))),e.visual}function tl(e,t,n,r){let o=e[t],a=r(o);if(a===void 0)return {target:e[t+n],logicalDirection:n};let i=Cx(e),l=i.groups.get(o.lineId),s=Ix(l)[l.indexes.get(o)+n],c=n*a;if(s)return {target:s,logicalDirection:c};let u=i.lines[i.lineIndexes.get(o.lineId)+c];if(!u)return {logicalDirection:c};let f=i.groups.get(u),m=[...l.paragraphIds].some(h=>f.paragraphIds.has(h)),g=m?Ix(f):f.logical;return {target:(m?n:c)===1?g[0]:g.at(-1),logicalDirection:c}}function $c(e,t,n,r){let o=Cx(e).groups.get(t.lineId),a=r(t),i=a===void 0?o.logical:Ix(o);return n*(a??1)===-1?i[0]:i.at(-1)}function Mx(e,t,n,r,o,a){let i=t[n];if(o(i)===void 0)return Gc(e,i.position.offset,r,a);let l=Cx(t).indexes,d=i,s=false;for(let c=0;c<t.length;c++){let u=tl(t,l.get(d),r,o).target;if(!u||u.position.paragraphId!==i.position.paragraphId)break;if(Math.abs(l.get(u)-l.get(d))===1){let m=/[\p{L}\p{N}\p{M}_'\u2019]/u.test(e.slice(Math.min(d.position.offset,u.position.offset),Math.max(d.position.offset,u.position.offset)));if(s&&!m)break;s||=m;}else if(s)break;if(d=u,a.has(d.position.offset))break}return d.position.offset}function Us(e,t,n,r){let o,a;for(let l of e)l.position.paragraphId===t.paragraphId&&(l.position.offset<t.offset&&(!o||l.position.offset>o.position.offset)&&(o=l),l.position.offset>t.offset&&(!a||l.position.offset<a.position.offset)&&(a=l));if(o&&a&&o.lineId===a.lineId&&o.x!==a.x)return n*(a.x<o.x?-1:1);let i=o??a;return n*(i?r(i)??1:1)}function Bx(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 Uc=class{#e=new WeakMap;#t=new WeakMap;get(t,n,r,o){let a;if(!r)a=this.#e.get(t)??new Map,this.#e.has(t)||this.#e.set(t,a);else {let d=this.#t.get(t);d||(d=new WeakMap,this.#t.set(t,d)),a=d.get(r)??new Map,d.has(r)||d.set(r,a);}let i=a.get(n);if(i)return i;let l=o();return a.set(n,l),l}};function EE(e,t){for(let n=e.length-1;n>=0;n--)if(e[n].position.paragraphId===t)return e[n]}function ME(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 BE(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 Yc(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 Ex(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 LE(e,t,n,r=()=>{}){let o=n.index.get(e.paragraphId)?.get(e.offset),a=o===void 0?Yc(n.stops,e):n.stops[o];return a?$c(n.stops,a,t,r).position:null}function NE(e,t,n,r,o,a=()=>{}){let i=o(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),d=t;if(l===void 0){d=Us(i.stops,e,t,a);let f=Ex(i.stops,e,d);if(f)return {position:f.position,desiredX:null}}else {let f=tl(i.stops,l,t,a);if(d=f.logicalDirection,f.target)return {position:f.target.position,desiredX:null}}let s=n[r+d];if(!s)return {position:e,desiredX:null};let c=o(s).stops,u=d===-1?c[c.length-1]:c[0];return u?{position:u.position,desiredX:null}:null}function AE(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 DE(e,t,n,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),d=l===void 0?Yc(i.stops,e):i.stops[l];if(!d)return null;let s=n??d.x,c=ME(i.stops),u=c.indexOf(d.lineId),f=c[u+t];if(f){let g=BE(i.stops,f,s);return g?{position:g.position,desiredX:s}:null}for(let g=o+t;g>=0&&g<r.length;g+=t){let p=a(r[g]),h=ME(p.stops),b=t===-1?h[h.length-1]:h[0];if(!b)continue;let y=BE(p.stops,b,s);if(y)return {position:y.position,desiredX:s}}let m=t===-1?i.stops[0]:i.stops[i.stops.length-1];return m?{position:m.position,desiredX:s}:null}function _E(e,t,n){let r=mn(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 jE(e,t,n){for(let{line:r}of mn(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function HE(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 Lx(e){let t=e.spans[e.spans.length-1]?.text;return t===`
18
- `||t===chunk6KA3L3FR_cjs.Ua}function WE(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 Vp(e,t,n,r,o,a,i){for(let l of Pt(n))a!==void 0&&l.paragraphId!==a||rK(e,t,n,l,r,o,i);}function rK(e,t,n,r,o,a,i){let l=Pt(n).length>1,d=vx(t,r.paragraphId),s=c=>r.spans.some(u=>u.range.start<=c&&c<=u.range.end);for(let c=r.start;c<=r.end;c+=1){if(c===r.end&&c>r.start&&!l&&Lx(n)&&_E(t,n,c)||c===r.start&&r.start>0&&e.length>0&&EE(e,r.paragraphId)?.position.offset===c||HE(n,c,r)||TE(d,c)&&!s(c))continue;let u=oo({x:$s(n,c,a,r),y:n.box.y,width:0,height:n.box.height},i);u&&e.push(Rs(t,{position:{paragraphId:r.paragraphId,offset:c},x:u.x,y:u.y,height:u.height,lineId:n.id,pageIndex:o}));}}function $E(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)Vp(r,e,i,n,o,void 0,a.clipToBox?a.box:void 0);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)$E(e,l.blocks,n,r,o);}}var oK=new Uc;function aK(e,t){let n=[];for(let r of e.pages)for(let o of Gt(r))for(let a of o.lines)Vp(n,e,a,r.index,t,void 0,o.clipToBox?o.box:void 0);return n}var iK=new Uc;function Nx(e,t,n){let r=Ox(e,t);return r?iK.get(e,r.members[0],n,()=>{let o=[];for(let{line:a,pageIndex:i,clipBox:l}of r.lines)Vp(o,e,a,i,n,void 0,l);return Bx(o)}):Wp(e,t,n)}function Wp(e,t,n){return oK.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a,clipBox:i}of mn(e).get(t)??[])Vp(r,e,o,a,n,t,i);return Bx(r)})}function Fce(e,t,n,r){if(!e.pages[t])return [];let o=[];return $E(e,n,t,o,r),o}function lK(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function sK(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of Gt(r,true))if(a.paragraphId===n)for(let i of a.lines)o.push({line:i,pageIndex:t,...a.clipToBox?{clipBox:a.box}:{}});return o}function dK(e,t,n){let r=lK(n),o=mn(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:sK(e,a,t.paragraphId),l=new Set(o.map(f=>f.line.id)),d=i.filter(f=>!l.has(f.line.id)),s=d.length>0?[...o,...d]:o,c=a===void 0?s:[...s].sort((f,m)=>{let g=f.pageIndex===a?0:1,p=m.pageIndex===a?0:1;return g-p}),u=null;for(let{line:f,pageIndex:m,clipBox:g}of c){let p=wo(f,t.paragraphId);if(!p||t.offset<p.start||t.offset>p.end)continue;if(t.offset===p.end&&t.offset>p.start&&Pt(f).length===1&&(Lx(f)||WE(f,p))){u??={line:f,pageIndex:m,clipBox:g};continue}if(t.offset===p.end&&t.offset>p.start&&jE(e,t.paragraphId,t.offset))continue;let h=oo({...Rc(f,t.offset,r.measurer,p),width:0},g);if(h)return Rs(e,{position:t,x:h.x,y:h.y,height:h.height,lineId:f.id,pageIndex:m})}if(u){let f=oo({...Rc(u.line,t.offset,r.measurer,wo(u.line,t.paragraphId)),width:0},u.clipBox);return f?Rs(e,{position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}):null}return null}function Oce(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return tb(e,n,t)?.caret??null}function Ice(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return nb(e,n,t)}function Cce(e){return Mg(e)}var zE=new WeakMap;function UE(e){let t=zE.get(e);return t||(t=new Map,e.forEach((n,r)=>{t.has(n)||t.set(n,r);}),zE.set(e,t)),t}function zp(e,t){return UE(e).get(t)??-1}function Gp(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=zp(t,e.anchor.paragraphId),r=zp(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 VE(e,t){let n=[],r=new Set;for(let{line:a}of mn(e).get(t)??[]){let i=wo(a,t);if(i){for(let l of i.spans){if(l.range.end===l.range.start)continue;let d=`${l.range.start}:${l.range.end}`;if(r.has(d))continue;r.add(d);let s=l.range.end-l.range.start,c=l.text.length===s?l.text:l.text.slice(0,s).padEnd(s," ");n.push({start:l.range.start,text:c});}for(let l of i.drawings){let d=l.start,s=d+1,c=`${d}:${s}`;r.has(c)||(r.add(c),n.push({start:d,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 GE(e,t){let n=new Set;for(let{line:r}of mn(e).get(t)??[]){let o=wo(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 KE(e,t,n,r){let o=Ol(e),a=ui(e),i=a.get(t.paragraphId);if(i===void 0)return null;let l=Ox(e,t.paragraphId),d=Nx(e,t.paragraphId,r),s=c=>Kc(e,c);if(l){let c=d.index.get(t.paragraphId)?.get(t.offset),u=c===void 0?Us(d.stops,t,n,s):tl(d.stops,c,n,s).logicalDirection,f=l.members.map(m=>a.get(m)).filter(m=>m!==void 0);i=u===-1?Math.min(...f):Math.max(...f);}return NE(t,n,o,i,c=>c===t.paragraphId?d:Wp(e,c,r),s)}function Mce(e,t,n,r=null,o={}){let a=s=>Kc(e,s);if(!o.stops&&(n==="left"||n==="right"))return KE(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let s=n==="wordLeft"?-1:1,c=Nx(e,t.paragraphId,o.measurer),u=c.index.get(t.paragraphId)?.get(t.offset),f=VE(e,t.paragraphId),m=GE(e,t.paragraphId),g=u===void 0?Gc(f,t.offset,Us(c.stops,t,s,a),m):Mx(f,c.stops,u,s,a,m);return g===t.offset?KE(e,t,s,o.measurer):{position:{paragraphId:t.paragraphId,offset:g},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let s=LE(t,n==="lineStart"?-1:1,Nx(e,t.paragraphId,o.measurer),a);return s?{position:s,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let s=AE(n==="documentStart"?-1:1,Ol(e),c=>Wp(e,c,o.measurer));return s?{position:s,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let s=ui(e).get(t.paragraphId);return s===void 0?null:DE(t,n==="up"?-1:1,r,Ol(e),s,c=>Wp(e,c,o.measurer))}let i=o.stops??aK(e,o.measurer);if(i.length===0)return null;let l=i.findIndex(s=>s.position.paragraphId===t.paragraphId&&s.position.offset===t.offset);if(l===-1){if(n==="left"||n==="right"){let c=Ex(i,t,Us(i,t,n==="left"?-1:1,a))??Yc(i,t);return c?{position:c.position,desiredX:null}:null}let s=Yc(i,t);if(!s)return null;l=i.indexOf(s);}let d=i[l];switch(n){case "left":case "right":return {position:(tl(i,l,n==="left"?-1:1,c=>Kc(e,c)).target??d).position,desiredX:null};case "lineStart":return {position:$c(i,d,-1,a).position,desiredX:null};case "lineEnd":return {position:$c(i,d,1,a).position,desiredX:null};case "wordLeft":case "wordRight":{let s=VE(e,t.paragraphId),c=Mx(s,i,l,n==="wordLeft"?-1:1,a,GE(e,t.paragraphId));return c===t.offset?{position:(tl(i,l,n==="wordLeft"?-1:1,f=>Kc(e,f)).target??d).position,desiredX:null}:{position:{paragraphId:t.paragraphId,offset:c},desiredX:null}}case "documentStart":return {position:i[0].position,desiredX:null};case "documentEnd":return {position:i[i.length-1].position,desiredX:null};case "pageUp":case "pageDown":{let s=r??d.x,c=n==="pageUp"?-1:1,u=FE(i,d.pageIndex,c),f=i.filter(p=>p.pageIndex===u);if(f.length===0)return {position:(n==="pageUp"?i[0]:i[i.length-1]).position,desiredX:s};let m=f[0],g=Number.POSITIVE_INFINITY;for(let p of f){let h=Math.abs(p.y-d.y)*1e3+Math.abs(p.x-s);h<g&&(g=h,m=p);}return {position:m.position,desiredX:s}}case "up":case "down":{let s=r??d.x,c=[],u=new Set;for(let h of i)u.has(h.lineId)||(u.add(h.lineId),c.push(h.lineId));let f=c.indexOf(d.lineId),m=n==="up"?f-1:f+1;if(m<0||m>=c.length)return {position:(n==="up"?i[0]:i[i.length-1]).position,desiredX:s};let g=i.filter(h=>h.lineId===c[m]),p=g[0];for(let h of g)Math.abs(h.x-s)<Math.abs(p.x-s)&&(p=h);return {position:p.position,desiredX:s}}default:return null}}function Bce(e,t,n){return dK(e,t,n)}function Ece(e,t,n){let r=Gp(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return cK(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:d}of mn(e).get(r.from.paragraphId)??[]){let s=wo(d,r.from.paragraphId);if(!s)continue;let c=fi(e,s,r.from,r.to);if(c)for(let u of s.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=mn(e),i=zp(n,r.from.paragraphId),l=zp(n,r.to.paragraphId);if(i===-1||l===-1)return [];for(let d=i;d<=l;d+=1)for(let{line:s}of a.get(n[d])??[]){let c=wo(s,n[d]);if(!c)continue;let u=fi(e,c,r.from,r.to,UE(n));if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&o.push(f);}return o}function cK(e,t){let n=null,r=null;for(let{line:o}of mn(e).get(t.paragraphId)??[])for(let a of wo(o,t.paragraphId)?.spans??[]){if(a.range.start<t.offset&&t.offset<=a.range.end)return [a];a.range.start===t.offset&&(a.range.end===a.range.start&&a.projected?r??=a:n??=a);}return n?[n]:r?[r]:[]}function tK(e,t,n,r){return ZE(e,t,n,true,r)}function Uce(e,t,n,r){return ZE(e,t,n,false,r)}var YE=new WeakMap,XE=new WeakMap;function uK(e){let t=YE.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of Gt(r))for(let a of o.lines)for(let i of Pt(a)){let l=n.get(i.paragraphId);(!l||i.end>l.end||i.end===l.end&&i.start>l.start)&&n.set(i.paragraphId,{end:i.end,start:i.start});}return YE.set(e,n),n}function qE(e){let t=XE.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return XE.set(e,n),n}function fK(e){return Math.max(3,Math.min(8,e*.25))}function ZE(e,t,n,r,o){if(t.anchor.paragraphId===t.head.paragraphId&&t.anchor.offset===t.head.offset)return [];let a=Gp(t,n);if(!a)return [];let i=qE(n),l=i.get(a.from.paragraphId),d=i.get(a.to.paragraphId),s=uK(e),c=[];for(let u of e.pages)for(let f of Gt(u))for(let m of f.lines){let g=Fl(m);for(let[p,h]of g.entries()){let b=fi(e,h,a.from,a.to),y=i.get(h.paragraphId),x=s.get(h.paragraphId),S=l!==void 0&&d!==void 0&&y!==void 0&&y>=l&&y<d&&x?.end===h.end&&x.start===h.start&&p===g.length-1;if((!r||!b)&&!S)continue;let R=r&&b?Hp(m,b.start,b.end,o,h):[];if(S){let P=fK(Math.max(0,m.box.height-m.leading-(m.trailingSpacing??0))),w=h.spans[0]?.style.shaping?.baseLevel,F=w===void 0?ht(f.props):w%2===1,I=$s(m,h.end,o,h);if(h.spans.some(v=>v.style.shaping!==void 0)){I=F?1/0:-1/0;for(let v of h.spans)I=F?Math.min(I,v.box.x):Math.max(I,v.box.x+v.box.width);}R.push({x:F?I-P:I,width:P});}for(let P of Fx(R)){let w=oo({pageIndex:u.index,...P,y:m.box.y,height:m.box.height},f.clipToBox?f.box:void 0);w&&c.push(Hy(e,h.paragraphId,w));}}}return c}function nK(e,t,n,r){let o=new Map;if(t.length===0)return o;for(let a of e.pages)if(!(n&&!n.has(a.index)))for(let i of Gt(a))for(let l of i.lines)for(let d of Pt(l))for(let s of t){let c=fi(e,d,s.from,s.to);if(!c)continue;let u=o.get(s.key)??[];for(let f of Hp(l,c.start,c.end,r,d)){let m=oo({pageIndex:a.index,...f,y:l.box.y,height:l.box.height},i.clipToBox?i.box:void 0);m&&(u.push(Hy(e,d.paragraphId,m)),o.set(s.key,u));}}return o}function Yce(e){return {x:e.contentBox.x,y:e.contentBox.y}}function Xc(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Xce(e,t,n){if(ui(e).has(t))return {x:0,y:0};let r=e.pages[n];if(!r)return {x:0,y:0};let o=a=>Kn(a).some(i=>i.paragraphId===t);if(r.header&&o(r.header.fragments))return Xc(r,r.header.box);if(r.footer&&o(r.footer.fragments))return Xc(r,r.footer.box);for(let a of [r.footnotes,r.endnotes])if(a){for(let i of a.notes)if(o(i.fragments))return Xc(r,i.box)}return {x:0,y:0}}function qce(e,t,n,r,o){let a=new Map,i=[];for(let s of t){let c=Gp({anchor:s.from,head:s.to},n);c&&i.push({key:s.key,from:c.from,to:c.to});}if(i.length===0)return a;let l=qE(n),d=(s,c,u,f)=>{for(let m of Kn(s))for(let g of m.lines){for(let p of Pt(g))for(let h of i){let b=fi(e,p,h.from,h.to,l);if(!b)continue;let y=a.get(h.key)??[];for(let x of Hp(g,b.start,b.end,o,p)){let S=oo({pageIndex:c,...x,y:g.box.y,height:g.box.height},m.clipToBox?m.box:void 0);S&&(y.push({...S,x:S.x+u,y:S.y+f}),a.set(h.key,y));}}}};for(let s of e.pages)if(!(r&&!r.has(s.index))){d(s.fragments,s.index,0,0);for(let c of [s.header,s.footer]){if(!c)continue;let u=Xc(s,c.box);d(c.fragments,s.index,u.x,u.y);}for(let c of [s.footnotes,s.endnotes])if(c)for(let u of c.notes){let f=Xc(s,u.box);d(u.fragments,s.index,f.x,f.y);}}return a}exports.$=Xt;exports.$a=sf;exports.$b=dc;exports.$c=y4;exports.$d=kW;exports.$e=VE;exports.A=WK;exports.Aa=vl;exports.Ab=Pi;exports.Ac=ls;exports.Ad=Zt;exports.Ae=Coe;exports.B=zK;exports.Ba=h$;exports.Bb=hf;exports.Bc=f_;exports.Bd=a7;exports.Be=hM;exports.C=Au;exports.Ca=Cg;exports.Cb=GR;exports.Cc=m_;exports.Cd=i7;exports.Ce=kp;exports.D=Du;exports.Da=rN;exports.Db=yf;exports.Dc=vT;exports.Dd=Wm;exports.De=Moe;exports.E=bl;exports.Ea=Xu;exports.Eb=_n;exports.Ec=pm;exports.Ed=oo;exports.Ee=TV;exports.F=Pl;exports.Fa=Mg;exports.Fb=a2;exports.Fc=ss;exports.Fd=ws;exports.Fe=TM;exports.G=Pg;exports.Ga=qu;exports.Gb=i2;exports.Gc=ty;exports.Gd=rO;exports.Ge=$o;exports.H=_u;exports.Ha=Bg;exports.Hb=l2;exports.Hc=Or;exports.Hd=Km;exports.He=Ade;exports.I=FL;exports.Ia=Zu;exports.Ib=s2;exports.Ic=x_;exports.Id=O7;exports.Ie=mn;exports.J=bP;exports.Ja=Pt;exports.Jb=KR;exports.Jc=ny;exports.Jd=eb;exports.Je=Gde;exports.K=hd;exports.Ka=Fl;exports.Kb=Td;exports.Kc=P_;exports.Kd=tb;exports.Ke=XG;exports.L=BL;exports.La=O$;exports.Lb=XR;exports.Lc=Tn;exports.Ld=I7;exports.Le=Gc;exports.M=MK;exports.Ma=Cl;exports.Mb=d2;exports.Mc=Zq;exports.Md=C7;exports.Me=Kc;exports.N=ia;exports.Na=I$;exports.Nb=qR;exports.Nc=ay;exports.Nd=nb;exports.Ne=$s;exports.O=PP;exports.Oa=Ol;exports.Ob=ZR;exports.Oc=MT;exports.Od=oO;exports.Oe=tK;exports.P=zr;exports.Pa=oN;exports.Pb=Ri;exports.Pc=iy;exports.Pd=ao;exports.Pe=Uce;exports.Q=RP;exports.Qa=B$;exports.Qb=JR;exports.Qc=wa;exports.Qd=Rc;exports.Qe=nK;exports.R=ju;exports.Ra=Ye;exports.Rb=xf;exports.Rc=sZ;exports.Rd=M7;exports.Re=Yce;exports.S=kP;exports.Sa=E$;exports.Sb=lh;exports.Sc=KT;exports.Sd=Ma;exports.Se=Xc;exports.T=Gn;exports.Ta=L$;exports.Tb=SU;exports.Tc=kZ;exports.Td=oJ;exports.Te=Xce;exports.U=Ro;exports.Ua=N$;exports.Ub=Lo;exports.Uc=dy;exports.Ud=aJ;exports.Ue=qce;exports.V=BK;exports.Va=$e;exports.Vb=Nf;exports.Vc=bm;exports.Vd=iJ;exports.Ve=aK;exports.W=TP;exports.Wa=ca;exports.Wb=ht;exports.Wc=Dh;exports.Wd=lJ;exports.We=Fce;exports.X=la;exports.Xa=tf;exports.Xb=$d;exports.Xc=oD;exports.Xd=sJ;exports.Xe=dK;exports.Y=wg;exports.Ya=uR;exports.Yb=V3;exports.Yc=xk;exports.Yd=fb;exports.Ye=Oce;exports.Z=En;exports.Za=mN;exports.Zb=tj;exports.Zc=c6;exports.Zd=mr;exports.Ze=Ice;exports._=je;exports._a=A$;exports._b=lj;exports._c=h4;exports._d=hI;exports._e=Cce;exports.a=ai;exports.aa=et;exports.ab=Vr;exports.ac=ct;exports.ad=us;exports.ae=nC;exports.af=GE;exports.b=$S;exports.ba=zu;exports.bb=he;exports.bc=D1;exports.bd=sv;exports.be=zte;exports.bf=Mce;exports.c=Fu;exports.ca=da;exports.cb=Al;exports.cc=Yw;exports.cd=ts;exports.ce=qte;exports.cf=Bce;exports.d=Ou;exports.da=kg;exports.db=P2;exports.dc=jn;exports.dd=Tk;exports.de=Zte;exports.df=Ece;exports.e=ii;exports.ea=JK;exports.eb=cf;exports.ec=W1;exports.ed=gD;exports.ee=ane;exports.f=Iu;exports.fa=GL;exports.fb=W$;exports.fc=dr;exports.fd=Ok;exports.fe=dne;exports.g=yK;exports.ga=e$;exports.gb=hi;exports.gc=wn;exports.gd=ns;exports.ge=jre;exports.h=JS;exports.ha=t$;exports.hb=wd;exports.hc=rt;exports.hd=im;exports.he=mp;exports.i=pd;exports.ia=jP;exports.ib=El;exports.ic=Mk;exports.id=B9;exports.ie=Cne;exports.j=oP;exports.ja=Ku;exports.jb=yi;exports.jc=A6;exports.jd=see;exports.je=Mne;exports.k=fL;exports.ka=pt;exports.kb=ON;exports.kc=Vh;exports.kd=Qr;exports.ke=vC;exports.l=Cu;exports.la=n$;exports.lb=xi;exports.lc=jk;exports.ld=Nj;exports.le=Dc;exports.m=pL;exports.ma=r$;exports.mb=Si;exports.mc=Kk;exports.md=Cy;exports.me=yp;exports.n=bK;exports.na=o$;exports.nb=vR;exports.nc=cm;exports.nd=My;exports.ne=Hz;exports.o=hL;exports.oa=a$;exports.ob=ua;exports.oc=sq;exports.od=By;exports.oe=Vne;exports.p=gd;exports.pa=i$;exports.pb=pf;exports.pc=VD;exports.pd=Xv;exports.pe=Wz;exports.q=cP;exports.qa=$u;exports.qb=ER;exports.qc=fm;exports.qd=jj;exports.qe=IC;exports.r=xL;exports.ra=Uu;exports.rb=ar;exports.rc=KD;exports.rd=hs;exports.re=OC;exports.s=PK;exports.sa=Ve;exports.sb=fa;exports.sc=Ei;exports.sd=fc;exports.se=zz;exports.t=SL;exports.ta=Yu;exports.tb=GN;exports.tc=Qd;exports.td=to;exports.te=Vz;exports.u=RK;exports.ua=Gt;exports.ub=LR;exports.uc=as;exports.ud=rH;exports.ue=zb;exports.v=Sg;exports.va=Kn;exports.vb=KN;exports.vc=Zh;exports.vd=oH;exports.ve=$z;exports.w=Lu;exports.wa=qP;exports.wb=NR;exports.wc=tc;exports.wd=m5;exports.we=Vb;exports.x=uP;exports.xa=XL;exports.xb=$N;exports.xc=cr;exports.xd=bs;exports.xe=fM;exports.y=fP;exports.ya=tN;exports.yb=Gr;exports.yc=is;exports.yd=Xy;exports.ye=oV;exports.z=Nu;exports.za=nN;exports.zb=Gg;exports.zc=jq;exports.zd=SH;exports.ze=rM;