@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.esm.min.js
CHANGED
|
@@ -15,5 +15,5 @@ return t.mode.CTRGladman=function(){var e=t.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(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=i.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=i.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=i.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=i.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=i.create([0,1518500249,1859775393,2400959708,2840853838]),u=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,f,w,x,k,S,F,C,A,O,T=this._hash.words,N=d.words,D=u.words,B=a.words,R=c.words,E=l.words,P=h.words;for(k=o=T[0],S=s=T[1],F=f=T[2],C=w=T[3],A=x=T[4],r=0;r<80;r+=1)O=o+t[e+B[r]]|0,O+=r<16?p(s,f,w)+N[0]:r<32?g(s,f,w)+N[1]:r<48?m(s,f,w)+N[2]:r<64?b(s,f,w)+N[3]:y(s,f,w)+N[4],O=(O=v(O|=0,E[r]))+x|0,o=x,x=w,w=v(f,10),f=s,s=O,O=k+t[e+R[r]]|0,O+=r<16?y(S,F,C)+D[0]:r<32?b(S,F,C)+D[1]:r<48?m(S,F,C)+D[2]:r<64?g(S,F,C)+D[3]:p(S,F,C)+D[4],O=(O=v(O|=0,P[r]))+A|0,k=A,A=C,C=v(F,10),F=S,S=O;O=T[1]+f+C|0,T[1]=T[2]+w+A|0,T[2]=T[3]+x+k|0,T[3]=T[4]+o+S|0,T[4]=T[0]+s+F|0,T[0]=O},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function g(t,e,r){return t&e|~t&r}function m(t,e,r){return(t|~e)^r}function b(t,e,r){return t&r|e&~r}function y(t,e,r){return t^(e|~r)}function v(t,e){return t<<e|t>>>32-e}r.RIPEMD160=o._createHelper(f),r.HmacRIPEMD160=o._createHmacHelper(f)}(),t.RIPEMD160}(ba())),rc(),nc||(nc=1,ic.exports=function(t){return n=(r=(e=t).lib).Base,i=r.WordArray,s=(o=e.algo).SHA256,a=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=a.create(r.hasher,t),o=i.create(),s=i.create([1]),c=o.words,l=s.words,h=r.keySize,d=r.iterations;c.length<h;){var u=n.update(e).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]}o.concat(u),l[0]++}return o.sigBytes=4*h,o}}),e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)},t.PBKDF2;var e,r,n,i,o,s,a,c}(ba(),Ia(),rc())),ac(),hc(),fc(),mc(),vc(),kc(),Sc||(Sc=1,Fc.exports=function(t){return t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e),t.mode.ECB;var e}(ba(),hc())),Cc||(Cc=1,Ac.exports=function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}(ba(),hc())),Oc||(Oc=1,Tc.exports=function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}(ba(),hc())),Nc||(Nc=1,Dc.exports=function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}(ba(),hc())),Bc||(Bc=1,Rc.exports=function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}(ba(),hc())),Ec||(Ec=1,Pc.exports=function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}(ba(),hc())),jc||(jc=1,qc.exports=function(t){return r=(e=t).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}},t.format.Hex;var e,r,n}(ba(),hc())),Mc||(Mc=1,zc.exports=function(t){return function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],s=[],a=[],c=[],l=[],h=[],d=[],u=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=t[r],m=t[g],b=t[m],y=257*t[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^t[t[t[b^g]]],n^=t[t[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 t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],s=0;s<n;s++)s<r?o[s]=e[s]:(l=o[s-1],s%r?r>6&&s%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[s/r|0]<<24),o[s]=o[s-r]^l);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var l=o[s];else l=o[s-4];a[c]=c<4||s<=4?l:h[i[l>>>24]]^d[i[l>>>16&255]]^u[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,l,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,h,d,u,f,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var c=this._nRounds,l=t[e]^r[0],h=t[e+1]^r[1],d=t[e+2]^r[2],u=t[e+3]^r[3],f=4,p=1;p<c;p++){var g=n[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&u]^r[f++],m=n[h>>>24]^i[d>>>16&255]^o[u>>>8&255]^s[255&l]^r[f++],b=n[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^s[255&h]^r[f++],y=n[u>>>24]^i[l>>>16&255]^o[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++],t[e]=g,t[e+1]=m,t[e+2]=b,t[e+3]=y},keySize:8});e.AES=r._createHelper(g)}(),t.AES}(ba(),Na(),ja(),ac(),hc())),Ic(),Lc||(Lc=1,Wc.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var s=i%r,a=e[s>>>2]>>>24-s%4*8&255;o=(o+n[i]+a)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4}(ba(),Na(),ja(),ac(),hc())),Hc||(Hc=1,Kc.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,s=o[0],a=o[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(i[0]^=l,i[1]^=d,i[2]^=h,i[3]^=u,i[4]^=l,i[5]^=d,i[6]^=h,i[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit}(ba(),Na(),ja(),ac(),hc())),Gc||(Gc=1,Xc.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,s=o[0],a=o[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,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy}(ba(),Na(),ja(),ac(),hc())),Jc());var Qc=ft(pa.exports);class _c{static create(t,e){return new _c(t,e)}constructor(t,e){if(!e.ownerPassword&&!e.userPassword)throw new Error("Either an owner password or a user password must be specified.");this.context=t,this.initialize(e)}initialize(t){let e;switch(this.id=$c(),this.context.header.getVersionString()){case"1.4":case"1.5":e=2;break;case"1.6":case"1.7":e=4;break;case"1.7ext3":e=5;break;default:e=1}switch(e){case 1:case 2:case 4:this.encryption=this.initializeV1V2V4(e,t);break;case 5:this.encryption=this.initializeV5(t)}}initializeV1V2V4(t,e){const r={Filter:"Standard"};let n,i;switch(t){case 1:n=2,this.keyBits=40,i=el(e.permissions);break;case 2:n=3,this.keyBits=128,i=rl(e.permissions);break;case 4:n=4,this.keyBits=128,i=rl(e.permissions);break;default:throw new Error(`Unsupported algorithm '${t}'.`)}const o=fl(e.userPassword),s=e.ownerPassword?fl(e.ownerPassword):o,a=ol(n,this.keyBits,o,s);let c;return this.encryptionKey=sl(n,this.keyBits,this.id,o,a,i),c=2===n?nl(this.encryptionKey):il(this.id,this.encryptionKey),r.V=t,t>=2&&(r.Length=this.keyBits),4===t&&(r.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},r.StmF="StdCF",r.StrF="StdCF"),r.R=n,r.O=ml(a),r.U=ml(c),r.P=i,r}initializeV5(t){const e={Filter:"Standard"};this.keyBits=256,this.encryptionKey=dl(tl);const r=pl(t.userPassword),n=al(r,tl),i=Qc.lib.WordArray.create(n.words.slice(10,12),8),o=cl(r,i,this.encryptionKey),s=t.ownerPassword?pl(t.ownerPassword):r,a=ll(s,n,tl),c=Qc.lib.WordArray.create(a.words.slice(10,12),8),l=hl(s,c,n,this.encryptionKey),h=rl(t.permissions),d=ul(h,this.encryptionKey,tl);return e.V=5,e.Length=this.keyBits,e.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},e.StmF="StdCF",e.StrF="StdCF",e.R=5,e.O=ml(a),e.OE=ml(l),e.U=ml(n),e.UE=ml(o),e.P=h,e.Perms=ml(d),e}getEncryptFn(t,e){const r=this.encryption.V;let n,i;if(r<5){if(n=this.encryptionKey.clone().concat(Qc.lib.WordArray.create([(255&t)<<24|(65280&t)<<8|t>>8&65280|255&e,(65280&e)<<16],5)),1===r||2===r)return i=Qc.MD5(n),i.sigBytes=Math.min(16,this.keyBits/8+5),t=>ml(Qc.RC4.encrypt(Qc.lib.WordArray.create(t),i).ciphertext);4===r&&(i=Qc.MD5(n.concat(Qc.lib.WordArray.create([1933667412],4))))}else{if(5!==r)throw new Error(`Unsupported algorithm '${r}'.`);i=this.encryptionKey}const o=tl(16),s={mode:Qc.mode.CBC,padding:Qc.pad.Pkcs7,iv:o};return t=>ml(o.clone().concat(Qc.AES.encrypt(Qc.lib.WordArray.create(t),i,s).ciphertext))}encrypt(){const t=this.context.obj([this.id,this.id]);this.context.trailerInfo.ID=t;const e=this.context.obj(this.encryption);return this.context.trailerInfo.Encrypt=this.context.register(e),this}}const $c=()=>ml(Qc.MD5(Date.now().toString())),tl=t=>Qc.lib.WordArray.random(t),el=(t={})=>{let e=-64;return t.printing&&(e|=4),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),e},rl=(t={})=>{let e=-3904;return("lowResolution"===t.printing||t.printing)&&(e|=4),"highResolution"===t.printing&&(e|=2052),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),t.fillingForms&&(e|=256),t.contentAccessibility&&(e|=512),t.documentAssembly&&(e|=1024),e},nl=t=>Qc.RC4.encrypt(fl(),t).ciphertext,il=(t,e)=>{const r=e.clone();let n=Qc.MD5(fl().concat(Qc.lib.WordArray.create(t)));for(let t=0;t<20;t++){const i=Math.ceil(r.sigBytes/4);for(let n=0;n<i;n++)r.words[n]=e.words[n]^(t|t<<8|t<<16|t<<24);n=Qc.RC4.encrypt(n,r).ciphertext}return n.concat(Qc.lib.WordArray.create(null,16))},ol=(t,e,r,n)=>{let i=n,o=t>=3?51:1;for(let t=0;t<o;t++)i=Qc.MD5(i);const s=i.clone();s.sigBytes=e/8;let a=r;o=t>=3?20:1;for(let t=0;t<o;t++){const e=Math.ceil(s.sigBytes/4);for(let r=0;r<e;r++)s.words[r]=i.words[r]^(t|t<<8|t<<16|t<<24);a=Qc.RC4.encrypt(a,s).ciphertext}return a},sl=(t,e,r,n,i,o)=>{let s=n.clone().concat(i).concat(Qc.lib.WordArray.create([gl(o)],4)).concat(Qc.lib.WordArray.create(r));const a=t>=3?51:1;for(let t=0;t<a;t++)s=Qc.MD5(s),s.sigBytes=e/8;return s},al=(t,e)=>{const r=e(8),n=e(8);return Qc.SHA256(t.clone().concat(r)).concat(r).concat(n)},cl=(t,e,r)=>{const n=Qc.SHA256(t.clone().concat(e)),i={mode:Qc.mode.CBC,padding:Qc.pad.NoPadding,iv:Qc.lib.WordArray.create(null,16)};return Qc.AES.encrypt(r,n,i).ciphertext},ll=(t,e,r)=>{const n=r(8),i=r(8);return Qc.SHA256(t.clone().concat(n).concat(e)).concat(n).concat(i)},hl=(t,e,r,n)=>{const i=Qc.SHA256(t.clone().concat(e).concat(r)),o={mode:Qc.mode.CBC,padding:Qc.pad.NoPadding,iv:Qc.lib.WordArray.create(null,16)};return Qc.AES.encrypt(n,i,o).ciphertext},dl=t=>t(32),ul=(t,e,r)=>{const n=Qc.lib.WordArray.create([gl(t),4294967295,1415668834],12).concat(r(4)),i={mode:Qc.mode.ECB,padding:Qc.pad.NoPadding};return Qc.AES.encrypt(n,e,i).ciphertext},fl=(t="")=>{const e=new Uint8Array(32),r=t.length;let n=0;for(;n<r&&n<32;){const r=t.charCodeAt(n);if(r>255)throw new Error("Password contains one or more invalid characters.");e[n]=r,n++}for(;n<32;)e[n]=bl[n-r],n++;return Qc.lib.WordArray.create(e)},pl=(t="")=>{const e=Math.min(127,t.length),r=new Uint8Array(e);for(let n=0;n<e;n++)r[n]=t.charCodeAt(n);return Qc.lib.WordArray.create(r)},gl=t=>(255&t)<<24|(65280&t)<<8|t>>8&65280|t>>24&255,ml=t=>{const e=[];for(let r=0;r<t.sigBytes;r++)e.push(t.words[Math.floor(r/4)]>>8*(3-r%4)&255);return Uint8Array.from(e)},bl=[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],yl=t=>1<<t;var vl;!function(t){t[t.Invisible=yl(0)]="Invisible",t[t.Hidden=yl(1)]="Hidden",t[t.Print=yl(2)]="Print",t[t.NoZoom=yl(3)]="NoZoom",t[t.NoRotate=yl(4)]="NoRotate",t[t.NoView=yl(5)]="NoView",t[t.ReadOnly=yl(6)]="ReadOnly",t[t.Locked=yl(7)]="Locked",t[t.ToggleNoView=yl(8)]="ToggleNoView",t[t.LockedContents=yl(9)]="LockedContents"}(vl||(vl={}));const wl=t=>t instanceof Xi?t:Xi.of(t),xl=t=>t instanceof zi?t:zi.of(t),kl=t=>t instanceof zi?t.asNumber():t;var Sl;!function(t){t.Degrees="degrees",t.Radians="radians"}(Sl||(Sl={}));const Fl=t=>(Yn(t,"radianAngle",["number"]),{type:Sl.Radians,angle:t}),Cl=t=>(Yn(t,"degreeAngle",["number"]),{type:Sl.Degrees,angle:t}),Al=t=>t*Math.PI/180,Ol=t=>180*t/Math.PI,Tl=t=>t.type===Sl.Radians?t.angle:t.type===Sl.Degrees?Al(t.angle):dt(`Invalid rotation: ${JSON.stringify(t)}`),Nl=t=>t.type===Sl.Radians?Ol(t.angle):t.type===Sl.Degrees?t.angle:dt(`Invalid rotation: ${JSON.stringify(t)}`),Dl=(t=0)=>{const e=t/90%4;return 0===e?0:1===e?90:2===e?180:3===e?270:0},Bl=(t,e=0)=>{const r=Dl(e);return 90===r||270===r?{width:t.height,height:t.width}:{width:t.width,height:t.height}},Rl=(t,e=0,r=0)=>{const{x:n,y:i,width:o,height:s}=t,a=Dl(r),c=e/2;return 0===a?{x:n-c,y:i-c,width:o,height:s}:90===a?{x:n-s+c,y:i-c,width:s,height:o}:180===a?{x:n-o+c,y:i-s+c,width:o,height:s}:270===a?{x:n-c,y:i-o+c,width:s,height:o}:{x:n-c,y:i-c,width:o,height:s}},El=()=>no.of(oo.ClipNonZero),Pl=()=>no.of(oo.ClipEvenOdd),{cos:jl,sin:ql,tan:Ml}=Math,zl=(t,e,r,n,i,o)=>no.of(oo.ConcatTransformationMatrix,[xl(t),xl(e),xl(r),xl(n),xl(i),xl(o)]),Ul=(t,e)=>zl(1,0,0,1,t,e),Vl=(t,e)=>zl(t,0,0,e,0,0),Il=t=>zl(jl(kl(t)),ql(kl(t)),-ql(kl(t)),jl(kl(t)),0,0),Ll=t=>Il(Al(kl(t))),Wl=(t,e)=>zl(1,Ml(kl(t)),Ml(kl(e)),1,0,0),Hl=(t,e)=>Wl(Al(kl(t)),Al(kl(e))),Kl=(t,e)=>no.of(oo.SetLineDashPattern,[`[${t.map(xl).join(" ")}]`,xl(e)]),Gl=()=>Kl([],0);var Xl;!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Projecting=2]="Projecting"}(Xl||(Xl={}));const Zl=t=>no.of(oo.SetLineCapStyle,[xl(t)]);var Yl;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(Yl||(Yl={}));const Jl=t=>no.of(oo.SetLineJoinStyle,[xl(t)]),Ql=t=>no.of(oo.SetGraphicsStateParams,[wl(t)]),_l=()=>no.of(oo.PushGraphicsState),$l=()=>no.of(oo.PopGraphicsState),th=t=>no.of(oo.SetLineWidth,[xl(t)]),eh=(t,e,r,n,i,o)=>no.of(oo.AppendBezierCurve,[xl(t),xl(e),xl(r),xl(n),xl(i),xl(o)]),rh=(t,e,r,n)=>no.of(oo.CurveToReplicateInitialPoint,[xl(t),xl(e),xl(r),xl(n)]),nh=()=>no.of(oo.ClosePath),ih=(t,e)=>no.of(oo.MoveTo,[xl(t),xl(e)]),oh=(t,e)=>no.of(oo.LineTo,[xl(t),xl(e)]),sh=(t,e,r,n)=>no.of(oo.AppendRectangle,[xl(t),xl(e),xl(r),xl(n)]),ah=(t,e,r)=>sh(t,e,r,r),ch=()=>no.of(oo.StrokePath);var lh;!function(t){t.NonZero="f",t.EvenOdd="f*"}(lh||(lh={}));const hh=()=>no.of(oo.FillNonZero),dh=()=>no.of(oo.FillEvenOdd),uh=()=>no.of(oo.FillNonZeroAndStroke),fh=()=>no.of(oo.EndPath),ph=()=>no.of(oo.NextLine),gh=(t,e)=>no.of(oo.MoveText,[xl(t),xl(e)]),mh=t=>no.of(oo.ShowText,[t]),bh=()=>no.of(oo.BeginText),yh=()=>no.of(oo.EndText),vh=(t,e)=>no.of(oo.SetFontAndSize,[wl(t),xl(e)]),wh=t=>no.of(oo.SetCharacterSpacing,[xl(t)]),xh=t=>no.of(oo.SetWordSpacing,[xl(t)]),kh=t=>no.of(oo.SetTextHorizontalScaling,[xl(t)]),Sh=t=>no.of(oo.SetTextLineHeight,[xl(t)]),Fh=t=>no.of(oo.SetTextRise,[xl(t)]);var Ch;!function(t){t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t[t.FillAndOutline=2]="FillAndOutline",t[t.Invisible=3]="Invisible",t[t.FillAndClip=4]="FillAndClip",t[t.OutlineAndClip=5]="OutlineAndClip",t[t.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",t[t.Clip=7]="Clip"}(Ch||(Ch={}));const Ah=t=>no.of(oo.SetTextRenderingMode,[xl(t)]),Oh=(t,e,r,n,i,o)=>no.of(oo.SetTextMatrix,[xl(t),xl(e),xl(r),xl(n),xl(i),xl(o)]),Th=(t,e,r,n,i)=>Oh(jl(kl(t)),ql(kl(t))+Ml(kl(e)),-ql(kl(t))+Ml(kl(r)),jl(kl(t)),n,i),Nh=(t,e,r,n,i)=>Th(Al(kl(t)),Al(kl(e)),Al(kl(r)),n,i),Dh=t=>no.of(oo.DrawObject,[wl(t)]),Bh=t=>no.of(oo.NonStrokingColorGray,[xl(t)]),Rh=t=>no.of(oo.StrokingColorGray,[xl(t)]),Eh=(t,e,r)=>no.of(oo.NonStrokingColorRgb,[xl(t),xl(e),xl(r)]),Ph=(t,e,r)=>no.of(oo.StrokingColorRgb,[xl(t),xl(e),xl(r)]),jh=(t,e,r,n)=>no.of(oo.NonStrokingColorCmyk,[xl(t),xl(e),xl(r),xl(n)]),qh=(t,e,r,n)=>no.of(oo.StrokingColorCmyk,[xl(t),xl(e),xl(r),xl(n)]),Mh=t=>no.of(oo.BeginMarkedContent,[wl(t)]),zh=()=>no.of(oo.EndMarkedContent);var Uh={exports:{}},Vh={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]},Ih={exports:{}},Lh=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))},Wh=Array.prototype.concat,Hh=Array.prototype.slice,Kh=Ih.exports=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var i=t[r];Lh(i)?e=Wh.call(e,Hh.call(i)):e.push(i)}return e};Kh.wrap=function(t){return function(){return t(Kh(arguments))}};var Gh=Ih.exports,Xh=Vh,Zh=Gh,Yh=Object.hasOwnProperty,Jh=Object.create(null);for(var Qh in Xh)Yh.call(Xh,Qh)&&(Jh[Xh[Qh]]=Qh);var _h=Uh.exports={to:{},get:{}};function $h(t,e,r){return Math.min(Math.max(e,t),r)}function td(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}_h.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=_h.get.hsl(t),r="hsl";break;case"hwb":e=_h.get.hwb(t),r="hwb";break;default:e=_h.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},_h.get.rgb=function(t){if(!t)return null;var e,r,n,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=e[2],e=e[1],r=0;r<3;r++){var o=2*r;i[r]=parseInt(e.slice(o,o+2),16)}n&&(i[3]=parseInt(n,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=(e=e[1])[3],r=0;r<3;r++)i[r]=parseInt(e[r]+e[r],16);n&&(i[3]=parseInt(n+n,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=parseInt(e[r+1],0);e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:Yh.call(Xh,e[1])?((i=Xh[e[1]])[3]=1,i):null:null;for(r=0;r<3;r++)i[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(r=0;r<3;r++)i[r]=$h(i[r],0,255);return i[3]=$h(i[3],0,1),i},_h.get.hsl=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,$h(parseFloat(e[2]),0,100),$h(parseFloat(e[3]),0,100),$h(isNaN(r)?1:r,0,1)]}return null},_h.get.hwb=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,$h(parseFloat(e[2]),0,100),$h(parseFloat(e[3]),0,100),$h(isNaN(r)?1:r,0,1)]}return null},_h.to.hex=function(){var t=Zh(arguments);return"#"+td(t[0])+td(t[1])+td(t[2])+(t[3]<1?td(Math.round(255*t[3])):"")},_h.to.rgb=function(){var t=Zh(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},_h.to.rgb.percent=function(){var t=Zh(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},_h.to.hsl=function(){var t=Zh(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},_h.to.hwb=function(){var t=Zh(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},_h.to.keyword=function(t){return Jh[t.slice(0,3)]};var ed=Uh.exports;const rd=Vh,nd={};for(const t of Object.keys(rd))nd[rd[t]]=t;const id={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 od=id;for(const t of Object.keys(id)){if(!("channels"in id[t]))throw new Error("missing channels property: "+t);if(!("labels"in id[t]))throw new Error("missing channel labels property: "+t);if(id[t].labels.length!==id[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=id[t];delete id[t].channels,delete id[t].labels,Object.defineProperty(id[t],"channels",{value:e}),Object.defineProperty(id[t],"labels",{value:r})}id.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i;let a,c;o===i?a=0:e===o?a=(r-n)/s:r===o?a=2+(n-e)/s:n===o&&(a=4+(e-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+o)/2;return c=o===i?0:l<=.5?s/(o+i):s/(2-o-i),[a,100*c,100*l]},id.rgb.hsv=function(t){let e,r,n,i,o;const s=t[0]/255,a=t[1]/255,c=t[2]/255,l=Math.max(s,a,c),h=l-Math.min(s,a,c),d=function(t){return(l-t)/6/h+.5};return 0===h?(i=0,o=0):(o=h/l,e=d(s),r=d(a),n=d(c),s===l?i=n-r:a===l?i=1/3+e-n:c===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},id.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const i=id.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},id.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n);return[100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},id.rgb.keyword=function(t){const e=nd[t];if(e)return e;let r,n=1/0;for(const e of Object.keys(rd)){const s=(o=rd[e],((i=t)[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2);s<n&&(n=s,r=e)}var i,o;return r},id.keyword.rgb=function(t){return rd[t]},id.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/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*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},id.rgb.lab=function(t){const e=id.rgb.xyz(t);let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},id.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let i,o,s;if(0===r)return s=255*n,[s,s,s];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,c=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,c[t]=255*s;return c},id.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;return[e,100*(0===n?2*i/(o+i):2*r/(n+r)),100*((n+r)/2)]},id.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){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]}},id.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01);let o,s;s=(2-r)*n;const a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,100*o,100*s]},id.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const s=Math.floor(6*e),a=1-n;o=6*e-s,0!=(1&s)&&(o=1-o);const c=r+o*(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]},id.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},id.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let i,o,s;return i=3.2406*e+-1.5372*r+-.4986*n,o=-.9689*e+1.8758*r+.0415*n,s=.0557*e+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},id.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+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*(e-r),200*(r-n)]},id.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const i=r**3,o=e**3,s=n**3;return r=i>.008856?i:(r-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},id.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(r*r+n*n),i]},id.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},id.rgb.ansi16=function(t,e=null){const[r,n,i]=t;let o=null===e?id.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(s+=60),s},id.hsv.ansi16=function(t){return id.rgb.ansi16(id.hsv.rgb(t),t[2])},id.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},id.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},id.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},id.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},id.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},id.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o;let a,c;return a=s<1?o/(1-s):0,c=s<=0?0:i===e?(r-n)/s%6:i===r?2+(n-e)/s:4+(e-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},id.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},id.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},id.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],o=e%1*6,s=o%1,a=1-s;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[255*(r*i[0]+c),255*(r*i[1]+c),255*(r*i[2]+c)]},id.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},id.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},id.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},id.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},id.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},id.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},id.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},id.gray.hsl=function(t){return[0,0,t[0]]},id.gray.hsv=id.gray.hsl,id.gray.hwb=function(t){return[0,100,t[0]]},id.gray.cmyk=function(t){return[0,0,0,t[0]]},id.gray.lab=function(t){return[t[0],0,0]},id.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},id.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const sd=od;function ad(t){const e=function(){const t={},e=Object.keys(sd);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),n=Object.keys(sd[t]);for(let i=n.length,o=0;o<i;o++){const i=n[o],s=e[i];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,r.unshift(i))}}return e}function cd(t,e){return function(r){return e(t(r))}}function ld(t,e){const r=[e[t].parent,t];let n=sd[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=cd(sd[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}const hd=od,dd=function(t){const e=ad(t),r={},n=Object.keys(e);for(let t=n.length,i=0;i<t;i++){const t=n[i];null!==e[t].parent&&(r[t]=ld(t,e))}return r},ud={};Object.keys(hd).forEach((t=>{ud[t]={},Object.defineProperty(ud[t],"channels",{value:hd[t].channels}),Object.defineProperty(ud[t],"labels",{value:hd[t].labels});const e=dd(t);Object.keys(e).forEach((r=>{const n=e[r];ud[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),ud[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))}));const fd=ed,pd=ud,gd=["keyword","gray","hex"],md={};for(const t of Object.keys(pd))md[[...pd[t].labels].sort().join("")]=t;const bd={};function yd(t,e){if(!(this instanceof yd))return new yd(t,e);if(e&&e in gd&&(e=null),e&&!(e in pd))throw new Error("Unknown model: "+e);let r,n;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof yd)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=fd.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,n=pd[this.model].channels,this.color=e.value.slice(0,n),this.valpha="number"==typeof e.value[n]?e.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=pd[this.model].channels;const r=Array.prototype.slice.call(t,0,n);this.color=kd(r,n),this.valpha="number"==typeof t[n]?t[n]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in md))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=md[n];const{labels:i}=pd[this.model],o=[];for(r=0;r<i.length;r++)o.push(t[i[r]]);this.color=kd(o)}if(bd[this.model])for(n=pd[this.model].channels,r=0;r<n;r++){const t=bd[this.model][r];t&&(this.color[r]=t(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}yd.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in fd.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const r=1===e.valpha?e.color:[...e.color,this.valpha];return fd.to[e.model](r)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:[...e.color,this.valpha];return fd.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=pd[this.model],{labels:r}=pd[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new yd([...this.color.map(vd(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new yd([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:wd("rgb",0,xd(255)),green:wd("rgb",1,xd(255)),blue:wd("rgb",2,xd(255)),hue:wd(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:wd("hsl",1,xd(100)),lightness:wd("hsl",2,xd(100)),saturationv:wd("hsv",1,xd(100)),value:wd("hsv",2,xd(100)),chroma:wd("hcg",1,xd(100)),gray:wd("hcg",2,xd(100)),white:wd("hwb",1,xd(100)),wblack:wd("hwb",2,xd(100)),cyan:wd("cmyk",0,xd(100)),magenta:wd("cmyk",1,xd(100)),yellow:wd("cmyk",2,xd(100)),black:wd("cmyk",3,xd(100)),x:wd("xyz",0,xd(95.047)),y:wd("xyz",1,xd(100)),z:wd("xyz",2,xd(108.833)),l:wd("lab",0,xd(100)),a:wd("lab",1),b:wd("lab",2),keyword(t){return void 0!==t?new yd(t):pd[this.model].keyword(this.color)},hex(t){return void 0!==t?new yd(t):fd.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new yd(t);const e=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),fd.to.hex(e)+r},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[r,n]of t.entries()){const t=n/255;e[r]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return yd.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const r=t.rgb(),n=this.rgb(),i=void 0===e?.5:e,o=2*i-1,s=r.alpha()-n.alpha(),a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-a;return yd.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const t of Object.keys(pd)){if(gd.includes(t))continue;const{channels:e}=pd[t];yd.prototype[t]=function(...e){return this.model===t?new yd(this):e.length>0?new yd(e,t):new yd([...(r=pd[this.model][t].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],t);var r},yd[t]=function(...r){let n=r[0];return"number"==typeof n&&(n=kd(r,e)),new yd(n,t)}}function vd(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function wd(t,e,r){t=Array.isArray(t)?t:[t];for(const n of t)(bd[n]||(bd[n]=[]))[e]=r;return t=t[0],function(n){let i;return void 0!==n?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function xd(t){return function(e){return Math.max(0,Math.min(t,e))}}function kd(t,e){for(let r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}var Sd,Fd=ft(yd);!function(t){t.Grayscale="Grayscale",t.RGB="RGB",t.CMYK="CMYK"}(Sd||(Sd={}));const Cd=t=>(_n(t,"gray",0,1),{type:Sd.Grayscale,gray:t}),Ad=(t,e,r)=>(_n(t,"red",0,1),_n(e,"green",0,1),_n(r,"blue",0,1),{type:Sd.RGB,red:t,green:e,blue:r}),Od=(t,e,r,n)=>(_n(t,"cyan",0,1),_n(e,"magenta",0,1),_n(r,"yellow",0,1),_n(n,"key",0,1),{type:Sd.CMYK,cyan:t,magenta:e,yellow:r,key:n}),Td=t=>{Yn(t,"color",["string"]);const e=Fd(t).unitObject();return{rgb:Ad(e.r,e.g,e.b),alpha:e.alpha}},Nd=t=>t.type===Sd.Grayscale?Bh(t.gray):t.type===Sd.RGB?Eh(t.red,t.green,t.blue):t.type===Sd.CMYK?jh(t.cyan,t.magenta,t.yellow,t.key):dt(`Invalid color: ${JSON.stringify(t)}`),Dd=t=>t.type===Sd.Grayscale?Rh(t.gray):t.type===Sd.RGB?Ph(t.red,t.green,t.blue):t.type===Sd.CMYK?qh(t.cyan,t.magenta,t.yellow,t.key):dt(`Invalid color: ${JSON.stringify(t)}`),Bd=(t,e=1)=>1===(null==t?void 0:t.length)?Cd(t[0]*e):3===(null==t?void 0:t.length)?Ad(t[0]*e,t[1]*e,t[2]*e):4===(null==t?void 0:t.length)?Od(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0,Rd=t=>t.type===Sd.Grayscale?[t.gray]:t.type===Sd.RGB?[t.red,t.green,t.blue]:t.type===Sd.CMYK?[t.cyan,t.magenta,t.yellow,t.key]:dt(`Invalid color: ${JSON.stringify(t)}`);let Ed=0,Pd=0,jd=0,qd=0,Md=0,zd=0;const Ud=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]]),Vd={M:t=>(Ed=t[0],Pd=t[1],jd=qd=null,Md=Ed,zd=Pd,ih(Ed,Pd)),m:t=>(Ed+=t[0],Pd+=t[1],jd=qd=null,Md=Ed,zd=Pd,ih(Ed,Pd)),C:t=>(Ed=t[4],Pd=t[5],jd=t[2],qd=t[3],eh(t[0],t[1],t[2],t[3],t[4],t[5])),c(t){const e=eh(t[0]+Ed,t[1]+Pd,t[2]+Ed,t[3]+Pd,t[4]+Ed,t[5]+Pd);return jd=Ed+t[2],qd=Pd+t[3],Ed+=t[4],Pd+=t[5],e},S(t){null!==jd&&null!==qd||(jd=Ed,qd=Pd);const e=eh(Ed-(jd-Ed),Pd-(qd-Pd),t[0],t[1],t[2],t[3]);return jd=t[0],qd=t[1],Ed=t[2],Pd=t[3],e},s(t){null!==jd&&null!==qd||(jd=Ed,qd=Pd);const e=eh(Ed-(jd-Ed),Pd-(qd-Pd),Ed+t[0],Pd+t[1],Ed+t[2],Pd+t[3]);return jd=Ed+t[0],qd=Pd+t[1],Ed+=t[2],Pd+=t[3],e},Q:t=>(jd=t[0],qd=t[1],Ed=t[2],Pd=t[3],rh(t[0],t[1],Ed,Pd)),q(t){const e=rh(t[0]+Ed,t[1]+Pd,t[2]+Ed,t[3]+Pd);return jd=Ed+t[0],qd=Pd+t[1],Ed+=t[2],Pd+=t[3],e},T(t){null===jd||null===qd?(jd=Ed,qd=Pd):(jd=Ed-(jd-Ed),qd=Pd-(qd-Pd));const e=rh(jd,qd,t[0],t[1]);return Ed=t[0],Pd=t[1],e},t(t){null===jd||null===qd?(jd=Ed,qd=Pd):(jd=Ed-(jd-Ed),qd=Pd-(qd-Pd));const e=rh(jd,qd,Ed+t[0],Pd+t[1]);return Ed+=t[0],Pd+=t[1],e},A(t){const e=Id(Ed,Pd,t);return Ed=t[5],Pd=t[6],e},a(t){t[5]+=Ed,t[6]+=Pd;const e=Id(Ed,Pd,t);return Ed=t[5],Pd=t[6],e},L:t=>(Ed=t[0],Pd=t[1],jd=qd=null,oh(Ed,Pd)),l:t=>(Ed+=t[0],Pd+=t[1],jd=qd=null,oh(Ed,Pd)),H:t=>(Ed=t[0],jd=qd=null,oh(Ed,Pd)),h:t=>(Ed+=t[0],jd=qd=null,oh(Ed,Pd)),V:t=>(Pd=t[0],jd=qd=null,oh(Ed,Pd)),v:t=>(Pd+=t[0],jd=qd=null,oh(Ed,Pd)),Z(){const t=nh();return Ed=Md,Pd=zd,t},z(){const t=nh();return Ed=Md,Pd=zd,t}},Id=(t,e,r)=>{const[n,i,o,s,a,c,l]=r,h=Ld(c,l,n,i,s,a,o,t,e),d=[];for(const t of h){const e=Wd(...t);d.push(eh(...e))}return d},Ld=(t,e,r,n,i,o,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),jd=d*(a-t)*.5+h*(c-e)*.5,qd=d*(c-e)*.5-h*(a-t)*.5;let u=jd*jd/(r*r)+qd*qd/(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*t+p*e,w=g*t+m*e;let x=1/((v-b)*(v-b)+(w-y)*(w-y))-.25;x<0&&(x=0);let k=Math.sqrt(x);o===i&&(k=-k);const S=.5*(b+v)-k*(w-y),F=.5*(y+w)+k*(v-b),C=Math.atan2(y-F,b-S);let A=Math.atan2(w-F,v-S)-C;A<0&&1===o?A+=2*Math.PI:A>0&&0===o&&(A-=2*Math.PI);const O=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),T=[];for(let t=0;t<O;t++){const e=C+t*A/O,i=C+(t+1)*A/O;T[t]=[S,F,e,i,r,n,h,d]}return T},Wd=(t,e,r,n,i,o,s,a)=>{const c=a*i,l=-s*o,h=s*i,d=a*o,u=.5*(n-r),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),p=t+Math.cos(r)-f*Math.sin(r),g=e+Math.sin(r)+f*Math.cos(r),m=t+Math.cos(n),b=e+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]},Hd=t=>(t=>{Ed=Pd=jd=qd=Md=zd=0;let e=[];for(let r=0;r<t.length;r++){const n=t[r];if(n.cmd&&"function"==typeof Vd[n.cmd]){const t=Vd[n.cmd](n.args);Array.isArray(t)?e=e.concat(t):e.push(t)}}return e})((t=>{let e;const r=[];let n=[],i="",o=!1,s=0;for(const a of t)if(Ud.has(a))s=Ud.get(a),e&&(i.length>0&&(n[n.length]=+i),r[r.length]={cmd:e,args:n},n=[],i="",o=!1),e=a;else if([" ",","].includes(a)||"-"===a&&i.length>0&&"e"!==i[i.length-1]||"."===a&&o){if(0===i.length)continue;n.length===s?(r[r.length]={cmd:e,args:n},n=[+i],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+i,o="."===a,i=["-","."].includes(a)?a:""}else i+=a,"."===a&&(o=!0);return i.length>0&&(n.length===s?(r[r.length]={cmd:e,args:n},n=[+i],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+i),r[r.length]={cmd:e,args:n},r})(t));var Kd={},Gd={},Xd={};Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.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},Xd.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 Zd={};Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.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 Yd={};Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.fromCodePoint=String.fromCodePoint||function(t){return String.fromCharCode(Math.floor((t-65536)/1024)+55296,(t-65536)%1024+56320)},Yd.getCodePoint=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536},Yd.highSurrogateFrom=55296,Yd.highSurrogateTo=56319;var Jd=ut&&ut.__assign||function(){return Jd=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Jd.apply(this,arguments)};Object.defineProperty(Gd,"__esModule",{value:!0});var Qd=Xd,_d=Zd,$d=Yd,tu=Jd(Jd({},Qd.namedReferences),{all:Qd.namedReferences.html5}),eu={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},ru={mode:"specialChars",level:"all",numeric:"decimal"};Gd.encode=function(t,e){var r=void 0===(s=(o=void 0===e?ru:e).mode)?"specialChars":s,n=void 0===(h=o.numeric)?"decimal":h,i=o.level;if(!t)return"";var o,s,a=eu[r],c=tu[void 0===i?"all":i].characters,l="hexadecimal"===n;if(a.lastIndex=0,o=a.exec(t)){s="";var h=0;do{h!==o.index&&(s+=t.substring(h,o.index));var d=c[i=o[0]];if(!d){var u=i.length>1?$d.getCodePoint(i,0):i.charCodeAt(0);d=(l?"&#x"+u.toString(16):"&#"+u)+";"}s+=d,h=o.index+i.length}while(o=a.exec(t));h!==t.length&&(s+=t.substring(h))}else s=t;return s};var nu,iu={scope:"body",level:"all"},ou=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,su=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,au={xml:{strict:ou,attribute:su,body:Qd.bodyRegExps.xml},html4:{strict:ou,attribute:su,body:Qd.bodyRegExps.html4},html5:{strict:ou,attribute:su,body:Qd.bodyRegExps.html5}},cu=Jd(Jd({},au),{all:au.html5}),lu=String.fromCharCode,hu=lu(65533),du={level:"all"};Gd.decodeEntity=function(t,e){var r=void 0===(n=(void 0===e?du:e).level)?"all":n;if(!t)return"";var n=t;t[t.length-1];var i=tu[r].entities[t];if(i)n=i;else if("&"===t[0]&&"#"===t[1]){var o=t[2],s="x"==o||"X"==o?parseInt(t.substr(3),16):parseInt(t.substr(2));n=s>=1114111?hu:s>65535?$d.fromCodePoint(s):lu(_d.numericUnicodeMap[s]||s)}return n},Gd.decode=function(t,e){var r=void 0===e?iu:e,n=r.level,i=void 0===n?"all":n,o=r.scope,s=void 0===o?"xml"===i?"strict":"body":o;if(!t)return"";var a=cu[i][s],c=tu[i].entities,l="attribute"===s,h="strict"===s;a.lastIndex=0;var d,u=a.exec(t);if(u){d="";var f=0;do{f!==u.index&&(d+=t.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?hu:v>65535?$d.fromCodePoint(v):lu(_d.numericUnicodeMap[v]||v)}}d+=g,f=u.index+p.length}while(u=a.exec(t));f!==t.length&&(d+=t.substring(f))}else d=t;return d},function(t){var e,r=ut&&ut.__extends||(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},e(t,r)},function(t,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=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.isBlock=t.parse=t.Matcher=t.HTMLElement=t.CommentNode=t.TextNode=t.AbstractNode=t.NodeType=void 0;var n,i=Gd;!function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE"}(n=t.NodeType||(t.NodeType={}));var o=function(){function t(){this.childNodes=[]}return Object.defineProperty(t.prototype,"text",{get:function(){return(0,i.decode)(this.rawText)},enumerable:!1,configurable:!0}),t.prototype.remove=function(){return this.parentNode&&this.parentNode.removeChild(this),this},t}();t.AbstractNode=o;var s=function(t){function e(e){var r=t.call(this)||this;return r.nodeType=n.TEXT_NODE,r.value=e,r}return r(e,t),Object.defineProperty(e.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWhitespace",{get:function(){return/^(\s| )*$/.test(this.rawText)},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.rawText},e}(o);t.TextNode=s;var a=function(t){function e(e){var r=t.call(this)||this;return r.nodeType=n.COMMENT_NODE,r.value=e,r}return r(e,t),Object.defineProperty(e.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"\x3c!--".concat(this.rawText,"--\x3e")},e}(o);t.CommentNode=a;var c={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function l(t){return t[t.length-1]}var h=function(t){function e(e,r,i){void 0===r&&(r=""),void 0===i&&(i=null);var o=t.call(this)||this;o.tagName=e,o.rawAttrs=r,o.classNames=[],o.nodeType=n.ELEMENT_NODE,o.rawAttrs=r,o.parentNode=i,o.childNodes=[];for(var s={},a=void 0;a=g.exec(r);)s[a[2]]=a[4]||a[5]||a[6];return s.id&&(o.id=s.id),s.class&&(o.classNames=s.class.split(/\s+/)),o}return r(e,t),e.prototype.removeChild=function(t){this.childNodes=this.childNodes.filter((function(e){return e!==t})),t instanceof e&&(t.parentNode=null)},e.prototype.exchangeChild=function(t,r){var n=this.childNodes.findIndex((function(e){return e===t}));n>=0&&(this.childNodes[n]=r,t instanceof e&&(t.parentNode=null))},Object.defineProperty(e.prototype,"rawText",{get:function(){for(var t="",e=0;e<this.childNodes.length;e++)t+=this.childNodes[e].rawText;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"structuredText",{get:function(){var t=[],e=[t];return function r(i){if(i.nodeType===n.ELEMENT_NODE)c[i.tagName]?(t.length>0&&e.push(t=[]),i.childNodes.forEach(r),t.length>0&&e.push(t=[])):i.childNodes.forEach(r);else if(i.nodeType===n.TEXT_NODE)if(i.isWhitespace)t.prependWhitespace=!0;else{var o=i.text;t.prependWhitespace&&(o=" "+o,t.prependWhitespace=!1),t.push(o)}}(this),e.map((function(t){return t.join("").trim().replace(/\s{2,}/g," ")})).join("\n").replace(/\s+$/,"")},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this.tagName;if(t){var e=/^(img|br|hr|area|base|input|doctype|link|meta)$/i.test(t),r=this.rawAttrs?" "+this.rawAttrs:"";return e?"<".concat(t).concat(r," />"):"<".concat(t).concat(r,">").concat(this.innerHTML,"</").concat(t,">")}return this.innerHTML},Object.defineProperty(e.prototype,"innerHTML",{get:function(){return this.childNodes.map((function(t){return t.toString()})).join("")},set:function(t){var e=this,r=x(t);this.childNodes.forEach((function(t){return t.remove()})),r.childNodes.forEach((function(t){return e.appendChild(t)}))},enumerable:!1,configurable:!0}),e.prototype.set_content=function(t){if(t instanceof o)t=[t];else if("string"==typeof t){var e=x(t);t=e.childNodes.length?e.childNodes:[new s(t)]}this.childNodes=t},Object.defineProperty(e.prototype,"outerHTML",{get:function(){return this.toString()},enumerable:!1,configurable:!0}),e.prototype.trimRight=function(t){for(var e=0;e<this.childNodes.length;e++){var r=this.childNodes[e];if(r.nodeType===n.ELEMENT_NODE)r.trimRight(t);else{var i=r.rawText.search(t);i>-1&&(r.value=r.rawText.substr(0,i),this.childNodes.length=e+1)}}return this},Object.defineProperty(e.prototype,"structure",{get:function(){var t=[],e=0;function r(r){t.push(" ".repeat(e)+r)}return function t(i){var o=i.id?"#"+i.id:"",s=i.classNames.length?"."+i.classNames.join("."):"";r(i.tagName+o+s),e++;for(var a=0;a<i.childNodes.length;a++){var c=i.childNodes[a];c.nodeType===n.ELEMENT_NODE?t(c):c.nodeType===n.TEXT_NODE&&(c.isWhitespace||r("#text"))}e--}(this),t.join("\n")},enumerable:!1,configurable:!0}),e.prototype.removeWhitespace=function(){for(var t=0,e=0;e<this.childNodes.length;e++){var r=this.childNodes[e];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[t++]=r}return this.childNodes.length=t,this},e.prototype.querySelectorAll=function(t){var e,r=this;if(t instanceof f)(e=t).reset();else{if(t.includes(",")){var i=t.split(",");return Array.from(i.reduce((function(t,e){return r.querySelectorAll(e.trim()).reduce((function(t,e){return t.add(e)}),t)}),new Set))}e=new f(t)}for(var o=[],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]=e.advance(h))&&e.matched){o.push(h),e.rewind(),s.pop();continue}}c[1]<h.childNodes.length?s.push([h.childNodes[c[1]++],0,!1]):(c[2]&&e.rewind(),s.pop())}return o},e.prototype.querySelector=function(t){var e;t instanceof f?(e=t).reset():e=new f(t);for(var r=[],i=0;i<this.childNodes.length;i++)for(r.push([this.childNodes[i],0,!1]);r.length;){var o=l(r),s=o[0];if(0===o[1]){if(s.nodeType!==n.ELEMENT_NODE){r.pop();continue}if((o[2]=e.advance(s))&&e.matched)return s}o[1]<s.childNodes.length?r.push([s.childNodes[o[1]++],0,!1]):(o[2]&&e.rewind(),r.pop())}return null},e.prototype.appendChild=function(t){return this.childNodes.push(t),t instanceof e&&(t.parentNode=this),t},e.prototype.prependChild=function(t){return this.childNodes.unshift(t),t instanceof e&&(t.parentNode=this),t},Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return l(this.childNodes)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){if(this._attrs)return this._attrs;this._attrs={};var t=this.rawAttributes;for(var e in t)this._attrs[e]=(0,i.decode)(t[e]);return this._attrs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawAttributes",{get:function(){if(this._rawAttrs)return this._rawAttrs;var t={};if(this.rawAttrs)for(var e=void 0;e=m.exec(this.rawAttrs);)t[e[1]]=e[4]||e[5]||e[6]||"";return this._rawAttrs=t,t},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,e){"id"===t?this.id=e:"class"===t&&(this.classNames=e.split(/\s+/));var r=this.attributes;void 0===e?delete r[t]:r[t]=e+"",this._rawAttrs&&(void 0===e?delete this._rawAttrs[t]:this._rawAttrs[t]=(0,i.encode)(e+"")),this.rawAttrs=Object.keys(r).map((function(t){return t+(""===r[t]?"":'="'+(0,i.encode)(r[t])+'"')})).join(" ")},e.prototype.removeAttribute=function(t){this.setAttribute(t,void 0)},e.prototype.setAttributes=function(t){var e=this;t.id?this.id=t.id:t.class&&(this.classNames=t.class.split(/\s+/)),this.attributes&&(Object.keys(this.attributes).forEach((function(t){return delete e.attributes[t]})),Object.keys(t).forEach((function(r){return e.attributes[r]=t[r]+""}))),this.rawAttributes&&(Object.keys(this.rawAttributes).forEach((function(t){return delete e.rawAttributes[t]})),Object.keys(t).forEach((function(r){return e.rawAttributes[r]=(0,i.encode)(t[r]+"")}))),this.rawAttrs=Object.keys(t).map((function(e){return e+(""===t[e]?"":'="'+(0,i.encode)(t[e]+"")+'"')})).join(" ")},e}(o);t.HTMLElement=h;var d={},u={f145:function(t,e,r,n,i){if(e=e||"",r=r||[],t.id!=e.substr(1))return!1;for(var o=r,s=0;s<o.length;s++)if(-1===t.classNames.indexOf(o[s]))return!1;return!0},f45:function(t,e,r,n,i){for(var o=r=r||[],s=0;s<o.length;s++)if(-1===t.classNames.indexOf(o[s]))return!1;return!0},f15:function(t,e,r,n,i){return e=e||"",t.id==e.substr(1)},f1:function(t,e,r,n,i){if(e=e||"",t.id!=e.substr(1))return!1},f5:function(t,e,r,n,i){return!0},f245:function(t,e,r,n,i){n=n||"",i=i||"";var o=t.attributes;for(var s in o){var a=o[s];if(s==n&&a==i)return!0}return!1},f25:function(t,e,r,n,i){n=n||"",i=i||"";var o=t.attributes;for(var s in o){var a=o[s];if(s==n&&a==i)return!0}return!1},f2:function(t,e,r,n,i){n=n||"",i=i||"";var o=t.attributes;for(var s in o){var a=o[s];if(s==n&&a==i)return!0}return!1},f345:function(t,e,r,n,i){if(e=e||"",r=r||[],t.tagName!=e)return!1;for(var o=r,s=0;s<o.length;s++)if(-1===t.classNames.indexOf(o[s]))return!1;return!0},f35:function(t,e,r,n,i){return e=e||"",t.tagName==e},f3:function(t,e,r,n,i){if(e=e||"",t.tagName!=e)return!1}},f=function(){function t(t){this.nextMatch=0,u.f5=u.f5,this.matchers=t.split(" ").map((function(t){if(d[t])return d[t];var e,r=t.split("."),n=r[0],i=r.slice(1).sort(),o='"use strict";',s="f",a="",c="";if(n&&"*"!=n)if("#"==n[0])o+="if (el.id != "+JSON.stringify(n.substr(1))+") return false;",s+="1";else if(e=n.match(/^\[\s*(\S+)\s*(=|!=)\s*((((["'])([^\6]*)\6))|(\S*?))\]\s*/)){a=e[1];var l=e[2];if("="!==l&&"!="!==l)throw new Error("Selector not supported, Expect [key${op}value].op must be =,!=");"="===l&&(l="=="),c=e[7]||e[8],o+='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 o+="if (el.tagName != "+JSON.stringify(n)+") return false;",s+="3";i.length>0&&(o+="for (let cls = "+JSON.stringify(i)+", i = 0; i < cls.length; i++) if (el.classNames.indexOf(cls[i]) === -1) return false;",s+="4"),o+="return true;";var h={func:u[s+="5"],tagName:n||"",classes:i||"",attr_key:a||"",value:c||""};return o=o||"",d[t]=h}))}return t.prototype.advance=function(t){return!!(this.nextMatch<this.matchers.length&&this.matchers[this.nextMatch].func(t,this.matchers[this.nextMatch].tagName,this.matchers[this.nextMatch].classes,this.matchers[this.nextMatch].attr_key,this.matchers[this.nextMatch].value))&&(this.nextMatch++,!0)},t.prototype.rewind=function(){this.nextMatch--},Object.defineProperty(t.prototype,"matched",{get:function(){return this.nextMatch==this.matchers.length},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.nextMatch=0},t.prototype.flushCache=function(){d={}},t}();t.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(t,e){var r,n=new h(null),i=n,o=[n],c=0;for(e=e||{};r=p.exec(t);){if(c+r[0].length<p.lastIndex){var d=t.substring(c,p.lastIndex-r[0].length);i.appendChild(new s(d))}if(c=p.lastIndex,"!"!=r[0][1]){if(e.lowerCaseTagName&&(r[2]=r[2].toLowerCase()),!r[1]&&(!r[9]&&y[i.tagName]&&y[i.tagName][r[2]]&&(o.pop(),i=l(o)),i=i.appendChild(new h(r[2],r[3].trim())),o.push(i),w[r[2]])){var u="</"+r[2]+">",f=t.indexOf(u,p.lastIndex);if(e[r[2]]){d=void 0;(d=-1==f?t.substr(p.lastIndex):t.substring(p.lastIndex,f)).length>0&&i.appendChild(new s(d))}-1==f?c=p.lastIndex=t.length+1:(c=p.lastIndex=f+u.length,r[1]="true")}if(r[1]||r[9]||b[r[2]])for(;;){if(i.tagName==r[2]){o.pop(),i=l(o);break}if(!v[i.tagName]||!v[i.tagName][r[2]])break;o.pop(),i=l(o)}}else if(e.comment){var d=t.substring(c-3,c-r[0].length+4);i.appendChild(new a(d))}}c<t.length&&n.appendChild(new s(t.substring(c))),n.valid=1===o.length;for(var g=function(){var t=o.pop(),e=l(o);t.parentNode&&t.parentNode instanceof h&&t.parentNode.parentNode&&(t.parentNode===e&&t.tagName===e.tagName?(e.removeChild(t),t.childNodes.forEach((function(t){e.parentNode.appendChild(t)})),o.pop()):(e.removeChild(t),t.childNodes.forEach((function(t){e.appendChild(t)}))))};o.length>1;)g();return n}t.parse=x;var k=["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"];t.isBlock=function(t){return t.nodeType===n.ELEMENT_NODE&&t.tagName&&k.includes(t.tagName.toLowerCase())}}(Kd);class uu{constructor(t,e={}){this.svg=t,this.images=e}}!function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion"}(nu||(nu={}));const fu=[1,0,0,1,0,0],pu=([t,e,r,n,i,o],[s,a,c,l,h,d])=>[t*s+r*a,e*s+n*a,t*c+r*l,e*c+n*l,t*h+r*d+i,e*h+n*d+o],gu=([t,e,r,n,i,o],{x:s,y:a})=>({x:t*s+r*a+i,y:e*s+n*a+o}),mu=(t,e)=>{switch(t){case"scale":case"scaleX":case"scaleY":{const[r,n=r]=e;return["scaleY"===t?1:r,0,0,"scaleX"===t?1:n,0,0]}case"translate":case"translateX":case"translateY":{const[r,n=r]=e;return[1,0,0,1,"translateY"===t?0:r,"translateX"===t?0:-n]}case"rotate":{const[t,r=0,n=0]=e,i=mu("translate",[r,n]),o=mu("translate",[-r,-n]),s=Al(-t),a=[Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0];return pu(pu(i,a),o)}case"skewY":case"skewX":{const r=Al(-e[0]),n=Math.tan(r);return[1,"skewY"===t?n:0,"skewX"===t?n:0,1,0,0]}case"matrix":{const[t,r,n,i,o,s]=e,a=mu("scale",[1,-1]);return pu(pu(a,[t,r,n,i,o,s]),a)}default:return fu}},bu=(t,e,r)=>pu(t,mu(e,r)),yu={butt:Xl.Butt,round:Xl.Round,square:Xl.Projecting},vu={evenodd:lh.EvenOdd,nonzero:lh.NonZero},wu={bevel:Yl.Bevel,miter:Yl.Miter,round:Yl.Round},xu=(t,e)=>({text(r){const n=r.svgAttributes.textAnchor,i=r.svgAttributes.dominantBaseline,o=r.text.trim().replace(/\s/g," "),s=r.svgAttributes.fontSize||12,a=e.fonts&&((t,e)=>{const r=t.fontFamily;if(!r)return;const n="bold"===t.fontWeight||Number(t.fontWeight)>=700,i="italic"===t.fontStyle,o=(t,r,n)=>e[n+(t?"_bold":"")+(r?"_italic":"")],s=Object.keys(e).find((t=>t.startsWith(r)));return o(n,i,r)||o(n,!1,r)||o(!1,i,r)||o(!1,!1,r)||(s?e[s]:void 0)})(r.svgAttributes,e.fonts),c=(a||t.getFont()[0]).widthOfTextAtSize(o,s),l=(a||t.getFont()[0]).heightAtSize(s),h=(a||t.getFont()[0]).heightAtSize(s,{descender:!1}),d="middle"===n?c/2:"end"===n?c:0;let u=0;switch(i){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}t.drawText(o,{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||e.blendMode})},line(r){t.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||e.blendMode})},path(r){r.svgAttributes.d&&t.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:bu(r.svgAttributes.matrix,"scale",[1,-1]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||e.blendMode})},image(r){var n,i;const{src:o}=r.svgAttributes;if(!o||!(null===(n=e.images)||void 0===n?void 0:n[o]))return;const s=null===(i=e.images)||void 0===i?void 0:i[o],{x:a,y:c,width:l,height:h}=Au(s.width,s.height,r.svgAttributes.width||s.width,r.svgAttributes.height||s.height,r.svgAttributes.preserveAspectRatio);t.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||e.blendMode})},rect(r){(r.svgAttributes.fill||r.svgAttributes.stroke)&&t.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:bu(r.svgAttributes.matrix,"translateY",[r.svgAttributes.height]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||e.blendMode})},ellipse(r){t.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||e.blendMode})},circle:r=>xu(t,e).ellipse(r)}),ku=(t,e,r,n)=>{const i=e[r]||t[r];return i||void 0===n?i:n},Su=t=>{const e=/([^:\s]+)*\s*:\s*([^;]+)/g,r={};let n=e.exec(t);for(;null!==n;)r[n[1]]=n[2],n=e.exec(t);return r},Fu=(t,e)=>{if(!t||0===t.length)return;if(["none","transparent"].includes(t))return;if("currentColor"===t)return e||Fu("#000000");const r=Td(t);return{rgb:r.rgb,alpha:r.alpha?r.alpha+"":void 0}},Cu=(t,e,r)=>{var n,i,o,s;const a=t.attributes,c=Su(a.style),l=ku(a,c,"width",""),h=ku(a,c,"height",""),d=Fu(ku(a,c,"fill")),u=ku(a,c,"fill-opacity"),f=ku(a,c,"opacity"),p=Fu(ku(a,c,"stroke")),g=ku(a,c,"stroke-opacity"),m=ku(a,c,"stroke-linecap"),b=ku(a,c,"stroke-linejoin"),y=ku(a,c,"fill-rule"),v=ku(a,c,"stroke-width"),w=ku(a,c,"font-family"),x=ku(a,c,"font-style"),k=ku(a,c,"font-weight"),S=ku(a,c,"font-size"),F=ku(a,c,"mix-blend-mode"),C=Du(l,e.width),A=Du(h,e.height),O=Du(a.x,e.width),T=Du(a.y,e.height),N=Du(a.x1,e.width),D=Du(a.x2,e.width),B=Du(a.y1,e.height),R=Du(a.y2,e.height),E=Du(a.cx,e.width),P=Du(a.cy,e.height),j=Du(a.rx||a.r,e.width),q=Du(a.ry||a.r,e.height),M={fontFamily:w||e.fontFamily,fontStyle:x||e.fontStyle,fontWeight:k||e.fontWeight,fontSize:null!==(n=Du(S))&&void 0!==n?n:e.fontSize,fill:(null==d?void 0:d.rgb)||e.fill,fillOpacity:null!==(i=Du(u||f||(null==d?void 0:d.alpha)))&&void 0!==i?i:e.fillOpacity,fillRule:vu[y]||e.fillRule,stroke:(null==p?void 0:p.rgb)||e.stroke,strokeWidth:null!==(o=Du(v))&&void 0!==o?o:e.strokeWidth,strokeOpacity:null!==(s=Du(g||f||(null==p?void 0:p.alpha)))&&void 0!==s?s:e.strokeOpacity,strokeLineCap:yu[m]||e.strokeLineCap,strokeLineJoin:wu[b]||e.strokeLineJoin,width:C||e.width,height:A||e.height,rotation:e.rotation,viewBox:"svg"===t.tagName&&t.attributes.viewBox?Ru(t.attributes.viewBox):e.viewBox,blendMode:Bu(F)||e.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((t=>{a[t]&&(U=a[t]+" "+U)})),(O||T)&&(U+=`translate(${O||0} ${T||0}) `);let V=r;if(U){const t=/(\w+)\((.+?)\)/g;let e=t.exec(U);for(;null!==e;){const[,r,n]=e,i=(n||"").split(/\s*,\s*|\s+/).filter((t=>t.length>0)).map((t=>parseFloat(t)));V=bu(V,r,i),e=t.exec(U)}}if(z.x=O,z.y=T,(a.cx||a.cy)&&(z.cx=E,z.cy=P),(a.rx||a.ry||a.r)&&(z.rx=j,z.ry=q),(a.x1||a.y1)&&(z.x1=N,z.y1=B),(a.x2||a.y2)&&(z.x2=D,z.y2=R),(a.width||a.height)&&(z.width=null!=C?C:e.width,z.height=null!=A?A:e.height),a.d&&(V=bu(V,"scale",[1,-1]),z.d=a.d),M.fontFamily){const t=M.fontFamily.match(/^"(.*?)"|^'(.*?)'/);t&&(M.fontFamily=t[1]||t[2])}return M.strokeWidth&&(z.strokeWidth=M.strokeWidth),{inherited:M,svgAttributes:z,tagName:t.tagName,matrix:V}},Au=(t,e,r,n,i)=>{if("none"===i)return{x:0,y:0,width:r,height:n};const o=t/e,s=r/n,a=s>o?o*n:r,c=s>=o?n:r/o,l=r-a,h=n-c,[d,u]=(()=>{switch(i){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}},Ou=(t,e,r,n)=>{if(t.nodeType===Kd.NodeType.COMMENT_NODE)return[];if(t.nodeType===Kd.NodeType.TEXT_NODE)return[];if("g"===t.tagName)return Nu(t,e,r,n);if("svg"===t.tagName)return Tu(t,e,r,n);{"polygon"===t.tagName&&(t.tagName="path",t.attributes.d=`M${t.attributes.points}Z`,delete t.attributes.points);const i=Cu(t,e,r),o=Object.assign(Object.assign(Object.assign({},i.inherited),i.svgAttributes),{matrix:i.matrix,clipSpaces:n});return Object.assign(t,{svgAttributes:o}),[t]}},Tu=(t,e,r,n)=>{var i,o;null!==(i=t.attributes.width)&&void 0!==i||t.setAttribute("width",e.viewBox.width+""),null!==(o=t.attributes.height)&&void 0!==o||t.setAttribute("height",e.viewBox.height+"");const s=Cu(t,e,r),a=[],c=t.attributes.viewBox?Ru(t.attributes.viewBox):t.attributes.width&&t.attributes.height?Ru(`0 0 ${t.attributes.width} ${t.attributes.height}`):e.viewBox,l=parseFloat(t.attributes.x)||0,h=parseFloat(t.attributes.y)||0;let d=bu(r,"translate",[l,h]);const{clipBox:u,content:f}=((t,e,r,n,i,o="xMidYMid")=>{const[s,a="meet"]=o.split(" "),c=n/e,l=i/r,h=bu(t,"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-e*d,f=i-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:bu(bu(t,"translate",[p,g]),"scale",[d])}})(d,c.width,c.height,parseFloat(t.attributes.width),parseFloat(t.attributes.height),t.attributes.preserveAspectRatio),p={topLeft:gu(u,{x:0,y:0}),topRight:gu(u,{x:c.width,y:0}),bottomRight:gu(u,{x:c.width,y:-c.height}),bottomLeft:gu(u,{x:0,y:-c.height})};return d=bu(f,"translate",[-c.x,-c.y]),t.childNodes.forEach((t=>{const e=Ou(t,Object.assign(Object.assign({},s.inherited),{viewBox:c}),d,[...n,p]);a.push(...e)})),a},Nu=(t,e,r,n)=>{const i=Cu(t,e,r),o=[];return t.childNodes.forEach((t=>{o.push(...Ou(t,i.inherited,i.matrix,n))})),o},Du=(t,e=1)=>{if(!t)return;const r=parseFloat(t);return isNaN(r)?void 0:t.endsWith("%")?r*e/100:r},Bu=t=>{switch(t){case"normal":return nu.Normal;case"multiply":return nu.Multiply;case"screen":return nu.Screen;case"overlay":return nu.Overlay;case"darken":return nu.Darken;case"lighten":return nu.Lighten;case"color-dodge":return nu.ColorDodge;case"color-burn":return nu.ColorBurn;case"hard-light":return nu.HardLight;case"soft-light":return nu.SoftLight;case"difference":return nu.Difference;case"exclusion":return nu.Exclusion;default:return}},Ru=t=>{if(!t)return;const[e=0,r=0,n=1,i=1]=(t||"").split(" ").map((t=>Du(t)));return{x:e,y:r,width:n,height:i}},Eu=(t,e,r)=>{const n="string"==typeof e?new uu(e):e;if(!n.svg)return;const i=t.getSize(),o=Kd.parse(n.svg).querySelector("svg");if(!o)return console.error("This is not an svg. Ignoring: "+n.svg);const s=o.attributes,a=Su(s.style),c=ku(s,a,"width",""),l=ku(s,a,"height",""),h=void 0!==r.width?r.width:parseFloat(c),d=void 0!==r.height?r.height:parseFloat(l);s.viewBox||o.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")),o.setAttribute("style",Object.entries(a).map((([t,e])=>`${t}:${e};`)).join("")));const u=[1,0,0,1,r.x||0,r.y||0],f=((t,{width:e,height:r,fontSize:n},i,o)=>{const s=Kd.parse(t).firstChild;return e&&s.setAttribute("width",e+""),r&&s.setAttribute("height",r+""),n&&s.setAttribute("font-size",n+""),Ou(s,Object.assign(Object.assign({},i),{viewBox:Ru(s.attributes.viewBox||"0 0 1 1")}),o,[])})(o.outerHTML,r,i,u),p=xu(t,Object.assign(Object.assign({},r),{images:n.images}));f.forEach((t=>{var e;null===(e=p[t.tagName])||void 0===e||e.call(p,t)}))},Pu=({topLeft:t,topRight:e,bottomRight:r,bottomLeft:n})=>[ih(t.x,t.y),oh(e.x,e.y),oh(r.x,r.y),oh(n.x,n.y),nh(),El(),fh()],ju=t=>t.flatMap(Pu),qu=(t,e)=>[_l(),e.graphicsState&&Ql(e.graphicsState),bh(),Nd(e.color),vh(e.font,e.size),e.strokeWidth&&th(e.strokeWidth),e.strokeColor&&Dd(e.strokeColor),e.renderMode&&Ah(e.renderMode),Th(Tl(e.rotate),Tl(e.xSkew),Tl(e.ySkew),e.x,e.y),mh(t),yh(),$l()].filter(Boolean),Mu=(t,e)=>{const r=[_l(),e.graphicsState&&Ql(e.graphicsState),...e.clipSpaces?ju(e.clipSpaces):[],e.matrix&&zl(...e.matrix),bh(),Nd(e.color),vh(e.font,e.size),Sh(e.lineHeight),e.strokeWidth&&th(e.strokeWidth),e.strokeColor&&Dd(e.strokeColor),e.renderMode&&Ah(e.renderMode),Th(Tl(e.rotate),Tl(e.xSkew),Tl(e.ySkew),e.x,e.y)].filter(Boolean);for(let e=0,n=t.length;e<n;e++)r.push(mh(t[e]),ph());return r.push(yh(),$l()),r},zu=(t,e)=>[_l(),e.graphicsState&&Ql(e.graphicsState),...e.clipSpaces?ju(e.clipSpaces):[],e.matrix&&zl(...e.matrix),Ul(e.x,e.y),Il(Tl(e.rotate)),Vl(e.width,e.height),Wl(Tl(e.xSkew),Tl(e.ySkew)),Dh(t),$l()].filter(Boolean),Uu=(t,e)=>[_l(),e.graphicsState&&Ql(e.graphicsState),Ul(e.x,e.y),Il(Tl(e.rotate)),Vl(e.xScale,e.yScale),Wl(Tl(e.xSkew),Tl(e.ySkew)),Dh(t),$l()].filter(Boolean),Vu=t=>{var e,r;return[_l(),t.graphicsState&&Ql(t.graphicsState),...t.clipSpaces?ju(t.clipSpaces):[],t.matrix&&zl(...t.matrix),t.color&&Dd(t.color),th(t.thickness),Kl(null!==(e=t.dashArray)&&void 0!==e?e:[],null!==(r=t.dashPhase)&&void 0!==r?r:0),ih(t.start.x,t.start.y),t.lineCap&&Zl(t.lineCap),ih(t.start.x,t.start.y),oh(t.end.x,t.end.y),ch(),$l()].filter(Boolean)},Iu=(Math.sqrt(2)-1)/3*4,Lu=t=>{const{width:e,height:r,xSkew:n,ySkew:i,rotate:o,matrix:s}=t,a="number"==typeof e?e:e.asNumber(),c="number"==typeof r?r:r.asNumber(),l="number"==typeof t.x?t.x:t.x.asNumber(),h="number"==typeof t.y?t.y:t.y.asNumber(),d=Math.max(0,Math.min(t.rx||0,a/2)),u=Math.max(0,Math.min(t.ry||0,c/2)),f=d>0||u>0?[`M ${d},0`,"H "+(a-d),`C ${a-d*(1-Iu)},0 ${a},${u*(1-Iu)} ${a},${u}`,"V "+(c-u),`C ${a},${c-u*(1-Iu)} ${a-d*(1-Iu)},${c} ${a-d},${c}`,`H ${d}`,`C ${d*(1-Iu)},${c} 0,${c-u*(1-Iu)} 0,${c-u}`,`V ${u}`,`C 0,${u*(1-Iu)} ${d*(1-Iu)},0 ${d},0`,"Z"].join(" "):`M 0,0 H ${a} V ${c} H 0 Z`;let p=pu(s||fu,mu("translate",[l,-h]));return o&&(p=pu(p,mu("rotate",[-Nl(o)]))),n&&(p=pu(p,mu("skewX",[Nl(n)]))),i&&(p=pu(p,mu("skewY",[-Nl(i)]))),p=pu(p,mu("translateY",[-c])),Hu(f,Object.assign(Object.assign({},t),{x:0,y:0,rotate:Cl(0),scale:1,matrix:p}))},Wu=t=>{const e=kl(t.xScale),r=kl(t.yScale),n=kl(t.x),i=kl(t.y),o=(Math.sqrt(2)-1)/3*4,s=e*o,a=r*o,c=[`M 0,${r}`,`C ${s},${r} ${e},${a} ${e},0`,`C ${e},${-a} ${s},${-r} 0,${-r}`,`C ${-s},${-r} ${-e},${-a} ${-e},0`,`C ${-e},${a} ${-s},${r} 0,${r}`,"Z"].join(" ");let l=pu(t.matrix||fu,mu("translate",[n,-i]));return t.rotate&&(l=pu(l,mu("rotate",[-Nl(t.rotate)]))),Hu(c,Object.assign(Object.assign({},t),{x:0,y:0,rotate:Cl(0),scale:1,matrix:l}))},Hu=(t,e)=>{var r,n,i;const o=$u(e);return o?[_l(),e.graphicsState&&Ql(e.graphicsState),...e.clipSpaces?ju(e.clipSpaces):[],e.matrix&&zl(...e.matrix),Ul(e.x,e.y),Il(Tl(null!==(r=e.rotate)&&void 0!==r?r:Cl(0))),e.scale?Vl(e.scale,-e.scale):Vl(1,-1),e.color&&Nd(e.color),e.borderColor&&Dd(e.borderColor),e.borderWidth&&th(e.borderWidth),e.borderLineCap&&Zl(e.borderLineCap),Kl(null!==(n=e.borderDashArray)&&void 0!==n?n:[],null!==(i=e.borderDashPhase)&&void 0!==i?i:0),...Hd(t),o(),$l()].filter(Boolean):[]},Ku=t=>{const e=kl(t.size),r=-.25,n=-.49,i=-.675;return[_l(),t.color&&Dd(t.color),th(t.thickness),Ul(t.x,t.y),ih(i*e,-.07601036269430045*e),oh(r*e,n*e),oh(.69*e,.475*e),ch(),$l()].filter(Boolean)},Gu=t=>0===t.rotation?[Ul(0,0),Ll(0)]:90===t.rotation?[Ul(t.width,0),Ll(90)]:180===t.rotation?[Ul(t.width,t.height),Ll(180)]:270===t.rotation?[Ul(0,t.height),Ll(270)]:[],Xu=t=>{const e=Lu({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)});if(!t.filled)return e;const r=kl(t.width),n=kl(t.height),i=Math.min(r,n)/2,o=Ku({x:r/2,y:n/2,size:i,thickness:t.thickness,color:t.markColor});return[_l(),...e,...o,$l()]},Zu=t=>{const e=kl(t.width),r=kl(t.height),n=Math.min(e,r)/2,i=Wu({x:t.x,y:t.y,xScale:n,yScale:n,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return i;const o=Wu({x:t.x,y:t.y,xScale:.45*n,yScale:.45*n,color:t.dotColor,borderColor:void 0,borderWidth:0});return[_l(),...i,...o,$l()]},Yu=t=>{const e=kl(t.x),r=kl(t.y),n=kl(t.width),i=kl(t.height),o=Lu({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),s=Ju(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)});return[_l(),...o,...s,$l()]},Ju=(t,e)=>{const r=[bh(),Nd(e.color),vh(e.font,e.size)];for(let n=0,i=t.length;n<i;n++){const{encoded:i,x:o,y:s}=t[n];r.push(Th(Tl(e.rotate),Tl(e.xSkew),Tl(e.ySkew),o,s),mh(i))}return r.push(yh()),r},Qu=t=>{const e=kl(t.x),r=kl(t.y),n=kl(t.width),i=kl(t.height),o=kl(t.borderWidth),s=kl(t.padding),a=e+o/2+s,c=r+o/2+s,l=n-2*(o/2+s),h=i-2*(o/2+s),d=[ih(a,c),oh(a,c+h),oh(a+l,c+h),oh(a+l,c),nh(),El(),fh()],u=Lu({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),f=Ju(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),p=[Mh("Tx"),_l(),...f,$l(),zh()];return[_l(),...u,...d,...p,$l()]},_u=t=>{const e=kl(t.x),r=kl(t.y),n=kl(t.width),i=kl(t.height),o=kl(t.lineHeight),s=kl(t.borderWidth),a=kl(t.padding),c=e+s/2+a,l=r+s/2+a,h=n-2*(s/2+a),d=i-2*(s/2+a),u=[ih(c,l),oh(c,l+d),oh(c+h,l+d),oh(c+h,l),nh(),El(),fh()],f=Lu({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),p=[];for(let e=0,r=t.selectedLines.length;e<r;e++){const r=t.textLines[t.selectedLines[e]];p.push(...Lu({x:r.x-a,y:r.y-(o-r.height)/2,width:n-s,height:r.height+(o-r.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}))}const g=Ju(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),m=[Mh("Tx"),_l(),...g,$l(),zh()];return[_l(),...f,...p,...u,...m,$l()]},$u=({color:t,borderWidth:e,borderColor:r,fillRule:n})=>t&&r&&e?uh:t?n===lh.EvenOdd?dh:hh:r&&e?ch:void 0;class tf 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 ef 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 rf 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 nf extends Error{constructor(){super("PDFDocument has no pages so `PDFDocument.removePage` cannot be called")}}class of extends Error{constructor(t){super(`PDFDocument has no form field with the name "${t}"`)}}class sf extends Error{constructor(t,e,r){var n,i;super(`Expected field "${t}" to be of type ${null==e?void 0:e.name}, but it is actually of type ${null!==(i=null===(n=null==r?void 0:r.constructor)||void 0===n?void 0:n.name)&&void 0!==i?i:r}`)}}class af extends Error{constructor(t){super(`Failed to select check box due to missing onValue: "${t}"`)}}class cf extends Error{constructor(t){super(`A field already exists with the specified name: "${t}"`)}}class lf extends Error{constructor(t){super(`Field name contains invalid component: "${t}"`)}}class hf extends Error{constructor(t){super(`A non-terminal field already exists with the specified name: "${t}"`)}}class df extends Error{constructor(t){super(`Reading rich text fields is not supported: Attempted to read rich text field: ${t}`)}}class uf extends Error{constructor(t,e){super(`Failed to layout combed text as lineLength=${t} is greater than cellCount=${e}`)}}class ff extends Error{constructor(t,e,r){super(`Attempted to set text with length=${t} for TextField with maxLength=${e} and name=${r}`)}}class pf extends Error{constructor(t,e,r){super(`Attempted to set maxLength=${e}, which is less than ${t}, the length of this field's current value (name=${r})`)}}var gf;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(gf||(gf={}));const mf=(t,e,r,n=!1)=>{let i=4;for(;i<500;){let o=0;for(let n=0,s=t.length;n<s;n++){o+=1;const s=t[n].split(" ");let a=r.width;for(let t=0,n=s.length;t<n;t++){const c=t===n-1?s[t]:s[t]+" ",l=e.widthOfTextAtSize(c,i);a-=l,a<=0&&(o+=1,a=r.width-l)}}if(!n&&o>t.length)return i-1;const s=e.heightAtSize(i);if((s+.2*s)*o>Math.abs(r.height))return i-1;i+=1}return i},bf=t=>{for(let e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},yf=(t,e,r,n)=>{var i;let o=t.length;for(;o>0;){const s=t.substring(0,o),a=r.encodeText(s),c=r.widthOfTextAtSize(s,n);if(c<e){return{line:s,encoded:a,width:c,remainder:t.substring(o)||void 0}}o=null!==(i=bf(s))&&void 0!==i?i:0}return{line:t,encoded:r.encodeText(t),width:r.widthOfTextAtSize(t,n),remainder:void 0}},vf=(t,{alignment:e,fontSize:r,font:n,bounds:i})=>{const o=x(b(t));void 0!==r&&0!==r||(r=mf(o,n,i,!0));const s=n.heightAtSize(r),a=s+.2*s,c=[];let l=i.x,h=i.y,d=i.x+i.width,u=i.y+i.height,f=i.y+i.height;for(let t=0,p=o.length;t<p;t++){let p=o[t];for(;void 0!==p;){const{line:t,encoded:o,width:g,remainder:m}=yf(p,i.width,n,r),b=e===gf.Left?i.x:e===gf.Center?i.x+i.width/2-g/2:e===gf.Right?i.x+i.width-g:i.x;f-=a,b<l&&(l=b),f<h&&(h=f),b+g>d&&(d=b+g),f+s>u&&(u=f+s),c.push({text:t,encoded:o,width:g,height:s,x:b,y:f}),p=null==m?void 0:m.trim()}}return{fontSize:r,lineHeight:a,lines:c,bounds:{x:l,y:h,width:d-l,height:u-h}}},wf=(t,{fontSize:e,font:r,bounds:n,cellCount:i})=>{const o=k(b(t));if(o.length>i)throw new uf(o.length,i);void 0!==e&&0!==e||(e=((t,e,r,n)=>{const i=r.width/n,o=r.height;let s=4;const a=F(t);for(;s<500;){for(let t=0,r=a.length;t<r;t++){const r=a[t];if(e.widthOfTextAtSize(r,s)>.75*i)return s-1}if(e.heightAtSize(s,{descender:!1})>o)return s-1;s+=1}return s})(o,r,n,i));const s=n.width/i,a=r.heightAtSize(e,{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<i;){const[t,i]=S(o,g),m=r.encodeText(t),b=r.widthOfTextAtSize(t,e),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:o,encoded:m,width:b,height:a,x:y,y:c}),p+=1,g+=i}return{fontSize:e,cells:l,bounds:{x:h,y:d,width:u-h,height:f-d}}},xf=(t,{alignment:e,fontSize:r,font:n,bounds:i})=>{const o=k(b(t));void 0!==r&&0!==r||(r=mf([o],n,i));const s=n.encodeText(o),a=n.widthOfTextAtSize(o,r),c=n.heightAtSize(r,{descender:!1}),l=e===gf.Left?i.x:e===gf.Center?i.x+i.width/2-a/2:e===gf.Right?i.x+i.width-a:i.x,h=i.y+(i.height/2-c/2);return{fontSize:r,line:{text:o,encoded:s,width:a,height:c,x:l,y:h},bounds:{x:l,y:h,width:a,height:c}}},kf=t=>"normal"in t?t:{normal:t},Sf=/\/([^\0\t\n\f\r ]+)[\0\t\n\f\r ]+(\d*\.\d+|\d+)[\0\t\n\f\r ]+Tf/,Ff=t=>{var e,r;const n=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",i=null!==(r=T(n,Sf).match)&&void 0!==r?r:[],o=Number(i[2]);return isFinite(o)?o:void 0},Cf=/(\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)/,Af=t=>{var e;const r=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",n=T(r,Cf).match,[,i,o,s,a,c]=null!=n?n:[];return"g"===c&&i?Cd(Number(i)):"rg"===c&&i&&o&&s?Ad(Number(i),Number(o),Number(s)):"k"===c&&i&&o&&s&&a?Od(Number(i),Number(o),Number(s),Number(a)):void 0},Of=(t,e,r,n=0)=>{var i;const o=[Nd(e).toString(),vh(null!==(i=null==r?void 0:r.name)&&void 0!==i?i:"dummy__noop",n).toString()].join("\n");t.setDefaultAppearance(o)},Tf=(t,e)=>{var r,n,i;const o=Af(e),s=Af(t.acroField),a=e.getRectangle(),c=e.getAppearanceCharacteristics(),l=e.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Dl(null==c?void 0:c.getRotation()),{width:u,height:f}=Bl(a,d),p=Gu(Object.assign(Object.assign({},a),{rotation:d})),g=Ad(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!==(i=null!=o?o:s)&&void 0!==i?i:g;Of(o?e:t.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,...Xu(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Xu(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Xu(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Xu(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},Nf=(t,e)=>{var r,n,i;const o=Af(e),s=Af(t.acroField),a=e.getRectangle(),c=e.getAppearanceCharacteristics(),l=e.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Dl(null==c?void 0:c.getRotation()),{width:u,height:f}=Bl(a,d),p=Gu(Object.assign(Object.assign({},a),{rotation:d})),g=Ad(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!==(i=null!=o?o:s)&&void 0!==i?i:g;Of(o?e:t.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,...Zu(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Zu(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Zu(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Zu(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},Df=(t,e,r)=>{var n,i,o,s,a;const c=Af(e),l=Af(t.acroField),h=Ff(e),d=Ff(t.acroField),u=e.getRectangle(),f=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),g=null==f?void 0:f.getCaptions(),m=null!==(n=null==g?void 0:g.normal)&&void 0!==n?n:"",b=null!==(o=null!==(i=null==g?void 0:g.down)&&void 0!==i?i:m)&&void 0!==o?o:"",y=null!==(s=null==p?void 0:p.getWidth())&&void 0!==s?s:0,v=Dl(null==f?void 0:f.getRotation()),{width:w,height:x}=Bl(u,v),k=Gu(Object.assign(Object.assign({},u),{rotation:v})),S=Ad(0,0,0),F=Bd(null==f?void 0:f.getBorderColor()),C=Bd(null==f?void 0:f.getBackgroundColor()),A=Bd(null==f?void 0:f.getBackgroundColor(),.8),O={x:y,y:y,width:w-2*y,height:x-2*y},T=xf(m,{alignment:gf.Center,fontSize:null!=h?h:d,font:r,bounds:O}),N=xf(b,{alignment:gf.Center,fontSize:null!=h?h:d,font:r,bounds:O}),D=Math.min(T.fontSize,N.fontSize),B=null!==(a=null!=c?c:l)&&void 0!==a?a:S;Of(c||void 0!==h?e:t.acroField,B,r,D);const R={x:0+y/2,y:0+y/2,width:w-y,height:x-y,borderWidth:y,borderColor:F,textColor:B,font:r.name,fontSize:D};return{normal:[...k,...Yu(Object.assign(Object.assign({},R),{color:C,textLines:[T.line]}))],down:[...k,...Yu(Object.assign(Object.assign({},R),{color:A,textLines:[N.line]}))]}},Bf=(t,e,r)=>{var n,i,o,s;const a=Af(e),c=Af(t.acroField),l=Ff(e),h=Ff(t.acroField),d=e.getRectangle(),u=e.getAppearanceCharacteristics(),f=e.getBorderStyle(),p=null!==(n=t.getText())&&void 0!==n?n:"",g=null!==(i=null==f?void 0:f.getWidth())&&void 0!==i?i:0,m=Dl(null==u?void 0:u.getRotation()),{width:b,height:y}=Bl(d,m),v=Gu(Object.assign(Object.assign({},d),{rotation:m})),w=Ad(0,0,0),x=Bd(null==u?void 0:u.getBorderColor()),k=Bd(null==u?void 0:u.getBackgroundColor());let S,F;const C=t.isCombed()?0:1,A={x:g+C,y:g+C,width:b-2*(g+C),height:y-2*(g+C)};if(t.isMultiline()){const e=vf(p,{alignment:t.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=e.lines,F=e.fontSize}else if(t.isCombed()){const e=wf(p,{fontSize:null!=l?l:h,font:r,bounds:A,cellCount:null!==(o=t.getMaxLength())&&void 0!==o?o:0});S=e.cells,F=e.fontSize}else{const e=xf(p,{alignment:t.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=[e.line],F=e.fontSize}const O=null!==(s=null!=a?a:c)&&void 0!==s?s:w;Of(a||void 0!==l?e:t.acroField,O,r,F);const T={x:0+g/2,y:0+g/2,width:b-g,height:y-g,borderWidth:null!=g?g:0,borderColor:x,textColor:O,font:r.name,fontSize:F,color:k,textLines:S,padding:C};return[...v,...Qu(T)]},Rf=(t,e,r)=>{var n,i,o;const s=Af(e),a=Af(t.acroField),c=Ff(e),l=Ff(t.acroField),h=e.getRectangle(),d=e.getAppearanceCharacteristics(),u=e.getBorderStyle(),f=null!==(n=t.getSelected()[0])&&void 0!==n?n:"",p=null!==(i=null==u?void 0:u.getWidth())&&void 0!==i?i:0,g=Dl(null==d?void 0:d.getRotation()),{width:m,height:b}=Bl(h,g),y=Gu(Object.assign(Object.assign({},h),{rotation:g})),v=Ad(0,0,0),w=Bd(null==d?void 0:d.getBorderColor()),x=Bd(null==d?void 0:d.getBackgroundColor()),k={x:p+1,y:p+1,width:m-2*(p+1),height:b-2*(p+1)},{line:S,fontSize:F}=xf(f,{alignment:gf.Left,fontSize:null!=c?c:l,font:r,bounds:k}),C=null!==(o=null!=s?s:a)&&void 0!==o?o:v;Of(s||void 0!==c?e:t.acroField,C,r,F);const A={x:0+p/2,y:0+p/2,width:m-p,height:b-p,borderWidth:null!=p?p:0,borderColor:w,textColor:C,font:r.name,fontSize:F,color:x,textLines:[S],padding:1};return[...y,...Qu(A)]},Ef=(t,e,r)=>{var n,i;const o=Af(e),s=Af(t.acroField),a=Ff(e),c=Ff(t.acroField),l=e.getRectangle(),h=e.getAppearanceCharacteristics(),d=e.getBorderStyle(),u=null!==(n=null==d?void 0:d.getWidth())&&void 0!==n?n:0,f=Dl(null==h?void 0:h.getRotation()),{width:p,height:g}=Bl(l,f),m=Gu(Object.assign(Object.assign({},l),{rotation:f})),b=Ad(0,0,0),y=Bd(null==h?void 0:h.getBorderColor()),v=Bd(null==h?void 0:h.getBackgroundColor()),w=t.getOptions(),x=t.getSelected();t.isSorted()&&w.sort();let k="";for(let t=0,e=w.length;t<e;t++)k+=w[t],t<e-1&&(k+="\n");const S={x:u+1,y:u+1,width:p-2*(u+1),height:g-2*(u+1)},{lines:F,fontSize:C,lineHeight:A}=vf(k,{alignment:gf.Left,fontSize:null!=a?a:c,font:r,bounds:S}),O=[];for(let t=0,e=F.length;t<e;t++){const e=F[t];x.includes(e.text)&&O.push(t)}const T=Ad(.6,193/255,218/255),N=null!==(i=null!=o?o:s)&&void 0!==i?i:b;return Of(o||void 0!==a?e:t.acroField,N,r,C),[...m,..._u({x:0+u/2,y:0+u/2,width:p-u,height:g-u,borderWidth:null!=u?u:0,borderColor:y,textColor:N,font:r.name,fontSize:C,color:v,textLines:F,lineHeight:A,selectedColor:T,selectedLines:O,padding:1})]};class Pf{constructor(t,e,r){this.alreadyEmbedded=!1,Yn(t,"ref",[[eo,"PDFRef"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),Yn(r,"embedder",[[Js,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=r.width,this.height=r.height,this.embedder=r}scale(t){return Yn(t,"factor",["number"]),{width:this.width*t,height:this.height*t}}size(){return this.scale(1)}embed(){return po(this,void 0,void 0,(function*(){this.alreadyEmbedded||(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.alreadyEmbedded=!0)}))}}Pf.of=(t,e,r)=>new Pf(t,e,r);class jf{constructor(t,e,r){this.modified=!0,Yn(t,"ref",[[eo,"PDFRef"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),Yn(r,"embedder",[[vs,"CustomFontEmbedder"],[fs,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=r.fontName,this.embedder=r}encodeText(t){return Yn(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)}widthOfTextAtSize(t,e){return Yn(t,"text",["string"]),Yn(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)}heightAtSize(t,e){var r;return Yn(t,"size",["number"]),Jn(null==e?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:null===(r=null==e?void 0:e.descender)||void 0===r||r})}sizeAtHeight(t){return Yn(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)}getCharacterSet(){return this.embedder instanceof fs?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet}embed(){return po(this,void 0,void 0,(function*(){this.modified&&(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.modified=!1)}))}}jf.of=(t,e,r)=>new jf(t,e,r);class qf{constructor(t,e,r){Yn(t,"ref",[[eo,"PDFRef"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),Yn(r,"embedder",[[As,"JpegEmbedder"],[Es,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=r.width,this.height=r.height,this.embedder=r}scale(t){return Yn(t,"factor",["number"]),{width:this.width*t,height:this.height*t}}scaleToFit(t,e){Yn(t,"width",["number"]),Yn(e,"height",["number"]);const r=t/this.width,n=e/this.height,i=Math.min(r,n);return this.scale(i)}size(){return this.scale(1)}embed(){return po(this,void 0,void 0,(function*(){if(this.embedder){if(!this.embedTask){const{doc:t,ref:e}=this;this.embedTask=this.embedder.embedIntoContext(t.context,e)}yield this.embedTask,this.embedder=void 0}}))}}var Mf;qf.of=(t,e,r)=>new qf(t,e,r),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Mf||(Mf={}));const zf=t=>{Jn(null==t?void 0:t.x,"options.x",["number"]),Jn(null==t?void 0:t.y,"options.y",["number"]),Jn(null==t?void 0:t.width,"options.width",["number"]),Jn(null==t?void 0:t.height,"options.height",["number"]),Jn(null==t?void 0:t.textColor,"options.textColor",[[Object,"Color"]]),Jn(null==t?void 0:t.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Jn(null==t?void 0:t.borderColor,"options.borderColor",[[Object,"Color"]]),Jn(null==t?void 0:t.borderWidth,"options.borderWidth",["number"]),Jn(null==t?void 0:t.rotate,"options.rotate",[[Object,"Rotation"]])};class Uf{constructor(t,e,r){Yn(t,"acroField",[[Ro,"PDFAcroTerminal"]]),Yn(e,"ref",[[eo,"PDFRef"]]),Yn(r,"doc",[[mp,"PDFDocument"]]),this.acroField=t,this.ref=e,this.doc=r}getName(){var t;return null!==(t=this.acroField.getFullyQualifiedName())&&void 0!==t?t:""}isReadOnly(){return this.acroField.hasFlag(qo.ReadOnly)}enableReadOnly(){this.acroField.setFlagTo(qo.ReadOnly,!0)}disableReadOnly(){this.acroField.setFlagTo(qo.ReadOnly,!1)}isRequired(){return this.acroField.hasFlag(qo.Required)}enableRequired(){this.acroField.setFlagTo(qo.Required,!0)}disableRequired(){this.acroField.setFlagTo(qo.Required,!1)}isExported(){return!this.acroField.hasFlag(qo.NoExport)}enableExporting(){this.acroField.setFlagTo(qo.NoExport,!1)}disableExporting(){this.acroField.setFlagTo(qo.NoExport,!0)}needsAppearancesUpdate(){throw new si(this.constructor.name,"needsAppearancesUpdate")}defaultUpdateAppearances(t){throw new si(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 e;const r=t.textColor,n=t.backgroundColor,i=t.borderColor,o=t.borderWidth,s=Nl(t.rotate),a=t.caption,c=t.x,l=t.y,h=t.width+o,d=t.height+o,u=Boolean(t.hidden),f=t.page;ti(s,"degreesAngle",90);const p=Bo.create(this.doc.context,this.ref),g=Rl({x:c,y:l,width:h,height:d},o,s);p.setRectangle(g),f&&p.setP(f);const m=p.getOrCreateAppearanceCharacteristics();n&&m.setBackgroundColor(Rd(n)),m.setRotation(s),a&&m.setCaptions({normal:a}),i&&m.setBorderColor(Rd(i));const b=p.getOrCreateBorderStyle();if(void 0!==o&&b.setWidth(o),p.setFlagTo(vl.Print,!0),p.setFlagTo(vl.Hidden,u),p.setFlagTo(vl.Invisible,!1),r){const t=(null!==(e=this.acroField.getDefaultAppearance())&&void 0!==e?e:"")+"\n"+Nd(r).toString();this.acroField.setDefaultAppearance(t)}return p}updateWidgetAppearanceWithFont(t,e,{normal:r,rollover:n,down:i}){this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,r,e),rollover:n&&this.createAppearanceStream(t,n,e),down:i&&this.createAppearanceStream(t,i,e)})}updateOnOffWidgetAppearance(t,e,{normal:r,rollover:n,down:i}){this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,r,e),rollover:n&&this.createAppearanceDict(t,n,e),down:i&&this.createAppearanceDict(t,i,e)})}updateWidgetAppearances(t,{normal:e,rollover:r,down:n}){t.setNormalAppearance(e),r?t.setRolloverAppearance(r):t.removeRolloverAppearance(),n?t.setDownAppearance(n):t.removeDownAppearance()}createAppearanceStream(t,e,r){const{context:n}=this.acroField.dict,{width:i,height:o}=t.getRectangle(),s=r&&{Font:{[r.name]:r.ref}},a=n.formXObject(e,{Resources:s,BBox:n.obj([0,0,i,o]),Matrix:n.obj([1,0,0,1,0,0])});return n.register(a)}createImageAppearanceStream(t,e,r){var n;const{context:i}=this.acroField.dict,o=t.getRectangle(),s=t.getAppearanceCharacteristics(),a=t.getBorderStyle(),c=null!==(n=null==a?void 0:a.getWidth())&&void 0!==n?n:0,l=Dl(null==s?void 0:s.getRotation()),h=Gu(Object.assign(Object.assign({},o),{rotation:l})),d=Bl(o,l),u=e.scaleToFit(d.width-2*c,d.height-2*c),f={x:c,y:c,width:u.width,height:u.height,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)};r===Mf.Center?(f.x+=(d.width-2*c)/2-u.width/2,f.y+=(d.height-2*c)/2-u.height/2):r===Mf.Right&&(f.x=d.width-c-u.width,f.y=d.height-c-u.height);const p=this.doc.context.addRandomSuffix("Image",10),g=[...h,...zu(p,f)],m={XObject:{[p]:e.ref}},b=i.formXObject(g,{Resources:m,BBox:i.obj([0,0,o.width,o.height]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(b)}createAppearanceDict(t,e,r){const{context:n}=this.acroField.dict,i=this.createAppearanceStream(t,e.on),o=this.createAppearanceStream(t,e.off),s=n.obj({});return s.set(r,i),s.set(Xi.of("Off"),o),s}}class Vf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroCheckBox",[[Po,"PDFAcroCheckBox"]]),this.acroField=t}check(){var t;const e=null!==(t=this.acroField.getOnValue())&&void 0!==t?t:Xi.of("Yes");this.markAsDirty(),this.acroField.setValue(e)}uncheck(){this.markAsDirty(),this.acroField.setValue(Xi.of("Off"))}isChecked(){const t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()}addToPage(t,e){var r,n,i,o,s,a;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const c=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:50,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),l=this.doc.context.register(c.dict);this.acroField.addWidget(l),c.setAppearanceState(Xi.of("Off")),this.updateWidgetAppearance(c,Xi.of("Yes")),t.node.addAnnot(l)}needsAppearancesUpdate(){var t;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.getAppearanceState(),o=null===(t=n.getAppearances())||void 0===t?void 0:t.normal;if(!(o instanceof Yi))return!0;if(i&&!o.has(i))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(t){var e;Jn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n],o=null!==(e=i.getOnValue())&&void 0!==e?e:Xi.of("Yes");o&&this.updateWidgetAppearance(i,o,t)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Tf)(this,t));this.updateOnOffWidgetAppearance(t,e,n)}}Vf.of=(t,e,r)=>new Vf(t,e,r);class If extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroComboBox",[[Io,"PDFAcroComboBox"]]),this.acroField=t}getOptions(){const t=this.acroField.getOptions(),e=new Array(t.length);for(let r=0,n=e.length;r<n;r++){const{display:n,value:i}=t[r];e[r]=(null!=n?n:i).decodeText()}return e}getSelected(){const t=this.acroField.getValues(),e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}setOptions(t){Yn(t,"options",[Array]);const e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]={value:Ji.fromText(t[r])};this.acroField.setOptions(e)}addOptions(t){Yn(t,"options",["string",Array]);const e=Array.isArray(t)?t:[t],r=this.acroField.getOptions(),n=new Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]={value:Ji.fromText(e[t])};this.acroField.setOptions(r.concat(n))}select(t,e=!1){Yn(t,"options",["string",Array]),Yn(e,"merge",["boolean"]);const r=Array.isArray(t)?t:[t],n=this.getOptions();r.find((t=>!n.includes(t)))&&this.enableEditing(),this.markAsDirty(),(r.length>1||1===r.length&&e)&&this.enableMultiselect();const i=new Array(r.length);for(let t=0,e=r.length;t<e;t++)i[t]=Ji.fromText(r[t]);if(e){const t=this.acroField.getValues();this.acroField.setValues(t.concat(i))}else this.acroField.setValues(i)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}isEditable(){return this.acroField.hasFlag(Uo.Edit)}enableEditing(){this.acroField.setFlagTo(Uo.Edit,!0)}disableEditing(){this.acroField.setFlagTo(Uo.Edit,!1)}isSorted(){return this.acroField.hasFlag(Uo.Sort)}enableSorting(){this.acroField.setFlagTo(Uo.Sort,!0)}disableSorting(){this.acroField.setFlagTo(Uo.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(Uo.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(Uo.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(Uo.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(Uo.DoNotSpellCheck,!0)}isSelectOnClick(){return this.acroField.hasFlag(Uo.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!1)}addToPage(t,e){var r,n,i,o,s,a,c;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=e.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),t.node.addAnnot(h)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Rf)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}If.of=(t,e,r)=>new If(t,e,r);class Lf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroListBox",[[Xo,"PDFAcroListBox"]]),this.acroField=t}getOptions(){const t=this.acroField.getOptions(),e=new Array(t.length);for(let r=0,n=e.length;r<n;r++){const{display:n,value:i}=t[r];e[r]=(null!=n?n:i).decodeText()}return e}getSelected(){const t=this.acroField.getValues(),e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}setOptions(t){Yn(t,"options",[Array]),this.markAsDirty();const e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]={value:Ji.fromText(t[r])};this.acroField.setOptions(e)}addOptions(t){Yn(t,"options",["string",Array]),this.markAsDirty();const e=Array.isArray(t)?t:[t],r=this.acroField.getOptions(),n=new Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]={value:Ji.fromText(e[t])};this.acroField.setOptions(r.concat(n))}select(t,e=!1){Yn(t,"options",["string",Array]),Yn(e,"merge",["boolean"]);const r=Array.isArray(t)?t:[t],n=this.getOptions();Kn(r,"option",n),this.markAsDirty(),(r.length>1||1===r.length&&e)&&this.enableMultiselect();const i=new Array(r.length);for(let t=0,e=r.length;t<e;t++)i[t]=Ji.fromText(r[t]);if(e){const t=this.acroField.getValues();this.acroField.setValues(t.concat(i))}else this.acroField.setValues(i)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}isSorted(){return this.acroField.hasFlag(Uo.Sort)}enableSorting(){this.acroField.setFlagTo(Uo.Sort,!0)}disableSorting(){this.acroField.setFlagTo(Uo.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(Uo.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!1)}isSelectOnClick(){return this.acroField.hasFlag(Uo.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!1)}addToPage(t,e){var r,n,i,o,s,a,c;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:100,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=e.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),t.node.addAnnot(h)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Ef)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}Lf.of=(t,e,r)=>new Lf(t,e,r);class Wf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroRadioButton",[[Go,"PDFAcroRadioButton"]]),this.acroField=t}getOptions(){const t=this.acroField.getExportValues();if(t){const e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}const e=this.acroField.getOnValues(),r=new Array(e.length);for(let t=0,n=r.length;t<n;t++)r[t]=e[t].decodeText();return r}getSelected(){const t=this.acroField.getValue();if(t===Xi.of("Off"))return;const e=this.acroField.getExportValues();if(e){const r=this.acroField.getOnValues();for(let n=0,i=r.length;n<i;n++)if(r[n]===t)return e[n].decodeText()}return t.decodeText()}select(t){Yn(t,"option",["string"]);const e=this.getOptions();Wn(t,"option",e),this.markAsDirty();const r=this.acroField.getOnValues(),n=this.acroField.getExportValues();if(n)for(let e=0,i=n.length;e<i;e++)n[e].decodeText()===t&&this.acroField.setValue(r[e]);else for(let e=0,n=r.length;e<n;e++){const n=r[e];n.decodeText()===t&&this.acroField.setValue(n)}}clear(){this.markAsDirty(),this.acroField.setValue(Xi.of("Off"))}isOffToggleable(){return!this.acroField.hasFlag(Mo.NoToggleToOff)}enableOffToggling(){this.acroField.setFlagTo(Mo.NoToggleToOff,!1)}disableOffToggling(){this.acroField.setFlagTo(Mo.NoToggleToOff,!0)}isMutuallyExclusive(){return!this.acroField.hasFlag(Mo.RadiosInUnison)}enableMutualExclusion(){this.acroField.setFlagTo(Mo.RadiosInUnison,!1)}disableMutualExclusion(){this.acroField.setFlagTo(Mo.RadiosInUnison,!0)}addOptionToPage(t,e,r){var n,i,o,s,a,c,l,h,d;Yn(t,"option",["string"]),Yn(e,"page",[[yp,"PDFPage"]]),zf(r);const u=this.createWidget({x:null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0,y:null!==(i=null==r?void 0:r.y)&&void 0!==i?i:0,width:null!==(o=null==r?void 0:r.width)&&void 0!==o?o: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:Ad(0,0,0),backgroundColor:null!==(c=null==r?void 0:r.backgroundColor)&&void 0!==c?c:Ad(1,1,1),borderColor:null!==(l=null==r?void 0:r.borderColor)&&void 0!==l?l:Ad(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:Cl(0),hidden:null==r?void 0:r.hidden,page:e.ref}),f=this.doc.context.register(u.dict),p=this.acroField.addWidgetWithOpt(f,Ji.fromText(t),!this.isMutuallyExclusive());u.setAppearanceState(Xi.of("Off")),this.updateWidgetAppearance(u,p),e.node.addAnnot(f)}needsAppearancesUpdate(){var t;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.getAppearanceState(),o=null===(t=n.getAppearances())||void 0===t?void 0:t.normal;if(!(o instanceof Yi))return!0;if(i&&!o.has(i))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(t){Jn(t,"provider",[Function]);const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.getOnValue();i&&this.updateWidgetAppearance(n,i,t)}}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Nf)(this,t));this.updateOnOffWidgetAppearance(t,e,n)}}Wf.of=(t,e,r)=>new Wf(t,e,r);class Hf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroSignature",[[Wo,"PDFAcroSignature"]]),this.acroField=t}needsAppearancesUpdate(){return!1}}Hf.of=(t,e,r)=>new Hf(t,e,r);class Kf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroText",[[Ho,"PDFAcroText"]]),this.acroField=t}getText(){const t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new df(this.getName());return null==t?void 0:t.decodeText()}setText(t){Jn(t,"text",["string"]);const e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new ff(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(Ji.fromText(t)):this.acroField.removeValue()}getAlignment(){const t=this.acroField.getQuadding();return 0===t?gf.Left:1===t?gf.Center:2===t?gf.Right:gf.Left}setAlignment(t){Wn(t,"alignment",gf),this.markAsDirty(),this.acroField.setQuadding(t)}getMaxLength(){return this.acroField.getMaxLength()}setMaxLength(t){if($n(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{const e=this.getText();if(e&&e.length>t)throw new pf(e.length,t,this.getName());this.acroField.setMaxLength(t)}}removeMaxLength(){this.markAsDirty(),this.acroField.removeMaxLength()}setImage(t){const e=this.getAlignment(),r=e===gf.Center?Mf.Center:e===gf.Right?Mf.Right:Mf.Left,n=this.acroField.getWidgets();for(let e=0,i=n.length;e<i;e++){const i=n[e],o=this.createImageAppearanceStream(i,t,r);this.updateWidgetAppearances(i,{normal:o})}this.markAsClean()}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}isMultiline(){return this.acroField.hasFlag(zo.Multiline)}enableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(zo.Multiline,!0)}disableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(zo.Multiline,!1)}isPassword(){return this.acroField.hasFlag(zo.Password)}enablePassword(){this.acroField.setFlagTo(zo.Password,!0)}disablePassword(){this.acroField.setFlagTo(zo.Password,!1)}isFileSelector(){return this.acroField.hasFlag(zo.FileSelect)}enableFileSelection(){this.acroField.setFlagTo(zo.FileSelect,!0)}disableFileSelection(){this.acroField.setFlagTo(zo.FileSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(zo.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(zo.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(zo.DoNotSpellCheck,!0)}isScrollable(){return!this.acroField.hasFlag(zo.DoNotScroll)}enableScrolling(){this.acroField.setFlagTo(zo.DoNotScroll,!1)}disableScrolling(){this.acroField.setFlagTo(zo.DoNotScroll,!0)}isCombed(){return this.acroField.hasFlag(zo.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()}enableCombing(){if(void 0===this.getMaxLength()){const t="PDFTextFields must have a max length in order to be combed";console.warn(t)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(zo.Comb,!0)}disableCombing(){this.markAsDirty(),this.acroField.setFlagTo(zo.Comb,!1)}isRichFormatted(){return this.acroField.hasFlag(zo.RichText)}enableRichFormatting(){this.acroField.setFlagTo(zo.RichText,!0)}disableRichFormatting(){this.acroField.setFlagTo(zo.RichText,!1)}addToPage(t,e){var r,n,i,o,s,a,c;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=e.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),t.node.addAnnot(h)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Bf)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}var Gf;Kf.of=(t,e,r)=>new Kf(t,e,r),function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(Gf||(Gf={}));class Xf{constructor(t,e){this.embedDefaultFont=()=>this.doc.embedStandardFont(Gf.Helvetica),Yn(t,"acroForm",[[ns,"PDFAcroForm"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),this.acroForm=t,this.doc=e,this.dirtyFields=new Set,this.defaultFontCache=oi.populatedBy(this.embedDefaultFont)}hasXFA(){return this.acroForm.dict.has(Xi.of("XFA"))}deleteXFA(){this.acroForm.dict.delete(Xi.of("XFA"))}getFields(){const t=this.acroForm.getAllFields(),e=[];for(let r=0,n=t.length;r<n;r++){const[n,i]=t[r],o=Zf(n,i,this.doc);o&&e.push(o)}return e}getFieldMaybe(t){Yn(t,"name",["string"]);const e=this.getFields();for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n.getName()===t)return n}}getField(t){Yn(t,"name",["string"]);const e=this.getFieldMaybe(t);if(e)return e;throw new of(t)}getButton(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof vp)return e;throw new sf(t,vp,e)}getCheckBox(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Vf)return e;throw new sf(t,Vf,e)}getDropdown(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof If)return e;throw new sf(t,If,e)}getOptionList(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Lf)return e;throw new sf(t,Lf,e)}getRadioGroup(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Wf)return e;throw new sf(t,Wf,e)}getSignature(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Hf)return e;throw new sf(t,Hf,e)}getTextField(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Kf)return e;throw new sf(t,Kf,e)}createButton(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Ko.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),vp.of(n,n.ref,this.doc)}createCheckBox(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Po.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Vf.of(n,n.ref,this.doc)}createDropdown(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Io.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),If.of(n,n.ref,this.doc)}createOptionList(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Xo.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Lf.of(n,n.ref,this.doc)}createRadioGroup(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Go.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Wf.of(n,n.ref,this.doc)}createTextField(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Ho.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Kf.of(n,n.ref,this.doc)}flatten(t={updateFieldAppearances:!0}){t.updateFieldAppearances&&this.updateFieldAppearances();const e=this.getFields();for(let t=0,r=e.length;t<r;t++){const r=e[t],n=r.acroField.getWidgets();for(let t=0,e=n.length;t<e;t++)try{const e=n[t],i=this.findWidgetPage(e),o=this.findWidgetAppearanceRef(r,e),s=i.node.newXObject("FlatWidget",o),a=e.getRectangle(),c=[_l(),Ul(a.x,a.y),...Gu(Object.assign(Object.assign({},a),{rotation:0})),Dh(s),$l()].filter(Boolean);i.pushOperators(...c)}catch(t){console.error(t)}this.removeField(r)}}removeField(t){const e=t.acroField.getWidgets(),r=new Set;for(let n=0,i=e.length;n<i;n++)try{const i=e[n],o=this.findWidgetAppearanceRef(t,i),s=this.findWidgetPage(i);r.add(s),s.node.removeAnnot(o)}catch(t){console.error(t)}r.forEach((e=>e.node.removeAnnot(t.ref))),this.acroForm.removeField(t.acroField);const n=t.acroField.normalizedEntries().Kids,i=n.size();for(let t=0;t<i;t++){const e=n.get(t);e instanceof eo&&this.doc.context.delete(e)}this.doc.context.delete(t.ref)}updateFieldAppearances(t){Jn(t,"font",[[jf,"PDFFont"]]),t=null!=t?t:this.getDefaultFont();const e=this.getFields();for(let r=0,n=e.length;r<n;r++){const n=e[r];n.needsAppearancesUpdate()&&n.defaultUpdateAppearances(t)}}markFieldAsDirty(t){Jn(t,"fieldRef",[[eo,"PDFRef"]]),this.dirtyFields.add(t)}markFieldAsClean(t){Jn(t,"fieldRef",[[eo,"PDFRef"]]),this.dirtyFields.delete(t)}fieldIsDirty(t){return Jn(t,"fieldRef",[[eo,"PDFRef"]]),this.dirtyFields.has(t)}getDefaultFont(){return this.defaultFontCache.access()}findWidgetPage(t){const e=t.P();let r=this.doc.getPages().find((t=>t.ref===e));if(void 0===r){const e=this.doc.context.getObjectRef(t.dict);if(void 0===e)throw new Error("Could not find PDFRef for PDFObject");if(r=this.doc.findPageForAnnotationRef(e),void 0===r)throw new Error(`Could not find page for PDFRef ${e}`)}return r}findWidgetAppearanceRef(t,e){var r;let n=e.getNormalAppearance();if((t instanceof Vf||t instanceof Wf)&&(n instanceof eo&&(n=this.doc.context.lookup(n,Yi)),n instanceof Yi)){const e=t.acroField.getValue(),i=null!==(r=n.get(e))&&void 0!==r?r:n.get(Xi.of("Off"));i instanceof eo&&(n=i)}if(!(n instanceof eo)){const e=t.getName();throw new Error(`Failed to extract appearance ref for: ${e}`)}return n}findOrCreateNonTerminals(t){let e=[this.acroForm];for(let r=0,n=t.length;r<n;r++){const n=t[r];if(!n)throw new lf(n);const[i,o]=e,s=this.findNonTerminal(n,i);if(s)e=s;else{const t=Lo.create(this.doc.context);t.setPartialName(n),t.setParent(o);const r=this.doc.context.register(t.dict);i.addField(r),e=[t,r]}}return e}findNonTerminal(t,e){const r=e instanceof ns?this.acroForm.getFields():Zo(e.Kids());for(let e=0,n=r.length;e<n;e++){const[n,i]=r[e];if(n.getPartialName()===t){if(n instanceof Lo)return[n,i];throw new cf(t)}}}}Xf.of=(t,e)=>new Xf(t,e);const Zf=(t,e,r)=>t instanceof Ko?vp.of(t,e,r):t instanceof Po?Vf.of(t,e,r):t instanceof Io?If.of(t,e,r):t instanceof Xo?Lf.of(t,e,r):t instanceof Ho?Kf.of(t,e,r):t instanceof Go?Wf.of(t,e,r):t instanceof Wo?Hf.of(t,e,r):void 0,Yf=t=>{if(0===t.length)throw new Error("PDF field names must not be empty strings");const e=t.split(".");for(let r=0,n=e.length;r<n;r++)if(""===e[r])throw new Error(`Periods in PDF field names must be separated by at least one character: "${t}"`);return 1===e.length?{nonTerminal:[],terminal:e[0]}:{nonTerminal:e.slice(0,e.length-1),terminal:e[e.length-1]}},Jf=([t,e],[r,n],i)=>{const o=t.normalizedEntries(),s=Zo("Kids"in o?o.Kids:o.Fields);for(let t=0,e=s.length;t<e;t++)if(s[t][0].getPartialName()===i)throw new cf(i);t.addField(n),r.setParent(e)},Qf={"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 _f;!function(t){t[t.Fastest=1/0]="Fastest",t[t.Fast=1500]="Fast",t[t.Medium=500]="Medium",t[t.Slow=100]="Slow"}(_f||(_f={}));class $f{constructor(t,e,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=r}embed(){return po(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const t=yield this.embedder.embedIntoContext(this.doc.context,this.ref);this.doc.catalog.has(Xi.of("Names"))||this.doc.catalog.set(Xi.of("Names"),this.doc.context.obj({}));const e=this.doc.catalog.lookup(Xi.of("Names"),Yi);e.has(Xi.of("EmbeddedFiles"))||e.set(Xi.of("EmbeddedFiles"),this.doc.context.obj({}));const r=e.lookup(Xi.of("EmbeddedFiles"),Yi);r.has(Xi.of("Names"))||r.set(Xi.of("Names"),this.doc.context.obj([]));const n=r.lookup(Xi.of("Names"),Ui);n.push(Ji.fromText(this.embedder.fileName)),n.push(t),this.doc.catalog.has(Xi.of("AF"))||this.doc.catalog.set(Xi.of("AF"),this.doc.context.obj([]));this.doc.catalog.lookup(Xi.of("AF"),Ui).push(t),this.alreadyEmbedded=!0}}))}getEmbedder(){return this.embedder}}$f.of=(t,e,r)=>new $f(t,e,r);class tp{constructor(t,e,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=r}embed(){return po(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const{catalog:t,context:e}=this.doc,r=yield this.embedder.embedIntoContext(this.doc.context,this.ref);t.has(Xi.of("Names"))||t.set(Xi.of("Names"),e.obj({}));const n=t.lookup(Xi.of("Names"),Yi);n.has(Xi.of("JavaScript"))||n.set(Xi.of("JavaScript"),e.obj({}));const i=n.lookup(Xi.of("JavaScript"),Yi);i.has(Xi.of("Names"))||i.set(Xi.of("Names"),e.obj([]));const o=i.lookup(Xi.of("Names"),Ui);o.push(Ji.fromText(this.embedder.scriptName)),o.push(r),this.alreadyEmbedded=!0}}))}}tp.of=(t,e,r)=>new tp(t,e,r);class ep{static for(t,e){return new ep(t,e)}constructor(t,e){this.script=t,this.scriptName=e}embedIntoContext(t,e){return po(this,void 0,void 0,(function*(){const r=t.obj({Type:"Action",S:"JavaScript",JS:Ji.fromText(this.script)});return e?(t.assign(e,r),e):t.register(r)}))}}class rp extends qs{constructor(t,e,r){super(r),this.stream=t,this.decrypt=e,this.nextChunk=null,this.initialized=!1}readBlock(){let t;if(this.initialized?t=this.nextChunk:(t=this.stream.getBytes(512),this.initialized=!0),!t||0===t.length)return void(this.eof=!0);this.nextChunk=this.stream.getBytes(512);const e=this.nextChunk&&this.nextChunk.length>0;t=(0,this.decrypt)(t,!e);const r=this.bufferLength,n=r+t.length;this.ensureBuffer(n).set(t,r),this.bufferLength=n}}class np{constructor(t){this.a=0,this.b=0;const e=new Uint8Array(256),r=t.length;for(let t=0;t<256;++t)e[t]=t;for(let n=0,i=0;n<256;++n){const o=e[n];i=i+o+t[n%r]&255,e[n]=e[i],e[i]=o}this.s=e}encryptBlock(t){let e=this.a,r=this.b;const n=this.s,i=t.length,o=new Uint8Array(i);for(let s=0;s<i;++s){e=e+1&255;const i=n[e];r=r+i&255;const a=n[r];n[e]=a,n[r]=i,o[s]=t[s]^n[i+a&255]}return this.a=e,this.b=r,o}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}}const ip=function(){const t=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]),e=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,i){let o=1732584193,s=-271733879,a=-1732584194,c=271733878;const l=i+72&-64,h=new Uint8Array(l);let d,u;for(d=0;d<i;++d)h[d]=r[n++];h[d++]=128;const f=l-8;for(;d<f;)h[d++]=0;h[d++]=i<<3&255,h[d++]=i>>5&255,h[d++]=i>>13&255,h[d++]=i>>21&255,h[d++]=i>>>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,i=o,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 o=g,s=i+r+e[u]+p[n]|0,a=t[u];g=f,f=l,l=l+(s<<a|s>>>32-a)|0,i=o}o=o+i|0,s=s+l|0,a=a+f|0,c=c+g|0}return new Uint8Array([255&o,o>>8&255,o>>16&255,o>>>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 op{constructor(t,e){this.high=0|t,this.low=0|e}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}or(t){this.high|=t.high,this.low|=t.low}shiftRight(t){t>=32?(this.low=this.high>>>t-32|0,this.high=0):(this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t|0)}shiftLeft(t){t>=32?(this.high=this.low<<t-32,this.low=0):(this.high=this.high<<t|this.low>>>32-t,this.low<<=t)}rotateRight(t){let e,r;32&t?(r=this.low,e=this.high):(e=this.low,r=this.high),t&=31,this.low=e>>>t|r<<32-t,this.high=r>>>t|e<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){const e=(this.low>>>0)+(t.low>>>0);let r=(this.high>>>0)+(t.high>>>0);e>4294967295&&(r+=1),this.low=0|e,this.high=0|r}copyTo(t,e){t[e]=this.high>>>24&255,t[e+1]=this.high>>16&255,t[e+2]=this.high>>8&255,t[e+3]=255&this.high,t[e+4]=this.low>>>24&255,t[e+5]=this.low>>16&255,t[e+6]=this.low>>8&255,t[e+7]=255&this.low}assign(t){this.high=t.high,this.low=t.low}}const sp=function(){function t(t,e){return t>>>e|t<<32-e}function e(t,e,r){return t&e^~t&r}function r(t,e,r){return t&e^t&r^e&r}function n(e){return t(e,2)^t(e,13)^t(e,22)}function i(e){return t(e,6)^t(e,11)^t(e,25)}function o(e){return t(e,7)^t(e,18)^e>>>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 k=y-8;for(;w<k;)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|(t(F=S[x-2],17)^t(F,19)^F>>>10)+S[x-7]+o(S[x-15])+S[x-16];let a,c,l=h,y=d,k=u,C=f,A=p,O=g,T=m,N=b;for(x=0;x<64;++x)a=N+i(A)+e(A,O,T)+s[x]+S[x],c=n(l)+r(l,y,k),N=T,T=O,O=A,A=C+a|0,C=k,k=y,y=l,l=a+c|0;h=h+l|0,d=d+y|0,u=u+k|0,f=f+C|0,p=p+A|0,g=g+O|0,m=m+T|0,b=b+N|0}var F;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])}}(),ap=function(){function t(t,e,r,n,i){t.assign(e),t.and(r),i.assign(e),i.not(),i.and(n),t.xor(i)}function e(t,e,r,n,i){t.assign(e),t.and(r),i.assign(e),i.and(n),t.xor(i),i.assign(r),i.and(n),t.xor(i)}function r(t,e,r){t.assign(e),t.rotateRight(28),r.assign(e),r.rotateRight(34),t.xor(r),r.assign(e),r.rotateRight(39),t.xor(r)}function n(t,e,r){t.assign(e),t.rotateRight(14),r.assign(e),r.rotateRight(18),t.xor(r),r.assign(e),r.rotateRight(41),t.xor(r)}function i(t,e,r){t.assign(e),t.rotateRight(1),r.assign(e),r.rotateRight(8),t.xor(r),r.assign(e),r.shiftRight(7),t.xor(r)}function o(t,e,r){t.assign(e),t.rotateRight(19),r.assign(e),r.rotateRight(61),t.xor(r),r.assign(e),r.shiftRight(6),t.xor(r)}const s=[new op(1116352408,3609767458),new op(1899447441,602891725),new op(3049323471,3964484399),new op(3921009573,2173295548),new op(961987163,4081628472),new op(1508970993,3053834265),new op(2453635748,2937671579),new op(2870763221,3664609560),new op(3624381080,2734883394),new op(310598401,1164996542),new op(607225278,1323610764),new op(1426881987,3590304994),new op(1925078388,4068182383),new op(2162078206,991336113),new op(2614888103,633803317),new op(3248222580,3479774868),new op(3835390401,2666613458),new op(4022224774,944711139),new op(264347078,2341262773),new op(604807628,2007800933),new op(770255983,1495990901),new op(1249150122,1856431235),new op(1555081692,3175218132),new op(1996064986,2198950837),new op(2554220882,3999719339),new op(2821834349,766784016),new op(2952996808,2566594879),new op(3210313671,3203337956),new op(3336571891,1034457026),new op(3584528711,2466948901),new op(113926993,3758326383),new op(338241895,168717936),new op(666307205,1188179964),new op(773529912,1546045734),new op(1294757372,1522805485),new op(1396182291,2643833823),new op(1695183700,2343527390),new op(1986661051,1014477480),new op(2177026350,1206759142),new op(2456956037,344077627),new op(2730485921,1290863460),new op(2820302411,3158454273),new op(3259730800,3505952657),new op(3345764771,106217008),new op(3516065817,3606008344),new op(3600352804,1432725776),new op(4094571909,1467031594),new op(275423344,851169720),new op(430227734,3100823752),new op(506948616,1363258195),new op(659060556,3750685593),new op(883997877,3785050280),new op(958139571,3318307427),new op(1322822218,3812723403),new op(1537002063,2003034995),new op(1747873779,3602036899),new op(1955562222,1575990012),new op(2024104815,1125592928),new op(2227730452,2716904306),new op(2361852424,442776044),new op(2428436474,593698344),new op(2756734187,3733110249),new op(3204031479,2999351573),new op(3329325298,3815920427),new op(3391569614,3928383900),new op(3515267271,566280711),new op(3940187606,3454069534),new op(4118630271,4000239992),new op(116418474,1914138554),new op(174292421,2731055270),new op(289380356,3203993006),new op(460393269,320620315),new op(685471733,587496836),new op(852142971,1086792851),new op(1017036298,365543100),new op(1126000580,2618297676),new op(1288033470,3409855158),new op(1501505948,4234509866),new op(1607167915,987167468),new op(1816402316,1246189591)];return function(a,c,l,h=!1){let d,u,f,p,g,m,b,y;h?(d=new op(3418070365,3238371032),u=new op(1654270250,914150663),f=new op(2438529370,812702999),p=new op(355462360,4144912697),g=new op(1731405415,4290775857),m=new op(2394180231,1750603025),b=new op(3675008525,1694076839),y=new op(1203062813,3204075428)):(d=new op(1779033703,4089235720),u=new op(3144134277,2227873595),f=new op(1013904242,4271175723),p=new op(2773480762,1595750129),g=new op(1359893119,2917565137),m=new op(2600822924,725511199),b=new op(528734635,4215389547),y=new op(1541459225,327033209));const v=128*Math.ceil((l+17)/128),w=new Uint8Array(v);let x,k;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 F=new Array(80);for(x=0;x<80;x++)F[x]=new op(0,0);let C=new op(0,0),A=new op(0,0),O=new op(0,0),T=new op(0,0),N=new op(0,0),D=new op(0,0),B=new op(0,0),R=new op(0,0);const E=new op(0,0),P=new op(0,0),j=new op(0,0),q=new op(0,0);let M,z;for(x=0;x<v;){for(k=0;k<16;++k)F[k].high=w[x]<<24|w[x+1]<<16|w[x+2]<<8|w[x+3],F[k].low=w[x+4]<<24|w[x+5]<<16|w[x+6]<<8|w[x+7],x+=8;for(k=16;k<80;++k)M=F[k],o(M,F[k-2],q),M.add(F[k-7]),i(j,F[k-15],q),M.add(j),M.add(F[k-16]);for(C.assign(d),A.assign(u),O.assign(f),T.assign(p),N.assign(g),D.assign(m),B.assign(b),R.assign(y),k=0;k<80;++k)E.assign(R),n(j,N,q),E.add(j),t(j,N,D,B,q),E.add(j),E.add(s[k]),E.add(F[k]),r(P,C,q),e(j,C,A,O,q),P.add(j),M=R,R=B,B=D,D=N,T.add(E),N=T,T=O,O=A,A=C,M.assign(E),M.add(P),C=M;d.add(C),u.add(A),f.add(O),p.add(T),g.add(N),m.add(D),b.add(B),y.add(R)}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 cp{decryptBlock(t){return t}encrypt(t){return t}}class lp{constructor(){if(this.constructor===lp)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 t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){throw new Error("Cannot call `_expandKey` on the base class")}_decrypt(t,e){let r,n,i;const o=new Uint8Array(16);o.set(t);for(let t=0,r=this._keySize;t<16;++t,++r)o[t]^=e[r];for(let t=this._cyclesOfRepetition-1;t>=1;--t){r=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=r,r=o[14],n=o[10],o[14]=o[6],o[10]=o[2],o[6]=r,o[2]=n,r=o[15],n=o[11],i=o[7],o[15]=o[3],o[11]=r,o[7]=n,o[3]=i;for(let t=0;t<16;++t)o[t]=this._inv_s[o[t]];for(let r=0,n=16*t;r<16;++r,++n)o[r]^=e[n];for(let t=0;t<16;t+=4){const e=this._mix[o[t]],n=this._mix[o[t+1]],i=this._mix[o[t+2]],s=this._mix[o[t+3]];r=e^n>>>8^n<<24^i>>>16^i<<16^s>>>24^s<<8,o[t]=r>>>24&255,o[t+1]=r>>16&255,o[t+2]=r>>8&255,o[t+3]=255&r}}r=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=r,r=o[14],n=o[10],o[14]=o[6],o[10]=o[2],o[6]=r,o[2]=n,r=o[15],n=o[11],i=o[7],o[15]=o[3],o[11]=r,o[7]=n,o[3]=i;for(let t=0;t<16;++t)o[t]=this._inv_s[o[t]],o[t]^=e[t];return o}_encrypt(t,e){const r=this._s;let n,i,o;const s=new Uint8Array(16);s.set(t);for(let t=0;t<16;++t)s[t]^=e[t];for(let t=1;t<this._cyclesOfRepetition;t++){for(let t=0;t<16;++t)s[t]=r[s[t]];o=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=o,o=s[2],i=s[6],s[2]=s[10],s[6]=s[14],s[10]=o,s[14]=i,o=s[3],i=s[7],n=s[11],s[3]=s[15],s[7]=o,s[11]=i,s[15]=n;for(let t=0;t<16;t+=4){const e=s[t+0],r=s[t+1],i=s[t+2],o=s[t+3];n=e^r^i^o,s[t+0]^=n^this._mixCol[e^r],s[t+1]^=n^this._mixCol[r^i],s[t+2]^=n^this._mixCol[i^o],s[t+3]^=n^this._mixCol[o^e]}for(let r=0,n=16*t;r<16;++r,++n)s[r]^=e[n]}for(let t=0;t<16;++t)s[t]=r[s[t]];o=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=o,o=s[2],i=s[6],s[2]=s[10],s[6]=s[14],s[10]=o,s[14]=i,o=s[3],i=s[7],n=s[11],s[3]=s[15],s[7]=o,s[11]=i,s[15]=n;for(let t=0,r=this._keySize;t<16;++t,++r)s[t]^=e[r];return s}_decryptBlock2(t,e){const r=t.length;let n=this.buffer,i=this.bufferPosition;const o=[];let s=this.iv;for(let e=0;e<r;++e){if(n[i]=t[e],++i,i<16)continue;const r=this._decrypt(n,this._key);for(let t=0;t<16;++t)r[t]^=s[t];s=n,o.push(r),n=new Uint8Array(16),i=0}if(this.buffer=n,this.bufferLength=i,this.iv=s,0===o.length)return new Uint8Array(0);let a=16*o.length;if(e){const t=o[o.length-1];let e=t[15];if(e<=16){for(let r=15,n=16-e;r>=n;--r)if(t[r]!==e){e=0;break}a-=e,o[o.length-1]=t.subarray(0,16-e)}}const c=new Uint8Array(a);for(let t=0,e=0,r=o.length;t<r;++t,e+=16)c.set(o[t],e);return c}decryptBlock(t,e,r){const n=t.length,i=this.buffer;let o=this.bufferPosition;if(r)this.iv=r;else{for(let e=0;o<16&&e<n;++e,++o)i[o]=t[e];if(o<16)return this.bufferLength=o,new Uint8Array(0);this.iv=i,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,e)}encrypt(t,e){const r=t.length;let n=this.buffer,i=this.bufferPosition;const o=[];e||(e=new Uint8Array(16));for(let s=0;s<r;++s){if(n[i]=t[s],++i,i<16)continue;for(let t=0;t<16;++t)n[t]^=e[t];const r=this._encrypt(n,this._key);e=r,o.push(r),n=new Uint8Array(16),i=0}if(this.buffer=n,this.bufferLength=i,this.iv=e,0===o.length)return new Uint8Array(0);const s=16*o.length,a=new Uint8Array(s);for(let t=0,e=0,r=o.length;t<r;++t,e+=16)a.set(o[t],e);return a}}class hp extends lp{constructor(t){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(t)}_expandKey(t){const e=this._s,r=this._rcon,n=new Uint8Array(176);n.set(t);for(let t=16,i=1;t<176;++i){let o=n[t-3],s=n[t-2],a=n[t-1],c=n[t-4];o=e[o],s=e[s],a=e[a],c=e[c],o^=r[i];for(let e=0;e<4;++e)n[t]=o^=n[t-16],t++,n[t]=s^=n[t-16],t++,n[t]=a^=n[t-16],t++,n[t]=c^=n[t-16],t++}return n}}class dp extends lp{constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){const e=this._s,r=new Uint8Array(240);r.set(t);let n=1,i=0,o=0,s=0,a=0;for(let t=32,c=1;t<240;++c){t%32==16?(i=e[i],o=e[o],s=e[s],a=e[a]):t%32==0&&(i=r[t-3],o=r[t-2],s=r[t-1],a=r[t-4],i=e[i],o=e[o],s=e[s],a=e[a],i^=n,(n<<=1)>=256&&(n=255&(27^n)));for(let e=0;e<4;++e)r[t]=i^=r[t-32],t++,r[t]=o^=r[t-32],t++,r[t]=s^=r[t-32],t++,r[t]=a^=r[t-32],t++}return r}}class up{checkOwnerPassword(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=sp(i,0,i.length);return q(o,n)}checkUserPassword(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=sp(n,0,n.length);return q(i,r)}getOwnerKey(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=sp(i,0,i.length);return new dp(o).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=sp(n,0,n.length);return new dp(i).decryptBlock(r,!1,new Uint8Array(16))}}class fp{calculatePDF20Hash(t,e,r){let n=sp(e,0,e.length).subarray(0,32),i=new Uint8Array([0]),o=0;for(;o<64||i[i.length-1]>o-32;){const e=t.length+n.length+r.length,l=new Uint8Array(e);let h=0;l.set(t,h),h+=t.length,l.set(n,h),h+=n.length,l.set(r,h);const d=new Uint8Array(64*e);for(let t=0,r=0;t<64;t++,r+=e)d.set(l,r);i=new hp(n.subarray(0,16)).encrypt(d,n.subarray(16,32));const u=i.slice(0,16).reduce(((t,e)=>t+e),0)%3;0===u?n=sp(i,0,i.length):1===u?(s=i,a=0,c=i.length,n=ap(s,a,c,!0)):2===u&&(n=ap(i,0,i.length)),o++}var s,a,c;return n.subarray(0,32)}hash(t,e,r){return this.calculatePDF20Hash(t,e,r)}checkOwnerPassword(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=this.calculatePDF20Hash(t,i,r);return q(o,n)}checkUserPassword(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=this.calculatePDF20Hash(t,n,new Uint8Array);return q(i,r)}getOwnerKey(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=this.calculatePDF20Hash(t,i,r);return new dp(o).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=this.calculatePDF20Hash(t,n,new Uint8Array);return new dp(i).decryptBlock(r,!1,new Uint8Array(16))}}class pp{constructor(t,e){this.StringCipherConstructor=t,this.StreamCipherConstructor=e}createStream(t,e){const r=this.StreamCipherConstructor();return new rp(t,(function(t,e){return r.decryptBlock(t,e)}),e)}decryptString(t){const e=this.StringCipherConstructor();let r=f(t);return r=e.decryptBlock(r,!0),E(r)}decryptBytes(t){return this.StringCipherConstructor().decryptBlock(t,!0)}encryptString(t){const e=this.StringCipherConstructor();if(e instanceof lp){const r=16-t.length%16;t+=String.fromCharCode(r).repeat(r);const n=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(n);else for(let t=0;t<16;t++)n[t]=Math.floor(256*Math.random());let i=f(t);i=e.encrypt(i,n);const o=new Uint8Array(16+i.length);return o.set(n),o.set(i,16),E(o)}let r=f(t);return r=e.encrypt(r),E(r)}}class gp{constructor(t,e,r){var n,i;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=Xi.of("Identity");const o=t.get(Xi.of("Filter"));if("/Standard"!==o.asString())throw new Error("unknown encryption method");this.filterName=o.asString(),this.dict=t;const s=t.get(Xi.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=t.get(Xi.of("Length")))||void 0===n?void 0:n.asNumber();if(!a)if(s<=3)a=40;else{const e=t.get(Xi.of("CF")),r=t.get(Xi.of("StmF"));if(e instanceof Yi&&r instanceof Xi){e.suppressEncryption=!0;const t=e.get(Xi.of(r.asString()));let n=null;t&&(n=t.get(Xi.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=t.get(Xi.of("O")).asBytes(),l=t.get(Xi.of("U")).asBytes(),h=c.subarray(0,32),d=l.subarray(0,32),u=t.get(Xi.of("P")).asNumber(),p=t.get(Xi.of("R")).asNumber(),g=(4===s||5===s)&&!1!==(null===(i=t.get(Xi.of("EncryptMetadata")))||void 0===i?void 0:i.asBoolean());let m,b;if(this.encryptMetadata=g,r){if(6===p)try{r=unescape(encodeURIComponent(r))}catch(t){console.warn("CipherTransformFactory: Unable to convert UTF8 encoded password.")}m=f(r)}if(5!==s)b=this.prepareKeyData(e,m,h,d,u,p,a,g);else{const e=c.subarray(32,40),r=c.subarray(40,48),n=l.subarray(0,48),i=l.subarray(32,40),o=l.subarray(40,48),s=t.get(Xi.of("OE")).asBytes(),a=t.get(Xi.of("UE")).asBytes(),u=t.get(Xi.of("Perms")).asBytes();b=this.createEncryptionKey20(p,m,h,e,r,n,d,i,o,s,a,u)}if(!b&&!r)throw new Error("NEEDS PASSWORD");if(!b&&r){const t=this.decodeUserPassword(m,h,p,a);b=this.prepareKeyData(e,t,h,d,u,p,a,g)}if(!b)throw new Error("Password incorrect");if(this.encryptionKey=b,s>=4){const e=t.get(Xi.of("CF"));e instanceof Yi&&(e.suppressEncryption=!0),this.cf=e,this.stmf=t.get(Xi.of("StmF"))||this.identityName,this.strf=t.get(Xi.of("StrF"))||this.identityName,this.eff=t.get(Xi.of("EFF"))||this.stmf}}createCipherTransform(t,e){if(4===this.algorithm||5===this.algorithm)return new pp(this.buildCipherConstructor(this.cf,this.strf,t,e,this.encryptionKey),this.buildCipherConstructor(this.cf,this.stmf,t,e,this.encryptionKey));const r=this.buildObjectKey(t,e,this.encryptionKey,!1),n=function(){return new np(r)};return new pp(n,n)}createEncryptionKey20(t,e,r,n,i,o,s,a,c,l,h,d){if(e){const t=Math.min(127,e.length);e=e.subarray(0,t)}else e=new Uint8Array;let u;return u=6===t?new fp:new up,u.checkUserPassword(e,a,s)?u.getUserKey(e,c,h):e.length&&u.checkOwnerPassword(e,n,o,r)?u.getOwnerKey(e,i,o,l):null}prepareKeyData(t,e,r,n,i,o,s,a){const c=40+r.length+t.length,l=new Uint8Array(c);let h,d,u=0;if(e)for(d=Math.min(32,e.length);u<d;++u)l[u]=e[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&i,l[u++]=i>>8&255,l[u++]=i>>16&255,l[u++]=i>>>24&255,h=0,d=t.length;h<d;++h)l[u++]=t[h];o>=4&&!a&&(l[u++]=255,l[u++]=255,l[u++]=255,l[u++]=255);let f=ip(l,0,u);const p=s>>3;if(o>=3)for(h=0;h<50;++h)f=ip(f,0,p);const g=f.subarray(0,p);let m,b;if(o>=3){for(u=0;u<32;++u)l[u]=this.defaultPasswordBytes[u];for(h=0,d=t.length;h<d;++h)l[u++]=t[h];m=new np(g),b=m.encryptBlock(ip(l,0,u)),d=g.length;const e=new Uint8Array(d);for(h=1;h<=19;++h){for(let t=0;t<d;++t)e[t]=g[t]^h;m=new np(e),b=m.encryptBlock(b)}for(h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null}else for(m=new np(g),b=m.encryptBlock(this.defaultPasswordBytes),h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null;return g}decodeUserPassword(t,e,r,n){const i=new Uint8Array(32);let o=0;const s=Math.min(32,t.length);for(;o<s;++o)i[o]=t[o];let a=0;for(;o<32;)i[o++]=this.defaultPasswordBytes[a++];let c=ip(i,0,o);const l=n>>3;if(r>=3)for(a=0;a<50;++a)c=ip(c,0,c.length);let h,d;if(r>=3){d=e;const t=new Uint8Array(l);for(a=19;a>=0;a--){for(let e=0;e<l;++e)t[e]=c[e]^a;h=new np(t),d=h.encryptBlock(d)}}else h=new np(c.subarray(0,l)),d=h.encryptBlock(e);return d}buildObjectKey(t,e,r,n=!1){const i=new Uint8Array(r.length+9),o=r.length;let s;for(s=0;s<o;++s)i[s]=r[s];i[s++]=255&t,i[s++]=t>>8&255,i[s++]=t>>16&255,i[s++]=255&e,i[s++]=e>>8&255,n&&(i[s++]=115,i[s++]=65,i[s++]=108,i[s++]=84);return ip(i,0,s).subarray(0,Math.min(r.length+5,16))}buildCipherConstructor(t,e,r,n,i){if(!(e instanceof Xi))throw new Error("Invalid crypt filter name.");const o=t.get(Xi.of(e.asString().replace("/","")));let s;if(null!=o&&(s=o.get(Xi.of("CFM"))),!s||"/None"===s.asString())return function(){return new cp};if("/V2"===s.asString())return()=>new np(this.buildObjectKey(r,n,i,!1));if("/AESV2"===s.asString())return()=>new hp(this.buildObjectKey(r,n,i,!0));if("/AESV3"===s.asString())return()=>new dp(i);throw new Error("Unknown crypto method")}}class mp{static load(t,e={}){return po(this,void 0,void 0,(function*(){const{ignoreEncryption:r=!1,parseSpeed:n=_f.Slow,throwOnInvalidObject:i=!1,warnOnInvalidObjects:o=!1,updateMetadata:s=!0,capNumbers:a=!1,password:c,forIncrementalUpdate:l=!1,preserveObjectsVersions:h=!1}=e;Yn(t,"pdf",["string",Uint8Array,ArrayBuffer]),Yn(r,"ignoreEncryption",["boolean"]),Yn(n,"parseSpeed",["number"]),Yn(i,"throwOnInvalidObject",["boolean"]),Yn(o,"warnOnInvalidObjects",["boolean"]),Yn(c,"password",["string","undefined"]),Yn(l,"forIncrementalUpdate",["boolean"]),Yn(h,"preserveObjectsVersions",["boolean"]);const d=L(t),u=yield fa.forBytesWithOptions(d,n,i,void 0,a,void 0,l,h).parseDocument();if(u.lookup(u.trailerInfo.Encrypt)&&void 0!==c){const t=u.lookup(u.trailerInfo.ID,Ui),e=u.lookup(u.trailerInfo.Encrypt,Yi),r=yield fa.forBytesWithOptions(d,n,i,o,a,new gp(e,t.get(0).asBytes(),c),l,h).parseDocument(),f=new mp(r,!0,s);return l&&f.takeSnapshot(),f}{const t=new mp(u,r,s);return l&&t.takeSnapshot(),t}}))}static create(t={}){return po(this,void 0,void 0,(function*(){const{updateMetadata:e=!0}=t,r=ho.create(),n=ds.withContext(r),i=r.register(n),o=hs.withContextAndPages(r,i);return r.trailerInfo.Root=r.register(o),new mp(r,!1,e)}))}constructor(t,e,r){if(this.defaultWordBreaks=[" "],this.computePages=()=>{const t=[];return this.catalog.Pages().traverse(((e,r)=>{if(e instanceof uo){let n=this.pageMap.get(e);n||(n=yp.of(e,r,this),this.pageMap.set(e,n)),t.push(n)}})),t},this.getOrCreateForm=()=>{const t=this.catalog.getOrCreateAcroForm();return Xf.of(t,this)},Yn(t,"context",[[ho,"PDFContext"]]),Yn(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),t.lookup(t.trailerInfo.Encrypt)&&t.isDecrypted&&delete t.trailerInfo.Encrypt,this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=oi.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=oi.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new tf;r&&this.updateInfoDict()}registerFontkit(t){this.fontkit=t}getForm(){const t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t}getTitle(){const t=this.getInfoDict().lookup(Xi.Title);if(t)return bp(t),t.decodeText()}getAuthor(){const t=this.getInfoDict().lookup(Xi.Author);if(t)return bp(t),t.decodeText()}getSubject(){const t=this.getInfoDict().lookup(Xi.Subject);if(t)return bp(t),t.decodeText()}getKeywords(){const t=this.getInfoDict().lookup(Xi.Keywords);if(t)return bp(t),t.decodeText()}getCreator(){const t=this.getInfoDict().lookup(Xi.Creator);if(t)return bp(t),t.decodeText()}getProducer(){const t=this.getInfoDict().lookup(Xi.Producer);if(t)return bp(t),t.decodeText()}getLanguage(){const t=this.catalog.get(Xi.of("Lang"));if(t)return bp(t),t.decodeText()}getCreationDate(){const t=this.getInfoDict().lookup(Xi.CreationDate);if(t)return bp(t),t.decodeDate()}getModificationDate(){const t=this.getInfoDict().lookup(Xi.ModDate);if(t)return bp(t),t.decodeDate()}setTitle(t,e){Yn(t,"title",["string"]);const r=Xi.of("Title");if(this.getInfoDict().set(r,Ji.fromText(t)),null==e?void 0:e.showInWindowTitleBar){this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)}}setAuthor(t){Yn(t,"author",["string"]);const e=Xi.of("Author");this.getInfoDict().set(e,Ji.fromText(t))}setSubject(t){Yn(t,"author",["string"]);const e=Xi.of("Subject");this.getInfoDict().set(e,Ji.fromText(t))}setKeywords(t){Yn(t,"keywords",[Array]);const e=Xi.of("Keywords");this.getInfoDict().set(e,Ji.fromText(t.join(" ")))}setCreator(t){Yn(t,"creator",["string"]);const e=Xi.of("Creator");this.getInfoDict().set(e,Ji.fromText(t))}setProducer(t){Yn(t,"creator",["string"]);const e=Xi.of("Producer");this.getInfoDict().set(e,Ji.fromText(t))}setLanguage(t){Yn(t,"language",["string"]);const e=Xi.of("Lang");this.catalog.set(e,ro.of(t))}setCreationDate(t){Yn(t,"creationDate",[[Date,"Date"]]);const e=Xi.of("CreationDate");this.getInfoDict().set(e,ro.fromDate(t))}setModificationDate(t){Yn(t,"modificationDate",[[Date,"Date"]]);const e=Xi.of("ModDate");this.getInfoDict().set(e,ro.fromDate(t))}getPageCount(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount}getPages(){return this.pageCache.access()}getPage(t){const e=this.getPages();return _n(t,"index",0,e.length-1),e[t]}getPageIndices(){return U(0,this.getPageCount())}removePage(t){const e=this.getPageCount();if(0===this.pageCount)throw new nf;_n(t,"index",0,e-1);const r=this.getPage(t);this.catalog.removeLeafNode(t),this.pageCount=e-1,this.context.delete(r.ref)}addPage(t){return Yn(t,"page",["undefined",[yp,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)}insertPage(t,e){const r=this.getPageCount();if(_n(t,"index",0,r),Yn(e,"page",["undefined",[yp,"PDFPage"],Array]),!e||Array.isArray(e)){const t=Array.isArray(e)?e:Qf.A4;(e=yp.create(this)).setSize(...t)}else if(e.doc!==this)throw new rf;const n=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(n),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=r+1,e}copyPages(t,e){return po(this,void 0,void 0,(function*(){Yn(t,"srcDoc",[[mp,"PDFDocument"]]),Yn(e,"indices",[Array]),yield t.flush();const r=fo.for(t.context,this.context),n=t.getPages(),i=e.map((t=>n[t])).map((t=>po(this,void 0,void 0,(function*(){return r.copy(t.node)})))).map((t=>t.then((t=>yp.of(t,this.context.register(t),this)))));return Promise.all(i)}))}copy(){return po(this,void 0,void 0,(function*(){const t=yield mp.create(),e=yield t.copyPages(this,this.getPageIndices());for(let r=0,n=e.length;r<n;r++)t.addPage(e[r]);return void 0!==this.getAuthor()&&t.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&t.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&t.setCreator(this.getCreator()),void 0!==this.getLanguage()&&t.setLanguage(this.getLanguage()),void 0!==this.getModificationDate()&&t.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&t.setProducer(this.getProducer()),void 0!==this.getSubject()&&t.setSubject(this.getSubject()),void 0!==this.getTitle()&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,t}))}addJavaScript(t,e){Yn(t,"name",["string"]),Yn(e,"script",["string"]);const r=ep.for(e,t),n=this.context.nextRef(),i=tp.of(n,this,r);this.javaScripts.push(i)}attach(t,e,r={}){return po(this,void 0,void 0,(function*(){Yn(t,"attachment",["string",Uint8Array,ArrayBuffer]),Yn(e,"name",["string"]),Jn(r.mimeType,"mimeType",["string"]),Jn(r.description,"description",["string"]),Jn(r.creationDate,"options.creationDate",[Date]),Jn(r.modificationDate,"options.modificationDate",[Date]),Hn(r.afRelationship,"options.afRelationship",xs);const n=L(t),i=ks.for(n,e,r),o=this.context.nextRef(),s=$f.of(o,this,i);this.embeddedFiles.push(s)}))}getRawAttachments(){if(!this.catalog.has(Xi.of("Names")))return[];const t=this.catalog.lookup(Xi.of("Names"),Yi);if(!t.has(Xi.of("EmbeddedFiles")))return[];const e=t.lookup(Xi.of("EmbeddedFiles"),Yi);if(!e.has(Xi.of("Names")))return[];const r=e.lookup(Xi.of("Names"),Ui),n=[];for(let t=0,e=r.size();t<e;t+=2){const e=r.lookup(t),i=r.lookup(t+1,Yi);n.push({fileName:e,fileSpec:i})}return n}getSavedAttachments(){return this.getRawAttachments().flatMap((({fileName:t,fileSpec:e})=>{const r=e.lookup(Xi.of("EF"));if(!(r instanceof Yi))return[];const n=r.lookup(Xi.of("F"));if(!(n instanceof Qi))return[];const i=e.lookup(Xi.of("AFRelationship")),o=i instanceof Xi?i.toString().slice(1):i instanceof ro?i.decodeText():void 0,s=n.dict,a=s.lookup(Xi.of("Subtype")),c=a instanceof Xi?a.toString().slice(1):a instanceof ro?a.decodeText():void 0,l=s.lookup(Xi.of("Params"),Yi);let h,d;if(l instanceof Yi){const t=l.lookup(Xi.of("CreationDate")),e=l.lookup(Xi.of("ModDate"));t instanceof ro&&(h=t.decodeDate()),e instanceof ro&&(d=e.decodeDate())}const u=e.lookup(Xi.of("Desc")).decodeText();return[{name:t.decodeText(),data:Ys(n).decode(),mimeType:null==c?void 0:c.replace(/#([0-9A-Fa-f]{2})/g,((t,e)=>String.fromCharCode(parseInt(e,16)))),afRelationship:o,description:u,creationDate:h,modificationDate:d}]}))}getUnsavedAttachments(){return this.embeddedFiles.map((t=>{const e=t.getEmbedder();return{name:e.fileName,data:e.getFileData(),description:e.options.description,mimeType:e.options.mimeType,afRelationship:e.options.afRelationship,creationDate:e.options.creationDate,modificationDate:e.options.modificationDate}}))}getAttachments(){return[...this.getSavedAttachments(),...this.getUnsavedAttachments()]}embedFont(t,e={}){return po(this,void 0,void 0,(function*(){const{subset:r=!1,customName:n,features:i}=e;let o;if(Yn(t,"font",["string",Uint8Array,ArrayBuffer]),Yn(r,"subset",["boolean"]),Mn(t))o=fs.for(t,n);else{if(!I(t))throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");{const e=L(t),s=this.assertFontkit();o=r?yield ws.for(s,e,n,i):yield vs.for(s,e,n,i)}}const s=this.context.nextRef(),a=jf.of(s,this,o);return this.fonts.push(a),a}))}embedStandardFont(t,e){if(Yn(t,"font",["string"]),!Mn(t))throw new TypeError("`font` must be one of type `StandardFonts`");const r=fs.for(t,e),n=this.context.nextRef(),i=jf.of(n,this,r);return this.fonts.push(i),i}embedJpg(t){return po(this,void 0,void 0,(function*(){Yn(t,"jpg",["string",Uint8Array,ArrayBuffer]);const e=L(t),r=yield As.for(e),n=this.context.nextRef(),i=qf.of(n,this,r);return this.images.push(i),i}))}embedPng(t){return po(this,void 0,void 0,(function*(){Yn(t,"png",["string",Uint8Array,ArrayBuffer]);const e=L(t),r=yield Es.for(e),n=this.context.nextRef(),i=qf.of(n,this,r);return this.images.push(i),i}))}embedSvg(t){return po(this,void 0,void 0,(function*(){if(!t)return new uu(t);const e=Kd.parse(t),r=t=>"image"===t.tagName?[t]:t.childNodes.map((t=>t.nodeType===Kd.NodeType.ELEMENT_NODE?r(t):[])).flat(),n=r(e),i={};return yield Promise.all(n.map((t=>po(this,void 0,void 0,(function*(){var e;const r=null!==(e=t.attributes.href)&&void 0!==e?e:t.attributes["xlink:href"];if(!r||i[r])return;const n=r.match(/\.png(\?|$)|^data:image\/png;base64/gim)?yield this.embedPng(r):yield this.embedJpg(r);i[r]=n}))))),new uu(t,i)}))}embedPdf(t,e=[0]){return po(this,void 0,void 0,(function*(){Yn(t,"pdf",["string",Uint8Array,ArrayBuffer,[mp,"PDFDocument"]]),Yn(e,"indices",[Array]);const r=t instanceof mp?t:yield mp.load(t),n=V(r.getPages(),e);return this.embedPages(n)}))}embedPage(t,e,r){return po(this,void 0,void 0,(function*(){Yn(t,"page",[[yp,"PDFPage"]]);const[n]=yield this.embedPages([t],[e],[r]);return n}))}embedPages(t,e=[],r=[]){return po(this,void 0,void 0,(function*(){if(0===t.length)return[];for(let e=0,r=t.length-1;e<r;e++){const r=t[e],n=t[e+1];if(r.node.context!==n.node.context)throw new pi}const n=t[0].node.context,i=n===this.context?t=>t:fo.for(n,this.context).copy,o=new Array(t.length);for(let n=0,s=t.length;n<s;n++){const s=i(t[n].node),a=e[n],c=r[n],l=yield Js.for(s,a,c),h=this.context.nextRef();o[n]=Pf.of(h,this,l)}return this.embeddedPages.push(...o),o}))}encrypt(t){this.context.security=_c.create(this.context,t).encrypt()}flush(){return po(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(t={}){return po(this,void 0,void 0,(function*(){const{useObjectStreams:e=!0,objectsPerTick:r=50,rewrite:n=!1}=t;Yn(e,"useObjectStreams",["boolean"]),Yn(r,"objectsPerTick",["number"]),Yn(n,"rewrite",["boolean"]);const i=!n&&this.context.pdfFileDetails.originalBytes&&this.context.snapshot;i&&(t.addDefaultPage=!1,t.updateFieldAppearances=!1),yield this.prepareForSave(t);const o=e?us:ko;if(i){const t=yield o.forContextWithSnapshot(this.context,r,this.context.snapshot).serializeToBuffer(),e=new Uint8Array(this.context.pdfFileDetails.originalBytes.byteLength+t.byteLength);return e.set(this.context.pdfFileDetails.originalBytes),e.set(t,this.context.pdfFileDetails.originalBytes.byteLength),e}return o.forContext(this.context,r).serializeToBuffer()}))}saveIncremental(t,e={}){return po(this,void 0,void 0,(function*(){const{objectsPerTick:r=50}=e;Yn(r,"objectsPerTick",["number"]);const n=Object.assign(Object.assign({},e),{addDefaultPage:!1,updateFieldAppearances:!1});yield this.prepareForSave(n);return(this.context.pdfFileDetails.useObjectStreams?us:ko).forContextWithSnapshot(this.context,r,t).serializeToBuffer()}))}saveAsBase64(t={}){return po(this,void 0,void 0,(function*(){const{dataUri:e=!1}=t,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["dataUri"]);Yn(e,"dataUri",["boolean"]);const i=yield this.save(n),o=r(i);return e?`data:application/pdf;base64,${o}`:o}))}findPageForAnnotationRef(t){const e=this.getPages();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.node.Annots();if(void 0!==(null==i?void 0:i.indexOf(t)))return n}}takeSnapshot(){const t=new bo(this.context.largestObjectNumber,[],this.context.pdfFileDetails.pdfSize,this.context.pdfFileDetails.prevStartXRef,this.context);return!this.context.snapshot&&this.context.pdfFileDetails.originalBytes&&(this.context.snapshot=t,this.catalog.registerChange()),t}getChangedObjects(t=0){if(!this.context.preserveObjectsVersions)return[];t<0&&(t=0);const e=this.context.xrefs.length-t-1,r=this.context.listXrefEntries(e);if(!r.length)return[];const n=new Map;for(const t of r){const e=t.ref;n.set(e,{ref:e,actual:t.deleted?void 0:this.context.lookup(e),previous:this.context.getObjectVersions(e)})}if(!t)return Array.from(n.entries()).map((t=>t[1]));for(;t;){t-=1;const e=this.context.xrefs.length-t-1,r=this.context.listXrefEntries(e);for(const t of r){const e=n.get(t.ref);e&&e.actual&&(e.actual=e.previous[0],e.previous=e.previous.slice(1))}}return Array.from(n.entries()).map((t=>t[1])).filter((t=>t.actual||t.previous.length))}prepareForSave(t){return po(this,void 0,void 0,(function*(){const{addDefaultPage:e=!0,updateFieldAppearances:r=!0}=t;if(Yn(e,"addDefaultPage",["boolean"]),Yn(r,"updateFieldAppearances",["boolean"]),e&&0===this.getPageCount()&&this.addPage(),r){const t=this.formCache.getValue();t&&t.updateFieldAppearances()}yield this.flush()}))}embedAll(t){return po(this,void 0,void 0,(function*(){for(let e=0,r=t.length;e<r;e++)yield t[e].embed()}))}updateInfoDict(){const t="pdf-lib (https://github.com/Hopding/pdf-lib)",e=new Date,r=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),r.get(Xi.of("Creator"))||this.setCreator(t),r.get(Xi.of("CreationDate"))||this.setCreationDate(e)}getInfoDict(){const t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof Yi)return t;const e=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(e),e}assertFontkit(){if(!this.fontkit)throw new ef;return this.fontkit}}function bp(t){if(!(t instanceof Ji||t instanceof ro))throw new ci([Ji,ro],t)}class yp{constructor(t,e,r){this.fontSize=24,this.fontColor=Ad(0,0,0),this.lineHeight=24,this.x=0,this.y=0,Yn(t,"leafNode",[[uo,"PDFPageLeaf"]]),Yn(e,"ref",[[eo,"PDFRef"]]),Yn(r,"doc",[[mp,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=r}setRotation(t){const e=Nl(t);ti(e,"degreesAngle",90),this.node.set(Xi.of("Rotate"),this.doc.context.obj(e))}getRotation(){const t=this.node.Rotate();return Cl(t?t.asNumber():0)}setSize(t,e){Yn(t,"width",["number"]),Yn(e,"height",["number"]);const r=this.getMediaBox();this.setMediaBox(r.x,r.y,t,e);const n=this.getCropBox(),i=this.getBleedBox(),o=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),c=this.node.BleedBox(),l=this.node.TrimBox(),h=this.node.ArtBox();a&&zn(n,r)&&this.setCropBox(r.x,r.y,t,e),c&&zn(i,r)&&this.setBleedBox(r.x,r.y,t,e),l&&zn(o,r)&&this.setTrimBox(r.x,r.y,t,e),h&&zn(s,r)&&this.setArtBox(r.x,r.y,t,e)}setWidth(t){Yn(t,"width",["number"]),this.setSize(t,this.getSize().height)}setHeight(t){Yn(t,"height",["number"]),this.setSize(this.getSize().width,t)}setMediaBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.MediaBox,i)}setCropBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.CropBox,i)}setBleedBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.BleedBox,i)}setTrimBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.TrimBox,i)}setArtBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.ArtBox,i)}getSize(){const{width:t,height:e}=this.getMediaBox();return{width:t,height:e}}getWidth(){return this.getSize().width}getHeight(){return this.getSize().height}getMediaBox(){return this.node.MediaBox().asRectangle()}getCropBox(){var t;const e=this.node.CropBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getMediaBox()}getBleedBox(){var t;const e=this.node.BleedBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()}getTrimBox(){var t;const e=this.node.TrimBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()}getArtBox(){var t;const e=this.node.ArtBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()}translateContent(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(_l(),Ul(t,e)),n=this.doc.context.register(r),i=this.createContentStream($l()),o=this.doc.context.register(i);this.node.wrapContentStreams(n,o)}scale(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)}scaleContent(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(_l(),Vl(t,e)),n=this.doc.context.register(r),i=this.createContentStream($l()),o=this.doc.context.register(i);this.node.wrapContentStreams(n,o)}scaleAnnotations(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]);const r=this.node.Annots();if(r)for(let n=0;n<r.size();n++){const i=r.lookup(n);i instanceof Yi&&this.scaleAnnot(i,t,e)}}resetPosition(){this.getContentStream(!1),this.x=0,this.y=0}setFont(t){Yn(t,"font",[[jf,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)}setFontSize(t){Yn(t,"fontSize",["number"]),this.fontSize=t}setFontColor(t){Yn(t,"fontColor",[[Object,"Color"]]),this.fontColor=t}setLineHeight(t){Yn(t,"lineHeight",["number"]),this.lineHeight=t}getPosition(){return{x:this.x,y:this.y}}getX(){return this.x}getY(){return this.y}moveTo(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.x=t,this.y=e}moveDown(t){Yn(t,"yDecrease",["number"]),this.y-=t}moveUp(t){Yn(t,"yIncrease",["number"]),this.y+=t}moveLeft(t){Yn(t,"xDecrease",["number"]),this.x-=t}moveRight(t){Yn(t,"xIncrease",["number"]),this.x+=t}pushOperators(...t){Qn(t,"operator",[[no,"PDFOperator"]]);this.getContentStream().push(...t)}drawText(t,e={}){var r,n,i,o,s,a,c;Yn(t,"text",["string"]),Jn(e.color,"options.color",[[Object,"Color"]]),$n(e.opacity,"opacity.opacity",0,1),Jn(e.font,"options.font",[[jf,"PDFFont"]]),Jn(e.size,"options.size",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.lineHeight,"options.lineHeight",["number"]),Jn(e.maxWidth,"options.maxWidth",["number"]),Jn(e.wordBreaks,"options.wordBreaks",[Array]),Hn(e.blendMode,"options.blendMode",nu),Jn(e.strokeColor,"options.strokeColor",[[Object,"Color"]]),Jn(e.strokeWidth,"options.strokeWidth",["number"]),Jn(e.renderMode,"options.renderMode",["number"]);const{oldFont:l,newFont:h,newFontKey:d}=this.setOrEmbedFont(e.font),u=e.size||this.fontSize,f=e.wordBreaks||this.doc.defaultWordBreaks,p=void 0===e.maxWidth?x(b(t)):C(t,f,e.maxWidth,(t=>h.widthOfTextAtSize(t,u))),g=new Array(p.length);for(let t=0,e=p.length;t<e;t++)g[t]=h.encodeText(p[t]);const m=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode});this.getContentStream().push(...Mu(g,{color:null!==(r=e.color)&&void 0!==r?r:this.fontColor,font:d,size:u,rotate:null!==(n=e.rotate)&&void 0!==n?n:Cl(0),xSkew:null!==(i=e.xSkew)&&void 0!==i?i:Cl(0),ySkew:null!==(o=e.ySkew)&&void 0!==o?o:Cl(0),x:null!==(s=e.x)&&void 0!==s?s:this.x,y:null!==(a=e.y)&&void 0!==a?a:this.y,lineHeight:null!==(c=e.lineHeight)&&void 0!==c?c:this.lineHeight,graphicsState:m,matrix:e.matrix,clipSpaces:e.clipSpaces,strokeColor:e.strokeColor,strokeWidth:e.strokeWidth,renderMode:e.renderMode})),e.font&&(l?this.setFont(l):this.resetFont())}drawImage(t,e={}){var r,n,i,o,s,a,c;Yn(t,"image",[[qf,"PDFImage"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.width,"options.width",["number"]),Jn(e.height,"options.height",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),$n(e.opacity,"opacity.opacity",0,1),Hn(e.blendMode,"options.blendMode",nu);const l=this.node.newXObject("Image",t.ref),h=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode});this.getContentStream().push(...zu(l,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,width:null!==(i=e.width)&&void 0!==i?i:t.size().width,height:null!==(o=e.height)&&void 0!==o?o:t.size().height,rotate:null!==(s=e.rotate)&&void 0!==s?s:Cl(0),xSkew:null!==(a=e.xSkew)&&void 0!==a?a:Cl(0),ySkew:null!==(c=e.ySkew)&&void 0!==c?c:Cl(0),graphicsState:h,matrix:e.matrix,clipSpaces:e.clipSpaces}))}drawPage(t,e={}){var r,n,i,o,s;Yn(t,"embeddedPage",[[Pf,"PDFEmbeddedPage"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.xScale,"options.xScale",["number"]),Jn(e.yScale,"options.yScale",["number"]),Jn(e.width,"options.width",["number"]),Jn(e.height,"options.height",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),$n(e.opacity,"opacity.opacity",0,1),Hn(e.blendMode,"options.blendMode",nu);const a=this.node.newXObject("EmbeddedPdfPage",t.ref),c=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),l=void 0!==e.width?e.width/t.width:void 0!==e.xScale?e.xScale:1,h=void 0!==e.height?e.height/t.height:void 0!==e.yScale?e.yScale:1;this.getContentStream().push(...Uu(a,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,xScale:l,yScale:h,rotate:null!==(i=e.rotate)&&void 0!==i?i:Cl(0),xSkew:null!==(o=e.xSkew)&&void 0!==o?o:Cl(0),ySkew:null!==(s=e.ySkew)&&void 0!==s?s:Cl(0),graphicsState:c}))}drawSvgPath(t,e={}){var r,n,i,o,s,a,c,l,h;Yn(t,"path",["string"]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.scale,"options.scale",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.borderWidth,"options.borderWidth",["number"]),Jn(e.color,"options.color",[[Object,"Color"]]),$n(e.opacity,"opacity.opacity",0,1),Jn(e.borderColor,"options.borderColor",[[Object,"Color"]]),Jn(e.borderDashArray,"options.borderDashArray",[Array]),Jn(e.borderDashPhase,"options.borderDashPhase",["number"]),Hn(e.borderLineCap,"options.borderLineCap",Xl),$n(e.borderOpacity,"options.borderOpacity",0,1),Hn(e.blendMode,"options.blendMode",nu),Hn(e.fillRule,"options.fillRule",lh);const d=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.borderColor=Ad(0,0,0));this.getContentStream().push(...Hu(t,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,scale:e.scale,rotate:null!==(i=e.rotate)&&void 0!==i?i:Cl(0),color:null!==(o=e.color)&&void 0!==o?o:void 0,borderColor:null!==(s=e.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,borderDashArray:null!==(c=e.borderDashArray)&&void 0!==c?c:void 0,borderDashPhase:null!==(l=e.borderDashPhase)&&void 0!==l?l:void 0,borderLineCap:null!==(h=e.borderLineCap)&&void 0!==h?h:void 0,graphicsState:d,fillRule:e.fillRule,matrix:e.matrix,clipSpaces:e.clipSpaces}))}drawLine(t){var e,r,n,i,o;Yn(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),Yn(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),Yn(t.start.x,"options.start.x",["number"]),Yn(t.start.y,"options.start.y",["number"]),Yn(t.end.x,"options.end.x",["number"]),Yn(t.end.y,"options.end.y",["number"]),Jn(t.thickness,"options.thickness",["number"]),Jn(t.color,"options.color",[[Object,"Color"]]),Jn(t.dashArray,"options.dashArray",[Array]),Jn(t.dashPhase,"options.dashPhase",["number"]),Hn(t.lineCap,"options.lineCap",Xl),$n(t.opacity,"opacity.opacity",0,1),Hn(t.blendMode,"options.blendMode",nu);const s=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=Ad(0,0,0));this.getContentStream().push(...Vu({start:t.start,end:t.end,thickness:null!==(e=t.thickness)&&void 0!==e?e:1,color:null!==(r=t.color)&&void 0!==r?r:void 0,dashArray:null!==(n=t.dashArray)&&void 0!==n?n:void 0,dashPhase:null!==(i=t.dashPhase)&&void 0!==i?i:void 0,lineCap:null!==(o=t.lineCap)&&void 0!==o?o:void 0,graphicsState:s,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawRectangle(t={}){var e,r,n,i,o,s,a,c,l,h,d,u,f,p,g;Jn(t.x,"options.x",["number"]),Jn(t.y,"options.y",["number"]),Jn(t.width,"options.width",["number"]),Jn(t.height,"options.height",["number"]),Jn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Jn(t.borderWidth,"options.borderWidth",["number"]),Jn(t.color,"options.color",[[Object,"Color"]]),$n(t.opacity,"options.opacity",0,1),Jn(t.rx,"options.rx",["number"]),Jn(t.ry,"options.ry",["number"]),Jn(t.borderColor,"options.borderColor",[[Object,"Color"]]),Jn(t.borderDashArray,"options.borderDashArray",[Array]),Jn(t.borderDashPhase,"options.borderDashPhase",["number"]),Hn(t.borderLineCap,"options.borderLineCap",Xl),$n(t.borderOpacity,"options.borderOpacity",0,1),Hn(t.blendMode,"options.blendMode",nu);const m=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=Ad(0,0,0));this.getContentStream().push(...Lu({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(r=t.y)&&void 0!==r?r:this.y,width:null!==(n=t.width)&&void 0!==n?n:150,height:null!==(i=t.height)&&void 0!==i?i:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:Cl(0),xSkew:null!==(s=t.xSkew)&&void 0!==s?s:Cl(0),ySkew:null!==(a=t.ySkew)&&void 0!==a?a:Cl(0),borderWidth:null!==(c=t.borderWidth)&&void 0!==c?c:0,color:null!==(l=t.color)&&void 0!==l?l:void 0,rx:null!==(h=t.rx)&&void 0!==h?h:0,ry:null!==(d=t.ry)&&void 0!==d?d:0,borderColor:null!==(u=t.borderColor)&&void 0!==u?u:void 0,borderDashArray:null!==(f=t.borderDashArray)&&void 0!==f?f:void 0,borderDashPhase:null!==(p=t.borderDashPhase)&&void 0!==p?p:void 0,graphicsState:m,borderLineCap:null!==(g=t.borderLineCap)&&void 0!==g?g:void 0,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawSquare(t={}){const{size:e}=t;Jn(e,"size",["number"]),this.drawRectangle(Object.assign(Object.assign({},t),{width:e,height:e}))}drawEllipse(t={}){var e,r,n,i,o,s,a,c,l,h,d;Jn(t.x,"options.x",["number"]),Jn(t.y,"options.y",["number"]),Jn(t.xScale,"options.xScale",["number"]),Jn(t.yScale,"options.yScale",["number"]),Jn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(t.color,"options.color",[[Object,"Color"]]),$n(t.opacity,"opacity.opacity",0,1),Jn(t.borderColor,"options.borderColor",[[Object,"Color"]]),$n(t.borderOpacity,"options.borderOpacity",0,1),Jn(t.borderWidth,"options.borderWidth",["number"]),Jn(t.borderDashArray,"options.borderDashArray",[Array]),Jn(t.borderDashPhase,"options.borderDashPhase",["number"]),Hn(t.borderLineCap,"options.borderLineCap",Xl),Hn(t.blendMode,"options.blendMode",nu);const u=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=Ad(0,0,0));this.getContentStream().push(...Wu({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(r=t.y)&&void 0!==r?r:this.y,xScale:null!==(n=t.xScale)&&void 0!==n?n:100,yScale:null!==(i=t.yScale)&&void 0!==i?i:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:void 0,color:null!==(s=t.color)&&void 0!==s?s:void 0,borderColor:null!==(a=t.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(c=t.borderWidth)&&void 0!==c?c:0,borderDashArray:null!==(l=t.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(h=t.borderDashPhase)&&void 0!==h?h:void 0,borderLineCap:null!==(d=t.borderLineCap)&&void 0!==d?d:void 0,graphicsState:u,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawCircle(t={}){const{size:e=100}=t;Jn(e,"size",["number"]),this.drawEllipse(Object.assign(Object.assign({},t),{xScale:e,yScale:e}))}setOrEmbedFont(t){const e=this.font,r=this.fontKey;t?this.setFont(t):this.getFont();return{oldFont:e,oldFontKey:r,newFont:this.font,newFontKey:this.fontKey}}drawSvg(t,e={}){var r,n;Yn(t,"svg",["string",[uu,"PDFSvg"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.width,"options.width",["number"]),Jn(e.height,"options.height",["number"]),Hn(e.blendMode,"options.blendMode",nu),Eu(this,t,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,fonts:e.fonts,width:e.width,height:e.height,blendMode:e.blendMode})}getFont(){if(!this.font||!this.fontKey){const t=this.doc.embedStandardFont(Gf.Helvetica);this.setFont(t)}return[this.font,this.fontKey]}resetFont(){this.font=void 0,this.fontKey=void 0}getContentStream(t=!0){return t&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream}createContentStream(...t){const e=this.doc.context.obj({});return ao.of(e,t)}maybeEmbedGraphicsState(t){const{opacity:e,borderOpacity:r,blendMode:n}=t;if(void 0===e&&void 0===r&&void 0===n)return;const i=this.doc.context.obj({Type:"ExtGState",ca:e,CA:r,BM:n});return this.node.newExtGState("GS",i)}scaleAnnot(t,e,r){const n=["RD","CL","Vertices","QuadPoints","L","Rect"];for(let i=0,o=n.length;i<o;i++){const o=t.lookup(Xi.of(n[i]));o instanceof Ui&&o.scalePDFNumbers(e,r)}const i=t.lookup(Xi.of("InkList"));if(i instanceof Ui)for(let t=0,n=i.size();t<n;t++){const n=i.lookup(t);n instanceof Ui&&n.scalePDFNumbers(e,r)}}}yp.of=(t,e,r)=>new yp(t,e,r),yp.create=t=>{Yn(t,"doc",[[mp,"PDFDocument"]]);const e=eo.of(-1),r=uo.withContextAndParent(t.context,e),n=t.context.register(r);return new yp(r,n,t)};class vp extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroButton",[[Ko,"PDFAcroPushButton"]]),this.acroField=t}setImage(t,e=Mf.Center){const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n],o=this.createImageAppearanceStream(i,t,e);this.updateWidgetAppearances(i,{normal:o})}this.markAsClean()}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}addToPage(t,e,r){var n,i,o,s,a,c,l,h,d,u,f;Jn(t,"text",["string"]),Jn(e,"page",[[yp,"PDFPage"]]),zf(r);const p=this.createWidget({x:(null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0)-(null!==(i=null==r?void 0:r.borderWidth)&&void 0!==i?i:0)/2,y:(null!==(o=null==r?void 0:r.y)&&void 0!==o?o: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:Ad(0,0,0),backgroundColor:null!==(h=null==r?void 0:r.backgroundColor)&&void 0!==h?h:Ad(.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:Cl(0),caption:t,hidden:null==r?void 0:r.hidden,page:e.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),e.node.addAnnot(g)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Df)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}vp.of=(t,e,r)=>new vp(t,e,r);export{xs as AFRelationship,Mo as AcroButtonFlags,Uo as AcroChoiceFlags,qo as AcroFieldFlags,zo as AcroTextFlags,vl as AnnotationFlags,Do as AppearanceCharacteristics,nu as BlendMode,oi as Cache,ji as CharCodes,Sd as ColorTypes,uf as CombedTextLayoutError,yi as CorruptPageTreeError,vs as CustomFontEmbedder,ws as CustomFontSubsetEmbedder,go as DefaultDocumentSnapshot,cs as Duplex,tf as EncryptedPDFError,ff as ExceededMaxLengthError,cf as FieldAlreadyExistsError,hf as FieldExistsAsNonTerminalError,ks as FileEmbedder,lh as FillRule,ef as FontkitNotRegisteredError,rf as ForeignPageError,Mf as ImageAlignment,bo as IncrementalDocumentSnapshot,vi as IndexOutOfBoundsError,wi as InvalidAcroFieldValueError,lf as InvalidFieldNamePartError,pf as InvalidMaxLengthError,mi as InvalidPDFDateStringError,bi as InvalidTargetIndexError,As as JpegEmbedder,Xl as LineCapStyle,Yl as LineJoinStyle,si as MethodNotImplementedError,di as MissingCatalogError,ki as MissingDAEntryError,Ei as MissingKeywordError,af as MissingOnValueCheckError,Ri as MissingPDFHeaderError,ui as MissingPageContentsEmbeddingError,Si as MissingTfOperatorError,xi as MultiSelectValueError,Ai as NextByteAssertionError,of as NoSuchFieldError,os as NonFullScreenPageMode,Fi as NumberParsingError,Eo as PDFAcroButton,Po as PDFAcroCheckBox,Vo as PDFAcroChoice,Io as PDFAcroComboBox,Oo as PDFAcroField,ns as PDFAcroForm,Xo as PDFAcroListBox,Lo as PDFAcroNonTerminal,Ko as PDFAcroPushButton,Go as PDFAcroRadioButton,Wo as PDFAcroSignature,Ro as PDFAcroTerminal,Ho as PDFAcroText,No as PDFAnnotation,Ui as PDFArray,gi as PDFArrayIsNotRectangleError,Ii as PDFBool,vp as PDFButton,hs as PDFCatalog,Vf as PDFCheckBox,ao as PDFContentStream,ho as PDFContext,yo as PDFCrossRefSection,Co as PDFCrossRefStream,Yi as PDFDict,mp as PDFDocument,If as PDFDropdown,Pf as PDFEmbeddedPage,Uf as PDFField,so as PDFFlateStream,jf as PDFFont,Xf as PDFForm,qi as PDFHeader,Ji as PDFHexString,qf as PDFImage,So as PDFInvalidObject,Ti as PDFInvalidObjectParsingError,tp as PDFJavaScript,Xi as PDFName,Zi as PDFNull,zi as PDFNumber,Mi as PDFObject,fo as PDFObjectCopier,ha as PDFObjectParser,Oi as PDFObjectParsingError,xo as PDFObjectStream,da as PDFObjectStreamParser,no as PDFOperator,oo as PDFOperatorNames,Lf as PDFOptionList,yp as PDFPage,Js as PDFPageEmbedder,uo as PDFPageLeaf,ds as PDFPageTree,fa as PDFParser,Ci as PDFParsingError,Wf as PDFRadioGroup,_i as PDFRawStream,eo as PDFRef,_c as PDFSecurity,Hf as PDFSignature,Qi as PDFStream,Ni as PDFStreamParsingError,us as PDFStreamWriter,ro as PDFString,uu as PDFSvg,Kf as PDFTextField,vo as PDFTrailer,wo as PDFTrailerDict,Bo as PDFWidgetAnnotation,ko as PDFWriter,ua as PDFXRefStreamParser,pi as PageEmbeddingMismatchedContextError,Qf as PageSizes,_f as ParseSpeeds,Es as PngEmbedder,as as PrintScaling,ai as PrivateConstructorError,ss as ReadingDirection,nf as RemovePageFromEmptyDocumentError,hi as ReparseError,df as RichTextFieldReadError,Sl as RotationTypes,Bi as StalledParserError,fs as StandardFontEmbedder,qn as StandardFontValues,Gf as StandardFonts,gf as TextAlignment,Ch as TextRenderingMode,Di as UnbalancedParenthesisError,sf as UnexpectedFieldTypeError,ci as UnexpectedObjectTypeError,fi as UnrecognizedStreamTypeError,li as UnsupportedEncodingError,ls as ViewerPreferences,g as addRandomSuffix,Bl as adjustDimsForRotation,eh as appendBezierCurve,rh as appendQuadraticCurve,E as arrayAsString,kl as asNumber,wl as asPDFName,xl as asPDFNumber,Qn as assertEachIs,ei as assertInteger,Yn as assertIs,Wn as assertIsOneOf,Hn as assertIsOneOfOrUndefined,Kn as assertIsSubset,ti as assertMultiple,Jn as assertOrUndefined,ri as assertPositive,_n as assertRange,$n as assertRangeOrUndefined,Un as backtick,Mh as beginMarkedContent,bh as beginText,C as breakTextIntoLines,P as byAscendingId,H as byteArrayToHexString,ht as bytesFor,I as canBeConvertedToUint8Array,S as charAtIndex,h as charFromCode,d as charFromHexCode,F as charSplit,b as cleanText,El as clip,Pl as clipEvenOdd,nh as closePath,Od as cmyk,Td as colorString,Rd as colorToComponents,Bd as componentsToColor,zl as concatTransformationMatrix,p as copyStringIntoBuffer,Yo as createPDFAcroField,Zo as createPDFAcroFields,Zn as createTypeErrorMsg,Ln as createValueErrorMsg,n as decodeFromBase64,o as decodeFromBase64DataUri,Ys as decodePDFRawStream,Df as defaultButtonAppearanceProvider,Tf as defaultCheckBoxAppearanceProvider,mo as defaultDocumentSnapshot,Rf as defaultDropdownAppearanceProvider,Ef as defaultOptionListAppearanceProvider,Nf as defaultRadioGroupAppearanceProvider,Bf as defaultTextFieldAppearanceProvider,Cl as degrees,Al as degreesToRadians,Yu as drawButton,Xu as drawCheckBox,Ku as drawCheckMark,Wu as drawEllipse,zu as drawImage,Vu as drawLine,Mu as drawLinesOfText,Dh as drawObject,_u as drawOptionList,Uu as drawPage,Zu as drawRadioButton,Lu as drawRectangle,Hu as drawSvgPath,qu as drawText,Qu as drawTextField,Ju as drawTextLines,r as encodeToBase64,zh as endMarkedContent,fh as endPath,yh as endText,dt as error,m as escapeRegExp,y as escapedNewlineChars,hh as fill,uh as fillAndStroke,dh as fillEvenOdd,T as findLastMatch,Gn as getType,Cd as grayscale,Y as hasSurrogates,at as hasUtf16BOM,J as highSurrogate,q as isArrayEqual,w as isNewlineChar,Mn as isStandardFont,Xn as isType,Z as isWithinBMP,N as last,wf as layoutCombedText,vf as layoutMultilineText,xf as layoutSinglelineText,x as lineSplit,oh as lineTo,Q as lowSurrogate,B as mergeIntoTypedArray,k as mergeLines,R as mergeUint8Arrays,gh as moveText,ih as moveTo,v as newlineChars,ph as nextLine,kf as normalizeAppearance,ct as numberToString,u as padStart,O as parseDate,ii as pdfDocEncodingDecode,V as pluckIndices,$l as popGraphicsState,_l as pushGraphicsState,Fl as radians,Ol as radiansToDegrees,U as range,sh as rectangle,zn as rectanglesAreEqual,Dl as reduceRotation,Gl as restoreDashPattern,M as reverseArray,Ad as rgb,Nh as rotateAndSkewTextDegreesAndTranslate,Th as rotateAndSkewTextRadiansAndTranslate,Ll as rotateDegrees,Gu as rotateInPlace,Il as rotateRadians,Rl as rotateRectangle,Vl as scale,wh as setCharacterSpacing,kh as setCharacterSqueeze,Kl as setDashPattern,jh as setFillingCmykColor,Nd as setFillingColor,Bh as setFillingGrayscaleColor,Eh as setFillingRgbColor,vh as setFontAndSize,Ql as setGraphicsState,Zl as setLineCap,Sh as setLineHeight,Jl as setLineJoin,th as setLineWidth,qh as setStrokingCmykColor,Dd as setStrokingColor,Rh as setStrokingGrayscaleColor,Ph as setStrokingRgbColor,Oh as setTextMatrix,Ah as setTextRenderingMode,Fh as setTextRise,xh as setWordSpacing,mh as showText,Vn as singleQuote,lt as sizeInBytes,Hl as skewDegrees,Wl as skewRadians,j as sortedUniq,ah as square,f as stringAsByteArray,ch as stroke,z as sum,s as toCharCode,a as toCodePoint,Nl as toDegrees,l as toHexString,c as toHexStringOfMinLength,Tl as toRadians,L as toUint8Array,Ul as translate,D as typedArrayFor,tt as utf16Decode,X as utf16Encode,G as utf8Encode,jn as values,K as waitForTick};
|
|
18
|
+
return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=i.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=i.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=i.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=i.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=i.create([0,1518500249,1859775393,2400959708,2840853838]),u=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,f,w,x,k,S,F,C,A,O,T=this._hash.words,N=d.words,D=u.words,B=a.words,R=c.words,E=l.words,P=h.words;for(k=o=T[0],S=s=T[1],F=f=T[2],C=w=T[3],A=x=T[4],r=0;r<80;r+=1)O=o+t[e+B[r]]|0,O+=r<16?p(s,f,w)+N[0]:r<32?g(s,f,w)+N[1]:r<48?m(s,f,w)+N[2]:r<64?b(s,f,w)+N[3]:y(s,f,w)+N[4],O=(O=v(O|=0,E[r]))+x|0,o=x,x=w,w=v(f,10),f=s,s=O,O=k+t[e+R[r]]|0,O+=r<16?y(S,F,C)+D[0]:r<32?b(S,F,C)+D[1]:r<48?m(S,F,C)+D[2]:r<64?g(S,F,C)+D[3]:p(S,F,C)+D[4],O=(O=v(O|=0,P[r]))+A|0,k=A,A=C,C=v(F,10),F=S,S=O;O=T[1]+f+C|0,T[1]=T[2]+w+A|0,T[2]=T[3]+x+k|0,T[3]=T[4]+o+S|0,T[4]=T[0]+s+F|0,T[0]=O},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function g(t,e,r){return t&e|~t&r}function m(t,e,r){return(t|~e)^r}function b(t,e,r){return t&r|e&~r}function y(t,e,r){return t^(e|~r)}function v(t,e){return t<<e|t>>>32-e}r.RIPEMD160=o._createHelper(f),r.HmacRIPEMD160=o._createHmacHelper(f)}(),t.RIPEMD160}(ba())),rc(),nc||(nc=1,ic.exports=function(t){return n=(r=(e=t).lib).Base,i=r.WordArray,s=(o=e.algo).SHA256,a=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=a.create(r.hasher,t),o=i.create(),s=i.create([1]),c=o.words,l=s.words,h=r.keySize,d=r.iterations;c.length<h;){var u=n.update(e).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]}o.concat(u),l[0]++}return o.sigBytes=4*h,o}}),e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)},t.PBKDF2;var e,r,n,i,o,s,a,c}(ba(),Ia(),rc())),ac(),hc(),fc(),mc(),vc(),kc(),Sc||(Sc=1,Fc.exports=function(t){return t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e),t.mode.ECB;var e}(ba(),hc())),Cc||(Cc=1,Ac.exports=function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}(ba(),hc())),Oc||(Oc=1,Tc.exports=function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}(ba(),hc())),Nc||(Nc=1,Dc.exports=function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}(ba(),hc())),Bc||(Bc=1,Rc.exports=function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}(ba(),hc())),Ec||(Ec=1,Pc.exports=function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}(ba(),hc())),jc||(jc=1,qc.exports=function(t){return r=(e=t).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}},t.format.Hex;var e,r,n}(ba(),hc())),Mc||(Mc=1,zc.exports=function(t){return function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],s=[],a=[],c=[],l=[],h=[],d=[],u=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=t[r],m=t[g],b=t[m],y=257*t[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^t[t[t[b^g]]],n^=t[t[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 t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],s=0;s<n;s++)s<r?o[s]=e[s]:(l=o[s-1],s%r?r>6&&s%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[s/r|0]<<24),o[s]=o[s-r]^l);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var l=o[s];else l=o[s-4];a[c]=c<4||s<=4?l:h[i[l>>>24]]^d[i[l>>>16&255]]^u[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,l,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,h,d,u,f,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var c=this._nRounds,l=t[e]^r[0],h=t[e+1]^r[1],d=t[e+2]^r[2],u=t[e+3]^r[3],f=4,p=1;p<c;p++){var g=n[l>>>24]^i[h>>>16&255]^o[d>>>8&255]^s[255&u]^r[f++],m=n[h>>>24]^i[d>>>16&255]^o[u>>>8&255]^s[255&l]^r[f++],b=n[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^s[255&h]^r[f++],y=n[u>>>24]^i[l>>>16&255]^o[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++],t[e]=g,t[e+1]=m,t[e+2]=b,t[e+3]=y},keySize:8});e.AES=r._createHelper(g)}(),t.AES}(ba(),Na(),ja(),ac(),hc())),Ic(),Lc||(Lc=1,Wc.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var s=i%r,a=e[s>>>2]>>>24-s%4*8&255;o=(o+n[i]+a)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4}(ba(),Na(),ja(),ac(),hc())),Hc||(Hc=1,Kc.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,s=o[0],a=o[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(i[0]^=l,i[1]^=d,i[2]^=h,i[3]^=u,i[4]^=l,i[5]^=d,i[6]^=h,i[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit}(ba(),Na(),ja(),ac(),hc())),Gc||(Gc=1,Xc.exports=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,s=o[0],a=o[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,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,l=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^l}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy}(ba(),Na(),ja(),ac(),hc())),Jc());var Qc=ft(pa.exports);class _c{static create(t,e){return new _c(t,e)}constructor(t,e){if(!e.ownerPassword&&!e.userPassword)throw new Error("Either an owner password or a user password must be specified.");this.context=t,this.initialize(e)}initialize(t){let e;switch(this.id=$c(),this.context.header.getVersionString()){case"1.4":case"1.5":e=2;break;case"1.6":case"1.7":e=4;break;case"1.7ext3":e=5;break;default:e=1}switch(e){case 1:case 2:case 4:this.encryption=this.initializeV1V2V4(e,t);break;case 5:this.encryption=this.initializeV5(t)}}initializeV1V2V4(t,e){const r={Filter:"Standard"};let n,i;switch(t){case 1:n=2,this.keyBits=40,i=el(e.permissions);break;case 2:n=3,this.keyBits=128,i=rl(e.permissions);break;case 4:n=4,this.keyBits=128,i=rl(e.permissions);break;default:throw new Error(`Unsupported algorithm '${t}'.`)}const o=fl(e.userPassword),s=e.ownerPassword?fl(e.ownerPassword):o,a=ol(n,this.keyBits,o,s);let c;return this.encryptionKey=sl(n,this.keyBits,this.id,o,a,i),c=2===n?nl(this.encryptionKey):il(this.id,this.encryptionKey),r.V=t,t>=2&&(r.Length=this.keyBits),4===t&&(r.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},r.StmF="StdCF",r.StrF="StdCF"),r.R=n,r.O=ml(a),r.U=ml(c),r.P=i,r}initializeV5(t){const e={Filter:"Standard"};this.keyBits=256,this.encryptionKey=dl(tl);const r=pl(t.userPassword),n=al(r,tl),i=Qc.lib.WordArray.create(n.words.slice(10,12),8),o=cl(r,i,this.encryptionKey),s=t.ownerPassword?pl(t.ownerPassword):r,a=ll(s,n,tl),c=Qc.lib.WordArray.create(a.words.slice(10,12),8),l=hl(s,c,n,this.encryptionKey),h=rl(t.permissions),d=ul(h,this.encryptionKey,tl);return e.V=5,e.Length=this.keyBits,e.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},e.StmF="StdCF",e.StrF="StdCF",e.R=5,e.O=ml(a),e.OE=ml(l),e.U=ml(n),e.UE=ml(o),e.P=h,e.Perms=ml(d),e}getEncryptFn(t,e){const r=this.encryption.V;let n,i;if(r<5){if(n=this.encryptionKey.clone().concat(Qc.lib.WordArray.create([(255&t)<<24|(65280&t)<<8|t>>8&65280|255&e,(65280&e)<<16],5)),1===r||2===r)return i=Qc.MD5(n),i.sigBytes=Math.min(16,this.keyBits/8+5),t=>ml(Qc.RC4.encrypt(Qc.lib.WordArray.create(t),i).ciphertext);4===r&&(i=Qc.MD5(n.concat(Qc.lib.WordArray.create([1933667412],4))))}else{if(5!==r)throw new Error(`Unsupported algorithm '${r}'.`);i=this.encryptionKey}const o=tl(16),s={mode:Qc.mode.CBC,padding:Qc.pad.Pkcs7,iv:o};return t=>ml(o.clone().concat(Qc.AES.encrypt(Qc.lib.WordArray.create(t),i,s).ciphertext))}encrypt(){const t=this.context.obj([this.id,this.id]);this.context.trailerInfo.ID=t;const e=this.context.obj(this.encryption);return this.context.trailerInfo.Encrypt=this.context.register(e),this}}const $c=()=>ml(Qc.MD5(Date.now().toString())),tl=t=>Qc.lib.WordArray.random(t),el=(t={})=>{let e=-64;return t.printing&&(e|=4),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),e},rl=(t={})=>{let e=-3904;return("lowResolution"===t.printing||t.printing)&&(e|=4),"highResolution"===t.printing&&(e|=2052),t.modifying&&(e|=8),t.copying&&(e|=16),t.annotating&&(e|=32),t.fillingForms&&(e|=256),t.contentAccessibility&&(e|=512),t.documentAssembly&&(e|=1024),e},nl=t=>Qc.RC4.encrypt(fl(),t).ciphertext,il=(t,e)=>{const r=e.clone();let n=Qc.MD5(fl().concat(Qc.lib.WordArray.create(t)));for(let t=0;t<20;t++){const i=Math.ceil(r.sigBytes/4);for(let n=0;n<i;n++)r.words[n]=e.words[n]^(t|t<<8|t<<16|t<<24);n=Qc.RC4.encrypt(n,r).ciphertext}return n.concat(Qc.lib.WordArray.create(null,16))},ol=(t,e,r,n)=>{let i=n,o=t>=3?51:1;for(let t=0;t<o;t++)i=Qc.MD5(i);const s=i.clone();s.sigBytes=e/8;let a=r;o=t>=3?20:1;for(let t=0;t<o;t++){const e=Math.ceil(s.sigBytes/4);for(let r=0;r<e;r++)s.words[r]=i.words[r]^(t|t<<8|t<<16|t<<24);a=Qc.RC4.encrypt(a,s).ciphertext}return a},sl=(t,e,r,n,i,o)=>{let s=n.clone().concat(i).concat(Qc.lib.WordArray.create([gl(o)],4)).concat(Qc.lib.WordArray.create(r));const a=t>=3?51:1;for(let t=0;t<a;t++)s=Qc.MD5(s),s.sigBytes=e/8;return s},al=(t,e)=>{const r=e(8),n=e(8);return Qc.SHA256(t.clone().concat(r)).concat(r).concat(n)},cl=(t,e,r)=>{const n=Qc.SHA256(t.clone().concat(e)),i={mode:Qc.mode.CBC,padding:Qc.pad.NoPadding,iv:Qc.lib.WordArray.create(null,16)};return Qc.AES.encrypt(r,n,i).ciphertext},ll=(t,e,r)=>{const n=r(8),i=r(8);return Qc.SHA256(t.clone().concat(n).concat(e)).concat(n).concat(i)},hl=(t,e,r,n)=>{const i=Qc.SHA256(t.clone().concat(e).concat(r)),o={mode:Qc.mode.CBC,padding:Qc.pad.NoPadding,iv:Qc.lib.WordArray.create(null,16)};return Qc.AES.encrypt(n,i,o).ciphertext},dl=t=>t(32),ul=(t,e,r)=>{const n=Qc.lib.WordArray.create([gl(t),4294967295,1415668834],12).concat(r(4)),i={mode:Qc.mode.ECB,padding:Qc.pad.NoPadding};return Qc.AES.encrypt(n,e,i).ciphertext},fl=(t="")=>{const e=new Uint8Array(32),r=t.length;let n=0;for(;n<r&&n<32;){const r=t.charCodeAt(n);if(r>255)throw new Error("Password contains one or more invalid characters.");e[n]=r,n++}for(;n<32;)e[n]=bl[n-r],n++;return Qc.lib.WordArray.create(e)},pl=(t="")=>{const e=Math.min(127,t.length),r=new Uint8Array(e);for(let n=0;n<e;n++)r[n]=t.charCodeAt(n);return Qc.lib.WordArray.create(r)},gl=t=>(255&t)<<24|(65280&t)<<8|t>>8&65280|t>>24&255,ml=t=>{const e=[];for(let r=0;r<t.sigBytes;r++)e.push(t.words[Math.floor(r/4)]>>8*(3-r%4)&255);return Uint8Array.from(e)},bl=[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],yl=t=>1<<t;var vl;!function(t){t[t.Invisible=yl(0)]="Invisible",t[t.Hidden=yl(1)]="Hidden",t[t.Print=yl(2)]="Print",t[t.NoZoom=yl(3)]="NoZoom",t[t.NoRotate=yl(4)]="NoRotate",t[t.NoView=yl(5)]="NoView",t[t.ReadOnly=yl(6)]="ReadOnly",t[t.Locked=yl(7)]="Locked",t[t.ToggleNoView=yl(8)]="ToggleNoView",t[t.LockedContents=yl(9)]="LockedContents"}(vl||(vl={}));const wl=t=>t instanceof Xi?t:Xi.of(t),xl=t=>t instanceof zi?t:zi.of(t),kl=t=>t instanceof zi?t.asNumber():t;var Sl;!function(t){t.Degrees="degrees",t.Radians="radians"}(Sl||(Sl={}));const Fl=t=>(Yn(t,"radianAngle",["number"]),{type:Sl.Radians,angle:t}),Cl=t=>(Yn(t,"degreeAngle",["number"]),{type:Sl.Degrees,angle:t}),Al=t=>t*Math.PI/180,Ol=t=>180*t/Math.PI,Tl=t=>t.type===Sl.Radians?t.angle:t.type===Sl.Degrees?Al(t.angle):dt(`Invalid rotation: ${JSON.stringify(t)}`),Nl=t=>t.type===Sl.Radians?Ol(t.angle):t.type===Sl.Degrees?t.angle:dt(`Invalid rotation: ${JSON.stringify(t)}`),Dl=(t=0)=>{const e=t/90%4;return 0===e?0:1===e?90:2===e?180:3===e?270:0},Bl=(t,e=0)=>{const r=Dl(e);return 90===r||270===r?{width:t.height,height:t.width}:{width:t.width,height:t.height}},Rl=(t,e=0,r=0)=>{const{x:n,y:i,width:o,height:s}=t,a=Dl(r),c=e/2;return 0===a?{x:n-c,y:i-c,width:o,height:s}:90===a?{x:n-s+c,y:i-c,width:s,height:o}:180===a?{x:n-o+c,y:i-s+c,width:o,height:s}:270===a?{x:n-c,y:i-o+c,width:s,height:o}:{x:n-c,y:i-c,width:o,height:s}},El=()=>no.of(oo.ClipNonZero),Pl=()=>no.of(oo.ClipEvenOdd),{cos:jl,sin:ql,tan:Ml}=Math,zl=(t,e,r,n,i,o)=>no.of(oo.ConcatTransformationMatrix,[xl(t),xl(e),xl(r),xl(n),xl(i),xl(o)]),Ul=(t,e)=>zl(1,0,0,1,t,e),Vl=(t,e)=>zl(t,0,0,e,0,0),Il=t=>zl(jl(kl(t)),ql(kl(t)),-ql(kl(t)),jl(kl(t)),0,0),Ll=t=>Il(Al(kl(t))),Wl=(t,e)=>zl(1,Ml(kl(t)),Ml(kl(e)),1,0,0),Hl=(t,e)=>Wl(Al(kl(t)),Al(kl(e))),Kl=(t,e)=>no.of(oo.SetLineDashPattern,[`[${t.map(xl).join(" ")}]`,xl(e)]),Gl=()=>Kl([],0);var Xl;!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Projecting=2]="Projecting"}(Xl||(Xl={}));const Zl=t=>no.of(oo.SetLineCapStyle,[xl(t)]);var Yl;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(Yl||(Yl={}));const Jl=t=>no.of(oo.SetLineJoinStyle,[xl(t)]),Ql=t=>no.of(oo.SetGraphicsStateParams,[wl(t)]),_l=()=>no.of(oo.PushGraphicsState),$l=()=>no.of(oo.PopGraphicsState),th=t=>no.of(oo.SetLineWidth,[xl(t)]),eh=(t,e,r,n,i,o)=>no.of(oo.AppendBezierCurve,[xl(t),xl(e),xl(r),xl(n),xl(i),xl(o)]),rh=(t,e,r,n)=>no.of(oo.CurveToReplicateInitialPoint,[xl(t),xl(e),xl(r),xl(n)]),nh=()=>no.of(oo.ClosePath),ih=(t,e)=>no.of(oo.MoveTo,[xl(t),xl(e)]),oh=(t,e)=>no.of(oo.LineTo,[xl(t),xl(e)]),sh=(t,e,r,n)=>no.of(oo.AppendRectangle,[xl(t),xl(e),xl(r),xl(n)]),ah=(t,e,r)=>sh(t,e,r,r),ch=()=>no.of(oo.StrokePath);var lh;!function(t){t.NonZero="f",t.EvenOdd="f*"}(lh||(lh={}));const hh=()=>no.of(oo.FillNonZero),dh=()=>no.of(oo.FillEvenOdd),uh=()=>no.of(oo.FillNonZeroAndStroke),fh=()=>no.of(oo.EndPath),ph=()=>no.of(oo.NextLine),gh=(t,e)=>no.of(oo.MoveText,[xl(t),xl(e)]),mh=t=>no.of(oo.ShowText,[t]),bh=()=>no.of(oo.BeginText),yh=()=>no.of(oo.EndText),vh=(t,e)=>no.of(oo.SetFontAndSize,[wl(t),xl(e)]),wh=t=>no.of(oo.SetCharacterSpacing,[xl(t)]),xh=t=>no.of(oo.SetWordSpacing,[xl(t)]),kh=t=>no.of(oo.SetTextHorizontalScaling,[xl(t)]),Sh=t=>no.of(oo.SetTextLineHeight,[xl(t)]),Fh=t=>no.of(oo.SetTextRise,[xl(t)]);var Ch;!function(t){t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t[t.FillAndOutline=2]="FillAndOutline",t[t.Invisible=3]="Invisible",t[t.FillAndClip=4]="FillAndClip",t[t.OutlineAndClip=5]="OutlineAndClip",t[t.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",t[t.Clip=7]="Clip"}(Ch||(Ch={}));const Ah=t=>no.of(oo.SetTextRenderingMode,[xl(t)]),Oh=(t,e,r,n,i,o)=>no.of(oo.SetTextMatrix,[xl(t),xl(e),xl(r),xl(n),xl(i),xl(o)]),Th=(t,e,r,n,i)=>Oh(jl(kl(t)),ql(kl(t))+Ml(kl(e)),-ql(kl(t))+Ml(kl(r)),jl(kl(t)),n,i),Nh=(t,e,r,n,i)=>Th(Al(kl(t)),Al(kl(e)),Al(kl(r)),n,i),Dh=t=>no.of(oo.DrawObject,[wl(t)]),Bh=t=>no.of(oo.NonStrokingColorGray,[xl(t)]),Rh=t=>no.of(oo.StrokingColorGray,[xl(t)]),Eh=(t,e,r)=>no.of(oo.NonStrokingColorRgb,[xl(t),xl(e),xl(r)]),Ph=(t,e,r)=>no.of(oo.StrokingColorRgb,[xl(t),xl(e),xl(r)]),jh=(t,e,r,n)=>no.of(oo.NonStrokingColorCmyk,[xl(t),xl(e),xl(r),xl(n)]),qh=(t,e,r,n)=>no.of(oo.StrokingColorCmyk,[xl(t),xl(e),xl(r),xl(n)]),Mh=t=>no.of(oo.BeginMarkedContent,[wl(t)]),zh=()=>no.of(oo.EndMarkedContent);var Uh={exports:{}},Vh={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]},Ih={exports:{}},Lh=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))},Wh=Array.prototype.concat,Hh=Array.prototype.slice,Kh=Ih.exports=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var i=t[r];Lh(i)?e=Wh.call(e,Hh.call(i)):e.push(i)}return e};Kh.wrap=function(t){return function(){return t(Kh(arguments))}};var Gh=Ih.exports,Xh=Vh,Zh=Gh,Yh=Object.hasOwnProperty,Jh=Object.create(null);for(var Qh in Xh)Yh.call(Xh,Qh)&&(Jh[Xh[Qh]]=Qh);var _h=Uh.exports={to:{},get:{}};function $h(t,e,r){return Math.min(Math.max(e,t),r)}function td(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}_h.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=_h.get.hsl(t),r="hsl";break;case"hwb":e=_h.get.hwb(t),r="hwb";break;default:e=_h.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},_h.get.rgb=function(t){if(!t)return null;var e,r,n,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=e[2],e=e[1],r=0;r<3;r++){var o=2*r;i[r]=parseInt(e.slice(o,o+2),16)}n&&(i[3]=parseInt(n,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=(e=e[1])[3],r=0;r<3;r++)i[r]=parseInt(e[r]+e[r],16);n&&(i[3]=parseInt(n+n,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=parseInt(e[r+1],0);e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:Yh.call(Xh,e[1])?((i=Xh[e[1]])[3]=1,i):null:null;for(r=0;r<3;r++)i[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(r=0;r<3;r++)i[r]=$h(i[r],0,255);return i[3]=$h(i[3],0,1),i},_h.get.hsl=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,$h(parseFloat(e[2]),0,100),$h(parseFloat(e[3]),0,100),$h(isNaN(r)?1:r,0,1)]}return null},_h.get.hwb=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,$h(parseFloat(e[2]),0,100),$h(parseFloat(e[3]),0,100),$h(isNaN(r)?1:r,0,1)]}return null},_h.to.hex=function(){var t=Zh(arguments);return"#"+td(t[0])+td(t[1])+td(t[2])+(t[3]<1?td(Math.round(255*t[3])):"")},_h.to.rgb=function(){var t=Zh(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},_h.to.rgb.percent=function(){var t=Zh(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},_h.to.hsl=function(){var t=Zh(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},_h.to.hwb=function(){var t=Zh(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},_h.to.keyword=function(t){return Jh[t.slice(0,3)]};var ed=Uh.exports;const rd=Vh,nd={};for(const t of Object.keys(rd))nd[rd[t]]=t;const id={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 od=id;for(const t of Object.keys(id)){if(!("channels"in id[t]))throw new Error("missing channels property: "+t);if(!("labels"in id[t]))throw new Error("missing channel labels property: "+t);if(id[t].labels.length!==id[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=id[t];delete id[t].channels,delete id[t].labels,Object.defineProperty(id[t],"channels",{value:e}),Object.defineProperty(id[t],"labels",{value:r})}id.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i;let a,c;o===i?a=0:e===o?a=(r-n)/s:r===o?a=2+(n-e)/s:n===o&&(a=4+(e-r)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+o)/2;return c=o===i?0:l<=.5?s/(o+i):s/(2-o-i),[a,100*c,100*l]},id.rgb.hsv=function(t){let e,r,n,i,o;const s=t[0]/255,a=t[1]/255,c=t[2]/255,l=Math.max(s,a,c),h=l-Math.min(s,a,c),d=function(t){return(l-t)/6/h+.5};return 0===h?(i=0,o=0):(o=h/l,e=d(s),r=d(a),n=d(c),s===l?i=n-r:a===l?i=1/3+e-n:c===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},id.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const i=id.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,100*o,100*n]},id.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n);return[100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},id.rgb.keyword=function(t){const e=nd[t];if(e)return e;let r,n=1/0;for(const e of Object.keys(rd)){const s=(o=rd[e],((i=t)[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2);s<n&&(n=s,r=e)}var i,o;return r},id.keyword.rgb=function(t){return rd[t]},id.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/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*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},id.rgb.lab=function(t){const e=id.rgb.xyz(t);let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(r-n),200*(n-i)]},id.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let i,o,s;if(0===r)return s=255*n,[s,s,s];i=n<.5?n*(1+r):n+r-n*r;const a=2*n-i,c=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,c[t]=255*s;return c},id.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;return[e,100*(0===n?2*i/(o+i):2*r/(n+r)),100*((n+r)/2)]},id.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){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]}},id.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01);let o,s;s=(2-r)*n;const a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,100*o,100*s]},id.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const s=Math.floor(6*e),a=1-n;o=6*e-s,0!=(1&s)&&(o=1-o);const c=r+o*(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]},id.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},id.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let i,o,s;return i=3.2406*e+-1.5372*r+-.4986*n,o=-.9689*e+1.8758*r+.0415*n,s=.0557*e+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},id.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+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*(e-r),200*(r-n)]},id.lab.xyz=function(t){let e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;const i=r**3,o=e**3,s=n**3;return r=i>.008856?i:(r-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},id.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let i;i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(r*r+n*n),i]},id.lch.lab=function(t){const e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},id.rgb.ansi16=function(t,e=null){const[r,n,i]=t;let o=null===e?id.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===o&&(s+=60),s},id.hsv.ansi16=function(t){return id.rgb.ansi16(id.hsv.rgb(t),t[2])},id.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},id.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},id.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},id.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},id.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},id.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o;let a,c;return a=s<1?o/(1-s):0,c=s<=0?0:i===e?(r-n)/s%6:i===r?2+(n-e)/s:4+(e-r)/s,c/=6,c%=1,[360*c,100*s,100*a]},id.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],100*n,100*i]},id.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},id.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];const i=[0,0,0],o=e%1*6,s=o%1,a=1-s;let c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[255*(r*i[0]+c),255*(r*i[1]+c),255*(r*i[2]+c)]},id.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},id.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},id.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},id.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,n=r-e;let i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],100*n,100*i]},id.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},id.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},id.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},id.gray.hsl=function(t){return[0,0,t[0]]},id.gray.hsv=id.gray.hsl,id.gray.hwb=function(t){return[0,100,t[0]]},id.gray.cmyk=function(t){return[0,0,0,t[0]]},id.gray.lab=function(t){return[t[0],0,0]},id.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},id.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const sd=od;function ad(t){const e=function(){const t={},e=Object.keys(sd);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),n=Object.keys(sd[t]);for(let i=n.length,o=0;o<i;o++){const i=n[o],s=e[i];-1===s.distance&&(s.distance=e[t].distance+1,s.parent=t,r.unshift(i))}}return e}function cd(t,e){return function(r){return e(t(r))}}function ld(t,e){const r=[e[t].parent,t];let n=sd[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=cd(sd[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}const hd=od,dd=function(t){const e=ad(t),r={},n=Object.keys(e);for(let t=n.length,i=0;i<t;i++){const t=n[i];null!==e[t].parent&&(r[t]=ld(t,e))}return r},ud={};Object.keys(hd).forEach((t=>{ud[t]={},Object.defineProperty(ud[t],"channels",{value:hd[t].channels}),Object.defineProperty(ud[t],"labels",{value:hd[t].labels});const e=dd(t);Object.keys(e).forEach((r=>{const n=e[r];ud[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const n=t(e);if("object"==typeof n)for(let t=n.length,e=0;e<t;e++)n[e]=Math.round(n[e]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(n),ud[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))}));const fd=ed,pd=ud,gd=["keyword","gray","hex"],md={};for(const t of Object.keys(pd))md[[...pd[t].labels].sort().join("")]=t;const bd={};function yd(t,e){if(!(this instanceof yd))return new yd(t,e);if(e&&e in gd&&(e=null),e&&!(e in pd))throw new Error("Unknown model: "+e);let r,n;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof yd)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=fd.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,n=pd[this.model].channels,this.color=e.value.slice(0,n),this.valpha="number"==typeof e.value[n]?e.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=pd[this.model].channels;const r=Array.prototype.slice.call(t,0,n);this.color=kd(r,n),this.valpha="number"==typeof t[n]?t[n]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const n=e.sort().join("");if(!(n in md))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=md[n];const{labels:i}=pd[this.model],o=[];for(r=0;r<i.length;r++)o.push(t[i[r]]);this.color=kd(o)}if(bd[this.model])for(n=pd[this.model].channels,r=0;r<n;r++){const t=bd[this.model][r];t&&(this.color[r]=t(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}yd.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in fd.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const r=1===e.valpha?e.color:[...e.color,this.valpha];return fd.to[e.model](r)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:[...e.color,this.valpha];return fd.to.rgb.percent(r)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=pd[this.model],{labels:r}=pd[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new yd([...this.color.map(vd(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new yd([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:wd("rgb",0,xd(255)),green:wd("rgb",1,xd(255)),blue:wd("rgb",2,xd(255)),hue:wd(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:wd("hsl",1,xd(100)),lightness:wd("hsl",2,xd(100)),saturationv:wd("hsv",1,xd(100)),value:wd("hsv",2,xd(100)),chroma:wd("hcg",1,xd(100)),gray:wd("hcg",2,xd(100)),white:wd("hwb",1,xd(100)),wblack:wd("hwb",2,xd(100)),cyan:wd("cmyk",0,xd(100)),magenta:wd("cmyk",1,xd(100)),yellow:wd("cmyk",2,xd(100)),black:wd("cmyk",3,xd(100)),x:wd("xyz",0,xd(95.047)),y:wd("xyz",1,xd(100)),z:wd("xyz",2,xd(108.833)),l:wd("lab",0,xd(100)),a:wd("lab",1),b:wd("lab",2),keyword(t){return void 0!==t?new yd(t):pd[this.model].keyword(this.color)},hex(t){return void 0!==t?new yd(t):fd.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new yd(t);const e=this.rgb().round().color;let r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),fd.to.hex(e)+r},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[r,n]of t.entries()){const t=n/255;e[r]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return yd.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const r=t.rgb(),n=this.rgb(),i=void 0===e?.5:e,o=2*i-1,s=r.alpha()-n.alpha(),a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,c=1-a;return yd.rgb(a*r.red()+c*n.red(),a*r.green()+c*n.green(),a*r.blue()+c*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const t of Object.keys(pd)){if(gd.includes(t))continue;const{channels:e}=pd[t];yd.prototype[t]=function(...e){return this.model===t?new yd(this):e.length>0?new yd(e,t):new yd([...(r=pd[this.model][t].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],t);var r},yd[t]=function(...r){let n=r[0];return"number"==typeof n&&(n=kd(r,e)),new yd(n,t)}}function vd(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function wd(t,e,r){t=Array.isArray(t)?t:[t];for(const n of t)(bd[n]||(bd[n]=[]))[e]=r;return t=t[0],function(n){let i;return void 0!==n?(r&&(n=r(n)),i=this[t](),i.color[e]=n,i):(i=this[t]().color[e],r&&(i=r(i)),i)}}function xd(t){return function(e){return Math.max(0,Math.min(t,e))}}function kd(t,e){for(let r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}var Sd,Fd=ft(yd);!function(t){t.Grayscale="Grayscale",t.RGB="RGB",t.CMYK="CMYK"}(Sd||(Sd={}));const Cd=t=>(_n(t,"gray",0,1),{type:Sd.Grayscale,gray:t}),Ad=(t,e,r)=>(_n(t,"red",0,1),_n(e,"green",0,1),_n(r,"blue",0,1),{type:Sd.RGB,red:t,green:e,blue:r}),Od=(t,e,r,n)=>(_n(t,"cyan",0,1),_n(e,"magenta",0,1),_n(r,"yellow",0,1),_n(n,"key",0,1),{type:Sd.CMYK,cyan:t,magenta:e,yellow:r,key:n}),Td=t=>{Yn(t,"color",["string"]);const e=Fd(t).unitObject();return{rgb:Ad(e.r,e.g,e.b),alpha:e.alpha}},Nd=t=>t.type===Sd.Grayscale?Bh(t.gray):t.type===Sd.RGB?Eh(t.red,t.green,t.blue):t.type===Sd.CMYK?jh(t.cyan,t.magenta,t.yellow,t.key):dt(`Invalid color: ${JSON.stringify(t)}`),Dd=t=>t.type===Sd.Grayscale?Rh(t.gray):t.type===Sd.RGB?Ph(t.red,t.green,t.blue):t.type===Sd.CMYK?qh(t.cyan,t.magenta,t.yellow,t.key):dt(`Invalid color: ${JSON.stringify(t)}`),Bd=(t,e=1)=>1===(null==t?void 0:t.length)?Cd(t[0]*e):3===(null==t?void 0:t.length)?Ad(t[0]*e,t[1]*e,t[2]*e):4===(null==t?void 0:t.length)?Od(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0,Rd=t=>t.type===Sd.Grayscale?[t.gray]:t.type===Sd.RGB?[t.red,t.green,t.blue]:t.type===Sd.CMYK?[t.cyan,t.magenta,t.yellow,t.key]:dt(`Invalid color: ${JSON.stringify(t)}`);let Ed=0,Pd=0,jd=0,qd=0,Md=0,zd=0;const Ud=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]]),Vd={M:t=>(Ed=t[0],Pd=t[1],jd=qd=null,Md=Ed,zd=Pd,ih(Ed,Pd)),m:t=>(Ed+=t[0],Pd+=t[1],jd=qd=null,Md=Ed,zd=Pd,ih(Ed,Pd)),C:t=>(Ed=t[4],Pd=t[5],jd=t[2],qd=t[3],eh(t[0],t[1],t[2],t[3],t[4],t[5])),c(t){const e=eh(t[0]+Ed,t[1]+Pd,t[2]+Ed,t[3]+Pd,t[4]+Ed,t[5]+Pd);return jd=Ed+t[2],qd=Pd+t[3],Ed+=t[4],Pd+=t[5],e},S(t){null!==jd&&null!==qd||(jd=Ed,qd=Pd);const e=eh(Ed-(jd-Ed),Pd-(qd-Pd),t[0],t[1],t[2],t[3]);return jd=t[0],qd=t[1],Ed=t[2],Pd=t[3],e},s(t){null!==jd&&null!==qd||(jd=Ed,qd=Pd);const e=eh(Ed-(jd-Ed),Pd-(qd-Pd),Ed+t[0],Pd+t[1],Ed+t[2],Pd+t[3]);return jd=Ed+t[0],qd=Pd+t[1],Ed+=t[2],Pd+=t[3],e},Q:t=>(jd=t[0],qd=t[1],Ed=t[2],Pd=t[3],rh(t[0],t[1],Ed,Pd)),q(t){const e=rh(t[0]+Ed,t[1]+Pd,t[2]+Ed,t[3]+Pd);return jd=Ed+t[0],qd=Pd+t[1],Ed+=t[2],Pd+=t[3],e},T(t){null===jd||null===qd?(jd=Ed,qd=Pd):(jd=Ed-(jd-Ed),qd=Pd-(qd-Pd));const e=rh(jd,qd,t[0],t[1]);return Ed=t[0],Pd=t[1],e},t(t){null===jd||null===qd?(jd=Ed,qd=Pd):(jd=Ed-(jd-Ed),qd=Pd-(qd-Pd));const e=rh(jd,qd,Ed+t[0],Pd+t[1]);return Ed+=t[0],Pd+=t[1],e},A(t){const e=Id(Ed,Pd,t);return Ed=t[5],Pd=t[6],e},a(t){t[5]+=Ed,t[6]+=Pd;const e=Id(Ed,Pd,t);return Ed=t[5],Pd=t[6],e},L:t=>(Ed=t[0],Pd=t[1],jd=qd=null,oh(Ed,Pd)),l:t=>(Ed+=t[0],Pd+=t[1],jd=qd=null,oh(Ed,Pd)),H:t=>(Ed=t[0],jd=qd=null,oh(Ed,Pd)),h:t=>(Ed+=t[0],jd=qd=null,oh(Ed,Pd)),V:t=>(Pd=t[0],jd=qd=null,oh(Ed,Pd)),v:t=>(Pd+=t[0],jd=qd=null,oh(Ed,Pd)),Z(){const t=nh();return Ed=Md,Pd=zd,t},z(){const t=nh();return Ed=Md,Pd=zd,t}},Id=(t,e,r)=>{const[n,i,o,s,a,c,l]=r,h=Ld(c,l,n,i,s,a,o,t,e),d=[];for(const t of h){const e=Wd(...t);d.push(eh(...e))}return d},Ld=(t,e,r,n,i,o,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),jd=d*(a-t)*.5+h*(c-e)*.5,qd=d*(c-e)*.5-h*(a-t)*.5;let u=jd*jd/(r*r)+qd*qd/(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*t+p*e,w=g*t+m*e;let x=1/((v-b)*(v-b)+(w-y)*(w-y))-.25;x<0&&(x=0);let k=Math.sqrt(x);o===i&&(k=-k);const S=.5*(b+v)-k*(w-y),F=.5*(y+w)+k*(v-b),C=Math.atan2(y-F,b-S);let A=Math.atan2(w-F,v-S)-C;A<0&&1===o?A+=2*Math.PI:A>0&&0===o&&(A-=2*Math.PI);const O=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),T=[];for(let t=0;t<O;t++){const e=C+t*A/O,i=C+(t+1)*A/O;T[t]=[S,F,e,i,r,n,h,d]}return T},Wd=(t,e,r,n,i,o,s,a)=>{const c=a*i,l=-s*o,h=s*i,d=a*o,u=.5*(n-r),f=8/3*Math.sin(.5*u)*Math.sin(.5*u)/Math.sin(u),p=t+Math.cos(r)-f*Math.sin(r),g=e+Math.sin(r)+f*Math.cos(r),m=t+Math.cos(n),b=e+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]},Hd=t=>(t=>{Ed=Pd=jd=qd=Md=zd=0;let e=[];for(let r=0;r<t.length;r++){const n=t[r];if(n.cmd&&"function"==typeof Vd[n.cmd]){const t=Vd[n.cmd](n.args);Array.isArray(t)?e=e.concat(t):e.push(t)}}return e})((t=>{let e;const r=[];let n=[],i="",o=!1,s=0;for(const a of t)if(Ud.has(a))s=Ud.get(a),e&&(i.length>0&&(n[n.length]=+i),r[r.length]={cmd:e,args:n},n=[],i="",o=!1),e=a;else if([" ",","].includes(a)||"-"===a&&i.length>0&&"e"!==i[i.length-1]||"."===a&&o){if(0===i.length)continue;n.length===s?(r[r.length]={cmd:e,args:n},n=[+i],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+i,o="."===a,i=["-","."].includes(a)?a:""}else i+=a,"."===a&&(o=!0);return i.length>0&&(n.length===s?(r[r.length]={cmd:e,args:n},n=[+i],"M"===e&&(e="L"),"m"===e&&(e="l")):n[n.length]=+i),r[r.length]={cmd:e,args:n},r})(t));var Kd={},Gd={},Xd={};Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.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},Xd.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 Zd={};Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.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 Yd={};Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.fromCodePoint=String.fromCodePoint||function(t){return String.fromCharCode(Math.floor((t-65536)/1024)+55296,(t-65536)%1024+56320)},Yd.getCodePoint=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536},Yd.highSurrogateFrom=55296,Yd.highSurrogateTo=56319;var Jd=ut&&ut.__assign||function(){return Jd=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Jd.apply(this,arguments)};Object.defineProperty(Gd,"__esModule",{value:!0});var Qd=Xd,_d=Zd,$d=Yd,tu=Jd(Jd({},Qd.namedReferences),{all:Qd.namedReferences.html5}),eu={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},ru={mode:"specialChars",level:"all",numeric:"decimal"};Gd.encode=function(t,e){var r=void 0===(s=(o=void 0===e?ru:e).mode)?"specialChars":s,n=void 0===(h=o.numeric)?"decimal":h,i=o.level;if(!t)return"";var o,s,a=eu[r],c=tu[void 0===i?"all":i].characters,l="hexadecimal"===n;if(a.lastIndex=0,o=a.exec(t)){s="";var h=0;do{h!==o.index&&(s+=t.substring(h,o.index));var d=c[i=o[0]];if(!d){var u=i.length>1?$d.getCodePoint(i,0):i.charCodeAt(0);d=(l?"&#x"+u.toString(16):"&#"+u)+";"}s+=d,h=o.index+i.length}while(o=a.exec(t));h!==t.length&&(s+=t.substring(h))}else s=t;return s};var nu,iu={scope:"body",level:"all"},ou=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,su=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,au={xml:{strict:ou,attribute:su,body:Qd.bodyRegExps.xml},html4:{strict:ou,attribute:su,body:Qd.bodyRegExps.html4},html5:{strict:ou,attribute:su,body:Qd.bodyRegExps.html5}},cu=Jd(Jd({},au),{all:au.html5}),lu=String.fromCharCode,hu=lu(65533),du={level:"all"};Gd.decodeEntity=function(t,e){var r=void 0===(n=(void 0===e?du:e).level)?"all":n;if(!t)return"";var n=t;t[t.length-1];var i=tu[r].entities[t];if(i)n=i;else if("&"===t[0]&&"#"===t[1]){var o=t[2],s="x"==o||"X"==o?parseInt(t.substr(3),16):parseInt(t.substr(2));n=s>=1114111?hu:s>65535?$d.fromCodePoint(s):lu(_d.numericUnicodeMap[s]||s)}return n},Gd.decode=function(t,e){var r=void 0===e?iu:e,n=r.level,i=void 0===n?"all":n,o=r.scope,s=void 0===o?"xml"===i?"strict":"body":o;if(!t)return"";var a=cu[i][s],c=tu[i].entities,l="attribute"===s,h="strict"===s;a.lastIndex=0;var d,u=a.exec(t);if(u){d="";var f=0;do{f!==u.index&&(d+=t.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?hu:v>65535?$d.fromCodePoint(v):lu(_d.numericUnicodeMap[v]||v)}}d+=g,f=u.index+p.length}while(u=a.exec(t));f!==t.length&&(d+=t.substring(f))}else d=t;return d},function(t){var e,r=ut&&ut.__extends||(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},e(t,r)},function(t,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=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.isBlock=t.parse=t.Matcher=t.HTMLElement=t.CommentNode=t.TextNode=t.AbstractNode=t.NodeType=void 0;var n,i=Gd;!function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE"}(n=t.NodeType||(t.NodeType={}));var o=function(){function t(){this.childNodes=[]}return Object.defineProperty(t.prototype,"text",{get:function(){return(0,i.decode)(this.rawText)},enumerable:!1,configurable:!0}),t.prototype.remove=function(){return this.parentNode&&this.parentNode.removeChild(this),this},t}();t.AbstractNode=o;var s=function(t){function e(e){var r=t.call(this)||this;return r.nodeType=n.TEXT_NODE,r.value=e,r}return r(e,t),Object.defineProperty(e.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWhitespace",{get:function(){return/^(\s| )*$/.test(this.rawText)},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.rawText},e}(o);t.TextNode=s;var a=function(t){function e(e){var r=t.call(this)||this;return r.nodeType=n.COMMENT_NODE,r.value=e,r}return r(e,t),Object.defineProperty(e.prototype,"rawText",{get:function(){return this.value},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"\x3c!--".concat(this.rawText,"--\x3e")},e}(o);t.CommentNode=a;var c={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function l(t){return t[t.length-1]}var h=function(t){function e(e,r,i){void 0===r&&(r=""),void 0===i&&(i=null);var o=t.call(this)||this;o.tagName=e,o.rawAttrs=r,o.classNames=[],o.nodeType=n.ELEMENT_NODE,o.rawAttrs=r,o.parentNode=i,o.childNodes=[];for(var s={},a=void 0;a=g.exec(r);)s[a[2]]=a[4]||a[5]||a[6];return s.id&&(o.id=s.id),s.class&&(o.classNames=s.class.split(/\s+/)),o}return r(e,t),e.prototype.removeChild=function(t){this.childNodes=this.childNodes.filter((function(e){return e!==t})),t instanceof e&&(t.parentNode=null)},e.prototype.exchangeChild=function(t,r){var n=this.childNodes.findIndex((function(e){return e===t}));n>=0&&(this.childNodes[n]=r,t instanceof e&&(t.parentNode=null))},Object.defineProperty(e.prototype,"rawText",{get:function(){for(var t="",e=0;e<this.childNodes.length;e++)t+=this.childNodes[e].rawText;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"structuredText",{get:function(){var t=[],e=[t];return function r(i){if(i.nodeType===n.ELEMENT_NODE)c[i.tagName]?(t.length>0&&e.push(t=[]),i.childNodes.forEach(r),t.length>0&&e.push(t=[])):i.childNodes.forEach(r);else if(i.nodeType===n.TEXT_NODE)if(i.isWhitespace)t.prependWhitespace=!0;else{var o=i.text;t.prependWhitespace&&(o=" "+o,t.prependWhitespace=!1),t.push(o)}}(this),e.map((function(t){return t.join("").trim().replace(/\s{2,}/g," ")})).join("\n").replace(/\s+$/,"")},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this.tagName;if(t){var e=/^(img|br|hr|area|base|input|doctype|link|meta)$/i.test(t),r=this.rawAttrs?" "+this.rawAttrs:"";return e?"<".concat(t).concat(r," />"):"<".concat(t).concat(r,">").concat(this.innerHTML,"</").concat(t,">")}return this.innerHTML},Object.defineProperty(e.prototype,"innerHTML",{get:function(){return this.childNodes.map((function(t){return t.toString()})).join("")},set:function(t){var e=this,r=x(t);this.childNodes.forEach((function(t){return t.remove()})),r.childNodes.forEach((function(t){return e.appendChild(t)}))},enumerable:!1,configurable:!0}),e.prototype.set_content=function(t){if(t instanceof o)t=[t];else if("string"==typeof t){var e=x(t);t=e.childNodes.length?e.childNodes:[new s(t)]}this.childNodes=t},Object.defineProperty(e.prototype,"outerHTML",{get:function(){return this.toString()},enumerable:!1,configurable:!0}),e.prototype.trimRight=function(t){for(var e=0;e<this.childNodes.length;e++){var r=this.childNodes[e];if(r.nodeType===n.ELEMENT_NODE)r.trimRight(t);else{var i=r.rawText.search(t);i>-1&&(r.value=r.rawText.substr(0,i),this.childNodes.length=e+1)}}return this},Object.defineProperty(e.prototype,"structure",{get:function(){var t=[],e=0;function r(r){t.push(" ".repeat(e)+r)}return function t(i){var o=i.id?"#"+i.id:"",s=i.classNames.length?"."+i.classNames.join("."):"";r(i.tagName+o+s),e++;for(var a=0;a<i.childNodes.length;a++){var c=i.childNodes[a];c.nodeType===n.ELEMENT_NODE?t(c):c.nodeType===n.TEXT_NODE&&(c.isWhitespace||r("#text"))}e--}(this),t.join("\n")},enumerable:!1,configurable:!0}),e.prototype.removeWhitespace=function(){for(var t=0,e=0;e<this.childNodes.length;e++){var r=this.childNodes[e];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[t++]=r}return this.childNodes.length=t,this},e.prototype.querySelectorAll=function(t){var e,r=this;if(t instanceof f)(e=t).reset();else{if(t.includes(",")){var i=t.split(",");return Array.from(i.reduce((function(t,e){return r.querySelectorAll(e.trim()).reduce((function(t,e){return t.add(e)}),t)}),new Set))}e=new f(t)}for(var o=[],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]=e.advance(h))&&e.matched){o.push(h),e.rewind(),s.pop();continue}}c[1]<h.childNodes.length?s.push([h.childNodes[c[1]++],0,!1]):(c[2]&&e.rewind(),s.pop())}return o},e.prototype.querySelector=function(t){var e;t instanceof f?(e=t).reset():e=new f(t);for(var r=[],i=0;i<this.childNodes.length;i++)for(r.push([this.childNodes[i],0,!1]);r.length;){var o=l(r),s=o[0];if(0===o[1]){if(s.nodeType!==n.ELEMENT_NODE){r.pop();continue}if((o[2]=e.advance(s))&&e.matched)return s}o[1]<s.childNodes.length?r.push([s.childNodes[o[1]++],0,!1]):(o[2]&&e.rewind(),r.pop())}return null},e.prototype.appendChild=function(t){return this.childNodes.push(t),t instanceof e&&(t.parentNode=this),t},e.prototype.prependChild=function(t){return this.childNodes.unshift(t),t instanceof e&&(t.parentNode=this),t},Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return l(this.childNodes)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){if(this._attrs)return this._attrs;this._attrs={};var t=this.rawAttributes;for(var e in t)this._attrs[e]=(0,i.decode)(t[e]);return this._attrs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawAttributes",{get:function(){if(this._rawAttrs)return this._rawAttrs;var t={};if(this.rawAttrs)for(var e=void 0;e=m.exec(this.rawAttrs);)t[e[1]]=e[4]||e[5]||e[6]||"";return this._rawAttrs=t,t},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,e){"id"===t?this.id=e:"class"===t&&(this.classNames=e.split(/\s+/));var r=this.attributes;void 0===e?delete r[t]:r[t]=e+"",this._rawAttrs&&(void 0===e?delete this._rawAttrs[t]:this._rawAttrs[t]=(0,i.encode)(e+"")),this.rawAttrs=Object.keys(r).map((function(t){return t+(""===r[t]?"":'="'+(0,i.encode)(r[t])+'"')})).join(" ")},e.prototype.removeAttribute=function(t){this.setAttribute(t,void 0)},e.prototype.setAttributes=function(t){var e=this;t.id?this.id=t.id:t.class&&(this.classNames=t.class.split(/\s+/)),this.attributes&&(Object.keys(this.attributes).forEach((function(t){return delete e.attributes[t]})),Object.keys(t).forEach((function(r){return e.attributes[r]=t[r]+""}))),this.rawAttributes&&(Object.keys(this.rawAttributes).forEach((function(t){return delete e.rawAttributes[t]})),Object.keys(t).forEach((function(r){return e.rawAttributes[r]=(0,i.encode)(t[r]+"")}))),this.rawAttrs=Object.keys(t).map((function(e){return e+(""===t[e]?"":'="'+(0,i.encode)(t[e]+"")+'"')})).join(" ")},e}(o);t.HTMLElement=h;var d={},u={f145:function(t,e,r,n,i){if(e=e||"",r=r||[],t.id!=e.substr(1))return!1;for(var o=r,s=0;s<o.length;s++)if(-1===t.classNames.indexOf(o[s]))return!1;return!0},f45:function(t,e,r,n,i){for(var o=r=r||[],s=0;s<o.length;s++)if(-1===t.classNames.indexOf(o[s]))return!1;return!0},f15:function(t,e,r,n,i){return e=e||"",t.id==e.substr(1)},f1:function(t,e,r,n,i){if(e=e||"",t.id!=e.substr(1))return!1},f5:function(t,e,r,n,i){return!0},f245:function(t,e,r,n,i){n=n||"",i=i||"";var o=t.attributes;for(var s in o){var a=o[s];if(s==n&&a==i)return!0}return!1},f25:function(t,e,r,n,i){n=n||"",i=i||"";var o=t.attributes;for(var s in o){var a=o[s];if(s==n&&a==i)return!0}return!1},f2:function(t,e,r,n,i){n=n||"",i=i||"";var o=t.attributes;for(var s in o){var a=o[s];if(s==n&&a==i)return!0}return!1},f345:function(t,e,r,n,i){if(e=e||"",r=r||[],t.tagName!=e)return!1;for(var o=r,s=0;s<o.length;s++)if(-1===t.classNames.indexOf(o[s]))return!1;return!0},f35:function(t,e,r,n,i){return e=e||"",t.tagName==e},f3:function(t,e,r,n,i){if(e=e||"",t.tagName!=e)return!1}},f=function(){function t(t){this.nextMatch=0,u.f5=u.f5,this.matchers=t.split(" ").map((function(t){if(d[t])return d[t];var e,r=t.split("."),n=r[0],i=r.slice(1).sort(),o='"use strict";',s="f",a="",c="";if(n&&"*"!=n)if("#"==n[0])o+="if (el.id != "+JSON.stringify(n.substr(1))+") return false;",s+="1";else if(e=n.match(/^\[\s*(\S+)\s*(=|!=)\s*((((["'])([^\6]*)\6))|(\S*?))\]\s*/)){a=e[1];var l=e[2];if("="!==l&&"!="!==l)throw new Error("Selector not supported, Expect [key${op}value].op must be =,!=");"="===l&&(l="=="),c=e[7]||e[8],o+='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 o+="if (el.tagName != "+JSON.stringify(n)+") return false;",s+="3";i.length>0&&(o+="for (let cls = "+JSON.stringify(i)+", i = 0; i < cls.length; i++) if (el.classNames.indexOf(cls[i]) === -1) return false;",s+="4"),o+="return true;";var h={func:u[s+="5"],tagName:n||"",classes:i||"",attr_key:a||"",value:c||""};return o=o||"",d[t]=h}))}return t.prototype.advance=function(t){return!!(this.nextMatch<this.matchers.length&&this.matchers[this.nextMatch].func(t,this.matchers[this.nextMatch].tagName,this.matchers[this.nextMatch].classes,this.matchers[this.nextMatch].attr_key,this.matchers[this.nextMatch].value))&&(this.nextMatch++,!0)},t.prototype.rewind=function(){this.nextMatch--},Object.defineProperty(t.prototype,"matched",{get:function(){return this.nextMatch==this.matchers.length},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.nextMatch=0},t.prototype.flushCache=function(){d={}},t}();t.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(t,e){var r,n=new h(null),i=n,o=[n],c=0;for(e=e||{};r=p.exec(t);){if(c+r[0].length<p.lastIndex){var d=t.substring(c,p.lastIndex-r[0].length);i.appendChild(new s(d))}if(c=p.lastIndex,"!"!=r[0][1]){if(e.lowerCaseTagName&&(r[2]=r[2].toLowerCase()),!r[1]&&(!r[9]&&y[i.tagName]&&y[i.tagName][r[2]]&&(o.pop(),i=l(o)),i=i.appendChild(new h(r[2],r[3].trim())),o.push(i),w[r[2]])){var u="</"+r[2]+">",f=t.indexOf(u,p.lastIndex);if(e[r[2]]){d=void 0;(d=-1==f?t.substr(p.lastIndex):t.substring(p.lastIndex,f)).length>0&&i.appendChild(new s(d))}-1==f?c=p.lastIndex=t.length+1:(c=p.lastIndex=f+u.length,r[1]="true")}if(r[1]||r[9]||b[r[2]])for(;;){if(i.tagName==r[2]){o.pop(),i=l(o);break}if(!v[i.tagName]||!v[i.tagName][r[2]])break;o.pop(),i=l(o)}}else if(e.comment){var d=t.substring(c-3,c-r[0].length+4);i.appendChild(new a(d))}}c<t.length&&n.appendChild(new s(t.substring(c))),n.valid=1===o.length;for(var g=function(){var t=o.pop(),e=l(o);t.parentNode&&t.parentNode instanceof h&&t.parentNode.parentNode&&(t.parentNode===e&&t.tagName===e.tagName?(e.removeChild(t),t.childNodes.forEach((function(t){e.parentNode.appendChild(t)})),o.pop()):(e.removeChild(t),t.childNodes.forEach((function(t){e.appendChild(t)}))))};o.length>1;)g();return n}t.parse=x;var k=["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"];t.isBlock=function(t){return t.nodeType===n.ELEMENT_NODE&&t.tagName&&k.includes(t.tagName.toLowerCase())}}(Kd);class uu{constructor(t,e={}){this.svg=t,this.images=e}}!function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion"}(nu||(nu={}));const fu=[1,0,0,1,0,0],pu=([t,e,r,n,i,o],[s,a,c,l,h,d])=>[t*s+r*a,e*s+n*a,t*c+r*l,e*c+n*l,t*h+r*d+i,e*h+n*d+o],gu=([t,e,r,n,i,o],{x:s,y:a})=>({x:t*s+r*a+i,y:e*s+n*a+o}),mu=(t,e)=>{switch(t){case"scale":case"scaleX":case"scaleY":{const[r,n=r]=e;return["scaleY"===t?1:r,0,0,"scaleX"===t?1:n,0,0]}case"translate":case"translateX":case"translateY":{const[r,n=r]=e;return[1,0,0,1,"translateY"===t?0:r,"translateX"===t?0:-n]}case"rotate":{const[t,r=0,n=0]=e,i=mu("translate",[r,n]),o=mu("translate",[-r,-n]),s=Al(-t),a=[Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0];return pu(pu(i,a),o)}case"skewY":case"skewX":{const r=Al(-e[0]),n=Math.tan(r);return[1,"skewY"===t?n:0,"skewX"===t?n:0,1,0,0]}case"matrix":{const[t,r,n,i,o,s]=e,a=mu("scale",[1,-1]);return pu(pu(a,[t,r,n,i,o,s]),a)}default:return fu}},bu=(t,e,r)=>pu(t,mu(e,r)),yu={butt:Xl.Butt,round:Xl.Round,square:Xl.Projecting},vu={evenodd:lh.EvenOdd,nonzero:lh.NonZero},wu={bevel:Yl.Bevel,miter:Yl.Miter,round:Yl.Round},xu=(t,e)=>({text(r){const n=r.svgAttributes.textAnchor,i=r.svgAttributes.dominantBaseline,o=r.text.trim().replace(/\s/g," "),s=r.svgAttributes.fontSize||12,a=e.fonts&&((t,e)=>{const r=t.fontFamily;if(!r)return;const n="bold"===t.fontWeight||Number(t.fontWeight)>=700,i="italic"===t.fontStyle,o=(t,r,n)=>e[n+(t?"_bold":"")+(r?"_italic":"")],s=Object.keys(e).find((t=>t.startsWith(r)));return o(n,i,r)||o(n,!1,r)||o(!1,i,r)||o(!1,!1,r)||(s?e[s]:void 0)})(r.svgAttributes,e.fonts),c=(a||t.getFont()[0]).widthOfTextAtSize(o,s),l=(a||t.getFont()[0]).heightAtSize(s),h=(a||t.getFont()[0]).heightAtSize(s,{descender:!1}),d="middle"===n?c/2:"end"===n?c:0;let u=0;switch(i){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}t.drawText(o,{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||e.blendMode})},line(r){t.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||e.blendMode})},path(r){r.svgAttributes.d&&t.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:bu(r.svgAttributes.matrix,"scale",[1,-1]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||e.blendMode})},image(r){var n,i;const{src:o}=r.svgAttributes;if(!o||!(null===(n=e.images)||void 0===n?void 0:n[o]))return;const s=null===(i=e.images)||void 0===i?void 0:i[o],{x:a,y:c,width:l,height:h}=Au(s.width,s.height,r.svgAttributes.width||s.width,r.svgAttributes.height||s.height,r.svgAttributes.preserveAspectRatio);t.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||e.blendMode})},rect(r){(r.svgAttributes.fill||r.svgAttributes.stroke)&&t.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:bu(r.svgAttributes.matrix,"translateY",[r.svgAttributes.height]),clipSpaces:r.svgAttributes.clipSpaces,blendMode:r.svgAttributes.blendMode||e.blendMode})},ellipse(r){t.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||e.blendMode})},circle:r=>xu(t,e).ellipse(r)}),ku=(t,e,r,n)=>{const i=e[r]||t[r];return i||void 0===n?i:n},Su=t=>{const e=/([^:\s]+)*\s*:\s*([^;]+)/g,r={};let n=e.exec(t);for(;null!==n;)r[n[1]]=n[2],n=e.exec(t);return r},Fu=(t,e)=>{if(!t||0===t.length)return;if(["none","transparent"].includes(t))return;if("currentColor"===t)return e||Fu("#000000");const r=Td(t);return{rgb:r.rgb,alpha:r.alpha?r.alpha+"":void 0}},Cu=(t,e,r)=>{var n,i,o,s;const a=t.attributes,c=Su(a.style),l=ku(a,c,"width",""),h=ku(a,c,"height",""),d=Fu(ku(a,c,"fill")),u=ku(a,c,"fill-opacity"),f=ku(a,c,"opacity"),p=Fu(ku(a,c,"stroke")),g=ku(a,c,"stroke-opacity"),m=ku(a,c,"stroke-linecap"),b=ku(a,c,"stroke-linejoin"),y=ku(a,c,"fill-rule"),v=ku(a,c,"stroke-width"),w=ku(a,c,"font-family"),x=ku(a,c,"font-style"),k=ku(a,c,"font-weight"),S=ku(a,c,"font-size"),F=ku(a,c,"mix-blend-mode"),C=Du(l,e.width),A=Du(h,e.height),O=Du(a.x,e.width),T=Du(a.y,e.height),N=Du(a.x1,e.width),D=Du(a.x2,e.width),B=Du(a.y1,e.height),R=Du(a.y2,e.height),E=Du(a.cx,e.width),P=Du(a.cy,e.height),j=Du(a.rx||a.r,e.width),q=Du(a.ry||a.r,e.height),M={fontFamily:w||e.fontFamily,fontStyle:x||e.fontStyle,fontWeight:k||e.fontWeight,fontSize:null!==(n=Du(S))&&void 0!==n?n:e.fontSize,fill:(null==d?void 0:d.rgb)||e.fill,fillOpacity:null!==(i=Du(u||f||(null==d?void 0:d.alpha)))&&void 0!==i?i:e.fillOpacity,fillRule:vu[y]||e.fillRule,stroke:(null==p?void 0:p.rgb)||e.stroke,strokeWidth:null!==(o=Du(v))&&void 0!==o?o:e.strokeWidth,strokeOpacity:null!==(s=Du(g||f||(null==p?void 0:p.alpha)))&&void 0!==s?s:e.strokeOpacity,strokeLineCap:yu[m]||e.strokeLineCap,strokeLineJoin:wu[b]||e.strokeLineJoin,width:C||e.width,height:A||e.height,rotation:e.rotation,viewBox:"svg"===t.tagName&&t.attributes.viewBox?Ru(t.attributes.viewBox):e.viewBox,blendMode:Bu(F)||e.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((t=>{a[t]&&(U=a[t]+" "+U)})),(O||T)&&(U+=`translate(${O||0} ${T||0}) `);let V=r;if(U){const t=/(\w+)\((.+?)\)/g;let e=t.exec(U);for(;null!==e;){const[,r,n]=e,i=(n||"").split(/\s*,\s*|\s+/).filter((t=>t.length>0)).map((t=>parseFloat(t)));V=bu(V,r,i),e=t.exec(U)}}if(z.x=O,z.y=T,(a.cx||a.cy)&&(z.cx=E,z.cy=P),(a.rx||a.ry||a.r)&&(z.rx=j,z.ry=q),(a.x1||a.y1)&&(z.x1=N,z.y1=B),(a.x2||a.y2)&&(z.x2=D,z.y2=R),(a.width||a.height)&&(z.width=null!=C?C:e.width,z.height=null!=A?A:e.height),a.d&&(V=bu(V,"scale",[1,-1]),z.d=a.d),M.fontFamily){const t=M.fontFamily.match(/^"(.*?)"|^'(.*?)'/);t&&(M.fontFamily=t[1]||t[2])}return M.strokeWidth&&(z.strokeWidth=M.strokeWidth),{inherited:M,svgAttributes:z,tagName:t.tagName,matrix:V}},Au=(t,e,r,n,i)=>{if("none"===i)return{x:0,y:0,width:r,height:n};const o=t/e,s=r/n,a=s>o?o*n:r,c=s>=o?n:r/o,l=r-a,h=n-c,[d,u]=(()=>{switch(i){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}},Ou=(t,e,r,n)=>{if(t.nodeType===Kd.NodeType.COMMENT_NODE)return[];if(t.nodeType===Kd.NodeType.TEXT_NODE)return[];if("g"===t.tagName)return Nu(t,e,r,n);if("svg"===t.tagName)return Tu(t,e,r,n);{"polygon"===t.tagName&&(t.tagName="path",t.attributes.d=`M${t.attributes.points}Z`,delete t.attributes.points);const i=Cu(t,e,r),o=Object.assign(Object.assign(Object.assign({},i.inherited),i.svgAttributes),{matrix:i.matrix,clipSpaces:n});return Object.assign(t,{svgAttributes:o}),[t]}},Tu=(t,e,r,n)=>{var i,o;null!==(i=t.attributes.width)&&void 0!==i||t.setAttribute("width",e.viewBox.width+""),null!==(o=t.attributes.height)&&void 0!==o||t.setAttribute("height",e.viewBox.height+"");const s=Cu(t,e,r),a=[],c=t.attributes.viewBox?Ru(t.attributes.viewBox):t.attributes.width&&t.attributes.height?Ru(`0 0 ${t.attributes.width} ${t.attributes.height}`):e.viewBox,l=parseFloat(t.attributes.x)||0,h=parseFloat(t.attributes.y)||0;let d=bu(r,"translate",[l,h]);const{clipBox:u,content:f}=((t,e,r,n,i,o="xMidYMid")=>{const[s,a="meet"]=o.split(" "),c=n/e,l=i/r,h=bu(t,"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-e*d,f=i-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:bu(bu(t,"translate",[p,g]),"scale",[d])}})(d,c.width,c.height,parseFloat(t.attributes.width),parseFloat(t.attributes.height),t.attributes.preserveAspectRatio),p={topLeft:gu(u,{x:0,y:0}),topRight:gu(u,{x:c.width,y:0}),bottomRight:gu(u,{x:c.width,y:-c.height}),bottomLeft:gu(u,{x:0,y:-c.height})};return d=bu(f,"translate",[-c.x,-c.y]),t.childNodes.forEach((t=>{const e=Ou(t,Object.assign(Object.assign({},s.inherited),{viewBox:c}),d,[...n,p]);a.push(...e)})),a},Nu=(t,e,r,n)=>{const i=Cu(t,e,r),o=[];return t.childNodes.forEach((t=>{o.push(...Ou(t,i.inherited,i.matrix,n))})),o},Du=(t,e=1)=>{if(!t)return;const r=parseFloat(t);return isNaN(r)?void 0:t.endsWith("%")?r*e/100:r},Bu=t=>{switch(t){case"normal":return nu.Normal;case"multiply":return nu.Multiply;case"screen":return nu.Screen;case"overlay":return nu.Overlay;case"darken":return nu.Darken;case"lighten":return nu.Lighten;case"color-dodge":return nu.ColorDodge;case"color-burn":return nu.ColorBurn;case"hard-light":return nu.HardLight;case"soft-light":return nu.SoftLight;case"difference":return nu.Difference;case"exclusion":return nu.Exclusion;default:return}},Ru=t=>{if(!t)return;const[e=0,r=0,n=1,i=1]=(t||"").split(" ").map((t=>Du(t)));return{x:e,y:r,width:n,height:i}},Eu=(t,e,r)=>{const n="string"==typeof e?new uu(e):e;if(!n.svg)return;const i=t.getSize(),o=Kd.parse(n.svg).querySelector("svg");if(!o)return console.error("This is not an svg. Ignoring: "+n.svg);const s=o.attributes,a=Su(s.style),c=ku(s,a,"width",""),l=ku(s,a,"height",""),h=void 0!==r.width?r.width:parseFloat(c),d=void 0!==r.height?r.height:parseFloat(l);s.viewBox||o.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")),o.setAttribute("style",Object.entries(a).map((([t,e])=>`${t}:${e};`)).join("")));const u=[1,0,0,1,r.x||0,r.y||0],f=((t,{width:e,height:r,fontSize:n},i,o)=>{const s=Kd.parse(t).firstChild;return e&&s.setAttribute("width",e+""),r&&s.setAttribute("height",r+""),n&&s.setAttribute("font-size",n+""),Ou(s,Object.assign(Object.assign({},i),{viewBox:Ru(s.attributes.viewBox||"0 0 1 1")}),o,[])})(o.outerHTML,r,i,u),p=xu(t,Object.assign(Object.assign({},r),{images:n.images}));f.forEach((t=>{var e;null===(e=p[t.tagName])||void 0===e||e.call(p,t)}))},Pu=({topLeft:t,topRight:e,bottomRight:r,bottomLeft:n})=>[ih(t.x,t.y),oh(e.x,e.y),oh(r.x,r.y),oh(n.x,n.y),nh(),El(),fh()],ju=t=>t.flatMap(Pu),qu=(t,e)=>[_l(),e.graphicsState&&Ql(e.graphicsState),bh(),Nd(e.color),vh(e.font,e.size),e.strokeWidth&&th(e.strokeWidth),e.strokeColor&&Dd(e.strokeColor),e.renderMode&&Ah(e.renderMode),Th(Tl(e.rotate),Tl(e.xSkew),Tl(e.ySkew),e.x,e.y),mh(t),yh(),$l()].filter(Boolean),Mu=(t,e)=>{const r=[_l(),e.graphicsState&&Ql(e.graphicsState),...e.clipSpaces?ju(e.clipSpaces):[],e.matrix&&zl(...e.matrix),bh(),Nd(e.color),vh(e.font,e.size),Sh(e.lineHeight),e.strokeWidth&&th(e.strokeWidth),e.strokeColor&&Dd(e.strokeColor),e.renderMode&&Ah(e.renderMode),Th(Tl(e.rotate),Tl(e.xSkew),Tl(e.ySkew),e.x,e.y)].filter(Boolean);for(let e=0,n=t.length;e<n;e++)r.push(mh(t[e]),ph());return r.push(yh(),$l()),r},zu=(t,e)=>[_l(),e.graphicsState&&Ql(e.graphicsState),...e.clipSpaces?ju(e.clipSpaces):[],e.matrix&&zl(...e.matrix),Ul(e.x,e.y),Il(Tl(e.rotate)),Vl(e.width,e.height),Wl(Tl(e.xSkew),Tl(e.ySkew)),Dh(t),$l()].filter(Boolean),Uu=(t,e)=>[_l(),e.graphicsState&&Ql(e.graphicsState),Ul(e.x,e.y),Il(Tl(e.rotate)),Vl(e.xScale,e.yScale),Wl(Tl(e.xSkew),Tl(e.ySkew)),Dh(t),$l()].filter(Boolean),Vu=t=>{var e,r;return[_l(),t.graphicsState&&Ql(t.graphicsState),...t.clipSpaces?ju(t.clipSpaces):[],t.matrix&&zl(...t.matrix),t.color&&Dd(t.color),th(t.thickness),Kl(null!==(e=t.dashArray)&&void 0!==e?e:[],null!==(r=t.dashPhase)&&void 0!==r?r:0),ih(t.start.x,t.start.y),t.lineCap&&Zl(t.lineCap),ih(t.start.x,t.start.y),oh(t.end.x,t.end.y),ch(),$l()].filter(Boolean)},Iu=(Math.sqrt(2)-1)/3*4,Lu=t=>{const{width:e,height:r,xSkew:n,ySkew:i,rotate:o,matrix:s}=t,a="number"==typeof e?e:e.asNumber(),c="number"==typeof r?r:r.asNumber(),l="number"==typeof t.x?t.x:t.x.asNumber(),h="number"==typeof t.y?t.y:t.y.asNumber(),d=Math.max(0,Math.min(t.rx||0,a/2)),u=Math.max(0,Math.min(t.ry||0,c/2)),f=d>0||u>0?[`M ${d},0`,"H "+(a-d),`C ${a-d*(1-Iu)},0 ${a},${u*(1-Iu)} ${a},${u}`,"V "+(c-u),`C ${a},${c-u*(1-Iu)} ${a-d*(1-Iu)},${c} ${a-d},${c}`,`H ${d}`,`C ${d*(1-Iu)},${c} 0,${c-u*(1-Iu)} 0,${c-u}`,`V ${u}`,`C 0,${u*(1-Iu)} ${d*(1-Iu)},0 ${d},0`,"Z"].join(" "):`M 0,0 H ${a} V ${c} H 0 Z`;let p=pu(s||fu,mu("translate",[l,-h]));return o&&(p=pu(p,mu("rotate",[-Nl(o)]))),n&&(p=pu(p,mu("skewX",[Nl(n)]))),i&&(p=pu(p,mu("skewY",[-Nl(i)]))),p=pu(p,mu("translateY",[-c])),Hu(f,Object.assign(Object.assign({},t),{x:0,y:0,rotate:Cl(0),scale:1,matrix:p}))},Wu=t=>{const e=kl(t.xScale),r=kl(t.yScale),n=kl(t.x),i=kl(t.y),o=(Math.sqrt(2)-1)/3*4,s=e*o,a=r*o,c=[`M 0,${r}`,`C ${s},${r} ${e},${a} ${e},0`,`C ${e},${-a} ${s},${-r} 0,${-r}`,`C ${-s},${-r} ${-e},${-a} ${-e},0`,`C ${-e},${a} ${-s},${r} 0,${r}`,"Z"].join(" ");let l=pu(t.matrix||fu,mu("translate",[n,-i]));return t.rotate&&(l=pu(l,mu("rotate",[-Nl(t.rotate)]))),Hu(c,Object.assign(Object.assign({},t),{x:0,y:0,rotate:Cl(0),scale:1,matrix:l}))},Hu=(t,e)=>{var r,n,i;const o=$u(e);return o?[_l(),e.graphicsState&&Ql(e.graphicsState),...e.clipSpaces?ju(e.clipSpaces):[],e.matrix&&zl(...e.matrix),Ul(e.x,e.y),Il(Tl(null!==(r=e.rotate)&&void 0!==r?r:Cl(0))),e.scale?Vl(e.scale,-e.scale):Vl(1,-1),e.color&&Nd(e.color),e.borderColor&&Dd(e.borderColor),e.borderWidth&&th(e.borderWidth),e.borderLineCap&&Zl(e.borderLineCap),Kl(null!==(n=e.borderDashArray)&&void 0!==n?n:[],null!==(i=e.borderDashPhase)&&void 0!==i?i:0),...Hd(t),o(),$l()].filter(Boolean):[]},Ku=t=>{const e=kl(t.size),r=-.25,n=-.49,i=-.675;return[_l(),t.color&&Dd(t.color),th(t.thickness),Ul(t.x,t.y),ih(i*e,-.07601036269430045*e),oh(r*e,n*e),oh(.69*e,.475*e),ch(),$l()].filter(Boolean)},Gu=t=>0===t.rotation?[Ul(0,0),Ll(0)]:90===t.rotation?[Ul(t.width,0),Ll(90)]:180===t.rotation?[Ul(t.width,t.height),Ll(180)]:270===t.rotation?[Ul(0,t.height),Ll(270)]:[],Xu=t=>{const e=Lu({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)});if(!t.filled)return e;const r=kl(t.width),n=kl(t.height),i=Math.min(r,n)/2,o=Ku({x:r/2,y:n/2,size:i,thickness:t.thickness,color:t.markColor});return[_l(),...e,...o,$l()]},Zu=t=>{const e=kl(t.width),r=kl(t.height),n=Math.min(e,r)/2,i=Wu({x:t.x,y:t.y,xScale:n,yScale:n,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return i;const o=Wu({x:t.x,y:t.y,xScale:.45*n,yScale:.45*n,color:t.dotColor,borderColor:void 0,borderWidth:0});return[_l(),...i,...o,$l()]},Yu=t=>{const e=kl(t.x),r=kl(t.y),n=kl(t.width),i=kl(t.height),o=Lu({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),s=Ju(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)});return[_l(),...o,...s,$l()]},Ju=(t,e)=>{const r=[bh(),Nd(e.color),vh(e.font,e.size)];for(let n=0,i=t.length;n<i;n++){const{encoded:i,x:o,y:s}=t[n];r.push(Th(Tl(e.rotate),Tl(e.xSkew),Tl(e.ySkew),o,s),mh(i))}return r.push(yh()),r},Qu=t=>{const e=kl(t.x),r=kl(t.y),n=kl(t.width),i=kl(t.height),o=kl(t.borderWidth),s=kl(t.padding),a=e+o/2+s,c=r+o/2+s,l=n-2*(o/2+s),h=i-2*(o/2+s),d=[ih(a,c),oh(a,c+h),oh(a+l,c+h),oh(a+l,c),nh(),El(),fh()],u=Lu({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),f=Ju(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),p=[Mh("Tx"),_l(),...f,$l(),zh()];return[_l(),...u,...d,...p,$l()]},_u=t=>{const e=kl(t.x),r=kl(t.y),n=kl(t.width),i=kl(t.height),o=kl(t.lineHeight),s=kl(t.borderWidth),a=kl(t.padding),c=e+s/2+a,l=r+s/2+a,h=n-2*(s/2+a),d=i-2*(s/2+a),u=[ih(c,l),oh(c,l+d),oh(c+h,l+d),oh(c+h,l),nh(),El(),fh()],f=Lu({x:e,y:r,width:n,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),p=[];for(let e=0,r=t.selectedLines.length;e<r;e++){const r=t.textLines[t.selectedLines[e]];p.push(...Lu({x:r.x-a,y:r.y-(o-r.height)/2,width:n-s,height:r.height+(o-r.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}))}const g=Ju(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)}),m=[Mh("Tx"),_l(),...g,$l(),zh()];return[_l(),...f,...p,...u,...m,$l()]},$u=({color:t,borderWidth:e,borderColor:r,fillRule:n})=>t&&r&&e?uh:t?n===lh.EvenOdd?dh:hh:r&&e?ch:void 0;class tf 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 ef 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 rf 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 nf extends Error{constructor(){super("PDFDocument has no pages so `PDFDocument.removePage` cannot be called")}}class of extends Error{constructor(t){super(`PDFDocument has no form field with the name "${t}"`)}}class sf extends Error{constructor(t,e,r){var n,i;super(`Expected field "${t}" to be of type ${null==e?void 0:e.name}, but it is actually of type ${null!==(i=null===(n=null==r?void 0:r.constructor)||void 0===n?void 0:n.name)&&void 0!==i?i:r}`)}}class af extends Error{constructor(t){super(`Failed to select check box due to missing onValue: "${t}"`)}}class cf extends Error{constructor(t){super(`A field already exists with the specified name: "${t}"`)}}class lf extends Error{constructor(t){super(`Field name contains invalid component: "${t}"`)}}class hf extends Error{constructor(t){super(`A non-terminal field already exists with the specified name: "${t}"`)}}class df extends Error{constructor(t){super(`Reading rich text fields is not supported: Attempted to read rich text field: ${t}`)}}class uf extends Error{constructor(t,e){super(`Failed to layout combed text as lineLength=${t} is greater than cellCount=${e}`)}}class ff extends Error{constructor(t,e,r){super(`Attempted to set text with length=${t} for TextField with maxLength=${e} and name=${r}`)}}class pf extends Error{constructor(t,e,r){super(`Attempted to set maxLength=${e}, which is less than ${t}, the length of this field's current value (name=${r})`)}}var gf;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(gf||(gf={}));const mf=(t,e,r,n=!1)=>{let i=4;for(;i<500;){let o=0;for(let n=0,s=t.length;n<s;n++){o+=1;const s=t[n].split(" ");let a=r.width;for(let t=0,n=s.length;t<n;t++){const c=t===n-1?s[t]:s[t]+" ",l=e.widthOfTextAtSize(c,i);a-=l,a<=0&&(o+=1,a=r.width-l)}}if(!n&&o>t.length)return i-1;const s=e.heightAtSize(i);if((s+.2*s)*o>Math.abs(r.height))return i-1;i+=1}return i},bf=t=>{for(let e=t.length;e>0;e--)if(/\s/.test(t[e]))return e},yf=(t,e,r,n)=>{var i;let o=t.length;for(;o>0;){const s=t.substring(0,o),a=r.encodeText(s),c=r.widthOfTextAtSize(s,n);if(c<e){return{line:s,encoded:a,width:c,remainder:t.substring(o)||void 0}}o=null!==(i=bf(s))&&void 0!==i?i:0}return{line:t,encoded:r.encodeText(t),width:r.widthOfTextAtSize(t,n),remainder:void 0}},vf=(t,{alignment:e,fontSize:r,font:n,bounds:i})=>{const o=x(b(t));void 0!==r&&0!==r||(r=mf(o,n,i,!0));const s=n.heightAtSize(r),a=s+.2*s,c=[];let l=i.x,h=i.y,d=i.x+i.width,u=i.y+i.height,f=i.y+i.height;for(let t=0,p=o.length;t<p;t++){let p=o[t];for(;void 0!==p;){const{line:t,encoded:o,width:g,remainder:m}=yf(p,i.width,n,r),b=e===gf.Left?i.x:e===gf.Center?i.x+i.width/2-g/2:e===gf.Right?i.x+i.width-g:i.x;f-=a,b<l&&(l=b),f<h&&(h=f),b+g>d&&(d=b+g),f+s>u&&(u=f+s),c.push({text:t,encoded:o,width:g,height:s,x:b,y:f}),p=null==m?void 0:m.trim()}}return{fontSize:r,lineHeight:a,lines:c,bounds:{x:l,y:h,width:d-l,height:u-h}}},wf=(t,{fontSize:e,font:r,bounds:n,cellCount:i})=>{const o=k(b(t));if(o.length>i)throw new uf(o.length,i);void 0!==e&&0!==e||(e=((t,e,r,n)=>{const i=r.width/n,o=r.height;let s=4;const a=F(t);for(;s<500;){for(let t=0,r=a.length;t<r;t++){const r=a[t];if(e.widthOfTextAtSize(r,s)>.75*i)return s-1}if(e.heightAtSize(s,{descender:!1})>o)return s-1;s+=1}return s})(o,r,n,i));const s=n.width/i,a=r.heightAtSize(e,{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<i;){const[t,i]=S(o,g),m=r.encodeText(t),b=r.widthOfTextAtSize(t,e),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:o,encoded:m,width:b,height:a,x:y,y:c}),p+=1,g+=i}return{fontSize:e,cells:l,bounds:{x:h,y:d,width:u-h,height:f-d}}},xf=(t,{alignment:e,fontSize:r,font:n,bounds:i})=>{const o=k(b(t));void 0!==r&&0!==r||(r=mf([o],n,i));const s=n.encodeText(o),a=n.widthOfTextAtSize(o,r),c=n.heightAtSize(r,{descender:!1}),l=e===gf.Left?i.x:e===gf.Center?i.x+i.width/2-a/2:e===gf.Right?i.x+i.width-a:i.x,h=i.y+(i.height/2-c/2);return{fontSize:r,line:{text:o,encoded:s,width:a,height:c,x:l,y:h},bounds:{x:l,y:h,width:a,height:c}}},kf=t=>"normal"in t?t:{normal:t},Sf=/\/([^\0\t\n\f\r ]+)[\0\t\n\f\r ]+(\d*\.\d+|\d+)[\0\t\n\f\r ]+Tf/,Ff=t=>{var e,r;const n=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",i=null!==(r=T(n,Sf).match)&&void 0!==r?r:[],o=Number(i[2]);return isFinite(o)?o:void 0},Cf=/(\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)/,Af=t=>{var e;const r=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",n=T(r,Cf).match,[,i,o,s,a,c]=null!=n?n:[];return"g"===c&&i?Cd(Number(i)):"rg"===c&&i&&o&&s?Ad(Number(i),Number(o),Number(s)):"k"===c&&i&&o&&s&&a?Od(Number(i),Number(o),Number(s),Number(a)):void 0},Of=(t,e,r,n=0)=>{var i;const o=[Nd(e).toString(),vh(null!==(i=null==r?void 0:r.name)&&void 0!==i?i:"dummy__noop",n).toString()].join("\n");t.setDefaultAppearance(o)},Tf=(t,e)=>{var r,n,i;const o=Af(e),s=Af(t.acroField),a=e.getRectangle(),c=e.getAppearanceCharacteristics(),l=e.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Dl(null==c?void 0:c.getRotation()),{width:u,height:f}=Bl(a,d),p=Gu(Object.assign(Object.assign({},a),{rotation:d})),g=Ad(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!==(i=null!=o?o:s)&&void 0!==i?i:g;Of(o?e:t.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,...Xu(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Xu(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Xu(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Xu(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},Nf=(t,e)=>{var r,n,i;const o=Af(e),s=Af(t.acroField),a=e.getRectangle(),c=e.getAppearanceCharacteristics(),l=e.getBorderStyle(),h=null!==(r=null==l?void 0:l.getWidth())&&void 0!==r?r:0,d=Dl(null==c?void 0:c.getRotation()),{width:u,height:f}=Bl(a,d),p=Gu(Object.assign(Object.assign({},a),{rotation:d})),g=Ad(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!==(i=null!=o?o:s)&&void 0!==i?i:g;Of(o?e:t.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,...Zu(Object.assign(Object.assign({},w),{color:b,filled:!0}))],off:[...p,...Zu(Object.assign(Object.assign({},w),{color:b,filled:!1}))]},down:{on:[...p,...Zu(Object.assign(Object.assign({},w),{color:y,filled:!0}))],off:[...p,...Zu(Object.assign(Object.assign({},w),{color:y,filled:!1}))]}}},Df=(t,e,r)=>{var n,i,o,s,a;const c=Af(e),l=Af(t.acroField),h=Ff(e),d=Ff(t.acroField),u=e.getRectangle(),f=e.getAppearanceCharacteristics(),p=e.getBorderStyle(),g=null==f?void 0:f.getCaptions(),m=null!==(n=null==g?void 0:g.normal)&&void 0!==n?n:"",b=null!==(o=null!==(i=null==g?void 0:g.down)&&void 0!==i?i:m)&&void 0!==o?o:"",y=null!==(s=null==p?void 0:p.getWidth())&&void 0!==s?s:0,v=Dl(null==f?void 0:f.getRotation()),{width:w,height:x}=Bl(u,v),k=Gu(Object.assign(Object.assign({},u),{rotation:v})),S=Ad(0,0,0),F=Bd(null==f?void 0:f.getBorderColor()),C=Bd(null==f?void 0:f.getBackgroundColor()),A=Bd(null==f?void 0:f.getBackgroundColor(),.8),O={x:y,y:y,width:w-2*y,height:x-2*y},T=xf(m,{alignment:gf.Center,fontSize:null!=h?h:d,font:r,bounds:O}),N=xf(b,{alignment:gf.Center,fontSize:null!=h?h:d,font:r,bounds:O}),D=Math.min(T.fontSize,N.fontSize),B=null!==(a=null!=c?c:l)&&void 0!==a?a:S;Of(c||void 0!==h?e:t.acroField,B,r,D);const R={x:0+y/2,y:0+y/2,width:w-y,height:x-y,borderWidth:y,borderColor:F,textColor:B,font:r.name,fontSize:D};return{normal:[...k,...Yu(Object.assign(Object.assign({},R),{color:C,textLines:[T.line]}))],down:[...k,...Yu(Object.assign(Object.assign({},R),{color:A,textLines:[N.line]}))]}},Bf=(t,e,r)=>{var n,i,o,s;const a=Af(e),c=Af(t.acroField),l=Ff(e),h=Ff(t.acroField),d=e.getRectangle(),u=e.getAppearanceCharacteristics(),f=e.getBorderStyle(),p=null!==(n=t.getText())&&void 0!==n?n:"",g=null!==(i=null==f?void 0:f.getWidth())&&void 0!==i?i:0,m=Dl(null==u?void 0:u.getRotation()),{width:b,height:y}=Bl(d,m),v=Gu(Object.assign(Object.assign({},d),{rotation:m})),w=Ad(0,0,0),x=Bd(null==u?void 0:u.getBorderColor()),k=Bd(null==u?void 0:u.getBackgroundColor());let S,F;const C=t.isCombed()?0:1,A={x:g+C,y:g+C,width:b-2*(g+C),height:y-2*(g+C)};if(t.isMultiline()){const e=vf(p,{alignment:t.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=e.lines,F=e.fontSize}else if(t.isCombed()){const e=wf(p,{fontSize:null!=l?l:h,font:r,bounds:A,cellCount:null!==(o=t.getMaxLength())&&void 0!==o?o:0});S=e.cells,F=e.fontSize}else{const e=xf(p,{alignment:t.getAlignment(),fontSize:null!=l?l:h,font:r,bounds:A});S=[e.line],F=e.fontSize}const O=null!==(s=null!=a?a:c)&&void 0!==s?s:w;Of(a||void 0!==l?e:t.acroField,O,r,F);const T={x:0+g/2,y:0+g/2,width:b-g,height:y-g,borderWidth:null!=g?g:0,borderColor:x,textColor:O,font:r.name,fontSize:F,color:k,textLines:S,padding:C};return[...v,...Qu(T)]},Rf=(t,e,r)=>{var n,i,o;const s=Af(e),a=Af(t.acroField),c=Ff(e),l=Ff(t.acroField),h=e.getRectangle(),d=e.getAppearanceCharacteristics(),u=e.getBorderStyle(),f=null!==(n=t.getSelected()[0])&&void 0!==n?n:"",p=null!==(i=null==u?void 0:u.getWidth())&&void 0!==i?i:0,g=Dl(null==d?void 0:d.getRotation()),{width:m,height:b}=Bl(h,g),y=Gu(Object.assign(Object.assign({},h),{rotation:g})),v=Ad(0,0,0),w=Bd(null==d?void 0:d.getBorderColor()),x=Bd(null==d?void 0:d.getBackgroundColor()),k={x:p+1,y:p+1,width:m-2*(p+1),height:b-2*(p+1)},{line:S,fontSize:F}=xf(f,{alignment:gf.Left,fontSize:null!=c?c:l,font:r,bounds:k}),C=null!==(o=null!=s?s:a)&&void 0!==o?o:v;Of(s||void 0!==c?e:t.acroField,C,r,F);const A={x:0+p/2,y:0+p/2,width:m-p,height:b-p,borderWidth:null!=p?p:0,borderColor:w,textColor:C,font:r.name,fontSize:F,color:x,textLines:[S],padding:1};return[...y,...Qu(A)]},Ef=(t,e,r)=>{var n,i;const o=Af(e),s=Af(t.acroField),a=Ff(e),c=Ff(t.acroField),l=e.getRectangle(),h=e.getAppearanceCharacteristics(),d=e.getBorderStyle(),u=null!==(n=null==d?void 0:d.getWidth())&&void 0!==n?n:0,f=Dl(null==h?void 0:h.getRotation()),{width:p,height:g}=Bl(l,f),m=Gu(Object.assign(Object.assign({},l),{rotation:f})),b=Ad(0,0,0),y=Bd(null==h?void 0:h.getBorderColor()),v=Bd(null==h?void 0:h.getBackgroundColor()),w=t.getOptions(),x=t.getSelected();t.isSorted()&&w.sort();let k="";for(let t=0,e=w.length;t<e;t++)k+=w[t],t<e-1&&(k+="\n");const S={x:u+1,y:u+1,width:p-2*(u+1),height:g-2*(u+1)},{lines:F,fontSize:C,lineHeight:A}=vf(k,{alignment:gf.Left,fontSize:null!=a?a:c,font:r,bounds:S}),O=[];for(let t=0,e=F.length;t<e;t++){const e=F[t];x.includes(e.text)&&O.push(t)}const T=Ad(.6,193/255,218/255),N=null!==(i=null!=o?o:s)&&void 0!==i?i:b;return Of(o||void 0!==a?e:t.acroField,N,r,C),[...m,..._u({x:0+u/2,y:0+u/2,width:p-u,height:g-u,borderWidth:null!=u?u:0,borderColor:y,textColor:N,font:r.name,fontSize:C,color:v,textLines:F,lineHeight:A,selectedColor:T,selectedLines:O,padding:1})]};class Pf{constructor(t,e,r){this.alreadyEmbedded=!1,Yn(t,"ref",[[eo,"PDFRef"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),Yn(r,"embedder",[[Js,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=r.width,this.height=r.height,this.embedder=r}scale(t){return Yn(t,"factor",["number"]),{width:this.width*t,height:this.height*t}}size(){return this.scale(1)}embed(){return po(this,void 0,void 0,(function*(){this.alreadyEmbedded||(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.alreadyEmbedded=!0)}))}}Pf.of=(t,e,r)=>new Pf(t,e,r);class jf{constructor(t,e,r){this.modified=!0,Yn(t,"ref",[[eo,"PDFRef"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),Yn(r,"embedder",[[vs,"CustomFontEmbedder"],[fs,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=r.fontName,this.embedder=r}encodeText(t){return Yn(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)}widthOfTextAtSize(t,e){return Yn(t,"text",["string"]),Yn(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)}heightAtSize(t,e){var r;return Yn(t,"size",["number"]),Jn(null==e?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:null===(r=null==e?void 0:e.descender)||void 0===r||r})}sizeAtHeight(t){return Yn(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)}getCharacterSet(){return this.embedder instanceof fs?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet}embed(){return po(this,void 0,void 0,(function*(){this.modified&&(yield this.embedder.embedIntoContext(this.doc.context,this.ref),this.modified=!1)}))}}jf.of=(t,e,r)=>new jf(t,e,r);class qf{constructor(t,e,r){Yn(t,"ref",[[eo,"PDFRef"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),Yn(r,"embedder",[[As,"JpegEmbedder"],[Es,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=r.width,this.height=r.height,this.embedder=r}scale(t){return Yn(t,"factor",["number"]),{width:this.width*t,height:this.height*t}}scaleToFit(t,e){Yn(t,"width",["number"]),Yn(e,"height",["number"]);const r=t/this.width,n=e/this.height,i=Math.min(r,n);return this.scale(i)}size(){return this.scale(1)}embed(){return po(this,void 0,void 0,(function*(){if(this.embedder){if(!this.embedTask){const{doc:t,ref:e}=this;this.embedTask=this.embedder.embedIntoContext(t.context,e)}yield this.embedTask,this.embedder=void 0}}))}}var Mf;qf.of=(t,e,r)=>new qf(t,e,r),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Mf||(Mf={}));const zf=t=>{Jn(null==t?void 0:t.x,"options.x",["number"]),Jn(null==t?void 0:t.y,"options.y",["number"]),Jn(null==t?void 0:t.width,"options.width",["number"]),Jn(null==t?void 0:t.height,"options.height",["number"]),Jn(null==t?void 0:t.textColor,"options.textColor",[[Object,"Color"]]),Jn(null==t?void 0:t.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Jn(null==t?void 0:t.borderColor,"options.borderColor",[[Object,"Color"]]),Jn(null==t?void 0:t.borderWidth,"options.borderWidth",["number"]),Jn(null==t?void 0:t.rotate,"options.rotate",[[Object,"Rotation"]])};class Uf{constructor(t,e,r){Yn(t,"acroField",[[Ro,"PDFAcroTerminal"]]),Yn(e,"ref",[[eo,"PDFRef"]]),Yn(r,"doc",[[mp,"PDFDocument"]]),this.acroField=t,this.ref=e,this.doc=r}getName(){var t;return null!==(t=this.acroField.getFullyQualifiedName())&&void 0!==t?t:""}isReadOnly(){return this.acroField.hasFlag(qo.ReadOnly)}enableReadOnly(){this.acroField.setFlagTo(qo.ReadOnly,!0)}disableReadOnly(){this.acroField.setFlagTo(qo.ReadOnly,!1)}isRequired(){return this.acroField.hasFlag(qo.Required)}enableRequired(){this.acroField.setFlagTo(qo.Required,!0)}disableRequired(){this.acroField.setFlagTo(qo.Required,!1)}isExported(){return!this.acroField.hasFlag(qo.NoExport)}enableExporting(){this.acroField.setFlagTo(qo.NoExport,!1)}disableExporting(){this.acroField.setFlagTo(qo.NoExport,!0)}needsAppearancesUpdate(){throw new si(this.constructor.name,"needsAppearancesUpdate")}defaultUpdateAppearances(t){throw new si(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 e;const r=t.textColor,n=t.backgroundColor,i=t.borderColor,o=t.borderWidth,s=Nl(t.rotate),a=t.caption,c=t.x,l=t.y,h=t.width+o,d=t.height+o,u=Boolean(t.hidden),f=t.page;ti(s,"degreesAngle",90);const p=Bo.create(this.doc.context,this.ref),g=Rl({x:c,y:l,width:h,height:d},o,s);p.setRectangle(g),f&&p.setP(f);const m=p.getOrCreateAppearanceCharacteristics();n&&m.setBackgroundColor(Rd(n)),m.setRotation(s),a&&m.setCaptions({normal:a}),i&&m.setBorderColor(Rd(i));const b=p.getOrCreateBorderStyle();if(void 0!==o&&b.setWidth(o),p.setFlagTo(vl.Print,!0),p.setFlagTo(vl.Hidden,u),p.setFlagTo(vl.Invisible,!1),r){const t=(null!==(e=this.acroField.getDefaultAppearance())&&void 0!==e?e:"")+"\n"+Nd(r).toString();this.acroField.setDefaultAppearance(t)}return p}updateWidgetAppearanceWithFont(t,e,{normal:r,rollover:n,down:i}){this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,r,e),rollover:n&&this.createAppearanceStream(t,n,e),down:i&&this.createAppearanceStream(t,i,e)})}updateOnOffWidgetAppearance(t,e,{normal:r,rollover:n,down:i}){this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,r,e),rollover:n&&this.createAppearanceDict(t,n,e),down:i&&this.createAppearanceDict(t,i,e)})}updateWidgetAppearances(t,{normal:e,rollover:r,down:n}){t.setNormalAppearance(e),r?t.setRolloverAppearance(r):t.removeRolloverAppearance(),n?t.setDownAppearance(n):t.removeDownAppearance()}createAppearanceStream(t,e,r){const{context:n}=this.acroField.dict,{width:i,height:o}=t.getRectangle(),s=r&&{Font:{[r.name]:r.ref}},a=n.formXObject(e,{Resources:s,BBox:n.obj([0,0,i,o]),Matrix:n.obj([1,0,0,1,0,0])});return n.register(a)}createImageAppearanceStream(t,e,r){var n;const{context:i}=this.acroField.dict,o=t.getRectangle(),s=t.getAppearanceCharacteristics(),a=t.getBorderStyle(),c=null!==(n=null==a?void 0:a.getWidth())&&void 0!==n?n:0,l=Dl(null==s?void 0:s.getRotation()),h=Gu(Object.assign(Object.assign({},o),{rotation:l})),d=Bl(o,l),u=e.scaleToFit(d.width-2*c,d.height-2*c),f={x:c,y:c,width:u.width,height:u.height,rotate:Cl(0),xSkew:Cl(0),ySkew:Cl(0)};r===Mf.Center?(f.x+=(d.width-2*c)/2-u.width/2,f.y+=(d.height-2*c)/2-u.height/2):r===Mf.Right&&(f.x=d.width-c-u.width,f.y=d.height-c-u.height);const p=this.doc.context.addRandomSuffix("Image",10),g=[...h,...zu(p,f)],m={XObject:{[p]:e.ref}},b=i.formXObject(g,{Resources:m,BBox:i.obj([0,0,o.width,o.height]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(b)}createAppearanceDict(t,e,r){const{context:n}=this.acroField.dict,i=this.createAppearanceStream(t,e.on),o=this.createAppearanceStream(t,e.off),s=n.obj({});return s.set(r,i),s.set(Xi.of("Off"),o),s}}class Vf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroCheckBox",[[Po,"PDFAcroCheckBox"]]),this.acroField=t}check(){var t;const e=null!==(t=this.acroField.getOnValue())&&void 0!==t?t:Xi.of("Yes");this.markAsDirty(),this.acroField.setValue(e)}uncheck(){this.markAsDirty(),this.acroField.setValue(Xi.of("Off"))}isChecked(){const t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()}addToPage(t,e){var r,n,i,o,s,a;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const c=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:50,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),l=this.doc.context.register(c.dict);this.acroField.addWidget(l),c.setAppearanceState(Xi.of("Off")),this.updateWidgetAppearance(c,Xi.of("Yes")),t.node.addAnnot(l)}needsAppearancesUpdate(){var t;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.getAppearanceState(),o=null===(t=n.getAppearances())||void 0===t?void 0:t.normal;if(!(o instanceof Yi))return!0;if(i&&!o.has(i))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(t){var e;Jn(t,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n],o=null!==(e=i.getOnValue())&&void 0!==e?e:Xi.of("Yes");o&&this.updateWidgetAppearance(i,o,t)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Tf)(this,t));this.updateOnOffWidgetAppearance(t,e,n)}}Vf.of=(t,e,r)=>new Vf(t,e,r);class If extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroComboBox",[[Io,"PDFAcroComboBox"]]),this.acroField=t}getOptions(){const t=this.acroField.getOptions(),e=new Array(t.length);for(let r=0,n=e.length;r<n;r++){const{display:n,value:i}=t[r];e[r]=(null!=n?n:i).decodeText()}return e}getSelected(){const t=this.acroField.getValues(),e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}setOptions(t){Yn(t,"options",[Array]);const e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]={value:Ji.fromText(t[r])};this.acroField.setOptions(e)}addOptions(t){Yn(t,"options",["string",Array]);const e=Array.isArray(t)?t:[t],r=this.acroField.getOptions(),n=new Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]={value:Ji.fromText(e[t])};this.acroField.setOptions(r.concat(n))}select(t,e=!1){Yn(t,"options",["string",Array]),Yn(e,"merge",["boolean"]);const r=Array.isArray(t)?t:[t],n=this.getOptions();r.find((t=>!n.includes(t)))&&this.enableEditing(),this.markAsDirty(),(r.length>1||1===r.length&&e)&&this.enableMultiselect();const i=new Array(r.length);for(let t=0,e=r.length;t<e;t++)i[t]=Ji.fromText(r[t]);if(e){const t=this.acroField.getValues();this.acroField.setValues(t.concat(i))}else this.acroField.setValues(i)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}isEditable(){return this.acroField.hasFlag(Uo.Edit)}enableEditing(){this.acroField.setFlagTo(Uo.Edit,!0)}disableEditing(){this.acroField.setFlagTo(Uo.Edit,!1)}isSorted(){return this.acroField.hasFlag(Uo.Sort)}enableSorting(){this.acroField.setFlagTo(Uo.Sort,!0)}disableSorting(){this.acroField.setFlagTo(Uo.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(Uo.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(Uo.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(Uo.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(Uo.DoNotSpellCheck,!0)}isSelectOnClick(){return this.acroField.hasFlag(Uo.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!1)}addToPage(t,e){var r,n,i,o,s,a,c;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=e.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),t.node.addAnnot(h)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Rf)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}If.of=(t,e,r)=>new If(t,e,r);class Lf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroListBox",[[Xo,"PDFAcroListBox"]]),this.acroField=t}getOptions(){const t=this.acroField.getOptions(),e=new Array(t.length);for(let r=0,n=e.length;r<n;r++){const{display:n,value:i}=t[r];e[r]=(null!=n?n:i).decodeText()}return e}getSelected(){const t=this.acroField.getValues(),e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}setOptions(t){Yn(t,"options",[Array]),this.markAsDirty();const e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]={value:Ji.fromText(t[r])};this.acroField.setOptions(e)}addOptions(t){Yn(t,"options",["string",Array]),this.markAsDirty();const e=Array.isArray(t)?t:[t],r=this.acroField.getOptions(),n=new Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]={value:Ji.fromText(e[t])};this.acroField.setOptions(r.concat(n))}select(t,e=!1){Yn(t,"options",["string",Array]),Yn(e,"merge",["boolean"]);const r=Array.isArray(t)?t:[t],n=this.getOptions();Kn(r,"option",n),this.markAsDirty(),(r.length>1||1===r.length&&e)&&this.enableMultiselect();const i=new Array(r.length);for(let t=0,e=r.length;t<e;t++)i[t]=Ji.fromText(r[t]);if(e){const t=this.acroField.getValues();this.acroField.setValues(t.concat(i))}else this.acroField.setValues(i)}clear(){this.markAsDirty(),this.acroField.setValues([])}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}isSorted(){return this.acroField.hasFlag(Uo.Sort)}enableSorting(){this.acroField.setFlagTo(Uo.Sort,!0)}disableSorting(){this.acroField.setFlagTo(Uo.Sort,!1)}isMultiselect(){return this.acroField.hasFlag(Uo.MultiSelect)}enableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!0)}disableMultiselect(){this.acroField.setFlagTo(Uo.MultiSelect,!1)}isSelectOnClick(){return this.acroField.hasFlag(Uo.CommitOnSelChange)}enableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!0)}disableSelectOnClick(){this.acroField.setFlagTo(Uo.CommitOnSelChange,!1)}addToPage(t,e){var r,n,i,o,s,a,c;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:100,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=e.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),t.node.addAnnot(h)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Ef)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}Lf.of=(t,e,r)=>new Lf(t,e,r);class Wf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroRadioButton",[[Go,"PDFAcroRadioButton"]]),this.acroField=t}getOptions(){const t=this.acroField.getExportValues();if(t){const e=new Array(t.length);for(let r=0,n=t.length;r<n;r++)e[r]=t[r].decodeText();return e}const e=this.acroField.getOnValues(),r=new Array(e.length);for(let t=0,n=r.length;t<n;t++)r[t]=e[t].decodeText();return r}getSelected(){const t=this.acroField.getValue();if(t===Xi.of("Off"))return;const e=this.acroField.getExportValues();if(e){const r=this.acroField.getOnValues();for(let n=0,i=r.length;n<i;n++)if(r[n]===t)return e[n].decodeText()}return t.decodeText()}select(t){Yn(t,"option",["string"]);const e=this.getOptions();Wn(t,"option",e),this.markAsDirty();const r=this.acroField.getOnValues(),n=this.acroField.getExportValues();if(n)for(let e=0,i=n.length;e<i;e++)n[e].decodeText()===t&&this.acroField.setValue(r[e]);else for(let e=0,n=r.length;e<n;e++){const n=r[e];n.decodeText()===t&&this.acroField.setValue(n)}}clear(){this.markAsDirty(),this.acroField.setValue(Xi.of("Off"))}isOffToggleable(){return!this.acroField.hasFlag(Mo.NoToggleToOff)}enableOffToggling(){this.acroField.setFlagTo(Mo.NoToggleToOff,!1)}disableOffToggling(){this.acroField.setFlagTo(Mo.NoToggleToOff,!0)}isMutuallyExclusive(){return!this.acroField.hasFlag(Mo.RadiosInUnison)}enableMutualExclusion(){this.acroField.setFlagTo(Mo.RadiosInUnison,!1)}disableMutualExclusion(){this.acroField.setFlagTo(Mo.RadiosInUnison,!0)}addOptionToPage(t,e,r){var n,i,o,s,a,c,l,h,d;Yn(t,"option",["string"]),Yn(e,"page",[[yp,"PDFPage"]]),zf(r);const u=this.createWidget({x:null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0,y:null!==(i=null==r?void 0:r.y)&&void 0!==i?i:0,width:null!==(o=null==r?void 0:r.width)&&void 0!==o?o: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:Ad(0,0,0),backgroundColor:null!==(c=null==r?void 0:r.backgroundColor)&&void 0!==c?c:Ad(1,1,1),borderColor:null!==(l=null==r?void 0:r.borderColor)&&void 0!==l?l:Ad(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:Cl(0),hidden:null==r?void 0:r.hidden,page:e.ref}),f=this.doc.context.register(u.dict),p=this.acroField.addWidgetWithOpt(f,Ji.fromText(t),!this.isMutuallyExclusive());u.setAppearanceState(Xi.of("Off")),this.updateWidgetAppearance(u,p),e.node.addAnnot(f)}needsAppearancesUpdate(){var t;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.getAppearanceState(),o=null===(t=n.getAppearances())||void 0===t?void 0:t.normal;if(!(o instanceof Yi))return!0;if(i&&!o.has(i))return!0}return!1}defaultUpdateAppearances(){this.updateAppearances()}updateAppearances(t){Jn(t,"provider",[Function]);const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.getOnValue();i&&this.updateWidgetAppearance(n,i,t)}}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Nf)(this,t));this.updateOnOffWidgetAppearance(t,e,n)}}Wf.of=(t,e,r)=>new Wf(t,e,r);class Hf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroSignature",[[Wo,"PDFAcroSignature"]]),this.acroField=t}needsAppearancesUpdate(){return!1}}Hf.of=(t,e,r)=>new Hf(t,e,r);class Kf extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroText",[[Ho,"PDFAcroText"]]),this.acroField=t}getText(){const t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new df(this.getName());return null==t?void 0:t.decodeText()}setText(t){Jn(t,"text",["string"]);const e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new ff(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(Ji.fromText(t)):this.acroField.removeValue()}getAlignment(){const t=this.acroField.getQuadding();return 0===t?gf.Left:1===t?gf.Center:2===t?gf.Right:gf.Left}setAlignment(t){Wn(t,"alignment",gf),this.markAsDirty(),this.acroField.setQuadding(t)}getMaxLength(){return this.acroField.getMaxLength()}setMaxLength(t){if($n(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{const e=this.getText();if(e&&e.length>t)throw new pf(e.length,t,this.getName());this.acroField.setMaxLength(t)}}removeMaxLength(){this.markAsDirty(),this.acroField.removeMaxLength()}setImage(t){const e=this.getAlignment(),r=e===gf.Center?Mf.Center:e===gf.Right?Mf.Right:Mf.Left,n=this.acroField.getWidgets();for(let e=0,i=n.length;e<i;e++){const i=n[e],o=this.createImageAppearanceStream(i,t,r);this.updateWidgetAppearances(i,{normal:o})}this.markAsClean()}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}isMultiline(){return this.acroField.hasFlag(zo.Multiline)}enableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(zo.Multiline,!0)}disableMultiline(){this.markAsDirty(),this.acroField.setFlagTo(zo.Multiline,!1)}isPassword(){return this.acroField.hasFlag(zo.Password)}enablePassword(){this.acroField.setFlagTo(zo.Password,!0)}disablePassword(){this.acroField.setFlagTo(zo.Password,!1)}isFileSelector(){return this.acroField.hasFlag(zo.FileSelect)}enableFileSelection(){this.acroField.setFlagTo(zo.FileSelect,!0)}disableFileSelection(){this.acroField.setFlagTo(zo.FileSelect,!1)}isSpellChecked(){return!this.acroField.hasFlag(zo.DoNotSpellCheck)}enableSpellChecking(){this.acroField.setFlagTo(zo.DoNotSpellCheck,!1)}disableSpellChecking(){this.acroField.setFlagTo(zo.DoNotSpellCheck,!0)}isScrollable(){return!this.acroField.hasFlag(zo.DoNotScroll)}enableScrolling(){this.acroField.setFlagTo(zo.DoNotScroll,!1)}disableScrolling(){this.acroField.setFlagTo(zo.DoNotScroll,!0)}isCombed(){return this.acroField.hasFlag(zo.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()}enableCombing(){if(void 0===this.getMaxLength()){const t="PDFTextFields must have a max length in order to be combed";console.warn(t)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(zo.Comb,!0)}disableCombing(){this.markAsDirty(),this.acroField.setFlagTo(zo.Comb,!1)}isRichFormatted(){return this.acroField.hasFlag(zo.RichText)}enableRichFormatting(){this.acroField.setFlagTo(zo.RichText,!0)}disableRichFormatting(){this.acroField.setFlagTo(zo.RichText,!1)}addToPage(t,e){var r,n,i,o,s,a,c;Yn(t,"page",[[yp,"PDFPage"]]),zf(e),e||(e={}),"textColor"in e||(e.textColor=Ad(0,0,0)),"backgroundColor"in e||(e.backgroundColor=Ad(1,1,1)),"borderColor"in e||(e.borderColor=Ad(0,0,0)),"borderWidth"in e||(e.borderWidth=1);const l=this.createWidget({x:null!==(r=e.x)&&void 0!==r?r:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(s=e.borderWidth)&&void 0!==s?s:0,rotate:null!==(a=e.rotate)&&void 0!==a?a:Cl(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h);const d=null!==(c=e.font)&&void 0!==c?c:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(l,d),t.node.addAnnot(h)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}this.markAsClean()}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Bf)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}var Gf;Kf.of=(t,e,r)=>new Kf(t,e,r),function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(Gf||(Gf={}));class Xf{constructor(t,e){this.embedDefaultFont=()=>this.doc.embedStandardFont(Gf.Helvetica),Yn(t,"acroForm",[[ns,"PDFAcroForm"]]),Yn(e,"doc",[[mp,"PDFDocument"]]),this.acroForm=t,this.doc=e,this.dirtyFields=new Set,this.defaultFontCache=oi.populatedBy(this.embedDefaultFont)}hasXFA(){return this.acroForm.dict.has(Xi.of("XFA"))}deleteXFA(){this.acroForm.dict.delete(Xi.of("XFA"))}getFields(){const t=this.acroForm.getAllFields(),e=[];for(let r=0,n=t.length;r<n;r++){const[n,i]=t[r],o=Zf(n,i,this.doc);o&&e.push(o)}return e}getFieldMaybe(t){Yn(t,"name",["string"]);const e=this.getFields();for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n.getName()===t)return n}}getField(t){Yn(t,"name",["string"]);const e=this.getFieldMaybe(t);if(e)return e;throw new of(t)}getButton(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof vp)return e;throw new sf(t,vp,e)}getCheckBox(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Vf)return e;throw new sf(t,Vf,e)}getDropdown(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof If)return e;throw new sf(t,If,e)}getOptionList(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Lf)return e;throw new sf(t,Lf,e)}getRadioGroup(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Wf)return e;throw new sf(t,Wf,e)}getSignature(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Hf)return e;throw new sf(t,Hf,e)}getTextField(t){Yn(t,"name",["string"]);const e=this.getField(t);if(e instanceof Kf)return e;throw new sf(t,Kf,e)}createButton(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Ko.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),vp.of(n,n.ref,this.doc)}createCheckBox(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Po.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Vf.of(n,n.ref,this.doc)}createDropdown(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Io.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),If.of(n,n.ref,this.doc)}createOptionList(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Xo.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Lf.of(n,n.ref,this.doc)}createRadioGroup(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Go.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Wf.of(n,n.ref,this.doc)}createTextField(t){Yn(t,"name",["string"]);const e=Yf(t),r=this.findOrCreateNonTerminals(e.nonTerminal),n=Ho.create(this.doc.context);return n.setPartialName(e.terminal),Jf(r,[n,n.ref],e.terminal),Kf.of(n,n.ref,this.doc)}flatten(t={updateFieldAppearances:!0}){t.updateFieldAppearances&&this.updateFieldAppearances();const e=this.getFields();for(let t=0,r=e.length;t<r;t++){const r=e[t],n=r.acroField.getWidgets();for(let t=0,e=n.length;t<e;t++)try{const e=n[t],i=this.findWidgetPage(e),o=this.findWidgetAppearanceRef(r,e),s=i.node.newXObject("FlatWidget",o),a=e.getRectangle(),c=[_l(),Ul(a.x,a.y),...Gu(Object.assign(Object.assign({},a),{rotation:0})),Dh(s),$l()].filter(Boolean);i.pushOperators(...c)}catch(t){console.error(t)}this.removeField(r)}}removeField(t){const e=t.acroField.getWidgets(),r=new Set;for(let n=0,i=e.length;n<i;n++)try{const i=e[n],o=this.findWidgetAppearanceRef(t,i),s=this.findWidgetPage(i);r.add(s),s.node.removeAnnot(o)}catch(t){console.error(t)}r.forEach((e=>e.node.removeAnnot(t.ref))),this.acroForm.removeField(t.acroField);const n=t.acroField.normalizedEntries().Kids,i=n.size();for(let t=0;t<i;t++){const e=n.get(t);e instanceof eo&&this.doc.context.delete(e)}this.doc.context.delete(t.ref)}updateFieldAppearances(t){Jn(t,"font",[[jf,"PDFFont"]]),t=null!=t?t:this.getDefaultFont();const e=this.getFields();for(let r=0,n=e.length;r<n;r++){const n=e[r];n.needsAppearancesUpdate()&&n.defaultUpdateAppearances(t)}}markFieldAsDirty(t){Jn(t,"fieldRef",[[eo,"PDFRef"]]),this.dirtyFields.add(t)}markFieldAsClean(t){Jn(t,"fieldRef",[[eo,"PDFRef"]]),this.dirtyFields.delete(t)}fieldIsDirty(t){return Jn(t,"fieldRef",[[eo,"PDFRef"]]),this.dirtyFields.has(t)}getDefaultFont(){return this.defaultFontCache.access()}findWidgetPage(t){const e=t.P();let r=this.doc.getPages().find((t=>t.ref===e));if(void 0===r){const e=this.doc.context.getObjectRef(t.dict);if(void 0===e)throw new Error("Could not find PDFRef for PDFObject");if(r=this.doc.findPageForAnnotationRef(e),void 0===r)throw new Error(`Could not find page for PDFRef ${e}`)}return r}findWidgetAppearanceRef(t,e){var r;let n=e.getNormalAppearance();if((t instanceof Vf||t instanceof Wf)&&(n instanceof eo&&(n=this.doc.context.lookup(n,Yi)),n instanceof Yi)){const e=t.acroField.getValue(),i=null!==(r=n.get(e))&&void 0!==r?r:n.get(Xi.of("Off"));i instanceof eo&&(n=i)}if(!(n instanceof eo)){const e=t.getName();throw new Error(`Failed to extract appearance ref for: ${e}`)}return n}findOrCreateNonTerminals(t){let e=[this.acroForm];for(let r=0,n=t.length;r<n;r++){const n=t[r];if(!n)throw new lf(n);const[i,o]=e,s=this.findNonTerminal(n,i);if(s)e=s;else{const t=Lo.create(this.doc.context);t.setPartialName(n),t.setParent(o);const r=this.doc.context.register(t.dict);i.addField(r),e=[t,r]}}return e}findNonTerminal(t,e){const r=e instanceof ns?this.acroForm.getFields():Zo(e.Kids());for(let e=0,n=r.length;e<n;e++){const[n,i]=r[e];if(n.getPartialName()===t){if(n instanceof Lo)return[n,i];throw new cf(t)}}}}Xf.of=(t,e)=>new Xf(t,e);const Zf=(t,e,r)=>t instanceof Ko?vp.of(t,e,r):t instanceof Po?Vf.of(t,e,r):t instanceof Io?If.of(t,e,r):t instanceof Xo?Lf.of(t,e,r):t instanceof Ho?Kf.of(t,e,r):t instanceof Go?Wf.of(t,e,r):t instanceof Wo?Hf.of(t,e,r):void 0,Yf=t=>{if(0===t.length)throw new Error("PDF field names must not be empty strings");const e=t.split(".");for(let r=0,n=e.length;r<n;r++)if(""===e[r])throw new Error(`Periods in PDF field names must be separated by at least one character: "${t}"`);return 1===e.length?{nonTerminal:[],terminal:e[0]}:{nonTerminal:e.slice(0,e.length-1),terminal:e[e.length-1]}},Jf=([t,e],[r,n],i)=>{const o=t.normalizedEntries(),s=Zo("Kids"in o?o.Kids:o.Fields);for(let t=0,e=s.length;t<e;t++)if(s[t][0].getPartialName()===i)throw new cf(i);t.addField(n),r.setParent(e)},Qf={"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 _f;!function(t){t[t.Fastest=1/0]="Fastest",t[t.Fast=1500]="Fast",t[t.Medium=500]="Medium",t[t.Slow=100]="Slow"}(_f||(_f={}));class $f{constructor(t,e,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=r}embed(){return po(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const t=yield this.embedder.embedIntoContext(this.doc.context,this.ref);this.doc.catalog.has(Xi.of("Names"))||this.doc.catalog.set(Xi.of("Names"),this.doc.context.obj({}));const e=this.doc.catalog.lookup(Xi.of("Names"),Yi);e.has(Xi.of("EmbeddedFiles"))||e.set(Xi.of("EmbeddedFiles"),this.doc.context.obj({}));const r=e.lookup(Xi.of("EmbeddedFiles"),Yi);r.has(Xi.of("Names"))||r.set(Xi.of("Names"),this.doc.context.obj([]));const n=r.lookup(Xi.of("Names"),Ui);n.push(Ji.fromText(this.embedder.fileName)),n.push(t),this.doc.catalog.has(Xi.of("AF"))||this.doc.catalog.set(Xi.of("AF"),this.doc.context.obj([]));this.doc.catalog.lookup(Xi.of("AF"),Ui).push(t),this.alreadyEmbedded=!0}}))}getEmbedder(){return this.embedder}}$f.of=(t,e,r)=>new $f(t,e,r);class tp{constructor(t,e,r){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=r}embed(){return po(this,void 0,void 0,(function*(){if(!this.alreadyEmbedded){const{catalog:t,context:e}=this.doc,r=yield this.embedder.embedIntoContext(this.doc.context,this.ref);t.has(Xi.of("Names"))||t.set(Xi.of("Names"),e.obj({}));const n=t.lookup(Xi.of("Names"),Yi);n.has(Xi.of("JavaScript"))||n.set(Xi.of("JavaScript"),e.obj({}));const i=n.lookup(Xi.of("JavaScript"),Yi);i.has(Xi.of("Names"))||i.set(Xi.of("Names"),e.obj([]));const o=i.lookup(Xi.of("Names"),Ui);o.push(Ji.fromText(this.embedder.scriptName)),o.push(r),this.alreadyEmbedded=!0}}))}}tp.of=(t,e,r)=>new tp(t,e,r);class ep{static for(t,e){return new ep(t,e)}constructor(t,e){this.script=t,this.scriptName=e}embedIntoContext(t,e){return po(this,void 0,void 0,(function*(){const r=t.obj({Type:"Action",S:"JavaScript",JS:Ji.fromText(this.script)});return e?(t.assign(e,r),e):t.register(r)}))}}class rp extends qs{constructor(t,e,r){super(r),this.stream=t,this.decrypt=e,this.nextChunk=null,this.initialized=!1}readBlock(){let t;if(this.initialized?t=this.nextChunk:(t=this.stream.getBytes(512),this.initialized=!0),!t||0===t.length)return void(this.eof=!0);this.nextChunk=this.stream.getBytes(512);const e=this.nextChunk&&this.nextChunk.length>0;t=(0,this.decrypt)(t,!e);const r=this.bufferLength,n=r+t.length;this.ensureBuffer(n).set(t,r),this.bufferLength=n}}class np{constructor(t){this.a=0,this.b=0;const e=new Uint8Array(256),r=t.length;for(let t=0;t<256;++t)e[t]=t;for(let n=0,i=0;n<256;++n){const o=e[n];i=i+o+t[n%r]&255,e[n]=e[i],e[i]=o}this.s=e}encryptBlock(t){let e=this.a,r=this.b;const n=this.s,i=t.length,o=new Uint8Array(i);for(let s=0;s<i;++s){e=e+1&255;const i=n[e];r=r+i&255;const a=n[r];n[e]=a,n[r]=i,o[s]=t[s]^n[i+a&255]}return this.a=e,this.b=r,o}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}}const ip=function(){const t=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]),e=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,i){let o=1732584193,s=-271733879,a=-1732584194,c=271733878;const l=i+72&-64,h=new Uint8Array(l);let d,u;for(d=0;d<i;++d)h[d]=r[n++];h[d++]=128;const f=l-8;for(;d<f;)h[d++]=0;h[d++]=i<<3&255,h[d++]=i>>5&255,h[d++]=i>>13&255,h[d++]=i>>21&255,h[d++]=i>>>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,i=o,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 o=g,s=i+r+e[u]+p[n]|0,a=t[u];g=f,f=l,l=l+(s<<a|s>>>32-a)|0,i=o}o=o+i|0,s=s+l|0,a=a+f|0,c=c+g|0}return new Uint8Array([255&o,o>>8&255,o>>16&255,o>>>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 op{constructor(t,e){this.high=0|t,this.low=0|e}and(t){this.high&=t.high,this.low&=t.low}xor(t){this.high^=t.high,this.low^=t.low}or(t){this.high|=t.high,this.low|=t.low}shiftRight(t){t>=32?(this.low=this.high>>>t-32|0,this.high=0):(this.low=this.low>>>t|this.high<<32-t,this.high=this.high>>>t|0)}shiftLeft(t){t>=32?(this.high=this.low<<t-32,this.low=0):(this.high=this.high<<t|this.low>>>32-t,this.low<<=t)}rotateRight(t){let e,r;32&t?(r=this.low,e=this.high):(e=this.low,r=this.high),t&=31,this.low=e>>>t|r<<32-t,this.high=r>>>t|e<<32-t}not(){this.high=~this.high,this.low=~this.low}add(t){const e=(this.low>>>0)+(t.low>>>0);let r=(this.high>>>0)+(t.high>>>0);e>4294967295&&(r+=1),this.low=0|e,this.high=0|r}copyTo(t,e){t[e]=this.high>>>24&255,t[e+1]=this.high>>16&255,t[e+2]=this.high>>8&255,t[e+3]=255&this.high,t[e+4]=this.low>>>24&255,t[e+5]=this.low>>16&255,t[e+6]=this.low>>8&255,t[e+7]=255&this.low}assign(t){this.high=t.high,this.low=t.low}}const sp=function(){function t(t,e){return t>>>e|t<<32-e}function e(t,e,r){return t&e^~t&r}function r(t,e,r){return t&e^t&r^e&r}function n(e){return t(e,2)^t(e,13)^t(e,22)}function i(e){return t(e,6)^t(e,11)^t(e,25)}function o(e){return t(e,7)^t(e,18)^e>>>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 k=y-8;for(;w<k;)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|(t(F=S[x-2],17)^t(F,19)^F>>>10)+S[x-7]+o(S[x-15])+S[x-16];let a,c,l=h,y=d,k=u,C=f,A=p,O=g,T=m,N=b;for(x=0;x<64;++x)a=N+i(A)+e(A,O,T)+s[x]+S[x],c=n(l)+r(l,y,k),N=T,T=O,O=A,A=C+a|0,C=k,k=y,y=l,l=a+c|0;h=h+l|0,d=d+y|0,u=u+k|0,f=f+C|0,p=p+A|0,g=g+O|0,m=m+T|0,b=b+N|0}var F;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])}}(),ap=function(){function t(t,e,r,n,i){t.assign(e),t.and(r),i.assign(e),i.not(),i.and(n),t.xor(i)}function e(t,e,r,n,i){t.assign(e),t.and(r),i.assign(e),i.and(n),t.xor(i),i.assign(r),i.and(n),t.xor(i)}function r(t,e,r){t.assign(e),t.rotateRight(28),r.assign(e),r.rotateRight(34),t.xor(r),r.assign(e),r.rotateRight(39),t.xor(r)}function n(t,e,r){t.assign(e),t.rotateRight(14),r.assign(e),r.rotateRight(18),t.xor(r),r.assign(e),r.rotateRight(41),t.xor(r)}function i(t,e,r){t.assign(e),t.rotateRight(1),r.assign(e),r.rotateRight(8),t.xor(r),r.assign(e),r.shiftRight(7),t.xor(r)}function o(t,e,r){t.assign(e),t.rotateRight(19),r.assign(e),r.rotateRight(61),t.xor(r),r.assign(e),r.shiftRight(6),t.xor(r)}const s=[new op(1116352408,3609767458),new op(1899447441,602891725),new op(3049323471,3964484399),new op(3921009573,2173295548),new op(961987163,4081628472),new op(1508970993,3053834265),new op(2453635748,2937671579),new op(2870763221,3664609560),new op(3624381080,2734883394),new op(310598401,1164996542),new op(607225278,1323610764),new op(1426881987,3590304994),new op(1925078388,4068182383),new op(2162078206,991336113),new op(2614888103,633803317),new op(3248222580,3479774868),new op(3835390401,2666613458),new op(4022224774,944711139),new op(264347078,2341262773),new op(604807628,2007800933),new op(770255983,1495990901),new op(1249150122,1856431235),new op(1555081692,3175218132),new op(1996064986,2198950837),new op(2554220882,3999719339),new op(2821834349,766784016),new op(2952996808,2566594879),new op(3210313671,3203337956),new op(3336571891,1034457026),new op(3584528711,2466948901),new op(113926993,3758326383),new op(338241895,168717936),new op(666307205,1188179964),new op(773529912,1546045734),new op(1294757372,1522805485),new op(1396182291,2643833823),new op(1695183700,2343527390),new op(1986661051,1014477480),new op(2177026350,1206759142),new op(2456956037,344077627),new op(2730485921,1290863460),new op(2820302411,3158454273),new op(3259730800,3505952657),new op(3345764771,106217008),new op(3516065817,3606008344),new op(3600352804,1432725776),new op(4094571909,1467031594),new op(275423344,851169720),new op(430227734,3100823752),new op(506948616,1363258195),new op(659060556,3750685593),new op(883997877,3785050280),new op(958139571,3318307427),new op(1322822218,3812723403),new op(1537002063,2003034995),new op(1747873779,3602036899),new op(1955562222,1575990012),new op(2024104815,1125592928),new op(2227730452,2716904306),new op(2361852424,442776044),new op(2428436474,593698344),new op(2756734187,3733110249),new op(3204031479,2999351573),new op(3329325298,3815920427),new op(3391569614,3928383900),new op(3515267271,566280711),new op(3940187606,3454069534),new op(4118630271,4000239992),new op(116418474,1914138554),new op(174292421,2731055270),new op(289380356,3203993006),new op(460393269,320620315),new op(685471733,587496836),new op(852142971,1086792851),new op(1017036298,365543100),new op(1126000580,2618297676),new op(1288033470,3409855158),new op(1501505948,4234509866),new op(1607167915,987167468),new op(1816402316,1246189591)];return function(a,c,l,h=!1){let d,u,f,p,g,m,b,y;h?(d=new op(3418070365,3238371032),u=new op(1654270250,914150663),f=new op(2438529370,812702999),p=new op(355462360,4144912697),g=new op(1731405415,4290775857),m=new op(2394180231,1750603025),b=new op(3675008525,1694076839),y=new op(1203062813,3204075428)):(d=new op(1779033703,4089235720),u=new op(3144134277,2227873595),f=new op(1013904242,4271175723),p=new op(2773480762,1595750129),g=new op(1359893119,2917565137),m=new op(2600822924,725511199),b=new op(528734635,4215389547),y=new op(1541459225,327033209));const v=128*Math.ceil((l+17)/128),w=new Uint8Array(v);let x,k;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 F=new Array(80);for(x=0;x<80;x++)F[x]=new op(0,0);let C=new op(0,0),A=new op(0,0),O=new op(0,0),T=new op(0,0),N=new op(0,0),D=new op(0,0),B=new op(0,0),R=new op(0,0);const E=new op(0,0),P=new op(0,0),j=new op(0,0),q=new op(0,0);let M,z;for(x=0;x<v;){for(k=0;k<16;++k)F[k].high=w[x]<<24|w[x+1]<<16|w[x+2]<<8|w[x+3],F[k].low=w[x+4]<<24|w[x+5]<<16|w[x+6]<<8|w[x+7],x+=8;for(k=16;k<80;++k)M=F[k],o(M,F[k-2],q),M.add(F[k-7]),i(j,F[k-15],q),M.add(j),M.add(F[k-16]);for(C.assign(d),A.assign(u),O.assign(f),T.assign(p),N.assign(g),D.assign(m),B.assign(b),R.assign(y),k=0;k<80;++k)E.assign(R),n(j,N,q),E.add(j),t(j,N,D,B,q),E.add(j),E.add(s[k]),E.add(F[k]),r(P,C,q),e(j,C,A,O,q),P.add(j),M=R,R=B,B=D,D=N,T.add(E),N=T,T=O,O=A,A=C,M.assign(E),M.add(P),C=M;d.add(C),u.add(A),f.add(O),p.add(T),g.add(N),m.add(D),b.add(B),y.add(R)}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 cp{decryptBlock(t){return t}encrypt(t){return t}}class lp{constructor(){if(this.constructor===lp)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 t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(t){throw new Error("Cannot call `_expandKey` on the base class")}_decrypt(t,e){let r,n,i;const o=new Uint8Array(16);o.set(t);for(let t=0,r=this._keySize;t<16;++t,++r)o[t]^=e[r];for(let t=this._cyclesOfRepetition-1;t>=1;--t){r=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=r,r=o[14],n=o[10],o[14]=o[6],o[10]=o[2],o[6]=r,o[2]=n,r=o[15],n=o[11],i=o[7],o[15]=o[3],o[11]=r,o[7]=n,o[3]=i;for(let t=0;t<16;++t)o[t]=this._inv_s[o[t]];for(let r=0,n=16*t;r<16;++r,++n)o[r]^=e[n];for(let t=0;t<16;t+=4){const e=this._mix[o[t]],n=this._mix[o[t+1]],i=this._mix[o[t+2]],s=this._mix[o[t+3]];r=e^n>>>8^n<<24^i>>>16^i<<16^s>>>24^s<<8,o[t]=r>>>24&255,o[t+1]=r>>16&255,o[t+2]=r>>8&255,o[t+3]=255&r}}r=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=r,r=o[14],n=o[10],o[14]=o[6],o[10]=o[2],o[6]=r,o[2]=n,r=o[15],n=o[11],i=o[7],o[15]=o[3],o[11]=r,o[7]=n,o[3]=i;for(let t=0;t<16;++t)o[t]=this._inv_s[o[t]],o[t]^=e[t];return o}_encrypt(t,e){const r=this._s;let n,i,o;const s=new Uint8Array(16);s.set(t);for(let t=0;t<16;++t)s[t]^=e[t];for(let t=1;t<this._cyclesOfRepetition;t++){for(let t=0;t<16;++t)s[t]=r[s[t]];o=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=o,o=s[2],i=s[6],s[2]=s[10],s[6]=s[14],s[10]=o,s[14]=i,o=s[3],i=s[7],n=s[11],s[3]=s[15],s[7]=o,s[11]=i,s[15]=n;for(let t=0;t<16;t+=4){const e=s[t+0],r=s[t+1],i=s[t+2],o=s[t+3];n=e^r^i^o,s[t+0]^=n^this._mixCol[e^r],s[t+1]^=n^this._mixCol[r^i],s[t+2]^=n^this._mixCol[i^o],s[t+3]^=n^this._mixCol[o^e]}for(let r=0,n=16*t;r<16;++r,++n)s[r]^=e[n]}for(let t=0;t<16;++t)s[t]=r[s[t]];o=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=o,o=s[2],i=s[6],s[2]=s[10],s[6]=s[14],s[10]=o,s[14]=i,o=s[3],i=s[7],n=s[11],s[3]=s[15],s[7]=o,s[11]=i,s[15]=n;for(let t=0,r=this._keySize;t<16;++t,++r)s[t]^=e[r];return s}_decryptBlock2(t,e){const r=t.length;let n=this.buffer,i=this.bufferPosition;const o=[];let s=this.iv;for(let e=0;e<r;++e){if(n[i]=t[e],++i,i<16)continue;const r=this._decrypt(n,this._key);for(let t=0;t<16;++t)r[t]^=s[t];s=n,o.push(r),n=new Uint8Array(16),i=0}if(this.buffer=n,this.bufferLength=i,this.iv=s,0===o.length)return new Uint8Array(0);let a=16*o.length;if(e){const t=o[o.length-1];let e=t[15];if(e<=16){for(let r=15,n=16-e;r>=n;--r)if(t[r]!==e){e=0;break}a-=e,o[o.length-1]=t.subarray(0,16-e)}}const c=new Uint8Array(a);for(let t=0,e=0,r=o.length;t<r;++t,e+=16)c.set(o[t],e);return c}decryptBlock(t,e,r){const n=t.length,i=this.buffer;let o=this.bufferPosition;if(r)this.iv=r;else{for(let e=0;o<16&&e<n;++e,++o)i[o]=t[e];if(o<16)return this.bufferLength=o,new Uint8Array(0);this.iv=i,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,e)}encrypt(t,e){const r=t.length;let n=this.buffer,i=this.bufferPosition;const o=[];e||(e=new Uint8Array(16));for(let s=0;s<r;++s){if(n[i]=t[s],++i,i<16)continue;for(let t=0;t<16;++t)n[t]^=e[t];const r=this._encrypt(n,this._key);e=r,o.push(r),n=new Uint8Array(16),i=0}if(this.buffer=n,this.bufferLength=i,this.iv=e,0===o.length)return new Uint8Array(0);const s=16*o.length,a=new Uint8Array(s);for(let t=0,e=0,r=o.length;t<r;++t,e+=16)a.set(o[t],e);return a}}class hp extends lp{constructor(t){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(t)}_expandKey(t){const e=this._s,r=this._rcon,n=new Uint8Array(176);n.set(t);for(let t=16,i=1;t<176;++i){let o=n[t-3],s=n[t-2],a=n[t-1],c=n[t-4];o=e[o],s=e[s],a=e[a],c=e[c],o^=r[i];for(let e=0;e<4;++e)n[t]=o^=n[t-16],t++,n[t]=s^=n[t-16],t++,n[t]=a^=n[t-16],t++,n[t]=c^=n[t-16],t++}return n}}class dp extends lp{constructor(t){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(t)}_expandKey(t){const e=this._s,r=new Uint8Array(240);r.set(t);let n=1,i=0,o=0,s=0,a=0;for(let t=32,c=1;t<240;++c){t%32==16?(i=e[i],o=e[o],s=e[s],a=e[a]):t%32==0&&(i=r[t-3],o=r[t-2],s=r[t-1],a=r[t-4],i=e[i],o=e[o],s=e[s],a=e[a],i^=n,(n<<=1)>=256&&(n=255&(27^n)));for(let e=0;e<4;++e)r[t]=i^=r[t-32],t++,r[t]=o^=r[t-32],t++,r[t]=s^=r[t-32],t++,r[t]=a^=r[t-32],t++}return r}}class up{checkOwnerPassword(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=sp(i,0,i.length);return q(o,n)}checkUserPassword(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=sp(n,0,n.length);return q(i,r)}getOwnerKey(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=sp(i,0,i.length);return new dp(o).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=sp(n,0,n.length);return new dp(i).decryptBlock(r,!1,new Uint8Array(16))}}class fp{calculatePDF20Hash(t,e,r){let n=sp(e,0,e.length).subarray(0,32),i=new Uint8Array([0]),o=0;for(;o<64||i[i.length-1]>o-32;){const e=t.length+n.length+r.length,l=new Uint8Array(e);let h=0;l.set(t,h),h+=t.length,l.set(n,h),h+=n.length,l.set(r,h);const d=new Uint8Array(64*e);for(let t=0,r=0;t<64;t++,r+=e)d.set(l,r);i=new hp(n.subarray(0,16)).encrypt(d,n.subarray(16,32));const u=i.slice(0,16).reduce(((t,e)=>t+e),0)%3;0===u?n=sp(i,0,i.length):1===u?(s=i,a=0,c=i.length,n=ap(s,a,c,!0)):2===u&&(n=ap(i,0,i.length)),o++}var s,a,c;return n.subarray(0,32)}hash(t,e,r){return this.calculatePDF20Hash(t,e,r)}checkOwnerPassword(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=this.calculatePDF20Hash(t,i,r);return q(o,n)}checkUserPassword(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=this.calculatePDF20Hash(t,n,new Uint8Array);return q(i,r)}getOwnerKey(t,e,r,n){const i=new Uint8Array(t.length+56);i.set(t,0),i.set(e,t.length),i.set(r,t.length+e.length);const o=this.calculatePDF20Hash(t,i,r);return new dp(o).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(t,e,r){const n=new Uint8Array(t.length+8);n.set(t,0),n.set(e,t.length);const i=this.calculatePDF20Hash(t,n,new Uint8Array);return new dp(i).decryptBlock(r,!1,new Uint8Array(16))}}class pp{constructor(t,e){this.StringCipherConstructor=t,this.StreamCipherConstructor=e}createStream(t,e){const r=this.StreamCipherConstructor();return new rp(t,(function(t,e){return r.decryptBlock(t,e)}),e)}decryptString(t){const e=this.StringCipherConstructor();let r=f(t);return r=e.decryptBlock(r,!0),E(r)}decryptBytes(t){return this.StringCipherConstructor().decryptBlock(t,!0)}encryptString(t){const e=this.StringCipherConstructor();if(e instanceof lp){const r=16-t.length%16;t+=String.fromCharCode(r).repeat(r);const n=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(n);else for(let t=0;t<16;t++)n[t]=Math.floor(256*Math.random());let i=f(t);i=e.encrypt(i,n);const o=new Uint8Array(16+i.length);return o.set(n),o.set(i,16),E(o)}let r=f(t);return r=e.encrypt(r),E(r)}}class gp{constructor(t,e,r){var n,i;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=Xi.of("Identity");const o=t.get(Xi.of("Filter"));if("/Standard"!==o.asString())throw new Error("unknown encryption method");this.filterName=o.asString(),this.dict=t;const s=t.get(Xi.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=t.get(Xi.of("Length")))||void 0===n?void 0:n.asNumber();if(!a)if(s<=3)a=40;else{const e=t.get(Xi.of("CF")),r=t.get(Xi.of("StmF"));if(e instanceof Yi&&r instanceof Xi){e.suppressEncryption=!0;const t=e.get(Xi.of(r.asString()));let n=null;t&&(n=t.get(Xi.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=t.get(Xi.of("O")).asBytes(),l=t.get(Xi.of("U")).asBytes(),h=c.subarray(0,32),d=l.subarray(0,32),u=t.get(Xi.of("P")).asNumber(),p=t.get(Xi.of("R")).asNumber(),g=(4===s||5===s)&&!1!==(null===(i=t.get(Xi.of("EncryptMetadata")))||void 0===i?void 0:i.asBoolean());let m,b;if(this.encryptMetadata=g,r){if(6===p)try{r=unescape(encodeURIComponent(r))}catch(t){console.warn("CipherTransformFactory: Unable to convert UTF8 encoded password.")}m=f(r)}if(5!==s)b=this.prepareKeyData(e,m,h,d,u,p,a,g);else{const e=c.subarray(32,40),r=c.subarray(40,48),n=l.subarray(0,48),i=l.subarray(32,40),o=l.subarray(40,48),s=t.get(Xi.of("OE")).asBytes(),a=t.get(Xi.of("UE")).asBytes(),u=t.get(Xi.of("Perms")).asBytes();b=this.createEncryptionKey20(p,m,h,e,r,n,d,i,o,s,a,u)}if(!b&&!r)throw new Error("NEEDS PASSWORD");if(!b&&r){const t=this.decodeUserPassword(m,h,p,a);b=this.prepareKeyData(e,t,h,d,u,p,a,g)}if(!b)throw new Error("Password incorrect");if(this.encryptionKey=b,s>=4){const e=t.get(Xi.of("CF"));e instanceof Yi&&(e.suppressEncryption=!0),this.cf=e,this.stmf=t.get(Xi.of("StmF"))||this.identityName,this.strf=t.get(Xi.of("StrF"))||this.identityName,this.eff=t.get(Xi.of("EFF"))||this.stmf}}createCipherTransform(t,e){if(4===this.algorithm||5===this.algorithm)return new pp(this.buildCipherConstructor(this.cf,this.strf,t,e,this.encryptionKey),this.buildCipherConstructor(this.cf,this.stmf,t,e,this.encryptionKey));const r=this.buildObjectKey(t,e,this.encryptionKey,!1),n=function(){return new np(r)};return new pp(n,n)}createEncryptionKey20(t,e,r,n,i,o,s,a,c,l,h,d){if(e){const t=Math.min(127,e.length);e=e.subarray(0,t)}else e=new Uint8Array;let u;return u=6===t?new fp:new up,u.checkUserPassword(e,a,s)?u.getUserKey(e,c,h):e.length&&u.checkOwnerPassword(e,n,o,r)?u.getOwnerKey(e,i,o,l):null}prepareKeyData(t,e,r,n,i,o,s,a){const c=40+r.length+t.length,l=new Uint8Array(c);let h,d,u=0;if(e)for(d=Math.min(32,e.length);u<d;++u)l[u]=e[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&i,l[u++]=i>>8&255,l[u++]=i>>16&255,l[u++]=i>>>24&255,h=0,d=t.length;h<d;++h)l[u++]=t[h];o>=4&&!a&&(l[u++]=255,l[u++]=255,l[u++]=255,l[u++]=255);let f=ip(l,0,u);const p=s>>3;if(o>=3)for(h=0;h<50;++h)f=ip(f,0,p);const g=f.subarray(0,p);let m,b;if(o>=3){for(u=0;u<32;++u)l[u]=this.defaultPasswordBytes[u];for(h=0,d=t.length;h<d;++h)l[u++]=t[h];m=new np(g),b=m.encryptBlock(ip(l,0,u)),d=g.length;const e=new Uint8Array(d);for(h=1;h<=19;++h){for(let t=0;t<d;++t)e[t]=g[t]^h;m=new np(e),b=m.encryptBlock(b)}for(h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null}else for(m=new np(g),b=m.encryptBlock(this.defaultPasswordBytes),h=0,d=b.length;h<d;++h)if(n[h]!==b[h])return null;return g}decodeUserPassword(t,e,r,n){const i=new Uint8Array(32);let o=0;const s=Math.min(32,t.length);for(;o<s;++o)i[o]=t[o];let a=0;for(;o<32;)i[o++]=this.defaultPasswordBytes[a++];let c=ip(i,0,o);const l=n>>3;if(r>=3)for(a=0;a<50;++a)c=ip(c,0,c.length);let h,d;if(r>=3){d=e;const t=new Uint8Array(l);for(a=19;a>=0;a--){for(let e=0;e<l;++e)t[e]=c[e]^a;h=new np(t),d=h.encryptBlock(d)}}else h=new np(c.subarray(0,l)),d=h.encryptBlock(e);return d}buildObjectKey(t,e,r,n=!1){const i=new Uint8Array(r.length+9),o=r.length;let s;for(s=0;s<o;++s)i[s]=r[s];i[s++]=255&t,i[s++]=t>>8&255,i[s++]=t>>16&255,i[s++]=255&e,i[s++]=e>>8&255,n&&(i[s++]=115,i[s++]=65,i[s++]=108,i[s++]=84);return ip(i,0,s).subarray(0,Math.min(r.length+5,16))}buildCipherConstructor(t,e,r,n,i){if(!(e instanceof Xi))throw new Error("Invalid crypt filter name.");const o=t.get(Xi.of(e.asString().replace("/","")));let s;if(null!=o&&(s=o.get(Xi.of("CFM"))),!s||"/None"===s.asString())return function(){return new cp};if("/V2"===s.asString())return()=>new np(this.buildObjectKey(r,n,i,!1));if("/AESV2"===s.asString())return()=>new hp(this.buildObjectKey(r,n,i,!0));if("/AESV3"===s.asString())return()=>new dp(i);throw new Error("Unknown crypto method")}}class mp{static load(t,e={}){return po(this,void 0,void 0,(function*(){const{ignoreEncryption:r=!1,parseSpeed:n=_f.Slow,throwOnInvalidObject:i=!1,warnOnInvalidObjects:o=!1,updateMetadata:s=!0,capNumbers:a=!1,password:c,forIncrementalUpdate:l=!1,preserveObjectsVersions:h=!1}=e;Yn(t,"pdf",["string",Uint8Array,ArrayBuffer]),Yn(r,"ignoreEncryption",["boolean"]),Yn(n,"parseSpeed",["number"]),Yn(i,"throwOnInvalidObject",["boolean"]),Yn(o,"warnOnInvalidObjects",["boolean"]),Yn(c,"password",["string","undefined"]),Yn(l,"forIncrementalUpdate",["boolean"]),Yn(h,"preserveObjectsVersions",["boolean"]);const d=L(t),u=yield fa.forBytesWithOptions(d,n,i,void 0,a,void 0,l,h).parseDocument();if(u.lookup(u.trailerInfo.Encrypt)&&void 0!==c){const t=u.lookup(u.trailerInfo.ID,Ui),e=u.lookup(u.trailerInfo.Encrypt,Yi),r=yield fa.forBytesWithOptions(d,n,i,o,a,new gp(e,t.get(0).asBytes(),c),l,h).parseDocument(),f=new mp(r,!0,s);return l&&f.takeSnapshot(),f}{const t=new mp(u,r,s);return l&&t.takeSnapshot(),t}}))}static create(t={}){return po(this,void 0,void 0,(function*(){const{updateMetadata:e=!0}=t,r=ho.create(),n=ds.withContext(r),i=r.register(n),o=hs.withContextAndPages(r,i);return r.trailerInfo.Root=r.register(o),new mp(r,!1,e)}))}constructor(t,e,r){if(this.defaultWordBreaks=[" "],this.computePages=()=>{const t=[];return this.catalog.Pages().traverse(((e,r)=>{if(e instanceof uo){let n=this.pageMap.get(e);n||(n=yp.of(e,r,this),this.pageMap.set(e,n)),t.push(n)}})),t},this.getOrCreateForm=()=>{const t=this.catalog.getOrCreateAcroForm();return Xf.of(t,this)},Yn(t,"context",[[ho,"PDFContext"]]),Yn(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),t.lookup(t.trailerInfo.Encrypt)&&t.isDecrypted&&delete t.trailerInfo.Encrypt,this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=oi.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=oi.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new tf;r&&this.updateInfoDict()}registerFontkit(t){this.fontkit=t}getForm(){const t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t}getTitle(){const t=this.getInfoDict().lookup(Xi.Title);if(t)return bp(t),t.decodeText()}getAuthor(){const t=this.getInfoDict().lookup(Xi.Author);if(t)return bp(t),t.decodeText()}getSubject(){const t=this.getInfoDict().lookup(Xi.Subject);if(t)return bp(t),t.decodeText()}getKeywords(){const t=this.getInfoDict().lookup(Xi.Keywords);if(t)return bp(t),t.decodeText()}getCreator(){const t=this.getInfoDict().lookup(Xi.Creator);if(t)return bp(t),t.decodeText()}getProducer(){const t=this.getInfoDict().lookup(Xi.Producer);if(t)return bp(t),t.decodeText()}getLanguage(){const t=this.catalog.get(Xi.of("Lang"));if(t)return bp(t),t.decodeText()}getCreationDate(){const t=this.getInfoDict().lookup(Xi.CreationDate);if(t)return bp(t),t.decodeDate()}getModificationDate(){const t=this.getInfoDict().lookup(Xi.ModDate);if(t)return bp(t),t.decodeDate()}setTitle(t,e){Yn(t,"title",["string"]);const r=Xi.of("Title");if(this.getInfoDict().set(r,Ji.fromText(t)),null==e?void 0:e.showInWindowTitleBar){this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)}}setAuthor(t){Yn(t,"author",["string"]);const e=Xi.of("Author");this.getInfoDict().set(e,Ji.fromText(t))}setSubject(t){Yn(t,"author",["string"]);const e=Xi.of("Subject");this.getInfoDict().set(e,Ji.fromText(t))}setKeywords(t){Yn(t,"keywords",[Array]);const e=Xi.of("Keywords");this.getInfoDict().set(e,Ji.fromText(t.join(" ")))}setCreator(t){Yn(t,"creator",["string"]);const e=Xi.of("Creator");this.getInfoDict().set(e,Ji.fromText(t))}setProducer(t){Yn(t,"creator",["string"]);const e=Xi.of("Producer");this.getInfoDict().set(e,Ji.fromText(t))}setLanguage(t){Yn(t,"language",["string"]);const e=Xi.of("Lang");this.catalog.set(e,ro.of(t))}setCreationDate(t){Yn(t,"creationDate",[[Date,"Date"]]);const e=Xi.of("CreationDate");this.getInfoDict().set(e,ro.fromDate(t))}setModificationDate(t){Yn(t,"modificationDate",[[Date,"Date"]]);const e=Xi.of("ModDate");this.getInfoDict().set(e,ro.fromDate(t))}getPageCount(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount}getPages(){return this.pageCache.access()}getPage(t){const e=this.getPages();return _n(t,"index",0,e.length-1),e[t]}getPageIndices(){return U(0,this.getPageCount())}removePage(t){const e=this.getPageCount();if(0===this.pageCount)throw new nf;_n(t,"index",0,e-1);const r=this.getPage(t);this.catalog.removeLeafNode(t),this.pageCount=e-1,this.context.delete(r.ref)}addPage(t){return Yn(t,"page",["undefined",[yp,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)}insertPage(t,e){const r=this.getPageCount();if(_n(t,"index",0,r),Yn(e,"page",["undefined",[yp,"PDFPage"],Array]),!e||Array.isArray(e)){const t=Array.isArray(e)?e:Qf.A4;(e=yp.create(this)).setSize(...t)}else if(e.doc!==this)throw new rf;const n=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(n),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=r+1,e}copyPages(t,e){return po(this,void 0,void 0,(function*(){Yn(t,"srcDoc",[[mp,"PDFDocument"]]),Yn(e,"indices",[Array]),yield t.flush();const r=fo.for(t.context,this.context),n=t.getPages(),i=e.map((t=>n[t])).map((t=>po(this,void 0,void 0,(function*(){return r.copy(t.node)})))).map((t=>t.then((t=>yp.of(t,this.context.register(t),this)))));return Promise.all(i)}))}copy(){return po(this,void 0,void 0,(function*(){const t=yield mp.create(),e=yield t.copyPages(this,this.getPageIndices());for(let r=0,n=e.length;r<n;r++)t.addPage(e[r]);return void 0!==this.getAuthor()&&t.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&t.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&t.setCreator(this.getCreator()),void 0!==this.getLanguage()&&t.setLanguage(this.getLanguage()),void 0!==this.getModificationDate()&&t.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&t.setProducer(this.getProducer()),void 0!==this.getSubject()&&t.setSubject(this.getSubject()),void 0!==this.getTitle()&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,t}))}addJavaScript(t,e){Yn(t,"name",["string"]),Yn(e,"script",["string"]);const r=ep.for(e,t),n=this.context.nextRef(),i=tp.of(n,this,r);this.javaScripts.push(i)}attach(t,e,r={}){return po(this,void 0,void 0,(function*(){Yn(t,"attachment",["string",Uint8Array,ArrayBuffer]),Yn(e,"name",["string"]),Jn(r.mimeType,"mimeType",["string"]),Jn(r.description,"description",["string"]),Jn(r.creationDate,"options.creationDate",[Date]),Jn(r.modificationDate,"options.modificationDate",[Date]),Hn(r.afRelationship,"options.afRelationship",xs);const n=L(t),i=ks.for(n,e,r),o=this.context.nextRef(),s=$f.of(o,this,i);this.embeddedFiles.push(s)}))}getRawAttachments(){if(!this.catalog.has(Xi.of("Names")))return[];const t=this.catalog.lookup(Xi.of("Names"),Yi);if(!t.has(Xi.of("EmbeddedFiles")))return[];const e=t.lookup(Xi.of("EmbeddedFiles"),Yi);if(!e.has(Xi.of("Names")))return[];const r=e.lookup(Xi.of("Names"),Ui),n=[];for(let t=0,e=r.size();t<e;t+=2){const e=r.lookup(t),i=r.lookup(t+1,Yi);n.push({fileName:e,fileSpec:i})}return n}getSavedAttachments(){return this.getRawAttachments().flatMap((({fileName:t,fileSpec:e})=>{const r=e.lookup(Xi.of("EF"));if(!(r instanceof Yi))return[];const n=r.lookup(Xi.of("F"));if(!(n instanceof Qi))return[];const i=e.lookup(Xi.of("AFRelationship")),o=i instanceof Xi?i.toString().slice(1):i instanceof ro?i.decodeText():void 0,s=n.dict,a=s.lookup(Xi.of("Subtype")),c=a instanceof Xi?a.toString().slice(1):a instanceof ro?a.decodeText():void 0,l=s.lookup(Xi.of("Params"),Yi);let h,d;if(l instanceof Yi){const t=l.lookup(Xi.of("CreationDate")),e=l.lookup(Xi.of("ModDate"));t instanceof ro&&(h=t.decodeDate()),e instanceof ro&&(d=e.decodeDate())}const u=e.lookup(Xi.of("Desc")).decodeText();return[{name:t.decodeText(),data:Ys(n).decode(),mimeType:null==c?void 0:c.replace(/#([0-9A-Fa-f]{2})/g,((t,e)=>String.fromCharCode(parseInt(e,16)))),afRelationship:o,description:u,creationDate:h,modificationDate:d}]}))}getUnsavedAttachments(){return this.embeddedFiles.map((t=>{const e=t.getEmbedder();return{name:e.fileName,data:e.getFileData(),description:e.options.description,mimeType:e.options.mimeType,afRelationship:e.options.afRelationship,creationDate:e.options.creationDate,modificationDate:e.options.modificationDate}}))}getAttachments(){return[...this.getSavedAttachments(),...this.getUnsavedAttachments()]}embedFont(t,e={}){return po(this,void 0,void 0,(function*(){const{subset:r=!1,customName:n,features:i}=e;let o;if(Yn(t,"font",["string",Uint8Array,ArrayBuffer]),Yn(r,"subset",["boolean"]),Mn(t))o=fs.for(t,n);else{if(!I(t))throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");{const e=L(t),s=this.assertFontkit();o=r?yield ws.for(s,e,n,i):yield vs.for(s,e,n,i)}}const s=this.context.nextRef(),a=jf.of(s,this,o);return this.fonts.push(a),a}))}embedStandardFont(t,e){if(Yn(t,"font",["string"]),!Mn(t))throw new TypeError("`font` must be one of type `StandardFonts`");const r=fs.for(t,e),n=this.context.nextRef(),i=jf.of(n,this,r);return this.fonts.push(i),i}embedJpg(t){return po(this,void 0,void 0,(function*(){Yn(t,"jpg",["string",Uint8Array,ArrayBuffer]);const e=L(t),r=yield As.for(e),n=this.context.nextRef(),i=qf.of(n,this,r);return this.images.push(i),i}))}embedPng(t){return po(this,void 0,void 0,(function*(){Yn(t,"png",["string",Uint8Array,ArrayBuffer]);const e=L(t),r=yield Es.for(e),n=this.context.nextRef(),i=qf.of(n,this,r);return this.images.push(i),i}))}embedSvg(t){return po(this,void 0,void 0,(function*(){if(!t)return new uu(t);const e=Kd.parse(t),r=t=>"image"===t.tagName?[t]:t.childNodes.map((t=>t.nodeType===Kd.NodeType.ELEMENT_NODE?r(t):[])).flat(),n=r(e),i={};return yield Promise.all(n.map((t=>po(this,void 0,void 0,(function*(){var e;const r=null!==(e=t.attributes.href)&&void 0!==e?e:t.attributes["xlink:href"];if(!r||i[r])return;const n=r.match(/\.png(\?|$)|^data:image\/png;base64/gim)?yield this.embedPng(r):yield this.embedJpg(r);i[r]=n}))))),new uu(t,i)}))}embedPdf(t,e=[0]){return po(this,void 0,void 0,(function*(){Yn(t,"pdf",["string",Uint8Array,ArrayBuffer,[mp,"PDFDocument"]]),Yn(e,"indices",[Array]);const r=t instanceof mp?t:yield mp.load(t),n=V(r.getPages(),e);return this.embedPages(n)}))}embedPage(t,e,r){return po(this,void 0,void 0,(function*(){Yn(t,"page",[[yp,"PDFPage"]]);const[n]=yield this.embedPages([t],[e],[r]);return n}))}embedPages(t,e=[],r=[]){return po(this,void 0,void 0,(function*(){if(0===t.length)return[];for(let e=0,r=t.length-1;e<r;e++){const r=t[e],n=t[e+1];if(r.node.context!==n.node.context)throw new pi}const n=t[0].node.context,i=n===this.context?t=>t:fo.for(n,this.context).copy,o=new Array(t.length);for(let n=0,s=t.length;n<s;n++){const s=i(t[n].node),a=e[n],c=r[n],l=yield Js.for(s,a,c),h=this.context.nextRef();o[n]=Pf.of(h,this,l)}return this.embeddedPages.push(...o),o}))}encrypt(t){this.context.security=_c.create(this.context,t).encrypt()}flush(){return po(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(t={}){return po(this,void 0,void 0,(function*(){const e=this.context.header.getVersionString().split("."),r=t.rewrite||Number(e[0])>1||Number(e[1])>=5,{useObjectStreams:n=r,objectsPerTick:i=50,rewrite:o=!1}=t;Yn(n,"useObjectStreams",["boolean"]),Yn(i,"objectsPerTick",["number"]),Yn(o,"rewrite",["boolean"]);const s=!o&&this.context.pdfFileDetails.originalBytes&&this.context.snapshot;s&&(t.addDefaultPage=!1,t.updateFieldAppearances=!1),yield this.prepareForSave(t);const a=n?us:ko;if(s){const t=yield a.forContextWithSnapshot(this.context,i,this.context.snapshot).serializeToBuffer(),e=new Uint8Array(this.context.pdfFileDetails.originalBytes.byteLength+t.byteLength);return e.set(this.context.pdfFileDetails.originalBytes),e.set(t,this.context.pdfFileDetails.originalBytes.byteLength),e}return a.forContext(this.context,i).serializeToBuffer()}))}saveIncremental(t,e={}){return po(this,void 0,void 0,(function*(){const r=this.context.header.getVersionString().split("."),n=Number(r[0])>1||Number(r[1])>=5,{objectsPerTick:i=50}=e;Yn(i,"objectsPerTick",["number"]);const o=Object.assign(Object.assign({useObjectStreams:n},e),{addDefaultPage:!1,updateFieldAppearances:!1});yield this.prepareForSave(o);return(o.useObjectStreams?us:ko).forContextWithSnapshot(this.context,i,t).serializeToBuffer()}))}saveAsBase64(t={}){return po(this,void 0,void 0,(function*(){const{dataUri:e=!1}=t,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["dataUri"]);Yn(e,"dataUri",["boolean"]);const i=yield this.save(n),o=r(i);return e?`data:application/pdf;base64,${o}`:o}))}findPageForAnnotationRef(t){const e=this.getPages();for(let r=0,n=e.length;r<n;r++){const n=e[r],i=n.node.Annots();if(void 0!==(null==i?void 0:i.indexOf(t)))return n}}takeSnapshot(){const t=new bo(this.context.largestObjectNumber,[],this.context.pdfFileDetails.pdfSize,this.context.pdfFileDetails.prevStartXRef,this.context);return!this.context.snapshot&&this.context.pdfFileDetails.originalBytes&&(this.context.snapshot=t,this.catalog.registerChange()),t}getChangedObjects(t=0){if(!this.context.preserveObjectsVersions)return[];t<0&&(t=0);const e=this.context.xrefs.length-t-1,r=this.context.listXrefEntries(e);if(!r.length)return[];const n=new Map;for(const t of r){const e=t.ref;n.set(e,{ref:e,actual:t.deleted?void 0:this.context.lookup(e),previous:this.context.getObjectVersions(e)})}if(!t)return Array.from(n.entries()).map((t=>t[1]));for(;t;){t-=1;const e=this.context.xrefs.length-t-1,r=this.context.listXrefEntries(e);for(const t of r){const e=n.get(t.ref);e&&e.actual&&(e.actual=e.previous[0],e.previous=e.previous.slice(1))}}return Array.from(n.entries()).map((t=>t[1])).filter((t=>t.actual||t.previous.length))}prepareForSave(t){return po(this,void 0,void 0,(function*(){const{addDefaultPage:e=!0,updateFieldAppearances:r=!0}=t;if(Yn(e,"addDefaultPage",["boolean"]),Yn(r,"updateFieldAppearances",["boolean"]),e&&0===this.getPageCount()&&this.addPage(),r){const t=this.formCache.getValue();t&&t.updateFieldAppearances()}yield this.flush()}))}embedAll(t){return po(this,void 0,void 0,(function*(){for(let e=0,r=t.length;e<r;e++)yield t[e].embed()}))}updateInfoDict(){const t="pdf-lib (https://github.com/Hopding/pdf-lib)",e=new Date,r=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),r.get(Xi.of("Creator"))||this.setCreator(t),r.get(Xi.of("CreationDate"))||this.setCreationDate(e)}getInfoDict(){const t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof Yi)return t;const e=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(e),e}assertFontkit(){if(!this.fontkit)throw new ef;return this.fontkit}}function bp(t){if(!(t instanceof Ji||t instanceof ro))throw new ci([Ji,ro],t)}class yp{constructor(t,e,r){this.fontSize=24,this.fontColor=Ad(0,0,0),this.lineHeight=24,this.x=0,this.y=0,Yn(t,"leafNode",[[uo,"PDFPageLeaf"]]),Yn(e,"ref",[[eo,"PDFRef"]]),Yn(r,"doc",[[mp,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=r}setRotation(t){const e=Nl(t);ti(e,"degreesAngle",90),this.node.set(Xi.of("Rotate"),this.doc.context.obj(e))}getRotation(){const t=this.node.Rotate();return Cl(t?t.asNumber():0)}setSize(t,e){Yn(t,"width",["number"]),Yn(e,"height",["number"]);const r=this.getMediaBox();this.setMediaBox(r.x,r.y,t,e);const n=this.getCropBox(),i=this.getBleedBox(),o=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),c=this.node.BleedBox(),l=this.node.TrimBox(),h=this.node.ArtBox();a&&zn(n,r)&&this.setCropBox(r.x,r.y,t,e),c&&zn(i,r)&&this.setBleedBox(r.x,r.y,t,e),l&&zn(o,r)&&this.setTrimBox(r.x,r.y,t,e),h&&zn(s,r)&&this.setArtBox(r.x,r.y,t,e)}setWidth(t){Yn(t,"width",["number"]),this.setSize(t,this.getSize().height)}setHeight(t){Yn(t,"height",["number"]),this.setSize(this.getSize().width,t)}setMediaBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.MediaBox,i)}setCropBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.CropBox,i)}setBleedBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.BleedBox,i)}setTrimBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.TrimBox,i)}setArtBox(t,e,r,n){Yn(t,"x",["number"]),Yn(e,"y",["number"]),Yn(r,"width",["number"]),Yn(n,"height",["number"]);const i=this.doc.context.obj([t,e,t+r,e+n]);this.node.set(Xi.ArtBox,i)}getSize(){const{width:t,height:e}=this.getMediaBox();return{width:t,height:e}}getWidth(){return this.getSize().width}getHeight(){return this.getSize().height}getMediaBox(){return this.node.MediaBox().asRectangle()}getCropBox(){var t;const e=this.node.CropBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getMediaBox()}getBleedBox(){var t;const e=this.node.BleedBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()}getTrimBox(){var t;const e=this.node.TrimBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()}getArtBox(){var t;const e=this.node.ArtBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()}translateContent(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(_l(),Ul(t,e)),n=this.doc.context.register(r),i=this.createContentStream($l()),o=this.doc.context.register(i);this.node.wrapContentStreams(n,o)}scale(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)}scaleContent(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.node.normalize(),this.getContentStream();const r=this.createContentStream(_l(),Vl(t,e)),n=this.doc.context.register(r),i=this.createContentStream($l()),o=this.doc.context.register(i);this.node.wrapContentStreams(n,o)}scaleAnnotations(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]);const r=this.node.Annots();if(r)for(let n=0;n<r.size();n++){const i=r.lookup(n);i instanceof Yi&&this.scaleAnnot(i,t,e)}}resetPosition(){this.getContentStream(!1),this.x=0,this.y=0}setFont(t){Yn(t,"font",[[jf,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)}setFontSize(t){Yn(t,"fontSize",["number"]),this.fontSize=t}setFontColor(t){Yn(t,"fontColor",[[Object,"Color"]]),this.fontColor=t}setLineHeight(t){Yn(t,"lineHeight",["number"]),this.lineHeight=t}getPosition(){return{x:this.x,y:this.y}}getX(){return this.x}getY(){return this.y}moveTo(t,e){Yn(t,"x",["number"]),Yn(e,"y",["number"]),this.x=t,this.y=e}moveDown(t){Yn(t,"yDecrease",["number"]),this.y-=t}moveUp(t){Yn(t,"yIncrease",["number"]),this.y+=t}moveLeft(t){Yn(t,"xDecrease",["number"]),this.x-=t}moveRight(t){Yn(t,"xIncrease",["number"]),this.x+=t}pushOperators(...t){Qn(t,"operator",[[no,"PDFOperator"]]);this.getContentStream().push(...t)}drawText(t,e={}){var r,n,i,o,s,a,c;Yn(t,"text",["string"]),Jn(e.color,"options.color",[[Object,"Color"]]),$n(e.opacity,"opacity.opacity",0,1),Jn(e.font,"options.font",[[jf,"PDFFont"]]),Jn(e.size,"options.size",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.lineHeight,"options.lineHeight",["number"]),Jn(e.maxWidth,"options.maxWidth",["number"]),Jn(e.wordBreaks,"options.wordBreaks",[Array]),Hn(e.blendMode,"options.blendMode",nu),Jn(e.strokeColor,"options.strokeColor",[[Object,"Color"]]),Jn(e.strokeWidth,"options.strokeWidth",["number"]),Jn(e.renderMode,"options.renderMode",["number"]);const{oldFont:l,newFont:h,newFontKey:d}=this.setOrEmbedFont(e.font),u=e.size||this.fontSize,f=e.wordBreaks||this.doc.defaultWordBreaks,p=void 0===e.maxWidth?x(b(t)):C(t,f,e.maxWidth,(t=>h.widthOfTextAtSize(t,u))),g=new Array(p.length);for(let t=0,e=p.length;t<e;t++)g[t]=h.encodeText(p[t]);const m=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode});this.getContentStream().push(...Mu(g,{color:null!==(r=e.color)&&void 0!==r?r:this.fontColor,font:d,size:u,rotate:null!==(n=e.rotate)&&void 0!==n?n:Cl(0),xSkew:null!==(i=e.xSkew)&&void 0!==i?i:Cl(0),ySkew:null!==(o=e.ySkew)&&void 0!==o?o:Cl(0),x:null!==(s=e.x)&&void 0!==s?s:this.x,y:null!==(a=e.y)&&void 0!==a?a:this.y,lineHeight:null!==(c=e.lineHeight)&&void 0!==c?c:this.lineHeight,graphicsState:m,matrix:e.matrix,clipSpaces:e.clipSpaces,strokeColor:e.strokeColor,strokeWidth:e.strokeWidth,renderMode:e.renderMode})),e.font&&(l?this.setFont(l):this.resetFont())}drawImage(t,e={}){var r,n,i,o,s,a,c;Yn(t,"image",[[qf,"PDFImage"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.width,"options.width",["number"]),Jn(e.height,"options.height",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),$n(e.opacity,"opacity.opacity",0,1),Hn(e.blendMode,"options.blendMode",nu);const l=this.node.newXObject("Image",t.ref),h=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode});this.getContentStream().push(...zu(l,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,width:null!==(i=e.width)&&void 0!==i?i:t.size().width,height:null!==(o=e.height)&&void 0!==o?o:t.size().height,rotate:null!==(s=e.rotate)&&void 0!==s?s:Cl(0),xSkew:null!==(a=e.xSkew)&&void 0!==a?a:Cl(0),ySkew:null!==(c=e.ySkew)&&void 0!==c?c:Cl(0),graphicsState:h,matrix:e.matrix,clipSpaces:e.clipSpaces}))}drawPage(t,e={}){var r,n,i,o,s;Yn(t,"embeddedPage",[[Pf,"PDFEmbeddedPage"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.xScale,"options.xScale",["number"]),Jn(e.yScale,"options.yScale",["number"]),Jn(e.width,"options.width",["number"]),Jn(e.height,"options.height",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(e.ySkew,"options.ySkew",[[Object,"Rotation"]]),$n(e.opacity,"opacity.opacity",0,1),Hn(e.blendMode,"options.blendMode",nu);const a=this.node.newXObject("EmbeddedPdfPage",t.ref),c=this.maybeEmbedGraphicsState({opacity:e.opacity,blendMode:e.blendMode}),l=void 0!==e.width?e.width/t.width:void 0!==e.xScale?e.xScale:1,h=void 0!==e.height?e.height/t.height:void 0!==e.yScale?e.yScale:1;this.getContentStream().push(...Uu(a,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,xScale:l,yScale:h,rotate:null!==(i=e.rotate)&&void 0!==i?i:Cl(0),xSkew:null!==(o=e.xSkew)&&void 0!==o?o:Cl(0),ySkew:null!==(s=e.ySkew)&&void 0!==s?s:Cl(0),graphicsState:c}))}drawSvgPath(t,e={}){var r,n,i,o,s,a,c,l,h;Yn(t,"path",["string"]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.scale,"options.scale",["number"]),Jn(e.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(e.borderWidth,"options.borderWidth",["number"]),Jn(e.color,"options.color",[[Object,"Color"]]),$n(e.opacity,"opacity.opacity",0,1),Jn(e.borderColor,"options.borderColor",[[Object,"Color"]]),Jn(e.borderDashArray,"options.borderDashArray",[Array]),Jn(e.borderDashPhase,"options.borderDashPhase",["number"]),Hn(e.borderLineCap,"options.borderLineCap",Xl),$n(e.borderOpacity,"options.borderOpacity",0,1),Hn(e.blendMode,"options.blendMode",nu),Hn(e.fillRule,"options.fillRule",lh);const d=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});"color"in e||"borderColor"in e||(e.borderColor=Ad(0,0,0));this.getContentStream().push(...Hu(t,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,scale:e.scale,rotate:null!==(i=e.rotate)&&void 0!==i?i:Cl(0),color:null!==(o=e.color)&&void 0!==o?o:void 0,borderColor:null!==(s=e.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,borderDashArray:null!==(c=e.borderDashArray)&&void 0!==c?c:void 0,borderDashPhase:null!==(l=e.borderDashPhase)&&void 0!==l?l:void 0,borderLineCap:null!==(h=e.borderLineCap)&&void 0!==h?h:void 0,graphicsState:d,fillRule:e.fillRule,matrix:e.matrix,clipSpaces:e.clipSpaces}))}drawLine(t){var e,r,n,i,o;Yn(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),Yn(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),Yn(t.start.x,"options.start.x",["number"]),Yn(t.start.y,"options.start.y",["number"]),Yn(t.end.x,"options.end.x",["number"]),Yn(t.end.y,"options.end.y",["number"]),Jn(t.thickness,"options.thickness",["number"]),Jn(t.color,"options.color",[[Object,"Color"]]),Jn(t.dashArray,"options.dashArray",[Array]),Jn(t.dashPhase,"options.dashPhase",["number"]),Hn(t.lineCap,"options.lineCap",Xl),$n(t.opacity,"opacity.opacity",0,1),Hn(t.blendMode,"options.blendMode",nu);const s=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=Ad(0,0,0));this.getContentStream().push(...Vu({start:t.start,end:t.end,thickness:null!==(e=t.thickness)&&void 0!==e?e:1,color:null!==(r=t.color)&&void 0!==r?r:void 0,dashArray:null!==(n=t.dashArray)&&void 0!==n?n:void 0,dashPhase:null!==(i=t.dashPhase)&&void 0!==i?i:void 0,lineCap:null!==(o=t.lineCap)&&void 0!==o?o:void 0,graphicsState:s,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawRectangle(t={}){var e,r,n,i,o,s,a,c,l,h,d,u,f,p,g;Jn(t.x,"options.x",["number"]),Jn(t.y,"options.y",["number"]),Jn(t.width,"options.width",["number"]),Jn(t.height,"options.height",["number"]),Jn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),Jn(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),Jn(t.borderWidth,"options.borderWidth",["number"]),Jn(t.color,"options.color",[[Object,"Color"]]),$n(t.opacity,"options.opacity",0,1),Jn(t.rx,"options.rx",["number"]),Jn(t.ry,"options.ry",["number"]),Jn(t.borderColor,"options.borderColor",[[Object,"Color"]]),Jn(t.borderDashArray,"options.borderDashArray",[Array]),Jn(t.borderDashPhase,"options.borderDashPhase",["number"]),Hn(t.borderLineCap,"options.borderLineCap",Xl),$n(t.borderOpacity,"options.borderOpacity",0,1),Hn(t.blendMode,"options.blendMode",nu);const m=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=Ad(0,0,0));this.getContentStream().push(...Lu({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(r=t.y)&&void 0!==r?r:this.y,width:null!==(n=t.width)&&void 0!==n?n:150,height:null!==(i=t.height)&&void 0!==i?i:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:Cl(0),xSkew:null!==(s=t.xSkew)&&void 0!==s?s:Cl(0),ySkew:null!==(a=t.ySkew)&&void 0!==a?a:Cl(0),borderWidth:null!==(c=t.borderWidth)&&void 0!==c?c:0,color:null!==(l=t.color)&&void 0!==l?l:void 0,rx:null!==(h=t.rx)&&void 0!==h?h:0,ry:null!==(d=t.ry)&&void 0!==d?d:0,borderColor:null!==(u=t.borderColor)&&void 0!==u?u:void 0,borderDashArray:null!==(f=t.borderDashArray)&&void 0!==f?f:void 0,borderDashPhase:null!==(p=t.borderDashPhase)&&void 0!==p?p:void 0,graphicsState:m,borderLineCap:null!==(g=t.borderLineCap)&&void 0!==g?g:void 0,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawSquare(t={}){const{size:e}=t;Jn(e,"size",["number"]),this.drawRectangle(Object.assign(Object.assign({},t),{width:e,height:e}))}drawEllipse(t={}){var e,r,n,i,o,s,a,c,l,h,d;Jn(t.x,"options.x",["number"]),Jn(t.y,"options.y",["number"]),Jn(t.xScale,"options.xScale",["number"]),Jn(t.yScale,"options.yScale",["number"]),Jn(t.rotate,"options.rotate",[[Object,"Rotation"]]),Jn(t.color,"options.color",[[Object,"Color"]]),$n(t.opacity,"opacity.opacity",0,1),Jn(t.borderColor,"options.borderColor",[[Object,"Color"]]),$n(t.borderOpacity,"options.borderOpacity",0,1),Jn(t.borderWidth,"options.borderWidth",["number"]),Jn(t.borderDashArray,"options.borderDashArray",[Array]),Jn(t.borderDashPhase,"options.borderDashPhase",["number"]),Hn(t.borderLineCap,"options.borderLineCap",Xl),Hn(t.blendMode,"options.blendMode",nu);const u=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});"color"in t||"borderColor"in t||(t.color=Ad(0,0,0));this.getContentStream().push(...Wu({x:null!==(e=t.x)&&void 0!==e?e:this.x,y:null!==(r=t.y)&&void 0!==r?r:this.y,xScale:null!==(n=t.xScale)&&void 0!==n?n:100,yScale:null!==(i=t.yScale)&&void 0!==i?i:100,rotate:null!==(o=t.rotate)&&void 0!==o?o:void 0,color:null!==(s=t.color)&&void 0!==s?s:void 0,borderColor:null!==(a=t.borderColor)&&void 0!==a?a:void 0,borderWidth:null!==(c=t.borderWidth)&&void 0!==c?c:0,borderDashArray:null!==(l=t.borderDashArray)&&void 0!==l?l:void 0,borderDashPhase:null!==(h=t.borderDashPhase)&&void 0!==h?h:void 0,borderLineCap:null!==(d=t.borderLineCap)&&void 0!==d?d:void 0,graphicsState:u,matrix:t.matrix,clipSpaces:t.clipSpaces}))}drawCircle(t={}){const{size:e=100}=t;Jn(e,"size",["number"]),this.drawEllipse(Object.assign(Object.assign({},t),{xScale:e,yScale:e}))}setOrEmbedFont(t){const e=this.font,r=this.fontKey;t?this.setFont(t):this.getFont();return{oldFont:e,oldFontKey:r,newFont:this.font,newFontKey:this.fontKey}}drawSvg(t,e={}){var r,n;Yn(t,"svg",["string",[uu,"PDFSvg"]]),Jn(e.x,"options.x",["number"]),Jn(e.y,"options.y",["number"]),Jn(e.width,"options.width",["number"]),Jn(e.height,"options.height",["number"]),Hn(e.blendMode,"options.blendMode",nu),Eu(this,t,{x:null!==(r=e.x)&&void 0!==r?r:this.x,y:null!==(n=e.y)&&void 0!==n?n:this.y,fonts:e.fonts,width:e.width,height:e.height,blendMode:e.blendMode})}getFont(){if(!this.font||!this.fontKey){const t=this.doc.embedStandardFont(Gf.Helvetica);this.setFont(t)}return[this.font,this.fontKey]}resetFont(){this.font=void 0,this.fontKey=void 0}getContentStream(t=!0){return t&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream}createContentStream(...t){const e=this.doc.context.obj({});return ao.of(e,t)}maybeEmbedGraphicsState(t){const{opacity:e,borderOpacity:r,blendMode:n}=t;if(void 0===e&&void 0===r&&void 0===n)return;const i=this.doc.context.obj({Type:"ExtGState",ca:e,CA:r,BM:n});return this.node.newExtGState("GS",i)}scaleAnnot(t,e,r){const n=["RD","CL","Vertices","QuadPoints","L","Rect"];for(let i=0,o=n.length;i<o;i++){const o=t.lookup(Xi.of(n[i]));o instanceof Ui&&o.scalePDFNumbers(e,r)}const i=t.lookup(Xi.of("InkList"));if(i instanceof Ui)for(let t=0,n=i.size();t<n;t++){const n=i.lookup(t);n instanceof Ui&&n.scalePDFNumbers(e,r)}}}yp.of=(t,e,r)=>new yp(t,e,r),yp.create=t=>{Yn(t,"doc",[[mp,"PDFDocument"]]);const e=eo.of(-1),r=uo.withContextAndParent(t.context,e),n=t.context.register(r);return new yp(r,n,t)};class vp extends Uf{constructor(t,e,r){super(t,e,r),Yn(t,"acroButton",[[Ko,"PDFAcroPushButton"]]),this.acroField=t}setImage(t,e=Mf.Center){const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n],o=this.createImageAppearanceStream(i,t,e);this.updateWidgetAppearances(i,{normal:o})}this.markAsClean()}setFontSize(t){ri(t,"fontSize"),this.acroField.setFontSize(t),this.markAsDirty()}addToPage(t,e,r){var n,i,o,s,a,c,l,h,d,u,f;Jn(t,"text",["string"]),Jn(e,"page",[[yp,"PDFPage"]]),zf(r);const p=this.createWidget({x:(null!==(n=null==r?void 0:r.x)&&void 0!==n?n:0)-(null!==(i=null==r?void 0:r.borderWidth)&&void 0!==i?i:0)/2,y:(null!==(o=null==r?void 0:r.y)&&void 0!==o?o: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:Ad(0,0,0),backgroundColor:null!==(h=null==r?void 0:r.backgroundColor)&&void 0!==h?h:Ad(.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:Cl(0),caption:t,hidden:null==r?void 0:r.hidden,page:e.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),e.node.addAnnot(g)}needsAppearancesUpdate(){var t;if(this.isDirty())return!0;const e=this.acroField.getWidgets();for(let r=0,n=e.length;r<n;r++){if(!((null===(t=e[r].getAppearances())||void 0===t?void 0:t.normal)instanceof Qi))return!0}return!1}defaultUpdateAppearances(t){Yn(t,"font",[[jf,"PDFFont"]]),this.updateAppearances(t)}updateAppearances(t,e){Yn(t,"font",[[jf,"PDFFont"]]),Jn(e,"provider",[Function]);const r=this.acroField.getWidgets();for(let n=0,i=r.length;n<i;n++){const i=r[n];this.updateWidgetAppearance(i,t,e)}}updateWidgetAppearance(t,e,r){const n=kf((null!=r?r:Df)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,n)}}vp.of=(t,e,r)=>new vp(t,e,r);export{xs as AFRelationship,Mo as AcroButtonFlags,Uo as AcroChoiceFlags,qo as AcroFieldFlags,zo as AcroTextFlags,vl as AnnotationFlags,Do as AppearanceCharacteristics,nu as BlendMode,oi as Cache,ji as CharCodes,Sd as ColorTypes,uf as CombedTextLayoutError,yi as CorruptPageTreeError,vs as CustomFontEmbedder,ws as CustomFontSubsetEmbedder,go as DefaultDocumentSnapshot,cs as Duplex,tf as EncryptedPDFError,ff as ExceededMaxLengthError,cf as FieldAlreadyExistsError,hf as FieldExistsAsNonTerminalError,ks as FileEmbedder,lh as FillRule,ef as FontkitNotRegisteredError,rf as ForeignPageError,Mf as ImageAlignment,bo as IncrementalDocumentSnapshot,vi as IndexOutOfBoundsError,wi as InvalidAcroFieldValueError,lf as InvalidFieldNamePartError,pf as InvalidMaxLengthError,mi as InvalidPDFDateStringError,bi as InvalidTargetIndexError,As as JpegEmbedder,Xl as LineCapStyle,Yl as LineJoinStyle,si as MethodNotImplementedError,di as MissingCatalogError,ki as MissingDAEntryError,Ei as MissingKeywordError,af as MissingOnValueCheckError,Ri as MissingPDFHeaderError,ui as MissingPageContentsEmbeddingError,Si as MissingTfOperatorError,xi as MultiSelectValueError,Ai as NextByteAssertionError,of as NoSuchFieldError,os as NonFullScreenPageMode,Fi as NumberParsingError,Eo as PDFAcroButton,Po as PDFAcroCheckBox,Vo as PDFAcroChoice,Io as PDFAcroComboBox,Oo as PDFAcroField,ns as PDFAcroForm,Xo as PDFAcroListBox,Lo as PDFAcroNonTerminal,Ko as PDFAcroPushButton,Go as PDFAcroRadioButton,Wo as PDFAcroSignature,Ro as PDFAcroTerminal,Ho as PDFAcroText,No as PDFAnnotation,Ui as PDFArray,gi as PDFArrayIsNotRectangleError,Ii as PDFBool,vp as PDFButton,hs as PDFCatalog,Vf as PDFCheckBox,ao as PDFContentStream,ho as PDFContext,yo as PDFCrossRefSection,Co as PDFCrossRefStream,Yi as PDFDict,mp as PDFDocument,If as PDFDropdown,Pf as PDFEmbeddedPage,Uf as PDFField,so as PDFFlateStream,jf as PDFFont,Xf as PDFForm,qi as PDFHeader,Ji as PDFHexString,qf as PDFImage,So as PDFInvalidObject,Ti as PDFInvalidObjectParsingError,tp as PDFJavaScript,Xi as PDFName,Zi as PDFNull,zi as PDFNumber,Mi as PDFObject,fo as PDFObjectCopier,ha as PDFObjectParser,Oi as PDFObjectParsingError,xo as PDFObjectStream,da as PDFObjectStreamParser,no as PDFOperator,oo as PDFOperatorNames,Lf as PDFOptionList,yp as PDFPage,Js as PDFPageEmbedder,uo as PDFPageLeaf,ds as PDFPageTree,fa as PDFParser,Ci as PDFParsingError,Wf as PDFRadioGroup,_i as PDFRawStream,eo as PDFRef,_c as PDFSecurity,Hf as PDFSignature,Qi as PDFStream,Ni as PDFStreamParsingError,us as PDFStreamWriter,ro as PDFString,uu as PDFSvg,Kf as PDFTextField,vo as PDFTrailer,wo as PDFTrailerDict,Bo as PDFWidgetAnnotation,ko as PDFWriter,ua as PDFXRefStreamParser,pi as PageEmbeddingMismatchedContextError,Qf as PageSizes,_f as ParseSpeeds,Es as PngEmbedder,as as PrintScaling,ai as PrivateConstructorError,ss as ReadingDirection,nf as RemovePageFromEmptyDocumentError,hi as ReparseError,df as RichTextFieldReadError,Sl as RotationTypes,Bi as StalledParserError,fs as StandardFontEmbedder,qn as StandardFontValues,Gf as StandardFonts,gf as TextAlignment,Ch as TextRenderingMode,Di as UnbalancedParenthesisError,sf as UnexpectedFieldTypeError,ci as UnexpectedObjectTypeError,fi as UnrecognizedStreamTypeError,li as UnsupportedEncodingError,ls as ViewerPreferences,g as addRandomSuffix,Bl as adjustDimsForRotation,eh as appendBezierCurve,rh as appendQuadraticCurve,E as arrayAsString,kl as asNumber,wl as asPDFName,xl as asPDFNumber,Qn as assertEachIs,ei as assertInteger,Yn as assertIs,Wn as assertIsOneOf,Hn as assertIsOneOfOrUndefined,Kn as assertIsSubset,ti as assertMultiple,Jn as assertOrUndefined,ri as assertPositive,_n as assertRange,$n as assertRangeOrUndefined,Un as backtick,Mh as beginMarkedContent,bh as beginText,C as breakTextIntoLines,P as byAscendingId,H as byteArrayToHexString,ht as bytesFor,I as canBeConvertedToUint8Array,S as charAtIndex,h as charFromCode,d as charFromHexCode,F as charSplit,b as cleanText,El as clip,Pl as clipEvenOdd,nh as closePath,Od as cmyk,Td as colorString,Rd as colorToComponents,Bd as componentsToColor,zl as concatTransformationMatrix,p as copyStringIntoBuffer,Yo as createPDFAcroField,Zo as createPDFAcroFields,Zn as createTypeErrorMsg,Ln as createValueErrorMsg,n as decodeFromBase64,o as decodeFromBase64DataUri,Ys as decodePDFRawStream,Df as defaultButtonAppearanceProvider,Tf as defaultCheckBoxAppearanceProvider,mo as defaultDocumentSnapshot,Rf as defaultDropdownAppearanceProvider,Ef as defaultOptionListAppearanceProvider,Nf as defaultRadioGroupAppearanceProvider,Bf as defaultTextFieldAppearanceProvider,Cl as degrees,Al as degreesToRadians,Yu as drawButton,Xu as drawCheckBox,Ku as drawCheckMark,Wu as drawEllipse,zu as drawImage,Vu as drawLine,Mu as drawLinesOfText,Dh as drawObject,_u as drawOptionList,Uu as drawPage,Zu as drawRadioButton,Lu as drawRectangle,Hu as drawSvgPath,qu as drawText,Qu as drawTextField,Ju as drawTextLines,r as encodeToBase64,zh as endMarkedContent,fh as endPath,yh as endText,dt as error,m as escapeRegExp,y as escapedNewlineChars,hh as fill,uh as fillAndStroke,dh as fillEvenOdd,T as findLastMatch,Gn as getType,Cd as grayscale,Y as hasSurrogates,at as hasUtf16BOM,J as highSurrogate,q as isArrayEqual,w as isNewlineChar,Mn as isStandardFont,Xn as isType,Z as isWithinBMP,N as last,wf as layoutCombedText,vf as layoutMultilineText,xf as layoutSinglelineText,x as lineSplit,oh as lineTo,Q as lowSurrogate,B as mergeIntoTypedArray,k as mergeLines,R as mergeUint8Arrays,gh as moveText,ih as moveTo,v as newlineChars,ph as nextLine,kf as normalizeAppearance,ct as numberToString,u as padStart,O as parseDate,ii as pdfDocEncodingDecode,V as pluckIndices,$l as popGraphicsState,_l as pushGraphicsState,Fl as radians,Ol as radiansToDegrees,U as range,sh as rectangle,zn as rectanglesAreEqual,Dl as reduceRotation,Gl as restoreDashPattern,M as reverseArray,Ad as rgb,Nh as rotateAndSkewTextDegreesAndTranslate,Th as rotateAndSkewTextRadiansAndTranslate,Ll as rotateDegrees,Gu as rotateInPlace,Il as rotateRadians,Rl as rotateRectangle,Vl as scale,wh as setCharacterSpacing,kh as setCharacterSqueeze,Kl as setDashPattern,jh as setFillingCmykColor,Nd as setFillingColor,Bh as setFillingGrayscaleColor,Eh as setFillingRgbColor,vh as setFontAndSize,Ql as setGraphicsState,Zl as setLineCap,Sh as setLineHeight,Jl as setLineJoin,th as setLineWidth,qh as setStrokingCmykColor,Dd as setStrokingColor,Rh as setStrokingGrayscaleColor,Ph as setStrokingRgbColor,Oh as setTextMatrix,Ah as setTextRenderingMode,Fh as setTextRise,xh as setWordSpacing,mh as showText,Vn as singleQuote,lt as sizeInBytes,Hl as skewDegrees,Wl as skewRadians,j as sortedUniq,ah as square,f as stringAsByteArray,ch as stroke,z as sum,s as toCharCode,a as toCodePoint,Nl as toDegrees,l as toHexString,c as toHexStringOfMinLength,Tl as toRadians,L as toUint8Array,Ul as translate,D as typedArrayFor,tt as utf16Decode,X as utf16Encode,G as utf8Encode,jn as values,K as waitForTick};
|
|
19
19
|
//# sourceMappingURL=pdf-lib.esm.min.js.map
|