@docx-editor.dev/core 2.36.0 → 2.37.0-canary.20261110032710.sha-525df6f

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 (102) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +6 -6
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +11 -11
  6. package/dist/binding.js +1 -1
  7. package/dist/{chrome-print-B9U_PiqL.d.ts → chrome-print-BSsqYQtt.d.ts} +51 -19
  8. package/dist/chunk-36NJQDWI.cjs +31 -0
  9. package/dist/chunk-3OKDY5TX.cjs +3 -0
  10. package/dist/{chunk-I34OVDHO.cjs → chunk-4QLFADOG.cjs} +1 -1
  11. package/dist/chunk-6EGRB3J4.js +6 -0
  12. package/dist/chunk-6I6V2JDF.cjs +7 -0
  13. package/dist/chunk-77L2HX42.js +1 -0
  14. package/dist/chunk-ATU65CUF.cjs +32 -0
  15. package/dist/chunk-EB5XLX3A.js +4 -0
  16. package/dist/chunk-G7GO4CNK.cjs +2 -0
  17. package/dist/chunk-JK4HBRVP.js +7 -0
  18. package/dist/{chunk-D75AXVLG.cjs → chunk-JZXMWGF4.cjs} +1 -1
  19. package/dist/{chunk-HLMY6NFI.js → chunk-MLJJL4QG.js} +1 -1
  20. package/dist/chunk-MYNOUTWY.js +1 -0
  21. package/dist/{chunk-QTRRXJXQ.cjs → chunk-NPPHSBFT.cjs} +3 -3
  22. package/dist/{chunk-7ZSPY7WH.cjs → chunk-OTZNA6FP.cjs} +1 -1
  23. package/dist/chunk-Q3FUAUL4.js +31 -0
  24. package/dist/chunk-RFMMFHWX.cjs +6 -0
  25. package/dist/chunk-T6MYXF6V.js +32 -0
  26. package/dist/chunk-TTPQZXYS.js +3 -0
  27. package/dist/{chunk-4RDU6QVH.cjs → chunk-UMDB6PEV.cjs} +1 -1
  28. package/dist/{chunk-NTDLU6W6.cjs → chunk-UP5TM6T6.cjs} +1 -1
  29. package/dist/{chunk-2BVJFI6B.js → chunk-WMM772MS.js} +1 -1
  30. package/dist/chunk-XI5HK3TZ.js +282 -0
  31. package/dist/chunk-XMJFDVE2.js +4 -0
  32. package/dist/chunk-XPBKJQTG.cjs +282 -0
  33. package/dist/{chunk-VS2MXS62.js → chunk-YCOHPEF2.js} +1 -1
  34. package/dist/{chunk-IMTQS6N5.cjs → chunk-YVK3NMR6.cjs} +1 -1
  35. package/dist/{chunk-K3UKJU4K.js → chunk-YVLF7HBD.js} +1 -1
  36. package/dist/chunk-Z6NPBOE6.js +2 -0
  37. package/dist/chunk-ZY7HJR3R.cjs +4 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +2 -2
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/contracts/document.d.ts +2 -2
  42. package/dist/contracts/editor.d.ts +8 -8
  43. package/dist/contracts/modules.d.ts +9 -9
  44. package/dist/contracts/types.d.ts +3 -3
  45. package/dist/{custom-node-writes-DqzeiTpY.d.ts → custom-node-writes-Buryuzow.d.ts} +2 -2
  46. package/dist/{document-protection-CGnc6WX7.d.ts → document-protection-Denp0lhl.d.ts} +1 -1
  47. package/dist/{drawing-graphic-kind-Dw4Qu9VA.d.ts → drawing-graphic-kind-DjGMFeSM.d.ts} +2 -2
  48. package/dist/{drawing-preview-package-BuFluWSg.d.ts → drawing-preview-package-LHyHuTVq.d.ts} +1 -1
  49. package/dist/{editor-CoU0Ipa9.d.ts → editor-B0xPJSXd.d.ts} +233 -9
  50. package/dist/editor.cjs +1 -1
  51. package/dist/editor.css +2 -2
  52. package/dist/editor.d.ts +309 -26
  53. package/dist/editor.js +1 -1
  54. package/dist/export.cjs +2 -2
  55. package/dist/export.d.ts +2 -2
  56. package/dist/export.js +1 -1
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.ts +17 -17
  59. package/dist/index.js +1 -1
  60. package/dist/{layout-shaping-B7ifvgm-.d.ts → layout-shaping-CFTk9pWQ.d.ts} +1 -1
  61. package/dist/layout.cjs +1 -1
  62. package/dist/layout.d.ts +16 -14
  63. package/dist/layout.js +1 -1
  64. package/dist/{note-properties-CrO9A0Ju.d.ts → note-properties-C8_cURo1.d.ts} +1 -1
  65. package/dist/output.cjs +1 -1
  66. package/dist/output.d.ts +9 -9
  67. package/dist/output.js +1 -1
  68. package/dist/{protocol-C-LfGgrt.d.ts → protocol-CG_ybtKt.d.ts} +2 -2
  69. package/dist/{review-paragraph-order-gZ8-oIWd.d.ts → review-paragraph-order-3oV2aI2q.d.ts} +1 -1
  70. package/dist/{revision-projection-BAUauksK.d.ts → revision-projection-C9oujZwA.d.ts} +1 -1
  71. package/dist/{semantic-cell-selection--xgumqWx.d.ts → semantic-cell-selection-BiYMYlbf.d.ts} +2 -2
  72. package/dist/{semantic-interaction-B_AAT9S2.d.ts → semantic-interaction-BTba0_1e.d.ts} +1 -1
  73. package/dist/{semantic-paint-Cl4VyItm.d.ts → semantic-paint-B_xi9H5m.d.ts} +4 -4
  74. package/dist/{semantic-record-queries-BKX8sDqa.d.ts → semantic-record-queries-TdjLU-AU.d.ts} +1 -1
  75. package/dist/{semantic-records-DkDc4E1z.d.ts → semantic-records-C5qbT1sK.d.ts} +29 -5
  76. package/dist/store.cjs +1 -1
  77. package/dist/store.d.ts +12 -12
  78. package/dist/store.js +1 -1
  79. package/dist/{tree-op-types-BJTz6t_O.d.ts → tree-op-types-DzstjXTb.d.ts} +12 -2
  80. package/dist/{tree-package-fragment-DDV5xjSI.d.ts → tree-package-fragment-DLbxcboK.d.ts} +67 -65
  81. package/dist/{tree-session-contract-CAsZn-VN.d.ts → tree-session-contract-BiKgucBu.d.ts} +92 -11
  82. package/dist/{unsupported-elements-1Tj829Bk.d.ts → unsupported-elements-KboafN7A.d.ts} +1 -1
  83. package/package.json +2 -2
  84. package/dist/chunk-3DLIAAXE.js +0 -2
  85. package/dist/chunk-3KSO2I22.js +0 -4
  86. package/dist/chunk-4K5QXGVN.js +0 -31
  87. package/dist/chunk-5JHQHJRH.js +0 -3
  88. package/dist/chunk-5W6DLXVG.cjs +0 -3
  89. package/dist/chunk-6VTHQTM3.js +0 -1
  90. package/dist/chunk-7MOZVKCN.js +0 -282
  91. package/dist/chunk-BR7AQCGM.cjs +0 -31
  92. package/dist/chunk-DZO5K26E.js +0 -1
  93. package/dist/chunk-K5FZYV6Z.cjs +0 -32
  94. package/dist/chunk-MK4MO7RT.cjs +0 -7
  95. package/dist/chunk-N5RYSQN5.js +0 -4
  96. package/dist/chunk-O2AEJ5T4.js +0 -5
  97. package/dist/chunk-PSVIEQUU.js +0 -32
  98. package/dist/chunk-PXF5BBEK.cjs +0 -2
  99. package/dist/chunk-R42NW5FO.js +0 -7
  100. package/dist/chunk-TCWCSTAF.cjs +0 -282
  101. package/dist/chunk-XFDDD65J.cjs +0 -4
  102. package/dist/chunk-XTNY4DBY.cjs +0 -5
