@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
@@ -1 +1 @@
1
- import {ml}from'./chunk-7MOZVKCN.js';function I(o){let n=[],t=[],a=new Map;for(let r of o){if(r.kind!=="revision")continue;let s=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)}`}export{I as a,w as b,b as c};
1
+ import {pl}from'./chunk-XI5HK3TZ.js';function I(o){let n=[],t=[],a=new Map;for(let r of o){if(r.kind!=="revision")continue;let s=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)}`}export{I as a,w as b,b as c};
@@ -1 +1 @@
1
- 'use strict';var chunkNTDLU6W6_cjs=require('./chunk-NTDLU6W6.cjs'),chunkTCWCSTAF_cjs=require('./chunk-TCWCSTAF.cjs');var Fn=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,bn=128,Rn=/[\u0000-\u001F\u007F-\u009F]/,Nn=16,Tn=2,Pn=3276;function rn(n){return n.kind!=="textValue"}function N(n,e){for(let t of n.children)if(rn(t)&&t.localName===e)return t}function g(n,e){return n.attributes.find(t=>t.localName===e)?.value}function T(n){return n===void 0||n.length===0||n.length>bn||Rn.test(n)?null:n}function U(n,e){let t=chunkTCWCSTAF_cjs.qe(g(n,"asciiTheme"),e)??chunkNTDLU6W6_cjs.b(g(n,"ascii"))??chunkTCWCSTAF_cjs.qe(g(n,"hAnsiTheme"),e)??chunkNTDLU6W6_cjs.b(g(n,"hAnsi"));return chunkNTDLU6W6_cjs.a(t??void 0)}function V(n,e){let t=chunkTCWCSTAF_cjs.qe(g(n,"eastAsiaTheme"),e);if(t!==null)return t;let l=g(n,"eastAsia");return l===void 0?null:chunkNTDLU6W6_cjs.a(chunkNTDLU6W6_cjs.b(l)??void 0)}function J(n,e){let t=chunkTCWCSTAF_cjs.qe(g(n,"hAnsiTheme"),e);if(t!==null)return t;let l=g(n,"hAnsi");return l===void 0?null:chunkNTDLU6W6_cjs.a(chunkNTDLU6W6_cjs.b(l)??void 0)}function Mn(n){return n!==void 0&&Fn.test(n)?n:null}function ae(n){return Mn(n)}function Cn(n){return n!==void 0&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(e=>!!g(n,e))}function on(n,e){if(!n)return {fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};let t=N(n,"rFonts"),l=N(n,"sz"),a=l?g(l,"val"):void 0,i=a!==void 0&&/^\d{1,4}$/.test(a)?Number(a):null;return {fontFamily:t?U(t,e):null,hasLatinFontReference:Cn(t),fontSizeHalfPoints:i!==null&&i>=Tn&&i<=Pn?i:null}}function ie(n,e){let t=new Map,l={fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};if(n){let o=N(n,"docDefaults"),r=o?N(o,"rPrDefault"):void 0;l=on(r?N(r,"rPr"):void 0,e);for(let s of n.children){if(!rn(s)||s.localName!=="style")continue;let f=T(g(s,"styleId"));if(f===null||t.has(f))continue;let u=N(s,"basedOn");t.set(f,{basedOn:T(u?g(u,"val"):void 0),own:on(N(s,"rPr"),e)});}}let a=new Map,i=o=>{let r=o??"",s=a.get(r);if(s)return s;let f=null,u=null,d=l.hasLatinFontReference,y=new Set,A=o;for(let k=0;A!==null&&k<Nn&&!y.has(A);k+=1){y.add(A);let D=t.get(A);if(!D)break;f??=D.own.fontFamily,d||=D.own.hasLatinFontReference,u??=D.own.fontSizeHalfPoints,A=D.basedOn;}let H={hasLatinFontReference:d,fontFamily:f??l.fontFamily,fontSizeHalfPoints:u??l.fontSizeHalfPoints};return a.set(r,H),H};return (o,r)=>{let s=i(o),f=r?.find(y=>y.localName==="rFonts"),u=f?chunkTCWCSTAF_cjs.qe(f.attributes?.asciiTheme,e)??(f.attributes?.ascii===void 0?chunkTCWCSTAF_cjs.qe(f.attributes?.hAnsiTheme,e):null):null,d=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(y=>!!f?.attributes?.[y]);return {fontFamily:u??s.fontFamily??(!s.hasLatinFontReference&&!d?e.minor:null),fontSizeHalfPoints:s.fontSizeHalfPoints}}}function sn(n){for(let e of n.children)if(e.kind!=="textValue"&&e.localName==="rPr"&&e.namespaceUri===chunkTCWCSTAF_cjs.pa)return chunkTCWCSTAF_cjs.Ea(e,"vanish");return false}var Hn=16,Ln=16,In=32,jn=4096;function E(n){return n.kind!=="textValue"}function c(n,e){for(let t of n.children)if(E(t)&&t.localName===e)return t}function x(n,e){return n.attributes.find(t=>t.localName===e)?.value}function _n(n){return n==="1"||n==="true"||n==="on"}function Y(){return {profiles:new Map}}function cn(n){return JSON.stringify([n.latin,n.eastAsia,n.hasEastAsian,n.hAnsi,n.hasHAnsi,n.hint,n.runStyle,n.paragraphStyle===void 0?0:n.paragraphStyle,n.tableStyle===void 0?0:n.tableStyle])}function yn(n,e){let t=cn(e);n.profiles.has(t)||n.profiles.set(t,e);}function $(n,e){for(let[t,l]of e.profiles)n.profiles.has(t)||n.profiles.set(t,l);}function Bn(n,e){let t=e.localName==="tbl",l=c(e,t?"tblPr":"pPr"),a=l?c(l,t?"tblStyle":"pStyle"):void 0,i=T(a?x(a,"val"):void 0),o=new Map;for(let r of n.profiles.values()){let s=t&&r.tableStyle===void 0?{...r,tableStyle:i}:!t&&r.paragraphStyle===void 0?{...r,paragraphStyle:i}:r;o.set(cn(s),s);}n.profiles=o;}function h(n,e){if(e===null)return;let t=e.toLowerCase();n.has(t)||n.set(t,e);}var vn=new Set(["tab","noBreakHyphen","softHyphen","footnoteRef","endnoteRef","footnoteReference","endnoteReference"]),kn=128;function zn(n){for(let e of n.attributes)if(e.localName==="font"&&!(e.namespaceUri!==chunkTCWCSTAF_cjs.pa&&e.namespaceUri!==""))return e.value.length>0&&e.value.length<=kn;return false}function wn(n,e){if(sn(n))return false;if(e?.has(n.id))return true;for(let t of n.children)if(!(!E(t)||t.namespaceUri!==chunkTCWCSTAF_cjs.pa)){if(vn.has(t.localName))return true;if(t.localName==="sym"){if(!zn(t))return true;continue}if(!(t.localName!=="t"&&t.localName!=="delText")){for(let l of t.children)if(!E(l)&&l.value.length>0)return true}}return false}function Un(n){return n>=160&&n<=65535&&!(n>=1424&&n<=1983)&&!(n>=64285&&n<=65023)&&!(n>=65136&&n<=65278)&&!chunkTCWCSTAF_cjs.he(n)}function Yn(n){let e=false,t=false;for(let l of n.children)if(!(!E(l)||l.namespaceUri!==chunkTCWCSTAF_cjs.pa)&&!(l.localName!=="t"&&l.localName!=="delText")){for(let a of l.children)if(!E(a))for(let i of a.value){let o=i.codePointAt(0);if(!(o<128)&&(e||=chunkTCWCSTAF_cjs.he(o),t||=Un(o),e&&t))return {eastAsian:e,hAnsi:t}}}return {eastAsian:e,hAnsi:t}}function Xn(n,e,t,l){if(!wn(n,l))return;let a=c(n,"rPr"),i=a?c(a,"rFonts"):void 0,o=Yn(n),r=o.eastAsian,s=a?c(a,"rStyle"):void 0;yn(e,{latin:i?U(i,t):null,eastAsia:i&&(r||o.hAnsi)?V(i,t):null,hasEastAsian:r,hint:(i&&x(i,"hint"))??null,hAnsi:i&&o.hAnsi?J(i,t):null,hasHAnsi:o.hAnsi,runStyle:T(s?x(s,"val"):void 0)});}function hn(n){return (n.localName==="p"||n.localName==="tbl")&&n.namespaceUri===chunkTCWCSTAF_cjs.pa}var Wn={latin:null,eastAsia:null,hasEastAsian:false,hAnsi:null,hasHAnsi:false,hint:null,runStyle:null};function gn(n,e,t,l){n.namespaceUri===chunkTCWCSTAF_cjs.pa&&(l?.has(n.id)&&n.localName==="fldSimple"&&yn(e,Wn),n.localName==="r"?Xn(n,e,t,l):hn(n)&&Bn(e,n));}function An(n,e,t){let l=[{node:n,summary:Y(),next:0}];for(;;){let a=l[l.length-1],i=a.node.children;if(a.next<i.length){let r=i[a.next];a.next+=1,E(r)&&l.push({node:r,summary:Y(),next:0});continue}gn(a.node,a.summary,e,t),l.pop();let o=l[l.length-1];if(!o)return a.summary;$(o.summary,a.summary);}}var un=new WeakMap;function Sn(n,e,t){let l=un.get(n);if(l&&l.major===e.major&&l.minor===e.minor&&l.majorEastAsia===e.majorEastAsia&&l.minorEastAsia===e.minorEastAsia&&l.majorBidi===e.majorBidi&&l.minorBidi===e.minorBidi)return l.summary;let a;return n.children.length>=Ln&&t<In?a=Zn(n,e,t):a=An(n,e),un.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,summary:a}),a}var C=new Map,Vn=64;function Jn(n,e){return n.major===e.major&&n.minor===e.minor&&n.majorEastAsia===e.majorEastAsia&&n.minorEastAsia===e.minorEastAsia&&n.majorBidi===e.majorBidi&&n.minorBidi===e.minorBidi}function Kn(n,e){if(n===e)return true;if(!n||!e||n.profiles.size!==e.profiles.size)return false;for(let t of n.profiles.keys())if(!e.profiles.has(t))return false;return true}function Zn(n,e,t){let l=n.children,a=n.namespaceUri!==chunkTCWCSTAF_cjs.pa||n.localName!=="r"&&!hn(n),i=a?C.get(n.id):void 0,o=i?.children.deref(),r=i!==void 0&&o!==void 0&&o.length===l.length&&Jn(i.themeFonts,e),s=r,f=l.map((d,y)=>{if(r&&d===o[y])return i.parts[y];let A=E(d)?Sn(d,e,t+1):null;return s&&!Kn(A,i.parts[y])&&(s=false),A}),u;if(s)u=i.summary;else {u=Y();for(let d of f)d&&$(u,d);gn(n,u,e);}return a&&(C.delete(n.id),C.set(n.id,{children:chunkTCWCSTAF_cjs.zh(l),parts:f,summary:u,themeFonts:e}),C.size>Vn&&C.delete(C.keys().next().value)),u}var v={latin:null,eastAsia:null,hAnsi:null,hint:null,conditional:[],conditionalEastAsia:[]},$n={docDefaultLatin:null,docDefaultEastAsia:null,docDefaultHAnsi:null,docDefaultHint:null,docDefaultsNameLatin:false,hAnsiSlotDefault:null,fallbackEastAsia:null,defaultParagraph:null,defaultCharacter:null,defaultTable:null,chain:()=>v,characterChain:()=>v},fn=new WeakMap;function K(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?U(l,e):null}function Z(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?V(l,e):null}function dn(n){let e=c(n,"rPr"),t=e?c(e,"rFonts"):void 0;return (t&&x(t,"hint"))??null}function mn(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?J(l,e):null}function qn(n,e){let t=new Map,l=null,a=null,i=null,o=null,r=null,s=null,f=c(n,"docDefaults"),u=f?c(f,"rPrDefault"):void 0;u&&(l=K(u,e),a=Z(u,e),i=mn(u,e));let d=u?c(u,"rPr"):void 0,y=d?c(d,"rFonts"):void 0,A=y&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(m=>!!x(y,m)),H=u?chunkTCWCSTAF_cjs.ie:e.minor;A||(l??=H);let k=u?chunkTCWCSTAF_cjs.je:e.minorEastAsia,D=0;for(let m of n.children){if(!E(m)||m.localName!=="style")continue;if(D>=jn)break;D+=1;let S=T(x(m,"styleId"));if(S===null)continue;let z=c(m,"basedOn"),L=[],I=[];for(let F of m.children){if(!E(F)||F.localName!=="tblStylePr")continue;let j=K(F,e);j!==null&&L.push(j);let _=Z(F,e);_!==null&&I.push(_);}t.set(S,{basedOn:T(z?x(z,"val"):void 0),family:K(m,e),eastAsiaFamily:Z(m,e),hAnsiFamily:mn(m,e),hint:dn(m),conditionalFamilies:L,conditionalEastAsiaFamilies:I});let P=_n(x(m,"default")),M=x(m,"type");M==="paragraph"?P?o=S:o===S&&(o=null):M==="character"?P?r=S:r===S&&(r=null):M==="table"&&(P?s=S:s===S&&(s=null));}let pn=new Map,On=new Map,q=(m,S,z)=>{if(m===null)return v;let L=S.get(m);if(L)return L;let I=null,P=null,M=null,F=null,j=[],_=[],G=new Set,b=m;for(let nn=0;b!==null&&nn<Hn&&!G.has(b);nn+=1){G.add(b);let p=t.get(b);if(!p)break;if(b===z){b=p.basedOn;continue}I??=p.family,P??=p.eastAsiaFamily,M??=p.hAnsiFamily,F??=p.hint;for(let X of p.conditionalFamilies)j.push(X);for(let X of p.conditionalEastAsiaFamilies)_.push(X);b=p.basedOn;}let Q={latin:I,eastAsia:P,hAnsi:M,hint:F,conditional:j,conditionalEastAsia:_};return S.set(m,Q),Q},xn=m=>q(m,pn,null),Dn=m=>q(m,On,r);return {docDefaultLatin:l,docDefaultEastAsia:a,docDefaultHAnsi:i,docDefaultHint:u?dn(u):null,docDefaultsNameLatin:!!A,hAnsiSlotDefault:H,fallbackEastAsia:k,defaultParagraph:o,defaultCharacter:r,defaultTable:s,chain:xn,characterChain:Dn}}function Gn(n,e){if(!n)return {...$n,docDefaultLatin:e.minor,hAnsiSlotDefault:e.minor,fallbackEastAsia:e.minorEastAsia};let t=fn.get(n);if(t&&t.major===e.major&&t.minor===e.minor&&t.majorEastAsia===e.majorEastAsia&&t.minorEastAsia===e.minorEastAsia&&t.majorBidi===e.majorBidi&&t.minorBidi===e.minorBidi)return t.index;let l=qn(n,e);return fn.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,index:l}),l}function Qn(n,e,t){let l=[e.characterChain(n.runStyle??null),e.chain(n.paragraphStyle??e.defaultParagraph),n.tableStyle===false||n.tableStyle===void 0?v:e.chain(n.tableStyle??e.defaultTable)];for(let a of l){h(t,a.eastAsia),h(t,a.latin),n.hasHAnsi&&h(t,a.hAnsi);for(let i of a.conditional)h(t,i);for(let i of a.conditionalEastAsia)h(t,i);}h(t,e.docDefaultLatin),h(t,e.docDefaultEastAsia),n.hasHAnsi&&h(t,e.docDefaultHAnsi);}function ne(n,e,t){return n.latin!==null||e.some(l=>l.latin!==null)||t.docDefaultsNameLatin}function ee(n,e,t,l){let a=e.characterChain(n.runStyle??null),i=e.chain(n.paragraphStyle??e.defaultParagraph),o=n.tableStyle===false||n.tableStyle===void 0?v:e.chain(n.tableStyle??e.defaultTable);n.latin!==null?h(t,n.latin):h(l,a.latin??i.latin??o.latin??e.docDefaultLatin);for(let s of o.conditional)h(l,s);n.hasHAnsi&&(n.hAnsi!==null?h(t,n.hAnsi):h(l,a.hAnsi??i.hAnsi??o.hAnsi??e.docDefaultHAnsi??(ne(n,[a,i,o],e)?e.hAnsiSlotDefault:null)));let r=n.hint??a.hint??i.hint??o.hint??e.docDefaultHint;if(!(!n.hasEastAsian&&!(n.hasHAnsi&&r==="eastAsia"))){n.eastAsia!==null?h(t,n.eastAsia):h(l,a.eastAsia??i.eastAsia??o.eastAsia??e.docDefaultEastAsia??e.fallbackEastAsia);for(let s of o.conditionalEastAsia)h(l,s);}}function he(n,e,t,l){return En(n,e,t,true,l)}function En(n,e,t,l,a){let i=Gn(e,t),o=new Map,r=new Map;for(let f of n){let u=Y();for(let d of f.children)E(d)&&$(u,a&&a.size>0?An(d,t,a):Sn(d,t,0));for(let d of u.profiles.values()){let y=d.tableStyle===void 0?{...d,tableStyle:false}:d;ee(y,i,o,r),l&&Qn(y,i,r);}}for(let f of o.keys())r.delete(f);let s=[...r.values()].sort((f,u)=>f<u?-1:f>u?1:0);return Object.freeze({direct:Object.freeze([...o.values()]),inherited:Object.freeze(s)})}function ge(n,e,t){let l=En(n,e,t,false),a=[...l.direct,...l.inherited];return a.sort((i,o)=>i<o?-1:i>o?1:0),a}exports.a=sn;exports.b=Mn;exports.c=ae;exports.d=ie;exports.e=he;exports.f=ge;
1
+ 'use strict';var chunkUP5TM6T6_cjs=require('./chunk-UP5TM6T6.cjs'),chunkXPBKJQTG_cjs=require('./chunk-XPBKJQTG.cjs');var Fn=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u,bn=128,Rn=/[\u0000-\u001F\u007F-\u009F]/,Nn=16,Tn=2,Pn=3276;function rn(n){return n.kind!=="textValue"}function N(n,e){for(let t of n.children)if(rn(t)&&t.localName===e)return t}function g(n,e){return n.attributes.find(t=>t.localName===e)?.value}function T(n){return n===void 0||n.length===0||n.length>bn||Rn.test(n)?null:n}function U(n,e){let t=chunkXPBKJQTG_cjs.se(g(n,"asciiTheme"),e)??chunkUP5TM6T6_cjs.b(g(n,"ascii"))??chunkXPBKJQTG_cjs.se(g(n,"hAnsiTheme"),e)??chunkUP5TM6T6_cjs.b(g(n,"hAnsi"));return chunkUP5TM6T6_cjs.a(t??void 0)}function V(n,e){let t=chunkXPBKJQTG_cjs.se(g(n,"eastAsiaTheme"),e);if(t!==null)return t;let l=g(n,"eastAsia");return l===void 0?null:chunkUP5TM6T6_cjs.a(chunkUP5TM6T6_cjs.b(l)??void 0)}function J(n,e){let t=chunkXPBKJQTG_cjs.se(g(n,"hAnsiTheme"),e);if(t!==null)return t;let l=g(n,"hAnsi");return l===void 0?null:chunkUP5TM6T6_cjs.a(chunkUP5TM6T6_cjs.b(l)??void 0)}function Mn(n){return n!==void 0&&Fn.test(n)?n:null}function ae(n){return Mn(n)}function Cn(n){return n!==void 0&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(e=>!!g(n,e))}function on(n,e){if(!n)return {fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};let t=N(n,"rFonts"),l=N(n,"sz"),a=l?g(l,"val"):void 0,i=a!==void 0&&/^\d{1,4}$/.test(a)?Number(a):null;return {fontFamily:t?U(t,e):null,hasLatinFontReference:Cn(t),fontSizeHalfPoints:i!==null&&i>=Tn&&i<=Pn?i:null}}function ie(n,e){let t=new Map,l={fontFamily:null,fontSizeHalfPoints:null,hasLatinFontReference:false};if(n){let o=N(n,"docDefaults"),r=o?N(o,"rPrDefault"):void 0;l=on(r?N(r,"rPr"):void 0,e);for(let s of n.children){if(!rn(s)||s.localName!=="style")continue;let f=T(g(s,"styleId"));if(f===null||t.has(f))continue;let u=N(s,"basedOn");t.set(f,{basedOn:T(u?g(u,"val"):void 0),own:on(N(s,"rPr"),e)});}}let a=new Map,i=o=>{let r=o??"",s=a.get(r);if(s)return s;let f=null,u=null,d=l.hasLatinFontReference,y=new Set,A=o;for(let k=0;A!==null&&k<Nn&&!y.has(A);k+=1){y.add(A);let D=t.get(A);if(!D)break;f??=D.own.fontFamily,d||=D.own.hasLatinFontReference,u??=D.own.fontSizeHalfPoints,A=D.basedOn;}let H={hasLatinFontReference:d,fontFamily:f??l.fontFamily,fontSizeHalfPoints:u??l.fontSizeHalfPoints};return a.set(r,H),H};return (o,r)=>{let s=i(o),f=r?.find(y=>y.localName==="rFonts"),u=f?chunkXPBKJQTG_cjs.se(f.attributes?.asciiTheme,e)??(f.attributes?.ascii===void 0?chunkXPBKJQTG_cjs.se(f.attributes?.hAnsiTheme,e):null):null,d=["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(y=>!!f?.attributes?.[y]);return {fontFamily:u??s.fontFamily??(!s.hasLatinFontReference&&!d?e.minor:null),fontSizeHalfPoints:s.fontSizeHalfPoints}}}function sn(n){for(let e of n.children)if(e.kind!=="textValue"&&e.localName==="rPr"&&e.namespaceUri===chunkXPBKJQTG_cjs.pa)return chunkXPBKJQTG_cjs.Ea(e,"vanish");return false}var Hn=16,Ln=16,In=32,jn=4096;function E(n){return n.kind!=="textValue"}function c(n,e){for(let t of n.children)if(E(t)&&t.localName===e)return t}function x(n,e){return n.attributes.find(t=>t.localName===e)?.value}function _n(n){return n==="1"||n==="true"||n==="on"}function Y(){return {profiles:new Map}}function cn(n){return JSON.stringify([n.latin,n.eastAsia,n.hasEastAsian,n.hAnsi,n.hasHAnsi,n.hint,n.runStyle,n.paragraphStyle===void 0?0:n.paragraphStyle,n.tableStyle===void 0?0:n.tableStyle])}function yn(n,e){let t=cn(e);n.profiles.has(t)||n.profiles.set(t,e);}function $(n,e){for(let[t,l]of e.profiles)n.profiles.has(t)||n.profiles.set(t,l);}function Bn(n,e){let t=e.localName==="tbl",l=c(e,t?"tblPr":"pPr"),a=l?c(l,t?"tblStyle":"pStyle"):void 0,i=T(a?x(a,"val"):void 0),o=new Map;for(let r of n.profiles.values()){let s=t&&r.tableStyle===void 0?{...r,tableStyle:i}:!t&&r.paragraphStyle===void 0?{...r,paragraphStyle:i}:r;o.set(cn(s),s);}n.profiles=o;}function h(n,e){if(e===null)return;let t=e.toLowerCase();n.has(t)||n.set(t,e);}var vn=new Set(["tab","noBreakHyphen","softHyphen","footnoteRef","endnoteRef","footnoteReference","endnoteReference"]),kn=128;function zn(n){for(let e of n.attributes)if(e.localName==="font"&&!(e.namespaceUri!==chunkXPBKJQTG_cjs.pa&&e.namespaceUri!==""))return e.value.length>0&&e.value.length<=kn;return false}function wn(n,e){if(sn(n))return false;if(e?.has(n.id))return true;for(let t of n.children)if(!(!E(t)||t.namespaceUri!==chunkXPBKJQTG_cjs.pa)){if(vn.has(t.localName))return true;if(t.localName==="sym"){if(!zn(t))return true;continue}if(!(t.localName!=="t"&&t.localName!=="delText")){for(let l of t.children)if(!E(l)&&l.value.length>0)return true}}return false}function Un(n){return n>=160&&n<=65535&&!(n>=1424&&n<=1983)&&!(n>=64285&&n<=65023)&&!(n>=65136&&n<=65278)&&!chunkXPBKJQTG_cjs.je(n)}function Yn(n){let e=false,t=false;for(let l of n.children)if(!(!E(l)||l.namespaceUri!==chunkXPBKJQTG_cjs.pa)&&!(l.localName!=="t"&&l.localName!=="delText")){for(let a of l.children)if(!E(a))for(let i of a.value){let o=i.codePointAt(0);if(!(o<128)&&(e||=chunkXPBKJQTG_cjs.je(o),t||=Un(o),e&&t))return {eastAsian:e,hAnsi:t}}}return {eastAsian:e,hAnsi:t}}function Xn(n,e,t,l){if(!wn(n,l))return;let a=c(n,"rPr"),i=a?c(a,"rFonts"):void 0,o=Yn(n),r=o.eastAsian,s=a?c(a,"rStyle"):void 0;yn(e,{latin:i?U(i,t):null,eastAsia:i&&(r||o.hAnsi)?V(i,t):null,hasEastAsian:r,hint:(i&&x(i,"hint"))??null,hAnsi:i&&o.hAnsi?J(i,t):null,hasHAnsi:o.hAnsi,runStyle:T(s?x(s,"val"):void 0)});}function hn(n){return (n.localName==="p"||n.localName==="tbl")&&n.namespaceUri===chunkXPBKJQTG_cjs.pa}var Wn={latin:null,eastAsia:null,hasEastAsian:false,hAnsi:null,hasHAnsi:false,hint:null,runStyle:null};function gn(n,e,t,l){n.namespaceUri===chunkXPBKJQTG_cjs.pa&&(l?.has(n.id)&&n.localName==="fldSimple"&&yn(e,Wn),n.localName==="r"?Xn(n,e,t,l):hn(n)&&Bn(e,n));}function An(n,e,t){let l=[{node:n,summary:Y(),next:0}];for(;;){let a=l[l.length-1],i=a.node.children;if(a.next<i.length){let r=i[a.next];a.next+=1,E(r)&&l.push({node:r,summary:Y(),next:0});continue}gn(a.node,a.summary,e,t),l.pop();let o=l[l.length-1];if(!o)return a.summary;$(o.summary,a.summary);}}var un=new WeakMap;function Sn(n,e,t){let l=un.get(n);if(l&&l.major===e.major&&l.minor===e.minor&&l.majorEastAsia===e.majorEastAsia&&l.minorEastAsia===e.minorEastAsia&&l.majorBidi===e.majorBidi&&l.minorBidi===e.minorBidi)return l.summary;let a;return n.children.length>=Ln&&t<In?a=Zn(n,e,t):a=An(n,e),un.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,summary:a}),a}var C=new Map,Vn=64;function Jn(n,e){return n.major===e.major&&n.minor===e.minor&&n.majorEastAsia===e.majorEastAsia&&n.minorEastAsia===e.minorEastAsia&&n.majorBidi===e.majorBidi&&n.minorBidi===e.minorBidi}function Kn(n,e){if(n===e)return true;if(!n||!e||n.profiles.size!==e.profiles.size)return false;for(let t of n.profiles.keys())if(!e.profiles.has(t))return false;return true}function Zn(n,e,t){let l=n.children,a=n.namespaceUri!==chunkXPBKJQTG_cjs.pa||n.localName!=="r"&&!hn(n),i=a?C.get(n.id):void 0,o=i?.children.deref(),r=i!==void 0&&o!==void 0&&o.length===l.length&&Jn(i.themeFonts,e),s=r,f=l.map((d,y)=>{if(r&&d===o[y])return i.parts[y];let A=E(d)?Sn(d,e,t+1):null;return s&&!Kn(A,i.parts[y])&&(s=false),A}),u;if(s)u=i.summary;else {u=Y();for(let d of f)d&&$(u,d);gn(n,u,e);}return a&&(C.delete(n.id),C.set(n.id,{children:chunkXPBKJQTG_cjs.Ch(l),parts:f,summary:u,themeFonts:e}),C.size>Vn&&C.delete(C.keys().next().value)),u}var v={latin:null,eastAsia:null,hAnsi:null,hint:null,conditional:[],conditionalEastAsia:[]},$n={docDefaultLatin:null,docDefaultEastAsia:null,docDefaultHAnsi:null,docDefaultHint:null,docDefaultsNameLatin:false,hAnsiSlotDefault:null,fallbackEastAsia:null,defaultParagraph:null,defaultCharacter:null,defaultTable:null,chain:()=>v,characterChain:()=>v},fn=new WeakMap;function K(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?U(l,e):null}function Z(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?V(l,e):null}function dn(n){let e=c(n,"rPr"),t=e?c(e,"rFonts"):void 0;return (t&&x(t,"hint"))??null}function mn(n,e){let t=c(n,"rPr"),l=t?c(t,"rFonts"):void 0;return l?J(l,e):null}function qn(n,e){let t=new Map,l=null,a=null,i=null,o=null,r=null,s=null,f=c(n,"docDefaults"),u=f?c(f,"rPrDefault"):void 0;u&&(l=K(u,e),a=Z(u,e),i=mn(u,e));let d=u?c(u,"rPr"):void 0,y=d?c(d,"rFonts"):void 0,A=y&&["ascii","hAnsi","asciiTheme","hAnsiTheme"].some(m=>!!x(y,m)),H=u?chunkXPBKJQTG_cjs.ke:e.minor;A||(l??=H);let k=u?chunkXPBKJQTG_cjs.le:e.minorEastAsia,D=0;for(let m of n.children){if(!E(m)||m.localName!=="style")continue;if(D>=jn)break;D+=1;let S=T(x(m,"styleId"));if(S===null)continue;let z=c(m,"basedOn"),L=[],I=[];for(let F of m.children){if(!E(F)||F.localName!=="tblStylePr")continue;let j=K(F,e);j!==null&&L.push(j);let _=Z(F,e);_!==null&&I.push(_);}t.set(S,{basedOn:T(z?x(z,"val"):void 0),family:K(m,e),eastAsiaFamily:Z(m,e),hAnsiFamily:mn(m,e),hint:dn(m),conditionalFamilies:L,conditionalEastAsiaFamilies:I});let P=_n(x(m,"default")),M=x(m,"type");M==="paragraph"?P?o=S:o===S&&(o=null):M==="character"?P?r=S:r===S&&(r=null):M==="table"&&(P?s=S:s===S&&(s=null));}let pn=new Map,On=new Map,q=(m,S,z)=>{if(m===null)return v;let L=S.get(m);if(L)return L;let I=null,P=null,M=null,F=null,j=[],_=[],G=new Set,b=m;for(let nn=0;b!==null&&nn<Hn&&!G.has(b);nn+=1){G.add(b);let p=t.get(b);if(!p)break;if(b===z){b=p.basedOn;continue}I??=p.family,P??=p.eastAsiaFamily,M??=p.hAnsiFamily,F??=p.hint;for(let X of p.conditionalFamilies)j.push(X);for(let X of p.conditionalEastAsiaFamilies)_.push(X);b=p.basedOn;}let Q={latin:I,eastAsia:P,hAnsi:M,hint:F,conditional:j,conditionalEastAsia:_};return S.set(m,Q),Q},xn=m=>q(m,pn,null),Dn=m=>q(m,On,r);return {docDefaultLatin:l,docDefaultEastAsia:a,docDefaultHAnsi:i,docDefaultHint:u?dn(u):null,docDefaultsNameLatin:!!A,hAnsiSlotDefault:H,fallbackEastAsia:k,defaultParagraph:o,defaultCharacter:r,defaultTable:s,chain:xn,characterChain:Dn}}function Gn(n,e){if(!n)return {...$n,docDefaultLatin:e.minor,hAnsiSlotDefault:e.minor,fallbackEastAsia:e.minorEastAsia};let t=fn.get(n);if(t&&t.major===e.major&&t.minor===e.minor&&t.majorEastAsia===e.majorEastAsia&&t.minorEastAsia===e.minorEastAsia&&t.majorBidi===e.majorBidi&&t.minorBidi===e.minorBidi)return t.index;let l=qn(n,e);return fn.set(n,{major:e.major,minor:e.minor,majorEastAsia:e.majorEastAsia,minorEastAsia:e.minorEastAsia,majorBidi:e.majorBidi,minorBidi:e.minorBidi,index:l}),l}function Qn(n,e,t){let l=[e.characterChain(n.runStyle??null),e.chain(n.paragraphStyle??e.defaultParagraph),n.tableStyle===false||n.tableStyle===void 0?v:e.chain(n.tableStyle??e.defaultTable)];for(let a of l){h(t,a.eastAsia),h(t,a.latin),n.hasHAnsi&&h(t,a.hAnsi);for(let i of a.conditional)h(t,i);for(let i of a.conditionalEastAsia)h(t,i);}h(t,e.docDefaultLatin),h(t,e.docDefaultEastAsia),n.hasHAnsi&&h(t,e.docDefaultHAnsi);}function ne(n,e,t){return n.latin!==null||e.some(l=>l.latin!==null)||t.docDefaultsNameLatin}function ee(n,e,t,l){let a=e.characterChain(n.runStyle??null),i=e.chain(n.paragraphStyle??e.defaultParagraph),o=n.tableStyle===false||n.tableStyle===void 0?v:e.chain(n.tableStyle??e.defaultTable);n.latin!==null?h(t,n.latin):h(l,a.latin??i.latin??o.latin??e.docDefaultLatin);for(let s of o.conditional)h(l,s);n.hasHAnsi&&(n.hAnsi!==null?h(t,n.hAnsi):h(l,a.hAnsi??i.hAnsi??o.hAnsi??e.docDefaultHAnsi??(ne(n,[a,i,o],e)?e.hAnsiSlotDefault:null)));let r=n.hint??a.hint??i.hint??o.hint??e.docDefaultHint;if(!(!n.hasEastAsian&&!(n.hasHAnsi&&r==="eastAsia"))){n.eastAsia!==null?h(t,n.eastAsia):h(l,a.eastAsia??i.eastAsia??o.eastAsia??e.docDefaultEastAsia??e.fallbackEastAsia);for(let s of o.conditionalEastAsia)h(l,s);}}function he(n,e,t,l){return En(n,e,t,true,l)}function En(n,e,t,l,a){let i=Gn(e,t),o=new Map,r=new Map;for(let f of n){let u=Y();for(let d of f.children)E(d)&&$(u,a&&a.size>0?An(d,t,a):Sn(d,t,0));for(let d of u.profiles.values()){let y=d.tableStyle===void 0?{...d,tableStyle:false}:d;ee(y,i,o,r),l&&Qn(y,i,r);}}for(let f of o.keys())r.delete(f);let s=[...r.values()].sort((f,u)=>f<u?-1:f>u?1:0);return Object.freeze({direct:Object.freeze([...o.values()]),inherited:Object.freeze(s)})}function ge(n,e,t){let l=En(n,e,t,false),a=[...l.direct,...l.inherited];return a.sort((i,o)=>i<o?-1:i>o?1:0),a}exports.a=sn;exports.b=Mn;exports.c=ae;exports.d=ie;exports.e=he;exports.f=ge;
@@ -1,2 +1,2 @@
1
- import {f}from'./chunk-2BVJFI6B.js';import {xa,va,wa}from'./chunk-N5RYSQN5.js';import {Yg,Sb,rh,Ei,Tb,Zl,Rb,de,ee,Qb}from'./chunk-7MOZVKCN.js';function G(n){let t=[],a=0;for(let r of n){let o=a+r.text.length;r.resultRuns?t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,resultRuns:r.resultRuns,...r.symbolOffsets?{symbolOffsets:r.symbolOffsets}:{},...r.symbolDisplays?{symbolDisplays:r.symbolDisplays}:{},projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}):r.floatingObject?t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,floatingObject:true,projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}):t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,...r.symbol?{symbol:true}:{},...r.symbolOffsets?{symbolOffsets:r.symbolOffsets}:{},...r.symbolDisplays?{symbolDisplays:r.symbolDisplays}:{},projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}),a=o;}return t}function B(n,t){return t<=n.rawStart?n.projectedStart:t>=n.rawEnd?n.projectedEnd:n.expansion?n.projectedStart:n.projectedStart+t-n.rawStart}function L(n,t){return n.expansion?n.rawStart:n.rawStart+t-n.projectedStart}function W(n,t){return n.expansion?n.rawEnd:n.rawStart+t-n.projectedStart}var K=new Set([Qb,"\u2011"]),Q=/[\u001e\u001f\u2011]/,X="\uFFFF";function Y(n,t){if(!Q.test(n)&&!t?.size)return {text:n,at:null};let a="",r=[];for(let o=0;o<n.length;o+=1){let l=n[o];if(t?.has(o))a+=X;else {if(l===Rb)continue;a+=K.has(l)?"-":l;}r.push(o);}return {text:a,at:r}}function U(n){let t;for(let a of n){if(a.symbol){t??=new Set;for(let r=a.projectedStart;r<a.projectedEnd;r+=1)t.add(r);}for(let r of a.symbolOffsets??[])(t??=new Set).add(a.projectedStart+r);}return t}function P(n){let t=G(n),a="";for(let o of n)a+=o.text;let r=null;return {text:a,projectedOffset(o){let l=0;for(let i of t){if(o<=i.rawEnd)return B(i,o);l=i.projectedEnd;}return l},projectedOffsets(o,l){let i=new Int32Array(Math.max(0,l-o+1)),e=0,d=0;for(let s=o;s<=l;s+=1){for(;e<t.length&&s>t[e].rawEnd;)d=t[e].projectedEnd,e+=1;let c=t[e];i[s-o]=c?B(c,s):d;}return i},rawRange(o,l){if(o<0||o>=l||l>a.length)return null;let i=t.find(d=>o>=d.projectedStart&&o<d.projectedEnd),e=t.find(d=>l>d.projectedStart&&l<=d.projectedEnd);return !i||!e?null:{start:L(i,o),end:W(e,l)}},sliceRaw(o,l){if(o>=l)return "";let i="";for(let e of t){if(e.expansion){o<=e.rawStart&&l>=e.rawEnd&&(i+=e.text);continue}let d=Math.max(o,e.rawStart),s=Math.min(l,e.rawEnd);d<s&&(i+=e.text.slice(d-e.rawStart,s-e.rawStart));}return i},displaySlice(o,l){let i="";for(let e of t){if(e.projectedEnd<=o||e.projectedStart>=l)continue;let d=Math.max(o,e.projectedStart)-e.projectedStart,s=Math.min(l,e.projectedEnd)-e.projectedStart;if(e.symbol){i+=e.symbolDisplays?.[0]??"";continue}let c=new Map;e.symbolOffsets?.forEach((f,u)=>c.set(f,e.symbolDisplays?.[u]??""));for(let f=d;f<s;f+=1)i+=c.get(f)??e.text[f];}return i},resultRunAddressAt(o){let l=t.find(e=>e.resultRuns!==void 0&&o>=e.projectedStart&&o<e.projectedEnd);if(!l?.resultRuns)return null;let i=o-l.projectedStart;for(let e of l.resultRuns)if(i>=e.start&&i<e.end)return {runId:e.runId,offset:i-e.start};return null},findOccurrences(o,l,i={}){let e=[];if(l<=0||!xa(o)||a.length===0)return {matches:e,truncated:false};let d=i.matchCase===true,s=i.wholeWord===true;r??=Y(a,U(t));let c=r,f=Y(o).text;if(f.length===0||f.includes(X))return {matches:e,truncated:false};let u=d?f:va(f),j=d?c.text:va(c.text),R=p=>c.at?.[p]??p,v=p=>{if(!c.at)return p;let m=0;for(;m<c.at.length&&c.at[m]<p;)m+=1;return m},z=Math.min(a.length,i.to??a.length),D=new Set,b=j.indexOf(u,v(Math.max(0,i.from??0)));for(;b>=0;){let p=b+u.length,m=R(b),x=R(p-1)+1;if(x>z)return {matches:e,truncated:false};if(t.some(y=>y.floatingObject===true&&y.projectedStart>m&&y.projectedStart<x)){b=j.indexOf(u,b+1);continue}if(!s||wa(c.text,b,p)){let y=t.find(h=>m>=h.projectedStart&&m<h.projectedEnd),E=t.find(h=>x>h.projectedStart&&x<=h.projectedEnd);if(!y||!E)return {matches:e,truncated:false};let S=y===E&&y.expansion?y:null;if(!S||!D.has(S)){if(e.length>=l)return {matches:e,truncated:true};e.push({start:m,length:x-m,rawStart:L(y,m),rawEnd:W(E,x)}),S&&D.add(S);}}b=j.indexOf(u,p);}return {matches:e,truncated:false}}}}function q(n){return n.length===0?P([]):P([{text:n,rawStart:0,rawEnd:n.length}])}var J="http://schemas.openxmlformats.org/markup-compatibility/2006";function Z(n){if(n.kind==="textValue")return false;if(de(n))return ee(n);let t=a=>a.kind!=="textValue"&&a.children.some(r=>r.kind==="anchoredDrawing"||r.kind!=="textValue"&&r.localName==="anchor");if(n.kind==="drawing")return t(n);if(n.namespaceUri!==J||n.localName!=="AlternateContent")return false;for(let a of n.children){if(a.kind==="textValue"||a.localName!=="Choice")continue;let r=a.children.find(o=>o.kind==="drawing"||o.kind!=="textValue"&&o.localName==="drawing");if(r)return t(r)}return false}function $(n,t,a="allMarkup"){if(!t.includes(Yg)&&!t.includes(Sb))return t.length===0?[]:[{text:t,rawStart:0,rawEnd:t.length}];let r=rh(n),o=Ei(n,r),l=f(n,r,a),i=new Map;for(let s of r)i.set(s.node.id,s);let e=[],d=0;for(let s of o){let c=i.get(s.node.id),f=!c&&Tb(s.node);if(!c&&!f){Z(s.node)&&(d<s.start&&e.push({text:t.slice(d,s.start),rawStart:d,rawEnd:s.start}),e.push({text:"",rawStart:s.start,rawEnd:s.end,floatingObject:true}),d=s.end);continue}if(d<s.start&&e.push({text:t.slice(d,s.start),rawStart:d,rawEnd:s.start}),!c){e.push({text:Sb,rawStart:s.start,rawEnd:s.end,symbol:true,symbolDisplays:[Zl(s.node)]}),d=s.end;continue}let u=l.get(c.node.id);c.kind==="simple"&&u?e.push({text:u.text,rawStart:s.start,rawEnd:s.end,resultRuns:u.runs,...u.symbols?{symbolOffsets:u.symbols}:{},...u.symbolDisplays?{symbolDisplays:u.symbolDisplays}:{}}):e.push({text:u?.text??Yg,rawStart:s.start,rawEnd:s.end,...u?.symbols?{symbolOffsets:u.symbols}:{},...u?.symbolDisplays?{symbolDisplays:u.symbolDisplays}:{}}),d=s.end;}return d<t.length&&e.push({text:t.slice(d),rawStart:d,rawEnd:t.length}),e}function ie(n,t,a="allMarkup"){return !t.includes(Yg)&&!t.includes(Sb)?q(t):P($(n,t,a))}
1
+ import {f}from'./chunk-WMM772MS.js';import {ya,wa,xa}from'./chunk-XMJFDVE2.js';import {$g,Sb,uh,Hi,Tb,am,Rb,de,ee,Qb}from'./chunk-XI5HK3TZ.js';function G(n){let t=[],a=0;for(let r of n){let o=a+r.text.length;r.resultRuns?t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,resultRuns:r.resultRuns,...r.symbolOffsets?{symbolOffsets:r.symbolOffsets}:{},...r.symbolDisplays?{symbolDisplays:r.symbolDisplays}:{},projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}):r.floatingObject?t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,floatingObject:true,projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}):t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,...r.symbol?{symbol:true}:{},...r.symbolOffsets?{symbolOffsets:r.symbolOffsets}:{},...r.symbolDisplays?{symbolDisplays:r.symbolDisplays}:{},projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}),a=o;}return t}function B(n,t){return t<=n.rawStart?n.projectedStart:t>=n.rawEnd?n.projectedEnd:n.expansion?n.projectedStart:n.projectedStart+t-n.rawStart}function L(n,t){return n.expansion?n.rawStart:n.rawStart+t-n.projectedStart}function W(n,t){return n.expansion?n.rawEnd:n.rawStart+t-n.projectedStart}var K=new Set([Qb,"\u2011"]),Q=/[\u001e\u001f\u2011]/,X="\uFFFF";function Y(n,t){if(!Q.test(n)&&!t?.size)return {text:n,at:null};let a="",r=[];for(let o=0;o<n.length;o+=1){let l=n[o];if(t?.has(o))a+=X;else {if(l===Rb)continue;a+=K.has(l)?"-":l;}r.push(o);}return {text:a,at:r}}function U(n){let t;for(let a of n){if(a.symbol){t??=new Set;for(let r=a.projectedStart;r<a.projectedEnd;r+=1)t.add(r);}for(let r of a.symbolOffsets??[])(t??=new Set).add(a.projectedStart+r);}return t}function P(n){let t=G(n),a="";for(let o of n)a+=o.text;let r=null;return {text:a,projectedOffset(o){let l=0;for(let i of t){if(o<=i.rawEnd)return B(i,o);l=i.projectedEnd;}return l},projectedOffsets(o,l){let i=new Int32Array(Math.max(0,l-o+1)),e=0,d=0;for(let s=o;s<=l;s+=1){for(;e<t.length&&s>t[e].rawEnd;)d=t[e].projectedEnd,e+=1;let c=t[e];i[s-o]=c?B(c,s):d;}return i},rawRange(o,l){if(o<0||o>=l||l>a.length)return null;let i=t.find(d=>o>=d.projectedStart&&o<d.projectedEnd),e=t.find(d=>l>d.projectedStart&&l<=d.projectedEnd);return !i||!e?null:{start:L(i,o),end:W(e,l)}},sliceRaw(o,l){if(o>=l)return "";let i="";for(let e of t){if(e.expansion){o<=e.rawStart&&l>=e.rawEnd&&(i+=e.text);continue}let d=Math.max(o,e.rawStart),s=Math.min(l,e.rawEnd);d<s&&(i+=e.text.slice(d-e.rawStart,s-e.rawStart));}return i},displaySlice(o,l){let i="";for(let e of t){if(e.projectedEnd<=o||e.projectedStart>=l)continue;let d=Math.max(o,e.projectedStart)-e.projectedStart,s=Math.min(l,e.projectedEnd)-e.projectedStart;if(e.symbol){i+=e.symbolDisplays?.[0]??"";continue}let c=new Map;e.symbolOffsets?.forEach((f,u)=>c.set(f,e.symbolDisplays?.[u]??""));for(let f=d;f<s;f+=1)i+=c.get(f)??e.text[f];}return i},resultRunAddressAt(o){let l=t.find(e=>e.resultRuns!==void 0&&o>=e.projectedStart&&o<e.projectedEnd);if(!l?.resultRuns)return null;let i=o-l.projectedStart;for(let e of l.resultRuns)if(i>=e.start&&i<e.end)return {runId:e.runId,offset:i-e.start};return null},findOccurrences(o,l,i={}){let e=[];if(l<=0||!ya(o)||a.length===0)return {matches:e,truncated:false};let d=i.matchCase===true,s=i.wholeWord===true;r??=Y(a,U(t));let c=r,f=Y(o).text;if(f.length===0||f.includes(X))return {matches:e,truncated:false};let u=d?f:wa(f),j=d?c.text:wa(c.text),R=p=>c.at?.[p]??p,v=p=>{if(!c.at)return p;let m=0;for(;m<c.at.length&&c.at[m]<p;)m+=1;return m},z=Math.min(a.length,i.to??a.length),D=new Set,b=j.indexOf(u,v(Math.max(0,i.from??0)));for(;b>=0;){let p=b+u.length,m=R(b),x=R(p-1)+1;if(x>z)return {matches:e,truncated:false};if(t.some(y=>y.floatingObject===true&&y.projectedStart>m&&y.projectedStart<x)){b=j.indexOf(u,b+1);continue}if(!s||xa(c.text,b,p)){let y=t.find(h=>m>=h.projectedStart&&m<h.projectedEnd),E=t.find(h=>x>h.projectedStart&&x<=h.projectedEnd);if(!y||!E)return {matches:e,truncated:false};let S=y===E&&y.expansion?y:null;if(!S||!D.has(S)){if(e.length>=l)return {matches:e,truncated:true};e.push({start:m,length:x-m,rawStart:L(y,m),rawEnd:W(E,x)}),S&&D.add(S);}}b=j.indexOf(u,p);}return {matches:e,truncated:false}}}}function q(n){return n.length===0?P([]):P([{text:n,rawStart:0,rawEnd:n.length}])}var J="http://schemas.openxmlformats.org/markup-compatibility/2006";function Z(n){if(n.kind==="textValue")return false;if(de(n))return ee(n);let t=a=>a.kind!=="textValue"&&a.children.some(r=>r.kind==="anchoredDrawing"||r.kind!=="textValue"&&r.localName==="anchor");if(n.kind==="drawing")return t(n);if(n.namespaceUri!==J||n.localName!=="AlternateContent")return false;for(let a of n.children){if(a.kind==="textValue"||a.localName!=="Choice")continue;let r=a.children.find(o=>o.kind==="drawing"||o.kind!=="textValue"&&o.localName==="drawing");if(r)return t(r)}return false}function $(n,t,a="allMarkup"){if(!t.includes($g)&&!t.includes(Sb))return t.length===0?[]:[{text:t,rawStart:0,rawEnd:t.length}];let r=uh(n),o=Hi(n,r),l=f(n,r,a),i=new Map;for(let s of r)i.set(s.node.id,s);let e=[],d=0;for(let s of o){let c=i.get(s.node.id),f=!c&&Tb(s.node);if(!c&&!f){Z(s.node)&&(d<s.start&&e.push({text:t.slice(d,s.start),rawStart:d,rawEnd:s.start}),e.push({text:"",rawStart:s.start,rawEnd:s.end,floatingObject:true}),d=s.end);continue}if(d<s.start&&e.push({text:t.slice(d,s.start),rawStart:d,rawEnd:s.start}),!c){e.push({text:Sb,rawStart:s.start,rawEnd:s.end,symbol:true,symbolDisplays:[am(s.node)]}),d=s.end;continue}let u=l.get(c.node.id);c.kind==="simple"&&u?e.push({text:u.text,rawStart:s.start,rawEnd:s.end,resultRuns:u.runs,...u.symbols?{symbolOffsets:u.symbols}:{},...u.symbolDisplays?{symbolDisplays:u.symbolDisplays}:{}}):e.push({text:u?.text??$g,rawStart:s.start,rawEnd:s.end,...u?.symbols?{symbolOffsets:u.symbols}:{},...u?.symbolDisplays?{symbolDisplays:u.symbolDisplays}:{}}),d=s.end;}return d<t.length&&e.push({text:t.slice(d),rawStart:d,rawEnd:t.length}),e}function ie(n,t,a="allMarkup"){return !t.includes($g)&&!t.includes(Sb)?q(t):P($(n,t,a))}
2
2
  export{P as a,q as b,$ as c,ie as d};
