1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9494],{70324:(t,e,i)=>{let n,s,r,o,a,h,l;i.d(e,{Ay:()=>iN,Lx:()=>e5});var d=i(32957),c=i(21071),u=i(39655),f=i(13513),p=i(92970),g=i(54287);class A{constructor(){this._listeners=Object.create(null)}on(t,e){return(this._listeners[t]||(this._listeners[t]=[])).push(e),this}once(t,e){let i=(...n)=>{this.off(t,i),e(...n)};return this.on(t,i)}off(t,e){let i=this._listeners[t];if(i){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}return this}emit(t,...e){let i=this._listeners[t];if(!i)return!1;for(let t of i.slice())t(...e);return i.length>0}}class m extends A{constructor(){super(),this._buffer=[],this._flowing=!1,this._scheduled=!1,this._finished=!1,this._endEmitted=!1}on(t,e){return super.on(t,e),"data"===t&&this.resume(),this}push(t){return null===t?this._finished=!0:this._buffer.push(t),this._schedule(),!0}resume(){return this._flowing=!0,this._schedule(),this}pause(){return this._flowing=!1,this}pipe(t){return this.on("data",e=>{!1===t.write(e)&&(this.pause(),t.once("drain",()=>this.resume()))}),this.on("end",()=>t.end()),t}_schedule(){!this._scheduled&&this._flowing&&(this._scheduled=!0,queueMicrotask(()=>{this._scheduled=!1,this._drain()}))}_drain(){for(;this._flowing&&this._buffer.length>0;)this.emit("data",this._buffer.shift());this._flowing&&this._finished&&!this._endEmitted&&(this._endEmitted=!0,this.emit("end"))}async *[Symbol.asyncIterator](){let t=[],e=!1,i=null,n=()=>{let t=i;i=null,t&&t()};for(this.on("data",e=>{t.push(e),n()}),this.on("end",()=>{e=!0,n()});;){for(;t.length>0;)yield t.shift();if(e)return;await new Promise(t=>{i=t})}}}class b{toString(){throw Error("Must be implemented by subclasses")}}class y{constructor(t={}){this._items={},this.limits="boolean"!=typeof t.limits||t.limits}add(t,e){return this._items[t]=e}get(t){return this._items[t]}toString(t=null){let e=Object.keys(this._items).sort((t,e)=>this._compareKeys(t,e)),i=["<<"];if(this.limits&&e.length>1){let n=e[0],s=e[e.length-1];i.push(` /Limits ${B.convert([this._dataForKey(n),this._dataForKey(s)],t)}`)}for(let n of(i.push(` /${this._keysName()} [`),e))i.push(` ${B.convert(this._dataForKey(n),t)} ${B.convert(this._items[n],t)}`);return i.push("]"),i.push(">>"),i.join("\n")}_compareKeys(){throw Error("Must be implemented by subclasses")}_keysName(){throw Error("Must be implemented by subclasses")}_dataForKey(){throw Error("Must be implemented by subclasses")}}class x{constructor(t,e,i,n,s,r){this.id="CS"+Object.keys(t.spotColors).length,this.name=e,this.values=[i,n,s,r],this.ref=t.ref(["Separation",E(this.name),"DeviceCMYK",{Range:[0,1,0,1,0,1,0,1],C0:[0,0,0,0],C1:this.values.map(t=>t/100),FunctionType:2,Domain:[0,1],N:1}]),this.ref.end()}toString(){return`${this.ref.id} 0 R`}}let _=t=>{let e="";for(let i=0;i<t.length;i+=32768){let n=Math.min(i+32768,t.length);e+=String.fromCharCode.apply(null,t.subarray(i,n))}return e},w=t=>{let e=new Uint8Array(t.length);for(let i=0;i<t.length;i++)e[i]=255&t.charCodeAt(i);return e},S=t=>{let e=atob(t),i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);return i},C=(t,e=0)=>(t[e]<<8|t[e+1])>>>0,k=(t,e=0)=>(t[e+1]<<8|t[e])>>>0,T=(t,e=0)=>0x1000000*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0,P=(t,e=0)=>(t[e]|t[e+1]<<8|t[e+2]<<16)+0x1000000*t[e+3]>>>0,F=(t,e)=>(Array(e+1).join("0")+t).slice(-e),M=t=>t>127||t>32&&127!==t&&35!==t&&37!==t&&40!==t&&41!==t&&47!==t&&60!==t&&62!==t&&91!==t&&93!==t&&123!==t&&125!==t,v=/[\n\r\t\b\f()\\]/g,D={"\n":"\\n","\r":"\\r"," ":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},E=function(t){let e="";for(let i of t){let t=i.charCodeAt(0);M(t)?e+=i:e+=`#${t.toString(16).toUpperCase().padStart(2,"0")}`}return e};class B{static convert(t,e=null){if("string"==typeof t)return`/${t}`;if(t instanceof String){let i,n=t,s=!1;for(let t=0,e=n.length;t<e;t++)if(n.charCodeAt(t)>127){s=!0;break}return i=s?(t=>{let e=new Uint8Array((t.length+1)*2);e[0]=254,e[1]=255;for(let i=0;i<t.length;i++){let n=t.charCodeAt(i);e[2*i+2]=n>>8,e[2*i+3]=255&n}return e})(n.valueOf()):w(n.valueOf()),e&&(i=e(i)),n=(n=_(i)).replace(v,t=>D[t]),`(${n})`}if(t instanceof Uint8Array)return`<${(0,d.My)(t)}>`;if(t instanceof y)return t.toString(e);if(t instanceof b||t instanceof x)return t.toString();else if(t instanceof Date){let i=`D:${F(t.getUTCFullYear(),4)}`+F(t.getUTCMonth()+1,2)+F(t.getUTCDate(),2)+F(t.getUTCHours(),2)+F(t.getUTCMinutes(),2)+F(t.getUTCSeconds(),2)+"Z";return e&&(i=(i=_(e(w(i)))).replace(v,t=>D[t])),`(${i})`}else if(Array.isArray(t)){let i=[];for(let n=0;n<t.length;n++){let s=t[n];i.push(B.convert(void 0===s?null:s,e))}return`[${i.join(" ")}]`}else if("[object Object]"===({}).toString.call(t)){let i=["<<"];for(let n in t){let s=t[n];void 0!==s&&i.push(`/${n} ${B.convert(s,e)}`)}return i.push(">>"),i.join("\n")}else if("number"==typeof t)return B.number(t);else return`${t}`}static number(t){if(t>-1e21&&t<1e21)return Math.round(1e6*t)/1e6;throw Error(`unsupported number: ${t}`)}}var I={deflateSync:t=>(0,c.$)(t)};class O extends b{constructor(t,e,i={}){super(),this.document=t,this.id=e,this.data=i,this.gen=0,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.buffer=[]}write(t){t instanceof Uint8Array||(t=w(t+"\n")),this.uncompressedLength+=t.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(t),this.data.Length+=t.length,this.compress&&(this.data.Filter="FlateDecode")}end(t){t&&this.write(t),this.finalize()}finalize(){this.offset=this.document._offset;let t=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=(t=>{let e=0;for(let i of t)e+=i.length;let i=new Uint8Array(e),n=0;for(let e of t)i.set(e,n),n+=e.length;return i})(this.buffer),this.compress&&(this.buffer=I.deflateSync(this.buffer)),t&&(this.buffer=t(this.buffer)),this.data.Length=this.buffer.length),this.document._write(`${this.id} ${this.gen} obj`),this.document._write(B.convert(this.data,t)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}toString(){return`${this.id} ${this.gen} R`}}let U=new Float32Array(1),R=new Uint32Array(U.buffer);function z(t){let e=Math.fround(t);return e<=t?e:(U[0]=t,t<=0?R[0]+=1:R[0]-=1,U[0])}function L(t,e,i=t=>t){return(null==t||"object"==typeof t&&0===Object.keys(t).length)&&(t=e),null==t||"object"!=typeof t?t={top:t,right:t,bottom:t,left:t}:Array.isArray(t)&&(t=2===t.length?{vertical:t[0],horizontal:t[1]}:{top:t[0],right:t[1],bottom:t[2],left:t[3]}),("vertical"in t||"horizontal"in t)&&(t={top:t.vertical,right:t.horizontal,bottom:t.vertical,left:t.horizontal}),{top:i(t.top),right:i(t.right),bottom:i(t.bottom),left:i(t.left)}}let $=1/2.54,W=1/96;function G(t){return 0===t?1:90===t?0:180===t?-1:270===t?0:Math.cos(t*Math.PI/180)}function j(t){return 0===t?0:90===t?1:180===t?0:270===t?-1:Math.sin(t*Math.PI/180)}let H={top:72,left:72,bottom:72,right:72},N={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};class K{constructor(t,e){this.document=t,this._options=e,this.size=e.size||"letter",this.layout=e.layout||"portrait",this.userUnit=e.userUnit||1;let i=Array.isArray(this.size)?this.size:N[this.size.toUpperCase()];this.width=i[+("portrait"!==this.layout)],this.height=i[+("portrait"===this.layout)],this.content=this.document.ref(),this.margins=L(e.margin??e.margins,H,e=>t.sizeToPoint(e,0,this)),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources,UserUnit:this.userUnit}),this.markings=[]}get fonts(){let t=this.resources.data;return null!=t.Font?t.Font:t.Font={}}get xobjects(){let t=this.resources.data;return null!=t.XObject?t.XObject:t.XObject={}}get ext_gstates(){let t=this.resources.data;return null!=t.ExtGState?t.ExtGState:t.ExtGState={}}get patterns(){let t=this.resources.data;return null!=t.Pattern?t.Pattern:t.Pattern={}}get colorSpaces(){let t=this.resources.data;
1return t.ColorSpace||(t.ColorSpace={})}get annotations(){let t=this.dictionary.data;return null!=t.Annots?t.Annots:t.Annots=[]}get structParentTreeKey(){let t=this.dictionary.data;return null!=t.StructParents?t.StructParents:t.StructParents=this.document.createStructParentTreeNextKey()}get contentWidth(){return this.width-this.margins.left-this.margins.right}get contentHeight(){return this.height-this.margins.top-this.margins.bottom}maxY(){return this.height-this.margins.bottom}write(t){return this.content.write(t)}_setTabOrder(){!this.dictionary.Tabs&&this.document.hasMarkInfoDictionary()&&(this.dictionary.data.Tabs="S")}end(){for(let t of(this._setTabOrder(),this.dictionary.end(),this.resources.data.ColorSpace=this.resources.data.ColorSpace||{},Object.values(this.document.spotColors)))this.resources.data.ColorSpace[t.id]=t;return this.resources.end(),this.content.end()}}class Y extends y{_compareKeys(t,e){return t.localeCompare(e)}_keysName(){return"Names"}_dataForKey(t){return new String(t)}}function q(t,...e){if(!(t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name))throw Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw Error("Uint8Array expected of length "+e+", got length="+t.length)}function Q(t,e=!0){if(t.destroyed)throw Error("Hash instance has been destroyed");if(e&&t.finished)throw Error("Hash#digest() has already been called")}function X(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function V(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Z(t,e){return t<<32-e|t>>>e}function J(t,e){return t<<e|t>>>32-e>>>0}function tt(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}(t)),q(t),t}new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],"function"==typeof Uint8Array.from([]).toHex&&Uint8Array.fromHex,Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));class te{}function ti(t){let e=e=>t().update(tt(e)).digest(),i=t();return e.outputLen=i.outputLen,e.blockLen=i.blockLen,e.create=()=>t(),e}class tn extends te{constructor(t,e,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=V(this.buffer)}update(t){Q(this),q(t=tt(t));let{view:e,buffer:i,blockLen:n}=this,s=t.length;for(let r=0;r<s;){let o=Math.min(n-this.pos,s-r);if(o===n){let e=V(t);for(;n<=s-r;r+=n)this.process(e,r);continue}i.set(t.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===n&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Q(this);q(t);let e=this.outputLen;if(t.length<e)throw Error("digestInto() expects output buffer of length at least "+e);this.finished=!0;let{buffer:i,view:n,blockLen:s,isLE:r}=this,{pos:o}=this;i[o++]=128,X(this.buffer.subarray(o)),this.padOffset>s-o&&(this.process(n,0),o=0);for(let t=o;t<s;t++)i[t]=0;!function(t,e,i,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,i,n);let s=BigInt(32),r=BigInt(0xffffffff),o=Number(i>>s&r),a=Number(i&r),h=4*!!n,l=4*!n;t.setUint32(e+h,o,n),t.setUint32(e+l,a,n)}(n,s-8,BigInt(8*this.length),r),this.process(n,0);let a=V(t),h=this.outputLen;if(h%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=h/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;t<l;t++)a.setUint32(4*t,d[t],r)}digest(){let{buffer:t,outputLen:e}=this;this.digestInto(t);let i=t.slice(0,e);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:e,buffer:i,length:n,finished:s,destroyed:r,pos:o}=this;return t.destroyed=r,t.finished=s,t.length=n,t.pos=o,n%e&&t.buffer.set(i),t}clone(){return this._cloneInto()}}let ts=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),tr=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),to=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),ta=Uint32Array.from([0x6a09e66
17,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]),th=Uint32Array.from([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]),tl=new Uint32Array(80);class td extends tn{constructor(){super(64,20,8,!1),this.A=0|th[0],this.B=0|th[1],this.C=0|th[2],this.D=0|th[3],this.E=0|th[4]}get(){let{A:t,B:e,C:i,D:n,E:s}=this;return[t,e,i,n,s]}set(t,e,i,n,s){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n,this.E=0|s}process(t,e){for(let i=0;i<16;i++,e+=4)tl[i]=t.getUint32(e,!1);for(let t=16;t<80;t++)tl[t]=J(tl[t-3]^tl[t-8]^tl[t-14]^tl[t-16],1);let{A:i,B:n,C:s,D:r,E:o}=this;for(let t=0;t<80;t++){var a,h,l,d;let e,c;t<20?(e=(a=n)&s^~a&r,c=0x5a827999):t<40?(e=n^s^r,c=0x6ed9eba1):t<60?(e=(h=n)&(l=s)^h&(d=r)^l&d,c=0x8f1bbcdc):(e=n^s^r,c=0xca62c1d6);let u=J(i,5)+e+o+c+tl[t]|0;o=r,r=s,s=J(n,30),n=i,i=u}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,r=r+this.D|0,o=o+this.E|0,this.set(i,n,s,r,o)}roundClean(){X(tl)}destroy(){this.set(0,0,0,0,0),X(this.buffer)}}ti(()=>new td);let tc=Array.from({length:64},(t,e)=>Math.floor(0x100000000*Math.abs(Math.sin(e+1)))),tu=th.slice(0,4),tf=new Uint32Array(16);class tp extends tn{constructor(){super(64,16,8,!0),this.A=0|tu[0],this.B=0|tu[1],this.C=0|tu[2],this.D=0|tu[3]}get(){let{A:t,B:e,C:i,D:n}=this;return[t,e,i,n]}set(t,e,i,n){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n}process(t,e){for(let i=0;i<16;i++,e+=4)tf[i]=t.getUint32(e,!0);let{A:i,B:n,C:s,D:r}=this;for(let t=0;t<64;t++){var o,a;let e,h,l;t<16?(e=(o=n)&s^~o&r,h=t,l=[7,12,17,22]):t<32?(e=(a=r)&n^~a&s,h=(5*t+1)%16,l=[5,9,14,20]):t<48?(e=n^s^r,h=(3*t+5)%16,l=[4,11,16,23]):(e=s^(n|~r),h=7*t%16,l=[6,10,15,21]),e=e+i+tc[t]+tf[h],i=r,r=s,s=n,n+=J(e,l[t%4])}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,r=r+this.D|0,this.set(i,n,s,r)}roundClean(){X(tf)}destroy(){this.set(0,0,0,0),X(this.buffer)}}let tg=ti(()=>new tp),tA=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),tm=Uint8Array.from(Array(16).fill(0).map((t,e)=>e)),tb=tm.map(t=>(9*t+5)%16),ty=(()=>{let t=[[tm],[tb]];for(let e=0;e<4;e++)for(let i of t)i.push(i[e].map(t=>tA[t]));return t})(),tx=ty[0],t_=ty[1],tw=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),tS=tx.map((t,e)=>t.map(t=>tw[e][t])),tC=t_.map((t,e)=>t.map(t=>tw[e][t])),tk=Uint32Array.from([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),tT=Uint32Array.from([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);function tP(t,e,i,n){return 0===t?e^i^n:1===t?e&i|~e&n:2===t?(e|~i)^n:3===t?e&n|i&~n:e^(i|~n)}let tF=new Uint32Array(16);class tM extends tn{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:t,h1:e,h2:i,h3:n,h4:s}=this;return[t,e,i,n,s]}set(t,e,i,n,s){this.h0=0|t,this.h1=0|e,this.h2=0|i,this.h3=0|n,this.h4=0|s}process(t,e){for(let i=0;i<16;i++,e+=4)tF[i]=t.getUint32(e,!0);let i=0|this.h0,n=i,s=0|this.h1,r=s,o=0|this.h2,a=o,h=0|this.h3,l=h,d=0|this.h4,c=d;for(let t=0;t<5;t++){let e=4-t,u=tk[t],f=tT[t],p=tx[t],g=t_[t],A=tS[t],m=tC[t];for(let e=0;e<16;e++){let n=J(i+tP(t,s,o,h)+tF[p[e]]+u,A[e])+d|0;i=d,d=h,h=0|J(o,10),o=s,s=n}for(let t=0;t<16;t++){let i=J(n+tP(e,r,a,l)+tF[g[t]]+f,m[t])+c|0;n=c,c=l,l=0|J(a,10),a=r,r=i}}this.set(this.h1+o+l|0,this.h2+h+c|0,this.h3+d+n|0,this.h4+i+r|0,this.h0+s+a|0)}roundClean(){X(tF)}destroy(){this.destroyed=!0,X(this.buffer),this.set(0,0,0,0,0)}}function tv(t){return tg.create().update(t).digest()}ti(()=>new tM);let tD=BigInt(0x100000000-1),tE=BigInt(32),tB=(t,e,i)=>t>>>i,tI=(t,e,i)=>t<<32-i|e>>>i,tO=(t,e,i)=>t>>>i|e<<32-i,tU=(t,e,i)=>t<<32-i|e>>>i,tR=(t,e,i)=>t<<64-i|e>>>i-32,tz=(t,e,i)=>t>>>i-32|e<<64-i;function tL(t,e,i,n){let s=(e>>>0)+(n>>>0);return{h:t+i+(s/0x100000000|0)|0,l:0|s}}let t$=(t,e,i)=>(t>>>0)+(e>>>0)+(i>>>0),tW=(t,e,i,n)=>e+i+n+(t/0x100000000|0)|0,tG=(t,e,i,n)=>(t>>>0)+(e>>>0)+(i>>>0)+(n>>>0),tj=(t,e,i,n,s)=>e+i+n+s+(t/0x100000000|0)|0,tH=(t,e,i,n,s)=>(t>>>0)+(e>>>0)+(i>>>0)+(n>>>0)+(s>>>
10),tN=(t,e,i,n,s,r)=>e+i+n+s+r+(t/0x100000000|0)|0,tK=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),tY=new Uint32Array(64);class tq extends tn{constructor(t=32){super(64,t,8,!1),this.A=0|ts[0],this.B=0|ts[1],this.C=0|ts[2],this.D=0|ts[3],this.E=0|ts[4],this.F=0|ts[5],this.G=0|ts[6],this.H=0|ts[7]}get(){let{A:t,B:e,C:i,D:n,E:s,F:r,G:o,H:a}=this;return[t,e,i,n,s,r,o,a]}set(t,e,i,n,s,r,o,a){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n,this.E=0|s,this.F=0|r,this.G=0|o,this.H=0|a}process(t,e){for(let i=0;i<16;i++,e+=4)tY[i]=t.getUint32(e,!1);for(let t=16;t<64;t++){let e=tY[t-15],i=tY[t-2],n=Z(e,7)^Z(e,18)^e>>>3,s=Z(i,17)^Z(i,19)^i>>>10;tY[t]=s+tY[t-7]+n+tY[t-16]|0}let{A:i,B:n,C:s,D:r,E:o,F:a,G:h,H:l}=this;for(let t=0;t<64;t++){var d,c,u,f;let e=l+(Z(o,6)^Z(o,11)^Z(o,25))+((d=o)&a^~d&h)+tK[t]+tY[t]|0,p=(Z(i,2)^Z(i,13)^Z(i,22))+((c=i)&(u=n)^c&(f=s)^u&f)|0;l=h,h=a,a=o,o=r+e|0,r=s,s=n,n=i,i=e+p|0}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,r=r+this.D|0,o=o+this.E|0,a=a+this.F|0,h=h+this.G|0,l=l+this.H|0,this.set(i,n,s,r,o,a,h,l)}roundClean(){X(tY)}destroy(){this.set(0,0,0,0,0,0,0,0),X(this.buffer)}}class tQ extends tq{constructor(){super(28),this.A=0|tr[0],this.B=0|tr[1],this.C=0|tr[2],this.D=0|tr[3],this.E=0|tr[4],this.F=0|tr[5],this.G=0|tr[6],this.H=0|tr[7]}}let tX=function(t,e=!1){let i=t.length,n=new Uint32Array(i),s=new Uint32Array(i);for(let r=0;r<i;r++){let{h:i,l:o}=function(t,e=!1){return e?{h:Number(t&tD),l:Number(t>>tE&tD)}:{h:0|Number(t>>tE&tD),l:0|Number(t&tD)}}(t[r],e);[n[r],s[r]]=[i,o]}return[n,s]}(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
15771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),tV=tX[0],tZ=tX[1],tJ=new Uint32Array(80),t0=new Uint32Array(80);class t1 extends tn{constructor(t=64){super(128,t,16,!1),this.Ah=0|ta[0],this.Al=0|ta[1],this.Bh=0|ta[2],this.Bl=0|ta[3],this.Ch=0|ta[4],this.Cl=0|ta[5],this.Dh=0|ta[6],this.Dl=0|ta[7],this.Eh=0|ta[8],this.El=0|ta[9],this.Fh=0|ta[10],this.Fl=0|ta[11],this.Gh=0|ta[12],this.Gl=0|ta[13],this.Hh=0|ta[14],this.Hl=0|ta[15]}get(){let{Ah:t,Al:e,Bh:i,Bl:n,Ch:s,Cl:r,Dh:o,Dl:a,Eh:h,El:l,Fh:d,Fl:c,Gh:u,Gl:f,Hh:p,Hl:g}=this;return[t,e,i,n,s,r,o,a,h,l,d,c,u,f,p,g]}set(t,e,i,n,s,r,o,a,h,l,d,c,u,f,p,g){this.Ah=0|t,this.Al=0|e,this.Bh=0|i,this.Bl=0|n,this.Ch=0|s,this.Cl=0|r,this.Dh=0|o,this.Dl=0|a,this.Eh=0|h,this.El=0|l,this.Fh=0|d,this.Fl=0|c,this.Gh=0|u,this.Gl=0|f,this.Hh=0|p,this.Hl=0|g}process(t,e){for(let i=0;i<16;i++,e+=4)tJ[i]=t.getUint32(e),t0[i]=t.getUint32(e+=4);for(let t=16;t<80;t++){let e=0|tJ[t-15],i=0|t0[t-15],n=tO(e,i,1)^tO(e,i,8)^tB(e,i,7),s=tU(e,i,1)^tU(e,i,8)^tI(e,i,7),r=0|tJ[t-2],o=0|t0[t-2],a=tO(r,o,19)^tR(r,o,61)^tB(r,o,6),h=tG(s,tU(r,o,19)^tz(r,o,61)^tI(r,o,6),t0[t-7],t0[t-16]),l=tj(h,n,a,tJ[t-7],tJ[t-16]);tJ[t]=0|l,t0[t]=0|h}let{Ah:i,Al:n,Bh:s,Bl:r,Ch:o,Cl:a,Dh:h,Dl:l,Eh:d,El:c,Fh:u,Fl:f,Gh:p,Gl:g,Hh:A,Hl:m}=this;for(let t=0;t<80;t++){let e=tO(d,c,14)^tO(d,c,18)^tR(d,c,41),b=tU(d,c,14)^tU(d,c,18)^tz(d,c,41),y=d&u^~d&p,x=tH(m,b,c&f^~c&g,tZ[t],t0[t]),_=tN(x,A,e,y,tV[t],tJ[t]),w=0|x,S=tO(i,n,28)^tR(i,n,34)^tR(i,n,39),C=tU(i,n,28)^tz(i,n,34)^tz(i,n,39),k=i&s^i&o^s&o,T=n&r^n&a^r&a;A=0|p,m=0|g,p=0|u,g=0|f,u=0|d,f=0|c,({h:d,l:c}=tL(0|h,0|l,0|_,0|w)),h=0|o,l=0|a,o=0|s,a=0|r,s=0|i,r=0|n;let P=t$(w,C,T);i=tW(P,_,S,k),n=0|P}({h:i,l:n}=tL(0|this.Ah,0|this.Al,0|i,0|n)),({h:s,l:r}=tL(0|this.Bh,0|this.Bl,0|s,0|r)),({h:o,l:a}=tL(0|this.Ch,0|this.Cl,0|o,0|a)),({h:h,l:l}=tL(0|this.Dh,0|this.Dl,0|h,0|l)),({h:d,l:c}=tL(0|this.Eh,0|this.El,0|d,0|c)),({h:u,l:f}=tL(0|this.Fh,0|this.Fl,0|u,0|f)),({h:p,l:g}=tL(0|this.Gh,0|this.Gl,0|p,0|g)),({h:A,l:m}=tL(0|this.Hh,0|this.Hl,0|A,0|m)),this.set(i,n,s,r,o,a,h,l,d,c,u,f,p,g,A,m)}roundClean(){X(tJ,t0)}destroy(){X(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class t2 extends t1{constructor(){super(48),this.Ah=0|to[0],this.Al=0|to[1],this.Bh=0|to[2],this.Bl=0|to[3],this.Ch=0|to[4],this.Cl=0|to[5],this.Dh=0|to[6],this.Dl=0|to[7],this.Eh=0|to[8],this.El=0|to[9],this.Fh=0|to[10],this.Fl=0|to[11],this.Gh=0|to[12],this.Gl=0|to[13],this.Hh=0|to[14],this.Hl=0|to[15]}}let t3=Uint32Array.from([0x8c3d37c8,0x19544da2,0x73e19966,0x89dcd4d6,0x1dfab7ae,0x32ff9c82,0x679dd514,0x582f9fcf,0xf6d2b69,0x7bd44da8,0x77e36f73,0x4c48942,0x3f9d85a8,0x6a1d36c8,0x1112e6ad,0x91d692a1]),t5=Uint32Array.from([0x22312194,0xfc2bf72c,0x9f555fa3,0xc84c64c2,0x2393b86b,0x6f53b151,0x96387719,0x5940eabd,0x96283ee2,0xa88effe3,0xbe5e1e25,0x53863992,0x2b0199fc,0x2c85b8aa,0xeb72ddc,0x81c52ca2]);class t8 extends t1{constructor(){super(28),this.Ah=0|t3[0],this.Al=0|t3[1],this.Bh=0|t3[2],this.Bl=0|t3[3],this.Ch=0|t3[4],this.Cl=0|t3[5],this.Dh=0|t3[6],this.Dl=0|t3[7],this.Eh=0|t3[8],this.El=0|t3[9],this.Fh=0|t3[10],this.Fl=0|t3[11],this.Gh=0|t3[12],this.Gl=0|t3[13],this.Hh=0|t3[14],this.Hl=0|t3[15]}}class t4 extends t1{constructor(){super(32),this.Ah=0|t5[0],this.Al=0|t5[1],this.Bh=0|t5[2],this.Bl=0|t5[3],this.Ch=0|t5[4],this.Cl=0|t5[5],this.Dh=0|t5[6],this.Dl=0|t5[7],this.Eh=0|t5[8],this.El=0|t5[9],this.Fh=0|t5[10],this.Fl=0|t5[11],this.Gh=0|t5[12],this.Gl=0|t5[13],this.Hh=0|t5[14],this.Hl=0|t5[15]}}let t6=ti(()=>new tq);function t9(t,e,i,n=!0){return(0,u.zd)(e,i,{disablePadding:!n}
1).encrypt(t)}function t7(t,e){let i=new Uint8Array(256);for(let t=0;t<256;t++)i[t]=t;let n=0;for(let t=0;t<256;t++)n=n+i[t]+e[t%e.length]&255,[i[t],i[n]]=[i[n],i[t]];let s=new Uint8Array(t.length);for(let e=0,n=0,r=0;r<t.length;r++)n=n+i[e=e+1&255]&255,[i[e],i[n]]=[i[n],i[e]],s[r]=t[r]^i[i[e]+i[n]&255];return s}function et(t,e){if(t<e[0])return!1;let i=0,n=e.length/2;for(;i<=n;){let s=Math.floor((i+n)/2),r=2*s;if(t>=e[r]&&t<=e[r+1])return!0;t>e[r+1]?i=s+1:n=s-1}return!1}ti(()=>new tQ),ti(()=>new t1),ti(()=>new t2),ti(()=>new t4),ti(()=>new t8);let ee=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,12
10137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],ei=t=>et(t,ee),en=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],es=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],er=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],eo=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],ea=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],eh=t=>et(t,es)||et(t,ea)||et(t,er)||et(t,eo),el=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],ed=t=>et(t,el),ec=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12
1686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],eu=t=>et(t,ec),ef=t=>t.codePointAt(0);function ep(t){let e=[],i=t.length;for(let n=0;n<i;n+=1){let s=t.charCodeAt(n);if(s>=55296&&s<=56319&&i>n+1){let i=t.charCodeAt(n+1);if(i>=56320&&i<=57343){e.push((s-55296)*1024+i-56320+65536),n+=1;continue}}e.push(s)}return e}class eg{static generateFileID(t={}){let e=`${t.CreationDate.getTime()} 2`;for(let i in t)t.hasOwnProperty(i)&&(e+=`${i}: ${t[i].valueOf()} 3`);return tv(e)}static generateRandomWordArray(t){let e=new Uint8Array(t);return globalThis.crypto.getRandomValues(e),e}static create(t,e={}){return e.ownerPassword||e.userPassword?new eg(t,e):null}constructor(t,e={}){if(!e.ownerPassword&&!e.userPassword)throw Error("None of owner password and user password is defined.");this.document=t,this._setupEncryption(e)}_setupEncryption(t){switch(t.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}let e={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,e,t);break;case 5:this._setupEncryptionV5(e,t)}this.dictionary=this.document.ref(e)}_setupEncryptionV1V2V4(t,e,i){var n;let s,r,o;switch(t){case 1:s=2,this.keyBits=40,r=function(t={}){let e=-64;return t.printing&&(e|=4),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),e}(i.permissions);break;case 2:s=3,this.keyBits=128,r=eA(i.permissions);break;case 4:s=4,this.keyBits=128,r=eA(i.permissions)}let a=em(i.userPassword),h=i.ownerPassword?em(i.ownerPassword):a,l=function(t,e,i,n){let s=n,r=t>=3?51:1;for(let t=0;t<r;t++)s=tv(s);let o=e/8,a=s.slice(0,o),h=i;r=t>=3?20:1;for(let t=0;t<r;t++){let e=new Uint8Array(o);for(let i=0;i<o;i++)e[i]=a[i]^t;h=t7(h,e)}return h}(s,this.keyBits,a,h);this.encryptionKey=function(t,e,i,n,s,r){let o=new Uint8Array([255&r,r>>8&255,r>>16&255,r>>24&255]),a=(0,d.Id)(n,s,o,new Uint8Array(i)),h=t>=3?51:1,l=e/8;for(let t=0;t<h;t++)a=(a=tv(a)).slice(0,l);return a}(s,this.keyBits,this.document._id,a,l,r),o=2===s?(n=this.encryptionKey,t7(em(),n)):function(t,e){let i=e.slice(),n=tv((0,d.Id)(em(),new Uint8Array(t)));for(let t=0;t<20;t++){let s=new Uint8Array(i.length);for(let n=0;n<i.length;n++)s[n]=e[n]^t;n=t7(n,s)}let s=new Uint8Array(32);return s.set(n),s}(this.document._id,this.encryptionKey),e.V=t,t>=2&&(e.Length=this.keyBits),4===t&&(e.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},e.StmF="StdCF",e.StrF="StdCF"),e.R=s,e.O=l,e.U=o,e.P=r}_setupEncryptionV5(t,e){var i,n,s,r,o;this.keyBits=256;let a=eA(e.permissions),h=eb(e.userPassword),l=e.ownerPassword?eb(e.ownerPassword):h;this.encryptionKey=(0,eg.generateRandomWordArray)(32);let c=function(t,e){let i=e(8),n=e(8),s=t6((0,d.Id)(t,i));return(0,d.Id)(s,i,n)}(h,eg.generateRandomWordArray),f=(i=h,n=c.slice(40,48),t9(this.encryptionKey,t6((0,d.Id)(i,n)),new Uint8Array(16),!1)),p=function(t,e,i){let n=i(8),s=i(8),r=t6((0,d.Id)(t,n,e));return(0,d.Id)(r,n,s)}(l,c,eg.generateRandomWordArray),g=(s=l,r=p.slice(40,48),o=c,t9(this.encryptionKey,t6((0,d.Id)(s,r,o)),new Uint8Array(16),!1)),A=function(t,e,i){let n=new Uint8Array(16);n[0]=255&t,n[1]=t>>8&255,n[2]=t>>16&255,n[3]=t>>24&255,n[4]=255,n[5]=255,n[6]=255,n[7]=255,n[8]=84,n[9]=97,n[10]=100,n[11]=98;let s=i(4);return n.set(s,12),(0,u.Zi)(e,{disablePadding:!0}
3).encrypt(n)}(a,this.encryptionKey,eg.generateRandomWordArray);t.V=5,t.Length=this.keyBits,t.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},t.StmF="StdCF",t.StrF="StdCF",t.R=5,t.O=p,t.OE=g,t.U=c,t.UE=f,t.P=a,t.Perms=A}getEncryptFn(t,e){let i,n;if(this.version<5){let n=new Uint8Array([255&t,t>>8&255,t>>16&255,255&e,e>>8&255]);i=(0,d.Id)(this.encryptionKey,n)}if(1===this.version||2===this.version){let t=tv(i),e=Math.min(16,this.keyBits/8+5);return t=t.slice(0,e),e=>t7(e,t)}if(4===this.version){let t=new Uint8Array([115,65,108,84]);n=tv((0,d.Id)(i,t))}else n=this.encryptionKey;let s=eg.generateRandomWordArray(16);return t=>{let e=t9(t,n,s,!0);return(0,d.Id)(s,e)}}end(){this.dictionary.end()}}function eA(t={}){let e=-3904;return"lowResolution"===t.printing&&(e|=4),"highResolution"===t.printing&&(e|=2052),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),t.fillingForms&&(e|=256),t.contentAccessibility&&(e|=512),t.documentAssembly&&(e|=1024),e}function em(t=""){let e=new Uint8Array(32),i=t.length,n=0;for(;n<i&&n<32;){let i=t.charCodeAt(n);if(i>255)throw Error("Password contains one or more invalid characters.");e[n]=i,n++}for(;n<32;)e[n]=ey[n-i],n++;return e}function eb(t=""){let e=Math.min(127,(t=unescape(encodeURIComponent(function(t,e={}){if("string"!=typeof t)throw TypeError("Expected string.");if(0===t.length)return"";let i=ep(t).map(t=>et(t,es)?32:t).filter(t=>!et(t,en)),n=String.fromCodePoint.apply(null,i).normalize("NFKC"),s=ep(n);if(s.some(eh))throw Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==e.allowUnassigned&&s.some(ei))throw Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");let r=s.some(ed),o=s.some(eu);if(r&&o)throw Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");let a=ed(ef(n[0])),h=ed(ef(n[n.length-1]));if(r&&!(a&&h))throw Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return n}(t)))).length),i=new Uint8Array(e);for(let n=0;n<e;n++)i[n]=t.charCodeAt(n);return i}let ey=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],{number:ex}=B,e_=class{constructor(t){this.doc=t,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}stop(t,e,i){if(null==i&&(i=1),e=this.doc._normalizeColor(e),0===this.stops.length)if(3===e.length)this._colorSpace
3="DeviceRGB";else if(4===e.length)this._colorSpace="DeviceCMYK";else if(1===e.length)this._colorSpace="DeviceGray";else throw Error("Unknown color space");else if("DeviceRGB"===this._colorSpace&&3!==e.length||"DeviceCMYK"===this._colorSpace&&4!==e.length||"DeviceGray"===this._colorSpace&&1!==e.length)throw Error("All gradient stops must use the same color space");return i=Math.max(0,Math.min(1,i)),this.stops.push([t,e,i]),this}setTransform(t,e,i,n,s,r){return this.transform=[t,e,i,n,s,r],this}embed(t){let e,i=this.stops.length;if(0===i)return;this.embedded=!0,this.matrix=t;let n=this.stops[i-1];n[0]<1&&this.stops.push([1,n[1],n[2]]);let s=[],r=[],o=[];for(let t=0;t<i-1;t++)r.push(0,1),t+2!==i&&s.push(this.stops[t+1][0]),e=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[t+0][1],C1:this.stops[t+1][1],N:1}),o.push(e),e.end();1===i?e=o[0]:(e=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:o,Bounds:s,Encode:r})).end(),this.id=`Sh${++this.doc._gradCount}`;let a=this.shader(e);a.end();let h=this.doc.ref({Type:"Pattern",PatternType:2,Shading:a,Matrix:this.matrix.map(ex)});if(h.end(),this.stops.some(t=>t[2]<1)){let t=this.opacityGradient();for(let e of(t._colorSpace="DeviceGray",this.stops))t.stop(e[0],[e[2]]);t=t.embed(this.matrix);let e=[0,0,this.doc.page.width,this.doc.page.height],i=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:e,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:t}}});i.write("/Pattern cs /Sh1 scn"),i.end(`${e.join(" ")} re f`);let n=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:i}});n.end();let s=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:e,XStep:e[2],YStep:e[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:h},ExtGState:{Gs1:n}}});s.write("/Gs1 gs /Pattern cs /Sh1 scn"),s.end(`${e.join(" ")} re f`),this.doc.page.patterns[this.id]=s}else this.doc.page.patterns[this.id]=h;return h}apply(t){let[e,i,n,s,r,o]=this.doc._ctm,[a,h,l,d,c,u]=this.transform,f=[e*a+n*h,i*a+s*h,e*l+n*d,i*l+s*d,e*c+n*u+r,i*c+s*u+o];this.embedded&&f.join(" ")===this.matrix.join(" ")||this.embed(f),this.doc._setColorSpace("Pattern",t);let p=t?"SCN":"scn";return this.doc.addContent(`/${this.id} ${p}`)}},ew=class t extends e_{constructor(t,e,i,n,s){super(t),this.x1=e,this.y1=i,this.x2=n,this.y2=s}shader(t){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:t,Extend:[!0,!0]})}opacityGradient(){return new t(this.doc,this.x1,this.y1,this.x2,this.y2)}},eS=class t extends e_{constructor(t,e,i,n,s,r,o){super(t),this.doc=t,this.x1=e,this.y1=i,this.r1=n,this.x2=s,this.y2=r,this.r2=o}shader(t){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:t,Extend:[!0,!0]})}opacityGradient(){return new t(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)}},eC=["DeviceCMYK","DeviceRGB"],ek=class{constructor(t,e,i,n,s){this.doc=t,this.bBox=e,this.xStep=i,this.yStep=n,this.stream=s}createPattern(){let t=this.doc.ref();t.end();let[e,i,n,s,r,o]=this.doc._ctm,[a,h,l,d,c,u]=[1,0,0,1,0,0],f=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:2,TilingType:2,BBox:this.bBox,XStep:this.xStep,YStep:this.yStep,Matrix:[e*a+n*h,i*a+s*h,e*l+n*d,i*l+s*d,e*c+n*u+r,i*c+s*u+o].map(t=>+t.toFixed(5)),Resources:t});return f.end(this.stream),f}embedPatternColorSpaces(){eC.forEach(t=>{let e=this.getPatternColorSpaceId(t);if(this.doc.page.colorSpaces[e])return;let i=this.doc.ref(["Pattern",t]);i.end(),this.doc.page.colorSpaces[e]=i})}getPatternColorSpaceId(t){return`CsP${t}`}embed(){this.id||(this.doc._patternCount=this.doc._patternCount+1,this.id="P"+this.doc._patternCount,this.pattern=this.createPattern()),this.doc.page.patterns[this.id]||(this.doc.page.patterns[this.id]=this.pattern)}apply(t,e){this.embedPatternColorSpaces(),this.embed();let i=this.doc._normalizeColor(e);if(!i)throw Error(`invalid pattern color. (value: ${e})`);let n=this.getPatternColorSpaceId(this.doc._getColorSpace(i));this.doc._setColorSpace(n,t);let s=t?"SCN":"scn";return this.doc.addContent(`${i.join(" ")} /${this.id} ${s}`)}},{PDFGradient:eT,PDFLinearGradient:eP,PDFRadialGradient:eF}={PDFGradient:e_,PDFLinearGradient:ew,PDFRadialGradient:eS},{PDFTilingPattern:eM}={PDFTilingPattern:ek};var ev={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
3ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};n=s=r=o=a=h=0;let eD={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},eE=function(t){let e=t.codePointAt(0);return 32===e||9===e||13===e||10===e},eB=function(t){let e=t.codePointAt(0);return null!=e&&48<=e&&e<=57},eI=function(t,e){let i=e,n="",s="none";for(;i<t.length;i+=1){let e=t[i];if("+"===e||"-"===e){if("none"===s){s="sign",n+=e;continue}if("e"===s){s="exponent_sign",n+=e;continue}}if(eB(e)){if("none"===s||"sign"===s||"whole"===s){s="whole",n+=e;continue}if("decimal_point"===s||"decimal"===s){s="decimal",n+=e;continue}if("e"===s||"exponent_sign"===s||"exponent"===s){s="exponent",n+=e;continue}}if("."===e&&("none"===s||"sign"===s||"whole"===s)){s="decimal_point",n+=e;continue}if(("E"===e||"e"===e)&&("whole"===s||"decimal_point"===s||"decimal"===s)){s="e",n+=e;continue}break}let r=Number.parseFloat(n);return Number.isNaN(r)?[e,null]:[i-1,r]},eO=function(t){let e=[],i=null,n=[],s=0,r=!1,o=!1;for(let a=0;a<t.length;a+=1){let h=t.charAt(a);if(eE(h))continue;if(r&&","===h){if(o)break;o=!0;continue}if(h in eD){if(o)return e;if(null==i){if("M"!==h&&"m"!==h)return e}else if(0!==n.length)return e;n=[],s=eD[i=h],r=!1,0===s&&e.push({command:i,args:n});continue}if(null==i)break;let l=a,d=null;if("A"===i||"a"===i){let e=n.length;(0===e||1===e)&&"+"!==h&&"-"!==h&&([l,d]=eI(t,a)),(2===e||5===e||6===e)&&([l,d]=eI(t,a)),(3===e||4===e)&&("0"===h&&(d=0),"1"===h&&(d=1))}else[l,d]=eI(t,a);if(null==d)break;n.push(d),r=!0,o=!1,a=l,n.length===s&&(e.push({command:i,args:n}),"M"===i&&(i="L"),"m"===i&&(i="l"),n=[])}return e},eU=function(t,e){n=s=r=o=a=h=0;for(let i=0;i<t.length;i++){let n=t[i];"function"==typeof eR[n.command]&&eR[n.command](e,n.args)}},eR={M:(t,e)=>(n=e[0],s=e[1],r=o=null,a=n,h=s,t.moveTo(n,s)),m:(t,e)=>(n+=e[0],s+=e[1],r=o=null,a=n,h=s,t.moveTo(n,s)),C:(t,e)=>(n=e[4],s=e[5],r=e[2],o=e[3],t.bezierCurveTo(...e)),c:(t,e)=>(t.bezierCurveTo(e[0]+n,e[1]+s,e[2]+n,e[3]+s,e[4]+n,e[5]+s),r=n+e[2],o=s+e[3],n+=e[4],s+=e[5]),S:(t,e)=>(null===r&&(r=n,o=s),t.bezierCurveTo(n-(r-n),s-(o-s),e[0],e[1],e[2],e[3]),r=e[0],o=e[1],n=e[2],s=e[3]),s:(t,e)=>(null===r&&(r=n,o=s),t.bezierCurveTo(n-(r-n),s-(o-s),n+e[0],s+e[1],n+e[2],s+e[3]),r=n+e[0],o=s+e[1],n+=e[2],s+=e[3]),Q:(t,e)=>(r=e[0],o=e[1],n=e[2],s=e[3],t.quadraticCurveTo(e[0],e[1],n,s)),q:(t,e)=>(t.quadraticCurveTo(e[0]+n,e[1]+s,e[2]+n,e[3]+s),r=n+e[0],o=s+e[1],n+=e[2],s+=e[3]),T:(t,e)=>(null===r?(r=n,o=s):(r=n-(r-n),o=s-(o-s)),t.quadraticCurveTo(r,o,e[0],e[1]),r=n-(r-n),o=s-(o-s),n=e[0],s=e[1]),t:(t,e)=>(null===r?(r=n,o=s):(r=n-(r-n),o=s-(o-s)),t.quadraticCurveTo(r,o,n+e[0],s+e[1]),n+=e[0],s+=e[1]),A:(t,e)=>(ez(t,n,s,e),n=e[5],s=e[6]),a:(t,e)=>(e[5]+=n,e[6]+=s,ez(t,n,s,e),n=e[5],s=e[6]),L:(t,e)=>(n=e[0],s=e[1],r=o=null,t.lineTo(n,s)),l:(t,e)=>(n+=e[0],s+=e[1],r=o=null,t.lineTo(n,s)),H:(t,e)=>(n=e[0],r=o=null,t.lineTo(n,s)),h:(t,e)=>(n+=e[0],r=o=null,t.lineTo(n,s)),V:(t,e)=>(s=e[0],r=o=null,t.lineTo(n,s)),v:(t,e)=>(s+=e[0],r=o=null,t.lineTo(n,s)),Z:t=>(t.closePath(),n=a,s=h),z:t=>(t.closePath(),n=a,s=h)},ez=function(t,e,i,n){let[s,r,o,a,h,l,d]=n;for(let n of eL(l,d,s,r,a,h,o,e,i)){let e=e$(...n);t.bezierCurveTo(...e)}}
3,eL=function(t,e,i,n,s,a,h,l,d){let c=Math.PI/180*h,u=Math.sin(c),f=Math.cos(c);i=Math.abs(i),n=Math.abs(n);let p=(r=f*(l-t)*.5+u*(d-e)*.5)*r/(i*i)+(o=f*(d-e)*.5-u*(l-t)*.5)*o/(n*n);p>1&&(i*=p=Math.sqrt(p),n*=p);let g=f/i,A=u/i,m=-u/n,b=f/n,y=g*l+A*d,x=m*l+b*d,_=g*t+A*e,w=m*t+b*e,S=1/((_-y)*(_-y)+(w-x)*(w-x))-.25;S<0&&(S=0);let C=Math.sqrt(S);a===s&&(C=-C);let k=.5*(y+_)-C*(w-x),T=.5*(x+w)+C*(_-y),P=Math.atan2(x-T,y-k),F=Math.atan2(w-T,_-k)-P;F<0&&1===a?F+=2*Math.PI:F>0&&0===a&&(F-=2*Math.PI);let M=Math.ceil(Math.abs(F/(.5*Math.PI+.001))),v=[];for(let t=0;t<M;t++){let e=P+t*F/M,s=P+(t+1)*F/M;v[t]=[k,T,e,s,i,n,u,f]}return v},e$=function(t,e,i,n,s,r,o,a){let h=a*s,l=-o*r,d=o*s,c=a*r,u=.5*(n-i),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),p=t+Math.cos(i)-f*Math.sin(i),g=e+Math.sin(i)+f*Math.cos(i),A=t+Math.cos(n),m=e+Math.sin(n),b=A+f*Math.sin(n),y=m-f*Math.cos(n);return[h*p+l*g,d*p+c*g,h*b+l*y,d*b+c*y,h*A+l*m,d*A+c*m]};class eW{static apply(t,e){eU(eO(e),t)}}let{number:eG}=B,ej=(Math.sqrt(2)-1)/3*4,eH=t=>{throw Error(`Cannot read '${t}': file paths are not supported outside of Node. Pass a Uint8Array, ArrayBuffer or a data URL instead.`)},eN=new Map,eK=(t,e,i)=>{if(void 0===t)return i;if(!(t instanceof Date)||Number.isNaN(t.getTime()))throw TypeError(`Expected options.${e} to be a valid Date`);return t.getTime()};var eY={readFileSync:t=>eN.has(t)?eN.get(t).data:eH(t),statSync(t){if(eN.has(t)){let{birthtime:e,ctime:i}=eN.get(t);return{birthtime:new Date(e),ctime:new Date(i)}}return eH(t)}};let eq={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},eQ=`\ 4.notdef .notdef .notdef .notdef 5.notdef .notdef .notdef .notdef 6.notdef .notdef .notdef .notdef 7.notdef .notdef .notdef .notdef 8.notdef .notdef .notdef .notdef 9.notdef .notdef .notdef .notdef 10.notdef .notdef .notdef .notdef 11.notdef .notdef .notdef .notdef 12 13space exclam quotedbl numbersign 14dollar percent ampersand quotesingle 15parenleft parenright asterisk plus 16comma hyphen period slash 17zero one two three 18four five six seven 19eight nine colon semicolon 20less equal greater question 21 22at A B C 23D E F G 24H I J K 25L M N O 26P Q R S 27T U V W 28X Y Z bracketleft 29backslash bracketright asciicircum underscore 30 31grave a b c 32d e f g 33h i j k 34l m n o 35p q r s 36t u v w 37x y z braceleft 38bar braceright asciitilde .notdef 39 40Euro .notdef quotesinglbase florin 41quotedblbase ellipsis dagger daggerdbl 42circumflex perthousand Scaron guilsinglleft 43OE .notdef Zcaron .notdef 44.notdef quoteleft quoteright quotedblleft 45quotedblright bullet endash emdash 46tilde trademark scaron guilsinglright 47oe .notdef zcaron ydieresis 48 49space exclamdown cent sterling 50currency yen brokenbar section 51dieresis copyright ordfeminine guillemotleft 52logicalnot hyphen registered macron 53degree plusminus twosuperior threesuperior
54acute mu paragraph periodcentered 55cedilla onesuperior ordmasculine guillemotright 56onequarter onehalf threequarters questiondown 57 58Agrave Aacute Acircumflex Atilde 59Adieresis Aring AE Ccedilla 60Egrave Eacute Ecircumflex Edieresis 61Igrave Iacute Icircumflex Idieresis 62Eth Ntilde Ograve Oacute 63Ocircumflex Otilde Odieresis multiply 64Oslash Ugrave Uacute Ucircumflex 65Udieresis Yacute Thorn germandbls 66 67agrave aacute acircumflex atilde 68adieresis aring ae ccedilla 69egrave eacute ecircumflex edieresis 70igrave iacute icircumflex idieresis 71eth ntilde ograve oacute 72ocircumflex otilde odieresis divide 73oslash ugrave uacute ucircumflex 74udieresis yacute thorn ydieresis\ 75`.split(/\s+/);class eX{constructor(t){this.name=t.name,this.bbox=t.bbox.slice(),this.ascender=t.ascender,this.descender=t.descender,this.xHeight=t.xHeight,this.capHeight=t.capHeight,this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender);let e=t.glyphNames.split(" ");this.glyphWidths=Object.fromEntries(e.map((e,i)=>[e,t.glyphWidths[i]])),this.kernPairs={};for(let i=0;i<t.kernPairs.length;i+=2){let n=t.kernPairs[i],s=0;for(let r of t.kernPairs[i+1]){let t=Math.floor((s+=r)/e.length),i=s%e.length;this.kernPairs[`${e[t]}\0${e[i]}`]=n}}}encodeText(t){let e=[];for(let i=0,n=t.length;i<n;i++){let n=t.charCodeAt(i);n=eq[n]||n,e.push(n.toString(16))}return e}glyphsForString(t){let e=[];for(let i=0,n=t.length;i<n;i++){let n=t.charCodeAt(i);e.push(this.characterToGlyph(n))}return e}characterToGlyph(t){return eQ[eq[t]||t]||".notdef"}widthOfGlyph(t){return this.glyphWidths[t]||0}getKernPair(t,e){return this.kernPairs[t+"\0"+e]||0}advancesForGlyphs(t){let e=[];for(let i=0;i<t.length;i++){let n=t[i],s=t[i+1];e.push(this.widthOfGlyph(n)+this.getKernPair(n,s))}return e}}class eV{constructor(){}encode(){throw Error("Must be implemented by subclasses")}widthOfString(){throw Error("Must be implemented by subclasses")}ref(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()}finalize(){this.embedded||null==this.dictionary||(this.embed(),this.embedded=!0)}embed(){throw Error("Must be implemented by subclasses")}lineHeight(t,e=!1){let i=e?this.lineGap:0;return(this.ascender+i-this.descender)/1e3*t}}class eZ extends eV{constructor(t,e,i){super(),this.document=t,this.name=e.name,this.id=i,this.font=new eX(e),{ascender:this.ascender,descender:this.descender,bbox:this.bbox,lineGap:this.lineGap,xHeight:this.xHeight,capHeight:this.capHeight}=this.font}embed(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()}encode(t){let e=this.font.encodeText(t),i=this.font.glyphsForString(`${t}`),n=this.font.advancesForGlyphs(i),s=[];for(let t=0;t<i.length;t++){let e=i[t];s.push({xAdvance:n[t],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(e)})}return[e,s]}widthOfString(t,e){let i=this.font.glyphsForString(`${t}`),n=this.font.advancesForGlyphs(i),s=0;for(let t of n)s+=t;return e/1e3*s}}let eJ=function(t){return`0000${t.toString(16)}`.slice(-4)};class e0 extends eV{constructor(t,e,i){super(),this.document=t,this.font=e,this.id=i,this.subset=this.font.createSubset(),this.unicode=[[0]],this.widths=[this.font.getGlyph(0).advanceWidth],this.name=this.font.postscriptName,this.scale=1e3/this.font.unitsPerEm,this.ascender=this.font.ascent*this.scale,this.descender=this.font.descent*this.scale,this.xHeight=this.font.xHeight*this.scale,this.capHeight=this.font.capHeight*this.scale,this.lineGap=this.font.lineGap*this.scale,this.bbox=this.font.bbox,!1!==t.options.fontLayoutCache&&(this.layoutCache=Object.create(null))}layoutRun(t,e){let i=this.font.layout(t,e);for(let t=0;t<i.positions.length;t++){let e=i.positions[t];for(let t in e)e[t]*=this.scale;e.advanceWidth=i.glyphs[t].advanceWidth*this.scale}return i}
75layoutCached(t){let e;if(!this.layoutCache)return this.layoutRun(t);if(e=this.layoutCache[t])return e;let i=this.layoutRun(t);return this.layoutCache[t]=i,i}layout(t,e,i){if(e)return this.layoutRun(t,e);let n=i?null:[],s=i?null:[],r=0,o=0,a=0;for(;a<=t.length;)if(a===t.length&&o<a||[" "," "].includes(t.charAt(a))){let e=this.layoutCached(t.slice(o,++a));i||(n=n.concat(e.glyphs),s=s.concat(e.positions)),r+=e.advanceWidth,o=a}else a++;return{glyphs:n,positions:s,advanceWidth:r}}encode(t,e){let{glyphs:i,positions:n}=this.layout(t,e),s=[];for(let t=0;t<i.length;t++){let e=i[t],n=this.subset.includeGlyph(e.id);s.push(`0000${n.toString(16)}`.slice(-4)),null==this.widths[n]&&(this.widths[n]=e.advanceWidth*this.scale),null==this.unicode[n]&&(this.unicode[n]=e.codePoints)}return[s,n]}widthOfString(t,e,i){return e/1e3*this.layout(t,i,!0).advanceWidth}embed(){let t=null!=this.subset.cff,e=this.document.ref();t&&(e.data.Subtype="CIDFontType0C"),e.end(this.subset.encode());let i=((null!=this.font["OS/2"]?this.font["OS/2"].sFamilyClass:void 0)||0)>>8,n=0;this.font.post.isFixedPitch&&(n|=1),1<=i&&i<=7&&(n|=2),n|=4,10===i&&(n|=8),this.font.head.macStyle.italic&&(n|=64);let s=[1,2,3,4,5,6].map(t=>String.fromCharCode((this.id.charCodeAt(t)||73)+17)).join("")+"+"+this.font.postscriptName?.replaceAll(" ","_"),{bbox:r}=this.font,o=this.document.ref({Type:"FontDescriptor",FontName:s,Flags:n,FontBBox:[r.minX*this.scale,r.minY*this.scale,r.maxX*this.scale,r.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});if(t?o.data.FontFile3=e:o.data.FontFile2=e,this.document.subset&&1===this.document.subset){let t=this.widths.length-1,e=new Uint8Array(Math.ceil((t+1)/8));for(let i=0;i<=t;i++)null!=this.widths[i]&&(e[Math.floor(i/8)]|=128>>i%8);let i=this.document.ref();i.write(e),i.end(),o.data.CIDSet=i}o.end();let a={Type:"Font",Subtype:"CIDFontType0",BaseFont:s,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:o,W:[0,this.widths]};t||(a.Subtype="CIDFontType2",a.CIDToGIDMap="Identity");let h=this.document.ref(a);return h.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:s,Encoding:"Identity-H",DescendantFonts:[h],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}toUnicodeCmap(){let t=this.document.ref(),e=[];for(let t of this.unicode){let i=[];for(let e of t)e>65535&&(e-=65536,i.push(eJ(e>>>10&1023|55296)),e=56320|1023&e),i.push(eJ(e));e.push(`<${i.join(" ")}>`)}let i=Math.ceil(e.length/256),n=[];for(let t=0;t<i;t++){let i=256*t,s=Math.min((t+1)*256,e.length);n.push(`<${eJ(i)}> <${eJ(s-1)}> [${e.slice(i,s).join(" ")}]`)}return t.end(`\ 76/CIDInit /ProcSet findresource begin 7712 dict begin 78begincmap 79/CIDSystemInfo << 80 /Registry (Adobe) 81 /Ordering (UCS) 82 /Supplement 0 83>> def 84/CMapName /Adobe-Identity-UCS def 85/CMapType 2 def 861 begincodespacerange 87<0000><ffff> 88endcodespacerange 89${n.length} beginbfrange 90${n.join("\n")} 91endbfrange 92endcmap 93CMapName currentdict /CMap defineresource pop 94end 95end\ 96`),t}}let e1=new Set(["Courier","Courier-Bold","Courier-BoldOblique","Courier-Oblique","Helvetica","Helvetica-Bold","Helvetica-BoldOblique","Helvetica-Oblique","Symbol","Times-Bold","Times-BoldItalic","Times-Italic","Times-Roman","ZapfDingbats"]),e2=(t,e)=>{if(null==t||"object"!=typeof t||!e1.has(t.name)||null!=e&&t.name!==e)throw TypeError("Invalid standard font data.")},e3=new Map,e5=(...t)=>{for(let e of t)e2(e),e3.set(e.name,e)};class e8{static open(t,e,i,n){let s;if("string"==typeof e){let i;if(i=e,e1.has(i))return new eZ(t,(t=>{if(!e1.has(t))return null;let e=e3.get(t);if(null==e)throw Error(`Standard font "${t}" is not registered. Call registerStdFonts() before using it.`);if("function"!=typeof e)return e;let i=e();return e2(i,t),e3.set(t,i),i})(e),n);e=eY.readFileSync(e)}if(e instanceof Uint8Array?s=(0,f.vt)(e,i):e instanceof ArrayBuffer?s=(0,f.vt)(new Uint8Array(e),i):"function"==typeof e?.layout&&(s=e),null==s)throw Error("Not a supported font format or standard PDF font.");return new e0(t,s,n)}}class e4 extends A{constructor(t,e){super(),this.document=t,this.horizontalScaling=e.horizontalScaling||100,this.indent=(e.indent||0)*this.horizontalScaling/100,this.indentAllLines=e.indentAllLines||!1,this.characterSpacing=(e.characterSpacing||0)*this.horizontalScaling/100,this.wordSpacing=(0===e.wordSpacing)*this.horizontalScaling/100,this.columns=e.columns||1,this.columnGap=(null!=e.columnGap?e.columnGap:18)*this.horizontalScaling/100,this.lineWidth=(e.width*this.horizontalScaling/100-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=e.ellipsis,this.continuedX=0,this.indentAp
96plied=!1,this.features=e.features,null!=e.height?(this.height=e.height,this.maxY=z(this.startY+e.height)):this.maxY=z(this.document.page.maxY()),this.on("firstLine",t=>{let e=this.continuedX,i=e||this.indent;if((e||!this.indentApplied)&&(this.document.x+=i,this.lineWidth-=i,this.indentApplied=!0),t.indentAllLines){e&&this.once("line",()=>{this.document.x-=e,this.lineWidth+=e});return}this.once("line",()=>{this.document.x-=i,this.lineWidth+=i,this.indentApplied=!1,t.continued&&!this.continuedX&&(this.continuedX=this.indent),t.continued||(this.continuedX=0)})}),this.on("lastLine",t=>{let{align:e}=t;"justify"===e&&(t.align="left"),this.lastLine=!0,this.once("line",()=>(this.document.y+=t.paragraphGap||0,t.align=e,this.lastLine=!1))})}wordWidth(t){return z(this.document.widthOfString(t,this)+this.characterSpacing+this.wordSpacing)}canFit(t,e){return"\xad"!=t[t.length-1]?e<=this.spaceLeft:e+this.wordWidth("-")<=this.spaceLeft}eachWord(t,e){let i,n=new p.A(t),s=null,r=Object.create(null);for(;i=n.nextBreak();){var o,a,h;let n=t.slice((null!=s?s.position:void 0)||0,i.position),l=null!=r[n]?r[n]:r[n]=this.wordWidth(n);if(l>this.lineWidth+this.continuedX){let t=s,r={};for(;n.length;){l>this.spaceLeft?(a=Math.ceil(this.spaceLeft/(l/n.length)),h=(l=this.wordWidth(n.slice(0,a)))<=this.spaceLeft&&a<n.length):a=n.length;let s=l>this.spaceLeft&&a>0;for(;s||h;)s?s=(l=this.wordWidth(n.slice(0,--a)))>this.spaceLeft&&a>0:(s=(l=this.wordWidth(n.slice(0,++a)))>this.spaceLeft&&a>0,h=l<=this.spaceLeft&&a<n.length);if(0===a&&this.spaceLeft===this.lineWidth&&(a=1),r.required=i.required||a<n.length,o=e(n.slice(0,a),l,r,t),t={required:!1},n=n.slice(a),l=this.wordWidth(n),!1===o)break}}else o=e(n,l,i,s);if(!1===o)break;s=i}}wrap(t,e){let{document:i}=this;this.horizontalScaling=e.horizontalScaling||100,null!=e.indent&&(this.indent=e.indent*this.horizontalScaling/100),null!=e.characterSpacing&&(this.characterSpacing=e.characterSpacing*this.horizontalScaling/100),null!=e.wordSpacing&&(this.wordSpacing=e.wordSpacing*this.horizontalScaling/100),null!=e.ellipsis&&(this.ellipsis=e.ellipsis);let n=i.y+i.currentLineHeight(!0);(i.y>this.maxY||n>this.maxY)&&this.nextSection();let s="",r=0,o=0,a=0,h=i.y,l=()=>(e.textWidth=r+this.wordSpacing*(o-1),e.wordCount=o,e.lineWidth=this.lineWidth,h=i.y,this.emit("line",s,e,this),a++);this.emit("sectionStart",e,this),this.eachWord(t,(t,n,a,h)=>{if((null==h||h.required)&&(this.emit("firstLine",e,this),this.spaceLeft=this.lineWidth),this.canFit(t,n)&&(s+=t,r+=n,o++),!a.required&&this.canFit(t,n))return this.spaceLeft-=n;{let h=i.currentLineHeight(!0);if(null!=this.height&&this.ellipsis&&z(i.y+2*h)>this.maxY&&this.column>=this.columns){for(!0===this.ellipsis&&(this.ellipsis="…"),s=s.replace(/\s+$/,""),r=this.wordWidth(s+this.ellipsis);s&&r>this.lineWidth;)s=s.slice(0,-1).replace(/\s+$/,""),r=this.wordWidth(s+this.ellipsis);r<=this.lineWidth&&(s+=this.ellipsis),r=this.wordWidth(s)}if(a.required&&(n>this.spaceLeft&&(l(),s=t,r=n,o=1),this.emit("lastLine",e,this)),"\xad"==s[s.length-1]&&(s=s.slice(0,-1)+"-",this.spaceLeft-=this.wordWidth("-")),l(),z(i.y+h)>this.maxY){if(this.emit("sectionEnd",e,this),!this.nextSection())return o=0,s="",!1;this.emit("sectionStart",e,this)}return a.required?(this.spaceLeft=this.lineWidth,s="",r=0,o=0):(this.spaceLeft=this.lineWidth-n,s=t,r=n,o=1)}}),o>0&&(this.emit("lastLine",e,this),l()),this.emit("sectionEnd",e,this),!0===e.continued?(a>1&&(this.continuedX=0),this.continuedX+=e.textWidth||0,i.y=h):i.x=this.startX}nextSection(t){if(++this.column>this.columns){if(null!=this.height)return!1;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.indentAllLines?this.indentApplied&&(this.document.x+=this.continuedX||this.indent):this.document.x=this.startX,this.document._fillColor&&this.document.fillColor(...this.document._fillColor),this.emit("pageBreak",t,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",t,this);return!0}}let{number:e6}=B,e9=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],e7={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"};class it{constructor(t,e){let i;if(this.data=t,this.label=e,65496!==C(this.data,0))throw"SOI not found in JPEG";this.orientation=(t=>{if(!t||t.length<20)return null;let e=2;for(;e<t.length-4;){for(;e<t.length&&255!==t[e];)e++;if(e>=t.length-4)break;let i=C(t,e);if(e+=2,65498===i)break;if(i>=65488&&i<=65497||65281===i)continue;if(e+2>t.length)break;let n=C(t,e);if(65505===i&&e+8<=t.length&&"Exif\0\0"===_(t.subarray(e+2,e+8))){let i=e+8;if(i+8>t.length)return null;let n=_(t.subarray(i,i+2)),s="II"===n;if(!s&&"MM"!==n)return null;let r=s?e=>k(t,e):e=>C(t,e),o=s?e=>P(t,e):e=>T(t,e);if(42!==r(i+2))return null;let a=i+o(i+4);if(a+2>t.length)return null;let h=r(a);for(let e=0;e<h;e++){let i=a+2+12*e;if(i+12>t.length)break;if(274===r(i)){let t=r(i+8);return t>=1&&t<=8?t:null}}break}e+=n}return null})(this.data)||1;let n=2;
96for(;n<this.data.length;){for(;n<this.data.length&&255!==this.data[n];)n++;if(n>=this.data.length||(i=C(this.data,n),n+=2,e9.includes(i)))break;n+=C(this.data,n)}if(!e9.includes(i))throw"Invalid JPEG.";n+=2,this.bits=this.data[n++],this.height=C(this.data,n),n+=2,this.width=C(this.data,n),n+=2;let s=this.data[n];this.colorSpace=e7[s],this.obj=null}embed(t){if(!this.obj)return this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null}}class ie{constructor(t,e){this.label=e,this.image=new g.A(t),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}embed(t){if(this.document=t,this.obj)return;let{image:e,height:i,width:n}=this,s=e.hasAlphaChannel,r=1===e.interlaceMethod,o=this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:s?8:e.bits,Width:n,Height:i,Filter:"FlateDecode"});if(!s){let i=t.ref({Predictor:r?1:15,Colors:e.colors,BitsPerComponent:e.bits,Columns:n});o.data.DecodeParms=i,i.end()}
96if(0===e.palette.length)o.data.ColorSpace=e.colorSpace;else{let i=t.ref();i.end(new Uint8Array(e.palette)),o.data.ColorSpace=["Indexed","DeviceRGB",e.palette.length/3-1,i]}if(null!=e.transparency.grayscale){let t=e.transparency.grayscale;o.data.Mask=[t,t]}else if(e.transparency.rgb){let{rgb:t}=e.transparency,i=[];for(let e of t)i.push(e,e);o.data.Mask=i}else if(e.transparency.indexed)return this.loadIndexedAlphaChannel();else if(s)return this.splitAlphaChannel();if(r&&1)return this.decodeData();this.finalize()}finalize(){if(this.alphaChannel){let t=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});t.end(this.alphaChannel),this.obj.data.SMask=t}return this.obj.end(this.imgData),this.image=null,this.imgData=null}splitAlphaChannel(){return this.image.decodePixels(t=>{let e,i,n=this.image.colors,s=this.width*this.height,r=new Uint8Array(s*n),o=new Uint8Array(s),a=i=e=0,h=t.length,l=+(16===this.image.bits);for(;a<h;){for(let e=0;e<n;e++)r[i++]=t[a++],a+=l;o[e++]=t[a++],a+=l}return this.imgData=I.deflateSync(r),this.alphaChannel=I.deflateSync(o),this.finalize()})}loadIndexedAlphaChannel(){let t=this.image.transparency.indexed,e=1===this.image.interlaceMethod;return this.image.decodePixels(i=>{let n=new Uint8Array(this.width*this.height),s=0;for(let e=0,r=i.length;e<r;e++)n[s++]=t[i[e]];return e&&(this.imgData=I.deflateSync(i)),this.alphaChannel=I.deflateSync(n),this.finalize()})}decodeData(){this.image.decodePixels(t=>{this.imgData=I.deflateSync(t),this.finalize()})}}class ii{static open(t,e){let i;if(t instanceof Uint8Array)i=t;else if(t instanceof ArrayBuffer)i=new Uint8Array(t);else{let e=/^data:.+?;base64,(.*)$/.exec(t);if(e)i=S(e[1]);else if(!(i=eY.readFileSync(t)))return}if(255===i[0]&&216===i[1])return new it(i,e);if(137===i[0]&&80===i[1]&&78===i[2]&&71===i[3])return new ie(i,e);throw Error("Unknown image format.")}}class is{constructor(t){this.annotationRef=t}}let ir={top:0,left:0,zoom:0,fit:!0,pageNumber:null,expanded:!1};class io{constructor(t,e,i,n,s=ir){if(this.document=t,this.options=s,this.outlineData={},null!==n){let t=n.data.MediaBox[2],e=n.data.MediaBox[3]-(s.top||0),i=t-(s.left||0),r=s.zoom||0;this.outlineData.Dest=s.fit?[n,"Fit"]:[n,"XYZ",i,e,r]}null!==e&&(this.outlineData.Parent=e),null!==i&&(this.outlineData.Title=new String(i)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}addItem(t,e=ir){let i=this.document._root.data.Pages.data.Kids,n=null!=e.pageNumber?i[e.pageNumber]:this.document.page.dictionary,s=new io(this.document,this.dictionary,t,n,e);return this.children.push(s),s}endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);let t=this.children[0],e=this.children[this.children.length-1];this.outlineData.First=t.dictionary,this.outlineData.Last=e.dictionary;for(let t=0,e=this.children.length;t<e;t++){let e=this.children[t];t>0&&(e.outlineData.Prev=this.children[t-1].dictionary),t<this.children.length-1&&(e.outlineData.Next=this.children[t+1].dictionary),e.endOutline()}}return this.dictionary.end()}}class ia{constructor(t,e){this.refs=[{pageRef:t,mcid:e}]}push(t){t.refs.forEach(t=>this.refs.push(t))}}class ih{constructor(t,e,i={},n=null){this.document=t,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=t.ref({S:e});let s=this.dictionary.data;(Array.isArray(i)||this._isValidChild(i))&&(n=i,i={}),i.title&&(s.T=new String(i.title)),i.lang&&(s.Lang=new String(i.lang)),i.alt&&(s.Alt=new String(i.alt)),i.expanded&&(s.E=new String(i.expanded)),i.actual&&(s.ActualText=new String(i.actual));let r=Array.isArray(i.bbox)&&4===i.bbox.length,o="string"==typeof i.placement;if(r||o){let e={O:"Layout"};if(e.Placement=o?i.placement:"Block",r){let n=t.page.height;e.BBox=[i.bbox[0],n-i.bbox[3],i.bbox[2],n-i.bbox[1]]}s.A=e}i.scope&&(s.A={...s.A||{},O:"Table",Scope:i.scope}),this._children=[],n&&(Array.isArray(n)||(n=[n]),n.forEach(t=>this.add(t)),this.end())}add(t){if(this._ended)throw Error("Cannot add child to already-ended structure element");
96if(!this._isValidChild(t))throw Error("Invalid structure element child");return t instanceof ih&&(t.setParent(this.dictionary),this._attached&&t.setAttached()),t instanceof ia&&this._addContentToParentTree(t),t instanceof is&&this._addAnnotationToParentTree(t.annotationRef),"function"==typeof t&&this._attached&&(t=this._contentForClosure(t)),this._children.push(t),this}_addContentToParentTree(t){t.refs.forEach(({pageRef:t,mcid:e})=>{this.document.getStructParentTree().get(t.data.StructParents)[e]=this.dictionary})}_addAnnotationToParentTree(t){let e=this.document.createStructParentTreeNextKey();t.data.StructParent=e,this.document.getStructParentTree().add(e,this.dictionary)}setParent(t){if(this.dictionary.data.P)throw Error("Structure element added to more than one parent");this.dictionary.data.P=t,this._flush()}setAttached(){this._attached||(this._children.forEach((t,e)=>{t instanceof ih&&t.setAttached(),"function"==typeof t&&(this._children[e]=this._contentForClosure(t))}),this._attached=!0,this._flush())}end(){this._ended||(this._children.filter(t=>t instanceof ih).forEach(t=>t.end()),this._ended=!0,this._flush())}_isValidChild(t){return t instanceof ih||t instanceof ia||t instanceof is||"function"==typeof t}_contentForClosure(t){let e=this.document.markStructureContent(this.dictionary.data.S),i=this.document._currentStructureElement;this.document._currentStructureElement=this;let n=this._ended;return this._ended=!1,t(),this._ended=n,this.document._currentStructureElement=i,this.document.endMarkedContent(),this._addContentToParentTree(e),e}_isFlushable(){return!!this.dictionary.data.P&&!!this._ended&&this._children.every(t=>"function"!=typeof t&&(!(t instanceof ih)||t._isFlushable()))}_flush(){!this._flushed&&this._isFlushable()&&(this.dictionary.data.K=[],this._children.forEach(t=>this._flushChild(t)),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}_flushChild(t){if(t instanceof ih&&this.dictionary.data.K.push(t.dictionary),t instanceof ia&&t.refs.forEach(({pageRef:t,mcid:e})=>{this.dictionary.data.Pg||(this.dictionary.data.Pg=t),this.dictionary.data.Pg===t?this.dictionary.data.K.push(e):this.dictionary.data.K.push({Type:"MCR",Pg:t,MCID:e})}),t instanceof is){let e=this.document.page.dictionary,i={Type:"OBJR",Obj:t.annotationRef,Pg:e};this.dictionary.data.K.push(i)}}}class il extends y{_compareKeys(t,e){return parseInt(t)-parseInt(e)}_keysName(){return"Nums"}_dataForKey(t){return parseInt(t)}}let id={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},ic={left:0,center:1,right:2},iu={value:"V",defaultValue:"DV"},ip={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},ig={number:{nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},percent:{nDec:0,sepComma:!1}},iA=new i.U(i(16247)).href;var im={initPDFA(t){"-"===t.charAt(t.length-3)?(this.subset_conformance=t.charAt(t.length-1).toUpperCase(),this.subset=parseInt(t.charAt(t.length-2))):(this.subset_conformance="B",this.subset=parseInt(t.charAt(t.length-1)))},endSubset(){this._addPdfaMetadata(),this._addColorOutputIntent()},_addColorOutputIntent(){l||(l=eY.readFileSync(iA));let t=this.ref({Length:l.length,N:3});t.write(l),t.end();let e=this.ref({Type:"OutputIntent",S:"GTS_PDFA1",Info:new String("sRGB IEC61966-2.1"),OutputConditionIdentifier:new String("sRGB IEC61966-2.1"),DestOutputProfile:t});e.end(),this._root.data.OutputIntents=[e]},_getPdfaid(){return` 97 <rdf:Description xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" rdf:about=""> 98 <pdfaid:part>${this.subset}</pdfaid:part> 99 <pdfaid:conformance>${this.subset_conformance}</pdfaid:conformance> 100 </rdf:Description> 101 `},_addPdfaMetadata(){this.appendXML(this._getPdfaid())}},ib={initPDFUA(){this.subset=1},endSubset(){this._addPdfuaMetadata()},_addPdfuaMetadata(){this.appendXML(this._getPdfuaid())},_getPdfuaid(){return` 102 <rdf:Description xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/" rdf:about=""> 103 <pdfuaid:part>${this.subset}</pdfuaid:part> 104 </rdf:Description> 105 `}};let iy=["height","minHeight","maxHeight"],ix=["width","minWidth","maxWidth"];function i_(t,e){let i=new Map;return function(...n){let s=n[0];return!i.has(s)&&(i.set(s,t(...n)),i.size>e&&i.delete(i.keys().next())),i.get(s)}}function iw(t){return t&&"object"==typeof t&&!Array.isArray(t)}function iS(t,...e){if(!iw(t))return t;for(let i of(t=iC(t),e))if(iw(i))for(let e in i)iw(i[e])?(e in t||(t[e]={}),t[e]=iS(t[e],i[e])):void 0!==i[e]&&(t[e]=iC(i[e]));return t}function iC(t){let e=t;if(t&&"object"==typeof t)for(let i in e=Array.isArray(t)?[]:{},t)e[i]=iC(t[i]);return e}function ik(t,e,i){let n=e(i);(null==n||"object"!=typeof n)&&(n={height:n}),n.padding=L(n.padding),n.border=L(n.border),n.borderColor=L(n.borderColor),n.align=iP(n.align),n=iS(t,n);let s=this.document,r=s.page,o=r.contentHeight;return null==n.height||"auto"===n.height?n.height="auto":n.height=s.sizeToPoint(n.height,0,r,o),n.minHeight=s.sizeToPoint(n.minHeight,0,r,o),n.maxHeight=s.sizeToPoint(n.maxHeight,0,r,o),n}function iT(t,e,i){let n=e(i);return(null==n||"object"!=typeof n)&&(n={width:n}),n.padding=L(n.padding),n.border=L(n.border),n.borderColor=L(n.borderColor),n.align=iP(n.align),null==(n=iS(t,n)).width||"*"===n.width?n.width="*":n.width=this.document.sizeToPoint(n.width,0,this.document.page,this._maxWidth),n.minWidth=this.document.sizeToPoint(n.minWidth,0,this.document.page,this._maxWidth),n.maxWidth=this.document.sizeToPoint(n.maxWidth,0,this.document.page,this._maxWidth),n}function iP(t){return null==t||"string"==typeof t?{x:t,y:t}:t}function iF(){let t,e,i=this.document,n=this.opts,s=i._tableIndex++;this._id=new String(n.id??`table-${s}`),this._position={x:i.sizeToPoint(n.position?.x,i.x),y:i.sizeToPoint(n.position?.y,i.y)},this._maxWidth=i.sizeToPoint(n.maxWidth,i.page.width-i.page.margins.right-this._position.x);let{defaultStyle:r,defaultColStyle:o,defaultRowStyle:a}=function(t){let e=t;"object"!=typeof e&&(e={text:e});let i=Object.fromEntries(Object.entries(e).filter(([t])=>iy.includes(t))),n=Object.fromEntries(Object.entries(e).filter(([t])=>ix.includes(t)));return e.padding=L(e.padding),e.border=L(e.border),e.borderColor=L(e.borderColor),e.align=iP(e.align),{defaultStyle:e,defaultRowStyle:i,defaultColStyle:n}}(n.defaultStyle);this._defaultStyle=r,n.columnStyles&&(Array.isArray(n.columnStyles)?t=t=>n.columnStyles[t]:"function"==typeof n.columnStyles?t=i_(t=>n.columnStyles(t),1/0):"object"==typeof n.columnStyles&&(t=()=>n.columnStyles)),t||(t=()=>({})),this._colStyle=iT.bind(this,o,t),n.rowStyles&&(Array.isArray(n.rowStyles)?e=t=>n.rowStyles[t]:"function"==typeof n.rowStyles?e=i_(t=>n.rowStyles(t),10):"object"==typeof n.rowStyles&&(e=()=>n.rowStyles)),e||(e=()=>({})),this._rowStyle=ik.bind(this,a,e)}function iM(t,e,i){var n;let s=this._colStyle(i),r=this._rowStyle(e),o={};for(let e of[s.font,r.font,t.font])null!=e&&(null!=e.src?(o.src=e.src,o.family=e.family):null!=e.family&&(o.family=e.family),null!=e.size&&(o.size=e.size));let a=Object.values(o).filter(t=>null!=t).length>0,h=this.document,l=h._fontSource,d=h._fontSize,c=h._fontFamily;a&&(o.src&&h.font(o.src,o.family),o.size&&h.fontSize(o.size),r=this._rowStyle(e)),t.padding=L(t.padding),t.border=L(t.border),t.borderColor=L(t.borderColor);let u=iS(this._defaultStyle,s,r,t);return u.rowIndex=e,u.colIndex=i,u.font=o??{},u.customFont=a,null!=(n=u.text)&&(n=`${n}`),u.text=n,u.rowSpan=u.rowSpan??1,u.colSpan=u.colSpan??1,u.padding=L(u.padding,"0.25em",t=>h.sizeToPoint(t,"0.25em")),u.border=L(u.border,1,t=>h.sizeToPoint(t,1)),u.borderColor=L(u.borderColor,"black",t=>t??"black"),u.align=iP(u.align),u.align.x=u.align.x??"left",u.align.y=u.align.y??"top",u.textStroke=h.sizeToPoint(u.textStroke,0),u.textStrokeColor=u.textStrokeColor??"black",u.textColor=u.textColor??"black",u.textOptions=u.textOptions??{},u.id=new String(u.id??`${this._id}-${e}-${i}`),u.type=u.type?.toUpperCase()==="TH"?"TH":"TD",u.scope&&(u.scope=u.scope.toLowerCase(),"row"===u.scope?u.scope="Row":"both"===u.scope?u.scope="Both":"column"===u.scope&&(u.scope="Column")),"boolean"==typeof this.opts.debug&&(u.debug=this.opts.debug),a&&h.font(l,c,d),u}function iv(t,e){this._cellClaim||(this._cellClaim=new Set);let i=0;return t.map(t=>{for((null==t||"object"!=typeof t)&&(t={text:t});this._cellClaim.has(`${e},${i}`);)i++;t=iM.call(this,t,e,i);for(let n=0;n<t.rowSpan;n++)for(let s=0;s<t.colSpan;s++)this._cellClaim.add(`${e+n},${i+s}`);return i+=t.colSpan,t})}function iD(t){this._columnWidths=[],iE.call(this,t.reduce((t,e)=>t+e.colSpan,0)),this._rowHeights=[],this._rowYPos=[this._position.y],this._rowBuffer=new Set}function iE(t){let e=[],i=0,n=this._maxWidth;for(let s=0;s<t;s++){let t=this._colStyle(s);"*"===t.width?(e[s]=t,i+=t.minWidth):(n-=t.width,this._columnWidths[s]=t.
105width)}let s=e.reduce(t=>t+1,0);i>=n?e.forEach((t,e)=>{this._columnWidths[e]=t.minWidth}):s>0&&e.forEach((t,e)=>{let i=n/s;this._columnWidths[e]=Math.max(i,t.minWidth),t.maxWidth>0&&(this._columnWidths[e]=Math.min(this._columnWidths[e],t.maxWidth)),n-=this._columnWidths[e],s--});let r=this._position.x;this._columnXPos=Array.from(this._columnWidths,t=>{let e=r;return r+=t,e})}function iB(t,e){t.forEach(t=>this._rowBuffer.add(t)),e>0&&(this._rowYPos[e]=this._rowYPos[e-1]+this._rowHeights[e-1]);let i=this._rowStyle(e),n=[];this._rowBuffer.forEach(t=>{t.rowIndex+t.rowSpan-1===e&&(n.push(iI.call(this,t,i.height)),this._rowBuffer.delete(t))});let s=i.height;"auto"===s&&(s=n.reduce((t,e)=>{let i=e.textBounds.height+e.padding.top+e.padding.bottom;for(let t=0;t<e.rowSpan-1;t++)i-=this._rowHeights[e.rowIndex+t];return Math.max(t,i)},0)),s=Math.max(s,i.minHeight),i.maxHeight>0&&(s=Math.min(s,i.maxHeight)),this._rowHeights[e]=s;let r=!1;return s>this.document.page.contentHeight?(console.warn(Error(`Row ${e} requested more than the safe page height, row has been clamped`).stack.slice(7)),this._rowHeights[e]=this.document.page.maxY()-this._rowYPos[e]):this._rowYPos[e]+s>=this.document.page.maxY()&&(this._rowYPos[e]=this.document.page.margins.top,r=!0),{newPage:r,toRender:n.map(t=>iI.call(this,t,s))}}function iI(t,e){let i=0;for(let e=0;e<t.colSpan;e++)i+=this._columnWidths[t.colIndex+e];let n=e;if("auto"===n)n=this.document.page.contentHeight;else for(let e=0;e<t.rowSpan-1;e++)n+=this._rowHeights[t.rowIndex+e];let s=i-t.padding.left-t.padding.right,r=n-t.padding.top-t.padding.bottom,o=t.textOptions.rotation??0,{width:a,height:h}=function(t,e,i){let n,s,r=G(t),o=j(t);if(0===t||180===t?(n=e,s=i):90===t||270===t?(n=i,s=e):t<90||t>180&&t<270?(n=e/(2*r),s=e/(2*o)):(s=e/(2*r),n=e/(2*o)),o*n+r*s>i){let a=r*r-o*o;0===t||180===t?(n=e,s=i):90===t||270===t?(n=i,s=e):t<90||t>180&&t<270?(n=(e*r-i*o)/a,s=(i*r-e*o)/a):(s=(e*r-i*o)/a,n=(i*r-e*o)/a)}return{width:Math.abs(n),height:Math.abs(s)}}(o,s,r),l={align:t.align.x,ellipsis:!0,stroke:t.textStroke>0,fill:!0,width:a,height:h,rotation:o,...t.textOptions},d={x:0,y:0,width:0,height:0};if(t.text){let e=this.document._fontSource,i=this.document._fontSize,n=this.document._fontFamily;t.font?.src&&this.document.font(t.font.src,t.font?.family),t.font?.size&&this.document.fontSize(t.font.size);let s=this.document.boundsOfString(t.text,0,0,{...l,rotation:0});l.width=s.width,l.height=s.height,d=this.document.boundsOfString(t.text,0,0,l),this.document.font(e,n,i)}return{...t,textOptions:l,x:this._columnXPos[t.colIndex],y:this._rowYPos[t.rowIndex],textX:this._columnXPos[t.colIndex]+t.padding.left,textY:this._rowYPos[t.rowIndex]+t.padding.top,width:i,height:n,textAllocatedHeight:r,textAllocatedWidth:s,textBounds:d}}function iO(){let t=this.opts.structParent;t&&(this._tableStruct=this.document.struct("Table"),this._tableStruct.dictionary.data.ID=this._id,t instanceof ih?t.add(this._tableStruct):t instanceof iN&&t.addStructure(this._tableStruct),this._headerRowLookup={},this._headerColumnLookup={})}function iU(){this._tableStruct&&this._tableStruct.end()}function iR(t,e,i){let n=this.document.struct("TR");n.dictionary.data.ID=new String(`${this._id}-${e}`),this._tableStruct.add(n),t.forEach(t=>i(t,n)),n.end()}function iz(t,e,i){let n=this.document,s=n.struct(t.type,{title:t.title});s.dictionary.data.ID=t.id,e.add(s);let r=t.padding,o=t.border,a={O:"Table",Width:t.width,Height:t.height,Padding:[r.top,r.bottom,r.left,r.right],RowSpan:t.rowSpan>1?t.rowSpan:void 0,ColSpan:t.colSpan>1?t.colSpan:void 0,BorderThickness:[o.top,o.bottom,o.left,o.right]};if("TH"===t.type){if("Row"===t.scope||"Both"===t.scope){for(let e=0;e<t.rowSpan;e++)this._headerRowLookup[t.rowIndex+e]||(this._headerRowLookup[t.rowIndex+e]=[]),this._headerRowLookup[t.rowIndex+e].push(t.id);a.Scope=t.scope}if("Column"===t.scope||"Both"===t.scope){for(let e=0;e<t.colSpan;e++)this._headerColumnLookup[t.colIndex+e]||(this._headerColumnLookup[t.colIndex+e]=[]),this._headerColumnLookup[t.colIndex+e].push(t.id);a.Scope=t.scope}}let h=new Set([...Array.from({length:t.colSpan},(e,i)=>this._headerColumnLookup[t.colIndex+i]).flat(),...Array.from({length:t.rowSpan},(e,i)=>
105this._headerRowLookup[t.rowIndex+i]).flat()].filter(Boolean));h.size&&(a.Headers=Array.from(h));let l=n._normalizeColor;null!=t.backgroundColor&&(a.BackgroundColor=l(t.backgroundColor));let d=[o.top,o.bottom,o.left,o.right];if(d.some(t=>t)){let e=t.borderColor;a.BorderColor=[d[0]?l(e.top):null,d[1]?l(e.bottom):null,d[2]?l(e.left):null,d[3]?l(e.right):null]}Object.keys(a).forEach(t=>void 0===a[t]&&delete a[t]),s.dictionary.data.A=n.ref(a),s.add(i),s.end(),s.dictionary.data.A.end()}function iL(t,e){return this._tableStruct?iR.call(this,t,e,i$.bind(this)):t.forEach(t=>i$.call(this,t)),this._rowYPos[e]+this._rowHeights[e]}function i$(t,e){let i=()=>{null!=t.backgroundColor&&this.document.save().fillColor(t.backgroundColor).rect(t.x,t.y,t.width,t.height).fill().restore(),iG.call(this,t.border,t.borderColor,t.x,t.y,t.width,t.height),t.debug&&(this.document.save(),this.document.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),this.document.rect(t.x,t.y,t.width,t.height).stroke("green"),this.document.restore()),t.text&&iW.call(this,t)};e?iz.call(this,t,e,i):i()}function iW(t){let e=this.document,i=e._fontSource,n=e._fontSize,s=e._fontFamily;t.customFont&&(t.font.src&&e.font(t.font.src,t.font.family),t.font.size&&e.fontSize(t.font.size));let r=t.textX,o=t.textY,a=t.textAllocatedHeight,h=t.textAllocatedWidth,l=t.textBounds.width,d=t.textBounds.height,c=-t.textBounds.x,u=-t.textBounds.y,f=(h-l)*("right"===t.align.x?1:.5*("center"===t.align.x)),p=(a-d)*("bottom"===t.align.y?1:.5*("center"===t.align.y));t.debug&&(e.save(),e.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),t.text&&e.moveTo(r+f,o).lineTo(r+f,o+a).moveTo(r+f+l,o).lineTo(r+f+l,o+a).stroke("blue").moveTo(r,o+p).lineTo(r+h,o+p).moveTo(r,o+p+d).lineTo(r+h,o+p+d).stroke("green"),e.rect(r,o,h,a).stroke("orange"),e.restore()),e.save().rect(r,o,h,a).clip(),e.fillColor(t.textColor).strokeColor(t.textStrokeColor),t.textStroke>0&&e.lineWidth(t.textStroke),e.text(t.text,r+(f+c),o+(p+u),t.textOptions),e.restore(),t.font&&e.font(i,s,n)}function iG(t,e,i,n,s,r,o){t=Object.fromEntries(Object.entries(t).map(([t,e])=>[t,o&&!o[t]?0:e]));let a=this.document;[t.right,t.bottom,t.left].every(e=>e===t.top)?t.top>0&&a.save().lineWidth(t.top).strokeColor(e.top).rect(i,n,s,r).stroke().restore():(t.top>0&&a.save().lineWidth(t.top).moveTo(i,n).strokeColor(e.top).lineTo(i+s,n).stroke().restore(),t.right>0&&a.save().lineWidth(t.right).moveTo(i+s,n).strokeColor(e.right).lineTo(i+s,n+r).stroke().restore(),t.bottom>0&&a.save().lineWidth(t.bottom).moveTo(i+s,n+r).strokeColor(e.bottom).lineTo(i,n+r).stroke().restore(),t.left>0&&a.save().lineWidth(t.left).moveTo(i,n+r).strokeColor(e.left).lineTo(i,n).stroke().restore())}class ij{constructor(t,e={}){if(this.document=t,this.opts=Object.freeze(e),iF.call(this),iO.call(this),this._currRowIndex=0,this._ended=!1,e.data){for(let t of e.data)this.row(t);return this.end()}}row(t,e=!1){if(this._ended)throw Error(`Table was marked as ended on row ${this._currRowIndex}`);t=Array.from(t),t=iv.call(this,t,this._currRowIndex),0===this._currRowIndex&&iD.call(this,t);let{newPage:i,toRender:n}=iB.call(this,t,this._currRowIndex);i&&this.document.continueOnNewPage();let s=iL.call(this,n,this._currRowIndex);return(this.document.x=this._position.x,this.document.y=s,e)?this.end():(this._currRowIndex++,this)}end(){for(;this._rowBuffer?.size;)this.row([]);return this._ended=!0,iU.call(this),this.document}}class iH{constructor(){this._metadata=` 106 <?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?> 107 <x:xmpmeta xmlns:x="adobe:ns:meta/"> 108 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 109 `}_closeTags(){this._metadata=this._metadata.concat(` 110 </rdf:RDF> 111 </x:xmpmeta> 112 <?xpacket end="w"?> 113 `)}append(t,e=!0){this._metadata=this._metadata.concat(t),e&&(this._metadata=this._metadata.concat("\n"))}getXML(){return this._metadata}getLength(){return this._metadata.length}end(){this._closeTags(),this._metadata=this._metadata.trim()}}class iN extends m{constructor(t={}){switch(super(t),this.options=t,t.pdfVersion){case"1.4":this.version=1.4;break;case"1.5":this.version=1.5;break;case"1.6":this.version=1.6;break;case"1.7":case"1.7ext3":this.version=1.7;break;default:this.version=1.3}this.compress=null==this.options.compress||this.options.compress,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0;let e=this.ref({Type:"Pages",Count:0,Kids:[]}),i=this.ref({Dests:new Y});if(this._root=this.ref({Type:"Catalog",Pages:e,Names:i}),this.options.lang&&(this._root.data.Lang=new String(this.options.lang)),this.options.pageLayout){let t=this.options.pageLayout;this._root.data.PageLayout=t.charAt(0).toUpperCase()+t.slice(1)}if(this.page=null,this.initMetadata(),this.initColor(),this.initVector(),this.initFonts(t.font),this.initText(),this.initImages(),this.initOutline(),this.initMarkings(t),this.initTables(),this.initSubset(t),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info)for(let t in this.options.info){let e=this.options.info[t];this.info[t]=e}this.options.displayTitle&&(this._root.data.ViewerPreferences=this.ref({DisplayDocTitle:!0})),this._id=eg.generateFileID(this.info),this._security=eg.create(this,t),this._write(`%PDF-${this.version}`),this._write("%\xff\xff\xff\xff"),!1!==this.options.autoFirstPage&&this.addPage()}addPage(t){let e=this.options;e.bufferPages||this.flushPages();let i=t?.font;i&&this.font(i,t.fontFamily);let n=t?.fontSize;n&&this.fontSize(n),this.page=new K(this,t||e),this._pageBuffer.push(this.page);let s=this._root.data.Pages.data;return s.Kids.push(this.page.dictionary),s.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit
113("pageAdded"),this}continueOnNewPage(t){let e=this.endPageMarkings(this.page);return this.addPage(t??this.page._options),this.initPageMarkings(e),this}bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}switchToPage(t){let e;if(!(e=this._pageBuffer[t-this._pageBufferStart]))throw Error(`switchToPage(${t}) out of bounds, current buffer covers pages ${this._pageBufferStart} to ${this._pageBufferStart+this._pageBuffer.length-1}`);return this.page=e}flushPages(){let t=this._pageBuffer;for(let e of(this._pageBuffer=[],this._pageBufferStart+=t.length,t))this.endPageMarkings(e),e.end()}addNamedDestination(t,...e){0===e.length&&(e=["XYZ",null,null,null]),"XYZ"===e[0]&&null!==e[2]&&(e[2]=this.page.height-e[2]),e.unshift(this.page.dictionary),this._root.data.Names.data.Dests.add(t,e)}addNamedEmbeddedFile(t,e){if(!e)throw Error(`No ref specified for embedded file ${t}`);this._root.data.Names.data.EmbeddedFiles||(this._root.data.Names.data.EmbeddedFiles=new Y({limits:!1})),this._root.data.Names.data.EmbeddedFiles.add(t,e)}addNamedJavaScript(t,e){this._root.data.Names.data.JavaScript||(this._root.data.Names.data.JavaScript=new Y);let i={JS:new String(e),S:"JavaScript"};this._root.data.Names.data.JavaScript.add(t,i)}ref(t){let e=new O(this,this._offsets.length+1,t);return this._offsets.push(null),this._waiting++,e}_read(){}_write(t){t instanceof Uint8Array||(t=w(t+"\n")),this.push(t),this._offset+=t.length}addContent(t){return this.page.write(t),this}_refEnd(t){this._offsets[t.id-1]=t.offset,0==--this._waiting&&this._ended&&(this._finalize(),this._ended=!1)}end(){for(let t in this.flushPages(),this._info=this.ref(),this.info){let e=this.info[t];"string"==typeof e&&(e=new String(e));let i=this.ref(e);i.end(),this._info.data[t]=i}for(let t in this._info.end(),this._fontFamilies)this._fontFamilies[t].finalize();this.endOutline(),this.endMarkings(),this.subset&&this.endSubset(),this.endMetadata(),this._root.end(),this._root.data.Pages.end(),this._root.data.Names.end(),this.endAcroForm(),this._root.data.ViewerPreferences&&this._root.data.ViewerPreferences.end(),this._security&&this._security.end(),0===this._waiting?this._finalize():this._ended=!0}_finalize(){let t=this._offset;for(let t of(this._write("xref"),this._write(`0 ${this._offsets.length+1}`),this._write("0000000000 65535 f "),this._offsets))t=`0000000000${t}`.slice(-10),this._write(t+" 00000 n ");let e={Size:this._offsets.length+1,Root:this._root,Info:this._info,ID:[this._id,this._id]};this._security&&(e.Encrypt=this._security.dictionary),this._write("trailer"),this._write(B.convert(e)),this._write("startxref"),this._write(`${t}`),this._write("%%EOF"),this.push(null)}toString(){return"[object PDFDocument]"}}let iK=t=>{Object.assign(iN.prototype,t)};iK({initMetadata(){this.metadata=new iH},appendXML(t,e=!0){this.metadata.append(t,e)},_addInfo(){this.appendXML(` 114 <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> 115 <xmp:CreateDate>${this.info.CreationDate.toISOString().split(".")[0]+"Z"}</xmp:CreateDate> 116 <xmp:CreatorTool>${this.info.Creator}</xmp:CreatorTool> 117 </rdf:Description> 118 `),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML(` 119 <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> 120 `),this.info.Title&&this.appendXML(` 121 <dc:title> 122 <rdf:Alt> 123 <rdf:li xml:lang="x-default">${this.info.Title}</rdf:li> 124 </rdf:Alt> 125 </dc:title> 126 `),this.info.Author&&this.appendXML(` 127 <dc:creator> 128 <rdf:Seq> 129 <rdf:li>${this.info.Author}</rdf:li> 130 </rdf:Seq> 131 </dc:creator> 132 `),this.info.Subject&&this.appendXML(` 133 <dc:description> 134 <rdf:Alt> 135 <rdf:li xml:lang="x-default">${this.info.Subject}</rdf:li> 136 </rdf:Alt> 137 </dc:description> 138 `),this.appendXML(` 139 </rdf:Description> 140 `)),this.appendXML(` 141 <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> 142 <pdf:Producer>${this.info.Producer}</pdf:Producer>`,!1),this.info.Keywords&&this.appendXML(` 143 <pdf:Keywords>${this.info.Keywords}</pdf:Keywords>`,!1),this.appendXML(` 144 </rdf:Description> 145 `)},endMetadata(){this._addInfo(),this.metadata.end(),1.3!=this.version&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write(new TextEncoder().encode(this.metadata.getXML())),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}}),iK({initColor(){this.spotColors={},this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor(t){if("string"==typeof t){if("#"===t.charAt(0)){4===t.length&&(t=t.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));let e=parseInt(t.slice(1),16);t=[e>>16,e>>8&255,255&e]}else if(ev[t])t=ev[t];else if(this.spotColors[t])return this.spotColors[t]}return Array.isArray(t)?(3===t.length?t=t.map(t=>t/255):4===t.length&&(t=t.map(t=>t/100)),t):null},_setColor(t,e){return t instanceof eT?(t.apply(e),!0):Array.isArray(t)&&t[0]instanceof eM?(t[0].apply(e,t[1]),!0):this._setColorCore(t,e)},_setColorCore(t,e){if(!(t=this._normalizeColor(t)))return!1;let i=e?"SCN":"scn",n=this._getColorSpace(t);return this._setColorSpace(n,e),t instanceof x?(this.page.colorSpaces[t.id]=t.ref,this.addContent(`1 ${i}`)):this.addContent(`${t.join(" ")} ${i}`),!0},_setColorSpace(t,e){return this.addContent(`/${t} ${e?"CS":"cs"}`)},_getColorSpace:t=>t instanceof x?t.id:4===t.length?"DeviceCMYK":"DeviceRGB",fillColor(t,e){return this._setColor(t,!1)&&this.fillOpacity(e),this._fillColor=[t,e],this},strokeColor(t,e){return this._setColor(t,!0)&&this.strokeOpacity(e),this},opacity(t){return this._doOpacity(t,t),this},fillOpacity(t){return this._doOpacity(t,null),this},strokeOpacity(t){return this._doOpacity(null,t),this},_doOpacity(t,e){let i,n;if(null==t&&null==e)return;null!=t&&(t=Math.max(0,Math.min(1,t))),null!=e&&(e=Math.max(0,Math.min(1,e)));let s=`${t}_${e}`;if(this._opacityRegistry[s])[i,n]=this._opacityRegistry[s];else{i={Type:"ExtGState"},null!=t&&(i.ca=t),null!=e&&(i.CA=e),(i=this.ref(i)).end();let r=++this._opacityCount;n=`Gs${r}`,this._opacityRegistry[s]=[i,n]}return this.page.ext_gstates[n]=i,this.addContent(`/${n} gs`)},linearGradient(t,e,i,n){return new eP(this,t,e,i,n)},radialGradient(t,e,i,n,s,r){return new eF(this,t,e,i,n,s,r)},pattern(t,e,i,n){return new eM(this,t,e,i,n)},addSpotColor(t,e,i,n,s){let r=new x(this,t,e,i,n,s);return this.spotColors[t]=r,this}}),iK({initVector(){this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")}
145,restore(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath(){return this.addContent("h")},lineWidth(t){return this.addContent(`${eG(t)} w`)},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap(t){return"string"==typeof t&&(t=this._CAP_STYLES[t.toUpperCase()]),this.addContent(`${t} J`)},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin(t){return"string"==typeof t&&(t=this._JOIN_STYLES[t.toUpperCase()]),this.addContent(`${t} j`)},miterLimit(t){return this.addContent(`${eG(t)} M`)},dash(t,e={}){let i=t;if(Array.isArray(t)||(t=[t,e.space||t]),!t.every(t=>Number.isFinite(t)&&t>0))throw Error(`dash(${JSON.stringify(i)}, ${JSON.stringify(e)}) invalid, lengths must be numeric and greater than zero`);return t=t.map(eG).join(" "),this.addContent(`[${t}] ${eG(e.phase||0)} d`)},undash(){return this.addContent("[] 0 d")},moveTo(t,e){return this.addContent(`${eG(t)} ${eG(e)} m`)},lineTo(t,e){return this.addContent(`${eG(t)} ${eG(e)} l`)},bezierCurveTo(t,e,i,n,s,r){return this.addContent(`${eG(t)} ${eG(e)} ${eG(i)} ${eG(n)} ${eG(s)} ${eG(r)} c`)},quadraticCurveTo(t,e,i,n){return this.addContent(`${eG(t)} ${eG(e)} ${eG(i)} ${eG(n)} v`)},rect(t,e,i,n){return this.addContent(`${eG(t)} ${eG(e)} ${eG(i)} ${eG(n)} re`)},roundedRect(t,e,i,n,s){let r;null==s&&(s=0);let o=Math.min(.5*i,.5*n),a=Math.max(0,Math.min((r=Array.isArray(s)?s.slice(0,4):[s,s,s,s])[0]||0,o)),h=Math.max(0,Math.min(r[1]||0,o)),l=Math.max(0,Math.min(r[2]||0,o)),d=Math.max(0,Math.min(r[3]||0,o)),c=h*(1-ej),u=l*(1-ej),f=d*(1-ej),p=a*(1-ej);return this.moveTo(t+a,e),this.lineTo(t+i-h,e),h>0&&this.bezierCurveTo(t+i-c,e,t+i,e+c,t+i,e+h),this.lineTo(t+i,e+n-l),l>0&&this.bezierCurveTo(t+i,e+n-u,t+i-u,e+n,t+i-l,e+n),this.lineTo(t+d,e+n),d>0&&this.bezierCurveTo(t+f,e+n,t,e+n-f,t,e+n-d),this.lineTo(t,e+a),a>0&&this.bezierCurveTo(t,e+p,t+p,e,t+a,e),this.closePath()},ellipse(t,e,i,n){null==n&&(n=i),t-=i,e-=n;let s=i*ej,r=n*ej,o=t+2*i,a=e+2*n,h=t+i,l=e+n;return this.moveTo(t,l),this.bezierCurveTo(t,l-r,h-s,e,h,e),this.bezierCurveTo(h+s,e,o,l-r,o,l),this.bezierCurveTo(o,l+r,h+s,a,h,a),this.bezierCurveTo(h-s,a,t,l+r,t,l),this.closePath()},circle(t,e,i){return this.ellipse(t,e,i)},arc(t,e,i,n,s,r){null==r&&(r=!1);let o=2*Math.PI,a=.5*Math.PI,h=s-n;Math.abs(h)>o?h=o:0!==h&&r!==h<0&&(h=(r?-1:1)*o+h);let l=Math.ceil(Math.abs(h)/a),d=h/l,c=d/a*ej*i,u=n,f=-Math.sin(u)*c,p=Math.cos(u)*c,g=t+Math.cos(u)*i,A=e+Math.sin(u)*i;this.moveTo(g,A);for(let n=0;n<l;n++){let n=g+f,s=A+p;u+=d,g=t+Math.cos(u)*i,A=e+Math.sin(u)*i;let r=g-(f=-Math.sin(u)*c),o=A-(p=Math.cos(u)*c);this.bezierCurveTo(n,s,r,o,g,A)}return this},polygon(...t){for(let e of(this.moveTo(...t.shift()||[]),t))this.lineTo(...e||[]);return this.closePath()},path(t){return eW.apply(this,t),this},_windingRule:t=>/even-?odd/.test(t)?"*":"",fill(t,e){return/(even-?odd)|(non-?zero)/.test(t)&&(e=t,t=null),t&&this.fillColor(t),this.addContent(`f${this._windingRule(e)}`)},stroke(t){return t&&this.strokeColor(t),this.addContent("S")},fillAndStroke(t,e,i){null==e&&(e=t);let n=/(even-?odd)|(non-?zero)/;return n.test(t)&&(i=t,t=null),n.test(e)&&(i=e,e=t),t&&(this.fillColor(t),this.strokeColor(e)),this.addContent(`B${this._windingRule(i)}`)},clip(t){return this.addContent(`W${this._windingRule(t)} n`)},transform(t,e,i,n,s,r){if(1===t&&0===e&&0===i&&1===n&&0===s&&0===r)return this;let o=this._ctm,[a,h,l,d,c,u]=o;o[0]=a*t+l*e,o[1]=h*t+d*e,o[2]=a*i+l*n,o[3]=h*i+d*n,o[4]=a*s+l*r+c,o[5]=h*s+d*r+u;let f=[t,e,i,n,s,r].map(t=>eG(t)).join(" ");return this.addContent(`${f} cm`)},translate(t,e){return this.transform(1,0,0,1,t,e)},rotate(t,e={}){let i,n=t*Math.PI/180,s=Math.cos(n),r=Math.sin(n),o=i=0;if(null!=e.origin){[o,i]=e.origin;let t=o*s-i*r,n=o*r+i*s;o-=t,i-=n}return this.transform(s,r,-r,s,o,i)},scale(t,e,i={}){let n;null==e&&(e=t),"object"==typeof e&&(i=e,e=t);let s=n=0;return null!=i.origin&&([s,n]=i.origin,s-=t*s,n-=e*n),this.transform(t,0,0,e,s,n)}}),iK({initFonts(t="Helvetica",e=null,i=12){this._fontFamilies={},this._fontCount=0,this._fontSource=t,this._fontFamily=e,this._fontSize=i,this._font=null,this._remSize=i,this._registeredFonts={},t&&this.font(t,e)},font(t,e,i){var n,s;let r,o;if("number"==typeof e&&(i=e,e=null),"string"==typeof t&&this._registeredFonts[t]?(r=t,{src:t,family:e}=this._registeredFonts[t]):"string"!=typeof(r=e||t)&&(r=null),this._fontSource=t,this._fontFamily=e,null!=i&&this.fontSize(i),o=this._fontFamilies[r])return this._font=o,this;let a=`F${++this._fontCount}`;return(this._font=e8.open(this,t,e,a),(o=this._fontFamilies[this._font.name])&&(n=this._font,s=o,n.font._tables?.head?.checkSumAdjustment===s.font._tables?.head?.checkSumAdjustment&&JSON.stringify(n.font._tables?.name?.records)===JSON.stringify(s.font._tables?.name?.records)&&1))?this._font=o:(r&&(this._fontFamilies[r]=this._font),this._font.name&&!this._fontFamilies[this._font.name]&&(this._fontFamilies[this._font.name]=this._font),r||this._font.name&&this._fontFamilies[this._font.name]===this._font||(this._fontFamilies[this._font.id]=this._font)),this},fontSize(t){return this._fontSize=this.sizeToPoint(t),this},currentLineHeight(t){return this._font.lineHeight(this._fontSize,t)},registerFont(t,e,i){return this._registeredFonts[t]={src:e,family:i},this},sizeToPoint(t,e=0,i=this.page,n){let s;if(n||(n=this._fontSize),"number"!=typeof e&&(e=this.sizeToPoint(e)),void 0===t)return e;if("number"==typeof t)return t;if("boolean"==typeof t)return Number(t);let r=String(t).match(/((\d+)?(\.\d+)?)(em|in|px|cm|mm|pc|ex|ch|rem|vw|vh|vmin|vmax|%|pt)?/);if(!r)throw Error(`Unsupported size '${t}'`);switch(r[4]){case"em":s=this._fontSize;break;case"in":s=72;break;case"px":s=72*W;break;case"cm":s=72*$;break;case"mm":s=.1*$*72;break;case"pc":s=12;break;case"ex":s=this.currentLineHeight();break;case"ch":s=this.widthOfString("0");break;case"rem":s=this._remSize;break;case"vw":s=i.width/100;break;case"vh":s=i.height/100;break;case"vmin":s=Math.min(i.width,i.height)/100;break;case"vmax":s=Math.max(i.width,i.height)/100;break;case"%":s=n/100;break;default:s=1}return s*Number(r[1])}}),iK({initText(){this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap(t){return this._lineGap=t,this},moveDown(t){return null==t&&(t=1),this.y+=this.currentLineHeight(!0)*t+this._lineGap,this},moveUp(t){return null==t&&(t=1),this.y-=this.currentLineHeight(!0)*t+this._lineGap,this},_text(t,e,i,n,s){n=this._initOptions(e,i,n),t=null==t?"":`${t}`,n.wordSpacing&&(t=t.replace(/\s{2,}/g," "));let r=()=>{n.structParent&&n.structParent.add(this.struct(n.structType||"P",[this.markStructureContent(n.structType||"P")]))};if(0!==n.rotation&&(this.save(),this.rotate(-n.rotation,{origin:[this.x,this.y]})),n.width){let e=this._wrapper;e||((e=new e4(this,n)).on("line",s),e.on("firstLine",r)),this._wrapper=n.continued?e:null,this._textOptions=n.continued?n:null,e.wrap(t,n)}
145else for(let e of t.split("\n"))r(),s(e,n);return 0!==n.rotation&&this.restore(),this},text(t,e,i,n){return this._text(t,e,i,n,this._line)},widthOfString(t,e={}){let i=e.horizontalScaling||100;return(this._font.widthOfString(t,this._fontSize,e.features)+(e.characterSpacing||0)*(t.length-1))*i/100},boundsOfString(t,e,i,n){n=this._initOptions(e,i,n),{x:e,y:i}=this;let s=n.lineGap??this._lineGap??0,r=this.currentLineHeight(!0)+s,o=0;if(t=String(t??""),n.wordSpacing&&(t=t.replace(/\s{2,}/g," ")),n.width){let e=new e4(this,n);e.on("line",(t,e)=>{if(this.y+=r,(t=t.replace(/\n/g,"")).length){let i=e.wordSpacing??0,n=e.characterSpacing??0;if(e.width&&"justify"===e.align){let s=t.trim().split(/\s+/),r=this.widthOfString(t.replace(/\s+/g,""),e),o=this.widthOfString(" ")+n;i=Math.max(0,(e.lineWidth-r)/Math.max(1,s.length-1)-o)}o=Math.max(o,e.textWidth+i*(e.wordCount-1)+n*(t.length-1))}}),e.wrap(t,n)}else for(let e of t.split("\n")){let t=this.widthOfString(e,n);this.y+=r,o=Math.max(o,t)}let a=this.y-i;if(n.height&&(a=Math.min(a,n.height)),this.x=e,this.y=i,0===n.rotation)return{x:e,y:i,width:o,height:a};if(90===n.rotation)return{x:e,y:i-o,width:a,height:o};if(180===n.rotation)return{x:e-o,y:i-a,width:o,height:a};if(270===n.rotation)return{x:e-a,y:i,width:a,height:o};let h=G(n.rotation),l=j(n.rotation),d=e,c=i,u=e+o*h,f=i-o*l,p=e+o*h+a*l,g=i-o*l+a*h,A=e+a*l,m=i+a*h,b=Math.min(d,u,p,A),y=Math.min(c,f,g,m);return{x:b,y:y,width:Math.max(d,u,p,A)-b,height:Math.max(c,f,g,m)-y}},heightOfString(t,e){let{x:i,y:n}=this;(e=this._initOptions(e)).height=1/0;let s=e.lineGap||this._lineGap||0;this._text(t,this.x,this.y,e,()=>{this.y+=this.currentLineHeight(!0)+s});let r=this.y-n;return this.x=i,this.y=n,r},list(t,e,i,n){let s=(n=this._initOptions(e,i,n)).listType||"bullet",r=Math.round(this._font.ascender/1e3*this._fontSize),o=r/2,a=n.bulletRadius||r/3,h=n.textIndent||("bullet"===s?5*a:2*r),l=n.bulletIndent||("bullet"===s?8*a:2*r),d=1,c=[],u=[],f=[];var p=function(t){let e=1;for(let i=0;i<t.length;i++){let n=t[i];Array.isArray(n)?(d++,p(n),d--):(c.push(n),u.push(d),"bullet"!==s&&f.push(e++))}};p(t);let g=function(t,e){let i=new e4(this,n);i.on("line",this._line),d=1,i.once("firstLine",()=>{let t,r,c,p,g;if(n.structParent&&(n.structTypes?[r,c,p]=n.structTypes:[r,c,p]=["LI","Lbl","LBody"]),r?(t=this.struct(r),n.structParent.add(t)):n.structParent&&(t=n.structParent),(g=u[e++])!==d){let t=l*(g-d);this.x+=t,i.lineWidth-=t,d=g}switch(t&&(c||p)&&t.add(this.struct(c||p,[this.markStructureContent(c||p)])),s){case"bullet":this.circle(this.x-h+a,this.y+o,a),this.fill();break;case"numbered":case"lettered":var A=function(t,e){if("numbered"===e)return`${t}.`;var i=String.fromCharCode((t-1)%26+65),n=Array(Math.floor((t-1)/26+1)+1).join(i);return`${n}.`}(f[e-1],s);this._fragment(A,this.x-h,this.y,n)}t&&c&&p&&t.add(this.struct(p,[this.markStructureContent(p)])),t&&t!==n.structParent&&t.end()}),i.on("sectionStart",()=>{let t=h+l*(d-1);this.x+=t,i.lineWidth-=t}),i.on("sectionEnd",()=>{let t=h+l*(d-1);this.x-=t,i.lineWidth+=t}),i.wrap(t,n)};for(let t=0;t<c.length;t++)g.call(this,c[t],t);return this},_initOptions(t={},e,i={}){t&&"object"==typeof t&&(i=t,t=null);let n=Object.assign({},i);if(this._textOptions)for(let t in this._textOptions){let e=this._textOptions[t];"continued"!==t&&void 0===n[t]&&(n[t]=e)}return null!=t&&(this.x=t),null!=e&&(this.y=e),!1!==n.lineBreak&&(null==n.width&&(n.width=this.page.width-this.x-this.page.margins.right),n.width=Math.max(n.width,0)),n.columns||(n.columns=0),null==n.columnGap&&(n.columnGap=18),n.rotation=Number(n.rotation??0)%360,n.rotation<0&&(n.rotation+=360),n},_line(t,e={},i){if(this._fragment(t,this.x,this.y,e),i){let t=e.lineGap||this._lineGap||0;this.y+=this.currentLineHeight(!0)+t}else this.x+=this.widthOfString(t,e)},_fragment(t,e,i,n){let s,r,o,a,h,l;if(0===(t=`${t}`.replace(/\n/g,"")).length)return;let d=n.align||"left",c=n.wordSpacing||0,u=n.characterSpacing||0,f=n.horizontalScaling||100;if(n.width)switch(d){case"right":h=this.widthOfString(t.replace(/\s+$/,""),n),e+=n.lineWidth-h;break;case"center":e+=n.lineWidth/2-n.textWidth/2;break;case"justify":l=t.trim().split(/\s+/),h=this.widthOfString(t.replace(/\s+/g,""),n);var p=this.widthOfString(" ")+u;c=Math.max(0,(n.lineWidth-h)/Math.max(1,l.length-1)-p)}if("number"==typeof n.baseline)s=-n.baseline;else{switch(n.baseline){case"svg-middle":s=.5*this._font.xHeight;break;case"middle":case"svg-central":s=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":s=this._font.descender;break;case"alphabetic":s=0;break;case"mathematical":s=.5*this._font.ascender;break;case"hanging":s=.8*this._font.ascender;break;default:s=this._font.ascender}s=s/1e3*this._fontSize}let g=n.textWidth+c*(n.wordCount-1)+u*(t.length-1);if(null!=n.link){let t={};this._currentStructureElement&&"Link"===this._currentStructureElement.dictionary.data.S&&(t.structParent=this._currentStructureElement),this.link(e,i,g,this.currentLineHeight(),n.link,t)}if(null!=n.goTo&&this.goTo(e,i,g,this.currentLineHeight(),n.goTo),null!=n.destination&&this.addNamedDestination(n.destination,"XYZ",e,i,null),n.underline){this.save(),n.stroke||this.strokeColor(...this._fillColor||[]);let t=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(t);let s=i+this.currentLineHeight()-t;
145this.moveTo(e,s),this.lineTo(e+g,s),this.stroke(),this.restore()}if(n.strike){this.save(),n.stroke||this.strokeColor(...this._fillColor||[]);let t=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(t);let s=i+this.currentLineHeight()/2;this.moveTo(e,s),this.lineTo(e+g,s),this.stroke(),this.restore()}if(this.save(),n.oblique){let t;t="number"==typeof n.oblique?-Math.tan(n.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,e,i),this.transform(1,0,t,1,-t*s,0),this.transform(1,0,0,1,-e,-i)}this.transform(1,0,0,-1,0,this.page.height),i=this.page.height-i-s,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent(`1 0 0 1 ${e6(e)} ${e6(i)} Tm`),this.addContent(`/${this._font.id} ${e6(this._fontSize)} Tf`);let A=n.fill&&n.stroke?2:+!!n.stroke;if(A&&this.addContent(`${A} Tr`),u&&this.addContent(`${e6(u)} Tc`),100!==f&&this.addContent(`${f} Tz`),c)for(let e of(l=t.trim().split(/\s+/),c+=this.widthOfString(" ")+u,c*=1e3/this._fontSize,r=[],a=[],l)){let[t,i]=this._font.encode(e,n.features);r=r.concat(t);let s={},o=(a=a.concat(i))[a.length-1];for(let t in o){let e=o[t];s[t]=e}s.xAdvance+=c,a[a.length-1]=s}else[r,a]=this._font.encode(t,n.features);let m=this._fontSize/1e3,b=[],y=0,x=!1,_=t=>{if(y<t){let e=r.slice(y,t).join(""),i=a[t-1].xAdvance-a[t-1].advanceWidth;b.push(`<${e}> ${e6(-i)}`)}y=t},w=t=>{_(t),b.length>0&&(this.addContent(`[${b.join(" ")}] TJ`),b.length=0)};for(o=0;o<a.length;o++){let t=a[o];t.xOffset||t.yOffset?(w(o),this.addContent(`1 0 0 1 ${e6(e+t.xOffset*m)} ${e6(i+t.yOffset*m)} Tm`),w(o+1),x=!0):(x&&(this.addContent(`1 0 0 1 ${e6(e)} ${e6(i)} Tm`),x=!1),t.xAdvance-t.advanceWidth!=0&&_(o+1)),e+=t.xAdvance*m}w(o),this.addContent("ET"),this.restore()}}),iK({initImages(){this._imageRegistry={},this._imageCount=0},image(t,e,i,n={}){let s,r,o,a,h,l,d,c,u;"object"==typeof e&&(n=e,e=null);let f=n.ignoreOrientation||!1!==n.ignoreOrientation&&this.options.ignoreOrientation,p="number"!=typeof i;e=null!=(l=null!=e?e:n.x)?l:this.x,i=null!=(d=null!=i?i:n.y)?d:this.y,"string"==typeof t&&(a=this._imageRegistry[t]),a||(a=t.width&&t.height?t:this.openImage(t)),a.obj||a.embed(this),null==this.page.xobjects[a.label]&&(this.page.xobjects[a.label]=a.obj);let{width:g,height:A}=a;!f&&a.orientation>4&&([g,A]=[A,g]);let m=n.width||g,b=n.height||A;if(n.width&&!n.height){let t=m/g;m=g*t,b=A*t}else if(n.height&&!n.width){let t=b/A;m=g*t,b=A*t}else n.scale?(m=g*n.scale,b=A*n.scale):n.fit?([o,s]=n.fit,r=o/s,(h=g/A)>r?(m=o,b=o/h):(b=s,m=s*h)):n.cover&&([o,s]=n.cover,r=o/s,(h=g/A)>r?(b=s,m=s*h):(m=o,b=o/h));(n.fit||n.cover)&&("center"===n.align?e=e+o/2-m/2:"right"===n.align&&(e=e+o-m),"center"===n.valign?i=i+s/2-b/2:"bottom"===n.valign&&(i=i+s-b));let y=0,x=e,_=i,w=b,S=m;if(f)w=-b,_+=b;else switch(a.orientation){default:case 1:w=-b,_+=b;break;case 2:S=-m,w=-b,x+=m,_+=b;break;case 3:c=e,u=i,w=-b,x-=m,y=180;break;case 4:break;case 5:c=e,u=i,S=b,_-=w=m,y=90;break;case 6:c=e,u=i,S=b,w=-m,y=90;break;case 7:c=e,u=i,w=-m,S=-b,x+=b,y=90;break;case 8:c=e,u=i,S=b,w=-m,x-=b,_+=m,y=-90}return null!=n.link&&this.link(e,i,m,b,n.link),null!=n.goTo&&this.goTo(e,i,m,b,n.goTo),null!=n.destination&&this.addNamedDestination(n.destination,"XYZ",e,i,null),p&&(this.y+=b),this.save(),null!=n.opacity&&this._doOpacity(n.opacity,null),y&&this.rotate(y,{origin:[c,u]}),this.transform(S,0,0,w,x,_),this.addContent(`/${a.label} Do`),this.restore(),this},openImage(t){let e;return"string"==typeof t&&(e=this._imageRegistry[t]),e||(e=ii.open(t,`I${++this._imageCount}`),"string"==typeof t&&(this._imageRegistry[t]=e)),e}}),iK({annotate(t,e,i,n,s){let{structParent:r,color:o,...a}=s;a.Type="Annot",a.Rect=this._convertRect(t,e,i,n),a.Border=[0,0,0],"Link"===a.Subtype&&void 0===a.F&&(a.F=4),"Link"!==a.Subtype&&null==a.C&&(a.C=this._normalizeColor(o||[0,0,0])),"string"==typeof a.Dest&&(a.Dest=new String(a.Dest));let h=this.ref(a);if(this.page.annotations.push(h),"function"==typeof r?.add){let t=new is(h);r.add(t)}return h.end(),this},note(t,e,i,n,s,r){let o={...r,Subtype:"Text",Contents:new String(s)};return null==o.Name&&(o.Name="Comment"),null==o.color&&(o.color=[243,223,92]),this.annotate(t,e,i,n,o)},goTo(t,e,i,n,s,r){let o={...r,Subtype:"Link",A:this.ref({S:"GoTo",D:new String(s)})};return o.A.end(),this.annotate(t,e,i,n,o)},link(t,e,i,n,s,r){let o={...r,Subtype:"Link"};if("number"==typeof s){let t=this._root.data.Pages.data;if(s>=0&&s<t.Kids.length)o.A=this.ref({S:"GoTo",D:[t.Kids[s],"XYZ",null,null,null]}),o.A.end();else throw Error(`The document has no page ${s}`)}else o.A=this.ref({S:"URI",URI:new String(s)}),o.A.end();return o.structParent&&!o.Contents&&(o.Contents=new String("")),this.annotate(t,e,i,n,o)},_markup(t,e,i,n,s){let[r,o,a,h]=this._convertRect(t,e,i,n);return this.annotate(t,e,i,n,{...s,QuadPoints:[r,h,a,h,r,o,a,o],Contents:new String})},highlight(t,e,i,n,s){let r={...s,Subtype:"Highlight"};return null==r.color&&(r.color=[241,238,148]),this._markup(t,e,i,n,r)},underline(t,e,i,n,s){let r={...s,Subtype:"Underline"};return this._markup(t,e,i,n,r)},strike(t,e,i,n,s){let r={...s,Subtype:"StrikeOut"};return this._markup(t,e,i,n,r)}
145,lineAnnotation(t,e,i,n,s){let r={...s,Subtype:"Line",Contents:new String,L:[t,this.page.height-e,i,this.page.height-n]};return this.annotate(t,e,i,n,r)},rectAnnotation(t,e,i,n,s){let r={...s,Subtype:"Square",Contents:new String};return this.annotate(t,e,i,n,r)},ellipseAnnotation(t,e,i,n,s){let r={...s,Subtype:"Circle",Contents:new String};return this.annotate(t,e,i,n,r)},textAnnotation(t,e,i,n,s,r){let o={...r,Subtype:"FreeText",Contents:new String(s),DA:new String};return this.annotate(t,e,i,n,o)},fileAnnotation(t,e,i,n,s={},r){let o=this.file(s.src,Object.assign({hidden:!0},s)),a={...r,Subtype:"FileAttachment",FS:o};return a.Contents?a.Contents=new String(a.Contents):o.data.Desc&&(a.Contents=new String(o.data.Desc)),this.annotate(t,e,i,n,a)},_convertRect(t,e,i,n){let s=e;e+=n;let r=t+i,[o,a,h,l,d,c]=this._ctm;return e=a*(t=o*t+h*e+d)+l*e+c,s=a*(r=o*r+h*s+d)+l*s+c,[t,e,r,s]}}),iK({initOutline(){this.outline=new io(this,null,null,null)},endOutline(){if(this.outline.endOutline(),this.outline.children.length>0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode=this._root.data.PageMode||"UseOutlines"}}),iK({initMarkings(t){this.structChildren=[],t.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent(t,e=null){if("Artifact"===t||e&&e.mcid){let t=0;
145for(this.page.markings.forEach(e=>{(t||e.structContent||"Artifact"===e.tag)&&t++});t--;)this.endMarkedContent()}if(!e)return this.page.markings.push({tag:t}),this.addContent(`/${t} BMC`),this;this.page.markings.push({tag:t,options:e});let i={};return void 0!==e.mcid&&(i.MCID=e.mcid),"Artifact"===t&&("string"==typeof e.type&&(i.Type=e.type),Array.isArray(e.bbox)&&(i.BBox=[e.bbox[0],this.page.height-e.bbox[3],e.bbox[2],this.page.height-e.bbox[1]]),Array.isArray(e.attached)&&e.attached.every(t=>"string"==typeof t)&&(i.Attached=e.attached)),"Span"===t&&(e.lang&&(i.Lang=new String(e.lang)),e.alt&&(i.Alt=new String(e.alt)),e.expanded&&(i.E=new String(e.expanded)),e.actual&&(i.ActualText=new String(e.actual))),this.addContent(`/${t} ${B.convert(i)} BDC`),this},markStructureContent(t,e={}){let i=this.getStructParentTree().get(this.page.structParentTreeKey),n=i.length;i.push(null),this.markContent(t,{...e,mcid:n});let s=new ia(this.page.dictionary,n);return this.page.markings.slice(-1)[0].structContent=s,s},endMarkedContent(){return this.page.markings.pop(),this.addContent("EMC"),this._textOptions&&(delete this._textOptions.link,delete this._textOptions.goTo,delete this._textOptions.destination,delete this._textOptions.underline,delete this._textOptions.strike),this},struct(t,e={},i=null){return new ih(this,t,e,i)},addStructure(t){let e=this.getStructTreeRoot();return t.setParent(e),t.setAttached(),this.structChildren.push(t),e.data.K||(e.data.K=[]),e.data.K.push(t.dictionary),this},initPageMarkings(t){t.forEach(t=>{if(t.structContent){let e=t.structContent,i=this.markStructureContent(t.tag,t.options);e.push(i),this.page.markings.slice(-1)[0].structContent=e}else this.markContent(t.tag,t.options)})},endPageMarkings(t){let e=t.markings;return e.forEach(()=>t.write("EMC")),t.markings=[],e},getMarkInfoDictionary(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},hasMarkInfoDictionary(){return!!this._root.data.MarkInfo},getStructTreeRoot(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new il,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey(){this.getMarkInfoDictionary();let t=this.getStructTreeRoot(),e=t.data.ParentTreeNextKey++;return t.data.ParentTree.add(e,[]),e},endMarkings(){let t=this._root.data.StructTreeRoot;t&&(t.end(),this.structChildren.forEach(t=>t.end())),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}}),iK({initForm(){if(!this._font)throw Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();let t={Fields:[],NeedAppearances:!0,DA:new String(`/${this._font.id} 0 Tf 0 g`),DR:{Font:{}}};t.DR.Font[this._font.id]=this._font.ref();let e=this.ref(t);return this._root.data.AcroForm=e,this},endAcroForm(){if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw Error("No fonts specified for PDF form");let t=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(e=>{t[e]=this._acroform.fonts[e]}),this._root.data.AcroForm.data.Fields.forEach(t=>{this._endChild(t)}),this._root.data.AcroForm.end()}return this},_endChild(t){return Array.isArray(t.data.Kids)&&(t.data.Kids.forEach(t=>{this._endChild(t)}),t.end()),this},formField(t,e={}){let i=this._fieldDict(t,null,e),n=this.ref(i);return this._addToParent(n),n},formAnnotation(t,e,i,n,s,r,o={}){let a=this._fieldDict(t,e,o);a.Subtype="Widget",void 0===a.F&&(a.F=4),this.annotate(i,n,s,r,a);let h=this.page.annotations[this.page.annotations.length-1];return this._addToParent(h)},formText(t,e,i,n,s,r={}){return this.formAnnotation(t,"text",e,i,n,s,r)},formPushButton(t,e,i,n,s,r={}){return this.formAnnotation(t,"pushButton",e,i,n,s,r)},formCombo(t,e,i,n,s,r={}){return this.formAnnotation(t,"combo",e,i,n,s,r)},formList(t,e,i,n,s,r={}){return this.formAnnotation(t,"list",e,i,n,s,r)},formRadioButton(t,e,i,n,s,r={}){return this.formAnnotation(t,"radioButton",e,i,n,s,r)},formCheckbox(t,e,i,n,s,r={}){return this.formAnnotation(t,"checkbox",e,i,n,s,r)},_addToParent(t){let e=t.data.Parent;return e?(e.data.Kids||(e.data.Kids=[]),e.data.Kids.push(t)):this._root.data.AcroForm.data.Fields.push(t),this},_fieldDict(t,e,i={}){if(!this._acroform)throw Error("Call document.initForm() method before adding form elements to document");let n={},s=i.Ff??0;if("text"===e)n.FT="Tx";else if("pushButton"===e)n.FT="Btn",s|=id.pushButton;else if("radioButton"===e)n.FT="Btn",s|=id.radioButton;else if("checkbox"===e)n.FT="Btn";else if("combo"===e)n.FT="Ch",s|=id.combo;else if("list"===e)n.FT="Ch";else if(e)throw Error(`Invalid form annotation type '${e}'`);
145Object.keys(i).forEach(t=>{id[t]&&i[t]&&(s|=id[t])}),0!==s&&(n.Ff=s);let r=ic[i.align];return"number"==typeof r&&0!==r&&(n.Q=r),this._mapFont(i,n),Array.isArray(i.select)&&i.select.length&&(n.Opt=i.select.map(t=>"string"==typeof t?new String(t):t)),Object.keys(iu).forEach(t=>{if(t in i){let e=i[t]??"";n[iu[t]]="string"==typeof e?new String(e):e}}),i.MK?.CA&&(n.MK={CA:new String(i.MK.CA)}),i.label&&(n.MK=i.MK??{},n.MK.CA=new String(i.label)),this._mapColors(i,n),!function(t,e){let i=t.format;if(i?.type){let n,s,r="";if(void 0!==ip[i.type])n="AFSpecial_Keystroke",s="AFSpecial_Format",r=ip[i.type];else{let t=i.type.charAt(0).toUpperCase()+i.type.slice(1);if(n=`AF${t}_Keystroke`,s=`AF${t}_Format`,"date"===i.type)n+="Ex",s+="Ex",r='"'+String(i.param)+'"';else if("time"===i.type)r=String(i.param);else if("number"===i.type){let t=Object.assign({},ig.number,i);r=String([String(t.nDec),t.sepComma?"0":"1",'"'+t.negStyle+'"',"null",'"'+t.currency+'"',String(t.currencyPrepend)].join(","))}else if("percent"===i.type){let t=Object.assign({},ig.percent,i);r=String([String(t.nDec),t.sepComma?"0":"1"].join(","))}}e.AA=t.AA??{},e.AA.K={S:"JavaScript",JS:new String(`${n}(${r});`)},e.AA.F={S:"JavaScript",JS:new String(`${s}(${r});`)}}}(i,n),n.T=new String(t),i.parent&&(n.Parent=i.parent),n},_mapColors(t,e){let i=this._normalizeColor(t.backgroundColor);i&&(e.MK=e.MK?e.MK:{},e.MK.BG=i),(i=this._normalizeColor(t.borderColor))&&(e.MK||(e.MK={}),e.MK.BC=i)},_mapFont(t,e){let{_acroform:i,_font:n}=this;if(null==i.fonts[n.id]&&(i.fonts[n.id]=n.ref()),i.defaultFont!==n.name){e.DR={Font:{}};let i=t.fontSize||0;e.DR.Font[n.id]=n.ref(),e.DA=new String(`/${n.id} ${i} Tf 0 g`)}}}),iK({file(t,e={}){var i,n,s;let r,o;e.name=e.name||t,e.relationship=e.relationship||"Unspecified";let a={Type:"EmbeddedFile",Params:{}};if(!t)throw Error("No src specified");if(t instanceof Uint8Array)r=t;else if(t instanceof ArrayBuffer)r=new Uint8Array(t);else{let e=/^data:(.*?);base64,(.*)$/.exec(t);if(e)e[1]&&(a.Subtype=E(e[1])),r=S(e[2]);else{if(!(r=eY.readFileSync(t)))throw Error(`Could not read contents of file at filepath ${t}`);let{birthtime:e,ctime:i}=eY.statSync(t);a.Params.CreationDate=e,a.Params.ModDate=i}}e.creationDate instanceof Date&&(a.Params.CreationDate=e.creationDate),e.modifiedDate instanceof Date&&(a.Params.ModDate=e.modifiedDate),e.type&&(a.Subtype=E(e.type));let h=(i=new Uint8Array(r),(0,d.My)(tv(i)));a.Params.CheckSum=new String(h),a.Params.Size=r.byteLength,this._fileRegistry||(this._fileRegistry={});let l=this._fileRegistry[e.name];l&&(n=a,s=l,n.Subtype===s.Subtype&&n.Params.CheckSum.toString()===s.Params.CheckSum.toString()&&n.Params.Size===s.Params.Size&&n.Params.CreationDate.getTime()===s.Params.CreationDate.getTime()&&(void 0===n.Params.ModDate&&void 0===s.Params.ModDate||n.Params.ModDate.getTime()===s.Params.ModDate.getTime()))?o=l.ref:((o=this.ref(a)).end(r),this._fileRegistry[e.name]={...a,ref:o});let c={Type:"Filespec",AFRelationship:e.relationship,F:new String(e.name),EF:{F:o},UF:new String(e.name)};e.description&&(c.Desc=new String(e.description));let u=this.ref(c);return u.end(),e.hidden||this.addNamedEmbeddedFile(e.name,u),this._root.data.AF?this._root.data.AF.push(u):this._root.data.AF=[u],u}}),iK({_importSubset(t){Object.assign(this,t)},initSubset(t){switch(t.subset){case"PDF/A-1":case"PDF/A-1a":case"PDF/A-1b":case"PDF/A-2":case"PDF/A-2a":case"PDF/A-2b":case"PDF/A-3":case"PDF/A-3a":case"PDF/A-3b":this._importSubset(im),this.initPDFA(t.subset);break;case"PDF/UA":this._importSubset(ib),this.initPDFUA()}}}),iK({initTables(){this._tableIndex=0},table(t){return new ij(this,t)}}),!function(t,e,i={}){if("string"!=typeof t)throw TypeError(`Expected a string for path, got ${typeof t}`);if(void 0===e)return eN.delete(t);if(!(e instanceof Uint8Array))throw TypeError(`Expected a Uint8Array or undefined for data, got ${typeof e}`);if(null===i||"object"!=typeof i)throw TypeError("Expected options to be an object");let n=Date.now();eN.set(t,{data:e,birthtime:eK(i.birthtime,"birthtime",n),ctime:eK(i.ctime,"ctime",n)})}(iA,S("AAAL0AAAAAACAAAAbW50clJHQiBYWVogB98AAgAPAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAPbWAAEAAAAA0y0AAAAAPQ6y3q6Tl76bZybOjApDzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQZGVzYwAAAUQAAABjYlhZWgAAAagAAAAUYlRSQwAAAbwAAAgMZ1RSQwAAAbwAAAgMclRSQwAAAbwAAAgMZG
1451kZAAACcgAAACIZ1hZWgAAClAAAAAUbHVtaQAACmQAAAAUbWVhcwAACngAAAAkYmtwdAAACpwAAAAUclhZWgAACrAAAAAUdGVjaAAACsQAAAAMdnVlZAAACtAAAACHd3RwdAAAC1gAAAAUY3BydAAAC2wAAAA3Y2hhZAAAC6QAAAAsZGVzYwAAAAAAAAAJc1JHQjIwMTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAQAAAAABQAKAA8AFAAZAB4AIwAoAC0AMgA3ADsAQABFAEoATwBUAFkAXgBjAGgAbQByAHcAfACBAIYAiwCQAJUAmgCfAKQAqQCuALIAtwC8AMEAxgDLANAA1QDbAOAA5QDrAPAA9gD7AQEBBwENARMBGQEfASUBKwEyATgBPgFFAUwBUgFZAWABZwFuAXUBfAGDAYsBkgGaAaEBqQGxAbkBwQHJAdEB2QHhAekB8gH6AgMCDAIUAh0CJgIvAjgCQQJLAlQCXQJnAnECegKEAo4CmAKiAqwCtgLBAssC1QLgAusC9QMAAwsDFgMhAy0DOANDA08DWgNmA3IDfgOKA5YDogOuA7oDxwPTA+AD7AP5BAYEEwQgBC0EOwRIBFUEYwRxBH4EjASaBKgEtgTEBNME4QTwBP4FDQUcBSsFOgVJBVgFZwV3BYYFlgWmBbUFxQXVBeUF9gYGBhYGJwY3BkgGWQZqBnsGjAadBq8GwAbRBuMG9QcHBxkHKwc9B08HYQd0B4YHmQesB78H0gflB/gICwgfCDIIRghaCG4IggiWCKoIvgjSCOcI+wkQCSUJOglPCWQJeQmPCaQJugnPCeUJ+woRCicKPQpUCmoKgQqYCq4KxQrcCvMLCwsiCzkLUQtpC4ALmAuwC8gL4Qv5DBIMKgxDDFwMdQyODKcMwAzZDPMNDQ0mDUANWg10DY4NqQ3DDd4N+A4TDi4OSQ5kDn8Omw62DtIO7g8JDyUPQQ9eD3oPlg+zD88P7BAJECYQQxBhEH4QmxC5ENcQ9RETETERTxFtEYwRqhHJEegSBxImEkUSZBKEEqMSwxLjEwMTIxNDE2MTgxOkE8UT5RQGFCcUSRRqFIsUrRTOFPAVEhU0FVYVeBWbFb0V4BYDFiYWSRZsFo8WshbWFvoXHRdBF2UXiReuF9IX9xgbGEAYZRiKGK8Y1Rj6GSAZRRlrGZEZtxndGgQaKhpRGncanhrFGuwbFBs7G2MbihuyG9ocAhwqHFIcexyjHMwc9R0eHUcdcB2ZHcMd7B4WHkAeah6UHr4e6R8THz4faR+UH78f6iAVIEEgbCCYIMQg8CEcIUghdSGhIc4h+yInIlUigiKvIt0jCiM4I2YjlCPCI/AkHyRNJHwkqyTaJQklOCVoJZclxyX3JicmVyaHJrcm6CcYJ0kneierJ9woDSg/KHEooijUKQYpOClrKZ0p0CoCKjUqaCqbKs8rAis2K2krnSvRLAUsOSxuLKIs1y0MLUEtdi2rLeEuFi5MLoIuty7uLyQvWi+RL8cv/jA1MGwwpDDbMRIxSjGCMbox8jIqMmMymzLUMw0zRjN/M7gz8TQrNGU0njTYNRM1TTWHNcI1/TY3NnI2rjbpNyQ3YDecN9c4FDhQOIw4yDkFOUI5fzm8Ofk6Njp0OrI67zstO2s7qjvoPCc8ZTykPOM9Ij1hPaE94D4gPmA+oD7gPyE/YT+iP+JAI0BkQKZA50EpQWpBrEHuQjBCckK1QvdDOkN9Q8BEA0RHRIpEzkUSRVVFmkXeRiJGZ0arRvBHNUd7R8BIBUhLSJFI10kdSWNJqUnwSjdKfUrESwxLU0uaS+JMKkxyTLpNAk1KTZNN3E4lTm5Ot08AT0lPk0/dUCdQcVC7UQZRUFGbUeZSMVJ8UsdTE1NfU6pT9lRCVI9U21UoVXVVwlYPVlxWqVb3V0RXklfgWC9YfVjLWRpZaVm4WgdaVlqmWvVbRVuVW+VcNVyGXNZdJ114XcleGl5sXr1fD19hX7NgBWBXYKpg/GFPYaJh9WJJYpxi8GNDY5dj62RAZJRk6WU9ZZJl52Y9ZpJm6Gc9Z5Nn6Wg/aJZo7GlDaZpp8WpIap9q92tPa6dr/2xXbK9tCG1gbbluEm5rbsRvHm94b9FwK3CGcOBxOnGVcfByS3KmcwFzXXO4dBR0cHTMdSh1hXXhdj52m3b4d1Z3s3gReG54zHkqeYl553pGeqV7BHtje8J8IXyBfOF9QX2hfgF+Yn7CfyN/hH/lgEeAqIEKgWuBzYIwgpKC9INXg7qEHYSAhOOFR4Wrhg6GcobXhzuHn4gEiGmIzokziZmJ/opkisqLMIuWi/yMY4zKjTGNmI3/jmaOzo82j56QBpBukNaRP5GokhGSepLjk02TtpQglIqU9JVflcmWNJaflwqXdZfgmEyYuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//9kZXNjAAAAAAAAAC5JRUMgNjE5NjYtMi0xIERlZmF1bHQgUkdCIENvbG91ciBTcGFjZSAtIHNSR0IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAAAAAUAAAAAAAAG1lYXMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlhZWiAAAAAAAAAAngAAAKQAAACHWFlaIAAAAAAAAG+iAAA49QAAA5BzaWcgAAAAAENSVCBkZXNjAAAAAAAAAC1SZWZlcmVuY2UgVmlld2luZyBDb25kaXRpb24gaW4gSUVDIDYxOTY2LTItMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y10ZXh0AAAAAENvcHlyaWdodCBJbnRlcm5hdGlvbmFsIENvbG9yIENvbnNvcnRpdW0sIDIwMTUAAHNmMzIAAAAAAAEMRAAABd////MmAAAHlAAA/Y////uh///9ogAAA9sAAMB1"))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.