@docx-editor.dev/core 2.29.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.
Files changed (99) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +18 -13
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +46 -38
  6. package/dist/binding.js +1 -1
  7. package/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-BM3Js-6X.d.ts} +276 -227
  8. package/dist/{chunk-BCXH4BXB.js → chunk-2PV5L5NJ.js} +3 -3
  9. package/dist/chunk-5OTS2EJ7.js +7 -0
  10. package/dist/chunk-5P4223J4.cjs +27 -0
  11. package/dist/{chunk-MM5QBMTE.cjs → chunk-5RRAZMBU.cjs} +1 -1
  12. package/dist/chunk-5SPITS5F.js +18 -0
  13. package/dist/{chunk-236O4YQW.js → chunk-7ATNKARV.js} +1 -1
  14. package/dist/{chunk-6JPL6ZAS.cjs → chunk-BGCUTKWE.cjs} +5 -5
  15. package/dist/chunk-EBCXSH2W.js +3 -0
  16. package/dist/{chunk-JLVBDYVQ.cjs → chunk-ERECKTIR.cjs} +1 -1
  17. package/dist/{chunk-BY2ACZZ6.cjs → chunk-FLBEJC6X.cjs} +1 -1
  18. package/dist/{chunk-W35WTWAO.cjs → chunk-HYASLE2G.cjs} +1 -1
  19. package/dist/chunk-JC47NRJC.cjs +3 -0
  20. package/dist/{chunk-7WQ7AAHW.cjs → chunk-KJRTNY2Q.cjs} +1 -1
  21. package/dist/chunk-NKPUH3QJ.js +1 -0
  22. package/dist/chunk-PF5NJWS3.js +2 -0
  23. package/dist/chunk-PWTRJSES.cjs +18 -0
  24. package/dist/chunk-QFKGI242.cjs +30 -0
  25. package/dist/{chunk-G4HOFIKJ.js → chunk-RJCQGJR7.js} +1 -1
  26. package/dist/chunk-RPPV4S6T.cjs +4 -0
  27. package/dist/{chunk-LSZ6KPKK.js → chunk-T32MGBJS.js} +1 -1
  28. package/dist/chunk-UM26GH5B.js +30 -0
  29. package/dist/chunk-VRCZBFLH.js +27 -0
  30. package/dist/{chunk-UHHYFIDT.cjs → chunk-WF7JZ755.cjs} +1 -1
  31. package/dist/chunk-WK5X2MMA.cjs +7 -0
  32. package/dist/{chunk-RCLZXP3B.js → chunk-WPDD2Y32.js} +1 -1
  33. package/dist/chunk-YBMWBXST.cjs +2 -0
  34. package/dist/{chunk-OMCG63ZF.js → chunk-YZGUBCHP.js} +1 -1
  35. package/dist/chunk-ZOS2PM4A.js +4 -0
  36. package/dist/collaboration/replication.cjs +1 -1
  37. package/dist/collaboration/replication.d.ts +4 -4
  38. package/dist/collaboration/replication.js +1 -1
  39. package/dist/collaboration.d.ts +3 -3
  40. package/dist/contracts/document.d.ts +2 -2
  41. package/dist/contracts/editor.d.ts +8 -8
  42. package/dist/contracts/modules.d.ts +11 -11
  43. package/dist/contracts/types.d.ts +1 -1
  44. package/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-0v0Kgw1T.d.ts} +2 -2
  45. package/dist/{diagnostic-context-B8M79cfK.d.ts → diagnostic-context-CcAO4q1s.d.ts} +1 -1
  46. package/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-2Bke6H_w.d.ts} +11 -4
  47. package/dist/{document-protection-CUb55pl_.d.ts → document-protection-8eyMWIJ0.d.ts} +1 -1
  48. package/dist/{editor-CZQZmTIU.d.ts → editor-DaEJd2so.d.ts} +84 -10
  49. package/dist/editor.cjs +1 -1
  50. package/dist/editor.d.ts +31 -30
  51. package/dist/editor.js +1 -1
  52. package/dist/export.cjs +2 -2
  53. package/dist/export.d.ts +16 -13
  54. package/dist/export.js +2 -2
  55. package/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-CL9BVKZo.d.ts} +1 -1
  56. package/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
  57. package/dist/{headless-document-view-pp3q7wIh.d.ts → headless-document-view-DZQN8Bnx.d.ts} +2 -2
  58. package/dist/{image-resources-tXLQShoC.d.ts → image-resources-Bipz8toD.d.ts} +1 -1
  59. package/dist/index.cjs +1 -1
  60. package/dist/index.d.ts +24 -23
  61. package/dist/index.js +1 -1
  62. package/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-cEnVrhWg.d.ts} +3 -2
  63. package/dist/layout.cjs +1 -1
  64. package/dist/layout.d.ts +41 -38
  65. package/dist/layout.js +1 -1
  66. package/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-9FH8zAeG.d.ts} +1 -1
  67. package/dist/{omml-equation-BUbU0utM.d.ts → omml-equation-DP2WpUbK.d.ts} +13 -1
  68. package/dist/output.cjs +1 -1
  69. package/dist/output.d.ts +7 -7
  70. package/dist/output.js +1 -1
  71. package/dist/{protocol-DYzzz2ej.d.ts → protocol-CZ1uUlPO.d.ts} +2 -2
  72. package/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-CqVelc5A.d.ts} +1 -1
  73. package/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-Dr9yxFZt.d.ts} +2 -2
  74. package/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-Dc3pf3hr.d.ts} +1 -1
  75. package/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-Bz3FBAoH.d.ts} +3 -3
  76. package/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-Bx0pl6kL.d.ts} +1 -1
  77. package/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-CjcF26ZL.d.ts} +86 -61
  78. package/dist/store.cjs +1 -1
  79. package/dist/store.d.ts +17 -130
  80. package/dist/store.js +1 -1
  81. package/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DKhdEVym.d.ts} +158 -4
  82. package/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CwnTEVLF.d.ts} +7 -5
  83. package/dist/{types-barrel-DuC5QBNC.d.ts → types-barrel-CA0xB8kH.d.ts} +2 -2
  84. package/package.json +2 -2
  85. package/dist/chunk-6ZQP4HQ7.js +0 -3
  86. package/dist/chunk-CAJEXXVG.cjs +0 -4
  87. package/dist/chunk-CPWLFPWC.js +0 -30
  88. package/dist/chunk-D7ZMDMPX.cjs +0 -3
  89. package/dist/chunk-DOHF6FA7.cjs +0 -30
  90. package/dist/chunk-DVX32P2P.js +0 -27
  91. package/dist/chunk-E4LOMDNL.js +0 -1
  92. package/dist/chunk-EKLM7NWB.cjs +0 -7
  93. package/dist/chunk-G3K63G7P.cjs +0 -27
  94. package/dist/chunk-LQX36Z5P.js +0 -7
  95. package/dist/chunk-OSFOJTHU.cjs +0 -18
  96. package/dist/chunk-T6K2QYNZ.cjs +0 -2
  97. package/dist/chunk-TRGAVV2Y.js +0 -4
  98. package/dist/chunk-U4JZVSOE.js +0 -2
  99. package/dist/chunk-YQ5G6LC7.js +0 -18
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkDOHF6FA7_cjs=require('./chunk-DOHF6FA7.cjs'),chunkBY2ACZZ6_cjs=require('./chunk-BY2ACZZ6.cjs'),chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');var Ye=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function $(e){let t=new Map;for(let n of e)if(Array.isArray(n)){for(let o of n.slice(0,2048)){if(typeof o!="string"||!Ye.test(o))continue;let r=o.toLowerCase();if(t.has(r)||t.set(r,o),t.size===2048)break}if(t.size===2048)break}return Object.freeze([...t.values()])}function kt(e){let t=e&&"failures"in e?e.failures:void 0;return e==null||(e.sources?.length??0)===0&&(e.substitutions?.length??0)===0&&(t===void 0||Array.isArray(t)&&t.length===0)?void 0:e}var De=64,re=Object.freeze({family:"Calibri",sizeHalfPoints:22}),At=re;function Y(e,...t){let n=[e,...t],o=[],r=new Set;for(let l of n)for(let c of l.sources??[]){let u=chunkDOHF6FA7_cjs.h(c.request);r.has(u)||(r.add(u),o.push(c));}let i=[],s=new Set;for(let l of n)for(let c of l.substitutions??[]){let u=chunkDOHF6FA7_cjs.h(c.from);r.has(u)||s.has(u)||(s.add(u),i.push(c));}let a=$(n.map(l=>l.supportedFamilies));return Object.freeze({...a.length?{supportedFamilies:a}:{},epoch:e.epoch??0,maxFontBytes:e.maxFontBytes??chunkDOHF6FA7_cjs.a,sources:Object.freeze(o),...i.length>0?{substitutions:Object.freeze(i)}:{},defaultFont:e.defaultFont??re,...e.language!==void 0?{language:e.language}:{}})}var Ge=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function G(e){let t=e?.defaultFont?.family;return t!==void 0&&Ge.test(t)?t:re.family}var We="docx-editor.dev/font-resolver",ze=Symbol.for("docx-editor.dev/font-resolver");function Lt(e){let t={value:true,enumerable:false,configurable:true};try{Object.defineProperty(e,ze,t),Object.defineProperty(e,We,t);}catch(n){throw new TypeError("defineFontResolver cannot mark a frozen or sealed function; mark it before freezing, or wrap it in a fresh function and mark that.",{cause:n})}return e}function It(e){return typeof e=="function"&&e[ze]===true}var se=class extends RangeError{constructor(n,o,r){super(`Font source ${n.family} (${o} bytes) exceeds the shaping byte ceiling (${r} bytes)`);this.request=n;}request},ae=class extends AggregateError{causes;constructor(t){let n=Object.freeze(t.slice(0,chunkDOHF6FA7_cjs.b*2));super(n,`Font origin rejected all ${n.length} face and substitution candidates`),this.causes=n;}},J=e=>`${e.family.trim().toLowerCase()} ${e.weight} ${e.style}`;function Je(e,t,n){let o=new Map(e.map(r=>[J(r),r]));for(let[r,i]of t)o.set(r,i);for(let r of n)o.has(J(r.to))&&o.set(J(r.from),r.from);return [...o.values()]}async function Pt(e,t,n={}){return je(e,t,n)}async function Bt(e,t,n={}){return je(e,t,n)}async function je(e,t,n){let o=n.maxExecutionFontBytes??chunkDOHF6FA7_cjs.a;if(!Number.isSafeInteger(o)||o<=0||o>chunkDOHF6FA7_cjs.a)throw new RangeError("Font execution byte ceiling is outside the supported range");let r=e.map(Qe),i,s=[],a=[],l=new Map,c=new Set,u=0,d=[],m=new Set,y=[],p=t.resolvedFaces??[],F=t.defaultFamily;for(let w=0;w<e.length;w+=1){Ue(t.signal);let R=e[w],A=Je(p,l,d),B;try{let S=r[w],T;if(S){let f=await qe(S,t.signal);if(!f.ok)throw f.cause;T=f.value;}else if(typeof R=="function"){let f=await qe(Promise.resolve(R(tt(t,F,A,u))).then(g=>({ok:!0,value:g}),g=>({ok:!1,cause:g})),t.signal);if(!f.ok)throw f.cause;T=f.value;}else T=R;if(T==null)continue;if(typeof T=="function"){W(n,R,w,new TypeError("A font origin answered with a function; pass the resolver itself rather than a function returning one"));continue}let _="failures"in T?T.failures:void 0,D=[];if(Array.isArray(_)){let f=Math.min(_.length,chunkDOHF6FA7_cjs.b);for(let g=0;g<f;g++)D.push(_[g]);_.length>f&&D.push(new Error("Additional font-origin failures were omitted"));}else _!==void 0&&D.push(_);let M;try{M=Ze(T,c,u,m,i?"maxFontBytes"in i&&i.maxFontBytes!==void 0?i.maxFontBytes:chunkDOHF6FA7_cjs.a:void 0,n.reserveOwnedBytes,n.instrumentation,o);}catch(f){for(let g of new Set(D))W(n,R,w,g);throw f}B=M;for(let f of new Set([...M.dropped,...D]))W(n,R,w,f);let v=M.fragment;v.supportedFamilies&&s.push(v.supportedFamilies),y.push(...D);let X=(v.sources??[]).map(f=>(chunkDOHF6FA7_cjs.h(f.request),[J(f.request),f.request])),b=[...v.substitutions??[]];!i&&"defaultFont"in v&&(F=G(v)),i||(i=v);let x=new Set(M.sourceKeys);if(x.size>0){d=d.filter(f=>!x.has(chunkDOHF6FA7_cjs.h(f.from)));for(let f of x)m.delete(f);}a.push(...v.sources??[]);for(let f of M.sourceKeys)c.add(f);u+=M.ownedBytes;for(let[f,g]of X)l.set(f,g);for(let f of b)d.push(f),m.add(chunkDOHF6FA7_cjs.h(f.from));}catch(S){if(B?.releaseOwnedBytes?.(),t.signal?.aborted)throw t.signal.reason??S;if(S instanceof Q)throw S.cause;W(n,R,w,S);continue}}if(!i)return;let{epoch:E,...P}=Y({...i,supportedFamilies:$(s),sources:a,substitutions:d});return y.length===0?P:{...P,failures:Object.freeze(y)}}var Q=class extends Error{constructor(n){super("Unable to reserve owned font bytes");this.cause=n;this.name="FontOwnershipReservationError";}cause},Z=class extends RangeError{};async function qe(e,t){if(!t)return e;Ue(t);let n,o=new Promise((i,s)=>{n=s;}),r=()=>n?.(t.reason);t.addEventListener("abort",r,{once:true});try{return await Promise.race([e,o])}finally{t.removeEventListener("abort",r);}}function Qe(e){if(e===null||typeof e!="object")return;let t;try{t=e.then;}catch(n){return Promise.resolve({ok:false,cause:n})}if(typeof t=="function")return Promise.resolve(e).then(n=>({ok:true,value:n}),n=>({ok:false,cause:n}))}function Ze(e,t,n,o,r,i,s,a=chunkDOHF6FA7_cjs.a){let l=e.sources??[],c=e.substitutions??[],u="maxFontBytes"in e?e.maxFontBytes:void 0,d="defaultFont"in e?e.defaultFont:void 0,m="epoch"in e?e.epoch:void 0,y="language"in e?e.language:void 0;if(!Array.isArray(l)||!Array.isArray(c))throw new TypeError("Font origin sources and substitutions must be arrays");let p=l.length,F=c.length;if(p>chunkDOHF6FA7_cjs.b)throw new RangeError(`Font source count must not exceed ${chunkDOHF6FA7_cjs.b}`);if(F>chunkDOHF6FA7_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkDOHF6FA7_cjs.b}`);let E=u??chunkDOHF6FA7_cjs.a;if(!Number.isSafeInteger(E)||E<=0||E>chunkDOHF6FA7_cjs.a)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${chunkDOHF6FA7_cjs.a}`);let P=Math.min(r??E,a),w=0,R=[],A=new Set,B=[],S=[];for(let b=0;b<p;b+=1){let x=l[b];try{let f=ie(x.request),g=chunkDOHF6FA7_cjs.h(f);if(t.has(g)||A.has(g))continue;let L=x.availability,O=x.faceIndex,q=x.hash,ne=x.id;if(L!==void 0&&L!=="available"&&L!=="forbidden")throw new TypeError("Font source availability must be available or forbidden");if(!Number.isSafeInteger(O)||O<0)throw new RangeError("Font face index must be a non-negative safe integer");if(typeof q!="string"||q.length===0)throw new TypeError("Font source hash must be a non-empty string");let V;if(L!=="forbidden"){if(typeof ne!="string"||ne.length===0)throw new TypeError("Font source id must be a non-empty string");V=x.bytes;let j=chunkDOHF6FA7_cjs.e(V);if(j>P)throw j<=(r??E)?new se(f,j,a):new RangeError(`Font source ${f.family} (${j} bytes) exceeds the effective base byte ceiling (${P} bytes)`);if(t.has(g)||A.has(g))continue;if(n+w+j>chunkDOHF6FA7_cjs.c)throw new RangeError(`Font sources exceed the aggregate byte ceiling of ${chunkDOHF6FA7_cjs.c}`);w+=j;}else V=new Uint8Array(0);if(t.has(g)||A.has(g))continue;if(t.size+A.size>=chunkDOHF6FA7_cjs.b)throw new Z(`Font source count must not exceed ${chunkDOHF6FA7_cjs.b}`);A.add(g),R.push(g),B.push(Object.freeze({request:f,id:ne,bytes:V,hash:q,faceIndex:O,...L?{availability:L}:{}}));}catch(f){if(f instanceof Z)throw f;S.push(f);}}let T=new Set,_=[];for(let b=0;b<F;b+=1){let x=c[b];try{let f=ie(x.from),g=ie(x.to);chunkDOHF6FA7_cjs.h(f),chunkDOHF6FA7_cjs.h(g);let L=x.lineMetrics,O=L?Object.freeze({heightEm:L.heightEm,baselineEm:L.baselineEm}):void 0;if(O&&(!Number.isFinite(O.heightEm)||!Number.isFinite(O.baselineEm)||O.heightEm<=0||O.heightEm>4||O.baselineEm<0||O.baselineEm>O.heightEm))throw new RangeError("Font substitution line metrics must fit within a bounded em box");let q=chunkDOHF6FA7_cjs.h(f);if(t.has(q)||A.has(q)||o.has(q)||T.has(q))continue;T.add(q),_.push(Object.freeze({from:f,to:g,...O?{lineMetrics:O}:{}}));}catch(f){S.push(f);}}if((p>0||F>0)&&B.length===0&&_.length===0&&S.length>0)throw S.length===1?S[0]:new ae(S);let D=o.size;for(let b of A)o.has(b)&&(D-=1);if(D+T.size>chunkDOHF6FA7_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkDOHF6FA7_cjs.b}`);let M;if(d!==void 0){let b=d.family,x=d.sizeHalfPoints;if(chunkDOHF6FA7_cjs.h({family:b,weight:400,style:"normal"}),!Number.isSafeInteger(x)||x<=0)throw new RangeError("Default font size must be a positive safe integer in half-points");M=Object.freeze({family:b,sizeHalfPoints:x});}if(m!==void 0&&(!Number.isSafeInteger(m)||m<0))throw new RangeError("Font configuration epoch must be a non-negative safe integer");if(y!==void 0&&typeof y!="string")throw new TypeError("Font shaping language must be a string");let v;if(w>0&&i)try{v=i(w);}catch(b){throw new Q(b)}let X;try{X=B.map(b=>chunkDOHF6FA7_cjs.f(b,s));}catch(b){throw v?.(),b}return {fragment:Object.freeze({supportedFamilies:$([e.supportedFamilies]),sources:Object.freeze(X),substitutions:Object.freeze(_),...m!==void 0?{epoch:m}:{},...u!==void 0?{maxFontBytes:u}:{},...M?{defaultFont:M}:{},...y!==void 0?{language:y}:{}}),sourceKeys:Object.freeze(R),ownedBytes:w,dropped:Object.freeze(S),releaseOwnedBytes:v}}function et(e){return !Number.isSafeInteger(e)||e<=0?0:e>chunkDOHF6FA7_cjs.c?chunkDOHF6FA7_cjs.c:e}function tt(e,t,n,o){let{committedSourceBytes:r,...i}=e,s=et(o);return {...i,defaultFamily:t,...n.length>0?{resolvedFaces:n}:{},...s>0?{committedSourceBytes:s}:{}}}function ie(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}function Ue(e){if(e?.aborted)throw e.reason??new DOMException("Font resolution was aborted","AbortError")}function W(e,t,n,o){let r;try{typeof t=="function"&&t.name.length>0&&(r=t.name);}catch{}try{o instanceof Error&&o.stack;}catch{}let i=Object.freeze({originIndex:n,...r!==void 0?{originName:r}:{},cause:o});if(e.onOriginFailure)try{let a=e.onOriginFailure(i);Promise.resolve(a).catch(l=>{console.warn("[fonts] font-origin diagnostic callback failed",l);});return}catch(a){console.warn("[fonts] font-origin diagnostic callback failed",a);}let s="";try{o instanceof Error&&o.message.length>0&&(s=`: ${o.message}`);}catch{}console.warn(`[fonts] a font origin failed and was skipped${s}`,o);}var nt=256,ot=Object.freeze([]);function ee(e){let t=new WeakMap;return (n,o)=>{let r=new Set;for(let i of n){let s=[{node:i,context:o,next:0}],a=l=>{s.pop();let c=s.at(-1)?.found??r;for(let u of l)c.add(u);};for(;s.length;){let l=s[s.length-1],c=t.get(l.node);if(c?.key===l.context.key){a(c.families);continue}if(!l.children){let m=e(l.node,l.context);l.children=m.children,l.found=new Set(m.families);}let u=l.children[l.next++];if(u){s.push({...u,next:0});continue}let d=l.found.size===0?ot:[...l.found];d.length<=nt&&chunkOSFOJTHU_cjs.rb(l.node)?t.set(l.node,{key:l.context.key,families:d}):t.delete(l.node),a(d);}}return [...r]}}function te(e,t){return e.children.flatMap(n=>n.kind==="textValue"?[]:[{node:n,context:t}])}var $e=new WeakMap,rt=4096;function Xe(e,t){let n=`${e.baseKey}|${e.depth+1}|${JSON.stringify(t)}`,o=$e.get(e);o||$e.set(e,o=new Map);let r=o.get(n);if(r)return r;let i={...e,depth:e.depth+1,cellStyle:t,key:n};return o.size<rt&&o.set(n,i),i}function it(e,t){let{styles:n,theme:o,supplementalFamilies:r,depth:i}=t;if(e.kind==="table"){let l=chunkDOHF6FA7_cjs.Ud(e,468,i,n),c=[];for(let u of l?.rows??[])for(let d of u.cells){let m=Xe(t,d.styleFormatting);for(let y of d.blocks)c.push({node:y,context:m});}return {children:c.reverse()}}let s=new Set;if(e.kind==="paragraph"){let l=e.children.find(u=>u.kind==="paragraphProperties"),c=chunkDOHF6FA7_cjs.id(n,l,t.cellStyle).runProperties;for(let u of chunkDOHF6FA7_cjs.ic(e,c,void 0,(d,m)=>chunkDOHF6FA7_cjs.ld(d,m,n),void 0,void 0,"all-markup",void 0,void 0,o)){if(!u.text||u.fontSlot!=="eastAsia"&&!r.has(u.style.fontFamily??""))continue;let d=chunkBY2ACZZ6_cjs.b((u.fontSlot==="eastAsia"?u.style.fontFamilyEastAsia:u.style.fontFamily)??void 0);d&&s.add(d);}}let a=e.localName==="txbxContent"?{...t,cellStyle:void 0,key:`${t.baseKey}|${i}|undefined`}:t;return {families:[...s],children:te(e,a).reverse()}}function st(){let e=ee(it),t,n,o=(i,s)=>{if(!t||n!==i||t.theme!==s){let a=chunkDOHF6FA7_cjs.hd(i,s);n=i,t={key:`${a.cacheToken}|0|undefined`,baseKey:a.cacheToken,styles:a,theme:s,depth:0,supplementalFamilies:new Set([...Object.values(s.majorSupplemental??{}),...Object.values(s.minorSupplemental??{})])};}return t};return Object.assign((i,s,a)=>e([...i].reverse(),o(s,a)),{warmTableRows(i,s,a,l,c){let u=o(l,c),d=chunkDOHF6FA7_cjs.Ud(i,468,u.depth,u.styles)?.rows??[];for(let m of d.slice(s,a))for(let y of m.cells)e(y.blocks,Xe(u,y.styleFormatting));return d.length}})}function Ht(e,t,n){return st()(e,t,n)}function le(e,t){return e.attributes.find(n=>n.localName===t)?.value}var at=ee((e,t)=>{let n=[];if(e.namespaceUri===chunkOSFOJTHU_cjs.la){if(e.localName==="fldSimple"){let o=chunkDOHF6FA7_cjs.Wc(le(e,"instr")??"")?.font;o&&n.push(o);}if(e.localName==="p")for(let o of lt(e))n.push(o);}return {families:n,children:te(e,t)}});function rn(e){let t=new Map;for(let n of at(e,{key:""})){let o=chunkBY2ACZZ6_cjs.b(n);o!==null&&!t.has(o.toLowerCase())&&t.set(o.toLowerCase(),o);}return [...t.values()]}function lt(e){let t=[],n=chunkDOHF6FA7_cjs.Vb(),o=[];for(let r=e.children.length-1;r>=0;r-=1){let i=e.children[r];i.kind!=="textValue"&&o.push({node:i,containerDepth:0});}for(;o.length>0;){let{node:r,containerDepth:i}=o.pop();if(i>=chunkOSFOJTHU_cjs.wa||r.namespaceUri===chunkOSFOJTHU_cjs.la&&r.localName==="p")continue;if(r.namespaceUri===chunkOSFOJTHU_cjs.la&&r.localName==="fldChar"){let a=le(r,"fldCharType");a==="begin"?chunkDOHF6FA7_cjs.Yb(n):a==="separate"?(n.nesting===1&&Ve(n,t),chunkDOHF6FA7_cjs._b(n)):a==="end"&&(n.nesting===1&&Ve(n,t),chunkDOHF6FA7_cjs.$b(n));continue}if(r.namespaceUri===chunkOSFOJTHU_cjs.la&&(r.localName==="instrText"||r.localName==="delInstrText")){chunkDOHF6FA7_cjs.Zb(n,ut(r),r.localName==="delInstrText");continue}if(r.namespaceUri===chunkOSFOJTHU_cjs.la&&r.localName==="fldSimple"){let a=chunkDOHF6FA7_cjs.Wc(le(r,"instr")??"");a?.font&&t.push(a.font);}let s=chunkOSFOJTHU_cjs.xa(r,i);for(let a=r.children.length-1;a>=0;a-=1){let l=r.children[a];l.kind!=="textValue"&&o.push({node:l,containerDepth:s});}}return chunkDOHF6FA7_cjs.Wb(n),t}function Ve(e,t){let n=chunkDOHF6FA7_cjs.Xb(e);if(n.overflow)return;let o=chunkDOHF6FA7_cjs.Wc(n.instruction);o?.font&&t.push(o.font);}function ut(e){let t="",n=[...e.children].reverse();for(;n.length>0&&t.length<=256;){let o=n.pop();if(o.kind==="textValue")t+=o.value;else for(let r=o.children.length-1;r>=0;r-=1)n.push(o.children[r]);}return t}var ct=()=>true,ft=/[ᄀ-ᇿ⺀-鿿ꥠ-꥿가-퟿豈-﫿︰-﹏＀-￯]/u;function sn(e,t,n,o){if(!t)return [];let r=chunkDOHF6FA7_cjs.lc(t),i=chunkDOHF6FA7_cjs.hd(n,o),s=new Map;for(let a of e)for(let l of dt(a)){let c=chunkOSFOJTHU_cjs.Yc(l.children),u=d=>{if(d)for(let m of d.values()){let y=m.markerText===void 0||ft.test(m.markerText);for(let p of [m.markerStyle.fontFamily,y?m.markerStyle.fontFamilyEastAsia:null]){let F=chunkBY2ACZZ6_cjs.b(p??void 0);if(F===null)continue;let E=F.toLowerCase();s.has(E)||s.set(E,F);}}};u(chunkDOHF6FA7_cjs.yc(c,r,i,ct));for(let d of c){let m=chunkDOHF6FA7_cjs.We(d);for(let y of m.contents)u(chunkDOHF6FA7_cjs.Ve(y,r,i));}}return [...s.values()].sort((a,l)=>a.localeCompare(l))}function dt(e){if(e.localName==="document"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="body")return [t];return []}if(e.localName==="footnotes"||e.localName==="endnotes"){let t=[];for(let n of e.children)n.kind!=="textValue"&&(n.localName==="footnote"||n.localName==="endnote")&&t.push(n);return t}return [e]}var mt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",yt=256,gt=31;function ue(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===chunkOSFOJTHU_cjs.la}function He(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkOSFOJTHU_cjs.la)?.value}function Ke(e){let t=(e.relationships.get(e.mainDocumentPart)??[]).find(a=>a.type===mt),n=t?chunkOSFOJTHU_cjs.J(t):void 0,r=((n?.mode==="Internal"&&n.target.ok?e.parts.get(n.target.partName):void 0)??e.parts.get("/word/fontTable.xml"))?.root,i=new Map;if(!r||!ue(r,"fonts"))return i;let s=0;for(let a of r.children){if(!ue(a,"font"))continue;if(++s>yt)break;let l=chunkBY2ACZZ6_cjs.a(He(a,"name"));if(!l)continue;let c=a.children.find(y=>ue(y,"altName")),u=c&&c.kind!=="textValue"?He(c,"val"):void 0,d=u!==void 0&&u.length<=gt?chunkBY2ACZZ6_cjs.a(u):null,m=l.trim().toLowerCase();d&&!i.has(m)&&i.set(m,d);}return i}function En(e,t,n){let o=new Set;for(let r of e.substitutions??[]){let i=r.from.family.trim().toLowerCase(),s=r.to.family.trim().toLowerCase(),a=[t.alternates.get(i),t.fallbacks.get(i)].some(l=>l?.trim().toLowerCase()===s);s!==i&&a&&!(n.resolve(r.from)instanceof chunkDOHF6FA7_cjs.d)&&o.add(r.from.family.toLowerCase());}return o}function pt(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkOSFOJTHU_cjs.la)?.value}var Ft=new Set(["document","hdr","ftr","footnotes","endnotes","comments","styles","numbering","glossaryDocument"]),ht=new Set(["t","delText","instrText","delInstrText"]),bt=2e6;function xt(e,t){let n=e.stylesRoot(),o=e.documentThemeFonts(),r=[...chunkDOHF6FA7_cjs.w(n),...n?chunkDOHF6FA7_cjs.Hb(n).run:[]],i=chunkDOHF6FA7_cjs.aa(r,o),s=chunkBY2ACZZ6_cjs.a(i.fontFamily??void 0)??t,a=chunkBY2ACZZ6_cjs.a(chunkDOHF6FA7_cjs.Jb([{text:"\xE9",props:r,style:i,start:0,end:1}],o)[0]?.style.fontFamily??void 0)??s,l=chunkBY2ACZZ6_cjs.a(i.fontFamilyEastAsia??void 0),c=chunkBY2ACZZ6_cjs.a(i.complexLane?.fontFamily??void 0)??o.minorBidi??t,u=new Map,d=0;for(let p of e.currentPackage().parts.values()){if(p.root.namespaceUri!==chunkOSFOJTHU_cjs.la||!Ft.has(p.root.localName))continue;let F=[p.root];for(;F.length>0&&d<bt;){d++;let E=F.pop();if(E.kind!=="textValue"){if(E.namespaceUri===chunkOSFOJTHU_cjs.la){if(ht.has(E.localName))continue;if(E.localName==="rFonts"){for(let[P,w]of [["ascii",s],["hAnsi",a],["eastAsia",l],["cs",c]]){let R=chunkBY2ACZZ6_cjs.a(pt(E,P));if(!R||!w)continue;let A=R.trim().toLowerCase(),B=u.get(A)??new Set;B.add(w),u.set(A,B);}continue}}for(let P of E.children)F.push(P);}}}for(let p of chunkOSFOJTHU_cjs.a)u.delete(p);let m=new Map,y=[];for(let[p,F]of u)F.size===1?m.set(p,[...F][0]):y.push(p);return {fallbacks:m,ambiguousFamilies:y,defaults:new Map([...u].map(([p,F])=>[p,[...F]]))}}function wt(e,t,n=[],o="Calibri"){let r=Ke(e.currentPackage()),i=xt(e,o),s=t.flatMap(c=>{let u=r.get(c.trim().toLowerCase());return u?[u]:[]}),a=new Map,l=t.flatMap(c=>i.defaults.get(c.trim().toLowerCase())??[]).filter(c=>c.trim().toLowerCase()!==o.trim().toLowerCase());for(let c of [...t,...s,...n,...l]){let u=chunkBY2ACZZ6_cjs.a(c);if(u&&!a.has(u.trim().toLowerCase())&&a.set(u.trim().toLowerCase(),u),a.size===De)break}return {families:[...a.values()],alternates:r,fallbacks:i.fallbacks,ambiguousFamilies:i.ambiguousFamilies}}function Sn(e,t,n){let o=G(n),r=wt(e,t,[],o);return {plan:r,request:{families:r.families,defaultFamily:o}}}function On(e,t,n=t.fallbacks){let o=new Map(e.sources.map(a=>[chunkDOHF6FA7_cjs.h(a.request),a.request])),r=[],i=new Set((e.substitutions??[]).map(a=>chunkDOHF6FA7_cjs.h(a.from))),s=Math.max(0,chunkDOHF6FA7_cjs.b-i.size);for(let a of t.families){let l=a.trim().toLowerCase(),c=t.alternates.get(l),u=n.get(l);for(let d of [400,700])for(let m of ["normal","italic"]){let y={family:a,weight:d,style:m};if(!o.has(chunkDOHF6FA7_cjs.h(y)))for(let p of [c,u]){if(!p||p.trim().toLowerCase()===l)continue;let F=o.get(chunkDOHF6FA7_cjs.h({family:p,weight:d,style:m}));if(F){if(!i.has(chunkDOHF6FA7_cjs.h(y))){if(s===0)break;s--;}r.push({from:y,to:F});break}}}}return Y({...e,substitutions:[...r,...e.substitutions??[]]})}var Et={regular:{weight:400,style:"normal"},bold:{weight:700,style:"normal"},italic:{weight:400,style:"italic"},boldItalic:{weight:700,style:"italic"}};function kn(e,t){let n=[],o=[],r=0;for(let i of e){let s=i.bytes.byteLength;if(!Number.isSafeInteger(s)||s>t||s>chunkDOHF6FA7_cjs.a||s>chunkDOHF6FA7_cjs.c-r){o.push(i);continue}r+=s,n.push(i);}return {sources:n,dropped:o}}function An(e,t,n){let o=t.reduce((i,s)=>i+s.bytes.byteLength,0),r=new Set(t.filter(i=>i.request.family.trim().length>0).map(i=>chunkDOHF6FA7_cjs.h(i.request)));return St(e,{maxFontBytes:n,aggregateBudget:Math.max(0,chunkDOHF6FA7_cjs.c-o),shadowedRequests:r})}function St(e,t){let n=[],o=[],r=t.aggregateBudget,i=new Set;for(let s of e){let a=Et[s.style],l=Object.freeze({family:s.family,weight:a.weight,style:a.style});if(s.family.trim().length===0){o.push({request:l,partName:s.partName,reason:"malformed"});continue}let c=chunkDOHF6FA7_cjs.h(l);if(!(t.shadowedRequests?.has(c)||i.has(c))){if(i.add(c),s.bytes.byteLength>t.maxFontBytes||s.bytes.byteLength>r){o.push({request:l,partName:s.partName,reason:"overLimit"});continue}r-=s.bytes.byteLength,n.push({request:l,id:`embedded:${s.partName}#${s.style}`,bytes:s.bytes,hash:chunkOSFOJTHU_cjs.f(s.bytes),faceIndex:0});}}return {sources:n,dropped:o}}
1
+ 'use strict';var chunkQFKGI242_cjs=require('./chunk-QFKGI242.cjs'),chunkFLBEJC6X_cjs=require('./chunk-FLBEJC6X.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');var Ye=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function $(e){let t=new Map;for(let n of e)if(Array.isArray(n)){for(let o of n.slice(0,2048)){if(typeof o!="string"||!Ye.test(o))continue;let r=o.toLowerCase();if(t.has(r)||t.set(r,o),t.size===2048)break}if(t.size===2048)break}return Object.freeze([...t.values()])}function kt(e){let t=e&&"failures"in e?e.failures:void 0;return e==null||(e.sources?.length??0)===0&&(e.substitutions?.length??0)===0&&(t===void 0||Array.isArray(t)&&t.length===0)?void 0:e}var De=64,re=Object.freeze({family:"Calibri",sizeHalfPoints:22}),At=re;function Y(e,...t){let n=[e,...t],o=[],r=new Set;for(let l of n)for(let c of l.sources??[]){let u=chunkQFKGI242_cjs.h(c.request);r.has(u)||(r.add(u),o.push(c));}let i=[],s=new Set;for(let l of n)for(let c of l.substitutions??[]){let u=chunkQFKGI242_cjs.h(c.from);r.has(u)||s.has(u)||(s.add(u),i.push(c));}let a=$(n.map(l=>l.supportedFamilies));return Object.freeze({...a.length?{supportedFamilies:a}:{},epoch:e.epoch??0,maxFontBytes:e.maxFontBytes??chunkQFKGI242_cjs.a,sources:Object.freeze(o),...i.length>0?{substitutions:Object.freeze(i)}:{},defaultFont:e.defaultFont??re,...e.language!==void 0?{language:e.language}:{}})}var Ge=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function G(e){let t=e?.defaultFont?.family;return t!==void 0&&Ge.test(t)?t:re.family}var We="docx-editor.dev/font-resolver",ze=Symbol.for("docx-editor.dev/font-resolver");function Lt(e){let t={value:true,enumerable:false,configurable:true};try{Object.defineProperty(e,ze,t),Object.defineProperty(e,We,t);}catch(n){throw new TypeError("defineFontResolver cannot mark a frozen or sealed function; mark it before freezing, or wrap it in a fresh function and mark that.",{cause:n})}return e}function It(e){return typeof e=="function"&&e[ze]===true}var se=class extends RangeError{constructor(n,o,r){super(`Font source ${n.family} (${o} bytes) exceeds the shaping byte ceiling (${r} bytes)`);this.request=n;}request},ae=class extends AggregateError{causes;constructor(t){let n=Object.freeze(t.slice(0,chunkQFKGI242_cjs.b*2));super(n,`Font origin rejected all ${n.length} face and substitution candidates`),this.causes=n;}},J=e=>`${e.family.trim().toLowerCase()} ${e.weight} ${e.style}`;function Je(e,t,n){let o=new Map(e.map(r=>[J(r),r]));for(let[r,i]of t)o.set(r,i);for(let r of n)o.has(J(r.to))&&o.set(J(r.from),r.from);return [...o.values()]}async function Pt(e,t,n={}){return je(e,t,n)}async function Bt(e,t,n={}){return je(e,t,n)}async function je(e,t,n){let o=n.maxExecutionFontBytes??chunkQFKGI242_cjs.a;if(!Number.isSafeInteger(o)||o<=0||o>chunkQFKGI242_cjs.a)throw new RangeError("Font execution byte ceiling is outside the supported range");let r=e.map(Qe),i,s=[],a=[],l=new Map,c=new Set,u=0,d=[],m=new Set,y=[],p=t.resolvedFaces??[],F=t.defaultFamily;for(let w=0;w<e.length;w+=1){Ue(t.signal);let R=e[w],A=Je(p,l,d),B;try{let S=r[w],T;if(S){let f=await qe(S,t.signal);if(!f.ok)throw f.cause;T=f.value;}else if(typeof R=="function"){let f=await qe(Promise.resolve(R(tt(t,F,A,u))).then(g=>({ok:!0,value:g}),g=>({ok:!1,cause:g})),t.signal);if(!f.ok)throw f.cause;T=f.value;}else T=R;if(T==null)continue;if(typeof T=="function"){W(n,R,w,new TypeError("A font origin answered with a function; pass the resolver itself rather than a function returning one"));continue}let _="failures"in T?T.failures:void 0,D=[];if(Array.isArray(_)){let f=Math.min(_.length,chunkQFKGI242_cjs.b);for(let g=0;g<f;g++)D.push(_[g]);_.length>f&&D.push(new Error("Additional font-origin failures were omitted"));}else _!==void 0&&D.push(_);let M;try{M=Ze(T,c,u,m,i?"maxFontBytes"in i&&i.maxFontBytes!==void 0?i.maxFontBytes:chunkQFKGI242_cjs.a:void 0,n.reserveOwnedBytes,n.instrumentation,o);}catch(f){for(let g of new Set(D))W(n,R,w,g);throw f}B=M;for(let f of new Set([...M.dropped,...D]))W(n,R,w,f);let v=M.fragment;v.supportedFamilies&&s.push(v.supportedFamilies),y.push(...D);let X=(v.sources??[]).map(f=>(chunkQFKGI242_cjs.h(f.request),[J(f.request),f.request])),b=[...v.substitutions??[]];!i&&"defaultFont"in v&&(F=G(v)),i||(i=v);let x=new Set(M.sourceKeys);if(x.size>0){d=d.filter(f=>!x.has(chunkQFKGI242_cjs.h(f.from)));for(let f of x)m.delete(f);}a.push(...v.sources??[]);for(let f of M.sourceKeys)c.add(f);u+=M.ownedBytes;for(let[f,g]of X)l.set(f,g);for(let f of b)d.push(f),m.add(chunkQFKGI242_cjs.h(f.from));}catch(S){if(B?.releaseOwnedBytes?.(),t.signal?.aborted)throw t.signal.reason??S;if(S instanceof Q)throw S.cause;W(n,R,w,S);continue}}if(!i)return;let{epoch:E,...P}=Y({...i,supportedFamilies:$(s),sources:a,substitutions:d});return y.length===0?P:{...P,failures:Object.freeze(y)}}var Q=class extends Error{constructor(n){super("Unable to reserve owned font bytes");this.cause=n;this.name="FontOwnershipReservationError";}cause},Z=class extends RangeError{};async function qe(e,t){if(!t)return e;Ue(t);let n,o=new Promise((i,s)=>{n=s;}),r=()=>n?.(t.reason);t.addEventListener("abort",r,{once:true});try{return await Promise.race([e,o])}finally{t.removeEventListener("abort",r);}}function Qe(e){if(e===null||typeof e!="object")return;let t;try{t=e.then;}catch(n){return Promise.resolve({ok:false,cause:n})}if(typeof t=="function")return Promise.resolve(e).then(n=>({ok:true,value:n}),n=>({ok:false,cause:n}))}function Ze(e,t,n,o,r,i,s,a=chunkQFKGI242_cjs.a){let l=e.sources??[],c=e.substitutions??[],u="maxFontBytes"in e?e.maxFontBytes:void 0,d="defaultFont"in e?e.defaultFont:void 0,m="epoch"in e?e.epoch:void 0,y="language"in e?e.language:void 0;if(!Array.isArray(l)||!Array.isArray(c))throw new TypeError("Font origin sources and substitutions must be arrays");let p=l.length,F=c.length;if(p>chunkQFKGI242_cjs.b)throw new RangeError(`Font source count must not exceed ${chunkQFKGI242_cjs.b}`);if(F>chunkQFKGI242_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkQFKGI242_cjs.b}`);let E=u??chunkQFKGI242_cjs.a;if(!Number.isSafeInteger(E)||E<=0||E>chunkQFKGI242_cjs.a)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${chunkQFKGI242_cjs.a}`);let P=Math.min(r??E,a),w=0,R=[],A=new Set,B=[],S=[];for(let b=0;b<p;b+=1){let x=l[b];try{let f=ie(x.request),g=chunkQFKGI242_cjs.h(f);if(t.has(g)||A.has(g))continue;let L=x.availability,O=x.faceIndex,q=x.hash,ne=x.id;if(L!==void 0&&L!=="available"&&L!=="forbidden")throw new TypeError("Font source availability must be available or forbidden");if(!Number.isSafeInteger(O)||O<0)throw new RangeError("Font face index must be a non-negative safe integer");if(typeof q!="string"||q.length===0)throw new TypeError("Font source hash must be a non-empty string");let V;if(L!=="forbidden"){if(typeof ne!="string"||ne.length===0)throw new TypeError("Font source id must be a non-empty string");V=x.bytes;let j=chunkQFKGI242_cjs.e(V);if(j>P)throw j<=(r??E)?new se(f,j,a):new RangeError(`Font source ${f.family} (${j} bytes) exceeds the effective base byte ceiling (${P} bytes)`);if(t.has(g)||A.has(g))continue;if(n+w+j>chunkQFKGI242_cjs.c)throw new RangeError(`Font sources exceed the aggregate byte ceiling of ${chunkQFKGI242_cjs.c}`);w+=j;}else V=new Uint8Array(0);if(t.has(g)||A.has(g))continue;if(t.size+A.size>=chunkQFKGI242_cjs.b)throw new Z(`Font source count must not exceed ${chunkQFKGI242_cjs.b}`);A.add(g),R.push(g),B.push(Object.freeze({request:f,id:ne,bytes:V,hash:q,faceIndex:O,...L?{availability:L}:{}}));}catch(f){if(f instanceof Z)throw f;S.push(f);}}let T=new Set,_=[];for(let b=0;b<F;b+=1){let x=c[b];try{let f=ie(x.from),g=ie(x.to);chunkQFKGI242_cjs.h(f),chunkQFKGI242_cjs.h(g);let L=x.lineMetrics,O=L?Object.freeze({heightEm:L.heightEm,baselineEm:L.baselineEm}):void 0;if(O&&(!Number.isFinite(O.heightEm)||!Number.isFinite(O.baselineEm)||O.heightEm<=0||O.heightEm>4||O.baselineEm<0||O.baselineEm>O.heightEm))throw new RangeError("Font substitution line metrics must fit within a bounded em box");let q=chunkQFKGI242_cjs.h(f);if(t.has(q)||A.has(q)||o.has(q)||T.has(q))continue;T.add(q),_.push(Object.freeze({from:f,to:g,...O?{lineMetrics:O}:{}}));}catch(f){S.push(f);}}if((p>0||F>0)&&B.length===0&&_.length===0&&S.length>0)throw S.length===1?S[0]:new ae(S);let D=o.size;for(let b of A)o.has(b)&&(D-=1);if(D+T.size>chunkQFKGI242_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkQFKGI242_cjs.b}`);let M;if(d!==void 0){let b=d.family,x=d.sizeHalfPoints;if(chunkQFKGI242_cjs.h({family:b,weight:400,style:"normal"}),!Number.isSafeInteger(x)||x<=0)throw new RangeError("Default font size must be a positive safe integer in half-points");M=Object.freeze({family:b,sizeHalfPoints:x});}if(m!==void 0&&(!Number.isSafeInteger(m)||m<0))throw new RangeError("Font configuration epoch must be a non-negative safe integer");if(y!==void 0&&typeof y!="string")throw new TypeError("Font shaping language must be a string");let v;if(w>0&&i)try{v=i(w);}catch(b){throw new Q(b)}let X;try{X=B.map(b=>chunkQFKGI242_cjs.f(b,s));}catch(b){throw v?.(),b}return {fragment:Object.freeze({supportedFamilies:$([e.supportedFamilies]),sources:Object.freeze(X),substitutions:Object.freeze(_),...m!==void 0?{epoch:m}:{},...u!==void 0?{maxFontBytes:u}:{},...M?{defaultFont:M}:{},...y!==void 0?{language:y}:{}}),sourceKeys:Object.freeze(R),ownedBytes:w,dropped:Object.freeze(S),releaseOwnedBytes:v}}function et(e){return !Number.isSafeInteger(e)||e<=0?0:e>chunkQFKGI242_cjs.c?chunkQFKGI242_cjs.c:e}function tt(e,t,n,o){let{committedSourceBytes:r,...i}=e,s=et(o);return {...i,defaultFamily:t,...n.length>0?{resolvedFaces:n}:{},...s>0?{committedSourceBytes:s}:{}}}function ie(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}function Ue(e){if(e?.aborted)throw e.reason??new DOMException("Font resolution was aborted","AbortError")}function W(e,t,n,o){let r;try{typeof t=="function"&&t.name.length>0&&(r=t.name);}catch{}try{o instanceof Error&&o.stack;}catch{}let i=Object.freeze({originIndex:n,...r!==void 0?{originName:r}:{},cause:o});if(e.onOriginFailure)try{let a=e.onOriginFailure(i);Promise.resolve(a).catch(l=>{console.warn("[fonts] font-origin diagnostic callback failed",l);});return}catch(a){console.warn("[fonts] font-origin diagnostic callback failed",a);}let s="";try{o instanceof Error&&o.message.length>0&&(s=`: ${o.message}`);}catch{}console.warn(`[fonts] a font origin failed and was skipped${s}`,o);}var nt=256,ot=Object.freeze([]);function ee(e){let t=new WeakMap;return (n,o)=>{let r=new Set;for(let i of n){let s=[{node:i,context:o,next:0}],a=l=>{s.pop();let c=s.at(-1)?.found??r;for(let u of l)c.add(u);};for(;s.length;){let l=s[s.length-1],c=t.get(l.node);if(c?.key===l.context.key){a(c.families);continue}if(!l.children){let m=e(l.node,l.context);l.children=m.children,l.found=new Set(m.families);}let u=l.children[l.next++];if(u){s.push({...u,next:0});continue}let d=l.found.size===0?ot:[...l.found];d.length<=nt&&chunkPWTRJSES_cjs.rb(l.node)?t.set(l.node,{key:l.context.key,families:d}):t.delete(l.node),a(d);}}return [...r]}}function te(e,t){return e.children.flatMap(n=>n.kind==="textValue"?[]:[{node:n,context:t}])}var $e=new WeakMap,rt=4096;function Xe(e,t){let n=`${e.baseKey}|${e.depth+1}|${JSON.stringify(t)}`,o=$e.get(e);o||$e.set(e,o=new Map);let r=o.get(n);if(r)return r;let i={...e,depth:e.depth+1,cellStyle:t,key:n};return o.size<rt&&o.set(n,i),i}function it(e,t){let{styles:n,theme:o,supplementalFamilies:r,depth:i}=t;if(e.kind==="table"){let l=chunkQFKGI242_cjs.Vd(e,468,i,n),c=[];for(let u of l?.rows??[])for(let d of u.cells){let m=Xe(t,d.styleFormatting);for(let y of d.blocks)c.push({node:y,context:m});}return {children:c.reverse()}}let s=new Set;if(e.kind==="paragraph"){let l=e.children.find(u=>u.kind==="paragraphProperties"),c=chunkQFKGI242_cjs.jd(n,l,t.cellStyle).runProperties;for(let u of chunkQFKGI242_cjs.ic(e,c,void 0,(d,m)=>chunkQFKGI242_cjs.md(d,m,n),void 0,void 0,"all-markup",void 0,void 0,o)){if(!u.text||u.fontSlot!=="eastAsia"&&!r.has(u.style.fontFamily??""))continue;let d=chunkFLBEJC6X_cjs.b((u.fontSlot==="eastAsia"?u.style.fontFamilyEastAsia:u.style.fontFamily)??void 0);d&&s.add(d);}}let a=e.localName==="txbxContent"?{...t,cellStyle:void 0,key:`${t.baseKey}|${i}|undefined`}:t;return {families:[...s],children:te(e,a).reverse()}}function st(){let e=ee(it),t,n,o=(i,s)=>{if(!t||n!==i||t.theme!==s){let a=chunkQFKGI242_cjs.id(i,s);n=i,t={key:`${a.cacheToken}|0|undefined`,baseKey:a.cacheToken,styles:a,theme:s,depth:0,supplementalFamilies:new Set([...Object.values(s.majorSupplemental??{}),...Object.values(s.minorSupplemental??{})])};}return t};return Object.assign((i,s,a)=>e([...i].reverse(),o(s,a)),{warmTableRows(i,s,a,l,c){let u=o(l,c),d=chunkQFKGI242_cjs.Vd(i,468,u.depth,u.styles)?.rows??[];for(let m of d.slice(s,a))for(let y of m.cells)e(y.blocks,Xe(u,y.styleFormatting));return d.length}})}function Ht(e,t,n){return st()(e,t,n)}function le(e,t){return e.attributes.find(n=>n.localName===t)?.value}var at=ee((e,t)=>{let n=[];if(e.namespaceUri===chunkPWTRJSES_cjs.la){if(e.localName==="fldSimple"){let o=chunkQFKGI242_cjs.Wc(le(e,"instr")??"")?.font;o&&n.push(o);}if(e.localName==="p")for(let o of lt(e))n.push(o);}return {families:n,children:te(e,t)}});function rn(e){let t=new Map;for(let n of at(e,{key:""})){let o=chunkFLBEJC6X_cjs.b(n);o!==null&&!t.has(o.toLowerCase())&&t.set(o.toLowerCase(),o);}return [...t.values()]}function lt(e){let t=[],n=chunkQFKGI242_cjs.Vb(),o=[];for(let r=e.children.length-1;r>=0;r-=1){let i=e.children[r];i.kind!=="textValue"&&o.push({node:i,containerDepth:0});}for(;o.length>0;){let{node:r,containerDepth:i}=o.pop();if(i>=chunkPWTRJSES_cjs.wa||r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="p")continue;if(r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="fldChar"){let a=le(r,"fldCharType");a==="begin"?chunkQFKGI242_cjs.Yb(n):a==="separate"?(n.nesting===1&&Ve(n,t),chunkQFKGI242_cjs._b(n)):a==="end"&&(n.nesting===1&&Ve(n,t),chunkQFKGI242_cjs.$b(n));continue}if(r.namespaceUri===chunkPWTRJSES_cjs.la&&(r.localName==="instrText"||r.localName==="delInstrText")){chunkQFKGI242_cjs.Zb(n,ut(r),r.localName==="delInstrText");continue}if(r.namespaceUri===chunkPWTRJSES_cjs.la&&r.localName==="fldSimple"){let a=chunkQFKGI242_cjs.Wc(le(r,"instr")??"");a?.font&&t.push(a.font);}let s=chunkPWTRJSES_cjs.xa(r,i);for(let a=r.children.length-1;a>=0;a-=1){let l=r.children[a];l.kind!=="textValue"&&o.push({node:l,containerDepth:s});}}return chunkQFKGI242_cjs.Wb(n),t}function Ve(e,t){let n=chunkQFKGI242_cjs.Xb(e);if(n.overflow)return;let o=chunkQFKGI242_cjs.Wc(n.instruction);o?.font&&t.push(o.font);}function ut(e){let t="",n=[...e.children].reverse();for(;n.length>0&&t.length<=256;){let o=n.pop();if(o.kind==="textValue")t+=o.value;else for(let r=o.children.length-1;r>=0;r-=1)n.push(o.children[r]);}return t}var ct=()=>true,ft=/[ᄀ-ᇿ⺀-鿿ꥠ-꥿가-퟿豈-﫿︰-﹏＀-￯]/u;function sn(e,t,n,o){if(!t)return [];let r=chunkQFKGI242_cjs.lc(t),i=chunkQFKGI242_cjs.id(n,o),s=new Map;for(let a of e)for(let l of dt(a)){let c=chunkPWTRJSES_cjs.Yc(l.children),u=d=>{if(d)for(let m of d.values()){let y=m.markerText===void 0||ft.test(m.markerText);for(let p of [m.markerStyle.fontFamily,y?m.markerStyle.fontFamilyEastAsia:null]){let F=chunkFLBEJC6X_cjs.b(p??void 0);if(F===null)continue;let E=F.toLowerCase();s.has(E)||s.set(E,F);}}};u(chunkQFKGI242_cjs.yc(c,r,i,ct));for(let d of c){let m=chunkQFKGI242_cjs.Xe(d);for(let y of m.contents)u(chunkQFKGI242_cjs.We(y,r,i));}}return [...s.values()].sort((a,l)=>a.localeCompare(l))}function dt(e){if(e.localName==="document"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="body")return [t];return []}if(e.localName==="footnotes"||e.localName==="endnotes"){let t=[];for(let n of e.children)n.kind!=="textValue"&&(n.localName==="footnote"||n.localName==="endnote")&&t.push(n);return t}return [e]}var mt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",yt=256,gt=31;function ue(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===chunkPWTRJSES_cjs.la}function He(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkPWTRJSES_cjs.la)?.value}function Ke(e){let t=(e.relationships.get(e.mainDocumentPart)??[]).find(a=>a.type===mt),n=t?chunkPWTRJSES_cjs.J(t):void 0,r=((n?.mode==="Internal"&&n.target.ok?e.parts.get(n.target.partName):void 0)??e.parts.get("/word/fontTable.xml"))?.root,i=new Map;if(!r||!ue(r,"fonts"))return i;let s=0;for(let a of r.children){if(!ue(a,"font"))continue;if(++s>yt)break;let l=chunkFLBEJC6X_cjs.a(He(a,"name"));if(!l)continue;let c=a.children.find(y=>ue(y,"altName")),u=c&&c.kind!=="textValue"?He(c,"val"):void 0,d=u!==void 0&&u.length<=gt?chunkFLBEJC6X_cjs.a(u):null,m=l.trim().toLowerCase();d&&!i.has(m)&&i.set(m,d);}return i}function En(e,t,n){let o=new Set;for(let r of e.substitutions??[]){let i=r.from.family.trim().toLowerCase(),s=r.to.family.trim().toLowerCase(),a=[t.alternates.get(i),t.fallbacks.get(i)].some(l=>l?.trim().toLowerCase()===s);s!==i&&a&&!(n.resolve(r.from)instanceof chunkQFKGI242_cjs.d)&&o.add(r.from.family.toLowerCase());}return o}function pt(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkPWTRJSES_cjs.la)?.value}var Ft=new Set(["document","hdr","ftr","footnotes","endnotes","comments","styles","numbering","glossaryDocument"]),ht=new Set(["t","delText","instrText","delInstrText"]),bt=2e6;function xt(e,t){let n=e.stylesRoot(),o=e.documentThemeFonts(),r=[...chunkQFKGI242_cjs.w(n),...n?chunkQFKGI242_cjs.Hb(n).run:[]],i=chunkQFKGI242_cjs.aa(r,o),s=chunkFLBEJC6X_cjs.a(i.fontFamily??void 0)??t,a=chunkFLBEJC6X_cjs.a(chunkQFKGI242_cjs.Jb([{text:"\xE9",props:r,style:i,start:0,end:1}],o)[0]?.style.fontFamily??void 0)??s,l=chunkFLBEJC6X_cjs.a(i.fontFamilyEastAsia??void 0),c=chunkFLBEJC6X_cjs.a(i.complexLane?.fontFamily??void 0)??o.minorBidi??t,u=new Map,d=0;for(let p of e.currentPackage().parts.values()){if(p.root.namespaceUri!==chunkPWTRJSES_cjs.la||!Ft.has(p.root.localName))continue;let F=[p.root];for(;F.length>0&&d<bt;){d++;let E=F.pop();if(E.kind!=="textValue"){if(E.namespaceUri===chunkPWTRJSES_cjs.la){if(ht.has(E.localName))continue;if(E.localName==="rFonts"){for(let[P,w]of [["ascii",s],["hAnsi",a],["eastAsia",l],["cs",c]]){let R=chunkFLBEJC6X_cjs.a(pt(E,P));if(!R||!w)continue;let A=R.trim().toLowerCase(),B=u.get(A)??new Set;B.add(w),u.set(A,B);}continue}}for(let P of E.children)F.push(P);}}}for(let p of chunkPWTRJSES_cjs.a)u.delete(p);let m=new Map,y=[];for(let[p,F]of u)F.size===1?m.set(p,[...F][0]):y.push(p);return {fallbacks:m,ambiguousFamilies:y,defaults:new Map([...u].map(([p,F])=>[p,[...F]]))}}function wt(e,t,n=[],o="Calibri"){let r=Ke(e.currentPackage()),i=xt(e,o),s=t.flatMap(c=>{let u=r.get(c.trim().toLowerCase());return u?[u]:[]}),a=new Map,l=t.flatMap(c=>i.defaults.get(c.trim().toLowerCase())??[]).filter(c=>c.trim().toLowerCase()!==o.trim().toLowerCase());for(let c of [...t,...s,...n,...l]){let u=chunkFLBEJC6X_cjs.a(c);if(u&&!a.has(u.trim().toLowerCase())&&a.set(u.trim().toLowerCase(),u),a.size===De)break}return {families:[...a.values()],alternates:r,fallbacks:i.fallbacks,ambiguousFamilies:i.ambiguousFamilies}}function Sn(e,t,n){let o=G(n),r=wt(e,t,[],o);return {plan:r,request:{families:r.families,defaultFamily:o}}}function On(e,t,n=t.fallbacks){let o=new Map(e.sources.map(a=>[chunkQFKGI242_cjs.h(a.request),a.request])),r=[],i=new Set((e.substitutions??[]).map(a=>chunkQFKGI242_cjs.h(a.from))),s=Math.max(0,chunkQFKGI242_cjs.b-i.size);for(let a of t.families){let l=a.trim().toLowerCase(),c=t.alternates.get(l),u=n.get(l);for(let d of [400,700])for(let m of ["normal","italic"]){let y={family:a,weight:d,style:m};if(!o.has(chunkQFKGI242_cjs.h(y)))for(let p of [c,u]){if(!p||p.trim().toLowerCase()===l)continue;let F=o.get(chunkQFKGI242_cjs.h({family:p,weight:d,style:m}));if(F){if(!i.has(chunkQFKGI242_cjs.h(y))){if(s===0)break;s--;}r.push({from:y,to:F});break}}}}return Y({...e,substitutions:[...r,...e.substitutions??[]]})}var Et={regular:{weight:400,style:"normal"},bold:{weight:700,style:"normal"},italic:{weight:400,style:"italic"},boldItalic:{weight:700,style:"italic"}};function kn(e,t){let n=[],o=[],r=0;for(let i of e){let s=i.bytes.byteLength;if(!Number.isSafeInteger(s)||s>t||s>chunkQFKGI242_cjs.a||s>chunkQFKGI242_cjs.c-r){o.push(i);continue}r+=s,n.push(i);}return {sources:n,dropped:o}}function An(e,t,n){let o=t.reduce((i,s)=>i+s.bytes.byteLength,0),r=new Set(t.filter(i=>i.request.family.trim().length>0).map(i=>chunkQFKGI242_cjs.h(i.request)));return St(e,{maxFontBytes:n,aggregateBudget:Math.max(0,chunkQFKGI242_cjs.c-o),shadowedRequests:r})}function St(e,t){let n=[],o=[],r=t.aggregateBudget,i=new Set;for(let s of e){let a=Et[s.style],l=Object.freeze({family:s.family,weight:a.weight,style:a.style});if(s.family.trim().length===0){o.push({request:l,partName:s.partName,reason:"malformed"});continue}let c=chunkQFKGI242_cjs.h(l);if(!(t.shadowedRequests?.has(c)||i.has(c))){if(i.add(c),s.bytes.byteLength>t.maxFontBytes||s.bytes.byteLength>r){o.push({request:l,partName:s.partName,reason:"overLimit"});continue}r-=s.bytes.byteLength,n.push({request:l,id:`embedded:${s.partName}#${s.style}`,bytes:s.bytes,hash:chunkPWTRJSES_cjs.f(s.bytes),faceIndex:0});}}return {sources:n,dropped:o}}
2
2
  exports.A=kn;exports.B=An;exports.C=St;exports.a=$;exports.b=kt;exports.c=De;exports.d=re;exports.e=At;exports.f=Y;exports.g=G;exports.h=We;exports.i=ze;exports.j=Lt;exports.k=It;exports.l=se;exports.m=ae;exports.n=Pt;exports.o=Bt;exports.p=ee;exports.q=te;exports.r=st;exports.s=Ht;exports.t=rn;exports.u=lt;exports.v=sn;exports.w=En;exports.x=wt;exports.y=Sn;exports.z=On;
