@adnsistemas/pdf-lib 2.6.3 → 2.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/api/PDFDocument.d.ts.map +1 -1
- package/cjs/api/PDFDocument.js +9 -5
- package/cjs/api/PDFDocument.js.map +1 -1
- package/cjs/api/PDFDocumentOptions.d.ts +1 -0
- package/cjs/api/PDFDocumentOptions.d.ts.map +1 -1
- package/dist/pdf-lib.esm.js +9 -5
- package/dist/pdf-lib.esm.js.map +1 -1
- package/dist/pdf-lib.esm.min.js +1 -1
- package/dist/pdf-lib.esm.min.js.map +1 -1
- package/dist/pdf-lib.js +9 -5
- package/dist/pdf-lib.js.map +1 -1
- package/dist/pdf-lib.min.js +1 -1
- package/dist/pdf-lib.min.js.map +1 -1
- package/es/api/PDFDocument.d.ts.map +1 -1
- package/es/api/PDFDocument.js +9 -5
- package/es/api/PDFDocument.js.map +1 -1
- package/es/api/PDFDocumentOptions.d.ts +1 -0
- package/es/api/PDFDocumentOptions.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/PDFDocument.ts +10 -4
- package/src/api/PDFDocumentOptions.ts +1 -0
- package/ts3.4/cjs/api/PDFDocumentOptions.d.ts +1 -0
- package/ts3.4/es/api/PDFDocumentOptions.d.ts +1 -0
package/dist/pdf-lib.min.js
CHANGED
|
@@ -15,5 +15,5 @@ return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();functio
|
|
|
15
15
|
|
|
16
16
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
17
17
|
*/
|
|
18
|
-
return function(t){var r=e,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.algo,a=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=o.create([0,1518500249,1859775393,2400959708,2840853838]),u=o.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,s,f,w,x,F,S,k,C,A,T,D=this._hash.words,O=d.words,B=u.words,N=a.words,P=c.words,R=l.words,E=h.words;for(F=i=D[0],S=s=D[1],k=f=D[2],C=w=D[3],A=x=D[4],r=0;r<80;r+=1)T=i+e[t+N[r]]|0,T+=r<16?p(s,f,w)+O[0]:r<32?g(s,f,w)+O[1]:r<48?m(s,f,w)+O[2]:r<64?b(s,f,w)+O[3]:y(s,f,w)+O[4],T=(T=v(T|=0,R[r]))+x|0,i=x,x=w,w=v(f,10),f=s,s=T,T=F+e[t+P[r]]|0,T+=r<16?y(S,k,C)+B[0]:r<32?b(S,k,C)+B[1]:r<48?m(S,k,C)+B[2]:r<64?g(S,k,C)+B[3]:p(S,k,C)+B[4],T=(T=v(T|=0,E[r]))+A|0,F=A,A=C,C=v(k,10),k=S,S=T;T=D[1]+f+C|0,D[1]=D[2]+w+A|0,D[2]=D[3]+x+F|0,D[3]=D[4]+i+S|0,D[4]=D[0]+s+k|0,D[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function b(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function v(e,t){return e<<t|e>>>32-t}r.RIPEMD160=i._createHelper(f),r.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160}(ga())}(Qa)),ec(),tc||(tc=1,function(e,t){e.exports=function(e){return n=(r=(t=e).lib).Base,o=r.WordArray,s=(i=t.algo).SHA256,a=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=a.create(r.hasher,e),i=o.create(),s=o.create([1]),c=i.words,l=s.words,h=r.keySize,d=r.iterations;c.length<h;){var u=n.update(t).finalize(s);n.reset();for(var f=u.words,p=f.length,g=u,m=1;m<d;m++){g=n.finalize(g),n.reset();for(var b=g.words,y=0;y<p;y++)f[y]^=b[y]}i.concat(u),l[0]++}return i.sigBytes=4*h,i}}),t.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)},e.PBKDF2;var t,r,n,o,i,s,a,c}(ga(),Ua(),ec())}(rc)),ic(),cc(),dc(),pc(),bc(),wc(),xc||(xc=1,function(e,t){e.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(ga(),cc())}(Fc)),Sc||(Sc=1,function(e,t){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(ga(),cc())}(kc)),Cc||(Cc=1,function(e,t){e.exports=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(ga(),cc())}(Ac)),Tc||(Tc=1,function(e,t){e.exports=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(ga(),cc())}(Dc)),Oc||(Oc=1,function(e,t){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding}(ga(),cc())}(Bc)),Nc||(Nc=1,function(e,t){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(ga(),cc())}(Pc)),Rc||(Rc=1,function(e,t){e.exports=function(e){return r=(t=e).lib.CipherParams,n=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}},e.format.Hex;var t,r,n}(ga(),cc())}(Ec)),Mc||(Mc=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],s=[],a=[],c=[],l=[],h=[],d=[],u=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var g=e[r],m=e[g],b=e[m],y=257*e[p]^16843008*p;s[r]=y<<24|y>>>8,a[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,l[r]=y,y=16843009*b^65537*m^257*g^16843008*r,h[p]=y<<24|y>>>8,d[p]=y<<16|y>>>16,u[p]=y<<8|y>>>24,f[p]=y,r?(r=g^e[e[e[b^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],s=0;s<n;s++)s<r?i[s]=t[s]:(l=i[s-1],s%r?r>6&&s%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[s/r|0]<<24),i[s]=i[s-r]^l);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:h[o[l>>>24]]^d[o[l>>>16&255]]^u[o[l>>>8&255]]^f[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,h,d,u,f,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var c=this._nRounds,l=e[t]^r[0],h=e[t+1]^r[1],d=e[t+2]^r[2],u=e[t+3]^r[3],f=4,p=1;p<c;p++){var g=n[l>>>24]^o[h>>>16&255]^i[d>>>8&255]^s[255&u]^r[f++],m=n[h>>>24]^o[d>>>16&255]^i[u>>>8&255]^s[255&l]^r[f++],b=n[d>>>24]^o[u>>>16&255]^i[l>>>8&255]^s[255&h]^r[f++],y=n[u>>>24]^o[l>>>16&255]^i[h>>>8&255]^s[255&d]^r[f++];l=g,h=m,d=b,u=y}g=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^r[f++],m=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^r[f++],b=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[f++],y=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^r[f++],e[t]=g,e[t+1]=m,e[t+2]=b,e[t+3]=y},keySize:8});t.AES=r._createHelper(g)}(),e.AES}(ga(),Ta(),Ra(),ic(),cc())}(jc)),Uc(),Ic||(Ic=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var s=o%r,a=t[s>>>2]>>>24-s%4*8&255;i=(i+n[o]+a)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var s=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(s)}(),e.RC4}(ga(),Ta(),Ra(),ic(),cc())}(Vc)),Lc||(Lc=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=l>>>16|4294901760&h,u=h<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=h,o[3]^=u,o[4]^=l,o[5]^=d,o[6]^=h,o[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(a)}(),e.Rabbit}(ga(),Ta(),Ra(),ic(),cc())}(Wc)),Hc||(Hc=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=l>>>16|4294901760&h,u=h<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=h,n[3]^=u,n[4]^=l,n[5]^=d,n[6]^=h,n[7]^=u,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(a)}(),e.RabbitLegacy}(ga(),Ta(),Ra(),ic(),cc())}(Gc)),Zc())}(ua);var Yc=de(ua.exports);class Jc{static create(e,t){return new Jc(e,t)}constructor(e,t){if(!t.ownerPassword&&!t.userPassword)throw new Error("Either an owner password or a user password must be specified.");this.context=e,this.initialize(t)}initialize(e){let t;switch(this.id=Qc(),this.context.header.getVersionString()){case"1.4":case"1.5":t=2;break;case"1.6":case"1.7":t=4;break;case"1.7ext3":t=5;break;default:t=1}switch(t){case 1:case 2:case 4:this.encryption=this.initializeV1V2V4(t,e);break;case 5:this.encryption=this.initializeV5(e)}}initializeV1V2V4(e,t){const r={Filter:"Standard"};let n,o;switch(e){case 1:n=2,this.keyBits=40,o=$c(t.permissions);break;case 2:n=3,this.keyBits=128,o=el(t.permissions);break;case 4:n=4,this.keyBits=128,o=el(t.permissions);break;default:throw new Error(`Unsupported algorithm '${e}'.`)}const i=dl(t.userPassword),s=t.ownerPassword?dl(t.ownerPassword):i,a=nl(n,this.keyBits,i,s);let c;return this.encryptionKey=ol(n,this.keyBits,this.id,i,a,o),c=2===n?tl(this.encryptionKey):rl(this.id,this.encryptionKey),r.V=e,e>=2&&(r.Length=this.keyBits),4===e&&(r.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},r.StmF="StdCF",r.StrF="StdCF"),r.R=n,r.O=pl(a),r.U=pl(c),r.P=o,r}initializeV5(e){const t={Filter:"Standard"};this.keyBits=256,this.encryptionKey=ll(_c);const r=ul(e.userPassword),n=il(r,_c),o=Yc.lib.WordArray.create(n.words.slice(10,12),8),i=sl(r,o,this.encryptionKey),s=e.ownerPassword?ul(e.ownerPassword):r,a=al(s,n,_c),c=Yc.lib.WordArray.create(a.words.slice(10,12),8),l=cl(s,c,n,this.encryptionKey),h=el(e.permissions),d=hl(h,this.encryptionKey,_c);return 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=pl(a),t.OE=pl(l),t.U=pl(n),t.UE=pl(i),t.P=h,t.Perms=pl(d),t}getEncryptFn(e,t){const r=this.encryption.V;let n,o;if(r<5){if(n=this.encryptionKey.clone().concat(Yc.lib.WordArray.create([(255&e)<<24|(65280&e)<<8|e>>8&65280|255&t,(65280&t)<<16],5)),1===r||2===r)return o=Yc.MD5(n),o.sigBytes=Math.min(16,this.keyBits/8+5),e=>pl(Yc.RC4.encrypt(Yc.lib.WordArray.create(e),o).ciphertext);4===r&&(o=Yc.MD5(n.concat(Yc.lib.WordArray.create([1933667412],4))))}else{if(5!==r)throw new Error(`Unsupported algorithm '${r}'.`);o=this.encryptionKey}const i=_c(16),s={mode:Yc.mode.CBC,padding:Yc.pad.Pkcs7,iv:i};return e=>pl(i.clone().concat(Yc.AES.encrypt(Yc.lib.WordArray.create(e),o,s).ciphertext))}encrypt(){const e=this.context.obj([this.id,this.id]);this.context.trailerInfo.ID=e;const t=this.context.obj(this.encryption);return this.context.trailerInfo.Encrypt=this.context.register(t),this}}const Qc=()=>pl(Yc.MD5(Date.now().toString())),_c=e=>Yc.lib.WordArray.random(e),$c=(e={})=>{let t=-64;return e.printing&&(t|=4),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),t},el=(e={})=>{let t=-3904;return("lowResolution"===e.printing||e.printing)&&(t|=4),"highResolution"===e.printing&&(t|=2052),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),e.fillingForms&&(t|=256),e.contentAccessibility&&(t|=512),e.documentAssembly&&(t|=1024),t},tl=e=>Yc.RC4.encrypt(dl(),e).ciphertext,rl=(e,t)=>{const r=t.clone();let n=Yc.MD5(dl().concat(Yc.lib.WordArray.create(e)));for(let e=0;e<20;e++){const o=Math.ceil(r.sigBytes/4);for(let n=0;n<o;n++)r.words[n]=t.words[n]^(e|e<<8|e<<16|e<<24);n=Yc.RC4.encrypt(n,r).ciphertext}return n.concat(Yc.lib.WordArray.create(null,16))},nl=(e,t,r,n)=>{let o=n,i=e>=3?51:1;for(let e=0;e<i;e++)o=Yc.MD5(o);const s=o.clone();s.sigBytes=t/8;let a=r;i=e>=3?20:1;for(let e=0;e<i;e++){const t=Math.ceil(s.sigBytes/4);for(let r=0;r<t;r++)s.words[r]=o.words[r]^(e|e<<8|e<<16|e<<24);a=Yc.RC4.encrypt(a,s).ciphertext}return a},ol=(e,t,r,n,o,i)=>{let s=n.clone().concat(o).concat(Yc.lib.WordArray.create([fl(i)],4)).concat(Yc.lib.WordArray.create(r));const a=e>=3?51:1;for(let e=0;e<a;e++)s=Yc.MD5(s),s.sigBytes=t/8;return s},il=(e,t)=>{const r=t(8),n=t(8);return Yc.SHA256(e.clone().concat(r)).concat(r).concat(n)},sl=(e,t,r)=>{const n=Yc.SHA256(e.clone().concat(t)),o={mode:Yc.mode.CBC,padding:Yc.pad.NoPadding,iv:Yc.lib.WordArray.create(null,16)};return Yc.AES.encrypt(r,n,o).ciphertext},al=(e,t,r)=>{const n=r(8),o=r(8);return Yc.SHA256(e.clone().concat(n).concat(t)).concat(n).concat(o)},cl=(e,t,r,n)=>{const o=Yc.SHA256(e.clone().concat(t).concat(r)),i={mode:Yc.mode.CBC,padding:Yc.pad.NoPadding,iv:Yc.lib.WordArray.create(null,16)};return Yc.AES.encrypt(n,o,i).ciphertext},ll=e=>e(32),hl=(e,t,r)=>{const n=Yc.lib.WordArray.create([fl(e),4294967295,1415668834],12).concat(r(4)),o={mode:Yc.mode.ECB,padding:Yc.pad.NoPadding};return Yc.AES.encrypt(n,t,o).ciphertext},dl=(e="")=>{const t=new Uint8Array(32),r=e.length;let n=0;for(;n<r&&n<32;){const r=e.charCodeAt(n);if(r>255)throw new Error("Password contains one or more invalid characters.");t[n]=r,n++}for(;n<32;)t[n]=gl[n-r],n++;return Yc.lib.WordArray.create(t)},ul=(e="")=>{const t=Math.min(127,e.length),r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);return Yc.lib.WordArray.create(r)},fl=e=>(255&e)<<24|(65280&e)<<8|e>>8&65280|e>>24&255,pl=e=>{const t=[];for(let r=0;r<e.sigBytes;r++)t.push(e.words[Math.floor(r/4)]>>8*(3-r%4)&255);return Uint8Array.from(t)},gl=[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],ml=e=>1<<e;var bl;e.AnnotationFlags=void 0,(bl=e.AnnotationFlags||(e.AnnotationFlags={}))[bl.Invisible=ml(0)]="Invisible",bl[bl.Hidden=ml(1)]="Hidden",bl[bl.Print=ml(2)]="Print",bl[bl.NoZoom=ml(3)]="NoZoom",bl[bl.NoRotate=ml(4)]="NoRotate",bl[bl.NoView=ml(5)]="NoView",bl[bl.ReadOnly=ml(6)]="ReadOnly",bl[bl.Locked=ml(7)]="Locked",bl[bl.ToggleNoView=ml(8)]="ToggleNoView",bl[bl.LockedContents=ml(9)]="LockedContents";const yl=e=>e instanceof Ko?e:Ko.of(e),vl=e=>e instanceof qo?e:qo.of(e),wl=e=>e instanceof qo?e.asNumber():e;var xl;e.RotationTypes=void 0,(xl=e.RotationTypes||(e.RotationTypes={})).Degrees="degrees",xl.Radians="radians";const Fl=t=>(Xn(t,"degreeAngle",["number"]),{type:e.RotationTypes.Degrees,angle:t}),Sl=e=>e*Math.PI/180,kl=e=>180*e/Math.PI,Cl=t=>t.type===e.RotationTypes.Radians?t.angle:t.type===e.RotationTypes.Degrees?Sl(t.angle):le(`Invalid rotation: ${JSON.stringify(t)}`),Al=t=>t.type===e.RotationTypes.Radians?kl(t.angle):t.type===e.RotationTypes.Degrees?t.angle:le(`Invalid rotation: ${JSON.stringify(t)}`),Tl=(e=0)=>{const t=e/90%4;return 0===t?0:1===t?90:2===t?180:3===t?270:0},Dl=(e,t=0)=>{const r=Tl(t);return 90===r||270===r?{width:e.height,height:e.width}:{width:e.width,height:e.height}},Ol=(e,t=0,r=0)=>{const{x:n,y:o,width:i,height:s}=e,a=Tl(r),c=t/2;return 0===a?{x:n-c,y:o-c,width:i,height:s}:90===a?{x:n-s+c,y:o-c,width:s,height:i}:180===a?{x:n-i+c,y:o-s+c,width:i,height:s}:270===a?{x:n-c,y:o-i+c,width:s,height:i}:{x:n-c,y:o-c,width:i,height:s}},Bl=()=>ri.of(oi.ClipNonZero),{cos:Nl,sin:Pl,tan:Rl}=Math,El=(e,t,r,n,o,i)=>ri.of(oi.ConcatTransformationMatrix,[vl(e),vl(t),vl(r),vl(n),vl(o),vl(i)]),Ml=(e,t)=>El(1,0,0,1,e,t),jl=(e,t)=>El(e,0,0,t,0,0),ql=e=>El(Nl(wl(e)),Pl(wl(e)),-Pl(wl(e)),Nl(wl(e)),0,0),zl=e=>ql(Sl(wl(e))),Ul=(e,t)=>El(1,Rl(wl(e)),Rl(wl(t)),1,0,0),Il=(e,t)=>ri.of(oi.SetLineDashPattern,[`[${e.map(vl).join(" ")}]`,vl(t)]);var Vl;e.LineCapStyle=void 0,(Vl=e.LineCapStyle||(e.LineCapStyle={}))[Vl.Butt=0]="Butt",Vl[Vl.Round=1]="Round",Vl[Vl.Projecting=2]="Projecting";const Ll=e=>ri.of(oi.SetLineCapStyle,[vl(e)]);var Wl;e.LineJoinStyle=void 0,(Wl=e.LineJoinStyle||(e.LineJoinStyle={}))[Wl.Miter=0]="Miter",Wl[Wl.Round=1]="Round",Wl[Wl.Bevel=2]="Bevel";const Hl=e=>ri.of(oi.SetGraphicsStateParams,[yl(e)]),Gl=()=>ri.of(oi.PushGraphicsState),Kl=()=>ri.of(oi.PopGraphicsState),Xl=e=>ri.of(oi.SetLineWidth,[vl(e)]),Zl=(e,t,r,n,o,i)=>ri.of(oi.AppendBezierCurve,[vl(e),vl(t),vl(r),vl(n),vl(o),vl(i)]),Yl=(e,t,r,n)=>ri.of(oi.CurveToReplicateInitialPoint,[vl(e),vl(t),vl(r),vl(n)]),Jl=()=>ri.of(oi.ClosePath),Ql=(e,t)=>ri.of(oi.MoveTo,[vl(e),vl(t)]),_l=(e,t)=>ri.of(oi.LineTo,[vl(e),vl(t)]),$l=(e,t,r,n)=>ri.of(oi.AppendRectangle,[vl(e),vl(t),vl(r),vl(n)]),eh=()=>ri.of(oi.StrokePath);var th;e.FillRule=void 0,(th=e.FillRule||(e.FillRule={})).NonZero="f",th.EvenOdd="f*";const rh=()=>ri.of(oi.FillNonZero),nh=()=>ri.of(oi.FillEvenOdd),oh=()=>ri.of(oi.FillNonZeroAndStroke),ih=()=>ri.of(oi.EndPath),sh=()=>ri.of(oi.NextLine),ah=e=>ri.of(oi.ShowText,[e]),ch=()=>ri.of(oi.BeginText),lh=()=>ri.of(oi.EndText),hh=(e,t)=>ri.of(oi.SetFontAndSize,[yl(e),vl(t)]),dh=e=>ri.of(oi.SetTextLineHeight,[vl(e)]);var uh;e.TextRenderingMode=void 0,(uh=e.TextRenderingMode||(e.TextRenderingMode={}))[uh.Fill=0]="Fill",uh[uh.Outline=1]="Outline",uh[uh.FillAndOutline=2]="FillAndOutline",uh[uh.Invisible=3]="Invisible",uh[uh.FillAndClip=4]="FillAndClip",uh[uh.OutlineAndClip=5]="OutlineAndClip",uh[uh.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",uh[uh.Clip=7]="Clip";const fh=e=>ri.of(oi.SetTextRenderingMode,[vl(e)]),ph=(e,t,r,n,o,i)=>ri.of(oi.SetTextMatrix,[vl(e),vl(t),vl(r),vl(n),vl(o),vl(i)]),gh=(e,t,r,n,o)=>ph(Nl(wl(e)),Pl(wl(e))+Rl(wl(t)),-Pl(wl(e))+Rl(wl(r)),Nl(wl(e)),n,o),mh=e=>ri.of(oi.DrawObject,[yl(e)]),bh=e=>ri.of(oi.NonStrokingColorGray,[vl(e)]),yh=e=>ri.of(oi.StrokingColorGray,[vl(e)]),vh=(e,t,r)=>ri.of(oi.NonStrokingColorRgb,[vl(e),vl(t),vl(r)]),wh=(e,t,r)=>ri.of(oi.StrokingColorRgb,[vl(e),vl(t),vl(r)]),xh=(e,t,r,n)=>ri.of(oi.NonStrokingColorCmyk,[vl(e),vl(t),vl(r),vl(n)]),Fh=(e,t,r,n)=>ri.of(oi.StrokingColorCmyk,[vl(e),vl(t),vl(r),vl(n)]),Sh=e=>ri.of(oi.BeginMarkedContent,[yl(e)]),kh=()=>ri.of(oi.EndMarkedContent);var Ch={exports:{}},Ah={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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],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],olive:[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],rebeccapurple:[102,51,153],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]},Th={exports:{}},Dh=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},Oh=Array.prototype.concat,Bh=Array.prototype.slice,Nh=Th.exports=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];Dh(o)?t=Oh.call(t,Bh.call(o)):t.push(o)}return t};Nh.wrap=function(e){return function(){return e(Nh(arguments))}};var Ph=Th.exports,Rh=Ah,Eh=Ph,Mh=Object.hasOwnProperty,jh=Object.create(null);for(var qh in Rh)Mh.call(Rh,qh)&&(jh[Rh[qh]]=qh);var zh=Ch.exports={to:{},get:{}};function Uh(e,t,r){return Math.min(Math.max(t,e),r)}function Ih(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}zh.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=zh.get.hsl(e),r="hsl";break;case"hwb":t=zh.get.hwb(e),r="hwb";break;default:t=zh.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},zh.get.rgb=function(e){if(!e)return null;var t,r,n,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],r=0;r<3;r++){var i=2*r;o[r]=parseInt(t.slice(i,i+2),16)}n&&(o[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],r=0;r<3;r++)o[r]=parseInt(t[r]+t[r],16);n&&(o[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)o[r]=parseInt(t[r+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Mh.call(Rh,t[1])?((o=Rh[t[1]])[3]=1,o):null:null;for(r=0;r<3;r++)o[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(r=0;r<3;r++)o[r]=Uh(o[r],0,255);return o[3]=Uh(o[3],0,1),o},zh.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Uh(parseFloat(t[2]),0,100),Uh(parseFloat(t[3]),0,100),Uh(isNaN(r)?1:r,0,1)]}return null},zh.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Uh(parseFloat(t[2]),0,100),Uh(parseFloat(t[3]),0,100),Uh(isNaN(r)?1:r,0,1)]}return null},zh.to.hex=function(){var e=Eh(arguments);return"#"+Ih(e[0])+Ih(e[1])+Ih(e[2])+(e[3]<1?Ih(Math.round(255*e[3])):"")},zh.to.rgb=function(){var e=Eh(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},zh.to.rgb.percent=function(){var e=Eh(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},zh.to.hsl=function(){var e=Eh(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},zh.to.hwb=function(){var e=Eh(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},zh.to.keyword=function(e){return jh[e.slice(0,3)]};var Vh=Ch.exports;const Lh=Ah,Wh={};for(const e of Object.keys(Lh))Wh[Lh[e]]=e;const Hh={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Gh=Hh;for(const e of Object.keys(Hh)){if(!("channels"in Hh[e]))throw new Error("missing channels property: "+e);if(!("labels"in Hh[e]))throw new Error("missing channel labels property: "+e);if(Hh[e].labels.length!==Hh[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Hh[e];delete Hh[e].channels,delete Hh[e].labels,Object.defineProperty(Hh[e],"channels",{value:t}),Object.defineProperty(Hh[e],"labels",{value:r})}Hh.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=i-o;let a,c;i===o?a=0:t===i?a=(r-n)/s:r===i?a=2+(n-t)/s:n===i&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(o+i)/2;return c=i===o?0:l<=.5?s/(i+o):s/(2-i-o),[a,100*c,100*l]},Hh.rgb.hsv=function(e){let t,r,n,o,i;const s=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(s,a,c),h=l-Math.min(s,a,c),d=function(e){return(l-e)/6/h+.5};return 0===h?(o=0,i=0):(i=h/l,t=d(s),r=d(a),n=d(c),s===l?o=n-r:a===l?o=1/3+t-n:c===l&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*l]},Hh.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=Hh.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*i,100*n]},Hh.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},Hh.rgb.keyword=function(e){const t=Wh[e];if(t)return t;let r,n=1/0;for(const t of Object.keys(Lh)){const s=(i=Lh[t],((o=e)[0]-i[0])**2+(o[1]-i[1])**2+(o[2]-i[2])**2);s<n&&(n=s,r=t)}var o,i;return r},Hh.keyword.rgb=function(e){return Lh[e]},Hh.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Hh.rgb.lab=function(e){const t=Hh.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(r-n),200*(n-o)]},Hh.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,i,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,c[e]=255*s;return c},Hh.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i;return[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},Hh.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},Hh.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let i,s;s=(2-r)*n;const a=(2-r)*o;return i=r*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},Hh.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;i=6*t-s,0!=(1&s)&&(i=1-i);const c=r+i*(a-r);let l,h,d;switch(s){default:case 6:case 0:l=a,h=c,d=r;break;case 1:l=c,h=a,d=r;break;case 2:l=r,h=a,d=c;break;case 3:l=r,h=c,d=a;break;case 4:l=c,h=r,d=a;break;case 5:l=a,h=r,d=c}return[255*l,255*h,255*d]},Hh.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},Hh.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*r+-.4986*n,i=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},Hh.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},Hh.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,i=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},Hh.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(r*r+n*n),o]},Hh.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},Hh.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let i=null===t?Hh.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===i&&(s+=60),s},Hh.hsv.ansi16=function(e){return Hh.rgb.ansi16(Hh.hsv.rgb(e),e[2])},Hh.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Hh.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Hh.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Hh.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Hh.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Hh.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),s=o-i;let a,c;return a=s<1?i/(1-s):0,c=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},Hh.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},Hh.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},Hh.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},Hh.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Hh.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},Hh.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Hh.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},Hh.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Hh.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Hh.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Hh.gray.hsl=function(e){return[0,0,e[0]]},Hh.gray.hsv=Hh.gray.hsl,Hh.gray.hwb=function(e){return[0,100,e[0]]},Hh.gray.cmyk=function(e){return[0,0,0,e[0]]},Hh.gray.lab=function(e){return[e[0],0,0]},Hh.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Hh.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Kh=Gh;function Xh(e){const t=function(){const e={},t=Object.keys(Kh);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),n=Object.keys(Kh[e]);for(let o=n.length,i=0;i<o;i++){const o=n[i],s=t[o];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,r.unshift(o))}}return t}function Zh(e,t){return function(r){return t(e(r))}}function Yh(e,t){const r=[t[e].parent,e];let n=Kh[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Zh(Kh[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}const Jh=Gh,Qh=function(e){const t=Xh(e),r={},n=Object.keys(t);for(let e=n.length,o=0;o<e;o++){const e=n[o];null!==t[e].parent&&(r[e]=Yh(e,t))}return r},_h={};Object.keys(Jh).forEach((e=>{_h[e]={},Object.defineProperty(_h[e],"channels",{value:Jh[e].channels}),Object.defineProperty(_h[e],"labels",{value:Jh[e].labels});const t=Qh(e);Object.keys(t).forEach((r=>{const n=t[r];_h[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),_h[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));const $h=Vh,ed=_h,td=["keyword","gray","hex"],rd={};for(const e of Object.keys(ed))rd[[...ed[e].labels].sort().join("")]=e;const nd={};function od(e,t){if(!(this instanceof od))return new od(e,t);if(t&&t in td&&(t=null),t&&!(t in ed))throw new Error("Unknown model: "+t);let r,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof od)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=$h.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,n=ed[this.model].channels,this.color=t.value.slice(0,n),this.valpha="number"==typeof t.value[n]?t.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=ed[this.model].channels;const r=Array.prototype.slice.call(e,0,n);this.color=cd(r,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in rd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=rd[n];const{labels:o}=ed[this.model],i=[];for(r=0;r<o.length;r++)i.push(e[o[r]]);this.color=cd(i)}if(nd[this.model])for(n=ed[this.model].channels,r=0;r<n;r++){const e=nd[this.model][r];e&&(this.color[r]=e(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}od.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in $h.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const r=1===t.valpha?t.color:[...t.color,this.valpha];return $h.to[t.model](r)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:[...t.color,this.valpha];return $h.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ed[this.model],{labels:r}=ed[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new od([...this.color.map(id(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new od([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:sd("rgb",0,ad(255)),green:sd("rgb",1,ad(255)),blue:sd("rgb",2,ad(255)),hue:sd(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:sd("hsl",1,ad(100)),lightness:sd("hsl",2,ad(100)),saturationv:sd("hsv",1,ad(100)),value:sd("hsv",2,ad(100)),chroma:sd("hcg",1,ad(100)),gray:sd("hcg",2,ad(100)),white:sd("hwb",1,ad(100)),wblack:sd("hwb",2,ad(100)),cyan:sd("cmyk",0,ad(100)),magenta:sd("cmyk",1,ad(100)),yellow:sd("cmyk",2,ad(100)),black:sd("cmyk",3,ad(100)),x:sd("xyz",0,ad(95.047)),y:sd("xyz",1,ad(100)),z:sd("xyz",2,ad(108.833)),l:sd("lab",0,ad(100)),a:sd("lab",1),b:sd("lab",2),keyword(e){return void 0!==e?new od(e):ed[this.model].keyword(this.color)},hex(e){return void 0!==e?new od(e):$h.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new od(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),$h.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return od.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,i=2*o-1,s=r.alpha()-n.alpha(),a=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,c=1-a;return od.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(ed)){if(td.includes(e))continue;const{channels:t}=ed[e];od.prototype[e]=function(...t){return this.model===e?new od(this):t.length>0?new od(t,e):new od([...(r=ed[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},od[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=cd(r,t)),new od(n,e)}}function id(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function sd(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(nd[n]||(nd[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function ad(e){return function(t){return Math.max(0,Math.min(e,t))}}function cd(e,t){for(let r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}var ld,hd=de(od);e.ColorTypes=void 0,(ld=e.ColorTypes||(e.ColorTypes={})).Grayscale="Grayscale",ld.RGB="RGB",ld.CMYK="CMYK";const dd=t=>(Jn(t,"gray",0,1),{type:e.ColorTypes.Grayscale,gray:t}),ud=(t,r,n)=>(Jn(t,"red",0,1),Jn(r,"green",0,1),Jn(n,"blue",0,1),{type:e.ColorTypes.RGB,red:t,green:r,blue:n}),fd=(t,r,n,o)=>(Jn(t,"cyan",0,1),Jn(r,"magenta",0,1),Jn(n,"yellow",0,1),Jn(o,"key",0,1),{type:e.ColorTypes.CMYK,cyan:t,magenta:r,yellow:n,key:o}),pd=e=>{Xn(e,"color",["string"]);const t=hd(e).unitObject();return{rgb:ud(t.r,t.g,t.b),alpha:t.alpha}},gd=t=>t.type===e.ColorTypes.Grayscale?bh(t.gray):t.type===e.ColorTypes.RGB?vh(t.red,t.green,t.blue):t.type===e.ColorTypes.CMYK?xh(t.cyan,t.magenta,t.yellow,t.key):le(`Invalid color: ${JSON.stringify(t)}`),md=t=>t.type===e.ColorTypes.Grayscale?yh(t.gray):t.type===e.ColorTypes.RGB?wh(t.red,t.green,t.blue):t.type===e.ColorTypes.CMYK?Fh(t.cyan,t.magenta,t.yellow,t.key):le(`Invalid color: ${JSON.stringify(t)}`),bd=(e,t=1)=>1===(null==e?void 0:e.length)?dd(e[0]*t):3===(null==e?void 0:e.length)?ud(e[0]*t,e[1]*t,e[2]*t):4===(null==e?void 0:e.length)?fd(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0,yd=t=>t.type===e.ColorTypes.Grayscale?[t.gray]:t.type===e.ColorTypes.RGB?[t.red,t.green,t.blue]:t.type===e.ColorTypes.CMYK?[t.cyan,t.magenta,t.yellow,t.key]:le(`Invalid color: ${JSON.stringify(t)}`);let vd=0,wd=0,xd=0,Fd=0,Sd=0,kd=0;const Cd=new Map([["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]]),Ad={M:e=>(vd=e[0],wd=e[1],xd=Fd=null,Sd=vd,kd=wd,Ql(vd,wd)),m:e=>(vd+=e[0],wd+=e[1],xd=Fd=null,Sd=vd,kd=wd,Ql(vd,wd)),C:e=>(vd=e[4],wd=e[5],xd=e[2],Fd=e[3],Zl(e[0],e[1],e[2],e[3],e[4],e[5])),c(e){const t=Zl(e[0]+vd,e[1]+wd,e[2]+vd,e[3]+wd,e[4]+vd,e[5]+wd);return xd=vd+e[2],Fd=wd+e[3],vd+=e[4],wd+=e[5],t},S(e){null!==xd&&null!==Fd||(xd=vd,Fd=wd);const t=Zl(vd-(xd-vd),wd-(Fd-wd),e[0],e[1],e[2],e[3]);return xd=e[0],Fd=e[1],vd=e[2],wd=e[3],t},s(e){null!==xd&&null!==Fd||(xd=vd,Fd=wd);const t=Zl(vd-(xd-vd),wd-(Fd-wd),vd+e[0],wd+e[1],vd+e[2],wd+e[3]);return xd=vd+e[0],Fd=wd+e[1],vd+=e[2],wd+=e[3],t},Q:e=>(xd=e[0],Fd=e[1],vd=e[2],wd=e[3],Yl(e[0],e[1],vd,wd)),q(e){const t=Yl(e[0]+vd,e[1]+wd,e[2]+vd,e[3]+wd);return xd=vd+e[0],Fd=wd+e[1],vd+=e[2],wd+=e[3],t},T(e){null===xd||null===Fd?(xd=vd,Fd=wd):(xd=vd-(xd-vd),Fd=wd-(Fd-wd));const t=Yl(xd,Fd,e[0],e[1]);return vd=e[0],wd=e[1],t},t(e){null===xd||null===Fd?(xd=vd,Fd=wd):(xd=vd-(xd-vd),Fd=wd-(Fd-wd));const t=Yl(xd,Fd,vd+e[0],wd+e[1]);return vd+=e[0],wd+=e[1],t},A(e){const t=Td(vd,wd,e);return vd=e[5],wd=e[6],t},a(e){e[5]+=vd,e[6]+=wd;const t=Td(vd,wd,e);return vd=e[5],wd=e[6],t},L:e=>(vd=e[0],wd=e[1],xd=Fd=null,_l(vd,wd)),l:e=>(vd+=e[0],wd+=e[1],xd=Fd=null,_l(vd,wd)),H:e=>(vd=e[0],xd=Fd=null,_l(vd,wd)),h:e=>(vd+=e[0],xd=Fd=null,_l(vd,wd)),V:e=>(wd=e[0],xd=Fd=null,_l(vd,wd)),v:e=>(wd+=e[0],xd=Fd=null,_l(vd,wd)),Z(){const e=Jl();return vd=Sd,wd=kd,e},z(){const e=Jl();return vd=Sd,wd=kd,e}},Td=(e,t,r)=>{const[n,o,i,s,a,c,l]=r,h=Dd(c,l,n,o,s,a,i,e,t),d=[];for(const e of h){const t=Od(...e);d.push(Zl(...t))}return d},Dd=(e,t,r,n,o,i,s,a,c)=>{const l=s*(Math.PI/180),h=Math.sin(l),d=Math.cos(l);r=Math.abs(r),n=Math.abs(n),xd=d*(a-e)*.5+h*(c-t)*.5,Fd=d*(c-t)*.5-h*(a-e)*.5;let u=xd*xd/(r*r)+Fd*Fd/(n*n);u>1&&(u=Math.sqrt(u),r*=u,n*=u);const f=d/r,p=h/r,g=-h/n,m=d/n,b=f*a+p*c,y=g*a+m*c,v=f*e+p*t,w=g*e+m*t;let x=1/((v-b)*(v-b)+(w-y)*(w-y))-.25;x<0&&(x=0);let F=Math.sqrt(x);i===o&&(F=-F);const S=.5*(b+v)-F*(w-y),k=.5*(y+w)+F*(v-b),C=Math.atan2(y-k,b-S);let A=Math.atan2(w-k,v-S)-C;A<0&&1===i?A+=2*Math.PI:A>0&&0===i&&(A-=2*Math.PI);const T=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),D=[];for(let e=0;e<T;e++){const t=C+e*A/T,o=C+(e+1)*A/T;D[e]=[S,k,t,o,r,n,h,d]}return D},Od=(e,t,r,n,o,i,s,a)=>{const c=a*o,l=-s*i,h=s*o,d=a*i,u=.5*(n-r),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),p=e+Math.cos(r)-f*Math.sin(r),g=t+Math.sin(r)+f*Math.cos(r),m=e+Math.cos(n),b=t+Math.sin(n),y=m+f*Math.sin(n),v=b-f*Math.cos(n);return[c*p+l*g,h*p+d*g,c*y+l*v,h*y+d*v,c*m+l*b,h*m+d*b]},Bd=e=>(e=>{vd=wd=xd=Fd=Sd=kd=0;let t=[];for(let r=0;r<e.length;r++){const n=e[r];if(n.cmd&&"function"==typeof Ad[n.cmd]){const e=Ad[n.cmd](n.args);Array.isArray(e)?t=t.concat(e):t.push(e)}}return t})((e=>{let t;const r=[];let n=[],o="",i=!1,s=0;for(const a of e)if(Cd.has(a))s=Cd.get(a),t&&(o.length>0&&(n[n.length]=+o),r[r.length]={cmd:t,args:n},n=[],o="",i=!1),t=a;else if([" ",","].includes(a)||"-"===a&&o.length>0&&"e"!==o[o.length-1]||"."===a&&i){if(0===o.length)continue;n.length===s?(r[r.length]={cmd:t,args:n},n=[+o],"M"===t&&(t="L"),"m"===t&&(t="l")):n[n.length]=+o,i="."===a,o=["-","."].includes(a)?a:""}else o+=a,"."===a&&(i=!0);return o.length>0&&(n.length===s?(r[r.length]={cmd:t,args:n},n=[+o],"M"===t&&(t="L"),"m"===t&&(t="l")):n[n.length]=+o),r[r.length]={cmd:t,args:n},r})(e));var Nd={},Pd={},Rd={};Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},Rd.namedReferences={xml:{entities:{"<":"<",">":">",""":'"',"'":"'","&":"&"},characters:{"<":"<",">":">",'"':""","'":"'","&":"&"}},html4:{entities:{"'":"'"," ":" "," ":" ","¡":"¡","¡":"¡","¢":"¢","¢":"¢","£":"£","£":"£","¤":"¤","¤":"¤","¥":"¥","¥":"¥","¦":"¦","¦":"¦","§":"§","§":"§","¨":"¨","¨":"¨","©":"©","©":"©","ª":"ª","ª":"ª","«":"«","«":"«","¬":"¬","¬":"¬","­":"","­":"","®":"®","®":"®","¯":"¯","¯":"¯","°":"°","°":"°","±":"±","±":"±","²":"²","²":"²","³":"³","³":"³","´":"´","´":"´","µ":"µ","µ":"µ","¶":"¶","¶":"¶","·":"·","·":"·","¸":"¸","¸":"¸","¹":"¹","¹":"¹","º":"º","º":"º","»":"»","»":"»","¼":"¼","¼":"¼","½":"½","½":"½","¾":"¾","¾":"¾","¿":"¿","¿":"¿","À":"À","À":"À","Á":"Á","Á":"Á","Â":"Â","Â":"Â","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","Å":"Å","Å":"Å","Æ":"Æ","Æ":"Æ","Ç":"Ç","Ç":"Ç","È":"È","È":"È","É":"É","É":"É","Ê":"Ê","Ê":"Ê","Ë":"Ë","Ë":"Ë","Ì":"Ì","Ì":"Ì","Í":"Í","Í":"Í","Î":"Î","Î":"Î","Ï":"Ï","Ï":"Ï","Ð":"Ð","Ð":"Ð","Ñ":"Ñ","Ñ":"Ñ","Ò":"Ò","Ò":"Ò","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","Õ":"Õ","Õ":"Õ","Ö":"Ö","Ö":"Ö","×":"×","×":"×","Ø":"Ø","Ø":"Ø","Ù":"Ù","Ù":"Ù","Ú":"Ú","Ú":"Ú","Û":"Û","Û":"Û","Ü":"Ü","Ü":"Ü","Ý":"Ý","Ý":"Ý","Þ":"Þ","Þ":"Þ","ß":"ß","ß":"ß","à":"à","à":"à","á":"á","á":"á","â":"â","â":"â","ã":"ã","ã":"ã","ä":"ä","ä":"ä","å":"å","å":"å","æ":"æ","æ":"æ","ç":"ç","ç":"ç","è":"è","è":"è","é":"é","é":"é","ê":"ê","ê":"ê","ë":"ë","ë":"ë","ì":"ì","ì":"ì","í":"í","í":"í","î":"î","î":"î","ï":"ï","ï":"ï","ð":"ð","ð":"ð","ñ":"ñ","ñ":"ñ","ò":"ò","ò":"ò","ó":"ó","ó":"ó","ô":"ô","ô":"ô","õ":"õ","õ":"õ","ö":"ö","ö":"ö","÷":"÷","÷":"÷","ø":"ø","ø":"ø","ù":"ù","ù":"ù","ú":"ú","ú":"ú","û":"û","û":"û","ü":"ü","ü":"ü","ý":"ý","ý":"ý","þ":"þ","þ":"þ","ÿ":"ÿ","ÿ":"ÿ",""":'"',""":'"',"&":"&","&":"&","<":"<","<":"<",">":">",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"","‍":"","‎":"","‏":"","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","⟨":"〈","⟩":"〉","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"},characters:{"'":"'"," ":" ","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©","ª":"ª","«":"«","¬":"¬","":"­","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´","µ":"µ","¶":"¶","·":"·","¸":"¸","¹":"¹","º":"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","×":"×","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","÷":"÷","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ",'"':""","&":"&","<":"<",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","":"‌","":"‍","":"‎","":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","〈":"⟨","〉":"⟩","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"}},html5:{entities:{"Æ":"Æ","Æ":"Æ","&":"&","&":"&","Á":"Á","Á":"Á","Ă":"Ă","Â":"Â","Â":"Â","А":"А","𝔄":"𝔄","À":"À","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"","Å":"Å","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","ℬ":"ℬ","≎":"≎","Ч":"Ч","©":"©","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","ℭ":"ℭ","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","ⅅ":"ⅅ","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","∯":"∯","¨":"¨","⇓":"⇓","⇐":"⇐","⇔":"⇔","⫤":"⫤","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","⇓":"⇓","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","Ð":"Ð","É":"É","É":"É","Ě":"Ě","Ê":"Ê","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","ℱ":"ℱ","Ѓ":"Ѓ",">":">",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","ℋ":"ℋ","Ħ":"Ħ","≎":"≎","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Í":"Í","Î":"Î","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ì":"Ì","ℑ":"ℑ","Ī":"Ī","ⅈ":"ⅈ","⇒":"⇒","∬":"∬","∫":"∫","⋂":"⋂","⁣":"","⁢":"","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⇐":"⇐","⇔":"⇔","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","⟸":"⟸","⟺":"⟺","⟹":"⟹","𝕃":"𝕃","↙":"↙","↘":"↘","ℒ":"ℒ","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","ℳ":"ℳ","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"","​":"","​":"","​":"","≫":"≫","≪":"≪","
":"\n","𝔑":"𝔑","⁠":""," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Ø":"Ø","Õ":"Õ","Õ":"Õ","⨷":"⨷","Ö":"Ö","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℌ":"ℌ","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∷":"∷","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",""":'"',""":'"',"𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","ℜ":"ℜ","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","⇒":"⇒","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↓":"↓","←":"←","→":"→","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∋":"∋","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","⋑":"⋑","Þ":"Þ","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","	":"\t","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":" "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ù":"Ù","Ū":"Ū","_":"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","↑":"↑","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","⇑":"⇑","⇕":"⇕","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","​":"","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"","𝔞":"𝔞","à":"à","à":"à","ℵ":"ℵ","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","&":"&","&":"&","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∠":"∠","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","Å":"Å","⍼":"⍼","ą":"ą","𝕒":"𝕒","≈":"≈","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","≈":"≈","≊":"≊","å":"å","å":"å","𝒶":"𝒶","*":"*","≈":"≈","≍":"≍","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"∳","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⌅":"⌅","⎵":"⎵","⎶":"⎶","≌":"≌","б":"б","„":"„","∵":"∵","∵":"∵","⦰":"⦰","϶":"϶","ℬ":"ℬ","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","⋂":"⋂","◯":"◯","⋃":"⋃","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⋁":"⋁","⋀":"⋀","⤍":"⤍","⧫":"⧫","▪":"▪","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⊥":"⊥","⊥":"⊥","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","─":"─","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","‵":"‵","˘":"˘","¦":"¦","¦":"¦","𝒷":"𝒷","⁏":"⁏","∽":"∽","⋍":"⋍","\":"\\","⧅":"⧅","⟈":"⟈","•":"•","•":"•","≎":"≎","⪮":"⪮","≏":"≏","≏":"≏","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","ˇ":"ˇ","⩍":"⩍","č":"č","ç":"ç","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"𝔠","ч":"ч","✓":"✓","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","®":"®","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","≗":"≗","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣","♣":"♣",":":":","≔":"≔","≔":"≔",",":",","@":"@","∁":"∁","∘":"∘","∁":"∁","ℂ":"ℂ","≅":"≅","⩭":"⩭","∮":"∮","𝕔":"𝕔","∐":"∐","©":"©","©":"©","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋞":"⋞","⋟":"⋟","⋎":"⋎","⋏":"⋏","¤":"¤","¤":"¤","↶":"↶","↷":"↷","⋎":"⋎","⋏":"⋏","∲":"∲","∱":"∱","⌭":"⌭","⇓":"⇓","⥥":"⥥","†":"†","ℸ":"ℸ","↓":"↓","‐":"‐","⊣":"⊣","⤏":"⤏","˝":"˝","ď":"ď","д":"д","ⅆ":"ⅆ","‡":"‡","⇊":"⇊","⩷":"⩷","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","⇃":"⇃","⇂":"⇂","⋄":"⋄","⋄":"⋄","♦":"♦","♦":"♦","¨":"¨","ϝ":"ϝ","⋲":"⋲","÷":"÷","÷":"÷","÷":"÷","⋇":"⋇","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍","$":"$","𝕕":"𝕕","˙":"˙","≐":"≐","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌆":"⌆","↓":"↓","⇊":"⇊","⇃":"⇃","⇂":"⇂","⤐":"⤐","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","▾":"▾","⇵":"⇵","⥯":"⥯","⦦":"⦦","џ":"џ","⟿":"⟿","⩷":"⩷","≑":"≑","é":"é","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","ê":"ê","≕":"≕","э":"э","ė":"ė","ⅇ":"ⅇ","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅","∅":"∅","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"≖","≕":"≕","≂":"≂","⪖":"⪖","⪕":"⪕","=":"=","≟":"≟","≡":"≡","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","≐":"≐","≂":"≂","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"€","!":"!","∃":"∃","ℰ":"ℰ","ⅇ":"ⅇ","≒":"≒","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi","fj":"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","∀":"∀","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","½":"½","⅓":"⅓","¼":"¼","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","≧":"≧","⪌":"⪌","ǵ":"ǵ","γ":"γ","ϝ":"ϝ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","≥":"≥","⋛":"⋛","≥":"≥","≧":"≧","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","≫":"≫","⋙":"⋙","ℷ":"ℷ","ѓ":"ѓ","≷":"≷","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪊":"⪊","⪈":"⪈","⪈":"⪈","≩":"≩","⋧":"⋧","𝕘":"𝕘","`":"`","ℊ":"ℊ","≳":"≳","⪎":"⪎","⪐":"⪐",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⪆":"⪆","⥸":"⥸","⋗":"⋗","⋛":"⋛","⪌":"⪌","≷":"≷","≳":"≳","≩︀":"≩︀","≩︀":"≩︀","⇔":"⇔"," ":" ","½":"½","ℋ":"ℋ","ъ":"ъ","↔":"↔","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ℏ":"ℏ","ħ":"ħ","⁃":"⁃","‐":"‐","í":"í","í":"í","⁣":"","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"⇔","𝔦":"𝔦","ì":"ì","ì":"ì","ⅈ":"ⅈ","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ℑ":"ℑ","ℐ":"ℐ","ℑ":"ℑ","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","∈":"∈","℅":"℅","∞":"∞","⧝":"⧝","ı":"ı","∫":"∫","⊺":"⊺","ℤ":"ℤ","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"𝒾","∈":"∈","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","∈":"∈","⁢":"","ĩ":"ĩ","і":"і","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⇚":"⇚","⇐":"⇐","⤛":"⤛","⤎":"⤎","≦":"≦","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"ℒ","λ":"λ","⟨":"⟨","⦑":"⦑","⟨":"⟨","⪅":"⪅","«":"«","«":"«","←":"←","⇤":"⇤","⤟":"⤟","⤝":"⤝","↩":"↩","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","⌈":"⌈","{":"{","л":"л","⤶":"⤶","“":"“","„":"„","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","←":"←","↢":"↢","↽":"↽","↼":"↼","⇇":"⇇","↔":"↔","⇆":"⇆","⇋":"⇋","↭":"↭","⋋":"⋋","⋚":"⋚","≤":"≤","≦":"≦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⪅":"⪅","⋖":"⋖","⋚":"⋚","⪋":"⪋","≶":"≶","≲":"≲","⥼":"⥼","⌊":"⌊","𝔩":"𝔩","≶":"≶","⪑":"⪑","↽":"↽","↼":"↼","⥪":"⥪","▄":"▄","љ":"љ","≪":"≪","⇇":"⇇","⌞":"⌞","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","⎰":"⎰","≨":"≨","⪉":"⪉","⪉":"⪉","⪇":"⪇","⪇":"⪇","≨":"≨","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟦":"⟦","⟵":"⟵","⟷":"⟷","⟼":"⟼","⟶":"⟶","↫":"↫","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","_":"_","◊":"◊","◊":"◊","⧫":"⧫","(":"(","⦓":"⦓","⇆":"⇆","⌟":"⌟","⇋":"⇋","⥭":"⥭","‎":"","⊿":"⊿","‹":"‹","𝓁":"𝓁","↰":"↰","≲":"≲","⪍":"⪍","⪏":"⪏","[":"[","‘":"‘","‚":"‚","ł":"ł","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"⋖","⋋":"⋋","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⊴":"⊴","◂":"◂","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","≨︀":"≨︀","∺":"∺","¯":"¯","¯":"¯","♂":"♂","✠":"✠","✠":"✠","↦":"↦","↦":"↦","↧":"↧","↤":"↤","↥":"↥","▮":"▮","⨩":"⨩","м":"м","—":"—","∡":"∡","𝔪":"𝔪","℧":"℧","µ":"µ","µ":"µ","∣":"∣","*":"*","⫰":"⫰","·":"·","·":"·","−":"−","⊟":"⊟","∸":"∸","⨪":"⨪","⫛":"⫛","…":"…","∓":"∓","⊧":"⊧","𝕞":"𝕞","∓":"∓","𝓂":"𝓂","∾":"∾","μ":"μ","⊸":"⊸","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","≫̸":"≫̸","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","≪̸":"≪̸","⇏":"⇏","⊯":"⊯","⊮":"⊮","∇":"∇","ń":"ń","∠⃒":"∠⃒","≉":"≉","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","≉":"≉","♮":"♮","♮":"♮","ℕ":"ℕ"," ":" "," ":" ","≎̸":"≎̸","≏̸":"≏̸","⩃":"⩃","ň":"ň","ņ":"ņ","≇":"≇","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","≠":"≠","⇗":"⇗","⤤":"⤤","↗":"↗","↗":"↗","≐̸":"≐̸","≢":"≢","⤨":"⤨","≂̸":"≂̸","∄":"∄","∄":"∄","𝔫":"𝔫","≧̸":"≧̸","≱":"≱","≱":"≱","≧̸":"≧̸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"≵","≯":"≯","≯":"≯","⇎":"⇎","↮":"↮","⫲":"⫲","∋":"∋","⋼":"⋼","⋺":"⋺","∋":"∋","њ":"њ","⇍":"⇍","≦̸":"≦̸","↚":"↚","‥":"‥","≰":"≰","↚":"↚","↮":"↮","≰":"≰","≦̸":"≦̸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"≮","≴":"≴","≮":"≮","⋪":"⋪","⋬":"⋬","∤":"∤","𝕟":"𝕟","¬":"¬","¬":"¬","∉":"∉","⋹̸":"⋹̸","⋵̸":"⋵̸","∉":"∉","⋷":"⋷","⋶":"⋶","∌":"∌","∌":"∌","⋾":"⋾","⋽":"⋽","∦":"∦","∦":"∦","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","⊀":"⊀","⋠":"⋠","⪯̸":"⪯̸","⊀":"⊀","⪯̸":"⪯̸","⇏":"⇏","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","↛":"↛","⋫":"⋫","⋭":"⋭","⊁":"⊁","⋡":"⋡","⪰̸":"⪰̸","𝓃":"𝓃","∤":"∤","∦":"∦","≁":"≁","≄":"≄","≄":"≄","∤":"∤","∦":"∦","⋢":"⋢","⋣":"⋣","⊄":"⊄","⫅̸":"⫅̸","⊈":"⊈","⊂⃒":"⊂⃒","⊈":"⊈","⫅̸":"⫅̸","⊁":"⊁","⪰̸":"⪰̸","⊅":"⊅","⫆̸":"⫆̸","⊉":"⊉","⊃⃒":"⊃⃒","⊉":"⊉","⫆̸":"⫆̸","≹":"≹","ñ":"ñ","ñ":"ñ","≸":"≸","⋪":"⋪","⋬":"⋬","⋫":"⋫","⋭":"⋭","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","↖":"↖","↖":"↖","⤧":"⤧","Ⓢ":"Ⓢ","ó":"ó","ó":"ó","⊛":"⊛","⊚":"⊚","ô":"ô","ô":"ô","о":"о","⊝":"⊝","ő":"ő","⨸":"⨸","⊙":"⊙","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","ò":"ò","⧁":"⧁","⦵":"⦵","Ω":"Ω","∮":"∮","↺":"↺","⦾":"⦾","⦻":"⦻","‾":"‾","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","⊖":"⊖","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","⊕":"⊕","∨":"∨","↻":"↻","⩝":"⩝","ℴ":"ℴ","ℴ":"ℴ","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ℴ":"ℴ","ø":"ø","ø":"ø","⊘":"⊘","õ":"õ","õ":"õ","⊗":"⊗","⨶":"⨶","ö":"ö","ö":"ö","⌽":"⌽","∥":"∥","¶":"¶","¶":"¶","∥":"∥","⫳":"⫳","⫽":"⫽","∂":"∂","п":"п","%":"%",".":".","‰":"‰","⊥":"⊥","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","ℳ":"ℳ","☎":"☎","π":"π","⋔":"⋔","ϖ":"ϖ","ℏ":"ℏ","ℎ":"ℎ","ℏ":"ℏ","+":"+","⨣":"⨣","⊞":"⊞","⨢":"⨢","∔":"∔","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"⨕","𝕡":"𝕡","£":"£","£":"£","≺":"≺","⪳":"⪳","⪷":"⪷","≼":"≼","⪯":"⪯","≺":"≺","⪷":"⪷","≼":"≼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"⋨","≾":"≾","′":"′","ℙ":"ℙ","⪵":"⪵","⪹":"⪹","⋨":"⋨","∏":"∏","⌮":"⌮","⌒":"⌒","⌓":"⌓","∝":"∝","∝":"∝","≾":"≾","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","⨌":"⨌","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","ℍ":"ℍ","⨖":"⨖","?":"?","≟":"≟",""":'"',""":'"',"⇛":"⇛","⇒":"⇒","⤜":"⤜","⤏":"⤏","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","√":"√","⦳":"⦳","⟩":"⟩","⦒":"⦒","⦥":"⦥","⟩":"⟩","»":"»","»":"»","→":"→","⥵":"⥵","⇥":"⇥","⤠":"⤠","⤳":"⤳","⤞":"⤞","↪":"↪","↬":"↬","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","ℚ":"ℚ","⤍":"⤍","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","⌉":"⌉","}":"}","р":"р","⤷":"⤷","⥩":"⥩","”":"”","”":"”","↳":"↳","ℜ":"ℜ","ℛ":"ℛ","ℜ":"ℜ","ℝ":"ℝ","▭":"▭","®":"®","®":"®","⥽":"⥽","⌋":"⌋","𝔯":"𝔯","⇁":"⇁","⇀":"⇀","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","→":"→","↣":"↣","⇁":"⇁","⇀":"⇀","⇄":"⇄","⇌":"⇌","⇉":"⇉","↝":"↝","⋌":"⋌","˚":"˚","≓":"≓","⇄":"⇄","⇌":"⇌","‏":"","⎱":"⎱","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⟧":"⟧","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","⇉":"⇉","›":"›","𝓇":"𝓇","↱":"↱","]":"]","’":"’","’":"’","⋌":"⋌","⋊":"⋊","▹":"▹","⊵":"⊵","▸":"▸","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","‚":"‚","≻":"≻","⪴":"⪴","⪸":"⪸","š":"š","≽":"≽","⪰":"⪰","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","≿":"≿","с":"с","⋅":"⋅","⊡":"⊡","⩦":"⩦","⇘":"⇘","⤥":"⤥","↘":"↘","↘":"↘","§":"§","§":"§",";":";","⤩":"⤩","∖":"∖","∖":"∖","✶":"✶","𝔰":"𝔰","⌢":"⌢","♯":"♯","щ":"щ","ш":"ш","∣":"∣","∥":"∥","­":"","­":"","σ":"σ","ς":"ς","ς":"ς","∼":"∼","⩪":"⩪","≃":"≃","≃":"≃","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","←":"←","∖":"∖","⨳":"⨳","⧤":"⧤","∣":"∣","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","♠":"♠","∥":"∥","⊓":"⊓","⊓︀":"⊓︀","⊔":"⊔","⊔︀":"⊔︀","⊏":"⊏","⊑":"⊑","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊐":"⊐","⊒":"⊒","□":"□","□":"□","▪":"▪","▪":"▪","→":"→","𝓈":"𝓈","∖":"∖","⌣":"⌣","⋆":"⋆","☆":"☆","★":"★","ϵ":"ϵ","ϕ":"ϕ","¯":"¯","⊂":"⊂","⫅":"⫅","⪽":"⪽","⊆":"⊆","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⊂":"⊂","⊆":"⊆","⫅":"⫅","⊊":"⊊","⫋":"⫋","⫇":"⫇","⫕":"⫕","⫓":"⫓","≻":"≻","⪸":"⪸","≽":"≽","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"⋩","≿":"≿","∑":"∑","♪":"♪","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"⊃","⫆":"⫆","⪾":"⪾","⫘":"⫘","⊇":"⊇","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⊃":"⊃","⊇":"⊇","⫆":"⫆","⊋":"⊋","⫌":"⫌","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤦":"⤦","↙":"↙","↙":"↙","⤪":"⤪","ß":"ß","ß":"ß","⌖":"⌖","τ":"τ","⎴":"⎴","ť":"ť","ţ":"ţ","т":"т","⃛":"⃛","⌕":"⌕","𝔱":"𝔱","∴":"∴","∴":"∴","θ":"θ","ϑ":"ϑ","ϑ":"ϑ","≈":"≈","∼":"∼"," ":" ","≈":"≈","∼":"∼","þ":"þ","þ":"þ","˜":"˜","×":"×","×":"×","⊠":"⊠","⨱":"⨱","⨰":"⨰","∭":"∭","⤨":"⤨","⊤":"⊤","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","⤩":"⤩","‴":"‴","™":"™","▵":"▵","▿":"▿","◃":"◃","⊴":"⊴","≜":"≜","▹":"▹","⊵":"⊵","◬":"◬","≜":"≜","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","≬":"≬","↞":"↞","↠":"↠","⇑":"⇑","⥣":"⥣","ú":"ú","ú":"ú","↑":"↑","ў":"ў","ŭ":"ŭ","û":"û","û":"û","у":"у","⇅":"⇅","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"𝔲","ù":"ù","ù":"ù","↿":"↿","↾":"↾","▀":"▀","⌜":"⌜","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","¨":"¨","¨":"¨","ų":"ų","𝕦":"𝕦","↑":"↑","↕":"↕","↿":"↿","↾":"↾","⊎":"⊎","υ":"υ","ϒ":"ϒ","υ":"υ","⇈":"⇈","⌝":"⌝","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","▵":"▵","▴":"▴","⇈":"⇈","ü":"ü","ü":"ü","⦧":"⦧","⇕":"⇕","⫨":"⫨","⫩":"⫩","⊨":"⊨","⦜":"⦜","ϵ":"ϵ","ϰ":"ϰ","∅":"∅","ϕ":"ϕ","ϖ":"ϖ","∝":"∝","↕":"↕","ϱ":"ϱ","ς":"ς","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","ϑ":"ϑ","⊲":"⊲","⊳":"⊳","в":"в","⊢":"⊢","∨":"∨","⊻":"⊻","≚":"≚","⋮":"⋮","|":"|","|":"|","𝔳":"𝔳","⊲":"⊲","⊂⃒":"⊂⃒","⊃⃒":"⊃⃒","𝕧":"𝕧","∝":"∝","⊳":"⊳","𝓋":"𝓋","⫋︀":"⫋︀","⊊︀":"⊊︀","⫌︀":"⫌︀","⊋︀":"⊋︀","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","∧":"∧","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","℘":"℘","≀":"≀","≀":"≀","𝓌":"𝓌","⋂":"⋂","◯":"◯","⋃":"⋃","▽":"▽","𝔵":"𝔵","⟺":"⟺","⟷":"⟷","ξ":"ξ","⟸":"⟸","⟵":"⟵","⟼":"⟼","⋻":"⋻","⨀":"⨀","𝕩":"𝕩","⨁":"⨁","⨂":"⨂","⟹":"⟹","⟶":"⟶","𝓍":"𝓍","⨆":"⨆","⨄":"⨄","△":"△","⋁":"⋁","⋀":"⋀","ý":"ý","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"ℨ","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"","‌":""},characters:{"Æ":"Æ","&":"&","Á":"Á","Ă":"Ă","Â":"Â","А":"А","𝔄":"𝔄","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","":"⁡","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","≎":"≎","Ч":"Ч","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","⇓":"⇓","⇐":"⇐","⇔":"⇔","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","É":"É","Ě":"Ě","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","Ѓ":"Ѓ",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","Ħ":"Ħ","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ī":"Ī","ⅈ":"ⅈ","∬":"∬","∫":"∫","⋂":"⋂","":"⁣","":"⁢","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","𝕃":"𝕃","↙":"↙","↘":"↘","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","":"​","\n":"
","𝔑":"𝔑","":"⁠"," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Õ":"Õ","⨷":"⨷","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",'"':""","𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","\t":"	","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ"," ":"  "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ū":"Ū",_:"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","а":"а","æ":"æ","𝔞":"𝔞","à":"à","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","⍼":"⍼","ą":"ą","𝕒":"𝕒","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","å":"å","𝒶":"𝒶","*":"*","ã":"ã","ä":"ä","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⎶":"⎶","б":"б","„":"„","⦰":"⦰","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","◯":"◯","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⤍":"⤍","⧫":"⧫","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","¦":"¦","𝒷":"𝒷","⁏":"⁏","\\":"\","⧅":"⧅","⟈":"⟈","•":"•","⪮":"⪮","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","⩍":"⩍","č":"č","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","⦲":"⦲","¢":"¢","𝔠":"𝔠","ч":"ч","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣",":":":",",":",","@":"@","∁":"∁","⩭":"⩭","𝕔":"𝕔","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋎":"⋎","⋏":"⋏","¤":"¤","∱":"∱","⌭":"⌭","⥥":"⥥","†":"†","ℸ":"ℸ","‐":"‐","⤏":"⤏","ď":"ď","д":"д","⇊":"⇊","⩷":"⩷","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","♦":"♦","ϝ":"ϝ","⋲":"⋲","÷":"÷","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍",$:"$","𝕕":"𝕕","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","⦦":"⦦","џ":"џ","⟿":"⟿","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","≕":"≕","э":"э","ė":"ė","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ϵ":"ϵ","=":"=","≟":"≟","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","η":"η","ð":"ð","ë":"ë","€":"€","!":"!","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi",fj:"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","⅓":"⅓","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","⪌":"⪌","ǵ":"ǵ","γ":"γ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","ℷ":"ℷ","ѓ":"ѓ","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪈":"⪈","⋧":"⋧","𝕘":"𝕘","ℊ":"ℊ","⪎":"⪎","⪐":"⪐","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⥸":"⥸","≩︀":"≩︀","ъ":"ъ","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ħ":"ħ","⁃":"⁃","í":"í","î":"î","и":"и","е":"е","¡":"¡","𝔦":"𝔦","ì":"ì","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","℅":"℅","∞":"∞","⧝":"⧝","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","¿":"¿","𝒾":"𝒾","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","ĩ":"ĩ","і":"і","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⤛":"⤛","⤎":"⤎","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","λ":"λ","⦑":"⦑","⪅":"⪅","«":"«","⤟":"⤟","⤝":"⤝","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","л":"л","⤶":"⤶","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","⇇":"⇇","⋋":"⋋","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⋖":"⋖","⥼":"⥼","𝔩":"𝔩","⪑":"⪑","⥪":"⥪","▄":"▄","љ":"љ","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","≨":"≨","⪉":"⪉","⪇":"⪇","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟼":"⟼","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","◊":"◊","(":"(","⦓":"⦓","⥭":"⥭","":"‎","⊿":"⊿","‹":"‹","𝓁":"𝓁","⪍":"⪍","⪏":"⪏","‚":"‚","ł":"ł","⪦":"⪦","⩹":"⩹","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","∺":"∺","¯":"¯","♂":"♂","✠":"✠","▮":"▮","⨩":"⨩","м":"м","—":"—","𝔪":"𝔪","℧":"℧","µ":"µ","⫰":"⫰","−":"−","⨪":"⨪","⫛":"⫛","⊧":"⊧","𝕞":"𝕞","𝓂":"𝓂","μ":"μ","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","⇏":"⇏","⊯":"⊯","⊮":"⊮","ń":"ń","∠⃒":"∠⃒","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","♮":"♮","⩃":"⩃","ň":"ň","ņ":"ņ","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","⇗":"⇗","⤤":"⤤","≐̸":"≐̸","⤨":"⤨","𝔫":"𝔫","↮":"↮","⫲":"⫲","⋼":"⋼","⋺":"⋺","њ":"њ","≦̸":"≦̸","↚":"↚","‥":"‥","𝕟":"𝕟","¬":"¬","⋹̸":"⋹̸","⋵̸":"⋵̸","⋷":"⋷","⋶":"⋶","⋾":"⋾","⋽":"⋽","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","𝓃":"𝓃","⊄":"⊄","⫅̸":"⫅̸","⊅":"⊅","⫆̸":"⫆̸","ñ":"ñ","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","⤧":"⤧","ó":"ó","ô":"ô","о":"о","ő":"ő","⨸":"⨸","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","⧁":"⧁","⦵":"⦵","⦾":"⦾","⦻":"⦻","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","∨":"∨","⩝":"⩝","ℴ":"ℴ","ª":"ª","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ø":"ø","⊘":"⊘","õ":"õ","⨶":"⨶","ö":"ö","⌽":"⌽","¶":"¶","⫳":"⫳","⫽":"⫽","п":"п","%":"%",".":".","‰":"‰","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","☎":"☎","π":"π","ϖ":"ϖ","ℎ":"ℎ","+":"+","⨣":"⨣","⨢":"⨢","⨥":"⨥","⩲":"⩲","⨦":"⨦","⨧":"⨧","⨕":"⨕","𝕡":"𝕡","£":"£","⪳":"⪳","⪷":"⪷","⪹":"⪹","⪵":"⪵","⋨":"⋨","′":"′","⌮":"⌮","⌒":"⌒","⌓":"⌓","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","⨖":"⨖","?":"?","⤜":"⤜","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","⦳":"⦳","⦒":"⦒","⦥":"⦥","»":"»","⥵":"⥵","⤠":"⤠","⤳":"⤳","⤞":"⤞","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","р":"р","⤷":"⤷","⥩":"⥩","↳":"↳","▭":"▭","⥽":"⥽","𝔯":"𝔯","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","⇉":"⇉","⋌":"⋌","˚":"˚","":"‏","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","›":"›","𝓇":"𝓇","⋊":"⋊","▹":"▹","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","⪴":"⪴","⪸":"⪸","š":"š","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","с":"с","⋅":"⋅","⩦":"⩦","⇘":"⇘","§":"§",";":";","⤩":"⤩","✶":"✶","𝔰":"𝔰","♯":"♯","щ":"щ","ш":"ш","":"­","σ":"σ","ς":"ς","⩪":"⩪","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","⨳":"⨳","⧤":"⧤","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","⊓︀":"⊓︀","⊔︀":"⊔︀","𝓈":"𝓈","☆":"☆","⊂":"⊂","⫅":"⫅","⪽":"⪽","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⫇":"⫇","⫕":"⫕","⫓":"⫓","♪":"♪","¹":"¹","²":"²","³":"³","⫆":"⫆","⪾":"⪾","⫘":"⫘","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤪":"⤪","ß":"ß","⌖":"⌖","τ":"τ","ť":"ť","ţ":"ţ","т":"т","⌕":"⌕","𝔱":"𝔱","θ":"θ","ϑ":"ϑ","þ":"þ","×":"×","⨱":"⨱","⨰":"⨰","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","‴":"‴","▵":"▵","≜":"≜","◬":"◬","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","⥣":"⥣","ú":"ú","ў":"ў","ŭ":"ŭ","û":"û","у":"у","ű":"ű","⥾":"⥾","𝔲":"𝔲","ù":"ù","▀":"▀","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","ų":"ų","𝕦":"𝕦","υ":"υ","⇈":"⇈","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","ü":"ü","⦧":"⦧","⫨":"⫨","⫩":"⫩","⦜":"⦜","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","в":"в","⊻":"⊻","≚":"≚","⋮":"⋮","𝔳":"𝔳","𝕧":"𝕧","𝓋":"𝓋","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","𝓌":"𝓌","𝔵":"𝔵","ξ":"ξ","⋻":"⋻","𝕩":"𝕩","𝓍":"𝓍","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","":"‍","":"‌"}}};var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},Md.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536},Md.highSurrogateFrom=55296,Md.highSurrogateTo=56319;var jd=he&&he.__assign||function(){return jd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jd.apply(this,arguments)};Object.defineProperty(Pd,"__esModule",{value:!0});var qd=Rd,zd=Ed,Ud=Md,Id=jd(jd({},qd.namedReferences),{all:qd.namedReferences.html5}),Vd={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,extensive:/[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g},Ld={mode:"specialChars",level:"all",numeric:"decimal"};Pd.encode=function(e,t){var r=void 0===(s=(i=void 0===t?Ld:t).mode)?"specialChars":s,n=void 0===(h=i.numeric)?"decimal":h,o=i.level;if(!e)return"";var i,s,a=Vd[r],c=Id[void 0===o?"all":o].characters,l="hexadecimal"===n;if(a.lastIndex=0,i=a.exec(e)){s="";var h=0;do{h!==i.index&&(s+=e.substring(h,i.index));var d=c[o=i[0]];if(!d){var u=o.length>1?Ud.getCodePoint(o,0):o.charCodeAt(0);d=(l?"&#x"+u.toString(16):"&#"+u)+";"}s+=d,h=i.index+o.length}while(i=a.exec(e));h!==e.length&&(s+=e.substring(h))}else s=e;return s};var Wd,Hd={scope:"body",level:"all"},Gd=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,Kd=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,Xd={xml:{strict:Gd,attribute:Kd,body:qd.bodyRegExps.xml},html4:{strict:Gd,attribute:Kd,body:qd.bodyRegExps.html4},html5:{strict:Gd,attribute:Kd,body:qd.bodyRegExps.html5}},Zd=jd(jd({},Xd),{all:Xd.html5}),Yd=String.fromCharCode,Jd=Yd(65533),Qd={level:"all"};Pd.decodeEntity=function(e,t){var r=void 0===(n=(void 0===t?Qd:t).level)?"all":n;if(!e)return"";var n=e;e[e.length-1];var o=Id[r].entities[e];if(o)n=o;else if("&"===e[0]&&"#"===e[1]){var i=e[2],s="x"==i||"X"==i?parseInt(e.substr(3),16):parseInt(e.substr(2));n=s>=1114111?Jd:s>65535?Ud.fromCodePoint(s):Yd(zd.numericUnicodeMap[s]||s)}return n},Pd.decode=function(e,t){var r=void 0===t?Hd:t,n=r.level,o=void 0===n?"all":n,i=r.scope,s=void 0===i?"xml"===o?"strict":"body":i;if(!e)return"";var a=Zd[o][s],c=Id[o].entities,l="attribute"===s,h="strict"===s;a.lastIndex=0;var d,u=a.exec(e);if(u){d="";var f=0;do{f!==u.index&&(d+=e.substring(f,u.index));var p=u[0],g=p,m=p[p.length-1];if(l&&"="===m)g=p;else if(h&&";"!==m)g=p;else{var b=c[p];if(b)g=b;else if("&"===p[0]&&"#"===p[1]){var y=p[2],v="x"==y||"X"==y?parseInt(p.substr(3),16):parseInt(p.substr(2));g=v>=1114111?Jd:v>65535?Ud.fromCodePoint(v):Yd(zd.numericUnicodeMap[v]||v)}}d+=g,f=u.index+p.length}while(u=a.exec(e));f!==e.length&&(d+=e.substring(f))}else d=e;return d},function(e){var t,r=he&&he.__extends||(t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},t(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.isBlock=e.parse=e.Matcher=e.HTMLElement=e.CommentNode=e.TextNode=e.AbstractNode=e.NodeType=void 0;var n,o=Pd;!function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE"}(n=e.NodeType||(e.NodeType={}));var i=function(){function e(){this.childNodes=[]}return Object.defineProperty(e.prototype,"text",{get:function(){return(0,o.decode)(this.rawText)},enumerable:!1,configurable:!0}),e.prototype.remove=function(){return this.parentNode&&this.parentNode.removeChild(this),this},e}();e.AbstractNode=i;var s=function(e){function t(t){var r=e.call(this)||this;return r.nodeType=n.TEXT_NODE,r.value=t,r}return r(t,e),Object.defineProperty(t.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWhitespace",{get:function(){return/^(\s| )*$/.test(this.rawText)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.rawText},t}(i);e.TextNode=s;var a=function(e){function t(t){var r=e.call(this)||this;return r.nodeType=n.COMMENT_NODE,r.value=t,r}return r(t,e),Object.defineProperty(t.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"\x3c!--".concat(this.rawText,"--\x3e")},t}(i);e.CommentNode=a;var c={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function l(e){return e[e.length-1]}var h=function(e){function t(t,r,o){void 0===r&&(r=""),void 0===o&&(o=null);var i=e.call(this)||this;i.tagName=t,i.rawAttrs=r,i.classNames=[],i.nodeType=n.ELEMENT_NODE,i.rawAttrs=r,i.parentNode=o,i.childNodes=[];for(var s={},a=void 0;a=g.exec(r);)s[a[2]]=a[4]||a[5]||a[6];return s.id&&(i.id=s.id),s.class&&(i.classNames=s.class.split(/\s+/)),i}return r(t,e),t.prototype.removeChild=function(e){this.childNodes=this.childNodes.filter((function(t){return t!==e})),e instanceof t&&(e.parentNode=null)},t.prototype.exchangeChild=function(e,r){var n=this.childNodes.findIndex((function(t){return t===e}));n>=0&&(this.childNodes[n]=r,e instanceof t&&(e.parentNode=null))},Object.defineProperty(t.prototype,"rawText",{get:function(){for(var e="",t=0;t<this.childNodes.length;t++)e+=this.childNodes[t].rawText;return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"structuredText",{get:function(){var e=[],t=[e];return function r(o){if(o.nodeType===n.ELEMENT_NODE)c[o.tagName]?(e.length>0&&t.push(e=[]),o.childNodes.forEach(r),e.length>0&&t.push(e=[])):o.childNodes.forEach(r);else if(o.nodeType===n.TEXT_NODE)if(o.isWhitespace)e.prependWhitespace=!0;else{var i=o.text;e.prependWhitespace&&(i=" "+i,e.prependWhitespace=!1),e.push(i)}}(this),t.map((function(e){return e.join("").trim().replace(/\s{2,}/g," ")})).join("\n").replace(/\s+$/,"")},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this.tagName;if(e){var t=/^(img|br|hr|area|base|input|doctype|link|meta)$/i.test(e),r=this.rawAttrs?" "+this.rawAttrs:"";return t?"<".concat(e).concat(r," />"):"<".concat(e).concat(r,">").concat(this.innerHTML,"</").concat(e,">")}return this.innerHTML},Object.defineProperty(t.prototype,"innerHTML",{get:function(){return this.childNodes.map((function(e){return e.toString()})).join("")},set:function(e){var t=this,r=x(e);this.childNodes.forEach((function(e){return e.remove()})),r.childNodes.forEach((function(e){return t.appendChild(e)}))},enumerable:!1,configurable:!0}),t.prototype.set_content=function(e){if(e instanceof i)e=[e];else if("string"==typeof e){var t=x(e);e=t.childNodes.length?t.childNodes:[new s(e)]}this.childNodes=e},Object.defineProperty(t.prototype,"outerHTML",{get:function(){return this.toString()},enumerable:!1,configurable:!0}),t.prototype.trimRight=function(e){for(var t=0;t<this.childNodes.length;t++){var r=this.childNodes[t];if(r.nodeType===n.ELEMENT_NODE)r.trimRight(e);else{var o=r.rawText.search(e);o>-1&&(r.value=r.rawText.substr(0,o),this.childNodes.length=t+1)}}return this},Object.defineProperty(t.prototype,"structure",{get:function(){var e=[],t=0;function r(r){e.push(" ".repeat(t)+r)}return function e(o){var i=o.id?"#"+o.id:"",s=o.classNames.length?"."+o.classNames.join("."):"";r(o.tagName+i+s),t++;for(var a=0;a<o.childNodes.length;a++){var c=o.childNodes[a];c.nodeType===n.ELEMENT_NODE?e(c):c.nodeType===n.TEXT_NODE&&(c.isWhitespace||r("#text"))}t--}(this),e.join("\n")},enumerable:!1,configurable:!0}),t.prototype.removeWhitespace=function(){for(var e=0,t=0;t<this.childNodes.length;t++){var r=this.childNodes[t];if(r.nodeType===n.TEXT_NODE){if(r.isWhitespace)continue;r.value=r.rawText.trim()}else r.nodeType===n.ELEMENT_NODE&&r.removeWhitespace();this.childNodes[e++]=r}return this.childNodes.length=e,this},t.prototype.querySelectorAll=function(e){var t,r=this;if(e instanceof f)(t=e).reset();else{if(e.includes(",")){var o=e.split(",");return Array.from(o.reduce((function(e,t){return r.querySelectorAll(t.trim()).reduce((function(e,t){return e.add(t)}),e)}),new Set))}t=new f(e)}for(var i=[],s=[],a=0;a<this.childNodes.length;a++)for(s.push([this.childNodes[a],0,!1]);s.length;){var c=l(s),h=c[0];if(0===c[1]){if(h.nodeType!==n.ELEMENT_NODE){s.pop();continue}if((c[2]=t.advance(h))&&t.matched){i.push(h),t.rewind(),s.pop();continue}}c[1]<h.childNodes.length?s.push([h.childNodes[c[1]++],0,!1]):(c[2]&&t.rewind(),s.pop())}return i},t.prototype.querySelector=function(e){var t;e instanceof f?(t=e).reset():t=new f(e);for(var r=[],o=0;o<this.childNodes.length;o++)for(r.push([this.childNodes[o],0,!1]);r.length;){var i=l(r),s=i[0];if(0===i[1]){if(s.nodeType!==n.ELEMENT_NODE){r.pop();continue}if((i[2]=t.advance(s))&&t.matched)return s}i[1]<s.childNodes.length?r.push([s.childNodes[i[1]++],0,!1]):(i[2]&&t.rewind(),r.pop())}return null},t.prototype.appendChild=function(e){return this.childNodes.push(e),e instanceof t&&(e.parentNode=this),e},t.prototype.prependChild=function(e){return this.childNodes.unshift(e),e instanceof t&&(e.parentNode=this),e},Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.childNodes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return l(this.childNodes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){if(this._attrs)return this._attrs;this._attrs={};var e=this.rawAttributes;for(var t in e)this._attrs[t]=(0,o.decode)(e[t]);return this._attrs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawAttributes",{get:function(){if(this._rawAttrs)return this._rawAttrs;var e={};if(this.rawAttrs)for(var t=void 0;t=m.exec(this.rawAttrs);)e[t[1]]=t[4]||t[5]||t[6]||"";return this._rawAttrs=e,e},enumerable:!1,configurable:!0}),t.prototype.setAttribute=function(e,t){"id"===e?this.id=t:"class"===e&&(this.classNames=t.split(/\s+/));var r=this.attributes;void 0===t?delete r[e]:r[e]=t+"",this._rawAttrs&&(void 0===t?delete this._rawAttrs[e]:this._rawAttrs[e]=(0,o.encode)(t+"")),this.rawAttrs=Object.keys(r).map((function(e){return e+(""===r[e]?"":'="'+(0,o.encode)(r[e])+'"')})).join(" ")},t.prototype.removeAttribute=function(e){this.setAttribute(e,void 0)},t.prototype.setAttributes=function(e){var t=this;e.id?this.id=e.id:e.class&&(this.classNames=e.class.split(/\s+/)),this.attributes&&(Object.keys(this.attributes).forEach((function(e){return delete t.attributes[e]})),Object.keys(e).forEach((function(r){return t.attributes[r]=e[r]+""}))),this.rawAttributes&&(Object.keys(this.rawAttributes).forEach((function(e){return delete t.rawAttributes[e]})),Object.keys(e).forEach((function(r){return t.rawAttributes[r]=(0,o.encode)(e[r]+"")}))),this.rawAttrs=Object.keys(e).map((function(t){return t+(""===e[t]?"":'="'+(0,o.encode)(e[t]+"")+'"')})).join(" ")},t}(i);e.HTMLElement=h;var d={},u={f145:function(e,t,r,n,o){if(t=t||"",r=r||[],e.id!=t.substr(1))return!1;for(var i=r,s=0;s<i.length;s++)if(-1===e.classNames.indexOf(i[s]))return!1;return!0},f45:function(e,t,r,n,o){for(var i=r=r||[],s=0;s<i.length;s++)if(-1===e.classNames.indexOf(i[s]))return!1;return!0},f15:function(e,t,r,n,o){return t=t||"",e.id==t.substr(1)},f1:function(e,t,r,n,o){if(t=t||"",e.id!=t.substr(1))return!1},f5:function(e,t,r,n,o){return!0},f245:function(e,t,r,n,o){n=n||"",o=o||"";var i=e.attributes;for(var s in i){var a=i[s];if(s==n&&a==o)return!0}return!1},f25:function(e,t,r,n,o){n=n||"",o=o||"";var i=e.attributes;for(var s in i){var a=i[s];if(s==n&&a==o)return!0}return!1},f2:function(e,t,r,n,o){n=n||"",o=o||"";var i=e.attributes;for(var s in i){var a=i[s];if(s==n&&a==o)return!0}return!1},f345:function(e,t,r,n,o){if(t=t||"",r=r||[],e.tagName!=t)return!1;for(var i=r,s=0;s<i.length;s++)if(-1===e.classNames.indexOf(i[s]))return!1;return!0},f35:function(e,t,r,n,o){return t=t||"",e.tagName==t},f3:function(e,t,r,n,o){if(t=t||"",e.tagName!=t)return!1}},f=function(){function e(e){this.nextMatch=0,u.f5=u.f5,this.matchers=e.split(" ").map((function(e){if(d[e])return d[e];var t,r=e.split("."),n=r[0],o=r.slice(1).sort(),i='"use strict";',s="f",a="",c="";if(n&&"*"!=n)if("#"==n[0])i+="if (el.id != "+JSON.stringify(n.substr(1))+") return false;",s+="1";else if(t=n.match(/^\[\s*(\S+)\s*(=|!=)\s*((((["'])([^\6]*)\6))|(\S*?))\]\s*/)){a=t[1];var l=t[2];if("="!==l&&"!="!==l)throw new Error("Selector not supported, Expect [key${op}value].op must be =,!=");"="===l&&(l="=="),c=t[7]||t[8],i+='let attrs = el.attributes;for (let key in attrs){const val = attrs[key]; if (key == "'.concat(a,'" && val == "').concat(c,'"){return true;}} return false;'),s+="2"}else i+="if (el.tagName != "+JSON.stringify(n)+") return false;",s+="3";o.length>0&&(i+="for (let cls = "+JSON.stringify(o)+", i = 0; i < cls.length; i++) if (el.classNames.indexOf(cls[i]) === -1) return false;",s+="4"),i+="return true;";var h={func:u[s+="5"],tagName:n||"",classes:o||"",attr_key:a||"",value:c||""};return i=i||"",d[e]=h}))}return e.prototype.advance=function(e){return!!(this.nextMatch<this.matchers.length&&this.matchers[this.nextMatch].func(e,this.matchers[this.nextMatch].tagName,this.matchers[this.nextMatch].classes,this.matchers[this.nextMatch].attr_key,this.matchers[this.nextMatch].value))&&(this.nextMatch++,!0)},e.prototype.rewind=function(){this.nextMatch--},Object.defineProperty(e.prototype,"matched",{get:function(){return this.nextMatch==this.matchers.length},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.nextMatch=0},e.prototype.flushCache=function(){d={}},e}();e.Matcher=f;var p=/<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)((\s+[a-z][-.:0-9_a-z]*(\s*=\s*("[^"]*"|'([^']*')|([^\s\/>]+)))?)*)\s*(\/?)>/gi,g=/(^|\s)(id|class)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/gi,m=/([a-z][-.:0-9_a-z]*)(\s*=\s*("([^"]*)"|'([^']*)'|(\S+)))?/gi,b={area:!0,base:!0,br:!0,col:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,source:!0},y={li:{li:!0},p:{p:!0,div:!0},b:{div:!0},td:{td:!0,th:!0},th:{td:!0,th:!0},h1:{h1:!0},h2:{h2:!0},h3:{h3:!0},h4:{h4:!0},h5:{h5:!0},h6:{h6:!0}},v={li:{ul:!0,ol:!0},a:{div:!0},b:{div:!0},i:{div:!0},p:{div:!0},td:{tr:!0,table:!0},th:{tr:!0,table:!0}},w={script:!0,noscript:!0,style:!0,pre:!0};function x(e,t){var r,n=new h(null),o=n,i=[n],c=0;for(t=t||{};r=p.exec(e);){if(c+r[0].length<p.lastIndex){var d=e.substring(c,p.lastIndex-r[0].length);o.appendChild(new s(d))}if(c=p.lastIndex,"!"!=r[0][1]){if(t.lowerCaseTagName&&(r[2]=r[2].toLowerCase()),!r[1]&&(!r[9]&&y[o.tagName]&&y[o.tagName][r[2]]&&(i.pop(),o=l(i)),o=o.appendChild(new h(r[2],r[3].trim())),i.push(o),w[r[2]])){var u="</"+r[2]+">",f=e.indexOf(u,p.lastIndex);if(t[r[2]]){d=void 0;(d=-1==f?e.substr(p.lastIndex):e.substring(p.lastIndex,f)).length>0&&o.appendChild(new s(d))}-1==f?c=p.lastIndex=e.length+1:(c=p.lastIndex=f+u.length,r[1]="true")}if(r[1]||r[9]||b[r[2]])for(;;){if(o.tagName==r[2]){i.pop(),o=l(i);break}if(!v[o.tagName]||!v[o.tagName][r[2]])break;i.pop(),o=l(i)}}else if(t.comment){var d=e.substring(c-3,c-r[0].length+4);o.appendChild(new a(d))}}c<e.length&&n.appendChild(new s(e.substring(c))),n.valid=1===i.length;for(var g=function(){var e=i.pop(),t=l(i);e.parentNode&&e.parentNode instanceof h&&e.parentNode.parentNode&&(e.parentNode===t&&e.tagName===t.tagName?(t.removeChild(e),e.childNodes.forEach((function(e){t.parentNode.appendChild(e)})),i.pop()):(t.removeChild(e),e.childNodes.forEach((function(e){t.appendChild(e)}))))};i.length>1;)g();return n}e.parse=x;var F=["html","body","address","article","aside","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hr","li","main","nav","noscript","ol","p","pre","section","tfoot","table","tbody","ul","video","th","td","tr","h1","h2","h3","h4","h5","h6"];e.isBlock=function(e){return e.nodeType===n.ELEMENT_NODE&&e.tagName&&F.includes(e.tagName.toLowerCase())}}(Nd);class _d{constructor(e,t={}){this.svg=e,this.images=t}}e.BlendMode=void 0,(Wd=e.BlendMode||(e.BlendMode={})).Normal="Normal",Wd.Multiply="Multiply",Wd.Screen="Screen",Wd.Overlay="Overlay",Wd.Darken="Darken",Wd.Lighten="Lighten",Wd.ColorDodge="ColorDodge",Wd.ColorBurn="ColorBurn",Wd.HardLight="HardLight",Wd.SoftLight="SoftLight",Wd.Difference="Difference",Wd.Exclusion="Exclusion";const $d=[1,0,0,1,0,0],eu=([e,t,r,n,o,i],[s,a,c,l,h,d])=>[e*s+r*a,t*s+n*a,e*c+r*l,t*c+n*l,e*h+r*d+o,t*h+n*d+i],tu=([e,t,r,n,o,i],{x:s,y:a})=>({x:e*s+r*a+o,y:t*s+n*a+i}),ru=(e,t)=>{switch(e){case"scale":case"scaleX":case"scaleY":{const[r,n=r]=t;return["scaleY"===e?1:r,0,0,"scaleX"===e?1:n,0,0]}case"translate":case"translateX":case"translateY":{const[r,n=r]=t;return[1,0,0,1,"translateY"===e?0:r,"translateX"===e?0:-n]}case"rotate":{const[e,r=0,n=0]=t,o=ru("translate",[r,n]),i=ru("translate",[-r,-n]),s=Sl(-e),a=[Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0];return eu(eu(o,a),i)}case"skewY":case"skewX":{const r=Sl(-t[0]),n=Math.tan(r);return[1,"skewY"===e?n:0,"skewX"===e?n:0,1,0,0]}case"matrix":{const[e,r,n,o,i,s]=t,a=ru("scale",[1,-1]);return eu(eu(a,[e,r,n,o,i,s]),a)}default:return $d}},nu=(e,t,r)=>eu(e,ru(t,r)),ou={butt:e.LineCapStyle.Butt,round:e.LineCapStyle.Round,square:e.LineCapStyle.Projecting},iu={evenodd:e.FillRule.EvenOdd,nonzero:e.FillRule.NonZero},su={bevel:e.LineJoinStyle.Bevel,miter:e.LineJoinStyle.Miter,round:e.LineJoinStyle.Round},au=(e,t)=>({text(r){const n=r.svgAttributes.textAnchor,o=r.svgAttributes.dominantBaseline,i=r.text.trim().replace(/\s/g," "),s=r.svgAttributes.fontSize||12,a=t.fonts&&((e,t)=>{const r=e.fontFamily;if(!r)return;const n="bold"===e.fontWeight||Number(e.fontWeight)>=700,o="italic"===e.fontStyle,i=(e,r,n)=>t[n+(e?"_bold":"")+(r?"_italic":"")],s=Object.keys(t).find((e=>e.startsWith(r)));return i(n,o,r)||i(n,!1,r)||i(!1,o,r)||i(!1,!1,r)||(s?t[s]:void 0)})(r.svgAttributes,t.fonts),c=(a||e.getFont()[0]).widthOfTextAtSize(i,s),l=(a||e.getFont()[0]).heightAtSize(s),h=(a||e.getFont()[0]).heightAtSize(s,{descender:!1}),d="middle"===n?c/2:"end"===n?c:0;let u=0;switch(o){case"middle":case"central":u=h-l/2;break;case"mathematical":u=.6*s;break;case"hanging":u=h;break;case"text-before-edge":u=s;break;case"ideographic":case"text-after-edge":u=h-l;break;default:u=0}e.drawText(i,{x:-d,y:-u,font:a,size:s,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},line(r){e.drawLine({start:{x:r.svgAttributes.x1||0,y:-r.svgAttributes.y1||0},end:{x:r.svgAttributes.x2||0,y:-r.svgAttributes.y2||0},thickness:r.svgAttributes.strokeWidth,color:r.svgAttributes.stroke,opacity:r.svgAttributes.strokeOpacity,lineCap:r.svgAttributes.strokeLineCap,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},path(r){r.svgAttributes.d&&e.drawSvgPath(r.svgAttributes.d,{x:0,y:0,borderColor:r.svgAttributes.stroke,borderWidth:r.svgAttributes.strokeWidth,borderOpacity:r.svgAttributes.strokeOpacity,borderLineCap:r.svgAttributes.strokeLineCap,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,fillRule:r.svgAttributes.fillRule,matrix:nu(r.svgAttributes.matrix,"scale",[1,-1]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},image(r){var n,o;const{src:i}=r.svgAttributes;if(!i||!(null===(n=t.images)||void 0===n?void 0:n[i]))return;const s=null===(o=t.images)||void 0===o?void 0:o[i],{x:a,y:c,width:l,height:h}=uu(s.width,s.height,r.svgAttributes.width||s.width,r.svgAttributes.height||s.height,r.svgAttributes.preserveAspectRatio);e.drawImage(s,{x:a,y:-c-h,width:l,height:h,opacity:r.svgAttributes.fillOpacity,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},rect(r){(r.svgAttributes.fill||r.svgAttributes.stroke)&&e.drawRectangle({x:0,y:0,width:r.svgAttributes.width,height:r.svgAttributes.height,rx:r.svgAttributes.rx,ry:r.svgAttributes.ry,borderColor:r.svgAttributes.stroke,borderWidth:r.svgAttributes.strokeWidth,borderOpacity:r.svgAttributes.strokeOpacity,borderLineCap:r.svgAttributes.strokeLineCap,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,matrix:nu(r.svgAttributes.matrix,"translateY",[r.svgAttributes.height]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},ellipse(r){e.drawEllipse({x:r.svgAttributes.cx||0,y:-(r.svgAttributes.cy||0),xScale:r.svgAttributes.rx,yScale:r.svgAttributes.ry,borderColor:r.svgAttributes.stroke,borderWidth:r.svgAttributes.strokeWidth,borderOpacity:r.svgAttributes.strokeOpacity,borderLineCap:r.svgAttributes.strokeLineCap,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},circle:r=>au(e,t).ellipse(r)}),cu=(e,t,r,n)=>{const o=t[r]||e[r];return o||void 0===n?o:n},lu=e=>{const t=/([^:\s]+)*\s*:\s*([^;]+)/g,r={};let n=t.exec(e);for(;null!==n;)r[n[1]]=n[2],n=t.exec(e);return r},hu=(e,t)=>{if(!e||0===e.length)return;if(["none","transparent"].includes(e))return;if("currentColor"===e)return t||hu("#000000");const r=pd(e);return{rgb:r.rgb,alpha:r.alpha?r.alpha+"":void 0}},du=(e,t,r)=>{var n,o,i,s;const a=e.attributes,c=lu(a.style),l=cu(a,c,"width",""),h=cu(a,c,"height",""),d=hu(cu(a,c,"fill")),u=cu(a,c,"fill-opacity"),f=cu(a,c,"opacity"),p=hu(cu(a,c,"stroke")),g=cu(a,c,"stroke-opacity"),m=cu(a,c,"stroke-linecap"),b=cu(a,c,"stroke-linejoin"),y=cu(a,c,"fill-rule"),v=cu(a,c,"stroke-width"),w=cu(a,c,"font-family"),x=cu(a,c,"font-style"),F=cu(a,c,"font-weight"),S=cu(a,c,"font-size"),k=cu(a,c,"mix-blend-mode"),C=mu(l,t.width),A=mu(h,t.height),T=mu(a.x,t.width),D=mu(a.y,t.height),O=mu(a.x1,t.width),B=mu(a.x2,t.width),N=mu(a.y1,t.height),P=mu(a.y2,t.height),R=mu(a.cx,t.width),E=mu(a.cy,t.height),M=mu(a.rx||a.r,t.width),j=mu(a.ry||a.r,t.height),q={fontFamily:w||t.fontFamily,fontStyle:x||t.fontStyle,fontWeight:F||t.fontWeight,fontSize:null!==(n=mu(S))&&void 0!==n?n:t.fontSize,fill:(null==d?void 0:d.rgb)||t.fill,fillOpacity:null!==(o=mu(u||f||(null==d?void 0:d.alpha)))&&void 0!==o?o:t.fillOpacity,fillRule:iu[y]||t.fillRule,stroke:(null==p?void 0:p.rgb)||t.stroke,strokeWidth:null!==(i=mu(v))&&void 0!==i?i:t.strokeWidth,strokeOpacity:null!==(s=mu(g||f||(null==p?void 0:p.alpha)))&&void 0!==s?s:t.strokeOpacity,strokeLineCap:ou[m]||t.strokeLineCap,strokeLineJoin:su[b]||t.strokeLineJoin,width:C||t.width,height:A||t.height,rotation:t.rotation,viewBox:"svg"===e.tagName&&e.attributes.viewBox?yu(e.attributes.viewBox):t.viewBox,blendMode:bu(k)||t.blendMode},z={src:a.src||a.href||a["xlink:href"],textAnchor:a["text-anchor"],dominantBaseline:a["dominant-baseline"],preserveAspectRatio:a.preserveAspectRatio};let U=a.transform||"";["translate","translateX","translateY","skewX","skewY","rotate","scale","scaleX","scaleY","matrix"].forEach((e=>{a[e]&&(U=a[e]+" "+U)})),(T||D)&&(U+=`translate(${T||0} ${D||0}) `);let I=r;if(U){const e=/(\w+)\((.+?)\)/g;let t=e.exec(U);for(;null!==t;){const[,r,n]=t,o=(n||"").split(/\s*,\s*|\s+/).filter((e=>e.length>0)).map((e=>parseFloat(e)));I=nu(I,r,o),t=e.exec(U)}}if(z.x=T,z.y=D,(a.cx||a.cy)&&(z.cx=R,z.cy=E),(a.rx||a.ry||a.r)&&(z.rx=M,z.ry=j),(a.x1||a.y1)&&(z.x1=O,z.y1=N),(a.x2||a.y2)&&(z.x2=B,z.y2=P),(a.width||a.height)&&(z.width=null!=C?C:t.width,z.height=null!=A?A:t.height),a.d&&(I=nu(I,"scale",[1,-1]),z.d=a.d),q.fontFamily){const e=q.fontFamily.match(/^"(.*?)"|^'(.*?)'/);e&&(q.fontFamily=e[1]||e[2])}return q.strokeWidth&&(z.strokeWidth=q.strokeWidth),{inherited:q,svgAttributes:z,tagName:e.tagName,matrix:I}},uu=(e,t,r,n,o)=>{if("none"===o)return{x:0,y:0,width:r,height:n};const i=e/t,s=r/n,a=s>i?i*n:r,c=s>=i?n:r/i,l=r-a,h=n-c,[d,u]=(()=>{switch(o){case"xMinYMin":return[0,0];case"xMidYMin":return[l/2,0];case"xMaxYMin":case"xMaxYMid":return[l,h/2];case"xMinYMid":case"xMinYMax":return[0,h];case"xMidYMax":return[l/2,h];case"xMaxYMax":return[l,h];default:return[l/2,h/2]}})();return{x:d,y:u,width:a,height:c}},fu=(e,t,r,n)=>{if(e.nodeType===Nd.NodeType.COMMENT_NODE)return[];if(e.nodeType===Nd.NodeType.TEXT_NODE)return[];if("g"===e.tagName)return gu(e,t,r,n);if("svg"===e.tagName)return pu(e,t,r,n);{"polygon"===e.tagName&&(e.tagName="path",e.attributes.d=`M${e.attributes.points}Z`,delete e.attributes.points);const o=du(e,t,r),i=Object.assign(Object.assign(Object.assign({},o.inherited),o.svgAttributes),{matrix:o.matrix,clipSpaces:n});return Object.assign(e,{svgAttributes:i}),[e]}},pu=(e,t,r,n)=>{var o,i;null!==(o=e.attributes.width)&&void 0!==o||e.setAttribute("width",t.viewBox.width+""),null!==(i=e.attributes.height)&&void 0!==i||e.setAttribute("height",t.viewBox.height+"");const s=du(e,t,r),a=[],c=e.attributes.viewBox?yu(e.attributes.viewBox):e.attributes.width&&e.attributes.height?yu(`0 0 ${e.attributes.width} ${e.attributes.height}`):t.viewBox,l=parseFloat(e.attributes.x)||0,h=parseFloat(e.attributes.y)||0;let d=nu(r,"translate",[l,h]);const{clipBox:u,content:f}=((e,t,r,n,o,i="xMidYMid")=>{const[s,a="meet"]=i.split(" "),c=n/t,l=o/r,h=nu(e,"scale",[c,l]);if("none"===s)return{clipBox:h,content:h};const d="slice"===a?Math.max(c,l):Math.min(c,l),u=n-t*d,f=o-r*d,[p,g]=(()=>{switch(s){case"xMinYMin":return[0,0];case"xMidYMin":return[u/2,0];case"xMaxYMin":case"xMaxYMid":return[u,f/2];case"xMinYMid":case"xMinYMax":return[0,f];case"xMidYMax":return[u/2,f];case"xMaxYMax":return[u,f];default:return[u/2,f/2]}})();return{clipBox:h,content:nu(nu(e,"translate",[p,g]),"scale",[d])}})(d,c.width,c.height,parseFloat(e.attributes.width),parseFloat(e.attributes.height),e.attributes.preserveAspectRatio),p={topLeft:tu(u,{x:0,y:0}),topRight:tu(u,{x:c.width,y:0}),bottomRight:tu(u,{x:c.width,y:-c.height}),bottomLeft:tu(u,{x:0,y:-c.height})};return d=nu(f,"translate",[-c.x,-c.y]),e.childNodes.forEach((e=>{const t=fu(e,Object.assign(Object.assign({},s.inherited),{viewBox:c}),d,[...n,p]);a.push(...t)})),a},gu=(e,t,r,n)=>{const o=du(e,t,r),i=[];return e.childNodes.forEach((e=>{i.push(...fu(e,o.inherited,o.matrix,n))})),i},mu=(e,t=1)=>{if(!e)return;const r=parseFloat(e);return isNaN(r)?void 0:e.endsWith("%")?r*t/100:r},bu=t=>{switch(t){case"normal":return e.BlendMode.Normal;case"multiply":return e.BlendMode.Multiply;case"screen":return e.BlendMode.Screen;case"overlay":return e.BlendMode.Overlay;case"darken":return e.BlendMode.Darken;case"lighten":return e.BlendMode.Lighten;case"color-dodge":return e.BlendMode.ColorDodge;case"color-burn":return e.BlendMode.ColorBurn;case"hard-light":return e.BlendMode.HardLight;case"soft-light":return e.BlendMode.SoftLight;case"difference":return e.BlendMode.Difference;case"exclusion":return e.BlendMode.Exclusion;default:return}},yu=e=>{if(!e)return;const[t=0,r=0,n=1,o=1]=(e||"").split(" ").map((e=>mu(e)));return{x:t,y:r,width:n,height:o}},vu=(e,t,r)=>{const n="string"==typeof t?new _d(t):t;if(!n.svg)return;const o=e.getSize(),i=Nd.parse(n.svg).querySelector("svg");if(!i)return console.error("This is not an svg. Ignoring: "+n.svg);const s=i.attributes,a=lu(s.style),c=cu(s,a,"width",""),l=cu(s,a,"height",""),h=void 0!==r.width?r.width:parseFloat(c),d=void 0!==r.height?r.height:parseFloat(l);s.viewBox||i.setAttribute("viewBox",`0 0 ${c||h} ${l||d}`),(r.width||r.height)&&(void 0!==h&&(a.width=h+(isNaN(h)?"":"px")),void 0!==d&&(a.height=d+(isNaN(d)?"":"px")),i.setAttribute("style",Object.entries(a).map((([e,t])=>`${e}:${t};`)).join("")));const u=[1,0,0,1,r.x||0,r.y||0],f=((e,{width:t,height:r,fontSize:n},o,i)=>{const s=Nd.parse(e).firstChild;return t&&s.setAttribute("width",t+""),r&&s.setAttribute("height",r+""),n&&s.setAttribute("font-size",n+""),fu(s,Object.assign(Object.assign({},o),{viewBox:yu(s.attributes.viewBox||"0 0 1 1")}),i,[])})(i.outerHTML,r,o,u),p=au(e,Object.assign(Object.assign({},r),{images:n.images}));f.forEach((e=>{var t;null===(t=p[e.tagName])||void 0===t||t.call(p,e)}))},wu=({topLeft:e,topRight:t,bottomRight:r,bottomLeft:n})=>[Ql(e.x,e.y),_l(t.x,t.y),_l(r.x,r.y),_l(n.x,n.y),Jl(),Bl(),ih()],xu=e=>e.flatMap(wu),Fu=(e,t)=>{const r=[Gl(),t.graphicsState&&Hl(t.graphicsState),...t.clipSpaces?xu(t.clipSpaces):[],t.matrix&&El(...t.matrix),ch(),gd(t.color),hh(t.font,t.size),dh(t.lineHeight),t.strokeWidth&&Xl(t.strokeWidth),t.strokeColor&&md(t.strokeColor),t.renderMode&&fh(t.renderMode),gh(Cl(t.rotate),Cl(t.xSkew),Cl(t.ySkew),t.x,t.y)].filter(Boolean);for(let t=0,n=e.length;t<n;t++)r.push(ah(e[t]),sh());return r.push(lh(),Kl()),r},Su=(e,t)=>[Gl(),t.graphicsState&&Hl(t.graphicsState),...t.clipSpaces?xu(t.clipSpaces):[],t.matrix&&El(...t.matrix),Ml(t.x,t.y),ql(Cl(t.rotate)),jl(t.width,t.height),Ul(Cl(t.xSkew),Cl(t.ySkew)),mh(e),Kl()].filter(Boolean),ku=(e,t)=>[Gl(),t.graphicsState&&Hl(t.graphicsState),Ml(t.x,t.y),ql(Cl(t.rotate)),jl(t.xScale,t.yScale),Ul(Cl(t.xSkew),Cl(t.ySkew)),mh(e),Kl()].filter(Boolean),Cu=e=>{var t,r;return[Gl(),e.graphicsState&&Hl(e.graphicsState),...e.clipSpaces?xu(e.clipSpaces):[],e.matrix&&El(...e.matrix),e.color&&md(e.color),Xl(e.thickness),Il(null!==(t=e.dashArray)&&void 0!==t?t:[],null!==(r=e.dashPhase)&&void 0!==r?r:0),Ql(e.start.x,e.start.y),e.lineCap&&Ll(e.lineCap),Ql(e.start.x,e.start.y),_l(e.end.x,e.end.y),eh(),Kl()].filter(Boolean)},Au=(Math.sqrt(2)-1)/3*4,Tu=e=>{const{width:t,height:r,xSkew:n,ySkew:o,rotate:i,matrix:s}=e,a="number"==typeof t?t:t.asNumber(),c="number"==typeof r?r:r.asNumber(),l="number"==typeof e.x?e.x:e.x.asNumber(),h="number"==typeof e.y?e.y:e.y.asNumber(),d=Math.max(0,Math.min(e.rx||0,a/2)),u=Math.max(0,Math.min(e.ry||0,c/2)),f=d>0||u>0?[`M ${d},0`,"H "+(a-d),`C ${a-d*(1-Au)},0 ${a},${u*(1-Au)} ${a},${u}`,"V "+(c-u),`C ${a},${c-u*(1-Au)} ${a-d*(1-Au)},${c} ${a-d},${c}`,`H ${d}`,`C ${d*(1-Au)},${c} 0,${c-u*(1-Au)} 0,${c-u}`,`V ${u}`,`C 0,${u*(1-Au)} ${d*(1-Au)},0 ${d},0`,"Z"].join(" "):`M 0,0 H ${a} V ${c} H 0 Z`;let p=eu(s||$d,ru("translate",[l,-h]));return i&&(p=eu(p,ru("rotate",[-Al(i)]))),n&&(p=eu(p,ru("skewX",[Al(n)]))),o&&(p=eu(p,ru("skewY",[-Al(o)]))),p=eu(p,ru("translateY",[-c])),Ou(f,Object.assign(Object.assign({},e),{x:0,y:0,rotate:Fl(0),scale:1,matrix:p}))},Du=e=>{const t=wl(e.xScale),r=wl(e.yScale),n=wl(e.x),o=wl(e.y),i=(Math.sqrt(2)-1)/3*4,s=t*i,a=r*i,c=[`M 0,${r}`,`C ${s},${r} ${t},${a} ${t},0`,`C ${t},${-a} ${s},${-r} 0,${-r}`,`C ${-s},${-r} ${-t},${-a} ${-t},0`,`C ${-t},${a} ${-s},${r} 0,${r}`,"Z"].join(" ");let l=eu(e.matrix||$d,ru("translate",[n,-o]));return e.rotate&&(l=eu(l,ru("rotate",[-Al(e.rotate)]))),Ou(c,Object.assign(Object.assign({},e),{x:0,y:0,rotate:Fl(0),scale:1,matrix:l}))},Ou=(e,t)=>{var r,n,o;const i=zu(t);return i?[Gl(),t.graphicsState&&Hl(t.graphicsState),...t.clipSpaces?xu(t.clipSpaces):[],t.matrix&&El(...t.matrix),Ml(t.x,t.y),ql(Cl(null!==(r=t.rotate)&&void 0!==r?r:Fl(0))),t.scale?jl(t.scale,-t.scale):jl(1,-1),t.color&&gd(t.color),t.borderColor&&md(t.borderColor),t.borderWidth&&Xl(t.borderWidth),t.borderLineCap&&Ll(t.borderLineCap),Il(null!==(n=t.borderDashArray)&&void 0!==n?n:[],null!==(o=t.borderDashPhase)&&void 0!==o?o:0),...Bd(e),i(),Kl()].filter(Boolean):[]},Bu=e=>{const t=wl(e.size),r=-.25,n=-.49,o=-.675;return[Gl(),e.color&&md(e.color),Xl(e.thickness),Ml(e.x,e.y),Ql(o*t,-.07601036269430045*t),_l(r*t,n*t),_l(.69*t,.475*t),eh(),Kl()].filter(Boolean)},Nu=e=>0===e.rotation?[Ml(0,0),zl(0)]:90===e.rotation?[Ml(e.width,0),zl(90)]:180===e.rotation?[Ml(e.width,e.height),zl(180)]:270===e.rotation?[Ml(0,e.height),zl(270)]:[],Pu=e=>{const t=Tu({x:e.x,y:e.y,width:e.width,height:e.height,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)});if(!e.filled)return t;const r=wl(e.width),n=wl(e.height),o=Math.min(r,n)/2,i=Bu({x:r/2,y:n/2,size:o,thickness:e.thickness,color:e.markColor});return[Gl(),...t,...i,Kl()]},Ru=e=>{const t=wl(e.width),r=wl(e.height),n=Math.min(t,r)/2,o=Du({x:e.x,y:e.y,xScale:n,yScale:n,color:e.color,borderColor:e.borderColor,borderWidth:e.borderWidth});if(!e.filled)return o;const i=Du({x:e.x,y:e.y,xScale:.45*n,yScale:.45*n,color:e.dotColor,borderColor:void 0,borderWidth:0});return[Gl(),...o,...i,Kl()]},Eu=e=>{const t=wl(e.x),r=wl(e.y),n=wl(e.width),o=wl(e.height),i=Tu({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),s=Mu(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)});return[Gl(),...i,...s,Kl()]},Mu=(e,t)=>{const r=[ch(),gd(t.color),hh(t.font,t.size)];for(let n=0,o=e.length;n<o;n++){const{encoded:o,x:i,y:s}=e[n];r.push(gh(Cl(t.rotate),Cl(t.xSkew),Cl(t.ySkew),i,s),ah(o))}return r.push(lh()),r},ju=e=>{const t=wl(e.x),r=wl(e.y),n=wl(e.width),o=wl(e.height),i=wl(e.borderWidth),s=wl(e.padding),a=t+i/2+s,c=r+i/2+s,l=n-2*(i/2+s),h=o-2*(i/2+s),d=[Ql(a,c),_l(a,c+h),_l(a+l,c+h),_l(a+l,c),Jl(),Bl(),ih()],u=Tu({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),f=Mu(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),p=[Sh("Tx"),Gl(),...f,Kl(),kh()];return[Gl(),...u,...d,...p,Kl()]},qu=e=>{const t=wl(e.x),r=wl(e.y),n=wl(e.width),o=wl(e.height),i=wl(e.lineHeight),s=wl(e.borderWidth),a=wl(e.padding),c=t+s/2+a,l=r+s/2+a,h=n-2*(s/2+a),d=o-2*(s/2+a),u=[Ql(c,l),_l(c,l+d),_l(c+h,l+d),_l(c+h,l),Jl(),Bl(),ih()],f=Tu({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),p=[];for(let t=0,r=e.selectedLines.length;t<r;t++){const r=e.textLines[e.selectedLines[t]];p.push(...Tu({x:r.x-a,y:r.y-(i-r.height)/2,width:n-s,height:r.height+(i-r.height)/2,borderWidth:0,color:e.selectedColor,borderColor:void 0,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}))}const g=Mu(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),m=[Sh("Tx"),Gl(),...g,Kl(),kh()];return[Gl(),...f,...p,...u,...m,Kl()]},zu=({color:t,borderWidth:r,borderColor:n,fillRule:o})=>t&&n&&r?oh:t?o===e.FillRule.EvenOdd?nh:rh:n&&r?eh:void 0;class Uu extends Error{constructor(){super("Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.")}}class Iu extends Error{constructor(){super("Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.")}}class Vu extends Error{constructor(){super("A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.")}}class Lu extends Error{constructor(){super("PDFDocument has no pages so `PDFDocument.removePage` cannot be called")}}class Wu extends Error{constructor(e){super(`PDFDocument has no form field with the name "${e}"`)}}class Hu extends Error{constructor(e,t,r){var n,o;super(`Expected field "${e}" to be of type ${null==t?void 0:t.name}, but it is actually of type ${null!==(o=null===(n=null==r?void 0:r.constructor)||void 0===n?void 0:n.name)&&void 0!==o?o:r}`)}}class Gu extends Error{constructor(e){super(`Failed to select check box due to missing onValue: "${e}"`)}}class Ku extends Error{constructor(e){super(`A field already exists with the specified name: "${e}"`)}}class Xu extends Error{constructor(e){super(`Field name contains invalid component: "${e}"`)}}class Zu extends Error{constructor(e){super(`A non-terminal field already exists with the specified name: "${e}"`)}}class Yu extends Error{constructor(e){super(`Reading rich text fields is not supported: Attempted to read rich text field: ${e}`)}}class Ju extends Error{constructor(e,t){super(`Failed to layout combed text as lineLength=${e} is greater than cellCount=${t}`)}}class Qu extends Error{constructor(e,t,r){super(`Attempted to set text with length=${e} for TextField with maxLength=${t} and name=${r}`)}}class _u extends Error{constructor(e,t,r){super(`Attempted to set maxLength=${t}, which is less than ${e}, the length of this field's current value (name=${r})`)}}var $u;e.TextAlignment=void 0,($u=e.TextAlignment||(e.TextAlignment={}))[$u.Left=0]="Left",$u[$u.Center=1]="Center",$u[$u.Right=2]="Right";const ef=(e,t,r,n=!1)=>{let o=4;for(;o<500;){let i=0;for(let n=0,s=e.length;n<s;n++){i+=1;const s=e[n].split(" ");let a=r.width;for(let e=0,n=s.length;e<n;e++){const c=e===n-1?s[e]:s[e]+" ",l=t.widthOfTextAtSize(c,o);a-=l,a<=0&&(i+=1,a=r.width-l)}}if(!n&&i>e.length)return o-1;const s=t.heightAtSize(o);if((s+.2*s)*i>Math.abs(r.height))return o-1;o+=1}return o},tf=e=>{for(let t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},rf=(e,t,r,n)=>{var o;let i=e.length;for(;i>0;){const s=e.substring(0,i),a=r.encodeText(s),c=r.widthOfTextAtSize(s,n);if(c<t){return{line:s,encoded:a,width:c,remainder:e.substring(i)||void 0}}i=null!==(o=tf(s))&&void 0!==o?o:0}return{line:e,encoded:r.encodeText(e),width:r.widthOfTextAtSize(e,n),remainder:void 0}},nf=(t,{alignment:r,fontSize:n,font:o,bounds:i})=>{const s=w(b(t));void 0!==n&&0!==n||(n=ef(s,o,i,!0));const a=o.heightAtSize(n),c=a+.2*a,l=[];let h=i.x,d=i.y,u=i.x+i.width,f=i.y+i.height,p=i.y+i.height;for(let t=0,g=s.length;t<g;t++){let g=s[t];for(;void 0!==g;){const{line:t,encoded:s,width:m,remainder:b}=rf(g,i.width,o,n),y=r===e.TextAlignment.Left?i.x:r===e.TextAlignment.Center?i.x+i.width/2-m/2:r===e.TextAlignment.Right?i.x+i.width-m:i.x;p-=c,y<h&&(h=y),p<d&&(d=p),y+m>u&&(u=y+m),p+a>f&&(f=p+a),l.push({text:t,encoded:s,width:m,height:a,x:y,y:p}),g=null==b?void 0:b.trim()}}return{fontSize:n,lineHeight:c,lines:l,bounds:{x:h,y:d,width:u-h,height:f-d}}},of=(e,{fontSize:t,font:r,bounds:n,cellCount:o})=>{const i=x(b(e));if(i.length>o)throw new Ju(i.length,o);void 0!==t&&0!==t||(t=((e,t,r,n)=>{const o=r.width/n,i=r.height;let s=4;const a=S(e);for(;s<500;){for(let e=0,r=a.length;e<r;e++){const r=a[e];if(t.widthOfTextAtSize(r,s)>.75*o)return s-1}if(t.heightAtSize(s,{descender:!1})>i)return s-1;s+=1}return s})(i,r,n,o));const s=n.width/o,a=r.heightAtSize(t,{descender:!1}),c=n.y+(n.height/2-a/2),l=[];let h=n.x,d=n.y,u=n.x+n.width,f=n.y+n.height,p=0,g=0;for(;p<o;){const[e,o]=F(i,g),m=r.encodeText(e),b=r.widthOfTextAtSize(e,t),y=n.x+(s*p+s/2)-b/2;y<h&&(h=y),c<d&&(d=c),y+b>u&&(u=y+b),c+a>f&&(f=c+a),l.push({text:i,encoded:m,width:b,height:a,x:y,y:c}),p+=1,g+=o}return{fontSize:t,cells:l,bounds:{x:h,y:d,width:u-h,height:f-d}}},sf=(t,{alignment:r,fontSize:n,font:o,bounds:i})=>{const s=x(b(t));void 0!==n&&0!==n||(n=ef([s],o,i));const a=o.encodeText(s),c=o.widthOfTextAtSize(s,n),l=o.heightAtSize(n,{descender:!1}),h=r===e.TextAlignment.Left?i.x:r===e.TextAlignment.Center?i.x+i.width/2-c/2:r===e.TextAlignment.Right?i.x+i.width-c:i.x,d=i.y+(i.height/2-l/2);return{fontSize:n,line:{text:s,encoded:a,width:c,height:l,x:h,y:d},bounds:{x:h,y:d,width:c,height:l}}},af=e=>"normal"in e?e:{normal:e},cf=/\/([^\0\t\n\f\r ]+)[\0\t\n\f\r ]+(\d*\.\d+|\d+)[\0\t\n\f\r ]+Tf/,lf=e=>{var t,r;const n=null!==(t=e.getDefaultAppearance())&&void 0!==t?t:"",o=null!==(r=T(n,cf).match)&&void 0!==r?r:[],i=Number(o[2]);return isFinite(i)?i:void 0},hf=/(\d*\.\d+|\d+)[\0\t\n\f\r ]*(\d*\.\d+|\d+)?[\0\t\n\f\r ]*(\d*\.\d+|\d+)?[\0\t\n\f\r ]*(\d*\.\d+|\d+)?[\0\t\n\f\r ]+(g|rg|k)/,df=e=>{var t;const r=null!==(t=e.getDefaultAppearance())&&void 0!==t?t:"",n=T(r,hf).match,[,o,i,s,a,c]=null!=n?n:[];return"g"===c&&o?dd(Number(o)):"rg"===c&&o&&i&&s?ud(Number(o),Number(i),Number(s)):"k"===c&&o&&i&&s&&a?fd(Number(o),Number(i),Number(s),Number(a)):void 0},uf=(e,t,r,n=0)=>{var o;const i=[gd(t).toString(),hh(null!==(o=null==r?void 0:r.name)&&void 0!==o?o:"dummy__noop",n).toString()].join("\n");e.setDefaultAppearance(i)},ff=(e,t)=>{var r,n,o;const i=df(t),s=df(e.acroField),a=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Tl(null==c?void 0:c.getRotation()),{width:u,height:f}=Dl(a,d),p=Nu(Object.assign(Object.assign({},a),{rotation:d})),g=ud(0,0,0),m=null!==(n=bd(null==c?void 0:c.getBorderColor()))&&void 0!==n?n:g,b=bd(null==c?void 0:c.getBackgroundColor()),y=bd(null==c?void 0:c.getBackgroundColor(),.8),v=null!==(o=null!=i?i:s)&&void 0!==o?o:g;uf(i?t:e.acroField,v);const w={x:0+h/2,y:0+h/2,width:u-h,height:f-h,thickness:1.5,borderWidth:h,borderColor:m,markColor:v};return{normal:{on:[...p,...Pu(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Pu(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Pu(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Pu(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},pf=(e,t)=>{var r,n,o;const i=df(t),s=df(e.acroField),a=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Tl(null==c?void 0:c.getRotation()),{width:u,height:f}=Dl(a,d),p=Nu(Object.assign(Object.assign({},a),{rotation:d})),g=ud(0,0,0),m=null!==(n=bd(null==c?void 0:c.getBorderColor()))&&void 0!==n?n:g,b=bd(null==c?void 0:c.getBackgroundColor()),y=bd(null==c?void 0:c.getBackgroundColor(),.8),v=null!==(o=null!=i?i:s)&&void 0!==o?o:g;uf(i?t:e.acroField,v);const w={x:u/2,y:f/2,width:u-h,height:f-h,borderWidth:h,borderColor:m,dotColor:v};return{normal:{on:[...p,...Ru(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Ru(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Ru(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Ru(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},gf=(t,r,n)=>{var o,i,s,a,c;const l=df(r),h=df(t.acroField),d=lf(r),u=lf(t.acroField),f=r.getRectangle(),p=r.getAppearanceCharacteristics(),g=r.getBorderStyle(),m=null==p?void 0:p.getCaptions(),b=null!==(o=null==m?void 0:m.normal)&&void 0!==o?o:"",y=null!==(s=null!==(i=null==m?void 0:m.down)&&void 0!==i?i:b)&&void 0!==s?s:"",v=null!==(a=null==g?void 0:g.getWidth())&&void 0!==a?a:0,w=Tl(null==p?void 0:p.getRotation()),{width:x,height:F}=Dl(f,w),S=Nu(Object.assign(Object.assign({},f),{rotation:w})),k=ud(0,0,0),C=bd(null==p?void 0:p.getBorderColor()),A=bd(null==p?void 0:p.getBackgroundColor()),T=bd(null==p?void 0:p.getBackgroundColor(),.8),D={x:v,y:v,width:x-2*v,height:F-2*v},O=sf(b,{alignment:e.TextAlignment.Center,fontSize:null!=d?d:u,font:n,bounds:D}),B=sf(y,{alignment:e.TextAlignment.Center,fontSize:null!=d?d:u,font:n,bounds:D}),N=Math.min(O.fontSize,B.fontSize),P=null!==(c=null!=l?l:h)&&void 0!==c?c:k;uf(l||void 0!==d?r:t.acroField,P,n,N);const R={x:0+v/2,y:0+v/2,width:x-v,height:F-v,borderWidth:v,borderColor:C,textColor:P,font:n.name,fontSize:N};return{normal:[...S,...Eu(Object.assign(Object.assign({},R),{color:A,textLines:[O.line]}))],down:[...S,...Eu(Object.assign(Object.assign({},R),{color:T,textLines:[B.line]}))]}},mf=(e,t,r)=>{var n,o,i,s;const a=df(t),c=df(e.acroField),l=lf(t),h=lf(e.acroField),d=t.getRectangle(),u=t.getAppearanceCharacteristics(),f=t.getBorderStyle(),p=null!==(n=e.getText())&&void 0!==n?n:"",g=null!==(o=null==f?void 0:f.getWidth())&&void 0!==o?o:0,m=Tl(null==u?void 0:u.getRotation()),{width:b,height:y}=Dl(d,m),v=Nu(Object.assign(Object.assign({},d),{rotation:m})),w=ud(0,0,0),x=bd(null==u?void 0:u.getBorderColor()),F=bd(null==u?void 0:u.getBackgroundColor());let S,k;const C=e.isCombed()?0:1,A={x:g+C,y:g+C,width:b-2*(g+C),height:y-2*(g+C)};if(e.isMultiline()){const t=nf(p,{alignment:e.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=t.lines,k=t.fontSize}else if(e.isCombed()){const t=of(p,{fontSize:null!=l?l:h,font:r,bounds:A,cellCount:null!==(i=e.getMaxLength())&&void 0!==i?i:0});S=t.cells,k=t.fontSize}else{const t=sf(p,{alignment:e.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=[t.line],k=t.fontSize}const T=null!==(s=null!=a?a:c)&&void 0!==s?s:w;uf(a||void 0!==l?t:e.acroField,T,r,k);const D={x:0+g/2,y:0+g/2,width:b-g,height:y-g,borderWidth:null!=g?g:0,borderColor:x,textColor:T,font:r.name,fontSize:k,color:F,textLines:S,padding:C};return[...v,...ju(D)]},bf=(t,r,n)=>{var o,i,s;const a=df(r),c=df(t.acroField),l=lf(r),h=lf(t.acroField),d=r.getRectangle(),u=r.getAppearanceCharacteristics(),f=r.getBorderStyle(),p=null!==(o=t.getSelected()[0])&&void 0!==o?o:"",g=null!==(i=null==f?void 0:f.getWidth())&&void 0!==i?i:0,m=Tl(null==u?void 0:u.getRotation()),{width:b,height:y}=Dl(d,m),v=Nu(Object.assign(Object.assign({},d),{rotation:m})),w=ud(0,0,0),x=bd(null==u?void 0:u.getBorderColor()),F=bd(null==u?void 0:u.getBackgroundColor()),S={x:g+1,y:g+1,width:b-2*(g+1),height:y-2*(g+1)},{line:k,fontSize:C}=sf(p,{alignment:e.TextAlignment.Left,fontSize:null!=l?l:h,font:n,bounds:S}),A=null!==(s=null!=a?a:c)&&void 0!==s?s:w;uf(a||void 0!==l?r:t.acroField,A,n,C);const T={x:0+g/2,y:0+g/2,width:b-g,height:y-g,borderWidth:null!=g?g:0,borderColor:x,textColor:A,font:n.name,fontSize:C,color:F,textLines:[k],padding:1};return[...v,...ju(T)]},yf=(t,r,n)=>{var o,i;const s=df(r),a=df(t.acroField),c=lf(r),l=lf(t.acroField),h=r.getRectangle(),d=r.getAppearanceCharacteristics(),u=r.getBorderStyle(),f=null!==(o=null==u?void 0:u.getWidth())&&void 0!==o?o:0,p=Tl(null==d?void 0:d.getRotation()),{width:g,height:m}=Dl(h,p),b=Nu(Object.assign(Object.assign({},h),{rotation:p})),y=ud(0,0,0),v=bd(null==d?void 0:d.getBorderColor()),w=bd(null==d?void 0:d.getBackgroundColor()),x=t.getOptions(),F=t.getSelected();t.isSorted()&&x.sort();let S="";for(let e=0,t=x.length;e<t;e++)S+=x[e],e<t-1&&(S+="\n");const k={x:f+1,y:f+1,width:g-2*(f+1),height:m-2*(f+1)},{lines:C,fontSize:A,lineHeight:T}=nf(S,{alignment:e.TextAlignment.Left,fontSize:null!=c?c:l,font:n,bounds:k}),D=[];for(let e=0,t=C.length;e<t;e++){const t=C[e];F.includes(t.text)&&D.push(e)}const O=ud(.6,193/255,218/255),B=null!==(i=null!=s?s:a)&&void 0!==i?i:y;return uf(s||void 0!==c?r:t.acroField,B,n,A),[...b,...qu({x:0+f/2,y:0+f/2,width:g-f,height:m-f,borderWidth:null!=f?f:0,borderColor:v,textColor:B,font:n.name,fontSize:A,color:w,textLines:C,lineHeight:T,selectedColor:O,selectedLines:D,padding:1})]};class vf{constructor(e,t,r){this.alreadyEmbedded=!1,Xn(e,"ref",[[ei,"PDFRef"]]),Xn(t,"doc",[[tp,"PDFDocument"]]),Xn(r,"embedder",[[Zs,"PDFPageEmbedder"]]),this.ref=e,this.doc=t,this.width=r.width,this.height=r.height,this.embedder=r}scale(e){return Xn(e,"factor",["number"]),{width:this.width*e,height:this.height*e}}size(){return this.scale(1)}embed(){return ui(this,void 0,void 0,(function*(){this.alreadyEmbedded||(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.alreadyEmbedded=!0)}))}}vf.of=(e,t,r)=>new vf(e,t,r);class wf{constructor(e,t,r){this.modified=!0,Xn(e,"ref",[[ei,"PDFRef"]]),Xn(t,"doc",[[tp,"PDFDocument"]]),Xn(r,"embedder",[[bs,"CustomFontEmbedder"],[ds,"StandardFontEmbedder"]]),this.ref=e,this.doc=t,this.name=r.fontName,this.embedder=r}encodeText(e){return Xn(e,"text",["string"]),this.modified=!0,this.embedder.encodeText(e)}widthOfTextAtSize(e,t){return Xn(e,"text",["string"]),Xn(t,"size",["number"]),this.embedder.widthOfTextAtSize(e,t)}heightAtSize(e,t){var r;return Xn(e,"size",["number"]),Zn(null==t?void 0:t.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(e,{descender:null===(r=null==t?void 0:t.descender)||void 0===r||r})}sizeAtHeight(e){return Xn(e,"height",["number"]),this.embedder.sizeOfFontAtHeight(e)}getCharacterSet(){return this.embedder instanceof ds?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet}embed(){return ui(this,void 0,void 0,(function*(){this.modified&&(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.modified=!1)}))}}wf.of=(e,t,r)=>new wf(e,t,r);class xf{constructor(e,t,r){Xn(e,"ref",[[ei,"PDFRef"]]),Xn(t,"doc",[[tp,"PDFDocument"]]),Xn(r,"embedder",[[ks,"JpegEmbedder"],[Ns,"PngEmbedder"]]),this.ref=e,this.doc=t,this.width=r.width,this.height=r.height,this.embedder=r}scale(e){return Xn(e,"factor",["number"]),{width:this.width*e,height:this.height*e}}scaleToFit(e,t){Xn(e,"width",["number"]),Xn(t,"height",["number"]);const r=e/this.width,n=t/this.height,o=Math.min(r,n);return this.scale(o)}size(){return this.scale(1)}embed(){return ui(this,void 0,void 0,(function*(){if(this.embedder){if(!this.embedTask){const{doc:e,ref:t}=this;this.embedTask=this.embedder.embedIntoContext(e.context,t)}yield this.embedTask,this.embedder=void 0}}))}}var Ff;xf.of=(e,t,r)=>new xf(e,t,r),e.ImageAlignment=void 0,(Ff=e.ImageAlignment||(e.ImageAlignment={}))[Ff.Left=0]="Left",Ff[Ff.Center=1]="Center",Ff[Ff.Right=2]="Right";const Sf=e=>{Zn(null==e?void 0:e.x,"options.x",["number"]),Zn(null==e?void 0:e.y,"options.y",["number"]),Zn(null==e?void 0:e.width,"options.width",["number"]),Zn(null==e?void 0:e.height,"options.height",["number"]),Zn(null==e?void 0:e.textColor,"options.textColor",[[Object,"Color"]]),Zn(null==e?void 0:e.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Zn(null==e?void 0:e.borderColor,"options.borderColor",[[Object,"Color"]]),Zn(null==e?void 0:e.borderWidth,"options.borderWidth",["number"]),Zn(null==e?void 0:e.rotate,"options.rotate",[[Object,"Rotation"]])};class kf{constructor(e,t,r){Xn(e,"acroField",[[Bi,"PDFAcroTerminal"]]),Xn(t,"ref",[[ei,"PDFRef"]]),Xn(r,"doc",[[tp,"PDFDocument"]]),this.acroField=e,this.ref=t,this.doc=r}getName(){var e;return null!==(e=this.acroField.getFullyQualifiedName())&&void 0!==e?e:""}isReadOnly(){return this.acroField.hasFlag(e.AcroFieldFlags.ReadOnly)}enableReadOnly(){this.acroField.setFlagTo(e.AcroFieldFlags.ReadOnly,!0)}disableReadOnly(){this.acroField.setFlagTo(e.AcroFieldFlags.ReadOnly,!1)}isRequired(){return this.acroField.hasFlag(e.AcroFieldFlags.Required)}enableRequired(){this.acroField.setFlagTo(e.AcroFieldFlags.Required,!0)}disableRequired(){this.acroField.setFlagTo(e.AcroFieldFlags.Required,!1)}isExported(){return!this.acroField.hasFlag(e.AcroFieldFlags.NoExport)}enableExporting(){this.acroField.setFlagTo(e.AcroFieldFlags.NoExport,!1)}disableExporting(){this.acroField.setFlagTo(e.AcroFieldFlags.NoExport,!0)}needsAppearancesUpdate(){throw new oo(this.constructor.name,"needsAppearancesUpdate")}defaultUpdateAppearances(e){throw new oo(this.constructor.name,"defaultUpdateAppearances")}markAsDirty(){this.doc.getForm().markFieldAsDirty(this.ref)}markAsClean(){this.doc.getForm().markFieldAsClean(this.ref)}isDirty(){return this.doc.getForm().fieldIsDirty(this.ref)}createWidget(t){var r;const n=t.textColor,o=t.backgroundColor,i=t.borderColor,s=t.borderWidth,a=Al(t.rotate),c=t.caption,l=t.x,h=t.y,d=t.width+s,u=t.height+s,f=Boolean(t.hidden),p=t.page;_n(a,"degreesAngle",90);const g=Oi.create(this.doc.context,this.ref),m=Ol({x:l,y:h,width:d,height:u},s,a);g.setRectangle(m),p&&g.setP(p);const b=g.getOrCreateAppearanceCharacteristics();o&&b.setBackgroundColor(yd(o)),b.setRotation(a),c&&b.setCaptions({normal:c}),i&&b.setBorderColor(yd(i));const y=g.getOrCreateBorderStyle();if(void 0!==s&&y.setWidth(s),g.setFlagTo(e.AnnotationFlags.Print,!0),g.setFlagTo(e.AnnotationFlags.Hidden,f),g.setFlagTo(e.AnnotationFlags.Invisible,!1),n){const e=(null!==(r=this.acroField.getDefaultAppearance())&&void 0!==r?r:"")+"\n"+gd(n).toString();this.acroField.setDefaultAppearance(e)}return g}updateWidgetAppearanceWithFont(e,t,{normal:r,rollover:n,down:o}){this.updateWidgetAppearances(e,{normal:this.createAppearanceStream(e,r,t),rollover:n&&this.createAppearanceStream(e,n,t),down:o&&this.createAppearanceStream(e,o,t)})}updateOnOffWidgetAppearance(e,t,{normal:r,rollover:n,down:o}){this.updateWidgetAppearances(e,{normal:this.createAppearanceDict(e,r,t),rollover:n&&this.createAppearanceDict(e,n,t),down:o&&this.createAppearanceDict(e,o,t)})}updateWidgetAppearances(e,{normal:t,rollover:r,down:n}){e.setNormalAppearance(t),r?e.setRolloverAppearance(r):e.removeRolloverAppearance(),n?e.setDownAppearance(n):e.removeDownAppearance()}createAppearanceStream(e,t,r){const{context:n}=this.acroField.dict,{width:o,height:i}=e.getRectangle(),s=r&&{Font:{[r.name]:r.ref}},a=n.formXObject(t,{Resources:s,BBox:n.obj([0,0,o,i]),Matrix:n.obj([1,0,0,1,0,0])});return n.register(a)}createImageAppearanceStream(t,r,n){var o;const{context:i}=this.acroField.dict,s=t.getRectangle(),a=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),l=null!==(o=null==c?void 0:c.getWidth())&&void 0!==o?o:0,h=Tl(null==a?void 0:a.getRotation()),d=Nu(Object.assign(Object.assign({},s),{rotation:h})),u=Dl(s,h),f=r.scaleToFit(u.width-2*l,u.height-2*l),p={x:l,y:l,width:f.width,height:f.height,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)};n===e.ImageAlignment.Center?(p.x+=(u.width-2*l)/2-f.width/2,p.y+=(u.height-2*l)/2-f.height/2):n===e.ImageAlignment.Right&&(p.x=u.width-l-f.width,p.y=u.height-l-f.height);const g=this.doc.context.addRandomSuffix("Image",10),m=[...d,...Su(g,p)],b={XObject:{[g]:r.ref}},y=i.formXObject(m,{Resources:b,BBox:i.obj([0,0,s.width,s.height]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(y)}createAppearanceDict(e,t,r){const{context:n}=this.acroField.dict,o=this.createAppearanceStream(e,t.on),i=this.createAppearanceStream(e,t.off),s=n.obj({});return s.set(r,o),s.set(Ko.of("Off"),i),s}}class Cf extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroCheckBox",[[Pi,"PDFAcroCheckBox"]]),this.acroField=e}check(){var e;const t=null!==(e=this.acroField.getOnValue())&&void 0!==e?e:Ko.of("Yes");this.markAsDirty(),this.acroField.setValue(t)}uncheck(){this.markAsDirty(),this.acroField.setValue(Ko.of("Off"))}isChecked(){const e=this.acroField.getOnValue();return!!e&&e===this.acroField.getValue()}addToPage(e,t){var r,n,o,i,s,a;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const c=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:50,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),l=this.doc.context.register(c.dict);this.acroField.addWidget(l),c.setAppearanceState(Ko.of("Off")),this.updateWidgetAppearance(c,Ko.of("Yes")),e.node.addAnnot(l)}needsAppearancesUpdate(){var e;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.getAppearanceState(),i=null===(e=n.getAppearances())||void 0===e?void 0:e.normal;if(!(i instanceof Zo))return!0;if(o&&!i.has(o))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(e){var t;Zn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n],i=null!==(t=o.getOnValue())&&void 0!==t?t:Ko.of("Yes");i&&this.updateWidgetAppearance(o,i,e)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:ff)(this,e));this.updateOnOffWidgetAppearance(e,t,n)}}Cf.of=(e,t,r)=>new Cf(e,t,r);class Af extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroComboBox",[[Ui,"PDFAcroComboBox"]]),this.acroField=e}getOptions(){const e=this.acroField.getOptions(),t=new Array(e.length);for(let r=0,n=t.length;r<n;r++){const{display:n,value:o}=e[r];t[r]=(null!=n?n:o).decodeText()}return t}getSelected(){const e=this.acroField.getValues(),t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}setOptions(e){Xn(e,"options",[Array]);const t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]={value:Yo.fromText(e[r])};this.acroField.setOptions(t)}addOptions(e){Xn(e,"options",["string",Array]);const t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]={value:Yo.fromText(t[e])};this.acroField.setOptions(r.concat(n))}select(e,t=!1){Xn(e,"options",["string",Array]),Xn(t,"merge",["boolean"]);const r=Array.isArray(e)?e:[e],n=this.getOptions();r.find((e=>!n.includes(e)))&&this.enableEditing(),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();const o=new Array(r.length);for(let e=0,t=r.length;e<t;e++)o[e]=Yo.fromText(r[e]);if(t){const e=this.acroField.getValues();this.acroField.setValues(e.concat(o))}else this.acroField.setValues(o)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}isEditable(){return this.acroField.hasFlag(e.AcroChoiceFlags.Edit)}enableEditing(){this.acroField.setFlagTo(e.AcroChoiceFlags.Edit,!0)}disableEditing(){this.acroField.setFlagTo(e.AcroChoiceFlags.Edit,!1)}isSorted(){return this.acroField.hasFlag(e.AcroChoiceFlags.Sort)}enableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!0)}disableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(e.AcroChoiceFlags.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(e.AcroChoiceFlags.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(e.AcroChoiceFlags.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(e.AcroChoiceFlags.DoNotSpellCheck,!0)}isSelectOnClick(){return this.acroField.hasFlag(e.AcroChoiceFlags.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!1)}addToPage(e,t){var r,n,o,i,s,a,c;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=t.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),e.node.addAnnot(h)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:bf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}Af.of=(e,t,r)=>new Af(e,t,r);class Tf extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroListBox",[[Gi,"PDFAcroListBox"]]),this.acroField=e}getOptions(){const e=this.acroField.getOptions(),t=new Array(e.length);for(let r=0,n=t.length;r<n;r++){const{display:n,value:o}=e[r];t[r]=(null!=n?n:o).decodeText()}return t}getSelected(){const e=this.acroField.getValues(),t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}setOptions(e){Xn(e,"options",[Array]),this.markAsDirty();const t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]={value:Yo.fromText(e[r])};this.acroField.setOptions(t)}addOptions(e){Xn(e,"options",["string",Array]),this.markAsDirty();const t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]={value:Yo.fromText(t[e])};this.acroField.setOptions(r.concat(n))}select(e,t=!1){Xn(e,"options",["string",Array]),Xn(t,"merge",["boolean"]);const r=Array.isArray(e)?e:[e],n=this.getOptions();Wn(r,"option",n),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();const o=new Array(r.length);for(let e=0,t=r.length;e<t;e++)o[e]=Yo.fromText(r[e]);if(t){const e=this.acroField.getValues();this.acroField.setValues(e.concat(o))}else this.acroField.setValues(o)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}isSorted(){return this.acroField.hasFlag(e.AcroChoiceFlags.Sort)}enableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!0)}disableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(e.AcroChoiceFlags.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!1)}isSelectOnClick(){return this.acroField.hasFlag(e.AcroChoiceFlags.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!1)}addToPage(e,t){var r,n,o,i,s,a,c;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:100,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=t.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),e.node.addAnnot(h)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:yf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}Tf.of=(e,t,r)=>new Tf(e,t,r);class Df extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroRadioButton",[[Hi,"PDFAcroRadioButton"]]),this.acroField=e}getOptions(){const e=this.acroField.getExportValues();if(e){const t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}const t=this.acroField.getOnValues(),r=new Array(t.length);for(let e=0,n=r.length;e<n;e++)r[e]=t[e].decodeText();return r}getSelected(){const e=this.acroField.getValue();if(e===Ko.of("Off"))return;const t=this.acroField.getExportValues();if(t){const r=this.acroField.getOnValues();for(let n=0,o=r.length;n<o;n++)if(r[n]===e)return t[n].decodeText()}return e.decodeText()}select(e){Xn(e,"option",["string"]);const t=this.getOptions();Vn(e,"option",t),this.markAsDirty();const r=this.acroField.getOnValues(),n=this.acroField.getExportValues();if(n)for(let t=0,o=n.length;t<o;t++)n[t].decodeText()===e&&this.acroField.setValue(r[t]);else for(let t=0,n=r.length;t<n;t++){const n=r[t];n.decodeText()===e&&this.acroField.setValue(n)}}clear(){this.markAsDirty(),this.acroField.setValue(Ko.of("Off"))}isOffToggleable(){return!this.acroField.hasFlag(e.AcroButtonFlags.NoToggleToOff)}enableOffToggling(){this.acroField.setFlagTo(e.AcroButtonFlags.NoToggleToOff,!1)}disableOffToggling(){this.acroField.setFlagTo(e.AcroButtonFlags.NoToggleToOff,!0)}isMutuallyExclusive(){return!this.acroField.hasFlag(e.AcroButtonFlags.RadiosInUnison)}enableMutualExclusion(){this.acroField.setFlagTo(e.AcroButtonFlags.RadiosInUnison,!1)}disableMutualExclusion(){this.acroField.setFlagTo(e.AcroButtonFlags.RadiosInUnison,!0)}addOptionToPage(e,t,r){var n,o,i,s,a,c,l,h,d;Xn(e,"option",["string"]),Xn(t,"page",[[np,"PDFPage"]]),Sf(r);const u=this.createWidget({x:null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null==r?void 0:r.y)&&void 0!==o?o:0,width:null!==(i=null==r?void 0:r.width)&&void 0!==i?i:50,height:null!==(s=null==r?void 0:r.height)&&void 0!==s?s:50,textColor:null!==(a=null==r?void 0:r.textColor)&&void 0!==a?a:ud(0,0,0),backgroundColor:null!==(c=null==r?void 0:r.backgroundColor)&&void 0!==c?c:ud(1,1,1),borderColor:null!==(l=null==r?void 0:r.borderColor)&&void 0!==l?l:ud(0,0,0),borderWidth:null!==(h=null==r?void 0:r.borderWidth)&&void 0!==h?h:1,rotate:null!==(d=null==r?void 0:r.rotate)&&void 0!==d?d:Fl(0),hidden:null==r?void 0:r.hidden,page:t.ref}),f=this.doc.context.register(u.dict),p=this.acroField.addWidgetWithOpt(f,Yo.fromText(e),!this.isMutuallyExclusive());u.setAppearanceState(Ko.of("Off")),this.updateWidgetAppearance(u,p),t.node.addAnnot(f)}needsAppearancesUpdate(){var e;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.getAppearanceState(),i=null===(e=n.getAppearances())||void 0===e?void 0:e.normal;if(!(i instanceof Zo))return!0;if(o&&!i.has(o))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(e){Zn(e,"provider",[Function]);const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.getOnValue();o&&this.updateWidgetAppearance(n,o,e)}}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:pf)(this,e));this.updateOnOffWidgetAppearance(e,t,n)}}Df.of=(e,t,r)=>new Df(e,t,r);class Of extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroSignature",[[Vi,"PDFAcroSignature"]]),this.acroField=e}needsAppearancesUpdate(){return!1}}Of.of=(e,t,r)=>new Of(e,t,r);class Bf extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroText",[[Li,"PDFAcroText"]]),this.acroField=e}getText(){const e=this.acroField.getValue();if(!e&&this.isRichFormatted())throw new Yu(this.getName());return null==e?void 0:e.decodeText()}setText(e){Zn(e,"text",["string"]);const t=this.getMaxLength();if(void 0!==t&&e&&e.length>t)throw new Qu(e.length,t,this.getName());this.markAsDirty(),this.disableRichFormatting(),e?this.acroField.setValue(Yo.fromText(e)):this.acroField.removeValue()}getAlignment(){const t=this.acroField.getQuadding();return 0===t?e.TextAlignment.Left:1===t?e.TextAlignment.Center:2===t?e.TextAlignment.Right:e.TextAlignment.Left}setAlignment(t){Vn(t,"alignment",e.TextAlignment),this.markAsDirty(),this.acroField.setQuadding(t)}getMaxLength(){return this.acroField.getMaxLength()}setMaxLength(e){if(Qn(e,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===e)this.acroField.removeMaxLength();else{const t=this.getText();if(t&&t.length>e)throw new _u(t.length,e,this.getName());this.acroField.setMaxLength(e)}}removeMaxLength(){this.markAsDirty(),this.acroField.removeMaxLength()}setImage(t){const r=this.getAlignment(),n=r===e.TextAlignment.Center?e.ImageAlignment.Center:r===e.TextAlignment.Right?e.ImageAlignment.Right:e.ImageAlignment.Left,o=this.acroField.getWidgets();for(let e=0,r=o.length;e<r;e++){const r=o[e],i=this.createImageAppearanceStream(r,t,n);this.updateWidgetAppearances(r,{normal:i})}this.markAsClean()}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}isMultiline(){return this.acroField.hasFlag(e.AcroTextFlags.Multiline)}enableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(e.AcroTextFlags.Multiline,!0)}disableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(e.AcroTextFlags.Multiline,!1)}isPassword(){return this.acroField.hasFlag(e.AcroTextFlags.Password)}enablePassword(){this.acroField.setFlagTo(e.AcroTextFlags.Password,!0)}disablePassword(){this.acroField.setFlagTo(e.AcroTextFlags.Password,!1)}isFileSelector(){return this.acroField.hasFlag(e.AcroTextFlags.FileSelect)}enableFileSelection(){this.acroField.setFlagTo(e.AcroTextFlags.FileSelect,!0)}disableFileSelection(){this.acroField.setFlagTo(e.AcroTextFlags.FileSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(e.AcroTextFlags.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotSpellCheck,!0)}isScrollable(){return!this.acroField.hasFlag(e.AcroTextFlags.DoNotScroll)}enableScrolling(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotScroll,!1)}disableScrolling(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotScroll,!0)}isCombed(){return this.acroField.hasFlag(e.AcroTextFlags.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()}enableCombing(){if(void 0===this.getMaxLength()){const e="PDFTextFields must have a max length in order to be combed";console.warn(e)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(e.AcroTextFlags.Comb,!0)}disableCombing(){this.markAsDirty(),this.acroField.setFlagTo(e.AcroTextFlags.Comb,!1)}isRichFormatted(){return this.acroField.hasFlag(e.AcroTextFlags.RichText)}enableRichFormatting(){this.acroField.setFlagTo(e.AcroTextFlags.RichText,!0)}disableRichFormatting(){this.acroField.setFlagTo(e.AcroTextFlags.RichText,!1)}addToPage(e,t){var r,n,o,i,s,a,c;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=t.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),e.node.addAnnot(h)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:mf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}var Nf;Bf.of=(e,t,r)=>new Bf(e,t,r),e.StandardFonts=void 0,(Nf=e.StandardFonts||(e.StandardFonts={})).Courier="Courier",Nf.CourierBold="Courier-Bold",Nf.CourierOblique="Courier-Oblique",Nf.CourierBoldOblique="Courier-BoldOblique",Nf.Helvetica="Helvetica",Nf.HelveticaBold="Helvetica-Bold",Nf.HelveticaOblique="Helvetica-Oblique",Nf.HelveticaBoldOblique="Helvetica-BoldOblique",Nf.TimesRoman="Times-Roman",Nf.TimesRomanBold="Times-Bold",Nf.TimesRomanItalic="Times-Italic",Nf.TimesRomanBoldItalic="Times-BoldItalic",Nf.Symbol="Symbol",Nf.ZapfDingbats="ZapfDingbats";class Pf{constructor(t,r){this.embedDefaultFont=()=>this.doc.embedStandardFont(e.StandardFonts.Helvetica),Xn(t,"acroForm",[[ts,"PDFAcroForm"]]),Xn(r,"doc",[[tp,"PDFDocument"]]),this.acroForm=t,this.doc=r,this.dirtyFields=new Set,this.defaultFontCache=no.populatedBy(this.embedDefaultFont)}hasXFA(){return this.acroForm.dict.has(Ko.of("XFA"))}deleteXFA(){this.acroForm.dict.delete(Ko.of("XFA"))}getFields(){const e=this.acroForm.getAllFields(),t=[];for(let r=0,n=e.length;r<n;r++){const[n,o]=e[r],i=Rf(n,o,this.doc);i&&t.push(i)}return t}getFieldMaybe(e){Xn(e,"name",["string"]);const t=this.getFields();for(let r=0,n=t.length;r<n;r++){const n=t[r];if(n.getName()===e)return n}}getField(e){Xn(e,"name",["string"]);const t=this.getFieldMaybe(e);if(t)return t;throw new Wu(e)}getButton(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof op)return t;throw new Hu(e,op,t)}getCheckBox(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Cf)return t;throw new Hu(e,Cf,t)}getDropdown(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Af)return t;throw new Hu(e,Af,t)}getOptionList(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Tf)return t;throw new Hu(e,Tf,t)}getRadioGroup(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Df)return t;throw new Hu(e,Df,t)}getSignature(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Of)return t;throw new Hu(e,Of,t)}getTextField(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Bf)return t;throw new Hu(e,Bf,t)}createButton(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Wi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),op.of(n,n.ref,this.doc)}createCheckBox(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Pi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Cf.of(n,n.ref,this.doc)}createDropdown(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Ui.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Af.of(n,n.ref,this.doc)}createOptionList(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Gi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Tf.of(n,n.ref,this.doc)}createRadioGroup(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Hi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Df.of(n,n.ref,this.doc)}createTextField(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Li.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Bf.of(n,n.ref,this.doc)}flatten(e={updateFieldAppearances:!0}){e.updateFieldAppearances&&this.updateFieldAppearances();const t=this.getFields();for(let e=0,r=t.length;e<r;e++){const r=t[e],n=r.acroField.getWidgets();for(let e=0,t=n.length;e<t;e++)try{const t=n[e],o=this.findWidgetPage(t),i=this.findWidgetAppearanceRef(r,t),s=o.node.newXObject("FlatWidget",i),a=t.getRectangle(),c=[Gl(),Ml(a.x,a.y),...Nu(Object.assign(Object.assign({},a),{rotation:0})),mh(s),Kl()].filter(Boolean);o.pushOperators(...c)}catch(e){console.error(e)}this.removeField(r)}}removeField(e){const t=e.acroField.getWidgets(),r=new Set;for(let n=0,o=t.length;n<o;n++)try{const o=t[n],i=this.findWidgetAppearanceRef(e,o),s=this.findWidgetPage(o);r.add(s),s.node.removeAnnot(i)}catch(e){console.error(e)}r.forEach((t=>t.node.removeAnnot(e.ref))),this.acroForm.removeField(e.acroField);const n=e.acroField.normalizedEntries().Kids,o=n.size();for(let e=0;e<o;e++){const t=n.get(e);t instanceof ei&&this.doc.context.delete(t)}this.doc.context.delete(e.ref)}updateFieldAppearances(e){Zn(e,"font",[[wf,"PDFFont"]]),e=null!=e?e:this.getDefaultFont();const t=this.getFields();for(let r=0,n=t.length;r<n;r++){const n=t[r];n.needsAppearancesUpdate()&&n.defaultUpdateAppearances(e)}}markFieldAsDirty(e){Zn(e,"fieldRef",[[ei,"PDFRef"]]),this.dirtyFields.add(e)}markFieldAsClean(e){Zn(e,"fieldRef",[[ei,"PDFRef"]]),this.dirtyFields.delete(e)}fieldIsDirty(e){return Zn(e,"fieldRef",[[ei,"PDFRef"]]),this.dirtyFields.has(e)}getDefaultFont(){return this.defaultFontCache.access()}findWidgetPage(e){const t=e.P();let r=this.doc.getPages().find((e=>e.ref===t));if(void 0===r){const t=this.doc.context.getObjectRef(e.dict);if(void 0===t)throw new Error("Could not find PDFRef for PDFObject");if(r=this.doc.findPageForAnnotationRef(t),void 0===r)throw new Error(`Could not find page for PDFRef ${t}`)}return r}findWidgetAppearanceRef(e,t){var r;let n=t.getNormalAppearance();if((e instanceof Cf||e instanceof Df)&&(n instanceof ei&&(n=this.doc.context.lookup(n,Zo)),n instanceof Zo)){const t=e.acroField.getValue(),o=null!==(r=n.get(t))&&void 0!==r?r:n.get(Ko.of("Off"));o instanceof ei&&(n=o)}if(!(n instanceof ei)){const t=e.getName();throw new Error(`Failed to extract appearance ref for: ${t}`)}return n}findOrCreateNonTerminals(e){let t=[this.acroForm];for(let r=0,n=e.length;r<n;r++){const n=e[r];if(!n)throw new Xu(n);const[o,i]=t,s=this.findNonTerminal(n,o);if(s)t=s;else{const e=Ii.create(this.doc.context);e.setPartialName(n),e.setParent(i);const r=this.doc.context.register(e.dict);o.addField(r),t=[e,r]}}return t}findNonTerminal(e,t){const r=t instanceof ts?this.acroForm.getFields():Ki(t.Kids());for(let t=0,n=r.length;t<n;t++){const[n,o]=r[t];if(n.getPartialName()===e){if(n instanceof Ii)return[n,o];throw new Ku(e)}}}}Pf.of=(e,t)=>new Pf(e,t);const Rf=(e,t,r)=>e instanceof Wi?op.of(e,t,r):e instanceof Pi?Cf.of(e,t,r):e instanceof Ui?Af.of(e,t,r):e instanceof Gi?Tf.of(e,t,r):e instanceof Li?Bf.of(e,t,r):e instanceof Hi?Df.of(e,t,r):e instanceof Vi?Of.of(e,t,r):void 0,Ef=e=>{if(0===e.length)throw new Error("PDF field names must not be empty strings");const t=e.split(".");for(let r=0,n=t.length;r<n;r++)if(""===t[r])throw new Error(`Periods in PDF field names must be separated by at least one character: "${e}"`);return 1===t.length?{nonTerminal:[],terminal:t[0]}:{nonTerminal:t.slice(0,t.length-1),terminal:t[t.length-1]}},Mf=([e,t],[r,n],o)=>{const i=e.normalizedEntries(),s=Ki("Kids"in i?i.Kids:i.Fields);for(let e=0,t=s.length;e<t;e++)if(s[e][0].getPartialName()===o)throw new Ku(o);e.addField(n),r.setParent(t)},jf={"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]};var qf;e.ParseSpeeds=void 0,(qf=e.ParseSpeeds||(e.ParseSpeeds={}))[qf.Fastest=1/0]="Fastest",qf[qf.Fast=1500]="Fast",qf[qf.Medium=500]="Medium",qf[qf.Slow=100]="Slow";class zf{constructor(e,t,r){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=r}embed(){return ui(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const e=yield this.embedder.embedIntoContext(this.doc.context,this.ref);this.doc.catalog.has(Ko.of("Names"))||this.doc.catalog.set(Ko.of("Names"),this.doc.context.obj({}));const t=this.doc.catalog.lookup(Ko.of("Names"),Zo);t.has(Ko.of("EmbeddedFiles"))||t.set(Ko.of("EmbeddedFiles"),this.doc.context.obj({}));const r=t.lookup(Ko.of("EmbeddedFiles"),Zo);r.has(Ko.of("Names"))||r.set(Ko.of("Names"),this.doc.context.obj([]));const n=r.lookup(Ko.of("Names"),zo);n.push(Yo.fromText(this.embedder.fileName)),n.push(e),this.doc.catalog.has(Ko.of("AF"))||this.doc.catalog.set(Ko.of("AF"),this.doc.context.obj([]));this.doc.catalog.lookup(Ko.of("AF"),zo).push(e),this.alreadyEmbedded=!0}}))}getEmbedder(){return this.embedder}}zf.of=(e,t,r)=>new zf(e,t,r);class Uf{constructor(e,t,r){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=r}embed(){return ui(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const{catalog:e,context:t}=this.doc,r=yield this.embedder.embedIntoContext(this.doc.context,this.ref);e.has(Ko.of("Names"))||e.set(Ko.of("Names"),t.obj({}));const n=e.lookup(Ko.of("Names"),Zo);n.has(Ko.of("JavaScript"))||n.set(Ko.of("JavaScript"),t.obj({}));const o=n.lookup(Ko.of("JavaScript"),Zo);o.has(Ko.of("Names"))||o.set(Ko.of("Names"),t.obj([]));const i=o.lookup(Ko.of("Names"),zo);i.push(Yo.fromText(this.embedder.scriptName)),i.push(r),this.alreadyEmbedded=!0}}))}}Uf.of=(e,t,r)=>new Uf(e,t,r);class If{static for(e,t){return new If(e,t)}constructor(e,t){this.script=e,this.scriptName=t}embedIntoContext(e,t){return ui(this,void 0,void 0,(function*(){const r=e.obj({Type:"Action",S:"JavaScript",JS:Yo.fromText(this.script)});return t?(e.assign(t,r),t):e.register(r)}))}}class Vf extends Es{constructor(e,t,r){super(r),this.stream=e,this.decrypt=t,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.stream.getBytes(512),this.initialized=!0),!e||0===e.length)return void(this.eof=!0);this.nextChunk=this.stream.getBytes(512);const t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);const r=this.bufferLength,n=r+e.length;this.ensureBuffer(n).set(e,r),this.bufferLength=n}}class Lf{constructor(e){this.a=0,this.b=0;const t=new Uint8Array(256),r=e.length;for(let e=0;e<256;++e)t[e]=e;for(let n=0,o=0;n<256;++n){const i=t[n];o=o+i+e[n%r]&255,t[n]=t[o],t[o]=i}this.s=t}encryptBlock(e){let t=this.a,r=this.b;const n=this.s,o=e.length,i=new Uint8Array(o);for(let s=0;s<o;++s){t=t+1&255;const o=n[t];r=r+o&255;const a=n[r];n[t]=a,n[r]=o,i[s]=e[s]^n[o+a&255]}return this.a=t,this.b=r,i}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}const Wf=function(){const e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(r,n,o){let i=1732584193,s=-271733879,a=-1732584194,c=271733878;const l=o+72&-64,h=new Uint8Array(l);let d,u;for(d=0;d<o;++d)h[d]=r[n++];h[d++]=128;const f=l-8;for(;d<f;)h[d++]=0;h[d++]=o<<3&255,h[d++]=o>>5&255,h[d++]=o>>13&255,h[d++]=o>>21&255,h[d++]=o>>>29&255,h[d++]=0,h[d++]=0,h[d++]=0;const p=new Int32Array(16);for(d=0;d<l;){for(u=0;u<16;++u,d+=4)p[u]=h[d]|h[d+1]<<8|h[d+2]<<16|h[d+3]<<24;let r,n,o=i,l=s,f=a,g=c;for(u=0;u<64;++u){u<16?(r=l&f|~l&g,n=u):u<32?(r=g&l|~g&f,n=5*u+1&15):u<48?(r=l^f^g,n=3*u+5&15):(r=f^(l|~g),n=7*u&15);const i=g,s=o+r+t[u]+p[n]|0,a=e[u];g=f,f=l,l=l+(s<<a|s>>>32-a)|0,o=i}i=i+o|0,s=s+l|0,a=a+f|0,c=c+g|0}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&a,a>>8&255,a>>16&255,a>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}}();class Hf{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const Gf=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function o(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}const s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(a,c,l){let h=1779033703,d=3144134277,u=1013904242,f=2773480762,p=1359893119,g=2600822924,m=528734635,b=1541459225;const y=64*Math.ceil((l+9)/64),v=new Uint8Array(y);let w,x;for(w=0;w<l;++w)v[w]=a[c++];v[w++]=128;const F=y-8;for(;w<F;)v[w++]=0;v[w++]=0,v[w++]=0,v[w++]=0,v[w++]=l>>>29&255,v[w++]=l>>21&255,v[w++]=l>>13&255,v[w++]=l>>5&255,v[w++]=l<<3&255;const S=new Uint32Array(64);for(w=0;w<y;){for(x=0;x<16;++x)S[x]=v[w]<<24|v[w+1]<<16|v[w+2]<<8|v[w+3],w+=4;for(x=16;x<64;++x)S[x]=0|(e(k=S[x-2],17)^e(k,19)^k>>>10)+S[x-7]+i(S[x-15])+S[x-16];let a,c,l=h,y=d,F=u,C=f,A=p,T=g,D=m,O=b;for(x=0;x<64;++x)a=O+o(A)+t(A,T,D)+s[x]+S[x],c=n(l)+r(l,y,F),O=D,D=T,T=A,A=C+a|0,C=F,F=y,y=l,l=a+c|0;h=h+l|0,d=d+y|0,u=u+F|0,f=f+C|0,p=p+A|0,g=g+T|0,m=m+D|0,b=b+O|0}var k;return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,u>>24&255,u>>16&255,u>>8&255,255&u,f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b])}}(),Kf=function(){function e(e,t,r,n,o){e.assign(t),e.and(r),o.assign(t),o.not(),o.and(n),e.xor(o)}function t(e,t,r,n,o){e.assign(t),e.and(r),o.assign(t),o.and(n),e.xor(o),o.assign(r),o.and(n),e.xor(o)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function o(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}const s=[new Hf(1116352408,3609767458),new Hf(1899447441,602891725),new Hf(3049323471,3964484399),new Hf(3921009573,2173295548),new Hf(961987163,4081628472),new Hf(1508970993,3053834265),new Hf(2453635748,2937671579),new Hf(2870763221,3664609560),new Hf(3624381080,2734883394),new Hf(310598401,1164996542),new Hf(607225278,1323610764),new Hf(1426881987,3590304994),new Hf(1925078388,4068182383),new Hf(2162078206,991336113),new Hf(2614888103,633803317),new Hf(3248222580,3479774868),new Hf(3835390401,2666613458),new Hf(4022224774,944711139),new Hf(264347078,2341262773),new Hf(604807628,2007800933),new Hf(770255983,1495990901),new Hf(1249150122,1856431235),new Hf(1555081692,3175218132),new Hf(1996064986,2198950837),new Hf(2554220882,3999719339),new Hf(2821834349,766784016),new Hf(2952996808,2566594879),new Hf(3210313671,3203337956),new Hf(3336571891,1034457026),new Hf(3584528711,2466948901),new Hf(113926993,3758326383),new Hf(338241895,168717936),new Hf(666307205,1188179964),new Hf(773529912,1546045734),new Hf(1294757372,1522805485),new Hf(1396182291,2643833823),new Hf(1695183700,2343527390),new Hf(1986661051,1014477480),new Hf(2177026350,1206759142),new Hf(2456956037,344077627),new Hf(2730485921,1290863460),new Hf(2820302411,3158454273),new Hf(3259730800,3505952657),new Hf(3345764771,106217008),new Hf(3516065817,3606008344),new Hf(3600352804,1432725776),new Hf(4094571909,1467031594),new Hf(275423344,851169720),new Hf(430227734,3100823752),new Hf(506948616,1363258195),new Hf(659060556,3750685593),new Hf(883997877,3785050280),new Hf(958139571,3318307427),new Hf(1322822218,3812723403),new Hf(1537002063,2003034995),new Hf(1747873779,3602036899),new Hf(1955562222,1575990012),new Hf(2024104815,1125592928),new Hf(2227730452,2716904306),new Hf(2361852424,442776044),new Hf(2428436474,593698344),new Hf(2756734187,3733110249),new Hf(3204031479,2999351573),new Hf(3329325298,3815920427),new Hf(3391569614,3928383900),new Hf(3515267271,566280711),new Hf(3940187606,3454069534),new Hf(4118630271,4000239992),new Hf(116418474,1914138554),new Hf(174292421,2731055270),new Hf(289380356,3203993006),new Hf(460393269,320620315),new Hf(685471733,587496836),new Hf(852142971,1086792851),new Hf(1017036298,365543100),new Hf(1126000580,2618297676),new Hf(1288033470,3409855158),new Hf(1501505948,4234509866),new Hf(1607167915,987167468),new Hf(1816402316,1246189591)];return function(a,c,l,h=!1){let d,u,f,p,g,m,b,y;h?(d=new Hf(3418070365,3238371032),u=new Hf(1654270250,914150663),f=new Hf(2438529370,812702999),p=new Hf(355462360,4144912697),g=new Hf(1731405415,4290775857),m=new Hf(2394180231,1750603025),b=new Hf(3675008525,1694076839),y=new Hf(1203062813,3204075428)):(d=new Hf(1779033703,4089235720),u=new Hf(3144134277,2227873595),f=new Hf(1013904242,4271175723),p=new Hf(2773480762,1595750129),g=new Hf(1359893119,2917565137),m=new Hf(2600822924,725511199),b=new Hf(528734635,4215389547),y=new Hf(1541459225,327033209));const v=128*Math.ceil((l+17)/128),w=new Uint8Array(v);let x,F;for(x=0;x<l;++x)w[x]=a[c++];w[x++]=128;const S=v-16;for(;x<S;)w[x++]=0;w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=l>>>29&255,w[x++]=l>>21&255,w[x++]=l>>13&255,w[x++]=l>>5&255,w[x++]=l<<3&255;const k=new Array(80);for(x=0;x<80;x++)k[x]=new Hf(0,0);let C=new Hf(0,0),A=new Hf(0,0),T=new Hf(0,0),D=new Hf(0,0),O=new Hf(0,0),B=new Hf(0,0),N=new Hf(0,0),P=new Hf(0,0);const R=new Hf(0,0),E=new Hf(0,0),M=new Hf(0,0),j=new Hf(0,0);let q,z;for(x=0;x<v;){for(F=0;F<16;++F)k[F].high=w[x]<<24|w[x+1]<<16|w[x+2]<<8|w[x+3],k[F].low=w[x+4]<<24|w[x+5]<<16|w[x+6]<<8|w[x+7],x+=8;for(F=16;F<80;++F)q=k[F],i(q,k[F-2],j),q.add(k[F-7]),o(M,k[F-15],j),q.add(M),q.add(k[F-16]);for(C.assign(d),A.assign(u),T.assign(f),D.assign(p),O.assign(g),B.assign(m),N.assign(b),P.assign(y),F=0;F<80;++F)R.assign(P),n(M,O,j),R.add(M),e(M,O,B,N,j),R.add(M),R.add(s[F]),R.add(k[F]),r(E,C,j),t(M,C,A,T,j),E.add(M),q=P,P=N,N=B,B=O,D.add(R),O=D,D=T,T=A,A=C,q.assign(R),q.add(E),C=q;d.add(C),u.add(A),f.add(T),p.add(D),g.add(O),m.add(B),b.add(N),y.add(P)}return h?(z=new Uint8Array(48),d.copyTo(z,0),u.copyTo(z,8),f.copyTo(z,16),p.copyTo(z,24),g.copyTo(z,32),m.copyTo(z,40)):(z=new Uint8Array(64),d.copyTo(z,0),u.copyTo(z,8),f.copyTo(z,16),p.copyTo(z,24),g.copyTo(z,32),m.copyTo(z,40),b.copyTo(z,48),y.copyTo(z,56)),z}}();class Xf{decryptBlock(e){return e}encrypt(e){return e}}class Zf{constructor(){if(this.constructor===Zf)throw new Error("Cannot initialize AESBaseCipher.");this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){throw new Error("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let r,n,o;const i=new Uint8Array(16);i.set(e);for(let e=0,r=this._keySize;e<16;++e,++r)i[e]^=t[r];for(let e=this._cyclesOfRepetition-1;e>=1;--e){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],o=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=o;for(let e=0;e<16;++e)i[e]=this._inv_s[i[e]];for(let r=0,n=16*e;r<16;++r,++n)i[r]^=t[n];for(let e=0;e<16;e+=4){const t=this._mix[i[e]],n=this._mix[i[e+1]],o=this._mix[i[e+2]],s=this._mix[i[e+3]];r=t^n>>>8^n<<24^o>>>16^o<<16^s>>>24^s<<8,i[e]=r>>>24&255,i[e+1]=r>>16&255,i[e+2]=r>>8&255,i[e+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],o=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=o;for(let e=0;e<16;++e)i[e]=this._inv_s[i[e]],i[e]^=t[e];return i}_encrypt(e,t){const r=this._s;let n,o,i;const s=new Uint8Array(16);s.set(e);for(let e=0;e<16;++e)s[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)s[e]=r[s[e]];i=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=i,i=s[2],o=s[6],s[2]=s[10],s[6]=s[14],s[10]=i,s[14]=o,i=s[3],o=s[7],n=s[11],s[3]=s[15],s[7]=i,s[11]=o,s[15]=n;for(let e=0;e<16;e+=4){const t=s[e+0],r=s[e+1],o=s[e+2],i=s[e+3];n=t^r^o^i,s[e+0]^=n^this._mixCol[t^r],s[e+1]^=n^this._mixCol[r^o],s[e+2]^=n^this._mixCol[o^i],s[e+3]^=n^this._mixCol[i^t]}for(let r=0,n=16*e;r<16;++r,++n)s[r]^=t[n]}for(let e=0;e<16;++e)s[e]=r[s[e]];i=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=i,i=s[2],o=s[6],s[2]=s[10],s[6]=s[14],s[10]=i,s[14]=o,i=s[3],o=s[7],n=s[11],s[3]=s[15],s[7]=i,s[11]=o,s[15]=n;for(let e=0,r=this._keySize;e<16;++e,++r)s[e]^=t[r];return s}_decryptBlock2(e,t){const r=e.length;let n=this.buffer,o=this.bufferPosition;const i=[];let s=this.iv;for(let t=0;t<r;++t){if(n[o]=e[t],++o,o<16)continue;const r=this._decrypt(n,this._key);for(let e=0;e<16;++e)r[e]^=s[e];s=n,i.push(r),n=new Uint8Array(16),o=0}if(this.buffer=n,this.bufferLength=o,this.iv=s,0===i.length)return new Uint8Array(0);let a=16*i.length;if(t){const e=i[i.length-1];let t=e[15];if(t<=16){for(let r=15,n=16-t;r>=n;--r)if(e[r]!==t){t=0;break}a-=t,i[i.length-1]=e.subarray(0,16-t)}}const c=new Uint8Array(a);for(let e=0,t=0,r=i.length;e<r;++e,t+=16)c.set(i[e],t);return c}decryptBlock(e,t,r){const n=e.length,o=this.buffer;let i=this.bufferPosition;if(r)this.iv=r;else{for(let t=0;i<16&&t<n;++t,++i)o[i]=e[t];if(i<16)return this.bufferLength=i,new Uint8Array(0);this.iv=o,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){const r=e.length;let n=this.buffer,o=this.bufferPosition;const i=[];t||(t=new Uint8Array(16));for(let s=0;s<r;++s){if(n[o]=e[s],++o,o<16)continue;for(let e=0;e<16;++e)n[e]^=t[e];const r=this._encrypt(n,this._key);t=r,i.push(r),n=new Uint8Array(16),o=0}if(this.buffer=n,this.bufferLength=o,this.iv=t,0===i.length)return new Uint8Array(0);const s=16*i.length,a=new Uint8Array(s);for(let e=0,t=0,r=i.length;e<r;++e,t+=16)a.set(i[e],t);return a}}class Yf extends Zf{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){const t=this._s,r=this._rcon,n=new Uint8Array(176);n.set(e);for(let e=16,o=1;e<176;++o){let i=n[e-3],s=n[e-2],a=n[e-1],c=n[e-4];i=t[i],s=t[s],a=t[a],c=t[c],i^=r[o];for(let t=0;t<4;++t)n[e]=i^=n[e-16],e++,n[e]=s^=n[e-16],e++,n[e]=a^=n[e-16],e++,n[e]=c^=n[e-16],e++}return n}}class Jf extends Zf{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){const t=this._s,r=new Uint8Array(240);r.set(e);let n=1,o=0,i=0,s=0,a=0;for(let e=32,c=1;e<240;++c){e%32==16?(o=t[o],i=t[i],s=t[s],a=t[a]):e%32==0&&(o=r[e-3],i=r[e-2],s=r[e-1],a=r[e-4],o=t[o],i=t[i],s=t[s],a=t[a],o^=n,(n<<=1)>=256&&(n=255&(27^n)));for(let t=0;t<4;++t)r[e]=o^=r[e-32],e++,r[e]=i^=r[e-32],e++,r[e]=s^=r[e-32],e++,r[e]=a^=r[e-32],e++}return r}}class Qf{checkOwnerPassword(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=Gf(o,0,o.length);return M(i,n)}checkUserPassword(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=Gf(n,0,n.length);return M(o,r)}getOwnerKey(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=Gf(o,0,o.length);return new Jf(i).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=Gf(n,0,n.length);return new Jf(o).decryptBlock(r,!1,new Uint8Array(16))}}class _f{calculatePDF20Hash(e,t,r){let n=Gf(t,0,t.length).subarray(0,32),o=new Uint8Array([0]),i=0;for(;i<64||o[o.length-1]>i-32;){const t=e.length+n.length+r.length,l=new Uint8Array(t);let h=0;l.set(e,h),h+=e.length,l.set(n,h),h+=n.length,l.set(r,h);const d=new Uint8Array(64*t);for(let e=0,r=0;e<64;e++,r+=t)d.set(l,r);o=new Yf(n.subarray(0,16)).encrypt(d,n.subarray(16,32));const u=o.slice(0,16).reduce(((e,t)=>e+t),0)%3;0===u?n=Gf(o,0,o.length):1===u?(s=o,a=0,c=o.length,n=Kf(s,a,c,!0)):2===u&&(n=Kf(o,0,o.length)),i++}var s,a,c;return n.subarray(0,32)}hash(e,t,r){return this.calculatePDF20Hash(e,t,r)}checkOwnerPassword(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=this.calculatePDF20Hash(e,o,r);return M(i,n)}checkUserPassword(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=this.calculatePDF20Hash(e,n,new Uint8Array);return M(o,r)}getOwnerKey(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=this.calculatePDF20Hash(e,o,r);return new Jf(i).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=this.calculatePDF20Hash(e,n,new Uint8Array);return new Jf(o).decryptBlock(r,!1,new Uint8Array(16))}}class $f{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const r=this.StreamCipherConstructor();return new Vf(e,(function(e,t){return r.decryptBlock(e,t)}),t)}decryptString(e){const t=this.StringCipherConstructor();let r=p(e);return r=t.decryptBlock(r,!0),P(r)}decryptBytes(e){return this.StringCipherConstructor().decryptBlock(e,!0)}encryptString(e){const t=this.StringCipherConstructor();if(t instanceof Zf){const r=16-e.length%16;e+=String.fromCharCode(r).repeat(r);const n=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(n);else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random());let o=p(e);o=t.encrypt(o,n);const i=new Uint8Array(16+o.length);return i.set(n),i.set(o,16),P(i)}let r=p(e);return r=t.encrypt(r),P(r)}}class ep{constructor(e,t,r){var n,o;this.defaultPasswordBytes=new Uint8Array([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]),this.identityName=Ko.of("Identity");const i=e.get(Ko.of("Filter"));if("/Standard"!==i.asString())throw new Error("unknown encryption method");this.filterName=i.asString(),this.dict=e;const s=e.get(Ko.of("V")).asNumber();if(!Number.isInteger(s)||1!==s&&2!==s&&4!==s&&5!==s)throw new Error("unsupported encryption algorithm");this.algorithm=s;let a=null===(n=e.get(Ko.of("Length")))||void 0===n?void 0:n.asNumber();if(!a)if(s<=3)a=40;else{const t=e.get(Ko.of("CF")),r=e.get(Ko.of("StmF"));if(t instanceof Zo&&r instanceof Ko){t.suppressEncryption=!0;const e=t.get(Ko.of(r.asString()));let n=null;e&&(n=e.get(Ko.of("Length"))),a=n&&n.asNumber()||128,a<40&&(a<<=3)}}if(void 0===a||!Number.isInteger(a)||a<40||a%8!=0)throw new Error(`invalid key length: ${a}`);const c=e.get(Ko.of("O")).asBytes(),l=e.get(Ko.of("U")).asBytes(),h=c.subarray(0,32),d=l.subarray(0,32),u=e.get(Ko.of("P")).asNumber(),f=e.get(Ko.of("R")).asNumber(),g=(4===s||5===s)&&!1!==(null===(o=e.get(Ko.of("EncryptMetadata")))||void 0===o?void 0:o.asBoolean());let m,b;if(this.encryptMetadata=g,r){if(6===f)try{r=unescape(encodeURIComponent(r))}catch(e){console.warn("CipherTransformFactory: Unable to convert UTF8 encoded password.")}m=p(r)}if(5!==s)b=this.prepareKeyData(t,m,h,d,u,f,a,g);else{const t=c.subarray(32,40),r=c.subarray(40,48),n=l.subarray(0,48),o=l.subarray(32,40),i=l.subarray(40,48),s=e.get(Ko.of("OE")).asBytes(),a=e.get(Ko.of("UE")).asBytes(),u=e.get(Ko.of("Perms")).asBytes();b=this.createEncryptionKey20(f,m,h,t,r,n,d,o,i,s,a,u)}if(!b&&!r)throw new Error("NEEDS PASSWORD");if(!b&&r){const e=this.decodeUserPassword(m,h,f,a);b=this.prepareKeyData(t,e,h,d,u,f,a,g)}if(!b)throw new Error("Password incorrect");if(this.encryptionKey=b,s>=4){const t=e.get(Ko.of("CF"));t instanceof Zo&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get(Ko.of("StmF"))||this.identityName,this.strf=e.get(Ko.of("StrF"))||this.identityName,this.eff=e.get(Ko.of("EFF"))||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new $f(this.buildCipherConstructor(this.cf,this.strf,e,t,this.encryptionKey),this.buildCipherConstructor(this.cf,this.stmf,e,t,this.encryptionKey));const r=this.buildObjectKey(e,t,this.encryptionKey,!1),n=function(){return new Lf(r)};return new $f(n,n)}createEncryptionKey20(e,t,r,n,o,i,s,a,c,l,h,d){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=new Uint8Array;let u;return u=6===e?new _f:new Qf,u.checkUserPassword(t,a,s)?u.getUserKey(t,c,h):t.length&&u.checkOwnerPassword(t,n,i,r)?u.getOwnerKey(t,o,i,l):null}prepareKeyData(e,t,r,n,o,i,s,a){const c=40+r.length+e.length,l=new Uint8Array(c);let h,d,u=0;if(t)for(d=Math.min(32,t.length);u<d;++u)l[u]=t[u];for(h=0;u<32;)l[u++]=this.defaultPasswordBytes[h++];for(h=0,d=r.length;h<d;++h)l[u++]=r[h];for(l[u++]=255&o,l[u++]=o>>8&255,l[u++]=o>>16&255,l[u++]=o>>>24&255,h=0,d=e.length;h<d;++h)l[u++]=e[h];i>=4&&!a&&(l[u++]=255,l[u++]=255,l[u++]=255,l[u++]=255);let f=Wf(l,0,u);const p=s>>3;if(i>=3)for(h=0;h<50;++h)f=Wf(f,0,p);const g=f.subarray(0,p);let m,b;if(i>=3){for(u=0;u<32;++u)l[u]=this.defaultPasswordBytes[u];for(h=0,d=e.length;h<d;++h)l[u++]=e[h];m=new Lf(g),b=m.encryptBlock(Wf(l,0,u)),d=g.length;const t=new Uint8Array(d);for(h=1;h<=19;++h){for(let e=0;e<d;++e)t[e]=g[e]^h;m=new Lf(t),b=m.encryptBlock(b)}for(h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null}else for(m=new Lf(g),b=m.encryptBlock(this.defaultPasswordBytes),h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null;return g}decodeUserPassword(e,t,r,n){const o=new Uint8Array(32);let i=0;const s=Math.min(32,e.length);for(;i<s;++i)o[i]=e[i];let a=0;for(;i<32;)o[i++]=this.defaultPasswordBytes[a++];let c=Wf(o,0,i);const l=n>>3;if(r>=3)for(a=0;a<50;++a)c=Wf(c,0,c.length);let h,d;if(r>=3){d=t;const e=new Uint8Array(l);for(a=19;a>=0;a--){for(let t=0;t<l;++t)e[t]=c[t]^a;h=new Lf(e),d=h.encryptBlock(d)}}else h=new Lf(c.subarray(0,l)),d=h.encryptBlock(t);return d}buildObjectKey(e,t,r,n=!1){const o=new Uint8Array(r.length+9),i=r.length;let s;for(s=0;s<i;++s)o[s]=r[s];o[s++]=255&e,o[s++]=e>>8&255,o[s++]=e>>16&255,o[s++]=255&t,o[s++]=t>>8&255,n&&(o[s++]=115,o[s++]=65,o[s++]=108,o[s++]=84);return Wf(o,0,s).subarray(0,Math.min(r.length+5,16))}buildCipherConstructor(e,t,r,n,o){if(!(t instanceof Ko))throw new Error("Invalid crypt filter name.");const i=e.get(Ko.of(t.asString().replace("/","")));let s;if(null!=i&&(s=i.get(Ko.of("CFM"))),!s||"/None"===s.asString())return function(){return new Xf};if("/V2"===s.asString())return()=>new Lf(this.buildObjectKey(r,n,o,!1));if("/AESV2"===s.asString())return()=>new Yf(this.buildObjectKey(r,n,o,!0));if("/AESV3"===s.asString())return()=>new Jf(o);throw new Error("Unknown crypto method")}}class tp{static load(t,r={}){return ui(this,void 0,void 0,(function*(){const{ignoreEncryption:n=!1,parseSpeed:o=e.ParseSpeeds.Slow,throwOnInvalidObject:i=!1,warnOnInvalidObjects:s=!1,updateMetadata:a=!0,capNumbers:c=!1,password:l,forIncrementalUpdate:h=!1,preserveObjectsVersions:d=!1}=r;Xn(t,"pdf",["string",Uint8Array,ArrayBuffer]),Xn(n,"ignoreEncryption",["boolean"]),Xn(o,"parseSpeed",["number"]),Xn(i,"throwOnInvalidObject",["boolean"]),Xn(s,"warnOnInvalidObjects",["boolean"]),Xn(l,"password",["string","undefined"]),Xn(h,"forIncrementalUpdate",["boolean"]),Xn(d,"preserveObjectsVersions",["boolean"]);const u=V(t),f=yield da.forBytesWithOptions(u,o,i,void 0,c,void 0,h,d).parseDocument();if(f.lookup(f.trailerInfo.Encrypt)&&void 0!==l){const e=f.lookup(f.trailerInfo.ID,zo),t=f.lookup(f.trailerInfo.Encrypt,Zo),r=yield da.forBytesWithOptions(u,o,i,s,c,new ep(t,e.get(0).asBytes(),l),h,d).parseDocument(),n=new tp(r,!0,a);return h&&n.takeSnapshot(),n}{const e=new tp(f,n,a);return h&&e.takeSnapshot(),e}}))}static create(e={}){return ui(this,void 0,void 0,(function*(){const{updateMetadata:t=!0}=e,r=li.create(),n=ls.withContext(r),o=r.register(n),i=cs.withContextAndPages(r,o);return r.trailerInfo.Root=r.register(i),new tp(r,!1,t)}))}constructor(e,t,r){if(this.defaultWordBreaks=[" "],this.computePages=()=>{const e=[];return this.catalog.Pages().traverse(((t,r)=>{if(t instanceof hi){let n=this.pageMap.get(t);n||(n=np.of(t,r,this),this.pageMap.set(t,n)),e.push(n)}})),e},this.getOrCreateForm=()=>{const e=this.catalog.getOrCreateAcroForm();return Pf.of(e,this)},Xn(e,"context",[[li,"PDFContext"]]),Xn(t,"ignoreEncryption",["boolean"]),this.context=e,this.catalog=e.lookup(e.trailerInfo.Root),e.lookup(e.trailerInfo.Encrypt)&&e.isDecrypted&&delete e.trailerInfo.Encrypt,this.isEncrypted=!!e.lookup(e.trailerInfo.Encrypt),this.pageCache=no.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=no.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!t&&this.isEncrypted)throw new Uu;r&&this.updateInfoDict()}registerFontkit(e){this.fontkit=e}getForm(){const e=this.formCache.access();return e.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),e.deleteXFA()),e}getTitle(){const e=this.getInfoDict().lookup(Ko.Title);if(e)return rp(e),e.decodeText()}getAuthor(){const e=this.getInfoDict().lookup(Ko.Author);if(e)return rp(e),e.decodeText()}getSubject(){const e=this.getInfoDict().lookup(Ko.Subject);if(e)return rp(e),e.decodeText()}getKeywords(){const e=this.getInfoDict().lookup(Ko.Keywords);if(e)return rp(e),e.decodeText()}getCreator(){const e=this.getInfoDict().lookup(Ko.Creator);if(e)return rp(e),e.decodeText()}getProducer(){const e=this.getInfoDict().lookup(Ko.Producer);if(e)return rp(e),e.decodeText()}getLanguage(){const e=this.catalog.get(Ko.of("Lang"));if(e)return rp(e),e.decodeText()}getCreationDate(){const e=this.getInfoDict().lookup(Ko.CreationDate);if(e)return rp(e),e.decodeDate()}getModificationDate(){const e=this.getInfoDict().lookup(Ko.ModDate);if(e)return rp(e),e.decodeDate()}setTitle(e,t){Xn(e,"title",["string"]);const r=Ko.of("Title");if(this.getInfoDict().set(r,Yo.fromText(e)),null==t?void 0:t.showInWindowTitleBar){this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)}}setAuthor(e){Xn(e,"author",["string"]);const t=Ko.of("Author");this.getInfoDict().set(t,Yo.fromText(e))}setSubject(e){Xn(e,"author",["string"]);const t=Ko.of("Subject");this.getInfoDict().set(t,Yo.fromText(e))}setKeywords(e){Xn(e,"keywords",[Array]);const t=Ko.of("Keywords");this.getInfoDict().set(t,Yo.fromText(e.join(" ")))}setCreator(e){Xn(e,"creator",["string"]);const t=Ko.of("Creator");this.getInfoDict().set(t,Yo.fromText(e))}setProducer(e){Xn(e,"creator",["string"]);const t=Ko.of("Producer");this.getInfoDict().set(t,Yo.fromText(e))}setLanguage(e){Xn(e,"language",["string"]);const t=Ko.of("Lang");this.catalog.set(t,ti.of(e))}setCreationDate(e){Xn(e,"creationDate",[[Date,"Date"]]);const t=Ko.of("CreationDate");this.getInfoDict().set(t,ti.fromDate(e))}setModificationDate(e){Xn(e,"modificationDate",[[Date,"Date"]]);const t=Ko.of("ModDate");this.getInfoDict().set(t,ti.fromDate(e))}getPageCount(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount}getPages(){return this.pageCache.access()}getPage(e){const t=this.getPages();return Jn(e,"index",0,t.length-1),t[e]}getPageIndices(){return z(0,this.getPageCount())}removePage(e){const t=this.getPageCount();if(0===this.pageCount)throw new Lu;Jn(e,"index",0,t-1);const r=this.getPage(e);this.catalog.removeLeafNode(e),this.pageCount=t-1,this.context.delete(r.ref)}addPage(e){return Xn(e,"page",["undefined",[np,"PDFPage"],Array]),this.insertPage(this.getPageCount(),e)}insertPage(e,t){const r=this.getPageCount();if(Jn(e,"index",0,r),Xn(t,"page",["undefined",[np,"PDFPage"],Array]),!t||Array.isArray(t)){const e=Array.isArray(t)?t:jf.A4;(t=np.create(this)).setSize(...e)}else if(t.doc!==this)throw new Vu;const n=this.catalog.insertLeafNode(t.ref,e);return t.node.setParent(n),this.pageMap.set(t.node,t),this.pageCache.invalidate(),this.pageCount=r+1,t}copyPages(e,t){return ui(this,void 0,void 0,(function*(){Xn(e,"srcDoc",[[tp,"PDFDocument"]]),Xn(t,"indices",[Array]),yield e.flush();const r=di.for(e.context,this.context),n=e.getPages(),o=t.map((e=>n[e])).map((e=>ui(this,void 0,void 0,(function*(){return r.copy(e.node)})))).map((e=>e.then((e=>np.of(e,this.context.register(e),this)))));return Promise.all(o)}))}copy(){return ui(this,void 0,void 0,(function*(){const e=yield tp.create(),t=yield e.copyPages(this,this.getPageIndices());for(let r=0,n=t.length;r<n;r++)e.addPage(t[r]);return void 0!==this.getAuthor()&&e.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&e.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&e.setCreator(this.getCreator()),void 0!==this.getLanguage()&&e.setLanguage(this.getLanguage()),void 0!==this.getModificationDate()&&e.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&e.setProducer(this.getProducer()),void 0!==this.getSubject()&&e.setSubject(this.getSubject()),void 0!==this.getTitle()&&e.setTitle(this.getTitle()),e.defaultWordBreaks=this.defaultWordBreaks,e}))}addJavaScript(e,t){Xn(e,"name",["string"]),Xn(t,"script",["string"]);const r=If.for(t,e),n=this.context.nextRef(),o=Uf.of(n,this,r);this.javaScripts.push(o)}attach(t,r,n={}){return ui(this,void 0,void 0,(function*(){Xn(t,"attachment",["string",Uint8Array,ArrayBuffer]),Xn(r,"name",["string"]),Zn(n.mimeType,"mimeType",["string"]),Zn(n.description,"description",["string"]),Zn(n.creationDate,"options.creationDate",[Date]),Zn(n.modificationDate,"options.modificationDate",[Date]),Ln(n.afRelationship,"options.afRelationship",e.AFRelationship);const o=V(t),i=ws.for(o,r,n),s=this.context.nextRef(),a=zf.of(s,this,i);this.embeddedFiles.push(a)}))}getRawAttachments(){if(!this.catalog.has(Ko.of("Names")))return[];const e=this.catalog.lookup(Ko.of("Names"),Zo);if(!e.has(Ko.of("EmbeddedFiles")))return[];const t=e.lookup(Ko.of("EmbeddedFiles"),Zo);if(!t.has(Ko.of("Names")))return[];const r=t.lookup(Ko.of("Names"),zo),n=[];for(let e=0,t=r.size();e<t;e+=2){const t=r.lookup(e),o=r.lookup(e+1,Zo);n.push({fileName:t,fileSpec:o})}return n}getSavedAttachments(){return this.getRawAttachments().flatMap((({fileName:e,fileSpec:t})=>{const r=t.lookup(Ko.of("EF"));if(!(r instanceof Zo))return[];const n=r.lookup(Ko.of("F"));if(!(n instanceof Jo))return[];const o=t.lookup(Ko.of("AFRelationship")),i=o instanceof Ko?o.toString().slice(1):o instanceof ti?o.decodeText():void 0,s=n.dict,a=s.lookup(Ko.of("Subtype")),c=a instanceof Ko?a.toString().slice(1):a instanceof ti?a.decodeText():void 0,l=s.lookup(Ko.of("Params"),Zo);let h,d;if(l instanceof Zo){const e=l.lookup(Ko.of("CreationDate")),t=l.lookup(Ko.of("ModDate"));e instanceof ti&&(h=e.decodeDate()),t instanceof ti&&(d=t.decodeDate())}const u=t.lookup(Ko.of("Desc")).decodeText();return[{name:e.decodeText(),data:Xs(n).decode(),mimeType:null==c?void 0:c.replace(/#([0-9A-Fa-f]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16)))),afRelationship:i,description:u,creationDate:h,modificationDate:d}]}))}getUnsavedAttachments(){return this.embeddedFiles.map((e=>{const t=e.getEmbedder();return{name:t.fileName,data:t.getFileData(),description:t.options.description,mimeType:t.options.mimeType,afRelationship:t.options.afRelationship,creationDate:t.options.creationDate,modificationDate:t.options.modificationDate}}))}getAttachments(){return[...this.getSavedAttachments(),...this.getUnsavedAttachments()]}embedFont(e,t={}){return ui(this,void 0,void 0,(function*(){const{subset:r=!1,customName:n,features:o}=t;let i;if(Xn(e,"font",["string",Uint8Array,ArrayBuffer]),Xn(r,"subset",["boolean"]),Mn(e))i=ds.for(e,n);else{if(!I(e))throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");{const t=V(e),s=this.assertFontkit();i=r?yield ys.for(s,t,n,o):yield bs.for(s,t,n,o)}}const s=this.context.nextRef(),a=wf.of(s,this,i);return this.fonts.push(a),a}))}embedStandardFont(e,t){if(Xn(e,"font",["string"]),!Mn(e))throw new TypeError("`font` must be one of type `StandardFonts`");const r=ds.for(e,t),n=this.context.nextRef(),o=wf.of(n,this,r);return this.fonts.push(o),o}embedJpg(e){return ui(this,void 0,void 0,(function*(){Xn(e,"jpg",["string",Uint8Array,ArrayBuffer]);const t=V(e),r=yield ks.for(t),n=this.context.nextRef(),o=xf.of(n,this,r);return this.images.push(o),o}))}embedPng(e){return ui(this,void 0,void 0,(function*(){Xn(e,"png",["string",Uint8Array,ArrayBuffer]);const t=V(e),r=yield Ns.for(t),n=this.context.nextRef(),o=xf.of(n,this,r);return this.images.push(o),o}))}embedSvg(e){return ui(this,void 0,void 0,(function*(){if(!e)return new _d(e);const t=Nd.parse(e),r=e=>"image"===e.tagName?[e]:e.childNodes.map((e=>e.nodeType===Nd.NodeType.ELEMENT_NODE?r(e):[])).flat(),n=r(t),o={};return yield Promise.all(n.map((e=>ui(this,void 0,void 0,(function*(){var t;const r=null!==(t=e.attributes.href)&&void 0!==t?t:e.attributes["xlink:href"];if(!r||o[r])return;const n=r.match(/\.png(\?|$)|^data:image\/png;base64/gim)?yield this.embedPng(r):yield this.embedJpg(r);o[r]=n}))))),new _d(e,o)}))}embedPdf(e,t=[0]){return ui(this,void 0,void 0,(function*(){Xn(e,"pdf",["string",Uint8Array,ArrayBuffer,[tp,"PDFDocument"]]),Xn(t,"indices",[Array]);const r=e instanceof tp?e:yield tp.load(e),n=U(r.getPages(),t);return this.embedPages(n)}))}embedPage(e,t,r){return ui(this,void 0,void 0,(function*(){Xn(e,"page",[[np,"PDFPage"]]);const[n]=yield this.embedPages([e],[t],[r]);return n}))}embedPages(e,t=[],r=[]){return ui(this,void 0,void 0,(function*(){if(0===e.length)return[];for(let t=0,r=e.length-1;t<r;t++){const r=e[t],n=e[t+1];if(r.node.context!==n.node.context)throw new fo}const n=e[0].node.context,o=n===this.context?e=>e:di.for(n,this.context).copy,i=new Array(e.length);for(let n=0,s=e.length;n<s;n++){const s=o(e[n].node),a=t[n],c=r[n],l=yield Zs.for(s,a,c),h=this.context.nextRef();i[n]=vf.of(h,this,l)}return this.embeddedPages.push(...i),i}))}encrypt(e){this.context.security=Jc.create(this.context,e).encrypt()}flush(){return ui(this,void 0,void 0,(function*(){yield this.embedAll(this.fonts),yield this.embedAll(this.images),yield this.embedAll(this.embeddedPages),yield this.embedAll(this.embeddedFiles),yield this.embedAll(this.javaScripts)}))}save(e={}){return ui(this,void 0,void 0,(function*(){const{useObjectStreams:t=!0,objectsPerTick:r=50,rewrite:n=!1}=e;Xn(t,"useObjectStreams",["boolean"]),Xn(r,"objectsPerTick",["number"]),Xn(n,"rewrite",["boolean"]);const o=!n&&this.context.pdfFileDetails.originalBytes&&this.context.snapshot;o&&(e.addDefaultPage=!1,e.updateFieldAppearances=!1),yield this.prepareForSave(e);const i=t?hs:wi;if(o){const e=yield i.forContextWithSnapshot(this.context,r,this.context.snapshot).serializeToBuffer(),t=new Uint8Array(this.context.pdfFileDetails.originalBytes.byteLength+e.byteLength);return t.set(this.context.pdfFileDetails.originalBytes),t.set(e,this.context.pdfFileDetails.originalBytes.byteLength),t}return i.forContext(this.context,r).serializeToBuffer()}))}saveIncremental(e,t={}){return ui(this,void 0,void 0,(function*(){const{objectsPerTick:r=50}=t;Xn(r,"objectsPerTick",["number"]);const n=Object.assign(Object.assign({},t),{addDefaultPage:!1,updateFieldAppearances:!1});yield this.prepareForSave(n);return(this.context.pdfFileDetails.useObjectStreams?hs:wi).forContextWithSnapshot(this.context,r,e).serializeToBuffer()}))}saveAsBase64(e={}){return ui(this,void 0,void 0,(function*(){const{dataUri:t=!1}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["dataUri"]);Xn(t,"dataUri",["boolean"]);const o=yield this.save(r),i=n(o);return t?`data:application/pdf;base64,${i}`:i}))}findPageForAnnotationRef(e){const t=this.getPages();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.node.Annots();if(void 0!==(null==o?void 0:o.indexOf(e)))return n}}takeSnapshot(){const e=new gi(this.context.largestObjectNumber,[],this.context.pdfFileDetails.pdfSize,this.context.pdfFileDetails.prevStartXRef,this.context);return!this.context.snapshot&&this.context.pdfFileDetails.originalBytes&&(this.context.snapshot=e,this.catalog.registerChange()),e}getChangedObjects(e=0){if(!this.context.preserveObjectsVersions)return[];e<0&&(e=0);const t=this.context.xrefs.length-e-1,r=this.context.listXrefEntries(t);if(!r.length)return[];const n=new Map;for(const e of r){const t=e.ref;n.set(t,{ref:t,actual:e.deleted?void 0:this.context.lookup(t),previous:this.context.getObjectVersions(t)})}if(!e)return Array.from(n.entries()).map((e=>e[1]));for(;e;){e-=1;const t=this.context.xrefs.length-e-1,r=this.context.listXrefEntries(t);for(const e of r){const t=n.get(e.ref);t&&t.actual&&(t.actual=t.previous[0],t.previous=t.previous.slice(1))}}return Array.from(n.entries()).map((e=>e[1])).filter((e=>e.actual||e.previous.length))}prepareForSave(e){return ui(this,void 0,void 0,(function*(){const{addDefaultPage:t=!0,updateFieldAppearances:r=!0}=e;if(Xn(t,"addDefaultPage",["boolean"]),Xn(r,"updateFieldAppearances",["boolean"]),t&&0===this.getPageCount()&&this.addPage(),r){const e=this.formCache.getValue();e&&e.updateFieldAppearances()}yield this.flush()}))}embedAll(e){return ui(this,void 0,void 0,(function*(){for(let t=0,r=e.length;t<r;t++)yield e[t].embed()}))}updateInfoDict(){const e="pdf-lib (https://github.com/Hopding/pdf-lib)",t=new Date,r=this.getInfoDict();this.setProducer(e),this.setModificationDate(t),r.get(Ko.of("Creator"))||this.setCreator(e),r.get(Ko.of("CreationDate"))||this.setCreationDate(t)}getInfoDict(){const e=this.context.lookup(this.context.trailerInfo.Info);if(e instanceof Zo)return e;const t=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(t),t}assertFontkit(){if(!this.fontkit)throw new Iu;return this.fontkit}}function rp(e){if(!(e instanceof Yo||e instanceof ti))throw new so([Yo,ti],e)}class np{constructor(e,t,r){this.fontSize=24,this.fontColor=ud(0,0,0),this.lineHeight=24,this.x=0,this.y=0,Xn(e,"leafNode",[[hi,"PDFPageLeaf"]]),Xn(t,"ref",[[ei,"PDFRef"]]),Xn(r,"doc",[[tp,"PDFDocument"]]),this.node=e,this.ref=t,this.doc=r}setRotation(e){const t=Al(e);_n(t,"degreesAngle",90),this.node.set(Ko.of("Rotate"),this.doc.context.obj(t))}getRotation(){const e=this.node.Rotate();return Fl(e?e.asNumber():0)}setSize(e,t){Xn(e,"width",["number"]),Xn(t,"height",["number"]);const r=this.getMediaBox();this.setMediaBox(r.x,r.y,e,t);const n=this.getCropBox(),o=this.getBleedBox(),i=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),c=this.node.BleedBox(),l=this.node.TrimBox(),h=this.node.ArtBox();a&&jn(n,r)&&this.setCropBox(r.x,r.y,e,t),c&&jn(o,r)&&this.setBleedBox(r.x,r.y,e,t),l&&jn(i,r)&&this.setTrimBox(r.x,r.y,e,t),h&&jn(s,r)&&this.setArtBox(r.x,r.y,e,t)}setWidth(e){Xn(e,"width",["number"]),this.setSize(e,this.getSize().height)}setHeight(e){Xn(e,"height",["number"]),this.setSize(this.getSize().width,e)}setMediaBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.MediaBox,o)}setCropBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.CropBox,o)}setBleedBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.BleedBox,o)}setTrimBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.TrimBox,o)}setArtBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.ArtBox,o)}getSize(){const{width:e,height:t}=this.getMediaBox();return{width:e,height:t}}getWidth(){return this.getSize().width}getHeight(){return this.getSize().height}getMediaBox(){return this.node.MediaBox().asRectangle()}getCropBox(){var e;const t=this.node.CropBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getMediaBox()}getBleedBox(){var e;const t=this.node.BleedBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()}getTrimBox(){var e;const t=this.node.TrimBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()}getArtBox(){var e;const t=this.node.ArtBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()}translateContent(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(Gl(),Ml(e,t)),n=this.doc.context.register(r),o=this.createContentStream(Kl()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)}scale(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.setSize(this.getWidth()*e,this.getHeight()*t),this.scaleContent(e,t),this.scaleAnnotations(e,t)}scaleContent(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(Gl(),jl(e,t)),n=this.doc.context.register(r),o=this.createContentStream(Kl()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)}scaleAnnotations(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]);const r=this.node.Annots();if(r)for(let n=0;n<r.size();n++){const o=r.lookup(n);o instanceof Zo&&this.scaleAnnot(o,e,t)}}resetPosition(){this.getContentStream(!1),this.x=0,this.y=0}setFont(e){Xn(e,"font",[[wf,"PDFFont"]]),this.font=e,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)}setFontSize(e){Xn(e,"fontSize",["number"]),this.fontSize=e}setFontColor(e){Xn(e,"fontColor",[[Object,"Color"]]),this.fontColor=e}setLineHeight(e){Xn(e,"lineHeight",["number"]),this.lineHeight=e}getPosition(){return{x:this.x,y:this.y}}getX(){return this.x}getY(){return this.y}moveTo(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.x=e,this.y=t}moveDown(e){Xn(e,"yDecrease",["number"]),this.y-=e}moveUp(e){Xn(e,"yIncrease",["number"]),this.y+=e}moveLeft(e){Xn(e,"xDecrease",["number"]),this.x-=e}moveRight(e){Xn(e,"xIncrease",["number"]),this.x+=e}pushOperators(...e){Yn(e,"operator",[[ri,"PDFOperator"]]);this.getContentStream().push(...e)}drawText(t,r={}){var n,o,i,s,a,c,l;Xn(t,"text",["string"]),Zn(r.color,"options.color",[[Object,"Color"]]),Qn(r.opacity,"opacity.opacity",0,1),Zn(r.font,"options.font",[[wf,"PDFFont"]]),Zn(r.size,"options.size",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.lineHeight,"options.lineHeight",["number"]),Zn(r.maxWidth,"options.maxWidth",["number"]),Zn(r.wordBreaks,"options.wordBreaks",[Array]),Ln(r.blendMode,"options.blendMode",e.BlendMode),Zn(r.strokeColor,"options.strokeColor",[[Object,"Color"]]),Zn(r.strokeWidth,"options.strokeWidth",["number"]),Zn(r.renderMode,"options.renderMode",["number"]);const{oldFont:h,newFont:d,newFontKey:u}=this.setOrEmbedFont(r.font),f=r.size||this.fontSize,p=r.wordBreaks||this.doc.defaultWordBreaks,g=void 0===r.maxWidth?w(b(t)):k(t,p,r.maxWidth,(e=>d.widthOfTextAtSize(e,f))),m=new Array(g.length);for(let e=0,t=g.length;e<t;e++)m[e]=d.encodeText(g[e]);const y=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode});this.getContentStream().push(...Fu(m,{color:null!==(n=r.color)&&void 0!==n?n:this.fontColor,font:u,size:f,rotate:null!==(o=r.rotate)&&void 0!==o?o:Fl(0),xSkew:null!==(i=r.xSkew)&&void 0!==i?i:Fl(0),ySkew:null!==(s=r.ySkew)&&void 0!==s?s:Fl(0),x:null!==(a=r.x)&&void 0!==a?a:this.x,y:null!==(c=r.y)&&void 0!==c?c:this.y,lineHeight:null!==(l=r.lineHeight)&&void 0!==l?l:this.lineHeight,graphicsState:y,matrix:r.matrix,clipSpaces:r.clipSpaces,strokeColor:r.strokeColor,strokeWidth:r.strokeWidth,renderMode:r.renderMode})),r.font&&(h?this.setFont(h):this.resetFont())}drawImage(t,r={}){var n,o,i,s,a,c,l;Xn(t,"image",[[xf,"PDFImage"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.width,"options.width",["number"]),Zn(r.height,"options.height",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),Qn(r.opacity,"opacity.opacity",0,1),Ln(r.blendMode,"options.blendMode",e.BlendMode);const h=this.node.newXObject("Image",t.ref),d=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode});this.getContentStream().push(...Su(h,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,width:null!==(i=r.width)&&void 0!==i?i:t.size().width,height:null!==(s=r.height)&&void 0!==s?s:t.size().height,rotate:null!==(a=r.rotate)&&void 0!==a?a:Fl(0),xSkew:null!==(c=r.xSkew)&&void 0!==c?c:Fl(0),ySkew:null!==(l=r.ySkew)&&void 0!==l?l:Fl(0),graphicsState:d,matrix:r.matrix,clipSpaces:r.clipSpaces}))}drawPage(t,r={}){var n,o,i,s,a;Xn(t,"embeddedPage",[[vf,"PDFEmbeddedPage"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.xScale,"options.xScale",["number"]),Zn(r.yScale,"options.yScale",["number"]),Zn(r.width,"options.width",["number"]),Zn(r.height,"options.height",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),Qn(r.opacity,"opacity.opacity",0,1),Ln(r.blendMode,"options.blendMode",e.BlendMode);const c=this.node.newXObject("EmbeddedPdfPage",t.ref),l=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode}),h=void 0!==r.width?r.width/t.width:void 0!==r.xScale?r.xScale:1,d=void 0!==r.height?r.height/t.height:void 0!==r.yScale?r.yScale:1;this.getContentStream().push(...ku(c,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,xScale:h,yScale:d,rotate:null!==(i=r.rotate)&&void 0!==i?i:Fl(0),xSkew:null!==(s=r.xSkew)&&void 0!==s?s:Fl(0),ySkew:null!==(a=r.ySkew)&&void 0!==a?a:Fl(0),graphicsState:l}))}drawSvgPath(t,r={}){var n,o,i,s,a,c,l,h,d;Xn(t,"path",["string"]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.scale,"options.scale",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.borderWidth,"options.borderWidth",["number"]),Zn(r.color,"options.color",[[Object,"Color"]]),Qn(r.opacity,"opacity.opacity",0,1),Zn(r.borderColor,"options.borderColor",[[Object,"Color"]]),Zn(r.borderDashArray,"options.borderDashArray",[Array]),Zn(r.borderDashPhase,"options.borderDashPhase",["number"]),Ln(r.borderLineCap,"options.borderLineCap",e.LineCapStyle),Qn(r.borderOpacity,"options.borderOpacity",0,1),Ln(r.blendMode,"options.blendMode",e.BlendMode),Ln(r.fillRule,"options.fillRule",e.FillRule);const u=this.maybeEmbedGraphicsState({opacity:r.opacity,borderOpacity:r.borderOpacity,blendMode:r.blendMode});"color"in r||"borderColor"in r||(r.borderColor=ud(0,0,0));this.getContentStream().push(...Ou(t,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,scale:r.scale,rotate:null!==(i=r.rotate)&&void 0!==i?i:Fl(0),color:null!==(s=r.color)&&void 0!==s?s:void 0,borderColor:null!==(a=r.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(c=r.borderWidth)&&void 0!==c?c:0,borderDashArray:null!==(l=r.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(h=r.borderDashPhase)&&void 0!==h?h:void 0,borderLineCap:null!==(d=r.borderLineCap)&&void 0!==d?d:void 0,graphicsState:u,fillRule:r.fillRule,matrix:r.matrix,clipSpaces:r.clipSpaces}))}drawLine(t){var r,n,o,i,s;Xn(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),Xn(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),Xn(t.start.x,"options.start.x",["number"]),Xn(t.start.y,"options.start.y",["number"]),Xn(t.end.x,"options.end.x",["number"]),Xn(t.end.y,"options.end.y",["number"]),Zn(t.thickness,"options.thickness",["number"]),Zn(t.color,"options.color",[[Object,"Color"]]),Zn(t.dashArray,"options.dashArray",[Array]),Zn(t.dashPhase,"options.dashPhase",["number"]),Ln(t.lineCap,"options.lineCap",e.LineCapStyle),Qn(t.opacity,"opacity.opacity",0,1),Ln(t.blendMode,"options.blendMode",e.BlendMode);const a=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=ud(0,0,0));this.getContentStream().push(...Cu({start:t.start,end:t.end,thickness:null!==(r=t.thickness)&&void 0!==r?r:1,color:null!==(n=t.color)&&void 0!==n?n:void 0,dashArray:null!==(o=t.dashArray)&&void 0!==o?o:void 0,dashPhase:null!==(i=t.dashPhase)&&void 0!==i?i:void 0,lineCap:null!==(s=t.lineCap)&&void 0!==s?s:void 0,graphicsState:a,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawRectangle(t={}){var r,n,o,i,s,a,c,l,h,d,u,f,p,g,m;Zn(t.x,"options.x",["number"]),Zn(t.y,"options.y",["number"]),Zn(t.width,"options.width",["number"]),Zn(t.height,"options.height",["number"]),Zn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Zn(t.borderWidth,"options.borderWidth",["number"]),Zn(t.color,"options.color",[[Object,"Color"]]),Qn(t.opacity,"options.opacity",0,1),Zn(t.rx,"options.rx",["number"]),Zn(t.ry,"options.ry",["number"]),Zn(t.borderColor,"options.borderColor",[[Object,"Color"]]),Zn(t.borderDashArray,"options.borderDashArray",[Array]),Zn(t.borderDashPhase,"options.borderDashPhase",["number"]),Ln(t.borderLineCap,"options.borderLineCap",e.LineCapStyle),Qn(t.borderOpacity,"options.borderOpacity",0,1),Ln(t.blendMode,"options.blendMode",e.BlendMode);const b=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=ud(0,0,0));this.getContentStream().push(...Tu({x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,width:null!==(o=t.width)&&void 0!==o?o:150,height:null!==(i=t.height)&&void 0!==i?i:100,rotate:null!==(s=t.rotate)&&void 0!==s?s:Fl(0),xSkew:null!==(a=t.xSkew)&&void 0!==a?a:Fl(0),ySkew:null!==(c=t.ySkew)&&void 0!==c?c:Fl(0),borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,color:null!==(h=t.color)&&void 0!==h?h:void 0,rx:null!==(d=t.rx)&&void 0!==d?d:0,ry:null!==(u=t.ry)&&void 0!==u?u:0,borderColor:null!==(f=t.borderColor)&&void 0!==f?f:void 0,borderDashArray:null!==(p=t.borderDashArray)&&void 0!==p?p:void 0,borderDashPhase:null!==(g=t.borderDashPhase)&&void 0!==g?g:void 0,graphicsState:b,borderLineCap:null!==(m=t.borderLineCap)&&void 0!==m?m:void 0,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawSquare(e={}){const{size:t}=e;Zn(t,"size",["number"]),this.drawRectangle(Object.assign(Object.assign({},e),{width:t,height:t}))}drawEllipse(t={}){var r,n,o,i,s,a,c,l,h,d,u;Zn(t.x,"options.x",["number"]),Zn(t.y,"options.y",["number"]),Zn(t.xScale,"options.xScale",["number"]),Zn(t.yScale,"options.yScale",["number"]),Zn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(t.color,"options.color",[[Object,"Color"]]),Qn(t.opacity,"opacity.opacity",0,1),Zn(t.borderColor,"options.borderColor",[[Object,"Color"]]),Qn(t.borderOpacity,"options.borderOpacity",0,1),Zn(t.borderWidth,"options.borderWidth",["number"]),Zn(t.borderDashArray,"options.borderDashArray",[Array]),Zn(t.borderDashPhase,"options.borderDashPhase",["number"]),Ln(t.borderLineCap,"options.borderLineCap",e.LineCapStyle),Ln(t.blendMode,"options.blendMode",e.BlendMode);const f=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=ud(0,0,0));this.getContentStream().push(...Du({x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,xScale:null!==(o=t.xScale)&&void 0!==o?o:100,yScale:null!==(i=t.yScale)&&void 0!==i?i:100,rotate:null!==(s=t.rotate)&&void 0!==s?s:void 0,color:null!==(a=t.color)&&void 0!==a?a:void 0,borderColor:null!==(c=t.borderColor)&&void 0!==c?c:void 0,borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(h=t.borderDashArray)&&void 0!==h?h:void 0,borderDashPhase:null!==(d=t.borderDashPhase)&&void 0!==d?d:void 0,borderLineCap:null!==(u=t.borderLineCap)&&void 0!==u?u:void 0,graphicsState:f,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawCircle(e={}){const{size:t=100}=e;Zn(t,"size",["number"]),this.drawEllipse(Object.assign(Object.assign({},e),{xScale:t,yScale:t}))}setOrEmbedFont(e){const t=this.font,r=this.fontKey;e?this.setFont(e):this.getFont();return{oldFont:t,oldFontKey:r,newFont:this.font,newFontKey:this.fontKey}}drawSvg(t,r={}){var n,o;Xn(t,"svg",["string",[_d,"PDFSvg"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.width,"options.width",["number"]),Zn(r.height,"options.height",["number"]),Ln(r.blendMode,"options.blendMode",e.BlendMode),vu(this,t,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,fonts:r.fonts,width:r.width,height:r.height,blendMode:r.blendMode})}getFont(){if(!this.font||!this.fontKey){const t=this.doc.embedStandardFont(e.StandardFonts.Helvetica);this.setFont(t)}return[this.font,this.fontKey]}resetFont(){this.font=void 0,this.fontKey=void 0}getContentStream(e=!0){return e&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream}createContentStream(...e){const t=this.doc.context.obj({});return si.of(t,e)}maybeEmbedGraphicsState(e){const{opacity:t,borderOpacity:r,blendMode:n}=e;if(void 0===t&&void 0===r&&void 0===n)return;const o=this.doc.context.obj({Type:"ExtGState",ca:t,CA:r,BM:n});return this.node.newExtGState("GS",o)}scaleAnnot(e,t,r){const n=["RD","CL","Vertices","QuadPoints","L","Rect"];for(let o=0,i=n.length;o<i;o++){const i=e.lookup(Ko.of(n[o]));i instanceof zo&&i.scalePDFNumbers(t,r)}const o=e.lookup(Ko.of("InkList"));if(o instanceof zo)for(let e=0,n=o.size();e<n;e++){const n=o.lookup(e);n instanceof zo&&n.scalePDFNumbers(t,r)}}}np.of=(e,t,r)=>new np(e,t,r),np.create=e=>{Xn(e,"doc",[[tp,"PDFDocument"]]);const t=ei.of(-1),r=hi.withContextAndParent(e.context,t),n=e.context.register(r);return new np(r,n,e)};class op extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroButton",[[Wi,"PDFAcroPushButton"]]),this.acroField=e}setImage(t,r=e.ImageAlignment.Center){const n=this.acroField.getWidgets();for(let e=0,o=n.length;e<o;e++){const o=n[e],i=this.createImageAppearanceStream(o,t,r);this.updateWidgetAppearances(o,{normal:i})}this.markAsClean()}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}addToPage(e,t,r){var n,o,i,s,a,c,l,h,d,u,f;Zn(e,"text",["string"]),Zn(t,"page",[[np,"PDFPage"]]),Sf(r);const p=this.createWidget({x:(null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0)-(null!==(o=null==r?void 0:r.borderWidth)&&void 0!==o?o:0)/2,y:(null!==(i=null==r?void 0:r.y)&&void 0!==i?i:0)-(null!==(s=null==r?void 0:r.borderWidth)&&void 0!==s?s:0)/2,width:null!==(a=null==r?void 0:r.width)&&void 0!==a?a:100,height:null!==(c=null==r?void 0:r.height)&&void 0!==c?c:50,textColor:null!==(l=null==r?void 0:r.textColor)&&void 0!==l?l:ud(0,0,0),backgroundColor:null!==(h=null==r?void 0:r.backgroundColor)&&void 0!==h?h:ud(.75,.75,.75),borderColor:null==r?void 0:r.borderColor,borderWidth:null!==(d=null==r?void 0:r.borderWidth)&&void 0!==d?d:0,rotate:null!==(u=null==r?void 0:r.rotate)&&void 0!==u?u:Fl(0),caption:e,hidden:null==r?void 0:r.hidden,page:t.ref}),g=this.doc.context.register(p.dict);this.acroField.addWidget(g);const m=null!==(f=null==r?void 0:r.font)&&void 0!==f?f:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,m),t.node.addAnnot(g)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:gf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}op.of=(e,t,r)=>new op(e,t,r),e.AppearanceCharacteristics=Di,e.Cache=no,e.CharCodes=Eo,e.CombedTextLayoutError=Ju,e.CorruptPageTreeError=bo,e.CustomFontEmbedder=bs,e.CustomFontSubsetEmbedder=ys,e.DefaultDocumentSnapshot=fi,e.EncryptedPDFError=Uu,e.ExceededMaxLengthError=Qu,e.FieldAlreadyExistsError=Ku,e.FieldExistsAsNonTerminalError=Zu,e.FileEmbedder=ws,e.FontkitNotRegisteredError=Iu,e.ForeignPageError=Vu,e.IncrementalDocumentSnapshot=gi,e.IndexOutOfBoundsError=yo,e.InvalidAcroFieldValueError=vo,e.InvalidFieldNamePartError=Xu,e.InvalidMaxLengthError=_u,e.InvalidPDFDateStringError=go,e.InvalidTargetIndexError=mo,e.JpegEmbedder=ks,e.MethodNotImplementedError=oo,e.MissingCatalogError=lo,e.MissingDAEntryError=xo,e.MissingKeywordError=Po,e.MissingOnValueCheckError=Gu,e.MissingPDFHeaderError=No,e.MissingPageContentsEmbeddingError=ho,e.MissingTfOperatorError=Fo,e.MultiSelectValueError=wo,e.NextByteAssertionError=Co,e.NoSuchFieldError=Wu,e.NumberParsingError=So,e.PDFAcroButton=Ni,e.PDFAcroCheckBox=Pi,e.PDFAcroChoice=zi,e.PDFAcroComboBox=Ui,e.PDFAcroField=Ci,e.PDFAcroForm=ts,e.PDFAcroListBox=Gi,e.PDFAcroNonTerminal=Ii,e.PDFAcroPushButton=Wi,e.PDFAcroRadioButton=Hi,e.PDFAcroSignature=Vi,e.PDFAcroTerminal=Bi,e.PDFAcroText=Li,e.PDFAnnotation=Ti,e.PDFArray=zo,e.PDFArrayIsNotRectangleError=po,e.PDFBool=Io,e.PDFButton=op,e.PDFCatalog=cs,e.PDFCheckBox=Cf,e.PDFContentStream=si,e.PDFContext=li,e.PDFCrossRefSection=mi,e.PDFCrossRefStream=Si,e.PDFDict=Zo,e.PDFDocument=tp,e.PDFDropdown=Af,e.PDFEmbeddedPage=vf,e.PDFField=kf,e.PDFFlateStream=ii,e.PDFFont=wf,e.PDFForm=Pf,e.PDFHeader=Mo,e.PDFHexString=Yo,e.PDFImage=xf,e.PDFInvalidObject=xi,e.PDFInvalidObjectParsingError=To,e.PDFJavaScript=Uf,e.PDFName=Ko,e.PDFNull=Xo,e.PDFNumber=qo,e.PDFObject=jo,e.PDFObjectCopier=di,e.PDFObjectParser=ca,e.PDFObjectParsingError=Ao,e.PDFObjectStream=vi,e.PDFObjectStreamParser=la,e.PDFOperator=ri,e.PDFOperatorNames=oi,e.PDFOptionList=Tf,e.PDFPage=np,e.PDFPageEmbedder=Zs,e.PDFPageLeaf=hi,e.PDFPageTree=ls,e.PDFParser=da,e.PDFParsingError=ko,e.PDFRadioGroup=Df,e.PDFRawStream=Qo,e.PDFRef=ei,e.PDFSecurity=Jc,e.PDFSignature=Of,e.PDFStream=Jo,e.PDFStreamParsingError=Do,e.PDFStreamWriter=hs,e.PDFString=ti,e.PDFSvg=_d,e.PDFTextField=Bf,e.PDFTrailer=bi,e.PDFTrailerDict=yi,e.PDFWidgetAnnotation=Oi,e.PDFWriter=wi,e.PDFXRefStreamParser=ha,e.PageEmbeddingMismatchedContextError=fo,e.PageSizes=jf,e.PngEmbedder=Ns,e.PrivateConstructorError=io,e.RemovePageFromEmptyDocumentError=Lu,e.ReparseError=co,e.RichTextFieldReadError=Yu,e.StalledParserError=Bo,e.StandardFontEmbedder=ds,e.StandardFontValues=En,e.UnbalancedParenthesisError=Oo,e.UnexpectedFieldTypeError=Hu,e.UnexpectedObjectTypeError=so,e.UnrecognizedStreamTypeError=uo,e.UnsupportedEncodingError=ao,e.ViewerPreferences=as,e.addRandomSuffix=(e,t=4)=>`${e}-${Math.floor(Math.random()*Math.pow(10,t))}`,e.adjustDimsForRotation=Dl,e.appendBezierCurve=Zl,e.appendQuadraticCurve=Yl,e.arrayAsString=P,e.asNumber=wl,e.asPDFName=yl,e.asPDFNumber=vl,e.assertEachIs=Yn,e.assertInteger=$n,e.assertIs=Xn,e.assertIsOneOf=Vn,e.assertIsOneOfOrUndefined=Ln,e.assertIsSubset=Wn,e.assertMultiple=_n,e.assertOrUndefined=Zn,e.assertPositive=eo,e.assertRange=Jn,e.assertRangeOrUndefined=Qn,e.backtick=qn,e.beginMarkedContent=Sh,e.beginText=ch,e.breakTextIntoLines=k,e.byAscendingId=R,e.byteArrayToHexString=W,e.bytesFor=ce,e.canBeConvertedToUint8Array=I,e.charAtIndex=F,e.charFromCode=d,e.charFromHexCode=u,e.charSplit=S,e.cleanText=b,e.clip=Bl,e.clipEvenOdd=()=>ri.of(oi.ClipEvenOdd),e.closePath=Jl,e.cmyk=fd,e.colorString=pd,e.colorToComponents=yd,e.componentsToColor=bd,e.concatTransformationMatrix=El,e.copyStringIntoBuffer=g,e.createPDFAcroField=Xi,e.createPDFAcroFields=Ki,e.createTypeErrorMsg=Kn,e.createValueErrorMsg=In,e.decodeFromBase64=o,e.decodeFromBase64DataUri=s,e.decodePDFRawStream=Xs,e.defaultButtonAppearanceProvider=gf,e.defaultCheckBoxAppearanceProvider=ff,e.defaultDocumentSnapshot=pi,e.defaultDropdownAppearanceProvider=bf,e.defaultOptionListAppearanceProvider=yf,e.defaultRadioGroupAppearanceProvider=pf,e.defaultTextFieldAppearanceProvider=mf,e.degrees=Fl,e.degreesToRadians=Sl,e.drawButton=Eu,e.drawCheckBox=Pu,e.drawCheckMark=Bu,e.drawEllipse=Du,e.drawImage=Su,e.drawLine=Cu,e.drawLinesOfText=Fu,e.drawObject=mh,e.drawOptionList=qu,e.drawPage=ku,e.drawRadioButton=Ru,e.drawRectangle=Tu,e.drawSvgPath=Ou,e.drawText=(e,t)=>[Gl(),t.graphicsState&&Hl(t.graphicsState),ch(),gd(t.color),hh(t.font,t.size),t.strokeWidth&&Xl(t.strokeWidth),t.strokeColor&&md(t.strokeColor),t.renderMode&&fh(t.renderMode),gh(Cl(t.rotate),Cl(t.xSkew),Cl(t.ySkew),t.x,t.y),ah(e),lh(),Kl()].filter(Boolean),e.drawTextField=ju,e.drawTextLines=Mu,e.encodeToBase64=n,e.endMarkedContent=kh,e.endPath=ih,e.endText=lh,e.error=le,e.escapeRegExp=m,e.escapedNewlineChars=y,e.fill=rh,e.fillAndStroke=oh,e.fillEvenOdd=nh,e.findLastMatch=T,e.getType=Hn,e.grayscale=dd,e.hasSurrogates=X,e.hasUtf16BOM=ie,e.highSurrogate=Z,e.isArrayEqual=M,e.isNewlineChar=v,e.isStandardFont=Mn,e.isType=Gn,e.isWithinBMP=K,e.last=D,e.layoutCombedText=of,e.layoutMultilineText=nf,e.layoutSinglelineText=sf,e.lineSplit=w,e.lineTo=_l,e.lowSurrogate=Y,e.mergeIntoTypedArray=B,e.mergeLines=x,e.mergeUint8Arrays=N,e.moveText=(e,t)=>ri.of(oi.MoveText,[vl(e),vl(t)]),e.moveTo=Ql,e.newlineChars=["\n","\f","\r","\v"],e.nextLine=sh,e.normalizeAppearance=af,e.numberToString=se,e.padStart=f,e.parseDate=A,e.pdfDocEncodingDecode=ro,e.pluckIndices=U,e.popGraphicsState=Kl,e.pushGraphicsState=Gl,e.radians=t=>(Xn(t,"radianAngle",["number"]),{type:e.RotationTypes.Radians,angle:t}),e.radiansToDegrees=kl,e.range=z,e.rectangle=$l,e.rectanglesAreEqual=jn,e.reduceRotation=Tl,e.restoreDashPattern=()=>Il([],0),e.reverseArray=j,e.rgb=ud,e.rotateAndSkewTextDegreesAndTranslate=(e,t,r,n,o)=>gh(Sl(wl(e)),Sl(wl(t)),Sl(wl(r)),n,o),e.rotateAndSkewTextRadiansAndTranslate=gh,e.rotateDegrees=zl,e.rotateInPlace=Nu,e.rotateRadians=ql,e.rotateRectangle=Ol,e.scale=jl,e.setCharacterSpacing=e=>ri.of(oi.SetCharacterSpacing,[vl(e)]),e.setCharacterSqueeze=e=>ri.of(oi.SetTextHorizontalScaling,[vl(e)]),e.setDashPattern=Il,e.setFillingCmykColor=xh,e.setFillingColor=gd,e.setFillingGrayscaleColor=bh,e.setFillingRgbColor=vh,e.setFontAndSize=hh,e.setGraphicsState=Hl,e.setLineCap=Ll,e.setLineHeight=dh,e.setLineJoin=e=>ri.of(oi.SetLineJoinStyle,[vl(e)]),e.setLineWidth=Xl,e.setStrokingCmykColor=Fh,e.setStrokingColor=md,e.setStrokingGrayscaleColor=yh,e.setStrokingRgbColor=wh,e.setTextMatrix=ph,e.setTextRenderingMode=fh,e.setTextRise=e=>ri.of(oi.SetTextRise,[vl(e)]),e.setWordSpacing=e=>ri.of(oi.SetWordSpacing,[vl(e)]),e.showText=ah,e.singleQuote=zn,e.sizeInBytes=ae,e.skewDegrees=(e,t)=>Ul(Sl(wl(e)),Sl(wl(t))),e.skewRadians=Ul,e.sortedUniq=E,e.square=(e,t,r)=>$l(e,t,r,r),e.stringAsByteArray=p,e.stroke=eh,e.sum=q,e.toCharCode=a,e.toCodePoint=c,e.toDegrees=Al,e.toHexString=h,e.toHexStringOfMinLength=l,e.toRadians=Cl,e.toUint8Array=V,e.translate=Ml,e.typedArrayFor=O,e.utf16Decode=_,e.utf16Encode=G,e.utf8Encode=(e,t=!0)=>{const r=[];t&&r.push(239,187,191);for(let t=0,n=e.length;t<n;){const n=e.codePointAt(t);if(n<128){const e=127&n;r.push(e),t+=1}else if(n<2048){const e=n>>6&31|192,o=63&n|128;r.push(e,o),t+=1}else if(n<65536){const e=n>>12&15|224,o=n>>6&63|128,i=63&n|128;r.push(e,o,i),t+=1}else{if(!(n<1114112))throw new Error(`Invalid code point: 0x${h(n)}`);{const e=n>>18&7|240,o=n>>12&63|128,i=n>>6&63|128,s=n>>0&63|128;r.push(e,o,i,s),t+=2}}}return new Uint8Array(r)},e.values=Rn,e.waitForTick=H}));
|
|
18
|
+
return function(t){var r=e,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.algo,a=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=o.create([0,1518500249,1859775393,2400959708,2840853838]),u=o.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,s,f,w,x,F,S,k,C,A,T,D=this._hash.words,O=d.words,B=u.words,N=a.words,P=c.words,R=l.words,E=h.words;for(F=i=D[0],S=s=D[1],k=f=D[2],C=w=D[3],A=x=D[4],r=0;r<80;r+=1)T=i+e[t+N[r]]|0,T+=r<16?p(s,f,w)+O[0]:r<32?g(s,f,w)+O[1]:r<48?m(s,f,w)+O[2]:r<64?b(s,f,w)+O[3]:y(s,f,w)+O[4],T=(T=v(T|=0,R[r]))+x|0,i=x,x=w,w=v(f,10),f=s,s=T,T=F+e[t+P[r]]|0,T+=r<16?y(S,k,C)+B[0]:r<32?b(S,k,C)+B[1]:r<48?m(S,k,C)+B[2]:r<64?g(S,k,C)+B[3]:p(S,k,C)+B[4],T=(T=v(T|=0,E[r]))+A|0,F=A,A=C,C=v(k,10),k=S,S=T;T=D[1]+f+C|0,D[1]=D[2]+w+A|0,D[2]=D[3]+x+F|0,D[3]=D[4]+i+S|0,D[4]=D[0]+s+k|0,D[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function b(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function v(e,t){return e<<t|e>>>32-t}r.RIPEMD160=i._createHelper(f),r.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160}(ga())}(Qa)),ec(),tc||(tc=1,function(e,t){e.exports=function(e){return n=(r=(t=e).lib).Base,o=r.WordArray,s=(i=t.algo).SHA256,a=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=a.create(r.hasher,e),i=o.create(),s=o.create([1]),c=i.words,l=s.words,h=r.keySize,d=r.iterations;c.length<h;){var u=n.update(t).finalize(s);n.reset();for(var f=u.words,p=f.length,g=u,m=1;m<d;m++){g=n.finalize(g),n.reset();for(var b=g.words,y=0;y<p;y++)f[y]^=b[y]}i.concat(u),l[0]++}return i.sigBytes=4*h,i}}),t.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)},e.PBKDF2;var t,r,n,o,i,s,a,c}(ga(),Ua(),ec())}(rc)),ic(),cc(),dc(),pc(),bc(),wc(),xc||(xc=1,function(e,t){e.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(ga(),cc())}(Fc)),Sc||(Sc=1,function(e,t){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(ga(),cc())}(kc)),Cc||(Cc=1,function(e,t){e.exports=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(ga(),cc())}(Ac)),Tc||(Tc=1,function(e,t){e.exports=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(ga(),cc())}(Dc)),Oc||(Oc=1,function(e,t){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding}(ga(),cc())}(Bc)),Nc||(Nc=1,function(e,t){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(ga(),cc())}(Pc)),Rc||(Rc=1,function(e,t){e.exports=function(e){return r=(t=e).lib.CipherParams,n=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}},e.format.Hex;var t,r,n}(ga(),cc())}(Ec)),Mc||(Mc=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],s=[],a=[],c=[],l=[],h=[],d=[],u=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var g=e[r],m=e[g],b=e[m],y=257*e[p]^16843008*p;s[r]=y<<24|y>>>8,a[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,l[r]=y,y=16843009*b^65537*m^257*g^16843008*r,h[p]=y<<24|y>>>8,d[p]=y<<16|y>>>16,u[p]=y<<8|y>>>24,f[p]=y,r?(r=g^e[e[e[b^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],s=0;s<n;s++)s<r?i[s]=t[s]:(l=i[s-1],s%r?r>6&&s%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[s/r|0]<<24),i[s]=i[s-r]^l);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:h[o[l>>>24]]^d[o[l>>>16&255]]^u[o[l>>>8&255]]^f[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,h,d,u,f,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var c=this._nRounds,l=e[t]^r[0],h=e[t+1]^r[1],d=e[t+2]^r[2],u=e[t+3]^r[3],f=4,p=1;p<c;p++){var g=n[l>>>24]^o[h>>>16&255]^i[d>>>8&255]^s[255&u]^r[f++],m=n[h>>>24]^o[d>>>16&255]^i[u>>>8&255]^s[255&l]^r[f++],b=n[d>>>24]^o[u>>>16&255]^i[l>>>8&255]^s[255&h]^r[f++],y=n[u>>>24]^o[l>>>16&255]^i[h>>>8&255]^s[255&d]^r[f++];l=g,h=m,d=b,u=y}g=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^r[f++],m=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^r[f++],b=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[f++],y=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^r[f++],e[t]=g,e[t+1]=m,e[t+2]=b,e[t+3]=y},keySize:8});t.AES=r._createHelper(g)}(),e.AES}(ga(),Ta(),Ra(),ic(),cc())}(jc)),Uc(),Ic||(Ic=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var s=o%r,a=t[s>>>2]>>>24-s%4*8&255;i=(i+n[o]+a)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var s=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(s)}(),e.RC4}(ga(),Ta(),Ra(),ic(),cc())}(Vc)),Lc||(Lc=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=l>>>16|4294901760&h,u=h<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=h,o[3]^=u,o[4]^=l,o[5]^=d,o[6]^=h,o[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(a)}(),e.Rabbit}(ga(),Ta(),Ra(),ic(),cc())}(Wc)),Hc||(Hc=1,function(e,t){e.exports=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=l>>>16|4294901760&h,u=h<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=h,n[3]^=u,n[4]^=l,n[5]^=d,n[6]^=h,n[7]^=u,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(a)}(),e.RabbitLegacy}(ga(),Ta(),Ra(),ic(),cc())}(Gc)),Zc())}(ua);var Yc=de(ua.exports);class Jc{static create(e,t){return new Jc(e,t)}constructor(e,t){if(!t.ownerPassword&&!t.userPassword)throw new Error("Either an owner password or a user password must be specified.");this.context=e,this.initialize(t)}initialize(e){let t;switch(this.id=Qc(),this.context.header.getVersionString()){case"1.4":case"1.5":t=2;break;case"1.6":case"1.7":t=4;break;case"1.7ext3":t=5;break;default:t=1}switch(t){case 1:case 2:case 4:this.encryption=this.initializeV1V2V4(t,e);break;case 5:this.encryption=this.initializeV5(e)}}initializeV1V2V4(e,t){const r={Filter:"Standard"};let n,o;switch(e){case 1:n=2,this.keyBits=40,o=$c(t.permissions);break;case 2:n=3,this.keyBits=128,o=el(t.permissions);break;case 4:n=4,this.keyBits=128,o=el(t.permissions);break;default:throw new Error(`Unsupported algorithm '${e}'.`)}const i=dl(t.userPassword),s=t.ownerPassword?dl(t.ownerPassword):i,a=nl(n,this.keyBits,i,s);let c;return this.encryptionKey=ol(n,this.keyBits,this.id,i,a,o),c=2===n?tl(this.encryptionKey):rl(this.id,this.encryptionKey),r.V=e,e>=2&&(r.Length=this.keyBits),4===e&&(r.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},r.StmF="StdCF",r.StrF="StdCF"),r.R=n,r.O=pl(a),r.U=pl(c),r.P=o,r}initializeV5(e){const t={Filter:"Standard"};this.keyBits=256,this.encryptionKey=ll(_c);const r=ul(e.userPassword),n=il(r,_c),o=Yc.lib.WordArray.create(n.words.slice(10,12),8),i=sl(r,o,this.encryptionKey),s=e.ownerPassword?ul(e.ownerPassword):r,a=al(s,n,_c),c=Yc.lib.WordArray.create(a.words.slice(10,12),8),l=cl(s,c,n,this.encryptionKey),h=el(e.permissions),d=hl(h,this.encryptionKey,_c);return 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=pl(a),t.OE=pl(l),t.U=pl(n),t.UE=pl(i),t.P=h,t.Perms=pl(d),t}getEncryptFn(e,t){const r=this.encryption.V;let n,o;if(r<5){if(n=this.encryptionKey.clone().concat(Yc.lib.WordArray.create([(255&e)<<24|(65280&e)<<8|e>>8&65280|255&t,(65280&t)<<16],5)),1===r||2===r)return o=Yc.MD5(n),o.sigBytes=Math.min(16,this.keyBits/8+5),e=>pl(Yc.RC4.encrypt(Yc.lib.WordArray.create(e),o).ciphertext);4===r&&(o=Yc.MD5(n.concat(Yc.lib.WordArray.create([1933667412],4))))}else{if(5!==r)throw new Error(`Unsupported algorithm '${r}'.`);o=this.encryptionKey}const i=_c(16),s={mode:Yc.mode.CBC,padding:Yc.pad.Pkcs7,iv:i};return e=>pl(i.clone().concat(Yc.AES.encrypt(Yc.lib.WordArray.create(e),o,s).ciphertext))}encrypt(){const e=this.context.obj([this.id,this.id]);this.context.trailerInfo.ID=e;const t=this.context.obj(this.encryption);return this.context.trailerInfo.Encrypt=this.context.register(t),this}}const Qc=()=>pl(Yc.MD5(Date.now().toString())),_c=e=>Yc.lib.WordArray.random(e),$c=(e={})=>{let t=-64;return e.printing&&(t|=4),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),t},el=(e={})=>{let t=-3904;return("lowResolution"===e.printing||e.printing)&&(t|=4),"highResolution"===e.printing&&(t|=2052),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),e.fillingForms&&(t|=256),e.contentAccessibility&&(t|=512),e.documentAssembly&&(t|=1024),t},tl=e=>Yc.RC4.encrypt(dl(),e).ciphertext,rl=(e,t)=>{const r=t.clone();let n=Yc.MD5(dl().concat(Yc.lib.WordArray.create(e)));for(let e=0;e<20;e++){const o=Math.ceil(r.sigBytes/4);for(let n=0;n<o;n++)r.words[n]=t.words[n]^(e|e<<8|e<<16|e<<24);n=Yc.RC4.encrypt(n,r).ciphertext}return n.concat(Yc.lib.WordArray.create(null,16))},nl=(e,t,r,n)=>{let o=n,i=e>=3?51:1;for(let e=0;e<i;e++)o=Yc.MD5(o);const s=o.clone();s.sigBytes=t/8;let a=r;i=e>=3?20:1;for(let e=0;e<i;e++){const t=Math.ceil(s.sigBytes/4);for(let r=0;r<t;r++)s.words[r]=o.words[r]^(e|e<<8|e<<16|e<<24);a=Yc.RC4.encrypt(a,s).ciphertext}return a},ol=(e,t,r,n,o,i)=>{let s=n.clone().concat(o).concat(Yc.lib.WordArray.create([fl(i)],4)).concat(Yc.lib.WordArray.create(r));const a=e>=3?51:1;for(let e=0;e<a;e++)s=Yc.MD5(s),s.sigBytes=t/8;return s},il=(e,t)=>{const r=t(8),n=t(8);return Yc.SHA256(e.clone().concat(r)).concat(r).concat(n)},sl=(e,t,r)=>{const n=Yc.SHA256(e.clone().concat(t)),o={mode:Yc.mode.CBC,padding:Yc.pad.NoPadding,iv:Yc.lib.WordArray.create(null,16)};return Yc.AES.encrypt(r,n,o).ciphertext},al=(e,t,r)=>{const n=r(8),o=r(8);return Yc.SHA256(e.clone().concat(n).concat(t)).concat(n).concat(o)},cl=(e,t,r,n)=>{const o=Yc.SHA256(e.clone().concat(t).concat(r)),i={mode:Yc.mode.CBC,padding:Yc.pad.NoPadding,iv:Yc.lib.WordArray.create(null,16)};return Yc.AES.encrypt(n,o,i).ciphertext},ll=e=>e(32),hl=(e,t,r)=>{const n=Yc.lib.WordArray.create([fl(e),4294967295,1415668834],12).concat(r(4)),o={mode:Yc.mode.ECB,padding:Yc.pad.NoPadding};return Yc.AES.encrypt(n,t,o).ciphertext},dl=(e="")=>{const t=new Uint8Array(32),r=e.length;let n=0;for(;n<r&&n<32;){const r=e.charCodeAt(n);if(r>255)throw new Error("Password contains one or more invalid characters.");t[n]=r,n++}for(;n<32;)t[n]=gl[n-r],n++;return Yc.lib.WordArray.create(t)},ul=(e="")=>{const t=Math.min(127,e.length),r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);return Yc.lib.WordArray.create(r)},fl=e=>(255&e)<<24|(65280&e)<<8|e>>8&65280|e>>24&255,pl=e=>{const t=[];for(let r=0;r<e.sigBytes;r++)t.push(e.words[Math.floor(r/4)]>>8*(3-r%4)&255);return Uint8Array.from(t)},gl=[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],ml=e=>1<<e;var bl;e.AnnotationFlags=void 0,(bl=e.AnnotationFlags||(e.AnnotationFlags={}))[bl.Invisible=ml(0)]="Invisible",bl[bl.Hidden=ml(1)]="Hidden",bl[bl.Print=ml(2)]="Print",bl[bl.NoZoom=ml(3)]="NoZoom",bl[bl.NoRotate=ml(4)]="NoRotate",bl[bl.NoView=ml(5)]="NoView",bl[bl.ReadOnly=ml(6)]="ReadOnly",bl[bl.Locked=ml(7)]="Locked",bl[bl.ToggleNoView=ml(8)]="ToggleNoView",bl[bl.LockedContents=ml(9)]="LockedContents";const yl=e=>e instanceof Ko?e:Ko.of(e),vl=e=>e instanceof qo?e:qo.of(e),wl=e=>e instanceof qo?e.asNumber():e;var xl;e.RotationTypes=void 0,(xl=e.RotationTypes||(e.RotationTypes={})).Degrees="degrees",xl.Radians="radians";const Fl=t=>(Xn(t,"degreeAngle",["number"]),{type:e.RotationTypes.Degrees,angle:t}),Sl=e=>e*Math.PI/180,kl=e=>180*e/Math.PI,Cl=t=>t.type===e.RotationTypes.Radians?t.angle:t.type===e.RotationTypes.Degrees?Sl(t.angle):le(`Invalid rotation: ${JSON.stringify(t)}`),Al=t=>t.type===e.RotationTypes.Radians?kl(t.angle):t.type===e.RotationTypes.Degrees?t.angle:le(`Invalid rotation: ${JSON.stringify(t)}`),Tl=(e=0)=>{const t=e/90%4;return 0===t?0:1===t?90:2===t?180:3===t?270:0},Dl=(e,t=0)=>{const r=Tl(t);return 90===r||270===r?{width:e.height,height:e.width}:{width:e.width,height:e.height}},Ol=(e,t=0,r=0)=>{const{x:n,y:o,width:i,height:s}=e,a=Tl(r),c=t/2;return 0===a?{x:n-c,y:o-c,width:i,height:s}:90===a?{x:n-s+c,y:o-c,width:s,height:i}:180===a?{x:n-i+c,y:o-s+c,width:i,height:s}:270===a?{x:n-c,y:o-i+c,width:s,height:i}:{x:n-c,y:o-c,width:i,height:s}},Bl=()=>ri.of(oi.ClipNonZero),{cos:Nl,sin:Pl,tan:Rl}=Math,El=(e,t,r,n,o,i)=>ri.of(oi.ConcatTransformationMatrix,[vl(e),vl(t),vl(r),vl(n),vl(o),vl(i)]),Ml=(e,t)=>El(1,0,0,1,e,t),jl=(e,t)=>El(e,0,0,t,0,0),ql=e=>El(Nl(wl(e)),Pl(wl(e)),-Pl(wl(e)),Nl(wl(e)),0,0),zl=e=>ql(Sl(wl(e))),Ul=(e,t)=>El(1,Rl(wl(e)),Rl(wl(t)),1,0,0),Il=(e,t)=>ri.of(oi.SetLineDashPattern,[`[${e.map(vl).join(" ")}]`,vl(t)]);var Vl;e.LineCapStyle=void 0,(Vl=e.LineCapStyle||(e.LineCapStyle={}))[Vl.Butt=0]="Butt",Vl[Vl.Round=1]="Round",Vl[Vl.Projecting=2]="Projecting";const Ll=e=>ri.of(oi.SetLineCapStyle,[vl(e)]);var Wl;e.LineJoinStyle=void 0,(Wl=e.LineJoinStyle||(e.LineJoinStyle={}))[Wl.Miter=0]="Miter",Wl[Wl.Round=1]="Round",Wl[Wl.Bevel=2]="Bevel";const Hl=e=>ri.of(oi.SetGraphicsStateParams,[yl(e)]),Gl=()=>ri.of(oi.PushGraphicsState),Kl=()=>ri.of(oi.PopGraphicsState),Xl=e=>ri.of(oi.SetLineWidth,[vl(e)]),Zl=(e,t,r,n,o,i)=>ri.of(oi.AppendBezierCurve,[vl(e),vl(t),vl(r),vl(n),vl(o),vl(i)]),Yl=(e,t,r,n)=>ri.of(oi.CurveToReplicateInitialPoint,[vl(e),vl(t),vl(r),vl(n)]),Jl=()=>ri.of(oi.ClosePath),Ql=(e,t)=>ri.of(oi.MoveTo,[vl(e),vl(t)]),_l=(e,t)=>ri.of(oi.LineTo,[vl(e),vl(t)]),$l=(e,t,r,n)=>ri.of(oi.AppendRectangle,[vl(e),vl(t),vl(r),vl(n)]),eh=()=>ri.of(oi.StrokePath);var th;e.FillRule=void 0,(th=e.FillRule||(e.FillRule={})).NonZero="f",th.EvenOdd="f*";const rh=()=>ri.of(oi.FillNonZero),nh=()=>ri.of(oi.FillEvenOdd),oh=()=>ri.of(oi.FillNonZeroAndStroke),ih=()=>ri.of(oi.EndPath),sh=()=>ri.of(oi.NextLine),ah=e=>ri.of(oi.ShowText,[e]),ch=()=>ri.of(oi.BeginText),lh=()=>ri.of(oi.EndText),hh=(e,t)=>ri.of(oi.SetFontAndSize,[yl(e),vl(t)]),dh=e=>ri.of(oi.SetTextLineHeight,[vl(e)]);var uh;e.TextRenderingMode=void 0,(uh=e.TextRenderingMode||(e.TextRenderingMode={}))[uh.Fill=0]="Fill",uh[uh.Outline=1]="Outline",uh[uh.FillAndOutline=2]="FillAndOutline",uh[uh.Invisible=3]="Invisible",uh[uh.FillAndClip=4]="FillAndClip",uh[uh.OutlineAndClip=5]="OutlineAndClip",uh[uh.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",uh[uh.Clip=7]="Clip";const fh=e=>ri.of(oi.SetTextRenderingMode,[vl(e)]),ph=(e,t,r,n,o,i)=>ri.of(oi.SetTextMatrix,[vl(e),vl(t),vl(r),vl(n),vl(o),vl(i)]),gh=(e,t,r,n,o)=>ph(Nl(wl(e)),Pl(wl(e))+Rl(wl(t)),-Pl(wl(e))+Rl(wl(r)),Nl(wl(e)),n,o),mh=e=>ri.of(oi.DrawObject,[yl(e)]),bh=e=>ri.of(oi.NonStrokingColorGray,[vl(e)]),yh=e=>ri.of(oi.StrokingColorGray,[vl(e)]),vh=(e,t,r)=>ri.of(oi.NonStrokingColorRgb,[vl(e),vl(t),vl(r)]),wh=(e,t,r)=>ri.of(oi.StrokingColorRgb,[vl(e),vl(t),vl(r)]),xh=(e,t,r,n)=>ri.of(oi.NonStrokingColorCmyk,[vl(e),vl(t),vl(r),vl(n)]),Fh=(e,t,r,n)=>ri.of(oi.StrokingColorCmyk,[vl(e),vl(t),vl(r),vl(n)]),Sh=e=>ri.of(oi.BeginMarkedContent,[yl(e)]),kh=()=>ri.of(oi.EndMarkedContent);var Ch={exports:{}},Ah={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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],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],olive:[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],rebeccapurple:[102,51,153],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]},Th={exports:{}},Dh=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},Oh=Array.prototype.concat,Bh=Array.prototype.slice,Nh=Th.exports=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];Dh(o)?t=Oh.call(t,Bh.call(o)):t.push(o)}return t};Nh.wrap=function(e){return function(){return e(Nh(arguments))}};var Ph=Th.exports,Rh=Ah,Eh=Ph,Mh=Object.hasOwnProperty,jh=Object.create(null);for(var qh in Rh)Mh.call(Rh,qh)&&(jh[Rh[qh]]=qh);var zh=Ch.exports={to:{},get:{}};function Uh(e,t,r){return Math.min(Math.max(t,e),r)}function Ih(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}zh.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=zh.get.hsl(e),r="hsl";break;case"hwb":t=zh.get.hwb(e),r="hwb";break;default:t=zh.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},zh.get.rgb=function(e){if(!e)return null;var t,r,n,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],r=0;r<3;r++){var i=2*r;o[r]=parseInt(t.slice(i,i+2),16)}n&&(o[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],r=0;r<3;r++)o[r]=parseInt(t[r]+t[r],16);n&&(o[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)o[r]=parseInt(t[r+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:Mh.call(Rh,t[1])?((o=Rh[t[1]])[3]=1,o):null:null;for(r=0;r<3;r++)o[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(r=0;r<3;r++)o[r]=Uh(o[r],0,255);return o[3]=Uh(o[3],0,1),o},zh.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Uh(parseFloat(t[2]),0,100),Uh(parseFloat(t[3]),0,100),Uh(isNaN(r)?1:r,0,1)]}return null},zh.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,Uh(parseFloat(t[2]),0,100),Uh(parseFloat(t[3]),0,100),Uh(isNaN(r)?1:r,0,1)]}return null},zh.to.hex=function(){var e=Eh(arguments);return"#"+Ih(e[0])+Ih(e[1])+Ih(e[2])+(e[3]<1?Ih(Math.round(255*e[3])):"")},zh.to.rgb=function(){var e=Eh(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},zh.to.rgb.percent=function(){var e=Eh(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},zh.to.hsl=function(){var e=Eh(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},zh.to.hwb=function(){var e=Eh(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},zh.to.keyword=function(e){return jh[e.slice(0,3)]};var Vh=Ch.exports;const Lh=Ah,Wh={};for(const e of Object.keys(Lh))Wh[Lh[e]]=e;const Hh={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Gh=Hh;for(const e of Object.keys(Hh)){if(!("channels"in Hh[e]))throw new Error("missing channels property: "+e);if(!("labels"in Hh[e]))throw new Error("missing channel labels property: "+e);if(Hh[e].labels.length!==Hh[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=Hh[e];delete Hh[e].channels,delete Hh[e].labels,Object.defineProperty(Hh[e],"channels",{value:t}),Object.defineProperty(Hh[e],"labels",{value:r})}Hh.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=i-o;let a,c;i===o?a=0:t===i?a=(r-n)/s:r===i?a=2+(n-t)/s:n===i&&(a=4+(t-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(o+i)/2;return c=i===o?0:l<=.5?s/(i+o):s/(2-i-o),[a,100*c,100*l]},Hh.rgb.hsv=function(e){let t,r,n,o,i;const s=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(s,a,c),h=l-Math.min(s,a,c),d=function(e){return(l-e)/6/h+.5};return 0===h?(o=0,i=0):(i=h/l,t=d(s),r=d(a),n=d(c),s===l?o=n-r:a===l?o=1/3+t-n:c===l&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*l]},Hh.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const o=Hh.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,100*i,100*n]},Hh.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},Hh.rgb.keyword=function(e){const t=Wh[e];if(t)return t;let r,n=1/0;for(const t of Object.keys(Lh)){const s=(i=Lh[t],((o=e)[0]-i[0])**2+(o[1]-i[1])**2+(o[2]-i[2])**2);s<n&&(n=s,r=t)}var o,i;return r},Hh.keyword.rgb=function(e){return Lh[e]},Hh.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Hh.rgb.lab=function(e){const t=Hh.rgb.xyz(e);let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(r-n),200*(n-o)]},Hh.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let o,i,s;if(0===r)return s=255*n,[s,s,s];o=n<.5?n*(1+r):n+r-n*r;const a=2*n-o,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?a+6*(o-a)*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,c[e]=255*s;return c},Hh.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,o=r;const i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i;return[t,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},Hh.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*i),c=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}},Hh.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01);let i,s;s=(2-r)*n;const a=(2-r)*o;return i=r*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,100*i,100*s]},Hh.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const o=r+n;let i;o>1&&(r/=o,n/=o);const s=Math.floor(6*t),a=1-n;i=6*t-s,0!=(1&s)&&(i=1-i);const c=r+i*(a-r);let l,h,d;switch(s){default:case 6:case 0:l=a,h=c,d=r;break;case 1:l=c,h=a,d=r;break;case 2:l=r,h=a,d=c;break;case 3:l=r,h=c,d=a;break;case 4:l=c,h=r,d=a;break;case 5:l=a,h=r,d=c}return[255*l,255*h,255*d]},Hh.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},Hh.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let o,i,s;return o=3.2406*t+-1.5372*r+-.4986*n,i=-.9689*t+1.8758*r+.0415*n,s=.0557*t+-.204*r+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*o,255*i,255*s]},Hh.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*r-16,500*(t-r),200*(r-n)]},Hh.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;const o=r**3,i=t**3,s=n**3;return r=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},Hh.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let o;o=360*Math.atan2(n,r)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(r*r+n*n),o]},Hh.lch.lab=function(e){const t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},Hh.rgb.ansi16=function(e,t=null){const[r,n,o]=e;let i=null===t?Hh.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===i&&(s+=60),s},Hh.hsv.ansi16=function(e){return Hh.rgb.ansi16(Hh.hsv.rgb(e),e[2])},Hh.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Hh.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Hh.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Hh.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Hh.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map((e=>e+e)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Hh.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),s=o-i;let a,c;return a=s<1?i/(1-s):0,c=s<=0?0:o===t?(r-n)/s%6:o===r?2+(n-t)/s:4+(t-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},Hh.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],100*n,100*o]},Hh.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},Hh.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let c=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return c=(1-r)*n,[255*(r*o[0]+c),255*(r*o[1]+c),255*(r*o[2]+c)]},Hh.hcg.hsv=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);let n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Hh.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},Hh.hcg.hwb=function(e){const t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Hh.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,n=r-t;let o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],100*n,100*o]},Hh.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Hh.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Hh.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Hh.gray.hsl=function(e){return[0,0,e[0]]},Hh.gray.hsv=Hh.gray.hsl,Hh.gray.hwb=function(e){return[0,100,e[0]]},Hh.gray.cmyk=function(e){return[0,0,0,e[0]]},Hh.gray.lab=function(e){return[e[0],0,0]},Hh.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Hh.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Kh=Gh;function Xh(e){const t=function(){const e={},t=Object.keys(Kh);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){const e=r.pop(),n=Object.keys(Kh[e]);for(let o=n.length,i=0;i<o;i++){const o=n[i],s=t[o];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,r.unshift(o))}}return t}function Zh(e,t){return function(r){return t(e(r))}}function Yh(e,t){const r=[t[e].parent,e];let n=Kh[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Zh(Kh[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}const Jh=Gh,Qh=function(e){const t=Xh(e),r={},n=Object.keys(t);for(let e=n.length,o=0;o<e;o++){const e=n[o];null!==t[e].parent&&(r[e]=Yh(e,t))}return r},_h={};Object.keys(Jh).forEach((e=>{_h[e]={},Object.defineProperty(_h[e],"channels",{value:Jh[e].channels}),Object.defineProperty(_h[e],"labels",{value:Jh[e].labels});const t=Qh(e);Object.keys(t).forEach((r=>{const n=t[r];_h[e][r]=function(e){const t=function(...t){const r=t[0];if(null==r)return r;r.length>1&&(t=r);const n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),_h[e][r].raw=function(e){const t=function(...t){const r=t[0];return null==r?r:(r.length>1&&(t=r),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))}));const $h=Vh,ed=_h,td=["keyword","gray","hex"],rd={};for(const e of Object.keys(ed))rd[[...ed[e].labels].sort().join("")]=e;const nd={};function od(e,t){if(!(this instanceof od))return new od(e,t);if(t&&t in td&&(t=null),t&&!(t in ed))throw new Error("Unknown model: "+t);let r,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof od)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=$h.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,n=ed[this.model].channels,this.color=t.value.slice(0,n),this.valpha="number"==typeof t.value[n]?t.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=ed[this.model].channels;const r=Array.prototype.slice.call(e,0,n);this.color=cd(r,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const n=t.sort().join("");if(!(n in rd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=rd[n];const{labels:o}=ed[this.model],i=[];for(r=0;r<o.length;r++)i.push(e[o[r]]);this.color=cd(i)}if(nd[this.model])for(n=ed[this.model].channels,r=0;r<n;r++){const e=nd[this.model][r];e&&(this.color[r]=e(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}od.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in $h.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const r=1===t.valpha?t.color:[...t.color,this.valpha];return $h.to[t.model](r)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:[...t.color,this.valpha];return $h.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ed[this.model],{labels:r}=ed[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new od([...this.color.map(id(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new od([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:sd("rgb",0,ad(255)),green:sd("rgb",1,ad(255)),blue:sd("rgb",2,ad(255)),hue:sd(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:sd("hsl",1,ad(100)),lightness:sd("hsl",2,ad(100)),saturationv:sd("hsv",1,ad(100)),value:sd("hsv",2,ad(100)),chroma:sd("hcg",1,ad(100)),gray:sd("hcg",2,ad(100)),white:sd("hwb",1,ad(100)),wblack:sd("hwb",2,ad(100)),cyan:sd("cmyk",0,ad(100)),magenta:sd("cmyk",1,ad(100)),yellow:sd("cmyk",2,ad(100)),black:sd("cmyk",3,ad(100)),x:sd("xyz",0,ad(95.047)),y:sd("xyz",1,ad(100)),z:sd("xyz",2,ad(108.833)),l:sd("lab",0,ad(100)),a:sd("lab",1),b:sd("lab",2),keyword(e){return void 0!==e?new od(e):ed[this.model].keyword(this.color)},hex(e){return void 0!==e?new od(e):$h.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new od(e);const t=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),$h.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return od.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,i=2*o-1,s=r.alpha()-n.alpha(),a=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,c=1-a;return od.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const e of Object.keys(ed)){if(td.includes(e))continue;const{channels:t}=ed[e];od.prototype[e]=function(...t){return this.model===e?new od(this):t.length>0?new od(t,e):new od([...(r=ed[this.model][e].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],e);var r},od[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=cd(r,t)),new od(n,e)}}function id(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function sd(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(nd[n]||(nd[n]=[]))[t]=r;return e=e[0],function(n){let o;return void 0!==n?(r&&(n=r(n)),o=this[e](),o.color[t]=n,o):(o=this[e]().color[t],r&&(o=r(o)),o)}}function ad(e){return function(t){return Math.max(0,Math.min(e,t))}}function cd(e,t){for(let r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}var ld,hd=de(od);e.ColorTypes=void 0,(ld=e.ColorTypes||(e.ColorTypes={})).Grayscale="Grayscale",ld.RGB="RGB",ld.CMYK="CMYK";const dd=t=>(Jn(t,"gray",0,1),{type:e.ColorTypes.Grayscale,gray:t}),ud=(t,r,n)=>(Jn(t,"red",0,1),Jn(r,"green",0,1),Jn(n,"blue",0,1),{type:e.ColorTypes.RGB,red:t,green:r,blue:n}),fd=(t,r,n,o)=>(Jn(t,"cyan",0,1),Jn(r,"magenta",0,1),Jn(n,"yellow",0,1),Jn(o,"key",0,1),{type:e.ColorTypes.CMYK,cyan:t,magenta:r,yellow:n,key:o}),pd=e=>{Xn(e,"color",["string"]);const t=hd(e).unitObject();return{rgb:ud(t.r,t.g,t.b),alpha:t.alpha}},gd=t=>t.type===e.ColorTypes.Grayscale?bh(t.gray):t.type===e.ColorTypes.RGB?vh(t.red,t.green,t.blue):t.type===e.ColorTypes.CMYK?xh(t.cyan,t.magenta,t.yellow,t.key):le(`Invalid color: ${JSON.stringify(t)}`),md=t=>t.type===e.ColorTypes.Grayscale?yh(t.gray):t.type===e.ColorTypes.RGB?wh(t.red,t.green,t.blue):t.type===e.ColorTypes.CMYK?Fh(t.cyan,t.magenta,t.yellow,t.key):le(`Invalid color: ${JSON.stringify(t)}`),bd=(e,t=1)=>1===(null==e?void 0:e.length)?dd(e[0]*t):3===(null==e?void 0:e.length)?ud(e[0]*t,e[1]*t,e[2]*t):4===(null==e?void 0:e.length)?fd(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0,yd=t=>t.type===e.ColorTypes.Grayscale?[t.gray]:t.type===e.ColorTypes.RGB?[t.red,t.green,t.blue]:t.type===e.ColorTypes.CMYK?[t.cyan,t.magenta,t.yellow,t.key]:le(`Invalid color: ${JSON.stringify(t)}`);let vd=0,wd=0,xd=0,Fd=0,Sd=0,kd=0;const Cd=new Map([["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]]),Ad={M:e=>(vd=e[0],wd=e[1],xd=Fd=null,Sd=vd,kd=wd,Ql(vd,wd)),m:e=>(vd+=e[0],wd+=e[1],xd=Fd=null,Sd=vd,kd=wd,Ql(vd,wd)),C:e=>(vd=e[4],wd=e[5],xd=e[2],Fd=e[3],Zl(e[0],e[1],e[2],e[3],e[4],e[5])),c(e){const t=Zl(e[0]+vd,e[1]+wd,e[2]+vd,e[3]+wd,e[4]+vd,e[5]+wd);return xd=vd+e[2],Fd=wd+e[3],vd+=e[4],wd+=e[5],t},S(e){null!==xd&&null!==Fd||(xd=vd,Fd=wd);const t=Zl(vd-(xd-vd),wd-(Fd-wd),e[0],e[1],e[2],e[3]);return xd=e[0],Fd=e[1],vd=e[2],wd=e[3],t},s(e){null!==xd&&null!==Fd||(xd=vd,Fd=wd);const t=Zl(vd-(xd-vd),wd-(Fd-wd),vd+e[0],wd+e[1],vd+e[2],wd+e[3]);return xd=vd+e[0],Fd=wd+e[1],vd+=e[2],wd+=e[3],t},Q:e=>(xd=e[0],Fd=e[1],vd=e[2],wd=e[3],Yl(e[0],e[1],vd,wd)),q(e){const t=Yl(e[0]+vd,e[1]+wd,e[2]+vd,e[3]+wd);return xd=vd+e[0],Fd=wd+e[1],vd+=e[2],wd+=e[3],t},T(e){null===xd||null===Fd?(xd=vd,Fd=wd):(xd=vd-(xd-vd),Fd=wd-(Fd-wd));const t=Yl(xd,Fd,e[0],e[1]);return vd=e[0],wd=e[1],t},t(e){null===xd||null===Fd?(xd=vd,Fd=wd):(xd=vd-(xd-vd),Fd=wd-(Fd-wd));const t=Yl(xd,Fd,vd+e[0],wd+e[1]);return vd+=e[0],wd+=e[1],t},A(e){const t=Td(vd,wd,e);return vd=e[5],wd=e[6],t},a(e){e[5]+=vd,e[6]+=wd;const t=Td(vd,wd,e);return vd=e[5],wd=e[6],t},L:e=>(vd=e[0],wd=e[1],xd=Fd=null,_l(vd,wd)),l:e=>(vd+=e[0],wd+=e[1],xd=Fd=null,_l(vd,wd)),H:e=>(vd=e[0],xd=Fd=null,_l(vd,wd)),h:e=>(vd+=e[0],xd=Fd=null,_l(vd,wd)),V:e=>(wd=e[0],xd=Fd=null,_l(vd,wd)),v:e=>(wd+=e[0],xd=Fd=null,_l(vd,wd)),Z(){const e=Jl();return vd=Sd,wd=kd,e},z(){const e=Jl();return vd=Sd,wd=kd,e}},Td=(e,t,r)=>{const[n,o,i,s,a,c,l]=r,h=Dd(c,l,n,o,s,a,i,e,t),d=[];for(const e of h){const t=Od(...e);d.push(Zl(...t))}return d},Dd=(e,t,r,n,o,i,s,a,c)=>{const l=s*(Math.PI/180),h=Math.sin(l),d=Math.cos(l);r=Math.abs(r),n=Math.abs(n),xd=d*(a-e)*.5+h*(c-t)*.5,Fd=d*(c-t)*.5-h*(a-e)*.5;let u=xd*xd/(r*r)+Fd*Fd/(n*n);u>1&&(u=Math.sqrt(u),r*=u,n*=u);const f=d/r,p=h/r,g=-h/n,m=d/n,b=f*a+p*c,y=g*a+m*c,v=f*e+p*t,w=g*e+m*t;let x=1/((v-b)*(v-b)+(w-y)*(w-y))-.25;x<0&&(x=0);let F=Math.sqrt(x);i===o&&(F=-F);const S=.5*(b+v)-F*(w-y),k=.5*(y+w)+F*(v-b),C=Math.atan2(y-k,b-S);let A=Math.atan2(w-k,v-S)-C;A<0&&1===i?A+=2*Math.PI:A>0&&0===i&&(A-=2*Math.PI);const T=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),D=[];for(let e=0;e<T;e++){const t=C+e*A/T,o=C+(e+1)*A/T;D[e]=[S,k,t,o,r,n,h,d]}return D},Od=(e,t,r,n,o,i,s,a)=>{const c=a*o,l=-s*i,h=s*o,d=a*i,u=.5*(n-r),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),p=e+Math.cos(r)-f*Math.sin(r),g=t+Math.sin(r)+f*Math.cos(r),m=e+Math.cos(n),b=t+Math.sin(n),y=m+f*Math.sin(n),v=b-f*Math.cos(n);return[c*p+l*g,h*p+d*g,c*y+l*v,h*y+d*v,c*m+l*b,h*m+d*b]},Bd=e=>(e=>{vd=wd=xd=Fd=Sd=kd=0;let t=[];for(let r=0;r<e.length;r++){const n=e[r];if(n.cmd&&"function"==typeof Ad[n.cmd]){const e=Ad[n.cmd](n.args);Array.isArray(e)?t=t.concat(e):t.push(e)}}return t})((e=>{let t;const r=[];let n=[],o="",i=!1,s=0;for(const a of e)if(Cd.has(a))s=Cd.get(a),t&&(o.length>0&&(n[n.length]=+o),r[r.length]={cmd:t,args:n},n=[],o="",i=!1),t=a;else if([" ",","].includes(a)||"-"===a&&o.length>0&&"e"!==o[o.length-1]||"."===a&&i){if(0===o.length)continue;n.length===s?(r[r.length]={cmd:t,args:n},n=[+o],"M"===t&&(t="L"),"m"===t&&(t="l")):n[n.length]=+o,i="."===a,o=["-","."].includes(a)?a:""}else o+=a,"."===a&&(i=!0);return o.length>0&&(n.length===s?(r[r.length]={cmd:t,args:n},n=[+o],"M"===t&&(t="L"),"m"===t&&(t="l")):n[n.length]=+o),r[r.length]={cmd:t,args:n},r})(e));var Nd={},Pd={},Rd={};Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},Rd.namedReferences={xml:{entities:{"<":"<",">":">",""":'"',"'":"'","&":"&"},characters:{"<":"<",">":">",'"':""","'":"'","&":"&"}},html4:{entities:{"'":"'"," ":" "," ":" ","¡":"¡","¡":"¡","¢":"¢","¢":"¢","£":"£","£":"£","¤":"¤","¤":"¤","¥":"¥","¥":"¥","¦":"¦","¦":"¦","§":"§","§":"§","¨":"¨","¨":"¨","©":"©","©":"©","ª":"ª","ª":"ª","«":"«","«":"«","¬":"¬","¬":"¬","­":"","­":"","®":"®","®":"®","¯":"¯","¯":"¯","°":"°","°":"°","±":"±","±":"±","²":"²","²":"²","³":"³","³":"³","´":"´","´":"´","µ":"µ","µ":"µ","¶":"¶","¶":"¶","·":"·","·":"·","¸":"¸","¸":"¸","¹":"¹","¹":"¹","º":"º","º":"º","»":"»","»":"»","¼":"¼","¼":"¼","½":"½","½":"½","¾":"¾","¾":"¾","¿":"¿","¿":"¿","À":"À","À":"À","Á":"Á","Á":"Á","Â":"Â","Â":"Â","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","Å":"Å","Å":"Å","Æ":"Æ","Æ":"Æ","Ç":"Ç","Ç":"Ç","È":"È","È":"È","É":"É","É":"É","Ê":"Ê","Ê":"Ê","Ë":"Ë","Ë":"Ë","Ì":"Ì","Ì":"Ì","Í":"Í","Í":"Í","Î":"Î","Î":"Î","Ï":"Ï","Ï":"Ï","Ð":"Ð","Ð":"Ð","Ñ":"Ñ","Ñ":"Ñ","Ò":"Ò","Ò":"Ò","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","Õ":"Õ","Õ":"Õ","Ö":"Ö","Ö":"Ö","×":"×","×":"×","Ø":"Ø","Ø":"Ø","Ù":"Ù","Ù":"Ù","Ú":"Ú","Ú":"Ú","Û":"Û","Û":"Û","Ü":"Ü","Ü":"Ü","Ý":"Ý","Ý":"Ý","Þ":"Þ","Þ":"Þ","ß":"ß","ß":"ß","à":"à","à":"à","á":"á","á":"á","â":"â","â":"â","ã":"ã","ã":"ã","ä":"ä","ä":"ä","å":"å","å":"å","æ":"æ","æ":"æ","ç":"ç","ç":"ç","è":"è","è":"è","é":"é","é":"é","ê":"ê","ê":"ê","ë":"ë","ë":"ë","ì":"ì","ì":"ì","í":"í","í":"í","î":"î","î":"î","ï":"ï","ï":"ï","ð":"ð","ð":"ð","ñ":"ñ","ñ":"ñ","ò":"ò","ò":"ò","ó":"ó","ó":"ó","ô":"ô","ô":"ô","õ":"õ","õ":"õ","ö":"ö","ö":"ö","÷":"÷","÷":"÷","ø":"ø","ø":"ø","ù":"ù","ù":"ù","ú":"ú","ú":"ú","û":"û","û":"û","ü":"ü","ü":"ü","ý":"ý","ý":"ý","þ":"þ","þ":"þ","ÿ":"ÿ","ÿ":"ÿ",""":'"',""":'"',"&":"&","&":"&","<":"<","<":"<",">":">",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"","‍":"","‎":"","‏":"","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","⟨":"〈","⟩":"〉","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"},characters:{"'":"'"," ":" ","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©","ª":"ª","«":"«","¬":"¬","":"­","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´","µ":"µ","¶":"¶","·":"·","¸":"¸","¹":"¹","º":"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","×":"×","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","÷":"÷","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ",'"':""","&":"&","<":"<",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","":"‌","":"‍","":"‎","":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","〈":"⟨","〉":"⟩","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"}},html5:{entities:{"Æ":"Æ","Æ":"Æ","&":"&","&":"&","Á":"Á","Á":"Á","Ă":"Ă","Â":"Â","Â":"Â","А":"А","𝔄":"𝔄","À":"À","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"","Å":"Å","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","ℬ":"ℬ","≎":"≎","Ч":"Ч","©":"©","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","ℭ":"ℭ","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","ⅅ":"ⅅ","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","∯":"∯","¨":"¨","⇓":"⇓","⇐":"⇐","⇔":"⇔","⫤":"⫤","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","⇓":"⇓","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","Ð":"Ð","É":"É","É":"É","Ě":"Ě","Ê":"Ê","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","ℱ":"ℱ","Ѓ":"Ѓ",">":">",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","ℋ":"ℋ","Ħ":"Ħ","≎":"≎","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Í":"Í","Î":"Î","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ì":"Ì","ℑ":"ℑ","Ī":"Ī","ⅈ":"ⅈ","⇒":"⇒","∬":"∬","∫":"∫","⋂":"⋂","⁣":"","⁢":"","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⇐":"⇐","⇔":"⇔","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","⟸":"⟸","⟺":"⟺","⟹":"⟹","𝕃":"𝕃","↙":"↙","↘":"↘","ℒ":"ℒ","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","ℳ":"ℳ","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"","​":"","​":"","​":"","≫":"≫","≪":"≪","
":"\n","𝔑":"𝔑","⁠":""," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Ø":"Ø","Õ":"Õ","Õ":"Õ","⨷":"⨷","Ö":"Ö","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℌ":"ℌ","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∷":"∷","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",""":'"',""":'"',"𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","ℜ":"ℜ","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","⇒":"⇒","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↓":"↓","←":"←","→":"→","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∋":"∋","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","⋑":"⋑","Þ":"Þ","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","	":"\t","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":" "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ù":"Ù","Ū":"Ū","_":"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","↑":"↑","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","⇑":"⇑","⇕":"⇕","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","​":"","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"","𝔞":"𝔞","à":"à","à":"à","ℵ":"ℵ","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","&":"&","&":"&","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∠":"∠","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","Å":"Å","⍼":"⍼","ą":"ą","𝕒":"𝕒","≈":"≈","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","≈":"≈","≊":"≊","å":"å","å":"å","𝒶":"𝒶","*":"*","≈":"≈","≍":"≍","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"∳","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⌅":"⌅","⎵":"⎵","⎶":"⎶","≌":"≌","б":"б","„":"„","∵":"∵","∵":"∵","⦰":"⦰","϶":"϶","ℬ":"ℬ","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","⋂":"⋂","◯":"◯","⋃":"⋃","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⋁":"⋁","⋀":"⋀","⤍":"⤍","⧫":"⧫","▪":"▪","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⊥":"⊥","⊥":"⊥","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","─":"─","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","‵":"‵","˘":"˘","¦":"¦","¦":"¦","𝒷":"𝒷","⁏":"⁏","∽":"∽","⋍":"⋍","\":"\\","⧅":"⧅","⟈":"⟈","•":"•","•":"•","≎":"≎","⪮":"⪮","≏":"≏","≏":"≏","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","ˇ":"ˇ","⩍":"⩍","č":"č","ç":"ç","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"𝔠","ч":"ч","✓":"✓","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","®":"®","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","≗":"≗","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣","♣":"♣",":":":","≔":"≔","≔":"≔",",":",","@":"@","∁":"∁","∘":"∘","∁":"∁","ℂ":"ℂ","≅":"≅","⩭":"⩭","∮":"∮","𝕔":"𝕔","∐":"∐","©":"©","©":"©","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋞":"⋞","⋟":"⋟","⋎":"⋎","⋏":"⋏","¤":"¤","¤":"¤","↶":"↶","↷":"↷","⋎":"⋎","⋏":"⋏","∲":"∲","∱":"∱","⌭":"⌭","⇓":"⇓","⥥":"⥥","†":"†","ℸ":"ℸ","↓":"↓","‐":"‐","⊣":"⊣","⤏":"⤏","˝":"˝","ď":"ď","д":"д","ⅆ":"ⅆ","‡":"‡","⇊":"⇊","⩷":"⩷","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","⇃":"⇃","⇂":"⇂","⋄":"⋄","⋄":"⋄","♦":"♦","♦":"♦","¨":"¨","ϝ":"ϝ","⋲":"⋲","÷":"÷","÷":"÷","÷":"÷","⋇":"⋇","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍","$":"$","𝕕":"𝕕","˙":"˙","≐":"≐","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌆":"⌆","↓":"↓","⇊":"⇊","⇃":"⇃","⇂":"⇂","⤐":"⤐","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","▾":"▾","⇵":"⇵","⥯":"⥯","⦦":"⦦","џ":"џ","⟿":"⟿","⩷":"⩷","≑":"≑","é":"é","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","ê":"ê","≕":"≕","э":"э","ė":"ė","ⅇ":"ⅇ","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅","∅":"∅","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"≖","≕":"≕","≂":"≂","⪖":"⪖","⪕":"⪕","=":"=","≟":"≟","≡":"≡","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","≐":"≐","≂":"≂","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"€","!":"!","∃":"∃","ℰ":"ℰ","ⅇ":"ⅇ","≒":"≒","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi","fj":"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","∀":"∀","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","½":"½","⅓":"⅓","¼":"¼","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","≧":"≧","⪌":"⪌","ǵ":"ǵ","γ":"γ","ϝ":"ϝ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","≥":"≥","⋛":"⋛","≥":"≥","≧":"≧","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","≫":"≫","⋙":"⋙","ℷ":"ℷ","ѓ":"ѓ","≷":"≷","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪊":"⪊","⪈":"⪈","⪈":"⪈","≩":"≩","⋧":"⋧","𝕘":"𝕘","`":"`","ℊ":"ℊ","≳":"≳","⪎":"⪎","⪐":"⪐",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⪆":"⪆","⥸":"⥸","⋗":"⋗","⋛":"⋛","⪌":"⪌","≷":"≷","≳":"≳","≩︀":"≩︀","≩︀":"≩︀","⇔":"⇔"," ":" ","½":"½","ℋ":"ℋ","ъ":"ъ","↔":"↔","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ℏ":"ℏ","ħ":"ħ","⁃":"⁃","‐":"‐","í":"í","í":"í","⁣":"","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"⇔","𝔦":"𝔦","ì":"ì","ì":"ì","ⅈ":"ⅈ","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ℑ":"ℑ","ℐ":"ℐ","ℑ":"ℑ","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","∈":"∈","℅":"℅","∞":"∞","⧝":"⧝","ı":"ı","∫":"∫","⊺":"⊺","ℤ":"ℤ","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"𝒾","∈":"∈","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","∈":"∈","⁢":"","ĩ":"ĩ","і":"і","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⇚":"⇚","⇐":"⇐","⤛":"⤛","⤎":"⤎","≦":"≦","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"ℒ","λ":"λ","⟨":"⟨","⦑":"⦑","⟨":"⟨","⪅":"⪅","«":"«","«":"«","←":"←","⇤":"⇤","⤟":"⤟","⤝":"⤝","↩":"↩","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","⌈":"⌈","{":"{","л":"л","⤶":"⤶","“":"“","„":"„","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","←":"←","↢":"↢","↽":"↽","↼":"↼","⇇":"⇇","↔":"↔","⇆":"⇆","⇋":"⇋","↭":"↭","⋋":"⋋","⋚":"⋚","≤":"≤","≦":"≦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⪅":"⪅","⋖":"⋖","⋚":"⋚","⪋":"⪋","≶":"≶","≲":"≲","⥼":"⥼","⌊":"⌊","𝔩":"𝔩","≶":"≶","⪑":"⪑","↽":"↽","↼":"↼","⥪":"⥪","▄":"▄","љ":"љ","≪":"≪","⇇":"⇇","⌞":"⌞","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","⎰":"⎰","≨":"≨","⪉":"⪉","⪉":"⪉","⪇":"⪇","⪇":"⪇","≨":"≨","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟦":"⟦","⟵":"⟵","⟷":"⟷","⟼":"⟼","⟶":"⟶","↫":"↫","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","_":"_","◊":"◊","◊":"◊","⧫":"⧫","(":"(","⦓":"⦓","⇆":"⇆","⌟":"⌟","⇋":"⇋","⥭":"⥭","‎":"","⊿":"⊿","‹":"‹","𝓁":"𝓁","↰":"↰","≲":"≲","⪍":"⪍","⪏":"⪏","[":"[","‘":"‘","‚":"‚","ł":"ł","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"⋖","⋋":"⋋","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⊴":"⊴","◂":"◂","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","≨︀":"≨︀","∺":"∺","¯":"¯","¯":"¯","♂":"♂","✠":"✠","✠":"✠","↦":"↦","↦":"↦","↧":"↧","↤":"↤","↥":"↥","▮":"▮","⨩":"⨩","м":"м","—":"—","∡":"∡","𝔪":"𝔪","℧":"℧","µ":"µ","µ":"µ","∣":"∣","*":"*","⫰":"⫰","·":"·","·":"·","−":"−","⊟":"⊟","∸":"∸","⨪":"⨪","⫛":"⫛","…":"…","∓":"∓","⊧":"⊧","𝕞":"𝕞","∓":"∓","𝓂":"𝓂","∾":"∾","μ":"μ","⊸":"⊸","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","≫̸":"≫̸","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","≪̸":"≪̸","⇏":"⇏","⊯":"⊯","⊮":"⊮","∇":"∇","ń":"ń","∠⃒":"∠⃒","≉":"≉","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","≉":"≉","♮":"♮","♮":"♮","ℕ":"ℕ"," ":" "," ":" ","≎̸":"≎̸","≏̸":"≏̸","⩃":"⩃","ň":"ň","ņ":"ņ","≇":"≇","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","≠":"≠","⇗":"⇗","⤤":"⤤","↗":"↗","↗":"↗","≐̸":"≐̸","≢":"≢","⤨":"⤨","≂̸":"≂̸","∄":"∄","∄":"∄","𝔫":"𝔫","≧̸":"≧̸","≱":"≱","≱":"≱","≧̸":"≧̸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"≵","≯":"≯","≯":"≯","⇎":"⇎","↮":"↮","⫲":"⫲","∋":"∋","⋼":"⋼","⋺":"⋺","∋":"∋","њ":"њ","⇍":"⇍","≦̸":"≦̸","↚":"↚","‥":"‥","≰":"≰","↚":"↚","↮":"↮","≰":"≰","≦̸":"≦̸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"≮","≴":"≴","≮":"≮","⋪":"⋪","⋬":"⋬","∤":"∤","𝕟":"𝕟","¬":"¬","¬":"¬","∉":"∉","⋹̸":"⋹̸","⋵̸":"⋵̸","∉":"∉","⋷":"⋷","⋶":"⋶","∌":"∌","∌":"∌","⋾":"⋾","⋽":"⋽","∦":"∦","∦":"∦","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","⊀":"⊀","⋠":"⋠","⪯̸":"⪯̸","⊀":"⊀","⪯̸":"⪯̸","⇏":"⇏","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","↛":"↛","⋫":"⋫","⋭":"⋭","⊁":"⊁","⋡":"⋡","⪰̸":"⪰̸","𝓃":"𝓃","∤":"∤","∦":"∦","≁":"≁","≄":"≄","≄":"≄","∤":"∤","∦":"∦","⋢":"⋢","⋣":"⋣","⊄":"⊄","⫅̸":"⫅̸","⊈":"⊈","⊂⃒":"⊂⃒","⊈":"⊈","⫅̸":"⫅̸","⊁":"⊁","⪰̸":"⪰̸","⊅":"⊅","⫆̸":"⫆̸","⊉":"⊉","⊃⃒":"⊃⃒","⊉":"⊉","⫆̸":"⫆̸","≹":"≹","ñ":"ñ","ñ":"ñ","≸":"≸","⋪":"⋪","⋬":"⋬","⋫":"⋫","⋭":"⋭","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","↖":"↖","↖":"↖","⤧":"⤧","Ⓢ":"Ⓢ","ó":"ó","ó":"ó","⊛":"⊛","⊚":"⊚","ô":"ô","ô":"ô","о":"о","⊝":"⊝","ő":"ő","⨸":"⨸","⊙":"⊙","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","ò":"ò","⧁":"⧁","⦵":"⦵","Ω":"Ω","∮":"∮","↺":"↺","⦾":"⦾","⦻":"⦻","‾":"‾","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","⊖":"⊖","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","⊕":"⊕","∨":"∨","↻":"↻","⩝":"⩝","ℴ":"ℴ","ℴ":"ℴ","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ℴ":"ℴ","ø":"ø","ø":"ø","⊘":"⊘","õ":"õ","õ":"õ","⊗":"⊗","⨶":"⨶","ö":"ö","ö":"ö","⌽":"⌽","∥":"∥","¶":"¶","¶":"¶","∥":"∥","⫳":"⫳","⫽":"⫽","∂":"∂","п":"п","%":"%",".":".","‰":"‰","⊥":"⊥","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","ℳ":"ℳ","☎":"☎","π":"π","⋔":"⋔","ϖ":"ϖ","ℏ":"ℏ","ℎ":"ℎ","ℏ":"ℏ","+":"+","⨣":"⨣","⊞":"⊞","⨢":"⨢","∔":"∔","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"⨕","𝕡":"𝕡","£":"£","£":"£","≺":"≺","⪳":"⪳","⪷":"⪷","≼":"≼","⪯":"⪯","≺":"≺","⪷":"⪷","≼":"≼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"⋨","≾":"≾","′":"′","ℙ":"ℙ","⪵":"⪵","⪹":"⪹","⋨":"⋨","∏":"∏","⌮":"⌮","⌒":"⌒","⌓":"⌓","∝":"∝","∝":"∝","≾":"≾","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","⨌":"⨌","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","ℍ":"ℍ","⨖":"⨖","?":"?","≟":"≟",""":'"',""":'"',"⇛":"⇛","⇒":"⇒","⤜":"⤜","⤏":"⤏","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","√":"√","⦳":"⦳","⟩":"⟩","⦒":"⦒","⦥":"⦥","⟩":"⟩","»":"»","»":"»","→":"→","⥵":"⥵","⇥":"⇥","⤠":"⤠","⤳":"⤳","⤞":"⤞","↪":"↪","↬":"↬","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","ℚ":"ℚ","⤍":"⤍","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","⌉":"⌉","}":"}","р":"р","⤷":"⤷","⥩":"⥩","”":"”","”":"”","↳":"↳","ℜ":"ℜ","ℛ":"ℛ","ℜ":"ℜ","ℝ":"ℝ","▭":"▭","®":"®","®":"®","⥽":"⥽","⌋":"⌋","𝔯":"𝔯","⇁":"⇁","⇀":"⇀","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","→":"→","↣":"↣","⇁":"⇁","⇀":"⇀","⇄":"⇄","⇌":"⇌","⇉":"⇉","↝":"↝","⋌":"⋌","˚":"˚","≓":"≓","⇄":"⇄","⇌":"⇌","‏":"","⎱":"⎱","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⟧":"⟧","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","⇉":"⇉","›":"›","𝓇":"𝓇","↱":"↱","]":"]","’":"’","’":"’","⋌":"⋌","⋊":"⋊","▹":"▹","⊵":"⊵","▸":"▸","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","‚":"‚","≻":"≻","⪴":"⪴","⪸":"⪸","š":"š","≽":"≽","⪰":"⪰","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","≿":"≿","с":"с","⋅":"⋅","⊡":"⊡","⩦":"⩦","⇘":"⇘","⤥":"⤥","↘":"↘","↘":"↘","§":"§","§":"§",";":";","⤩":"⤩","∖":"∖","∖":"∖","✶":"✶","𝔰":"𝔰","⌢":"⌢","♯":"♯","щ":"щ","ш":"ш","∣":"∣","∥":"∥","­":"","­":"","σ":"σ","ς":"ς","ς":"ς","∼":"∼","⩪":"⩪","≃":"≃","≃":"≃","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","←":"←","∖":"∖","⨳":"⨳","⧤":"⧤","∣":"∣","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","♠":"♠","∥":"∥","⊓":"⊓","⊓︀":"⊓︀","⊔":"⊔","⊔︀":"⊔︀","⊏":"⊏","⊑":"⊑","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊐":"⊐","⊒":"⊒","□":"□","□":"□","▪":"▪","▪":"▪","→":"→","𝓈":"𝓈","∖":"∖","⌣":"⌣","⋆":"⋆","☆":"☆","★":"★","ϵ":"ϵ","ϕ":"ϕ","¯":"¯","⊂":"⊂","⫅":"⫅","⪽":"⪽","⊆":"⊆","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⊂":"⊂","⊆":"⊆","⫅":"⫅","⊊":"⊊","⫋":"⫋","⫇":"⫇","⫕":"⫕","⫓":"⫓","≻":"≻","⪸":"⪸","≽":"≽","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"⋩","≿":"≿","∑":"∑","♪":"♪","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"⊃","⫆":"⫆","⪾":"⪾","⫘":"⫘","⊇":"⊇","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⊃":"⊃","⊇":"⊇","⫆":"⫆","⊋":"⊋","⫌":"⫌","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤦":"⤦","↙":"↙","↙":"↙","⤪":"⤪","ß":"ß","ß":"ß","⌖":"⌖","τ":"τ","⎴":"⎴","ť":"ť","ţ":"ţ","т":"т","⃛":"⃛","⌕":"⌕","𝔱":"𝔱","∴":"∴","∴":"∴","θ":"θ","ϑ":"ϑ","ϑ":"ϑ","≈":"≈","∼":"∼"," ":" ","≈":"≈","∼":"∼","þ":"þ","þ":"þ","˜":"˜","×":"×","×":"×","⊠":"⊠","⨱":"⨱","⨰":"⨰","∭":"∭","⤨":"⤨","⊤":"⊤","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","⤩":"⤩","‴":"‴","™":"™","▵":"▵","▿":"▿","◃":"◃","⊴":"⊴","≜":"≜","▹":"▹","⊵":"⊵","◬":"◬","≜":"≜","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","≬":"≬","↞":"↞","↠":"↠","⇑":"⇑","⥣":"⥣","ú":"ú","ú":"ú","↑":"↑","ў":"ў","ŭ":"ŭ","û":"û","û":"û","у":"у","⇅":"⇅","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"𝔲","ù":"ù","ù":"ù","↿":"↿","↾":"↾","▀":"▀","⌜":"⌜","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","¨":"¨","¨":"¨","ų":"ų","𝕦":"𝕦","↑":"↑","↕":"↕","↿":"↿","↾":"↾","⊎":"⊎","υ":"υ","ϒ":"ϒ","υ":"υ","⇈":"⇈","⌝":"⌝","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","▵":"▵","▴":"▴","⇈":"⇈","ü":"ü","ü":"ü","⦧":"⦧","⇕":"⇕","⫨":"⫨","⫩":"⫩","⊨":"⊨","⦜":"⦜","ϵ":"ϵ","ϰ":"ϰ","∅":"∅","ϕ":"ϕ","ϖ":"ϖ","∝":"∝","↕":"↕","ϱ":"ϱ","ς":"ς","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","ϑ":"ϑ","⊲":"⊲","⊳":"⊳","в":"в","⊢":"⊢","∨":"∨","⊻":"⊻","≚":"≚","⋮":"⋮","|":"|","|":"|","𝔳":"𝔳","⊲":"⊲","⊂⃒":"⊂⃒","⊃⃒":"⊃⃒","𝕧":"𝕧","∝":"∝","⊳":"⊳","𝓋":"𝓋","⫋︀":"⫋︀","⊊︀":"⊊︀","⫌︀":"⫌︀","⊋︀":"⊋︀","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","∧":"∧","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","℘":"℘","≀":"≀","≀":"≀","𝓌":"𝓌","⋂":"⋂","◯":"◯","⋃":"⋃","▽":"▽","𝔵":"𝔵","⟺":"⟺","⟷":"⟷","ξ":"ξ","⟸":"⟸","⟵":"⟵","⟼":"⟼","⋻":"⋻","⨀":"⨀","𝕩":"𝕩","⨁":"⨁","⨂":"⨂","⟹":"⟹","⟶":"⟶","𝓍":"𝓍","⨆":"⨆","⨄":"⨄","△":"△","⋁":"⋁","⋀":"⋀","ý":"ý","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"ℨ","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"","‌":""},characters:{"Æ":"Æ","&":"&","Á":"Á","Ă":"Ă","Â":"Â","А":"А","𝔄":"𝔄","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","":"⁡","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","≎":"≎","Ч":"Ч","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","⇓":"⇓","⇐":"⇐","⇔":"⇔","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","É":"É","Ě":"Ě","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","Ѓ":"Ѓ",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","Ħ":"Ħ","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ī":"Ī","ⅈ":"ⅈ","∬":"∬","∫":"∫","⋂":"⋂","":"⁣","":"⁢","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","𝕃":"𝕃","↙":"↙","↘":"↘","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","":"​","\n":"
","𝔑":"𝔑","":"⁠"," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Õ":"Õ","⨷":"⨷","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",'"':""","𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","\t":"	","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ"," ":"  "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ū":"Ū",_:"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","а":"а","æ":"æ","𝔞":"𝔞","à":"à","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","⍼":"⍼","ą":"ą","𝕒":"𝕒","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","å":"å","𝒶":"𝒶","*":"*","ã":"ã","ä":"ä","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⎶":"⎶","б":"б","„":"„","⦰":"⦰","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","◯":"◯","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⤍":"⤍","⧫":"⧫","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","¦":"¦","𝒷":"𝒷","⁏":"⁏","\\":"\","⧅":"⧅","⟈":"⟈","•":"•","⪮":"⪮","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","⩍":"⩍","č":"č","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","⦲":"⦲","¢":"¢","𝔠":"𝔠","ч":"ч","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣",":":":",",":",","@":"@","∁":"∁","⩭":"⩭","𝕔":"𝕔","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋎":"⋎","⋏":"⋏","¤":"¤","∱":"∱","⌭":"⌭","⥥":"⥥","†":"†","ℸ":"ℸ","‐":"‐","⤏":"⤏","ď":"ď","д":"д","⇊":"⇊","⩷":"⩷","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","♦":"♦","ϝ":"ϝ","⋲":"⋲","÷":"÷","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍",$:"$","𝕕":"𝕕","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","⦦":"⦦","џ":"џ","⟿":"⟿","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","≕":"≕","э":"э","ė":"ė","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ϵ":"ϵ","=":"=","≟":"≟","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","η":"η","ð":"ð","ë":"ë","€":"€","!":"!","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi",fj:"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","⅓":"⅓","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","⪌":"⪌","ǵ":"ǵ","γ":"γ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","ℷ":"ℷ","ѓ":"ѓ","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪈":"⪈","⋧":"⋧","𝕘":"𝕘","ℊ":"ℊ","⪎":"⪎","⪐":"⪐","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⥸":"⥸","≩︀":"≩︀","ъ":"ъ","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ħ":"ħ","⁃":"⁃","í":"í","î":"î","и":"и","е":"е","¡":"¡","𝔦":"𝔦","ì":"ì","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","℅":"℅","∞":"∞","⧝":"⧝","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","¿":"¿","𝒾":"𝒾","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","ĩ":"ĩ","і":"і","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⤛":"⤛","⤎":"⤎","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","λ":"λ","⦑":"⦑","⪅":"⪅","«":"«","⤟":"⤟","⤝":"⤝","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","л":"л","⤶":"⤶","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","⇇":"⇇","⋋":"⋋","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⋖":"⋖","⥼":"⥼","𝔩":"𝔩","⪑":"⪑","⥪":"⥪","▄":"▄","љ":"љ","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","≨":"≨","⪉":"⪉","⪇":"⪇","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟼":"⟼","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","◊":"◊","(":"(","⦓":"⦓","⥭":"⥭","":"‎","⊿":"⊿","‹":"‹","𝓁":"𝓁","⪍":"⪍","⪏":"⪏","‚":"‚","ł":"ł","⪦":"⪦","⩹":"⩹","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","∺":"∺","¯":"¯","♂":"♂","✠":"✠","▮":"▮","⨩":"⨩","м":"м","—":"—","𝔪":"𝔪","℧":"℧","µ":"µ","⫰":"⫰","−":"−","⨪":"⨪","⫛":"⫛","⊧":"⊧","𝕞":"𝕞","𝓂":"𝓂","μ":"μ","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","⇏":"⇏","⊯":"⊯","⊮":"⊮","ń":"ń","∠⃒":"∠⃒","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","♮":"♮","⩃":"⩃","ň":"ň","ņ":"ņ","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","⇗":"⇗","⤤":"⤤","≐̸":"≐̸","⤨":"⤨","𝔫":"𝔫","↮":"↮","⫲":"⫲","⋼":"⋼","⋺":"⋺","њ":"њ","≦̸":"≦̸","↚":"↚","‥":"‥","𝕟":"𝕟","¬":"¬","⋹̸":"⋹̸","⋵̸":"⋵̸","⋷":"⋷","⋶":"⋶","⋾":"⋾","⋽":"⋽","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","𝓃":"𝓃","⊄":"⊄","⫅̸":"⫅̸","⊅":"⊅","⫆̸":"⫆̸","ñ":"ñ","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","⤧":"⤧","ó":"ó","ô":"ô","о":"о","ő":"ő","⨸":"⨸","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","⧁":"⧁","⦵":"⦵","⦾":"⦾","⦻":"⦻","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","∨":"∨","⩝":"⩝","ℴ":"ℴ","ª":"ª","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ø":"ø","⊘":"⊘","õ":"õ","⨶":"⨶","ö":"ö","⌽":"⌽","¶":"¶","⫳":"⫳","⫽":"⫽","п":"п","%":"%",".":".","‰":"‰","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","☎":"☎","π":"π","ϖ":"ϖ","ℎ":"ℎ","+":"+","⨣":"⨣","⨢":"⨢","⨥":"⨥","⩲":"⩲","⨦":"⨦","⨧":"⨧","⨕":"⨕","𝕡":"𝕡","£":"£","⪳":"⪳","⪷":"⪷","⪹":"⪹","⪵":"⪵","⋨":"⋨","′":"′","⌮":"⌮","⌒":"⌒","⌓":"⌓","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","⨖":"⨖","?":"?","⤜":"⤜","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","⦳":"⦳","⦒":"⦒","⦥":"⦥","»":"»","⥵":"⥵","⤠":"⤠","⤳":"⤳","⤞":"⤞","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","р":"р","⤷":"⤷","⥩":"⥩","↳":"↳","▭":"▭","⥽":"⥽","𝔯":"𝔯","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","⇉":"⇉","⋌":"⋌","˚":"˚","":"‏","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","›":"›","𝓇":"𝓇","⋊":"⋊","▹":"▹","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","⪴":"⪴","⪸":"⪸","š":"š","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","с":"с","⋅":"⋅","⩦":"⩦","⇘":"⇘","§":"§",";":";","⤩":"⤩","✶":"✶","𝔰":"𝔰","♯":"♯","щ":"щ","ш":"ш","":"­","σ":"σ","ς":"ς","⩪":"⩪","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","⨳":"⨳","⧤":"⧤","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","⊓︀":"⊓︀","⊔︀":"⊔︀","𝓈":"𝓈","☆":"☆","⊂":"⊂","⫅":"⫅","⪽":"⪽","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⫇":"⫇","⫕":"⫕","⫓":"⫓","♪":"♪","¹":"¹","²":"²","³":"³","⫆":"⫆","⪾":"⪾","⫘":"⫘","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤪":"⤪","ß":"ß","⌖":"⌖","τ":"τ","ť":"ť","ţ":"ţ","т":"т","⌕":"⌕","𝔱":"𝔱","θ":"θ","ϑ":"ϑ","þ":"þ","×":"×","⨱":"⨱","⨰":"⨰","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","‴":"‴","▵":"▵","≜":"≜","◬":"◬","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","⥣":"⥣","ú":"ú","ў":"ў","ŭ":"ŭ","û":"û","у":"у","ű":"ű","⥾":"⥾","𝔲":"𝔲","ù":"ù","▀":"▀","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","ų":"ų","𝕦":"𝕦","υ":"υ","⇈":"⇈","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","ü":"ü","⦧":"⦧","⫨":"⫨","⫩":"⫩","⦜":"⦜","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","в":"в","⊻":"⊻","≚":"≚","⋮":"⋮","𝔳":"𝔳","𝕧":"𝕧","𝓋":"𝓋","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","𝓌":"𝓌","𝔵":"𝔵","ξ":"ξ","⋻":"⋻","𝕩":"𝕩","𝓍":"𝓍","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","":"‍","":"‌"}}};var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},Md.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536},Md.highSurrogateFrom=55296,Md.highSurrogateTo=56319;var jd=he&&he.__assign||function(){return jd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jd.apply(this,arguments)};Object.defineProperty(Pd,"__esModule",{value:!0});var qd=Rd,zd=Ed,Ud=Md,Id=jd(jd({},qd.namedReferences),{all:qd.namedReferences.html5}),Vd={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,extensive:/[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g},Ld={mode:"specialChars",level:"all",numeric:"decimal"};Pd.encode=function(e,t){var r=void 0===(s=(i=void 0===t?Ld:t).mode)?"specialChars":s,n=void 0===(h=i.numeric)?"decimal":h,o=i.level;if(!e)return"";var i,s,a=Vd[r],c=Id[void 0===o?"all":o].characters,l="hexadecimal"===n;if(a.lastIndex=0,i=a.exec(e)){s="";var h=0;do{h!==i.index&&(s+=e.substring(h,i.index));var d=c[o=i[0]];if(!d){var u=o.length>1?Ud.getCodePoint(o,0):o.charCodeAt(0);d=(l?"&#x"+u.toString(16):"&#"+u)+";"}s+=d,h=i.index+o.length}while(i=a.exec(e));h!==e.length&&(s+=e.substring(h))}else s=e;return s};var Wd,Hd={scope:"body",level:"all"},Gd=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,Kd=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,Xd={xml:{strict:Gd,attribute:Kd,body:qd.bodyRegExps.xml},html4:{strict:Gd,attribute:Kd,body:qd.bodyRegExps.html4},html5:{strict:Gd,attribute:Kd,body:qd.bodyRegExps.html5}},Zd=jd(jd({},Xd),{all:Xd.html5}),Yd=String.fromCharCode,Jd=Yd(65533),Qd={level:"all"};Pd.decodeEntity=function(e,t){var r=void 0===(n=(void 0===t?Qd:t).level)?"all":n;if(!e)return"";var n=e;e[e.length-1];var o=Id[r].entities[e];if(o)n=o;else if("&"===e[0]&&"#"===e[1]){var i=e[2],s="x"==i||"X"==i?parseInt(e.substr(3),16):parseInt(e.substr(2));n=s>=1114111?Jd:s>65535?Ud.fromCodePoint(s):Yd(zd.numericUnicodeMap[s]||s)}return n},Pd.decode=function(e,t){var r=void 0===t?Hd:t,n=r.level,o=void 0===n?"all":n,i=r.scope,s=void 0===i?"xml"===o?"strict":"body":i;if(!e)return"";var a=Zd[o][s],c=Id[o].entities,l="attribute"===s,h="strict"===s;a.lastIndex=0;var d,u=a.exec(e);if(u){d="";var f=0;do{f!==u.index&&(d+=e.substring(f,u.index));var p=u[0],g=p,m=p[p.length-1];if(l&&"="===m)g=p;else if(h&&";"!==m)g=p;else{var b=c[p];if(b)g=b;else if("&"===p[0]&&"#"===p[1]){var y=p[2],v="x"==y||"X"==y?parseInt(p.substr(3),16):parseInt(p.substr(2));g=v>=1114111?Jd:v>65535?Ud.fromCodePoint(v):Yd(zd.numericUnicodeMap[v]||v)}}d+=g,f=u.index+p.length}while(u=a.exec(e));f!==e.length&&(d+=e.substring(f))}else d=e;return d},function(e){var t,r=he&&he.__extends||(t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},t(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.isBlock=e.parse=e.Matcher=e.HTMLElement=e.CommentNode=e.TextNode=e.AbstractNode=e.NodeType=void 0;var n,o=Pd;!function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE"}(n=e.NodeType||(e.NodeType={}));var i=function(){function e(){this.childNodes=[]}return Object.defineProperty(e.prototype,"text",{get:function(){return(0,o.decode)(this.rawText)},enumerable:!1,configurable:!0}),e.prototype.remove=function(){return this.parentNode&&this.parentNode.removeChild(this),this},e}();e.AbstractNode=i;var s=function(e){function t(t){var r=e.call(this)||this;return r.nodeType=n.TEXT_NODE,r.value=t,r}return r(t,e),Object.defineProperty(t.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWhitespace",{get:function(){return/^(\s| )*$/.test(this.rawText)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.rawText},t}(i);e.TextNode=s;var a=function(e){function t(t){var r=e.call(this)||this;return r.nodeType=n.COMMENT_NODE,r.value=t,r}return r(t,e),Object.defineProperty(t.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"\x3c!--".concat(this.rawText,"--\x3e")},t}(i);e.CommentNode=a;var c={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function l(e){return e[e.length-1]}var h=function(e){function t(t,r,o){void 0===r&&(r=""),void 0===o&&(o=null);var i=e.call(this)||this;i.tagName=t,i.rawAttrs=r,i.classNames=[],i.nodeType=n.ELEMENT_NODE,i.rawAttrs=r,i.parentNode=o,i.childNodes=[];for(var s={},a=void 0;a=g.exec(r);)s[a[2]]=a[4]||a[5]||a[6];return s.id&&(i.id=s.id),s.class&&(i.classNames=s.class.split(/\s+/)),i}return r(t,e),t.prototype.removeChild=function(e){this.childNodes=this.childNodes.filter((function(t){return t!==e})),e instanceof t&&(e.parentNode=null)},t.prototype.exchangeChild=function(e,r){var n=this.childNodes.findIndex((function(t){return t===e}));n>=0&&(this.childNodes[n]=r,e instanceof t&&(e.parentNode=null))},Object.defineProperty(t.prototype,"rawText",{get:function(){for(var e="",t=0;t<this.childNodes.length;t++)e+=this.childNodes[t].rawText;return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"structuredText",{get:function(){var e=[],t=[e];return function r(o){if(o.nodeType===n.ELEMENT_NODE)c[o.tagName]?(e.length>0&&t.push(e=[]),o.childNodes.forEach(r),e.length>0&&t.push(e=[])):o.childNodes.forEach(r);else if(o.nodeType===n.TEXT_NODE)if(o.isWhitespace)e.prependWhitespace=!0;else{var i=o.text;e.prependWhitespace&&(i=" "+i,e.prependWhitespace=!1),e.push(i)}}(this),t.map((function(e){return e.join("").trim().replace(/\s{2,}/g," ")})).join("\n").replace(/\s+$/,"")},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this.tagName;if(e){var t=/^(img|br|hr|area|base|input|doctype|link|meta)$/i.test(e),r=this.rawAttrs?" "+this.rawAttrs:"";return t?"<".concat(e).concat(r," />"):"<".concat(e).concat(r,">").concat(this.innerHTML,"</").concat(e,">")}return this.innerHTML},Object.defineProperty(t.prototype,"innerHTML",{get:function(){return this.childNodes.map((function(e){return e.toString()})).join("")},set:function(e){var t=this,r=x(e);this.childNodes.forEach((function(e){return e.remove()})),r.childNodes.forEach((function(e){return t.appendChild(e)}))},enumerable:!1,configurable:!0}),t.prototype.set_content=function(e){if(e instanceof i)e=[e];else if("string"==typeof e){var t=x(e);e=t.childNodes.length?t.childNodes:[new s(e)]}this.childNodes=e},Object.defineProperty(t.prototype,"outerHTML",{get:function(){return this.toString()},enumerable:!1,configurable:!0}),t.prototype.trimRight=function(e){for(var t=0;t<this.childNodes.length;t++){var r=this.childNodes[t];if(r.nodeType===n.ELEMENT_NODE)r.trimRight(e);else{var o=r.rawText.search(e);o>-1&&(r.value=r.rawText.substr(0,o),this.childNodes.length=t+1)}}return this},Object.defineProperty(t.prototype,"structure",{get:function(){var e=[],t=0;function r(r){e.push(" ".repeat(t)+r)}return function e(o){var i=o.id?"#"+o.id:"",s=o.classNames.length?"."+o.classNames.join("."):"";r(o.tagName+i+s),t++;for(var a=0;a<o.childNodes.length;a++){var c=o.childNodes[a];c.nodeType===n.ELEMENT_NODE?e(c):c.nodeType===n.TEXT_NODE&&(c.isWhitespace||r("#text"))}t--}(this),e.join("\n")},enumerable:!1,configurable:!0}),t.prototype.removeWhitespace=function(){for(var e=0,t=0;t<this.childNodes.length;t++){var r=this.childNodes[t];if(r.nodeType===n.TEXT_NODE){if(r.isWhitespace)continue;r.value=r.rawText.trim()}else r.nodeType===n.ELEMENT_NODE&&r.removeWhitespace();this.childNodes[e++]=r}return this.childNodes.length=e,this},t.prototype.querySelectorAll=function(e){var t,r=this;if(e instanceof f)(t=e).reset();else{if(e.includes(",")){var o=e.split(",");return Array.from(o.reduce((function(e,t){return r.querySelectorAll(t.trim()).reduce((function(e,t){return e.add(t)}),e)}),new Set))}t=new f(e)}for(var i=[],s=[],a=0;a<this.childNodes.length;a++)for(s.push([this.childNodes[a],0,!1]);s.length;){var c=l(s),h=c[0];if(0===c[1]){if(h.nodeType!==n.ELEMENT_NODE){s.pop();continue}if((c[2]=t.advance(h))&&t.matched){i.push(h),t.rewind(),s.pop();continue}}c[1]<h.childNodes.length?s.push([h.childNodes[c[1]++],0,!1]):(c[2]&&t.rewind(),s.pop())}return i},t.prototype.querySelector=function(e){var t;e instanceof f?(t=e).reset():t=new f(e);for(var r=[],o=0;o<this.childNodes.length;o++)for(r.push([this.childNodes[o],0,!1]);r.length;){var i=l(r),s=i[0];if(0===i[1]){if(s.nodeType!==n.ELEMENT_NODE){r.pop();continue}if((i[2]=t.advance(s))&&t.matched)return s}i[1]<s.childNodes.length?r.push([s.childNodes[i[1]++],0,!1]):(i[2]&&t.rewind(),r.pop())}return null},t.prototype.appendChild=function(e){return this.childNodes.push(e),e instanceof t&&(e.parentNode=this),e},t.prototype.prependChild=function(e){return this.childNodes.unshift(e),e instanceof t&&(e.parentNode=this),e},Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.childNodes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return l(this.childNodes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){if(this._attrs)return this._attrs;this._attrs={};var e=this.rawAttributes;for(var t in e)this._attrs[t]=(0,o.decode)(e[t]);return this._attrs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawAttributes",{get:function(){if(this._rawAttrs)return this._rawAttrs;var e={};if(this.rawAttrs)for(var t=void 0;t=m.exec(this.rawAttrs);)e[t[1]]=t[4]||t[5]||t[6]||"";return this._rawAttrs=e,e},enumerable:!1,configurable:!0}),t.prototype.setAttribute=function(e,t){"id"===e?this.id=t:"class"===e&&(this.classNames=t.split(/\s+/));var r=this.attributes;void 0===t?delete r[e]:r[e]=t+"",this._rawAttrs&&(void 0===t?delete this._rawAttrs[e]:this._rawAttrs[e]=(0,o.encode)(t+"")),this.rawAttrs=Object.keys(r).map((function(e){return e+(""===r[e]?"":'="'+(0,o.encode)(r[e])+'"')})).join(" ")},t.prototype.removeAttribute=function(e){this.setAttribute(e,void 0)},t.prototype.setAttributes=function(e){var t=this;e.id?this.id=e.id:e.class&&(this.classNames=e.class.split(/\s+/)),this.attributes&&(Object.keys(this.attributes).forEach((function(e){return delete t.attributes[e]})),Object.keys(e).forEach((function(r){return t.attributes[r]=e[r]+""}))),this.rawAttributes&&(Object.keys(this.rawAttributes).forEach((function(e){return delete t.rawAttributes[e]})),Object.keys(e).forEach((function(r){return t.rawAttributes[r]=(0,o.encode)(e[r]+"")}))),this.rawAttrs=Object.keys(e).map((function(t){return t+(""===e[t]?"":'="'+(0,o.encode)(e[t]+"")+'"')})).join(" ")},t}(i);e.HTMLElement=h;var d={},u={f145:function(e,t,r,n,o){if(t=t||"",r=r||[],e.id!=t.substr(1))return!1;for(var i=r,s=0;s<i.length;s++)if(-1===e.classNames.indexOf(i[s]))return!1;return!0},f45:function(e,t,r,n,o){for(var i=r=r||[],s=0;s<i.length;s++)if(-1===e.classNames.indexOf(i[s]))return!1;return!0},f15:function(e,t,r,n,o){return t=t||"",e.id==t.substr(1)},f1:function(e,t,r,n,o){if(t=t||"",e.id!=t.substr(1))return!1},f5:function(e,t,r,n,o){return!0},f245:function(e,t,r,n,o){n=n||"",o=o||"";var i=e.attributes;for(var s in i){var a=i[s];if(s==n&&a==o)return!0}return!1},f25:function(e,t,r,n,o){n=n||"",o=o||"";var i=e.attributes;for(var s in i){var a=i[s];if(s==n&&a==o)return!0}return!1},f2:function(e,t,r,n,o){n=n||"",o=o||"";var i=e.attributes;for(var s in i){var a=i[s];if(s==n&&a==o)return!0}return!1},f345:function(e,t,r,n,o){if(t=t||"",r=r||[],e.tagName!=t)return!1;for(var i=r,s=0;s<i.length;s++)if(-1===e.classNames.indexOf(i[s]))return!1;return!0},f35:function(e,t,r,n,o){return t=t||"",e.tagName==t},f3:function(e,t,r,n,o){if(t=t||"",e.tagName!=t)return!1}},f=function(){function e(e){this.nextMatch=0,u.f5=u.f5,this.matchers=e.split(" ").map((function(e){if(d[e])return d[e];var t,r=e.split("."),n=r[0],o=r.slice(1).sort(),i='"use strict";',s="f",a="",c="";if(n&&"*"!=n)if("#"==n[0])i+="if (el.id != "+JSON.stringify(n.substr(1))+") return false;",s+="1";else if(t=n.match(/^\[\s*(\S+)\s*(=|!=)\s*((((["'])([^\6]*)\6))|(\S*?))\]\s*/)){a=t[1];var l=t[2];if("="!==l&&"!="!==l)throw new Error("Selector not supported, Expect [key${op}value].op must be =,!=");"="===l&&(l="=="),c=t[7]||t[8],i+='let attrs = el.attributes;for (let key in attrs){const val = attrs[key]; if (key == "'.concat(a,'" && val == "').concat(c,'"){return true;}} return false;'),s+="2"}else i+="if (el.tagName != "+JSON.stringify(n)+") return false;",s+="3";o.length>0&&(i+="for (let cls = "+JSON.stringify(o)+", i = 0; i < cls.length; i++) if (el.classNames.indexOf(cls[i]) === -1) return false;",s+="4"),i+="return true;";var h={func:u[s+="5"],tagName:n||"",classes:o||"",attr_key:a||"",value:c||""};return i=i||"",d[e]=h}))}return e.prototype.advance=function(e){return!!(this.nextMatch<this.matchers.length&&this.matchers[this.nextMatch].func(e,this.matchers[this.nextMatch].tagName,this.matchers[this.nextMatch].classes,this.matchers[this.nextMatch].attr_key,this.matchers[this.nextMatch].value))&&(this.nextMatch++,!0)},e.prototype.rewind=function(){this.nextMatch--},Object.defineProperty(e.prototype,"matched",{get:function(){return this.nextMatch==this.matchers.length},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.nextMatch=0},e.prototype.flushCache=function(){d={}},e}();e.Matcher=f;var p=/<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)((\s+[a-z][-.:0-9_a-z]*(\s*=\s*("[^"]*"|'([^']*')|([^\s\/>]+)))?)*)\s*(\/?)>/gi,g=/(^|\s)(id|class)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/gi,m=/([a-z][-.:0-9_a-z]*)(\s*=\s*("([^"]*)"|'([^']*)'|(\S+)))?/gi,b={area:!0,base:!0,br:!0,col:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,source:!0},y={li:{li:!0},p:{p:!0,div:!0},b:{div:!0},td:{td:!0,th:!0},th:{td:!0,th:!0},h1:{h1:!0},h2:{h2:!0},h3:{h3:!0},h4:{h4:!0},h5:{h5:!0},h6:{h6:!0}},v={li:{ul:!0,ol:!0},a:{div:!0},b:{div:!0},i:{div:!0},p:{div:!0},td:{tr:!0,table:!0},th:{tr:!0,table:!0}},w={script:!0,noscript:!0,style:!0,pre:!0};function x(e,t){var r,n=new h(null),o=n,i=[n],c=0;for(t=t||{};r=p.exec(e);){if(c+r[0].length<p.lastIndex){var d=e.substring(c,p.lastIndex-r[0].length);o.appendChild(new s(d))}if(c=p.lastIndex,"!"!=r[0][1]){if(t.lowerCaseTagName&&(r[2]=r[2].toLowerCase()),!r[1]&&(!r[9]&&y[o.tagName]&&y[o.tagName][r[2]]&&(i.pop(),o=l(i)),o=o.appendChild(new h(r[2],r[3].trim())),i.push(o),w[r[2]])){var u="</"+r[2]+">",f=e.indexOf(u,p.lastIndex);if(t[r[2]]){d=void 0;(d=-1==f?e.substr(p.lastIndex):e.substring(p.lastIndex,f)).length>0&&o.appendChild(new s(d))}-1==f?c=p.lastIndex=e.length+1:(c=p.lastIndex=f+u.length,r[1]="true")}if(r[1]||r[9]||b[r[2]])for(;;){if(o.tagName==r[2]){i.pop(),o=l(i);break}if(!v[o.tagName]||!v[o.tagName][r[2]])break;i.pop(),o=l(i)}}else if(t.comment){var d=e.substring(c-3,c-r[0].length+4);o.appendChild(new a(d))}}c<e.length&&n.appendChild(new s(e.substring(c))),n.valid=1===i.length;for(var g=function(){var e=i.pop(),t=l(i);e.parentNode&&e.parentNode instanceof h&&e.parentNode.parentNode&&(e.parentNode===t&&e.tagName===t.tagName?(t.removeChild(e),e.childNodes.forEach((function(e){t.parentNode.appendChild(e)})),i.pop()):(t.removeChild(e),e.childNodes.forEach((function(e){t.appendChild(e)}))))};i.length>1;)g();return n}e.parse=x;var F=["html","body","address","article","aside","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hr","li","main","nav","noscript","ol","p","pre","section","tfoot","table","tbody","ul","video","th","td","tr","h1","h2","h3","h4","h5","h6"];e.isBlock=function(e){return e.nodeType===n.ELEMENT_NODE&&e.tagName&&F.includes(e.tagName.toLowerCase())}}(Nd);class _d{constructor(e,t={}){this.svg=e,this.images=t}}e.BlendMode=void 0,(Wd=e.BlendMode||(e.BlendMode={})).Normal="Normal",Wd.Multiply="Multiply",Wd.Screen="Screen",Wd.Overlay="Overlay",Wd.Darken="Darken",Wd.Lighten="Lighten",Wd.ColorDodge="ColorDodge",Wd.ColorBurn="ColorBurn",Wd.HardLight="HardLight",Wd.SoftLight="SoftLight",Wd.Difference="Difference",Wd.Exclusion="Exclusion";const $d=[1,0,0,1,0,0],eu=([e,t,r,n,o,i],[s,a,c,l,h,d])=>[e*s+r*a,t*s+n*a,e*c+r*l,t*c+n*l,e*h+r*d+o,t*h+n*d+i],tu=([e,t,r,n,o,i],{x:s,y:a})=>({x:e*s+r*a+o,y:t*s+n*a+i}),ru=(e,t)=>{switch(e){case"scale":case"scaleX":case"scaleY":{const[r,n=r]=t;return["scaleY"===e?1:r,0,0,"scaleX"===e?1:n,0,0]}case"translate":case"translateX":case"translateY":{const[r,n=r]=t;return[1,0,0,1,"translateY"===e?0:r,"translateX"===e?0:-n]}case"rotate":{const[e,r=0,n=0]=t,o=ru("translate",[r,n]),i=ru("translate",[-r,-n]),s=Sl(-e),a=[Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0];return eu(eu(o,a),i)}case"skewY":case"skewX":{const r=Sl(-t[0]),n=Math.tan(r);return[1,"skewY"===e?n:0,"skewX"===e?n:0,1,0,0]}case"matrix":{const[e,r,n,o,i,s]=t,a=ru("scale",[1,-1]);return eu(eu(a,[e,r,n,o,i,s]),a)}default:return $d}},nu=(e,t,r)=>eu(e,ru(t,r)),ou={butt:e.LineCapStyle.Butt,round:e.LineCapStyle.Round,square:e.LineCapStyle.Projecting},iu={evenodd:e.FillRule.EvenOdd,nonzero:e.FillRule.NonZero},su={bevel:e.LineJoinStyle.Bevel,miter:e.LineJoinStyle.Miter,round:e.LineJoinStyle.Round},au=(e,t)=>({text(r){const n=r.svgAttributes.textAnchor,o=r.svgAttributes.dominantBaseline,i=r.text.trim().replace(/\s/g," "),s=r.svgAttributes.fontSize||12,a=t.fonts&&((e,t)=>{const r=e.fontFamily;if(!r)return;const n="bold"===e.fontWeight||Number(e.fontWeight)>=700,o="italic"===e.fontStyle,i=(e,r,n)=>t[n+(e?"_bold":"")+(r?"_italic":"")],s=Object.keys(t).find((e=>e.startsWith(r)));return i(n,o,r)||i(n,!1,r)||i(!1,o,r)||i(!1,!1,r)||(s?t[s]:void 0)})(r.svgAttributes,t.fonts),c=(a||e.getFont()[0]).widthOfTextAtSize(i,s),l=(a||e.getFont()[0]).heightAtSize(s),h=(a||e.getFont()[0]).heightAtSize(s,{descender:!1}),d="middle"===n?c/2:"end"===n?c:0;let u=0;switch(o){case"middle":case"central":u=h-l/2;break;case"mathematical":u=.6*s;break;case"hanging":u=h;break;case"text-before-edge":u=s;break;case"ideographic":case"text-after-edge":u=h-l;break;default:u=0}e.drawText(i,{x:-d,y:-u,font:a,size:s,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},line(r){e.drawLine({start:{x:r.svgAttributes.x1||0,y:-r.svgAttributes.y1||0},end:{x:r.svgAttributes.x2||0,y:-r.svgAttributes.y2||0},thickness:r.svgAttributes.strokeWidth,color:r.svgAttributes.stroke,opacity:r.svgAttributes.strokeOpacity,lineCap:r.svgAttributes.strokeLineCap,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},path(r){r.svgAttributes.d&&e.drawSvgPath(r.svgAttributes.d,{x:0,y:0,borderColor:r.svgAttributes.stroke,borderWidth:r.svgAttributes.strokeWidth,borderOpacity:r.svgAttributes.strokeOpacity,borderLineCap:r.svgAttributes.strokeLineCap,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,fillRule:r.svgAttributes.fillRule,matrix:nu(r.svgAttributes.matrix,"scale",[1,-1]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},image(r){var n,o;const{src:i}=r.svgAttributes;if(!i||!(null===(n=t.images)||void 0===n?void 0:n[i]))return;const s=null===(o=t.images)||void 0===o?void 0:o[i],{x:a,y:c,width:l,height:h}=uu(s.width,s.height,r.svgAttributes.width||s.width,r.svgAttributes.height||s.height,r.svgAttributes.preserveAspectRatio);e.drawImage(s,{x:a,y:-c-h,width:l,height:h,opacity:r.svgAttributes.fillOpacity,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},rect(r){(r.svgAttributes.fill||r.svgAttributes.stroke)&&e.drawRectangle({x:0,y:0,width:r.svgAttributes.width,height:r.svgAttributes.height,rx:r.svgAttributes.rx,ry:r.svgAttributes.ry,borderColor:r.svgAttributes.stroke,borderWidth:r.svgAttributes.strokeWidth,borderOpacity:r.svgAttributes.strokeOpacity,borderLineCap:r.svgAttributes.strokeLineCap,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,matrix:nu(r.svgAttributes.matrix,"translateY",[r.svgAttributes.height]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},ellipse(r){e.drawEllipse({x:r.svgAttributes.cx||0,y:-(r.svgAttributes.cy||0),xScale:r.svgAttributes.rx,yScale:r.svgAttributes.ry,borderColor:r.svgAttributes.stroke,borderWidth:r.svgAttributes.strokeWidth,borderOpacity:r.svgAttributes.strokeOpacity,borderLineCap:r.svgAttributes.strokeLineCap,color:r.svgAttributes.fill,opacity:r.svgAttributes.fillOpacity,matrix:r.svgAttributes.matrix,clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||t.blendMode})},circle:r=>au(e,t).ellipse(r)}),cu=(e,t,r,n)=>{const o=t[r]||e[r];return o||void 0===n?o:n},lu=e=>{const t=/([^:\s]+)*\s*:\s*([^;]+)/g,r={};let n=t.exec(e);for(;null!==n;)r[n[1]]=n[2],n=t.exec(e);return r},hu=(e,t)=>{if(!e||0===e.length)return;if(["none","transparent"].includes(e))return;if("currentColor"===e)return t||hu("#000000");const r=pd(e);return{rgb:r.rgb,alpha:r.alpha?r.alpha+"":void 0}},du=(e,t,r)=>{var n,o,i,s;const a=e.attributes,c=lu(a.style),l=cu(a,c,"width",""),h=cu(a,c,"height",""),d=hu(cu(a,c,"fill")),u=cu(a,c,"fill-opacity"),f=cu(a,c,"opacity"),p=hu(cu(a,c,"stroke")),g=cu(a,c,"stroke-opacity"),m=cu(a,c,"stroke-linecap"),b=cu(a,c,"stroke-linejoin"),y=cu(a,c,"fill-rule"),v=cu(a,c,"stroke-width"),w=cu(a,c,"font-family"),x=cu(a,c,"font-style"),F=cu(a,c,"font-weight"),S=cu(a,c,"font-size"),k=cu(a,c,"mix-blend-mode"),C=mu(l,t.width),A=mu(h,t.height),T=mu(a.x,t.width),D=mu(a.y,t.height),O=mu(a.x1,t.width),B=mu(a.x2,t.width),N=mu(a.y1,t.height),P=mu(a.y2,t.height),R=mu(a.cx,t.width),E=mu(a.cy,t.height),M=mu(a.rx||a.r,t.width),j=mu(a.ry||a.r,t.height),q={fontFamily:w||t.fontFamily,fontStyle:x||t.fontStyle,fontWeight:F||t.fontWeight,fontSize:null!==(n=mu(S))&&void 0!==n?n:t.fontSize,fill:(null==d?void 0:d.rgb)||t.fill,fillOpacity:null!==(o=mu(u||f||(null==d?void 0:d.alpha)))&&void 0!==o?o:t.fillOpacity,fillRule:iu[y]||t.fillRule,stroke:(null==p?void 0:p.rgb)||t.stroke,strokeWidth:null!==(i=mu(v))&&void 0!==i?i:t.strokeWidth,strokeOpacity:null!==(s=mu(g||f||(null==p?void 0:p.alpha)))&&void 0!==s?s:t.strokeOpacity,strokeLineCap:ou[m]||t.strokeLineCap,strokeLineJoin:su[b]||t.strokeLineJoin,width:C||t.width,height:A||t.height,rotation:t.rotation,viewBox:"svg"===e.tagName&&e.attributes.viewBox?yu(e.attributes.viewBox):t.viewBox,blendMode:bu(k)||t.blendMode},z={src:a.src||a.href||a["xlink:href"],textAnchor:a["text-anchor"],dominantBaseline:a["dominant-baseline"],preserveAspectRatio:a.preserveAspectRatio};let U=a.transform||"";["translate","translateX","translateY","skewX","skewY","rotate","scale","scaleX","scaleY","matrix"].forEach((e=>{a[e]&&(U=a[e]+" "+U)})),(T||D)&&(U+=`translate(${T||0} ${D||0}) `);let I=r;if(U){const e=/(\w+)\((.+?)\)/g;let t=e.exec(U);for(;null!==t;){const[,r,n]=t,o=(n||"").split(/\s*,\s*|\s+/).filter((e=>e.length>0)).map((e=>parseFloat(e)));I=nu(I,r,o),t=e.exec(U)}}if(z.x=T,z.y=D,(a.cx||a.cy)&&(z.cx=R,z.cy=E),(a.rx||a.ry||a.r)&&(z.rx=M,z.ry=j),(a.x1||a.y1)&&(z.x1=O,z.y1=N),(a.x2||a.y2)&&(z.x2=B,z.y2=P),(a.width||a.height)&&(z.width=null!=C?C:t.width,z.height=null!=A?A:t.height),a.d&&(I=nu(I,"scale",[1,-1]),z.d=a.d),q.fontFamily){const e=q.fontFamily.match(/^"(.*?)"|^'(.*?)'/);e&&(q.fontFamily=e[1]||e[2])}return q.strokeWidth&&(z.strokeWidth=q.strokeWidth),{inherited:q,svgAttributes:z,tagName:e.tagName,matrix:I}},uu=(e,t,r,n,o)=>{if("none"===o)return{x:0,y:0,width:r,height:n};const i=e/t,s=r/n,a=s>i?i*n:r,c=s>=i?n:r/i,l=r-a,h=n-c,[d,u]=(()=>{switch(o){case"xMinYMin":return[0,0];case"xMidYMin":return[l/2,0];case"xMaxYMin":case"xMaxYMid":return[l,h/2];case"xMinYMid":case"xMinYMax":return[0,h];case"xMidYMax":return[l/2,h];case"xMaxYMax":return[l,h];default:return[l/2,h/2]}})();return{x:d,y:u,width:a,height:c}},fu=(e,t,r,n)=>{if(e.nodeType===Nd.NodeType.COMMENT_NODE)return[];if(e.nodeType===Nd.NodeType.TEXT_NODE)return[];if("g"===e.tagName)return gu(e,t,r,n);if("svg"===e.tagName)return pu(e,t,r,n);{"polygon"===e.tagName&&(e.tagName="path",e.attributes.d=`M${e.attributes.points}Z`,delete e.attributes.points);const o=du(e,t,r),i=Object.assign(Object.assign(Object.assign({},o.inherited),o.svgAttributes),{matrix:o.matrix,clipSpaces:n});return Object.assign(e,{svgAttributes:i}),[e]}},pu=(e,t,r,n)=>{var o,i;null!==(o=e.attributes.width)&&void 0!==o||e.setAttribute("width",t.viewBox.width+""),null!==(i=e.attributes.height)&&void 0!==i||e.setAttribute("height",t.viewBox.height+"");const s=du(e,t,r),a=[],c=e.attributes.viewBox?yu(e.attributes.viewBox):e.attributes.width&&e.attributes.height?yu(`0 0 ${e.attributes.width} ${e.attributes.height}`):t.viewBox,l=parseFloat(e.attributes.x)||0,h=parseFloat(e.attributes.y)||0;let d=nu(r,"translate",[l,h]);const{clipBox:u,content:f}=((e,t,r,n,o,i="xMidYMid")=>{const[s,a="meet"]=i.split(" "),c=n/t,l=o/r,h=nu(e,"scale",[c,l]);if("none"===s)return{clipBox:h,content:h};const d="slice"===a?Math.max(c,l):Math.min(c,l),u=n-t*d,f=o-r*d,[p,g]=(()=>{switch(s){case"xMinYMin":return[0,0];case"xMidYMin":return[u/2,0];case"xMaxYMin":case"xMaxYMid":return[u,f/2];case"xMinYMid":case"xMinYMax":return[0,f];case"xMidYMax":return[u/2,f];case"xMaxYMax":return[u,f];default:return[u/2,f/2]}})();return{clipBox:h,content:nu(nu(e,"translate",[p,g]),"scale",[d])}})(d,c.width,c.height,parseFloat(e.attributes.width),parseFloat(e.attributes.height),e.attributes.preserveAspectRatio),p={topLeft:tu(u,{x:0,y:0}),topRight:tu(u,{x:c.width,y:0}),bottomRight:tu(u,{x:c.width,y:-c.height}),bottomLeft:tu(u,{x:0,y:-c.height})};return d=nu(f,"translate",[-c.x,-c.y]),e.childNodes.forEach((e=>{const t=fu(e,Object.assign(Object.assign({},s.inherited),{viewBox:c}),d,[...n,p]);a.push(...t)})),a},gu=(e,t,r,n)=>{const o=du(e,t,r),i=[];return e.childNodes.forEach((e=>{i.push(...fu(e,o.inherited,o.matrix,n))})),i},mu=(e,t=1)=>{if(!e)return;const r=parseFloat(e);return isNaN(r)?void 0:e.endsWith("%")?r*t/100:r},bu=t=>{switch(t){case"normal":return e.BlendMode.Normal;case"multiply":return e.BlendMode.Multiply;case"screen":return e.BlendMode.Screen;case"overlay":return e.BlendMode.Overlay;case"darken":return e.BlendMode.Darken;case"lighten":return e.BlendMode.Lighten;case"color-dodge":return e.BlendMode.ColorDodge;case"color-burn":return e.BlendMode.ColorBurn;case"hard-light":return e.BlendMode.HardLight;case"soft-light":return e.BlendMode.SoftLight;case"difference":return e.BlendMode.Difference;case"exclusion":return e.BlendMode.Exclusion;default:return}},yu=e=>{if(!e)return;const[t=0,r=0,n=1,o=1]=(e||"").split(" ").map((e=>mu(e)));return{x:t,y:r,width:n,height:o}},vu=(e,t,r)=>{const n="string"==typeof t?new _d(t):t;if(!n.svg)return;const o=e.getSize(),i=Nd.parse(n.svg).querySelector("svg");if(!i)return console.error("This is not an svg. Ignoring: "+n.svg);const s=i.attributes,a=lu(s.style),c=cu(s,a,"width",""),l=cu(s,a,"height",""),h=void 0!==r.width?r.width:parseFloat(c),d=void 0!==r.height?r.height:parseFloat(l);s.viewBox||i.setAttribute("viewBox",`0 0 ${c||h} ${l||d}`),(r.width||r.height)&&(void 0!==h&&(a.width=h+(isNaN(h)?"":"px")),void 0!==d&&(a.height=d+(isNaN(d)?"":"px")),i.setAttribute("style",Object.entries(a).map((([e,t])=>`${e}:${t};`)).join("")));const u=[1,0,0,1,r.x||0,r.y||0],f=((e,{width:t,height:r,fontSize:n},o,i)=>{const s=Nd.parse(e).firstChild;return t&&s.setAttribute("width",t+""),r&&s.setAttribute("height",r+""),n&&s.setAttribute("font-size",n+""),fu(s,Object.assign(Object.assign({},o),{viewBox:yu(s.attributes.viewBox||"0 0 1 1")}),i,[])})(i.outerHTML,r,o,u),p=au(e,Object.assign(Object.assign({},r),{images:n.images}));f.forEach((e=>{var t;null===(t=p[e.tagName])||void 0===t||t.call(p,e)}))},wu=({topLeft:e,topRight:t,bottomRight:r,bottomLeft:n})=>[Ql(e.x,e.y),_l(t.x,t.y),_l(r.x,r.y),_l(n.x,n.y),Jl(),Bl(),ih()],xu=e=>e.flatMap(wu),Fu=(e,t)=>{const r=[Gl(),t.graphicsState&&Hl(t.graphicsState),...t.clipSpaces?xu(t.clipSpaces):[],t.matrix&&El(...t.matrix),ch(),gd(t.color),hh(t.font,t.size),dh(t.lineHeight),t.strokeWidth&&Xl(t.strokeWidth),t.strokeColor&&md(t.strokeColor),t.renderMode&&fh(t.renderMode),gh(Cl(t.rotate),Cl(t.xSkew),Cl(t.ySkew),t.x,t.y)].filter(Boolean);for(let t=0,n=e.length;t<n;t++)r.push(ah(e[t]),sh());return r.push(lh(),Kl()),r},Su=(e,t)=>[Gl(),t.graphicsState&&Hl(t.graphicsState),...t.clipSpaces?xu(t.clipSpaces):[],t.matrix&&El(...t.matrix),Ml(t.x,t.y),ql(Cl(t.rotate)),jl(t.width,t.height),Ul(Cl(t.xSkew),Cl(t.ySkew)),mh(e),Kl()].filter(Boolean),ku=(e,t)=>[Gl(),t.graphicsState&&Hl(t.graphicsState),Ml(t.x,t.y),ql(Cl(t.rotate)),jl(t.xScale,t.yScale),Ul(Cl(t.xSkew),Cl(t.ySkew)),mh(e),Kl()].filter(Boolean),Cu=e=>{var t,r;return[Gl(),e.graphicsState&&Hl(e.graphicsState),...e.clipSpaces?xu(e.clipSpaces):[],e.matrix&&El(...e.matrix),e.color&&md(e.color),Xl(e.thickness),Il(null!==(t=e.dashArray)&&void 0!==t?t:[],null!==(r=e.dashPhase)&&void 0!==r?r:0),Ql(e.start.x,e.start.y),e.lineCap&&Ll(e.lineCap),Ql(e.start.x,e.start.y),_l(e.end.x,e.end.y),eh(),Kl()].filter(Boolean)},Au=(Math.sqrt(2)-1)/3*4,Tu=e=>{const{width:t,height:r,xSkew:n,ySkew:o,rotate:i,matrix:s}=e,a="number"==typeof t?t:t.asNumber(),c="number"==typeof r?r:r.asNumber(),l="number"==typeof e.x?e.x:e.x.asNumber(),h="number"==typeof e.y?e.y:e.y.asNumber(),d=Math.max(0,Math.min(e.rx||0,a/2)),u=Math.max(0,Math.min(e.ry||0,c/2)),f=d>0||u>0?[`M ${d},0`,"H "+(a-d),`C ${a-d*(1-Au)},0 ${a},${u*(1-Au)} ${a},${u}`,"V "+(c-u),`C ${a},${c-u*(1-Au)} ${a-d*(1-Au)},${c} ${a-d},${c}`,`H ${d}`,`C ${d*(1-Au)},${c} 0,${c-u*(1-Au)} 0,${c-u}`,`V ${u}`,`C 0,${u*(1-Au)} ${d*(1-Au)},0 ${d},0`,"Z"].join(" "):`M 0,0 H ${a} V ${c} H 0 Z`;let p=eu(s||$d,ru("translate",[l,-h]));return i&&(p=eu(p,ru("rotate",[-Al(i)]))),n&&(p=eu(p,ru("skewX",[Al(n)]))),o&&(p=eu(p,ru("skewY",[-Al(o)]))),p=eu(p,ru("translateY",[-c])),Ou(f,Object.assign(Object.assign({},e),{x:0,y:0,rotate:Fl(0),scale:1,matrix:p}))},Du=e=>{const t=wl(e.xScale),r=wl(e.yScale),n=wl(e.x),o=wl(e.y),i=(Math.sqrt(2)-1)/3*4,s=t*i,a=r*i,c=[`M 0,${r}`,`C ${s},${r} ${t},${a} ${t},0`,`C ${t},${-a} ${s},${-r} 0,${-r}`,`C ${-s},${-r} ${-t},${-a} ${-t},0`,`C ${-t},${a} ${-s},${r} 0,${r}`,"Z"].join(" ");let l=eu(e.matrix||$d,ru("translate",[n,-o]));return e.rotate&&(l=eu(l,ru("rotate",[-Al(e.rotate)]))),Ou(c,Object.assign(Object.assign({},e),{x:0,y:0,rotate:Fl(0),scale:1,matrix:l}))},Ou=(e,t)=>{var r,n,o;const i=zu(t);return i?[Gl(),t.graphicsState&&Hl(t.graphicsState),...t.clipSpaces?xu(t.clipSpaces):[],t.matrix&&El(...t.matrix),Ml(t.x,t.y),ql(Cl(null!==(r=t.rotate)&&void 0!==r?r:Fl(0))),t.scale?jl(t.scale,-t.scale):jl(1,-1),t.color&&gd(t.color),t.borderColor&&md(t.borderColor),t.borderWidth&&Xl(t.borderWidth),t.borderLineCap&&Ll(t.borderLineCap),Il(null!==(n=t.borderDashArray)&&void 0!==n?n:[],null!==(o=t.borderDashPhase)&&void 0!==o?o:0),...Bd(e),i(),Kl()].filter(Boolean):[]},Bu=e=>{const t=wl(e.size),r=-.25,n=-.49,o=-.675;return[Gl(),e.color&&md(e.color),Xl(e.thickness),Ml(e.x,e.y),Ql(o*t,-.07601036269430045*t),_l(r*t,n*t),_l(.69*t,.475*t),eh(),Kl()].filter(Boolean)},Nu=e=>0===e.rotation?[Ml(0,0),zl(0)]:90===e.rotation?[Ml(e.width,0),zl(90)]:180===e.rotation?[Ml(e.width,e.height),zl(180)]:270===e.rotation?[Ml(0,e.height),zl(270)]:[],Pu=e=>{const t=Tu({x:e.x,y:e.y,width:e.width,height:e.height,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)});if(!e.filled)return t;const r=wl(e.width),n=wl(e.height),o=Math.min(r,n)/2,i=Bu({x:r/2,y:n/2,size:o,thickness:e.thickness,color:e.markColor});return[Gl(),...t,...i,Kl()]},Ru=e=>{const t=wl(e.width),r=wl(e.height),n=Math.min(t,r)/2,o=Du({x:e.x,y:e.y,xScale:n,yScale:n,color:e.color,borderColor:e.borderColor,borderWidth:e.borderWidth});if(!e.filled)return o;const i=Du({x:e.x,y:e.y,xScale:.45*n,yScale:.45*n,color:e.dotColor,borderColor:void 0,borderWidth:0});return[Gl(),...o,...i,Kl()]},Eu=e=>{const t=wl(e.x),r=wl(e.y),n=wl(e.width),o=wl(e.height),i=Tu({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),s=Mu(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)});return[Gl(),...i,...s,Kl()]},Mu=(e,t)=>{const r=[ch(),gd(t.color),hh(t.font,t.size)];for(let n=0,o=e.length;n<o;n++){const{encoded:o,x:i,y:s}=e[n];r.push(gh(Cl(t.rotate),Cl(t.xSkew),Cl(t.ySkew),i,s),ah(o))}return r.push(lh()),r},ju=e=>{const t=wl(e.x),r=wl(e.y),n=wl(e.width),o=wl(e.height),i=wl(e.borderWidth),s=wl(e.padding),a=t+i/2+s,c=r+i/2+s,l=n-2*(i/2+s),h=o-2*(i/2+s),d=[Ql(a,c),_l(a,c+h),_l(a+l,c+h),_l(a+l,c),Jl(),Bl(),ih()],u=Tu({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),f=Mu(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),p=[Sh("Tx"),Gl(),...f,Kl(),kh()];return[Gl(),...u,...d,...p,Kl()]},qu=e=>{const t=wl(e.x),r=wl(e.y),n=wl(e.width),o=wl(e.height),i=wl(e.lineHeight),s=wl(e.borderWidth),a=wl(e.padding),c=t+s/2+a,l=r+s/2+a,h=n-2*(s/2+a),d=o-2*(s/2+a),u=[Ql(c,l),_l(c,l+d),_l(c+h,l+d),_l(c+h,l),Jl(),Bl(),ih()],f=Tu({x:t,y:r,width:n,height:o,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),p=[];for(let t=0,r=e.selectedLines.length;t<r;t++){const r=e.textLines[e.selectedLines[t]];p.push(...Tu({x:r.x-a,y:r.y-(i-r.height)/2,width:n-s,height:r.height+(i-r.height)/2,borderWidth:0,color:e.selectedColor,borderColor:void 0,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}))}const g=Mu(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)}),m=[Sh("Tx"),Gl(),...g,Kl(),kh()];return[Gl(),...f,...p,...u,...m,Kl()]},zu=({color:t,borderWidth:r,borderColor:n,fillRule:o})=>t&&n&&r?oh:t?o===e.FillRule.EvenOdd?nh:rh:n&&r?eh:void 0;class Uu extends Error{constructor(){super("Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.")}}class Iu extends Error{constructor(){super("Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.")}}class Vu extends Error{constructor(){super("A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.")}}class Lu extends Error{constructor(){super("PDFDocument has no pages so `PDFDocument.removePage` cannot be called")}}class Wu extends Error{constructor(e){super(`PDFDocument has no form field with the name "${e}"`)}}class Hu extends Error{constructor(e,t,r){var n,o;super(`Expected field "${e}" to be of type ${null==t?void 0:t.name}, but it is actually of type ${null!==(o=null===(n=null==r?void 0:r.constructor)||void 0===n?void 0:n.name)&&void 0!==o?o:r}`)}}class Gu extends Error{constructor(e){super(`Failed to select check box due to missing onValue: "${e}"`)}}class Ku extends Error{constructor(e){super(`A field already exists with the specified name: "${e}"`)}}class Xu extends Error{constructor(e){super(`Field name contains invalid component: "${e}"`)}}class Zu extends Error{constructor(e){super(`A non-terminal field already exists with the specified name: "${e}"`)}}class Yu extends Error{constructor(e){super(`Reading rich text fields is not supported: Attempted to read rich text field: ${e}`)}}class Ju extends Error{constructor(e,t){super(`Failed to layout combed text as lineLength=${e} is greater than cellCount=${t}`)}}class Qu extends Error{constructor(e,t,r){super(`Attempted to set text with length=${e} for TextField with maxLength=${t} and name=${r}`)}}class _u extends Error{constructor(e,t,r){super(`Attempted to set maxLength=${t}, which is less than ${e}, the length of this field's current value (name=${r})`)}}var $u;e.TextAlignment=void 0,($u=e.TextAlignment||(e.TextAlignment={}))[$u.Left=0]="Left",$u[$u.Center=1]="Center",$u[$u.Right=2]="Right";const ef=(e,t,r,n=!1)=>{let o=4;for(;o<500;){let i=0;for(let n=0,s=e.length;n<s;n++){i+=1;const s=e[n].split(" ");let a=r.width;for(let e=0,n=s.length;e<n;e++){const c=e===n-1?s[e]:s[e]+" ",l=t.widthOfTextAtSize(c,o);a-=l,a<=0&&(i+=1,a=r.width-l)}}if(!n&&i>e.length)return o-1;const s=t.heightAtSize(o);if((s+.2*s)*i>Math.abs(r.height))return o-1;o+=1}return o},tf=e=>{for(let t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},rf=(e,t,r,n)=>{var o;let i=e.length;for(;i>0;){const s=e.substring(0,i),a=r.encodeText(s),c=r.widthOfTextAtSize(s,n);if(c<t){return{line:s,encoded:a,width:c,remainder:e.substring(i)||void 0}}i=null!==(o=tf(s))&&void 0!==o?o:0}return{line:e,encoded:r.encodeText(e),width:r.widthOfTextAtSize(e,n),remainder:void 0}},nf=(t,{alignment:r,fontSize:n,font:o,bounds:i})=>{const s=w(b(t));void 0!==n&&0!==n||(n=ef(s,o,i,!0));const a=o.heightAtSize(n),c=a+.2*a,l=[];let h=i.x,d=i.y,u=i.x+i.width,f=i.y+i.height,p=i.y+i.height;for(let t=0,g=s.length;t<g;t++){let g=s[t];for(;void 0!==g;){const{line:t,encoded:s,width:m,remainder:b}=rf(g,i.width,o,n),y=r===e.TextAlignment.Left?i.x:r===e.TextAlignment.Center?i.x+i.width/2-m/2:r===e.TextAlignment.Right?i.x+i.width-m:i.x;p-=c,y<h&&(h=y),p<d&&(d=p),y+m>u&&(u=y+m),p+a>f&&(f=p+a),l.push({text:t,encoded:s,width:m,height:a,x:y,y:p}),g=null==b?void 0:b.trim()}}return{fontSize:n,lineHeight:c,lines:l,bounds:{x:h,y:d,width:u-h,height:f-d}}},of=(e,{fontSize:t,font:r,bounds:n,cellCount:o})=>{const i=x(b(e));if(i.length>o)throw new Ju(i.length,o);void 0!==t&&0!==t||(t=((e,t,r,n)=>{const o=r.width/n,i=r.height;let s=4;const a=S(e);for(;s<500;){for(let e=0,r=a.length;e<r;e++){const r=a[e];if(t.widthOfTextAtSize(r,s)>.75*o)return s-1}if(t.heightAtSize(s,{descender:!1})>i)return s-1;s+=1}return s})(i,r,n,o));const s=n.width/o,a=r.heightAtSize(t,{descender:!1}),c=n.y+(n.height/2-a/2),l=[];let h=n.x,d=n.y,u=n.x+n.width,f=n.y+n.height,p=0,g=0;for(;p<o;){const[e,o]=F(i,g),m=r.encodeText(e),b=r.widthOfTextAtSize(e,t),y=n.x+(s*p+s/2)-b/2;y<h&&(h=y),c<d&&(d=c),y+b>u&&(u=y+b),c+a>f&&(f=c+a),l.push({text:i,encoded:m,width:b,height:a,x:y,y:c}),p+=1,g+=o}return{fontSize:t,cells:l,bounds:{x:h,y:d,width:u-h,height:f-d}}},sf=(t,{alignment:r,fontSize:n,font:o,bounds:i})=>{const s=x(b(t));void 0!==n&&0!==n||(n=ef([s],o,i));const a=o.encodeText(s),c=o.widthOfTextAtSize(s,n),l=o.heightAtSize(n,{descender:!1}),h=r===e.TextAlignment.Left?i.x:r===e.TextAlignment.Center?i.x+i.width/2-c/2:r===e.TextAlignment.Right?i.x+i.width-c:i.x,d=i.y+(i.height/2-l/2);return{fontSize:n,line:{text:s,encoded:a,width:c,height:l,x:h,y:d},bounds:{x:h,y:d,width:c,height:l}}},af=e=>"normal"in e?e:{normal:e},cf=/\/([^\0\t\n\f\r ]+)[\0\t\n\f\r ]+(\d*\.\d+|\d+)[\0\t\n\f\r ]+Tf/,lf=e=>{var t,r;const n=null!==(t=e.getDefaultAppearance())&&void 0!==t?t:"",o=null!==(r=T(n,cf).match)&&void 0!==r?r:[],i=Number(o[2]);return isFinite(i)?i:void 0},hf=/(\d*\.\d+|\d+)[\0\t\n\f\r ]*(\d*\.\d+|\d+)?[\0\t\n\f\r ]*(\d*\.\d+|\d+)?[\0\t\n\f\r ]*(\d*\.\d+|\d+)?[\0\t\n\f\r ]+(g|rg|k)/,df=e=>{var t;const r=null!==(t=e.getDefaultAppearance())&&void 0!==t?t:"",n=T(r,hf).match,[,o,i,s,a,c]=null!=n?n:[];return"g"===c&&o?dd(Number(o)):"rg"===c&&o&&i&&s?ud(Number(o),Number(i),Number(s)):"k"===c&&o&&i&&s&&a?fd(Number(o),Number(i),Number(s),Number(a)):void 0},uf=(e,t,r,n=0)=>{var o;const i=[gd(t).toString(),hh(null!==(o=null==r?void 0:r.name)&&void 0!==o?o:"dummy__noop",n).toString()].join("\n");e.setDefaultAppearance(i)},ff=(e,t)=>{var r,n,o;const i=df(t),s=df(e.acroField),a=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Tl(null==c?void 0:c.getRotation()),{width:u,height:f}=Dl(a,d),p=Nu(Object.assign(Object.assign({},a),{rotation:d})),g=ud(0,0,0),m=null!==(n=bd(null==c?void 0:c.getBorderColor()))&&void 0!==n?n:g,b=bd(null==c?void 0:c.getBackgroundColor()),y=bd(null==c?void 0:c.getBackgroundColor(),.8),v=null!==(o=null!=i?i:s)&&void 0!==o?o:g;uf(i?t:e.acroField,v);const w={x:0+h/2,y:0+h/2,width:u-h,height:f-h,thickness:1.5,borderWidth:h,borderColor:m,markColor:v};return{normal:{on:[...p,...Pu(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Pu(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Pu(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Pu(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},pf=(e,t)=>{var r,n,o;const i=df(t),s=df(e.acroField),a=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Tl(null==c?void 0:c.getRotation()),{width:u,height:f}=Dl(a,d),p=Nu(Object.assign(Object.assign({},a),{rotation:d})),g=ud(0,0,0),m=null!==(n=bd(null==c?void 0:c.getBorderColor()))&&void 0!==n?n:g,b=bd(null==c?void 0:c.getBackgroundColor()),y=bd(null==c?void 0:c.getBackgroundColor(),.8),v=null!==(o=null!=i?i:s)&&void 0!==o?o:g;uf(i?t:e.acroField,v);const w={x:u/2,y:f/2,width:u-h,height:f-h,borderWidth:h,borderColor:m,dotColor:v};return{normal:{on:[...p,...Ru(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Ru(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Ru(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Ru(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},gf=(t,r,n)=>{var o,i,s,a,c;const l=df(r),h=df(t.acroField),d=lf(r),u=lf(t.acroField),f=r.getRectangle(),p=r.getAppearanceCharacteristics(),g=r.getBorderStyle(),m=null==p?void 0:p.getCaptions(),b=null!==(o=null==m?void 0:m.normal)&&void 0!==o?o:"",y=null!==(s=null!==(i=null==m?void 0:m.down)&&void 0!==i?i:b)&&void 0!==s?s:"",v=null!==(a=null==g?void 0:g.getWidth())&&void 0!==a?a:0,w=Tl(null==p?void 0:p.getRotation()),{width:x,height:F}=Dl(f,w),S=Nu(Object.assign(Object.assign({},f),{rotation:w})),k=ud(0,0,0),C=bd(null==p?void 0:p.getBorderColor()),A=bd(null==p?void 0:p.getBackgroundColor()),T=bd(null==p?void 0:p.getBackgroundColor(),.8),D={x:v,y:v,width:x-2*v,height:F-2*v},O=sf(b,{alignment:e.TextAlignment.Center,fontSize:null!=d?d:u,font:n,bounds:D}),B=sf(y,{alignment:e.TextAlignment.Center,fontSize:null!=d?d:u,font:n,bounds:D}),N=Math.min(O.fontSize,B.fontSize),P=null!==(c=null!=l?l:h)&&void 0!==c?c:k;uf(l||void 0!==d?r:t.acroField,P,n,N);const R={x:0+v/2,y:0+v/2,width:x-v,height:F-v,borderWidth:v,borderColor:C,textColor:P,font:n.name,fontSize:N};return{normal:[...S,...Eu(Object.assign(Object.assign({},R),{color:A,textLines:[O.line]}))],down:[...S,...Eu(Object.assign(Object.assign({},R),{color:T,textLines:[B.line]}))]}},mf=(e,t,r)=>{var n,o,i,s;const a=df(t),c=df(e.acroField),l=lf(t),h=lf(e.acroField),d=t.getRectangle(),u=t.getAppearanceCharacteristics(),f=t.getBorderStyle(),p=null!==(n=e.getText())&&void 0!==n?n:"",g=null!==(o=null==f?void 0:f.getWidth())&&void 0!==o?o:0,m=Tl(null==u?void 0:u.getRotation()),{width:b,height:y}=Dl(d,m),v=Nu(Object.assign(Object.assign({},d),{rotation:m})),w=ud(0,0,0),x=bd(null==u?void 0:u.getBorderColor()),F=bd(null==u?void 0:u.getBackgroundColor());let S,k;const C=e.isCombed()?0:1,A={x:g+C,y:g+C,width:b-2*(g+C),height:y-2*(g+C)};if(e.isMultiline()){const t=nf(p,{alignment:e.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=t.lines,k=t.fontSize}else if(e.isCombed()){const t=of(p,{fontSize:null!=l?l:h,font:r,bounds:A,cellCount:null!==(i=e.getMaxLength())&&void 0!==i?i:0});S=t.cells,k=t.fontSize}else{const t=sf(p,{alignment:e.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=[t.line],k=t.fontSize}const T=null!==(s=null!=a?a:c)&&void 0!==s?s:w;uf(a||void 0!==l?t:e.acroField,T,r,k);const D={x:0+g/2,y:0+g/2,width:b-g,height:y-g,borderWidth:null!=g?g:0,borderColor:x,textColor:T,font:r.name,fontSize:k,color:F,textLines:S,padding:C};return[...v,...ju(D)]},bf=(t,r,n)=>{var o,i,s;const a=df(r),c=df(t.acroField),l=lf(r),h=lf(t.acroField),d=r.getRectangle(),u=r.getAppearanceCharacteristics(),f=r.getBorderStyle(),p=null!==(o=t.getSelected()[0])&&void 0!==o?o:"",g=null!==(i=null==f?void 0:f.getWidth())&&void 0!==i?i:0,m=Tl(null==u?void 0:u.getRotation()),{width:b,height:y}=Dl(d,m),v=Nu(Object.assign(Object.assign({},d),{rotation:m})),w=ud(0,0,0),x=bd(null==u?void 0:u.getBorderColor()),F=bd(null==u?void 0:u.getBackgroundColor()),S={x:g+1,y:g+1,width:b-2*(g+1),height:y-2*(g+1)},{line:k,fontSize:C}=sf(p,{alignment:e.TextAlignment.Left,fontSize:null!=l?l:h,font:n,bounds:S}),A=null!==(s=null!=a?a:c)&&void 0!==s?s:w;uf(a||void 0!==l?r:t.acroField,A,n,C);const T={x:0+g/2,y:0+g/2,width:b-g,height:y-g,borderWidth:null!=g?g:0,borderColor:x,textColor:A,font:n.name,fontSize:C,color:F,textLines:[k],padding:1};return[...v,...ju(T)]},yf=(t,r,n)=>{var o,i;const s=df(r),a=df(t.acroField),c=lf(r),l=lf(t.acroField),h=r.getRectangle(),d=r.getAppearanceCharacteristics(),u=r.getBorderStyle(),f=null!==(o=null==u?void 0:u.getWidth())&&void 0!==o?o:0,p=Tl(null==d?void 0:d.getRotation()),{width:g,height:m}=Dl(h,p),b=Nu(Object.assign(Object.assign({},h),{rotation:p})),y=ud(0,0,0),v=bd(null==d?void 0:d.getBorderColor()),w=bd(null==d?void 0:d.getBackgroundColor()),x=t.getOptions(),F=t.getSelected();t.isSorted()&&x.sort();let S="";for(let e=0,t=x.length;e<t;e++)S+=x[e],e<t-1&&(S+="\n");const k={x:f+1,y:f+1,width:g-2*(f+1),height:m-2*(f+1)},{lines:C,fontSize:A,lineHeight:T}=nf(S,{alignment:e.TextAlignment.Left,fontSize:null!=c?c:l,font:n,bounds:k}),D=[];for(let e=0,t=C.length;e<t;e++){const t=C[e];F.includes(t.text)&&D.push(e)}const O=ud(.6,193/255,218/255),B=null!==(i=null!=s?s:a)&&void 0!==i?i:y;return uf(s||void 0!==c?r:t.acroField,B,n,A),[...b,...qu({x:0+f/2,y:0+f/2,width:g-f,height:m-f,borderWidth:null!=f?f:0,borderColor:v,textColor:B,font:n.name,fontSize:A,color:w,textLines:C,lineHeight:T,selectedColor:O,selectedLines:D,padding:1})]};class vf{constructor(e,t,r){this.alreadyEmbedded=!1,Xn(e,"ref",[[ei,"PDFRef"]]),Xn(t,"doc",[[tp,"PDFDocument"]]),Xn(r,"embedder",[[Zs,"PDFPageEmbedder"]]),this.ref=e,this.doc=t,this.width=r.width,this.height=r.height,this.embedder=r}scale(e){return Xn(e,"factor",["number"]),{width:this.width*e,height:this.height*e}}size(){return this.scale(1)}embed(){return ui(this,void 0,void 0,(function*(){this.alreadyEmbedded||(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.alreadyEmbedded=!0)}))}}vf.of=(e,t,r)=>new vf(e,t,r);class wf{constructor(e,t,r){this.modified=!0,Xn(e,"ref",[[ei,"PDFRef"]]),Xn(t,"doc",[[tp,"PDFDocument"]]),Xn(r,"embedder",[[bs,"CustomFontEmbedder"],[ds,"StandardFontEmbedder"]]),this.ref=e,this.doc=t,this.name=r.fontName,this.embedder=r}encodeText(e){return Xn(e,"text",["string"]),this.modified=!0,this.embedder.encodeText(e)}widthOfTextAtSize(e,t){return Xn(e,"text",["string"]),Xn(t,"size",["number"]),this.embedder.widthOfTextAtSize(e,t)}heightAtSize(e,t){var r;return Xn(e,"size",["number"]),Zn(null==t?void 0:t.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(e,{descender:null===(r=null==t?void 0:t.descender)||void 0===r||r})}sizeAtHeight(e){return Xn(e,"height",["number"]),this.embedder.sizeOfFontAtHeight(e)}getCharacterSet(){return this.embedder instanceof ds?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet}embed(){return ui(this,void 0,void 0,(function*(){this.modified&&(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.modified=!1)}))}}wf.of=(e,t,r)=>new wf(e,t,r);class xf{constructor(e,t,r){Xn(e,"ref",[[ei,"PDFRef"]]),Xn(t,"doc",[[tp,"PDFDocument"]]),Xn(r,"embedder",[[ks,"JpegEmbedder"],[Ns,"PngEmbedder"]]),this.ref=e,this.doc=t,this.width=r.width,this.height=r.height,this.embedder=r}scale(e){return Xn(e,"factor",["number"]),{width:this.width*e,height:this.height*e}}scaleToFit(e,t){Xn(e,"width",["number"]),Xn(t,"height",["number"]);const r=e/this.width,n=t/this.height,o=Math.min(r,n);return this.scale(o)}size(){return this.scale(1)}embed(){return ui(this,void 0,void 0,(function*(){if(this.embedder){if(!this.embedTask){const{doc:e,ref:t}=this;this.embedTask=this.embedder.embedIntoContext(e.context,t)}yield this.embedTask,this.embedder=void 0}}))}}var Ff;xf.of=(e,t,r)=>new xf(e,t,r),e.ImageAlignment=void 0,(Ff=e.ImageAlignment||(e.ImageAlignment={}))[Ff.Left=0]="Left",Ff[Ff.Center=1]="Center",Ff[Ff.Right=2]="Right";const Sf=e=>{Zn(null==e?void 0:e.x,"options.x",["number"]),Zn(null==e?void 0:e.y,"options.y",["number"]),Zn(null==e?void 0:e.width,"options.width",["number"]),Zn(null==e?void 0:e.height,"options.height",["number"]),Zn(null==e?void 0:e.textColor,"options.textColor",[[Object,"Color"]]),Zn(null==e?void 0:e.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Zn(null==e?void 0:e.borderColor,"options.borderColor",[[Object,"Color"]]),Zn(null==e?void 0:e.borderWidth,"options.borderWidth",["number"]),Zn(null==e?void 0:e.rotate,"options.rotate",[[Object,"Rotation"]])};class kf{constructor(e,t,r){Xn(e,"acroField",[[Bi,"PDFAcroTerminal"]]),Xn(t,"ref",[[ei,"PDFRef"]]),Xn(r,"doc",[[tp,"PDFDocument"]]),this.acroField=e,this.ref=t,this.doc=r}getName(){var e;return null!==(e=this.acroField.getFullyQualifiedName())&&void 0!==e?e:""}isReadOnly(){return this.acroField.hasFlag(e.AcroFieldFlags.ReadOnly)}enableReadOnly(){this.acroField.setFlagTo(e.AcroFieldFlags.ReadOnly,!0)}disableReadOnly(){this.acroField.setFlagTo(e.AcroFieldFlags.ReadOnly,!1)}isRequired(){return this.acroField.hasFlag(e.AcroFieldFlags.Required)}enableRequired(){this.acroField.setFlagTo(e.AcroFieldFlags.Required,!0)}disableRequired(){this.acroField.setFlagTo(e.AcroFieldFlags.Required,!1)}isExported(){return!this.acroField.hasFlag(e.AcroFieldFlags.NoExport)}enableExporting(){this.acroField.setFlagTo(e.AcroFieldFlags.NoExport,!1)}disableExporting(){this.acroField.setFlagTo(e.AcroFieldFlags.NoExport,!0)}needsAppearancesUpdate(){throw new oo(this.constructor.name,"needsAppearancesUpdate")}defaultUpdateAppearances(e){throw new oo(this.constructor.name,"defaultUpdateAppearances")}markAsDirty(){this.doc.getForm().markFieldAsDirty(this.ref)}markAsClean(){this.doc.getForm().markFieldAsClean(this.ref)}isDirty(){return this.doc.getForm().fieldIsDirty(this.ref)}createWidget(t){var r;const n=t.textColor,o=t.backgroundColor,i=t.borderColor,s=t.borderWidth,a=Al(t.rotate),c=t.caption,l=t.x,h=t.y,d=t.width+s,u=t.height+s,f=Boolean(t.hidden),p=t.page;_n(a,"degreesAngle",90);const g=Oi.create(this.doc.context,this.ref),m=Ol({x:l,y:h,width:d,height:u},s,a);g.setRectangle(m),p&&g.setP(p);const b=g.getOrCreateAppearanceCharacteristics();o&&b.setBackgroundColor(yd(o)),b.setRotation(a),c&&b.setCaptions({normal:c}),i&&b.setBorderColor(yd(i));const y=g.getOrCreateBorderStyle();if(void 0!==s&&y.setWidth(s),g.setFlagTo(e.AnnotationFlags.Print,!0),g.setFlagTo(e.AnnotationFlags.Hidden,f),g.setFlagTo(e.AnnotationFlags.Invisible,!1),n){const e=(null!==(r=this.acroField.getDefaultAppearance())&&void 0!==r?r:"")+"\n"+gd(n).toString();this.acroField.setDefaultAppearance(e)}return g}updateWidgetAppearanceWithFont(e,t,{normal:r,rollover:n,down:o}){this.updateWidgetAppearances(e,{normal:this.createAppearanceStream(e,r,t),rollover:n&&this.createAppearanceStream(e,n,t),down:o&&this.createAppearanceStream(e,o,t)})}updateOnOffWidgetAppearance(e,t,{normal:r,rollover:n,down:o}){this.updateWidgetAppearances(e,{normal:this.createAppearanceDict(e,r,t),rollover:n&&this.createAppearanceDict(e,n,t),down:o&&this.createAppearanceDict(e,o,t)})}updateWidgetAppearances(e,{normal:t,rollover:r,down:n}){e.setNormalAppearance(t),r?e.setRolloverAppearance(r):e.removeRolloverAppearance(),n?e.setDownAppearance(n):e.removeDownAppearance()}createAppearanceStream(e,t,r){const{context:n}=this.acroField.dict,{width:o,height:i}=e.getRectangle(),s=r&&{Font:{[r.name]:r.ref}},a=n.formXObject(t,{Resources:s,BBox:n.obj([0,0,o,i]),Matrix:n.obj([1,0,0,1,0,0])});return n.register(a)}createImageAppearanceStream(t,r,n){var o;const{context:i}=this.acroField.dict,s=t.getRectangle(),a=t.getAppearanceCharacteristics(),c=t.getBorderStyle(),l=null!==(o=null==c?void 0:c.getWidth())&&void 0!==o?o:0,h=Tl(null==a?void 0:a.getRotation()),d=Nu(Object.assign(Object.assign({},s),{rotation:h})),u=Dl(s,h),f=r.scaleToFit(u.width-2*l,u.height-2*l),p={x:l,y:l,width:f.width,height:f.height,rotate:Fl(0),xSkew:Fl(0),ySkew:Fl(0)};n===e.ImageAlignment.Center?(p.x+=(u.width-2*l)/2-f.width/2,p.y+=(u.height-2*l)/2-f.height/2):n===e.ImageAlignment.Right&&(p.x=u.width-l-f.width,p.y=u.height-l-f.height);const g=this.doc.context.addRandomSuffix("Image",10),m=[...d,...Su(g,p)],b={XObject:{[g]:r.ref}},y=i.formXObject(m,{Resources:b,BBox:i.obj([0,0,s.width,s.height]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(y)}createAppearanceDict(e,t,r){const{context:n}=this.acroField.dict,o=this.createAppearanceStream(e,t.on),i=this.createAppearanceStream(e,t.off),s=n.obj({});return s.set(r,o),s.set(Ko.of("Off"),i),s}}class Cf extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroCheckBox",[[Pi,"PDFAcroCheckBox"]]),this.acroField=e}check(){var e;const t=null!==(e=this.acroField.getOnValue())&&void 0!==e?e:Ko.of("Yes");this.markAsDirty(),this.acroField.setValue(t)}uncheck(){this.markAsDirty(),this.acroField.setValue(Ko.of("Off"))}isChecked(){const e=this.acroField.getOnValue();return!!e&&e===this.acroField.getValue()}addToPage(e,t){var r,n,o,i,s,a;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const c=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:50,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),l=this.doc.context.register(c.dict);this.acroField.addWidget(l),c.setAppearanceState(Ko.of("Off")),this.updateWidgetAppearance(c,Ko.of("Yes")),e.node.addAnnot(l)}needsAppearancesUpdate(){var e;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.getAppearanceState(),i=null===(e=n.getAppearances())||void 0===e?void 0:e.normal;if(!(i instanceof Zo))return!0;if(o&&!i.has(o))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(e){var t;Zn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n],i=null!==(t=o.getOnValue())&&void 0!==t?t:Ko.of("Yes");i&&this.updateWidgetAppearance(o,i,e)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:ff)(this,e));this.updateOnOffWidgetAppearance(e,t,n)}}Cf.of=(e,t,r)=>new Cf(e,t,r);class Af extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroComboBox",[[Ui,"PDFAcroComboBox"]]),this.acroField=e}getOptions(){const e=this.acroField.getOptions(),t=new Array(e.length);for(let r=0,n=t.length;r<n;r++){const{display:n,value:o}=e[r];t[r]=(null!=n?n:o).decodeText()}return t}getSelected(){const e=this.acroField.getValues(),t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}setOptions(e){Xn(e,"options",[Array]);const t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]={value:Yo.fromText(e[r])};this.acroField.setOptions(t)}addOptions(e){Xn(e,"options",["string",Array]);const t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]={value:Yo.fromText(t[e])};this.acroField.setOptions(r.concat(n))}select(e,t=!1){Xn(e,"options",["string",Array]),Xn(t,"merge",["boolean"]);const r=Array.isArray(e)?e:[e],n=this.getOptions();r.find((e=>!n.includes(e)))&&this.enableEditing(),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();const o=new Array(r.length);for(let e=0,t=r.length;e<t;e++)o[e]=Yo.fromText(r[e]);if(t){const e=this.acroField.getValues();this.acroField.setValues(e.concat(o))}else this.acroField.setValues(o)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}isEditable(){return this.acroField.hasFlag(e.AcroChoiceFlags.Edit)}enableEditing(){this.acroField.setFlagTo(e.AcroChoiceFlags.Edit,!0)}disableEditing(){this.acroField.setFlagTo(e.AcroChoiceFlags.Edit,!1)}isSorted(){return this.acroField.hasFlag(e.AcroChoiceFlags.Sort)}enableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!0)}disableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(e.AcroChoiceFlags.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(e.AcroChoiceFlags.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(e.AcroChoiceFlags.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(e.AcroChoiceFlags.DoNotSpellCheck,!0)}isSelectOnClick(){return this.acroField.hasFlag(e.AcroChoiceFlags.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!1)}addToPage(e,t){var r,n,o,i,s,a,c;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=t.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),e.node.addAnnot(h)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:bf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}Af.of=(e,t,r)=>new Af(e,t,r);class Tf extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroListBox",[[Gi,"PDFAcroListBox"]]),this.acroField=e}getOptions(){const e=this.acroField.getOptions(),t=new Array(e.length);for(let r=0,n=t.length;r<n;r++){const{display:n,value:o}=e[r];t[r]=(null!=n?n:o).decodeText()}return t}getSelected(){const e=this.acroField.getValues(),t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}setOptions(e){Xn(e,"options",[Array]),this.markAsDirty();const t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]={value:Yo.fromText(e[r])};this.acroField.setOptions(t)}addOptions(e){Xn(e,"options",["string",Array]),this.markAsDirty();const t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),n=new Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]={value:Yo.fromText(t[e])};this.acroField.setOptions(r.concat(n))}select(e,t=!1){Xn(e,"options",["string",Array]),Xn(t,"merge",["boolean"]);const r=Array.isArray(e)?e:[e],n=this.getOptions();Wn(r,"option",n),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();const o=new Array(r.length);for(let e=0,t=r.length;e<t;e++)o[e]=Yo.fromText(r[e]);if(t){const e=this.acroField.getValues();this.acroField.setValues(e.concat(o))}else this.acroField.setValues(o)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}isSorted(){return this.acroField.hasFlag(e.AcroChoiceFlags.Sort)}enableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!0)}disableSorting(){this.acroField.setFlagTo(e.AcroChoiceFlags.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(e.AcroChoiceFlags.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(e.AcroChoiceFlags.MultiSelect,!1)}isSelectOnClick(){return this.acroField.hasFlag(e.AcroChoiceFlags.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(e.AcroChoiceFlags.CommitOnSelChange,!1)}addToPage(e,t){var r,n,o,i,s,a,c;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:100,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=t.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),e.node.addAnnot(h)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:yf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}Tf.of=(e,t,r)=>new Tf(e,t,r);class Df extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroRadioButton",[[Hi,"PDFAcroRadioButton"]]),this.acroField=e}getOptions(){const e=this.acroField.getExportValues();if(e){const t=new Array(e.length);for(let r=0,n=e.length;r<n;r++)t[r]=e[r].decodeText();return t}const t=this.acroField.getOnValues(),r=new Array(t.length);for(let e=0,n=r.length;e<n;e++)r[e]=t[e].decodeText();return r}getSelected(){const e=this.acroField.getValue();if(e===Ko.of("Off"))return;const t=this.acroField.getExportValues();if(t){const r=this.acroField.getOnValues();for(let n=0,o=r.length;n<o;n++)if(r[n]===e)return t[n].decodeText()}return e.decodeText()}select(e){Xn(e,"option",["string"]);const t=this.getOptions();Vn(e,"option",t),this.markAsDirty();const r=this.acroField.getOnValues(),n=this.acroField.getExportValues();if(n)for(let t=0,o=n.length;t<o;t++)n[t].decodeText()===e&&this.acroField.setValue(r[t]);else for(let t=0,n=r.length;t<n;t++){const n=r[t];n.decodeText()===e&&this.acroField.setValue(n)}}clear(){this.markAsDirty(),this.acroField.setValue(Ko.of("Off"))}isOffToggleable(){return!this.acroField.hasFlag(e.AcroButtonFlags.NoToggleToOff)}enableOffToggling(){this.acroField.setFlagTo(e.AcroButtonFlags.NoToggleToOff,!1)}disableOffToggling(){this.acroField.setFlagTo(e.AcroButtonFlags.NoToggleToOff,!0)}isMutuallyExclusive(){return!this.acroField.hasFlag(e.AcroButtonFlags.RadiosInUnison)}enableMutualExclusion(){this.acroField.setFlagTo(e.AcroButtonFlags.RadiosInUnison,!1)}disableMutualExclusion(){this.acroField.setFlagTo(e.AcroButtonFlags.RadiosInUnison,!0)}addOptionToPage(e,t,r){var n,o,i,s,a,c,l,h,d;Xn(e,"option",["string"]),Xn(t,"page",[[np,"PDFPage"]]),Sf(r);const u=this.createWidget({x:null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null==r?void 0:r.y)&&void 0!==o?o:0,width:null!==(i=null==r?void 0:r.width)&&void 0!==i?i:50,height:null!==(s=null==r?void 0:r.height)&&void 0!==s?s:50,textColor:null!==(a=null==r?void 0:r.textColor)&&void 0!==a?a:ud(0,0,0),backgroundColor:null!==(c=null==r?void 0:r.backgroundColor)&&void 0!==c?c:ud(1,1,1),borderColor:null!==(l=null==r?void 0:r.borderColor)&&void 0!==l?l:ud(0,0,0),borderWidth:null!==(h=null==r?void 0:r.borderWidth)&&void 0!==h?h:1,rotate:null!==(d=null==r?void 0:r.rotate)&&void 0!==d?d:Fl(0),hidden:null==r?void 0:r.hidden,page:t.ref}),f=this.doc.context.register(u.dict),p=this.acroField.addWidgetWithOpt(f,Yo.fromText(e),!this.isMutuallyExclusive());u.setAppearanceState(Ko.of("Off")),this.updateWidgetAppearance(u,p),t.node.addAnnot(f)}needsAppearancesUpdate(){var e;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.getAppearanceState(),i=null===(e=n.getAppearances())||void 0===e?void 0:e.normal;if(!(i instanceof Zo))return!0;if(o&&!i.has(o))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(e){Zn(e,"provider",[Function]);const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.getOnValue();o&&this.updateWidgetAppearance(n,o,e)}}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:pf)(this,e));this.updateOnOffWidgetAppearance(e,t,n)}}Df.of=(e,t,r)=>new Df(e,t,r);class Of extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroSignature",[[Vi,"PDFAcroSignature"]]),this.acroField=e}needsAppearancesUpdate(){return!1}}Of.of=(e,t,r)=>new Of(e,t,r);class Bf extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroText",[[Li,"PDFAcroText"]]),this.acroField=e}getText(){const e=this.acroField.getValue();if(!e&&this.isRichFormatted())throw new Yu(this.getName());return null==e?void 0:e.decodeText()}setText(e){Zn(e,"text",["string"]);const t=this.getMaxLength();if(void 0!==t&&e&&e.length>t)throw new Qu(e.length,t,this.getName());this.markAsDirty(),this.disableRichFormatting(),e?this.acroField.setValue(Yo.fromText(e)):this.acroField.removeValue()}getAlignment(){const t=this.acroField.getQuadding();return 0===t?e.TextAlignment.Left:1===t?e.TextAlignment.Center:2===t?e.TextAlignment.Right:e.TextAlignment.Left}setAlignment(t){Vn(t,"alignment",e.TextAlignment),this.markAsDirty(),this.acroField.setQuadding(t)}getMaxLength(){return this.acroField.getMaxLength()}setMaxLength(e){if(Qn(e,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===e)this.acroField.removeMaxLength();else{const t=this.getText();if(t&&t.length>e)throw new _u(t.length,e,this.getName());this.acroField.setMaxLength(e)}}removeMaxLength(){this.markAsDirty(),this.acroField.removeMaxLength()}setImage(t){const r=this.getAlignment(),n=r===e.TextAlignment.Center?e.ImageAlignment.Center:r===e.TextAlignment.Right?e.ImageAlignment.Right:e.ImageAlignment.Left,o=this.acroField.getWidgets();for(let e=0,r=o.length;e<r;e++){const r=o[e],i=this.createImageAppearanceStream(r,t,n);this.updateWidgetAppearances(r,{normal:i})}this.markAsClean()}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}isMultiline(){return this.acroField.hasFlag(e.AcroTextFlags.Multiline)}enableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(e.AcroTextFlags.Multiline,!0)}disableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(e.AcroTextFlags.Multiline,!1)}isPassword(){return this.acroField.hasFlag(e.AcroTextFlags.Password)}enablePassword(){this.acroField.setFlagTo(e.AcroTextFlags.Password,!0)}disablePassword(){this.acroField.setFlagTo(e.AcroTextFlags.Password,!1)}isFileSelector(){return this.acroField.hasFlag(e.AcroTextFlags.FileSelect)}enableFileSelection(){this.acroField.setFlagTo(e.AcroTextFlags.FileSelect,!0)}disableFileSelection(){this.acroField.setFlagTo(e.AcroTextFlags.FileSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(e.AcroTextFlags.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotSpellCheck,!0)}isScrollable(){return!this.acroField.hasFlag(e.AcroTextFlags.DoNotScroll)}enableScrolling(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotScroll,!1)}disableScrolling(){this.acroField.setFlagTo(e.AcroTextFlags.DoNotScroll,!0)}isCombed(){return this.acroField.hasFlag(e.AcroTextFlags.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()}enableCombing(){if(void 0===this.getMaxLength()){const e="PDFTextFields must have a max length in order to be combed";console.warn(e)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(e.AcroTextFlags.Comb,!0)}disableCombing(){this.markAsDirty(),this.acroField.setFlagTo(e.AcroTextFlags.Comb,!1)}isRichFormatted(){return this.acroField.hasFlag(e.AcroTextFlags.RichText)}enableRichFormatting(){this.acroField.setFlagTo(e.AcroTextFlags.RichText,!0)}disableRichFormatting(){this.acroField.setFlagTo(e.AcroTextFlags.RichText,!1)}addToPage(e,t){var r,n,o,i,s,a,c;Xn(e,"page",[[np,"PDFPage"]]),Sf(t),t||(t={}),"textColor"in t||(t.textColor=ud(0,0,0)),"backgroundColor"in t||(t.backgroundColor=ud(1,1,1)),"borderColor"in t||(t.borderColor=ud(0,0,0)),"borderWidth"in t||(t.borderWidth=1);const l=this.createWidget({x:null!==(r=t.x)&&void 0!==r?r:0,y:null!==(n=t.y)&&void 0!==n?n:0,width:null!==(o=t.width)&&void 0!==o?o:200,height:null!==(i=t.height)&&void 0!==i?i:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(s=t.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=t.rotate)&&void 0!==a?a:Fl(0),hidden:t.hidden,page:e.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=t.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),e.node.addAnnot(h)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}this.markAsClean()}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:mf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}var Nf;Bf.of=(e,t,r)=>new Bf(e,t,r),e.StandardFonts=void 0,(Nf=e.StandardFonts||(e.StandardFonts={})).Courier="Courier",Nf.CourierBold="Courier-Bold",Nf.CourierOblique="Courier-Oblique",Nf.CourierBoldOblique="Courier-BoldOblique",Nf.Helvetica="Helvetica",Nf.HelveticaBold="Helvetica-Bold",Nf.HelveticaOblique="Helvetica-Oblique",Nf.HelveticaBoldOblique="Helvetica-BoldOblique",Nf.TimesRoman="Times-Roman",Nf.TimesRomanBold="Times-Bold",Nf.TimesRomanItalic="Times-Italic",Nf.TimesRomanBoldItalic="Times-BoldItalic",Nf.Symbol="Symbol",Nf.ZapfDingbats="ZapfDingbats";class Pf{constructor(t,r){this.embedDefaultFont=()=>this.doc.embedStandardFont(e.StandardFonts.Helvetica),Xn(t,"acroForm",[[ts,"PDFAcroForm"]]),Xn(r,"doc",[[tp,"PDFDocument"]]),this.acroForm=t,this.doc=r,this.dirtyFields=new Set,this.defaultFontCache=no.populatedBy(this.embedDefaultFont)}hasXFA(){return this.acroForm.dict.has(Ko.of("XFA"))}deleteXFA(){this.acroForm.dict.delete(Ko.of("XFA"))}getFields(){const e=this.acroForm.getAllFields(),t=[];for(let r=0,n=e.length;r<n;r++){const[n,o]=e[r],i=Rf(n,o,this.doc);i&&t.push(i)}return t}getFieldMaybe(e){Xn(e,"name",["string"]);const t=this.getFields();for(let r=0,n=t.length;r<n;r++){const n=t[r];if(n.getName()===e)return n}}getField(e){Xn(e,"name",["string"]);const t=this.getFieldMaybe(e);if(t)return t;throw new Wu(e)}getButton(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof op)return t;throw new Hu(e,op,t)}getCheckBox(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Cf)return t;throw new Hu(e,Cf,t)}getDropdown(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Af)return t;throw new Hu(e,Af,t)}getOptionList(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Tf)return t;throw new Hu(e,Tf,t)}getRadioGroup(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Df)return t;throw new Hu(e,Df,t)}getSignature(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Of)return t;throw new Hu(e,Of,t)}getTextField(e){Xn(e,"name",["string"]);const t=this.getField(e);if(t instanceof Bf)return t;throw new Hu(e,Bf,t)}createButton(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Wi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),op.of(n,n.ref,this.doc)}createCheckBox(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Pi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Cf.of(n,n.ref,this.doc)}createDropdown(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Ui.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Af.of(n,n.ref,this.doc)}createOptionList(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Gi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Tf.of(n,n.ref,this.doc)}createRadioGroup(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Hi.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Df.of(n,n.ref,this.doc)}createTextField(e){Xn(e,"name",["string"]);const t=Ef(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=Li.create(this.doc.context);return n.setPartialName(t.terminal),Mf(r,[n,n.ref],t.terminal),Bf.of(n,n.ref,this.doc)}flatten(e={updateFieldAppearances:!0}){e.updateFieldAppearances&&this.updateFieldAppearances();const t=this.getFields();for(let e=0,r=t.length;e<r;e++){const r=t[e],n=r.acroField.getWidgets();for(let e=0,t=n.length;e<t;e++)try{const t=n[e],o=this.findWidgetPage(t),i=this.findWidgetAppearanceRef(r,t),s=o.node.newXObject("FlatWidget",i),a=t.getRectangle(),c=[Gl(),Ml(a.x,a.y),...Nu(Object.assign(Object.assign({},a),{rotation:0})),mh(s),Kl()].filter(Boolean);o.pushOperators(...c)}catch(e){console.error(e)}this.removeField(r)}}removeField(e){const t=e.acroField.getWidgets(),r=new Set;for(let n=0,o=t.length;n<o;n++)try{const o=t[n],i=this.findWidgetAppearanceRef(e,o),s=this.findWidgetPage(o);r.add(s),s.node.removeAnnot(i)}catch(e){console.error(e)}r.forEach((t=>t.node.removeAnnot(e.ref))),this.acroForm.removeField(e.acroField);const n=e.acroField.normalizedEntries().Kids,o=n.size();for(let e=0;e<o;e++){const t=n.get(e);t instanceof ei&&this.doc.context.delete(t)}this.doc.context.delete(e.ref)}updateFieldAppearances(e){Zn(e,"font",[[wf,"PDFFont"]]),e=null!=e?e:this.getDefaultFont();const t=this.getFields();for(let r=0,n=t.length;r<n;r++){const n=t[r];n.needsAppearancesUpdate()&&n.defaultUpdateAppearances(e)}}markFieldAsDirty(e){Zn(e,"fieldRef",[[ei,"PDFRef"]]),this.dirtyFields.add(e)}markFieldAsClean(e){Zn(e,"fieldRef",[[ei,"PDFRef"]]),this.dirtyFields.delete(e)}fieldIsDirty(e){return Zn(e,"fieldRef",[[ei,"PDFRef"]]),this.dirtyFields.has(e)}getDefaultFont(){return this.defaultFontCache.access()}findWidgetPage(e){const t=e.P();let r=this.doc.getPages().find((e=>e.ref===t));if(void 0===r){const t=this.doc.context.getObjectRef(e.dict);if(void 0===t)throw new Error("Could not find PDFRef for PDFObject");if(r=this.doc.findPageForAnnotationRef(t),void 0===r)throw new Error(`Could not find page for PDFRef ${t}`)}return r}findWidgetAppearanceRef(e,t){var r;let n=t.getNormalAppearance();if((e instanceof Cf||e instanceof Df)&&(n instanceof ei&&(n=this.doc.context.lookup(n,Zo)),n instanceof Zo)){const t=e.acroField.getValue(),o=null!==(r=n.get(t))&&void 0!==r?r:n.get(Ko.of("Off"));o instanceof ei&&(n=o)}if(!(n instanceof ei)){const t=e.getName();throw new Error(`Failed to extract appearance ref for: ${t}`)}return n}findOrCreateNonTerminals(e){let t=[this.acroForm];for(let r=0,n=e.length;r<n;r++){const n=e[r];if(!n)throw new Xu(n);const[o,i]=t,s=this.findNonTerminal(n,o);if(s)t=s;else{const e=Ii.create(this.doc.context);e.setPartialName(n),e.setParent(i);const r=this.doc.context.register(e.dict);o.addField(r),t=[e,r]}}return t}findNonTerminal(e,t){const r=t instanceof ts?this.acroForm.getFields():Ki(t.Kids());for(let t=0,n=r.length;t<n;t++){const[n,o]=r[t];if(n.getPartialName()===e){if(n instanceof Ii)return[n,o];throw new Ku(e)}}}}Pf.of=(e,t)=>new Pf(e,t);const Rf=(e,t,r)=>e instanceof Wi?op.of(e,t,r):e instanceof Pi?Cf.of(e,t,r):e instanceof Ui?Af.of(e,t,r):e instanceof Gi?Tf.of(e,t,r):e instanceof Li?Bf.of(e,t,r):e instanceof Hi?Df.of(e,t,r):e instanceof Vi?Of.of(e,t,r):void 0,Ef=e=>{if(0===e.length)throw new Error("PDF field names must not be empty strings");const t=e.split(".");for(let r=0,n=t.length;r<n;r++)if(""===t[r])throw new Error(`Periods in PDF field names must be separated by at least one character: "${e}"`);return 1===t.length?{nonTerminal:[],terminal:t[0]}:{nonTerminal:t.slice(0,t.length-1),terminal:t[t.length-1]}},Mf=([e,t],[r,n],o)=>{const i=e.normalizedEntries(),s=Ki("Kids"in i?i.Kids:i.Fields);for(let e=0,t=s.length;e<t;e++)if(s[e][0].getPartialName()===o)throw new Ku(o);e.addField(n),r.setParent(t)},jf={"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]};var qf;e.ParseSpeeds=void 0,(qf=e.ParseSpeeds||(e.ParseSpeeds={}))[qf.Fastest=1/0]="Fastest",qf[qf.Fast=1500]="Fast",qf[qf.Medium=500]="Medium",qf[qf.Slow=100]="Slow";class zf{constructor(e,t,r){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=r}embed(){return ui(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const e=yield this.embedder.embedIntoContext(this.doc.context,this.ref);this.doc.catalog.has(Ko.of("Names"))||this.doc.catalog.set(Ko.of("Names"),this.doc.context.obj({}));const t=this.doc.catalog.lookup(Ko.of("Names"),Zo);t.has(Ko.of("EmbeddedFiles"))||t.set(Ko.of("EmbeddedFiles"),this.doc.context.obj({}));const r=t.lookup(Ko.of("EmbeddedFiles"),Zo);r.has(Ko.of("Names"))||r.set(Ko.of("Names"),this.doc.context.obj([]));const n=r.lookup(Ko.of("Names"),zo);n.push(Yo.fromText(this.embedder.fileName)),n.push(e),this.doc.catalog.has(Ko.of("AF"))||this.doc.catalog.set(Ko.of("AF"),this.doc.context.obj([]));this.doc.catalog.lookup(Ko.of("AF"),zo).push(e),this.alreadyEmbedded=!0}}))}getEmbedder(){return this.embedder}}zf.of=(e,t,r)=>new zf(e,t,r);class Uf{constructor(e,t,r){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=r}embed(){return ui(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const{catalog:e,context:t}=this.doc,r=yield this.embedder.embedIntoContext(this.doc.context,this.ref);e.has(Ko.of("Names"))||e.set(Ko.of("Names"),t.obj({}));const n=e.lookup(Ko.of("Names"),Zo);n.has(Ko.of("JavaScript"))||n.set(Ko.of("JavaScript"),t.obj({}));const o=n.lookup(Ko.of("JavaScript"),Zo);o.has(Ko.of("Names"))||o.set(Ko.of("Names"),t.obj([]));const i=o.lookup(Ko.of("Names"),zo);i.push(Yo.fromText(this.embedder.scriptName)),i.push(r),this.alreadyEmbedded=!0}}))}}Uf.of=(e,t,r)=>new Uf(e,t,r);class If{static for(e,t){return new If(e,t)}constructor(e,t){this.script=e,this.scriptName=t}embedIntoContext(e,t){return ui(this,void 0,void 0,(function*(){const r=e.obj({Type:"Action",S:"JavaScript",JS:Yo.fromText(this.script)});return t?(e.assign(t,r),t):e.register(r)}))}}class Vf extends Es{constructor(e,t,r){super(r),this.stream=e,this.decrypt=t,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.stream.getBytes(512),this.initialized=!0),!e||0===e.length)return void(this.eof=!0);this.nextChunk=this.stream.getBytes(512);const t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);const r=this.bufferLength,n=r+e.length;this.ensureBuffer(n).set(e,r),this.bufferLength=n}}class Lf{constructor(e){this.a=0,this.b=0;const t=new Uint8Array(256),r=e.length;for(let e=0;e<256;++e)t[e]=e;for(let n=0,o=0;n<256;++n){const i=t[n];o=o+i+e[n%r]&255,t[n]=t[o],t[o]=i}this.s=t}encryptBlock(e){let t=this.a,r=this.b;const n=this.s,o=e.length,i=new Uint8Array(o);for(let s=0;s<o;++s){t=t+1&255;const o=n[t];r=r+o&255;const a=n[r];n[t]=a,n[r]=o,i[s]=e[s]^n[o+a&255]}return this.a=t,this.b=r,i}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}const Wf=function(){const e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(r,n,o){let i=1732584193,s=-271733879,a=-1732584194,c=271733878;const l=o+72&-64,h=new Uint8Array(l);let d,u;for(d=0;d<o;++d)h[d]=r[n++];h[d++]=128;const f=l-8;for(;d<f;)h[d++]=0;h[d++]=o<<3&255,h[d++]=o>>5&255,h[d++]=o>>13&255,h[d++]=o>>21&255,h[d++]=o>>>29&255,h[d++]=0,h[d++]=0,h[d++]=0;const p=new Int32Array(16);for(d=0;d<l;){for(u=0;u<16;++u,d+=4)p[u]=h[d]|h[d+1]<<8|h[d+2]<<16|h[d+3]<<24;let r,n,o=i,l=s,f=a,g=c;for(u=0;u<64;++u){u<16?(r=l&f|~l&g,n=u):u<32?(r=g&l|~g&f,n=5*u+1&15):u<48?(r=l^f^g,n=3*u+5&15):(r=f^(l|~g),n=7*u&15);const i=g,s=o+r+t[u]+p[n]|0,a=e[u];g=f,f=l,l=l+(s<<a|s>>>32-a)|0,o=i}i=i+o|0,s=s+l|0,a=a+f|0,c=c+g|0}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&a,a>>8&255,a>>16&255,a>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}}();class Hf{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const Gf=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function o(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}const s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(a,c,l){let h=1779033703,d=3144134277,u=1013904242,f=2773480762,p=1359893119,g=2600822924,m=528734635,b=1541459225;const y=64*Math.ceil((l+9)/64),v=new Uint8Array(y);let w,x;for(w=0;w<l;++w)v[w]=a[c++];v[w++]=128;const F=y-8;for(;w<F;)v[w++]=0;v[w++]=0,v[w++]=0,v[w++]=0,v[w++]=l>>>29&255,v[w++]=l>>21&255,v[w++]=l>>13&255,v[w++]=l>>5&255,v[w++]=l<<3&255;const S=new Uint32Array(64);for(w=0;w<y;){for(x=0;x<16;++x)S[x]=v[w]<<24|v[w+1]<<16|v[w+2]<<8|v[w+3],w+=4;for(x=16;x<64;++x)S[x]=0|(e(k=S[x-2],17)^e(k,19)^k>>>10)+S[x-7]+i(S[x-15])+S[x-16];let a,c,l=h,y=d,F=u,C=f,A=p,T=g,D=m,O=b;for(x=0;x<64;++x)a=O+o(A)+t(A,T,D)+s[x]+S[x],c=n(l)+r(l,y,F),O=D,D=T,T=A,A=C+a|0,C=F,F=y,y=l,l=a+c|0;h=h+l|0,d=d+y|0,u=u+F|0,f=f+C|0,p=p+A|0,g=g+T|0,m=m+D|0,b=b+O|0}var k;return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,u>>24&255,u>>16&255,u>>8&255,255&u,f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b])}}(),Kf=function(){function e(e,t,r,n,o){e.assign(t),e.and(r),o.assign(t),o.not(),o.and(n),e.xor(o)}function t(e,t,r,n,o){e.assign(t),e.and(r),o.assign(t),o.and(n),e.xor(o),o.assign(r),o.and(n),e.xor(o)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function o(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}const s=[new Hf(1116352408,3609767458),new Hf(1899447441,602891725),new Hf(3049323471,3964484399),new Hf(3921009573,2173295548),new Hf(961987163,4081628472),new Hf(1508970993,3053834265),new Hf(2453635748,2937671579),new Hf(2870763221,3664609560),new Hf(3624381080,2734883394),new Hf(310598401,1164996542),new Hf(607225278,1323610764),new Hf(1426881987,3590304994),new Hf(1925078388,4068182383),new Hf(2162078206,991336113),new Hf(2614888103,633803317),new Hf(3248222580,3479774868),new Hf(3835390401,2666613458),new Hf(4022224774,944711139),new Hf(264347078,2341262773),new Hf(604807628,2007800933),new Hf(770255983,1495990901),new Hf(1249150122,1856431235),new Hf(1555081692,3175218132),new Hf(1996064986,2198950837),new Hf(2554220882,3999719339),new Hf(2821834349,766784016),new Hf(2952996808,2566594879),new Hf(3210313671,3203337956),new Hf(3336571891,1034457026),new Hf(3584528711,2466948901),new Hf(113926993,3758326383),new Hf(338241895,168717936),new Hf(666307205,1188179964),new Hf(773529912,1546045734),new Hf(1294757372,1522805485),new Hf(1396182291,2643833823),new Hf(1695183700,2343527390),new Hf(1986661051,1014477480),new Hf(2177026350,1206759142),new Hf(2456956037,344077627),new Hf(2730485921,1290863460),new Hf(2820302411,3158454273),new Hf(3259730800,3505952657),new Hf(3345764771,106217008),new Hf(3516065817,3606008344),new Hf(3600352804,1432725776),new Hf(4094571909,1467031594),new Hf(275423344,851169720),new Hf(430227734,3100823752),new Hf(506948616,1363258195),new Hf(659060556,3750685593),new Hf(883997877,3785050280),new Hf(958139571,3318307427),new Hf(1322822218,3812723403),new Hf(1537002063,2003034995),new Hf(1747873779,3602036899),new Hf(1955562222,1575990012),new Hf(2024104815,1125592928),new Hf(2227730452,2716904306),new Hf(2361852424,442776044),new Hf(2428436474,593698344),new Hf(2756734187,3733110249),new Hf(3204031479,2999351573),new Hf(3329325298,3815920427),new Hf(3391569614,3928383900),new Hf(3515267271,566280711),new Hf(3940187606,3454069534),new Hf(4118630271,4000239992),new Hf(116418474,1914138554),new Hf(174292421,2731055270),new Hf(289380356,3203993006),new Hf(460393269,320620315),new Hf(685471733,587496836),new Hf(852142971,1086792851),new Hf(1017036298,365543100),new Hf(1126000580,2618297676),new Hf(1288033470,3409855158),new Hf(1501505948,4234509866),new Hf(1607167915,987167468),new Hf(1816402316,1246189591)];return function(a,c,l,h=!1){let d,u,f,p,g,m,b,y;h?(d=new Hf(3418070365,3238371032),u=new Hf(1654270250,914150663),f=new Hf(2438529370,812702999),p=new Hf(355462360,4144912697),g=new Hf(1731405415,4290775857),m=new Hf(2394180231,1750603025),b=new Hf(3675008525,1694076839),y=new Hf(1203062813,3204075428)):(d=new Hf(1779033703,4089235720),u=new Hf(3144134277,2227873595),f=new Hf(1013904242,4271175723),p=new Hf(2773480762,1595750129),g=new Hf(1359893119,2917565137),m=new Hf(2600822924,725511199),b=new Hf(528734635,4215389547),y=new Hf(1541459225,327033209));const v=128*Math.ceil((l+17)/128),w=new Uint8Array(v);let x,F;for(x=0;x<l;++x)w[x]=a[c++];w[x++]=128;const S=v-16;for(;x<S;)w[x++]=0;w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=0,w[x++]=l>>>29&255,w[x++]=l>>21&255,w[x++]=l>>13&255,w[x++]=l>>5&255,w[x++]=l<<3&255;const k=new Array(80);for(x=0;x<80;x++)k[x]=new Hf(0,0);let C=new Hf(0,0),A=new Hf(0,0),T=new Hf(0,0),D=new Hf(0,0),O=new Hf(0,0),B=new Hf(0,0),N=new Hf(0,0),P=new Hf(0,0);const R=new Hf(0,0),E=new Hf(0,0),M=new Hf(0,0),j=new Hf(0,0);let q,z;for(x=0;x<v;){for(F=0;F<16;++F)k[F].high=w[x]<<24|w[x+1]<<16|w[x+2]<<8|w[x+3],k[F].low=w[x+4]<<24|w[x+5]<<16|w[x+6]<<8|w[x+7],x+=8;for(F=16;F<80;++F)q=k[F],i(q,k[F-2],j),q.add(k[F-7]),o(M,k[F-15],j),q.add(M),q.add(k[F-16]);for(C.assign(d),A.assign(u),T.assign(f),D.assign(p),O.assign(g),B.assign(m),N.assign(b),P.assign(y),F=0;F<80;++F)R.assign(P),n(M,O,j),R.add(M),e(M,O,B,N,j),R.add(M),R.add(s[F]),R.add(k[F]),r(E,C,j),t(M,C,A,T,j),E.add(M),q=P,P=N,N=B,B=O,D.add(R),O=D,D=T,T=A,A=C,q.assign(R),q.add(E),C=q;d.add(C),u.add(A),f.add(T),p.add(D),g.add(O),m.add(B),b.add(N),y.add(P)}return h?(z=new Uint8Array(48),d.copyTo(z,0),u.copyTo(z,8),f.copyTo(z,16),p.copyTo(z,24),g.copyTo(z,32),m.copyTo(z,40)):(z=new Uint8Array(64),d.copyTo(z,0),u.copyTo(z,8),f.copyTo(z,16),p.copyTo(z,24),g.copyTo(z,32),m.copyTo(z,40),b.copyTo(z,48),y.copyTo(z,56)),z}}();class Xf{decryptBlock(e){return e}encrypt(e){return e}}class Zf{constructor(){if(this.constructor===Zf)throw new Error("Cannot initialize AESBaseCipher.");this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){throw new Error("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let r,n,o;const i=new Uint8Array(16);i.set(e);for(let e=0,r=this._keySize;e<16;++e,++r)i[e]^=t[r];for(let e=this._cyclesOfRepetition-1;e>=1;--e){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],o=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=o;for(let e=0;e<16;++e)i[e]=this._inv_s[i[e]];for(let r=0,n=16*e;r<16;++r,++n)i[r]^=t[n];for(let e=0;e<16;e+=4){const t=this._mix[i[e]],n=this._mix[i[e+1]],o=this._mix[i[e+2]],s=this._mix[i[e+3]];r=t^n>>>8^n<<24^o>>>16^o<<16^s>>>24^s<<8,i[e]=r>>>24&255,i[e+1]=r>>16&255,i[e+2]=r>>8&255,i[e+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],o=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=o;for(let e=0;e<16;++e)i[e]=this._inv_s[i[e]],i[e]^=t[e];return i}_encrypt(e,t){const r=this._s;let n,o,i;const s=new Uint8Array(16);s.set(e);for(let e=0;e<16;++e)s[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)s[e]=r[s[e]];i=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=i,i=s[2],o=s[6],s[2]=s[10],s[6]=s[14],s[10]=i,s[14]=o,i=s[3],o=s[7],n=s[11],s[3]=s[15],s[7]=i,s[11]=o,s[15]=n;for(let e=0;e<16;e+=4){const t=s[e+0],r=s[e+1],o=s[e+2],i=s[e+3];n=t^r^o^i,s[e+0]^=n^this._mixCol[t^r],s[e+1]^=n^this._mixCol[r^o],s[e+2]^=n^this._mixCol[o^i],s[e+3]^=n^this._mixCol[i^t]}for(let r=0,n=16*e;r<16;++r,++n)s[r]^=t[n]}for(let e=0;e<16;++e)s[e]=r[s[e]];i=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=i,i=s[2],o=s[6],s[2]=s[10],s[6]=s[14],s[10]=i,s[14]=o,i=s[3],o=s[7],n=s[11],s[3]=s[15],s[7]=i,s[11]=o,s[15]=n;for(let e=0,r=this._keySize;e<16;++e,++r)s[e]^=t[r];return s}_decryptBlock2(e,t){const r=e.length;let n=this.buffer,o=this.bufferPosition;const i=[];let s=this.iv;for(let t=0;t<r;++t){if(n[o]=e[t],++o,o<16)continue;const r=this._decrypt(n,this._key);for(let e=0;e<16;++e)r[e]^=s[e];s=n,i.push(r),n=new Uint8Array(16),o=0}if(this.buffer=n,this.bufferLength=o,this.iv=s,0===i.length)return new Uint8Array(0);let a=16*i.length;if(t){const e=i[i.length-1];let t=e[15];if(t<=16){for(let r=15,n=16-t;r>=n;--r)if(e[r]!==t){t=0;break}a-=t,i[i.length-1]=e.subarray(0,16-t)}}const c=new Uint8Array(a);for(let e=0,t=0,r=i.length;e<r;++e,t+=16)c.set(i[e],t);return c}decryptBlock(e,t,r){const n=e.length,o=this.buffer;let i=this.bufferPosition;if(r)this.iv=r;else{for(let t=0;i<16&&t<n;++t,++i)o[i]=e[t];if(i<16)return this.bufferLength=i,new Uint8Array(0);this.iv=o,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){const r=e.length;let n=this.buffer,o=this.bufferPosition;const i=[];t||(t=new Uint8Array(16));for(let s=0;s<r;++s){if(n[o]=e[s],++o,o<16)continue;for(let e=0;e<16;++e)n[e]^=t[e];const r=this._encrypt(n,this._key);t=r,i.push(r),n=new Uint8Array(16),o=0}if(this.buffer=n,this.bufferLength=o,this.iv=t,0===i.length)return new Uint8Array(0);const s=16*i.length,a=new Uint8Array(s);for(let e=0,t=0,r=i.length;e<r;++e,t+=16)a.set(i[e],t);return a}}class Yf extends Zf{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){const t=this._s,r=this._rcon,n=new Uint8Array(176);n.set(e);for(let e=16,o=1;e<176;++o){let i=n[e-3],s=n[e-2],a=n[e-1],c=n[e-4];i=t[i],s=t[s],a=t[a],c=t[c],i^=r[o];for(let t=0;t<4;++t)n[e]=i^=n[e-16],e++,n[e]=s^=n[e-16],e++,n[e]=a^=n[e-16],e++,n[e]=c^=n[e-16],e++}return n}}class Jf extends Zf{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){const t=this._s,r=new Uint8Array(240);r.set(e);let n=1,o=0,i=0,s=0,a=0;for(let e=32,c=1;e<240;++c){e%32==16?(o=t[o],i=t[i],s=t[s],a=t[a]):e%32==0&&(o=r[e-3],i=r[e-2],s=r[e-1],a=r[e-4],o=t[o],i=t[i],s=t[s],a=t[a],o^=n,(n<<=1)>=256&&(n=255&(27^n)));for(let t=0;t<4;++t)r[e]=o^=r[e-32],e++,r[e]=i^=r[e-32],e++,r[e]=s^=r[e-32],e++,r[e]=a^=r[e-32],e++}return r}}class Qf{checkOwnerPassword(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=Gf(o,0,o.length);return M(i,n)}checkUserPassword(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=Gf(n,0,n.length);return M(o,r)}getOwnerKey(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=Gf(o,0,o.length);return new Jf(i).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=Gf(n,0,n.length);return new Jf(o).decryptBlock(r,!1,new Uint8Array(16))}}class _f{calculatePDF20Hash(e,t,r){let n=Gf(t,0,t.length).subarray(0,32),o=new Uint8Array([0]),i=0;for(;i<64||o[o.length-1]>i-32;){const t=e.length+n.length+r.length,l=new Uint8Array(t);let h=0;l.set(e,h),h+=e.length,l.set(n,h),h+=n.length,l.set(r,h);const d=new Uint8Array(64*t);for(let e=0,r=0;e<64;e++,r+=t)d.set(l,r);o=new Yf(n.subarray(0,16)).encrypt(d,n.subarray(16,32));const u=o.slice(0,16).reduce(((e,t)=>e+t),0)%3;0===u?n=Gf(o,0,o.length):1===u?(s=o,a=0,c=o.length,n=Kf(s,a,c,!0)):2===u&&(n=Kf(o,0,o.length)),i++}var s,a,c;return n.subarray(0,32)}hash(e,t,r){return this.calculatePDF20Hash(e,t,r)}checkOwnerPassword(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=this.calculatePDF20Hash(e,o,r);return M(i,n)}checkUserPassword(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=this.calculatePDF20Hash(e,n,new Uint8Array);return M(o,r)}getOwnerKey(e,t,r,n){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);const i=this.calculatePDF20Hash(e,o,r);return new Jf(i).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(e,t,r){const n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);const o=this.calculatePDF20Hash(e,n,new Uint8Array);return new Jf(o).decryptBlock(r,!1,new Uint8Array(16))}}class $f{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const r=this.StreamCipherConstructor();return new Vf(e,(function(e,t){return r.decryptBlock(e,t)}),t)}decryptString(e){const t=this.StringCipherConstructor();let r=p(e);return r=t.decryptBlock(r,!0),P(r)}decryptBytes(e){return this.StringCipherConstructor().decryptBlock(e,!0)}encryptString(e){const t=this.StringCipherConstructor();if(t instanceof Zf){const r=16-e.length%16;e+=String.fromCharCode(r).repeat(r);const n=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(n);else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random());let o=p(e);o=t.encrypt(o,n);const i=new Uint8Array(16+o.length);return i.set(n),i.set(o,16),P(i)}let r=p(e);return r=t.encrypt(r),P(r)}}class ep{constructor(e,t,r){var n,o;this.defaultPasswordBytes=new Uint8Array([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]),this.identityName=Ko.of("Identity");const i=e.get(Ko.of("Filter"));if("/Standard"!==i.asString())throw new Error("unknown encryption method");this.filterName=i.asString(),this.dict=e;const s=e.get(Ko.of("V")).asNumber();if(!Number.isInteger(s)||1!==s&&2!==s&&4!==s&&5!==s)throw new Error("unsupported encryption algorithm");this.algorithm=s;let a=null===(n=e.get(Ko.of("Length")))||void 0===n?void 0:n.asNumber();if(!a)if(s<=3)a=40;else{const t=e.get(Ko.of("CF")),r=e.get(Ko.of("StmF"));if(t instanceof Zo&&r instanceof Ko){t.suppressEncryption=!0;const e=t.get(Ko.of(r.asString()));let n=null;e&&(n=e.get(Ko.of("Length"))),a=n&&n.asNumber()||128,a<40&&(a<<=3)}}if(void 0===a||!Number.isInteger(a)||a<40||a%8!=0)throw new Error(`invalid key length: ${a}`);const c=e.get(Ko.of("O")).asBytes(),l=e.get(Ko.of("U")).asBytes(),h=c.subarray(0,32),d=l.subarray(0,32),u=e.get(Ko.of("P")).asNumber(),f=e.get(Ko.of("R")).asNumber(),g=(4===s||5===s)&&!1!==(null===(o=e.get(Ko.of("EncryptMetadata")))||void 0===o?void 0:o.asBoolean());let m,b;if(this.encryptMetadata=g,r){if(6===f)try{r=unescape(encodeURIComponent(r))}catch(e){console.warn("CipherTransformFactory: Unable to convert UTF8 encoded password.")}m=p(r)}if(5!==s)b=this.prepareKeyData(t,m,h,d,u,f,a,g);else{const t=c.subarray(32,40),r=c.subarray(40,48),n=l.subarray(0,48),o=l.subarray(32,40),i=l.subarray(40,48),s=e.get(Ko.of("OE")).asBytes(),a=e.get(Ko.of("UE")).asBytes(),u=e.get(Ko.of("Perms")).asBytes();b=this.createEncryptionKey20(f,m,h,t,r,n,d,o,i,s,a,u)}if(!b&&!r)throw new Error("NEEDS PASSWORD");if(!b&&r){const e=this.decodeUserPassword(m,h,f,a);b=this.prepareKeyData(t,e,h,d,u,f,a,g)}if(!b)throw new Error("Password incorrect");if(this.encryptionKey=b,s>=4){const t=e.get(Ko.of("CF"));t instanceof Zo&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get(Ko.of("StmF"))||this.identityName,this.strf=e.get(Ko.of("StrF"))||this.identityName,this.eff=e.get(Ko.of("EFF"))||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new $f(this.buildCipherConstructor(this.cf,this.strf,e,t,this.encryptionKey),this.buildCipherConstructor(this.cf,this.stmf,e,t,this.encryptionKey));const r=this.buildObjectKey(e,t,this.encryptionKey,!1),n=function(){return new Lf(r)};return new $f(n,n)}createEncryptionKey20(e,t,r,n,o,i,s,a,c,l,h,d){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=new Uint8Array;let u;return u=6===e?new _f:new Qf,u.checkUserPassword(t,a,s)?u.getUserKey(t,c,h):t.length&&u.checkOwnerPassword(t,n,i,r)?u.getOwnerKey(t,o,i,l):null}prepareKeyData(e,t,r,n,o,i,s,a){const c=40+r.length+e.length,l=new Uint8Array(c);let h,d,u=0;if(t)for(d=Math.min(32,t.length);u<d;++u)l[u]=t[u];for(h=0;u<32;)l[u++]=this.defaultPasswordBytes[h++];for(h=0,d=r.length;h<d;++h)l[u++]=r[h];for(l[u++]=255&o,l[u++]=o>>8&255,l[u++]=o>>16&255,l[u++]=o>>>24&255,h=0,d=e.length;h<d;++h)l[u++]=e[h];i>=4&&!a&&(l[u++]=255,l[u++]=255,l[u++]=255,l[u++]=255);let f=Wf(l,0,u);const p=s>>3;if(i>=3)for(h=0;h<50;++h)f=Wf(f,0,p);const g=f.subarray(0,p);let m,b;if(i>=3){for(u=0;u<32;++u)l[u]=this.defaultPasswordBytes[u];for(h=0,d=e.length;h<d;++h)l[u++]=e[h];m=new Lf(g),b=m.encryptBlock(Wf(l,0,u)),d=g.length;const t=new Uint8Array(d);for(h=1;h<=19;++h){for(let e=0;e<d;++e)t[e]=g[e]^h;m=new Lf(t),b=m.encryptBlock(b)}for(h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null}else for(m=new Lf(g),b=m.encryptBlock(this.defaultPasswordBytes),h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null;return g}decodeUserPassword(e,t,r,n){const o=new Uint8Array(32);let i=0;const s=Math.min(32,e.length);for(;i<s;++i)o[i]=e[i];let a=0;for(;i<32;)o[i++]=this.defaultPasswordBytes[a++];let c=Wf(o,0,i);const l=n>>3;if(r>=3)for(a=0;a<50;++a)c=Wf(c,0,c.length);let h,d;if(r>=3){d=t;const e=new Uint8Array(l);for(a=19;a>=0;a--){for(let t=0;t<l;++t)e[t]=c[t]^a;h=new Lf(e),d=h.encryptBlock(d)}}else h=new Lf(c.subarray(0,l)),d=h.encryptBlock(t);return d}buildObjectKey(e,t,r,n=!1){const o=new Uint8Array(r.length+9),i=r.length;let s;for(s=0;s<i;++s)o[s]=r[s];o[s++]=255&e,o[s++]=e>>8&255,o[s++]=e>>16&255,o[s++]=255&t,o[s++]=t>>8&255,n&&(o[s++]=115,o[s++]=65,o[s++]=108,o[s++]=84);return Wf(o,0,s).subarray(0,Math.min(r.length+5,16))}buildCipherConstructor(e,t,r,n,o){if(!(t instanceof Ko))throw new Error("Invalid crypt filter name.");const i=e.get(Ko.of(t.asString().replace("/","")));let s;if(null!=i&&(s=i.get(Ko.of("CFM"))),!s||"/None"===s.asString())return function(){return new Xf};if("/V2"===s.asString())return()=>new Lf(this.buildObjectKey(r,n,o,!1));if("/AESV2"===s.asString())return()=>new Yf(this.buildObjectKey(r,n,o,!0));if("/AESV3"===s.asString())return()=>new Jf(o);throw new Error("Unknown crypto method")}}class tp{static load(t,r={}){return ui(this,void 0,void 0,(function*(){const{ignoreEncryption:n=!1,parseSpeed:o=e.ParseSpeeds.Slow,throwOnInvalidObject:i=!1,warnOnInvalidObjects:s=!1,updateMetadata:a=!0,capNumbers:c=!1,password:l,forIncrementalUpdate:h=!1,preserveObjectsVersions:d=!1}=r;Xn(t,"pdf",["string",Uint8Array,ArrayBuffer]),Xn(n,"ignoreEncryption",["boolean"]),Xn(o,"parseSpeed",["number"]),Xn(i,"throwOnInvalidObject",["boolean"]),Xn(s,"warnOnInvalidObjects",["boolean"]),Xn(l,"password",["string","undefined"]),Xn(h,"forIncrementalUpdate",["boolean"]),Xn(d,"preserveObjectsVersions",["boolean"]);const u=V(t),f=yield da.forBytesWithOptions(u,o,i,void 0,c,void 0,h,d).parseDocument();if(f.lookup(f.trailerInfo.Encrypt)&&void 0!==l){const e=f.lookup(f.trailerInfo.ID,zo),t=f.lookup(f.trailerInfo.Encrypt,Zo),r=yield da.forBytesWithOptions(u,o,i,s,c,new ep(t,e.get(0).asBytes(),l),h,d).parseDocument(),n=new tp(r,!0,a);return h&&n.takeSnapshot(),n}{const e=new tp(f,n,a);return h&&e.takeSnapshot(),e}}))}static create(e={}){return ui(this,void 0,void 0,(function*(){const{updateMetadata:t=!0}=e,r=li.create(),n=ls.withContext(r),o=r.register(n),i=cs.withContextAndPages(r,o);return r.trailerInfo.Root=r.register(i),new tp(r,!1,t)}))}constructor(e,t,r){if(this.defaultWordBreaks=[" "],this.computePages=()=>{const e=[];return this.catalog.Pages().traverse(((t,r)=>{if(t instanceof hi){let n=this.pageMap.get(t);n||(n=np.of(t,r,this),this.pageMap.set(t,n)),e.push(n)}})),e},this.getOrCreateForm=()=>{const e=this.catalog.getOrCreateAcroForm();return Pf.of(e,this)},Xn(e,"context",[[li,"PDFContext"]]),Xn(t,"ignoreEncryption",["boolean"]),this.context=e,this.catalog=e.lookup(e.trailerInfo.Root),e.lookup(e.trailerInfo.Encrypt)&&e.isDecrypted&&delete e.trailerInfo.Encrypt,this.isEncrypted=!!e.lookup(e.trailerInfo.Encrypt),this.pageCache=no.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=no.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!t&&this.isEncrypted)throw new Uu;r&&this.updateInfoDict()}registerFontkit(e){this.fontkit=e}getForm(){const e=this.formCache.access();return e.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),e.deleteXFA()),e}getTitle(){const e=this.getInfoDict().lookup(Ko.Title);if(e)return rp(e),e.decodeText()}getAuthor(){const e=this.getInfoDict().lookup(Ko.Author);if(e)return rp(e),e.decodeText()}getSubject(){const e=this.getInfoDict().lookup(Ko.Subject);if(e)return rp(e),e.decodeText()}getKeywords(){const e=this.getInfoDict().lookup(Ko.Keywords);if(e)return rp(e),e.decodeText()}getCreator(){const e=this.getInfoDict().lookup(Ko.Creator);if(e)return rp(e),e.decodeText()}getProducer(){const e=this.getInfoDict().lookup(Ko.Producer);if(e)return rp(e),e.decodeText()}getLanguage(){const e=this.catalog.get(Ko.of("Lang"));if(e)return rp(e),e.decodeText()}getCreationDate(){const e=this.getInfoDict().lookup(Ko.CreationDate);if(e)return rp(e),e.decodeDate()}getModificationDate(){const e=this.getInfoDict().lookup(Ko.ModDate);if(e)return rp(e),e.decodeDate()}setTitle(e,t){Xn(e,"title",["string"]);const r=Ko.of("Title");if(this.getInfoDict().set(r,Yo.fromText(e)),null==t?void 0:t.showInWindowTitleBar){this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)}}setAuthor(e){Xn(e,"author",["string"]);const t=Ko.of("Author");this.getInfoDict().set(t,Yo.fromText(e))}setSubject(e){Xn(e,"author",["string"]);const t=Ko.of("Subject");this.getInfoDict().set(t,Yo.fromText(e))}setKeywords(e){Xn(e,"keywords",[Array]);const t=Ko.of("Keywords");this.getInfoDict().set(t,Yo.fromText(e.join(" ")))}setCreator(e){Xn(e,"creator",["string"]);const t=Ko.of("Creator");this.getInfoDict().set(t,Yo.fromText(e))}setProducer(e){Xn(e,"creator",["string"]);const t=Ko.of("Producer");this.getInfoDict().set(t,Yo.fromText(e))}setLanguage(e){Xn(e,"language",["string"]);const t=Ko.of("Lang");this.catalog.set(t,ti.of(e))}setCreationDate(e){Xn(e,"creationDate",[[Date,"Date"]]);const t=Ko.of("CreationDate");this.getInfoDict().set(t,ti.fromDate(e))}setModificationDate(e){Xn(e,"modificationDate",[[Date,"Date"]]);const t=Ko.of("ModDate");this.getInfoDict().set(t,ti.fromDate(e))}getPageCount(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount}getPages(){return this.pageCache.access()}getPage(e){const t=this.getPages();return Jn(e,"index",0,t.length-1),t[e]}getPageIndices(){return z(0,this.getPageCount())}removePage(e){const t=this.getPageCount();if(0===this.pageCount)throw new Lu;Jn(e,"index",0,t-1);const r=this.getPage(e);this.catalog.removeLeafNode(e),this.pageCount=t-1,this.context.delete(r.ref)}addPage(e){return Xn(e,"page",["undefined",[np,"PDFPage"],Array]),this.insertPage(this.getPageCount(),e)}insertPage(e,t){const r=this.getPageCount();if(Jn(e,"index",0,r),Xn(t,"page",["undefined",[np,"PDFPage"],Array]),!t||Array.isArray(t)){const e=Array.isArray(t)?t:jf.A4;(t=np.create(this)).setSize(...e)}else if(t.doc!==this)throw new Vu;const n=this.catalog.insertLeafNode(t.ref,e);return t.node.setParent(n),this.pageMap.set(t.node,t),this.pageCache.invalidate(),this.pageCount=r+1,t}copyPages(e,t){return ui(this,void 0,void 0,(function*(){Xn(e,"srcDoc",[[tp,"PDFDocument"]]),Xn(t,"indices",[Array]),yield e.flush();const r=di.for(e.context,this.context),n=e.getPages(),o=t.map((e=>n[e])).map((e=>ui(this,void 0,void 0,(function*(){return r.copy(e.node)})))).map((e=>e.then((e=>np.of(e,this.context.register(e),this)))));return Promise.all(o)}))}copy(){return ui(this,void 0,void 0,(function*(){const e=yield tp.create(),t=yield e.copyPages(this,this.getPageIndices());for(let r=0,n=t.length;r<n;r++)e.addPage(t[r]);return void 0!==this.getAuthor()&&e.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&e.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&e.setCreator(this.getCreator()),void 0!==this.getLanguage()&&e.setLanguage(this.getLanguage()),void 0!==this.getModificationDate()&&e.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&e.setProducer(this.getProducer()),void 0!==this.getSubject()&&e.setSubject(this.getSubject()),void 0!==this.getTitle()&&e.setTitle(this.getTitle()),e.defaultWordBreaks=this.defaultWordBreaks,e}))}addJavaScript(e,t){Xn(e,"name",["string"]),Xn(t,"script",["string"]);const r=If.for(t,e),n=this.context.nextRef(),o=Uf.of(n,this,r);this.javaScripts.push(o)}attach(t,r,n={}){return ui(this,void 0,void 0,(function*(){Xn(t,"attachment",["string",Uint8Array,ArrayBuffer]),Xn(r,"name",["string"]),Zn(n.mimeType,"mimeType",["string"]),Zn(n.description,"description",["string"]),Zn(n.creationDate,"options.creationDate",[Date]),Zn(n.modificationDate,"options.modificationDate",[Date]),Ln(n.afRelationship,"options.afRelationship",e.AFRelationship);const o=V(t),i=ws.for(o,r,n),s=this.context.nextRef(),a=zf.of(s,this,i);this.embeddedFiles.push(a)}))}getRawAttachments(){if(!this.catalog.has(Ko.of("Names")))return[];const e=this.catalog.lookup(Ko.of("Names"),Zo);if(!e.has(Ko.of("EmbeddedFiles")))return[];const t=e.lookup(Ko.of("EmbeddedFiles"),Zo);if(!t.has(Ko.of("Names")))return[];const r=t.lookup(Ko.of("Names"),zo),n=[];for(let e=0,t=r.size();e<t;e+=2){const t=r.lookup(e),o=r.lookup(e+1,Zo);n.push({fileName:t,fileSpec:o})}return n}getSavedAttachments(){return this.getRawAttachments().flatMap((({fileName:e,fileSpec:t})=>{const r=t.lookup(Ko.of("EF"));if(!(r instanceof Zo))return[];const n=r.lookup(Ko.of("F"));if(!(n instanceof Jo))return[];const o=t.lookup(Ko.of("AFRelationship")),i=o instanceof Ko?o.toString().slice(1):o instanceof ti?o.decodeText():void 0,s=n.dict,a=s.lookup(Ko.of("Subtype")),c=a instanceof Ko?a.toString().slice(1):a instanceof ti?a.decodeText():void 0,l=s.lookup(Ko.of("Params"),Zo);let h,d;if(l instanceof Zo){const e=l.lookup(Ko.of("CreationDate")),t=l.lookup(Ko.of("ModDate"));e instanceof ti&&(h=e.decodeDate()),t instanceof ti&&(d=t.decodeDate())}const u=t.lookup(Ko.of("Desc")).decodeText();return[{name:e.decodeText(),data:Xs(n).decode(),mimeType:null==c?void 0:c.replace(/#([0-9A-Fa-f]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16)))),afRelationship:i,description:u,creationDate:h,modificationDate:d}]}))}getUnsavedAttachments(){return this.embeddedFiles.map((e=>{const t=e.getEmbedder();return{name:t.fileName,data:t.getFileData(),description:t.options.description,mimeType:t.options.mimeType,afRelationship:t.options.afRelationship,creationDate:t.options.creationDate,modificationDate:t.options.modificationDate}}))}getAttachments(){return[...this.getSavedAttachments(),...this.getUnsavedAttachments()]}embedFont(e,t={}){return ui(this,void 0,void 0,(function*(){const{subset:r=!1,customName:n,features:o}=t;let i;if(Xn(e,"font",["string",Uint8Array,ArrayBuffer]),Xn(r,"subset",["boolean"]),Mn(e))i=ds.for(e,n);else{if(!I(e))throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");{const t=V(e),s=this.assertFontkit();i=r?yield ys.for(s,t,n,o):yield bs.for(s,t,n,o)}}const s=this.context.nextRef(),a=wf.of(s,this,i);return this.fonts.push(a),a}))}embedStandardFont(e,t){if(Xn(e,"font",["string"]),!Mn(e))throw new TypeError("`font` must be one of type `StandardFonts`");const r=ds.for(e,t),n=this.context.nextRef(),o=wf.of(n,this,r);return this.fonts.push(o),o}embedJpg(e){return ui(this,void 0,void 0,(function*(){Xn(e,"jpg",["string",Uint8Array,ArrayBuffer]);const t=V(e),r=yield ks.for(t),n=this.context.nextRef(),o=xf.of(n,this,r);return this.images.push(o),o}))}embedPng(e){return ui(this,void 0,void 0,(function*(){Xn(e,"png",["string",Uint8Array,ArrayBuffer]);const t=V(e),r=yield Ns.for(t),n=this.context.nextRef(),o=xf.of(n,this,r);return this.images.push(o),o}))}embedSvg(e){return ui(this,void 0,void 0,(function*(){if(!e)return new _d(e);const t=Nd.parse(e),r=e=>"image"===e.tagName?[e]:e.childNodes.map((e=>e.nodeType===Nd.NodeType.ELEMENT_NODE?r(e):[])).flat(),n=r(t),o={};return yield Promise.all(n.map((e=>ui(this,void 0,void 0,(function*(){var t;const r=null!==(t=e.attributes.href)&&void 0!==t?t:e.attributes["xlink:href"];if(!r||o[r])return;const n=r.match(/\.png(\?|$)|^data:image\/png;base64/gim)?yield this.embedPng(r):yield this.embedJpg(r);o[r]=n}))))),new _d(e,o)}))}embedPdf(e,t=[0]){return ui(this,void 0,void 0,(function*(){Xn(e,"pdf",["string",Uint8Array,ArrayBuffer,[tp,"PDFDocument"]]),Xn(t,"indices",[Array]);const r=e instanceof tp?e:yield tp.load(e),n=U(r.getPages(),t);return this.embedPages(n)}))}embedPage(e,t,r){return ui(this,void 0,void 0,(function*(){Xn(e,"page",[[np,"PDFPage"]]);const[n]=yield this.embedPages([e],[t],[r]);return n}))}embedPages(e,t=[],r=[]){return ui(this,void 0,void 0,(function*(){if(0===e.length)return[];for(let t=0,r=e.length-1;t<r;t++){const r=e[t],n=e[t+1];if(r.node.context!==n.node.context)throw new fo}const n=e[0].node.context,o=n===this.context?e=>e:di.for(n,this.context).copy,i=new Array(e.length);for(let n=0,s=e.length;n<s;n++){const s=o(e[n].node),a=t[n],c=r[n],l=yield Zs.for(s,a,c),h=this.context.nextRef();i[n]=vf.of(h,this,l)}return this.embeddedPages.push(...i),i}))}encrypt(e){this.context.security=Jc.create(this.context,e).encrypt()}flush(){return ui(this,void 0,void 0,(function*(){yield this.embedAll(this.fonts),yield this.embedAll(this.images),yield this.embedAll(this.embeddedPages),yield this.embedAll(this.embeddedFiles),yield this.embedAll(this.javaScripts)}))}save(e={}){return ui(this,void 0,void 0,(function*(){const t=this.context.header.getVersionString().split("."),r=e.rewrite||Number(t[0])>1||Number(t[1])>=5,{useObjectStreams:n=r,objectsPerTick:o=50,rewrite:i=!1}=e;Xn(n,"useObjectStreams",["boolean"]),Xn(o,"objectsPerTick",["number"]),Xn(i,"rewrite",["boolean"]);const s=!i&&this.context.pdfFileDetails.originalBytes&&this.context.snapshot;s&&(e.addDefaultPage=!1,e.updateFieldAppearances=!1),yield this.prepareForSave(e);const a=n?hs:wi;if(s){const e=yield a.forContextWithSnapshot(this.context,o,this.context.snapshot).serializeToBuffer(),t=new Uint8Array(this.context.pdfFileDetails.originalBytes.byteLength+e.byteLength);return t.set(this.context.pdfFileDetails.originalBytes),t.set(e,this.context.pdfFileDetails.originalBytes.byteLength),t}return a.forContext(this.context,o).serializeToBuffer()}))}saveIncremental(e,t={}){return ui(this,void 0,void 0,(function*(){const r=this.context.header.getVersionString().split("."),n=Number(r[0])>1||Number(r[1])>=5,{objectsPerTick:o=50}=t;Xn(o,"objectsPerTick",["number"]);const i=Object.assign(Object.assign({useObjectStreams:n},t),{addDefaultPage:!1,updateFieldAppearances:!1});yield this.prepareForSave(i);return(i.useObjectStreams?hs:wi).forContextWithSnapshot(this.context,o,e).serializeToBuffer()}))}saveAsBase64(e={}){return ui(this,void 0,void 0,(function*(){const{dataUri:t=!1}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["dataUri"]);Xn(t,"dataUri",["boolean"]);const o=yield this.save(r),i=n(o);return t?`data:application/pdf;base64,${i}`:i}))}findPageForAnnotationRef(e){const t=this.getPages();for(let r=0,n=t.length;r<n;r++){const n=t[r],o=n.node.Annots();if(void 0!==(null==o?void 0:o.indexOf(e)))return n}}takeSnapshot(){const e=new gi(this.context.largestObjectNumber,[],this.context.pdfFileDetails.pdfSize,this.context.pdfFileDetails.prevStartXRef,this.context);return!this.context.snapshot&&this.context.pdfFileDetails.originalBytes&&(this.context.snapshot=e,this.catalog.registerChange()),e}getChangedObjects(e=0){if(!this.context.preserveObjectsVersions)return[];e<0&&(e=0);const t=this.context.xrefs.length-e-1,r=this.context.listXrefEntries(t);if(!r.length)return[];const n=new Map;for(const e of r){const t=e.ref;n.set(t,{ref:t,actual:e.deleted?void 0:this.context.lookup(t),previous:this.context.getObjectVersions(t)})}if(!e)return Array.from(n.entries()).map((e=>e[1]));for(;e;){e-=1;const t=this.context.xrefs.length-e-1,r=this.context.listXrefEntries(t);for(const e of r){const t=n.get(e.ref);t&&t.actual&&(t.actual=t.previous[0],t.previous=t.previous.slice(1))}}return Array.from(n.entries()).map((e=>e[1])).filter((e=>e.actual||e.previous.length))}prepareForSave(e){return ui(this,void 0,void 0,(function*(){const{addDefaultPage:t=!0,updateFieldAppearances:r=!0}=e;if(Xn(t,"addDefaultPage",["boolean"]),Xn(r,"updateFieldAppearances",["boolean"]),t&&0===this.getPageCount()&&this.addPage(),r){const e=this.formCache.getValue();e&&e.updateFieldAppearances()}yield this.flush()}))}embedAll(e){return ui(this,void 0,void 0,(function*(){for(let t=0,r=e.length;t<r;t++)yield e[t].embed()}))}updateInfoDict(){const e="pdf-lib (https://github.com/Hopding/pdf-lib)",t=new Date,r=this.getInfoDict();this.setProducer(e),this.setModificationDate(t),r.get(Ko.of("Creator"))||this.setCreator(e),r.get(Ko.of("CreationDate"))||this.setCreationDate(t)}getInfoDict(){const e=this.context.lookup(this.context.trailerInfo.Info);if(e instanceof Zo)return e;const t=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(t),t}assertFontkit(){if(!this.fontkit)throw new Iu;return this.fontkit}}function rp(e){if(!(e instanceof Yo||e instanceof ti))throw new so([Yo,ti],e)}class np{constructor(e,t,r){this.fontSize=24,this.fontColor=ud(0,0,0),this.lineHeight=24,this.x=0,this.y=0,Xn(e,"leafNode",[[hi,"PDFPageLeaf"]]),Xn(t,"ref",[[ei,"PDFRef"]]),Xn(r,"doc",[[tp,"PDFDocument"]]),this.node=e,this.ref=t,this.doc=r}setRotation(e){const t=Al(e);_n(t,"degreesAngle",90),this.node.set(Ko.of("Rotate"),this.doc.context.obj(t))}getRotation(){const e=this.node.Rotate();return Fl(e?e.asNumber():0)}setSize(e,t){Xn(e,"width",["number"]),Xn(t,"height",["number"]);const r=this.getMediaBox();this.setMediaBox(r.x,r.y,e,t);const n=this.getCropBox(),o=this.getBleedBox(),i=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),c=this.node.BleedBox(),l=this.node.TrimBox(),h=this.node.ArtBox();a&&jn(n,r)&&this.setCropBox(r.x,r.y,e,t),c&&jn(o,r)&&this.setBleedBox(r.x,r.y,e,t),l&&jn(i,r)&&this.setTrimBox(r.x,r.y,e,t),h&&jn(s,r)&&this.setArtBox(r.x,r.y,e,t)}setWidth(e){Xn(e,"width",["number"]),this.setSize(e,this.getSize().height)}setHeight(e){Xn(e,"height",["number"]),this.setSize(this.getSize().width,e)}setMediaBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.MediaBox,o)}setCropBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.CropBox,o)}setBleedBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.BleedBox,o)}setTrimBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.TrimBox,o)}setArtBox(e,t,r,n){Xn(e,"x",["number"]),Xn(t,"y",["number"]),Xn(r,"width",["number"]),Xn(n,"height",["number"]);const o=this.doc.context.obj([e,t,e+r,t+n]);this.node.set(Ko.ArtBox,o)}getSize(){const{width:e,height:t}=this.getMediaBox();return{width:e,height:t}}getWidth(){return this.getSize().width}getHeight(){return this.getSize().height}getMediaBox(){return this.node.MediaBox().asRectangle()}getCropBox(){var e;const t=this.node.CropBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getMediaBox()}getBleedBox(){var e;const t=this.node.BleedBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()}getTrimBox(){var e;const t=this.node.TrimBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()}getArtBox(){var e;const t=this.node.ArtBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()}translateContent(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(Gl(),Ml(e,t)),n=this.doc.context.register(r),o=this.createContentStream(Kl()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)}scale(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.setSize(this.getWidth()*e,this.getHeight()*t),this.scaleContent(e,t),this.scaleAnnotations(e,t)}scaleContent(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(Gl(),jl(e,t)),n=this.doc.context.register(r),o=this.createContentStream(Kl()),i=this.doc.context.register(o);this.node.wrapContentStreams(n,i)}scaleAnnotations(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]);const r=this.node.Annots();if(r)for(let n=0;n<r.size();n++){const o=r.lookup(n);o instanceof Zo&&this.scaleAnnot(o,e,t)}}resetPosition(){this.getContentStream(!1),this.x=0,this.y=0}setFont(e){Xn(e,"font",[[wf,"PDFFont"]]),this.font=e,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)}setFontSize(e){Xn(e,"fontSize",["number"]),this.fontSize=e}setFontColor(e){Xn(e,"fontColor",[[Object,"Color"]]),this.fontColor=e}setLineHeight(e){Xn(e,"lineHeight",["number"]),this.lineHeight=e}getPosition(){return{x:this.x,y:this.y}}getX(){return this.x}getY(){return this.y}moveTo(e,t){Xn(e,"x",["number"]),Xn(t,"y",["number"]),this.x=e,this.y=t}moveDown(e){Xn(e,"yDecrease",["number"]),this.y-=e}moveUp(e){Xn(e,"yIncrease",["number"]),this.y+=e}moveLeft(e){Xn(e,"xDecrease",["number"]),this.x-=e}moveRight(e){Xn(e,"xIncrease",["number"]),this.x+=e}pushOperators(...e){Yn(e,"operator",[[ri,"PDFOperator"]]);this.getContentStream().push(...e)}drawText(t,r={}){var n,o,i,s,a,c,l;Xn(t,"text",["string"]),Zn(r.color,"options.color",[[Object,"Color"]]),Qn(r.opacity,"opacity.opacity",0,1),Zn(r.font,"options.font",[[wf,"PDFFont"]]),Zn(r.size,"options.size",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.lineHeight,"options.lineHeight",["number"]),Zn(r.maxWidth,"options.maxWidth",["number"]),Zn(r.wordBreaks,"options.wordBreaks",[Array]),Ln(r.blendMode,"options.blendMode",e.BlendMode),Zn(r.strokeColor,"options.strokeColor",[[Object,"Color"]]),Zn(r.strokeWidth,"options.strokeWidth",["number"]),Zn(r.renderMode,"options.renderMode",["number"]);const{oldFont:h,newFont:d,newFontKey:u}=this.setOrEmbedFont(r.font),f=r.size||this.fontSize,p=r.wordBreaks||this.doc.defaultWordBreaks,g=void 0===r.maxWidth?w(b(t)):k(t,p,r.maxWidth,(e=>d.widthOfTextAtSize(e,f))),m=new Array(g.length);for(let e=0,t=g.length;e<t;e++)m[e]=d.encodeText(g[e]);const y=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode});this.getContentStream().push(...Fu(m,{color:null!==(n=r.color)&&void 0!==n?n:this.fontColor,font:u,size:f,rotate:null!==(o=r.rotate)&&void 0!==o?o:Fl(0),xSkew:null!==(i=r.xSkew)&&void 0!==i?i:Fl(0),ySkew:null!==(s=r.ySkew)&&void 0!==s?s:Fl(0),x:null!==(a=r.x)&&void 0!==a?a:this.x,y:null!==(c=r.y)&&void 0!==c?c:this.y,lineHeight:null!==(l=r.lineHeight)&&void 0!==l?l:this.lineHeight,graphicsState:y,matrix:r.matrix,clipSpaces:r.clipSpaces,strokeColor:r.strokeColor,strokeWidth:r.strokeWidth,renderMode:r.renderMode})),r.font&&(h?this.setFont(h):this.resetFont())}drawImage(t,r={}){var n,o,i,s,a,c,l;Xn(t,"image",[[xf,"PDFImage"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.width,"options.width",["number"]),Zn(r.height,"options.height",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),Qn(r.opacity,"opacity.opacity",0,1),Ln(r.blendMode,"options.blendMode",e.BlendMode);const h=this.node.newXObject("Image",t.ref),d=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode});this.getContentStream().push(...Su(h,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,width:null!==(i=r.width)&&void 0!==i?i:t.size().width,height:null!==(s=r.height)&&void 0!==s?s:t.size().height,rotate:null!==(a=r.rotate)&&void 0!==a?a:Fl(0),xSkew:null!==(c=r.xSkew)&&void 0!==c?c:Fl(0),ySkew:null!==(l=r.ySkew)&&void 0!==l?l:Fl(0),graphicsState:d,matrix:r.matrix,clipSpaces:r.clipSpaces}))}drawPage(t,r={}){var n,o,i,s,a;Xn(t,"embeddedPage",[[vf,"PDFEmbeddedPage"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.xScale,"options.xScale",["number"]),Zn(r.yScale,"options.yScale",["number"]),Zn(r.width,"options.width",["number"]),Zn(r.height,"options.height",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(r.ySkew,"options.ySkew",[[Object,"Rotation"]]),Qn(r.opacity,"opacity.opacity",0,1),Ln(r.blendMode,"options.blendMode",e.BlendMode);const c=this.node.newXObject("EmbeddedPdfPage",t.ref),l=this.maybeEmbedGraphicsState({opacity:r.opacity,blendMode:r.blendMode}),h=void 0!==r.width?r.width/t.width:void 0!==r.xScale?r.xScale:1,d=void 0!==r.height?r.height/t.height:void 0!==r.yScale?r.yScale:1;this.getContentStream().push(...ku(c,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,xScale:h,yScale:d,rotate:null!==(i=r.rotate)&&void 0!==i?i:Fl(0),xSkew:null!==(s=r.xSkew)&&void 0!==s?s:Fl(0),ySkew:null!==(a=r.ySkew)&&void 0!==a?a:Fl(0),graphicsState:l}))}drawSvgPath(t,r={}){var n,o,i,s,a,c,l,h,d;Xn(t,"path",["string"]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.scale,"options.scale",["number"]),Zn(r.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(r.borderWidth,"options.borderWidth",["number"]),Zn(r.color,"options.color",[[Object,"Color"]]),Qn(r.opacity,"opacity.opacity",0,1),Zn(r.borderColor,"options.borderColor",[[Object,"Color"]]),Zn(r.borderDashArray,"options.borderDashArray",[Array]),Zn(r.borderDashPhase,"options.borderDashPhase",["number"]),Ln(r.borderLineCap,"options.borderLineCap",e.LineCapStyle),Qn(r.borderOpacity,"options.borderOpacity",0,1),Ln(r.blendMode,"options.blendMode",e.BlendMode),Ln(r.fillRule,"options.fillRule",e.FillRule);const u=this.maybeEmbedGraphicsState({opacity:r.opacity,borderOpacity:r.borderOpacity,blendMode:r.blendMode});"color"in r||"borderColor"in r||(r.borderColor=ud(0,0,0));this.getContentStream().push(...Ou(t,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,scale:r.scale,rotate:null!==(i=r.rotate)&&void 0!==i?i:Fl(0),color:null!==(s=r.color)&&void 0!==s?s:void 0,borderColor:null!==(a=r.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(c=r.borderWidth)&&void 0!==c?c:0,borderDashArray:null!==(l=r.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(h=r.borderDashPhase)&&void 0!==h?h:void 0,borderLineCap:null!==(d=r.borderLineCap)&&void 0!==d?d:void 0,graphicsState:u,fillRule:r.fillRule,matrix:r.matrix,clipSpaces:r.clipSpaces}))}drawLine(t){var r,n,o,i,s;Xn(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),Xn(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),Xn(t.start.x,"options.start.x",["number"]),Xn(t.start.y,"options.start.y",["number"]),Xn(t.end.x,"options.end.x",["number"]),Xn(t.end.y,"options.end.y",["number"]),Zn(t.thickness,"options.thickness",["number"]),Zn(t.color,"options.color",[[Object,"Color"]]),Zn(t.dashArray,"options.dashArray",[Array]),Zn(t.dashPhase,"options.dashPhase",["number"]),Ln(t.lineCap,"options.lineCap",e.LineCapStyle),Qn(t.opacity,"opacity.opacity",0,1),Ln(t.blendMode,"options.blendMode",e.BlendMode);const a=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=ud(0,0,0));this.getContentStream().push(...Cu({start:t.start,end:t.end,thickness:null!==(r=t.thickness)&&void 0!==r?r:1,color:null!==(n=t.color)&&void 0!==n?n:void 0,dashArray:null!==(o=t.dashArray)&&void 0!==o?o:void 0,dashPhase:null!==(i=t.dashPhase)&&void 0!==i?i:void 0,lineCap:null!==(s=t.lineCap)&&void 0!==s?s:void 0,graphicsState:a,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawRectangle(t={}){var r,n,o,i,s,a,c,l,h,d,u,f,p,g,m;Zn(t.x,"options.x",["number"]),Zn(t.y,"options.y",["number"]),Zn(t.width,"options.width",["number"]),Zn(t.height,"options.height",["number"]),Zn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Zn(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Zn(t.borderWidth,"options.borderWidth",["number"]),Zn(t.color,"options.color",[[Object,"Color"]]),Qn(t.opacity,"options.opacity",0,1),Zn(t.rx,"options.rx",["number"]),Zn(t.ry,"options.ry",["number"]),Zn(t.borderColor,"options.borderColor",[[Object,"Color"]]),Zn(t.borderDashArray,"options.borderDashArray",[Array]),Zn(t.borderDashPhase,"options.borderDashPhase",["number"]),Ln(t.borderLineCap,"options.borderLineCap",e.LineCapStyle),Qn(t.borderOpacity,"options.borderOpacity",0,1),Ln(t.blendMode,"options.blendMode",e.BlendMode);const b=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=ud(0,0,0));this.getContentStream().push(...Tu({x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,width:null!==(o=t.width)&&void 0!==o?o:150,height:null!==(i=t.height)&&void 0!==i?i:100,rotate:null!==(s=t.rotate)&&void 0!==s?s:Fl(0),xSkew:null!==(a=t.xSkew)&&void 0!==a?a:Fl(0),ySkew:null!==(c=t.ySkew)&&void 0!==c?c:Fl(0),borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,color:null!==(h=t.color)&&void 0!==h?h:void 0,rx:null!==(d=t.rx)&&void 0!==d?d:0,ry:null!==(u=t.ry)&&void 0!==u?u:0,borderColor:null!==(f=t.borderColor)&&void 0!==f?f:void 0,borderDashArray:null!==(p=t.borderDashArray)&&void 0!==p?p:void 0,borderDashPhase:null!==(g=t.borderDashPhase)&&void 0!==g?g:void 0,graphicsState:b,borderLineCap:null!==(m=t.borderLineCap)&&void 0!==m?m:void 0,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawSquare(e={}){const{size:t}=e;Zn(t,"size",["number"]),this.drawRectangle(Object.assign(Object.assign({},e),{width:t,height:t}))}drawEllipse(t={}){var r,n,o,i,s,a,c,l,h,d,u;Zn(t.x,"options.x",["number"]),Zn(t.y,"options.y",["number"]),Zn(t.xScale,"options.xScale",["number"]),Zn(t.yScale,"options.yScale",["number"]),Zn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Zn(t.color,"options.color",[[Object,"Color"]]),Qn(t.opacity,"opacity.opacity",0,1),Zn(t.borderColor,"options.borderColor",[[Object,"Color"]]),Qn(t.borderOpacity,"options.borderOpacity",0,1),Zn(t.borderWidth,"options.borderWidth",["number"]),Zn(t.borderDashArray,"options.borderDashArray",[Array]),Zn(t.borderDashPhase,"options.borderDashPhase",["number"]),Ln(t.borderLineCap,"options.borderLineCap",e.LineCapStyle),Ln(t.blendMode,"options.blendMode",e.BlendMode);const f=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=ud(0,0,0));this.getContentStream().push(...Du({x:null!==(r=t.x)&&void 0!==r?r:this.x,y:null!==(n=t.y)&&void 0!==n?n:this.y,xScale:null!==(o=t.xScale)&&void 0!==o?o:100,yScale:null!==(i=t.yScale)&&void 0!==i?i:100,rotate:null!==(s=t.rotate)&&void 0!==s?s:void 0,color:null!==(a=t.color)&&void 0!==a?a:void 0,borderColor:null!==(c=t.borderColor)&&void 0!==c?c:void 0,borderWidth:null!==(l=t.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(h=t.borderDashArray)&&void 0!==h?h:void 0,borderDashPhase:null!==(d=t.borderDashPhase)&&void 0!==d?d:void 0,borderLineCap:null!==(u=t.borderLineCap)&&void 0!==u?u:void 0,graphicsState:f,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawCircle(e={}){const{size:t=100}=e;Zn(t,"size",["number"]),this.drawEllipse(Object.assign(Object.assign({},e),{xScale:t,yScale:t}))}setOrEmbedFont(e){const t=this.font,r=this.fontKey;e?this.setFont(e):this.getFont();return{oldFont:t,oldFontKey:r,newFont:this.font,newFontKey:this.fontKey}}drawSvg(t,r={}){var n,o;Xn(t,"svg",["string",[_d,"PDFSvg"]]),Zn(r.x,"options.x",["number"]),Zn(r.y,"options.y",["number"]),Zn(r.width,"options.width",["number"]),Zn(r.height,"options.height",["number"]),Ln(r.blendMode,"options.blendMode",e.BlendMode),vu(this,t,{x:null!==(n=r.x)&&void 0!==n?n:this.x,y:null!==(o=r.y)&&void 0!==o?o:this.y,fonts:r.fonts,width:r.width,height:r.height,blendMode:r.blendMode})}getFont(){if(!this.font||!this.fontKey){const t=this.doc.embedStandardFont(e.StandardFonts.Helvetica);this.setFont(t)}return[this.font,this.fontKey]}resetFont(){this.font=void 0,this.fontKey=void 0}getContentStream(e=!0){return e&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream}createContentStream(...e){const t=this.doc.context.obj({});return si.of(t,e)}maybeEmbedGraphicsState(e){const{opacity:t,borderOpacity:r,blendMode:n}=e;if(void 0===t&&void 0===r&&void 0===n)return;const o=this.doc.context.obj({Type:"ExtGState",ca:t,CA:r,BM:n});return this.node.newExtGState("GS",o)}scaleAnnot(e,t,r){const n=["RD","CL","Vertices","QuadPoints","L","Rect"];for(let o=0,i=n.length;o<i;o++){const i=e.lookup(Ko.of(n[o]));i instanceof zo&&i.scalePDFNumbers(t,r)}const o=e.lookup(Ko.of("InkList"));if(o instanceof zo)for(let e=0,n=o.size();e<n;e++){const n=o.lookup(e);n instanceof zo&&n.scalePDFNumbers(t,r)}}}np.of=(e,t,r)=>new np(e,t,r),np.create=e=>{Xn(e,"doc",[[tp,"PDFDocument"]]);const t=ei.of(-1),r=hi.withContextAndParent(e.context,t),n=e.context.register(r);return new np(r,n,e)};class op extends kf{constructor(e,t,r){super(e,t,r),Xn(e,"acroButton",[[Wi,"PDFAcroPushButton"]]),this.acroField=e}setImage(t,r=e.ImageAlignment.Center){const n=this.acroField.getWidgets();for(let e=0,o=n.length;e<o;e++){const o=n[e],i=this.createImageAppearanceStream(o,t,r);this.updateWidgetAppearances(o,{normal:i})}this.markAsClean()}setFontSize(e){eo(e,"fontSize"),this.acroField.setFontSize(e),this.markAsDirty()}addToPage(e,t,r){var n,o,i,s,a,c,l,h,d,u,f;Zn(e,"text",["string"]),Zn(t,"page",[[np,"PDFPage"]]),Sf(r);const p=this.createWidget({x:(null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0)-(null!==(o=null==r?void 0:r.borderWidth)&&void 0!==o?o:0)/2,y:(null!==(i=null==r?void 0:r.y)&&void 0!==i?i:0)-(null!==(s=null==r?void 0:r.borderWidth)&&void 0!==s?s:0)/2,width:null!==(a=null==r?void 0:r.width)&&void 0!==a?a:100,height:null!==(c=null==r?void 0:r.height)&&void 0!==c?c:50,textColor:null!==(l=null==r?void 0:r.textColor)&&void 0!==l?l:ud(0,0,0),backgroundColor:null!==(h=null==r?void 0:r.backgroundColor)&&void 0!==h?h:ud(.75,.75,.75),borderColor:null==r?void 0:r.borderColor,borderWidth:null!==(d=null==r?void 0:r.borderWidth)&&void 0!==d?d:0,rotate:null!==(u=null==r?void 0:r.rotate)&&void 0!==u?u:Fl(0),caption:e,hidden:null==r?void 0:r.hidden,page:t.ref}),g=this.doc.context.register(p.dict);this.acroField.addWidget(g);const m=null!==(f=null==r?void 0:r.font)&&void 0!==f?f:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,m),t.node.addAnnot(g)}needsAppearancesUpdate(){var e;if(this.isDirty())return!0;const t=this.acroField.getWidgets();for(let r=0,n=t.length;r<n;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof Jo))return!0}return!1}defaultUpdateAppearances(e){Xn(e,"font",[[wf,"PDFFont"]]),this.updateAppearances(e)}updateAppearances(e,t){Xn(e,"font",[[wf,"PDFFont"]]),Zn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,o=r.length;n<o;n++){const o=r[n];this.updateWidgetAppearance(o,e,t)}}updateWidgetAppearance(e,t,r){const n=af((null!=r?r:gf)(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)}}op.of=(e,t,r)=>new op(e,t,r),e.AppearanceCharacteristics=Di,e.Cache=no,e.CharCodes=Eo,e.CombedTextLayoutError=Ju,e.CorruptPageTreeError=bo,e.CustomFontEmbedder=bs,e.CustomFontSubsetEmbedder=ys,e.DefaultDocumentSnapshot=fi,e.EncryptedPDFError=Uu,e.ExceededMaxLengthError=Qu,e.FieldAlreadyExistsError=Ku,e.FieldExistsAsNonTerminalError=Zu,e.FileEmbedder=ws,e.FontkitNotRegisteredError=Iu,e.ForeignPageError=Vu,e.IncrementalDocumentSnapshot=gi,e.IndexOutOfBoundsError=yo,e.InvalidAcroFieldValueError=vo,e.InvalidFieldNamePartError=Xu,e.InvalidMaxLengthError=_u,e.InvalidPDFDateStringError=go,e.InvalidTargetIndexError=mo,e.JpegEmbedder=ks,e.MethodNotImplementedError=oo,e.MissingCatalogError=lo,e.MissingDAEntryError=xo,e.MissingKeywordError=Po,e.MissingOnValueCheckError=Gu,e.MissingPDFHeaderError=No,e.MissingPageContentsEmbeddingError=ho,e.MissingTfOperatorError=Fo,e.MultiSelectValueError=wo,e.NextByteAssertionError=Co,e.NoSuchFieldError=Wu,e.NumberParsingError=So,e.PDFAcroButton=Ni,e.PDFAcroCheckBox=Pi,e.PDFAcroChoice=zi,e.PDFAcroComboBox=Ui,e.PDFAcroField=Ci,e.PDFAcroForm=ts,e.PDFAcroListBox=Gi,e.PDFAcroNonTerminal=Ii,e.PDFAcroPushButton=Wi,e.PDFAcroRadioButton=Hi,e.PDFAcroSignature=Vi,e.PDFAcroTerminal=Bi,e.PDFAcroText=Li,e.PDFAnnotation=Ti,e.PDFArray=zo,e.PDFArrayIsNotRectangleError=po,e.PDFBool=Io,e.PDFButton=op,e.PDFCatalog=cs,e.PDFCheckBox=Cf,e.PDFContentStream=si,e.PDFContext=li,e.PDFCrossRefSection=mi,e.PDFCrossRefStream=Si,e.PDFDict=Zo,e.PDFDocument=tp,e.PDFDropdown=Af,e.PDFEmbeddedPage=vf,e.PDFField=kf,e.PDFFlateStream=ii,e.PDFFont=wf,e.PDFForm=Pf,e.PDFHeader=Mo,e.PDFHexString=Yo,e.PDFImage=xf,e.PDFInvalidObject=xi,e.PDFInvalidObjectParsingError=To,e.PDFJavaScript=Uf,e.PDFName=Ko,e.PDFNull=Xo,e.PDFNumber=qo,e.PDFObject=jo,e.PDFObjectCopier=di,e.PDFObjectParser=ca,e.PDFObjectParsingError=Ao,e.PDFObjectStream=vi,e.PDFObjectStreamParser=la,e.PDFOperator=ri,e.PDFOperatorNames=oi,e.PDFOptionList=Tf,e.PDFPage=np,e.PDFPageEmbedder=Zs,e.PDFPageLeaf=hi,e.PDFPageTree=ls,e.PDFParser=da,e.PDFParsingError=ko,e.PDFRadioGroup=Df,e.PDFRawStream=Qo,e.PDFRef=ei,e.PDFSecurity=Jc,e.PDFSignature=Of,e.PDFStream=Jo,e.PDFStreamParsingError=Do,e.PDFStreamWriter=hs,e.PDFString=ti,e.PDFSvg=_d,e.PDFTextField=Bf,e.PDFTrailer=bi,e.PDFTrailerDict=yi,e.PDFWidgetAnnotation=Oi,e.PDFWriter=wi,e.PDFXRefStreamParser=ha,e.PageEmbeddingMismatchedContextError=fo,e.PageSizes=jf,e.PngEmbedder=Ns,e.PrivateConstructorError=io,e.RemovePageFromEmptyDocumentError=Lu,e.ReparseError=co,e.RichTextFieldReadError=Yu,e.StalledParserError=Bo,e.StandardFontEmbedder=ds,e.StandardFontValues=En,e.UnbalancedParenthesisError=Oo,e.UnexpectedFieldTypeError=Hu,e.UnexpectedObjectTypeError=so,e.UnrecognizedStreamTypeError=uo,e.UnsupportedEncodingError=ao,e.ViewerPreferences=as,e.addRandomSuffix=(e,t=4)=>`${e}-${Math.floor(Math.random()*Math.pow(10,t))}`,e.adjustDimsForRotation=Dl,e.appendBezierCurve=Zl,e.appendQuadraticCurve=Yl,e.arrayAsString=P,e.asNumber=wl,e.asPDFName=yl,e.asPDFNumber=vl,e.assertEachIs=Yn,e.assertInteger=$n,e.assertIs=Xn,e.assertIsOneOf=Vn,e.assertIsOneOfOrUndefined=Ln,e.assertIsSubset=Wn,e.assertMultiple=_n,e.assertOrUndefined=Zn,e.assertPositive=eo,e.assertRange=Jn,e.assertRangeOrUndefined=Qn,e.backtick=qn,e.beginMarkedContent=Sh,e.beginText=ch,e.breakTextIntoLines=k,e.byAscendingId=R,e.byteArrayToHexString=W,e.bytesFor=ce,e.canBeConvertedToUint8Array=I,e.charAtIndex=F,e.charFromCode=d,e.charFromHexCode=u,e.charSplit=S,e.cleanText=b,e.clip=Bl,e.clipEvenOdd=()=>ri.of(oi.ClipEvenOdd),e.closePath=Jl,e.cmyk=fd,e.colorString=pd,e.colorToComponents=yd,e.componentsToColor=bd,e.concatTransformationMatrix=El,e.copyStringIntoBuffer=g,e.createPDFAcroField=Xi,e.createPDFAcroFields=Ki,e.createTypeErrorMsg=Kn,e.createValueErrorMsg=In,e.decodeFromBase64=o,e.decodeFromBase64DataUri=s,e.decodePDFRawStream=Xs,e.defaultButtonAppearanceProvider=gf,e.defaultCheckBoxAppearanceProvider=ff,e.defaultDocumentSnapshot=pi,e.defaultDropdownAppearanceProvider=bf,e.defaultOptionListAppearanceProvider=yf,e.defaultRadioGroupAppearanceProvider=pf,e.defaultTextFieldAppearanceProvider=mf,e.degrees=Fl,e.degreesToRadians=Sl,e.drawButton=Eu,e.drawCheckBox=Pu,e.drawCheckMark=Bu,e.drawEllipse=Du,e.drawImage=Su,e.drawLine=Cu,e.drawLinesOfText=Fu,e.drawObject=mh,e.drawOptionList=qu,e.drawPage=ku,e.drawRadioButton=Ru,e.drawRectangle=Tu,e.drawSvgPath=Ou,e.drawText=(e,t)=>[Gl(),t.graphicsState&&Hl(t.graphicsState),ch(),gd(t.color),hh(t.font,t.size),t.strokeWidth&&Xl(t.strokeWidth),t.strokeColor&&md(t.strokeColor),t.renderMode&&fh(t.renderMode),gh(Cl(t.rotate),Cl(t.xSkew),Cl(t.ySkew),t.x,t.y),ah(e),lh(),Kl()].filter(Boolean),e.drawTextField=ju,e.drawTextLines=Mu,e.encodeToBase64=n,e.endMarkedContent=kh,e.endPath=ih,e.endText=lh,e.error=le,e.escapeRegExp=m,e.escapedNewlineChars=y,e.fill=rh,e.fillAndStroke=oh,e.fillEvenOdd=nh,e.findLastMatch=T,e.getType=Hn,e.grayscale=dd,e.hasSurrogates=X,e.hasUtf16BOM=ie,e.highSurrogate=Z,e.isArrayEqual=M,e.isNewlineChar=v,e.isStandardFont=Mn,e.isType=Gn,e.isWithinBMP=K,e.last=D,e.layoutCombedText=of,e.layoutMultilineText=nf,e.layoutSinglelineText=sf,e.lineSplit=w,e.lineTo=_l,e.lowSurrogate=Y,e.mergeIntoTypedArray=B,e.mergeLines=x,e.mergeUint8Arrays=N,e.moveText=(e,t)=>ri.of(oi.MoveText,[vl(e),vl(t)]),e.moveTo=Ql,e.newlineChars=["\n","\f","\r","\v"],e.nextLine=sh,e.normalizeAppearance=af,e.numberToString=se,e.padStart=f,e.parseDate=A,e.pdfDocEncodingDecode=ro,e.pluckIndices=U,e.popGraphicsState=Kl,e.pushGraphicsState=Gl,e.radians=t=>(Xn(t,"radianAngle",["number"]),{type:e.RotationTypes.Radians,angle:t}),e.radiansToDegrees=kl,e.range=z,e.rectangle=$l,e.rectanglesAreEqual=jn,e.reduceRotation=Tl,e.restoreDashPattern=()=>Il([],0),e.reverseArray=j,e.rgb=ud,e.rotateAndSkewTextDegreesAndTranslate=(e,t,r,n,o)=>gh(Sl(wl(e)),Sl(wl(t)),Sl(wl(r)),n,o),e.rotateAndSkewTextRadiansAndTranslate=gh,e.rotateDegrees=zl,e.rotateInPlace=Nu,e.rotateRadians=ql,e.rotateRectangle=Ol,e.scale=jl,e.setCharacterSpacing=e=>ri.of(oi.SetCharacterSpacing,[vl(e)]),e.setCharacterSqueeze=e=>ri.of(oi.SetTextHorizontalScaling,[vl(e)]),e.setDashPattern=Il,e.setFillingCmykColor=xh,e.setFillingColor=gd,e.setFillingGrayscaleColor=bh,e.setFillingRgbColor=vh,e.setFontAndSize=hh,e.setGraphicsState=Hl,e.setLineCap=Ll,e.setLineHeight=dh,e.setLineJoin=e=>ri.of(oi.SetLineJoinStyle,[vl(e)]),e.setLineWidth=Xl,e.setStrokingCmykColor=Fh,e.setStrokingColor=md,e.setStrokingGrayscaleColor=yh,e.setStrokingRgbColor=wh,e.setTextMatrix=ph,e.setTextRenderingMode=fh,e.setTextRise=e=>ri.of(oi.SetTextRise,[vl(e)]),e.setWordSpacing=e=>ri.of(oi.SetWordSpacing,[vl(e)]),e.showText=ah,e.singleQuote=zn,e.sizeInBytes=ae,e.skewDegrees=(e,t)=>Ul(Sl(wl(e)),Sl(wl(t))),e.skewRadians=Ul,e.sortedUniq=E,e.square=(e,t,r)=>$l(e,t,r,r),e.stringAsByteArray=p,e.stroke=eh,e.sum=q,e.toCharCode=a,e.toCodePoint=c,e.toDegrees=Al,e.toHexString=h,e.toHexStringOfMinLength=l,e.toRadians=Cl,e.toUint8Array=V,e.translate=Ml,e.typedArrayFor=O,e.utf16Decode=_,e.utf16Encode=G,e.utf8Encode=(e,t=!0)=>{const r=[];t&&r.push(239,187,191);for(let t=0,n=e.length;t<n;){const n=e.codePointAt(t);if(n<128){const e=127&n;r.push(e),t+=1}else if(n<2048){const e=n>>6&31|192,o=63&n|128;r.push(e,o),t+=1}else if(n<65536){const e=n>>12&15|224,o=n>>6&63|128,i=63&n|128;r.push(e,o,i),t+=1}else{if(!(n<1114112))throw new Error(`Invalid code point: 0x${h(n)}`);{const e=n>>18&7|240,o=n>>12&63|128,i=n>>6&63|128,s=n>>0&63|128;r.push(e,o,i,s),t+=2}}}return new Uint8Array(r)},e.values=Rn,e.waitForTick=H}));
|
|
19
19
|
//# sourceMappingURL=pdf-lib.min.js.map
|