@@ -0,0 +1,2 @@
1
+ import {P,O,R,Q as Q$1}from'./chunk-TTPQZXYS.js';import {h,a,b,e,c,f,Ge,ad,dd,fd,gd,ed,xe as xe$1,bd,cd,Cd,zf,$d,_f,Zf,d,F,Md,ma,Qc,Af,zd,Df}from'./chunk-T6MYXF6V.js';import {b as b$1}from'./chunk-77L2HX42.js';import {c as c$1,a as a$1,b as b$2}from'./chunk-WMM772MS.js';import {ye as ye$1,Me,rb,Aa,pa,Ba,pd,oe as oe$1,f as f$1,N,va,oa,je,a as a$2}from'./chunk-XI5HK3TZ.js';var Rt=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function Y(e){let t=new Map;for(let n of e)if(Array.isArray(n)){for(let o of n.slice(0,2048)){if(typeof o!="string"||!Rt.test(o))continue;let r=o.toLowerCase();if(t.has(r)||t.set(r,o),t.size===2048)break}if(t.size===2048)break}return Object.freeze([...t.values()])}function hn(e){let t=e&&"failures"in e?e.failures:void 0;return e==null||(e.sources?.length??0)===0&&(e.substitutions?.length??0)===0&&(t===void 0||Array.isArray(t)&&t.length===0)?void 0:e}var st=64,de=Object.freeze({family:"Calibri",sizeHalfPoints:22}),bn=de;function oe(e,...t){let n=[e,...t],o=[],r=new Set;for(let l of n)for(let u of l.sources??[]){let c=h(u.request);r.has(c)||(r.add(c),o.push(u));}let i=[],s=new Set;for(let l of n)for(let u of l.substitutions??[]){let c=h(u.from);r.has(c)||s.has(c)||(s.add(c),i.push(u));}let a$1=Y(n.map(l=>l.supportedFamilies));return Object.freeze({...a$1.length?{supportedFamilies:a$1}:{},epoch:e.epoch??0,maxFontBytes:e.maxFontBytes??a,sources:Object.freeze(o),...i.length>0?{substitutions:Object.freeze(i)}:{},defaultFont:e.defaultFont??de,...e.language!==void 0?{language:e.language}:{}})}var kt=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function re(e){let t=e?.defaultFont?.family;return t!==void 0&&kt.test(t)?t:de.family}function J(e){let t="deferred"in e?e.deferred:void 0;if(t===void 0)return {now:e};let{deferred:n,...o}=e;if(typeof t?.then!="function")return {now:o};let r=Promise.resolve(t);return r.catch(()=>{}),{now:o,later:r}}var lt=new WeakSet;function Tt(e){return e&&lt.add(e),e}function ut(e,t){if(!t)return e;let n=e?me(e):void 0,o=t.deferred?{deferred:t.deferred}:{},r=lt.has(t),i=r?t.supportedFamilies??[]:[...t.supportedFamilies??[],...n?.supportedFamilies??[]];return {...n,sources:r?t.sources??[]:[...t.sources??[],...n?.sources??[]],substitutions:r?t.substitutions??[]:[...t.substitutions??[],...n?.substitutions??[]],supportedFamilies:i.length>0?[...new Set(i)]:void 0,...o}}function Mt(e){return !!e&&((e.sources?.length??0)>0||(e.substitutions?.length??0)>0||e.deferred!==void 0)}function ct(e){let t=e&&"failures"in e?e.failures:void 0;return Array.isArray(t)?t.slice(0,256):[]}function ft(e,t){return t?t.aborted?Promise.reject(t.reason):new Promise((n,o)=>{let r=()=>o(t.reason);t.addEventListener("abort",r,{once:true}),Promise.resolve(e).then(i=>{t.removeEventListener("abort",r),n(i);},i=>{t.removeEventListener("abort",r),o(i);});}):Promise.resolve(e)}async function dt(e,t,n){let o="failures"in e?e.failures:void 0,r=s=>o===void 0?s:{...s,failures:o},i=e;for(let s=0;s<at;s+=1){let{now:a,later:l}=J(i);if(!l)return r(a);let u;try{u=await ft(l,n);}catch(c){if(n?.aborted)throw n.reason;return t(c),r(a)}for(let c of ct(u))t(c);i=ut(a,u)??a;}return t(new RangeError(`Font loading stopped after ${at} deferred steps`)),r(J(i).now)}var at=256;function me(e){if(!("failures"in e))return e;let{failures:t,...n}=e;return n}async function ge(e,t,n,o){let r=t.flatMap((a,l)=>a?[a.then(u=>({originIndex:l,ok:true,value:u??void 0}),u=>({originIndex:l,ok:false,cause:u}))]:[]);if(r.length===0)return;let i=await ft(Promise.race(r),n).catch(()=>{});if(!i||n?.aborted)return;if(i.ok)for(let a of ct(i.value))o.report(i.originIndex,a);else o.report(i.originIndex,i.cause);if(!i.ok||!Mt(i.value)){let a=t.map((l,u)=>u===i.originIndex?void 0:l);return ge(e,a,n,o)}let s=[];for(let a=0;a<Math.max(e.length,t.length);a+=1){let l=e[a],u=t[a];s.push(a===i.originIndex?ut(l,i.value):u?{...l??{sources:[]},deferred:u}:l);}try{return Tt(await o.compose(s))}catch(a){n?.aborted||o.report(i.originIndex,a);return}}var vt="docx-editor.dev/font-resolver",pt=Symbol.for("docx-editor.dev/font-resolver");function Rn(e){let t={value:true,enumerable:false,configurable:true};try{Object.defineProperty(e,pt,t),Object.defineProperty(e,vt,t);}catch(n){throw new TypeError("defineFontResolver cannot mark a frozen or sealed function; mark it before freezing, or wrap it in a fresh function and mark that.",{cause:n})}return e}function kn(e){return typeof e=="function"&&e[pt]===true}var ye=class extends RangeError{constructor(n,o,r){super(`Font source ${n.family} (${o} bytes) exceeds the shaping byte ceiling (${r} bytes)`);this.request=n;}request},Fe=class extends AggregateError{causes;constructor(t){let n=Object.freeze(t.slice(0,b*2));super(n,`Font origin rejected all ${n.length} face and substitution candidates`),this.causes=n;}},ie=e=>`${e.family.trim().toLowerCase()} ${e.weight} ${e.style}`;function _t(e,t,n){let o=new Map(e.map(r=>[ie(r),r]));for(let[r,i]of t)o.set(r,i);for(let r of n)o.has(ie(r.to))&&o.set(ie(r.from),r.from);return [...o.values()]}async function Tn(e,t,n={}){return he(e,t,n)}async function Mn(e,t,n={}){return he(e,t,n)}async function he(e,t,n){let o=n.maxExecutionFontBytes??a;if(!Number.isSafeInteger(o)||o<=0||o>a)throw new RangeError("Font execution byte ceiling is outside the supported range");let r=e.map(Lt),i,s=[],a$1=[],l=new Map,u=new Set,c=0,f=[],d=new Set,y=[],v=t.resolvedFaces??[],T=t.defaultFamily,C=[],P=[],g=new Set(n.placeholderOrigins??[]),E;for(let h$1=0;h$1<e.length;h$1+=1){yt(t.signal);let k=e[h$1],X=_t(v,l,f),q,B;try{let w=r[h$1],p;if(w){let m=await gt(w,t.signal);if(!m.ok)throw m.cause;p=m.value;}else if(typeof k=="function"){let m=await gt(Promise.resolve(k(It(t,T,X,c))).then(_=>({ok:!0,value:_}),_=>({ok:!1,cause:_})),t.signal);if(!m.ok)throw m.cause;p=m.value;}else p=k;if(p==null)continue;if(typeof p=="function"){K(n,k,h$1,new TypeError("A font origin answered with a function; pass the resolver itself rather than a function returning one"));continue}if(n.awaitDeferred){let m=J(p);m.later&&mt(m.now,m.now)&&g.add(h$1),p=await dt(p,_=>K(n,k,h$1,_),t.signal);}else {let m=J(p);p=m.now,B=m.later;}let S="failures"in p?p.failures:void 0,O=[];if(Array.isArray(S)){let m=Math.min(S.length,b);for(let _=0;_<m;_++)O.push(S[_]);S.length>m&&O.push(new Error("Additional font-origin failures were omitted"));}else S!==void 0&&O.push(S);let A;try{A=Nt(p,u,c,d,i?"maxFontBytes"in i&&i.maxFontBytes!==void 0?i.maxFontBytes:a:void 0,n.reserveOwnedBytes,n.instrumentation,o);}catch(m){for(let _ of new Set(O))K(n,k,h$1,_);throw m}q=A;for(let m of new Set([...A.dropped,...O]))K(n,k,h$1,m);let x=A.fragment;x.supportedFamilies&&s.push(x.supportedFamilies),y.push(...O);let U=(x.sources??[]).map(m=>(h(m.request),[ie(m.request),m.request])),G=[...x.substitutions??[]];B!==void 0&&mt(x,p)&&g.add(h$1);let $=g.has(h$1);!i&&!$&&"defaultFont"in x&&(T=re(x)),!i&&!$&&(i=x),$&&(E??=x);let z=new Set(A.sourceKeys);if(z.size>0){f=f.filter(m=>!z.has(h(m.from)));for(let m of z)d.delete(m);}a$1.push(...x.sources??[]);for(let m of A.sourceKeys)u.add(m);c+=A.ownedBytes;for(let[m,_]of U)l.set(m,_);for(let m of G)f.push(m),d.add(h(m.from));C[h$1]=me(x),B&&(P[h$1]=B);}catch(w){if(q?.releaseOwnedBytes?.(),t.signal?.aborted)throw t.signal.reason??w;if(w instanceof se)throw w.cause;if(K(n,k,h$1,w),B){let p=new Error("Font origin skipped, so its background faces were not loaded");K(n,k,h$1,p);}continue}}let F=P.some(Boolean)?ge(C,P,t.signal,{compose:h=>he(h,t,{...n,placeholderOrigins:g}),report:(h,k)=>K(n,e[h],h,k)}):void 0;if(i??=E,!i)return F?{sources:[],deferred:F}:void 0;let{epoch:M,...R}=oe({...i,supportedFamilies:Y(s),sources:a$1,substitutions:f}),D=F?{...R,deferred:F}:R;return y.length===0?D:{...D,failures:Object.freeze(y)}}function mt(e,t){return (e.sources?.length??0)===0&&(e.substitutions?.length??0)===0&&!("defaultFont"in t)&&!("maxFontBytes"in t)}var se=class extends Error{constructor(n){super("Unable to reserve owned font bytes");this.cause=n;this.name="FontOwnershipReservationError";}cause},ae=class extends RangeError{};async function gt(e,t){if(!t)return e;yt(t);let n,o=new Promise((i,s)=>{n=s;}),r=()=>n?.(t.reason);t.addEventListener("abort",r,{once:true});try{return await Promise.race([e,o])}finally{t.removeEventListener("abort",r);}}function Lt(e){if(e===null||typeof e!="object")return;let t;try{t=e.then;}catch(n){return Promise.resolve({ok:false,cause:n})}if(typeof t=="function")return Promise.resolve(e).then(n=>({ok:true,value:n}),n=>({ok:false,cause:n}))}function Nt(e$1,t,n,o,r,i,s,a$1=a){let l=e$1.sources??[],u=e$1.substitutions??[],c$1="maxFontBytes"in e$1?e$1.maxFontBytes:void 0,f$1="defaultFont"in e$1?e$1.defaultFont:void 0,d="epoch"in e$1?e$1.epoch:void 0,y="language"in e$1?e$1.language:void 0;if(!Array.isArray(l)||!Array.isArray(u))throw new TypeError("Font origin sources and substitutions must be arrays");let v=l.length,T=u.length;if(v>b)throw new RangeError(`Font source count must not exceed ${b}`);if(T>b)throw new RangeError(`Font substitution count must not exceed ${b}`);let C=c$1??a;if(!Number.isSafeInteger(C)||C<=0||C>a)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${a}`);let P=Math.min(r??C,a$1),g=0,E=[],F=new Set,M=[],R=[];for(let w=0;w<v;w+=1){let p=l[w];try{let S=pe(p.request),O=h(S);if(t.has(O)||F.has(O))continue;let A=p.availability,x=p.faceIndex,U=p.hash,G=p.id;if(A!==void 0&&A!=="available"&&A!=="forbidden")throw new TypeError("Font source availability must be available or forbidden");if(!Number.isSafeInteger(x)||x<0)throw new RangeError("Font face index must be a non-negative safe integer");if(typeof U!="string"||U.length===0)throw new TypeError("Font source hash must be a non-empty string");let $;if(A!=="forbidden"){if(typeof G!="string"||G.length===0)throw new TypeError("Font source id must be a non-empty string");$=p.bytes;let z=e($);if(z>P)throw z<=(r??C)?new ye(S,z,a$1):new RangeError(`Font source ${S.family} (${z} bytes) exceeds the effective base byte ceiling (${P} bytes)`);if(t.has(O)||F.has(O))continue;if(n+g+z>c)throw new RangeError(`Font sources exceed the aggregate byte ceiling of ${c}`);g+=z;}else $=new Uint8Array(0);if(t.has(O)||F.has(O))continue;if(t.size+F.size>=b)throw new ae(`Font source count must not exceed ${b}`);F.add(O),E.push(O),M.push(Object.freeze({request:S,id:G,bytes:$,hash:U,faceIndex:x,...A?{availability:A}:{}}));}catch(S){if(S instanceof ae)throw S;R.push(S);}}let D=new Set,h$1=[];for(let w=0;w<T;w+=1){let p=u[w];try{let S=pe(p.from),O=pe(p.to);h(S),h(O);let A=p.lineMetrics,x=A?Object.freeze({heightEm:A.heightEm,baselineEm:A.baselineEm}):void 0;if(x&&(!Number.isFinite(x.heightEm)||!Number.isFinite(x.baselineEm)||x.heightEm<=0||x.heightEm>4||x.baselineEm<0||x.baselineEm>x.heightEm))throw new RangeError("Font substitution line metrics must fit within a bounded em box");let U=h(S);if(t.has(U)||F.has(U)||o.has(U)||D.has(U))continue;D.add(U),h$1.push(Object.freeze({from:S,to:O,...x?{lineMetrics:x}:{}}));}catch(S){R.push(S);}}if((v>0||T>0)&&M.length===0&&h$1.length===0&&R.length>0)throw R.length===1?R[0]:new Fe(R);let k=o.size;for(let w of F)o.has(w)&&(k-=1);if(k+D.size>b)throw new RangeError(`Font substitution count must not exceed ${b}`);let X;if(f$1!==void 0){let w=f$1.family,p=f$1.sizeHalfPoints;if(h({family:w,weight:400,style:"normal"}),!Number.isSafeInteger(p)||p<=0)throw new RangeError("Default font size must be a positive safe integer in half-points");X=Object.freeze({family:w,sizeHalfPoints:p});}if(d!==void 0&&(!Number.isSafeInteger(d)||d<0))throw new RangeError("Font configuration epoch must be a non-negative safe integer");if(y!==void 0&&typeof y!="string")throw new TypeError("Font shaping language must be a string");let q;if(g>0&&i)try{q=i(g);}catch(w){throw new se(w)}let B;try{B=M.map(w=>f(w,s));}catch(w){throw q?.(),w}return {fragment:Object.freeze({supportedFamilies:Y([e$1.supportedFamilies]),sources:Object.freeze(B),substitutions:Object.freeze(h$1),...d!==void 0?{epoch:d}:{},...c$1!==void 0?{maxFontBytes:c$1}:{},...X?{defaultFont:X}:{},...y!==void 0?{language:y}:{}}),sourceKeys:Object.freeze(E),ownedBytes:g,dropped:Object.freeze(R),releaseOwnedBytes:q}}function Pt(e){return !Number.isSafeInteger(e)||e<=0?0:e>c?c:e}function It(e,t,n,o){let{committedSourceBytes:r,...i}=e,s=Pt(o);return {...i,defaultFamily:t,...n.length>0?{resolvedFaces:n}:{},...s>0?{committedSourceBytes:s}:{}}}function pe(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}function yt(e){if(e?.aborted)throw e.reason??new DOMException("Font resolution was aborted","AbortError")}function K(e,t,n,o){let r;try{typeof t=="function"&&t.name.length>0&&(r=t.name);}catch{}try{o instanceof Error&&o.stack;}catch{}let i=Object.freeze({originIndex:n,...r!==void 0?{originName:r}:{},cause:o});if(e.onOriginFailure)try{let a=e.onOriginFailure(i);Promise.resolve(a).catch(l=>{console.warn("[fonts] font-origin diagnostic callback failed",l);});return}catch(a){console.warn("[fonts] font-origin diagnostic callback failed",a);}let s="";try{o instanceof Error&&o.message.length>0&&(s=`: ${o.message}`);}catch{}console.warn(`[fonts] a font origin failed and was skipped${s}`,o);}var Dt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",be=256,Bt=31;function W(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===pa}function Z(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===pa)?.value}function we(e){let t=(e.relationships.get(e.mainDocumentPart)??[]).find(i=>i.type===Dt),n=t?N(t):void 0,r=((n?.mode==="Internal"&&n.target.ok?e.parts.get(n.target.partName):void 0)??e.parts.get("/word/fontTable.xml"))?.root;return r&&W(r,"fonts")?r:void 0}function Q(e,t){let n=e.children.find(o=>W(o,t));return n&&n.kind!=="textValue"?Z(n,"val"):void 0}function bt(e){let t=we(e),n=new Map;if(!t)return n;let o=0;for(let r of t.children){if(!W(r,"font"))continue;if(++o>be)break;let i=c$1(Z(r,"name"));if(!i)continue;let s=P(Q(r,"family"),Q(r,"pitch")),a=i.trim().toLowerCase();s&&!n.has(a)&&n.set(a,s);}return n}var Ut=new Set(["81","82"]),Ft=new WeakMap,ht=()=>false;function In(e){let t=we(e);if(!t)return ht;let n=Ft.get(t);if(n)return n;let o=new Set,r=0;for(let s of t.children){if(!W(s,"font"))continue;if(++r>be)break;let a=c$1(Z(s,"name")),l=Q(s,"charset")?.toLowerCase();!a||!l||!Ut.has(l)||P(Q(s,"family"),Q(s,"pitch"))==="serif"&&o.add(a.trim().toLowerCase());}let i=o.size===0?ht:s=>o.has(s.trim().toLowerCase());return Ft.set(t,i),i}function wt(e){let t=we(e),n=new Map;if(!t)return n;let o=0;for(let r of t.children){if(!W(r,"font"))continue;if(++o>be)break;let i=c$1(Z(r,"name"));if(!i)continue;let s=r.children.find(c=>W(c,"altName")),a=s&&s.kind!=="textValue"?Z(s,"val"):void 0,l=a!==void 0&&a.length<=Bt?a$1(a):null,u=i.trim().toLowerCase();l&&!n.has(u)&&n.set(u,l);}return n}function zt(e,t,n){let o="";for(let r=t;r+1<t+n&&r+1<e.length;r+=2){let i=e[r]|e[r+1]<<8;if(i===0)break;o+=String.fromCharCode(i);}return o}function qt(e,t,n){let o="";for(let r=t;r<t+n&&r<e.length&&e[r]!==0;r++)o+=String.fromCharCode(e[r]);return o}function jt(e,t){let n=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e.length<8||n.getUint32(0,true)!==1)return;let o=0;for(let r=0;r<1e5&&o+8<=e.length;r++){let i=n.getUint32(o,true),s=n.getUint32(o+4,true);if(s<8||s%4!==0||o+s>e.length||(i===82&&s>=104&&t(zt(e,o+40,64)),i===14))return;o+=s;}}function Xt(e,t){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=e.length>=22&&n.getUint32(0,true)===2596720087?22:0;if(!(o+18>e.length||n.getUint16(o+2,true)!==9)){o+=18;for(let i=0;i<1e5&&o+6<=e.length;i++){let s=n.getUint32(o,true),a=n.getUint16(o+4,true);if(s<3||o+s*2>e.length||(a===763&&s*2>=25&&t(qt(e,o+6+18,Math.min(32,s*2-6-18))),a===0))return;o+=s*2;}}}function xt(e,t){let n=new Map,o=i=>{if(i.trim().toLowerCase()==="system")return;let s=t(i.trim());if(s===null||n.size>=16)return;let a=s.toLowerCase();n.has(a)||n.set(a,s);},r=0;for(let[i,s]of e.partBytes){let a=i.toLowerCase();if(!a.startsWith("/word/")||a.startsWith("/word/glossary/"))continue;let l=a.endsWith(".emf"),u=a.endsWith(".wmf");if(!(!l&&!u)){if(++r>64||n.size>=16)break;l?jt(s,o):Xt(s,o);}}return [...n.values()]}var $t=2e5,St=32,Ht=new Set(["latin","ea","cs"]);function Vt(e,t){let n=/^\+(mn|mj)-(lt|ea|cs)$/.exec(e);if(!n)return;let o=n[1]==="mj";return n[2]==="ea"?o?t.majorEastAsia:t.minorEastAsia:n[2]==="cs"?o?t.majorBidi:t.minorBidi:o?t.major:t.minor}var Et=new WeakMap;function Kt(e){return e>=1424&&e<=2303||e>=2304&&e<=3839||e>=64285&&e<=65023||e>=65136&&e<=65279}function Wt(e){let t=Et.get(e);if(t)return t;let n=[],o=new Set,r=false,i=false,s=[e],a=0;for(;s.length>0&&++a<=$t;){let u=s.pop();if(u.namespaceUri===va&&Ht.has(u.localName)){let c=oa(u.attributes,"typeface"),f=u.localName,d=`${f}\0${c}`;c&&!o.has(d)&&n.length<St&&(o.add(d),n.push({slot:f,typeface:c}));continue}for(let c=u.children.length-1;c>=0;c-=1){let f=u.children[c];if(f.kind!=="textValue"){s.push(f);continue}if(!(r&&i))for(let d of f.value){let y=d.codePointAt(0);if(!r&&je(y)?r=true:!i&&Kt(y)&&(i=true),r&&i)break}}}let l={faces:n,eastAsian:r,complex:i};return Et.set(e,l),l}function Vn(e,t={}){let n=new Map,o=r=>{let i=r?b$1(r):null;if(i===null||n.size>=St)return;let s=i.toLowerCase();n.has(s)||n.set(s,i);};for(let r of e.parts.values()){let i=r.root;if(i.namespaceUri!==ye$1&&i.namespaceUri!==Me)continue;o(t.minor);let s=Wt(i);for(let{slot:a,typeface:l}of s.faces)a==="ea"&&!s.eastAsian||a==="cs"&&!s.complex||(l.startsWith("+")?o(Vt(l,t)):o(l));}for(let r of xt(e,b$1))o(r);return [...n.values()]}var Gt=256,Yt=Object.freeze([]);function le(e){let t=new WeakMap;return (n,o)=>{let r=new Set;for(let i of n){let s=[{node:i,context:o,next:0}],a=l=>{s.pop();let u=s.at(-1)?.found??r;for(let c of l)u.add(c);};for(;s.length;){let l=s[s.length-1],u=t.get(l.node);if(u?.key===l.context.key){a(u.families);continue}if(!l.children){let d=e(l.node,l.context);l.children=d.children,l.found=new Set(d.families);}let c=l.children[l.next++];if(c){s.push({...c,next:0});continue}let f=l.found.size===0?Yt:[...l.found];f.length<=Gt&&rb(l.node)?t.set(l.node,{key:l.context.key,families:f}):t.delete(l.node),a(f);}}return [...r]}}function ue(e,t){return e.children.flatMap(n=>n.kind==="textValue"?[]:[{node:n,context:t}])}var Ct=new WeakMap,Jt=4096;function Ot(e,t){let n=`${e.baseKey}|${e.depth+1}|${JSON.stringify(t)}`,o=Ct.get(e);o||Ct.set(e,o=new Map);let r=o.get(n);if(r)return r;let i={...e,depth:e.depth+1,cellStyle:t,key:n};return o.size<Jt&&o.set(n,i),i}function Qt(e,t){let{styles:n,theme:o,supplementalFamilies:r,depth:i}=t;if(e.kind==="table"){let l=Ge(e,468,i,n),u=[];for(let c of l?.rows??[])for(let f of c.cells){let d=Ot(t,f.styleFormatting);for(let y of f.blocks)u.push({node:y,context:d});}return {children:u.reverse()}}let s=new Set;if(e.kind==="paragraph"){let l=e.children.find(c=>c.kind==="paragraphProperties"),u=Af(n,l,t.cellStyle).runProperties;for(let c of zd(e,u,void 0,(f,d)=>Df(f,d,n),void 0,void 0,"all-markup",void 0,void 0,o)){if(!c.text||c.fontSlot!=="eastAsia"&&!r.has(c.style.fontFamily??""))continue;let f=b$1((c.fontSlot==="eastAsia"?c.style.fontFamilyEastAsia:c.style.fontFamily)??void 0);f&&s.add(f);}}let a=e.localName==="txbxContent"?{...t,cellStyle:void 0,key:`${t.baseKey}|${i}|undefined`}:t;return {families:[...s],children:ue(e,a).reverse()}}function Zt(){let e=le(Qt),t,n,o=(i,s)=>{if(!t||n!==i||t.theme!==s){let a=zf(i,s);n=i,t={key:`${a.cacheToken}|0|undefined`,baseKey:a.cacheToken,styles:a,theme:s,depth:0,supplementalFamilies:new Set([...Object.values(s.majorSupplemental??{}),...Object.values(s.minorSupplemental??{})])};}return t};return Object.assign((i,s,a)=>e([...i].reverse(),o(s,a)),{warmTableRows(i,s,a,l,u){let c=o(l,u),f=Ge(i,468,c.depth,c.styles)?.rows??[];for(let d of f.slice(s,a))for(let y of d.cells)e(y.blocks,Ot(c,y.styleFormatting));return f.length}})}function to(e,t,n){return Zt()(e,t,n)}function xe(e,t){return e.attributes.find(n=>n.localName===t)?.value}var en=le((e,t)=>{let n=[];if(e.namespaceUri===pa){if(e.localName==="fldSimple"){let o=xe$1(xe(e,"instr")??"")?.font;o&&n.push(o);}if(e.localName==="p")for(let o of tn(e))n.push(o);}return {families:n,children:ue(e,t)}});function go(e){let t=new Map;for(let n of en(e,{key:""})){let o=b$1(n);o!==null&&!t.has(o.toLowerCase())&&t.set(o.toLowerCase(),o);}return [...t.values()]}function tn(e){let t=[],n=ad(),o=[];for(let r=e.children.length-1;r>=0;r-=1){let i=e.children[r];i.kind!=="textValue"&&o.push({node:i,containerDepth:0});}for(;o.length>0;){let{node:r,containerDepth:i}=o.pop();if(i>=Aa||r.namespaceUri===pa&&r.localName==="p")continue;if(r.namespaceUri===pa&&r.localName==="fldChar"){let a=xe(r,"fldCharType");a==="begin"?dd(n):a==="separate"?(n.nesting===1&&At(n,t),fd(n)):a==="end"&&(n.nesting===1&&At(n,t),gd(n));continue}if(r.namespaceUri===pa&&(r.localName==="instrText"||r.localName==="delInstrText")){ed(n,nn(r),r.localName==="delInstrText");continue}if(r.namespaceUri===pa&&r.localName==="fldSimple"){let a=xe$1(xe(r,"instr")??"");a?.font&&t.push(a.font);}let s=Ba(r,i);for(let a=r.children.length-1;a>=0;a-=1){let l=r.children[a];l.kind!=="textValue"&&o.push({node:l,containerDepth:s});}}return bd(n),t}function At(e,t){let n=cd(e);if(n.overflow)return;let o=xe$1(n.instruction);o?.font&&t.push(o.font);}function nn(e){let t="",n=[...e.children].reverse();for(;n.length>0&&t.length<=256;){let o=n.pop();if(o.kind==="textValue")t+=o.value;else for(let r=o.children.length-1;r>=0;r-=1)n.push(o.children[r]);}return t}var on=()=>true,rn=/[ᄀ-ᇿ⺀-鿿ꥠ-꥿가-퟿豈-﫿︰-﹏＀-￯]/u;function po(e,t,n,o){if(!t)return [];let r=Cd(t),i=zf(n,o),s=new Map;for(let a of e)for(let l of sn(a)){let u=pd(l.children),c=f=>{if(f)for(let d of f.values()){let y=d.markerText===void 0||rn.test(d.markerText);for(let v of [d.markerStyle.fontFamily,y?d.markerStyle.fontFamilyEastAsia:null]){let T=b$1(v??void 0);if(T===null)continue;let C=T.toLowerCase();s.has(C)||s.set(C,T);}}};c($d(u,r,i,on));for(let f of u){let d=_f(f);for(let y of d.contents)c(Zf(y,r,i));}}return [...s.values()].sort((a,l)=>a.localeCompare(l))}function sn(e){if(e.localName==="document"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="body")return [t];return []}if(e.localName==="footnotes"||e.localName==="endnotes"){let t=[];for(let n of e.children)n.kind!=="textValue"&&(n.localName==="footnote"||n.localName==="endnote")&&t.push(n);return t}return [e]}function Mo(e,t,n,o=[]){let r=new Set,i=new Set((o??[]).map(a=>a.from.family.trim().toLowerCase())),s=new Map;for(let a of e.substitutions??[]){let l=a.from.family.trim().toLowerCase();s.has(l)||s.set(l,a.to.family.trim().toLowerCase());}for(let a of e.substitutions??[]){let l=a.from.family.trim().toLowerCase(),u=a.to.family.trim().toLowerCase(),c=[t.alternates.get(l),t.fallbacks.get(l)].some(f=>{let d=f?.trim().toLowerCase();return d!==void 0&&d!==l&&(d===u||s.get(d)===u)});u!==l&&!i.has(l)&&c&&!(n.resolve(a.from)instanceof d)&&r.add(a.from.family.toLowerCase());}return r}function an(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===pa)?.value}var ln=new Set(["document","hdr","ftr","footnotes","endnotes","comments","styles","numbering","glossaryDocument"]),un=new Set(["t","delText","instrText","delInstrText"]),cn=2e6;function fn(e,t){let n=e.stylesRoot(),o=e.documentThemeFonts(),r=[...F(n),...n?Md(n).run:[]],i=ma(r,o),s=a$1(i.fontFamily??void 0)??t,a=a$1(Qc([{text:"\xE9",props:r,style:i,start:0,end:1}],o)[0]?.style.fontFamily??void 0)??s,l=a$1(i.fontFamilyEastAsia??void 0),u=a$1(i.complexLane?.fontFamily??void 0)??o.minorBidi??t,c=bt(e.currentPackage()),f=g=>c.get(g.trim().toLowerCase())??Q$1(g),d=(g,E)=>{let F=f(g);if(!F)return E;let M=f(E);return M===void 0||M===F?E:R[F]},y=new Map,v=new Map,T=0;for(let g of e.currentPackage().parts.values()){if(g.root.namespaceUri!==pa||!ln.has(g.root.localName))continue;let E=[g.root];for(;E.length>0&&T<cn;){T++;let F=E.pop();if(F.kind!=="textValue"){if(F.namespaceUri===pa){if(un.has(F.localName))continue;if(F.localName==="rFonts"){for(let[M,R]of [["ascii",s],["hAnsi",a],["eastAsia",l],["cs",u]]){let D=a$1(b$2(an(F,M))??void 0);if(!D||!R)continue;let h=D.trim().toLowerCase(),k=y.get(h)??new Set,X=M==="ascii"||M==="hAnsi",q=X?d(D,R):R;if(k.add(q),y.set(h,k),X&&f(D)){let B=v.get(h)??new Set;B.add(q),v.set(h,B);}}continue}}for(let M of F.children)E.push(M);}}}for(let g of a$2)y.delete(g);let C=new Map,P=[];for(let[g,E]of y){let F=v.get(g);E.size===1?C.set(g,[...E][0]):F?.size===1?C.set(g,[...F][0]):P.push(g);}return {fallbacks:C,ambiguousFamilies:P,defaults:new Map([...y].map(([g,E])=>[g,[...E]]))}}function dn(e,t,n=[],o="Calibri"){let r=wt(e.currentPackage()),i=fn(e,o),s=t.flatMap(u=>{let c=r.get(u.trim().toLowerCase());return c?[c]:[]}),a=new Map,l=t.flatMap(u=>i.defaults.get(u.trim().toLowerCase())??[]).filter(u=>u.trim().toLowerCase()!==o.trim().toLowerCase());for(let u of [...t,...s,...n,...l]){let c=a$1(u);if(c&&!a.has(c.trim().toLowerCase())&&a.set(c.trim().toLowerCase(),c),a.size===st)break}return {families:[...a.values()],alternates:r,fallbacks:i.fallbacks,ambiguousFamilies:i.ambiguousFamilies}}function vo(e,t,n){let o=re(n),r=dn(e,t,[],o);return {plan:r,request:{families:r.families,defaultFamily:o}}}function _o(e,t,n=t.fallbacks){let o=new Map(e.sources.map(u=>[h(u.request),u.request])),r=[],i=new Set((e.substitutions??[]).map(u=>h(u.from))),s=new Map((e.substitutions??[]).map(u=>[h(u.from),u])),a=u=>{let c=o.get(h(u));if(c)return {to:c};let f=s.get(h(u)),d=f&&o.get(h(f.to));if(!(!f||!d))return f.lineMetrics?{to:d,lineMetrics:f.lineMetrics}:{to:d}},l=Math.max(0,b-i.size);for(let u of t.families){let c=u.trim().toLowerCase(),f=t.alternates.get(c),d=n.get(c),y=oe$1(u);for(let v of [400,700])for(let T of ["normal","italic"]){let C={family:u,weight:v,style:T};if(o.has(h(C)))continue;let P=s.has(h(C));for(let g of P?[y,f]:[y,f,d]){if(!g||g.trim().toLowerCase()===c)continue;let E={family:g,weight:v,style:T},F=o.get(h(E)),M=P?F?{to:F}:void 0:a(E);if(!M)continue;if(!i.has(h(C))){if(l===0)break;l--;}let R=O(u)?.em;r.push({from:C,...M,...R?{lineMetrics:R}:{}});break}}}return oe({...e,substitutions:[...r,...e.substitutions??[]]})}function Lo(e,t,n){let o=new Set((e.substitutions??[]).map(i=>h(i.from))),r=new Set;for(let i of t.substitutions??[]){if(o.has(h(i.from)))continue;let s=i.from.family.trim().toLowerCase(),a=i.to.family.trim().toLowerCase();[n.alternates.get(s),n.fallbacks.get(s)].some(u=>u?.trim().toLowerCase()===a)||r.add(s);}return r}function No(e,t){let n=new Map;for(let[o,r]of e)t(o)||n.set(o,r);return n}var mn={regular:{weight:400,style:"normal"},bold:{weight:700,style:"normal"},italic:{weight:400,style:"italic"},boldItalic:{weight:700,style:"italic"}};function Do(e,t){let n=[],o=[],r=0;for(let i of e){let s=i.bytes.byteLength;if(!Number.isSafeInteger(s)||s>t||s>a||s>c-r){o.push(i);continue}r+=s,n.push(i);}return {sources:n,dropped:o}}function Bo(e,t,n){let o=t.reduce((i,s)=>i+s.bytes.byteLength,0),r=new Set(t.filter(i=>i.request.family.trim().length>0).map(i=>h(i.request)));return gn(e,{maxFontBytes:n,aggregateBudget:Math.max(0,c-o),shadowedRequests:r})}function gn(e,t){let n=[],o=[],r=t.aggregateBudget,i=new Set;for(let s of e){let a=mn[s.style],l=Object.freeze({family:s.family,weight:a.weight,style:a.style});if(s.family.trim().length===0){o.push({request:l,partName:s.partName,reason:"malformed"});continue}let u=h(l);if(!(t.shadowedRequests?.has(u)||i.has(u))){if(i.add(u),s.bytes.byteLength>t.maxFontBytes||s.bytes.byteLength>r){o.push({request:l,partName:s.partName,reason:"overLimit"});continue}r-=s.bytes.byteLength,n.push({request:l,id:`embedded:${s.partName}#${s.style}`,bytes:s.bytes,hash:f$1(s.bytes),faceIndex:0});}}return {sources:n,dropped:o}}
2
+ export{go as A,tn as B,po as C,Mo as D,dn as E,vo as F,_o as G,Lo as H,No as I,Do as J,Bo as K,gn as L,Y as a,hn as b,st as c,de as d,bn as e,oe as f,re as g,J as h,ut as i,Mt as j,ct as k,me as l,vt as m,pt as n,Rn as o,kn as p,ye as q,Fe as r,Tn as s,Mn as t,In as u,Vn as v,le as w,ue as x,Zt as y,to as z};
@@ -0,0 +1,4 @@
1
+ 'use strict';var chunk3OKDY5TX_cjs=require('./chunk-3OKDY5TX.cjs'),chunkATU65CUF_cjs=require('./chunk-ATU65CUF.cjs'),chunkNPPHSBFT_cjs=require('./chunk-NPPHSBFT.cjs'),chunkXPBKJQTG_cjs=require('./chunk-XPBKJQTG.cjs');var an=24,Ye=.25,Mr=512,Lr=(t,e,n,o)=>{let i=t.body;if(!i)return 0;let r=t.createElement("span");r.setAttribute("aria-hidden","true");let a=r.style;a.position="absolute",a.left="-100000px",a.top="0",a.visibility="hidden",a.whiteSpace="pre",a.letterSpacing="0",a.fontKerning="none",e.family&&(a.fontFamily=e.family),a.fontStyle=e.style,a.fontSize=`${e.sizePx}px`,a.fontWeight=n,r.textContent=o,i.append(r);let s=r.getBoundingClientRect().width;return r.remove(),s},sn=Lr,Ar=0,ln=new WeakMap;function Ze(t,e){let n=t.style,o=Number.parseFloat(n.fontSize);if(!(o>0))return 0;let i=Math.max(Ye,Math.round(o/Ye)*Ye),r={family:n.fontFamily,style:n.fontStyle||"normal",sizePx:i},a=t.ownerDocument,s=a.fonts?.status==="loading",l=`${Ar}|${s?"loading":""}|${r.style}|${i}|${r.family}`,d=ln.get(a),c=d?.get(l);if(c!==void 0)return c;let p=Tr(e.text);if(p.count===0)return 0;let u=0;try{let y=sn(a,r,"700",p.text),f=sn(a,r,"599",p.text);u=(y-f)/p.count;}catch{u=0;}return (!Number.isFinite(u)||u<0||u>i*.2)&&(u=0),d||ln.set(a,d=new Map),d.size>=Mr&&d.clear(),d.set(l,u),u}function Tr(t){let e=chunkATU65CUF_cjs.rc(t).slice(0,an+1),n="",o=Math.min(an,e.length);for(let i=0;i<o;i++){let r=e[i],a=e[i+1]??t.length;n+=t.slice(r,a).replace(/[\s​-‍⁠]+$/u,"");}return {text:n,count:o}}function Je(t,e){return Br(t,e)?"wordSpacing":pn(t,e)&&$r(t,e)?"letterSpacing":null}function $r(t,e){return !(t.projected||t.equation||t.unsupported||e.projected||t.glyphOffsetPt!==void 0||t.range.paragraphId!==e.range.paragraphId||t.range.end!==e.range.start||t.range.end-t.range.start!==t.text.length||t.style.horizontalScalePercent!==100||(e.wrapAdvanceBefore??0)>.001||t.text.trim()===""||chunkATU65CUF_cjs.ya(t.text).length!==1)}function dn(t,e,n,o){return `${ue(t,e,o)+n*o}px`}var Hr=new Set(["Adlm","Arab","Chrs","Mand","Mani","Mong","Nkoo","Ougr","Phag","Phlp","Rohg","Sogd","Syrc"]);function O(t){if(!t.syntheticBold)return 0;let e=t.style.shaping?.script;return e!==void 0&&Hr.has(e)?0:chunkATU65CUF_cjs.oc(t.style)}function ue(t,e,n,o=1){let i=e.style.characterSpacingPt*n/o,r=O(e);return r===0?i:i+r*n-Ze(t,e)}function cn(t,e,n){let o=O(e);o!==0&&(t.style.letterSpacing=`${ue(t,e,n)}px`,t.style.wordSpacing=`${-o*n}px`);}function un(t,e,n,o,i){if(!o.projected||O(o)===0)return;let r=n.textContent??"",a=chunkATU65CUF_cjs.sc(r);if(a.length===0)return;let s=Ze(e,o),l=[],d=0;for(let c of a){c.from>d&&l.push(t.createTextNode(r.slice(d,c.from)));let p=t.createElement("span");p.style.letterSpacing=`${o.style.characterSpacingPt*i-s}px`,p.textContent=r.slice(c.from,c.to),l.push(p),d=c.to;}d<r.length&&l.push(t.createTextNode(r.slice(d))),n.replaceChildren(...l);}var Cr=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function Br(t,e){let n=chunkATU65CUF_cjs.Gb(t.text);return !n.endsWith(" ")||t.style.horizontalScalePercent!==100||!pn(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!Cr.test(n.slice(0,-1))}function pn(t,e){return !t.link&&!e.link?true:!t.link||!e.link||t.link.id!==e.link.id||!!t.fieldAtom!=!!e.fieldAtom?false:!t.fieldAtom||Ae(t)===Ae(e)}function Ae(t){return t.fieldAtom?.resultStart??t.range.start}function Qe(t,e){let n=e.box.x-(t.box.x+t.box.width),o=e.wrapAdvanceBefore??0;if(n-o>.001)return n-o;let i=!((t.style.shaping?.level??0)%2||(e.style.shaping?.level??0)%2);return n<-1e-3&&o<=.001&&i&&chunkATU65CUF_cjs.Gb(t.text).endsWith(" ")?n:0}var Dr=0,Te=Symbol.for("@docx-editor.dev/unsupported-element-host");function pe(t){return t[Te]}var Fr="[data-docx-unsupported]",et=Symbol.for("@docx-editor.dev/unsupported-element-listeners");function yn(t){for(let e=t;e;e=e.parentElement)for(let n of e[et]??[])n();}var tt=Symbol.for("@docx-editor.dev/unsupported-element-focus");function fn(t){let e=t.ownerDocument.activeElement,n=e?.closest(".docx-unsupported-slot");!e||!n||!t.contains(n)||(n[tt]={element:e,start:e.selectionStart??null,end:e.selectionEnd??null,direction:e.selectionDirection??"none"});}function Ir(t){let e=t[tt];if(!e)return;delete t[tt];let n=e.element;if(!n.isConnected||!t.contains(n))return;let o=t.ownerDocument,i=o.activeElement;i&&i!==n&&i!==o.body&&i!==o.documentElement&&!i.classList.contains("docx-pages")||(n.focus({preventScroll:true}),e.start!==null&&e.end!==null&&n.setSelectionRange?.(e.start,e.end,e.direction));}function Nr(t){for(let e of t.childNodes)if(e.nodeType===1||e.nodeType===3&&e.nodeValue?.trim())return true;return false}function W(t,e,n,o,i=""){t.dataset.docxUnsupported=n.localName,i&&(t.dataset.docxUnsupportedOccurrence=i),t.setAttribute("contenteditable","false");let r=t.ownerDocument.createElement("span");r.className="docx-unsupported-slot";for(let y of ["pointerdown","mousedown","click","keydown","beforeinput","copy","cut","paste","compositionstart","compositionend","contextmenu","dragenter","dragover","dragleave","drop"])r.addEventListener(y,f=>f.stopPropagation());t.append(r);let a,s=false,l=null,d=()=>pe(t)?.slot??r,c=new t.ownerDocument.defaultView.MutationObserver(()=>p()),p=()=>{if(pe(t)?.fallback!==e)return;let y=d();l!==y&&(c.disconnect(),c.observe(y,{childList:true,subtree:true,characterData:true}),l=y);let f=s&&Nr(y);if(e.hidden=f,t.toggleAttribute("data-docx-customized",f),!!o){if(f)a??={role:o.getAttribute("role"),hidden:o.getAttribute("aria-hidden")},o.setAttribute("role","group"),o.removeAttribute("aria-hidden");else if(a){for(let[h,g]of [["role",a.role],["aria-hidden",a.hidden]])g===null?o.removeAttribute(h):o.setAttribute(h,g);a=void 0;}}},u={key:`unsupported-${Dr++}`,element:t,fallback:e,slot:r,unsupported:n,setCustomized(y){pe(t)?.fallback===e&&(s=y,p());}};Object.defineProperty(t,Te,{value:u,configurable:true});}function Or(t,e){let n,o=new Map,i=()=>{let d=[],c=new Map,p=new Map;for(let u of t.querySelectorAll(Fr)){let y=pe(u);if(!y)continue;let f=u.closest(".docx-pages")??t,h=u.closest("[data-page-index]")?.getAttribute("data-page-index")??"",g=JSON.stringify([y.unsupported.ownerPartName,y.unsupported.namespaceUri,y.unsupported.localName,y.unsupported.nodeId,h,u.getAttribute("data-docx-unsupported-occurrence")??""]),m=p.get(g)??0;p.set(g,m+1);let k=`${g}:${m}`,S=o.get(k);S&&S.scope===f&&S.host!==y&&(y.slot.replaceWith(S.host.slot),y={...y,key:S.host.key,slot:S.host.slot},Object.defineProperty(u,Te,{value:y,configurable:true}),S.host.element.hasAttribute("data-docx-customized")&&y.setCustomized(true)),d.push(y),c.set(k,{host:y,scope:f});}o=c,queueMicrotask(()=>{for(let u of d)Ir(u.slot);}),!(n&&d.length===n.length&&d.every((u,y)=>u===n[y]))&&(n=d,e(d));},r=t.ownerDocument.defaultView.MutationObserver,a=new r(i);a.observe(t,{childList:true,subtree:true});let s=t,l=s[et]??=new Set;return l.add(i),i(),()=>{a.disconnect(),l.delete(i),l.size===0&&delete s[et];}}function $e(t){let e=pe(t);e?.setCustomized(false),e?.slot.remove(),delete t.dataset.docxUnsupported,delete t.dataset.docxCustomized,Reflect.deleteProperty(t,Te);}function Ya(t){return !!t?.closest?.(".docx-unsupported-slot")}function hn(t,e,n,o){let i=t.createElement("span");i.className="layout-run docx-unsupported-content",i.setAttribute("contenteditable","false"),i.style.display="inline-block",i.style.position="relative",i.style.width=`${e.width*o}px`,i.style.height=`${e.height*o}px`,i.style.verticalAlign="bottom",i.style.pointerEvents="auto";let r=t.createElement("span");return r.textContent=e.element.label,i.append(r),W(i,r,{...e.element,bounds:n}),i}function ye(t,e,n,o,i,r){let a=chunkATU65CUF_cjs.kb(e,n);if(a.background==="byAuthor"&&!r?(t.style.setProperty("--doc-revision-background",`color-mix(in srgb, ${o} 15%, var(--doc-revision-color-white))`),t.style.backgroundColor="var(--doc-revision-background)"):a.background!=="none"&&(t.style.backgroundColor=a.background==="byAuthor"?r:chunkATU65CUF_cjs.jb(a.background,o)),a.mark==="none")return;let s=chunkATU65CUF_cjs.jb(a.color,i??o);a.color!=="auto"&&(t.style.color=s),a.mark==="bold"&&(t.style.fontWeight="bold"),a.mark==="italic"&&(t.style.fontStyle="italic");let l=a.mark==="underline"||a.mark==="doubleUnderline"?"underline":a.mark==="strikethrough"||a.mark==="doubleStrikethrough"?"line-through":void 0;l&&(t.style.textDecorationLine=l,t.style.textDecorationStyle=a.mark.startsWith("double")?"double":"solid",t.style.textDecorationColor=s,l==="underline"&&(t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"));}var mn=new WeakMap;function Ur(t){let e=null;for(let n of t)if(!(n.localName!=="rPrChange"&&n.localName!=="pPrChange")){e=n.attributes?.author??"";break}return e}function fe(t){let e=chunkATU65CUF_cjs.ig(t),n=mn.get(e);if(n)return n;let o=[],i=new Set,r=true,a=u=>{u===""||i.has(u)||(i.add(u),o.push(u));},s=u=>{for(let f of u.props)f.localName==="pPrChange"&&a(f.attributes?.author??"");for(let f of u.lines){if(f.changeSites)for(let h of f.changeSites)a(h.author);for(let h of f.spans){let g=h.revisions;if(g!==void 0)for(let k=0;k<g.length;k+=1)a(g[k].author);let m=Ur(h.props);m!==null&&a(m);}}for(let f of u.lines){let h=f.drawings;if(h!==void 0)for(let g=0;g<h.length;g+=1){let m=h[g].revisions;if(m!==void 0)for(let S=0;S<m.length;S+=1)a(m[S].author);let k=h[g].accessibility.hidden?void 0:h[g].textboxStory;if(k)for(let S of fe(k.fragments).authors)a(S);}}let y=u.markRevisions;if(y)for(let f=0;f<y.length;f+=1)a(y[f].author);},l=u=>{u.marker?.picture&&(r=false);for(let y of u.lines)(y.drawings?.length??0)>0&&(r=false);},d=[],c=(u,y)=>{for(let f of u){if(f.kind==="paragraph"){y&&s(f),r&&l(f);continue}for(let h of f.rows){let g=y&&!h.isHeaderRepeat;for(let m of h.cells)m.revisionShadingAuthor&&d.push(m.revisionShadingAuthor),c(m.blocks,g);}}};c(t,true);for(let u of d)a(u);let p={authors:o,drawingFree:r};return mn.set(e,p),p}var C=8,bn={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},xn=Object.keys(bn),_r=xn.filter(t=>bn[t]==="painted"),Gr=new Set(["http","https","data","blob"]),zr=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function Kr(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let n=zr.exec(e);if(n)return !Gr.has(n[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let o=i=>e[i]==="/"||e[i]==="\\";return o(0)&&o(1)?void 0:e}function jr(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},n=Object.prototype.hasOwnProperty;for(let o of xn){if(!n.call(t,o))continue;let i=t[o];if(!(typeof i!="string"||i.length===0)){if(o==="avatarUrl"){let r=Kr(i);r!==void 0&&(e.avatarUrl=r);continue}e[o]=i;}}return Object.keys(e).length>0?e:null}function B(t){return `var(--doc-review-author-${t%C})`}function vn(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[n,o]of Object.entries(t.authors)){let i=jr(o);i&&e.set(n,i);}return e}function os(t,e){let n=vn(e);return [...t].map(([o,i])=>{let r=n.get(o);return {author:o,slot:i,color:r?.color??B(i),...r?{style:r}:{}}})}var Wr=128;function He(t,e,n=Wr){let o=e.length<n?e.length:n,i=t;for(let r=0;r<o;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function Vr(t,e,n){let o=He(2166136261,n);for(let i of t.keys())o=He(o,i);for(let[i,r]of e){o=He(o,i);for(let a of _r)o=He(o,r[a]??"",1/0);}return `${t.size}.${e.size}.${(o>>>0).toString(36)}`}function ot(t){return t===null?"kind":t.key}var nt=new WeakMap;function rt(t,e,n){if(t==="kind")return null;let o=nt.get(e);if(o&&o.option===t&&o.authorSlots===n)return o.context;let i=vn(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return nt.set(e,{option:t,authorSlots:n,context:null}),null;let a=n??qr(e),s=new Map;for(let[d,c]of i){if(!c.spanClassName)continue;let p=c.spanClassName.split(/\s+/).filter(u=>u.length>0);p.length>0&&s.set(d,p);}let l={authorSlots:a,styles:i,classTokens:s,others:r,key:Vr(a,i,r)};return nt.set(e,{option:t,authorSlots:n,context:l}),l}function Xr(t){return fe(t).authors}var gn=new WeakMap;function qr(t){let e=gn.get(t);if(e)return e;let n=new Map,o=i=>{for(let r of Xr(i))n.has(r)||n.set(r,n.size);};for(let i of t.pages){o(i.fragments),i.header&&o(i.header.fragments),i.footer&&o(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&o(r.separator.fragments),r.continuationNotice&&o(r.continuationNotice.fragments);for(let a of r.notes)o(a.fragments);}for(let r of [i.anchoredDrawings,i.header?.anchoredDrawings,i.footer?.anchoredDrawings])if(r)for(let a of r){if(a.accessibility.hidden)continue;let s=a.revisions;if(s!==void 0)for(let l=0;l<s.length;l+=1){let d=s[l].author;d!==""&&!n.has(d)&&n.set(d,n.size);}a.textboxStory&&o(a.textboxStory.fragments);}}return gn.set(t,n),n}function Yr(t,e){let n=null;for(let o of e)o===""||t.has(o)||(n===null&&(n=new Map(t)),n.has(o)||n.set(o,n.size));return n??t}function rs(){let t=new Map,e=0;return {resolve(n,o){let i=Yr(n,o);for(let r of i.keys())t.has(r)||(t.set(r,e),e+=1);return new Map([...i.keys()].map(r=>[r,t.get(r)]).sort((r,a)=>r[1]-a[1]))}}}function Q(t,e,n){if(t===void 0||t.length===0)return null;let o=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=o.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:o,line:i&&a==="underline"?"line-through":a,decorationStyle:r==="moveFrom"||r==="moveTo"?"double":"solid",color:i?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)",authorColor:n?.get(o.author)?.color??B(e?.get(o.author)??0),deleted:i}}function he(t,e=false){let n=t.spans.find(r=>r.style.shaping)?.style.shaping?.baseLevel,o=n===void 0?e:n===1,i=chunkATU65CUF_cjs.vc(t.spans,t.drawings??[]);return i?{x:o?i.left:i.right,rtl:o}:{x:t.contentX,rtl:o}}function it(t,e,n,o,i,r,a){let s=a??he(n,o),l=e.ownerDocument.createElement("span");l.className="docx-terminator-seat",l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.contentX)*r}px`,l.style.bottom=`${Math.max(0,n.box.height-n.baseline)*r}px`,l.style.width="0",l.style.fontSize="0",l.style.lineHeight="0",l.style.whiteSpace="pre",l.style.pointerEvents="none",l.style.userSelect="none",s.rtl&&(l.style.direction="rtl"),t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.fontSize=`${i*r}px`,l.append(t),e.append(l);}function at(t,e,n){let o=Q(e,n?.authorSlots,n?.styles);if(!o)return;let{attribution:i}=o,r=n?.styles.get(i.author),a=n&&(r?.color!==void 0||n.others==="author");if(t.style.color=a?o.authorColor:o.color,t.dataset.revisionKind=i.kind,t.dataset.revisionId=i.id,t.dataset.reviewAuthor=i.author,n){t.dataset.reviewAuthorSlot=String((n.authorSlots.get(i.author)??0)%C);for(let s of n.classTokens.get(i.author)??[])t.classList.add(s);}o.line&&(t.style.textDecorationLine=o.line,t.style.textDecorationStyle=o.decorationStyle,t.style.textDecorationColor=t.style.color);}function Sn(t,e,n,o,i,r=false){let a=t.createElement("span"),s=e.spans[e.spans.length-1];a.className="docx-line-break-mark",a.dataset.docxMarker="",a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.textContent="\u21B5",a.style.pointerEvents="none",a.style.userSelect="none",a.style.color="var(--doc-revision-format)",at(a,s?.revisions,i);let l=s?.style.fontSizePt??chunkATU65CUF_cjs.la.fontSizePt;it(a,n,e,r,l,o);}function kn(t,e,n,o,i=false){let r=chunkATU65CUF_cjs.tb(e);if(!r){let c=t.createElement("span");return c.className="docx-paragraph-mark",c.setAttribute("aria-hidden","true"),c.contentEditable="false",c.textContent="\xB6",c.style.pointerEvents="none",c.style.color="var(--doc-revision-format)",c}let a=t.createElement("span");a.className=`docx-paragraph-mark docx-revision-pmark docx-revision-pmark-${r.kind}`,a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.dataset.revisionKind=r.kind,a.dataset.revisionId=r.id,r.author!==""&&(a.dataset.reviewAuthor=r.author),a.dataset.revisionIds=e.map(c=>c.id).join(" "),a.dataset.revisionKinds=e.map(c=>c.kind).join(" "),a.textContent="\xB6",a.style.pointerEvents="none";let s=chunkATU65CUF_cjs.ub(r),l=n?.styles.get(r.author),d=n?(n.authorSlots.get(r.author)??0)%C:0;if(n){a.dataset.reviewAuthorSlot=String(d);let c=n.classTokens.get(r.author);if(c)for(let p=0;p<c.length;p+=1)a.classList.add(c[p]);}if(a.style.color=l?.color??(n?.others==="author"?B(d):s?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),o){let c=a.style.color;a.style.color="";let p=chunkATU65CUF_cjs.kb(o,r.kind).mark;p==="hidden"&&(a.style.visibility="hidden"),p==="caret"&&(a.textContent="^"),p==="pound"&&(a.textContent="#"),ye(a,o,r.kind,l?.color??B(d),i||n?.others==="kind"||l?.color?c:void 0,l?.background);}else s&&(a.style.textDecorationLine="line-through");return a}function Ce(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===Array.prototype||e===null}function st(t,e,n,o){if(t===e)return true;if(typeof t!="object"||typeof e!="object"||t===null||e===null||n>32||!Ce(t)||!Ce(e)||o&&--o.remaining<0)return false;let i=Array.isArray(t);if(i!==Array.isArray(e))return false;if(i){let r=t,a=e;if(r.length!==a.length)return false;for(let s=0;s<r.length;s+=1)if(!st(r[s],a[s],n+1,o))return false;return true}return wn(t,e,void 0,n,o)}function wn(t,e,n,o,i){let r=t,a=e,s=0;for(let l in r)if(!(!Object.hasOwn(r,l)||n?.has(l))){if(!Object.hasOwn(a,l)||!st(r[l],a[l],o+1,i))return false;s+=1;}for(let l in a)Object.hasOwn(a,l)&&!n?.has(l)&&(s-=1);return s===0}function F(t,e,n){return t===e?true:!Ce(t)||!Ce(e)?false:wn(t,e,n,0)}function Rn(t,e,n){return st(t,e,0,{remaining:n})}var Zr=/^[0-9A-Fa-f]{6}$/,Jr=new Set(["box","lines","shadingBox","marker"]),Qr=new Set(["box","contentX","spans"]),Pn=new Set(["box"]);function ee(t,e,n,o,i,r){let a=(o.x-i.x)*r;a!==(e.x-n.x)*r&&(t.left=`${a}px`);let s=(o.y-i.y)*r;s!==(e.y-n.y)*r&&(t.top=`${s}px`),o.width!==e.width&&(t.width=`${o.width*r}px`),o.height!==e.height&&(t.height=`${o.height*r}px`);}function En(t,e){return he(t,e).x-t.contentX}function ei(t,e,n,o,i){if((e.drawings?.length??0)>0||t.box.height!==e.box.height||t.spans.length!==e.spans.length||!F(t,e,Qr))return false;for(let r=0;r<e.spans.length;r+=1){let a=t.spans[r],s=e.spans[r];if(s.tabLeader||s.noteSeparator||s.style.shaping||s.style.border||a.box.width!==s.box.width||a.box.height!==s.box.height||!F(a,s,Pn)||r>0&&n(t,r)!==n(e,r))return false}return !o||En(t,i)===En(e,i)}function ti(t,e,n){if(e.borders||e.bottomBorder||e.marker?.picture||t.box.height!==e.box.height||t.lines.length!==e.lines.length||!F(t,e,Jr)||t.shadingBox===void 0!=(e.shadingBox===void 0)||t.shadingBox&&t.shadingBox.height!==e.shadingBox.height||t.marker===void 0!=(e.marker===void 0))return false;if(t.marker){let a=e.marker;if(t.marker.box.height!==a.box.height||!F(t.marker,a,Pn))return false}let o=chunkATU65CUF_cjs.Kf(e.props),i=e.lines.length-1,r=n.showParagraphMarks&&!!e.paragraphEnd||(e.markRevisions?.length??0)>0;for(let a=0;a<=i;a+=1){let s=e.lines[a],l=n.showParagraphMarks&&!!s.manualBreakAfter||a===i&&r;if(!ei(t.lines[a],s,n.gapOf,l,o))return false}return true}function Mn(t,e,n,o){if(!ti(e,n,o))return false;let i=o.scale,r=!!(n.shading&&Zr.test(n.shading)&&n.shadingBox),a=n.marker!==void 0,s=(r?1:0)+(a?1:0),l=t.children;if(l.length!==s+n.lines.length)return false;for(let d=0;d<n.lines.length;d+=1)if(l[s+d].dataset.lineId!==n.lines[d].id)return false;if(r&&!l[0].classList.contains("docx-paragraph-shading")||a&&!l[s-1].classList.contains("docx-list-marker"))return false;if(r){let d=l[0];ee(d.style,e.shadingBox,e.box,n.shadingBox,n.box,i);}if(a){let d=l[s-1];ee(d.style,e.marker.box,e.box,n.marker.box,n.box,i);}for(let d=0;d<n.lines.length;d+=1){let c=e.lines[d],p=n.lines[d],u=l[s+d],y=(p.box.y-n.box.y)*i;y!==(c.box.y-e.box.y)*i&&(u.style.top=`${y}px`);let f=(p.contentX-n.box.x)*i;f!==(c.contentX-e.box.x)*i&&(u.style.left=`${f}px`);}return true}var lt=new WeakMap,Be=new WeakMap;function An(t,e,n){lt.set(t,{fragment:e,rows:n});}function dt(t,e,n,o,i){Be.set(t,{cell:e,host:n,strokes:o,blocks:i});}function Tn(t,e){for(let[n,o]of t)if(n.kind==="table"&&n.tableId===e.tableId&&n.fragmentIndex===e.fragmentIndex)return o}var ni=new Set(["rows","box","columnEdges"]),oi=new Set(["box","cells"]),ri=new Set(["box","blocks","borders"]),ii=new Set(["strokes","edgeSegments"]),De=[];function ct(t,e,n){let o=t.children[n]??null,i=0;for(;i<e.length&&o===e[i];)o=o.nextElementSibling,i+=1;if(i===e.length&&o===null)return;let r=new Set(e);for(;o;){let a=o.nextElementSibling;r.has(o)||o.remove(),o=a;}o=t.children[n+i]??null;for(let a=i;a<e.length;a+=1){let s=e[a];s===o?o=o.nextElementSibling:t.insertBefore(s,o);}}function ai(t,e,n){if(t===e)return true;if(t?.diagonals!==e?.diagonals&&((t?.diagonals?.length??0)>0||(e?.diagonals?.length??0)>0)||!t||!e||!F(t,e,ii))return false;let o=t.strokes??De,i=e.strokes??De;if(o.length!==i.length||i.length>0&&n?.length!==i.length)return false;for(let r=0;r<i.length;r+=1){let a=o[r],s=i[r];if(a.side!==s.side||a.role!==s.role||a.color!==s.color||a.cssStyle!==s.cssStyle)return false;let l=s.side==="top"||s.side==="bottom";if(s.cssStyle!=="solid"&&(l?a.height!==s.height:a.width!==s.width))return false}return true}function si(t,e,n,o){let i=e?.strokes??De,r=n?.strokes??De;if(!(i===r||!t))for(let a=0;a<r.length;a+=1){let s=i[a],l=r[a],d=t[a].style;s.x!==l.x&&(d.left=`${l.x*o}px`),s.y!==l.y&&(d.top=`${l.y*o}px`),s.width!==l.width&&(d.width=`${l.width*o}px`),s.height!==l.height&&(d.height=`${l.height*o}px`);}}function li(t,e,n){return t[n]?.id===e?n:t.findIndex(o=>o.id===e)}function di(t,e,n){let o=t.cell,i=n.scale,r=new Set,a=[];for(let s=0;s<e.blocks.length;s+=1){let l=e.blocks[s],d=li(o.blocks,l.id,s),c=d<0||r.has(d)?void 0:o.blocks[d],p=c?t.blocks[d]:void 0;if(c&&r.add(d),c&&p&&(c===l||c.kind==="paragraph"&&l.kind==="paragraph"&&Mn(p,c,l,n))){ee(p.style,c.box,o.box,l.box,e.box,i),a.push(p);continue}let u=l.kind==="table"&&c?.kind==="table"?n.block(l,p):n.block(l);u.style.left=`${(l.box.x-e.box.x)*i}px`,u.style.top=`${(l.box.y-e.box.y)*i}px`,a.push(u);}return a}function ci(t,e,n,o,i,r){let a=Be.get(t);if(!a||a.cell!==e)return null;if(e!==o){if(!F(e,o,ri))return null;if(o.paintInert||o.vMergeContinue)Be.set(t,{...a,cell:o});else {if(o.textDirection==="btLr"&&(e.box.width!==o.box.width||e.box.height!==o.box.height)||!ai(e.borders,o.borders,a.strokes))return null;let l=a.host,d=l.children.length-a.blocks.length;if(d<0)return null;for(let p of a.blocks)if(p.parentElement!==l)return null;si(a.strokes,e.borders,o.borders,r.scale);let c=di(a,o,r);ct(l,c,d),Be.set(t,{cell:o,host:l,strokes:a.strokes,blocks:c});}}return ee(t.style,e.box,n,o.box,i,r.scale),t}function ui(t,e,n,o,i,r){if(e!==o){if(!F(e,o,oi))return null;let a=t.children;if(a.length!==e.cells.length)return null;let s=new Set,l=[];for(let d=0;d<o.cells.length;d+=1){let c=o.cells[d],p=e.cells[d]?.id===c.id?d:e.cells.findIndex(y=>y.id===c.id),u=p>=0&&!s.has(p)?ci(a[p],e.cells[p],e.box,c,o.box,r):null;u&&s.add(p),l.push(u??r.cell(c,o.box));}ct(t,l,0);}return ee(t.style,e.box,n,o.box,i,r.scale),t}function Ln(t){return `${t.id}\0${t.isHeaderRepeat?1:0}${t.isContinuation?1:0}`}function $n(t,e,n){let o=lt.get(t);if(!o)return null;let i=o.fragment;if(!F(i,e,ni))return null;let r=new Map;for(let[d,c]of o.rows){let p=Ln(d);r.set(p,r.has(p)?null:[d,c]);}let a=new Map;for(let d of e.rows){let c=Ln(d),p=r.get(c);r.delete(c);let u=p?ui(p[1],p[0],i.box,d,e.box,n):null;a.set(d,u??n.row(d));}let s=n.scale,l=t.style;return i.box.x!==e.box.x&&(l.left=`${e.box.x*s}px`),i.box.y!==e.box.y&&(l.top=`${e.box.y*s}px`),i.box.width!==e.box.width&&(l.width=`${e.box.width*s}px`),i.box.height!==e.box.height&&(l.height=`${e.box.height*s}px`),ct(t,[...a.values()],0),lt.set(t,{fragment:e,rows:a}),t}function Fe(t,e,n){let o=chunkATU65CUF_cjs.wb(e.props)??n.paragraphFormatRevision,i=n.revisionStyles,r=Q(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!o)){if(r){let{attribution:a}=r;t.classList.add("docx-revision",`docx-revision-${a.kind}`),t.dataset.revisionKind=a.kind,t.dataset.revisionId=a.id,a.author!==""&&(t.dataset.reviewAuthor=a.author),a.date!==void 0&&(t.dataset.revisionDate=a.date);let s=i?.styles.get(a.author);if(i){t.dataset.reviewAuthorSlot=String((i.authorSlots.get(a.author)??0)%C);let c=i.classTokens.get(a.author);if(c)for(let p=0;p<c.length;p+=1)t.classList.add(c[p]);}let d=i!==void 0&&(s?.color!==void 0||i.others==="author")?r.authorColor:r.color;if(n.revisionMarkup){s?.background&&(t.style.backgroundColor=s.background),ye(t,n.revisionMarkup,r.deleted?e.revisions?.find(c=>c.kind==="delete"||c.kind==="moveFrom")?.kind??a.kind:a.kind,r.authorColor,n.revisionKindColors||i?.others==="kind"||s?.color?d:void 0,s?.background);return}t.style.color=d,t.style.backgroundColor=s?.background??(r.deleted?"var(--doc-revision-deletion-wash)":"var(--doc-revision-insertion-wash)"),r.line&&(t.style.textDecorationLine=r.line,a.kind==="insert"&&r.line==="underline"?(t.style.textDecorationStyle="var(--doc-revision-insertion-decoration-style)",t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"):t.style.textDecorationStyle=r.decorationStyle,t.style.textDecorationColor=d);return}if(t.classList.add("docx-revision",...n.revisionMarkup?[]:["docx-revision-format"]),t.dataset.revisionKind="format",t.dataset.formattingKind=chunkATU65CUF_cjs.wb(e.props)?"rPrChange":"pPrChange",t.dataset.revisionId=o.id,o.author!==""&&(t.dataset.reviewAuthor=o.author),o.date!==void 0&&(t.dataset.revisionDate=o.date),i){let a=i.styles.get(o.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(o.author)??0)%C);let s=i.classTokens.get(o.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);!n.revisionMarkup&&a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}n.revisionMarkup&&ye(t,n.revisionMarkup,"format",i?.styles.get(o.author)?.color??B(i?.authorSlots.get(o.author)??0),void 0,i?.styles.get(o.author)?.background);}}function Hn(t,e,n,o,i){if(e.spans.length!==0)return;i({...chunkATU65CUF_cjs.la,fontFamily:o.fontFamily,fontSizePt:o.fontSizePt,bold:o.bold,italic:o.italic});let r=t.ownerDocument.createElement("br");r.style.lineHeight=`${e.box.height*n}px`,t.append(r);}function Cn(t,e,n){let o=e.marker?.picture,i=n.urlRegistry;if(!o||o.resource.kind!=="ready"||!i)return null;let r=n.scale,a=i.urlForReady(o.resource.validatedHandle,o.resource.mime);if(a===null)return null;let s=o.box,l=t.createElement("span");l.className="docx-list-marker",l.dataset.docxMarker="",l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.x-e.box.x)*r}px`,l.style.top=`${(s.y-e.box.y)*r}px`,l.style.width=`${s.width*r}px`,l.style.height=`${s.height*r}px`,l.style.display="block",l.style.overflow="hidden";let d=t.createElement("img");return d.className="docx-list-marker-image",d.setAttribute("src",a),d.setAttribute("alt",""),d.setAttribute("draggable","false"),d.style.display="block",d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,d.style.maxWidth="none",d.style.maxHeight="none",l.append(d),l}function Bn(t,e,n,o){let i=t.createElement("span");i.dataset.docxNoteRule="single",i.setAttribute("contenteditable","false"),i.setAttribute("aria-hidden","true"),i.style.display="inline-block",i.style.position="relative",i.style.verticalAlign="top",i.style.width=`${e.box.width*o}px`,i.style.height=`${Math.min(e.box.height+(n.leading??0),n.box.height)*o}px`;let r=chunkATU65CUF_cjs.ng(e,n),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-n.box.y)*o}px`,a.style.width=`${r.width*o}px`,a.style.height=`${r.height*o}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function Ie(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function te(t,e,n,o,i,r){switch(e){case "dashed":case "dashSmallGap":case "dotDash":case "dotDotDash":case "dashDotStroked":{let a=Math.max(4,4*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"bottom":"right"}, #${n} 60%, transparent 60%)`,t.style.backgroundSize=o?`100% ${a}px`:`${a}px 100%`;return}case "dotted":{let a=Math.max(3,3*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"bottom":"right"}, #${n} 35%, transparent 35%)`,t.style.backgroundSize=o?`100% ${a}px`:`${a}px 100%`;return}case "triple":{let a=i/5,s=`#${n}`,l=(c,p,u)=>`${u} ${c*a}px, ${u} ${p*a}px`,d=[l(0,1,s),l(1,2,"transparent"),l(2,3,s),l(3,4,"transparent"),l(4,5,s)];t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, ${d.join(", ")})`;return}case "double":case "doubleWave":case "thinThickSmallGap":case "thickThinSmallGap":case "thinThickThinSmallGap":case "thinThickMediumGap":case "thickThinMediumGap":case "thinThickThinMediumGap":case "thinThickLargeGap":case "thickThinLargeGap":case "thinThickThinLargeGap":{t.style.backgroundColor="transparent";let a=r>0?chunkATU65CUF_cjs.S(e,i/r):null;if(a){let l=a.flatMap(d=>{let c=d.offsetPt*r,p=c+d.widthPt*r;return [`transparent ${c}px`,`#${n} ${c}px`,`#${n} ${p}px`,`transparent ${p}px`]});t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, ${l.join(", ")})`;return}let s=i/3;t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, #${n} 0px, #${n} ${s}px, transparent ${s}px, transparent ${s*2}px, #${n} ${s*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${n}`,o?t.style.width="0px":t.style.height="0px";return}default:return}}var pi=/^[0-9A-Fa-f]{6}$/;function Dn(t,e,n,o){for(let{box:i,edge:r,side:a}of chunkATU65CUF_cjs.Fd(n)){let s=r.color&&pi.test(r.color)?r.color:"000000",l=t.createElement("span");l.className=`docx-run-border docx-run-border-${a}`,l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),Object.assign(l.style,{position:"absolute",pointerEvents:"none",left:`${(i.x-n.contentX)*o}px`,top:`${(i.y-n.box.y)*o}px`,width:`${i.width*o}px`,height:`${i.height*o}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";te(l,r.val,s,d,(d?i.width:i.height)*o,o),e.append(l);}}function Fn(t,e){let n=e.fieldAtom?.formControl;if(n?.kind!=="dropdown"||n.entries.length===0)return;let o=t.ownerDocument.createElement("select");o.dataset.docxFormDropdown="",o.dataset.docxMarker="",o.setAttribute("aria-label",n.accessibleName??e.text);for(let[i,r]of n.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,o.append(a);}o.selectedIndex=n.selectedIndex,Object.assign(o.style,{position:"absolute",inset:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer",font:"inherit",padding:"0",border:"0"}),t.style.position="relative",t.append(o);}function In(t,e,n){let o=e.fieldAtom?.formControl;if(o?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(o.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(o.checked)),o.accessibleName&&t.setAttribute("aria-label",o.accessibleName),t.style.width=`${e.box.width*n}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}var me=Object.freeze({pageBreak:"Page break",columnBreak:"Column break",sectionBreakContinuous:"Section break (continuous)",sectionBreakNextPage:"Section break (next page)",sectionBreakEvenPage:"Section break (even page)",sectionBreakOddPage:"Section break (odd page)",sectionBreakNextColumn:"Section break (new column)"}),On=Object.keys(me);function _s(t){if(!t)return me;let e={};for(let n of On){let o=`formattingMarks.${n}`,i=t(o);e[n]=i&&i!==o?i:me[n];}return Object.freeze(e)}function Un(t){return On.map(e=>t[e]).join("\0")}function yi(t,e){return t==="page"?e.pageBreak:e.columnBreak}function fi(t,e){switch(t){case "continuous":return e.sectionBreakContinuous;case "evenPage":return e.sectionBreakEvenPage;case "oddPage":return e.sectionBreakOddPage;case "nextColumn":return e.sectionBreakNextColumn;default:return e.sectionBreakNextPage}}var hi=8;function mi(t,e){let n=he(t,e),o=t.box.x,i=t.box.x+t.box.width;return gi(t)?n.rtl?{left:Math.min(o,n.x),right:n.x,rtl:true}:{left:n.x,right:Math.max(i,n.x),rtl:false}:{left:o,right:i,rtl:n.rtl}}function gi(t){return chunkATU65CUF_cjs.vc(t.spans,t.drawings??[])?(t.drawings?.length??0)>0?true:t.spans.some(e=>e.box.width>0||e.text!==chunkXPBKJQTG_cjs.$b&&e.text!==`
2
+ `&&e.text!==""):false}function Nn(t){let e=t.createElement("span");return e.className="docx-break-mark-rule",e.style.flex="1 1 0",e.style.minWidth="0",e.style.height="0",e.style.borderTop="1px dotted currentColor",e}function bi(t,e,n,o,i){if(o.length===0)return null;let{scale:r}=i,a=mi(e,i.paragraphRtl),s=hi*r,l=t.createElement("span");l.className="docx-break-mark",l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(a.left-e.contentX)*r}px`,l.style.width=`${Math.max(0,a.right-a.left)*r}px`,l.style.height=`${s}px`,i.boundary?l.style.top=`${-s/2}px`:l.style.bottom=`${Math.max(0,e.box.height-e.baseline)*r}px`,l.style.display="flex",l.style.overflow="hidden",l.style.pointerEvents="none",l.style.userSelect="none",l.style.whiteSpace="pre",l.style.fontFamily="Arial, Helvetica, sans-serif",l.style.fontSize=`${s}px`,l.style.fontWeight="normal",l.style.fontStyle="normal",l.style.lineHeight=`${s}px`,l.style.color="var(--doc-revision-format)",a.rtl&&(l.style.direction="rtl");for(let{text:d,revisions:c}of o){let p=t.createElement("span");p.className="docx-break-mark-segment",p.style.flex="1 1 0",p.style.minWidth="0",p.style.display="flex",p.style.alignItems="center",at(p,c,i.colors);let u=t.createElement("span");u.className="docx-break-mark-label",u.textContent=d,u.dir="auto",u.style.unicodeBidi="isolate",u.style.flex="0 1 auto",u.style.minWidth="0",u.style.overflow="hidden",u.style.padding=`0 ${s/2}px`,p.append(Nn(t),u,Nn(t)),l.append(p);}return n.append(l),a}function xi(t){let e=t.breakAfter==="page"?chunkXPBKJQTG_cjs.$b:`
3
+ `;for(let n=t.spans.length-1;n>=0;n-=1)if(t.spans[n].text===e)return t.spans[n].revisions}function _n(t,e){let n=t.sectionBreaks??[];return {strings:e,sectionBreaks:new Map(n.map(o=>[o.paragraphId,o.kind])),token:n.map(o=>`${o.paragraphId}:${o.kind}`).join(",")}}function vi(t,e,n,o,i){let r=e.lines.length-1,a=e.paragraphEnd?o.sectionBreaks.get(e.paragraphId):void 0,s=e.outOfFlow===true&&!e.positionedFrame,l;for(let d=0;d<=r;d+=1){let c=e.lines[d],p=n[d];if(!p)continue;let u=[];if(c.breakAfter&&!s){let f=xi(c);u.push({text:yi(c.breakAfter,o.strings),...f?{revisions:f}:{}});}d===r&&a&&u.push({text:fi(a,o.strings)});let y=bi(t,c,p,u,{...i,boundary:s});y&&d===r&&!s&&(l={x:y.rtl?y.left:y.right,rtl:y.rtl});}return {replacesPilcrow:a!==void 0,...l?{pilcrowAt:l}:{}}}function Gn(t,e,n,o,i){let r=chunkATU65CUF_cjs.Kf(e.props),a=o.breakMarks&&!o.inertLinks?vi(t,e,n,o.breakMarks,{paragraphRtl:r,scale:i,...o.revisionStyles?{colors:o.revisionStyles}:{}}):null,s=(e.markRevisions?.length??0)>0;if(!(o.showParagraphMarks&&e.paragraphEnd&&!a?.replacesPilcrow)&&!s)return;let d=kn(t,e.markRevisions??[],o.revisionStyles,o.revisionMarkup,o.revisionKindColors),c=e.lines[e.lines.length-1],p=n[n.length-1];if(!c||!p)return;let u=e.paragraphMarkSizePt??e.emptyParagraphStyle?.fontSizePt??c.spans.at(-1)?.style.fontSizePt??chunkATU65CUF_cjs.la.fontSizePt;it(d,p,c,r,u,i,a?.pilcrowAt);}function zn(t){t.style.fontFamily=chunk3OKDY5TX_cjs.T,t.style.textRendering="geometricPrecision",t.style.direction="ltr";}function ut(t,e,n=false){let o=n?null:chunkATU65CUF_cjs.wb(e.props.filter(r=>r.localName==="pPrChange")),i=o??e.markFormatRevision;i&&(Si(t,i,o?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function Si(t,e,n){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=n,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function Kn(t,e,n,o,i,r){for(let a of [n.footnotes,n.endnotes])a&&e.append(ki(t,n,a,o,i,r));}function ki(t,e,n,o,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=n.kind,a.dataset.docxNotesPlacement=n.placement,a.style.position="absolute",a.style.left=`${(n.box.x-e.box.x)*o.scale}px`,a.style.top=`${(n.box.y-e.box.y)*o.scale}px`,a.style.width=`${n.box.width*o.scale}px`,a.style.height=`${n.box.height*o.scale}px`;for(let s of [n.separator,n.continuationNotice]){if(!s)continue;let l=t.createElement("div");l.className="docx-note-separator",l.dataset.docxNoteSeparator=s.kind,l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.box.x-n.box.x)*o.scale}px`,l.style.top=`${(s.box.y-n.box.y)*o.scale}px`,l.style.width=`${s.box.width*o.scale}px`,l.style.height=`${s.box.height*o.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)wi(l,t,d??"single",o.scale,s.box.height,s.ruleColor);else {let c={...o,tabLeaderOriginXPt:s.box.x-e.box.x};for(let p of s.fragments)l.append(p.kind==="table"?r(t,p,c):i(t,p,c));}a.append(l);}for(let s of n.notes){let l={...o,tabLeaderOriginXPt:s.box.x-e.box.x},d=t.createElement("div");d.className="docx-note",d.dataset.docxNote=s.noteKind,d.dataset.docxNoteId=String(s.noteId),d.dataset.docxNoteScope=s.scopeId,s.mark!==null&&(d.dataset.docxNoteMark=s.mark),s.continuation&&(d.dataset.docxNoteContinuation=""),d.setAttribute("role","doc-footnote"),d.style.position="absolute",d.style.left=`${(s.box.x-n.box.x)*o.scale}px`,d.style.top=`${(s.box.y-n.box.y)*o.scale}px`,d.style.width=`${s.box.width*o.scale}px`,d.style.height=`${s.box.height*o.scale}px`;for(let c of s.fragments)d.append(c.kind==="table"?r(t,c,l):i(t,c,l));a.append(d);}return a}function wi(t,e,n,o,i,r){t.dataset.docxNoteRule=n;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,o*.75);if(n==="single"){t.style.backgroundColor=a,t.style.height=`${i*o}px`;return}t.style.opacity="0.85";let l=Math.max(1,o*1.25);for(let d of [0,s+l]){let c=e.createElement("div");c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top=`${d}px`,c.style.height="0",c.style.borderTop=`${s}px solid currentColor`,t.append(c);}}var Ri=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function jn(t,e,n,o){let i=o.contentControlChrome,r=i?.suppressedIds,a=(n.contentControls??[]).filter(u=>r?.has(u.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(u=>r?.has(u.id)!==true&&!a.some(y=>y.id===u.id))];if(s.length===0)return;let l=i?.showAll===true,d=i?.activeIds,c=i?.hoverIds,p=i?.tocControlIds;for(let u of s){let y=p?.has(u.id)===true,f=!y&&d?.has(u.id)===true,h=c?.has(u.id)===true;e.append(Pi(t,n,u,o.scale,f,h,l||f||y&&h,i?.checkedIds?.has(u.id),y,i?.readOnly===true));}}function Ei(t,e,n,o){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(n==="checkbox"){let u=Math.max(1,Math.min(e.height,16))*o,y=e.width>0?(i+e.x+e.width/2)*o-u/2:(i+e.x)*o,f=(r+e.y)*o+Math.max(0,(e.height*o-u)/2);return {left:y,top:f,size:u}}let a=16*o,s=(i+e.x+e.width)*o,l=t.box.width*o,d=s+2*o,c=d+a<=l?d:Math.max(0,s-a),p=(r+e.y)*o+Math.max(0,(e.height*o-a)/2);return {left:c,top:p,size:a}}function Pi(t,e,n,o,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=n.id,c.dataset.docxMarker="",c.dataset.controlType=n.controlType,c.dataset.lock=n.effectiveLock,n.bound&&(c.dataset.bound=""),n.placeholder&&(c.dataset.placeholder=""),l&&(c.dataset.docxToc=""),d&&(c.dataset.readOnly=""),i&&(c.dataset.active=""),r&&(c.dataset.hover=""),a&&(c.dataset.boundaryVisible=""),c.setAttribute("contenteditable","false"),c.setAttribute("role","group"),n.alias&&(c.dataset.alias=n.alias),n.tag&&(c.dataset.tag=n.tag),n.alias&&c.setAttribute("aria-label",n.alias),c.style.position="absolute",c.style.inset="0",c.style.pointerEvents="none",c.style.zIndex="2";let p=e.contentBox.x-e.box.x,u=e.contentBox.y-e.box.y;for(let f of n.fragments){if(f.pageIndex!==e.index)continue;let h=t.createElement("div");h.className="docx-content-control-boundary",h.dataset.docxMarker="",h.setAttribute("contenteditable","false"),h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.left=`${(p+f.box.x)*o}px`,h.style.top=`${(u+f.box.y)*o}px`,h.style.width=`${Math.max(f.box.width,1)*o}px`,h.style.height=`${Math.max(f.box.height,1)*o}px`,h.style.pointerEvents="none",c.append(h);}let y=n.fragments.find(f=>f.pageIndex===e.index);if(y&&n.alias){let f=t.createElement("div");f.className="docx-content-control-label",f.dataset.docxMarker="",f.setAttribute("contenteditable","false"),f.setAttribute("aria-hidden","true"),f.textContent=n.alias,f.style.position="absolute",f.style.left=`${(p+y.box.x)*o}px`,f.style.top=`${Math.max(0,(u+y.box.y)*o-16)}px`,f.style.pointerEvents="none",c.append(f);}if(y&&Ri.has(n.controlType)){let f=t.createElement("button");f.type="button",f.className="docx-content-control-widget",f.dataset.docxMarker="",f.dataset.docxCcWidget=n.controlType,f.dataset.docxCcId=n.id,f.setAttribute("contenteditable","false"),f.setAttribute("tabindex","-1"),n.controlType==="checkbox"?f.setAttribute("role","checkbox"):n.controlType==="dropdown"||n.controlType==="comboBox"||n.controlType==="buildingBlockGallery"?f.setAttribute("role","listbox"):(n.controlType==="date"||n.controlType==="picture")&&f.setAttribute("role","button"),n.alias&&(f.dataset.name=n.alias),n.alias&&f.setAttribute("aria-label",n.alias),n.controlType==="checkbox"&&(f.setAttribute("data-checked",s?"true":"false"),f.setAttribute("aria-checked",s?"true":"false"));let h=n.effectiveLock==="contentLocked"||n.effectiveLock==="sdtContentLocked";(d||h||n.bound)&&(f.disabled=true,f.dataset.disabledReason=d?"readOnly":n.bound?"bound":"locked",f.setAttribute("aria-disabled","true"));let g=Ei(e,y.box,n.controlType,o);f.style.position="absolute",f.style.left=`${g.left}px`,f.style.top=`${g.top}px`,f.style.width=`${g.size}px`,f.style.height=`${g.size}px`,f.style.fontSize=`${g.size}px`,f.style.pointerEvents="auto",f.style.padding="0",f.style.margin="0",f.style.cursor=f.disabled?"not-allowed":"pointer",c.append(f);}return c}var Vn="docx-change-bars",Ne="docx-change-bar",Mi=.5;function Xn(t,e){for(let n of e)switch(t.author??=n.author,n.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function qn(t,e,n){let o=t.lines,i=o.length-1,r=[];for(let a=0;a<=i;a+=1){let s=o[a];if(r.length=0,e.mode==="simple-markup"){s.changeSites&&r.push(...s.changeSites),a===i&&t.markChangeSites&&r.push(...t.markChangeSites),r.length>0&&Wn(t,o,a,e,r,n);continue}s.changeSites&&r.push(...s.changeSites);for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunkATU65CUF_cjs.wb(l.props);d&&r.push(d);}for(let l of s.drawings??[])l.revisions&&r.push(...l.revisions);if(s.anchorRevisions&&r.push(...s.anchorRevisions),a===i){t.markRevisions&&r.push(...t.markRevisions),t.markFormatRevision&&r.push(t.markFormatRevision);let l=chunkATU65CUF_cjs.wb(t.props);l&&r.push(l);}r.length!==0&&Wn(t,o,a,e,r,n);}}function Wn(t,e,n,o,i,r){let a=e[n],s=e.length-1,l=(n===0?t.box.y:a.box.y)+o.dy,d=Math.min((n===s?t.box.y+t.box.height:e[n+1].box.y)+o.dy,o.limit);if(d<=l)return;let c={top:l,bottom:d,story:o.story,insertion:false,deletion:false,format:false};Xn(c,i),r.push(c);}function Li(t,e,n){for(let o of t.rows){let i=e.mode==="simple-markup"?o.changeSites:void 0;if(e.mode==="all-markup"&&o.revisionKind||i&&i.length>0){let r=chunkATU65CUF_cjs.Rf(o)?Math.max(o.box.y,...o.cells.map(s=>s.box.y+s.box.height)):o.box.y+o.box.height,a={top:o.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,author:o.revisionAuthor,insertion:o.revisionKind==="insert",deletion:o.revisionKind==="delete",format:false};i&&Xn(a,i),n.push(a);}for(let r of o.cells){if(r.textDirection==="btLr"){let a=[];if(pt(r.blocks,e,a),a.length===0)continue;let s={top:r.box.y+e.dy,bottom:Math.min(r.box.y+r.box.height+e.dy,e.limit),story:e.story,insertion:false,deletion:false,format:false};for(let l of a)s.insertion||=l.insertion,s.deletion||=l.deletion,s.format||=l.format;s.bottom>s.top&&n.push(s);continue}pt(r.blocks,e,n);}}}function pt(t,e,n){for(let o of t)o.kind==="table"?Li(o,e,n):qn(o,e,n);}function Ai(t){t.sort((n,o)=>n.top-o.top||n.bottom-o.bottom);let e=[];for(let n of t){let o=e[e.length-1];if(o&&o.story===n.story&&o.author===n.author&&n.top<=o.bottom+Mi){o.bottom=Math.max(o.bottom,n.bottom),o.insertion||=n.insertion,o.deletion||=n.deletion,o.format||=n.format;continue}e.push({...n});}return e}var Ti=36;function yt(t,e,n,o=false,i,r=false,a){let s=[];if(n==="none"||i?.changedLines.mark==="none")return {mode:n,toggle:o,left:0,runs:s,signature:"none"};let l=t.box.height,d=t.contentBox.y-t.box.y+t.contentBox.height,c={x:t.box.x,y:t.box.y};chunkATU65CUF_cjs.Na(t,m=>{if(m.story==="note-separator")return;let k={mode:n,story:m.story,dy:m.origin.y-t.box.y,limit:m.story==="body"?d:l};pt(m.host.fragments,k,s);let S=m.story==="header"||m.story==="footer"?R=>chunkATU65CUF_cjs.Ia(R,m.origin,c):void 0;chunkATU65CUF_cjs.Ra(m.host,(R,q)=>{q.textboxDepth!==0&&qn(R,{mode:n,story:m.story,dy:q.storyOrigin.y-t.box.y,limit:l},s);},m.origin,S);});let p=i?.changedLines.mark==="rightBorder"||i?.changedLines.mark==="outsideBorder"&&r&&t.index%2===0,u=m=>Math.max(0,m/2,m-Ti),y=Math.round((p?t.box.width-u(t.box.width-t.contentBox.width-(t.contentBox.x-t.box.x)):u(t.contentBox.x-t.box.x))*e),f=i?chunkATU65CUF_cjs.jb(i.changedLines.color,"var(--doc-review-author-0)",n==="simple-markup"?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"):void 0,h=Ai(s);if(i?.changedLines.color==="byAuthor")for(let m of h)m.color=a?.styles.get(m.author??"")?.color??B(a?.authorSlots.get(m.author??"")??0);let g=`${n}|${o?"t":""}|${y}|${f??""}`;for(let m of h)g+=`|${m.story}:${m.top.toFixed(3)}-${m.bottom.toFixed(3)}${m.insertion?"i":""}${m.deletion?"d":""}${m.format?"f":""}:${m.color??""}`;return {mode:n,toggle:o,left:y,runs:h,signature:g,...f?{color:f}:{}}}function Yn(t,e,n){if(e.runs.length===0)return null;let o=e.mode==="simple-markup",i=t.createElement("div");i.className=Vn,i.dataset.docxChangeBars=e.signature,i.dataset.docxChangeBarsMode=e.mode,i.setAttribute("aria-hidden","true"),i.setAttribute("contenteditable","false"),i.style.position="absolute",i.style.inset="0",i.style.pointerEvents="none";for(let r of e.runs){let a=t.createElement("div");a.className=Ne,r.insertion&&a.classList.add(`${Ne}-insertion`),r.deletion&&a.classList.add(`${Ne}-deletion`),r.format&&a.classList.add(`${Ne}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*n}px`,a.style.height=`${(r.bottom-r.top)*n}px`,a.style.width=o?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=r.color??e.color??(o?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"),e.toggle?(a.dataset.docxChangeBarToggle="",a.style.pointerEvents="auto",a.style.cursor="pointer"):a.style.pointerEvents="none",i.append(a);}return i}function Zn(t,e,n,o,i=false,r,a=false,s){return Yn(t,yt(e,n,o,i,r,a,s),n)}function Jn(t,e,n,o,i,r=false,a,s=false,l){let d=e.querySelector(`:scope > .${Vn}`),c=yt(n,o,i,r,a,s,l);if(d&&d.dataset.docxChangeBars===c.signature)return;d?.remove();let p=Yn(t,c,o);p&&e.append(p);}function Oe(t,e,n){return !!n.activeHeaderFooterRId&&!!t.rId&&n.activeHeaderFooterRId===t.rId&&(n.activeHeaderFooterPageIndex===void 0||n.activeHeaderFooterPageIndex===e)}function ft(t,e,n){return n?t.kind==="footer"?Math.max(t.box.height,e.box.y+e.box.height-t.box.y):Math.max(t.box.height,e.contentBox.y-t.box.y):t.box.height}function $i(t,e){let{box:n}=e,o=t.contentBox,i=e.kind==="header"?n.y:Math.max(n.y,o.y+o.height),r=e.kind==="header"?Math.min(n.y+n.height,o.y):n.y+n.height;return r>i?{x:n.x,y:i,width:n.width,height:r-i}:null}function Hi(t,e){let n=e.box,o=t.contentBox;return n.x<o.x+o.width&&o.x<n.x+n.width&&n.y<o.y+o.height&&o.y<n.y+n.height}function Qn(t,e,n,o,i){let r=o.box;if(Hi(n,o)){e.dataset.docxHfOverBody="";let s=$i(n,o);if(!s)return null;let l=t.createElement("div");l.className="docx-hf-hover",l.dataset.docxHfHover=o.kind,l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.box.x)*i}px`,l.style.top=`${(s.y-n.box.y)*i}px`,l.style.width=`${s.width*i}px`,l.style.height=`${s.height*i}px`,e.before(l),r=s;}let a=t.createElement("div");return a.className="docx-hf-edit-hint",a.dataset.docxHfHint=o.kind,a.setAttribute("contenteditable","false"),a.style.position="absolute",a.style.left=`${(r.x-n.box.x)*i}px`,a.style.width=`${r.width*i}px`,a.style.top=o.kind==="header"?`${(r.y+r.height-n.box.y)*i}px`:`${(r.y-n.box.y)*i}px`,o.kind==="footer"&&(a.style.transform="translateY(-100%)"),a}function eo(t,e){for(let{record:n,element:o,materialized:i}of t){if(!i)continue;let r=o.querySelector(":scope > .docx-page-content");r&&Ue(r,"contenteditable",e.activeHeaderFooterRId?"false":null);let a=null;for(let s of o.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let l=Ci(n,s);if(!l)continue;let d=Oe(l,n.index,e);d&&(a=l.kind),Bi(s,n,l,d,e.scale);}Ue(o,"data-docx-hf-active-kind",a);for(let s of o.querySelectorAll(":scope > [data-docx-hf-front]")){let l=to(n,s.dataset.docxHfFront);no(s,!!l&&Oe(l,n.index,e));}}}function Ci(t,e){return to(t,e.dataset.docxHf)}function to(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function Bi(t,e,n,o,i){Ue(t,"data-docx-hf-active",o?"":null),Ue(t,"contenteditable",o?"true":"false");let r=`${ft(n,e,o)*i}px`;t.style.height!==r&&(t.style.height=r),no(t,o);}function Ue(t,e,n){t.getAttribute(e)!==n&&(n===null?t.removeAttribute(e):t.setAttribute(e,n));}function no(t,e){let n=t.querySelectorAll(t.nodeType===1&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *"),o=e?"auto":"none";for(let i of n){i.style.pointerEvents!==o&&(i.style.pointerEvents=o);for(let r of i.querySelectorAll(".docx-drawing"))r.style.pointerEvents!==o&&(r.style.pointerEvents=o);}}function oo(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function ro(t,e,n){let o=e.paintBounds,i=chunkATU65CUF_cjs.Ia(e,t.box,n),r=i.x-e.x,a=i.y-e.y,s=l=>Object.freeze({x:l.x+r,y:l.y+a,width:l.width,height:l.height});return Object.freeze({...e,x:e.x+r,y:e.y+a,paintBounds:s(o),hitBounds:s(e.hitBounds),geometry:Object.freeze({...e.geometry,contentBounds:s(e.geometry.contentBounds),paintBounds:s(e.geometry.paintBounds),...e.geometry.clipPolygon?{clipPolygon:Object.freeze(e.geometry.clipPolygon.map(l=>Object.freeze({x:l.x+r,y:l.y+a})))}:{}})})}function Di(t,e,n,o,i){let r=n.anchoredDrawings??[];if(r.length===0)return;let a=r.map(l=>ro(n,l,i)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=n.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",o.appendDrawings(s,a,i,"behind",false),s.childElementCount>0&&e.append(s);}function Fi(t,e,n,o,i,r){let{scale:a}=i.chrome,s=t.createElement("div");s.className="docx-hf",s.dataset.docxHf=o.kind,o.rId&&(s.dataset.docxRId=o.rId),r?(s.dataset.docxHfActive="",s.setAttribute("contenteditable","true")):s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(o.box.x-n.box.x)*a}px`,s.style.top=`${(o.box.y-n.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${ft(o,n,r)*a}px`,s.style.overflow="visible";let l=(n.box.x-o.box.x)*a,d=(n.box.y-o.box.y)*a,c=l+n.box.width*a,p=d+n.box.height*a;s.style.clipPath=`polygon(${l}px ${d}px, ${c}px ${d}px, ${c}px ${p}px, ${l}px ${p}px)`;for(let f of o.fragments)s.append(i.paintFragment(f,o.box.x-n.box.x));let u=(o.anchoredDrawings??[]).filter(f=>!oo(f)),y=Object.freeze({x:0,y:0,width:o.box.width,height:o.box.height});return i.appendDrawings(s,u,y,"inFront",r),e.append(s),s}function _e(t,e,n,o){let i=Object.freeze({x:n.box.x,y:n.box.y,width:n.box.width,height:n.box.height}),r=[n.header,n.footer].filter(s=>!!s);for(let s of r)Di(t,e,s,o,i);let a=[];for(let s of r){let l=Oe(s,n.index,o.chrome),d=Fi(t,e,n,s,o,l),c=Qn(t,d,n,s,o.chrome.scale);c&&a.push(c);let p=(s.anchoredDrawings??[]).filter(oo).map(u=>ro(s,u,i));o.appendDrawings(e,p,i,"inFront",l,s.kind);}return a}function io(t,e,n,o){if(!n&&!t.hasAttribute("data-docx-unsupported"))return;let i=t.querySelector(":scope > .docx-drawing-native");if(i){$e(t);let l=t.ownerDocument.createDocumentFragment();for(;i.firstChild;)l.append(i.firstChild);t.replaceChildren(l);}if(!n||e.textboxStory||e.groupTextboxStories||!o||t.querySelector("[data-docx-unsupported]"))return;let r=chunkNPPHSBFT_cjs.Fa(o,e.drawingNodeId),a=chunkNPPHSBFT_cjs.Ea(e.chart?.shownAs==="fallback"?"fallback":"rendered",r);if(a!=="partial")return;let s=t.ownerDocument.createElement("div");for(s.className="docx-drawing-native",s.style.width="100%",s.style.height="100%";t.firstChild;)s.append(t.firstChild);t.append(s),W(t,s,{ownerPartName:e.ownerPartName,nodeId:e.drawingNodeId,namespaceUri:o.namespaceUri,localName:o.localName,source:o,placement:"inline",bounds:e.paintBounds,label:e.accessibility.label??"",drawing:e,drawingIssues:r,support:a,graphicKind:chunkNPPHSBFT_cjs.Ha(o,e.drawingNodeId)},t);}var Ii=0;function ao(t,e,n,o){if(o===void 0||!Number.isFinite(o)||o<0||o>1)return;let i="http://www.w3.org/2000/svg",r=(p,u)=>{let y=t.createElementNS(i,p);for(let[f,h]of Object.entries(u))y.setAttribute(f,h);return y},a=`docx-bilevel-${++Ii}`,s=r("svg",{width:"0",height:"0","aria-hidden":"true"});s.style.position="absolute",s.style.pointerEvents="none";let l=r("filter",{id:a,"color-interpolation-filters":"sRGB"});l.append(r("feColorMatrix",{type:"saturate",values:"0"}));let d=r("feComponentTransfer",{}),c=Array.from({length:256},(p,u)=>u/255>=o?1:0).join(" ");for(let p of ["R","G","B"])d.append(r(`feFunc${p}`,{type:"discrete",tableValues:c}));l.append(d),s.append(l),e.append(s),n.style.filter=`${n.style.filter} url(#${a})`.trim();}function so(t){return Math.max(-1,Math.min(1,t))}function lo(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let n=so(t/100),o=so(e/100);if(n===0&&o===0)return null;let i=o>=0?Math.min(1e3,1/(1-o)):Math.max(0,1+o),r=.5-n/2,a=r+n-i*r;return Object.freeze({slope:i,intercept:a})}function Ge(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function Ni(t){let{slope:e,intercept:n}=t;if(n>=0){let i=e+2*n;return i<=0?"brightness(0)":`contrast(${Ge(e/i)}) brightness(${Ge(i)})`}let o=1-2*n;return `brightness(${Ge(e/o)}) contrast(${Ge(o)})`}function ht(t){let e=[];t.grayscale&&e.push("grayscale(1)");let n=lo(t.brightness,t.contrast);n&&e.push(Ni(n));let{opacity:o}=t;return o!==void 0&&Number.isFinite(o)&&o>=0&&o<1&&e.push(`opacity(${Math.round(o*1e3)/1e3})`),e.length>0?e.join(" "):void 0}function ne(t){return `${Number.isFinite(t)?Math.round(t*1e3)/1e3:0}px`}var co=[[0,0],[.5,.1],[.9,.5],[1.3,.9],[1.7,1]];function uo(t,e){let n=co.map(([i,r])=>`rgba(0,0,0,${r}) ${ne(i*e)}`),o=[...co].reverse().map(([i,r])=>`rgba(0,0,0,${r}) calc(100% - ${ne(i*e)})`);return `linear-gradient(to ${t}, ${[...n,...o].join(", ")})`}function po(t,e){if(!(e>0))return;let n=`${uo("right",e)}, ${uo("bottom",e)}`;t.style.setProperty("mask-image",n),t.style.setProperty("-webkit-mask-image",n),t.style.setProperty("mask-composite","intersect"),t.style.setProperty("-webkit-mask-composite","source-in");}function yo(t,e,n,o,i){let r=o.frameEffects?.reflection;if(!r)return;let a=i/12700,s=Number.parseFloat(n.style.width)||0,l=Number.parseFloat(n.style.height)||0,d=(Number.parseFloat(n.style.top)||0)+l,c=t.createElement("div");c.className="docx-drawing-reflection",c.style.position="absolute",c.style.left=n.style.left,c.style.top=ne(d+r.distanceEmu*a),c.style.width=ne(s),c.style.height=ne(l*r.endPosition),c.style.overflow="hidden",c.style.pointerEvents="none";let p=`linear-gradient(to bottom, rgba(0,0,0,${r.startAlpha}), rgba(0,0,0,${r.endAlpha}))`;c.style.setProperty("mask-image",p),c.style.setProperty("-webkit-mask-image",p);let u=n.cloneNode(true);u.style.left="0",u.style.top="0",u.style.transformOrigin="center",u.style.transform="scaleY(-1)",r.blurEmu>0&&(u.style.filter=`blur(${ne(r.blurEmu/4*a)})`),c.append(u),e.append(c),e.style.overflow="visible";}var $="http://www.w3.org/2000/svg",Oi=0;function ho(t,e){let{cx:n,cy:o}=t.extentEmu;if(n>0&&o>0)return {viewBox:[0,0,n,o],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(n<=0){let a=o>0?e.height/o:0;return {viewBox:[-i,0,2*i,Math.max(1,o)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/n;return {viewBox:[0,-i,n,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function mo(t,e,n,o,i,r="evenodd"){let a=`docx-inset-${++Oi}`,s=t.createElementNS($,"clipPath");s.setAttribute("id",a);let l=t.createElementNS($,"path");l.setAttribute("d",o),l.setAttribute("clip-rule",r),s.append(l),e.append(s),n.setAttribute("stroke-width",String(2*Math.max(1,i))),n.setAttribute("clip-path",`url(#${a})`);}var Ui=0;function go(t,e,n,o){let i=`docx-gradient-${++Ui}`,r=t.createElementNS($,o.kind==="linear"?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("gradientUnits","userSpaceOnUse"),r.setAttribute("gradientTransform",`matrix(${o.matrix.map(M).join(" ")})`),(o.kind==="linear"?["x1","y1","x2","y2"]:["cx","cy","r"]).forEach((s,l)=>r.setAttribute(s,M(o.coords[l]??0)));for(let s of o.stops){let l=t.createElementNS($,"stop");l.setAttribute("offset",M(Math.max(0,Math.min(1,s.offset)))),l.setAttribute("stop-color",`#${s.hex}`),s.alpha<1&&l.setAttribute("stop-opacity",M(Math.max(0,s.alpha))),r.append(l);}e.append(r),n.setAttribute("fill",`url(#${i})`);}function M(t){return Number.isFinite(t)?String(t):"0"}var _i=0,Gi=12700;function bo(t,e,n,o){let i=`docx-pattern-${++_i}`,r=Gi,a=t.createElementNS($,"pattern");a.setAttribute("id",i),a.setAttribute("patternUnits","userSpaceOnUse"),a.setAttribute("width",M(r*8)),a.setAttribute("height",M(r*8));let s=(d,c,p)=>{if(c<=0||!p)return;let u=t.createElementNS($,"path");u.setAttribute("d",p),u.setAttribute("fill",`#${d}`),c<1&&u.setAttribute("fill-opacity",M(c)),a.append(u);};s(o.background.hex,o.background.alpha,`M0 0H${r*8}V${r*8}H0Z`);let l=[];o.rows.slice(0,8).forEach((d,c)=>{for(let p=0;p<8;p+=1)d>>7-p&1&&l.push(`M${p*r} ${c*r}h${r}v${r}h${-r}Z`);}),s(o.foreground.hex,o.foreground.alpha,l.join("")),e.append(a),n.setAttribute("fill",`url(#${i})`);}var fo=0;function xo(t,e,n,o){let i=o.shadow;if(!i||o.fillHex===null&&o.strokeHex===null)return;let r=t.createElementNS($,"path");if(r.setAttribute("d",n),r.setAttribute("fill-rule","evenodd"),r.setAttribute("fill",o.fillHex!==null?`#${i.hex}`:"none"),o.strokeHex!==null&&(r.setAttribute("stroke",`#${i.hex}`),r.setAttribute("stroke-width",M(Math.max(1,o.strokeWidthEmu)))),r.setAttribute("opacity",M(Math.max(0,Math.min(1,i.alpha)))),r.setAttribute("transform",`translate(${M(i.dxEmu)} ${M(i.dyEmu)})`),i.blurEmu>0){let a=`docx-shadow-${++fo}`,s=t.createElementNS($,"filter");s.setAttribute("id",a);let l=1/0,d=1/0,c=-1/0,p=-1/0;for(let f of o.subpathsEmu)for(let h of f)l=Math.min(l,h.x),d=Math.min(d,h.y),c=Math.max(c,h.x),p=Math.max(p,h.y);let u=i.blurEmu/4*3+(o.strokeHex!==null?Math.max(1,o.strokeWidthEmu)/2:0)+1;s.setAttribute("filterUnits","userSpaceOnUse"),s.setAttribute("x",M(l-u)),s.setAttribute("y",M(d-u)),s.setAttribute("width",M(c-l+2*u)),s.setAttribute("height",M(p-d+2*u));let y=t.createElementNS($,"feGaussianBlur");y.setAttribute("stdDeviation",M(i.blurEmu/4)),s.append(y),e.append(s),r.setAttribute("filter",`url(#${a})`);}if(r.setAttribute("data-docx-shadow",""),o.clipEmu?.length){let a=`docx-shadow-clip-${++fo}`,s=t.createElementNS($,"clipPath");s.setAttribute("id",a);let l=t.createElementNS($,"path");l.setAttribute("d",o.clipEmu.map(c=>`M${c.map(p=>`${M(p.x)} ${M(p.y)}`).join("L")}Z`).join("")),l.setAttribute("clip-rule","evenodd"),s.append(l);let d=t.createElementNS($,"g");d.setAttribute("clip-path",`url(#${a})`),d.append(r),e.append(s,d);return}e.append(r);}var mt="http://www.w3.org/2000/svg";function D(t){return Number.isFinite(t)?String(t):"0"}function ge(t,e,n,o,i){if(o===n)return;let r=a=>`${D(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(n.y-o.y)} ${r(o.x+o.width-(n.x+n.width))} ${r(o.y+o.height-(n.y+n.height))} ${r(n.x-o.x)})`,e.style.pointerEvents="none";}function ze(t){return t.vectorShape!==null&&t.placeholderGraphicKind===null&&t.groupPicture===void 0}function oe(t,e,n,o){let i=e.vectorShape,r=e.geometry.contentBounds,a=e.paintBounds,s=t.createElement("div");s.className="docx-drawing-image-frame",s.style.position="absolute";let l=ho(i,r);s.style.left=`${(l.frame.x-a.x)*n}px`,s.style.top=`${(l.frame.y-a.y)*n}px`,s.style.width=`${l.frame.width*n}px`,s.style.height=`${l.frame.height*n}px`;let d=t.createElementNS(mt,"svg");d.setAttribute("viewBox",l.viewBox.map(D).join(" ")),d.setAttribute("preserveAspectRatio","none"),d.setAttribute("width","100%"),d.setAttribute("height","100%"),d.style.display="block",d.style.overflow="visible";for(let c of i.components)o&&!o(c)||gt(t,d,c);return s.append(d),s}function gt(t,e,n){let o=t.createElementNS(mt,"path"),i=n.subpathsEmu.map((r,a)=>`M${r.map(s=>`${D(s.x)} ${D(s.y)}`).join("L")}${n.subpathsClosed?.[a]===false?"":"Z"}`).join("");if(o.setAttribute("d",i),n.shadow&&xo(t,e,i,n),!n.shadowOnly){if(o.setAttribute("fill",n.fillHex!==null?`#${n.fillHex}`:"none"),n.fillHex!==null&&n.fillGradient?go(t,e,o,n.fillGradient):n.fillHex!==null&&n.fillPattern&&bo(t,e,o,n.fillPattern),o.setAttribute("fill-rule",n.fillRule??"evenodd"),n.fillAlpha<1&&!n.fillGradient&&!n.fillPattern&&o.setAttribute("fill-opacity",D(Math.max(0,n.fillAlpha))),n.strokeHex!==null){if(o.setAttribute("stroke",`#${n.strokeHex}`),o.setAttribute("stroke-width",D(Math.max(1,n.strokeWidthEmu))),n.strokeCap&&o.setAttribute("stroke-linecap",n.strokeCap),n.strokeJoin&&o.setAttribute("stroke-linejoin",n.strokeJoin),n.strokeMiterLimit!==void 0&&o.setAttribute("stroke-miterlimit",String(n.strokeMiterLimit)),n.strokeDash?.length){let r=Math.max(1,n.strokeWidthEmu);o.setAttribute("stroke-dasharray",n.strokeDash.map(a=>D(a*r)).join(" "));}n.strokeInset&&mo(t,e,o,i,chunkATU65CUF_cjs.Lf(n.strokeWidthEmu),n.fillRule??"evenodd"),n.strokeAlpha<1&&o.setAttribute("stroke-opacity",D(Math.max(0,n.strokeAlpha)));}if(e.append(o),n.strokeHex!==null)for(let r of n.arrowheadsEmu??[]){let a=t.createElementNS(mt,"path");a.setAttribute("d",`M${r.map(s=>`${D(s.x)} ${D(s.y)}`).join("L")}Z`),a.setAttribute("fill",`#${n.strokeHex}`),a.setAttribute("fill-opacity",D(Math.max(0,Math.min(1,n.strokeAlpha)))),a.setAttribute("data-docx-line-end","triangle"),e.append(a);}}}function bt(t,e,n,o){let i=e.groupTextboxStories;if(!i||e.accessibility.hidden||!n.paintStoryFragment)return null;let r=e.paintBounds;if(r.width<=0||r.height<=0)return null;let a=n.scale,s=t.createElement("div");s.className="docx-drawing-group-text",s.dataset.groupTextFor=e.drawingNodeId,s.setAttribute("contenteditable","false");let l=o?.x??0,d=o?.y??0;s.style.position="absolute",s.style.left=`${(r.x-l)*a}px`,s.style.top=`${(r.y-d)*a}px`,s.style.width=`${r.width*a}px`,s.style.height=`${r.height*a}px`,s.style.overflow=i.some(u=>u.story.overflowVisible)?"visible":"hidden",s.style.pointerEvents="none";let c=e.x-r.x,p=e.y-r.y;for(let u of i){let y=u.story,f=t.createElement("div");f.className="docx-drawing-textbox-content",f.style.position="absolute",f.style.left=`${(c+u.box.x+y.contentOffset.x)*a}px`,f.style.top=`${(p+u.box.y+y.contentOffset.y)*a}px`,f.style.width=`${y.contentWidth*a}px`,f.style.height=`${Math.max(0,y.contentHeight)*a}px`,f.style.overflow="hidden";let h=u.rotationDegrees;if(h!==0&&Number.isFinite(h)){let g=u.box.width/2-y.contentOffset.x,m=u.box.height/2-y.contentOffset.y;f.style.transformOrigin=`${g*a}px ${m*a}px`,f.style.transform=`rotate(${h}deg)`;}for(let g of y.fragments)f.append(n.paintStoryFragment(t,g,{readOnly:true}));for(let g of f.querySelectorAll('[style*="pointer-events"]'))g.style.pointerEvents="none";s.append(f);}return s}var xt="http://www.w3.org/2000/svg",vo=12700,T=t=>Number.isFinite(t)?String(t):"0";function So(t,e){t.setAttribute("fill",e.fillHex!==null?`#${e.fillHex}`:"none"),e.fillHex!==null&&e.fillAlpha<1&&t.setAttribute("fill-opacity",T(Math.max(0,e.fillAlpha))),e.strokeHex!==null&&(t.setAttribute("stroke",`#${e.strokeHex}`),t.setAttribute("stroke-width",T(e.strokeWidthPt)),t.setAttribute("stroke-linejoin","round"),e.strokeAlpha<1&&t.setAttribute("stroke-opacity",T(Math.max(0,e.strokeAlpha))));}function ko(t,e,n,o,i){let r=e.textArt,a=e.paintBounds,s=t.createElement("div");s.className="docx-drawing docx-drawing-text-art",o||(s.dataset.drawingNodeId=e.drawingNodeId),s.style.position="absolute",s.style.left=`${(a.x-(i?.x??0))*n}px`,s.style.top=`${(a.y-(i?.y??0))*n}px`,s.style.width=`${a.width*n}px`,s.style.height=`${a.height*n}px`,s.style.overflow="hidden",s.style.pointerEvents="none",s.setAttribute("role","img"),s.setAttribute("aria-label",e.accessibility.label||r.text);let l=t.createElementNS(xt,"svg");if(l.setAttribute("viewBox",`0 0 ${T(e.width)} ${T(e.height)}`),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(e.x-a.x)*n}px`,l.style.top=`${(e.y-a.y)*n}px`,l.style.width=`${e.width*n}px`,l.style.height=`${e.height*n}px`,l.style.overflow="visible",r.rotationDegrees&&(l.style.transformOrigin="50% 50%",l.style.transform=`rotate(${T(r.rotationDegrees)}deg)`),r.components){l.setAttribute("viewBox",`0 0 ${T(e.width*vo)} ${T(e.height*vo)}`);for(let d of r.components)gt(t,l,d);}else if(r.path!==null){let d=t.createElementNS(xt,"path");d.setAttribute("d",r.path),So(d,r),l.append(d);}else if(r.fit!==null){let d=t.createElementNS(xt,"text"),{scaleX:c,scaleY:p,offsetX:u,offsetY:y}=r.fit;d.setAttribute("transform",`matrix(${T(c)} 0 0 ${T(p)} ${T(u)} ${T(y)})`),d.setAttribute("font-family",r.fontFamily),d.setAttribute("font-size",T(r.fontSizePt)),d.setAttribute("font-weight",r.bold?"bold":"normal"),d.setAttribute("font-style",r.italic?"italic":"normal"),d.setAttribute("xml:space","preserve"),So(d,r),d.textContent=r.text,l.append(d);}return s.append(l),s}function I(t,e,n){let{accessibility:o}=e;o.hidden||(t.setAttribute("role",n?"link":"img"),o.label?t.setAttribute("aria-label",o.label):n||t.setAttribute("aria-hidden","true"));}function _(t,e,n,o){let i=o?.x??0,r=o?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*n}px`,t.style.top=`${(e.y-r)*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}var wo="http://www.w3.org/2000/svg",v=t=>String(Math.round(t*1e3)/1e3),Ro=Object.freeze({kind:"roundRect",arc:0});function Eo(t,e,n,o,i,r,a){let s=e+r,l=n+r,d=Math.max(0,o-2*r),c=Math.max(0,i-2*r);if(t.kind==="ellipse"){let u=d/2,y=c/2;return `M${v(s)} ${v(l+y)} A${v(u)} ${v(y)} 0 1 1 ${v(s+d)} ${v(l+y)} A${v(u)} ${v(y)} 0 1 1 ${v(s)} ${v(l+y)} Z`}if(t.kind==="polygon")return t.subpaths.map(u=>u.map((y,f)=>`${f?"L":"M"}${v(s+y.x*d)} ${v(l+y.y*c)}`).join(" ")+" Z").join(" ");let p=Math.min(Math.max(0,t.arc*a-r),d/2,c/2);return `M${v(s)} ${v(l+p)} A${v(p)} ${v(p)} 0 0 1 ${v(s+p)} ${v(l)} H${v(s+d-p)} A${v(p)} ${v(p)} 0 0 1 ${v(s+d)} ${v(l+p)} V${v(l+c-p)} A${v(p)} ${v(p)} 0 0 1 ${v(s+d-p)} ${v(l+c)} H${v(s+p)} A${v(p)} ${v(p)} 0 0 1 ${v(s)} ${v(l+c-p)} Z`}function zi(t,e,n,o,i){let r=t.createElementNS(wo,"svg");r.setAttribute("width",v(n*i)),r.setAttribute("height",v(o*i)),r.setAttribute("viewBox",`0 0 ${v(n)} ${v(o)}`),r.style.position="absolute",r.style.left="0",r.style.top="0",r.style.overflow="visible";let a=e.strokeHex!==null?Math.max(e.strokeWidthPt,.5/i):0,s=e.strokeCentered?0:a/2,l=t.createElementNS(wo,"path"),d=e.outline??Ro;return l.setAttribute("d",Eo(d,0,0,n,o,s,Math.min(n,o))),l.setAttribute("fill",e.fillHex!==null?`#${e.fillHex}`:"none"),e.strokeHex!==null&&(l.setAttribute("stroke",`#${e.strokeHex}`),l.setAttribute("stroke-width",v(a)),e.strokeDashPt&&l.setAttribute("stroke-dasharray",e.strokeDashPt.map(v).join(" ")),e.strokeCap&&l.setAttribute("stroke-linecap",e.strokeCap)),r.append(l),r}function Po(t,e,n){if(!n)return [t,e];let o=-n*Math.PI/180;return [t*Math.cos(o)-e*Math.sin(o),t*Math.sin(o)+e*Math.cos(o)]}function Ki(t,e,n,o,i){let r=e.shadow,a=t.cloneNode(true);a.className="docx-drawing-textbox-shadow";let s=`#${r.hex}`;(a.style.backgroundColor||r.obscured)&&(a.style.backgroundColor=s),a.style.borderColor&&(a.style.borderColor=s);for(let p of a.querySelectorAll("path"))(p.getAttribute("fill")!=="none"||r.obscured)&&p.setAttribute("fill",s),p.getAttribute("stroke")&&p.setAttribute("stroke",s);a.style.opacity=v(r.alpha);let l=e.chromeRotationDegrees,d=r.dx*o,c=r.dy*o;if(a.style.transform=`translate(${v(d)}px, ${v(c)}px)${l?` rotate(${l}deg)`:""}`,r.obscured){let[p,u]=Po(-d,-c,l),y=n.width*o,f=n.height*o,h=Eo(e.outline??Ro,i+p,i+u,y,f,0,Math.min(y,f));a.style.clipPath=`path(evenodd, 'M-100000 -100000 H100000 V100000 H-100000 Z ${h}')`;}return a}function Mo(t,e,n,o,i){let r=o.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",o.unbound||(a.dataset.drawingNodeId=e.drawingNodeId),a.setAttribute("contenteditable","false"),_(a,e.paintBounds,o.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(n.chromeByVector&&e.vectorShape){let u=oe(t,e,r);ge(a,u,e.paintBounds,chunk3OKDY5TX_cjs.O(e,e.paintBounds),r),a.append(u);}else if(n.fillHex!==null||n.strokeHex!==null){let u=t.createElement("div");u.className="docx-drawing-textbox-box",u.style.position="absolute";let y=n.outline!==void 0||n.strokeDashPt!==void 0,f=n.strokeCentered&&n.strokeHex!==null&&!y?Math.max(n.strokeWidthPt*r,.5)/2:0;u.style.left=`${s-f}px`,u.style.top=`${l-f}px`,u.style.width=`${e.width*r+2*f}px`,u.style.height=`${e.height*r+2*f}px`,u.style.boxSizing="border-box",y?u.append(zi(t,n,e.width,e.height,r)):(n.fillHex!==null&&(u.style.backgroundColor=`#${n.fillHex}`),n.strokeHex!==null&&(u.style.border=`${Math.max(n.strokeWidthPt*r,.5)}px solid #${n.strokeHex}`)),n.chromeRotationDegrees&&(u.style.transform=`rotate(${n.chromeRotationDegrees}deg)`),n.shadow&&a.append(Ki(u,n,e,r,f)),a.append(u);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+n.contentOffset.x*r}px`,d.style.top=`${l+n.contentOffset.y*r}px`,d.style.width=`${n.contentWidth*r}px`,d.style.height=`${Math.max(0,n.contentHeight)*r}px`,d.style.overflow="hidden";let c=n.contentRotation;if(c){let u=(c.pivot.x-n.contentOffset.x)*r,y=(c.pivot.y-n.contentOffset.y)*r;d.style.transformOrigin=`${u}px ${y}px`,d.style.transform=`rotate(${c.degrees}deg)`;}for(let u of n.fragments)d.append(o.paintStoryFragment(t,u));for(let u of d.querySelectorAll("[data-paragraph-id]"))u.dataset.textboxParagraphId=u.dataset.paragraphId,delete u.dataset.paragraphId;a.append(d);let p=n.chromeByVector?void 0:n.shadow;if(p&&!p.obscured&&n.fillHex===null){let u=Math.round(p.alpha*255).toString(16).padStart(2,"0"),[y,f]=Po(p.dx*r,p.dy*r,n.contentRotation?.degrees);d.style.filter=`drop-shadow(${v(y)}px ${v(f)}px 0 #${p.hex}${u})`;}return I(a,e,false),a}var Lo=["chart","diagram","shape","group","textbox","canvas","graphic"],ji=new Map([["chart","Chart not shown"],["diagram","Unsupported diagram"],["shape","Unsupported shape"],["group","Unsupported shape group"],["textbox","Unsupported text box"],["canvas","Unsupported drawing canvas"],["graphic","Unsupported graphic"]]);function Ao(t){return Lo.includes(t)?t:"graphic"}function vt(t){return [t.missingResource,t.externalResource,t.invalidResource,t.contentMismatch,t.decodeFailed,t.resourceLimit,t.pendingResource,t.unsupportedFormat("probe"),...Lo.map(e=>t.nonPictureGraphic(e))].join("\0")}var Ke=Object.freeze({unsupportedFormat:t=>`Unsupported image format (${t})`,nonPictureGraphic:t=>ji.get(Ao(t)),missingResource:"Image missing",externalResource:"External image not loaded",invalidResource:"Invalid image",contentMismatch:"Image content does not match its type",decodeFailed:"Image could not be decoded",resourceLimit:"Image exceeds size limits",pendingResource:"Loading image"});function Wi(t){return Object.freeze({unsupportedFormat:e=>t("image.unsupportedFormat",{format:e}),nonPictureGraphic:e=>t(`image.placeholder.${Ao(e)}`),missingResource:t("image.missingResource"),externalResource:t("image.externalResource"),invalidResource:t("image.invalidResource"),contentMismatch:t("image.contentMismatch"),decodeFailed:t("image.decodeFailed"),resourceLimit:t("image.resourceLimit"),pendingResource:t("image.pendingResource")})}var Vi=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Xi="Unknown",We=new WeakMap,je=new WeakMap,qi=256;function Ho(t,e){let n=We.get(t);if(n)return n;let o=new Map,i=new Map;return n=Object.freeze({urlForReady(r,a){let s=o.get(r.resourceKey);if(s)return s;let l;try{l=e.create(r,a);}catch(d){if(d instanceof Error&&d.message.startsWith("PaintImageUrlSource:"))return null;throw d}return o.set(r.resourceKey,l),l},imageFor(r,a,s){let l=i.get(r);if(l&&l.resourceKey===a)return l.element;let d=s.createElement("img");return i.size<qi&&i.set(r,{element:d,resourceKey:a,...l?.readyElement?{readyElement:l.readyElement}:{}}),d},imageForPending(r){return i.get(r)?.element??null},readyElementFor(r){return i.get(r)?.readyElement??null},rememberReadyElement(r,a){let s=i.get(r);s&&i.set(r,{...s,readyElement:a});},reconcile(r,a){let s=new Set;for(let[l,d]of i)a.has(l)&&s.add(d.resourceKey);for(let[l,d]of o)r.has(l)||s.has(l)||(e.revoke(d),o.delete(l));for(let[l,d]of i)a.has(l)||(d.element.removeAttribute("src"),i.delete(l));},revokeAll(){for(let r of o.values())e.revoke(r);o.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),We.set(t,n),n}function St(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function jl(t){We.get(t)?.revokeAll(),We.delete(t);}function re(t){return Number.isFinite(t)?String(t):"0"}function Co(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let n=[];for(let o of t){if(!Number.isFinite(o.x)||!Number.isFinite(o.y))return null;let i=(o.x-e.x)/e.width*100,r=(o.y-e.y)/e.height*100;n.push(`${re(i)}% ${re(r)}%`);}return `polygon(${n.join(", ")})`}function Bo(t){let e=t.geometry.contentBounds;return chunkATU65CUF_cjs.Nf({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function Do(t,e){let{crop:n}=t,o=Math.max(0,Math.min(1,n.left)),i=Math.max(0,Math.min(1,n.top)),r=Math.max(0,Math.min(1,n.right)),a=Math.max(0,Math.min(1,n.bottom)),s=Math.max(1e-4,1-o-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${re(1/s*100)}%`,height:`${re(1/l*100)}%`,left:`${re(-o/s*100)}%`,top:`${re(-i/l*100)}%`})}function Yi(t,e){let{resource:n}=t;switch(n.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(n.reason){case "unsupported-format":return e.unsupportedFormat(Vi.get(n.mime)??Xi);case "non-picture-graphic":return e.nonPictureGraphic(t.placeholderGraphicKind??"graphic");case "signature-mismatch":return e.contentMismatch;case "decode-failed":return e.decodeFailed;case "resource-limit":return e.resourceLimit;default:return e.invalidResource}default:return e.invalidResource}}function Fo(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let n=1/0,o=1/0,i=-1/0,r=-1/0;for(let a of e)n=Math.min(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:n,y:o,width:i-n,height:r-o}}function Zi(t,e,n,o,i){let r=t.paintBounds,a=Fo(t),s=Do(t);return [o,n.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,Co(t.geometry.clipPolygon??[],r)??"",ht(t.effects)??"",t.effects.bilevel??"",Bo(t)??"",s.width,s.height,s.left,s.top,n.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function be(t,e,n,o){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",n.unbound||(i.dataset.drawingNodeId=e.drawingNodeId),_(i,e.paintBounds,n.scale,o);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");a.className="docx-drawing-placeholder-label",a.textContent=Yi(e,n.strings),r.append(a);let s=n.unsupportedSource?.(e.drawingNodeId,e.ownerPartName)??null;return W(r,a,{ownerPartName:e.ownerPartName,namespaceUri:s?.namespaceUri??"http://schemas.openxmlformats.org/wordprocessingml/2006/main",localName:s?.localName??"drawing",source:s,...s?{drawingIssues:chunkNPPHSBFT_cjs.Fa(s,e.drawingNodeId),graphicKind:chunkNPPHSBFT_cjs.Ha(s,e.drawingNodeId)}:{},support:"unrendered",placement:"inline",bounds:e.paintBounds,nodeId:e.drawingNodeId,label:a.textContent,drawing:e},i),i.append(r),e.hyperlinkHref&&!n.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),I(i,e,true)):I(i,e,false),i}function Io(t,e,n,o,i,r){let a=t.createElement("div");a.className="docx-drawing-image-frame",a.style.position="absolute";let s=Fo(e),l=e.paintBounds,d=e.groupPicture!==void 0||e.vectorShape!==null||e.frameEffects!==void 0,c=Co(e.geometry.clipPolygon??[],d?s:l);c&&d&&(a.style.clipPath=c),a.style.left=`${(s.x-l.x)*o.scale}px`,a.style.top=`${(s.y-l.y)*o.scale}px`,a.style.width=`${s.width*o.scale}px`,a.style.height=`${s.height*o.scale}px`;let p=ht(e.effects);p&&(a.style.filter=p);let u=t.createElement("div");u.className="docx-drawing-transform-stage",u.style.position="relative",u.style.width="100%",u.style.height="100%";let y=Bo(e);y&&(u.style.transform=y,u.style.transformOrigin="0 0");let f=t.createElement("div");f.className="docx-drawing-crop-viewport",f.style.position="relative",f.style.width="100%",f.style.height="100%",f.style.overflow="hidden",r.className="docx-drawing-image",r.setAttribute("draggable","false"),r.getAttribute("src")!==i&&r.setAttribute("src",i),r.setAttribute("alt","");let h=Do(e);return r.style.position="absolute",r.style.width=h.width,r.style.height=h.height,r.style.left=h.left,r.style.top=h.top,r.style.maxWidth="none",r.style.maxHeight="none",f.append(r),u.append(f),a.append(u),{inner:a,outerClipPath:c&&!d?c:null}}function No(t,e,n){let o=t.resource;return o.kind==="ready"&&e.imageUrlPort&&n?n.urlForReady(o.validatedHandle,o.mime):null}function Ji(t,e,n,o){let i=[];for(let r of e.groupPictureLayers??[]){let a=No(r,n,o);if(a===null||r.resource.kind!=="ready")continue;let s=t.createElement("img"),l=chunkATU65CUF_cjs.Bb(e,r);i.push(Io(t,l,r.resource,n,a,s).inner);}return i}function Qi(t,e,n,o,i,r){let a=e.resource;if(a.kind!=="ready")return be(t,e,n,r);let s=St(e,n),l=i?.readyElementFor?.(s)??t.createElement("div"),d=Zi(e,a,n,o,r),c=!e.vectorShape&&!e.frameEffects&&!e.groupPictureLayers;if(c&&je.get(l)===d)return l;l.hasAttribute("data-docx-unsupported")&&$e(l),l.className="docx-drawing docx-drawing-ready",l.style.cssText="",n.unbound||(l.dataset.drawingNodeId=e.drawingNodeId),delete l.dataset.docxDrawingLink,delete l.dataset.docxDrawingLinkKind,delete l.dataset.docxDrawingLinkHref,l.removeAttribute("aria-hidden"),l.removeAttribute("aria-label"),l.removeAttribute("role"),l.removeAttribute("tabindex"),_(l,e.paintBounds,n.scale,r);let p=Io(t,e,a,n,o,i?.imageFor?.(s,a.resourceKey,t)??t.createElement("img")),u=p.inner;if(p.outerClipPath&&(l.style.clipPath=p.outerClipPath),l.replaceChildren(u,...Ji(t,e,n,i)),e.frameEffects){let y=e.frameEffects.softEdgeEmu??0;po(u,y/12700*n.scale),yo(t,l,u,e,n.scale);}if(e.vectorShape){let y=ze(e)||e.groupPicture!==void 0,f=chunk3OKDY5TX_cjs.O(e,e.paintBounds),h=oe(t,e,n.scale,y?g=>g.belowPicture!==true:void 0);if(ge(l,h,e.paintBounds,f,n.scale),l.append(h),y&&e.vectorShape.components.some(g=>g.belowPicture)){let g=oe(t,e,n.scale,m=>m.belowPicture===true);g.style.pointerEvents="none",l.insertBefore(g,u);}}return ao(t,l,u,e.effects.bilevel),e.hyperlinkHref&&!n.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),I(l,e,true)):I(l,e,false),i?.rememberReadyElement?.(s,l),c?je.set(l,d):je.delete(l),l}function ea(t,e,n,o,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",n.unbound||(r.dataset.drawingNodeId=e.drawingNodeId);let a=e.paintBounds;_(r,a,n.scale,i);let s=oe(t,e,n.scale);return ge(r,s,a,o,n.scale),r.append(s),e.hyperlinkHref&&!n.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),I(r,e,true)):I(r,e,false),r}function ta(t,e,n){let o=n.revisionStyles,i=Q(e.revisions,o?.authorSlots,o?.styles);if(!i){if(t.dataset.revisionKind===void 0)return;t.classList.remove("docx-drawing--revision","docx-drawing--revision-insertion","docx-drawing--revision-deletion"),delete t.dataset.revisionKind,delete t.dataset.revisionId,delete t.dataset.reviewAuthor,delete t.dataset.revisionDate,delete t.dataset.reviewAuthorSlot;return}let{attribution:r}=i;t.classList.add("docx-drawing--revision",i.deleted?"docx-drawing--revision-deletion":"docx-drawing--revision-insertion"),t.classList.remove(i.deleted?"docx-drawing--revision-insertion":"docx-drawing--revision-deletion"),t.dataset.revisionKind=r.kind,t.dataset.revisionId=r.id,r.author!==""?t.dataset.reviewAuthor=r.author:delete t.dataset.reviewAuthor,r.date!==void 0?t.dataset.revisionDate=r.date:delete t.dataset.revisionDate,o?t.dataset.reviewAuthorSlot=String((o.authorSlots.get(r.author)??0)%C):delete t.dataset.reviewAuthorSlot;}function Oo(t,e,n,o,i){let r=na(t,e,n,o,i);return r&&(io(r,e,n.includePartial===true,n.includePartial?n.unsupportedSource?.(e.drawingNodeId,e.ownerPartName)??null:null),ta(r,e,n)),r}function na(t,e,n,o,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunk3OKDY5TX_cjs.O(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.textboxStory!==void 0&&n.paintStoryFragment!==void 0)return Mo(t,e,e.textboxStory,n,i);if(e.textArt)return ko(t,{...e,textArt:e.textArt},n.scale,!!n.unbound,i);let a=!!e.groupTextboxStories&&!e.groupPicture&&!e.vectorShape,s=e.vectorShape?.components.length===0&&e.groupPicture===void 0&&!ze(e);if(a||s){let u=t.createElement("div");return u.className=a?"docx-drawing docx-drawing-group-frame":"docx-drawing docx-drawing-empty-frame",n.unbound||(u.dataset.drawingNodeId=e.drawingNodeId),_(u,e.paintBounds,n.scale,i),I(u,e,false),u}let{resource:l}=e,d=l.kind==="ready"&&n.imageUrlPort&&o?o.urlForReady(l.validatedHandle,l.mime):null,c=e.groupPictureLayers?.some(u=>u.resource.kind!=="pending"&&No(u,n,o)===null);if(e.groupPicture&&(l.kind!=="pending"&&!d||c))return be(t,e,n,i);let p=e.groupPicture!==void 0&&d!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!p&&!ze(e))return ea(t,e,n,r,i);if(l.kind==="ready")return !d||!o?be(t,e,n,i):Qi(t,e,n,d,o,i);if(l.kind==="pending"){let u=o?.readyElementFor?.(St(e,n))??o?.imageForPending?.(St(e,n))?.closest(".docx-drawing-ready");return u?(je.delete(u),n.unbound||(u.dataset.drawingNodeId=e.drawingNodeId),_(u,e.paintBounds,n.scale,i),u):be(t,e,n,i)}return be(t,e,n,i)}function Uo(t,e,n,o,i){let r=[];for(let a of e.drawings??[]){let s=Oo(t,a,n,o,i);s&&r.push(s);let l=bt(t,a,n,i);l&&r.push(l);}return Object.freeze(r)}function _o(t,e,n,o,i,r){let a=[];for(let s of e){if(chunkATU65CUF_cjs.uc(s)!==n)continue;let l=Oo(t,s,o,i,r);l&&(l.dataset.drawingLayer=n,a.push(l));let d=bt(t,s,o,r);d&&(d.dataset.drawingLayer=n,a.push(d));}return Object.freeze(a)}var To=new WeakMap;function oa(t){let e=To.get(t);if(e)return e;let n=[],o=[];chunkATU65CUF_cjs.Na(t,({host:r})=>{(!("anchoredDrawings"in r)||(r.anchoredDrawings?.length??0)===0)&&fe(r.fragments).drawingFree||(chunkATU65CUF_cjs.Pa(r,a=>{a.resource.kind==="ready"&&n.push(a.resource.resourceKey);for(let s of a.groupPictureLayers??[])s.resource.kind==="ready"&&n.push(s.resource.resourceKey);o.push(`p${t.index}|${a.drawingNodeId}`);}),chunkATU65CUF_cjs.Ra(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&n.push(s.resource.resourceKey);}));});let i=Object.freeze({resourceKeys:Object.freeze(n),elementKeys:Object.freeze(o)});return To.set(t,i),i}var $o=new WeakMap;function Go(t){let e=$o.get(t);if(e)return e;let n=new Set,o=new Set;for(let r of t.pages){let a=oa(r);for(let s of a.resourceKeys)n.add(s);for(let s of a.elementKeys)o.add(s);}let i=Object.freeze({resourceKeys:n,elementKeys:o});return $o.set(t,i),i}function zo(t){return Go(t).resourceKeys}function Ko(t){return Go(t).elementKeys}function jo(t,e,n){t.style.position="absolute",t.style.pointerEvents="none",t.style.left=`${e.x*n}px`,t.style.top=`${e.y*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`;}function ie(t,e,n,o){let i=t.createElement("span");return i.className=e,i.setAttribute("aria-hidden","true"),i.style.position="absolute",i.style.display="block",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function ra(t,e,n,o,i,r){let a=Math.hypot(e.x2-e.x1,e.y2-e.y1),s=Math.atan2(e.y2-e.y1,e.x2-e.x1),l=ie(t,"docx-equation-box-strike",{x:n+e.x1,y:o+e.y1-i/2,width:a,height:i},r);return l.style.transformOrigin=`0 ${i/2*r}px`,l.style.transform=`rotate(${s}rad)`,l}function ia(t,e){return t.kind==="text"&&e.kind==="text"&&t.runStyle!==void 0&&t.runStyle===e.runStyle&&t.fontSizePt===e.fontSizePt&&t.box.y===e.box.y&&t.box.height===e.box.height&&t.baseline===e.baseline&&e.box.x>=t.box.x+t.box.width-1e-9}function aa(t,e){let n=e+1;for(;n<t.length&&ia(t[n-1],t[n]);)n++;return n-e}function sa(t,e,n,o,i,r,a,s){let l=n[0],d=n[n.length-1],c=t.createElement("span");c.className=["docx-equation-node",...[...a,"text"].map(u=>`docx-equation-${u}`)].join(" "),jo(c,{x:i+l.box.x,y:r+l.box.y,width:d.box.x+d.box.width-l.box.x,height:l.box.height},o),c.style.display="block",l.runStyle&&s&&(c.style.fontWeight=l.runStyle.bold?"bold":"normal",c.style.fontStyle=l.runStyle.italic?"italic":"normal",s(c,l.runStyle)),c.style.fontSize=`${l.fontSizePt*o}px`,c.style.lineHeight=`${l.box.height*o}px`,c.style.whiteSpace="pre",c.append(t.createTextNode(l.text));let p=l.box.x+l.box.width;for(let u of n.slice(1)){let y=t.createElement("span");y.style.display="inline-block";let f=u.box.x-p;f>1e-9&&(y.style.marginLeft=`${f*o}px`),y.textContent=u.text,c.append(y),p=u.box.x+u.box.width;}e.append(c);}function L(t,e,n,o,i,r=0,a=0,s=[],l="0",d){let c=r+n.box.x,p=a+n.box.y,u=[...s,n.kind];switch(n.kind){case "text":case "fallback":{let y=t.createElement("span");if(y.className=["docx-equation-node",...u.map(f=>`docx-equation-${f}`)].join(" "),jo(y,{x:c,y:p,width:n.box.width,height:n.box.height},i),y.textContent=n.text,y.style.display="block",n.runStyle&&d&&(y.style.fontWeight=n.runStyle.bold?"bold":"normal",y.style.fontStyle=n.runStyle.italic?"italic":"normal",d(y,n.runStyle)),y.style.fontSize=`${n.fontSizePt*i}px`,y.style.lineHeight=`${n.box.height*i}px`,y.style.whiteSpace="pre",n.kind==="fallback"){y.style.pointerEvents="auto";let f=t.createElement("span");f.textContent=n.text,y.textContent="",y.append(f),W(y,f,{ownerPartName:o.ownerPartName??"",namespaceUri:o.unsupportedSource?.namespaceUri??"http://schemas.openxmlformats.org/officeDocument/2006/math",localName:o.unsupportedSource?.localName??"oMath",source:o.unsupportedSource??null,placement:"inline",bounds:{x:c,y:p,width:n.box.width,height:n.box.height},nodeId:o.sourceNodeId,label:n.text,equation:o},void 0,l);}e.append(y);break}case "row":for(let y=0;y<n.items.length;y++){let f=aa(n.items,y);if(f>1){sa(t,e,n.items.slice(y,y+f),i,c,p,u,d),y+=f-1;continue}L(t,e,n.items[y],o,i,c,p,u,`${l}.${y}`,d);}break;case "fraction":L(t,e,n.numerator,o,i,c,p,u,`${l}.numerator`,d),e.append(ie(t,"docx-equation-fraction-bar",{...n.bar,x:c+n.bar.x,y:p+n.bar.y},i)),L(t,e,n.denominator,o,i,c,p,u,`${l}.denominator`,d);break;case "radical":L(t,e,n.sign,o,i,c,p,u,`${l}.sign`,d),n.degree&&L(t,e,n.degree,o,i,c,p,u,`${l}.degree`,d),e.append(ie(t,"docx-equation-radical-bar",{...n.bar,x:c+n.bar.x,y:p+n.bar.y},i)),L(t,e,n.radicand,o,i,c,p,u,`${l}.radicand`,d);break;case "bar":L(t,e,n.body,o,i,c,p,u,`${l}.body`,d),e.append(ie(t,"docx-equation-bar",{...n.bar,x:c+n.bar.x,y:p+n.bar.y},i));break;case "borderBox":L(t,e,n.body,o,i,c,p,u,`${l}.body`,d);for(let y of n.rules)e.append(ie(t,"docx-equation-box-rule",{...y,x:c+y.x,y:p+y.y},i));for(let y of n.diagonals)e.append(ra(t,y,c,p,n.thickness,i));break;case "script":L(t,e,n.base,o,i,c,p,u,`${l}.base`,d),n.subscript&&L(t,e,n.subscript,o,i,c,p,u,`${l}.subscript`,d),n.superscript&&L(t,e,n.superscript,o,i,c,p,u,`${l}.superscript`,d);break;case "nary":L(t,e,n.operator,o,i,c,p,u,`${l}.operator`,d),n.lowerLimit&&L(t,e,n.lowerLimit,o,i,c,p,u,`${l}.lowerLimit`,d),n.upperLimit&&L(t,e,n.upperLimit,o,i,c,p,u,`${l}.upperLimit`,d),L(t,e,n.body,o,i,c,p,u,`${l}.body`,d);break}}function la(t,e,n,o,i,r,a){let s=n.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=n.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),n.fallbackText&&e.setAttribute("aria-label",n.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${s.box.width*o}px`,e.style.height=`${s.box.height*o}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(s.box.height-s.baseline)*o}px`;let l=t.createDocumentFragment();L(t,l,s,{...n,unsupportedSource:r??null,...a?{ownerPartName:a}:{}},o,0,0,[],"0",i),e.append(l);}function Wo(t,e,n,o,i){la(t,e,n,o.scale,i,o.unsupportedSource?.(n.sourceNodeId),o.unsupportedOwnerPartName?.(n.sourceNodeId));}function Vo(t,e,n,o){Fe(e,n,o);let i=e.dataset.revisionKind;if(i!=="delete"&&i!=="moveFrom"&&i!=="insert"&&i!=="moveTo")return;let r=n.equation?.geometry.box;if(!r)return;let a=o.revisionMarkup?chunkATU65CUF_cjs.kb(o.revisionMarkup,i).mark:i==="delete"||i==="moveFrom"?"strikethrough":"underline",s=a==="strikethrough"||a==="doubleStrikethrough";if(!s&&a!=="underline"&&a!=="doubleUnderline")return;let l=a==="doubleStrikethrough"||a==="doubleUnderline";if(s){for(let p of e.querySelectorAll(".docx-equation-text, .docx-equation-fallback"))p.classList.add("docx-equation-revision-strike"),p.style.textDecorationLine="line-through",p.style.textDecorationStyle=l?"double":"solid",p.style.textDecorationColor="currentColor";return}let d=.75,c=l?[r.height-3*d,r.height-d]:[r.height-d];for(let p of c)e.append(ie(t,"docx-equation-revision-underline",{x:0,y:p,width:r.width,height:d},o.scale));}function Xo(t,e,n,o){if(n.glyphOffsetPt!==void 0){let s=n.style.horizontalScalePercent/100,l=n.box.width*o;e.style.width=`${l/s}px`,s!==1&&(e.style.marginRight=`${l-l/s}px`);let d=t.createElement("span");if(d.dataset.docxGlyphOffset="",s!==1){d.style.letterSpacing=`${ue(e,n,o,s)}px`;let c=O(n);c&&(d.style.wordSpacing=`${-c*o}px`);}if(n.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${n.glyphOffsetPt*o/s}px`;d.style.setProperty("--docx-glyph-ink-offset",c),e.style.color&&e.style.color!=="inherit"&&d.style.setProperty("--docx-glyph-ink-color",e.style.color),d.style.textShadow=`${c} 0 currentColor`;}return e.append(d),d}let i=n.lineEndWhitespace===true;(n.style.horizontalScalePercent!==100||n.text===" "||i||n.text.length===1&&chunkATU65CUF_cjs.z(n.text))&&(e.style.width=`${n.box.width*o}px`);let r=n.style.shaping!==void 0&&n.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),n.style.horizontalScalePercent===100))return e;let a=t.createElement("span");if(a.dataset.docxClippedFill="",a.style.display="inline-block",a.style.transform=e.style.transform,a.style.transformOrigin=e.style.transformOrigin,r){let s=n.style.horizontalScalePercent/100;a.style.width=`${n.box.width*o/s}px`,a.style.letterSpacing=`${ue(e,n,o,s)}px`;let l=(n.style.shaping?.wordSpacingPt??0)*o/s-O(n)*o;l&&(a.style.wordSpacing=`${l}px`),a.style.direction=n.style.shaping?.direction??"ltr",a.style.transformOrigin=a.style.direction==="rtl"?"right":"left";}return a.style.textDecorationLine=e.style.textDecorationLine,a.style.textDecorationStyle=e.style.textDecorationStyle,a.style.textDecorationColor=e.style.textDecorationColor,a.style.textDecorationThickness=e.style.textDecorationThickness,a.style.textUnderlineOffset=e.style.textUnderlineOffset,e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("text-decoration-line"),e.style.removeProperty("text-decoration-style"),e.style.removeProperty("text-decoration-color"),e.style.removeProperty("text-decoration-thickness"),e.style.removeProperty("text-underline-offset"),e.append(a),a}function qo(t,e,n){let o=e.textOutline;if(!o||!Number.isFinite(n)||n<=0||!Number.isFinite(o.widthPt)||o.widthPt<=0||o.widthPt>1584||!/^[0-9a-f]{6}$/i.test(o.color))return;let i=o.widthPt*n;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${o.color}`));}var da=/^[0-9A-Fa-f]{6}$/;function ca(t,e,n){let o=t.createElement("div");o.className=`docx-page-border docx-page-border-${e.side}`,o.setAttribute("aria-hidden","true"),o.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*n,a=Ie(e.edge.val)?r:Math.max(1,r),s=a-r;o.style.left=`${e.box.x*n-(e.side==="right"?s:0)}px`,o.style.top=`${e.box.y*n-(e.side==="bottom"?s:0)}px`,o.style.width=i?`${a}px`:`${e.box.width*n}px`,o.style.height=i?`${e.box.height*n}px`:`${a}px`;let l=e.edge.color&&da.test(e.edge.color)?e.edge.color:"000000";return o.style.backgroundColor=`#${l}`,te(o,e.edge.val,l,i,a,n),o}function Yo(t,e,n){let o=t.createElement("div");o.className="docx-page-borders",o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.inset="0",o.style.pointerEvents="none";for(let i of e.strokes)o.append(ca(t,i,n));return o}var Zo="http://www.w3.org/2000/svg";function Jo(t,e,n,o){let i=n?.diagonals;if(!i?.length)return;let r=i[0],a=t.createElementNS(Zo,"svg");a.classList.add("docx-table-cell-diagonals"),a.setAttribute("aria-hidden","true"),a.setAttribute("focusable","false"),a.setAttribute("contenteditable","false"),a.setAttribute("viewBox",`0 0 ${r.clipWidth} ${r.clipHeight}`),a.setAttribute("width",String(r.clipWidth*o)),a.setAttribute("height",String(r.clipHeight*o)),Object.assign(a.style,{position:"absolute",left:"0",top:"0",overflow:"hidden",pointerEvents:"none",zIndex:"1"});for(let s of i){let l=t.createElementNS(Zo,"line");l.dataset.diagonal=s.direction;for(let d of ["x1","y1","x2","y2"])l.setAttribute(d,String(s[d]));l.setAttribute("stroke",`#${s.color??"000000"}`),l.setAttribute("stroke-width",String(s.widthPt)),l.setAttribute("stroke-linecap","butt"),s.cssStyle!=="solid"&&l.setAttribute("stroke-dasharray",`${s.widthPt*(s.cssStyle==="dotted"?1:3)} ${s.widthPt*2}`),a.append(l);}e.append(a);}var ua=/^[0-9A-Fa-f]{6}$/;function pa(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function Rt(t){return t&&ua.test(t)?t:"000000"}function kt(t,e){let n=t.createElement("div");return n.className=e,n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.right="0",n.style.bottom="0",n.style.overflow="visible",n.style.pointerEvents="none",n.style.boxSizing="border-box",n}function ya(t,e,n,o){if(!n)return;let i=`#${Rt(n.color)}`,r=`${Math.max(0,n.widthPt*o)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,n.style==="double"||n.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=pa(n.style);}function wt(t,e,n,o,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=n.side,r.dataset.stroke=n.role,r.style.position="absolute",r.style.left=`${n.x*o}px`,r.style.top=`${n.y*o}px`,r.style.width=`${n.width*o}px`,r.style.height=`${n.height*o}px`,r.style.pointerEvents="none",n.cssStyle==="solid")r.style.backgroundColor=`#${Rt(n.color)}`;else {let a=n.side==="top"||n.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?n.height:n.width)*o}px ${n.cssStyle} #${Rt(n.color)}`;}return e.append(r),r}function fa(t){let e=new Set;for(let n of t)e.add(`${n.side}\0${n.role}`);return e}function ha(t,e,n,o){let i=fa(n),r=y=>i.has(`${y}\0middle`),a=kt(t,"docx-table-border-double"),s=kt(t,"docx-table-border-triple"),l=kt(t,"docx-table-border-edge");for(let y of [a,s,l])y.style.zIndex="1";let d=false,c=false,p=false,u=[];for(let y of n){if(y.role==="edge"){p=true,u.push(wt(t,l,y,o,"docx-table-border-edge-stroke"));continue}if(r(y.side)){c=true,u.push(wt(t,s,y,o,"docx-table-border-triple-stroke"));continue}(y.role==="outer"||y.role==="inner")&&(d=true,u.push(wt(t,a,y,o,"docx-table-border-double-stroke")));}return d&&e.append(a),c&&e.append(s),p&&e.append(l),u}function Qo(t,e,n,o){Jo(t,e,n,o);let i=new Set((n?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;ya(e,a,n?.[r],o),i.has(r)&&(e.style[`border${a}Style`]="none");}if(n?.strokes&&n.strokes.length>0)return ha(t,e,n.strokes,o)}function er(t,e,n){e.revisionKind&&(n&&(t.style.backgroundColor="transparent"),t.classList.add("docx-table-row--revision",e.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),t.dataset.revisionKind=e.revisionKind,e.revisionId!==void 0&&(t.dataset.revisionId=e.revisionId),e.revisionAuthor!==void 0&&(t.dataset.reviewAuthor=e.revisionAuthor),e.revisionDate!==void 0&&(t.dataset.revisionDate=e.revisionDate));}var ma=2e4;function ga(t,e){let n=Object.keys(t);if(n.length!==Object.keys(e).length)return false;for(let o of n)if(t[o]!==e[o])return false;return true}function ba(t,e){if(t.length!==e.length)return false;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return false;return true}function xa(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&ba(t,e)||typeof t=="object"&&typeof e=="object"&&t!==null&&e!==null&&!Array.isArray(t)&&!Array.isArray(e)&&ga(t,e)?true:Rn(t,e,ma)}function tr(t,e){if(t===e)return null;let n=false,o=false,i=new Set([...Object.keys(t),...Object.keys(e)]);for(let r of i){if(r==="pageFieldSource")continue;let a=t[r],s=e[r];if(r==="fragments"){n||=a!==s;continue}if(!xa(a,s)){if((r==="header"||r==="footer")&&a&&s){o=true;continue}return null}}return {blocks:n,furniture:o}}function va(t){let e=t.dataset;return e.docxHfBehind!==void 0||e.docxHfHover!==void 0||e.docxHfFront!==void 0||e.docxHf!==void 0&&!t.classList.contains("docx-hf--placeholder")}function nr(t,e,n,o){let i=[],r=[];for(let c of e.children)c.dataset.docxHfHint!==void 0?r.push(c):va(c)&&i.push(c);if(i.length===0)return false;let a=t.createElement("div"),s=_e(t,a,n,o);if(s.length>0&&r.length===0)return false;let l=i[0];for(let c of [...a.children])e.insertBefore(c,l);let d=r.at(-1)?.nextSibling??null;for(let c of s)e.insertBefore(c,d);for(let c of [...i,...r])c.remove();return true}function or(t,e,n,o){if(e.textDirection!=="btLr")return o;let i=t.createElement("div");return i.className="docx-table-cell-content-btlr",i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width=`${e.box.height*n}px`,i.style.height=`${e.box.width*n}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*n}px) rotate(-90deg)`,o.append(i),i}function rr(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function Et(t,e,n){if(t===e)return true;if(--n.left<0||typeof t!="object"||typeof e!="object"||t===null||e===null)return false;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return false;for(let i=0;i<t.length;i+=1)if(!Et(t[i],e[i],n))return false;return true}if(Array.isArray(e)||!rr(t)||!rr(e))return false;let o=Object.keys(t);if(o.length!==Object.keys(e).length)return false;for(let i of o){if(!Object.prototype.hasOwnProperty.call(e,i))return false;let r=t[i],a=e[i];if(!Et(r,a,n))return false}return true}function ir(t,e,n){for(let[o,i]of t)if(!(o.id!==e.id||n.includes(i)))return Et(o,e,{left:2e4})?i:void 0}var Pt="when-selected",ar=new WeakMap,sr=0;function lr(t){let e=ar.get(t);return e||(sr+=1,e=`alias${sr}`,ar.set(t,e)),e}function gr(t){return {...t,drawingStrings:t.drawingStrings??Ke,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function Sa(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,includePartial:t.includePartial,...t.unsupportedSource?{unsupportedSource:t.unsupportedSource}:{},strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},...t.unbound?{unbound:true}:{},paintStoryFragment:(n,o,i)=>{let r=i?.readOnly?{...e,unbound:true}:e;return o.kind==="table"?X(n,o,r):V(n,o,r)}})}function br(t){return Object.freeze({ctx:Sa(t),urlRegistry:t.urlRegistry})}function dr(t,e,n,o,i,r){xr(t,e,chunkATU65CUF_cjs.Ma(n),o,i,r);}function xr(t,e,n,o,i,r,a=true,s){if(n.length===0)return;let l=br(o),d=t.createElement("div");d.className=r==="behind"?"docx-drawing-layer docx-drawing-layer-behind":"docx-drawing-layer docx-drawing-layer-front",d.style.position="absolute",d.style.inset="0",d.style.pointerEvents="none",s&&(d.dataset.docxHfFront=s);for(let c of _o(t,n,r,l.ctx,l.urlRegistry,i)){if(c.style.pointerEvents=a?"auto":"none",!a)for(let p of c.querySelectorAll(".docx-drawing"))p.style.pointerEvents="none";d.append(c);}d.childElementCount>0&&e.append(d);}var se=/^[0-9A-Fa-f]{6}$/,cr=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,ka=new Map(Object.entries({single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"})),wa=new Map(Object.entries({black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"}));function Ra(t){return t.doubleStrike?"double":t.strike?"single":"none"}function Ea(t){return t==="thick"||t.endsWith("Heavy")}function vr(t){if(!t.underline)return null;let e=t.underline.color&&se.test(t.underline.color)?t.underline.color:null;return {cssStyle:ka.get(t.underline.variant)??"solid",color:e,heavy:Ea(t.underline.variant)}}function Sr(t,e,n,o){t.textDecorationLine=e,t.textDecorationStyle=n,o.color&&(t.textDecorationColor=`#${o.color}`),o.heavy&&(t.textDecorationThickness=`max(${2*o.scale}px, 0.12em)`);}function ur(t,e,n){e!=="none"&&Sr(t,"line-through",e==="double"?"double":"solid",{scale:n});}function pr(t,e,n){Sr(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:n});}function Pa(t,e,n){let o=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*n}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=o;}function ae(t,e,n){let o=t.style,i=n.scale;qo(o,e,i);let r=chunkATU65CUF_cjs.ra(e);o.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(o.fontWeight="bold"),e.italic&&(o.fontStyle="italic");let a=e.fontFamily&&cr.test(e.fontFamily)?e.fontFamily:n.defaultFontFamily&&cr.test(n.defaultFontFamily)?n.defaultFontFamily:null;if(a){let d=n.fontAlias?.(a),c=chunk3OKDY5TX_cjs.U(a,void 0,n.serifHangulFace);o.fontFamily=d?`"${d}", "${a}", ${c}`:`"${a}", ${c}`;}e.color&&se.test(e.color)&&(o.color=`#${e.color}`);let s=e.highlight?wa.get(e.highlight):void 0;s?(o.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&se.test(e.shading)&&(o.backgroundColor=`#${e.shading}`,o.color||(o.color=chunkATU65CUF_cjs.M(e.shading)?"#FFFFFF":"#000000")),e.caps&&(o.textTransform="uppercase"),o.fontKerning=chunkATU65CUF_cjs.w(e)?"normal":"none",e.smallCaps&&(o.fontVariant="small-caps");let l=chunkATU65CUF_cjs.qa(e);l!==0&&(o.position="relative",o.top=`${-l*i}px`),e.characterSpacingPt!==0&&(o.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(o.transformOrigin="left",o.transform=`scaleX(${e.horizontalScalePercent/100})`);}function kr(t,e,n,o,i){let r=n===" "?null:vr(o),a=Ra(o),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",pr(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",ur(d.style,a,i),l.append(d),e.append(l),s=d;}else r?pr(e.style,r,i):a!=="none"&&ur(e.style,a,i);return s.textContent=n,s}function G(t,e,n,o){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i}function Ma(t,e,n){let o=e.fieldAtom;!o||(t.dataset.fieldAtom=o.formField?"form":"field",o.resultStart!==void 0&&o.resultEnd!==void 0&&(t.dataset.fieldResultStart=String(o.resultStart),t.dataset.fieldResultEnd=String(o.resultEnd)),!(o.formField?n.shadeFormFields!==false:(n.fieldShading??Pt)!=="never"))||(t.classList.add("docx-field-atom"),(o.formField||(n.fieldShading??Pt)==="always")&&t.classList.add("docx-field-atom--shaded"));}function La(t,e,n,o,i){let r=t.createElement("span"),a=chunkATU65CUF_cjs.Ga(e.style,e.fontSlot);if(e.unsupported)return hn(t,e.unsupported,e.box,n.scale);if(e.equation)return n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)),ae(r,a,n),Wo(t,r,e.equation,n,(d,c)=>ae(d,c,n)),Vo(t,r,e,n),r;r.className="layout-run layout-run-text",r.style.display="inline-block",r.style.verticalAlign="baseline",r.style.boxSizing="border-box",r.style.height=`${o*n.scale}px`,r.style.paddingTop=`${i*n.scale}px`,r.style.lineHeight=`${(o-i)*n.scale}px`,e.range.end>e.range.start?n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)):(r.setAttribute("aria-hidden","true"),r.contentEditable="false"),ae(r,a,n),cn(r,e,n.scale),chunkATU65CUF_cjs.y(a,e.text)||(r.style.fontKerning="none"),Ma(r,e,n),Fe(r,e,n);let s=Xo(t,r,e,n.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let d=vr(e.style);d&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",Pa(r.style,d,n.scale));}let l=kr(t,s,chunkATU65CUF_cjs.Td(e),e.style,n.scale);return un(t,r,l,e,n.scale),In(r,e,n.scale),Fn(r,e),e.projected&&(r.dataset.docxField="",r.setAttribute("contenteditable","false"),e.noteNav?(r.style.userSelect="none",e.noteNav.direction==="to-note"?(r.dataset.docxNoteRef="",r.dataset.docxNoteScope=e.noteNav.scopeId,e.text.length>0&&r.setAttribute("aria-description",e.text)):(r.dataset.docxNoteMarkBack="",r.dataset.docxNoteScope=e.noteNav.scopeId)):e.fieldAtom?.formControl?(r.style.userSelect="none",r.style.cursor="pointer"):(r.style.pointerEvents="none",r.style.userSelect="none")),r}function yr(t,e,n){let o=t.createElement("a");return o.className="docx-hyperlink",o.style.cursor=!n.inertLinks&&e.href?"pointer":"default",o.dataset.docxLink=e.id,o.dataset.docxLinkKind=e.kind,o.setAttribute("tabindex","-1"),!n.inertLinks&&e.href&&(o.setAttribute("href",e.href),e.kind==="external"&&o.setAttribute("rel","noopener noreferrer")),e.tooltip&&o.setAttribute("title",e.tooltip),o.style.display="inline-block",o.style.verticalAlign="baseline",o.style.textDecoration="none",o.style.color="inherit",o}function Aa(t,e,n,o=false,i=chunkATU65CUF_cjs.la){let r=n.scale,a=t.createElement("div");a.className="docx-line layout-line",a.dataset.lineId=e.id,n.unbound||(a.dataset.paragraphId=e.range.paragraphId),a.style.position="absolute",a.style.top=`${e.box.y*r}px`,a.style.left=`${e.contentX*r}px`,a.style.height=`${e.box.height*r}px`,a.style.fontSize="0",a.style.whiteSpace="pre",a.style.setProperty("text-decoration-skip-ink","none"),a.style.setProperty("text-decoration-skip-spaces","none"),a.style.overflow="visible";let s=e.leading??0,l=Math.min(Math.max(s,...e.spans.map(b=>b.box.height+s),e.spans.length===0?e.box.height-(e.trailingSpacing??0):0),e.box.height),d=Math.max(0,e.box.height-l);a.style.boxSizing="border-box",a.style.paddingBottom=`${d*r}px`,a.style.lineHeight=`${(e.box.height-d)*r}px`;let c=null,p=null,u=null,y=new Map;for(let[b,x]of chunkATU65CUF_cjs.Ya(e).entries())y.set(x.paragraphId,b);let f=b=>y.get(b)??0,h=[...e.drawings??[]].sort((b,x)=>f(b.paragraphId)-f(x.paragraphId)||b.start-x.start),g=0,m=e.spans.some(b=>b.style.shaping!==void 0)||(e.drawings??[]).some(chunkATU65CUF_cjs.dc),k=0,S=e.contentX,R=(b,x)=>{for(;g<h.length&&(f(h[g].paragraphId)<f(b)||f(h[g].paragraphId)===f(b)&&h[g].start<x);){let w=h[g],A=m?Math.max(0,w.advanceEnd-w.advanceStart):Math.max(0,w.advanceEnd-S);S=Math.max(S,w.advanceEnd);let P=t.createElement("span");P.className="docx-inline-drawing-advance",P.dataset.docxMarker="",n.unbound||(P.dataset.drawingParagraphId=w.paragraphId,P.dataset.drawingStart=String(w.start)),P.setAttribute("contenteditable","false"),P.setAttribute("aria-hidden","true"),P.style.display="inline-block",P.style.width=`${A*r}px`,P.style.height=`${w.baselineOffset*r}px`,P.style.lineHeight="0",P.style.pointerEvents="none",P.style.verticalAlign="baseline",a.append(P),k+=A,g+=1,c=null,p=null;}},q=b=>{let x=b.wrapAdvanceBefore??0;if(x<=.001)return;let w=t.createElement("span");w.className="docx-wrap-advance",w.dataset.docxMarker="",w.setAttribute("contenteditable","false"),w.setAttribute("aria-hidden","true"),w.style.display="inline-block",w.style.width=`${x*r}px`,w.style.height="0",w.style.lineHeight="0",w.style.pointerEvents="none",w.style.verticalAlign="baseline",a.append(w),c=null,p=null;},N=0,xe=false;for(let[b,x]of e.spans.entries()){let w=g;R(x.range.paragraphId,x.range.start),m||q(x);let A=!m&&g>w?x.box.x-S-(x.wrapAdvanceBefore??0):0;S=Math.max(S,x.box.x+x.box.width);let P=Math.min(x.box.height+s,e.box.height),E=x.noteSeparator?Bn(t,x,e,r):La(t,x,n,P,s);m&&(E.style.position="relative",E.style.left=`${(x.box.x-e.contentX-k)*r}px`,E.style.width||(E.style.width=`${x.box.width*r}px`),E.style.direction=x.style.shaping?.direction??"ltr",E.style.unicodeBidi=x.style.shaping?.override?"isolate-override":"isolate",x.style.shaping?.wordSpacingPt&&(E.style.wordSpacing=`${(x.style.shaping.wordSpacingPt-O(x))*r}px`),k+=x.box.width);let ve=N!==0&&!xe?N:A;Math.abs(ve)>.001&&(E.style.marginLeft=`${ve*r}px`);let Se=e.spans[b+1],le=m?0:wr(e,b+1,f),Y=le!==0&&Se!==void 0?Je(x,Se):null;xe=Y!==null,Y==="wordSpacing"?E.style.wordSpacing=`${(le-O(x))*r}px`:Y==="letterSpacing"&&(E.style.letterSpacing=dn(E,x,le,r)),N=le;let j=x.link;if(!j){c=null,p=null,u=null,a.append(E);continue}if(x.fieldAtom){let Lt=Ae(x);c!==null&&p===j.id&&u===Lt||(c=yr(t,j,n),p=j.id,u=Lt,a.append(c)),c.append(E);continue}(!c||p!==j.id||u!==null)&&(c=yr(t,j,n),p=j.id,u=null,a.append(c)),c.append(E);}R(chunkATU65CUF_cjs.Ya(e)[chunkATU65CUF_cjs.Ya(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),Hn(a,e,r,i,b=>ae(a,b,n));let z=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});Dn(t,a,e,r),n.showParagraphMarks&&e.manualBreakAfter&&Sn(t,e,a,r,n.revisionStyles,o);let K=br(gr(n));if(e.drawings&&e.drawings.length>0)for(let b of Uo(t,e,K.ctx,K.urlRegistry,z))a.append(b);return a}function wr(t,e,n){if(e<=0||e>=t.spans.length)return 0;let o=t.spans[e-1],i=t.spans[e],r=n(o.range.paragraphId),a=n(i.range.paragraphId);return t.drawings?.some(l=>{let d=n(l.paragraphId),c=d>r||d===r&&l.start>=o.range.start,p=d<a||d===a&&l.start<i.range.start;return c&&p})?0:Qe(o,i)}function V(t,e,n){let o=n.scale,i=G(t,"div",e.box,o);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),n.unbound||(i.dataset.paragraphId=e.paragraphId),i.dataset.fragmentIndex=String(e.fragmentIndex),n.unbound||ut(i,e),n.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),n.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&se.test(e.shading)&&e.shadingBox&&(i.append(Ha(t,e,o)),chunkATU65CUF_cjs.M(e.shading)&&(i.style.color="#FFFFFF")),e.marker&&i.append(Ta(t,e,n));for(let a of e.lines)for(let s of a.spans){if(!s.tabLeader)continue;let l=$a(t,e,a,s,n);l&&i.append(l);}let r=[];for(let a of e.lines){let s=Aa(t,a,n.revisionMarkup&&chunkATU65CUF_cjs.wb(e.props)?{...n,paragraphFormatRevision:chunkATU65CUF_cjs.wb(e.props)}:n,chunkATU65CUF_cjs.Kf(e.props),e.emptyParagraphStyle);e.markFormatRevision&&a===e.lines[e.lines.length-1]&&ut(s,e,true),s.style.top=`${(a.box.y-e.box.y)*o}px`,s.style.left=`${(a.contentX-e.box.x)*o}px`,i.append(s),r.push(s);}if(Gn(t,e,r,n,o),e.borders)for(let a of e.borders)i.append(fr(t,e,a,o));else e.bottomBorder&&i.append(fr(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},o));return i}function Ta(t,e,n){let o=e.marker,i=n.scale,r=Cn(t,e,gr(n));if(r)return r;let a=e.lines[0]?.leading??0,s=G(t,"span",o.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(o.box.x-e.box.x)*i}px`,s.style.top=`${(o.box.y-e.box.y)*i}px`,s.style.display="block",s.style.overflow="visible",s.style.whiteSpace="pre";let l=e.lines[0],d=l?Math.max(a,...l.spans.map(y=>y.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):o.box.height,c=Math.min(d,o.box.height),p=Math.max(0,o.box.height-c);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${p*i}px`,s.style.lineHeight=`${c*i}px`;let u=t.createElement("span");return u.style.display="inline-block",u.style.verticalAlign="baseline",u.style.boxSizing="border-box",u.style.height=`${c*i}px`,u.style.paddingTop=`${a*i}px`,u.style.lineHeight=`${(c-a)*i}px`,ae(u,o.style,n),o.pieces&&(u.dir="rtl"),kr(t,u,o.text,o.style,i),s.append(u),s}function $a(t,e,n,o,i){let r=o.tabLeader?chunkATU65CUF_cjs.Lb.get(o.tabLeader):void 0;if(!r||o.box.width<=0)return null;let a=i.scale,s=t.createElement("div");s.className="docx-tab-leader",s.dataset.docxTabLeader="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",o.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(o.box.x-e.box.x)*a}px`,s.style.top=`${(n.box.y-e.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${n.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=n.leading??0,d=Math.min(o.box.height+l,n.box.height),c=Math.max(0,n.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(n.box.height-c)*a}px`;let p=t.createElement("span");p.style.display="inline-block",p.style.verticalAlign="baseline",ae(p,o.style,i),p.style.boxSizing="border-box",p.style.height=`${d*a}px`,p.style.paddingTop=`${l*a}px`,p.style.lineHeight=`${(d-l)*a}px`,o.tabLeader==="heavy"&&(p.style.fontWeight="bold");let u=o.tabLeaderAdvancePt&&o.tabLeaderAdvancePt>0?o.tabLeaderAdvancePt:Math.max(.5,o.style.fontSizePt*.2),y=chunk3OKDY5TX_cjs.sa((i.tabLeaderOriginXPt??0)+o.box.x,o.box.width,u);return p.style.marginLeft=`${y.offsetPt*a}px`,p.textContent=r.repeat(y.count),p.style.letterSpacing="0",s.append(p),s}function Ha(t,e,n){let o=e.shadingBox,i=G(t,"div",o,n);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(o.x-e.box.x)*n}px`,i.style.top=`${(o.y-e.box.y)*n}px`,i.style.backgroundColor=`#${e.shading}`,i}function fr(t,e,n,o){let i=G(t,"div",n.box,o);i.className=`docx-paragraph-border docx-paragraph-border-${n.side}`,i.setAttribute("aria-hidden","true");let r=(n.box.x-e.box.x)*o,a=(n.box.y-e.box.y)*o,s=n.side==="left"||n.side==="right"||n.side==="bar",l=(s?n.box.width:n.box.height)*o,c=Ie(n.edge.val)?l:Math.max(1,l);i.style.left=`${n.side==="right"?r-(c-l):r}px`,i.style.top=`${n.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let p=n.edge.color&&se.test(n.edge.color)?n.edge.color:"000000";return i.style.backgroundColor=`#${p}`,te(i,n.edge.val,p,s,c,o),i}function Rr(t,e,n,o){let i=o.scale,r=G(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-n.x)*i}px`,r.style.top=`${(e.box.y-n.y)*i}px`,r.style.boxSizing="border-box",r.style.overflow="visible",r.dataset.cellId=e.id,r.dataset.gridColumn=String(e.gridColumn),r.dataset.gridSpan=String(e.gridSpan),e.rowSpan&&e.rowSpan>1&&(r.dataset.rowSpan=String(e.rowSpan)),e.paintInert||e.vMergeContinue)return r.dataset.vMergeContinue="true",r.style.border="none",r.style.backgroundColor="transparent",dt(r,e,r,void 0,[]),r;r.style.border="none";let a=Qo(t,r,e.borders,i);if(e.shading&&se.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`),e.revisionShading&&o.revisionMarkup){let d=o.revisionMarkup.cells[e.revisionShading];if(r.dataset.revisionCell=e.revisionShading,d!=="none"){let c=e.revisionShadingAuthor??"";r.style.backgroundColor=d==="byAuthor"?o.revisionStyles?.styles.get(c)?.color??B(o.revisionCellStyles?.authorSlots.get(c)??0):`var(--doc-revision-color-${d})`;}}let s=or(t,e,i,r),l=[];for(let d of e.blocks){let c=d.kind==="table"?X(t,d,o):V(t,d,o);c.style.left=`${(d.box.x-e.box.x)*i}px`,c.style.top=`${(d.box.y-e.box.y)*i}px`,s.append(c),l.push(c);}return dt(r,e,s,a,l),r}function hr(t,e,n,o){let i=o.scale,r=G(t,"div",e.box,i);r.className="docx-table-row",er(r,e,!!o.revisionMarkup),r.dataset.rowId=e.id,e.isHeaderRepeat&&(r.dataset.headerRepeat="true"),r.style.left=`${(e.box.x-n.box.x)*i}px`,r.style.top=`${(e.box.y-n.box.y)*i}px`,r.style.overflow="visible";for(let a of e.cells)r.append(Rr(t,a,e.box,o));return r}function X(t,e,n,o){let i=o&&$n(o,e,{scale:n.scale,showParagraphMarks:n.showParagraphMarks===true,row:l=>hr(t,l,e,n),cell:(l,d)=>Rr(t,l,d,n),block:(l,d)=>l.kind==="table"?X(t,l,n,d):V(t,l,n),gapOf:(l,d)=>wr(l,d,()=>0)});if(i)return i;let r=n.scale,a=G(t,"div",e.box,r);a.className="docx-table-fragment layout-table",a.dataset.tableId=e.tableId,a.dataset.fragmentIndex=String(e.fragmentIndex),a.style.overflow="visible";let s=new Map;for(let l of e.rows){let d=hr(t,l,e,n);s.set(l,d),a.append(d);}return An(a,e,s),a}function Er(t,e){let n=new Map;return {chrome:e,paintFragment:(o,i)=>{let r=n.get(i);return r||(r={...e,inertLinks:true,tabLeaderOriginXPt:i},n.set(i,r)),o.kind==="table"?X(t,o,r):V(t,o,r)},appendDrawings:(o,i,r,a,s,l)=>xr(t,o,i,e,r,a,s,l)}}function Ca(t,e,n,o,i){let r={...n,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=G(t,"div",e.box,r.scale);if(a.className="docx-page",zn(a),a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(o),!o)return a;let s=Object.freeze({x:-(e.contentBox.x-e.box.x),y:-(e.contentBox.y-e.box.y),width:e.box.width,height:e.box.height}),l=e.pageBorders?Yo(t,e.pageBorders,r.scale):null;l&&e.pageBorders&&(l.dataset.docxZOrder=e.pageBorders.zOrder),l&&e.pageBorders?.zOrder==="back"&&a.append(l);let d=_e(t,a,e,Er(t,r));dr(t,a,e,r,s,"behind");let c=t.createElement("div");c.className="docx-page-content",c.style.position="absolute",c.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,c.style.top=`${(e.contentBox.y-e.box.y)*r.scale}px`,c.style.width=`${e.contentBox.width*r.scale}px`,c.style.height=`${e.contentBox.height*r.scale}px`,r.activeHeaderFooterRId&&c.setAttribute("contenteditable","false");for(let y of e.columnSeparators??[]){let f=t.createElement("div");f.className="docx-column-separator",f.setAttribute("contenteditable","false"),f.style.position="absolute",f.style.left=`${y.x*r.scale}px`,f.style.top=`${y.y*r.scale}px`,f.style.width=`${y.width*r.scale}px`,f.style.height=`${y.height*r.scale}px`,f.style.backgroundColor="currentColor",f.style.pointerEvents="none",c.append(f);}let p=i?new Map:null;for(let y of e.fragments){let f=y.kind==="table"?X(t,y,r):V(t,y,r);p?.set(y,f),c.append(f);}i&&p&&(i.content=c,i.blocks=p),a.append(c),dr(t,a,e,r,s,"inFront"),l&&e.pageBorders?.zOrder==="front"&&a.append(l),Kn(t,a,e,r,V,X);for(let y of ["header","footer"]){if(e[y]||e.parityBlank)continue;let f=t.createElement("div");f.className="docx-hf docx-hf--placeholder",f.dataset.docxHf=y,f.setAttribute("contenteditable","false");let h=y==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),g=Math.min(h,Ba);if(g<=0)continue;let m=Math.max(0,Math.min(Da,h-g)),k=y==="header"?m:e.box.height-m-g;f.style.position="absolute",f.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,f.style.top=`${k*r.scale}px`,f.style.width=`${e.contentBox.width*r.scale}px`,f.style.height=`${g*r.scale}px`,a.append(f);}for(let y of d)a.append(y);jn(t,a,e,r);let u=Zn(t,e,r.scale,r.changeBars,r.changeBarsToggle,r.revisionMarkup,r.facingPages,r.revisionStyles);return u&&a.append(u),a}var Ba=30,Da=36,Mt=new WeakMap;function ic(t){Mt.delete(t);}function Fa(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}var mr="docx-column-separator";function Ia(t,e,n,o){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...o,paintInstance:`p${n.index}`,tabLeaderOriginXPt:n.contentBox.x-n.box.x},s=new Map,l=[];for(let u of n.fragments){let y=r.get(u)??ir(r,u,l)??(u.kind==="table"?X(t,u,a,Tn(r,u)):V(t,u,a));s.set(u,y),l.push(y);}let d=new Set(l),c=i.firstChild;for(;c;){let u=c.nextSibling,y=c;!d.has(y)&&y.classList?.contains(mr)!==true&&c.remove(),c=u;}let p=i.firstChild;for(;p&&p.classList?.contains(mr);)p=p.nextSibling;for(let u of l){if(u===p){p=p.nextSibling;continue}i.insertBefore(u,p);}return Jn(t,e.element,n,o.scale,o.changeBars,o.changeBarsToggle,o.revisionMarkup,o.facingPages,o.revisionStyles),{record:n,materialized:true,element:e.element,content:i,blocks:s}}function Na(t,e,n,o){let i=t.element;return !t.materialized&&Fa(t.record.box,e.box)&&i.style.left===`${e.box.x*n}px`&&i.style.top===`${e.box.y*n}px`&&i.style.width===`${e.box.width*n}px`&&i.style.height===`${e.box.height*n}px`&&i.getAttribute("aria-hidden")===(o?"true":null)}function Oa(t,e,n={}){Ua(t,e,n);}function Ua(t,e,n,o){fn(t),t.classList.toggle("docx-show-paragraph-marks",n.showParagraphMarks??false);let i=n.contentControlChrome,r=i?`${i.showAll===true?"1":"0"}:${i.activeIds?[...i.activeIds].sort().join(","):""}:${i.checkedIds?[...i.checkedIds].sort().join(","):""}:${i.tocControlIds?[...i.tocControlIds].sort().join(","):""}:${i.suppressedIds?[...i.suppressedIds].sort().join(","):""}:${i.readOnly===true?"ro":""}`:"",a=n.drawingStrings??Ke,s=n.breakMarkStrings??me,l=n.imageUrlPort!==void 0?Ho(t,n.imageUrlPort):null,d=i?.additionalBoundaries?i.additionalBoundaries.flatMap(b=>b.fragments.map(x=>`${b.id}:${x.pageIndex}:${x.box.x}:${x.box.y}:${x.box.width}:${x.box.height}`)).sort().join(","):"",c=n.readOnlyParagraphIds?[...n.readOnlyParagraphIds].sort().join(","):"",p=n.emptyTocPlaceholderIds?[...n.emptyTocPlaceholderIds].sort().join(","):"",u=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",y=rt(n.revisionStyles??(n.revisionMarkup?"author":void 0),e,o),f=n.revisionMarkup&&Object.values(n.revisionMarkup.cells).includes("byAuthor")?y??rt("author",e,o):null,h={scale:n.scale??96/72,ariaHidden:n.ariaHidden??true,drawingStrings:a,includePartial:n.includePartial,...n.unsupportedOwnerPartName?{unsupportedOwnerPartName:n.unsupportedOwnerPartName}:{},...n.unsupportedSource?{unsupportedSource:n.unsupportedSource}:{},urlRegistry:l,...n.fontAlias?{fontAlias:n.fontAlias}:{},...n.serifHangulFace?{serifHangulFace:n.serifHangulFace}:{},...n.readOnlyParagraphIds?{readOnlyParagraphIds:n.readOnlyParagraphIds}:{},...n.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:n.emptyTocPlaceholderIds}:{},...n.defaultFontFamily?{defaultFontFamily:n.defaultFontFamily}:{},...n.fieldShading?{fieldShading:n.fieldShading}:{},showParagraphMarks:n.showParagraphMarks??false,...n.showParagraphMarks?{breakMarks:_n(e,s)}:{},changeBars:n.changeBars??"all-markup",changeBarsToggle:n.changeBarsToggle??false,...n.shadeFormFields!==void 0?{shadeFormFields:n.shadeFormFields}:{},...y?{revisionStyles:y}:{},...f?{revisionCellStyles:f}:{},...n.revisionMarkup?{revisionMarkup:n.revisionMarkup}:{},facingPages:n.facingPages,revisionKindColors:n.revisionStyles==="kind",...n.imageUrlPort?{imageUrlPort:n.imageUrlPort}:{},...n.activeHeaderFooterRId?{activeHeaderFooterRId:n.activeHeaderFooterRId}:{},...n.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:n.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},g=t.ownerDocument,m=`${h.scale}|${h.ariaHidden}|${n.includePartial??false}|${h.fontAlias?lr(h.fontAlias):""}|${h.serifHangulFace?lr(h.serifHangulFace):""}|${h.defaultFontFamily??""}|cc:${r}:${d}|toc:${u}|ro:${c}|tocEmpty:${p}|${n.imageUrlPort?"url":""}|${vt(a)}|markup:${JSON.stringify(n.revisionMarkup)}|facing:${n.facingPages}|rev:${ot(y)}|cells:${ot(f)}|marks:${n.showParagraphMarks??false}|${h.breakMarks?`breaks:${Un(s)}:${h.breakMarks.token}|`:""}bars:${h.changeBars}:${h.changeBarsToggle}`,k=Mt.get(t),S=k?.parameters===m,R=S?new Map(k.pages.map(b=>[b.record,b])):null,q=k?new Map(k.pages.map(b=>[b.record.index,b])):null,N=e.pages.map(b=>{let x=n.materialize?.has(b.index)??true,w=R?.get(b);if(w&&w.materialized===x)return w;let A=q?.get(b.index);if(!x&&A&&Na(A,b,h.scale,h.ariaHidden))return {record:b,materialized:false,element:A.element};let P=S&&x&&A?.materialized?tr(A.record,b):null;if(P&&A){let Se={...h,paintInstance:`p${b.index}`,tabLeaderOriginXPt:b.contentBox.x-b.box.x},Y=!P.furniture||nr(g,A.element,b,Er(g,Se))?Ia(g,A,b,h):null;if(Y)return Y}let E={},ve=Ca(g,b,h,x,E);return {record:b,materialized:x,element:ve,...E.content?{content:E.content}:{},...E.blocks?{blocks:E.blocks}:{}}});if(Mt.set(t,{parameters:m,pages:N}),t.dataset.revision=String(e.revision),l){let b={...e,pages:N.filter(x=>x.materialized).map(x=>x.record)};l.reconcile(zo(b),Ko(b));}let xe=new Set(N.map(b=>b.element)),z=t.firstChild;for(;z;){let b=z.nextSibling;xe.has(z)||z.remove(),z=b;}let K=t.firstChild;for(let b of N){if(b.element===K){K=K.nextSibling;continue}t.insertBefore(b.element,K);}eo(N,h),yn(t);}var Pr=new WeakMap;function _a(t,e,n,o){let i=t.ownerDocument,r=o.scale,a=new Map;for(let d of t.children){let c=Pr.get(d);if(c===void 0)continue;let p=a.get(c);p?p.push(d):a.set(c,[d]);}let s=[];for(let d of n){let c=e.pages[d.pageIndex];if(!c)continue;let p=d.className??o.className??"docx-cell-selection-rect",u=o.pageOffsetX?.get(d.pageIndex)??0,y=`${(c.contentBox.x+d.x+u)*r}px`,f=`${(c.contentBox.y+d.y)*r}px`,h=`${d.width*r}px`,g=`${d.height*r}px`,m=d.reviewAuthor,k=[p,y,f,h,g,m?`${m.author}\0${m.slot}\0${m.color}`:"",d.activeBackground??""].join(""),S=a.get(k)?.pop();if(S){s.push(S);continue}let R=i.createElement("div");R.className=p,R.style.position="absolute",R.style.left=y,R.style.top=f,R.style.width=h,R.style.height=g,m&&(R.dataset.reviewAuthor=m.author,R.dataset.reviewAuthorSlot=String(m.slot%C),R.style.setProperty("--doc-review-author-current",m.color)),d.activeBackground!==void 0&&(R.style.backgroundColor=d.activeBackground,R.style.boxShadow="none"),Pr.set(R,k),s.push(R);}let l=t.children;l.length===s.length&&s.every((d,c)=>l[c]===d)||t.replaceChildren(...s);}
4
+ exports.a=Je;exports.b=Qe;exports.c=Or;exports.d=Ya;exports.e=B;exports.f=vn;exports.g=os;exports.h=qr;exports.i=rs;exports.j=_s;exports.k=Un;exports.l=yt;exports.m=lo;exports.n=vt;exports.o=Ke;exports.p=Wi;exports.q=jl;exports.r=Pt;exports.s=wa;exports.t=ic;exports.u=Oa;exports.v=Ua;exports.w=_a;
@@ -1 +1 @@
1
- 'use strict';var chunkI34OVDHO_cjs=require('../chunk-I34OVDHO.cjs'),chunkTCWCSTAF_cjs=require('../chunk-TCWCSTAF.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunkI34OVDHO_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunkI34OVDHO_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkTCWCSTAF_cjs.Qa}});Object.defineProperty(exports,"isJournalOutsideUndo",{enumerable:true,get:function(){return chunkTCWCSTAF_cjs.Ra}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkTCWCSTAF_cjs.On}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkTCWCSTAF_cjs.Nn}});
1
+ 'use strict';var chunk4QLFADOG_cjs=require('../chunk-4QLFADOG.cjs'),chunkXPBKJQTG_cjs=require('../chunk-XPBKJQTG.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunk4QLFADOG_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunk4QLFADOG_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkXPBKJQTG_cjs.Qa}});Object.defineProperty(exports,"isJournalOutsideUndo",{enumerable:true,get:function(){return chunkXPBKJQTG_cjs.Ra}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkXPBKJQTG_cjs.Tn}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkXPBKJQTG_cjs.Sn}});
@@ -14,9 +14,9 @@
14
14
  * @packageDocumentation
15
15
  * @public
16
16
  */
17
- import { b as HistoryGroup } from '../tree-package-fragment-DDV5xjSI.js';
17
+ import { b as HistoryGroup } from '../tree-package-fragment-DLbxcboK.js';
18
18
  import { TreePackageStore, TreeModelChange } from '../store.js';
19
- export { r as reportHistoryGroup } from '../tree-package-fragment-DDV5xjSI.js';
19
+ export { r as reportHistoryGroup } from '../tree-package-fragment-DLbxcboK.js';
20
20
  import { OoxmlPackage } from '../contracts/modules.js';
21
21
  import { OoxmlElement } from '../store.js';
22
22
  import '../editor-scope-CA6egMaK.js';
@@ -1 +1 @@
1
- export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-HLMY6NFI.js';export{Qa as historyGroupOfJournal,Ra as isJournalOutsideUndo,On as registerUndoHistoryPosition,Nn as reportHistoryGroup}from'../chunk-7MOZVKCN.js';
1
+ export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-MLJJL4QG.js';export{Qa as historyGroupOfJournal,Ra as isJournalOutsideUndo,Tn as registerUndoHistoryPosition,Sn as reportHistoryGroup}from'../chunk-XI5HK3TZ.js';
@@ -13,8 +13,8 @@
13
13
  * @packageDocumentation
14
14
  * @public
15
15
  */
16
- import { D as DocxDocument, E as ExecResult, z as ContentControlType, A as DocTarget, B as RunFormatting, F as Extent, I as InsertableContentControlType, G as ContainerRef, H as ContentControlFilter, J as DocRange, K as Revision, L as DocComment, S as StyleDefinitions } from '../tree-op-types-BJTz6t_O.js';
17
- export { M as Block, N as ColorValue, g as CompareDocumentsEngineErrorCode, j as CompareDocumentsErrorCode, k as CompareDocumentsOutcome, n as CompareDocumentsRefusalReason, P as ContentControl, Q as DocAnchor, U as DocAnchorRange, V as DocLocation, W as DocumentBody, X as ExecErrorCode, Y as HeaderFooterSet, Z as IndentFormatting, _ as NumberingRef, $ as PageMargins, a0 as Paragraph, a1 as ParagraphDisagreements, a2 as ParagraphFlags, a3 as ParagraphTabStop, v as ReviewPosition, w as ReviewRange, d as ReviewRevisionItem, x as ReviewRevisionKind, y as RevisionAddress, a4 as RevisionAuthorEntry, a5 as RevisionAuthorResult, a6 as RevisionAuthorSkipReason, a7 as RevisionBatchEntry, a8 as RevisionBatchResult, a9 as RevisionBatchSkipDetail, aa as RevisionBatchSkipReason, ab as RevisionSiteRefusal, ac as RevisionType, ad as Run, ae as Section, af as SectionProperties, ag as StyleDefinition, ah as Table, ai as TableCell, aj as TableRow, ak as Theme, al as ThemeColorScheme } from '../tree-op-types-BJTz6t_O.js';
16
+ import { D as DocxDocument, E as ExecResult, z as ContentControlType, A as DocTarget, B as RunFormatting, F as Extent, I as InsertableContentControlType, G as ContainerRef, H as ContentControlFilter, J as DocRange, K as Revision, L as DocComment, S as StyleDefinitions } from '../tree-op-types-DzstjXTb.js';
17
+ export { M as Block, N as ColorValue, g as CompareDocumentsEngineErrorCode, j as CompareDocumentsErrorCode, k as CompareDocumentsOutcome, n as CompareDocumentsRefusalReason, P as ContentControl, Q as DocAnchor, U as DocAnchorRange, V as DocLocation, W as DocumentBody, X as ExecErrorCode, Y as HeaderFooterSet, Z as IndentFormatting, _ as NumberingRef, $ as PageMargins, a0 as Paragraph, a1 as ParagraphDisagreements, a2 as ParagraphFlags, a3 as ParagraphTabStop, v as ReviewPosition, w as ReviewRange, d as ReviewRevisionItem, x as ReviewRevisionKind, y as RevisionAddress, a4 as RevisionAuthorEntry, a5 as RevisionAuthorResult, a6 as RevisionAuthorSkipReason, a7 as RevisionBatchEntry, a8 as RevisionBatchResult, a9 as RevisionBatchSkipDetail, aa as RevisionBatchSkipReason, ab as RevisionSiteRefusal, ac as RevisionType, ad as Run, ae as Section, af as SectionProperties, ag as StyleDefinition, ah as Table, ai as TableCell, aj as TableRow, ak as Theme, al as ThemeColorScheme } from '../tree-op-types-DzstjXTb.js';
18
18
  export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
19
19
 
20
20
  /**