@@ -1 +1 @@
1
- 'use strict';var chunkT6K2QYNZ_cjs=require('./chunk-T6K2QYNZ.cjs'),chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');var mn=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function B(n){return n!==void 0&&n.trim().length>0&&mn.test(n)?n:null}var yn=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,hn=128,gn=/[\u0000-\u001F\u007F-\u009F]/,An=16,En=2,Sn=3276;function Q(n){return n.kind!=="textValue"}function R(n,e){for(let t of n.children)if(Q(t)&&t.localName===e)return t}function g(n,e){return n.attributes.find(t=>t.localName===e)?.value}function N(n){return n===void 0||n.length===0||n.length>hn||gn.test(n)?null:n}function v(n,e){let t=chunkT6K2QYNZ_cjs.Aa(g(n,"asciiTheme"),e)??g(n,"ascii")??chunkT6K2QYNZ_cjs.Aa(g(n,"hAnsiTheme"),e)??g(n,"hAnsi");return t===void 0?null:B(t)}function Y(n,e){let t=chunkT6K2QYNZ_cjs.Aa(g(n,"eastAsiaTheme"),e);if(t!==null)return t;let l=g(n,"eastAsia");return l===void 0?null:B(l)}function U(n,e){let t=chunkT6K2QYNZ_cjs.Aa(g(n,"hAnsiTheme"),e);if(t!==null)return t;let l=g(n,"hAnsi");return l===void 0?null:B(l)}function xn(n){return n!==void 0&&yn.test(n)?n:null}function Wn(n){return xn(n)}function On(n){return n!==void 0&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(e=>!!g(n,e))}function G(n,e){if(!n)return {fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};let t=R(n,"rFonts"),l=R(n,"sz"),a=l?g(l,"val"):void 0,i=a!==void 0&&/^\d{1,4}$/.test(a)?Number(a):null;return {fontFamily:t?v(t,e):null,hasLatinFontReference:On(t),fontSizeHalfPoints:i!==null&&i>=En&&i<=Sn?i:null}}function $n(n,e){let t=new Map,l={fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};if(n){let o=R(n,"docDefaults"),r=o?R(o,"rPrDefault"):void 0;l=G(r?R(r,"rPr"):void 0,e);for(let s of n.children){if(!Q(s)||s.localName!=="style")continue;let f=N(g(s,"styleId"));if(f===null||t.has(f))continue;let u=R(s,"basedOn");t.set(f,{basedOn:N(u?g(u,"val"):void 0),own:G(R(s,"rPr"),e)});}}let a=new Map,i=o=>{let r=o??"",s=a.get(r);if(s)return s;let f=null,u=null,y=l.hasLatinFontReference,h=new Set,x=o;for(let j=0;x!==null&&j<An&&!h.has(x);j+=1){h.add(x);let O=t.get(x);if(!O)break;f??=O.own.fontFamily,y||=O.own.hasLatinFontReference,u??=O.own.fontSizeHalfPoints,x=O.basedOn;}let L={hasLatinFontReference:y,fontFamily:f??l.fontFamily,fontSizeHalfPoints:u??l.fontSizeHalfPoints};return a.set(r,L),L};return (o,r)=>{let s=i(o),f=r?.find(h=>h.localName==="rFonts"),u=f?chunkT6K2QYNZ_cjs.Aa(f.attributes?.asciiTheme,e)??(f.attributes?.ascii===void 0?chunkT6K2QYNZ_cjs.Aa(f.attributes?.hAnsiTheme,e):null):null,y=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(h=>!!f?.attributes?.[h]);return {fontFamily:u??s.fontFamily??(!s.hasLatinFontReference&&!y?e.minor:null),fontSizeHalfPoints:s.fontSizeHalfPoints}}}var bn=16,Dn=16,pn=32,Fn=4096;function E(n){return n.kind!=="textValue"}function c(n,e){for(let t of n.children)if(E(t)&&t.localName===e)return t}function S(n,e){return n.attributes.find(t=>t.localName===e)?.value}function Rn(n){return n==="1"||n==="true"||n==="on"}function k(){return {profiles:new Map}}function an(n){return JSON.stringify([n.latin,n.eastAsia,n.hasEastAsian,n.hAnsi,n.hasHAnsi,n.hint,n.runStyle,n.paragraphStyle===void 0?0:n.paragraphStyle,n.tableStyle===void 0?0:n.tableStyle])}function on(n,e){let t=an(e);n.profiles.has(t)||n.profiles.set(t,e);}function W(n,e){for(let[t,l]of e.profiles)n.profiles.has(t)||n.profiles.set(t,l);}function Nn(n,e){let t=e.localName==="tbl",l=c(e,t?"tblPr":"pPr"),a=l?c(l,t?"tblStyle":"pStyle"):void 0,i=N(a?S(a,"val"):void 0),o=new Map;for(let r of n.profiles.values()){let s=t&&r.tableStyle===void 0?{...r,tableStyle:i}:!t&&r.paragraphStyle===void 0?{...r,paragraphStyle:i}:r;o.set(an(s),s);}n.profiles=o;}function m(n,e){if(e===null)return;let t=e.toLowerCase();n.has(t)||n.set(t,e);}var Tn=new Set(["tab","noBreakHyphen","softHyphen","footnoteRef","endnoteRef","footnoteReference","endnoteReference"]),Mn=128;function Pn(n){for(let e of n.attributes)if(e.localName==="font"&&!(e.namespaceUri!==chunkOSFOJTHU_cjs.la&&e.namespaceUri!==""))return e.value.length>0&&e.value.length<=Mn;return false}function Ln(n,e){if(e?.has(n.id))return true;for(let t of n.children)if(!(!E(t)||t.namespaceUri!==chunkOSFOJTHU_cjs.la)){if(Tn.has(t.localName))return true;if(t.localName==="sym"){if(!Pn(t))return true;continue}if(!(t.localName!=="t"&&t.localName!=="delText")){for(let l of t.children)if(!E(l)&&l.value.length>0)return true}}return false}function rn(n){return n>=4352&&n<=4607||n>=11904&&n<=40959||n>=43360&&n<=43391||n>=44032&&n<=55295||n>=63744&&n<=64255||n>=65072&&n<=65103||n>=65280&&n<=65519||n>=131072&&n<=262143}function Hn(n){return n>=160&&n<=65535&&!(n>=1424&&n<=1983)&&!(n>=64285&&n<=65023)&&!(n>=65136&&n<=65278)&&!rn(n)}function _n(n){let e=false,t=false;for(let l of n.children)if(!(!E(l)||l.namespaceUri!==chunkOSFOJTHU_cjs.la)&&!(l.localName!=="t"&&l.localName!=="delText")){for(let a of l.children)if(!E(a))for(let i of a.value){let o=i.codePointAt(0);if(!(o<128)&&(e||=rn(o),t||=Hn(o),e&&t))return {eastAsian:e,hAnsi:t}}}return {eastAsian:e,hAnsi:t}}function Cn(n,e,t,l){if(!Ln(n,l))return;let a=c(n,"rPr"),i=a?c(a,"rFonts"):void 0,o=_n(n),r=o.eastAsian,s=a?c(a,"rStyle"):void 0;on(e,{latin:i?v(i,t):null,eastAsia:i&&(r||o.hAnsi)?Y(i,t):null,hasEastAsian:r,hint:(i&&S(i,"hint"))??null,hAnsi:i&&o.hAnsi?U(i,t):null,hasHAnsi:o.hAnsi,runStyle:N(s?S(s,"val"):void 0)});}function In(n){return (n.localName==="p"||n.localName==="tbl")&&n.namespaceUri===chunkOSFOJTHU_cjs.la}var jn={latin:null,eastAsia:null,hasEastAsian:false,hAnsi:null,hasHAnsi:false,hint:null,runStyle:null};function sn(n,e,t,l){n.namespaceUri===chunkOSFOJTHU_cjs.la&&(l?.has(n.id)&&n.localName==="fldSimple"&&on(e,jn),n.localName==="r"?Cn(n,e,t,l):In(n)&&Nn(e,n));}function un(n,e,t){let l=[{node:n,summary:k(),next:0}];for(;;){let a=l[l.length-1],i=a.node.children;if(a.next<i.length){let r=i[a.next];a.next+=1,E(r)&&l.push({node:r,summary:k(),next:0});continue}sn(a.node,a.summary,e,t),l.pop();let o=l[l.length-1];if(!o)return a.summary;W(o.summary,a.summary);}}var nn=new WeakMap;function fn(n,e,t){let l=nn.get(n);if(l&&l.major===e.major&&l.minor===e.minor&&l.majorEastAsia===e.majorEastAsia&&l.minorEastAsia===e.minorEastAsia&&l.majorBidi===e.majorBidi&&l.minorBidi===e.minorBidi)return l.summary;let a;if(n.children.length>=Dn&&t<pn){a=k();for(let i of n.children)E(i)&&W(a,fn(i,e,t+1));sn(n,a,e);}else a=un(n,e);return nn.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,summary:a}),a}var z={latin:null,eastAsia:null,hAnsi:null,hint:null,conditional:[],conditionalEastAsia:[]},Bn={docDefaultLatin:null,docDefaultEastAsia:null,docDefaultHAnsi:null,docDefaultHint:null,docDefaultsNameLatin:false,hAnsiSlotDefault:null,fallbackEastAsia:null,defaultParagraph:null,defaultCharacter:null,defaultTable:null,chain:()=>z},en=new WeakMap;function X(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?v(l,e):null}function V(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?Y(l,e):null}function tn(n){let e=c(n,"rPr"),t=e?c(e,"rFonts"):void 0;return (t&&S(t,"hint"))??null}function ln(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?U(l,e):null}function vn(n,e){let t=new Map,l=null,a=null,i=null,o=null,r=null,s=null,f=c(n,"docDefaults"),u=f?c(f,"rPrDefault"):void 0;u&&(l=X(u,e),a=V(u,e),i=ln(u,e));let y=u?c(u,"rPr"):void 0,h=y?c(y,"rFonts"):void 0,x=h&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(d=>!!S(h,d)),L=u?chunkT6K2QYNZ_cjs.wa:e.minor;x||(l??=L);let j=u?chunkT6K2QYNZ_cjs.xa:e.minorEastAsia,O=0;for(let d of n.children){if(!E(d)||d.localName!=="style")continue;if(O>=Fn)break;O+=1;let A=N(S(d,"styleId"));if(A===null)continue;let H=c(d,"basedOn"),_=[],C=[];for(let p of d.children){if(!E(p)||p.localName!=="tblStylePr")continue;let I=X(p,e);I!==null&&_.push(I);let b=V(p,e);b!==null&&C.push(b);}t.set(A,{basedOn:N(H?S(H,"val"):void 0),family:X(d,e),eastAsiaFamily:V(d,e),hAnsiFamily:ln(d,e),hint:tn(d),conditionalFamilies:_,conditionalEastAsiaFamilies:C});let T=Rn(S(d,"default")),M=S(d,"type");M==="paragraph"?T?o=A:o===A&&(o=null):M==="character"?T?r=A:r===A&&(r=null):M==="table"&&(T?s=A:s===A&&(s=null));}let $=new Map,cn=d=>{if(d===null)return z;let A=$.get(d);if(A)return A;let H=null,_=null,C=null,T=null,M=[],p=[],I=new Set,b=d;for(let K=0;b!==null&&K<bn&&!I.has(b);K+=1){I.add(b);let D=t.get(b);if(!D)break;H??=D.family,_??=D.eastAsiaFamily,C??=D.hAnsiFamily,T??=D.hint;for(let w of D.conditionalFamilies)M.push(w);for(let w of D.conditionalEastAsiaFamilies)p.push(w);b=D.basedOn;}let J={latin:H,eastAsia:_,hAnsi:C,hint:T,conditional:M,conditionalEastAsia:p};return $.set(d,J),J};return {docDefaultLatin:l,docDefaultEastAsia:a,docDefaultHAnsi:i,docDefaultHint:u?tn(u):null,docDefaultsNameLatin:!!x,hAnsiSlotDefault:L,fallbackEastAsia:j,defaultParagraph:o,defaultCharacter:r,defaultTable:s,chain:cn}}function kn(n,e){if(!n)return {...Bn,docDefaultLatin:e.minor,hAnsiSlotDefault:e.minor,fallbackEastAsia:e.minorEastAsia};let t=en.get(n);if(t&&t.major===e.major&&t.minor===e.minor&&t.majorEastAsia===e.majorEastAsia&&t.minorEastAsia===e.minorEastAsia&&t.majorBidi===e.majorBidi&&t.minorBidi===e.minorBidi)return t.index;let l=vn(n,e);return en.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,index:l}),l}function zn(n,e,t){let l=[e.chain(n.runStyle??e.defaultCharacter),e.chain(n.paragraphStyle??e.defaultParagraph),n.tableStyle===false||n.tableStyle===void 0?z:e.chain(n.tableStyle??e.defaultTable)];for(let a of l){m(t,a.eastAsia),m(t,a.latin),n.hasHAnsi&&m(t,a.hAnsi);for(let i of a.conditional)m(t,i);for(let i of a.conditionalEastAsia)m(t,i);}m(t,e.docDefaultLatin),m(t,e.docDefaultEastAsia),n.hasHAnsi&&m(t,e.docDefaultHAnsi);}function wn(n,e,t){return n.latin!==null||e.some(l=>l.latin!==null)||t.docDefaultsNameLatin}function Yn(n,e,t,l){let a=e.chain(n.runStyle??e.defaultCharacter),i=e.chain(n.paragraphStyle??e.defaultParagraph),o=n.tableStyle===false||n.tableStyle===void 0?z:e.chain(n.tableStyle??e.defaultTable);n.latin!==null?m(t,n.latin):m(l,a.latin??i.latin??o.latin??e.docDefaultLatin);for(let s of o.conditional)m(l,s);n.hasHAnsi&&(n.hAnsi!==null?m(t,n.hAnsi):m(l,a.hAnsi??i.hAnsi??o.hAnsi??e.docDefaultHAnsi??(wn(n,[a,i,o],e)?e.hAnsiSlotDefault:null)));let r=n.hint??a.hint??i.hint??o.hint??e.docDefaultHint;if(!(!n.hasEastAsian&&!(n.hasHAnsi&&r==="eastAsia"))){n.eastAsia!==null?m(t,n.eastAsia):m(l,a.eastAsia??i.eastAsia??o.eastAsia??e.docDefaultEastAsia??e.fallbackEastAsia);for(let s of o.conditionalEastAsia)m(l,s);}}function Gn(n,e,t,l){return dn(n,e,t,true,l)}function dn(n,e,t,l,a){let i=kn(e,t),o=new Map,r=new Map;for(let f of n){let u=k();for(let y of f.children)E(y)&&W(u,a&&a.size>0?un(y,t,a):fn(y,t,0));for(let y of u.profiles.values()){let h=y.tableStyle===void 0?{...y,tableStyle:false}:y;Yn(h,i,o,r),l&&zn(h,i,r);}}for(let f of o.keys())r.delete(f);let s=[...r.values()].sort((f,u)=>f<u?-1:f>u?1:0);return Object.freeze({direct:Object.freeze([...o.values()]),inherited:Object.freeze(s)})}function Qn(n,e,t){let l=dn(n,e,t,false),a=[...l.direct,...l.inherited];return a.sort((i,o)=>i<o?-1:i>o?1:0),a}exports.a=B;exports.b=xn;exports.c=Wn;exports.d=$n;exports.e=Gn;exports.f=Qn;
1
+ 'use strict';var chunkYBMWBXST_cjs=require('./chunk-YBMWBXST.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');var mn=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function B(n){return n!==void 0&&n.trim().length>0&&mn.test(n)?n:null}var yn=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,hn=128,gn=/[\u0000-\u001F\u007F-\u009F]/,An=16,En=2,Sn=3276;function Q(n){return n.kind!=="textValue"}function R(n,e){for(let t of n.children)if(Q(t)&&t.localName===e)return t}function g(n,e){return n.attributes.find(t=>t.localName===e)?.value}function N(n){return n===void 0||n.length===0||n.length>hn||gn.test(n)?null:n}function v(n,e){let t=chunkYBMWBXST_cjs.Ba(g(n,"asciiTheme"),e)??g(n,"ascii")??chunkYBMWBXST_cjs.Ba(g(n,"hAnsiTheme"),e)??g(n,"hAnsi");return t===void 0?null:B(t)}function Y(n,e){let t=chunkYBMWBXST_cjs.Ba(g(n,"eastAsiaTheme"),e);if(t!==null)return t;let l=g(n,"eastAsia");return l===void 0?null:B(l)}function U(n,e){let t=chunkYBMWBXST_cjs.Ba(g(n,"hAnsiTheme"),e);if(t!==null)return t;let l=g(n,"hAnsi");return l===void 0?null:B(l)}function xn(n){return n!==void 0&&yn.test(n)?n:null}function Wn(n){return xn(n)}function On(n){return n!==void 0&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(e=>!!g(n,e))}function G(n,e){if(!n)return {fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};let t=R(n,"rFonts"),l=R(n,"sz"),a=l?g(l,"val"):void 0,i=a!==void 0&&/^\d{1,4}$/.test(a)?Number(a):null;return {fontFamily:t?v(t,e):null,hasLatinFontReference:On(t),fontSizeHalfPoints:i!==null&&i>=En&&i<=Sn?i:null}}function $n(n,e){let t=new Map,l={fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};if(n){let o=R(n,"docDefaults"),r=o?R(o,"rPrDefault"):void 0;l=G(r?R(r,"rPr"):void 0,e);for(let s of n.children){if(!Q(s)||s.localName!=="style")continue;let f=N(g(s,"styleId"));if(f===null||t.has(f))continue;let u=R(s,"basedOn");t.set(f,{basedOn:N(u?g(u,"val"):void 0),own:G(R(s,"rPr"),e)});}}let a=new Map,i=o=>{let r=o??"",s=a.get(r);if(s)return s;let f=null,u=null,y=l.hasLatinFontReference,h=new Set,x=o;for(let j=0;x!==null&&j<An&&!h.has(x);j+=1){h.add(x);let O=t.get(x);if(!O)break;f??=O.own.fontFamily,y||=O.own.hasLatinFontReference,u??=O.own.fontSizeHalfPoints,x=O.basedOn;}let L={hasLatinFontReference:y,fontFamily:f??l.fontFamily,fontSizeHalfPoints:u??l.fontSizeHalfPoints};return a.set(r,L),L};return (o,r)=>{let s=i(o),f=r?.find(h=>h.localName==="rFonts"),u=f?chunkYBMWBXST_cjs.Ba(f.attributes?.asciiTheme,e)??(f.attributes?.ascii===void 0?chunkYBMWBXST_cjs.Ba(f.attributes?.hAnsiTheme,e):null):null,y=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(h=>!!f?.attributes?.[h]);return {fontFamily:u??s.fontFamily??(!s.hasLatinFontReference&&!y?e.minor:null),fontSizeHalfPoints:s.fontSizeHalfPoints}}}var bn=16,Dn=16,pn=32,Fn=4096;function E(n){return n.kind!=="textValue"}function c(n,e){for(let t of n.children)if(E(t)&&t.localName===e)return t}function S(n,e){return n.attributes.find(t=>t.localName===e)?.value}function Rn(n){return n==="1"||n==="true"||n==="on"}function k(){return {profiles:new Map}}function an(n){return JSON.stringify([n.latin,n.eastAsia,n.hasEastAsian,n.hAnsi,n.hasHAnsi,n.hint,n.runStyle,n.paragraphStyle===void 0?0:n.paragraphStyle,n.tableStyle===void 0?0:n.tableStyle])}function on(n,e){let t=an(e);n.profiles.has(t)||n.profiles.set(t,e);}function W(n,e){for(let[t,l]of e.profiles)n.profiles.has(t)||n.profiles.set(t,l);}function Nn(n,e){let t=e.localName==="tbl",l=c(e,t?"tblPr":"pPr"),a=l?c(l,t?"tblStyle":"pStyle"):void 0,i=N(a?S(a,"val"):void 0),o=new Map;for(let r of n.profiles.values()){let s=t&&r.tableStyle===void 0?{...r,tableStyle:i}:!t&&r.paragraphStyle===void 0?{...r,paragraphStyle:i}:r;o.set(an(s),s);}n.profiles=o;}function m(n,e){if(e===null)return;let t=e.toLowerCase();n.has(t)||n.set(t,e);}var Tn=new Set(["tab","noBreakHyphen","softHyphen","footnoteRef","endnoteRef","footnoteReference","endnoteReference"]),Mn=128;function Pn(n){for(let e of n.attributes)if(e.localName==="font"&&!(e.namespaceUri!==chunkPWTRJSES_cjs.la&&e.namespaceUri!==""))return e.value.length>0&&e.value.length<=Mn;return false}function Ln(n,e){if(e?.has(n.id))return true;for(let t of n.children)if(!(!E(t)||t.namespaceUri!==chunkPWTRJSES_cjs.la)){if(Tn.has(t.localName))return true;if(t.localName==="sym"){if(!Pn(t))return true;continue}if(!(t.localName!=="t"&&t.localName!=="delText")){for(let l of t.children)if(!E(l)&&l.value.length>0)return true}}return false}function rn(n){return n>=4352&&n<=4607||n>=11904&&n<=40959||n>=43360&&n<=43391||n>=44032&&n<=55295||n>=63744&&n<=64255||n>=65072&&n<=65103||n>=65280&&n<=65519||n>=131072&&n<=262143}function Hn(n){return n>=160&&n<=65535&&!(n>=1424&&n<=1983)&&!(n>=64285&&n<=65023)&&!(n>=65136&&n<=65278)&&!rn(n)}function _n(n){let e=false,t=false;for(let l of n.children)if(!(!E(l)||l.namespaceUri!==chunkPWTRJSES_cjs.la)&&!(l.localName!=="t"&&l.localName!=="delText")){for(let a of l.children)if(!E(a))for(let i of a.value){let o=i.codePointAt(0);if(!(o<128)&&(e||=rn(o),t||=Hn(o),e&&t))return {eastAsian:e,hAnsi:t}}}return {eastAsian:e,hAnsi:t}}function Cn(n,e,t,l){if(!Ln(n,l))return;let a=c(n,"rPr"),i=a?c(a,"rFonts"):void 0,o=_n(n),r=o.eastAsian,s=a?c(a,"rStyle"):void 0;on(e,{latin:i?v(i,t):null,eastAsia:i&&(r||o.hAnsi)?Y(i,t):null,hasEastAsian:r,hint:(i&&S(i,"hint"))??null,hAnsi:i&&o.hAnsi?U(i,t):null,hasHAnsi:o.hAnsi,runStyle:N(s?S(s,"val"):void 0)});}function In(n){return (n.localName==="p"||n.localName==="tbl")&&n.namespaceUri===chunkPWTRJSES_cjs.la}var jn={latin:null,eastAsia:null,hasEastAsian:false,hAnsi:null,hasHAnsi:false,hint:null,runStyle:null};function sn(n,e,t,l){n.namespaceUri===chunkPWTRJSES_cjs.la&&(l?.has(n.id)&&n.localName==="fldSimple"&&on(e,jn),n.localName==="r"?Cn(n,e,t,l):In(n)&&Nn(e,n));}function un(n,e,t){let l=[{node:n,summary:k(),next:0}];for(;;){let a=l[l.length-1],i=a.node.children;if(a.next<i.length){let r=i[a.next];a.next+=1,E(r)&&l.push({node:r,summary:k(),next:0});continue}sn(a.node,a.summary,e,t),l.pop();let o=l[l.length-1];if(!o)return a.summary;W(o.summary,a.summary);}}var nn=new WeakMap;function fn(n,e,t){let l=nn.get(n);if(l&&l.major===e.major&&l.minor===e.minor&&l.majorEastAsia===e.majorEastAsia&&l.minorEastAsia===e.minorEastAsia&&l.majorBidi===e.majorBidi&&l.minorBidi===e.minorBidi)return l.summary;let a;if(n.children.length>=Dn&&t<pn){a=k();for(let i of n.children)E(i)&&W(a,fn(i,e,t+1));sn(n,a,e);}else a=un(n,e);return nn.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,summary:a}),a}var z={latin:null,eastAsia:null,hAnsi:null,hint:null,conditional:[],conditionalEastAsia:[]},Bn={docDefaultLatin:null,docDefaultEastAsia:null,docDefaultHAnsi:null,docDefaultHint:null,docDefaultsNameLatin:false,hAnsiSlotDefault:null,fallbackEastAsia:null,defaultParagraph:null,defaultCharacter:null,defaultTable:null,chain:()=>z},en=new WeakMap;function X(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?v(l,e):null}function V(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?Y(l,e):null}function tn(n){let e=c(n,"rPr"),t=e?c(e,"rFonts"):void 0;return (t&&S(t,"hint"))??null}function ln(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?U(l,e):null}function vn(n,e){let t=new Map,l=null,a=null,i=null,o=null,r=null,s=null,f=c(n,"docDefaults"),u=f?c(f,"rPrDefault"):void 0;u&&(l=X(u,e),a=V(u,e),i=ln(u,e));let y=u?c(u,"rPr"):void 0,h=y?c(y,"rFonts"):void 0,x=h&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(d=>!!S(h,d)),L=u?chunkYBMWBXST_cjs.wa:e.minor;x||(l??=L);let j=u?chunkYBMWBXST_cjs.xa:e.minorEastAsia,O=0;for(let d of n.children){if(!E(d)||d.localName!=="style")continue;if(O>=Fn)break;O+=1;let A=N(S(d,"styleId"));if(A===null)continue;let H=c(d,"basedOn"),_=[],C=[];for(let p of d.children){if(!E(p)||p.localName!=="tblStylePr")continue;let I=X(p,e);I!==null&&_.push(I);let b=V(p,e);b!==null&&C.push(b);}t.set(A,{basedOn:N(H?S(H,"val"):void 0),family:X(d,e),eastAsiaFamily:V(d,e),hAnsiFamily:ln(d,e),hint:tn(d),conditionalFamilies:_,conditionalEastAsiaFamilies:C});let T=Rn(S(d,"default")),M=S(d,"type");M==="paragraph"?T?o=A:o===A&&(o=null):M==="character"?T?r=A:r===A&&(r=null):M==="table"&&(T?s=A:s===A&&(s=null));}let $=new Map,cn=d=>{if(d===null)return z;let A=$.get(d);if(A)return A;let H=null,_=null,C=null,T=null,M=[],p=[],I=new Set,b=d;for(let K=0;b!==null&&K<bn&&!I.has(b);K+=1){I.add(b);let D=t.get(b);if(!D)break;H??=D.family,_??=D.eastAsiaFamily,C??=D.hAnsiFamily,T??=D.hint;for(let w of D.conditionalFamilies)M.push(w);for(let w of D.conditionalEastAsiaFamilies)p.push(w);b=D.basedOn;}let J={latin:H,eastAsia:_,hAnsi:C,hint:T,conditional:M,conditionalEastAsia:p};return $.set(d,J),J};return {docDefaultLatin:l,docDefaultEastAsia:a,docDefaultHAnsi:i,docDefaultHint:u?tn(u):null,docDefaultsNameLatin:!!x,hAnsiSlotDefault:L,fallbackEastAsia:j,defaultParagraph:o,defaultCharacter:r,defaultTable:s,chain:cn}}function kn(n,e){if(!n)return {...Bn,docDefaultLatin:e.minor,hAnsiSlotDefault:e.minor,fallbackEastAsia:e.minorEastAsia};let t=en.get(n);if(t&&t.major===e.major&&t.minor===e.minor&&t.majorEastAsia===e.majorEastAsia&&t.minorEastAsia===e.minorEastAsia&&t.majorBidi===e.majorBidi&&t.minorBidi===e.minorBidi)return t.index;let l=vn(n,e);return en.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,index:l}),l}function zn(n,e,t){let l=[e.chain(n.runStyle??e.defaultCharacter),e.chain(n.paragraphStyle??e.defaultParagraph),n.tableStyle===false||n.tableStyle===void 0?z:e.chain(n.tableStyle??e.defaultTable)];for(let a of l){m(t,a.eastAsia),m(t,a.latin),n.hasHAnsi&&m(t,a.hAnsi);for(let i of a.conditional)m(t,i);for(let i of a.conditionalEastAsia)m(t,i);}m(t,e.docDefaultLatin),m(t,e.docDefaultEastAsia),n.hasHAnsi&&m(t,e.docDefaultHAnsi);}function wn(n,e,t){return n.latin!==null||e.some(l=>l.latin!==null)||t.docDefaultsNameLatin}function Yn(n,e,t,l){let a=e.chain(n.runStyle??e.defaultCharacter),i=e.chain(n.paragraphStyle??e.defaultParagraph),o=n.tableStyle===false||n.tableStyle===void 0?z:e.chain(n.tableStyle??e.defaultTable);n.latin!==null?m(t,n.latin):m(l,a.latin??i.latin??o.latin??e.docDefaultLatin);for(let s of o.conditional)m(l,s);n.hasHAnsi&&(n.hAnsi!==null?m(t,n.hAnsi):m(l,a.hAnsi??i.hAnsi??o.hAnsi??e.docDefaultHAnsi??(wn(n,[a,i,o],e)?e.hAnsiSlotDefault:null)));let r=n.hint??a.hint??i.hint??o.hint??e.docDefaultHint;if(!(!n.hasEastAsian&&!(n.hasHAnsi&&r==="eastAsia"))){n.eastAsia!==null?m(t,n.eastAsia):m(l,a.eastAsia??i.eastAsia??o.eastAsia??e.docDefaultEastAsia??e.fallbackEastAsia);for(let s of o.conditionalEastAsia)m(l,s);}}function Gn(n,e,t,l){return dn(n,e,t,true,l)}function dn(n,e,t,l,a){let i=kn(e,t),o=new Map,r=new Map;for(let f of n){let u=k();for(let y of f.children)E(y)&&W(u,a&&a.size>0?un(y,t,a):fn(y,t,0));for(let y of u.profiles.values()){let h=y.tableStyle===void 0?{...y,tableStyle:false}:y;Yn(h,i,o,r),l&&zn(h,i,r);}}for(let f of o.keys())r.delete(f);let s=[...r.values()].sort((f,u)=>f<u?-1:f>u?1:0);return Object.freeze({direct:Object.freeze([...o.values()]),inherited:Object.freeze(s)})}function Qn(n,e,t){let l=dn(n,e,t,false),a=[...l.direct,...l.inherited];return a.sort((i,o)=>i<o?-1:i>o?1:0),a}exports.a=B;exports.b=xn;exports.c=Wn;exports.d=$n;exports.e=Gn;exports.f=Qn;
@@ -1 +1 @@
1
- 'use strict';var chunkDOHF6FA7_cjs=require('./chunk-DOHF6FA7.cjs'),chunkT6K2QYNZ_cjs=require('./chunk-T6K2QYNZ.cjs'),chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');var Kt=Object.freeze({}),zt=Object.freeze([]);function Ht(e){let t=Object.keys(e);if(t.length===0)return Kt;let r={};for(let n of t){let o=e[n];o!==void 0&&(r[n]=o);}return Object.freeze(r)}function Wt(e){let t=new Map(chunkOSFOJTHU_cjs.og(e.part())),r=new Set([e.part()]);for(let o of e.headerFooterPartsBySection())for(let a of [o.headers,o.footers])for(let i of a.values())if(!r.has(i)){r.add(i);for(let[s,c]of chunkOSFOJTHU_cjs.og(i))t.has(s)||t.set(s,c);}let n=e.currentPackage();for(let o of ["footnote","endnote"]){let a=chunkOSFOJTHU_cjs.ch(n,o);if(!(!a||r.has(a))){r.add(a);for(let[i,s]of chunkOSFOJTHU_cjs.og(a))t.has(i)||t.set(i,s);}}return t}function $t(e,t){let r=chunkDOHF6FA7_cjs.ne(e,t);if(!r)return null;let n=e.pages[r.pageIndex];if(!n)return null;let o=chunkDOHF6FA7_cjs.xe(n),a=chunkDOHF6FA7_cjs.ze(e,t.paragraphId,r.pageIndex),i=Object.freeze({x:r.x+a.x,y:r.y+a.y,height:r.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:r.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function Ut(e,t){let r=[];for(let n of t.values()){let o=$t(e,n);o&&r.push(o);}return r.length===0?zt:Object.freeze(r)}function ft(e,t){return {documentMetadata:Ht(e.documentProperties()),destinations:Ut(t,Wt(e))}}function Er(e,t){let r=e.destinations;if(r){for(let n of r)if(n.anchor.name===t)return n}}function yt(e={}){return Object.freeze({async decode(t,r,n){let o=chunkOSFOJTHU_cjs.ie(t,r);if(!o)throw new Error(`Unsupported or malformed ${r} image`);if(o.pixelWidth>n.maxDimension||o.pixelHeight>n.maxDimension||o.pixelWidth>n.maxPixels/o.pixelHeight)throw new Error("Image dimensions exceed resource limits");return Object.freeze({pixelWidth:o.pixelWidth,pixelHeight:o.pixelHeight,dpiX:o.dpiX??96,dpiY:o.dpiY??96})},...e.convertPreserved?{convertPreserved:e.convertPreserved}:{}})}var gt=new WeakMap;function ht(e,t){let r=gt.get(e);r||(r=chunkDOHF6FA7_cjs.Ke(e),gt.set(e,r));let n=r.styleCascade(),o=new Set;if(t===e.part())for(let c of chunkDOHF6FA7_cjs.qd(t,void 0,void 0,n,r.numberingIndex()))for(let h of chunkDOHF6FA7_cjs.ob(c)?.slice(0,-1)??[])o.add(h.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let h=c.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===chunkOSFOJTHU_cjs.la&&d.localName==="pPr"),p=h?.kind!=="textValue"?h?.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===chunkOSFOJTHU_cjs.la&&d.localName==="rPr"):void 0;return p!==void 0&&chunkOSFOJTHU_cjs.Aa(p,"vanish")},i=0,s=(c,h)=>{if(++i>chunkOSFOJTHU_cjs.Hd||h>chunkOSFOJTHU_cjs.$||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(chunkDOHF6FA7_cjs.od(c,n,false)||a(c))&&chunkOSFOJTHU_cjs.jg(c).length>0)return true;for(let p of c.children){if(i>=chunkOSFOJTHU_cjs.Hd)break;if(s(p,h+1))return true}return false};return s(t.root,0)}var wt=new WeakMap,Gt=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function Yt(e,t){let r=wt.get(e.root);if(r&&r.stylesPart===t)return r.codes;let n=chunkOSFOJTHU_cjs.ab(t),o=new Set,a=[{node:e.root,scope:chunkOSFOJTHU_cjs.td(),depth:0,mcSelected:false,framed:false}],i=0;for(;a.length;){let{node:c,scope:h,depth:p,mcSelected:d,framed:y}=a.pop();if(++i>chunkOSFOJTHU_cjs.Hd||p>chunkOSFOJTHU_cjs.$){o.add("scan-limit");break}if(c.kind==="textValue")continue;if(i+a.length+c.children.length>chunkOSFOJTHU_cjs.Hd){o.add("scan-limit");break}let g=chunkOSFOJTHU_cjs.sd(h,c),w=y||n(c),l=chunkOSFOJTHU_cjs.rd(c)?c:void 0;if(l){if(chunkOSFOJTHU_cjs.Ld(l,g).drawing)continue;let m=chunkOSFOJTHU_cjs.Kd(l,g);m.refused&&o.add("scan-limit"),m.branch&&a.push({node:m.branch,scope:g,depth:p+1,mcSelected:true,framed:w});continue}if(!d&&chunkOSFOJTHU_cjs.od(c)&&!(w&&c.localName==="object")){let m=chunkOSFOJTHU_cjs.qd(c,e.name)?.textboxStory?.content;m&&a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});continue}if(c.namespaceUri==="urn:schemas-microsoft-com:vml"&&c.localName==="textbox"){o.add("legacy-textbox");continue}c.namespaceUri==="urn:schemas-microsoft-com:vml"&&Gt.has(c.localName)&&!c.children.some(m=>m.kind!=="textValue"&&m.namespaceUri==="urn:schemas-microsoft-com:vml"&&m.localName==="textbox")&&o.add("legacy-drawing");for(let m of c.children)a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});}let s=Object.freeze([...o]);return wt.set(e.root,{stylesPart:t,codes:s}),s}function xt(e){let t=new Set([e.part()]);for(let r of e.headerFooterPartsBySection())for(let n of [r.headers,r.footers])for(let o of n.values())t.add(o);for(let r of ["footnote","endnote"]){let n=chunkOSFOJTHU_cjs.ch(e.currentPackage(),r);n&&t.add(n);}return Object.freeze([...t].flatMap(r=>[...Yt(r,chunkOSFOJTHU_cjs.bd(e.currentPackage())),...ht(e,r)?["unsupported-style-separator"]:[]].map(n=>Object.freeze({code:n,partName:r.name}))))}function bt(e){return chunkOSFOJTHU_cjs.kf(e.fieldResults,()=>chunkDOHF6FA7_cjs.ff(Xt(e)))}function Xt(e){return chunkDOHF6FA7_cjs.gf(e.fieldResults,qt(e))}function*qt(e){let t=e.defaultTabStopPt?.(),r=e.view.part().name,n={view:e.view,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,compatibilityMode:e.compatibilityMode?.(),inlineDrawingLayoutForPart:e.inlineDrawingLayoutForPart,drawingTokenForParagraphForPart:e.drawingTokenForParagraphForPart,drawingLayoutEpochForPart:e.drawingLayoutEpochForPart,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},o=chunkDOHF6FA7_cjs.Ze(n),a={view:e.view,revision:e.revision,measurer:e.measurer,cache:e.cache,session:e.session,producer:e.producer,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,furniture:e.furniture,compatibilityMode:e.compatibilityMode,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,fieldResults:e.fieldResults,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,bodyBlockLimit:e.bodyBlockLimit},i={measurer:a.measurer,cache:a.cache,session:a.session,producer:a.producer,styleCascade:a.styleCascade?.(),defaultTabStopPt:a.defaultTabStopPt,compatibilityMode:a.compatibilityMode?.(),numberingIndex:a.numberingIndex?.(),sectionFurniture:a.furniture.sectionFurniture(),furniture:a.furniture.furniture(),evenAndOddHeaders:a.view.headerFooterPartsBySection()[0]?.evenAndOddHeaders===true,projectLink:a.linkProjectors.projectLink,projectFieldLink:a.projectFieldLink,showFieldCodes:a.showFieldCodes,fieldResults:a.fieldResults,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(r,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(r,s),projectionEpoch:a.linkProjectors.epochForPart(r),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter,bodyBlockLimit:a.bodyBlockLimit};return yield*chunkDOHF6FA7_cjs.If(a.view.part(),a.revision,i)}var Jt=65536;function St(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Qt(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}function Zt(e,t,r){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===r:true}function er(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let r=null;return chunkDOHF6FA7_cjs.Ba(e,n=>{if(r||!Zt(t,n.story,n.noteScopeId))return;let o=n.story==="header"||n.story==="footer"?a=>chunkDOHF6FA7_cjs.wa(a,n.origin,{x:e.box.x,y:e.box.y}):void 0;chunkDOHF6FA7_cjs.Fa(n.host,(a,i)=>{if(r||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);Qt(s,t.textboxPath)&&(r=St(e,i.storyOrigin));},n.origin,o);}),r}function tr(e,t){if(t.story==="textbox")return er(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?chunkDOHF6FA7_cjs.ye(e,e.header.box):{x:0,y:0};case "footer":return e.footer?chunkDOHF6FA7_cjs.ye(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let n=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return n?chunkDOHF6FA7_cjs.ye(e,n.box):{x:0,y:0}}case "note-separator":{let r=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,n=r?.separator?.box;return r?.continuationNotice&&chunkDOHF6FA7_cjs.Fa(r.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(n=r.continuationNotice.box);}),n?chunkDOHF6FA7_cjs.ye(e,n):{x:0,y:0}}default:return {x:0,y:0}}}function It(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function Rt(e,t){let r=chunkDOHF6FA7_cjs.xe(e);return Object.freeze({x:r.x+t.x,y:r.y+t.y,width:t.width,height:t.height})}function rr(e,t){let r=chunkDOHF6FA7_cjs.ne(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!r||r.pageIndex!==t.pageIndex)return;let n=e.pages[r.pageIndex];if(!n)return;let o=tr(n,t),a=Object.freeze([It({x:r.x+o.x,y:r.y+o.y,width:0,height:r.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>Rt(n,i)))})}function nr(e,t,r){let n=r.filter(i=>i.pageIndex===t.pageIndex);if(n.length===0)return Ot(t)?rr(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(n.map(i=>It(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>Rt(o,i)))})}function Ot(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function vt(e,t){return `${e}\0${t}`}function or(e,t,r){let n=Math.max(e.start,t.offset),o=Math.min(e.end,r.offset);return o>n?{start:n,end:o}:null}function ar(e,t){let r=new Map,n=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=Jt)return false;a+=1;let h=vt(s.pageIndex,c),p=n.get(h);return p?p.push(s):n.set(h,[s]),true};for(let[s,c]of t.entries())for(let[h,p]of c.occurrences.entries()){if(Ot(p)||p.source.start.paragraphId!==p.source.end.paragraphId)continue;o.add(p.pageIndex);let d=`${s}\0${h}`,y={paragraphId:p.source.start.paragraphId,offset:p.source.start.offset},g={paragraphId:p.source.end.paragraphId,offset:p.source.end.offset},w=y.offset<=g.offset?{from:y,to:g}:{from:g,to:y};i({key:d,from:w.from,to:w.to,pageIndex:p.pageIndex},w.from.paragraphId);}if(n.size===0)return r;for(let s of e.pages)o.has(s.index)&&chunkDOHF6FA7_cjs.Ba(s,c=>{let h=c.story==="header"||c.story==="footer"?p=>chunkDOHF6FA7_cjs.wa(p,c.origin,{x:s.box.x,y:s.box.y}):void 0;chunkDOHF6FA7_cjs.Fa(c.host,(p,d)=>{let y=St(s,d.storyOrigin);for(let g of p.lines)for(let w of chunkDOHF6FA7_cjs.La(g)){let l=n.get(vt(s.index,w.paragraphId));if(l)for(let m of l){let b=or(w,m.from,m.to);if(!b)continue;let x=chunkDOHF6FA7_cjs.ge(g,b.start,void 0,w),v=chunkDOHF6FA7_cjs.ge(g,b.end,void 0,w,b.end>b.start),I=r.get(m.key)??[];I.push({pageIndex:s.index,x:Math.min(x,v)+y.x,y:g.box.y+y.y,width:Math.abs(v-x),height:g.box.height}),r.set(m.key,I);}}},c.origin,h);});return r}function kt(e,t){let r=false;for(let o of t)if(o.occurrences.length!==0){r=true;break}if(!r)return t;let n=ar(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let h=`${a}\0${c}`,p=nr(e,s,n.get(h)??[]);return p?{...s,geometry:p}:s});return {...o,occurrences:Object.freeze(i)}})}function ir(e){let t=new Map,r=[{node:e.root,depth:0}];for(;r.length>0;){let{node:n,depth:o}=r.pop();if(!(n.kind==="textValue"||o>64)){n.kind==="paragraph"&&!t.has(n.id)&&t.set(n.id,t.size);for(let a=n.children.length-1;a>=0;a-=1)r.push({node:n.children[a],depth:o+1});}}return t}function Mt(){let e=new Map,t=n=>{let o=e.get(n.root);if(o)return o;let a=ir(n);return e.set(n.root,a),a},r={retainRevisionItems:false,revisionSites:chunkOSFOJTHU_cjs.$j,locations:chunkOSFOJTHU_cjs.ek,commentAnchors:chunkOSFOJTHU_cjs._h,deepOrder:t};return Object.freeze({collectReviewItems:n=>chunkOSFOJTHU_cjs.ik(n,r),deepParagraphOrderOfPart:t})}function sr(e,t){if(t)return true;let r=e.map(n=>n.root);for(;r.length>0;){let n=r.pop();if(chunkOSFOJTHU_cjs.Zj(n))return true;if(n.kind!=="textValue")for(let o of n.children)r.push(o);}return false}function cr(e,t){let r=[],n=new Set([t.name]),o=a=>{!a||n.has(a.name)||(n.add(a.name),r.push(a));};for(let a of chunkOSFOJTHU_cjs.ff(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(chunkOSFOJTHU_cjs.ch(e,"footnote")),o(chunkOSFOJTHU_cjs.ch(e,"endnote")),r}function dr(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return chunkOSFOJTHU_cjs.ch(e,"footnote")?.name??null;case "endnote":return chunkOSFOJTHU_cjs.ch(e,"endnote")?.name??null;case "note-separator":return chunkOSFOJTHU_cjs.ch(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function ur(e,t){let r=new Map;for(let n of e){let o=t.get(n.partName),a=o?.get(n.start.paragraphId),i=o?.get(n.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),h=r.get(n.partName);r.set(n.partName,{lower:Math.min(h?.lower??s,s),upper:Math.max(h?.upper??c,c)});}return r}function lr(e,t,r,n,o){let a=new Map(r.map(d=>[d.name,o(d)])),i=ur(n,a),s=new Map,c=new Map,h=(d,y,g,w,l,m,b)=>{let x=a.get(d)?.get(l),v=i.get(d);if(x===void 0||!v||x<v.lower||x>v.upper)return;let I=s.get(d)??new Map;s.set(d,I);let V=c.get(d)??new Map;c.set(d,V);let W=JSON.stringify([y.story,y.noteScopeId,y.noteAreaKind]),K=g==="textbox"?JSON.stringify([W,"textbox",w]):W,$=I.get(l)??[],j=`${l}\0${y.page.index}\0${K}`,T=V.get(j);T||(T={pageIndex:y.page.index,story:g,rootStory:y.story,textboxPath:w,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(j,T),$.push(T),I.set(l,$));let U=`${m}\0${b}`;T.intervalKeys?.has(U)||(T.intervalKeys?.add(U),T.intervals.push({start:m,end:b}));};chunkDOHF6FA7_cjs.Ca(e,d=>{let y=dr(t,d);!y||!i.has(y)||chunkDOHF6FA7_cjs.Fa(d.host,(g,w)=>{let l=w.textboxDepth>0?"textbox":d.story,m=w.textboxPath.map(x=>x.drawingNodeId),b=[];for(let x of g.lines){for(let v of x.spans)b.push(v.range);for(let v of x.drawings??[])b.push({paragraphId:v.paragraphId,start:v.start,end:v.start+1});}b.length===0&&b.push({paragraphId:g.range.paragraphId,start:g.range.start,end:g.range.end});for(let{paragraphId:x,start:v,end:I}of b)h(y,d,l,m,x,v,I);});}),chunkDOHF6FA7_cjs.Ea(e,d=>{let y=d.drawing.ownerPartName;d.drawing.accessibility.hidden||!i.has(y)||h(y,d.root,d.story,d.textboxPath.map(g=>g.drawingNodeId),d.drawing.paragraphId,d.drawing.start,d.drawing.start+1);});for(let d of s.values())for(let y of d.values())for(let g of y){g.intervals.sort((l,m)=>l.start-m.start||l.end-m.end);let w=[];for(let l of g.intervals){let m=w.at(-1);m&&l.start<=m.end?m.end=Math.max(m.end,l.end):w.push({...l});}g.intervals.splice(0,g.intervals.length,...w),g.intervalKeys=void 0;}let p=new Map;for(let[d,y]of s){let g=a.get(d);if(!g)continue;let w=[];for(let[l,m]of y){let b=g.get(l);b!==void 0&&w.push({paragraphId:l,position:b,laneKeys:new Set(m.map(({laneKey:x})=>x))});}w.sort((l,m)=>l.position-m.position),p.set(d,w);}return {byPart:s,orderByPart:a,visibleByPart:p}}function Dt(e,t){let r=0,n=e.length;for(;r<n;){let o=r+n>>>1;e[o].position<t?r=o+1:n=o;}return r}function pr(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let r=t.orderByPart.get(e.partName),n=t.visibleByPart.get(e.partName),o=r?.get(e.start.paragraphId),a=r?.get(e.end.paragraphId);if(!r||!n||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),c=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:d})=>d)??[]),h=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:d})=>d)??[]),p=new Set([...c].filter(d=>h.has(d)));return p.size===0?[e.start.paragraphId,e.end.paragraphId]:n.slice(Dt(n,i),Dt(n,s+1)).filter(d=>[...d.laneKeys].some(y=>p.has(y))).map(d=>d.paragraphId)}function mr(e,t,r,n){return n?e.intervals.filter(a=>a.start<=t&&t<a.end).length>0?[{start:t,end:t}]:[]:e.intervals.flatMap(o=>{if(o.start===o.end)return [];let a={start:Math.max(o.start,t),end:Math.min(o.end,r)};return a.end>a.start?[a]:[]})}function fr(e,t){let r=Number.NEGATIVE_INFINITY;for(let n of e)for(let o of n.intervals)r=Math.max(r,o.end);return t!==r?new Set:new Set(e.filter(n=>n.intervals.some(o=>o.end===r)))}function Lt(e,t,r){let n=[],o=new Set;for(let[a,i]of e.entries()){let s=r===void 0?void 0:r===null?"neutral":a<r?"replaced":"replacement";for(let c of pr(i,t)){let h=t.byPart.get(i.partName)?.get(c)??[],d=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,y=c===i.start.paragraphId?i.start.offset:0,g=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,w=d?fr(h,y):new Set;for(let l of h){let m=mr(l,y,g,d);d&&m.length===0&&w.has(l)&&(m=[{start:y,end:y}]);for(let b of m){let x=`${l.pageIndex}\0${l.story}\0${l.noteScopeId??""}\0${l.noteAreaKind??""}\0${l.textboxPath.join("\0")}\0${i.partName}\0${c}\0${b.start}\0${b.end}\0${s??""}`;o.has(x)||(o.add(x),n.push({pageIndex:l.pageIndex,physicalPageNumber:l.pageIndex+1,story:l.story,rootStory:l.rootStory,textboxPath:l.textboxPath,noteScopeId:l.noteScopeId,noteAreaKind:l.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:b.start},end:{paragraphId:c,offset:b.end}}}));}}}}return n}function At(e,t){let r=2166136261,n=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);r=Math.imul(r^a,16777619)>>>0,n=Math.imul(n^a+o,2246822507)>>>0,n^=n>>>13;}return `${e}_${t.length.toString(36)}_${r.toString(36)}_${n.toString(36)}`}function Et(e,t,r=At){let n=new Map;for(let a of t){let i=r(e,a),s=n.get(i)??new Set;s.add(a),n.set(i,s);}let o=new Map;for(let[a,i]of n){let s=[...i].sort();for(let[c,h]of s.entries())o.set(h,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function yr(e){let t=new Set,r=new Set;for(let n of e){if(n.kind==="comment"){t.add(n.id),n.parentId!==void 0&&t.add(n.parentId),n.parentRevisionId!==void 0&&r.add(n.parentRevisionId);for(let o of n.replyIds)t.add(o);}if(n.kind==="revision"){r.add(n.id),n.pairedWith!==void 0&&r.add(n.pairedWith);for(let o of n.replyIds)t.add(o);}}return {comment:Et("comment",t),revision:Et("change",r)}}function _(e,t,r){return e.get(r)??At(t,r)}function gr(e,t,r){return e.kind==="revision"?{kind:"tracked-change",id:_(r.revision,"change",e.id),change:e.revisionKind,...e.structuralChanges?{structuralChanges:e.structuralChanges}:{},...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:chunkOSFOJTHU_cjs.jb(e.text),replacedText:chunkOSFOJTHU_cjs.jb(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:_(r.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(n=>_(r.comment,"comment",n)),occurrences:t?Lt(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]}:e.kind!=="comment"?null:{kind:"comment",id:_(r.comment,"comment",e.id),author:e.comment.author,initials:chunkOSFOJTHU_cjs.Oj(e.comment),...e.comment.date!==void 0?{date:e.comment.date}:{},text:chunkOSFOJTHU_cjs.Mj(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:_(r.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:_(r.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(n=>_(r.comment,"comment",n)),orphaned:e.orphaned,occurrences:t&&e.range?Lt([e.range],t):[]}}function Ft(e,t){let r=t.parts.get(t.mainDocumentPart);if(!r)return [];let n=cr(t,r),o=[r,...n],a=t.parts.get(chunkT6K2QYNZ_cjs.aa(t,r.name));if(!sr(o,a))return [];let i=Mt(),s=i.collectReviewItems({storyPart:r,furnitureParts:n,commentsPart:a,commentsExtendedPart:t.parts.get(chunkT6K2QYNZ_cjs.ba(t,r.name))});if(s.length===0)return [];let c=s.flatMap(d=>chunkOSFOJTHU_cjs.yj(d)),h=c.length>0?lr(e,t,o,c,i.deepParagraphOrderOfPart):null,p=yr(s);return s.map(d=>gr(d,h,p)).filter(d=>d!==null)}var hr=new Set(["part","validatedHandle"]);function Tt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function q(e,t,r,n,o){if(!(n!==void 0&&hr.has(n))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(r.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),r.add(e);try{if(Array.isArray(e)){for(let a of e)q(a,t,r,void 0,o);Object.freeze(e);return}if(!Tt(e))throw new TypeError("Semantic layout publication encountered a non-record value");for(let a of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,a);if(i){if(!("value"in i))throw new TypeError("Semantic layout publication encountered an accessor property");q(i.value,t,r,a,o);}}Object.freeze(e);}finally{r.delete(e);}}}}}function Ct(e){if(!Tt(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let n of e.pages)if(!(n===null||typeof n!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(n,o);if(!a||!("value"in a))continue;let i=a.value;if(i===null||typeof i!="object"||t.has(i))continue;let s=new Set;s.add(e),q(i,new Set,s,o),t.add(i);}let r=(n,o)=>{let a=new Set;for(let i of n){let s=new Set;s.add(e),q(i,a,s,void 0,o);}Object.freeze(n);};for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(n==="pages"&&Array.isArray(o.value)){r(o.value,t);continue}if(n==="reviewArtifacts"&&Array.isArray(o.value)){r(o.value);continue}let a=new Set;a.add(e),q(o.value,new Set,a,n);}return Object.freeze(e),e}var wr=Object.freeze([]),k=class extends Error{constructor(r,n,o){super(n,o);this.code=r;this.name="ExportResourceError";}code};function xr(e){try{return e instanceof k}catch{return false}}function br(e){try{return e instanceof chunkDOHF6FA7_cjs.Ue}catch{return false}}function Pr(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function vr(e){if(xr(e))return e;let t=br(e),r=Pr(e),n=r?`: ${r}`:"",o=new k(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${n}`:`Export layout failed${n}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function Sr(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("resourceTimeoutMs must be a positive finite number");return Math.max(1,e)}function Nt(e){if(e==="all-markup"||e==="simple-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, simple-markup, proposed, or original")}var Ir=50,ye=64;function Rr(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Or(e){let t=false;return chunkDOHF6FA7_cjs.Ea(e,({drawing:r})=>{Rr(r.resource)&&(t=true);}),t}function jt(e){return !ArrayBuffer.isView(e)}function Yn(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};if(t.revisionAuthorSlots!==void 0&&(!t.revisionAuthorSlots||typeof t.revisionAuthorSlots!="object"||Array.isArray(t.revisionAuthorSlots)))throw new TypeError("revisionAuthorSlots must map author names to nonnegative safe integers.");let r=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([f,P])=>{if(!Number.isSafeInteger(P)||P<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [f,P]}))),n=t.revisionMarkup?chunkDOHF6FA7_cjs.Va(t.revisionMarkup):void 0,o=n?{revisionMarkup:n,hiddenAuthors:new Set,cacheKey:JSON.stringify(n)}:void 0,a=Nt(t.displayMode??chunkDOHF6FA7_cjs.Za),i=jt(e),s=jt(e)?{ok:true,view:e}:chunkT6K2QYNZ_cjs.Ba(e);if(!s.ok)return s;let c=s.view,h=t.reuseAcrossRevisions??i,p=Sr(t.resourceTimeoutMs),d=t.measurer??chunkDOHF6FA7_cjs.ha(),y=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),g=chunkDOHF6FA7_cjs.Ge({retainAcrossPasses:h}),w=0,l=new Set,m=()=>{w+=1;for(let f of l)f();l.clear();},b=chunkDOHF6FA7_cjs.Me({session:c,decodePort:t.imageDecodePort??yt(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:m}),x={view:c,measurer:d,paragraphCache:g,sessions:new Map,completed:new Map,inFlight:new Map,styles:chunkDOHF6FA7_cjs.Ke(c),fieldLinks:new Map,links:chunkDOHF6FA7_cjs.$e(c),drawingBundle:b,furniture:new Map},v=new AbortController,I=t.signal,V=false,W=()=>V?new k("aborted","Export resource settlement was aborted"):new k("disposed","Export session has been disposed"),K=()=>{V=true,$();};function $(){let f=x;if(f){x=null,I?.removeEventListener("abort",K),v.abort(I?.reason),f.drawingBundle.dispose(),f.paragraphCache.clear();for(let P of f.completed.values())chunkDOHF6FA7_cjs.hc(P.internal),chunkDOHF6FA7_cjs.hf(P.internal);for(let P of f.fieldLinks.values())P.registry.clear();f.fieldLinks.clear(),f.completed.clear(),f.inFlight.clear(),f.furniture.clear(),f.sessions.clear(),m();}}I?.addEventListener("abort",K,{once:true}),I?.aborted&&K();let j=()=>{if(!x)throw W();if(v.signal.aborted)throw new k("aborted","Export resource settlement was aborted")},T=(f,P,D,u)=>w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D?Promise.resolve():(j(),new Promise((B,O)=>{let M=false,C,L=A=>{M||(M=true,C!==void 0&&clearTimeout(C),l.delete(E),v.signal.removeEventListener("abort",G),A?O(A):B());},E=()=>L(),G=()=>L(new k("aborted","Export resource settlement was aborted")),Y=()=>{if(x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){L();return}let A=u-Date.now();if(A<=0){L(new k("timedOut",`Image resources did not settle within ${p}ms`));return}C=setTimeout(Y,Math.min(Ir,A));};if(l.add(E),v.signal.addEventListener("abort",G,{once:true}),w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){L();return}Y();})),U=async(f,P=0,D=Date.now()+p)=>{if(j(),Date.now()>=D)throw new k("timedOut",`Export layout did not stabilize within ${p}ms`);let u=x,B=D,O=u.view.packageRevision(),M=u.view.currentPackage(),C=u.completed.get(f);if(C&&C.revision===O&&C.pkg===M)return C.published;let L=()=>{if(u.view.packageRevision()===O&&u.view.currentPackage()===M)return null;if(P>=ye-1)throw new k("nonConvergent","Document revision did not stabilize during export layout");return U(f,P+1,B)},E=u.fieldLinks.get(f);if(!E||E.revision!==O||E.pkg!==M){let R=E?.registry??chunkDOHF6FA7_cjs.af();R.clear(),E={revision:O,pkg:M,registry:R},u.fieldLinks.set(f,E),u.furniture.delete(f);}let G=E.registry,Y=u.sessions.get(f)??chunkDOHF6FA7_cjs.Gf();u.sessions.set(f,Y);let A=u.furniture.get(f);A||(A=chunkDOHF6FA7_cjs.Ye({view:u.view,measurer:u.measurer,producer:y,cache:u.paragraphCache,styleCascade:u.styles.styleCascade,numberingIndex:u.styles.numberingIndex,defaultTabStopPt:u.styles.defaultTabStopPt,compatibilityMode:u.styles.compatibilityMode,displayMode:chunkDOHF6FA7_cjs.Ya(f),revisionAuthorFilter:f==="simple-markup"?chunkDOHF6FA7_cjs._a(o):o,showFieldCodes:false,inlineDrawingLayoutForPart:R=>u.drawingBundle.contextForPart(R),drawingLayoutTokenForPart:R=>u.drawingBundle.cacheTokenForPart(R),drawingTokenForParagraphForPart:(R,ae)=>u.drawingBundle.drawingTokenForParagraph(ae,R),linkProjectors:u.links,projectFieldLink:R=>G.project(R)}),u.furniture.set(f,A));for(let R=0;R<ye;R+=1){let ae=w;u.drawingBundle.sync(u.view);let he=L();if(he)return he;let N=bt({view:u.view,revision:u.view.packageRevision(),measurer:u.measurer,cache:u.paragraphCache,session:Y,producer:y,styleCascade:u.styles.styleCascade,defaultTabStopPt:u.styles.defaultTabStopPt,numberingIndex:u.styles.numberingIndex,furniture:A,compatibilityMode:u.styles.compatibilityMode,linkProjectors:u.links,projectFieldLink:S=>G.project(S),inlineDrawingLayout:u.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>u.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>u.drawingBundle.drawingTokenForParagraph(S,u.view.part().name),drawingTokenForParagraphForPart:(S,J)=>u.drawingBundle.drawingTokenForParagraph(J,S),drawingLayoutEpoch:u.drawingBundle.cacheTokenForPart(u.view.part().name),drawingLayoutEpochForPart:S=>u.drawingBundle.cacheTokenForPart(S),displayMode:chunkDOHF6FA7_cjs.Ya(f),revisionAuthorFilter:f==="simple-markup"?chunkDOHF6FA7_cjs._a(o):o,showFieldCodes:false,bodyBlockLimit:void 0,fieldResults:"atomic"});if(!Or(N)){let S=L();if(S)return S;h||(chunkDOHF6FA7_cjs.hc(N),chunkDOHF6FA7_cjs.hf(N),u.paragraphCache.clear(),u.sessions.delete(f),u.furniture.delete(f));let J=Ft(N,M),Bt=J.length===0?wr:Object.freeze(kt(N,J)),_t=ft(u.view,N),Vt={...N,..._t,reviewDisplayMode:f,...n?{revisionMarkup:n}:{},...r?{revisionAuthorSlots:r}:{},facingPages:[...M.parts.values()].some(Pe=>Pe.root.localName==="settings"&&Pe.root.children.some(Q=>Q.kind!=="textValue"&&(Q.localName==="mirrorMargins"||Q.localName==="evenAndOddHeaders")&&!Q.attributes.some(ve=>ve.localName==="val"&&["0","false","off"].includes(ve.value)))),contentWarnings:xt(u.view),reviewArtifacts:Bt},be=Ct(Vt);return u.completed.set(f,{revision:O,pkg:M,internal:N,published:be}),be}let we=ae;for(;u.drawingBundle.pendingResourceCount()>0;){await T(we,O,M,B),we=w,j();let S=L();if(S)return S}j();let xe=L();if(xe)return xe}throw new k("nonConvergent",`Image resources did not reach quiescence after ${ye} layout passes`)},ge=f=>{let P;try{P=Nt(f);}catch(O){return Promise.reject(O)}if(!x)return Promise.reject(W());let D=x,u=D.inFlight.get(P);if(u)return u;let B=U(P).catch(O=>{throw vr(O)}).finally(()=>D.inFlight.delete(P));return D.inFlight.set(P,B),B};return {ok:true,session:{layout:()=>ge(a),layoutFor:ge,validatedImageBytes(f){let P=x;return !P||f.resource.kind!=="ready"?null:P.drawingBundle.mintValidatedBytes(f.resource.validatedHandle,f.resource.contentId)?.slice()??null},dispose:$}}}exports.a=Xt;exports.b=Er;exports.c=yt;exports.d=k;exports.e=Yn;
1
+ 'use strict';var chunkQFKGI242_cjs=require('./chunk-QFKGI242.cjs'),chunkYBMWBXST_cjs=require('./chunk-YBMWBXST.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');var Kt=Object.freeze({}),zt=Object.freeze([]);function Ht(e){let t=Object.keys(e);if(t.length===0)return Kt;let r={};for(let n of t){let o=e[n];o!==void 0&&(r[n]=o);}return Object.freeze(r)}function Wt(e){let t=new Map(chunkPWTRJSES_cjs.og(e.part())),r=new Set([e.part()]);for(let o of e.headerFooterPartsBySection())for(let a of [o.headers,o.footers])for(let i of a.values())if(!r.has(i)){r.add(i);for(let[s,c]of chunkPWTRJSES_cjs.og(i))t.has(s)||t.set(s,c);}let n=e.currentPackage();for(let o of ["footnote","endnote"]){let a=chunkPWTRJSES_cjs.ch(n,o);if(!(!a||r.has(a))){r.add(a);for(let[i,s]of chunkPWTRJSES_cjs.og(a))t.has(i)||t.set(i,s);}}return t}function $t(e,t){let r=chunkQFKGI242_cjs.oe(e,t);if(!r)return null;let n=e.pages[r.pageIndex];if(!n)return null;let o=chunkQFKGI242_cjs.ye(n),a=chunkQFKGI242_cjs.Ae(e,t.paragraphId,r.pageIndex),i=Object.freeze({x:r.x+a.x,y:r.y+a.y,height:r.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:r.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function Ut(e,t){let r=[];for(let n of t.values()){let o=$t(e,n);o&&r.push(o);}return r.length===0?zt:Object.freeze(r)}function ft(e,t){return {documentMetadata:Ht(e.documentProperties()),destinations:Ut(t,Wt(e))}}function Er(e,t){let r=e.destinations;if(r){for(let n of r)if(n.anchor.name===t)return n}}function yt(e={}){return Object.freeze({async decode(t,r,n){let o=chunkPWTRJSES_cjs.ie(t,r);if(!o)throw new Error(`Unsupported or malformed ${r} image`);if(o.pixelWidth>n.maxDimension||o.pixelHeight>n.maxDimension||o.pixelWidth>n.maxPixels/o.pixelHeight)throw new Error("Image dimensions exceed resource limits");return Object.freeze({pixelWidth:o.pixelWidth,pixelHeight:o.pixelHeight,dpiX:o.dpiX??96,dpiY:o.dpiY??96})},...e.convertPreserved?{convertPreserved:e.convertPreserved}:{}})}var gt=new WeakMap;function ht(e,t){let r=gt.get(e);r||(r=chunkQFKGI242_cjs.Le(e),gt.set(e,r));let n=r.styleCascade(),o=new Set;if(t===e.part())for(let c of chunkQFKGI242_cjs.rd(t,void 0,void 0,n,r.numberingIndex()))for(let h of chunkQFKGI242_cjs.ob(c)?.slice(0,-1)??[])o.add(h.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let h=c.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===chunkPWTRJSES_cjs.la&&d.localName==="pPr"),p=h?.kind!=="textValue"?h?.children.find(d=>d.kind!=="textValue"&&d.namespaceUri===chunkPWTRJSES_cjs.la&&d.localName==="rPr"):void 0;return p!==void 0&&chunkPWTRJSES_cjs.Aa(p,"vanish")},i=0,s=(c,h)=>{if(++i>chunkPWTRJSES_cjs.Hd||h>chunkPWTRJSES_cjs.$||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(chunkQFKGI242_cjs.pd(c,n,false)||a(c))&&chunkPWTRJSES_cjs.jg(c).length>0)return true;for(let p of c.children){if(i>=chunkPWTRJSES_cjs.Hd)break;if(s(p,h+1))return true}return false};return s(t.root,0)}var wt=new WeakMap,Gt=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function Yt(e,t){let r=wt.get(e.root);if(r&&r.stylesPart===t)return r.codes;let n=chunkPWTRJSES_cjs.ab(t),o=new Set,a=[{node:e.root,scope:chunkPWTRJSES_cjs.td(),depth:0,mcSelected:false,framed:false}],i=0;for(;a.length;){let{node:c,scope:h,depth:p,mcSelected:d,framed:y}=a.pop();if(++i>chunkPWTRJSES_cjs.Hd||p>chunkPWTRJSES_cjs.$){o.add("scan-limit");break}if(c.kind==="textValue")continue;if(i+a.length+c.children.length>chunkPWTRJSES_cjs.Hd){o.add("scan-limit");break}let g=chunkPWTRJSES_cjs.sd(h,c),w=y||n(c),l=chunkPWTRJSES_cjs.rd(c)?c:void 0;if(l){if(chunkPWTRJSES_cjs.Ld(l,g).drawing)continue;let m=chunkPWTRJSES_cjs.Kd(l,g);m.refused&&o.add("scan-limit"),m.branch&&a.push({node:m.branch,scope:g,depth:p+1,mcSelected:true,framed:w});continue}if(!d&&chunkPWTRJSES_cjs.od(c)&&!(w&&c.localName==="object")){let m=chunkPWTRJSES_cjs.qd(c,e.name)?.textboxStory?.content;m&&a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});continue}if(c.namespaceUri==="urn:schemas-microsoft-com:vml"&&c.localName==="textbox"){o.add("legacy-textbox");continue}c.namespaceUri==="urn:schemas-microsoft-com:vml"&&Gt.has(c.localName)&&!c.children.some(m=>m.kind!=="textValue"&&m.namespaceUri==="urn:schemas-microsoft-com:vml"&&m.localName==="textbox")&&o.add("legacy-drawing");for(let m of c.children)a.push({node:m,scope:g,depth:p+1,mcSelected:d,framed:w});}let s=Object.freeze([...o]);return wt.set(e.root,{stylesPart:t,codes:s}),s}function xt(e){let t=new Set([e.part()]);for(let r of e.headerFooterPartsBySection())for(let n of [r.headers,r.footers])for(let o of n.values())t.add(o);for(let r of ["footnote","endnote"]){let n=chunkPWTRJSES_cjs.ch(e.currentPackage(),r);n&&t.add(n);}return Object.freeze([...t].flatMap(r=>[...Yt(r,chunkPWTRJSES_cjs.bd(e.currentPackage())),...ht(e,r)?["unsupported-style-separator"]:[]].map(n=>Object.freeze({code:n,partName:r.name}))))}function bt(e){return chunkPWTRJSES_cjs.kf(e.fieldResults,()=>chunkQFKGI242_cjs.gf(Xt(e)))}function Xt(e){return chunkQFKGI242_cjs.hf(e.fieldResults,qt(e))}function*qt(e){let t=e.defaultTabStopPt?.(),r=e.view.part().name,n={view:e.view,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,compatibilityMode:e.compatibilityMode?.(),inlineDrawingLayoutForPart:e.inlineDrawingLayoutForPart,drawingTokenForParagraphForPart:e.drawingTokenForParagraphForPart,drawingLayoutEpochForPart:e.drawingLayoutEpochForPart,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},o=chunkQFKGI242_cjs._e(n),a={view:e.view,revision:e.revision,measurer:e.measurer,cache:e.cache,session:e.session,producer:e.producer,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,furniture:e.furniture,compatibilityMode:e.compatibilityMode,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,fieldResults:e.fieldResults,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,bodyBlockLimit:e.bodyBlockLimit},i={measurer:a.measurer,cache:a.cache,session:a.session,producer:a.producer,styleCascade:a.styleCascade?.(),defaultTabStopPt:a.defaultTabStopPt,compatibilityMode:a.compatibilityMode?.(),numberingIndex:a.numberingIndex?.(),sectionFurniture:a.furniture.sectionFurniture(),furniture:a.furniture.furniture(),evenAndOddHeaders:a.view.headerFooterPartsBySection()[0]?.evenAndOddHeaders===true,projectLink:a.linkProjectors.projectLink,projectFieldLink:a.projectFieldLink,showFieldCodes:a.showFieldCodes,fieldResults:a.fieldResults,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(r,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(r,s),projectionEpoch:a.linkProjectors.epochForPart(r),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter,bodyBlockLimit:a.bodyBlockLimit};return yield*chunkQFKGI242_cjs.Jf(a.view.part(),a.revision,i)}var Jt=65536;function St(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function Qt(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}function Zt(e,t,r){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===r:true}function er(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let r=null;return chunkQFKGI242_cjs.Ba(e,n=>{if(r||!Zt(t,n.story,n.noteScopeId))return;let o=n.story==="header"||n.story==="footer"?a=>chunkQFKGI242_cjs.wa(a,n.origin,{x:e.box.x,y:e.box.y}):void 0;chunkQFKGI242_cjs.Fa(n.host,(a,i)=>{if(r||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);Qt(s,t.textboxPath)&&(r=St(e,i.storyOrigin));},n.origin,o);}),r}function tr(e,t){if(t.story==="textbox")return er(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?chunkQFKGI242_cjs.ze(e,e.header.box):{x:0,y:0};case "footer":return e.footer?chunkQFKGI242_cjs.ze(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let n=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return n?chunkQFKGI242_cjs.ze(e,n.box):{x:0,y:0}}case "note-separator":{let r=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,n=r?.separator?.box;return r?.continuationNotice&&chunkQFKGI242_cjs.Fa(r.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(n=r.continuationNotice.box);}),n?chunkQFKGI242_cjs.ze(e,n):{x:0,y:0}}default:return {x:0,y:0}}}function It(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function Rt(e,t){let r=chunkQFKGI242_cjs.ye(e);return Object.freeze({x:r.x+t.x,y:r.y+t.y,width:t.width,height:t.height})}function rr(e,t){let r=chunkQFKGI242_cjs.oe(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!r||r.pageIndex!==t.pageIndex)return;let n=e.pages[r.pageIndex];if(!n)return;let o=tr(n,t),a=Object.freeze([It({x:r.x+o.x,y:r.y+o.y,width:0,height:r.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>Rt(n,i)))})}function nr(e,t,r){let n=r.filter(i=>i.pageIndex===t.pageIndex);if(n.length===0)return Ot(t)?rr(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(n.map(i=>It(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>Rt(o,i)))})}function Ot(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function vt(e,t){return `${e}\0${t}`}function or(e,t,r){let n=Math.max(e.start,t.offset),o=Math.min(e.end,r.offset);return o>n?{start:n,end:o}:null}function ar(e,t){let r=new Map,n=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=Jt)return false;a+=1;let h=vt(s.pageIndex,c),p=n.get(h);return p?p.push(s):n.set(h,[s]),true};for(let[s,c]of t.entries())for(let[h,p]of c.occurrences.entries()){if(Ot(p)||p.source.start.paragraphId!==p.source.end.paragraphId)continue;o.add(p.pageIndex);let d=`${s}\0${h}`,y={paragraphId:p.source.start.paragraphId,offset:p.source.start.offset},g={paragraphId:p.source.end.paragraphId,offset:p.source.end.offset},w=y.offset<=g.offset?{from:y,to:g}:{from:g,to:y};i({key:d,from:w.from,to:w.to,pageIndex:p.pageIndex},w.from.paragraphId);}if(n.size===0)return r;for(let s of e.pages)o.has(s.index)&&chunkQFKGI242_cjs.Ba(s,c=>{let h=c.story==="header"||c.story==="footer"?p=>chunkQFKGI242_cjs.wa(p,c.origin,{x:s.box.x,y:s.box.y}):void 0;chunkQFKGI242_cjs.Fa(c.host,(p,d)=>{let y=St(s,d.storyOrigin);for(let g of p.lines)for(let w of chunkQFKGI242_cjs.La(g)){let l=n.get(vt(s.index,w.paragraphId));if(l)for(let m of l){let b=or(w,m.from,m.to);if(!b)continue;let x=chunkQFKGI242_cjs.he(g,b.start,void 0,w),v=chunkQFKGI242_cjs.he(g,b.end,void 0,w,b.end>b.start),I=r.get(m.key)??[];I.push({pageIndex:s.index,x:Math.min(x,v)+y.x,y:g.box.y+y.y,width:Math.abs(v-x),height:g.box.height}),r.set(m.key,I);}}},c.origin,h);});return r}function kt(e,t){let r=false;for(let o of t)if(o.occurrences.length!==0){r=true;break}if(!r)return t;let n=ar(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let h=`${a}\0${c}`,p=nr(e,s,n.get(h)??[]);return p?{...s,geometry:p}:s});return {...o,occurrences:Object.freeze(i)}})}function ir(e){let t=new Map,r=[{node:e.root,depth:0}];for(;r.length>0;){let{node:n,depth:o}=r.pop();if(!(n.kind==="textValue"||o>64)){n.kind==="paragraph"&&!t.has(n.id)&&t.set(n.id,t.size);for(let a=n.children.length-1;a>=0;a-=1)r.push({node:n.children[a],depth:o+1});}}return t}function Mt(){let e=new Map,t=n=>{let o=e.get(n.root);if(o)return o;let a=ir(n);return e.set(n.root,a),a},r={retainRevisionItems:false,revisionSites:chunkPWTRJSES_cjs.ak,locations:chunkPWTRJSES_cjs.fk,commentAnchors:chunkPWTRJSES_cjs._h,deepOrder:t};return Object.freeze({collectReviewItems:n=>chunkPWTRJSES_cjs.jk(n,r),deepParagraphOrderOfPart:t})}function sr(e,t){if(t)return true;let r=e.map(n=>n.root);for(;r.length>0;){let n=r.pop();if(chunkPWTRJSES_cjs._j(n))return true;if(n.kind!=="textValue")for(let o of n.children)r.push(o);}return false}function cr(e,t){let r=[],n=new Set([t.name]),o=a=>{!a||n.has(a.name)||(n.add(a.name),r.push(a));};for(let a of chunkPWTRJSES_cjs.ff(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(chunkPWTRJSES_cjs.ch(e,"footnote")),o(chunkPWTRJSES_cjs.ch(e,"endnote")),r}function dr(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return chunkPWTRJSES_cjs.ch(e,"footnote")?.name??null;case "endnote":return chunkPWTRJSES_cjs.ch(e,"endnote")?.name??null;case "note-separator":return chunkPWTRJSES_cjs.ch(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function ur(e,t){let r=new Map;for(let n of e){let o=t.get(n.partName),a=o?.get(n.start.paragraphId),i=o?.get(n.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),h=r.get(n.partName);r.set(n.partName,{lower:Math.min(h?.lower??s,s),upper:Math.max(h?.upper??c,c)});}return r}function lr(e,t,r,n,o){let a=new Map(r.map(d=>[d.name,o(d)])),i=ur(n,a),s=new Map,c=new Map,h=(d,y,g,w,l,m,b)=>{let x=a.get(d)?.get(l),v=i.get(d);if(x===void 0||!v||x<v.lower||x>v.upper)return;let I=s.get(d)??new Map;s.set(d,I);let V=c.get(d)??new Map;c.set(d,V);let W=JSON.stringify([y.story,y.noteScopeId,y.noteAreaKind]),K=g==="textbox"?JSON.stringify([W,"textbox",w]):W,$=I.get(l)??[],j=`${l}\0${y.page.index}\0${K}`,T=V.get(j);T||(T={pageIndex:y.page.index,story:g,rootStory:y.story,textboxPath:w,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(j,T),$.push(T),I.set(l,$));let U=`${m}\0${b}`;T.intervalKeys?.has(U)||(T.intervalKeys?.add(U),T.intervals.push({start:m,end:b}));};chunkQFKGI242_cjs.Ca(e,d=>{let y=dr(t,d);!y||!i.has(y)||chunkQFKGI242_cjs.Fa(d.host,(g,w)=>{let l=w.textboxDepth>0?"textbox":d.story,m=w.textboxPath.map(x=>x.drawingNodeId),b=[];for(let x of g.lines){for(let v of x.spans)b.push(v.range);for(let v of x.drawings??[])b.push({paragraphId:v.paragraphId,start:v.start,end:v.start+1});}b.length===0&&b.push({paragraphId:g.range.paragraphId,start:g.range.start,end:g.range.end});for(let{paragraphId:x,start:v,end:I}of b)h(y,d,l,m,x,v,I);});}),chunkQFKGI242_cjs.Ea(e,d=>{let y=d.drawing.ownerPartName;d.drawing.accessibility.hidden||!i.has(y)||h(y,d.root,d.story,d.textboxPath.map(g=>g.drawingNodeId),d.drawing.paragraphId,d.drawing.start,d.drawing.start+1);});for(let d of s.values())for(let y of d.values())for(let g of y){g.intervals.sort((l,m)=>l.start-m.start||l.end-m.end);let w=[];for(let l of g.intervals){let m=w.at(-1);m&&l.start<=m.end?m.end=Math.max(m.end,l.end):w.push({...l});}g.intervals.splice(0,g.intervals.length,...w),g.intervalKeys=void 0;}let p=new Map;for(let[d,y]of s){let g=a.get(d);if(!g)continue;let w=[];for(let[l,m]of y){let b=g.get(l);b!==void 0&&w.push({paragraphId:l,position:b,laneKeys:new Set(m.map(({laneKey:x})=>x))});}w.sort((l,m)=>l.position-m.position),p.set(d,w);}return {byPart:s,orderByPart:a,visibleByPart:p}}function Dt(e,t){let r=0,n=e.length;for(;r<n;){let o=r+n>>>1;e[o].position<t?r=o+1:n=o;}return r}function pr(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let r=t.orderByPart.get(e.partName),n=t.visibleByPart.get(e.partName),o=r?.get(e.start.paragraphId),a=r?.get(e.end.paragraphId);if(!r||!n||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),c=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:d})=>d)??[]),h=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:d})=>d)??[]),p=new Set([...c].filter(d=>h.has(d)));return p.size===0?[e.start.paragraphId,e.end.paragraphId]:n.slice(Dt(n,i),Dt(n,s+1)).filter(d=>[...d.laneKeys].some(y=>p.has(y))).map(d=>d.paragraphId)}function mr(e,t,r,n){return n?e.intervals.filter(a=>a.start<=t&&t<a.end).length>0?[{start:t,end:t}]:[]:e.intervals.flatMap(o=>{if(o.start===o.end)return [];let a={start:Math.max(o.start,t),end:Math.min(o.end,r)};return a.end>a.start?[a]:[]})}function fr(e,t){let r=Number.NEGATIVE_INFINITY;for(let n of e)for(let o of n.intervals)r=Math.max(r,o.end);return t!==r?new Set:new Set(e.filter(n=>n.intervals.some(o=>o.end===r)))}function Lt(e,t,r){let n=[],o=new Set;for(let[a,i]of e.entries()){let s=r===void 0?void 0:r===null?"neutral":a<r?"replaced":"replacement";for(let c of pr(i,t)){let h=t.byPart.get(i.partName)?.get(c)??[],d=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,y=c===i.start.paragraphId?i.start.offset:0,g=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,w=d?fr(h,y):new Set;for(let l of h){let m=mr(l,y,g,d);d&&m.length===0&&w.has(l)&&(m=[{start:y,end:y}]);for(let b of m){let x=`${l.pageIndex}\0${l.story}\0${l.noteScopeId??""}\0${l.noteAreaKind??""}\0${l.textboxPath.join("\0")}\0${i.partName}\0${c}\0${b.start}\0${b.end}\0${s??""}`;o.has(x)||(o.add(x),n.push({pageIndex:l.pageIndex,physicalPageNumber:l.pageIndex+1,story:l.story,rootStory:l.rootStory,textboxPath:l.textboxPath,noteScopeId:l.noteScopeId,noteAreaKind:l.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:b.start},end:{paragraphId:c,offset:b.end}}}));}}}}return n}function At(e,t){let r=2166136261,n=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);r=Math.imul(r^a,16777619)>>>0,n=Math.imul(n^a+o,2246822507)>>>0,n^=n>>>13;}return `${e}_${t.length.toString(36)}_${r.toString(36)}_${n.toString(36)}`}function Et(e,t,r=At){let n=new Map;for(let a of t){let i=r(e,a),s=n.get(i)??new Set;s.add(a),n.set(i,s);}let o=new Map;for(let[a,i]of n){let s=[...i].sort();for(let[c,h]of s.entries())o.set(h,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function yr(e){let t=new Set,r=new Set;for(let n of e){if(n.kind==="comment"){t.add(n.id),n.parentId!==void 0&&t.add(n.parentId),n.parentRevisionId!==void 0&&r.add(n.parentRevisionId);for(let o of n.replyIds)t.add(o);}if(n.kind==="revision"){r.add(n.id),n.pairedWith!==void 0&&r.add(n.pairedWith);for(let o of n.replyIds)t.add(o);}}return {comment:Et("comment",t),revision:Et("change",r)}}function _(e,t,r){return e.get(r)??At(t,r)}function gr(e,t,r){return e.kind==="revision"?{kind:"tracked-change",id:_(r.revision,"change",e.id),change:e.revisionKind,...e.structuralChanges?{structuralChanges:e.structuralChanges}:{},...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:chunkPWTRJSES_cjs.jb(e.text),replacedText:chunkPWTRJSES_cjs.jb(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:_(r.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(n=>_(r.comment,"comment",n)),occurrences:t?Lt(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]}:e.kind!=="comment"?null:{kind:"comment",id:_(r.comment,"comment",e.id),author:e.comment.author,initials:chunkPWTRJSES_cjs.Pj(e.comment),...e.comment.date!==void 0?{date:e.comment.date}:{},text:chunkPWTRJSES_cjs.Nj(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:_(r.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:_(r.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(n=>_(r.comment,"comment",n)),orphaned:e.orphaned,occurrences:t&&e.range?Lt([e.range],t):[]}}function Ft(e,t){let r=t.parts.get(t.mainDocumentPart);if(!r)return [];let n=cr(t,r),o=[r,...n],a=t.parts.get(chunkYBMWBXST_cjs.aa(t,r.name));if(!sr(o,a))return [];let i=Mt(),s=i.collectReviewItems({storyPart:r,furnitureParts:n,commentsPart:a,commentsExtendedPart:t.parts.get(chunkYBMWBXST_cjs.ba(t,r.name))});if(s.length===0)return [];let c=s.flatMap(d=>chunkPWTRJSES_cjs.zj(d)),h=c.length>0?lr(e,t,o,c,i.deepParagraphOrderOfPart):null,p=yr(s);return s.map(d=>gr(d,h,p)).filter(d=>d!==null)}var hr=new Set(["part","validatedHandle"]);function Tt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function q(e,t,r,n,o){if(!(n!==void 0&&hr.has(n))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(r.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),r.add(e);try{if(Array.isArray(e)){for(let a of e)q(a,t,r,void 0,o);Object.freeze(e);return}if(!Tt(e))throw new TypeError("Semantic layout publication encountered a non-record value");for(let a of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,a);if(i){if(!("value"in i))throw new TypeError("Semantic layout publication encountered an accessor property");q(i.value,t,r,a,o);}}Object.freeze(e);}finally{r.delete(e);}}}}}function Ct(e){if(!Tt(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let n of e.pages)if(!(n===null||typeof n!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(n,o);if(!a||!("value"in a))continue;let i=a.value;if(i===null||typeof i!="object"||t.has(i))continue;let s=new Set;s.add(e),q(i,new Set,s,o),t.add(i);}let r=(n,o)=>{let a=new Set;for(let i of n){let s=new Set;s.add(e),q(i,a,s,void 0,o);}Object.freeze(n);};for(let n of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,n);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(n==="pages"&&Array.isArray(o.value)){r(o.value,t);continue}if(n==="reviewArtifacts"&&Array.isArray(o.value)){r(o.value);continue}let a=new Set;a.add(e),q(o.value,new Set,a,n);}return Object.freeze(e),e}var wr=Object.freeze([]),k=class extends Error{constructor(r,n,o){super(n,o);this.code=r;this.name="ExportResourceError";}code};function xr(e){try{return e instanceof k}catch{return false}}function br(e){try{return e instanceof chunkQFKGI242_cjs.Ve}catch{return false}}function Pr(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function vr(e){if(xr(e))return e;let t=br(e),r=Pr(e),n=r?`: ${r}`:"",o=new k(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${n}`:`Export layout failed${n}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function Sr(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("resourceTimeoutMs must be a positive finite number");return Math.max(1,e)}function Nt(e){if(e==="all-markup"||e==="simple-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, simple-markup, proposed, or original")}var Ir=50,ye=64;function Rr(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Or(e){let t=false;return chunkQFKGI242_cjs.Ea(e,({drawing:r})=>{Rr(r.resource)&&(t=true);}),t}function jt(e){return !ArrayBuffer.isView(e)}function Yn(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};if(t.revisionAuthorSlots!==void 0&&(!t.revisionAuthorSlots||typeof t.revisionAuthorSlots!="object"||Array.isArray(t.revisionAuthorSlots)))throw new TypeError("revisionAuthorSlots must map author names to nonnegative safe integers.");let r=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([f,P])=>{if(!Number.isSafeInteger(P)||P<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [f,P]}))),n=t.revisionMarkup?chunkQFKGI242_cjs.Va(t.revisionMarkup):void 0,o=n?{revisionMarkup:n,hiddenAuthors:new Set,cacheKey:JSON.stringify(n)}:void 0,a=Nt(t.displayMode??chunkQFKGI242_cjs.Za),i=jt(e),s=jt(e)?{ok:true,view:e}:chunkYBMWBXST_cjs.Ca(e);if(!s.ok)return s;let c=s.view,h=t.reuseAcrossRevisions??i,p=Sr(t.resourceTimeoutMs),d=t.measurer??chunkQFKGI242_cjs.ha(),y=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),g=chunkQFKGI242_cjs.He({retainAcrossPasses:h}),w=0,l=new Set,m=()=>{w+=1;for(let f of l)f();l.clear();},b=chunkQFKGI242_cjs.Ne({session:c,decodePort:t.imageDecodePort??yt(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:m}),x={view:c,measurer:d,paragraphCache:g,sessions:new Map,completed:new Map,inFlight:new Map,styles:chunkQFKGI242_cjs.Le(c),fieldLinks:new Map,links:chunkQFKGI242_cjs.af(c),drawingBundle:b,furniture:new Map},v=new AbortController,I=t.signal,V=false,W=()=>V?new k("aborted","Export resource settlement was aborted"):new k("disposed","Export session has been disposed"),K=()=>{V=true,$();};function $(){let f=x;if(f){x=null,I?.removeEventListener("abort",K),v.abort(I?.reason),f.drawingBundle.dispose(),f.paragraphCache.clear();for(let P of f.completed.values())chunkQFKGI242_cjs.hc(P.internal),chunkQFKGI242_cjs.if(P.internal);for(let P of f.fieldLinks.values())P.registry.clear();f.fieldLinks.clear(),f.completed.clear(),f.inFlight.clear(),f.furniture.clear(),f.sessions.clear(),m();}}I?.addEventListener("abort",K,{once:true}),I?.aborted&&K();let j=()=>{if(!x)throw W();if(v.signal.aborted)throw new k("aborted","Export resource settlement was aborted")},T=(f,P,D,u)=>w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D?Promise.resolve():(j(),new Promise((B,O)=>{let M=false,C,L=A=>{M||(M=true,C!==void 0&&clearTimeout(C),l.delete(E),v.signal.removeEventListener("abort",G),A?O(A):B());},E=()=>L(),G=()=>L(new k("aborted","Export resource settlement was aborted")),Y=()=>{if(x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){L();return}let A=u-Date.now();if(A<=0){L(new k("timedOut",`Image resources did not settle within ${p}ms`));return}C=setTimeout(Y,Math.min(Ir,A));};if(l.add(E),v.signal.addEventListener("abort",G,{once:true}),w!==f||x?.view.packageRevision()!==P||x?.view.currentPackage()!==D){L();return}Y();})),U=async(f,P=0,D=Date.now()+p)=>{if(j(),Date.now()>=D)throw new k("timedOut",`Export layout did not stabilize within ${p}ms`);let u=x,B=D,O=u.view.packageRevision(),M=u.view.currentPackage(),C=u.completed.get(f);if(C&&C.revision===O&&C.pkg===M)return C.published;let L=()=>{if(u.view.packageRevision()===O&&u.view.currentPackage()===M)return null;if(P>=ye-1)throw new k("nonConvergent","Document revision did not stabilize during export layout");return U(f,P+1,B)},E=u.fieldLinks.get(f);if(!E||E.revision!==O||E.pkg!==M){let R=E?.registry??chunkQFKGI242_cjs.bf();R.clear(),E={revision:O,pkg:M,registry:R},u.fieldLinks.set(f,E),u.furniture.delete(f);}let G=E.registry,Y=u.sessions.get(f)??chunkQFKGI242_cjs.Hf();u.sessions.set(f,Y);let A=u.furniture.get(f);A||(A=chunkQFKGI242_cjs.Ze({view:u.view,measurer:u.measurer,producer:y,cache:u.paragraphCache,styleCascade:u.styles.styleCascade,numberingIndex:u.styles.numberingIndex,defaultTabStopPt:u.styles.defaultTabStopPt,compatibilityMode:u.styles.compatibilityMode,displayMode:chunkQFKGI242_cjs.Ya(f),revisionAuthorFilter:f==="simple-markup"?chunkQFKGI242_cjs._a(o):o,showFieldCodes:false,inlineDrawingLayoutForPart:R=>u.drawingBundle.contextForPart(R),drawingLayoutTokenForPart:R=>u.drawingBundle.cacheTokenForPart(R),drawingTokenForParagraphForPart:(R,ae)=>u.drawingBundle.drawingTokenForParagraph(ae,R),linkProjectors:u.links,projectFieldLink:R=>G.project(R)}),u.furniture.set(f,A));for(let R=0;R<ye;R+=1){let ae=w;u.drawingBundle.sync(u.view);let he=L();if(he)return he;let N=bt({view:u.view,revision:u.view.packageRevision(),measurer:u.measurer,cache:u.paragraphCache,session:Y,producer:y,styleCascade:u.styles.styleCascade,defaultTabStopPt:u.styles.defaultTabStopPt,numberingIndex:u.styles.numberingIndex,furniture:A,compatibilityMode:u.styles.compatibilityMode,linkProjectors:u.links,projectFieldLink:S=>G.project(S),inlineDrawingLayout:u.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>u.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>u.drawingBundle.drawingTokenForParagraph(S,u.view.part().name),drawingTokenForParagraphForPart:(S,J)=>u.drawingBundle.drawingTokenForParagraph(J,S),drawingLayoutEpoch:u.drawingBundle.cacheTokenForPart(u.view.part().name),drawingLayoutEpochForPart:S=>u.drawingBundle.cacheTokenForPart(S),displayMode:chunkQFKGI242_cjs.Ya(f),revisionAuthorFilter:f==="simple-markup"?chunkQFKGI242_cjs._a(o):o,showFieldCodes:false,bodyBlockLimit:void 0,fieldResults:"atomic"});if(!Or(N)){let S=L();if(S)return S;h||(chunkQFKGI242_cjs.hc(N),chunkQFKGI242_cjs.if(N),u.paragraphCache.clear(),u.sessions.delete(f),u.furniture.delete(f));let J=Ft(N,M),Bt=J.length===0?wr:Object.freeze(kt(N,J)),_t=ft(u.view,N),Vt={...N,..._t,reviewDisplayMode:f,...n?{revisionMarkup:n}:{},...r?{revisionAuthorSlots:r}:{},facingPages:[...M.parts.values()].some(Pe=>Pe.root.localName==="settings"&&Pe.root.children.some(Q=>Q.kind!=="textValue"&&(Q.localName==="mirrorMargins"||Q.localName==="evenAndOddHeaders")&&!Q.attributes.some(ve=>ve.localName==="val"&&["0","false","off"].includes(ve.value)))),contentWarnings:xt(u.view),reviewArtifacts:Bt},be=Ct(Vt);return u.completed.set(f,{revision:O,pkg:M,internal:N,published:be}),be}let we=ae;for(;u.drawingBundle.pendingResourceCount()>0;){await T(we,O,M,B),we=w,j();let S=L();if(S)return S}j();let xe=L();if(xe)return xe}throw new k("nonConvergent",`Image resources did not reach quiescence after ${ye} layout passes`)},ge=f=>{let P;try{P=Nt(f);}catch(O){return Promise.reject(O)}if(!x)return Promise.reject(W());let D=x,u=D.inFlight.get(P);if(u)return u;let B=U(P).catch(O=>{throw vr(O)}).finally(()=>D.inFlight.delete(P));return D.inFlight.set(P,B),B};return {ok:true,session:{layout:()=>ge(a),layoutFor:ge,validatedImageBytes(f){let P=x;return !P||f.resource.kind!=="ready"?null:P.drawingBundle.mintValidatedBytes(f.resource.validatedHandle,f.resource.contentId)?.slice()??null},dispose:$}}}exports.a=Xt;exports.b=Er;exports.c=yt;exports.d=k;exports.e=Yn;
@@ -0,0 +1,3 @@
1
+ 'use strict';var chunkQFKGI242_cjs=require('./chunk-QFKGI242.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');var nr=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let d=i*2n;(d>t||d===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let c=r?-a:a,s=Number(c);if(!Number.isSafeInteger(s))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return s},Je=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");if(e===0||n===0)return chunkQFKGI242_cjs.n(0);let o=e*n;if(Number.isSafeInteger(o)){let a=Math.abs(o),i=a%t,c=(a-i)/t;return r!=="towardZero"&&(i>t-i||i===t-i&&(r==="halfAwayFromZero"||r==="halfToEven"&&c%2!==0))&&(c+=1),chunkQFKGI242_cjs.n(c===0?0:o<0?-c:c)}return chunkQFKGI242_cjs.n(nr(BigInt(e)*BigInt(n),BigInt(t),r))},Xt=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>Je(i,a,o,r)},Vt=(e,t,n)=>{let r=t*n,o=e*2;return a=>a*r/o};var rr=4096,jt=e=>typeof e=="number"?String(e):JSON.stringify(e)??typeof e,Oe=class{constructor(t){this.onRestart=t;}onRestart;#e=new Map;keyOf(t,n){let r=chunkQFKGI242_cjs.r(n),o=this.#e.get(r);o===void 0&&(this.#e.size>=rr&&(this.#e.clear(),this.onRestart()),o=this.#e.size,this.#e.set(r,o));let a=`${o}\0${jt(t.fontSizeHalfPoints)}\0${jt(t.bidiLevel)}\0`,i=t.context;return !i||i.before===""&&i.after===""?`${a}-${t.text}`:`${a}c${i.before.length},${i.after.length}\0${i.before}${i.after}${t.text}`}clear(){this.#e.clear();}};function ee(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function Yt(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>ee(t))}function ir(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function $t(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function qt(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16.0 and 22.3.0. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${Yt(e instanceof Error?e.message:String(e))})`}function Zt(e){let t=Yt(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${t})`}function Jt(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var J=Object.freeze({name:"HarfBuzz",version:"14.4.0"}),de=null,ce=null;function et(){return de?Promise.resolve():ce||(ce=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==J.version)throw new B("shapingLibraryMismatch",{diagnostic:Jt(J.version,t)});de=e;}).catch(e=>{throw ce=null,e instanceof B?e:$t(e)?new B("unsupportedRuntime",{diagnostic:qt(e),cause:e}):new B("wasmUnavailable",{diagnostic:Zt(e),cause:e})}),ce)}function sr(){return de!==null}function cr(){if(!de)throw new B("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return de}var B=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},lr=16*1024*1024,dr=1e6,ur=1e6,pr=1e6,fr=4,yr=512,mr=1024*1024,hr=16*1024*1024,gr=32*1024*1024,Sr=64*1024*1024,br=64*1024*1024,xr=1e6,Rr=1e6,Fr=1e6,Cr=64,vr=4096,Er=4*1024*1024,Lr=64*1024*1024,Br=64*1024*1024,Or=256*1024*1024,Tr=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Qt=["cmap","head","hhea","hmtx","maxp"],Ir=(e,t)=>e[t]<<8|e[t+1],wr=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Ar=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?wr(e,12+t*4):0,Pr=(e,t)=>{let n=Ar(e,t),r=Ir(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},_r=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Mr=(e,t)=>{let n=chunkQFKGI242_cjs.l(e,t);if(!n.valid)return n;let r=Pr(e,t);for(let o of Qt)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},tt=Mr,z=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},zr=(e,t,n)=>{if(t.length===0)return [];let r=[],o=0;for(;o<t.length;){let a=t[o].cluster,i=o+1,c=t[o].advanceX;for(;i<t.length&&t[i].cluster===a;)c+=t[i].advanceX,i+=1;let s=chunkQFKGI242_cjs.n(c);r.push({textStart:a,textEnd:n==="rtl"?t[o-1]?.cluster??e.length:t[i]?.cluster??e.length,glyphStart:o,glyphEnd:i,advance:s,caretEdges:Object.freeze([chunkQFKGI242_cjs.n(0),s]),fontSpan:0}),o=i;}return r},D=64,G=8,W=8,en=32,nt=D+2*G,kr=D+G+W,Nr=D+G+2*W,Dr=D+G+W,tn=D+8*G,nn=D+8*W+G,Hr=D+6*W+G,Ur=D+3*W+2*G,Gr=D+3*W,ue=e=>D+e.length*Uint16Array.BYTES_PER_ELEMENT,rt=e=>Dr+ue(e),le=e=>en+e*G,Wr=(e,t)=>nt+ue(e)+kr+rt(t),Kr=e=>tn+ue(e)+le(e.length)+e.length*nn,Xr=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return tn+ue(e.text)+le(e.glyphs.length)+e.glyphs.length*nn+le(e.clusters.length)+e.clusters.length*Hr+e.clusters.reduce((n,r)=>n+le(r.caretEdges.length),0)+le(e.fontSpans.length)+e.fontSpans.length*Ur+(e.exactAdvancesX===void 0?0:en+e.exactAdvancesX.length*W)+Gr+[...t].reduce((n,r)=>n+rt(r.path),0)},Vr=(e,t)=>nt+ue(e)+Nr+t,Qe=class{#e;#p;#f;#y;#m;#R;#h;#l=0;#F;#g;#S;#c;#b;#d;#t;#o=new Map;#i=new Map;#s=new Map;#n=new Map;#C=new Oe(()=>{this.#n.clear(),this.#r=0,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0}));});#a=0;#r=0;#x=0;#u;constructor(t,n){this.#e=t,this.#p=z(n.maxFontBytes??lr,"maximum font bytes",br),this.#f=z(n.maxInputUtf16??dr,"maximum input UTF-16 code units",xr),this.#y=z(n.maxCodepoints??ur,"maximum input code points",Rr),this.#m=z(n.maxGlyphs??pr,"maximum shaped glyphs",Fr),this.#h=z(n.maxCachedFontBytes??64*1024*1024,"maximum cached font bytes",64*1024*1024),this.#R=z(n.maxCachedFaces??fr,"maximum cached faces",Cr),this.#F=z(n.maxCachedShapes??yr,"maximum cached shape results",vr),this.#g=z(n.maxOutlineBytes??mr,"maximum outline bytes",Er),this.#S=z(n.maxCachedOutlineBytes??hr,"maximum cached outline bytes",Lr),this.#c=z(n.maxShapedRunBytes??gr,"maximum shaped run bytes",Br),this.#b=z(n.maxCachedShapeBytes??Sr,"maximum cached shape bytes",Or),this.#d=n.instrumentation?.onFaceCacheEvent,this.#t=n.instrumentation,this.#u=new this.#e.Buffer;}dispose(){this.#o.clear(),this.#l=0,this.#i.clear(),this.#s.clear(),this.#n.clear(),this.#C.clear(),this.#a=0,this.#r=0,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#u=void 0;}#E(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=chunkQFKGI242_cjs.j(t);for(let l of Qt)if(!o.has(l))throw new B("malformedFont",{diagnostic:`missing required ${l} table`});this.#t?.onByteCopy?.();let a=new this.#e.Blob(_r(n)),i=new this.#e.Face(a,t.faceIndex),c=new this.#e.Font(i),s=c.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(s.ascender)||!Number.isSafeInteger(s.descender)||!Number.isSafeInteger(s.lineGap))throw new B("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});c.setScale(i.upem,i.upem);let d={identity:t.identity,blob:a,face:i,font:c,unitsPerEm:i.upem,byteLength:n.byteLength};if(n.byteLength<=this.#h){for(;this.#o.size>=this.#R||this.#l+n.byteLength>this.#h;){let l=this.#o.keys().next().value;if(l===void 0)break;this.#l-=this.#o.get(l).byteLength,this.#o.delete(l),this.#d?.(Object.freeze({kind:"evicted",identity:l}));}this.#o.set(t.identity,d),this.#l+=n.byteLength;}return this.#d?.(Object.freeze({kind:"created",identity:t.identity})),d}#L(t,n){let r=this.#i.get(t.identity)?.get(n);if(r)return this.#s.delete(r),this.#s.set(r,void 0),this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#a})),r.outline;this.#t?.onOutlinePathCall?.();let o=t.font.glyphToPath(n),a=rt(o);if(a>this.#g)throw new B("outlineOverLimit",{limit:this.#g,actual:a});let i=Object.freeze({path:o,unitsPerEm:t.unitsPerEm}),c=Wr(t.identity,o)+3*nt+2*W;if(c>this.#S)return this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#a})),i;for(;this.#a+c>this.#S;){let l=this.#s.keys().next().value;if(l===void 0)break;this.#s.delete(l);let f=this.#i.get(l.identity);f.delete(l.glyphId),f.size===0&&this.#i.delete(l.identity),this.#a-=l.bytes,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#a}));}let s=this.#i.get(t.identity);s||this.#i.set(t.identity,s=new Map);let d={outline:i,bytes:c,identity:t.identity,glyphId:n};return s.set(n,d),this.#s.set(d,void 0),this.#a+=c,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#a})),i}#v(t){if(t.length>this.#f)throw new B("textOverLimit",{limit:this.#f,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#y)throw new B("codepointsOverLimit",{limit:this.#y,actual:n})}}shape(t){if(!this.#u)throw new B("disposed");if(chunkQFKGI242_cjs.k(t.environment.font),t.environment.font.byteLength>this.#p)throw new B("fontOverLimit",{limit:this.#p,actual:t.environment.font.byteLength});this.#v(t.text);let n=Kr(t.text);if(n>this.#c)throw new B("shapedRunOverLimit",{limit:this.#c,actual:n});let r=chunkQFKGI242_cjs.p(t.environment),o=this.#C.keyOf(t,r),a=this.#n.get(o);if(a)return this.#x-a.stamp>=Math.max(1,this.#n.size>>1)&&(this.#n.delete(o),this.#n.set(o,a),a.stamp=++this.#x),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==J.name||r.shapingLibrary.version!==J.version)throw new B("shapingLibraryMismatch");if(r.normalization!=="none")throw new B("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new B("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new B("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new B("unsupportedFallback");let i=chunkQFKGI242_cjs.i(r.font),c=chunkQFKGI242_cjs.j(r.font);if([...Tr].some(y=>c.has(y))&&!c.has("glyf")&&!c.has("CFF "))throw new B("unsupportedColorFont");let s=t.text;this.#v(s);let d=t.context?.before??"",l=t.context?.after??"",f=chunkQFKGI242_cjs.o,h=Math.max(String(d).length,String(l).length);if(typeof d!="string"||typeof l!="string"||h>f)throw new B("textOverLimit",{limit:f,actual:h});try{let y=this.#E(r.font,i),{face:b,font:x}=y,m=this.#u;m.reset(),d||l?m.addText(d+s+l,d.length,s.length):m.addText(s),m.setDirection(r.direction==="rtl"?this.#e.Direction.RTL:this.#e.Direction.LTR),m.setScript(r.script),m.setLanguage(r.language),m.setClusterLevel(this.#e.ClusterLevel.MONOTONE_CHARACTERS);let g=Object.entries(r.features).map(([I,U])=>new this.#e.Feature(I,U));this.#t?.onShapeCall?.(),this.#e.shape(x,m,g);let S=m.getLength();if(S>this.#m)throw new B("glyphOverLimit",{limit:this.#m,actual:S});let F=m.getGlyphInfos(),v=m.getGlyphPositions(),C=Xt(b.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),T=Vt(b.upem,t.fontSizeHalfPoints,r.fixedPointScale),p=[],u=chunkQFKGI242_cjs.n(0),R=chunkQFKGI242_cjs.n(0),E=new Map,L=F.map((I,U)=>{let re=v[U];p.push(T(re?.xAdvance??0));let ht=C(re?.xAdvance??0),gt=C(re?.yAdvance??0),tr={id:I.codepoint,cluster:I.cluster-d.length,originX:u,originY:R,advanceX:ht,advanceY:gt,offsetX:C(re?.xOffset??0),offsetY:C(re?.yOffset??0),outline:E.get(I.codepoint)??(()=>{let St=this.#L(y,I.codepoint);return E.set(I.codepoint,St),St})()};return u=chunkQFKGI242_cjs.n(u+ht),R=chunkQFKGI242_cjs.n(R+gt),tr}),O=x.hExtents(),P=chunkQFKGI242_cjs.s({text:s,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:L,exactAdvancesX:p,clusters:zr(s,L,r.direction),fontSpans:L.length===0?[]:[{glyphStart:0,glyphEnd:L.length,font:r.font,fallbackIndex:null}],metrics:{ascent:C(O.ascender),descent:C(-O.descender),lineGap:C(O.lineGap)}},r),A=Xr(P);if(A>this.#c)throw new B("shapedRunOverLimit",{limit:this.#c,actual:A});let M=Vr(o,A);if(M>this.#b)return this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),P;for(;this.#n.size>=this.#F||this.#r+M>this.#b;){let I=this.#n.keys().next().value;if(I===void 0)break;let U=this.#n.get(I);this.#n.delete(I),this.#r-=U.bytes,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:P,bytes:M,stamp:++this.#x}),this.#r+=M,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),P}catch(y){throw y instanceof B?y:new B("malformedFont",{diagnostic:y instanceof Error?y.message:"HarfBuzz shaping failed"})}}},ot=(e={})=>new Qe(cr(),e);var at=Object.freeze({maxFontBytes:16*1024*1024,maxInputUtf16:1e6,maxCodepoints:1e6,maxGlyphs:1e6,maxCachedFaces:32,maxCachedFontBytes:64*1024*1024,maxCachedShapes:512,maxOutlineBytes:1024*1024,maxCachedOutlineBytes:16*1024*1024,maxShapedRunBytes:32*1024*1024,maxCachedShapeBytes:64*1024*1024}),Ha=Object.freeze({...at,maxCachedShapes:4096});function rn(e){let t={maxFontBytes:e.maxFontBytes,maxInputUtf16:e.maxInputUtf16,maxCodepoints:e.maxCodepoints,maxGlyphs:e.maxGlyphs,maxOutlineBytes:e.maxOutlineBytes,maxShapedRunBytes:e.maxShapedRunBytes},n=["docx-editor-layout-harfbuzz-execution-policy",1,Object.entries(t).sort(([r],[o])=>r<o?-1:r>o?1:0).map(([r,o])=>Object.freeze([r,o]))];return `layout-shaper-policy:sha256:${chunkPWTRJSES_cjs.f(new TextEncoder().encode(JSON.stringify(n)))}`}function on(e,t=at){let n=e?.maxFontBytes??t.maxFontBytes;if(!Number.isSafeInteger(n)||n<=0||n>chunkQFKGI242_cjs.a)throw new RangeError(`Font shaping byte ceiling must be between 1 and ${chunkQFKGI242_cjs.a}`);return n===t.maxFontBytes?t:Object.freeze({...t,maxFontBytes:n})}function an(e,t,n=false){let r=false;return Object.freeze({shape(o){if(r)throw new B("disposed");let a=o.environment.font;if(chunkQFKGI242_cjs.k(a),a.byteLength>t.maxFontBytes)throw new B("fontOverLimit",{limit:t.maxFontBytes,actual:a.byteLength});return e.shape(o)},dispose(){r||(r=true,n&&e.dispose?.());}})}var jr=Object.freeze({}),sn=chunkQFKGI242_cjs.b,Yr="16.0.0",$r="none",qr=1e3,Zr="halfToEven",dn="cluster-edges-only",Jr="Latn",Qr=new Uint8Array(0);var K=class extends Error{code="overLimit";constructor(t){super(t),this.name="LayoutShapingConfigurationError";}};function eo(e,t){let n=e.epoch,r=e.maxFontBytes,o=e.sources,a=e.substitutions,i=e.defaultFont,c=e.language;if(!Number.isSafeInteger(r)||r<=0||r>chunkQFKGI242_cjs.a)throw new K(`Font byte ceiling must not exceed the engine hard maximum of ${chunkQFKGI242_cjs.a}`);let s=o.length,d=a?.length??0;if(s===0||s>chunkQFKGI242_cjs.b)throw new K(`Font source count must be between 1 and ${chunkQFKGI242_cjs.b}`);if(d>sn)throw new K(`Font substitution count must not exceed ${sn}`);let l=0,f=[];for(let b=0;b<s;b+=1){let x=o[b],m=x.request,g=x.availability,S=x.id,F=x.hash,v=x.faceIndex,C=g==="forbidden",T=C?Qr:x.bytes;if(!C){if(typeof S!="string"||S.length===0)throw new TypeError("Resolved font id must not be empty");let p;try{p=chunkQFKGI242_cjs.e(T);}catch{throw new K(`Font source ${S} must provide genuine bytes`)}if(p>r)throw new K(`Font source ${S} exceeds the per-font byte ceiling`);if(l+=p,l>chunkQFKGI242_cjs.c)throw new K(`Font sources exceed the aggregate byte ceiling of ${chunkQFKGI242_cjs.c}`)}f.push(t&&chunkQFKGI242_cjs.g(x)!==void 0?x:Object.freeze({request:Object.freeze({family:m.family,weight:m.weight,style:m.style}),id:S,bytes:T,hash:F,faceIndex:v,...g?{availability:g}:{}}));}let h;if(a){h=[];for(let b=0;b<d;b+=1){let x=a[b],m=x.from,g=x.to,S=x.lineMetrics;h.push(Object.freeze({from:Object.freeze({family:m.family,weight:m.weight,style:m.style}),to:Object.freeze({family:g.family,weight:g.weight,style:g.style}),...S?{lineMetrics:Object.freeze({heightEm:S.heightEm,baselineEm:S.baselineEm})}:{}}));}}let y={epoch:n,maxFontBytes:r,sources:Object.freeze(f),substitutions:h?Object.freeze(h):void 0,defaultFont:Object.freeze({family:i.family,sizeHalfPoints:i.sizeHalfPoints}),language:c};return Object.freeze(y)}function cn(e,t){let n=e.map((o,a)=>({value:o,index:a,key:chunkQFKGI242_cjs.h(t(o))})),r=new Set;for(let o of n){if(r.has(o.key))return e;r.add(o.key);}return n.sort((o,a)=>o.key<a.key?-1:o.key>a.key?1:o.index-a.index).map(({value:o})=>o)}function to(e,t){let n={family:e.family},r={sizeHalfPoints:e.sizeHalfPoints};return {...n,...t?r:{}}}function ln(e,t){let n=s=>({family:s.family,weight:s.weight,style:s.style}),r=t?e.sources:cn(e.sources,s=>s.request),o=e.substitutions??[],a=t?o:cn(o,s=>s.from),i={sources:r.map(s=>{let d=s.availability??"available",l={request:n(s.request),availability:d};if(d==="forbidden")return {...l,...t?{id:s.id,faceIndex:s.faceIndex,declaredHash:s.hash}:{}};let f=chunkQFKGI242_cjs.g(s);if(f==null)throw new TypeError("Font configuration identity requires prepared source bytes");return {...l,...t?{id:s.id}:{},faceIndex:s.faceIndex,declaredHash:s.hash,actualHash:f,byteLength:s.bytes.byteLength}}),substitutions:a.map(s=>({from:n(s.from),to:n(s.to),lineMetrics:s.lineMetrics?{heightEm:s.lineMetrics.heightEm,baselineEm:s.lineMetrics.baselineEm}:null})),defaultFont:to(e.defaultFont,t),language:e.language||"en"},c={epoch:e.epoch,maxFontBytes:e.maxFontBytes};return {version:1,...t?c:{},...i}}var no=Symbol("prepared-layout-font-configuration"),Te=new WeakMap;function ro(e){return Te.has(e)}function oo(e){let t=Te.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.configuration}function Za(e){let t=Te.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.sharedShapingFingerprint}function it(e,t){return un(e,t,false)}function Ja(e,t){return un(e,t,true)}function un(e,t,n){let r=eo(e,n),o=Object.freeze({epoch:r.epoch,maxFontBytes:r.maxFontBytes,sources:Object.freeze(r.sources.map(f=>n&&chunkQFKGI242_cjs.g(f)!==void 0?f:chunkQFKGI242_cjs.f(f,{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash}))),substitutions:r.substitutions,defaultFont:r.defaultFont,language:r.language}),a=new TextEncoder,i=ln(o,true),c=a.encode(JSON.stringify(i)),s=ln(o,false),d=a.encode(JSON.stringify(s)),l=Object.freeze({[no]:true,fingerprint:`font-config:${chunkPWTRJSES_cjs.f(c)}`});return Te.set(l,{configuration:o,sharedShapingFingerprint:`shared-font-config:${chunkPWTRJSES_cjs.f(d)}`}),l}function ao(e){return it(e).fingerprint}function io(e,t){let n=new TextEncoder().encode(JSON.stringify({version:1,environment:e,executionPolicy:rn(t),ligatureCaretPolicy:dn,fallback:chunkQFKGI242_cjs.ga}));return `shaping:${chunkPWTRJSES_cjs.f(n)}`}async function pn(e,t,n,r,o=false){let i=ro(e)?e:it(e,t),c=oo(i),{epoch:s,maxFontBytes:d,sources:l,substitutions:f,defaultFont:h}=c,y=c.language||"en",b=i.fingerprint,x=chunkQFKGI242_cjs.m({epoch:s,maxFontBytes:d,resources:l,substitutions:f,validateFont:tt,instrumentation:{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash,onAdmission:t?.onFontAdmission}});await et();let m=Object.freeze({script:Jr,variationAxes:Object.freeze({}),shapingLibrary:J,unicodeDataVersion:Yr,normalization:$r,language:y,features:jr,...o?{documentLigatures:true}:{},fixedPointScale:qr,roundingMode:Zr});return Object.freeze({fonts:x,shaper:an(n??ot(r),r,n===void 0),defaultFont:h,environment:m,ligatureCaretPolicy:dn,operation:Object.freeze({resourceEpoch:x.epoch,configEpoch:s,extensionFingerprint:b,shapingHash:io(m,r),producerVersion:1})})}async function so(e,t,n){return pn(e,t,void 0,on(n))}async function Qa(e,t,n,r,o=false){return pn(e,r,t,n,o)}function co(e){e.shaper.dispose?.();}function st(e){let t=new Set([0,e.text.length]);for(let r of chunkQFKGI242_cjs.ma(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function Ie(e,t){return st(e).includes(t)}function lo(e,t){return Ie(e,t)}function uo(e,t,n){return n>=t&&Ie(e,t)&&Ie(e,n)}function po(e){let t=chunkQFKGI242_cjs.ma(e.text);return st(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var lt="und";function hn(){return typeof Intl.Segmenter=="function"}function fo(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${lt})`);return e}function gn(){let e=new(fo())(lt,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var yo=/^[\p{L}\p{N}']$/u,mo=/^\s$/u;function fn(e){return yo.test(e)}function yn(e){return mo.test(e)}function ct(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function Sn(e){let t=chunkQFKGI242_cjs.ma(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(yn(o.text)){let a=r+1;for(;a<t.length&&yn(t[a].text);)a+=1;n.push(ct(t,r,a,false)),r=a;continue}if(fn(o.text)){let a=r+1;for(;a<t.length&&fn(t[a].text);)a+=1;n.push(ct(t,r,a,true)),r=a;continue}n.push(ct(t,r,r+1,false)),r+=1;}return n}function bn(){return {segment:Sn}}function xn(e={}){let t=e.isIntlAvailable??hn,n=e.createIntlBoundary??gn,r=e.createFallbackBoundary??bn;if(!t())return r();try{return n()}catch{return r()}}var mn;function Rn(){return mn??=xn(),mn}function ho(e,t=Rn()){return t.segment(e)}function go(e,t){return t.map(n=>({graphemeFrom:chunkQFKGI242_cjs.qa(e,n.utf16From),graphemeTo:chunkQFKGI242_cjs.qa(e,n.utf16To),wordLike:n.wordLike}))}var Fn={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},pt=Object.keys(Fn),Cn=pt.filter(e=>Fn[e]==="coarse-gate"),we=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},te=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},So={resourceEpoch:we,configEpoch:we,extensionFingerprint:te,shapingHash:te,producerVersion:we},bo=(e,t)=>{So[t](e[t],t);},ne=e=>{for(let t of pt)bo(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},xo=(e,t)=>{let n=ne(e),r=ne(t),o=pt.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},dt=e=>{let t=e.map(({key:n,fingerprint:r})=>(te(n,"resource dependency key"),te(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},Ro=e=>(we(e.revision,"revision"),te(e.dependencyFingerprint,"dependencyFingerprint"),te(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:dt(e.resourceDependencies),...ne(e)})),Fo=(e,t)=>{let n=dt(e),r=dt(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],c=r[a];if(i?.key!==c?.key||i?.fingerprint!==c?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??c.key}}return null};function Co(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=Fo(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Cn)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var ut=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=Co(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:Ro(r)});}evictEpoch(t){let n=ne(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Cn.some(c=>i[c]!==n[c])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=ne(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(s=>n.get(s.key)!==s.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function vn(e){return e.projected===true?null:e.range}function Eo(e,t,n){let{page:r,story:o,host:a,noteScopeId:i,noteAreaKind:c}=e,s=o==="header"||o==="footer"?d=>chunkQFKGI242_cjs.wa(d,e.origin,{x:r.box.x,y:r.box.y}):void 0;chunkQFKGI242_cjs.Fa(a,(d,l)=>{let{textboxDepth:f,textboxOwner:h,textboxPath:y,storyOrigin:b}=l,x=f===0?o:"textbox";for(let m of d.lines){let g=[...chunkQFKGI242_cjs.La(m)].sort((S,F)=>(t.get(S.paragraphId)??Number.MAX_SAFE_INTEGER)-(t.get(F.paragraphId)??Number.MAX_SAFE_INTEGER));for(let S of g)for(let F of S.spans)n({page:r,story:x,rootStory:o,root:e,storyOrigin:b,absoluteBox:Object.freeze({x:b.x+F.box.x,y:b.y+F.box.y,width:F.box.width,height:F.box.height}),noteScopeId:i,noteAreaKind:c,textboxDepth:f,textboxOwner:h,textboxPath:y,paragraph:d,paragraphId:S.paragraphId,line:m,span:F,sourceRange:vn(F)});}},e.origin,s);}function Lo(e,t){let n=new Map(chunkQFKGI242_cjs.Sa(e).map((r,o)=>[r,o]));chunkQFKGI242_cjs.Ca(e,r=>Eo(r,n,t));}var Oo=1,En=4,j=Object.freeze({top:0,right:0,bottom:0,left:0}),Ln=new WeakMap;function To(e,t){let n=Io(e);return n===j?t:chunkQFKGI242_cjs.Je(t,n)}function Io(e){let t=e.vectorShape;if(!t)return j;let{cx:n,cy:r}=t.extentEmu;if(!(n>=0)||!(r>=0)||n===0&&r===0)return j;let o=Ln.get(t);if(o||(o=wo(t),Ln.set(t,o)),o===j)return j;let a=e.paintBounds,i=e.geometry.contentBounds;if(!(a.width>0||i.width<=0)||!(a.height>0||i.height<=0))return j;let c=n>0?i.width/n:i.height/r,s=r>0?i.height/r:i.width/n,d=(f,h,y)=>{if(y<-1e-3)return 0;let b=f*h-Math.max(0,y);return Number.isFinite(b)&&b>0?b:0},l={left:d(o.left,c,i.x-a.x),top:d(o.top,s,i.y-a.y),right:d(o.right,c,a.x+a.width-(i.x+i.width)),bottom:d(o.bottom,s,a.y+a.height-(i.y+i.height))};return l.left||l.top||l.right||l.bottom?Object.freeze(l):j}function wo(e){let{cx:t,cy:n}=e.extentEmu,r=0,o=0,a=t,i=n,c=(l,f)=>{r=Math.min(r,l),a=Math.max(a,l),o=Math.min(o,f),i=Math.max(i,f);},s=Oo,d=l=>l.x>=-s&&l.x<=t+s&&l.y>=-s&&l.y<=n+s;for(let l of e.components){if(l.strokeHex===null||l.strokeInset===true)continue;let f=Math.max(1,chunkQFKGI242_cjs.Ie(l.strokeWidthEmu))/2;l.subpathsEmu.forEach((h,y)=>{let b=l.subpathsClosed?.[y]!==false,x=Ao(h,b),m=b&&x.length>2?x.length:x.length-1,g=[];for(let F=0;F<m;F+=1){let v=x[F],C=x[(F+1)%x.length],T=Math.hypot(C.x-v.x,C.y-v.y),p={x:-(C.y-v.y)/T,y:(C.x-v.x)/T};if(g.push(p),!!Po(v,C,-s,t+s,-s,n+s))for(let u=0;u<2;u+=1){let R=X[u],E=v.x+(C.x-v.x)*R,L=v.y+(C.y-v.y)*R;c(E+p.x*f,L+p.y*f),c(E-p.x*f,L-p.y*f);}}let S=b&&x.length>2?g.length:g.length-1;for(let F=0;F<S;F+=1){let v=x[(F+1)%x.length];if(!d(v))continue;let C=g[F],T=g[(F+1)%g.length],p=1+C.x*T.x+C.y*T.y;if(p<2/(En*En))continue;let u=C.y*-T.x- -C.x*T.y;if(u===0)continue;let R=u>0?-1:1;c(v.x+R*(C.x+T.x)*f/p,v.y+R*(C.y+T.y)*f/p);}});for(let h of l.arrowheadsEmu??[])if(!(!h[0]||!d(h[0])))for(let y of h)c(y.x,y.y);}return r>=0&&o>=0&&a<=t&&i<=n?j:Object.freeze({left:-r,top:-o,right:a-t,bottom:i-n})}function Ao(e,t){let n=[];for(let a of e){let i=n[n.length-1];(!i||i.x!==a.x||i.y!==a.y)&&n.push(a);}let r=n[0],o=n[n.length-1];return t&&n.length>1&&r.x===o.x&&r.y===o.y&&n.pop(),n}var X=new Float64Array(2);function Po(e,t,n,r,o,a){let i=t.x-e.x,c=t.y-e.y;return X[0]=0,X[1]=1,Ae(-i,e.x-n)&&Ae(i,r-e.x)&&Ae(-c,e.y-o)&&Ae(c,a-e.y)}function Ae(e,t){if(e===0)return t>=0;let n=t/e;return e<0?X[0]=Math.max(X[0],n):X[1]=Math.min(X[1],n),X[0]<=X[1]}var In="Calibri, Carlito, Helvetica, Arial, sans-serif",Si=new Map([["calibri","Carlito"]]),_o=65536,Mo=256;function Bn(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function On(e){let t=new Map,n=0;return {get(r){let o=t.get(r);if(o!==void 0)return t.delete(r),t.set(r,o),o},set(r,o){for(t.has(r)&&t.delete(r),t.set(r,o);t.size>e;){let a=t.keys().next();if(a.done)break;t.delete(a.value),n+=1;}},get size(){return t.size},get evictions(){return n}}}var Tn=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function wn(e=null){return e!=null&&typeof e.measureText=="function"}function An(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??In,r=e.context??null;if(!wn(r))return null;let o=r,a=On(Bn(e.maxWidthEntries,_o)),i=On(Bn(e.maxMetricsEntries,Mo)),c=e.fontAlias,s=l=>{let f=l.fontFamily&&Tn.test(l.fontFamily)?l.fontFamily:null,h=f?c?.(f):void 0,y=h&&Tn.test(h)?h:null,b=f?y?`"${y}", "${f}", ${n}`:`"${f}", ${n}`:n,x=l.bold?"bold":"normal",m=l.italic?"italic":"normal",g=l.smallCaps?"small-caps":"normal",S=l.fontSizePt*chunkQFKGI242_cjs.fa(l)*t;return `${m} ${g} ${x} ${S}px ${b}`},d=(l,f,h)=>l/t*(h.horizontalScalePercent/100)+f.length*h.characterSpacingPt;return {measure(l,f){if(l.length===0)return 0;let h=s(f),y=`${h}\0${chunkQFKGI242_cjs.dd(f)}\0${l}`,b=a.get(y);if(b!==void 0)return d(b,l,f);o.font=h,"fontKerning"in o&&(o.fontKerning=chunkQFKGI242_cjs.dd(f)?"normal":"none");let x=o.measureText(l).width;return a.set(y,x),d(x,l,f)},inkBounds(l,f){if(!l||l.length>2||f.shaping?.direction==="rtl"||chunkQFKGI242_cjs.ma(l).length!==1)return;o.font=s(f),"fontKerning"in o&&(o.fontKerning=chunkQFKGI242_cjs.dd(f)?"normal":"none");let h=o.textAlign,y=o.direction,b;try{h!==void 0&&(o.textAlign="left"),y!==void 0&&(o.direction="ltr"),b=o.measureText(l);}finally{h!==void 0&&(o.textAlign=h),y!==void 0&&(o.direction=y);}let x=b.actualBoundingBoxLeft,m=b.actualBoundingBoxRight;if(x===void 0||m===void 0||!Number.isFinite(x)||!Number.isFinite(m))return;let g=f.horizontalScalePercent/(100*t);return {left:-x*g,right:m*g}},lineMetrics(l){let f=l.fontSizePt*chunkQFKGI242_cjs.fa(l),h=s(l),y=i.get(h);if(y)return y;let b=f*1.15,x=f*.8;o.font=h,"fontKerning"in o&&(o.fontKerning=chunkQFKGI242_cjs.dd(l)?"normal":"none");let m=o.measureText("Hxg"),g=m.fontBoundingBoxAscent,S=m.fontBoundingBoxDescent;if(typeof g=="number"&&Number.isFinite(g)&&g>0&&(x=g/t,typeof S=="number"&&Number.isFinite(S)&&S>=0)){let v=(g+S)/t;v>0&&(b=Math.max(v,b));}b>0||(b=f*1.15);let F={height:b,baseline:x};return i.set(h,F),F}}}function zo(e=1,t={}){let n=An({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:chunkQFKGI242_cjs.ha(),producer:"fixed-measurer"}}function ko(e){let t;return n=>{t===void 0&&(t=chunkQFKGI242_cjs.gc(e.pages)?.hosts??null);let r=t?.get(n);return r?chunkQFKGI242_cjs.ec(r.pageNumber,r.format):null}}function Pn(e,t){let n=chunkQFKGI242_cjs.rd(e,t.displayMode??chunkQFKGI242_cjs.Za),r=chunkQFKGI242_cjs.zc({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:chunkPWTRJSES_cjs.ch(t.package,"footnote"),endnotesPart:chunkPWTRJSES_cjs.ch(t.package,"endnote")}:void 0,a=chunkQFKGI242_cjs.Vc(n,r,o,t.package?chunkQFKGI242_cjs.Sc(t.package,e,n):void 0,t.displayMode??chunkQFKGI242_cjs.Za);return {blocks:n,notes:o,context:a}}function _n(e,t,n,r,o){for(let a of t){if(r.length>=chunkPWTRJSES_cjs.Zk)return;if(n.tokenForParagraph(a.id)!==""&&chunkPWTRJSES_cjs.al(e,a.id)===null)for(let i of chunkPWTRJSES_cjs.$k(a)){if(r.length>=chunkPWTRJSES_cjs.Zk)return;if(!i.rewritable)continue;let c=chunkQFKGI242_cjs.bc(i.instruction);if(c===null)continue;let s=n.liveValueOf(i.fieldNodeId,c);if(s===null&&o&&n.pageRefProjectionOf){let d=n.pageRefProjectionOf(i.fieldNodeId,c);if(d){let l=o(d.targetParagraphId);l!==null&&l.length>0&&chunkQFKGI242_cjs.fc(d.calibration,d.cached,l,Number.NaN)&&(s=l);}}s===null||s===i.cachedText||s.length>chunkPWTRJSES_cjs._k||s.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:s});}}}function No(e,t){let{blocks:n,context:r}=Pn(e,t);if(r===null)return null;let o=[];return _n(e,chunkQFKGI242_cjs.dc(chunkQFKGI242_cjs.sc(n)),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Ti(e,t){let{notes:n,context:r}=Pn(e,t);if(r===null||n===void 0)return [];let o=[],a=[{noteKind:"footnote",notesPart:n.footnotesPart},{noteKind:"endnote",notesPart:n.endnotesPart}];for(let{noteKind:i,notesPart:c}of a){if(!c)continue;let s=[];for(let d of chunkQFKGI242_cjs.Tc(c,t.displayMode??chunkQFKGI242_cjs.Za)){if(s.length>=chunkPWTRJSES_cjs.Zk)break;_n(c,chunkQFKGI242_cjs.dc(chunkQFKGI242_cjs.sc(d)),r,s);}s.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:s}});}return o}function Do(e){return e.box}function Mn(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)Mn(o,t);}function Ho(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkPWTRJSES_cjs.Nb*4)){for(let c of o.children)if(c.kind!=="textValue"){if(c.kind==="paragraph"){for(let s of r)t.get(s)?.push(c.id);n(c,c.id,i+1);continue}if(c.kind==="contentControl"){t.set(c.id,[]),r.push(c.id);let s=chunkPWTRJSES_cjs.Xb(c);s&&n(s,a,i+1),r.pop();let d=t.get(c.id);d&&d.length===0&&a!==null&&d.push(a);continue}n(c,a,i+1);}}},r=[];return n(e,null,0),t}function Uo(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function Go(e,t){let n=chunkPWTRJSES_cjs.$b(e.root);if(n.length===0)return Wo;let r=new Map;t.pages.forEach((i,c)=>{(d=>{for(let l of d){let f=new Set;Mn(l,f);for(let h of f){let y=r.get(h)??[];y.push({pageIndex:c,box:Do(l)}),r.set(h,y);}}})(i.fragments);});let o=Ho(e.root),a=[];for(let i of n){let c=chunkPWTRJSES_cjs.Zb(i.node),s=[...i.ancestors.map(h=>chunkPWTRJSES_cjs.Zb(h).lock),c.lock],d=o.get(i.node.id)??[],l=new Map;for(let h of d)for(let y of r.get(h)??[]){let b=l.get(y.pageIndex);l.set(y.pageIndex,b?Uo(b,y.box):y.box);}let f=[...l.entries()].sort((h,y)=>h[0]-y[0]).map(([h,y])=>({pageIndex:h,...y}));a.push({controlId:i.node.id,type:c.type,level:chunkPWTRJSES_cjs._b(i.node),depth:i.depth,lock:c.lock,effectiveLock:chunkPWTRJSES_cjs.cc(s),showingPlaceholder:c.showingPlaceholder,temporary:c.temporary,...c.tag===void 0?{}:{tag:c.tag},...c.alias===void 0?{}:{alias:c.alias},...c.id===void 0?{}:{id:c.id},...c.dataBinding===void 0?{}:{dataBinding:c.dataBinding},paragraphIds:d,fragments:f});}return a}var Wo=Object.freeze([]);function kn(e,t,n){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return n<o.range.end;let i=a.filter(c=>c.range.paragraphId===t);return i.length===a.length?n<o.range.end:i.length>0&&n<i[i.length-1].range.end});return r?r.box.y:e.fragmentY}function ea(e,t){let n=new Map;for(let r of e.pages)for(let[o,a]of ta(r,t))n.has(o)||n.set(o,a);return n}var zn=new WeakMap;function ta(e,t){let n=zn.get(t);n||(n=new WeakMap,zn.set(t,n));let r=n.get(e);if(r)return r;let o=new Map;for(let a of t(e)){let i=new Set([a.paragraphId]);for(let c of a.lines??[])for(let s of c.spans??[])i.add(s.range.paragraphId);for(let c of i)o.has(c)||o.set(c,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return n.set(e,o),o}function na(e,t){let n=chunkPWTRJSES_cjs.Aj(e);if(!n)return null;let r=t.get(n.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+kn(r,n.start.paragraphId,n.start.offset)}:null}var Nn=new WeakMap;function ra(e){let t=Nn.get(e);if(t!==void 0)return t;let n=chunkQFKGI242_cjs.i(e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=false,a=r.getUint32(0)===1953784678?r.getUint32(12+e.faceIndex*4):0,i=r.getUint16(a+4);for(let c=0;c<i;c++){let s=a+12+c*16;if(r.getUint32(s)!==1330851634)continue;let d=r.getUint32(s+8),l=r.getUint32(s+12);l>=86&&d<=n.byteLength-l&&r.getUint16(d)>=1&&(o=(r.getUint32(d+78)&1966080)!==0);break}return Nn.set(e,o),o}function Dn(e,t,n,r,o){if(r>o||Math.abs(n.height-t)>o||!ra(e))return n;let a=t*.3;return {height:n.height+a,baseline:n.baseline+a/2}}var oa="abcdefghijklmnopqrstuvwxyz";function H(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function V(e,t,n,r,o){let a=r.shaping?.context;return e.shape({text:o,fontSizeHalfPoints:H(r),bidiLevel:r.shaping?.direction==="rtl"?1:0,environment:aa(t,n,r),...a?{context:a}:{}})}var Hn=new WeakMap;function aa(e,t,n){if(!Object.isFrozen(e)||!Object.isFrozen(e.features)||!Object.isFrozen(e.variationAxes)||!Object.isFrozen(e.shapingLibrary))return Un(e,t,n);let r=n.shaping?.direction??"ltr",o=n.shaping?.script,a=`${r}|${o??""}|${chunkQFKGI242_cjs.dd(n)?1:0}|${e.documentLigatures?chunkQFKGI242_cjs.D(n):""}|${n.smallCaps?1:0}`,i=Hn.get(e);i||Hn.set(e,i=new WeakMap);let c=i.get(t);c||i.set(t,c=new Map);let s=c.get(a);return s||c.set(a,s=Un(e,t,n)),s}function Un(e,t,n){return chunkQFKGI242_cjs.p({...e,font:t,direction:n.shaping?.direction??"ltr",script:n.shaping?.script==="Zyyy"?e.script:n.shaping?.script??e.script,features:{...e.features,kern:chunkQFKGI242_cjs.dd(n)?1:0,...e.documentLigatures?chunkQFKGI242_cjs.C(n):{},...n.smallCaps?{smcp:1}:{}},fallbackOrder:[]})}function Pe(e,t,n,r,o){let a=o.get(n);if(a!==void 0)return a;let i=true;try{for(let c of oa){let s=V(e,t,n,{...r,smallCaps:!0},c),d=V(e,t,n,{...r,smallCaps:!1},c);if(!(s.glyphs.length!==d.glyphs.length||s.glyphs.some((f,h)=>f.id!==d.glyphs[h]?.id))){i=!1;break}}}catch{i=false;}return o.set(n,i),i}function Gn(e,t,n,r,o){let a=new WeakMap;return (i,c)=>{let s=chunkQFKGI242_cjs.fa(c),d=a.get(i);d||(d=new Map,a.set(i,d));let l=H(c),f=d.get(l);if(f)return s===1?f:{height:f.height*s,baseline:f.baseline*s};let h,y=true,b=i.substitution?.lineMetrics;if(b){let x=l/2;h={height:b.heightEm*x,baseline:b.baselineEm*x};}else try{let x=V(e,t,i,c,""),m=x.metrics.ascent/t.fixedPointScale,g=x.metrics.descent/t.fixedPointScale,S=l/2,F=m+g,v=S*r,C=F>v?v/F:1,T=F*C,p=Math.min(Math.max(0,x.metrics.lineGap/t.fixedPointScale),T*o),u=T+p;u>0?h=Dn(i,S,{height:u,baseline:m*C+p},p,2/t.fixedPointScale):(h=n.lineMetrics(c),y=!1);}catch{h=n.lineMetrics(c),y=false;}return y?(d.set(l,h),s===1?h:{height:h.height*s,baseline:h.baseline*s}):h}}var ft=2048,ia=32,sa=new Map([["symbol",{ascent:2059,descent:450,advances:[512,682,1460,1024,1124,1706,1593,899,682,682,1024,1124,512,1124,512,569,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,569,569,1124,1124,1124,909,1124,1479,1366,1479,1253,1251,1563,1235,1479,682,1292,1479,1405,1821,1479,1479,1573,1518,1139,1212,1251,1413,899,1573,1321,1628,1251,682,1767,682,1348,1024,1024,1292,1124,1124,1012,899,1067,842,1235,674,1235,1124,1124,1180,1067,1124,1124,1067,1124,1235,899,1180,1460,1405,1010,1405,1012,983,410,983,1124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,506,1124,342,1460,1024,1542,1542,1542,1542,2134,2021,1235,2021,1235,819,1124,842,1124,1124,1460,1012,942,1124,1124,1124,1124,2048,1235,2048,1348,1686,1405,1628,2021,1573,1573,1686,1573,1573,1460,1460,1460,1460,1460,1460,1460,1573,1460,1618,1618,1823,1686,1124,512,1460,1235,1235,2134,2021,1235,2021,1235,1012,674,1618,1618,1610,1460,786,786,786,786,786,786,1012,1012,1012,1012,0,674,561,1405,1405,1405,786,786,786,786,786,786,1012,1012,1012,0]}],["wingdings",{ascent:1841,descent:432,advances:[2048,2110,2344,2665,2752,1830,2492,938,2220,1826,2319,2319,2399,2399,2951,2956,2245,2751,1431,1431,1826,1135,1233,2196,1941,2208,1924,1825,1826,1826,1825,1863,1863,1203,1624,1381,1381,1929,1929,1124,1124,1826,1727,1727,1727,2275,1352,1739,2230,1819,1803,1332,1665,1529,1529,1480,1420,1627,1813,1826,1834,1825,2368,2159,1974,2233,1927,1911,1937,2099,1902,2245,2181,1597,2150,2603,1529,1951,1529,1825,1825,1825,1825,937,1529,2020,1825,1183,2171,2171,1825,1826,1826,1086,1086,0,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,2048,2048,2048,2048,2048,2048,2048,2048,641,937,641,1825,1825,1825,1825,1825,1951,937,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2146,2146,2146,2146,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2566,2566,1627,1627,1825,1825,1825,1825,1825,1825,2006,2006,1825,1825,1589,1589,1589,1589,2186,2186,1825,1825,1787,1787,1787,1787,1825,1825,1660,1660,2171,1660,1601,1601,1601,1601,987,789,1301,1609,1826,1826,2119]}],["wingdings 2",{ascent:1727,descent:432,advances:[2048,2110,2090,2073,2086,2344,2045,2220,989,1431,1431,1826,1431,1431,1826,1431,1431,1826,1431,1431,2320,2246,1826,1826,1826,2320,2170,2170,1381,1381,1938,1938,1938,1938,1928,1928,1928,1928,1047,1047,1047,1047,1178,1178,1178,1178,1826,1321,1568,1826,1826,1826,1826,1825,1825,1826,1826,2226,1727,1548,1579,984,1035,864,1018,2048,2048,2048,2048,2048,2048,2048,2048,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,0,1899,1899,1453,1453,1673,1332,1431,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2048,2048,542,740,1135,1825,1825,1825,1825,1825,1825,1825,542,740,1135,1825,1825,1825,1825,1825,1825,1825,1825,1825,624,764,903,1461,2020,2020,2020,2020,2020,542,641,740,1135,1529,1529,1085,1085,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1496,1825,0,0,0,0,0,0]}],["wingdings 3",{ascent:1900,descent:432,advances:[2048,1825,1825,1135,1135,1444,1444,1444,1444,1825,1825,1135,1135,1677,1677,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1825,1825,1455,1455,1455,1455,2010,2010,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2220,1825,1751,1114,1115,1660,1660,1930,1930,1930,1930,1924,1924,1924,1924,1930,1930,1931,1931,1825,1825,1232,1232,1444,1444,1444,1444,1825,1232,2005,2005,2005,2005,1801,1801,1801,1801,1801,1801,1801,1801,1085,1085,1825,0,1825,1825,1825,1825,1825,1627,1627,1825,1825,1825,1825,789,789,1825,1825,987,987,1825,1825,1184,1184,1825,1825,1579,1579,1825,1825,888,888,1825,1825,1381,1381,1825,1825,1875,1875,1825,1825,1825,1825,1825,1825,1825,789,592,493,394,1825,1825,1825,1825,1825,1085,1085,1381,1381,1628,1628,1184,1184,900,900,1825,1825,1019,1019,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1291,1291,1291,1291,1961,1961,1825,1825,1540,1540,1540,1540,2096,2096,1825,1825,1688,1688,1688,1688,2277,2277,1825,1825,1885,1885,1885,1885,543,543,1234,1234,766,766,1234,1234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],["webdings",{ascent:1638,descent:410,advances:[1024,2048,2048,2048,2048,2028,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1100,1100,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1144,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,0,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2500,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1377,1377,2048,1726,1058,2048,2048,2048,2048,877,1240,2048,2048,2048,2048,1357,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2645,2048,2048,2048,2048]}]]);function ca(e){if(chunkPWTRJSES_cjs.b(e))return sa.get(e.toLowerCase())}function Wn(e,t,n,r){let o=H(r)/2*chunkQFKGI242_cjs.fa(r)*(r.horizontalScalePercent/100)/ft,a=[];for(let i=0;i<n.length;i++){let c=chunkPWTRJSES_cjs.c(n.charCodeAt(i),t),s=c===null?0:e.advances[c-ia]??0;if(s===0)return;a.push(s*o+r.characterSpacingPt);}return a}function Kn(e){let t=new WeakMap,n=r=>{let o=t.get(r);return o===void 0&&(o=ca(r.fontFamily)??null,t.set(r,o)),o};return {...e,measure(r,o){let a=n(o),i=a&&Wn(a,o.fontFamily,r,o);if(!i)return e.measure(r,o);let c=0;for(let s of i)c+=s;return c},caretAdvances(r,o){let a=n(o),i=a&&Wn(a,o.fontFamily,r,o);if(!i)return e.caretAdvances?.(r,o);let c=[0];for(let s of i)c.push(c[c.length-1]+s);return c},lineMetrics(r,o){let a=n(r);if(!a)return e.lineMetrics(r,o);let i=H(r)/2*chunkQFKGI242_cjs.fa(r);return {height:(a.ascent+a.descent)*i/ft,baseline:a.ascent*i/ft}}}}var yt=new WeakMap;function la(e){let t=yt.get(e);if(t!==void 0)return t??void 0;let n=e.path;if(!n.startsWith("M")||n.length>1e6||/[^MLQCZ0-9eE+.,\s-]/u.test(n))return;let r=1/0,o=-1/0,a=n.matchAll(/([MLQCZ])([^MLQCZ]*)/gu);for(let c of a){let s=c[1]==="Z"?0:c[1]==="C"?6:c[1]==="Q"?4:2,d=c[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(d.length!==s||d.some(l=>!Number.isFinite(l))){yt.set(e,null);return}for(let l=0;l<d.length;l+=2)r=Math.min(r,d[l]),o=Math.max(o,d[l]);}let i=Number.isFinite(r)&&Number.isFinite(o)?{left:r,right:o}:void 0;return yt.set(e,i??null),i}function Xn(e,t,n,r){if(e.clusters.length!==1||e.glyphs.length===0)return;let o=1/0,a=-1/0;for(let c of e.glyphs){if(c.id===0)return;let s=la(c.outline),d=c.outline.unitsPerEm;if(!s||!(d>0))return;let l=(c.originX+c.offsetX)/n;o=Math.min(o,l+s.left*t*(c.drawScale??1)/d),a=Math.max(a,l+s.right*t*(c.drawScale??1)/d);}let i={left:o*r,right:a*r};return Number.isFinite(i.left)&&Number.isFinite(i.right)?i:void 0}function da(e,t,n){if(t<12)return null;if(e.getUint32(0)!==1953784678)return 0;let o=12+(Number.isSafeInteger(n)&&n>0?n:0)*4;if(o+4>t)return null;let a=e.getUint32(o);return a+12<=t?a:null}function Vn(e,t,n,r,o){let a=e.getUint16(n+4);if(a>4096||n+12+a*16>t)return null;for(let i=0;i<a;i+=1){let c=n+12+i*16;if(e.getUint32(c)!==r)continue;let s=e.getUint32(c+8),d=e.getUint32(c+12);return d<o||s+d>t?null:s}return null}function jn(e,t){let n=e.byteLength,r=new DataView(e.buffer,e.byteOffset,n),o=da(r,n,t);if(o===null)return null;let a=Vn(r,n,o,1751474532,54);if(a===null)return null;let i=r.getUint16(a+18);if(i<=0)return null;let c=Vn(r,n,o,1330851634,30);if(c===null)return null;let s=r.getInt16(c+26)/i,d=r.getInt16(c+28)/i;return !(s>0)||s>1||!(Math.abs(d)<=1)?null:{offsetEm:d,thicknessEm:s}}var ua=.5,pa=4,Yn=4096;function $n(e){let t="environment"in e?e.environment:void 0,n="environment"in e?void 0:e,{shaper:r,resolveFont:o}=e,a=Kn(e.fallback),i=t??{shapingLibrary:n.shapingLibrary,unicodeDataVersion:n.unicodeDataVersion,script:n?.script??"Latn",fixedPointScale:n?.fixedPointScale??1e3,normalization:n?.normalization??"none",features:n?.features??{},roundingMode:n?.roundingMode??"halfToEven",language:n?.language??"en",variationAxes:{}},c=new WeakMap,s=new WeakMap,d=Gn(r,i,a,pa,ua),l=new WeakMap,f=new WeakMap,h=new Array(Yn),y=0,b=(p,u,R)=>{let E=h[y];E&&E.cache.delete(E.text),p.set(u,R),h[y]={cache:p,text:u},y=(y+1)%Yn;},x=p=>{let u=l.get(p);if(u!==void 0)return u;let R=o(p);return l.set(p,R),R},m=(p,u,R)=>{let E=R?s:c,L=E.get(p);L||(L=new Map,E.set(p,L));let O=L.get(u);return O||(O=new Map,L.set(u,O)),O},g=new WeakMap,S=p=>{if(!p.shaping?.wordSpacingPt)return p;let u=g.get(p);return u||(u={...p,shaping:{...p.shaping,wordSpacingPt:void 0}},g.set(p,u)),u},F=(p,u)=>u.shaping?.wordSpacingPt?chunkQFKGI242_cjs.Cd(p)*u.shaping.wordSpacingPt:0,v=(p,u)=>a.measure(p,S(u))+F(p,u),C=(p,u)=>{let R=Math.max(0,a.measure(p,S(u))),E=a.caretAdvances?.(p,S(u))??chunkQFKGI242_cjs.Ad(p,R);if(!E||E.length!==p.length+1)return chunkQFKGI242_cjs.Ad(p,v(p,u));let L=Math.max(0,v(p,u)),O=0,P=0;return E.map((A,M)=>{if(M===0)return 0;p[M-1]===" "&&P++;let I=A+P*(u.shaping?.wordSpacingPt??0);return O=Math.max(O,Math.min(L,Number.isFinite(I)?I:O)),M===p.length?L:O})},T=new WeakMap;return {hasResolvedFont(p){return x(p)!==null},strikeoutMetrics(p){let u=x(p);if(!u)return;let R=T.get(u);if(R===void 0&&(R=jn(u.bytes,u.faceIndex),T.set(u,R)),!R)return;let E=H(p)/2*chunkQFKGI242_cjs.fa(p);return {offsetPt:R.offsetEm*E,thicknessPt:R.thicknessEm*E}},measure(p,u){if(p.length===0)return 0;let R=x(u);if(!R)return v(p,u);let E=m(R,H(u),u.smallCaps),L=u.shaping?.context,O=u.shaping?`1:${JSON.stringify(L?[u.shaping.script,u.shaping.direction,p,L.before,L.after]:[u.shaping.script,u.shaping.direction,p])}`:`0:${p}`,P=`${chunkQFKGI242_cjs.dd(u)?1:0}:${chunkQFKGI242_cjs.D(u)}:${O}`,A=E.get(P);if(A===void 0){let M=0;try{if(u.smallCaps&&!Pe(r,i,R,u,f))return v(p,u);let I=V(r,i,R,u,p);if(I.glyphs.some(U=>U.id===0))return v(p,u);for(let U of I.glyphs)M+=U.advanceX;}catch{return v(p,u)}A=M/i.fixedPointScale,b(E,P,A);}return A*chunkQFKGI242_cjs.fa(u)*(u.horizontalScalePercent/100)+p.length*u.characterSpacingPt+F(p,u)},inkBounds(p,u){if(!p||p.length>2||u.shaping?.direction==="rtl"||chunkQFKGI242_cjs.ma(p).length!==1)return;let R=x(u);if(!R)return a.inkBounds?.(p,u);try{if(u.smallCaps&&!Pe(r,i,R,u,f))return a.inkBounds?.(p,u);let E=V(r,i,R,u,p);return Xn(E,H(u)/2,i.fixedPointScale,chunkQFKGI242_cjs.fa(u)*u.horizontalScalePercent/100)}catch{return}},caretAdvances(p,u){let R=x(u);if(!R)return C(p,u);try{if(u.smallCaps&&!Pe(r,i,R,u,f))return C(p,u);let E=V(r,i,R,u,p);return E.glyphs.some(L=>L.id===0)?C(p,u):chunkQFKGI242_cjs.Bd(p,E,chunkQFKGI242_cjs.fa(u)*(u.horizontalScalePercent/100)/i.fixedPointScale,u.characterSpacingPt,u.shaping?.wordSpacingPt??0)??chunkQFKGI242_cjs.Ad(p,E.glyphs.reduce((L,O)=>L+O.advanceX,0)*chunkQFKGI242_cjs.fa(u)*(u.horizontalScalePercent/100)/i.fixedPointScale+p.length*u.characterSpacingPt+F(p,u))}catch{return C(p,u)}},lineMetrics(p,u){let R=x(p);if(!R)return a.lineMetrics(p,u);if(!u||/^[\t\n\r\f ]*$/.test(u))return d(R,p);try{let E=V(r,i,R,p,u),L=0,O=0;for(let P of E.fontSpans){let A=d(P.font,p);L=Math.max(L,A.baseline),O=Math.max(O,A.height-A.baseline);}if(L+O>0)return {height:L+O,baseline:L}}catch{}return d(R,p)}}}function fa(e,t){return $n({...t,shaper:e.shaper,environment:e.environment})}function ya(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let s of t.pages)r.add(s.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,c=-1;for(let s of t.pages){let d=s.box.y;d+s.box.height>=n.top&&d<=a&&(i===-1&&(i=s.index),c=s.index);}if(i===-1){let s=ma(t,n.top);s!==null&&(i=s,c=s);}if(i!==-1){let s=Math.max(0,i-o),d=Math.min(t.pages.length-1,c+o);for(let l=s;l<=d;l+=1)r.add(l);}for(let s of e.pinnedPages??[])s>=0&&s<t.pages.length&&r.add(s);return r}function ma(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var qn=["text-local","paragraph-local","flow-structural","global"];function Zn(e,t){return qn.indexOf(t)>qn.indexOf(e)?t:e}function ha(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function ga(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,c=null,s=0,d=0;function l(m){let g=e.runCooperatively;if(!g)return t(m);let S=g(m);c=S;try{for(;;){let F=S.step();if(F)return F;if(n()!==m.revision)return S.cancel(),d+=1,null;if(c!==S)return null}}finally{c===S&&(c=null);}}function f(m){let g=y(n());g.impact=Zn(g.impact,m.impact),g.structural=g.structural||m.structural;for(let S of m.paragraphIds)g.paragraphIds.add(S);for(let S of m.created)g.created.add(S);for(let S of m.deleted)g.deleted.add(S);for(let S of m.dependencyKeys)g.dependencyKeys.add(S);}let h=m=>({impact:m.impact,paragraphIds:m.paragraphIds,created:m.created,deleted:m.deleted,dependencyKeys:m.dependencyKeys,structural:m.structural,revision:m.revision});function y(m){return a||(a=ha(m)),a.revision=Math.max(a.revision,m),a}function b(){!o||i||(i=o(()=>{i=null,x();}));}function x(){i&&(i(),i=null),c&&(c.cancel(),c=null,d+=1);let m=a;if(!m)return false;a=null;let g=h(m),S=l(g);return !S||S.revision!==n()?(s+=1,f(g),b(),false):(r(S,g),true)}return {notify(m){let g=y(n());g.impact=Zn(g.impact,m.impact);for(let S of m.dirty)g.paragraphIds.add(S);for(let S of m.created)g.created.add(S),g.paragraphIds.add(S);for(let S of m.deleted)g.deleted.add(S),g.paragraphIds.add(S);for(let S of m.dependencyKeys)g.dependencyKeys.add(S);for(let S of m.splitJoin)g.structural=true,"split"in S?(g.paragraphIds.add(S.split.from),g.paragraphIds.add(S.split.tail)):(g.paragraphIds.add(S.join.kept),g.paragraphIds.add(S.join.removed));(m.impact==="flow-structural"||m.impact==="global")&&(g.structural=true),b();},invalidateAll(m,g){let S=y(m);S.impact="flow-structural",S.structural=true,g&&S.dependencyKeys.add(g),b();},flush:x,pending:()=>a?h(a):null,cancel(){i?.(),i=null,c?.cancel(),c=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}var Jn=new WeakMap;function $(e){let t=Jn.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=new Map,i=(s,d,l,f)=>{for(let h of s){if(h.kind==="paragraph")continue;let y=h.tableId;a.set(y,Math.max(a.get(y)??0,(h.columnEdges?.length??1)-1));let b=o.get(y);b||(b=new Map,o.set(y,b),n.set(y,[]),r.set(y,new Map));for(let x of h.rows){let m=b.get(x.id);m===void 0&&(m=b.size,b.set(x.id,m),r.get(y).set(m,x.cells));for(let g of x.cells)n.get(y).push({pageIndex:d,tableId:y,row:x,cell:g,rowIndex:m,isHeaderRepeat:x.isHeaderRepeat,offsetX:l,offsetY:f}),i(g.blocks,d,l,f);}}};for(let s of e.pages){i(s.fragments,s.index,0,0);for(let d of [s.header,s.footer])d&&i(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);for(let d of [s.footnotes,s.endnotes])if(d)for(let l of d.notes)i(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);}let c=new Map;for(let[s,d]of n)c.set(s,{placed:d,rows:r.get(s)??new Map,columnCount:a.get(s)??0});return Jn.set(e,c),c}function Sa(e){let t=e.columnCount;for(let n of e.rows.values())for(let r of n)t=Math.max(t,Y(r).to+1);return t}var Y=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function ba(e,t,n){if(t.tableId!==n.tableId)return null;let r=$(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(Y(t).from,Y(n).from),c=Math.max(Y(t).to,Y(n).to),s=y=>{let{from:b,to:x}=Y(y);return x>=i&&b<=c},d=y=>(r.rows.get(y)??[]).some(b=>b.vMergeContinue&&s(b)),l=r.rows.size+Sa(r)+2;for(let y=0;!(y>l);y+=1){let b=false;for(let[x,m]of r.rows)if(!(x<o||x>a))for(let g of m){if(!s(g))continue;let{from:S,to:F}=Y(g);S<i&&(i=S,b=true),F>c&&(c=F,b=true);}for(;o>0&&d(o);)o-=1,b=true;for(;d(a+1);)a+=1,b=true;if(!b)break}let f=[],h=new Set;for(let y of r.placed){if(y.isHeaderRepeat||y.rowIndex<o||y.rowIndex>a)continue;let{from:b,to:x}=Y(y.cell);x<i||b>c||h.has(y.cell.id)||(h.add(y.cell.id),f.push(y.cell.id));}return f.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:f,rows:{from:o,to:a},columns:{from:i,to:c},text:xa(e,t.tableId,f)}}function Ss(e,t){return er(e,t,true)}function _e(e,t){return er(e,t,false)}function er(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of $(e).values())for(let c of i.placed)if(!(c.isHeaderRepeat||!r.has(c.cell.id)))for(let s of c.cell.blocks)n&&s.kind!=="paragraph"||pe(s,o,a);return o}function pe(e,t,n){if(e.kind==="paragraph"){for(let r of chunkQFKGI242_cjs.Pa(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)pe(a,t,n);}function xa(e,t,n){let r=_e(e,n),o=r[0],a=r[r.length-1];return !o||!a?Ra(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:chunkQFKGI242_cjs.qe(e,a).length}}}function Ra(e,t){let n=$(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let c of o.cell.blocks)pe(c,a,new Set);let i=a[0];if(i){let c={paragraphId:i,offset:0};return {anchor:c,head:c}}}for(let o of e.pages)for(let a of chunkQFKGI242_cjs.xa(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function Fa(e){let t=[...chunkQFKGI242_cjs.xa(e)];for(let n of [e.header,e.footer])n&&t.push(...chunkQFKGI242_cjs.ya(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...chunkQFKGI242_cjs.ya(r.fragments));return t}function Ca(e,t){let n=new Set(_e(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of Fa(a))if(n.has(i.paragraphId))for(let c of i.lines)for(let s of c.spans){let d=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(d)||(o.add(d),r.push(s));}return r}function va(e,t){let n=new Set(t),r=[];for(let o of $(e).values())for(let a of o.placed)n.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function Ea(e,t,n=chunkQFKGI242_cjs.qe){let r=$(e).get(t.tableId);if(!r)return "";let o=new Set(t.cellIds),a=r.placed.some(s=>s.cell.logicalGridColumn!==void 0),i=new Map,c=new Set;for(let s of r.placed){if(s.isHeaderRepeat||!o.has(s.cell.id)||c.has(s.cell.id))continue;c.add(s.cell.id);let d=_e(e,[s.cell.id]).map(h=>n(e,h)).join(`
2
+ `),l=i.get(s.rowIndex),f=s.cell.gridColumn+(a?Math.max(1,s.cell.gridSpan)-1:0);l?l.set(f,d):i.set(s.rowIndex,new Map([[f,d]]));}return [...i.keys()].sort((s,d)=>s-d).map(s=>{let d=i.get(s),l=[];for(let f=0;f<=t.columns.to-t.columns.from;f+=1){let h=a?t.columns.to-f:t.columns.from+f;l.push(d.get(h)??"");}return l.join(" ")}).join(`
3
+ `)}function mt(e,t){return chunkQFKGI242_cjs.Ee(e,t)}function bs(e,t,n){if(n){let a=mt(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let c=$(e).get(n.tableId);if(!c)return null;for(let s of c.placed)if(s.cell.id===i)return {tableId:n.tableId,rowId:s.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:s.cell.logicalGridColumn??s.cell.gridColumn,isHeaderRepeat:s.isHeaderRepeat};return null}let r=mt(e,t);if(!r)return null;let o=$(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let c of a.cell.blocks)pe(c,i,new Set);if(i.includes(t))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.logicalGridColumn??a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}var Qn=new WeakMap;function xs(e,t){let n=Qn.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of $(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let c=[];for(let d of i.cell.blocks)pe(d,c,new Set);let s={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let d of c){let l=r.get(d);l&&l.tableId.length>=o.length||r.set(d,s);}}return Qn.set(e,r),r.get(t)??null}function La(e,t,n){if(![e,t,n].every(Number.isFinite)||t<=0||n<=0)return {offsetPt:0,count:0};let r=Math.ceil(e/n-1e-9)*n;if(!Number.isFinite(r))return {offsetPt:0,count:0};let o=Math.max(0,r-e);return {offsetPt:o,count:Math.min(8192,Math.max(0,Math.floor((t-o)/n+1e-9)))}}exports.$=V;exports.A=lt;exports.B=hn;exports.C=gn;exports.D=Sn;exports.E=bn;exports.F=xn;exports.G=Rn;exports.H=ho;exports.I=go;exports.J=ne;exports.K=xo;exports.L=ut;exports.M=vn;exports.N=Lo;exports.O=To;exports.P=In;exports.Q=Si;exports.R=wn;exports.S=An;exports.T=zo;exports.U=ko;exports.V=No;exports.W=Ti;exports.X=Go;exports.Y=kn;exports.Z=ea;exports._=na;exports.a=Je;exports.aa=Pe;exports.b=ir;exports.ba=$n;exports.c=J;exports.ca=fa;exports.d=et;exports.da=ya;exports.e=sr;exports.ea=ga;exports.f=B;exports.fa=ba;exports.g=tt;exports.ga=Ss;exports.h=ot;exports.ha=_e;exports.i=Ha;exports.ia=Ca;exports.j=rn;exports.ja=va;exports.k=on;exports.ka=Ea;exports.l=K;exports.la=mt;exports.m=ro;exports.ma=bs;exports.n=oo;exports.na=xs;exports.o=Za;exports.oa=La;exports.p=it;exports.q=Ja;exports.r=ao;exports.s=so;exports.t=Qa;exports.u=co;exports.v=st;exports.w=Ie;exports.x=lo;exports.y=uo;exports.z=po;
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkMM5QBMTE_cjs=require('./chunk-MM5QBMTE.cjs'),chunkT6K2QYNZ_cjs=require('./chunk-T6K2QYNZ.cjs'),chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');function z(n){let r=[],s=0;for(let t of n){let o=s+t.text.length;t.resultRuns?r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,resultRuns:t.resultRuns,...t.symbolOffsets?{symbolOffsets:t.symbolOffsets}:{},...t.symbolDisplays?{symbolDisplays:t.symbolDisplays}:{},projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}):t.floatingObject?r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,floatingObject:true,projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}):r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,...t.symbol?{symbol:true}:{},...t.symbolOffsets?{symbolOffsets:t.symbolOffsets}:{},...t.symbolDisplays?{symbolDisplays:t.symbolDisplays}:{},projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}),s=o;}return r}function G(n,r){return r<=n.rawStart?n.projectedStart:r>=n.rawEnd?n.projectedEnd:n.expansion?n.projectedStart:n.projectedStart+r-n.rawStart}function I(n,r){return n.expansion?n.rawStart:n.rawStart+r-n.projectedStart}function L(n,r){return n.expansion?n.rawEnd:n.rawStart+r-n.projectedStart}var K=new Set([chunkOSFOJTHU_cjs.bb,"\u2011"]),Q=/[\u001e\u001f\u2011]/,Y="\uFFFF";function W(n,r){if(!Q.test(n)&&!r?.size)return {text:n,at:null};let s="",t=[];for(let o=0;o<n.length;o+=1){let l=n[o];if(r?.has(o))s+=Y;else {if(l===chunkOSFOJTHU_cjs.cb)continue;s+=K.has(l)?"-":l;}t.push(o);}return {text:s,at:t}}function U(n){let r;for(let s of n){if(s.symbol){r??=new Set;for(let t=s.projectedStart;t<s.projectedEnd;t+=1)r.add(t);}for(let t of s.symbolOffsets??[])(r??=new Set).add(s.projectedStart+t);}return r}function O(n){let r=z(n),s="";for(let o of n)s+=o.text;let t=null;return {text:s,projectedOffset(o){let l=0;for(let i of r){if(o<=i.rawEnd)return G(i,o);l=i.projectedEnd;}return l},rawRange(o,l){if(o<0||o>=l||l>s.length)return null;let i=r.find(d=>o>=d.projectedStart&&o<d.projectedEnd),e=r.find(d=>l>d.projectedStart&&l<=d.projectedEnd);return !i||!e?null:{start:I(i,o),end:L(e,l)}},sliceRaw(o,l){if(o>=l)return "";let i="";for(let e of r){if(e.expansion){o<=e.rawStart&&l>=e.rawEnd&&(i+=e.text);continue}let d=Math.max(o,e.rawStart),a=Math.min(l,e.rawEnd);d<a&&(i+=e.text.slice(d-e.rawStart,a-e.rawStart));}return i},displaySlice(o,l){let i="";for(let e of r){if(e.projectedEnd<=o||e.projectedStart>=l)continue;let d=Math.max(o,e.projectedStart)-e.projectedStart,a=Math.min(l,e.projectedEnd)-e.projectedStart;if(e.symbol){i+=e.symbolDisplays?.[0]??"";continue}let u=new Map;e.symbolOffsets?.forEach((f,c)=>u.set(f,e.symbolDisplays?.[c]??""));for(let f=d;f<a;f+=1)i+=u.get(f)??e.text[f];}return i},resultRunAddressAt(o){let l=r.find(e=>e.resultRuns!==void 0&&o>=e.projectedStart&&o<e.projectedEnd);if(!l?.resultRuns)return null;let i=o-l.projectedStart;for(let e of l.resultRuns)if(i>=e.start&&i<e.end)return {runId:e.runId,offset:i-e.start};return null},findOccurrences(o,l,i={}){let e=[];if(l<=0||!chunkT6K2QYNZ_cjs.sa(o)||s.length===0)return {matches:e,truncated:false};let d=i.matchCase===true,a=i.wholeWord===true;t??=W(s,U(r));let u=t,f=W(o).text;if(f.length===0||f.includes(Y))return {matches:e,truncated:false};let c=d?f:chunkT6K2QYNZ_cjs.qa(f),j=d?u.text:chunkT6K2QYNZ_cjs.qa(u.text),R=p=>u.at?.[p]??p,X=p=>{if(!u.at)return p;let m=0;for(;m<u.at.length&&u.at[m]<p;)m+=1;return m},v=Math.min(s.length,i.to??s.length),D=new Set,b=j.indexOf(c,X(Math.max(0,i.from??0)));for(;b>=0;){let p=b+c.length,m=R(b),x=R(p-1)+1;if(x>v)return {matches:e,truncated:false};if(r.some(y=>y.floatingObject===true&&y.projectedStart>m&&y.projectedStart<x)){b=j.indexOf(c,b+1);continue}if(!a||chunkT6K2QYNZ_cjs.ra(u.text,b,p)){let y=r.find(h=>m>=h.projectedStart&&m<h.projectedEnd),E=r.find(h=>x>h.projectedStart&&x<=h.projectedEnd);if(!y||!E)return {matches:e,truncated:false};let S=y===E&&y.expansion?y:null;if(!S||!D.has(S)){if(e.length>=l)return {matches:e,truncated:true};e.push({start:m,length:x-m,rawStart:I(y,m),rawEnd:L(E,x)}),S&&D.add(S);}}b=j.indexOf(c,p);}return {matches:e,truncated:false}}}}function q(n){return n.length===0?O([]):O([{text:n,rawStart:0,rawEnd:n.length}])}var J="http://schemas.openxmlformats.org/markup-compatibility/2006";function Z(n){if(n.kind==="textValue")return false;if(chunkOSFOJTHU_cjs.od(n))return chunkOSFOJTHU_cjs.pd(n);let r=s=>s.kind!=="textValue"&&s.children.some(t=>t.kind==="anchoredDrawing"||t.kind!=="textValue"&&t.localName==="anchor");if(n.kind==="drawing")return r(n);if(n.namespaceUri!==J||n.localName!=="AlternateContent")return false;for(let s of n.children){if(s.kind==="textValue"||s.localName!=="Choice")continue;let t=s.children.find(o=>o.kind==="drawing"||o.kind!=="textValue"&&o.localName==="drawing");if(t)return r(t)}return false}function $(n,r,s="allMarkup"){if(!r.includes(chunkOSFOJTHU_cjs.nf)&&!r.includes(chunkOSFOJTHU_cjs.db))return r.length===0?[]:[{text:r,rawStart:0,rawEnd:r.length}];let t=chunkOSFOJTHU_cjs.If(n),o=chunkOSFOJTHU_cjs.ig(n,t),l=chunkMM5QBMTE_cjs.d(n,t,s),i=new Map;for(let a of t)i.set(a.node.id,a);let e=[],d=0;for(let a of o){let u=i.get(a.node.id),f=!u&&chunkOSFOJTHU_cjs.eb(a.node);if(!u&&!f){Z(a.node)&&(d<a.start&&e.push({text:r.slice(d,a.start),rawStart:d,rawEnd:a.start}),e.push({text:"",rawStart:a.start,rawEnd:a.end,floatingObject:true}),d=a.end);continue}if(d<a.start&&e.push({text:r.slice(d,a.start),rawStart:d,rawEnd:a.start}),!u){e.push({text:chunkOSFOJTHU_cjs.db,rawStart:a.start,rawEnd:a.end,symbol:true,symbolDisplays:[chunkOSFOJTHU_cjs.Lj(a.node)]}),d=a.end;continue}let c=l.get(u.node.id);u.kind==="simple"&&c?e.push({text:c.text,rawStart:a.start,rawEnd:a.end,resultRuns:c.runs,...c.symbols?{symbolOffsets:c.symbols}:{},...c.symbolDisplays?{symbolDisplays:c.symbolDisplays}:{}}):e.push({text:c?.text??chunkOSFOJTHU_cjs.nf,rawStart:a.start,rawEnd:a.end,...c?.symbols?{symbolOffsets:c.symbols}:{},...c?.symbolDisplays?{symbolDisplays:c.symbolDisplays}:{}}),d=a.end;}return d<r.length&&e.push({text:r.slice(d),rawStart:d,rawEnd:r.length}),e}function it(n,r,s="allMarkup"){return !r.includes(chunkOSFOJTHU_cjs.nf)&&!r.includes(chunkOSFOJTHU_cjs.db)?q(r):O($(n,r,s))}
1
+ 'use strict';var chunk5RRAZMBU_cjs=require('./chunk-5RRAZMBU.cjs'),chunkYBMWBXST_cjs=require('./chunk-YBMWBXST.cjs'),chunkPWTRJSES_cjs=require('./chunk-PWTRJSES.cjs');function z(n){let r=[],s=0;for(let t of n){let o=s+t.text.length;t.resultRuns?r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,resultRuns:t.resultRuns,...t.symbolOffsets?{symbolOffsets:t.symbolOffsets}:{},...t.symbolDisplays?{symbolDisplays:t.symbolDisplays}:{},projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}):t.floatingObject?r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,floatingObject:true,projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}):r.push({text:t.text,rawStart:t.rawStart,rawEnd:t.rawEnd,...t.symbol?{symbol:true}:{},...t.symbolOffsets?{symbolOffsets:t.symbolOffsets}:{},...t.symbolDisplays?{symbolDisplays:t.symbolDisplays}:{},projectedStart:s,projectedEnd:o,expansion:t.text.length!==t.rawEnd-t.rawStart}),s=o;}return r}function G(n,r){return r<=n.rawStart?n.projectedStart:r>=n.rawEnd?n.projectedEnd:n.expansion?n.projectedStart:n.projectedStart+r-n.rawStart}function I(n,r){return n.expansion?n.rawStart:n.rawStart+r-n.projectedStart}function L(n,r){return n.expansion?n.rawEnd:n.rawStart+r-n.projectedStart}var K=new Set([chunkPWTRJSES_cjs.bb,"\u2011"]),Q=/[\u001e\u001f\u2011]/,Y="\uFFFF";function W(n,r){if(!Q.test(n)&&!r?.size)return {text:n,at:null};let s="",t=[];for(let o=0;o<n.length;o+=1){let l=n[o];if(r?.has(o))s+=Y;else {if(l===chunkPWTRJSES_cjs.cb)continue;s+=K.has(l)?"-":l;}t.push(o);}return {text:s,at:t}}function U(n){let r;for(let s of n){if(s.symbol){r??=new Set;for(let t=s.projectedStart;t<s.projectedEnd;t+=1)r.add(t);}for(let t of s.symbolOffsets??[])(r??=new Set).add(s.projectedStart+t);}return r}function O(n){let r=z(n),s="";for(let o of n)s+=o.text;let t=null;return {text:s,projectedOffset(o){let l=0;for(let i of r){if(o<=i.rawEnd)return G(i,o);l=i.projectedEnd;}return l},rawRange(o,l){if(o<0||o>=l||l>s.length)return null;let i=r.find(d=>o>=d.projectedStart&&o<d.projectedEnd),e=r.find(d=>l>d.projectedStart&&l<=d.projectedEnd);return !i||!e?null:{start:I(i,o),end:L(e,l)}},sliceRaw(o,l){if(o>=l)return "";let i="";for(let e of r){if(e.expansion){o<=e.rawStart&&l>=e.rawEnd&&(i+=e.text);continue}let d=Math.max(o,e.rawStart),a=Math.min(l,e.rawEnd);d<a&&(i+=e.text.slice(d-e.rawStart,a-e.rawStart));}return i},displaySlice(o,l){let i="";for(let e of r){if(e.projectedEnd<=o||e.projectedStart>=l)continue;let d=Math.max(o,e.projectedStart)-e.projectedStart,a=Math.min(l,e.projectedEnd)-e.projectedStart;if(e.symbol){i+=e.symbolDisplays?.[0]??"";continue}let u=new Map;e.symbolOffsets?.forEach((f,c)=>u.set(f,e.symbolDisplays?.[c]??""));for(let f=d;f<a;f+=1)i+=u.get(f)??e.text[f];}return i},resultRunAddressAt(o){let l=r.find(e=>e.resultRuns!==void 0&&o>=e.projectedStart&&o<e.projectedEnd);if(!l?.resultRuns)return null;let i=o-l.projectedStart;for(let e of l.resultRuns)if(i>=e.start&&i<e.end)return {runId:e.runId,offset:i-e.start};return null},findOccurrences(o,l,i={}){let e=[];if(l<=0||!chunkYBMWBXST_cjs.sa(o)||s.length===0)return {matches:e,truncated:false};let d=i.matchCase===true,a=i.wholeWord===true;t??=W(s,U(r));let u=t,f=W(o).text;if(f.length===0||f.includes(Y))return {matches:e,truncated:false};let c=d?f:chunkYBMWBXST_cjs.qa(f),j=d?u.text:chunkYBMWBXST_cjs.qa(u.text),R=p=>u.at?.[p]??p,X=p=>{if(!u.at)return p;let m=0;for(;m<u.at.length&&u.at[m]<p;)m+=1;return m},v=Math.min(s.length,i.to??s.length),D=new Set,b=j.indexOf(c,X(Math.max(0,i.from??0)));for(;b>=0;){let p=b+c.length,m=R(b),x=R(p-1)+1;if(x>v)return {matches:e,truncated:false};if(r.some(y=>y.floatingObject===true&&y.projectedStart>m&&y.projectedStart<x)){b=j.indexOf(c,b+1);continue}if(!a||chunkYBMWBXST_cjs.ra(u.text,b,p)){let y=r.find(h=>m>=h.projectedStart&&m<h.projectedEnd),E=r.find(h=>x>h.projectedStart&&x<=h.projectedEnd);if(!y||!E)return {matches:e,truncated:false};let S=y===E&&y.expansion?y:null;if(!S||!D.has(S)){if(e.length>=l)return {matches:e,truncated:true};e.push({start:m,length:x-m,rawStart:I(y,m),rawEnd:L(E,x)}),S&&D.add(S);}}b=j.indexOf(c,p);}return {matches:e,truncated:false}}}}function q(n){return n.length===0?O([]):O([{text:n,rawStart:0,rawEnd:n.length}])}var J="http://schemas.openxmlformats.org/markup-compatibility/2006";function Z(n){if(n.kind==="textValue")return false;if(chunkPWTRJSES_cjs.od(n))return chunkPWTRJSES_cjs.pd(n);let r=s=>s.kind!=="textValue"&&s.children.some(t=>t.kind==="anchoredDrawing"||t.kind!=="textValue"&&t.localName==="anchor");if(n.kind==="drawing")return r(n);if(n.namespaceUri!==J||n.localName!=="AlternateContent")return false;for(let s of n.children){if(s.kind==="textValue"||s.localName!=="Choice")continue;let t=s.children.find(o=>o.kind==="drawing"||o.kind!=="textValue"&&o.localName==="drawing");if(t)return r(t)}return false}function $(n,r,s="allMarkup"){if(!r.includes(chunkPWTRJSES_cjs.nf)&&!r.includes(chunkPWTRJSES_cjs.db))return r.length===0?[]:[{text:r,rawStart:0,rawEnd:r.length}];let t=chunkPWTRJSES_cjs.If(n),o=chunkPWTRJSES_cjs.ig(n,t),l=chunk5RRAZMBU_cjs.d(n,t,s),i=new Map;for(let a of t)i.set(a.node.id,a);let e=[],d=0;for(let a of o){let u=i.get(a.node.id),f=!u&&chunkPWTRJSES_cjs.eb(a.node);if(!u&&!f){Z(a.node)&&(d<a.start&&e.push({text:r.slice(d,a.start),rawStart:d,rawEnd:a.start}),e.push({text:"",rawStart:a.start,rawEnd:a.end,floatingObject:true}),d=a.end);continue}if(d<a.start&&e.push({text:r.slice(d,a.start),rawStart:d,rawEnd:a.start}),!u){e.push({text:chunkPWTRJSES_cjs.db,rawStart:a.start,rawEnd:a.end,symbol:true,symbolDisplays:[chunkPWTRJSES_cjs.Mj(a.node)]}),d=a.end;continue}let c=l.get(u.node.id);u.kind==="simple"&&c?e.push({text:c.text,rawStart:a.start,rawEnd:a.end,resultRuns:c.runs,...c.symbols?{symbolOffsets:c.symbols}:{},...c.symbolDisplays?{symbolDisplays:c.symbolDisplays}:{}}):e.push({text:c?.text??chunkPWTRJSES_cjs.nf,rawStart:a.start,rawEnd:a.end,...c?.symbols?{symbolOffsets:c.symbols}:{},...c?.symbolDisplays?{symbolDisplays:c.symbolDisplays}:{}}),d=a.end;}return d<r.length&&e.push({text:r.slice(d),rawStart:d,rawEnd:r.length}),e}function it(n,r,s="allMarkup"){return !r.includes(chunkPWTRJSES_cjs.nf)&&!r.includes(chunkPWTRJSES_cjs.db)?q(r):O($(n,r,s))}
2
2
  exports.a=O;exports.b=q;exports.c=$;exports.d=it;