@docx-editor.dev/core 2.35.0-canary.20261104032723.sha-43c2012 → 2.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -14
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +16 -11
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +12 -12
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CK3v5NhC.d.ts → chrome-print-H0uSxdg3.d.ts} +70 -17
- package/dist/{chunk-AMOFXSEO.cjs → chunk-2C75IWUN.cjs} +1 -1
- package/dist/chunk-2NFQ7OXY.cjs +1 -0
- package/dist/chunk-2V3V57SC.js +3 -0
- package/dist/chunk-32YOHLEK.cjs +32 -0
- package/dist/chunk-4NISR27M.cjs +31 -0
- package/dist/chunk-5ZE7ROGP.js +31 -0
- package/dist/{chunk-LZ64O473.js → chunk-66ZAVRGB.js} +1 -1
- package/dist/{chunk-A5GMOQWD.js → chunk-6767S7UF.js} +1 -1
- package/dist/chunk-6BZINLEN.cjs +1 -0
- package/dist/{chunk-EBIMIIC3.js → chunk-AVGSD7FB.js} +5 -5
- package/dist/{chunk-TZTKEPCC.cjs → chunk-CBJMRC4L.cjs} +1 -1
- package/dist/chunk-DCILO4XD.cjs +236 -0
- package/dist/{chunk-FBGZOGLU.cjs → chunk-DSIDCA3V.cjs} +4 -4
- package/dist/chunk-FLEFHRJG.cjs +5 -0
- package/dist/chunk-FMSXJ22B.js +2 -0
- package/dist/{chunk-7ACXKFKO.js → chunk-I4OZW2NO.js} +1 -1
- package/dist/chunk-JGE2O6IF.cjs +3 -0
- package/dist/chunk-K2BBJDM7.js +32 -0
- package/dist/chunk-LMASPHYS.js +1 -0
- package/dist/chunk-NYZP5NM3.js +4 -0
- package/dist/chunk-P3XUE72N.js +236 -0
- package/dist/{chunk-JZ4LO3ZZ.js → chunk-Q5YVLUGG.js} +1 -1
- package/dist/chunk-QALWAAPL.cjs +4 -0
- package/dist/{chunk-ELR6HXOO.js → chunk-QDUMZYTX.js} +1 -1
- package/dist/chunk-QLANEOTJ.cjs +7 -0
- package/dist/{chunk-4NPNKO5U.cjs → chunk-SJV6WCTP.cjs} +1 -1
- package/dist/{chunk-I4WSXFY6.js → chunk-TMCMXIBT.js} +4 -4
- package/dist/{chunk-GTICLPKS.cjs → chunk-TY5CE2JR.cjs} +1 -1
- package/dist/chunk-UAUB5YV6.js +7 -0
- package/dist/{chunk-Q4MUV5KX.cjs → chunk-WWZWT26M.cjs} +1 -1
- package/dist/chunk-Y3JSN52G.cjs +2 -0
- package/dist/chunk-YD3KSZJM.js +1 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +2 -2
- package/dist/contracts/document.d.ts +2 -2
- package/dist/contracts/editor.d.ts +8 -8
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.ts +34 -13
- package/dist/contracts/modules.js +1 -1
- package/dist/contracts/types.d.ts +3 -3
- package/dist/{custom-node-writes-BC3z8NwO.d.ts → custom-node-writes-Cj0itq58.d.ts} +2 -2
- package/dist/{document-protection-8hXPdn5U.d.ts → document-protection-CDLoYQI3.d.ts} +1 -1
- package/dist/{drawing-graphic-kind-_5u2E4ee.d.ts → drawing-graphic-kind-8zt6pugF.d.ts} +2 -2
- package/dist/{drawing-preview-package-JyAqL6OV.d.ts → drawing-preview-package-8o9LSfzP.d.ts} +1 -1
- package/dist/{editor-BGCdE3tB.d.ts → editor-CujQcn1z.d.ts} +20 -10
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +3 -3
- package/dist/editor.d.ts +52 -29
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +6 -6
- package/dist/export.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-D2qNes9-.d.ts → layout-shaping-ZjLRz_qa.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +25 -21
- package/dist/layout.js +1 -1
- package/dist/{note-properties-DGPzKUuA.d.ts → note-properties-BRpskBeh.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +10 -10
- package/dist/output.js +1 -1
- package/dist/{protocol-0y3iaYj9.d.ts → protocol-GVVQQwCX.d.ts} +13 -2
- package/dist/{review-paragraph-order-DeQp2_iu.d.ts → review-paragraph-order-aEHnQTt7.d.ts} +5 -2
- package/dist/{revision-projection-CrAv-HP6.d.ts → revision-projection-vU_UiTLx.d.ts} +1 -1
- package/dist/{semantic-cell-selection-CeG_qqDV.d.ts → semantic-cell-selection-CaRIISu-.d.ts} +2 -2
- package/dist/{semantic-interaction-DcE_ZsiD.d.ts → semantic-interaction-LJtUJJS5.d.ts} +1 -1
- package/dist/{semantic-paint-DfeN6UQF.d.ts → semantic-paint-2LBYlQcn.d.ts} +11 -4
- package/dist/{semantic-record-queries-qwd9Ict6.d.ts → semantic-record-queries-C_YK2gCz.d.ts} +1 -1
- package/dist/{semantic-records-thL1rcmG.d.ts → semantic-records-AU2pIYRp.d.ts} +3 -3
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +1664 -1664
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-CGlwCQXg.d.ts → tree-op-types-DmrePCMo.d.ts} +320 -11
- package/dist/{tree-package-store-D0_BOm-r.d.ts → tree-package-fragment-DXZ2B7x0.d.ts} +702 -691
- package/dist/{tree-session-contract-DkThhHjy.d.ts → tree-session-contract-D3e-5YNq.d.ts} +19 -4
- package/dist/{unsupported-elements-qj0sXi2s.d.ts → unsupported-elements-9Pz4I_F6.d.ts} +1 -1
- package/docs/accept-reject-without-scrolling.md +31 -48
- package/docs/comment-on-found-text.md +47 -23
- package/docs/custom-review-cards.md +50 -34
- package/docs/highlight-ranges.md +26 -6
- package/docs/index.md +21 -21
- package/docs/propose-rewrite.md +87 -138
- package/docs/tracked-replacement.md +41 -20
- package/package.json +2 -2
- package/dist/chunk-4C7JUJDX.cjs +0 -1
- package/dist/chunk-4HENIAFG.js +0 -1
- package/dist/chunk-6IYKYYWF.js +0 -32
- package/dist/chunk-CDAFCPT6.cjs +0 -3
- package/dist/chunk-CU6QPXKD.js +0 -2
- package/dist/chunk-EMITIPLN.js +0 -4
- package/dist/chunk-IGB66DIX.cjs +0 -30
- package/dist/chunk-JQPTNBLT.js +0 -236
- package/dist/chunk-JVWRILO3.cjs +0 -4
- package/dist/chunk-KOYEBRLV.js +0 -1
- package/dist/chunk-KZZPOZOF.cjs +0 -2
- package/dist/chunk-NPWMZIPA.cjs +0 -32
- package/dist/chunk-NS2QCOAS.js +0 -7
- package/dist/chunk-O2PGRL5D.js +0 -3
- package/dist/chunk-TFJUIP4X.cjs +0 -236
- package/dist/chunk-V3N4SOAK.cjs +0 -1
- package/dist/chunk-V6FOPP2H.js +0 -30
- package/dist/chunk-XFEIUKOS.cjs +0 -7
- package/dist/chunk-ZF4N3N3L.cjs +0 -5
package/dist/chunk-CDAFCPT6.cjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkNPWMZIPA_cjs=require('./chunk-NPWMZIPA.cjs'),chunkTFJUIP4X_cjs=require('./chunk-TFJUIP4X.cjs');var Gr=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let l=i*2n;(l>t||l===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let s=r?-a:a,c=Number(s);if(!Number.isSafeInteger(c))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return c},dt=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");if(e===0||n===0)return chunkNPWMZIPA_cjs.n(0);let o=e*n;if(Number.isSafeInteger(o)){let a=Math.abs(o),i=a%t,s=(a-i)/t;return r!=="towardZero"&&(i>t-i||i===t-i&&(r==="halfAwayFromZero"||r==="halfToEven"&&s%2!==0))&&(s+=1),chunkNPWMZIPA_cjs.n(s===0?0:o<0?-s:s)}return chunkNPWMZIPA_cjs.n(Gr(BigInt(e)*BigInt(n),BigInt(t),r))},gn=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>dt(i,a,o,r)},Sn=(e,t,n)=>{let r=t*n,o=e*2;return a=>a*r/o};var Ne=(e,t)=>e[t]<<8|e[t+1],xn=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Wr(e,t){let n=(s,c)=>s>=0&&s+c<=e.length;if(!n(0,12))return false;let a=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"&&n(12+t*4,4)?xn(e,12+t*4):0;if(!n(a,12))return false;let i=Ne(e,a+4);for(let s=0;s<i;s+=1){let c=a+12+s*16;if(!n(c,16))return false;if(!(e[c]===99&&e[c+1]===109&&e[c+2]===97&&e[c+3]===112))continue;let u=xn(e,c+8);if(!n(u,4))return false;let y=Ne(e,u+2);for(let f=0;f<y;f+=1){let p=u+4+f*8;if(!n(p,4))return false;if(Ne(e,p)===3&&Ne(e,p+2)===0)return true}return false}return false}var bn=new WeakMap;function Rn(e,t){let n=bn.get(e);return n===void 0&&(n=Wr(t,e.faceIndex),bn.set(e,n)),n}function Fn(e){let t="",n=false;for(let r=0;r<e.length;r+=1){let o=e.charCodeAt(r);o>=32&&o<=255?(t+=String.fromCharCode(61440+o),n=true):t+=e[r];}return n?t:e}var Kr=4096,Cn=e=>typeof e=="number"?String(e):JSON.stringify(e)??typeof e,De=class{constructor(t){this.onRestart=t;}onRestart;#e=new Map;keyOf(t,n){let r=chunkNPWMZIPA_cjs.t(n),o=this.#e.get(r);o===void 0&&(this.#e.size>=Kr&&(this.#e.clear(),this.onRestart()),o=this.#e.size,this.#e.set(r,o));let a=`${o}\0${Cn(t.fontSizeHalfPoints)}\0${Cn(t.bidiLevel)}\0`,i=t.context;return !i||i.before===""&&i.after===""?`${a}-${t.text}`:`${a}c${i.before.length},${i.after.length}\0${i.before}${i.after}${t.text}`}clear(){this.#e.clear();}};function le(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function En(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>le(t))}function jr(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function vn(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function Ln(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16.0 and 22.3.0. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${En(e instanceof Error?e.message:String(e))})`}function Bn(e){let t=En(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${t})`}function Tn(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var ie=Object.freeze({name:"HarfBuzz",version:"14.4.0"}),Se=null,he=null;function ft(){return Se?Promise.resolve():he||(he=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==ie.version)throw new A("shapingLibraryMismatch",{diagnostic:Tn(ie.version,t)});Se=e;}).catch(e=>{throw he=null,e instanceof A?e:vn(e)?new A("unsupportedRuntime",{diagnostic:Ln(e),cause:e}):new A("wasmUnavailable",{diagnostic:Bn(e),cause:e})}),he)}function Yr(){return Se!==null}function $r(){if(!Se)throw new A("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return Se}var A=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},qr=16*1024*1024,Zr=1e6,Jr=1e6,Qr=1e6,eo=4,to=512,no=1024*1024,ro=16*1024*1024,oo=32*1024*1024,ao=64*1024*1024,io=64*1024*1024,so=1e6,co=1e6,lo=1e6,uo=64,po=4096,fo=4*1024*1024,mo=64*1024*1024,yo=64*1024*1024,ho=256*1024*1024,go=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),wn=["cmap","head","hhea","hmtx","maxp"],So=(e,t)=>e[t]<<8|e[t+1],xo=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,bo=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?xo(e,12+t*4):0,Ro=(e,t)=>{let n=bo(e,t),r=So(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},Fo=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Co=(e,t)=>{let n=chunkNPWMZIPA_cjs.l(e,t);if(!n.valid)return n;let r=Ro(e,t);for(let o of wn)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},mt=Co,G=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},Eo=(e,t,n)=>{if(t.length===0)return [];let r=[],o=0;for(;o<t.length;){let a=t[o].cluster,i=o+1,s=t[o].advanceX;for(;i<t.length&&t[i].cluster===a;)s+=t[i].advanceX,i+=1;let c=chunkNPWMZIPA_cjs.n(s);r.push({textStart:a,textEnd:n==="rtl"?t[o-1]?.cluster??e.length:t[i]?.cluster??e.length,glyphStart:o,glyphEnd:i,advance:c,caretEdges:Object.freeze([chunkNPWMZIPA_cjs.n(0),c]),fontSpan:0}),o=i;}return r},V=64,$=8,q=8,On=32,yt=V+2*$,vo=V+$+q,Lo=V+$+2*q,Bo=V+$+q,An=V+8*$,In=V+8*q+$,To=V+6*q+$,wo=V+3*q+2*$,Oo=V+3*q,xe=e=>V+e.length*Uint16Array.BYTES_PER_ELEMENT,ht=e=>Bo+xe(e),ge=e=>On+e*$,Ao=(e,t)=>yt+xe(e)+vo+ht(t),Io=e=>An+xe(e)+ge(e.length)+e.length*In,Mo=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return An+xe(e.text)+ge(e.glyphs.length)+e.glyphs.length*In+ge(e.clusters.length)+e.clusters.length*To+e.clusters.reduce((n,r)=>n+ge(r.caretEdges.length),0)+ge(e.fontSpans.length)+e.fontSpans.length*wo+(e.exactAdvancesX===void 0?0:On+e.exactAdvancesX.length*q)+Oo+[...t].reduce((n,r)=>n+ht(r.path),0)},_o=(e,t)=>yt+xe(e)+Lo+t,pt=class{#e;#p;#f;#m;#y;#R;#h;#l=0;#F;#g;#S;#c;#x;#u;#t;#o=new Map;#i=new Map;#s=new Map;#n=new Map;#C=new De(()=>{this.#n.clear(),this.#r=0,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0}));});#a=0;#r=0;#b=0;#d;constructor(t,n){chunkNPWMZIPA_cjs.p(this),this.#e=t,this.#p=G(n.maxFontBytes??qr,"maximum font bytes",io),this.#f=G(n.maxInputUtf16??Zr,"maximum input UTF-16 code units",so),this.#m=G(n.maxCodepoints??Jr,"maximum input code points",co),this.#y=G(n.maxGlyphs??Qr,"maximum shaped glyphs",lo),this.#h=G(n.maxCachedFontBytes??64*1024*1024,"maximum cached font bytes",64*1024*1024),this.#R=G(n.maxCachedFaces??eo,"maximum cached faces",uo),this.#F=G(n.maxCachedShapes??to,"maximum cached shape results",po),this.#g=G(n.maxOutlineBytes??no,"maximum outline bytes",fo),this.#S=G(n.maxCachedOutlineBytes??ro,"maximum cached outline bytes",mo),this.#c=G(n.maxShapedRunBytes??oo,"maximum shaped run bytes",yo),this.#x=G(n.maxCachedShapeBytes??ao,"maximum cached shape bytes",ho),this.#u=n.instrumentation?.onFaceCacheEvent,this.#t=n.instrumentation,this.#d=new this.#e.Buffer;}dispose(){this.#o.clear(),this.#l=0,this.#i.clear(),this.#s.clear(),this.#n.clear(),this.#C.clear(),this.#a=0,this.#r=0,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#d=void 0;}#v(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#u?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=chunkNPWMZIPA_cjs.j(t);for(let u of wn)if(!o.has(u))throw new A("malformedFont",{diagnostic:`missing required ${u} table`});this.#t?.onByteCopy?.();let a=new this.#e.Blob(Fo(n)),i=new this.#e.Face(a,t.faceIndex),s=new this.#e.Font(i),c=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(c.ascender)||!Number.isSafeInteger(c.descender)||!Number.isSafeInteger(c.lineGap))throw new A("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});s.setScale(i.upem,i.upem);let l={identity:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem,byteLength:n.byteLength};if(n.byteLength<=this.#h){for(;this.#o.size>=this.#R||this.#l+n.byteLength>this.#h;){let u=this.#o.keys().next().value;if(u===void 0)break;this.#l-=this.#o.get(u).byteLength,this.#o.delete(u),this.#u?.(Object.freeze({kind:"evicted",identity:u}));}this.#o.set(t.identity,l),this.#l+=n.byteLength;}return this.#u?.(Object.freeze({kind:"created",identity:t.identity})),l}#L(t,n){let r=this.#i.get(t.identity)?.get(n);if(r)return this.#s.delete(r),this.#s.set(r,void 0),this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#a})),r.outline;this.#t?.onOutlinePathCall?.();let o=t.font.glyphToPath(n),a=ht(o);if(a>this.#g)throw new A("outlineOverLimit",{limit:this.#g,actual:a});let i=Object.freeze({path:o,unitsPerEm:t.unitsPerEm}),s=Ao(t.identity,o)+3*yt+2*q;if(s>this.#S)return this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#a})),i;for(;this.#a+s>this.#S;){let u=this.#s.keys().next().value;if(u===void 0)break;this.#s.delete(u);let y=this.#i.get(u.identity);y.delete(u.glyphId),y.size===0&&this.#i.delete(u.identity),this.#a-=u.bytes,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#a}));}let c=this.#i.get(t.identity);c||this.#i.set(t.identity,c=new Map);let l={outline:i,bytes:s,identity:t.identity,glyphId:n};return c.set(n,l),this.#s.set(l,void 0),this.#a+=s,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#a})),i}#E(t){if(t.length>this.#f)throw new A("textOverLimit",{limit:this.#f,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#m)throw new A("codepointsOverLimit",{limit:this.#m,actual:n})}}shape(t){if(!this.#d)throw new A("disposed");if(chunkNPWMZIPA_cjs.k(t.environment.font),t.environment.font.byteLength>this.#p)throw new A("fontOverLimit",{limit:this.#p,actual:t.environment.font.byteLength});this.#E(t.text);let n=Io(t.text);if(n>this.#c)throw new A("shapedRunOverLimit",{limit:this.#c,actual:n});let r=chunkNPWMZIPA_cjs.r(t.environment),o=this.#C.keyOf(t,r),a=this.#n.get(o);if(a)return this.#b-a.stamp>=Math.max(1,this.#n.size>>1)&&(this.#n.delete(o),this.#n.set(o,a),a.stamp=++this.#b),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ie.name||r.shapingLibrary.version!==ie.version)throw new A("shapingLibraryMismatch");if(r.normalization!=="none")throw new A("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new A("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new A("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new A("unsupportedFallback");let i=chunkNPWMZIPA_cjs.i(r.font),s=chunkNPWMZIPA_cjs.j(r.font);if([...go].some(p=>s.has(p))&&!s.has("glyf")&&!s.has("CFF "))throw new A("unsupportedColorFont");let c=t.text;this.#E(c);let l=t.context?.before??"",u=t.context?.after??"",y=chunkNPWMZIPA_cjs.o,f=Math.max(String(l).length,String(u).length);if(typeof l!="string"||typeof u!="string"||f>y)throw new A("textOverLimit",{limit:y,actual:f});try{let p=this.#v(r.font,i),{face:g,font:h}=p,d=this.#d;d.reset();let S=Rn(r.font,i)?Fn:String,x=l+c+u,R=chunkNPWMZIPA_cjs.A(x)?chunkNPWMZIPA_cjs.B(p):void 0,L=M=>S(R?chunkNPWMZIPA_cjs.C(M,R):M);l||u?d.addText(L(l+c+u),l.length,c.length):d.addText(L(c)),d.setDirection(r.direction==="rtl"?this.#e.Direction.RTL:this.#e.Direction.LTR),d.setScript(r.script),d.setLanguage(r.language),d.setClusterLevel(this.#e.ClusterLevel.MONOTONE_CHARACTERS);let E=Object.entries(r.features).map(([M,U])=>new this.#e.Feature(M,U));if((r.features.kern??1)!==0)for(let[M,U]of chunkNPWMZIPA_cjs.x(l+c+u))E.push(new this.#e.Feature("kern",0,M,U));this.#t?.onShapeCall?.(),this.#e.shape(h,d,E);let O=d.getLength();if(O>this.#y)throw new A("glyphOverLimit",{limit:this.#y,actual:O});let B=d.getGlyphInfos(),v=d.getGlyphPositions(),w=gn(g.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),_=Sn(g.upem,t.fontSizeHalfPoints,r.fixedPointScale),b=[],m=chunkNPWMZIPA_cjs.n(0),F=chunkNPWMZIPA_cjs.n(0),C=new Map,T=B.map((M,U)=>{let ee=v[U],Mt=R?.get(x.charCodeAt(M.cluster)),_t=Mt?.advance??ee?.xAdvance??0;b.push(_(_t));let Pt=w(_t),kt=w(ee?.yAdvance??0),Fe=Mt?.glyph??M.codepoint,Ur={id:Fe,cluster:M.cluster-l.length,originX:m,originY:F,advanceX:Pt,advanceY:kt,offsetX:w(ee?.xOffset??0),offsetY:w(ee?.yOffset??0),outline:C.get(Fe)??(()=>{let zt=this.#L(p,Fe);return C.set(Fe,zt),zt})()};return m=chunkNPWMZIPA_cjs.n(m+Pt),F=chunkNPWMZIPA_cjs.n(F+kt),Ur}),I=h.hExtents(),P=chunkNPWMZIPA_cjs.u({text:c,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:T,exactAdvancesX:b,clusters:Eo(c,T,r.direction),fontSpans:T.length===0?[]:[{glyphStart:0,glyphEnd:T.length,font:r.font,fallbackIndex:null}],metrics:{ascent:w(I.ascender),descent:w(-I.descender),lineGap:w(I.lineGap)}},r),z=Mo(P);if(z>this.#c)throw new A("shapedRunOverLimit",{limit:this.#c,actual:z});let D=_o(o,z);if(D>this.#x)return this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),P;for(;this.#n.size>=this.#F||this.#r+D>this.#x;){let M=this.#n.keys().next().value;if(M===void 0)break;let U=this.#n.get(M);this.#n.delete(M),this.#r-=U.bytes,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:P,bytes:D,stamp:++this.#b}),this.#r+=D,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),P}catch(p){throw p instanceof A?p:new A("malformedFont",{diagnostic:p instanceof Error?p.message:"HarfBuzz shaping failed"})}}},gt=(e={})=>new pt($r(),e);var St=Object.freeze({maxFontBytes:16*1024*1024,maxInputUtf16:1e6,maxCodepoints:1e6,maxGlyphs:1e6,maxCachedFaces:32,maxCachedFontBytes:64*1024*1024,maxCachedShapes:512,maxOutlineBytes:1024*1024,maxCachedOutlineBytes:16*1024*1024,maxShapedRunBytes:32*1024*1024,maxCachedShapeBytes:64*1024*1024}),zi=Object.freeze({...St,maxCachedShapes:4096});function Mn(e){let t={maxFontBytes:e.maxFontBytes,maxInputUtf16:e.maxInputUtf16,maxCodepoints:e.maxCodepoints,maxGlyphs:e.maxGlyphs,maxOutlineBytes:e.maxOutlineBytes,maxShapedRunBytes:e.maxShapedRunBytes},n=["docx-editor-layout-harfbuzz-execution-policy",1,Object.entries(t).sort(([r],[o])=>r<o?-1:r>o?1:0).map(([r,o])=>Object.freeze([r,o]))];return `layout-shaper-policy:sha256:${chunkTFJUIP4X_cjs.f(new TextEncoder().encode(JSON.stringify(n)))}`}function _n(e,t=St){let n=e?.maxFontBytes??t.maxFontBytes;if(!Number.isSafeInteger(n)||n<=0||n>chunkNPWMZIPA_cjs.a)throw new RangeError(`Font shaping byte ceiling must be between 1 and ${chunkNPWMZIPA_cjs.a}`);return n===t.maxFontBytes?t:Object.freeze({...t,maxFontBytes:n})}function Pn(e,t,n=false){let r=false,o=Object.freeze({shape(a){if(r)throw new A("disposed");let i=a.environment.font;if(chunkNPWMZIPA_cjs.k(i),i.byteLength>t.maxFontBytes)throw new A("fontOverLimit",{limit:t.maxFontBytes,actual:i.byteLength});return e.shape(a)},dispose(){r||(r=true,n&&e.dispose?.());}});return chunkNPWMZIPA_cjs.q(e)?chunkNPWMZIPA_cjs.p(o):o}var Po=Object.freeze({}),kn=chunkNPWMZIPA_cjs.b,ko="16.0.0",zo="none",No=1e3,Do="halfToEven",Dn="cluster-edges-only",Ho="Latn",Uo=new Uint8Array(0);var Z=class extends Error{code="overLimit";constructor(t){super(t),this.name="LayoutShapingConfigurationError";}};function Go(e,t){let n=e.epoch,r=e.maxFontBytes,o=e.sources,a=e.substitutions,i=e.defaultFont,s=e.language;if(!Number.isSafeInteger(r)||r<=0||r>chunkNPWMZIPA_cjs.a)throw new Z(`Font byte ceiling must not exceed the engine hard maximum of ${chunkNPWMZIPA_cjs.a}`);let c=o.length,l=a?.length??0;if(c===0||c>chunkNPWMZIPA_cjs.b)throw new Z(`Font source count must be between 1 and ${chunkNPWMZIPA_cjs.b}`);if(l>kn)throw new Z(`Font substitution count must not exceed ${kn}`);let u=0,y=[];for(let g=0;g<c;g+=1){let h=o[g],d=h.request,S=h.availability,x=h.id,R=h.hash,L=h.faceIndex,E=S==="forbidden",O=E?Uo:h.bytes;if(!E){if(typeof x!="string"||x.length===0)throw new TypeError("Resolved font id must not be empty");let B;try{B=chunkNPWMZIPA_cjs.e(O);}catch{throw new Z(`Font source ${x} must provide genuine bytes`)}if(B>r)throw new Z(`Font source ${x} exceeds the per-font byte ceiling`);if(u+=B,u>chunkNPWMZIPA_cjs.c)throw new Z(`Font sources exceed the aggregate byte ceiling of ${chunkNPWMZIPA_cjs.c}`)}y.push(t&&chunkNPWMZIPA_cjs.g(h)!==void 0?h:Object.freeze({request:Object.freeze({family:d.family,weight:d.weight,style:d.style}),id:x,bytes:O,hash:R,faceIndex:L,...S?{availability:S}:{}}));}let f;if(a){f=[];for(let g=0;g<l;g+=1){let h=a[g],d=h.from,S=h.to,x=h.lineMetrics;f.push(Object.freeze({from:Object.freeze({family:d.family,weight:d.weight,style:d.style}),to:Object.freeze({family:S.family,weight:S.weight,style:S.style}),...x?{lineMetrics:Object.freeze({heightEm:x.heightEm,baselineEm:x.baselineEm})}:{}}));}}let p={epoch:n,maxFontBytes:r,sources:Object.freeze(y),substitutions:f?Object.freeze(f):void 0,defaultFont:Object.freeze({family:i.family,sizeHalfPoints:i.sizeHalfPoints}),language:s};return Object.freeze(p)}function zn(e,t){let n=e.map((o,a)=>({value:o,index:a,key:chunkNPWMZIPA_cjs.h(t(o))})),r=new Set;for(let o of n){if(r.has(o.key))return e;r.add(o.key);}return n.sort((o,a)=>o.key<a.key?-1:o.key>a.key?1:o.index-a.index).map(({value:o})=>o)}function Wo(e,t){let n={family:e.family},r={sizeHalfPoints:e.sizeHalfPoints};return {...n,...t?r:{}}}function Nn(e,t){let n=c=>({family:c.family,weight:c.weight,style:c.style}),r=t?e.sources:zn(e.sources,c=>c.request),o=e.substitutions??[],a=t?o:zn(o,c=>c.from),i={sources:r.map(c=>{let l=c.availability??"available",u={request:n(c.request),availability:l};if(l==="forbidden")return {...u,...t?{id:c.id,faceIndex:c.faceIndex,declaredHash:c.hash}:{}};let y=chunkNPWMZIPA_cjs.g(c);if(y==null)throw new TypeError("Font configuration identity requires prepared source bytes");return {...u,...t?{id:c.id}:{},faceIndex:c.faceIndex,declaredHash:c.hash,actualHash:y,byteLength:c.bytes.byteLength}}),substitutions:a.map(c=>({from:n(c.from),to:n(c.to),lineMetrics:c.lineMetrics?{heightEm:c.lineMetrics.heightEm,baselineEm:c.lineMetrics.baselineEm}:null})),defaultFont:Wo(e.defaultFont,t),language:e.language||"en"},s={epoch:e.epoch,maxFontBytes:e.maxFontBytes};return {version:1,...t?s:{},...i}}var Ko=Symbol("prepared-layout-font-configuration"),He=new WeakMap;function Vo(e){return He.has(e)}function Xo(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.configuration}function $i(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.sharedShapingFingerprint}function xt(e,t){return Hn(e,t,false)}function qi(e,t){return Hn(e,t,true)}function Hn(e,t,n){let r=Go(e,n),o=Object.freeze({epoch:r.epoch,maxFontBytes:r.maxFontBytes,sources:Object.freeze(r.sources.map(y=>n&&chunkNPWMZIPA_cjs.g(y)!==void 0?y:chunkNPWMZIPA_cjs.f(y,{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash}))),substitutions:r.substitutions,defaultFont:r.defaultFont,language:r.language}),a=new TextEncoder,i=Nn(o,true),s=a.encode(JSON.stringify(i)),c=Nn(o,false),l=a.encode(JSON.stringify(c)),u=Object.freeze({[Ko]:true,fingerprint:`font-config:${chunkTFJUIP4X_cjs.f(s)}`});return He.set(u,{configuration:o,sharedShapingFingerprint:`shared-font-config:${chunkTFJUIP4X_cjs.f(l)}`}),u}function jo(e){return xt(e).fingerprint}function Yo(e,t){let n=new TextEncoder().encode(JSON.stringify({version:1,environment:e,executionPolicy:Mn(t),ligatureCaretPolicy:Dn,fallback:chunkNPWMZIPA_cjs.sa}));return `shaping:${chunkTFJUIP4X_cjs.f(n)}`}async function Un(e,t,n,r,o=false){let i=Vo(e)?e:xt(e,t),s=Xo(i),{epoch:c,maxFontBytes:l,sources:u,substitutions:y,defaultFont:f}=s,p=s.language||"en",g=i.fingerprint,h=chunkNPWMZIPA_cjs.m({epoch:c,maxFontBytes:l,resources:u,substitutions:y,validateFont:mt,instrumentation:{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash,onAdmission:t?.onFontAdmission}});await ft();let d=Object.freeze({script:Ho,variationAxes:Object.freeze({}),shapingLibrary:ie,unicodeDataVersion:ko,normalization:zo,language:p,features:Po,...o?{documentLigatures:true}:{},fixedPointScale:No,roundingMode:Do});return Object.freeze({fonts:h,shaper:Pn(n??gt(r),r,n===void 0),defaultFont:f,environment:d,ligatureCaretPolicy:Dn,operation:Object.freeze({resourceEpoch:h.epoch,configEpoch:c,extensionFingerprint:g,shapingHash:Yo(d,r),producerVersion:1})})}async function $o(e,t,n){return Un(e,t,void 0,_n(n))}async function Zi(e,t,n,r,o=false){return Un(e,r,t,n,o)}function qo(e){e.shaper.dispose?.();}function bt(e){let t=new Set([0,e.text.length]);for(let r of chunkNPWMZIPA_cjs.ya(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function Ue(e,t){return bt(e).includes(t)}function Zo(e,t){return Ue(e,t)}function Jo(e,t,n){return n>=t&&Ue(e,t)&&Ue(e,n)}function Qo(e){let t=chunkNPWMZIPA_cjs.ya(e.text);return bt(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var Ft="und";function Vn(){return typeof Intl.Segmenter=="function"}function ea(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Ft})`);return e}function Xn(){let e=new(ea())(Ft,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var ta=/^[\p{L}\p{N}']$/u,na=/^\s$/u;function Gn(e){return ta.test(e)}function Wn(e){return na.test(e)}function Rt(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function jn(e){let t=chunkNPWMZIPA_cjs.ya(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(Wn(o.text)){let a=r+1;for(;a<t.length&&Wn(t[a].text);)a+=1;n.push(Rt(t,r,a,false)),r=a;continue}if(Gn(o.text)){let a=r+1;for(;a<t.length&&Gn(t[a].text);)a+=1;n.push(Rt(t,r,a,true)),r=a;continue}n.push(Rt(t,r,r+1,false)),r+=1;}return n}function Yn(){return {segment:jn}}function $n(e={}){let t=e.isIntlAvailable??Vn,n=e.createIntlBoundary??Xn,r=e.createFallbackBoundary??Yn;if(!t())return r();try{return n()}catch{return r()}}var Kn;function qn(){return Kn??=$n(),Kn}function ra(e,t=qn()){return t.segment(e)}function oa(e,t){return t.map(n=>({graphemeFrom:chunkNPWMZIPA_cjs.Ca(e,n.utf16From),graphemeTo:chunkNPWMZIPA_cjs.Ca(e,n.utf16To),wordLike:n.wordLike}))}var Zn={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},vt=Object.keys(Zn),Jn=vt.filter(e=>Zn[e]==="coarse-gate"),Ge=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},ue=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},aa={resourceEpoch:Ge,configEpoch:Ge,extensionFingerprint:ue,shapingHash:ue,producerVersion:Ge},ia=(e,t)=>{aa[t](e[t],t);},de=e=>{for(let t of vt)ia(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},sa=(e,t)=>{let n=de(e),r=de(t),o=vt.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},Ct=e=>{let t=e.map(({key:n,fingerprint:r})=>(ue(n,"resource dependency key"),ue(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},ca=e=>(Ge(e.revision,"revision"),ue(e.dependencyFingerprint,"dependencyFingerprint"),ue(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Ct(e.resourceDependencies),...de(e)})),la=(e,t)=>{let n=Ct(e),r=Ct(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function ua(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=la(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Jn)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var Et=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=ua(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:ca(r)});}evictEpoch(t){let n=de(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Jn.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=de(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(c=>n.get(c.key)!==c.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Qn(e){return e.projected===true?null:e.range}function pa(e,t,n,r=false){let{page:o,story:a,host:i,noteScopeId:s,noteAreaKind:c}=e,l=a==="header"||a==="footer"?u=>chunkNPWMZIPA_cjs.Ia(u,e.origin,{x:o.box.x,y:o.box.y}):void 0;chunkNPWMZIPA_cjs.Ra(i,(u,y)=>{let{textboxDepth:f,textboxOwner:p,textboxPath:g,storyOrigin:h}=y,d=f===0?a:"textbox";if(r&&u.marker&&!u.lines.some(S=>S.spans.length>0)){let S=u.lines[0];if(!S||!u.marker)return;let x={range:{paragraphId:u.paragraphId,start:S.range.start,end:S.range.start},text:"",props:[],style:u.marker.style,box:{...S.box,width:0}};n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+x.box.x,y:h.y+x.box.y,width:0,height:x.box.height}),noteScopeId:s,noteAreaKind:c,textboxDepth:f,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:u.paragraphId,line:S,span:x,sourceRange:null});return}for(let S of u.lines){let x=[...chunkNPWMZIPA_cjs.Ya(S)].sort((R,L)=>(t.get(R.paragraphId)??Number.MAX_SAFE_INTEGER)-(t.get(L.paragraphId)??Number.MAX_SAFE_INTEGER));for(let R of x)for(let L of R.spans)n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+L.box.x,y:h.y+L.box.y,width:L.box.width,height:L.box.height}),noteScopeId:s,noteAreaKind:c,textboxDepth:f,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:R.paragraphId,line:S,span:L,sourceRange:Qn(L)});}},e.origin,l);}function fa(e,t,n={}){let r=new Map(chunkNPWMZIPA_cjs.eb(e).map((o,a)=>[o,a]));chunkNPWMZIPA_cjs.Oa(e,o=>pa(o,r,t,n.spanlessMarkers===true));}var ya=1,er=4,te=Object.freeze({top:0,right:0,bottom:0,left:0}),tr=new WeakMap;function ha(e,t){let n=ga(e);return n===te?t:chunkNPWMZIPA_cjs.xf(t,n)}function ga(e){let t=e.vectorShape;if(!t)return te;let{cx:n,cy:r}=t.extentEmu;if(!(n>=0)||!(r>=0)||n===0&&r===0)return te;let o=tr.get(t);if(o||(o=Sa(t),tr.set(t,o)),o===te)return te;let a=e.paintBounds,i=e.geometry.contentBounds;if(!(a.width>0||i.width<=0)||!(a.height>0||i.height<=0))return te;let s=n>0?i.width/n:i.height/r,c=r>0?i.height/r:i.width/n,l=(f,p,g)=>{if(g<-1e-3)return 0;let h=f*p-Math.max(0,g);return Number.isFinite(h)&&h>0?h:0},u=e.kind==="inlineDrawing"&&e.placeholderGraphicKind===null,y={left:l(o.left,s,i.x-a.x),top:u?0:l(o.top,c,i.y-a.y),right:l(o.right,s,a.x+a.width-(i.x+i.width)),bottom:l(o.bottom,c,a.y+a.height-(i.y+i.height))};return y.left||y.top||y.right||y.bottom?Object.freeze(y):te}function Sa(e){let{cx:t,cy:n}=e.extentEmu,r=0,o=0,a=t,i=n,s=(y,f)=>{r=Math.min(r,y),a=Math.max(a,y),o=Math.min(o,f),i=Math.max(i,f);},c=e.overflowVisible===true,l=c?1/0:ya,u=y=>y.x>=-l&&y.x<=t+l&&y.y>=-l&&y.y<=n+l;for(let y of e.components){if(c)for(let d of y.subpathsEmu)for(let S of d)s(S.x,S.y);let f=y.clipEmu?void 0:y.shadow;if(f){let d=1/0,S=1/0,x=-1/0,R=-1/0;for(let B of y.subpathsEmu)for(let v of B){let w=c?v.x:Math.max(0,Math.min(t,v.x)),_=c?v.y:Math.max(0,Math.min(n,v.y));d=Math.min(d,w),S=Math.min(S,_),x=Math.max(x,w),R=Math.max(R,_);}let L=chunkNPWMZIPA_cjs.wf(f.blurEmu)*.75+(y.strokeHex!==null?Math.max(1,chunkNPWMZIPA_cjs.wf(y.strokeWidthEmu))/2:0),E=chunkNPWMZIPA_cjs.wf(f.dxEmu),O=chunkNPWMZIPA_cjs.wf(f.dyEmu);d<=x&&(s(d+E-L,S+O-L),s(x+E+L,R+O+L));}if(y.strokeHex===null||y.strokeInset===true)continue;let p=Math.max(1,chunkNPWMZIPA_cjs.wf(y.strokeWidthEmu))/2,g=l+Math.max(0,chunkNPWMZIPA_cjs.wf(y.strokeOutsetEmu??0)),h=d=>d.x>=-g&&d.x<=t+g&&d.y>=-g&&d.y<=n+g;y.subpathsEmu.forEach((d,S)=>{let x=y.subpathsClosed?.[S]!==false,R=xa(d,x),L=x&&R.length>2?R.length:R.length-1,E=[];for(let B=0;B<L;B+=1){let v=R[B],w=R[(B+1)%R.length],_=Math.hypot(w.x-v.x,w.y-v.y),b={x:-(w.y-v.y)/_,y:(w.x-v.x)/_};if(E.push(b),!!ba(v,w,-g,t+g,-g,n+g))for(let m=0;m<2;m+=1){let F=J[m],C=v.x+(w.x-v.x)*F,T=v.y+(w.y-v.y)*F;s(C+b.x*p,T+b.y*p),s(C-b.x*p,T-b.y*p);}}if(!x&&E.length&&(y.strokeCap==="round"||y.strokeCap==="square")){for(let[B,v,w]of [[R[0],E[0],-1],[R[R.length-1],E[E.length-1],1]])if(h(B))if(y.strokeCap==="round")s(B.x-p,B.y-p),s(B.x+p,B.y+p);else {let _=B.x+w*v.y*p,b=B.y-w*v.x*p;s(_+v.x*p,b+v.y*p),s(_-v.x*p,b-v.y*p);}}let O=x&&R.length>2?E.length:E.length-1;for(let B=0;B<O;B+=1){let v=R[(B+1)%R.length];if(!h(v))continue;if(y.strokeJoin==="round"){s(v.x-p,v.y-p),s(v.x+p,v.y+p);continue}if(y.strokeJoin==="bevel")continue;let w=E[B],_=E[(B+1)%E.length],b=1+w.x*_.x+w.y*_.y;if(b<2/(er*er))continue;let m=w.y*-_.x- -w.x*_.y;if(m===0)continue;let F=m>0?-1:1;s(v.x+F*(w.x+_.x)*p/b,v.y+F*(w.y+_.y)*p/b);}});for(let d of y.arrowheadsEmu??[])if(!(!d[0]||!u(d[0])))for(let S of d)s(S.x,S.y);}return r>=0&&o>=0&&a<=t&&i<=n?te:Object.freeze({left:-r,top:-o,right:a-t,bottom:i-n})}function xa(e,t){let n=[];for(let a of e){let i=n[n.length-1];(!i||i.x!==a.x||i.y!==a.y)&&n.push(a);}let r=n[0],o=n[n.length-1];return t&&n.length>1&&r.x===o.x&&r.y===o.y&&n.pop(),n}var J=new Float64Array(2);function ba(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y;return J[0]=0,J[1]=1,We(-i,e.x-n)&&We(i,r-e.x)&&We(-s,e.y-o)&&We(s,a-e.y)}function We(e,t){if(e===0)return t>=0;let n=t/e;return e<0?J[0]=Math.max(J[0],n):J[1]=Math.min(J[1],n),J[0]<=J[1]}var Ra="abcdefghijklmnopqrstuvwxyz";function N(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function X(e,t,n,r,o){let a=r.shaping?.context;return e.shape({text:o,fontSizeHalfPoints:N(r),bidiLevel:r.shaping?.direction==="rtl"?1:0,environment:Fa(t,n,r),...a?{context:a}:{}})}var nr=new WeakMap;function Fa(e,t,n){if(!Object.isFrozen(e)||!Object.isFrozen(e.features)||!Object.isFrozen(e.variationAxes)||!Object.isFrozen(e.shapingLibrary))return rr(e,t,n);let r=n.shaping?.direction??"ltr",o=n.shaping?.script,a=`${r}|${o??""}|${chunkNPWMZIPA_cjs.w(n)?1:0}|${e.documentLigatures?chunkNPWMZIPA_cjs.O(n):""}|${n.smallCaps?1:0}`,i=nr.get(e);i||nr.set(e,i=new WeakMap);let s=i.get(t);s||i.set(t,s=new Map);let c=s.get(a);return c||s.set(a,c=rr(e,t,n)),c}function rr(e,t,n){return chunkNPWMZIPA_cjs.r({...e,font:t,direction:n.shaping?.direction??"ltr",script:n.shaping?.script==="Zyyy"?e.script:n.shaping?.script??e.script,features:{...e.features,kern:chunkNPWMZIPA_cjs.w(n)?1:0,...e.documentLigatures?chunkNPWMZIPA_cjs.N(n):{},...n.smallCaps?{smcp:1}:{}},fallbackOrder:[]})}function Ke(e,t,n,r,o){let a=o.get(n);if(a!==void 0)return a;let i=true;try{for(let s of Ra){let c=X(e,t,n,{...r,smallCaps:!0},s),l=X(e,t,n,{...r,smallCaps:!1},s);if(!(c.glyphs.length!==l.glyphs.length||c.glyphs.some((y,f)=>y.id!==l.glyphs[f]?.id))){i=!1;break}}}catch{i=false;}return o.set(n,i),i}var Ca=new Map([["garamond",{family:"Garamond",em:or(1765,539,0)}],["segoe ui",{family:"Segoe UI",em:or(2210,514,0)}]]);function or(e,t,n){return {heightEm:(e+t+n)/2048,baselineEm:(e+n)/2048}}function Lt(e){return e?Ca.get(e.trim().toLowerCase()):void 0}function Ve(e){let t=Lt(e.fontFamily);if(!t)return;let n=N(e)/2*chunkNPWMZIPA_cjs.ra(e);return {height:t.em.heightEm*n,baseline:t.em.baselineEm*n}}var Ea=new Map([["roman","serif"],["swiss","sans"],["modern","mono"]]);function xs(e,t){return t==="fixed"?"mono":e?Ea.get(e):void 0}var va=new Map([["calibri","sans"],["arial","sans"],["helvetica","sans"],["verdana","sans"],["tahoma","sans"],["segoe ui","sans"],["aptos","sans"],["century gothic","sans"],["carlito","sans"],["cambria","serif"],["times new roman","serif"],["georgia","serif"],["garamond","serif"],["book antiqua","serif"],["palatino linotype","serif"],["caladea","serif"],["courier new","mono"],["consolas","mono"]]);function ar(e){let t=e.trim().toLowerCase(),n=va.get(t);if(n)return n;let r=t.split(/[\s_-]+/);if(r.includes("mono")||r.includes("monospace")||r.includes("courier"))return "mono";if(r.includes("sans"))return "sans";if(r.includes("serif")||r.includes("roman"))return "serif"}var bs={serif:"Times New Roman",sans:"Arial",mono:"Courier New"};var Bt="Calibri, Carlito, Helvetica, Arial, sans-serif",La='"Times New Roman", "Liberation Serif", Tinos, serif',Ba='"Courier New", "Liberation Mono", Cousine, monospace';function Ta(e,t=Bt){if(!e)return t;let n=ar(e);return n==="serif"?La:n==="mono"?Ba:t}var Ts=new Map([["calibri","Carlito"]]),wa=65536,Oa=256;function ir(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function sr(e){let t=new Map,n=null,r=null,o=0,a=s=>{s.older?s.older.newer=s.newer:n=s.newer,s.newer?s.newer.older=s.older:r=s.older,s.older=null,s.newer=null;},i=s=>{s.older=r,s.newer=null,r?r.newer=s:n=s,r=s;};return {get(s){let c=t.get(s);if(c!==void 0)return c!==r&&(a(c),i(c)),c.value},set(s,c){let l=t.get(s);if(l){l.value=c,l!==r&&(a(l),i(l));return}let u={key:s,value:c,older:null,newer:null};for(t.set(s,u),i(u);t.size>e&&n;){let y=n;a(y),t.delete(y.key),o+=1;}},get size(){return t.size},get evictions(){return o}}}var cr=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function lr(e=null){return e!=null&&typeof e.measureText=="function"}function ur(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??Bt,r=e.context??null;if(!lr(r))return null;let o=r,a=sr(ir(e.maxWidthEntries,wa)),i=sr(ir(e.maxMetricsEntries,Oa)),s=e.fontAlias,c=new Map,l=f=>{let p=c.get(f);if(p!==void 0)return p;let g="The quick brown fox 0123",h=false;for(let d of ["monospace","serif"]){o.font=`32px ${d}`;let S=o.measureText(g).width;if(o.font=`32px "${f}", ${d}`,o.measureText(g).width!==S){h=true;break}}return c.set(f,h),h},u=f=>{let p=f.fontFamily&&cr.test(f.fontFamily)?f.fontFamily:null,g=p?s?.(p):void 0,h=g&&cr.test(g)?g:null,d=Ta(p,n),S=p?h?`"${h}", "${p}", ${d}`:`"${p}", ${d}`:n,x=f.bold?"bold":"normal",R=f.italic?"italic":"normal",L=f.smallCaps?"small-caps":"normal",E=f.fontSizePt*chunkNPWMZIPA_cjs.ra(f)*t;return `${R} ${L} ${x} ${E}px ${S}`},y=(f,p,g)=>f/t*(g.horizontalScalePercent/100)+p.length*g.characterSpacingPt;return {measure(f,p){if(f.length===0)return 0;let g=u(p),h=chunkNPWMZIPA_cjs.y(p,f),d=`${g}\0${h}\0${f}`,S=a.get(d);if(S!==void 0)return y(S,f,p);o.font=g,"fontKerning"in o&&(o.fontKerning=h?"normal":"none");let x=o.measureText(f).width;return a.set(d,x),y(x,f,p)},inkBounds(f,p){if(!f||f.length>2||p.shaping?.direction==="rtl"||chunkNPWMZIPA_cjs.ya(f).length!==1)return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=chunkNPWMZIPA_cjs.w(p)?"normal":"none");let g=o.textAlign,h=o.direction,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.direction="ltr"),d=o.measureText(f);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.direction=h);}let S=d.actualBoundingBoxLeft,x=d.actualBoundingBoxRight;if(S===void 0||x===void 0||!Number.isFinite(S)||!Number.isFinite(x))return;let R=p.horizontalScalePercent/(100*t);return {left:-S*R,right:x*R}},textOutline(f,p){if(!f||p.shaping?.direction==="rtl")return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=chunkNPWMZIPA_cjs.w(p)?"normal":"none");let g=o.textAlign,h=o.textBaseline,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.textBaseline="alphabetic"),d=o.measureText(f);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.textBaseline=h);}let S=[-(d.actualBoundingBoxLeft??NaN),-(d.actualBoundingBoxAscent??NaN),d.actualBoundingBoxRight??NaN,d.actualBoundingBoxDescent??NaN].map(O=>O/t);if(S.some(O=>!Number.isFinite(O)))return;let[x,R,L,E]=S;if(!(!(L>x)||!(E>R)))return {path:null,ink:{left:x,top:R,right:L,bottom:E}}},lineMetrics(f){let p=f.fontSizePt*chunkNPWMZIPA_cjs.ra(f),g=u(f),h=i.get(g);if(h)return h;let d=Lt(f.fontFamily),S=d&&!l(d.family)&&Ve(f);if(S)return i.set(g,S),S;let x=p*1.15,R=p*.8;o.font=g,"fontKerning"in o&&(o.fontKerning=chunkNPWMZIPA_cjs.w(f)?"normal":"none");let L=o.measureText("Hxg"),E=L.fontBoundingBoxAscent,O=L.fontBoundingBoxDescent;if(typeof E=="number"&&Number.isFinite(E)&&E>0&&(R=E/t,typeof O=="number"&&Number.isFinite(O)&&O>=0)){let v=(E+O)/t;v>0&&(x=Math.max(v,x));}x>0||(x=p*1.15);let B={height:x,baseline:R};return i.set(g,B),B}}}function Aa(e=1,t={}){let n=ur({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:chunkNPWMZIPA_cjs.ta(),producer:"fixed-measurer"}}function Ia(e){let t;return n=>{t===void 0&&(t=chunkNPWMZIPA_cjs.id(e.pages)?.hosts??null);let r=t?.get(n);return r?chunkNPWMZIPA_cjs.gd(r.pageNumber,r.format):null}}function dr(e,t){let n=chunkNPWMZIPA_cjs.tf(e,t.displayMode??chunkNPWMZIPA_cjs.lb),r=chunkNPWMZIPA_cjs.Nd({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:chunkTFJUIP4X_cjs.mj(t.package,"footnote"),endnotesPart:chunkTFJUIP4X_cjs.mj(t.package,"endnote")}:void 0,a=chunkNPWMZIPA_cjs.he(n,r,o,t.package?chunkNPWMZIPA_cjs.ee(t.package,e,n):void 0,t.displayMode??chunkNPWMZIPA_cjs.lb);return {blocks:n,notes:o,context:a}}function pr(e,t,n,r,o){for(let a of t){if(r.length>=chunkTFJUIP4X_cjs.vn)return;if(n.tokenForParagraph(a.id)!==""&&chunkTFJUIP4X_cjs.yn(e,a.id)===null)for(let i of chunkTFJUIP4X_cjs.xn(a)){if(r.length>=chunkTFJUIP4X_cjs.vn)return;if(!i.rewritable)continue;let s=chunkNPWMZIPA_cjs.Vc(i.instruction);if(s===null)continue;let c=n.liveValueOf(i.fieldNodeId,s);if(c===null&&o&&n.pageRefProjectionOf){let l=n.pageRefProjectionOf(i.fieldNodeId,s);if(l){let u=o(l.targetParagraphId);u!==null&&u.length>0&&chunkNPWMZIPA_cjs.hd(l.calibration,l.cached,u,Number.NaN)&&(c=u);}}c===null||c===i.cachedText||c.length>chunkTFJUIP4X_cjs.wn||c.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:c});}}}function Ma(e,t){let{blocks:n,context:r}=dr(e,t);if(r===null)return null;let o=[];return pr(e,chunkNPWMZIPA_cjs.Yc(chunkNPWMZIPA_cjs.vc(n)),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Ds(e,t){let{notes:n,context:r}=dr(e,t);if(r===null||n===void 0)return [];let o=[],a=[{noteKind:"footnote",notesPart:n.footnotesPart},{noteKind:"endnote",notesPart:n.endnotesPart}];for(let{noteKind:i,notesPart:s}of a){if(!s)continue;let c=[];for(let l of chunkNPWMZIPA_cjs.fe(s,t.displayMode??chunkNPWMZIPA_cjs.lb)){if(c.length>=chunkTFJUIP4X_cjs.vn)break;pr(s,chunkNPWMZIPA_cjs.Yc(chunkNPWMZIPA_cjs.vc(l)),r,c);}c.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:c}});}return o}function _a(e){return e.box}function fr(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)fr(o,t);}function Pa(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkTFJUIP4X_cjs.ec*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let c of r)t.get(c)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let c=chunkTFJUIP4X_cjs.oc(s);c&&n(c,a,i+1),r.pop();let l=t.get(s.id);l&&l.length===0&&a!==null&&l.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function ka(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function za(e,t){let n=chunkTFJUIP4X_cjs.sc(e.root);if(n.length===0)return Na;let r=new Map;t.pages.forEach((i,s)=>{(l=>{for(let u of l){let y=new Set;fr(u,y);for(let f of y){let p=r.get(f)??[];p.push({pageIndex:s,box:_a(u)}),r.set(f,p);}}})(i.fragments);});let o=Pa(e.root),a=[];for(let i of n){let s=chunkTFJUIP4X_cjs.qc(i.node),c=[...i.ancestors.map(f=>chunkTFJUIP4X_cjs.qc(f).lock),s.lock],l=o.get(i.node.id)??[],u=new Map;for(let f of l)for(let p of r.get(f)??[]){let g=u.get(p.pageIndex);u.set(p.pageIndex,g?ka(g,p.box):p.box);}let y=[...u.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:s.type,level:chunkTFJUIP4X_cjs.rc(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunkTFJUIP4X_cjs.vc(c),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:l,fragments:y});}return a}var Na=Object.freeze([]);var Da=4096;function Ha(e,t=0){if(!(e instanceof Uint8Array)||!Number.isSafeInteger(t)||t<0||e.byteLength<12)return;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=(h,d)=>Number.isSafeInteger(h)&&Number.isSafeInteger(d)&&h>=0&&d>=0&&h<=e.length-d,o=h=>n.getUint16(h,false),a=h=>n.getUint32(h,false),i=0,s=false;if(a(0)===1953784678){s=true;let h=a(4),d=a(8);if(![65536,131072].includes(h)||!d||t>=d||!r(12,d*4))return;i=a(12+t*4);}else if(t!==0)return;if(!r(i,12)||![65536,1330926671,1953658213].includes(a(i)))return;let c=o(i+4);if(!c||c>Da||!r(i+12,c*16))return;let l=new Map;for(let h=0;h<c;h++){let d=i+12+h*16,S=a(d),x=a(d+8),R=a(d+12);if(l.has(S)||!r(x,R))return;l.set(S,{offset:x,length:R});}let u=l.get(1751474532),y=l.get(1330851634);if(!u||u.length<20||!y||y.length<4)return;let f=o(u.offset+18),p=o(y.offset),g=n.getInt16(y.offset+2,false);if(!(f<16||f>16384||p>5||g<=0))return Object.freeze({faceIndex:t,collection:s,unitsPerEm:f,os2Version:p,xAvgCharWidth:g,averageAdvanceEm:g/f})}function mr(e,t=Ha){if(typeof e!="function"||typeof t!="function")return;let n=new WeakMap;return r=>{if(!chunkNPWMZIPA_cjs.ec(r))return;let o;try{o=e(r);}catch{return}if(!o||typeof o!="object"||o.substitution!==null||o.family.trim().toLowerCase()!==r.fontFamily?.trim().toLowerCase()||typeof o.hash!="string"||!/^sha256:[0-9a-f]{64}$/u.test(o.hash)||!Number.isSafeInteger(o.faceIndex)||o.faceIndex<0)return;let a=n.get(o);if(a===void 0&&(a=t(o.bytes,o.faceIndex)??null,n.set(o,a)),!a)return;let i=r.fontSizePt*a.averageAdvanceEm/2;return Number.isFinite(i)&&i>=0&&i<=r.fontSizePt?i:void 0}}var W=(e,t)=>e[t]<<8|e[t+1],Q=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Ua(e,t){let n=(i,s)=>i>=0&&i+s<=e.length;if(!n(0,12))return null;let r=Q(e,0)===1953784678;if(r&&!n(12+t*4,4))return null;let o=r?Q(e,12+t*4):0;if(!n(o,12))return null;let a=W(e,o+4);for(let i=0;i<a;i+=1){let s=o+12+i*16;if(!n(s,16))return null;if(Q(e,s)!==1668112752)continue;let c=Q(e,s+8);if(!n(c,4))return null;let l=null,u=null,y=W(e,c+2);for(let f=0;f<y;f+=1){let p=c+4+f*8;if(!n(p,8))return null;let g=W(e,p),h=W(e,p+2),d=c+Q(e,p+4);if(!n(d,2)||!(g===0||g===3&&(h===1||h===10)))continue;let x=W(e,d);x===12&&u===null&&(u=d),x===4&&l===null&&(l=d);}return u!==null?{format:12,offset:u}:l!==null?{format:4,offset:l}:null}return null}function Ga(e,t,n){let r=(u,y)=>u>=0&&u+y<=e.length,o=t.offset;if(t.format===12){if(!r(o,16))return false;let u=Q(e,o+12),y=0,f=Math.min(u,Math.floor((e.length-o-16)/12))-1;for(;y<=f;){let p=y+f>>>1,g=o+16+p*12,h=Q(e,g),d=Q(e,g+4);if(n<h)f=p-1;else if(n>d)y=p+1;else return Q(e,g+8)+(n-h)!==0}return false}if(n>65535||!r(o,14))return false;let a=W(e,o+6)>>>1,i=o+14,s=i+a*2+2,c=s+a*2,l=c+a*2;if(!r(l,a*2))return false;for(let u=0;u<a;u+=1){if(n>W(e,i+u*2))continue;let y=W(e,s+u*2);if(n<y)return false;let f=W(e,c+u*2),p=l+u*2,g=W(e,p);if(g===0)return (n+f&65535)!==0;let h=p+g+(n-y)*2;if(!r(h,2))return false;let d=W(e,h);return d!==0&&(d+f&65535)!==0}return false}var yr=new WeakMap;function hr(e,t){let n=chunkNPWMZIPA_cjs.i(e),r=yr.get(e);return r===void 0&&(r=Ua(n,e.faceIndex),yr.set(e,r)),r?Ga(n,r,t):void 0}var gr=new WeakMap;function Wa(e){let t=gr.get(e);if(t!==void 0)return t;let n=chunkNPWMZIPA_cjs.i(e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=false,a=r.getUint32(0)===1953784678?r.getUint32(12+e.faceIndex*4):0,i=r.getUint16(a+4);for(let s=0;s<i;s++){let c=a+12+s*16;if(r.getUint32(c)!==1330851634)continue;let l=r.getUint32(c+8),u=r.getUint32(c+12);u>=86&&l<=n.byteLength-u&&r.getUint16(l)>=1&&(o=(r.getUint32(l+78)&1966080)!==0);break}return gr.set(e,o),o}var Sr=1.3;function xr(e,t,n,r,o,a=false){let i=n.height-r;if(!(Math.abs(i-t)<=o)&&!a||!Wa(e))return n;let c=a?i*Sr:Math.max(n.height,t*Sr),l=n.baseline-r;return {height:c,baseline:l+(c-i)/2}}var Ka=.89111328125,Va=443/2048,Xa=87/2048,ja=1/2048,Ya=new Set(["Arab","Hebr","Syrc","Thaa","Nkoo"]);function br(e){return e.latinLane===void 0&&!Ya.has(e.shaping?.script??"")}function Rr(e,t,n,r,o,a=true){if(!a||r!==0||!(o>0)||e.trim().toLowerCase()!=="times new roman")return r;let i=(s,c)=>Math.abs(s/o-c)<=ja;return i(t,Ka)&&i(n,Va)?Xa*o:r}var $a=.5;function qa(e,t){if(t.fontFamily===null)return false;let n=e.substitution;return n!==null&&(n.lineMetrics!==void 0||!chunkTFJUIP4X_cjs.me(n.requested.family,n.resolved.family))?false:e.family===t.fontFamily||chunkTFJUIP4X_cjs.me(e.family,t.fontFamily)}function Fr(e,t,n,r,o){let a=new WeakMap;return (i,s)=>{let c=chunkNPWMZIPA_cjs.ra(s),l=a.get(i);l||(l=new Map,a.set(i,l));let u=N(s),y=br(s),f=qa(i,s),p=(y?u:-u)+(f?$a:0),g=l.get(p);if(g)return c===1?g:{height:g.height*c,baseline:g.baseline*c};let h,d=true,S=i.substitution?.lineMetrics;if(S){let x=u/2;h={height:S.heightEm*x,baseline:S.baselineEm*x};}else try{let x=X(e,t,i,s,""),R=x.metrics.ascent/t.fixedPointScale,L=x.metrics.descent/t.fixedPointScale,E=u/2,O=R+L,B=E*r,v=O>B?B/O:1,w=O*v,_=x.metrics.lineGap/t.fixedPointScale,b=Math.min(Math.max(0,Rr(i.family,R,L,_,E,y)),w*o),m=w+b;m>0?h=xr(i,E,{height:m,baseline:R*v+b},b,2/t.fixedPointScale,f):(h=n.lineMetrics(s),d=!1);}catch{h=n.lineMetrics(s),d=false;}return d?(l.set(p,h),c===1?h:{height:h.height*c,baseline:h.baseline*c}):h}}var Tt=2048,Za=32,Ja=new Map([["symbol",{ascent:2059,descent:450,advances:[512,682,1460,1024,1124,1706,1593,899,682,682,1024,1124,512,1124,512,569,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,569,569,1124,1124,1124,909,1124,1479,1366,1479,1253,1251,1563,1235,1479,682,1292,1479,1405,1821,1479,1479,1573,1518,1139,1212,1251,1413,899,1573,1321,1628,1251,682,1767,682,1348,1024,1024,1292,1124,1124,1012,899,1067,842,1235,674,1235,1124,1124,1180,1067,1124,1124,1067,1124,1235,899,1180,1460,1405,1010,1405,1012,983,410,983,1124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,506,1124,342,1460,1024,1542,1542,1542,1542,2134,2021,1235,2021,1235,819,1124,842,1124,1124,1460,1012,942,1124,1124,1124,1124,2048,1235,2048,1348,1686,1405,1628,2021,1573,1573,1686,1573,1573,1460,1460,1460,1460,1460,1460,1460,1573,1460,1618,1618,1823,1686,1124,512,1460,1235,1235,2134,2021,1235,2021,1235,1012,674,1618,1618,1610,1460,786,786,786,786,786,786,1012,1012,1012,1012,0,674,561,1405,1405,1405,786,786,786,786,786,786,1012,1012,1012,0]}],["wingdings",{ascent:1841,descent:432,advances:[2048,2110,2344,2665,2752,1830,2492,938,2220,1826,2319,2319,2399,2399,2951,2956,2245,2751,1431,1431,1826,1135,1233,2196,1941,2208,1924,1825,1826,1826,1825,1863,1863,1203,1624,1381,1381,1929,1929,1124,1124,1826,1727,1727,1727,2275,1352,1739,2230,1819,1803,1332,1665,1529,1529,1480,1420,1627,1813,1826,1834,1825,2368,2159,1974,2233,1927,1911,1937,2099,1902,2245,2181,1597,2150,2603,1529,1951,1529,1825,1825,1825,1825,937,1529,2020,1825,1183,2171,2171,1825,1826,1826,1086,1086,0,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,2048,2048,2048,2048,2048,2048,2048,2048,641,937,641,1825,1825,1825,1825,1825,1951,937,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2146,2146,2146,2146,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2566,2566,1627,1627,1825,1825,1825,1825,1825,1825,2006,2006,1825,1825,1589,1589,1589,1589,2186,2186,1825,1825,1787,1787,1787,1787,1825,1825,1660,1660,2171,1660,1601,1601,1601,1601,987,789,1301,1609,1826,1826,2119]}],["wingdings 2",{ascent:1727,descent:432,advances:[2048,2110,2090,2073,2086,2344,2045,2220,989,1431,1431,1826,1431,1431,1826,1431,1431,1826,1431,1431,2320,2246,1826,1826,1826,2320,2170,2170,1381,1381,1938,1938,1938,1938,1928,1928,1928,1928,1047,1047,1047,1047,1178,1178,1178,1178,1826,1321,1568,1826,1826,1826,1826,1825,1825,1826,1826,2226,1727,1548,1579,984,1035,864,1018,2048,2048,2048,2048,2048,2048,2048,2048,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,0,1899,1899,1453,1453,1673,1332,1431,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2048,2048,542,740,1135,1825,1825,1825,1825,1825,1825,1825,542,740,1135,1825,1825,1825,1825,1825,1825,1825,1825,1825,624,764,903,1461,2020,2020,2020,2020,2020,542,641,740,1135,1529,1529,1085,1085,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1496,1825,0,0,0,0,0,0]}],["wingdings 3",{ascent:1900,descent:432,advances:[2048,1825,1825,1135,1135,1444,1444,1444,1444,1825,1825,1135,1135,1677,1677,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1825,1825,1455,1455,1455,1455,2010,2010,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2220,1825,1751,1114,1115,1660,1660,1930,1930,1930,1930,1924,1924,1924,1924,1930,1930,1931,1931,1825,1825,1232,1232,1444,1444,1444,1444,1825,1232,2005,2005,2005,2005,1801,1801,1801,1801,1801,1801,1801,1801,1085,1085,1825,0,1825,1825,1825,1825,1825,1627,1627,1825,1825,1825,1825,789,789,1825,1825,987,987,1825,1825,1184,1184,1825,1825,1579,1579,1825,1825,888,888,1825,1825,1381,1381,1825,1825,1875,1875,1825,1825,1825,1825,1825,1825,1825,789,592,493,394,1825,1825,1825,1825,1825,1085,1085,1381,1381,1628,1628,1184,1184,900,900,1825,1825,1019,1019,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1291,1291,1291,1291,1961,1961,1825,1825,1540,1540,1540,1540,2096,2096,1825,1825,1688,1688,1688,1688,2277,2277,1825,1825,1885,1885,1885,1885,543,543,1234,1234,766,766,1234,1234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],["webdings",{ascent:1638,descent:410,advances:[1024,2048,2048,2048,2048,2028,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1100,1100,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1144,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,0,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2500,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1377,1377,2048,1726,1058,2048,2048,2048,2048,877,1240,2048,2048,2048,2048,1357,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2645,2048,2048,2048,2048]}]]);function Qa(e){if(chunkTFJUIP4X_cjs.b(e))return Ja.get(e.toLowerCase())}function Cr(e,t,n,r){let o=N(r)/2*chunkNPWMZIPA_cjs.ra(r)*(r.horizontalScalePercent/100)/Tt,a=[];for(let i=0;i<n.length;i++){let s=chunkTFJUIP4X_cjs.c(n.charCodeAt(i),t),c=s===null?0:e.advances[s-Za]??0;if(c===0)return;a.push(c*o+r.characterSpacingPt);}return a}function Er(e){let t=new WeakMap,n=r=>{let o=t.get(r);return o===void 0&&(o=Qa(r.fontFamily)??null,t.set(r,o)),o};return {...e,measure(r,o){let a=n(o),i=a&&Cr(a,o.fontFamily,r,o);if(!i)return e.measure(r,o);let s=0;for(let c of i)s+=c;return s},caretAdvances(r,o){let a=n(o),i=a&&Cr(a,o.fontFamily,r,o);if(!i)return e.caretAdvances?.(r,o);let s=[0];for(let c of i)s.push(s[s.length-1]+c);return s},lineMetrics(r,o){let a=n(r);if(!a)return e.lineMetrics(r,o);let i=N(r)/2*chunkNPWMZIPA_cjs.ra(r);return {height:(a.ascent+a.descent)*i/Tt,baseline:a.ascent*i/Tt}}}}var ei={M:2,L:2,Q:4,C:6,Z:0},vr=e=>{let t=Math.round(e*1e3)/1e3;return String(Object.is(t,-0)?0:t)};function wt(e,t,n){if(!(t>0)||!(n>0))return;let r=[],o=0,a=1/0,i=-1/0,s=1/0,c=-1/0;for(let l of e.glyphs){if(l.id===0)return;let u=l.outline.path,y=l.outline.unitsPerEm;if(!u)continue;if(!(y>0)||!u.startsWith("M")||/[^MLQCZ0-9eE+.,\s-]/u.test(u))return;let f=t*(l.drawScale??1)/y,p=(l.originX+l.offsetX)/n,g=(l.originY+l.offsetY)/n;for(let h of u.matchAll(/([MLQCZ])([^MLQCZ]*)/gu)){let d=h[1],S=h[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(S.length!==ei[d]||S.some(R=>!Number.isFinite(R)))return;let x=d;for(let R=0;R<S.length;R+=2){let L=p+S[R]*f,E=-(g+S[R+1]*f);a=Math.min(a,L),i=Math.max(i,L),s=Math.min(s,E),c=Math.max(c,E),x+=`${R?" ":""}${vr(L)} ${vr(E)}`;}if(o+=x.length,o>2e6)return;r.push(x);}}if(!(!r.length||!(i>a)||!(c>s)))return Object.freeze({path:r.join(""),ink:Object.freeze({left:a,top:s,right:i,bottom:c})})}var Ot=new WeakMap;function ti(e){let t=Ot.get(e);if(t!==void 0)return t??void 0;let n=e.path;if(!n.startsWith("M")||n.length>1e6||/[^MLQCZ0-9eE+.,\s-]/u.test(n))return;let r=1/0,o=-1/0,a=n.matchAll(/([MLQCZ])([^MLQCZ]*)/gu);for(let s of a){let c=s[1]==="Z"?0:s[1]==="C"?6:s[1]==="Q"?4:2,l=s[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(l.length!==c||l.some(u=>!Number.isFinite(u))){Ot.set(e,null);return}for(let u=0;u<l.length;u+=2)r=Math.min(r,l[u]),o=Math.max(o,l[u]);}let i=Number.isFinite(r)&&Number.isFinite(o)?{left:r,right:o}:void 0;return Ot.set(e,i??null),i}function Lr(e,t,n,r){if(e.clusters.length!==1||e.glyphs.length===0)return;let o=1/0,a=-1/0;for(let s of e.glyphs){if(s.id===0)return;let c=ti(s.outline),l=s.outline.unitsPerEm;if(!c||!(l>0))return;let u=(s.originX+s.offsetX)/n;o=Math.min(o,u+c.left*t*(s.drawScale??1)/l),a=Math.max(a,u+c.right*t*(s.drawScale??1)/l);}let i={left:o*r,right:a*r};return Number.isFinite(i.left)&&Number.isFinite(i.right)?i:void 0}function ni(e,t,n){if(t<12)return null;if(e.getUint32(0)!==1953784678)return 0;let o=12+(Number.isSafeInteger(n)&&n>0?n:0)*4;if(o+4>t)return null;let a=e.getUint32(o);return a+12<=t?a:null}function Br(e,t,n,r,o){let a=e.getUint16(n+4);if(a>4096||n+12+a*16>t)return null;for(let i=0;i<a;i+=1){let s=n+12+i*16;if(e.getUint32(s)!==r)continue;let c=e.getUint32(s+8),l=e.getUint32(s+12);return l<o||c+l>t?null:c}return null}function Tr(e,t){let n=e.byteLength,r=new DataView(e.buffer,e.byteOffset,n),o=ni(r,n,t);if(o===null)return null;let a=Br(r,n,o,1751474532,54);if(a===null)return null;let i=r.getUint16(a+18);if(i<=0)return null;let s=Br(r,n,o,1330851634,30);if(s===null)return null;let c=r.getInt16(s+26)/i,l=r.getInt16(s+28)/i;return !(c>0)||c>1||!(Math.abs(l)<=1)?null:{offsetEm:l,thicknessEm:c}}var Xe=.02;function At(e,t){return e.bold===true&&t.request.weight<600}function wr(e){return e.advanceX>0&&e.outline.path.length>0}function Or(e){let t=0;for(let n of e.glyphs)wr(n)&&t++;return t}function Ar(e,t,n){if(n<=0)return e;let r=new Array(e.length).fill(0);for(let a of t.glyphs){if(!wr(a))continue;let i=Math.min(Math.max(a.cluster+1,1),e.length-1);r[i]+=n;}let o=0;return e.map((a,i)=>(o+=r[i],a+o))}var ri=.5,oi=4096,ai=4,Ir=4096;function Mr(e){let t="environment"in e?e.environment:void 0,n="environment"in e?void 0:e,{shaper:r,resolveFont:o}=e,a=Er(e.fallback),i=t??{shapingLibrary:n.shapingLibrary,unicodeDataVersion:n.unicodeDataVersion,script:n?.script??"Latn",fixedPointScale:n?.fixedPointScale??1e3,normalization:n?.normalization??"none",features:n?.features??{},roundingMode:n?.roundingMode??"halfToEven",language:n?.language??"en",variationAxes:{}},s=new WeakMap,c=new WeakMap,l=chunkNPWMZIPA_cjs.q(r),u=Fr(r,i,a,ai,ri),y=new WeakMap,f=new WeakMap,p=new Array(Ir),g=0,h=(b,m,F)=>{let C=p[g];C&&C.cache.delete(C.text),b.set(m,F),p[g]={cache:b,text:m},g=(g+1)%Ir;},d=b=>{let m=y.get(b);if(m!==void 0)return m;let F=o(b);return y.set(b,F),F},S=mr(d),x=(b,m,F)=>{let C=F?c:s,T=C.get(b);T||(T=new Map,C.set(b,T));let I=T.get(m);return I||(I=new Map,T.set(m,I)),I},R=new WeakMap,L=b=>{if(!b.shaping?.wordSpacingPt)return b;let m=R.get(b);return m||(m={...b,shaping:{...b.shaping,wordSpacingPt:void 0}},R.set(b,m)),m},E=(b,m)=>m.shaping?.wordSpacingPt?chunkNPWMZIPA_cjs.bc(b)*m.shaping.wordSpacingPt:0,O=(b,m)=>a.measure(b,L(m))+E(b,m),B=(b,m)=>{let F=Math.max(0,a.measure(b,L(m))),C=a.caretAdvances?.(b,L(m))??chunkNPWMZIPA_cjs.$b(b,F);if(!C||C.length!==b.length+1)return chunkNPWMZIPA_cjs.$b(b,O(b,m));let T=Math.max(0,O(b,m)),I=0,P=0;return C.map((z,D)=>{if(D===0)return 0;b[D-1]===" "&&P++;let M=z+P*(m.shaping?.wordSpacingPt??0);return I=Math.max(I,Math.min(T,Number.isFinite(M)?M:I)),D===b.length?T:I})},v=new WeakMap,w=new WeakMap;return chunkNPWMZIPA_cjs.dc({hasResolvedFont(b){return d(b)!==null},faceCovers(b,m){let F=d(m);if(!F)return;let C=w.get(F);C||(C=new Map,w.set(F,C));let T=C.get(b);if(T!==void 0)return T;let I=true;for(let P of b){let z=hr(F,P.codePointAt(0));if(z===void 0)return;if(!z){I=false;break}}return C.size<oi&&C.set(b,I),I},strikeoutMetrics(b){let m=d(b);if(!m)return;let F=v.get(m);if(F===void 0&&(F=Tr(m.bytes,m.faceIndex),v.set(m,F)),!F)return;let C=N(b)/2*chunkNPWMZIPA_cjs.ra(b);return {offsetPt:F.offsetEm*C,thicknessPt:F.thicknessEm*C}},measure(b,m){if(b.length===0)return 0;let F=d(m);if(!F)return O(b,m);let C=x(F,N(m),m.smallCaps),T=m.shaping?.context,I=m.shaping?`1:${JSON.stringify(T?[m.shaping.script,m.shaping.direction,b,T.before,T.after]:[m.shaping.script,m.shaping.direction,b])}`:`0:${b}`,P=At(m,F),z=`${chunkNPWMZIPA_cjs.w(m)?1:0}:${P?1:0}:${chunkNPWMZIPA_cjs.O(m)}:${I}`,D=C.get(z);if(D===void 0){let M=0;try{if(m.smallCaps&&!Ke(r,i,F,m,f))return O(b,m);let U=X(r,i,F,m,b);if(U.glyphs.some(ee=>ee.id===0))return O(b,m);for(let ee of U.glyphs)M+=ee.advanceX;P&&(M+=Or(U)*(N(m)/2)*.02*i.fixedPointScale);}catch{return O(b,m)}D=M/i.fixedPointScale,h(C,z,D);}return D*chunkNPWMZIPA_cjs.ra(m)*(m.horizontalScalePercent/100)+b.length*m.characterSpacingPt+E(b,m)},inkBounds(b,m){if(!b||b.length>2||m.shaping?.direction==="rtl"||chunkNPWMZIPA_cjs.ya(b).length!==1)return;let F=d(m);if(!F)return a.inkBounds?.(b,m);try{if(m.smallCaps&&!Ke(r,i,F,m,f))return a.inkBounds?.(b,m);let C=X(r,i,F,m,b);return Lr(C,N(m)/2,i.fixedPointScale,chunkNPWMZIPA_cjs.ra(m)*m.horizontalScalePercent/100)}catch{return}},textOutline(b,m){let F=d(m);if(!F)return a.textOutline?.(b,m);try{let C=X(r,i,F,m,b);return wt(C,N(m)/2,i.fixedPointScale)??a.textOutline?.(b,m)}catch{return a.textOutline?.(b,m)}},caretAdvances(b,m){let F=d(m);if(!F)return B(b,m);try{if(m.smallCaps&&!Ke(r,i,F,m,f))return B(b,m);let C=X(r,i,F,m,b);if(C.glyphs.some(P=>P.id===0))return B(b,m);let T=chunkNPWMZIPA_cjs.ac(b,C,chunkNPWMZIPA_cjs.ra(m)*(m.horizontalScalePercent/100)/i.fixedPointScale,m.characterSpacingPt,m.shaping?.wordSpacingPt??0)??chunkNPWMZIPA_cjs.$b(b,C.glyphs.reduce((P,z)=>P+z.advanceX,0)*chunkNPWMZIPA_cjs.ra(m)*(m.horizontalScalePercent/100)/i.fixedPointScale+b.length*m.characterSpacingPt+E(b,m));if(!T||!At(m,F))return T;let I=N(m)/2*.02*chunkNPWMZIPA_cjs.ra(m)*(m.horizontalScalePercent/100);return Ar(T,C,I)}catch{return B(b,m)}},lineMetrics(b,m){let F=d(b);if(!F)return Ve(b)??a.lineMetrics(b,m);if(!m||/^[\t\n\r\f ]*$/.test(m))return u(F,b);if(l){let C=u(F,b),T=Math.max(0,C.baseline),I=Math.max(0,C.height-C.baseline);return T+I>0?{height:T+I,baseline:T}:C}try{let C=X(r,i,F,b,m),T=0,I=0;for(let P of C.fontSpans){let z=u(P.font,b);T=Math.max(T,z.baseline),I=Math.max(I,z.height-z.baseline);}if(T+I>0)return {height:T+I,baseline:T}}catch{}return u(F,b)}},S)}function ii(e,t){return Mr({...t,shaper:e.shaper,environment:e.environment})}function si(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let c of t.pages)r.add(c.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let c of t.pages){let l=c.box.y;l+c.box.height>=n.top&&l<=a&&(i===-1&&(i=c.index),s=c.index);}if(i===-1){let c=ci(t,n.top);c!==null&&(i=c,s=c);}if(i!==-1){let c=Math.max(0,i-o),l=Math.min(t.pages.length-1,s+o);for(let u=c;u<=l;u+=1)r.add(u);}for(let c of e.pinnedPages??[])c>=0&&c<t.pages.length&&r.add(c);return r}function ci(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var _r=["text-local","paragraph-local","flow-structural","global"];function Pr(e,t){return _r.indexOf(t)>_r.indexOf(e)?t:e}function li(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function ui(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,c=0,l=0;function u(d){let S=e.runCooperatively;if(!S)return t(d);let x=S(d);s=x;try{for(;;){let R=x.step();if(R)return R;if(n()!==d.revision)return x.cancel(),l+=1,null;if(s!==x)return null}}finally{s===x&&(s=null);}}function y(d){let S=p(n());S.impact=Pr(S.impact,d.impact),S.structural=S.structural||d.structural;for(let x of d.paragraphIds)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x);for(let x of d.deleted)S.deleted.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);}let f=d=>({impact:d.impact,paragraphIds:d.paragraphIds,created:d.created,deleted:d.deleted,dependencyKeys:d.dependencyKeys,structural:d.structural,revision:d.revision});function p(d){return a||(a=li(d)),a.revision=Math.max(a.revision,d),a}function g(){!o||i||(i=o(()=>{i=null,h();}));}function h(){i&&(i(),i=null),s&&(s.cancel(),s=null,l+=1);let d=a;if(!d)return false;a=null;let S=f(d),x=u(S);return !x||x.revision!==n()?(c+=1,y(S),g(),false):(r(x,S),true)}return {notify(d){let S=p(n());S.impact=Pr(S.impact,d.impact);for(let x of d.dirty)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x),S.paragraphIds.add(x);for(let x of d.deleted)S.deleted.add(x),S.paragraphIds.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);for(let x of d.splitJoin)S.structural=true,"split"in x?(S.paragraphIds.add(x.split.from),S.paragraphIds.add(x.split.tail)):(S.paragraphIds.add(x.join.kept),S.paragraphIds.add(x.join.removed));(d.impact==="flow-structural"||d.impact==="global")&&(S.structural=true),g();},invalidateAll(d,S){let x=p(d);x.impact="flow-structural",x.structural=true,S&&x.dependencyKeys.add(S),g();},flush:h,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return c},get cancelledRuns(){return l}}}var kr=new WeakMap;function j(e){let t=kr.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=new Map,i=(c,l,u,y)=>{for(let f of c){if(f.kind==="paragraph")continue;let p=f.tableId;a.set(p,Math.max(a.get(p)??0,(f.columnEdges?.length??1)-1));let g=o.get(p);g||(g=new Map,o.set(p,g),n.set(p,[]),r.set(p,new Map));for(let h of f.rows){let d=g.get(h.id);d===void 0&&(d=g.size,g.set(h.id,d),r.get(p).set(d,h.cells));for(let S of h.cells)n.get(p).push({pageIndex:l,tableId:p,row:h,cell:S,rowIndex:d,isHeaderRepeat:h.isHeaderRepeat,offsetX:u,offsetY:y}),i(S.blocks,l,u,y);}}};for(let c of e.pages){i(c.fragments,c.index,0,0);for(let l of [c.header,c.footer])l&&i(l.fragments,c.index,l.box.x-c.contentBox.x,l.box.y-c.contentBox.y);for(let l of [c.footnotes,c.endnotes])if(l)for(let u of l.notes)i(u.fragments,c.index,u.box.x-c.contentBox.x,u.box.y-c.contentBox.y);}let s=new Map;for(let[c,l]of n)s.set(c,{placed:l,rows:r.get(c)??new Map,columnCount:a.get(c)??0});return kr.set(e,s),s}function Nr(e){let t=e.columnCount;for(let n of e.rows.values())for(let r of n)t=Math.max(t,ne(r).to+1);return t}var ne=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function di(e,t,n){if(t.tableId!==n.tableId)return null;let r=j(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(ne(t).from,ne(n).from),s=Math.max(ne(t).to,ne(n).to),c=p=>{let{from:g,to:h}=ne(p);return h>=i&&g<=s},l=p=>(r.rows.get(p)??[]).some(g=>g.vMergeContinue&&c(g)),u=r.rows.size+Nr(r)+2;for(let p=0;!(p>u);p+=1){let g=false;for(let[h,d]of r.rows)if(!(h<o||h>a))for(let S of d){if(!c(S))continue;let{from:x,to:R}=ne(S);x<i&&(i=x,g=true),R>s&&(s=R,g=true);}for(;o>0&&l(o);)o-=1,g=true;for(;l(a+1);)a+=1,g=true;if(!g)break}let y=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:g,to:h}=ne(p.cell);h<i||g>s||f.has(p.cell.id)||(f.add(p.cell.id),y.push(p.cell.id));}return y.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:y,rows:{from:o,to:a},columns:{from:i,to:s},text:Hr(e,t.tableId,y)}}function pi(e,t){let n=j(e).get(t);if(!n)return null;let r=[],o=new Set,a=0;for(let i of n.placed)i.isHeaderRepeat||o.has(i.cell.id)||(o.add(i.cell.id),r.push(i.cell.id),a=Math.max(a,i.rowIndex));return r.length===0?null:{kind:"cells",tableId:t,cellIds:r,rows:{from:0,to:a},columns:{from:0,to:Nr(n)-1},text:Hr(e,t,r)}}function _c(e,t){let n=pi(e,t.tableId);if(!n)return false;let r=new Set(t.cellIds);return n.cellIds.every(o=>r.has(o))}function Pc(e,t){return Dr(e,t,true)}function be(e,t){return Dr(e,t,false)}function Dr(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of j(e).values())for(let s of i.placed)if(!(s.isHeaderRepeat||!r.has(s.cell.id)))for(let c of s.cell.blocks)n&&c.kind!=="paragraph"||Re(c,o,a);return o}function Re(e,t,n){if(e.kind==="paragraph"){for(let r of chunkNPWMZIPA_cjs.ab(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)Re(a,t,n);}function Hr(e,t,n){let r=be(e,n),o=r[0],a=r[r.length-1];return !o||!a?fi(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:chunkNPWMZIPA_cjs.Te(e,a).length}}}function fi(e,t){let n=j(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)Re(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of chunkNPWMZIPA_cjs.Ja(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function mi(e){let t=[...chunkNPWMZIPA_cjs.Ja(e)];for(let n of [e.header,e.footer])n&&t.push(...chunkNPWMZIPA_cjs.Ka(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...chunkNPWMZIPA_cjs.Ka(r.fragments));return t}function yi(e,t){let n=new Set(be(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of mi(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let c of s.spans){let l=`${c.range.paragraphId}:${c.range.start}:${c.range.end}`;o.has(l)||(o.add(l),r.push(c));}return r}function hi(e,t){let n=new Set(t),r=[];for(let o of j(e).values())for(let a of o.placed)n.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function gi(e,t,n=chunkNPWMZIPA_cjs.Te){let r=j(e).get(t.tableId);if(!r)return "";let o=new Set(t.cellIds),a=r.placed.some(c=>c.cell.logicalGridColumn!==void 0),i=new Map,s=new Set;for(let c of r.placed){if(c.isHeaderRepeat||!o.has(c.cell.id)||s.has(c.cell.id))continue;s.add(c.cell.id);let l=be(e,[c.cell.id]).map(f=>n(e,f)).join(`
|
|
2
|
-
`),u=i.get(c.rowIndex),y=c.cell.gridColumn+(a?Math.max(1,c.cell.gridSpan)-1:0);u?u.set(y,l):i.set(c.rowIndex,new Map([[y,l]]));}return [...i.keys()].sort((c,l)=>c-l).map(c=>{let l=i.get(c),u=[];for(let y=0;y<=t.columns.to-t.columns.from;y+=1){let f=a?t.columns.to-y:t.columns.from+y;u.push(l.get(f)??"");}return u.join(" ")}).join(`
|
|
3
|
-
`)}function It(e,t){return chunkNPWMZIPA_cjs.cd(e,t)}function kc(e,t,n){if(n){let a=It(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let s=j(e).get(n.tableId);if(!s)return null;for(let c of s.placed)if(c.cell.id===i)return {tableId:n.tableId,rowId:c.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:c.cell.logicalGridColumn??c.cell.gridColumn,isHeaderRepeat:c.isHeaderRepeat};return null}let r=It(e,t);if(!r)return null;let o=j(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let s of a.cell.blocks)Re(s,i,new Set);if(i.includes(t))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.logicalGridColumn??a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}var zr=new WeakMap;function Si(e,t){let n=zr.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of j(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let l of i.cell.blocks)Re(l,s,new Set);let c={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let l of s){let u=r.get(l);u&&u.tableId.length>=o.length||r.set(l,c);}}return zr.set(e,r),r.get(t)??null}function zc(e,t,n){let r=Si(e,t);if(!r)return null;let o=j(e).get(r.tableId);if(!o)return null;let a=new Set;for(let l of o.placed)!l.isHeaderRepeat&&!l.cell.vMergeContinue&&l.cell.blocks.length>0&&a.add(l.cell.id);let i=[...a],s=i.indexOf(r.cellId);if(s<0)return null;let c=n==="next"?1:-1;for(let l=s+c;l>=0&&l<i.length;l+=c){let u=be(e,[i[l]]);if(u.length>0)return {cellId:i[l],paragraphIds:u}}return "end"}function xi(e,t,n){if(![e,t,n].every(Number.isFinite)||t<=0||n<=0)return {offsetPt:0,count:0};let r=Math.ceil(e/n-1e-9)*n;if(!Number.isFinite(r))return {offsetPt:0,count:0};let o=Math.max(0,r-e);return {offsetPt:o,count:Math.min(8192,Math.max(0,Math.floor((t-o)/n+1e-9)))}}exports.$=Ia;exports.A=Ft;exports.B=Vn;exports.C=Xn;exports.D=jn;exports.E=Yn;exports.F=$n;exports.G=qn;exports.H=ra;exports.I=oa;exports.J=de;exports.K=sa;exports.L=Et;exports.M=Qn;exports.N=fa;exports.O=ha;exports.P=X;exports.Q=Ke;exports.R=Lt;exports.S=xs;exports.T=ar;exports.U=bs;exports.V=Bt;exports.W=Ta;exports.X=Ts;exports.Y=lr;exports.Z=ur;exports._=Aa;exports.a=dt;exports.aa=Ma;exports.b=jr;exports.ba=Ds;exports.c=ie;exports.ca=za;exports.d=ft;exports.da=wt;exports.e=Yr;exports.ea=Xe;exports.f=A;exports.fa=Mr;exports.g=mt;exports.ga=ii;exports.h=gt;exports.ha=si;exports.i=zi;exports.ia=ui;exports.j=Mn;exports.ja=di;exports.k=_n;exports.ka=pi;exports.l=Z;exports.la=_c;exports.m=Vo;exports.ma=Pc;exports.n=Xo;exports.na=be;exports.o=$i;exports.oa=yi;exports.p=xt;exports.pa=hi;exports.q=qi;exports.qa=gi;exports.r=jo;exports.ra=It;exports.s=$o;exports.sa=kc;exports.t=Zi;exports.ta=Si;exports.u=qo;exports.ua=zc;exports.v=bt;exports.va=xi;exports.w=Ue;exports.x=Zo;exports.y=Jo;exports.z=Qo;
|
package/dist/chunk-CU6QPXKD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {Q,R,T,S}from'./chunk-O2PGRL5D.js';import {h,a,b,e,c,f,re as re$1,Nc,Qc,Sc,Tc,Rc,ie as ie$1,Oc,Pc,nd,kf,Md,Lf,Kf,d,F,xd,ma,Bc,lf,kd,of}from'./chunk-6IYKYYWF.js';import {b as b$1}from'./chunk-ELR6HXOO.js';import {a as a$1,c as c$1,b as b$2}from'./chunk-LZ64O473.js';import {ve,Je,rb,Aa,pa,Ba,pd,le,f as f$1,va,oa,a as a$2,N}from'./chunk-JQPTNBLT.js';var St=/^[\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"||!St.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 mn(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 nt=64,ce=Object.freeze({family:"Calibri",sizeHalfPoints:22}),gn=ce;function ee(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??ce,...e.language!==void 0?{language:e.language}:{}})}var Ot=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function te(e){let t=e?.defaultFont?.family;return t!==void 0&&Ot.test(t)?t:ce.family}function G(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 rt=new WeakSet;function At(e){return e&&rt.add(e),e}function it(e,t){if(!t)return e;let n=e?fe(e):void 0,o=t.deferred?{deferred:t.deferred}:{},r=rt.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 Rt(e){return !!e&&((e.sources?.length??0)>0||(e.substitutions?.length??0)>0||e.deferred!==void 0)}function st(e){let t=e&&"failures"in e?e.failures:void 0;return Array.isArray(t)?t.slice(0,256):[]}function at(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 lt(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<ot;s+=1){let{now:a,later:l}=G(i);if(!l)return r(a);let u;try{u=await at(l,n);}catch(c){if(n?.aborted)throw n.reason;return t(c),r(a)}for(let c of st(u))t(c);i=it(a,u)??a;}return t(new RangeError(`Font loading stopped after ${ot} deferred steps`)),r(G(i).now)}var ot=256;function fe(e){if(!("failures"in e))return e;let{failures:t,...n}=e;return n}async function de(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 at(Promise.race(r),n).catch(()=>{});if(!i||n?.aborted)return;if(i.ok)for(let a of st(i.value))o.report(i.originIndex,a);else o.report(i.originIndex,i.cause);if(!i.ok||!Rt(i.value)){let a=t.map((l,u)=>u===i.originIndex?void 0:l);return de(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?it(l,i.value):u?{...l??{sources:[]},deferred:u}:l);}try{return At(await o.compose(s))}catch(a){n?.aborted||o.report(i.originIndex,a);return}}var kt="docx-editor.dev/font-resolver",ft=Symbol.for("docx-editor.dev/font-resolver");function En(e){let t={value:true,enumerable:false,configurable:true};try{Object.defineProperty(e,ft,t),Object.defineProperty(e,kt,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 Cn(e){return typeof e=="function"&&e[ft]===true}var ge=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},pe=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;}},ne=e=>`${e.family.trim().toLowerCase()} ${e.weight} ${e.style}`;function Tt(e,t,n){let o=new Map(e.map(r=>[ne(r),r]));for(let[r,i]of t)o.set(r,i);for(let r of n)o.has(ne(r.to))&&o.set(ne(r.from),r.from);return [...o.values()]}async function Sn(e,t,n={}){return ye(e,t,n)}async function On(e,t,n={}){return ye(e,t,n)}async function ye(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(Mt),i,s=[],a$1=[],l=new Map,u=new Set,c=0,f=[],d=new Set,b$1=[],v=t.resolvedFaces??[],T=t.defaultFamily,S=[],P=[],g=new Set(n.placeholderOrigins??[]),E;for(let F=0;F<e.length;F+=1){dt(t.signal);let k=e[F],X=Tt(v,l,f),q,B;try{let w=r[F],p;if(w){let m=await ct(w,t.signal);if(!m.ok)throw m.cause;p=m.value;}else if(typeof k=="function"){let m=await ct(Promise.resolve(k(Lt(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,F,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=G(p);m.later&&ut(m.now,m.now)&&g.add(F),p=await lt(p,_=>K(n,k,F,_),t.signal);}else {let m=G(p);p=m.now,B=m.later;}let C="failures"in p?p.failures:void 0,O=[];if(Array.isArray(C)){let m=Math.min(C.length,b);for(let _=0;_<m;_++)O.push(C[_]);C.length>m&&O.push(new Error("Additional font-origin failures were omitted"));}else C!==void 0&&O.push(C);let A;try{A=vt(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,F,_);throw m}q=A;for(let m of new Set([...A.dropped,...O]))K(n,k,F,m);let x=A.fragment;x.supportedFamilies&&s.push(x.supportedFamilies),b$1.push(...O);let U=(x.sources??[]).map(m=>(h(m.request),[ne(m.request),m.request])),W=[...x.substitutions??[]];B!==void 0&&ut(x,p)&&g.add(F);let $=g.has(F);!i&&!$&&"defaultFont"in x&&(T=te(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 W)f.push(m),d.add(h(m.from));S[F]=fe(x),B&&(P[F]=B);}catch(w){if(q?.releaseOwnedBytes?.(),t.signal?.aborted)throw t.signal.reason??w;if(w instanceof oe)throw w.cause;if(K(n,k,F,w),B){let p=new Error("Font origin skipped, so its background faces were not loaded");K(n,k,F,p);}continue}}let y=P.some(Boolean)?de(S,P,t.signal,{compose:F=>ye(F,t,{...n,placeholderOrigins:g}),report:(F,k)=>K(n,e[F],F,k)}):void 0;if(i??=E,!i)return y?{sources:[],deferred:y}:void 0;let{epoch:M,...R}=ee({...i,supportedFamilies:Y(s),sources:a$1,substitutions:f}),D=y?{...R,deferred:y}:R;return b$1.length===0?D:{...D,failures:Object.freeze(b$1)}}function ut(e,t){return (e.sources?.length??0)===0&&(e.substitutions?.length??0)===0&&!("defaultFont"in t)&&!("maxFontBytes"in t)}var oe=class extends Error{constructor(n){super("Unable to reserve owned font bytes");this.cause=n;this.name="FontOwnershipReservationError";}cause},re=class extends RangeError{};async function ct(e,t){if(!t)return e;dt(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 Mt(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 vt(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,b$1="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 S=c$1??a;if(!Number.isSafeInteger(S)||S<=0||S>a)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${a}`);let P=Math.min(r??S,a$1),g=0,E=[],y=new Set,M=[],R=[];for(let w=0;w<v;w+=1){let p=l[w];try{let C=me(p.request),O=h(C);if(t.has(O)||y.has(O))continue;let A=p.availability,x=p.faceIndex,U=p.hash,W=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 W!="string"||W.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??S)?new ge(C,z,a$1):new RangeError(`Font source ${C.family} (${z} bytes) exceeds the effective base byte ceiling (${P} bytes)`);if(t.has(O)||y.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)||y.has(O))continue;if(t.size+y.size>=b)throw new re(`Font source count must not exceed ${b}`);y.add(O),E.push(O),M.push(Object.freeze({request:C,id:W,bytes:$,hash:U,faceIndex:x,...A?{availability:A}:{}}));}catch(C){if(C instanceof re)throw C;R.push(C);}}let D=new Set,F=[];for(let w=0;w<T;w+=1){let p=u[w];try{let C=me(p.from),O=me(p.to);h(C),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(C);if(t.has(U)||y.has(U)||o.has(U)||D.has(U))continue;D.add(U),F.push(Object.freeze({from:C,to:O,...x?{lineMetrics:x}:{}}));}catch(C){R.push(C);}}if((v>0||T>0)&&M.length===0&&F.length===0&&R.length>0)throw R.length===1?R[0]:new pe(R);let k=o.size;for(let w of y)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(b$1!==void 0&&typeof b$1!="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 oe(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(F),...d!==void 0?{epoch:d}:{},...c$1!==void 0?{maxFontBytes:c$1}:{},...X?{defaultFont:X}:{},...b$1!==void 0?{language:b$1}:{}}),sourceKeys:Object.freeze(E),ownedBytes:g,dropped:Object.freeze(R),releaseOwnedBytes:q}}function _t(e){return !Number.isSafeInteger(e)||e<=0?0:e>c?c:e}function Lt(e,t,n,o){let{committedSourceBytes:r,...i}=e,s=_t(o);return {...i,defaultFamily:t,...n.length>0?{resolvedFaces:n}:{},...s>0?{committedSourceBytes:s}:{}}}function me(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}function dt(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);}function Nt(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 Pt(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 It(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(Nt(e,o+40,64)),i===14))return;o+=s;}}function Dt(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(Pt(e,o+6+18,Math.min(32,s*2-6-18))),a===0))return;o+=s*2;}}}function mt(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?It(s,o):Dt(s,o);}}return [...n.values()]}var Bt=2e5,pt=32,Ut=new Set(["latin","ea","cs"]);function zt(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 gt=new WeakMap;function qt(e){let t=gt.get(e);if(t)return t;let n=[],o=new Set,r=[e],i=0;for(;r.length>0&&++i<=Bt&&n.length<pt;){let s=r.pop();if(s.namespaceUri===va&&Ut.has(s.localName)){let a=oa(s.attributes,"typeface");a&&!o.has(a)&&(o.add(a),n.push(a));continue}for(let a=s.children.length-1;a>=0;a-=1){let l=s.children[a];l.kind!=="textValue"&&r.push(l);}}return gt.set(e,n),n}function Nn(e,t={}){let n=new Map,o=r=>{let i=r?b$1(r):null;if(i===null||n.size>=pt)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!==ve&&i.namespaceUri!==Je)){o(t.minor);for(let s of qt(i))s.startsWith("+")?o(zt(s,t)):o(s);}}for(let r of mt(e,b$1))o(r);return [...n.values()]}var jt=256,Xt=Object.freeze([]);function ie(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?Xt:[...l.found];f.length<=jt&&rb(l.node)?t.set(l.node,{key:l.context.key,families:f}):t.delete(l.node),a(f);}}return [...r]}}function se(e,t){return e.children.flatMap(n=>n.kind==="textValue"?[]:[{node:n,context:t}])}var yt=new WeakMap,$t=4096;function Ft(e,t){let n=`${e.baseKey}|${e.depth+1}|${JSON.stringify(t)}`,o=yt.get(e);o||yt.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<$t&&o.set(n,i),i}function Vt(e,t){let{styles:n,theme:o,supplementalFamilies:r,depth:i}=t;if(e.kind==="table"){let l=re$1(e,468,i,n),u=[];for(let c of l?.rows??[])for(let f of c.cells){let d=Ft(t,f.styleFormatting);for(let b of f.blocks)u.push({node:b,context:d});}return {children:u.reverse()}}let s=new Set;if(e.kind==="paragraph"){let l=e.children.find(c=>c.kind==="paragraphProperties"),u=lf(n,l,t.cellStyle).runProperties;for(let c of kd(e,u,void 0,(f,d)=>of(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:se(e,a).reverse()}}function Ht(){let e=ie(Vt),t,n,o=(i,s)=>{if(!t||n!==i||t.theme!==s){let a=kf(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=re$1(i,468,c.depth,c.styles)?.rows??[];for(let d of f.slice(s,a))for(let b of d.cells)e(b.blocks,Ft(c,b.styleFormatting));return f.length}})}function Xn(e,t,n){return Ht()(e,t,n)}function Fe(e,t){return e.attributes.find(n=>n.localName===t)?.value}var Kt=ie((e,t)=>{let n=[];if(e.namespaceUri===pa){if(e.localName==="fldSimple"){let o=ie$1(Fe(e,"instr")??"")?.font;o&&n.push(o);}if(e.localName==="p")for(let o of Wt(e))n.push(o);}return {families:n,children:se(e,t)}});function to(e){let t=new Map;for(let n of Kt(e,{key:""})){let o=b$1(n);o!==null&&!t.has(o.toLowerCase())&&t.set(o.toLowerCase(),o);}return [...t.values()]}function Wt(e){let t=[],n=Nc(),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=Fe(r,"fldCharType");a==="begin"?Qc(n):a==="separate"?(n.nesting===1&&ht(n,t),Sc(n)):a==="end"&&(n.nesting===1&&ht(n,t),Tc(n));continue}if(r.namespaceUri===pa&&(r.localName==="instrText"||r.localName==="delInstrText")){Rc(n,Yt(r),r.localName==="delInstrText");continue}if(r.namespaceUri===pa&&r.localName==="fldSimple"){let a=ie$1(Fe(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 Oc(n),t}function ht(e,t){let n=Pc(e);if(n.overflow)return;let o=ie$1(n.instruction);o?.font&&t.push(o.font);}function Yt(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 Gt=()=>true,Jt=/[ᄀ-ᇿ⺀-鿿ꥠ-가-豈-︰-﹏-]/u;function no(e,t,n,o){if(!t)return [];let r=nd(t),i=kf(n,o),s=new Map;for(let a of e)for(let l of Qt(a)){let u=pd(l.children),c=f=>{if(f)for(let d of f.values()){let b=d.markerText===void 0||Jt.test(d.markerText);for(let v of [d.markerStyle.fontFamily,b?d.markerStyle.fontFamilyEastAsia:null]){let T=b$1(v??void 0);if(T===null)continue;let S=T.toLowerCase();s.has(S)||s.set(S,T);}}};c(Md(u,r,i,Gt));for(let f of u){let d=Lf(f);for(let b of d.contents)c(Kf(b,r,i));}}return [...s.values()].sort((a,l)=>a.localeCompare(l))}function Qt(e){if(e.localName==="document"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="body")return [t];return []}if(e.localName==="footnotes"||e.localName==="endnotes"){let t=[];for(let n of e.children)n.kind!=="textValue"&&(n.localName==="footnote"||n.localName==="endnote")&&t.push(n);return t}return [e]}var Zt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",wt=256,en=31;function J(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===pa}function ae(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===pa)?.value}function xt(e){let t=(e.relationships.get(e.mainDocumentPart)??[]).find(i=>i.type===Zt),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&&J(r,"fonts")?r:void 0}function bt(e,t){let n=e.children.find(o=>J(o,t));return n&&n.kind!=="textValue"?ae(n,"val"):void 0}function Et(e){let t=xt(e),n=new Map;if(!t)return n;let o=0;for(let r of t.children){if(!J(r,"font"))continue;if(++o>wt)break;let i=c$1(ae(r,"name"));if(!i)continue;let s=R(bt(r,"family"),bt(r,"pitch")),a=i.trim().toLowerCase();s&&!n.has(a)&&n.set(a,s);}return n}function Ct(e){let t=xt(e),n=new Map;if(!t)return n;let o=0;for(let r of t.children){if(!J(r,"font"))continue;if(++o>wt)break;let i=c$1(ae(r,"name"));if(!i)continue;let s=r.children.find(c=>J(c,"altName")),a=s&&s.kind!=="textValue"?ae(s,"val"):void 0,l=a!==void 0&&a.length<=en?a$1(a):null,u=i.trim().toLowerCase();l&&!n.has(u)&&n.set(u,l);}return n}function Co(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 tn(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===pa)?.value}var nn=new Set(["document","hdr","ftr","footnotes","endnotes","comments","styles","numbering","glossaryDocument"]),on=new Set(["t","delText","instrText","delInstrText"]),rn=2e6;function sn(e,t){let n=e.stylesRoot(),o=e.documentThemeFonts(),r=[...F(n),...n?xd(n).run:[]],i=ma(r,o),s=a$1(i.fontFamily??void 0)??t,a=a$1(Bc([{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=Et(e.currentPackage()),f=g=>c.get(g.trim().toLowerCase())??S(g),d=(g,E)=>{let y=f(g);if(!y)return E;let M=f(E);return M===void 0||M===y?E:T[y]},b=new Map,v=new Map,T$1=0;for(let g of e.currentPackage().parts.values()){if(g.root.namespaceUri!==pa||!nn.has(g.root.localName))continue;let E=[g.root];for(;E.length>0&&T$1<rn;){T$1++;let y=E.pop();if(y.kind!=="textValue"){if(y.namespaceUri===pa){if(on.has(y.localName))continue;if(y.localName==="rFonts"){for(let[M,R]of [["ascii",s],["hAnsi",a],["eastAsia",l],["cs",u]]){let D=a$1(b$2(tn(y,M))??void 0);if(!D||!R)continue;let F=D.trim().toLowerCase(),k=b.get(F)??new Set,X=M==="ascii"||M==="hAnsi",q=X?d(D,R):R;if(k.add(q),b.set(F,k),X&&f(D)){let B=v.get(F)??new Set;B.add(q),v.set(F,B);}}continue}}for(let M of y.children)E.push(M);}}}for(let g of a$2)b.delete(g);let S$1=new Map,P=[];for(let[g,E]of b){let y=v.get(g);E.size===1?S$1.set(g,[...E][0]):y?.size===1?S$1.set(g,[...y][0]):P.push(g);}return {fallbacks:S$1,ambiguousFamilies:P,defaults:new Map([...b].map(([g,E])=>[g,[...E]]))}}function an(e,t,n=[],o="Calibri"){let r=Ct(e.currentPackage()),i=sn(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===nt)break}return {families:[...a.values()],alternates:r,fallbacks:i.fallbacks,ambiguousFamilies:i.ambiguousFamilies}}function So(e,t,n){let o=te(n),r=an(e,t,[],o);return {plan:r,request:{families:r.families,defaultFamily:o}}}function Oo(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),b=le(u);for(let v of [400,700])for(let T of ["normal","italic"]){let S={family:u,weight:v,style:T};if(o.has(h(S)))continue;let P=s.has(h(S));for(let g of P?[b,f]:[b,f,d]){if(!g||g.trim().toLowerCase()===c)continue;let E={family:g,weight:v,style:T},y=o.get(h(E)),M=P?y?{to:y}:void 0:a(E);if(!M)continue;if(!i.has(h(S))){if(l===0)break;l--;}let R=Q(u)?.em;r.push({from:S,...M,...R?{lineMetrics:R}:{}});break}}}return ee({...e,substitutions:[...r,...e.substitutions??[]]})}function Ao(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 Ro(e,t){let n=new Map;for(let[o,r]of e)t(o)||n.set(o,r);return n}var ln={regular:{weight:400,style:"normal"},bold:{weight:700,style:"normal"},italic:{weight:400,style:"italic"},boldItalic:{weight:700,style:"italic"}};function Mo(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 vo(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 un(e,{maxFontBytes:n,aggregateBudget:Math.max(0,c-o),shadowedRequests:r})}function un(e,t){let n=[],o=[],r=t.aggregateBudget,i=new Set;for(let s of e){let a=ln[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{Wt as A,no as B,Co as C,an as D,So as E,Oo as F,Ao as G,Ro as H,Mo as I,vo as J,un as K,Y as a,mn as b,nt as c,ce as d,gn as e,ee as f,te as g,G as h,it as i,Rt as j,st as k,fe as l,kt as m,ft as n,En as o,Cn as p,ge as q,pe as r,Sn as s,On as t,Nn as u,ie as v,se as w,Ht as x,Xn as y,to as z};
|