@docx-editor.dev/core 2.28.0 → 2.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +65 -13
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +54 -38
- package/dist/binding.js +1 -1
- package/dist/{index-Bsg7oIKP.d.ts → chrome-print-BM3Js-6X.d.ts} +281 -222
- package/dist/{chunk-Z6WBFXJU.js → chunk-2PV5L5NJ.js} +3 -3
- package/dist/chunk-4HENIAFG.js +1 -0
- package/dist/chunk-5OTS2EJ7.js +7 -0
- package/dist/chunk-5P4223J4.cjs +27 -0
- package/dist/{chunk-O2AL2HSJ.cjs → chunk-5RRAZMBU.cjs} +1 -1
- package/dist/chunk-5SPITS5F.js +18 -0
- package/dist/{chunk-VDNNLG6X.js → chunk-7ATNKARV.js} +1 -1
- package/dist/{chunk-SRPILEWV.cjs → chunk-BGCUTKWE.cjs} +5 -5
- package/dist/chunk-EBCXSH2W.js +3 -0
- package/dist/{chunk-K5U2PLDP.cjs → chunk-ERECKTIR.cjs} +1 -1
- package/dist/{chunk-QMLCVPCD.cjs → chunk-FLBEJC6X.cjs} +1 -1
- package/dist/{chunk-6AWEKBLB.cjs → chunk-HYASLE2G.cjs} +1 -1
- package/dist/chunk-JC47NRJC.cjs +3 -0
- package/dist/{chunk-ZUHOMK52.cjs → chunk-KJRTNY2Q.cjs} +1 -1
- package/dist/chunk-NKPUH3QJ.js +1 -0
- package/dist/chunk-PF5NJWS3.js +2 -0
- package/dist/chunk-PWTRJSES.cjs +18 -0
- package/dist/chunk-QFKGI242.cjs +30 -0
- package/dist/{chunk-5CSUYANV.js → chunk-RJCQGJR7.js} +1 -1
- package/dist/chunk-RPPV4S6T.cjs +4 -0
- package/dist/{chunk-TSLBZ26X.js → chunk-T32MGBJS.js} +1 -1
- package/dist/chunk-UM26GH5B.js +30 -0
- package/dist/chunk-V3N4SOAK.cjs +1 -0
- package/dist/chunk-VRCZBFLH.js +27 -0
- package/dist/{chunk-2GO5T2JU.cjs → chunk-WF7JZ755.cjs} +1 -1
- package/dist/chunk-WK5X2MMA.cjs +7 -0
- package/dist/{chunk-E7BQA6UP.js → chunk-WPDD2Y32.js} +1 -1
- package/dist/chunk-YBMWBXST.cjs +2 -0
- package/dist/{chunk-ETTO6GK3.js → chunk-YZGUBCHP.js} +1 -1
- package/dist/chunk-ZOS2PM4A.js +4 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +5 -5
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +4 -4
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +9 -10
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.ts +33 -9
- package/dist/contracts/modules.js +1 -1
- package/dist/contracts/types.d.ts +2 -2
- package/dist/{custom-node-writes-cvL5rhcD.d.ts → custom-node-writes-0v0Kgw1T.d.ts} +2 -2
- package/dist/diagnostic-context-CcAO4q1s.d.ts +30 -0
- package/dist/diagnostic-hints-2Bke6H_w.d.ts +120 -0
- package/dist/{document-protection-BAGVGqaP.d.ts → document-protection-8eyMWIJ0.d.ts} +2 -2
- package/dist/{editor-Ci7IZGmG.d.ts → editor-DaEJd2so.d.ts} +460 -9
- package/dist/{editor-scope-OHPwVQ5l.d.ts → editor-scope-7o9xweiJ.d.ts} +1 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.ts +55 -33
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +17 -15
- package/dist/export.js +2 -2
- package/dist/{font-resolver-BVQB14qT.d.ts → font-resolver-CL9BVKZo.d.ts} +3 -3
- package/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
- package/dist/{headless-document-view-qH331moE.d.ts → headless-document-view-DZQN8Bnx.d.ts} +2 -2
- package/dist/{image-resources-BN-hUgCn.d.ts → image-resources-Bipz8toD.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +67 -21
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-BEyuiQOk.d.ts → layout-shaping-cEnVrhWg.d.ts} +3 -2
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +42 -42
- package/dist/layout.js +1 -1
- package/dist/{note-properties-4Y9o6Gyk.d.ts → note-properties-9FH8zAeG.d.ts} +3 -3
- package/dist/{omml-equation-CuzBL5DD.d.ts → omml-equation-DP2WpUbK.d.ts} +13 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +8 -9
- package/dist/output.js +1 -1
- package/dist/{protocol-Bqk4Izjc.d.ts → protocol-CZ1uUlPO.d.ts} +2 -2
- package/dist/{review-paragraph-order-DT-n6ouC.d.ts → review-paragraph-order-CqVelc5A.d.ts} +1 -1
- package/dist/{semantic-cell-selection-D9D1KSXq.d.ts → semantic-cell-selection-Dr9yxFZt.d.ts} +4 -211
- package/dist/{semantic-interaction-CIC-PooQ.d.ts → semantic-interaction-Dc3pf3hr.d.ts} +1 -1
- package/dist/{semantic-paint-BME37OMv.d.ts → semantic-paint-Bz3FBAoH.d.ts} +17 -5
- package/dist/{semantic-record-queries-CBlZqZNa.d.ts → semantic-record-queries-Bx0pl6kL.d.ts} +1 -1
- package/dist/{semantic-records-4B3WwFAi.d.ts → semantic-records-CjcF26ZL.d.ts} +892 -416
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +1463 -1574
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-BeeKxDw8.d.ts → tree-package-store-DKhdEVym.d.ts} +238 -84
- package/dist/{tree-session-contract-CVbmlMlq.d.ts → tree-session-contract-CwnTEVLF.d.ts} +8 -6
- package/dist/{types-barrel-D3xCgQX6.d.ts → types-barrel-CA0xB8kH.d.ts} +548 -527
- package/package.json +3 -3
- package/dist/chunk-2RC2EPND.js +0 -3
- package/dist/chunk-4GBTELJV.cjs +0 -28
- package/dist/chunk-4R3TEXMN.js +0 -18
- package/dist/chunk-6APGXLBB.cjs +0 -3
- package/dist/chunk-6EYYL7FL.js +0 -1
- package/dist/chunk-EO4C5QJW.cjs +0 -2
- package/dist/chunk-FIJZIQXA.cjs +0 -18
- package/dist/chunk-FRXAOVTB.js +0 -28
- package/dist/chunk-J6BVWIDB.js +0 -2
- package/dist/chunk-JGNVNT2A.cjs +0 -2
- package/dist/chunk-KKIJG3C6.js +0 -2
- package/dist/chunk-LWDSDCMO.js +0 -27
- package/dist/chunk-NBCVVZOM.cjs +0 -1
- package/dist/chunk-O5INAWZQ.js +0 -1
- package/dist/chunk-RCHS4ZEH.cjs +0 -27
- package/dist/chunk-VHAVHCQY.js +0 -7
- package/dist/chunk-VX43VBAX.cjs +0 -7
- package/dist/review-pane-D9jm8DcY.d.ts +0 -128
- package/dist/revision-projection-DZ4kKVev.d.ts +0 -242
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';var chunk5RRAZMBU_cjs=require('./chunk-5RRAZMBU.cjs'),chunkYBMWBXST_cjs=require('./chunk-YBMWBXST.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs'),YV=require('bidi-js');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var YV__default=/*#__PURE__*/_interopDefault(YV);var _z=Symbol("validated-resolved-font"),Hz=4,$k=64*1024*1024,Km=256,$m=128*1024*1024,bl=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(t,n,r={}){super(`Font resolution failed (${t})`),this.code=t,this.request=si(n),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash,this.stack;}},Xk=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")},si=e=>(Xk(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),Nb=e=>{let t={family:e.family,weight:e.weight,style:e.style};return si(t)},Uk=Symbol("prepared-font-resource"),Db=new WeakMap,jz=new Uint8Array(0),Zk=Object.getPrototypeOf(Uint8Array.prototype),Wz=Object.getOwnPropertyDescriptor(Zk,"length").get,zz=Object.getOwnPropertyDescriptor(Zk,"byteLength").get;function Ym(e){if(!ArrayBuffer.isView(e))throw new TypeError("Font bytes must be a genuine byte array");let t,n;try{t=Wz.call(e),n=zz.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 qk(e){let t=new Uint8Array(Ym(e));return Uint8Array.prototype.set.call(t,e),t}function e5(e,t){let n=si(e.request);if(e.availability==="forbidden"){let i=Object.freeze({...e,request:n,actualHash:null,[Uk]:true});return Db.set(i,null),i}let r=qk(e.bytes);t?.onOwnedByteCopy?.(),t?.onHash?.();let o=chunkPWTRJSES_cjs.f(r),a=Object.freeze({...e,request:n,bytes:r,actualHash:o,[Uk]:true});return Db.set(a,o),a}function Jk(e){return Db.get(e)}var Qk=e=>{if(!Number.isFinite(e.heightEm)||!Number.isFinite(e.baselineEm)||e.heightEm<=0||e.heightEm>Hz||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})},Um=e=>(Xk(e),JSON.stringify([e.family.trim().toLowerCase(),e.weight,e.style])),_b=class{[_z]=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=si(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:si(n.requested),resolved:si(n.resolved),...n.lineMetrics?{lineMetrics:Qk(n.lineMetrics)}:{}})),Object.freeze(this);}get bytes(){return oT(this).slice()}},eT=new WeakSet,tT=new WeakMap,nT=new WeakMap,rT=(e,t,n,r)=>{let o=new _b(e,r);return tT.set(o,t),nT.set(o,n),eT.add(o),o},oT=e=>{Xm(e);let t=tT.get(e);if(!t)throw new TypeError("Resolved font has no owned byte capability");return t},Gz=e=>{Xm(e);let t=nT.get(e);if(!t)throw new TypeError("Resolved font has no admitted table metadata");return t},Xm=e=>{if(typeof e!="object"||e===null||!eT.has(e))throw new TypeError("Shaping requires a validated resolved font")},aT=(e,t)=>e[t]<<8|e[t+1],Ws=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Yk=(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=aT(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,s=Ws(e,l+8),d=Ws(e,l+12);if(s>e.byteLength||d>e.byteLength-s)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},Vz=(e,t)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Ws(e,12+t*4):0,o=aT(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)},Kz=(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"}:Yk(e,0);let r=Ws(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=Ws(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=Ws(e,12+t*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:Yk(e,i)},$z=(e,t,n,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};let o=Ym(e.bytes);if(o>t)return {kind:"overLimit",actual:o};let a=Jk(e),i=a===void 0?qk(e.bytes):e.bytes;a===void 0&&r?.onOwnedByteCopy?.(),a===void 0&&r?.onHash?.();let l=a??chunkPWTRJSES_cjs.f(i);if(e.hash!==l)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:l};let s=Kz(i,e.faceIndex);if(!s.valid)return {kind:"malformed",diagnostic:s.diagnostic};r?.onTableScan?.();let d=Vz(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:rT({...e,byteLength:i.byteLength},i,d)};return r?.onAdmission?.(),c},t5=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>$k)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${$k}`);if(typeof r!="function")throw new TypeError("Font snapshot requires a validator");let l=a.length,s=i?.length??0;if(l>Km)throw new RangeError(`Font source count must not exceed ${Km}`);if(s>Km)throw new RangeError(`Font substitution count must not exceed ${Km}`);let d=0,c=[];for(let m=0;m<l;m+=1){let h=a[m];if(Jk(h)!==void 0){let F=h.availability==="forbidden"?0:Ym(h.bytes);if(F>$m-d)throw new RangeError(`Aggregate font bytes must not exceed ${$m}`);d+=F,c.push(h);continue}let y=Nb(h.request),b=h.id,x=h.hash,R=h.faceIndex,P=h.availability,S=P==="forbidden"?jz:h.bytes,w=P==="forbidden"?0:Ym(S);if(w>$m-d)throw new RangeError(`Aggregate font bytes must not exceed ${$m}`);d+=w,c.push(Object.freeze({request:y,id:b,bytes:S,hash:x,faceIndex:R,...P?{availability:P}:{}}));}let u=[];if(i)for(let m=0;m<s;m+=1){let h=i[m],y=Nb(h.from),b=Nb(h.to),x=h.lineMetrics;u.push(Object.freeze({from:y,to:b,...x?{lineMetrics:Object.freeze({heightEm:x.heightEm,baselineEm:x.baselineEm})}:{}}));}let f=new Map;for(let m of c){let h=Um(m.request);f.has(h)||f.set(h,$z(m,n,r,o));}let p=new Map;for(let m of u){let h=Um(m.from);p.has(h)||p.set(h,Object.freeze({to:si(m.to),...m.lineMetrics?{lineMetrics:Qk(m.lineMetrics)}:{}}));}return Object.freeze({epoch:t,resolve:m=>{let h=si(m),y=Um(h),b=p.get(y),x=b?.to??h,R=f.get(Um(x));return R?R.kind==="forbidden"?new bl("forbidden",h):R.kind==="overLimit"?new bl("overLimit",h,{limit:n,actual:R.actual}):R.kind==="malformed"?new bl("malformed",h,{diagnostic:R.diagnostic}):R.kind==="hashMismatch"?new bl("hashMismatch",h,{expectedHash:R.expectedHash,actualHash:R.actualHash}):b?rT({request:R.font.request,id:R.font.id,hash:R.font.hash,faceIndex:R.font.faceIndex,byteLength:R.font.byteLength},oT(R.font),Gz(R.font),{requested:h,resolved:b.to,...b.lineMetrics?{lineMetrics:b.lineMetrics}:{}}):R.font:new bl("missing",h)}})};var Uz=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},iu=16,Zm=(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`)},Yz=(e,t)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${t} must be a four-byte ASCII tag`)},iT=(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(Yz(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)},Hb=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),Xz=e=>e?Object.freeze({requested:Hb(e.requested),resolved:Hb(e.resolved),...e.lineMetrics?{lineMetrics:Object.freeze({...e.lineMetrics})}:{}}):void 0,lT=new WeakSet,jb=new WeakSet,sT=new WeakMap,zb=e=>{if(Xm(e),!lT.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");lT.add(e);}},Wb=e=>(zb(e),e),Jm=e=>(zb(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:Hb(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:Xz(e.substitution)??null})),cT=e=>{if(jb.has(e))return e;if(Zm(e.shapingLibrary.name,"shaping library name"),Zm(e.shapingLibrary.version,"shaping library version"),Zm(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(Zm(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=Wb(e.font),n=e.fallbackOrder.map(Wb),r=new Set;for(let a of n){let i=JSON.stringify(Jm(a));if(r.has(i))throw new TypeError("fallback order contains a duplicate font");r.add(i);}let o=Object.freeze({font:t,variationAxes:iT(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:iT(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...n]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode});return jb.add(o),o},Zz=e=>{let t=cT(e);return Object.freeze({font:Jm(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(Jm)),fixedPointScale:t.fixedPointScale,roundingMode:t.roundingMode})},o5=e=>{let t=sT.get(e);if(t!==void 0)return t;let n=JSON.stringify(Zz(e));return jb.has(e)&&sT.set(e,n),n},to=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},no=e=>{try{return Uz(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},dT=new WeakMap,qm=e=>{let t=dT.get(e);if(t)return t;zb(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 dT.set(e,n),n},qz=(e,t)=>{let n=cT(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(to(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(d=>{to(d.id,"glyph id"),to(d.cluster,"glyph cluster");let c=r.get(d.outline);if(!c){if(!Number.isSafeInteger(d.outline.unitsPerEm)||d.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");c=Object.isFrozen(d.outline)?d.outline:Object.freeze({path:d.outline.path,unitsPerEm:d.outline.unitsPerEm}),r.set(d.outline,c);}return Object.freeze({id:d.id,cluster:d.cluster,originX:no(d.originX),originY:no(d.originY),advanceX:no(d.advanceX),advanceY:no(d.advanceY),offsetX:no(d.offsetX),offsetY:no(d.offsetY),outline:c,...d.drawScale!==void 0?{drawScale:d.drawScale}:{}})}),a=e.fontSpans.map(d=>{if(to(d.glyphStart,"font span start"),to(d.glyphEnd,"font span end"),d.glyphEnd<=d.glyphStart||d.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");d.fallbackIndex!==null&&to(d.fallbackIndex,"fallback index");let c=Wb(d.font);if(d.fallbackIndex===null){if(qm(c)!==qm(n.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let u=n.fallbackOrder[d.fallbackIndex];if(!u)throw new RangeError("Shaped fallback index is outside fallback order");if(qm(c)!==qm(u))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...d,font:c})});for(let d=0;d<a.length;d+=1){let c=d===0?0:a[d-1].glyphEnd;if(a[d].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(d=>{if(to(d.textStart,"cluster text start"),to(d.textEnd,"cluster text end"),to(d.glyphStart,"cluster glyph start"),to(d.glyphEnd,"cluster glyph end"),to(d.fontSpan,"cluster font span"),d.textEnd<=d.textStart||d.textEnd>e.text.length||d.glyphEnd<=d.glyphStart||d.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let c=a[d.fontSpan];if(!c||d.glyphStart<c.glyphStart||d.glyphEnd>c.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({textStart:d.textStart,textEnd:d.textEnd,glyphStart:d.glyphStart,glyphEnd:d.glyphEnd,advance:no(d.advance),caretEdges:Object.freeze(d.caretEdges.map(no)),fontSpan:d.fontSpan})}),l=Object.freeze({ascent:no(e.metrics.ascent),descent:no(e.metrics.descent),lineGap:no(e.metrics.lineGap)}),s=e.exactAdvancesX;if(s!==void 0){if(s.length!==o.length)throw new RangeError("Exact advances must be parallel to the shaped glyphs");if(s.some(d=>!Number.isFinite(d)))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,...s===void 0?{}:{exactAdvancesX:Object.freeze([...s])}})},a5=(e,t)=>{let n=qz(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:Jm(r.font)}))),metrics:n.metrics})};var Jz=/^[0-9A-Fa-f]{6}$/;function Gb(e){if(!(e===void 0||e==="auto"||e==="nil")&&Jz.test(e))return e.toUpperCase()}function Qm(e){if(e&&e.val!=="nil")return Gb(e.fill)}function uT(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return Qm(t)}function fT(e){let t;for(let n of e)n.localName==="shd"&&(t=Qm(n.attributes));return t}function ep(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 tp=.25,np=.25;function zs(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 Qz=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function eG(e){return Qz.has(e)}function xl(e,t){return eG(e)?zs(t).extentPt:t}var tG=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 mT(e){return tG.has(e)}function nG(e){return e===void 0||e!=="0"&&e!=="false"&&e!=="off"}function rG(e){let t=true;for(let n of e)n.localName==="snapToGrid"&&(t=nG(n.attributes?.val));return t}function Vb(e,t,n,r,o){return n===void 0||!(n>0)||e.rule==="exact"||r&&!o||!rG(t)?e:{...e,gridPitch:n}}function pT(e,t,n){let r=e.gridPitch,o=Math.max(1,Math.ceil((t-.001)/r)),a=o*r,i=(a-t)/2;if(e.rule==="atLeast"&&e.value>a){let c=e.value,u=n+c-a+i;return {height:c,baseline:u,trailing:i}}let l=e.rule==="auto"?e.value/240:1,s=Math.max(o,l)*r,d=(s-t)/2;return {height:s,baseline:n+d,trailing:d}}function gT(e,t){if(t===void 0||e.lineSpacing.gridPitch!==void 0)return e;let n=Vb(e.lineSpacing,e.props,t,false,false);return n===e.lineSpacing?e:{...e,lineSpacing:n}}function Vs(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Gs(r);}return t}var Kb=31680/20,op=12,oG=3168,hT=14,aG=5,iG=10,lu=Object.freeze({rule:"auto",value:240}),lG=132,sG=1584,dG=["top","left","bottom","right","between","bar"],cG=Object.freeze({}),uG=/^[0-9A-Fa-f]{6}$/,fG=new Set(["nil","none"]);function rp(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function su(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function yT(e){let t=chunkPWTRJSES_cjs.nd(e);return t===null?0:su(chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(t)),Kb)}function Gs(e){return e!=="0"&&e!=="false"&&e!=="off"}function mG(e){return e===void 0||e==="auto"?null:uG.test(e)?e.toUpperCase():null}function No(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function m5(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function ap(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=Gs(o)),a!==void 0&&(n=Gs(a));}return {before:t,after:n}}function ci(e,t){let n=0,r=0,o=null,a=null,i=false,l=false;for(let s of e){if(s.localName!=="spacing")continue;let d=s.attributes?.before,c=s.attributes?.after;d!==void 0&&(n=yT(d)),c!==void 0&&(r=yT(c)),s.attributes?.beforeLines!==void 0&&(o=rp(s.attributes.beforeLines,true)),s.attributes?.afterLines!==void 0&&(a=rp(s.attributes.afterLines,true));let u=s.attributes?.beforeAutospacing,f=s.attributes?.afterAutospacing;u!==void 0&&(i=Gs(u)),f!==void 0&&(l=Gs(f));}if(o!==null&&(n=su(o*(t?.lineUnitPt??12)/100,Kb)),a!==null&&(r=su(a*(t?.lineUnitPt??12)/100,Kb)),i||l){let s=t?.fixedAutoSpacing===true,d=s?aG:hT,c=s?iG:hT;i&&(n=t?.inList?0:d),l&&(r=t?.inList?0:c);}return {before:n,after:r}}function bT(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 s=chunkPWTRJSES_cjs.nd(l);s!==null&&(n=s);}}if(n===void 0)return lu;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,lG)*240}:lu}let o=n/20;return o>0?{rule:r,value:Math.min(o,sG)}:lu}function ya(e,t,n){if(e.gridPitch!==void 0&&e.gridPitch>0&&e.rule!=="exact")return pT({...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 xT(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Gs(r);}return t}function di(e){if(e)return $b(Object.fromEntries(e.attributes.map(t=>[t.localName,t.value])))}function $b(e){let t=e?.val;if(!t||fG.has(t))return;let n=rp(e?.sz),r=n===null?.5:su(n/8,op)||.5,o=rp(e?.space),a=o===null?0:su(o,oG),i=e?.shadow,l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:mG(e?.color),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function ST(e){let t=di(No(e,"top")),n=di(No(e,"left")??No(e,"start")),r=di(No(e,"bottom")),o=di(No(e,"right")??No(e,"end")),a=di(No(e,"between")),i=di(No(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function ip(e){if(!e||e.kind==="textValue")return {};let t=No(e,"pBdr");return t?ST(t):{}}function RT(e){let t=cG;for(let n of e){if(!n||n.kind==="textValue")continue;let r=No(n,"pBdr");r&&(t=ST(r));}return t}function wr(e){return xl(e.val,e.widthPt)}function ba(e){return e?e.spacePt+wr(e):0}function p5(e){return ba(e)}function PT(e){let t=[];for(let n of dG){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 ui(e,t){return Math.max(e,t)-t}function Ub(e,t,n,r){return n&&!r?0:ui(e,t)}var du=Symbol("authored-revision-markup-style");function wT(e,t){let n=e[du]??{bold:e.bold,italic:e.italic};return {...e,[t]:true,[du]:n}}function h5(e){let t=e[du];return t?{...e,bold:t.bold,italic:t.italic}:e}function kT(e,t){let n=e[du]??e,r=t[du]??t;return n.bold===r.bold&&n.italic===r.italic}var Ks=Symbol("authored-layout-character-spacing");function lp(e,t){if(!Number.isFinite(t))throw new RangeError("Layout spacing must be finite");let n=e[Ks]??e.characterSpacingPt;return {...e,characterSpacingPt:t,[Ks]:n}}function b5(e){let t=e[Ks];if(t===void 0)return e;let n={...e,characterSpacingPt:t};return delete n[Ks],n}function TT(e,t){let n=e[Ks]??e.characterSpacingPt,r=t[Ks]??t.characterSpacingPt;return n===r}var $s="runFontDefaults",pG=Object.freeze({localName:$s,attributes:Object.freeze({hAnsiTheme:"minorHAnsi",eastAsiaTheme:"minorEastAsia"})}),vT=Object.freeze([...chunkYBMWBXST_cjs.I,pG]),gG=Object.freeze([...vT,Object.freeze({localName:"ligatures",attributes:Object.freeze({val:"standardContextual"})})]),hG=Object.freeze([Object.freeze({localName:$s,attributes:Object.freeze({ascii:chunkYBMWBXST_cjs.wa,hAnsi:chunkYBMWBXST_cjs.wa,eastAsia:chunkYBMWBXST_cjs.xa})})]);function Yb(e,t=false){return chunkYBMWBXST_cjs.L(e).run?t?gG:vT:hG}var Sl="http://schemas.microsoft.com/office/word/2010/wordml",FT=/^[0-9a-f]{6}$/i;function OT(e){if(e.namespaceUri!==Sl||e.localName!=="textOutline")return null;let t={localName:"textOutline"},n={};for(let l of e.attributes){if(l.namespaceUri!==Sl||!["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!==Sl)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 s=l.children.filter(u=>u.kind!=="textValue");if(s.length!==1)return t;let d=s[0];if(d.namespaceUri!==Sl||d.localName!=="srgbClr"||d.children.length!==0||d.attributes.length!==1)return t;let c=d.attributes[0];if(c.namespaceUri!==Sl||c.localName!=="val"||!FT.test(c.value))return t;r=c.value.toUpperCase();}else if(l.localName==="prstDash"&&!a){a=true;let s=l.attributes[0];if(l.children.length||l.attributes.length!==1||s?.namespaceUri!==Sl||s.localName!=="val"||s.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 s=l.attributes[0];if(s&&(s.namespaceUri!==Sl||s.localName!=="lim"||!/^\d{1,8}$/.test(s.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 CT(e){let t=e.attributes?.w,n=e.attributes?.outlineColor;if(!t||!/^\d{1,8}$/.test(t)||!n||!FT.test(n))return;let r=Number(t);return r>0&&r<=20116800?Object.freeze({widthPt:r/12700,color:n.toUpperCase()}):void 0}var yG=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function nr(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}var IT=new WeakMap;function fi(e){let t=[],n;for(let r of e){let o=r.role==="carried"?IT.get(r.properties):void 0,a;for(let i of r.properties){if(!yG.has(i.localName)){r.emit&&t.push(i);continue}o||(a||(a=new Map),a.set(i.localName,nr(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 s=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:s?.forced===true?true:!(s?.value??false),forced:s?.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 IT.set(t,n),t}var MT="http://schemas.microsoft.com/office/word/2010/wordml",bG=new Set(["none","standard","contextual","historical","discretional","standardContextual","standardHistorical","contextualHistorical","standardDiscretional","contextualDiscretional","historicalDiscretional","standardContextualHistorical","standardContextualDiscretional","standardHistoricalDiscretional","contextualHistoricalDiscretional","all"]);function BT(e){if(!(e.namespaceUri!==MT||e.localName!=="ligatures"))return e.attributes.find(t=>t.namespaceUri===MT&&t.localName==="val")?.value}function LT(e){if(!e||!bG.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 v5(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 F5(e){return `${e.ligatures?.standard?1:0}${e.ligatures?.contextual?1:0}${e.ligatures?.historical?1:0}${e.ligatures?.discretionary?1:0}`}var xG=Object.freeze([Object.freeze({localName:"ligatures",attributes:Object.freeze({val:"none"})})]);function sp(e,t){return !t||!e.some(n=>n.localName==="ligatures"&&n.attributes?.val!=="none")?e:fi([{properties:e,role:"carried",emit:true},{properties:xG,role:"direct",emit:true}])}var rr=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}),SG=/^[0-9A-Fa-f]{6}$/;function cu(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function ET(e){return e===void 0||e==="auto"?null:SG.test(e)?e.toUpperCase():null}var NT={major:null,minor:null,majorEastAsia:null,minorEastAsia:null},RG=Object.freeze({fontFamily:"Times New Roman",fontFamilyAuthored:false,fontSizePt:10,bold:false,italic:false,rtl:false,forced:false});function je(e,t){let n={...rr},r=false,o={...RG};for(let a of e)switch(a.localName){case $s:{let i=a.attributes,l=(t?chunkYBMWBXST_cjs.Ba(i?.eastAsiaTheme,t):null)??i?.eastAsia;l&&l.length<=128&&(n.fontFamilyEastAsia=l),i?.ascii&&i.ascii.length<=128&&(n.fontFamily=i.ascii);break}case "rFonts":{let i=a.attributes;r||=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(p=>!!i?.[p]);let l=p=>t?chunkYBMWBXST_cjs.Ba(p,t):null,s=l(i?.asciiTheme)??i?.ascii??l(i?.hAnsiTheme)??i?.hAnsi;s&&s.length<=128?n.fontFamily=s:(i?.asciiTheme!==void 0||i?.hAnsiTheme!==void 0)&&(n.fontFamily=null);let c=(t?chunkYBMWBXST_cjs.Ba(i?.eastAsiaTheme,t):null)??i?.eastAsia;c&&c.length<=128&&(n.fontFamilyEastAsia=c);let f=(t?chunkYBMWBXST_cjs.Ba(i?.cstheme,t):null)||i?.cs;f&&f.length<=128&&(o.fontFamily=f,o.fontFamilyAuthored=true);break}case "sz":{let i=cu(a.attributes?.val);i!==null&&i>0&&(n.fontSizePt=i/2);break}case "szCs":{let i=cu(a.attributes?.val);i!==null&&i>0&&(o.fontSizePt=i/2);break}case "bCs":o.bold=nr(a);break;case "iCs":o.italic=nr(a);break;case "rtl":o.rtl=nr(a);break;case "cs":o.forced=nr(a);break;case "color":{n.color=ET(a.attributes?.val);break}case "b":n.bold=nr(a);break;case "textOutline":n.textOutline=CT(a);break;case "bdr":n.border=$b(a.attributes);break;case "i":n.italic=nr(a);break;case "u":{let i=a.attributes?.val??"single";n.underline=i==="none"||!nr(a)?null:{variant:i,color:ET(a.attributes?.color)};break}case "strike":n.strike=nr(a);break;case "dstrike":n.doubleStrike=nr(a);break;case "highlight":{let i=a.attributes?.val;n.highlight=i&&i!=="none"?i:null;break}case "shd":{n.shading=Qm(a.attributes)??null;break}case "vertAlign":{let i=a.attributes?.val;i==="superscript"||i==="subscript"?n.verticalAlign=i:i==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let i=cu(a.attributes?.val,true);i!==null&&(n.baselineShiftPt=i/2);break}case "caps":n.caps=nr(a);break;case "smallCaps":n.smallCaps=nr(a);break;case "spacing":{let i=chunkPWTRJSES_cjs.nd(a.attributes?.val);i!==null&&Math.abs(i)<=9999999&&(n.characterSpacingPt=i/20);break}case "w":{let i=cu(a.attributes?.val);i!==null&&i>0&&(n.horizontalScalePercent=i);break}case "kern":{let i=cu(a.attributes?.val);i!==null&&i>=0&&(n.kerningMinPt=i/2,n.kerningEnabled=i>0);break}case "ligatures":{let i=LT(a.attributes?.val);i&&(n.ligatures=i);break}case "vanish":n.hidden=nr(a);break;}return r||(n.fontFamily??=t?.minor??null),n.fontFamilyEastAsia??=t?.minorEastAsia??null,n.complexLane={fontFamily:o.fontFamilyAuthored?o.fontFamily:null,fontSizePt:o.fontSizePt,bold:o.bold,italic:o.italic},(o.rtl||o.forced)&&(n.latinLane={fontFamily:n.fontFamily,fontFamilyEastAsia:n.fontFamilyEastAsia,fontSizePt:n.fontSizePt,bold:n.bold,italic:n.italic},n.fontFamily=o.fontFamily,n.fontFamilyEastAsia=o.fontFamily,n.fontSizePt=o.fontSizePt,n.bold=o.bold,n.italic=o.italic),n}var AT=new WeakMap;function mi(e,t){if(e.fontFamily===t)return e;let n=AT.get(e);n||(n=new Map,AT.set(e,n));let r=n.get(t);return r||(r=Object.freeze({...e,fontFamily:t}),n.set(t,r)),r}function $t(e,t){let n=e.includes("\xAD")?e.replaceAll("\xAD","-"):e;return t.caps?n.toUpperCase():n}function tt(e,t,n){return n.measure($t(e,t),t)}function dp(e,t){return kT(e,t)&&TT(e,t)&&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 pi(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}function Xb(e){return e.verticalAlign==="baseline"?1:.65}var DT=6,_T=14,W5=`fixed:char-width=${DT}:line-height=${_T}`;function PG(e=DT,t=_T){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*Xb(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=Xb(r),a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var G5="und";function V5(){return typeof Intl.Segmenter=="function"}function wG(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function kG(){let e=new(wG())("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 HT=kG(),Jb=HT,jT=0;function fp(){return jT}var Us=null,Rl=null,cp=null,uu=null;function xt(e){if(Us===e&&Rl)return Rl;if(cp===e&&uu){let n=uu;return cp=Us,uu=Rl,Us=e,Rl=n,n}let t=Jb.segment(e);return cp=Us,uu=Rl,Us=e,Rl=t,t}function K5(e){Jb=e,WT();}function $5(){Jb=HT,WT();}function WT(){jT+=1,Us=null,Rl=null,cp=null,uu=null,Zb=null,up=null,qb=0;}function U5(e){return xt(e).length}var Zb=null,up=null,qb=0;function TG(e){if(Zb===e&&up)return {offsets:up,count:qb};let t=xt(e),n=new Int32Array(e.length+1);for(let r of t)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)n[o]=r.index;return n[e.length]=t.length,Zb=e,up=n,qb=t.length,{offsets:n,count:t.length}}function Y5(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=TG(e);return r[n]}function X5(e,t){let n=xt(e);if(n.length===0)return 0;let r=Math.max(0,Math.min(t,n.length));return r>=n.length?e.length:n[r].utf16From}function mp(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 zT(e,t,n){if(t?.toLowerCase()!=="times new roman")return false;let r,o,a=(i,l)=>((n?chunkYBMWBXST_cjs.Ba(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 Qb(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===8239||e>=8240&&e<=8287||e>=8304&&e<=8399||e>=8448&&e<=10175||e>=64256&&e<=64284}var vG=new Set([224,225,232,233,234,236,237,242,243,249,250,252]);function ex(e,t){return t?Qb(e)?true:t===true?false:vG.has(e)||e>=7680&&e<=7935?t.chineseLanguage:e>=256&&e<=687?t.chineseLanguage||t.chineseFace:false:false}function GT(e,t,n){let r;for(let o of e)o.localName==="lang"&&o.attributes?.eastAsia!==void 0&&(r=o.attributes.eastAsia);return {chineseLanguage:!r||/^zh(?:-|$)/i.test(r),chineseFace:chunkYBMWBXST_cjs.ya(t,n?.chineseFontTableFaces)}}var Pe=(e,t,n)=>e>=t&&e<=n,FG=new Set([183,8211,8212,8216,8217,8218,8220,8221,8222,8230]),OG=e=>FG.has(e),pp=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},$T=e=>{if(OG(e))return {slot:"hAnsi",script:"Zyyy"};if(Pe(e,65313,65338)||Pe(e,65345,65370))return {slot:"eastAsia",script:"Latn"};if(Pe(e,65281,65381)||Pe(e,65504,65510))return {slot:"eastAsia",script:"Zyyy"};if(Pe(e,1424,1535)||Pe(e,64285,64335))return {slot:"cs",script:"Hebr"};if(Pe(e,1536,1791)||Pe(e,1872,1919)||Pe(e,2160,2207)||Pe(e,2208,2303)||Pe(e,64336,65023)||Pe(e,65136,65279)||Pe(e,126464,126719))return {slot:"cs",script:"Arab"};if(Pe(e,4352,4607)||Pe(e,11904,12351)||Pe(e,12352,12543)||Pe(e,12544,12687)||Pe(e,12784,12799)||Pe(e,13312,19903)||Pe(e,19968,40959)||Pe(e,44032,55215)||Pe(e,63744,64255)||Pe(e,65382,65437)||Pe(e,65440,65500)||Pe(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(Pe(e,2304,2431)||Pe(e,43232,43263))return {slot:"cs",script:"Deva"};if(Pe(e,2432,2559))return {slot:"cs",script:"Beng"};if(Pe(e,880,1023)||Pe(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(Pe(e,1024,1327)||Pe(e,7296,7311)||Pe(e,11744,11775)||Pe(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(Pe(e,3584,3711))return {slot:"cs",script:"Thai"};if(Pe(e,6016,6143)||Pe(e,6624,6655))return {slot:"cs",script:"Khmr"};if(Pe(e,768,879)||Pe(e,6832,6911)||Pe(e,7616,7679)||Pe(e,8400,8447)||Pe(e,8192,8303)||Pe(e,65056,65071)||e<=47||Pe(e,58,64)||Pe(e,91,96)||Pe(e,123,191)||e===5760||Pe(e,8192,11263)||Pe(e,65024,65039)||Pe(e,65280,65381)||Pe(e,65438,65439)||Pe(e,65501,65535)||Pe(e,126976,129791)||Pe(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(Pe(e,192,687)||Pe(e,7424,7551)||Pe(e,7552,7615)||Pe(e,7680,7935)||Pe(e,11360,11391)||Pe(e,42784,43007)||Pe(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new pp(e)};function CG(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:$T(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 gp(e,t,n){let r=CG(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,s=(l&1)===1?"rtl":"ltr",d=i.classified??{slot:a,script:"Zyyy"},c=o.at(-1);c&&c.to===i.from&&c.bidiLevel===l&&c.slot===d.slot&&c.script===d.script?o[o.length-1]={...c,to:i.to}:o.push({from:i.from,to:i.to,direction:s,bidiLevel:l,script:d.script,slot:d.slot});}return o}function Ce(e,t){if(t!=="eastAsia")return e;let n=e.fontFamilyEastAsia;return n===null?e:mi(e,n)}var VT=e=>{let t;try{t=$T(e);}catch(n){if(n instanceof pp)return "base";throw n}return t===null?"common":t.slot==="eastAsia"?"eastAsia":"base"},KT=e=>{for(let t=0;t<e.length;t+=1)if(e.charCodeAt(t)>=128)return false;return true};function UT(e,t=[]){let n=[],r=(p,g,m)=>{let h=n.at(-1);h&&h.segment===p&&h.to===g?n[n.length-1]={segment:p,from:h.from,to:m}:n.push({segment:p,from:g,to:m});},o=null,i=e.some((p,g)=>{if(!t[g]||KT(p))return false;for(let m of p)if(ex(m.codePointAt(0),t[g]))return true;return false})?xt(e.join("")):null,l=0,s=0,d=false,c=[],u=p=>{for(let g of c)p==="eastAsia"&&!g.ascii&&r(g.segment,g.from,g.to);c.length=0;};for(let p=0;p<e.length;p+=1){let g=e[p],m=s;if(s+=g.length,!i&&KT(g)){/[0-9A-Za-z]/.test(g)&&(u("base"),o="base");continue}for(let h=0;h<g.length;){let y=g.codePointAt(h),b=h+(y>65535?2:1),x=false;if(i){let P=m+h;for(;i[l].utf16To<=P;)l+=1;let S=i[l];y=S.text.codePointAt(0),b=Math.min(g.length,S.utf16To-m),P===S.utf16From&&(d=ex(y,t[p])),x=d;}if(x){let P=VT(y);P!=="common"&&(u(P),o=P),r(p,h,b),h=b;continue}let R=VT(y);R==="common"?o===null?c.push({segment:p,from:h,to:b,ascii:y<=127}):o==="eastAsia"&&y>127&&r(p,h,b):(u(R),o=R,R==="eastAsia"&&r(p,h,b)),h=b;}}if(n.length<2)return n;n.sort((p,g)=>p.segment-g.segment||p.from-g.from);let f=[n[0]];for(let p=1;p<n.length;p+=1){let g=n[p],m=f[f.length-1];m.segment===g.segment&&g.from<=m.to?g.to>m.to&&(f[f.length-1]={...m,to:g.to}):f.push(g);}return f}var fu=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});function hp(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 Ut(e,t=false){return un(e.fragments,t)}var YT=new WeakMap;function un(e,t=false){let n=YT.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=l=>{for(let s of l){if(s.kind==="paragraph"){a.push(s);continue}for(let d of s.rows)if(!(d.isHeaderRepeat&&!t))for(let c of d.cells)i(c.blocks);}};return i(e),n||(n={},YT.set(e,n)),n[r]=a,a}function ZT(e){let t=[];for(let n of e.pages)for(let r of Ut(n))t.push(...r.lines);return t}function IG(e){return e.anchoredDrawings??[]}var MG=Object.freeze({x:0,y:0,width:0,height:0});function Ys(e){let t=e??MG;return {box:t,origin:Object.freeze({x:t.x,y:t.y})}}var BG={fragments:true,anchoredDrawings:true,header:true,footer:true,footnotes:true,endnotes:true},LG=Object.freeze(Object.keys(BG));var EG={separator:true,notes:true,continuationNotice:true},AG=Object.freeze(Object.keys(EG));function XT(e,t,n,r){let o=t.kind??(n==="footnote"?"footnotes":"endnotes");for(let a of AG)switch(a){case "separator":case "continuationNotice":t[a]&&r({page:e,story:"note-separator",host:t[a],...Ys(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,...Ys(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;case "endnote":r({page:e,story:"endnote",host:i,...Ys(i.box),noteScopeId:i.scopeId,noteAreaKind:o});break;}break;}}function NG(e,t){for(let n of LG)switch(n){case "fragments":t({page:e,story:"body",host:e,...Ys(e.contentBox),noteScopeId:null,noteAreaKind:null});break;case "anchoredDrawings":break;case "header":e.header&&t({page:e,story:"header",host:e.header,...Ys(e.header.box),noteScopeId:null,noteAreaKind:null});break;case "footer":e.footer&&t({page:e,story:"footer",host:e.footer,...Ys(e.footer.box),noteScopeId:null,noteAreaKind:null});break;case "footnotes":e.footnotes&&XT(e,e.footnotes,"footnote",t);break;case "endnotes":e.endnotes&&XT(e,e.endnotes,"endnote",t);break;}}function DG(e,t){for(let n of e.pages)NG(n,t);}var qT=16,yp=Object.freeze({x:0,y:0});function bp(e,t,n,r){let o=r??{x:e.x+t.x,y:e.y+t.y};return Object.freeze({x:o.x+n.x,y:o.y+n.y})}function Xs(e){let t=[];e.textboxStory&&t.push({story:e.textboxStory,offset:e.textboxStory.contentOffset??yp});for(let n of e.groupTextboxStories??[]){let r=n.story.contentOffset??yp;t.push({story:n.story,offset:{x:n.box.x+r.x,y:n.box.y+r.y}});}return t}function Zs(e,t,n=yp,r){let o=(i,l)=>{if(i.kind==="table"){for(let s of i.rows)for(let d of s.cells)for(let c of d.blocks)o(c,l);return}for(let s of i.lines)for(let d of s.drawings??[]){t(d,{...l,paragraph:i,line:s});let c=Xs(d);if(!(c.length===0||d.accessibility.hidden))for(let u of c)a(u.story,l.textboxDepth+1,Object.freeze([...l.textboxPath,d]),bp(l.storyOrigin,d,u.offset));}};function a(i,l,s,d){if(l>qT)return;let c={storyOrigin:d,textboxDepth:l,textboxOwner:s[s.length-1]??null,textboxPath:s};for(let u of i.anchoredDrawings??[]){t(u,{...c,paragraph:null,line:null});for(let f of Xs(u))a(f.story,l+1,Object.freeze([...s,u]),bp(d,u,f.offset,l===0?r?.(u):void 0));}for(let u of i.fragments)o(u,c);}a(e,0,Object.freeze([]),n);}function l7(e,t){DG(e,n=>{let{page:r,story:o,host:a,noteScopeId:i,noteAreaKind:l}=n,s=o==="header"||o==="footer"?d=>hp(d,n.origin,{x:r.box.x,y:r.box.y}):void 0;Zs(a,(d,c)=>{let u=d.kind==="anchoredDrawing"&&c.textboxDepth===0&&s?s(d):Object.freeze({x:c.storyOrigin.x+d.x,y:c.storyOrigin.y+d.y}),f=p=>Object.freeze({x:u.x+p.x-d.x,y:u.y+p.y-d.y,width:p.width,height:p.height});t({page:r,story:c.textboxDepth===0?o:"textbox",rootStory:o,noteScopeId:i,noteAreaKind:l,root:n,drawingOrigin:u,absolutePaintBounds:f(d.paintBounds),absoluteHitBounds:f(d.hitBounds),paintLayer:d.kind==="inlineDrawing"?"inline":d.behindDocument?"behind-text":"in-front-of-text",drawing:d,...c});},n.origin,s);});}function tx(e,t,n=yp,r){let o=(a,i,l,s)=>{if(!(i>qT)){for(let d of un(a.fragments,true)){t(d,{storyOrigin:s,textboxDepth:i,textboxOwner:l[l.length-1]??null,textboxPath:l});for(let c of d.lines)for(let u of c.drawings??[]){let f=Xs(u);if(!(f.length===0||u.accessibility.hidden))for(let p of f)o(p.story,i+1,Object.freeze([...l,u]),bp(s,u,p.offset));}}for(let d of a.anchoredDrawings??[])for(let c of Xs(d))o(c.story,i+1,Object.freeze([...l,d]),bp(s,d,c.offset,i===0?r?.(d):void 0));}};o(e,0,Object.freeze([]),n);}function _G(e,t){let n=[];for(let r of e.pages)for(let o of Ut(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function xp(e,t,n,r){for(let o of r??ZT(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 nx(e){return e.contentControls??[]}function Sp(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 rx(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 JT=new WeakMap,QT=new WeakMap,ev=new WeakMap,Rp=new WeakMap;function tv(e,t){let n=Rp.get(e);n&&Rp.set(t,n);}function nv(e){let t=Rp.get(e);if(t)return t;let n=new Set,r=[];for(let o of Ut(e)){for(let a of o.lines)for(let i of qs(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 Rp.set(e,r),r}function Js(e){let t=JT.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of nv(o))n.has(a)||(n.add(a),r.push(a));return JT.set(e,r),r}function Pl(e){let t=QT.get(e);if(t)return t;let n=new Map;for(let[r,o]of Js(e).entries())n.set(o,r);return QT.set(e,n),n}function HG(e){let t=ev.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of un(a)){for(let l of i.lines)for(let s of qs(l))n.has(s.paragraphId)||(n.add(s.paragraphId),r.push(s.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 nv(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 ev.set(e,r),r}var rv=new WeakMap;function xa(e){let t=rv.get(e);if(t)return t;let n=[...Ut(e)];for(let r of [e.header,e.footer])r&&n.push(...un(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...un(o.fragments));return rv.set(e,n),n}function Pp(e,t,n){return e.paragraphId===t&&n>=e.start&&n<e.end}var ov=new WeakMap;function nt(e){let t=ov.get(e);if(t)return t;let r=e.spans.some(o=>o.range.paragraphId!==e.range.paragraphId)||(e.drawings??[]).some(o=>o.paragraphId!==e.range.paragraphId)?WG(e):[jG(e)];return ov.set(e,r),r}function jG(e){let t=e.range.start;for(let n of e.spans)n.range.start<t&&(t=n.range.start);return {paragraphId:e.range.paragraphId,start:t,end:e.range.end,spans:e.spans,drawings:e.drawings??[]}}function qs(e){let t=nt(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 WG(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)],s=i[0],d=l[0];for(let c=1;c<i.length;c+=1)i[c]<s&&(s=i[c]),l[c]>d&&(d=l[c]);return {paragraphId:r,start:s,end:d,spans:o,drawings:a}})}function Gn(e,t){return nt(e).find(n=>n.paragraphId===t)??null}function wl(e,t,n,r,o=Pl(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 s=a===i?Math.max(t.start,n.offset):t.start,d=a===l?Math.min(t.end,r.offset):t.end;return d>s?{start:s,end:d}:null}function S7(e,t){let n=zG(e).get(t);return n?n.members.slice(0,n.at).reverse():[]}var lv=new Map,av=new WeakMap,iv=new WeakMap;function zG(e){let t=iv.get(e);if(t)return t;let n;for(let o of e.pages)for(let[a,i]of GG(o))n??=new Map,n.has(a)||n.set(a,i);let r=n??lv;return iv.set(e,r),r}function GG(e){let t=av.get(e);if(t)return t;let n;for(let o of Ut(e)){let a=Sa(o);if(a.length<2)continue;let i=new Set;for(let l=0;l<a.length;l+=1){let s=a[l];i.has(s)||(i.add(s),l!==0&&(n??=new Map,n.has(s)||n.set(s,{members:a,at:l})));}}let r=n??lv;return av.set(e,r),r}var ox=new WeakMap;function Sa(e){let t=ox.get(e);if(t)return t;if((e.lines??[]).every(r=>r.range.paragraphId===e.paragraphId&&r.spans.every(o=>o.range.paragraphId===e.paragraphId)&&(r.drawings??[]).every(o=>o.paragraphId===e.paragraphId))){let r=[e.paragraphId];return ox.set(e,r),r}let n=[];for(let r of e.lines??[])for(let o of qs(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),ox.set(e,n),n}function VG(e,t){let n=Sa(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=Gn(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function or(e,t,n){let r=VG(e,t);return r!==null&&n>=r.start&&n<r.end}function KG(e,t){for(let n of e.pages)for(let r of xa(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of xa(n))if(Sa(r).includes(t))return r;return null}function R7(e,t){let n=KG(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 xa(o))if(a.paragraphId===t&&a.marker)return a.marker;return null}function wp(e,t){return t?{...e,range:{paragraphId:t.paragraphId,start:t.start,end:t.end},spans:t.spans,drawings:t.drawings}:e}var ax=["black","blue","turquoise","green","pink","red","yellow","white","darkBlue","teal","darkGreen","violet","darkRed","darkYellow","gray50","gray25","lightBlue","lightYellow","lightOrange","lightPurple","lightGreen","gray"],$G=(e,t)=>Object.freeze({mark:e,color:t}),mu=(e,t)=>Object.freeze({mark:e,color:t,background:"none"}),UG=Object.freeze({insertions:mu("underline","byAuthor"),deletions:mu("strikethrough","byAuthor"),movedFrom:mu("doubleStrikethrough","green"),movedTo:mu("doubleUnderline","green"),formatting:mu("none","byAuthor"),changedLines:$G("outsideBorder","auto"),cells:Object.freeze({inserted:"lightBlue",deleted:"pink",merged:"lightYellow",split:"lightOrange"}),trackMoves:true,trackFormatting:true}),sv=["none","colorOnly","bold","italic","underline","doubleUnderline","strikethrough","doubleStrikethrough"];function w7(e={},t=UG){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError("Invalid revision markup settings");let n={...t};for(let r of Object.keys(e))if(!Object.hasOwn(t,r))throw new TypeError(`Unknown revision markup setting: ${r}`);for(let r of ["trackMoves","trackFormatting"])if(e[r]!==void 0){if(typeof e[r]!="boolean")throw new TypeError(`Invalid ${r}`);n[r]=e[r];}for(let r of ["insertions","deletions","movedFrom","movedTo","formatting","changedLines","cells"]){let o=e[r];if(o===void 0)continue;if(!o||typeof o!="object"||Array.isArray(o))throw new TypeError(`Invalid ${r}`);for(let i of Object.keys(o))if(!Object.hasOwn(t[r],i))throw new TypeError(`Unknown ${r}.${i}`);let a={...t[r],...o};if(r==="cells"){for(let i of Object.values(a))if(i!=="none"&&i!=="byAuthor"&&!ax.includes(i))throw new TypeError("Invalid cell color")}else {if(r!=="changedLines"){let s=a.background;if(s!=="none"&&s!=="byAuthor"&&!ax.includes(s))throw new TypeError(`Invalid ${r} background`)}let i=a;if(!(r==="changedLines"?["none","leftBorder","rightBorder","outsideBorder"]:r==="deletions"||r==="movedFrom"?[...sv,"hidden","caret","pound"]:sv).includes(i.mark))throw new TypeError(`Invalid ${r} mark`);if(i.color!=="auto"&&i.color!=="byAuthor"&&!ax.includes(i.color))throw new TypeError(`Invalid ${r} color`)}Object.assign(n,{[r]:Object.freeze(a)});}return Object.freeze(n)}function k7(e,t,n="currentColor"){return e==="auto"?n:e==="byAuthor"?t:`var(--doc-revision-color-${e})`}function kp(e,t){switch(t){case "insert":return e.insertions;case "delete":return e.deletions;case "moveFrom":return e.trackMoves?e.movedFrom:e.deletions;case "moveTo":return e.trackMoves?e.movedTo:e.insertions;case "format":return e.formatting}}var Tp=new WeakMap;function dv(e){return Tp.get(e)??null}function cv(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,cs:t.font,hint:"default"}}];return Tp.set(r,{props:e,style:je(e,n)}),{props:r,style:je(r,n)}}function uv(e,t){if(t&&dv(t.props))return t;let n=e?dv(e.props):null;return e&&n?{...e,props:n.props,style:n.style}:null}function fv(e,t){let n=Tp.get(e);n&&Tp.set(t,n);}function B7(e){return e==="simple-markup"?"proposed":e}var Ue="all-markup",YG=Object.freeze({hiddenAuthors:Object.freeze(new Set),resolvedMarkup:"plain",cacheKey:"plain"}),mv=new WeakMap;function L7(e){if(!e)return YG;if(e.resolvedMarkup==="plain")return e;let t=mv.get(e);return t||(t=Object.freeze({...e,resolvedMarkup:"plain",cacheKey:`${e.cacheKey}|plain`}),mv.set(e,t)),t}var Fp=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]()}},E7=new Fp([]);function A7(e){let t=new Set;for(let o of e)t.add(o);if(t.size===0)return;let n=[...t].sort(),r=new Fp(n);return Object.freeze({hiddenAuthors:r,includes:o=>!r.has(o.author),includesNode:(o,a)=>!r.has(a),cacheKey:JSON.stringify(n)})}function Nr(e,t){return e.includes?.(t)??ed(e,t.nodeId,t.author)}function ed(e,t,n){return e.includesNode?.(t,n)??!e.hiddenAuthors.has(n)}function pu(e,t,n){return Nr(e,t)?n:e.excludedNodeMode?.(t.nodeId,t.author)??"proposed"}function hv(e,t,n,r){return ed(e,t,n)?r:e.excludedNodeMode?.(t,n)??"proposed"}var Dr=Object.freeze([]),XG=32,ZG={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function Qs(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 Vn(e){if(e.kind==="textValue")return null;let t=ZG[e.kind];if(t===void 0)return null;let n=Qs(e,"date");return {kind:t,id:Qs(e,"id")??"",author:Qs(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function ar(e,t){return e.length===0?[t]:[...e,t]}function En(e){return e.kind!=="textValue"&&chunkPWTRJSES_cjs.va(e.kind)}var Cp=XG;function Ye(e,t,n){if(e.length===0||t==="all-markup"&&!n)return true;for(let r of e){let o=n?pu(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 ix(e,t,n){if(!n&&t==="all-markup")return e;if(!Ye(e,t,n))return null;if(t!=="all-markup"&&n?.resolvedMarkup==="plain")return Dr;if(!n)return e;let r=e.filter(o=>Nr(n,o));return r.length===0?Dr:r}function gu(e,t,n){if(t==="all-markup"||e.length===0)return Dr;if(!n)return e;let r=e.filter(o=>Nr(n,o));return r.length===0?Dr:r}function pv(e,t,n){return t==="all-markup"&&(!n||Nr(n,e))}function qG(e,t){if(!t)return e;let n=e.filter(r=>{if(r.localName!=="rPrChange"&&r.localName!=="pPrChange")return true;let o="revisionNodeId"in r&&typeof r.revisionNodeId=="string"?r.revisionNodeId:"";return Nr(t,{kind:"format",id:r.attributes?.id??"",author:r.attributes?.author??"",...r.attributes?.date===void 0?{}:{date:r.attributes.date},nodeId:o})});return n.length===e.length?e:(fv(e,n),n)}function Ip(e,t,n,r){let o=ix(e,n,r);if(o===null)return null;let a=r?qG(t,r):t,i=gu(e,n,r);return {props:a,...o.length===0?{}:{revisions:o},...i.length===0?{}:{changeSites:i}}}function Mp(e,t,n){if(t!=="all-markup")return {revisions:Dr,formatRevision:null};if(!n)return {revisions:gi(e),formatRevision:Op(e)};let r=gi(e).filter(a=>pv(a,t,n)),o=Op(e);return {revisions:r,formatRevision:o&&pv(o,t,n)?o:null}}function yv(e,t,n){let r=gi(e);if(!n)return r.length>0||Op(e)!==null;if(r.some(a=>Nr(n,a)))return true;let o=Op(e);return o!==null&&Nr(n,o)}function gi(e){return xv(e).revisions}var JG={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function Op(e){return xv(e).format}var bv=Object.freeze([]),vp=Object.freeze({revisions:bv,format:null}),gv=new WeakMap;function xv(e){let t=gv.get(e);if(t)return t;let r=(()=>{if(e.kind==="textValue")return vp;let o=e.children.find(s=>s.kind==="paragraphProperties");if(!o||o.kind==="textValue")return vp;let a=o.children.find(s=>s.kind==="runProperties");if(!a||a.kind==="textValue")return vp;let i=[],l=null;for(let s of a.children){if(s.kind==="textValue"||s.namespaceUri!==chunkPWTRJSES_cjs.la)continue;let d=JG[s.localName]??(s.localName==="rPrChange"?"format":void 0);if(d===void 0)continue;let c=Qs(s,"date"),u={kind:d,id:Qs(s,"id")??"",author:Qs(s,"author")??"",...c===void 0?{}:{date:c},nodeId:s.id};d==="format"?l??=u:i.push(u);}return i.length||l?{revisions:i.length?i:bv,format:l}:vp})();return gv.set(e,r),r}function Sv(e){return e.find(t=>QG(t))??e[0]}function QG(e){return e.kind==="delete"||e.kind==="moveFrom"}function Bp(e,t){let n=Sv(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function N7(e){return Sv(gi(e))??null}function kl(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 Do(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 Rv=new WeakMap;function Tv(e){let t=Rv.get(e);if(t!==void 0)return t;let n=eV(e);return Rv.set(e,n),n}function eV(e){let t=(n,r)=>{if(n.kind==="textValue"||r>=chunkPWTRJSES_cjs.wa||chunkPWTRJSES_cjs.qf(n)||chunkPWTRJSES_cjs.of(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=chunkPWTRJSES_cjs.xa(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 vv(e,t){for(let n of t.resultParagraphIds){let r=chunkPWTRJSES_cjs.Ta(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&Tv(r))return true}return false}var Pv=new WeakMap,wv=new WeakMap,kv=new WeakMap;function Lp(e){let t=Pv.get(e);if(t)return t;let n=new Set;for(let r of chunkPWTRJSES_cjs.Rf(e)){let o=chunkPWTRJSES_cjs.Ta(e,r.beginParagraphId);o!==null&&o.kind!=="textValue"&&o.kind==="paragraph"&&Tv(o)||n.add(r.beginParagraphId),n.add(r.endParagraphId);}return Pv.set(e,n),n}function Fv(e){let t=wv.get(e);if(t)return t;let n=new Set;for(let r of chunkPWTRJSES_cjs.Rf(e))vv(e,r)||n.add(r.beginParagraphId);return wv.set(e,n),n}function Ep(e){let t=kv.get(e);if(t)return t;let n=new Set;for(let r of chunkPWTRJSES_cjs.Rf(e))if(!vv(e,r))for(let o of r.resultParagraphIds)n.add(o);return kv.set(e,n),n}var lx=64,sx=31680,tV=720,td=tV/20,Ov=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),hu=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:td}),nV=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),rV=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function yu(e){return e.kind!=="textValue"}function Ap(e,t){return e.attributes.find(n=>n.localName===t)?.value}function dx(e,t){for(let n of e.children)if(yu(n)&&n.localName===t)return n}function Cv(e){return chunkPWTRJSES_cjs.nd(e)}function oV(e){return !Number.isFinite(e)||e<0?null:e>sx?sx:e}function Iv(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=lx*2)break;if(n+=1,!yu(r)||r.localName!=="tab")continue;let o=oV(Cv(Ap(r,"pos"))??NaN);if(o===null)continue;let a=Ap(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=a==="num"?"left":nV.get(a);if(i===void 0||e.size>=lx&&!e.has(o))continue;let l=Ap(r,"leader");e.set(o,{alignment:i,...a==="num"?{numberingOnly:true}:{},...l!==void 0&&rV.has(l)?{leader:l}:{}});}}function Mv(e,t=td){let n=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<n.length&&o<lx;o+=1){let[a,i]=n[o];r.push({positionPt:a/20,...i});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function Bv(e){let t=new Map;for(let n of e)!n||!yu(n)||Iv(t,dx(n,"tabs"));return Mv(t)}function V7(e){if(!e||!yu(e))return hu;let t=new Map;return Iv(t,dx(e,"tabs")),Mv(t)}function Np(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{...e,defaultIntervalPt:t}}function Lv(e){if(!e||!yu(e))return td;let t=dx(e,"defaultTabStop");if(!t)return td;let n=Cv(Ap(t,"val"));return n===null||n<=0||n>sx?td:n/20}function Tl(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:td,i=Math.ceil((t+1e-9)/a)*a;return i<=t&&(i+=a),{positionPt:Math.min(i,o),alignment:"left"}}function Ev(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 Dp(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 vl(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 Dv=e=>new Set([...e].map(t=>t.codePointAt(0))),bu=Dv("\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"),xu=Dv("\u300C\u300E\uFF08\u3010\u3008\u300A\u3014\u3016\u3018\u301A\uFF5B\uFF3B\uFF1C\uFF62\uFF04\uFFE5");function _v(e,t){return !(!vl(e)||!vl(t)||xu.has(e)||bu.has(t))}function ro(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 Fl=new Set(["-","\u2010","\u2013","\u2014"]),Hv=/[\u00a0\u2007\u202f\u2060\ufeff]/u,cx=/[^\S\u00a0\u2007\u202f\ufeff]$/,ux=/^[^\S\u00a0\u2007\u202f\ufeff]/,Av=11904;function aV(e){let t=null;return n=>{if(t===null){t=new Set;for(let r of xt(e))t.add(r.utf16From);t.add(e.length);}return t.has(n)}}function iV(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 oo(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===" "||Fl.has(a)&&o>0&&e[o-1]!==" "&&o+1<e.length&&e[o+1]!==" "&&!Fl.has(e[o+1]))&&n.push(o+1);}let r=n;if(t){let o=[],a=aV(e);for(let i=0;i<e.length;){let l=e.codePointAt(i),s=i+(l>65535?2:1);if(s>=e.length)break;_v(l,e.codePointAt(s))&&a(s)&&o.push(s),i=s;}o.length>0&&(r=iV(n,o));}return r[r.length-1]!==e.length&&r.push(e.length),r}function Hp(e,t){return !(t!==void 0&&bu.has(t)||e!==void 0&&xu.has(e))}function jv(e,t){return t<=0||t>=e.length?true:Hp(ro(e.slice(0,t)),e.codePointAt(t))}var _p=new Map,Nv=-1;function lV(e,t){let n=fp();(Nv!==n||_p.size>=2048)&&(_p.clear(),Nv=n);let r=e*1114112+t,o=_p.get(r);if(o!==void 0)return o;let a=0;for(let l of xt(String.fromCodePoint(e,t)))a+=1;let i=a>1;return _p.set(r,i),i}function nd(e,t,n){let r=n||e===""||cx.test(e)||ux.test(t)||Fl.has(e[e.length-1])&&!Fl.has(t[0]),o=e.length===0?0:e.charCodeAt(e.length-1);if(o<Av&&t.charCodeAt(0)<Av)return r?"opens":"continues";if(o===9)return "opens";let a=ro(e),i=t.codePointAt(0);return a!==void 0&&!lV(a,i)||!Hp(a,i)?"forbidden":r||a!==void 0&&_v(a,i)?"opens":"continues"}function fx(e,t,n,r){r.length===0||n<=t||e.push({start:t,end:n,revisions:r});}function Wv(e,t,n){return e?(r,o,a)=>fx(e,r,o,gu(a,t,n)):()=>{}}function mx(e){return e.capturedResultRevisions?{revisionsOverride:e.resultRevisions,formatSiteOverride:e.resultFormatSite}:{}}function zv(e,t){return t?{...e,changeSites:[...e.changeSites??[],t]}:e}function hi(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 sV=new Set(["left","center","right"]),dV=new Set(["margin","indent","leftMargin"]),cV=new Set(["dot","hyphen","underscore","middleDot"]);function px(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkPWTRJSES_cjs.la)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkPWTRJSES_cjs.la&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:sV.has(t)?t:"left",relativeTo:dV.has(n)?n:"margin",...r!==void 0&&cV.has(r)?{leader:r}:{}}}function uV(e,t,n,r){return {...e,text:e.text.slice(t,n),start:e.start+t,end:e.start+n,...r?{fontSlot:r}:{}}}function fV(e,t,n,r){return {...e,text:e.text.slice(t,n),...r?{fontSlot:r}:{}}}function Gv(e,t){if(!e.some(({style:d})=>d.fontFamilyEastAsia!==null&&d.fontFamilyEastAsia!==d.fontFamily))return e;let n=[],r=[],o=[];for(let d=0;d<e.length;d+=1){let c=e[d];if(c.positionalTab||c.breakKind||c.inlineDrawing||c.anchoredAtom||c.equation||c.text.length===0)continue;n.push(d),r.push(c.text);let u=mp(c.props)&&!chunkPWTRJSES_cjs.b(c.style.fontFamily)&&!zT(c.props,c.style.fontFamilyEastAsia,t);o.push(u?GT(c.props,c.style.fontFamilyEastAsia,t):false);}let a=UT(r,o);if(a.length===0)return e;let i=new Map;for(let d of a){let c=i.get(d.segment);c?c.push({from:d.from,to:d.to}):i.set(d.segment,[{from:d.from,to:d.to}]);}let l=[],s=0;for(let d=0;d<e.length;d+=1){let c=e[d];if(n[s]!==d){l.push(c);continue}let u=i.get(s);s+=1;let{style:f}=c;if(!u||f.fontFamilyEastAsia===null||f.fontFamilyEastAsia===f.fontFamily){l.push(c);continue}let p=!c.projected&&!c.fieldAtom&&!c.noteNav&&c.measureText===void 0&&c.end-c.start===c.text.length,g=c.projected===true&&c.fieldAtom!=null&&!c.noteNav&&c.measureText===void 0,m=g?fV:uV;if(!p&&!g){let y=u.length===1&&u[0].from===0&&u[0].to===c.text.length;l.push(y?{...c,fontSlot:"eastAsia"}:c);continue}let h=0;for(let y of u)y.from>h&&l.push(m(c,h,y.from,void 0)),l.push(m(c,y.from,y.to,"eastAsia")),h=y.to;h<c.text.length&&l.push(m(c,h,c.text.length,void 0));}return l}function Su(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"?chunkPWTRJSES_cjs.pb(e):chunkPWTRJSES_cjs.fb(e)??""}function Ru(e){let t=chunkPWTRJSES_cjs.hb(e);return t===null?null:chunkPWTRJSES_cjs.gb(e)===chunkPWTRJSES_cjs.cb?{text:t,measureText:""}:{text:t}}function Xe(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 i=BT(n);i!==void 0&&t.push({localName:"ligatures",attributes:{val:i}});continue}if(n.localName==="textOutline"){let i=OT(n);i&&t.push(i);continue}if(n.namespaceUri!==chunkPWTRJSES_cjs.la)continue;if(n.localName!=="rPrChange"&&n.localName!=="pPrChange"){t.push(mV(n.localName,n.attributes));continue}let r={};for(let i of n.attributes)i.namespaceUri===chunkPWTRJSES_cjs.la&&(r[i.localName]=i.value);let a=Object.keys(r).length>0?{localName:n.localName,attributes:r,revisionNodeId:n.id}:{localName:n.localName,revisionNodeId:n.id};t.push(a);}return t}var Vv=new WeakMap;function mV(e,t){let n=Vv.get(t);n||Vv.set(t,n=new Map);let r=n.get(e);if(r)return r;let o={},a=false;for(let l of t)l.namespaceUri===chunkPWTRJSES_cjs.la&&(o[l.localName]=l.value,a=true);let i=Object.freeze(a?{localName:e,attributes:Object.freeze(o)}:{localName:e});return n.set(e,i),i}function Ra(e,t,n){let r=Xe(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}function gx(e,t,n,r,o){let a=r&&o?kp(r,o.kind).mark:void 0;return {text:a==="caret"?"^":a==="pound"?"#":e,style:a==="bold"||a==="italic"?wT(t,a):t,projected:n||a==="caret"||a==="pound",hidden:a==="hidden"}}function pV(e,t){return kl(e)??kl(Xe("children"in t?t.children.find(n=>n.kind==="paragraphProperties"):void 0))??void 0}function hx(e,t,n){let r=e.revisions?.find(a=>a.kind==="delete"||a.kind==="moveFrom")??e.revisions?.at(-1);if(r)return r;let o=pV(e.props,t);return o&&(!n||Nr(n,o))?o:void 0}function yx(e,t,n,r){e&&fx(e,t,n,r.revisions??[]);}function _o(e,t,n){if(t!=="all-markup"||!n?.revisionMarkup)return false;let r=e.find(o=>(o.kind==="delete"||o.kind==="moveFrom")&&Nr(n,o));return !!r&&kp(n.revisionMarkup,r.kind).mark==="hidden"}function Kv(e,t,n,r,o){if(n!=="all-markup"||!r?.revisionMarkup)return e;let a=[];for(let i of e){let l=hx(i,t,r),s=l&&kp(r.revisionMarkup,l.kind).mark;if((s==="caret"||s==="pound")&&(i={...i,measureText:void 0},i.fieldAtom)){let{pageField:c,pageRef:u,...f}=i.fieldAtom;i={...i,fieldAtom:f};}let d=gx(i.text,i.style,!!i.projected,r.revisionMarkup,l);if(d.hidden){yx(o,i.start,i.end,i);continue}a.push(d.text===i.text&&d.style===i.style?i:{...i,text:d.text,style:d.style,projected:d.projected});}return a}function Ol(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 bx(e){return e===void 0||e===11||e===12||e===14?"legacy":e>=15?"modern":"unlisted"}var Kn=(e,t)=>({mode:"modern",behavior:e,source:t}),rd=(e,t)=>({mode:"legacy",behavior:e,source:t}),jp={anchorOnlyParagraphSeeding:Kn("Seed the pages of consecutive anchor-only paragraphs before later bands wrap earlier text","ECMA-376 Part 1 \xA720.4.2.3 anchor"),anchorOnlyParagraphWrapExclusion:Kn("An anchor-only paragraph wraps around its own anchors before it is placed","ECMA-376 Part 1 \xA720.4.2.3 anchor"),anchorsLayOutInCell:Kn("Every anchored object in a table cell lays out in its cell; none is out of cell","ECMA-376 Part 1 \xA720.4.2.3 anchor (layoutInCell)"),fixedTableContentEdgeOrigin:rd("A collapsed fixed left table aligns its leading cell content edge with the text column","ECMA-376 Part 1 \xA717.4.52 tblLayout"),floatingTableContentOrigin:rd("A floating table with a numeric text anchor or a right alignment positions its cell content, not its outer edge","ECMA-376 Part 1 \xA717.4.57 tblpPr"),floatingTableOverlapMovesLeft:Kn("A floating table that may not overlap moves left of the table it meets when the right side has no room","ECMA-376 Part 1 \xA717.4.56 tblOverlap"),headerFooterAnchorsWrapText:Kn("Header and footer text outside tables wraps around anchored objects","ECMA-376 Part 1 \xA720.4.2.3 anchor"),headerRowsKeepWithBody:Kn("Header rows keep with the opening body rows; the table starts on the next page if both do not fit","ECMA-376 Part 1 \xA717.4.49 tblHeader"),justifiedSpaceShrink:Kn("Justified lines may shrink spaces to fit one more word","ECMA-376 Part 1 \xA717.3.1.13 jc"),keepNextGivesTailLines:Kn("A keep-with-next paragraph that fits whole gives its last lines to the next page with its successor","ECMA-376 Part 1 \xA717.3.1.15 keepNext"),legacyPercentTableContentWidth:rd("A top-level percent-width table resolves its width against the legacy content width","ECMA-376 Part 1 \xA717.4.63 tblW"),legacySharedGridLineSideRules:rd("Collapsed side rules center on shared grid lines for every simple top-level table","ECMA-376 Part 1 \xA717.4.38 tblBorders"),modernBidiTableRuleShift:Kn("A right-to-left table sits half its mean outer side rule toward its visual left","ECMA-376 Part 1 \xA717.4.1 bidiVisual"),modernGridLineSideRules:Kn("Side rules center on grid lines for covered dxa/auto width shapes; edge-aligned grids move by half a rule","ECMA-376 Part 1 \xA717.4.38 tblBorders"),noteTableCellKeeps:Kn("Note reference bands in table rows honor cell widow control and keep-lines cuts","ECMA-376 Part 1 \xA717.11 Footnotes and Endnotes"),positionedTableBreaksAtMargin:Kn("A page- or margin-positioned table that breaks ends its first fragment at the bottom margin, not the page edge","ECMA-376 Part 1 \xA717.4.57 tblpPr"),pageBreakBeforeKeepsSpace:rd("A paragraph with a page break before keeps its space before at the top of the new page. In modern modes only the first block of a section keeps it","ECMA-376 Part 1 \xA717.3.1.23 pageBreakBefore"),pageBreakLinesStretch:rd("A justified line that ends in a page or column break stretches to the measure, unless it is the last line of its paragraph","ECMA-376 Part 1 \xA717.3.3.1 br"),rowPageBreakYieldsToKeep:Kn("A row with a page break does not start a page when the row before it keeps with it","ECMA-376 Part 1 \xA717.3.1.15 keepNext"),tableParagraphWidowControl:Kn("Paragraphs that split inside table cells apply widow and orphan control","ECMA-376 Part 1 \xA717.3.1.44 widowControl"),vMergeTextMovesPastHeadRow:Kn("Merged cell text moves whole into the next row when the head row cannot hold it","ECMA-376 Part 1 \xA717.4.84 vMerge")},$v={adjustLineHeightInTable:{behavior:"Paragraphs in table cells snap to the section line grid",source:"ECMA-376 Part 1 \xA717.15.3.1 adjustLineHeightInTable",applies:e=>e.legacy.adjustLineHeightInTable===true},doNotBreakWrappedTables:{behavior:"A floating table that fits a full page does not break across pages",source:"ECMA-376 Part 4 \xA714.8.3.10 doNotBreakWrappedTables",applies:e=>e.legacy.doNotBreakWrappedTables===true},fixedParagraphSpacing:{behavior:"Adjacent paragraph spacing adds up, and automatic spacing is a fixed 5pt before and 10pt after",source:"ECMA-376 Part 4 \xA714.8.3.15 doNotUseHTMLParagraphAutoSpacing",applies:e=>e.legacy.doNotUseHTMLParagraphAutoSpacing===true},ignoreIndentAsNumberingTabStop:{behavior:"A numbering suffix tab ignores the hanging indent as a tab stop",source:"ECMA-376 Part 4 \xA714.8.3.16 doNotUseIndentAsNumberingTabStop",applies:e=>e.legacy.doNotUseIndentAsNumberingTabStop===true},optionalLigatures:{behavior:"Optional OpenType ligatures apply: as `enableOpenTypeFeatures` says, else in modern modes. A duplicated setting turns them off",source:"[MS-DOCX] enableOpenTypeFeatures",applies:e=>{let t=e.settings.enableOpenTypeFeatures;return t==="ambiguous"?false:t??e.modeClass==="modern"}},preserveExactLineBaseline:{behavior:"With `w:noExtraLineSpacing`, an exact-height line keeps the face baseline in every compatibility mode, also a refused one",source:"ECMA-376 Part 4 \xA714.8.3.28 noExtraLineSpacing",applies:e=>e.legacy.noExtraLineSpacing===true},strictTableStyleHierarchy:{behavior:"Table style font size and justification apply over the default paragraph style",source:"[MS-DOCX] 2.3.1 overrideTableStyleFontSizeAndJustification",applies:e=>e.settings.overrideTableStyleFontSizeAndJustification===true},unstretchedManualBreakLines:{behavior:"A justified line that ends in a manual line break keeps its natural spacing, as a last line does. A distributed line still stretches",source:"ECMA-376 Part 4 \xA714.8.3 doNotExpandShiftReturn",applies:e=>e.legacy.doNotExpandShiftReturn===true}};function Le(e,t){return jp[t].mode===bx(e)}var gV=Object.freeze({inTableCell:true,compatibilityMode:void 0,anchorsWrapText:true,rowsClearOutOfCellFloats:false});function Cl(e,t,n){return Object.freeze({inTableCell:e===true,compatibilityMode:t.compatibilityMode,anchorsWrapText:t.anchorsWrapText!==false||e===true,rowsClearOutOfCellFloats:n!==void 0&&xx(t,n)})}function xx(e,t){return e.outOfCellFloatParagraphs?.has(t)===true}function Pu(e,t){if(!t.inTableCell||Le(t.compatibilityMode,"anchorsLayOutInCell"))return true;let n=e.position;return n?.horizontal.relativeFrom==="character"||n?.vertical.relativeFrom==="line"?true:e.anchor?.layoutInCell??true}function Sx(e,t){return t.anchorCellBox!=null&&!Pu(e,t.cellAnchorScope??gV)}function Uv(e,t,n){return {anchorCellBox:Object.freeze({x:0,y:0,width:e,height:Math.max(1,t)}),cellAnchorScope:n}}function Il(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 Yv=21600;function wu(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 zp(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 wu(n)}function Rx(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 wu(r)}function hV(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 Zv(e,t){return od(e,t)}function ku(e,t,n){return Zv(od(e,t),n)}function yV(e,t){let n=[],r=Math.min(e.length,kn);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],l=a.y,s=i.y;if(l===s)continue;let d=Math.min(l,s),c=Math.max(l,s);if(t<d||t>c||t===c&&s>l||t===d&&s<l)continue;let u=(t-l)/(s-l),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:s>l?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function bV(e,t){let n=[],r=Math.min(e.length,kn);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),s=Math.max(a.x,i.x);s>l&&n.push(Object.freeze({start:l,end:s}));}return wu(n)}function Xv(e,t,n){let r=xV(yV(e,t),n),o=bV(e,t);return wu([...r,...o])}function xV(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 SV(e,t){return Object.freeze({top:be(e.top)+be(t.top),right:be(e.right)+be(t.right),bottom:be(e.bottom)+be(t.bottom),left:be(e.left)+be(t.left)})}function RV(e,t,n,r,o,a){let i=t.x-e.x,l=t.y-e.y,s=r.x-n.x,d=r.y-n.y,c=i*d-l*s;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*l-(n.y-e.y)*i)/c,p=((n.x-e.x)*d-(n.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>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 PV(e,t,n,r){let o=[],a=Math.min(e.length,kn),i=Math.min(t.length,kn);if(a<2||i<2)return Object.freeze([]);let l=kn*kn,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(s>=l)return Object.freeze(o);s+=1;let p=t[f],g=t[(f+1)%i],m=RV(c,u,p,g,n,r);m!==null&&o.push(m);}}return Object.freeze(o)}function wV(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,kn);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],s=o[(i+1)%a],d=l.y,c=s.y;if(d!==c)for(let u of [t,n]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of PV(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function kV(e,t,n,r){let o=Xv(e,n,r);return t&&t.length>=3&&(o=zp(o,Xv(t,n,"nonzero"))),o}function qv(e,t,n,r,o=null){let a=be(n.top),i=be(n.bottom),l=be(n.left),s=be(n.right),d=t-i,c=t+a,u=wV(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((g,m)=>{if(m+1>=u.length)return [];let h=u[m+1];return h<=g+1e-6?[g]:[g,h,(g+h)/2]}):[d];for(let g of p){let m=kV(e,o,g,r);for(let h of m)f.push(Object.freeze({start:h.start-l,end:h.end+s}));}return wu(f)}function Jv(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 TV(e){let t=Math.max(0,be(e.extentWidthPt)),n=Math.max(0,be(e.extentHeightPt)),r=Gp(e.transform,t,n),o=Math.min(e.polygonEmu.length,kn);if(o<3)return Jv({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/Yv,i=r.height/Yv,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:be(d.x)*a,y:be(d.y)*i}));}return Vp({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 vV(e,t){let n=t.effectInsets??Wp,r=t.wrapDistances??Wp,o=be(t.contentLeft),a=be(t.contentRight);if(t.mode==="topAndBottom"){let c=Zv(od(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Rx([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=ku(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Rx([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:Jv(t.contentBounds),l=t.mode==="through"?"evenodd":"nonzero",s=SV(r,n),d=qv(i,e,s,l,t.clipPolygon);return Rx(d,o,a)}function FV(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 OV(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=FV(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(s=>s.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(s=>s.start>=a.end-1e-4));let i=Math.max(0,a.start-r),l=Math.max(0,o-a.end);return i===l?Object.freeze(e.filter(s=>s.start>=a.end-1e-4)):i>l?Object.freeze(e.filter(s=>s.end<=a.start+1e-4)):Object.freeze(e.filter(s=>s.start>=a.end-1e-4))}function Qv(e,t){let n=vV(e,t),r=hV(n,t.contentLeft,t.contentRight);return OV(r,n,t.textSide,t.contentLeft,t.contentRight)}function CV(e,t,n,r){return n.length<3?false:qv(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Px(e,t,n){let r=n.effectInsets??Wp,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 CV(e,t,n.clipPolygon,r);let a=od(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function eF(e){let t=Object.freeze({top:be(e.wrapDistancesEmu.top/Ho),right:be(e.wrapDistancesEmu.right/Ho),bottom:be(e.wrapDistancesEmu.bottom/Ho),left:be(e.wrapDistancesEmu.left/Ho)}),n=e.mode==="tight"||e.mode==="through"?TV({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 ir=1e5,kn=chunkPWTRJSES_cjs.r.maxPolygonPoints,Wp=Object.freeze({top:0,right:0,bottom:0,left:0}),IV=32,MV=.1,BV=new Set(["rect","ellipse","roundRect"]);function be(e){return Number.isFinite(e)?e:0}function Hr(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function tF(e,t){let n=e+t;return Number.isFinite(n)?n:0}function nF(e,t,n){let r=Hr(e,0,n),o=Hr(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 LV(e){let t=nF(Hr(e.left,0,ir),Hr(e.right,0,ir),ir),n=nF(Hr(e.top,0,ir),Hr(e.bottom,0,ir),ir);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function EV(e){let t=LV({left:e.left*ir,top:e.top*ir,right:e.right*ir,bottom:e.bottom*ir});return Object.freeze({left:t.left/ir,top:t.top/ir,right:t.right/ir,bottom:t.bottom/ir})}function AV(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/Ho;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 od(e,t){let n=be(t.left),r=be(t.right),o=be(t.top),a=be(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,tF(e.width,n+r)),height:Math.max(0,tF(e.height,o+a))})}function NV(e,t,n){let r=e*Hr(n.left,0,1),o=t*Hr(n.top,0,1),a=e*(1-Hr(n.right,0,1)),i=t*(1-Hr(n.bottom,0,1)),l=e>0?a<=r:a<r,s=t>0?i<=o:i<o;if(l||s){let d=e/2,c=t/2;return Object.freeze({left:d,top:c,right:d,bottom:c})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function Gp(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?be(_r(r)??t):Math.max(0,be(t)),l=o>0?be(_r(o)??n):Math.max(0,be(n));return Object.freeze({offsetX:be(_r(a.x)??0),offsetY:be(_r(a.y)??0),width:i,height:l})}function DV(e,t,n,r){let o=NV(t,n,r),a=o.right-o.left,i=o.bottom-o.top,l=t>0?t:1,s=n>0?n:1,d=[],c=Math.min(e.length,kn);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Hr(f.x/l,0,1)*a,g=i<=0?o.top:o.top+Hr(f.y/s,0,1)*i;d.push(Object.freeze({x:be(p),y:be(g)}));}return Object.freeze(d)}function rF(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=be(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),l=Math.sin(a),s=r*i-o*l,d=r*l+o*i;return Object.freeze({x:be(s+t.x),y:be(d+t.y)})}function oF(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,kn);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 kx(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=Tu(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of n)r.push(rF(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),t,e.transform));let o=oF(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,be(e.layoutWidth))/a,scaleY:Math.max(0,be(e.layoutHeight))/i,anchorX:be(e.anchorX),anchorY:be(e.anchorY)})}function _V(e,t){return Object.freeze({x:be(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:be(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function Vp(e){let t=e.mapping??kx({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=DV(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,kn),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 s=o[l],d=Object.freeze({x:be(s.x+e.offsetX),y:be(s.y+e.offsetY)});i.push(_V(rF(d,a,e.transform),t));}return Object.freeze(i)}function Tu(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 HV(e,t,n){if(!e||!BV.has(e))return null;if(t<=0||n<=0)return Tu(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return Tu(0,0,t,n);if(e==="ellipse"){let l=[],s=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(IV,kn);for(let p=0;p<f;p+=1){let g=p/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(g),y:d+u*Math.sin(g)}));}return Object.freeze(l)}let r=Math.min(t,n)*MV,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 id(e){return Object.freeze({x:be(e.x),y:be(e.y)})}function jV(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,l,s)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,kn);for(let u=0;u<c;u+=1){let f=id(i[u]),p=id(i[(u+1)%c]),g=l(f),m=l(p);if(g&&m?d.push(p):g&&!m?d.push(id(s(f,p))):!g&&m&&(d.push(id(s(f,p))),d.push(p)),d.length>=kn)break}return Object.freeze(d.slice(0,kn))},a=e.slice(0,kn).map(id);return a=[...o(a,i=>i.x>=t.x,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(t.x-i.x)/s:0;return Object.freeze({x:t.x,y:be(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,l)=>{let s=l.x-i.x,d=Math.abs(s)>1e-6?(n-i.x)/s:0;return Object.freeze({x:n,y:be(i.y+d*(l.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(t.y-i.y)/s:0;return Object.freeze({x:be(i.x+d*(l.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,l)=>{let s=l.y-i.y,d=Math.abs(s)>1e-6?(r-i.y)/s:0;return Object.freeze({x:be(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function WV(e){let t=oF(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function Kp(e,t){let n=Ol(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=jV(a,t);return i.length>=3?Object.freeze(i.map(id)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function wx(e){let t=Math.max(0,be(e.extentWidth)),n=Math.max(0,be(e.extentHeight)),r=be(e.anchorX),o=be(e.anchorY),a=EV(e.crop),i=AV(e.effectExtentEmu),l=Gp(e.transform,t,n),s=Object.freeze({x:r,y:o,width:t,height:n}),d={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=kx(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=Vp({points:Tu(0,0,l.width,l.height),...d,crop:u,mapping:c}),p=HV(e.presetGeometry,l.width,l.height),g="none",m=p;m||(g=e.presetGeometry?"unsupported-preset":"none",m=Tu(0,0,l.width,l.height));let h=Vp({points:m,...d,crop:u,mapping:c}),y=WV(h.length>=3?h:f),b=od(y,i);return Object.freeze({contentBounds:s,paintBounds:b,hitBounds:b,transformedCorners:f,imageTransformCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:g,effectInsets:i})}function yi(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=wx({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,s=r.frameEmu,d=wx({extentWidth:s.cx*i,extentHeight:s.cy*l,anchorX:e.anchorX+s.x*i,anchorY:e.anchorY+s.y*l,effectExtentEmu:{top:0,right:0,bottom:0,left:0},crop:r.crop,transform:n,presetGeometry:null});return Object.freeze({...o,imageTransformCorners:d.transformedCorners})}return wx({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 zV(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=Gp(t,n,r),a=o.width,i=o.height,l=kx({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),s=be(t.rotationDegrees),d=Math.abs(s%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=l.scaleX,p=l.scaleY,g=a>0?a/n:1,m=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(g-1)<1e-4&&Math.abs(m-1)<1e-4)return null;let y=s*Math.PI/180,b=Math.cos(y),x=Math.sin(y),R=o.offsetX+a/2,P=o.offsetY+i/2,S=f*b*c,w=-f*x*u,F=p*x*c,T=p*b*u,v=f*(R-b*c*(a/2)+x*u*(i/2)-l.bboxX),C=p*(P-x*c*(a/2)-b*u*(i/2)-l.bboxY);return Object.freeze({a:be(S*g),b:be(F*g),c:be(w*m),d:be(T*m),e:be(v),f:be(C)})}function RJ(e){let t=zV(e);if(t)return `matrix(${ad(t.a)}, ${ad(t.b)}, ${ad(t.c)}, ${ad(t.d)}, ${ad(t.e)}, ${ad(t.f)})`}function ad(e){return Number.isFinite(e)?String(e):"0"}function $p(e,t){if(t?.extentWidth===void 0)return e;let n=Math.round(t.extentWidth*12700);return n===e.extentEmu.cx?e:Object.freeze({...e,extentEmu:Object.freeze({...e.extentEmu,cx:n})})}var iF=new WeakMap;function lF(e,t){iF.set(e,t);}function Up(e){return !!(e.drawings.length||e.wrapSegment||e.exclusionSkipBefore||e.anchorClearanceBefore||e.pageBreakAfter||e.columnBreakAfter||e.manualBreakAfter||e.spaceShrink||e.deletedRanges?.length||e.anchorRevisions?.length||e.changeSites?.length)}var GV=/^[A-Za-z0-9 .,:;()%+/-]+$/,aF=new WeakMap;function VV(e){let t=aF.get(e);return t===void 0&&(t=!Up(e)&&e.spans.length>0&&!e.spans[e.spans.length-1].text.endsWith(" ")&&e.spans.every(n=>GV.test(n.text)&&n.box.width>=0&&n.style.shaping?.direction!=="rtl"&&!n.lineEndWhitespace&&!n.optionalHyphenBreak&&!n.tabLeader&&!n.glyphOffsetPt&&!n.noteSeparator),aF.set(e,t)),t}var Tx=5e-4;function vx(e,t){return VV(e)&&e.width+Math.max(0,e.firstLineOffset??0)<=t+Tx}function sF(e,t,n,r){return iF.get(e)?.(t,n,o=>{let a=o;return Array.isArray(a)&&a.length===1&&vx(a[0],r)})}var Yp=class{entries=new Map;head;tail;weight=0;get size(){return this.entries.size}get bytes(){return this.weight}get(t,n=false){return this.entry(t,n)?.value}entry(t,n=false){let r=this.entries.get(t);return r&&n&&r!==this.tail&&(this.unlink(r),this.linkTail(r)),r}set(t,n,r=0,o=0){let a=this.entries.get(t);if(a){this.weight+=r-a.bytes,a.value=n,a.bytes=r,a.touched=o,a!==this.tail&&(this.unlink(a),this.linkTail(a));return}let i={key:t,value:n,bytes:r,touched:o,named:-1};this.entries.set(t,i),this.weight+=r,this.linkTail(i);}delete(t){let n=this.entries.get(t);return n?(this.unlink(n),this.weight-=n.bytes,this.entries.delete(t)):false}clear(){this.entries.clear(),this.head=this.tail=void 0,this.weight=0;}oldest(){return this.head}*fromOldest(){let t=this.head;for(;t;){let n=t.next;yield t,t=n;}}*keys(){for(let t of this.entries.keys())yield t;}*values(){for(let t of this.entries.values())yield t.value;}*[Symbol.iterator](){for(let[t,n]of this.entries)yield [t,n.value];}unlink(t){t.previous?t.previous.next=t.next:this.head=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous,t.previous=t.next=void 0;}linkTail(t){t.previous=this.tail,this.tail?this.tail.next=t:this.head=t,this.tail=t;}};var dF=e=>typeof e=="object"&&e!==null,cF=e=>24+e.length*2,Xp=e=>Array.isArray(e)?32+e.length*8:0;function KV(e){return dF(e)?160+(typeof e.text=="string"?cF(e.text):0)+Xp(e.caretEdges):8}function $V(e){if(!dF(e))return 8;let t=224+Xp(e.deletedRanges)+Xp(e.anchorRevisions)+Xp(e.changeSites),{spans:n,drawings:r}=e;if(Array.isArray(n))for(let o of n)t+=KV(o);return Array.isArray(r)&&(t+=r.length*480),t}function uF(e,t){let n=160+cF(e);if(!Array.isArray(t))return n;for(let r of t)n+=$V(r);return n}var mF=new WeakMap,fF=new WeakMap;function pF(e,t){mF.set(e,t);}function bi(e){if(!e)return;let t=mF.get(e);if(!t)return;let n=fF.get(e);if(!n){let r=e.keyFor?.bind(e);n=Object.freeze({retainAcrossPasses:false,...r?{keyFor:r}:{},get:o=>t(o),set:()=>{},retain:()=>{},clear:()=>{},stats:Object.freeze({hits:0,misses:0,evictions:0,size:0})}),fF.set(e,n);}return n}var UV=new WeakMap;function gF(e,t){UV.set(e,t);}function de(e){let t="";for(let n of e)t+=`${n.length}:${n}`;return t}var Zp=new WeakMap;function Fx(e,t){if(t.length===0)return;let n=e[e.length-1];n&&n.length<64&&t.length<64?e[e.length-1]=n.concat(t):e.push(t);}function hF(e,t){if(t.length<=512){Fx(e,t);return}for(let n=0;n<t.length;n+=512)Fx(e,t.slice(n,n+512));}function Ml(e,t){let n=[];hF(n,t),Zp.set(e,n);}function yF(e,t,n,r){let o=[];for(let a of Zp.get(t)??[]){let i;for(let l=0;l<a.length;l+=1){let s=a[l];n.has(s)?i??=a.slice(0,l):i?.push(s);}Fx(o,i??a);}hF(o,Array.from(r)),Zp.set(e,o);}function bF(e){return Zp.get(e)}function Ox(){let e=[];return {begin(){e.push([]);},add(t){e.at(-1)?.push(t);},keys(){let t=e.at(-1);if(!t)throw new Error("No active table break-key collector");return t},end(){e.pop();}}}var Bl=YV__default.default();function qp(e){for(let t=0;t<e.length;t++){let n=e[t],r=n.style.shaping;if(r&&(r.level!==0||r.direction!=="ltr"||r.runDirection==="rtl"))return false;if(t>0){let o=e[t-1];if(n.box.x!==o.box.x+o.box.width)return false}}return true}var xF=new chunkPWTRJSES_cjs.mf;function Jp(e){let t=xF.get(e);if(t)return t;let n=new Map;for(let r of chunkPWTRJSES_cjs.Rf(e)){if(r.beginParagraphId===r.endParagraphId)continue;let o=chunkPWTRJSES_cjs.Qf(r);if(o)for(let a of new Set([r.beginParagraphId,...r.resultParagraphIds,r.endParagraphId])){let i=chunkPWTRJSES_cjs.Ta(e,a);if(i?.kind!=="paragraph")continue;let l=chunkPWTRJSES_cjs.jg(i),s=a===r.beginParagraphId,d=s?l.spanOf(r.beginNodeId)?.start??0:0,c=a===r.endParagraphId?l.spanOf(o.endNodeId)?.end??l.length:l.length,u={start:d,end:c,...s?{code:`{ ${r.instruction.raw} }`,sourceNodeId:r.beginNodeId}:{},suppressParagraph:!s&&d===0&&c===l.length},f=n.get(a);f?f.push(u):n.set(a,[u]);}}return xF.set(e,n),n}var ld=new WeakMap;function RF(e,t){ld.set(e,t);}function lr(e){return ld.get(e)}function Cx(e,t){let n=ld.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 vu(e,t){if(!t)return "";let n=ld.get(e);if(!n)return t(e);let r=n.map(o=>t(o.paragraph));return r.some(Boolean)?de(r):""}var SF=new WeakMap;function PF(e){let t=SF.get(e);if(t)return t;if(!e.some(r=>ld.has(r)))return e;let n=[];for(let r of e){let o=ld.get(r);if(o)for(let a of o)n.push(a.paragraph);else n.push(r);}return SF.set(e,n),n}function Ix(e){return chunkYBMWBXST_cjs.L(e).paragraph?chunkYBMWBXST_cjs.J:[]}var kF=new WeakMap,wF=new WeakMap;function Qp(e,t){return t&&kF.set(e,t),e}function Fu(e){return e?kF.get(e):void 0}function TF(e){let t=Fu(e);if(!t)return "";let n=wF.get(t);return n||(n=chunkYBMWBXST_cjs.y(chunkPWTRJSES_cjs.Ca(t)),wF.set(t,n)),n}function vF(e,t,n,r,o,a,i){if(!e?.inTableCell||t||n||r!==0)return false;let l=Tl(o,a,Number.POSITIVE_INFINITY);return l.alignment==="left"&&l.positionPt>i}function FF(e,t,n,r,o,a,i){let l=Tl(e,t,r);return i===null?l.alignment==="left"?Tl(e,t,n):l:Number.isFinite(i.positionPt)&&i.positionPt>o?i:{...Tl(e,o,a),...i.leader?{leader:i.leader}:{}}}function OF(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 Ll(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 CF(e,t){let n=new Map,r=(o,a)=>Ll(o)&&Ll(a)&&a.text.length>0&&nd(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 s=o+1;if(n.has(s))return n.get(s);let d=[],c;for(let u=s;u<e.length;u+=1){if(n.has(u)){c=n.get(u);break}let f=e[u],p=f.text.search(/\s/u),g=p<0?f.text:f.text.slice(0,p);if(!Ll(f)||!/^[\p{Script=Latin}\p{N}\p{P}]+$/u.test(g)||oo(g,true).length!==1){n.set(u,void 0);break}if(d.push({index:u,width:tt(g,Ce(f.style,f.fontSlot),t)}),p>=0){c=f.text[p]===" "?0:void 0;break}let m=e[u+1];if(!m){c=0;break}if(Ll(m)&&m.text.startsWith(" ")){c=0;break}if(!r(f,m))break}for(let u=d.length-1;u>=0;u-=1){let f=d[u];c!==void 0&&(c+=f.width),n.set(f.index,c);}return n.get(s)}}function IF(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 XV=/[^ \t\n\r\f\v\uFFFC]/u;function MF(e,t,n){let r=e.baseline,o=e.height-e.baseline;for(let i of e.spans){if(i.style.verticalAlign==="baseline"||!XV.test(i.text))continue;let l={...i.style,verticalAlign:t},s=n.lineMetrics(Ce(l,i.fontSlot),jr(i,i.text));r=Math.max(r,s.baseline),o=Math.max(o,s.height-s.baseline);}let a=r-e.baseline;return e.baseline=r,e.height=r+o,a}function ZV(e,t,n,r,o){if(t.rule!=="auto"||t.gridPitch!==void 0||t.value<=240)return e;let a=r.filter(d=>d.text&&!Ou(d.text));if(!a.some(d=>d.style.baselineShiftPt))return e;let i=0,l=0;for(let d of a){let c={...d.style,baselineShiftPt:0},u=o.lineMetrics(Ce(c,d.fontSlot),jr(d,d.text));i=Math.max(i,u.baseline),l=Math.max(l,u.height-u.baseline);}let s=Math.min(n,i+l);return s>0?{...e,height:n+s*(t.value/240-1)}:e}function BF(e,t,n,r,o){let a=ya(e,t,n);return ZV(a,e,t,r,o)}var qV=128,JV=/[\u0000-\u001F\u007F-\u009F]/,QV=32;function lo(e){return e.kind!=="textValue"}function ao(e,t){return e.attributes.find(n=>n.localName===t)?.value}function io(e,t){for(let n of e.children)if(lo(n)&&n.localName===t)return n}function Pa(e){return e===void 0||e.length===0||e.length>qV?false:!JV.test(e)&&!chunkPWTRJSES_cjs.N(e)}function eK(e){return e==="1"||e==="true"||e==="on"}function sd(e){if(e){for(let t of e.children)if(lo(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function wa(e){if(e){for(let t of e.children)if(lo(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var LF=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function El(e){return e.some(t=>LF.has(t.localName))?e.filter(t=>!LF.has(t.localName)):e}function EF(e){let t=io(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=sd(io(t,"rPrDefault")),r=wa(io(t,"pPrDefault"));return {run:El(Xe(n)),paragraph:El(Xe(r)),paragraphNode:r}}function AF(e){let t=ao(e,"styleId");if(!Pa(t))return null;let n=ao(e,"type")??"",r=io(e,"name"),o=r?ao(r,"val"):void 0,a=io(e,"basedOn"),i=a?ao(a,"val"):void 0,l=Pa(i)?i:null,s=io(e,"next"),d=s?ao(s,"val"):void 0,c=Pa(d)?d:null,u=wa(e),f=sd(e),p=new Map,g=0;for(let m of e.children){if(m.kind==="textValue"||m.localName!=="tblStylePr")continue;if(g>=QV)break;g+=1;let h=ao(m,"type");h&&!p.has(h)&&p.set(h,m);}return {styleId:t,name:o&&o.length<=128?o:void 0,type:n,basedOn:l,next:c,outlineLevel:chunk5RRAZMBU_cjs.a(e),isDefault:eK(ao(e,"default")),paragraphProperties:El(Xe(u)),runProperties:El(Xe(f)),paragraphPropertiesNode:u,tablePropertiesNode:io(e,"tblPr"),tableRowPropertiesNode:io(e,"trPr"),tableCellPropertiesNode:io(e,"tcPr"),conditionalTableFormats:p}}var eg=32;function xi(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Pa(o)?o:null;}return n}function ka(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<eg&&!(a.has(i)||!Pa(i));){a.add(i);let s=e.styles.get(i);if(!s)break;o.push(s),i=s.basedOn,l+=1;}return o.reverse()}var NF=new WeakMap;function DF(e,t,n,r){if(n.length===0)return r(t);let o=r(fi([{properties:t,role:"carried",emit:true},{properties:n,role:"direct",emit:true}])),a=xi(n,"rStyle"),i=a?ka(e,a,"character").flatMap(s=>s.runProperties):[];if(i.length===0)return o;let l=r(fi([{properties:t,role:"carried",emit:true},{properties:i,role:"xor",emit:true},{properties:n,role:"direct",emit:true}]));return NF.set(l,o),l}function tg(e){return NF.get(e)??e}var Si=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}:{}});var _F=String.raw`[\S\u00a0\u2007\u202f]`,tK=/^[\S\u2007\u202f]* $/u,nK=new RegExp(`^${_F}+ $`,"u"),rK=new RegExp(`^${_F}+$`,"u");function HF(e){for(let t=e.length-1;t>=0;t-=1)if(e[t].text.includes(" "))return t+1;return 0}function ng(e,t){if(!e.style.shaping&&!/^[\p{Script=Latin}\p{N}\p{P} \u2007\u202f]*$/u.test(e.text)||e.lineEndWhitespace||!tK.test(e.text)||e.equation)return 0;let n=Ce(e.style,e.fontSlot),r=Math.max(0,e.box.width-tt(e.text.slice(0,-1),n,t)),o=r*.75;return r-o}function jF(e,t,n,r,o,a,i=e.length,l=o,s=false,d=0){let c=nK.test(t);if(!(c||s&&rK.test(t))||e.some(P=>P.wrapAdvanceBefore||P.equation))return false;let u=HF(e),f=tt(c?t.slice(0,-1):t,n,r),p=o+f+d-a,g=e.slice(u).reduce((P,S)=>P+ng(S,r),0);if(p<=0||p>g+.001)return false;let m=g*4,h=e.slice(u,Math.max(u,Math.min(i,e.length))),y=h.length?ng(h[h.length-1],r)*4:0,b=h.reduce((P,S)=>P+ng(S,r)*4,0)-y;if(b<=0)return false;let x=1+Math.max(0,a-l+y)/b,R=m/(m-p);return x>1.5||1+(x-1)/1.7>=R}function WF(e){let t=0,n=0;for(let r=e.length-1;r>=0;r-=1){let o=e[r];if(!Ll(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 zF(e){return e!==void 0&&e.text[0]===" "&&!e.projected&&!e.positionalTab&&e.measureText===void 0&&e.end-e.start===e.text.length}function GF(e,t,n,r=e.length-1){let o=HF(e),a=e.map((d,c)=>c>=o&&c<r?ng(d,n):0);if(t<=0||t>a.reduce((d,c)=>d+c,0)+.001)return e;let i=a.map(()=>0),l=t;for(let d=0;d<a.length&&l>.001;d++){let c=a.map((f,p)=>f-i[p]>.001?p:-1).filter(f=>f>=0);if(!c.length)break;let u=l/c.length;for(let f of c){let p=Math.min(u,a[f]-i[f]);i[f]+=p,l-=p;}}let s=0;return e.map((d,c)=>{let u=i[c],f=s||u?{...d,box:{...d.box,x:d.box.x-s,width:d.box.width-u},...u?{style:{...d.style,shaping:{script:"Latn",direction:"ltr",level:0,baseLevel:0,...d.style.shaping,wordSpacingPt:(d.style.shaping?.wordSpacingPt??0)-u}}}:{}}:d;return s+=u,f})}var VF=new chunkPWTRJSES_cjs.mf;function $F(e){let t=VF.get(e);if(t)return t;let n=new Map;for(let r of chunkPWTRJSES_cjs.Rf(e)){let o=chunkPWTRJSES_cjs.Qf(r);if(o)for(let a of new Set([o.separateParagraphId,...r.resultParagraphIds,r.endParagraphId])){let i=chunkPWTRJSES_cjs.Ta(e,a);if(i?.kind!=="paragraph")continue;let l=chunkPWTRJSES_cjs.jg(i),s=r.beginParagraphId===r.endParagraphId?l.spanOf(r.beginNodeId):void 0,d=s?.start??(a===o.separateParagraphId?l.spanOf(o.separateNodeId)?.end:0),c=s?.end??(a===r.endParagraphId?l.spanOf(o.endNodeId)?.start:l.length);if(d===void 0||c===void 0||c<=d)continue;let u=n.get(a)??[];u.push({start:d,end:c}),n.set(a,u);}}return VF.set(e,n),n}function UF(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 KF=new WeakMap;function YF(e){if(e.size===0)return "";let t=KF.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=chunkYBMWBXST_cjs.z(de(n));return KF.set(e,r),r}function rg(e){return /^[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]+$/u.test(e)}function oK(e){let t="",n=[];for(let r of e){let o=n.every(Boolean);if(chunkPWTRJSES_cjs.sf(r,"begin")){if(n.length>=chunkPWTRJSES_cjs.Gf)return null;o&&(t+="{"),n.push(true);}else if(chunkPWTRJSES_cjs.sf(r,"separate"))n.length&&(n[n.length-1]=false);else if(chunkPWTRJSES_cjs.sf(r,"end"))n.pop(),n.every(Boolean)&&(t+="}");else if(o&&chunkPWTRJSES_cjs.vf(r))t+=`{${chunkPWTRJSES_cjs.xf(r)??""}}`;else if(o&&chunkPWTRJSES_cjs.tf(r)&&r.kind!=="textValue")for(let a of r.children)a.kind==="textValue"&&(t+=a.value);if(t.length>chunkPWTRJSES_cjs.Ff)return null}return t||null}function XF(e,t,n,r,o,a,i,l=[]){if(e.kind!=="paragraph")return [...t];let s=chunkPWTRJSES_cjs.Hf(e);if(s.length===0&&l.length===0)return [...t];let d=[];if(!chunkPWTRJSES_cjs.Ef(e,d,{left:4096}))return [...t];let c=chunkPWTRJSES_cjs.jg(e),u=new Map,f=new Map,p=(m,h,y)=>{if(m.kind==="textValue"||y>64)return;let b=En(m)?ar(h,Vn(m)):h;f.set(m.id,b),m.kind==="run"&&u.set(m.id,m);for(let x of m.children)p(x,b,y+1);};p(e,[],0);let g=[...t];for(let m of s){let h=new Set(m.removeNodeIds),y=d.filter(C=>h.has(C.node.id)&&Ye(f.get(C.node.id)??[],a,i)).map(C=>C.node),b=oK(y),x=c.spanOf(m.node);if(!b||!x)continue;let R=m.addressing==="atomic"?x.start+1:x.end;if(m.addressing!=="atomic")for(let C of y)R=Math.max(R,c.spanOf(C)?.end??R);let P=t.find(C=>C.start>=x.start&&C.end<=R&&C.fieldAtom),S=f.get(m.node.id)??[];if(!Ye(S,a,i))continue;let w=u.get(m.formatRunIds[0]??m.runId),F=P?.props??(w?Ra(w,n,r):n),T=P?.style??je(F,o);if(T.hidden)continue;let v={text:b,props:F,style:T,start:x.start,end:R,projected:true,fieldAtom:{formField:false},...S.length?{revisions:S}:{}};g=g.filter(C=>!(C.start>=x.start&&C.end<=R&&(C.end>C.start||C.fieldAtom))),g.push(v);}for(let m of l)if(g=g.filter(h=>h.end<=m.start||h.start>=m.end),m.code){let h=m.sourceNodeId?f.get(m.sourceNodeId)??[]:[];if(!Ye(h,a,i))continue;let y=d.find(P=>P.node.id===m.sourceNodeId),b=y&&u.get(y.runId),x=b?Ra(b,n,r):n,R=je(x,o);if(R.hidden)continue;g.push({text:m.code,props:x,style:R,...h.length?{revisions:h}:{},start:m.start,end:m.end,projected:true,fieldAtom:{formField:false}});}return g.sort((m,h)=>m.start-h.start)}var aK=["ascii","asciiTheme","hAnsi","hAnsiTheme"];function ZF(e,t){let n=(t?chunkYBMWBXST_cjs.Ba(e?.hAnsiTheme,t):null)??e?.hAnsi;return n&&n.length<=128?n:void 0}function iK(e,t){let n,r,o=false,a=false;for(let i of e){let l=i.attributes;if(i.localName===$s){r=ZF(l,t)??r;continue}i.localName==="rFonts"&&(o||=aK.some(s=>l?.[s]!==void 0),!(l?.hAnsi===void 0&&l?.hAnsiTheme===void 0)&&(a=true,n=ZF(l,t)??n));}return n??(o&&!a?r:void 0)}function lK(e,t){return !(e<128||e>65535||e>=1424&&e<=1983||e>=64285&&e<=65023||e>=65136&&e<=65278||e>=4352&&e<=4607||e>=12032&&e<=12255||e>=12272&&e<=19903||e>=19968&&e<=40959||e>=40960&&e<=42191||e>=44032&&e<=57343||e>=63744&&e<=64255||e>=65072&&e<=65135||e>=65280&&e<=65519||t&&(Qb(e)||e>=688&&e<=975||e>=1024&&e<=1279||e>=8192&&e<=10175||e>=11904&&e<=12031||e>=57344&&e<=63743||e>=64256&&e<=64284))}function qF(e,t){let n=d=>!d.style.latinLane&&d.fontSlot!=="eastAsia"&&!chunkPWTRJSES_cjs.b(d.style.fontFamily)&&!d.positionalTab&&!d.breakKind&&!d.inlineDrawing&&!d.anchoredAtom&&!d.equation;if(!e.some(d=>n(d)&&/[^\u0000-\u007f]/.test(d.text)))return e;let r=0,o=[],a=e.map(d=>{let c=n(d),u=c&&d.text?d.text:"\0",f=r;return r+=u.length,o.push(u),{from:f,to:r,eligible:c,family:iK(d.props,t),hint:mp(d.props)}});if(!a.some(d=>d.eligible&&d.family)||!a.some((d,c)=>d.eligible&&d.family&&(d.family!==e[c].style.fontFamily||c>0&&/^[\p{Mark}\u200d]/u.test(e[c].text))))return e;let i=e.map(()=>[]),l=0;for(let d of xt(o.join(""))){for(;l<a.length&&a[l].to<=d.utf16From;)l++;let c=a[l];if(!c||!c.eligible)continue;let u=lK(d.text.codePointAt(0),c.hint)?c.family:void 0;for(let f=l;f<a.length&&a[f].from<d.utf16To;f++){let p=a[f];if(!p.eligible)continue;let g=Math.max(d.utf16From,p.from)-p.from,m=Math.min(d.utf16To,p.to)-p.from,h=i[f],y=h.at(-1);y&&y.family===u&&y.to===g?y.to=m:h.push({from:g,to:m,family:u});}}let s;for(let d=0;d<e.length;d++){let c=e[d],u=i[d],f=!c.projected&&!c.fieldAtom&&!c.noteNav&&c.measureText===void 0&&c.end-c.start===c.text.length,p=c.projected===true&&c.fieldAtom!=null&&!c.noteNav&&c.measureText===void 0;if(!u.some(g=>g.family&&g.family!==c.style.fontFamily)||!f&&!p&&u.length!==1){s?.push(c);continue}if(s??=e.slice(0,d),!f&&!p){s.push({...c,style:mi(c.style,u[0].family),fontSlot:"hAnsi"});continue}for(let g of u)s.push({...c,text:c.text.slice(g.from,g.to),...f?{start:c.start+g.from,end:c.start+g.to}:{},...g.family?{style:mi(c.style,g.family),fontSlot:"hAnsi"}:{}});}return s??e}function Mx(e,t,n){let r=n.showFieldCodes?XF(e,t,n.inheritedRunProperties,n.cascadeRuns,n.themeFonts,n.displayMode,n.authorFilter,n.fieldCodeRanges):n.projectMarkup===false?t:Kv(t,e,n.displayMode,n.authorFilter,n.changeSites);return qF(Gv(r,n.themeFonts),n.themeFonts)}function og(e,t){let n=Math.max(1,t.contentRight-t.contentLeft),r=Object.freeze({x:t.contentLeft,y:t.lineY,width:n,height:14}),o=t.cellBox!=null;return Cu(e,{pageNumber:1,pageWidth:t.contentRight+t.contentLeft+n,pageHeight:792,marginLeft:t.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:n,contentHeight:648,contentBandHeight:648,paragraphBox:r,anchorLineBox:r,anchorCharacterX:t.contentLeft,columnBox:r,cellBox:o?t.cellBox:null,layoutInCell:o,ownerPartName:t.ownerPartName,storyKind:"body",...t.frameBase})}function Ex(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 Lx(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 Iu(e,t,n){return Object.freeze({...e,x:e.x+t,y:e.y+n})}function Bx(e,t,n){return Object.freeze({x:e.x+t,y:e.y+n})}function Mu(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:Iu(e.paintBounds,t,n),hitBounds:Iu(e.hitBounds,t,n),geometry:Object.freeze({...r,contentBounds:Iu(r.contentBounds,t,n),paintBounds:Iu(r.paintBounds,t,n),hitBounds:Iu(r.hitBounds,t,n),transformedCorners:r.transformedCorners.map(o=>Bx(o,t,n)),...r.imageTransformCorners?{imageTransformCorners:r.imageTransformCorners.map(o=>Bx(o,t,n))}:{},clipPolygon:r.clipPolygon?r.clipPolygon.map(o=>Bx(o,t,n)):null})})}function Ax(e,t){return Mu(e,0,t)}function sK(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 s=o.x+l;if(s<-1e-3||s+o.width>r+.001)continue;let d=Mu(e,l,0);if(!n.some(c=>Lx(c.paintBounds,d.paintBounds)))return d}return null}function JF(e,t){let n=t.maxAttempts??256,r=[...e].sort(Ex),o=[],a=[],i=[];for(let l of r){if(l.allowOverlap){o.push(l);continue}let s=l,d=0;for(;d<n;){let f=o.find(m=>Lx(m.paintBounds,s.paintBounds));if(!f)break;let p=t.contentWidth===void 0?null:sK(s,f,o,t.contentWidth);if(p){s=p;break}let g=f.paintBounds.y+f.paintBounds.height-s.paintBounds.y+.001;s=Ax(s,g),d+=1;}let c=o.some(f=>Lx(f.paintBounds,s.paintBounds)),u=s!==l&&s.paintBounds.y+s.paintBounds.height>t.contentHeight+.001;if(c||u){s.x!==l.x&&(s=Mu(s,l.x-s.x,0)),a.push(s),i.push(s.drawingNodeId);continue}o.push(s);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}var tO=8;function QF(e,t,n,r){return e<r-eO&&t>n+eO}var eO=.01;function so(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,s=l+i.verticalBand.height;QF(e-r,e+t,l,s)&&(a=Math.max(a,s));}a>-1/0&&(o=Math.max(0,a+r-e));}for(let a=0;a<tO;a+=1){let i=e+o,l=i+t,s=i,d=false;for(let u of n){if(u.input.mode!=="topAndBottom")continue;let f=u.verticalBand.y,p=f+u.verticalBand.height;QF(i,l,f,p)&&(d=true,s=Math.max(s,p));}if(!d)break;let c=s-e;if(c<=o+.001)break;o=c;}return o}function Nx(e,t,n,r){if(e=Math.max(0,e-(r.anchorClearanceBefore??0)),!n||e<=.001)return 0;let o=so(t,n.box.height,r.inheritedZones,r.spaceAbove);return Math.max(0,e-o)}function nO(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 Dx(e,t,n,r){let o=so(e,t,r.withOwn,n),a=so(e,t,r.inherited,n);return Math.max(0,o-a)}var Hx=8,Al=16,jo=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function dd(e){let t=e.furnitureSource;return t?`${t.partName}\0${t.kind}\0${t.nodeId}`:e.drawingNodeId}function dK(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],s=l+t.columnWidths[i];if(r>=l-.001&&r<s+.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),s=l+a;if(r>=l-.001&&r<s+.001)return i}return n-1}function _x(e){return e.behindDocument?"behind":"inFront"}function ag(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function cK(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 uK(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function Bu(e){let t=cK(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 eF({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"?uK(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Nl(e){if(e.mode==="topAndBottom"||e.mode==="square")return ku(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 ig(e){return e!=="paragraph"&&e!=="line"}function Lu(e){if(!ag(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=Bu({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,...ig(e.drawing.verticalFrame)?{pageFramedBand:true}:{},sourceOrder:e.sourceOrder,paintLayer:_x(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:Nl(n),input:n}):null}function fK(e,t){let n=_x(e),r=_x(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:Ex(e,t)}function aO(e){return Object.freeze([...e].sort(fK))}function Wr(e,t,n,r,o=0){let a=[{start:n,end:r}],i=false;for(let l of t){let s=l.verticalBand,d=l.input.mode==="square"&&o>0;if(e>=s.y+s.height||(d?e+o<=s.y+.001:e<s.y))continue;let c=d?Math.max(e,s.y):e,u=Qv(c,l.input);l.sourceKind==="table"&&!u.some(p=>p.start<=n&&p.end>=r)&&(i=true);let f=[];for(let p of a)for(let g of u){let m=Math.max(p.start,g.start),h=Math.min(p.end,g.end);h>m+1e-6&&f.push(Object.freeze({start:m,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 iO(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 mK(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function Eu(e,t){let n=mK(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 pK(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 jx(e,t){return Object.freeze({...e,layoutFallback:t})}function Ri(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({...pK(i,-t,-n),contentLeft:r?.left??i.contentLeft-t,contentRight:r?.right??i.contentRight-t})})}))}function lO(e,t,n){return Object.freeze(e.filter(r=>{if(r.sourceKind==="furniture"||r.earlierSection)return true;let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}var rO=new WeakMap;function gK(e,t){if(!e.textboxStory?.noWrap||!t)return e;let n=rO.get(t);n||(n=new WeakMap,rO.set(t,n));let r=n.get(e);return r||(r=$p(e,t(e)),n.set(e,r)),r}function lg(e){let t=at(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Tn(e.paragraph),r=e.displayMode??Ue,o=[];for(let a of t){if(!Ye(a.revisions,r,e.revisionAuthorFilter)||_o(a.revisions,r,e.revisionAuthorFilter)||Sx(a.projection,e)||!ag(a.projection.wrap)||a.projection.wrap==="topAndBottom")continue;let i=n.get(a.atomId);if(i===void 0)continue;let l=e.anchorLineTopByModelStart.get(i);if(l===void 0)continue;let s=gK(a.projection,e.layoutTextboxStory),d=og(s,{...e.frameBase?{frameBase:e.frameBase}:{},contentLeft:e.contentLeft,contentRight:e.contentRight,lineY:e.frameBase?e.paragraphStartY+l:l,ownerPartName:e.drawingLayout.ownerPartName,cellBox:e.anchorCellBox??null}),c=e.frameBase?d.y:e.paragraphStartY+l,u=dr(s),f=yi({projection:s,anchorX:d.x,anchorY:c,extentWidth:u.width,extentHeight:u.height}),p=Bu({projection:s,geometry:f,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:d.x,anchorY:c});p&&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:0,y:c,verticalBand:Nl(p),input:p}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function sg(e){let t=at(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=Tn(e.paragraph),r=e.displayMode??Ue,o=[];for(let a of t){if(!Ye(a.revisions,r,e.revisionAuthorFilter)||_o(a.revisions,r,e.revisionAuthorFilter)||a.projection.wrap!=="topAndBottom"||e.cellAnchorScope?.rowsClearOutOfCellFloats&&Sx(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 s=hK(a.projection,e),d=s??nO(e.paragraphStartY+l,a.projection.position?.vertical??null),c=dr(a.projection),u=yi({projection:a.projection,anchorX:e.contentLeft,anchorY:d,extentWidth:c.width,extentHeight:c.height}),f=Bu({projection:a.projection,geometry:u,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:d});f&&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,...s!==null?{pageFramedBand:true}:{},y:d,verticalBand:Nl(f),input:f}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function hK(e,t){let n=e.position?.vertical;if(!t.frameBase||t.anchorCellBox!=null||!n||!ig(n.relativeFrom)||e.anchor?.simplePos)return null;let r=Object.freeze({x:t.contentLeft,y:0,width:Math.max(1,t.contentRight-t.contentLeft),height:0}),o=Cu(e,{...t.frameBase,paragraphBox:r,anchorLineBox:r,anchorCharacterX:t.contentLeft,columnBox:r,cellBox:null,layoutInCell:false});return o.layoutFallback?null:o.y}function yK(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function bK(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,t){if(e.length===0)return "";let n=e.map(r=>{let o=r.verticalBand,a=r.y+r.input.contentBounds.height/2,i=Wr(a,[r],r.input.contentLeft,r.input.contentRight);return [dd(r),`${r.sourceKind??""}${r.earlierSection?"+earlier":""}`,String(r.sourceOrder),String(r.columnIndex),r.y.toFixed(3),o.x.toFixed(3),o.y.toFixed(3),o.width.toFixed(3),o.height.toFixed(3),bK(r.input),yK(i)].join("|")}).join(`
|
|
2
|
+
`);return t===void 0?n:`${n}
|
|
3
|
+
bottom:${t.toFixed(3)}`}function Au(e,t,n,r,o,a){let i=[];for(let l of e){let s=t.projectionForAtom?.(l.drawingNodeId);if(!s)continue;let d=l.sourceOrder??o?.(l.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?dK(l,a):0,u=Lu({drawing:l,projection:s,sourceOrder:d,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((l,s)=>l.sourceOrder-s.sourceOrder),Object.freeze(i)}function Wx(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 s=l.anchoredDrawings??[],d=Au(s,t,0,n,r,a);d.length>0&&i.set(l.index,d);}return i}var oO=new WeakMap;function SK(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function sO(e,t,n,r,o,a){let i=SK(a),l=oO.get(e);if(l&&l.drawingLayout===t&&l.drawingLayoutEpoch===n&&l.contentWidth===r&&l.drawingSourceOrder===o&&l.columnToken===i)return l.zones;let s=Wx(e,t,r,o?d=>{let c=t.projectionForAtom?.(d)?.drawingNodeId??d;return o.get(c)}:void 0,a);return oO.set(e,{drawingLayout:t,drawingLayoutEpoch:n,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:s}),s}function dg(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 zx(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${sr(n)}`).join(`
|
|
4
|
+
`)}var Wo=.001;function dO(e){if(!(e.localName!=="br"||chunkPWTRJSES_cjs.nb(e)!=="line"))for(let t of e.attributes){if(t.namespaceUri!==chunkPWTRJSES_cjs.la||t.localName!=="clear")continue;let n=t.value;return n==="left"||n==="right"||n==="all"?n:void 0}}function cO(e){let t=[e];for(;t.length>0;){let n=t.pop();if(n.kind==="hardBreak"){if(dO(n))return true;continue}if("children"in n)for(let r of n.children)t.push(r);}return false}function uO(e){let t=dO(e);return {breakKind:chunkPWTRJSES_cjs.nb(e),...t?{breakClear:t}:{}}}function fO(e){return e?.breakKind?{breakKind:e.breakKind,...e.breakClear?{breakClear:e.breakClear}:{}}:{}}function RK(e,t){let n=Wr(t.y,[e],t.left,t.right,t.height),r=[],o=t.left;for(let a of n)a.start>o+Wo&&r.push({start:o,end:a.start}),o=Math.max(o,a.end);return t.right>o+Wo&&r.push({start:o,end:t.right}),r}function PK(e,t,n){if(e==="all"||t.length===0)return t;let r=Wr(n.y,t,n.left,n.right,n.height),o=Eu(n.penX,r)?.x??n.penX;return t.filter(a=>RK(a,n).some(i=>e==="left"?i.start<=n.left+Wo:i.end>o+Wo))}var mO=new WeakSet;function pO(e,t,n){if(e==="all")return o=>o;let r=new Set(PK(e,t,n).map(dd));return o=>r.size===0?[]:o.filter(a=>r.has(dd(a)))}function gO(e,t,n,r,o){if(n.length===0||!(o>r))return 0;let a=Math.max(t,Wo),i=n.filter(s=>{let d=s.verticalBand;if(!(d.height>Wo))return false;if(mO.has(s))return true;let c=Wr(d.y,[s],r,o,d.height);return !(c.length===1&&c[0].start<=r+Wo&&c[0].end>=o-Wo)}).sort((s,d)=>s.verticalBand.y-d.verticalBand.y),l=e;for(let s of i){if(s.verticalBand.y>=l+a-Wo)break;let d=s.verticalBand.y+s.verticalBand.height;d>l+Wo&&(l=d);}return l-e}function hO(e){let t=at(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=Tn(e.paragraph),r=[];for(let o of t){let{projection:a}=o,i=a.position?.vertical;if(!i||i.relativeFrom!=="paragraph"||i.align!==null||a.anchor?.simplePos||!Ye(o.revisions,e.displayMode,e.revisionAuthorFilter)||_o(o.revisions,e.displayMode,e.revisionAuthorFilter))continue;let l=n.get(o.atomId),s=_r(i.offsetEmu??0);if(l===void 0||s===null)continue;let d=e.paragraphTop+s,c=e.frameBase?og(a,{frameBase:e.frameBase,contentLeft:e.contentLeft,contentRight:e.contentRight,lineY:e.paragraphTop,ownerPartName:e.drawingLayout.ownerPartName}).x:e.contentLeft,u=dr(a),f=yi({projection:a,anchorX:c,anchorY:d,extentWidth:u.width,extentHeight:u.height}),p=Bu({projection:a,geometry:f,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:c,anchorY:d});if(!p)continue;let g=Object.freeze({drawingNodeId:o.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:l,sourceOrder:0,paintLayer:a.anchor?.behindDocument?"behind":"inFront",relativeHeight:a.anchor?.relativeHeight??0,allowOverlap:a.anchor?.allowOverlap??true,columnIndex:0,y:d,verticalBand:Nl(p),input:p});e.frameBase||mO.add(g),r.push(g);}return r}function yO(e,t){if(t.length===0)return e;let n=new Set(e.map(dd)),r=t.filter(o=>!n.has(dd(o)));return r.length===0?e:[...e,...r]}var wK=["","\u05D0","\u05D1","\u05D2","\u05D3","\u05D4","\u05D5","\u05D6","\u05D7","\u05D8"],kK=["","\u05D9","\u05DB","\u05DC","\u05DE","\u05E0","\u05E1","\u05E2","\u05E4","\u05E6"],TK=["","\u05E7","\u05E8","\u05E9"],vK="\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DB\u05DC\u05DE\u05E0\u05E1\u05E2\u05E4\u05E6\u05E7\u05E8\u05E9\u05EA",FK="\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",OK="\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",CK="\u0966\u0967\u0968\u0969\u096A\u096B\u096C\u096D\u096E\u096F";function Gx(e){return e<1?0:(e-1)%392+1}function bO(e){let t=Gx(e);if(t===0)return String(e);let n=TK[Math.floor(t/100)],r=t%100;return r===15?`${n}\u05D8\u05D5`:r===16?`${n}\u05D8\u05D6`:n+kK[Math.floor(r/10)]+wK[r%10]}function xO(e){let t=Gx(e);if(t===0)return String(e);let n=[...vK];return "\u200F"+n[n.length-1].repeat(Math.floor((t-1)/n.length))+n[(t-1)%n.length]}function SO(e,t,n){let r=Gx(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 RO(e){return SO(e,FK,true)}function PO(e){return SO(e,OK,false)}function wO(e){return e.replace(/[0-9]/g,t=>CK[Number(t)])}var ug=64,kO=64,IK=[{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 zr(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function co(e){return String(zr(e))}function MK(e){let t=zr(e);return t<10?`0${t}`:String(t)}function TO(e){let t=zr(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of IK)for(;t>=r;)if(n+=o,t-=r,n.length>=ug)return n.slice(0,ug);return n||"I"}function BK(e){return TO(e).toLowerCase()}function vO(e){let t=zr(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 LK(e){return vO(e).toLowerCase()}function EK(e){let t=zr(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 AK(e){return zr(e).toString(16).toUpperCase()}function NK(e){let t=["*","\u2020","\u2021","\xA7"],n=zr(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,DK);return t[r].repeat(o)}var DK=8,cg=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],_K=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function fg(e){let t=zr(e);if(t<20)return cg[t];if(t<100){let r=t%10;return _K[Math.floor(t/10)]+(r===0?"":`-${cg[r]}`)}if(t<1e3){let r=t%100;return `${cg[Math.floor(t/100)]} hundred${r===0?"":` ${fg(r)}`}`}let n=t%1e3;return `${cg[Math.floor(t/1e3)]} thousand${n===0?"":` ${fg(n)}`}`}function FO(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function HK(e){return FO(fg(e))}var jK=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function WK(e){let t=jK.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function zK(e){let t=fg(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return FO(r+WK(t.slice(n+1)))}function zo(e,t){switch(e){case "decimal":return co(t);case "decimalZero":return MK(t);case "upperRoman":return TO(t);case "lowerRoman":return BK(t);case "upperLetter":return vO(t);case "lowerLetter":return LK(t);case "ordinal":return EK(t);case "cardinalText":return HK(t);case "ordinalText":return zK(t);case "hex":return AK(t);case "chicago":return NK(t);case "numberInDash":return `- ${co(t)} -`;case "hebrew1":return bO(zr(t));case "hebrew2":return xO(zr(t));case "arabicAlpha":return RO(zr(t));case "arabicAbjad":return PO(zr(t));case "hindiNumbers":return wO(co(t));case "none":case "bullet":return "";default:return co(t)}}function Vx(e,t,n){let r=e.length>kO?e.slice(0,kO):e,o="";for(let a=0;a<r.length&&!(o.length>=ug);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let l=r[a+1];if(l>="1"&&l<="9"){let s=Number(l)-1,d=n[s]??"decimal",c=t[s]??1,u=d==="bullet"?"":zo(d,c);for(let f of u){if(o.length>=ug)break;o+=f;}a+=1;continue}}o+=i;}return o}var OO="Error! Number cannot be represented in specified format.",GK=32767,VK=780;function KK(e){if(!/^[A-Za-z]+$/.test(e))return null;let t=e[0]===e[0].toUpperCase();switch(e.toUpperCase()){case "MERGEFORMAT":case "CHARFORMAT":return "inert";case "ARABIC":return "decimal";case "ARABICDASH":return "numberInDash";case "ROMAN":return t?"upperRoman":"lowerRoman";case "ALPHABETIC":return t?"upperLetter":"lowerLetter";default:return null}}function $K(e,t,n){if(e[t]==='"'){let o=e.indexOf('"',t+1);return o<0?null:{value:e.slice(t+1,o),end:o+1,quoted:true}}let r=t;for(;r<e.length;){let o=e[r];if(o==="\\"||o===" "&&!n)break;if(o==='"')return null;r+=1;}return {value:e.slice(t,r).trim(),end:r,quoted:false}}function CO(e){let t=0;for(;t<e.length&&e[t]!==" ";)t+=1;let n=e.slice(0,t).toUpperCase();if(n.length===0||n.includes("\\"))return null;let r,o=false,a=false,i;for(;t<e.length;){if(e[t]===" "){t+=1;continue}if(e[t]!=="\\")return null;let l=e[t+1];if(l!=="#"&&l!=="*")return null;for(t+=2;e[t]===" ";)t+=1;let s=$K(e,t,l==="#");if(s===null)return null;if(t=s.end,l==="#"){if(o||a||s.value.length===0&&!s.quoted)return null;o=true,s.value.length>0&&(r=s.value);continue}if(s.value.length===0)return null;let d=KK(s.value);if(d===null)return null;a=true,d!=="inert"&&(i=d);}return i!==void 0?{keyword:n,numberFormat:i}:r===void 0?{keyword:n}:{keyword:n,picture:r}}var UK=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM"],YK=["","X","XX","XXX","XL","L","LX","LXX","LXXX","XC"],XK=["","I","II","III","IV","V","VI","VII","VIII","IX"];function ZK(e){return UK[Math.floor(e/100)]+YK[Math.floor(e/10)%10]+XK[e%10]}var qK=new Set(["decimal","lowerRoman","upperRoman","lowerLetter","upperLetter","numberInDash"]);function IO(e){return qK.has(e)}function mg(e,t){if(!Number.isFinite(e)||e<0)return "";let n=Math.floor(e);switch(t){case "decimal":return co(n);case "numberInDash":return `- ${co(n)} -`;case "upperRoman":case "lowerRoman":{if(n===0)return " ";if(n>GK)return OO;let r="M".repeat(Math.floor(n/1e3))+ZK(n%1e3);return t==="upperRoman"?r:r.toLowerCase()}case "upperLetter":case "lowerLetter":{if(n===0)return " ";if(n>VK)return OO;let o=String.fromCharCode(65+(n-1)%26).repeat(Math.floor((n-1)/26)+1);return t==="upperLetter"?o:o.toLowerCase()}}}var ud=4096,Yt=64,Yx=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),JK=/\s*\\\*\s*MERGEFORMAT\s*$/i;function Dl(e){if(e.length>chunkPWTRJSES_cjs.Ff)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkPWTRJSES_cjs.Ff?null:t.replace(JK,"").trim()}function QK(e){if(e.length>chunkPWTRJSES_cjs.Ff)return null;let t=e.replace(/\s+/g," ").trim();return t.length>chunkPWTRJSES_cjs.Ff?null:CO(t)}function cd(e){let t=QK(e);if(t===null)return null;let{keyword:n,...r}=t;return n!=="PAGE"&&n!=="NUMPAGES"&&n!=="SECTIONPAGES"?null:{kind:n,...r}}function va(e){return cd(e)?.kind??null}function gn(e,t){return chunkPWTRJSES_cjs.sf(e,t)}function Ta(e){return chunkPWTRJSES_cjs.tf(e)}function Fa(){return {nodes:0,exhausted:false}}function Xt(e){return e.exhausted?false:(e.nodes+=1,e.nodes>ud?(e.exhausted=true,false):true)}function _l(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function Nu(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 fd(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function e2(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Hl(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>chunkPWTRJSES_cjs.Gf?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function md(e){return e.nesting<2||e.nesting>chunkPWTRJSES_cjs.Gf?null:e.inner[e.nesting-2]??null}function MO(e){if(e.nesting===1)return e.phase==="instruction";let t=md(e);return t!==null&&!t.separated}function $x(e,t){if(!MO(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=md(e);return t?!n.deletedOverflow:!n.overflow}function BO(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=md(e);t&&(t.sawLive=true);}function Ux(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=md(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function Kx(e){Ux(e,false),Ux(e,true);}function t2(e,t,n=false){if(!$x(e,n))return;let r=md(e);n||BO(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkPWTRJSES_cjs.Ff){Ux(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function jl(e,t,n,r){if(!MO(e))return;let o=chunkPWTRJSES_cjs.uf(t);if(o||BO(e),!$x(e,o))return;if(r>Yt){Kx(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(!Xt(n)){Kx(e);return}if(l.depth>Yt){Kx(e);return}if(l.node.kind==="textValue"){if(t2(e,l.node.value,o),!$x(e,o))return;continue}let s=l.node.children??[];for(let d=s.length-1;d>=0;d-=1)a.push({node:s[d],depth:l.depth+1});}}function Wl(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=fd(e);return r.overflow?null:cd(r.instruction)}let t=md(e);if(!t||t.separated)return null;t.separated=true;let n=e2(t);return n.overflow?null:cd(n.instruction)}function zl(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Nu(e);}function LO(e){return e.phase==="result"&&e.nesting>=1}function Xx(e){let t=false,n=false,r=false,o=Fa(),a=_l(),i=()=>t&&n&&r,l=p=>{p==="PAGE"?t=true:p==="NUMPAGES"?n=true:r=true;},s=false,d=[],c=(p,g)=>{if(p.kind!=="runProperties"){if(gn(p,"begin")){Hl(a),a.nestingOverflow&&(s=true);return}if(Ta(p)){jl(a,p,o,g);return}if(gn(p,"separate")){let m=a.nesting,h=a.phase,y=Wl(a);if(s)return;y&&(m<=1||h==="result")&&d.push(y.kind);return}if(gn(p,"end")&&(zl(a),a.nesting===0)){if(!s)for(let m of d)l(m);d.length=0;}}},u=(p,g)=>{if(p.kind==="run")for(let m of p.children){if(!Xt(o))return;if(c(m,g+1),(m.kind==="drawing"||m.kind==="generic")&&!Ta(m)&&"children"in m&&m.children.length>0){let h={...a,inner:a.inner.map(x=>({...x}))},y=s,b=d;d=[],f(m,g+1),Object.assign(a,h),s=y,d=b;}if(i()||o.exhausted)return}},f=(p,g)=>{if(!i()&&Xt(o)&&!(g>Yt)&&p.kind!=="textValue"){if(p.kind==="paragraph"){Nu(a),s=false,d.length=0;for(let m of p.children)if(f(m,g+1),i()||o.exhausted)return;Nu(a),s=false,d.length=0;return}if(p.kind==="run"){u(p,g);return}if(chunkPWTRJSES_cjs.vf(p)){let m=va(chunkPWTRJSES_cjs.xf(p)??"");if(m){l(m);return}}for(let m of p.children)if(f(m,g+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?Yx:{hasPage:t,hasNumPages:n,hasSectionPages:r}}function pd(e){if(e.nesting<1)return false;if(e.phase==="instruction")return true;let t=Math.min(e.nesting,chunkPWTRJSES_cjs.Gf)-1;for(let n=0;n<t;n+=1)if(e.inner[n]?.separated!==true)return true;return false}function Du(e){if(e.length>chunkPWTRJSES_cjs.Ff)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 pg(e,t){return e?t?.characterStyleValues?.get(e.key):void 0}function EO(e){let t=new Map,n=0,r="",o=i=>{let l=Du(i);l&&t.size<128&&t.set(l.key,l);},a=(i,l)=>{if(!(++n>ud||l>Yt)&&i.kind!=="textValue"){if(i.localName==="fldSimple"&&o(i.attributes.find(s=>s.localName==="instr")?.value??""),i.localName==="fldChar"){let s=i.attributes.find(d=>d.localName==="fldCharType")?.value;s==="begin"?r="":(s==="separate"||s==="end")&&(o(r),r="");}if(i.localName==="instrText")for(let s of i.children)s.kind==="textValue"&&r.length<=chunkPWTRJSES_cjs.Ff&&(r=r.length+s.value.length<=chunkPWTRJSES_cjs.Ff?r+s.value:"x".repeat(chunkPWTRJSES_cjs.Ff+1));for(let s of i.children){if(n>=ud)break;a(s,l+1);}}};return a(e,0),[...t.values()]}function AO(e){let t=0,n=(r,o)=>{if(++t>ud||o>Yt)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 n2=`
|
|
5
|
+
\r`,r2=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function NO(e,t){let n=t;for(;n<e.length&&n2.includes(e[n]);)n+=1;return n}function DO(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&&!`
|
|
6
|
+
\r"`.includes(e[n]);)n+=1;return n}function gg(e){if(e.length===0||e.length>256)return null;let t=NO(e,0);if(e[t]==='"')return null;let n=DO(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=NO(e,n);if(o>=e.length)return null;let a=DO(e,o),i=e.slice(a).trim();for(;;){let l=i.replace(r2,"").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 _O=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),o2=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function a2(e){let t=e;for(;;){let n=t.replace(o2,"").trimEnd();if(n===t)return t;t=n;}}function i2(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 hg(e){let t=Dl(e);if(t===null||t.length===0)return null;let n=a2(t),r=_O[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=i2(o);if(a===null)return null;let i=_O[a];return i?{property:i}:null}function yg(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}var _u=256,l2=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:false}),s2=Object.freeze({suppressNonDelimiterText:true,noteRef:false,pageRef:false}),d2=Object.freeze({suppressNonDelimiterText:false,noteRef:true,pageRef:false}),c2=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:true}),bg=new WeakMap;function uo(e){return bg.get(e)??l2}function u2(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 Pi(e){if(e.length>chunkPWTRJSES_cjs.Ff)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkPWTRJSES_cjs.Ff)return null;let n=u2(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>_u||o.startsWith("\\"))return null;if(r==="NOTEREF")return f2(n,o);if(r==="PAGEREF")return m2(n,o);let a=false,i=false,l=false,s=false,d=false;for(let f=2;f<n.length;f+=1){let p=n[f].toUpperCase();if(p==="\\R")i=true;else if(p==="\\W")l=true;else if(p==="\\N")a=true;else if(p==="\\T")s=true;else if(p==="\\H")d=true;else if(p==="\\*"&&n[f+1]?.toUpperCase()==="MERGEFORMAT")f+=1;else {if(p==="\\*MERGEFORMAT")continue;return null}}let u={bookmark:o,numberSwitch:a?"n":i?"r":l?"w":null,hyperlink:d};return s&&bg.set(u,s2),u}function f2(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 bg.set(r,d2),r}function m2(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 bg.set(r,c2),r}function gd(e){if(e.length>chunkPWTRJSES_cjs.Ff)return null;let t=[],n=0;for(;n<e.length;){if(/\s/.test(e[n])){n++;continue}let l=e[n]==='"',s=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(s,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>_u||o.value.startsWith("\\"))return null;let i=false;for(let l=2;l<t.length;l++){let s=t[l];if(s.quoted)return null;let d=s.value.toLowerCase();if(d==="\\h")i=true;else {if(d==="\\p")continue;if(a==="REF"&&["\\r","\\w","\\n","\\t","\\f"].includes(d))continue;if(a==="NOTEREF"&&d==="\\f")continue;if(d==="\\*mergeformat")continue;if(d==="\\*"||d==="\\#"||a==="REF"&&d==="\\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 p2=chunkPWTRJSES_cjs.Ff,g2=2048,h2=256;function y2(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
|
|
7
|
+
`||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&&!`
|
|
8
|
+
\r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}var b2=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function hd(e){if(e.length===0||e.length>p2)return null;let t=y2(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,s=false;for(let d=1;d<t.length;d+=1){let c=t[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!b2.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=h2;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(s||(s=true,p&&(l=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=g2&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:l}}function x2(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 Gl(e){if(Dl(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 s=n[i].toUpperCase();if(s==="\\E"){a=true;continue}if(s==="\\*"){let d=n[i+1];if(d===void 0)return null;if(i+=1,d.toUpperCase()==="MERGEFORMAT")continue;if(o=x2(d),o===null)return null;continue}return null}return {kind:r,numFmt:o,suppressPeriod:a}}function HO(e,t){let n=zo(e.numFmt??"decimal",t);return n.length===0?"":e.suppressPeriod?n:`${n}.`}var Oa=1024;function Hu(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n.value}function Zx(e){return e.kind==="drawing"||e.localName==="drawing"||e.localName==="pict"}function WO(e,t){let n="",r=(o,a)=>{if(o.kind==="textValue"||n.length>=Oa||t.exhausted||a>Yt||!Xt(t))return;if(o.kind==="text"){for(let l of o.children)l.kind==="textValue"&&(n+=l.value.slice(0,Oa-n.length));return}let i=chunkPWTRJSES_cjs.ib(o);if(i!==null){n+=i.slice(0,Oa-n.length);return}if(o.kind!=="revisionDelete")for(let l of o.children)r(l,a+1);};for(let o of e.children)r(o,1);return n}var jO=new WeakMap;function zO(e,t){let n=jO.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l="",s=Fa(),d=u=>{let f=Oa-l.length;if(f<=0){a=true;return}l+=u.length>f?u.slice(0,f):u;},c=(u,f,p,g=false)=>{if(a||u.kind==="textValue"||p>=chunkPWTRJSES_cjs.wa||s.exhausted||f>Yt)return;if(u.kind==="bookmarkStart"){!o&&Hu(u,"name")===t&&(o=true,i=Hu(u,"id"));return}if(u.kind==="bookmarkEnd"){o&&i!==void 0&&Hu(u,"id")===i&&(a=true);return}if(u.kind==="run"){if(!o||g)return;for(let y of u.children){if(a||!Xt(s))return;if(y.kind==="text")for(let b of y.children)b.kind==="textValue"&&d(b.value);else if(y.kind==="tab")d(" ");else if(y.kind==="hardBreak"&&chunkPWTRJSES_cjs.nb(y)==="line")d(`
|
|
9
|
+
`);else {let b=chunkPWTRJSES_cjs.ib(y);b&&d(b);}}return}if(Zx(u)||chunkPWTRJSES_cjs.vf(u)||!Xt(s))return;let m=chunkPWTRJSES_cjs.xa(u,p),h=g||u.kind==="revisionDelete";for(let y of u.children)c(y,f+1,m,h);};for(let u of e.children){if(a||!Xt(s))break;c(u,1,0);}return n||(n=new Map,jO.set(e,n)),n.set(t,l),l}var qx=new WeakMap;function wi(e,t=8){let n=[];return VO(e,t,n),n}function GO(e,t){let n=qx.get(e);if(n?.remaining===t)return n.paragraphs;let r=[];return KO(e,t,r),r}function VO(e,t,n){for(let r of e){if(r.kind==="paragraph"){n.push(r);continue}if(!(r.kind!=="table"||t<=0))for(let o of chunkPWTRJSES_cjs.Ub(r.children))o.kind==="tableRow"&&KO(o,t,n);}}function KO(e,t,n){let r=qx.get(e);if(r?.remaining===t){for(let a of r.paragraphs)n.push(a);return}let o=n.length;for(let a of chunkPWTRJSES_cjs.Ub(e.children))a.kind==="tableCell"&&VO(chunkPWTRJSES_cjs.Yc(a.children),t-1,n);n.length-o<=256&&qx.set(e,{remaining:t,paragraphs:n.slice(o)});}function $O(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 Jx(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,s=0,d=[],c=-1;for(let g=t.length-1;g>=0;g-=1){let m=t[g];if(m==="0"||m==="#"){i=true,l+=1,c=d.length,a>0?(a-=1,d.push(n[a])):d.push(m==="0"?"0":" ");continue}if(m===","){s===0&&(s=l),l=0,(a>0||r[g])&&(c=d.length,d.push(","));continue}d.push(m);}if(!i)return null;let u=[];for(;a>0;)s>0&&l>=s&&(u.push(","),l=0),a-=1,l+=1,u.push(n[a]);let f=d.slice(c+1).reverse().join(""),p=d.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+p}function vt(e){return "outOfFlow"in e&&e.outOfFlow===true}var Vl="0";function xg(e={}){let t;if(e.numberFormat!==void 0)t=e.numberFormat==="decimal"?Vl:mg(1,e.numberFormat);else {if(e.picture===void 0)return Vl;t=Jx(0,e.picture)??Vl;}return t.replaceAll(" ",S2)}var S2="\xA0";function Sg(e,t){return {kind:e,...t.picture!==void 0?{picture:t.picture}:{},...t.numberFormat!==void 0?{numberFormat:t.numberFormat}:{}}}function tS(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 co(n);let o=zo(r,n);return o.length>0?o:co(n)}function Ca(e,t,n={}){let r=e==="PAGE"?t.pageNumber:e==="NUMPAGES"?t.pageCount:t.sectionPageCount??t.pageCount;if(!Number.isFinite(r)||r<0)return "";if(n.numberFormat!==void 0)return mg(r,n.numberFormat);if(n.picture!==void 0){let o=Jx(r,n.picture);if(o!==null)return o}return e!=="PAGE"?co(Math.floor(r)):t.format!==void 0&&IO(t.format)?mg(r,t.format):tS(r,t.format)}function Ia(e){return e.hasPage||e.hasNumPages||e.hasSectionPages||e.hasPageParity===true}function nS(e,t=Yx){if(!e||!Ia(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 ki(e,t,n,r){let o=false,a=e.map((i,l)=>{let s=t+l,d=i.pageFieldSource;return d&&d.pageNumber===s&&d.sectionPageCount===n&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:s,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function R2(e){for(let t of e.spans)if(t.fieldAtom?.pageField||t.fieldAtom?.pageRef)return true;return false}function YO(e){if(e.kind==="paragraph"){for(let t of e.lines)if(R2(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(YO(r))return true;return false}function rS(e,t){let n=t,r=false;for(let o of e)vt(o)||(n=Math.max(n,o.box.y+o.box.height)),!r&&YO(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}var Qx=new WeakMap;function P2(e,t,n,r){let o=Qx.get(e);if(o)return t.length>0&&n!==t&&o.revision===r?(Qx.delete(e),false):true;let a=t.length===0||t===n;return a&&Number.isFinite(r)&&Qx.set(e,{revision:r}),a}function XO(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)XO(o,t);}function ZO(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)ZO(i,t,n,r);}var UO=new WeakMap;function qO(e){let t=UO.get(e);if(t!==void 0)return t;let n=w2(e);return UO.set(e,n),n}function w2(e){let t=null;for(let o of e)if(o.hasBodyPageFields!==false)for(let a of o.fragments)XO(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)ZO(l,t,i,n);}let r="";for(let[o,a]of n)r+=`${o}@${a.pageNumber}/${a.format??""};`;return {hosts:n,token:r}}function oS(e){return qO(e)?.token??""}function k2(e,t,n,r){let o=null;for(let a=0;a<e.spans.length;a+=1){let i=e.spans[a],l=a>0?e.spans[a-1]:r,s=i.fieldAtom?.pageRef;if(s){let u=n?.hosts.get(s.targetParagraphId);if(!u)continue;let f=tS(u.pageNumber,u.format);if(f.length===0)continue;let g=P2(s.calibration,s.cached,f,n.revision)?f:s.cached;if(g.length===0||g===i.text)continue;o||(o=e.spans.slice()),o[a]={...i,text:g};continue}let d=i.fieldAtom?.pageField;if(!d)continue;let c=T2(l,i)?"":Ca(d.kind,t,d);c!==i.text&&(o||(o=e.spans.slice()),o[a]={...i,text:c});}return o?{...e,spans:o}:e}function T2(e,t){return e?.fieldAtom?.pageField!==void 0&&e.range.paragraphId===t.range.paragraphId&&e.range.start===t.range.start}function JO(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 s=0;s<a.lines.length;s+=1){let d=a.lines[s],c=a.lines[s-1]?.spans.at(-1),u=k2(d,t,n,c);u!==d&&(l||(l=a.lines.slice()),l[s]=u);}l&&(i={...a,lines:l});}else {let l=null;for(let s=0;s<a.rows.length;s+=1){let d=a.rows[s],c=null;for(let u=0;u<d.cells.length;u+=1){let f=d.cells[u],p=JO(f.blocks,t,n);p!==f.blocks&&(c||(c=d.cells.slice()),c[u]={...f,blocks:p});}c&&(l||(l=a.rows.slice()),l[s]={...d,cells:c});}l&&(i={...a,rows:l});}i!==a&&(r||(r=e.slice()),r[o]=i);}return r??e}var yd=new WeakMap;function ste(e){for(let t of Array.isArray(e.pages)?e.pages:[])t.header&&yd.delete(t.header),t.footer&&yd.delete(t.footer);}function v2(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 aS(e,t,n){let r=yd.get(e);r&&yd.set(t,{context:r.context,projector:r.projector,dy:r.dy+n});}var eS=new WeakMap;function Go(e){let t=e.pages.length;if(t===0)return e;let n=qO(e.pages),r=n?.token??"",o=false,a=e.pages.map(i=>{let l=eS.get(i);if(l&&l.pageCount===t&&l.pageRefToken===r)return l.result!==i&&(o=true),l.result;let s=i.pageFieldSource,d={pageNumber:s?.pageNumber??i.index+1,pageCount:t,sectionPageCount:s?.sectionPageCount??t,...s?.format?{format:s.format}:{},sheetNumber:i.index+1},c=m=>{if(!m)return m;let h=m.pageFieldProjector,y=0;if(!h){let w=yd.get(m);if(!w||v2(w.context,d))return m;h=w.projector,y=w.dy;}o=true;let b=h(d),{pageFieldProjector:x,box:R,...P}=b,S={...P,box:y===0?R:{...R,y:R.y+y}};return yd.set(S,{context:d,projector:h,dy:y}),S},u=c(i.header),f=c(i.footer),p=i.hasBodyPageFields===false?i.fragments:JO(i.fragments,d,n?{hosts:n.hosts,revision:e.revision}:void 0);if(u===i.header&&f===i.footer&&p===i.fragments)return eS.set(i,{pageCount:t,pageRefToken:r,result:i}),i;p!==i.fragments&&(o=true);let g={...i,...u!==void 0?{header:u}:{},...f!==void 0?{footer:f}:{},...p!==i.fragments?{fragments:p}:{}};return eS.set(i,{pageCount:t,pageRefToken:r,result:g}),g});return o?{...e,pages:a}:e}function bd(e,t=[],n,r,o,a,i=Ue,l,s,d,c,u,f=false,p,g){return Ma(e,t,n,r,o,a,i,l,s,d,c,u,f,p,g)}var F2="http://schemas.openxmlformats.org/officeDocument/2006/relationships",O2=64,C2=8,I2=256,Rg=1584,M2=64;function B2(e){return (e-2)/6}function eC(e,t){if(!Number.isFinite(t))return null;let n=B2(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>Rg||o>Rg?null:{relationshipId:e.relationshipId,width:r,height:o,authored:e}}function tC(e){return e.kind!=="textValue"}function QO(e){return !Number.isFinite(e)||e<=0?null:e>Rg?Rg:e}function L2(e){let t=[{node:e,depth:0}],n=0;for(;t.length>0;){let r=t.shift();if(n>=I2)return null;n+=1;let o=r.node;if(o.namespaceUri===chunkPWTRJSES_cjs.dd){let a=chunkPWTRJSES_cjs.hd(o),i=a?QO(chunkPWTRJSES_cjs.gd(a.get("width"))):null,l=a?QO(chunkPWTRJSES_cjs.gd(a.get("height"))):null;if(i!==null&&l!==null)for(let s of chunkPWTRJSES_cjs.fd(o)){if(s.namespaceUri!==chunkPWTRJSES_cjs.dd||s.localName!=="imagedata")continue;let d=chunkPWTRJSES_cjs.ed(s,"id",F2);if(!(d===void 0||d.length===0||d.length>M2))return {relationshipId:d,width:i,height:l}}}if(!(r.depth>=C2))for(let a of o.children)tC(a)&&t.push({node:a,depth:r.depth+1});}return null}function nC(e){let t=new Map;if(!e)return t;let n=0;for(let r of e.children){if(!tC(r)||r.namespaceUri!==chunkPWTRJSES_cjs.la||r.localName!=="numPicBullet")continue;if(n>=O2)break;n+=1;let o=chunkPWTRJSES_cjs.ed(r,"numPicBulletId",chunkPWTRJSES_cjs.la);if(o===void 0||o.length===0||o.length>64||t.has(o))continue;let a=L2(r);a&&t.set(o,{picBulletId:o,...a});}return t}var rC=512,E2=9,fo=31680/20,A2=8,N2=128;function Wu(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t}function Ht(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function $n(e,t){for(let n of e.children)if(Wu(n,t))return n}function ju(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function D2(e){let t=chunkPWTRJSES_cjs.nd(e);return t!==null&&t>=0?t:null}function _2(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>fo?fo:t}function Pg(e){let t=e/20;return Number.isFinite(t)?t>fo?fo:t<-fo?-fo:t:0}function H2(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=$n(e,"ind");if(!n)return t;let r={};for(let s of ["left","right","start","end"]){let d=chunkPWTRJSES_cjs.nd(Ht(n,s));d!==null&&(r[s]=Pg(d));}let o=chunkPWTRJSES_cjs.nd(Ht(n,"left")??Ht(n,"start")),a=chunkPWTRJSES_cjs.nd(Ht(n,"right")??Ht(n,"end")),i=D2(Ht(n,"hanging")),l=chunkPWTRJSES_cjs.nd(Ht(n,"firstLine"));return {...r.start!==void 0||r.end!==void 0?{authored:r}:{},left:o===null?0:Pg(o),right:a===null?0:Pg(a),hanging:i===null?0:_2(i),firstLine:l===null?0:Pg(l),stated:{left:o!==null,right:a!==null,firstLineOffset:i!==null||l!==null}}}function j2(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function W2(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function z2(e,t){let n=$n(e,t);if(!n)return false;let r=Ht(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function oC(e,t){let n=$n(e,t);if(!n)return;let r=Ht(n,"val");if(!(r===void 0||r.length===0||r.length>N2))return r}function G2(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 aC(e){let t=ju(Ht(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=$n(e,"start"),r=1;if(n){let R=ju(Ht(n,"val"));R!==null&&R>=0&&(r=Math.min(R,9999));}let o=$n(e,"numFmt"),a=(o?Ht(o,"val"):void 0)??"decimal",i=$n(e,"lvlText"),l=i?Ht(i,"val")??"":"",s=$n(e,"lvlJc"),d=W2(s?Ht(s,"val"):void 0),c=$n(e,"suff"),u=j2(c?Ht(c,"val"):void 0),f=$n(e,"lvlRestart"),p;if(f){let R=ju(Ht(f,"val"));R!==null&&R>=0&&R<=9&&(p=R);}let g=$n(e,"lvlPicBulletId"),m=g?Ht(g,"val"):void 0,h=m!==void 0&&m.length>0&&m.length<=64?m:void 0,y=$n(e,"pPr"),b=$n(e,"rPr"),x=b?Xe(b):[];return Qp({ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:l.length>64?l.slice(0,64):l,lvlJc:d,suff:u,indent:H2(y),...p!==void 0?{lvlRestart:p}:{},...h!==void 0?{picBulletId:h}:{},isLgl:z2(e,"isLgl"),runProperties:x,vanish:G2(x,"vanish")},y)}function V2(e){let t=Ht(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(!Wu(a,"lvl"))continue;if(n.size>=9)break;let i=aC(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=oC(e,"numStyleLink"),o=oC(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function K2(e){let t=ju(Ht(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=$n(e,"startOverride"),r;if(n){let i=ju(Ht(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=$n(e,"lvl"),a=o?aC(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 $2(e){let t=Ht(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=$n(e,"abstractNumId"),r=n?Ht(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Wu(a,"lvlOverride"))continue;if(o.size>=E2)break;let i=K2(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function iC(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(Wu(i,"abstractNum")){if(r>=rC)continue;r+=1;let l=V2(i);l&&!t.has(l.abstractNumId)&&t.set(l.abstractNumId,l);continue}if(Wu(i,"num")){if(o>=rC)continue;o+=1;let l=$2(i);l&&!n.has(l.numId)&&n.set(l.numId,l);}}let a=nC(e);return a.size>0?{abstractNums:t,nums:n,pictureBullets:a}:{abstractNums:t,nums:n}}function U2(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<A2;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let l=n(i);if(l===void 0)return null;let s=e.nums.get(l);if(!s)return null;let d=e.abstractNums.get(s.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function lC(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=U2(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 xd(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 wg=Object.freeze({abstractNums:new Map,nums:new Map});function Y2(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=xd(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 X2(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=xd(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function dC(e,t){return t?e.map(n=>n==="bullet"||n==="none"?n:"decimal"):e}function Z2(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function cC(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 s=r.get(a);return s||(s=Y2(e,a),r.set(a,s)),{counters:i,initialized:l,starts:s}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let l=xd(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=X2(e,a,f);for(let P=i+1;P<=8;P+=1){let S=xd(e,a,P);if(!S)continue;let w=Z2(P,S.level.lvlRestart);w!==null&&i<=w&&(u[P]=false);}let g=f[i]??d.start;u[i]?c[i]+=1:(c[i]=g,u[i]=true);let m=c.slice(),h=u.slice(),y=m.map((P,S)=>h[S]?P:f[S]??1),b=dC(p,d.isLgl),x=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:Vx(d.lvlText,y,b),R={abstractNumId:s,numId:a,ilvl:i,level:d,counters:m,markerText:x};return uC.set(R,y),R}}}var uC=new WeakMap;function fC(e){return uC.get(e)??e.counters}var q2=/[\p{L}\s]/u;function J2(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}q2.test(r)||(t+=r);}return t}var sC=new WeakMap;function mC(e,t){let n=sC.get(e);n||(n=new Map,sC.set(e,n));let r=n.get(t);if(!r){let o=[];for(let a=0;a<=8;a+=1)o.push(xd(e,t,a)?.level??null);r=o,n.set(t,r);}return r}function pC(e,t=false,n=false){let{ilvl:r,expandCounters:o}=e;if(r<0||r>8)return null;let a=[],i=[];for(let u=0;u<=8;u+=1){let f=e.levels[u]??null;a.push(u<=r?f:null),i.push(f?.numFmt??"decimal");}let l=u=>u!==null&&u.numFmt!=="bullet"&&u.numFmt!=="none"&&u.lvlText.length>0;if(!l(a[r]??null))return null;let s=[],d=[];for(let u=r;u>=0&&!(t&&u!==r);u-=1){let f=a[u];l(f)&&(u!==r&&d.some(p=>p.includes(`%${u+1}`))||(s.push(u),d.push(f.lvlText)));}s.reverse();let c="";for(let u of s){let f=a[u],p=n?J2(f.lvlText):f.lvlText;c+=Vx(p,o,dC(i,f.isLgl));}return c.length>0?c:null}var gC=new Map;function Q2(e){let t=gC.get(e);return t||(t=je([{localName:"rFonts",attributes:{ascii:e,hAnsi:e,hint:"default"}}]),gC.set(e,t)),t}var hC=new Map,iS=new WeakMap;function yC(e){let t=e?.hasResolvedFont;if(!e||!t)return;let n=iS.get(e);if(n!==void 0)return n??void 0;let r=[];for(let i of chunkPWTRJSES_cjs.a){let l=false;try{l=t.call(e,Q2(i))===!0;}catch{l=false;}l&&r.push(i);}if(r.length===0){iS.set(e,null);return}let o=r.join("|"),a=hC.get(o);if(!a){let i=new Set(r);a=l=>i.has(l.toLowerCase()),hC.set(o,a);}return iS.set(e,a),a}function Sd(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n}}function Ete(e){if(e.kind==="textValue")return false;let t=Sd(e,"paragraphProperties")??Sd(e,"pPr");if(!t)return false;let n=Sd(t,"runProperties")??Sd(t,"rPr");return n===void 0?false:Sd(n,"del")!==void 0||Sd(n,"moveFrom")!==void 0}function kg(e,t,n,r,o=[],a=false){if(e.kind==="textValue")return true;if(t>=chunkPWTRJSES_cjs.wa)return !a;let i=(l,s)=>{for(let d of l){if(d.kind==="textValue")continue;if(d.kind==="run"){if(a&&n$(d))continue;for(let f of d.children){if(f.kind==="text"){for(let p of f.children)if(p.kind==="textValue"&&p.value.length>0)return false;continue}if(f.kind!=="runProperties")return false}continue}if(chunkPWTRJSES_cjs.Uc(d)){if(s+1>=chunkPWTRJSES_cjs.wa){if(a)return false;continue}let f=chunkPWTRJSES_cjs.Wc(d);if(f&&!i(f,s+1))return false;continue}if(chunkPWTRJSES_cjs.ya(d)&&!En(d)){if(!kg(d,s+1,n,r,o,a))return false;continue}if(!En(d)){if(a&&!t$(d))return false;continue}let c=Vn(d);if(!c)continue;let u=ar(o,c);if(Ye(u,n,r)&&!kg(d,s+1,n,r,u,a))return false}return true};return i(e.children,t)}var e$=new Set(["pPr","bookmarkStart","bookmarkEnd","commentRangeStart","commentRangeEnd","moveFromRangeStart","moveFromRangeEnd","moveToRangeStart","moveToRangeEnd","permStart","permEnd","proofErr"]);function t$(e){return e.kind==="paragraphProperties"?true:e.namespaceUri===chunkPWTRJSES_cjs.la&&e$.has(e.localName)}function n$(e){let t=e.children.find(n=>n.kind==="runProperties");return t!==void 0&&chunkPWTRJSES_cjs.Aa(t,"vanish")}function bC(e,t,n){return kg(e,0,t,n,[],true)}function lS(e,t,n){if(t==="all-markup"&&!n)return false;for(let r of gi(e)){let o=n?pu(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 xC(e,t="proposed",n){return e.kind!=="paragraph"||!lS(e,t,n)?false:kg(e,0,t,n)}function Rd(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n}}var SC=new WeakMap;function r$(e){let t=SC.get(e);if(t!==void 0)return t;let n=Rd(e,"pPr"),r=n&&Rd(n,"rPr"),o=r!==void 0&&(chunkPWTRJSES_cjs.Aa(r,"vanish")||chunkPWTRJSES_cjs.Aa(r,"specVanish"));return SC.set(e,o),o}function o$(e){let t=Rd(e,"pPr"),n=t&&Rd(t,"spacing");if(!n)return false;let r=a=>n.attributes.find(i=>i.localName===a)?.value,o=r("beforeAutospacing");return Number(r("before")??0)>0||Number(r("beforeLines")??0)>0||o==="1"||o==="true"||o==="on"}function a$(e){let t=Rd(e,"pPr");return t!==void 0&&Rd(t,"sectPr")!==void 0}var PC=new WeakMap,wC=new WeakMap,RC=new WeakMap;function sS(e){return wC.get(e)}function i$(e,t){let n=RC.get(e);if(n&&n.neighbours.before===t.before&&n.neighbours.after===t.after)return n.standIn;let r={...e};return wC.set(r,t),RC.set(e,{neighbours:t,standIn:r}),r}function kC(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!==void 0&&a.parentKey===u.parentKey&&(a.block.kind==="paragraph"||a.block.kind==="table"&&!o$(f))&&r$(f)&&!a$(f)&&bC(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},s=e.map((c,u)=>{let{block:f}=c;if(i.has(u)||f.kind!=="paragraph"||!r(f))return f;let p=l(u,-1),g=l(u,1);return !p&&!g?f:i$(f,{...p?{before:p}:{},...g?{after:g}:{}})}),d=s.filter((c,u)=>!i.has(u));return PC.set(d,s),d}function TC(e){return PC.get(e)??e}function Pd(e,t){return e.picBullet?e.picBullet.width:t.measure(e.markerText,e.markerStyle)}function vC(e){return e.markerText.length>0||e.picBullet!==void 0}function dS(e,t,n,r){return vC(e)?{x:FC(e,t),y:n,width:Math.max(t,0),height:r}:null}function FC(e,t){let n=e.indent.left,r=e.indent.hanging,o=r>0?-r:e.indent.firstLine,a=Math.min(0,n),l=Math.max(a,n+o);return e.markerAlign==="right"?l-=t:e.markerAlign==="center"&&(l-=t/2),l<a&&(l=a),l}function l$(e,t){return e.stops.find(n=>!n.implied&&n.positionPt>t)}function OC(e,t,n=hu,r=Number.POSITIVE_INFINITY){let o=vC(e)?Math.max(Pd(e,t),0):0,a=e.indent.left,i=FC(e,o)+o;if(e.suffix==="nothing")return i-a;if(e.suffix==="space")return i+t.measure(" ",e.markerStyle)-a;if(i<=a){let l=l$(n,i);return !l||l.positionPt>=a&&!n.ignoreIndentAsNumberingTabStop?0:Math.min(l.positionPt,Math.max(i,r))-a}return Tl(n,i,r,true).positionPt-a}function cS(e,t,n,r,o){return e?OC(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}var mS=new WeakMap;function lne(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkPWTRJSES_cjs.l.story);mS.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function d$(e){let t=mS.get(e);return mS.delete(e),t}var DC=new WeakMap;function _C(e){return DC.get(e)}function pS(e){return e.kind!=="textValue"}function CC(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Tg(e,t){for(let n of e.children)if(pS(n)&&n.localName===t)return n}function HC(e){if(!pS(e))return null;let t=Tg(e,"numPr");if(!t)return null;let n=Tg(t,"numId"),r=Tg(t,"ilvl"),o;if(n){let i=CC(n,"val");o=i!==void 0&&i!=="0"&&i.length<=64?i:null;}let a;if(r){let i=CC(r,"val"),l=/^\d{1,2}$/.test(i??"")?Number(i):0;a=l<=8?l:null;}return {numId:o,ilvl:a}}function c$(e){let t=null,n=0;for(let r of e){let o=HC(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 u$(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<eg;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?HC(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 uS=new WeakMap;function vg(e,t){if(!t)return e;let n=uS.get(e);if(n&&n.styleCascade===t)return n.linked;let r=lC(e,a=>u$(t,a)),o={styleCascade:t,linked:r};return uS.set(e,o),uS.set(r,o),r}function IC(e){return Number.isFinite(e)?e>fo?fo:e<-fo?-fo:e:0}function MC(e){let t=null;for(let n of e){if(n.localName!=="ind")continue;let r=n.attributes?.hanging,o=n.attributes?.firstLine;if(r===void 0&&o===void 0)continue;let a=chunkPWTRJSES_cjs.nd(r),i=chunkPWTRJSES_cjs.nd(o);t={hanging:a!==null&&a>=0?IC(a/20):0,firstLine:i!==null?IC(i/20):0};}return t}function jC(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.left!==void 0||t.attributes?.start!==void 0))}function WC(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.right!==void 0||t.attributes?.end!==void 0))}function BC(e,t){return t?WC(e):jC(e)}function LC(e,t){return t?jC(e):WC(e)}function f$(e,t,n=[]){let r=it([...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=kd([...t,o]),l=kd([...n,o]),s={hanging:e.hanging,firstLine:e.firstLine},d=BC(n,r)?l.left:a.left?e.left:BC(t,r)?i.left:e.left,c=LC(n,r)?l.right:a.right?e.right:LC(t,r)?i.right:e.right,u=MC(n)??(a.firstLineOffset?s:MC(t)??s);return {left:d,right:c,...u}}var EC=new WeakMap;function zC(e,t){let n=EC.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(f=>f.kind==="paragraphProperties"),o=t?cr(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&pS(r)?Tg(r,"rPr"):void 0,l=c$(a),s=l&&t&&o?XC(t,o.styleId,r):{below:[],above:Xe(r)},d=o?o.markRunProperties:Xe(i),c=lr(e)?[...d.filter(f=>f.localName!=="vanish"),...o?.runProperties.filter(f=>f.localName==="vanish")??[]]:d,u={styleCascade:t,numPr:l,belowLevel:s.below,aboveLevel:s.above,inheritedMarkProps:c,perLevel:new WeakMap};return EC.set(e,u),u}function zu(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=vg(t,n),i=cC(a);for(let l of wi(e)){let s=zC(l,n),d=s.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=s.perLevel.get(c.level);if(!u){let S=f$(c.level.indent,s.belowLevel,s.aboveLevel),w=ur(s.inheritedMarkProps,c.level.runProperties,n);u={indent:S,markerStyle:je(w,n?.themeFonts)},s.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=(c.level.numFmt==="bullet"?chunkPWTRJSES_cjs.e:chunkPWTRJSES_cjs.d)(c.markerText,p.fontFamily,r),h=p,y=c.level.picBulletId===void 0?void 0:a.pictureBullets?.get(c.level.picBulletId),b=y?eC(y,h.fontSizePt)??void 0:void 0,x=[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,TF(c.level),m,$O(h),b?`${b.relationshipId}:${b.width}:${b.height}`:""].map(String),R=de(x),P={numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,...c.level.numFmt==="bullet"?{}:{ordinal:c.counters[c.ilvl]??1},markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:h,...b?{picBullet:b}:{},cacheToken:R};Qp(P,Fu(c.level)),ZC(P,de([...x.slice(0,12),...x.slice(13)])),DC.set(P,{levels:mC(a,c.numId),ilvl:c.ilvl,expandCounters:fC(c)}),o.set(l.id,P);}return o}var GC=new WeakMap,VC=new WeakMap;function m$(e){return e.isFontAvailable??yC(e.measurer)}function AC(e,t,n,r){let o=r?VC.get(r):GC.get(n);if(o&&o.rawIndex===e.numberingIndex&&o.styleCascade===e.styleCascade&&o.isFontAvailable===t)return o}function p$(e,t,n){t?VC.set(t,n):GC.set(e,n);}function KC(e,t,n){let r=TC(t),o=m$(e);if(e.listItems===void 0){let s=AC(e,o,r,n);if(s&&n===void 0)return {...e,numberingIndex:s.linkedIndex,...s.listItems?{listItems:s.listItems}:{}}}let a=e.listItems===void 0?AC(e,o,r,n):void 0,i=a&&a.rawIndex===e.numberingIndex&&a.styleCascade===e.styleCascade&&a.isFontAvailable===o?a.linkedIndex:vg(e.numberingIndex??wg,e.styleCascade),l=e.listItems??(i.nums.size>0?y$(r,e.numberingIndex,i,e.styleCascade,o,n):void 0);return e.listItems===void 0&&p$(r,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:o,linkedIndex:i,listItems:l}),{...e,numberingIndex:i,...l?{listItems:l}:{}}}function Td(e,t){return KC(e,t,void 0)}function $C(e,t,n){let r=KC(e,t,n);return qC(r.listItems,e.measurer),r}var NC=new WeakMap,g$=Object.freeze([]);function UC(e,t){return YC(e,t).length>0}function YC(e,t){let n=NC.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=wi([e]).filter(a=>zC(a,t).numPr!==null),o=r.length>0?r:g$;return NC.set(e,{styleCascade:t,numbered:o}),o}var wd=new WeakMap,fS=new WeakMap;function h$(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 y$(e,t,n,r,o,a){let i=e[0],l=e[e.length-1],s=a?fS.get(a):(i?wd.get(i):void 0)??(l?wd.get(l):void 0);if((a?d$(a):void 0)?.preservesNumberedSequence&&s&&s.rawIndex===t&&s.styleCascade===r&&s.isFontAvailable===o)return s.listItems;let c=new Array(e.length),u=s!==void 0&&s.rawIndex===t&&s.styleCascade===r&&s.isFontAvailable===o&&s.blocks.length===e.length;for(let g=0;g<e.length;g+=1){let m=e[g],h=s&&s.blocks[g]===m?s.numberedByBlock[g]:YC(m,r);c[g]=h,u&&!h$(h,s.numberedByBlock[g])&&(u=false);}if(s&&u){let g={...s,blocks:e,numberedByBlock:c};return a?fS.set(a,g):(i&&wd.set(i,g),l&&l!==i&&wd.set(l,g)),s.listItems}let f=zu(e,n,r,o),p={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?fS.set(a,p):(i&&wd.set(i,p),l&&l!==i&&wd.set(l,p)),f}function fne(e,t,n){return vd(e,t,()=>n)}function vd(e,t,n){let r=[],o=null,a=-1,i=-1;for(let l of t){let s=n(l.sectionIndex);if(l.customMarkFollows){r.push({noteId:l.noteId,mark:null});continue}o===null?(o=s.numStart,a=l.sectionIndex,i=l.pageIndex??-1):s.numRestart==="eachSect"&&l.sectionIndex!==a?(o=s.numStart,a=l.sectionIndex):s.numRestart==="eachPage"&&l.pageIndex!==void 0&&l.pageIndex!==i?(o=s.numStart,i=l.pageIndex):s.numRestart==="eachSect"?a=l.sectionIndex:s.numRestart==="eachPage"&&l.pageIndex!==void 0&&(i=l.pageIndex);let d=o;o+=1,r.push({noteId:l.noteId,mark:zo(s.numFmt,d),displayNumber:d});}return r}function b$(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var x$=["top","left","bottom","right"];function gS(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}}function Gu(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 Fg(e){let t=di(e);if(!(!t||!mT(t.val)))return t}function S$(e){return e==="firstPage"||e==="notFirstPage"?e:"allPages"}function JC(e){let t=Gu(e,"pgBorders");if(!t)return;let n=Fg(Gu(t,"top")),r=Fg(Gu(t,"left")),o=Fg(Gu(t,"bottom")),a=Fg(Gu(t,"right"));if(!(!n&&!r&&!o&&!a))return {offsetFrom:gS(t,"offsetFrom")==="page"?"page":"text",display:S$(gS(t,"display")),zOrder:gS(t,"zOrder")==="back"?"back":"front",...n?{top:n}:{},...r?{left:r}:{},...o?{bottom:o}:{},...a?{right:a}:{}}}function Og(e){if(!e)return "";let t=[e.offsetFrom,e.display,e.zOrder];for(let n of x$){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt}`);}return t.join(",")}function kr(e){return Math.abs(e)}function hS(e){return e<0}function Fd(e){return {top:kr(e.margin.top),bottom:kr(e.margin.bottom)}}var yS=4096,po=Object.freeze({pageSize:Object.freeze({widthTwips:12240,heightTwips:15840}),margins:Object.freeze({topTwips:1440,rightTwips:1440,bottomTwips:1440,leftTwips:1440,headerTwips:720,footerTwips:720,gutterTwips:0}),columns:Object.freeze({count:1,gapTwips:720,equalWidth:true,separator:false,definitions:Object.freeze([])}),landscape:false,titlePage:false,breakType:"nextPage"});function QC(e,t,n=31680*2){let r=chunkPWTRJSES_cjs.nd(e);return r===null||r<=0||r>n?t:r}function Kl(e,t){let n=chunkPWTRJSES_cjs.nd(e);return n===null||Math.abs(n)>31680?t:n}function xS(e,t,n=31680){let r=chunkPWTRJSES_cjs.nd(e);return r===null||r<0||r>n?t:r}var jt=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},Ti=(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 eI(e,t,n){let r=jt(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 R$(e){if(!e)return 1;let t=jt(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function P$(e,t,n){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=t)break;if(o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=jt(o,"w"),i=a===void 0?n:xS(a,-1,31680),l=r.length===t-1,s=jt(o,"space"),d=l||s===void 0?0:xS(s,-1);if(i<0||d<0)return [];r.push({widthTwips:i,gapTwips:d});}return r.length===t?r:[]}function w$(e){let t=e?Ti(e,"type"):void 0,n=t?jt(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var k$=new Set(["hyphen","period","colon","emDash","enDash"]);function T$(e){let t=Ti(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=jt(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=jt(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=jt(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=jt(t,"chapSep");return i!==void 0&&k$.has(i)&&(n.chapSep=i),n}var tI=new WeakMap;function bS(e){if(!e)return po;let t=tI.get(e);if(t!==void 0)return t;let n=v$(e);return tI.set(e,n),n}function v$(e){let t=Ti(e,"pgSz"),n=Ti(e,"pgMar"),r=Ti(e,"cols"),o=po,a=Ti(e,"docGrid"),i=a?jt(a,"type"):void 0,l=a?jt(a,"linePitch"):void 0,s=l!==void 0&&/^\d{1,7}$/.test(l)&&Number(l)<=31680?Number(l):0,d=t?jt(t,"orient"):void 0,c=t?QC(jt(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,u=t?QC(jt(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,f=T$(e),p=JC(e),g=R$(r),m=r?xS(jt(r,"space"),o.columns.gapTwips):o.columns.gapTwips,h=r?eI(r,"equalWidth",true):true,y={topTwips:n?Kl(jt(n,"top"),1440):o.margins.topTwips,rightTwips:n?Kl(jt(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?Kl(jt(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?Kl(jt(n,"left"),1440):o.margins.leftTwips,headerTwips:n?Kl(jt(n,"header"),720):o.margins.headerTwips,footerTwips:n?Kl(jt(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?Kl(jt(n,"gutter"),0):o.margins.gutterTwips},b=c-y.leftTwips-y.rightTwips-y.gutterTwips;return {...(i==="lines"||i==="linesAndChars"||i==="snapToChars")&&s>0?{gridLinePitchTwips:s}:{},pageSize:{widthTwips:c,heightTwips:u},margins:y,columns:{count:g,gapTwips:m,equalWidth:h,separator:r?eI(r,"sep",false):false,definitions:h?[]:P$(r,g,b)},landscape:d==="landscape"||c>u,titlePage:chunkPWTRJSES_cjs.Aa(e,"titlePg"),breakType:w$(e),...f!==void 0?{pageNumbering:f}:{},...p!==void 0?{pageBorders:p}:{}}}function $l(e){let t=e?.gridLinePitchTwips;return t===void 0?void 0:t/20}function F$(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return Ti(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}var nI=new WeakMap;function Un(e){let t=nI.get(e);if(t!==void 0)return t??void 0;let n=e.children.find(a=>a.kind==="paragraphProperties"),r=n?Ti(n,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return nI.set(e,o??null),o}function kne(e){let t=SS(e);return t[t.length-1]?.properties??po}function SS(e,t="all-markup",n){return RS(e,t,n).sections}function oI(e,t="all-markup",n){let r=Gr(e,t,n),o=mo(e,r).sections,a=Gr(e,"all-markup"),i=mo(e,a).sections,l=Math.max(0,i.length-1),s=new Map;for(let d of i){if(d.blockStart===d.blockEndExclusive)continue;let c=a[d.blockEndExclusive-1];c?.kind==="paragraph"&&Un(c)&&s.set(c.id,d.index);}return o.map(d=>{if(d.blockStart===d.blockEndExclusive)return l;let c=r[d.blockEndExclusive-1];return c?.kind!=="paragraph"||!Un(c)?l:s.get(c.id)??l})}function RS(e,t="all-markup",n){return mo(e,Gr(e,t,n))}var rI=chunkPWTRJSES_cjs.ub(16);function mo(e,t){let n=rI.get(t);if(n&&n.part===e)return n.result;let r=O$(e,t);return rI.set(t,{part:e,result:r}),r}function O$(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 s=Un(l);if(s){if(n.length>=yS){o=true;continue}n.push({index:n.length,properties:bS(s),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=F$(e);if(r<t.length||n.length===0){if(n.length>=yS){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:bS(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=yS)return {sections:n,truncated:true};n.push({index:n.length,properties:bS(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function vi(e){let t=chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.pageSize.widthTwips)),n=chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.pageSize.heightTwips)),r=chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.margins.rightTwips)),a=chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.margins.topTwips)),i=chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.margins.bottomTwips));return t-r-o<=0||n-kr(a)-kr(i)<=0?fu:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(Math.max(0,e.margins.headerTwips))),footerDistance:chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(Math.max(0,e.margins.footerTwips)))}}var aI=4096,iI=new WeakMap;function cI(e,t){let n=iI.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 iI.set(e,{sections:t,input:r}),r}function Nne(e,t,n){let r=chunkPWTRJSES_cjs.Tg(e),o=chunkPWTRJSES_cjs.Ug(r),a=chunkPWTRJSES_cjs.Vg(r),i=chunkPWTRJSES_cjs.Wg(void 0,o),l=chunkPWTRJSES_cjs.Xg(void 0,a),s=mo(t,n).sections,d=c=>{if(c.blockStart===c.blockEndExclusive)return;let u=n[c.blockEndExclusive-1];return u?.kind==="paragraph"?Un(u):void 0};return {sections:s,footnotePropsBySection:s.map(c=>chunkPWTRJSES_cjs.Wg(chunkPWTRJSES_cjs.Rg(d(c)),o)),endnotePropsBySection:s.map(c=>chunkPWTRJSES_cjs.Xg(chunkPWTRJSES_cjs.Sg(d(c)),a)),documentFootnoteProps:i,documentEndnoteProps:l}}var C$=Object.freeze([]);function I$(e){for(let t of e.attributes){if(t.localName!=="customMarkFollows"||t.namespaceUri!==chunkPWTRJSES_cjs.la&&t.namespaceUri!=="")continue;let n=t.value;return !(n==="0"||n==="false"||n==="off")}return false}var lI=new chunkPWTRJSES_cjs.mf;function M$(e){let t=lI.get(e);if(t)return t;let n=null;for(let o of chunkPWTRJSES_cjs.hg(e)){let a=o.node;if(a.kind!=="noteReference")continue;let i=chunkPWTRJSES_cjs.Bc(a),l=chunkPWTRJSES_cjs.yc(a);i===null||l===null||(n??=[]).push({nodeId:a.id,noteKind:i,noteId:l,customMarkFollows:I$(a)});}let r=n===null?C$:Object.freeze(n);return lI.set(e,r),r}function B$(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function L$(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}var E$=new Map,sI=new chunkPWTRJSES_cjs.mf;function uI(e,t){let n=sI.get(e);if(n&&n.input===t)return n.index;let r=[],o=[],a=[],i=[],l=0,s=0;for(let f=0;f<e.length&&l<aI;f+=1){for(;s<t.sections.length-1&&f>=t.sections[s].blockEndExclusive;)s+=1;let p=t.sections.length>0?s:0;for(let g of wi([e[f]]))for(let m of M$(g)){if(l>=aI)break;l+=1;let h={noteId:m.noteId,sectionIndex:p,customMarkFollows:m.customMarkFollows};m.noteKind==="footnote"?(r.push(h),o.push(m.nodeId)):(a.push(h),i.push(m.nodeId));}}let d=null,c=(f,p,g,m)=>{if(p.length===0||(f==="footnote"?t.footnotePropsBySection.length>0?t.footnotePropsBySection:[t.documentFootnoteProps]:t.endnotePropsBySection.length>0?t.endnotePropsBySection:[t.documentEndnoteProps]).some(b=>b.numRestart==="eachPage"))return;let y=vd(f,p,m);for(let b=0;b<y.length;b+=1){let x=y[b].mark,R=g[b];x!==null&&x.length>0&&R!==void 0&&(d??=new Map).set(R,x);}};c("footnote",r,o,f=>B$(t,f)),c("endnote",a,i,f=>L$(t,f));let u=d??E$;return sI.set(e,{input:t,index:u}),u}function PS(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n.value}var dI=new WeakMap;function fI(e,t){let n=dI.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,l=null,s=Fa(),d=(c,u,f)=>{if(a||c.kind==="textValue"||f>=chunkPWTRJSES_cjs.wa||s.exhausted||u>Yt)return;if(c.kind==="bookmarkStart"){!o&&PS(c,"name")===t&&(o=true,i=PS(c,"id"));return}if(c.kind==="bookmarkEnd"){o&&i!==void 0&&PS(c,"id")===i&&(a=true);return}if(o&&c.kind==="noteReference"){l=c.id,a=true;return}if(!Xt(s))return;let p=chunkPWTRJSES_cjs.xa(c,f);for(let g of c.children)d(g,u+1,p);};for(let c of e.children){if(a||!Xt(s))break;d(c,1,0);}return n||(n=new Map,dI.set(e,n)),n.set(t,l),l}function Fi(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 A$=512,N$=2048,mI=4096,PI=Object.freeze([]),wI=Object.freeze([]),D$=Object.freeze({fields:wI,bookmarks:PI});function kS(e){return e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}var pI=new WeakMap;function _$(e){let t=pI.get(e);if(t)return t;let n=null,r=null,o=Fa(),a=_l(),i=null,l=null,s=Dr,d=Dr,c=()=>{if(a.nesting!==1||a.phase!=="instruction"||a.nestingOverflow)return;let g=fd(a);if(g.overflow||l===null)return;let m=Pi(g.instruction);if(m){i={spec:m,autonum:null,anchorId:l,cached:"",revisions:d};return}let h=Gl(g.instruction);h&&(i={spec:null,autonum:h,anchorId:l,cached:"",revisions:d});},u=()=>{i&&((n??=[]).push({spec:i.spec,autonum:i.autonum,anchorId:i.anchorId,cached:kS(i.cached),revisions:i.revisions}),i=null);},f=(g,m,h)=>{if(g.kind==="textValue"||h>=chunkPWTRJSES_cjs.wa||o.exhausted||m>Yt)return;if(g.kind==="bookmarkStart"){let b=Hu(g,"name");b!==void 0&&b.length>0&&b.length<=_u&&(r??=[]).push(b);return}if(g.kind==="run"){for(let b of g.children){if(!Xt(o))return;if(b.kind!=="runProperties"){if(gn(b,"begin")){Hl(a),a.nesting===1&&(l=b.id,d=s,i=null);continue}if(Ta(b)){jl(a,b,o,m+1);continue}if(gn(b,"separate")){c(),Wl(a);continue}if(gn(b,"end")){let x=a.nesting===1;c(),zl(a),x&&u();continue}if(i&&a.nesting===1&&a.phase==="result"){if(b.kind==="text")for(let x of b.children)x.kind==="textValue"&&i.cached.length<Oa&&(i.cached+=x.value.slice(0,Oa-i.cached.length));else if(b.kind==="tab"&&i.cached.length<Oa)i.cached+=" ";else if(i.cached.length<Oa){let x=chunkPWTRJSES_cjs.ib(b);x&&!s.some(R=>R.kind==="delete")&&!g.children.some(R=>R.kind==="deletedText")&&(i.cached+=x);}}}}return}if(chunkPWTRJSES_cjs.vf(g)){let b=chunkPWTRJSES_cjs.xf(g)??"",x=Pi(b),R=x===null?Gl(b):null;(x||R)&&(n??=[]).push({spec:x,autonum:R,anchorId:g.id,cached:kS(WO(g,o)),revisions:s});return}if(Zx(g)||!Xt(o))return;if(En(g)){let b=Vn(g);if(b){let x=s;s=ar(x,b);let R=chunkPWTRJSES_cjs.xa(g,h);for(let P of g.children)f(P,m+1,R);s=x;return}}let y=chunkPWTRJSES_cjs.xa(g,h);for(let b of g.children)f(b,m+1,y);};for(let g of e.children){if(!Xt(o))break;f(g,1,0);}let p=n===null&&r===null?D$:Object.freeze({fields:n??wI,bookmarks:r??PI});return pI.set(e,p),p}var H$=Object.freeze({fieldsByParagraph:null,bookmarkOwners:null}),gI=new WeakMap;function j$(e){let t=gI.get(e);if(t)return t;let n=null,r=null;for(let a of wi([e])){let i=_$(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<N$&&r.set(l,a);}let o=n===null&&r===null?H$:Object.freeze({fieldsByParagraph:n,bookmarkOwners:r});return gI.set(e,o),o}var Cg=new WeakMap;function W$(e){let t=e[0],n=e[e.length-1],r=(t?Cg.get(t):void 0)??(n?Cg.get(n):void 0)??new Map;return t&&Cg.set(t,r),n&&Cg.set(n,r),r}var Ig=new WeakMap;function z$(e){let t=e[0],n=e[e.length-1],r=(t?Ig.get(t):void 0)??(n?Ig.get(n):void 0)??new Map;return t&&Ig.set(t,r),n&&Ig.set(n,r),r}function hI(e){return e.length>1&&e.endsWith(".")?e.slice(0,-1):e}var yI=new WeakMap;function bI(e,t=Ue,n){if(!e)return [];let r=`${t}|${n?.cacheKey??""}`,o=yI.get(e),a=o?.get(r);if(a)return a;let i=[];for(let l of chunkPWTRJSES_cjs.Jc(e.root)){if(i.length>=chunkPWTRJSES_cjs.Hc)break;if(!chunkPWTRJSES_cjs.Ac(l))continue;let s=Od(l,t,n);s.length>0&&i.push(s);}return o?Fi(o,r,i):yI.set(e,new Map([[r,i]])),i}var xI=new WeakMap;function G$(e,t,n,r,o,a){let i=new Map,l=[],s=0,d=F=>{for(let T of F){let v=j$(T);if(l.push(v),!!v.fieldsByParagraph)for(let[C,I]of v.fieldsByParagraph){if(s>=A$)break;i.set(C,I),s+=I.length;}}};if(d(e),n){for(let F of bI(n.footnotesPart,o,a))d(F);for(let F of bI(n.endnotesPart,o,a))d(F);}if(i.size===0)return null;let c=new Set;for(let F of i.values())for(let T of F)T.spec&&c.add(T.spec.bookmark);let u=new Map;for(let F of l)if(F.bookmarkOwners)for(let[T,v]of F.bookmarkOwners)c.has(T)&&!u.has(T)&&u.set(T,v);let f=new Map,p=new Map,g=new Map;for(let[F,T]of i)for(let v of T){if(!v.autonum||!Ye(v.revisions,o,a))continue;let C=(g.get(v.autonum.kind)??0)+1;g.set(v.autonum.kind,C);let I=HO(v.autonum,C);I.length!==0&&(f.set(v.anchorId,I),p.has(F)||p.set(F,I));}let m=F=>{let T=uo(F);if(T.pageRef)return null;let v=u.get(F.bookmark);if(!v)return null;if(T.noteRef){if(r===void 0)return null;let I=fI(v,F.bookmark);return I===null?null:uI(e,r).get(I)??null}if(F.numberSwitch!==null){let I=t?.get(v.id);if(!I){if(T.suppressNonDelimiterText)return null;let A=p.get(v.id);return A!==void 0?hI(A):null}let O=_C(I),k=O!==void 0?pC(O,F.numberSwitch==="n",T.suppressNonDelimiterText):null,E=!T.suppressNonDelimiterText&&I.numFmt!=="bullet"&&I.numFmt!=="none"&&I.markerText.length>0?I.markerText:null,M=k??E;return M===null?null:hI(M)}if(T.suppressNonDelimiterText)return null;let C=zO(v,F.bookmark);return C.length>0?C:null},h=new Map,y=F=>{let T=uo(F),v=`${T.suppressNonDelimiterText?"t":""}${T.noteRef?"x":""}`,C=`${F.numberSwitch??"-"}${v}\0${F.bookmark}`;if(h.has(C))return h.get(C)??null;let I=m(F);return h.set(C,I),I},b=W$(e),x=z$(e),R=new Map,P=new Map,S=new Map,w=[];for(let[F,T]of i){let v=[];for(let I of T){if(I.spec===null){let M=I.autonum?f.get(I.anchorId)??null:null;v.push(M!==null?`a${M}`:`c${I.cached}`);continue}if(uo(I.spec).pageRef){let M=u.get(I.spec.bookmark);if(M){let A=x.get(I.anchorId);A===void 0&&x.size<mI&&(A=Object.freeze({}),x.set(I.anchorId,A)),A!==void 0&&P.set(I.anchorId,{spec:I.spec,projection:{targetParagraphId:M.id,cached:I.cached,calibration:A}});}v.push(`c${I.cached}${M?.id??""}`);continue}let O=y(I.spec),k=b.get(I.anchorId);k===void 0&&(k=I.cached.length===0||O!==null&&kS(O)===I.cached,I.cached.length>0&&b.size<mI&&b.set(I.anchorId,k));let E=k?O:null;R.set(I.anchorId,{spec:I.spec,live:E}),v.push(E!==null?`l${E}`:`c${I.cached}`);}let C=v.join("");S.set(F,C),w.push(F,C);}return {valuesToken:de(w),tokenForParagraph:F=>S.get(F)??"",liveValueOf:(F,T)=>{let v=R.get(F);return !v||v.live===null||v.spec.bookmark!==T.bookmark||v.spec.numberSwitch!==T.numberSwitch||uo(v.spec)!==uo(T)?null:v.live},autonumValueOf:F=>f.get(F)??null,pageRefProjectionOf:(F,T)=>{let v=P.get(F);return !v||v.spec.bookmark!==T.bookmark||uo(v.spec)!==uo(T)?null:v.projection}}}function tre(e,t,n){return TS(e,t,n,void 0)}function TS(e,t,n,r,o=Ue,a){let i=n?.footnotesPart??null,l=n?.endnotesPart??null,s=xI.get(e);if(s&&s.listItems===t&&s.footnotesPart===i&&s.endnotesPart===l&&s.noteNumbering===r&&s.displayMode===o&&s.authorFilterKey===(a?.cacheKey??""))return s.context;let d=G$(e,t,n,r,o,a);return xI.set(e,{listItems:t,footnotesPart:i,endnotesPart:l,noteNumbering:r,displayMode:o,authorFilterKey:a?.cacheKey??"",context:d}),d}function kI(e,t){if(t.valuesToken==="")return "";let n=$$(t),r=[];for(let o of chunkPWTRJSES_cjs.Ub(e.children)){if(o.kind!=="tableRow")continue;let a=SI.get(o);if(a?.scope!==n){let i=[];for(let l of GO(o,V$)){let s=t.tokenForParagraph(l.id);s&&i.push(s);}a={scope:n,token:i.join(";")},a.token.length<=K$&&SI.set(o,a);}a.token&&r.push(a.token);}return r.join(";")}var V$=8,K$=1<<18,SI=new WeakMap,wS=new WeakMap,RI=null;function $$(e){let t=wS.get(e);if(t)return t;let n=RI?.deref();return t=(n&&n.valuesToken===e.valuesToken?wS.get(n):void 0)??{},wS.set(e,t),RI=new WeakRef(e),t}var U$=256,Y$=9;function X$(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
|
|
10
|
+
`||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&&!`
|
|
11
|
+
\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>Y$)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 Mg(e){if(e.length===0||e.length>U$)return null;let t=X$(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 s=t[l];if(s.quoted||!s.value.startsWith("\\"))continue;let d=s.value.toLowerCase();if(d==="\\f"){let c=t[l+1];c&&c.value.length>0&&c.value.length<=chunkPWTRJSES_cjs.Ij&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,l+=1);continue}if(d==="\\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}d==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function Bg(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 chunkPWTRJSES_cjs.Kj(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(chunkPWTRJSES_cjs.b(i)){let l=e.code<=255&&e.code+chunkPWTRJSES_cjs.Gj<=chunkPWTRJSES_cjs.Hj?e.code+chunkPWTRJSES_cjs.Gj:e.code;if(l>=chunkPWTRJSES_cjs.Gj&&l<=chunkPWTRJSES_cjs.Hj)return {text:chunkPWTRJSES_cjs.d(String.fromCodePoint(l),i),props:o,style:a}}return chunkPWTRJSES_cjs.Kj(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function Lg(){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,d=l&&i&&!(n&&!r)?Ca(e.kind,i,e):"";return o(),l?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}function q$(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,p=false,g=false,m=_l(),h=Lg(),y={left:chunk5RRAZMBU_cjs.c},b=chunk5RRAZMBU_cjs.b(t,y),x=0,R=()=>b===null||b.visible(),P=(F,T,v)=>{let C=v!==void 0&&rg(v);u&&(!p||C)||(u=F,f=T,p=C);},S=(F,T,v)=>{if(!(F.kind==="textValue"||T>Yt)){for(let C of F.children)if(C.kind!=="textValue"){if(!Xt(o))return;if(C.kind==="run"){let I=Ra(C,l,s),O=je(I,d);for(let k of C.children){if(k.kind==="runProperties")continue;if(gn(k,"begin")){b?.consume(k),Hl(m),m.nesting===1&&h.reset();continue}if(Ta(k)){jl(m,k,o,T+1);continue}if(gn(k,"separate")){b?.consume(k);let D=m.nesting,H=m.phase,W=Wl(m);if(D===1||H==="result"&&!m.nestingOverflow){let $=R()&&!pd(m);h.onSeparate(r&&$?W:null,D);}continue}if(gn(k,"end")){b?.consume(k);let D=h.onEnd(m.nesting,r);D!==null&&(c+=D),zl(m);continue}if(chunkPWTRJSES_cjs.Af(k)||!R())continue;if(chunkPWTRJSES_cjs.Jj(k)){if(Ye(v,i,e.authorFilter)&&(g=true),h.active){h.noteResult(!O.hidden&&Ye(v,i,e.authorFilter));continue}let D=chunkPWTRJSES_cjs.Lj(k);if(!D?.unicode||O.hidden||!Ye(v,i,e.authorFilter))continue;P(I,O),c+=D.text;continue}let E=Ru(k),M=E?E.measureText??E.text:Su(k);if(M.length===0)continue;let A=Do(v),N=!Ye(v,i,e.authorFilter)||k.kind==="deletedText"&&!A;N||(g=true);let L=O.hidden||N;if(h.active){h.noteResult(!L),L||P(I,O,M);continue}L||(P(I,O,M),c+=M);}continue}if(chunkPWTRJSES_cjs.vf(C)){if(!R())continue;let I=b,O=x;b=I===null||O>=chunkPWTRJSES_cjs.Gf?null:chunk5RRAZMBU_cjs.b(C,y),x=O+1,w(C,T,v),b=I,x=O;continue}if(C.kind==="hyperlink"){S(C,T+1,v);continue}if(En(C)&&v.length<Cp){let I=Vn(C);S(C,T+1,I?ar(v,I):v);continue}S(C,T+1,v);}}},w=(F,T,v)=>{let C=h.active?null:cd(chunkPWTRJSES_cjs.xf(F)??"");if(C&&r){if(!Ye(v,i,e.authorFilter))return;let I=c.length;S(F,T+1,v),c=c.slice(0,I),c+=Ca(C.kind,r,C);return}S(F,T+1,v);};return S(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:g}}function TI(e){let t=J$(e);if(!t||e.currentLink)return t;let n=chunkPWTRJSES_cjs.xf(e.simple)??"",r=hd(n)??gd(n),o=r?e.projectFieldLink?.(r):null;return o?{...t,link:o}:t}function J$(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=q$(e),i=chunkPWTRJSES_cjs.xf(t)??"",l=a.resultProps??r,s=Du(i),d=pg(s&&!AO(t)?s:null,n);if(d!==void 0){let m=a.resultStyle??je(r,o);return m.hidden?null:{text:d,props:l,style:m}}let c=cd(i);if(c&&n){let m=a.resultStyle??je(r,o);return m.hidden?null:{text:Ca(c.kind,n,c),props:l,style:m}}if(c&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let m=a.resultStyle??je(r,o);return m.hidden?null:{text:xg(c),props:l,style:m,pageField:Sg(c.kind,c)}}let u=Mg(i);if(u){let m=Bg(u,l,o);if(m)return m.style.hidden?null:{text:m.text,props:m.props,style:m.style}}if(e.refFields){let m=Pi(i);if(m){let h=e.refFields.liveValueOf(t.id,m);if(h!==null){let y=a.resultStyle??je(r,o);return y.hidden?null:{text:h,props:l,style:y}}if(e.bodyPageFields&&e.refFields.pageRefProjectionOf){let y=e.refFields.pageRefProjectionOf(t.id,m);if(y){let b=a.resultStyle??je(r,o);if(b.hidden)return null;if(a.text.length>0)return {text:a.text,props:l,style:b,pageRef:y};if(!a.sawResultContent)return {text:Vl,props:l,style:b,pageRef:y}}}}else if(e.refFields.autonumValueOf&&Gl(i)){let h=e.refFields.autonumValueOf(t.id);if(h!==null){let y=a.resultStyle??je(r,o);return y.hidden?null:{text:h,props:l,style:y}}}}let f=a.text.length===0&&!a.sawResultContent;if(f){let m=hg(i);if(m){let h=yg(m,e.documentProperties);if(h!==null){let y=a.resultStyle??je(r,o);return y.hidden?null:{text:h,props:l,style:y}}}}let p=f?gg(i):null;if(p){let m=a.resultStyle??je(r,o);return m.hidden?null:{text:p.display,props:l,style:m}}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 Q$="\u2612",eU="\u2610";function tU(e){let t=Dl(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function Vu(e,t){e.characterStyleSpec=Du(t),e.symbolSpec=Mg(t),!e.symbolSpec&&(e.linkSpec=hd(t),!e.linkSpec&&(e.formSpec=tU(t),!e.formSpec&&(e.buttonSpec=gg(t),!e.buttonSpec&&(e.docPropertySpec=hg(t),!e.docPropertySpec&&(e.linkSpec=gd(t),e.refSpec=Pi(t),!e.refSpec&&(e.autonumSpec=Gl(t)))))));}function Gre(e,t){if(t.allowPageFields&&t.hasSeparate&&va(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return Vu(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!uo(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null||n.formSpec!==null&&t.hasLegacyFormData}function Vre(e,t){if(t.allowPageFields&&va(e)!==null)return true;let n={symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null};return Vu(n,e),n.symbolSpec!==null||n.buttonSpec!==null||n.docPropertySpec!==null||t.allowRefFields&&n.refSpec!==null&&(t.allowPageRef||!uo(n.refSpec).pageRef)||t.allowAutonum&&n.autonumSpec!==null}function vI(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 FI(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?Q$:eU;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 OI(e,t){let n=pg(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=Bg(e.symbolSpec,e.props,t.themeFonts);if(o)return {text:o.text,props:o.props,style:o.style}}let r=FI(e,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style};if(e.kind&&t.pageContext)return {text:Ca(e.kind,t.pageContext,e.pageSwitches),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:Vl,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)return {text:xg(e.pageSwitches),props:e.props,style:e.style,pageField:Sg(e.kind,e.pageSwitches)};if(e.docPropertySpec){let o=yg(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 CI(e){return e.kind==="drawing"||chunkPWTRJSES_cjs.Jd(e)||chunkPWTRJSES_cjs.od(e)}function II(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=Do(r),l=e.hiddenRun||!Ye(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 MI(e){if(e.kind==="textValue")return;let t=e.children.slice(0,256).find(r=>r.kind!=="textValue"&&r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="ffData");if(!t||t.kind==="textValue"||t.children.length>256||!t.children.some(r=>r.kind!=="textValue"&&r.namespaceUri===chunkPWTRJSES_cjs.la&&(r.localName==="checkBox"||r.localName==="ddList"))||t.children.some(r=>r.kind!=="textValue"&&r.namespaceUri===chunkPWTRJSES_cjs.la&&(r.localName==="entryMacro"||r.localName==="exitMacro")))return;let n=t.children.find(r=>r.kind!=="textValue"&&r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="name");if(!(!n||n.kind==="textValue"))return n.attributes.slice(0,64).find(r=>r.localName==="val"&&(r.namespaceUri===chunkPWTRJSES_cjs.la||r.namespaceUri===""))?.value.slice(0,256).replace(/[\u0000-\u001f\u007f\u202a-\u202e\u2066-\u2069]/g,"").trim()||void 0}function BI(e){let t=chunkPWTRJSES_cjs.Hf(e,{maxNesting:chunkPWTRJSES_cjs.Gf,maxInstructionChars:chunkPWTRJSES_cjs.Ff}),n=t.filter(s=>s.addressing==="atomic"),r=new Set(n.filter(s=>s.kind==="complex").map(s=>s.node.id)),o=new Set(t.filter(s=>s.kind==="complex"&&s.addressing==="editable-result").map(s=>s.node.id)),a=new Set,i=new Set;for(let s of t)s.addressing==="saved-result"&&(s.kind==="simple"?i:a).add(s.node.id);let l=new Set;for(let s of n)for(let d of s.removeNodeIds)l.add(d);return {atomBeginIds:r,editableResultBeginIds:o,savedResultBeginIds:a,savedResultSimpleIds:i,coveredIds:l}}function LI(e,t,n){if(t)return t;let r=chunkPWTRJSES_cjs.xf(e)??"",o=hd(r)??gd(r);return (o?n?.(o):null)??void 0}function vS(e,t,n,r){for(let o=t;o<e.length;o+=1){let a=e[o];e[o]={...a,fieldAtom:{...a.fieldAtom??{formField:false},resultStart:n,resultEnd:r}};}}Object.freeze({marks:Object.freeze(new Map)});function Cd(e,t){return chunkPWTRJSES_cjs.oc(e,t)}function nU(e,t){if(!chunkPWTRJSES_cjs.Fc(e))return null;if(chunkPWTRJSES_cjs.vc(e)||chunkPWTRJSES_cjs.wc(e))return {text:t?.measureSeparatorMarkers?chunkPWTRJSES_cjs.ic:"",...t?.measureSeparatorMarkers?{noteSeparator:chunkPWTRJSES_cjs.vc(e)?"separator":"continuationSeparator"}:{},projected:true,kind:null,noteId:null};let n=chunkPWTRJSES_cjs.tc(e),r=chunkPWTRJSES_cjs.Bc(e)??chunkPWTRJSES_cjs.Cc(e);if(!r)return null;let o=chunkPWTRJSES_cjs.yc(e),a=o!==null?Cd(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?rU(a,r)??null:null,l=a,s=l!==void 0?n?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...s?{nav:s}:{},...l?{scopeId:l}:{}};if(n&&o!==null&&chunkPWTRJSES_cjs.Dc(e))return {text:"",...d};if(!t||!a)return {text:"",...d};let c=t.marks.get(a);return c==null?{text:"",...d}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...d}:{text:c,...d}}function rU(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 AI(e){return chunkPWTRJSES_cjs.tc(e)||chunkPWTRJSES_cjs.uc(e)||chunkPWTRJSES_cjs.vc(e)||chunkPWTRJSES_cjs.wc(e)}function oU(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 EI=new WeakMap;function NI(e){if(!e)return "";let t=EI.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}:${oU(n)}`;return EI.set(e,r),r}function DI(e,t){let n=nU(e,t);if(!n||n.text.length===0&&!n.measureText)return null;let r=n.scopeId&&n.nav?{scopeId:n.scopeId,direction:n.nav}:void 0;return {text:n.text.length>0?n.text:n.measureText??"",extras:{...n.measureText!==void 0?{measureText:n.measureText}:{},...r?{noteNav:r}:{},...n.noteSeparator?{noteSeparator:n.noteSeparator}:{}}}}var Ku=new WeakMap,aU=new WeakMap,iU=new WeakMap,_I=new WeakMap;function Eg(e){return e&&e.kind!=="textValue"?_I.get(e)??null:null}function Ul(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t}function Id(e,t,n){if(t==="all-markup"||e.kind==="textValue")return [];let r=[...gu(gi(e),t,n)],o=e.children.find(s=>s.kind==="paragraphProperties"),a=Eg(o);a&&r.push(a);let i=o&&o.kind!=="textValue"?o.children.find(s=>s.kind==="runProperties"):void 0,l=Eg(i);return l&&r.push(l),r}function FS(e,t,n,r=0){if(t==="all-markup"&&!n||r>=chunkPWTRJSES_cjs.$||e.children.every(g=>g.kind==="textValue"))return e;let o=n?void 0:t==="proposed"?aU:iU,a=o?"":`${t}|${n?.cacheKey??""}`,i=o?o.get(e):Ku.get(e)?.get(a);if(i)return i;let l=e.children,s=null,d=Ul(e,"pPr")?"pPrChange":Ul(e,"rPr")?"rPrChange":null,c=d?l.find(g=>Ul(g,d)):void 0;if(c&&c.kind!=="textValue"){let g=x=>c.attributes.find(R=>R.namespaceUri===chunkPWTRJSES_cjs.la&&R.localName===x)?.value??"",m=g("date"),h={kind:"format",nodeId:c.id,id:g("id"),author:g("author"),...m===""?{}:{date:m}},y=n?pu(n,h,t):t,b=y==="original"?chunkPWTRJSES_cjs.Uj(c):null;y==="proposed"&&(l=l.filter(x=>x!==c)),s=y==="proposed"&&(!n||Nr(n,h))?h:null,b!==null&&(d==="pPrChange"?l=[...b.filter(x=>!Ul(x,"rPr")&&!Ul(x,"sectPr")),...l.filter(x=>Ul(x,"rPr")||Ul(x,"sectPr"))]:l=[...l.filter(chunkPWTRJSES_cjs.Uf),...b.filter(x=>!chunkPWTRJSES_cjs.Uf(x))]);}let u=null;for(let g=0;g<l.length;g+=1){let m=l[g],h=m.kind==="textValue"||m.localName.endsWith("PrChange")?m:FS(m,t,n,r+1);h!==m&&(u??=l.slice(0,g)),u?.push(h);}let f=u||l!==e.children?{...e,children:u??l}:e;if(s&&_I.set(f,s),f===e&&!chunkPWTRJSES_cjs.rb(e))return e;if(o)return o.set(e,f),f!==e&&o.set(f,f),f;let p=Ku.get(e);if(p||Ku.set(e,p=new Map),Fi(p,a,f),f!==e){let g=Ku.get(f);g||Ku.set(f,g=new Map),Fi(g,a,f);}return f}var lU=new Map([[1012,17],[8711,25],[8706,51],[1013,52],[977,53],[1008,54],[981,55],[1009,56],[982,57]]);function sU(e,t){let n=t==="b"?119808:t==="i"?119860:119912;if(e>=65&&e<=90)return n+e-65;if(e>=97&&e<=122)return t==="i"&&e===104?8462:n+26+e-97;if(t==="i"&&e===305)return 120484;if(t==="i"&&e===567)return 120485;if(t!=="i"&&e>=48&&e<=57)return 120782+e-48;let r=t==="b"?120488:t==="i"?120546:120604;if(e>=913&&e<=937&&e!==930)return r+e-913;if(e>=945&&e<=969)return r+26+e-945;let o=lU.get(e);return o===void 0?e:r+o}function HI(e,t){let n=e.format;if(n?.normalText)return {text:e.value,mathStyle:null,mathematicalGlyphs:false};let r=n?.mathStyle??"i";if(r==="p"){let i=t?.trim().toLowerCase()==="cambria math";return {text:e.value,mathStyle:i?"p":null,mathematicalGlyphs:false}}return {text:Array.from(e.value,i=>String.fromCodePoint(sU(i.codePointAt(0),r))).join(""),mathStyle:r,mathematicalGlyphs:true}}var Md=.7,dU=1.25,cU="Cambria Math";function Ng(e){return mi(e,cU)}function Vr(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function fr(e,t,n){return Object.freeze({...e,box:Vr(t,n,e.box.width,e.box.height)})}var uU=4,fU=8,jI=new WeakMap;function mU(e){let t=Ng(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 pU(e,t){if(t===void 0)return {projections:new WeakMap};let n=jI.get(e);n||(n=new Map,jI.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=uU){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function Yl(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 WI(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(Yl(t,n,r));return r.metrics.set(n,a),a}function Ag(e,t,n,r,o,a){let i=Yl(r,o,a),l=WI(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,runStyle:i,box:Vr(0,0,tt(t,i,n),l.height),baseline:l.baseline})}function gU(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:Vr(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=fr(i,o,n-i.baseline);return o+=i.box.width,l});return Object.freeze({kind:"row",items:Object.freeze(a),box:Vr(0,0,o,n+r),baseline:n})}function Tr(e,t,n,r,o){switch(e.kind){case "text":{let a=e.format?.fontFamily,i=HI(e,a??n.fontFamily),l=a&&!i.mathematicalGlyphs?mi(n,a):n,s=e.format??e,d=o.formats.get(s);return d||(d={style:Object.freeze({...l,bold:i.mathStyle===null?e.format?.bold??l.bold:!i.mathematicalGlyphs&&(i.mathStyle==="b"||i.mathStyle==="bi"),italic:i.mathStyle===null?e.format?.italic??(e.format?.normalText?false:l.italic):!i.mathematicalGlyphs&&(i.mathStyle==="i"||i.mathStyle==="bi")}),cache:{styles:new Map,metrics:new Map,formats:new WeakMap}},o.formats.set(s,d)),Ag("text",i.text,t,d.style,r,d.cache)}case "fallback":return Ag("fallback",e.text||"\u2026",t,n,r,o);case "row":return gU(e.items.map(a=>Tr(a,t,n,r,o)),WI(t,n,r,o));case "fraction":{let a=Yl(n,r,o),i=Tr(e.numerator,t,n,r*Md,o),l=Tr(e.denominator,t,n,r*Md,o),s=Math.max(.75,a.fontSizePt*.08),d=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,l.box.width)+s*2,f=i.box.height+d,p=f+c+d,g=p+l.box.height,m=Math.min(g,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:fr(i,(u-i.box.width)/2,0),denominator:fr(l,(u-l.box.width)/2,p),bar:Vr(s/2,f,u-s,c),box:Vr(0,0,u,g),baseline:m})}case "radical":{let a=Yl(n,r,o),i=Tr(e.radicand,t,n,r,o),l=Ag("text","\u221A",t,n,r,o),s=e.degree?Tr(e.degree,t,n,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=s?Math.max(0,s.box.width*.65):0,p=f+l.box.width,g=u+i.baseline,m=Math.max(u+i.box.height,g+(l.box.height-l.baseline));return Object.freeze({kind:"radical",sign:fr(l,f,g-l.baseline),radicand:fr(i,p,u),...s?{degree:fr(s,0,0)}:{},bar:Vr(p,0,i.box.width,d),box:Vr(0,0,p+i.box.width,m),baseline:g})}case "bar":{let a=Yl(n,r,o),i=Tr(e.body,t,n,r,o),l=Math.max(.55,a.fontSizePt*.05),s=Math.max(.35,a.fontSizePt*.035),d=e.position==="top"?l+s:0,c=e.position==="top"?0:i.box.height+s;return Object.freeze({kind:"bar",body:fr(i,0,d),bar:Vr(0,c,i.box.width,l),box:Vr(0,0,i.box.width,i.box.height+s+l),baseline:i.baseline+d})}case "script":{let a=Yl(n,r,o),i=Tr(e.base,t,n,r,o),l=e.subscript?Tr(e.subscript,t,n,r*Md,o):void 0,s=e.superscript?Tr(e.superscript,t,n,r*Md,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=s?Math.max(0,s.box.height-i.baseline*.45):0,p=f+i.baseline,g=p+a.fontSizePt*.08,m=c+Math.max(l?.box.width??0,s?.box.width??0,-d),h=Math.max(f+i.box.height,s?u+s.box.height:0,l?g+l.box.height:0);return Object.freeze({kind:"script",base:fr(i,0,f),...l?{subscript:fr(l,c,g)}:{},...s?{superscript:fr(s,c,u)}:{},box:Vr(0,0,m,h),baseline:p})}case "nary":{let a=Yl(n,r,o),i=Ag("text",e.operator,t,n,r*dU,o),l=Tr(e.body,t,n,r,o),s=e.lowerLimit?Tr(e.lowerLimit,t,n,r*Md,o):void 0,d=e.upperLimit?Tr(e.upperLimit,t,n,r*Md,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,s?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,g=p+i.baseline,m=p+i.box.height+(s?c:0),h=u+c,y=g-l.baseline,x=-Math.min(0,p,y,s?m:0),R=g+x,P=Math.max(p+i.box.height,s?m+s.box.height:0,y+l.box.height)+x;return Object.freeze({kind:"nary",operator:fr(i,(u-i.box.width)/2,p+x),body:fr(l,h,y+x),...s?{lowerLimit:fr(s,(u-s.box.width)/2,m+x)}:{},...d?{upperLimit:fr(d,(u-d.box.width)/2,x)}:{},box:Vr(0,0,h+l.box.width,P),baseline:R})}}}function hU(e,t,n){let r=Ng(n),o={styles:new Map,metrics:new Map,formats:new WeakMap};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:Tr(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function Dg(e,t){let n=pU(e,t);return (r,o)=>{let a=mU(o),i=n.projections.get(r),l=i?.get(a);if(l&&i)return i.delete(a),i.set(a,l),l;let s=hU(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=fU){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,s),s}}function zI(e,t){let n=lr(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 s=o.base+chunkPWTRJSES_cjs.jg(o.paragraph).length;l[16]=e[16]?.filter(d=>d.start>=o.base&&d.end<=s).map(d=>({...d,start:d.start-o.base,end:d.end-o.base})),l[17]=e[17]?.filter(d=>d.start>=o.base&&d.end<=s).map(d=>({...d,start:d.start-o.base,end:d.end-o.base})),l[7]=a,l[18]=i;for(let d of OS(l,t))r.push({...d,start:d.start+o.base,end:d.end+o.base});for(let d of a)e[7]?.push({...d,start:d.start+o.base,end:d.end+o.base});for(let d of i)e[18]?.push({...d,start:d.start+o.base,end:d.end+o.base});}return r}function OS(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])}var yU=1024;function GI(e){return !e.projected||e.breakKind||e.positionalTab||e.inlineDrawing||e.equation||e.anchoredAtom||e.measureText!==void 0||e.noteSeparator||e.noteNav?false:e.text.includes(`
|
|
12
|
+
`)||e.text.includes(chunkPWTRJSES_cjs.mb)}function bU(e,t){let n=e.indexOf(`
|
|
13
|
+
`,t),r=e.indexOf(chunkPWTRJSES_cjs.mb,t);return n<0?r:r<0?n:Math.min(n,r)}function xU(e,t){let{text:n}=e,r=0;for(let o=0;o<yU;o+=1){let a=bU(n,r);if(a<0)break;a>r&&t.push({...e,text:n.slice(r,a)});let i=n[a]===chunkPWTRJSES_cjs.mb;t.push({...e,text:i?chunkPWTRJSES_cjs.mb:`
|
|
14
|
+
`,breakKind:i?"page":"line"}),r=a+1;}r<n.length&&t.push({...e,text:n.slice(r)});}function VI(e){if(!e.some(GI))return e;let t=[];for(let n of e)GI(n)?xU(n,t):t.push(n);return t}function Ma(...e){return VI(zI(e,CS)??OS(e,CS))}function CS(e,t=[],n,r,o,a,i=Ue,l,s,d,c,u,f=false,p,g,m=false,h,y,b){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let x=Wv(b,i,g),R=null,P=[],S=0;r=UF(r,m?void 0:y,()=>k?.atomic?k.atomStart:S);let w,F=BI(e),{atomBeginIds:T,editableResultBeginIds:v,coveredIds:C}=F,I=_l(),O=Fa(),k=null,E=null,M=Lg(),A=Dr,N=(V,ie,K,J,fe,ne,te)=>{if(V.length===0&&!J&&!te?.inlineDrawing)return;let oe=te?.linkOverride??w,ae=Ip(te?.revisionsOverride??A,ie,i,g);if(ae===null)return;let ue=gx(V,K,J,i==="all-markup"?g?.revisionMarkup:void 0,hx(ae,e,g));if(ue.hidden)return yx(b,fe,ne,ae);({text:V,style:K,projected:J}=ue);let ce=zv(ae,te?.revisionsOverride?te.formatSiteOverride??null:R),B=oe?{link:oe}:{};if(J){P.push({text:V,...ce,style:K,start:fe,end:ne,projected:true,...te?.measureText!==void 0?{measureText:te.measureText}:{},...te?.noteNav?{noteNav:te.noteNav}:{},...te?.noteSeparator?{noteSeparator:te.noteSeparator}:{},...te?.inlineDrawing?{inlineDrawing:te.inlineDrawing}:{},...te?.anchoredAtom?{anchoredAtom:true}:{},...te?.equation?{equation:te.equation}:{},...te?.fieldAtom?{fieldAtom:te.fieldAtom}:{},...B});return}V.length!==0&&P.push({text:V,...ce,style:K,start:fe,end:ne,...te?.positionalTab?{positionalTab:te.positionalTab}:{},...fO(te),...B});},L=()=>{if(!k||!k.atomic){k=null,E=null;return}let V=k.atomStart,ie=V+1;if(k.style.hidden){k=null,E=null;return}if(!Ye(k.resultRevisions,i,g)){l&&Do(k.resultRevisions)&&hi(l,V,ie),x(V,ie,k.resultRevisions),k=null,E=null;return}let{resultLink:K,linkSpec:J,formField:fe}=k,ne=mx(k),te=vI(k),oe,ae=()=>{if(oe)return oe;let ce=!K&&J?c?.(J)??null:null,B=K??ce;return oe={...ne,...B?{linkOverride:B}:{},fieldAtom:{formField:fe,...te?{formControl:te}:{}}},oe},ue=OI(k,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f,...p?{refFields:p}:{}});if(ue){let ce=ae(),B=ue.pageField||ue.pageRefField?{...ce,fieldAtom:{formField:k.formField,...ue.pageField?{pageField:ue.pageField}:{},...ue.pageRefField?{pageRef:ue.pageRefField}:{}}}:ce;N(ue.text,ue.props,ue.style,true,V,ie,B);}k=null,E=null;},D=()=>{if(!k)return;let V=!k.resultLink&&k.linkSpec?c?.(k.linkSpec)??null:null,ie=K=>V&&!K.link?{...K,link:V}:K;if(k.atomic){S=k.atomStart;for(let K of k.buffered)P.push({...ie(K),start:S,end:S+(K.end-K.start)}),S+=K.end-K.start;k.cachedText.length>0&&k.buffered.length===0&&(N(k.cachedText,k.props,k.style,false,S,S+k.cachedText.length,{...mx(k),...V?{linkOverride:V}:{}}),S+=k.cachedText.length);}else {let K=P.length;for(let J of k.buffered)P.push(ie(J));k.savedResult&&vS(P,K,k.atomStart,k.bufferOffset),S=k.bufferOffset;}k=null,E=null;},H=(V,ie=false)=>(Do(A)&&l&&hi(l,V,V+1),Ye(A,i,g)?true:(ie||x(V,V+1,A),false)),W=(V,ie,K)=>{let J=S;S+=1;let fe=H(J,K)&&!K?chunkPWTRJSES_cjs.Lj(V):null;return fe?{start:J,text:fe.text,...cv(ie,fe,d)}:null},$=(V,ie,K)=>{if(CI(V)){let ce=S;S+=1;let B=S;if(!s)return;let me=II({node:V,layout:s,hiddenRun:K.hidden,revisions:A,displayMode:i,authorFilter:g});me.recordDeleted&&l&&hi(l,ce,B),me.emit||x(ce,B,A),me.emit&&N("\uFFFC",ie,K,true,ce,B,me.extras);return}if(AI(V)){let ce=S++,B=K.hidden?null:DI(V,a);B&&N(B.text,ie,K,true,ce,ce+1,B.extras);return}let J=px(V);if(J){K.hidden||N(" ",ie,K,false,S,S,{positionalTab:J});return}if(chunkPWTRJSES_cjs.Jj(V)){let ce=W(V,ie,K.hidden);ce&&N(ce.text,ce.props,ce.style,true,ce.start,ce.start+1);return}let fe=Su(V);if(fe.length===0)return;let ne=Do(A),te=!Ye(A,i,g),oe=K.hidden||te||V.kind==="deletedText"&&!ne;te&&!K.hidden&&x(S,S+fe.length,A);let ae=Ru(V),ue=ae?.measureText!==void 0;oe||N(ae?.text??fe,ie,K,ue,S,S+fe.length,{...V.kind==="hardBreak"?uO(V):{},...ue?{measureText:ae.measureText}:{}}),ne&&l&&hi(l,S,S+fe.length),S+=fe.length;},G=(V,ie)=>{if(V.kind!=="run")return;let K=Ra(V,t,r),J=je(K,d);R=Eg(V.children.find(ne=>ne.kind==="runProperties"));let fe=ne=>{if(!k)return;let te=ne!==void 0&&rg(ne);(!k.capturedResultStyle||k.capturedResultStyleIsDirectional&&!te)&&(k.props=K,k.style=J,k.capturedResultStyle=true,k.capturedResultStyleIsDirectional=te),k.capturedResultRevisions||(k.resultRevisions=A,k.resultFormatSite=R,k.capturedResultRevisions=true,!k.resultLink&&w&&(k.resultLink=w));};for(let ne of V.children){if(!Xt(O)){if(D(),Nu(I),M.reset(),ne.kind==="runProperties"||gn(ne,"begin")||gn(ne,"separate")||gn(ne,"end")||Ta(ne)||C.has(ne.id)&&E===null)continue;$(ne,K,J);continue}if(ne.kind!=="runProperties"){if(gn(ne,"begin")){k?.atomic&&(k.hasNestedField=true);let te=T.has(ne.id);if(Hl(I),I.nesting===1){D(),M.reset(),E=te?ne.id:null;let oe=chunkPWTRJSES_cjs.Cf(ne);k={kind:null,pageSwitches:{},symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null,formData:oe,formAccessibleName:oe?MI(ne):void 0,beginId:ne.id,atomic:te,editableResult:v.has(ne.id),savedResult:F.savedResultBeginIds.has(ne.id),atomStart:S,props:K,style:J,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:S,resultRevisions:A,resultFormatSite:R,capturedResultRevisions:A.length>0,formField:chunkPWTRJSES_cjs.Bf(ne),...w?{resultLink:w}:{}},te&&(S+=1);}continue}if(Ta(ne)){jl(I,ne,O,ie+1);continue}if(gn(ne,"separate")){let te=I.nesting===1&&I.phase==="instruction",oe=I.nesting,ae=Wl(I);if(te&&k){k.kind=ae?.kind??null,k.pageSwitches=ae??{};let ue=fd(I);!k.kind&&!ue.overflow&&!I.nestingOverflow&&Vu(k,ue.instruction),k.props=K,k.style=J;}else if(k?.atomic&&I.phase==="result"&&!I.nestingOverflow){let ue=n&&!pd(I);M.onSeparate(ue?ae:null,oe);}continue}if(gn(ne,"end")){let te=I.nesting===1;if(te&&k?.atomic&&I.phase==="instruction"){let ae=fd(I);!ae.overflow&&!I.nestingOverflow&&Vu(k,ae.instruction);}let oe=M.onEnd(I.nesting,n);oe!==null&&k?.atomic&&(k.cachedText+=oe),zl(I),te&&(k?.atomic?L():D());continue}if(!(pd(I)&&k?.atomic)){if(k&&LO(I)){if(chunkPWTRJSES_cjs.Jj(ne)){if(k.atomic){if(Ye(A,i,g)&&(k.sawResultContent=true),M.active){M.noteResult(!J.hidden&&Ye(A,i,g));continue}if(!J.hidden&&Ye(A,i,g)){let Ae=chunkPWTRJSES_cjs.Lj(ne);Ae?.unicode&&(fe(),k.cachedText+=Ae.text);}continue}let ge=W(ne,K,J.hidden);k.bufferOffset=S;let we=ge&&Ip(A,ge.props,i,g);if(!ge||!we)continue;k.buffered.push({text:ge.text,style:ge.style,start:ge.start,end:ge.start+1,projected:true,...we,...w?{link:w}:{},fieldAtom:{formField:k.formField}});continue}let te=k.atomic?null:px(ne),oe=Ru(ne),ae=te?" ":oe?.text??Su(ne),ue=te?0:ae.length;if(ae.length===0)continue;let ce=Do(A),B=Ip(A,K,i,g),me=B===null||ne.kind==="deletedText"&&!ce;if(k.atomic&&!me&&(k.sawResultContent=true),B===null&&(k.atomic?x(k.atomStart,k.atomStart+1,A):x(S,S+ue,A)),ce&&l&&(k.atomic?hi(l,k.atomStart,k.atomStart+1):hi(l,S,S+ue)),me){k.atomic&&M.active&&M.noteResult(false),k.atomic||(S+=ue,k.bufferOffset=S);continue}if(k.atomic){if(M.active){if(M.noteResult(!J.hidden),J.hidden)continue;fe(ae);continue}if(J.hidden)continue;fe(ae),k.cachedText+=oe?.measureText??ae;continue}if(J.hidden){S+=ue,k.bufferOffset=S;continue}k.capturedResultStyle||(k.props=K,k.style=J,k.capturedResultStyle=true),k.buffered.push({text:ae,style:J,start:S,end:S+ue,...te?{positionalTab:te}:{},...oe?.measureText===void 0?{}:{projected:true,measureText:""},...B,...w?{link:w}:{},fieldAtom:{formField:k.formField}}),S+=ue,k.bufferOffset=S;continue}C.has(ne.id)&&E===null&&T.size>0,$(ne,K,J);}}}},z={showFieldCodes:m,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,displayMode:i,authorFilter:g,fieldCodeRanges:h,changeSites:b};if(!Xt(O))return Mx(e,P,{...z,projectMarkup:false});let Y=chunkPWTRJSES_cjs.td(),U=(V,ie)=>{k?.atomic&&(k.hasNestedField=true);let K=S;if(S+=1,V.kind==="textValue"||!H(K)||k?.atomic&&pd(I))return;let J=TI({simple:V,depth:ie,pageContext:n,budget:O,revisions:A,displayMode:i,authorFilter:g,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:w,projectFieldLink:c,documentProperties:u,bodyPageFields:f,...p?{refFields:p}:{}});J&&N(J.text,J.props,J.style,true,K,K+1,{fieldAtom:{formField:false,...J.pageField?{pageField:J.pageField}:{},...J.pageRef?{pageRef:J.pageRef}:{}},...J.link?{linkOverride:J.link}:{}});},X=(V,ie,K,J)=>{let[fe,ne,te]=[P.length,S,w];w=LI(V,te,c);for(let oe of V.children)q(oe,ie+1,K,J+1);w=te,vS(P,fe,ne,S);},q=(V,ie,K,J)=>{if(J>=chunkPWTRJSES_cjs.wa)return;let fe=chunkPWTRJSES_cjs.af(V);if(fe){let te=S++;Do(A)&&l&&hi(l,te,S);let oe=Ng(je(t,d));return !oe.hidden&&!Ye(A,i,g)&&x(te,S,A),oe.hidden||!Ye(A,i,g)?void 0:N("\uFFFC",t,oe,true,te,S,{equation:fe})}if(chunkPWTRJSES_cjs.vf(V)){F.savedResultSimpleIds.has(V.id)&&!k?.atomic?X(V,ie,K,J):U(V,ie);return}if(V.kind==="run"){G(V,ie),R=null;return}if(chunkPWTRJSES_cjs.Uc(V)){if(ie>Yt)return;for(let te of chunkPWTRJSES_cjs.Xc(V))q(te,ie+1,K,J+1);return}if(ie>Yt)return;let ne=V.kind!=="textValue"&&"localName"in V?chunkPWTRJSES_cjs.sd(K,V):K;if(V.kind==="hyperlink"){let te=w;w=o?.(V)??void 0;for(let oe of V.children)q(oe,ie+1,ne,J+1);w=te;return}if(En(V)){let te=Vn(V);if(!te||!Xt(O))return;let oe=A;A=ar(oe,te);for(let ae of V.children)q(ae,ie+1,ne,J+1);A=oe;return}if(chunkPWTRJSES_cjs.ya(V))for(let te of V.children)q(te,ie+1,ne,J+1);};for(let V of e.children)q(V,1,Y,0);return D(),Mx(e,P,z)}var IS=Object.freeze({kinsoku:true,overflowPunctuation:true,characterWrap:false}),$u=e=>!["0","false","off"].includes(e??"");function KI(e){let t=false,n=true,r="doNotCompress",o=Object.create(null),a=Object.create(null);for(let i of e?.children??[]){if(!("localName"in i)||i.namespaceUri!=="http://schemas.openxmlformats.org/wordprocessingml/2006/main")continue;let l=i.attributes.find(c=>c.localName==="val"&&c.namespaceUri===i.namespaceUri)?.value;if(i.localName==="strictFirstAndLastChars"&&(t=$u(l)),i.localName==="noPunctuationKerning"&&(n=!$u(l)),i.localName==="characterSpacingControl"&&(l==="doNotCompress"||l==="compressPunctuation"||l==="compressPunctuationAndJapaneseKana")&&(r=l),i.localName!=="noLineBreaksBefore"&&i.localName!=="noLineBreaksAfter")continue;let s=i.attributes.find(c=>c.localName==="lang"&&c.namespaceUri===i.namespaceUri)?.value.toLowerCase();if(!s||!/^[a-z]{2,3}(?:-[a-z0-9]{2,8}){0,3}$/.test(s))continue;let d=i.localName==="noLineBreaksBefore"?o:a;(Object.keys(d).length<64||Object.hasOwn(d,s))&&(d[s]=(l??"").slice(0,4096));}return Object.freeze({strict:t,punctuationKerning:n,compression:r,before:Object.freeze(o),after:Object.freeze(a)})}function Bd(e,t){let{kinsoku:n,overflowPunctuation:r,characterWrap:o}=IS;for(let a of e)a.localName==="kinsoku"&&(n=$u(a.attributes?.val)),a.localName==="overflowPunct"&&(r=$u(a.attributes?.val)),a.localName==="wordWrap"&&(o=!$u(a.attributes?.val));return {settings:t,kinsoku:n,overflowPunctuation:r,characterWrap:o}}function Ld(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 SU="!%),.:;?]}\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",RU="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFF62\uFFE1\uFFE5",PU="!%),.:;>?]}\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",wU="$([{\xA3\xA5\xB7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFE5D\uFF04\uFF08\uFF0E\uFF3B\uFF5B\uFFE1\uFFE5",kU="! ),.:;?]}\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(" ",""),TU="([{\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",vU="!%),.:;?]}\xA2\xB0\u2019\u201D\u2032\u2033\u2103\u3009\u300B\u300D\u300F\u3011\u3015\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFFE0",FU="$([\\{\xA3\xA5\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5\uFFE6",OU="\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 $I(e,t){let n=e.split("-")[0],r=/^zh-(tw|hk|mo|hant)(-|$)/.test(e),o=n==="zh"?r?kU:PU:n==="ko"?vU:SU,a=n==="zh"?r?TU:wU:n==="ko"?FU:RU;return n==="ja"&&t?.strict&&(o+=OU),o=t?.before[e]??o,a=t?.after[e]??a,{before:o,after:a}}function UI(e,t){if(!e.some(o=>o.localName==="rFonts"&&!!(o.attributes?.eastAsia||o.attributes?.eastAsiaTheme)))return false;let r=je(e,t).fontFamilyEastAsia;return chunkYBMWBXST_cjs.za(r,t.eastAsianFontTableFaces)}function Oi(e){return e>=4352&&e<=4607||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=44032&&e<=55295}var Nt=e=>vl(e)||Oi(e),BS=e=>/[\u1100-\u11ff\u2e80-\u318f\u31c0-\u9fff\ua960-\ua97f\uac00-\ud7ff\uf900-\ufaff\ufe30-\ufe4f\uff01-\uff9f\u{20000}-\u{323af}]/u.test(e),YI=e=>e>=65296&&e<=65305||e>=65313&&e<=65338||e>=65345&&e<=65370,MS=e=>!e.projected&&!e.positionalTab&&!e.inlineDrawing&&!e.equation&&e.end-e.start===e.text.length;function _g(e,t){if(!t.characterWrap&&!e.some(P=>/[\u1100-\u11ff\u2e80-\ud7ff\uf900-\uffef\u{20000}-\u{323af}]/u.test(P.text)||Ld(P.props)))return null;let n=new Map,r=[],o=0;for(let P of e){n.set(P,o);let S=MS(P)?P.text:"\uFFFC".repeat(Math.min(P.text.length,1));r.push(S),o+=S.length;}let a=r.join(""),i=xt(a),l=new Map([[0,"opens"],[a.length,"opens"]]),s=new Set(oo(a,false)),d=new Set,c=/[$¥£₩+-$£¥+\-]?[0-90-9]+(?:[.,:/.,:/][0-90-9]+)*(?:[%%‰])?|[A-Za-z]+/gu;for(let P of a.matchAll(c))if(/[0-9A-Za-z]/u.test(P[0]))for(let S=P.index+1;S<P.index+P[0].length;S++)d.add(S);let u=0,f=0,p=i.some(P=>Oi(P.text.codePointAt(0))),g=p?"ko-kr":/[\u3040-\u30ff\uff66-\uff9f]/u.test(a)?"ja-jp":"zh-cn",m=[],h=false;for(let P of i)/^[\p{P}\p{S}\p{M}]+$/u.test(P.text)||(h=Nt(P.text.codePointAt(0))),m.push(h||Nt(P.text.codePointAt(0)));let y=e.map(P=>Ld(P.props)),b=new Map,x=P=>{let S=b.get(P);return S||(S=$I(P,t.settings),b.set(P,S)),S};for(let P=1;P<i.length;P++){let S=i[P-1],w=i[P],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])<=S.utf16From;)f++;let T=ro(S.text),v=S.text.codePointAt(0),C=w.text.codePointAt(0);if(/[\t\n\f\ufffc]/u.test(S.text+w.text)){l.set(F,"opens");continue}if(Hv.test(S.text+w.text)){l.set(F,"forbidden");continue}let I=false;if(t.kinsoku){let A=y[u]??(t.settings&&(Nt(C)||m[P-1]&&/^[\p{P}\p{S}]+$/u.test(w.text))?g:void 0),N=y[f]??(t.settings&&(Nt(v)||Nt(C)&&/^[\p{P}\p{S}]+$/u.test(S.text))?g:void 0);if(A||N)I=(A?x(A).before.includes(String.fromCodePoint(C)):bu.has(C))||(N?x(N).after.includes(String.fromCodePoint(T)):xu.has(T));else if(I=bu.has(C)||xu.has(T),m[P-1]||Nt(C)){let L=Oi(T)||Oi(C)?"ko-kr":"ja-jp",D=x(L);I||=m[P-1]&&D.before.includes(String.fromCodePoint(C))||Nt(C)&&D.after.includes(String.fromCodePoint(T));}}if(I){l.set(F,"forbidden");continue}if(d.has(F)){l.set(F,"continues");continue}let O=Nt(v)&&!YI(v)||Nt(C)&&!YI(C)||m[P-1]&&/^[\p{P}\p{S}]+$/u.test(S.text),k=t.characterWrap&&(!p||Oi(v)&&Oi(C)),E=Oi(v)&&Oi(C)&&!k,M=s.has(F)||/\s$/u.test(S.text)||/^\s/u.test(w.text)||O&&!E||k;l.set(F,M?"opens":"continues");}let R=new Map;for(let P of e){let S=n.get(P);if(!MS(P)){R.set(P,oo(P.text,false));continue}let w=[];for(let F=1;F<P.text.length;F++){let T=l.get(S+F);(T==="opens"||d.has(S+F)&&T==="continues")&&w.push(F);}w.push(P.text.length),R.set(P,w);}return {boundaries:P=>R.get(P),decision:(P,S)=>MS(P)?l.get(n.get(P)+S)??"forbidden":"opens",cutAllowed:(P,S,w)=>l.get(n.get(P)+S+w)!=="forbidden"&&l.has(n.get(P)+S+w)}}function XI(e,t,n){if(!e.some(d=>BS(d.text)))return null;if(e.some(d=>d.text.includes(" ")||d.wrapAdvanceBefore))return e;let r=[];for(let d of e){if(d.projected||d.equation||d.range.end-d.range.start!==d.text.length||!BS(d.text)){r.push(d);continue}let c=xt(d.text),u=[],f=0;for(let y=1;y<c.length;y++)(Nt(ro(c[y-1].text))||Nt(c[y].text.codePointAt(0)))&&(u.push({from:f,to:c[y].utf16From}),f=c[y].utf16From);if(u.push({from:f,to:d.text.length}),u.length===1){r.push(d);continue}let p=Ce(d.style,d.fontSlot),g=u.map(y=>tt(d.text.slice(y.from,y.to),p,t)),m=g.reduce((y,b)=>y+b,0),h=d.box.x;for(let y=0;y<u.length;y++){let b=u[y],x=m>0?g[y]*d.box.width/m:0,{caretEdges:R,...P}=d;r.push({...P,text:d.text.slice(b.from,b.to),range:{...d.range,start:d.range.start+b.from,end:d.range.start+b.to},box:{...d.box,x:h,width:x}}),h+=x;}}let o=new Set,a=r.map(d=>({text:d.text,props:d.props,style:d.style,start:d.range.start,end:d.range.end,projected:!!(d.projected||d.equation)})),i=_g(a,IS);for(let d=1;d<r.length;d++){let c=r[d-1],u=r[d],f=ro(c.text),p=u.text.codePointAt(0);f===void 0||p===void 0||u.lineEndWhitespace||u.text===`
|
|
15
|
+
`||(c.text.endsWith(" ")||(Nt(f)||Nt(p))&&i?.decision(a[d],0)==="opens"&&Hp(f,p)&&!/[\u00a0\u202f\u2060\ufeff]/u.test(c.text.slice(-1)+u.text[0]))&&o.add(d);}if(o.size===0)return e;let l=n/o.size,s=0;return r.map((d,c)=>(o.has(c)&&(s+=l),s===0?d:{...d,box:{...d.box,x:d.box.x+s}}))}function mr(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===32;)t-=1;return e.slice(0,t)}function Yn(e){if(e.length===0)return false;for(let t of e)if(t!==" "&&t!=="\u3000")return false;return true}function ZI(e,t,n,r){if(n!==" "||!/\S$/u.test(r))return false;let o=t-1;for(;e[o]?.text===chunkPWTRJSES_cjs.mb;)o--;return o<t-1&&e[o]?.style===e[t].style}function qI(e,t){let n=mr(e);return n.length===0||n.length===e.length?void 0:t(n)}function Hg(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 JI(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});}var eM=1e-6;function CU(e){let t=e.length;for(;t>0&&(Yn(e[t-1].text)||(e[t-1].text===`
|
|
16
|
+
`||e[t-1].text===chunkPWTRJSES_cjs.mb)&&e[t-1].box.width===0);)t--;return t===0?e.length:t}function tM(e,t,n,r){if(!t&&qp(e)||!e.some(g=>g.style.shaping))return;let o=CU(e);if(o===e.length)return;let a=Ed(e,t,r),i=1/0,l=-1/0,s=1/0,d=-1/0,c,u=t;if(a.forEach((g,m)=>{if(m<o)i=Math.min(i,g.box.x),l=Math.max(l,g.box.x+g.box.width);else if(Yn(g.text)){if(s=Math.min(s,g.box.x),d=Math.max(d,g.box.x+g.box.width),c!==void 0)return;let h=g.style.shaping;c=h?.runDirection===void 0?t:h.runDirection==="rtl",u=h?.runDirection===void 0?t:h.level%2===1;}}),c===void 0)return t?{from:o,side:"left",hangs:true}:void 0;let f=d<=i+eM?"left":s>=l-eM?"right":void 0;if(f===void 0)return {from:o,side:"right",hangs:false};let p=n?c===t:u===c;if(!(p&&f==="right"&&!t))return {from:o,side:f,hangs:p}}function nM(e,t,n,r,o,a,i,l){let{from:s,side:d,hangs:c}=t,u=e.slice(0,s),f=e.slice(s).reduce((C,I)=>C+I.box.width,0),p=n(u,c?o:Math.max(0,o-f),a===void 0?void 0:Math.max(0,a-f)),g=p.length,m=C=>C.box.x+C.box.width,h=m(p[g-1])-m(u[s-1]),y=e.slice(s).map(C=>({...C,box:{...C.box,x:C.box.x+h}})),b=Ed([...p,...y],i,l);if(!c)return b;let x=g-1;for(;x>0&&!((p[x].wrapAdvanceBefore??0)>0);)x--;let R=1/0,P=-1/0,S=1/0;for(let C=x;C<g;C++)R=Math.min(R,p[C].box.x),P=Math.max(P,m(p[C])),S=Math.min(S,b[C].box.x);let w=R-S,F=Math.min(x===0?r:u[x].box.x,R),T=Math.max(r+o,P),v=C=>d==="left"?Math.max(C,F):Math.min(C,T);return b.map((C,I)=>{if(I<x)return C;let O=C.box.x+w;if(I<g)return w===0?C:{...C,box:{...C.box,x:O}};let k=v(O),E=Math.max(0,v(O+C.box.width)-k);if(k===C.box.x&&E===C.box.width)return C;let M={...C,box:{...C.box,x:k,width:E}};return E<C.box.width&&Yn(C.text)?{...M,lineEndWhitespace:true}:M})}var rM=.001,IU=1e-9;function Uu(e){let t=it(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 Wae(e,t){return e==="center"?"center":e==="justify"||e==="both"?"both":t?e==="left"?"right":"left":e}function MU(e){return e.endsWith(" ")}function BU(e,t){let n=e.length;for(;n>0&&e[n-1].text===chunkPWTRJSES_cjs.mb&&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 oM(e,t,n,r,o,a,i,l,s,d){if(e.length===0||o==="left"||!Number.isFinite(r))return e;if(s){let T=BU(e,v=>oM(v,t,n,r,o,a,i,l,false,d));if(T)return T}let c=e.length;for(;c>0&&e[c-1].box.width===0&&(e[c-1].text===`
|
|
17
|
+
`||e[c-1].text===chunkPWTRJSES_cjs.mb);)c-=1;let u=c;for(;u>0&&e[u-1].lineEndWhitespace;)u-=1;let f=e[c-1],p=u<c?e[u].box.x-n:void 0,g=i!==void 0&&f!==void 0&&Math.abs(f.box.x+f.box.width-n-i)<=rM;if(u<c&&g&&(o==="center"||o==="right")){let T=r-p;if(T<=0)return e;let v=o==="center"?T/2:T,C=(i??0)>=r-rM,I=e[u].box.x+v;return e.map((O,k)=>{if(k<u)return {...O,box:{...O.box,x:O.box.x+v}};if(!C)return {...O,box:{...O.box,x:O.box.x+v}};let E=Math.min(O.box.width,Math.max(0,n+r-I)),M={...O,box:{...O.box,x:I,width:E}};return I+=E,M})}let m=e[e.length-1],h=(T,v=mr(T.text))=>v===T.text?0:T.box.width-tt(v,Ce(T.style,T.fontSlot),t),y=c-1;for(;y>0&&mr(e[y].text)==="";)y-=1;let b=e[y]??m,x=()=>b.box.x-n+b.box.width-h(b,b===m?void 0:mr(b.text)),R=o==="both"&&!l&&i===void 0&&u>0&&u<c,P=i??(p!==void 0&&R?p-h(e[u-1],mr(e[u-1].text)):p)??x(),S=0;if((o==="center"||o==="right")&&g&&f?.text.endsWith(" ")&&!f.lineEndWhitespace){let T=mr(f.text),v=tt(T,Ce(f.style,f.fontSlot),t),C=Math.max(0,f.box.width-v);P-=C,l&&(S=C);}let w=r-P;if(w<-1e-3&&o==="both"&&(!a||d))return GF(e,-w,t,R?u-1:Math.max(0,y));if(w<=IU)return e;if(o==="both"){if(a)return e;let T=XI(e,t,w);if(T)return T;let v=[];for(let k=1;k<Math.min(u,y+1);k+=1)MU(e[k-1].text)&&v.push(k);if(v.length===0)return e;let C=w/v.length,I=new Set(v),O=0;return e.map((k,E)=>(I.has(E)&&(O+=C),O===0?k:{...k,box:{...k.box,x:k.box.x+O}}))}let F=(o==="center"?w/2:w)-S;return e.map(T=>({...T,box:{...T.box,x:T.box.x+F}}))}function LS(e,t,n,r){if(n)return true;let o=(t.pageBreakAfter===true||t.columnBreakAfter===true)&&r?.pageBreakLinesStretch!==true,a=t.manualBreakAfter===true&&r?.unstretchedManualBreakLines===true;if(!o&&!a)return false;let i=false;for(let l of e)l.localName==="jc"&&(i=l.attributes?.val==="distribute");return !i}function aM(e,t,n,r){if(n)return true;if(t.pageBreakAfter!==true&&t.manualBreakAfter!==true)return false;let o={...t.pageBreakAfter===true?{pageBreakAfter:true}:{},...t.manualBreakAfter===true?{manualBreakAfter:true}:{}};return LS(e,o,false,r)}function Yu(e,t,n,r,o,a,i,l=e.some(c=>c.style.shaping?.baseLevel===1),s=false,d=false){let c=o==="both"&&a&&l?"right":o,u=iM(e,t),f=(g,m,h)=>oM(g,t,n,m,c,a,h,l,s,d),p=tM(u,l,a,s);return p?nM(u,p,f,n,r,i,l,s):Ed(f(u,r,i),l,s)}function jg(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 ES(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}}function lM(e){return (e.kerningEnabled??e.kerningMinPt>0)&&e.kerningMinPt>0&&e.fontSizePt>=e.kerningMinPt}var LU=/^[、。〈〉《》「」『』【】〔〕〖〗〘〙〚〛!(),.:;?[]{}]$/u,Xu=/^[〈《「『【〔〖〘〚([{]$/u,AS=/^[、。〉》」』】〕〗〙〛),.]}]$/u,EU=/^[\u3041-\u3096\u30a1-\u30fa][\u3099\u309a]?$/u;function sM(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 dM(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,tt(a.text,Ce(i.style,i.fontSlot),n));}return r}var AU=e=>!e.projected&&!e.style.textOutline&&e.style.shaping?.direction!=="rtl"&&!e.style.underline&&!e.style.strike&&!e.style.doubleStrike&&!e.revisions?.length&&!kl(e.props)&&e.measureText===void 0&&!e.positionalTab&&!e.equation&&!e.inlineDrawing&&e.end-e.start===e.text.length;function NU(e,t,n,r,o){let a=[],i=0,l=e.map(p=>{a.push(i);let g=AU(p)?p.text:"\uFFFC";return i+=g.length,g}).join(""),s=new Map,d=p=>{let g=0,m=a.length;for(;g+1<m;){let h=Math.floor((g+m)/2);a[h]<=p?g=h:m=h;}return e[g]},c=(p,g)=>{if(!n)return false;let m=d(p),h=d(g);return !!(m&&h&&[m,h].every(y=>lM(Ce(y.style,y.fontSlot))&&!/^ko(?:-|$)/i.test(Ld(y.props)??"")))},u=0,f=xt(l);for(let p=0;p<f.length;p++){let g=f[p],m=f[p-1]?.text,h=f[p+1]?.text;for(;u+1<e.length&&a[u+1]<=g.utf16From;)u++;let y=e[u],b=Xu.test(g.text)&&m!==void 0&&Xu.test(m)&&c(f[p-1].utf16From,g.utf16From),x=h!==void 0&&c(g.utf16From,f[p+1].utf16From)&&(AS.test(g.text)&&(Xu.test(h)||AS.test(h)||h==="\uFF1A")||g.text==="\uFF1A"&&(Xu.test(h)||AS.test(h))&&!o&&!y.style.highlight&&!y.style.shading),R=b||x?.5:t&&EU.test(g.text)?.125:0;if(!R)continue;let P=Ce(y.style,y.fontSlot),S=tt(g.text,P,r),w=b||x?tt(g.text,{...P,characterSpacingPt:0},r):S,F=w*R;if(g.text==="\uFF1A"&&h!==void 0){let v=u,C=f[p+1].utf16From;for(;v+1<e.length&&a[v+1]<=C;)v++;let I=e[v],O=Ce(I.style,I.fontSlot);if(Xu.test(h)){let k=tt(h,{...O,characterSpacingPt:0},r);F=Math.min(F,Math.max(0,k/2));}else {let k=r.inkBounds?.(g.text,P),E=r.inkBounds?.(h,O),M=tt(h,O,r);if(!k||!E||![k.left,k.right,E.left,E.right].every(Number.isFinite)||k.left<0||E.left<0||k.right<k.left||E.right<E.left||k.right>w||k.right>S/2+M||E.right>M||I.style.highlight||I.style.shading)continue;F=S/2;}}let T=Math.max(0,Math.min(S,F))/g.text.length;for(let v=u;v<e.length&&a[v]<g.utf16To;v++){let C=e[v],I=Math.max(0,g.utf16From-a[v]),O=Math.min(C.text.length,g.utf16To-a[v]);if(I===O)continue;let k=s.get(C);k||(k=[],s.set(C,k)),k.push({from:I,to:O,reduction:T,glyphOffset:b?-T:x?0:void 0});}}return s}function cM(e,t,n,r=false,o){let a=t.settings?.compression,i=t.settings?.punctuationKerning!==false&&t.settings?.sourceEastAsianFont===true,l=a==="compressPunctuationAndJapaneseKana"&&(o===void 0||Number.isFinite(o)&&o>0&&e.reduce((u,f)=>u+tt(f.text,Ce(f.style,f.fontSlot),n),0)>o+.001);if(!i&&!l)return e;let s=[],d=new WeakMap,c=NU(e,l,i,n,r);for(let u of e){let f=c.get(u);if(!f){s.push(u);continue}let p=0;for(let g of f){g.from>p&&s.push({...u,text:u.text.slice(p,g.from),start:u.start+p,end:u.start+g.from});let m=u.style.characterSpacingPt-g.reduction,h=d.get(u.style);h||(h=new Map,d.set(u.style,h));let y=h.get(m);y||(y=lp(u.style,m),h.set(m,y)),s.push({...u,text:u.text.slice(g.from,g.to),start:u.start+g.from,end:u.start+g.to,style:y,...g.glyphOffset!==void 0?{glyphOffsetPt:g.glyphOffset}:{}}),p=g.to;}p===0?s.push(u):p<u.text.length&&s.push({...u,text:u.text.slice(p),start:u.start+p});}return s}function Ad(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)||!LU.test(a)&&!Ld(t.props))return false;let i=xt(e).at(-1)?.text;if(!i||!/^[\p{Pe}\p{Pf}\p{Po}]$/u.test(i))return false;let l=tt(i,Ce(t.style,t.fontSlot),o);return r-l<=n+.001&&n>=-1e-3}var uM=/^[〈《「『【〔〖〘〚([{]$/u,fM=/^[、。〉》」』】〕〗〙〛),.]}]$/u,Zu=/^[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]$/u,mM=/[〈《「『【〔〖〘〚([{、。〉》」』】〕〗〙〛),.]}:]/u,Ci=.001;function pM(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"&&!kl(e.props)}function gM(e){return e.every(t=>pM(t)&&!t.projected&&!t.fieldAtom&&!t.equation&&!t.positionalTab&&!t.inlineDrawing&&t.measureText===void 0&&t.end-t.start===t.text.length&&xt(t.text).every(n=>/^[ \n\f]$/u.test(n.text)||Nt(n.text.codePointAt(0))||Zu.test(n.text)))}function DU(e){return pM(e)&&!e.projected&&!e.fieldAtom&&!e.equation&&!e.caretEdges&&!e.lineEndWhitespace&&!e.wrapAdvanceBefore&&e.range.end-e.range.start===e.text.length}function _U(e,t,n){let r=[],o=0;for(let[a,i]of e.entries()){if(o+=i.text.length,o>4096||!DU(i))return;let l=Ce(i.style,i.fontSlot),s=0;for(let d of xt(i.text)){if(d.text!==" "&&!Nt(d.text.codePointAt(0))&&!Zu.test(d.text))return;let c=d.utf16To===i.text.length?i.box.width:tt(i.text.slice(0,d.utf16To),l,t),u=c-s,f=i.range.start+d.utf16From,p=0,g=n.length-1;for(;p<g;){let h=p+g+1>>1;n[h].start<=f?p=h:g=h-1;}let m=n[p];r.push({sourceIndex:a,alreadyReduced:Math.max(0,(m.style.characterSpacingPt-i.style.characterSpacingPt)*d.text.length),natural:tt(d.text,{...l,characterSpacingPt:0},t),ink:t.inkBounds?.(d.text,l),reduction:0,shift:0,span:{...i,text:d.text,range:{...i.range,start:i.range.start+d.utf16From,end:i.range.start+d.utf16To},box:{...i.box,x:i.box.x+s,width:u}}}),s=c;}}return r}function NS(e){return e.ink!==void 0&&Number.isFinite(e.ink.left)&&Number.isFinite(e.ink.right)&&e.ink.right>=e.ink.left}function HU(e,t,n,r,o){let a=t.reduce((b,x)=>b+x.box.width,0),i=e.width+a-n;if(i<=Ci||!r.inkBounds||e.drawings.length||!t.some(b=>mM.test(b.text))&&!e.spans.some(b=>mM.test(b.text)))return;for(let b=1;b<e.spans.length;b++){let x=e.spans[b-1];if(Math.abs(x.box.x+x.box.width-e.spans[b].box.x)>Ci)return}let l=e.spans.length,s=_U([...e.spans,...t],r,o);if(!s)return;let d=s.find(b=>b.sourceIndex===l);if(Nt(d.span.text.codePointAt(0))&&!Zu.test(d.span.text)&&n-e.width+Ci<d.natural/2)return;let c=s.at(-1);if(fM.test(c.span.text)&&NS(c)){let b=Math.max(c.natural/2,c.ink.right+(c.span.glyphOffsetPt??0));c.reduction=Math.min(i,Math.max(0,c.span.box.width-b)),i-=c.reduction;}let u=[];for(let b=1;b<s.length;b++){let x=s[b-1],R=s[b],P=x.span.text,S=R.span.text,w,F;if(uM.test(S)&&Nt(P.codePointAt(0))&&!Zu.test(P))w=R,F=true;else if(P==="\uFF1A"&&uM.test(S)||fM.test(P)&&Nt(S.codePointAt(0))&&!Zu.test(S))w=x,F=false;else continue;if(!NS(x)||!NS(R))continue;let T=x.span.box.width+(R.span.glyphOffsetPt??0)+R.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?R.ink.left+(R.span.glyphOffsetPt??0):1/0,T));v>Ci&&u.push({cell:w,capacity:v,left:F});}if(i>u.reduce((b,x)=>b+x.capacity,0)+Ci)return;let f=u;for(;i>Ci&&f.length;){let b=i/f.length,x=[];for(let R of f){let P=Math.min(b,R.capacity);R.cell.reduction+=P,R.left&&(R.cell.shift-=P),i-=P,R.capacity-P>Ci&&x.push({...R,capacity:R.capacity-P});}f=x;}let p=[],g=[],m=[],h=e.spans[0]?.box.x??t[0].box.x,y=0;for(let b of s){let x=b.span,R=b.reduction>0,P={...x,...R?{style:lp(x.style,x.style.characterSpacingPt-b.reduction/x.text.length),glyphOffsetPt:(x.glyphOffsetPt??0)+b.shift}:{},box:{...x.box,x:h,width:x.box.width-b.reduction}};h+=P.box.width,b.sourceIndex<l?(m[b.sourceIndex]??=p.length,p.push(P)):(g.push(P),y+=P.box.width);}m[l]=p.length,e.spans.length=0;for(let b of p)e.spans.push(b);return e.width=n-y,{candidate:g,width:y,spanStarts:m}}function hM(e,t,n,r){let o=new Map;return (a,i,l,s,d,c,u,f)=>{let p=o.get(s.start);if(p)return o.delete(s.start),p;if(!f||!n.inkBounds||!t)return;let g=[],m=i,h=l,y=s,b=d,x=c,R=0;for(;;){let v=e[m];if(v.projected||v.measureText!==void 0||v.equation||v.positionalTab||v.inlineDrawing||v.revisions?.length||(R+=h.length,R>4096||g.length>=256))return;if(g.push({text:h,range:y,props:v.props,style:v.style,fontSlot:v.fontSlot,glyphOffsetPt:v.glyphOffsetPt,fieldAtom:v.fieldAtom,box:{x,y:0,width:b,height:n.lineMetrics(Ce(v.style,v.fontSlot)).height}}),x+=b,y.end<v.end)break;let C=e[m+1];if(!C||t.decision(C,0)==="opens")break;m++;let I=t.boundaries(C)[0]??C.text.length;h=C.text.slice(0,I),y={...s,start:C.start,end:C.start+I},b=tt(h,Ce(C.style,C.fontSlot),n);}let P=0,S=false;for(let v=g.length-1;v>=0;v--){let C=g[v],I=mr(C.text);if(P+=tt(C.text.slice(I.length),Ce(C.style,C.fontSlot),n),I.length){S=true;break}}if(P>0&&S&&x-c-P<=u-a.width+Ci||r&&Ad(g.map(v=>v.text).join(""),e[m],u-a.width,x-c,n))return;let w=HU(a,g,u,n,e);if(!w)return;let F,T=0;for(let v of g){let C=[],I=0;for(;T<w.candidate.length&&w.candidate[T].range.start<v.range.end;){let k=w.candidate[T++];C.push(k),I+=k.box.width;}let O={candidate:C,width:I};F?o.set(v.range.start,O):F={...O,spanStarts:w.spanStarts};}return F}}function yM(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 Mt=.001,jU=32,DS=128;function Wg(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-Mt&&a>t+Mt}function WU(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 s of [a.input.polygon,a.input.clipPolygon])for(let d of s??[])if(o(d.y-i),o(d.y+l),r.size>DS)return;if(r.size>DS)return}return [...r].filter(Number.isFinite).sort((a,i)=>a-i)}function zU(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)<Mt||Math.abs(a.x-n)<Mt||Math.abs(a.y-r)<Mt||Math.abs(a.y-o)<Mt)&&(Math.abs(a.x-l.x)<Mt||Math.abs(a.y-l.y)<Mt)}):false}function Ba(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(p=>p.input.mode==="square"||p.input.mode==="topAndBottom"||p.input.mode==="tight"&&zU(p.input.polygon)),l,s=()=>l??=n.filter(p=>Wg(p,r,o)),d=p=>{let g=p,m=[...s()].sort((h,y)=>h.verticalBand.y-y.verticalBand.y);for(let h of m){if(h.verticalBand.y>=g+t-Mt)break;g=Math.max(g,h.verticalBand.y+h.verticalBand.height);}return g-e},c=0,u=false,f=e;for(let p=0;p<jU;p++){let g=i.filter(x=>x.verticalBand.y<f+t-Mt&&x.verticalBand.y+x.verticalBand.height>f+Mt);if(g.length===0&&!u)return f-e;let m=g.some(x=>x.sourceKind==="table"&&Wg(x,r,o));if(a===0&&!m&&!u)return f-e;let h=[{start:r,end:o}],y=[f+Mt,f+t-Mt];for(let x of g)y.push(Math.max(f,x.verticalBand.y)+Mt);for(let x of y)if(h=zp(h,Wr(x,i,r,o)).filter(R=>R.end-R.start>=a-Mt),h.length===0)break;if(h.length>0){if(!u&&(!m||i.length===n.length))return f-e;let x=WU(s(),f,f+t);if(!x)return d(f);let R=[{start:r,end:o}],P=[f+Mt,f+t-Mt];for(let S of x)S>f&&S<f+t&&(P.push(Math.max(f+Mt,S-Mt)),P.push(Math.min(f+t-Mt,S+Mt)));for(let S of P){if(++c>DS)return d(f);if(R=zp(R,Wr(S,n,r,o)).filter(w=>w.end-w.start>=a-Mt),R.length===0)break}if(R.length>0)return f-e;u=true,f=Math.min(f+t,x.find(S=>S>f+Mt)??1/0);continue}m&&i.length!==n.length&&(u=true);let b=1/0;for(let x of g){let R=x.verticalBand.y+x.verticalBand.height;R>f+Mt&&(b=Math.min(b,R));}if(!Number.isFinite(b)||b<=f||b-e>1e5)return u?d(f):f-e;f=b;}return u?d(f):f-e}function _S(e,t,n,r){if(e.anchorParagraphId!==t||e.pageFramedBand)return true;let o=r.get(e.anchorModelStart);return o!==void 0&&n.start>=o?true:n.end>=e.anchorModelStart}function GU(e,t,n,r,o,a,i,l){let s=ya(i,e.height,e.baseline).height;if(n<=s+.001||e.spans.length===0&&e.drawings.length===0)return 0;let d=Wr(t,r,o,a,s),c=Wr(t,r,o,a,n),u=(b,x)=>x.some(R=>b.x>=R.start-.001&&b.x+b.width<=R.end+.001),f=e.spans.some(b=>b.text.trim()&&u(b.box,d)&&!u(b.box,c)),p=e.drawings.some(b=>u(b,d)&&!u(b,c));if(!f&&!p)return 0;if(e.spans.some(b=>b.text.includes(" ")))return null;let g=1/0,m=-1/0;for(let b of e.spans)g=Math.min(g,b.box.x),m=Math.max(m,b.box.x+b.box.width);for(let b of e.drawings)g=Math.min(g,b.x),m=Math.max(m,b.x+b.width);let h=c.find(b=>Math.max(g,b.start)+m-g+l<=b.end+.001);if(!h)return null;let y=Math.max(0,h.start-g);for(let b=0;b<e.spans.length;b++){let x=e.spans[b];e.spans[b]={...x,box:{...x.box,x:x.box.x+y}};}for(let b=0;b<e.drawings.length;b++)e.drawings[b]=pr(e.drawings[b],y,0);return e.width+=y,y}function bM(e){let t,n,r=(m=false)=>{let h=e.line();if(!m&&(t===h||e.holdsContent()))return;let y=e.zones();if(y.length===0)return;let b=e.measurer.lineMetrics(e.emptyStyle),x=so(e.top(),h.height>0?h.height:b.height,y,e.spaceAbove?.()??0);x>(m?h.exclusionSkipBefore??0:0)+.001&&(t=h,n=h,h.exclusionSkipBefore=x);},o=(m,h)=>{let y=m.exclusionSkipBefore??0,b=y>.001?0:Math.max(0,e.spaceAbove?.()??0);m.exclusionSkipBefore=y+h+b,m.width=0,t=m,n=void 0;},a=(m,h)=>{let y=e.line();if(e.holdsContent())return;r();let b=e.zones();if(b.length===0)return;let x=e.measurer.lineMetrics(h),R=m.codePointAt(0),P=R===void 0?"":String.fromCodePoint(R),S=Ba(e.top()+(y.exclusionSkipBefore??0),Math.max(x.height,ya(e.lineSpacing,x.height,x.baseline).height),b,e.left(),e.right,e.measurer.measure($t(P,h),h));S>.001&&o(y,S);},i=(m,h)=>{let y=e.line(),b=e.holdsContent();r();let x=e.zones();if(x.length===0)return;let R=Ba(e.top()+(y.exclusionSkipBefore??0),Math.max(y.height,h+Math.max(0,y.height-y.baseline)),x,e.left(),e.right,Math.min(y.width+m,Math.max(0,e.right-e.left())));R>.001&&(y.exclusionSkipBefore=(y.exclusionSkipBefore??0)+R,b||(y.width=0),t=y,n=void 0);},l=(m,h)=>{let y=e.line();if(e.holdsContent())return false;let b=e.zones();if(b.length===0)return false;let x=e.left(),R=Ba(e.top()+(y.exclusionSkipBefore??0),h,b,x,e.right,Math.min(m,Math.max(0,e.right-x)));if(!(R>.001))return false;let P=e.regionBottom;return P!==void 0&&e.top()+(y.exclusionSkipBefore??0)+R+h>P+.001&&b.some(S=>S.anchorParagraphId===e.paragraphId&&S.input.mode!=="topAndBottom")?false:(o(y,R),true)},s=()=>{let m=e.line(),h=e.zones();if(h.length===0)return;let y=so(e.top(),m.height,h,e.spaceAbove?.()??0),x=n===m&&h.every(R=>R.input.mode==="topAndBottom")?y:Math.max(y,m.exclusionSkipBefore??0);x>.001?m.exclusionSkipBefore=x:delete m.exclusionSkipBefore;},d,c=(m,h)=>{let y=d.select(e.zones()),b=m.exclusionSkipBefore??0,x=gO(e.top()+b,h,y,e.left(),e.right);x>.001&&(m.exclusionSkipBefore=b+x,t=m,n=void 0);};return {applyBreakClearance:m=>{let h=e.line();h.breakClearance=true,r(),d={line:h,select:m};let y=e.measurer.lineMetrics(e.emptyStyle);c(h,ya(e.lineSpacing,y.height,y.baseline).height);},commitBreakClearance:()=>{let m=e.line();d?.line===m&&(c(m,m.height),d=void 0);},clearEmptyParagraph:m=>{let h=e.line();if(e.holdsContent())return;let y=e.zones(),b=e.top()+(h.exclusionSkipBefore??0),x=e.measurer.measure("\xB6",e.emptyStyle),R=Ba(b,h.height,y.filter(S=>S.anchorParagraphId!==m),e.left(),e.right,x),P=Ba(b,h.height,e.clearOwnEmptyAnchor===false?y.filter(S=>S.anchorParagraphId!==m):y,e.left(),e.right,x);if(P>.001){let S=b+R+Ba(b+R,h.height,y.filter(w=>w.anchorParagraphId===m),e.left(),e.right,x);Ba(S,h.height,y.filter(w=>w.anchorParagraphId!==m),e.left(),e.right,x)>.001&&(R=P),h.exclusionSkipBefore=(h.exclusionSkipBefore??0)+P,h.anchorClearanceBefore=R;}},clearBlockedEmptyLine:()=>{let m=e.line();if(e.holdsContent())return;let h=e.zones().filter(P=>P.sourceKind!=="table"&&P.furnitureSource?.kind!=="table");if(h.length===0)return;let y=e.top()+(m.exclusionSkipBefore??0),b=e.measurer.measure("\xB6",e.emptyStyle),x=e.left(),R=Ba(y,m.height,h,x,e.right,b);R>.001&&o(m,R);},applyTopAndBottomSkipIfNeeded:r,applyNarrowWrapSkipIfNeeded:a,applyInlineObjectSkipIfNeeded:i,applyOpeningSegmentSkipIfNeeded:l,finalizeTopAndBottomClearance:s}}function xM(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 ya(e.lineSpacing,l,i).height};return {setMetrics:(a,i=1/0)=>{t=a,n=i;},setWidth:a=>{n=a;},height:o,intervals:a=>Wr(r(),a,e.left,e.right,o()),relocate:a=>GU(e.line(),r(),o(),a,e.left,e.right,e.lineSpacing,n)}}function SM(e,t){let n=e[t+1];return e[t]?.text===chunkPWTRJSES_cjs.mb&&n?.text===`
|
|
18
|
+
`&&n.breakKind==="line"}function qu(e){return !!e.projected||!!e.positionalTab||e.end-e.start!==e.text.length}function RM(e){if(e.measureText!==void 0)return false;if(!qu(e))return true;let t=e.fieldAtom;return !e.positionalTab&&!e.noteNav&&!e.noteSeparator&&!t?.pageField&&!t?.pageRef&&!t?.formControl}function PM(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 s=t[0]?.start??0,d=[s],c=0,u=0,f="",p=0,g=-1,m=()=>u===0?o:0,h=()=>Math.max(1,r-m()),y=b=>{s=b,d.push(b),c=0,u+=1;};for(let[b,x]of t.entries()){let R=i(x);if(R){let w=R.geometry.box.width;c>0&&c+w>h()&&y(x.start),c+=w,f="",g=-1;continue}if(x.inlineDrawing){let w=dr(x.inlineDrawing.projection).totalWidth;c>0&&c+w>h()&&y(x.start),c+=w,f="",g=-1;continue}if(x.text===chunkPWTRJSES_cjs.mb&&(e.pageBreaksIgnored||SM(t,b)))continue;if(x.text===`
|
|
19
|
+
`||x.text===chunkPWTRJSES_cjs.mb){y(x.end);continue}let P=qu(x),S=0;for(let w of e.cjkBreaks?.boundaries(x)??oo(x.text,!P)){let F=x.text.slice(S,w);if(F.length===0)continue;let T=Ce(x.style,x.fontSlot),v=A=>n.measure($t(A,T),T),C=x.fieldAtom?.formControl?.kind==="checkbox"?T.fontSizePt:v(x.measureText??F);if(!P&&x.measureText===void 0){let A=h()-c;C=Hg(F,C,A,v,.001)?.width??C,c>0&&Yn(F)&&(C=Math.min(C,Math.max(0,A)));}let I=x.start+S,O=e.cjkBreaks?.decision(x,S)??nd(f,F,S>0),k=O==="opens";k&&(p=I,g=c);let E=e.typography?.overflowPunctuation&&Ad(F,x,h()-c,C,n),M=e.colonNaturalWidths?.get(x)??C;if(!E&&c>0&&c+M>h()){if(!(O==="forbidden"&&g<=0))if(k||g<=0)y(I);else {let A=c-g;y(p),c=A;}g=0;}c+=C,f=F,S=w;}}for(let b of a){let x=0,R=d.length-1;for(;x<R;){let P=x+R+1>>1;d[P]<=b?x=P:R=P-1;}l.set(b,d[x]);}return l}function VU(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 wM(e,t,n,r){if(n<=r.remainingLineWidth()+r.overflowTolerancePt)return {text:e,modelStart:t,width:n,brokeLine:false};let o=xt(e),a=0,i=0,l=n,s=false;for(;a<o.length&&l>r.remainingLineWidth()+r.overflowTolerancePt;){if(o.length-a===1){if(r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),s=true;continue}break}let c=r.remainingLineWidth(),u=a+1,f=o.length-1,p=a;for(;u<=f;){let h=u+f>>1,y=o[h-1].utf16To;r.measureText(e.slice(i,y))<=c+r.overflowTolerancePt?(p=h,u=h+1):f=h-1;}if(p===a&&r.lineHasText()&&!(i===0&&r.keepWithPrevious)){r.closeLine(),s=true;continue}if(p===a&&(p+=1),p=VU(e,o,a,p,r.cutAllowedAt),p===o.length)break;let g=o[p-1].utf16To,m=e.slice(i,g);if(g<e.length&&mr(e).length<=g){let h=Math.max(r.measureText(m),c);return {text:e.slice(i),modelStart:t+i,width:h,brokeLine:s}}r.appendPrefix({text:m,modelStart:t+i,width:r.measureText(m)}),(r.closeCutLine??r.closeLine)(),s=true,a=p,i=g,l=r.measureText(e.slice(i));}return {text:e.slice(i),modelStart:t+i,width:l,brokeLine:s}}var kM="\xAD";function zg(e,t){let n=e.shaping,r=n?.context;if(!n||!r)return null;let o=r[t];if(!(t==="after"?o.startsWith(kM):o.endsWith(kM)))return null;let i={...r,[t]:""},{context:l,...s}=n;return {...e,shaping:i.before||i.after?{...s,context:i}:s}}function Gg(e,t,n,r){let o=Ce(t,n);return r.measure($t(e,o),o)}function TM(e,t,n){let r=e&&zg(e.style,t);return !e||!r?0:Gg(e.text,r,e.fontSlot,n)-e.box.width}function HS(e,t,n,r){let o=e.spans[t],a=o&&zg(o.style,n);if(!o||!a)return;let i=Gg(o.text,a,o.fontSlot,r),l=i-o.box.width;e.spans[t]={...o,style:a,box:{...o.box,width:i}};for(let s=t+1;s<e.spans.length;s+=1){let d=e.spans[s];e.spans[s]={...d,box:{...d.box,x:d.box.x+l}};}e.width+=l;}function KU(e,t=0,n=0){return {span:t,width:n,end:e.end,height:e.height,baseline:e.baseline}}function $U(e,t,n){if(e.drawings.length>0)return false;for(let r=0;r<t;r+=1)if(!n||e.spans[r].text!==chunkPWTRJSES_cjs.mb)return false;return true}function vM(e,t){e.width=t.width,e.end=t.end,e.height=t.height,e.baseline=t.baseline;}function FM(e,t){t&&e.applyNarrowWrapSkipIfNeeded(t.text,Ce(t.style,t.fontSlot)),e.lineAvailable();}function OM(e,t,n){let r=e.lineAvailable();t>r-e.line().width+.001&&e.ensurePlacementWidth(t),FM(e,n);}function CM(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===chunkPWTRJSES_cjs.mb)continue;let o=Ce(r.style,r.fontSlot),a=jr(r,$t(r.text,o));Nd(n,e.measurer.lineMetrics(o,a),r.text,o);}}function UU(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||!$U(r,t.span,e.pageBreaksIgnored))return false;let s={width:r.width,end:r.end,height:r.height,baseline:r.baseline},d=r.exclusionSkipBefore,c=l-a.box.x+n;return vM(r,t),r.spans=[],e.setProbeWidth(c),OM(e,c,a),r.spans=o,r.exclusionSkipBefore===d&&Math.abs(e.lineOrigin()+r.width-a.box.x)<=.001?Object.assign(r,s):CM(e,o.splice(t.span)),e.setProbeWidth(n),true}function jS(e,t,n){if(UU(e,t,n))return t;let r=e.line(),o=r.spans.splice(t.span);vM(r,t);let a=o.reduce((s,d)=>s+d.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=KU(r)),FM(e,l)):OM(e,a,l),CM(e,o),e.setProbeWidth(n),i}var WS="\xAD",zS="-";function GS(e){return e.text===WS&&e.range.end-e.range.start===1&&e.projected===true}function Vie(e){return e.optionalHyphenBreak?zS:GS(e)||!e.text.includes(WS)?e.text:e.text.replaceAll(WS,zS)}function IM(e,t){return t.measure(zS,Ce(e.style,e.fontSlot))}function YU(e,t,n,r,o,a){for(let i=e.spans.length-1;i>=Math.max(0,t);i-=1){let l=e.spans[i];if(!GS(l))continue;let s=l.box.x+l.box.width-n,d=TM(e.spans[i-1],"after",o);if(!(s+d+IM(l,o)>r+a))return {span:i+1,width:s,end:l.range.end,height:e.height,baseline:e.baseline}}return null}function XU(e,t){if(!GS(e.spans.at(-1))||e.spans.at(-1).optionalHyphenBreak)return;HS(e,e.spans.length-2,"after",t);let n=e.spans.at(-1),r=IM(n,t);e.spans[e.spans.length-1]={...n,box:{...n.box,width:r},optionalHyphenBreak:true},e.width+=r-n.box.width;}function MM(e,t,n,r,o){let a={...e,closeLine:()=>{XU(e.line(),e.measurer),e.closeLine();}},i=d=>r&&e.line().width+n>e.lineAvailable()+o?YU(e.line(),d,e.lineOrigin(),e.lineAvailable(),e.measurer,o):null,l=i(t.span),s=l?t:jS(e,t,n);for(l||(l=i(s.span));l;){let d=e.line();if(s=jS(a,l,n),e.line()===d)break;HS(e.line(),0,"before",e.measurer),l=i(s.span);}return s}function BM(e){let t=i=>`${i.kind}|${i.id}|${i.author}|${i.nodeId}`,n=i=>{let l=new Set,s=[];for(let d of i)if(d)for(let c of d){let u=t(c);l.has(u)||(l.add(u),s.push(c));}return s},r=new Set;return {changeSitesOn:(i,l,s)=>{let d=[];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),d.push(...c.revisions));}return n([s,...l.map(c=>c.changeSites),d])},claimTrailingChangeSites:i=>{let l=i[i.length-1];if(!l)return;let s=e.filter(d=>!r.has(d));if(s.length!==0){for(let d of s)r.add(d);l.changeSites=n([l.changeSites,...s.map(d=>d.revisions)]);}}}}function LM(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 s=a.text[l];s===chunkPWTRJSES_cjs.mb&&t?i[l]=i[l+1]:s===`
|
|
20
|
+
`||s===chunkPWTRJSES_cjs.mb?i[l]=0:s!==" "&&!Yn(s)?i[l]=1:i[l]=i[l+1];}n[o]=i,r=i[0]===1;}return n}var ZU=/[\u0590-\u08ff\ufb1d-\ufdff\ufe70-\ufeff]/u;function EM(e,t,n,r,o=false){let a=0,i=0,l=false,s=false,d,c=()=>({width:a,decimalOffset:l?i:a,rtlDecimalOffset:!l||s?l?i:a:a-i});for(let u=t;u<e.length;u+=1){let f=e[u],p=Ce(f.style,f.fontSlot),g=u===t?n:0,m=g;for(;m<f.text.length;){let R=f.text[m];if(R===" "||R===`
|
|
21
|
+
`||R===chunkPWTRJSES_cjs.mb&&!o)break;m+=1;}let h=R=>{let P=f.text.slice(g,R);return o?P.replaceAll(chunkPWTRJSES_cjs.mb,""):P},y=R=>R>g?r.measure($t(h(R),p),p):0,b=y(m);if(!l){let R=f.text.indexOf(".",g);if(R!==-1&&R<m){l=true;let P=h(R).at(-1)??(d?.broken&&d.end===f.start&&qU(d.piece,f)?d.char:void 0);s=P!==void 0&&ZU.test(P),i+=y(R);}else i+=b;}if(a+=b,m<f.text.length)return c();let x=h(m).at(-1);x!==void 0?d={piece:f,char:x,end:f.end,broken:false}:d?.end===f.start&&o&&f.text===chunkPWTRJSES_cjs.mb?d={...d,end:f.end,broken:true}:d=void 0;}return c()}function qU(e,t){let n=t.style.shaping;if(!n||!e.style.shaping)return false;let{context:r}=e.style.shaping;return dp(e.style,{...t.style,shaping:{...n,context:r}})}function AM(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 Ju=31680;function Dd(e){let t=chunkPWTRJSES_cjs.nd(e);return t===null?null:t>Ju?chunkPWTRJSES_cjs.jd(Ju):t<-Ju?chunkPWTRJSES_cjs.jd(-Ju):chunkPWTRJSES_cjs.jd(t)}function kd(e){let t=0,n=0,r=it(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,s=r?a:i,d=Dd(l),c=Dd(s);d!==null&&(t=chunkPWTRJSES_cjs.ld(d)),c!==null&&(n=chunkPWTRJSES_cjs.ld(c));}return {left:t,right:n}}function _d(e,t){let n=Math.max(0,e.hanging-e.firstLine);return t?{left:0,right:n}:{left:n,right:0}}var Hd=.001;function YS(e,t,n,r,o,a,i,l=[],s=hu,d,c,u,f=false){let p=i!==null&&a?a.get(i):void 0;if(p)return p;let g=u?.lineSpacing??lu,m=u?.cellAnchorScope?.inTableCell===true,h=[],y=[],b=Ma(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??Ue,h,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false,u?.refFields,u?.revisionAuthorFilter,u?.showFieldCodes,u?.fieldCodeRanges,u?.tocLinkStyleRanges,y),x=()=>Xe("children"in e?e.children.find(Z=>Z.kind==="paragraphProperties"):void 0),R=u?.paragraphRtl??it(x()),P=$g(b,R,Kg(e),m),S=Math.max(0,u?.startOffset??0),w=u?.firstLineAfterLeadingBreaks===true,F=S===0||w&&DM(P,S),T=F?u?.firstLineOffset??0:0,v=F?u?.firstLineMinimumBaseline??0:0,C=F?Math.max(0,u?.firstLineMarkerAscent??0):0,I=P.flatMap(Z=>{if(Z.end<=S&&!((S===0||u?.showFieldCodes)&&Z.projected&&Z.start===Z.end&&Z.start===S))return [];if(Z.start>=S)return [Z];let j=S-Z.start;return [{...Z,text:Z.projected?Z.text:Z.text.slice(j),start:S}]}),O=u?.typography??Bd(x()),E=cM(I,O,o,f,r),M=dM(E,I,o),A=O.settings?.compression!==void 0&&O.settings.compression!=="doNotCompress"&&!u?.pageExclusionZones?.length&&o.inkBounds!==void 0&&gM(P),N=A&&!f,L=LM(E,m),D=OF(u?.cellAnchorScope,b),H=WF(E),W=_g(E,O),$=hM(E,W,o,O.overflowPunctuation),G=Dg(o,u?.equationCacheToken),z=Z=>Z.equation?G(Z.equation,Z.style):null;if(E.length===0&&u?.suppressEmptyPlaceholderLine)return [];let Y=u?.markRunProperties??l,U=Y.length===0?rr:je(Y,u?.themeFonts),X=Y===l?U:l.length===0?rr:je(l,u?.themeFonts),q=tg(Y),V=q===Y?U:je(q,u?.themeFonts),ie=E.length===0?U:o.lineMetrics(V).height<o.lineMetrics(X).height?V:X,K=n+r,J=u?.contentLeft??n,fe=u?.contentRight??K,ne=u?.contentOriginX??0,te=Math.max(0,(u?.marginExtent?.right??K)-K),oe=Math.min(fe,ne+K),ae=[],ue=false,ce=0,B={spans:[],start:S,end:S,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},me=new Map,ge=u?.displayMode??Ue,we=(()=>{let Z=new Set;if(!u?.inlineDrawingLayout)return Z;let j=Tn(e);for(let pe of at(e,u.inlineDrawingLayout)){if(!Ye(pe.revisions,ge,u?.revisionAuthorFilter)||_o(pe.revisions,ge,u?.revisionAuthorFilter)||pe.projection.wrap!=="topAndBottom")continue;let he=j.get(pe.atomId);he!==void 0&&he>=S&&Z.add(he);}return Z})(),Ae=(()=>{let Z=new Set;if(!u?.inlineDrawingLayout)return Z;let j=Tn(e);for(let pe of at(e,u.inlineDrawingLayout)){if(!Ye(pe.revisions,ge,u?.revisionAuthorFilter)||_o(pe.revisions,ge,u?.revisionAuthorFilter)||pe.projection.wrap==="topAndBottom"||pe.projection.wrap==="inline"||pe.projection.wrap==="behind"||pe.projection.wrap==="inFront")continue;let he=j.get(pe.atomId);he!==void 0&&he>=S&&Z.add(he);}return Z})(),xe=[...(u?.pageExclusionZones??[]).filter(Z=>Z.anchorParagraphId===t).map(Z=>Z.anchorModelStart),...we,...Ae],Ne=PM({colonNaturalWidths:M,typography:O,cjkBreaks:W,pieces:E,measurer:o,available:r,firstLineOffset:T,anchorStarts:xe,equationLayoutOf:z,pageBreaksIgnored:m});for(let Z of Ae){let j=Ne.get(Z);j!==void 0&&me.set(Z,j);}let lt=Object.freeze([]),Be=()=>{if(!u?.pageExclusionZones?.length&&me.size===0)return lt;let Z=u?.pageExclusionZones?.filter(st=>!(!_S(st,t,B,Ne)||st.anchorParagraphId===t&&(!st.sourceKind&&st.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],j=u?.cellAnchorScope?.anchorsWrapText!==false,pe=j&&u?.inlineDrawingLayout&&u.anchorCellBox!=null&&me.size>0?lg({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:J,contentRight:fe,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:me,anchorCellBox:u.anchorCellBox,cellAnchorScope:u.cellAnchorScope,...u.layoutTextboxStory?{layoutTextboxStory:u.layoutTextboxStory}:{},displayMode:ge,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]),he=j&&u?.inlineDrawingLayout&&me.size>0?sg({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:J,contentRight:fe,paragraphStartY:(u.anchorParagraphStartY??u.paragraphStartY??0)-(u.paragraphSpaceBefore??0),anchorLineTopByModelStart:me,anchorCellBox:u.anchorCellBox,cellAnchorScope:u.cellAnchorScope,...u.anchorFrameBase?{frameBase:u.anchorFrameBase}:{},displayMode:ge,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]);return Object.freeze([...Z,...pe,...he])},le=true,Se=()=>le,re=()=>_M(B,m),He=()=>Se()?T:0,ve=()=>ne+n+He(),$e=()=>Math.max(1,r-He()),Me=0,ut=()=>Me,Je=()=>(u?.paragraphStartY??0)+ut(),wt=Z=>{we.has(Z)&&me.set(Z,ut());},Ct=()=>{for(let Z of we)Ne.get(Z)===B.start&&!me.has(Z)&&me.set(Z,ut());},{applyTopAndBottomSkipIfNeeded:kt,applyNarrowWrapSkipIfNeeded:We,applyInlineObjectSkipIfNeeded:Wt,applyOpeningSegmentSkipIfNeeded:Dn,finalizeTopAndBottomClearance:_n,clearEmptyParagraph:Fn,clearBlockedEmptyLine:Jt,applyBreakClearance:Tt,commitBreakClearance:ze}=bM({line:()=>B,top:Je,spaceAbove:()=>ae.length===0?u?.paragraphSpaceBefore??0:0,zones:Be,left:()=>Math.max(J,ve()),right:oe,clearOwnEmptyAnchor:u?.anchorCellBox==null,emptyStyle:ie,measurer:o,lineSpacing:g,holdsContent:re,paragraphId:t,...u?.regionBottomY!==void 0?{regionBottom:u.regionBottomY}:{}}),Ft,bt=()=>(Ft??=S>0||!u?.inlineDrawingLayout?[]:hO({...u.anchorFrameBase?{frameBase:u.anchorFrameBase}:{},paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:J,contentRight:fe,paragraphTop:(u.anchorParagraphStartY??u.paragraphStartY??0)-(u.paragraphSpaceBefore??0),displayMode:ge,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}})).filter(Z=>_S(Z,t,B,Ne)),Io=Z=>Z==="all"?j=>yO(j,bt()):pO(Z,Be(),{y:Je()+(B.exclusionSkipBefore??0),height:B.height,left:Math.max(J,ve()),right:oe,penX:ve()+B.width}),rn=xM({line:()=>B,top:Je,left:J,right:oe,lineSpacing:g,initialMetrics:o.lineMetrics(ie)}),Et=rn.intervals,On=(Z,j)=>{let pe=Eu(Z,j);if(!pe)return null;if(pe.x<=Z+.001||B.width>.001||He()<=0)return pe.x;let he=Eu(pe.x+He(),j);return he?he.x:pe.x},xn=()=>{let Z=Be();if(Z.length===0)return true;kt();let j=rn.relocate(Z);if(j===null)return false;In+=j;let pe=Et(Z),he=ve()+B.width,st=On(he,pe);return st===null?false:(st>he+.001&&(B.width=st-ve()),true)},Fe=()=>{let Z=$e(),j=Be();if(j.length===0)return Math.max(Z,ce-ve());if(kt(),!xn())return 0;let pe=Et(j),he=ve()+B.width,st=iO(he,pe);return st<=.001?0:Math.min(Z,B.width+st)},Ze=()=>Math.max(0,Fe()-B.width),on=()=>{if(u?.paragraphRtl)return;let Z=Be();if(Z.length===0)return;let j=Et(Z);if(j.length===0)return;let pe=Math.max(J,ve()),he=Ii(B.spans,B.drawings,pe),st=ve()+B.width,St=j.find(ot=>he>=ot.start-.001&&he<=ot.end+.001);!St||st>St.end+.001||St.start<=J+.001&&St.end>=oe-.001||(B.wrapSegment={start:he,end:St.end});},zt=()=>{let Z=Be();if(Z.length===0||!Z.some(St=>St.anchorParagraphId!==t||B.end>St.anchorModelStart))return false;let pe=Et(Z),he=ve()+B.width,st=false;for(let St of pe){if(!st){he>=St.start-1e-6&&he<St.end-1e-6&&(st=true);continue}if(St.end-St.start>.001)return B.width=St.start-ve(),true}return false},Qe=Z=>{if(xe.length===0||Z<Math.min(...xe))return;let j=Be().filter(ot=>ot.anchorParagraphId===t&&Z>=ot.anchorModelStart);if(j.length===0)return;kt();let pe=Et(j),he=ve()+B.width,st=-1;for(let ot=0;ot<pe.length;ot+=1){let ke=pe[ot];if(he>=ke.start-.001&&he<ke.end-.001){st=ot;break}}if(st>=0)return;let St=On(he,pe);St!==null&&St>he+.001&&(B.width=St-ve());},Ve=Z=>{Be().filter(pe=>pe.input.mode==="topAndBottom"&&pe.anchorParagraphId===t&&Z>=pe.anchorModelStart).length>0&&kt(re());},De=Z=>!NM(E,B.start,ue)&&Dn(Z,rn.height()),Ge=(Z,j=0)=>j>64?Ze()>=Z:(kt(),xn()?Z<=Ze()+.001?true:re()?zt()&&Z<=Ze()+.001?true:(Mn(),Ge(Z,j+1)):zt()||De(Z)?Ge(Z,j+1):true:re()?(Mn(),Ge(Z,j+1)):De(Z)?Ge(Z,j+1):true),Sn=(Z,j)=>h.filter(pe=>pe.start<j&&pe.end>Z).map(pe=>({start:Math.max(pe.start,Z),end:Math.min(pe.end,j)})),{changeSitesOn:ta,claimTrailingChangeSites:Cn}=BM(y),qe=-1,In=0,Hn=0,ye={height:0,baseline:0},jn="",gt,qn=(Z,j)=>{let pe=o.lineMetrics(Z);gt??={height:0,baseline:0},La(gt,pe);let he=VM(pe.baseline,B.height||pe.height,j);return B.height===0?(B.height=he.lineHeight,B.baseline=he.baseline):(he.lineHeight>B.height&&(B.height=he.lineHeight),B.baseline=Math.max(B.baseline,he.baseline)),{extentTopY:he.extentTopY}},Dt=()=>{if(B.drawings.length===0)return;B.spans.every(j=>m&&j.text===chunkPWTRJSES_cjs.mb)&&(B.baseline=Math.max(B.baseline,...B.drawings.map(j=>j.y+j.height)));let Z=KS(B.drawings,B.baseline);B.drawings.splice(0,B.drawings.length,...Z),B.baseline=Math.max(B.baseline,...B.drawings.map(j=>j.y+j.height));},Qa=()=>{if(B.drawings.length===0)return;let Z=KS(B.drawings,B.baseline);B.drawings.splice(0,B.drawings.length,...Z);},Mn=()=>{ue=false,HM(B,m);let Z=B.drawings.length===0&&B.spans.every(Wn=>Ou(Wn.text)),j=o.lineMetrics(Z?U:X),pe=B.baseline;B.height===0?(B.height=j.height,B.baseline=j.baseline,pe=j.baseline):pe+=MF(B,V.verticalAlign,o);let he=Se();if(he&&T!==0&&(B.firstLineOffset=T),he&&C>B.baseline){let Wn=C-B.baseline;B.baseline=C,B.height+=Wn,pe+=Wn;}US(B,o),Dt(),VS(B);let st=B.height,St=B.drawings.length>0||B.spans.some(Wn=>Wn.equation!==void 0),ot=g.rule==="auto"&&St,ke=ot&&B.drawings.length>0&&!B.spans.some(Wn=>Wn.equation!==void 0)&&g.gridPitch===void 0,_e=ke&&g.value>240,Ot=ke&&g.value<240,Jn=ot?GM(B.spans,o,gt?.height??j.height,m):st,Bn=BF(g,Jn,B.baseline,B.spans,o);ot||(B.baseline=Bn.baseline);let ht=he&&g.rule!=="exact"?v:0,Cr=Math.max(0,ht-B.baseline);B.baseline+=Cr,B.leading=Math.max(0,B.baseline-pe);let Ir=_e?Math.max(0,Bn.height-Jn):Ot?Math.min(0,Bn.height-Jn):0;B.height=ot?Math.max(Bn.height,st+Ir):Bn.height,Ot&&(B.baseline=Math.min(B.baseline,B.height));let Ps=_e?Math.max(0,B.height-st):0;B.height+=Cr,Qa(),Ot&&zM(B),g.rule!=="exact"&&VS(B),B.trailingSpacing=B.drawings.length===0&&g.rule!=="exact"?Math.max(0,Math.min(Bn.trailing??1/0,Bn.height-st)):Ps,_n(),ze(),Z&&(Ae.size>0||we.size>0)?Fn(t):Z&&he&&Jt(),jM(B),WM(B);let na=Sn(B.start,B.end);na.length>0&&(B.deletedRanges=na);let yr=ta(B,B.spans,B.changeSites);yr.length>0&&(B.changeSites=yr),on(),ae.push(B),Me=Me+B.height+(B.exclusionSkipBefore??0),le=false,qe=-1,In=0,ce=0,gt=void 0,B={spans:[],drawings:[],start:B.end,end:B.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},Ct(),kt();},ei=false,el=()=>{for(let Z=0;Z<qe;Z+=1)if(!m||B.spans[Z].text!==chunkPWTRJSES_cjs.mb)return false;return qe>=0},im=()=>{if(qe<0||B.spans.length<=qe)return false;Fe();let Z=B.spans[B.spans.length-1];return ve()+B.width>Z.box.x+Z.box.width+.001},jc={line:()=>B,measurer:o,pageBreaksIgnored:m,holdsContent:re,closeLine:()=>Mn(),ensurePlacementWidth:Z=>Ge(Z),tryAdvanceToNextPassage:zt,lineAvailable:Fe,lineOrigin:ve,applyNarrowWrapSkipIfNeeded:We,setProbeWidth:Z=>rn.setWidth(Z)};Ct();let Mo=S>0?P.find(Z=>Z.end===S&&Z.breakClear)?.breakClear:void 0;if(Mo){let Z=Io(Mo),j=new Set(u?.pageExclusionZones??[]);Tt(pe=>Z(pe).filter(he=>he.anchorParagraphId!==t||j.has(he)));}let lm=CF(E,o);for(let Z=0;Z<E.length;Z+=1){let j=E[Z];if(j.breakKind==="column"){let ke=o.lineMetrics(j.style);B.spans.push({range:{paragraphId:t,start:j.start,end:j.end},text:j.text,props:j.props,style:j.style,box:{x:ve()+B.width,y:0,width:0,height:ke.height},...j.link?{link:j.link}:{},...Si(j)}),La(B,ke),B.end=j.end,Mn(),ae[ae.length-1].columnBreakAfter=true,ei=true;continue}if(j.equation){let ke=z(j),_e=ke.geometry.box.width;if(re()&&B.width+_e>Fe()&&Mn(),rn.setMetrics({height:ke.geometry.box.height,baseline:ke.geometry.baseline},_e),Wt(_e,ke.geometry.box.height),!Ge(_e))continue;let Ot=Math.max(0,B.height-B.baseline),Jn=Math.max(0,ke.geometry.box.height-ke.geometry.baseline);B.baseline=Math.max(B.baseline,ke.geometry.baseline),B.height=B.baseline+Math.max(Ot,Jn),B.spans.push({range:{paragraphId:t,start:j.start,end:j.end},text:"\uFFFC",props:j.props,style:j.style,box:{x:ve()+B.width,y:0,width:_e,height:ke.geometry.box.height},projected:true,equation:ke,...Si(j)}),B.width+=_e,B.end=j.end,qe=-1,jn="";continue}if(j.projected&&!j.inlineDrawing&&!j.noteSeparator&&j.text==="\uFFFC"){wt(j.start),j.anchoredAtom&&j.revisions!==void 0&&Ye(j.revisions,ge,u?.revisionAuthorFilter)&&(B.anchorRevisions=[...B.anchorRevisions??[],...j.revisions]),j.anchoredAtom&&j.changeSites&&(B.changeSites=[...B.changeSites??[],...j.changeSites]),B.end=j.end;continue}if(j.inlineDrawing){wt(j.start);let ke=dr(j.inlineDrawing.projection),_e=ke.totalWidth,Ot=false;if(re()&&B.width+_e>Fe()){let Cr=B.width;Ot=zt()&&B.width+_e<=Fe()+.001,B.width=Cr,Ot||Mn();}rn.setMetrics({height:ke.lineContribution,baseline:ke.lineContribution},_e);let Jn=B;if(Ot||Wt(_e,ke.lineContribution),!Ge(_e)||Ot&&B!==Jn&&(Wt(_e,ke.lineContribution),!Ge(_e)))continue;let{extentTopY:Bn}=qn(j.style,ke),ht=ve()+B.width;B.drawings.push(KM({input:j.inlineDrawing,paragraphId:t,start:j.start,slotX:ht,y:Bn,baseline:B.baseline,contentLeft:ne,contentRight:ne+K,...j.revisions?{revisions:j.revisions}:{},...j.style.shaping?{bidiLevel:j.style.shaping.level}:{},layoutTextboxStory:u?.layoutTextboxStory})),j.changeSites&&(B.changeSites=[...B.changeSites??[],...j.changeSites]),B.width+=_e,B.end=j.end,qe=-1,jn="";continue}if(j.text===chunkPWTRJSES_cjs.mb){let ke=o.lineMetrics(j.style);if(B.spans.push({range:{paragraphId:t,start:j.start,end:j.end},text:chunkPWTRJSES_cjs.mb,props:j.props,style:j.style,box:{x:ve()+B.width,y:0,width:0,height:ke.height},...j.link?{link:j.link}:{},...Si(j)}),B.end=j.end,m||E[Z+1]?.breakKind==="line")continue;La(B,ke);let _e=le;Mn();let Ot=ae[ae.length-1];Ot.pageBreakAfter=true,le=w&&_e&&Vo(Ot),ei=false;continue}if(j.text===`
|
|
22
|
+
`){j.breakKind==="line"&&(B.manualBreakAfter=true);let ke=o.lineMetrics(j.style);B.spans.push({range:{paragraphId:t,start:j.start,end:j.end},text:`
|
|
23
|
+
`,props:j.props,style:j.style,box:{x:ve()+B.width,y:0,width:0,height:ke.height},...j.link?{link:j.link}:{},...Si(j)}),La(B,ke),B.end=j.end;let _e=j.breakClear?Io(j.breakClear):void 0;Mn(),_e&&Tt(_e),ei=true;continue}ei=false,Ve(j.start),xe.length>0&&j.start>=Math.min(...xe)&&Qe(j.start);let pe=Ce(j.style,j.fontSlot),he=qu(j),st=RM(j),St=he?null:W,ot=0;for(let ke of W?.boundaries(j)??oo(j.text,!he)){let _e=j.text.slice(ot,ke);if(_e.length===0)continue;let Ot=o.lineMetrics(pe,jr(j,$t(_e,pe)));rn.setMetrics(jd(Ot,pe));let Jn=he?{paragraphId:t,start:j.start,end:j.end}:{paragraphId:t,start:j.start+ot,end:j.start+ke};if(_e===" "){let It=vF(D,R,!!j.positionalTab,Be().length,s,ve()+B.width,K);re()&&(B.width>=Fe()||It)&&L[Z][ke]===1&&Mn();let an=ve()+B.width,Ln=R?te:0,ln=R?Ln+He()+B.width:an,Mr=R?Ln+r:K,vs=EM(E,Z,ke,o,m),Kc=j.positionalTab?AM(j.positionalTab,n,K,u?.marginExtent):null,$c=Be().length===0?Math.max(Mr,u?.marginExtent?.right??Mr):Mr,_=FF(s,ln,Mr,$c,an,K,Kc);_.alignment!=="left"&&!R&&(ce=Math.max(ce,Math.min(_.positionPt,$c)));let Q=Ev(_.alignment,Kc===null?ln:an,_.positionPt,vs.width,R&&Kc===null?vs.rtlDecimalOffset:vs.decimalOffset);B.spans.push({range:Jn,text:" ",props:j.props,style:j.style,box:{x:an,y:0,width:Q,height:Ot.height},..._.leader?{tabLeader:_.leader,tabLeaderAdvancePt:o.measure(Ov.get(_.leader)??".",j.style)}:{},...j.link?{link:j.link}:{},..._.leader?{tabLeader:_.leader}:{},...he&&!j.positionalTab?{projected:true}:{},...j.noteNav?{noteNav:j.noteNav}:{},...Si(j)}),B.width+=Q,Nd(B,Ot," ",pe),B.end=he?j.end:j.start+ke,jn=" ",ot=ke;continue}let Bn=j.measureText??_e,ht=j.noteSeparator?Math.min(j.noteSeparator==="separator"?144:Fe(),Fe()):j.fieldAtom?.formControl?.kind==="checkbox"?pe.fontSizePt:o.measure($t(Bn,pe),pe);rn.setWidth(ht);let Cr=j.noteSeparator||B.spans.at(-1)?.noteSeparator?"opens":W?.decision(j,ot)??nd(jn,_e,ot>0),Ir=Cr==="opens";Ir&&(qe=B.spans.length,In=B.width,Hn=B.end,ye={height:B.height,baseline:B.baseline}),Qe(j.start+ot),We(_e,pe);let Ps=A&&xe.length===0&&ke===j.text.length&&E[Z+1]!==void 0&&W?.decision(E[Z+1],0)==="forbidden",na=!he&&j.measureText===void 0&&!Ps,yr=ht,Wn=It=>o.measure($t(It,pe),pe),ws=()=>na?Hg(_e,yr,Fe()-B.width,Wn,Hd):void 0,ti=ws();ht=ti?.width??ht;let ra=O.overflowPunctuation&&Ad(_e,j,Fe()-B.width,ht,o),ks=N&&xe.length===0?()=>{let It=$(B,Z,_e,Jn,ht,ve()+B.width,Fe(),!Yn(_e)||Ir&&L[Z][ke]===1);return It&&(ht=It.width,qe>=0&&It.spanStarts&&(qe=It.spanStarts[qe],In=qe<B.spans.length?B.spans[qe].box.x-ve():B.width)),It}:void 0,Wc=B,ni=ks?.(),zc=!Ps&&Yn(_e)&&(L[Z][ke]!==1&&!(m&&ot===0&&ZI(E,Z,_e,jn))||!he&&re()&&B.width+ht>Fe()+Hd);zc&&(ht=Math.min(ht,Math.max(0,Fe()-B.width)));let ri=ni?ht:M.get(j)??ht,tl=!ra&&!(zc&&u?.justifySpaceShrink)&&B.width+ri>Fe()+Hd,Gc=tl&&u?.justifySpaceShrink?lm(Z,ke):void 0,Vc=tl&&u?.justifySpaceShrink===true&&(Ir||Cr==="continues"&&qe>0)&&!u.paragraphRtl&&ce===0&&!u.pageExclusionZones?.length&&xe.length===0&&B.drawings.length===0&&(L[Z][ke]===1||H(Z,ke))&&jF(B.spans,_e,pe,o,B.width,Fe(),Ir?B.spans.length:qe,Ir?B.width:In,Gc!==void 0||H(Z,ke)||(ke<j.text.length?!he&&j.text[ke]===" ":zF(E[Z+1])),Gc??0),nl=tl&&st&&!R&&ce===0&&!u?.pageExclusionZones?.length&&xe.length===0&&IF(B,qe);if(!Ir&&im()||tl&&!Vc&&re()&&!nl){let It=na&&!ni?qI(_e,Wn):void 0,an=It??ri;if(!(Cr==="forbidden"&&(qe<0||el())))if(Ir||qe<0){if(!(zt()&&B.width+an<=Fe()+.001)){if(Mn(),!Ge(an))continue;qe=0,In=0,Hn=B.end,ye={height:B.height,baseline:B.baseline};}}else {let Ln=MM(jc,{span:qe,width:In,end:Hn,...ye},an,tl,Hd);qe=Ln.span,In=Ln.width,Hn=Ln.end,ye={height:Ln.height,baseline:Ln.baseline};}It!==void 0&&(ti=ws(),ht=ti?.width??yr);}else if(!re()&&ri>Ze()+.001){if(!Ge(ri))continue}else Vc&&H(Z,ke)&&(B.spaceShrink=true);We(_e,pe),!ni&&B!==Wc&&(ni=ks?.());let rl=ot===0&&B.spans.length===0&&!ti?zg(j.style,"before"):null;rl&&(ht=Gg(_e,rl,j.fontSlot,o));let oa=_e,br=j.start+ot,ol=ht,Ts=rl??j.style;if(st&&!ra&&(!re()||!Ir&&el()||nl)&&ht>Ze()+Hd){let It=rl,an=()=>It?Ce(It,j.fontSlot):pe,Ln=wM(_e,br,ht,{remainingLineWidth:Ze,lineHasText:re,measureText:ln=>o.measure($t(ln,an()),an()),appendPrefix:ln=>{let Mr=o.lineMetrics(pe,$t(ln.text,pe));B.spans.push({range:he?Jn:{paragraphId:t,start:ln.modelStart,end:ln.modelStart+ln.text.length},text:ln.text,props:j.props,style:It??j.style,box:{x:ve()+B.width,y:0,width:ln.width,height:Mr.height},...j.link?{link:j.link}:{},...he?{projected:true}:{},...j.noteNav?{noteNav:j.noteNav}:{},...j.fontSlot?{fontSlot:j.fontSlot}:{},...j.glyphOffsetPt!==void 0?{glyphOffsetPt:j.glyphOffsetPt}:{},...Si(j)}),B.width+=ln.width,Nd(B,Mr,ln.text,pe),B.end=he?j.end:ln.modelStart+ln.text.length,It=null;},closeLine:Mn,closeCutLine:()=>{Mn(),ue=true;},overflowTolerancePt:Hd,keepWithPrevious:Cr==="forbidden",cutAllowedAt:St?(ln,Mr)=>St.cutAllowed(j,ot,Mr):jv});oa=Ln.text,br=Ln.modelStart,ol=Ln.width,Ts=It??j.style,Ln.brokeLine&&(qe=0,In=0,Hn=B.end,ye={height:B.height,baseline:B.baseline});}if(oa.length>0){let It=o.lineMetrics(pe,jr(j,$t(oa,pe))),an={range:he?Jn:{paragraphId:t,start:br,end:j.start+ke},text:oa,props:j.props,style:Ts,box:{x:ve()+B.width,y:0,width:ol,height:It.height},...j.link?{link:j.link}:{},...he&&!j.positionalTab?{projected:true}:{},...j.noteNav?{noteNav:j.noteNav}:{},...j.fontSlot?{fontSlot:j.fontSlot}:{},...j.glyphOffsetPt!==void 0?{glyphOffsetPt:j.glyphOffsetPt}:{},...zc?{lineEndWhitespace:true}:{},...Si(j)};ni?yM(B.spans,an,ni):JI(B.spans,an,ti),B.width+=ol,Nd(B,It,oa,pe),B.end=he?j.end:j.start+ke;}jn=_e,ot=ke;}}return (B.spans.length>0||B.drawings.length>0||ae.length===0||ei)&&Mn(),!f&&sM(ae)?YS(e,t,n,r,o,a,i,l,s,d,c,u,true):(Cn(ae),i!==null&&a&&a.set(i,a.retainAcrossPasses===false?ae:ae.map(Vg)),ae)}function $M(e){return e!==void 0&&lo(e)&&e.children.some(t=>lo(t)&&t.localName==="numPr")}function XS(e,t){if($M(t))return e.length;for(let n=e.length-1;n>=0;n-=1)if($M(e[n].paragraphPropertiesNode))return n;return 0}function XC(e,t,n){let r=t?ka(e,t,"paragraph"):[],o=XS(r,n);return {below:[...e.docDefaultsParagraph,...r.slice(0,o).flatMap(a=>a.paragraphProperties)],above:[...r.slice(o).flatMap(a=>a.paragraphProperties),...Xe(n)]}}var UM="http://schemas.microsoft.com/office/word",JU={adjustLineHeightInTable:["not-off","last"],doNotBreakWrappedTables:["on-or-missing","first"],doNotExpandShiftReturn:["on-or-missing","last"],doNotUseHTMLParagraphAutoSpacing:["on-or-missing","first"],doNotUseIndentAsNumberingTabStop:["on-or-missing","first"],noExtraLineSpacing:["on-or-missing","last"]},QU={enableOpenTypeFeatures:["explicit-on","refuse"],overrideTableStyleFontSizeAndJustification:["explicit-on","last"]},eY=new Map(Object.entries(JU)),tY=new Map(Object.entries(QU));function Xl(e,t){return e.attributes.find(n=>n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)?.value}function YM(e,t){return t==="not-off"?e===void 0||!["0","false","off"].includes(e):e===void 0?t==="on-or-missing":e==="1"||e==="true"||e==="on"}function ZS(e){let t=e?.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName==="settings",n={},r={},o=0,a,i=true;for(let d of e?.children??[]){if(d.kind==="textValue"||d.namespaceUri!==chunkPWTRJSES_cjs.la||d.localName!=="compat")continue;let c=new Set;for(let u of d.children){if(u.kind==="textValue"||u.namespaceUri!==chunkPWTRJSES_cjs.la)continue;if(u.localName==="compatSetting"){let g=Xl(u,"name");if(g===void 0||Xl(u,"uri")!==UM)continue;let m=Xl(u,"val");if(g==="compatibilityMode"){if(!t)continue;o++;let b=m!==void 0&&/^\d{1,4}$/.test(m)?Number(m):void 0;a=b!==void 0&&b>=11?b:void 0;continue}let h=tY.get(g);if(!h||!t&&g!=="overrideTableStyleFontSizeAndJustification")continue;let y=g;r[y]=h[1]==="refuse"&&Object.hasOwn(r,y)?"ambiguous":YM(m,h[0]);continue}let f=t?eY.get(u.localName):void 0;if(!f)continue;let p=u.localName;if(f[1]==="first"){if(!i||c.has(p))continue;c.add(p);}n[p]=YM(Xl(u,"val"),f[0]);}i=false;}o>1&&(a=void 0);let l=o>0&&a===void 0;if(t&&a===void 0&&o<=1){let d=[];for(let c of e.children){if(c.kind==="textValue"||c.namespaceUri!==chunkPWTRJSES_cjs.la||c.localName!=="compatSetting"||Xl(c,"name")!=="compatibilityMode"||Xl(c,"uri")!==UM)continue;let u=Xl(c,"val"),f=u!==void 0&&/^\d{1,4}$/.test(u)?Number(u):void 0;f!==void 0&&f>=11&&d.push(f);}d.length===1&&(a=d[0],l=false);}let s={modeValue:a,modeClass:bx(a),modeRefused:l,legacy:n,settings:r,has:d=>Object.hasOwn(jp,d)?jp[d].mode===s.modeClass:$v[d].applies(s)};return s}function XM(e){return ZS(e).modeValue}var nY=["preserveExactLineBaseline","adjustLineHeightInTable","ignoreIndentAsNumberingTabStop","doNotBreakWrappedTables","fixedParagraphSpacing","unstretchedManualBreakLines","pageBreakLinesStretch"];function ZM(e){let t={};for(let n of nY)e.has(n)&&(t[n]=true);return t}function qM(e,t){return !t?.ignoreIndentAsNumberingTabStop||e.ignoreIndentAsNumberingTabStop?e:{...e,ignoreIndentAsNumberingTabStop:true}}function JM(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}function Ug(e,t){return t?.fixedParagraphSpacing?0:e}var rY=4096;function Wd(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function Yg(e){return e?chunkYBMWBXST_cjs.y(chunkPWTRJSES_cjs.Ca(e)):""}function oY(e){return [...e.conditionalTableFormats].map(([t,n])=>[t,Yg(n)])}var Xg=Object.freeze({tablePropertyNodes:Object.freeze([]),tableRowPropertyNodes:Object.freeze([]),tableCellPropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function nB(e,t){let n=t&&Pa(t)?t:null,r=n?eB(e,n):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===n?Xg:eB(e,o)??Xg}var QM=new WeakMap;function eB(e,t){let n=QM.get(e);n||(n=new Map,QM.set(e,n));let r=n.get(t);if(r)return r;let o=aY(e,t);return o?(n.set(t,o),o):null}function aY(e,t){let n=ka(e,t,"table");if(n.length===0)return null;let r=[],o=[],a=[],i=[],l=[],s=[],d=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),s.push(...u.runProperties);for(let[f,p]of u.conditionalTableFormats)d.set(f,p),c.set(f,Object.freeze([...c.get(f)??[],p]));}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(s),conditional:tB(d),conditionalStyleLayers:tB(c)})}function tB(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 rB(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var qS=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function oB(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=wa(i);l&&(n.push(l),r.push(...El(Xe(l))));let s=sd(i);s&&o.push(...El(Xe(s)));}return n.length===0&&r.length===0&&o.length===0?qS:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function iY(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,chineseFontTableFaces:e.chineseFontTableFaces??null}}function aB(e,t=NT,n=null){let r=KI(n),o=ZS(n),a=o.has("optionalLigatures"),i=a?{}:{disableOptionalLigatures:true},l=o.has("strictTableStyleHierarchy"),s=ZM(o),d=new Map,c=iY(t);if(!e){let x=Yb(null,a),R=Ix(null);return {cacheToken:chunkYBMWBXST_cjs.y({empty:true,dR:Wd(x),dP:Wd(R),...i,theme:c,typography:r,strictTableHierarchy:l,...s}),...s,...i,strictTableStyleHierarchy:l,typography:r,docDefaultsRun:x,docDefaultsParagraph:R,docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:t,styles:d}}let u=EF(e),f=UI(u.run,t);r=Object.freeze({...r,sourceEastAsianFont:f});let p={...u,run:[...Yb(e,a),...u.run],paragraph:[...Ix(e),...u.paragraph]},g=null,m=null,h=null,y=0;for(let x of e.children){if(!lo(x)||x.localName!=="style")continue;if(y>=rY)break;y+=1;let R=AF(x);if(!R)continue;let{isDefault:P,...S}=R;d.set(S.styleId,S),S.type==="paragraph"?P?g=S.styleId:g===S.styleId&&(g=null):S.type==="character"?P?m=S.styleId:m===S.styleId&&(m=null):S.type==="table"&&(P?h=S.styleId:h===S.styleId&&(h=null));}return {cacheToken:chunkYBMWBXST_cjs.y({...s,...i,strictTableHierarchy:l,typography:r,dR:Wd(p.run),dP:Wd(p.paragraph),defP:g,defC:m,defT:h,theme:c,styles:[...d.values()].map(x=>({id:x.styleId,type:x.type,basedOn:x.basedOn,outlineLevel:x.outlineLevel,p:Wd(x.paragraphProperties),r:Wd(x.runProperties),tPr:Yg(x.tablePropertiesNode),trPr:Yg(x.tableRowPropertiesNode),tcPr:Yg(x.tableCellPropertiesNode),tblStylePr:oY(x)}))}),...s,...i,strictTableStyleHierarchy:l,typography:r,docDefaultsRun:p.run,docDefaultsParagraph:p.paragraph,docDefaultsParagraphNode:p.paragraphNode,defaultParagraphStyleId:g,defaultCharacterStyleId:m,defaultTableStyleId:h,themeFonts:t,styles:d}}function cr(e,t,n){return iB(e,t,n)}function iB(e,t,n,r){let o=Xe(t),a=xi(o,"pStyle")??e.defaultParagraphStyleId,i=a?ka(e,a,"paragraph"):[],l=r?XS(i,t):i.length,s=(y,b)=>n&&!e.strictTableStyleHierarchy&&y.styleId===e.defaultParagraphStyleId?JM(b,n.runProperties):b,d=i.map(y=>s(y,y.paragraphProperties)),c=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...d.slice(0,l).flat(),...Xe(r),...d.slice(l).flat()],u=[...c,...o],f=[];e.docDefaultsParagraphNode&&f.push(e.docDefaultsParagraphNode),n&&f.push(...n.paragraphPropertyNodes),i.forEach((y,b)=>{b===l&&r&&f.push(r),y.paragraphPropertiesNode&&f.push(y.paragraphPropertiesNode);}),l===i.length&&r&&f.push(r),t&&f.push(t);let p=sd(t&&lo(t)?t:void 0),g=Xe(p),m=fi([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:n?.runProperties??[],role:"xor",emit:true},{properties:i.flatMap(y=>s(y,y.runProperties)),role:"xor",emit:true}]),h=DF(e,m,g,y=>sp(y,e.disableOptionalLigatures));return {paragraphProperties:u,inheritedParagraphProperties:c,paragraphPropertyNodes:f,runProperties:sp(m,e.disableOptionalLigatures),markRunProperties:h,styleId:a??null}}function lY(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(lo(o)&&o.localName==="pBdr"){r=true;break}r&&(t=ip(n).bottom);}return t}function ur(e,t,n){let r=i=>sp(i,n?.disableOptionalLigatures),o=[];if(n){let l=xi(t,"rStyle")??n.defaultCharacterStyleId;l&&(o=ka(n,l,"character").flatMap(s=>s.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:fi([...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 Xn(e,t,n,r,o,a=false,i){let l=wa(e),s=Fu(r),d=n?iB(n,l,o,s):null,c=d?.paragraphPropertyNodes??[s,l].filter(v=>v!==void 0),u=d?[...d.paragraphProperties]:[...Xe(s),...Xe(l)],f=Xe(sd(l&&lo(l)?l:void 0)),p=d?d.runProperties:[],g=d?d.markRunProperties:f,m=kd(u),h=0,y=0;if(r)h=r.indent.hanging,y=r.indent.firstLine;else for(let v of u){if(v.localName!=="ind")continue;let C=Dd(v.attributes?.hanging),I=Dd(v.attributes?.firstLine);(v.attributes?.hanging!==void 0||v.attributes?.firstLine!==void 0)&&(h=C!==null?Math.max(0,chunkPWTRJSES_cjs.ld(C)):0,y=I!==null?chunkPWTRJSES_cjs.ld(I):0);}let b=r?{left:r.indent.left,right:r.indent.right,hanging:h,firstLine:y}:{left:m.left,right:m.right,hanging:h,firstLine:y},R=lr(e)?.at(-1)?.paragraph,P=R?Xn(R,t,n,void 0,o,a,i):void 0,S=qM(Bv(c),n),w=d?d.styleId:xi(u,"pStyle")??null,F=null,T=false;for(let v of u){if(v.localName!=="outlineLvl")continue;T=true;let C=v.attributes?.val;F=C!==void 0&&/^[0-8]$/.test(C)?Number(C):null;}if(!T&&n&&w){let v=ka(n,w,"paragraph");for(let C=v.length-1;C>=0;C-=1){let I=v[C].outlineLevel;if(I!==null){F=I;break}}}if(!T&&F===null&&w){let v=/^heading\s*([1-9])$/i.exec(w.trim());v&&(F=Number(v[1])-1);}return {props:u,indent:b,available:Math.max(1,t-b.left-b.right),alignment:chunkPWTRJSES_cjs.$e(e)??Uu(u),spacing:{...ci(u,{inList:r!==void 0,lineUnitPt:i,fixedAutoSpacing:n?.fixedParagraphSpacing===true}),...P?{after:P.spacing.after}:{}},lineSpacing:Vb({...bT(u),...n?.preserveExactLineBaseline?{preserveExactBaseline:true}:{}},u,i,a,n?.adjustLineHeightInTable===true),contextualSpacing:xT(u),styleId:w,outlineLevel:F,bottomBorder:lY(c),borders:RT(c),shading:fT(u),inheritedRunProperties:p,markRunProperties:P?.markRunProperties??g,tabStops:S,tabStopsCacheToken:Dp(S),...r?{listItem:r}:{}}}var lB=new WeakMap;function sB(e,t){let n=lB.get(e);if(n&&n.styles===t)return n.visible;let r=e.children.find(d=>d.kind==="paragraphProperties"),o=t?cr(t,r).runProperties:[],a=0,i=false,l=(d,c)=>{if(++a>1e4||c>64)return i=true,false;if(d.kind==="textValue")return false;if(d.kind==="run"){let u=Xe(d.children.find(f=>f.kind==="runProperties"));return je(ur(o,u,t)).hidden?false:d.children.some(f=>f.namespaceUri===chunkPWTRJSES_cjs.la&&f.localName==="t"&&f.children.some(p=>p.kind==="textValue"&&/\S/u.test(p.value)))}if(d!==e&&!["hyperlink","fldSimple","smartTag","customXml"].includes(d.localName))return false;for(let u of d.children)if(l(u,c+1))return true;return false},s=l(e,0)&&!i;return lB.set(e,{styles:t,visible:s}),s}function dB(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,s){function d(c,u,f){if(f<=a||u>i)return true;if(u>=a&&f-1<=i){let m=r.get(c);if(m){let h=l(m);if(h==="stop")return false;if(h)return true}}if(f-u===1){let m=s(u);return r.has(c)||r.set(c,t(u)),m}let p=u+Math.floor((f-u)/2),g=d(c*2,u,p)&&d(c*2+1,p,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&&d(1,0,e);}}}var ef=8,qg=8,Qu=2,sY=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function JS(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function yt(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=JS(o.attributes);break;case "keepLines":n=JS(o.attributes);break;case "widowControl":r=JS(o.attributes);break;}return !t&&!n&&r?sY:{keepNext:t,keepLines:n,widowControl:r}}function Mi(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<Qu)return e;let a=e;return n-a<Qu&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function Zg(e,t=Number.POSITIVE_INFINITY){let{blocks:n,start:r}=e,o=0,a=e.carry,i=-1,l=true,s=null,d=u=>(s=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 d({height:o-a,lastWhole:i});let R=x.throughHeight,P=R===void 0||e.throughTables===false?void 0:uB(e,u+1,t-o-R),S=typeof P=="number"?R+P:x.height;return d({height:o+S,lastWhole:i})}if(!f||f.kind!=="paragraph"||!f.spacing||!f.keeps)return false;if(u>r&&e.breaksBefore?.(u))return d({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 p=e.linesFor(u),g=p.findIndex(x=>x.pageBreakAfter||x.columnBreakAfter),m=g<0?p.length:g+1,h=eR(p.length,m,f.keeps),y=o+QS(p,h);if(!f.keeps.keepNext||u+1>=n.length)return d({height:y,lastWhole:i});let b=QS(p,m);if(g<0&&h<p.length&&o+b>t)return d({height:y,lastWhole:i});if(g>=0)return d({height:o+b,lastWhole:i});l&&o+b<=t?i=u:l=false;for(let x=0;x<m;x+=1)o+=p[x].height;return o+=f.spacing.after,a=f.spacing.after,o-a>(e.maxHeight??1/0)?d({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,p=o+f;return p+(l?u.maxWhole:u.maxSplit)>t?false:(l&&(i=u.last),o=p+u.advance,a=u.after,o-a>(e.maxHeight??1/0)?(d({height:1/0,lastWhole:i}),"stop"):true)},c);else for(let u=r;u<n.length&&c(u);u+=1);return s}function QS(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 dY(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=s=>Zg({...e,maxHeight:r},s+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:!Le(t.compatibilityMode,"keepNextGivesTailLines")||a.lastWhole<0?i:fB(e,a.lastWhole)>0?null:i}function cY(e,t,n,r){if(!Le(r,"keepNextGivesTailLines"))return 0;e={...e,maxHeight:Math.max(t,n)};let o=Zg(e,t);if(o===null||o.height<=t||o.lastWhole!==e.start)return 0;let a=Zg(e,n);return a===null||a.height>n?0:fB(e,e.start)}function uY(e,t){let n={before:0,after:0,advance:0,maxWhole:-1/0,maxSplit:-1/0,last:-1},r=dB(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(d=>d.pageBreakAfter||d.columnBreakAfter))return null;let l=QS(i,i.length),s=i.reduce((d,c)=>d+c.height,0)+a.spacing.after;return {before:a.spacing.before,after:a.spacing.after,advance:s,maxWhole:l,maxSplit:eR(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 cB(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=uY(e,n)),o};return {need:(i,l,s)=>dY({...a(),start:i,carry:l},{...s,compatibilityMode:t}),tailBreak:(i,l,s,d)=>{if(!e.blocks[i]?.keeps?.keepNext||e.skipBlock?.(i))return l;let c={...a(),start:i,carry:0,headLead:0},u=d-s;return l-cY(c,u,d,t)},opening:(i,l)=>uB(a(),i,l)}}function uB(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 Zg(r,n)?.height??null}function fB(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)||eR(r.length,r.length,n)>=r.length?0:n.widowControl?Qu:1}function eR(e,t,n){return n.keepLines?t:n.widowControl?e<Qu*2?t:Math.min(Qu,t):Math.min(1,t)}function fY(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 mY(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,s=r(a,1)===i;o===e&&(o=[...e]),o[a]=`${o[a]}~cs~${l?1:0}${s?1:0}`;}return o}function pY(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 gY(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 hY(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 mB(e,t){if(!t||e.length===0)return e;let n=[...e];for(let r=Math.max(0,n.length-2);r<n.length;r+=1)n[r]=`${n[r]}~mjb`;return n}function yY(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 p=t(f);if(!p&&!o[f])continue;let g=n?.(f)===true,m=r?.(f)===true;a[f]=(p?1:0)|(m?2:0)|(g?4:0),f+1!==e.length&&(g?o[f+1]|=o[f]:p&&(i.push(f),o[f+1]|=m?1:2,m||(o[f+1]|=o[f])));}if(i.length===0)return e;let l=new TextEncoder,s=f=>f.length<=256?f:`\0h${chunkPWTRJSES_cjs.f(l.encode(f))}`,d=new Array(e.length+1),c=new Array(e.length+1);d[e.length]=c[e.length]=".";for(let f=e.length-1;f>=0;f-=1){if(!o[f])continue;let p=(a[f]&4)!==0,g=(a[f]&2)!==0,m=(a[f]&1)!==0,h=f+1===e.length?".":"",y=p?"-":`${e[f].length}:${e[f]}`,b=y+(p||m&&!g?d[f+1]:h),x=y+(p?c[f+1]:m?g?`>${d[f+1]}`:c[f+1]:h);o[f]&1&&(d[f]=s(b)),o[f]&2&&(c[f]=o[f]&1&&b===x?d[f]:s(x));}let u=[...e];for(let f of i)u[f]=`${e[f]}~kn~${a[f]&2?d[f+1]:c[f+1]}`;return u}function pB(e,t){let n=t.terminalTableGroup,r=n?e.map((a,i)=>i>=n.start&&i<=n.anchorIndex?de([a,n.token]):a):e,o=mY(r,t.contextualSpacingAt,t.styleIdAt,t.neighbourStyleAt);return o=pY(o,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(o=gY(o,a=>t.tocVerdicts[a])),o=fY(o,t.markerTextAt),o=hY(o,t.endsWithSectionMark===true),o=yY(o,t.keepsNextAt,t.skipKeepNextAt,t.tableAt),o}var gB=64,bY=1e4,tR=new chunkPWTRJSES_cjs.mf,hB=new WeakMap,yB=new WeakMap,xY=new WeakMap;function SY(e){return e.children.find(t=>t.kind==="paragraphProperties")}function SB(e,t){let n=SY(e);if(t)return cr(t,n);let r=n?.kind!=="textValue"?n?.children.find(o=>o.kind==="runProperties"):void 0;return {runProperties:[],markRunProperties:Xe(r)}}function nR(e,t,n=true){let r=t?yB.get(t):xY;r||yB.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 SB(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 RY(e){let t=hB.get(e);if(t!==void 0)return t;let n=0,r=(a,i)=>{if(++n>bY||i>64)return true;if(a.kind==="textValue")return false;if(a.namespaceUri===chunkPWTRJSES_cjs.la&&["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 hB.set(e,o),o}function bB(e){let t=yt(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:it(e.props),typography:Bd(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 xB(e,t,n,r,o,a,i,l){if(!e.some(p=>p.block.kind==="paragraph"&&l(p.block)))return e;let s=zu(e.map(p=>p.block),n??wg,t),d=[],c=[],u=false,f=p=>{if(p&&c.length>1&&c.length<=gB){let g=bB(Xn(c[0].block,1e3,t,s.get(c[0].block.id)));p=c.slice(1).every(m=>!s.has(m.block.id))&&c.every(m=>{let h=Xn(m.block,1e3,t,s.get(m.block.id));return !h.props.some(b=>b.localName==="framePr"||b.localName==="pageBreakBefore"&&!["0","false","off"].includes(b.attributes?.val??"true"))&&!h.contextualSpacing&&bB(h)===g});}else p=false;if(p){let g=c[0],m=c.map(S=>S.block),h=tR.get(g.block)?.find(S=>S.styles===t&&S.numberingIndex===n&&S.members.length===m.length&&m.every((w,F)=>w===S.members[F]));if(h){i(h.merged,m),d.push({block:h.merged,parentKey:g.parentKey}),c=[];return}let y=[],b=0;for(let S of m)y.push({paragraph:S,base:b,runProperties:SB(S,t).runProperties}),b+=chunkPWTRJSES_cjs.jg(S).length;let x=[...g.block.children.filter(S=>S.kind==="paragraphProperties")];for(let S of m)for(let w of S.children)w.kind!=="paragraphProperties"&&x.push(w);let R={...g.block,children:x};i(R,m),RF(R,y);let P=tR.get(g.block)??[];P.length>=4&&P.shift(),P.push({styles:t,numberingIndex:n,members:m,merged:R}),tR.set(g.block,P),d.push({block:R,parentKey:g.parentKey});}else for(let g of c)d.push(g);c=[];};for(let p of e){c.length&&c[0].parentKey!==p.parentKey&&f(false);let g=p.block;if(g.kind!=="paragraph"||a(g)){f(false),d.push(p);continue}let m=l(g);if(u){d.push(p),u=m;continue}if(c.length===gB){f(false),d.push(p),u=m;continue}if((m||c.length)&&(r?.has(g.id)||RY(g)||!o(g))){f(false),d.push(p),u=m;continue}m||c.length?(c.push(p),m||f(true)):d.push(p);}return f(false),d}function RB(e,t,n,r,o,a,i){if(!e.some(({block:g})=>g.kind==="paragraph"&&nR(g,t,false)))return e;let l=typeof r=="function"?r():r,s=g=>nR(g,t),d=xB(e,t,n,l,o,a,i,s),c=new Set;for(let{block:g}of e)g.kind==="paragraph"&&!s(g)&&nR(g,t,false)&&sB(g,t)&&c.add(g);if(!c.size)return d;let u=xB(e,t,n,l,o,a,i,g=>s(g)||c.has(g)),f=new Map;for(let g of d){let m=lr(g.block);m&&f.set(m[0].paragraph,g);}let p=[];for(let g=0;g<u.length;g++){let m=u[g],h=f.get(m.block),y=h&&lr(h.block);h&&y&&y.every((b,x)=>u[g+x]?.block===b.paragraph)?(p.push(h),g+=y.length-1):p.push(m);}return p}function PY(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 wY(e,t,n){return !(e.kind==="paragraph"&&xC(e,t,n))}var tf=new WeakMap;function Bi(e){return tf.get(e)??null}function vB(e,t){let n=t.children.filter(a=>PB(a)),r=e.flatMap(a=>a.children.filter(i=>!PB(i))),o={...t,children:[...n,...r]};return tf.set(o,{merged:o,members:e}),o}function PB(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function kY(e,t,n){if(t==="all-markup"&&!n)return e;let r=[],o=[],a=null,i=()=>{let l=a??"";for(let s of TY(o))r.push({block:s,parentKey:l});o=[],a=null;};for(let l of e){let{block:s,parentKey:d}=l;if(o.length>0&&d!==a&&i(),s.kind!=="paragraph"){i(),r.push(l);continue}let c=lS(s,t,n);if((c||o.length>0)&&!OB(s,t,n)){i(),r.push(l);continue}if(c){o.push(s),a=d;continue}if(o.length===0){r.push(l);continue}let u=[...o,s];o=[],a=null,r.push({block:vB(u,s),parentKey:d});}return i(),r}function TY(e){if(e.length<2)return e;let t=e[e.length-1];return [vB(e,t)]}function Zl(e,t,n,r,o=false,a,i){let l=FY(e).map(c=>({...c,block:FS(c.block,t,n)})),s=kY(l,t,n).filter(c=>wY(c.block,t,n)),d=o?RB(s,r,a,i,c=>OB(c,t,n),c=>tf.has(c),(c,u)=>tf.set(c,{merged:c,members:u})):s;return kC(d,t,n,c=>!tf.has(c))}var vY=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function FB(e){for(let t of e.children){if(t.kind==="textValue"){if(t.value.length>0)return false;continue}if(t.namespaceUri!==chunkPWTRJSES_cjs.la||!vY.has(t.localName))return false}return true}function FY(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=chunkPWTRJSES_cjs.Nc(i);l!==null&&o<chunkPWTRJSES_cjs.Tc&&n(l,o+1,i.id);}};return n(e,0,""),t}var wB=new WeakMap;function OB(e,t,n){let r=`${t}|${n?.cacheKey??""}|${chunkPWTRJSES_cjs.jf()}`,o=wB.get(e),a=o?.get(r);if(a!==void 0)return a;let i=OY(e,t,n);return o?Fi(o,r,i):wB.set(e,new Map([[r,i]])),i}function OY(e,t,n){if(!CY(e))return false;let r=bd(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<=chunkPWTRJSES_cjs.jg(e).length}function CY(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkPWTRJSES_cjs.la&&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 kB=chunkPWTRJSES_cjs.ub(16),TB=new WeakMap,IY=1;function MY(e){if(!e)return 0;let t=TB.get(e);return t||(t=IY++,TB.set(e,t)),t}function Gr(e,t="all-markup",n,r,o){let a=`${t}|${n?.cacheKey??""}|${r?.cacheToken??""}|${MY(o)}`,i=kB.get(e),l=i?.get(a);if(l)return l;let s=PY(e),d=s?Zl(s.children,t,n,r,s.kind==="body",o,()=>new Set([...Jp(e).keys(),...Lp(e),...Ep(e)])):[];return i?Fi(i,a,d):kB.set(e,new Map([[a,d]])),d}function Od(e,t="all-markup",n){return e.kind!=="note"?[]:Zl(e.children,t,n)}function rR(e,t="all-markup",n){return e.kind==="textValue"?[]:Zl(e.children,t,n)}function zd(e,t,n){let r=[],o=0,a=e.members.length-1;return e.members.forEach((i,l)=>{let s=chunkPWTRJSES_cjs.jg(i).length,d=l<a&&t?Id(i,t,n):[];r.push({paragraphId:i.id,base:o,length:s,...d.length>0?{markChangeSites:d}:{}}),o+=s;}),{members:r,total:o}}function oR(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 CB(e,t){let n=oR(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 BY(e,t){return {...e,range:CB(e.range,t)}}function Jg(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=>BY(g,t)),l=i[0],s=r.drawings?.map(g=>{let m=oR(t,g.start);return m?{...g,paragraphId:m.paragraphId,start:g.start-m.base}:g}),d=l?i.filter(g=>g.range.paragraphId===l.range.paragraphId):[],c=l?(s??[]).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(d[d.length-1].range.end,...c.map(g=>g.start+1))}:CB(r.range,t),f=s,p=r.deletedRanges?.map(g=>({deleted:g,member:oR(t,g.start)})).filter(({member:g})=>g?.paragraphId===u.paragraphId).map(({deleted:g,member:m})=>({start:g.start-(m?.base??0),end:g.end-(m?.base??0)}));return {...r,range:u,spans:i,...f?{drawings:f}:{},...p?{deletedRanges:p}:{},...a?{changeSites:a}:{}}})}function IB(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:s,...d}=o;return JSON.stringify(d)}),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)&&dp(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 Kg(e){let t="children"in e?Bi(e):null;return t?new Set(zd(t).members.map(n=>n.base)):void 0}var Qg="\uFFFC";function eh(e,t,n,r,o){if(t.length===0){let S=r(e);return {spans:S,offset:o(S),drawings:t}}let a=e.find(S=>S.style.shaping),i=a!==void 0||t.some(S=>S.bidiLevel!==void 0),l=a?.style.shaping?.baseLevel??(n?1:0),s=a?.style.shaping?.runDirection!==void 0,{shaping:d,...c}=a?.style??e[0]?.style??rr,u=t.map(S=>{let w=S.bidiLevel??l,F=w%2?"rtl":"ltr",T={script:"Zyyy",direction:F,level:w,baseLevel:l,...s?{runDirection:F}:{}};return {range:{paragraphId:S.paragraphId,start:S.start,end:S.start+1},text:Qg,props:[],style:i?{...c,shaping:T}:c,box:{x:S.advanceStart,y:S.y,width:Math.max(0,S.advanceEnd-S.advanceStart),height:0}}}),f=[...e,...u].sort((S,w)=>S.range.start-w.range.start),p=new Set(u),g=f.map((S,w)=>{let F=f[w-1];if(!p.has(S)||!F)return S;let T=S.box.x-(F.box.x+F.box.width);return T>.001?{...S,wrapAdvanceBefore:T}:S}),m=r(g),h=(S,w)=>`${S}:${w}`,y=new Set(t.map(S=>h(S.paragraphId,S.start))),b=S=>S.text===Qg&&S.range.end-S.range.start===1&&y.has(h(S.range.paragraphId,S.range.start)),x=new Map;for(let S of m)b(S)&&x.set(h(S.range.paragraphId,S.range.start),S.box.x);let R=m.filter(S=>!b(S)),P=t.map(S=>pr(S,(x.get(h(S.paragraphId,S.start))??S.advanceStart)-S.advanceStart,0));return {spans:R,drawings:P,offset:o(R)}}function it(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 Vd(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 LB=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/u;function LY(e,t,n){let r=Bl.getEmbeddingLevels(t,n?"rtl":"ltr");if(LB.test(t))return r;let o=0;for(let a=0;a<e.length;){let i=Vd(e[a].props),l=a,s=0;for(;l<e.length&&Vd(e[l].props)===i;)s+=e[l].text.length,l++;let d=Bl.getEmbeddingLevels(t.slice(o,o+s),i?"rtl":"ltr");r.levels.set(d.levels,o),o+=s,a=l;}return r}function $g(e,t,n,r=false){let o=new Map,a=u=>u?.inlineDrawing!==void 0&&u.text===Qg,i=e.map(u=>u.text).join("");if(!t&&!/[\u0590-\u08ff\ufb1d-\ufdff\ufe70-\ufeff]/u.test(i)&&!e.some(u=>!a(u)&&Vd(u.props)))return e;let l=e.map((u,f)=>{if(u.end-u.start===1&&(u.noteNav||u.fieldAtom&&!u.fieldAtom.formControl)&&/^[0-9]+$/u.test(u.text)){o.set(u.start,u);let{projected:P,measureText:S,...w}=u;return {...w,text:u.text[0]}}if(!a(u))return u;o.set(u.start,u);let{projected:p,inlineDrawing:g,...m}=u,h=P=>{let S=f+P;for(;e[S]&&(a(e[S])||!AY.test(e[S].text));)S+=P;return e[S]?Vd(e[S].props):void 0},y=h(-1),b=h(1),x=b===void 0?y??t:y===void 0?t:y===b?y:t,R=u.props.filter(P=>P.localName!=="rtl");return {...m,props:x?[...R,{localName:"rtl"}]:R}});if(l.some(u=>!nf(u)&&u.projected||u.inlineDrawing||u.equation||u.positionalTab||!nf(u)&&u.measureText!==void 0||u.end-u.start!==u.text.length))return e;let s=r&&l.some(aR),d=u=>s&&aR(u)||nf(u),c=l.some(d)?NY(l,t,n,d):EB(l,t,n);return c?EY(DY(c,s),o):e}function EY(e,t){if(t.size===0)return e;let n=[...t.keys()].sort((o,a)=>o-a),r=[];for(let o of e){let a=o.start,i=d=>{if(d<=a)return;let c=o.text.slice(a-o.start,d-o.start);r.push({...o,text:c,start:a,end:d});},l=0,s=n.length;for(;l<s;){let d=l+s>>1;n[d]<o.start?l=d+1:s=d;}for(let d=l;d<n.length&&n[d]<o.end;d++){let c=n[d],u=t.get(c);i(c),r.push({...u,style:{...u.style,shaping:o.style.shaping}}),a=c+1;}i(o.end);}return r}var aR=e=>e?.text===chunkPWTRJSES_cjs.mb,nf=e=>e?.text==="\xAD"&&e.measureText===""&&e.end-e.start===1,AY=/[\p{L}\p{N}]/u;function NY(e,t,n,r){let o=[],a=[];for(let p of e){let g=o.length;r(p)?o.push({piece:p,at:p.start-g}):a.push(g?{...p,start:p.start-g,end:p.end-g}:p);}let i=p=>{let g=0,m=o.length;for(;g<m;){let h=g+m>>1;o[h].piece.start<p?g=h+1:m=h;}return g},l=n?new Set([...n].map(p=>p-i(p))):void 0,s=EB(a,t,l);if(!s)return null;let d=[],c=0,u=p=>{for(;c<o.length&&o[c].at<=p;c++)d.push(o[c].piece);};for(let p of s){u(p.start);let g=p.start,m=h=>{d.push({...p,text:p.text.slice(g-p.start,h-p.start),start:g+c,end:h+c}),g=h;};for(;c<o.length&&o[c].at<p.end;)m(o[c].at),u(g);m(p.end);}u(1/0);let f;for(let p of d)r(p)||(f=p);for(let p=d.length-1;p>=0;p--){let g=d[p];if(!r(g)){f=g;continue}let m=f?.style.shaping,h=m?.level??(t?1:0),y=f?m?.runDirection:Vd(g.props)?"rtl":"ltr";d[p]={...g,style:{...g.style,shaping:{script:"Zyyy",direction:h%2?"rtl":"ltr",level:h,baseLevel:t?1:0,...y?{runDirection:y}:{}}}};}return d}function EB(e,t,n){let r=e.map(s=>s.text).join(""),o=LY(e,r,t),a=!LB.test(r),i=[],l=0;for(let s of IB(e,n)){let d;try{d=gp(s.text,l,o);}catch{return null}for(let c of d){let u=/^\t+$/u.test(s.text.slice(c.from,c.to)),f=u?t?1:0:c.bidiLevel,p={...s.style,shaping:{script:c.script,direction:u?t?"rtl":"ltr":c.direction,level:f,baseLevel:t?1:0,...a?{runDirection:Vd(s.props)?"rtl":"ltr"}:{}}};i.push({...s,text:s.text.slice(c.from,c.to),start:s.start+c.from,end:s.start+c.to,style:p});}l+=s.text.length;}return i}var MB=new Set(["Adlm","Arab","Mand","Mong","Nkoo","Phag","Rohg","Syrc"]);function DY(e,t){if(!e.some(i=>MB.has(i.style.shaping?.script??"")))return e;let n=i=>i?.style.shaping?.level,r="",o=(i,l)=>{let s=i+l,d=l<0?e[i].start:e[i].end;for(r="";t&&aR(e[s])||nf(e[s]);s+=l){let u=e[s];if((l<0?u.end:u.start)!==d)return;d=l<0?u.start:u.end,nf(u)&&(r+=u.text);}let c=e[s];return c&&(l<0?c.end:c.start)===d?c:void 0},a=[];return e.forEach((i,l)=>{let s=i.style.shaping;if(!s||!MB.has(s.script)){a.push(i);return}let d=o(l,-1),c=r,u=o(l,1),f=r,p=d&&n(d)===s.level&&!Gd.test(d.text.slice(-1))&&!Gd.test(i.text.slice(0,1))?(d.text+c).slice(-iu):"",g=u&&n(u)===s.level&&!Gd.test(i.text.slice(-1))&&!Gd.test(u.text.slice(0,1))?(f+u.text).slice(0,iu):"";if(!p&&!g){a.push(i);return}let m=i.text,h=(P,S,w)=>{S<=P||a.push({...i,text:m.slice(P,S),start:i.start+P,end:i.start+S,style:w?{...i.style,shaping:{...s,context:w}}:i.style});},y=m.search(Gd);if(y===-1){h(0,m.length,{before:p,after:g});return}let b=m.length-1;for(;!Gd.test(m[b]);)b--;let x=p?y:0,R=g?b+1:m.length;p&&h(0,x,{before:p,after:m.slice(x,x+iu)}),h(x,R),g&&h(R,m.length,{before:m.slice(Math.max(0,R-iu),R),after:g});}),a}var Gd=/\s/u;function AB(e,t,n,r){let o=n;for(;o>t&&Array.from(e[o-1].text).every(i=>["WS","B","S"].includes(Bl.getBidiCharTypeName(i)));)o--;if(!r||o===t)return o;let a=o;for(;a<n&&e[a].text===chunkPWTRJSES_cjs.mb;)a++;return a===n?a:o}function BB(e,t,n,r,o,a,i=false){for(let l=AB(e,n,r,a);l<r;l++)i&&Yn(e[l].text)||(t[l]=i&&l>n&&NB(e,l)?t[l-1]:o?1:0);return iR(t,n,r)}function NB(e,t){let n=t;for(;n>0&&e[n].box.width===0&&(e[n].text===`
|
|
24
|
+
`||e[n].text===chunkPWTRJSES_cjs.mb);)n--;return n<t&&Yn(e[n].text)}function iR(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 s=l+1;for(;s<r.length&&e[r[s]]>=i;)s++;for(let d=l,c=s-1;d<c;d++,c--)[r[d],r[c]]=[r[c],r[d]];l=s;}return r}function Ed(e,t=e.some(r=>r.style.shaping?.baseLevel===1),n=false){if(!t&&qp(e)||!e.some(s=>s.style.shaping))return e;if(e.some((s,d)=>d>0&&(s.wrapAdvanceBefore??0)>0)){let s=[],d=0;for(let c=1;c<=e.length;c++)if(!(c<e.length&&!(e[c].wrapAdvanceBefore>0))){for(let u of Ed(e.slice(d,c),t,n))s.push(u);d=c;}return s}let r=e.map(s=>s.style.shaping?.level??0),o=[];if(e.every(s=>s.style.shaping?.runDirection!==void 0)){let s=AB(e,0,e.length,n),d=u=>u>=s&&NB(e,u)?d(u-1):u>=s&&!Yn(e[u].text)&&!(n&&e[u].text===chunkPWTRJSES_cjs.mb)?t:e[u].style.shaping?.runDirection==="rtl",c=[];for(let u=0;u<e.length;){let f=d(u),p=u+1;for(;p<e.length&&d(p)===f;)p++;c.push({start:u,end:p,rtl:f}),u=p;}t&&c.reverse();for(let u of c)for(let f of BB(e,r,u.start,u.end,u.rtl,n,true))o.push(f);}else for(let s of BB(e,r,0,e.length,t,n))o.push(s);let a=[...e],i=e.reduce((s,d)=>Math.min(s,d.box.x),1/0),l=e.map((s,d)=>s.box.width+Math.max(0,(e[d+1]?.box.x??s.box.x+s.box.width)-s.box.x-s.box.width));for(let s of o){let d=e[s],c=r[s]%2?"rtl":"ltr",u=l[s]-d.box.width,f=d.text.split(" ").length-1,p=f>0?u/f:0;a[s]={...d,style:d.style.shaping?{...d.style,shaping:{...d.style.shaping,direction:c,...p>0?{wordSpacingPt:(d.style.shaping.wordSpacingPt??0)+p}:{}}}:d.style,box:{...d.box,x:i,width:l[s]}},i+=l[s];}return a}function lR(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 iM(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(Bl.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,tt(a,Ce(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}},s={...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,s,...e.slice(n+1)]}return e}function th(e,t,n,r){if(e.length===0)return;let o;try{o=gp(e,0,Bl.getEmbeddingLevels(e,"rtl"));}catch{return}if(o.length===0||o.length===1&&o[0].bidiLevel%2===0)return;let a=[];for(let l of iR(o.map(s=>s.bidiLevel))){let s=o[l],d=e.slice(s.from,s.to),c={...t,shaping:{script:s.script,direction:s.direction,level:s.bidiLevel,baseLevel:1}},u=r.measure(d,c);a.push({text:d,style:c,box:{...n,width:u}});}let i=n.x+n.width-a.reduce((l,s)=>l+s.box.width,0);return a.map(l=>{let s={...l,box:{...l.box,x:i}};return i+=l.box.width,s})}var sR=new WeakMap,rf=new WeakMap;function af(e){let t=sR.get(e);if(t)return t;let n=new Map;for(let o of e.pages){for(let[a,i]of jB(o)){let l=n.get(a);l?l.push(...i):n.set(a,[...i]);}}let r=of.get(e);if(r){for(let[o,a]of r)a.length>0&&n.set(o,a);of.delete(e);}return sR.set(e,n),n}var of=new WeakMap,dR=new WeakMap;function rh(e,t){if(e===t||e.pages.length!==t.pages.length)return;let n=new Map(dR.get(e));for(let[r,o]of of.get(e)??[])o.length&&n.set(r,new Set(o.map(a=>a.pageIndex)));for(;n.size>cR;)n.delete(n.keys().next().value);n.size&&dR.set(t,n);}var cR=32;function hn(e,t){let n=sR.get(e);if(n)return n.get(t)??[];let r=of.get(e);r||of.set(e,r=new Map);let o=r.get(t);if(o)return o;if(r.size>=cR)return af(e).get(t)??[];let a=[],i=dR.get(e)?.get(t);for(let l of e.pages){if(i&&!i.has(l.index))continue;let s=HY(l,t);if(s)for(let d of s)a.push(d);}return r.set(t,a),a}var Kd=new WeakMap;function HB(e,t){let n=rf.get(e);n&&rf.set(t,n);let r=Kd.get(e);r&&Kd.set(t,new Map(r));let o=nh.get(e);o&&nh.set(t,o);}var nh=new WeakMap;function _Y(e){let t=nh.get(e);if(t)return t;let n=new Set;for(let r of xa(e))for(let o of r.lines){n.add(o.range.paragraphId);for(let a of o.spans)n.add(a.range.paragraphId);for(let a of o.drawings??[])n.add(a.paragraphId);}return nh.set(e,n),n}function HY(e,t){let n=rf.get(e);if(n)return n.get(t);let r=Kd.get(e);if(r?.has(t))return r.get(t);if(r&&r.size>=cR)return jB(e).get(t);let o;if(!_Y(e).has(t))return r||Kd.set(e,r=new Map),r.set(t,o),o;for(let a of xa(e))for(let i of a.lines)i.range.paragraphId!==t&&!i.spans.some(l=>l.range.paragraphId===t)&&!i.drawings?.some(l=>l.paragraphId===t)||nt(i).some(l=>l.paragraphId===t)&&(o??=[]).push({line:i,pageIndex:e.index,...a.clipToBox?{clipBox:a.box}:{}});return r||Kd.set(e,r=new Map),r.set(t,o),o}function jB(e){let t=rf.get(e);if(t)return t;let n=new Map,r=(a,i,l)=>{for(let s of nt(a)){let d={line:a,pageIndex:i,...l?{clipBox:l}:{}},c=n.get(s.paragraphId);c?c.push(d):n.set(s.paragraphId,[d]);}},o=(a,i)=>{let l=s=>{for(let d of s){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i,d.clipToBox?d.box:void 0);continue}for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)l(u.blocks);}};l(a);};for(let a of Ut(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 Kd.delete(e),rf.set(e,n),n}function Wde(e,t,n){let r=hn(e,t);if(r&&r.length>0){let o=xp(e,t,n,r.map(a=>a.line));if(o)return o}return xp(e,t,n)}var DB=new WeakMap;function uR(e,t){let n=DB.get(e);n||(n=new Map,DB.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of hn(e,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 WB(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function jY(e,t){for(let n of uR(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var zB=new WeakMap;function fR(e){let t=zB.get(e);if(t)return t;let n=[],r=a=>{a.textboxStory&&!a.accessibility.hidden&&n.push(a);};for(let a of e.anchoredDrawings??[])r(a);for(let a of un(e.fragments,true))for(let i of a.lines)for(let l of i.drawings??[])r(l);let o=Object.freeze(n);return zB.set(e,o),o}function Vde(e,t){return fR(e).find(n=>n.drawingNodeId===t)}var ah=65536;function Xde(e,t){if(e.length>ah)return;let n=new Array(e.length+1).fill(0),r=xt(e),o=Math.max(0,t);for(let[a,i]of r.entries()){let l=o*a/r.length;for(let s=i.utf16From;s<i.utf16To;s++)n[s]=l;n[i.utf16To]=o*(a+1)/r.length;}return n}function Zde(e,t,n,r,o){if(e.length>ah||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,s=0,d=Math.max(0,t.glyphs.reduce((c,u)=>c+u.advanceX*n,0)+e.length*r+oh(e)*o);for(let c of i){if(c.textStart!==s||c.textEnd<=s||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+oh(e.slice(c.textStart,c.textEnd))*o;l=Math.max(l,Math.min(d,l+c.advance*n+u)),a[c.textEnd]=l,s=c.textEnd;}if(s===e.length)return a[e.length]=d,a}function oh(e){let t=0;for(let n=0;n<e.length;n++)e[n]===" "&&t++;return t}var GB=new WeakMap;function VB(e,t,n){let r=GB.get(n);r||(r=new WeakMap,GB.set(n,r));let o=r.get(e),a=Ce(e.style,e.fontSlot),i=$t(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 p=0;o=f.map((g,m)=>m===0?0:(p=Math.max(p,Math.min(l,Number.isFinite(g)?g:p)),m===i.length?l:p));}}catch{}r.set(e,o);}let s=Math.max(0,Math.min(t,e.text.length));if(s===0)return 0;if(s===e.text.length)return l;let d=$t(e.text.slice(0,s),a);if(o)return o[d.length]??l;let c=a.shaping?.wordSpacingPt??0,u=Math.max(0,l-oh(i)*c);return Math.max(0,Math.min(l,u*d.length/Math.max(1,i.length)+oh(d)*c))}function ih(e,t,n){let r=n?.drawings??e.drawings??[];if(r.length===0)return null;let o=r.find(s=>s.start===t);if(o)return o;let a=n?.spans??e.spans,i=r.find(s=>s.start+1===t);return i?a.some(s=>s.range.paragraphId===i.paragraphId&&s.range.start===t&&s.range.end>t)?null:i:null}function ql(e,t){return t!==$d(e)?e.advanceEnd:e.advanceStart}function $d(e){return (e.bidiLevel??0)%2===1}function mR(e,t,n,r,o,a,i){if(r>t&&r<n)return null;let l=r>=n,s=l!==a;if(!s){let p=l?i.right:i.left;if(!p)return null;let g=l!==$d(p)?p.start+1:p.start,m=e.spans.filter(x=>x.range.paragraphId===p.paragraphId),h=(e.drawings??[]).filter(x=>x.paragraphId===p.paragraphId),y=Math.min(...m.map(x=>x.range.start),...h.map(x=>x.start)),b=Math.max(...m.map(x=>x.range.end),...h.map(x=>x.start+1));if(g>y&&g<b){let x=nt(e).find(R=>R.paragraphId===p.paragraphId);return {offset:g,x:go(e,g,o.measurer,x).x,withinSpan:false}}s=g>=b;}let d=nt(e),c=s?d.at(-1):d[0],u=wp(e,c),f=s?lh(o.layout,u):u.range.start;return {offset:f,x:go(e,f,o.measurer,c).x,withinSpan:false}}function pR(e,t,n,r){let o=t.map(u=>({from:u.box.x,to:u.box.x+u.box.width,start:u.range.start,end:u.range.end,paragraphId:u.range.paragraphId,text:true,rtl:u.style.shaping?.direction==="rtl"}));for(let u of e.drawings??[])o.push({from:u.advanceStart,to:u.advanceEnd,start:u.start,end:u.start+1,paragraphId:u.paragraphId,text:false,rtl:$d(u)});let a,i;for(let u of o)u.to<=n&&(!a||u.to>a.to)&&(a=u),u.from>n&&(!i||u.from<i.from)&&(i=u);if(a?.text&&i?.text)return n-a.to<=i.from-n?{offset:a.end,x:a.to,withinSpan:false}:{offset:i.start,x:i.from,withinSpan:false};let l=a&&i&&a.paragraphId===i.paragraphId?[a.start,a.end].find(u=>u===i.start||u===i.end):void 0,s=a?{offset:l??(a.rtl?a.start:a.end),piece:a}:i&&{offset:i.rtl?i.end:i.start,piece:i};if(!s)return {offset:e.range.start,x:e.contentX,withinSpan:false};let d=nt(e).find(u=>u.paragraphId===s.piece.paragraphId),c=go(e,s.offset,r.measurer,d).x;return {offset:s.offset,x:c,withinSpan:false}}function gr(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 Ud(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 sh(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 KB(e,t,n){return e.kind!=="table"?sh(Ud(e),t,n):Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?sh(e.box,t,n):0}function gR(e){return e.kind==="paragraph"&&e.outOfFlow===true&&!e.positionedFrame}var WY={state:"none"},$B=(e,t)=>t.state==="omitted"?e:t;function Ko(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?WY:e}function hR(e,t){let n=$B;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 yR(e,t){let n=$B;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 Kr(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function dh(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]=VY(e[i],o,n,r);}return a}function zY(e,t){let n=0;for(let r of e){let o=Math.max(0,r.gridColumn|0),a=Math.min(t,o+Math.max(0,r.gridSpan|0));if(!(o>=a)){if(o<n)return false;n=a;}}return true}function GY(e,t,n,r){let o=[];for(let a=0;a<e.length&&(!r||r.intervalsRemaining>0);a+=1){let i=e[a],l=Math.max(0,i.gridColumn|0),s=Math.min(t,l+Math.max(0,i.gridSpan|0));l>=s||(o.push({start:l,end:s,cell:i,cellIndex:a}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}return o}function VY(e,t,n,r){if(zY(e,t))return GY(e,t,n,r);let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,s=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=s[s.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?s[s.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(s.push({start:l,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),l=c.x;}return s}function KY(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 Li(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=KY(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var UY=256,yn={state:"omitted"},qB={state:"none"},RR={top:yn,left:yn,bottom:yn,right:yn,insideH:yn,insideV:yn},JB={top:yn,left:yn,bottom:yn,right:yn},xR={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},YY=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 Jl(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function bR(e,t){return e.attributes.find(n=>n.localName===t)?.value}function XY(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function ZY(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>op?op:t}function SR(e){if(!e)return yn;let t=bR(e,"val");if(!t)return yn;if(t==="nil"||t==="none")return qB;let n=YY.get(t)??"single",r=bR(e,"color"),o=r===void 0||r==="auto"?null:Gb(r)??null;return {state:"edge",style:n,color:o,widthPt:ZY(XY(bR(e,"sz")))}}function QB(e,t){if(!e)return JB;let n={top:yn,left:yn,bottom:yn,right:yn};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=Jl(e,r)??(o?Jl(e,o):void 0);n[r]=SR(a);}return n}function ph(e){let t=e&&Jl(e,"tblBorders");return t?{...QB(t,["top","left","bottom","right"]),insideH:SR(Jl(t,"insideH")),insideV:SR(Jl(t,"insideV"))}:RR}function eL(e,t){let n=Jl(e,"tblPrEx");if(!n)return;let r=ph(n);if(r===RR)return;let o=(a,i)=>i.state==="omitted"?a:i;return {top:o(t.top,r.top),left:o(t.left,r.left),bottom:o(t.bottom,r.bottom),right:o(t.right,r.right),insideH:o(t.insideH,r.insideH),insideV:o(t.insideV,r.insideV)}}function PR(e){return QB(e&&Jl(e,"tcBorders"),["top","left","bottom","right"])}function UB(e){return e.state!=="edge"?0:e.style==="dotted"||e.style==="dashed"?1:Math.max(1,Math.round(e.widthPt*8))*xR[e.style]}function YB(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 XB(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?yn:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?qB:t;if(t.state==="none")return e;let r=UB(e),o=UB(t);if(r>o)return e;if(o>r)return t;let a=xR[e.style],i=xR[t.style];if(a!==i)return a>i?e:t;let l=YB(e.color),s=YB(t.color);for(let d=0;d<l.length;d++){if(l[d]<s[d])return e;if(s[d]<l[d])return t}return n?e:t}function ch(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function qY(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function JY(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 uh(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&&JY(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function fh(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 ZB(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 QY(e){if(!(!e||e.style!=="double"))return zs(e.widthPt)}function eX(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function tX(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function nX(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function rX(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function oX(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function lf(e,t){e.length>=UY||!(t.width>0)||!(t.height>0)||e.push(t);}function aX(e,t,n,r,o,a,i,l,s,d,c){let u=zs(n.widthPt),{strokePt:f,gapPt:p,extentPt:g,insetPt:m}=u,h=Math.abs(r)<1e-6,y=Math.abs(o-a)<1e-6,b=Math.abs(r)<1e-6,x=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let S=t==="top"?m:i-m-f,w=t==="top"?m+f+p:i-m-g;for(let F of ["outer","inner"]){let T=r,v=o;h&&(T=tX(F,l)),y&&(v=nX(F,a,s)),lf(e,{side:t,role:F,color:n.color,cssStyle:"solid",x:T,y:F==="outer"?S:w,width:v-T,height:f});}return}let R=t==="left"?m:a-m-f,P=t==="left"?m+f+p:a-m-g;for(let S of ["outer","inner"]){let w=r,F=o;b&&(w=rX(S,d)),x&&(F=oX(S,i,c)),lf(e,{side:t,role:S,color:n.color,cssStyle:"solid",x:S==="outer"?R:P,y:w,width:f,height:F-w});}}function iX(e,t,n,r,o,a,i){let l=Math.max(.25,n.widthPt),s=Math.max(.25,l),d=l*3+s*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-d;for(let f=0;f<3;f+=1)lf(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(l+s),width:o-r,height:l});return}let c=t==="left"?0:a-d;for(let u=0;u<3;u+=1)lf(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(l+s),y:r,width:l,height:o-r});}function lX(e,t,n,r,o,a,i,l){let s=t==="top"||t==="bottom",d=n.widthPt,c=s?r:l?t==="right"?a-d/2:-d/2:t==="right"?a:0;lf(e,{side:t,role:"edge",color:n.color,cssStyle:eX(n.style),x:c,y:s?t==="bottom"?i-(l?0:d):0:r,width:s?o-r:d,height:s?d:o-r});}function mh(e,t){if(e.length===0)return;let n=e[0];return QY(n.edge)}function sX(e,t,n,r,o,a,i,l,s,d,c=false,u=false,f=false){let p=(E,M,A)=>{let N=[];for(let L of M){if(!L.edge)continue;let D,H;A?(D=ZB(i,l,L.gridStart),H=ZB(i,l,L.gridEnd)):(D=s[L.gridStart-d]??0,H=s[L.gridEnd-d]??a),N.push({side:E,gridStart:L.gridStart,gridEnd:L.gridEnd,startPt:D,endPt:H,edge:L.edge});}return N},g=p("top",e,true),m=p("left",t,false),h=p("bottom",n,true),y=p("right",r,false),b=[...g,...y,...h,...m],x=mh(t),R=mh(r),P=mh(e),S=mh(n),w=(E,M)=>E.length===1&&Math.abs(E[0].startPt)<1e-6&&Math.abs(E[0].endPt-M)<1e-6,F=w(g,o),T=w(m,a),v=w(h,o),C=w(y,a),I=[],O=(E,M,A)=>{for(let N of M){let{edge:L,startPt:D,endPt:H}=N;L.style==="double"?aX(I,E,L,D,H,o,a,E==="top"||E==="bottom"?x:void 0,E==="top"||E==="bottom"?R:void 0,E==="left"||E==="right"?P:void 0,E==="left"||E==="right"?S:void 0):L.style==="triple"?iX(I,E,L,D,H,o,a):(!A||c&&(E==="top"||E==="bottom")||E==="right"||f&&E==="left")&&lX(I,E,L,D,H,o,a,E==="left"||E==="right"?f:c&&E!=="top"&&!(E==="bottom"&&u));}};O("top",g,F),O("left",m,T),O("bottom",h,v),O("right",y,C);let k={};return F&&g[0]&&(k.top=g[0].edge),T&&m[0]&&(k.left=m[0].edge),v&&h[0]&&(k.bottom=h[0].edge),C&&y[0]&&(k.right=y[0].edge),b.length>0&&(k.edgeSegments=b),I.length>0&&(k.strokes=I),k}function Yd(e,t,n,r,o,a){let i=e.length,l=e.map(c=>c.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let s=dh(e,n,o,a),d=(c,u,f)=>Ko(c.borders[u],qY(c.rowTableBorders??t,u,f),{});for(let c=0;c<i;c+=1){let u=e[c];for(let f=0;f<u.length;f+=1){let p=u[f];if(p.vMergeContinue){l[c][f]={};continue}let g=p.mergeRowSpan??1,m=c+g-1,h=c===0,y=m===i-1,b=p.gridColumn===0,x=p.gridColumn+p.gridSpan-1,R=x>=n-1,P=[];if(h)for(let M=p.gridColumn;M<=x;M+=1)P.push({gridStart:M,gridEnd:M+1,edge:ch(d(p,"top",false))});let S=[];if(b)for(let M=c;M<=m;M+=1)S.push({gridStart:M,gridEnd:M+1,edge:ch(d(p,"left",false))});let w=[];for(let M=p.gridColumn;M<=x;M+=1){let A;if(y)A=d(p,"bottom",false);else {let N=Li(s,m+1,M,o);N?.cell.vMergeContinue?A=yn:A=XB(d(p,"bottom",true),N?d(N.cell,"top",true):(p.rowTableBorders??t).insideH);}w.push({gridStart:M,gridEnd:M+1,edge:ch(A)});}let F=[];for(let M=c;M<=m;M+=1){let A;if(R)A=d(p,"right",false);else {let N=Li(s,M,x+1,o);A=XB(d(p,"right",true),N?d(N.cell,"left",true):(p.rowTableBorders??t).insideV);}F.push({gridStart:M,gridEnd:M+1,edge:ch(A)});}let T=uh(P),v=uh(S),C=uh(w),I=uh(F);if(!r){let M={},A=fh(T,p.gridColumn,x+1),N=fh(v,c,m+1),L=fh(C,p.gridColumn,x+1),D=fh(I,c,m+1);A&&(M.top=A),N&&(M.left=N),L&&(M.bottom=L),D&&(M.right=D);let H=[],W=($,G)=>{for(let z of G)z.edge&&H.push({side:$,gridStart:z.gridStart,gridEnd:z.gridEnd,startPt:z.gridStart,endPt:z.gridEnd,edge:z.edge});};W("top",T),W("left",v),W("bottom",C),W("right",I),H.length>0&&(M.edgeSegments=H),l[c][f]=M;continue}let O=r.cellBoxes[c][f],k=[0],E=0;for(let M=c;M<=m;M+=1){let A=r.rowBands[M];E+=A.height,k.push(E);}k.length>1&&(k[k.length-1]=O.height),l[c][f]=sX(T,v,C,I,O.width,O.height,r.columnWidthsPt,p.gridColumn,k,c,r.collapsedHorizontal,y&&O.outerBottomInsetReserved!==false,O.centeredSidePaint??O.centeredSideRules);}}return l}function sf(e){if(!e||"state"in e&&e.state!=="edge")return 0;if(e.style==="double"){let t=zs(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 wR=RR,kR=JB;function Zn(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"),s=n&&o&&t.style==="double"?sf(t)-t.widthPt:sf(t);return Math.max(e+a*(l?.5:1),s*(i?.5:1))}function tL(e){return e.state!=="edge"||e.style!=="double"&&e.style!=="triple"}function Ei(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 tn(e,t){return df(e.margins,e.contentBorders??e.borders,e.legacyContentAlignment===true&&t,t,e.contentBottomIsOuter,e.centeredSideRules,e.topBandClearancePt)}function gh(e,t,n,r=0,o=false){return o?0:e.state==="edge"?Ei(e):t.state==="none"?0:Math.max(Ei(Ko(e,n)),r)}function df(e,t,n=false,r=true,o=false,a=false,i){let l=sf(t.left),s=sf(t.right),d=[t.left,t.right].every(m=>m.state!=="edge"||m.style==="single"||m.style==="thick"),c=n&&d&&(e.left>=l&&e.right>=s||[t.left,t.right].every(m=>m.state!=="edge"||m.style==="single")),u=a&&r||c,f=r&&i!==void 0,p=f&&tL(t.top),g=f&&!o&&tL(t.bottom);return {top:p?e.top+i:Zn(e.top,t.top,r,false,true),right:u?Math.max(e.right,s/2):Zn(e.right,t.right,false,r),bottom:g?e.bottom:Zn(e.bottom,t.bottom,r&&!o),left:u?Math.max(e.left,l/2):Zn(e.left,t.left,false,r)}}function Ai(e,t){let n=0,r=(o,a,i)=>{if(n+=1,n>chunkPWTRJSES_cjs.Hd||i>chunkPWTRJSES_cjs.$)return false;if(o===a)return true;if(o.kind==="textValue"||a.kind==="textValue"||o.id!==a.id||o.kind!==a.kind||o.namespaceUri!==chunkPWTRJSES_cjs.la||a.namespaceUri!==o.namespaceUri||o.localName!==a.localName||o.prefix!==a.prefix||o.attributes!==a.attributes||o.namespaceBindings!==a.namespaceBindings||o.children.length!==a.children.length||["drawing","pict","object"].includes(o.localName))return false;for(let l=0;l<o.children.length;l+=1){let s=o.children[l],d=a.children[l];if(o.localName==="t"&&s.kind==="textValue"&&d.kind==="textValue"&&s.id===d.id){if(n+=1,n>chunkPWTRJSES_cjs.Hd)return false;continue}if(!r(s,d,i+1))return false}return true};return r(e,t,0)}function hh(e,t){return e.contentWidthPt===t.contentWidthPt&&e.depth===t.depth&&e.styleCascade===t.styleCascade&&e.displayMode===t.displayMode&&e.authorFilter===t.authorFilter&&e.compatibilityMode===t.compatibilityMode&&e.textBox===t.textBox}function dX(){let e=new WeakMap,t=new WeakMap,n=(r,o)=>{let a=t.get(r)??[],i=a.findIndex(l=>hh(l,o));i>=0?a[i]=o:(a.length===4&&a.shift(),a.push(o)),t.set(r,a);};return function(o,a,i){let l=o.kind==="table"?o.children.find(p=>p.localName==="tblPr"):void 0,s=l?void 0:e.get(o)??[],d=(l?t.get(l):s)?.find(p=>p.table===o&&hh(p,a));if(d)return d.structure;let c=l?t.get(l)?.find(p=>hh(p,a)):void 0,u;if(c?.structure&&hh(c,a)&&Ai(c.table,o)){let p=new Map,g=(m,h)=>{if(!(m===h||m.kind==="textValue"||h.kind==="textValue")){if(h.kind==="tableCell"){p.set(h.id,h);return}for(let y=0;y<m.children.length;y++)g(m.children[y],h.children[y]);}};g(c.table,o),u={...c.structure,rows:c.structure.rows.map(m=>m.cells.some(h=>p.has(h.id))?{...m,cells:m.cells.map(h=>{let y=p.get(h.id);return y&&y.kind!=="textValue"?{...h,blocks:Zl(y.children,a.displayMode,a.authorFilter)}:h})}:m)};}u??=i();let f={...a,table:o,structure:u};return l?n(l,f):s&&(s.length===4&&s.shift(),s.push(f),e.set(o,s)),u}}var nL=dX();function cX(e,t,n){if(t!=="all-markup"||!e)return;let r=rL(e);if(!r)return;let o=a=>r.attributes.find(i=>i.localName===a&&i.namespaceUri===chunkPWTRJSES_cjs.la)?.value;if(!(n&&!ed(n,r.id,o("author")??"")))return r.localName==="cellIns"?"inserted":r.localName==="cellDel"?"deleted":o("vMergeOrig")==="cont"&&o("vMerge")!=="cont"?"split":"merged"}function rL(e){let t=e.children.find(n=>n.kind!=="textValue"&&n.namespaceUri===chunkPWTRJSES_cjs.la&&["cellIns","cellDel","cellMerge"].includes(n.localName));return t?.kind!=="textValue"?t:void 0}function oL(e,t,n,r){let o=cX(e,t,n),a=o??(t==="all-markup"&&r?r.localName==="ins"?"inserted":"deleted":void 0);if(!a)return {};let l=(o&&e?rL(e):r)?.attributes.find(s=>s.localName==="author"&&s.namespaceUri===chunkPWTRJSES_cjs.la)?.value??"";return {revisionShading:a,revisionShadingAuthor:l}}function cf(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n}function Ni(e,t){return e.attributes.find(n=>n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)?.value}function TR(e){let t=e?.children.find(r=>r.kind!=="textValue"&&r.localName==="jc");if(!t||t.kind==="textValue")return;let n=t.attributes.find(r=>r.localName==="val")?.value;if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}var vR=new WeakMap;function Ea(e){let t=vR.get(e);return t||(t={eligible:void 0,listFree:0,ordinary:void 0,keepsWithNext:void 0,breaksPageBefore:void 0},vR.set(e,t)),t}function FR(e,t){return vR.set(t,Ea(e)),t}var yh=new WeakMap;function iL(e,t){let n=yh.get(e);if(n?.columns===t)return n.value;let o=(()=>{let a,i=false;for(let l of e){let s=0;for(let d of l.cells){if(d.gridColumn!==s)return false;if(s+=d.gridSpan,d.vMergeContinue)continue;let c=d.contentBorders??d.borders;for(let u of [c.left,c.right]){if(u.state!=="edge"){i=true;continue}if(u.style!=="single"&&u.style!=="thick"||u.widthPt<=0||a!==void 0&&u.widthPt!==a)return false;a=u.widthPt;}}if(s!==t)return false}return i&&a!==void 0})();return yh.set(e,{columns:t,value:o}),o}function lL(e,t){let n=yh.get(e);n&&yh.set(t,n);}var dL=new WeakMap,cL=new WeakMap,uL=new WeakMap,fL=new WeakMap;function mL(e,t){let n=t?uL:fL,r=n.get(e);return r||(r=df(e.margins,e.contentBorders??e.borders,false,t,e.contentBottomIsOuter,false,e.topBandClearancePt),n.set(e,r)),r}function pL(e,t){if(t.centeredSideRules||t.legacyContentAlignment||e.margins!==t.margins||e.borders!==t.borders||e.contentBorders!==t.contentBorders||e.contentBottomIsOuter!==t.contentBottomIsOuter||e.topBandClearancePt!==t.topBandClearancePt)return;let n=uL.get(e),r=fL.get(e);n&&dL.set(t,n),r&&cL.set(t,r);}var sL=new WeakMap;function gL(e,t){let n=sL.get(e);if(n?.tableBottom===t)return n.value;let r=Zn(e.margins.bottom,Ko(e.borders.bottom,t));return sL.set(e,{tableBottom:t,value:r}),r}function ho(e,t){let n=t?dL:cL,r=n.get(e);return r||n.set(e,r=tn(e,t)),r}var bh=["single","thick"];function hL(e){return e.state==="edge"&&!bh.includes(e.style)}function yL(e){return e.state==="edge"&&bh.includes(e.style)&&e.widthPt>0?e.widthPt:void 0}var bL=["dxa","auto"];function uX(e,t=false){let{left:n,right:r}=e.contentBorders??e.borders;if(t&&(hL(n)||hL(r)))return false;let o=n.state==="edge"&&bh.includes(n.style),a=r.state==="edge"&&bh.includes(r.style);return !(!o&&!a||o&&a&&n.widthPt!==r.widthPt)}function xL(e,t,n=false){let r=e.map(o=>FR(o,SL(o,{...o,cells:o.cells.map(a=>uX(a,n)?t(a):a)})));return RL(e,r)}function fX(e,t=false){return xL(e,n=>({...n,centeredSidePaint:true}),t)}function IR(e,t=false){return xL(e,n=>({...n,centeredSideRules:true}),t)}var xh=new WeakMap,uf=new WeakMap;function SL(e,t){let n=xh.get(e);return n&&xh.set(t,n),t}function RL(e,t){lL(e,t);let n=uf.get(e);return n&&uf.set(t,n),t}function mX(e,t){let n=xh.get(e);if(n?.columns===t)return n.value;let o=(()=>{let a=e.cells[0],i=e.cells.at(-1);if(!a||!i||a.gridColumn!==0||i.gridColumn+i.gridSpan!==t)return null;let l;for(let s of e.cells){if(s.vMergeContinue)continue;let{left:d,right:c}=s.contentBorders??s.borders,u=yL(d);if(u===void 0||l!==void 0&&u!==l||yL(c)!==u)return null;l=u;}return l})();return xh.set(e,{columns:t,value:o}),o}function PL(e,t){let n=uf.get(e);if(n?.columns===t)return n.value;let r;for(let o of e){let a=mX(o,t);if(a===null||a!==void 0&&r!==void 0&&a!==r){uf.set(e,{columns:t,value:void 0});return}a!==void 0&&(r=a);}return uf.set(e,{columns:t,value:r}),r}function pX(e,t){if(!Le(t.compatibilityMode,"modernGridLineSideRules")||!bL.includes(t.widthType)||t.alignment==="center")return;let n=PL(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 OR(e,t){let{compatibilityMode:n}=t;if(t.depth!==0||t.bidiVisual||t.floating||t.cellSpacingPt!==0)return null;let r=Le(n,"legacySharedGridLineSideRules"),o=Le(n,"modernGridLineSideRules")&&bL.includes(t.widthType),a=o&&t.alignment==="center",i=r?void 0:pX(e,t),l=o&&!a&&i===void 0&&PL(e,t.columnWidthsPt.length)===void 0&&iL(e,t.columnWidthsPt.length);return !r&&!a&&!l&&i===void 0?null:{legacyMode:r,modernGridWidth:o,outerRuleOffsetPt:i}}var CR=new WeakMap;function wL(e){let t=CR.get(e);if(t)return t;let n=false,r=e.cells.map(a=>{if(!a.centeredSideRules&&!a.centeredSidePaint)return a;n=true;let{centeredSideRules:i,centeredSidePaint:l,...s}=a;return pL(a,s),s}),o=n?FR(e,SL(e,{...e,cells:r})):e;return CR.set(e,o),o}function kL(e,t,n){let r=CR.get(e);if(r)return r;if(e.cells.every(o=>!o.legacyContentAlignment&&!o.vMergeContinue&&o.gridColumn>=0&&o.gridColumn<t&&o.textDirection==="horizontal"&&(o.gridSpan===1||n)))return wL(e)}function TL(e,t,n){let r=OR(e,t),o={...t,columnWidthsPt:n},a=OR(e,o);return r===a||r&&a&&r.legacyMode===a.legacyMode&&r.modernGridWidth===a.modernGridWidth&&r.outerRuleOffsetPt===a.outerRuleOffsetPt?{rows:e,...a?.outerRuleOffsetPt===void 0?{}:{outerRuleOffsetPt:a.outerRuleOffsetPt}}:MR(RL(e,e.map(wL)),o)}function MR(e,t){let n=OR(e,t);if(!n)return {rows:e};let{legacyMode:r,modernGridWidth:o,outerRuleOffsetPt:a}=n,i=fX(e,!r),l=t.widthType==="dxa"||o?IR(i,!r):i;return a===void 0?{rows:l}:{rows:l,outerRuleOffsetPt:a}}var FL=31680/20,yo=Object.freeze({type:"auto",value:0}),gX=100,OL=32767;function Sh(e){let t=e%65536;return t>0&&t<=OL?t:void 0}var hX=1/50,CL=/^[+-]?\d{0,9}(?:\.\d{0,32})?$/;function yX(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function ff(e,t){return e.attributes.find(n=>n.localName===t)?.value}function IL(e){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=chunkPWTRJSES_cjs.nd(e);return n!==null&&n>=0?{kind:"length",pt:n/20}:null}function Xd(e,t=false){if(!e)return yo;let n=ff(e,"type");if(n!==void 0&&n!=="pct"&&n!=="dxa")return n==="nil"?{type:"nil",value:0}:yo;let r=ff(e,"w");if(r===void 0)return yo;let o=IL(r);if(!o)return yo;let a=CL.test(r);if(o.kind==="percent"||a&&n==="pct"){let i=o.kind==="percent"?o.percent:o.pt*20/50;if(!Number.isFinite(i)||i<=0)return yo;if(!t)return {type:"pct",value:Math.min(i,gX)};if(o.kind==="percent")return {type:"pct",value:i*50<=OL+1e-6?i:hX};let l=Sh(i*50);return l===void 0?yo:{type:"pct",value:l/50}}return !Number.isFinite(o.pt)||o.pt<=0?yo:{type:"dxa",value:Math.min(o.pt,FL)}}function LR(e){return Xd(e,true)}function Rh(e,t){if(!e)return;let n=Xd(e);if(n.type==="dxa")return Math.min(n.value,t)}function mf(e,t){if(!e)return;let n=ff(e,"type");if(n!==void 0&&n!=="dxa"&&n!=="pct")return;let r=ff(e,"w");if(r===void 0||n==="pct"&&CL.test(r))return;let o=chunkPWTRJSES_cjs.nd(r);if(o===null)return;let a=o/20;return Math.max(-t,Math.min(a,t))+0}function ML(e){let t=yX(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 bX(e){let t=[];for(let n of e){let r=ff(n,"w"),o=r===void 0?null:IL(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>FL?void 0:o.pt);}return t}function xX(e,t){if(t.length===0||t.some(r=>r.span!==1||r.preferred.type!=="dxa"||!Number.isFinite(r.preferred.value)||r.preferred.value<=0))return e;let n=e.map(()=>{});for(let r of t)r.start<0||r.start>=e.length||(n[r.start]=Math.max(n[r.start]??0,r.preferred.value));return e.map((r,o)=>n[o]??r)}var BR=1,vL=.001;function SX(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,s)=>l.span-s.span);for(let l of i){let s=Math.min(l.start+l.span,n);if(s<=l.start)continue;let d=l.preferred.type==="pct"?r*l.preferred.value/100:l.preferred.value;if(!Number.isFinite(d)||d<=0)continue;if(s-l.start===1){if(o&&l.preferred.type==="dxa"&&e[l.start]!==void 0)continue;let p=a[l.start];a[l.start]=p===void 0?d:Math.max(p,d);continue}let c=[],u=d;for(let p=l.start;p<s;p+=1){let g=a[p];g===void 0?c.push(p):u-=g;}if(c.length===0||u<=0)continue;let f=u/c.length;for(let p of c)a[p]=f;}return a}function BL(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:BR,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=bX(e.gridCols),l=e.layoutFixed&&!e.hasOmittedRows&&a<=0?xX(i,e.claims):i,s=SX(l,e.claims,t,a),d=0,c=0;for(let b of s)b===void 0?c+=1:d+=b;let u=[];if(c>0){let b=d>0?d/Math.max(t-c,1):o/t,x=Math.max(o-d,0)/c,R=Math.max(Math.min(x,b),BR);for(let P of s)u.push(P??R);}else for(let b of s)u.push(b);let f=u.reduce((b,x)=>b+x,0);if(!Number.isFinite(f)||f<=0)return new Array(t).fill(o/t);let p=t*BR,g=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?a:Math.min(f,g),p),h=n.type==="pct"&&a>0;if(f<=m+vL&&!h||Math.abs(f-m)<=vL)return u;let y=m/f;return u.map(b=>b*y)}function qd(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Zd(e,t){return e.attributes.find(n=>n.localName===t)?.value}function LL(e){let t=e&&qd(e,"gridSpan"),n=t&&Zd(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 ER(e,t){let n=e&&qd(e,t),r=n&&Zd(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 EL(e){let t=e&&qd(e,"vMerge");return t?Zd(t,"val")==="restart"?"restart":"continue":"none"}function AR(e){return uT(e&&qd(e,"shd"))}function wh(e,t){let n=e&&qd(e,t);if(!n)return false;let r=Zd(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var Ph=Object.freeze({rule:"auto"});function AL(e){let t=e&&qd(e,"trHeight");if(!t)return Ph;let n=Zd(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return Ph;let o=Zd(t,"val"),a=chunkPWTRJSES_cjs.nd(o);if(a===null||a<=0)return Ph;let i=Math.min(a/20,NL);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Ph}function RX(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function bo(e,t){return e.attributes.find(n=>n.localName===t)?.value}var DL=31680/20;function _L(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Jd(e,t=false){let n=chunkPWTRJSES_cjs.nd(e);if(n===null)return;let r=(n-(t?1:0))/20;return Math.max(-DL,Math.min(DL,r))}function Ql(e){let t=e&&RX(e,"tblpPr");if(!t)return;let n=bo(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=bo(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:_L(bo(t,"horzAnchor"))??"text",vertAnchor:_L(bo(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Jd(bo(t,"tblpX"),true)??0,...a?{ySpec:a}:{},yPt:Jd(bo(t,"tblpY"),true)??0,...["topFromText","rightFromText","bottomFromText","leftFromText"].some(i=>bo(t,i)!==void 0)?{distances:{top:Math.max(0,Jd(bo(t,"topFromText"))??0),right:Math.max(0,Jd(bo(t,"rightFromText"))??0),bottom:Math.max(0,Jd(bo(t,"bottomFromText"))??0),left:Math.max(0,Jd(bo(t,"leftFromText"))??0)}}:{}}}function Qd(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function PX(e,t){return e.attributes.find(n=>n.localName===t)?.value}var wX=3,HL=108/20,ec=31680/20,kX={top:0,right:HL,bottom:0,left:HL};function kh(e){if(!e)return;let t=PX(e,"w"),n=chunkPWTRJSES_cjs.nd(t);if(n===null||n<0)return;let r=n/20;return r>ec?ec:r}function Th(e){if(!e)return {};let t=kh(Qd(e,"top")),n=kh(Qd(e,"left")??Qd(e,"start")),r=kh(Qd(e,"bottom")),o=kh(Qd(e,"right")??Qd(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function vh(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}function jL(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 WL(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n}}function NR(e){let t=WL(e,"tblHeader");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="val")?.value;return n===void 0||n!=="0"&&n!=="false"&&n!=="off"}function zL(e,t,n){let r=false;for(let o of e.tableRowPropertyNodes)r=NR(o)??r;for(let o of t)r=NR(WL(e.conditional.get(o),"trPr"))??r;return NR(n)??r}function DR(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)return n}}function Fh(e){if(e?.namespaceUri!==chunkPWTRJSES_cjs.la)return;let t=DR(e,"hideMark");if(!t)return;let n=t.attributes.find(r=>r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="val")?.value;return n===void 0||!["0","false","off"].includes(n)}function GL(e,t,n){let r=false;for(let o of e.tableCellPropertyNodes??[])r=Fh(o)??r;for(let o of t){let a=e.conditionalStyleLayers?.get(o);if(a)for(let i of a)r=Fh(DR(i,"tcPr"))??r;else r=Fh(DR(e.conditional.get(o),"tcPr"))??r;}return Fh(n)??r}function TX(e){if(e.namespaceUri!==chunkPWTRJSES_cjs.la)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!==chunkPWTRJSES_cjs.la||!["top","left","bottom","right"].includes(r)||t.has(r))return false;t.add(r);let o=n.attributes.filter(l=>l.localName==="w"),a=n.attributes.filter(l=>l.localName==="type"),i=o.length===1?chunkPWTRJSES_cjs.nd(o[0].value):null;if(i===null||o[0].namespaceUri!==chunkPWTRJSES_cjs.la||i<0||i>31680||a.length>1||a.length===1&&(a[0].namespaceUri!==chunkPWTRJSES_cjs.la||a[0].value!=="dxa"))return false}return true}function Oh(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(!TX(o))return false}else n.push(o);}return true}function _R(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!==chunkPWTRJSES_cjs.la||o?.namespaceUri!==chunkPWTRJSES_cjs.la||o.value!=="0")return true}for(let o of r.children)t.push(o);}}return false}function VL(e,t,n,r){if(!Le(r.compatibilityMode,"fixedTableContentEdgeOrigin")||r.depth!==0||r.bidiVisual||r.floating||r.cellSpacingPt!==0||!r.layoutFixed||r.alignment!=="left"||!["auto","dxa"].includes(r.widthType)||!Oh(e,t)||_R(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 s=l.attributes.filter(c=>c.localName==="type"),d=l.attributes.filter(c=>c.localName==="w");if(l.namespaceUri!==chunkPWTRJSES_cjs.la||s.length>1||d.length!==1||d[0].namespaceUri!==chunkPWTRJSES_cjs.la||s[0]&&(s[0].namespaceUri!==chunkPWTRJSES_cjs.la||s[0].value!=="dxa")||mf(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],s=i.cells.at(-1);if(!l||!s||l.gridColumn!==0||l.margins.left!==a||s.gridColumn+s.gridSpan!==r.columnWidthsPt.length)return;for(let d of i.cells){if(d.vMergeContinue)continue;let c=d.contentBorders??d.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],p=d.margins[u];if(!Number.isFinite(p)||p<0||f.state==="edge"&&(!["single","thick"].includes(f.style)||p<f.widthPt/2))return}}}return -a}}var Ch=31680/20,KL=.001;function $L(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=chunkPWTRJSES_cjs.nd(Aa(t[o.start],"w"));if(i===null||i<0)return o;let l=i/20,s=n*o.preferred.value/100-l;return s>0&&s<=r+KL?{...o,preferred:{type:"dxa",value:l}}:o})}function Na(e,t){let n;for(let r of e.children)if(!(r.kind==="textValue"||r.localName!==t)){if(n||r.namespaceUri!==chunkPWTRJSES_cjs.la)return;n=r;}return n}function Aa(e,t){let n=e?.attributes.filter(r=>r.localName===t);return n?.length===1&&n[0].namespaceUri===chunkPWTRJSES_cjs.la?n[0].value:void 0}var vX=.75;function UL(e,t){return t.type==="pct"?{widthPt:e.widthPt+vX,gridConfirmed:false,trailingOuterEdge:true}:{...e,trailingOuterEdge:true}}function YL(e){let{compatibilityMode:t,contentWidthPt:n,table:r,rows:o,columnCount:a}=e;if(!Le(t,"legacyPercentTableContentWidth")||e.depth!==0||e.floating||e.cellSpacingPt!==0||e.tableWidth.type!=="auto"&&(e.tableWidth.type!=="pct"||e.tableWidth.value<=0)||!Number.isFinite(n)||n<=0||n>Ch||a<1||a>1024)return;let i=Na(r,"tblPr");if(!i)return;let l=Na(i,"tblW"),s=Aa(l,"w");if(!(e.tableWidth.type==="auto"&&(!l||Aa(l,"type")==="auto"||Aa(l,"type")==="pct"&&/^\d{1,9}$/.test(s??"")&&Sh(Number(s))===void 0))&&(Aa(l,"type")!=="pct"||s===void 0||(!/^\d{1,9}$/.test(s)||Sh(Number(s))===void 0)&&!/^\d{1,7}(?:\.\d{1,4})?%$/.test(s)))return;for(let y of [...e.propertyNodes,i])for(let b of y.children)if(b.kind!=="textValue"&&(["jc","tblCellSpacing"].includes(b.localName)&&b.namespaceUri!==chunkPWTRJSES_cjs.la||b.localName==="tblpPr"||b.localName==="jc"&&!["left","start","center","right","end"].includes(Aa(b,"val")??"")||b.localName==="tblCellSpacing"&&(Aa(b,"type")!=="dxa"||Aa(b,"w")!=="0")))return;let c=o[0]?.cells[0],u=o[0]?.cells.at(-1);if(!c||!u||!Oh(r,e.propertyNodes)||_R(r)||!XL([i,...e.propertyNodes]))return;let f=c.margins.left,p=u.margins.right,g=Math.max(f,(e.outerRulesPt?.left??0)/2),m=Math.max(p,(e.outerRulesPt?.right??0)/2),h=n+g+m;if(!(!Number.isFinite(h)||f<0||p<0||g+m<=0||h>Ch)){for(let y of o){let b=y.cells[0],x=y.cells.at(-1);if(!b||!x||b.gridColumn!==0||x.gridColumn+x.gridSpan!==a||b.margins.left!==f||x.margins.right!==p)return}return {widthPt:h,gridConfirmed:FX(r,a,h,e)}}}function XL(e){let t=false,n=false;for(let r of e){let o=Na(r,"tblCellMar");o&&(t||=!!(Na(o,"left")??Na(o,"start")),n||=!!(Na(o,"right")??Na(o,"end")));}return t&&n}function FX(e,t,n,r){let o=Na(e,"tblGrid");if(!o)return false;let a=0,i=0;for(let l of o.children){if(l.kind==="textValue")continue;if(l.localName!=="gridCol"||l.namespaceUri!==chunkPWTRJSES_cjs.la)return false;let s=chunkPWTRJSES_cjs.nd(Aa(l,"w"));if(s===null||s<0)return false;let d=s/20;if(d<1||d>Ch||++a>1024)return false;i+=d;}return a===t&&Math.abs(i-n*r.tableWidth.value/100)<=.025+KL}function ZL(e){let{contentWidthPt:t,rows:n}=e;if(!Le(e.compatibilityMode,"legacyPercentTableContentWidth")||e.depth===0||e.layoutFixed||e.tableWidth.type!=="auto"||e.cellSpacingPt!==0||!Number.isFinite(t)||t<=0)return;let r=Na(e.table,"tblPr");if(!r||!XL([r,...e.propertyNodes]))return;let o=n[0]?.cells[0]?.margins.left??0,a=n[0]?.cells.at(-1)?.margins.right??0,i=t+o+a;return o>=0&&a>=0&&Number.isFinite(i)&&i<=Ch?i:void 0}function qL(e){return e.state!=="edge"||e.style!=="single"&&e.style!=="thick"?0:Number.isFinite(e.widthPt)&&e.widthPt>0?e.widthPt:0}function HR(e,t,n){let r=t[0]?.cells??[],o=n?r.at(-1)?.borders.right:r[0]?.borders.left,a=n?r[0]?.borders.left:r.at(-1)?.borders.right,i=n?e.right:e.left,l=n?e.left:e.right,s=!o||o.state==="omitted"?i:o,d=!a||a.state==="omitted"?l:a;return {left:qL(s),right:qL(d)}}function OX(e,t,n,r,o=false){if(e.type!=="pct"||e.value===100||!(t>0))return e;let a=HR(n,r,o),i=(a.left+a.right)/2;return !(i>0)||i>=t?e:{type:"pct",value:(e.value/100*(t-i)+i)/t*100}}function JL(e){let{depth:t,tableWidth:n,contentWidthPt:r,rows:o}=e,a=YL({...e,...e.bidiVisual?{}:{outerRulesPt:HR(e.tableBorders,o,false)}}),i=a&&e.textBox&&!e.bidiVisual?UL(a,n):a,l=i===void 0&&(t>0||!Le(e.compatibilityMode,"legacyPercentTableContentWidth"))?OX(n,r,e.tableBorders,o,e.bidiVisual):n,s=e.alignment==="left"&&!e.bidiVisual,d=i&&s&&!e.indentStated&&e.propertyNodes.length===0?o[0]?.cells[0]?.margins.left??0:e.indentPt,c=n.type==="auto"&&!e.layoutFixed&&t===0&&!e.floating&&e.alignment==="left"?Math.max(0,d):0,u=i?void 0:ZL(e),f=e.bidiVisual&&t===0&&!e.textBox&&!e.floating&&e.cellSpacingPt===0&&Le(e.compatibilityMode,"modernBidiTableRuleShift")?HR(e.tableBorders,o,true):void 0,p=f?-(f.left+f.right)/4:0;return {...p<0?{bidiRuleShiftPt:p}:{},legacy:i,tableWidth:l,contentWidthPt:u??(i?.widthPt??r)-c,claims:i?.gridConfirmed?$L(e.claims,e.gridCols,i.widthPt*n.value/100):e.claims,indentPt:d}}function tE(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function WR(e,t){return e.attributes.find(n=>n.localName===t)?.value}var CX=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function Da(e,t){let n=WR(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function nE(e){let t=e&&tE(e,"tblLook");if(!t)return CX;let n=WR(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:Da(t,"firstRow")??(r&32)!==0,lastRow:Da(t,"lastRow")??(r&64)!==0,firstColumn:Da(t,"firstColumn")??(r&128)!==0,lastColumn:Da(t,"lastColumn")??(r&256)!==0,rowBanding:Da(t,"noHBand")===void 0?(r&512)===0:!Da(t,"noHBand"),columnBanding:Da(t,"noVBand")===void 0?(r&1024)===0:!Da(t,"noVBand")}}var jR=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],QL=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function eE(e,t){let n=e&&tE(e,"cnfStyle");if(!n)return;let r=WR(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<jR.length;o+=1)r[o]==="1"&&t.add(jR[o]);for(let o=0;o<QL.length;o+=1)Da(n,QL[o])===true&&t.add(jR[o]);}var IX=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function zR(e){let t=new Set;eE(e.rowProperties,t),eE(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:l}=e,s=t.has("firstRow")||n.firstRow&&r===0,d=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=l;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let m=a-(n.firstColumn?1:0);t.add(m%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!s&&!d){let m=r-(n.firstRow?1:0);t.add(m%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),s&&t.add("firstRow"),d&&t.add("lastRow"),s&&c&&t.add("nwCell"),s&&u&&t.add("neCell"),d&&c&&t.add("swCell"),d&&u&&t.add("seCell");let g=[];for(let m of IX)t.has(m)&&g.push(m);return g}var GR=new WeakMap,rE=new WeakMap;function oE(e,t,n,r,o,a=false){let i=e?GR.get(e):void 0,l=VR(e,n||a,r,o),s=l?i.scope:{};return GR.set(t,{measurer:r.measurer,passToken:r.passToken,fieldToken:o,scope:s}),rE.set(r,s),n&&l}function pf(e){return rE.get(e)}function VR(e,t,n,r){let o=e?GR.get(e):void 0;return !!(t&&o&&o.measurer===n.measurer&&o.passToken===n.passToken&&o.fieldToken===r)}function MX(e,t){let n=t.paragraphToken,r="";for(let o of e.blocks)r+=n?`${n(o)}\0`:`${tc(t.listItems?.get(o.id))}\0`;return r}var aE=new WeakMap;function iE(e,t,n,r,o){let a=pf(n);if(!a||e.blocks.some(c=>c.kind==="table"))return o();let i=aE.get(e),l=r.authorFilter?.cacheKey??"",s=MX(e,n);if(i?.scope===a&&i.lists===s&&i.cascade===r.styleCascade&&i.mode===r.displayMode&&i.authors===l&&i.collapsed===t)return i.value;let d=o();return aE.set(e,{scope:a,cascade:r.styleCascade,mode:r.displayMode,authors:l,collapsed:t,lists:s,value:d}),d}function lE(e,t,n,r){if(!e.centeredSideRules&&!e.legacyContentAlignment)return n;let o=r&&!r.legacyContentAlignment&&!r.centeredSideRules?ho(r,t):mL(e,t);return {left:Math.max(n.left,o.left),right:Math.max(n.right,o.right)}}function $o(e){return Number.isFinite(e)&&e>0?2*e:0}function sE(e,t){if(!Number.isFinite(t)||t<=0||e.length===0)return null;let n=$o(t),r=[0];for(let i of e)r.push(r.at(-1)+i);let o=Ih(e,t),a=i=>r[Math.max(0,Math.min(i,e.length))];return {gapPt:n,cellLeft:i=>n*(i+1)+a(i)*o,cellWidth:(i,l)=>(a(i+l)-a(i))*o+n*Math.max(0,l-1)}}function Ih(e,t){if(!Number.isFinite(t)||t<=0||e.length===0)return 1;let n=0;for(let r of e)n+=r;return n<=0?1:Math.max(0,n-(e.length+1)*$o(t))/n}function Mh(e){return (e.columnWidthsPt.length+1)*$o(e.cellSpacingPt)}function gf(e){let t=Ih(e.columnWidthsPt,e.cellSpacingPt);return t===1?e.columnWidthsPt:e.columnWidthsPt.map(n=>n*t)}function KR(e,t){let n=0;for(let o of e)n+=o;if(n<=0)return e.map(()=>t/Math.max(e.length,1));let r=(n+t)/n;return e.map(o=>o*r)}function $r(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function nc(e){let t=e.rows.at(-1);return t&&t.height.rule!=="exact"?$o(e.cellSpacingPt):0}function rc(e,t,n,r){if(r.length===0)return t;let o=[...t];for(let a of [...r].sort((i,l)=>i.count-l.count)){let i=[];for(let c=a.from;c<a.from+a.count&&c<o.length;c++)i.push(c);if(i.length<2)continue;let l=0;for(let c of i)l+=Math.max(e[c],o[c]);if(a.minimum<=l+.01)continue;let s=c=>Math.max(e[c],o[c])+Math.max(n[c],o[c]),d=new Set;for(;;){let c=a.minimum,u=0;for(let g of i)d.has(g)?c-=o[g]:u+=s(g);let f=g=>u>0?c*s(g)/u:c/(i.length-d.size),p=i.filter(g=>!d.has(g)&&f(g)<o[g]-.01);if(p.length>0&&d.size+p.length<i.length){for(let g of p)d.add(g);continue}for(let g of i)d.has(g)||(o[g]=Math.max(o[g],f(g)));break}}return o}function $R(e,t,n,r,o,a,i=0){let l=e.length,s=new Array(l),d=0,c=0,u=0,f=0;for(let R=0;R<l;R++){let P=Math.max(n[R],1);t[R]?(u+=Math.max(r[R],P),f+=P):(d+=Math.max(e[R],P),c+=P);}let p=o??Math.min(d+u,a);if(d+u<=p+.01){let R=p-d-u;for(let P=0;P<l;P++){let S=Math.max(n[P],1);if(!t[P]){s[P]=Math.max(e[P],S);continue}let w=Math.max(r[P],S);s[P]=u>0?w+R*w/u:w;}return s}if(c+u<=p+.01){let R=d+u-p,P=0;for(let S=0;S<l;S++){if(t[S])continue;let w=Math.max(n[S],1);P+=Math.max(e[S],w)-w;}for(let S=0;S<l;S++){let w=Math.max(n[S],1);if(t[S]){s[S]=Math.max(r[S],w);continue}let F=Math.max(e[S],w);s[S]=P>0?F-R*(F-w)/P:F;}return s}let g=p-c;if(g>=f-.01){let R=u>f?(g-f)/(u-f):0;for(let P=0;P<l;P++){let S=Math.max(n[P],1);s[P]=t[P]?S+(Math.max(r[P],S)-S)*R:S;}return s}let m=n.map(R=>Math.max(R,1)),h=m.reduce((R,P)=>R+P,0),y=Math.max(p,a,i);if(!Number.isFinite(y)||h<=y)return m;let b=l*1,x=Math.max(0,y-b)/Math.max(h-b,.01);return m.map(R=>1+(R-1)*x)}function UR(e,t,n,r,o){let a=t.map(m=>Math.max(m,1)),i=e.map((m,h)=>Math.max(m,a[h])),l=i.reduce((m,h)=>m+h,0);if(!Number.isFinite(l)||!Number.isFinite(n)||n<0)return i;if(l<n-.01)return o?i.map(m=>m*n/l):i;let s=l-n;if(s<=.01)return i;let d=i.map((m,h)=>m-a[h]),c=d.reduce((m,h)=>m+h,0);if(s<=c)return i.map((m,h)=>m-s*d[h]/c);let u=a.reduce((m,h)=>m+h,0),f=Math.max(n,r);if(!Number.isFinite(f)||u<=f)return a;let p=a.length*1,g=Math.max(0,f-p)/Math.max(u-p,.01);return a.map(m=>1+(m-1)*g)}var BX=(e,t)=>t instanceof Map?[...t]:t,dE=new WeakMap,LX=new TextEncoder;function Uo(e){if(!e)return "";let t=dE.get(e);return t===void 0&&(t=chunkPWTRJSES_cjs.f(LX.encode(JSON.stringify(e,BX))),dE.set(e,t)),t}var cE=new WeakMap;function YR(e){if(!e)return "";let t=cE.get(e);return t===void 0&&(t=JSON.stringify([e.paragraphProperties,e.runProperties]),cE.set(e,t)),t}function xo(e,t,n){let r=e.float;if(!r)return t.text.left+_a(e,t.text.width);let o=e.columnWidthsPt.reduce((s,d)=>s+d,0),a=Bh(r,o,t),i=e.rows[0]?.cells[0];if(!Le(n,"floatingTableContentOrigin")||e.bidiVisual||e.cellSpacingPt!==0)return a;if(r.xSpec==="right"||r.xSpec==="outside")return a-(r.distances?.left??0)<=t.text.left?a:a+e.defaultMargins.right;if(!i||i.gridColumn!==0||r.horzAnchor!=="text"||r.vertAnchor!=="text"||r.xSpec!==void 0)return a;let l=df(i.margins,i.contentBorders??i.borders).left;return Math.max(t.page.left,a-l)}function uE(e){return e?.state!=="edge"||e.style!=="single"&&e.style!=="thick"?0:Number.isFinite(e.widthPt)&&e.widthPt>0?e.widthPt:0}function XR(e){let t=e.rows[0]?.cells[0],n=t?.margins.left??0;return e.bidiVisual?n:Math.max(n,uE((t?.contentBorders??t?.borders)?.left)/2)}function fE(e){let t=e.rows[0]?.cells.at(-1),n=t?.margins.right??0;return e.bidiVisual?n:Math.max(n,uE((t?.contentBorders??t?.borders)?.right)/2)}function _a(e,t){let n=e.columnWidthsPt.reduce((a,i)=>a+i,0),r=t-n;if(!Number.isFinite(r))return 0;if(e.legacyContentAlignment&&e.alignment!=="center"){let a=e.rows[0]?.cells.at(-1)?.margins.right??0,i=XR(e);return e.alignment==="left"?e.bidiVisual?-i:e.indentPt-i:e.bidiVisual?r+a-e.indentPt:e.legacyTrailingOuterEdge?r:r+a}if(e.alignment==="center")return r/2+(e.bidiVisual?e.outerRuleOffsetPt??0:0);let o=e.outerRuleOffsetPt??0;return e.alignment==="right"?e.bidiVisual?r-e.indentPt+o:r+o:e.bidiVisual?o:e.indentPt+o}function Bh(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 EX=1/20;function AX(e){let t=e.bidiVisual?"right":"left";return e.alignment===t?Math.max(0,e.indentPt):0}function mE(e,t,n,r,o){let{tableWidth:a,columnWidthsPt:i}=e,{preferredWidths:l}=t,s=i.length;if(o>0||e.layoutFixed||e.cellSpacingPt!==0||e.float||t.spans.length>0||t.verticalHolds.length>0||a.type!=="pct"&&a.type!=="auto"||s===0||l.length!==s||n.length!==s)return;let d=[];for(let y=0;y<s;y++){let b=l[y];if(b===void 0||!Number.isFinite(b)||b<=0)return;d.push(b);}let c=0,u=0;for(let y=0;y<s;y++)c+=i[y],u+=d[y];let f=c/u;if(!(f>0)||!Number.isFinite(f))return;let p=EX*Math.max(1,f);for(let y=0;y<s;y++)if(Math.abs(i[y]-d[y]*f)>p)return;if(a.type==="auto"&&f>1)for(let y=0;y<s;y++)d[y]=i[y];let g=e.legacyContentAlignment?XR(e)+fE(e):0,m=Math.max(0,r+g-AX(e)),h=Math.max(m,c);return a.type==="auto"?UR(d,n,m,h,false):a.value>0?UR(d,n,c,h,true):void 0}var pE=new WeakMap;function An(e){let t=pE.get(e);if(t)return t;let n={...e.pageContext?{pageContext:e.pageContext}:{},...e.noteMarks?{noteMarks:e.noteMarks}:{},...e.documentProperties?{documentProperties:e.documentProperties}:{},...e.bodyPageFields?{bodyPageFields:e.bodyPageFields}:{},...e.refFields?{refFields:e.refFields}:{},...e.showFieldCodes?{showFieldCodes:true}:{},...e.fieldCodeRanges?{fieldCodeRanges:e.fieldCodeRanges}:{},...e.tocLinkStyleRanges?{tocLinkStyleRanges:e.tocLinkStyleRanges}:{}},r=[e.producer??"",e.bodyPageFields?`body:${e.bodyPageFields.format??""}`:"",Uo(e.pageContext),Uo(e.documentProperties),e.showFieldCodes===true?"codes":"",e.drawingLayoutToken??"",e.inlineDrawingLayout?"drawings":"",`tab:${e.defaultTabStopPt??""}`,`fields:${chunkPWTRJSES_cjs.jf()}`].join("\0"),o={measurer:e.measurer,...e.listItems?{listItems:e.listItems}:{},...e.inlineDrawingLayout?{inlineDrawingLayout:e.inlineDrawingLayout}:{},fields:n,...e.defaultTabStopPt!==void 0?{defaultTabStopPt:e.defaultTabStopPt}:{},passToken:r,paragraphToken:a=>[e.projectionTokenForParagraph?.(a)??"",e.drawingTokenForParagraph?.(a)??"",e.refFields?.tokenForParagraph(a.id)??"",tc(e.listItems?.get(a.id))].join("\0")};return pE.set(e,o),o}function ZR(e,t,n,r,o=false){let a=An(r);return oE(e,t,n,a,[Uo(r.fieldCodeRanges),Uo(r.tocLinkStyleRanges),Uo(r.noteMarks)].join("\0"),o)}var ts=.01,gE=new WeakMap;function NX(e,t){let{context:n,view:r}=t;return !n.paragraphToken||n.passToken===void 0?null:{styleCascade:r.styleCascade,displayMode:r.displayMode,authorFilter:r.authorFilter?.cacheKey??"",cellStyle:YR(t.tableCellStyle),passToken:n.passToken,paragraphToken:n.paragraphToken(e)}}function DX(e,t){return e.styleCascade===t.styleCascade&&e.displayMode===t.displayMode&&e.authorFilter===t.authorFilter&&e.cellStyle===t.cellStyle&&e.passToken===t.passToken&&e.paragraphToken===t.paragraphToken}function _X(e,t){let{context:n,view:r}=t,{measurer:o}=n,{styleCascade:a,displayMode:i}=r,l=pf(n),s=gE.get(o);s||gE.set(o,s=new WeakMap);let d=s.get(e);if(l&&d?.scope===l&&d.key.styleCascade===r.styleCascade&&d.key.displayMode===r.displayMode&&d.key.authorFilter===(r.authorFilter?.cacheKey??"")&&d.key.cellStyle===YR(t.tableCellStyle))return d.widths;let c=NX(e,t);if(c&&d&&DX(d.key,c))return d.scope=l,d.widths;let u=Xn(e,Number.MAX_SAFE_INTEGER,a,n.listItems?.get(e.id),t.tableCellStyle,true),f=n.fields,p=Ma(e,u.inheritedRunProperties,f?.pageContext,a?(G,z)=>ur(G,z,a):void 0,void 0,f?.noteMarks,i,void 0,n.inlineDrawingLayout,a?.themeFonts,void 0,f?.documentProperties,f?.bodyPageFields??false,f?.refFields,r.authorFilter,f?.showFieldCodes,f?.fieldCodeRanges?.get(e.id),f?.tocLinkStyleRanges?.get(e.id)),g=$g(p,it(u.props),Kg(e),true),{left:m,right:h,firstLine:y,hanging:b}=u.indent,x=Np(u.tabStops,n.defaultTabStopPt),R=Math.max(0,it(u.props)?h:m),P=G=>{for(let Y of x.stops)if(!Y.numberingOnly&&Y.positionPt>G+1e-6)return Y.positionPt;let z=x.defaultIntervalPt;return (Math.floor(G/z+1e-6)+1)*z},w=n.listItems?.get(e.id)?Math.max(0,y):b>0?-b:y,F=0,T=0,v=true,C=0,I=0,O=0,k=true,E=()=>{let G=C-I+Math.max(0,m+h+(k?w:0));C>0&&G>O&&(O=G),C=0,I=0,k=false;},M=(G,z=0)=>{C+=G,I=z<G?z:I+z;},A=()=>{if(T>0){let G=T+Math.max(0,m+h+(v?w:0));G>F&&(F=G),v=false;}T=0;},N=true,L=0,D,H=false;for(let G of g){if(G.style.hidden||G.projected&&!G.inlineDrawing&&!G.equation&&G.text==="\uFFFC"||(H&&!Fl.has(G.text[0]??"")&&A(),H=false,G.text===chunkPWTRJSES_cjs.mb))continue;if(G.text===`
|
|
25
|
+
`){E(),A(),v=false,N=true,L=0;continue}let z=G.inlineDrawing?dr(G.inlineDrawing.projection).totalWidth:G.equation?(D??=Dg(o))(G.equation,G.style).geometry.box.width:void 0;if(z!==void 0){M(z),A(),T=(N?L:0)+z,A(),N=false,L=0;continue}ux.test(G.text)&&A();let Y=Ce(G.style,G.fontSlot),U=q=>tt(q,Y,o);if(G.measureText!==void 0){M(U(G.measureText)),T+=L+U(G.measureText),N=false,L=0;continue}let X=0;for(let q of oo(G.text,false)){let V=G.text.slice(X,q);if(X=q,V.length===0)continue;if(V===" "){let J=C+R+(k?w:0);M(Math.max(0,P(J)-J)),A(),v=false,N=false,L=0;continue}let ie=mr(V),K=U(V);if(M(K,ie.length===V.length?0:K-(ie?U(ie):0)),N&&ie.length===0){L+=U(V);continue}N&&ie.length>0&&(T+=L,N=false,L=0),ie.length===V.length?T+=U(V):ie.length>0&&(T+=U(V)-U(V.slice(ie.length))),ie.length<V.length||q<G.text.length||cx.test(V)?A():H=Fl.has(V.at(-1));}}A(),E();let W=F>0?F:Math.max(0,m+h+w),$={min:W,max:Math.max(W,O)};return c&&s.set(e,{key:c,widths:$,scope:l}),$}function HX(e,t,n){let r=(n.depth??0)+1,o=n.readNested(e,r);if(!o)return 0;let a={...n,depth:r},i=Mh(o);if(o.layoutFixed){for(let u of xE(o,t,a))i+=u;return i+Lh(o)}let l=0;for(let u of o.columnWidthsPt)l+=u;let s=[],d=qR();JR(o,t,a,s,d);let c=rc(gf(o),s,d.maximums,d.spans);for(let u of c)i+=Math.max(u,1);return Math.max(l,i)+Lh(o)}function qR(){return {maximums:[],sizedByContent:[],preferredWidths:[],spans:[],measured:[],verticalHolds:[]}}function xE(e,t,n){let r=[],o=qR();JR(e,t,n,r,o);let a=r.map((l,s)=>Math.max(o.measured[s]?l:0,1)),i=[...o.spans];for(let l of o.verticalHolds)l.count>1?i.push(l):a[l.from]=Math.max(a[l.from],l.minimum);return rc(a,a,a,i)}function jX(e,t,n){let r=e.columnWidthsPt,o=0;for(let c of r)o+=c;if(!(t>0)||o<=t+ts)return r;let a=n(),i=Mh(e),l=Math.max(0,t-i),s=r.map(()=>false),d=$R(gf(e),s,a,a,l,l,l);return i>0?KR(d,i):d}var WX=3;function Lh(e){let t=e.bidiVisual?"right":"left";return e.float?0:e.alignment===t?e.indentPt:0}var zX=1,hE=new WeakMap;function SE(e,t,n,r,o){return (a,i)=>{let l=`${i}|${n}|${r?.cacheKey??""}|${o??""}`,s=hE.get(a);if(s&&s.key===l&&s.styleCascade===t)return s.structure;let d=e(a,zX,i,t,n,r,o);return hE.set(a,{key:l,styleCascade:t,structure:d}),d}}function JR(e,t,n,r,o){let a=e.columnWidthsPt.length,i=new Array(a).fill(-1),l=new Array(a).fill(-1),s=new Array(a).fill(-1),d=new Array(a).fill(false),c=e.cellSpacingPt===0,u=$o(e.cellSpacingPt),f=gf(e);for(let p of e.rows){let g=e.outerRuleOffsetPt!==void 0&&!e.legacyContentAlignment?kL(p,a,o!==void 0):void 0;for(let m=0;m<p.cells.length;m+=1){let h=p.cells[m];if(h.vMergeContinue||h.gridColumn<0||h.gridColumn>=a)continue;if(h.gridSpan===1&&h.preferredWidth.value>0){let S=h.preferredWidth;if((S.type==="dxa"||S.type==="pct")&&(d[h.gridColumn]=true),o&&S.type==="dxa"){let w=S.value,F=o.preferredWidths[h.gridColumn];(F===void 0||w>F)&&(o.preferredWidths[h.gridColumn]=w);}}if(h.textDirection!=="horizontal"){let S=Math.min(h.gridColumn+h.gridSpan,a),w=0;for(let T=h.gridColumn;T<S;T++)w+=f[T];let F=S-h.gridColumn;o?.verticalHolds.push({from:h.gridColumn,count:F,minimum:w});continue}if(h.gridSpan!==1&&!o)continue;let y=iE(h,c,t,n,()=>{let S=-1,w=-1,F=tn(h,c);for(let v of h.blocks){if(v.kind==="table"){let I=HX(v,t,n);S=Math.max(S,I),w=Math.max(w,I);}if(v.kind!=="paragraph")continue;let C=_X(v,{context:t,view:n,tableCellStyle:h.styleFormatting});S=Math.max(S,C.min),w=Math.max(w,C.max);}let T=lE(h,c,F,g?.cells[m]);return {least:S,most:w,left:F.left,right:F.right,wideLeft:T.left,wideRight:T.right}}),{least:b,most:x}=y;if(b<0)continue;let R=y.wideLeft+y.wideRight;if(h.gridSpan!==1){let S=(h.gridSpan-1)*u;o?.spans.push({from:h.gridColumn,count:h.gridSpan,minimum:Math.max(0,b+R-S),current:Math.max(0,b+y.left+y.right-S)});continue}let P=b+y.left+y.right;P>i[h.gridColumn]&&(i[h.gridColumn]=P),b+R>l[h.gridColumn]&&(l[h.gridColumn]=b+R),x+R>s[h.gridColumn]&&(s[h.gridColumn]=x+R);}}for(let[p,g]of i.entries())o&&(o.measured[p]=g>=0),g<0&&(i[p]=f[p]),r&&(r[p]=l[p]<0?i[p]:l[p]),o&&(o.maximums[p]=s[p]<0?i[p]:s[p],o.sizedByContent[p]=!d[p]&&s[p]>=0);return i}function GX(e,t,n,r){let o=0;for(let[g,m]of e.entries())o+=Math.max(0,t[g]-m);if(o<=ts)return e;let a=e.map((g,m)=>Math.max(g,t[m])),i=a.reduce((g,m)=>g+m,0)-n;if(i<=ts)return a;let l=e.map((g,m)=>Math.max(0,g-Math.max(t[m],1))),s=l.reduce((g,m)=>g+m,0);if(i<=s)return a.map((g,m)=>g-i*l[m]/s);let d=t.map(g=>Math.max(g,1)),c=d.reduce((g,m)=>g+m,0),u=Math.max(r,e.reduce((g,m)=>g+m,0));if(!Number.isFinite(u)||c<=u)return d;let f=d.length*1,p=Math.max(0,u-f)/Math.max(c-f,ts);return d.map(g=>1+(g-1)*p)}function VX(e,t,n,r=false,o=n){return r||e.type==="dxa"&&e.value>0?t:e.type==="pct"&&e.value>0?Math.max(t,Math.min(n,o*e.value/100)):n}var yE=new WeakMap;function RE(e,t,n,r){let o=pf(n)??n,a=yE.get(o);a||yE.set(o,a=new WeakMap);let i=a.get(e);if(i&&i.contentWidthPt===t)return i.widths;if(e.layoutFixed){let{tableWidth:I}=e,O=I.type==="pct"&&I.value>100?t*I.value/100:0,k=Math.max(0,t-Math.max(0,Lh(e)),O),E=jX(e,k,()=>xE(e,n,r));return a.set(e,{contentWidthPt:t,widths:E}),E}let l=[],s=qR(),d=JR(e,n,r,l,s),c=gf(e),u=Ih(e.columnWidthsPt,e.cellSpacingPt),f=Mh(e),p=c.map((I,O)=>s.preferredWidths[O]===void 0?I:s.preferredWidths[O]*u),g=rc(c,d,s.maximums,s.spans.map(I=>({...I,minimum:I.current??I.minimum}))),m=s.sizedByContent.some(Boolean),h=g.some((I,O)=>I>c[O]+ts),y=m?void 0:mE(e,s,h&&!e.legacyContentAlignment?l:d,t,r.depth??0);if(y||!h&&!m){let I=y?bE(e,y):e.columnWidthsPt;return a.set(e,{contentWidthPt:t,widths:I}),I}let b=rc(p,l,s.maximums,s.spans),x=e.columnWidthsPt.reduce((I,O)=>I+O,0),R=e.legacyContentAlignment===true,P=R?Math.max(x,t):Math.max(0,t-Lh(e)),S=VX(e.tableWidth,x,P,R,t)-f,w=Math.max(0,P-f),F=e.tableWidth.value>0&&e.tableWidth.type!=="auto",T=()=>m?$R(p,s.sizedByContent,b,s.maximums,F?S:void 0,w,c.reduce((I,O)=>I+O,0)):GX(c,b,S,w),v=T();for(let I=0;I<WX;I++){let O=s.spans.filter(E=>{let M=0;for(let A=E.from;A<E.from+E.count;A++)M+=v[A]??0;return M<E.minimum-ts});if(O.length===0)break;let k=rc(v,b,s.maximums,O);if(k.every((E,M)=>E===b[M]))break;b=k,v=T();}let C=bE(e,f>0?KR(v,f):v);return a.set(e,{contentWidthPt:t,widths:C}),C}function bE(e,t){return t.every((n,r)=>Math.abs(n-e.columnWidthsPt[r])<=ts)?e.columnWidthsPt:t}var eP=16,NL=31680/20,PE=1023,KX=256,wE=new WeakMap,kE=31680/20;function Bt(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function QR(e,t){return e.attributes.find(n=>n.localName===t)?.value}var TE=new WeakMap,$X=4;function nn(e,t,n,r,o="all-markup",a,i,l,s=false){let d=nL(e,{contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,authorFilter:a,compatibilityMode:i,textBox:s},()=>UX(e,t,n,r,o,a,i,s));if(!l||!d||d.layoutFixed&&n===0)return d;let c=RE(d,t,l,{styleCascade:r,displayMode:o,authorFilter:a,depth:n,readNested:SE(nn,r,o,a,i)});if(c===d.columnWidthsPt)return d;let u=c.join(","),f=TE.get(d),p=f?.get(u);if(p)return p;let g=TL(d.rows,{compatibilityMode:i,depth:n,bidiVisual:d.bidiVisual===true,floating:d.float!==void 0,cellSpacingPt:d.cellSpacingPt,widthType:d.tableWidth.type,alignment:d.alignment,layoutFixed:d.layoutFixed,indentPt:d.indentPt,columnWidthsPt:d.columnWidthsPt,containerWidthPt:t},c),{outerRuleOffsetPt:m,...h}=d,y={...h,columnWidthsPt:c,rows:g.rows,...g.outerRuleOffsetPt===void 0?{}:{outerRuleOffsetPt:g.outerRuleOffsetPt}};return y&&(f||TE.set(d,f=new Map),f.size>=$X&&f.delete(f.keys().next().value),f.set(u,y)),y}function UX(e,t,n,r,o,a,i,l=false){if(n>=eP||e.kind!=="table")return null;let s=Bt(e,"tblPr"),d=s&&Bt(s,"tblStyle")?QR(Bt(s,"tblStyle"),"val"):void 0,c=r?nB(r,d):Xg,u=nE(s),f=false;for(let ce of c.tablePropertyNodes)Bt(ce,"bidiVisual")&&(f=wh(ce,"bidiVisual"));s&&Bt(s,"bidiVisual")&&(f=wh(s,"bidiVisual"));let p={top:0,right:.5,bottom:0,left:.5},g=wR;for(let ce of c.tablePropertyNodes)p=vh(p,Th(Bt(ce,"tblCellMar"))),g=hR(g,ph(ce));let m=vh(p,Th(s&&Bt(s,"tblCellMar"))),h=hR(g,s?ph(s):wR),y=wE.get(c);y||wE.set(c,y=new Map);let b=rB(c),x=ce=>{if(!b)return qS;let B=ce.join("|"),me=y.get(B);if(me)return me;let ge=oB(c,ce);return y.size<KX&&y.set(B,ge),ge},R=[],P=[],S=false,w=1;for(let ce of chunkPWTRJSES_cjs.Ub(e.children)){if(ce.kind!=="tableRow")continue;let B=cf(ce,"trPr"),me=B?cf(B,"ins")??cf(B,"del"):void 0,ge=me?.localName,we=me?Ni(me,"author")??"":void 0,Ae=me&&we!==void 0&&a?hv(a,me.id,we,o):o;if(Ae==="proposed"&&ge==="del"||Ae==="original"&&ge==="ins"){S=true;continue}let xe=Ae==="all-markup"?me:void 0,Ne=me&&Ae!=="all-markup"&&we!==void 0&&(!a||ed(a,me.id,we))?[{kind:ge==="ins"?"insert":"delete",id:Ni(me,"id")??"",author:we,...Ni(me,"date")===void 0?{}:{date:Ni(me,"date")},nodeId:me.id}]:void 0,lt=[],Be=[],le=[],Se=Math.min(ER(B,"gridBefore"),PE);Se>0&&P.push({start:0,span:Se,preferred:Xd(B&&Bt(B,"wBefore"))});let re=Se,He=chunkPWTRJSES_cjs.Ub(ce.children);for(let Me of He){if(Me.kind!=="tableCell")continue;let ut=Bt(Me,"tcPr"),Je=Math.min(re,PE),wt=Math.min(LL(ut),1024-Je),Ct=Xd(ut&&Bt(ut,"tcW"));lt.push(Je),Be.push(wt),le.push(Ct),P.push({start:Je,span:wt,preferred:Ct}),re=Je+wt;}let ve=ER(B,"gridAfter"),$e=Math.min(re+ve,1024);ve>0&&re<1024&&P.push({start:re,span:Math.min(ve,1024-re),preferred:Xd(B&&Bt(B,"wAfter"))}),$e>w&&(w=$e),R.push({node:ce,revision:xe,changeSites:Ne,cells:He,properties:B,starts:lt,spans:Be,preferred:le,gridColumns:$e});}let F=ML(e),T=F.length>0?F.length:w,v=R.length,C=[],I=new Set,O=[];for(let ce=0;ce<R.length;ce+=1){let B=R[ce],me=B.node,ge=B.properties,we=zR({look:u,rowIndex:ce,rowCount:v,gridColumn:0,gridSpan:Math.max(1,T),columnCount:Math.max(1,T),rowProperties:ge,cellProperties:void 0}),Ae=zL(c,we,ge),xe=eL(me,h),Ne=0,lt=[],Be=new Set;for(let $e of B.cells){if($e.kind!=="tableCell")continue;let Me=Bt($e,"tcPr"),ut=B.starts[Ne],Je=B.spans[Ne],wt=B.preferred[Ne]??yo,Ct=zR({look:u,rowIndex:ce,rowCount:v,gridColumn:ut,gridSpan:Je,columnCount:T,rowProperties:ge,cellProperties:Me});Ne+=1;let kt,We=kR;for(let Tt of Ct){let ze=c.conditional.get(Tt);if(!ze)continue;let Ft=Bt(ze,"tcPr");kt=AR(Ft)??kt,We=yR(We,PR(Ft));}let Wt=AR(Me)??kt,Dn=vh(m,Th(Me&&Bt(Me,"tcMar"))),_n=Zl($e.children,o,a),Fn=Me?PR(Me):kR,Jt=EL(Me);if(Jt!=="none"&&Be.add(ut),Jt==="continue"&&I.has(ut)){let Tt=O.findIndex(Ft=>Ft.gridColumn===ut),ze=O[Tt];ze&&!ze.vMergeContinue&&!ze.headsVerticalMerge&&(O[Tt]={...ze,headsVerticalMerge:true});}lt.push({id:$e.id,...oL(Me,o,a,B.revision),gridSpan:Je,gridColumn:ut,...F[ut]?.id?{gridColumnId:F[ut].id}:{},vMergeContinue:Jt==="continue"&&I.has(ut),hideEndMark:GL(c,Ct,Me),vAlign:jL(Me),textDirection:OE(Me),margins:Dn,borders:yR(We,Fn),...xe?{rowTableBorders:xe}:{},...Fn.top.state==="none"?{suppressesTopBand:true}:{},...Wt===void 0?{}:{shading:Wt},preferredWidth:wt,styleFormatting:x(Ct),blocks:_n});}I=Be,O=lt;let le=B.revision,Se=le?le.localName==="ins"?"insert":"delete":void 0,re=le&&Ni(le,"id"),He=le&&Ni(le,"author"),ve=le&&Ni(le,"date");C.push({id:me.id,...Se?{revisionKind:Se}:{},...re!==void 0?{revisionId:re}:{},...He!==void 0?{revisionAuthor:He}:{},...ve!==void 0?{revisionDate:ve}:{},...B.changeSites?{changeSites:B.changeSites}:{},isHeader:Ae,cantSplit:wh(ge,"cantSplit"),height:AL(ge),cells:lt});}let k=yo,E,M,A,N,L;for(let ce of c.tablePropertyNodes){let B=Bt(ce,"tblW");B&&(k=LR(B));let me=Bt(ce,"tblLayout");me&&(E=QR(me,"type")==="fixed"),M=mf(Bt(ce,"tblInd"),kE)??M,A=TR(ce)??A,N=Rh(Bt(ce,"tblCellSpacing"),ec)??N,L=Ql(ce)??L;}let D=s&&Bt(s,"tblW"),H=D?LR(D):k,W=s&&Bt(s,"tblLayout"),$=W?QR(W,"type")==="fixed":E??false,G=mf(s&&Bt(s,"tblInd"),kE)??M??0,z=n===0?G:Math.max(0,G),Y=TR(s)??A??"left",U=n===0?Ql(s)??L:void 0,X=Rh(s&&Bt(s,"tblCellSpacing"),ec)??N??YX(e)??0,q=JL({table:e,propertyNodes:c.tablePropertyNodes,rows:C,columnCount:T,contentWidthPt:t,compatibilityMode:i,depth:n,tableWidth:H,cellSpacingPt:X,floating:U!==void 0,layoutFixed:$,alignment:Y,bidiVisual:f,indentPt:z,indentStated:!!(s&&Bt(s,"tblInd"))||M!==void 0,tableBorders:h,claims:P,gridCols:F,textBox:l}),{legacy:V,indentPt:ie}=q,K=V?.widthPt,J=BL({gridCols:F,claims:q.claims,columnCount:T,contentWidthPt:q.contentWidthPt,tableWidth:q.tableWidth,layoutFixed:$,hasOmittedRows:S}),fe=vE(C,J.length,f),ne=Eh(fe,f?{...h,left:h.right,right:h.left}:h,J.length,X===0);ne=FE(ne,fe,f?{...h,left:h.right,right:h.left}:h,J.length,X===0);let te={compatibilityMode:i,depth:n,bidiVisual:f,floating:U!==void 0,cellSpacingPt:X,widthType:H.type,alignment:Y,layoutFixed:$,indentPt:ie,columnWidthsPt:J,containerWidthPt:t},oe=MR(ne,te),ae=VL(e,c.tablePropertyNodes,ne,te);ne=ae!==void 0&&H.type==="auto"?IR(oe.rows):oe.rows;let ue=ae??oe.outerRuleOffsetPt??q.bidiRuleShiftPt;return {...f?{bidiVisual:true}:{},columnWidthsPt:f?[...J].reverse():J,rows:K===void 0?ne:ne.map(ce=>({...ce,cells:ce.cells.map(B=>({...B,legacyContentAlignment:true}))})),...K===void 0?{}:{legacyContentAlignment:true},...V?.trailingOuterEdge?{legacyTrailingOuterEdge:true}:{},...ue===void 0?{}:{outerRuleOffsetPt:ue},tableWidth:H,layoutFixed:$,indentPt:ie,alignment:f?Y==="left"?"right":Y==="right"?"left":Y:Y,...U?{float:U}:{},cellSpacingPt:X,tableBorders:f?{...h,left:h.right,right:h.left}:h,defaultMargins:f?{...m,left:m.right,right:m.left}:m}}function YX(e){let t;for(let n of chunkPWTRJSES_cjs.Ub(e.children)){if(n.kind!=="tableRow")continue;let r=cf(n,"trPr"),o=Rh(r&&Bt(r,"tblCellSpacing"),ec);if(o===void 0||t!==void 0&&Math.abs(o-t)>.001)return;t=o;}return t}var CE=1048576;function So(e=CE){let t=e|0;return {cellsRemaining:t>0?t:0}}function _i(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=i?new Set:null,s=i,c=p=>{let g=a.get(p);g&&(o.set(g.id,g.span),a.delete(p));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}s&&p.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let g=new Set,m=false;for(let h of p.cells){if(n){if(n.cellsRemaining<=0){m=true;break}n.cellsRemaining-=1;}let y=Math.max(0,Math.min(h.gridColumn|0,1023));if(g.add(y),h.vMergeContinue){let b=a.get(y);b?b.span+=1:l&&!l.has(y)&&(a.set(y,{id:h.id,span:1}));}else c(y),a.set(y,{id:h.id,span:1});l?.add(y);}if(m){f();break}for(let h of [...a.keys()])g.has(h)||c(h);}return f(),o}var XX={state:"omitted"};function vE(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},...o.rowTableBorders?{rowTableBorders:{...o.rowTableBorders,left:o.rowTableBorders.right,right:o.rowTableBorders.left}}:{},logicalGridColumn:o.gridColumn,gridColumn:Math.max(0,t-o.gridColumn-o.gridSpan)}))})):e}function ZX(e,t,n,r,o,a){let i=e.map(()=>new Float64Array(a));for(let l=0;l<e.length;l+=1)for(let s=0;s<e[l].cells.length;s+=1){let d=e[l].cells[s];if(d.vMergeContinue)continue;let c=l+(r.get(d.id)??1),u=i[c];if(u)for(let f of n[l][s].edgeSegments??[]){if(f.side!=="bottom")continue;let p=Ei(f.edge),g=Math.min(f.gridEnd,a);for(let m=Math.max(0,f.gridStart);m<g;m+=1)u[m]=Math.max(u[m],p);}}return e.map((l,s)=>{let d=0;for(let c of l.cells){let u=s===0?t.top:t.insideH,f=Math.min(c.gridColumn+c.gridSpan,a);for(let p=c.gridColumn;p<f;p+=1){let g=s===0?void 0:Li(o,s-1,p),m=g?e[s-1]?.cells[g.cellIndex]:void 0;d=Math.max(d,gh(c.borders.top,m?.borders.bottom??XX,u,i[s]?.[p]??0,c.suppressesTopBand));}}return d})}function Eh(e,t,n,r=true){let o=_i(e);if(!r)return qX(e,t,n,o);let a=e.map(f=>f.cells.map(p=>({...p,mergeRowSpan:o.get(p.id)??1}))),i=dh(a,n),l=Yd(a,t,n),s=new Map;for(let f=0;f<e.length;f++)for(let p of e[f].cells){if(p.vMergeContinue)continue;s.set(p.id,p);let g=f+(o.get(p.id)??1);for(let m=f+1;m<g;m++){let h=Li(i,m,p.gridColumn),y=h&&e[m]?.cells[h.cellIndex];y?.vMergeContinue&&s.set(y.id,p);}}let d=new Map;for(let f of e)for(let p of f.cells){let g=m=>m.state==="none"?m:{state:"omitted"};d.set(p.id,{top:g(p.borders.top),bottom:g(p.borders.bottom),left:g(p.borders.left),right:g(p.borders.right)});}let c=(f,p,g)=>{let m=s.get(f.id)??f,h=d.get(m.id),y={state:"edge",...g},b=p==="top"||p==="bottom";(h[p].state!=="edge"||Zn(m.margins[p],y,b,!b,p==="top")>Zn(m.margins[p],h[p],b,!b,p==="top"))&&d.set(m.id,{...h,[p]:y});};for(let f=0;f<e.length;f++)for(let p=0;p<e[f].cells.length;p++){let g=e[f].cells[p];for(let m of l[f][p].edgeSegments??[])if(c(g,m.side,m.edge),m.side==="right"){let h=g.gridColumn+g.gridSpan;for(let y=m.gridStart;y<m.gridEnd;y++){let b=Li(i,y,h),x=b&&e[y]?.cells[b.cellIndex];x&&c(x,"left",m.edge);}}else if(m.side==="bottom"){let h=f+(o.get(g.id)??1);for(let y=m.gridStart;y<m.gridEnd;y++){let b=Li(i,h,y),x=b&&e[h]?.cells[b.cellIndex];x&&c(x,"top",m.edge);}}}let u=ZX(e,t,l,o,i,n);return e.map((f,p)=>({...f,cells:f.cells.map(g=>{let m=u[p];return g.vMergeContinue?{...g,topBandClearancePt:m}:{...g,topBandClearancePt:m,contentBorders:d.get(g.id),contentBottomIsOuter:p+(o.get(g.id)??1)===e.length}})}))}function qX(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=>{let s=l.rowTableBorders??t;return {...l,contentBorders:{top:o(l.borders.top,i===0?s.top:s.insideH),bottom:o(l.borders.bottom,i+(r.get(l.id)??1)===e.length?s.bottom:s.insideH),left:o(l.borders.left,l.gridColumn===0?s.left:s.insideV),right:o(l.borders.right,l.gridColumn+l.gridSpan===n?s.right:s.insideV)}}})}))}function FE(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=Eh(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((s,d)=>{let c=a[l].cells[d],u=tn(c,o);return {...s,minimumContentInsets:{top:u.top,bottom:u.bottom}}})})}function Hi(e,t,n,r=0){let o=0,a=0;for(let i of t){let l=n?.get(i.cell.id)??i.cell.minimumContentInsets,s=l?{...l,top:l.top+r}:i.insets;o=Math.max(o,s.top),a=Math.max(a,s.bottom);}return e+o+a}function nP(e){return e.textDirection==="btLr"&&!e.vMergeContinue}function Ah(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 BE(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:JX(o.cell)};}return n}var LE=new WeakMap;function EE(e,t){e.forEach((n,r)=>{let o=n.flowTo,a=t[r];!o||!a||LE.set(a.blocks,i=>o(n.x+i-n.insets.top,true).blocks);});}function AE(e,t){return LE.get(e)?.(t)}function JX(e){return {blockIndex:e.blocks.length,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}}function NE(e,t,n,r){if(e.height.rule==="exact"||!e.cells.some(a=>nP(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 Hi(e.height.valuePt,o,r)>t+.001}function OE(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 DE(e,t){return {x:t.x+t.height-(e.y-t.y),y:t.y+(e.x-t.x)}}var IE=new WeakMap,_E=new WeakSet,ME=new WeakMap,tP=new WeakSet;function HE(e){tP.add(e);}function QX(e){let t=ME.get(e);if(t)return t;let n=[],r=o=>{let a=false;for(let i of o){if(i.kind!=="table")continue;if(tP.has(i)&&true){continue}let l=false;for(let s of i.rows)for(let d of s.cells)if(d.textDirection==="btLr"){l=true;for(let c of un(d.blocks))n.push({paragraphId:c.paragraphId,cell:d});}else r(d.blocks)&&(l=true);l?a=true:tP.add(i);}return a};r(e.fragments),e.header&&r(e.header.fragments),e.footer&&r(e.footer.fragments);for(let o of [e.footnotes,e.endnotes])if(o){o.separator&&r(o.separator.fragments),o.continuationNotice&&r(o.continuationNotice.fragments);for(let a of o.notes)r(a.fragments);}return ME.set(e,n),n}function eZ(e){let t=IE.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let{paragraphId:o,cell:a}of QX(r)){let i=n.get(o);i||n.set(o,i=[]),i.push({pageIndex:r.index,cell:a});}return IE.set(e,n),n}function jE(e,t,n){let r=eZ(e).get(n)??[];return r.find(o=>o.pageIndex===t)??r[0]}function ji(e,t){let n=jE(e,t.pageIndex,t.position.paragraphId);if(!n)return t;let r=tZ(t,n.cell.box),o={...t,...r};return _E.add(o),o}function qfe(e){return _E.has(e)}function yf(e,t,n){let r=jE(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 tZ(e,t){return {x:t.x+(e.y-t.y),y:t.y+t.height-(e.x-t.x)}}var WE=new WeakMap;function bf(e){let t=WE.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,l=new Map,s=new Map,d=[],c=(f,p)=>{for(let g of f){if(g.kind==="paragraph"){if(!p)for(let m of g.lines)o.set(m.range.paragraphId,m.id);continue}for(let m of g.rows){if(!m.isHeaderRepeat&&!r.has(m.id)){let h=a.get(g.tableId)??0;r.set(m.id,h),a.set(g.tableId,h+1);}for(let h of m.cells){if(!m.isHeaderRepeat&&!p){let y=`${g.tableId}|${h.gridColumn}`;if(h.blocks.length===0){let b=l.get(y);b&&i.set(h,b),h.vMergeContinue||d.push(h);}else l.set(y,{row:m,cell:h}),s.has(h.id)||s.set(h.id,{row:m,cell:h});}c(h.blocks,p||m.isHeaderRepeat);}}}};for(let f of e.pages)n.push(f.box.y),c(f.fragments,false);for(let f of d){let p=s.get(f.id);p&&i.set(f,p);}let u={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return WE.set(e,u),u}var ZE=8;function Nh(e,t){return t?{...t,caret:ji(e,t.caret)}:null}function Dh(e,t){let n=bf(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 bme(e,t){let n=e.pages[Dh(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&oc(r.box,t))return true;return false}function aP(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||!sP(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 iP(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??ZE,measurer:r.measurer},i=zE(e,o.index,n),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=aP(l,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Nh(e,ns(o.fragments,n,a,null));if(c?.onGlyphs)return {...c,contentControlId:i};let u=aP(s,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 p=t+f;e.pages[p];p+=f){let g=e.pages[p],{width:m,height:h}=f<0?g.contentBox:{width:0,height:0},y={...a,pageIndex:g.index},b=ns(g.fragments,{x:m,y:h},y,null),x=Nh(e,b);if(x)return {...x,contentControlId:null}}}for(let f=1;f<e.pages.length;f+=1)for(let p of [t-f,t+f]){let g=e.pages[p];if(!g)continue;let m=Nh(e,ns(g.fragments,n,{...a,pageIndex:g.index},null));if(m)return {...m,contentControlId:zE(e,g.index,n)}}return null}function xme(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??ZE,measurer:o.measurer};return Nh(e,ns(n,r,i,null))}function Sme(e,t,n={}){let r=e.pages[Dh(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=aP(o.anchoredDrawings,a,r.index);if(i)return i}return iP(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function oc(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function lP(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&oc(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function zE(e,t,n){return lP(e,t,n)?.id??null}function ns(e,t,n,r){if(e.length===0)return null;let o=e.filter(gR);if(o.length>0&&o.length<e.length){let l=e.filter(s=>!gR(s));return ns(l,t,n,r)??ns(o,t,n,r)}if(e.some(l=>l.kind==="paragraph"&&l.outOfFlow&&oc(l.box,t)))for(let l=e.length-1;l>=0;l-=1){let s=e[l];if(!oc(s.box,t))continue;let d=rP(s,t,n,r);if(d)return d}let a=null;for(let l of e){if(!oc(l.box,t))continue;a=l;let s=rP(l,t,n,r);if(s)return s;break}let i=e.filter(l=>l!==a).map(l=>({block:l,score:KB(l,t,n.verticalWeight)})).sort((l,s)=>l.score-s.score);for(let{block:l}of i){let s=rP(l,t,n,r);if(s)return s}return null}function rP(e,t,n,r){if(e.kind!=="paragraph")return dZ(e,t,n);let o=oc(Ud(e),t);return nZ(e,t,n,r,o)}function nZ(e,t,n,r,o){if(e.clipToBox&&!o)return null;let a=rZ(e.lines,t.y);if(!a)return null;let i=iZ(a,t.x,t.y,n,it(e.props)),l=aZ(a,t.x),s=Math.min(Math.max(i.offset,l.start),l.end),d={paragraphId:l.paragraphId,offset:s},c=go(a,s,n.measurer,l),u=gr({...c,x:a.drawings?.length?c.x:i.x,width:0},e.clipToBox?e.box:void 0);return u?{position:d,caret:{position:d,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?oZ(i.drawing):null}:null}function rZ(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 oZ(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function aZ(e,t){let n=nt(e),r=lR(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 oP(e,t,n){let r=t>=e.x+e.width/2!==$d(e);return {offset:r?e.start+1:e.start,x:ql(e,r),withinSpan:sP(e,{x:t,y:n}),drawing:e}}function sP(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:Px(t.x,t.y,e.geometry)}function iZ(e,t,n,r,o=false){let a=e.spans;for(let s of e.drawings??[])if(sP(s,{x:t,y:n}))return {offset:s.start,x:ql(s,false),withinSpan:true,drawing:s};if(a.length===0&&(e.drawings?.length??0)>0){let s=e.drawings[0],d=s;for(let u of e.drawings)if(u.advanceStart<s.advanceStart&&(s=u),u.advanceEnd>d.advanceEnd&&(d=u),t>=u.advanceStart&&t<u.advanceEnd)return oP(u,t,n);return mR(e,s.advanceStart,d.advanceEnd,t,r,o,{left:s,right:d})??pR(e,a,t,r)}if(a.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let i=lR(a,t);if(i){for(let u of e.drawings??[])if(t>=u.advanceStart&&t<u.advanceEnd)return oP(u,t,n);let s=ac(a,e.drawings??[]),d=u=>e.drawings?.find(f=>Math.abs(f.advanceStart-u)<.001||Math.abs(f.advanceEnd-u)<.001),c=mR(e,s.left,s.right,t,r,o,{left:d(s.left),right:d(s.right)});if(c)return c}if(i){let s=UE(i,Math.max(i.box.x,Math.min(t,i.box.x+i.box.width)),r),d=nt(e).find(f=>f.paragraphId===i.range.paragraphId),c=wp(e,d),u=Math.min(s.offset,lh(r.layout,c));return u===s.offset?s:{...s,offset:u,x:go(e,u,r.measurer,d).x}}if(t<=e.contentX)return {offset:e.range.start,x:e.contentX,withinSpan:false};let l=ac(a,e.drawings??[]).right;if(t>=l)return lZ(e,l,r);for(let s of a)if(t>=s.box.x&&t<s.box.x+s.box.width)return UE(s,t,r);for(let s of e.drawings??[])if(t>=s.advanceStart&&t<s.advanceEnd)return oP(s,t,n);return pR(e,a,t,r)}function lZ(e,t,n){let r=lh(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?xf(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 lh(e,t){let n=t.range.end;return n>t.range.start&&GE(t,n-1)===chunkPWTRJSES_cjs.mb?n-1:bf(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id?n:n>t.range.start&&GE(t,n-1)===`
|
|
26
|
+
`?n-1:n}function GE(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 VE=new WeakMap,KE=new WeakMap;function $E(e){let t=fp(),n=VE.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of xt(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),VE.set(e,{epoch:t,boundaries:r}),r}function xf(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];if(e.style.shaping)return VB(e,t,n);let o=KE.get(n);o||(o=new WeakMap,KE.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:tt(e.text.slice(0,t),Ce(e.style,e.fontSlot),n),s=e.lineEndWhitespace?Math.min(l,e.box.width):l;return a.set(t,s),s}function dP(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function Ro(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||dP(e)?a(e.box.width*(o/r)):a(xf(e,o,n))}function go(e,t,n,r){let o=ih(e,t,r);if(o)return {x:ql(o,t>o.start),y:o.y,height:o.height};let a=r?r.spans:e.spans;if(a.length===0){let d=e.leading??0,c=Math.max(0,e.box.height-d-(e.trailingSpacing??0));if(c<=0&&e.box.height<=0){let u=Math.max(0,e.baseline);return {x:e.contentX,y:e.box.y-u,height:u}}return {x:e.contentX,y:e.box.y+d,height:c}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[d+1];if(u?.range.start===t&&c.style.shaping&&u.style.shaping){i=u;break}let f=c.text===chunkPWTRJSES_cjs.mb&&c.box.width===0;if(u&&u.range.start===t&&(dP(c)||f)){i=u;break}if(u&&u.range.start===t){let p=Nt(ro(c.text)??0)||Nt(u.text.codePointAt(0)??0),g=u.box.x-(c.box.x+c.box.width)-(u.wrapAdvanceBefore??0);if(c.text.endsWith(" ")&&g>.25||p&&g>.001){i=u;break}}i=c;}else if(t>c.range.end)i=c;else if(t===c.range.start&&!a.some(u=>u.range.paragraphId===c.range.paragraphId&&u.range.end===t&&u.range.start<t)){i=c;break}}let l=Ro(i,t,n),s=n?.lineMetrics(Ce(i.style,i.fontSlot));return !s||s.height<=0?{x:l,y:e.box.y,height:e.box.height}:{x:l,y:e.box.y+e.baseline-s.baseline-pi(i.style),height:s.height}}function UE(e,t,n){let r=e.style.shaping?.direction==="rtl",o=r?e.box.x+e.box.width-t:t-e.box.x,a=m=>e.box.x+(r?e.box.width-m:m),i=e.range.end-e.range.start;if(i<=0||dP(e)){let m=o>e.box.width/2;return {offset:m?e.range.end:e.range.start,x:a(m?e.box.width:0),withinSpan:true}}if(!n.measurer){let m=Math.max(0,Math.min(1,o/Math.max(e.box.width,Number.EPSILON))),h=Math.round(m*i),y=$E(e),b=y[0],x=Number.POSITIVE_INFINITY;for(let R of y){let P=Math.abs(R-h);P<x&&(x=P,b=R);}return {offset:e.range.start+b,x:a(e.box.width*(b/i)),withinSpan:true}}let l=$E(e),s=1,d=l.length-1;for(;s<d;){let m=s+d>>1;xf(e,l[m],n.measurer)<o?s=m+1:d=m;}let c=l[s],u=l[s-1],f=xf(e,c,n.measurer),p=xf(e,u,n.measurer),g=o-p<=f-o;return {offset:e.range.start+(g?u:c),x:a(g?p:f),withinSpan:true}}function YE(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),s=t<l?l-t:t-(l+r(i));s<a&&(a=s,o=i);}return o}function sZ(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:bf(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function dZ(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=YE(a,t.y,d=>d.box.y,d=>d.box.height);if(l){let d=YE(l.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(cZ(n,l,d));}let s=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||s.push({entry:{row:d,cell:c},score:sh(c.box,t,n.verticalWeight)}));s.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...s.map(u=>u.entry)]){let u=sZ(n.layout,e,d,c),f=c.textDirection==="btLr"?DE(t,c.box):t,p=ns(c.blocks,f,n,u);if(p)return p}return null}function cZ(e,t,n){return n.blocks.length>0?{row:t,cell:n}:bf(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function qE(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 uZ(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return qE(e,o);return null}function JE(e,t,n){if(t.kind==="paragraph")return uZ(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=JE(e,a,n);if(i)return i}return null}function XE(e,t,n){for(let r of t){let o=JE(e,r,n);if(o)return o}return null}function Rme(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return qE(n.index,o);let r=XE(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=XE(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 ic(e,t,n,r,o=false){let a=r?r.spans:e.spans,i=o?gZ(e,a,t,n,r):null;if(i!==null)return i;let l=ih(e,t,r);if(l)return ql(l,t>l.start);let s=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let d of a){if(t<=d.range.start)return d.style.shaping?Ro(d,d.range.start,n):d.box.x;if(t>=d.range.end){s=d.style.shaping?Ro(d,d.range.end,n):d.box.x+d.box.width;continue}return Ro(d,t,n)}return s}function cP(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 QE=new WeakMap,fZ=/^[\p{Control}\p{Default_Ignorable_Code_Point}]+$/u,mZ=/[\p{Letter}\p{Number}\p{Punctuation}\p{Symbol}]/u;function pZ(e,t,n,r){if(fZ.test(e.text.slice(t-e.range.start,n-e.range.start)))return null;if(e.style.shaping&&r&&e.text.length<=ah&&e.text.length===e.range.end-e.range.start){let o=QE.get(e);o||(o=xt(e.text),QE.set(e,o));let a=s=>{let d=0,c=o.length;for(;d<c;){let u=Math.floor((d+c)/2);o[u].utf16To<=s?d=u+1:c=u;}return o[d]},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 s=Ro(e,e.range.start+l.utf16From,r);if(mZ.test(l.text)&&Ro(e,n,r)===s){let d=n+1,c=e.range.end;for(;d<c;){let u=Math.floor((d+c)/2);Ro(e,u,r)===s?d=u+1:c=u;}n=Math.min(d,e.range.end);}}}return [Ro(e,t,r),Ro(e,n,r)]}function gZ(e,t,n,r,o){let a=(o?.drawings??e.drawings??[]).find(s=>s.start+1===n);if(a)return ql(a,true);let i=t.find(s=>s.range.end===n&&s.range.start<n);if(!i)return null;let l=t.find(s=>s.range.start===n&&s.range.end>n);return l&&!((l.wrapAdvanceBefore??0)>0)?null:i.style.shaping?Ro(i,n,r):i.box.x+i.box.width}function lc(e,t,n,r,o){let a=o?.spans??e.spans;if(!a.some(l=>l.style.shaping!==void 0)){let l=ic(e,t,r,o),s=ic(e,n,r,o,n>t);return [{x:Math.min(l,s),width:Math.abs(s-l)}]}let i=[];for(let l of o?.drawings??e.drawings??[])l.start<t||l.start>=n||i.push({x:l.advanceStart,width:l.advanceEnd-l.advanceStart});for(let l of a){let s=Math.max(t,l.range.start),d=Math.min(n,l.range.end);if(s>=d)continue;let c=pZ(l,s,d,r);if(!c)continue;let[u,f]=c;i.push({x:Math.min(u,f),width:Math.abs(f-u)});}return cP(i)}function eA(e,t,n,r){if(r.preferredLineId===void 0)return null;for(let{line:o,pageIndex:a,clipBox:i}of n){if(o.id!==r.preferredLineId||r.preferredPageIndex!==void 0&&a!==r.preferredPageIndex)continue;let l=Gn(o,t.paragraphId);if(!l||t.offset<l.start||t.offset>l.end)continue;let s={...l,spans:l.spans.filter(c=>c.text!==`
|
|
27
|
+
`&&c.text!==chunkPWTRJSES_cjs.mb||c.box.width!==0)},d=gr({...go(o,t.offset,r.measurer,s),width:0},i);if(d)return ji(e,{position:t,x:d.x,y:d.y,height:d.height,lineId:o.id,pageIndex:a})}return null}function nA(e,t,n){let r=hn(e,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 uP(e,t,n){let r=hn(e,t.range.paragraphId),o=r.findIndex(i=>i.line===t),a=r[o+1]?.line;return o>=0&&a!==void 0&&a!==t&&a.range.start===n}function fP(e,t,n,r){for(let{projected:o,range:a}of e.spans)if(!(!o||a.paragraphId!==t||a.start>=a.end)&&(r==="end"?a.end:a.start)===n)return a;return null}var tA=new WeakMap;function hZ(e,t){let n=tA.get(e);if(!n){n=new Map;for(let[r,o]of e.entries())n.has(o.line)||n.set(o.line,r);tA.set(e,n);}return n.get(t)??-1}function rA(e,t,n,r,o,a){let i=hn(e,n)??[],l=hZ(i,t);if(l<0&&a!==void 0&&(i=gP(e,a,n),l=i.findIndex(d=>d.line===t)),l<0)return false;let s=i[0].line.id;for(let d=l+o;d>=0&&d<i.length;d+=o){let c=i[d].line;if(o===1&&c.id===s)return false;let u=Gn(c,n);if(u){if(o===1?u.start>=r.end:u.end<=r.start)return false;if(fP(c,n,r.end,"end")?.start===r.start)return true}if(c.id===s)return false}return false}function mP(e,t,n,r,o){let a=fP(t,n,r,"end");return a!==null&&rA(e,t,n,a,1,o)}function pP(e,t,n,r,o){let a=fP(t,n,r,"start");return a!==null&&rA(e,t,n,a,-1,o)}function oA(e,t,n){for(let{line:r}of hn(e,t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function aA(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 yZ(e){let t=e.spans[e.spans.length-1]?.text;return t===`
|
|
28
|
+
`||t===chunkPWTRJSES_cjs.mb}function Sf(e,t){let n=e.spans[e.spans.length-1];return !n||!yZ(e)?false:n.range.start<t&&n.range.end===t}function iA(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 gP(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of Ut(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 bZ(e,t,n){for(let{line:r}of af(e).get(t)??[])if(r.id===n)return r;return null}function hP(e,t,n,r,o){let a=o.locate(t,r);if(!a)return null;let i=bZ(e,t.paragraphId,a.lineId);if(!i||nt(i).length!==1)return null;let l=Gn(i,t.paragraphId);if(!l||(n<0?l.spans[0]:l.spans.at(-1))?.projected)return null;let d=n<0?l.start:l.end;n>0&&d>l.start&&Sf(i,d)&&(d-=1);let c={paragraphId:t.paragraphId,offset:d};if(!o.hasStop(c))return null;let u=o.locate(c,i.id);return !u||u.lineId!==i.id||o.locate(c)?.lineId!==i.id&&!(n>0&&d===l.end)?null:{position:c,lineId:i.id}}function lA(e,t,n){if(t===void 0)return null;let r=n.locate(e),o=n.locate(e,t);if(!r||!o||o.lineId!==t||r.lineId===t||e.offset===0)return null;let a={paragraphId:e.paragraphId,offset:e.offset-1},i=n.locate(a,t);return i&&i.lineId===t?{position:a,x:o.x}:null}function sA(e,t,n,r){let o=r.locate(t);if(!o)return null;let a=hP(e,t,1,o.lineId,r);if(!a||a.position.offset<=t.offset||a.lineId!==o.lineId)return null;let i=r.locate(a.position);if(!i||i.lineId===a.lineId)return null;let l=r.locate(a.position,a.lineId);return l&&Math.abs(l.x-n)<Math.abs(o.x-n)?a:null}function dA(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 cA=new WeakMap;function yP(e,t){let n=cA.get(e);if(n||cA.set(e,n=new Map),n.has(t))return n.get(t);let r=new Set([t]),o=new Map,a=new Map,i=new Map;for(let c of r){let u;for(let f of hn(e,c)){let p=f.line.id;o.set(p,f),i.has(p)||i.set(p,0);for(let g of nt(f.line))r.add(g.paragraphId);if(u&&u!==p){let g=a.get(u);g||a.set(u,g=new Set),g.has(p)||(g.add(p),i.set(p,i.get(p)+1));}u=p;}}if(r.size===1)return n.set(t,null),null;let l=[...o.keys()].filter(c=>i.get(c)===0),s=[];for(let c=0;c<l.length;c++){let u=l[c];s.push(o.get(u));for(let f of a.get(u)??[])i.set(f,i.get(f)-1),i.get(f)===0&&l.push(f);}let d={members:[...r],lines:s};for(let c of r)n.set(c,d);return d}var xZ=/[\p{L}\p{N}_'\u2019]/u;function Rf(e,t,n,r=SZ){let o=i=>{let l=e[i];return l!==void 0&&xZ.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 SZ=new Set;var uA=new WeakMap;function Pf(e,t){let n=uA.get(e);if(n||uA.set(e,n=new Map),!n.get(t.lineId)?.has(t.position.paragraphId)){let r=hn(e,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&&xa(a).find(l=>l.range.paragraphId===t.position.paragraphId);i&&it(i.props)&&(o=1);}for(let{line:a}of r){let i=a.spans.find(s=>s.range.paragraphId===t.position.paragraphId&&s.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 fA=new WeakMap;function xP(e){let t=fA.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))}]))},fA.set(e,t),t}function bP(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 rs(e,t,n,r){let o=e[t],a=r(o);if(a===void 0)return {target:e[t+n],logicalDirection:n};let i=xP(e),l=i.groups.get(o.lineId),d=bP(l)[l.indexes.get(o)+n],c=n*a;if(d)return {target:d,logicalDirection:c};let u=i.lines[i.lineIndexes.get(o.lineId)+c];if(!u)return {logicalDirection:c};let f=i.groups.get(u),p=[...l.paragraphIds].some(h=>f.paragraphIds.has(h)),g=p?bP(f):f.logical;return {target:(p?n:c)===1?g[0]:g.at(-1),logicalDirection:c}}function wf(e,t,n,r){let o=xP(e).groups.get(t.lineId),a=r(t),i=a===void 0?o.logical:bP(o);return n*(a??1)===-1?i[0]:i.at(-1)}function SP(e,t,n,r,o,a){let i=t[n];if(o(i)===void 0)return Rf(e,i.position.offset,r,a);let l=xP(t).indexes,s=i,d=false;for(let c=0;c<t.length;c++){let u=rs(t,l.get(s),r,o).target;if(!u||u.position.paragraphId!==i.position.paragraphId)break;if(Math.abs(l.get(u)-l.get(s))===1){let p=/[\p{L}\p{N}\p{M}_'\u2019]/u.test(e.slice(Math.min(s.position.offset,u.position.offset),Math.max(s.position.offset,u.position.offset)));if(d&&!p)break;d||=p;}else if(d)break;if(s=u,a.has(s.position.offset))break}return s.position.offset}function sc(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 RP(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 kf=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 s=this.#t.get(t);s||(s=new WeakMap,this.#t.set(t,s)),a=s.get(r)??new Map,s.has(r)||s.set(r,a);}let i=a.get(n);if(i)return i;let l=o();return a.set(n,l),l}};function gA(e,t){for(let n=e.length-1;n>=0;n--)if(e[n].position.paragraphId===t)return e[n]}function mA(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 pA(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 Tf(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 PP(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 hA(e,t,n,r=()=>{}){let o=n.index.get(e.paragraphId)?.get(e.offset),a=o===void 0?Tf(n.stops,e):n.stops[o];return a?wf(n.stops,a,t,r).position:null}function yA(e,t,n,r,o,a=()=>{}){let i=o(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=t;if(l===void 0){s=sc(i.stops,e,t,a);let f=PP(i.stops,e,s);if(f)return {position:f.position,desiredX:null}}else {let f=rs(i.stops,l,t,a);if(s=f.logicalDirection,f.target)return {position:f.target.position,desiredX:null}}let d=n[r+s];if(!d)return {position:e,desiredX:null};let c=o(d).stops,u=s===-1?c[c.length-1]:c[0];return u?{position:u.position,desiredX:null}:null}function bA(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 xA(e,t,n,r,o,a){let i=a(e.paragraphId),l=i.index.get(e.paragraphId)?.get(e.offset),s=l===void 0?Tf(i.stops,e):i.stops[l];if(!s)return null;let d=n??s.x,c=mA(i.stops),u=c.indexOf(s.lineId),f=c[u+t];if(f){let g=pA(i.stops,f,d);return g?{position:g.position,desiredX:d}:null}for(let g=o+t;g>=0&&g<r.length;g+=t){let m=a(r[g]),h=mA(m.stops),y=t===-1?h[h.length-1]:h[0];if(!y)continue;let b=pA(m.stops,y,d);if(b)return {position:b.position,desiredX:d}}let p=t===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}function RZ(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return iP(e,n,t)?.caret??null}function PZ(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return lP(e,n,t)}function Hh(e,t,n,r,o,a,i){for(let l of nt(n))a!==void 0&&l.paragraphId!==a||wZ(e,t,n,l,r,o,i);}function wZ(e,t,n,r,o,a,i){let l=nt(n).length>1,s=uR(t,r.paragraphId),d=u=>r.spans.some(f=>f.range.start<=u&&u<=f.range.end),c=r.start>0||pP(t,n,r.paragraphId,r.start);for(let u=r.start;u<=r.end;u+=1){if(u===r.end&&u>r.start&&(!l&&(Sf(n,u)&&nA(t,n,u)||uP(t,n,u))||mP(t,n,r.paragraphId,u))||u===r.start&&c&&e.length>0&&gA(e,r.paragraphId)?.position.offset===u||aA(n,u,r)||WB(s,u)&&!d(u))continue;let f=gr({x:ic(n,u,a,r),y:n.box.y,width:0,height:n.box.height},i);f&&e.push(ji(t,{position:{paragraphId:r.paragraphId,offset:u},x:f.x,y:f.y,height:f.height,lineId:n.id,pageIndex:o}));}}function TA(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)Hh(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)TA(e,l.blocks,n,r,o);}}var kZ=new kf;function TZ(e,t){let n=[];for(let r of e.pages)for(let o of Ut(r))for(let a of o.lines)Hh(n,e,a,r.index,t,void 0,o.clipToBox?o.box:void 0);return n}var vZ=new kf;function wP(e,t,n){let r=yP(e,t);return r?vZ.get(e,r.members[0],n,()=>{let o=[];for(let{line:a,pageIndex:i,clipBox:l}of r.lines)Hh(o,e,a,i,n,void 0,l);return RP(o)}):vf(e,t,n)}function vf(e,t,n){return kZ.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a,clipBox:i}of hn(e,t)??[])Hh(r,e,o,a,n,t,i);return RP(r)})}function Ppe(e,t,n,r){if(!e.pages[t])return [];let o=[];return TA(e,n,t,o,r),o}function FZ(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function vA(e,t,n){let r=FZ(n),o=hn(e,t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:gP(e,a,t.paragraphId),l=new Set(o.map(p=>p.line.id)),s=i.filter(p=>!l.has(p.line.id)),d=s.length>0?[...o,...s]:o,c=eA(e,t,d,r);if(c)return c;let u=a===void 0?d:[...d].sort((p,g)=>{let m=p.pageIndex===a?0:1,h=g.pageIndex===a?0:1;return m-h}),f=null;for(let{line:p,pageIndex:g,clipBox:m}of u){let h=Gn(p,t.paragraphId);if(!h||t.offset<h.start||t.offset>h.end)continue;if(t.offset===h.end&&nt(p).length===1&&(Sf(p,t.offset)||t.offset>h.start&&(iA(p,h)||uP(e,p,t.offset)))){f??={line:p,pageIndex:g,clipBox:m};continue}if(t.offset===h.end&&t.offset>h.start&&(oA(e,t.paragraphId,t.offset)||mP(e,p,t.paragraphId,t.offset,g))||t.offset===h.start&&pP(e,p,t.paragraphId,t.offset,g))continue;let y=gr({...go(p,t.offset,r.measurer,h),width:0},m);if(y)return ji(e,{position:t,x:y.x,y:y.y,height:y.height,lineId:p.id,pageIndex:g})}if(f){let p=gr({...go(f.line,t.offset,r.measurer,Gn(f.line,t.paragraphId)),width:0},f.clipBox);return p?ji(e,{position:t,x:p.x,y:p.y,height:p.height,lineId:f.line.id,pageIndex:f.pageIndex}):null}return null}function wpe(e){return nx(e)}var SA=new WeakMap;function FA(e){let t=SA.get(e);return t||(t=new Map,e.forEach((n,r)=>{t.has(n)||t.set(n,r);}),SA.set(e,t)),t}function _h(e,t){return FA(e).get(t)??-1}function jh(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=_h(t,e.anchor.paragraphId),r=_h(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 RA(e,t){let n=[],r=new Set;for(let{line:a}of hn(e,t)??[]){let i=Gn(a,t);if(i){for(let l of i.spans){if(l.range.end===l.range.start)continue;let s=`${l.range.start}:${l.range.end}`;if(r.has(s))continue;r.add(s);let d=l.range.end-l.range.start,c=l.text.length===d?l.text:l.text.slice(0,d).padEnd(d," ");n.push({start:l.range.start,text:c});}for(let l of i.drawings){let s=l.start,d=s+1,c=`${s}:${d}`;r.has(c)||(r.add(c),n.push({start:s,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 PA(e,t){let n=new Set;for(let{line:r}of hn(e,t)??[]){let o=Gn(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 wA(e,t,n){return {locate:(r,o)=>vA(e,r,{...t?{measurer:t}:{},...o!==void 0?{preferredLineId:o}:{}}),hasStop:({paragraphId:r,offset:o})=>n?n.some(a=>a.position.paragraphId===r&&a.position.offset===o):vf(e,r,t).index.get(r)?.has(o)??false}}function kA(e,t,n,r){let o=Js(e),a=Pl(e),i=a.get(t.paragraphId);if(i===void 0)return null;let l=yP(e,t.paragraphId),s=wP(e,t.paragraphId,r),d=c=>Pf(e,c);if(l){let c=s.index.get(t.paragraphId)?.get(t.offset),u=c===void 0?sc(s.stops,t,n,d):rs(s.stops,c,n,d).logicalDirection,f=l.members.map(p=>a.get(p)).filter(p=>p!==void 0);i=u===-1?Math.min(...f):Math.max(...f);}return yA(t,n,o,i,c=>c===t.paragraphId?s:vf(e,c,r),d)}function kpe(e,t,n,r=null,o={}){let a=d=>Pf(e,d);if(!o.stops&&(n==="left"||n==="right"))return kA(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let d=n==="wordLeft"?-1:1,c=wP(e,t.paragraphId,o.measurer),u=c.index.get(t.paragraphId)?.get(t.offset),f=RA(e,t.paragraphId),p=PA(e,t.paragraphId),g=u===void 0?Rf(f,t.offset,sc(c.stops,t,d,a),p):SP(f,c.stops,u,d,a,p);return g===t.offset?kA(e,t,d,o.measurer):{position:{paragraphId:t.paragraphId,offset:g},desiredX:null}}if(n==="lineStart"||n==="lineEnd"){let d=wA(e,o.measurer,o.stops),u=hP(e,t,n==="lineStart"?-1:1,o.lineId,d);if(u)return {...u,desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let d=hA(t,n==="lineStart"?-1:1,wP(e,t.paragraphId,o.measurer),a);return d?{position:d,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let d=bA(n==="documentStart"?-1:1,Js(e),c=>vf(e,c,o.measurer));return d?{position:d,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let d=Pl(e).get(t.paragraphId);if(d===void 0)return null;let c=wA(e,o.measurer),u=lA(t,o.lineId,c),f=xA(u?.position??t,n==="up"?-1:1,r??u?.x??null,Js(e),d,g=>vf(e,g,o.measurer)),p=f&&sA(e,f.position,f.desiredX,c);return p?{...p,desiredX:f.desiredX}:f}let i=o.stops??TZ(e,o.measurer);if(i.length===0)return null;let l=i.findIndex(d=>d.position.paragraphId===t.paragraphId&&d.position.offset===t.offset);if(l===-1){if(n==="left"||n==="right"){let c=PP(i,t,sc(i,t,n==="left"?-1:1,a))??Tf(i,t);return c?{position:c.position,desiredX:null}:null}let d=Tf(i,t);if(!d)return null;l=i.indexOf(d);}let s=i[l];switch(n){case "left":case "right":return {position:(rs(i,l,n==="left"?-1:1,c=>Pf(e,c)).target??s).position,desiredX:null};case "lineStart":return {position:wf(i,s,-1,a).position,desiredX:null};case "lineEnd":return {position:wf(i,s,1,a).position,desiredX:null};case "wordLeft":case "wordRight":{let d=RA(e,t.paragraphId),c=SP(d,i,l,n==="wordLeft"?-1:1,a,PA(e,t.paragraphId));return c===t.offset?{position:(rs(i,l,n==="wordLeft"?-1:1,f=>Pf(e,f)).target??s).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 d=r??s.x,c=n==="pageUp"?-1:1,u=dA(i,s.pageIndex,c),f=i.filter(m=>m.pageIndex===u);if(f.length===0)return {position:(n==="pageUp"?i[0]:i[i.length-1]).position,desiredX:d};let p=f[0],g=Number.POSITIVE_INFINITY;for(let m of f){let h=Math.abs(m.y-s.y)*1e3+Math.abs(m.x-d);h<g&&(g=h,p=m);}return {position:p.position,desiredX:d}}case "up":case "down":{let d=r??s.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(s.lineId),p=n==="up"?f-1:f+1;if(p<0||p>=c.length)return {position:(n==="up"?i[0]:i[i.length-1]).position,desiredX:d};let g=i.filter(h=>h.lineId===c[p]),m=g[0];for(let h of g)Math.abs(h.x-d)<Math.abs(m.x-d)&&(m=h);return {position:m.position,desiredX:d}}default:return null}}function Tpe(e,t,n){return vA(e,t,n)}function vpe(e,t,n){let r=jh(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return OZ(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:s}of hn(e,r.from.paragraphId)??[]){let d=Gn(s,r.from.paragraphId);if(!d)continue;let c=wl(e,d,r.from,r.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=af(e),i=_h(n,r.from.paragraphId),l=_h(n,r.to.paragraphId);if(i===-1||l===-1)return [];for(let s=i;s<=l;s+=1)for(let{line:d}of a.get(n[s])??[]){let c=Gn(d,n[s]);if(!c)continue;let u=wl(e,c,r.from,r.to,FA(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 OZ(e,t){let n=null,r=null,o=null;for(let{line:i}of hn(e,t.paragraphId)??[])for(let l of Gn(i,t.paragraphId)?.spans??[]){let{start:s,end:d}=l.range;s<t.offset&&t.offset<=d?n??=l:s===t.offset&&d===s&&l.projected?o??=l:s===t.offset&&(r??=l);}let a=uv(n,r)??n??r??o;return a?[a]:[]}function CZ(e,t,n,r){return MA(e,t,n,true,r)}function zpe(e,t,n,r){return MA(e,t,n,false,r)}var OA=new WeakMap,CA=new WeakMap;function MZ(e){let t=OA.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of Ut(r))for(let a of o.lines)for(let i of nt(a)){let l=n.get(i.paragraphId);if(!l||i.end>l.end||i.end===l.end&&i.start>=l.start){let{end:s,start:d}=i;n.set(i.paragraphId,{end:s,start:d,lineId:a.id});}}return OA.set(e,n),n}function IA(e){let t=CA.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return CA.set(e,n),n}function BZ(e){return Math.max(3,Math.min(8,e*.25))}function MA(e,t,n,r,o){if(t.anchor.paragraphId===t.head.paragraphId&&t.anchor.offset===t.head.offset)return [];let a=jh(t,n);if(!a)return [];let i=IA(n),l=i.get(a.from.paragraphId),s=i.get(a.to.paragraphId),d=MZ(e),c=[];for(let u of e.pages)for(let f of Ut(u))for(let p of f.lines){let g=qs(p);for(let[m,h]of g.entries()){let y=wl(e,h,a.from,a.to),b=i.get(h.paragraphId),x=d.get(h.paragraphId),R=l!==void 0&&s!==void 0&&b!==void 0&&b>=l&&b<s&&x?.lineId===p.id&&x.end===h.end&&m===g.length-1;if((!r||!y)&&!R)continue;let P=r&&y?lc(p,y.start,y.end,o,h):[];if(R){let S=BZ(Math.max(0,p.box.height-p.leading-(p.trailingSpacing??0))),w=h.spans[0]?.style.shaping?.baseLevel,F=w===void 0?it(f.props):w%2===1,T=ic(p,h.end,o,h),v=ac(h.spans,h.drawings);v&&h.spans.some(C=>C.style.shaping!==void 0)&&(T=F?v.left:v.right),P.push({x:F?T-S:T,width:S});}for(let S of cP(P)){let w=gr({pageIndex:u.index,...S,y:p.box.y,height:p.box.height},f.clipToBox?f.box:void 0);w&&c.push(yf(e,h.paragraphId,w));}}}return c}function IZ(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 Ut(a))for(let l of i.lines)for(let s of nt(l))for(let d of t){let c=wl(e,s,d.from,d.to);if(!c)continue;let u=o.get(d.key)??[];for(let f of lc(l,c.start,c.end,r,s)){let p=gr({pageIndex:a.index,...f,y:l.box.y,height:l.box.height},i.clipToBox?i.box:void 0);p&&(u.push(yf(e,s.paragraphId,p)),o.set(d.key,u));}}return o}function Gpe(e){return {x:e.contentBox.x,y:e.contentBox.y}}function Wi(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Vpe(e,t,n){if(Pl(e).has(t))return {x:0,y:0};let r=e.pages[n];if(!r)return {x:0,y:0};let o=a=>un(a).some(i=>i.paragraphId===t);if(r.header&&o(r.header.fragments))return Wi(r,r.header.box);if(r.footer&&o(r.footer.fragments))return Wi(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 Wi(r,i.box)}return {x:0,y:0}}function Kpe(e,t,n,r,o){let a=new Map,i=[];for(let d of t){let c=jh({anchor:d.from,head:d.to},n);c&&i.push({key:d.key,from:c.from,to:c.to});}if(i.length===0)return a;let l=IA(n),s=(d,c,u,f)=>{for(let p of un(d))for(let g of p.lines){for(let m of nt(g))for(let h of i){let y=wl(e,m,h.from,h.to,l);if(!y)continue;let b=a.get(h.key)??[];for(let x of lc(g,y.start,y.end,o,m)){let R=gr({pageIndex:c,...x,y:g.box.y,height:g.box.height},p.clipToBox?p.box:void 0);R&&(b.push({...R,x:R.x+u,y:R.y+f}),a.set(h.key,b));}}}};for(let d of e.pages)if(!(r&&!r.has(d.index))){s(d.fragments,d.index,0,0);for(let c of [d.header,d.footer]){if(!c)continue;let u=Wi(d,c.box);s(c.fragments,d.index,u.x,u.y);}for(let c of [d.footnotes,d.endnotes])if(c)for(let u of c.notes){let f=Wi(d,u.box);s(u.fragments,d.index,f.x,f.y);}}return a}function AZ(e){let t=Math.max(0,e.leading),n=e.box.height-t-Math.max(0,e.trailingSpacing??0);return n>0?{y:e.box.y+t,height:n}:{y:e.box.y,height:e.box.height}}function LA(e,t){t(e.fragments,null);for(let n of [e.header,e.footer])n&&t(n.fragments,Wi(e,n.box));for(let n of [e.footnotes,e.endnotes])for(let r of n?.notes??[])t(r.fragments,Wi(e,r.box));}function ege(e,t,n,r){let o=[];if(t.size===0)return o;let a=(i,l,s)=>{for(let d of un(i))for(let c of d.lines)for(let u of nt(c)){let f=t.get(u.paragraphId);if(f)for(let p of f){let g=Math.max(u.start,p.start),m=Math.min(u.end,p.end);if(!(m<=g))for(let h of lc(c,g,m,r,u)){let y=gr({pageIndex:l,...h,...AZ(c)},d.clipToBox?d.box:void 0);if(!y)continue;let b=s?{...y,x:y.x+s.x,y:y.y+s.y}:yf(e,u.paragraphId,y);o.push({...b,key:p.key});}}}};for(let i of e.pages)n&&!n.has(i.index)||LA(i,(l,s)=>a(l,i.index,s));return o}var Wh=new WeakMap;function EA(e,t){let n=Wh.get(e);n&&Wh.set(t,n);}function NZ(e){let t=Wh.get(e);if(t)return t;let n=new Set,r=a=>{for(let i of un(a))for(let l of i.lines)for(let s of nt(l))n.add(s.paragraphId);};LA(e,a=>r(a));for(let a of fR(e))r(a.textboxStory.fragments);for(let a of [e.header,e.footer]){if(!a)continue;let i=[...a.anchoredDrawings??[],...un(a.fragments).flatMap(l=>l.lines.flatMap(s=>s.drawings??[]))];for(let l of i)l.textboxStory&&!l.accessibility.hidden&&r(l.textboxStory.fragments);}let o=[...n];return Wh.set(e,o),o}var BA=new WeakMap;function tge(e){let t=BA.get(e);if(t)return t;let n=new Set;for(let r of e.pages)for(let o of NZ(r))n.add(o);return BA.set(e,n),n}var zh=new WeakMap;function NA(e,t){let n=zh.get(e);n&&zh.set(t,n);}var Gh=new WeakMap,Vh=new WeakMap;function Ff(e,t){let n=Vh.get(e);n&&Vh.set(t,new Map(n));let r=Gh.get(e);r&&Gh.set(t,r);}function AA(e){let t=zh.get(e);if(t)return t;let n={paragraphs:new Map,tables:new Map},r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){if(a)for(let s of Sa(i)){let d=n.paragraphs.get(s);(!d||d.tableId.length<a.tableId.length)&&n.paragraphs.set(s,a);}continue}let l=n.tables.get(i.tableId);l||(l={rows:new Set,columns:0},n.tables.set(i.tableId,l)),l.columns=Math.max(l.columns,(i.columnEdges?.length??1)-1);for(let s of i.rows){l.rows.add(s.id);for(let d of s.cells)l.columns=Math.max(l.columns,d.gridColumn+Math.max(1,d.gridSpan)),r(d.blocks,s.isHeaderRepeat?void 0:{tableId:i.tableId,rowId:s.id,columnIndex:d.logicalGridColumn??d.gridColumn});}}};r(e.fragments);for(let o of [e.header,e.footer])o&&r(o.fragments);for(let o of [e.footnotes,e.endnotes])if(o)for(let a of o.notes)r(a.fragments);return zh.set(e,n),n}function oge(e,t){let n=Vh.get(e);if(n||Vh.set(e,n=new Map),n.has(t))return n.get(t);let r=DZ(e,t);return n.size>=32&&n.delete(n.keys().next().value),n.set(t,r),r}function DZ(e,t){let n=Gh.get(e);if(!n){n=new Map;for(let a of e.pages)for(let[i,l]of AA(a).tables){let s=n.get(i);s||(s={rows:new Map,columns:0},n.set(i,s)),s.columns=Math.max(s.columns,l.columns);for(let d of l.rows)s.rows.has(d)||s.rows.set(d,s.rows.size);}Gh.set(e,n);}let r;for(let a of e.pages){let i=AA(a).paragraphs.get(t);i&&(!r||r.tableId.length<i.tableId.length)&&(r=i);}if(!r)return null;let o=n.get(r.tableId);return {tableId:r.tableId,rows:o.rows.size,columns:o.columns,rowIndex:o.rows.get(r.rowId),columnIndex:r.columnIndex}}var _A=new WeakMap;function ZC(e,t){_A.set(e,t);}var kP=new WeakMap;function qC(e,t){if(!(!e||!t))for(let n of e.values()){if(n.picBullet||kP.get(n)?.measurer===t)continue;let r=_A.get(n);if(r===void 0)continue;let o=n.markerText.length>0&&!n.markerStyle.hidden?t.lineMetrics(n.markerStyle,n.markerText).baseline:0,a=Pd(n,t);kP.set(n,{measurer:t,token:de(["geometry",r,String(a),String(o)])});}}function dc(e){return kP.get(e)?.token??e.cacheToken}function TP(e){return e&&dc(e)}function tc(e){return e?dc(e):""}function _Z(e,t,n){if(e.picture||e.text===t.markerText&&e.ordinal===t.ordinal)return e;let{ordinal:r,pieces:o,...a}=e,i=o?th(t.markerText,t.markerStyle,e.box,n):void 0;return {...a,text:t.markerText,...t.ordinal===void 0?{}:{ordinal:t.ordinal},...i?{pieces:i}:{}}}function HA(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=a.marker?t.get(a.paragraphId):void 0,s=l&&a.marker?_Z(a.marker,l,n):null;s&&s!==a.marker&&(i={...a,marker:s});}else {let l=null;for(let s=0;s<a.rows.length;s+=1){let d=a.rows[s],c=null;for(let u=0;u<d.cells.length;u+=1){let f=d.cells[u],p=HA(f.blocks,t,n);p!==f.blocks&&(c??=[...d.cells],c[u]={...f,blocks:p});}c&&(l??=[...a.rows],l[s]={...d,cells:c});}l&&(i={...a,rows:l});}i!==a&&(r??=[...e],r[o]=i);}return r??e}var DA=new WeakMap;function Kh(e,t,n){if(!t||t.size===0||!n)return e;let r=DA.get(t);r||DA.set(t,r=new WeakMap);let o=null;for(let a=0;a<e.pages.length;a+=1){let i=e.pages[a],l=r.get(i);if(l===void 0){let s=HA(i.fragments,t,n);l=s===i.fragments?i:{...i,fragments:s},r.set(i,l),l!==i&&(r.set(l,l),HB(i,l),tv(i,l),EA(i,l),NA(i,l));}l!==i&&(o??=[...e.pages],o[a]=l);}return o?{...e,pages:o}:e}var vP=1<<18,jA=new WeakMap,HZ=1;function jZ(e){if(e===void 0)return 0;let t=jA.get(e);return t===void 0&&jA.set(e,t=HZ++),t}var WA=new WeakMap;function zA(e){let t=WA.get(e);return t||WA.set(e,t=new WeakMap),t}function WZ(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}function Of(){return new WeakMap}function Ha(e,t,n){if(!n){let d=[],c=false;for(let u of FP(e)){let f=t(u);f&&(c=true),d.push(f);}return c?de(d):""}let r=[],o=false,a,i=[e];for(;i.length>0;){let d=i.pop();if(d!==e&&d.kind==="tableRow"){a??=d;let c=zZ(d,t,n);c.any&&(o=true),r.push(c.framed);continue}if(d.kind==="paragraph"){let c=t(d);c&&(o=true),r.push(de([c]));continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)i.push(d.children[c]);}if(!o)return "";let l=a&&zA(n.rows).get(a);if(l&&WZ(l.pieces,r))return l.token;let s=r.join("");return a&&s.length<=vP&&zA(n.rows).set(a,{pieces:r,token:s}),s}function zZ(e,t,n){let r=jZ(n.scope),o=n.rows.get(e);if(o&&o.scope===r&&o.epoch===n.epoch)return o;let a=[],i=false;for(let s of FP(e)){let d=t(s);d&&(i=true),a.push(d);}let l={scope:r,epoch:n.epoch,framed:de(a),any:i};return l.framed.length<=vP&&n.rows.set(e,l),l}var GA=new WeakMap;function FP(e){let t=GA.get(e);if(t)return t;let n=[],r=[e];for(;r.length>0;){let o=r.pop();if(o!==e&&o.kind==="tableRow"){for(let a of FP(o))n.push(a);continue}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 (e.kind!=="tableRow"||n.length<=256)&&GA.set(e,n),n}var VA=new WeakMap,GZ=Of();function OP(e,t,n){if(!t||t.size===0||n!==void 0&&e.kind!=="textValue"&&!UC(e,n))return "";let r=VA.get(e),o=r?.get(t);if(o!==void 0)return o;let a=Ha(e,i=>{let l=t.get(i.id);return l?dc(l):""},{rows:GZ,scope:t,epoch:""});return a.length<=vP&&(r||(r=new WeakMap,VA.set(e,r)),r.set(t,a)),a}function UA(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&t.push("\0;"),t.push(r.localName,"(\0"),r.attributes){let o="";for(let a of Object.keys(r.attributes).sort())t.push(o,a,"=",r.attributes[a]),o="\0,";}t.push("\0)");}return t.join("")}var YA=new WeakMap;function XA(e){YA.set(e,cc(UA(e)));}var VZ=new TextEncoder;function Uh(e){return chunkPWTRJSES_cjs.f(VZ.encode(e))}var KZ=2048,KA=2*1024*1024,Cf=new Map,CP=0,$Z;function cc(e){if(e.length===0)return $Z??=Uh(e);let t=Cf.get(e);if(t)return t.digest;let n=Uh(e),r=e.length*2;if(r<=KA){Cf.set(e,{digest:n,bytes:r}),CP+=r;for(let[o,a]of Cf){if(Cf.size<=KZ&&CP<=KA)break;Cf.delete(o),CP-=a.bytes;}}return n}function If(e,t){return `${e}|${t?"drawing":""}`}var UZ=new WeakMap;function IP(e){return e?{nodeDigests:UZ,paragraphKeys:new WeakMap}:{nodeDigests:new Map,paragraphKeys:new Map}}var MP=IP(true);function BP(e,t){if(e.kind==="textValue")return Uh(Yh(e));let n=t.nodeDigests.get(e);if(n!==void 0)return n;let r=Uh(Yh(e,t));return t.nodeDigests.set(e,r),r}function Cge(e){for(let t of e)t.kind!=="textValue"&&BP(t,MP);}function YZ(e){for(let t of e.children)if(t.kind!=="textValue")return false;return true}function XZ(e){return YZ(e)||!chunkPWTRJSES_cjs.rb(e)}var ZZ=new Map([chunkPWTRJSES_cjs.la,chunkPWTRJSES_cjs.ma,chunkPWTRJSES_cjs.na,chunkPWTRJSES_cjs.oa,chunkPWTRJSES_cjs.pa,chunkPWTRJSES_cjs.qa,chunkPWTRJSES_cjs.ra,chunkPWTRJSES_cjs.sa,chunkPWTRJSES_cjs.ta,chunkPWTRJSES_cjs.ua].map((e,t)=>[e,`k${t}`]));function qZ(e){return e===void 0?"":ZZ.get(e)??`u${e}`}function Yh(e,t=MP){if(e.kind==="textValue")return de(["text",e.value]);let n=[];for(let o of e.attributes)n.push(de([qZ(o.namespaceUri),o.localName,o.value]));n.sort();let r=[];for(let o of e.children)r.push(o.kind==="textValue"?Yh(o):XZ(o)?de(["child-inline",Yh(o,t)]):de(["child-digest",BP(o,t)]));return de(["element",e.kind,e.localName,e.id,de(n),de(r)])}var JZ=2;function Xh(e){return ZA(e,MP)}function ZA(e,t){let n=Math.round(e.width*1e3),r=e.drawingToken??"",o=e.projectionToken??"",a=e.exclusionToken??"",i=YA.get(e.properties)??cc(UA(e.properties)),l=BP(e.paragraph,t),s=cc(e.producer),d=cc(r),c=cc(o),u=cc(a),f=t.paragraphKeys.get(e.paragraph),p=f?.entries.findIndex(h=>h.producerIdentity===s&&h.width===n&&h.drawingIdentity===d&&h.projectionIdentity===c&&h.exclusionIdentity===u&&h.propertiesToken===i);if(f&&p!==void 0&&p>=0){let h=f.entries[p];return p!==f.entries.length-1&&(f.entries.splice(p,1),f.entries.push(h)),h.key}let g=`plk:${l}:${s}:${n}:${d}:${c}:${u}:${i}`;f||(f={entries:[]},t.paragraphKeys.set(e.paragraph,f));let m=f.entries.find(h=>h.propertiesToken===i)?.propertiesToken??i;return f.entries.push({producerIdentity:s,width:n,drawingIdentity:d,projectionIdentity:c,exclusionIdentity:u,propertiesToken:m,key:g}),f.entries.length>JZ&&f.entries.shift(),g}function qA(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)for(let i of bF(a)??[])for(let l of i)o.add(l);t||e.retain(o);}var QZ=8,e6=8,t6=Object.freeze({softBytes:16*1024*1024,hardBytes:128*1024*1024});function Ige(e={}){return n6(e,t6)}function n6(e,t){let n=e.maxEntries===void 0?Number.POSITIVE_INFINITY:Math.max(1,e.maxEntries),r=n*8,o=Math.max(0,t.softBytes),a=Math.max(o,t.hardBytes),i=e.retainAcrossPasses??true,l=new Yp,s=IP(i),d=0,c=0,u=0,f=0,p=0,g=0,m=0,h=0,y=0,b=0,x=0,R=0,P=0,S=0,w=()=>l.bytes>o||l.size>n,F=()=>l.bytes>a||l.size>r,T=I=>{l.delete(I),m+=1;},v=(I,O,k)=>{let E=uF(I,O);if(E>a){l.delete(I)&&(m+=1),R+=1;return}for(l.set(I,O,E,d),k&&(u+=E);w();){let M=l.oldest();if(M.key===I)break;let A=F();if(Math.max(M.touched,M.named)>=d&&!A)break;A?y+=1:h+=1,T(M.key);}},C={retainAcrossPasses:i,keyFor(I){return ZA(I,s)},get(I){let O=l.entry(I,true);if(O===void 0){g+=1;return}return p+=1,O.touched=d,O.value},set(I,O){v(I,O,true);},release(I){!i&&l.delete(I)&&(P+=1);},retentionPassDue(){return c+=1,c%QZ===0?true:i&&u>Math.max(o,f/2)},retain(I){let O=d;d+=1;let k=0;for(let E of I){let M=l.entry(E);!M||M.named===d||(M.named=d,k+=M.bytes);}f=k,u=0;for(let E of l.fromOldest())d-Math.max(E.touched,E.named)>e6?(T(E.key),b+=1):E.named===O&&E.touched<O&&w()&&(T(E.key),x+=1);},clear(){S+=l.size,l.clear(),u=0,f=0,s=IP(i);},get stats(){return {hits:p,misses:g,evictions:m,size:l.size}}};return i&&lF(C,(I,O,k)=>{let E=s.paragraphKeys.get(I),M=E?.entries.find(A=>A.key===O);if(M)for(let A of E.entries){if(A===M||A.producerIdentity!==M.producerIdentity||A.drawingIdentity!==M.drawingIdentity||A.projectionIdentity!==M.projectionIdentity||A.exclusionIdentity!==M.exclusionIdentity||A.propertiesToken!==M.propertiesToken)continue;let N=l.get(A.key);if(!(!N||!k(N)))return l.delete(A.key),v(O,N,false),N}}),pF(C,I=>l.get(I)),gF(C,{snapshot(){let I=0;for(let O of l.keys())I+=O.length*2;return {hits:p,misses:g,evictions:m,size:l.size,softLimit:n,hardLimit:r,estimatedBytes:l.bytes,namedBytes:f,softLimitBytes:o,hardLimitBytes:a,keyTextBytes:I,softLimitEvictions:h,hardLimitEvictions:y,staleEvictions:b,supersededEvictions:x,oversizedRefusals:R,releasedEntries:P,clearedEntries:S}},visit(I){for(let O of l.values())I(O);}}),C}var JA=new WeakMap,r6=0;function Zh(e){let t=JA.get(e.content);return t===void 0&&(t=++r6,JA.set(e.content,t)),de([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),...e.noWrap?["nowrap"]:[]])}var qh=12700;function o6(e,t){return Object.freeze({...e,drawingNodeId:t.memberNodeId,extentEmu:Object.freeze({cx:t.frameEmu.cx,cy:t.frameEmu.cy}),textboxStory:t.story,groupTextboxes:void 0,wrap:"inFront"})}function a6(e,t){let n=e.groupTextboxes;if(!n||!t||chunkPWTRJSES_cjs.Md(e).hidden)return;let r=[];for(let o of n){let a=t(o6(e,o));a&&r.push(Object.freeze({memberNodeId:o.memberNodeId,box:Object.freeze({x:o.frameEmu.x/qh,y:o.frameEmu.y/qh,width:o.frameEmu.cx/qh,height:o.frameEmu.cy/qh}),story:a,rotationDegrees:o.rotationDegrees}));}return r.length>0?Object.freeze(r):void 0}function LP(e,t,n){let r=a6(t,n);if(!r)return e;let o={...e,groupTextboxStories:r};return Object.freeze(o),o}function QA(e){return e?de(e.map(t=>de([t.memberNodeId,String(t.frameEmu.x),String(t.frameEmu.y),String(t.frameEmu.cx),String(t.frameEmu.cy),String(t.rotationDegrees),Zh(t.story)]))):""}function tN(e,t){let n=(r,o)=>{if(!(o>=chunkPWTRJSES_cjs.wa)){if(r.kind==="run"){for(let a of r.children)t(a);return}if(chunkPWTRJSES_cjs.ya(r)){for(let a of r.children)n(a,o+1);return}if(chunkPWTRJSES_cjs.Uc(r))for(let a of chunkPWTRJSES_cjs.Xc(r))n(a,o+1);}};for(let r of e.children)n(r,0);}var eN=new WeakSet;function Jh(e,t){if(eN.has(e))return;let n=false,r=[],o=(a,i)=>{if(!(i>=chunkPWTRJSES_cjs.wa)){if(a.kind==="run"){for(let l of a.children)(l.kind==="drawing"||chunkPWTRJSES_cjs.Jd(l)||chunkPWTRJSES_cjs.od(l))&&(n=true,t(l,r,a));return}if(chunkPWTRJSES_cjs.ya(a)){r.push(a);for(let l of a.children)o(l,i+1);r.pop();return}if(chunkPWTRJSES_cjs.Uc(a)){r.push(a);for(let l of chunkPWTRJSES_cjs.Xc(a))o(l,i+1);r.pop();}}};for(let a of e.children)o(a,0);n||eN.add(e);}var nN=new WeakMap;function i6(e){if(e.kind!=="run")return false;let t=nN.get(e);return t===void 0&&(t=je(Ra(e,[])).hidden,nN.set(e,t)),t}function at(e,t){if(e.kind!=="paragraph")return [];let n=[];return Jh(e,(r,o,a)=>{let i=Dr;for(let l of o){let s=En(l)?Vn(l):null;s&&(i=ar(i,s));}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(chunkPWTRJSES_cjs.Jd(r)||chunkPWTRJSES_cjs.od(r)){if(chunkPWTRJSES_cjs.od(r)&&i6(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 Tn(e){let t=new Map;if(e.kind!=="paragraph")return t;let n;return tN(e,r=>{if(r.kind!=="drawing"&&!chunkPWTRJSES_cjs.Jd(r)&&!chunkPWTRJSES_cjs.od(r))return;let o=(n??=chunkPWTRJSES_cjs.jg(e)).spanOf(r);o&&t.set(r.id,o.start);}),t}var l6=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"]]),s6=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),d6=Object.freeze({left:0,top:0,right:0,bottom:0});function aN(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=l6.get(o)??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??e.groupPicture?.crop??d6,transform:t?.transform??s6,placeholderGraphicKind:t||e.legacyGraphic?null:n,vectorShape:e.vectorShape,...e.groupPicture?{groupPicture:Object.freeze({alternateContent:e.groupPicture.alternateContent})}:{}})}var Ho=12700;function hr(e){return e/Ho}function _r(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*Ho*72)return null;let t=e/Ho;return Number.isFinite(t)?t:null}function dr(e){let a=hr(e.effectExtentEmu.left),i=hr(e.effectExtentEmu.right),l=hr(e.effectExtentEmu.top),s=hr(e.effectExtentEmu.bottom),d=hr(e.extentEmu.cx),c=hr(e.extentEmu.cy);return Object.freeze({distL:0,distR:0,distT:0,distB:0,effectL:a,effectR:i,effectT:l,effectB:s,width:d,height:c,totalWidth:0+a+d+i+0,lineContribution:0+l+c+s+0})}function VM(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 Qh(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 pr(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:Qh(e.geometry,t,n)})}function KS(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:Qh(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 iN(e,t,n){return os(e,Object.freeze({x:e.x,y:t,width:e.width,height:Math.max(0,n-t)}))}function os(e,t){let n=Ol(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=Qh(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:Kp(i,t)})}var rN=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),oN=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function Yo(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function lN(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 sN(e,t){if(lN(e,t)){let s=t.cellBox;if(!s)return null;let{x:d,width:c}=s;switch(e){case "column":{let u=t.cellContentBox??s;return {left:u.x,right:u.x+u.width,center:u.x+u.width/2}}case "page":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return Yo(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return Yo(t)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,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 Yo(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return Yo(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function dN(e,t){if(lN(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 Yo(t)?{top:u,bottom:u+f,center:u+f/2}:{top:u+f,bottom:u+f,center:u+f};case "outsideMargin":return Yo(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,s=t.verticalMarginFrame?.top??i,d=s+(t.verticalMarginFrame?.height??t.contentHeight);switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:s,bottom:d,center:(s+d)/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 Yo(t)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return Yo(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function cN(e){return e===null?0:_r(e)}function c6(e,t,n){let r=Yo(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 u6(e,t,n){let r=Yo(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 f6(e,t,n,r,o){let a=sN(e,o);if(!a)return null;let i=cN(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=c6(t,r,o);if(l!==null)return l+i}return a.left+i}function m6(e,t,n,r,o){let a=dN(e,o);if(!a)return null;let i=cN(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=u6(t,r,o);if(l!==null)return l+i}return a.top+i}function Cu(e,t){let n=dr(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 m=_r(r.simplePosition.xEmu),h=_r(r.simplePosition.yEmu);return Object.freeze(m===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:m-t.marginLeft,y:h-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let l=r.horizontal.relativeFrom,s=r.vertical.relativeFrom,d=sN(l,t),c=dN(s,t),u=d?.left??0,f=c?.top??0;if(!rN.has(l)||!oN.has(s))return Object.freeze({x:0,y:0,horizontalFrame:rN.has(l)?l:a,verticalFrame:oN.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=f6(l,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),g=m6(s,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(p===null||g===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:g,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function p6(e){let t=e.input.projection,n=t.anchor,r=dr(t),o=yi({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Ol(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?Kp(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkPWTRJSES_cjs.Md(t),...aN(t)})}function g6(e,t,n){let r=(a,i,l)=>tt(a,Ce(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 s=t-a.range.start;return a.box.x+r(a.text.slice(0,s),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 h6(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function EP(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:Qh(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 as(e){let t=at(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=Tn(e.paragraph),r=e.displayMode??Ue,o=[];for(let a of t){let i=a.projection;if(i.hidden||_o(a.revisions,r,e.revisionAuthorFilter))continue;let l=ix(a.revisions,r,e.revisionAuthorFilter);if(l===null)continue;let s=n.get(a.atomId);if(s===void 0||e.fragmentRange&&(s<e.fragmentRange.start||s>=e.fragmentRange.end))continue;let d=e.lines.find(P=>s>=P.range.start&&s<P.range.end);if(!d)continue;let c=e.cellBox===null?i.anchor?.layoutInCell??true:Pu(i,e.cellAnchorScope),f=i.position?.horizontal.relativeFrom==="character"?h6(d,s):s,p=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:d.box,anchorCharacterX:g6(d,f,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,cellContentBox:e.cellContentBox,layoutInCell:c}),g=i.textboxStory&&e.layoutTextboxStory?e.layoutTextboxStory(i):void 0,m=$p(i,g),h=Cu(m,p),y=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,b=i.position?.vertical.relativeFrom==="margin"?e.pageClip:Il(e.frameBase),x=y?e.cellBox:b,R=p6({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:m,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:f,resolved:h,layoutInCell:c,clipRegion:x,revisions:l,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(i.drawingNodeId)}:{},...g!==void 0?{textboxStory:g}:{}});o.push(LP(R,i,e.layoutTextboxStory));}return Object.freeze(o)}function KM(e){let t=e.input.projection.textboxStory&&!chunkPWTRJSES_cjs.Md(e.input.projection).hidden?e.layoutTextboxStory?.(e.input.projection):void 0,n=dr(e.input.projection),r=e.slotX+n.distL+n.effectL,o=yi({projection:e.input.projection,anchorX:r,anchorY:e.y,extentWidth:n.width,extentHeight:n.height}),a=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:o.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:o.paintBounds.height}),i=Ol(o.paintBounds,a),l=i.width>0&&i.height>0?i:Object.freeze({...i}),s=Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:r,y:e.y,width:n.width,height:n.height,distL:n.distL,distR:n.distR,distT:n.distT,distB:n.distB,advanceStart:e.slotX,advanceEnd:e.slotX+n.totalWidth,baselineOffset:e.baseline,paintBounds:i,hitBounds:l,geometry:Kp(o,a),resource:e.input.resource,accessibility:chunkPWTRJSES_cjs.Md(e.input.projection),...aN(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{},...e.bidiLevel!==void 0?{bidiLevel:e.bidiLevel}:{},...t?{textboxStory:t}:{}});return LP(s,e.input.projection,e.layoutTextboxStory)}function La(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 y6(e,t){for(let n of e)if(t>=n.start&&t<n.start+n.text.length)return n.text[t-n.start]}var b6=/^[\u200b-\u200f\u2060\ufeff]$/u;function NM(e,t,n){let r=y6(e,t);return r!==void 0&&b6.test(r)?true:n}function DM(e,t){let n=false;for(let r of e)if(!(r.start>=t)){if(r.text!==chunkPWTRJSES_cjs.mb)return false;n=true;}return n}function _M(e,t){return e.drawings.length>0||e.spans.length>0&&!t?true:e.spans.some(n=>n.text!==chunkPWTRJSES_cjs.mb)}function HM(e,t){if(!t||e.spans[0]?.text!==chunkPWTRJSES_cjs.mb)return;let n=e.spans.find(a=>a.text!==chunkPWTRJSES_cjs.mb),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===chunkPWTRJSES_cjs.mb;a+=1){let i=e.spans[a];i.range.start<r&&(e.spans[a]={...i,box:{...i.box,x:o}});}}function uN(e){return e.columnBreakAfter?{breakAfter:"column"}:e.pageBreakAfter?{breakAfter:"page"}:{}}function Vo(e){return e.pageBreakAfter===true&&e.drawings.length===0&&e.spans.every(t=>t.text===""||t.text===chunkPWTRJSES_cjs.mb)}function Ou(e){return e.length>0&&/^[ \t]+$/.test(e)}function jd(e,t){let n=t?.baselineShiftPt?pi(t):0;return n?{height:e.height,baseline:e.baseline+n}:e}function Nd(e,t,n,r){Ou(n)||La(e,jd(t,r));}function jr(e,t){return e.noteSeparator||e.fieldAtom?.formControl?.kind==="checkbox"?void 0:t}var x6={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,optionalHyphenBreak:true},S6=Object.keys(x6);function R6(e,t){for(let n of S6)if(e[n]!==t[n])return false;return true}function P6(e,t){if(e.glyphOffsetPt||t.glyphOffsetPt||e.caretEdges!==void 0||t.caretEdges!==void 0)return false;let n=ro(e.text),r=t.text.codePointAt(0);return n===void 0||r===void 0||!vl(n)||!vl(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:R6(e,t)}function jM(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&&P6(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 Mf(e,t,n){return Math.max(so(t,e.height,n),e.exclusionSkipBefore??0)}function $S(e,t,n,r=0){let o=Mf(t,e,n);return (t.anchorClearanceBefore??o)+Math.max(0,t.height-t.trailingSpacing)+r}function Vg(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.breakClearance?{breakClearance:true}:{},...e.anchorClearanceBefore!==void 0?{anchorClearanceBefore:e.anchorClearanceBefore}:{},...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 Ii(e,t,n){return ac(e,t)?.left??n}function ac(e,t){if(e.length===0&&t.length===0)return null;let n=1/0,r=-1/0;for(let o of e)n=Math.min(n,o.box.x),r=Math.max(r,o.box.x+o.box.width);for(let o of t)n=Math.min(n,o.advanceStart),r=Math.max(r,o.advanceEnd);return {left:n,right:r}}function WM(e){let t=e.drawings.length>1?[...e.drawings].sort((r,o)=>r.start-o.start):e.drawings,n=0;for(let r=0;r<e.spans.length;r+=1){let o=e.spans[r-1],a=e.spans[r],i=o?o.box.x+o.box.width:-1/0;for(;n<t.length&&t[n].start<a.range.start;n+=1)i=Math.max(i,t[n].advanceEnd);if(!Number.isFinite(i))continue;let l=a.box.x-i;l<=.001||(e.spans[r]={...a,wrapAdvanceBefore:l});}}function VS(e){for(let t of e.drawings)e.height=Math.max(e.height,t.y+t.height+t.distB);}function zM(e){for(let t=0;t<e.drawings.length;t+=1){let n=e.drawings[t],r=n.paintBounds;r.y>=-1e-3||(e.drawings[t]=iN(n,0,r.y+r.height));}}function w6(e,t){return e.val===t.val&&e.color===t.color&&e.widthPt===t.widthPt&&e.spacePt===t.spacePt&&e.shadow===t.shadow}function Fhe(e){if(!e.spans.some(o=>o.style.border))return [];let t=[],n,r=()=>{if(!n)return;let{box:o,edge:a}=n,i=xl(a.val,a.widthPt),l=o.x-a.spacePt-i,s=o.y-a.spacePt-i,d=o.width+2*(a.spacePt+i),c=o.height+2*(a.spacePt+i);t.push({side:"top",edge:a,box:{x:l,y:s,width:d,height:i}},{side:"bottom",edge:a,box:{x:l,y:s+c-i,width:d,height:i}},{side:"left",edge:a,box:{x:l,y:s,width:i,height:c}},{side:"right",edge:a,box:{x:l+d-i,y:s,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-pi(o.style)};if(n&&w6(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 s=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:s-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 US(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(Ce(r.style,r.fontSlot),jr(r,r.text));r.borderBaselinePt!==a.baseline&&(e.spans[n]={...r,borderBaselinePt:a.baseline});let i=o.spacePt+xl(o.val,o.widthPt);La(e,{height:a.height+2*i,baseline:jd(a,r.style).baseline+i});}}function GM(e,t,n,r=false){let o={height:0,baseline:0,spans:e};for(let a of e)r&&a.text===chunkPWTRJSES_cjs.mb||La(o,jd(t.lineMetrics(Ce(a.style,a.fontSlot),jr(a,a.text)),a.style));return US(o,t),o.height>0?o.height:n}function Lhe(e){let t,n,r,o,a,i,l,s,d,c,u,f,p,g,m,h,y;return {styleCascade(){let b=e.stylesRoot(),x=e.documentThemeFonts(),R=e.settingsRoot();return (f===void 0||b!==r||R!==p||x.major!==o||x.minor!==a||x.majorEastAsia!==i||x.minorEastAsia!==l||x.majorBidi!==s||x.minorBidi!==d||x.majorSupplemental!==c||x.minorSupplemental!==u)&&(r=b,o=x.major,a=x.minor,i=x.majorEastAsia,l=x.minorEastAsia,s=x.majorBidi,d=x.minorBidi,c=x.majorSupplemental,u=x.minorSupplemental,p=R,f=aB(b,x,R)),f},defaultTabStopPt(){let b=e.settingsRoot();return (m===void 0||b!==g)&&(g=b,m=Lv(b)),m},compatibilityMode(){let b=e.settingsRoot();return b!==h&&(h=b,y=XM(b)),y},numberingIndex(){let b=e.numberingRoot();return (n===void 0||b!==t)&&(t=b,n=iC(b)),n}}}function ey(e,t,n){let r=Np(e.tabStops,t),{hanging:o,firstLine:a}=e.indent,i=it(e.props)?e.indent.right:e.indent.left;(o>0||a<0)&&i>0&&!r.stops.some(s=>s.positionPt===i&&!s.numberingOnly)&&(r={...r,stops:[...r.stops,{positionPt:i,alignment:"left",implied:true}].sort((s,d)=>s.positionPt-d.positionPt)});let l=r===e.tabStops?e.tabStopsCacheToken:Dp(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 AP(e,t){return e?`${t.toFixed(3)}|${e}`:""}function fN(e,t){let n=AP(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.anchorsTopAndBottom&&t.regionBottomY!==void 0&&(r+=`\0region:${(t.regionBottomY-t.paragraphStartY).toFixed(3)}`),t.ownBandPageFramed&&(r+=`\0at:${t.paragraphStartY.toFixed(3)}`),t.ownBandPageFramedHorizontally&&(r+=`\0x:${(t.frameMarginLeft??0).toFixed(3)}|${(t.pageNumber??1)%2}`),t.anchorParagraphStartY!==void 0&&t.anchorParagraphStartY!==t.paragraphStartY&&(r+=`\0anchor:${t.anchorParagraphStartY}`),t.startOffset>0&&(r+=`\0from:${t.startOffset}`),r}function ty(e,t,n,r){let o=e&&t!==null?e.get(t):void 0;if(o)return o;let a=r?.();if(a)return a;let i=NP({...n(),cache:void 0,cacheKey:null});return e&&t!==null&&e.set(t,e.retainAcrossPasses===false?i:i.map(Vg)),i}function NP(e){let{formatting:t,styleCascade:n}=e;return YS(e.paragraph,e.paragraphId,e.indentLeft,e.available,e.measurer,e.cache,e.cacheKey,t.inheritedRunProperties,e.tabStops,e.pageContext,n?(r,o)=>ur(r,o,n):void 0,{...e.flow,paragraphRtl:it(t.props),justifySpaceShrink:Le(e.compatibilityMode,"justifiedSpaceShrink")&&Uu(t.props)==="both",lineSpacing:t.lineSpacing,typography:Bd(t.props,n?.typography),equationCacheToken:e.producer,...n?{themeFonts:n.themeFonts}:{},markRunProperties:t.markRunProperties})}function mN(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);}}}}var Bf=new WeakMap;function uc(e,t,n,r,o,a){let i=Bf.get(e);if(i&&i.cascade===n&&i.list===r&&i.cell===o&&i.lineUnit===a)return i.width!==t&&(i.width=t,i.inputs={...i.inputs,available:DP(i.inputs,t)}),i.inputs;let l=Xn(e,t,n,r,o,true,a);return Bf.set(e,{cascade:n,list:r,cell:o,lineUnit:a,width:t,inputs:l}),l}function DP(e,t){return Math.max(1,t-e.indent.left-e.indent.right)}function pN(e,t,n,r,o){let a=Bf.get(e);return a&&a.cascade===t&&a.list===n&&a.cell===r&&a.lineUnit===o?a.inputs:void 0}function gN(e,t,n,r,o,a){let i=Bf.get(e),l=i?.prepared;return i?.inputs===t&&l&&l.interval===n&&l.dependencies.listToken===r&&l.dependencies.hostedListToken===o&&l.dependencies.refToken===a?l.value:void 0}function ny(e,t,n,r){let o=Bf.get(e),a=o?.prepared;if(o?.inputs===t&&a&&a.interval===n&&a.dependencies.listToken===r.listToken&&a.dependencies.hostedListToken===r.hostedListToken&&a.dependencies.refToken===r.refToken)return a.value;let i=ey(t,n,r);return XA(i.properties),o?.inputs===t&&(o.prepared={interval:n,dependencies:r,value:i}),i}function rt(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=Zn(a.margins.top,Ko(a.borders.top,(a.rowTableBorders??e.tableBorders).top));r.set(a.id,{...r.get(a.id)??tn(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 fc(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)??tn(i,true),s=Zn(i.margins.bottom,Ko(i.borders.bottom,(i.rowTableBorders??e.tableBorders).bottom));l.bottom!==s&&(a=true),r.set(i.id,{...l,bottom:s});let d=o.get(i.id)??i.minimumContentInsets;d&&(d.bottom!==s&&(a=true),o.set(i.id,{...d,bottom:s}));}return a?{...n,cellContentInsets:r,...o.size?{cellMinimumContentInsets:o}:{}}:n}function _P(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 ry(e,t,n){if(e?.kind!=="paragraph")return;let r=e.children.find(o=>o.kind==="paragraphProperties");return t?cr(t,r,n).styleId:Xe(r).find(o=>o.localName==="pStyle")?.attributes?.val??null}function hN(e,t,n,r,o,a){return t?_P(e,true,n,ry(r?.previous,o,a),ry(r?.next,o,a)):e}function is(e,t,n,r){let o=sS(e),a=t<0?o?.before:o?.after;if(a)return ry(a,r);let i=n?.paragraph?lr(n.paragraph):void 0,l=t<0?i?.at(-1):i?.[0];return l?ry(l.paragraph,r):n?.kind==="paragraph"?n.styleId:void 0}function k6(e,t,n,r){let o=e[t]?.paragraph;if(!o)return null;let a=is(o,n,e[t+n],r);return a===void 0?null:a??""}function yN(e,t){let n=sS(e);return n?{...t,previous:n.before??t?.previous,next:n.after??t?.next}:t}function bN(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)=>k6(e,o,a,t)}}function Zt(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function Xo(e,t){let n=0;return {...Zt(e),...t?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${n++}`}}function oy(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0}}var mc=.001,T6=64;function v6(e,t){return {...e,height:{rule:"auto"},cells:[t]}}function F6(e){let t=_i(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 s=r.get(o);s?s.add(a.id):r.set(o,new Set([a.id]));}return {heads:n,headIdsByRow:r}}function O6(e,t,n){if(e.length===0||!e.some(L=>L.cells.some(D=>D.vMergeContinue)))return null;let{heads:r,headIdsByRow:o}=F6(e);if(r.length===0)return null;let a=new Map(r.map(L=>[L.span,L])),i=new Map;for(let L of r){let D=i.get(L.span.headRow);D?D.push(L.span):i.set(L.span.headRow,[L.span]);}for(let L of i.values())L.sort((D,H)=>H.endRow-D.endRow);let l=new Map;for(let L of i.values())for(let D=0;D<L.length;){let H=D+1;for(;H<L.length&&L[H].endRow===L[D].endRow;)H+=1;let W=L.slice(D,H);for(let $ of W)l.set($,W);D=H;}let s=new Map,d=new Map,c=new Map,u=new Map,f=new Set,p=new Set,g=new Set,m=new Set,h=new Map,y=new Map,b=new Set,x=new Map,R=(L,D,H)=>{let W=new Set;for(let U of o.get(L)??[])(g.has(U)||D?.has(U)===true)&&W.add(U);let $=H===void 0?"":`@${H.toFixed(2)}`,G=`${L}${$}\0${n?.(e[L])??""}\0${[...W].sort().join("\0")}`,z=s.get(G);if(z!==void 0)return z;let Y=t(e[L],W,H);return s.set(G,Y),Y},P=(L,D)=>{let H=n?.(e[L.headRow]),W=D===void 0&&H===void 0?L:`${L.headCellId}@${D?.toFixed(2)??""}:${H??""}`,$=d.get(W);if($!==void 0)return $;let G=a.get(L),z=t(v6(e[L.headRow],G.cell),void 0,D);return d.set(W,z),z},S=(L,D,H)=>R(L,D,H)+(c.get(L)??0),w=L=>{for(let D=L.endRow;D>=L.headRow;D-=1)if(e[D].height.rule!=="exact")return D},F=L=>w(L)===void 0?[L]:l.get(L)??[L],T=L=>new Set(F(L).map(D=>D.headCellId)),v=(L,D)=>{let H=0;for(let W of F(L))H=Math.max(H,P(W,D));return H},C=new Map,I=L=>{let D=C.get(L);if(D!==void 0)return D;let H=[],W=H,$=[L.endRow];for(let G=L.headRow+1;G<=L.endRow;G+=1){let z=i.get(G);if(z===void 0)continue;let Y=z[0].endRow;for(;$.length>1&&$[$.length-1]<G;)$.pop();if(z.some(U=>U.endRow!==Y)||Y>$[$.length-1]||w(z[0])===void 0||$.length>=T6){W=null;break}$.push(Y),H.push(z);}return C.set(L,W),W},O=(L,D)=>w(L)===void 0||D.some(H=>m.has(H[0].headRow)),k=(L,D,H)=>{let W=new Map(D.map(q=>[q[0].headRow,q])),$=l.get(L)??[L],G=new Set;for(let q of [$,...D])for(let V of q)G.add(V.headCellId);let z=new Map,Y=[],U=(q,V)=>{let ie=q[0],K=0;for(let te=ie.headRow;te<=ie.endRow;){let oe=V===void 0?void 0:V+K,ae=te===ie.headRow?void 0:W.get(te);if(ae!==void 0){K+=U(ae,oe),te=ae[0].endRow+1;continue}let ue=S(te,G,oe);z.set(te,ue),K+=ue,te+=1;}let J=0;for(let te of q)J=Math.max(J,P(te,V));let fe=w(ie),ne=J-K>mc?J-K:0;return ne>0&&z.set(fe,z.get(fe)+ne),Y.push({spans:q,atYPt:V,growable:fe,surplusPt:ne}),K+ne},X=U($,H);return {groups:Y,floors:z,heightPt:X}},E=(L,D,H)=>{let{groups:W,floors:$}=k(L,D,H),G=[];for(let Y of W){for(let U of Y.spans)G.push(U),p.add(U),g.add(U.headCellId),h.set(U,Y.atYPt),y.set(U,Y.surplusPt>0?Y.growable:void 0);m.add(Y.spans[0].headRow),Y.surplusPt>0&&c.set(Y.growable,(c.get(Y.growable)??0)+Y.surplusPt);}let z={headRow:L.headRow,members:G};for(let Y of G)x.set(Y,z);for(let[Y,U]of $)f.add(Y),u.set(Y,Math.max(u.get(Y)??0,U)),Y>L.headRow&&b.add(Y);},M=(L,D)=>{let H=T(L),W=0;for(let $=L.headRow;$<=L.endRow;$+=1)W+=S($,H,D===void 0?void 0:D+W);return W},A=(L,D)=>{let H=T(L),W=new Map,$=0;for(let G=L.headRow;G<=L.endRow;G+=1){let z=S(G,H,D===void 0?void 0:D+$);W.set(G,z),$+=z;}return W},N=(L,D)=>{if(!p.has(L)){let W=I(L);if(W===null||m.has(L.headRow))return Number.POSITIVE_INFINITY;if(W.length>0)return O(L,W)?Number.POSITIVE_INFINITY:k(L,W,D).heightPt}let H=M(L,D);return w(L)===void 0?H:Math.max(H,v(L,D))};return {spansAt:L=>i.get(L)??[],heightOf:N,accept:(L,D)=>{if(p.has(L))return;let H=I(L);if(H===null||m.has(L.headRow))return;if(H.length>0){O(L,H)||E(L,H,D);return}let W=A(L,D),$=0;for(let X of W.values())$+=X;let G=w(L),z=v(L,D);if(G===void 0&&z>$+mc)return;let Y=G===void 0?0:z-$,U=G===void 0?(l.get(L)??[L]).filter(X=>X===L||!p.has(X)&&P(X,D)<=$+mc):F(L);for(let X of U)p.add(X),g.add(X.headCellId);m.add(L.headRow),Y>mc&&(c.set(G,(c.get(G)??0)+Y),W.set(G,(W.get(G)??0)+Y));for(let[X,q]of W)f.add(X),u.set(X,Math.max(u.get(X)??0,q)),X>L.headRow&&b.add(X);for(let X of U)h.set(X,D),y.set(X,Y>mc?G:void 0);},withdrawAt:L=>{let D=H=>{p.delete(H),g.delete(H.headCellId),m.delete(H.headRow),h.delete(H),y.delete(H),x.delete(H);};for(let H of i.get(L)??[]){if(!p.has(H))continue;let W=x.get(H)?.members;if(W!==void 0&&x.get(H).headRow!==L){D(H);continue}let $=y.get(H);$!==void 0&&c.delete($);for(let G of W??[H])D(G);for(let G=H.headRow;G<=H.endRow;G+=1)W!==void 0&&c.delete(G),f.delete(G),u.delete(G),b.delete(G);}},rowOptions:L=>{if(!f.has(L))return;let D;for(let H of i.get(L)??[])p.has(H)&&(D??=new Map,D.set(H.headCellId,N(H,h.get(H))));return {...D?{detachedSpanHeightPtByCellId:D}:{},heightFloorPt:u.get(L)??S(L),...b.has(L)?{coveredFromAbove:true}:{}}}}}function xN(e,t,n,r){for(let o of e?.spansAt(t)??[])n+e.heightOf(o,n)>r+mc||e.accept(o,n);return e?.rowOptions(t)}function SN(e,t,n,r,o,a){return O6(e.rows,(i,l,s)=>o(i,e.columnWidthsPt,typeof t=="function"?t():t,n,r,e.cellSpacingPt,l?{detachedSpanHeightPtByCellId:new Map([...l].map(d=>[d,Number.POSITIVE_INFINITY]))}:void 0,s),a)}function RN(e,t,n){for(let r of e?.spansAt(t)??[])e.accept(r,n);return e?.rowOptions(t)}var zi=(e,t,n,r,o,a)=>r.measuringOnly===true?null:SN(o?{...e,rows:o}:e,t,n,r,(i,l,s,d,c,u,f,p)=>Nn(i,l,s,d,a?.(i)?rt(e,i,c):c,u,f,p),a?i=>a(i)?"outer-top":"shared-top":void 0);function PN(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function HP(e,t,n,r,o){let a=PN(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let l=null,s=null,d=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,d=f.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(as({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:l,lines:d,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:Cl(true,o),measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}}function wN(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(s=>s.kind==="paragraph"&&s.id===a.paragraphId);!i||i.kind!=="paragraph"||at(i,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(a.paragraphId,as({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:Cl(true,r),measurer:r.measurer,...r.hostedStory?{layoutTextboxStory:r.hostedStory.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{},...r.revisionAuthorFilter?{revisionAuthorFilter:r.revisionAuthorFilter}:{}}));}}function kN(e,t){let n=PN(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,s)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)HP(t,i,l,s,e);else if(r)for(let d of t)r(d);t.length=0;}}}}function TN(e,t,n,r,o){return {producer:t.producer,drawing:t.drawingTokenForParagraph?.(e)||t.drawingLayoutToken||"",drawingContext:t.inlineDrawingLayout!==void 0,projection:t.projectionTokenForParagraph?.(e)??"",inTableCell:n,cellEndMark:r,rowsClearOutOfCellFloats:o}}function vN(e,t,n,r,o,a){return a.producer===t.producer&&a.drawing===(t.drawingTokenForParagraph?.(e)||t.drawingLayoutToken||"")&&a.drawingContext===(t.inlineDrawingLayout!==void 0)&&a.projection===(t.projectionTokenForParagraph?.(e)??"")&&a.inTableCell===n&&a.cellEndMark===r&&a.rowsClearOutOfCellFloats===o}function FN(e,t,n,r,o){return {paragraph:e,properties:t,width:n,producer:r.producer,drawingToken:If(r.drawing,r.drawingContext),projectionToken:`${r.projection}|inTableCell:${r.inTableCell}|cellEndMark:${r.cellEndMark}|from:${o}|rowsClear:${r.rowsClearOutOfCellFloats}`}}function ay(e,t,n,r,o,a,i,l,s){let{alignment:d}=s,c=e.spans.map(u=>({...u,range:u.range.paragraphId===t?u.range:{...u.range,paragraphId:t},box:{...u.box,x:u.box.x+n,y:r}}));return eh(c,o,s.rtl,u=>Yu(u,s.measurer,a,i,d,aM(s.props,e,l,s.styleCascade),d==="center"||d==="right"?e.width:void 0,s.rtl,s.inTableCell,e.spaceShrink===true),u=>jg(c,u,d,i,e.width))}function ON(e,t){return t?{...e,indent:{...e.indent,left:e.indent.right,right:e.indent.left}}:e}function Lf(e,t,n,r,o,a){return cS(e&&ON(e,a),a&&e?{...t,left:t.right}:t,n,r,o)}function jP(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 CN(e,t){return n=>{let r=e?.get(n.paragraph.id)??n.listItem;return {firstLineOffset:Lf(r,n.indent,t,n.tabStops,n.available,it(n.props)),...jP(r,t),...r?{firstLineAfterLeadingBreaks:true}:{}}}}function IN(e){if(!(e.length<2||!Vo(e[0])))return e.find(t=>!Vo(t))?.start}function iy(e,t,n,r=0,o,a){if(!e||!n||!e.markerText&&!e.picBullet)return;let i=Pd(e,t),l=dS(ON(e,o!==void 0),i,n.box.y,n.box.height);if(!l)return;let s=r+(o===void 0?l.x:o-l.x-l.width),d=e.picBullet,c=d&&a?a(d.relationshipId):null,u=d&&c?{picture:{ownerPartName:c.ownerPartName,relationshipId:d.relationshipId,box:{x:s,y:n.box.y+n.baseline-d.height,width:d.width,height:d.height},resource:c.resource}}:{},f={x:s,y:l.y,width:l.width,height:l.height},p=o!==void 0&&!("picture"in u)?th(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,...p?{pieces:p}:{}}}var MN=new WeakMap;function C6(e,t){let n=tg(e.markRunProperties);if(n.length===0)return rr;let r=t.styleCascade?.themeFonts,o=MN.get(n);if(o&&o.theme===r)return o.style;let a=je(n,r);return MN.set(n,{theme:r,style:a}),a}function BN(e,t,n){if(e.hideEndMark)return null;let r=e.blocks.at(-1);if(r?.kind!=="paragraph")return null;let o=uc(r,t,n.styleCascade,n.listItems?.get(r.id),e.styleFormatting,n.paragraphLineUnitPt),a=C6(o,n);if(a.hidden||n.measurer.hasResolvedFont?.(a)===false)return null;let i=n.measurer.lineMetrics(a);return {linePt:ya(o.lineSpacing,i.height,i.baseline).height,spacing:o.spacing}}function I6(e,t,n){return BN(e,t,n)?.linePt??0}function M6(e,t,n){let r=BN(e,t,n);return r===null?0:Math.max(0,r.spacing.before)+r.linePt+Math.max(0,r.spacing.after)}function ly(e,t,n,r){return !e.vMergeContinue&&!r.vertical?{markFloor:I6(e,t,n),continuation:0}:{markFloor:0,continuation:r.markSizedRow?M6(e,t,n):0}}function sy(e,t,n){return e+t+n}function dy(e,t,n,r){return e-t-n-r}function cy(e,t){return e==="center"?t/2:t}var LN=new WeakMap,B6=1;function ja(e){if(e===void 0)return 0;let t=LN.get(e);return t===void 0&&LN.set(e,t=B6++),t}var AN=new WeakMap,L6=new Set(["kind","id","paragraphEnd","paragraphId","fragmentIndex","range","props","styleId","outlineLevel","alignment","spacing","indent","tabStops","lines","emptyParagraphStyle","paragraphMarkSizePt","box"]);function E6(e,t){return e.spans.length>0?vx(e,t):!Up(e)&&e.width+Math.max(0,e.firstLineOffset??0)<=t+Tx}function NN(e,t,n,r,o,a,i,l,s){let d=n[0],c=e.lines[0];l===void 0||!i.cache||n.length!==1||!d||!c||e.lines.length!==1||!DN(c,d)||WP(e)&&(Gi.add(e),AN.set(e.range,{key:l,paragraph:t,inputs:r,properties:o,parts:a,measurer:ja(i.measurer),styleCascade:ja(i.styleCascade),compatibilityMode:i.compatibilityMode,displayMode:i.displayMode,revisionAuthorFilter:ja(i.revisionAuthorFilter),vertical:s}));}function DN(e,t){return e.range.start===t.start&&e.range.end===t.end&&e.box.height===t.height&&!Up(t)}function A6(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===o)continue;if(r.localName!==o.localName)return false;let a=r.attributes,i=o.attributes;if(a===i)continue;if(!a||!i)return false;let l=Object.keys(a);if(l.length!==Object.keys(i).length)return false;for(let s of l)if(a[s]!==i[s])return false}return true}function N6(e,t){if(e===t)return true;let n=0;for(let r in e)if(n+=1,r!=="available"&&e[r]!==t[r])return false;for(let r in t)n-=1;return n===0}function WP(e){if(Gi.has(e))return true;for(let t in e)if(!L6.has(t))return false;return true}var Gi=new WeakSet;function _N(e,t){return Gi.has(e)&&WP(t)&&Gi.add(t),t}function pc(e,t){let n={...e,lines:t};return Gi.has(e)&&Gi.add(n),n}var EN=new WeakMap;function HN(e){let t=EN.get(e);return t||(t={lefts:e.map((n,r)=>$r(e,0,r)),widths:e.map((n,r)=>$r(e,r,r+1)),total:$r(e,0,e.length)},EN.set(e,t)),t}var D6=[];function _6(e,t,n){let r=jN(e,t,n,void 0);return r&&{...t,blocks:[r.block],box:{...t.box,x:r.x,width:r.width}}}function jN(e,t,n,r){let{deps:o,cache:a,cols:i,geometry:l}=n,s=e.blocks[0],d=t.blocks[0];if(e.blocks.length!==1||t.blocks.length!==1||s?.kind!=="paragraph"||d?.kind!=="paragraph"||d.paragraphId!==s.id||o.listItems?.has(s.id)||(!WP(d)))return null;let c=AN.get(d.range);if(!c||c.paragraph!==s||c.measurer!==n.measurer||c.styleCascade!==n.styleCascade||c.compatibilityMode!==o.compatibilityMode||c.displayMode!==o.displayMode||c.revisionAuthorFilter!==n.revisionAuthorFilter)return null;let{gridColumn:u,gridSpan:f}=e,p=f===1&&u<i.length,g=n.left+(p?l.lefts[u]:$r(i,0,u)),m=Math.max((p?l.widths[u]:$r(i,u,Math.min(u+f,i.length)))||l.total,zP),h=o.cellContentInsets?.get(e.id)??ho(e,true),y=Ah(false,g,m,r??0,Number.POSITIVE_INFINITY,h),{flowLeft:b,flowRight:x}=y,R=Math.max(1,x-b),P=pN(s,o.styleCascade,void 0,e.styleFormatting,o.paragraphLineUnitPt)??uc(s,R,o.styleCascade,void 0,e.styleFormatting,o.paragraphLineUnitPt);if(!N6(P,c.inputs))return null;let{indent:S}=P,w=DP(P,R),F=o.hostedStory?.hostedListTokenForParagraph?.(s)??"",T=o.refFields?.tokenForParagraph(s.id)??"",{tabStops:v,properties:C}=gN(s,P,o.defaultTabStopPt,void 0,F,T)??ny(s,P,o.defaultTabStopPt,{listToken:void 0,hostedListToken:F,refToken:T});if(!vN(s,o,c.parts.inTableCell,c.parts.cellEndMark,xx(o,s.id),c.parts)||!A6(C,c.properties))return null;let I=a.get(c.key),O=d.lines[0],k=I?.length===1?I[0]:void 0;if(!k||!DN(O,k)||!E6(k,w))return null;let E=Lf(void 0,S,o.measurer,v,w,false),M=b+S.left+E,A=Math.max(1,w-E),N=O.box.y;if(r!==void 0){let{appliedBefore:z,topExtent:Y}=c.vertical,U=sy(y.contentTop,z,Y);N=U+Mf(k,U,D6);}let L=ay(k,s.id,b,N,[],M,A,true,{measurer:o.measurer,styleCascade:o.styleCascade,props:P.props,alignment:P.alignment,rtl:false,inTableCell:c.parts.inTableCell}),D=L.spans;if(D.length!==O.spans.length)return null;for(let z=0;z<D.length;z+=1)if(D[z].box.y!==(r===void 0?O.spans[z].box.y:N))return null;let H={...O,spans:D,contentX:Ii(D,[],M+L.offset),box:r===void 0?{...O.box,x:b+S.left,width:w}:{...O.box,x:b+S.left,y:N,width:w}},$=N+k.height+c.vertical.appliedAfter,G={...d,lines:[H],box:r===void 0?{...d.box,x:b+S.left,width:w}:{...d.box,x:b+S.left,y:y.contentTop,width:w,height:$-y.contentTop}};return Gi.add(G),o.onCellBreakKey?.(c.key),{block:G,x:g,width:m,insets:h,flowWidth:x-b,contentTop:r===void 0?Number.NaN:y.contentTop,contentBottom:r===void 0?Number.NaN:$}}function my(e,t,n,r,o){if(e.isHeader||t.isHeaderRepeat||t.isContinuation||t.hasContinuation||e.cells.length!==t.cells.length||!o.cache)return null;let a=HN(n),i={deps:o,cache:o.cache,measurer:ja(o.measurer),styleCascade:ja(o.styleCascade),revisionAuthorFilter:ja(o.revisionAuthorFilter),cols:n,geometry:a,left:r},l=[];for(let s=0;s<e.cells.length;s+=1){let d=e.cells[s],c=t.cells[s];if(d.id!==c.id||d.vMergeContinue||d.textDirection!=="horizontal"||c.rowSpan!==1||c.paintInert)return null;let u=_6(d,c,i);if(!u)return null;l.push(u);}return {...t,cells:l,box:{...t.box,x:r,width:a.total}}}function ls(e){return null}function WN(e,t,n,r,o,a){if(e.isHeader||t.isHeaderRepeat||t.isContinuation||t.hasContinuation||e.cells.length===0||e.cells.length!==t.cells.length||!a.cache)return ls();if(e.height.rule==="exact")return ls();let i=HN(n),l={deps:a,cache:a.cache,measurer:ja(a.measurer),styleCascade:ja(a.styleCascade),revisionAuthorFilter:ja(a.revisionAuthorFilter),cols:n,geometry:i,left:r},s=[],d=[],c=o;for(let m=0;m<e.cells.length;m+=1){let h=e.cells[m],y=t.cells[m];if(h.id!==y.id||h.vMergeContinue||h.textDirection!=="horizontal"||y.rowSpan!==1||y.paintInert)return ls();let b=jN(h,y,l,o);if(!b)return ls();let{markFloor:x}=ly(h,b.flowWidth,a,{vertical:false,markSizedRow:false}),R=b.block.box.height>0?x:0,P=Math.min(Number.POSITIVE_INFINITY,Math.max(o+R,b.contentBottom+b.insets.bottom));P>c&&(c=P),s.push({cell:h,moved:b}),d.push(P);}c=Math.min(Number.POSITIVE_INFINITY,Math.max(c,o));for(let m of d)m>c&&m<=Number.POSITIVE_INFINITY+.001&&(c=m);if(c<=o+.001)return ls();c=Math.min(Number.POSITIVE_INFINITY,c);let u=e.height.rule==="atLeast"?Hi(e.height.valuePt,s.map(m=>({cell:m.cell,insets:m.moved.insets})),a.cellMinimumContentInsets):0,f=o+Math.max(u,0);f>c&&f<=Number.POSITIVE_INFINITY+.001&&(c=f),c=Math.min(Number.POSITIVE_INFINITY,c);let p=Math.max(0,c-o),g=s.map(({cell:m,moved:h},y)=>{let b=[h.block];if(m.vAlign!=="top"){let P=h.contentBottom-h.contentTop,S=dy(p,h.insets.top,h.insets.bottom,P);S>0&&(b=ss(b,cy(m.vAlign,S)));}let{borders:x,...R}=t.cells[y];return {...R,blocks:b,box:{x:h.x,y:o,width:h.width,height:p}}});return {record:{...t,cells:g,box:{x:r,y:o,width:i.total,height:p}},bottom:c}}function zN(e,t,n){let r=ss([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 s of l.cells)o(s.blocks);};for(let a of e.rows)for(let i of a.cells)o(i.blocks);return r}function ss(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:ss(o.blocks,t)}))}))}:_N(n,{...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=>pr(o,0,t))}:{}}))}))}function Ur(e,t,n,r,o,a,i,l,s,d){if(e.length===0)return [];let c=new Map;for(let x of n)for(let R of x.cells)c.set(R.id,R);let u=_i(e,a,o,{pageFragment:true}),f=x=>d?.has(x)===true&&x.cells.every(R=>!R.vMergeContinue&&R.rowSpan===1&&(u.get(R.id)??1)===1),p=e.map((x,R)=>f(x)?x:{...x,cells:x.cells.map(P=>{let S=u.get(P.id);if(P.vMergeContinue&&S===void 0)return {...P,paintInert:true,rowSpan:1,borders:{},blocks:[]};let w=P.vMergeContinue,F=S??1,T=P.box.height;if(F>1){let O=e[R+F-1];T=O.box.y+O.box.height-P.box.y;}let v=c.get(P.id),C=F>1&&AE(P.blocks,T)||P.blocks;if(v&&v.vAlign!=="top"&&C.length>0){let O=s?.get(x)?.get(P.id)??ho(v,t.cellSpacingPt===0),k=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(let M of C)k=Math.min(k,M.box.y),E=Math.max(E,M.box.y+M.box.height);if(Number.isFinite(k)&&Number.isFinite(E)){let M=v.textDirection==="btLr",A=(M?P.box.width-O.left-O.right:T-O.top-O.bottom)-(E-k),L=P.box.y+(M?O.left:O.top)+(A>0?v.vAlign==="center"?A/2:A:0)-k;if(Math.abs(L)>.001){C=ss(C,L);for(let D of C)D.kind==="paragraph"&&i?.(D.paragraphId,L);}}}let I=Object.freeze({x:P.box.x,y:P.box.y,width:P.box.width,height:T});if(v&&l&&(F>1||v.vAlign!=="top"&&C.length>0)){let O=s?.get(x)?.get(P.id)??ho(v,t.cellSpacingPt===0),k={...I,x:I.x+O.left,width:Math.max(1,I.width-O.left-O.right)};wN(C,v.blocks,I,l,k);}return {...P,...w?{vMergeContinue:false,paintInert:false}:{},rowSpan:F,blocks:C,box:{...P.box,height:T}}})}),g=p.map(x=>x.cells.map(R=>{let P=c.get(R.id);return {gridColumn:R.gridColumn,gridSpan:R.gridSpan,vMergeContinue:R.vMergeContinue,borders:P?.borders??{top:{state:"omitted"},left:{state:"omitted"},bottom:{state:"omitted"},right:{state:"omitted"}},mergeRowSpan:R.rowSpan??1,...P?.rowTableBorders?{rowTableBorders:P.rowTableBorders}:{}}})),m=t.columnWidthsPt.length,h=t.tableBorders,y={collapsedHorizontal:t.cellSpacingPt===0,columnWidthsPt:t.columnWidthsPt,rowBands:p.map(x=>({y:x.box.y,height:x.box.height})),cellBoxes:p.map((x,R)=>x.cells.map(P=>{let S=c.get(P.id),w=S&&(s?.get(e[R])?.get(P.id)??ho(S,t.cellSpacingPt===0)),F=S&&w?w.bottom>=gL(S,(S.rowTableBorders??t.tableBorders).bottom)-.001:false;return {width:P.box.width,height:P.box.height,outerBottomInsetReserved:F,centeredSideRules:S?.centeredSideRules===true&&t.cellSpacingPt===0,centeredSidePaint:S?.centeredSidePaint===true&&t.cellSpacingPt===0}}))},b=Yd(g,h,m,y,void 0,r);return p.map((x,R)=>({...x,cells:x.cells.map((P,S)=>{let w=b[R][S];return P.paintInert||P.vMergeContinue?{...P,borders:{},paintInert:true}:{...P,borders:w}})}))}function Ef(e){return {...e,hasContinuation:true}}function Zo(e){return e.isContinuation===true&&e.box.height<=0}function GN(e,t){if(!e||!Zo(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 H6(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function j6(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 Wa(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??H6(t),rows:e.rows.map(o=>j6(o,r))}}var VN=new WeakMap,KN=new WeakMap;function W6(e){let t=KN.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.logicalGridColumn!==void 0||o.vMergeContinue||(o.rowSpan??1)>1)&&n.add(r.table.tableId);return KN.set(e,n),n}var gc=4,GP=6,$N=14,z6={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function VP(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 s of l.cells)VP(s.blocks,t,n,i+1,o);}}}function Qye(e){let t=VN.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=>{Zo(l.row)||n.push(l);};VP(a.fragments,o,a.contentBox,0,i);for(let l of [a.header,a.footer])l&&VP(l.fragments,o,l.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return VN.set(e,r),r}function ebe(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 tbe(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 nbe(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=Af(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 Af(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function G6(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,l=n-i.x-o,s=r-i.y,d=t.table,c=l-d.box.x,u=s-d.box.y;return c<-gc||u<-$N||c>d.box.width+gc||u>d.box.height+GP?null:{x:c,y:u}}function V6(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(s=>Math.abs(n-s)<=gc)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=gc)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||W6(e).has(o.tableId))return null;for(let s=1;s<o.columnEdges.length-1;s+=1){let d=o.columnEdges[s];if(Math.abs(n-d)>gc)continue;let c=Af(t.row,s-1),u=Af(t.row,s);if(!(!c||!u))return {kind:"columnDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:d,sheetY:t.pageContentBox.y+o.box.y+r}}let l=o.columnEdges.at(-1);if(Math.abs(n-l)<=gc){let s=o.columnEdges.length-2,d=Af(t.row,s);return !d||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:d,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:l,sheetY:t.pageContentBox.y+o.box.y+r}}return null}function rbe(e,t,n,r,o=0,a){let i=a??Dh(r,n),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let p=z6[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=G6(r,f,t,n,l);if(!p||(u(V6(e,f,p.x,p.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let g=f.row.box.y-f.table.box.y;p.x<=GP&&Math.abs(p.y-(g+f.row.box.height/2))<=f.row.box.height/2+GP&&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 m=0;m<f.table.columnEdges.length-1;m+=1){let h=f.table.columnEdges[m],y=f.table.columnEdges[m+1],b=(h+y)/2;if(Math.abs(p.x-b)>(y-h)/2+2||p.y>$N)continue;let x=Af(f.row,m);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 s}function Lt(e){return e.cells.map(KP)}function KP(){return {blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}}function UN(e,t,n,r){return {blockIndex:e,lineIndex:t.nextLineIndex,startOffset:t.nextStartOffset,...t.heldBreak?{heldBreak:t.heldBreak}:{},previousSpaceAfter:0,paragraphFragmentIndex:n+1,precededByEmittedTable:r}}function YN(e,t,n){return e.heldBreak&&t===e.blockIndex&&n!==void 0?{heldBreak:e.heldBreak}:{}}function XN(e,t,n,r){return e?.aloneOnPage===true&&t.rowAtPageStart===true&&n===0&&r===0}function ZN(e,t,n,r,o,a,i=Number.POSITIVE_INFINITY,l,s=false){if(o>=eP)return null;let d=Math.max(1,n-t),c=nn(e,d,o-(a.tableNestingOffset??0),a.styleCascade,a.displayMode,a.revisionAuthorFilter,a.compatibilityMode,An(a),a.textBoxStory===true&&o===(a.tableNestingOffset??0));if(!c||c.rows.length===0)return null;let u=l?.nextRowIndex??0,f=l?.fragmentIndex??0,p=Number.isFinite(i),g=!l&&c.rows.some(k=>k.isHeader||k.cells.some(E=>E.vMergeContinue)),m=0,h={...Zt(a),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-nested-${m++}`},y=[],b={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,rowAtPageStart:false,deferAnchoredDrawings:k=>{y.push(k);}},x=t+_a(c,d),R=[],P=[],S=new Map,w=r,F=u,T,v=k=>{R.length=0,P.length=0,S.clear(),y.length=0,w=r,F=u,T=void 0;let E=zi(c,x,o,b,void 0,M=>M.id===c.rows[u]?.id);for(let M=u;M<c.rows.length;M++){let A=c.rows[M],N=M===u?rt(c,A,b):b,L=M===u?rt(c,A,h):h,D=M===u?l?.rowCursors:void 0;if(p&&!k){let $=D?Number.POSITIVE_INFINITY:Nn(A,c.columnWidthsPt,x,o,L,c.cellSpacingPt,void 0,w);if(w+$>i+.001){if(A.cantSplit&&!D&&(R.length>0||!s))break;let G=y.length,z=bn(A,c.columnWidthsPt,x,w,i,false,D!==void 0,o,{...N,rowAtPageStart:s&&R.length===0},D??Lt(A),c.cellSpacingPt);if(!z.fitted||z.bottom>i+.001){y.length=G;break}let Y=z.remainder!==null,U=Y?Ef(z.record):z.record;if(R.push(U),P.push(D||Y?{...A}:A),N.cellContentInsets&&S.set(U,N.cellContentInsets),w=z.bottom,Y){F=M,T=z.remainder;break}F=M+1;continue}}let H=y.length,W=qN(A,c,x,w,o,N,false,RN(E,M,w),()=>(y.length=H,E?.withdrawAt(M),E?.rowOptions(M)));R.push(W.record),P.push(A),N.cellContentInsets&&S.set(W.record,N.cellContentInsets),w=W.bottom,F=M+1;}};if(v(g),g&&p&&s&&w>i+.001&&v(false),R.length===0||w>i+.001)return {fragment:null,bottom:r};F>=c.rows.length&&(w=Math.min(w+nc(c),Math.max(w,i)));let C=Ur(R,c,P,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0,S);for(let k of y)for(let E of C)if(E.cells.some(A=>A.blocks.some(N=>N.kind==="paragraph"&&N.paragraphId===k.paragraphId))){HP([k],E.cells,E.box.y,E.box.height,a);break}let I=c.columnWidthsPt.reduce((k,E)=>k+E,0),O=new Map(c.rows.map((k,E)=>[k.id,E]));return {...F<c.rows.length?{remainder:{nextRowIndex:F,fragmentIndex:f+1,...T?{rowCursors:T}:{}}}:{},fragment:Wa({kind:"table",id:`${e.id}#f${f}`,tableId:e.id,fragmentIndex:f,rows:C,box:{x,y:r,width:I,height:w-r}},c.columnWidthsPt,o,O),bottom:w}}function py(e,t,n,r=false){let o=!e.some(i=>i.spans.length>0);if(!o&&!r)return {};let a=$P(t,n);return {...o?{emptyParagraphStyle:a}:{},...r?{paragraphMarkSizePt:a.fontSizePt}:{}}}var JN=new WeakMap;function $P(e,t){if(e.length===0)return rr;let n=JN.get(e);if(n&&n.themeFonts===t)return n.style;let r=je(e,t);return JN.set(e,{themeFonts:t,style:r}),r}function QN(e,t,n,r,o){return e>t+.001?o?.clipOverflow===true&&!r&&n<t-.001:true}function e1(e,t,n,r,o,a){return !e&&t!==void 0&&!n&&!r&&o+t<=a+.001}var t1=new WeakMap;function UP(e,t){if(!t)return false;let n=t1.get(t);n||(n=new WeakMap,t1.set(t,n));let r=n.get(e);if(r===void 0){let o=at(e,t);r=o.some(a=>a.projection.wrap==="topAndBottom")||o.length>0&&cO(e),n.set(e,r);}return r}var K6=Object.freeze({anchorsTopAndBottom:false,ownBandPageFramed:false,ownBandPageFramedHorizontally:false}),$6=new Set(["column","character"]),n1=new WeakMap;function o1(e,t){if(!t||!UP(e,t))return K6;let n=n1.get(t);n||(n=new WeakMap,n1.set(t,n));let r=n.get(e);if(r===void 0){let o=at(e,t),a=o.some(l=>{if(l.projection.anchor?.simplePos)return true;let s=l.projection.position?.vertical;return !!s&&ig(s.relativeFrom)}),i=o.some(l=>{if(l.projection.anchor?.simplePos)return true;let s=l.projection.position?.horizontal;return !!s&&!$6.has(s.relativeFrom)});r=Object.freeze({anchorsTopAndBottom:true,ownBandPageFramed:a,ownBandPageFramedHorizontally:i}),n.set(e,r);}return r}var r1=new WeakMap;function a1(e,t){if(!t)return false;let n=r1.get(t);n||(n=new WeakMap,r1.set(t,n));let r=n.get(e);return r===void 0&&(r=at(e,t).length>0,n.set(e,r)),r}function i1(e,t,n){if(!t||n.breakClearance)return false;let r=Tn(e),o=at(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,s)=>Math.min(l,s),1/0);return n.end<=i?true:a.some(l=>l>=n.start&&l<n.end)&&n.end<=i+1&&!o.some(l=>{let s=r.get(l.atomId);return l.projection.wrap==="topAndBottom"&&s!==void 0&&s>=n.start&&s<n.end})}function l1(e){let{pageZones:t,brokenLines:n,lineIndex:r,fragmentFirstLine:o,appliedSkipByLineIndex:a}=e;if(r<=o)return t;let i=Tn(e.paragraph),l=new Map,s=0;for(let d=o;d<r;d++){let c=n[d];for(let u of i.values())u>=c.start&&u<c.end&&l.set(u,s);s+=(a.get(d)??c.exclusionSkipBefore??0)+c.height;}return l.size===0?t:Object.freeze([...t,...sg({...e,anchorLineTopByModelStart:l})])}function s1(e,t){if(e.length===0)return e;let n=t.paragraphOrderIndex,o=(n?lO(e,n(t.paragraphId)??Number.MAX_SAFE_INTEGER,n):e).filter(a=>a.anchorParagraphId===t.paragraphId||a.verticalBand.y+a.verticalBand.height>t.top+.001&&Wg(a,t.originX+t.linesLeft,t.originX+t.linesRight));return Ri(o,t.originX,0,{left:0,right:t.width})}function d1(e){let t=()=>e.zones.length===0&&!a1(e.paragraph,e.inlineDrawingLayout),{held:n,continuedAfter:r}=e;if(n&&r!==void 0&&n.key===e.heldKey()&&t()){let i=r-n.base;if(i>0&&n.lines[i]?.start===e.startOffset)return {lines:n.lines,lineStart:i,priorLineCount:n.base,carry:()=>n}}let o=e.breakRemainder(),a=r??0;return {lines:o,lineStart:r!==void 0?0:e.legacyLineStart,priorLineCount:a,carry:()=>t()?{key:e.heldKey(),lines:o,base:a}:void 0}}function c1(e,t){return !t.inTableCell||!t.last?false:(t.afterEmittedTable||t.hideEndMark&&t.afterPlacedContent)&&FB(e)}function u1(e,t,n,r){if(!n&&!r)return e;let o=ap(t),a=n&&o.before,i=r&&o.after;return !a&&!i?e:{before:a?0:e.before,after:i?0:e.after}}var f1=new WeakMap;function Nf(e){let t=PT(e.borders);if(t==="")return "";let n=_d(e.indent,it(e.props)),{left:r,right:o}=e.indent;return `${t}@${r-n.left},${o-n.right}`}function m1(e,t,n){f1.set(e,{styleCascade:t.styleCascade,tableCellStyle:t.tableCellStyle,listItem:t.listItems?.get(e.id),key:n});}function U6(e,t){let n=t.listItems?.get(e.id),r=f1.get(e);if(r&&r.styleCascade===t.styleCascade&&r.tableCellStyle===t.tableCellStyle&&r.listItem===n)return r.key;let o=Nf(Xn(e,1,t.styleCascade,n,t.tableCellStyle,true));return m1(e,t,o),o}function Y6(e,t){return e&&e.kind==="paragraph"?U6(e,t):""}function p1(e,t,n,r){m1(e,n,t);let o=a=>t!==""&&Y6(a,n)===t;return {continuesAbove:o(r?.previous),continuesBelow:o(r?.next)}}var X6=Object.freeze({});function gy(e,t){return e?t?{inlineDrawingLayout:e,layoutTextboxStory:t.layoutTextboxStoryFor}:{inlineDrawingLayout:e}:X6}var g1=chunkPWTRJSES_cjs.tb();function YP(e,t,n,r,o,a){let i=[t,n?.cacheToken??"",r,o?.cacheKey??"",a??""].join("|"),l=(u,f)=>{let p=nn(u,t,0,n,r,o,a);if(p)for(let g of p.rows)for(let m of g.cells)for(let h of m.blocks)h.localName==="p"?f.push(h.id):h.localName==="tbl"&&l(h,f);},s=new Map,d=0,c=u=>{let f=g1.get(u);if(f?.key!==i){let p=[];l(u,p),g1.set(u,f={key:i,ids:p},p.length);}for(let p of f.ids)s.set(p,d++);};for(let u of e)u.kind==="paragraph"&&u.paragraph?s.set(u.paragraph.id,d++):u.kind==="table"&&u.table&&c(u.table);return s}var XP=4096,zP=1,fn=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function Z6(e,t,n,r,o,a,i){let l=e.id,s=o.cache?.keyFor?.bind(o.cache)??Xh,d=o.listItems?.get(l),c=gT(uc(e,n,o.styleCascade,d,i?.tableCellStyle,o.paragraphLineUnitPt),o.snapsStoryLines&&i?.inTableCell===false?o.paragraphLineUnitPt:void 0),{props:u,indent:f,available:p,alignment:g,styleId:m,outlineLevel:h,spacing:y,bottomBorder:b,borders:x,shading:R}=c,P=u1(y,u,i?.firstInCell===true,i?.lastInCell===true),S=hN(P,c.contextualSpacing,m,yN(e,i?.borderNeighbours),o.styleCascade,i?.tableCellStyle),w=it(u),{continuesAbove:F,continuesBelow:T}=p1(e,Nf(c),{styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},i?.borderNeighbours),v=F?void 0:x.top,C=T?x.between:b,{tabStops:I,properties:O}=ny(e,c,o.defaultTabStopPt,{listToken:d&&dc(d),hostedListToken:o.hostedStory?.hostedListTokenForParagraph?.(e)??"",refToken:o.refFields?.tokenForParagraph(l)??""}),k=i?.startOffset??0,E=k===0&&(i?.lineStart??0)===0,M=k===0?Lf(d,f,o.measurer,I,p,w):0,A=Cl(i?.inTableCell,o,l),N=A.anchorsWrapText&&o.pageExclusionZones?.()||[],L=f.left+p+f.right,D=s1(N,{paragraphOrderIndex:o.paragraphOrderIndex,originX:t,width:L,paragraphId:l,top:r,linesLeft:f.left+Math.min(0,M),linesRight:L-f.right}),H=sr(D),W=AP(H,r),$=TN(e,o,i?.inTableCell===true,i?.cellEndMark===true,A.rowsClearOutOfCellFloats),G=(Ve,De=true)=>s({...FN(e,O,p,$,Ve),...De&&W?{exclusionToken:W}:{}}),z,Y=()=>{let Ve=z=G(k);return o.cache&&o.onCellBreakKey?.(Ve),ty(o.cache,o.cache?Ve:null,()=>({compatibilityMode:o.compatibilityMode,paragraph:e,paragraphId:l,indentLeft:f.left,available:p,measurer:o.measurer,formatting:c,producer:o.producer,styleCascade:o.styleCascade,tabStops:I,...o.pageContext?{pageContext:o.pageContext}:{},flow:{firstLineOffset:M,...k===0?jP(d,o.measurer):{},startOffset:k,marginExtent:{left:0,right:L},...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(De=>De.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}:{},...gy(o.inlineDrawingLayout,o.hostedStory),contentLeft:0,contentRight:L,paragraphStartY:r,...Uv(L,p,A),...D.length>0?{pageExclusionZones:D}:{}}}),()=>o.cache&&!w&&k===0&&D.length===0&&!d?sF(o.cache,e,Ve,p):void 0)},U=d1({paragraph:e,startOffset:k,continuedAfter:i?.startOffset!==void 0?i?.lineStart??0:void 0,legacyLineStart:i?.lineStart??0,held:i?.heldBreak,zones:D,inlineDrawingLayout:o.inlineDrawingLayout,heldKey:()=>G(0,false),breakRemainder:Y}),{lines:X,lineStart:q,priorLineCount:V}=U,ie=i?.fragmentIndex??0,K=i?.maxBottom??Number.POSITIVE_INFINITY,J=i?.includeAfter??true,fe=i?.includeBottomBorder??true,ne=()=>d!==void 0||o.displayMode==="all-markup"&&yv(e,"all-markup",o.revisionAuthorFilter),te=X,oe=(i?.collapseHeight??false)&&!ne(),ae=E&&!oe?ui(S.before,a):0,ue=t+f.left,ce=E&&!oe?ba(v):0,B=[],me=sy(r,ae,ce),ge=q,we=false,Ae=[],xe=me;for(let Ve=q;Ve<te.length;Ve+=1){let De=te[Ve],Ge=Ve===te.length-1,Sn=Ge&&fe&&C&&!oe?ba(C):0,ta=Ge&&J&&!oe?S.after:0,Cn=oe?0:Mf(De,xe,D),qe=oe?xe:xe+Cn+De.height+Sn+ta,In=Ge&&!oe?Math.max(qe,i?.cellEndMarkMinBottom??qe):qe;if(!QN(In,K,xe+Cn,oe,i)){XN(i,o,Ae.length,Cn)&&Ae.push(xe);break}Ae.push(xe+Cn),oe||(xe+=Cn+De.height);}let Ne=q+Ae.length;Ne<te.length&&Le(o.compatibilityMode,"tableParagraphWidowControl")&&i?.applyWidowControl!==false&&(Ne=Mi(Ne,q,te.length,{...yt(u),keepLines:!!o.keepLinesOpening&&yt(u).keepLines},i?.aloneOnPage??true));let lt={measurer:o.measurer,styleCascade:o.styleCascade,props:u,alignment:g,rtl:w,inTableCell:i?.inTableCell===true};for(let Ve=q;Ve<Ne;Ve+=1){let De=te[Ve],Ge=Ve===te.length-1;me=Ae[Ve-q];let Sn=t+f.left+(Ve===0&&!w?M:0),ta=Math.max(1,p-(Ve===0?M:0)),Cn=t-(w&&Ve===0?M:0),qe=Object.freeze({x:t,y:r,width:n,height:Math.max(0,K-r)}),In=De.drawings.map(qn=>Object.freeze({...pr(qn,Cn,me),paragraphId:l})),Hn=ay(De,l,Cn,me,In,Sn,ta,Ge,lt),{spans:ye,offset:jn}=Hn,gt=Hn.drawings.map(qn=>os(qn,qe));B.push({id:o.nextLineId(l,De.start,V+Ve),range:{paragraphId:l,start:De.start,end:De.end},spans:ye,...gt.length>0?{drawings:gt}:{},box:{x:t+f.left,y:me,width:p,height:oe?0:De.height},contentX:Ii(ye,gt,Sn+jn),baseline:oe?Math.max(0,Math.min(De.baseline,i?.collapseBandAbove??0)):De.baseline,leading:oe?0:De.leading,trailingSpacing:oe?0:De.trailingSpacing,...De.manualBreakAfter?{manualBreakAfter:true}:{},...De.deletedRanges?{deletedRanges:De.deletedRanges}:{},...De.anchorRevisions?{anchorRevisions:De.anchorRevisions}:{},...De.changeSites?{changeSites:De.changeSites}:{}}),oe||(me+=De.height),ge=Ve+1,we=true;}if(!we)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:V+q,nextStartOffset:k,complete:false,fitted:false};let Be=ge>=te.length,le=B[0].box.y,Se=me,re=[],He,ve=le,$e=Se,Me=x.left?wr(x.left):0,ut=x.right?wr(x.right):0,Je=_d(f,w),wt=ue-Je.left,Ct=ue+p+Je.right,kt=x.left?wt-x.left.spacePt-Me:wt,We=x.right?Ct+x.right.spacePt+ut:Ct,Wt=Math.max(We-kt,0);if(ce>0&&v){let Ve=wr(v),De=le-v.spacePt-Ve;re.push({side:"top",edge:v,box:{x:kt,y:De,width:Wt,height:Ve}}),ve=De;}if(Be&&fe&&C&&!oe){let Ve=wr(C),De=Se+C.spacePt,Ge={x:kt,y:De,width:Wt,height:Ve};T||(He={edge:C,box:Ge}),re.push({side:T?"between":"bottom",edge:C,box:Ge}),$e=De+Ve;}let Dn=Be&&J&&!oe?S.after:0,_n=F&&E?r:ve,Fn=T&&Be?$e+Dn:$e,Jt=Math.max(Fn-_n,0);if(x.left&&re.push({side:"left",edge:x.left,box:{x:kt,y:_n,width:Me,height:Jt}}),x.right&&re.push({side:"right",edge:x.right,box:{x:Ct+x.right.spacePt,y:_n,width:ut,height:Jt}}),x.bar){let Ve=wr(x.bar);re.push({side:"bar",edge:x.bar,box:{x:ue-x.bar.spacePt-Ve,y:le,width:Ve,height:Math.max(Se-le,0)}});}let Tt=$e+Dn,ze=R===void 0?void 0:x.left||x.right?{x:kt,y:ve,width:Wt,height:Math.max($e-ve,0)}:ep(B,ue,p),bt=Be&&o.displayMode==="all-markup"?Mp(e,"all-markup",o.revisionAuthorFilter):null,Io=bt?.revisions??[],rn=bt?.formatRevision??null,Et=o.displayMode??"proposed",On=Be?Id(e,Et,o.revisionAuthorFilter):[],xn=E?iy(d,o.measurer,B[0],t,w?f.left+p+f.right:void 0,o.inlineDrawingLayout?.pictureBulletResource):void 0,Fe=Bi(e),Ze=Fe?Jg(B,zd(Fe,Et,o.revisionAuthorFilter)):B,on=i?.clipOverflow===true&&Tt>K+.001,zt=on?Math.max(r,Math.min(K,Tt)):Tt,Qe={kind:"paragraph",id:`${l}#f${ie}`,...Be?{paragraphEnd:true}:{},paragraphId:l,fragmentIndex:ie,range:{paragraphId:l,start:Ze[0].range.start,end:Ze[Ze.length-1].range.end},props:u,styleId:m,outlineLevel:h,alignment:g,spacing:{before:ae,after:Dn},indent:f,tabStops:I,...He?{bottomBorder:He}:{},...re.length>0?{borders:re}:{},...R===void 0?{}:{shading:R},...ze===void 0?{}:{shadingBox:ze},...xn?{marker:xn}:{},...Bp(Io,rn),...On.length>0?{markChangeSites:On}:{},lines:Ze,...on?{clipToBox:true}:{},...py(Ze,c.markRunProperties,o.styleCascade?.themeFonts,Be),box:{x:on?t:ue,y:r,width:on?n:p,height:zt-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let Ve=Object.freeze({x:t,y:r,width:n,height:Math.max(0,K-r)}),De=Qe.box,Ge={paragraph:e,paragraphId:l,paragraphBox:De,lines:Ze};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...Ge,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(as({paragraph:e,paragraphId:l,paragraphBox:De,lines:Ze,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(De)??De,cellBox:Ve,cellContentBox:Ve,pageClip:o.pageContentClip(),cellAnchorScope:A,measurer:o.measurer,...o.hostedStory?{layoutTextboxStory:o.hostedStory.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}return Be&&E&&!oe&&!D.length&&!w&&!d&&NN(Qe,e,te,c,O,$,o,z,{appliedBefore:ae,topExtent:ce,appliedAfter:Dn}),{fragment:Qe,bottom:zt,spaceAfter:o.styleCascade?.fixedParagraphSpacing?0:Dn,nextLineIndex:V+ge,nextStartOffset:te[ge]?.start??te.at(-1).end,...Be?{}:{heldBreak:U.carry()},complete:Be,fitted:true}}function za(e,t,n,r,o,a){let i=h1(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 h1(e,t,n,r,o,a,i,l,s,d=false,c,u=false,f=true,p=false){let g=[],m=r,h=l.previousSpaceAfter,y=l.blockIndex,b=l.lineIndex,x=l.startOffset,R=l.heldBreak,P=l.nestedTable,S=l.paragraphFragmentIndex,w=false,F=false,T=l.precededByEmittedTable;for(;y<e.length;){let v=e[y];if(v.kind==="table"){b!==0&&(b=0),h=0;let O=ZN(v,t,n,m,a+1,i,o,P,!w&&i.rowAtPageStart===true);if(!O){T=false,y+=1;continue}if(!O.fragment){F=!w;break}if(g.push(O.fragment),m=O.bottom,w=true,T=true,P=O.remainder,P)break;y+=1,b=0,x=void 0;continue}if(v.kind!=="paragraph"){T=false,y+=1,b=0,x=void 0;continue}let C=c1(v,{inTableCell:d,last:y===e.length-1,afterEmittedTable:T,hideEndMark:u,afterPlacedContent:g.length>0}),I=Z6(v,t,Math.max(1,n-t),m,i,h,{inTableCell:d,lineStart:b,startOffset:x,heldBreak:y===l.blockIndex?R:void 0,applyWidowControl:f,aloneOnPage:!w&&i.rowAtPageStart!==false,fragmentIndex:S,maxBottom:o,clipOverflow:p,includeAfter:true,includeBottomBorder:true,firstInCell:y===0,lastInCell:y===e.length-1,cellEndMark:(u||c!==void 0)&&y===e.length-1,hideEndMark:u&&y===e.length-1,cellEndMarkMinBottom:y===e.length-1?c:void 0,collapseHeight:C,collapseBandAbove:m-r,...s?{tableCellStyle:s}:{},borderNeighbours:{previous:y>0?e[y-1]:void 0,next:e[y+1]}});if(!I.fitted||!I.fragment)break;if(g.push(I.fragment),m=I.bottom,w=true,I.complete)h=I.spaceAfter,T=false,y+=1,b=0,x=void 0,S=0;else return {blocks:g,bottom:m,cursor:UN(y,I,S,T),complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:g,bottom:m,cursor:{blockIndex:y,lineIndex:b,startOffset:x,...YN(l,y,x),...P?{nestedTable:P}:{},previousSpaceAfter:h,paragraphFragmentIndex:S,precededByEmittedTable:T},complete:y>=e.length,fitted:w,nestedSplitBlocked:F}}function qt(e,t,n,r,o,a,i,l=0,s,d=Number.POSITIVE_INFINITY){return bn(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,Lt(e),l,s,d)}function bn(e,t,n,r,o,a,i,l,s,d,c=0,u,f=o){let p=u?.detachedSpanHeightPtByCellId,g=$r(t,0,t.length),m=sE(t,c),h=s.measurer.lineMetrics(rr).height,y=e.height,b=y.rule==="exact"?y.valuePt:void 0,x=y.rule==="atLeast"?y.valuePt:void 0,R=b===void 0?$o(c):0,P=[],{rowDeps:S,flushDeferred:w}=kN(s,P),F=a&&s.pageOccurrenceKey?{...S,nextLineId:(W,$,G)=>S.nextLineId(W,$,G,s.pageOccurrenceKey())}:S,T=b===void 0?o:Math.min(o,r+Math.max(0,b)),v=[],C=false,I=false,O=nP,k=e.cells.length>0&&e.cells.every(W=>W.vMergeContinue||O(W)),E=r;for(let W=0;W<e.cells.length;W+=1){let $=e.cells[W],G=d[W]??KP(),{gridSpan:z,gridColumn:Y}=$,U=n+$r(t,0,Y),X=$r(t,Y,Math.min(Y+z,t.length))||g,q=m&&Y<t.length?m:null,V=q?n+q.cellLeft(Y):U,ie=Math.max(q?q.cellWidth(Y,z):X,zP),K=s.cellContentInsets?.get($.id)??tn($,c===0),J=R>0?{...K,top:K.top+R}:K,fe=J.top,ne=p?.get($.id),te=ne!==void 0,oe=te?Math.min(f,r+ne):T,ae=$.textDirection==="btLr",ue=Ah(ae,V,ie,r,oe,J),{flowLeft:ce,flowRight:B,contentTop:me,contentMaxBottom:ge}=ue,{markFloor:we,continuation:Ae}=ly($,B-ce,F,{vertical:ae,markSizedRow:k}),xe=[],Ne=me,lt=G,Be=true,le=false,Se=false,re=(Me,ut=false)=>h1($.blocks,ce,Me,me,ge,l,ut?oy(F):F,G,$.styleFormatting,true,ae?void 0:r+Math.min(we,b??1/0)-J.bottom,$.hideEndMark,!ae&&(te||b===void 0),e1(ae,b,te,$.headsVerticalMerge===true,r,o));if(!$.vMergeContinue&&!O($))if(ge<me-.001)Be=G.blockIndex>=$.blocks.length;else {let Me=re(B);xe=Me.blocks,Ne=Me.bottom,lt=Me.cursor,Be=Me.complete,le=Me.fitted,Se=Me.nestedSplitBlocked,le&&(C=true),Se&&(I=true);}let He=xe.at(-1),ve=Be&&He?.kind==="paragraph"&&He.box.height>0?we:0,$e=Math.min(oe,Math.max(r+ve,$.vMergeContinue||O($)?Ae>0?r+fe+Ae+J.bottom:r:le?Ne+J.bottom:r+fe+h+J.bottom));$e>E&&!te&&(E=$e),v.push({cell:$,x:V,width:ie,gridColumn:Y,blocks:xe,contentTop:me,contentBottom:Ne,physicalBottom:$e,insets:{...J,top:fe},nextCursor:lt,complete:$.vMergeContinue?true:Be,fitted:le,nestedSplitBlocked:Se,...O($)?{flowTo:re}:{}});}E=Math.min(T,Math.max(E,r));for(let W of v){if(p?.has(W.cell.id)===true)continue;let $=W.physicalBottom;$>E&&$<=T+.001&&(E=$);}if(E<=r+.001&&v.some(W=>!W.cell.vMergeContinue&&!W.cell.hideEndMark)){let W=r;for(let $ of v){if($.cell.hideEndMark)continue;let G=r+$.insets.top+h+$.insets.bottom;G>W&&(W=G);}E=Math.min(T,W);}E=Math.min(T,E);let M=false;if(b!==void 0){let W=r+b;W<=o+.001?(E=W,M=true):E=Math.min(o,E);}else {let W=i||x===void 0?0:Hi(x,v,s.cellMinimumContentInsets,R),$=i?0:u?.heightFloorPt??0,G=r+Math.max(W,$);G>E&&G<=o+.001&&v.every(Y=>Y.complete)&&(E=G);}E=Math.min(o,E);let A=Math.max(0,E-r),N=Math.max(0,A-R);BE(v,A)&&k&&(C=true);let L=v.map(W=>{let $=W.blocks,G=M?true:W.complete;if(!W.cell.vMergeContinue&&G&&W.cell.vAlign!=="top"&&$.length>0){let z=W.contentBottom-W.contentTop,Y=W.cell.textDirection==="btLr"?W.width-W.insets.left-W.insets.right-z:dy(A,W.insets.top,W.insets.bottom,z);Y>0&&($=ss($,cy(W.cell.vAlign,Y)));}return {id:W.cell.id,...W.cell.revisionShading?{revisionShading:W.cell.revisionShading,revisionShadingAuthor:W.cell.revisionShadingAuthor}:{},gridColumn:W.gridColumn,...W.cell.logicalGridColumn===void 0?{}:{logicalGridColumn:W.cell.logicalGridColumn},...W.cell.gridColumnId?{gridColumnId:W.cell.gridColumnId}:{},gridSpan:W.cell.gridSpan,vMergeContinue:W.cell.vMergeContinue,...W.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...W.cell.shading===void 0?{}:{shading:W.cell.shading},...W.cell.textDirection==="btLr"?{textDirection:"btLr"}:{},blocks:$,box:{x:W.x,y:r+R,width:W.width,height:N}}}),D=M||v.every(W=>W.complete)?null:v.map(W=>W.nextCursor),H=M||v.every(W=>W.complete);return EE(v,L),w(L,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:L,box:{x:n,y:r,width:g,height:A}},bottom:E,remainder:H?null:D,fitted:C||e.cells.every(W=>W.vMergeContinue)||M,nestedSplitBlocked:I}}function Nn(e,t,n,r,o,a=0,i,l){let s=Xo(o,l!==void 0);return qt(e,t,n,l??0,false,r,s,a,i).record.box.height}function qN(e,t,n,r,o,a,i,l,s){let d=u=>qt(e,t.columnWidthsPt,n,r,i,o,a,t.cellSpacingPt,u),c=d(l);return c.remainder===null||l===void 0?c:d(s())}function Ga(e,t,n,r,o,a,i,l=()=>false){let s=[],d=new Map,c=n;for(let[g,m]of e.rows.entries()){let h=g===0?rt(e,m,i):i,y=qt(m,e.columnWidthsPt,t,c,l(m),a,h,e.cellSpacingPt);s.push(y.record),h.cellContentInsets&&d.set(y.record,h.cellContentInsets),c=y.bottom;}c+=nc(e);let u=Ur(s,e,e.rows,i.borderOwnershipBudget,i.vMergeResolveBudget,void 0,void 0,void 0,d),f=$r(e.columnWidthsPt,0,e.columnWidthsPt.length),p=new Map;return {fragment:Wa({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,p),bottom:c}}var q6=1584,y1=1e4,J6="http://schemas.openxmlformats.org/wordprocessingml/2006/main";function ds(e){let t=chunkPWTRJSES_cjs.nd(e);if(t===null||Math.abs(t)>99999999)return null;let n=t/20;return Math.abs(n)<=q6?n:null}function ZP(e,t){let n=[e],r=0;for(;n.length;){let o=n.pop();if(++r>y1||o.localName==="object")return false;if(o.kind==="drawing"||chunkPWTRJSES_cjs.od(o)||chunkPWTRJSES_cjs.Jd(o)){let a=t?.projectionForAtom?.(o.id)??(o.kind==="drawing"?t?.project(o):void 0);if(a?.kind!=="inline"||a.textboxStory||t?.resourceOf(a).kind!=="ready")return false;continue}if(o.namespaceUri!==J6||["drawing","pict","object","sectPr","footnoteReference","endnoteReference","pageBreakBefore","ins","del","moveFrom","moveTo","pPrChange","rPrChange"].includes(o.localName)||o.localName==="br"&&o.attributes.some(a=>a.localName==="type"&&a.value!=="textWrapping")||r+n.length+o.children.length>y1)return false;for(let a of o.children)a.kind!=="textValue"&&n.push(a);}return true}function qP(e){let t;for(let n of e)n.localName==="framePr"&&(t={...t,...n.attributes});return t}function JP(e){let t=qP(e);if(!t||!["w","h","x","y","xAlign","yAlign","hAnchor","vAnchor"].some(R=>t[R]!==void 0))return null;let n=new Set(["x","y","w","h","hRule","hAnchor","vAnchor","wrap","anchorLock","hSpace","vSpace","dropCap","lines","xAlign","yAlign"]);if(Object.keys(t).some(R=>!n.has(R)))return null;let r=t.wrap??"around";if(!["auto","around","tight","through","none","notBeside"].includes(r))return null;let o=ds(t.hSpace??"0"),a=ds(t.vSpace??"0");if(o===null||a===null||o<0||a<0)return null;let i=t.anchorLock;if(i!==void 0&&!["0","1","true","false","on","off"].includes(i))return null;let l=t.xAlign;if(l!==void 0&&!["left","center","right","inside","outside"].includes(l))return null;let s=t.yAlign;if(s!==void 0&&!["inline","top","center","bottom","inside","outside"].includes(s))return null;let d=t.dropCap;if(d!==void 0&&!["none","drop","margin"].includes(d)||d==="drop"||d==="margin")return null;let c=t.hAnchor??"text",u=t.vAnchor??"text";if(!["page","margin","text"].includes(c)||!["page","margin","text"].includes(u))return null;let f=l?0:ds(t.x??"0"),p=u==="text"?void 0:s,g=p?0:ds(t.y??"0"),m=t.w===void 0?0:ds(t.w);if(f===null||g===null||m===null||m<0||u==="text"&&g<0)return null;let h=t.w===void 0;if(!h&&m<=0)return null;let y=t.hRule??(t.h!==void 0&&ds(t.h)!==0?"atLeast":"auto");if(!["auto","atLeast","exact"].includes(y))return null;let b;if(y!=="auto"){let R=ds(t.h??"0");if(R===null||R<0||y==="exact"&&R===0)return null;b=R;}let x=de(Object.keys(t).sort().map(R=>de([R,t[R]])));return {x:f,y:g,width:m,autoWidth:h,...b===void 0?{}:{height:b},heightRule:y,...l?{xAlign:l}:{},...p?{yAlign:p}:{},anchorLocked:["1","true","on"].includes(i??""),wrap:s==="inline"?"notBeside":r,hSpace:r==="around"||r==="auto"?o:0,vSpace:a,horizontalAnchor:c,verticalAnchor:u,token:x}}function b1(e,t,n,r){let o={...r,height:Math.max(0,r.height)};return {pageNumber:e,page:{x:-t.margin.left,y:-n,width:t.width,height:t.height},margin:{x:0,y:Math.abs(t.margin.top)-n,width:t.width-t.margin.left-t.margin.right,height:t.height-t.margin.top-t.margin.bottom},text:o}}function QP(e,t,n){if(e.dropCap==="margin")return {x:e.dropCapRtl?t.text.x+t.text.width+e.hSpace:t.text.x-n.width-e.hSpace,y:t.text.y};let r=t[e.horizontalAnchor],o=r.width-n.width,a;e.xAlign==="center"?a=r.x+o/2:e.xAlign==="right"?a=r.x+o:e.xAlign==="inside"?a=t.pageNumber%2===1?r.x:r.x+o:e.xAlign==="outside"?a=t.pageNumber%2===1?r.x+o:r.x:a=r.x+e.x;let i=t[e.verticalAnchor],l=i.height-n.height,s;return e.verticalAnchor==="text"||!e.yAlign?s=i.y+e.y:e.yAlign==="center"?s=i.y+l/2:e.yAlign==="bottom"||e.yAlign==="outside"?s=i.y+l:e.yAlign==="inline"?s=t.text.y:s=i.y,{x:a,y:s}}function x1(e,t,n,r){let{x:o,y:a}=QP(t,n,r);return {...Df(e,o,a),outOfFlow:true}}function Df(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=>pr(a,t,n))}:{}}))}}function S1(e,t){let n=0;for(let r of e){if(r.kind!=="paragraph"||!r.positionedFrame)continue;let{box:o,vSpace:a}=r.positionedFrame;o.y-a>=t||o.y+o.height+a<=0||(n=Math.max(n,o.y+o.height+a));}return n}var R1=4096,Q6=24,eq=16,tq=128,nq=1584,rq=new Set(["x","y","w","h","hRule","hAnchor","vAnchor","wrap","hSpace","vSpace","anchorLock"]),oq=new Set(["framePr","pStyle","jc","rPr","pBdr","shd","spacing","ind","contextualSpacing","keepNext","keepLines","widowControl"]),Vi=(e,t)=>e.kind!=="textValue"&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t;function yc(e){let t=[];for(let n of e.children)n.kind!=="textValue"&&t.push(n);return t}function aq(e){let t=[{node:e.root,depth:0}],n=0,r=0;for(;t.length;){let{node:o,depth:a}=t.pop();if(++n>R1||a>Q6)return null;if(o.kind!=="textValue"){if(o.namespaceUri===chunkPWTRJSES_cjs.la&&["ins","del","moveFrom","moveTo","pPrChange","rPrChange"].includes(o.localName)||o.namespaceUri===chunkPWTRJSES_cjs.la&&["fldSimple","fldChar","instrText","delInstrText"].includes(o.localName)||(Vi(o,"framePr")&&r++,n+t.length+o.children.length>R1))return null;for(let i of o.children)t.push({node:i,depth:a+1});}}return r}function hc(e,t){if(e===void 0)return t??null;let n=chunkPWTRJSES_cjs.nd(e);if(n===null||n<0||n>99999)return null;let r=n/20;return r<=nq?r:null}function iq(e){let t=yc(e).filter(g=>Vi(g,"pPr"));if(t.length!==1)return null;let n=yc(t[0]);if(n.some(g=>g.namespaceUri!==chunkPWTRJSES_cjs.la||!oq.has(g.localName)))return null;let r=n.filter(g=>Vi(g,"framePr"));if(r.length!==1)return null;let o=r[0],a=new Map;for(let g of o.attributes){if(g.namespaceUri!==chunkPWTRJSES_cjs.la||!rq.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=hc(a.get("x"),0),l=hc(a.get("y"),0),s=hc(a.get("w")),d=hc(a.get("h"),0),c=hc(a.get("hSpace"),0),u=hc(a.get("vSpace"),0),f=a.get("hRule")??"atLeast";if(i===null||l===null||s===null||s<1||d===null||c===null||u===null||!["auto","atLeast"].includes(f))return null;for(let g of yc(e))if(!Vi(g,"pPr")){if(!Vi(g,"r"))return null;for(let m of yc(g))if(Vi(m,"rPr")){if(yc(m).some(h=>h.localName.endsWith("Change")))return null}else if(!Vi(m,"t")||m.children.some(h=>h.kind!=="textValue"))return null}let p=de([...a.keys()].sort().map(g=>de([g,a.get(g)])));return {x:i,y:l,width:s,height:d,heightRule:f,hSpace:c,vSpace:u,token:p}}function P1(e){if(!Vi(e.root,"hdr"))return null;let t=aq(e);if(t===null||t===0||t>tq)return null;let n=[],r,o=0;for(let a of yc(e.root)){let i=a.kind==="paragraph"?iq(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>=eq)return null;r={...i,paragraphs:[a]},n.push(r);}}return o===t?n:null}var cs=(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 lq(e,t){for(let n of t){if(n.kind!=="paragraph"){if(cs(e,n.box))return true;continue}if(n.props.some(r=>r.localName==="framePr")||n.marker&&cs(e,n.marker.box))return true;for(let r of n.borders??[])if(cs(e,r.box))return true;if(n.shadingBox&&cs(e,n.shadingBox))return true;for(let r of n.lines){for(let o of r.spans)if(o.text.trim()&&cs(e,o.box))return true;for(let o of r.drawings??[])if(cs(e,o.paintBounds))return true}}return false}function sq(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 w1(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=[],s=[];for(let u of e){if(u.paragraphs.some(S=>!i.has(S.id)))return null;let f=r(u.paragraphs,u.width);if(f.blocks.length!==u.paragraphs.length||!Number.isFinite(f.bottom))return null;let p=u.heightRule==="auto"?f.bottom:Math.max(f.bottom,u.height);if(p<0||u.x+u.width>o.pageWidth||u.y+p>o.pageHeight)return null;let g={x:u.x-o.marginLeft,y:u.y-a,width:u.width,height:p},m=l.length;for(let S=0;S<f.blocks.length;S++){let w=f.blocks[S];if(w.kind!=="paragraph"||w.paragraphId!==u.paragraphs[S].id||w.marker||w.props.filter(M=>M.localName==="framePr").length!==1)return null;let T=w.props.find(M=>M.localName==="framePr").attributes??{};if(de(Object.keys(T).sort().map(M=>de([M,T[M]])))!==u.token)return null;let v=S===f.blocks.length-1?sq(w,p-f.bottom):w,C=1.5,I=v.borders?.some(M=>M.side==="left")??false,O=v.borders?.some(M=>M.side==="right")??false,k=M=>({...M,x:M.x-(I?C:0),width:M.width+(I?C:0)+(O?C:0)}),E={...v,...v.bottomBorder?{bottomBorder:{...v.bottomBorder,box:k(v.bottomBorder.box)}}:{},...v.shadingBox?{shadingBox:k(v.shadingBox)}:{},...v.borders?{borders:v.borders.map(M=>({...M,box:M.side==="left"?{...M.box,x:M.box.x-C}:M.side==="right"?{...M.box,x:M.box.x+C}:M.side==="top"||M.side==="bottom"||M.side==="between"?k(M.box):M.box}))}:{}};l.push({...Df(E,g.x,g.y),outOfFlow:true});}let h=g.x,y=g.y,b=g.x+g.width,x=g.y+g.height,R=S=>{h=Math.min(h,S.x),y=Math.min(y,S.y),b=Math.max(b,S.x+S.width),x=Math.max(x,S.y+S.height);};for(let S=m;S<l.length;S++){let w=l[S];R(w.box);for(let F of w.borders??[])R(F.box);w.shadingBox&&R(w.shadingBox);for(let F of w.lines)for(let T of F.spans)R(T.box);}if(![h,y,b,x].every(Number.isFinite)||h+o.marginLeft<0||b+o.marginLeft>o.pageWidth||y+a<0||x+a>o.pageHeight)return null;let P={x:h-u.hSpace,y:y-u.vSpace,width:b-h+2*u.hSpace,height:x-y+2*u.vSpace};if(lq(P,n.blocks)||s.some(S=>cs(S,P)))return null;s.push(P);}let d=n.blocks.concat(l),c=u=>u.kind==="paragraph"?u.paragraphId:u.tableId;return d.some(u=>!i.has(c(u)))?null:(d.sort((u,f)=>i.get(c(u))-i.get(c(f))),{blocks:d,bottom:n.bottom})}function Ki(e){return chunkPWTRJSES_cjs.jf()==="editable"?`${e}|field-results`:e}var k1=new WeakMap;function hy(e,t=new Map){let n=k1.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=chunkYBMWBXST_cjs.y(i),t.set(i,l)),r.push([a,l]);}let o=chunkYBMWBXST_cjs.y(JSON.stringify(r));return k1.set(e,o),o}var yy=new WeakMap;function T1(e,t){yy.set(e,t);}function bc(e){return yy.get(e)?.token??""}function by(e,t,n){return e&&(yy.get(e)?.resolve(t,n)??e.headers.get(t))}function v1(e,t){return e?yy.get(e)?.reserveHeight(t)??0:0}function xy(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 F1(e,t){return xy(e.partBytes,t.partBytes)&&xy(e.relationships,t.relationships)&&(e.contentTypes===t.contentTypes||xy(e.contentTypes.defaults,t.contentTypes.defaults)&&xy(e.contentTypes.overrides,t.contentTypes.overrides))}var dq=new Set(["adjustRightInd","bCs","cnfStyle","p","pPr","r","rPr","t","tab","br","b","i","u","sz","szCs","rFonts","color","lang","spacing","jc","ind","keepNext","keepLines","widowControl","contextualSpacing","pStyle","rStyle","noProof","proofErr","kern","position","vertAlign","caps","smallCaps","strike","dstrike","shd","highlight"]),cq=new WeakMap,uq=new WeakMap,fq=new Set(["numPr","numId","ilvl"]);function O1(e,t){let n=t?uq:cq,r=n.get(e);if(r!==void 0)return r;let o=0,a=(l,s)=>++o>chunkPWTRJSES_cjs.Hd||s>chunkPWTRJSES_cjs.$?false:l.kind==="textValue"?true:l.namespaceUri!==chunkPWTRJSES_cjs.la?false:l.localName==="lastRenderedPageBreak"?l.children.length===0:!dq.has(l.localName)&&!(t&&fq.has(l.localName))?false:l.children.every(d=>a(d,s+1)),i=a(e,0);return n.set(e,i),i}function $i(e){return O1(e,false)}function C1(e){return O1(e,true)}var mq=new Set(["drawing","pict","object"]),I1=new WeakMap;function pq(e){let t=I1.get(e);if(t!==void 0)return t;let n=0,r=(a,i)=>++n>chunkPWTRJSES_cjs.Hd||i>chunkPWTRJSES_cjs.$?false:a.kind==="textValue"?true:a.namespaceUri!==chunkPWTRJSES_cjs.la||mq.has(a.localName)?false:a.children.every(l=>r(l,i+1)),o=r(e,0);return I1.set(e,o),o}function ew(e,t){let n=0,r=a=>a.kind==="paragraph"&&(C1(a)||pq(a)),o=(a,i,l)=>{if(++n>chunkPWTRJSES_cjs.Hd||l>chunkPWTRJSES_cjs.$)return false;if(a===i)return true;if(a.kind==="textValue"||i.kind==="textValue"||a.id!==i.id||a.kind!==i.kind||a.namespaceUri!==chunkPWTRJSES_cjs.la||i.namespaceUri!==a.namespaceUri||a.localName!==i.localName||a.prefix!==i.prefix)return false;if(r(a)&&r(i))return true;if(a.attributes!==i.attributes||a.namespaceBindings!==i.namespaceBindings||["drawing","pict","object"].includes(a.localName))return false;let s=0,d=0;for(;s<a.children.length||d<i.children.length;){let c=a.children[s],u=i.children[d];if(c&&u&&c.id===u.id){if(!(a.localName==="t"&&c.kind==="textValue"&&u.kind==="textValue")&&!o(c,u,l+1))return false;s+=1,d+=1;}else if(c&&r(c))s+=1;else if(u&&r(u))d+=1;else return false}return true};return o(e,t,0)}var tw=new Float64Array(1),Sy=new Uint32Array(tw.buffer);function M1(e){Po[0]=2166136261,Po[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"),nw(i,Po);}let o=n.arrowheadsEmu;if(t.push(String(o?.length??0)),o)for(let a of o)t.push(String(a.length)),nw(a,Po);}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),t.join(","),Po[0].toString(36),Po[1].toString(36)].join(";")}var Po=new Uint32Array(2);function B1(e){return Po[0]=2166136261,Po[1]=268435859,nw(e,Po),`${Po[0].toString(36)}:${Po[1].toString(36)}`}function nw(e,t){let n=t[0],r=t[1];for(let o of e)tw[0]=o.x,n=Math.imul(n^Sy[0],16777619),r=Math.imul(r^Sy[1],16777651),tw[0]=o.y,n=Math.imul(n^Sy[1],16777619),r=Math.imul(r^Sy[0],16777651);t[0]=n,t[1]=r;}var gq="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",L1="/word/numbering.xml",hq=64;function E1(e){let t=0,n=0,r,o=new Map,a=new Set,i=()=>{if(r!==void 0)return r;let d=e.currentPackage(),c=null;for(let u of d.relationships.get(d.mainDocumentPart)??[]){if(u.type!==gq)continue;let f=chunkPWTRJSES_cjs.J(u);if(f.mode!=="Internal"||!f.target.ok)break;d.parts.has(f.target.partName)&&(c=f.target.partName);break}return c===null&&d.parts.has(L1)&&(c=L1),r=c,c},l=(d,c)=>{o.set(d,c),c.kind==="ready"&&e.rememberReadyHandle(c.validatedHandle),a.delete(d),t+=1,e.onResourcesChanged();},s=(d,c)=>{if(a.has(c))return;a.add(c);let u=n;e.lookup().resolveEmbedded(d,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(d){let c=i();if(c===null)return null;let u=o.get(d);if(u)return {ownerPartName:c,resource:u};if(o.size>=hq)return null;let f=Object.freeze({kind:"pending",resourceKey:`picbullet:${c}:${d}`});return o.set(d,f),s(c,d),{ownerPartName:c,resource:f}},epoch:()=>t,pendingCount:()=>a.size,reset(){n+=1,t+=1,r=void 0,o.clear(),a.clear();}})}var yq=Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"non-picture-graphic"});function rw(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 A1=new WeakMap,ow=new Map,bq=16,xq=32;function _1(e,t){let n=A1.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkPWTRJSES_cjs.Jd(e)||chunkPWTRJSES_cjs.od(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:ow,visited:1,deepest:0};else if((t<2||e.children.length>=bq)&&t<xq){let o=null,a=1,i=0;for(let l of e.children){let s=_1(l,t+1);if(a+=s.visited,s.deepest+1>i&&(i=s.deepest+1),s.atoms.size>0){o||(o=new Map);for(let[d,c]of s.atoms)o.set(d,c);}}r={atoms:o??ow,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,l=[{node:e,depth:0}];for(;l.length>0;){let s=l.pop();if(a+=1,a>chunkPWTRJSES_cjs.Hd)break;s.depth>i&&(i=s.depth);let d=s.node;if(d.kind==="drawing"||chunkPWTRJSES_cjs.Jd(d)||chunkPWTRJSES_cjs.od(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)l.push({node:d.children[c],depth:s.depth+1});}r={atoms:o.size>0?o:ow,visited:a,deepest:i};}return A1.set(e,r),r}function iw(e){let t=_1(e.root,0);return t.visited>chunkPWTRJSES_cjs.Hd||t.deepest>chunkPWTRJSES_cjs.Fd.maxDrawingDepth?null:t.atoms}var aw=new WeakMap,Ry=new WeakMap;function H1(e,t){let n=aw.get(e.root),r=n?.get(t);if(r)return Ry.set(t,{part:e,order:r}),r;let o=Ry.get(t);if(o&&ew(o.part.root,e.root))return n||aw.set(e.root,n=new WeakMap),n.set(t,o.order),Ry.set(t,{part:e,order:o.order}),o.order;let a=iw(e),i=new Map,l=0;if(a)for(let s of a.keys()){let d=t.projectionForAtom?.(s)?.drawingNodeId??s;i.set(d,l),l+=1;}else for(let s of chunkPWTRJSES_cjs.Od(e))i.set(s.drawingNodeId,l),l+=1;return n||(n=new WeakMap,aw.set(e.root,n)),n.set(t,i),Ry.set(t,{part:e,order:i}),i}function lw(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:de(e.diagnostics.map(s=>de([s.code,s.nodeId,s.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:de([String(e.extentEmu.cx),String(e.extentEmu.cy)]),effectExtentEmu:de([String(e.effectExtentEmu.top),String(e.effectExtentEmu.right),String(e.effectExtentEmu.bottom),String(e.effectExtentEmu.left)]),inlineDistancesEmu:de([String(e.inlineDistancesEmu.top),String(e.inlineDistancesEmu.right),String(e.inlineDistancesEmu.bottom),String(e.inlineDistancesEmu.left)]),wrap:e.wrap,textboxStory:e.textboxStory?Zh(e.textboxStory):"",groupTextboxes:QA(e.groupTextboxes),compatibilityBranchNodeId:e.compatibilityBranchNodeId??"",footprintOnly:e.footprintOnly?"footprint":"",anchor:n?de([String(n.simplePos),String(n.relativeHeight),String(n.layoutInCell),String(n.allowOverlap),String(n.behindDocument)]):"",locks:de([String(e.locks.select),String(e.locks.move),String(e.locks.resize),String(e.locks.changeAspect)]),effects:de([String(e.effects.grayscale),String(e.effects.brightness),String(e.effects.contrast),String(e.effects.bilevel??"")]),picture:r?de([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?de([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?M1(a):"",wrapGeometry:o?de([o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length),B1(o.polygon)]):"",position:t?de([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 de(Object.values(l))}function _f(e){switch(e.kind){case "ready":return de(["ready",e.resourceKey,e.contentId,`${e.pixelWidth}x${e.pixelHeight}`]);case "pending":return de(["pending",e.resourceKey]);case "external":return de(["external",e.relationshipId,e.sinkSafe?"1":"0"]);case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var Sq=1;function j1(e,t){if(e.kind==="paragraph"){for(let n of W1(e))t.push(n);return}if("children"in e)for(let n of e.children)j1(n,t);}function W1(e){if(e.kind!=="paragraph")return [];let t=[];return Jh(e,n=>t.push(n.id)),Object.freeze(t)}function Rq(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:l}=e,s=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,g=new WeakMap,m=0,h=n,y=chunkPWTRJSES_cjs.Id(r,t),b=chunkPWTRJSES_cjs.Dd(r),x=chunkPWTRJSES_cjs.bd(r),R=chunkPWTRJSES_cjs.Pd(n,{stylesPart:x,resolveRelationship:y,resolveSchemeColor:b.resolveSchemeColor,resolveStyleMatrixReference:b.resolveStyleMatrixReference}),P=iw(n),S=P?Array.from(P.values()).some(O=>O.kind!=="textValue"&&O.localName==="object"):true,w=(O,k)=>{if(s||u.has(k))return;u.add(k);let E=d;o.resolveForProjection(O).then(M=>{s||E!==d||(c.set(k,M),M.kind==="ready"&&i(M.validatedHandle),m+=1,f.set(k,m),u.delete(k),a(t));}).catch(()=>{s||E!==d||(c.set(k,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),m+=1,f.set(k,m),u.delete(k),a(t));});},F=O=>{if(O.footprintOnly)return yq;let k=rw(O),E=c.get(k);if(E)return E;let M=(O.picture??O.groupPicture)?.linkedRelationshipId;if(M){let N=o.resolveLinked(t,M);return c.set(k,N),m+=1,f.set(k,m),N}let A=Object.freeze({kind:"pending",resourceKey:k});return c.set(k,A),m+=1,f.set(k,m),w(O,k),A},T=O=>{let k=R.get(O)??null;if(!k?.groupPicture?.alternateContent)return k;let E=k.groupPicture.linkedRelationshipId?F(k):c.get(rw(k));return E&&E.kind!=="ready"&&E.kind!=="pending"?chunkPWTRJSES_cjs.vd(k):k},v=Object.freeze({ownerPartName:t,projectionForAtom:T,project:O=>T(O.id),resourceOf:F,pictureBulletResource:e.pictureBulletResource}),C=O=>{let k=g.get(O);if(k)return k;let E=W1(O),M=null,A=(L,D)=>{if(!(D>=Sq))for(let H of L){let W=R.get(H);if(!W)continue;let $=[...W.textboxStory?[W.textboxStory.content]:[],...(W.groupTextboxes??[]).map(z=>z.story.content)],G=[];for(let z of $)j1(z,G);if(G.length!==0){M||(M=[...E]);for(let z of G)M.push(z);A(G,D+1);}}};A(E,0);let N=M??E;return g.set(O,N),N};return {context:v,cacheTokenForPart:()=>`${t}|${m}|${d}|${R.size}`,drawingTokenForParagraph:O=>{let k=p.get(O);if(k?.resourceEpoch===m)return k.token;let E=C(O);if(E.length===0)return p.set(O,{resourceEpoch:m,token:""}),"";let M=E.map(N=>Pq(R.get(N)??null,N,F,L=>f.get(rw(L))??0)).sort(),A=de(M);return p.set(O,{resourceEpoch:m,token:A}),A},pendingResourceCount:()=>u.size,isCompatibleWith:(O,k)=>{let E=chunkPWTRJSES_cjs.Dd(k);if(E.cacheToken!==b.cacheToken)return false;if(O===n&&chunkPWTRJSES_cjs.bd(k)===x||chunkPWTRJSES_cjs.bd(k)===x&&ew(h.root,O.root))return h=O,true;let M=iw(O);if(!S&&P&&M&&P.size===M.size){let N=true;for(let[L,D]of P)if(M.get(L)!==D){N=false;break}if(N)return h=O,true}let A=chunkPWTRJSES_cjs.Pd(O,{stylesPart:chunkPWTRJSES_cjs.bd(k),resolveRelationship:chunkPWTRJSES_cjs.Id(k,t),resolveSchemeColor:E.resolveSchemeColor,resolveStyleMatrixReference:E.resolveStyleMatrixReference});if(A.size!==R.size)return false;for(let[N,L]of R){let D=A.get(N);if(!D||lw(D)!==lw(L))return false}return h=O,true},dispose:()=>{s=true,d+=1;for(let O of c.values())O.kind==="ready"&&l(O.validatedHandle);c.clear(),u.clear(),f.clear();}}}var N1=0;function ESe(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkPWTRJSES_cjs.le(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,l=new Map,s=new Map,d=m=>{l.set(m.resourceKey,m);let h=chunkPWTRJSES_cjs.$d(m);h&&s.set(m.resourceKey,h);},c=m=>{l.delete(m.resourceKey);let h=s.get(m.resourceKey);h&&(chunkPWTRJSES_cjs.ae(h),s.delete(m.resourceKey));},u=E1({currentPackage:()=>n,lookup:()=>r,rememberReadyHandle:d,onResourcesChanged:()=>e.onResourcesChanged()}),f=(m,h)=>{let b=h.currentPackage().parts.get(m)??a.get(m);if(b)return b;if(m===h.part().name)return h.part();throw new Error(`Missing inline drawing part ${m}`)},p=(m,h)=>{let y=o.get(m);if(y)return y;let b=f(m,h);a.set(m,b);let x=Rq({ownerPartName:m,part:b,pkg:h.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:d,forgetReadyHandle:c,pictureBulletResource:u.resolve});return o.set(m,x),N1+=1,i.set(x,N1),x},g=m=>{let h=m.currentPackage();if(F1(h,n)){for(let[b,x]of o){let R=h.parts.get(b)??(b===m.part().name?m.part():void 0);if(R&&x.isCompatibleWith(R,h)){a.set(b,R);continue}x.dispose(),o.delete(b),a.delete(b);}t=m.packageRevision(),n=h;return}for(let b of o.values())b.dispose();o.clear(),a.clear();for(let b of s.values())chunkPWTRJSES_cjs.ae(b);s.clear(),l.clear(),u.reset(),e.resourceLookup||r.dispose(),t=m.packageRevision(),n=h,r=e.resourceLookup??chunkPWTRJSES_cjs.le(h,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return p(e.session.part().name,e.session).context},contextForPart(m){return p(m,e.session).context},cacheTokenForPart(m){let h=p(m,e.session);return `${u.epoch()}|${i.get(h)??0}|${h.cacheTokenForPart()}`},drawingTokenForParagraph(m,h){let y=p(h,e.session);return `${u.epoch()}|${i.get(y)??0}|${y.drawingTokenForParagraph(m)}`},pendingResourceCount(){let m=u.pendingCount();for(let h of o.values())m+=h.pendingResourceCount();return m},mintValidatedBytes(m,h){return l.get(m.resourceKey)!==m?null:chunkPWTRJSES_cjs._d(m,h)},sync(m){m.packageRevision()===t&&m.currentPackage()===n||g(m);},dispose(){u.reset();for(let m of o.values())m.dispose();o.clear(),a.clear();for(let m of s.values())chunkPWTRJSES_cjs.ae(m);s.clear(),l.clear(),e.resourceLookup||r.dispose();}})}function Pq(e,t,n,r){if(!e)return de([t,"refused"]);let o=[t,lw(e),_f(n(e))];return r&&o.push(String(r(e))),de(o)}function z1(e,t,n){if(t===void 0)return kq(e,n);let r=D1.get(e);if(r&&r.epoch===t)return r.token;let a=Ha(e,n,{rows:wq,scope:void 0,epoch:t});return D1.set(e,{epoch:t,token:a},a.length>>6),a}var D1=chunkPWTRJSES_cjs.tb(),wq=Of();function kq(e,t){return Ha(e,t)}var Tq=4,Z1=1584,sw=256;function vq(e){return `txbx-${e}`}var G1=1,V1=new WeakMap;function Yr(e){if(e===void 0)return 0;let t=V1.get(e);return t===void 0&&(t=G1,G1+=1,V1.set(e,t)),t}var K1=new WeakMap;function q1(e,t,n,r="all-markup",o){if(!t||t.nums.size===0)return;let a=K1.get(e);if(a&&a.rawIndex===Yr(t)&&a.styleCascade===Yr(n)&&a.displayMode===r&&a.authorFilter===Yr(o))return a.listItems;let i=vg(t,n),l=rR(e,r,o),s=zu(l,i,n),d=s.size>0?s:void 0;return K1.set(e,{rawIndex:Yr(t),styleCascade:Yr(n),displayMode:r,authorFilter:Yr(o),listItems:d}),d}var J1=2e4,dw=Object.freeze({contents:Object.freeze([]),truncated:false}),Hf=new WeakMap;function Fq(e){let t=[],n=0,r=false,o=[e];for(;o.length>0;){let a=o.pop();if(n+=1,n>J1){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}):dw}function Oq(e){let t=Hf.get(e);if(t)return t;if(e.kind!=="table"){let l=Fq(e);return Hf.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"){Hf.has(l.scan.paragraph)||Hf.set(l.scan.paragraph,l.scan.contents.length>0?Object.freeze({contents:Object.freeze(l.scan.contents),truncated:false}):dw);continue}let s=l.node;if(r+=1,r>J1){o=true;break}if(s.kind!=="textValue"&&s.localName==="txbxContent"){n.push(s);for(let c of l.paragraphOwners)c.contents.push(s);continue}if(!("children"in s))continue;let d=l.paragraphOwners;if(s.kind==="paragraph"){let c={paragraph:s,contents:[]};d=Object.freeze([...d,c]),a.push({phase:"exit-paragraph",scan:c});}for(let c=s.children.length-1;c>=0;c-=1)a.push({phase:"enter",node:s.children[c],paragraphOwners:d});}let i=n.length>0||o?Object.freeze({contents:Object.freeze(n),truncated:o}):dw;return Hf.set(e,i),i}var $1=1,U1=new WeakMap;function Cq(e){let t=U1.get(e);return t===void 0&&(t=$1,$1+=1,U1.set(e,t)),t}var Y1=new WeakMap;function Iq(e,t,n,r="all-markup",o){if(t.nums.size===0)return "";let a=Oq(e);if(a.contents.length===0&&!a.truncated)return "";let i=Y1.get(e);if(i&&i.rawIndex===Yr(t)&&i.styleCascade===Yr(n)&&i.displayMode===r&&i.authorFilter===Yr(o))return i.token;let l=[];for(let d of a.contents){let c=q1(d,t,n,r,o);if(c)for(let[u,f]of c)l.push(de([u,f.cacheToken]));}a.truncated&&l.push(`truncated:${Cq(t)}`);let s=l.length===0?"":`|txbxlist:${de(l)}`;return Y1.set(e,{rawIndex:Yr(t),styleCascade:Yr(n),displayMode:r,authorFilter:Yr(o),token:s}),s}function Py(e,t,n,r,o){return Object.freeze({layoutTextboxStoryFor:e,hostedListTokenForParagraph:!t||t.nums.size===0?null:a=>Iq(a,t,n,r,o)})}function wy(e,t){let n=e.textboxStory;if(!n)return null;let r=hr(e.extentEmu.cx),o=hr(e.extentEmu.cy),a=hr(n.strokeWidthEmu),i=n.strokeHex!==null?a/2:0,l=hr(n.insetsEmu.left)+i,s=hr(n.insetsEmu.right)+i,d=hr(n.insetsEmu.top)+i,c=hr(n.insetsEmu.bottom)+i,u=Math.max(1,r-l-s),f=Math.max(0,o-d-c),p={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:a,contentWidth:u,contentHeight:f};if((t.depth??0)>=Tq)return {fragments:[],flowHeight:0,contentOffset:{x:l,y:d},...p,fallbackReason:"textbox-nesting-limit"};let m=rR(n.content,t.displayMode,t.revisionAuthorFilter),h=q1(n.content,t.numberingIndex,t.styleCascade,t.displayMode,t.revisionAuthorFilter),y=vq(e.drawingNodeId),b=0,x=k=>(b=0,za(m,0,k,0,0,{measurer:t.measurer,cache:t.cache,producer:`${Ki(t.producer)}${t.showFieldCodes?"|field-codes":""}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${y}-line-${b++}`,styleCascade:t.styleCascade,...h?{listItems:h}:{},...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,textBoxStory:true,...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}:{}})),R=n.noWrap===true&&e.wrap!=="inline",P=u,S=x(R?Z1:P),w=R?Mq(S.blocks):0;w>0?(P=w,S=x(P)):R&&(S=x(P));let F=S.blocks,T=S.bottom,v,C=[];if(F.length>sw){X1(F.slice(sw),C),F=F.slice(0,sw);let k=F[F.length-1];T=k?k.box.y+k.box.height:0,v="textbox-fragment-limit";}if(T>f+.001){let k=F.filter(E=>E.box.y<f-.001);k.length<F.length&&(X1(F.filter(E=>E.box.y>=f-.001),C),F=k,v=v??"textbox-height-clip");}let I=Math.max(0,f-T),O=n.verticalAnchor==="center"?I/2:n.verticalAnchor==="bottom"?I:0;return {fragments:F,flowHeight:T,contentOffset:{x:l,y:d+O},...p,contentWidth:P,...w>0?{extentWidth:w+l+s}:{},...v?{fallbackReason:v}:{},...C.length>0?{clippedResourceToken:de(C)}:{}}}function Mq(e){let t=0;for(let n of e){if(n.kind!=="paragraph")continue;let{left:r,right:o,firstLine:a,hanging:i}=n.indent,l=i>0?-i:a;n.lines.forEach((s,d)=>{let c=Number.NEGATIVE_INFINITY;for(let m of s.spans)c=Math.max(c,m.box.x+m.box.width);for(let m of s.drawings??[])c=Math.max(c,m.x+m.width);if(!Number.isFinite(c)||c<=s.contentX)return;let u=d===0&&n.fragmentIndex===0,f=r+(u?l:0),p=u?n.marker?.box.x:void 0,g=p===void 0?s.contentX:Math.min(s.contentX,p);t=Math.max(t,f+c-g+o);});}return t>0?Math.min(Z1,t+.01):0}function X1(e,t){Zs({fragments:e},n=>{t.push(_f(n.resource));});}function Q1(e,t,n,r){let o=Le(r,"noteTableCellKeeps");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 s=Bq(l,o);if(s.length===0)continue;i=Math.max(i,s[s.length-1]);let d=l===t?s.find(c=>c>=n-.001):s[0];if(d===void 0)return null;a=Math.max(a,d);}return i>a+.001?a:null}function Bq(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=yt(r.props),i={...a,widowControl:a.widowControl&&t,keepLines:a.keepLines&&t},l=r.lines.length,s=o<e.blocks.length-1;for(let d=1;d<=l;d+=1){if(d<l&&Mi(d,0,l,i,false)!==d||d===l&&s&&i.keepNext)continue;let c=r.lines[d-1];n.push(c.box.y+c.box.height);}}),n}function Ty(e,t,n,r){if(t.floatingWrap||vt(t)||t.nestingDepth!==0)return cw([t],n)?"table":null;let o=0,a=true,i,l;for(let s of t.rows){if(a&&=s.isHeaderRepeat||s.isHeaderRow,a&&(o+=s.box.height),s.isHeaderRepeat)continue;let d=nD(s,n);if(!d){Zo(s)?l=s:[i,l]=[s,void 0];continue}if(s.isHeaderRow||(d.rowSpan??1)>1||ky(s))return "table";let c=Eq(d,s,n);if(c===null)return "table";let u=s.box.y,f=s.isContinuation!==true&&i!==void 0&&!i.isHeaderRow&&!ky(i)&&vy(e),g=(c===void 0?null:s.hasContinuation===true?c:Q1(GN(l,s),d,c,r))??u+s.box.height,m=Lq(e,t,s);return {top:u,bottom:g,blockTop:u-o,evictable:f,endsPage:m,row:s}}return null}function eD(e,t){return nD(e,t)!==null}function vy(e){let t=Number.NEGATIVE_INFINITY;for(let n of e.fragments)if(!vt(n)&&!(n.kind==="paragraph"&&n.positionedFrame)){if(n.box.y<t-.001)return false;t=n.box.y+n.box.height;}return true}function Lq(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(!vt(a)&&!(a.kind==="paragraph"&&a.positionedFrame))return false}return true}function tD(e,t){let n=Fy(e);return n===null||n===t}function Fy(e){if(!e)return null;for(let t of e.fragments){if(vt(t)||t.kind==="paragraph"&&t.positionedFrame)continue;if(t.kind!=="table")return "";let n=t.rows.find(r=>!r.isHeaderRepeat&&!Zo(r));return n?.isContinuation===true?n.id:""}return ""}function nD(e,t){for(let n of e.cells)if(cw(n.blocks,t))return n;return null}function cw(e,t){for(let n of e){if(n.kind==="paragraph"){if(or(n,t.paragraphId,t.atomOffset))return true;continue}for(let r of n.rows)if(!r.isHeaderRepeat){for(let o of r.cells)if(cw(o.blocks,t))return true}}return false}function ky(e){for(let t of e.cells){let n=t.blocks[0];if(n?.kind==="paragraph"&&yt(n.props).keepNext)return true}return false}function Eq(e,t,n){if(!e.textDirection){for(let r of e.blocks)if(r.kind==="paragraph"&&or(r,n.paragraphId,n.atomOffset)){for(let o of r.lines)for(let a of nt(o)){if(!Pp(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 vr(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 uw(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?vr(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function Va(e){let t=0;for(let n of e)vt(n)||(t=Math.max(t,n.box.y+n.box.height));return t}function fw(e){let t=0;for(let n of e.fragments)t=Math.max(t,Aq(n));return t}function Oy(e){let t=0;for(let n of e.fragments)t=Math.max(t,jf(n));return t}function jf(e){if(vt(e))return 0;let t=e.kind==="paragraph"?e.spacing.after:0;return e.box.y+e.box.height-t}function Aq(e){let t=jf(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 xc(e){let t=Number.POSITIVE_INFINITY;for(let n of e.fragments){if(vt(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 Nq=[false,true].map(()=>new WeakMap);function qo(e,t,n){let r=Nq[Le(n,"noteTableCellKeeps")?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=Dq(e,t,n);return o.set(t,i),i}function rD(e,t,n){for(let r of t)if(qo(e,r,n).preserveOrphanLine===true)return true;return false}function Dq(e,t,n){let r=0,o=0,a=0,i=false,l=false,s=false,d;for(let p of e.fragments){if(p.kind==="paragraph"){if(!or(p,t.paragraphId,t.atomOffset))continue;let h=_q(p,t),y=h?.top??p.box.y,b=h?.bottom??p.box.y+p.box.height;if(b>o){r=y,o=b,a=p.box.y,i=h!==null&&!vt(p);let x=yt(p.props);s=false,d=void 0,l=i&&h?.index===1&&p.fragmentIndex===0&&(p.lines.length>=4||!p.paragraphEnd)&&x.widowControl&&!x.keepLines;}continue}let g=Ty(e,p,t,n);if(g===null)continue;let m=g==="table"?{top:p.box.y,bottom:p.box.y+p.box.height,blockTop:a,evictable:false}:g;m.bottom>o&&(r=m.top,o=m.bottom,a=m.blockTop,i=m.evictable,l=false,s=g!=="table",d=g!=="table"&&g.endsPage?g.row.id:void 0);}let c=p=>Math.min(Math.max(0,p),e.contentBox.height),u=c(r),f=c(o);return {top:u,bottom:f,blockTop:c(a),evictable:i&&f>u,...l?{preserveOrphanLine:true}:{},...s?{tableRow:true}:{},...d!==void 0?{endsPageRowId:d}:{}}}function _q(e,t){for(let[n,r]of e.lines.entries())for(let o of nt(r))if(Pp(o,t.paragraphId,t.atomOffset))return {top:r.box.y,bottom:r.box.y+r.box.height,index:n};return null}function mw(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 Iy=e=>e.kind!=="textValue",Fr=(e,t)=>Iy(e)&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t,Cy=e=>e.children.filter(Iy),pw=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkPWTRJSES_cjs.la?n[0].value:void 0};function wo(e,{leadingTab:t=false,allowDecoration:n=false}={}){let r=0,o="",a="",i="",l=0;for(let s of Cy(e))if(!Fr(s,"pPr")){if(n==="text"&&Fr(s,"fldSimple")&&r===0){if(va(pw(s,"instr")??"")!=="PAGE"||Cy(s).some(d=>!Fr(d,"r")||Cy(d).some(c=>!Fr(c,"rPr")&&(!Fr(c,"t")||c.children.some(Iy)||c.children.some(u=>u.kind==="textValue"&&!/^\d*$/.test(u.value))))))return;o=pw(s,"instr"),r=3;continue}if(!Fr(s,"r"))return;for(let d of Cy(s)){if(Fr(d,"rPr"))continue;if(Fr(d,"tab")&&r===0&&!a&&!l&&t&&!d.children.length){l++;continue}if(Fr(d,"fldChar")&&!d.children.length){let u=pw(d,"fldCharType");if(r===0&&u==="begin")r=1;else if(r===1&&u==="separate"&&va(o)==="PAGE")r=2;else if(r===2&&u==="end")r=3;else return;continue}if(d.children.some(Iy))return;let c=d.children.map(u=>u.kind==="textValue"?u.value:"").join("");if(Fr(d,"instrText")&&r===1)o+=c;else if(n&&Fr(d,"t")&&r===0)a+=c;else if(n&&Fr(d,"t")&&r===3)i+=c;else if(!(Fr(d,"t")&&r===2&&/^\d*$/.test(c)))return}}return r===3&&va(o)==="PAGE"&&l===Number(t)&&(n==="text"||!a&&!i||a==="- "&&i===" -")?a+i:void 0}var hw=31680/20,lD=e=>e.kind!=="textValue",us=(e,t)=>lD(e)&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t,Rc=e=>e.children.filter(lD),Sc=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkPWTRJSES_cjs.la?n[0].value:void 0};function gw(e,t){let n=Rc(e).filter(r=>r.localName===t);return n.length===1&&us(n[0],t)?n[0]:void 0}function oD(e){let t=chunkPWTRJSES_cjs.nd(e);if(t===null||t<0||t>99999)return;let n=t/20;return n<=hw?n:void 0}function aD(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 Hq(e,t){return t.lines[0].spans.length===0&&Rc(e).every(n=>us(n,"pPr")||us(n,"r")&&Rc(n).every(r=>us(r,"rPr")))}function iD(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 sD(e,t,n){if(!n||!us(e.root,"ftr")||t.blocks.length!==2||!Number.isFinite(n.pageWidth)||n.pageWidth<=0||n.pageWidth>hw||!Number.isFinite(n.marginLeft)||n.marginLeft<0||n.marginLeft>n.pageWidth)return t;let r=Rc(e.root),[o,a]=t.blocks;if(r.length!==2||r.some(P=>P.kind!=="paragraph")||!o||!a||!aD(o)||!aD(a)||!iD(o,true)||!iD(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>hw)return t;let i=gw(r[0],"pPr"),l=gw(r[1],"pPr");if(!i||!l||Rc(i).some(P=>!["framePr","pStyle","tabs","jc","rPr"].some(S=>us(P,S)))||Rc(l).some(P=>!["pStyle","jc","ind","rPr"].some(S=>us(P,S)))||wo(r[0],{leadingTab:true,allowDecoration:true})===void 0||wo(r[1],{allowDecoration:true})===void 0&&!Hq(r[1],a))return t;let d=gw(i,"framePr"),c=new Set(["w","wrap","vAnchor","hAnchor","x","yAlign"]);if(!d||d.children.length||d.attributes.some(P=>P.namespaceUri!==chunkPWTRJSES_cjs.la||!c.has(P.localName))||Sc(d,"wrap")!=="around"||Sc(d,"vAnchor")!=="text"||Sc(d,"hAnchor")!=="page"||Sc(d,"yAlign")!=="center")return t;let u=oD(Sc(d,"w")),f=oD(Sc(d,"x"));if(u===void 0||u<=0||f===void 0||f+u>n.pageWidth)return t;let p=o.lines[0],g=1/0,m=-1/0;for(let P of p.spans)P.box.width<=0||P.text===" "||P.text.trim()===""||(g=Math.min(g,P.box.x-o.box.x),m=Math.max(m,P.box.x+P.box.width-o.box.x));if(!Number.isFinite(g)||!Number.isFinite(m)||g<0||!(m<=u||g>=u))return t;let h=vr(a,-a.box.y),y=(a.box.height-o.box.height)/2;if(y<0)return t;let b=vr(o,y-o.box.y),x=f-n.marginLeft-o.box.x,R={...b,clipToBox:true,box:{...b.box,x:o.box.x+x,width:u},lines:b.lines.map(P=>({...P,box:{...P.box,x:P.box.x+x},contentX:P.contentX+x,spans:P.spans.map(S=>({...S,box:{...S.box,x:S.box.x+x}}))}))};return {...t,blocks:[R,h],bottom:h.box.height}}var cD=e=>e.kind!=="textValue",fs=(e,t)=>cD(e)&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t,Pc=e=>e.children.filter(cD),Ui=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkPWTRJSES_cjs.la?n[0].value:void 0},Wf=(e,t)=>{let n=Pc(e).filter(r=>r.localName===t);return n.length===1&&fs(n[0],t)?n[0]:void 0};function jq(e){let t=Pc(e.root);if(t.length!==2||t.some(u=>u.kind!=="paragraph"))return null;let[n,r]=t,o=Wf(n,"pPr"),a=Wf(r,"pPr");if(!o||!a||Pc(o).some(u=>!["pStyle","framePr","rPr","spacing"].some(f=>fs(u,f)))||Pc(a).some(u=>!["pStyle","ind","rPr","spacing"].some(f=>fs(u,f))))return null;let i=Wf(o,"pStyle"),l=Wf(a,"pStyle");if(!i||!l||!Ui(i,"val")||Ui(i,"val")!==Ui(l,"val")||Pc(r).some(u=>!fs(u,"pPr")&&(!fs(u,"r")||Pc(u).some(f=>!fs(f,"rPr")))))return null;let s=Wf(o,"framePr"),d=new Set(["wrap","vAnchor","hAnchor","xAlign","y"]);if(!s||s.children.length||s.attributes.some(u=>u.namespaceUri!==chunkPWTRJSES_cjs.la||!d.has(u.localName))||Ui(s,"wrap")!=="around"||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)||wo(n,{allowDecoration:"text"})===void 0?null:{framed:n.id,anchor:r.id,y:Number(c)/20}}function dD(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 uD(e,t,n,r=false){if(!fs(e.root,"ftr")||t.blocks.length!==2||!(n>0))return t;let o=jq(e),[a,i]=t.blocks;if(!o||!a||!i||!dD(a)||!dD(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 s=a.lines[0].spans.filter(x=>x.box.width>0&&x.text.trim()!=="");if(!s.length)return t;let d=1/0,c=-1/0;for(let x of s)d=Math.min(d,x.box.x),c=Math.max(c,x.box.x+x.box.width);if(!Number.isFinite(d)||!Number.isFinite(c)||c-d>n)return t;let u=ci(i.props).before,f=vr(i,u-i.lines[0].box.y),p={...f,spacing:{...f.spacing,before:u},box:{...f.box,y:0,height:f.box.y+f.box.height}},g=r?a.spacing.before:0,m=vr(a,u+o.y-a.box.y-g),h=n-c,y=m.lines[0],b={...m,box:{...m.box,x:d+h,width:c-d},lines:[{...y,box:{...y.box,x:d+h,width:c-d},contentX:y.contentX+h,spans:y.spans.map(x=>({...x,box:{...x.box,x:x.box.x+h}}))}]};return {...t,blocks:[b,p],bottom:p.box.height}}var yw=e=>e.kind!=="textValue",Or=(e,t)=>yw(e)&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t,Jo=e=>e.children.filter(yw),ms=(e,t)=>{let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkPWTRJSES_cjs.la?n[0].value:void 0},fD=(e,t)=>Jo(e).every(n=>t.some(r=>Or(n,r))),My=(e,t)=>Jo(e).filter(n=>Or(n,t)).length,Wq=new Set(["wrap","vAnchor","hAnchor","xAlign","y"]);function zq(e){let t=false;for(let n of Jo(e))if(!Or(n,"pPr")){if(!Or(n,"r"))return false;for(let r of Jo(n))if(!Or(r,"rPr")&&!(Or(r,"tab")&&r.children.length===0)){if(!Or(r,"t")||r.children.some(yw))return false;t||=r.children.some(o=>o.kind==="textValue"&&o.value.trim());}}return t}function Gq(e){let t=Jo(e.root);if(t.length!==2||t.some(u=>u.kind!=="paragraph"))return null;let[n,r]=t,o=Jo(n).filter(u=>Or(u,"pPr")),a=Jo(r).filter(u=>Or(u,"pPr"));if(o.length!==1||a.length!==1)return null;let[i,l]=[o[0],a[0]];if(!fD(i,["pStyle","framePr","rPr"])||!fD(l,["pStyle","ind","rPr"])||My(i,"pStyle")!==1||My(i,"framePr")!==1||My(l,"pStyle")!==1||My(l,"ind")>1)return null;let s=ms(Jo(i).find(u=>Or(u,"pStyle")),"val");if(!s||s!==ms(Jo(l).find(u=>Or(u,"pStyle")),"val"))return null;let d=Jo(i).find(u=>Or(u,"framePr"));if(d.children.length||d.attributes.some(u=>u.namespaceUri!==chunkPWTRJSES_cjs.la||!Wq.has(u.localName))||ms(d,"wrap")!=="none"||ms(d,"vAnchor")!=="text"||ms(d,"hAnchor")!=="margin"||ms(d,"xAlign")!=="right")return null;let c=ms(d,"y")??"0";return !["0","1"].includes(c)||wo(n)!==""||!zq(r)?null:{framed:n.id,anchor:r.id,y:Number(c)/20}}function mD(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 pD(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 gD(e,t,n){if(!Or(e.root,"ftr")||t.blocks.length!==2||!(n>0))return t;let r=Gq(e),[o,a]=t.blocks;if(!r||!o||!a||!mD(o)||!mD(a)||o.paragraphId!==r.framed||a.paragraphId!==r.anchor||o.indent.right!==0||a.indent.right<0)return t;let i=pD(o),l=pD(a);if(!i||!l)return t;let s=n-i.right;if(i.left+s<0||l.right>i.left+s)return t;let d=o.lines[0],c=a.lines[0],u=d.box.y-o.box.y,f=vr(a,u-c.box.y),p={...f,spacing:{...f.spacing,before:o.spacing.before},box:{...f.box,y:0,height:f.box.y+f.box.height}},g=vr(o,r.y-o.box.y),m=g.lines[0],h=i.right-i.left,y={...g,box:{...g.box,x:i.left+s,width:h},lines:[{...m,box:{...m.box,x:i.left+s,width:h},contentX:m.contentX+s,spans:m.spans.map(b=>({...b,box:{...b.box,x:b.box.x+s}}))}]};return {...t,blocks:[y,p],bottom:Math.max(y.box.y+y.box.height,p.box.y+p.box.height)}}var yD=e=>e.kind!=="textValue",vn=(e,t)=>yD(e)&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t,Ka=(e,t)=>e.attributes.find(n=>n.namespaceUri===chunkPWTRJSES_cjs.la&&n.localName===t)?.value;function ps(e){return e.children.filter(yD)}function Vq(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()&&!vn(r,"t")&&!vn(r,"instrText"))return false;t.push({node:a,depth:o+1});}}}return true}function Kq(e){let t="";for(let n of e.children){if(n.kind!=="textValue")return null;t+=n.value;}return t}function $q(e){let t=ps(e.root);if(t.length!==2||t.some(g=>g.kind!=="paragraph"))return null;let[n,r]=t,o=ps(n).find(g=>vn(g,"pPr")),a=ps(r).find(g=>vn(g,"pPr"));if(!o||!a)return null;let i=ps(o),l=ps(a);if(i.filter(g=>vn(g,"framePr")).length!==1||i.filter(g=>vn(g,"pStyle")).length>1||l.filter(g=>vn(g,"pStyle")).length>1||i.some(g=>!["pStyle","framePr","jc","rPr","spacing","ind","tabs"].some(m=>vn(g,m)))||l.some(g=>!["pStyle","jc","rPr","spacing","ind","tabs"].some(m=>vn(g,m))))return null;let s=i.find(g=>vn(g,"pStyle")),d=l.find(g=>vn(g,"pStyle")),c=i.find(g=>vn(g,"framePr"));if(s&&!Ka(s,"val")||d&&!Ka(d,"val")||(s?Ka(s,"val"):void 0)!==(d?Ka(d,"val"):void 0))return null;let u="";for(let g of ps(r))if(!vn(g,"pPr")){if(!vn(g,"r"))return null;for(let m of ps(g)){if(vn(m,"rPr"))continue;if(!vn(m,"t"))return null;let h=Kq(m);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!==chunkPWTRJSES_cjs.la||!f.has(g.localName))||!["around","auto"].includes(Ka(c,"wrap")??"")||Ka(c,"vAnchor")!=="text"||Ka(c,"hAnchor")!=="margin"||Ka(c,"xAlign")!=="center")return null;let p=Ka(c,"y")??"0";return !["0","1"].includes(p)||wo(n)!==""?null:{first:n.id,empty:r.id,y:Number(p)/20,decoration:u}}function hD(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.right===0&&e.indent.hanging===0&&Number.isFinite(e.indent.firstLine)&&e.indent.firstLine>=0}function bD(e,t,n,r,o=false){if(!vn(e.root,"ftr")||!Vq(e))return t;let a=$q(e);if(!a){let h=sD(e,t,r);if(h!==t)return h;let y=gD(e,t,n);return y===t?uD(e,t,n,o):y}if(t.blocks.length!==2)return t;let[i,l]=t.blocks;if(!i||!l||!hD(i)||!hD(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 s=vr(i,a.y-i.box.y),d=vr(l,-l.box.y),c=s.lines[0],u=c.spans[0]?.box.x??c.contentX,f=c.spans.at(-1),p=f?f.box.x+f.box.width:u;if(i.indent.firstLine+p-u>n)return t;let g=(n-(p-u)+i.indent.firstLine)/2-u,m={...s,alignment:"center",box:{...s.box,x:u+g,width:p-u},lines:[{...c,box:{...c.box,x:u+g,width:p-u},contentX:c.contentX+g,spans:c.spans.map(h=>({...h,box:{...h.box,x:h.box.x+g}}))}]};return {...t,blocks:[m,d],bottom:Math.max(m.box.y+m.box.height,d.box.y+d.box.height)}}var xD=new WeakMap;function wc(e){let t=xD.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 xD.set(e,n),n}function SD(e,t,n,r,o,a){let i=[],l;for(let s=e.length-1;s>=0;s-=1){let d=e[s];if(d.kind==="paragraph"&&!d.props.some(u=>u.localName==="framePr")){l=d.paragraph.id;continue}if(d.kind!=="table")continue;let c=nn(d.table,t,0,n,r,o,a)?.float;!c||c.ySpec==="inline"||l&&i.push({table:d.table,sourceIndex:s,anchorId:l,float:c});}return i.reverse()}function Uq(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 bw(e,t){let n=t.pendingPositionedTableTokens,r=e.pendingPositionedTableTokens;return (n===r||n?.length===r?.length&&n?.signature===r?.signature)&&Uq(e.positionedTableAnchorSignals,t.positionedTableAnchorSignals??[])}function RD(e,t){let n=new Map,r=new Map,o=new Set;for(let s of e){let d=JSON.stringify([s.table.id,t[s.sourceIndex]]);n.set(s.table.id,d),r.set(d,s.table.id),o.add(s.anchorId);}let a,i=s=>{a={token:s,previous:a,length:(a?.length??0)+1,signature:chunkPWTRJSES_cjs.f(new TextEncoder().encode(de([a?.signature??"",s])))};},l=s=>{if((a?.length??0)!==s.size){a=void 0;for(let d of s){let c=n.get(d);c&&i(c);}}};return {add(s,d){if(l(s),s.has(d))return;let c=n.get(d);c&&(s.add(d),i(c));},note(s,d,c,u,f){o.has(d)&&s.push({anchorId:d,column:c,fragmentIndex:u,anchorY:f});},checkpoint(s,d){return l(s),{pendingPositionedTableTokens:a,positionedTableAnchorSignals:[...d]}},restore(s,d,c){d.clear();let u=[];for(let f=s.pendingPositionedTableTokens;f;f=f.previous)u.push(f.token);for(let f=u.length-1;f>=0;f--){let p=r.get(u[f]);p&&d.add(p);}a=s.pendingPositionedTableTokens,l(d),c.splice(0,c.length,...s.positionedTableAnchorSignals??[]);},same(s,d,c,u){return l(c),bw({pendingPositionedTableTokens:s,positionedTableAnchorSignals:d},{pendingPositionedTableTokens:a,positionedTableAnchorSignals:u})}}}function PD(e,t,n,r,o){let a=wc(e),i=0;for(let l of r){let s=a.get(l.anchorId);if(!s)continue;let d=l.fragmentIndex+i,c=n.length;for(let f of s){if(!t.has(f.table.id))continue;let p=n.length;o(f.table,l.column,l.anchorY,d);for(let g=p;g<n.length;g++){let m=n[g];m.kind==="table"&&(n[g]={...m,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(d,0,...u),i+=u.length;}r.length=0;}function By(e){return e.kind==="table"&&e.outOfFlow===true}function wD(e,t,n){let r=kr(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 kD(e,t){for(let n=t;n<e.length;n+=1){let r=e[n];if(!vt(r))return true}return false}function ko(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))}var kc=.001,Xq=64,Zq=64;function Tc(e){let t=e.children.find(n=>n.kind==="tableProperties");return !t||t.kind==="textValue"?false:t.children.some(n=>n.kind!=="textValue"&&n.localName==="tblOverlap"&&n.attributes.some(r=>r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="val"&&r.value==="never"))}var TD=(e,t)=>e.left<t.right-kc&&e.right>t.left+kc&&e.top<t.bottom-kc&&e.bottom>t.top+kc;function vD(e,t,n){let{distances:r}=e;return {left:t-r.left,top:n-r.top,right:t+e.width+r.right,bottom:n+e.height+r.bottom}}function OD(e,t,n,r){let o=t.filter(c=>e.refusesOverlap||c.refusesOverlap);if(o.length===0||o.length>Zq)return {dx:0,dy:0};let{width:a,distances:i}=e,l=e.left,s=e.top,d=c=>c>=n.left-kc&&c+a<=n.right+kc&&!o.some(u=>TD(vD(e,c,s),u));for(let c=0;c<Xq;c+=1){let u=vD(e,l,s),f=o.find(m=>TD(u,m));if(!f)break;let p=f.right+i.left;if(d(p)){l=p;break}let g=f.left-i.right-a;if(r&&d(g)){l=g;break}s=f.bottom+i.top;}return {dx:l-e.left,dy:s-e.top}}function vc(e){let t=e.pageExclusionZones;if(!t)return e;let n=FD.get(e);if(n)return n;let r,o=[],a={...e,pageExclusionZones:()=>{let i=t();return i!==r&&(r=i,o=i.some(l=>l.sourceKind==="table")?i.filter(l=>l.sourceKind!=="table"):i),o}};return FD.set(e,a),a}var FD=new WeakMap;var $a=.001;function MD(e,t){let n=new Set(e.filter(({table:r})=>Tc(r)).map(({table:r})=>r.id));return {floatRefusesOverlap:r=>n.has(r),pinnedBreakAllowed:r=>t.get(r)!==false}}var CD=new WeakMap;function qq(e,t,n,r){let o;if(!r.inlineDrawingLayout){let i=CD.get(r);i||CD.set(r,i=new WeakMap),o=i.get(e),o||i.set(e,o=new Map);let l=o.get(n);if(l)return l}let{fragment:a}=Ga(t,0,0,0,e.id,0,{...Xo(r,false),onCellBreakKey:void 0,borderOwnershipBudget:Kr(),vMergeResolveBudget:So()});return o?.set(n,a),a}function BD(e,t){for(let n of e.cells)for(let r of n.blocks){if(r.kind==="table"){for(let o of r.rows)t.push(o.box.y+o.box.height);continue}for(let o of r.lines)t.push(o.box.y+o.box.height);}return t}function Jq(e){let t=0,n=0;for(;n<e.rows.length&&e.rows[n].isHeaderRow;n++){let l=e.rows[n];t=l.box.y+l.box.height;}let r=e.rows[n];if(!r)return t;let o=r.box.y+r.box.height,a=r.box.y,i=r.box.y;for(let l of r.cells){let s=BD({...r,cells:[l]},[]);s.length!==0&&(a=Math.max(a,s.reduce((d,c)=>Math.min(d,c),1/0)),i=Math.max(i,s.reduce((d,c)=>Math.max(d,c),r.box.y)));}return a<=r.box.y?o:Math.min(o,a+Math.max(0,o-i))}function Qq(e,t,n){if(e.rows.some(o=>o.height.rule==="atLeast"&&o.height.valuePt>n))return false;let r=(o,a)=>o.every(i=>(!a||i.box.height<=n+$a)&&i.cells.every(l=>l.blocks.every(s=>s.kind==="table"?r(s.rows,true):s.lines.every(d=>d.box.height<=n+$a))));return r(t.rows,false)}function e3(e,t){let n=0;for(let s of e.rows){let d=s.box.y+s.box.height;if(d>t+$a)break;n=d;}if(n>0)return n;let r=e.rows[0];if(!r)return 0;let o=BD(r,[]),a=o.reduce((s,d)=>Math.max(s,d),r.box.y),i=r.box.y+r.box.height-a,l=0;for(let s of o)s+i<=t+$a&&(l=Math.max(l,s+i));return l}function Ly(e,t,n,r){let o=t.float;if(!o||o.vertAnchor==="text"||o.ySpec==="inline"||r.frames.text.width<r.frames.margin.width-.5||n.styleCascade?.doNotBreakWrappedTables||n.pinnedBreakAllowed?.(e.id)===false||t.rows.length===0||t.rows.some(P=>P.height.rule==="exact"))return;let a=o.distances??{right:0,left:0},i=xo(t,r.frames,n.compatibilityMode),l=t.columnWidthsPt.reduce((P,S)=>P+S,0),s=r.frames.text;if(i+l+a.right<=s.left+$a||i-a.left>=s.left+s.width-$a)return;let d=qq(e,t,r.width,n),c=d.box.height,u=ko(o,c,r.verticalFrames),f=r.verticalFrames.margin,p=Math.max(r.bottom,f.top+f.height),g=r.verticalFrames.page.top+r.verticalFrames.page.height,m=Le(n.compatibilityMode,"positionedTableBreaksAtMargin"),h=m?p:Math.max(p,g);if(u>=p-$a||u+c<=h+$a||!Qq(t,d,r.bottom))return;let y=e3(d,r.bottom-r.top),b=Jq(d),x=m||r.bottom<p?r.bottom:g,R=Math.min(ko(o,y,r.verticalFrames),g-y,b<=r.bottom?x-b:1/0);return {top:R,firstBottom:Math.min(x,R+r.bottom-r.top)}}function LD(e,t,n){let r=()=>({top:n.cursorY,bottom:n.contentHeight(),frames:n.anchorFrames(),verticalFrames:n.verticalAnchorFrames(),width:n.columnWidth()}),o=Ly(e,t,n.deps,r());return !o||o.top>=n.cursorY-$a||!n.pageHoldsContent(n.cursorY)?o:(n.advancePage(),Ly(e,t,n.deps,r())??o)}var ID=new WeakMap;function ED(e){if(!e.rows.some(n=>n.cantSplit))return e;let t=ID.get(e);return t||(t={...e,rows:e.rows.map(n=>n.cantSplit?{...n,cantSplit:false}:n)},ID.set(e,t)),t}function zf(e,t,n){let r=a=>nn(e,t,0,n.styleCascade,n.displayMode,n.revisionAuthorFilter,n.compatibilityMode,a),o=r();return o?.float?r(An(n)):o}function DD(e,t,n,r,o,a){return e.some(i=>{if(i.kind!=="table")return false;let l=nn(i,t,0,n,r,o,a)?.float;return l!==void 0&&l.ySpec!=="inline"})}function t3(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,s=a.gridColumn+a.gridSpan>=t;l&&(n=Math.max(n,i.left?.widthPt??0)),s&&(r=Math.max(r,i.right?.widthPt??0));for(let d of i.edgeSegments??[])l&&d.side==="left"&&(n=Math.max(n,d.edge.widthPt)),s&&d.side==="right"&&(r=Math.max(r,d.edge.widthPt));}return {left:n,right:r}}function Ua(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 s=l.floatingWrap;if(!s)continue;let d=l.box,c=s.float.distances??{top:0,right:0,bottom:0,left:0},u=t3(l),f=c.left>0?u.left:0,p=c.right>0?u.right:0,g={x:d.x-f,y:d.y,width:d.width+f+p,height:d.height},m=s.columnIndex,h=n.columnLefts?.[m]??0,y=n.columnWidths?.[m]??n.contentWidth,b={sourceKind:"table",drawingNodeId:`table:${l.tableId}`,anchorParagraphId:s.anchorId,anchorModelStart:0,sourceOrder:s.sourceOrder,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:m,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+y?"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+y}};i||(r??=new Map(t),i=[...t.get(o)??[]],r.set(o,i)),i.push(b);}}return r??t}var Ey=Object.freeze({top:0,right:0,bottom:0,left:0}),xw=Object.freeze({dx:0,dy:0}),AD=new WeakMap;function Ay(e,t,n){let r;if(!n.inlineDrawingLayout){let i=AD.get(n);i||AD.set(n,i=new WeakMap),r=i.get(e),r||i.set(e,r=new Map);let l=r.get(t);if(l!==void 0)return l}let o=zf(e,t,n);if(!o?.float||o.float.vertAnchor!=="text")return 0;if(o.float.ySpec)return 1/0;let a=Math.max(0,o.float.yPt)+WD(o,e.id,n)+(o.float.distances?.bottom??0);return r?.set(t,a),a}function n3(e,t){let n=new Map(e.map(({table:o})=>[o.id,false]));if(!e.length)return n;let r=wc(e);for(let o of t){if(o.kind!=="paragraph")continue;let a=r.get(o.paragraph.id);a?.length!==1||Vs(o.props)||o.spacing.before>0||r3(o.paragraph)||n.set(a[0].table.id,true);}return n}function r3(e){let t=[e];for(;t.length;){let n=t.pop();if(n.kind==="hardBreak"&&["page","column"].includes(chunkPWTRJSES_cjs.nb(n)))return true;if("children"in n)for(let r of n.children)t.push(r);}return false}function _D(e,t,n,r,o,a){let i=SD(e,t,n,r,o,a),l=n3(i,e);return {positionedTables:i,positionedTablePolicy:l}}function HD(e,t){if(!t.positionedTables.length)return e;let n=[...e];for(let r of t.positionedTables)n[r.sourceIndex]=de([e[r.sourceIndex],r.anchorId,t.positionedTablePolicy.get(r.table.id)?"split":"whole"]);return n}var Pw=e=>e.verticalFrames.text.top;function jD(e,t,n){if(l3(e,n.zones,t,n.page)||o3(e,t,n))return false;let r=Ay(e,n.width,t);return r>n.bottom?false:t.styleCascade?.doNotBreakWrappedTables?true:r<=n.bottom-Pw(n)||!n.allowBreak||!a3(e,t,n)}function o3(e,t,n){let r=nn(e,n.width,0,t.styleCascade,t.displayMode,t.revisionAuthorFilter,t.compatibilityMode);return !!r&&Ly(e,r,t,{top:Pw(n),bottom:n.bottom,frames:n.frames,verticalFrames:n.verticalFrames,width:n.width})!==void 0}function a3(e,t,n){let r=zf(e,n.width,t),o=r?.float;if(!r||o?.vertAnchor!=="text"||o.ySpec||o.yPt<0)return false;let a=o.distances??Ey;if(a.top>0||a.bottom>0)return false;let i=xo(r,n.frames,t.compatibilityMode),l=r.columnWidthsPt.reduce((c,u)=>c+u,0),s=n.frames.text;if(i-a.left>s.left||i+l+a.right<s.left+s.width)return false;let d=Pw(n)+o.yPt;for(let[c,u]of r.rows.entries()){if(d+=Nn(u,r.columnWidthsPt,i,0,c===0?rt(r,u,t):t,r.cellSpacingPt),d>n.bottom+.001)return false;if(!u.isHeader)return true}return false}function WD(e,t,n){let r=0;return Ga(e,0,0,0,t,0,{...Zt(vc(n)),onCellBreakKey:void 0,borderOwnershipBudget:Kr(),vMergeResolveBudget:So(),nextLineId:()=>`floating-table-probe-${r++}`}).bottom}function i3(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=>vt(x)||x.kind==="table"&&x.floatingWrap?[]:x.kind==="table"?[x.box]:x.lines.map(R=>R.box));if(a.length===0)return 0;let i=zf(e.table,t,n),l=i?.float;if(!i||!l||l.vertAnchor==="text"||l.ySpec==="inline")return 0;let s=l.distances??Ey,d=xo(i,r.frames,n.compatibilityMode),c=i.columnWidthsPt.reduce((x,R)=>x+R,0),u=d-s.left,f=d+c+s.right;if(u>o.left||f<o.left+o.width)return 0;let p=a.reduce((x,R)=>Math.max(x,R.y+R.height),0);if(!l.ySpec&&p<=ko(l,0,r.verticalFrames)-s.top)return 0;let g=WD(i,e.table.id,n),m=ko(l,g,r.verticalFrames),h=m-s.top,y=m+g+s.bottom,b=1/0;for(let x of a)x.y<y&&x.y+x.height>h&&x.x<f&&x.x+x.width>u&&(b=Math.min(b,x.y));return b>r.anchorY?0:y-b+r.anchorExtent}function zD(e,t,n,r,o,a){if(t.size===0)return 0;let i=0,l=wc(e),s=h=>(l.get(h)??[]).filter(y=>t.has(y.table.id)),d=s(n),c=a.frames.text.width>=a.frames.margin.width-.5,f=(d.length>0&&c?a.signals??[]:[]).flatMap(h=>s(h.anchorId).map(y=>({anchor:y,signal:h}))),p=d.length>0?VD(a.earlier,o):[],g=[...d,...f.map(h=>h.anchor)].some(h=>o.floatRefusesOverlap?.(h.table.id)??Tc(h.table))||p.some(h=>h.refusesOverlap),m=[];if(g)for(let{anchor:h,signal:y}of f){let b=Rw(h.table,y.anchorY,r,a.frames,a.earlier.slice(0,y.fragmentIndex),o),x=Sw(h.table,b,r,a.frames,o,[...p,...m]);x.band&&m.push(x.band);}for(let h of d){let y=Rw(h.table,a.anchorY,r,a.frames,a.earlier,o),b=g?Sw(h.table,y,r,a.frames,o,[...p,...m]):xw;b.band&&m.push(b.band);let x=Ay(h.table,r,o)+y+b.dy-a.anchorY+Math.min(0,h.float.yPt);i=Math.max(i,x,i3(h,r,o,a));}return i}function GD(e,t,n,r,o,a,i,l){let s=o.slice(0,a),d=Rw(e,t,n,r,s,i),c=p=>p.kind==="table"&&!!p.floatingWrap&&(i.floatRefusesOverlap?.(p.tableId)??false);if(!Tc(e)&&!o.some(c))return {anchorY:d,dx:0};let u=VD(o,i),f=Sw(e,d,n,r,i,u);return f.dy>0&&(f.band?.bottom??0)>l+.001?{anchorY:d,dx:0}:{anchorY:d+f.dy,dx:f.dx}}function VD(e,t){let n=Object.freeze({columnCount:1,columnGapPt:0,contentWidth:1/0});return [...(t.pageExclusionZones?.()??[]).filter(o=>o.earlierSection&&o.sourceKind==="table"),...Ua([{fragments:e}],new Map,n).get(0)??[]].map(o=>({left:o.verticalBand.x,top:o.verticalBand.y,right:o.verticalBand.x+o.verticalBand.width,bottom:o.verticalBand.y+o.verticalBand.height,refusesOverlap:!o.earlierSection&&(t.floatRefusesOverlap?.(o.drawingNodeId.slice(6))??false)}))}function Sw(e,t,n,r,o,a){let i=zf(e,n,o),l=i?.float;if(!i||!l||l.vertAnchor!=="text"||l.ySpec)return xw;let s=Ay(e,n,o);if(!Number.isFinite(s))return xw;let d=l.distances??Ey,c=Tc(e),u={left:xo(i,r,o.compatibilityMode),top:t+l.yPt,width:i.columnWidthsPt.reduce((m,h)=>m+h,0),height:s-Math.max(0,l.yPt)-d.bottom,distances:d,refusesOverlap:c},f=OD(u,a,{left:r.margin.left,right:r.margin.left+r.margin.width},Le(o.compatibilityMode,"floatingTableOverlapMovesLeft")),p=u.left+f.dx,g=u.top+f.dy;return {...f,band:{left:p-d.left,top:g-d.top,right:p+u.width+d.right,bottom:g+u.height+d.bottom,refusesOverlap:c}}}function Rw(e,t,n,r,o,a){let i=zf(e,n,a),l=i?.float;if(!i||!l||l.vertAnchor!=="text"||l.ySpec)return t;let s=i.columnWidthsPt.reduce((g,m)=>g+m,0),d=l.distances??Ey,c=xo(i,r,a.compatibilityMode)-d.left,u=Ay(e,n,a)-Math.max(0,l.yPt)+d.top,f=t+l.yPt-d.top,p=o.flatMap(g=>g.kind==="table"?g.floatingWrap?[]:[g.box]:g.lines.flatMap(m=>[...m.spans.filter(h=>h.text.trim()).map(h=>h.box),...(m.drawings??[]).map(h=>h.paintBounds)])).sort((g,m)=>g.y-m.y);for(let g of p)c<g.x+g.width&&c+s+d.left+d.right>g.x&&f<g.y+g.height&&f+u>g.y&&(f=g.y+g.height);return f+d.top-l.yPt}var ND=new WeakMap;function l3(e,t,n,r=0){if(!n.pageExclusionZones||!t?.size)return false;let o=ND.get(n);if(o?.zones!==t){let c=[];for(let[u,f]of t){let p=1/0;for(let g of f)g.sourceKind!=="table"&&(p=Math.min(p,n.paragraphOrderIndex?.(g.anchorParagraphId)??g.sourceOrder));c.push([u,p]);}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},ND.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 s=[e],d=0;for(;s.length;){let c=s.pop();if(++d>1e4)return true;if(c.kind==="paragraph"){if(l<=(n.paragraphOrderIndex?.(c.id)??Number.MAX_SAFE_INTEGER))return true;continue}if(d+s.length+c.children.length>1e4)return true;for(let u of c.children)u.kind!=="textValue"&&s.push(u);}return false}function s3(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="tblPr")return t}function UD(e){let t=o=>o.kind==="table"?Ql(s3(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(s=>!t(s));n.push({table:o,float:i,nextBlockId:l?.id??null});}),n.length===0?{flowBlocks:e,floating:n}:{flowBlocks:r,floating:n}}function d3(e){if(e.kind==="table")return e.tableId;if(e.kind==="paragraph")return e.paragraphId}function $D(e,t,n,r,o){let a=`table:${e.tableId}`,i=Ua([{fragments:[{...e,floatingWrap:{anchorId:a,columnIndex:0,float:t.float,sourceOrder:n}}]}],new Map,{contentWidth:o}).get(0)?.[0];if(!i||i.verticalBand.y>=r)return i;let l=i.verticalBand.y+i.verticalBand.height,s=i.input.contentBounds;if(l<=r)return;let d=Math.max(s.y,r);return {...i,y:Math.max(i.y,r),verticalBand:{...i.verticalBand,y:r,height:l-r},input:{...i.input,contentBounds:{...s,y:d,height:Math.max(0,s.y+s.height-d)},wrapDistances:{...i.input.wrapDistances,top:0}}}}function YD(e,t,n,r,o,a){let i=[],l=[],s=[],d=false,c={text:{left:0,width:r.contentWidth},margin:{left:0,width:r.contentWidth},page:{left:-r.marginLeft,width:r.pageWidth}};for(let[u,f]of n.entries()){let p=a(f.table,0,0,false).find(R=>R.kind==="table");if(!p)continue;let g=e.find(R=>d3(R)===f.nextBlockId),m=g?g.box.y:t,h={text:{top:m,height:Math.max(0,r.pageHeight-r.storyTop-m)},margin:{top:r.marginTop-r.storyTop,height:Math.max(0,r.pageHeight-r.marginTop-r.marginBottom)},page:{top:-r.storyTop,height:r.pageHeight}},y=Bh(f.float,p.box.width,c),b=f.float.vertAnchor!=="text";d||=b;let x=Math.min(ko(f.float,p.box.height,h),b?r.pageHeight-r.storyTop-p.box.height:Number.POSITIVE_INFINITY);for(let R of a(f.table,y-p.box.x,x,true)){if(i.push({...R,outOfFlow:true}),!o||R.kind!=="table"||R.tableId!==f.table.id)continue;let P=$D(R,f,u,m,r.contentWidth);P&&l.push(P);let S=b?$D(R,f,u,Number.NEGATIVE_INFINITY,r.contentWidth):void 0;S&&s.push(S);}}return {tables:i,zones:l,pageFramed:d,pageFramedZones:s}}function XD(e,t,n){let r=0,o=n===Number.NEGATIVE_INFINITY;for(let a of e.pageFramedZones){if(!o&&a.input.mode!=="topAndBottom")continue;let i=a.verticalBand.y,l=i+a.verticalBand.height;i>=t||l<=0||(l>t||l+t-Math.max(0,i)>n)&&(r=Math.max(r,t-i));}return r}var ZD=4096,c3=24,u3=1440,f3=new Set(["wrap","vAnchor","hAnchor","xAlign","y","anchorLock"]),qD=["pStyle","framePr","jc","rPr"],m3=["left","center","right","inside","outside"],ww=e=>e.kind!=="textValue",Qo=(e,t)=>ww(e)&&e.namespaceUri===chunkPWTRJSES_cjs.la&&e.localName===t,Vf=e=>e.children.filter(ww);function Gf(e,t){let n=e.attributes.filter(r=>r.localName===t);return n.length===1&&n[0].namespaceUri===chunkPWTRJSES_cjs.la?n[0].value:void 0}function p3(e){let t=[{node:e.root,depth:0}],n=0,r=0;for(;t.length;){let{node:o,depth:a}=t.pop();if(++n>ZD||a>c3)return null;if(o.kind!=="textValue"){if(Qo(o,"framePr")&&r++,n+t.length+o.children.length>ZD)return null;for(let i of o.children)t.push({node:i,depth:a+1});}}return r}function g3(e){if(wo(e)==="")return true;let t=false;for(let n of Vf(e))if(!Qo(n,"pPr")){if(!Qo(n,"r"))return false;for(let r of Vf(n))if(!Qo(r,"rPr")){if(!Qo(r,"t")||r.children.some(ww))return false;t||=r.children.some(o=>o.kind==="textValue"&&o.value.trim());}}return t}function h3(e){if(e.children.length||e.attributes.some(o=>o.namespaceUri!==chunkPWTRJSES_cjs.la||!f3.has(o.localName))||new Set(e.attributes.map(o=>o.localName)).size!==e.attributes.length)return null;let t=Gf(e,"wrap"),n=Gf(e,"xAlign"),r=chunkPWTRJSES_cjs.nd(Gf(e,"y")??"0");return t!=="around"&&t!=="none"||Gf(e,"vAnchor")!=="text"||Gf(e,"hAnchor")!=="margin"||!n||!m3.includes(n)||r===null||r<0||r>u3?null:{align:n,y:r/20}}function e_(e){if(!Qo(e.root,"hdr")||p3(e)!==1)return null;let[t,n]=Vf(e.root);if(t?.kind!=="paragraph"||n?.kind!=="paragraph")return null;let r=Vf(t).filter(l=>Qo(l,"pPr"));if(r.length!==1)return null;let o=Vf(r[0]);if(!o.every(l=>qD.some(s=>Qo(l,s)))||qD.some(l=>o.filter(s=>Qo(s,l)).length>1))return null;let a=o.find(l=>Qo(l,"framePr")),i=a?h3(a):null;return !i||!g3(t)?null:{frameId:t.id,anchorId:n.id,...i,parity:i.align==="inside"||i.align==="outside"}}function t_(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 JD=e=>e.kind==="paragraph"?e.props.filter(t=>t.localName==="framePr").length:0,Fc=(e,t,n,r)=>e<r&&n<t;function y3(e,t,n){let r=t.y,o=t.y+t.height,a=t.x,i=t.x+t.width,l=s=>Fc(s.y,s.y+s.height,r,o)&&Fc(s.x,s.x+s.width,a,i);for(let s of e){if(!Fc(s.box.y,s.box.y+s.box.height,r,o))continue;if(s.kind!=="paragraph"||s.borders?.length||s.bottomBorder||s.shading)return true;let d=s.paragraphId===n;if(d&&s.marker&&l(s.marker.box))return true;for(let c of s.lines){if(!Fc(c.box.y,c.box.y+c.box.height,r,o))continue;let u=t_(c);if(d&&u&&Fc(u.left,u.right,a,i))return true;for(let f of c.drawings??[])if(l(f.paintBounds)||Fc(f.x,f.x+f.width,a,i))return true}}return false}function QD(e,t){let n=Math.abs(t%2)===1;return e==="inside"?n?"left":"right":e==="outside"?n?"right":"left":e}function n_(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(y=>y!==0)||!(r>0)||JD(i)!==1||n.blocks.some(y=>JD(y)>0))return null;let s=i.lines[0],d=t_(s)??{left:s.contentX,right:s.contentX},c=d.right-d.left;if(c>r)return null;let u=y=>({x:y==="left"?0:y==="right"?r-c:(r-c)/2,y:l.box.y+e.y,width:c,height:i.box.height}),f=u(QD(e.align,o)),p=l.lines[0];if(!p||f.y>=p.box.y+p.box.height||a&&(e.parity?["left","right"]:[QD(e.align,o)]).some(b=>y3(n.blocks,u(b),l.paragraphId)))return null;let g=Df(i,f.x-d.left,f.y-i.box.y),m=g.lines[0],h={...g,box:f,lines:[{...m,box:{...m.box,x:f.x,width:c}}]};return {...n,blocks:[h,...n.blocks],bottom:Math.max(n.bottom,f.y+f.height)}}var b3=3,x3=128,S3=3,R3=4096,r_=new WeakMap;function P3(e){let t=r_.get(e);if(t!==void 0)return t;let n=chunkYBMWBXST_cjs.y(chunkPWTRJSES_cjs.Ca(e));return r_.set(e,n),n}function w3(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 i_(e,t,n,r,o,a,i,l,s,d=Ue,c,u,f,p,g,m){m?.showFieldCodes&&(r+="|field-codes"),r=Ki(r);let h=m?.revisionAuthorFilter,y=e_(e),b=P1(e),x=Xx(e.root),R=y?.parity?{...x,hasPageParity:true}:x,P=w3(l??x3),S=Gr(e,d,h),w=UD(S),F=Td({numberingIndex:m?.numberingIndex,styleCascade:a,measurer:n},S).listItems,T=P3(e),v,C,I=O=>{let k=Ia(R)||b||c||O?.characterStyleValues?O:void 0,E=k?.pageNumber??p?.pageNumber??1,M=c&&k?.contentInsetTop!==void 0&&k.contentInsetBottom!==void 0&&k.storyTop!==void 0?`|hf:${k.contentInsetTop},${k.contentInsetBottom},${k.storyTop}`:"",A=(b?`|frames:${k?.storyTop??p?.storyDistance??""}`:"")+nS(k,R)+(c?`|pn:${E}`:"")+M+(k?.characterStyleValues?`|cs:${hy(k.characterStyleValues)}`:"");if(A===""){if(v)return v}else {let oe=P.get(A);if(oe)return oe;l===void 0&&Ia(R)&&P.growTo(Math.min(R3,E*S3));}let N=0,L=[],D=()=>{let oe=k?.pageNumber??p?.pageNumber??1,ae=p?.pageWidth??t,ue=p?.pageHeight??Math.max(1,t),ce=p?.marginLeft??0,B=p?.marginRight??0,me=p?.marginTop??0,ge=p?.marginBottom??0,we=Math.max(1,ue-me-ge),Ae=k?.contentInsetTop!==void 0&&k.contentInsetBottom!==void 0&&k.storyTop!==void 0?Object.freeze({top:k.contentInsetTop-k.storyTop,height:Math.max(1,ue-k.contentInsetTop-k.contentInsetBottom)}):void 0;return Object.freeze({pageNumber:oe,pageWidth:ae,pageHeight:ue,marginLeft:ce,marginRight:B,marginBottom:ge,contentInsetTop:me,contentInsetBottom:ge,contentWidth:t,...Ae?{verticalMarginFrame:Ae}:{},contentHeight:we,contentBandHeight:we,ownerPartName:e.name,storyKind:e.root.localName==="ftr"?"footer":"header"})},W=c?Py(oe=>wy(oe,{measurer:n,producer:r+A+(d===Ue?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),cache:o,styleCascade:a,...k?{pageContext:k}:{},...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:m?.compatibilityMode,displayMode:d,...h?{revisionAuthorFilter:h}:{},...g?{documentProperties:g}:{},...m?.projectLink?{projectLink:m.projectLink}:{},...m?.projectFieldLink?{projectFieldLink:m.projectFieldLink}:{},showFieldCodes:m?.showFieldCodes,inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{},...m?.projectionTokenForParagraph?{projectionTokenForParagraph:m.projectionTokenForParagraph}:{},...m?.projectionTokenForTable?{projectionTokenForTable:m.projectionTokenForTable}:{},...m?.numberingIndex?{numberingIndex:m.numberingIndex}:{}}),m?.numberingIndex,a,d,h):void 0,$=Object.freeze([]),G=Object.freeze([]),z,Y=w.floating.length>0&&p&&(k?.storyTop!==void 0||p.storyDistance!==void 0)?p:void 0,U=Y?w.flowBlocks:S,X=()=>({measurer:n,cache:o,producer:r+A+(d===Ue?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${N++}`,styleCascade:a,...F?{listItems:F}:{},pageContext:k,...s!==void 0?{defaultTabStopPt:s}:{},compatibilityMode:m?.compatibilityMode,tableNestingOffset:1,displayMode:d,...h?{revisionAuthorFilter:h}:{},...g?{documentProperties:g}:{},...m?.projectLink?{projectLink:m.projectLink}:{},...m?.projectFieldLink?{projectFieldLink:m.projectFieldLink}:{},showFieldCodes:m?.showFieldCodes,...m?.projectionTokenForParagraph?{projectionTokenForParagraph:m.projectionTokenForParagraph}:{},...m?.projectionTokenForTable?{projectionTokenForTable:m.projectionTokenForTable}:{},...G.length>0?{pageExclusionZones:()=>$}:{}}),q=Le(m?.compatibilityMode,"headerFooterAnchorsWrapText"),V=oe=>{L.push(...oe);},ie=oe=>({...X(),hostedStory:W,anchorsWrapText:q,inlineDrawingLayout:c,anchorFrameBase:D,pageContentClip:()=>{let ae=D();return k?.storyTop!==void 0?Object.freeze({x:-ae.marginLeft,y:-k.storyTop,width:ae.pageWidth,height:ae.pageHeight}):Il(ae)},collectAnchoredDrawings:oe,columnBoxForParagraph:ae=>Object.freeze({x:0,y:ae.y,width:t,height:ae.height}),pageExclusionZones:()=>$,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}}),K=(oe,ae)=>{if($=G,c){let ue=false;for(let ce=0;ce<Al;ce+=1){L.splice(0,L.length),N=ae,z=za(oe,0,Math.max(1,t),0,0,ie(V));let B=Au(L,c,0,t),me=G.length?[...G,...B]:B;if(B.length===0){ue=true,$=me;break}if(ce>0&&sr($)===sr(me)){ue=true,$=me;break}$=me;}if(!ue)throw new jo(`header/footer exclusion reflow did not converge within ${Al} passes`)}else N=ae,z=za(oe,0,Math.max(1,t),0,0,X());},J=w.floating.length===0&&y&&U[0]?.id===y.frameId&&U[1]?.id===y.anchorId?U[0]:void 0,fe=null,ne=k===void 0;if(J&&!ne&&C===void 0&&I(void 0),y&&J&&(ne||C)){K([J],0);let oe=z;K(U.slice(1),N),fe=L.length===0?n_(y,oe,z,t,k?.sheetNumber??E,ne):null,ne&&(C=fe!==null);}if(fe)z=fe;else if(b&&p?.storyDistance!==void 0&&!w.floating.length){let oe=new Set(b.flatMap(ue=>ue.paragraphs.map(ce=>ce.id))),ae=U.filter(ue=>!oe.has(ue.id));ae.some(ue=>ue.kind==="paragraph")&&(K(ae,0),L.length===0&&(fe=w1(b,U,z,(ue,ce)=>za(ue,0,ce,0,0,X()),p,k?.storyTop??p.storyDistance))),fe?z=fe:K(U,0);}else K(U,0);if(Y){let oe=z,ae=e.root.localName==="ftr"&&Y.storyDistance!==void 0?Y.pageHeight-Y.storyDistance:void 0,ue=ae!==void 0?k?.storyTop??ae-oe.bottom:k?.storyTop??Y.storyDistance,ce=()=>YD(oe.blocks,oe.bottom,w.floating,{...Y,contentWidth:t,storyTop:ue},q,(xe,Ne,lt,Be)=>za([xe],Ne,Ne+Math.max(1,t),lt,0,vc(c?ie(Be?V:()=>{}):X())).blocks),B=ce(),me=ae!==void 0&&B.pageFramed,ge=xe=>{let Ne=XD(B,oe.bottom,xe);return Ne<=0?false:(ue-=Ne,B=ce(),true)};me&&ge(Y.pageHeight-ue);let we=()=>{G=B.zones,K(U,0),B=ce();};B.zones.length&&we();let Ae=()=>ue+z.bottom>Y.pageHeight+.01;for(let xe=0;me&&xe<b3&&Ae();xe++)ue=Math.min(ue,ae-z.bottom),B=ce(),we();me&&Ae()&&ge(Number.NEGATIVE_INFINITY)&&we(),z={blocks:[...z.blocks,...B.tables],bottom:me?ae-ue:z.bottom};}z=bD(e,z,t,p,a?.fixedParagraphSpacing);let te={partName:e.name,part:e,contentKey:T,...m?.projectionEpoch?{projectionEpoch:m.projectionEpoch}:{},fragments:z.blocks,flowHeight:z.bottom,pageFieldNeeds:R,...L.length>0?{anchoredDrawings:Object.freeze([...L])}:{},withPageContext:oe=>!Ia(R)&&!b&&!te.anchoredDrawings?.length&&!oe.characterStyleValues&&!k?.characterStyleValues?v??te:I({...oe,characterStyleValues:oe.characterStyleValues??k?.characterStyleValues})};return A===""?v=te:P.set(A,te),te};return I(i)}function gs(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 aS(u,f,r),f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:g=>{let m=p(g);return {...m,box:o(m.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),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}var o_=new WeakMap;function k3(e){let t=o_.get(e);if(t!==void 0)return t;let n=[];tx(e,o=>{let a=o.marker;a&&n.push(de([o.paragraphId,a.text,a.numFmt,String(a.level)]));});let r=n.length===0?"":`|list:${de(n)}`;return o_.set(e,r),r}var a_=new WeakMap;function T3(e){let t=a_.get(e);if(t!==void 0)return t;let n=[];Zs(e,o=>{n.push(_f(o.resource));for(let a of Xs(o)){let i=a.story.clippedResourceToken;i&&n.push(`clip:${i}`);}});let r=n.length===0?"":`!${de(n)}`;return a_.set(e,r),r}function kw(e,t){return de([e,String(t.flowHeight),t.contentKey,t.projectionEpoch??"",T3(t),k3(t)])}function l_(e,t,n){if(!e)return "";let r=(o,a)=>de([...a].map(([i,l])=>kw(`${o}${i}`,l)).sort());return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+de([r("h",e.headers),r("f",e.footers),bc(e)])}function s_(e){return e.root.children.some(t=>t.kind!=="textValue"&&t.namespaceUri===chunkPWTRJSES_cjs.la&&t.localName==="background")}function hs(e,t,n=[]){return {id:e,kind:t==="p"?"paragraph":t==="pPr"?"paragraphProperties":"generic",namespaceUri:chunkPWTRJSES_cjs.la,localName:t,prefix:"w",namespaceBindings:[],attributes:[],children:n}}function v3(e,t){for(let n of e?.children??[]){if(n.kind==="textValue"||n.localName!=="style"||ao(n,"type")!=="paragraph")continue;let r=io(n,"name");if(r&&ao(r,"val")?.toLowerCase()===t)return ao(n,"styleId")??t}return t==="header"?"Header":"Footer"}function d_(e){let t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new Map,a,i=(s,d,c)=>{if(s&&d==="footer")return s;let u=s&&t.get(s);if(u)return u;let f=e();a!==f&&(o.clear(),a=f);let p=`${d}-${c}`;if(!s&&o.has(p))return o.get(p);let g=s?.name??`/__layout/background-${p}.xml`,m=`${s?.id??g}:background-reserve`,h=new Set,y=[];if(!s){let R={...hs(`${m}:style`,"pStyle"),kind:"generic",attributes:[{kind:"wmlVal",namespaceUri:chunkPWTRJSES_cjs.la,localName:"val",prefix:"w",value:v3(f,d)}]},P=hs(`${m}:initial`,"p",[hs(`${m}:pPr`,"pPr",[R])]);y.push(P),h.add(P.id);}if(d==="header"){let R=hs(`${m}:terminal`,"p");h.add(R.id),y.push(hs(`${m}:container`,"sdt",[hs(`${m}:content`,"sdtContent",[R])]));}let b=s?.root??hs(`${m}:root`,d==="header"?"hdr":"ftr"),x={id:s?.id??g,name:g,contentType:s?.contentType??`application/vnd.openxmlformats-officedocument.wordprocessingml.${d}+xml`,root:{...b,children:[...b.children,...y]}};return n.set(x,{original:s,reserveIds:h}),s?t.set(s,x):o.set(p,x),x},l=s=>{let d=s.part&&n.get(s.part);if(!d)return s;let c=r.get(s);if(c)return c;let u={...s,part:d.original,fragments:s.fragments.filter(f=>f.kind!=="paragraph"||!d.reserveIds.has(f.paragraphId)),withPageContext:f=>l(s.withPageContext(f))};return r.set(s,u),u};return {variantPart:i,authoredStory:l,isImplicitPart:s=>n.has(s)&&!n.get(s).original}}var F3="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",O3="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";function C3(e){let t=new Map;for(let n of e.relationships.get(e.mainDocumentPart)??[]){if(n.type!==F3&&n.type!==O3)continue;let r=chunkPWTRJSES_cjs.J(n);r.mode!=="Internal"||!r.target.ok||t.has(r.target.partName)||t.set(r.target.partName,n.id);}return t}function I3(e){return e.relationships.get(e.mainDocumentPart)??e.relationships}var M3=8;function Tw(e,t){return e.root.localName==="ftr"?t.footerDistance:t.headerDistance}function KPe(e){let{view:t,measurer:n,producer:r,cache:o,styleCascade:a,numberingIndex:i,defaultTabStopPt:l,compatibilityMode:s,displayMode:d,revisionAuthorFilter:c,inlineDrawingLayoutForPart:u,drawingLayoutTokenForPart:f,drawingTokenForParagraphForPart:p,linkProjectors:g,projectFieldLink:m,showFieldCodes:h}=e,y=d_(()=>t.stylesRoot()),b=new WeakMap,x=new WeakMap,R=(C,I,O)=>{if(I.rId===O)return I;let k=x.get(C);k||(k=new WeakMap,x.set(C,k));let E=k.get(I),M=E?.get(O);if(M)return M;let A={...I,rId:O,withPageContext:N=>R(C,I.withPageContext(N),O)};return E||(E=new Map,k.set(I,E)),E.set(O,A),A},P=new Map,S=null,w=(C,I,O)=>(S!==I&&(S=I,P=C3(C)),P.get(O)),F=(C,I,O)=>{let k=g.epochForPart(C.name),E=c?.cacheKey??"",M=l?.(),A=s?.(),N=!y.isImplicitPart(C),L=N?f?.(C.name)??"":"",D=Fd(O),H=i?.(),W=a?.(),$=g.projectLinkForPart(C.name),G=b.get(C),z=G?.find(q=>q.width===I&&q.pageHeight===O.height&&q.marginTop===D.top&&q.marginBottom===D.bottom&&q.marginLeft===O.margin.left&&q.marginRight===O.margin.right&&q.storyDistance===Tw(C,O));if(z&&z.producer===r&&z.projectionEpoch===k&&z.revisionAuthorFilterKey===E&&z.defaultTabStopPt===M&&z.compatibilityMode===A&&z.drawingLayoutToken===L&&z.numberingIndex===H&&z.styleCascade===W)return z.story;let Y=i_(C,I,n,r,o,W,void 0,void 0,M,d,N?u?.(C.name):void 0,N&&p?q=>p(C.name,q):void 0,void 0,{pageNumber:1,pageWidth:O.width,pageHeight:O.height,marginLeft:O.margin.left,marginRight:O.margin.right,marginTop:D.top,marginBottom:D.bottom,storyDistance:Tw(C,O)},t.documentProperties(),{compatibilityMode:A,...H?{numberingIndex:H}:{},projectLink:$,...m?{projectFieldLink:m}:{},showFieldCodes:h,projectionEpoch:k,projectionTokenForParagraph:q=>g.tokenForParagraphForPart(C.name,q),projectionTokenForTable:q=>g.tokenForTableForPart(C.name,q),...c?{revisionAuthorFilter:c}:{}}),U={width:I,pageHeight:O.height,marginTop:D.top,marginBottom:D.bottom,marginLeft:O.margin.left,marginRight:O.margin.right,storyDistance:Tw(C,O),producer:r,projectionEpoch:k,revisionAuthorFilterKey:E,defaultTabStopPt:M,compatibilityMode:A,drawingLayoutToken:L,numberingIndex:H,styleCascade:W,story:Y},X=[];for(let q of G??[])q!==z&&X.push(q);return X.push(U),X.length>M3&&X.shift(),b.set(C,X),Y},T=(C,I,O,k,E)=>{let M=s_(t.part());if(!O||!M&&O.headers.size===0&&O.footers.size===0)return;let A=E.width-E.margin.left-E.margin.right,N=(L,D,H)=>{let W=new Map,$=M?["default","first","even"]:[...L.keys()];for(let G of $){let z=L.get(G),Y=M?y.variantPart(z,H,G):z,U=D?.get(G),X=U?.partName===Y.name?U.rId:w(C,I,Y.name),q=y.authoredStory(F(Y,A,E));W.set(G,X?R(I,q,X):q);}return W};return {titlePage:O.titlePage,evenAndOddHeaders:O.evenAndOddHeaders,headers:N(O.headers,k?.headers,"header"),footers:N(O.footers,k?.footers,"footer")}},v=()=>{let C=t.currentPackage(),I=I3(C),O=SS(t.part(),d,c),k=oI(t.part(),d,c),E=t.headerFooterPartsBySection(),M=t.headerFooterResolutionBySection?.()??chunkPWTRJSES_cjs.ef(C);return O.map((A,N)=>{let L=k[N]??N;return T(C,I,E[L],M[L],vi(A.properties))})};return {sectionFurniture:v,furniture(){let C=v();return C[C.length-1]}}}function B3(e,t,n,r,o){let a=Gr(e,r,o);if(!n)return t.map(l=>{if(l.blockStart===l.blockEndExclusive)return;let s=a[l.blockEndExclusive-1];return s?.kind==="paragraph"?Un(s):void 0});let i=[];for(let l of a){if(l.kind!=="paragraph")continue;let s=Un(l);s&&i.push(s);}for(;i.length<t.length;)i.push(void 0);return i}function QPe(e){let t=e.view.currentPackage(),n=chunkPWTRJSES_cjs.ch(t,"footnote"),r=chunkPWTRJSES_cjs.ch(t,"endnote");if(!n&&!r)return;let o=e.view.part();if(chunkPWTRJSES_cjs.dh(o).length===0)return;let a=chunkPWTRJSES_cjs.Tg(t),i=chunkPWTRJSES_cjs.Ug(a),l=chunkPWTRJSES_cjs.Vg(a),s=chunkPWTRJSES_cjs.Wg(void 0,i),d=chunkPWTRJSES_cjs.Xg(void 0,l),c=RS(o,e.displayMode,e.revisionAuthorFilter),u=B3(o,c.sections,c.truncated,e.displayMode,e.revisionAuthorFilter),f=c.sections.map((h,y)=>chunkPWTRJSES_cjs.Wg(chunkPWTRJSES_cjs.Rg(u[y]),i)),p=c.sections.map((h,y)=>chunkPWTRJSES_cjs.Xg(chunkPWTRJSES_cjs.Sg(u[y]),l)),g=e.inlineDrawingLayoutForPart?h=>{let y=e.inlineDrawingLayoutForPart(h);if(y)return {inlineDrawingLayout:y,...e.drawingTokenForParagraphForPart?{drawingTokenForParagraph:b=>e.drawingTokenForParagraphForPart(h,b)}:{}}}:void 0,m=[n,r];return {footnotesPart:n,endnotesPart:r,footnotePropsBySection:f.length>0?f:[s],endnotePropsBySection:p.length>0?p:[d],documentFootnoteProps:s,documentEndnoteProps:d,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade?.(),numberingIndex:e.numberingIndex?.(),lineGridPitchBySection:c.sections.map(h=>$l(h.properties)),defaultTabStopPt:e.defaultTabStopPt,compatibilityMode:e.compatibilityMode,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,projectLinkForPart:e.linkProjectors.projectLinkForPart,linkRelsEpoch:m.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:m.map(h=>h?e.linkProjectors.epochForPart(h.name):"").join("\0"),...g?{drawingsForPart:g}:{},...g&&e.drawingLayoutEpochForPart?{drawingLayoutEpoch:m.map(h=>h?e.drawingLayoutEpochForPart(h.name):"").join("\0")}:{}}}function ewe(e,t,n){return chunkPWTRJSES_cjs.Ig(e.currentPackage(),t,n)}var L3=new TextEncoder,E3=512,Yi=Object.freeze({title:"field-projected",creator:"field-projected",subject:"field-projected",keywords:"field-projected",lastModifiedBy:"field-projected",description:"field-projected",company:"reserved",manager:"reserved"}),A3=Object.freeze({title:Yi.title,creator:Yi.creator,subject:Yi.subject,keywords:Yi.keywords,lastModifiedBy:Yi.lastModifiedBy,description:Yi.description}),vw=Object.freeze(Object.keys(A3)),c_=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"}),u_=new WeakMap;function N3(e){let t=u_.get(e);if(t)return t;let n=[],r=[e],o=[e];for(;o.length>0;){let s=o.pop();if(s!==e&&s.kind==="paragraph"&&r.push(s),s.kind==="hyperlink"&&n.push(s),s.kind!=="textValue")for(let d=s.children.length-1;d>=0;d-=1)o.push(s.children[d]);}let a=new Set;for(let s of r){let d=bd(s,[],void 0,void 0,void 0,void 0,"all-markup",void 0,void 0,void 0,void 0,c_),c=new Set(d.map(u=>u.text));for(let u of vw)c.has(c_[u])&&a.add(u);}let i=vw.filter(s=>a.has(s)),l=Object.freeze({links:Object.freeze(n),documentProperties:Object.freeze(i)});return u_.set(e,l),l}function f_(e){return chunkPWTRJSES_cjs.f(L3.encode(de(e)))}var m_=new WeakMap;function p_(e,t){let n=new WeakMap,r=new WeakMap,o=Of(),a=s=>{let d=e.packageRevision(),c=e.currentPackage(),u=m_.get(e);(!u||u.revision!==d||u.pkg!==c)&&(u={revision:d,pkg:c,epochs:new Map},m_.set(e,u));let f=u.epochs.get(s);if(f!==void 0)return f;let p=["story-projection-part:v1",s];p.push(de(Object.keys(Yi).map(h=>`${h}:${Yi[h]}`)));for(let h of c.relationships.get(s)??[])p.push(de([h.id,h.type,h.rawTarget,h.targetMode,String(h.order)]));for(let h of c.externalTargets)h.ownerPart===s&&p.push(de([h.id,h.type,h.rawTarget,h.sinkSafe?"1":"0"]));let g=e.documentProperties();for(let h of vw)p.push(de([h,g[h]??""]));let m=`story-projection-part:${f_(p)}`;return u.epochs.size<E3&&u.epochs.set(s,m),m},i=(s,d)=>{let c=N3(d);if(c.links.length===0&&c.documentProperties.length===0)return "";let u=t(s),f=a(s),p=n.get(d),g=p?.get(u);if(g?.epoch===f)return g.token;let m=e.documentProperties(),h=["story-projection:v1"];for(let x of c.links){let R=u(x);h.push(R?de([R.id,R.kind,R.href??"",R.anchor??"",R.tooltip??""]):"no-link");}for(let x of c.documentProperties)h.push(de([x,m[x]??""]));let y=`story-projection:${f_(h)}`,b=p??new WeakMap;return b.set(u,{epoch:f,token:y}),p||n.set(d,b),y};return Object.freeze({tokenForParagraphForPart:i,tokenForTableForPart:(s,d)=>{let c=t(s),u=a(s),f=r.get(d),p=f?.get(c);if(p?.epoch===u)return p.token;let g=Ha(d,h=>i(s,h),{rows:o,scope:c,epoch:u}),m=f??new WeakMap;return m.set(c,{epoch:u,token:g}),f||r.set(d,m),g},epochForPart:a})}var D3=512;function g_(e){return t=>{if(t.kind==="textValue")return null;let n=chunkPWTRJSES_cjs.Bd(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 dwe(e){let t=g_(o=>e.relationshipTarget(o)),n=new Map,r=o=>{let a=n.get(o);if(a)return a;let i=g_(l=>chunkPWTRJSES_cjs.Ig(e.currentPackage(),o,l));return n.size<D3&&n.set(o,i),i};return Object.freeze({projectLink:t,projectLinkForPart:r,...p_(e,r)})}var _3=4096;function H3(e){let t=e.tooltip!==null?{tooltip:chunkPWTRJSES_cjs.v(e.tooltip)}:{};if(e.target!==null){let o=chunkPWTRJSES_cjs.Q(e.target);if(o.ok&&o.href.length>0&&chunkPWTRJSES_cjs.C(o.href).ok){let i=e.anchor!==null&&!o.href.includes("#")?chunkPWTRJSES_cjs.Q(chunkPWTRJSES_cjs.v(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:chunkPWTRJSES_cjs.v(e.anchor)}:{},...t}}if(e.anchor===null)return null}if(e.anchor===null)return null;let n=chunkPWTRJSES_cjs.v(e.anchor),r=chunkPWTRJSES_cjs.Q(n);return {kind:"internal",href:r.ok&&r.href.length>0?`#${r.href}`:null,authored:e.anchor,anchor:n,...t}}function mwe(){let e=new Map,t=new Map,n=0;return {project(r){let o=H3(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>=_3)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();}}}var Kf=new WeakMap,Ya=null;function j3(e){let t=Kf.get(e);if(t)return t;let n=new Set,r=new Set,o=0,a=s=>{for(let d of s.rows)if(!d.isHeaderRepeat)for(let c of d.cells)i(c.blocks);},i=s=>{for(let d of s){if(d.kind==="paragraph"){n.add(d.paragraphId),o+=d.lines.length;continue}r.add(d.tableId),a(d);}};a(e);let l={paragraphIds:n,nestedTableIds:r,lineCount:o};return Kf.set(e,l),l}function h_(e,t){if(e===t)return;let n=Kf.get(e);n&&(Kf.set(t,n),Ya);let r=Ny.get(e);r&&!r.drawsOthers&&Ny.set(t,r);}var Ny=new WeakMap;function W3(e){let t=e.paragraphId;for(let n of e.lines??[]){if(n.range.paragraphId!==t)return true;for(let r of n.spans)if(r.range.paragraphId!==t)return true;for(let r of n.drawings??[])if(r.paragraphId!==t)return true}return false}function hwe(e){let t=Ny.get(e);if(t)return t.ids;let n=new Set,r=null,o=l=>{for(let s of l.rows)if(!s.isHeaderRepeat)for(let d of s.cells)a(d.blocks);},a=l=>{for(let s of l){if(s.kind!=="paragraph"){o(s);continue}if(n.add(s.paragraphId),!!W3(s)){r??=new Set;for(let d of Sa(s))r.add(d);}}};o(e);let i;if(r){for(let l of n)r.add(l);i=r;}else i=Kf.get(e)?.paragraphIds??n;return Ny.set(e,{ids:i,drawsOthers:r!==null}),i}function Fw(e,t){let[n,r]=e.size<=t.size?[e,t]:[t,e];for(let o of n)if(r.has(o))return true;return false}function y_(e,t,n){let r=j3(e);return Fw(r.paragraphIds,t)||Fw(r.paragraphIds,n)||Fw(r.nestedTableIds,t)?null:(r.lineCount)}var z3="http://schemas.openxmlformats.org/wordprocessingml/2006/main",G3="http://schemas.microsoft.com/office/word/2010/wordml",V3="http://schemas.microsoft.com/office/word/2012/wordml";function K3(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===z3)return t.value}}function Oc(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function ys(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function Xa(e,t){let n=ys(e,t);return n?K3(n):void 0}function $f(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Dy(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===G3)return "checkbox";if(r==="repeatingSection"&&o===V3)return "repeatingSection"}return "richText"}function b_(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(chunkPWTRJSES_cjs.Uc(o)&&r<chunkPWTRJSES_cjs.Tc){let a=t(chunkPWTRJSES_cjs.Xc(o),r+1);if(a)return a}}return null};return t(chunkPWTRJSES_cjs.Xc(e),0)??"inline"}function Cc(e){let t=x_.get(e);if(t!==void 0)return t;let n=Uf(e.root,0);return _y!==null&&_y===n?n=_y:_y=n,x_.set(e,n),n}var _y=null,x_=new WeakMap,S_=new WeakMap;function Uf(e,t){if(e.kind==="textValue")return "";let n=e.kind==="paragraph"||e.kind==="table"||e.kind==="tableRow"||chunkPWTRJSES_cjs.Uc(e);if(n){let o=S_.get(e);if(o!==void 0&&o.depth===t)return o.token}let r;if(chunkPWTRJSES_cjs.Uc(e)){if(t>=chunkPWTRJSES_cjs.Tc)return "";let o=Oc(e),a=[e.id,Xa(o,"alias")??"",Xa(o,"tag")??"",$f(Xa(o,"lock")),Dy(o),ys(o,"showingPlcHdr")?"1":"0",ys(o,"dataBinding")?"1":"0"].join(":"),i=chunkPWTRJSES_cjs.Xc(e).map(l=>Uf(l,t+1)).filter(l=>l.length>0);r=[a,...i].join("|");}else r=e.children.map(o=>Uf(o,t)).filter(o=>o.length>0).join("|");return n&&S_.set(e,{depth:t,token:r}),r}function R_(e){let{paragraphId:t,range:n}=e;return e.level!=="inline"||t===void 0||n===void 0?{}:{range:{paragraphId:t,start:n.start,end:n.end}}}function P_(e,t){return e===t?true:!e||!t?false:e.paragraphId===t.paragraphId&&e.start===t.start&&e.end===t.end}function k_(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 Ow=new WeakMap,w_=new WeakMap;function T_(e){if(e.length===1)return Yf(e[0]);let t=Ow.get(e[0]);if(t&&Hy(t.parts,e))return t.index;let n=e.map(d=>Yf(d)),r=w_.get(n[0]);if(r&&Hy(r.indexes,n))return Ow.set(e[0],{parts:e,index:r.index}),r.index;let o=[],a=new Set,i=new Set;for(let d of n){for(let c of d.controls)o.push(c);for(let c of d.neededBlockIds)a.add(c);for(let c of d.neededParagraphIds)i.add(c);}let l=`${[...a].sort().join(",")};${[...i].sort().join(",")}`,s={controls:o,neededBlockIds:a,neededParagraphIds:i,neededToken:l};return w_.set(n[0],{indexes:n,index:s}),Ow.set(e[0],{parts:e,index:s}),s}var Cw=new chunkPWTRJSES_cjs.mf;function Hy(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 v_=new chunkPWTRJSES_cjs.mf;function $3(e){for(let t of chunkPWTRJSES_cjs.Oc(e))if(t.root.kind!=="textValue"){for(let n of t.root.children)if(n.kind!=="textValue")return n}return null}function Yf(e){let t=Cw.get(e);if(t!==void 0)return t;let n=Y3(e),r=$3(e),o=r?v_.get(r):void 0;if(o&&Hy(o.lists,n))return Cw.set(e,o.index),o.index;let a=[];for(let d of n)for(let c of d)a.push(c);let i=new Set,l=new Set;for(let d of a){for(let c of d.blockIds)i.add(c);d.paragraphId!==void 0&&l.add(d.paragraphId);}let s={controls:a,neededBlockIds:i,neededParagraphIds:l,neededToken:`${[...i].sort().join(",")};${[...l].sort().join(",")}`};return r&&v_.set(r,{lists:n,index:s}),Cw.set(e,s),s}var U3=Object.freeze([]);function Y3(e){let t=[],n=(i,l,s=0)=>{for(let d of i){if(d.kind==="paragraph"||d.kind==="table"){l.push(d.id);continue}let c=chunkPWTRJSES_cjs.Nc(d);if(c!==null&&s<chunkPWTRJSES_cjs.Tc){n(c,l,s+1);continue}(d.kind==="tableRow"||d.kind==="tableCell")&&n(d.children,l,s);}},r=(i,l,s,d,c)=>{if(!(d>=chunkPWTRJSES_cjs.wa)){for(let u of i)if(!(u.kind==="textValue"||u.kind==="paragraphProperties")){if(chunkPWTRJSES_cjs.Uc(u)){let f=chunkPWTRJSES_cjs.jg(l).spanOf(u);if(!f)continue;let p=Oc(u),g=$f(Xa(p,"lock")),m=[...c,g];r(chunkPWTRJSES_cjs.Xc(u),l,s+1,d+1,m),t.push({control:u,nestingDepth:s,lockStack:m,level:"inline",paragraphId:l.id,range:f,blockIds:[]});continue}chunkPWTRJSES_cjs.ya(u)&&r(u.children,l,s,d+1,c);}}},o=(i,l,s,d=0)=>{for(let c of i){if(c.kind==="textValue")continue;if(c.kind==="paragraph"){r(c.children,c,l,0,s);continue}if(c.kind==="table"){if(Uf(c,l)==="")continue;for(let y of c.children)y.kind==="tableRow"&&o([y],l,s,d);continue}if(c.kind==="tableRow"){for(let y of c.children)y.kind==="tableCell"?o(y.children,l,s,d):chunkPWTRJSES_cjs.Uc(y)&&o([y],l,s,d);continue}if(!chunkPWTRJSES_cjs.Uc(c)){let y=chunkPWTRJSES_cjs.Nc(c);y!==null&&d<chunkPWTRJSES_cjs.Tc&&o(y,l,s,d+1);continue}if(l>=chunkPWTRJSES_cjs.Tc)continue;let u=Oc(c),f=$f(Xa(u,"lock")),p=[...s,f],g=b_(c),m=chunkPWTRJSES_cjs.Nc(c)??[];if(g==="inline"){o(m,l+1,p,d+1);continue}let h=[];n(m,h),t.push({control:c,nestingDepth:l,lockStack:p,level:g,blockIds:h}),o(m,l+1,p,d+1);}},a=[];for(let i of chunkPWTRJSES_cjs.Oc(e))if(i.root.kind!=="textValue")for(let l of i.root.children){if(l.kind==="textValue")continue;let s=F_.get(l);if(s!==void 0){a.push(s);continue}let d=t.length;o([l],0,[]);let c=t.length===d?U3:Object.freeze(t.slice(d));F_.set(l,c),a.push(c);}return a}var F_=new chunkPWTRJSES_cjs.mf,Xf=1<<20,jy=new WeakMap,O_=null,C_=0;function X3(e){return e!==O_&&(O_=e,C_+=1),C_}function Z3(e,t,n,r){let o=jy.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],l=e.index*Xf,s=0,d=0,c=p=>s===0&&d===0?p:{x:p.x+s,y:p.y+d,width:p.width,height:p.height},u=(p,g)=>{if(g.kind==="paragraph"){t.neededBlockIds.has(g.paragraphId)&&(a.push({pageIndex:p,blockId:g.paragraphId,box:c(Ud(g))}));let h=t.neededParagraphIds.has(g.paragraphId);for(let y of g.lines){let b=l;if(l=Math.min(l+1,e.index*Xf+Xf-1),!h)continue;let x=Math.max(0,y.box.height-y.leading-(y.trailingSpacing??0)),R=[];for(let P of y.spans)R.push({pageIndex:p,paragraphId:P.range.paragraphId,start:P.range.start,end:P.range.end,line:b,box:{x:P.box.x+s,y:P.box.y+y.leading+d,width:P.box.width,height:x}});for(let P of y.drawings??[])R.push({pageIndex:p,paragraphId:P.paragraphId,start:P.start,end:P.start+1,line:b,box:c(P.paintBounds)});y.drawings?.length&&R.sort((P,S)=>P.start-S.start||P.end-S.end);for(let P of R)i.push(P);}return}t.neededBlockIds.has(g.tableId)&&(a.push({pageIndex:p,blockId:g.tableId,box:c(g.box)}));let m=y_(g,t.neededBlockIds,t.neededParagraphIds);if(m!==null){let h=e.index*Xf+Xf-1;l=Math.min(l+m,h);return}for(let h of g.rows)if(!h.isHeaderRepeat)for(let y of h.cells)for(let b of y.blocks)u(p,b);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){s=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let g of p.fragments)u(e.index,g);}s=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return jy.set(e,f),f}function q3(e,t,n){let r=X3(t.neededToken),o=new Map,a=new Map,i=new Set;for(let l of e.pages){let s=Z3(l,t,r);for(let d of s.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of s.spans){let c=a.get(d.paragraphId);c?(d.start<c[c.length-1].start&&i.add(d.paragraphId),c.push(d)):a.set(d.paragraphId,[d]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function J3(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=Sp(i);return l?[{pageIndex:a,box:l}]:[]})}function Q3(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),l=0,s=o.length;for(;!i&&l<s;){let d=l+(s-l>>1);(t.start===t.end?o[d].end<t.start:o[d].end<=t.start)?l=d+1:s=d;}i&&(l=0);for(let d=l;d<o.length;d+=1){let c=o[d];if(c.end<=t.start)continue;if(c.start>=t.end){if(i)continue;break}let u=a.get(c.line);u?u.boxes.push(c.box):a.set(c.line,{pageIndex:c.pageIndex,boxes:[c.box]});}if(a.size===0&&t.start===t.end){let d=[],c=new Set;for(let u=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(d.push({pageIndex:f.pageIndex,box:f.box}),!i)break;continue}let p=f.start===f.end?f.box.x:f.box.x+f.box.width*(t.start-f.start)/Math.max(1,f.end-f.start);if(d.push({pageIndex:f.pageIndex,box:{x:p,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(d.length>0)return d}return [...a.entries()].sort(([d],[c])=>d-c).flatMap(([,d])=>{let c=Sp(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}var I_=new WeakMap;function e4(e){let t=I_.get(e);if(t!==void 0)return t;let n=Oc(e),r=Xa(n,"alias"),o=Xa(n,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:Dy(n),placeholder:ys(n,"showingPlcHdr")!==void 0,bound:ys(n,"dataBinding")!==void 0};return I_.set(e,a),a}function t4(e,t,n){let r=e.level==="inline"&&e.paragraphId&&e.range?Q3(e.paragraphId,e.range,t):J3(e.blockIds,t);return {...Mw(e),fragments:r}}function n4(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 r4(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&&P_(e.range,t.range)&&n4(e.fragments,t.fragments)}function Ic(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(!r4(e[n],t[n]))return false;return true}function Zf(e,t){return {...t,revision:e.revision,pages:e.pages}}var M_=new WeakMap;function Iw(e,t,n=Cc(t),r){let o=k_(e,t);if(o.length>1){let f=o.map(p=>Cc(p));n=f.some(p=>p!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(g=>g.contentControls!==void 0&&g.contentControls.length>0);if(!f&&e.controlContextToken===n&&Ic(e.contentControls,[]))return e;let p=f?e.pages.map(g=>g.contentControls!==void 0&&g.contentControls.length>0?{...g,contentControls:[]}:g):e.pages;return {...e,pages:p,contentControls:[],controlContextToken:n}}let a=T_(o),i=q3(e,a),l=a.controls.map(f=>t4(f,i)),s=new Map;for(let f of l)for(let p of f.fragments){let g=s.get(p.pageIndex),m={...f,fragments:[p]};g?g.push(m):s.set(p.pageIndex,[m]);}if(e.controlContextToken===n&&Ic(e.contentControls,l)&&e.pages.every(f=>Ic(f.contentControls,s.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=s.get(f.index)??[];if(Ic(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let g=M_.get(f);if(g&&Ic(g.controls,p))return g.wrapped;let m={...f,contentControls:p},h=jy.get(f);return h&&jy.set(m,h),M_.set(f,{controls:p,wrapped:m}),m}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&Ic(e.contentControls,l)?e:{...e,pages:u,contentControls:l,controlContextToken:n}}function _we(e,t){return Yf(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):B_(r.control).some(o=>t.has(o)):true).map(Mw)}function B_(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkPWTRJSES_cjs.Uc(o)){n(chunkPWTRJSES_cjs.Xc(o));continue}n(o.children);}};return n(chunkPWTRJSES_cjs.Xc(e)),t}function Hwe(e,t){let n=null;for(let r of Yf(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||B_(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?Mw(n):null}function Mw(e){let t=e4(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:rx(e.lockStack),placeholder:t.placeholder,bound:t.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[],...R_(e)}}function qf(e){return e?xl(e.val,e.widthPt):0}function Wy(e,t,n){return e==="page"?t?.spacePt??0:Math.max(0,n-(t?.spacePt??0)-qf(t))}function zy(e,t,n){if(!e||e.display==="firstPage"&&!n||e.display==="notFirstPage"&&n)return;let r=qf(e.top),o=qf(e.left),a=qf(e.bottom),i=qf(e.right),l=Fd(t),s=Wy(e.offsetFrom,e.top,l.top),d=Wy(e.offsetFrom,e.left,t.margin.left),c=t.height-Wy(e.offsetFrom,e.bottom,l.bottom),u=t.width-Wy(e.offsetFrom,e.right,t.margin.right),f=u-d,p=c-s;if(f<=0||p<=0)return;let g=[];if(e.top&&g.push({side:"top",edge:e.top,box:{x:d,y:s,width:f,height:r}}),e.bottom&&g.push({side:"bottom",edge:e.bottom,box:{x:d,y:c-a,width:f,height:a}}),e.left&&g.push({side:"left",edge:e.left,box:{x:d,y:s,width:o,height:p}}),e.right&&g.push({side:"right",edge:e.right,box:{x:u-i,y:s,width:i,height:p}}),g.length!==0)return {zOrder:e.zOrder,display:e.display,strokes:g}}var o4=.25,a4=.5;function L_(e,t,n){let r=n?n.offsetPt:e.style.fontSizePt*o4,o=n?n.thicknessPt:a4;return {x:e.box.x,y:Math.max(t.box.y,t.box.y+t.baseline-pi(e.style)-r),width:e.box.width,height:o}}var Jf=chunkPWTRJSES_cjs.Hc,Gy=512,E_=6;function i4(e,t){return `note-${e}-${t}`}function t0e(e){if(!e)return [];let t=[];for(let n of chunkPWTRJSES_cjs.Jc(e.root)){if(t.length>=Jf)break;chunkPWTRJSES_cjs.Ac(n)&&t.push(n);}return t}function l4(e,t){if(e){for(let n of chunkPWTRJSES_cjs.Jc(e.root))if(chunkPWTRJSES_cjs.zc(n)===t)return n}}function N_(e,t,n){let r=chunkPWTRJSES_cjs.xc(e),o=chunkPWTRJSES_cjs.yc(e);if(!r||o===null)return null;let a=chunkPWTRJSES_cjs.oc(r,o),i=n.displayMode??Ue,l=Od(e,i,n.revisionAuthorFilter),s=i4(r,o),d=0,c=Math.max(1,t),u=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,f=chunkPWTRJSES_cjs.zc(e)==="separator"||chunkPWTRJSES_cjs.zc(e)==="continuationSeparator",p={...n.noteMarks??{marks:new Map},activeNoteKey:a,...f?{measureSeparatorMarkers:true}:{}},g=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,m=(n.ownerPartName?n.projectLinkForPart?.(n.ownerPartName):void 0)??n.projectLink,h=Td({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade,measurer:n.measurer},l).listItems,y=za(l,0,c,0,0,{measurer:n.measurer,cache:n.cache,producer:Ki(n.producer)+(f?"|separator-metrics":"")+(n.showFieldCodes?"|field-codes":"")+(i===Ue?"":`|rev:${i}`)+(n.revisionAuthorFilter?`|reviewers:${n.revisionAuthorFilter.cacheKey}`:"")+`|${a}`,nextLineId:()=>`${s}-line-${d++}`,styleCascade:n.styleCascade,...h?{listItems:h}:{},noteMarks:p,...m?{projectLink:m}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},showFieldCodes:n.showFieldCodes,...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.ownerPartName&&n.projectionTokenForParagraphForPart?{projectionTokenForParagraph:P=>n.projectionTokenForParagraphForPart(n.ownerPartName,P)}:{},...n.ownerPartName&&n.projectionTokenForTableForPart?{projectionTokenForTable:P=>n.projectionTokenForTableForPart(n.ownerPartName,P)}:{},...n.refFields?{refFields:n.refFields}:{},displayMode:i,compatibilityMode:n.compatibilityMode,...n.lineGridPitchPt!==void 0?{paragraphLineUnitPt:n.lineGridPitchPt,snapsStoryLines:true}:{},tableNestingOffset:1,...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...g?{inlineDrawingLayout:g.inlineDrawingLayout,...g.drawingTokenForParagraph?{drawingTokenForParagraph:g.drawingTokenForParagraph}:{}}:{},...n.revisionAuthorFilter?{revisionAuthorFilter:n.revisionAuthorFilter}:{}}),b=y.blocks,x=y.bottom,R;if(b.length>Gy){b=b.slice(0,Gy);let P=b[b.length-1];x=P?P.box.y+P.box.height:0,R="note-fragment-limit";}if(x>u){let P=[],S=0;for(let w of b){let F=w.box.y+w.box.height;if(F>u+.001&&P.length>0)break;P.push(w),S=F;}b=P,x=S,R=R??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkPWTRJSES_cjs.zc(e),fragments:b,flowHeight:x,...R?{fallbackReason:R}:{}}}function A_(e,t,n,r){if(!e)return null;let o=chunkPWTRJSES_cjs.Lc(e.root,t);return o?N_(o,n,{...r,ownerPartName:e.name}):null}function To(e,t,n,r,o){if(!o)return A_(e,t,n,r);let a=`${e?.name??"none"}\0${t}\0${n}\0${r.lineGridPitchPt??""}`,i=o.get(a);if(i!==void 0)return i;let l=A_(e,t,n,r);return o.set(a,l),l}function s4(e,t){return "single"}function d4(e,t,n){let r=Od(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(ip(a)).length>0||!c4(o))return false}return true}function c4(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!u4(t))return false;continue}return false}return true}function u4(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkPWTRJSES_cjs.vc(t)||chunkPWTRJSES_cjs.wc(t)||chunkPWTRJSES_cjs.uc(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function Bw(e,t,n,r,o,a){let i=s4(),l=l4(e,t);if(l){let s=N_(l,n,{...r,lineGridPitchPt:void 0,...e?{ownerPartName:e.name}:{}});if(s){let d=d4(l,r.displayMode,r.revisionAuthorFilter),c=s.flowHeight,u,f,p=false;if(d){let m=s.fragments.filter(w=>w.kind==="paragraph"),h=m.flatMap(w=>w.lines.flatMap(F=>F.spans.filter(T=>T.noteSeparator).map(T=>({line:F,span:T}))));p=h.length===1;let y=m.at(-1),x=Od(l,r.displayMode,r.revisionAuthorFilter).at(-1),R=x?.kind==="paragraph"?x.children.find(w=>w.kind==="paragraphProperties"):void 0,P=R?.kind==="paragraphProperties"&&R.children.some(w=>w.localName==="pStyle"||w.localName==="spacing"&&w.attributes.some(F=>F.localName==="after"));c-=P?0:y?.spacing.after??0;let S=h[0];S&&(f=S.span.style.color,u=L_(S.span,S.line,r.measurer.strikeoutMetrics?.(S.span.style)));}let g=a??Number.POSITIVE_INFINITY;return c>g+.001?{kind:t,fragments:[],flowHeight:E_,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:d&&p?[]:s.fragments,flowHeight:c,synthetic:false,...d&&p?{ruleStyle:i,...u?{ruleBox:u}:{},...f!==void 0?{ruleColor:f}:{}}:{}}}}return {kind:t,fragments:[],flowHeight:E_,synthetic:true,ruleStyle:i}}function f4(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 Lw(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=e.ruleBox??f4(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 Vy(e,t,n){return {lineGridPitchPt:e.lineGridPitchBySection?.[n],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 Ew(){let e=new Map;return {get(t,n,r,o,a,i,l){let d=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=Bw(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function Aw(e,t,n,r,o,a,i,l){if(e)return e.get(t,n,r,o,a,i,l);let s=Bw(t,n,r,i,o,a);return s.fallbackReason&&l.push(s.fallbackReason),s}var D_=new WeakMap;function Nw(e){let t=D_.get(e);return t||(t=new Map,D_.set(e,t)),t}function Qf(e,t,n){if(n.tableRow||!n.evictable)return n.bottom;let r=e.fragments.findIndex(l=>l.kind==="paragraph"&&or(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+qg;l++){let s=e.fragments[l];if(s?.kind!=="paragraph"||s.positionedFrame||s.outOfFlow||i&&!yt(i.props).keepNext)break;let d=s.lines;if(!d.length)break;let c=yt(s.props),u=l===r?d.findIndex(g=>g.box.y+g.box.height>=n.bottom-.001)+1:1;if(u<=0)break;c.keepLines&&s.fragmentIndex===0&&s.paragraphEnd?u=d.length:c.widowControl&&(u=Math.min(d.length,Math.max(2,u)),s.paragraphEnd&&d.length-u===1&&(u=d.length));let f=d[u-1],p=f.box.y+f.box.height;if(p-o.box.y>=e.contentBox.height||(a=Math.max(a,p),u<d.length||!s.paragraphEnd))break;i=s;}return a}function em(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 Zi(e,t){return Math.max(0,e-14-t)}var bs=.5,__=2*bs;function Ky(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 H_(e,t,n){n<=0||e.set(t,Math.max(e.get(t)??0,n));}function Xi(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function tm(e,t){let n=Xi(e),r=Xi(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 $y(e,t){let n=Xi(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function qi(e){return [...Xi(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function Uy(e,t,n,r,o,a){if(!e)return;let i=chunkPWTRJSES_cjs.Jc(e.root).find(d=>chunkPWTRJSES_cjs.zc(d)==="continuationNotice"),l=i?chunkPWTRJSES_cjs.yc(i):null;if(l===null)return;let s=To(e,l,t,r,o);if(!(!s||s.flowHeight<=0)){if(s.fallbackReason||s.flowHeight>=n-14){a?.push("note-continuation-notice-height-cap");return}return s}}function j_(e,t){return e.some(n=>t.has(n.scopeId))}function W_(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 z_=new WeakMap,G_=new WeakMap;function m4(e,t,n){let r=e.map(o=>`${o.blockStart}-${o.blockEndExclusive}`).join(",");return `${t};${n?.cacheKey??""};${r}`}function Dw(e){let t=Bi(e);return t?t.members.map(n=>n.id):[e.id]}function _w(e){let t=G_.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),G_.set(e,n),n}function p4(e,t){if(e.kind!==t.kind)return false;let n=e.kind==="paragraph"?Dw(e):_w(e),r=t.kind==="paragraph"?Dw(t):_w(t);return n.length===r.length&&n.every((o,a)=>o===r[a])}function V_(e,t,n,r,o,a,i){let l=Gr(e,n,r,a,i),s=m4(t,n,r),d=o?z_.get(o):void 0;if(d?.boundsFingerprint===s&&d.blocks.length===l.length&&l.every((u,f)=>u===d.blocks[f]||p4(u,d.blocks[f])))return d.blocks=l,d.map;let c=new Map;for(let u=0;u<t.length;u+=1){let f=t[u];for(let p=f.blockStart;p<f.blockEndExclusive;p+=1){let g=l[p];if(!g)continue;let m=g.kind==="paragraph"?Dw(g):_w(g);for(let h of m)c.set(h,u);}}return o&&z_.set(o,{blocks:l,boundsFingerprint:s,map:c}),c}var K_=new WeakMap;function $_(e){e&&(e.settledReserves=null,e.reflowSpent=null,e.orphanPolicyPart=void 0);}function Hw(e,t,n){if(!e)return false;let r=K_.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 K_.set(e,{part:n,pages:o}),r?.part!==n?false:o.some((a,i)=>r.pages[i]!==void 0&&r.pages[i]!==a)}function g4(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=Mi(r,0,e.lines.length,yt(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,s=i.box.y+i.box.height,d=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,s-l)},...d&&d.length>0?{borders:d}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,s-e.shadingBox.y)}}:{}},u=a[a.length-1],f=a[0].box.y,p=u.box.y+u.box.height,g=e.borders?.filter(h=>h.side!=="top"),m={...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,p-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,p-f)}}:{}};return {head:c,tail:m}}function Za(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<Gy;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=t+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let g=g4(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 m=n?.fullContentHeight??t,y=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=m-.001&&y>m+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let b=e.fragments.slice(a),x=b[0]?.box.y??0;return {head:[],headHeight:0,tail:uw(b,-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 s=l[0]?.box.y??0,d=uw(l,-s),c=Va(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}var jw=2;function U_(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&&tD(r.nextPage,e.endsPageRowId))&&!(e.tableRow===true?h4(t,n,r.fullNoteColumn):r.paragraphSplitAllowed!==false&&Ww(t,n,r.fullNoteColumn))}function h4(e,t,n){return Mc(e,t,n).lines>=jw}function Mc(e,t,n){let r=Za(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 Ww(e,t,n){return e.fragments.some(r=>r.kind!=="paragraph"||yt(r.props).keepNext)?false:Mc(e,t,n).lines>0}function Y_(e,t,n,r,o){if(r.fragmentIndex===0||!vy(t)||!vy(n))return 0;let a=y4(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||ky(i))return 0;let l=r.rows.find(b=>!b.isHeaderRepeat);if(!l||l.isContinuation)return 0;let s=[];for(let b of o){if(!eD(l,b))continue;let x=Ty(n,r,b,e.opts.compatibilityMode);if(x===null||x==="table"||x.row!==l)return 0;s.push({ref:b,band:x});}if(s.length===0)return 0;let d=t.contentBox.height,c=Oy(t),u=d-c,f=Number.POSITIVE_INFINITY;for(let{band:b}of s)f=Math.min(f,b.bottom-l.box.y);if(u-e.existingAreaHeight<f-.001)return 0;let p=Zi(d,e.plainSeparatorHeight),g=Math.max(0,d-e.plainSeparatorHeight),m=e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight,h=0,y=false;for(let{ref:b,band:x}of s){let R=To(e.footnotesPart,b.noteId,t.contentBox.width,e.opts,e.noteLayoutCache);if(!R||R.flowHeight>p-(x.bottom-x.blockTop)+.001)continue;let P=Math.max(0,d-(c+x.bottom-l.box.y)-m-h);if(R.flowHeight<=P+.001){h+=R.flowHeight;continue}let S=Mc(R,P,g);if(S.lines<jw){y=true;break}h+=S.height;}return y?Math.max(0,u-bs):0}function y4(e){for(let t=e.fragments.length-1;t>=0;t-=1){let n=e.fragments[t];if(!vt(n)&&!(n.kind==="paragraph"&&n.positionedFrame))return n}}var X_=qg+1;function Z_(e){let{bodyPage:t,nextPage:n}=e;if(!n||P4(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 Y_(e,t,r,a,o);let i,l;for(let X of o){let q=qo(r,X,e.opts.compatibilityMode);q.bottom<=q.top||(!i||q.bottom<i.bottom-.001)&&(i=q,l=X);}if(!i||!l)return 0;let s=i.bottom-i.top,d=Oy(t),c=t.contentBox.height;if(c-d<s-.001)return 0;let u,f=0;for(let[X,q]of r.fragments.entries()){if(q.kind!=="paragraph"||X>=X_)return 0;if(or(q,l.paragraphId,l.atomOffset)){u=q,f=X;break}}if(!u)return 0;let p=x4(r.fragments,f),g=qo(r,l,e.opts.compatibilityMode).preserveOrphanLine,m=e.ownReservePt??e.existingAreaHeight,h=Va(t.fragments),y=p&&g===true&&S4(e,u,r,l,h,m);if(p&&!y&&Yy(t)&&Yy(r)){let X=R4(r.fragments,f);if(X!==null&&h+X+m<=c+.001)return 0}if(e.allowOrphanDeferral&&g&&!y&&Va(t.fragments)+i.bottom-xc(r)+e.existingAreaHeight<=c+.001)return 0;let b=b4(r.fragments,f,u,i.bottom),x=o.filter(X=>b.blocks.some(({block:q,bottom:V})=>or(q,X.paragraphId,X.atomOffset)&&(q===u||qo(r,X,e.opts.compatibilityMode).bottom<=V+.001)));if(x.length===0)return 0;let R=xc(r),P=u,S=x.some(X=>!or(P,X.paragraphId,X.atomOffset)),w=Math.max(0,(S?b.lineBottom:i.bottom)-R),F=Math.max(0,(S?b.blockBottom:jf(u))-R),T=t.contentBox.width,v=Zi(c,e.plainSeparatorHeight),C=t.fragments.at(-1),I=f===0&&Yy(t)&&Yy(r)&&C?.kind==="paragraph"&&C.paragraphId===u.paragraphId&&C.range.end===u.range.start&&C.box.x===u.box.x&&!C.paragraphEnd?Math.max(0,d-C.box.y):0,O=em(t)&&em(r),k=yt(u.props);if(I>0&&O&&!k.keepLines&&!k.keepNext){let X=Qf(r,l,i),q=e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight,V=true,ie=0;for(let K of x){let J=qo(r,K,e.opts.compatibilityMode);if(J.bottom>X+.001)continue;let fe=J.bottom-J.blockTop+I,ne=To(e.footnotesPart,K.noteId,T,e.opts,e.noteLayoutCache);if(!J.evictable||!ne||fe>=v||ne.flowHeight>v-fe+.001){V=false;break}q+=ne.flowHeight,ie++;}if(V&&ie>0&&Math.max(d,Va(t.fragments))+X-R+q<=c+.001)return 0}let E=0,M=false,A=w,N=e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight;for(let X of x){let q=To(e.footnotesPart,X.noteId,T,e.opts,e.noteLayoutCache);if(!q)continue;let V=qo(r,X,e.opts.compatibilityMode),ie=V.bottom-V.blockTop,K=ie+(X.paragraphId===u.paragraphId?I:0),J=V.evictable?K<v?K:ie:0;if(q.flowHeight>v-J+.001)continue;let fe=Math.max(w,Qf(r,X,V)-R),ne=c-d-fe-N-E,te=M||(e.existingNoticeHeight??0)>0?0:Uy(e.footnotesPart,T,c,e.opts,e.noteLayoutCache)?.flowHeight??0,oe=ne-te;O&&V.evictable&&V.tableRow!==true&&K<v&&q.flowHeight>ne+.001&&Ww(q,oe,v-te)?(E+=Mc(q,oe,v-te).height+te,M=true,A=Math.max(A,fe)):E+=q.flowHeight;}if(E<=0)return 0;let L=N+E,D=M?0:s,H=Math.max(0,c-d-bs);if(!(d+A+D+L<=c+.001))return H;if(d+F+D+L<=c+.001)return 0;let{usedReservePt:G}=e;if(G===void 0)return 0;let z=Math.max(0,c-G-d),Y=w+s>z+.001,U=Math.abs(G-H)<=__;return Y&&!U?0:H}function b4(e,t,n,r){let o=[{block:n,bottom:jf(n)}],a=r,i=o[0].bottom,l=n,s=n.lines.at(-1),d=yt(n.props),c=n.fragmentIndex===0&&n.paragraphEnd===true,u=n.paragraphEnd===true&&(c&&d.keepLines||c&&d.widowControl&&n.lines.length<4||s!==void 0&&r>=s.box.y+(d.widowControl?0:s.box.height)-.001);for(let f=t+1;f<e.length&&f-t<X_&&!(!u||!yt(l.props).keepNext);f++){let p=e[f];if(p.kind!=="paragraph"||p.positionedFrame||p.outOfFlow)break;let g=p.lines.length;if(g===0)break;let m=yt(p.props),h=p.fragmentIndex===0&&p.paragraphEnd===true,y=m.keepLines&&h?g:m.widowControl&&p.fragmentIndex===0?h&&g<4?g:Math.min(2,g):m.widowControl&&p.paragraphEnd&&g<3?g:1,b=p.lines[y-1],x=b.box.y+b.box.height;o.push({block:p,bottom:x}),a=Math.max(a,x),i=Math.max(i,x),l=p,u=y===g&&p.paragraphEnd===true;}return {blocks:o,lineBottom:a,blockBottom:i}}function x4(e,t){for(let n=t-1;n>=0;n-=1){let r=e[n];if(!(r.kind!=="paragraph"||r.positionedFrame||r.outOfFlow)&&!yt(r.props).keepNext)return true}return false}function S4(e,t,n,r,o,a){let i=t.lines[1];if(!i)return false;let l=e.bodyPage.contentBox.height,s=o-xc(n),d=i.box.y+i.box.height-Math.min(i.trailingSpacing??0,i.box.height);if(s+d+a>l+.001)return false;let c=To(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-(s+i.box.y+i.box.height)-u;return Za(c,Math.max(0,f)).head.length===0}function R4(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=yt(o.props),l=a.length,s=1,d=o.fragmentIndex===0&&o.paragraphEnd===true;i.keepLines&&d?s=l:i.widowControl&&o.fragmentIndex===0?s=d&&l<4?l:Math.min(2,l):i.widowControl&&o.paragraphEnd&&l<3&&(s=l);let c=a[s-1];if(s<l||!o.paragraphEnd||!i.keepNext)return c.box.y+c.box.height-Math.min(c.trailingSpacing??0,c.box.height)-n}return null}function Yy(e){let t=Number.NEGATIVE_INFINITY;for(let n of e.fragments)if(!vt(n)&&!(n.kind==="paragraph"&&n.positionedFrame)){if(n.box.y<t-.001)return false;t=n.box.y+n.box.height;}return true}function P4(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===chunkPWTRJSES_cjs.mb)??false;if(!(!o&&(n.positionedFrame||n.outOfFlow)))return o}return false}var q_=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",lineGridPitchBySection:"content-fingerprint",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 zw(e,t){for(let n of Object.keys(q_))if(q_[n]===t&&e[n]!==void 0)return true;return false}function Xy(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function J_(e){return zw(e,"drawing-epoch-guarded")&&e.drawingLayoutEpoch===void 0||zw(e,"relationship-epoch-guarded")&&e.linkRelsEpoch===void 0||zw(e,"projection-epoch-guarded")&&e.projectionEpoch===void 0?null:[e.producer,e.displayMode??Ue,e.revisionAuthorFilter?.cacheKey??"",e.showFieldCodes??false,e.defaultTabStopPt??"",e.compatibilityMode??"",(e.lineGridPitchBySection??[]).join(","),e.drawingLayoutEpoch??"",e.linkRelsEpoch??"",e.projectionEpoch??"",e.refFields?.valuesToken??"",e.documentProperties?JSON.stringify(e.documentProperties):"",Xy(e.documentFootnoteProps),Xy(e.documentEndnoteProps),e.footnotePropsBySection.map(Xy).join(";"),e.endnotePropsBySection.map(Xy).join(";")].join("\0")}var w4=.4;function Gw(e,t,n){return e&&chunkPWTRJSES_cjs.bf(e,"first")&&n===0?"first":e&&chunkPWTRJSES_cjs.bf(e,"even")&&(t+n+1)%2===0?"even":"default"}function Q_(e){let{furniture:t,pageHeight:n,marginTop:r,marginBottom:o}=e,a=n*w4,i=new Map,l=(s,d,c,u=0)=>Math.min(a,hS(c)?kr(c):Math.max(c,d?s+Math.max(d.flowHeight,u):0));return s=>{if(s===0&&e.continuedPageInsets)return e.continuedPageInsets;let d=Gw(t,e.pageIndexStart,s),c=t&&bc(t)?`${d}:${s}`:d,u=i.get(c);if(u)return u;let f=by(t,d,e.pageIndexStart+s),p=l(e.headerDistance,f,r,f&&!hS(r)?v1(t,e.pageIndexStart+s):0),g=l(e.footerDistance,t?.footers.get(d),o),m=Object.freeze({top:p,bottom:g,height:n-p-g});return i.set(c,m),m}}var Vw=new WeakMap;function J0e(e){Vw.delete(e);}function rm(e,t){Vw.set(e,t);}function Kw(e,t,n,r){return Vw.get(e)?.(t,n,r)}function eH(e,t){let{kind:n,box:r,geometry:o}=e,a=n==="header"?r.y+e.headerDistance:r.y+o.height-e.footerDistance-t.flowHeight;return {kind:n,variant:e.variant,partName:t.partName,...t.part?{part:t.part}:{},...t.rId?{rId:t.rId}:{},box:{x:r.x+o.margin.left,y:a,width:e.contentWidth,height:t.flowHeight},fragments:t.fragments,...t.anchoredDrawings?{anchoredDrawings:t.anchoredDrawings}:{}}}function tH(e,t){let{story:n,geometry:r}=e,o=n;for(let a=0;a<8;a+=1){let i=e.kind==="header"?e.headerDistance:r.height-e.footerDistance-o.flowHeight,l={...t,contentInsetTop:e.insets.top,contentInsetBottom:e.insets.bottom,storyTop:i},s=n.withPageContext(l);if(Math.abs(s.flowHeight-o.flowHeight)<=.001)return s;o=s;}throw new Error("header/footer attached-page anchor layout did not converge")}function k4(e){return t=>eH(e,tH(e,t))}var Ji=24;function nH(e){let{furniture:t,geometry:n,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(n.height+Ji),width:n.width,height:n.height}),l=c=>Gw(t,a,c),s=(c,u,f)=>{if(!t)return;let p=l(u),g=c==="header"?by(t,p,a+u):t.footers.get(p);if(!g)return;let m=a+u+1,h={pageNumber:m,pageCount:Math.max(m,e.pageCount()+1),sectionPageCount:u+1,sheetNumber:m},y={kind:c,variant:p,story:g,box:f,geometry:n,headerDistance:r,footerDistance:o,contentWidth:e.contentWidth,insets:e.insetsFor(u)},b=g.pageFieldNeeds,R=Ia(b)||(g.anchoredDrawings?.length??0)>0?tH(y,h):g,P=eH(y,R);return Ia(b)?{...P,pageFieldProjector:k4(y)}:P};return {pageBox:i,variantFor:l,furnitureFor:s,overflowShellAt:(c,u)=>{let f=c-a,p=s("header",f,u),g=s("footer",f,u),m=zy(e.pageBorders,n,f===0);return {insets:e.insetsFor(f),...p?{header:p}:{},...g?{footer:g}:{},...m?{pageBorders:m}:{}}}}}function rH(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:gs(n,r,t);return t+=n.box.height+Ji,i})}function $w(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 Uw(e,t,n,r){let o=Fd(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 oH=new WeakMap;function aH(e,t,n,r){oH.set(e,{evenAndOddHeaders:t,starts:new Map(n.map(o=>[o.pageIndex,o])),runningAfter:new Map(r)});}function iH(e,t){let n=oH.get(t);if(!n)return e;let r=[],o=0,a=1,i=(l,s)=>{let d=l.pageFieldSource;return d&&d.pageNumber!==s?{...l,pageFieldSource:{...d,pageNumber:s}}:l};for(let l of e){if(l.parityBlank)continue;let s=l.pageFieldSource?.pageNumber;if(l.noteStream!==void 0){r.push(i(l,a)),a+=1,o+=1;continue}if(s===void 0){r.push(l),a+=1;continue}let d=n.starts.get(l.index);if(d){let u=d.restart??d.runningBefore+o;$w({breakType:d.breakType,restart:d.restart,nextDisplayed:u,sheetIndex:r.length,evenAndOddHeaders:n.evenAndOddHeaders})&&(r.push(Uw(d.pageIndex,0,d.geometry,void 0)),d.restart===void 0&&(u+=1)),o=d.restart===void 0?u-s:0;}r.push(i(l,s+o));let c=n.runningAfter.get(l.index);c!==void 0?(a=c,o=0):a=s+o+1;}return r}function lH(e){if(e.kind!=="tableRow")return null;let t=e.children.find(a=>a.namespaceUri===chunkPWTRJSES_cjs.la&&a.localName==="trPr");if(!t)return null;let n=null;for(let a of t.children)if(a.kind!=="textValue"&&a.namespaceUri===chunkPWTRJSES_cjs.la&&!(a.localName!=="ins"&&a.localName!=="del")){n=a;break}if(!n)return null;let r=a=>n.attributes.find(i=>i.namespaceUri===chunkPWTRJSES_cjs.la&&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 sH(e,t,n){let r=[];for(let o of e){let a=En(o)?Vn(o):lH(o);if(a){if(r.length>=Cp)return false;r=ar(r,a);}}return Ye(r,t,n)}function dH(e){let t=[];for(let n of e){let r=En(n)?Vn(n):lH(n);r&&t.push([r.kind,r.nodeId,r.author]);}return JSON.stringify(t)}function Zy(e){return `${e.noteKind}|${e.noteId}|${e.paragraphId}|${e.customMarkFollows?1:0}|${e.sectionIndex}`}function cH(e){return e.map(t=>`${Zy(t)}|${t.atomOffset}`).join(";")}function Yw(e){return e.map(Zy).join(";")}function Xw(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||Zy(r)!==Zy(o))return false}return true}var RH=64,PH=8,uH=RH+2*PH,wH=4096,T4=256,fH=12,mH=new WeakMap;function v4(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=J_(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=cH(t),a=null,i=e.notes;if(i){let s=mH.get(i),d=i.inputFingerprint===r&&s!==void 0&&s.footnotesPart===n.footnotesPart&&s.endnotesPart===n.endnotesPart&&s.measurer===n.measurer&&s.cache===n.cache&&s.styleCascade===n.styleCascade&&s.numberingIndex===n.numberingIndex;if(d&&i.hitsFingerprint===o)return {memo:i,allHits:i.allHits,reused:true};if(a=d?Yw(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??Yw(t),inputFingerprint:r,allHits:t,provisionalMarks:EH(t,n),finalMarks:null,settledReserves:null,reflowSpent:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return mH.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 Vke(e,t){return t>=e.range.start&&t<e.range.end}var pH=new WeakMap;function kH(e){let t=pH.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),pH.set(e,n),n}var gH=new WeakMap;function TH(e){let t=gH.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 gH.set(e,n),n}var hH=new WeakMap;function qy(e,t,n){let r=kH(e.fragments);if(!n)return t.filter(l=>r.some(s=>or(s,l.paragraphId,l.atomOffset)));let o=hH.get(e.fragments);if(o&&o.refIndex===n)return o.result;let a=[],i=new Set;for(let l of r)for(let s of Sa(l)){let d=n.get(s);if(d)for(let c of d)i.has(c)||or(l,s,c.atomOffset)&&(i.add(c),a.push(c));}return hH.set(e.fragments,{refIndex:n,result:a}),a}function vH(e){return e==="sectEnd"||e==="docEnd"}function F4(e,t){let n=[];for(let r of e){if(n.length>=Jf)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function xs(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Zw(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function O4(e,t){let n="FootnoteReference";if(!t)return {...rr,verticalAlign:"superscript"};let r=ur([],[{localName:"rStyle",attributes:{val:n}}],t);return je(r,t.themeFonts)}function C4(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=xs(t,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<fH;p+=1){let g=zo(u.numFmt,u.numStart+p);g.length>0&&o.add(g);}}let f=Zw(t,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<fH;p+=1){let g=zo(f.numFmt,f.numStart+p);g.length>0&&o.add(g);}}}if(!i||o.size===0)return;let l=O4("footnote",t.styleCascade),s,d=-1;for(let c of o){let u=t.measurer.measure(c,l);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(s?.length??0))&&(s=c,d=u);}return s}function FH(e,t,n){let r=vd("footnote",e,l=>xs(n,l)),o=vd("endnote",t,l=>Zw(n,l)),a=new Map;for(let l of r)a.set(Cd("footnote",l.noteId),l.mark);for(let l of o)a.set(Cd("endnote",l.noteId),l.mark);let i=C4(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function I4(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!M4(o.fragments))return o;let a=OH(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{...e,pages:r}:e}var yH=new WeakMap;function M4(e){let t=yH.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),yH.set(e,n),n}function OH(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=B4(o,t);return l!==o&&(n=true),l}let a=false,i=o.rows.map(l=>{let s=false,d=l.cells.map(c=>{let u=OH(c.blocks,t);return u===c.blocks?c:(s=true,{...c,blocks:u})});return s?(a=true,{...l,cells:d}):l});return a?(n=true,{...o,rows:i}):o});return n?r:e}function B4(e,t){let n=false,r=e.lines.map(o=>{let a=L4(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function L4(e,t){let n=false,r=e.spans.map(o=>{let a=E4(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function E4(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 A4(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function CH(e){return !(e.noteStream==="footnote-drain"||e.parityBlank||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function N4(e){for(let t=e.length-1;t>=0;t-=1)if(CH(e[t]))return t;return Math.max(0,e.length-1)}function Jy(e,t,n,r,o,a,i,l){let s=new Map(a),d=t.filter(Y=>Y.noteKind==="footnote"),c=e.contentBox.width,u=Vy(n,r,d[0]?.sectionIndex??0),f=[],p=0,g=wH,m=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),y=Y=>Aw(l?.separatorCache,n.footnotesPart,Y,c,"footnote",h,u,i),b=y(m),x=l?.continuationNotice?.flowHeight??0,R=em(e),P=fw(e),S=Math.max(0,e.contentBox.height-P-b.flowHeight),w=Zi(e.contentBox.height,b.flowHeight),F=Math.max(0,(l?.reserveColumnBudget?w:S)-x),T=Math.max(0,e.contentBox.height-b.flowHeight-x),v={fullContentHeight:T,reasons:i},C=l?.reserveBandOf?m==="separator"?w:Zi(e.contentBox.height,y("separator").flowHeight):0,I=l?.reserveBandOf?xc(e):0;for(let[Y,U]of a){let X=Y.match(/^(footnote|endnote):(-?\d+)$/);if(!X||X[1]!=="footnote")continue;let q=Number(X[2]),V=Math.max(0,F-p);if(U.height<=V+.001)f.push({noteKind:"footnote",noteId:q,scopeId:Y,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:U.height},fragments:U.fragments}),p+=U.height,s.delete(Y);else {let ie=Za({fragments:U.fragments,flowHeight:U.height},V,v);ie.head.length>0&&(f.push({noteKind:"footnote",noteId:q,scopeId:Y,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:ie.headHeight},fragments:ie.head}),p+=ie.headHeight),ie.tail.length>0?s.set(Y,{fragments:ie.tail,height:ie.tailHeight,mark:null}):s.delete(Y);}}let O,k=Number.POSITIVE_INFINITY;for(let Y of d){if(f.length>=Jf){i.push("note-count-limit");break}let U=l?.reserveBandOf?.(Y)??qo(e,Y,n.compatibilityMode);if(O!==void 0&&U&&U.evictable&&U.bottom>O+.001)continue;let X=To(n.footnotesPart,Y.noteId,c,u,l?.noteLayoutCache);if(!X){i.push("missing-note-body");continue}let q=r.marks.get(Cd("footnote",Y.noteId))??null,V=U?Math.min(F,Math.max(0,e.contentBox.height-Math.max(14,U.bottom)-b.flowHeight-x)):F,ie=l?.reserveBandOf?V:Math.min(V,k),K=Math.max(0,ie-p),J=R&&U&&X.flowHeight>K+.001&&!U.tableRow?Math.max(0,Math.min(K,e.contentBox.height-Qf(e,Y,U)-b.flowHeight-x-p)):K;if(U&&U_(U,X,J,{keepWholeBudget:C,paragraphSplitAllowed:R,firstContentTop:I,fullNoteColumn:T,evictionAllowed:l?.evictionAllowed,allowOrphanDeferral:l?.allowOrphanDeferral,nextPage:l?.nextPage})){O=O===void 0?U.top:Math.min(O,U.top);continue}if(g-=X.fragments.length,g<0){i.push("note-area-fragment-limit");break}if(X.flowHeight<=K+.001)f.push({noteKind:"footnote",noteId:Y.noteId,scopeId:X.scopeId,mark:Y.customMarkFollows?null:q,box:{x:e.contentBox.x,y:0,width:c,height:X.flowHeight},fragments:X.fragments}),p+=X.flowHeight,k=Math.min(k,V);else {let fe=Za(X,J,v);fe.head.length>0&&(f.push({noteKind:"footnote",noteId:Y.noteId,scopeId:X.scopeId,mark:Y.customMarkFollows?null:q,box:{x:e.contentBox.x,y:0,width:c,height:fe.headHeight},fragments:fe.head}),p+=fe.headHeight,k=Math.min(k,V)),fe.tail.length>0&&s.set(X.scopeId,{fragments:fe.tail,height:fe.tailHeight,mark:null});}}let E=j_(f,s),M=false;if(E&&!l?.continuationNotice){let Y=i.length,U=Uy(n.footnotesPart,c,e.contentBox.height,u,l?.noteLayoutCache,i);if(M=i.length>Y&&i.at(-1)==="note-continuation-notice-height-cap",U){let X=Jy(e,t,n,r,o,a,i,{...l,continuationNotice:U});if((X.area?.notes.length??0)>0||X.nextCarry.size===0)return X;i.push("note-continuation-notice-height-cap"),M=true;}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s,evictionTopPt:O};let A=b.flowHeight,N=E?l?.continuationNotice:void 0,L=A+p+(N?.flowHeight??0),D=Va(e.fragments),H;o==="beneathText"?H=e.contentBox.y+Math.max(P,Math.min(D,e.contentBox.height-L)):(H=e.contentBox.y+e.contentBox.height-L,H=Math.max(H,e.contentBox.y+P));let W=H+A,$=f.map(Y=>{let U={...Y,box:{...Y.box,y:W}};return W+=Y.box.height,U}),G=Lw(b,e.contentBox.x,c,H);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:H,width:c,height:L},separator:{kind:m,box:G,fragments:b.fragments,synthetic:b.synthetic,...b.ruleStyle!==void 0?{ruleStyle:b.ruleStyle}:{},...b.ruleColor!==void 0?{ruleColor:b.ruleColor}:{}},notes:$,...W_(N,e.contentBox.x,W,c),...M?{fallbackReason:"note-continuation-notice-height-cap"}:{}},nextCarry:s,evictionTopPt:O}}function IH(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 D4(e){return t=>{let n=Kw(e,t.sectionAnchorIndex,t.landingIndex,t.template.box);return _4(t.template,t.landingIndex,t.noteStream,n)}}function _4(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 H4(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=Kw(t,n,i,a.box);if(!l)return a;let s=a.box.y+l.insets.top;if(s===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:s,height:l.insets.height},u=s+c.height,f=a.contentBox.y+a.contentBox.height,p=j4(a,s-a.contentBox.y,u-f);if(!p.fits(s,u))return a;r=true;let{header:g,footer:m,...h}=a;return {...h,contentBox:c,...p.footnotes?{footnotes:p.footnotes}:{},...p.endnotes?{endnotes:p.endnotes}:{},...l.header?{header:l.header}:{},...l.footer?{footer:l.footer}:{}}});return r?o:[...e]}function bH(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 j4(e,t,n){let r=i=>i.placement==="pageBottom"?n:t,o=e.footnotes?bH(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?bH(e.endnotes,r(e.endnotes)):void 0;return {...o?{footnotes:o}:{},...a?{endnotes:a}:{},fits(i,l){let s=d=>d===void 0||d.box.y>=i-.001&&d.box.y+d.box.height<=l+.001;return s(o)&&s(a)}}}function qw(e,t){let n=new Set;for(let r of kH(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function MH(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(qw(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function W4(e,t,n){let r=MH(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=qw(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function z4(e,t){let n=rH(e);return [...Go({revision:t,pages:n}).pages]}function G4(e,t,n,r,o,a,i,l){let s=new Map(a),d=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};let c=e.contentBox.width,u=Vy(n,r,t[0]?.sectionIndex??Math.max(0,n.endnotePropsBySection.length-1)),f=l?.separatorKind??"separator",p=N=>N==="footnote"?n.footnotesPart:n.endnotesPart,g=n.endnotesPart??n.footnotesPart,m=Math.max(0,e.contentBox.height),h=Aw(l?.separatorCache,g,f,c,"endnote",m,u,i),y=h.flowHeight,b=Va(e.fragments),x=e.endnotes?Math.max(b,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):b,R=A4(e),P=Math.max(0,R-x-y),w={fullContentHeight:Math.max(0,R-y),reasons:i},F=[],T=0,v=wH;for(let[N,L]of a){let D=N.match(/^(footnote|endnote):(-?\d+)$/);if(!D)continue;let H=D[1],W=Number(D[2]),$=Math.max(0,P-T);if(L.height<=$+.001)F.push({noteKind:H,noteId:W,scopeId:N,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:L.height},fragments:L.fragments}),T+=L.height,s.delete(N);else {let G=Za({fragments:L.fragments,flowHeight:L.height},$,w);G.head.length>0&&(F.push({noteKind:H,noteId:W,scopeId:N,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:G.headHeight},fragments:G.head}),T+=G.headHeight),G.tail.length>0?s.set(N,{fragments:G.tail,height:G.tailHeight,mark:null}):s.delete(N);}}for(let N=0;N<t.length;N+=1){let L=t[N];if(F.length>=Jf){i.push("note-count-limit"),d.push(...t.slice(N));break}let D=p(L.noteKind),H=To(D,L.noteId,c,u,l?.noteLayoutCache);if(!H){i.push("missing-note-body");continue}let W=r.marks.get(Cd(L.noteKind,L.noteId))??null,$=Math.max(0,P-T);if(v-=H.fragments.length,v<0){i.push("note-area-fragment-limit"),d.push(...t.slice(N));break}if(H.flowHeight<=$+.001)F.push({noteKind:L.noteKind,noteId:L.noteId,scopeId:H.scopeId,mark:L.customMarkFollows?null:W,box:{x:e.contentBox.x,y:0,width:c,height:H.flowHeight},fragments:H.fragments}),T+=H.flowHeight;else {let G=Za(H,$,w);G.head.length>0&&(F.push({noteKind:L.noteKind,noteId:L.noteId,scopeId:H.scopeId,mark:L.customMarkFollows?null:W,box:{x:e.contentBox.x,y:0,width:c,height:G.headHeight},fragments:G.head}),T+=G.headHeight),G.tail.length>0&&s.set(H.scopeId,{fragments:G.tail,height:G.tailHeight,mark:null}),d.push(...t.slice(N+1));break}}if(F.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(F.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let C=e.contentBox.y+x,I=C+y,O=F.map(N=>{let L={...N,box:{...N.box,y:I}};return I+=N.box.height,L}),k=Lw(h,e.contentBox.x,c,C),E=y+T,M=Math.max(0,R-x),A=Math.min(E,M);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:C,width:c,height:A},separator:{kind:f,box:k,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{},...h.ruleColor!==void 0?{ruleColor:h.ruleColor}:{}},notes:O},nextCarry:s,remainingRefs:d}}function V4(e,t,n,r,o,a,i,l,s){let d=e,c=t,u=e[IH(e,e.length-1)].index;for(;c.size>0&&a.remaining>0;){let f=d[d.length-1],p=s({template:f,landingIndex:d.length,noteStream:"footnote-drain",sectionAnchorIndex:u}),g=Jy(p,[],n,r,"pageBottom",c,o,{separatorCache:i,noteLayoutCache:l}),m=g.area?.notes.length??0;if(c=g.nextCarry,m===0){o.push("note-overflow-stalled"),g.area&&(d=[...d,{...p,footnotes:g.area}],a.remaining-=1);break}d=[...d,{...p,footnotes:g.area}],a.remaining-=1;}return c.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:d,carry:c}}function K4(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 xH(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,s=[...e];for(let d=t;d<r;d+=1){let c=s[d],u=c.noteStream===void 0?c.pageFieldSource?.pageNumber:void 0,f=d>t?s[d-1].pageFieldSource?.pageNumber:void 0;s[d]={...c,pageFieldSource:{pageNumber:u??(f!==void 0?f+1:a+(d-t)),sectionPageCount:l,...i?{format:i}:{}}};}return s}function SH(e,t,n,r,o,a,i,l,s){if(n.length===0||e.length===0)return e;let d=e[IH(e,t)].index,c=[...e],u=[...n],f=new Map,p=t,g=0,m="separator",h=s?.stopBeforeIndex??Number.POSITIVE_INFINITY,y=s?.sectionStartIndex??t,b=s?.stopBeforeIndex!==void 0,x=s?.separatorCache;for(;u.length>0||f.size>0;){if(p>=c.length||p>=h){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let w=c[Math.min(Math.max(p,1),c.length)-1]??c[c.length-1],F=Math.min(p,h,c.length),T=K4(c,F,w,s.mint,d,"endnote-overflow");c=T.pages,p=T.pageIndex,b&&(h=F+1),g+=1,l.remaining-=1;}let R=c[p];if(!CH(R)){p+=1;continue}let P=G4(R,u,r,o,a,f,i,{separatorKind:m,...x?{separatorCache:x}:{},...s.noteLayoutCache?{noteLayoutCache:s.noteLayoutCache}:{}});f=P.nextCarry,u=P.remainingRefs;let S=P.area?.notes.length??0;if(P.area){let w=c[p];c[p]={...w,endnotes:w.endnotes?{...P.area,notes:[...w.endnotes.notes,...P.area.notes],box:{...P.area.box,y:w.endnotes.box.y,height:w.endnotes.box.height+P.area.box.height}}:P.area};}else {if(f.size===0&&u.length===0)break;if(!P.area&&f.size===0&&u.length>0){p+=1,m="separator";continue}}if(S===0&&(f.size>0||u.length>0)&&R.fragments.length===0&&R.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){m="continuationSeparator",p+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),b?c=xH(c,y,Math.min(h,c.length)):g>0&&(c=xH(c,y,c.length)),c}function Kke(e,t,n,r,o,a){return BH(e,t,n,r,o,a,false)}function BH(e,t,n,r,o,a,i){let l=o??null,s=new Map,d=[],c=false,u=new Map,f=TH(t),p=Ew(),g=Nw(r),m=R=>R.noteKind==="footnote"&&!vH(xs(n,R.sectionIndex).pos),h=t.some(m),y=R=>qy(R,t,f).filter(m),b=(R,P,S)=>H_(s,R,Math.min(P,S));for(let R=0;R<e.pages.length;R+=1){let P=e.pages[R];if(P.parityBlank)continue;let S=mw(P),F=qy(S,t,f).filter(z=>z.noteKind==="footnote"),T=F.filter(m);c||=rD(S,T,n.compatibilityMode);let v=T[0]?.sectionIndex??0,C=xs(n,v),I=Vy(n,r,v),O=e.pages[R+(e.pages[R+1]?.parityBlank?2:1)],k=a?a.get(P.index)??0:void 0,E=Zi(S.contentBox.height,0),M=(z,Y,U=0)=>h?Z_({bodyPage:S,nextPage:O,allowOrphanDeferral:i,existingAreaHeight:z,existingNoticeHeight:U,ownReservePt:Y,usedReservePt:k,pageBottomRefsOf:y,footnotesPart:n.footnotesPart,opts:I,plainSeparatorHeight:p.get(n.footnotesPart,"separator",S.contentBox.width,"footnote",Math.max(0,S.contentBox.height),I,d).flowHeight,noteLayoutCache:g}):0;if(T.length===0&&u.size===0){b(P.index,M(0,0),E);continue}if(l&&u.size===0){let z=l.pageReserve.get(P);if(z&&z.marks===r&&z.allowOrphanDeferral===i&&z.nextOpening===Fy(O)&&Xw(F,z.pageRefs)){for(let U of z.reasons)d.push(U);let Y=M(z.areaHeight,z.reserve);b(P.index,Math.max(z.reserve,Y),E);continue}}let A=u.size===0,N=d.length,{area:L,nextCarry:D,evictionTopPt:H}=Jy(S,T,n,r,C.pos,u,d,{reserveColumnBudget:true,allowOrphanDeferral:i,reserveBandOf:z=>qo(S,z,n.compatibilityMode),separatorCache:p,noteLayoutCache:g,evictionAllowed:!O||O.contentBox.width===S.contentBox.width&&O.contentBox.height===S.contentBox.height,nextPage:O});u=D;let W=H!==void 0?Math.max(0,S.contentBox.height-H-bs):0,$=L?.box.height??0,G=Math.min(Math.max($,W),E);l&&A&&u.size===0&&l.pageReserve.set(P,{allowOrphanDeferral:i,nextOpening:Fy(O),pageRefs:F,marks:r,reserve:G,areaHeight:$,reasons:d.slice(N)}),b(P.index,Math.max(G,M($,G,L?.continuationNotice?.box.height)),E);}let x=true;for(let R of e.pages){let P=s.get(R.index)??0;if(P<=0)continue;if(fw(R)+P>R.contentBox.height+.5){x=false;break}}return {reserves:s,stable:x,reasons:d,orphanCandidates:c}}function $4(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,l={remaining:T4},s=TH(t),d=Ew(),c=D4(e),u=[],f=[];for(let S of e.pages)for(let w of qy(S,t,s)){let F={noteId:w.noteId,sectionIndex:w.sectionIndex,pageIndex:S.index,customMarkFollows:w.customMarkFollows};w.noteKind==="footnote"?u.push(F):f.push(F);}let p=o?[...u,...f].map(S=>`${S.noteId}|${S.sectionIndex}|${S.pageIndex??""}|${S.customMarkFollows?1:0}`).join(";"):"",g;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===p?g=o.finalMarks.marks:(g=FH(u,f,n),o&&(o.finalMarks={sitesFingerprint:p,marks:g}));let m=Nw(g),h=new Map,y=new Map,b=[],x=e.pages.map(S=>{if(S.parityBlank)return S;let w=qy(S,t,s),F=w.filter(N=>N.noteKind==="footnote"),T=w.filter(N=>N.noteKind==="endnote");for(let N of T)if(Zw(n,N.sectionIndex).pos==="sectEnd"){let D=y.get(N.sectionIndex)??[];D.push(N),y.set(N.sectionIndex,D);}else b.push(N);for(let N of F){let L=xs(n,N.sectionIndex);if(L.pos==="sectEnd"){let D=y.get(N.sectionIndex)??[];D.push(N),y.set(N.sectionIndex,D);}else L.pos==="docEnd"&&b.push(N);}if(o&&h.size===0){let N=o.pageAttach.get(S);if(N&&N.marks===g&&Xw(F,N.pageRefs)){for(let L of N.reasons)a.push(L);return N.attached}}let v=mw(S),C=F.filter(N=>{let L=xs(n,N.sectionIndex).pos;return L==="pageBottom"||L==="beneathText"}),I=C[0]?.sectionIndex??0,O=xs(n,I),k,E=h.size===0,M=a.length;if(C.length>0||h.size>0||F.length===0&&!vH(O.pos)){let N=Jy(v,C,n,g,O.pos,h,a,{separatorCache:d,noteLayoutCache:m});k=N.area,h=N.nextCarry;}let A=k?{...v,footnotes:k}:v;if(o&&E&&h.size===0){let N={pageRefs:F,marks:g,attached:A,reserve:0,reasons:a.slice(M)};if(o.pageAttach.set(A,N),A!==S){let L=o.pageReserve.get(S);L&&o.pageReserve.set(A,L);}}return A}),R=x.length;if(h.size>0){let S=V4(x,h,n,g,a,l,d,m,c);x=S.pages,h=S.carry;}if(y.size>0&&x.length>0){let S=[...y.keys()].sort((w,F)=>w-F);for(let w of S){let F=y.get(w),T=MH(x,w,i),v=W4(x,w,i),C=T;for(let I=0;I<=T;I+=1)if(qw(x[I],i).includes(w)){C=I;break}x=SH(x,T,F,n,g,"sectEnd",a,l,{stopBeforeIndex:v,sectionStartIndex:C,separatorCache:d,noteLayoutCache:m,mint:c});}}return b.length>0&&x.length>0&&(x=SH(x,N4(x),b,n,g,"docEnd",a,l,{separatorCache:d,noteLayoutCache:m,mint:c})),x.length!==R&&(x=[...iH(x,e)],x=H4(x,e),x=z4(x,e.revision)),{layout:I4({...e,pages:x},g),fallbackReasons:a,noteMarks:g}}function U4(e,t,n){return (t==="all-markup"&&n===void 0?chunkPWTRJSES_cjs.dh(e):chunkPWTRJSES_cjs.eh(e,{includeReference:(a,i)=>sH(i,t,n),projectionKey:`${t};${n?.cacheKey??""}`,ancestryKey:dH})).map(a=>({noteKind:a.noteKind,noteId:a.noteId,paragraphId:a.paragraphId,atomOffset:a.atomOffset,customMarkFollows:a.customMarkFollows}))}function LH(e,t,n,r,o){let a=n.displayMode??Ue,i=n.revisionAuthorFilter,l=U4(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 s=V_(e,t,a,i,n.session,n.styleCascade,n.numberingIndex),d=F4(l,s),c=v4(n.session,d,r),u=c.memo,f=c.allHits,p=u?.provisionalMarks??EH(f,r),g=n.session?.notePageBottomReserves,m=g?Xi(g):new Map,h=[],y=o({...n,noteMarks:p,pageBottomReserves:m});Hw(n.session,y,e)&&(g=void 0,m=new Map,$_(u),y=o({...n,noteMarks:p,pageBottomReserves:m}));let b=u?.orphanPolicyPart===e,x=qi(m),R=c.reused&&u?.settledReserves&&u.settledReserves.part===e&&u.settledReserves.fingerprint===x?u.settledReserves:null;if(R)h=[...R.reasons];else {let S=new Set([x]),w=u&&u.reflowSpent&&u.reflowSpent.part===e?u.reflowSpent:{part:e,adopted:0};u&&(u.reflowSpent=w);let F=0,T=g&&m.size>0?PH:RH,v=null,C=[],I=false,O=null,k=m,E=L=>o({...n,noteMarks:p,pageBottomReserves:L}),M=y.pages.length,A=Math.max(8,Math.ceil(M/16)),N=0;for(let L=0;L<T;L+=1){let D=BH(y,f,r,p,u,m,b);if(h=[...D.reasons],D.stable&&(O=m),D.stable&&tm(D.reserves,m)){if(!b&&D.orphanCandidates){v=m,C=[...D.reasons],b=true,u&&(u.orphanPolicyPart=e),S.clear(),S.add(qi(m)),k=m;continue}I=true;break}if(w.adopted>=uH){h.push("note-reflow-exhausted");break}if(N>=A){h.push("note-reflow-exhausted");break}let H=Xi(D.reserves);if(tm(H,m)){h.push("note-reflow-exhausted");break}let W=qi(H);if(S.has(W)){H=$y(m,D.reserves);let $=G=>tm(G,m)||S.has(qi(G));if(!D.stable&&$(H)&&(H=$y(k,H)),$(H)){h.push("note-reflow-exhausted"),!D.stable&&O&&O!==m&&(m=O,y=E(O));break}}m=H,k=$y(k,H),S.add(qi(m)),w.adopted+=1,F+=1,y=E(m),N=y.pages.length>M?N+1:0,M=y.pages.length,L===T-1&&h.push("note-reflow-exhausted");}if(!I&&v){let L=!tm(v,m);m=v,h=[...C],L&&(y=E(m)),u&&(u.settledReserves={part:e,fingerprint:qi(m),reasons:[...h]});}u&&(F===0||w.adopted>=uH)&&(u.settledReserves={part:e,fingerprint:qi(m),reasons:[...h]});}Hw(n.session,y,e);let P=$4(y,f,r,{fallbackReasons:h,paragraphSectionIndex:s,memo:u});return n.session&&(n.session.previous=P.layout,n.session.notePageBottomReserves=Xi(m)),P.layout}function EH(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 FH(n,r,t)}function AH(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 vo(){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 Ss(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 Jw(e,t){return e!=null&&t.drawingEpoch!==null&&t.projectionEpoch!==null&&e.framePolicy===t.framePolicy&&e.drawingEpoch===t.drawingEpoch&&e.projectionEpoch===t.projectionEpoch&&e.producer===t.producer&&e.contentWidth===t.contentWidth&&e.styleCascade===t.styleCascade&&e.numberingIndex===t.numberingIndex&&e.tocToken===t.tocToken&&e.refToken===t.refToken}var Qw=new WeakMap;function Y4(e){let t=Qw.get(e);return t||Qw.set(e,t={}),t}function NH(e,t){Qw.set(t,Y4(e));}function Fo(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}var X4="http://schemas.openxmlformats.org/wordprocessingml/2006/main";var DH=new WeakMap;function Bc(e){let t=DH.get(e);if(t!==void 0)return t;let n=e.rows.some(r=>r.cells.some(o=>o.vMergeContinue));return DH.set(e,n),n}var Z4=new Set(["p","r","t","tab","br","cr","noBreakHyphen","softHyphen","hyperlink","fldSimple","fldChar","instrText","bookmarkStart","bookmarkEnd","proofErr","pPr","rPr"]);function Qy(e){return e.cells[0]?.logicalGridColumn===void 0?e.cells:[...e.cells].reverse()}function eb(e,t){let n=0;for(let r of e){let o=0;for(let a of Qy(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:s,depth:d,properties:c}=l.pop();if(++n>8192||d>32)return false;if(s.kind==="textValue")continue;if(s.namespaceUri!==X4||!c&&!Z4.has(s.localName)||s.localName==="br"&&s.attributes.some(f=>f.localName==="type"&&f.value!=="textWrapping")||["drawing","pict","object","txbxContent","tbl","vMerge","framePr"].includes(s.localName)||n+l.length+s.children.length>8192)return false;let u=c||s.localName==="pPr"||s.localName==="rPr";for(let f of s.children)l.push({node:f,depth:d+1,properties:u});}}}if(o!==t)return false}return true}function _H(e){let t=new Map;return {read(n,r,o,a){let i=o(),l=t.get(n);if(l&&Object.is(l.top,r)&&l.changes===i){for(let c of l.keys)e.onCellBreakKey?.(c),e.cache?.get(c);return l.options}let s=[],d=a(s);return o()===i?t.set(n,{top:r,changes:i,options:d,keys:s}):t.delete(n),d}}}function tb(e,t,n,r,o,a){return e0(e,t,n,r,o,a,false)}function HH(e,t,n,r,o,a){let i=o.pageExclusionZones===void 0;return e0(e,t,()=>n,r,o,a,i)}function jH(e,t,n,r,o,a){return e0(e,t,n,r,o,a,false,true)}function e0(e,t,n,r,o,a,i,l=false){let s=t.length,d=t[0],c=true,u=0,f=l?{...o,onCellBreakKey:T=>{c||(u+=1),o.onCellBreakKey?.(T);}}:o,p=(T,v)=>a(t[T],v,T===0?rt(e,d,o):o),g=e.rows[s],m=s===0?null:zi(e,n,0,f,g?[...t,g]:t,T=>T.id===d.id),h=T=>T.endRow<s;if(m===null||!t.some((T,v)=>m.spansAt(v).some(h))){let T=0;for(let v=0;v<s;v+=1)T+=p(v,r+T);return {heightPt:T,planned:false,optionsAt:()=>{},unchanged:()=>true}}let y=rt(e,d,o),b=(T,v,C,I)=>{let O=Xo(y,true);return qt(t[T],e.columnWidthsPt,n(),v,false,0,I?{...O,onCellBreakKey:k=>{I.push(k),O.onCellBreakKey?.(k);}}:O,e.cellSpacingPt,C)},x=0,R=(T,v,C,I)=>{if(C===void 0)return {options:C};let O=b(T,v,C,I);if(O.remainder===null)return {options:C,heightPt:O.record.box.height};x+=1,m.withdrawAt(T);let k=m.rowOptions(T);return k===void 0?{options:void 0}:{options:k,heightPt:b(T,v,k,I).record.box.height}},P=0;for(let T=0;T<s;T+=1){let v=r+P;for(let I of m.spansAt(T))h(I)&&(x+=1,m.accept(I,v));let C=R(T,v,m.rowOptions(T));P+=C.heightPt??p(T,v);}let S=(T,v,C)=>{let I=m.rowOptions(T);return I?.detachedSpanHeightPtByCellId===void 0?I:R(T,v,I,C).options},w=i?_H(y):null,F=x;return c=false,{heightPt:P,planned:true,unchanged:()=>x===F&&u===0,optionsAt:w?(T,v)=>w.read(T,v,()=>x,C=>S(T,v,C)):(T,v)=>S(T,v)}}var WH=new WeakSet;function zH(e){return (e.borderOwnershipBudget?.intervalsRemaining??1)>0&&(e.vMergeResolveBudget?.cellsRemaining??1)>0}function Ec(e,t){return t&&WH.add(e),e}function Ac(e){return WH.has(e)}var VH=new WeakMap;function q4(e,t){let n=[];for(let r of e.cells){let o=t.cellContentInsets?.get(r.id)??ho(r,true),a=t.cellMinimumContentInsets?.get(r.id)??r.minimumContentInsets;n.push(o.top,o.bottom,a?.top??Number.NaN,a?.bottom??Number.NaN,r.vAlign);}return n}function GH(e,t){let n=e??Number.NaN;return n===t||Number.isNaN(n)&&Number.isNaN(t)}function J4(e,t,n){if(n.length!==e.cells.length*5)return false;let r=0;for(let o of e.cells){let a=t.cellContentInsets?.get(o.id)??ho(o,true),i=t.cellMinimumContentInsets?.get(o.id)??o.minimumContentInsets;if(n[r++]!==a.top||n[r++]!==a.bottom||!GH(i?.top,n[r++])||!GH(i?.bottom,n[r++])||n[r++]!==o.vAlign)return false}return true}var KH=e=>{let t=e.cells[0]?.blocks[0];return t?.kind==="paragraph"&&e.cells.length>0?t.range:void 0};function $H(e,t,n,r){let o=t.remainder===null?KH(t.record):void 0;o&&VH.set(o,{top:n,bottom:t.bottom,height:t.record.box.height,fitted:t.fitted,vertical:q4(e,r),heightRule:e.height});}var UH=new WeakSet;function YH(e){return UH.has(e)}function XH(e,t,n,r,o,a){let i=KH(t),l=i?VH.get(i):void 0;if(!l||t.box.y!==l.top||t.box.height!==l.height||e.height.rule!==l.heightRule.rule||e.height.rule!=="auto"&&(l.heightRule.rule==="auto"||e.height.valuePt!==l.heightRule.valuePt)||!J4(e,a,l.vertical))return t.box.y===o?null:ls();if(l.top!==o){let d=WN(e,t,n,r,o,a);return d?{record:d.record,bottom:d.bottom,remainder:null,fitted:l.fitted,nestedSplitBlocked:false}:null}let s=my(e,t,n,r,a);return s?(UH.add(s),{record:s,bottom:l.bottom,remainder:null,fitted:l.fitted,nestedSplitBlocked:false}):null}var t0=new WeakMap;function ZH(e,t){let n=qH(e,t);n&&t0.set(e,new WeakRef(n));}function qH(e,t){let n=new Map,r=new Set;for(let o of t)for(let a of o.fragments)if(!(a.kind!=="table"||a.tableId!==e.id)){if(!Ac(a))return;for(let i of a.rows){if(i.isHeaderRepeat||i.isContinuation||i.hasContinuation){r.add(i.id);continue}n.has(i.id)?r.add(i.id):n.set(i.id,i);}}for(let o of r)n.delete(o);return n.size>0?n:void 0}var JH=new WeakMap;function QH(e,t,n,r){let o=new Map;for(let i of t.prepared)i.kind==="table"&&o.set(i.table,i.key);let a=new Set;for(let i of n.prepared)i.kind==="table"&&o.get(i.table)===i.key&&a.add(i.table);a.size>0&&JH.set(e,{tables:a,pages:new WeakRef(r)});}function ej(e,t){let n=t0.get(e)?.deref();if(t0.delete(e),n)return n;let r=t?JH.get(t):void 0,o=r?.tables.has(e)?r.pages.deref():void 0;return o?qH(e,o):void 0}function tj(e,t,n){return n==="pageExclusionZones"?true:n==="rowAtPageStart"?!!e[n]==!!t[n]:e[n]===t[n]}function Q4(e,t){if(e===t)return true;for(let n in e)if(Object.hasOwn(e,n)&&!tj(e,t,n))return false;for(let n in t)if(Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&!tj(e,t,n))return false;return true}function nb(e,t,n){let r,o=(a,i)=>{let l=Ea(a);return l.ordinary===void 0&&(l.ordinary=!a.isHeader&&a.cells.every(s=>!s.vMergeContinue&&s.textDirection==="horizontal"&&s.blocks.every(d=>d.kind==="paragraph"&&$i(d)))),l.ordinary&&!a.cells.some(s=>s.blocks.some(d=>i.listItems?.has(d.id)))};return {measure(a,i,l,s){r=void 0;let d=!!s.pageExclusionZones?.().length;if(d||!o(a,s))return Nn(a,e,i,0,s,t,void 0,d?l:void 0);let c=t===0?n?.get(a.id):void 0,u=c?XH(a,c,e,i,l,s):null,f=u??qt(a,e,i,l,false,0,Xo(s,false),t);return t===0&&(!u||c.box.y!==l)&&$H(a,f,l,s),f.remainder===null&&(r={row:a,result:f,deps:s,left:i,top:l}),f.record.box.height},forget(){r=void 0;},take(a,i,l,s){let d=r;if(r=void 0,!d||d.row!==a||d.left!==i||d.top!==l||s.pageExclusionZones?.().length||!Q4(s,d.deps))return null;let c;for(let u=0;u<d.result.record.cells.length;u++){let f=d.result.record.cells[u],p;for(let g=0;g<f.blocks.length;g++){let m=f.blocks[g];if(m.kind!=="paragraph")throw new Error("Ordinary row probe contains a table");let h;for(let y=0;y<m.lines.length;y++){let b=m.lines[y],x=s.nextLineId(b.range.paragraphId,b.range.start,y);x!==b.id&&((h??=m.lines.slice())[y]={...b,id:x});}h&&((p??=f.blocks.slice())[g]=pc(m,h));}p&&((c??=d.result.record.cells.slice())[u]={...f,blocks:p});}return c?{...d.result,record:{...d.result.record,cells:c}}:d.result}}}var e8=4,t8=new Set(["detachedSpanHeightPtByCellId","heightFloorPt","coveredFromAbove"]);function n8(e,t){if(e===t)return true;if(!e||!t||e.size!==t.size)return false;let n=t.entries();for(let[r,o]of e){let a=n.next();if(a.done||a.value[0]!==r||!Object.is(a.value[1],o))return false}return true}function n0(e,t){if(e===t)return true;if(!e||!t)return false;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return false;for(let o=0;o<n.length;o+=1)if(n[o]!==r[o]||!t8.has(n[o]))return false;return Object.is(e.heightFloorPt,t.heightFloorPt)&&e.coveredFromAbove===t.coveredFromAbove&&n8(e.detachedSpanHeightPtByCellId,t.detachedSpanHeightPtByCellId)}function r8(e,t,n){let r=`:occ:${t}`,o=`:occ:${n}`,a=[];for(let i of e.cells){let l=[];for(let s of i.blocks){if(s.kind!=="paragraph")return;let d=[];for(let c of s.lines){if(!c.id.endsWith(r))return;d.push({...c,id:c.id.slice(0,c.id.length-r.length)+o});}l.push(pc(s,d));}a.push({...i,blocks:l});}return {...e,cells:a}}function nj(){let e=new Map;return {take(t){let{source:n,top:r,deps:o,options:a,occurrence:i}=t;for(let l of e.get(t.index)??[]){if(l.source!==n||!Object.is(l.top,r)||l.deps!==o||!n0(l.options,a))continue;let s=r8(l.record,l.occurrence,i);if(!s)return;for(let d of l.keys)o.onCellBreakKey?.(d),o.cache?.get(d);return s}},remember(t,n,r){if(t.deps.nextLineId!==Fo)return;let o=e.get(t.index);o||e.set(t.index,o=[]),o.length===e8&&o.shift(),o.push({...t,record:n,keys:r});}}}function Oo(e,t,n,r,o,a,i,l,s,d=0,c){let u=0,f={...Zt(l),cache:bi(l.cache),borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-progress-${u++}`},p=bn(e,t,n,r,o,false,a,i,f,s,d);return p.fitted&&(!c?.requireEveryCell||p.record.cells.every((g,m)=>g.vMergeContinue||e.cells[m].blocks.length===0||g.blocks.length>0))}function r0(e,t,n,r){if(e.height.rule!=="atLeast"||!(e.height.valuePt>0))return;let o=$o(n),a=e.cells.map(l=>{let s=t.cellContentInsets?.get(l.id)??tn(l,n===0);return {cell:l,insets:{...s,top:s.top+o}}}),i=Hi(e.height.valuePt,a,t.cellMinimumContentInsets,o);return i<=r+.001?i:void 0}function rj(e,t,n,r){if(r.belowBandOnly||r.top<=r.columnTop+.001)return false;let o=r.band-r.columnTop-r.repeat,a=r0(e,t,n,o);return a!==void 0&&a>r.bottom-r.top+.001}function oj(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=wa(r),a=t?cr(t,o,n.styleFormatting).paragraphProperties:Xe(o);return Vs(a)}function aj(e,t,n,r,o,a,i){if(a.pageExclusionZones?.().length||t[n].cells.some(m=>m.vMergeContinue)||t[r+1]?.cells.some(m=>m.vMergeContinue))return null;let l=t.slice(n,r+1),s=l[0],d=s===e.rows[0],c=m=>d&&m===s,u={...a,pageExclusionZones:void 0},f=zi(e,o,0,u,l,c);if(!f)return null;let p=[],g=0;for(let m=0;m<l.length;m+=1){for(let R of f.spansAt(m))f.accept(R,g);let h=l[m],y=c(h)?rt(e,h,u):u,b=f.rowOptions(m),x;if(b){let R=()=>qt(h,e.columnWidthsPt,o,g,false,0,Xo(y,true),e.cellSpacingPt,b),P=R();P.remainder!==null&&(f.withdrawAt(m),b=f.rowOptions(m),P=R()),x=P.record.box.height;}else x=i(n+m);p.push(x),g+=x;}return p}var o8=256;function lj(e,t){let n=Ea(e);return n.breaksPageBefore===void 0&&(n.breaksPageBefore=oj(e,t)),n.breaksPageBefore}function Nc(e,t,n,r){let o=e.rows[t];if(!o||!lj(o,n))return false;let a=t>0?e.rows[t-1]:void 0;return !(a&&Le(r,"rowPageBreakYieldsToKeep")&&qa(a,n))}function qa(e,t){let n=Ea(e);return n.keepsWithNext===void 0&&(n.keepsWithNext=a8(e,t)),n.keepsWithNext}function a8(e,t){let n=e.cells[0];if(!n)return false;let r=n.blocks[0];if(r?.kind!=="paragraph")return false;let o=wa(r),a=t?cr(t,o,n.styleFormatting).paragraphProperties:Xe(o);return yt(a).keepNext}function rb(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>=o8){a=true;break}o+=1;}let i=a?o:o+1,l=Math.min(i,r.length-1),s=false;for(let p=t;p<=l;p+=1)r[p].cells.some(g=>g.vMergeContinue)&&(s=true);let d=s?e.mergedHeights?.(t,l):void 0;if(s&&!d)return null;let c=p=>d?.[p-t]??e.heightOf(p),u=0;for(let p=t;p<=o;p+=1)u+=c(p);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:d&&r[i].cells.some(p=>p.vMergeContinue)?c(i):sj(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 sj(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 o0(e,t,n=Number.NEGATIVE_INFINITY){if(t>=e.rows.length)return;if(e.breaksAt(t))return 0;let r=rb(e,t,n);return r?r.kept+r.successor:sj(e,t,n)}function i8(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 a0(e){let{structure:t,rows:n,left:r,deps:o,heightOf:a}=e,i=d=>{let c=n[d];return c!==void 0&&qa(c,o.styleCascade)},l={...o,pageExclusionZones:void 0,rowAtPageStart:false,keepLinesOpening:true},s=(d,c)=>{let u=n[d],f=r0(u,o,t.cellSpacingPt,e.pageHeight);return f!==void 0&&f>c+.001?false:Oo(u,t.columnWidthsPt,r,0,c,false,0,l,Lt(u),t.cellSpacingPt,{requireEveryCell:true})};return {rows:n,keepsAt:i,breaksAt:d=>Nc(t,t.rows.length-n.length+d,o.styleCascade,o.compatibilityMode),heightOf:a,mergedHeights:(d,c)=>aj(t,n,d,c,r,o,a),placesWhole:d=>{let c=n[d];return c.height.rule==="exact"?true:c.cantSplit&&a(d)<=e.pageHeight+.001},openingOf:d=>i8(a(d),c=>s(d,c)),opensWithin:s,following:e.following}}var dj=(e,t,n)=>nn(e,t.width,0,t.styleCascade,t.displayMode,t.authorFilter,t.compatibilityMode,n?An(n):void 0);function l8(e,t){if(e?.kind!=="table"||!e.table)return false;let n=dj(e.table,t),r=n?.rows.at(-1);return !!r&&!n.float&&qa(r,t.styleCascade)}var ij=new WeakMap;function s8(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?ij.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 s=d8(o,t,n,r);return a&&(i||(i=new WeakMap,ij.set(r,i)),i.set(o,{at:t,pageHeight:n,value:s})),s}function d8(e,t,n,r){let o=dj(e,t,r);if(!o||o.float||o.rows.length===0)return null;if(lj(o.rows[0],t.styleCascade))return {breaksPage:true,height:0};let a=(h,y)=>Nn(h,o.columnWidthsPt,0,0,y,o.cellSpacingPt),i=[];for(let h of o.rows){if(!h.isHeader)break;i.push(h);}let l=tb(o,i,()=>0,0,r,(h,y,b)=>a(h,b)).heightPt;if(l>n+.001)return null;let s=Le(t.compatibilityMode,"headerRowsKeepWithBody");if(i.length>0&&!s)return {height:l};let d=o.rows.slice(i.length),c=new Map,u=h=>{let y=c.get(h);if(y===void 0){let b=i.length===0&&h===0;y=a(d[h],b?rt(o,d[0],r):r),c.set(h,y);}return y},f=false,p=a0({structure:o,rows:d,left:0,deps:r,pageHeight:n,heightOf:u,following:()=>(f=true,null)}),g=l+(o0(p,0)??0);if(!f)return {height:g};let m=rb({...p,following:()=>0},0);return m?{height:g,throughHeight:l+m.kept}:{height:g}}function cj(e,t,n){let r={width:t,styleCascade:n,displayMode:e.displayMode??Ue,authorFilter:e.revisionAuthorFilter,compatibilityMode:e.compatibilityMode};return {endsKept:o=>l8(o,r),opening:(o,a,i,l)=>s8(o,{...r,width:a},i,l)}}function uj(e){let t=new Map;for(let[r,o]of e.fragments.entries())o.rows.forEach((a,i)=>{if(!a.isContinuation&&!a.hasContinuation)return;let l=t.get(a.id);l||t.set(a.id,l=[]),l.push({listPosition:r,fragment:o,index:i,old:a});});let n=new Map;return r=>{let o=n.get(r);if(o!==void 0)return o;let a=t.get(r.id)??[],i=a.length>0?u8(e,a):null;for(let l of a)n.set(l.old,i?.get(l.old)??null);return n.get(r)??null}}function c8(e,t){let{pageIndexOf:n,pages:r,pageBand:o,headerCount:a}=e,i=t.length-1;if(i<1||!o)return false;for(let l=0;l<=i;l+=1){let{fragment:s,index:d,old:c}=t[l];if(!!c.isContinuation!=l>0||!!c.hasContinuation!=l<i||c.isHeaderRow||c.isHeaderRepeat)return false;let u=n.get(s);if(u===void 0||r[u]?.index!==u||l<i&&d!==s.rows.length-1)return false;if(l>0){let f=t[l-1].fragment;if(t[l].listPosition!==t[l-1].listPosition+1||u!==n.get(f)+1||d!==a)return false;for(let p=0;p<d;p+=1)if(!s.rows[p].isHeaderRepeat)return false}else {if(d===0&&a>0)return false;if(d>0&&s.rows.slice(0,d).every(f=>f.isHeaderRepeat))return false}}return true}function u8(e,t){let{structure:n,sources:r,ordinals:o,base:a,left:i,headerCount:l}=e,s=r.get(t[0].old.id),d=s&&o.get(s.id);if(!s||d===void 0||s.isHeader||d<=l||s.cantSplit||s.height.rule==="exact"||s.cells.some(m=>m.textDirection!=="horizontal"))return null;let c=a.styleCascade;if(qa(s,c)||qa(n.rows[d-1],c)||Nc(n,d,c,a.compatibilityMode)||!c8(e,t))return null;let u=n.columnWidthsPt,f=t.length-1,p=new Map,g=Lt(s);for(let m=0;m<=f;m+=1){let{fragment:h,index:y,old:b}=t[m],x=b.box.y,R=e.pageBand(e.pageIndexOf.get(h));if(m>0&&y>0&&!Oo(s,u,i,x,R,true,0,{...a,rowAtPageStart:false},g,0))return null;let S={...y===0?rt(n,s,a):a,rowAtPageStart:x<=.001||y>0&&h.rows.slice(0,y).every(F=>F.isHeaderRepeat)},w=bn(s,u,i,x,R,false,m>0,0,S,g,0);if(!w.fitted||w.remainder!==null!=m<f||w.bottom>R+.001||w.record.box.height!==b.box.height)return null;p.set(b,{record:m<f?{...w.record,hasContinuation:true}:w.record,insets:S.cellContentInsets}),g=w.remainder??[];}return p}function Rs(e,t,n,r,o,a){if(e.cellSpacingPt>0||e.float||Bc(e)||e.columnWidthsPt.length>1024||![n,r,o].every(Number.isFinite)||(a.pageExclusionZones?.().length??0)>0)return;let i=fc(e,t,a);if(i===a||!eb([t],e.columnWidthsPt.length))return;let l=0,s={...Zt(i),cache:bi(i.cache),borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-terminal-border-${l++}`},d=qt(t,e.columnWidthsPt,n,r,false,0,s);if(!(d.remainder!==null||d.bottom>o+.001))return {height:d.record.box.height,deps:i,probe:d.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((s,d)=>s.spans.length===l.lines[d].spans.length&&s.spans.every((c,u)=>c.text===l.lines[d].spans[u].text))})})}function fj(e,t,n,r){return !Number.isFinite(r)||r<=0||e.endnotes||e.noteStream||e.columnSeparators||e.parityBlank||e.fragments[e.fragments.length-1]!==t||!n||n.fragmentIndex!==t.fragmentIndex+1?null:r}function mj(e){let t=e.rows.find(n=>!n.isHeaderRepeat);return t&&!t.isContinuation?t:null}function pj(e,t,n){return !qa(e,n.styleCascade)&&!qa(t,n.styleCascade)}function gj(e,t,n,r,o,a,i){if(!(r>0))return false;let l={...a,onCellBreakKey:void 0,rowAtPageStart:false},s=i(t,r,l);return s>o+.001||r+s<=o+.001||Rs(e,t,n,r,o,l)?false:t.cantSplit||t.height.rule==="exact"?true:!Oo(t,e.columnWidthsPt,n,r,o,false,0,l,Lt(t),e.cellSpacingPt,{requireEveryCell:true})}function hj(e,t,n,r,o,a,i){let l=Rs(e,t,o,n.box.y,a,{...i,onCellBreakKey:void 0,cellContentInsets:r??i.cellContentInsets});return !l||!ob(n,l.probe)?{record:n,insets:r}:{record:{...n,box:{...n.box,height:l.height},cells:n.cells.map(s=>({...s,box:{...s.box,height:l.height-(s.box.y-n.box.y)}}))},insets:l.deps.cellContentInsets}}function yj(e,t){return e.id!==t.id||e.rowIndex!==t.rowIndex||e.isHeaderRow!==t.isHeaderRow||e.isHeaderRepeat!==t.isHeaderRepeat||!!e.isContinuation!=!!t.isContinuation||!!e.hasContinuation!=!!t.hasContinuation||e.box.y!==t.box.y||e.cells.length!==t.cells.length?false:e.cells.every((n,r)=>{let o=t.cells[r];return n.id===o.id&&n.rowSpan===o.rowSpan&&n.vMergeContinue===o.vMergeContinue&&!!n.paintInert==!!o.paintInert&&n.box.y===o.box.y&&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.fragmentIndex===l.fragmentIndex&&a.lines.every(s=>!s.drawings?.length)&&l.lines.every(s=>!s.drawings?.length)})})}function l0(e){let t=0;for(let n of e.cells)for(let r of n.blocks)r.kind==="paragraph"&&(t+=r.lines.length);return t}var bj=new WeakMap,xj=new WeakMap,Sj=new WeakMap,f8=1;function m8(e){let t=Sj.get(e);return t===void 0&&Sj.set(e,t=f8++),t}function p8(e){let t=Ea(e);return t.eligible===void 0&&(t.eligible=e.cells.every(n=>n.logicalGridColumn===void 0&&n.textDirection==="horizontal"&&(!n.vMergeContinue||e.isHeader)&&n.blocks.every(r=>r.kind==="paragraph"&&$i(r)))),t.eligible}function g8(e,t,n){let r=Ea(e);if(r.listFree===n)return true;let o=e.cells.every(a=>a.blocks.every(i=>!t.has(i.id)));return o&&(r.listFree=n),o}function Rj(e,t){let n=bj.get(e);n===void 0&&(n=!e.float&&!e.bidiVisual&&e.cellSpacingPt===0&&e.rows.every(p8),bj.set(e,n));let r=t.listItems;if(!n||!r?.size)return n;let o=m8(r);if(xj.get(e)===o)return true;let a=e.rows.every(i=>g8(i,r,o));return a&&xj.set(e,o),a}function h8(e,t){if(e.rows.length!==t.rows.length||e.columnWidthsPt.length!==t.columnWidthsPt.length)return false;for(let n=0;n<e.rows.length;n+=1){let r=e.rows[n],o=t.rows[n];if(r.id!==o.id||r.isHeader!==o.isHeader||r.cells.length!==o.cells.length)return false;for(let a=0;a<r.cells.length;a+=1){let i=r.cells[a],l=o.cells[a];if(i.id!==l.id||i.gridColumn!==l.gridColumn||i.gridSpan!==l.gridSpan||i.vMergeContinue!==l.vMergeContinue)return false}}return true}function y8(e){for(let t of e.cells)for(let n of t.blocks)if(n.kind==="paragraph")for(let r of n.lines){let o=r.id.lastIndexOf(":occ:");if(o>=0)return r.id.slice(o+5)}}function b8(e,t){return e.box.y===t.box.y&&e.box.height===t.box.height&&e.baseline===t.baseline&&e.leading===t.leading&&e.trailingSpacing===t.trailingSpacing&&!e.drawings?.length&&!t.drawings?.length}function x8(e,t){if(e.kind!=="paragraph"||t.kind!=="paragraph"||e.paragraphId!==t.paragraphId||e.fragmentIndex!==t.fragmentIndex||e.box.y!==t.box.y||e.box.height!==t.box.height||e.spacing.before!==t.spacing.before||e.spacing.after!==t.spacing.after||e.lines.length!==t.lines.length)return false;for(let n=0;n<e.lines.length;n+=1)if(!b8(e.lines[n],t.lines[n]))return false;return true}function S8(e){if(e.kind!=="paragraph"||e.lines.length!==1)return false;let t=e.lines[0],{box:n,spacing:r}=e;return !t.drawings?.length&&e.fragmentIndex===e.fragmentIndex&&n.y===n.y&&n.height===n.height&&r.before===r.before&&r.after===r.after&&t.box.y===t.box.y&&t.box.height===t.box.height&&t.baseline===t.baseline&&t.leading===t.leading&&t.trailingSpacing===t.trailingSpacing}var Pj=[];function ab(e,t){for(;t<e.length;){let n=e[t].side;if(n!=="left"&&n!=="right")break;t+=1;}return t}function R8(e,t){let n=e.borders?.strokes??Pj,r=t.borders?.strokes??Pj,o=ab(n,0),a=ab(r,0);for(;o<n.length&&a<r.length;){let i=n[o],l=r[a];if(i.side!==l.side||i.role!==l.role||i.y!==l.y||i.height!==l.height)return false;o=ab(n,o+1),a=ab(r,a+1);}return o===n.length&&a===r.length}function kj(e,t,n){return s0(e,t,n);}function s0(e,t,n,r){if(e.id!==t.id||e.rowIndex!==t.rowIndex||e.isHeaderRow!==t.isHeaderRow||e.isHeaderRepeat!==t.isHeaderRepeat||!!e.isContinuation!=!!t.isContinuation||!!e.hasContinuation!=!!t.hasContinuation||e.box.y!==t.box.y||e.box.height!==t.box.height||e.cells.length!==t.cells.length)return false;for(let o=0;o<e.cells.length;o+=1){let a=e.cells[o],i=t.cells[o];if(a.id!==i.id||a.rowSpan!==i.rowSpan||a.vMergeContinue!==i.vMergeContinue||!!a.paintInert!=!!i.paintInert||a.box.y!==i.box.y||a.box.height!==i.box.height||a.blocks.length!==i.blocks.length||!R8(a,i))return false;if(n&&i.blocks===n.cells[o]?.blocks){if(!S8(a.blocks[0]))return false;continue}for(let l=0;l<a.blocks.length;l+=1)if(!x8(a.blocks[l],i.blocks[l]))return false}return true}function P8(e,t){let n=new Set;for(let r=0;r<t.rows.length;r+=1){let o=e.rows[r],a=t.rows[r];if(o===a)continue;a.cells.some((l,s)=>{let d=o.cells[s].blocks;return l.blocks.length!==d.length||l.blocks.some((c,u)=>c!==d[u])})&&n.add(a.id);}return n}var Tj=e=>e.moved?e.record:void 0;function vj(e,t,n,r,o,a,i){if(!h8(t,n)||!Rj(n,a)||!Rj(t,a))return null;let l=_a(t,o),s=_a(n,o);if(!Number.isFinite(s))return null;let d=n.columnWidthsPt,c=d.reduce((A,N)=>A+N,0),u=new Map,f=new Map;for(let[A,N]of n.rows.entries())u.set(N.id,N),f.set(N.id,A);let p=[];for(let A of n.rows){if(!A.isHeader)break;p.push(A);}let g=p.some(A=>A.cells.some(N=>N.vMergeContinue)),m=!Bc(n),h=[],y={...oy(a),pageExclusionZones:void 0,nextLineId:Fo,onCellBreakKey:A=>{h.push(A);}},b=nb(d,0),x=(A,N,L)=>b.measure(A,s,N,L),R=new Map,P=p.length>0?rt(n,p[0],y):y,S=nj(),w=[],F=new Map;for(let[A,N]of r.entries()){let L=N.fragments.filter(D=>D.kind==="table"&&D.tableId===e.id);if(L.length!==0){if(N.anchoredDrawings?.length||N.fragments.some(D=>D.kind==="table"&&(!!D.floatingWrap||vt(D)))||!L.every(Ac))return null;for(let D of L)F.set(D,A);w.push(...L);}}if(w.length===0)return null;let T=uj({fragments:w,pageIndexOf:F,pages:r,pageBand:i,structure:n,sources:u,ordinals:f,headerCount:p.length,left:s,base:y}),v=0,C=A=>{let N=w.indexOf(A),L=F.get(A),D=w[N+1],H=r[L];if(!i||H.index!==L||!D||F.get(D)!==L+1)return null;let W=fj(H,A,D,i(L)),$=W===null?null:mj(D);return W===null||!$?null:{band:W,opening:$}},I=A=>{if(A.nestingDepth!==0||A.box.x!==l)return null;let N=A.rows;if(N.length===0)return null;let L=N.findIndex(U=>!U.isHeaderRow||!u.get(U.id)?.isHeader),D=L<0?N.length:L;if(D!==0&&D!==p.length)return null;let H,W=[],$,G=(U,X)=>{let q=N[U],V=u.get(q.id);if(!V)return null;if(q.isContinuation||q.hasContinuation)return U<D?null:T(q);let ie=U<D,K=ie?null:my(V,q,d,s,X);if(K)return {record:K,insets:X.cellContentInsets,moved:true};let J=X,fe;if(q.isHeaderRepeat){let ce=y8(q);if(ce===void 0)return null;fe=ce,J={...X,pageOccurrenceKey:()=>ce};}ie&&g&&U===0&&(H=R.get(q.box.y),H||(H=HH(n,p,s,q.box.y,y,x),R.set(q.box.y,H)));let ne=ie?H?.optionsAt(U,q.box.y):void 0,te=ie&&fe!==void 0?{index:U,source:V,top:q.box.y,deps:X,options:ne,occurrence:fe}:void 0,oe=te&&S.take(te);if(oe)return {record:oe,insets:X.cellContentInsets};let ae=h.length,ue=qt(V,d,s,q.box.y,q.isHeaderRepeat,0,J,0,ne);return ue.remainder!==null?null:(te&&S.remember(te,ue.record,h.slice(ae)),{record:ue.record,insets:X.cellContentInsets})},z=false;for(let U=0;U<N.length;U+=1){let X=N[U],q=u.get(X.id);if(!q)return null;let V=U<D?P:U===0?rt(n,q,y):y,ie=G(U,V);if(!ie)return null;if(W.push(ie),U===N.length-1&&m&&!X.isContinuation&&!X.hasContinuation){let K=fc(n,q,V);if(K!==V&&($=G(U,K)??void 0,!$))return null}if(ie.record.box.height!==X.box.height&&$?.record.box.height!==X.box.height){if(U!==N.length-1||ie.moved)return null;z=true;}}if(z)return O(A,N,W);let Y=$?[[...W.slice(0,-1),$],W]:[W];for(let U of Y){let X=U.map(J=>J.record),q=new Map,V=new Set;for(let J of U)J.insets&&q.set(J.record,J.insets),J.moved&&V.add(J.record);let ie=Ur(X,n,X.map(J=>u.get(J.id)),void 0,void 0,void 0,void 0,void 0,q,V),K=Wa({kind:"table",id:A.id,tableId:A.tableId,fragmentIndex:A.fragmentIndex,rows:ie,box:{x:s,y:A.box.y,width:c,height:A.box.height}},d,0,f);if(K.rows.every((J,fe)=>kj(N[fe],J,Tj(U[fe]))))return h_(A,K),K}return null},O=(A,N,L)=>{let D=N.length-1,H=N[D],W=N[D-1],$=u.get(H.id),G=f.get(H.id),z=W&&u.get(W.id),Y=n.rows[G+1],U=C(A),X=L[D].record;if(!U||!W||!z||!Y||$.isHeader||W.isHeaderRow||W.isHeaderRepeat||U.opening.id!==Y.id||X.box.height<=H.box.height||X.box.y+X.box.height>U.band+.001||!pj($,z,a)||!gj(n,Y,s,X.box.y+X.box.height,U.band,y,x))return null;let q=hj(n,$,X,L[D].insets,s,U.band,y),V=[...L.slice(0,D),q],ie=V.map(ae=>ae.record),K=new Map,J=new Set;for(let ae of V)ae.insets&&K.set(ae.record,ae.insets),ae.moved&&J.add(ae.record);let fe=Ur(ie,n,ie.map(ae=>u.get(ae.id)),void 0,void 0,void 0,void 0,void 0,K,J),ne=fe[D],te=Wa({kind:"table",id:A.id,tableId:A.tableId,fragmentIndex:A.fragmentIndex,rows:fe,box:{x:s,y:A.box.y,width:c,height:ne.box.y+ne.box.height-A.box.y}},d,0,f),oe=te.rows[D];return !te.rows.every((ae,ue)=>ue===D||kj(N[ue],ae,Tj(V[ue])))||!yj(H,oe)||oe.box.y+oe.box.height>U.band+.001?null:(v+=l0(oe)-l0(H),te)},k=P8(t,n),E=[...w.filter(A=>A.rows.some(N=>k.has(N.id))),...w.filter(A=>!A.rows.some(N=>k.has(N.id)))],M=new Map;for(let A of E){let N=I(A);if(!N)return null;HE(N),M.set(A,Ec(N,true));}return Ml(e,h),{paragraphPagesUnchanged:true,lineDelta:v,pages:r.map(A=>A.fragments.some(N=>M.has(N))?{...A,fragments:A.fragments.map(N=>M.get(N)??N)}:A),replacements:M}}function Fj(e,t,n,r,o,a){if(!Ai(e,t))return null;let i=x=>nn(x,r,0,o.styleCascade,o.displayMode,o.revisionAuthorFilter,o.compatibilityMode,An(o)),l=i(e),s=i(t);if(!l||!s||s.float||l.rows.length!==s.rows.length)return null;if(JSON.stringify(l.columnWidthsPt)!==JSON.stringify(s.columnWidthsPt)){let x=vj(t,l,s,n,r,o,a);if(x)for(let R=0;R<n.length;R++){let P=n[R].fragments,S=x.pages[R].fragments;P!==S&&NH(P,S);}return x}let d=s.rows.filter((x,R)=>x!==l.rows[R]);if(d.length!==1)return null;let c=d[0];if(c.isHeader||c.cells.some(x=>x.vMergeContinue||x.textDirection!=="horizontal"||x.blocks.some(R=>R.kind!=="paragraph"||!$i(R)||o.listItems?.has(R.id))))return null;let u=[];for(let x of n)for(let R of x.fragments)if(!(R.kind!=="table"||R.tableId!==t.id))for(let P=0;P<R.rows.length;P++)R.rows[P].id===c.id&&u.push({page:x,fragment:R,index:P});if(u.length===0||u.length>4096)return null;let f=new Set,p=new Set,g=l.rows[s.rows.indexOf(c)],m=new Map,h=Lt(g),y=Lt(c),b=0;for(let x=0;x<u.length;x++){let{page:R,fragment:P,index:S}=u[x],w=P.rows[S],F=x+1<u.length;if(!!w.isContinuation!=x>0||!!w.hasContinuation!==F||R.anchoredDrawings?.length||!Ac(P)||w.cells.some(D=>D.rowSpan!==1||D.vMergeContinue))return null;let T=S===0?rt(s,c,o):o,v=S===P.rows.length-1?[fc(s,c,T),T]:[T],C=(D,H,W,$)=>{let G=bn(D,s.columnWidthsPt,P.box.x,w.box.y,w.box.y+w.box.height,false,x>0,0,{...W,pageExclusionZones:void 0,nextLineId:Fo,onCellBreakKey:U=>H.add(U)},$,s.cellSpacingPt);if(!!G.remainder!==F||!G.fitted||Math.abs(G.record.box.height-w.box.height)>.001)return null;let z=F?{...G.record,hasContinuation:true}:G.record,Y=Ur([z],s,[D],void 0,void 0,void 0,void 0,void 0,W.cellContentInsets?new Map([[z,W.cellContentInsets]]):void 0)[0];return Y.cells.some((U,X)=>JSON.stringify(U.box)!==JSON.stringify(w.cells[X]?.box))?null:{finalized:Y,remainder:G.remainder}},I;for(let D of v){let H=C(g,f,D,h);if(H?.finalized.cells.every((W,$)=>JSON.stringify(W.blocks)===JSON.stringify(w.cells[$].blocks))){I={deps:D,remainder:H.remainder};break}}if(!I)return null;let O=C(c,p,I.deps,y);if(!O)return null;h=I.remainder??[],y=O.remainder??[];let k=O.finalized,E=D=>D.reduce((H,W)=>H+(W.kind==="paragraph"?W.lines.length:0),0);b+=k.cells.reduce((D,H,W)=>D+E(H.blocks)-E(w.cells[W].blocks),0);let M=w.cells.map((D,H)=>({...D,blocks:k.cells[H].blocks})),A={...w,cells:M},N=m.get(P),L={...P,rows:(N??P).rows.map((D,H)=>H===S?A:D)};m.set(P,Ec(L,true));}return yF(t,e,f,p),{lineDelta:b,pages:n.map(x=>x.fragments.some(R=>m.has(R))?{...x,fragments:x.fragments.map(R=>m.get(R)??R)}:x),replacements:m}}function Oj(e){let t=e.previous;return {layout:t,pages:t.pages,lineCounter:e.endLineCounter,endCursorY:e.endCursorY,endSpaceAfter:e.endSpaceAfter,endsOpenPage:e.endsOpenPage}}function Cj(e,t,n){let r=e.previous;return e.previous=Zf({revision:t,pages:r.pages},r),Ff(r,e.previous),e.endLineCounter=n+e.endLineCounter-e.startLineCounter,e.startLineCounter=n,e.stats={placed:0,total:e.keys.length,reusedPages:r.pages.length,fullPasses:e.stats.fullPasses},Oj(e)}function Ij(e){let{session:t,previous:n,prepass:r,firstChanged:o,deps:a,revision:i,lineCounterStart:l}=e,s=ZR(n,r,e.inputsEqual,a,e.rowInputsEqual===true),d=s||e.rowInputsEqual&&VR(n,true,An(a),[Uo(a.fieldCodeRanges),Uo(a.tocLinkStyleRanges),Uo(a.noteMarks)].join("\0"));if(e.eligible&&d&&n&&t?.previous&&QH(a,n,r,t.previous.pages),!e.eligible||!s||!t?.previous||!n||r.prepared.length!==t.keys.length||e.commonSuffix!==r.prepared.length-o-1)return null;let c=n.prepared[o],u=r.prepared[o];if(c?.kind!=="table"||u?.kind!=="table")return null;let f=Fj(c.table,u.table,t.previous.pages,r.contentWidth,a,e.pageBand);if(!f)return Ai(c.table,u.table)&&ZH(u.table,t.previous.pages),null;let p=f.pages.reduce((m,h,y)=>m+ +(h===t.previous.pages[y]),0),g=t.previous;return t.previous=Zf({...t.previous,revision:i,pages:f.pages},t.previous),Ff(g,t.previous),f.paragraphPagesUnchanged&&rh(g,t.previous),t.keys=r.flowKeys,t.checkpoints=t.checkpoints.map((m,h)=>{if(h<=o)return m;let y;for(let b=0;b<m.pageFragments.length;b+=1){let x=m.pageFragments[b],R=x.kind==="table"?f.replacements.get(x):void 0;R&&R!==x&&(y??=m.pageFragments.slice(),y[b]=R);}return !y&&f.lineDelta===0?m:{...m,lineCounter:m.lineCounter+f.lineDelta,pageFragments:y??m.pageFragments}}),t.endLineCounter=l+t.endLineCounter-t.startLineCounter+f.lineDelta,t.startLineCounter=l,t.stats={placed:1,total:r.prepared.length,reusedPages:p,fullPasses:t.stats.fullPasses},Oj(t)}function d0(e,t){Ff(e,t),rh(e,t);}function Mj(e,t,n,r){let o=PF(t),a=o===t?n:mo(e,o).sections;return TS(o,r.listItems,r.notes?{footnotesPart:r.notes.footnotesPart,endnotesPart:r.notes.endnotesPart}:void 0,r.notes?cI(r.notes,a):void 0,r.displayMode,r.revisionAuthorFilter)}function Bj(e,t){return {...t.projectLink?{projectLink:t.projectLink}:{},...t.projectFieldLink?{projectFieldLink:t.projectFieldLink}:{},showFieldCodes:t.showFieldCodes,fieldCodeRanges:Cx(e,t.fieldCodeRanges),tocLinkStyleRanges:Cx(e,t.tocLinkStyleRanges),...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.noteMarks?{noteMarks:t.noteMarks}:{}}}function Lj(e){return {paragraphStartY:e.paragraphStartY,anchorParagraphStartY:e.anchorParagraphStartY,anchorFrameBase:e.anchorFrameBase,regionBottomY:e.regionBottomY,...e.paragraphSpaceBefore>0?{paragraphSpaceBefore:e.paragraphSpaceBefore}:{},...e.pageExclusionZones.length>0?{pageExclusionZones:e.pageExclusionZones}:{},...e.suppressChrome?{suppressEmptyPlaceholderLine:true}:{}}}function Ej(e,t,n){return fN(e.key,{...n,...o1(e.paragraph,t)})}var Aj=8;function Qi(e){for(;;){let t=e.next();if(t.done)return t.value}}function*Nj(e,t){if(e===void 0)return yield*t;for(;;){let n=chunkPWTRJSES_cjs.kf(e,()=>t.next());if(n.done)return n.value;let r=n.value,o=r?.finalize;yield o?{...r,finalize:a=>chunkPWTRJSES_cjs.kf(e,()=>o(a))}:r;}}var w8=2e5,Dj=new WeakMap;function _j(e,t){let n=t.styleCascade;if(!n)return;let r=Dj.get(e);if(r?.styles===n&&r.mode===t.displayMode&&r.author===t.revisionAuthorFilter&&r.fieldResults===chunkPWTRJSES_cjs.jf())return r.index;let o=new Map,a=0,i=(s,d)=>{if(++a>w8||d>Yt)throw new Error("character-style body index exceeds its scan bound");if(s.kind!=="textValue"){if(s.kind==="paragraph"){let c=cr(n,s.children.find(g=>g.kind==="paragraphProperties")).runProperties,u=bd(s,c,void 0,(g,m)=>ur(g,m,n),void 0,void 0,t.displayMode,void 0,void 0,n.themeFonts,void 0,void 0,false,void 0,t.revisionAuthorFilter),f=[],p;for(let g of u){let m=xi(g.props,"rStyle");if(!m||n.styles.get(m)?.type!=="character"||g.projected||g.inlineDrawing||g.equation||!g.text){p=void 0;continue}p?.style===m&&p.end===g.start?(p.text=p.text!==null&&p.text.length+g.text.length<=4096?p.text+g.text:null,p.end=g.end):(p={paragraphId:s.id,start:g.start,end:g.end,text:g.text.length<=4096?g.text:null,style:m},f.push(p));}f.length&&o.set(s.id,f);return}for(let c of s.children)i(c,d+1);}};i(e.root,0);let l={byParagraph:o,styles:n};return Dj.set(e,{styles:n,mode:t.displayMode,author:t.revisionAuthorFilter,fieldResults:chunkPWTRJSES_cjs.jf(),index:l}),l}function Hj(e,t,n){let r=new Map;for(let[a,i]of t.pages.entries())for(let l of Ut(i)){if(l.positionedFrame||l.outOfFlow)continue;let s=new Map;for(let d of l.lines)for(let c of nt(d)){let u=s.get(c.paragraphId);u?(u.start=Math.min(u.start,c.start),u.end=Math.max(u.end,c.end)):s.set(c.paragraphId,{start:c.start,end:c.end});}for(let[d,c]of s)for(let u of e.byParagraph.get(d)??[]){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(m=>m.type==="character"&&m.name?.toLowerCase()===a.name);if(!i)continue;let l=[];for(let m of e.byParagraph.values())for(let h of m){let y=r.get(h);y&&h.style===i.styleId&&l.push([h,y]);}let s=l.map((m,h)=>h).sort((m,h)=>l[m][1].first-l[h][1].first||m-h),d=s.slice().sort((m,h)=>l[m][1].last-l[h][1].last||m-h),c=[],u=a.last?(m,h)=>m>h:(m,h)=>m<h,f=0,p=0,g=-1;for(let m=0;m<o.length;m+=1){for(;f<s.length&&l[s[f]][1].first<=m;)k8(c,s[f++],u);for(;p<d.length&&l[d[p]][1].last<m;)g=Math.max(g,d[p++]);for(;c.length&&l[c[0]][1].last<m;)T8(c,u);let h=c[0]??(g>=0?g:s[f]),y=h===void 0?void 0:l[h][0].text;y!=null&&o[m].set(a.key,y);}}return o}function k8(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 T8(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 v8=8,jj=new WeakMap,Wj=new WeakMap;function F8(e){let t=Wj.get(e);return t||(t=EO(e.root),Wj.set(e,t)),t}function c0(e,t,n){let r=zj(e,t);if(!r)return n(t);let{furniture:o,dynamic:a,queries:i,index:l}=r,s=t.session?jj.get(t.session):void 0,d=P=>{let S=new Set([...Object.keys(P),...Object.keys(t)]);for(let w of S){if(w==="session")continue;let F=P[w],T=t[w];if(w==="sectionFurniture"&&Array.isArray(F)&&Array.isArray(T)){if(F.length!==T.length||F.some((v,C)=>v!==T[C]))return false}else if(F!==T)return false}return true},c=s?.index===l&&d(s.options)?s:void 0,u=c?[...c.reserves]:[],f=c?[...c.reserves]:[],p=(P,S,w,F=false)=>{F||(f=[]);let T=new Map;for(let v of o){let C={...v},I=new Map,O=new Map;T1(C,{token:w,reserveHeight:k=>{let E=Math.max(u[k]??0,O.get(k)??0);return u[k]=E,f[k]=E,E},resolve(k,E){let M=v.headers.get(k),A=P[E];if(!M||!a.has(M)||!A?.size)return O.delete(E),M;let N=`${k}:${E}`,L=I.get(N);return L||(L=M.withPageContext({...S[E],characterStyleValues:A}),I.set(N,L)),O.set(E,L.flowHeight),L}}),T.set(v,C);}return {...t,furniture:t.furniture?T.get(t.furniture):void 0,sectionFurniture:t.sectionFurniture?.map(v=>v?T.get(v):void 0)}},g=new Map,m=(P,S,w=true)=>chunkYBMWBXST_cjs.y(JSON.stringify(P.map((F,T)=>[hy(F,g),S[T],w?u[T]??0:0]))),h=P=>P.pages.map(S=>({pageNumber:S.pageFieldSource?.pageNumber??S.index+1,pageCount:P.pages.length,sectionPageCount:S.pageFieldSource?.sectionPageCount??P.pages.length,format:S.pageFieldSource?.format,sheetNumber:S.index+1})),y=c?.cacheToken??"",b=c?m(c.values,c.contexts,false):"",x=n(c?.index===l?p(c.values,c.contexts,y,true):t),R=new Set;y&&R.add(y);for(let P=0;P<v8;P+=1){let S=Hj(l,x,[...i.values()]);if(P===0&&!y&&S.every(C=>C.size===0))return x;let w=h(x),F=m(S,w),T=m(S,w,false),v=x.pages.every((C,I)=>(f[I]??0)===(u[I]??0));if(F===y||T===b&&v)return t.session&&jj.set(t.session,{index:l,cacheToken:y,options:t,reserves:[...u],values:S,contexts:w}),x;if(R.has(F))throw new Error("character-style header layout did not converge");R.add(F),y=F,b=T,x=n(p(S,w,F));}throw new Error("character-style header layout exceeded its pass limit")}function zj(e,t){if(t.showFieldCodes)return null;let n=new Set;t.furniture&&n.add(t.furniture);for(let s of t.sectionFurniture??[])s&&n.add(s);let r=new Map,o=new Set;for(let s of n)for(let d of s.headers.values()){if(!d.part)continue;let c=F8(d.part);c.length&&o.add(d);for(let u of c)r.set(u.key,u);}let a=t.styleCascade;if(!a)return null;let i=new Set;for(let s of a.styles.values())s.type==="character"&&s.name&&i.add(s.name.toLowerCase());for(let[s,d]of r)i.has(d.name)||r.delete(s);if(!r.size)return null;if(r.size>128)throw new Error("character-style header queries exceed their bound");let l=_j(e,t);return l?{furniture:n,dynamic:o,queries:r,index:l}:null}function*Gj(e,t,n){return zj(e,t)?c0(e,t,r=>Qi(n(r))):yield*n(t)}function Vj(e,t){if(e===void 0)return true;let n=chunkPWTRJSES_cjs.nd(e);if(n===null||!t&&n<0)return false;let r=n/20;return Number.isFinite(r)&&Math.abs(r)<=1584}function Kj(e,t,n,r,o){let a=JP(t.props);if(a){if(!ZP(e,o))return;if(!a.autoWidth)return a;let p=t.available+t.indent.left+t.indent.right;return p>0&&p<=1584?{...a,width:p}:void 0}let i=qP(t.props);if(!i||!["drop","margin"].includes(i.dropCap??"")||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))return;let l=Number(i.lines??"1");if(!Number.isInteger(l)||l<1||l>100||!ZP(e))return;let s=it(t.props);if(i.dropCap==="drop"&&s||Object.keys(i).some(p=>!["dropCap","lines","wrap","hAnchor","vAnchor","hSpace","vSpace","anchorLock","w","h","hRule","x","y","xAlign","yAlign"].includes(p))||i.wrap!==void 0&&!["auto","around","tight","through","none","notBeside"].includes(i.wrap)||i.hAnchor!==void 0&&!["page","margin","text"].includes(i.hAnchor)||i.vAnchor!==void 0&&!["page","margin","text"].includes(i.vAnchor)||i.hRule!==void 0&&!["auto","atLeast","exact"].includes(i.hRule)||i.xAlign!==void 0&&!["left","center","right","inside","outside"].includes(i.xAlign)||i.yAlign!==void 0&&!["inline","top","center","bottom","inside","outside"].includes(i.yAlign)||["x","y"].some(p=>!Vj(i[p],true))||["w","h"].some(p=>!Vj(i[p],false))||i.anchorLock!==void 0&&!["0","1","true","false","on","off"].includes(i.anchorLock))return;let d=[e],c=0;for(;d.length;)for(let p of d.pop().children)if(p.kind==="textValue"?c+=p.value.length:d.push(p),c>32)return;let u=O8(e,t,n,r,"drop-cap-probe");if(u===void 0)return;let f=JP([{localName:"framePr",attributes:{x:"0",y:"0",w:String(Math.ceil(u*20)),hSpace:i.hSpace??"0",vSpace:i.vSpace??"0",wrap:i.wrap??"around",anchorLock:i.anchorLock??"0"}}]);return f?{...f,width:u,dropCap:i.dropCap,dropCapRtl:s,dropCapLines:l,token:`drop-cap:${i.dropCap}:${e.id}:${f.token}`}:void 0}function O8(e,t,n,r,o){let a=NP({paragraph:e,paragraphId:e.id,indentLeft:t.indent.left,available:t.available,measurer:n,cache:void 0,cacheKey:null,formatting:t,producer:o,styleCascade:r,tabStops:t.tabStops,flow:{firstLineOffset:t.indent.firstLine-t.indent.hanging}});if(a.length!==1||a.some(l=>l.spans.some(s=>s.equation||s.projected||s.style.baselineShiftPt!==l.spans[0]?.style.baselineShiftPt)))return;let i=0;for(let l of a)for(let s of l.spans)i=Math.max(i,s.box.x+s.box.width+t.indent.right);if(i===0&&(i=Math.min(t.available,Math.max(.001,t.indent.right))),i=Math.min(i,t.available),!(!(i>0)||i>1584))return Math.min(t.available,i+.001)}function $j(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,s=i.box.y+i.baseline+l-r,d=i.box.y+i.box.height+l-r,c=o.spans[0]?.style.baselineShiftPt??0,u=s+c-o.baseline-o.box.y;return {height:d,fragment:{...e,box:{...e.box,height:d},lines:e.lines.map(f=>({...f,baseline:f.baseline+u,spans:f.spans.map(p=>({...p,box:{...p.box,y:p.box.y+u}}))}))}}}function Uj(e,t,n,r,o,a,i,l,s,d,c,u){if(!n||t.kind!=="paragraph"||!Le(s,"anchorOnlyParagraphWrapExclusion"))return e;let f=at(t,n);if(!f.length||chunkPWTRJSES_cjs.jg(t).length!==f.length)return e;let p=lg({paragraph:t,paragraphId:t.id,drawingLayout:n,frameBase:r(),contentLeft:a,contentRight:i,paragraphStartY:o,anchorLineTopByModelStart:new Map([...Tn(t).values()].map(g=>[g,0])),displayMode:d,revisionAuthorFilter:c,...u?{layoutTextboxStory:u}:{}});return [...e.filter(g=>g.anchorParagraphId!==t.id||g.input.mode==="topAndBottom"),...p.map(g=>({...g,columnIndex:l}))]}function Yj(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 s=n.get(l.paragraph.id);return s||(s=new Set(at(l.paragraph,e.drawingLayout).filter(({projection:d})=>d.position?.vertical.relativeFrom==="paragraph"&&d.position.vertical.align===null&&(d.position.vertical.offsetEmu??0)>=0).map(({projection:d})=>d.drawingNodeId)),n.set(l.paragraph.id,s)),s.has(a.drawingNodeId)},o=a=>a.reduce((i,l)=>i+l.height+(l.exclusionSkipBefore??0),0);return {breakZones(a,i,l,s,d,c,u,f,p){let g=a.frame?[]:Uj(s,a.paragraph,e.drawingLayout,d,c,u,f,l,e.compatibilityMode,e.displayMode??"proposed",e.revisionAuthorFilter,e.layoutTextboxStory),m=this.select(a,i,l,g,{omittedAnchor:p});return u===0?m:Ri(m,u,0)},select(a,i,l,s,d={}){let{placement:c=false,omittedAnchor:u}=d;return s.filter(f=>{if(f.anchorParagraphId===u)return false;if(f.sourceKind==="furniture"||f.earlierSection)return true;let p=e.paragraphOrder.get(a.paragraph.id),g=e.paragraphOrder.get(f.anchorParagraphId),m=!e.seedForwardOnly&&f.pageFramedBand===true||!c&&r(f,i);if(p!==void 0&&g!==void 0){if(g>p&&!m)return false}else {let h=e.paragraphIndex(f.anchorParagraphId);if(h<0||h>i&&!m)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 p=e.paragraphAt(i+1),g=a.contextualSpacing&&a.styleId!==null&&a.styleId===p?.styleId?0:a.spacing.after,m={...f.input,wrapDistances:{...f.input.wrapDistances,top:f.input.wrapDistances.top+g}};return {...f,input:m,verticalBand:Nl(m)}})},measure(a,i,l,s,d){let c=l.find(u=>r(u,i));c&&t.set(`${a}:${c.anchorParagraphId}`,Math.max(0,o(s)-o(d(c.anchorParagraphId))));},displacement(a,i){return t.get(`${a}:${i}`)??0}}}var Xj=new WeakMap;function C8(e,t){let n=Xj.get(e);n||(n=new Map,Xj.set(e,n));let r=n.get(t);if(r!==void 0)return r;let o=chunkPWTRJSES_cjs.Ta(e,t),a=null;if(o&&o.kind==="table"){let i=o.children.find(l=>l.localName==="tblPr");a=Ql(i)??null;}return n.set(t,a),a}function Zj(e){return e.filter(t=>t.kind==="table"&&vt(t))}function qj(e){return Zj(e.fragments).length>0}function Jj(e,t){let n=e.part;if(!n)return [];let r=[];for(let o of Zj(e.fragments)){let a=C8(n,o.tableId);if(!a)continue;let i={...o.box,x:e.box.x+o.box.x-t.x,y:e.box.y+o.box.y-t.y},l={...o,box:i,floatingWrap:{anchorId:o.tableId,columnIndex:0,float:a,sourceOrder:-1}},s=Ua([{fragments:[l]}],new Map,{contentWidth:t.width}).get(0)?.[0];!s||s.verticalBand.y>=t.height||s.verticalBand.y+s.verticalBand.height<=0||r.push(Object.freeze({...s,sourceKind:"furniture",furnitureSource:Object.freeze({partName:e.partName,kind:"table",nodeId:o.tableId}),drawingNodeId:o.tableId,anchorParagraphId:""}));}return r}var Qj=new WeakMap,tW=e=>!["inline","behind","inFront"].includes(e.wrap);function nW(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 rW(e,t=false){if(!e)return false;for(let n of [e.headers,e.footers])for(let r of n.values())if(qj(r))return true;return nW(e,n=>tW(n)&&!(t&&n.accessibility.hidden))}var eW=e=>e.accessibility.hidden&&tW(e);function I8(e,t){return nW(e,eW)?true:[t?.header,t?.footer].some(r=>r?.anchoredDrawings?.some(eW)??false)}function oW(e,t){if(t.drawingExclusionPass!==void 0||t.drawingExclusionConverged||t.yieldHiddenFurnitureZones||!I8(t.furniture,t.continuedPageFurniture))return false;try{return e instanceof jo||e instanceof fn}catch{return false}}function u0(e,t=false){let n=[];for(let r of [e.header,e.footer]){if(!r?.part||(n.push(...Jj(r,e.contentBox)),!r.anchoredDrawings?.length))continue;let o=Qj.get(r.part);o||(o=chunkPWTRJSES_cjs.Pd(r.part),Qj.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=Lu({drawing:a,projection:i,sourceOrder:-1,contentLeft:0,contentRight:e.contentBox.width});if(!l)continue;let s=hp(a,r.box,e.box),[d]=Ri([l],a.x-s.x+e.contentBox.x,a.y-s.y+e.contentBox.y,{left:0,right:e.contentBox.width});!d||d.verticalBand.y>=e.contentBox.height||d.verticalBand.y+d.verticalBand.height<=0||n.push(Object.freeze({...d,sourceKind:"furniture",furnitureSource:Object.freeze({partName:r.partName,kind:"drawing",nodeId:a.drawingNodeId}),drawingNodeId:`${r.partName}:${a.drawingNodeId}`,anchorParagraphId:`${r.partName}:${a.anchorParagraphId}`}));}}return Object.freeze(n)}function aW(e,t,n,r,o=false){return u0({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)}function M8(e,t,n,r){if(!e.contentBox||!e.fragments)return Object.freeze([]);let o=iW.get(e);if(o&&o.contentLeft===t&&o.contentWidth===n&&o.drawingLayout===r)return o.zones;let a=B8(e,t,n,r);return iW.set(e,{contentLeft:t,contentWidth:n,drawingLayout:r,zones:a}),a}var iW=new WeakMap;function B8(e,t,n,r){if(!e.contentBox||!e.fragments)return Object.freeze([]);let o=e.contentBox.width,a=Object.freeze({columnCount:1,columnGapPt:0,contentWidth:o}),i=r&&e.anchoredDrawings?.length?Au(e.anchoredDrawings,r,0,o,void 0,a):[],l=Ua([{fragments:e.fragments}],new Map([[0,i]]),a).get(0)??[];if(l.length===0)return Object.freeze([]);let s=e.contentBox.x-e.box.x;return Object.freeze(Ri(l,t-s,0,{left:0,right:n}).map(d=>Object.freeze({...d,earlierSection:true})))}function sW(e,t,n,r,o){let a=aW(e,t,n,r,o.omitHiddenFurniture),i=M8(e,n,r,o.drawingLayout);return i.length?Object.freeze([...a,...i]):a}function dW(e,t){return {furnitureHasWrap:e||(t?.length??0)>0,furnitureHoldsTables:e||(t?.some(n=>!n.earlierSection)??false),admission:n=>L8(n,t)}}var lW=new WeakMap;function L8(e,t){let n=t?.filter(i=>i.earlierSection&&!i.sourceKind);if(!t||!n?.length)return e;let r=lW.get(t);if(r&&r.zones===e)return r.merged;let o=new Map(e),a=n.map(i=>Object.freeze({...i,sourceOrder:-1}));return o.set(0,Object.freeze([...e?.get(0)??[],...a])),lW.set(t,{zones:e,merged:o}),o}var cW=new WeakMap;function f0(e){if(e===void 0||e.size===0)return "";let t=cW.get(e);if(t!==void 0)return t;let n=[...e].join(",");return cW.set(e,n),n}function uW(e){let t=f0(e.chrome),n=f0(e.placeholder),r=f0(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function fW(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 mW(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 pW(e,t,n){return e.length===t.length&&e.every((r,o)=>{let a=t[o];return r===a||r.kind==="paragraph"&&a.kind==="paragraph"&&r.id===a.id||r.kind==="table"&&a.kind==="table"&&n?.(r,a)===true})}function gW(e,t){return e!==1?"columns":t?.size?JSON.stringify([...t].sort()):"body"}function hW(e,t=12,n){return e.map((r,o)=>{if(r.kind!=="paragraph"||!r.listItem&&!r.contextualSpacing)return r;let a=g=>{let m=e[o+g],h=r.paragraph?is(r.paragraph,g,m,n):m?.kind==="paragraph"?m.styleId:void 0;return h!==void 0&&h===r.styleId},i=g=>{let m=e[o+g];return !(g<0&&m?.kind==="paragraph"&&m.paragraph!==void 0&&lr(m.paragraph)!==void 0)&&m?.kind==="paragraph"&&r.listItem!==void 0&&m.listItem?.numId===r.listItem.numId||r.contextualSpacing&&a(g)},l=n?.fixedParagraphSpacing===true,s=r.paragraph?lr(r.paragraph)?.at(-1)?.paragraph:void 0,d=s?Xn(s,1e3,n,void 0,void 0,false,t).props:r.props,c=ci(r.props,{lineUnitPt:t,fixedAutoSpacing:l}),u=ci(r.props,{inList:r.listItem!==void 0,lineUnitPt:t,fixedAutoSpacing:l}),f=r.listItem&&o===0||i(-1)?u.before:c.before,p=s?ci(d,{lineUnitPt:t,fixedAutoSpacing:l}).after:i(1)?u.after:c.after;return r.contextualSpacing&&(a(-1)&&(f=0),a(1)&&(p=0)),f===r.spacing.before&&p===r.spacing.after?r:{...r,spacing:{before:f,after:p}}})}function yW(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 A8={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",paragraphMarkSizePt:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",markChangeSites:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},N8={kind:"covered",floatingWrap:"hashed",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function xW(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var D8=xW(A8),_8=xW(N8),bW=new WeakMap;function ib(e){let t=bW.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify([By(e),..._8.map(r=>e[r])]):JSON.stringify(D8.map(r=>e[r]));return bW.set(e,n),n}function SW(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&&ib(r)!==ib(o))return false}return true}function m0(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 RW=Object.freeze([]),PW=new Map;function wW(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 H8(e,t,n){let r=o=>({...o,x:o.x+t});return {...e,box:{...e.box,width:n},...e.shadingBox?{shadingBox:{...e.shadingBox,width:Math.max(e.shadingBox.width,n)}}:{},...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:{...o.box,width:n},contentX:o.contentX+t,spans:o.spans.map(a=>({...a,box:r(a.box)})),...o.drawings?{drawings:o.drawings.map(a=>pr(a,t,0))}:{}}))}}function kW(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=chunkPWTRJSES_cjs.f(new TextEncoder().encode(de(e.slice(r,i+1))));n===e&&(n=[...e]);for(let s=r;s<=i;s++)n[s]=de([e[s],l]);r=-1;}return n}function p0(e,t){return e===t||e?.length===t?.length&&e?.signature===t?.signature}var lb=class{pending;checkpoint(){return this.pending}restore(t){this.pending=t;}same(t){return p0(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},s=chunkPWTRJSES_cjs.f(new TextEncoder().encode(de([this.pending?.signature??"",t.token,r,String(l.sourceOrder),ib(n)])));this.pending={item:l,previous:this.pending,length:(this.pending?.length??0)+1,signature:s};}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=[],a){if(!this.pending)return [];let i=new Array(this.pending.length);for(let u=this.pending;u;u=u.previous)i[u.length-1]=u.item;i.some(({frame:u})=>u.xAlign==="inside"||u.xAlign==="outside")&&a?.();let l=i.map(u=>({item:u,fragment:u.frame.dropCapLines?$j(u.fragment,u.frame.dropCapLines,o,t.text.y).fragment:u.fragment})),s=new Map;for(let{item:u,fragment:f}of l){let p=s.get(u.groupId),g=f.box.y+f.box.height;p?(p.width=Math.max(p.width,u.frame.width),p.contentHeight=Math.max(p.contentHeight,g)):s.set(u.groupId,{frame:u.frame,width:u.frame.width,contentHeight:g,height:0});}let d=new Map;for(let[u,f]of s){f.height=f.frame.heightRule==="exact"?f.frame.height:f.frame.heightRule==="atLeast"?Math.max(f.contentHeight,f.frame.height??0):f.contentHeight;let p=QP(f.frame,t,f);d.set(u,{...p,width:f.width,height:f.height});}let c=l.map(({item:u,fragment:f})=>{let p=s.get(u.groupId),g=f;if(u.frame.autoWidth&&p.width>u.frame.width){let h=p.width-u.frame.width,y=g.alignment==="right"?h:g.alignment==="center"?h/2:0;g=H8(g,y,g.box.width+h);}let m=x1(g,u.frame,t,p);return {item:u,fragment:m}});return this.pending=void 0,c.map(({item:u,fragment:f})=>{let p={anchorId:n,columnIndex:r,groupId:u.groupId,sourceOrder:u.sourceOrder,...u.frame.dropCapLines?{dropCapLines:u.frame.dropCapLines}:{},wrap:u.frame.wrap,hSpace:u.frame.hSpace,vSpace:u.frame.vSpace,box:d.get(u.groupId)};return u.frame.heightRule!=="exact"?{...f,positionedFrame:p}:{...f,clipToBox:true,box:p.box,positionedFrame:p,lines:f.lines.map(g=>g.drawings?.length?{...g,drawings:g.drawings.map(m=>os(m,p.box))}:g)}})}};function TW(e){let{topEdge:t,closingEdge:n,continuesAbove:r,continuesBelow:o,isLast:a,top:i}=e,{linesTop:l,linesBottom:s,regionX:d,indentLeft:c,available:u,appliedAfter:f}=e,p=e.drawn?e.borders:{},g=[],m,h=l,y=s,b=e.borders,x=b.left?wr(b.left):0,R=b.right?wr(b.right):0,P=d+c-(e.outdent?.left??0),S=d+c+u+(e.outdent?.right??0),w=b.left?P-b.left.spacePt-x:P,F=b.right?S+b.right.spacePt+R:S,T=Math.max(F-w,0);if(e.drawn&&e.topExtent>0&&t){let N=wr(t),L=l-t.spacePt-N;g.push({side:"top",edge:t,box:{x:w,y:L,width:T,height:N}}),h=L;}let v=e.drawn?n:void 0,C=e.inFrame&&v&&!o?f:0;if(a&&v){let N=wr(v),L=s+C+v.spacePt,D={x:w,y:L,width:T,height:N};g.push({side:o?"between":"bottom",edge:v,box:D}),o||(m={edge:v,box:D}),y=L+N;}let I=f-C,O=Math.max(y+I-i,0),k=r&&e.fragmentIndex===0?i:h,E=o&&a?i+O:y,M=Math.max(E-k,0),A=(N,L)=>({x:N,y:k,width:L,height:M});if(p.left&&g.push({side:"left",edge:p.left,box:A(w,x)}),p.right){let N=S+p.right.spacePt;g.push({side:"right",edge:p.right,box:A(N,R)});}if(p.bar){let N=wr(p.bar);g.push({side:"bar",edge:p.bar,box:{x:d+c-p.bar.spacePt-N,y:l,width:N,height:Math.max(s-l,0)}});}return {strokes:g,bottomBorder:m,contentTop:h,contentBottom:y,boxLeft:w,boxWidth:T,bottom:y+I,height:O}}function j8(e,t){let n=[];for(let r=0;r+1<t.length;r+=1){let o=e[t[r].blockEndExclusive-1];o?.kind==="paragraph"&&n.push(Object.freeze({paragraphId:o.id,kind:t[r+1].properties.breakType}));}return Object.freeze(n)}function W8(e,t){if(e===void 0)return t.length===0;if(e.length!==t.length)return false;for(let n=0;n<t.length;n+=1)if(e[n].paragraphId!==t[n].paragraphId||e[n].kind!==t[n].kind)return false;return true}function vW(e,t,n){let r=j8(n,mo(t,n).sections);if(W8(e.sectionBreaks,r))return e;if(r.length===0){let{sectionBreaks:o,...a}=e;return a}return {...e,sectionBreaks:r}}var FW=new WeakMap;function z8(e){let t=FW.get(e);if(t!==void 0)return t;let n=chunkPWTRJSES_cjs.Wi(e).includes(chunkPWTRJSES_cjs.mb);return FW.set(e,n),n}var G8="";function OW(e,t){let n=new Map,r=i=>{let{styleCascade:l}=e,s=Ma(i.paragraph,i.inheritedRunProperties,void 0,l?(u,f)=>ur(u,f,l):void 0,void 0,e.noteMarks,e.displayMode??Ue,void 0,e.inlineDrawingLayout,l?.themeFonts,void 0,e.documentProperties,t,e.refFields,e.revisionAuthorFilter,e.showFieldCodes,e.fieldCodeRanges?.get(i.paragraph.id)),d="";for(let u of s)d+=u.inlineDrawing||u.equation?"\uFFFC":u.breakKind==="column"?G8:u.text;let c=d.slice(chunkPWTRJSES_cjs.mb.length);return d.startsWith(chunkPWTRJSES_cjs.mb)&&!c.startsWith(`
|
|
29
|
+
`)&&/[^\n]/.test(c)},o=i=>{if(i.frame||!z8(i.paragraph))return false;let l=n.get(i.paragraph);if(l!==void 0)return l;let s=e.inlineDrawingLayout,d=!(s&&at(i.paragraph,s).length>0)&&r(i);return n.set(i.paragraph,d),d},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 s=i;for(let d=0;d+1<l.length;d+=1)a(l[d],l[d+1])&&(s===i&&(s=[...i]),s[d]=`${s[d]}~lbg`);return s}}}function CW(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:kr(t.margin.bottom),contentInsetTop:n.top,contentInsetBottom:n.bottom,contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentBandHeight:n.height,ownerPartName:e.ownerPartName,storyKind:"body"})}function IW(e,t,n){return e.shading===void 0&&g0(e,t,n)}function g0(e,t,n){if(e.listItem!==void 0)return false;let{top:r,bottom:o,left:a,right:i,between:l,bar:s}=e.borders;return (r??o??a??i??l??s)||n&&at(e.paragraph,n).length>0?false:t.every(d=>d.drawings.length===0&&!d.pageBreakAfter&&!d.columnBreakAfter&&d.spans.every(c=>c.text.length===0))}var V8=e=>e.drawings.length>0||e.spans.some(t=>/[^\f\n]/.test(t.text)),K8=e=>e.pageBreakAfter===true||e.columnBreakAfter===true||V8(e);function MW(e,t,n){let r=t[0];return r!==void 0&&r.start===0&&(h0(r)||Vo(r)&&t.some((o,a)=>a>0&&K8(o)))&&!(n&&at(e.paragraph,n).length>0)}var h0=e=>e.columnBreakAfter===true&&e.drawings.length===0&&e.spans.every(t=>!/[^\n]/.test(t.text));function BW(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)}}function LW(e,t,n){let r=t-n;return e.height.rule!=="exact"||r<=0?null:{row:{...e,height:{rule:"exact",valuePt:r}},band:t}}function EW(e){return new fn("table-row-overheight",e.height.rule==="exact"?`Table row ${e.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${e.id} has w:cantSplit and is taller than the available page content`)}var $8=64;function AW(e,t,n,r,o,a,i,l,s){if(e.cellSpacingPt>0||e.float||t.length===0||t.length>$8||e.columnWidthsPt.length>1024||![r,o,a,i,l].every(Number.isFinite)||Bc(e)||(s.pageExclusionZones?.().length??0)>0||!eb([...t,n],e.columnWidthsPt.length))return;let d=t.reduce((T,v)=>T+v.cells.length,n.cells.length);if(s.borderOwnershipBudget&&s.borderOwnershipBudget.intervalsRemaining<d||!(n.height.rule==="exact"||n.cantSplit&&l<=a+.001)&&l>a-o-i+.001)return;let u=t[t.length-1],f=Qy(u),p=Qy(n),g=Yd([f,p],e.tableBorders,e.columnWidthsPt.length)[0],m=new Map,h=[];for(let T=0;T<f.length;T+=1)for(let v of g[T].edgeSegments??[])v.side==="bottom"&&h.push({start:v.gridStart,end:v.gridEnd,edge:v.edge});for(let[T,v]of f.entries()){let C=v.margins.bottom;for(let I of g[T].edgeSegments??[])I.side!=="bottom"||Ei(I.edge)>0||(C=Math.max(C,Zn(v.margins.bottom,{state:"edge",...I.edge},true)));m.set(v.id,{...tn(v,true),bottom:C});}let y=0,b=0;for(let T of p)for(let v of f){if(v.gridColumn+v.gridSpan<=T.gridColumn||v.gridColumn>=T.gridColumn+T.gridSpan)continue;let C=0;for(let I of h)I.end<=v.gridColumn||I.start>=v.gridColumn+v.gridSpan||(C=Math.max(C,Ei(I.edge)));b=Math.max(b,gh(T.borders.top,v.borders.bottom,(T.rowTableBorders??e.tableBorders).insideH,C,T.suppressesTopBand));}for(let T of p){let v=T.margins.top+b,C=T.gridColumn+T.gridSpan;for(;y<h.length&&h[y].end<=T.gridColumn;)y++;for(let I=y;I<h.length&&h[I].start<C;I++)Ei(h[I].edge)>0||(v=Math.max(v,Zn(T.margins.top,{state:"edge",...h[I].edge},true,false,true)));m.set(T.id,{...tn(T,true),top:v});}if([u,n].every(T=>T.cells.every(v=>{let C=tn(v,true),I=m.get(v.id);return C.top===I.top&&C.bottom===I.bottom})))return;let x=rt(e,t[0],{...s,cellContentInsets:m}),R=0,P={...Zt(s),cache:bi(s.cache),borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,cellContentInsets:x.cellContentInsets,nextLineId:()=>`probe-header-border-${R++}`},S=o;for(let T of t){let v=qt(T,e.columnWidthsPt,r,S,true,0,P);if(S=v.bottom,v.remainder!==null||S>a+.001)return null}let w=S-o,F=qt(n,e.columnWidthsPt,r,S,false,0,P);return F.remainder!==null||F.bottom>a+.001?null:{bodyRowId:n.id,headerHeight:w,bodyHeight:F.bottom-S,deps:x}}var U8=4,Co=null;function Y8(e,t){return e.length>0&&e.every(n=>n.cells.every(r=>r.textDirection==="horizontal"&&r.blocks.every(o=>o.kind==="paragraph"&&$i(o)&&!t.listItems?.has(o.id))))}function NW(e){let{structure:t,headerRows:n,deps:r,left:o,rowHeightOf:a,rowProbes:i}=e,l=e.admitted&&t.cellSpacingPt===0&&Y8(n,r),s=()=>!r.pageExclusionZones?.().length,d=h=>{for(let y of h)r.onCellBreakKey?.(y),r.cache?.get(y);},c=null,u=l?{...r,onCellBreakKey:h=>{c?.push(h),r.onCellBreakKey?.(h);}}:r,f,p=[],g=new Map,m=(h,y)=>{h.length===U8&&h.shift(),h.push(y);};return {plan(h){let y=o(),b=l&&s()&&true;if(b){for(let S of p)if(Object.is(S.top,h)&&Object.is(S.left,y)&&S.plan.unchanged())return d(S.keys),S.measured&&i.forget(),S.plan}if(!b)return tb(t,n,o,h,r,a);let x=false;c=[];let R=jH(t,n,o,h,u,(S,w,F)=>(x=true,a(S,w,F))),P=c;return c=null,m(p,{top:h,left:y,plan:R,keys:P,measured:x}),R},headerDeps(){return !l||Co?.disabled?rt(t,n[0],r):f??=rt(t,n[0],u)},place(h,y,b,x,R,P,S){let w=()=>qt(x,t.columnWidthsPt,o(),R,h,0,P,t.cellSpacingPt,S),F=h&&!y,T=P.pageOccurrenceKey?.(),v=o(),C=l&&F&&T!==void 0&&P===f&&s()&&true;if(C)for(let k of g.get(b)??[]){if(k.source!==x||!Object.is(k.top,R)||!Object.is(k.left,v)||k.deps!==P||!n0(k.options,S))continue;let E=Z8(k.record,P,T);return d(k.keys),{record:E,bottom:k.bottom,remainder:null,fitted:k.fitted,nestedSplitBlocked:false}}if(!C)return w();c=[];let I=w(),O=c;if(c=null,I.remainder===null&&X8(I.record,T)){let k=g.get(b);k||g.set(b,k=[]),m(k,{source:x,top:R,left:v,deps:P,options:S,record:I.record,bottom:I.bottom,fitted:I.fitted,keys:O});}return I}}}function X8(e,t){for(let n of e.cells)for(let r of n.blocks){if(r.kind!=="paragraph")return false;for(let o=0;o<r.lines.length;o+=1){let a=r.lines[o];if(a.id!==Fo(a.range.paragraphId,a.range.start,o,t))return false}}return true}function Z8(e,t,n){let r=[];for(let o of e.cells){let a=[];for(let i of o.blocks){if(i.kind!=="paragraph")throw new Error("A kept header row holds only paragraphs");let l=[];for(let s=0;s<i.lines.length;s+=1){let d=i.lines[s];l.push({...d,id:t.nextLineId(d.range.paragraphId,d.range.start,s,n)});}a.push(pc(i,l));}r.push({...o,blocks:a});}return {...e,cells:r}}var sb=.001;function q8(e){let t=0;return {...Zt(e),cache:bi(e.cache),borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-deferred-merge-${t++}`}}var J8=(e,t)=>e.vMergeContinue||t===void 0||t.blockIndex>=e.blocks.length;function Q8(e,t,n){let r=new Set,o=n.remainder;if(o===null)return r;for(let[a,i]of e.cells.entries()){if(J8(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 e9(e,t,n){let r=e.cells.filter(d=>n.has(d.id)),o=new Map,a=new Map,i={...e,cells:e.cells.map(d=>n.has(d.id)?{...d,blocks:[]}:d)},l={...t,cells:t.cells.map(d=>{let c=d.vMergeContinue?r.find(f=>f.gridColumn===d.gridColumn):void 0;if(c===void 0)return d;o.set(c.id,d);let u={...c,vAlign:d.vAlign};return a.set(c.id,u),u})},s={...e,cells:e.cells.map(d=>a.get(d.id)??d)};return {headRow:i,nextRow:l,continuations:o,headSource:s}}function DW(e){let{plan:t,rows:n,rowIndex:r,structure:o,left:a,top:i,contentBottom:l}=e;if(!Le(e.compatibilityMode,"vMergeTextMovesPastHeadRow")||t===null||i<=sb)return null;let s=n[r],d=n[r+1],c=t.spansAt(r);if(s===void 0||d===void 0||c.length===0||s.height.rule==="exact"||d.height.rule==="exact"||t.spansAt(r+1).length>0||c.some(S=>S.endRow!==r+1))return null;let u=new Set(c.map(S=>S.headCellId));for(let S of s.cells){if(!u.has(S.id))continue;let w=d.cells.find(F=>F.vMergeContinue&&F.gridColumn===S.gridColumn);if(S.textDirection==="btLr"||w===void 0||w.gridSpan!==S.gridSpan||w.textDirection==="btLr")return null}let f=o.columnWidthsPt,p=o.cellSpacingPt,g=new Map([...u].map(S=>[S,Number.POSITIVE_INFINITY])),m=S=>e.positioned?S:void 0,h=Nn(s,f,a,0,e.deps,p,{detachedSpanHeightPtByCellId:g},m(i)),y=i+h;if(h<=sb||y>l+sb)return null;let b=Nn(d,f,a,0,e.nextDeps,p,void 0,m(y));if(y+b<=l+sb||!d.cantSplit&&Oo(d,f,a,y,l,false,0,{...e.nextDeps,rowAtPageStart:false},Lt(d),p,{requireEveryCell:true}))return null;let x={detachedSpanHeightPtByCellId:new Map([...u].map(S=>[S,h]))},R=bn(s,f,a,i,Number.POSITIVE_INFINITY,false,false,0,q8(e.deps),Lt(s),p,x,l),P=Q8(s,u,R);return P===null||P.size===0?null:{...e9(s,d,P),options:x,heightPt:h,nextSource:d}}function t9(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 y0(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 n9(e,t,n,r){let o=[],a=[];for(let[i,l]of t.entries()){let s=l.isHeaderRepeat?void 0:e.get(l.id),d=s?l.cells.filter(h=>s.deferred.continuations.has(h.id)):[];if(!s||d.length===0){o.push(l),a.push(n[i]);continue}let{deferred:c,headRecord:u}=s,f=l.box.y,p={...u,isContinuation:true,...l.hasContinuation?{hasContinuation:true}:{},box:{...u.box,y:f,height:0},cells:u.cells.map(h=>d.find(y=>y.id===h.id)??{...h,blocks:[],box:{...h.box,y:f,height:0}})},g={...l,cells:l.cells.map(h=>{let y=c.continuations.get(h.id);return y?t9(h,y):h})},m=r.get(l);m&&(r.set(p,m),r.set(g,m)),o.push(p,g),a.push(c.headSource,c.nextSource);}return {rows:o,sources:a}}function _W(){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=>Zo(r)?{...r,cells:r.cells.map(y0)}:r)},publish(n,r,o){return e.size===0?{rows:n,sources:r}:n9(e,n,r,o)}}}var r9="http://schemas.openxmlformats.org/wordprocessingml/2006/main",Dc=.001,o9=new Set(["p","pPr","r","rPr","t","spacing","jc","ind","rFonts","sz","szCs","lang","b","bCs","i","iCs","u","color","highlight","shd","vertAlign","kern","position","w","fitText","caps","smallCaps","strike","dstrike","vanish","noProof","rtl","cs","pStyle","rStyle","contextualSpacing","widowControl","fldChar","instrText","fldSimple","lastRenderedPageBreak","proofErr","bookmarkStart","bookmarkEnd","tab","tabs","numPr","numId","ilvl","keepNext","keepLines","ins","del","delText","hyperlink"]);function a9(e,t){if(e.textDirection!=="horizontal")return false;let n=[...e.blocks];for(;n.length>0;){if(--t.remaining<0)return false;let r=n.pop();if(r.kind!=="textValue"){if(!("localName"in r)||r.namespaceUri!==r9||!o9.has(r.localName))return false;for(let o of r.children)n.push(o);}}return true}function HW(e,t,n,r){let o=[],a=new Map,i=new Map(t.map((m,h)=>[m.id,h])),l=_i(t),s=new Map,d=0;for(let[m,h]of t.entries()){for(let y of h.cells){let b=l.get(y.id)??1;if(b<2||y.vMergeContinue)continue;if(d+=b,d>1e5||s.size>=4096)break;let x=m+b-1;if(x>=t.length)continue;let R=`${m}:${x}`,P=s.get(R);P||(P={first:m,last:x,source:h,heads:[],physicalHeights:[],heights:[],active:false},s.set(R,P)),P.heads.push({cell:y,cursor:null,complete:false});}if(d>1e5||s.size>=4096)break}if(d<=1e5&&s.size<4096&&!e.float&&!n.pageExclusionZones?.().length){let m=[...s.values()].sort((b,x)=>b.first-x.first),h={remaining:1e5},y=-1;for(let[b,x]of m.entries()){let R=y>=x.first;if(y=Math.max(y,x.last),x.last-x.first<2||R||(m[b+1]?.first??1/0)<=x.last||!x.heads.every(S=>a9(S.cell,h)))continue;let P=true;for(let S=x.first;S<=x.last;S++){let w=t[S];if(w.isHeader||!w.cantSplit&&w.height.rule!=="exact"){P=false;break}let F=new Map;for(let T of w.cells){if(F.has(T.gridColumn)){P=false;break}F.set(T.gridColumn,T);}for(let T of x.heads){let v=F.get(T.cell.gridColumn);if(!v||v.gridSpan!==T.cell.gridSpan||S>x.first&&!v.vMergeContinue){P=false;break}}}if(P){o.push(x);for(let S=x.first;S<=x.last;S++)a.set(S,x);}}}function c(m,h){let y=new Set(m.heads.map(b=>b.cell.id));return {...h,cells:h.cells.map(b=>y.has(b.id)?{...b,blocks:[],vMergeContinue:true}:b)}}function u(m){let h=0,y={...Zt(n),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-vmerge-fragment-${h++}`},b=e.columnWidthsPt,x=e.cellSpacingPt,R=[];for(let S=m.first;S<=m.last;S++)R.push(Nn(c(m,t[S]),b,r(),0,y,x));if(R.some(S=>!Number.isFinite(S)||S<=Dc))return false;m.physicalHeights=[...R];let P=R.reduce((S,w)=>S+w,0);for(let S of m.heads){let w=Nn({...m.source,height:{rule:"auto"},cells:[S.cell]},b,r(),0,y,x);if(!Number.isFinite(w)||w<0)return false;if(w>P+Dc){let F=m.last;for(;F>=m.first&&t[F].height.rule==="exact";)F--;if(F<m.first)return false;R[F-m.first]+=w-P,P=w;}}return m.heights=R,true}function f(m,h,y,b,x){let R={...h.cell,vAlign:"top"},P={...m.source,height:{rule:"auto"},cantSplit:false,cells:[R]},S=Lt(P);h.cursor&&(S[0]=h.cursor);let w=[];if(!h.complete){let T=bn(P,e.columnWidthsPt,x,y.box.y,b,false,h.cursor!==null,0,n,S,e.cellSpacingPt);if(w=T.record.cells[0].blocks,h.complete=T.remainder===null,h.cursor=T.remainder?.[0]??null,!h.complete&&!h.cursor)throw new fn("table-row-split-unsupported","Merged text lost its continuation cursor")}let F=m.headRecord.cells.find(T=>T.id===h.cell.id);return {...F,blocks:w,vMergeContinue:false,paintInert:false,box:{...F.box,x:x+F.box.x-m.headRecord.box.x,y:y.box.y,height:b-y.box.y}}}function p(m,h,y){if(m.fragmentStart&&(m.fragmentStart.index!==h||m.fragmentStart.top===y))return;m.fragmentStart={index:h,top:y};let b=m.last;for(;b>=h&&t[b].height.rule==="exact";)b--;if(b<h)return;let x=0,R={...Zt(n),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-vmerge-remainder-${x++}`},P=m.heights.slice(h-m.first).reduce((w,F)=>w+F,0),S=P;for(let w of m.heads){if(w.complete)continue;let F={...m.source,height:{rule:"auto"},cantSplit:false,cells:[{...w.cell,vAlign:"top"}]},T=Lt(F);w.cursor&&(T[0]=w.cursor);let v=bn(F,e.columnWidthsPt,r(),y,1/0,false,w.cursor!==null,0,R,T,e.cellSpacingPt),C=v.bottom-y;if(v.remainder!==null||!Number.isFinite(C)||C<0)throw new fn("table-row-split-unsupported","Cannot measure remaining merged text");S=Math.max(S,C);}S>P+Dc&&(m.heights[b-m.first]+=S-P);}function g(m,h,y){let b=m.fragmentStart?.top??h.record.box.y,x=0,R={...Zt(n),cache:void 0,borderOwnershipBudget:void 0,vMergeResolveBudget:void 0,onCellBreakKey:void 0,nextLineId:()=>`probe-vmerge-final-row-${x++}`},P=h.bottom,S=m.heads.filter(O=>!O.complete).map(O=>{let k={...m.source,height:{rule:"auto"},cantSplit:false,cells:[{...O.cell,vAlign:"top"}]},E=Lt(k);O.cursor&&(E[0]=O.cursor);let M=bn(k,e.columnWidthsPt,r(),b,1/0,false,O.cursor!==null,0,R,E,e.cellSpacingPt);if(M.remainder!==null||!Number.isFinite(M.bottom))throw new fn("table-row-split-unsupported","Cannot measure the final merged row");return P=Math.max(P,M.bottom),{head:O,row:k,cursors:E}}),w=Math.min(y,P),F=false,T=h.fitted;for(let{head:O,row:k,cursors:E}of S){let M=bn(k,e.columnWidthsPt,r(),b,w,false,O.cursor!==null,0,R,E,e.cellSpacingPt);F||=M.remainder!==null,T||=M.fitted;}if(w<=h.bottom+Dc&&!F)return T===h.fitted?h:{...h,fitted:T};let v=w-h.record.box.y,C={...h.record,box:{...h.record.box,height:v},cells:h.record.cells.map(O=>({...O,box:{...O.box,height:v-(O.box.y-h.record.box.y)}}))},I=Lt(t[m.last]).map((O,k)=>({...O,blockIndex:t[m.last].cells[k].blocks.length}));return {...h,record:C,bottom:w,fitted:T,remainder:h.remainder??(F?I:null)}}return {rowAt(m,h,y,b){let x=a.get(m);if(!x)return h;if(m===x.first&&!x.active&&u(x)){let R=x.heights.reduce((P,S)=>P+S,0);x.active=y+R>b+Dc&&x.physicalHeights.every(P=>P<=b+Dc);}return x.active?c(x,h):h},optionsAt(m,h,y){let b=a.get(m);if(b?.active)return p(b,m,h),{heightFloorPt:b.heights[m-b.first]}},adjustPlacement(m,h,y){let b=a.get(m);return b?.active&&m===b.last&&t[m].height.rule!=="exact"?g(b,h,y):h},finish(m){return o.some(h=>h.active)?m.map(h=>Zo(h)?{...h,cells:h.cells.map(y0)}:h):m},publish(m,h,y,b){if(!o.some(F=>F.active))return {rows:m,sources:h};let x=new Map,R=new Map,P=new Map;for(let[F,T]of m.entries()){let v=i.get(T.id),C=v===void 0?void 0:a.get(v);if(!T.isHeaderRepeat&&C?.active){let I=P.get(C)??[];I.push(F),P.set(C,I);}}for(let F of o){if(!F.active)continue;let T=P.get(F)??[];if(!T.length)continue;let v=T[0],C=m[v],I=m[T[T.length-1]];if(!F.headRecord){if(C.id!==F.source.id)throw new fn("table-row-split-unsupported","Merged text has no placed head row");F.headRecord=C;}let O=I.box.y+I.box.height,k=new Map(F.heads.map(M=>[M.cell.id,f(F,M,C,O,b)]));F.fragmentStart=void 0;let E={...F.headRecord,...C.id===F.source.id?{}:{isContinuation:true},box:C.id===F.source.id?C.box:{...C.box,height:0},cells:F.headRecord.cells.map(M=>k.get(M.id)??{...M,blocks:[],box:{...M.box,x:M.box.x+b-F.headRecord.box.x,y:C.box.y,height:0}})};if(C.id===F.source.id)R.set(v,{...C,cells:C.cells.map(M=>k.get(M.id)??M)});else {let M=x.get(v)??[];M.push({record:E,source:F.source}),x.set(v,M);let A=y.get(C);A&&y.set(E,A);}if(i.get(I.id)===F.last&&!I.hasContinuation&&t[F.last].height.rule!=="exact"&&F.heads.some(M=>!M.complete))throw new fn("table-row-split-unsupported","Merged text remains after its authored row span")}let S=[],w=[];for(let[F,T]of m.entries()){for(let O of x.get(F)??[])S.push(O.record),w.push(O.source);let v=R.get(F)??T;S.push(v);let C=i.get(T.id);w.push(R.has(F)&&C!==void 0?t[C]:h[F]);let I=y.get(T);v!==T&&I&&y.set(v,I);}return {rows:S,sources:w}}}}var Ja=.001;function jW(e,t,n,r,o){let a=o.inlineDrawingLayout;if(!a||Le(o.compatibilityMode,"anchorsLayOutInCell"))return null;let i=new Set(i9(e,a,o));if(i.size===0)return null;let l=s9(e,t,n,r,a,{...o,outOfCellFloatParagraphs:i});for(let m of [...i])l.some(h=>h.paragraphId===m)||i.delete(m);if(i.size===0)return null;let s=0,d=new Map,c=new Set,u=(m,h)=>{let y=m.anchorRowBottom-m.anchorRowTop,b=m.anchorRowTop+s;return (m.top<=b+y+Ja?Math.max(b,m.bottom+m.leadIn):b)+y<=h+Ja},f=m=>m.map(h=>{let y=d.get(h.anchorParagraphId);return y===void 0||!["paragraph","line"].includes(h.verticalFrame)?h:Mu(h,0,-y)}),p=m=>m&&(h=>m(f(h))),g=o.onAnchorRepublish;return {deps:{...o,publishAnchoredDrawings:p(o.publishAnchoredDrawings),collectAnchoredDrawings:p(o.collectAnchoredDrawings),...g?{onAnchorRepublish:(m,h)=>g(m,f(h))}:{},outOfCellFloatParagraphs:i},clear:(m,h,y,b)=>{for(let R of l)c.has(R.paragraphId)||(R.top>=b||!u(R,b))&&i.delete(R.paragraphId);l=l.filter(R=>i.has(R.paragraphId)&&R.bottom>m+Ja&&R.top<b);let x=m;for(let R=0;l.length>0&&R<=l.length;R+=1){let P=x+h(x),S=l.find(w=>w.top<=P+Ja&&w.bottom>x+Ja);if(!S)break;x=S.bottom;}s+=x-m;for(let R of y)for(let P of R.cells)for(let S of P.blocks)i.has(S.id)&&(c.add(S.id),s>Ja&&d.set(S.id,s));return x},end:()=>{l=[],s=0,d.clear(),c.clear(),i.clear();}}}function i9(e,t,n){let r=new Set;if(e.rows.some(a=>a.cells.some(i=>i.vMergeContinue)))return r;let o=Cl(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"&&l9(l,t,o)&&r.add(l.id);}return r}function l9(e,t,n){let r=at(e,t);return r.length===0?false:r.every(({projection:o})=>o.hidden||!ag(o.wrap)?false:!Pu(o,n))}function s9(e,t,n,r,o,a){let i=a.outOfCellFloatParagraphs,l=[],s=g=>{for(let m of g)l.push(m);},d=a.pageExclusionZones,c=0,u=Ga(e,n,r,0,t,0,{...Zt(a),measuringOnly:a.measuringOnly,anchorDeferOnly:false,publishAnchoredDrawings:s,collectAnchoredDrawings:s,onCellBreakKey:void 0,...d?{pageExclusionZones:()=>d().filter(g=>!i.has(g.anchorParagraphId??""))}:{},borderOwnershipBudget:Kr(),vMergeResolveBudget:So(),nextLineId:()=>`out-of-cell-float-probe-${c++}`}),f=c9(u.fragment),p=[];for(let g of l){if(!i.has(g.anchorParagraphId))continue;let m=o.projectionForAtom?.(g.drawingNodeId),h=m?Lu({drawing:g,projection:m,sourceOrder:0,contentLeft:-1e6,contentRight:1e6}):null;if(!h)continue;let y=h.verticalBand.y,b=h.verticalBand.y+h.verticalBand.height,x=f.get(g.anchorParagraphId);x&&(x.contentTop!==void 0&&g.paintBounds.y<=x.contentTop+Ja&&(y=Math.min(y,x.top)),b>y+Ja&&p.push(Object.freeze({top:y,bottom:b,paragraphId:g.anchorParagraphId,anchorRowTop:x.top,anchorRowBottom:x.bottom,leadIn:Math.max(0,x.top-d9(u.fragment,y))})));}return p}function d9(e,t){let n=e.rows.find(r=>r.box.y+r.box.height>=t-Ja);return n?n.box.y:t}function c9(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 ea=.001,u9=16;function f9(e,t,n,r=()=>0,o=()=>false){return (a,i)=>{if(i<=a+ea)return true;let l=a+r(a),s=t;if(o()&&(l+=1,s+=1),l>i+ea)return true;for(;s<e.length;s+=1)if(l+=n(e[s],l),l>i+ea)return true;return false}}function m9(e){let t=e.input;if(t.mode==="topAndBottom"){let s=e.verticalBand;return {top:s.y,bottom:s.y+s.height,left:-1/0,right:1/0}}if(t.mode==="square"||!t.polygon||t.polygon.length<3){let s=ku(t.contentBounds,t.effectInsets,t.wrapDistances);return {top:s.y,bottom:s.y+s.height,left:s.x,right:s.x+s.width}}let n=1/0,r=-1/0,o=1/0,a=-1/0;for(let s of t.polygon)n=Math.min(n,s.y),r=Math.max(r,s.y),o=Math.min(o,s.x),a=Math.max(a,s.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 p9(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 WW(e,t,n,r){let o=n.pageExclusionZones;if(!o)return null;let a=n.paragraphOrderIndex,i=a?p9(e,a):void 0,l=`${t}.`,s=e.columnWidthsPt.reduce((m,h)=>m+h,0),d=(m,h)=>{if(m.sourceKind==="furniture")return true;if(m.sourceKind!==void 0&&m.sourceKind!=="table")return false;if(m.earlierSection)return true;if(i===void 0||!a||h!==void 0&&m.columnIndex!==h||m.anchorParagraphId.startsWith(l))return false;let y=a(m.anchorParagraphId);return y!==void 0&&y<i},c,u,f=[],p=(m,h)=>{let y=o(),b=r.flow.flowColumn?.();(y!==c||b!==u)&&(c=y,u=b,f=y.filter(w=>d(w,b)).map(m9).sort((w,F)=>w.top-F.top));let x=r.left(),R=r.bottom(),P=f.filter(w=>w.bottom<R-ea&&w.left<x+s-ea&&w.right>x+ea),S=m;for(let w=0;w<u9;w+=1){let F=P.find(T=>T.bottom>S+ea);if(!F||!h.reaches(S,F.top))return S;S=F.bottom;}return S},g={pending:void 0,clear(m){let h=r.flow.cursorY,y=p(h,m);if(y<=h+ea||y>=r.bottom()-ea)return false;let b=r.opensRegion();return b&&!m.fitsAt(y)?false:(r.flow.cursorY=y,r.moved(y,b),true)},clearPending(m){let h=g.pending;h&&g.clear({reaches:(y,b)=>b<=y+ea||h.reaches(y+m,b),fitsAt:y=>h.fitsAt(y+m)});},fragment:(m,h,y,b)=>({reaches:f9(e.rows,m,r.heightOf,y,b),fitsAt:h})};return g}var zW=Number.MAX_SAFE_INTEGER/1024;function GW(e,t,n){let r=new Map(n?[n]:[]);return o=>{let a=r.get(o);return a===void 0&&r.set(o,a=t(e[o])),a}}function VW(e,t,n,r,o,a,i,l){let s=t.length-1,d=t[s],c=n[s];if(d.isContinuation||!r.has(c))return;let u={...l,cellContentInsets:o.get(d)??l.cellContentInsets},f=Rs(e,c,a,d.box.y,i,u);if(!f||!ob(d,f.probe))return;let p={...d,box:{...d.box,height:f.height},cells:d.cells.map(g=>({...g,box:{...g.box,height:f.height-(g.box.y-d.box.y)}}))};return t[s]=p,o.delete(d),f.deps.cellContentInsets&&o.set(p,f.deps.cellContentInsets),f.height-d.box.height}function*KW(e,t){let{columnWidth:n,columnLeft:r,contentHeight:o,advanceColumn:a,anchorFrames:i,verticalAnchorFrames:l,styleCascade:s,displayMode:d,revisionAuthorFilter:c,deps:u,shiftAnchor:f,publishFragment:p}=t,g=n(),m=nn(e,g,0,s,d,c,t.compatibilityMode,An(u));if(!m||m.rows.length===0)return {outOfFlow:false};let h=t.positionTextTable?void 0:LD(e,m,t),y=h?ED(m):m;h&&(t.cursorY=h.top);let b=h===void 0&&y.float!==void 0&&(y.float.vertAnchor!=="text"||t.positionTextTable===true)&&y.float.ySpec!=="inline",x=y.float===void 0;x&&Nc(y,0,s,t.compatibilityMode)&&t.pageHoldsContent(t.cursorY)&&t.advancePage();let R=t.cursorY,P=b?l():void 0,S=h?.firstBottom,w=b?()=>zW:()=>S??o(),F=()=>y.float?xo(y,i(),t.compatibilityMode)+(b?t.positionShiftX??0:0):r()+_a(y,n()),T=F();!b&&y.float&&y.float.vertAnchor==="text"&&!y.float.ySpec?t.cursorY=Math.max(0,Math.min(t.cursorY+y.float.yPt,w())):b&&y.float&&P&&(t.cursorY=ko(y.float,0,P));let v=nb(y.columnWidthsPt,y.cellSpacingPt,ej(e,u)),C=(le,Se=t.cursorY,re)=>v.measure(le,T,Se,re??O),I=b||y.float?null:jW(y,e.id,T,t.cursorY,u),O=I?.deps??(b?vc(u):u),k=[];for(let le of y.rows)if(le.isHeader)k.push(le);else break;let E=NW({structure:y,headerRows:k,deps:O,left:()=>T,rowHeightOf:C,rowProbes:v,admitted:!b&&!y.float&&!h}),M=le=>E.plan(le),A=M(t.cursorY),N=A.heightPt,L=A.planned,D=N>(t.unreservedContentHeight?.()??w())+.001,H=!D,W=0,$=t.cursorY,G=0,z=[],Y=new Map,U=[],X=new Map,q=_W(),V={},ie=new Set(y.rows),K=false,J=b||y.float?null:WW(y,e.id,O,{flow:t,left:()=>T,bottom:w,opensRegion:()=>z.every(le=>le.isHeaderRepeat)&&!t.regionHoldsContent($),moved:(le,Se)=>{z.length>0||($=le,G=Se?le:0);},heightOf:(le,Se)=>C(le,Se)}),fe=()=>{let le=re=>L?M(re).heightPt:N,Se=re=>re+le(re)<=w()+.001;J?.clear(J.fragment(k.length,Se,le));},ne=Le(t.compatibilityMode,"headerRowsKeepWithBody"),te,oe,ae=(le,Se)=>{Se.cellContentInsets&&X.set(le,Se.cellContentInsets);},ue=()=>{if(G=0,S=void 0,z.length===0){I?.end();return}let le=VW(y,z,U,ie,X,T,w(),O);le!==void 0&&(t.cursorY+=le),V.current&&({rows:z,sources:U}=V.current.publish(z,U,X,T)),{rows:z,sources:U}=q.publish(z,U,X);let Se=q.finish(Ur(z,y,U,O.borderOwnershipBudget,O.vMergeResolveBudget,void 0,f,O,X,new Set(z.filter(YH))));V.current&&(Se=V.current.finish(Se));let re=Se[Se.length-1],He=Wa({kind:"table",...b?{outOfFlow:true}:{},id:`${e.id}#f${W}`,tableId:e.id,fragmentIndex:W,rows:Se,box:{x:T,y:$,width:y.columnWidthsPt.reduce(($e,Me)=>$e+Me,0),height:re.box.y+re.box.height-$}},y.columnWidthsPt,0,Y),ve=b&&y.float&&P?zN(He,ko(y.float,He.box.height,P)-He.box.y,f):He;p(Ec(ve,zH(O))),I?.end(),W+=1,z=[],U=[],X=new Map,te=void 0;},ce=(le,Se)=>{if(k.length===0)return;let re=le?oe?.():void 0;if(re===null)return;let He=()=>L&&!re?M(t.cursorY):void 0,ve=He(),$e=re?.headerHeight??ve?.heightPt??N;if(le&&t.cursorY+$e>w()+.001)return;t.cursorY+$e>w()+.001&&t.cursorY>0&&(ue(),a(),T=F(),$=t.cursorY,fe(),ve=He(),$e=ve?.heightPt??$e);let Me=!le&&t.cursorY+$e>w()+.001?t.unreservedContentHeight?.()??w():w();if(!le&&t.cursorY+$e>Me+.001){D=true,H=false;return}if(le&&!re&&Se&&!Se(t.cursorY+$e))return;let ut=re?rt(y,k[0],re.deps):E.headerDeps();for(let[Je,wt]of k.entries()){let Ct=ve?.optionsAt(Je,t.cursorY),kt=E.place(le,!!re,Je,wt,t.cursorY,ut,Ct);if(kt.bottom>Me+.001)throw new fn("table-row-overheight",`Table header row ${wt.id} overflowed the page content box`);z.push(kt.record),ae(kt.record,ut),U.push(wt),t.cursorY=kt.bottom;}te=re;},B=(le,Se=false)=>{ue(),Se?t.advancePage():a(),T=F(),$=t.cursorY,J?.clearPending(H&&k.length>0?N:0),H&&ce(true,le);},me=(le,Se)=>a0({structure:y,rows:le,left:T,deps:O,pageHeight:Math.max(w(),t.unreservedContentHeight?.()??0),heightOf:GW(le,C,Se),following:re=>t.followingKeepOpening?.(re)});if(ne&&x&&!D&&k.length>0&&t.cursorY>.001){let le=me(y.rows.slice(k.length)),Se=He=>(o0(le,0,He)??0)<=He+.001,re=w()-N;!Se(w()-t.cursorY-N)&&Se(re)&&(ue(),a(),T=F(),$=t.cursorY);}D||(I&&(t.cursorY=I.clear(t.cursorY,le=>L?M(le).heightPt:N,k,w()),$=t.cursorY),k.length>0&&fe(),ce(false));let ge=y.rows.slice(D?0:k.length);V.current=HW(y,ge,O,()=>T);let we=new Set,Ae=zi(y,()=>T,0,O,ge,le=>we.has(le.id)),xe,Ne=0,lt=0,Be=(le,Se)=>{let re=Se??ge[le];z.length===0?we.add(re.id):we.delete(re.id),xe=V.current?.optionsAt(le,t.cursorY,w())??xN(Ae,le,t.cursorY,w()),lt=xe?.heightFloorPt??C(re,t.cursorY,z.length===0?rt(y,re,O):O),Ne=xe?.heightFloorPt??(te?.bodyRowId===ge[le]?.id?te.bodyHeight:lt);};for(let[le,Se]of ge.entries()){le>0&&le%Aj===0&&(yield);let re=V.current.rowAt(le,q.rowAt(le,Se),t.cursorY,w());D&&le>=k.length&&(H=true);let He=K;if(K=false,I){let ze=z.length===0?rt(y,re,O):void 0,Ft=bt=>C(re,bt,ze);t.cursorY=I.clear(t.cursorY,Ft,[re],w()),z.length===0&&($=t.cursorY);}Be(le,re);let ve,$e=Lt(re),Me=false,ut=0,Je=false,wt=()=>({...ve??(te?.bodyRowId===re.id?te.deps:z.length===0?rt(y,re,O):O),rowAtPageStart:Je||t.cursorY<=.001||z.length>0&&z.every(ze=>ze.isHeaderRepeat)});oe=()=>Me?void 0:AW(y,k,re,T,t.cursorY,w(),N,lt,O);let Ct=()=>Ne<=Math.max(w(),t.unreservedContentHeight?.()??0)+.001,kt=ze=>re.cantSplit||NE(re,w()-ze,Ft=>O.cellContentInsets?.get(Ft.id)??tn(Ft,y.cellSpacingPt===0),O.cellMinimumContentInsets),We=xe?.coveredFromAbove===true,Wt=ze=>{let Ft=w(),bt=Ft-ze;return bt<=.001?false:!Me&&Ne<=bt+.001?true:!Me&&(re.height.rule==="exact"||kt(ze)&&Ct())?false:Oo(re,y.columnWidthsPt,T,ze,Ft,Me,0,{...O,rowAtPageStart:false},$e,y.cellSpacingPt,{requireEveryCell:!Me&&Ne<=Ft+.001})};if(J){let ze=y.rows.length-ge.length+le,Ft=()=>Me;J.pending=J.fragment(ze,Wt,void 0,Ft),z.length===0&&J.clear(J.pending)&&Be(le,re);}let Dn=()=>{if(ve||Me||We||Ne<=w()-t.cursorY+.001)return;let ze=Rs(y,re,T,t.cursorY,w(),wt());ze&&(ve=ze.deps,Ne=ze.height,K=true);},_n=x&&re!==y.rows[0]&&Nc(y,y.rows.length-ge.length+le,s,t.compatibilityMode)&&(z.some(ze=>!ze.isHeaderRepeat)||t.pageHoldsContent($)),Fn=x&&!He&&!_n&&!We&&t.cursorY>.001&&(z.length===0||z.some(ze=>!ze.isHeaderRow)||!ne&&!z.some(ze=>ze.isHeaderRepeat))?rb(me(ge,[le,Ne]),le,w()-t.cursorY):null,Jt=!!Fn&&t.cursorY+Fn.kept+Fn.successor>w()+.001,Tt=He||_n||Jt||xe!==void 0||re!==Se?null:DW({plan:Ae,rows:ge,rowIndex:le,structure:y,left:T,top:t.cursorY,contentBottom:w(),deps:wt(),nextDeps:O,compatibilityMode:t.compatibilityMode,positioned:(O.pageExclusionZones?.().length??0)>0});for(Tt&&(xe=Tt.options,Ne=Tt.heightPt),!He&&!_n&&!Jt&&Dn(),(_n||He||Jt||(x||h!==void 0)&&!We&&rj(re,wt(),y.cellSpacingPt,{top:t.cursorY,columnTop:t.columnTop?.()??0,bottom:w(),band:Math.max(w(),t.unreservedContentHeight?.()??0),repeat:H?N:0,belowBandOnly:G>0&&$<=G+.001&&z.every(ze=>ze.isHeaderRepeat)})||!We&&Ne<=w()+.001&&t.cursorY+Ne>w()+.001&&t.cursorY>0&&(kt(t.cursorY)||re.height.rule==="exact"||!Oo(re,y.columnWidthsPt,T,t.cursorY,w(),false,0,wt(),$e,y.cellSpacingPt,{requireEveryCell:true})))&&(B(Wt,_n),Je=true,Be(le,re));;){if(Dn(),ut+=1,ut>XP)throw new fn("table-row-fragment-limit",`Table row ${re.id} exceeded ${XP} page fragments`);let ze=w()-t.cursorY;if(ze<=.001&&t.cursorY>0){if(Je)throw new fn("table-row-overheight",`Table row ${re.id} cannot fit after repeated header rows`);B(Wt),Je=true,Be(le,re);continue}if(!Me&&Ne<=ze+.001){let xn=wt(),Fe=(!xe&&!Tt?v.take(re,T,t.cursorY,xn):null)??qt(Tt?.headRow??re,y.columnWidthsPt,T,t.cursorY,false,0,xn,y.cellSpacingPt,xe,w());if(Fe=V.current.adjustPlacement(le,Fe,w()),Fe.bottom>w()+.001)throw new fn("table-row-overheight",`Table row ${re.id} overflowed the page content box after placement`);Tt&&(q.commit(le,Tt,Fe.record),K=true);let Ze=Fe.remainder!==null,on=Ze?Ef(Fe.record):Fe.record;if(z.push(on),ae(on,xn),U.push(Ze?{...re}:re),t.cursorY=Fe.bottom,!Ze)break;$e=Fe.remainder,Me=true,Je=false,B(Wt);continue}if(!Me&&(re.cantSplit||re.height.rule==="exact")){let xn=re.height.rule!=="exact"&&!Ct(),Fe=z.length>0&&z.every(zt=>zt.isHeaderRow)&&($<=.001||z.every(zt=>zt.isHeaderRepeat));if(t.cursorY>G&&!Je&&!(xn&&Fe)){B(Wt),Je=true,Be(le,re);continue}let Ze=t.unreservedContentHeight?.()??w(),on=Ze>w()+.001&&Ne<=Ze-t.cursorY+.001?{row:re,band:Ze}:LW(re,w(),t.cursorY);if(on){let zt=wt(),Qe=qt(on.row,y.columnWidthsPt,T,t.cursorY,false,0,zt,y.cellSpacingPt,xe,on.band);if(Qe=V.current.adjustPlacement(le,Qe,on.band),Qe.bottom<=on.band+.001&&Qe.remainder===null){z.push(Qe.record),ae(Qe.record,zt),U.push(re),t.cursorY=Qe.bottom;break}}if(!xn)throw EW(re)}let Ft=wt(),bt=bn(re,y.columnWidthsPt,T,t.cursorY,w(),false,Me,0,Ft,$e,y.cellSpacingPt,xe);if(bt=V.current.adjustPlacement(le,bt,w()),!bt.fitted&&t.cursorY>0&&!Je){B(Wt),Je=true,Be(le,re);continue}let Io=t.unreservedContentHeight?.()??w();if(!bt.fitted&&t.cursorY<=.001&&!Je&&Io>w()+.001){B(Wt),Je=true,Be(le,re);continue}if(!bt.fitted)throw new fn(bt.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",bt.nestedSplitBlocked?`Table row ${re.id} contains a nested table taller than the page content box`:`Table row ${re.id} has content that cannot fit a page content box`);if(bt.bottom>w()+.001)throw new fn("table-row-overheight",`Table row ${re.id} overflowed the page content box`);let rn=bt.remainder!==null,Et=Me||rn?{...re}:re,On=rn?Ef(bt.record):bt.record;if(z.push(On),ae(On,Ft),U.push(Et),t.cursorY=bt.bottom,!rn)break;$e=bt.remainder,Me=true,Je=false,B(Wt);}}return t.cursorY=Math.min(t.cursorY+nc(y),t.contentHeight()),ue(),b?t.cursorY=R:h&&(t.cursorY=Math.min(t.cursorY+(y.float?.distances?.bottom??0),t.contentHeight())),{outOfFlow:b}}var _c="http://schemas.openxmlformats.org/wordprocessingml/2006/main",g9=32,$W=1e4,UW=1e4;function h9(e){if(e.kind!=="paragraph"||e.listItem||e.shading||e.paragraph.children.some(r=>r.kind==="paragraphProperties"?false:r.kind==="textValue"||r.namespaceUri!==_c?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>UW||r.namespaceUri!==_c||["ins","del","moveFrom","moveTo","pPrChange","rPrChange","vanish","webHidden"].includes(r.localName)||n+t.length+r.children.length>UW)return false;for(let o of r.children){if(o.kind==="textValue")return false;t.push(o);}}return true}var YW=new WeakMap;function y9(e){let t=YW.get(e);if(t!==void 0)return t;let n=b9(e);return YW.set(e,n),n}function b9(e){let t=[e],n=0;for(;t.length;){let r=t.pop();if(++n>$W||r.namespaceUri!==_c||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===_c&&o.localName==="val"&&o.value==="overlap")||n+t.length+r.children.length>$W)return false;for(let o of r.children)o.kind!=="textValue"&&t.push(o);}return true}function x9(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!==_c||r.children.length)return false;let o=new Set;for(let a of r.attributes){if(a.namespaceUri!==_c||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"){let i=chunkPWTRJSES_cjs.nd(a.value);if(i===null||Math.abs(i)>31680)return false}else if(["leftFromText","rightFromText","topFromText","bottomFromText"].includes(a.localName)){let i=chunkPWTRJSES_cjs.nd(a.value);if(i===null||i<0||i>31680||(a.localName==="topFromText"||a.localName==="bottomFromText")&&i!==0)return false}else return false}return o.has("vertAnchor")}function XW(e,t,n,r,o,a){let i=e.length-1,l=e[i];if(!l||!h9(l))return;let s=i,d=[],c=[l.key];for(let u=i-1;u>=0;u-=1){let f=e[u];if(f.kind!=="table")break;if(!y9(f.table)||!x9(f.table))return;let g=nn(f.table,t,0,n,r,o,a)?.float;if(!g||g.vertAnchor!=="text"||g.ySpec||d.length>=g9)return;d.push(f.table),c.push(f.key),s=u;}if(d.length)return {start:s,anchorIndex:i,tables:d.reverse(),token:de(c)}}function ZW(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 qW(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(p=>nn(p,o,0,t.styleCascade,t.displayMode,t.authorFilter,t.deps.compatibilityMode,An(t.deps))),l=[],s=n+r,d=0,c={...Zt(t.deps),onCellBreakKey:void 0,borderOwnershipBudget:Kr(),vMergeResolveBudget:So(),nextLineId:()=>`terminal-table-probe-${d++}`};for(let p=0;p<i.length;p+=1){let g=i[p];if(!g?.float||!g.rows.length)return;let m=g.columnWidthsPt.reduce((x,R)=>x+R,0),h=xo(g,t.frames,t.deps.compatibilityMode),y=n+g.float.yPt;if(![h,y,m].every(Number.isFinite)||m<=0||h<0||h+m>o+((g.float.xSpec==="right"||g.float.xSpec==="outside")&&Le(t.deps.compatibilityMode,"floatingTableContentOrigin")?g.defaultMargins.right:0)+.001||y<n||y>a)return;let b=Ga(g,h,y,0,e.tables[p].id,0,c);if(!Number.isFinite(b.bottom)||b.bottom>a+.001||l.some(x=>h<x.right&&h+m>x.left&&y<x.bottom&&b.bottom>x.top))return;s=Math.max(s,b.bottom),l.push({left:h,top:y,right:h+m,bottom:b.bottom});}let u=[];return {fragments:i.map((p,g)=>{let m=[];u.push(m);let{left:h,top:y}=l[g];return {...Ga(p,h,y,0,e.tables[g].id,0,{...t.deps,onCellBreakKey:x=>m.push(x)}).fragment,outOfFlow:true}}),bottom:s,cellBreakKeys:u}}function JW(e,t,n,r){let o=t.startY;return {lines:e.map((i,l)=>{let s={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(d=>({...d,box:{...d.box,x:d.box.x+t.columnX,y:o}}))};return o+=i.height+(i.exclusionSkipBefore??0),s}),bottom:o}}function QW(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 ez(e){let{geometry:t,columns:n,columnRegionBottom:r,continuedInsets:o}=e,a=`|cols:${n.widths.join(",")};${n.gaps.join(",")};${n.lefts.join(",")};${n.separator?1:0}${r!==void 0?`;bal:${r}`:""}`,i=e.continuedZones??"",l=o?`|cont:${o.top},${o.height};z${i.length}:${i}`:"",s=e.sectionPageBorders?`|pgb:${Og(e.sectionPageBorders)}`:"",d=`${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":"";return u=>`${d}${u}${a}${s}${c}`}var tz=e=>e.kind==="paragraphProperties"||e.kind==="bookmarkStart"||e.kind==="bookmarkEnd"||e.kind==="run"&&e.children.every(t=>t.kind==="runProperties");function R9(e){return e.children.every(tz)}var P9=new Set(["proofErr","permStart","permEnd","commentRangeStart","commentRangeEnd"]),w9=e=>e.kind!=="textValue"&&e.namespaceUri===chunkPWTRJSES_cjs.la&&P9.has(e.localName)&&e.children.length===0,k9=e=>e.kind==="runProperties"?true:e.kind==="textValue"||e.namespaceUri!==chunkPWTRJSES_cjs.la?false:e.localName==="t"?e.children.every(t=>t.kind==="textValue"&&t.value===""):e.localName==="lastRenderedPageBreak"&&e.children.length===0;function T9(e){return e.children.every(t=>tz(t)||w9(t)||t.kind==="run"&&t.children.every(k9))}function v9(e,t){if(t.blockEndExclusive-t.blockStart!==1)return false;let n=e[t.blockStart];return n?.kind==="paragraph"&&Un(n)!==void 0&&R9(n)}function nz(e,t,n){return t>0&&t===n-1&&e.kind==="paragraph"&&Un(e)!==void 0&&T9(e)}function rz(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)||v9(t,e[a])&&r[a];}return r}function oz(e,t,n,r=false){let o=Le(t,"pageBreakBeforeKeepsSpace"),a=(i,l)=>Vs(l.props)&&!nz(l.paragraph,i,e);return {breaksBeforeAt:a,keepsBeforeAtPageStart:(i,l)=>n()||(o||i===0)&&a(i,l),spaceBeforeAt:(i,l,s)=>r&&i===0&&n()&&ap(l.props).before?0:s}}var b0=.72;function db(e,t){let n=Math.max(b0,t),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r,i,l;if(a)i=o.map(c=>Math.max(0,chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(c.widthTwips)))),l=o.slice(0,-1).map(c=>Math.max(0,chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(c.gapTwips))));else {let c=Math.max(0,chunkPWTRJSES_cjs.ld(chunkPWTRJSES_cjs.jd(e.gapTwips)));l=Array.from({length:r-1},()=>c);let u=Math.max(b0,(n-c*(r-1))/r);i=Array.from({length:r},()=>u);}let s=[],d=0;for(let c=0;c<r;c+=1)s.push(d),d+=Math.max(0,i[c])+(l[c]??0);return {count:r,widths:i.map(c=>Math.max(b0,c)),gaps:l,lefts:s,separator:e.separator===true&&r>1}}function az(e,t,n){return e.gaps.map((r,o)=>({x:e.lefts[o+1]-r/2-.375,y:t,width:.75,height:Math.max(0,n-t)}))}var F9=8,Hc=[],iz=new TextEncoder;function O9(e,t){let n=chunkPWTRJSES_cjs.f(iz.encode(e===void 0?"undefined":`string:${e}`)),r=chunkPWTRJSES_cjs.f(iz.encode(t));return `control-producer:v1:${n}:${r}`}function cb(e,t){let n=Hc.findIndex(o=>o.base===e&&o.token===t);if(n>=0){let[o]=Hc.splice(n,1);return Hc.push(o),o.producer}let r=O9(e,t);return Hc.push({base:e,token:t,producer:r}),Hc.length>F9&&Hc.shift(),r}var lz=new WeakMap,sz=null;function C9(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 dz(e,t,n,r,o,a,i,l){let s=t?lz.get(t):sz;if(C9(s,e,n,r,o,a,i,l))return s.producer;let d=(e??"unversioned-measurer")+(t?`|sc:${t.cacheToken}`:"")+(n?`|nm:${NI(n)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===Ue?"":`|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:d};return t?lz.set(t,c):sz=c,d}var I9={title:true,creator:true,subject:true,keywords:true,lastModifiedBy:true,description:true},cz=Object.keys(I9),uz=new WeakMap;function M9(e,t){if(!t)return e;let n=uz.get(t);if(!n||cz.some((r,o)=>(t[r]??"")!==n.values[o])){let r=cz.map(o=>t[o]??"");n={values:r,token:r.some(Boolean)?`document-properties:${JSON.stringify(r)}`:""},uz.set(t,n);}return n.token===""?e:cb(e,n.token)}function fz(e,t,n){let r=e.showFieldCodes?`${e.producer??""}|field-codes`:e.producer,o=r===void 0?r:Ki(r),a=e.projectionEpoch!==void 0&&e.projectionTokenForParagraph?void 0:e.documentProperties;return cb(cb(M9(o,a),t),n)}var pz=new WeakMap;function gz(e,t){t.session&&pz.set(t.session,e.length);let n=t.bodyBlockLimit;return {blocks:n===void 0||n>=e.length?e:e.slice(0,n),all:e}}function WIe(e){return pz.get(e)}var ub=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]:RW,anchorPageDeferCounts:i.size>0?new Map(i):PW,...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,s]of t.anchorPageDeferCounts)i.set(l,s);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 hz(e,t){return e.cursorY===t.cursorY&&e.previousSpaceAfter===t.previousSpaceAfter&&e.flowColumnIndex===t.flowColumnIndex&&SW(e.pageFragments,t.pageFragments)&&p0(e.pendingParagraphFrames,t.pendingParagraphFrames)&&m0(e.pendingAnchoredDrawings,t.pendingAnchoredDrawings)&&m0(e.deferredAnchoredDrawings,t.deferredAnchoredDrawings)&&wW(e.anchorPageDeferCounts,t.anchorPageDeferCounts)&&bw(e,t)}function yz(e,t,n){return de([...e].map(([r,o])=>`${n}${r}=${o.flowHeight}`).sort())}function L9(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${yz(e.headers,false,"h")};f:${yz(e.footers,false,"f")};cs:${bc(e)}`:""}function am(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function E9(e,t){return e.map((n,r)=>{let o=vi(n.properties),a=am(t,r,e.length),i=n.properties.pageNumbering,l=i?`pn:${de([i.start??"",i.fmt??"",i.chapStyle??"",i.chapSep??""].map(String))}`:"pn:",s=n.properties.columns,d=`pgb:${Og(n.properties.pageBorders)}`,c=`cols:${s.count},${s.gapTwips},${s.equalWidth===false?0:1},${s.separator?1:0};${(s.definitions??[]).map(u=>`${u.widthTwips}/${u.gapTwips}`).join(",")}`;return de([n.properties.breakType,o.width,o.height,o.margin.top,o.margin.right,o.margin.bottom,o.margin.left,o.headerDistance??36,o.footerDistance??36,L9(a),l,c,d].map(String))})}function A9(e,t){if(!e)return null;let n=de(t),r=e.multi;if(r&&r.structureKey===n&&r.sections.length===t.length)return r;let o={structureKey:n,sectionKeys:t,sections:t.map((a,i)=>N9(e,r,a,i)),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1,previousPageRefToken:""};return e.multi=o,o}function N9(e,t,n,r){if(t){let a=t.sections[r];return a&&t.sectionKeys[r]===n?a:vo()}let o=vo();return r===0&&e.prepass!==null&&(Ss(o,e),o.multi=null),o}function D9(e){return e!=="continuous"}function bz(e,t){return e.width===t.width&&e.height===t.height}function _9(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 H9(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 xz(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var Sz=new WeakMap;function j9(e,t,n,r,o,a){let i=Sz.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let l=gs(e,t,n),s=ki([l],r,o,a)[0];return Sz.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:s}),s}function Rz(e,t,n,r,o){let{session:a,...i}=r,l=A9(a,E9(t,r)),s=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,d=()=>{s&&!i.retainKeys&&i.cache?.retain(s);},c=[],u=[],f=[],p=0,g=0,m=0,h=0,y=0,b=0,x=0,R=true,P=[],S=null,w=1,F=[],T=new Map,v=r.evenAndOddHeaders??t.some((M,A)=>am(r,A,t.length)?.evenAndOddHeaders===true),C=t.map(M=>vi(M.properties)),I=rz(t,e,M=>t[M].properties.breakType==="continuous"&&bz(C[M-1],C[M]));for(let M=0;M<t.length;M+=1){let A=t[M],N=e.slice(A.blockStart,A.blockEndExclusive),L=C[M],D=am(r,M,t.length),H=l?.spans[M],W=A.properties.pageNumbering?.start,$=w,G=$w({breakType:A.properties.breakType,restart:W,nextDisplayed:w,sheetIndex:c.length,evenAndOddHeaders:v})?Uw(c.length,p,L,H?.paritySheet):void 0;G&&(c.push(G),u.push(G),p=G.box.y+G.box.height+Ji,W===void 0&&(w+=1));let z=c.length,Y=p;if(N.length===0&&!D9(A.properties.breakType)){f.push({startIndex:z,pageCount:0,sheetY:Y,remappedPages:[],sourcePages:[]});continue}let U=M>0&&A.properties.breakType==="continuous"&&c.length>0&&R&&S!==null&&bz(S,L),X=l?.sections[M],q=t[M+1]?.properties.breakType==="continuous",V=A.properties.columns.count>1&&q,ie=!V&&I[M],K=U?_9(c[c.length-1]):void 0,J=U?c[c.length-1]:void 0,fe=A.properties.pageNumbering?.fmt,ne=o(N,n,{...i,retainKeys:s,geometry:L,furniture:D,sectionColumns:A.properties.columns,paragraphLineUnitPt:$l(A.properties),...A.properties.pageBorders?{sectionPageBorders:A.properties.pageBorders}:{},...V?{balanceColumns:V}:{},...q?{sectionMarkCollapses:true}:{},...ie?{markJoinsBreakSheet:ie}:{},lineCounterStart:g,pageIndexStart:U?z-1:z,spaceBeforeCarry:x,...U?{flowStartY:b}:{},...K?{continuedPageInsets:K}:{},...J?{continuedPageFurniture:J}:{},...fe!==void 0?{bodyPageNumberFormat:fe}:{},...X?{session:X}:{}});P.push({startIndex:z,at:ne.overflowShellAt}),g=ne.lineCounter,b=ne.endCursorY,x=ne.endSpaceAfter,R=ne.endsOpenPage,S=L,X?(m+=X.stats.placed,h+=X.stats.total):(m+=N.length,h+=N.length);let te=X!==void 0&&X.stats.placed===0&&X.stats.reusedPages===ne.pages.length&&H!==void 0&&H.pageCount===ne.pages.length&&H.sourcePages.length===ne.pages.length&&H.sourcePages.every((Ae,xe)=>Ae===ne.pages[xe]),oe=H!==void 0&&H.startIndex===z&&H.sheetY===Y&&H.remappedPages.length===ne.pages.length,ae=A.properties.pageNumbering,ue=ae?.start!==void 0?ae.start:w,ce=ae?.fmt,B=H?.remappedPages[0],me=H===void 0||H.remappedPages.length===0||B?.pageFieldSource!==void 0&&B.pageFieldSource.pageNumber===ue&&B.pageFieldSource.sectionPageCount===H.remappedPages.length&&B.pageFieldSource.format===ce,ge;if(U){let Ae=c.length-1,xe=c[Ae],Ne=H9(xe,ne.pages[0]);if(Ne!==xe){c[Ae]=Ne;let Se=u.lastIndexOf(xe);Se!==-1&&(u[Se]=Ne);}let lt=[];for(let Se of ne.pages.slice(1)){let re=gs(Se,c.length+lt.length,p);lt.push(re),p=re.box.y+re.box.height+Ji;}let Be=ae?.start??w-1,le=lt.length+1;ge=ki(lt,Be+1,le,ce);for(let Se of ge)c.push(Se),u.push(Se);w=Be+le;}else if(te&&oe&&me){ge=H.remappedPages,y+=ge.length;for(let Ae of ge)c.push(Ae),u.push(Ae),p=Ae.box.y+Ae.box.height+Ji;w=ue+ge.length;}else {let Ae=[];for(let xe of ne.pages){let Ne=j9(xe,c.length+Ae.length,p,ue+Ae.length,ne.pages.length,ce);Ae.push(Ne),p=Ne.box.y+Ne.box.height+Ji;}ge=Ae;for(let xe of ge)c.push(xe),u.push(xe);w=ue+ge.length;}f.push({startIndex:z,pageCount:ge.length,sheetY:Y,remappedPages:ge,sourcePages:ne.pages,...G?{paritySheet:G}:{}}),ge.length>0&&F.push({pageIndex:z,breakType:A.properties.breakType,restart:W,runningBefore:$,geometry:L});let we=c[c.length-1]?.pageFieldSource?.pageNumber;we!==void 0&&we+1!==w?T.set(c.length-1,w):T.delete(c.length-1);}if(c.length===0){let M=vi(t[0]?.properties??po),A=o([],n,{...i,retainKeys:s,geometry:M,paragraphLineUnitPt:$l(t[0]?.properties),sectionColumns:t[0]?.properties.columns??po.columns,...t[0]?.properties.pageBorders?{sectionPageBorders:t[0].properties.pageBorders}:{}});d();let N=Go({revision:n,pages:A.pages});return rm(N,(L,D,H)=>A.overflowShellAt(D,H)),l&&(l.spans=[],l.previousRemapped=A.pages,l.previousFinalized=N,l.previousPageCount=N.pages.length,l.previousPageRefToken=oS(A.pages)),a&&(xz(a,N,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),N}let O=Go({revision:n,pages:c}),k=O,E=oS(c);if(l?.previousFinalized&&l.previousPageCount===O.pages.length&&l.previousRemapped.length===u.length&&l.previousPageRefToken===E){let M=l.previousFinalized.pages,A=l.previousRemapped,N=O.pages.map((L,D)=>u[D]===A[D]&&M[D]?M[D]:L);k={...O,pages:N};}return l&&(l.spans=f,l.previousRemapped=u,l.previousFinalized=k,l.previousPageCount=k.pages.length,l.previousPageRefToken=E),a&&(xz(a,k,g),a.stats={placed:m,total:h||1,reusedPages:y,fullPasses:a.stats.fullPasses+(m===h&&y===0?1:0)}),rm(k,(M,A,N)=>{let L=P[0];for(let H of P)H.startIndex<=M&&(L=H);return (L??P[P.length-1])?.at(A,N)}),aH(k,v,F,T),d(),k}function Pz(e,t,n,r){let o=false,a=false;if(t&&Le(r,"anchorOnlyParagraphSeeding"))for(let l of e){let s=l.kind==="paragraph"?at(l,t):[],d=l.kind==="paragraph"&&s.length>0&&chunkPWTRJSES_cjs.jg(l).length===s.length;if(o&&d){a=true;break}o=d;}let i=new Set;return {maxPasses:a?n*2:n,passIndex:l=>(a&&l>=n&&(a=false,i.clear()),a?-l-1:l),remember:l=>{i.add(zx(l));},advance(l,s,d=false){a&&(d||!Array.from(s.values()).some(p=>p.some(g=>g.pageFramedBand)))&&(a=false,i.clear());let c=dg(l,s),u=zx(s),f=i.has(u);return a&&(c||f)?(a=false,i.clear(),"continue"):c?"stable":f?"cycle":(i.add(u),"continue")}}}function wz(e,t){let n=a=>{let i=new Map;for(let[l,s]of a)for(let d of s){let c=`${l}:${sr([d])}`;i.set(c,(i.get(c)??0)+1);}return i},r=n(e),o=0;for(let[a,i]of n(t)){let l=Math.min(i,r.get(a)??0);o+=i-l,l>0&&r.set(a,(r.get(a)??0)-l);}for(let a of r.values())o+=a;return o}var kz=new WeakMap;function Tz(e,t){if(t){let n=kz.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}kz.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 vz(e,t,n){let r;for(let[o,a]of e.entries()){let i=new Set,l;for(let s of a.fragments){if(s.kind!=="paragraph")continue;let d=s.positionedFrame;if(!d||i.has(d.groupId))continue;i.add(d.groupId);let c=d.box,u=d.columnIndex,f=n.columnLefts?.[u]??0,p=n.columnWidths?.[u]??n.contentWidth,g={left:d.hSpace,right:d.hSpace,top:d.vSpace,bottom:d.vSpace},m=c.x-d.hSpace<=f&&c.x+c.width+d.hSpace>=f+p,h=d.wrap==="auto"||d.wrap==="around"||d.wrap==="tight"||d.wrap==="through",y=d.wrap==="tight"||d.wrap==="through"?[{x:c.x,y:c.y},{x:c.x+c.width,y:c.y},{x:c.x+c.width,y:c.y+c.height},{x:c.x,y:c.y+c.height}]:null,b={sourceKind:"frame",sourceOrder:d.sourceOrder,drawingNodeId:`frame:${d.groupId}`,anchorParagraphId:d.anchorId,anchorModelStart:0,paintLayer:"inFront",relativeHeight:0,allowOverlap:true,columnIndex:u,y:c.y,verticalBand:{x:c.x-d.hSpace,y:c.y-d.vSpace,width:c.width+2*d.hSpace,height:c.height+2*d.vSpace},input:{mode:!h||m?"topAndBottom":d.wrap==="tight"?"tight":d.wrap==="through"?"through":"square",contentBounds:c,polygon:y,clipPolygon:null,wrapDistances:g,effectInsets:{left:0,right:0,top:0,bottom:0},textSide:"bothSides",contentLeft:f,contentRight:f+p}};l??=[...t.get(o)??[]],l.push(b);}l&&(r??=new Map(t),r.set(o,l));}return r??t}function x0(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 s=!["auto","around","tight","through"].includes(l.wrap)||l.box.x-l.hSpace<=0&&l.box.x+l.box.width+l.hSpace>=r.contentBox.width,d=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)||s&&c>0&&d<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}var z9=2,G9=64,V9=4;function*Fz(e,t,n,r,o,a){if(!((n.inlineDrawingLayout||Tz(e,n.styleCascade)||DD(e,o,n.styleCascade,n.displayMode??Ue,n.revisionAuthorFilter,n.compatibilityMode))&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged))return null;let i=S=>{let w=n.inlineDrawingLayout?.projectionForAtom?.(S)?.drawingNodeId??S;return n.drawingSourceOrder?.get(w)},l=Object.freeze({columnCount:r.count,columnGapPt:r.gaps[0]??0,contentWidth:o,columnLefts:r.lefts,columnWidths:r.widths}),s=(S,w=false)=>{let F=n.inlineDrawingLayout?w?sO(S,n.inlineDrawingLayout,n.drawingLayoutEpoch,o,n.drawingSourceOrder,l):Wx(S,n.inlineDrawingLayout,o,i,l):new Map;return vz(S,Ua(S,F,l),l)},d=new Map,c=null,u=false,f=Pz(e,n.inlineDrawingLayout,Al,n.compatibilityMode);function*p(S){return yield*a(e,t,S)}function*g(S){let w=x0(S.pages);if(w.size===0)return null;let F=n.paragraphFrameFallbackRound??0,T=new Set(n.disabledParagraphFrameIds);for(let I of F>=3?x0(S.pages,true):w)T.add(I);let v=n.session?vo():void 0,C=yield*a(e,t,{...n,session:v,disabledParagraphFrameIds:T,paragraphFrameFallbackRound:F+1});return n.session&&v&&Ss(n.session,v),C}let m=n.session?.previous?.pages;if(m){d=s(m,true),c=yield*p({...n,drawingExclusionPass:0,drawingExclusionZonesByPage:d});let S=yield*g(c);if(S)return S;if(c.pages===m)return c;let w=s(c.pages,true);if(dg(d,w))return c;d=new Map(w),f.remember(w);}let h=(S,w)=>(n.session&&w&&Ss(n.session,w),S);function*y(S){let w=n.session?vo():void 0;return h(yield*p({...n,session:w,drawingExclusionConverged:true,drawingExclusionZonesByPage:S}),w)}let b=Number.POSITIVE_INFINITY,x=0,R=true,P=(S,w)=>{if(S.size===0)return;let F=wz(S,w);F<b?(b=F,x=0):x+=1,R=x<V9;};for(let S=0;S<f.maxPasses;S+=1){let w=n.session?vo():void 0;c=yield*p({...n,session:w,drawingExclusionPass:f.passIndex(S),drawingExclusionZonesByPage:d});let F=yield*g(c);if(F)return F;let T=s(c.pages);if(T.size===0)return S===0&&d.size===0?h(c,w):yield*y(T);let v=f.advance(d,T);if(v==="stable")return h(c,w);if(P(d,T),d=new Map(T),v==="cycle"){u=true;break}}if(!u)for(let S=0;!u&&(S<z9||R&&f.maxPasses+S<G9);S+=1){let w=n.session?vo():void 0;c=yield*p({...n,session:w,drawingExclusionPass:f.maxPasses+S,drawingExclusionZonesByPage:d});let F=yield*g(c);if(F)return F;let T=s(c.pages),v=f.advance(d,T,true);if(v==="stable")return h(c,w);if(P(d,T),d=new Map(T),v==="cycle"){u=true;break}}if(!u)throw new jo(`wrap exclusion reflow did not converge within ${f.maxPasses} passes`);return yield*y(d)}function*Oz(e,t){let n=r=>Kh(Go({revision:t.revision,pages:ki(r,t.numbering?.start??1,r.length,t.numbering?.fmt)}),t.listItems,t.measurer);for(;;){let r=e.next();if(r.done)return r.value;yield r.value?{pages:r.value.pages,finalize:n}:void 0;}}function Cz(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){if(vt(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 K9=.25,$9=20;function*S0(e,t,n,r){let o=db(n.sectionColumns??po.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),yield*r(e,t,n);let a=n.session,i=n.flowStartY??0,l={...n,session:void 0},s=y=>{let b=y.pages[0],x=b?Math.max(...Cz(b,o,i)):y.endCursorY;return a&&(a.endCursorY=x),{...y,endCursorY:x}};if(a&&a.balanceLimit!==null){let y=a.balanceLimit,b=yield*r(e,t,{...n,columnRegionBottom:y});if(a.stats.placed===0&&a.stats.reusedPages===b.pages.length)return a.balanceLimit=y,s(b)}let d=yield*r(e,t,l);if(d.pages.length!==1||!d.endsOpenPage)return a&&(a.balanceLimit=null),yield*r(e,t,n);let c=Cz(d.pages[0],o,i),u=c.reduce((y,b)=>y+Math.max(0,b-i),0);if(u<=0)return a&&(a.balanceLimit=null),yield*r(e,t,n);let f=i+u/o.count,p=Math.max(...c)+.01;function*g(y){try{let b=yield*r(e,t,{...l,columnRegionBottom:y});return b.pages.length===1&&b.endsOpenPage}catch{return false}}let m=false;for(let y=0;y<$9&&p-f>K9;y+=1){let b=(f+p)/2;(yield*g(b))?(p=b,m=true):f=b;}if(!m&&!(yield*g(p)))return a&&(a.balanceLimit=null),yield*r(e,t,n);let h=yield*r(e,t,{...n,columnRegionBottom:p});return a&&(a.balanceLimit=p),s(h)}function*Iz(e,t,n,r){try{return yield*S0(e,t,n,r)}catch(o){if(!oW(o,n))throw o;let a=n.session?vo():void 0,i=yield*S0(e,t,{...n,session:a,producer:de([n.producer??"","hidden-furniture-yields"]),yieldHiddenFurnitureZones:true},r);return n.session&&a&&Ss(n.session,a),i}}var Mz=chunkPWTRJSES_cjs.tb(),R0={get:e=>Mz.get(e),set:(e,t)=>Mz.set(e,t,e.kind==="table"?chunkPWTRJSES_cjs.sb:0)};function uLe(e,t,n){return chunkPWTRJSES_cjs.kf(n.fieldResults,()=>Qi(U9(e,t,n)))}function U9(e,t,n){return Nj(n.fieldResults,Y9(e,t,n))}function*Y9(e,t,n){let r=n.displayMode??Ue,o=n.revisionAuthorFilter,{blocks:a,all:i}=gz(Gr(e,r,o,n.styleCascade,n.numberingIndex),n),l=mo(e,a).sections,s=Cc(e),d=$F(e),c={...n,fieldCodeRanges:n.showFieldCodes?Jp(e):void 0,tocLinkStyleRanges:d,displayMode:r,producer:fz(n,s,YF(d)),tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??Lp(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??Fv(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??Ep(e)},u=n.drawingSourceOrder;!u&&n.inlineDrawingLayout&&(u=H1(e,n.inlineDrawingLayout));let f=u?{...c,drawingSourceOrder:u}:c,p=n.session?$C(f,i,n.session):Td(f,i),g=Mj(e,a,l,p),m=g===null?p:{...p,refFields:g},h=R=>Qi(y(R));function*y(R){if(l.length>1)return Rz(a,l,t,R,Z9);let P=l[0],S=R.geometry??(P?vi(P.properties):fu),w=am(R,0,l.length)??R.furniture,F=P?.properties.pageNumbering,T={revision:t,numbering:F,listItems:p.listItems},v=yield*Oz(P0(a,t,{...R,geometry:S,furniture:w,paragraphLineUnitPt:$l(P?.properties),sectionColumns:P?.properties.columns??po.columns,...P?.properties.pageBorders?{sectionPageBorders:P.properties.pageBorders}:{},...F?.fmt?{bodyPageNumberFormat:F.fmt}:{}}),{...T,measurer:n.measurer}),C=F,I=Zf({revision:v.layout.revision,pages:ki(v.pages,C?.start??1,v.pages.length,C?.fmt)},v.layout),O=Go(I);return d0(v.layout,O),rm(O,(k,E,M)=>v.overflowShellAt(E,M)),R.session&&(R.session.multi=null,R.session.previous=O),O}let b=R=>{let P=R;if(R.displayMode!==r){let{contentControls:F,controlContextToken:T,...v}=R;P={...v,displayMode:r,...F!==void 0?{contentControls:F}:{},...T!==void 0?{controlContextToken:T}:{}};}n.session&&n.bodyBlockLimit===void 0&&(P=Kh(P,p.listItems,n.measurer));let S=Iw(P,e,s),w=vW(S,e,i);return d0(R,w),n.session&&(n.session.previous=w),w};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),b(yield*Gj(e,m,y));let x=AH(n.notes,g?{...n,refFields:g}:n);return b(c0(e,m,R=>LH(e,l,R,x,h)))}function*X9(e,t,n){let r=n.geometry,o=n.cache?.keyFor?.bind(n.cache)??Xh,a=r.width-r.margin.left-r.margin.right,i=db(n.sectionColumns??po.columns,a),l=yield*Fz(e,t,n,i,a,P0);if(l)return l;let s=n.measurer,d=n.cache,c=n.styleCascade,u=n.listItems,f=n.refFields,p=n.defaultTabStopPt,g=n.displayMode??Ue,m=n.revisionAuthorFilter,h=g==="all-markup",y=n.tocFieldChromeParagraphIds,b=n.emptyTocPlaceholderParagraphIds,x=n.emptyTocSuppressedResultParagraphIds,R={chrome:y,placeholder:b,suppressed:x},P=uW(R),S=dz(n.disabledParagraphFrameIds?.size?de([n.producer??"",de([...n.disabledParagraphFrameIds].sort())]):n.producer,c,n.noteMarks,p,g,m,n.bodyPageNumberFormat,n.compatibilityMode),w=i.widths[0],F=cj(n,w,c),T=n.furniture,v=r.headerDistance??36,C=r.footerDistance??36,I=n.pageBottomReserves,O=n.session,k=n.lineCounterStart??0,E=l_(T,v,C),M=n.flowStartY??0,A=n.spaceBeforeCarry??0,N=n.pageIndexStart??0,L=Q_({...T?{furniture:T}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:v,footerDistance:C,pageIndexStart:N,...n.continuedPageInsets?{continuedPageInsets:n.continuedPageInsets}:{}}),D=Object.freeze(n.bodyPageNumberFormat!==void 0?{format:n.bodyPageNumberFormat}:{}),H=OW(n,D),W=O?.previous?O.previous.pages.length+1:1/0,$=n.columnRegionBottom,G=n.continuedPageInsets,z=G&&n.continuedPageFurniture?sW(n.continuedPageFurniture,G,r.margin.left,a,{omitHiddenFurniture:n.yieldHiddenFurnitureZones,drawingLayout:n.inlineDrawingLayout}):void 0,Y=ez({geometry:r,flowStartY:M,spaceBeforeCarry:A,continuedInsets:G,continuedZones:z?sr(z):"",furnitureContext:E,columns:i,columnRegionBottom:$,sectionPageBorders:n.sectionPageBorders,sectionMarkCollapses:n.sectionMarkCollapses}),U=Y(Ky(I,N,W)),X=N&1,q=false,V=Ox(),ie=()=>{q=true;},K=[],J=nH({...T?{furniture:T}:{},geometry:r,headerDistance:v,footerDistance:C,pageIndexStart:N,contentWidth:a,insetsFor:L,pageCount:()=>K.length,...n.sectionPageBorders?{pageBorders:n.sectionPageBorders}:{}}),{pageBox:fe,furnitureFor:ne,overflowShellAt:te}=J,{furnitureHasWrap:oe,furnitureHoldsTables:ae,admission:ue}=dW(rW(T,n.yieldHiddenFurnitureZones),z),ce=-1,B=Object.freeze([]),me=()=>{let _=K.length;if(ce===_)return B;let Q=n.drawingExclusionZonesByPage?.get(_)??Object.freeze([]);ce=_,B=Q;let se=_===0?z:void 0;if(se)se.length&&(B=Object.freeze([...Q,...se]));else if(ae){let Oe=fe(_),ft=L(_),dt=u0({box:Oe,contentBox:{x:Oe.x+r.margin.left,y:Oe.y+ft.top,width:a,height:ft.height},header:ne("header",_,Oe),footer:ne("footer",_,Oe)},n.yieldHiddenFurnitureZones);dt.length&&(B=Object.freeze([...Q,...dt]));}return B},ge=(_,Q=K.length)=>{let se=Math.max(1,L(Q).height-_);return $!==void 0&&Q===0?Math.max(1,Math.min(se,$)):se},we=(_=K.length)=>ge(I?.get(N+_)??0,_),Ae=()=>ge(0),xe=n.inlineDrawingLayout!==void 0,lt=xe?Py(_=>wy(_,{measurer:s,producer:S,cache:d,styleCascade:c,...p!==void 0?{defaultTabStopPt:p}:{},compatibilityMode:n.compatibilityMode,...g?{displayMode:g}:{},...m?{revisionAuthorFilter:m}:{},...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,c,g,m):void 0,Be=(_,Q)=>{let se=_.kind==="paragraph"?vu(_,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":_.kind==="table"&&n.drawingTokenForParagraph?z1(_,n.drawingLayoutEpoch,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":n.drawingLayoutToken||"",Oe=`${_.kind==="paragraph"?vu(_,n.projectionTokenForParagraph):_.kind==="table"&&n.projectionTokenForParagraph?n.projectionTokenForTable?.(_)??Ha(_,n.projectionTokenForParagraph):""}|${n.paragraphLineUnitPt??"-"}`,ft=vu(_,lt?.hostedListTokenForParagraph),dt=_.kind==="table"?OP(_,u,c):tc(u?.get(_.id)),mt=dt===""&&ft===""?"":de([dt,ft]),ct=f===void 0?"":_.kind==="table"?kI(_,f):vu(_,Gt=>f.tokenForParagraph(Gt.id)),et=R0.get(_);if(et&&et.contentWidth===Q&&et.frameEnabled===(i.count===1&&!n.disabledParagraphFrameIds?.has(_.id))&&et.producer===S&&et.drawingToken===se&&et.projectionToken===Oe&&et.listToken===mt&&et.refToken===ct&&et.drawingContext===xe)return et.entry;let zn=If(se,xe),mn;if(_.kind==="table")mn={kind:"table",table:_,key:o({paragraph:_,properties:[...mt?[{localName:"list",attributes:{token:mt}}]:[],...ct?[{localName:"refFields",attributes:{token:ct}}]:[]],width:Q,producer:S,drawingToken:zn,projectionToken:Oe})};else {let Gt=u?.get(_.id),Ke=Xn(_,Q,c,Gt,void 0,false,n.paragraphLineUnitPt),aa=i.count===1&&!n.disabledParagraphFrameIds?.has(_.id)?Kj(_,Ke,s,c,n.inlineDrawingLayout):void 0;aa&&(Ke=Xn(_,aa.width,c,Gt,void 0,false,n.paragraphLineUnitPt));let{props:Qt,indent:Br,available:Xr,alignment:Bo,spacing:Qn,lineSpacing:ia,contextualSpacing:sm,styleId:fb,outlineLevel:sn,shading:dm,inheritedRunProperties:cm,markRunProperties:um}=Ke,Uc=Ke.borders,{tabStops:oi,properties:fm}=ey(Ke,p,{listToken:TP(Gt),hostedListToken:ft,refToken:ct});mn={kind:"paragraph",...aa?{frame:aa}:{},paragraph:_,props:Qt,indent:Br,available:Xr,alignment:Bo,spacing:Qn,lineSpacing:ia,contextualSpacing:sm,styleId:fb,outlineLevel:sn,borders:Uc,borderGroupKey:Nf({borders:Uc,indent:Br,props:Qt}),shading:dm,inheritedRunProperties:cm,markRunProperties:um,tabStops:oi,keeps:yt(Qt),...Gt?{listItem:Gt}:{},key:o({paragraph:_,properties:fm,width:Xr,producer:S,drawingToken:zn,projectionToken:Oe})};}return R0.set(_,{contentWidth:Q,frameEnabled:i.count===1&&!n.disabledParagraphFrameIds?.has(_.id),producer:S,drawingToken:se,projectionToken:Oe,listToken:mt,refToken:ct,drawingContext:xe,entry:mn}),mn},le=(n.drawingTokenForParagraph!==void 0||n.drawingLayoutToken!==void 0)&&n.drawingLayoutEpoch===void 0?null:If(n.drawingLayoutEpoch??"",xe),Se=n.projectionTokenForParagraph!==void 0&&n.projectionEpoch===void 0?null:n.projectionEpoch??"",re=gW(i.count,n.disabledParagraphFrameIds)+`|${n.paragraphLineUnitPt??"-"}`,He=O?.prepass,ve={framePolicy:re,drawingEpoch:le,projectionEpoch:Se,producer:S,contentWidth:w,styleCascade:c,numberingIndex:n.numberingIndex,tocToken:P,refToken:f?.valuesToken??""},$e=Jw(He,ve),Me=He?.numberingIndex,ut=$e||Jw(He,{...ve,numberingIndex:Me}),Je=$e&&He.listItems===u,wt=Je&&He.bodies.length===e.length&&He.bodies.every((_,Q)=>_===e[Q]),Ct=wt?He:kt();function kt(){let _=Je&&i.count===1&&!n.disabledParagraphFrameIds?He:null,Q=_??(ut?He:null),se=hW(mW(e,_,Ke=>Be(Ke,w)),n.paragraphLineUnitPt,c),Oe=se.map(Ke=>Ke.key),ft=_D(se,w,c,g,m,n.compatibilityMode),dt=XW(se,w,c,g,m,n.compatibilityMode),mt=se.map(Ke=>Ke.kind==="paragraph"&&Ke.keeps.keepNext),ct=se.map(Ke=>Ke.kind==="paragraph"?TP(u?.get(Ke.paragraph.id)):void 0),et=se.map(Ke=>Ke.kind==="paragraph"?Ke.borderGroupKey:""),zn=P===""?[]:se.map(Ke=>Ke.kind==="paragraph"?fW(Ke.paragraph.id,R):""),mn=se.at(-1),Gt=pB(H.flowKeys(yW(kW(HD(Oe,ft),se),se),se),{terminalTableGroup:dt,...bN(se,c),borderGroupKeyAt:Ke=>et[Ke],tocVerdicts:zn,markerTextAt:Ke=>ct[Ke],keepsNextAt:Ke=>mt[Ke]||F.endsKept(se[Ke]),tableAt:Ke=>se[Ke]?.kind==="table",endsWithSectionMark:mn?.kind==="paragraph"&&!!Un(mn.paragraph),skipKeepNextAt:Ke=>se[Ke]?.kind==="paragraph"&&!!se[Ke].frame});return {framePolicy:re,positioned:ft,bodies:e,producer:S,contentWidth:w,styleCascade:c,listItems:u,numberingIndex:n.numberingIndex,drawingEpoch:le??"",projectionEpoch:Se??"",prepared:se,keys:Oe,paragraphDocumentOrder:Q&&pW(Q.bodies,e,Ai)?Q.paragraphDocumentOrder:YP(se,w,c,g,m,n.compatibilityMode),keepsNext:mt,markerTexts:ct,tocToken:P,refToken:f?.valuesToken??"",flowKeys:Gt,terminalTextTables:dt}}O&&le!==null&&Se!==null&&!wt&&(O.prepass=Ct);let{prepared:We,keys:Wt,paragraphDocumentOrder:Dn,keepsNext:_n,terminalTextTables:Fn}=Ct,Jt=mB(Ct.flowKeys,n.markJoinsBreakSheet===true),{positionedTables:Tt,positionedTablePolicy:ze}=Ct.positioned,Ft=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&d&&!(d.retentionPassDue?.()??true)||qA(d,n.retainKeys,Wt,We.flatMap(_=>_.kind==="table"?[_.table]:[])));},bt=O?.previous??null,Io=bt!==null&&O!==void 0&&O.context===U&&O.producer===S&&(!O.parityDependent||O.startPageParity===X),rn=i.count===1&&Io,Et=0;if(Io){let _=Math.min(Jt.length,O.keys.length);for(;Et<_&&Jt[Et]===O.keys[Et];)Et+=1;}let On=0;if(rn){let _=Math.min(Jt.length,O.keys.length)-Et;for(;On<_&&Jt[Jt.length-1-On]===O.keys[O.keys.length-1-On];)On+=1;}if(Io&&Et===We.length&&We.length===O.keys.length){let _=Cj(O,t,k);return O.startPageParity=X,Ft(),{..._,overflowShellAt:te}}let xn=RD(Tt,Jt),Fe=[],Ze=0,on=0,zt=()=>i.lefts[Ze],Qe=()=>i.widths[Ze],Ve=()=>({text:{left:zt(),width:Qe()},margin:{left:0,width:a},page:{left:-r.margin.left,width:r.width}}),De=()=>kD(Fe,on),Ge=[],Sn=[],ta=new Map,Cn=new Set,qe=[],In=new Set,Hn=new lb,ye=M,jn=M,gt=0,qn=k,Dt=A,Qa=[],Mn=new ub({paragraphFrames:Hn,positionedFlow:xn,pendingFloatIds:Cn,floatSignals:qe,anchorPageDeferCounts:ta}),ei=()=>Mn.capture({pageCount:K.length,pageFragments:Fe,pendingAnchoredDrawings:Ge,deferredAnchoredDrawings:Sn,cursorY:ye,lineCounter:qn,previousSpaceAfter:Dt,flowColumnIndex:gt}),el=0,im=0,jc=0,Mo=M===0;if(rn&&Et>0&&Et<O.checkpoints.length){let _=O.checkpoints[Et];K.push(...bt.pages.slice(0,_.pageCount)),{pageFragments:Fe,pendingAnchoredDrawings:Ge,deferredAnchoredDrawings:Sn,cursorY:ye,flowColumnIndex:gt,lineCounter:qn,previousSpaceAfter:Dt}=Mn.restore(_),Ze=gt,el=Et,Mo=false,jc=K.length,Qa.push(...O.checkpoints.slice(0,Et));}let lm=(_,Q,se=[])=>{let Oe=L(K.length).top;for(let ft of Hn.publish(b1(N+K.length+1,r,Oe,{x:zt(),y:Q,width:Qe(),height:we()-Q}),_,gt,se,ie))Fe.push(ft);},Z=i.count,j=zt,pe=_=>Object.freeze({x:i.lefts[gt]??0,y:_.y,width:i.widths[gt]??w,height:_.height}),he=()=>CW({pageNumber:N+K.length+1,onPageParityRead:ie,geometry:r,insets:L(K.length),contentWidth:w,contentHeight:we(),ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkPWTRJSES_cjs.x}),st=()=>Il(he()),St=_=>{let Q=n.inlineDrawingLayout?.projectionForAtom?.(_)?.drawingNodeId??_;return n.drawingSourceOrder?.get(Q)},ot=_=>{if(_.length===0)return;for(let se of _)Ge.some(Oe=>Oe.drawingNodeId===se.drawingNodeId)||Ge.push(se.sourceOrder===void 0&&St(se.drawingNodeId)!==void 0?Object.freeze({...se,sourceOrder:St(se.drawingNodeId)}):se);if(!n.inlineDrawingLayout)return;let Q=JF(Ge,he());if(Ge.splice(0,Ge.length,...Q.drawings),Q.deferred.length>0)for(let se of Q.deferred){let Oe=(ta.get(se.drawingNodeId)??0)+1;ta.set(se.drawingNodeId,Oe),Oe>=Hx?Ge.push(jx(se,"page-defer-exhausted")):Sn.push(se);}},ke=()=>{if(Sn.length===0)return;let _=Sn.map(Q=>Ax(Q,ye-Q.y));Sn=[],ot(_);},_e=()=>{},Ot=()=>{_e();let _=K.length,Q=fe(_),se=ne("header",_,Q),Oe=ne("footer",_,Q),{usedBottom:ft,hasBodyPageFields:dt}=rS(Fe,jn),mt=L(_),ct=zy(n.sectionPageBorders,r,_===0);K.push({id:`page-${_}`,index:_,box:Q,contentBox:{x:Q.x+r.margin.left,y:Q.y+mt.top,width:a,height:mt.height},fragments:Fe,hasBodyPageFields:dt,...i.separator?{columnSeparators:az(i,jn,ft)}:{},...ct?{pageBorders:ct}:{},...Ge.length>0?{anchoredDrawings:aO(Ge)}:{},...se?{header:se}:{},...Oe?{footer:Oe}:{}}),Fe=[],Ge=[],ye=0,Ze=0,gt=0,jn=0,on=0;},Jn=(_,Q)=>_.kind==="paragraph"&&IW(_,Q,n.inlineDrawingLayout),Bn=()=>{if(Ze+1<i.count){Ze+=1,gt=Ze,ye=jn,Dt=0,on=Fe.length;return}Ot(),ke();},ht={paragraphLineUnitPt:n.paragraphLineUnitPt,...MD(Tt,ze),measurer:s,cache:d,producer:S,onCellBreakKey:V.add,nextLineId:(_,Q,se,Oe)=>(qn+=1,Fo(_,Q,se,Oe)),pageOccurrenceKey:()=>String(K.length),styleCascade:c,listItems:u,...p!==void 0?{defaultTabStopPt:p}:{},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:D,...f?{refFields:f}:{},...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:he,pageContentClip:st,hostedStory:lt,publishAnchoredDrawings:ot,collectAnchoredDrawings:ot,columnBoxForParagraph:pe,onAnchorShift:(_,Q)=>EP(Ge,_,Q),onAnchorRepublish:(_,Q)=>{for(let se=Ge.length-1;se>=0;se-=1)Ge[se].anchorParagraphId===_&&Ge.splice(se,1);Ge.push(...Q);}}:{},...n.inlineDrawingLayout||oe?{pageExclusionZones:me,paragraphOrderIndex:_=>Dn.get(_)}:{},borderOwnershipBudget:Kr(),vMergeResolveBudget:So(),displayMode:g,...m?{revisionAuthorFilter:m}:{}},Cr=Ij({session:O,previous:He,prepass:Ct,inputsEqual:Je,rowInputsEqual:ut,eligible:rn&&!oe&&!n.drawingExclusionZonesByPage?.size,firstChanged:Et,commonSuffix:On,deps:ht,pageBand:we,revision:t,lineCounterStart:k});if(Cr)return Ft(),{...Cr,overflowShellAt:te};let Ir=CN(u,s),{rememberBreakKey:Ps,releasePlacedBreaks:na}=mN(d),yr=Yj({compatibilityMode:n.compatibilityMode,displayMode:g,revisionAuthorFilter:m,seedForwardOnly:(n.drawingExclusionPass??0)<0,drawingLayout:n.inlineDrawingLayout,...lt?{layoutTextboxStory:lt.layoutTextboxStoryFor}:{},paragraphAt:_=>{let Q=We[_];return Q?.kind==="paragraph"?Q:void 0},paragraphOrder:Dn,paragraphIndex:_=>We.findIndex(Q=>Q.kind==="paragraph"&&Q.paragraph.id===_),columnCount:Z}),{breaksBeforeAt:Wn,keepsBeforeAtPageStart:ws,spaceBeforeAt:ti}=oz(We.length,n.compatibilityMode,()=>Mo,c?.fixedParagraphSpacing!==true&&N===0&&M===0&&L(0).top<=kr(r.margin.top)),ra=(_,Q,se=0,Oe,ft)=>{let dt=_.paragraph.id,mt=b?.has(dt)??false,ct=n.fieldCodeRanges?.get(dt)?.some(Xr=>Xr.suppressParagraph)||!mt&&((y?.has(dt)??false)||(x?.has(dt)??false)),et=_.available,zn=j(),mn=Oe??ye,Gt=0;if(Oe===void 0&&se===0&&!_.frame){let Xr=We[Q-1],Bo=_.styleId!==null&&is(_.paragraph,-1,Xr,c)===_.styleId,Qn=_.contextualSpacing&&Bo?0:ti(Q,_,_.spacing.before),ia=H.joins(Xr,_);Gt=Ub(Qn,Dt,ye===0&&!De(),ws(Q,_)),mn+=Gt+ba(ia?void 0:_.borders.top);}let Ke=yr.breakZones(_,Q,gt,me(),he,mn,zn,zn+Qe(),ft),aa=sr(Ke,we()),Qt=mn-yr.displacement(K.length,dt),Br=d&&!ct?Ej(_,n.inlineDrawingLayout,{exclusionToken:aa,paragraphStartY:mn,anchorParagraphStartY:Qt,paragraphSpaceBefore:Gt,regionBottomY:we(),columnIndex:gt,startOffset:se,frameMarginLeft:r.margin.left,pageNumber:N+K.length+1}):null;return Br!==null&&Ps(dt,Br),ty(d,Br,()=>({compatibilityMode:n.compatibilityMode,paragraph:_.paragraph,paragraphId:dt,indentLeft:_.indent.left,available:et,measurer:s,formatting:_,producer:S,styleCascade:c,tabStops:_.tabStops,flow:{...Ir(_),startOffset:se,marginExtent:{left:0,right:_.indent.left+et+_.indent.right},...Bj(_.paragraph,n),bodyPageFields:D,...f?{refFields:f}:{},displayMode:g,...m?{revisionAuthorFilter:m}:{},...gy(n.inlineDrawingLayout,lt),contentLeft:0,contentRight:Z>1?Qe():_.indent.left+et+_.indent.right,...Lj({paragraphStartY:mn,anchorParagraphStartY:Qt,anchorFrameBase:he(),regionBottomY:we(),paragraphSpaceBefore:Gt,pageExclusionZones:Ke,suppressChrome:ct})}}))},ks=(_,Q)=>yr.select(_,Q,gt,me(),{placement:true}),Wc=(_,Q,se,Oe,ft,dt,mt)=>{let ct=ks(_,Q);return n.inlineDrawingLayout?l1({paragraph:_.paragraph,paragraphId:_.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:Z>1?j():0,contentRight:Z>1?j()+Qe():_.indent.left+_.available+_.indent.right,paragraphStartY:dt-yr.displacement(K.length,_.paragraph.id),columnIndex:gt,displayMode:g,...m?{revisionAuthorFilter:m}:{},frameBase:he(),pageZones:ct,brokenLines:se,lineIndex:Oe,fragmentFirstLine:ft,appliedSkipByLineIndex:mt}):ct},ni=(_,Q,se,Oe,ft,dt,mt,ct,et)=>{if(i1(_.paragraph,n.inlineDrawingLayout,mt))return 0;let zn=Wc(_,Q,se,Oe,ft,dt-et,ct),mn=Oe===ft?et:0,Gt=zn.length>0?so(ye,mt.height,zn,mn):0,Ke=mt.exclusionSkipBefore??0;return Math.max(Gt,Ke)},zc=(_,Q,se,Oe,ft,dt)=>Dx(ye,se[Oe].height,dt,{inherited:ks(_,Q),withOwn:Wc(_,Q,se,Oe+1,Oe,ft-dt,new Map)}),ri=_=>wD(he(),_,r.margin.top),tl=(_,Q=ye,se=false,Oe,ft=0)=>Qi(Gc(_,Q,se,Oe,ft));function*Gc(_,Q=ye,se=false,Oe,ft=0){let dt=ye,mt={positionTextTable:se,positionShiftX:ft,cursorY:Q,columnWidth:Qe,columnLeft:zt,flowColumn:()=>i.count>1?gt:void 0,contentHeight:we,unreservedContentHeight:Ae,advanceColumn:()=>{ye=mt.cursorY,Bn(),mt.cursorY=ye;},advancePage:()=>{Ot(),ke(),mt.cursorY=ye;},pageHoldsContent:et=>Fe.length>0||et>0,columnTop:()=>i.count>1?jn:0,regionHoldsContent:et=>Ze>0?De()||et>jn:mt.pageHoldsContent(et),anchorFrames:Ve,verticalAnchorFrames:()=>ri(Q),styleCascade:c,displayMode:g,...m?{revisionAuthorFilter:m}:{},deps:ht,compatibilityMode:n.compatibilityMode,shiftAnchor:(et,zn)=>EP(Ge,et,zn),publishFragment:et=>Fe.push(et),followingKeepOpening:et=>Oe===void 0?void 0:oa.opening(Oe,et)},ct=yield*KW(_,mt);return ye=ct.outOfFlow?dt:mt.cursorY,ct.outOfFlow}_e=()=>PD(Tt,Cn,Fe,qe,(_,Q,se,Oe)=>{let ft=Ze,dt=gt;Ze=Q,gt=Q,V.begin();try{let mt=GD(_,se,Qe(),Ve(),Fe,Oe,ht,we());tl(_,mt.anchorY,!0,void 0,mt.dx),Ml(_,V.keys());}finally{V.end(),Ze=ft,gt=dt;}});let Vc=(_,Q)=>{let se=We[_];return _===We.length-1&&se?.kind==="paragraph"&&!se.frame&&Un(se.paragraph)!==void 0&&(u?.get(se.paragraph.id)??se.listItem)===void 0&&g0(se,Q??ra(se,_),n.inlineDrawingLayout)?se:void 0},nl=-1,rl=(_,Q)=>{if(_===nl)return true;if(n.sectionMarkCollapses!==true||_===0)return false;let se=Vc(_,Q);return se!==void 0&&!Wn(_,se)},oa=cB({blocks:We,dynamicBlock:_=>We[_]?.kind==="paragraph"&&UP(We[_].paragraph,n.inlineDrawingLayout),contextKey:()=>{let _=me(),Q=`${Qe()}:${nl}:`;return _.length?Q+`${gt}:${ye}:${Dt}:${Mo}:${sr(_)}`:Q},linesFor:_=>{let Q=Be(e[_],Qe());return Q.kind==="paragraph"?ra(Q,_):[]},skipBlock:_=>We[_]?.kind==="paragraph"&&(!!We[_].frame||rl(_)),breaksBefore:_=>We[_]?.kind==="paragraph"&&Wn(_,We[_]),sumAdjacentSpacing:c?.fixedParagraphSpacing,tableOpening:_=>F.opening(We[_],Qe(),we(),ht)},n.compatibilityMode),br=false,ol=We.length,Ts=0,It=0;for(let _=el;_<We.length;_+=1){O&&K.length>It&&(It=K.length,yield {pages:K});let Q=Be(e[_],Qe());if(Qa[_]=ei(),rn&&On>0&&_>=We.length-On){let Te=O.checkpoints[_+(O.keys.length-We.length)];if(Te&&hz(Te,Qa[_])){let Ie=K.length-Te.pageCount;if(QW({delta:Ie,titlePage:T?.titlePage===true,evenAndOddHeaders:T?.evenAndOddHeaders===true,parityDependent:O.parityDependent,usedPageParity:q,markPageCount:Te.pageCount,continuedInsets:G!==void 0,firstPageBorders:n.sectionPageBorders!==void 0&&n.sectionPageBorders.display!=="allPages",hasNoteReserves:I!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let Rn=Ie===0?bt.pages.slice(Te.pageCount):bt.pages.slice(Te.pageCount).map((Pn,er)=>gs(Pn,K.length+er,fe(K.length+er).y));K.push(...Rn),jc+=Rn.length,br=true,ol=_,Ts=Ie,qn+=O.endLineCounter-Te.lineCounter;break}}}if(im+=1,Q.kind==="table"){if(In.has(Q.table.id))continue;if(Fn?.start===_&&i.count===1&&Cn.size===0&&!Fe.some(By)&&!me().length){let Te=We[Fn.anchorIndex];if(Te.kind==="paragraph"){let Ie=ra(Te,Fn.anchorIndex);if(Ie.length===1&&Ie[0].spans.length===0){let Pt=ui(Te.spacing.before,Dt),Rn=qW(Fn,{cursorY:ye+Pt,anchorHeight:Ie[0].height,contentWidth:w,contentHeight:we(),frames:Ve(),deps:ht,styleCascade:c,displayMode:g,authorFilter:m});if(Rn){let Pn=ZW(Rn.fragments,Tt,gt);for(let er of Pn)Fe.push(er);for(let[er,Ao]of Fn.tables.entries())In.add(Ao.id),Ml(Ao,Rn.cellBreakKeys[er]);continue}}}}if(ze.has(Q.table.id)&&!ae&&jD(Q.table,ht,{allowBreak:i.count===1&&ze.get(Q.table.id),zones:ue(n.drawingExclusionZonesByPage),page:K.length,width:Math.min(...i.widths),frames:Ve(),verticalFrames:ri(ye),bottom:we()})){xn.add(Cn,Q.table.id);continue}V.begin();try{(yield*Gc(Q.table,ye,!1,_+1))||(Dt=0),Mo=!1,Ml(Q.table,V.keys());}finally{V.end();}continue}let se=Q.frame,{paragraph:Oe,props:ft,contextualSpacing:dt,styleId:mt,borders:ct,shading:et,keeps:zn}=Q,mn=We[_],Gt=mn.kind==="paragraph"?mn.spacing:Q.spacing,Ke=ti(_,Q,Gt.before),aa=Ke===Gt.before?Gt:{...Gt,before:Ke},{indent:Qt,alignment:Br,markRunProperties:Xr}=Q,Bo=it(Q.props),Qn=Q.available,ia=_>0?We[_-1]:void 0,sm=We[_+1],fb=u?.get(Oe.id)??Q.listItem,sn=Oe.id,dm=H.joins(ia,Q),cm=H.joins(Q,sm),um=dm?void 0:ct.top,Uc=cm?ct.between:ct.bottom,oi=ba(um),fm=ba(Uc);Wn(_,Q)&&(Fe.length>0||ye>0)&&_!==nl&&(Ot(),Dt=0);let pt=ra(Q,_),w0=(Te=0,Ie)=>{yr.measure(K.length,_,me(),pt,Pt=>ra(Q,_,Te,Ie,Pt));};if(w0(),pt.length===0){na(sn),xn.note(qe,Oe.id,gt,Fe.length,ye);continue}let k0=Un(Oe)!==void 0,T0=IN(pt),Bz=k0&&Jn(Q,pt),Fs=k0&&!se&&rl(_,pt),v0=()=>Fs||Bz&&$===void 0&&Ze+1>=i.count,mb=()=>H.admits(ia,Q)&&Hn.checkpoint()===void 0&&!wc(Tt).has(sn)&&MW(Q,pt,n.inlineDrawingLayout),Os=_P(Fs?{before:0,after:0}:aa,dt,mt,is(Oe,-1,ia,c),is(Oe,1,sm,c)),mm=(Te,Ie)=>{let Pt=Be(Oe,Qe());Pt.kind==="paragraph"&&(Qt=Pt.indent,Br=Pt.alignment,Qn=Pt.available,Xr=Pt.markRunProperties,na(sn),pt=[...ra(Pt,_,Te,Ie)],w0(Te,Ie));},pm=se||Fs?{cursorY:ye,previousSpaceAfter:Dt,firstParagraphOfSection:Mo}:null,gm=se?Hn.start(se,ia?.kind==="paragraph"?ia.paragraph.id:void 0):null;if(gm&&(ye=gm.cursorY,Dt=Ug(gm.previousSpaceAfter,c)),!se){let Te=ui(Os.before,Dt),Ie=$P(Xr,c?.themeFonts),Pt=pt.length<=1?fm:0,Rn=ye+Te+oi,Pn=Wc(Q,_,pt,0,0,Rn,new Map),er=pt[0]?$S(Rn,pt[0],Pn,Pt):s.lineMetrics(Ie).height+Pt,Ao=Te+oi+Math.max(er,Hn.requiredAnchorBand(pt),zD(Tt,Cn,sn,Qe(),ht,{anchorY:Rn,anchorExtent:er,frames:Ve(),verticalFrames:ri(Rn),earlier:Fe,signals:qe}));if(zn.keepNext&&!_n[_-1]){let sa=oa.need(_,Dt,{cursorY:ye,contentHeight:we(),lead:Te,topExtent:oi,pricedLead:Fs?0:ui(aa.before,Dt),freshLead:ws(_,Q)?Os.before:0});sa!==null&&(Ao=Math.max(Ao,sa));}ye+Ao>we()&&ye>0&&!v0()&&!mb()&&(Bn(),Dt=0,mm(0));}let Lz=ye===0&&!De(),al=!se&&mb(),Ez=al?ui(Os.before,Dt):0,pb=al?0:Ub(Os.before,Dt,se?false:Lz,se?false:ws(_,Q));pb>0&&(ye+=pb),oi>0&&!al&&(ye+=oi),Mo=false;let F0=oa.tailBreak(_,pt.length,ye,we()),la=0,Rt=[],O0=pt[0]?.start??0,Lo=pb,ai=al?0:oi,gb=false,Yc=false,C0=0,I0=Te=>{Lo=0,ai=0,gb=!al||Te,!gb&&(al=false,Lo=Ez,ai=ba(ct.top),ye+=Lo+ai);},ii=ye,M0=0,il=new Map;Dt=0;let B0=n.inlineDrawingLayout!==void 0&&at(Q.paragraph,n.inlineDrawingLayout).length>0,L0=false,hb=null,{revisions:Az,formatRevision:Nz}=Mp(Q.paragraph,g,m),E0=Id(Q.paragraph,g,m),A0=Bi(Q.paragraph),N0=A0?zd(A0,g,m):null,hm=Te=>{if(Rt.length===0)return;let Ie=zt(),Pt=j(),Rn=Rt[0].box.y,Pn=Rn-Lo-ai,er=Rt[Rt.length-1].box.y+Rt[Rt.length-1].box.height,Ao=Te?Os.after:0,{strokes:sa,bottomBorder:Cs,contentTop:Xc,contentBottom:bb,boxLeft:ym,boxWidth:bm,bottom:sl,height:xm}=TW({borders:ct,topEdge:la===0?um:ct.top,closingEdge:Uc,continuesAbove:dm,continuesBelow:cm,inFrame:!!se,isLast:Te,fragmentIndex:la,topExtent:ai,appliedAfter:Ao,top:Pn,linesTop:Rn,linesBottom:er,regionX:Ie,indentLeft:Qt.left,available:Qn,outdent:_d(Qt,Bo),drawn:!al});Te&&(ye=Math.max(ye,sl));let Is=N0?Jg(Rt,N0):null,dl=(T0===void 0?la===0:Rt[0].range.start===T0)?iy(fb,s,Rt[0],0,Bo?Qt.left+Qn+Qt.right:void 0,n.inlineDrawingLayout?.pictureBulletResource):void 0,Sm=dl?{...dl,box:{...dl.box,x:dl.box.x+Ie}}:void 0;!se&&la===0&&(lm(sn,ii,Rt),xn.note(qe,sn,gt,Fe.length,ii));let Ms={kind:"paragraph",id:`${sn}#f${la}`,paragraphId:sn,fragmentIndex:la,range:Is?Is[Is.length-1].range:{paragraphId:sn,start:O0,end:Rt[Rt.length-1].range.end},props:ft,styleId:Q.styleId,outlineLevel:Q.outlineLevel,alignment:Q.alignment,spacing:{before:Lo,after:Ao},indent:Qt,...Cs?{bottomBorder:Cs}:{},...sa.length>0?{borders:sa}:{},...Fs||Yc?{outOfFlow:true}:{},...et===void 0||Fs?{}:{shading:et,shadingBox:BW(ct.left||ct.right?{x:ym,y:Xc,width:bm,height:Math.max(bb-Xc,0)}:ep(Rt,Ie+Qt.left,Qn),Yc?{y:C0,clip:st()}:void 0)},tabStops:Q.tabStops,...Sm?{marker:Sm}:{},...Te?{paragraphEnd:true}:{},...Te&&h?Bp(Az,Nz):{},...Te&&E0.length>0?{markChangeSites:E0}:{},lines:Is??Rt,...py(Rt,Xr,c?.themeFonts,Te),box:{x:Pt+Qt.left,y:Pn,width:Qn,height:xm}};if(se?Hn.add(se,Ms,gm?.groupId,_):Fe.push(Ms),n.inlineDrawingLayout&&B0&&!L0){L0=true;let Rm=[...Tn(Q.paragraph).values()],en=Rm.length>0&&Rm.every(qr=>Rt.some(cl=>qr>=cl.range.start&&qr<cl.range.end)),Zr,xr,Zc;if(en){let qr=Pn-Nx(M0,ii,Rt[0],{inheritedZones:ks(Q,_),spaceAbove:Lo,anchorClearanceBefore:pt[Eo]?.anchorClearanceBefore})-yr.displacement(K.length,sn);Zr=Rt,xr={x:Pt+Qt.left,y:qr,width:Qn,height:xm},Zc=pe(xr);}else {let qr=hb??{columnX:Pt,columnWidth:Qe(),startY:Pn},cl=JW(pt,qr,{left:qr.columnX+Qt.left,width:Qn},sn);Zr=cl.lines;let Pm=qr.startY-yr.displacement(K.length,sn);xr={x:qr.columnX+Qt.left,y:Pm,width:Qn,height:Math.max(cl.bottom-Pm,Rt[0]?.box.height??0)},Zc=pe(xr);}ot(as({paragraph:Q.paragraph,paragraphId:sn,paragraphBox:xr,lines:Zr,drawingLayout:n.inlineDrawingLayout,frameBase:he(),columnBox:Zc,cellBox:null,pageClip:st(),cellAnchorScope:null,measurer:s,sourceOrderOf:St,layoutTextboxStory:lt.layoutTextboxStoryFor,displayMode:g,...m?{revisionAuthorFilter:m}:{}}));}la+=1,O0=Rt[Rt.length-1].range.end,Rt=[],Lo=0,ai=0;},Eo=0,yb=0,ll=pt.length+ef,D0=0;for(let Te=0;Te<pt.length;Te+=1){let Ie=pt[Te],Pt=Te===pt.length-1,Rn=Pt?fm:0;Te===Eo&&(ii=ye,B0&&hb===null&&la===0&&(hb=Object.freeze({columnX:j(),columnWidth:Qe(),startY:ii})));let Pn=se?0:ni(Q,_,pt,Te,Eo,ii,Ie,il,Lo),er=(Ie.anchorClearanceBefore??Pn)+Math.max(0,Ie.height-Ie.trailingSpacing)+Rn;if(Yc=!se&&Te===0&&ye+er>we()&&mb(),Te===F0||!se&&ye+er>we()&&!v0()&&!Yc&&(Rt.length>0||Fe.length>0||(K.length>0||oe&&Pn>0)&&zc(Q,_,pt,Te,ii,Lo)+Math.max(0,Ie.height-Ie.trailingSpacing)+Rn<=we())){if(F0=-1,!De()&&Pn>0&&me().some(ul=>ul.sourceKind==="furniture")&&++D0>Al*Z)throw new jo("wrapping page furniture leaves no room for body content");let en=!De(),Zr=yb<ll?Mi(Te,Eo,pt.length,zn,en):Te,xr=Zr<Te;for(let ul=Te;ul>Zr;ul-=1){Rt.pop();let _0=pt[ul-1],Dz=il.get(ul-1)??_0.exclusionSkipBefore??0;il.delete(ul-1),ye-=_0.height+Dz,qn-=1;}let Zc=xr&&Rt.length===0&&la===0,qr=pt[Zr].start,cl=Qe(),Pm=me().length>0;if(hm(false),Bn(),Lo=0,Zc?ye=ai:ai=0,Qe()!==cl||Pm||me().length>0){mm(qr,ye),il.clear(),ll=Math.max(ll,pt.length+ef),Eo=0,xr&&(yb+=1),Te=-1;continue}if(Eo=Zr,ii=ye,xr){yb+=1,Te=Zr-1;continue}}D0=0;let sa=j();il.set(Te,Pn),ye+=Pn,Yc&&(C0=ye,ye=Math.min(ye,Math.max(0,we()-Ie.height)));let Cs=Ie.firstLineOffset??0,Xc=sa+Qt.left+(Bo?0:Cs),bb=Math.max(1,Qn-Cs),ym=sa-(Bo?Cs:0),bm=Ie.spans.map(en=>({...en,range:{...en.range,paragraphId:sn},box:{...en.box,x:en.box.x+ym,y:ye}})),sl=ES(Ie,sa,Xc,bb),xm=Object.freeze({x:0,y:0,width:a,height:we()}),Is=Ie.drawings.map(en=>Object.freeze({...pr(en,ym,ye),paragraphId:sn})),xb=eh(bm,Is,Bo,en=>Yu(en,s,sl.indent,sl.available,Br,LS(Q.props,Ie,Pt,c),Br==="center"||Br==="right"?sl.used:void 0,Bo,false,Ie.spaceShrink===true),en=>jg(bm,en,Br,sl.available,sl.used)),{spans:dl,offset:Sm}=xb,Ms=xb.drawings.map(en=>os(en,xm)),Rm={id:Fo(Oe.id,Ie.start,Te),range:{paragraphId:sn,start:Ie.start,end:Ie.end},spans:dl,box:{x:j()+Qt.left,y:ye,width:Qn,height:Ie.height},contentX:Ii(dl,Ms,Xc+Sm),baseline:Ie.baseline,leading:Ie.leading,trailingSpacing:Ie.trailingSpacing,...Ie.manualBreakAfter?{manualBreakAfter:true}:{},...uN(Ie),...Ie.deletedRanges?{deletedRanges:Ie.deletedRanges}:{},...Ms.length>0?{drawings:Ms}:{},...Ie.anchorRevisions?{anchorRevisions:Ie.anchorRevisions}:{},...Ie.changeSites?{changeSites:Ie.changeSites}:{}};if(qn+=1,Rt.length===0&&(M0=Pn),Rt.push(Rm),ye+=Ie.height,Ie.columnBreakAfter){let en=Qe(),Zr=me().length>0;hm(Pt),Bn();let xr=pt[Te+1];if(I0(!xr||Vo(xr)||h0(xr)),!Pt&&(Qe()!==en||Zr||me().length>0)){mm(Ie.end,ye),il.clear(),ll=Math.max(ll,pt.length+ef),Eo=0,Te=-1;continue}Eo=Te+1;}else if(Ie.pageBreakAfter){let en=me().length>0;if(hm(Pt),Pt&&n.markJoinsBreakSheet&&!se&&Vc(_+1)?nl=_+1:Ot(),I0(Pt||Vo(pt[Te+1])),!Pt&&(en||me().length>0)){mm(Ie.end,ye),il.clear(),ll=Math.max(ll,pt.length+ef),Eo=0,Te=-1;continue}Eo=Te+1;}}hm(true),na(sn),Dt=Ug(gb?0:Os.after,c),pm&&(ye=pm.cursorY,Dt=pm.previousSpaceAfter,Mo=pm.firstParagraphOfSection);}br||lm("",ye),br||(Qa[We.length]=ei());let an=br&&O?O.endCursorY:ye,Ln=br&&O?O.endSpaceAfter:Dt,ln=!br&&(Fe.length>0||qe.length>0||K.length===0),Mr=br&&O?O.endsOpenPage:ln;ln&&(Ot(),an=Math.max(an,S1(K.at(-1).fragments,K.at(-1).contentBox.height)));let vs=0,Kc=Hx*4+8;for(;(Ge.length>0||Sn.length>0)&&vs<Kc;)vs+=1,Ge.length===0&&ke(),Ot();Sn.length>0&&(Ge.push(...Sn.map(_=>jx(_,"page-defer-exhausted"))),Sn=[],Ot()),Ft();let $c={revision:t,pages:K,...n.displayMode?{displayMode:n.displayMode}:{}};if(O){O.previous=$c,O.checkpoints=br?[...Qa.slice(0,ol),...O.checkpoints.slice(ol+(O.keys.length-We.length)).map(Q=>Ts===0?Q:{...Q,pageCount:Q.pageCount+Ts})]:Qa,O.keys=Jt,O.context=K.length+1===W?U:Y(Ky(I,N,K.length+1)),O.producer=S;let _=q||T?.evenAndOddHeaders===true;O.parityDependent=el===0&&!br?_:O.parityDependent||_,O.startPageParity=X,O.startLineCounter=k,O.endLineCounter=qn,O.endCursorY=an,O.endSpaceAfter=Ln,O.endsOpenPage=Mr,O.stats={placed:im,total:We.length,reusedPages:jc,fullPasses:O.stats.fullPasses+(el===0?1:0)};}return {layout:$c,pages:K,lineCounter:qn,endCursorY:an,endSpaceAfter:Ln,endsOpenPage:Mr,overflowShellAt:te}}function Z9(e,t,n){return Qi(P0(e,t,n))}function P0(e,t,n){return Iz(e,t,n,X9)}
|
|
30
|
+
exports.$=rr;exports.$a=E7;exports.$b=zl;exports.$c=cU;exports.$d=iP;exports.$e=ewe;exports.A=fT;exports.Aa=IG;exports.Ab=Tl;exports.Ac=fne;exports.Ad=Xde;exports.Ae=Vpe;exports.Af=Vke;exports.B=ep;exports.Ba=NG;exports.Bb=Ev;exports.Bc=vd;exports.Bd=Zde;exports.Be=Kpe;exports.Bf=TH;exports.C=v5;exports.Ca=DG;exports.Cb=Dp;exports.Cc=b$;exports.Cd=oh;exports.Ce=ege;exports.Cf=qy;exports.D=F5;exports.Da=Zs;exports.Db=_x;exports.Dc=x$;exports.Dd=$d;exports.De=tge;exports.Df=Kke;exports.E=tp;exports.Ea=l7;exports.Eb=ac;exports.Ec=JC;exports.Ed=gr;exports.Ee=oge;exports.Ef=$4;exports.F=np;exports.Fa=tx;exports.Fb=Fhe;exports.Fc=Og;exports.Fd=Ud;exports.Fe=Cge;exports.Ff=EH;exports.G=zs;exports.Ga=_G;exports.Gb=Pa;exports.Gc=Fd;exports.Gd=Ko;exports.Ge=Xh;exports.Gf=WIe;exports.H=Vs;exports.Ha=xp;exports.Hb=EF;exports.Hc=yS;exports.Hd=UY;exports.He=Ige;exports.Hf=vo;exports.I=Kb;exports.Ia=nx;exports.Ib=eg;exports.Ic=po;exports.Id=SR;exports.Ie=be;exports.If=uLe;exports.J=op;exports.Ja=Sp;exports.Jb=qF;exports.Jc=T$;exports.Jd=ph;exports.Je=od;exports.Jf=U9;exports.K=oG;exports.Ka=rx;exports.Kb=ug;exports.Kc=bS;exports.Kd=PR;exports.Ke=RJ;exports.L=hT;exports.La=nt;exports.Lb=kO;exports.Lc=F$;exports.Ld=UB;exports.Le=Lhe;exports.M=lu;exports.Ma=qs;exports.Mb=zr;exports.Mc=Un;exports.Md=XB;exports.Me=Df;exports.N=dG;exports.Na=Gn;exports.Nb=co;exports.Nc=kne;exports.Nd=Yd;exports.Ne=ESe;exports.O=m5;exports.Oa=S7;exports.Ob=MK;exports.Oc=SS;exports.Od=sf;exports.Oe=Zo;exports.P=ci;exports.Pa=Sa;exports.Pb=TO;exports.Pc=oI;exports.Pd=yo;exports.Pe=Qye;exports.Q=bT;exports.Qa=R7;exports.Qb=BK;exports.Qc=RS;exports.Qd=wX;exports.Qe=ebe;exports.R=ya;exports.Ra=Js;exports.Rb=vO;exports.Rc=vi;exports.Rd=kX;exports.Re=tbe;exports.S=xT;exports.Sa=HG;exports.Sb=LK;exports.Sc=Nne;exports.Sd=_a;exports.Se=nbe;exports.T=ip;exports.Ta=ax;exports.Tb=zo;exports.Tc=bI;exports.Td=eP;exports.Te=rbe;exports.U=RT;exports.Ua=UG;exports.Ub=Vx;exports.Uc=tre;exports.Ud=NL;exports.Ue=XP;exports.V=wr;exports.Va=w7;exports.Vb=_l;exports.Vc=TS;exports.Vd=nn;exports.Ve=fn;exports.W=ba;exports.Wa=k7;exports.Wb=Nu;exports.Wc=Mg;exports.Wd=qfe;exports.We=q1;exports.X=p5;exports.Xa=kp;exports.Xb=fd;exports.Xc=Gre;exports.Xd=ZE;exports.Xe=Oq;exports.Y=PT;exports.Ya=B7;exports.Yb=Hl;exports.Yc=Vre;exports.Yd=Dh;exports.Ye=i_;exports.Z=ui;exports.Za=Ue;exports.Zb=t2;exports.Zc=Cd;exports.Zd=bme;exports.Ze=KPe;exports._=Ub;exports._a=L7;exports._b=Wl;exports._c=nU;exports._d=aP;exports._e=QPe;exports.a=$k;exports.aa=je;exports.ab=A7;exports.ac=LO;exports.ad=hU;exports.ae=xme;exports.af=dwe;exports.b=Km;exports.ba=$t;exports.bb=Ye;exports.bc=Pi;exports.bd=Uu;exports.be=Sme;exports.bf=mwe;exports.c=$m;exports.ca=tt;exports.cb=gi;exports.cc=Gl;exports.cd=Wae;exports.ce=lP;exports.cf=hwe;exports.d=bl;exports.da=dp;exports.db=Op;exports.dc=wi;exports.dd=lM;exports.de=lh;exports.df=_we;exports.e=Ym;exports.ea=pi;exports.eb=Sv;exports.ec=tS;exports.ed=GS;exports.ee=Ro;exports.ef=Hwe;exports.f=e5;exports.fa=Xb;exports.fb=QG;exports.fc=P2;exports.fd=Vie;exports.fe=go;exports.ff=Y4;exports.g=Jk;exports.ga=W5;exports.gb=N7;exports.gc=qO;exports.gd=Ju;exports.ge=Rme;exports.gf=Qi;exports.h=Um;exports.ha=PG;exports.hb=kl;exports.hc=ste;exports.hd=rY;exports.he=ic;exports.hf=Nj;exports.i=oT;exports.ia=G5;exports.ib=Do;exports.ic=bd;exports.id=aB;exports.ie=Rf;exports.if=J0e;exports.j=Gz;exports.ja=V5;exports.jb=Ru;exports.jc=rC;exports.jd=cr;exports.je=Pf;exports.jf=zy;exports.k=Xm;exports.ka=HT;exports.kb=Xe;exports.kc=E2;exports.kd=iB;exports.ke=RZ;exports.kf=L_;exports.l=Kz;exports.la=fp;exports.lb=Lp;exports.lc=iC;exports.ld=lY;exports.le=PZ;exports.lf=Jf;exports.m=t5;exports.ma=xt;exports.mb=Fv;exports.mc=xd;exports.md=ur;exports.me=TZ;exports.mf=Gy;exports.n=Uz;exports.na=K5;exports.nb=Ep;exports.nc=wg;exports.nd=Xn;exports.ne=Ppe;exports.nf=i4;exports.o=iu;exports.oa=$5;exports.ob=lr;exports.oc=cC;exports.od=yt;exports.oe=vA;exports.of=t0e;exports.p=cT;exports.pa=U5;exports.pb=Fu;exports.pc=Ete;exports.pd=nR;exports.pe=wpe;exports.pf=l4;exports.q=Zz;exports.qa=Y5;exports.qb=lx;exports.qc=lS;exports.qd=Zl;exports.qe=RA;exports.qf=N_;exports.r=o5;exports.ra=X5;exports.rb=sx;exports.rc=xC;exports.rd=Gr;exports.re=PA;exports.rf=A_;exports.s=qz;exports.sa=pp;exports.sb=tV;exports.sc=TC;exports.sd=Od;exports.se=kpe;exports.sf=s4;exports.t=a5;exports.ta=gp;exports.tb=td;exports.tc=dS;exports.td=it;exports.te=Tpe;exports.tf=d4;exports.u=h5;exports.ua=Ce;exports.ub=Ov;exports.uc=lne;exports.ud=af;exports.ue=vpe;exports.uf=Bw;exports.v=b5;exports.va=fu;exports.vb=hu;exports.vc=c$;exports.vd=hn;exports.ve=CZ;exports.vf=f4;exports.w=Yb;exports.wa=hp;exports.wb=Bv;exports.wc=vg;exports.wd=Wde;exports.we=zpe;exports.wf=Lw;exports.x=Gb;exports.xa=Ut;exports.xb=V7;exports.xc=f$;exports.xd=jY;exports.xe=IZ;exports.xf=RH;exports.y=Qm;exports.ya=un;exports.yb=Np;exports.yc=zu;exports.yd=fR;exports.ye=Gpe;exports.yf=T4;exports.z=uT;exports.za=ZT;exports.zb=Lv;exports.zc=Td;exports.zd=Vde;exports.ze=Wi;exports.zf=fH;
|