@@ -0,0 +1,3 @@
1
+ import {f,c,d,e}from'./chunk-RIYSCEFQ.js';import {gf,n,l,p,j as j$1,k,r,i,o,A,B,C,x,u,a,g,f as f$2,ya as ya$1,Ca as Ca$1,fb,Oa as Oa$1,Mf,Lf,ra as ra$1,w,y,ta as ta$1,xd,vd,ld,Kc,ue,mb,q as q$1,ec,hc,nc,ic,bc,ac,tc,qc as qc$1,gc,O,pc,lc,ab,Ja as Ja$1,rd,cc,oc,rc as rc$1,t,b,e as e$1,c as c$1,m,Ra as Ra$1,Ya,If,ae,we,te as te$1,id,wd,jc,kc,Ka as Ka$1,fc,h,sa,Ia as Ia$1}from'./chunk-T6MYXF6V.js';import {f as f$1,Fn,sc,qc,vc as vc$1,rc,tj,In as In$1,Hn as Hn$1,Gn as Gn$1,ec as ec$1,oc as oc$1,c as c$2,pe as pe$1,b as b$1}from'./chunk-XI5HK3TZ.js';var zr=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let l=i*2n;(l>t||l===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},mt=(e,t,n$1,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$1)||n$1<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");if(e===0||n$1===0)return n(0);let o=e*n$1;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),n(c===0?0:o<0?-c:c)}return n(zr(BigInt(e)*BigInt(n$1),BigInt(t),r))},En=(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=>mt(i,a,o,r)},vn=(e,t,n)=>{let r=t*n,o=e*2;return a=>a*r/o};var ze=(e,t)=>e[t]<<8|e[t+1],Ln=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Dr(e,t){let n=(c,s)=>c>=0&&c+s<=e.length;if(!n(0,12))return false;let a=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"&&n(12+t*4,4)?Ln(e,12+t*4):0;if(!n(a,12))return false;let i=ze(e,a+4);for(let c=0;c<i;c+=1){let s=a+12+c*16;if(!n(s,16))return false;if(!(e[s]===99&&e[s+1]===109&&e[s+2]===97&&e[s+3]===112))continue;let u=Ln(e,s+8);if(!n(u,4))return false;let y=ze(e,u+2);for(let m=0;m<y;m+=1){let p=u+4+m*8;if(!n(p,4))return false;if(ze(e,p)===3&&ze(e,p+2)===0)return true}return false}return false}var Bn=new WeakMap;function Tn(e,t){let n=Bn.get(e);return n===void 0&&(n=Dr(t,e.faceIndex),Bn.set(e,n)),n}function On(e){let t="",n=false;for(let r=0;r<e.length;r+=1){let o=e.charCodeAt(r);o>=32&&o<=255?(t+=String.fromCharCode(61440+o),n=true):t+=e[r];}return n?t:e}var Hr=4096,wn=e=>typeof e=="number"?String(e):JSON.stringify(e)??typeof e,De=class{constructor(t){this.onRestart=t;}onRestart;#e=new Map;keyOf(t$1,n){let r=t(n),o=this.#e.get(r);o===void 0&&(this.#e.size>=Hr&&(this.#e.clear(),this.onRestart()),o=this.#e.size,this.#e.set(r,o));let a=`${o}\0${wn(t$1.fontSizeHalfPoints)}\0${wn(t$1.bidiLevel)}\0`,i=t$1.context;return !i||i.before===""&&i.after===""?`${a}-${t$1.text}`:`${a}c${i.before.length},${i.after.length}\0${i.before}${i.after}${t$1.text}`}clear(){this.#e.clear();}};var ie=Object.freeze({name:"HarfBuzz",version:"15.0.0"}),ge=null,ye=null;function ht(){return ge?Promise.resolve():ye||(ye=import('./dist-M3Q5JCPD.js').then(e=>{let t=e.versionString();if(t!==ie.version)throw new I("shapingLibraryMismatch",{diagnostic:f(ie.version,t)});ge=e;}).catch(e$1=>{throw ye=null,e$1 instanceof I?e$1:c(e$1)?new I("unsupportedRuntime",{diagnostic:d(e$1),cause:e$1}):new I("wasmUnavailable",{diagnostic:e(e$1),cause:e$1})}),ye)}function Gr(){return ge!==null}function Ur(){if(!ge)throw new I("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return ge}var I=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;}},Kr=16*1024*1024,Wr=1e6,Vr=1e6,jr=1e6,Xr=4,Yr=512,$r=1024*1024,qr=16*1024*1024,Zr=32*1024*1024,Jr=64*1024*1024,Qr=64*1024*1024,eo=1e6,to=1e6,no=1e6,ro=64,oo=4096,ao=4*1024*1024,io=64*1024*1024,so=64*1024*1024,co=256*1024*1024,lo=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),An=["cmap","head","hhea","hmtx","maxp"],uo=(e,t)=>e[t]<<8|e[t+1],po=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,fo=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?po(e,12+t*4):0,mo=(e,t)=>{let n=fo(e,t),r=uo(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},yo=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),ho=(e,t)=>{let n=l(e,t);if(!n.valid)return n;let r=mo(e,t);for(let o of An)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},gt=ho,U=(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},go=(e,t,n$1)=>{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=n(c);r.push({textStart:a,textEnd:n$1==="rtl"?t[o-1]?.cluster??e.length:t[i]?.cluster??e.length,glyphStart:o,glyphEnd:i,advance:s,caretEdges:Object.freeze([n(0),s]),fontSpan:0}),o=i;}return r},j=64,$=8,q=8,In=32,St=j+2*$,So=j+$+q,xo=j+$+2*q,bo=j+$+q,Mn=j+8*$,Pn=j+8*q+$,Ro=j+6*q+$,Fo=j+3*q+2*$,Co=j+3*q,Se=e=>j+e.length*Uint16Array.BYTES_PER_ELEMENT,xt=e=>bo+Se(e),he=e=>In+e*$,Eo=(e,t)=>St+Se(e)+So+xt(t),vo=e=>Mn+Se(e)+he(e.length)+e.length*Pn,Lo=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return Mn+Se(e.text)+he(e.glyphs.length)+e.glyphs.length*Pn+he(e.clusters.length)+e.clusters.length*Ro+e.clusters.reduce((n,r)=>n+he(r.caretEdges.length),0)+he(e.fontSpans.length)+e.fontSpans.length*Fo+(e.exactAdvancesX===void 0?0:In+e.exactAdvancesX.length*q)+Co+[...t].reduce((n,r)=>n+xt(r.path),0)},Bo=(e,t)=>St+Se(e)+xo+t,yt=class{#e;#p;#f;#m;#y;#R;#h;#l=0;#F;#g;#S;#c;#x;#u;#t;#o=new Map;#i=new Map;#s=new Map;#n=new Map;#C=new De(()=>{this.#n.clear(),this.#r=0,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0}));});#a=0;#r=0;#b=0;#d;constructor(t,n){p(this),this.#e=t,this.#p=U(n.maxFontBytes??Kr,"maximum font bytes",Qr),this.#f=U(n.maxInputUtf16??Wr,"maximum input UTF-16 code units",eo),this.#m=U(n.maxCodepoints??Vr,"maximum input code points",to),this.#y=U(n.maxGlyphs??jr,"maximum shaped glyphs",no),this.#h=U(n.maxCachedFontBytes??64*1024*1024,"maximum cached font bytes",64*1024*1024),this.#R=U(n.maxCachedFaces??Xr,"maximum cached faces",ro),this.#F=U(n.maxCachedShapes??Yr,"maximum cached shape results",oo),this.#g=U(n.maxOutlineBytes??$r,"maximum outline bytes",ao),this.#S=U(n.maxCachedOutlineBytes??qr,"maximum cached outline bytes",io),this.#c=U(n.maxShapedRunBytes??Zr,"maximum shaped run bytes",so),this.#x=U(n.maxCachedShapeBytes??Jr,"maximum cached shape bytes",co),this.#u=n.instrumentation?.onFaceCacheEvent,this.#t=n.instrumentation,this.#d=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.#d=void 0;}#v(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#u?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=j$1(t);for(let u of An)if(!o.has(u))throw new I("malformedFont",{diagnostic:`missing required ${u} table`});this.#t?.onByteCopy?.();let a=new this.#e.Blob(yo(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 I("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});c.setScale(i.upem,i.upem);let l={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 u=this.#o.keys().next().value;if(u===void 0)break;this.#l-=this.#o.get(u).byteLength,this.#o.delete(u),this.#u?.(Object.freeze({kind:"evicted",identity:u}));}this.#o.set(t.identity,l),this.#l+=n.byteLength;}return this.#u?.(Object.freeze({kind:"created",identity:t.identity})),l}#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=xt(o);if(a>this.#g)throw new I("outlineOverLimit",{limit:this.#g,actual:a});let i=Object.freeze({path:o,unitsPerEm:t.unitsPerEm}),c=Eo(t.identity,o)+3*St+2*q;if(c>this.#S)return this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#a})),i;for(;this.#a+c>this.#S;){let u=this.#s.keys().next().value;if(u===void 0)break;this.#s.delete(u);let y=this.#i.get(u.identity);y.delete(u.glyphId),y.size===0&&this.#i.delete(u.identity),this.#a-=u.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 l={outline:i,bytes:c,identity:t.identity,glyphId:n};return s.set(n,l),this.#s.set(l,void 0),this.#a+=c,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#a})),i}#E(t){if(t.length>this.#f)throw new I("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.#m)throw new I("codepointsOverLimit",{limit:this.#m,actual:n})}}shape(t){if(!this.#d)throw new I("disposed");if(k(t.environment.font),t.environment.font.byteLength>this.#p)throw new I("fontOverLimit",{limit:this.#p,actual:t.environment.font.byteLength});this.#E(t.text);let n$1=vo(t.text);if(n$1>this.#c)throw new I("shapedRunOverLimit",{limit:this.#c,actual:n$1});let r$1=r(t.environment),o$1=this.#C.keyOf(t,r$1),a=this.#n.get(o$1);if(a)return this.#b-a.stamp>=Math.max(1,this.#n.size>>1)&&(this.#n.delete(o$1),this.#n.set(o$1,a),a.stamp=++this.#b),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r$1.shapingLibrary.name!==ie.name||r$1.shapingLibrary.version!==ie.version)throw new I("shapingLibraryMismatch");if(r$1.normalization!=="none")throw new I("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r$1.direction==="rtl"))throw new I("invalidBidiLevel");if(Object.keys(r$1.variationAxes).length>0)throw new I("unsupportedVariationAxes");if(r$1.fallbackOrder.length>0)throw new I("unsupportedFallback");let i$1=i(r$1.font),c=j$1(r$1.font);if([...lo].some(p=>c.has(p))&&!c.has("glyf")&&!c.has("CFF "))throw new I("unsupportedColorFont");let s=t.text;this.#E(s);let l=t.context?.before??"",u$1=t.context?.after??"",y=o,m=Math.max(String(l).length,String(u$1).length);if(typeof l!="string"||typeof u$1!="string"||m>y)throw new I("textOverLimit",{limit:y,actual:m});try{let p=this.#v(r$1.font,i$1),{face:g,font:h}=p,d=this.#d;d.reset();let S=Tn(r$1.font,i$1)?On:String,x$1=l+s+u$1,R=A(x$1)?B(p):void 0,L=A=>S(R?C(A,R):A);l||u$1?d.addText(L(l+s+u$1),l.length,s.length):d.addText(L(s)),d.setDirection(r$1.direction==="rtl"?this.#e.Direction.RTL:this.#e.Direction.LTR),d.setScript(r$1.script),d.setLanguage(r$1.language),d.setClusterLevel(this.#e.ClusterLevel.MONOTONE_CHARACTERS);let E=Object.entries(r$1.features).map(([A,k])=>new this.#e.Feature(A,k));if((r$1.features.kern??1)!==0)for(let[A,k]of x(l+s+u$1))E.push(new this.#e.Feature("kern",0,A,k));this.#t?.onShapeCall?.(),this.#e.shape(h,d,E);let M=d.getLength();if(M>this.#y)throw new I("glyphOverLimit",{limit:this.#y,actual:M});let B$1=d.getGlyphInfos(),v=d.getGlyphPositions(),T=En(g.upem,t.fontSizeHalfPoints,r$1.fixedPointScale,r$1.roundingMode),P=vn(g.upem,t.fontSizeHalfPoints,r$1.fixedPointScale),_=[],z=n(0),W=n(0),b=new Map,f=B$1.map((A,k)=>{let D=v[k],Y=R?.get(x$1.charCodeAt(A.cluster)),se=Y?.advance??D?.xAdvance??0;_.push(P(se));let ce=T(se),_t=T(D?.yAdvance??0),Re=Y?.glyph??A.codepoint,Nr={id:Re,cluster:A.cluster-l.length,originX:z,originY:W,advanceX:ce,advanceY:_t,offsetX:T(D?.xOffset??0),offsetY:T(D?.yOffset??0),outline:b.get(Re)??(()=>{let kt=this.#L(p,Re);return b.set(Re,kt),kt})()};return z=n(z+ce),W=n(W+_t),Nr}),F=h.hExtents(),C$1=u({text:s,direction:r$1.direction,bidiLevel:t.bidiLevel,glyphs:f,exactAdvancesX:_,clusters:go(s,f,r$1.direction),fontSpans:f.length===0?[]:[{glyphStart:0,glyphEnd:f.length,font:r$1.font,fallbackIndex:null}],metrics:{ascent:T(F.ascender),descent:T(-F.descender),lineGap:T(F.lineGap)}},r$1),O=Lo(C$1);if(O>this.#c)throw new I("shapedRunOverLimit",{limit:this.#c,actual:O});let w=Bo(o$1,O);if(w>this.#x)return this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),C$1;for(;this.#n.size>=this.#F||this.#r+w>this.#x;){let A=this.#n.keys().next().value;if(A===void 0)break;let k=this.#n.get(A);this.#n.delete(A),this.#r-=k.bytes,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o$1,{run:C$1,bytes:w,stamp:++this.#b}),this.#r+=w,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),C$1}catch(p){throw p instanceof I?p:new I("malformedFont",{diagnostic:p instanceof Error?p.message:"HarfBuzz shaping failed"})}}},bt=(e={})=>new yt(Ur(),e);var Rt=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}),Ai=Object.freeze({...Rt,maxCachedShapes:4096});function _n(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:${f$1(new TextEncoder().encode(JSON.stringify(n)))}`}function kn(e,t=Rt){let n=e?.maxFontBytes??t.maxFontBytes;if(!Number.isSafeInteger(n)||n<=0||n>a)throw new RangeError(`Font shaping byte ceiling must be between 1 and ${a}`);return n===t.maxFontBytes?t:Object.freeze({...t,maxFontBytes:n})}function Nn(e,t,n=false){let r=false,o=Object.freeze({shape(a){if(r)throw new I("disposed");let i=a.environment.font;if(k(i),i.byteLength>t.maxFontBytes)throw new I("fontOverLimit",{limit:t.maxFontBytes,actual:i.byteLength});return e.shape(a)},dispose(){r||(r=true,n&&e.dispose?.());}});return q$1(e)?p(o):o}var To=Object.freeze({}),zn=b,Oo="16.0.0",wo="none",Ao=1e3,Io="halfToEven",Gn="cluster-edges-only",Mo="Latn",Po=new Uint8Array(0);var Z=class extends Error{code="overLimit";constructor(t){super(t),this.name="LayoutShapingConfigurationError";}};function _o(e,t){let n=e.epoch,r=e.maxFontBytes,o=e.sources,a$1=e.substitutions,i=e.defaultFont,c=e.language;if(!Number.isSafeInteger(r)||r<=0||r>a)throw new Z(`Font byte ceiling must not exceed the engine hard maximum of ${a}`);let s=o.length,l=a$1?.length??0;if(s===0||s>b)throw new Z(`Font source count must be between 1 and ${b}`);if(l>zn)throw new Z(`Font substitution count must not exceed ${zn}`);let u=0,y=[];for(let g$1=0;g$1<s;g$1+=1){let h=o[g$1],d=h.request,S=h.availability,x=h.id,R=h.hash,L=h.faceIndex,E=S==="forbidden",M=E?Po:h.bytes;if(!E){if(typeof x!="string"||x.length===0)throw new TypeError("Resolved font id must not be empty");let B;try{B=e$1(M);}catch{throw new Z(`Font source ${x} must provide genuine bytes`)}if(B>r)throw new Z(`Font source ${x} exceeds the per-font byte ceiling`);if(u+=B,u>c$1)throw new Z(`Font sources exceed the aggregate byte ceiling of ${c$1}`)}y.push(t&&g(h)!==void 0?h:Object.freeze({request:Object.freeze({family:d.family,weight:d.weight,style:d.style}),id:x,bytes:M,hash:R,faceIndex:L,...S?{availability:S}:{}}));}let m;if(a$1){m=[];for(let g=0;g<l;g+=1){let h=a$1[g],d=h.from,S=h.to,x=h.lineMetrics;m.push(Object.freeze({from:Object.freeze({family:d.family,weight:d.weight,style:d.style}),to:Object.freeze({family:S.family,weight:S.weight,style:S.style}),...x?{lineMetrics:Object.freeze({heightEm:x.heightEm,baselineEm:x.baselineEm})}:{}}));}}let p={epoch:n,maxFontBytes:r,sources:Object.freeze(y),substitutions:m?Object.freeze(m):void 0,defaultFont:Object.freeze({family:i.family,sizeHalfPoints:i.sizeHalfPoints}),language:c};return Object.freeze(p)}function Dn(e,t){let n=e.map((o,a)=>({value:o,index:a,key: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 ko(e,t){let n={family:e.family},r={sizeHalfPoints:e.sizeHalfPoints};return {...n,...t?r:{}}}function Hn(e,t){let n=s=>({family:s.family,weight:s.weight,style:s.style}),r=t?e.sources:Dn(e.sources,s=>s.request),o=e.substitutions??[],a=t?o:Dn(o,s=>s.from),i={sources:r.map(s=>{let l=s.availability??"available",u={request:n(s.request),availability:l};if(l==="forbidden")return {...u,...t?{id:s.id,faceIndex:s.faceIndex,declaredHash:s.hash}:{}};let y=g(s);if(y==null)throw new TypeError("Font configuration identity requires prepared source bytes");return {...u,...t?{id:s.id}:{},faceIndex:s.faceIndex,declaredHash:s.hash,actualHash:y,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:ko(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"),He=new WeakMap;function zo(e){return He.has(e)}function Do(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.configuration}function Ki(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.sharedShapingFingerprint}function Ft(e,t){return Un(e,t,false)}function Wi(e,t){return Un(e,t,true)}function Un(e,t,n){let r=_o(e,n),o=Object.freeze({epoch:r.epoch,maxFontBytes:r.maxFontBytes,sources:Object.freeze(r.sources.map(y=>n&&g(y)!==void 0?y:f$2(y,{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash}))),substitutions:r.substitutions,defaultFont:r.defaultFont,language:r.language}),a=new TextEncoder,i=Hn(o,true),c=a.encode(JSON.stringify(i)),s=Hn(o,false),l=a.encode(JSON.stringify(s)),u=Object.freeze({[No]:true,fingerprint:`font-config:${f$1(c)}`});return He.set(u,{configuration:o,sharedShapingFingerprint:`shared-font-config:${f$1(l)}`}),u}function Ho(e){return Ft(e).fingerprint}function Go(e,t){let n=new TextEncoder().encode(JSON.stringify({version:1,environment:e,executionPolicy:_n(t),ligatureCaretPolicy:Gn,fallback:sa}));return `shaping:${f$1(n)}`}async function Kn(e,t,n,r,o=false){let i=zo(e)?e:Ft(e,t),c=Do(i),{epoch:s,maxFontBytes:l,sources:u,substitutions:y,defaultFont:m$1}=c,p=c.language||"en",g=i.fingerprint,h=m({epoch:s,maxFontBytes:l,resources:u,substitutions:y,validateFont:gt,instrumentation:{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash,onAdmission:t?.onFontAdmission}});await ht();let d=Object.freeze({script:Mo,variationAxes:Object.freeze({}),shapingLibrary:ie,unicodeDataVersion:Oo,normalization:wo,language:p,features:To,...o?{documentLigatures:true}:{},fixedPointScale:Ao,roundingMode:Io});return Object.freeze({fonts:h,shaper:Nn(n??bt(r),r,n===void 0),defaultFont:m$1,environment:d,ligatureCaretPolicy:Gn,operation:Object.freeze({resourceEpoch:h.epoch,configEpoch:s,extensionFingerprint:g,shapingHash:Go(d,r),producerVersion:1})})}async function Uo(e,t,n){return Kn(e,t,void 0,kn(n))}async function Vi(e,t,n,r,o=false){return Kn(e,r,t,n,o)}function Ko(e){e.shaper.dispose?.();}function Ct(e){let t=new Set([0,e.text.length]);for(let r of ya$1(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 Ge(e,t){return Ct(e).includes(t)}function Wo(e,t){return Ge(e,t)}function Vo(e,t,n){return n>=t&&Ge(e,t)&&Ge(e,n)}function jo(e){let t=ya$1(e.text);return Ct(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var vt="und";function Xn(){return typeof Intl.Segmenter=="function"}function Xo(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${vt})`);return e}function Yn(){let e=new(Xo())(vt,{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,$o=/^\s$/u;function Wn(e){return Yo.test(e)}function Vn(e){return $o.test(e)}function Et(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function $n(e){let t=ya$1(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(Vn(o.text)){let a=r+1;for(;a<t.length&&Vn(t[a].text);)a+=1;n.push(Et(t,r,a,false)),r=a;continue}if(Wn(o.text)){let a=r+1;for(;a<t.length&&Wn(t[a].text);)a+=1;n.push(Et(t,r,a,true)),r=a;continue}n.push(Et(t,r,r+1,false)),r+=1;}return n}function qn(){return {segment:$n}}function Zn(e={}){let t=e.isIntlAvailable??Xn,n=e.createIntlBoundary??Yn,r=e.createFallbackBoundary??qn;if(!t())return r();try{return n()}catch{return r()}}var jn;function Jn(){return jn??=Zn(),jn}function qo(e,t=Jn()){return t.segment(e)}function Zo(e,t){return t.map(n=>({graphemeFrom:Ca$1(e,n.utf16From),graphemeTo:Ca$1(e,n.utf16To),wordLike:n.wordLike}))}var Qn={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},Tt=Object.keys(Qn),er=Tt.filter(e=>Qn[e]==="coarse-gate"),Ue=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},de=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},Jo={resourceEpoch:Ue,configEpoch:Ue,extensionFingerprint:de,shapingHash:de,producerVersion:Ue},Qo=(e,t)=>{Jo[t](e[t],t);},pe=e=>{for(let t of Tt)Qo(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},ea=(e,t)=>{let n=pe(e),r=pe(t),o=Tt.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},Lt=e=>{let t=e.map(({key:n,fingerprint:r})=>(de(n,"resource dependency key"),de(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)},ta=e=>(Ue(e.revision,"revision"),de(e.dependencyFingerprint,"dependencyFingerprint"),de(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Lt(e.resourceDependencies),...pe(e)})),na=(e,t)=>{let n=Lt(e),r=Lt(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 ra(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=na(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of er)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var Bt=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=ra(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:ta(r)});}evictEpoch(t){let n=pe(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;er.some(c=>i[c]!==n[c])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=pe(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 tr(e){return e.projected===true?null:e.range}function aa(e,t,n,r=false){let{page:o,story:a,host:i,noteScopeId:c,noteAreaKind:s}=e,l=a==="header"||a==="footer"?u=>Ia$1(u,e.origin,{x:o.box.x,y:o.box.y}):void 0;Ra$1(i,(u,y)=>{let{textboxDepth:m,textboxOwner:p,textboxPath:g,storyOrigin:h}=y,d=m===0?a:"textbox";if(r&&u.marker&&!u.lines.some(S=>S.spans.length>0)){let S=u.lines[0];if(!S||!u.marker)return;let x={range:{paragraphId:u.paragraphId,start:S.range.start,end:S.range.start},text:"",props:[],style:u.marker.style,box:{...S.box,width:0}};n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+x.box.x,y:h.y+x.box.y,width:0,height:x.box.height}),noteScopeId:c,noteAreaKind:s,textboxDepth:m,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:u.paragraphId,line:S,span:x,sourceRange:null});return}for(let S of u.lines){let x=[...Ya(S)].sort((R,L)=>(t.get(R.paragraphId)??Number.MAX_SAFE_INTEGER)-(t.get(L.paragraphId)??Number.MAX_SAFE_INTEGER));for(let R of x)for(let L of R.spans)n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+L.box.x,y:h.y+L.box.y,width:L.box.width,height:L.box.height}),noteScopeId:c,noteAreaKind:s,textboxDepth:m,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:R.paragraphId,line:S,span:L,sourceRange:tr(L)});}},e.origin,l);}function ia(e,t,n={}){let r=new Map(fb(e).map((o,a)=>[o,a]));Oa$1(e,o=>aa(o,r,t,n.spanlessMarkers===true));}var ca=1,nr=4,te=Object.freeze({top:0,right:0,bottom:0,left:0}),rr=new WeakMap;function la(e,t){let n=ua(e);return n===te?t:Mf(t,n)}function ua(e){let t=e.vectorShape;if(!t)return te;let{cx:n,cy:r}=t.extentEmu;if(!(n>=0)||!(r>=0)||n===0&&r===0)return te;let o=rr.get(t);if(o||(o=da(t),rr.set(t,o)),o===te)return te;let a=e.paintBounds,i=e.geometry.contentBounds;if(!(a.width>0||i.width<=0)||!(a.height>0||i.height<=0))return te;let c=n>0?i.width/n:i.height/r,s=r>0?i.height/r:i.width/n,l=(m,p,g)=>{if(g<-1e-3)return 0;let h=m*p-Math.max(0,g);return Number.isFinite(h)&&h>0?h:0},u=e.kind==="inlineDrawing"&&e.placeholderGraphicKind===null,y={left:l(o.left,c,i.x-a.x),top:u?0:l(o.top,s,i.y-a.y),right:l(o.right,c,a.x+a.width-(i.x+i.width)),bottom:l(o.bottom,s,a.y+a.height-(i.y+i.height))};return y.left||y.top||y.right||y.bottom?Object.freeze(y):te}function da(e){let{cx:t,cy:n}=e.extentEmu,r=0,o=0,a=t,i=n,c=(y,m)=>{r=Math.min(r,y),a=Math.max(a,y),o=Math.min(o,m),i=Math.max(i,m);},s=e.overflowVisible===true,l=s?1/0:ca,u=y=>y.x>=-l&&y.x<=t+l&&y.y>=-l&&y.y<=n+l;for(let y of e.components){if(s)for(let d of y.subpathsEmu)for(let S of d)c(S.x,S.y);let m=y.clipEmu?void 0:y.shadow;if(m){let d=1/0,S=1/0,x=-1/0,R=-1/0;for(let B of y.subpathsEmu)for(let v of B){let T=s?v.x:Math.max(0,Math.min(t,v.x)),P=s?v.y:Math.max(0,Math.min(n,v.y));d=Math.min(d,T),S=Math.min(S,P),x=Math.max(x,T),R=Math.max(R,P);}let L=Lf(m.blurEmu)*.75+(y.strokeHex!==null?Math.max(1,Lf(y.strokeWidthEmu))/2:0),E=Lf(m.dxEmu),M=Lf(m.dyEmu);d<=x&&(c(d+E-L,S+M-L),c(x+E+L,R+M+L));}if(y.strokeHex===null||y.strokeInset===true)continue;let p=Math.max(1,Lf(y.strokeWidthEmu))/2,g=l+Math.max(0,Lf(y.strokeOutsetEmu??0)),h=d=>d.x>=-g&&d.x<=t+g&&d.y>=-g&&d.y<=n+g;y.subpathsEmu.forEach((d,S)=>{let x=y.subpathsClosed?.[S]!==false,R=pa(d,x),L=x&&R.length>2?R.length:R.length-1,E=[];for(let B=0;B<L;B+=1){let v=R[B],T=R[(B+1)%R.length],P=Math.hypot(T.x-v.x,T.y-v.y),_={x:-(T.y-v.y)/P,y:(T.x-v.x)/P};if(E.push(_),!!fa(v,T,-g,t+g,-g,n+g))for(let z=0;z<2;z+=1){let W=J[z],b=v.x+(T.x-v.x)*W,f=v.y+(T.y-v.y)*W;c(b+_.x*p,f+_.y*p),c(b-_.x*p,f-_.y*p);}}if(!x&&E.length&&(y.strokeCap==="round"||y.strokeCap==="square")){for(let[B,v,T]of [[R[0],E[0],-1],[R[R.length-1],E[E.length-1],1]])if(h(B))if(y.strokeCap==="round")c(B.x-p,B.y-p),c(B.x+p,B.y+p);else {let P=B.x+T*v.y*p,_=B.y-T*v.x*p;c(P+v.x*p,_+v.y*p),c(P-v.x*p,_-v.y*p);}}let M=x&&R.length>2?E.length:E.length-1;for(let B=0;B<M;B+=1){let v=R[(B+1)%R.length];if(!h(v))continue;if(y.strokeJoin==="round"){c(v.x-p,v.y-p),c(v.x+p,v.y+p);continue}if(y.strokeJoin==="bevel")continue;let T=E[B],P=E[(B+1)%E.length],_=1+T.x*P.x+T.y*P.y;if(_<2/(nr*nr))continue;let z=T.y*-P.x- -T.x*P.y;if(z===0)continue;let W=z>0?-1:1;c(v.x+W*(T.x+P.x)*p/_,v.y+W*(T.y+P.y)*p/_);}});for(let d of y.arrowheadsEmu??[])if(!(!d[0]||!u(d[0])))for(let S of d)c(S.x,S.y);}return r>=0&&o>=0&&a<=t&&i<=n?te:Object.freeze({left:-r,top:-o,right:a-t,bottom:i-n})}function pa(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 J=new Float64Array(2);function fa(e,t,n,r,o,a){let i=t.x-e.x,c=t.y-e.y;return J[0]=0,J[1]=1,Ke(-i,e.x-n)&&Ke(i,r-e.x)&&Ke(-c,e.y-o)&&Ke(c,a-e.y)}function Ke(e,t){if(e===0)return t>=0;let n=t/e;return e<0?J[0]=Math.max(J[0],n):J[1]=Math.min(J[1],n),J[0]<=J[1]}var ma=new Map([["garamond",{family:"Garamond",em:or(1765,539,0)}],["segoe ui",{family:"Segoe UI",em:or(2210,514,0)}]]);function or(e,t,n){return {heightEm:(e+t+n)/2048,baselineEm:(e+n)/2048}}function Ot(e){return e?ma.get(e.trim().toLowerCase()):void 0}function We(e){let t=Ot(e.fontFamily);if(!t)return;let n=gc(e)/2*ra$1(e);return {height:t.em.heightEm*n,baseline:t.em.baselineEm*n}}var ya=new Map([["roman","serif"],["swiss","sans"],["modern","mono"]]);function ls(e,t){return t==="fixed"?"mono":e?ya.get(e):void 0}var ha=new Map([["calibri","sans"],["arial","sans"],["helvetica","sans"],["verdana","sans"],["tahoma","sans"],["segoe ui","sans"],["aptos","sans"],["century gothic","sans"],["carlito","sans"],["cambria","serif"],["times new roman","serif"],["georgia","serif"],["garamond","serif"],["book antiqua","serif"],["palatino linotype","serif"],["caladea","serif"],["courier new","mono"],["consolas","mono"]]);function ar(e){let t=e.trim().toLowerCase(),n=ha.get(t);if(n)return n;let r=t.split(/[\s_-]+/);if(r.includes("mono")||r.includes("monospace")||r.includes("courier"))return "mono";if(r.includes("sans"))return "sans";if(r.includes("serif")||r.includes("roman"))return "serif"}var us={serif:"Times New Roman",sans:"Arial",mono:"Courier New"};var wt="Calibri, Carlito, Helvetica, Arial, sans-serif",ga='"Times New Roman", "Liberation Serif", Tinos, serif',Sa='"Courier New", "Liberation Mono", Cousine, monospace',xa='Batang, AppleMyungjo, "Noto Serif CJK KR", serif';function ba(e,t=wt,n){if(!e)return t;if(n?.(e))return xa;let r=ar(e);return r==="serif"?ga:r==="mono"?Sa:t}var Ss=new Map([["calibri","Carlito"]]),Ra=65536,Fa=256;function ir(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 sr(e){let t=new Map,n=null,r=null,o=0,a=c=>{c.older?c.older.newer=c.newer:n=c.newer,c.newer?c.newer.older=c.older:r=c.older,c.older=null,c.newer=null;},i=c=>{c.older=r,c.newer=null,r?r.newer=c:n=c,r=c;};return {get(c){let s=t.get(c);if(s!==void 0)return s!==r&&(a(s),i(s)),s.value},set(c,s){let l=t.get(c);if(l){l.value=s,l!==r&&(a(l),i(l));return}let u={key:c,value:s,older:null,newer:null};for(t.set(c,u),i(u);t.size>e&&n;){let y=n;a(y),t.delete(y.key),o+=1;}},get size(){return t.size},get evictions(){return o}}}var cr=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function lr(e=null){return e!=null&&typeof e.measureText=="function"}function ur(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??wt,r=e.context??null;if(!lr(r))return null;let o=r;"textRendering"in o&&(o.textRendering="geometricPrecision");let a=sr(ir(e.maxWidthEntries,Ra)),i=sr(ir(e.maxMetricsEntries,Fa)),c=e.fontAlias,s=new Map,l=m=>{let p=s.get(m);if(p!==void 0)return p;let g="The quick brown fox 0123",h=false;for(let d of ["monospace","serif"]){o.font=`32px ${d}`;let S=o.measureText(g).width;if(o.font=`32px "${m}", ${d}`,o.measureText(g).width!==S){h=true;break}}return s.set(m,h),h},u=m=>{let p=m.fontFamily&&cr.test(m.fontFamily)?m.fontFamily:null,g=p?c?.(p):void 0,h=g&&cr.test(g)?g:null,d=ba(p,n,e.serifHangulFace),S=p?h?`"${h}", "${p}", ${d}`:`"${p}", ${d}`:n,x=m.bold?"bold":"normal",R=m.italic?"italic":"normal",L=m.smallCaps?"small-caps":"normal",E=m.fontSizePt*ra$1(m)*t;return `${R} ${L} ${x} ${E}px ${S}`},y$1=(m,p,g)=>m/t*(g.horizontalScalePercent/100)+p.length*g.characterSpacingPt;return {measure(m,p){if(m.length===0)return 0;let g=u(p),h=y(p,m),d=`${g}\0${h}\0${m}`,S=a.get(d);if(S!==void 0)return y$1(S,m,p);o.font=g,"fontKerning"in o&&(o.fontKerning=h?"normal":"none");let x=o.measureText(m).width;return a.set(d,x),y$1(x,m,p)},inkBounds(m,p){if(!m||m.length>2||p.shaping?.direction==="rtl"||ya$1(m).length!==1)return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=w(p)?"normal":"none");let g=o.textAlign,h=o.direction,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.direction="ltr"),d=o.measureText(m);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.direction=h);}let S=d.actualBoundingBoxLeft,x=d.actualBoundingBoxRight;if(S===void 0||x===void 0||!Number.isFinite(S)||!Number.isFinite(x))return;let R=p.horizontalScalePercent/(100*t);return {left:-S*R,right:x*R}},textOutline(m,p){if(!m||p.shaping?.direction==="rtl")return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=w(p)?"normal":"none");let g=o.textAlign,h=o.textBaseline,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.textBaseline="alphabetic"),d=o.measureText(m);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.textBaseline=h);}let S=[-(d.actualBoundingBoxLeft??NaN),-(d.actualBoundingBoxAscent??NaN),d.actualBoundingBoxRight??NaN,d.actualBoundingBoxDescent??NaN].map(M=>M/t);if(S.some(M=>!Number.isFinite(M)))return;let[x,R,L,E]=S;if(!(!(L>x)||!(E>R)))return {path:null,ink:{left:x,top:R,right:L,bottom:E}}},lineMetrics(m){let p=m.fontSizePt*ra$1(m),g=u(m),h=i.get(g);if(h)return h;let d=Ot(m.fontFamily),S=d&&!l(d.family)&&We(m);if(S)return i.set(g,S),S;let x=p*1.15,R=p*.8;o.font=g,"fontKerning"in o&&(o.fontKerning=w(m)?"normal":"none");let L=o.measureText("Hxg"),E=L.fontBoundingBoxAscent,M=L.fontBoundingBoxDescent;if(typeof E=="number"&&Number.isFinite(E)&&E>0&&(R=E/t,typeof M=="number"&&Number.isFinite(M)&&M>=0)){let v=(E+M)/t;v>0&&(x=Math.max(v,x));}x>0||(x=p*1.15);let B={height:x,baseline:R};return i.set(g,B),B}}}function Ca(e=1,t={}){let n=ur({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:ta$1(),producer:"fixed-measurer"}}function Ea(e){let t;return n=>{t===void 0&&(t=xd(e.pages)?.hosts??null);let r=t?.get(n);return r?vd(r.pageNumber,r.format):null}}function dr(e,t){let n=If(e,t.displayMode??mb),r=ae({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:tj(t.package,"footnote"),endnotesPart:tj(t.package,"endnote")}:void 0,a=we(n,r,o,t.package?te$1(t.package,e,n):void 0,t.displayMode??mb);return {blocks:n,notes:o,context:a}}function pr(e,t,n,r,o){for(let a of t){if(r.length>=Fn)return;if(n.tokenForParagraph(a.id)!==""&&In$1(e,a.id)===null)for(let i of Hn$1(a)){if(r.length>=Fn)return;if(!i.rewritable)continue;let c=id(i.instruction);if(c===null)continue;let s=n.liveValueOf(i.fieldNodeId,c);if(s===null&&o&&n.pageRefProjectionOf){let l=n.pageRefProjectionOf(i.fieldNodeId,c);if(l){let u=o(l.targetParagraphId);u!==null&&u.length>0&&wd(l.calibration,l.cached,u,Number.NaN)&&(s=u);}}s===null||s===i.cachedText||s.length>Gn$1||s.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:s});}}}function va(e,t){let{blocks:n,context:r}=dr(e,t);if(r===null)return null;let o=[];return pr(e,ld(Kc(n)),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Os(e,t){let{notes:n,context:r}=dr(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 l of ue(c,t.displayMode??mb)){if(s.length>=Fn)break;pr(c,ld(Kc(l)),r,s);}s.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:s}});}return o}function La(e){return e.box}function fr(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)fr(o,t);}function Ba(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>ec$1*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=oc$1(c);s&&n(s,a,i+1),r.pop();let l=t.get(c.id);l&&l.length===0&&a!==null&&l.push(a);continue}n(c,a,i+1);}}},r=[];return n(e,null,0),t}function Ta(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 Oa(e,t){let n=sc(e.root);if(n.length===0)return wa;let r=new Map;t.pages.forEach((i,c)=>{(l=>{for(let u of l){let y=new Set;fr(u,y);for(let m of y){let p=r.get(m)??[];p.push({pageIndex:c,box:La(u)}),r.set(m,p);}}})(i.fragments);});let o=Ba(e.root),a=[];for(let i of n){let c=qc(i.node),s=[...i.ancestors.map(m=>qc(m).lock),c.lock],l=o.get(i.node.id)??[],u=new Map;for(let m of l)for(let p of r.get(m)??[]){let g=u.get(p.pageIndex);u.set(p.pageIndex,g?Ta(g,p.box):p.box);}let y=[...u.entries()].sort((m,p)=>m[0]-p[0]).map(([m,p])=>({pageIndex:m,...p}));a.push({controlId:i.node.id,type:c.type,level:rc(i.node),depth:i.depth,lock:c.lock,effectiveLock:vc$1(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:l,fragments:y});}return a}var wa=Object.freeze([]);var Aa=4096;function Ia(e,t=0){if(!(e instanceof Uint8Array)||!Number.isSafeInteger(t)||t<0||e.byteLength<12)return;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=(h,d)=>Number.isSafeInteger(h)&&Number.isSafeInteger(d)&&h>=0&&d>=0&&h<=e.length-d,o=h=>n.getUint16(h,false),a=h=>n.getUint32(h,false),i=0,c=false;if(a(0)===1953784678){c=true;let h=a(4),d=a(8);if(![65536,131072].includes(h)||!d||t>=d||!r(12,d*4))return;i=a(12+t*4);}else if(t!==0)return;if(!r(i,12)||![65536,1330926671,1953658213].includes(a(i)))return;let s=o(i+4);if(!s||s>Aa||!r(i+12,s*16))return;let l=new Map;for(let h=0;h<s;h++){let d=i+12+h*16,S=a(d),x=a(d+8),R=a(d+12);if(l.has(S)||!r(x,R))return;l.set(S,{offset:x,length:R});}let u=l.get(1751474532),y=l.get(1330851634);if(!u||u.length<20||!y||y.length<4)return;let m=o(u.offset+18),p=o(y.offset),g=n.getInt16(y.offset+2,false);if(!(m<16||m>16384||p>5||g<=0))return Object.freeze({faceIndex:t,collection:c,unitsPerEm:m,os2Version:p,xAvgCharWidth:g,averageAdvanceEm:g/m})}function mr(e,t=Ia){if(typeof e!="function"||typeof t!="function")return;let n=new WeakMap;return r=>{if(!fc(r))return;let o;try{o=e(r);}catch{return}if(!o||typeof o!="object"||o.substitution!==null||o.family.trim().toLowerCase()!==r.fontFamily?.trim().toLowerCase()||typeof o.hash!="string"||!/^sha256:[0-9a-f]{64}$/u.test(o.hash)||!Number.isSafeInteger(o.faceIndex)||o.faceIndex<0)return;let a=n.get(o);if(a===void 0&&(a=t(o.bytes,o.faceIndex)??null,n.set(o,a)),!a)return;let i=r.fontSizePt*a.averageAdvanceEm/2;return Number.isFinite(i)&&i>=0&&i<=r.fontSizePt?i:void 0}}var K=(e,t)=>e[t]<<8|e[t+1],Q=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Ma(e,t){let n=(i,c)=>i>=0&&i+c<=e.length;if(!n(0,12))return null;let r=Q(e,0)===1953784678;if(r&&!n(12+t*4,4))return null;let o=r?Q(e,12+t*4):0;if(!n(o,12))return null;let a=K(e,o+4);for(let i=0;i<a;i+=1){let c=o+12+i*16;if(!n(c,16))return null;if(Q(e,c)!==1668112752)continue;let s=Q(e,c+8);if(!n(s,4))return null;let l=null,u=null,y=K(e,s+2);for(let m=0;m<y;m+=1){let p=s+4+m*8;if(!n(p,8))return null;let g=K(e,p),h=K(e,p+2),d=s+Q(e,p+4);if(!n(d,2)||!(g===0||g===3&&(h===1||h===10)))continue;let x=K(e,d);x===12&&u===null&&(u=d),x===4&&l===null&&(l=d);}return u!==null?{format:12,offset:u}:l!==null?{format:4,offset:l}:null}return null}function Pa(e,t,n){let r=(u,y)=>u>=0&&u+y<=e.length,o=t.offset;if(t.format===12){if(!r(o,16))return false;let u=Q(e,o+12),y=0,m=Math.min(u,Math.floor((e.length-o-16)/12))-1;for(;y<=m;){let p=y+m>>>1,g=o+16+p*12,h=Q(e,g),d=Q(e,g+4);if(n<h)m=p-1;else if(n>d)y=p+1;else return Q(e,g+8)+(n-h)!==0}return false}if(n>65535||!r(o,14))return false;let a=K(e,o+6)>>>1,i=o+14,c=i+a*2+2,s=c+a*2,l=s+a*2;if(!r(l,a*2))return false;for(let u=0;u<a;u+=1){if(n>K(e,i+u*2))continue;let y=K(e,c+u*2);if(n<y)return false;let m=K(e,s+u*2),p=l+u*2,g=K(e,p);if(g===0)return (n+m&65535)!==0;let h=p+g+(n-y)*2;if(!r(h,2))return false;let d=K(e,h);return d!==0&&(d+m&65535)!==0}return false}var yr=new WeakMap;function hr(e,t){let n=i(e),r=yr.get(e);return r===void 0&&(r=Ma(n,e.faceIndex),yr.set(e,r)),r?Pa(n,r,t):void 0}var gr=new WeakMap;function _a(e){let t=gr.get(e);if(t!==void 0)return t;let n=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$1=r.getUint16(a+4);for(let c=0;c<i$1;c++){let s=a+12+c*16;if(r.getUint32(s)!==1330851634)continue;let l=r.getUint32(s+8),u=r.getUint32(s+12);u>=86&&l<=n.byteLength-u&&r.getUint16(l)>=1&&(o=(r.getUint32(l+78)&1966080)!==0);break}return gr.set(e,o),o}var Sr=1.3;function xr(e,t,n,r,o,a=false){let i=n.height-r;if(!(Math.abs(i-t)<=o)&&!a||!_a(e))return n;let s=a?i*Sr:Math.max(n.height,t*Sr),l=n.baseline-r;return {height:s,baseline:l+(s-i)/2}}var ka=.89111328125,Na=443/2048,za=87/2048,Da=1/2048,Ha=new Set(["Arab","Hebr","Syrc","Thaa","Nkoo"]);function br(e){return e.latinLane===void 0&&!Ha.has(e.shaping?.script??"")}function Rr(e,t,n,r,o,a=true){if(!a||r!==0||!(o>0)||e.trim().toLowerCase()!=="times new roman")return r;let i=(c,s)=>Math.abs(c/o-s)<=Da;return i(t,ka)&&i(n,Na)?za*o:r}var Ga=.5;function Ua(e,t){if(t.fontFamily===null)return false;let n=e.substitution;return n!==null&&(n.lineMetrics!==void 0||!pe$1(n.requested.family,n.resolved.family))?false:e.family===t.fontFamily||pe$1(e.family,t.fontFamily)}function Fr(e,t,n,r,o){let a=new WeakMap;return (i,c)=>{let s=ra$1(c),l=a.get(i);l||(l=new Map,a.set(i,l));let u=gc(c),y=br(c),m=Ua(i,c),p=(y?u:-u)+(m?Ga:0),g=l.get(p);if(g)return s===1?g:{height:g.height*s,baseline:g.baseline*s};let h,d=true,S=i.substitution?.lineMetrics;if(S){let x=u/2;h={height:S.heightEm*x,baseline:S.baselineEm*x};}else try{let x=hc(e,t,i,c,""),R=x.metrics.ascent/t.fixedPointScale,L=x.metrics.descent/t.fixedPointScale,E=u/2,M=R+L,B=E*r,v=M>B?B/M:1,T=M*v,P=x.metrics.lineGap/t.fixedPointScale,_=Math.min(Math.max(0,Rr(i.family,R,L,P,E,y)),T*o),z=T+_;z>0?h=xr(i,E,{height:z,baseline:R*v+_},_,2/t.fixedPointScale,m):(h=n.lineMetrics(c),d=!1);}catch{h=n.lineMetrics(c),d=false;}return d?(l.set(p,h),s===1?h:{height:h.height*s,baseline:h.baseline*s}):h}}var At=2048,Ka=32,Wa=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 Va(e){if(b$1(e))return Wa.get(e.toLowerCase())}function Cr(e,t,n,r){let o=gc(r)/2*ra$1(r)*(r.horizontalScalePercent/100)/At,a=[];for(let i=0;i<n.length;i++){let c=c$2(n.charCodeAt(i),t),s=c===null?0:e.advances[c-Ka]??0;if(s===0)return;a.push(s*o+r.characterSpacingPt);}return a}function Er(e){let t=new WeakMap,n=r=>{let o=t.get(r);return o===void 0&&(o=Va(r.fontFamily)??null,t.set(r,o)),o};return {...e,measure(r,o){let a=n(o),i=a&&Cr(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&&Cr(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=gc(r)/2*ra$1(r);return {height:(a.ascent+a.descent)*i/At,baseline:a.ascent*i/At}}}}var ja={M:2,L:2,Q:4,C:6,Z:0},vr=e=>{let t=Math.round(e*1e3)/1e3;return String(Object.is(t,-0)?0:t)};function It(e,t,n){if(!(t>0)||!(n>0))return;let r=[],o=0,a=1/0,i=-1/0,c=1/0,s=-1/0;for(let l of e.glyphs){if(l.id===0)return;let u=l.outline.path,y=l.outline.unitsPerEm;if(!u)continue;if(!(y>0)||!u.startsWith("M")||/[^MLQCZ0-9eE+.,\s-]/u.test(u))return;let m=t*(l.drawScale??1)/y,p=(l.originX+l.offsetX)/n,g=(l.originY+l.offsetY)/n;for(let h of u.matchAll(/([MLQCZ])([^MLQCZ]*)/gu)){let d=h[1],S=h[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(S.length!==ja[d]||S.some(R=>!Number.isFinite(R)))return;let x=d;for(let R=0;R<S.length;R+=2){let L=p+S[R]*m,E=-(g+S[R+1]*m);a=Math.min(a,L),i=Math.max(i,L),c=Math.min(c,E),s=Math.max(s,E),x+=`${R?" ":""}${vr(L)} ${vr(E)}`;}if(o+=x.length,o>2e6)return;r.push(x);}}if(!(!r.length||!(i>a)||!(s>c)))return Object.freeze({path:r.join(""),ink:Object.freeze({left:a,top:c,right:i,bottom:s})})}var Mt=new WeakMap;function Xa(e){let t=Mt.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,l=c[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(l.length!==s||l.some(u=>!Number.isFinite(u))){Mt.set(e,null);return}for(let u=0;u<l.length;u+=2)r=Math.min(r,l[u]),o=Math.max(o,l[u]);}let i=Number.isFinite(r)&&Number.isFinite(o)?{left:r,right:o}:void 0;return Mt.set(e,i??null),i}function Lr(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=Xa(c.outline),l=c.outline.unitsPerEm;if(!s||!(l>0))return;let u=(c.originX+c.offsetX)/n;o=Math.min(o,u+s.left*t*(c.drawScale??1)/l),a=Math.max(a,u+s.right*t*(c.drawScale??1)/l);}let i={left:o*r,right:a*r};return Number.isFinite(i.left)&&Number.isFinite(i.right)?i:void 0}var qa=1,Za=1;function Br(e,t){let n=e.byteLength,r=new DataView(e.buffer,e.byteOffset,n),o=jc(r,n,t);if(o===null)return null;let a=kc(r,n,o,1751474532,54);if(a===null)return null;let i=r.getUint16(a+18);if(i<=0)return null;let c=kc(r,n,o,1330851634,30);if(c===null)return null;let s=r.getInt16(c+26)/i,l=r.getInt16(c+28)/i;return !(s>0)||s>qa||!(Math.abs(l)<=Za)?null:{offsetEm:l,thicknessEm:s}}var Ja=.5,Qa=4096,ei=4,Tr=4096;function Or(e){let t="environment"in e?e.environment:void 0,n="environment"in e?void 0:e,{shaper:r,resolveFont:o}=e,a=Er(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,l=q$1(r),u=Fr(r,i,a,ei,Ja),y=new WeakMap,m=new WeakMap,p=new Array(Tr),g=0,h=(b,f,F)=>{let C=p[g];C&&C.cache.delete(C.text),b.set(f,F),p[g]={cache:b,text:f},g=(g+1)%Tr;},d=b=>{let f=y.get(b);if(f!==void 0)return f;let F=o(b);return y.set(b,F),F},S=mr(d),x=(b,f,F)=>{let C=F?s:c,O=C.get(b);O||(O=new Map,C.set(b,O));let w=O.get(f);return w||(w=new Map,O.set(f,w)),w},R=new WeakMap,L=b=>{if(!b.shaping?.wordSpacingPt)return b;let f=R.get(b);return f||(f={...b,shaping:{...b.shaping,wordSpacingPt:void 0}},R.set(b,f)),f},E=(b,f)=>f.shaping?.wordSpacingPt?cc(b)*f.shaping.wordSpacingPt:0,M=(b,f)=>a.measure(b,L(f))+E(b,f),B=(b,f)=>{let F=Math.max(0,a.measure(b,L(f))),C=a.caretAdvances?.(b,L(f))??ac(b,F);if(!C||C.length!==b.length+1)return ac(b,M(b,f));let O=Math.max(0,M(b,f)),w=0,A=0;return C.map((k,D)=>{if(D===0)return 0;b[D-1]===" "&&A++;let Y=k+A*(f.shaping?.wordSpacingPt??0);return w=Math.max(w,Math.min(O,Number.isFinite(Y)?Y:w)),D===b.length?O:w})},v=b=>oc(b)*(b.horizontalScalePercent/100),T=(b,f,F)=>M(b,f)+(F?rc$1(b).length*v(f):0),P=(b,f,F)=>{let C=B(b,f);return C&&F?tc(C,rc$1(b),v(f)):C},_=new WeakMap,z=new WeakMap;return ec({hasResolvedFont(b){return d(b)!==null},syntheticBold(b){let f=d(b);return f!==null&&nc(b,f)},faceCovers(b,f){let F=d(f);if(!F)return;let C=z.get(F);C||(C=new Map,z.set(F,C));let O=C.get(b);if(O!==void 0)return O;let w=true;for(let A of b){let k=hr(F,A.codePointAt(0));if(k===void 0)return;if(!k){w=false;break}}return C.size<Qa&&C.set(b,w),w},strikeoutMetrics(b){let f=d(b);if(!f)return;let F=_.get(f);if(F===void 0&&(F=Br(f.bytes,f.faceIndex),_.set(f,F)),!F)return;let C=gc(b)/2*ra$1(b);return {offsetPt:F.offsetEm*C,thicknessPt:F.thicknessEm*C}},measure(b,f){if(b.length===0)return 0;let F=d(f);if(!F)return M(b,f);let C=x(F,gc(f),f.smallCaps),O$1=f.shaping?.context,w$1=f.shaping?`1:${JSON.stringify(O$1?[f.shaping.script,f.shaping.direction,b,O$1.before,O$1.after]:[f.shaping.script,f.shaping.direction,b])}`:`0:${b}`,A=nc(f,F),k=`${w(f)?1:0}:${A?1:0}:${O(f)}:${w$1}`,D=C.get(k);if(D===void 0){let Y=0;try{if(f.smallCaps&&!ic(r,i,F,f,m))return T(b,f,A);let se=hc(r,i,F,f,b);if(se.glyphs.some(ce=>ce.id===0))return T(b,f,A);for(let ce of se.glyphs)Y+=ce.advanceX;A&&(Y+=pc(se)*(gc(f)/2)*lc*i.fixedPointScale);}catch{return T(b,f,A)}D=Y/i.fixedPointScale,h(C,k,D);}return D*ra$1(f)*(f.horizontalScalePercent/100)+b.length*f.characterSpacingPt+E(b,f)},inkBounds(b,f){if(!b||b.length>2||f.shaping?.direction==="rtl"||ya$1(b).length!==1)return;let F=d(f);if(!F)return a.inkBounds?.(b,f);try{if(f.smallCaps&&!ic(r,i,F,f,m))return a.inkBounds?.(b,f);let C=hc(r,i,F,f,b);return Lr(C,gc(f)/2,i.fixedPointScale,ra$1(f)*f.horizontalScalePercent/100)}catch{return}},textOutline(b,f){let F=d(f);if(!F)return a.textOutline?.(b,f);try{let C=hc(r,i,F,f,b);return It(C,gc(f)/2,i.fixedPointScale)??a.textOutline?.(b,f)}catch{return a.textOutline?.(b,f)}},caretAdvances(b,f){let F=d(f);if(!F)return B(b,f);let C=nc(f,F);try{if(f.smallCaps&&!ic(r,i,F,f,m))return P(b,f,C);let O=hc(r,i,F,f,b);if(O.glyphs.some(A=>A.id===0))return P(b,f,C);let w=bc(b,O,ra$1(f)*(f.horizontalScalePercent/100)/i.fixedPointScale,f.characterSpacingPt,f.shaping?.wordSpacingPt??0)??ac(b,O.glyphs.reduce((A,k)=>A+k.advanceX,0)*ra$1(f)*(f.horizontalScalePercent/100)/i.fixedPointScale+b.length*f.characterSpacingPt+E(b,f));return !w||!C?w:tc(w,qc$1(O),v(f))}catch{return P(b,f,C)}},lineMetrics(b,f){let F=d(b);if(!F)return We(b)??a.lineMetrics(b,f);if(!f||/^[\t\n\r\f ]*$/.test(f))return u(F,b);if(l){let C=u(F,b),O=Math.max(0,C.baseline),w=Math.max(0,C.height-C.baseline);return O+w>0?{height:O+w,baseline:O}:C}try{let C=hc(r,i,F,b,f),O=0,w=0;for(let A of C.fontSpans){let k=u(A.font,b);O=Math.max(O,k.baseline),w=Math.max(w,k.height-k.baseline);}if(O+w>0)return {height:O+w,baseline:O}}catch{}return u(F,b)}},S)}function ti(e,t){return Or({...t,shaper:e.shaper,environment:e.environment})}function ni(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 l=s.box.y;l+s.box.height>=n.top&&l<=a&&(i===-1&&(i=s.index),c=s.index);}if(i===-1){let s=ri(t,n.top);s!==null&&(i=s,c=s);}if(i!==-1){let s=Math.max(0,i-o),l=Math.min(t.pages.length-1,c+o);for(let u=s;u<=l;u+=1)r.add(u);}for(let s of e.pinnedPages??[])s>=0&&s<t.pages.length&&r.add(s);return r}function ri(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 wr=["text-local","paragraph-local","flow-structural","global"];function Ar(e,t){return wr.indexOf(t)>wr.indexOf(e)?t:e}function oi(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function ai(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,c=null,s=0,l=0;function u(d){let S=e.runCooperatively;if(!S)return t(d);let x=S(d);c=x;try{for(;;){let R=x.step();if(R)return R;if(n()!==d.revision)return x.cancel(),l+=1,null;if(c!==x)return null}}finally{c===x&&(c=null);}}function y(d){let S=p(n());S.impact=Ar(S.impact,d.impact),S.structural=S.structural||d.structural;for(let x of d.paragraphIds)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x);for(let x of d.deleted)S.deleted.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);}let m=d=>({impact:d.impact,paragraphIds:d.paragraphIds,created:d.created,deleted:d.deleted,dependencyKeys:d.dependencyKeys,structural:d.structural,revision:d.revision});function p(d){return a||(a=oi(d)),a.revision=Math.max(a.revision,d),a}function g(){!o||i||(i=o(()=>{i=null,h();}));}function h(){i&&(i(),i=null),c&&(c.cancel(),c=null,l+=1);let d=a;if(!d)return false;a=null;let S=m(d),x=u(S);return !x||x.revision!==n()?(s+=1,y(S),g(),false):(r(x,S),true)}return {notify(d){let S=p(n());S.impact=Ar(S.impact,d.impact);for(let x of d.dirty)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x),S.paragraphIds.add(x);for(let x of d.deleted)S.deleted.add(x),S.paragraphIds.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);for(let x of d.splitJoin)S.structural=true,"split"in x?(S.paragraphIds.add(x.split.from),S.paragraphIds.add(x.split.tail)):(S.paragraphIds.add(x.join.kept),S.paragraphIds.add(x.join.removed));(d.impact==="flow-structural"||d.impact==="global")&&(S.structural=true),g();},invalidateAll(d,S){let x=p(d);x.impact="flow-structural",x.structural=true,S&&x.dependencyKeys.add(S),g();},flush:h,pending:()=>a?m(a):null,cancel(){i?.(),i=null,c?.cancel(),c=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return l}}}var Ir=new WeakMap;function X(e){let t=Ir.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=new Map,i=(s,l,u,y)=>{for(let m of s){if(m.kind==="paragraph")continue;let p=m.tableId;a.set(p,Math.max(a.get(p)??0,(m.columnEdges?.length??1)-1));let g=o.get(p);g||(g=new Map,o.set(p,g),n.set(p,[]),r.set(p,new Map));for(let h of m.rows){let d=g.get(h.id);d===void 0&&(d=g.size,g.set(h.id,d),r.get(p).set(d,h.cells));for(let S of h.cells)n.get(p).push({pageIndex:l,tableId:p,row:h,cell:S,rowIndex:d,isHeaderRepeat:h.isHeaderRepeat,offsetX:u,offsetY:y}),i(S.blocks,l,u,y);}}};for(let s of e.pages){i(s.fragments,s.index,0,0);for(let l of [s.header,s.footer])l&&i(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);for(let l of [s.footnotes,s.endnotes])if(l)for(let u of l.notes)i(u.fragments,s.index,u.box.x-s.contentBox.x,u.box.y-s.contentBox.y);}let c=new Map;for(let[s,l]of n)c.set(s,{placed:l,rows:r.get(s)??new Map,columnCount:a.get(s)??0});return Ir.set(e,c),c}function Pr(e){let t=e.columnCount;for(let n of e.rows.values())for(let r of n)t=Math.max(t,ne(r).to+1);return t}var ne=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function ii(e,t,n){if(t.tableId!==n.tableId)return null;let r=X(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(ne(t).from,ne(n).from),c=Math.max(ne(t).to,ne(n).to),s=p=>{let{from:g,to:h}=ne(p);return h>=i&&g<=c},l=p=>(r.rows.get(p)??[]).some(g=>g.vMergeContinue&&s(g)),u=r.rows.size+Pr(r)+2;for(let p=0;!(p>u);p+=1){let g=false;for(let[h,d]of r.rows)if(!(h<o||h>a))for(let S of d){if(!s(S))continue;let{from:x,to:R}=ne(S);x<i&&(i=x,g=true),R>c&&(c=R,g=true);}for(;o>0&&l(o);)o-=1,g=true;for(;l(a+1);)a+=1,g=true;if(!g)break}let y=[],m=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:g,to:h}=ne(p.cell);h<i||g>c||m.has(p.cell.id)||(m.add(p.cell.id),y.push(p.cell.id));}return y.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:y,rows:{from:o,to:a},columns:{from:i,to:c},text:kr(e,t.tableId,y)}}function si(e,t){let n=X(e).get(t);if(!n)return null;let r=[],o=new Set,a=0;for(let i of n.placed)i.isHeaderRepeat||o.has(i.cell.id)||(o.add(i.cell.id),r.push(i.cell.id),a=Math.max(a,i.rowIndex));return r.length===0?null:{kind:"cells",tableId:t,cellIds:r,rows:{from:0,to:a},columns:{from:0,to:Pr(n)-1},text:kr(e,t,r)}}function Ec(e,t){let n=si(e,t.tableId);if(!n)return false;let r=new Set(t.cellIds);return n.cellIds.every(o=>r.has(o))}function vc(e,t){return _r(e,t,true)}function xe(e,t){return _r(e,t,false)}function _r(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of X(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"||be(s,o,a);return o}function be(e,t,n){if(e.kind==="paragraph"){for(let r of ab(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)be(a,t,n);}function kr(e,t,n){let r=xe(e,n),o=r[0],a=r[r.length-1];return !o||!a?ci(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:gf(e,a).length}}}function ci(e,t){let n=X(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let c of o.cell.blocks)be(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 Ja$1(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function li(e){let t=[...Ja$1(e)];for(let n of [e.header,e.footer])n&&t.push(...Ka$1(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...Ka$1(r.fragments));return t}function ui(e,t){let n=new Set(xe(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of li(a))if(n.has(i.paragraphId))for(let c of i.lines)for(let s of c.spans){let l=`${s.range.paragraphId}:${s.range.start}:${s.range.end}`;o.has(l)||(o.add(l),r.push(s));}return r}function di(e,t){let n=new Set(t),r=[];for(let o of X(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 pi(e,t,n=gf){let r=X(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 l=xe(e,[s.cell.id]).map(m=>n(e,m)).join(`
2
+ `),u=i.get(s.rowIndex),y=s.cell.gridColumn+(a?Math.max(1,s.cell.gridSpan)-1:0);u?u.set(y,l):i.set(s.rowIndex,new Map([[y,l]]));}return [...i.keys()].sort((s,l)=>s-l).map(s=>{let l=i.get(s),u=[];for(let y=0;y<=t.columns.to-t.columns.from;y+=1){let m=a?t.columns.to-y:t.columns.from+y;u.push(l.get(m)??"");}return u.join(" ")}).join(`
3
+ `)}function Pt(e,t){return rd(e,t)}function Lc(e,t,n){if(n){let a=Pt(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let c=X(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=Pt(e,t);if(!r)return null;let o=X(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)be(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 Mr=new WeakMap;function fi(e,t){let n=Mr.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of X(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let c=[];for(let l of i.cell.blocks)be(l,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 l of c){let u=r.get(l);u&&u.tableId.length>=o.length||r.set(l,s);}}return Mr.set(e,r),r.get(t)??null}function Bc(e,t,n){let r=fi(e,t);if(!r)return null;let o=X(e).get(r.tableId);if(!o)return null;let a=new Set;for(let l of o.placed)!l.isHeaderRepeat&&!l.cell.vMergeContinue&&l.cell.blocks.length>0&&a.add(l.cell.id);let i=[...a],c=i.indexOf(r.cellId);if(c<0)return null;let s=n==="next"?1:-1;for(let l=c+s;l>=0&&l<i.length;l+=s){let u=xe(e,[i[l]]);if(u.length>0)return {cellId:i[l],paragraphIds:u}}return "end"}function mi(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)))}}export{Oa as $,Xn as A,Yn as B,$n as C,qn as D,Zn as E,Jn as F,qo as G,Zo as H,pe as I,ea as J,Bt as K,tr as L,ia as M,la as N,Ot as O,ls as P,ar as Q,us as R,wt as S,ba as T,Ss as U,lr as V,ur as W,Ca as X,Ea as Y,va as Z,Os as _,mt as a,It as aa,ie as b,Or as ba,ht as c,ti as ca,Gr as d,ni as da,I as e,ai as ea,gt as f,ii as fa,bt as g,si as ga,Ai as h,Ec as ha,_n as i,vc as ia,kn as j,xe as ja,Z as k,ui as ka,zo as l,di as la,Do as m,pi as ma,Ki as n,Pt as na,Ft as o,Lc as oa,Wi as p,fi as pa,Ho as q,Bc as qa,Uo as r,mi as ra,Vi as s,Ko as t,Ct as u,Ge as v,Wo as w,Vo as x,jo as y,vt as z};
@@ -1 +1 @@
1
- 'use strict';var chunkTCWCSTAF_cjs=require('./chunk-TCWCSTAF.cjs');function I(o){let n=[],t=[],a=new Map;for(let r of o){if(r.kind!=="revision")continue;let s=chunkTCWCSTAF_cjs.ml(r);for(let e of s)n.push(e);let p=new Set(r.ranges.map(e=>e.start.paragraphId)),u=r.revisionKind==="format"&&r.formattingKind==="pPrChange";if(p.size>1&&!u)for(let e of p)t.push(e);for(let e of r.ranges){let g=a.get(e.start.paragraphId)??[];for(let l of s)g.push(l);a.set(e.start.paragraphId,g);}}let i=new Map;for(let[r,s]of a)i.set(r,[...new Set(s)].sort().join("\0"));return {sites:n,paragraphs:i,spanning:t}}function w(o){return o.flatMap(n=>n.kind==="revision"?n.ranges.map(t=>t.start.paragraphId):[])}var c=new WeakMap,h=1,m={};function f(o){let n=o??m,t=c.get(n);return t===void 0&&(t=h++,c.set(n,t)),t}function b(o,n){return `${f(o)}:${f(n)}`}exports.a=I;exports.b=w;exports.c=b;
1
+ 'use strict';var chunkXPBKJQTG_cjs=require('./chunk-XPBKJQTG.cjs');function I(o){let n=[],t=[],a=new Map;for(let r of o){if(r.kind!=="revision")continue;let s=chunkXPBKJQTG_cjs.pl(r);for(let e of s)n.push(e);let p=new Set(r.ranges.map(e=>e.start.paragraphId)),u=r.revisionKind==="format"&&r.formattingKind==="pPrChange";if(p.size>1&&!u)for(let e of p)t.push(e);for(let e of r.ranges){let g=a.get(e.start.paragraphId)??[];for(let l of s)g.push(l);a.set(e.start.paragraphId,g);}}let i=new Map;for(let[r,s]of a)i.set(r,[...new Set(s)].sort().join("\0"));return {sites:n,paragraphs:i,spanning:t}}function w(o){return o.flatMap(n=>n.kind==="revision"?n.ranges.map(t=>t.start.paragraphId):[])}var c=new WeakMap,h=1,m={};function f(o){let n=o??m,t=c.get(n);return t===void 0&&(t=h++,c.set(n,t)),t}function b(o,n){return `${f(o)}:${f(n)}`}exports.a=I;exports.b=w;exports.c=b;
@@ -1 +1 @@
1
- 'use strict';var chunkTCWCSTAF_cjs=require('./chunk-TCWCSTAF.cjs');var w=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,j="Cambria";function $(e){return e!==void 0&&e.trim().length>0&&w.test(e)?e:null}function Q(e){if(e===void 0||e.trim().length===0)return null;if(e.length>1024)return j;let n=v(e);return n.length===0?null:w.test(n)?n:n.startsWith("@")||n.startsWith("\uFF20")?n.length<=128?n:null:j}function Z(e){return e===void 0||e.length>1024?null:$(v(e))}function v(e){let n=e.indexOf(",");return (n<0?e:e.slice(0,n)).trim()}function W(e){return e.kind!=="textValue"}function S(e,n){for(let l of e.children)if(W(l)&&l.localName===n)return l}function V(e,n){return e.attributes.find(l=>l.localName===n)?.value}function ne(e){let n=S(e,"pPr"),l=n?S(n,"outlineLvl"):void 0;if(l){let o=V(l,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let t=S(e,"name"),i=t?/^heading\s+([1-9])$/i.exec(V(t,"val")?.trim()??""):null;return i?Number(i[1])-1:null}function R(e,n=0,l=e.length,t){let i=new Set,o=new Map,d=new Map,u=t?[t]:[];t&&i.add(t);for(let s=n;s<l;s+=1){let r=e[s].node;if(chunkTCWCSTAF_cjs.bh(r,"begin")){u.push(r.id);continue}if(chunkTCWCSTAF_cjs.bh(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(chunkTCWCSTAF_cjs.bh(r,"end")){let a=u.pop();a&&(i.add(a),d.set(r.id,a));}}return {activeBegins:i,separateBegin:o,endBegin:d}}function b(e,n,l){if(chunkTCWCSTAF_cjs.bh(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(chunkTCWCSTAF_cjs.bh(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(chunkTCWCSTAF_cjs.bh(l,"end")){let t=n.endBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&e.pop(),true}return false}function g(e){for(let n of e)if(!n.separated)return false;return true}function ie(e,n){let l=[];chunkTCWCSTAF_cjs.nh(e,l,n);let t=R(l),i=[];return {consume:o=>b(i,t,o),visible:()=>g(i)}}function C(e,n){return e==="original"?n.hiddenInOriginal:e==="current"&&n.hiddenInCurrent}var U=4096,H=chunkTCWCSTAF_cjs.oh*16;function k(){return {out:[],runs:[],symbols:[],symbolDisplays:[],length:0}}function X(e,n,l,t){if(n.length===0||l===t)return;let i=e.runs[e.runs.length-1];if(i?.runId===n&&i.end===l){e.runs[e.runs.length-1]={runId:n,start:i.start,end:t};return}e.runs.push({runId:n,start:l,end:t});}function O(e,n,l,t){let i=chunkTCWCSTAF_cjs.mh(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;chunkTCWCSTAF_cjs.Tb(n)&&(e.symbols.push(o),e.symbolDisplays.push(chunkTCWCSTAF_cjs.Zl(n))),e.out.push(i),e.length+=i.length,X(e,l,o,e.length);}return true}function z(e,n){let l=e.length;n.text.length>0&&e.out.push(n.text),e.length+=n.text.length;for(let t of n.runs)X(e,t.runId,l+t.start,l+t.end);for(let t of n.symbols??[])e.symbols.push(l+t);for(let t of n.symbolDisplays??[])e.symbolDisplays.push(t);}function T(e){let n=e.out.join("");return e.symbols.length>0?{text:n,runs:e.runs,symbols:e.symbols,symbolDisplays:e.symbolDisplays}:{text:n,runs:e.runs}}var G=Object.freeze({text:"",runs:[]});function M(){return {text:chunkTCWCSTAF_cjs.Yg,runs:[]}}function q(e,n,l,t){let i=[];if(!chunkTCWCSTAF_cjs.nh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(chunkTCWCSTAF_cjs.eh(u.node)){let s=[];if(!chunkTCWCSTAF_cjs.nh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!chunkTCWCSTAF_cjs.ch(u.node)&&!O(d,u.node,u.runId,t))return null}}return T(d)}function J(e,n,l,t,i){let o=k(),d=[],u=R(e);for(let s of e){let r=s.node;if(!b(d,u,r)&&!chunkTCWCSTAF_cjs.ch(r)&&g(d)&&!C(n,s)){if(chunkTCWCSTAF_cjs.eh(r)){let a=i>=chunkTCWCSTAF_cjs.ph?q(r,n,l,t):Y(r,n,l,t,i+1);if(a===null)return null;z(o,a);continue}if(!O(o,r,s.runId,t))return null}}return T(o)}function Y(e,n,l,t,i){let o=[];return chunkTCWCSTAF_cjs.nh(e,o,l)?J(o,n,l,t,i):null}function K(e,n,l){let t=n.node;return e.owned.has(t.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),t.id===e.endId?true:(t.id===e.span.node.id||b(e.states,e.markers,t)||e.overflow||chunkTCWCSTAF_cjs.ch(t)||chunkTCWCSTAF_cjs.eh(t)||!e.owned.has(t.id)||!g(e.states)||C(l,n)||O(e.result,t,n.runId,e.chars)||(e.overflow=true),false)}function ae(e,n,l="allMarkup"){let t=new Map,i=new Map,o=new Map;for(let r of n)r.kind==="complex"?i.set(r.node.id,r):o.set(r.node.id,r);let d=[];chunkTCWCSTAF_cjs.nh(e,d);let u=new Map;for(let r=0;r<d.length;r+=1)u.set(d[r].node.id,r);let s=null;for(let r=0;r<d.length;r+=1){let a=d[r],y=o.get(a.node.id);if(y)if(s!==null&&!g(s.states))t.set(y.node.id,G);else {let f={left:U},I={left:H},m=Y(y.node,l,f,I,0);t.set(y.node.id,m??M());}if(s===null){let f=i.get(a.node.id);if(!f)continue;let I=new Set(f.removeNodeIds),m=-1;for(let N=f.removeNodeIds.length-1;N>=0;N-=1){let F=u.get(f.removeNodeIds[N]);if(!(F===void 0||F<=r)&&chunkTCWCSTAF_cjs.bh(d[F].node,"end")){m=F;break}}let E=d[m];if(!E){t.set(f.node.id,M());continue}s={span:f,owned:I,states:[{beginId:f.node.id,separated:false}],markers:R(d,r+1,m,f.node.id),endId:E.node.id,result:k(),chars:{left:H},nodesLeft:U,overflow:false};}K(s,a,l)&&(t.set(s.span.node.id,s.overflow?M():T(s.result)),s=null);}return s!==null&&t.set(s.span.node.id,M()),t}exports.a=$;exports.b=Q;exports.c=Z;exports.d=ie;exports.e=U;exports.f=ae;exports.g=ne;
1
+ 'use strict';var chunkXPBKJQTG_cjs=require('./chunk-XPBKJQTG.cjs');var w=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,j="Cambria";function $(e){return e!==void 0&&e.trim().length>0&&w.test(e)?e:null}function Q(e){if(e===void 0||e.trim().length===0)return null;if(e.length>1024)return j;let n=v(e);return n.length===0?null:w.test(n)?n:n.startsWith("@")||n.startsWith("\uFF20")?n.length<=128?n:null:j}function Z(e){return e===void 0||e.length>1024?null:$(v(e))}function v(e){let n=e.indexOf(",");return (n<0?e:e.slice(0,n)).trim()}function W(e){return e.kind!=="textValue"}function S(e,n){for(let l of e.children)if(W(l)&&l.localName===n)return l}function V(e,n){return e.attributes.find(l=>l.localName===n)?.value}function ne(e){let n=S(e,"pPr"),l=n?S(n,"outlineLvl"):void 0;if(l){let o=V(l,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let t=S(e,"name"),i=t?/^heading\s+([1-9])$/i.exec(V(t,"val")?.trim()??""):null;return i?Number(i[1])-1:null}function R(e,n=0,l=e.length,t){let i=new Set,o=new Map,d=new Map,u=t?[t]:[];t&&i.add(t);for(let s=n;s<l;s+=1){let r=e[s].node;if(chunkXPBKJQTG_cjs.eh(r,"begin")){u.push(r.id);continue}if(chunkXPBKJQTG_cjs.eh(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(chunkXPBKJQTG_cjs.eh(r,"end")){let a=u.pop();a&&(i.add(a),d.set(r.id,a));}}return {activeBegins:i,separateBegin:o,endBegin:d}}function b(e,n,l){if(chunkXPBKJQTG_cjs.eh(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(chunkXPBKJQTG_cjs.eh(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(chunkXPBKJQTG_cjs.eh(l,"end")){let t=n.endBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&e.pop(),true}return false}function g(e){for(let n of e)if(!n.separated)return false;return true}function ie(e,n){let l=[];chunkXPBKJQTG_cjs.qh(e,l,n);let t=R(l),i=[];return {consume:o=>b(i,t,o),visible:()=>g(i)}}function C(e,n){return e==="original"?n.hiddenInOriginal:e==="current"&&n.hiddenInCurrent}var U=4096,H=chunkXPBKJQTG_cjs.rh*16;function k(){return {out:[],runs:[],symbols:[],symbolDisplays:[],length:0}}function X(e,n,l,t){if(n.length===0||l===t)return;let i=e.runs[e.runs.length-1];if(i?.runId===n&&i.end===l){e.runs[e.runs.length-1]={runId:n,start:i.start,end:t};return}e.runs.push({runId:n,start:l,end:t});}function O(e,n,l,t){let i=chunkXPBKJQTG_cjs.ph(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;chunkXPBKJQTG_cjs.Tb(n)&&(e.symbols.push(o),e.symbolDisplays.push(chunkXPBKJQTG_cjs.am(n))),e.out.push(i),e.length+=i.length,X(e,l,o,e.length);}return true}function z(e,n){let l=e.length;n.text.length>0&&e.out.push(n.text),e.length+=n.text.length;for(let t of n.runs)X(e,t.runId,l+t.start,l+t.end);for(let t of n.symbols??[])e.symbols.push(l+t);for(let t of n.symbolDisplays??[])e.symbolDisplays.push(t);}function T(e){let n=e.out.join("");return e.symbols.length>0?{text:n,runs:e.runs,symbols:e.symbols,symbolDisplays:e.symbolDisplays}:{text:n,runs:e.runs}}var G=Object.freeze({text:"",runs:[]});function M(){return {text:chunkXPBKJQTG_cjs.$g,runs:[]}}function q(e,n,l,t){let i=[];if(!chunkXPBKJQTG_cjs.qh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(chunkXPBKJQTG_cjs.hh(u.node)){let s=[];if(!chunkXPBKJQTG_cjs.qh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!chunkXPBKJQTG_cjs.fh(u.node)&&!O(d,u.node,u.runId,t))return null}}return T(d)}function J(e,n,l,t,i){let o=k(),d=[],u=R(e);for(let s of e){let r=s.node;if(!b(d,u,r)&&!chunkXPBKJQTG_cjs.fh(r)&&g(d)&&!C(n,s)){if(chunkXPBKJQTG_cjs.hh(r)){let a=i>=chunkXPBKJQTG_cjs.sh?q(r,n,l,t):Y(r,n,l,t,i+1);if(a===null)return null;z(o,a);continue}if(!O(o,r,s.runId,t))return null}}return T(o)}function Y(e,n,l,t,i){let o=[];return chunkXPBKJQTG_cjs.qh(e,o,l)?J(o,n,l,t,i):null}function K(e,n,l){let t=n.node;return e.owned.has(t.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),t.id===e.endId?true:(t.id===e.span.node.id||b(e.states,e.markers,t)||e.overflow||chunkXPBKJQTG_cjs.fh(t)||chunkXPBKJQTG_cjs.hh(t)||!e.owned.has(t.id)||!g(e.states)||C(l,n)||O(e.result,t,n.runId,e.chars)||(e.overflow=true),false)}function ae(e,n,l="allMarkup"){let t=new Map,i=new Map,o=new Map;for(let r of n)r.kind==="complex"?i.set(r.node.id,r):o.set(r.node.id,r);let d=[];chunkXPBKJQTG_cjs.qh(e,d);let u=new Map;for(let r=0;r<d.length;r+=1)u.set(d[r].node.id,r);let s=null;for(let r=0;r<d.length;r+=1){let a=d[r],y=o.get(a.node.id);if(y)if(s!==null&&!g(s.states))t.set(y.node.id,G);else {let f={left:U},I={left:H},m=Y(y.node,l,f,I,0);t.set(y.node.id,m??M());}if(s===null){let f=i.get(a.node.id);if(!f)continue;let I=new Set(f.removeNodeIds),m=-1;for(let N=f.removeNodeIds.length-1;N>=0;N-=1){let F=u.get(f.removeNodeIds[N]);if(!(F===void 0||F<=r)&&chunkXPBKJQTG_cjs.eh(d[F].node,"end")){m=F;break}}let E=d[m];if(!E){t.set(f.node.id,M());continue}s={span:f,owned:I,states:[{beginId:f.node.id,separated:false}],markers:R(d,r+1,m,f.node.id),endId:E.node.id,result:k(),chars:{left:H},nodesLeft:U,overflow:false};}K(s,a,l)&&(t.set(s.span.node.id,s.overflow?M():T(s.result)),s=null);}return s!==null&&t.set(s.span.node.id,M()),t}exports.a=$;exports.b=Q;exports.c=Z;exports.d=ie;exports.e=U;exports.f=ae;exports.g=ne;
@@ -1 +1 @@
1
- import {nh,bh,Yg,oh,ch,eh,ph,mh,Tb,Zl}from'./chunk-7MOZVKCN.js';var w=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,j="Cambria";function $(e){return e!==void 0&&e.trim().length>0&&w.test(e)?e:null}function Q(e){if(e===void 0||e.trim().length===0)return null;if(e.length>1024)return j;let n=v(e);return n.length===0?null:w.test(n)?n:n.startsWith("@")||n.startsWith("\uFF20")?n.length<=128?n:null:j}function Z(e){return e===void 0||e.length>1024?null:$(v(e))}function v(e){let n=e.indexOf(",");return (n<0?e:e.slice(0,n)).trim()}function W(e){return e.kind!=="textValue"}function S(e,n){for(let l of e.children)if(W(l)&&l.localName===n)return l}function V(e,n){return e.attributes.find(l=>l.localName===n)?.value}function ne(e){let n=S(e,"pPr"),l=n?S(n,"outlineLvl"):void 0;if(l){let o=V(l,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let t=S(e,"name"),i=t?/^heading\s+([1-9])$/i.exec(V(t,"val")?.trim()??""):null;return i?Number(i[1])-1:null}function R(e,n=0,l=e.length,t){let i=new Set,o=new Map,d=new Map,u=t?[t]:[];t&&i.add(t);for(let s=n;s<l;s+=1){let r=e[s].node;if(bh(r,"begin")){u.push(r.id);continue}if(bh(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(bh(r,"end")){let a=u.pop();a&&(i.add(a),d.set(r.id,a));}}return {activeBegins:i,separateBegin:o,endBegin:d}}function b(e,n,l){if(bh(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(bh(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(bh(l,"end")){let t=n.endBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&e.pop(),true}return false}function g(e){for(let n of e)if(!n.separated)return false;return true}function ie(e,n){let l=[];nh(e,l,n);let t=R(l),i=[];return {consume:o=>b(i,t,o),visible:()=>g(i)}}function C(e,n){return e==="original"?n.hiddenInOriginal:e==="current"&&n.hiddenInCurrent}var U=4096,H=oh*16;function k(){return {out:[],runs:[],symbols:[],symbolDisplays:[],length:0}}function X(e,n,l,t){if(n.length===0||l===t)return;let i=e.runs[e.runs.length-1];if(i?.runId===n&&i.end===l){e.runs[e.runs.length-1]={runId:n,start:i.start,end:t};return}e.runs.push({runId:n,start:l,end:t});}function O(e,n,l,t){let i=mh(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;Tb(n)&&(e.symbols.push(o),e.symbolDisplays.push(Zl(n))),e.out.push(i),e.length+=i.length,X(e,l,o,e.length);}return true}function z(e,n){let l=e.length;n.text.length>0&&e.out.push(n.text),e.length+=n.text.length;for(let t of n.runs)X(e,t.runId,l+t.start,l+t.end);for(let t of n.symbols??[])e.symbols.push(l+t);for(let t of n.symbolDisplays??[])e.symbolDisplays.push(t);}function T(e){let n=e.out.join("");return e.symbols.length>0?{text:n,runs:e.runs,symbols:e.symbols,symbolDisplays:e.symbolDisplays}:{text:n,runs:e.runs}}var G=Object.freeze({text:"",runs:[]});function M(){return {text:Yg,runs:[]}}function q(e,n,l,t){let i=[];if(!nh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(eh(u.node)){let s=[];if(!nh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!ch(u.node)&&!O(d,u.node,u.runId,t))return null}}return T(d)}function J(e,n,l,t,i){let o=k(),d=[],u=R(e);for(let s of e){let r=s.node;if(!b(d,u,r)&&!ch(r)&&g(d)&&!C(n,s)){if(eh(r)){let a=i>=ph?q(r,n,l,t):Y(r,n,l,t,i+1);if(a===null)return null;z(o,a);continue}if(!O(o,r,s.runId,t))return null}}return T(o)}function Y(e,n,l,t,i){let o=[];return nh(e,o,l)?J(o,n,l,t,i):null}function K(e,n,l){let t=n.node;return e.owned.has(t.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),t.id===e.endId?true:(t.id===e.span.node.id||b(e.states,e.markers,t)||e.overflow||ch(t)||eh(t)||!e.owned.has(t.id)||!g(e.states)||C(l,n)||O(e.result,t,n.runId,e.chars)||(e.overflow=true),false)}function ae(e,n,l="allMarkup"){let t=new Map,i=new Map,o=new Map;for(let r of n)r.kind==="complex"?i.set(r.node.id,r):o.set(r.node.id,r);let d=[];nh(e,d);let u=new Map;for(let r=0;r<d.length;r+=1)u.set(d[r].node.id,r);let s=null;for(let r=0;r<d.length;r+=1){let a=d[r],y=o.get(a.node.id);if(y)if(s!==null&&!g(s.states))t.set(y.node.id,G);else {let f={left:U},I={left:H},m=Y(y.node,l,f,I,0);t.set(y.node.id,m??M());}if(s===null){let f=i.get(a.node.id);if(!f)continue;let I=new Set(f.removeNodeIds),m=-1;for(let N=f.removeNodeIds.length-1;N>=0;N-=1){let F=u.get(f.removeNodeIds[N]);if(!(F===void 0||F<=r)&&bh(d[F].node,"end")){m=F;break}}let E=d[m];if(!E){t.set(f.node.id,M());continue}s={span:f,owned:I,states:[{beginId:f.node.id,separated:false}],markers:R(d,r+1,m,f.node.id),endId:E.node.id,result:k(),chars:{left:H},nodesLeft:U,overflow:false};}K(s,a,l)&&(t.set(s.span.node.id,s.overflow?M():T(s.result)),s=null);}return s!==null&&t.set(s.span.node.id,M()),t}export{$ as a,Q as b,Z as c,ie as d,U as e,ae as f,ne as g};
1
+ import {qh,eh,$g,rh,fh,hh,sh,ph,Tb,am}from'./chunk-XI5HK3TZ.js';var w=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,j="Cambria";function $(e){return e!==void 0&&e.trim().length>0&&w.test(e)?e:null}function Q(e){if(e===void 0||e.trim().length===0)return null;if(e.length>1024)return j;let n=v(e);return n.length===0?null:w.test(n)?n:n.startsWith("@")||n.startsWith("\uFF20")?n.length<=128?n:null:j}function Z(e){return e===void 0||e.length>1024?null:$(v(e))}function v(e){let n=e.indexOf(",");return (n<0?e:e.slice(0,n)).trim()}function W(e){return e.kind!=="textValue"}function S(e,n){for(let l of e.children)if(W(l)&&l.localName===n)return l}function V(e,n){return e.attributes.find(l=>l.localName===n)?.value}function ne(e){let n=S(e,"pPr"),l=n?S(n,"outlineLvl"):void 0;if(l){let o=V(l,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let t=S(e,"name"),i=t?/^heading\s+([1-9])$/i.exec(V(t,"val")?.trim()??""):null;return i?Number(i[1])-1:null}function R(e,n=0,l=e.length,t){let i=new Set,o=new Map,d=new Map,u=t?[t]:[];t&&i.add(t);for(let s=n;s<l;s+=1){let r=e[s].node;if(eh(r,"begin")){u.push(r.id);continue}if(eh(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(eh(r,"end")){let a=u.pop();a&&(i.add(a),d.set(r.id,a));}}return {activeBegins:i,separateBegin:o,endBegin:d}}function b(e,n,l){if(eh(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(eh(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(eh(l,"end")){let t=n.endBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&e.pop(),true}return false}function g(e){for(let n of e)if(!n.separated)return false;return true}function ie(e,n){let l=[];qh(e,l,n);let t=R(l),i=[];return {consume:o=>b(i,t,o),visible:()=>g(i)}}function C(e,n){return e==="original"?n.hiddenInOriginal:e==="current"&&n.hiddenInCurrent}var U=4096,H=rh*16;function k(){return {out:[],runs:[],symbols:[],symbolDisplays:[],length:0}}function X(e,n,l,t){if(n.length===0||l===t)return;let i=e.runs[e.runs.length-1];if(i?.runId===n&&i.end===l){e.runs[e.runs.length-1]={runId:n,start:i.start,end:t};return}e.runs.push({runId:n,start:l,end:t});}function O(e,n,l,t){let i=ph(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;Tb(n)&&(e.symbols.push(o),e.symbolDisplays.push(am(n))),e.out.push(i),e.length+=i.length,X(e,l,o,e.length);}return true}function z(e,n){let l=e.length;n.text.length>0&&e.out.push(n.text),e.length+=n.text.length;for(let t of n.runs)X(e,t.runId,l+t.start,l+t.end);for(let t of n.symbols??[])e.symbols.push(l+t);for(let t of n.symbolDisplays??[])e.symbolDisplays.push(t);}function T(e){let n=e.out.join("");return e.symbols.length>0?{text:n,runs:e.runs,symbols:e.symbols,symbolDisplays:e.symbolDisplays}:{text:n,runs:e.runs}}var G=Object.freeze({text:"",runs:[]});function M(){return {text:$g,runs:[]}}function q(e,n,l,t){let i=[];if(!qh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(hh(u.node)){let s=[];if(!qh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!fh(u.node)&&!O(d,u.node,u.runId,t))return null}}return T(d)}function J(e,n,l,t,i){let o=k(),d=[],u=R(e);for(let s of e){let r=s.node;if(!b(d,u,r)&&!fh(r)&&g(d)&&!C(n,s)){if(hh(r)){let a=i>=sh?q(r,n,l,t):Y(r,n,l,t,i+1);if(a===null)return null;z(o,a);continue}if(!O(o,r,s.runId,t))return null}}return T(o)}function Y(e,n,l,t,i){let o=[];return qh(e,o,l)?J(o,n,l,t,i):null}function K(e,n,l){let t=n.node;return e.owned.has(t.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),t.id===e.endId?true:(t.id===e.span.node.id||b(e.states,e.markers,t)||e.overflow||fh(t)||hh(t)||!e.owned.has(t.id)||!g(e.states)||C(l,n)||O(e.result,t,n.runId,e.chars)||(e.overflow=true),false)}function ae(e,n,l="allMarkup"){let t=new Map,i=new Map,o=new Map;for(let r of n)r.kind==="complex"?i.set(r.node.id,r):o.set(r.node.id,r);let d=[];qh(e,d);let u=new Map;for(let r=0;r<d.length;r+=1)u.set(d[r].node.id,r);let s=null;for(let r=0;r<d.length;r+=1){let a=d[r],y=o.get(a.node.id);if(y)if(s!==null&&!g(s.states))t.set(y.node.id,G);else {let f={left:U},I={left:H},m=Y(y.node,l,f,I,0);t.set(y.node.id,m??M());}if(s===null){let f=i.get(a.node.id);if(!f)continue;let I=new Set(f.removeNodeIds),m=-1;for(let N=f.removeNodeIds.length-1;N>=0;N-=1){let F=u.get(f.removeNodeIds[N]);if(!(F===void 0||F<=r)&&eh(d[F].node,"end")){m=F;break}}let E=d[m];if(!E){t.set(f.node.id,M());continue}s={span:f,owned:I,states:[{beginId:f.node.id,separated:false}],markers:R(d,r+1,m,f.node.id),endId:E.node.id,result:k(),chars:{left:H},nodesLeft:U,overflow:false};}K(s,a,l)&&(t.set(s.span.node.id,s.overflow?M():T(s.result)),s=null);}return s!==null&&t.set(s.span.node.id,M()),t}export{$ as a,Q as b,Z as c,ie as d,U as e,ae as f,ne as g};