sliccy 6.157.2 → 6.157.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.
Files changed (155) hide show
  1. package/README.md +1 -1
  2. package/dist/ui/.vite/manifest.json +188 -187
  3. package/dist/ui/assets/{CLAUDE-D8aRy6Y3.js → CLAUDE-I9G_dHp6.js} +1 -1
  4. package/dist/ui/assets/{SKILL-B--riEXN.js → SKILL-COPOzXIi.js} +1 -1
  5. package/dist/ui/assets/{account-store-CSIzWxmB.js → account-store-CSEqTHkT.js} +1 -1
  6. package/dist/ui/assets/{account-store-BC3vyGu2.js → account-store-CqdJ90Jw.js} +1 -1
  7. package/dist/ui/assets/{adobe-BShHOhCr.js → adobe-9SGO99Fw.js} +1 -1
  8. package/dist/ui/assets/{adobe-drXcmB3D.js → adobe-BdtGwUvC.js} +1 -1
  9. package/dist/ui/assets/{agent-bridge-DV0Ede0v.js → agent-bridge-CcH0BVOV.js} +1 -1
  10. package/dist/ui/assets/{agent-panels-CbV2fqtR.js → agent-panels-OmWUx717.js} +1 -1
  11. package/dist/ui/assets/{apply-layout-DoLGuPG5.js → apply-layout-Syx9BFJp.js} +1 -1
  12. package/dist/ui/assets/{apps-BaZHe_M7.js → apps-B0yqKhrn.js} +1 -1
  13. package/dist/ui/assets/{auto-mount-table-Bj59hmjV.js → auto-mount-table-rytW5wPV.js} +1 -1
  14. package/dist/ui/assets/{azure-openai-CJhvr0v9.js → azure-openai-B4_efJl9.js} +1 -1
  15. package/dist/ui/assets/{azure-openai-BYkj_1AG.js → azure-openai-ltnwJkEf.js} +1 -1
  16. package/dist/ui/assets/backend-hostfs-CsCDQ3wI.js +1 -0
  17. package/dist/ui/assets/backend-hostfs-uVodZ7BH.js +1 -0
  18. package/dist/ui/assets/{browser-CyOAI9cj.js → browser-fOe3v0iv.js} +5 -4
  19. package/dist/ui/assets/{budget-usage-source-GfigCN_s.js → budget-usage-source-Bn77rVDQ.js} +1 -1
  20. package/dist/ui/assets/{cdp-Cv1mvXfR.js → cdp-DXbCwMoy.js} +1 -1
  21. package/dist/ui/assets/{cerebras-CiQJfJJX.js → cerebras-CI9K82XN.js} +1 -1
  22. package/dist/ui/assets/{cerebras-CuthuK8O.js → cerebras-h3fxsfG0.js} +1 -1
  23. package/dist/ui/assets/{composer-speech-DwILw4Uk.js → composer-speech-Bbm_ersE.js} +1 -1
  24. package/dist/ui/assets/{connect-surface-DTIBD6Ob.js → connect-surface-C_DxrsVE.js} +1 -1
  25. package/dist/ui/assets/{cost-command-XzcQb5EI.js → cost-command-DlIH8zCh.js} +1 -1
  26. package/dist/ui/assets/{directed-approval-BP6ATlEl.js → directed-approval-BAf9LCvw.js} +1 -1
  27. package/dist/ui/assets/{ensure-speech-assets-9dACm1ao.js → ensure-speech-assets-CM9UIjYP.js} +1 -1
  28. package/dist/ui/assets/{es-BLFevQz4.js → es-DwGGEZle.js} +1 -1
  29. package/dist/ui/assets/{extension-ops-DcLzcAwt.js → extension-ops-BsnpYY6f.js} +1 -1
  30. package/dist/ui/assets/{frozen-archive-writer-Df5805od.js → frozen-archive-writer-B1ANvJgT.js} +1 -1
  31. package/dist/ui/assets/fs-DOVNjYzW.js +1 -0
  32. package/dist/ui/assets/fs-DeoWfjqK.js +2 -0
  33. package/dist/ui/assets/{github-B3_eljiu.js → github-5_M49ks6.js} +2 -2
  34. package/dist/ui/assets/{github-auth-CupULCYI.js → github-auth-D0c9XbZW.js} +1 -1
  35. package/dist/ui/assets/{github-copilot-CobpFty3.js → github-copilot-CbHP_7f7.js} +1 -1
  36. package/dist/ui/assets/{github-copilot-BY8oTZco.js → github-copilot-cLgpjg5w.js} +1 -1
  37. package/dist/ui/assets/{github-install-BaIiZrtX.js → github-install-CjamDBEc.js} +1 -1
  38. package/dist/ui/assets/{github-Cp55AC26.js → github-uVNm2183.js} +1 -1
  39. package/dist/ui/assets/{github-zip-1MOen3FO.js → github-zip-GTCDf9Pl.js} +1 -1
  40. package/dist/ui/assets/{hear-DuapGolr.js → hear-CACqXgt7.js} +1 -1
  41. package/dist/ui/assets/{help-CZtVVXe0.js → help-Cb17SAQB.js} +1 -1
  42. package/dist/ui/assets/{installer-Bu4t0i5V.js → installer-CdpRb7j4.js} +1 -1
  43. package/dist/ui/assets/{js-realm-worker-CqXsEURO.js → js-realm-worker-C0v3jW8W.js} +1 -1
  44. package/dist/ui/assets/{kernel-worker-8p_5PNiV.js → kernel-worker-BaPYUQFl.js} +396 -396
  45. package/dist/ui/assets/{live-session-snapshot-BP6rxBrE.js → live-session-snapshot-Dv20JKP2.js} +1 -1
  46. package/dist/ui/assets/{local-llm-C2DAhBTd.js → local-llm-ChF3sfFU.js} +1 -1
  47. package/dist/ui/assets/{local-llm-fDq0b6CI.js → local-llm-URbqXRLX.js} +1 -1
  48. package/dist/ui/assets/{main-D_jxpmRL.js → main-BUCKgxtj.js} +3 -3
  49. package/dist/ui/assets/{main-cherry-CBhHAcdr.js → main-cherry-cXhRyJ7g.js} +1 -1
  50. package/dist/ui/assets/{memory-curation-seam-Ce6Ezpr5.js → memory-curation-seam-CiWcyajY.js} +1 -1
  51. package/dist/ui/assets/{mount-BsWlp4Ng.js → mount-BCEqbn4e.js} +2 -2
  52. package/dist/ui/assets/{mount-eD6bH6K8.js → mount-BRhJGlzu.js} +3 -3
  53. package/dist/ui/assets/{mount-bridge-client-wfM0sGs5.js → mount-bridge-client-3a86Q6J0.js} +1 -1
  54. package/dist/ui/assets/{mount-bridge-client-DphjpUJQ.js → mount-bridge-client-CO2HxXrT.js} +1 -1
  55. package/dist/ui/assets/{mount-index-DLLlduW0.js → mount-index-CQfmUPuZ.js} +1 -1
  56. package/dist/ui/assets/{mount-recovery-B5MZkPeO.js → mount-recovery-WpiM9Tnw.js} +1 -1
  57. package/dist/ui/assets/{mv-DUh51uEl.js → mv-B4NndPT_.js} +1 -1
  58. package/dist/ui/assets/{new-session-bRM5-MPu.js → new-session-DCeZV5Qn.js} +2 -2
  59. package/dist/ui/assets/{oauth-bootstrap-BJE__KK2.js → oauth-bootstrap-GUmmkRNC.js} +2 -2
  60. package/dist/ui/assets/{onboarding-orchestrator-DsXw6KR0.js → onboarding-orchestrator-EshoJnan.js} +1 -1
  61. package/dist/ui/assets/{openai-codex-BUoctFvK.js → openai-codex-Clwxcnim.js} +1 -1
  62. package/dist/ui/assets/{openai-codex-qthQGD_3.js → openai-codex-CpD3alJG.js} +1 -1
  63. package/dist/ui/assets/{openrouter-Cpmx4KLh.js → openrouter-B3EcxWYC.js} +1 -1
  64. package/dist/ui/assets/{openrouter-Cght8V8I.js → openrouter-BJJuTqTn.js} +1 -1
  65. package/dist/ui/assets/{openrouter-free-BTrY4vQK.js → openrouter-free-CMmhJff_.js} +1 -1
  66. package/dist/ui/assets/{openrouter-free-BimK34SP.js → openrouter-free-CT6NoM8K.js} +1 -1
  67. package/dist/ui/assets/{openrouter-oauth-CslVWaaw.js → openrouter-oauth-BWxs3Im8.js} +1 -1
  68. package/dist/ui/assets/{openrouter-oauth-loMdP_Ba.js → openrouter-oauth-DxhLM4nB.js} +1 -1
  69. package/dist/ui/assets/{opfs-mount-C4HqOQiQ.js → opfs-mount-CUyTRUoC.js} +2 -2
  70. package/dist/ui/assets/{panel-rpc-handlers-DK5Cp4r1.js → panel-rpc-handlers-B-cyOhMA.js} +2 -2
  71. package/dist/ui/assets/{panelize-shell-48amUtWb.js → panelize-shell-WVaBYulZ.js} +1 -1
  72. package/dist/ui/assets/{pi-edit-execution-qzUIBN9h.js → pi-edit-execution-xi7NpQBJ.js} +1 -1
  73. package/dist/ui/assets/{probe-info-CjsoArwT.js → probe-info-Cfr3jYru.js} +1 -1
  74. package/dist/ui/assets/{provider-Olg-xwpR.js → provider-CHCDCsU8.js} +2 -2
  75. package/dist/ui/assets/{provider-CdC_p8nT.js → provider-CedRx4y3.js} +1 -1
  76. package/dist/ui/assets/provider-settings-DdBW0Ptt.js +1 -0
  77. package/dist/ui/assets/provider-store-access-CYzJeT_d.js +1 -0
  78. package/dist/ui/assets/provider-store-access-DV3KkNjH.js +1 -0
  79. package/dist/ui/assets/{providers-CVVJIPNh.js → providers-CVkGTQVH.js} +2 -2
  80. package/dist/ui/assets/{providers-DZ_vxDsI.js → providers-DIQE7sHO.js} +1 -1
  81. package/dist/ui/assets/{quick-llm-D1KZssbX.js → quick-llm-IsSRlIE_.js} +1 -1
  82. package/dist/ui/assets/{recovery-screen-CflDQ34Q.js → recovery-screen-DKyeQ9eS.js} +1 -1
  83. package/dist/ui/assets/{remote-sprinkle-vfs-C_-TfGu3.js → remote-sprinkle-vfs-D-Wz5t8k.js} +1 -1
  84. package/dist/ui/assets/{remote-vfs-client-CEL8mUQ9.js → remote-vfs-client-Dhv8nI7h.js} +1 -1
  85. package/dist/ui/assets/{run-ChkY2Agc.js → run-B-t7kWH3.js} +1 -1
  86. package/dist/ui/assets/{run-C6flLZUb.js → run-B4mjoang.js} +2 -2
  87. package/dist/ui/assets/{run-BcQ-akMi.js → run-BI_A77E-.js} +1 -1
  88. package/dist/ui/assets/{run-CWenWZRy.js → run-CrPSdmNd.js} +2 -2
  89. package/dist/ui/assets/{run-CPPMIJVq.js → run-D_KcnB9d.js} +1 -1
  90. package/dist/ui/assets/{run-BAXE1Fgn.js → run-EhsZ6l-Q.js} +1 -1
  91. package/dist/ui/assets/{run-B7bNDge8.js → run-dAJe7sKp.js} +3 -3
  92. package/dist/ui/assets/same-file-identity-DuEcSmPX.js +1 -0
  93. package/dist/ui/assets/{session-command-memory-CzJDf01Z.js → session-command-memory-Bbguzf_6.js} +2 -2
  94. package/dist/ui/assets/{session-jsonl-Dhs3IqoC.js → session-jsonl-BFu5rblv.js} +1 -1
  95. package/dist/ui/assets/{session-jsonl-BwqaD3jQ.js → session-jsonl-f7vG8uaN.js} +1 -1
  96. package/dist/ui/assets/{session-search-index-D6zcG95Z.js → session-search-index-BQmbRVuk.js} +1 -1
  97. package/dist/ui/assets/{setup-feature-flags-remote-CtllC58Y.js → setup-feature-flags-remote-Dg3f2VpS.js} +1 -1
  98. package/dist/ui/assets/{silent-renew-backoff-BazAPVJH.js → silent-renew-backoff-GiTNC81O.js} +1 -1
  99. package/dist/ui/assets/{skills-CJEFZrsl.js → skills-DPuIJKlr.js} +1 -1
  100. package/dist/ui/assets/slicc-version-CzaFZgjY.js +1 -0
  101. package/dist/ui/assets/{snapshot-DiBZ889S.js → snapshot-BJQuS7fA.js} +1 -1
  102. package/dist/ui/assets/{snapshot-features-BDbZinQm.js → snapshot-features-CMwKwxVx.js} +1 -1
  103. package/dist/ui/assets/{soundscape-p_17gIkK.js → soundscape-C1yxoOFL.js} +1 -1
  104. package/dist/ui/assets/{speak-DcePTkTJ.js → speak-DFvuiFDU.js} +1 -1
  105. package/dist/ui/assets/{sprinkle-manager-B2l4yjDJ.js → sprinkle-manager-3RaGBEHV.js} +1 -1
  106. package/dist/ui/assets/{sprinkle-renderer-DGajwT-R.js → sprinkle-renderer-B1_bb422.js} +1 -1
  107. package/dist/ui/assets/stat-identity-BaU9yoai.js +1 -0
  108. package/dist/ui/assets/{state-Bg47hoJC.js → state-BPeFjtS_.js} +1 -1
  109. package/dist/ui/assets/{store-BrTdyYCw.js → store-bo0cdr2u.js} +1 -1
  110. package/dist/ui/assets/{store-B2phX_J_.js → store-epwD1PSG.js} +1 -1
  111. package/dist/ui/assets/{sudo-_YMo1g3C.js → sudo-RJfzy7Bg.js} +1 -1
  112. package/dist/ui/assets/{sync-dialog-Dz1u2hc1.js → sync-dialog-BkW4NuN6.js} +1 -1
  113. package/dist/ui/assets/{transformers-env-C3uTEvuB.js → transformers-env-BduCpFI6.js} +1 -1
  114. package/dist/ui/assets/{tray-sidecar-DOxjhs0P.js → tray-sidecar-DAA3oOmd.js} +1 -1
  115. package/dist/ui/assets/types-D8gIX-W-.js +1 -0
  116. package/dist/ui/assets/{upgrade-detection-Q2YZEIZs.js → upgrade-detection-COCVR6QP.js} +1 -1
  117. package/dist/ui/assets/{upskill-lick-skip-I6gJYNyz.js → upskill-lick-skip-JXrZcdQ3.js} +1 -1
  118. package/dist/ui/assets/{voice-reply-DbakEYjK.js → voice-reply-B4LTaZql.js} +1 -1
  119. package/dist/ui/assets/{wc-attach-IO5dUOGT.js → wc-attach-DYc8_iLB.js} +2 -2
  120. package/dist/ui/assets/{wc-extension-BCd1YyiK.js → wc-extension-C04GxChh.js} +2 -2
  121. package/dist/ui/assets/{wc-follower-DVItvuN7.js → wc-follower-BxAVqwt0.js} +3 -3
  122. package/dist/ui/assets/{wc-follower-oauth-CJcwG3ac.js → wc-follower-oauth-DAnIlg5g.js} +1 -1
  123. package/dist/ui/assets/{wc-gelatiere-B5J_Tbl4.js → wc-gelatiere-BubMhY6t.js} +1 -1
  124. package/dist/ui/assets/{wc-live-_MvHDENH.js → wc-live-BIprYztk.js} +5 -5
  125. package/dist/ui/assets/{wc-nav-BmMZ5hQ1.js → wc-nav-Di5RqNCi.js} +2 -2
  126. package/dist/ui/assets/{wc-onboarding-DUNMmoBo.js → wc-onboarding-BEMDMj2c.js} +2 -2
  127. package/dist/ui/assets/{wc-placeholder-C9PK4xP8.js → wc-placeholder-iEg4KBf_.js} +3 -3
  128. package/dist/ui/assets/{wc-secret-request-DDRmWja3.js → wc-secret-request-B1d6ZKAt.js} +1 -1
  129. package/dist/ui/assets/{wc-settings-Ca55PEn7.js → wc-settings-BgJoC4xY.js} +3 -3
  130. package/dist/ui/assets/{wc-shell-DVzCxzim.js → wc-shell-DIbmkLIE.js} +3 -3
  131. package/dist/ui/assets/{wc-shortcut-config-BKx0dmhX.js → wc-shortcut-config-EgHIF0kf.js} +1 -1
  132. package/dist/ui/assets/{wc-shortcuts-GZPnxY8C.js → wc-shortcuts-Doc9BdfE.js} +1 -1
  133. package/dist/ui/assets/{wc-sprinkles-DDvNfcRr.js → wc-sprinkles-D_ll3NyX.js} +2 -2
  134. package/dist/ui/assets/{wc-transcript-export-Nr-iLkgU.js → wc-transcript-export-CI50FMkd.js} +2 -2
  135. package/dist/ui/assets/{wc-tray-DtMFbq5v.js → wc-tray-BtZtrgMg.js} +4 -4
  136. package/dist/ui/assets/welcome-detection-BZV5ML4Q.js +1 -0
  137. package/dist/ui/assets/{whisper-session-CpNs8SQu.js → whisper-session-CMxHvrw8.js} +2 -2
  138. package/dist/ui/assets/{writable-vfs-client-CuLQlJK0.js → writable-vfs-client-pZwewNEw.js} +1 -1
  139. package/dist/ui/assets/{xai-grok-CrtZWfSb.js → xai-grok-BR5St0Jm.js} +1 -1
  140. package/dist/ui/assets/{xai-grok-lAapgYEW.js → xai-grok-DNI0j0Aj.js} +1 -1
  141. package/dist/ui/index.html +3 -3
  142. package/dist/ui/packages/webapp/index.html +3 -3
  143. package/package.json +1 -1
  144. package/dist/ui/assets/backend-hostfs-De2Zrx7a.js +0 -1
  145. package/dist/ui/assets/backend-hostfs-n_0O1LVt.js +0 -1
  146. package/dist/ui/assets/fs-B8bgTSap.js +0 -2
  147. package/dist/ui/assets/fs-lOoWMJlR.js +0 -1
  148. package/dist/ui/assets/provider-settings-CGklQOX-.js +0 -1
  149. package/dist/ui/assets/provider-store-access-Bm_tTRMF.js +0 -1
  150. package/dist/ui/assets/provider-store-access-bxo2oSpb.js +0 -1
  151. package/dist/ui/assets/run-BbzzVjlq.js +0 -13
  152. package/dist/ui/assets/same-file-identity-C_JKwIh_.js +0 -1
  153. package/dist/ui/assets/slicc-version-BXeATbjt.js +0 -1
  154. package/dist/ui/assets/types-Bgy4zvr3.js +0 -1
  155. package/dist/ui/assets/welcome-detection-CwYj20Sf.js +0 -1
@@ -30,7 +30,7 @@ endcmap
30
30
  CMapName currentdict /CMap defineresource pop
31
31
  end
32
32
  end\
33
- `,Rs=(...e)=>`<${e.join(``)}>`,zs=e=>u(e,4),Bs=e=>{if(he(e))return zs(e);if(L(e)){let t=R(e),n=ge(e);return`${zs(t)}${zs(n)}`}let t=`0x${d(e)} is not a valid UTF-8 or UTF-16 codepoint.`;throw Error(t)},Vs=e=>{let t=0,n=e=>{t|=1<<e-1};return e.fixedPitch&&n(1),e.serif&&n(2),e.symbolic&&n(3),e.script&&n(4),e.nonsymbolic&&n(6),e.italic&&n(7),e.allCap&&n(17),e.smallCap&&n(18),e.forceBold&&n(19),t},Hs=e=>{let t=e[`OS/2`]?e[`OS/2`].sFamilyClass:0;return Vs({fixedPitch:!!e.post?.isFixedPitch,serif:1<=t&&t<=7,symbolic:!0,script:t===10,italic:!!e.head?.macStyle?.italic})};var Us=class e{static for(t,n,r,i,a){return jo(this,void 0,void 0,function*(){let o=Fs(yield t.create(n,a));return new e(o,n,r,i)})}constructor(e,t,n,r){this.allGlyphsInFontSortedById=()=>{let e=Array(this.font.characterSet.length);for(let t=0,n=e.length;t<n;t++){let n=this.font.characterSet[t];e[t]=this.font.glyphForCodePoint(n)}return ae(e.sort(ie),e=>e.id)},this.font=e,this.scale=1e3/this.font.unitsPerEm,this.fontData=t,this.fontName=this.font.postscriptName||`Font`,this.customName=n,this.fontFeatures=r,this.baseFontName=``,this.glyphCache=wt.populatedBy(this.allGlyphsInFontSortedById)}encodeText(e){let{glyphs:t}=this.font.layout(e,this.fontFeatures),n=Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]=u(t[e].id,4);return Z.of(n.join(``))}glyphCountOfText(e){let{glyphs:t}=this.font.layout(e,this.fontFeatures);return t.length}widthOfTextAtSize(e,t){let{glyphs:n}=this.font.layout(e,this.fontFeatures),r=0;for(let e=0,t=n.length;e<t;e++)r+=n[e].advanceWidth*this.scale;let i=t/1e3;return r*i}heightOfFontAtSize(e,t={}){let{descender:n=!0}=t,{ascent:r,descent:i,bbox:a}=this.font,o=(r||a.maxY)*this.scale-(i||a.minY)*this.scale;return n||(o-=Math.abs(i)||0),o/1e3*e}sizeOfFontAtHeight(e){let{ascent:t,descent:n,bbox:r}=this.font,i=(t||r.maxY)*this.scale,a=(n||r.minY)*this.scale;return 1e3*e/(i-a)}embedIntoContext(e,t){return this.baseFontName=this.customName||e.addRandomSuffix(this.fontName),this.embedFontDict(e,t)}embedFontDict(e,t){return jo(this,void 0,void 0,function*(){let n=yield this.embedCIDFontDict(e),r=this.embedUnicodeCmap(e),i=e.obj({Type:`Font`,Subtype:`Type0`,BaseFont:this.baseFontName,Encoding:`Identity-H`,DescendantFonts:[n],ToUnicode:r});return t?(e.assign(t,i),t):e.register(i)})}isCFF(){return this.font.cff}embedCIDFontDict(e){return jo(this,void 0,void 0,function*(){let t=yield this.embedFontDescriptor(e),n=e.obj({Type:`Font`,Subtype:this.isCFF()?`CIDFontType0`:`CIDFontType2`,CIDToGIDMap:`Identity`,BaseFont:this.baseFontName,CIDSystemInfo:{Registry:go.of(`Adobe`),Ordering:go.of(`Identity`),Supplement:0},FontDescriptor:t,W:this.computeWidths()});return e.register(n)})}embedFontDescriptor(e){return jo(this,void 0,void 0,function*(){let t=yield this.embedFontStream(e),{scale:n}=this,{italicAngle:r,ascent:i,descent:a,capHeight:o,xHeight:s}=this.font,{minX:c,minY:l,maxX:u,maxY:d}=this.font.bbox,f=e.obj({Type:`FontDescriptor`,FontName:this.baseFontName,Flags:Hs(this.font),FontBBox:[c*n,l*n,u*n,d*n],ItalicAngle:r,Ascent:i*n,Descent:a*n,CapHeight:(o||i)*n,XHeight:(s||0)*n,StemV:0,[this.isCFF()?`FontFile3`:`FontFile2`]:t});return e.register(f)})}serializeFont(){return jo(this,void 0,void 0,function*(){return this.fontData})}embedFontStream(e){return jo(this,void 0,void 0,function*(){let t=e.flateStream(yield this.serializeFont(),{Subtype:this.isCFF()?`CIDFontType0C`:void 0});return e.register(t)})}embedUnicodeCmap(e){let t=Is(this.glyphCache.access(),this.glyphId.bind(this)),n=e.flateStream(t);return e.register(n)}glyphId(e){return e?e.id:-1}computeWidths(){let e=this.glyphCache.access(),t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r],a=e[r-1],o=this.glyphId(i),s=this.glyphId(a);r===0?t.push(o):o-s!==1&&(t.push(n),t.push(o),n=[]),n.push(i.advanceWidth*this.scale)}return t.push(n),t}},Ws=class e extends Us{static for(t,n,r,i,a){return jo(this,void 0,void 0,function*(){let o=Fs(yield t.create(n,a));return new e(o,n,r,i)})}constructor(e,t,n,r){super(e,t,n,r),this.subset=this.font.createSubset(),this.glyphs=[],this.glyphCache=wt.populatedBy(()=>this.glyphs),this.glyphIdMap=new Map}encodeText(e){let{glyphs:t}=this.font.layout(e,this.fontFeatures),n=Array(t.length);for(let e=0,r=t.length;e<r;e++){let r=t[e],i=this.subset.includeGlyph(r);if(typeof i!=`number`)throw Error(`fontkit subset.includeGlyph() must return a glyph id (number)`);let a=i;this.glyphs[a-1]=r,this.glyphIdMap.set(r.id,a),n[e]=u(a,4)}return this.glyphCache.invalidate(),Z.of(n.join(``))}isCFF(){return this.subset.cff}glyphId(e){return e?this.glyphIdMap.get(e.id):-1}serializeFont(){return typeof this.subset.encode==`function`?Promise.resolve(this.subset.encode()):new Promise((e,t)=>{if(typeof this.subset.encodeStream!=`function`){t(Error(`Registered fontkit subsetter must provide encode() or encodeStream()`));return}let n=[];this.subset.encodeStream().on(`data`,e=>n.push(e)).on(`end`,()=>e(ne(n))).on(`error`,e=>t(e))})}},Gs;(function(e){e.Source=`Source`,e.Data=`Data`,e.Alternative=`Alternative`,e.Supplement=`Supplement`,e.EncryptedPayload=`EncryptedPayload`,e.FormData=`EncryptedPayload`,e.Schema=`Schema`,e.Unspecified=`Unspecified`})(Gs||={});var Ks=class e{static for(t,n,r={}){return new e(t,n,r)}constructor(e,t,n={}){this.fileData=e,this.fileName=t,this.options=n}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let{mimeType:n,description:r,creationDate:i,modificationDate:a,afRelationship:o}=this.options,s=e.flateStream(this.fileData,{Type:`EmbeddedFile`,Subtype:n??void 0,Params:{Size:this.fileData.length,CreationDate:i?go.fromDate(i):void 0,ModDate:a?go.fromDate(a):void 0}}),c=e.register(s),l=e.obj({Type:`Filespec`,F:go.of(this.fileName),UF:Z.fromText(this.fileName),EF:{F:c},Desc:r?Z.fromText(r):void 0,AFRelationship:o??void 0});return t?(e.assign(t,l),t):e.register(l)})}getFileData(){return this.fileData}};const qs=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];var Js;(function(e){e.DeviceGray=`DeviceGray`,e.DeviceRGB=`DeviceRGB`,e.DeviceCMYK=`DeviceCMYK`})(Js||={});const Ys={1:Js.DeviceGray,3:Js.DeviceRGB,4:Js.DeviceCMYK};var Xs=class e{static for(t){return jo(this,void 0,void 0,function*(){let n=new DataView(t.buffer,t.byteOffset,t.byteLength);if(n.getUint16(0)!==65496)throw Error(`SOI not found in JPEG`);let r=2,i;for(;r<n.byteLength&&(i=n.getUint16(r),r+=2,!qs.includes(i));)r+=n.getUint16(r);if(!qs.includes(i))throw Error(`Invalid JPEG`);r+=2;let a=n.getUint8(r++),o=n.getUint16(r);r+=2;let s=n.getUint16(r);r+=2;let c=n.getUint8(r++),l=Ys[c];if(!l)throw Error(`Unknown JPEG channel.`);return new e(t,a,s,o,l)})}constructor(e,t,n,r,i){this.imageData=e,this.bitsPerComponent=t,this.width=n,this.height=r,this.colorSpace=i}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let n=e.stream(this.imageData,{Type:`XObject`,Subtype:`Image`,BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:`DCTDecode`,Decode:this.colorSpace===Js.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0});return t?(e.assign(t,n),t):e.register(n)})}},Zs=t((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!=`object`)throw TypeError(r+`must be non-object`);for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})),Qs=t((e=>{var t=Zs(),n=4,r=0,i=1,a=2;function o(e){for(var t=e.length;--t>=0;)e[t]=0}var s=0,c=1,l=2,u=3,d=258,f=29,p=256,m=p+1+f,h=30,g=19,_=2*m+1,v=15,y=16,b=7,x=256,S=16,C=17,w=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=512,k=Array((m+2)*2);o(k);var A=Array(h*2);o(A);var j=Array(O);o(j);var M=Array(d-u+1);o(M);var N=Array(f);o(N);var te=Array(h);o(te);function ne(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var re,ie,ae;function oe(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function se(e){return e<256?j[e]:j[256+(e>>>7)]}function ce(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,ce(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function F(e,t,n){P(e,n[t*2],n[t*2+1])}function le(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ue(e){e.bi_valid===16?(ce(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function de(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=v;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<_;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function fe(e,t,n){var r=Array(v+1),i=0,a,o;for(a=1;a<=v;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=le(r[s]++,s))}}function I(){var e,t,n,r,i,a=Array(v+1);for(n=0,r=0;r<f-1;r++)for(N[r]=n,e=0;e<1<<T[r];e++)M[n++]=r;for(M[n-1]=r,i=0,r=0;r<16;r++)for(te[r]=i,e=0;e<1<<E[r];e++)j[i++]=r;for(i>>=7;r<h;r++)for(te[r]=i<<7,e=0;e<1<<E[r]-7;e++)j[256+i++]=r;for(t=0;t<=v;t++)a[t]=0;for(e=0;e<=143;)k[e*2+1]=8,e++,a[8]++;for(;e<=255;)k[e*2+1]=9,e++,a[9]++;for(;e<=279;)k[e*2+1]=7,e++,a[7]++;for(;e<=287;)k[e*2+1]=8,e++,a[8]++;for(fe(k,m+1,a),e=0;e<h;e++)A[e*2+1]=5,A[e*2]=le(e,5);re=new ne(k,T,p+1,m,v),ie=new ne(A,E,0,h,v),ae=new ne([],D,0,g,b)}function pe(e){var t;for(t=0;t<m;t++)e.dyn_ltree[t*2]=0;for(t=0;t<h;t++)e.dyn_dtree[t*2]=0;for(t=0;t<g;t++)e.bl_tree[t*2]=0;e.dyn_ltree[x*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function me(e){e.bi_valid>8?ce(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function he(e,n,r,i){me(e),i&&(ce(e,r),ce(e,~r)),t.arraySet(e.pending_buf,e.window,n,r,e.pending),e.pending+=r}function L(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function R(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&L(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!L(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function ge(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?F(e,i,t):(o=M[i],F(e,o+p+1,t),s=T[o],s!==0&&(i-=N[o],P(e,i,s)),r--,o=se(r),F(e,o,n),s=E[o],s!==0&&(r-=te[o],P(e,r,s)));while(a<e.last_lit);F(e,x,t)}function _e(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=_,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)R(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,R(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],de(e,t),fe(n,c,e.bl_count)}function z(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[C*2]++:e.bl_tree[w*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[S*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))}function ve(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do F(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(F(e,C,e.bl_tree),P(e,s-3,3)):(F(e,w,e.bl_tree),P(e,s-11,7)):(a!==i&&(F(e,a,e.bl_tree),s--),F(e,S,e.bl_tree),P(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}}function B(e){var t;for(z(e,e.dyn_ltree,e.l_desc.max_code),z(e,e.dyn_dtree,e.d_desc.max_code),_e(e,e.bl_desc),t=g-1;t>=3&&e.bl_tree[ee[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function ye(e,t,n,r){var i;for(P(e,t-257,5),P(e,n-1,5),P(e,r-4,4),i=0;i<r;i++)P(e,e.bl_tree[ee[i]*2+1],3);ve(e,e.dyn_ltree,t-1),ve(e,e.dyn_dtree,n-1)}function V(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return r;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return i;for(n=32;n<p;n++)if(e.dyn_ltree[n*2]!==0)return i;return r}var H=!1;function be(e){H||=(I(),!0),e.l_desc=new oe(e.dyn_ltree,re),e.d_desc=new oe(e.dyn_dtree,ie),e.bl_desc=new oe(e.bl_tree,ae),e.bi_buf=0,e.bi_valid=0,pe(e)}function U(e,t,n,r){P(e,(s<<1)+ +!!r,3),he(e,t,n,!0)}function xe(e){P(e,c<<1,3),F(e,x,k),ue(e)}function Se(e,t,r,i){var o,s,u=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=V(e)),_e(e,e.l_desc),_e(e,e.d_desc),u=B(e),o=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=o&&(o=s)):o=s=r+5,r+4<=o&&t!==-1?U(e,t,r,i):e.strategy===n||s===o?(P(e,(c<<1)+ +!!i,3),ge(e,k,A)):(P(e,(l<<1)+ +!!i,3),ye(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),ge(e,e.dyn_ltree,e.dyn_dtree)),pe(e),i&&me(e)}function W(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(M[n]+p+1)*2]++,e.dyn_dtree[se(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=be,e._tr_stored_block=U,e._tr_flush_block=Se,e._tr_tally=W,e._tr_align=xe})),$s=t(((e,t)=>{function n(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n})),ec=t(((e,t)=>{function n(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=n();function i(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=i})),tc=t(((e,t)=>{t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}})),nc=t((e=>{var t=Zs(),n=Qs(),r=$s(),i=ec(),a=tc(),o=0,s=1,c=3,l=4,u=5,d=0,f=1,p=-2,m=-3,h=-5,g=-1,_=1,v=2,y=3,b=4,x=0,S=2,C=8,w=9,T=15,E=8,D=286,ee=30,O=19,k=2*D+1,A=15,j=3,M=258,N=M+j+1,te=32,ne=42,re=69,ie=73,ae=91,oe=103,se=113,ce=666,P=1,F=2,le=3,ue=4,de=3;function fe(e,t){return e.msg=a[t],t}function I(e){return(e<<1)-(e>4?9:0)}function pe(e){for(var t=e.length;--t>=0;)e[t]=0}function me(e){var n=e.state,r=n.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(t.arraySet(e.output,n.pending_buf,n.pending_out,r,e.next_out),e.next_out+=r,n.pending_out+=r,e.total_out+=r,e.avail_out-=r,n.pending-=r,n.pending===0&&(n.pending_out=0))}function he(e,t){n._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,me(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function R(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function ge(e,n,a,o){var s=e.avail_in;return s>o&&(s=o),s===0?0:(e.avail_in-=s,t.arraySet(n,e.input,e.next_in,s,a),e.state.wrap===1?e.adler=r(e.adler,n,s,a):e.state.wrap===2&&(e.adler=i(e.adler,n,s,a)),e.next_in+=s,e.total_in+=s,s)}function _e(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-N?e.strstart-(e.w_size-N):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+M,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,l[i+o]===m&&l[i+o-1]===p&&l[i]===l[r]&&l[++i]===l[r+1]){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=M-(f-r),r=f-M,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead}function z(e){var n=e.w_size,r,i,a,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-N)){t.arraySet(e.window,e.window,n,n,0),e.match_start-=n,e.strstart-=n,e.block_start-=n,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=n?a-n:0;while(--i);i=n,r=i;do a=e.prev[--r],e.prev[r]=a>=n?a-n:0;while(--i);o+=n}if(e.strm.avail_in===0)break;if(i=ge(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=j)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+j-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<j)););}while(e.lookahead<N&&e.strm.avail_in!==0)}function ve(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),e.lookahead===0&&t===o)return P;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,he(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-N&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=0,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):(e.strstart>e.block_start&&(he(e,!1),e.strm.avail_out),P)}function B(e,t){for(var r,i;;){if(e.lookahead<N){if(z(e),e.lookahead<N&&t===o)return P;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-N&&(e.match_length=_e(e,r)),e.match_length>=j){if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-j),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=j){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}else i=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=e.strstart<j-1?e.strstart:j-1,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function ye(e,t){for(var r,i,a;;){if(e.lookahead<N){if(z(e),e.lookahead<N&&t===o)return P;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=j-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-N&&(e.match_length=_e(e,r),e.match_length<=5&&(e.strategy===_||e.match_length===j&&e.strstart-e.match_start>4096)&&(e.match_length=j-1)),e.prev_length>=j&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-j,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-j),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=j-1,e.strstart++,i&&(he(e,!1),e.strm.avail_out===0))return P}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&he(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return P}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(i=n._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<j-1?e.strstart:j-1,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function V(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=M){if(z(e),e.lookahead<=M&&t===o)return P;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=j&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+M;do;while(i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&a<s);e.match_length=M-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=j?(r=n._tr_tally(e,1,e.match_length-j),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=0,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function H(e,t){for(var r;;){if(e.lookahead===0&&(z(e),e.lookahead===0)){if(t===o)return P;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=0,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function be(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var U=[new be(0,0,0,0,ve),new be(4,4,8,4,B),new be(4,5,16,8,B),new be(4,6,32,32,B),new be(4,4,16,16,ye),new be(8,16,32,32,ye),new be(8,16,128,128,ye),new be(8,32,128,256,ye),new be(32,128,258,1024,ye),new be(32,258,258,4096,ye)];function xe(e){e.window_size=2*e.w_size,pe(e.head),e.max_lazy_match=U[e.level].max_lazy,e.good_match=U[e.level].good_length,e.nice_match=U[e.level].nice_length,e.max_chain_length=U[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=j-1,e.match_available=0,e.ins_h=0}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(k*2),this.dyn_dtree=new t.Buf16((2*ee+1)*2),this.bl_tree=new t.Buf16((2*O+1)*2),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(A+1),this.heap=new t.Buf16(2*D+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*D+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(e){var t;return!e||!e.state?fe(e,p):(e.total_in=e.total_out=0,e.data_type=S,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ne:se,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),d)}function Ce(e){var t=W(e);return t===d&&xe(e.state),t}function we(e,t){return!e||!e.state||e.state.wrap!==2?p:(e.state.gzhead=t,d)}function Te(e,n,r,i,a,o){if(!e)return p;var s=1;if(n===g&&(n=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>w||r!==C||i<8||i>15||n<0||n>9||o<0||o>b)return fe(e,p);i===8&&(i=9);var c=new Se;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+j-1)/j),c.window=new t.Buf8(c.w_size*2),c.head=new t.Buf16(c.hash_size),c.prev=new t.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new t.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=n,c.strategy=o,c.method=r,Ce(e)}function Ee(e,t){return Te(e,t,C,T,E,x)}function De(e,t){var r,a,m,g;if(!e||!e.state||t>u||t<0)return e?fe(e,p):p;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===ce&&t!==l)return fe(e,e.avail_out===0?h:p);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===ne){if(a.wrap===2)e.adler=0,L(a,31),L(a,139),L(a,8),a.gzhead?(L(a,+!!a.gzhead.text+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),L(a,a.gzhead.time&255),L(a,a.gzhead.time>>8&255),L(a,a.gzhead.time>>16&255),L(a,a.gzhead.time>>24&255),L(a,a.level===9?2:a.strategy>=v||a.level<2?4:0),L(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(L(a,a.gzhead.extra.length&255),L(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=i(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=re):(L(a,0),L(a,0),L(a,0),L(a,0),L(a,0),L(a,a.level===9?2:a.strategy>=v||a.level<2?4:0),L(a,de),a.status=se);else{var _=C+(a.w_bits-8<<4)<<8,b=-1;b=a.strategy>=v||a.level<2?0:a.level<6?1:a.level===6?2:3,_|=b<<6,a.strstart!==0&&(_|=te),_+=31-_%31,a.status=se,R(a,_),a.strstart!==0&&(R(a,e.adler>>>16),R(a,e.adler&65535)),e.adler=1}}if(a.status===re){if(a.gzhead.extra){for(m=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size));)L(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=ie)}else a.status=ie}if(a.status===ie){if(a.gzhead.name){m=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size)){g=1;break}g=a.gzindex<a.gzhead.name.length?a.gzhead.name.charCodeAt(a.gzindex++)&255:0,L(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),g===0&&(a.gzindex=0,a.status=ae)}else a.status=ae}if(a.status===ae){if(a.gzhead.comment){m=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size)){g=1;break}g=a.gzindex<a.gzhead.comment.length?a.gzhead.comment.charCodeAt(a.gzindex++)&255:0,L(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),g===0&&(a.status=oe)}else a.status=oe}if(a.status===oe&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&me(e),a.pending+2<=a.pending_buf_size&&(L(a,e.adler&255),L(a,e.adler>>8&255),e.adler=0,a.status=se)):a.status=se),a.pending!==0){if(me(e),e.avail_out===0)return a.last_flush=-1,d}else if(e.avail_in===0&&I(t)<=I(r)&&t!==l)return fe(e,h);if(a.status===ce&&e.avail_in!==0)return fe(e,h);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==ce){var x=a.strategy===v?H(a,t):a.strategy===y?V(a,t):U[a.level].func(a,t);if((x===le||x===ue)&&(a.status=ce),x===P||x===le)return e.avail_out===0&&(a.last_flush=-1),d;if(x===F&&(t===s?n._tr_align(a):t!==u&&(n._tr_stored_block(a,0,0,!1),t===c&&(pe(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),me(e),e.avail_out===0))return a.last_flush=-1,d}return t===l?a.wrap<=0?f:(a.wrap===2?(L(a,e.adler&255),L(a,e.adler>>8&255),L(a,e.adler>>16&255),L(a,e.adler>>24&255),L(a,e.total_in&255),L(a,e.total_in>>8&255),L(a,e.total_in>>16&255),L(a,e.total_in>>24&255)):(R(a,e.adler>>>16),R(a,e.adler&65535)),me(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending===0?f:d):d}function Oe(e){var t;return!e||!e.state?p:(t=e.state.status,t!==ne&&t!==re&&t!==ie&&t!==ae&&t!==oe&&t!==se&&t!==ce?fe(e,p):(e.state=null,t===se?fe(e,m):d))}function ke(e,n){var i=n.length,a,o,s,c,l,u,f,m;if(!e||!e.state||(a=e.state,c=a.wrap,c===2||c===1&&a.status!==ne||a.lookahead))return p;for(c===1&&(e.adler=r(e.adler,n,i,0)),a.wrap=0,i>=a.w_size&&(c===0&&(pe(a.head),a.strstart=0,a.block_start=0,a.insert=0),m=new t.Buf8(a.w_size),t.arraySet(m,n,i-a.w_size,a.w_size,0),n=m,i=a.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=i,e.next_in=0,e.input=n,z(a);a.lookahead>=j;){o=a.strstart,s=a.lookahead-(j-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+j-1])&a.hash_mask,a.prev[o&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=o,o++;while(--s);a.strstart=o,a.lookahead=j-1,z(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=j-1,a.match_available=0,e.next_in=u,e.input=f,e.avail_in=l,a.wrap=c,d}e.deflateInit=Ee,e.deflateInit2=Te,e.deflateReset=Ce,e.deflateResetKeep=W,e.deflateSetHeader=we,e.deflate=De,e.deflateEnd=Oe,e.deflateSetDictionary=ke,e.deflateInfo=`pako deflate (from Nodeca project)`})),rc=t((e=>{var t=Zs(),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var i=new t.Buf8(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,e.string2buf=function(e){var n,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(n=new t.Buf8(c),o=0,a=0;o<c;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?n[o++]=r:r<2048?(n[o++]=192|r>>>6,n[o++]=128|r&63):r<65536?(n[o++]=224|r>>>12,n[o++]=128|r>>>6&63,n[o++]=128|r&63):(n[o++]=240|r>>>18,n[o++]=128|r>>>12&63,n[o++]=128|r>>>6&63,n[o++]=128|r&63);return n};function o(e,i){if(i<65534&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,t.shrinkBuf(e,i));for(var a=``,o=0;o<i;o++)a+=String.fromCharCode(e[o]);return a}e.buf2binstring=function(e){return o(e,e.length)},e.binstring2buf=function(e){for(var n=new t.Buf8(e.length),r=0,i=n.length;r<i;r++)n[r]=e.charCodeAt(r);return n},e.buf2string=function(e,t){var n,r,a,s,c=t||e.length,l=Array(c*2);for(r=0,n=0;n<c;){if(a=e[n++],a<128){l[r++]=a;continue}if(s=i[a],s>4){l[r++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<c;)a=a<<6|e[n++]&63,s--;if(s>1){l[r++]=65533;continue}a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|a&1023)}return o(l,r)},e.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+i[e[n]]>t?n:t}})),ic=t(((e,t)=>{function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=n})),ac=t((e=>{var t=nc(),n=Zs(),r=rc(),i=tc(),a=ic(),o=Object.prototype.toString,s=0,c=4,l=0,u=1,d=2,f=-1,p=0,m=8;function h(e){if(!(this instanceof h))return new h(e);this.options=n.assign({level:f,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:``},e||{});var s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var c=t.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(c!==l)throw Error(i[c]);if(s.header&&t.deflateSetHeader(this.strm,s.header),s.dictionary){var u=typeof s.dictionary==`string`?r.string2buf(s.dictionary):o.call(s.dictionary)===`[object ArrayBuffer]`?new Uint8Array(s.dictionary):s.dictionary;if(c=t.deflateSetDictionary(this.strm,u),c!==l)throw Error(i[c]);this._dict_set=!0}}h.prototype.push=function(e,i){var a=this.strm,f=this.options.chunkSize,p,m;if(this.ended)return!1;m=i===~~i?i:i===!0?c:s,a.input=typeof e==`string`?r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new n.Buf8(f),a.next_out=0,a.avail_out=f),p=t.deflate(a,m),p!==u&&p!==l)return this.onEnd(p),this.ended=!0,!1;(a.avail_out===0||a.avail_in===0&&(m===c||m===d))&&(this.options.to===`string`?this.onData(r.buf2binstring(n.shrinkBuf(a.output,a.next_out))):this.onData(n.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||a.avail_out===0)&&p!==u);return m===c?(p=t.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===l):m!==d||(this.onEnd(l),a.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===l&&(this.result=this.options.to===`string`?this.chunks.join(``):n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||i[n.err];return n.result}function _(e,t){return t||={},t.raw=!0,g(e,t)}function v(e,t){return t||={},t.gzip=!0,g(e,t)}e.Deflate=h,e.deflate=g,e.deflateRaw=_,e.gzip=v})),oc=t(((e,t)=>{t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;top:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];dolen:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b===0)E[a++]=y&65535;else if(b&16){x=y&65535,b&=15,b&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];dodist:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b&16){if(S=y&65535,b&=15,m<b&&(p+=T[r++]<<m,m+=8,m<b&&(p+=T[r++]<<m,m+=8)),S+=p&(1<<b)-1,S>c){e.msg=`invalid distance too far back`,n.mode=30;break top}if(p>>>=b,m-=b,b=a-o,S>b){if(b=S-b,b>u&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break top}if(C=0,w=f,d===0){if(C+=l-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,b-=d,b<x){x-=b;do E[a++]=f[C++];while(--b);if(C=0,d<x){b=d,x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}}else if(C+=d-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}for(;x>2;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],x>1&&(E[a++]=w[C++]))}else{C=a-S;do E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],x-=3;while(x>2);x&&(E[a++]=E[C++],x>1&&(E[a++]=E[C++]))}}else if(b&64){e.msg=`invalid distance code`,n.mode=30;break top}else{y=g[(y&65535)+(p&(1<<b)-1)];continue dodist}break}}else if(!(b&64)){y=h[(y&65535)+(p&(1<<b)-1)];continue dolen}else if(b&32){n.mode=12;break top}else{e.msg=`invalid literal/length code`,n.mode=30;break top}break}}while(r<i&&a<s);x=m>>3,r-=x,m-=x<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?5+(i-r):5-(r-i),e.avail_out=a<s?257+(s-a):257-(a-s),n.hold=p,n.bits=m}})),sc=t(((e,t)=>{var n=Zs(),r=15,i=852,a=592,o=0,s=1,c=2,l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,p,m,h,g,_,v){var y=v.bits,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,ee=0,O=0,k,A,j,M,N,te=null,ne=0,re,ie=new n.Buf16(r+1),ae=new n.Buf16(r+1),oe=null,se=0,ce,P,F;for(b=0;b<=r;b++)ie[b]=0;for(x=0;x<m;x++)ie[t[p+x]]++;for(w=y,C=r;C>=1&&ie[C]===0;C--);if(w>C&&(w=C),C===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(S=1;S<C&&ie[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=ie[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(ae[1]=0,b=1;b<r;b++)ae[b+1]=ae[b]+ie[b];for(x=0;x<m;x++)t[p+x]!==0&&(_[ae[t[p+x]]++]=x);if(e===o?(te=oe=_,re=19):e===s?(te=l,ne-=257,oe=u,se-=257,re=256):(te=d,oe=f,re=-1),O=0,x=0,b=S,N=g,T=w,E=0,j=-1,ee=1<<w,M=ee-1,e===s&&ee>i||e===c&&ee>a)return 1;for(;;){ce=b-E,_[x]<re?(P=0,F=_[x]):_[x]>re?(P=oe[se+_[x]],F=te[ne+_[x]]):(P=96,F=0),k=1<<b-E,A=1<<T,S=A;do A-=k,h[N+(O>>E)+A]=ce<<24|P<<16|F|0;while(A!==0);for(k=1<<b-1;O&k;)k>>=1;if(k===0?O=0:(O&=k-1,O+=k),x++,--ie[b]===0){if(b===C)break;b=t[p+_[x]]}if(b>w&&(O&M)!==j){for(E===0&&(E=w),N+=S,T=b-E,D=1<<T;T+E<C&&(D-=ie[T+E],!(D<=0));)T++,D<<=1;if(ee+=1<<T,e===s&&ee>i||e===c&&ee>a)return 1;j=O&M,h[j]=w<<24|T<<16|N-g|0}}return O!==0&&(h[N+O]=b-E<<24|4194304),v.bits=w,0}})),cc=t((e=>{var t=Zs(),n=$s(),r=ec(),i=oc(),a=sc(),o=0,s=1,c=2,l=4,u=5,d=6,f=0,p=1,m=2,h=-2,g=-3,_=-4,v=-5,y=8,b=1,x=2,S=3,C=4,w=5,T=6,E=7,D=8,ee=9,O=10,k=11,A=12,j=13,M=14,N=15,te=16,ne=17,re=18,ie=19,ae=20,oe=21,se=22,ce=23,P=24,F=25,le=26,ue=27,de=28,fe=29,I=30,pe=31,me=32,he=852,L=592,R=15;function ge(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function _e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function z(e){var n;return!e||!e.state?h:(n=e.state,e.total_in=e.total_out=n.total=0,e.msg=``,n.wrap&&(e.adler=n.wrap&1),n.mode=b,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new t.Buf32(he),n.distcode=n.distdyn=new t.Buf32(L),n.sane=1,n.back=-1,f)}function ve(e){var t;return!e||!e.state?h:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,z(e))}function B(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?h:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ve(e))}function ye(e,t){var n,r;return e?(r=new _e,e.state=r,r.window=null,n=B(e,t),n!==f&&(e.state=null),n):h}function V(e){return ye(e,R)}var H=!0,be,U;function xe(e){if(H){var n;for(be=new t.Buf32(512),U=new t.Buf32(32),n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(a(s,e.lens,0,288,be,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(c,e.lens,0,32,U,0,e.work,{bits:5}),H=!1}e.lencode=be,e.lenbits=9,e.distcode=U,e.distbits=5}function Se(e,n,r,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new t.Buf8(o.wsize)),i>=o.wsize?(t.arraySet(o.window,n,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),t.arraySet(o.window,n,r-i,a,o.wnext),i-=a,i?(t.arraySet(o.window,n,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function W(e,he){var L,R,_e,z,ve,B,ye,V,H,be,U,W,Ce,we,Te=0,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe=new t.Buf8(4),Fe,Ie,Le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return h;L=e.state,L.mode===A&&(L.mode=j),ve=e.next_out,_e=e.output,ye=e.avail_out,z=e.next_in,R=e.input,B=e.avail_in,V=L.hold,H=L.bits,be=B,U=ye,Ne=f;inf_leave:for(;;)switch(L.mode){case b:if(L.wrap===0){L.mode=j;break}for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(L.wrap&2&&V===35615){L.check=0,Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0),V=0,H=0,L.mode=x;break}if(L.flags=0,L.head&&(L.head.done=!1),!(L.wrap&1)||(((V&255)<<8)+(V>>8))%31){e.msg=`incorrect header check`,L.mode=I;break}if((V&15)!==y){e.msg=`unknown compression method`,L.mode=I;break}if(V>>>=4,H-=4,Me=(V&15)+8,L.wbits===0)L.wbits=Me;else if(Me>L.wbits){e.msg=`invalid window size`,L.mode=I;break}L.dmax=1<<Me,e.adler=L.check=1,L.mode=V&512?O:A,V=0,H=0;break;case x:for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(L.flags=V,(L.flags&255)!==y){e.msg=`unknown compression method`,L.mode=I;break}if(L.flags&57344){e.msg=`unknown header flags set`,L.mode=I;break}L.head&&(L.head.text=V>>8&1),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0)),V=0,H=0,L.mode=S;case S:for(;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.head&&(L.head.time=V),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,Pe[2]=V>>>16&255,Pe[3]=V>>>24&255,L.check=r(L.check,Pe,4,0)),V=0,H=0,L.mode=C;case C:for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.head&&(L.head.xflags=V&255,L.head.os=V>>8),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0)),V=0,H=0,L.mode=w;case w:if(L.flags&1024){for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.length=V,L.head&&(L.head.extra_len=V),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0)),V=0,H=0}else L.head&&(L.head.extra=null);L.mode=T;case T:if(L.flags&1024&&(W=L.length,W>B&&(W=B),W&&(L.head&&(Me=L.head.extra_len-L.length,L.head.extra||(L.head.extra=Array(L.head.extra_len)),t.arraySet(L.head.extra,R,z,W,Me)),L.flags&512&&(L.check=r(L.check,R,W,z)),B-=W,z+=W,L.length-=W),L.length))break inf_leave;L.length=0,L.mode=E;case E:if(L.flags&2048){if(B===0)break inf_leave;W=0;do Me=R[z+W++],L.head&&Me&&L.length<65536&&(L.head.name+=String.fromCharCode(Me));while(Me&&W<B);if(L.flags&512&&(L.check=r(L.check,R,W,z)),B-=W,z+=W,Me)break inf_leave}else L.head&&(L.head.name=null);L.length=0,L.mode=D;case D:if(L.flags&4096){if(B===0)break inf_leave;W=0;do Me=R[z+W++],L.head&&Me&&L.length<65536&&(L.head.comment+=String.fromCharCode(Me));while(Me&&W<B);if(L.flags&512&&(L.check=r(L.check,R,W,z)),B-=W,z+=W,Me)break inf_leave}else L.head&&(L.head.comment=null);L.mode=ee;case ee:if(L.flags&512){for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(V!==(L.check&65535)){e.msg=`header crc mismatch`,L.mode=I;break}V=0,H=0}L.head&&(L.head.hcrc=L.flags>>9&1,L.head.done=!0),e.adler=L.check=0,L.mode=A;break;case O:for(;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}e.adler=L.check=ge(V),V=0,H=0,L.mode=k;case k:if(L.havedict===0)return e.next_out=ve,e.avail_out=ye,e.next_in=z,e.avail_in=B,L.hold=V,L.bits=H,m;e.adler=L.check=1,L.mode=A;case A:if(he===u||he===d)break inf_leave;case j:if(L.last){V>>>=H&7,H-=H&7,L.mode=ue;break}for(;H<3;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}switch(L.last=V&1,V>>>=1,--H,V&3){case 0:L.mode=M;break;case 1:if(xe(L),L.mode=ae,he===d){V>>>=2,H-=2;break inf_leave}break;case 2:L.mode=ne;break;case 3:e.msg=`invalid block type`,L.mode=I}V>>>=2,H-=2;break;case M:for(V>>>=H&7,H-=H&7;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if((V&65535)!=(V>>>16^65535)){e.msg=`invalid stored block lengths`,L.mode=I;break}if(L.length=V&65535,V=0,H=0,L.mode=N,he===d)break inf_leave;case N:L.mode=te;case te:if(W=L.length,W){if(W>B&&(W=B),W>ye&&(W=ye),W===0)break inf_leave;t.arraySet(_e,R,z,W,ve),B-=W,z+=W,ye-=W,ve+=W,L.length-=W;break}L.mode=A;break;case ne:for(;H<14;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(L.nlen=(V&31)+257,V>>>=5,H-=5,L.ndist=(V&31)+1,V>>>=5,H-=5,L.ncode=(V&15)+4,V>>>=4,H-=4,L.nlen>286||L.ndist>30){e.msg=`too many length or distance symbols`,L.mode=I;break}L.have=0,L.mode=re;case re:for(;L.have<L.ncode;){for(;H<3;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.lens[Le[L.have++]]=V&7,V>>>=3,H-=3}for(;L.have<19;)L.lens[Le[L.have++]]=0;if(L.lencode=L.lendyn,L.lenbits=7,Fe={bits:L.lenbits},Ne=a(o,L.lens,0,19,L.lencode,0,L.work,Fe),L.lenbits=Fe.bits,Ne){e.msg=`invalid code lengths set`,L.mode=I;break}L.have=0,L.mode=ie;case ie:for(;L.have<L.nlen+L.ndist;){for(;Te=L.lencode[V&(1<<L.lenbits)-1],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(Oe<16)V>>>=Ee,H-=Ee,L.lens[L.have++]=Oe;else{if(Oe===16){for(Ie=Ee+2;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(V>>>=Ee,H-=Ee,L.have===0){e.msg=`invalid bit length repeat`,L.mode=I;break}Me=L.lens[L.have-1],W=3+(V&3),V>>>=2,H-=2}else if(Oe===17){for(Ie=Ee+3;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=Ee,H-=Ee,Me=0,W=3+(V&7),V>>>=3,H-=3}else{for(Ie=Ee+7;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=Ee,H-=Ee,Me=0,W=11+(V&127),V>>>=7,H-=7}if(L.have+W>L.nlen+L.ndist){e.msg=`invalid bit length repeat`,L.mode=I;break}for(;W--;)L.lens[L.have++]=Me}}if(L.mode===I)break;if(L.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,L.mode=I;break}if(L.lenbits=9,Fe={bits:L.lenbits},Ne=a(s,L.lens,0,L.nlen,L.lencode,0,L.work,Fe),L.lenbits=Fe.bits,Ne){e.msg=`invalid literal/lengths set`,L.mode=I;break}if(L.distbits=6,L.distcode=L.distdyn,Fe={bits:L.distbits},Ne=a(c,L.lens,L.nlen,L.ndist,L.distcode,0,L.work,Fe),L.distbits=Fe.bits,Ne){e.msg=`invalid distances set`,L.mode=I;break}if(L.mode=ae,he===d)break inf_leave;case ae:L.mode=oe;case oe:if(B>=6&&ye>=258){e.next_out=ve,e.avail_out=ye,e.next_in=z,e.avail_in=B,L.hold=V,L.bits=H,i(e,U),ve=e.next_out,_e=e.output,ye=e.avail_out,z=e.next_in,R=e.input,B=e.avail_in,V=L.hold,H=L.bits,L.mode===A&&(L.back=-1);break}for(L.back=0;Te=L.lencode[V&(1<<L.lenbits)-1],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(De&&!(De&240)){for(ke=Ee,Ae=De,je=Oe;Te=L.lencode[je+((V&(1<<ke+Ae)-1)>>ke)],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(ke+Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=ke,H-=ke,L.back+=ke}if(V>>>=Ee,H-=Ee,L.back+=Ee,L.length=Oe,De===0){L.mode=le;break}if(De&32){L.back=-1,L.mode=A;break}if(De&64){e.msg=`invalid literal/length code`,L.mode=I;break}L.extra=De&15,L.mode=se;case se:if(L.extra){for(Ie=L.extra;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.length+=V&(1<<L.extra)-1,V>>>=L.extra,H-=L.extra,L.back+=L.extra}L.was=L.length,L.mode=ce;case ce:for(;Te=L.distcode[V&(1<<L.distbits)-1],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(!(De&240)){for(ke=Ee,Ae=De,je=Oe;Te=L.distcode[je+((V&(1<<ke+Ae)-1)>>ke)],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(ke+Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=ke,H-=ke,L.back+=ke}if(V>>>=Ee,H-=Ee,L.back+=Ee,De&64){e.msg=`invalid distance code`,L.mode=I;break}L.offset=Oe,L.extra=De&15,L.mode=P;case P:if(L.extra){for(Ie=L.extra;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.offset+=V&(1<<L.extra)-1,V>>>=L.extra,H-=L.extra,L.back+=L.extra}if(L.offset>L.dmax){e.msg=`invalid distance too far back`,L.mode=I;break}L.mode=F;case F:if(ye===0)break inf_leave;if(W=U-ye,L.offset>W){if(W=L.offset-W,W>L.whave&&L.sane){e.msg=`invalid distance too far back`,L.mode=I;break}W>L.wnext?(W-=L.wnext,Ce=L.wsize-W):Ce=L.wnext-W,W>L.length&&(W=L.length),we=L.window}else we=_e,Ce=ve-L.offset,W=L.length;W>ye&&(W=ye),ye-=W,L.length-=W;do _e[ve++]=we[Ce++];while(--W);L.length===0&&(L.mode=oe);break;case le:if(ye===0)break inf_leave;_e[ve++]=L.length,ye--,L.mode=oe;break;case ue:if(L.wrap){for(;H<32;){if(B===0)break inf_leave;B--,V|=R[z++]<<H,H+=8}if(U-=ye,e.total_out+=U,L.total+=U,U&&(e.adler=L.check=L.flags?r(L.check,_e,U,ve-U):n(L.check,_e,U,ve-U)),U=ye,(L.flags?V:ge(V))!==L.check){e.msg=`incorrect data check`,L.mode=I;break}V=0,H=0}L.mode=de;case de:if(L.wrap&&L.flags){for(;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(V!==(L.total&4294967295)){e.msg=`incorrect length check`,L.mode=I;break}V=0,H=0}L.mode=fe;case fe:Ne=p;break inf_leave;case I:Ne=g;break inf_leave;case pe:return _;case me:default:return h}return e.next_out=ve,e.avail_out=ye,e.next_in=z,e.avail_in=B,L.hold=V,L.bits=H,(L.wsize||U!==e.avail_out&&L.mode<I&&(L.mode<ue||he!==l))&&Se(e,e.output,e.next_out,U-e.avail_out)?(L.mode=pe,_):(be-=e.avail_in,U-=e.avail_out,e.total_in+=be,e.total_out+=U,L.total+=U,L.wrap&&U&&(e.adler=L.check=L.flags?r(L.check,_e,U,e.next_out-U):n(L.check,_e,U,e.next_out-U)),e.data_type=L.bits+(L.last?64:0)+(L.mode===A?128:0)+(L.mode===ae||L.mode===N?256:0),(be===0&&U===0||he===l)&&Ne===f&&(Ne=v),Ne)}function Ce(e){if(!e||!e.state)return h;var t=e.state;return t.window&&=null,e.state=null,f}function we(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?h:(n.head=t,t.done=!1,f)}function Te(e,t){var r=t.length,i,a,o;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==k)?h:i.mode===k&&(a=1,a=n(a,t,r,0),a!==i.check)?g:(o=Se(e,t,r,r),o?(i.mode=pe,_):(i.havedict=1,f))}e.inflateReset=ve,e.inflateReset2=B,e.inflateResetKeep=z,e.inflateInit=V,e.inflateInit2=ye,e.inflate=W,e.inflateEnd=Ce,e.inflateGetHeader=we,e.inflateSetDictionary=Te,e.inflateInfo=`pako inflate (from Nodeca project)`})),lc=t(((e,t)=>{t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),uc=t(((e,t)=>{function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}t.exports=n})),dc=t((e=>{var t=cc(),n=Zs(),r=rc(),i=lc(),a=tc(),o=ic(),s=uc(),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:``},e||{});var u=this.options;u.raw&&u.windowBits>=0&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),u.windowBits>=0&&u.windowBits<16&&!(e&&e.windowBits)&&(u.windowBits+=32),u.windowBits>15&&u.windowBits<48&&(u.windowBits&15||(u.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,u.windowBits);if(d!==i.Z_OK||(this.header=new s,t.inflateGetHeader(this.strm,this.header),u.dictionary&&(typeof u.dictionary==`string`?u.dictionary=r.string2buf(u.dictionary):c.call(u.dictionary)===`[object ArrayBuffer]`&&(u.dictionary=new Uint8Array(u.dictionary)),u.raw&&(d=t.inflateSetDictionary(this.strm,u.dictionary),d!==i.Z_OK))))throw Error(a[d])}l.prototype.push=function(e,a){var o=this.strm,s=this.options.chunkSize,l=this.options.dictionary,u,d,f,p,m,h=!1;if(this.ended)return!1;d=a===~~a?a:a===!0?i.Z_FINISH:i.Z_NO_FLUSH,o.input=typeof e==`string`?r.binstring2buf(e):c.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,o.next_in=0,o.avail_in=o.input.length;do{if(o.avail_out===0&&(o.output=new n.Buf8(s),o.next_out=0,o.avail_out=s),u=t.inflate(o,i.Z_NO_FLUSH),u===i.Z_NEED_DICT&&l&&(u=t.inflateSetDictionary(this.strm,l)),u===i.Z_BUF_ERROR&&h===!0&&(u=i.Z_OK,h=!1),u!==i.Z_STREAM_END&&u!==i.Z_OK)return this.onEnd(u),this.ended=!0,!1;o.next_out&&(o.avail_out===0||u===i.Z_STREAM_END||o.avail_in===0&&(d===i.Z_FINISH||d===i.Z_SYNC_FLUSH))&&(this.options.to===`string`?(f=r.utf8border(o.output,o.next_out),p=o.next_out-f,m=r.buf2string(o.output,f),o.next_out=p,o.avail_out=s-p,p&&n.arraySet(o.output,o.output,f,p,0),this.onData(m)):this.onData(n.shrinkBuf(o.output,o.next_out))),o.avail_in===0&&o.avail_out===0&&(h=!0)}while((o.avail_in>0||o.avail_out===0)&&u!==i.Z_STREAM_END);return u===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(u=t.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===i.Z_OK):d!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),o.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){e===i.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}function d(e,t){return t||={},t.raw=!0,u(e,t)}e.Inflate=l,e.inflate=u,e.inflateRaw=d,e.ungzip=u})),fc=e(t(((e,t)=>{var n=Zs().assign,r=ac(),i=dc(),a=lc(),o={};n(o,r,i,a),t.exports=o}))()),Q={};Q.toRGBA8=function(e){var t=e.width,n=e.height;if(e.tabs.acTL==null)return[Q.toRGBA8.decodeImage(e.data,t,n,e).buffer];var r=[];e.frames[0].data??(e.frames[0].data=e.data);for(var i=t*n*4,a=new Uint8Array(i),o=new Uint8Array(i),s=new Uint8Array(i),c=0;c<e.frames.length;c++){var l=e.frames[c],u=l.rect.x,d=l.rect.y,f=l.rect.width,p=l.rect.height,m=Q.toRGBA8.decodeImage(l.data,f,p,e);if(c!=0)for(var h=0;h<i;h++)s[h]=a[h];if(l.blend==0?Q._copyTile(m,f,p,a,t,n,u,d,0):l.blend==1&&Q._copyTile(m,f,p,a,t,n,u,d,1),r.push(a.buffer.slice(0)),l.dispose!=0){if(l.dispose==1)Q._copyTile(o,f,p,a,t,n,u,d,0);else if(l.dispose==2)for(var h=0;h<i;h++)a[h]=s[h]}}return r},Q.toRGBA8.decodeImage=function(e,t,n,r){var i=t*n,a=Q.decode._getBPP(r),o=Math.ceil(t*a/8),s=new Uint8Array(i*4),c=new Uint32Array(s.buffer),l=r.ctype,u=r.depth,d=Q._bin.readUshort;if(l==6){var f=i<<2;if(u==8)for(var p=0;p<f;p+=4)s[p]=e[p],s[p+1]=e[p+1],s[p+2]=e[p+2],s[p+3]=e[p+3];if(u==16)for(var p=0;p<f;p++)s[p]=e[p<<1]}else if(l==2){var m=r.tabs.tRNS;if(m==null){if(u==8)for(var p=0;p<i;p++){var h=p*3;c[p]=255<<24|e[h+2]<<16|e[h+1]<<8|e[h]}if(u==16)for(var p=0;p<i;p++){var h=p*6;c[p]=255<<24|e[h+4]<<16|e[h+2]<<8|e[h]}}else{var g=m[0],_=m[1],v=m[2];if(u==8)for(var p=0;p<i;p++){var y=p<<2,h=p*3;c[p]=255<<24|e[h+2]<<16|e[h+1]<<8|e[h],e[h]==g&&e[h+1]==_&&e[h+2]==v&&(s[y+3]=0)}if(u==16)for(var p=0;p<i;p++){var y=p<<2,h=p*6;c[p]=255<<24|e[h+4]<<16|e[h+2]<<8|e[h],d(e,h)==g&&d(e,h+2)==_&&d(e,h+4)==v&&(s[y+3]=0)}}}else if(l==3){var b=r.tabs.PLTE,x=r.tabs.tRNS,S=x?x.length:0;if(u==1)for(var C=0;C<n;C++)for(var w=C*o,T=C*t,p=0;p<t;p++){var y=T+p<<2,E=e[w+(p>>3)]>>7-((p&7)<<0)&1,D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}if(u==2)for(var C=0;C<n;C++)for(var w=C*o,T=C*t,p=0;p<t;p++){var y=T+p<<2,E=e[w+(p>>2)]>>6-((p&3)<<1)&3,D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}if(u==4)for(var C=0;C<n;C++)for(var w=C*o,T=C*t,p=0;p<t;p++){var y=T+p<<2,E=e[w+(p>>1)]>>4-((p&1)<<2)&15,D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}if(u==8)for(var p=0;p<i;p++){var y=p<<2,E=e[p],D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}}else if(l==4){if(u==8)for(var p=0;p<i;p++){var y=p<<2,ee=p<<1,O=e[ee];s[y]=O,s[y+1]=O,s[y+2]=O,s[y+3]=e[ee+1]}if(u==16)for(var p=0;p<i;p++){var y=p<<2,ee=p<<2,O=e[ee];s[y]=O,s[y+1]=O,s[y+2]=O,s[y+3]=e[ee+2]}}else if(l==0)for(var g=r.tabs.tRNS?r.tabs.tRNS:-1,C=0;C<n;C++){var k=C*o,A=C*t;if(u==1)for(var j=0;j<t;j++){var O=255*(e[k+(j>>>3)]>>>7-(j&7)&1),M=O==g*255?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==2)for(var j=0;j<t;j++){var O=85*(e[k+(j>>>2)]>>>6-((j&3)<<1)&3),M=O==g*85?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==4)for(var j=0;j<t;j++){var O=17*(e[k+(j>>>1)]>>>4-((j&1)<<2)&15),M=O==g*17?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==8)for(var j=0;j<t;j++){var O=e[k+j],M=O==g?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==16)for(var j=0;j<t;j++){var O=e[k+(j<<1)],M=d(e,k+(j<<p))==g?0:255;c[A+j]=M<<24|O<<16|O<<8|O}}return s},Q.decode=function(e){for(var t=new Uint8Array(e),n=8,r=Q._bin,i=r.readUshort,a=r.readUint,o={tabs:{},frames:[]},s=new Uint8Array(t.length),c=0,l,u=0,d=[137,80,78,71,13,10,26,10],f=0;f<8;f++)if(t[f]!=d[f])throw`The input is not a PNG file!`;for(;n<t.length;){var p=r.readUint(t,n);n+=4;var m=r.readASCII(t,n,4);if(n+=4,m==`IHDR`)Q.decode._IHDR(t,n,o);else if(m==`IDAT`){for(var f=0;f<p;f++)s[c+f]=t[n+f];c+=p}else if(m==`acTL`)o.tabs[m]={num_frames:a(t,n),num_plays:a(t,n+4)},l=new Uint8Array(t.length);else if(m==`fcTL`){if(u!=0){var h=o.frames[o.frames.length-1];h.data=Q.decode._decompress(o,l.slice(0,u),h.rect.width,h.rect.height),u=0}var g={x:a(t,n+12),y:a(t,n+16),width:a(t,n+4),height:a(t,n+8)},_=i(t,n+22);_=i(t,n+20)/(_==0?100:_);var v={rect:g,delay:Math.round(_*1e3),dispose:t[n+24],blend:t[n+25]};o.frames.push(v)}else if(m==`fdAT`){for(var f=0;f<p-4;f++)l[u+f]=t[n+f+4];u+=p-4}else if(m==`pHYs`)o.tabs[m]=[r.readUint(t,n),r.readUint(t,n+4),t[n+8]];else if(m==`cHRM`){o.tabs[m]=[];for(var f=0;f<8;f++)o.tabs[m].push(r.readUint(t,n+f*4))}else if(m==`tEXt`){o.tabs[m]??(o.tabs[m]={});var y=r.nextZero(t,n),b=r.readASCII(t,n,y-n),x=r.readASCII(t,y+1,n+p-y-1);o.tabs[m][b]=x}else if(m==`iTXt`){o.tabs[m]??(o.tabs[m]={});var y=0,S=n;y=r.nextZero(t,S);var b=r.readASCII(t,S,y-S);S=y+1,t[S],t[S+1],S+=2,y=r.nextZero(t,S),r.readASCII(t,S,y-S),S=y+1,y=r.nextZero(t,S),r.readUTF8(t,S,y-S),S=y+1;var x=r.readUTF8(t,S,p-(S-n));o.tabs[m][b]=x}else if(m==`PLTE`)o.tabs[m]=r.readBytes(t,n,p);else if(m==`hIST`){var C=o.tabs.PLTE.length/3;o.tabs[m]=[];for(var f=0;f<C;f++)o.tabs[m].push(i(t,n+f*2))}else if(m==`tRNS`)o.ctype==3?o.tabs[m]=r.readBytes(t,n,p):o.ctype==0?o.tabs[m]=i(t,n):o.ctype==2&&(o.tabs[m]=[i(t,n),i(t,n+2),i(t,n+4)]);else if(m==`gAMA`)o.tabs[m]=r.readUint(t,n)/1e5;else if(m==`sRGB`)o.tabs[m]=t[n];else if(m==`bKGD`)o.ctype==0||o.ctype==4?o.tabs[m]=[i(t,n)]:o.ctype==2||o.ctype==6?o.tabs[m]=[i(t,n),i(t,n+2),i(t,n+4)]:o.ctype==3&&(o.tabs[m]=t[n]);else if(m==`IEND`)break;n+=p,r.readUint(t,n),n+=4}if(u!=0){var h=o.frames[o.frames.length-1];h.data=Q.decode._decompress(o,l.slice(0,u),h.rect.width,h.rect.height),u=0}return o.data=Q.decode._decompress(o,s,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o},Q.decode._decompress=function(e,t,n,r){var i=Q.decode._getBPP(e),a=Math.ceil(n*i/8),o=new Uint8Array((a+1+e.interlace)*r);return t=Q.decode._inflate(t,o),e.interlace==0?t=Q.decode._filterZero(t,e,0,n,r):e.interlace==1&&(t=Q.decode._readInterlace(t,e)),t},Q.decode._inflate=function(e,t){return Q.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},Q.inflateRaw=function(){var e={};return e.H={},e.H.N=function(t,n){var r=Uint8Array,i=0,a=0,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p,m;if(t[0]==3&&t[1]==0)return n||new r(0);var h=e.H,g=h.b,_=h.e,v=h.R,y=h.n,b=h.A,x=h.Z,S=h.m,C=n==null;for(C&&(n=new r(t.length>>>2<<3));i==0;){if(i=g(t,f,1),a=g(t,f+1,2),f+=3,a==0){f&7&&(f+=8-(f&7));var w=(f>>>3)+4,T=t[w-4]|t[w-3]<<8;C&&(n=e.H.W(n,d+T)),n.set(new r(t.buffer,t.byteOffset+w,T),d),f=w+T<<3,d+=T;continue}if(C&&(n=e.H.W(n,d+(1<<17))),a==1&&(p=S.J,m=S.h,l=511,u=31),a==2){o=_(t,f,5)+257,s=_(t,f+5,5)+1,c=_(t,f+10,4)+4,f+=14;for(var E=1,D=0;D<38;D+=2)S.Q[D]=0,S.Q[D+1]=0;for(var D=0;D<c;D++){var ee=_(t,f+D*3,3);S.Q[(S.X[D]<<1)+1]=ee,ee>E&&(E=ee)}f+=3*c,y(S.Q,E),b(S.Q,E,S.u),p=S.w,m=S.d,f=v(S.u,(1<<E)-1,o+s,t,f,S.v);var O=h.V(S.v,0,o,S.C);l=(1<<O)-1;var k=h.V(S.v,o,s,S.D);u=(1<<k)-1,y(S.C,O),b(S.C,O,p),y(S.D,k),b(S.D,k,m)}for(;;){var A=p[x(t,f)&l];f+=A&15;var j=A>>>4;if(!(j>>>8))n[d++]=j;else if(j==256)break;else{var M=d+j-254;if(j>264){var N=S.q[j-257];M=d+(N>>>3)+_(t,f,N&7),f+=N&7}var te=m[x(t,f)&u];f+=te&15;var ne=te>>>4,re=S.c[ne],ie=(re>>>4)+g(t,f,re&15);for(f+=re&15;d<M;)n[d]=n[d++-ie],n[d]=n[d++-ie],n[d]=n[d++-ie],n[d]=n[d++-ie];d=M}}}return n.length==d?n:n.slice(0,d)},e.H.W=function(e,t){var n=e.length;if(t<=n)return e;var r=new Uint8Array(n<<1);return r.set(e,0),r},e.H.R=function(t,n,r,i,a,o){for(var s=e.H.e,c=e.H.Z,l=0;l<r;){var u=t[c(i,a)&n];a+=u&15;var d=u>>>4;if(d<=15)o[l]=d,l++;else{var f=0,p=0;d==16?(p=3+s(i,a,2),a+=2,f=o[l-1]):d==17?(p=3+s(i,a,3),a+=3):d==18&&(p=11+s(i,a,7),a+=7);for(var m=l+p;l<m;)o[l]=f,l++}}return a},e.H.V=function(e,t,n,r){for(var i=0,a=0,o=r.length>>>1;a<n;){var s=e[a+t];r[a<<1]=0,r[(a<<1)+1]=s,s>i&&(i=s),a++}for(;a<o;)r[a<<1]=0,r[(a<<1)+1]=0,a++;return i},e.H.n=function(t,n){for(var r=e.H.m,i=t.length,a,o,s,c,l,u=r.j,c=0;c<=n;c++)u[c]=0;for(c=1;c<i;c+=2)u[t[c]]++;var d=r.K;for(a=0,u[0]=0,o=1;o<=n;o++)a=a+u[o-1]<<1,d[o]=a;for(s=0;s<i;s+=2)l=t[s+1],l!=0&&(t[s]=d[l],d[l]++)},e.H.A=function(t,n,r){for(var i=t.length,a=e.H.m.r,o=0;o<i;o+=2)if(t[o+1]!=0)for(var s=o>>1,c=t[o+1],l=s<<4|c,u=n-c,d=t[o]<<u,f=d+(1<<u);d!=f;){var p=a[d]>>>15-n;r[p]=l,d++}},e.H.l=function(t,n){for(var r=e.H.m.r,i=15-n,a=0;a<t.length;a+=2){var o=t[a]<<n-t[a+1];t[a]=r[o]>>>i}},e.H.M=function(e,t,n){n<<=t&7;var r=t>>>3;e[r]|=n,e[r+1]|=n>>>8},e.H.I=function(e,t,n){n<<=t&7;var r=t>>>3;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[(t>>>3)+1]<<8)>>>(t&7)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16|e[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){var e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),(function(){for(var t=e.H.m,n=32768,r=0;r<n;r++){var i=r;i=(i&2863311530)>>>1|(i&1431655765)<<1,i=(i&3435973836)>>>2|(i&858993459)<<2,i=(i&4042322160)>>>4|(i&252645135)<<4,i=(i&4278255360)>>>8|(i&16711935)<<8,t.r[r]=(i>>>16|i<<16)>>>17}function a(e,t,n){for(;t--!=0;)e.push(0,n)}for(var r=0;r<32;r++)t.q[r]=t.S[r]<<3|t.T[r],t.c[r]=t.p[r]<<4|t.z[r];a(t._,144,8),a(t._,112,9),a(t._,24,7),a(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),a(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),a(t.Q,19,0),a(t.C,286,0),a(t.D,30,0),a(t.v,320,0)})(),e.H.N}(),Q.decode._readInterlace=function(e,t){for(var n=t.width,r=t.height,i=Q.decode._getBPP(t),a=i>>3,o=Math.ceil(n*i/8),s=new Uint8Array(r*o),c=0,l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1],p=0;p<7;){for(var m=d[p],h=f[p],g=0,_=0,v=l[p];v<r;)v+=m,_++;for(var y=u[p];y<n;)y+=h,g++;var b=Math.ceil(g*i/8);Q.decode._filterZero(e,t,c,g,_);for(var x=0,S=l[p];S<r;){for(var C=u[p],w=c+x*b<<3;C<n;){if(i==1){var T=e[w>>3];T=T>>7-(w&7)&1,s[S*o+(C>>3)]|=T<<7-((C&7)<<0)}if(i==2){var T=e[w>>3];T=T>>6-(w&7)&3,s[S*o+(C>>2)]|=T<<6-((C&3)<<1)}if(i==4){var T=e[w>>3];T=T>>4-(w&7)&15,s[S*o+(C>>1)]|=T<<4-((C&1)<<2)}if(i>=8)for(var E=S*o+C*a,D=0;D<a;D++)s[E+D]=e[(w>>3)+D];w+=i,C+=h}x++,S+=m}g*_!=0&&(c+=_*(1+b)),p+=1}return s},Q.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},Q.decode._filterZero=function(e,t,n,r,i){var a=Q.decode._getBPP(t),o=Math.ceil(r*a/8),s=Q.decode._paeth;a=Math.ceil(a/8);var c=0,l=1,u=e[n],d=0;if(u>1&&(e[n]=[0,0,1][u-2]),u==3)for(d=a;d<o;d++)e[d+1]=e[d+1]+(e[d+1-a]>>>1)&255;for(var f=0;f<i;f++)if(c=n+f*o,l=c+f+1,u=e[l-1],d=0,u==0)for(;d<o;d++)e[c+d]=e[l+d];else if(u==1){for(;d<a;d++)e[c+d]=e[l+d];for(;d<o;d++)e[c+d]=e[l+d]+e[c+d-a]}else if(u==2)for(;d<o;d++)e[c+d]=e[l+d]+e[c+d-o];else if(u==3){for(;d<a;d++)e[c+d]=e[l+d]+(e[c+d-o]>>>1);for(;d<o;d++)e[c+d]=e[l+d]+(e[c+d-o]+e[c+d-a]>>>1)}else{for(;d<a;d++)e[c+d]=e[l+d]+s(0,e[c+d-o],0);for(;d<o;d++)e[c+d]=e[l+d]+s(e[c+d-a],e[c+d-o],e[c+d-a-o])}return e},Q.decode._paeth=function(e,t,n){var r=e+t-n,i=r-e,a=r-t,o=r-n;return i*i<=a*a&&i*i<=o*o?e:a*a<=o*o?t:n},Q.decode._IHDR=function(e,t,n){var r=Q._bin;n.width=r.readUint(e,t),t+=4,n.height=r.readUint(e,t),t+=4,n.depth=e[t],t++,n.ctype=e[t],t++,n.compress=e[t],t++,n.filter=e[t],t++,n.interlace=e[t],t++},Q._bin={nextZero:function(e,t){for(;e[t]!=0;)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,n){e[t]=n>>8&255,e[t+1]=n&255},readUint:function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255},readASCII:function(e,t,n){for(var r=``,i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r},writeASCII:function(e,t,n){for(var r=0;r<n.length;r++)e[t+r]=n.charCodeAt(r)},readBytes:function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e[t+i]);return r},pad:function(e){return e.length<2?`0`+e:e},readUTF8:function(e,t,n){for(var r=``,i,a=0;a<n;a++)r+=`%`+Q._bin.pad(e[t+a].toString(16));try{i=decodeURIComponent(r)}catch{return Q._bin.readASCII(e,t,n)}return i}},Q._copyTile=function(e,t,n,r,i,a,o,s,c){for(var l=Math.min(t,i),u=Math.min(n,a),d=0,f=0,p=0;p<u;p++)for(var m=0;m<l;m++)if(o>=0&&s>=0?(d=p*t+m<<2,f=(s+p)*i+o+m<<2):(d=(-s+p)*t-o+m<<2,f=p*i+m<<2),c==0)r[f]=e[d],r[f+1]=e[d+1],r[f+2]=e[d+2],r[f+3]=e[d+3];else if(c==1){var h=e[d+3]*(1/255),g=e[d]*h,_=e[d+1]*h,v=e[d+2]*h,y=r[f+3]*(1/255),b=r[f]*y,x=r[f+1]*y,S=r[f+2]*y,C=1-h,w=h+y*C,T=w==0?0:1/w;r[f+3]=255*w,r[f+0]=(g+b*C)*T,r[f+1]=(_+x*C)*T,r[f+2]=(v+S*C)*T}else if(c==2){var h=e[d+3],g=e[d],_=e[d+1],v=e[d+2],y=r[f+3],b=r[f],x=r[f+1],S=r[f+2];h==y&&g==b&&_==x&&v==S?(r[f]=0,r[f+1]=0,r[f+2]=0,r[f+3]=0):(r[f]=g,r[f+1]=_,r[f+2]=v,r[f+3]=h)}else if(c==3){var h=e[d+3],g=e[d],_=e[d+1],v=e[d+2],y=r[f+3],b=r[f],x=r[f+1],S=r[f+2];if(h==y&&g==b&&_==x&&v==S)continue;if(h<220&&y>20)return!1}return!0},Q.encode=function(e,t,n,r,i,a,o){r??=0,o??=!1;var s=Q.encode.compress(e,t,n,r,[!1,!1,!1,0,o]);return Q.encode.compressPNG(s,-1),Q.encode._main(s,t,n,i,a)},Q.encodeLL=function(e,t,n,r,i,a,o,s){for(var c={ctype:0+(r==1?0:2)+(i==0?0:4),depth:a,frames:[]},l=(r+i)*a,u=l*t,d=0;d<e.length;d++)c.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(u/8)});return Q.encode.compressPNG(c,0,!0),Q.encode._main(c,t,n,o,s)},Q.encode._main=function(e,t,n,r,i){i??={};var a=Q.crc.crc,o=Q._bin.writeUint,s=Q._bin.writeUshort,c=Q._bin.writeASCII,l=8,u=e.frames.length>1,d=!1,f=33+(u?20:0);if(i.sRGB!=null&&(f+=13),i.pHYs!=null&&(f+=21),e.ctype==3){for(var p=e.plte.length,m=0;m<p;m++)e.plte[m]>>>24!=255&&(d=!0);f+=8+p*3+4+(d?8+p*1+4:0)}for(var h=0;h<e.frames.length;h++){var g=e.frames[h];u&&(f+=38),f+=g.cimg.length+12,h!=0&&(f+=4)}f+=12;for(var _=new Uint8Array(f),v=[137,80,78,71,13,10,26,10],m=0;m<8;m++)_[m]=v[m];if(o(_,l,13),l+=4,c(_,l,`IHDR`),l+=4,o(_,l,t),l+=4,o(_,l,n),l+=4,_[l]=e.depth,l++,_[l]=e.ctype,l++,_[l]=0,l++,_[l]=0,l++,_[l]=0,l++,o(_,l,a(_,l-17,17)),l+=4,i.sRGB!=null&&(o(_,l,1),l+=4,c(_,l,`sRGB`),l+=4,_[l]=i.sRGB,l++,o(_,l,a(_,l-5,5)),l+=4),i.pHYs!=null&&(o(_,l,9),l+=4,c(_,l,`pHYs`),l+=4,o(_,l,i.pHYs[0]),l+=4,o(_,l,i.pHYs[1]),l+=4,_[l]=i.pHYs[2],l++,o(_,l,a(_,l-13,13)),l+=4),u&&(o(_,l,8),l+=4,c(_,l,`acTL`),l+=4,o(_,l,e.frames.length),l+=4,o(_,l,i.loop==null?0:i.loop),l+=4,o(_,l,a(_,l-12,12)),l+=4),e.ctype==3){var p=e.plte.length;o(_,l,p*3),l+=4,c(_,l,`PLTE`),l+=4;for(var m=0;m<p;m++){var y=m*3,b=e.plte[m],x=b&255,S=b>>>8&255,C=b>>>16&255;_[l+y+0]=x,_[l+y+1]=S,_[l+y+2]=C}if(l+=p*3,o(_,l,a(_,l-p*3-4,p*3+4)),l+=4,d){o(_,l,p),l+=4,c(_,l,`tRNS`),l+=4;for(var m=0;m<p;m++)_[l+m]=e.plte[m]>>>24&255;l+=p,o(_,l,a(_,l-p-4,p+4)),l+=4}}for(var w=0,h=0;h<e.frames.length;h++){var g=e.frames[h];u&&(o(_,l,26),l+=4,c(_,l,`fcTL`),l+=4,o(_,l,w++),l+=4,o(_,l,g.rect.width),l+=4,o(_,l,g.rect.height),l+=4,o(_,l,g.rect.x),l+=4,o(_,l,g.rect.y),l+=4,s(_,l,r[h]),l+=2,s(_,l,1e3),l+=2,_[l]=g.dispose,l++,_[l]=g.blend,l++,o(_,l,a(_,l-30,30)),l+=4);var T=g.cimg,p=T.length;o(_,l,p+(h==0?0:4)),l+=4;var E=l;c(_,l,h==0?`IDAT`:`fdAT`),l+=4,h!=0&&(o(_,l,w++),l+=4),_.set(T,l),l+=p,o(_,l,a(_,E,l-E)),l+=4}return o(_,l,0),l+=4,c(_,l,`IEND`),l+=4,o(_,l,a(_,l-4,4)),l+=4,_.buffer},Q.encode.compressPNG=function(e,t,n){for(var r=0;r<e.frames.length;r++){var i=e.frames[r];i.rect.width;var a=i.rect.height,o=new Uint8Array(a*i.bpl+a);i.cimg=Q.encode._filterZero(i.img,a,i.bpp,i.bpl,o,t,n)}},Q.encode.compress=function(e,t,n,r,i){for(var a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=6,d=8,f=255,p=0;p<e.length;p++)for(var m=new Uint8Array(e[p]),h=m.length,g=0;g<h;g+=4)f&=m[g+3];var _=f!=255,v=Q.encode.framize(e,t,n,a,o,s),y={},b=[],x=[];if(r!=0){for(var S=[],g=0;g<v.length;g++)S.push(v[g].img.buffer);for(var C=Q.encode.concatRGBA(S),w=Q.quantize(C,r),T=0,E=new Uint8Array(w.abuf),g=0;g<v.length;g++){var D=v[g].img,ee=D.length;x.push(new Uint8Array(w.inds.buffer,T>>2,ee>>2));for(var p=0;p<ee;p+=4)D[p]=E[T+p],D[p+1]=E[T+p+1],D[p+2]=E[T+p+2],D[p+3]=E[T+p+3];T+=ee}for(var g=0;g<w.plte.length;g++)b.push(w.plte[g].est.rgba)}else for(var p=0;p<v.length;p++){var O=v[p],k=new Uint32Array(O.img.buffer),A=O.rect.width,h=k.length,j=new Uint8Array(h);x.push(j);for(var g=0;g<h;g++){var M=k[g];if(g!=0&&M==k[g-1])j[g]=j[g-1];else if(g>A&&M==k[g-A])j[g]=j[g-A];else{var N=y[M];if(N==null&&(y[M]=N=b.length,b.push(M),b.length>=300))break;j[g]=N}}}var te=b.length;te<=256&&l==0&&(d=te<=2?1:te<=4?2:te<=16?4:8,d=Math.max(d,c));for(var p=0;p<v.length;p++){var O=v[p];O.rect.x,O.rect.y;var A=O.rect.width,ne=O.rect.height,re=O.img;new Uint32Array(re.buffer);var ie=4*A,ae=4;if(te<=256&&l==0){ie=Math.ceil(d*A/8);for(var oe=new Uint8Array(ie*ne),se=x[p],ce=0;ce<ne;ce++){var g=ce*ie,P=ce*A;if(d==8)for(var F=0;F<A;F++)oe[g+F]=se[P+F];else if(d==4)for(var F=0;F<A;F++)oe[g+(F>>1)]|=se[P+F]<<4-(F&1)*4;else if(d==2)for(var F=0;F<A;F++)oe[g+(F>>2)]|=se[P+F]<<6-(F&3)*2;else if(d==1)for(var F=0;F<A;F++)oe[g+(F>>3)]|=se[P+F]<<7-(F&7)*1}re=oe,u=3,ae=1}else if(_==0&&v.length==1){for(var oe=new Uint8Array(A*ne*3),le=A*ne,g=0;g<le;g++){var D=g*3,ue=g*4;oe[D]=re[ue],oe[D+1]=re[ue+1],oe[D+2]=re[ue+2]}re=oe,u=2,ae=3,ie=3*A}O.img=re,O.bpl=ie,O.bpp=ae}return{ctype:u,depth:d,plte:b,frames:v}},Q.encode.framize=function(e,t,n,r,i,a){for(var o=[],s=0;s<e.length;s++){var c=new Uint8Array(e[s]),l=new Uint32Array(c.buffer),u,d=0,f=0,p=t,m=n,h=+!!r;if(s!=0){for(var g=a||r||s==1||o[s-2].dispose!=0?1:2,_=0,v=1e9,y=0;y<g;y++){for(var b=new Uint8Array(e[s-1-y]),x=new Uint32Array(e[s-1-y]),S=t,C=n,w=-1,T=-1,E=0;E<n;E++)for(var D=0;D<t;D++){var ee=E*t+D;l[ee]!=x[ee]&&(D<S&&(S=D),D>w&&(w=D),E<C&&(C=E),E>T&&(T=E))}w==-1&&(S=C=w=T=0),i&&((S&1)==1&&S--,(C&1)==1&&C--);var O=(w-S+1)*(T-C+1);O<v&&(v=O,_=y,d=S,f=C,p=w-S+1,m=T-C+1)}var b=new Uint8Array(e[s-1-_]);_==1&&(o[s-1].dispose=2),u=new Uint8Array(p*m*4),Q._copyTile(b,t,n,u,p,m,-d,-f,0),h=+!!Q._copyTile(c,t,n,u,p,m,-d,-f,3),h==1?Q.encode._prepareDiff(c,t,n,u,{x:d,y:f,width:p,height:m}):Q._copyTile(c,t,n,u,p,m,-d,-f,0)}else u=c.slice(0);o.push({rect:{x:d,y:f,width:p,height:m},img:u,blend:h,dispose:0})}if(r)for(var s=0;s<o.length;s++){var k=o[s];if(k.blend!=1){var A=k.rect,j=o[s-1].rect,M=Math.min(A.x,j.x),N=Math.min(A.y,j.y),te=Math.max(A.x+A.width,j.x+j.width),ne=Math.max(A.y+A.height,j.y+j.height),re={x:M,y:N,width:te-M,height:ne-N};o[s-1].dispose=1,s-1!=0&&Q.encode._updateFrame(e,t,n,o,s-1,re,i),Q.encode._updateFrame(e,t,n,o,s,re,i)}}var ie=0;if(e.length!=1)for(var ee=0;ee<o.length;ee++){var k=o[ee];ie+=k.rect.width*k.rect.height}return o},Q.encode._updateFrame=function(e,t,n,r,i,a,o){for(var s=Uint8Array,c=Uint32Array,l=new s(e[i-1]),u=new c(e[i-1]),d=i+1<e.length?new s(e[i+1]):null,f=new s(e[i]),p=new c(f.buffer),m=t,h=n,g=-1,_=-1,v=0;v<a.height;v++)for(var y=0;y<a.width;y++){var b=a.x+y,x=a.y+v,S=x*t+b,C=p[S];C==0||r[i-1].dispose==0&&u[S]==C&&(d==null||d[S*4+3]!=0)||(b<m&&(m=b),b>g&&(g=b),x<h&&(h=x),x>_&&(_=x))}g==-1&&(m=h=g=_=0),o&&((m&1)==1&&m--,(h&1)==1&&h--),a={x:m,y:h,width:g-m+1,height:_-h+1};var w=r[i];w.rect=a,w.blend=1,w.img=new Uint8Array(a.width*a.height*4),r[i-1].dispose==0?(Q._copyTile(l,t,n,w.img,a.width,a.height,-a.x,-a.y,0),Q.encode._prepareDiff(f,t,n,w.img,a)):Q._copyTile(f,t,n,w.img,a.width,a.height,-a.x,-a.y,0)},Q.encode._prepareDiff=function(e,t,n,r,i){Q._copyTile(e,t,n,r,i.width,i.height,-i.x,-i.y,2)},Q.encode._filterZero=function(e,t,n,r,i,a,o){var s=[],c=[0,1,2,3,4];a==-1?(t*r>5e5||n==1)&&(c=[0]):c=[a];var l;o&&(l={level:0});for(var u=o&&UZIP!=null?UZIP:fc.default,d=0;d<c.length;d++){for(var f=0;f<t;f++)Q.encode._filterLine(i,e,f,r,n,c[d]);s.push(u.deflate(i,l))}for(var p,m=1e9,d=0;d<s.length;d++)s[d].length<m&&(p=d,m=s[d].length);return s[p]},Q.encode._filterLine=function(e,t,n,r,i,a){var o=n*r,s=o+n,c=Q.decode._paeth;if(e[s]=a,s++,a==0){if(r<500)for(var l=0;l<r;l++)e[s+l]=t[o+l];else e.set(new Uint8Array(t.buffer,o,r),s)}else if(a==1){for(var l=0;l<i;l++)e[s+l]=t[o+l];for(var l=i;l<r;l++)e[s+l]=t[o+l]-t[o+l-i]+256&255}else if(n==0){for(var l=0;l<i;l++)e[s+l]=t[o+l];if(a==2)for(var l=i;l<r;l++)e[s+l]=t[o+l];if(a==3)for(var l=i;l<r;l++)e[s+l]=t[o+l]-(t[o+l-i]>>1)+256&255;if(a==4)for(var l=i;l<r;l++)e[s+l]=t[o+l]-c(t[o+l-i],0,0)+256&255}else{if(a==2)for(var l=0;l<r;l++)e[s+l]=t[o+l]+256-t[o+l-r]&255;if(a==3){for(var l=0;l<i;l++)e[s+l]=t[o+l]+256-(t[o+l-r]>>1)&255;for(var l=i;l<r;l++)e[s+l]=t[o+l]+256-(t[o+l-r]+t[o+l-i]>>1)&255}if(a==4){for(var l=0;l<i;l++)e[s+l]=t[o+l]+256-c(0,t[o+l-r],0)&255;for(var l=i;l<r;l++)e[s+l]=t[o+l]+256-c(t[o+l-i],t[o+l-r],t[o+l-i-r])&255}}},Q.crc={table:(function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n&1?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e})(),update:function(e,t,n,r){for(var i=0;i<r;i++)e=Q.crc.table[(e^t[n+i])&255]^e>>>8;return e},crc:function(e,t,n){return Q.crc.update(4294967295,e,t,n)^4294967295}},Q.quantize=function(e,t){var n=new Uint8Array(e),r=n.slice(0),i=new Uint32Array(r.buffer),a=Q.quantize.getKDtree(r,t),o=a[0],s=a[1];Q.quantize.planeDst;for(var c=n,l=i,u=c.length,d=new Uint8Array(n.length>>2),f=0;f<u;f+=4){var p=c[f]*(1/255),m=c[f+1]*(1/255),h=c[f+2]*(1/255),g=c[f+3]*(1/255),_=Q.quantize.getNearest(o,p,m,h,g);d[f>>2]=_.ind,l[f>>2]=_.est.rgba}return{abuf:r.buffer,inds:d,plte:s}},Q.quantize.getKDtree=function(e,t,n){n??=1e-4;var r=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=Q.quantize.stats(e,i.i0,i.i1),i.est=Q.quantize.estats(i.bst);for(var a=[i];a.length<t;){for(var o=0,s=0,c=0;c<a.length;c++)a[c].est.L>o&&(o=a[c].est.L,s=c);if(o<n)break;var l=a[s],u=Q.quantize.splitPixels(e,r,l.i0,l.i1,l.est.e,l.est.eMq255);if(l.i0>=u||l.i1<=u){l.est.L=0;continue}var d={i0:l.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};d.bst=Q.quantize.stats(e,d.i0,d.i1),d.est=Q.quantize.estats(d.bst);var f={i0:u,i1:l.i1,bst:null,est:null,tdst:0,left:null,right:null};f.bst={R:[],m:[],N:l.bst.N-d.bst.N};for(var c=0;c<16;c++)f.bst.R[c]=l.bst.R[c]-d.bst.R[c];for(var c=0;c<4;c++)f.bst.m[c]=l.bst.m[c]-d.bst.m[c];f.est=Q.quantize.estats(f.bst),l.left=d,l.right=f,a[s]=d,a.push(f)}a.sort(function(e,t){return t.bst.N-e.bst.N});for(var c=0;c<a.length;c++)a[c].ind=c;return[i,a]},Q.quantize.getNearest=function(e,t,n,r,i){if(e.left==null)return e.tdst=Q.quantize.dist(e.est.q,t,n,r,i),e;var a=Q.quantize.planeDst(e.est,t,n,r,i),o=e.left,s=e.right;a>0&&(o=e.right,s=e.left);var c=Q.quantize.getNearest(o,t,n,r,i);if(c.tdst<=a*a)return c;var l=Q.quantize.getNearest(s,t,n,r,i);return l.tdst<c.tdst?l:c},Q.quantize.planeDst=function(e,t,n,r,i){var a=e.e;return a[0]*t+a[1]*n+a[2]*r+a[3]*i-e.eMq},Q.quantize.dist=function(e,t,n,r,i){var a=t-e[0],o=n-e[1],s=r-e[2],c=i-e[3];return a*a+o*o+s*s+c*c},Q.quantize.splitPixels=function(e,t,n,r,i,a){var o=Q.quantize.vecDot;for(r-=4;n<r;){for(;o(e,n,i)<=a;)n+=4;for(;o(e,r,i)>a;)r-=4;if(n>=r)break;var s=t[n>>2];t[n>>2]=t[r>>2],t[r>>2]=s,n+=4,r-=4}for(;o(e,n,i)>a;)n-=4;return n+4},Q.quantize.vecDot=function(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]},Q.quantize.stats=function(e,t,n){for(var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],a=n-t>>2,o=t;o<n;o+=4){var s=e[o]*(1/255),c=e[o+1]*(1/255),l=e[o+2]*(1/255),u=e[o+3]*(1/255);i[0]+=s,i[1]+=c,i[2]+=l,i[3]+=u,r[0]+=s*s,r[1]+=s*c,r[2]+=s*l,r[3]+=s*u,r[5]+=c*c,r[6]+=c*l,r[7]+=c*u,r[10]+=l*l,r[11]+=l*u,r[15]+=u*u}return r[4]=r[1],r[8]=r[2],r[9]=r[6],r[12]=r[3],r[13]=r[7],r[14]=r[11],{R:r,m:i,N:a}},Q.quantize.estats=function(e){var t=e.R,n=e.m,r=e.N,i=n[0],a=n[1],o=n[2],s=n[3],c=r==0?0:1/r,l=[t[0]-i*i*c,t[1]-i*a*c,t[2]-i*o*c,t[3]-i*s*c,t[4]-a*i*c,t[5]-a*a*c,t[6]-a*o*c,t[7]-a*s*c,t[8]-o*i*c,t[9]-o*a*c,t[10]-o*o*c,t[11]-o*s*c,t[12]-s*i*c,t[13]-s*a*c,t[14]-s*o*c,t[15]-s*s*c],u=l,d=Q.M4,f=[.5,.5,.5,.5],p=0,m=0;if(r!=0)for(var h=0;h<10&&(f=d.multVec(u,f),m=Math.sqrt(d.dot(f,f)),f=d.sml(1/m,f),!(Math.abs(m-p)<1e-9));h++)p=m;var g=[i*c,a*c,o*c,s*c],_=d.dot(d.sml(255,g),f);return{Cov:l,q:g,e:f,L:p,eMq255:_,eMq:d.dot(f,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},Q.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}},Q.encode.concatRGBA=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].byteLength;for(var r=new Uint8Array(t),i=0,n=0;n<e.length;n++){for(var a=new Uint8Array(e[n]),o=a.length,s=0;s<o;s+=4){var c=a[s],l=a[s+1],u=a[s+2],d=a[s+3];d==0&&(c=l=u=0),r[i+s]=c,r[i+s+1]=l,r[i+s+2]=u,r[i+s+3]=d}i+=o}return r.buffer};const pc=e=>{if(e===0)return hc.Greyscale;if(e===2)return hc.Truecolour;if(e===3)return hc.IndexedColour;if(e===4)return hc.GreyscaleWithAlpha;if(e===6)return hc.TruecolourWithAlpha;throw Error(`Unknown color type: ${e}`)},mc=e=>{let t=Math.floor(e.length/4),n=new Uint8Array(t*3),r=new Uint8Array(t*1),i=0,a=0,o=0;for(;i<e.length;)n[a++]=e[i++],n[a++]=e[i++],n[a++]=e[i++],r[o++]=e[i++];return{rgbChannel:n,alphaChannel:r}};var hc;(function(e){e.Greyscale=`Greyscale`,e.Truecolour=`Truecolour`,e.IndexedColour=`IndexedColour`,e.GreyscaleWithAlpha=`GreyscaleWithAlpha`,e.TruecolourWithAlpha=`TruecolourWithAlpha`})(hc||={});var gc=class{constructor(e){let t=Q.decode?Q:Q.default,n=e.buffer instanceof ArrayBuffer&&e.byteOffset===0&&e.byteLength===e.buffer.byteLength?e.buffer:e.buffer instanceof ArrayBuffer?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e.slice().buffer,r=t.decode(n),i=t.toRGBA8(r);if(i.length>1)throw Error(`Animated PNGs are not supported`);let a=new Uint8Array(i[0]),{rgbChannel:o,alphaChannel:s}=mc(a);this.rgbChannel=o,s.some(e=>e<255)&&(this.alphaChannel=s),this.type=pc(r.ctype),this.width=r.width,this.height=r.height,this.bitsPerComponent=8}};gc.load=e=>new gc(e);var _c=class e{static for(t){return jo(this,void 0,void 0,function*(){let n=gc.load(t);return new e(n)})}constructor(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace=`DeviceRGB`}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let n=this.embedAlphaChannel(e),r=e.flateStream(this.image.rgbChannel,{Type:`XObject`,Subtype:`Image`,BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:n});return t?(e.assign(t,r),t):e.register(r)})}embedAlphaChannel(e){if(!this.image.alphaChannel)return;let t=e.flateStream(this.image.alphaChannel,{Type:`XObject`,Subtype:`Image`,Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:`DeviceGray`,Decode:[0,1]});return e.register(t)}},vc=class e{constructor(e,t,n){this.bytes=e,this.start=t||0,this.pos=this.start,this.end=t&&n?t+n:this.bytes.length}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getUint16(){let e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){let e=this.getByte(),t=this.getByte(),n=this.getByte(),r=this.getByte();return(e<<24)+(t<<16)+(n<<8)+r}getBytes(e,t=!1){let n=this.bytes,r=this.pos,i=this.end;if(e){let a=r+e;a>i&&(a=i),this.pos=a;let o=n.subarray(r,a);return t?new Uint8ClampedArray(o):o}{let e=n.subarray(r,i);return t?new Uint8ClampedArray(e):e}}peekByte(){let e=this.getByte();return this.pos--,e}peekBytes(e,t=!1){let n=this.getBytes(e,t);return this.pos-=n.length,n}skip(e){e||=1,this.pos+=e}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,n){return new e(this.bytes,t,n)}decode(){return this.bytes}};const yc=new Uint8Array;var bc=class{constructor(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=yc,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}getByte(){let e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getUint16(){let e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){let e=this.getByte(),t=this.getByte(),n=this.getByte(),r=this.getByte();return(e<<24)+(t<<16)+(n<<8)+r}getBytes(e,t=!1){let n,r=this.pos;if(e){for(this.ensureBuffer(r+e),n=r+e;!this.eof&&this.bufferLength<n;)this.readBlock();let t=this.bufferLength;n>t&&(n=t)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;let i=this.buffer.subarray(r,n);return t&&!(i instanceof Uint8ClampedArray)?new Uint8ClampedArray(i):i}peekByte(){let e=this.getByte();return this.pos--,e}peekBytes(e,t=!1){let n=this.getBytes(e,t);return this.pos-=n.length,n}skip(e){e||=1,this.pos+=e}reset(){this.pos=0}makeSubStream(e,t){let n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock();return new vc(this.buffer,e,t)}decode(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)}readBlock(){throw new Tt(this.constructor.name,`readBlock`)}ensureBuffer(e){let t=this.buffer;if(e<=t.byteLength)return t;let n=this.minBufferLength;for(;n<e;)n*=2;let r=new Uint8Array(n);return r.set(t),this.buffer=r}};const xc=e=>e===32||e===9||e===13||e===10;var Sc=class extends bc{constructor(e,t){super(t),this.stream=e,this.input=new Uint8Array(5),t&&=.8*t}readBlock(){let e=this.stream,t=e.getByte();for(;xc(t);)t=e.getByte();if(t===-1||t===126){this.eof=!0;return}let n=this.bufferLength,r,i;if(t===122){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{let a=this.input;for(a[0]=t,i=1;i<5;++i){for(t=e.getByte();xc(t);)t=e.getByte();if(a[i]=t,t===-1||t===126)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)a[i]=117;this.eof=!0}let o=0;for(i=0;i<5;++i)o=o*85+(a[i]-33);for(i=3;i>=0;--i)r[n+i]=o&255,o>>=8}}},Cc=class extends bc{constructor(e,t){super(t),this.stream=e,this.firstDigit=-1,t&&=.5*t}readBlock(){let e=this.stream.getBytes(8e3);if(!e.length){this.eof=!0;return}let t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit;for(let t=0,a=e.length;t<a;t++){let a=e[t],o;if(a>=48&&a<=57)o=a&15;else if(a>=65&&a<=70||a>=97&&a<=102)o=(a&15)+9;else if(a===62){this.eof=!0;break}else continue;i<0?i=o:(n[r++]=i<<4|o,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}};const wc=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tc=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),Ec=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),Dc=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Oc=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];var kc=class extends bc{constructor(e,t){super(t),this.stream=e;let n=e.getByte(),r=e.getByte();if(n===-1||r===-1)throw Error(`Invalid header in flate stream: ${n}, ${r}`);if((n&15)!=8)throw Error(`Unknown compression method in flate stream: ${n}, ${r}`);if(((n<<8)+r)%31!=0)throw Error(`Bad FCHECK in flate stream: ${n}, ${r}`);if(r&32)throw Error(`FDICT bit set in flate stream: ${n}, ${r}`);this.codeSize=0,this.codeBuf=0}readBlock(){let e,t,n=this.stream,r=this.getBits(3);if(r&1&&(this.eof=!0),r>>=1,r===0){let t;if((t=n.getByte())===-1)throw Error(`Bad block header in flate stream`);let r=t;if((t=n.getByte())===-1||(r|=t<<8,(t=n.getByte())===-1))throw Error(`Bad block header in flate stream`);let i=t;if((t=n.getByte())===-1)throw Error(`Bad block header in flate stream`);if(i|=t<<8,i!==(~r&65535)&&(r!==0||i!==0))throw Error(`Bad uncompressed block length in flate stream`);this.codeBuf=0,this.codeSize=0;let a=this.bufferLength;e=this.ensureBuffer(a+r);let o=a+r;if(this.bufferLength=o,r===0)n.peekByte()===-1&&(this.eof=!0);else for(let r=a;r<o;++r){if((t=n.getByte())===-1){this.eof=!0;break}e[r]=t}return}let i,a;if(r===1)i=Dc,a=Oc;else if(r===2){let e=this.getBits(5)+257,n=this.getBits(5)+1,r=this.getBits(4)+4,o=new Uint8Array(wc.length),s;for(s=0;s<r;++s)o[wc[s]]=this.getBits(3);let c=this.generateHuffmanTable(o);t=0,s=0;let l=e+n,u=new Uint8Array(l),d,f,p;for(;s<l;){let e=this.getCode(c);if(e===16)d=2,f=3,p=t;else if(e===17)d=3,f=3,p=t=0;else if(e===18)d=7,f=11,p=t=0;else{u[s++]=t=e;continue}let n=this.getBits(d)+f;for(;n-->0;)u[s++]=p}i=this.generateHuffmanTable(u.subarray(0,e)),a=this.generateHuffmanTable(u.subarray(e,l))}else throw Error(`Unknown block type in flate stream`);e=this.buffer;let o=e?e.length:0,s=this.bufferLength;for(;;){let n=this.getCode(i);if(n<256){s+1>=o&&(e=this.ensureBuffer(s+1),o=e.length),e[s++]=n;continue}if(n===256){this.bufferLength=s;return}n-=257,n=Tc[n];let r=n>>16;r>0&&(r=this.getBits(r)),t=(n&65535)+r,n=this.getCode(a),n=Ec[n],r=n>>16,r>0&&(r=this.getBits(r));let c=(n&65535)+r;s+t>=o&&(e=this.ensureBuffer(s+t),o=e.length);for(let n=0;n<t;++n,++s)e[s]=e[s-c]}}getBits(e){let t=this.stream,n=this.codeSize,r=this.codeBuf,i;for(;n<e;){if((i=t.getByte())===-1)throw Error(`Bad encoding in flate stream`);r|=i<<n,n+=8}return i=r&(1<<e)-1,this.codeBuf=r>>e,this.codeSize=n-=e,i}getCode(e){let t=this.stream,n=e[0],r=e[1],i=this.codeSize,a=this.codeBuf,o;for(;i<r&&(o=t.getByte())!==-1;)a|=o<<i,i+=8;let s=n[a&(1<<r)-1];typeof n==`number`&&console.log(`FLATE:`,s);let c=s>>16,l=s&65535;if(c<1||i<c)throw Error(`Bad encoding in flate stream`);return this.codeBuf=a>>c,this.codeSize=i-c,l}generateHuffmanTable(e){let t=e.length,n=0,r;for(r=0;r<t;++r)e[r]>n&&(n=e[r]);let i=1<<n,a=new Int32Array(i);for(let o=1,s=0,c=2;o<=n;++o,s<<=1,c<<=1)for(let n=0;n<t;++n)if(e[n]===o){let e=0,t=s;for(r=0;r<o;++r)e=e<<1|t&1,t>>=1;for(r=e;r<i;r+=c)a[r]=o<<16|n;++s}return[a,n]}},Ac=class extends bc{constructor(e,t,n){super(t),this.stream=e,this.cachedData=0,this.bitsCached=0;let r=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e)i.dictionaryValues[e]=e,i.dictionaryLengths[e]=1;this.lzwState=i}readBlock(){let e=1024,t,n,r,i=this.lzwState;if(!i)return;let a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes,u=i.codeLength,d=i.prevCode,f=i.currentSequence,p=i.currentSequenceLength,m=0,h=this.bufferLength,g=this.ensureBuffer(this.bufferLength+e);for(t=0;t<512;t++){let t=this.readBits(u),i=p>0;if(!t||t<256)f[0]=t,p=1;else if(t>=258){if(t<o)for(p=c[t],n=p-1,r=t;n>=0;n--)f[n]=s[r],r=l[r];else f[p++]=f[0]}else if(t===256){u=9,o=258,p=0;continue}else{this.eof=!0,delete this.lzwState;break}if(i&&(l[o]=d,c[o]=c[d]+1,s[o]=f[0],o++,u=o+a&o+a-1?u:Math.min(Math.log(o+a)/.6931471805599453+1,12)|0),d=t,m+=p,e<m){do e+=512;while(e<m);g=this.ensureBuffer(this.bufferLength+e)}for(n=0;n<p;n++)g[h++]=f[n]}i.nextCode=o,i.codeLength=u,i.prevCode=d,i.currentSequenceLength=p,this.bufferLength=h}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t<e;){let e=this.stream.getByte();if(e===-1)return this.eof=!0,null;n=n<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=n,n>>>t&(1<<e)-1}},jc=class extends bc{constructor(e,t){super(t),this.stream=e}readBlock(){let e=this.stream.getBytes(2);if(!e||e.length<2||e[0]===128){this.eof=!0;return}let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){let e=this.stream.getBytes(r);t.set(e,n),n+=r}}else{r=257-r;let i=e[1];t=this.ensureBuffer(n+r+1);for(let e=0;e<r;e++)t[n++]=i}this.bufferLength=n}};const Mc=(e,t,n)=>{if(t===Y.of(`FlateDecode`))return new kc(e);if(t===Y.of(`LZWDecode`)){let t=1;if(n instanceof X){let e=n.lookup(Y.of(`EarlyChange`));e instanceof J&&(t=e.asNumber())}return new Ac(e,void 0,t)}if(t===Y.of(`ASCII85Decode`))return new Sc(e);if(t===Y.of(`ASCIIHexDecode`))return new Cc(e);if(t===Y.of(`RunLengthDecode`))return new jc(e);throw new Ot(t.asString())},Nc=({dict:e,contents:t,transform:n})=>{let r=new vc(t);n&&(r=n.createStream(r,t.length));let i=e.lookup(Y.of(`Filter`)),a=e.lookup(Y.of(`DecodeParms`));if(i instanceof Y)r=Mc(r,i,a);else if(i instanceof Qa)for(let e=0,t=i.size();e<t;e++)r=Mc(r,i.lookup(e,Y),a&&a.lookupMaybe(e,X));else if(i)throw new Dt([Y,Qa],i);return r},Pc=e=>{let t=e.MediaBox(),n=t.lookup(0,J).asNumber(),r=t.lookup(1,J).asNumber(),i=t.lookup(2,J).asNumber(),a=t.lookup(3,J).asNumber();return{left:Math.min(n,i),bottom:Math.min(r,a),right:Math.max(n,i),top:Math.max(r,a)}},Fc=e=>[1,0,0,1,-e.left,-e.bottom];var Ic=class e{static for(t,n,r){return jo(this,void 0,void 0,function*(){return new e(t,n,r)})}constructor(e,t,n){this.page=e;let r=t??Pc(e);this.width=r.right-r.left,this.height=r.top-r.bottom,this.boundingBox=r,this.transformationMatrix=n??Fc(r)}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let{Contents:n,Resources:r}=this.page.normalizedEntries();if(!n)throw new jt;let i=this.decodeContents(n),{left:a,bottom:o,right:s,top:c}=this.boundingBox,l=e.flateStream(i,{Type:`XObject`,Subtype:`Form`,FormType:1,BBox:[a,o,s,c],Matrix:this.transformationMatrix,Resources:r});return t?(e.assign(t,l),t):e.register(l)})}decodeContents(e){let t=Uint8Array.of(q.Newline),n=[];for(let r=0,i=e.size();r<i;r++){let i=e.lookup(r,uo),a;if(i instanceof fo)a=Nc(i).decode();else if(i instanceof xo)a=i.getUnencodedContents();else throw new Mt(i);n.push(a,t)}return te(...n)}};const Lc=new Uint8Array(256);Lc[q.Zero]=1,Lc[q.One]=1,Lc[q.Two]=1,Lc[q.Three]=1,Lc[q.Four]=1,Lc[q.Five]=1,Lc[q.Six]=1,Lc[q.Seven]=1,Lc[q.Eight]=1,Lc[q.Nine]=1;const Rc=new Uint8Array(256);Rc[q.Period]=1,Rc[q.Plus]=1,Rc[q.Minus]=1;const zc=new Uint8Array(256);for(let e=0;e<256;e++)zc[e]=Lc[e]||Rc[e]?1:0;const{Newline:Bc,CarriageReturn:Vc}=q;var Hc=class{constructor(e,t=!1){this.bytes=e,this.capNumbers=t}parseRawInt(){let e=``;for(;!this.bytes.done();){let t=this.bytes.peek();if(!Lc[t])break;e+=f(this.bytes.next())}let t=Number(e);if(!e||!isFinite(t))throw new Ut(this.bytes.position(),e);return t}parseRawNumber(){let e=``;for(;!this.bytes.done();){let t=this.bytes.peek();if(!zc[t]||(e+=f(this.bytes.next()),t===q.Period))break}for(;!this.bytes.done();){let t=this.bytes.peek();if(!Lc[t])break;e+=f(this.bytes.next())}let t=Number(e);if(!e||!isFinite(t))throw new Ut(this.bytes.position(),e);if(t>2**53-1){if(this.capNumbers){let t=`Parsed number that is too large for some PDF readers: ${e}, using Number.MAX_SAFE_INTEGER instead.`;return console.warn(t),2**53-1}{let t=`Parsed number that is too large for some PDF readers: ${e}, not capping.`;console.warn(t)}}return t}skipWhitespace(){for(;!this.bytes.done()&&no[this.bytes.peek()];)this.bytes.next()}skipLine(){for(;!this.bytes.done();){let e=this.bytes.peek();if(e===Bc||e===Vc)return;this.bytes.next()}}skipComment(){if(this.bytes.peek()!==q.Percent)return!1;for(;!this.bytes.done();){let e=this.bytes.peek();if(e===Bc||e===Vc)return!0;this.bytes.next()}return!0}skipWhitespaceAndComments(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()}matchKeyword(e){let t=this.bytes.offset();for(let n=0,r=e.length;n<r;n++)if(this.bytes.done()||this.bytes.next()!==e[n])return this.bytes.moveTo(t),!1;return!0}},Uc=class{constructor(e){this.idx=0,this.line=0,this.column=0,this.bytes=e,this.length=this.bytes.length}moveTo(e){this.idx=e}next(){let e=this.bytes[this.idx++];return e===q.Newline?(this.line+=1,this.column=0):this.column+=1,e}assertNext(e){if(this.peek()!==e)throw new Gt(this.position(),e,this.peek());return this.next()}peek(){return this.bytes[this.idx]}peekAhead(e){return this.bytes[this.idx+e]}peekAt(e){return this.bytes[e]}done(){return this.idx>=this.length}offset(){return this.idx}slice(e,t){return this.bytes.slice(e,t)}position(){return{line:this.line,column:this.column,offset:this.idx}}};Uc.of=e=>new Uc(e),Uc.fromPDFRawStream=e=>Uc.of(Nc(e).decode());const{Space:Wc,CarriageReturn:Gc,Newline:Kc}=q,qc=[q.s,q.t,q.r,q.e,q.a,q.m],Jc=[q.e,q.n,q.d,q.s,q.t,q.r,q.e,q.a,q.m],Yc={header:[q.Percent,q.P,q.D,q.F,q.Dash],eof:[q.Percent,q.Percent,q.E,q.O,q.F],obj:[q.o,q.b,q.j],endobj:[q.e,q.n,q.d,q.o,q.b,q.j],xref:[q.x,q.r,q.e,q.f],trailer:[q.t,q.r,q.a,q.i,q.l,q.e,q.r],startxref:[q.s,q.t,q.a,q.r,q.t,q.x,q.r,q.e,q.f],true:[q.t,q.r,q.u,q.e],false:[q.f,q.a,q.l,q.s,q.e],null:[q.n,q.u,q.l,q.l],stream:qc,streamEOF1:[...qc,Wc,Gc,Kc],streamEOF2:[...qc,Gc,Kc],streamEOF3:[...qc,Gc],streamEOF4:[...qc,Kc],endstream:Jc,EOF1endstream:[Gc,Kc,...Jc],EOF2endstream:[Gc,...Jc],EOF3endstream:[Kc,...Jc]};var Xc=class extends Hc{constructor(e,t,n=!1,r){super(e,n),this.context=t,this.cryptoFactory=r}parseObject(e){if(this.skipWhitespaceAndComments(),this.matchKeyword(Yc.true))return eo.True;if(this.matchKeyword(Yc.false))return eo.False;if(this.matchKeyword(Yc.null))return lo;let t=this.bytes.peek();if(t===q.LessThan&&this.bytes.peekAhead(1)===q.LessThan)return this.parseDictOrStream(e);if(t===q.LessThan)return this.parseHexString(e);if(t===q.LeftParen)return this.parseString(e);if(t===q.ForwardSlash)return this.parseName();if(t===q.LeftSquareBracket)return this.parseArray(e);if(zc[t])return this.parseNumberOrRef();throw new Kt(this.bytes.position(),t)}parseNumberOrRef(){let e=this.parseRawNumber();this.skipWhitespaceAndComments();let t=this.bytes.offset();if(Lc[this.bytes.peek()]){let t=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===q.R)return this.bytes.assertNext(q.R),ho.of(e,t)}return this.bytes.moveTo(t),J.of(e)}parseHexString(e){let t=``;for(this.bytes.assertNext(q.LessThan);!this.bytes.done()&&this.bytes.peek()!==q.GreaterThan;)t+=f(this.bytes.next());return this.bytes.assertNext(q.GreaterThan),this.cryptoFactory&&e&&(t=this.cryptoFactory.createCipherTransform(e.objectNumber,e.generationNumber).decryptBytes(Z.of(t).asBytes()).reduce((e,t)=>e+t.toString(16).padStart(2,`0`),``)),Z.of(t)}parseString(e){let t=0,n=!1,r=``;for(;!this.bytes.done();){let i=this.bytes.next();if(r+=f(i),n||(i===q.LeftParen&&(t+=1),i===q.RightParen&&--t),i===q.BackSlash?n=!n:n&&=!1,t===0){let t=r.substring(1,r.length-1);if(this.cryptoFactory&&e){let n=this.cryptoFactory.createCipherTransform(e.objectNumber,e.generationNumber).decryptBytes(go.of(t).asBytes());t=re(n)}return go.of(t)}}throw new Yt(this.bytes.position())}parseName(){this.bytes.assertNext(q.ForwardSlash);let e=``;for(;!this.bytes.done();){let t=this.bytes.peek();if(no[t]||to[t])break;e+=f(t),this.bytes.next()}return Y.of(io(e))}parseArray(e){this.bytes.assertNext(q.LeftSquareBracket),this.skipWhitespaceAndComments();let t=Qa.withContext(this.context);for(;this.bytes.peek()!==q.RightSquareBracket;){let n=this.parseObject(e);t.push(n),this.skipWhitespaceAndComments()}return this.bytes.assertNext(q.RightSquareBracket),t}parseDict(e){this.bytes.assertNext(q.LessThan),this.bytes.assertNext(q.LessThan),this.skipWhitespaceAndComments();let t=new Map;for(;!this.bytes.done()&&this.bytes.peek()!==q.GreaterThan&&this.bytes.peekAhead(1)!==q.GreaterThan;){let n=this.parseName(),r=this.parseObject(e);t.set(n,r),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(q.GreaterThan),this.bytes.assertNext(q.GreaterThan);let n=t.get(Y.of(`Type`));return n===Y.of(`Catalog`)?Os.fromMapWithContext(t,this.context):n===Y.of(`Pages`)?ks.fromMapWithContext(t,this.context):n===Y.of(`Page`)?Oo.fromMapWithContext(t,this.context):X.fromMapWithContext(t,this.context)}parseDictOrStream(e){let t=this.bytes.position(),n=this.parseDict(e);if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.streamEOF1)&&!this.matchKeyword(Yc.streamEOF2)&&!this.matchKeyword(Yc.streamEOF3)&&!this.matchKeyword(Yc.streamEOF4)&&!this.matchKeyword(Yc.stream))return n;let r=this.bytes.offset(),i,a=n.get(Y.of(`Length`));a instanceof J?(i=r+a.asNumber(),this.bytes.moveTo(i),this.skipWhitespaceAndComments(),this.matchKeyword(Yc.endstream)||(this.bytes.moveTo(r),i=this.findEndOfStreamFallback(t))):i=this.findEndOfStreamFallback(t);let o=this.bytes.slice(r,i);return this.cryptoFactory&&e&&(o=this.cryptoFactory.createCipherTransform(e.objectNumber,e.generationNumber).decryptBytes(o)),fo.of(n,o)}findEndOfStreamFallback(e){let t=1,n=this.bytes.offset();for(;!this.bytes.done()&&(n=this.bytes.offset(),this.matchKeyword(Yc.stream)?t+=1:this.matchKeyword(Yc.EOF1endstream)||this.matchKeyword(Yc.EOF2endstream)||this.matchKeyword(Yc.EOF3endstream)||this.matchKeyword(Yc.endstream)?--t:this.bytes.next(),t!==0););if(t!==0)throw new Jt(e);return n}};Xc.forBytes=(e,t,n)=>new Xc(Uc.of(e),t,n),Xc.forByteStream=(e,t,n=!1)=>new Xc(e,t,n);var Zc=class extends Xc{constructor(e,t){super(Uc.fromPDFRawStream(e),e.dict.context);let{dict:n}=e;this.alreadyParsed=!1,this.shouldWaitForTick=t||(()=>!1),this.firstOffset=n.lookup(Y.of(`First`),J).asNumber(),this.objectCount=n.lookup(Y.of(`N`),J).asNumber()}parseIntoContext(){return jo(this,void 0,void 0,function*(){if(this.alreadyParsed)throw new kt(`PDFObjectStreamParser`,`parseIntoContext`);this.alreadyParsed=!0;let e=this.parseOffsetsAndObjectNumbers();for(let t=0,n=e.length;t<n;t++){let{objectNumber:n,offset:r}=e[t];this.bytes.moveTo(this.firstOffset+r);let i=ho.of(n,0),a=this.parseObject(i);this.context.assign(i,a),this.shouldWaitForTick()&&(yield I())}})}parseOffsetsAndObjectNumbers(){let e=[];for(let t=0,n=this.objectCount;t<n;t++){this.skipWhitespaceAndComments();let t=this.parseRawInt();this.skipWhitespaceAndComments();let n=this.parseRawInt();e.push({objectNumber:t,offset:n})}return e}};Zc.forStream=(e,t)=>new Zc(e,t);var Qc=class{constructor(e){this.alreadyParsed=!1,this.dict=e.dict,this.bytes=Uc.fromPDFRawStream(e),this.context=this.dict.context,this.context.pdfFileDetails.useObjectStreams=!0;let t=this.dict.lookup(Y.of(`Size`),J),n=this.dict.lookup(Y.of(`Index`));if(n instanceof Qa){this.subsections=[];for(let e=0,t=n.size();e<t;e+=2){let t=n.lookup(e+0,J).asNumber(),r=n.lookup(e+1,J).asNumber();this.subsections.push({firstObjectNumber:t,length:r})}}else this.subsections=[{firstObjectNumber:0,length:t.asNumber()}];let r=this.dict.lookup(Y.of(`W`),Qa);this.byteWidths=[-1,-1,-1];for(let e=0,t=r.size();e<t;e++)this.byteWidths[e]=r.lookup(e,J).asNumber()}parseIntoContext(){if(this.alreadyParsed)throw new kt(`PDFXRefStreamParser`,`parseIntoContext`);this.alreadyParsed=!0;let e=this.context.trailerInfo;return this.context.trailerInfo={Size:this.dict.lookup(Y.of(`Size`),J)||e.Size,Root:this.dict.get(Y.of(`Root`))||e.Root,Encrypt:this.dict.get(Y.of(`Encrypt`))||e.Encrypt,Info:this.dict.get(Y.of(`Info`))||e.Info,ID:this.dict.get(Y.of(`ID`))||e.ID},this.context.trailerInfo.Size&&this.context.pdfFileDetails.originalBytes&&(this.context.largestObjectNumber=Math.max(this.context.largestObjectNumber,this.context.trailerInfo.Size.asNumber()-1)),this.parseEntries()}parseEntries(){let e=[],[t,n,r]=this.byteWidths;for(let i=0,a=this.subsections.length;i<a;i++){let{firstObjectNumber:a,length:o}=this.subsections[i];for(let i=0;i<o;i++){let o=0;for(let e=0,n=t;e<n;e++)o=o<<8|this.bytes.next();let s=0;for(let e=0,t=n;e<t;e++)s=s<<8|this.bytes.next();let c=0;for(let e=0,t=r;e<t;e++)c=c<<8|this.bytes.next();t===0&&(o=1);let l=a+i,u={ref:ho.of(l,o===2?0:c),offset:s,deleted:o===0,inObjectStream:o===2};e.push(u)}}return e}};Qc.forStream=e=>new Qc(e);var $c=class extends Xc{constructor(e,t=1/0,n=!1,r=!1,i=!1,a,o=!1){super(Uc.of(e),Do.create(),i,a),this.alreadyParsed=!1,this.parsedObjects=0,this.shouldWaitForTick=()=>(this.parsedObjects+=1,this.parsedObjects%this.objectsPerTick===0),this.objectsPerTick=t,this.throwOnInvalidObject=n,this.warnOnInvalidObjects=r,this.context.isDecrypted=!!a?.encryptionKey,this.context.pdfFileDetails.pdfSize=e.length,o&&(this.context.pdfFileDetails.originalBytes=e)}parseDocument(){return jo(this,void 0,void 0,function*(){if(this.alreadyParsed)throw new kt(`PDFParser`,`parseDocument`);this.alreadyParsed=!0,this.context.header=this.parseHeader();let e;for(;!this.bytes.done();){yield this.parseDocumentSection();let t=this.bytes.offset();if(t===e)throw new Xt(this.bytes.position());e=t}return this.maybeRecoverRoot(),this.context.lookup(ho.of(0))&&(console.warn(`Removing parsed object: 0 0 R`),this.context.delete(ho.of(0))),this.context})}maybeRecoverRoot(){let e=e=>e instanceof X&&e.lookup(Y.of(`Type`))===Y.of(`Catalog`);if(!e(this.context.lookup(this.context.trailerInfo.Root))){let t=this.context.enumerateIndirectObjects();for(let n=0,r=t.length;n<r;n++){let[r,i]=t[n];e(i)&&(this.context.trailerInfo.Root=r)}}}parseHeader(){for(;!this.bytes.done();){if(this.matchKeyword(Yc.header)){let e=this.parseRawInt();this.bytes.assertNext(q.Period);let t=this.parseRawInt(),n=Xa.forVersion(e,t);return this.skipBinaryHeaderComment(),n}this.bytes.next()}throw new Zt(this.bytes.position())}parseIndirectObjectHeader(){this.skipWhitespaceAndComments();let e=this.parseRawInt();this.skipWhitespaceAndComments();let t=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.obj))throw new Qt(this.bytes.position(),Yc.obj);return ho.of(e,t)}matchIndirectObjectHeader(){let e=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch{return this.bytes.moveTo(e),!1}}parseIndirectObject(){return jo(this,void 0,void 0,function*(){let e=this.parseIndirectObjectHeader();this.skipWhitespaceAndComments();let t=this.parseObject(e);return this.skipWhitespaceAndComments(),this.matchKeyword(Yc.endobj),t instanceof fo&&t.dict.lookup(Y.of(`Type`))===Y.of(`ObjStm`)?yield Zc.forStream(t,this.shouldWaitForTick).parseIntoContext():t instanceof fo&&t.dict.lookup(Y.of(`Type`))===Y.of(`XRef`)&&Qc.forStream(t).parseIntoContext(),this.context.assign(e,t),e})}tryToParseInvalidIndirectObject(){let e=this.bytes.position(),t=`Trying to parse invalid object: ${JSON.stringify(e)})`;if(this.throwOnInvalidObject)throw Error(t);this.warnOnInvalidObjects&&console.warn(t);let n=this.parseIndirectObjectHeader();this.warnOnInvalidObjects&&console.warn(`Invalid object ref: ${n}`),this.skipWhitespaceAndComments();let r=this.bytes.offset(),i=!0;for(;!this.bytes.done()&&(this.matchKeyword(Yc.endobj)&&(i=!1),i);)this.bytes.next();if(i){this.bytes.moveTo(r);return}let a=this.bytes.offset()-Yc.endobj.length,o=Bo.of(this.bytes.slice(r,a));return this.context.assign(n,o),n}parseIndirectObjects(){return jo(this,void 0,void 0,function*(){for(this.skipWhitespaceAndComments();!this.bytes.done()&&Lc[this.bytes.peek()];){let e=this.bytes.offset();try{yield this.parseIndirectObject()}catch{this.bytes.moveTo(e),this.tryToParseInvalidIndirectObject()}this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()&&(yield I())}})}maybeParseCrossRefSection(){if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.xref))return;this.skipWhitespaceAndComments();let e=-1,t=Mo.createEmpty();for(;!this.bytes.done()&&Lc[this.bytes.peek()];){let n=this.parseRawInt();if(this.skipWhitespaceAndComments(),!Lc[this.bytes.peek()])return Mo.createEmpty();let r=this.parseRawInt();this.skipWhitespaceAndComments();let i=this.bytes.peek();if(i===q.n||i===q.f){let i=ho.of(e,r);this.bytes.next()===q.n?t.addEntry(i,n):t.addDeletedEntry(i,n),e+=1}else e=n;this.skipWhitespaceAndComments()}return t}maybeParseTrailerDict(){if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.trailer))return;this.skipWhitespaceAndComments();let e=this.parseDict(),{context:t}=this;t.trailerInfo={Size:e.lookupMaybe(Y.of(`Size`),J)||t.trailerInfo.Size,Root:e.get(Y.of(`Root`))||t.trailerInfo.Root,Encrypt:e.get(Y.of(`Encrypt`))||t.trailerInfo.Encrypt,Info:e.get(Y.of(`Info`))||t.trailerInfo.Info,ID:e.get(Y.of(`ID`))||t.trailerInfo.ID},t.trailerInfo.Size&&t.pdfFileDetails.originalBytes&&(t.largestObjectNumber=Math.max(t.largestObjectNumber,t.trailerInfo.Size.asNumber()-1))}maybeParseTrailer(){if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.startxref))return;this.skipWhitespaceAndComments();let e=this.parseRawInt();return this.context.pdfFileDetails.prevStartXRef=e,this.skipWhitespace(),this.matchKeyword(Yc.eof),this.skipWhitespaceAndComments(),this.matchKeyword(Yc.eof),this.skipWhitespaceAndComments(),No.forLastCrossRefSectionOffset(e)}parseDocumentSection(){return jo(this,void 0,void 0,function*(){yield this.parseIndirectObjects(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish()})}skipJibberish(){for(this.skipWhitespaceAndComments();!this.bytes.done();){let e=this.bytes.offset(),t=this.bytes.peek();if(t>=q.Space&&t<=q.Tilde&&(this.matchKeyword(Yc.xref)||this.matchKeyword(Yc.trailer)||this.matchKeyword(Yc.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(e);break}this.bytes.next()}}skipBinaryHeaderComment(){this.skipWhitespaceAndComments();try{let e=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(e)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}}};$c.forBytesWithOptions=(e,t,n,r,i,a,o)=>new $c(e,t,n,r,i,a,o);var el=class extends bc{constructor(e,t,n){super(n),this.stream=e,this.decrypt=t,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.stream.getBytes(512),this.initialized=!0),!e||e.length===0){this.eof=!0;return}this.nextChunk=this.stream.getBytes(512);let t=this.nextChunk&&this.nextChunk.length>0,n=this.decrypt;e=n(e,!t);let r=this.bufferLength,i=r+e.length;this.ensureBuffer(i).set(e,r),this.bufferLength=i}};const tl=(e=``)=>{let t=e;try{t=unescape(encodeURIComponent(e))}catch{}return h(t).subarray(0,Math.min(127,t.length))};var nl=class{constructor(e){this.a=0,this.b=0;let t=new Uint8Array(256),n=e.length;for(let e=0;e<256;++e)t[e]=e;for(let r=0,i=0;r<256;++r){let a=t[r];i=i+a+e[r%n]&255,t[r]=t[i],t[i]=a}this.s=t}encryptBlock(e){let t=this.a,n=this.b,r=this.s,i=e.length,a=new Uint8Array(i);for(let o=0;o<i;++o){t=t+1&255;let i=r[t];n=n+i&255;let s=r[n];r[t]=s,r[n]=i,a[o]=e[o]^r[i+s&255]}return this.a=t,this.b=n,a}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}};const rl=(function(){let e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function n(n,r,i){let a=1732584193,o=-271733879,s=-1732584194,c=271733878,l=i+72&-64,u=new Uint8Array(l),d,f;for(d=0;d<i;++d)u[d]=n[r++];u[d++]=128;let p=l-8;for(;d<p;)u[d++]=0;u[d++]=i<<3&255,u[d++]=i>>5&255,u[d++]=i>>13&255,u[d++]=i>>21&255,u[d++]=i>>>29&255,u[d++]=0,u[d++]=0,u[d++]=0;let m=new Int32Array(16);for(d=0;d<l;){for(f=0;f<16;++f,d+=4)m[f]=u[d]|u[d+1]<<8|u[d+2]<<16|u[d+3]<<24;let n=a,r=o,i=s,l=c,p,h;for(f=0;f<64;++f){f<16?(p=r&i|~r&l,h=f):f<32?(p=l&r|~l&i,h=5*f+1&15):f<48?(p=r^i^l,h=3*f+5&15):(p=i^(r|~l),h=7*f&15);let a=l,o=n+p+t[f]+m[h]|0,s=e[f];l=i,i=r,r=r+(o<<s|o>>>32-s)|0,n=a}a=a+n|0,o=o+r|0,s=s+i|0,c=c+l|0}return new Uint8Array([a&255,a>>8&255,a>>16&255,a>>>24&255,o&255,o>>8&255,o>>16&255,o>>>24&255,s&255,s>>8&255,s>>16&255,s>>>24&255,c&255,c>>8&255,c>>16&255,c>>>24&255])}return n})();var $=class{constructor(e,t){this.high=e|0,this.low=t|0}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,n;e&32?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){let t=(this.low>>>0)+(e.low>>>0),n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=t|0,this.high=n|0}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=this.high&255,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=this.low&255}assign(e){this.high=e.high,this.low=e.low}};const il=(function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function a(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}let 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];function c(e,c,l){let u=1779033703,d=3144134277,f=1013904242,p=2773480762,m=1359893119,h=2600822924,g=528734635,_=1541459225,v=Math.ceil((l+9)/64)*64,y=new Uint8Array(v),b,x;for(b=0;b<l;++b)y[b]=e[c++];y[b++]=128;let S=v-8;for(;b<S;)y[b++]=0;y[b++]=0,y[b++]=0,y[b++]=0,y[b++]=l>>>29&255,y[b++]=l>>21&255,y[b++]=l>>13&255,y[b++]=l>>5&255,y[b++]=l<<3&255;let C=new Uint32Array(64);for(b=0;b<v;){for(x=0;x<16;++x)C[x]=y[b]<<24|y[b+1]<<16|y[b+2]<<8|y[b+3],b+=4;for(x=16;x<64;++x)C[x]=o(C[x-2])+C[x-7]+a(C[x-15])+C[x-16]|0;let e=u,c=d,l=f,v=p,S=m,w=h,T=g,E=_,D,ee;for(x=0;x<64;++x)D=E+i(S)+t(S,w,T)+s[x]+C[x],ee=r(e)+n(e,c,l),E=T,T=w,w=S,S=v+D|0,v=l,l=c,c=e,e=D+ee|0;u=u+e|0,d=d+c|0,f=f+l|0,p=p+v|0,m=m+S|0,h=h+w|0,g=g+T|0,_=_+E|0}return new Uint8Array([u>>24&255,u>>16&255,u>>8&255,u&255,d>>24&255,d>>16&255,d>>8&255,d&255,f>>24&255,f>>16&255,f>>8&255,f&255,p>>24&255,p>>16&255,p>>8&255,p&255,m>>24&255,m>>16&255,m>>8&255,m&255,h>>24&255,h>>16&255,h>>8&255,h&255,g>>24&255,g>>16&255,g>>8&255,g&255,_>>24&255,_>>16&255,_>>8&255,_&255])}return c})(),al=(function(){function e(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(r),e.xor(i)}function t(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.and(r),e.xor(i),i.assign(n),i.and(r),e.xor(i)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function a(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}let o=[new $(1116352408,3609767458),new $(1899447441,602891725),new $(3049323471,3964484399),new $(3921009573,2173295548),new $(961987163,4081628472),new $(1508970993,3053834265),new $(2453635748,2937671579),new $(2870763221,3664609560),new $(3624381080,2734883394),new $(310598401,1164996542),new $(607225278,1323610764),new $(1426881987,3590304994),new $(1925078388,4068182383),new $(2162078206,991336113),new $(2614888103,633803317),new $(3248222580,3479774868),new $(3835390401,2666613458),new $(4022224774,944711139),new $(264347078,2341262773),new $(604807628,2007800933),new $(770255983,1495990901),new $(1249150122,1856431235),new $(1555081692,3175218132),new $(1996064986,2198950837),new $(2554220882,3999719339),new $(2821834349,766784016),new $(2952996808,2566594879),new $(3210313671,3203337956),new $(3336571891,1034457026),new $(3584528711,2466948901),new $(113926993,3758326383),new $(338241895,168717936),new $(666307205,1188179964),new $(773529912,1546045734),new $(1294757372,1522805485),new $(1396182291,2643833823),new $(1695183700,2343527390),new $(1986661051,1014477480),new $(2177026350,1206759142),new $(2456956037,344077627),new $(2730485921,1290863460),new $(2820302411,3158454273),new $(3259730800,3505952657),new $(3345764771,106217008),new $(3516065817,3606008344),new $(3600352804,1432725776),new $(4094571909,1467031594),new $(275423344,851169720),new $(430227734,3100823752),new $(506948616,1363258195),new $(659060556,3750685593),new $(883997877,3785050280),new $(958139571,3318307427),new $(1322822218,3812723403),new $(1537002063,2003034995),new $(1747873779,3602036899),new $(1955562222,1575990012),new $(2024104815,1125592928),new $(2227730452,2716904306),new $(2361852424,442776044),new $(2428436474,593698344),new $(2756734187,3733110249),new $(3204031479,2999351573),new $(3329325298,3815920427),new $(3391569614,3928383900),new $(3515267271,566280711),new $(3940187606,3454069534),new $(4118630271,4000239992),new $(116418474,1914138554),new $(174292421,2731055270),new $(289380356,3203993006),new $(460393269,320620315),new $(685471733,587496836),new $(852142971,1086792851),new $(1017036298,365543100),new $(1126000580,2618297676),new $(1288033470,3409855158),new $(1501505948,4234509866),new $(1607167915,987167468),new $(1816402316,1246189591)];function s(s,c,l,u=!1){let d,f,p,m,h,g,_,v;u?(d=new $(3418070365,3238371032),f=new $(1654270250,914150663),p=new $(2438529370,812702999),m=new $(355462360,4144912697),h=new $(1731405415,4290775857),g=new $(2394180231,1750603025),_=new $(3675008525,1694076839),v=new $(1203062813,3204075428)):(d=new $(1779033703,4089235720),f=new $(3144134277,2227873595),p=new $(1013904242,4271175723),m=new $(2773480762,1595750129),h=new $(1359893119,2917565137),g=new $(2600822924,725511199),_=new $(528734635,4215389547),v=new $(1541459225,327033209));let y=Math.ceil((l+17)/128)*128,b=new Uint8Array(y),x,S;for(x=0;x<l;++x)b[x]=s[c++];b[x++]=128;let C=y-16;for(;x<C;)b[x++]=0;b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=l>>>29&255,b[x++]=l>>21&255,b[x++]=l>>13&255,b[x++]=l>>5&255,b[x++]=l<<3&255;let w=Array(80);for(x=0;x<80;x++)w[x]=new $(0,0);let T=new $(0,0),E=new $(0,0),D=new $(0,0),ee=new $(0,0),O=new $(0,0),k=new $(0,0),A=new $(0,0),j=new $(0,0),M=new $(0,0),N=new $(0,0),te=new $(0,0),ne=new $(0,0),re;for(x=0;x<y;){for(S=0;S<16;++S)w[S].high=b[x]<<24|b[x+1]<<16|b[x+2]<<8|b[x+3],w[S].low=b[x+4]<<24|b[x+5]<<16|b[x+6]<<8|b[x+7],x+=8;for(S=16;S<80;++S)re=w[S],a(re,w[S-2],ne),re.add(w[S-7]),i(te,w[S-15],ne),re.add(te),re.add(w[S-16]);for(T.assign(d),E.assign(f),D.assign(p),ee.assign(m),O.assign(h),k.assign(g),A.assign(_),j.assign(v),S=0;S<80;++S)M.assign(j),r(te,O,ne),M.add(te),e(te,O,k,A,ne),M.add(te),M.add(o[S]),M.add(w[S]),n(N,T,ne),t(te,T,E,D,ne),N.add(te),re=j,j=A,A=k,k=O,ee.add(M),O=ee,ee=D,D=E,E=T,re.assign(M),re.add(N),T=re;d.add(T),f.add(E),p.add(D),m.add(ee),h.add(O),g.add(k),_.add(A),v.add(j)}let ie;return u?(ie=new Uint8Array(48),d.copyTo(ie,0),f.copyTo(ie,8),p.copyTo(ie,16),m.copyTo(ie,24),h.copyTo(ie,32),g.copyTo(ie,40)):(ie=new Uint8Array(64),d.copyTo(ie,0),f.copyTo(ie,8),p.copyTo(ie,16),m.copyTo(ie,24),h.copyTo(ie,32),g.copyTo(ie,40),_.copyTo(ie,48),v.copyTo(ie,56)),ie}return s})();function ol(e,t,n){return al(e,t,n,!0)}var sl=class{decryptBlock(e){return e}encrypt(e){return e}},cl=class e{constructor(){if(this.constructor===e)throw Error(`Cannot initialize AESBaseCipher.`);this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)e<128?this._mixCol[e]=e<<1:this._mixCol[e]=e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){throw Error("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,r,i,a=new Uint8Array(16);a.set(e);for(let e=0,n=this._keySize;e<16;++e,++n)a[e]^=t[n];for(let e=this._cyclesOfRepetition-1;e>=1;--e){n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]];for(let n=0,r=e*16;n<16;++n,++r)a[n]^=t[r];for(let e=0;e<16;e+=4){let t=this._mix[a[e]],r=this._mix[a[e+1]],i=this._mix[a[e+2]],o=this._mix[a[e+3]];n=t^r>>>8^r<<24^i>>>16^i<<16^o>>>24^o<<8,a[e]=n>>>24&255,a[e+1]=n>>16&255,a[e+2]=n>>8&255,a[e+3]=n&255}}n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]],a[e]^=t[e];return a}_encrypt(e,t){let n=this._s,r,i,a,o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0;e<16;e+=4){let t=o[e+0],n=o[e+1],i=o[e+2],a=o[e+3];r=t^n^i^a,o[e+0]^=r^this._mixCol[t^n],o[e+1]^=r^this._mixCol[n^i],o[e+2]^=r^this._mixCol[i^a],o[e+3]^=r^this._mixCol[a^t]}for(let n=0,r=e*16;n<16;++n,++r)o[n]^=t[r]}for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0,n=this._keySize;e<16;++e,++n)o[e]^=t[n];return o}_decryptBlock2(e,t){let n=e.length,r=this.buffer,i=this.bufferPosition,a=[],o=this.iv;for(let t=0;t<n;++t){if(r[i]=e[t],++i,i<16)continue;let n=this._decrypt(r,this._key);for(let e=0;e<16;++e)n[e]^=o[e];o=r,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=o,a.length===0)return new Uint8Array;let s=16*a.length;if(t){let e=a[a.length-1],t=e[15];if(t<=16){for(let n=15,r=16-t;n>=r;--n)if(e[n]!==t){t=0;break}s-=t,a[a.length-1]=e.subarray(0,16-t)}}let c=new Uint8Array(s);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)c.set(a[e],t);return c}decryptBlock(e,t,n){let r=e.length,i=this.buffer,a=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;a<16&&t<r;++t,++a)i[a]=e[t];if(a<16)return this.bufferLength=a,new Uint8Array;this.iv=i,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){let n=e.length,r=this.buffer,i=this.bufferPosition,a=[];t||=new Uint8Array(16);for(let o=0;o<n;++o){if(r[i]=e[o],++i,i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];let n=this._encrypt(r,this._key);t=n,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=t,a.length===0)return new Uint8Array;let o=16*a.length,s=new Uint8Array(o);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)s.set(a[e],t);return s}},ll=class extends cl{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){let t=this._s,n=this._rcon,r=new Uint8Array(176);r.set(e);for(let e=16,i=1;e<176;++i){let a=r[e-3],o=r[e-2],s=r[e-1],c=r[e-4];a=t[a],o=t[o],s=t[s],c=t[c],a^=n[i];for(let t=0;t<4;++t)r[e]=a^=r[e-16],e++,r[e]=o^=r[e-16],e++,r[e]=s^=r[e-16],e++,r[e]=c^=r[e-16],e++}return r}},ul=class extends cl{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){let t=this._s,n=new Uint8Array(240);n.set(e);let r=1,i=0,a=0,o=0,s=0;for(let e=32,c=1;e<240;++c){e%32==16?(i=t[i],a=t[a],o=t[o],s=t[s]):e%32==0&&(i=n[e-3],a=n[e-2],o=n[e-1],s=n[e-4],i=t[i],a=t[a],o=t[o],s=t[s],i^=r,(r<<=1)>=256&&(r=(r^27)&255));for(let t=0;t<4;++t)n[e]=i^=n[e-32],e++,n[e]=a^=n[e-32],e++,n[e]=o^=n[e-32],e++,n[e]=s^=n[e-32],e++}return n}},dl=class{checkOwnerPassword(e,t,n,r){let i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);let a=il(i,0,i.length);return oe(a,r)}checkUserPassword(e,t,n){let r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);let i=il(r,0,r.length);return oe(i,n)}getOwnerKey(e,t,n,r){let i=new Uint8Array(e.length+56);return i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length),new ul(il(i,0,i.length)).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){let r=new Uint8Array(e.length+8);return r.set(e,0),r.set(t,e.length),new ul(il(r,0,r.length)).decryptBlock(n,!1,new Uint8Array(16))}};const fl=(()=>{let e=null,t=e=>Array.from(e).map(d).join(``);return()=>{var n;if(e!==null)return e;try{let r=((n=globalThis.process)?.getBuiltinModule)?.call(n,`crypto`);if(typeof r?.createHash!=`function`||typeof r?.createCipheriv!=`function`){e=void 0;return}let i={hash:(e,t)=>new Uint8Array(r.createHash(e).update(t).digest()),aes128CbcNoPadding:(e,t,n)=>{let i=r.createCipheriv(`aes-128-cbc`,e,t);i.setAutoPadding(!1);let a=i.update(n),o=i.final(),s=new Uint8Array(a.length+o.length);return s.set(a,0),s.set(o,a.length),s}},a=new Uint8Array,o=new Uint8Array(16);return e=t(i.hash(`sha256`,a))===`E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855`&&t(i.hash(`sha384`,a))===`38B060A751AC96384CD9327EB1B1E36A21FDB71114BE07434C0CC7BF63F6E1DA274EDEBFE76F65FBD51AD2F14898B95B`&&t(i.hash(`sha512`,a))===`CF83E1357EEFB8BDF1542850D66D8007D620E4050B5715DC83F4A921D36CE9CE47D0D13C5D85F2B0FF8318D2877EEC2F63B931BD47417A81A538327AF927DA3E`&&t(i.aes128CbcNoPadding(o,o,o))===`66E94BD4EF8A2C3B884CFA59CA342B2E`?i:void 0}catch{e=void 0;return}}})(),pl=(e,t)=>e===`sha256`?il(t,0,t.length):e===`sha384`?ol(t,0,t.length):al(t,0,t.length),ml=(e,t,n)=>new ll(e).encrypt(n,t);var hl=class{calculatePDF20Hash(e,t,n){let r=fl(),i=r?r.hash:pl,a=r?r.aes128CbcNoPadding:ml,o=i(`sha256`,t).subarray(0,32),s=new Uint8Array([0]),c=0;for(;c<64||s[s.length-1]>c-32;){let t=e.length+o.length+n.length,r=new Uint8Array(t);r.set(e,0),r.set(o,e.length),r.set(n,e.length+o.length);let l=new Uint8Array(t*64);for(let e=0,n=0;e<64;e++,n+=t)l.set(r,n);s=a(o.subarray(0,16),o.subarray(16,32),l);let u=s.slice(0,16).reduce((e,t)=>e+t,0)%3;o=i(u===0?`sha256`:u===1?`sha384`:`sha512`,s),c++}return o.subarray(0,32)}hash(e,t,n){return this.calculatePDF20Hash(e,t,n)}checkOwnerPassword(e,t,n,r){let i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);let a=this.calculatePDF20Hash(e,i,n);return oe(a,r)}checkUserPassword(e,t,n){let r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);let i=this.calculatePDF20Hash(e,r,new Uint8Array);return oe(i,n)}getOwnerKey(e,t,n,r){let i=new Uint8Array(e.length+56);return i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length),new ul(this.calculatePDF20Hash(e,i,n)).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){let r=new Uint8Array(e.length+8);return r.set(e,0),r.set(t,e.length),new ul(this.calculatePDF20Hash(e,r,new Uint8Array)).decryptBlock(n,!1,new Uint8Array(16))}},gl=class{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){let n=this.StreamCipherConstructor();return new el(e,function(e,t){return n.decryptBlock(e,t)},t)}decryptString(e){let t=this.StringCipherConstructor(),n=h(e);return n=t.decryptBlock(n,!0),re(n)}decryptBytes(e){return this.StringCipherConstructor().decryptBlock(e,!0)}encryptString(e){let t=this.StringCipherConstructor();if(t instanceof cl){let n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);let r=new Uint8Array(16);if(typeof crypto<`u`)crypto.getRandomValues(r);else for(let e=0;e<16;e++)r[e]=Math.floor(256*Math.random());let i=h(e);i=t.encrypt(i,r);let a=new Uint8Array(16+i.length);return a.set(r),a.set(i,16),re(a)}let n=h(e);return n=t.encrypt(n),re(n)}},_l=class{constructor(e,t,n){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=Y.of(`Identity`);let r=e.get(Y.of(`Filter`));if(r.asString()!==`/Standard`)throw Error(`unknown encryption method`);this.filterName=r.asString(),this.dict=e;let i=e.get(Y.of(`V`)).asNumber();if(!Number.isInteger(i)||i!==1&&i!==2&&i!==4&&i!==5)throw Error(`unsupported encryption algorithm`);this.algorithm=i;let a=e.get(Y.of(`Length`))?.asNumber();if(!a){if(i<=3)a=40;else{let t=e.get(Y.of(`CF`)),n=e.get(Y.of(`StmF`));if(t instanceof X&&n instanceof Y){t.suppressEncryption=!0;let e=t.get(Y.of(n.asString())),r=null;e&&(r=e.get(Y.of(`Length`))),a=r&&r.asNumber()||128,a<40&&(a<<=3)}}}if(a===void 0||!Number.isInteger(a)||a<40||a%8!=0)throw Error(`invalid key length: ${a}`);let o=e.get(Y.of(`O`)).asBytes(),s=e.get(Y.of(`U`)).asBytes(),c=o.subarray(0,32),l=s.subarray(0,32),u=e.get(Y.of(`P`)).asNumber(),d=e.get(Y.of(`R`)).asNumber(),f=(i===4||i===5)&&e.get(Y.of(`EncryptMetadata`))?.asBoolean()!==!1;this.encryptMetadata=f;let p;n&&(p=d===6?tl(n):h(n));let m;if(i!==5)m=this.prepareKeyData(t,p,c,l,u,d,a,f);else{let t=o.subarray(32,40),n=o.subarray(40,48),r=s.subarray(0,48),i=s.subarray(32,40),a=s.subarray(40,48),u=e.get(Y.of(`OE`)).asBytes(),f=e.get(Y.of(`UE`)).asBytes(),h=e.get(Y.of(`Perms`)).asBytes();m=this.createEncryptionKey20(d,p,c,t,n,r,l,i,a,u,f,h)}if(!m&&!n)throw Error(`NEEDS PASSWORD`);if(!m&&n){let e=this.decodeUserPassword(p,c,d,a);m=this.prepareKeyData(t,e,c,l,u,d,a,f)}if(!m)throw Error(`Password incorrect`);if(this.encryptionKey=m,i>=4){let t=e.get(Y.of(`CF`));t instanceof X&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get(Y.of(`StmF`))||this.identityName,this.strf=e.get(Y.of(`StrF`))||this.identityName,this.eff=e.get(Y.of(`EFF`))||this.stmf}}createCipherTransform(e,t){if(this.algorithm===4||this.algorithm===5)return new gl(this.buildCipherConstructor(this.cf,this.strf,e,t,this.encryptionKey),this.buildCipherConstructor(this.cf,this.stmf,e,t,this.encryptionKey));let n=this.buildObjectKey(e,t,this.encryptionKey,!1),r=function(){return new nl(n)};return new gl(r,r)}createEncryptionKey20(e,t,n,r,i,a,o,s,c,l,u,d){if(t){let e=Math.min(127,t.length);t=t.subarray(0,e)}else t=new Uint8Array;let f;return f=e===6?new hl:new dl,f.checkUserPassword(t,s,o)?f.getUserKey(t,c,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,l):null}prepareKeyData(e,t,n,r,i,a,o,s){let c=40+n.length+e.length,l=new Uint8Array(c),u=0,d,f;if(t)for(f=Math.min(32,t.length);u<f;++u)l[u]=t[u];for(d=0;u<32;)l[u++]=this.defaultPasswordBytes[d++];for(d=0,f=n.length;d<f;++d)l[u++]=n[d];for(l[u++]=i&255,l[u++]=i>>8&255,l[u++]=i>>16&255,l[u++]=i>>>24&255,d=0,f=e.length;d<f;++d)l[u++]=e[d];a>=4&&!s&&(l[u++]=255,l[u++]=255,l[u++]=255,l[u++]=255);let p=rl(l,0,u),m=o>>3;if(a>=3)for(d=0;d<50;++d)p=rl(p,0,m);let h=p.subarray(0,m),g,_;if(a>=3){for(u=0;u<32;++u)l[u]=this.defaultPasswordBytes[u];for(d=0,f=e.length;d<f;++d)l[u++]=e[d];g=new nl(h),_=g.encryptBlock(rl(l,0,u)),f=h.length;let t=new Uint8Array(f);for(d=1;d<=19;++d){for(let e=0;e<f;++e)t[e]=h[e]^d;g=new nl(t),_=g.encryptBlock(_)}for(d=0,f=_.length;d<f;++d)if(r[d]!==_[d])return null}else for(g=new nl(h),_=g.encryptBlock(this.defaultPasswordBytes),d=0,f=_.length;d<f;++d)if(r[d]!==_[d])return null;return h}decodeUserPassword(e,t,n,r){let i=new Uint8Array(32),a=0,o=Math.min(32,e.length);for(;a<o;++a)i[a]=e[a];let s=0;for(;a<32;)i[a++]=this.defaultPasswordBytes[s++];let c=rl(i,0,a),l=r>>3;if(n>=3)for(s=0;s<50;++s)c=rl(c,0,c.length);let u,d;if(n>=3){d=t;let e=new Uint8Array(l);for(s=19;s>=0;s--){for(let t=0;t<l;++t)e[t]=c[t]^s;u=new nl(e),d=u.encryptBlock(d)}}else u=new nl(c.subarray(0,l)),d=u.encryptBlock(t);return d}buildObjectKey(e,t,n,r=!1){let i=new Uint8Array(n.length+9),a=n.length,o;for(o=0;o<a;++o)i[o]=n[o];return i[o++]=e&255,i[o++]=e>>8&255,i[o++]=e>>16&255,i[o++]=t&255,i[o++]=t>>8&255,r&&(i[o++]=115,i[o++]=65,i[o++]=108,i[o++]=84),rl(i,0,o).subarray(0,Math.min(n.length+5,16))}buildCipherConstructor(e,t,n,r,i){if(!(t instanceof Y))throw Error(`Invalid crypt filter name.`);let a=e.get(Y.of(t.asString().replace(`/`,``))),o;if(a!=null&&(o=a.get(Y.of(`CFM`))),!o||o.asString()===`/None`)return function(){return new sl};if(o.asString()===`/V2`)return()=>new nl(this.buildObjectKey(n,r,i,!1));if(o.asString()===`/AESV2`)return()=>new ll(this.buildObjectKey(n,r,i,!0));if(o.asString()===`/AESV3`)return()=>new ul(i);throw Error(`Unknown crypto method`)}};const vl={"AES-256":{V:5,R:6,keyBits:256,minimumVersion:[1,7],weak:!1},"AES-128":{V:4,R:4,keyBits:128,minimumVersion:[1,6],weak:!1},"RC4-128":{V:2,R:3,keyBits:128,minimumVersion:[1,4],weak:!0},"RC4-40":{V:1,R:2,keyBits:40,minimumVersion:[1,1],weak:!0}};var yl=class e{static create(t,n){return new e(t,n)}constructor(e,t){if(!t.ownerPassword&&!t.userPassword)throw Error(`Either an owner password or a user password must be specified.`);this.context=e,this.initialize(t)}initialize(e){this.id=bl();let t=e.algorithm??`AES-256`,n=vl[t];if(!n)throw Error(`Unknown encryption algorithm '${t}'. Expected one of ${Object.keys(vl).join(`, `)}.`);if(n.weak&&!e.allowWeakCryptography)throw Error(`Refusing to encrypt with ${t}: RC4 is broken and was removed from ISO 32000-2. Use 'AES-256' (the default), or pass allowWeakCryptography: true if you must target a viewer released before Acrobat 7.`);this.profile=n,this.encryption=n.V===5?this.initializeV5(e):this.initializeV1V2V4(n,e)}raiseHeaderVersion(){let[e,t]=this.profile.minimumVersion,[n,r]=this.context.header.getVersionString().split(`.`).map(e=>parseInt(e,10)||0);n>e||n===e&&r>=t||(this.context.header=Xa.forVersion(e,t))}declareExtensionLevel(){if(this.profile.V!==5||(parseInt(this.context.header.getVersionString(),10)||0)>=2)return;let{Root:e}=this.context.trailerInfo;if(!e)return;let t=this.context.lookupMaybe(e,X);if(!t)return;let n=t.lookupMaybe(Y.of(`Extensions`),X)??this.context.obj({}),r=n.lookupMaybe(Y.of(`ADBE`),X)??this.context.obj({});(r.lookupMaybe(Y.of(`ExtensionLevel`),J)?.asNumber()??0)<8&&(r.set(Y.of(`BaseVersion`),Y.of(this.context.header.getVersionString())),r.set(Y.of(`ExtensionLevel`),J.of(8))),n.set(Y.of(`ADBE`),r),t.set(Y.of(`Extensions`),n)}initializeV1V2V4(e,t){let n={Filter:`Standard`},r=e.V,i=e.R;this.keyBits=e.keyBits;let a=i===2?Sl(t.permissions):Cl(t.permissions),o=jl(t.userPassword),s=t.ownerPassword?jl(t.ownerPassword):o,c=El(i,this.keyBits,o,s);this.encryptionKey=Dl(i,this.keyBits,this.id,o,c,a);let l;return l=i===2?wl(this.encryptionKey):Tl(this.id,this.encryptionKey),n.V=r,r>=2&&(n.Length=this.keyBits),r===4&&(n.CF={StdCF:{AuthEvent:`DocOpen`,CFM:`AESV2`,Length:this.keyBits/8}},n.StmF=`StdCF`,n.StrF=`StdCF`),n.R=i,n.O=c,n.U=l,n.P=a,n}initializeV5(e){this.keyBits=this.profile.keyBits,this.encryptionKey=To(32);let t=tl(e.userPassword),n=kl(t,Rl),r=Al(t,n.subarray(40,48),Rl,this.encryptionKey),i=e.ownerPassword?tl(e.ownerPassword):t,a=kl(i,n),o=Al(i,a.subarray(40,48),n,this.encryptionKey),s=Cl(e.permissions),c=Pl(this.encryptionKey,Ll,ne([Il(s),Bl,To(4)]));return{Filter:`Standard`,V:this.profile.V,R:this.profile.R,Length:this.keyBits,CF:{StdCF:{AuthEvent:`DocOpen`,CFM:`AESV3`,Length:this.keyBits/8}},StmF:`StdCF`,StrF:`StdCF`,O:a,OE:o,U:n,UE:r,P:s,Perms:c}}getEncryptFn(e,t){let n=this.encryption.V;if(n===5)return xl(this.encryptionKey);if(n!==1&&n!==2&&n!==4)throw Error(`Unsupported algorithm '${n}'.`);let r=ne([this.encryptionKey,new Uint8Array([e&255,e>>8&255,e>>16&255,t&255,t>>8&255])]);if(n===4)return xl(Ml(ne([r,zl])));let i=Ml(r).subarray(0,Math.min(16,this.keyBits/8+5));return e=>Nl(i,e)}encrypt(){this.raiseHeaderVersion(),this.declareExtensionLevel();let e=this.context.obj([this.id,this.id]);this.context.trailerInfo.ID=e;let t=this.context.obj(this.encryption);return this.context.trailerInfo.Encrypt=this.context.register(t),this}};const bl=()=>To(16),xl=e=>t=>{let n=To(16);return ne([n,Pl(e,n,Fl(t))])},Sl=(e={})=>{let t=-64;return e.printing&&(t|=4),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),t},Cl=(e={})=>{let t=-3904;return(e.printing===`lowResolution`||e.printing)&&(t|=4),e.printing===`highResolution`&&(t|=2052),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),e.fillingForms&&(t|=256),e.contentAccessibility&&(t|=512),e.documentAssembly&&(t|=1024),t},wl=e=>Nl(e,jl()),Tl=(e,t)=>{let n=Ml(ne([jl(),e])),r=new Uint8Array(t.length);for(let e=0;e<20;e++){for(let n=0;n<r.length;n++)r[n]=t[n]^e;n=Nl(r,n)}return ne([n,new Uint8Array(16)])},El=(e,t,n,r)=>{let i=r,a=e>=3?51:1;for(let e=0;e<a;e++)i=Ml(i);let o=new Uint8Array(t/8),s=n;a=e>=3?20:1;for(let e=0;e<a;e++){for(let t=0;t<o.length;t++)o[t]=i[t]^e;s=Nl(o,s)}return s},Dl=(e,t,n,r,i,a)=>{let o=ne([r,i,Il(a),n]),s=e>=3?51:1;for(let e=0;e<s;e++)o=Ml(o).subarray(0,t/8);return o},Ol=new hl,kl=(e,t)=>{let n=To(8),r=To(8);return ne([Ol.hash(e,ne([e,n,t]),t),n,r])},Al=(e,t,n,r)=>Pl(Ol.hash(e,ne([e,t,n]),n),Ll,r),jl=(e=``)=>{let t=new Uint8Array(32),n=e.length,r=0;for(;r<n&&r<32;){let n=e.charCodeAt(r);if(n>255)throw Error(`Password contains one or more invalid characters.`);t[r]=n,r++}for(;r<32;)t[r]=Vl[r-n],r++;return t},Ml=e=>rl(e,0,e.length),Nl=(e,t)=>new nl(e).encrypt(t),Pl=(e,t,n)=>(e.length===32?new ul(e):new ll(e)).encrypt(n,t),Fl=e=>{let t=16-e.length%16,n=new Uint8Array(e.length+t);return n.set(e),n.fill(t,e.length),n},Il=e=>new Uint8Array([e&255,e>>8&255,e>>16&255,e>>24&255]),Ll=new Uint8Array(16),Rl=new Uint8Array,zl=new Uint8Array([115,65,108,84]),Bl=new Uint8Array([255,255,255,255,84,97,100,98]),Vl=[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],Hl=e=>1<<e;var Ul;(function(e){e[e.Invisible=Hl(0)]=`Invisible`,e[e.Hidden=Hl(1)]=`Hidden`,e[e.Print=Hl(2)]=`Print`,e[e.NoZoom=Hl(3)]=`NoZoom`,e[e.NoRotate=Hl(4)]=`NoRotate`,e[e.NoView=Hl(5)]=`NoView`,e[e.ReadOnly=Hl(6)]=`ReadOnly`,e[e.Locked=Hl(7)]=`Locked`,e[e.ToggleNoView=Hl(8)]=`ToggleNoView`,e[e.LockedContents=Hl(9)]=`LockedContents`})(Ul||={});const Wl=e=>e instanceof Y?e:Y.of(e),Gl=e=>e instanceof J?e:J.of(e),Kl=e=>e instanceof J?e.asNumber():e;var ql;(function(e){e.Degrees=`degrees`,e.Radians=`radians`})(ql||={});const Jl=e=>(G(e,`radianAngle`,[`number`]),{type:ql.Radians,angle:e}),Yl=e=>(G(e,`degreeAngle`,[`number`]),{type:ql.Degrees,angle:e}),Xl=e=>e*Math.PI/180,Zl=e=>e*180/Math.PI,Ql=e=>e.type===ql.Radians?e.angle:e.type===ql.Degrees?Xl(e.angle):we(`Invalid rotation: ${JSON.stringify(e)}`),$l=e=>e.type===ql.Radians?Zl(e.angle):e.type===ql.Degrees?e.angle:we(`Invalid rotation: ${JSON.stringify(e)}`),eu=(e=0)=>{let t=e/90%4;return t===0?0:t===1?90:t===2?180:t===3?270:0},tu=(e,t=0)=>{let n=eu(t);return n===90||n===270?{width:e.height,height:e.width}:{width:e.width,height:e.height}},nu=(e,t=0,n=0)=>{let{x:r,y:i,width:a,height:o}=e,s=eu(n),c=t/2;return s===0?{x:r-c,y:i-c,width:a,height:o}:s===90?{x:r-o+c,y:i-c,width:o,height:a}:s===180?{x:r-a+c,y:i-o+c,width:a,height:o}:s===270?{x:r-c,y:i-a+c,width:o,height:a}:{x:r-c,y:i-c,width:a,height:o}},ru=()=>_o.of(yo.ClipNonZero),iu=()=>_o.of(yo.ClipEvenOdd),{cos:au,sin:ou,tan:su}=Math,cu=(e,t,n,r,i,a)=>_o.of(yo.ConcatTransformationMatrix,[Gl(e),Gl(t),Gl(n),Gl(r),Gl(i),Gl(a)]),lu=(e,t)=>cu(1,0,0,1,e,t),uu=(e,t)=>cu(e,0,0,t,0,0),du=e=>cu(au(Kl(e)),ou(Kl(e)),-ou(Kl(e)),au(Kl(e)),0,0),fu=e=>du(Xl(Kl(e))),pu=(e,t)=>cu(1,su(Kl(e)),su(Kl(t)),1,0,0),mu=(e,t)=>pu(Xl(Kl(e)),Xl(Kl(t))),hu=(e,t)=>_o.of(yo.SetLineDashPattern,[`[${e.map(Gl).join(` `)}]`,Gl(t)]),gu=()=>hu([],0);var _u;(function(e){e[e.Butt=0]=`Butt`,e[e.Round=1]=`Round`,e[e.Projecting=2]=`Projecting`})(_u||={});const vu=e=>_o.of(yo.SetLineCapStyle,[Gl(e)]);var yu;(function(e){e[e.Miter=0]=`Miter`,e[e.Round=1]=`Round`,e[e.Bevel=2]=`Bevel`})(yu||={});const bu=e=>_o.of(yo.SetLineJoinStyle,[Gl(e)]),xu=e=>_o.of(yo.SetGraphicsStateParams,[Wl(e)]),Su=()=>_o.of(yo.PushGraphicsState),Cu=()=>_o.of(yo.PopGraphicsState),wu=e=>_o.of(yo.SetLineWidth,[Gl(e)]),Tu=(e,t,n,r,i,a)=>_o.of(yo.AppendBezierCurve,[Gl(e),Gl(t),Gl(n),Gl(r),Gl(i),Gl(a)]),Eu=(e,t,n,r)=>_o.of(yo.CurveToReplicateInitialPoint,[Gl(e),Gl(t),Gl(n),Gl(r)]),Du=()=>_o.of(yo.ClosePath),Ou=(e,t)=>_o.of(yo.MoveTo,[Gl(e),Gl(t)]),ku=(e,t)=>_o.of(yo.LineTo,[Gl(e),Gl(t)]),Au=(e,t,n,r)=>_o.of(yo.AppendRectangle,[Gl(e),Gl(t),Gl(n),Gl(r)]),ju=(e,t,n)=>Au(e,t,n,n),Mu=()=>_o.of(yo.StrokePath);var Nu;(function(e){e.NonZero=`f`,e.EvenOdd=`f*`})(Nu||={});const Pu=()=>_o.of(yo.FillNonZero),Fu=()=>_o.of(yo.FillEvenOdd),Iu=()=>_o.of(yo.FillNonZeroAndStroke),Lu=()=>_o.of(yo.EndPath),Ru=()=>_o.of(yo.NextLine),zu=(e,t)=>_o.of(yo.MoveText,[Gl(e),Gl(t)]),Bu=e=>_o.of(yo.ShowText,[e]),Vu=()=>_o.of(yo.BeginText),Hu=()=>_o.of(yo.EndText),Uu=(e,t)=>_o.of(yo.SetFontAndSize,[Wl(e),Gl(t)]),Wu=e=>_o.of(yo.SetCharacterSpacing,[Gl(e)]),Gu=e=>_o.of(yo.SetWordSpacing,[Gl(e)]),Ku=e=>_o.of(yo.SetTextHorizontalScaling,[Gl(e)]),qu=e=>_o.of(yo.SetTextLineHeight,[Gl(e)]),Ju=e=>_o.of(yo.SetTextRise,[Gl(e)]);var Yu;(function(e){e[e.Fill=0]=`Fill`,e[e.Outline=1]=`Outline`,e[e.FillAndOutline=2]=`FillAndOutline`,e[e.Invisible=3]=`Invisible`,e[e.FillAndClip=4]=`FillAndClip`,e[e.OutlineAndClip=5]=`OutlineAndClip`,e[e.FillAndOutlineAndClip=6]=`FillAndOutlineAndClip`,e[e.Clip=7]=`Clip`})(Yu||={});const Xu=e=>_o.of(yo.SetTextRenderingMode,[Gl(e)]),Zu=(e,t,n,r,i,a)=>_o.of(yo.SetTextMatrix,[Gl(e),Gl(t),Gl(n),Gl(r),Gl(i),Gl(a)]),Qu=(e,t,n,r,i)=>Zu(au(Kl(e)),ou(Kl(e))+su(Kl(t)),-ou(Kl(e))+su(Kl(n)),au(Kl(e)),r,i),$u=(e,t,n,r,i)=>Qu(Xl(Kl(e)),Xl(Kl(t)),Xl(Kl(n)),r,i),ed=e=>_o.of(yo.DrawObject,[Wl(e)]),td=e=>_o.of(yo.NonStrokingColorGray,[Gl(e)]),nd=e=>_o.of(yo.StrokingColorGray,[Gl(e)]),rd=(e,t,n)=>_o.of(yo.NonStrokingColorRgb,[Gl(e),Gl(t),Gl(n)]),id=(e,t,n)=>_o.of(yo.StrokingColorRgb,[Gl(e),Gl(t),Gl(n)]),ad=(e,t,n,r)=>_o.of(yo.NonStrokingColorCmyk,[Gl(e),Gl(t),Gl(n),Gl(r)]),od=(e,t,n,r)=>_o.of(yo.StrokingColorCmyk,[Gl(e),Gl(t),Gl(n),Gl(r)]),sd=e=>_o.of(yo.BeginMarkedContent,[Wl(e)]),cd=()=>_o.of(yo.EndMarkedContent);var ld=t(((e,t)=>{t.exports={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]}})),ud=t(((e,t)=>{t.exports=function(e){return!e||typeof e==`string`?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!==`String`)}})),dd=t(((e,t)=>{var n=ud(),r=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(e){for(var t=[],a=0,o=e.length;a<o;a++){var s=e[a];n(s)?t=r.call(t,i.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}})),fd=t(((e,t)=>{var n=ld(),r=dd(),i=Object.hasOwnProperty,a=Object.create(null);for(var o in n)i.call(n,o)&&(a[n[o]]=o);var s=t.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,l=[0,0,0,1],u,d,f;if(u=e.match(r)){for(f=u[2],u=u[1],d=0;d<3;d++){var p=d*2;l[d]=parseInt(u.slice(p,p+2),16)}f&&(l[3]=parseInt(f,16)/255)}else if(u=e.match(t)){for(u=u[1],f=u[3],d=0;d<3;d++)l[d]=parseInt(u[d]+u[d],16);f&&(l[3]=parseInt(f+f,16)/255)}else if(u=e.match(a)){for(d=0;d<3;d++)l[d]=parseInt(u[d+1],0);u[4]&&(u[5]?l[3]=parseFloat(u[4])*.01:l[3]=parseFloat(u[4]))}else if(u=e.match(o)){for(d=0;d<3;d++)l[d]=Math.round(parseFloat(u[d+1])*2.55);u[4]&&(u[5]?l[3]=parseFloat(u[4])*.01:l[3]=parseFloat(u[4]))}else if(u=e.match(s))return u[1]===`transparent`?[0,0,0,0]:i.call(n,u[1])?(l=n[u[1]],l[3]=1,l):null;else return null;for(d=0;d<3;d++)l[d]=c(l[d],0,255);return l[3]=c(l[3],0,1),l},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=r(arguments);return`#`+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=r(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+i+`%)`:`rgba(`+t+`%, `+n+`%, `+i+`%, `+e[3]+`)`},s.to.hsl=function(){var e=r(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=r(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?`0`+t:t}})),pd=t(((e,t)=>{let n=ld(),r={};for(let e of Object.keys(n))r[n[e]]=e;let i={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`]}};t.exports=i;for(let e of Object.keys(i)){if(!(`channels`in i[e]))throw Error(`missing channels property: `+e);if(!(`labels`in i[e]))throw Error(`missing channel labels property: `+e);if(i[e].labels.length!==i[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},i.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,o*100,r*100]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=r[e];if(t)return t;let i=1/0,o;for(let t of Object.keys(n)){let r=n[t],s=a(e,r);s<i&&(i=s,o=t)}return o},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},i.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c}return[l*255,u*255,d*255]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},i.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},i.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,a]=e,o=t===null?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),md=t(((e,t)=>{let n=pd();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}})),hd=t(((e,t)=>{let n=pd(),r=md(),i={},a=Object.keys(n);function o(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i})),gd=e(t(((e,t)=>{let n=fd(),r=hd(),i=[`keyword`,`gray`,`hex`],a={};for(let e of Object.keys(r))a[[...r[e].labels].sort().join(``)]=e;let o={};function s(e,t){if(!(this instanceof s))return new s(e,t);if(t&&t in i&&(t=null),t&&!(t in r))throw Error(`Unknown model: `+t);let c,l;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof s)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e==`string`){let t=n.get(e);if(t===null)throw Error(`Unable to parse color from string: `+e);this.model=t.model,l=r[this.model].channels,this.color=t.value.slice(0,l),this.valpha=typeof t.value[l]==`number`?t.value[l]:1}else if(e.length>0){this.model=t||`rgb`,l=r[this.model].channels;let n=Array.prototype.slice.call(e,0,l);this.color=p(n,l),this.valpha=typeof e[l]==`number`?e[l]:1}else if(typeof e==`number`)this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);`alpha`in e&&(t.splice(t.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);let n=t.sort().join(``);if(!(n in a))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=a[n];let{labels:i}=r[this.model],o=[];for(c=0;c<i.length;c++)o.push(e[i[c]]);this.color=p(o)}if(o[this.model])for(l=r[this.model].channels,c=0;c<l;c++){let e=o[this.model][c];e&&(this.color[c]=e(this.color[c]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}s.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);let r=t.valpha===1?t.color:[...t.color,this.valpha];return n.to[t.model](r)},percentString(e){let t=this.rgb().round(typeof e==`number`?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return n.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=r[this.model],{labels:n}=r[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new s([...this.color.map(l(e)),this.valpha],this.model)},alpha(e){return e===void 0?this.valpha:new s([...this.color,Math.max(0,Math.min(1,e))],this.model)},red:u(`rgb`,0,d(255)),green:u(`rgb`,1,d(255)),blue:u(`rgb`,2,d(255)),hue:u([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,e=>(e%360+360)%360),saturationl:u(`hsl`,1,d(100)),lightness:u(`hsl`,2,d(100)),saturationv:u(`hsv`,1,d(100)),value:u(`hsv`,2,d(100)),chroma:u(`hcg`,1,d(100)),gray:u(`hcg`,2,d(100)),white:u(`hwb`,1,d(100)),wblack:u(`hwb`,2,d(100)),cyan:u(`cmyk`,0,d(100)),magenta:u(`cmyk`,1,d(100)),yellow:u(`cmyk`,2,d(100)),black:u(`cmyk`,3,d(100)),x:u(`xyz`,0,d(95.047)),y:u(`xyz`,1,d(100)),z:u(`xyz`,2,d(108.833)),l:u(`lab`,0,d(100)),a:u(`lab`,1),b:u(`lab`,2),keyword(e){return e===void 0?r[this.model].keyword(this.color):new s(e)},hex(e){return e===void 0?n.to.hex(this.rgb().round().color):new s(e)},hexa(e){if(e!==void 0)return new s(e);let t=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r=`0`+r),n.to.hex(t)+r},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?`AAA`:t>=4.5?`AA`:``},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return s.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);let n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),c=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-c;return s.rgb(c*n.red()+l*r.red(),c*n.green()+l*r.green(),c*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(let e of Object.keys(r)){if(i.includes(e))continue;let{channels:t}=r[e];s.prototype[e]=function(...t){return this.model===e?new s(this):t.length>0?new s(t,e):new s([...f(r[this.model][e].raw(this.color)),this.valpha],e)},s[e]=function(...n){let r=n[0];return typeof r==`number`&&(r=p(n,t)),new s(r,e)}}function c(e,t){return Number(e.toFixed(t))}function l(e){return function(t){return c(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(let r of e)(o[r]||(o[r]=[]))[t]=n;return e=e[0],function(r){let i;return r===void 0?(i=this[e]().color[t],n&&(i=n(i)),i):(n&&(r=n(r)),i=this[e](),i.color[t]=r,i)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e){return Array.isArray(e)?e:[e]}function p(e,t){for(let n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}t.exports=s}))()),_d;(function(e){e.Grayscale=`Grayscale`,e.RGB=`RGB`,e.CMYK=`CMYK`})(_d||={});const vd=e=>(_t(e,`gray`,0,1),{type:_d.Grayscale,gray:e}),yd=(e,t,n)=>(_t(e,`red`,0,1),_t(t,`green`,0,1),_t(n,`blue`,0,1),{type:_d.RGB,red:e,green:t,blue:n}),bd=(e,t,n,r)=>(_t(e,`cyan`,0,1),_t(t,`magenta`,0,1),_t(n,`yellow`,0,1),_t(r,`key`,0,1),{type:_d.CMYK,cyan:e,magenta:t,yellow:n,key:r}),xd=e=>{G(e,`color`,[`string`]);let t=(0,gd.default)(e).unitObject();return{rgb:yd(t.r,t.g,t.b),alpha:t.alpha}},Sd=e=>e.type===_d.Grayscale?td(e.gray):e.type===_d.RGB?rd(e.red,e.green,e.blue):e.type===_d.CMYK?ad(e.cyan,e.magenta,e.yellow,e.key):we(`Invalid color: ${JSON.stringify(e)}`),Cd=e=>e.type===_d.Grayscale?nd(e.gray):e.type===_d.RGB?id(e.red,e.green,e.blue):e.type===_d.CMYK?od(e.cyan,e.magenta,e.yellow,e.key):we(`Invalid color: ${JSON.stringify(e)}`),wd=(e,t=1)=>e?.length===1?vd(e[0]*t):e?.length===3?yd(e[0]*t,e[1]*t,e[2]*t):e?.length===4?bd(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0,Td=e=>e.type===_d.Grayscale?[e.gray]:e.type===_d.RGB?[e.red,e.green,e.blue]:e.type===_d.CMYK?[e.cyan,e.magenta,e.yellow,e.key]:we(`Invalid color: ${JSON.stringify(e)}`);let Ed=0,Dd=0,Od=0,kd=0,Ad=0,jd=0;const Md=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]]),Nd=e=>{let t,n=[],r=[],i=``,a=!1,o=0;for(let s of e)if(Md.has(s))o=Md.get(s),t&&(i.length>0&&(r[r.length]=+i),n[n.length]={cmd:t,args:r},r=[],i=``,a=!1),t=s;else if([` `,`,`].includes(s)||s===`-`&&i.length>0&&i[i.length-1]!==`e`||s===`.`&&a){if(i.length===0)continue;r.length===o?(n[n.length]={cmd:t,args:r},r=[+i],t===`M`&&(t=`L`),t===`m`&&(t=`l`)):r[r.length]=+i,a=s===`.`,i=[`-`,`.`].includes(s)?s:``}else i+=s,s===`.`&&(a=!0);return i.length>0&&(r.length===o?(n[n.length]={cmd:t,args:r},r=[+i],t===`M`&&(t=`L`),t===`m`&&(t=`l`)):r[r.length]=+i),n[n.length]={cmd:t,args:r},n},Pd=e=>{Ed=Dd=Od=kd=Ad=jd=0;let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.cmd&&typeof Fd[r.cmd]==`function`){let e=Fd[r.cmd](r.args);Array.isArray(e)?t=t.concat(e):t.push(e)}}return t},Fd={M(e){return Ed=e[0],Dd=e[1],Od=kd=null,Ad=Ed,jd=Dd,Ou(Ed,Dd)},m(e){return Ed+=e[0],Dd+=e[1],Od=kd=null,Ad=Ed,jd=Dd,Ou(Ed,Dd)},C(e){return Ed=e[4],Dd=e[5],Od=e[2],kd=e[3],Tu(e[0],e[1],e[2],e[3],e[4],e[5])},c(e){let t=Tu(e[0]+Ed,e[1]+Dd,e[2]+Ed,e[3]+Dd,e[4]+Ed,e[5]+Dd);return Od=Ed+e[2],kd=Dd+e[3],Ed+=e[4],Dd+=e[5],t},S(e){(Od===null||kd===null)&&(Od=Ed,kd=Dd);let t=Tu(Ed-(Od-Ed),Dd-(kd-Dd),e[0],e[1],e[2],e[3]);return Od=e[0],kd=e[1],Ed=e[2],Dd=e[3],t},s(e){(Od===null||kd===null)&&(Od=Ed,kd=Dd);let t=Tu(Ed-(Od-Ed),Dd-(kd-Dd),Ed+e[0],Dd+e[1],Ed+e[2],Dd+e[3]);return Od=Ed+e[0],kd=Dd+e[1],Ed+=e[2],Dd+=e[3],t},Q(e){return Od=e[0],kd=e[1],Ed=e[2],Dd=e[3],Eu(e[0],e[1],Ed,Dd)},q(e){let t=Eu(e[0]+Ed,e[1]+Dd,e[2]+Ed,e[3]+Dd);return Od=Ed+e[0],kd=Dd+e[1],Ed+=e[2],Dd+=e[3],t},T(e){Od===null||kd===null?(Od=Ed,kd=Dd):(Od=Ed-(Od-Ed),kd=Dd-(kd-Dd));let t=Eu(Od,kd,e[0],e[1]);return Ed=e[0],Dd=e[1],t},t(e){Od===null||kd===null?(Od=Ed,kd=Dd):(Od=Ed-(Od-Ed),kd=Dd-(kd-Dd));let t=Eu(Od,kd,Ed+e[0],Dd+e[1]);return Ed+=e[0],Dd+=e[1],t},A(e){let t=Id(Ed,Dd,e);return Ed=e[5],Dd=e[6],t},a(e){e[5]+=Ed,e[6]+=Dd;let t=Id(Ed,Dd,e);return Ed=e[5],Dd=e[6],t},L(e){return Ed=e[0],Dd=e[1],Od=kd=null,ku(Ed,Dd)},l(e){return Ed+=e[0],Dd+=e[1],Od=kd=null,ku(Ed,Dd)},H(e){return Ed=e[0],Od=kd=null,ku(Ed,Dd)},h(e){return Ed+=e[0],Od=kd=null,ku(Ed,Dd)},V(e){return Dd=e[0],Od=kd=null,ku(Ed,Dd)},v(e){return Dd+=e[0],Od=kd=null,ku(Ed,Dd)},Z(){let e=Du();return Ed=Ad,Dd=jd,e},z(){let e=Du();return Ed=Ad,Dd=jd,e}},Id=(e,t,n)=>{let[r,i,a,o,s,c,l]=n,u=Ld(c,l,r,i,o,s,a,e,t),d=[];for(let e of u){let t=Rd(...e);d.push(Tu(...t))}return d},Ld=(e,t,n,r,i,a,o,s,c)=>{let l=Math.PI/180*o,u=Math.sin(l),d=Math.cos(l);n=Math.abs(n),r=Math.abs(r),Od=d*(s-e)*.5+u*(c-t)*.5,kd=d*(c-t)*.5-u*(s-e)*.5;let f=Od*Od/(n*n)+kd*kd/(r*r);f>1&&(f=Math.sqrt(f),n*=f,r*=f);let p=d/n,m=u/n,h=-u/r,g=d/r,_=p*s+m*c,v=h*s+g*c,y=p*e+m*t,b=h*e+g*t,x=1/((y-_)*(y-_)+(b-v)*(b-v))-.25;x<0&&(x=0);let S=Math.sqrt(x);a===i&&(S=-S);let C=.5*(_+y)-S*(b-v),w=.5*(v+b)+S*(y-_),T=Math.atan2(v-w,_-C),E=Math.atan2(b-w,y-C)-T;E<0&&a===1?E+=2*Math.PI:E>0&&a===0&&(E-=2*Math.PI);let D=Math.ceil(Math.abs(E/(Math.PI*.5+.001))),ee=[];for(let e=0;e<D;e++){let t=T+e*E/D,i=T+(e+1)*E/D;ee[e]=[C,w,t,i,n,r,u,d]}return ee},Rd=(e,t,n,r,i,a,o,s)=>{let c=s*i,l=-o*a,u=o*i,d=s*a,f=.5*(r-n),p=8/3*Math.sin(f*.5)*Math.sin(f*.5)/Math.sin(f),m=e+Math.cos(n)-p*Math.sin(n),h=t+Math.sin(n)+p*Math.cos(n),g=e+Math.cos(r),_=t+Math.sin(r),v=g+p*Math.sin(r),y=_-p*Math.cos(r);return[c*m+l*h,u*m+d*h,c*v+l*y,u*v+d*y,c*g+l*_,u*g+d*_]},zd=e=>Pd(Nd(e));var Bd=t((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.namedReferences=e.bodyRegExps=void 0;var n=`~`,r=`~~`;function i(e,i){for(var a={},o={},s=e.split(r),c=!1,l=0;s.length>l;l++){for(var u=s[l].split(n),d=0;d<u.length;d+=2){var f=u[d],p=u[d+1],m=`&`+f+`;`;a[m]=p,c&&(a[`&`+f]=p),o[p]=m}c=!0}return i?{entities:t(t({},a),i.entities),characters:t(t({},o),i.characters)}:{entities:a,characters:o}}e.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/&notin;|&(?: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:/&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?: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},e.namedReferences={},e.namedReferences.xml=i(`lt~<~gt~>~quot~"~apos~'~amp~&`),e.namedReferences.html4=i(`apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~‌~zwj~‍~lrm~‎~rlm~‏~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~\xA0~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~>`),e.namedReferences.html5=i('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~⁡~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~⁣~InvisibleTimes~⁢~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~​~NegativeThickSpace~​~NegativeThinSpace~​~NegativeVeryThinSpace~​~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~⁠~NonBreakingSpace~\xA0~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~  ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~​~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~⁡~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~⁣~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~⁢~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®',e.namedReferences.html4)})),Vd=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numericUnicodeMap=void 0,e.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}})),Hd=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.highSurrogateTo=e.highSurrogateFrom=e.getCodePoint=e.fromCodePoint=void 0,e.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},e.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536},e.highSurrogateFrom=55296,e.highSurrogateTo=56319})),Ud=t((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.encode=c,e.decodeEntity=v,e.decode=y;var n=Bd(),r=Vd(),i=Hd(),a=t(t({},n.namedReferences),{all:n.namedReferences.html5}),o={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF\uDC00-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF\uDC00-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF\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\uDC00-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g},s={mode:`specialChars`,level:`all`,numeric:`decimal`};function c(e,t){var n=t===void 0?s:t,r=n.mode,c=r===void 0?`specialChars`:r,l=n.numeric,u=l===void 0?`decimal`:l,d=n.level,f=d===void 0?`all`:d;if(!e)return``;var p=o[c],m=a[f].characters,h=u===`hexadecimal`;return String.prototype.replace.call(e,p,function(e){var t=m[e];if(!t){var n=e.length>1?(0,i.getCodePoint)(e,0):e.charCodeAt(0);t=(h?`&#x`+n.toString(16):`&#`+n)+`;`}return t})}var l={scope:`body`,level:`all`},u=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,d=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,f={xml:{strict:u,attribute:d,body:n.bodyRegExps.xml},html4:{strict:u,attribute:d,body:n.bodyRegExps.html4},html5:{strict:u,attribute:d,body:n.bodyRegExps.html5}},p=t(t({},f),{all:f.html5}),m=String.fromCharCode,h=m(65533),g={level:`all`};function _(e,t,n,a){var o=e,s=e[e.length-1];if(n&&s===`=`)o=e;else if(a&&s!==`;`)o=e;else{var c=t[e];if(c)o=c;else if(e[0]===`&`&&e[1]===`#`){var l=e[2],u=l==`x`||l==`X`?parseInt(e.substr(3),16):parseInt(e.substr(2));o=u>=1114111?h:u>65535?(0,i.fromCodePoint)(u):m(r.numericUnicodeMap[u]||u)}}return o}function v(e,t){var n=(t===void 0?g:t).level;return e?_(e,a[n===void 0?`all`:n].entities,!1,!1):``}function y(e,t){var n=t===void 0?l:t,r=n.level,i=r===void 0?`all`:r,o=n.scope,s=o===void 0?i===`xml`?`strict`:`body`:o;if(!e)return``;var c=p[i][s],u=a[i].entities,d=s===`attribute`,f=s===`strict`;return e.replace(c,function(e){return _(e,u,d,f)})}})),Wd=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isBlock=e.parse=e.Matcher=e.HTMLElement=e.CommentNode=e.TextNode=e.AbstractNode=e.NodeType=void 0;let t=Ud();var n;(function(e){e[e.ELEMENT_NODE=1]=`ELEMENT_NODE`,e[e.TEXT_NODE=3]=`TEXT_NODE`,e[e.COMMENT_NODE=8]=`COMMENT_NODE`})(n||(e.NodeType=n={}));var r=class{constructor(){this.childNodes=[],this.parentNode=null}get text(){return(0,t.decode)(this.rawText)}remove(){return this.parentNode&&this.parentNode.removeChild(this),this}};e.AbstractNode=r;var i=class extends r{constructor(e){super(),this.nodeType=n.TEXT_NODE,this.value=e}get rawText(){return this.value}get isWhitespace(){return/^(\s|&nbsp;)*$/.test(this.rawText)}toString(){return this.rawText}toJSON(){return{type:`text`,value:this.value}}};e.TextNode=i;var a=class extends r{constructor(e){super(),this.nodeType=n.COMMENT_NODE,this.value=e}get rawText(){return this.value}toString(){return`<!--${this.rawText}-->`}toJSON(){return{type:`comment`,value:this.value}}};e.CommentNode=a;let o={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function s(e){return e[e.length-1]}var c=class e extends r{constructor(e,t=``,r=null){super(),this.tagName=e,this.rawAttrs=t,this.id=``,this.classNames=[],this.nodeType=n.ELEMENT_NODE,this.rawAttrs=t,this.parentNode=r,this.childNodes=[];let i={};for(let e;e=d.exec(t);){let t=e[2];t&&(i[t]=e[4]||e[5]||e[6]||``)}i.id&&(this.id=i.id),i.class&&(this.classNames=i.class.split(/\s+/))}removeChild(t){this.childNodes=this.childNodes.filter(e=>e!==t),t instanceof e&&(t.parentNode=null)}exchangeChild(t,n){let r=this.childNodes.findIndex(e=>e===t);r>=0&&(this.childNodes[r]=n,t instanceof e&&(t.parentNode=null))}get rawText(){let e=``;for(let t=0;t<this.childNodes.length;t++)e+=this.childNodes[t].rawText;return e}get structuredText(){let e=[],t=[e];function r(i){if(i.nodeType===n.ELEMENT_NODE)o[i.tagName]?(e.length>0&&t.push(e=[]),i.childNodes.forEach(r),e.length>0&&t.push(e=[])):i.childNodes.forEach(r);else if(i.nodeType===n.TEXT_NODE){if(i.isWhitespace)e.prependWhitespace=!0;else{let t=i.text;e.prependWhitespace&&(t=` `+t,e.prependWhitespace=!1),e.push(t)}}}return r(this),t.map(function(e){return e.join(``).trim().replace(/\s{2,}/g,` `)}).join(`
33
+ `,Rs=(...e)=>`<${e.join(``)}>`,zs=e=>u(e,4),Bs=e=>{if(he(e))return zs(e);if(L(e)){let t=R(e),n=ge(e);return`${zs(t)}${zs(n)}`}let t=`0x${d(e)} is not a valid UTF-8 or UTF-16 codepoint.`;throw Error(t)},Vs=e=>{let t=0,n=e=>{t|=1<<e-1};return e.fixedPitch&&n(1),e.serif&&n(2),e.symbolic&&n(3),e.script&&n(4),e.nonsymbolic&&n(6),e.italic&&n(7),e.allCap&&n(17),e.smallCap&&n(18),e.forceBold&&n(19),t},Hs=e=>{let t=e[`OS/2`]?e[`OS/2`].sFamilyClass:0;return Vs({fixedPitch:!!e.post?.isFixedPitch,serif:1<=t&&t<=7,symbolic:!0,script:t===10,italic:!!e.head?.macStyle?.italic})};var Us=class e{static for(t,n,r,i,a){return jo(this,void 0,void 0,function*(){let o=Fs(yield t.create(n,a));return new e(o,n,r,i)})}constructor(e,t,n,r){this.allGlyphsInFontSortedById=()=>{let e=Array(this.font.characterSet.length);for(let t=0,n=e.length;t<n;t++){let n=this.font.characterSet[t];e[t]=this.font.glyphForCodePoint(n)}return ae(e.sort(ie),e=>e.id)},this.font=e,this.scale=1e3/this.font.unitsPerEm,this.fontData=t,this.fontName=this.font.postscriptName||`Font`,this.customName=n,this.fontFeatures=r,this.baseFontName=``,this.glyphCache=wt.populatedBy(this.allGlyphsInFontSortedById)}encodeText(e){let{glyphs:t}=this.font.layout(e,this.fontFeatures),n=Array(t.length);for(let e=0,r=t.length;e<r;e++)n[e]=u(t[e].id,4);return Z.of(n.join(``))}glyphCountOfText(e){let{glyphs:t}=this.font.layout(e,this.fontFeatures);return t.length}widthOfTextAtSize(e,t){let{glyphs:n}=this.font.layout(e,this.fontFeatures),r=0;for(let e=0,t=n.length;e<t;e++)r+=n[e].advanceWidth*this.scale;let i=t/1e3;return r*i}heightOfFontAtSize(e,t={}){let{descender:n=!0}=t,{ascent:r,descent:i,bbox:a}=this.font,o=(r||a.maxY)*this.scale-(i||a.minY)*this.scale;return n||(o-=Math.abs(i)||0),o/1e3*e}sizeOfFontAtHeight(e){let{ascent:t,descent:n,bbox:r}=this.font,i=(t||r.maxY)*this.scale,a=(n||r.minY)*this.scale;return 1e3*e/(i-a)}embedIntoContext(e,t){return this.baseFontName=this.customName||e.addRandomSuffix(this.fontName),this.embedFontDict(e,t)}embedFontDict(e,t){return jo(this,void 0,void 0,function*(){let n=yield this.embedCIDFontDict(e),r=this.embedUnicodeCmap(e),i=e.obj({Type:`Font`,Subtype:`Type0`,BaseFont:this.baseFontName,Encoding:`Identity-H`,DescendantFonts:[n],ToUnicode:r});return t?(e.assign(t,i),t):e.register(i)})}isCFF(){return this.font.cff}embedCIDFontDict(e){return jo(this,void 0,void 0,function*(){let t=yield this.embedFontDescriptor(e),n=e.obj({Type:`Font`,Subtype:this.isCFF()?`CIDFontType0`:`CIDFontType2`,CIDToGIDMap:`Identity`,BaseFont:this.baseFontName,CIDSystemInfo:{Registry:go.of(`Adobe`),Ordering:go.of(`Identity`),Supplement:0},FontDescriptor:t,W:this.computeWidths()});return e.register(n)})}embedFontDescriptor(e){return jo(this,void 0,void 0,function*(){let t=yield this.embedFontStream(e),{scale:n}=this,{italicAngle:r,ascent:i,descent:a,capHeight:o,xHeight:s}=this.font,{minX:c,minY:l,maxX:u,maxY:d}=this.font.bbox,f=e.obj({Type:`FontDescriptor`,FontName:this.baseFontName,Flags:Hs(this.font),FontBBox:[c*n,l*n,u*n,d*n],ItalicAngle:r,Ascent:i*n,Descent:a*n,CapHeight:(o||i)*n,XHeight:(s||0)*n,StemV:0,[this.isCFF()?`FontFile3`:`FontFile2`]:t});return e.register(f)})}serializeFont(){return jo(this,void 0,void 0,function*(){return this.fontData})}embedFontStream(e){return jo(this,void 0,void 0,function*(){let t=e.flateStream(yield this.serializeFont(),{Subtype:this.isCFF()?`CIDFontType0C`:void 0});return e.register(t)})}embedUnicodeCmap(e){let t=Is(this.glyphCache.access(),this.glyphId.bind(this)),n=e.flateStream(t);return e.register(n)}glyphId(e){return e?e.id:-1}computeWidths(){let e=this.glyphCache.access(),t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r],a=e[r-1],o=this.glyphId(i),s=this.glyphId(a);r===0?t.push(o):o-s!==1&&(t.push(n),t.push(o),n=[]),n.push(i.advanceWidth*this.scale)}return t.push(n),t}},Ws=class e extends Us{static for(t,n,r,i,a){return jo(this,void 0,void 0,function*(){let o=Fs(yield t.create(n,a));return new e(o,n,r,i)})}constructor(e,t,n,r){super(e,t,n,r),this.subset=this.font.createSubset(),this.glyphs=[],this.glyphCache=wt.populatedBy(()=>this.glyphs),this.glyphIdMap=new Map}encodeText(e){let{glyphs:t}=this.font.layout(e,this.fontFeatures),n=Array(t.length);for(let e=0,r=t.length;e<r;e++){let r=t[e],i=this.subset.includeGlyph(r);if(typeof i!=`number`)throw Error(`fontkit subset.includeGlyph() must return a glyph id (number)`);let a=i;this.glyphs[a-1]=r,this.glyphIdMap.set(r.id,a),n[e]=u(a,4)}return this.glyphCache.invalidate(),Z.of(n.join(``))}isCFF(){return this.subset.cff}glyphId(e){return e?this.glyphIdMap.get(e.id):-1}serializeFont(){return typeof this.subset.encode==`function`?Promise.resolve(this.subset.encode()):new Promise((e,t)=>{if(typeof this.subset.encodeStream!=`function`){t(Error(`Registered fontkit subsetter must provide encode() or encodeStream()`));return}let n=[];this.subset.encodeStream().on(`data`,e=>n.push(e)).on(`end`,()=>e(ne(n))).on(`error`,e=>t(e))})}},Gs;(function(e){e.Source=`Source`,e.Data=`Data`,e.Alternative=`Alternative`,e.Supplement=`Supplement`,e.EncryptedPayload=`EncryptedPayload`,e.FormData=`EncryptedPayload`,e.Schema=`Schema`,e.Unspecified=`Unspecified`})(Gs||={});var Ks=class e{static for(t,n,r={}){return new e(t,n,r)}constructor(e,t,n={}){this.fileData=e,this.fileName=t,this.options=n}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let{mimeType:n,description:r,creationDate:i,modificationDate:a,afRelationship:o}=this.options,s=e.flateStream(this.fileData,{Type:`EmbeddedFile`,Subtype:n??void 0,Params:{Size:this.fileData.length,CreationDate:i?go.fromDate(i):void 0,ModDate:a?go.fromDate(a):void 0}}),c=e.register(s),l=e.obj({Type:`Filespec`,F:go.of(this.fileName),UF:Z.fromText(this.fileName),EF:{F:c},Desc:r?Z.fromText(r):void 0,AFRelationship:o??void 0});return t?(e.assign(t,l),t):e.register(l)})}getFileData(){return this.fileData}};const qs=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];var Js;(function(e){e.DeviceGray=`DeviceGray`,e.DeviceRGB=`DeviceRGB`,e.DeviceCMYK=`DeviceCMYK`})(Js||={});const Ys={1:Js.DeviceGray,3:Js.DeviceRGB,4:Js.DeviceCMYK};var Xs=class e{static for(t){return jo(this,void 0,void 0,function*(){let n=new DataView(t.buffer,t.byteOffset,t.byteLength);if(n.getUint16(0)!==65496)throw Error(`SOI not found in JPEG`);let r=2,i;for(;r<n.byteLength&&(i=n.getUint16(r),r+=2,!qs.includes(i));)r+=n.getUint16(r);if(!qs.includes(i))throw Error(`Invalid JPEG`);r+=2;let a=n.getUint8(r++),o=n.getUint16(r);r+=2;let s=n.getUint16(r);r+=2;let c=n.getUint8(r++),l=Ys[c];if(!l)throw Error(`Unknown JPEG channel.`);return new e(t,a,s,o,l)})}constructor(e,t,n,r,i){this.imageData=e,this.bitsPerComponent=t,this.width=n,this.height=r,this.colorSpace=i}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let n=e.stream(this.imageData,{Type:`XObject`,Subtype:`Image`,BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:`DCTDecode`,Decode:this.colorSpace===Js.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0});return t?(e.assign(t,n),t):e.register(n)})}},Zs=t((e=>{var t=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!=`object`)throw TypeError(r+`must be non-object`);for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r=0,i,a,o;for(t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},i={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})),Qs=t((e=>{var t=Zs(),n=4,r=0,i=1,a=2;function o(e){for(var t=e.length;--t>=0;)e[t]=0}var s=0,c=1,l=2,u=3,d=258,f=29,p=256,m=p+1+f,h=30,g=19,_=2*m+1,v=15,y=16,b=7,x=256,S=16,C=17,w=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=512,k=Array((m+2)*2);o(k);var A=Array(h*2);o(A);var j=Array(O);o(j);var M=Array(d-u+1);o(M);var N=Array(f);o(N);var te=Array(h);o(te);function ne(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var re,ie,ae;function oe(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function se(e){return e<256?j[e]:j[256+(e>>>7)]}function ce(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,ce(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function F(e,t,n){P(e,n[t*2],n[t*2+1])}function le(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function ue(e){e.bi_valid===16?(ce(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function de(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=v;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<_;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}}function fe(e,t,n){var r=Array(v+1),i=0,a,o;for(a=1;a<=v;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=le(r[s]++,s))}}function I(){var e,t,n,r,i,a=Array(v+1);for(n=0,r=0;r<f-1;r++)for(N[r]=n,e=0;e<1<<T[r];e++)M[n++]=r;for(M[n-1]=r,i=0,r=0;r<16;r++)for(te[r]=i,e=0;e<1<<E[r];e++)j[i++]=r;for(i>>=7;r<h;r++)for(te[r]=i<<7,e=0;e<1<<E[r]-7;e++)j[256+i++]=r;for(t=0;t<=v;t++)a[t]=0;for(e=0;e<=143;)k[e*2+1]=8,e++,a[8]++;for(;e<=255;)k[e*2+1]=9,e++,a[9]++;for(;e<=279;)k[e*2+1]=7,e++,a[7]++;for(;e<=287;)k[e*2+1]=8,e++,a[8]++;for(fe(k,m+1,a),e=0;e<h;e++)A[e*2+1]=5,A[e*2]=le(e,5);re=new ne(k,T,p+1,m,v),ie=new ne(A,E,0,h,v),ae=new ne([],D,0,g,b)}function pe(e){var t;for(t=0;t<m;t++)e.dyn_ltree[t*2]=0;for(t=0;t<h;t++)e.dyn_dtree[t*2]=0;for(t=0;t<g;t++)e.bl_tree[t*2]=0;e.dyn_ltree[x*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function me(e){e.bi_valid>8?ce(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function he(e,n,r,i){me(e),i&&(ce(e,r),ce(e,~r)),t.arraySet(e.pending_buf,e.window,n,r,e.pending),e.pending+=r}function L(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function R(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&L(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!L(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function ge(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?F(e,i,t):(o=M[i],F(e,o+p+1,t),s=T[o],s!==0&&(i-=N[o],P(e,i,s)),r--,o=se(r),F(e,o,n),s=E[o],s!==0&&(r-=te[o],P(e,r,s)));while(a<e.last_lit);F(e,x,t)}function _e(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=_,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)R(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,R(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],de(e,t),fe(n,c,e.bl_count)}function z(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[C*2]++:e.bl_tree[w*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[S*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))}function ve(e,t,n){var r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do F(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(F(e,C,e.bl_tree),P(e,s-3,3)):(F(e,w,e.bl_tree),P(e,s-11,7)):(a!==i&&(F(e,a,e.bl_tree),s--),F(e,S,e.bl_tree),P(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}}function B(e){var t;for(z(e,e.dyn_ltree,e.l_desc.max_code),z(e,e.dyn_dtree,e.d_desc.max_code),_e(e,e.bl_desc),t=g-1;t>=3&&e.bl_tree[ee[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function ye(e,t,n,r){var i;for(P(e,t-257,5),P(e,n-1,5),P(e,r-4,4),i=0;i<r;i++)P(e,e.bl_tree[ee[i]*2+1],3);ve(e,e.dyn_ltree,t-1),ve(e,e.dyn_dtree,n-1)}function V(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return r;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return i;for(n=32;n<p;n++)if(e.dyn_ltree[n*2]!==0)return i;return r}var H=!1;function be(e){H||=(I(),!0),e.l_desc=new oe(e.dyn_ltree,re),e.d_desc=new oe(e.dyn_dtree,ie),e.bl_desc=new oe(e.bl_tree,ae),e.bi_buf=0,e.bi_valid=0,pe(e)}function U(e,t,n,r){P(e,(s<<1)+ +!!r,3),he(e,t,n,!0)}function xe(e){P(e,c<<1,3),F(e,x,k),ue(e)}function Se(e,t,r,i){var o,s,u=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=V(e)),_e(e,e.l_desc),_e(e,e.d_desc),u=B(e),o=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=o&&(o=s)):o=s=r+5,r+4<=o&&t!==-1?U(e,t,r,i):e.strategy===n||s===o?(P(e,(c<<1)+ +!!i,3),ge(e,k,A)):(P(e,(l<<1)+ +!!i,3),ye(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),ge(e,e.dyn_ltree,e.dyn_dtree)),pe(e),i&&me(e)}function W(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(M[n]+p+1)*2]++,e.dyn_dtree[se(t)*2]++),e.last_lit===e.lit_bufsize-1}e._tr_init=be,e._tr_stored_block=U,e._tr_flush_block=Se,e._tr_tally=W,e._tr_align=xe})),$s=t(((e,t)=>{function n(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=n})),ec=t(((e,t)=>{function n(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=n();function i(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}t.exports=i})),tc=t(((e,t)=>{t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}})),nc=t((e=>{var t=Zs(),n=Qs(),r=$s(),i=ec(),a=tc(),o=0,s=1,c=3,l=4,u=5,d=0,f=1,p=-2,m=-3,h=-5,g=-1,_=1,v=2,y=3,b=4,x=0,S=2,C=8,w=9,T=15,E=8,D=286,ee=30,O=19,k=2*D+1,A=15,j=3,M=258,N=M+j+1,te=32,ne=42,re=69,ie=73,ae=91,oe=103,se=113,ce=666,P=1,F=2,le=3,ue=4,de=3;function fe(e,t){return e.msg=a[t],t}function I(e){return(e<<1)-(e>4?9:0)}function pe(e){for(var t=e.length;--t>=0;)e[t]=0}function me(e){var n=e.state,r=n.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(t.arraySet(e.output,n.pending_buf,n.pending_out,r,e.next_out),e.next_out+=r,n.pending_out+=r,e.total_out+=r,e.avail_out-=r,n.pending-=r,n.pending===0&&(n.pending_out=0))}function he(e,t){n._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,me(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function R(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function ge(e,n,a,o){var s=e.avail_in;return s>o&&(s=o),s===0?0:(e.avail_in-=s,t.arraySet(n,e.input,e.next_in,s,a),e.state.wrap===1?e.adler=r(e.adler,n,s,a):e.state.wrap===2&&(e.adler=i(e.adler,n,s,a)),e.next_in+=s,e.total_in+=s,s)}function _e(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-N?e.strstart-(e.w_size-N):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+M,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,l[i+o]===m&&l[i+o-1]===p&&l[i]===l[r]&&l[++i]===l[r+1]){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=M-(f-r),r=f-M,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead}function z(e){var n=e.w_size,r,i,a,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-N)){t.arraySet(e.window,e.window,n,n,0),e.match_start-=n,e.strstart-=n,e.block_start-=n,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=n?a-n:0;while(--i);i=n,r=i;do a=e.prev[--r],e.prev[r]=a>=n?a-n:0;while(--i);o+=n}if(e.strm.avail_in===0)break;if(i=ge(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=i,e.lookahead+e.insert>=j)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+j-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<j)););}while(e.lookahead<N&&e.strm.avail_in!==0)}function ve(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),e.lookahead===0&&t===o)return P;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,he(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-N&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=0,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):(e.strstart>e.block_start&&(he(e,!1),e.strm.avail_out),P)}function B(e,t){for(var r,i;;){if(e.lookahead<N){if(z(e),e.lookahead<N&&t===o)return P;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-N&&(e.match_length=_e(e,r)),e.match_length>=j){if(i=n._tr_tally(e,e.strstart-e.match_start,e.match_length-j),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=j){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}else i=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=e.strstart<j-1?e.strstart:j-1,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function ye(e,t){for(var r,i,a;;){if(e.lookahead<N){if(z(e),e.lookahead<N&&t===o)return P;if(e.lookahead===0)break}if(r=0,e.lookahead>=j&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=j-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-N&&(e.match_length=_e(e,r),e.match_length<=5&&(e.strategy===_||e.match_length===j&&e.strstart-e.match_start>4096)&&(e.match_length=j-1)),e.prev_length>=j&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-j,i=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-j),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+j-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=j-1,e.strstart++,i&&(he(e,!1),e.strm.avail_out===0))return P}else if(e.match_available){if(i=n._tr_tally(e,0,e.window[e.strstart-1]),i&&he(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return P}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(i=n._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<j-1?e.strstart:j-1,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function V(e,t){for(var r,i,a,s,c=e.window;;){if(e.lookahead<=M){if(z(e),e.lookahead<=M&&t===o)return P;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=j&&e.strstart>0&&(a=e.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){s=e.strstart+M;do;while(i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&a<s);e.match_length=M-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=j?(r=n._tr_tally(e,1,e.match_length-j),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=0,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function H(e,t){for(var r;;){if(e.lookahead===0&&(z(e),e.lookahead===0)){if(t===o)return P;break}if(e.match_length=0,r=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(he(e,!1),e.strm.avail_out===0))return P}return e.insert=0,t===l?(he(e,!0),e.strm.avail_out===0?le:ue):e.last_lit&&(he(e,!1),e.strm.avail_out===0)?P:F}function be(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var U=[new be(0,0,0,0,ve),new be(4,4,8,4,B),new be(4,5,16,8,B),new be(4,6,32,32,B),new be(4,4,16,16,ye),new be(8,16,32,32,ye),new be(8,16,128,128,ye),new be(8,32,128,256,ye),new be(32,128,258,1024,ye),new be(32,258,258,4096,ye)];function xe(e){e.window_size=2*e.w_size,pe(e.head),e.max_lazy_match=U[e.level].max_lazy,e.good_match=U[e.level].good_length,e.nice_match=U[e.level].nice_length,e.max_chain_length=U[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=j-1,e.match_available=0,e.ins_h=0}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(k*2),this.dyn_dtree=new t.Buf16((2*ee+1)*2),this.bl_tree=new t.Buf16((2*O+1)*2),pe(this.dyn_ltree),pe(this.dyn_dtree),pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(A+1),this.heap=new t.Buf16(2*D+1),pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*D+1),pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(e){var t;return!e||!e.state?fe(e,p):(e.total_in=e.total_out=0,e.data_type=S,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ne:se,e.adler=t.wrap===2?0:1,t.last_flush=o,n._tr_init(t),d)}function Ce(e){var t=W(e);return t===d&&xe(e.state),t}function we(e,t){return!e||!e.state||e.state.wrap!==2?p:(e.state.gzhead=t,d)}function Te(e,n,r,i,a,o){if(!e)return p;var s=1;if(n===g&&(n=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>w||r!==C||i<8||i>15||n<0||n>9||o<0||o>b)return fe(e,p);i===8&&(i=9);var c=new Se;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+j-1)/j),c.window=new t.Buf8(c.w_size*2),c.head=new t.Buf16(c.hash_size),c.prev=new t.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new t.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=n,c.strategy=o,c.method=r,Ce(e)}function Ee(e,t){return Te(e,t,C,T,E,x)}function De(e,t){var r,a,m,g;if(!e||!e.state||t>u||t<0)return e?fe(e,p):p;if(a=e.state,!e.output||!e.input&&e.avail_in!==0||a.status===ce&&t!==l)return fe(e,e.avail_out===0?h:p);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===ne){if(a.wrap===2)e.adler=0,L(a,31),L(a,139),L(a,8),a.gzhead?(L(a,+!!a.gzhead.text+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),L(a,a.gzhead.time&255),L(a,a.gzhead.time>>8&255),L(a,a.gzhead.time>>16&255),L(a,a.gzhead.time>>24&255),L(a,a.level===9?2:a.strategy>=v||a.level<2?4:0),L(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(L(a,a.gzhead.extra.length&255),L(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=i(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=re):(L(a,0),L(a,0),L(a,0),L(a,0),L(a,0),L(a,a.level===9?2:a.strategy>=v||a.level<2?4:0),L(a,de),a.status=se);else{var _=C+(a.w_bits-8<<4)<<8,b=-1;b=a.strategy>=v||a.level<2?0:a.level<6?1:a.level===6?2:3,_|=b<<6,a.strstart!==0&&(_|=te),_+=31-_%31,a.status=se,R(a,_),a.strstart!==0&&(R(a,e.adler>>>16),R(a,e.adler&65535)),e.adler=1}}if(a.status===re){if(a.gzhead.extra){for(m=a.pending;a.gzindex<(a.gzhead.extra.length&65535)&&!(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size));)L(a,a.gzhead.extra[a.gzindex]&255),a.gzindex++;a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=ie)}else a.status=ie}if(a.status===ie){if(a.gzhead.name){m=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size)){g=1;break}g=a.gzindex<a.gzhead.name.length?a.gzhead.name.charCodeAt(a.gzindex++)&255:0,L(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),g===0&&(a.gzindex=0,a.status=ae)}else a.status=ae}if(a.status===ae){if(a.gzhead.comment){m=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),me(e),m=a.pending,a.pending===a.pending_buf_size)){g=1;break}g=a.gzindex<a.gzhead.comment.length?a.gzhead.comment.charCodeAt(a.gzindex++)&255:0,L(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>m&&(e.adler=i(e.adler,a.pending_buf,a.pending-m,m)),g===0&&(a.status=oe)}else a.status=oe}if(a.status===oe&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&me(e),a.pending+2<=a.pending_buf_size&&(L(a,e.adler&255),L(a,e.adler>>8&255),e.adler=0,a.status=se)):a.status=se),a.pending!==0){if(me(e),e.avail_out===0)return a.last_flush=-1,d}else if(e.avail_in===0&&I(t)<=I(r)&&t!==l)return fe(e,h);if(a.status===ce&&e.avail_in!==0)return fe(e,h);if(e.avail_in!==0||a.lookahead!==0||t!==o&&a.status!==ce){var x=a.strategy===v?H(a,t):a.strategy===y?V(a,t):U[a.level].func(a,t);if((x===le||x===ue)&&(a.status=ce),x===P||x===le)return e.avail_out===0&&(a.last_flush=-1),d;if(x===F&&(t===s?n._tr_align(a):t!==u&&(n._tr_stored_block(a,0,0,!1),t===c&&(pe(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),me(e),e.avail_out===0))return a.last_flush=-1,d}return t===l?a.wrap<=0?f:(a.wrap===2?(L(a,e.adler&255),L(a,e.adler>>8&255),L(a,e.adler>>16&255),L(a,e.adler>>24&255),L(a,e.total_in&255),L(a,e.total_in>>8&255),L(a,e.total_in>>16&255),L(a,e.total_in>>24&255)):(R(a,e.adler>>>16),R(a,e.adler&65535)),me(e),a.wrap>0&&(a.wrap=-a.wrap),a.pending===0?f:d):d}function Oe(e){var t;return!e||!e.state?p:(t=e.state.status,t!==ne&&t!==re&&t!==ie&&t!==ae&&t!==oe&&t!==se&&t!==ce?fe(e,p):(e.state=null,t===se?fe(e,m):d))}function ke(e,n){var i=n.length,a,o,s,c,l,u,f,m;if(!e||!e.state||(a=e.state,c=a.wrap,c===2||c===1&&a.status!==ne||a.lookahead))return p;for(c===1&&(e.adler=r(e.adler,n,i,0)),a.wrap=0,i>=a.w_size&&(c===0&&(pe(a.head),a.strstart=0,a.block_start=0,a.insert=0),m=new t.Buf8(a.w_size),t.arraySet(m,n,i-a.w_size,a.w_size,0),n=m,i=a.w_size),l=e.avail_in,u=e.next_in,f=e.input,e.avail_in=i,e.next_in=0,e.input=n,z(a);a.lookahead>=j;){o=a.strstart,s=a.lookahead-(j-1);do a.ins_h=(a.ins_h<<a.hash_shift^a.window[o+j-1])&a.hash_mask,a.prev[o&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=o,o++;while(--s);a.strstart=o,a.lookahead=j-1,z(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=j-1,a.match_available=0,e.next_in=u,e.input=f,e.avail_in=l,a.wrap=c,d}e.deflateInit=Ee,e.deflateInit2=Te,e.deflateReset=Ce,e.deflateResetKeep=W,e.deflateSetHeader=we,e.deflate=De,e.deflateEnd=Oe,e.deflateSetDictionary=ke,e.deflateInfo=`pako deflate (from Nodeca project)`})),rc=t((e=>{var t=Zs(),n=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var i=new t.Buf8(256),a=0;a<256;a++)i[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;i[254]=i[254]=1,e.string2buf=function(e){var n,r,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),c+=r<128?1:r<2048?2:r<65536?3:4;for(n=new t.Buf8(c),o=0,a=0;o<c;a++)r=e.charCodeAt(a),(r&64512)==55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?n[o++]=r:r<2048?(n[o++]=192|r>>>6,n[o++]=128|r&63):r<65536?(n[o++]=224|r>>>12,n[o++]=128|r>>>6&63,n[o++]=128|r&63):(n[o++]=240|r>>>18,n[o++]=128|r>>>12&63,n[o++]=128|r>>>6&63,n[o++]=128|r&63);return n};function o(e,i){if(i<65534&&(e.subarray&&r||!e.subarray&&n))return String.fromCharCode.apply(null,t.shrinkBuf(e,i));for(var a=``,o=0;o<i;o++)a+=String.fromCharCode(e[o]);return a}e.buf2binstring=function(e){return o(e,e.length)},e.binstring2buf=function(e){for(var n=new t.Buf8(e.length),r=0,i=n.length;r<i;r++)n[r]=e.charCodeAt(r);return n},e.buf2string=function(e,t){var n,r,a,s,c=t||e.length,l=Array(c*2);for(r=0,n=0;n<c;){if(a=e[n++],a<128){l[r++]=a;continue}if(s=i[a],s>4){l[r++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<c;)a=a<<6|e[n++]&63,s--;if(s>1){l[r++]=65533;continue}a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|a&1023)}return o(l,r)},e.utf8border=function(e,t){var n;for(t||=e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+i[e[n]]>t?n:t}})),ic=t(((e,t)=>{function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}t.exports=n})),ac=t((e=>{var t=nc(),n=Zs(),r=rc(),i=tc(),a=ic(),o=Object.prototype.toString,s=0,c=4,l=0,u=1,d=2,f=-1,p=0,m=8;function h(e){if(!(this instanceof h))return new h(e);this.options=n.assign({level:f,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:``},e||{});var s=this.options;s.raw&&s.windowBits>0?s.windowBits=-s.windowBits:s.gzip&&s.windowBits>0&&s.windowBits<16&&(s.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var c=t.deflateInit2(this.strm,s.level,s.method,s.windowBits,s.memLevel,s.strategy);if(c!==l)throw Error(i[c]);if(s.header&&t.deflateSetHeader(this.strm,s.header),s.dictionary){var u=typeof s.dictionary==`string`?r.string2buf(s.dictionary):o.call(s.dictionary)===`[object ArrayBuffer]`?new Uint8Array(s.dictionary):s.dictionary;if(c=t.deflateSetDictionary(this.strm,u),c!==l)throw Error(i[c]);this._dict_set=!0}}h.prototype.push=function(e,i){var a=this.strm,f=this.options.chunkSize,p,m;if(this.ended)return!1;m=i===~~i?i:i===!0?c:s,a.input=typeof e==`string`?r.string2buf(e):o.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,a.next_in=0,a.avail_in=a.input.length;do{if(a.avail_out===0&&(a.output=new n.Buf8(f),a.next_out=0,a.avail_out=f),p=t.deflate(a,m),p!==u&&p!==l)return this.onEnd(p),this.ended=!0,!1;(a.avail_out===0||a.avail_in===0&&(m===c||m===d))&&(this.options.to===`string`?this.onData(r.buf2binstring(n.shrinkBuf(a.output,a.next_out))):this.onData(n.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||a.avail_out===0)&&p!==u);return m===c?(p=t.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===l):m!==d||(this.onEnd(l),a.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===l&&(this.result=this.options.to===`string`?this.chunks.join(``):n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||i[n.err];return n.result}function _(e,t){return t||={},t.raw=!0,g(e,t)}function v(e,t){return t||={},t.gzip=!0,g(e,t)}e.Deflate=h,e.deflate=g,e.deflateRaw=_,e.gzip=v})),oc=t(((e,t)=>{t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;top:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];dolen:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b===0)E[a++]=y&65535;else if(b&16){x=y&65535,b&=15,b&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];dodist:for(;;){if(b=y>>>24,p>>>=b,m-=b,b=y>>>16&255,b&16){if(S=y&65535,b&=15,m<b&&(p+=T[r++]<<m,m+=8,m<b&&(p+=T[r++]<<m,m+=8)),S+=p&(1<<b)-1,S>c){e.msg=`invalid distance too far back`,n.mode=30;break top}if(p>>>=b,m-=b,b=a-o,S>b){if(b=S-b,b>u&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break top}if(C=0,w=f,d===0){if(C+=l-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,b-=d,b<x){x-=b;do E[a++]=f[C++];while(--b);if(C=0,d<x){b=d,x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}}}else if(C+=d-b,b<x){x-=b;do E[a++]=f[C++];while(--b);C=a-S,w=E}for(;x>2;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],x>1&&(E[a++]=w[C++]))}else{C=a-S;do E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],x-=3;while(x>2);x&&(E[a++]=E[C++],x>1&&(E[a++]=E[C++]))}}else if(b&64){e.msg=`invalid distance code`,n.mode=30;break top}else{y=g[(y&65535)+(p&(1<<b)-1)];continue dodist}break}}else if(!(b&64)){y=h[(y&65535)+(p&(1<<b)-1)];continue dolen}else if(b&32){n.mode=12;break top}else{e.msg=`invalid literal/length code`,n.mode=30;break top}break}}while(r<i&&a<s);x=m>>3,r-=x,m-=x<<3,p&=(1<<m)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?5+(i-r):5-(r-i),e.avail_out=a<s?257+(s-a):257-(a-s),n.hold=p,n.bits=m}})),sc=t(((e,t)=>{var n=Zs(),r=15,i=852,a=592,o=0,s=1,c=2,l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,p,m,h,g,_,v){var y=v.bits,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,ee=0,O=0,k,A,j,M,N,te=null,ne=0,re,ie=new n.Buf16(r+1),ae=new n.Buf16(r+1),oe=null,se=0,ce,P,F;for(b=0;b<=r;b++)ie[b]=0;for(x=0;x<m;x++)ie[t[p+x]]++;for(w=y,C=r;C>=1&&ie[C]===0;C--);if(w>C&&(w=C),C===0)return h[g++]=20971520,h[g++]=20971520,v.bits=1,0;for(S=1;S<C&&ie[S]===0;S++);for(w<S&&(w=S),D=1,b=1;b<=r;b++)if(D<<=1,D-=ie[b],D<0)return-1;if(D>0&&(e===o||C!==1))return-1;for(ae[1]=0,b=1;b<r;b++)ae[b+1]=ae[b]+ie[b];for(x=0;x<m;x++)t[p+x]!==0&&(_[ae[t[p+x]]++]=x);if(e===o?(te=oe=_,re=19):e===s?(te=l,ne-=257,oe=u,se-=257,re=256):(te=d,oe=f,re=-1),O=0,x=0,b=S,N=g,T=w,E=0,j=-1,ee=1<<w,M=ee-1,e===s&&ee>i||e===c&&ee>a)return 1;for(;;){ce=b-E,_[x]<re?(P=0,F=_[x]):_[x]>re?(P=oe[se+_[x]],F=te[ne+_[x]]):(P=96,F=0),k=1<<b-E,A=1<<T,S=A;do A-=k,h[N+(O>>E)+A]=ce<<24|P<<16|F|0;while(A!==0);for(k=1<<b-1;O&k;)k>>=1;if(k===0?O=0:(O&=k-1,O+=k),x++,--ie[b]===0){if(b===C)break;b=t[p+_[x]]}if(b>w&&(O&M)!==j){for(E===0&&(E=w),N+=S,T=b-E,D=1<<T;T+E<C&&(D-=ie[T+E],!(D<=0));)T++,D<<=1;if(ee+=1<<T,e===s&&ee>i||e===c&&ee>a)return 1;j=O&M,h[j]=w<<24|T<<16|N-g|0}}return O!==0&&(h[N+O]=b-E<<24|4194304),v.bits=w,0}})),cc=t((e=>{var t=Zs(),n=$s(),r=ec(),i=oc(),a=sc(),o=0,s=1,c=2,l=4,u=5,d=6,f=0,p=1,m=2,h=-2,g=-3,_=-4,v=-5,y=8,b=1,x=2,S=3,C=4,w=5,T=6,E=7,D=8,ee=9,O=10,k=11,A=12,j=13,M=14,N=15,te=16,ne=17,re=18,ie=19,ae=20,oe=21,se=22,ce=23,P=24,F=25,le=26,ue=27,de=28,fe=29,I=30,pe=31,me=32,he=852,L=592,R=15;function ge(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function _e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function z(e){var n;return!e||!e.state?h:(n=e.state,e.total_in=e.total_out=n.total=0,e.msg=``,n.wrap&&(e.adler=n.wrap&1),n.mode=b,n.last=0,n.havedict=0,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new t.Buf32(he),n.distcode=n.distdyn=new t.Buf32(L),n.sane=1,n.back=-1,f)}function ve(e){var t;return!e||!e.state?h:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,z(e))}function B(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?h:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ve(e))}function ye(e,t){var n,r;return e?(r=new _e,e.state=r,r.window=null,n=B(e,t),n!==f&&(e.state=null),n):h}function V(e){return ye(e,R)}var H=!0,be,U;function xe(e){if(H){var n;for(be=new t.Buf32(512),U=new t.Buf32(32),n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(a(s,e.lens,0,288,be,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;a(c,e.lens,0,32,U,0,e.work,{bits:5}),H=!1}e.lencode=be,e.lenbits=9,e.distcode=U,e.distbits=5}function Se(e,n,r,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new t.Buf8(o.wsize)),i>=o.wsize?(t.arraySet(o.window,n,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),t.arraySet(o.window,n,r-i,a,o.wnext),i-=a,i?(t.arraySet(o.window,n,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}function W(e,he){var L,R,_e,z,ve,B,ye,V,H,be,U,W,Ce,we,Te=0,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe=new t.Buf8(4),Fe,Ie,Le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return h;L=e.state,L.mode===A&&(L.mode=j),ve=e.next_out,_e=e.output,ye=e.avail_out,z=e.next_in,R=e.input,B=e.avail_in,V=L.hold,H=L.bits,be=B,U=ye,Ne=f;inf_leave:for(;;)switch(L.mode){case b:if(L.wrap===0){L.mode=j;break}for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(L.wrap&2&&V===35615){L.check=0,Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0),V=0,H=0,L.mode=x;break}if(L.flags=0,L.head&&(L.head.done=!1),!(L.wrap&1)||(((V&255)<<8)+(V>>8))%31){e.msg=`incorrect header check`,L.mode=I;break}if((V&15)!==y){e.msg=`unknown compression method`,L.mode=I;break}if(V>>>=4,H-=4,Me=(V&15)+8,L.wbits===0)L.wbits=Me;else if(Me>L.wbits){e.msg=`invalid window size`,L.mode=I;break}L.dmax=1<<Me,e.adler=L.check=1,L.mode=V&512?O:A,V=0,H=0;break;case x:for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(L.flags=V,(L.flags&255)!==y){e.msg=`unknown compression method`,L.mode=I;break}if(L.flags&57344){e.msg=`unknown header flags set`,L.mode=I;break}L.head&&(L.head.text=V>>8&1),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0)),V=0,H=0,L.mode=S;case S:for(;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.head&&(L.head.time=V),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,Pe[2]=V>>>16&255,Pe[3]=V>>>24&255,L.check=r(L.check,Pe,4,0)),V=0,H=0,L.mode=C;case C:for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.head&&(L.head.xflags=V&255,L.head.os=V>>8),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0)),V=0,H=0,L.mode=w;case w:if(L.flags&1024){for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.length=V,L.head&&(L.head.extra_len=V),L.flags&512&&(Pe[0]=V&255,Pe[1]=V>>>8&255,L.check=r(L.check,Pe,2,0)),V=0,H=0}else L.head&&(L.head.extra=null);L.mode=T;case T:if(L.flags&1024&&(W=L.length,W>B&&(W=B),W&&(L.head&&(Me=L.head.extra_len-L.length,L.head.extra||(L.head.extra=Array(L.head.extra_len)),t.arraySet(L.head.extra,R,z,W,Me)),L.flags&512&&(L.check=r(L.check,R,W,z)),B-=W,z+=W,L.length-=W),L.length))break inf_leave;L.length=0,L.mode=E;case E:if(L.flags&2048){if(B===0)break inf_leave;W=0;do Me=R[z+W++],L.head&&Me&&L.length<65536&&(L.head.name+=String.fromCharCode(Me));while(Me&&W<B);if(L.flags&512&&(L.check=r(L.check,R,W,z)),B-=W,z+=W,Me)break inf_leave}else L.head&&(L.head.name=null);L.length=0,L.mode=D;case D:if(L.flags&4096){if(B===0)break inf_leave;W=0;do Me=R[z+W++],L.head&&Me&&L.length<65536&&(L.head.comment+=String.fromCharCode(Me));while(Me&&W<B);if(L.flags&512&&(L.check=r(L.check,R,W,z)),B-=W,z+=W,Me)break inf_leave}else L.head&&(L.head.comment=null);L.mode=ee;case ee:if(L.flags&512){for(;H<16;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(V!==(L.check&65535)){e.msg=`header crc mismatch`,L.mode=I;break}V=0,H=0}L.head&&(L.head.hcrc=L.flags>>9&1,L.head.done=!0),e.adler=L.check=0,L.mode=A;break;case O:for(;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}e.adler=L.check=ge(V),V=0,H=0,L.mode=k;case k:if(L.havedict===0)return e.next_out=ve,e.avail_out=ye,e.next_in=z,e.avail_in=B,L.hold=V,L.bits=H,m;e.adler=L.check=1,L.mode=A;case A:if(he===u||he===d)break inf_leave;case j:if(L.last){V>>>=H&7,H-=H&7,L.mode=ue;break}for(;H<3;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}switch(L.last=V&1,V>>>=1,--H,V&3){case 0:L.mode=M;break;case 1:if(xe(L),L.mode=ae,he===d){V>>>=2,H-=2;break inf_leave}break;case 2:L.mode=ne;break;case 3:e.msg=`invalid block type`,L.mode=I}V>>>=2,H-=2;break;case M:for(V>>>=H&7,H-=H&7;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if((V&65535)!=(V>>>16^65535)){e.msg=`invalid stored block lengths`,L.mode=I;break}if(L.length=V&65535,V=0,H=0,L.mode=N,he===d)break inf_leave;case N:L.mode=te;case te:if(W=L.length,W){if(W>B&&(W=B),W>ye&&(W=ye),W===0)break inf_leave;t.arraySet(_e,R,z,W,ve),B-=W,z+=W,ye-=W,ve+=W,L.length-=W;break}L.mode=A;break;case ne:for(;H<14;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(L.nlen=(V&31)+257,V>>>=5,H-=5,L.ndist=(V&31)+1,V>>>=5,H-=5,L.ncode=(V&15)+4,V>>>=4,H-=4,L.nlen>286||L.ndist>30){e.msg=`too many length or distance symbols`,L.mode=I;break}L.have=0,L.mode=re;case re:for(;L.have<L.ncode;){for(;H<3;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.lens[Le[L.have++]]=V&7,V>>>=3,H-=3}for(;L.have<19;)L.lens[Le[L.have++]]=0;if(L.lencode=L.lendyn,L.lenbits=7,Fe={bits:L.lenbits},Ne=a(o,L.lens,0,19,L.lencode,0,L.work,Fe),L.lenbits=Fe.bits,Ne){e.msg=`invalid code lengths set`,L.mode=I;break}L.have=0,L.mode=ie;case ie:for(;L.have<L.nlen+L.ndist;){for(;Te=L.lencode[V&(1<<L.lenbits)-1],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(Oe<16)V>>>=Ee,H-=Ee,L.lens[L.have++]=Oe;else{if(Oe===16){for(Ie=Ee+2;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(V>>>=Ee,H-=Ee,L.have===0){e.msg=`invalid bit length repeat`,L.mode=I;break}Me=L.lens[L.have-1],W=3+(V&3),V>>>=2,H-=2}else if(Oe===17){for(Ie=Ee+3;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=Ee,H-=Ee,Me=0,W=3+(V&7),V>>>=3,H-=3}else{for(Ie=Ee+7;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=Ee,H-=Ee,Me=0,W=11+(V&127),V>>>=7,H-=7}if(L.have+W>L.nlen+L.ndist){e.msg=`invalid bit length repeat`,L.mode=I;break}for(;W--;)L.lens[L.have++]=Me}}if(L.mode===I)break;if(L.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,L.mode=I;break}if(L.lenbits=9,Fe={bits:L.lenbits},Ne=a(s,L.lens,0,L.nlen,L.lencode,0,L.work,Fe),L.lenbits=Fe.bits,Ne){e.msg=`invalid literal/lengths set`,L.mode=I;break}if(L.distbits=6,L.distcode=L.distdyn,Fe={bits:L.distbits},Ne=a(c,L.lens,L.nlen,L.ndist,L.distcode,0,L.work,Fe),L.distbits=Fe.bits,Ne){e.msg=`invalid distances set`,L.mode=I;break}if(L.mode=ae,he===d)break inf_leave;case ae:L.mode=oe;case oe:if(B>=6&&ye>=258){e.next_out=ve,e.avail_out=ye,e.next_in=z,e.avail_in=B,L.hold=V,L.bits=H,i(e,U),ve=e.next_out,_e=e.output,ye=e.avail_out,z=e.next_in,R=e.input,B=e.avail_in,V=L.hold,H=L.bits,L.mode===A&&(L.back=-1);break}for(L.back=0;Te=L.lencode[V&(1<<L.lenbits)-1],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(De&&!(De&240)){for(ke=Ee,Ae=De,je=Oe;Te=L.lencode[je+((V&(1<<ke+Ae)-1)>>ke)],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(ke+Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=ke,H-=ke,L.back+=ke}if(V>>>=Ee,H-=Ee,L.back+=Ee,L.length=Oe,De===0){L.mode=le;break}if(De&32){L.back=-1,L.mode=A;break}if(De&64){e.msg=`invalid literal/length code`,L.mode=I;break}L.extra=De&15,L.mode=se;case se:if(L.extra){for(Ie=L.extra;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.length+=V&(1<<L.extra)-1,V>>>=L.extra,H-=L.extra,L.back+=L.extra}L.was=L.length,L.mode=ce;case ce:for(;Te=L.distcode[V&(1<<L.distbits)-1],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(!(De&240)){for(ke=Ee,Ae=De,je=Oe;Te=L.distcode[je+((V&(1<<ke+Ae)-1)>>ke)],Ee=Te>>>24,De=Te>>>16&255,Oe=Te&65535,!(ke+Ee<=H);){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}V>>>=ke,H-=ke,L.back+=ke}if(V>>>=Ee,H-=Ee,L.back+=Ee,De&64){e.msg=`invalid distance code`,L.mode=I;break}L.offset=Oe,L.extra=De&15,L.mode=P;case P:if(L.extra){for(Ie=L.extra;H<Ie;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}L.offset+=V&(1<<L.extra)-1,V>>>=L.extra,H-=L.extra,L.back+=L.extra}if(L.offset>L.dmax){e.msg=`invalid distance too far back`,L.mode=I;break}L.mode=F;case F:if(ye===0)break inf_leave;if(W=U-ye,L.offset>W){if(W=L.offset-W,W>L.whave&&L.sane){e.msg=`invalid distance too far back`,L.mode=I;break}W>L.wnext?(W-=L.wnext,Ce=L.wsize-W):Ce=L.wnext-W,W>L.length&&(W=L.length),we=L.window}else we=_e,Ce=ve-L.offset,W=L.length;W>ye&&(W=ye),ye-=W,L.length-=W;do _e[ve++]=we[Ce++];while(--W);L.length===0&&(L.mode=oe);break;case le:if(ye===0)break inf_leave;_e[ve++]=L.length,ye--,L.mode=oe;break;case ue:if(L.wrap){for(;H<32;){if(B===0)break inf_leave;B--,V|=R[z++]<<H,H+=8}if(U-=ye,e.total_out+=U,L.total+=U,U&&(e.adler=L.check=L.flags?r(L.check,_e,U,ve-U):n(L.check,_e,U,ve-U)),U=ye,(L.flags?V:ge(V))!==L.check){e.msg=`incorrect data check`,L.mode=I;break}V=0,H=0}L.mode=de;case de:if(L.wrap&&L.flags){for(;H<32;){if(B===0)break inf_leave;B--,V+=R[z++]<<H,H+=8}if(V!==(L.total&4294967295)){e.msg=`incorrect length check`,L.mode=I;break}V=0,H=0}L.mode=fe;case fe:Ne=p;break inf_leave;case I:Ne=g;break inf_leave;case pe:return _;case me:default:return h}return e.next_out=ve,e.avail_out=ye,e.next_in=z,e.avail_in=B,L.hold=V,L.bits=H,(L.wsize||U!==e.avail_out&&L.mode<I&&(L.mode<ue||he!==l))&&Se(e,e.output,e.next_out,U-e.avail_out)?(L.mode=pe,_):(be-=e.avail_in,U-=e.avail_out,e.total_in+=be,e.total_out+=U,L.total+=U,L.wrap&&U&&(e.adler=L.check=L.flags?r(L.check,_e,U,e.next_out-U):n(L.check,_e,U,e.next_out-U)),e.data_type=L.bits+(L.last?64:0)+(L.mode===A?128:0)+(L.mode===ae||L.mode===N?256:0),(be===0&&U===0||he===l)&&Ne===f&&(Ne=v),Ne)}function Ce(e){if(!e||!e.state)return h;var t=e.state;return t.window&&=null,e.state=null,f}function we(e,t){var n;return!e||!e.state||(n=e.state,!(n.wrap&2))?h:(n.head=t,t.done=!1,f)}function Te(e,t){var r=t.length,i,a,o;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==k)?h:i.mode===k&&(a=1,a=n(a,t,r,0),a!==i.check)?g:(o=Se(e,t,r,r),o?(i.mode=pe,_):(i.havedict=1,f))}e.inflateReset=ve,e.inflateReset2=B,e.inflateResetKeep=z,e.inflateInit=V,e.inflateInit2=ye,e.inflate=W,e.inflateEnd=Ce,e.inflateGetHeader=we,e.inflateSetDictionary=Te,e.inflateInfo=`pako inflate (from Nodeca project)`})),lc=t(((e,t)=>{t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),uc=t(((e,t)=>{function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}t.exports=n})),dc=t((e=>{var t=cc(),n=Zs(),r=rc(),i=lc(),a=tc(),o=ic(),s=uc(),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:``},e||{});var u=this.options;u.raw&&u.windowBits>=0&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),u.windowBits>=0&&u.windowBits<16&&!(e&&e.windowBits)&&(u.windowBits+=32),u.windowBits>15&&u.windowBits<48&&(u.windowBits&15||(u.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,u.windowBits);if(d!==i.Z_OK||(this.header=new s,t.inflateGetHeader(this.strm,this.header),u.dictionary&&(typeof u.dictionary==`string`?u.dictionary=r.string2buf(u.dictionary):c.call(u.dictionary)===`[object ArrayBuffer]`&&(u.dictionary=new Uint8Array(u.dictionary)),u.raw&&(d=t.inflateSetDictionary(this.strm,u.dictionary),d!==i.Z_OK))))throw Error(a[d])}l.prototype.push=function(e,a){var o=this.strm,s=this.options.chunkSize,l=this.options.dictionary,u,d,f,p,m,h=!1;if(this.ended)return!1;d=a===~~a?a:a===!0?i.Z_FINISH:i.Z_NO_FLUSH,o.input=typeof e==`string`?r.binstring2buf(e):c.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,o.next_in=0,o.avail_in=o.input.length;do{if(o.avail_out===0&&(o.output=new n.Buf8(s),o.next_out=0,o.avail_out=s),u=t.inflate(o,i.Z_NO_FLUSH),u===i.Z_NEED_DICT&&l&&(u=t.inflateSetDictionary(this.strm,l)),u===i.Z_BUF_ERROR&&h===!0&&(u=i.Z_OK,h=!1),u!==i.Z_STREAM_END&&u!==i.Z_OK)return this.onEnd(u),this.ended=!0,!1;o.next_out&&(o.avail_out===0||u===i.Z_STREAM_END||o.avail_in===0&&(d===i.Z_FINISH||d===i.Z_SYNC_FLUSH))&&(this.options.to===`string`?(f=r.utf8border(o.output,o.next_out),p=o.next_out-f,m=r.buf2string(o.output,f),o.next_out=p,o.avail_out=s-p,p&&n.arraySet(o.output,o.output,f,p,0),this.onData(m)):this.onData(n.shrinkBuf(o.output,o.next_out))),o.avail_in===0&&o.avail_out===0&&(h=!0)}while((o.avail_in>0||o.avail_out===0)&&u!==i.Z_STREAM_END);return u===i.Z_STREAM_END&&(d=i.Z_FINISH),d===i.Z_FINISH?(u=t.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===i.Z_OK):d!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),o.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){e===i.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}function d(e,t){return t||={},t.raw=!0,u(e,t)}e.Inflate=l,e.inflate=u,e.inflateRaw=d,e.ungzip=u})),fc=e(t(((e,t)=>{var n=Zs().assign,r=ac(),i=dc(),a=lc(),o={};n(o,r,i,a),t.exports=o}))()),Q={};Q.toRGBA8=function(e){var t=e.width,n=e.height;if(e.tabs.acTL==null)return[Q.toRGBA8.decodeImage(e.data,t,n,e).buffer];var r=[];e.frames[0].data??(e.frames[0].data=e.data);for(var i=t*n*4,a=new Uint8Array(i),o=new Uint8Array(i),s=new Uint8Array(i),c=0;c<e.frames.length;c++){var l=e.frames[c],u=l.rect.x,d=l.rect.y,f=l.rect.width,p=l.rect.height,m=Q.toRGBA8.decodeImage(l.data,f,p,e);if(c!=0)for(var h=0;h<i;h++)s[h]=a[h];if(l.blend==0?Q._copyTile(m,f,p,a,t,n,u,d,0):l.blend==1&&Q._copyTile(m,f,p,a,t,n,u,d,1),r.push(a.buffer.slice(0)),l.dispose!=0){if(l.dispose==1)Q._copyTile(o,f,p,a,t,n,u,d,0);else if(l.dispose==2)for(var h=0;h<i;h++)a[h]=s[h]}}return r},Q.toRGBA8.decodeImage=function(e,t,n,r){var i=t*n,a=Q.decode._getBPP(r),o=Math.ceil(t*a/8),s=new Uint8Array(i*4),c=new Uint32Array(s.buffer),l=r.ctype,u=r.depth,d=Q._bin.readUshort;if(l==6){var f=i<<2;if(u==8)for(var p=0;p<f;p+=4)s[p]=e[p],s[p+1]=e[p+1],s[p+2]=e[p+2],s[p+3]=e[p+3];if(u==16)for(var p=0;p<f;p++)s[p]=e[p<<1]}else if(l==2){var m=r.tabs.tRNS;if(m==null){if(u==8)for(var p=0;p<i;p++){var h=p*3;c[p]=255<<24|e[h+2]<<16|e[h+1]<<8|e[h]}if(u==16)for(var p=0;p<i;p++){var h=p*6;c[p]=255<<24|e[h+4]<<16|e[h+2]<<8|e[h]}}else{var g=m[0],_=m[1],v=m[2];if(u==8)for(var p=0;p<i;p++){var y=p<<2,h=p*3;c[p]=255<<24|e[h+2]<<16|e[h+1]<<8|e[h],e[h]==g&&e[h+1]==_&&e[h+2]==v&&(s[y+3]=0)}if(u==16)for(var p=0;p<i;p++){var y=p<<2,h=p*6;c[p]=255<<24|e[h+4]<<16|e[h+2]<<8|e[h],d(e,h)==g&&d(e,h+2)==_&&d(e,h+4)==v&&(s[y+3]=0)}}}else if(l==3){var b=r.tabs.PLTE,x=r.tabs.tRNS,S=x?x.length:0;if(u==1)for(var C=0;C<n;C++)for(var w=C*o,T=C*t,p=0;p<t;p++){var y=T+p<<2,E=e[w+(p>>3)]>>7-((p&7)<<0)&1,D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}if(u==2)for(var C=0;C<n;C++)for(var w=C*o,T=C*t,p=0;p<t;p++){var y=T+p<<2,E=e[w+(p>>2)]>>6-((p&3)<<1)&3,D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}if(u==4)for(var C=0;C<n;C++)for(var w=C*o,T=C*t,p=0;p<t;p++){var y=T+p<<2,E=e[w+(p>>1)]>>4-((p&1)<<2)&15,D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}if(u==8)for(var p=0;p<i;p++){var y=p<<2,E=e[p],D=3*E;s[y]=b[D],s[y+1]=b[D+1],s[y+2]=b[D+2],s[y+3]=E<S?x[E]:255}}else if(l==4){if(u==8)for(var p=0;p<i;p++){var y=p<<2,ee=p<<1,O=e[ee];s[y]=O,s[y+1]=O,s[y+2]=O,s[y+3]=e[ee+1]}if(u==16)for(var p=0;p<i;p++){var y=p<<2,ee=p<<2,O=e[ee];s[y]=O,s[y+1]=O,s[y+2]=O,s[y+3]=e[ee+2]}}else if(l==0)for(var g=r.tabs.tRNS?r.tabs.tRNS:-1,C=0;C<n;C++){var k=C*o,A=C*t;if(u==1)for(var j=0;j<t;j++){var O=255*(e[k+(j>>>3)]>>>7-(j&7)&1),M=O==g*255?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==2)for(var j=0;j<t;j++){var O=85*(e[k+(j>>>2)]>>>6-((j&3)<<1)&3),M=O==g*85?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==4)for(var j=0;j<t;j++){var O=17*(e[k+(j>>>1)]>>>4-((j&1)<<2)&15),M=O==g*17?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==8)for(var j=0;j<t;j++){var O=e[k+j],M=O==g?0:255;c[A+j]=M<<24|O<<16|O<<8|O}else if(u==16)for(var j=0;j<t;j++){var O=e[k+(j<<1)],M=d(e,k+(j<<p))==g?0:255;c[A+j]=M<<24|O<<16|O<<8|O}}return s},Q.decode=function(e){for(var t=new Uint8Array(e),n=8,r=Q._bin,i=r.readUshort,a=r.readUint,o={tabs:{},frames:[]},s=new Uint8Array(t.length),c=0,l,u=0,d=[137,80,78,71,13,10,26,10],f=0;f<8;f++)if(t[f]!=d[f])throw`The input is not a PNG file!`;for(;n<t.length;){var p=r.readUint(t,n);n+=4;var m=r.readASCII(t,n,4);if(n+=4,m==`IHDR`)Q.decode._IHDR(t,n,o);else if(m==`IDAT`){for(var f=0;f<p;f++)s[c+f]=t[n+f];c+=p}else if(m==`acTL`)o.tabs[m]={num_frames:a(t,n),num_plays:a(t,n+4)},l=new Uint8Array(t.length);else if(m==`fcTL`){if(u!=0){var h=o.frames[o.frames.length-1];h.data=Q.decode._decompress(o,l.slice(0,u),h.rect.width,h.rect.height),u=0}var g={x:a(t,n+12),y:a(t,n+16),width:a(t,n+4),height:a(t,n+8)},_=i(t,n+22);_=i(t,n+20)/(_==0?100:_);var v={rect:g,delay:Math.round(_*1e3),dispose:t[n+24],blend:t[n+25]};o.frames.push(v)}else if(m==`fdAT`){for(var f=0;f<p-4;f++)l[u+f]=t[n+f+4];u+=p-4}else if(m==`pHYs`)o.tabs[m]=[r.readUint(t,n),r.readUint(t,n+4),t[n+8]];else if(m==`cHRM`){o.tabs[m]=[];for(var f=0;f<8;f++)o.tabs[m].push(r.readUint(t,n+f*4))}else if(m==`tEXt`){o.tabs[m]??(o.tabs[m]={});var y=r.nextZero(t,n),b=r.readASCII(t,n,y-n),x=r.readASCII(t,y+1,n+p-y-1);o.tabs[m][b]=x}else if(m==`iTXt`){o.tabs[m]??(o.tabs[m]={});var y=0,S=n;y=r.nextZero(t,S);var b=r.readASCII(t,S,y-S);S=y+1,t[S],t[S+1],S+=2,y=r.nextZero(t,S),r.readASCII(t,S,y-S),S=y+1,y=r.nextZero(t,S),r.readUTF8(t,S,y-S),S=y+1;var x=r.readUTF8(t,S,p-(S-n));o.tabs[m][b]=x}else if(m==`PLTE`)o.tabs[m]=r.readBytes(t,n,p);else if(m==`hIST`){var C=o.tabs.PLTE.length/3;o.tabs[m]=[];for(var f=0;f<C;f++)o.tabs[m].push(i(t,n+f*2))}else if(m==`tRNS`)o.ctype==3?o.tabs[m]=r.readBytes(t,n,p):o.ctype==0?o.tabs[m]=i(t,n):o.ctype==2&&(o.tabs[m]=[i(t,n),i(t,n+2),i(t,n+4)]);else if(m==`gAMA`)o.tabs[m]=r.readUint(t,n)/1e5;else if(m==`sRGB`)o.tabs[m]=t[n];else if(m==`bKGD`)o.ctype==0||o.ctype==4?o.tabs[m]=[i(t,n)]:o.ctype==2||o.ctype==6?o.tabs[m]=[i(t,n),i(t,n+2),i(t,n+4)]:o.ctype==3&&(o.tabs[m]=t[n]);else if(m==`IEND`)break;n+=p,r.readUint(t,n),n+=4}if(u!=0){var h=o.frames[o.frames.length-1];h.data=Q.decode._decompress(o,l.slice(0,u),h.rect.width,h.rect.height),u=0}return o.data=Q.decode._decompress(o,s,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o},Q.decode._decompress=function(e,t,n,r){var i=Q.decode._getBPP(e),a=Math.ceil(n*i/8),o=new Uint8Array((a+1+e.interlace)*r);return t=Q.decode._inflate(t,o),e.interlace==0?t=Q.decode._filterZero(t,e,0,n,r):e.interlace==1&&(t=Q.decode._readInterlace(t,e)),t},Q.decode._inflate=function(e,t){return Q.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},Q.inflateRaw=function(){var e={};return e.H={},e.H.N=function(t,n){var r=Uint8Array,i=0,a=0,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p,m;if(t[0]==3&&t[1]==0)return n||new r(0);var h=e.H,g=h.b,_=h.e,v=h.R,y=h.n,b=h.A,x=h.Z,S=h.m,C=n==null;for(C&&(n=new r(t.length>>>2<<3));i==0;){if(i=g(t,f,1),a=g(t,f+1,2),f+=3,a==0){f&7&&(f+=8-(f&7));var w=(f>>>3)+4,T=t[w-4]|t[w-3]<<8;C&&(n=e.H.W(n,d+T)),n.set(new r(t.buffer,t.byteOffset+w,T),d),f=w+T<<3,d+=T;continue}if(C&&(n=e.H.W(n,d+(1<<17))),a==1&&(p=S.J,m=S.h,l=511,u=31),a==2){o=_(t,f,5)+257,s=_(t,f+5,5)+1,c=_(t,f+10,4)+4,f+=14;for(var E=1,D=0;D<38;D+=2)S.Q[D]=0,S.Q[D+1]=0;for(var D=0;D<c;D++){var ee=_(t,f+D*3,3);S.Q[(S.X[D]<<1)+1]=ee,ee>E&&(E=ee)}f+=3*c,y(S.Q,E),b(S.Q,E,S.u),p=S.w,m=S.d,f=v(S.u,(1<<E)-1,o+s,t,f,S.v);var O=h.V(S.v,0,o,S.C);l=(1<<O)-1;var k=h.V(S.v,o,s,S.D);u=(1<<k)-1,y(S.C,O),b(S.C,O,p),y(S.D,k),b(S.D,k,m)}for(;;){var A=p[x(t,f)&l];f+=A&15;var j=A>>>4;if(!(j>>>8))n[d++]=j;else if(j==256)break;else{var M=d+j-254;if(j>264){var N=S.q[j-257];M=d+(N>>>3)+_(t,f,N&7),f+=N&7}var te=m[x(t,f)&u];f+=te&15;var ne=te>>>4,re=S.c[ne],ie=(re>>>4)+g(t,f,re&15);for(f+=re&15;d<M;)n[d]=n[d++-ie],n[d]=n[d++-ie],n[d]=n[d++-ie],n[d]=n[d++-ie];d=M}}}return n.length==d?n:n.slice(0,d)},e.H.W=function(e,t){var n=e.length;if(t<=n)return e;var r=new Uint8Array(n<<1);return r.set(e,0),r},e.H.R=function(t,n,r,i,a,o){for(var s=e.H.e,c=e.H.Z,l=0;l<r;){var u=t[c(i,a)&n];a+=u&15;var d=u>>>4;if(d<=15)o[l]=d,l++;else{var f=0,p=0;d==16?(p=3+s(i,a,2),a+=2,f=o[l-1]):d==17?(p=3+s(i,a,3),a+=3):d==18&&(p=11+s(i,a,7),a+=7);for(var m=l+p;l<m;)o[l]=f,l++}}return a},e.H.V=function(e,t,n,r){for(var i=0,a=0,o=r.length>>>1;a<n;){var s=e[a+t];r[a<<1]=0,r[(a<<1)+1]=s,s>i&&(i=s),a++}for(;a<o;)r[a<<1]=0,r[(a<<1)+1]=0,a++;return i},e.H.n=function(t,n){for(var r=e.H.m,i=t.length,a,o,s,c,l,u=r.j,c=0;c<=n;c++)u[c]=0;for(c=1;c<i;c+=2)u[t[c]]++;var d=r.K;for(a=0,u[0]=0,o=1;o<=n;o++)a=a+u[o-1]<<1,d[o]=a;for(s=0;s<i;s+=2)l=t[s+1],l!=0&&(t[s]=d[l],d[l]++)},e.H.A=function(t,n,r){for(var i=t.length,a=e.H.m.r,o=0;o<i;o+=2)if(t[o+1]!=0)for(var s=o>>1,c=t[o+1],l=s<<4|c,u=n-c,d=t[o]<<u,f=d+(1<<u);d!=f;){var p=a[d]>>>15-n;r[p]=l,d++}},e.H.l=function(t,n){for(var r=e.H.m.r,i=15-n,a=0;a<t.length;a+=2){var o=t[a]<<n-t[a+1];t[a]=r[o]>>>i}},e.H.M=function(e,t,n){n<<=t&7;var r=t>>>3;e[r]|=n,e[r+1]|=n>>>8},e.H.I=function(e,t,n){n<<=t&7;var r=t>>>3;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[(t>>>3)+1]<<8)>>>(t&7)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(e,t){return(e[t>>>3]|e[(t>>>3)+1]<<8|e[(t>>>3)+2]<<16|e[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){var e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),(function(){for(var t=e.H.m,n=32768,r=0;r<n;r++){var i=r;i=(i&2863311530)>>>1|(i&1431655765)<<1,i=(i&3435973836)>>>2|(i&858993459)<<2,i=(i&4042322160)>>>4|(i&252645135)<<4,i=(i&4278255360)>>>8|(i&16711935)<<8,t.r[r]=(i>>>16|i<<16)>>>17}function a(e,t,n){for(;t--!=0;)e.push(0,n)}for(var r=0;r<32;r++)t.q[r]=t.S[r]<<3|t.T[r],t.c[r]=t.p[r]<<4|t.z[r];a(t._,144,8),a(t._,112,9),a(t._,24,7),a(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),a(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),a(t.Q,19,0),a(t.C,286,0),a(t.D,30,0),a(t.v,320,0)})(),e.H.N}(),Q.decode._readInterlace=function(e,t){for(var n=t.width,r=t.height,i=Q.decode._getBPP(t),a=i>>3,o=Math.ceil(n*i/8),s=new Uint8Array(r*o),c=0,l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1],p=0;p<7;){for(var m=d[p],h=f[p],g=0,_=0,v=l[p];v<r;)v+=m,_++;for(var y=u[p];y<n;)y+=h,g++;var b=Math.ceil(g*i/8);Q.decode._filterZero(e,t,c,g,_);for(var x=0,S=l[p];S<r;){for(var C=u[p],w=c+x*b<<3;C<n;){if(i==1){var T=e[w>>3];T=T>>7-(w&7)&1,s[S*o+(C>>3)]|=T<<7-((C&7)<<0)}if(i==2){var T=e[w>>3];T=T>>6-(w&7)&3,s[S*o+(C>>2)]|=T<<6-((C&3)<<1)}if(i==4){var T=e[w>>3];T=T>>4-(w&7)&15,s[S*o+(C>>1)]|=T<<4-((C&1)<<2)}if(i>=8)for(var E=S*o+C*a,D=0;D<a;D++)s[E+D]=e[(w>>3)+D];w+=i,C+=h}x++,S+=m}g*_!=0&&(c+=_*(1+b)),p+=1}return s},Q.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},Q.decode._filterZero=function(e,t,n,r,i){var a=Q.decode._getBPP(t),o=Math.ceil(r*a/8),s=Q.decode._paeth;a=Math.ceil(a/8);var c=0,l=1,u=e[n],d=0;if(u>1&&(e[n]=[0,0,1][u-2]),u==3)for(d=a;d<o;d++)e[d+1]=e[d+1]+(e[d+1-a]>>>1)&255;for(var f=0;f<i;f++)if(c=n+f*o,l=c+f+1,u=e[l-1],d=0,u==0)for(;d<o;d++)e[c+d]=e[l+d];else if(u==1){for(;d<a;d++)e[c+d]=e[l+d];for(;d<o;d++)e[c+d]=e[l+d]+e[c+d-a]}else if(u==2)for(;d<o;d++)e[c+d]=e[l+d]+e[c+d-o];else if(u==3){for(;d<a;d++)e[c+d]=e[l+d]+(e[c+d-o]>>>1);for(;d<o;d++)e[c+d]=e[l+d]+(e[c+d-o]+e[c+d-a]>>>1)}else{for(;d<a;d++)e[c+d]=e[l+d]+s(0,e[c+d-o],0);for(;d<o;d++)e[c+d]=e[l+d]+s(e[c+d-a],e[c+d-o],e[c+d-a-o])}return e},Q.decode._paeth=function(e,t,n){var r=e+t-n,i=r-e,a=r-t,o=r-n;return i*i<=a*a&&i*i<=o*o?e:a*a<=o*o?t:n},Q.decode._IHDR=function(e,t,n){var r=Q._bin;n.width=r.readUint(e,t),t+=4,n.height=r.readUint(e,t),t+=4,n.depth=e[t],t++,n.ctype=e[t],t++,n.compress=e[t],t++,n.filter=e[t],t++,n.interlace=e[t],t++},Q._bin={nextZero:function(e,t){for(;e[t]!=0;)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,n){e[t]=n>>8&255,e[t+1]=n&255},readUint:function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255},readASCII:function(e,t,n){for(var r=``,i=0;i<n;i++)r+=String.fromCharCode(e[t+i]);return r},writeASCII:function(e,t,n){for(var r=0;r<n.length;r++)e[t+r]=n.charCodeAt(r)},readBytes:function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e[t+i]);return r},pad:function(e){return e.length<2?`0`+e:e},readUTF8:function(e,t,n){for(var r=``,i,a=0;a<n;a++)r+=`%`+Q._bin.pad(e[t+a].toString(16));try{i=decodeURIComponent(r)}catch{return Q._bin.readASCII(e,t,n)}return i}},Q._copyTile=function(e,t,n,r,i,a,o,s,c){for(var l=Math.min(t,i),u=Math.min(n,a),d=0,f=0,p=0;p<u;p++)for(var m=0;m<l;m++)if(o>=0&&s>=0?(d=p*t+m<<2,f=(s+p)*i+o+m<<2):(d=(-s+p)*t-o+m<<2,f=p*i+m<<2),c==0)r[f]=e[d],r[f+1]=e[d+1],r[f+2]=e[d+2],r[f+3]=e[d+3];else if(c==1){var h=e[d+3]*(1/255),g=e[d]*h,_=e[d+1]*h,v=e[d+2]*h,y=r[f+3]*(1/255),b=r[f]*y,x=r[f+1]*y,S=r[f+2]*y,C=1-h,w=h+y*C,T=w==0?0:1/w;r[f+3]=255*w,r[f+0]=(g+b*C)*T,r[f+1]=(_+x*C)*T,r[f+2]=(v+S*C)*T}else if(c==2){var h=e[d+3],g=e[d],_=e[d+1],v=e[d+2],y=r[f+3],b=r[f],x=r[f+1],S=r[f+2];h==y&&g==b&&_==x&&v==S?(r[f]=0,r[f+1]=0,r[f+2]=0,r[f+3]=0):(r[f]=g,r[f+1]=_,r[f+2]=v,r[f+3]=h)}else if(c==3){var h=e[d+3],g=e[d],_=e[d+1],v=e[d+2],y=r[f+3],b=r[f],x=r[f+1],S=r[f+2];if(h==y&&g==b&&_==x&&v==S)continue;if(h<220&&y>20)return!1}return!0},Q.encode=function(e,t,n,r,i,a,o){r??=0,o??=!1;var s=Q.encode.compress(e,t,n,r,[!1,!1,!1,0,o]);return Q.encode.compressPNG(s,-1),Q.encode._main(s,t,n,i,a)},Q.encodeLL=function(e,t,n,r,i,a,o,s){for(var c={ctype:0+(r==1?0:2)+(i==0?0:4),depth:a,frames:[]},l=(r+i)*a,u=l*t,d=0;d<e.length;d++)c.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(u/8)});return Q.encode.compressPNG(c,0,!0),Q.encode._main(c,t,n,o,s)},Q.encode._main=function(e,t,n,r,i){i??={};var a=Q.crc.crc,o=Q._bin.writeUint,s=Q._bin.writeUshort,c=Q._bin.writeASCII,l=8,u=e.frames.length>1,d=!1,f=33+(u?20:0);if(i.sRGB!=null&&(f+=13),i.pHYs!=null&&(f+=21),e.ctype==3){for(var p=e.plte.length,m=0;m<p;m++)e.plte[m]>>>24!=255&&(d=!0);f+=8+p*3+4+(d?8+p*1+4:0)}for(var h=0;h<e.frames.length;h++){var g=e.frames[h];u&&(f+=38),f+=g.cimg.length+12,h!=0&&(f+=4)}f+=12;for(var _=new Uint8Array(f),v=[137,80,78,71,13,10,26,10],m=0;m<8;m++)_[m]=v[m];if(o(_,l,13),l+=4,c(_,l,`IHDR`),l+=4,o(_,l,t),l+=4,o(_,l,n),l+=4,_[l]=e.depth,l++,_[l]=e.ctype,l++,_[l]=0,l++,_[l]=0,l++,_[l]=0,l++,o(_,l,a(_,l-17,17)),l+=4,i.sRGB!=null&&(o(_,l,1),l+=4,c(_,l,`sRGB`),l+=4,_[l]=i.sRGB,l++,o(_,l,a(_,l-5,5)),l+=4),i.pHYs!=null&&(o(_,l,9),l+=4,c(_,l,`pHYs`),l+=4,o(_,l,i.pHYs[0]),l+=4,o(_,l,i.pHYs[1]),l+=4,_[l]=i.pHYs[2],l++,o(_,l,a(_,l-13,13)),l+=4),u&&(o(_,l,8),l+=4,c(_,l,`acTL`),l+=4,o(_,l,e.frames.length),l+=4,o(_,l,i.loop==null?0:i.loop),l+=4,o(_,l,a(_,l-12,12)),l+=4),e.ctype==3){var p=e.plte.length;o(_,l,p*3),l+=4,c(_,l,`PLTE`),l+=4;for(var m=0;m<p;m++){var y=m*3,b=e.plte[m],x=b&255,S=b>>>8&255,C=b>>>16&255;_[l+y+0]=x,_[l+y+1]=S,_[l+y+2]=C}if(l+=p*3,o(_,l,a(_,l-p*3-4,p*3+4)),l+=4,d){o(_,l,p),l+=4,c(_,l,`tRNS`),l+=4;for(var m=0;m<p;m++)_[l+m]=e.plte[m]>>>24&255;l+=p,o(_,l,a(_,l-p-4,p+4)),l+=4}}for(var w=0,h=0;h<e.frames.length;h++){var g=e.frames[h];u&&(o(_,l,26),l+=4,c(_,l,`fcTL`),l+=4,o(_,l,w++),l+=4,o(_,l,g.rect.width),l+=4,o(_,l,g.rect.height),l+=4,o(_,l,g.rect.x),l+=4,o(_,l,g.rect.y),l+=4,s(_,l,r[h]),l+=2,s(_,l,1e3),l+=2,_[l]=g.dispose,l++,_[l]=g.blend,l++,o(_,l,a(_,l-30,30)),l+=4);var T=g.cimg,p=T.length;o(_,l,p+(h==0?0:4)),l+=4;var E=l;c(_,l,h==0?`IDAT`:`fdAT`),l+=4,h!=0&&(o(_,l,w++),l+=4),_.set(T,l),l+=p,o(_,l,a(_,E,l-E)),l+=4}return o(_,l,0),l+=4,c(_,l,`IEND`),l+=4,o(_,l,a(_,l-4,4)),l+=4,_.buffer},Q.encode.compressPNG=function(e,t,n){for(var r=0;r<e.frames.length;r++){var i=e.frames[r];i.rect.width;var a=i.rect.height,o=new Uint8Array(a*i.bpl+a);i.cimg=Q.encode._filterZero(i.img,a,i.bpp,i.bpl,o,t,n)}},Q.encode.compress=function(e,t,n,r,i){for(var a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=6,d=8,f=255,p=0;p<e.length;p++)for(var m=new Uint8Array(e[p]),h=m.length,g=0;g<h;g+=4)f&=m[g+3];var _=f!=255,v=Q.encode.framize(e,t,n,a,o,s),y={},b=[],x=[];if(r!=0){for(var S=[],g=0;g<v.length;g++)S.push(v[g].img.buffer);for(var C=Q.encode.concatRGBA(S),w=Q.quantize(C,r),T=0,E=new Uint8Array(w.abuf),g=0;g<v.length;g++){var D=v[g].img,ee=D.length;x.push(new Uint8Array(w.inds.buffer,T>>2,ee>>2));for(var p=0;p<ee;p+=4)D[p]=E[T+p],D[p+1]=E[T+p+1],D[p+2]=E[T+p+2],D[p+3]=E[T+p+3];T+=ee}for(var g=0;g<w.plte.length;g++)b.push(w.plte[g].est.rgba)}else for(var p=0;p<v.length;p++){var O=v[p],k=new Uint32Array(O.img.buffer),A=O.rect.width,h=k.length,j=new Uint8Array(h);x.push(j);for(var g=0;g<h;g++){var M=k[g];if(g!=0&&M==k[g-1])j[g]=j[g-1];else if(g>A&&M==k[g-A])j[g]=j[g-A];else{var N=y[M];if(N==null&&(y[M]=N=b.length,b.push(M),b.length>=300))break;j[g]=N}}}var te=b.length;te<=256&&l==0&&(d=te<=2?1:te<=4?2:te<=16?4:8,d=Math.max(d,c));for(var p=0;p<v.length;p++){var O=v[p];O.rect.x,O.rect.y;var A=O.rect.width,ne=O.rect.height,re=O.img;new Uint32Array(re.buffer);var ie=4*A,ae=4;if(te<=256&&l==0){ie=Math.ceil(d*A/8);for(var oe=new Uint8Array(ie*ne),se=x[p],ce=0;ce<ne;ce++){var g=ce*ie,P=ce*A;if(d==8)for(var F=0;F<A;F++)oe[g+F]=se[P+F];else if(d==4)for(var F=0;F<A;F++)oe[g+(F>>1)]|=se[P+F]<<4-(F&1)*4;else if(d==2)for(var F=0;F<A;F++)oe[g+(F>>2)]|=se[P+F]<<6-(F&3)*2;else if(d==1)for(var F=0;F<A;F++)oe[g+(F>>3)]|=se[P+F]<<7-(F&7)*1}re=oe,u=3,ae=1}else if(_==0&&v.length==1){for(var oe=new Uint8Array(A*ne*3),le=A*ne,g=0;g<le;g++){var D=g*3,ue=g*4;oe[D]=re[ue],oe[D+1]=re[ue+1],oe[D+2]=re[ue+2]}re=oe,u=2,ae=3,ie=3*A}O.img=re,O.bpl=ie,O.bpp=ae}return{ctype:u,depth:d,plte:b,frames:v}},Q.encode.framize=function(e,t,n,r,i,a){for(var o=[],s=0;s<e.length;s++){var c=new Uint8Array(e[s]),l=new Uint32Array(c.buffer),u,d=0,f=0,p=t,m=n,h=+!!r;if(s!=0){for(var g=a||r||s==1||o[s-2].dispose!=0?1:2,_=0,v=1e9,y=0;y<g;y++){for(var b=new Uint8Array(e[s-1-y]),x=new Uint32Array(e[s-1-y]),S=t,C=n,w=-1,T=-1,E=0;E<n;E++)for(var D=0;D<t;D++){var ee=E*t+D;l[ee]!=x[ee]&&(D<S&&(S=D),D>w&&(w=D),E<C&&(C=E),E>T&&(T=E))}w==-1&&(S=C=w=T=0),i&&((S&1)==1&&S--,(C&1)==1&&C--);var O=(w-S+1)*(T-C+1);O<v&&(v=O,_=y,d=S,f=C,p=w-S+1,m=T-C+1)}var b=new Uint8Array(e[s-1-_]);_==1&&(o[s-1].dispose=2),u=new Uint8Array(p*m*4),Q._copyTile(b,t,n,u,p,m,-d,-f,0),h=+!!Q._copyTile(c,t,n,u,p,m,-d,-f,3),h==1?Q.encode._prepareDiff(c,t,n,u,{x:d,y:f,width:p,height:m}):Q._copyTile(c,t,n,u,p,m,-d,-f,0)}else u=c.slice(0);o.push({rect:{x:d,y:f,width:p,height:m},img:u,blend:h,dispose:0})}if(r)for(var s=0;s<o.length;s++){var k=o[s];if(k.blend!=1){var A=k.rect,j=o[s-1].rect,M=Math.min(A.x,j.x),N=Math.min(A.y,j.y),te=Math.max(A.x+A.width,j.x+j.width),ne=Math.max(A.y+A.height,j.y+j.height),re={x:M,y:N,width:te-M,height:ne-N};o[s-1].dispose=1,s-1!=0&&Q.encode._updateFrame(e,t,n,o,s-1,re,i),Q.encode._updateFrame(e,t,n,o,s,re,i)}}var ie=0;if(e.length!=1)for(var ee=0;ee<o.length;ee++){var k=o[ee];ie+=k.rect.width*k.rect.height}return o},Q.encode._updateFrame=function(e,t,n,r,i,a,o){for(var s=Uint8Array,c=Uint32Array,l=new s(e[i-1]),u=new c(e[i-1]),d=i+1<e.length?new s(e[i+1]):null,f=new s(e[i]),p=new c(f.buffer),m=t,h=n,g=-1,_=-1,v=0;v<a.height;v++)for(var y=0;y<a.width;y++){var b=a.x+y,x=a.y+v,S=x*t+b,C=p[S];C==0||r[i-1].dispose==0&&u[S]==C&&(d==null||d[S*4+3]!=0)||(b<m&&(m=b),b>g&&(g=b),x<h&&(h=x),x>_&&(_=x))}g==-1&&(m=h=g=_=0),o&&((m&1)==1&&m--,(h&1)==1&&h--),a={x:m,y:h,width:g-m+1,height:_-h+1};var w=r[i];w.rect=a,w.blend=1,w.img=new Uint8Array(a.width*a.height*4),r[i-1].dispose==0?(Q._copyTile(l,t,n,w.img,a.width,a.height,-a.x,-a.y,0),Q.encode._prepareDiff(f,t,n,w.img,a)):Q._copyTile(f,t,n,w.img,a.width,a.height,-a.x,-a.y,0)},Q.encode._prepareDiff=function(e,t,n,r,i){Q._copyTile(e,t,n,r,i.width,i.height,-i.x,-i.y,2)},Q.encode._filterZero=function(e,t,n,r,i,a,o){var s=[],c=[0,1,2,3,4];a==-1?(t*r>5e5||n==1)&&(c=[0]):c=[a];var l;o&&(l={level:0});for(var u=o&&UZIP!=null?UZIP:fc.default,d=0;d<c.length;d++){for(var f=0;f<t;f++)Q.encode._filterLine(i,e,f,r,n,c[d]);s.push(u.deflate(i,l))}for(var p,m=1e9,d=0;d<s.length;d++)s[d].length<m&&(p=d,m=s[d].length);return s[p]},Q.encode._filterLine=function(e,t,n,r,i,a){var o=n*r,s=o+n,c=Q.decode._paeth;if(e[s]=a,s++,a==0){if(r<500)for(var l=0;l<r;l++)e[s+l]=t[o+l];else e.set(new Uint8Array(t.buffer,o,r),s)}else if(a==1){for(var l=0;l<i;l++)e[s+l]=t[o+l];for(var l=i;l<r;l++)e[s+l]=t[o+l]-t[o+l-i]+256&255}else if(n==0){for(var l=0;l<i;l++)e[s+l]=t[o+l];if(a==2)for(var l=i;l<r;l++)e[s+l]=t[o+l];if(a==3)for(var l=i;l<r;l++)e[s+l]=t[o+l]-(t[o+l-i]>>1)+256&255;if(a==4)for(var l=i;l<r;l++)e[s+l]=t[o+l]-c(t[o+l-i],0,0)+256&255}else{if(a==2)for(var l=0;l<r;l++)e[s+l]=t[o+l]+256-t[o+l-r]&255;if(a==3){for(var l=0;l<i;l++)e[s+l]=t[o+l]+256-(t[o+l-r]>>1)&255;for(var l=i;l<r;l++)e[s+l]=t[o+l]+256-(t[o+l-r]+t[o+l-i]>>1)&255}if(a==4){for(var l=0;l<i;l++)e[s+l]=t[o+l]+256-c(0,t[o+l-r],0)&255;for(var l=i;l<r;l++)e[s+l]=t[o+l]+256-c(t[o+l-i],t[o+l-r],t[o+l-i-r])&255}}},Q.crc={table:(function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n&1?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e})(),update:function(e,t,n,r){for(var i=0;i<r;i++)e=Q.crc.table[(e^t[n+i])&255]^e>>>8;return e},crc:function(e,t,n){return Q.crc.update(4294967295,e,t,n)^4294967295}},Q.quantize=function(e,t){var n=new Uint8Array(e),r=n.slice(0),i=new Uint32Array(r.buffer),a=Q.quantize.getKDtree(r,t),o=a[0],s=a[1];Q.quantize.planeDst;for(var c=n,l=i,u=c.length,d=new Uint8Array(n.length>>2),f=0;f<u;f+=4){var p=c[f]*(1/255),m=c[f+1]*(1/255),h=c[f+2]*(1/255),g=c[f+3]*(1/255),_=Q.quantize.getNearest(o,p,m,h,g);d[f>>2]=_.ind,l[f>>2]=_.est.rgba}return{abuf:r.buffer,inds:d,plte:s}},Q.quantize.getKDtree=function(e,t,n){n??=1e-4;var r=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=Q.quantize.stats(e,i.i0,i.i1),i.est=Q.quantize.estats(i.bst);for(var a=[i];a.length<t;){for(var o=0,s=0,c=0;c<a.length;c++)a[c].est.L>o&&(o=a[c].est.L,s=c);if(o<n)break;var l=a[s],u=Q.quantize.splitPixels(e,r,l.i0,l.i1,l.est.e,l.est.eMq255);if(l.i0>=u||l.i1<=u){l.est.L=0;continue}var d={i0:l.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};d.bst=Q.quantize.stats(e,d.i0,d.i1),d.est=Q.quantize.estats(d.bst);var f={i0:u,i1:l.i1,bst:null,est:null,tdst:0,left:null,right:null};f.bst={R:[],m:[],N:l.bst.N-d.bst.N};for(var c=0;c<16;c++)f.bst.R[c]=l.bst.R[c]-d.bst.R[c];for(var c=0;c<4;c++)f.bst.m[c]=l.bst.m[c]-d.bst.m[c];f.est=Q.quantize.estats(f.bst),l.left=d,l.right=f,a[s]=d,a.push(f)}a.sort(function(e,t){return t.bst.N-e.bst.N});for(var c=0;c<a.length;c++)a[c].ind=c;return[i,a]},Q.quantize.getNearest=function(e,t,n,r,i){if(e.left==null)return e.tdst=Q.quantize.dist(e.est.q,t,n,r,i),e;var a=Q.quantize.planeDst(e.est,t,n,r,i),o=e.left,s=e.right;a>0&&(o=e.right,s=e.left);var c=Q.quantize.getNearest(o,t,n,r,i);if(c.tdst<=a*a)return c;var l=Q.quantize.getNearest(s,t,n,r,i);return l.tdst<c.tdst?l:c},Q.quantize.planeDst=function(e,t,n,r,i){var a=e.e;return a[0]*t+a[1]*n+a[2]*r+a[3]*i-e.eMq},Q.quantize.dist=function(e,t,n,r,i){var a=t-e[0],o=n-e[1],s=r-e[2],c=i-e[3];return a*a+o*o+s*s+c*c},Q.quantize.splitPixels=function(e,t,n,r,i,a){var o=Q.quantize.vecDot;for(r-=4;n<r;){for(;o(e,n,i)<=a;)n+=4;for(;o(e,r,i)>a;)r-=4;if(n>=r)break;var s=t[n>>2];t[n>>2]=t[r>>2],t[r>>2]=s,n+=4,r-=4}for(;o(e,n,i)>a;)n-=4;return n+4},Q.quantize.vecDot=function(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]},Q.quantize.stats=function(e,t,n){for(var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],a=n-t>>2,o=t;o<n;o+=4){var s=e[o]*(1/255),c=e[o+1]*(1/255),l=e[o+2]*(1/255),u=e[o+3]*(1/255);i[0]+=s,i[1]+=c,i[2]+=l,i[3]+=u,r[0]+=s*s,r[1]+=s*c,r[2]+=s*l,r[3]+=s*u,r[5]+=c*c,r[6]+=c*l,r[7]+=c*u,r[10]+=l*l,r[11]+=l*u,r[15]+=u*u}return r[4]=r[1],r[8]=r[2],r[9]=r[6],r[12]=r[3],r[13]=r[7],r[14]=r[11],{R:r,m:i,N:a}},Q.quantize.estats=function(e){var t=e.R,n=e.m,r=e.N,i=n[0],a=n[1],o=n[2],s=n[3],c=r==0?0:1/r,l=[t[0]-i*i*c,t[1]-i*a*c,t[2]-i*o*c,t[3]-i*s*c,t[4]-a*i*c,t[5]-a*a*c,t[6]-a*o*c,t[7]-a*s*c,t[8]-o*i*c,t[9]-o*a*c,t[10]-o*o*c,t[11]-o*s*c,t[12]-s*i*c,t[13]-s*a*c,t[14]-s*o*c,t[15]-s*s*c],u=l,d=Q.M4,f=[.5,.5,.5,.5],p=0,m=0;if(r!=0)for(var h=0;h<10&&(f=d.multVec(u,f),m=Math.sqrt(d.dot(f,f)),f=d.sml(1/m,f),!(Math.abs(m-p)<1e-9));h++)p=m;var g=[i*c,a*c,o*c,s*c],_=d.dot(d.sml(255,g),f);return{Cov:l,q:g,e:f,L:p,eMq255:_,eMq:d.dot(f,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0])<<0)>>>0}},Q.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}},Q.encode.concatRGBA=function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].byteLength;for(var r=new Uint8Array(t),i=0,n=0;n<e.length;n++){for(var a=new Uint8Array(e[n]),o=a.length,s=0;s<o;s+=4){var c=a[s],l=a[s+1],u=a[s+2],d=a[s+3];d==0&&(c=l=u=0),r[i+s]=c,r[i+s+1]=l,r[i+s+2]=u,r[i+s+3]=d}i+=o}return r.buffer};const pc=e=>{if(e===0)return hc.Greyscale;if(e===2)return hc.Truecolour;if(e===3)return hc.IndexedColour;if(e===4)return hc.GreyscaleWithAlpha;if(e===6)return hc.TruecolourWithAlpha;throw Error(`Unknown color type: ${e}`)},mc=e=>{let t=Math.floor(e.length/4),n=new Uint8Array(t*3),r=new Uint8Array(t*1),i=0,a=0,o=0;for(;i<e.length;)n[a++]=e[i++],n[a++]=e[i++],n[a++]=e[i++],r[o++]=e[i++];return{rgbChannel:n,alphaChannel:r}};var hc;(function(e){e.Greyscale=`Greyscale`,e.Truecolour=`Truecolour`,e.IndexedColour=`IndexedColour`,e.GreyscaleWithAlpha=`GreyscaleWithAlpha`,e.TruecolourWithAlpha=`TruecolourWithAlpha`})(hc||={});var gc=class{constructor(e){let t=Q.decode?Q:Q.default,n=e.buffer instanceof ArrayBuffer&&e.byteOffset===0&&e.byteLength===e.buffer.byteLength?e.buffer:e.buffer instanceof ArrayBuffer?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e.slice().buffer,r=t.decode(n),i=t.toRGBA8(r);if(i.length>1)throw Error(`Animated PNGs are not supported`);let a=new Uint8Array(i[0]),{rgbChannel:o,alphaChannel:s}=mc(a);this.rgbChannel=o,s.some(e=>e<255)&&(this.alphaChannel=s),this.type=pc(r.ctype),this.width=r.width,this.height=r.height,this.bitsPerComponent=8}};gc.load=e=>new gc(e);var _c=class e{static for(t){return jo(this,void 0,void 0,function*(){let n=gc.load(t);return new e(n)})}constructor(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace=`DeviceRGB`}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let n=this.embedAlphaChannel(e),r=e.flateStream(this.image.rgbChannel,{Type:`XObject`,Subtype:`Image`,BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:n});return t?(e.assign(t,r),t):e.register(r)})}embedAlphaChannel(e){if(!this.image.alphaChannel)return;let t=e.flateStream(this.image.alphaChannel,{Type:`XObject`,Subtype:`Image`,Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:`DeviceGray`,Decode:[0,1]});return e.register(t)}},vc=class e{constructor(e,t,n){this.bytes=e,this.start=t||0,this.pos=this.start,this.end=t&&n?t+n:this.bytes.length}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getUint16(){let e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){let e=this.getByte(),t=this.getByte(),n=this.getByte(),r=this.getByte();return(e<<24)+(t<<16)+(n<<8)+r}getBytes(e,t=!1){let n=this.bytes,r=this.pos,i=this.end;if(e){let a=r+e;a>i&&(a=i),this.pos=a;let o=n.subarray(r,a);return t?new Uint8ClampedArray(o):o}{let e=n.subarray(r,i);return t?new Uint8ClampedArray(e):e}}peekByte(){let e=this.getByte();return this.pos--,e}peekBytes(e,t=!1){let n=this.getBytes(e,t);return this.pos-=n.length,n}skip(e){e||=1,this.pos+=e}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,n){return new e(this.bytes,t,n)}decode(){return this.bytes}};const yc=new Uint8Array;var bc=class{constructor(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=yc,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0}getByte(){let e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getUint16(){let e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}getInt32(){let e=this.getByte(),t=this.getByte(),n=this.getByte(),r=this.getByte();return(e<<24)+(t<<16)+(n<<8)+r}getBytes(e,t=!1){let n,r=this.pos;if(e){for(this.ensureBuffer(r+e),n=r+e;!this.eof&&this.bufferLength<n;)this.readBlock();let t=this.bufferLength;n>t&&(n=t)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;let i=this.buffer.subarray(r,n);return t&&!(i instanceof Uint8ClampedArray)?new Uint8ClampedArray(i):i}peekByte(){let e=this.getByte();return this.pos--,e}peekBytes(e,t=!1){let n=this.getBytes(e,t);return this.pos-=n.length,n}skip(e){e||=1,this.pos+=e}reset(){this.pos=0}makeSubStream(e,t){let n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock();return new vc(this.buffer,e,t)}decode(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)}readBlock(){throw new Tt(this.constructor.name,`readBlock`)}ensureBuffer(e){let t=this.buffer;if(e<=t.byteLength)return t;let n=this.minBufferLength;for(;n<e;)n*=2;let r=new Uint8Array(n);return r.set(t),this.buffer=r}};const xc=e=>e===32||e===9||e===13||e===10;var Sc=class extends bc{constructor(e,t){super(t),this.stream=e,this.input=new Uint8Array(5),t&&=.8*t}readBlock(){let e=this.stream,t=e.getByte();for(;xc(t);)t=e.getByte();if(t===-1||t===126){this.eof=!0;return}let n=this.bufferLength,r,i;if(t===122){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{let a=this.input;for(a[0]=t,i=1;i<5;++i){for(t=e.getByte();xc(t);)t=e.getByte();if(a[i]=t,t===-1||t===126)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)a[i]=117;this.eof=!0}let o=0;for(i=0;i<5;++i)o=o*85+(a[i]-33);for(i=3;i>=0;--i)r[n+i]=o&255,o>>=8}}},Cc=class extends bc{constructor(e,t){super(t),this.stream=e,this.firstDigit=-1,t&&=.5*t}readBlock(){let e=this.stream.getBytes(8e3);if(!e.length){this.eof=!0;return}let t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,i=this.firstDigit;for(let t=0,a=e.length;t<a;t++){let a=e[t],o;if(a>=48&&a<=57)o=a&15;else if(a>=65&&a<=70||a>=97&&a<=102)o=(a&15)+9;else if(a===62){this.eof=!0;break}else continue;i<0?i=o:(n[r++]=i<<4|o,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}};const wc=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tc=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),Ec=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),Dc=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Oc=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];var kc=class extends bc{constructor(e,t){super(t),this.stream=e;let n=e.getByte(),r=e.getByte();if(n===-1||r===-1)throw Error(`Invalid header in flate stream: ${n}, ${r}`);if((n&15)!=8)throw Error(`Unknown compression method in flate stream: ${n}, ${r}`);if(((n<<8)+r)%31!=0)throw Error(`Bad FCHECK in flate stream: ${n}, ${r}`);if(r&32)throw Error(`FDICT bit set in flate stream: ${n}, ${r}`);this.codeSize=0,this.codeBuf=0}readBlock(){let e,t,n=this.stream,r=this.getBits(3);if(r&1&&(this.eof=!0),r>>=1,r===0){let t;if((t=n.getByte())===-1)throw Error(`Bad block header in flate stream`);let r=t;if((t=n.getByte())===-1||(r|=t<<8,(t=n.getByte())===-1))throw Error(`Bad block header in flate stream`);let i=t;if((t=n.getByte())===-1)throw Error(`Bad block header in flate stream`);if(i|=t<<8,i!==(~r&65535)&&(r!==0||i!==0))throw Error(`Bad uncompressed block length in flate stream`);this.codeBuf=0,this.codeSize=0;let a=this.bufferLength;e=this.ensureBuffer(a+r);let o=a+r;if(this.bufferLength=o,r===0)n.peekByte()===-1&&(this.eof=!0);else for(let r=a;r<o;++r){if((t=n.getByte())===-1){this.eof=!0;break}e[r]=t}return}let i,a;if(r===1)i=Dc,a=Oc;else if(r===2){let e=this.getBits(5)+257,n=this.getBits(5)+1,r=this.getBits(4)+4,o=new Uint8Array(wc.length),s;for(s=0;s<r;++s)o[wc[s]]=this.getBits(3);let c=this.generateHuffmanTable(o);t=0,s=0;let l=e+n,u=new Uint8Array(l),d,f,p;for(;s<l;){let e=this.getCode(c);if(e===16)d=2,f=3,p=t;else if(e===17)d=3,f=3,p=t=0;else if(e===18)d=7,f=11,p=t=0;else{u[s++]=t=e;continue}let n=this.getBits(d)+f;for(;n-->0;)u[s++]=p}i=this.generateHuffmanTable(u.subarray(0,e)),a=this.generateHuffmanTable(u.subarray(e,l))}else throw Error(`Unknown block type in flate stream`);e=this.buffer;let o=e?e.length:0,s=this.bufferLength;for(;;){let n=this.getCode(i);if(n<256){s+1>=o&&(e=this.ensureBuffer(s+1),o=e.length),e[s++]=n;continue}if(n===256){this.bufferLength=s;return}n-=257,n=Tc[n];let r=n>>16;r>0&&(r=this.getBits(r)),t=(n&65535)+r,n=this.getCode(a),n=Ec[n],r=n>>16,r>0&&(r=this.getBits(r));let c=(n&65535)+r;s+t>=o&&(e=this.ensureBuffer(s+t),o=e.length);for(let n=0;n<t;++n,++s)e[s]=e[s-c]}}getBits(e){let t=this.stream,n=this.codeSize,r=this.codeBuf,i;for(;n<e;){if((i=t.getByte())===-1)throw Error(`Bad encoding in flate stream`);r|=i<<n,n+=8}return i=r&(1<<e)-1,this.codeBuf=r>>e,this.codeSize=n-=e,i}getCode(e){let t=this.stream,n=e[0],r=e[1],i=this.codeSize,a=this.codeBuf,o;for(;i<r&&(o=t.getByte())!==-1;)a|=o<<i,i+=8;let s=n[a&(1<<r)-1];typeof n==`number`&&console.log(`FLATE:`,s);let c=s>>16,l=s&65535;if(c<1||i<c)throw Error(`Bad encoding in flate stream`);return this.codeBuf=a>>c,this.codeSize=i-c,l}generateHuffmanTable(e){let t=e.length,n=0,r;for(r=0;r<t;++r)e[r]>n&&(n=e[r]);let i=1<<n,a=new Int32Array(i);for(let o=1,s=0,c=2;o<=n;++o,s<<=1,c<<=1)for(let n=0;n<t;++n)if(e[n]===o){let e=0,t=s;for(r=0;r<o;++r)e=e<<1|t&1,t>>=1;for(r=e;r<i;r+=c)a[r]=o<<16|n;++s}return[a,n]}},Ac=class extends bc{constructor(e,t,n){super(t),this.stream=e,this.cachedData=0,this.bitsCached=0;let r=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e)i.dictionaryValues[e]=e,i.dictionaryLengths[e]=1;this.lzwState=i}readBlock(){let e=1024,t,n,r,i=this.lzwState;if(!i)return;let a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes,u=i.codeLength,d=i.prevCode,f=i.currentSequence,p=i.currentSequenceLength,m=0,h=this.bufferLength,g=this.ensureBuffer(this.bufferLength+e);for(t=0;t<512;t++){let t=this.readBits(u),i=p>0;if(!t||t<256)f[0]=t,p=1;else if(t>=258){if(t<o)for(p=c[t],n=p-1,r=t;n>=0;n--)f[n]=s[r],r=l[r];else f[p++]=f[0]}else if(t===256){u=9,o=258,p=0;continue}else{this.eof=!0,delete this.lzwState;break}if(i&&(l[o]=d,c[o]=c[d]+1,s[o]=f[0],o++,u=o+a&o+a-1?u:Math.min(Math.log(o+a)/.6931471805599453+1,12)|0),d=t,m+=p,e<m){do e+=512;while(e<m);g=this.ensureBuffer(this.bufferLength+e)}for(n=0;n<p;n++)g[h++]=f[n]}i.nextCode=o,i.codeLength=u,i.prevCode=d,i.currentSequenceLength=p,this.bufferLength=h}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t<e;){let e=this.stream.getByte();if(e===-1)return this.eof=!0,null;n=n<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=n,n>>>t&(1<<e)-1}},jc=class extends bc{constructor(e,t){super(t),this.stream=e}readBlock(){let e=this.stream.getBytes(2);if(!e||e.length<2||e[0]===128){this.eof=!0;return}let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){let e=this.stream.getBytes(r);t.set(e,n),n+=r}}else{r=257-r;let i=e[1];t=this.ensureBuffer(n+r+1);for(let e=0;e<r;e++)t[n++]=i}this.bufferLength=n}};const Mc=(e,t,n)=>{if(t===Y.of(`FlateDecode`))return new kc(e);if(t===Y.of(`LZWDecode`)){let t=1;if(n instanceof X){let e=n.lookup(Y.of(`EarlyChange`));e instanceof J&&(t=e.asNumber())}return new Ac(e,void 0,t)}if(t===Y.of(`ASCII85Decode`))return new Sc(e);if(t===Y.of(`ASCIIHexDecode`))return new Cc(e);if(t===Y.of(`RunLengthDecode`))return new jc(e);throw new Ot(t.asString())},Nc=({dict:e,contents:t,transform:n})=>{let r=new vc(t);n&&(r=n.createStream(r,t.length));let i=e.lookup(Y.of(`Filter`)),a=e.lookup(Y.of(`DecodeParms`));if(i instanceof Y)r=Mc(r,i,a);else if(i instanceof Qa)for(let e=0,t=i.size();e<t;e++)r=Mc(r,i.lookup(e,Y),a&&a.lookupMaybe(e,X));else if(i)throw new Dt([Y,Qa],i);return r},Pc=e=>{let t=e.MediaBox(),n=t.lookup(0,J).asNumber(),r=t.lookup(1,J).asNumber(),i=t.lookup(2,J).asNumber(),a=t.lookup(3,J).asNumber();return{left:Math.min(n,i),bottom:Math.min(r,a),right:Math.max(n,i),top:Math.max(r,a)}},Fc=e=>[1,0,0,1,-e.left,-e.bottom];var Ic=class e{static for(t,n,r){return jo(this,void 0,void 0,function*(){return new e(t,n,r)})}constructor(e,t,n){this.page=e;let r=t??Pc(e);this.width=r.right-r.left,this.height=r.top-r.bottom,this.boundingBox=r,this.transformationMatrix=n??Fc(r)}embedIntoContext(e,t){return jo(this,void 0,void 0,function*(){let{Contents:n,Resources:r}=this.page.normalizedEntries();if(!n)throw new jt;let i=this.decodeContents(n),{left:a,bottom:o,right:s,top:c}=this.boundingBox,l=e.flateStream(i,{Type:`XObject`,Subtype:`Form`,FormType:1,BBox:[a,o,s,c],Matrix:this.transformationMatrix,Resources:r});return t?(e.assign(t,l),t):e.register(l)})}decodeContents(e){let t=Uint8Array.of(q.Newline),n=[];for(let r=0,i=e.size();r<i;r++){let i=e.lookup(r,uo),a;if(i instanceof fo)a=Nc(i).decode();else if(i instanceof xo)a=i.getUnencodedContents();else throw new Mt(i);n.push(a,t)}return te(...n)}};const Lc=new Uint8Array(256);Lc[q.Zero]=1,Lc[q.One]=1,Lc[q.Two]=1,Lc[q.Three]=1,Lc[q.Four]=1,Lc[q.Five]=1,Lc[q.Six]=1,Lc[q.Seven]=1,Lc[q.Eight]=1,Lc[q.Nine]=1;const Rc=new Uint8Array(256);Rc[q.Period]=1,Rc[q.Plus]=1,Rc[q.Minus]=1;const zc=new Uint8Array(256);for(let e=0;e<256;e++)zc[e]=Lc[e]||Rc[e]?1:0;const{Newline:Bc,CarriageReturn:Vc}=q;var Hc=class{constructor(e,t=!1){this.bytes=e,this.capNumbers=t}parseRawInt(){let e=``;for(;!this.bytes.done();){let t=this.bytes.peek();if(!Lc[t])break;e+=f(this.bytes.next())}let t=Number(e);if(!e||!isFinite(t))throw new Ut(this.bytes.position(),e);return t}parseRawNumber(){let e=``;for(;!this.bytes.done();){let t=this.bytes.peek();if(!zc[t]||(e+=f(this.bytes.next()),t===q.Period))break}for(;!this.bytes.done();){let t=this.bytes.peek();if(!Lc[t])break;e+=f(this.bytes.next())}let t=Number(e);if(!e||!isFinite(t))throw new Ut(this.bytes.position(),e);if(t>2**53-1){if(this.capNumbers){let t=`Parsed number that is too large for some PDF readers: ${e}, using Number.MAX_SAFE_INTEGER instead.`;return console.warn(t),2**53-1}{let t=`Parsed number that is too large for some PDF readers: ${e}, not capping.`;console.warn(t)}}return t}skipWhitespace(){for(;!this.bytes.done()&&no[this.bytes.peek()];)this.bytes.next()}skipLine(){for(;!this.bytes.done();){let e=this.bytes.peek();if(e===Bc||e===Vc)return;this.bytes.next()}}skipComment(){if(this.bytes.peek()!==q.Percent)return!1;for(;!this.bytes.done();){let e=this.bytes.peek();if(e===Bc||e===Vc)return!0;this.bytes.next()}return!0}skipWhitespaceAndComments(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()}matchKeyword(e){let t=this.bytes.offset();for(let n=0,r=e.length;n<r;n++)if(this.bytes.done()||this.bytes.next()!==e[n])return this.bytes.moveTo(t),!1;return!0}},Uc=class{constructor(e){this.idx=0,this.line=0,this.column=0,this.bytes=e,this.length=this.bytes.length}moveTo(e){this.idx=e}next(){let e=this.bytes[this.idx++];return e===q.Newline?(this.line+=1,this.column=0):this.column+=1,e}assertNext(e){if(this.peek()!==e)throw new Gt(this.position(),e,this.peek());return this.next()}peek(){return this.bytes[this.idx]}peekAhead(e){return this.bytes[this.idx+e]}peekAt(e){return this.bytes[e]}done(){return this.idx>=this.length}offset(){return this.idx}slice(e,t){return this.bytes.slice(e,t)}position(){return{line:this.line,column:this.column,offset:this.idx}}};Uc.of=e=>new Uc(e),Uc.fromPDFRawStream=e=>Uc.of(Nc(e).decode());const{Space:Wc,CarriageReturn:Gc,Newline:Kc}=q,qc=[q.s,q.t,q.r,q.e,q.a,q.m],Jc=[q.e,q.n,q.d,q.s,q.t,q.r,q.e,q.a,q.m],Yc={header:[q.Percent,q.P,q.D,q.F,q.Dash],eof:[q.Percent,q.Percent,q.E,q.O,q.F],obj:[q.o,q.b,q.j],endobj:[q.e,q.n,q.d,q.o,q.b,q.j],xref:[q.x,q.r,q.e,q.f],trailer:[q.t,q.r,q.a,q.i,q.l,q.e,q.r],startxref:[q.s,q.t,q.a,q.r,q.t,q.x,q.r,q.e,q.f],true:[q.t,q.r,q.u,q.e],false:[q.f,q.a,q.l,q.s,q.e],null:[q.n,q.u,q.l,q.l],stream:qc,streamEOF1:[...qc,Wc,Gc,Kc],streamEOF2:[...qc,Gc,Kc],streamEOF3:[...qc,Gc],streamEOF4:[...qc,Kc],endstream:Jc,EOF1endstream:[Gc,Kc,...Jc],EOF2endstream:[Gc,...Jc],EOF3endstream:[Kc,...Jc]};var Xc=class extends Hc{constructor(e,t,n=!1,r){super(e,n),this.context=t,this.cryptoFactory=r}parseObject(e){if(this.skipWhitespaceAndComments(),this.matchKeyword(Yc.true))return eo.True;if(this.matchKeyword(Yc.false))return eo.False;if(this.matchKeyword(Yc.null))return lo;let t=this.bytes.peek();if(t===q.LessThan&&this.bytes.peekAhead(1)===q.LessThan)return this.parseDictOrStream(e);if(t===q.LessThan)return this.parseHexString(e);if(t===q.LeftParen)return this.parseString(e);if(t===q.ForwardSlash)return this.parseName();if(t===q.LeftSquareBracket)return this.parseArray(e);if(zc[t])return this.parseNumberOrRef();throw new Kt(this.bytes.position(),t)}parseNumberOrRef(){let e=this.parseRawNumber();this.skipWhitespaceAndComments();let t=this.bytes.offset();if(Lc[this.bytes.peek()]){let t=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===q.R)return this.bytes.assertNext(q.R),ho.of(e,t)}return this.bytes.moveTo(t),J.of(e)}parseHexString(e){let t=``;for(this.bytes.assertNext(q.LessThan);!this.bytes.done()&&this.bytes.peek()!==q.GreaterThan;)t+=f(this.bytes.next());return this.bytes.assertNext(q.GreaterThan),this.cryptoFactory&&e&&(t=this.cryptoFactory.createCipherTransform(e.objectNumber,e.generationNumber).decryptBytes(Z.of(t).asBytes()).reduce((e,t)=>e+t.toString(16).padStart(2,`0`),``)),Z.of(t)}parseString(e){let t=0,n=!1,r=``;for(;!this.bytes.done();){let i=this.bytes.next();if(r+=f(i),n||(i===q.LeftParen&&(t+=1),i===q.RightParen&&--t),i===q.BackSlash?n=!n:n&&=!1,t===0){let t=r.substring(1,r.length-1);if(this.cryptoFactory&&e){let n=this.cryptoFactory.createCipherTransform(e.objectNumber,e.generationNumber).decryptBytes(go.of(t).asBytes());t=re(n)}return go.of(t)}}throw new Yt(this.bytes.position())}parseName(){this.bytes.assertNext(q.ForwardSlash);let e=``;for(;!this.bytes.done();){let t=this.bytes.peek();if(no[t]||to[t])break;e+=f(t),this.bytes.next()}return Y.of(io(e))}parseArray(e){this.bytes.assertNext(q.LeftSquareBracket),this.skipWhitespaceAndComments();let t=Qa.withContext(this.context);for(;this.bytes.peek()!==q.RightSquareBracket;){let n=this.parseObject(e);t.push(n),this.skipWhitespaceAndComments()}return this.bytes.assertNext(q.RightSquareBracket),t}parseDict(e){this.bytes.assertNext(q.LessThan),this.bytes.assertNext(q.LessThan),this.skipWhitespaceAndComments();let t=new Map;for(;!this.bytes.done()&&this.bytes.peek()!==q.GreaterThan&&this.bytes.peekAhead(1)!==q.GreaterThan;){let n=this.parseName(),r=this.parseObject(e);t.set(n,r),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(q.GreaterThan),this.bytes.assertNext(q.GreaterThan);let n=t.get(Y.of(`Type`));return n===Y.of(`Catalog`)?Os.fromMapWithContext(t,this.context):n===Y.of(`Pages`)?ks.fromMapWithContext(t,this.context):n===Y.of(`Page`)?Oo.fromMapWithContext(t,this.context):X.fromMapWithContext(t,this.context)}parseDictOrStream(e){let t=this.bytes.position(),n=this.parseDict(e);if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.streamEOF1)&&!this.matchKeyword(Yc.streamEOF2)&&!this.matchKeyword(Yc.streamEOF3)&&!this.matchKeyword(Yc.streamEOF4)&&!this.matchKeyword(Yc.stream))return n;let r=this.bytes.offset(),i,a=n.get(Y.of(`Length`));a instanceof J?(i=r+a.asNumber(),this.bytes.moveTo(i),this.skipWhitespaceAndComments(),this.matchKeyword(Yc.endstream)||(this.bytes.moveTo(r),i=this.findEndOfStreamFallback(t))):i=this.findEndOfStreamFallback(t);let o=this.bytes.slice(r,i);return this.cryptoFactory&&e&&(o=this.cryptoFactory.createCipherTransform(e.objectNumber,e.generationNumber).decryptBytes(o)),fo.of(n,o)}findEndOfStreamFallback(e){let t=1,n=this.bytes.offset();for(;!this.bytes.done()&&(n=this.bytes.offset(),this.matchKeyword(Yc.stream)?t+=1:this.matchKeyword(Yc.EOF1endstream)||this.matchKeyword(Yc.EOF2endstream)||this.matchKeyword(Yc.EOF3endstream)||this.matchKeyword(Yc.endstream)?--t:this.bytes.next(),t!==0););if(t!==0)throw new Jt(e);return n}};Xc.forBytes=(e,t,n)=>new Xc(Uc.of(e),t,n),Xc.forByteStream=(e,t,n=!1)=>new Xc(e,t,n);var Zc=class extends Xc{constructor(e,t){super(Uc.fromPDFRawStream(e),e.dict.context);let{dict:n}=e;this.alreadyParsed=!1,this.shouldWaitForTick=t||(()=>!1),this.firstOffset=n.lookup(Y.of(`First`),J).asNumber(),this.objectCount=n.lookup(Y.of(`N`),J).asNumber()}parseIntoContext(){return jo(this,void 0,void 0,function*(){if(this.alreadyParsed)throw new kt(`PDFObjectStreamParser`,`parseIntoContext`);this.alreadyParsed=!0;let e=this.parseOffsetsAndObjectNumbers();for(let t=0,n=e.length;t<n;t++){let{objectNumber:n,offset:r}=e[t];this.bytes.moveTo(this.firstOffset+r);let i=ho.of(n,0),a=this.parseObject(i);this.context.assign(i,a),this.shouldWaitForTick()&&(yield I())}})}parseOffsetsAndObjectNumbers(){let e=[];for(let t=0,n=this.objectCount;t<n;t++){this.skipWhitespaceAndComments();let t=this.parseRawInt();this.skipWhitespaceAndComments();let n=this.parseRawInt();e.push({objectNumber:t,offset:n})}return e}};Zc.forStream=(e,t)=>new Zc(e,t);var Qc=class{constructor(e){this.alreadyParsed=!1,this.dict=e.dict,this.bytes=Uc.fromPDFRawStream(e),this.context=this.dict.context,this.context.pdfFileDetails.useObjectStreams=!0;let t=this.dict.lookup(Y.of(`Size`),J),n=this.dict.lookup(Y.of(`Index`));if(n instanceof Qa){this.subsections=[];for(let e=0,t=n.size();e<t;e+=2){let t=n.lookup(e+0,J).asNumber(),r=n.lookup(e+1,J).asNumber();this.subsections.push({firstObjectNumber:t,length:r})}}else this.subsections=[{firstObjectNumber:0,length:t.asNumber()}];let r=this.dict.lookup(Y.of(`W`),Qa);this.byteWidths=[-1,-1,-1];for(let e=0,t=r.size();e<t;e++)this.byteWidths[e]=r.lookup(e,J).asNumber()}parseIntoContext(){if(this.alreadyParsed)throw new kt(`PDFXRefStreamParser`,`parseIntoContext`);this.alreadyParsed=!0;let e=this.context.trailerInfo;return this.context.trailerInfo={Size:this.dict.lookup(Y.of(`Size`),J)||e.Size,Root:this.dict.get(Y.of(`Root`))||e.Root,Encrypt:this.dict.get(Y.of(`Encrypt`))||e.Encrypt,Info:this.dict.get(Y.of(`Info`))||e.Info,ID:this.dict.get(Y.of(`ID`))||e.ID},this.context.trailerInfo.Size&&this.context.pdfFileDetails.originalBytes&&(this.context.largestObjectNumber=Math.max(this.context.largestObjectNumber,this.context.trailerInfo.Size.asNumber()-1)),this.parseEntries()}parseEntries(){let e=[],[t,n,r]=this.byteWidths;for(let i=0,a=this.subsections.length;i<a;i++){let{firstObjectNumber:a,length:o}=this.subsections[i];for(let i=0;i<o;i++){let o=0;for(let e=0,n=t;e<n;e++)o=o<<8|this.bytes.next();let s=0;for(let e=0,t=n;e<t;e++)s=s<<8|this.bytes.next();let c=0;for(let e=0,t=r;e<t;e++)c=c<<8|this.bytes.next();t===0&&(o=1);let l=a+i,u={ref:ho.of(l,o===2?0:c),offset:s,deleted:o===0,inObjectStream:o===2};e.push(u)}}return e}};Qc.forStream=e=>new Qc(e);var $c=class extends Xc{constructor(e,t=1/0,n=!1,r=!1,i=!1,a,o=!1){super(Uc.of(e),Do.create(),i,a),this.alreadyParsed=!1,this.parsedObjects=0,this.shouldWaitForTick=()=>(this.parsedObjects+=1,this.parsedObjects%this.objectsPerTick===0),this.objectsPerTick=t,this.throwOnInvalidObject=n,this.warnOnInvalidObjects=r,this.context.isDecrypted=!!a?.encryptionKey,this.context.pdfFileDetails.pdfSize=e.length,o&&(this.context.pdfFileDetails.originalBytes=e)}parseDocument(){return jo(this,void 0,void 0,function*(){if(this.alreadyParsed)throw new kt(`PDFParser`,`parseDocument`);this.alreadyParsed=!0,this.context.header=this.parseHeader();let e;for(;!this.bytes.done();){yield this.parseDocumentSection();let t=this.bytes.offset();if(t===e)throw new Xt(this.bytes.position());e=t}return this.maybeRecoverRoot(),this.context.lookup(ho.of(0))&&(console.warn(`Removing parsed object: 0 0 R`),this.context.delete(ho.of(0))),this.context})}maybeRecoverRoot(){let e=e=>e instanceof X&&e.lookup(Y.of(`Type`))===Y.of(`Catalog`);if(!e(this.context.lookup(this.context.trailerInfo.Root))){let t=this.context.enumerateIndirectObjects();for(let n=0,r=t.length;n<r;n++){let[r,i]=t[n];e(i)&&(this.context.trailerInfo.Root=r)}}}parseHeader(){for(;!this.bytes.done();){if(this.matchKeyword(Yc.header)){let e=this.parseRawInt();this.bytes.assertNext(q.Period);let t=this.parseRawInt(),n=Xa.forVersion(e,t);return this.skipBinaryHeaderComment(),n}this.bytes.next()}throw new Zt(this.bytes.position())}parseIndirectObjectHeader(){this.skipWhitespaceAndComments();let e=this.parseRawInt();this.skipWhitespaceAndComments();let t=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.obj))throw new Qt(this.bytes.position(),Yc.obj);return ho.of(e,t)}matchIndirectObjectHeader(){let e=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch{return this.bytes.moveTo(e),!1}}parseIndirectObject(){return jo(this,void 0,void 0,function*(){let e=this.parseIndirectObjectHeader();this.skipWhitespaceAndComments();let t=this.parseObject(e);return this.skipWhitespaceAndComments(),this.matchKeyword(Yc.endobj),t instanceof fo&&t.dict.lookup(Y.of(`Type`))===Y.of(`ObjStm`)?yield Zc.forStream(t,this.shouldWaitForTick).parseIntoContext():t instanceof fo&&t.dict.lookup(Y.of(`Type`))===Y.of(`XRef`)&&Qc.forStream(t).parseIntoContext(),this.context.assign(e,t),e})}tryToParseInvalidIndirectObject(){let e=this.bytes.position(),t=`Trying to parse invalid object: ${JSON.stringify(e)})`;if(this.throwOnInvalidObject)throw Error(t);this.warnOnInvalidObjects&&console.warn(t);let n=this.parseIndirectObjectHeader();this.warnOnInvalidObjects&&console.warn(`Invalid object ref: ${n}`),this.skipWhitespaceAndComments();let r=this.bytes.offset(),i=!0;for(;!this.bytes.done()&&(this.matchKeyword(Yc.endobj)&&(i=!1),i);)this.bytes.next();if(i){this.bytes.moveTo(r);return}let a=this.bytes.offset()-Yc.endobj.length,o=Bo.of(this.bytes.slice(r,a));return this.context.assign(n,o),n}parseIndirectObjects(){return jo(this,void 0,void 0,function*(){for(this.skipWhitespaceAndComments();!this.bytes.done()&&Lc[this.bytes.peek()];){let e=this.bytes.offset();try{yield this.parseIndirectObject()}catch{this.bytes.moveTo(e),this.tryToParseInvalidIndirectObject()}this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()&&(yield I())}})}maybeParseCrossRefSection(){if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.xref))return;this.skipWhitespaceAndComments();let e=-1,t=Mo.createEmpty();for(;!this.bytes.done()&&Lc[this.bytes.peek()];){let n=this.parseRawInt();if(this.skipWhitespaceAndComments(),!Lc[this.bytes.peek()])return Mo.createEmpty();let r=this.parseRawInt();this.skipWhitespaceAndComments();let i=this.bytes.peek();if(i===q.n||i===q.f){let i=ho.of(e,r);this.bytes.next()===q.n?t.addEntry(i,n):t.addDeletedEntry(i,n),e+=1}else e=n;this.skipWhitespaceAndComments()}return t}maybeParseTrailerDict(){if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.trailer))return;this.skipWhitespaceAndComments();let e=this.parseDict(),{context:t}=this;t.trailerInfo={Size:e.lookupMaybe(Y.of(`Size`),J)||t.trailerInfo.Size,Root:e.get(Y.of(`Root`))||t.trailerInfo.Root,Encrypt:e.get(Y.of(`Encrypt`))||t.trailerInfo.Encrypt,Info:e.get(Y.of(`Info`))||t.trailerInfo.Info,ID:e.get(Y.of(`ID`))||t.trailerInfo.ID},t.trailerInfo.Size&&t.pdfFileDetails.originalBytes&&(t.largestObjectNumber=Math.max(t.largestObjectNumber,t.trailerInfo.Size.asNumber()-1))}maybeParseTrailer(){if(this.skipWhitespaceAndComments(),!this.matchKeyword(Yc.startxref))return;this.skipWhitespaceAndComments();let e=this.parseRawInt();return this.context.pdfFileDetails.prevStartXRef=e,this.skipWhitespace(),this.matchKeyword(Yc.eof),this.skipWhitespaceAndComments(),this.matchKeyword(Yc.eof),this.skipWhitespaceAndComments(),No.forLastCrossRefSectionOffset(e)}parseDocumentSection(){return jo(this,void 0,void 0,function*(){yield this.parseIndirectObjects(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish()})}skipJibberish(){for(this.skipWhitespaceAndComments();!this.bytes.done();){let e=this.bytes.offset(),t=this.bytes.peek();if(t>=q.Space&&t<=q.Tilde&&(this.matchKeyword(Yc.xref)||this.matchKeyword(Yc.trailer)||this.matchKeyword(Yc.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(e);break}this.bytes.next()}}skipBinaryHeaderComment(){this.skipWhitespaceAndComments();try{let e=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(e)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}}};$c.forBytesWithOptions=(e,t,n,r,i,a,o)=>new $c(e,t,n,r,i,a,o);var el=class extends bc{constructor(e,t,n){super(n),this.stream=e,this.decrypt=t,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.stream.getBytes(512),this.initialized=!0),!e||e.length===0){this.eof=!0;return}this.nextChunk=this.stream.getBytes(512);let t=this.nextChunk&&this.nextChunk.length>0,n=this.decrypt;e=n(e,!t);let r=this.bufferLength,i=r+e.length;this.ensureBuffer(i).set(e,r),this.bufferLength=i}};const tl=(e=``)=>{let t=e;try{t=unescape(encodeURIComponent(e))}catch{}return h(t).subarray(0,Math.min(127,t.length))};var nl=class{constructor(e){this.a=0,this.b=0;let t=new Uint8Array(256),n=e.length;for(let e=0;e<256;++e)t[e]=e;for(let r=0,i=0;r<256;++r){let a=t[r];i=i+a+e[r%n]&255,t[r]=t[i],t[i]=a}this.s=t}encryptBlock(e){let t=this.a,n=this.b,r=this.s,i=e.length,a=new Uint8Array(i);for(let o=0;o<i;++o){t=t+1&255;let i=r[t];n=n+i&255;let s=r[n];r[t]=s,r[n]=i,a[o]=e[o]^r[i+s&255]}return this.a=t,this.b=n,a}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}};const rl=(function(){let e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function n(n,r,i){let a=1732584193,o=-271733879,s=-1732584194,c=271733878,l=i+72&-64,u=new Uint8Array(l),d,f;for(d=0;d<i;++d)u[d]=n[r++];u[d++]=128;let p=l-8;for(;d<p;)u[d++]=0;u[d++]=i<<3&255,u[d++]=i>>5&255,u[d++]=i>>13&255,u[d++]=i>>21&255,u[d++]=i>>>29&255,u[d++]=0,u[d++]=0,u[d++]=0;let m=new Int32Array(16);for(d=0;d<l;){for(f=0;f<16;++f,d+=4)m[f]=u[d]|u[d+1]<<8|u[d+2]<<16|u[d+3]<<24;let n=a,r=o,i=s,l=c,p,h;for(f=0;f<64;++f){f<16?(p=r&i|~r&l,h=f):f<32?(p=l&r|~l&i,h=5*f+1&15):f<48?(p=r^i^l,h=3*f+5&15):(p=i^(r|~l),h=7*f&15);let a=l,o=n+p+t[f]+m[h]|0,s=e[f];l=i,i=r,r=r+(o<<s|o>>>32-s)|0,n=a}a=a+n|0,o=o+r|0,s=s+i|0,c=c+l|0}return new Uint8Array([a&255,a>>8&255,a>>16&255,a>>>24&255,o&255,o>>8&255,o>>16&255,o>>>24&255,s&255,s>>8&255,s>>16&255,s>>>24&255,c&255,c>>8&255,c>>16&255,c>>>24&255])}return n})();var $=class{constructor(e,t){this.high=e|0,this.low=t|0}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,n;e&32?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){let t=(this.low>>>0)+(e.low>>>0),n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=t|0,this.high=n|0}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=this.high&255,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=this.low&255}assign(e){this.high=e.high,this.low=e.low}};const il=(function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function a(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}let 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];function c(e,c,l){let u=1779033703,d=3144134277,f=1013904242,p=2773480762,m=1359893119,h=2600822924,g=528734635,_=1541459225,v=Math.ceil((l+9)/64)*64,y=new Uint8Array(v),b,x;for(b=0;b<l;++b)y[b]=e[c++];y[b++]=128;let S=v-8;for(;b<S;)y[b++]=0;y[b++]=0,y[b++]=0,y[b++]=0,y[b++]=l>>>29&255,y[b++]=l>>21&255,y[b++]=l>>13&255,y[b++]=l>>5&255,y[b++]=l<<3&255;let C=new Uint32Array(64);for(b=0;b<v;){for(x=0;x<16;++x)C[x]=y[b]<<24|y[b+1]<<16|y[b+2]<<8|y[b+3],b+=4;for(x=16;x<64;++x)C[x]=o(C[x-2])+C[x-7]+a(C[x-15])+C[x-16]|0;let e=u,c=d,l=f,v=p,S=m,w=h,T=g,E=_,D,ee;for(x=0;x<64;++x)D=E+i(S)+t(S,w,T)+s[x]+C[x],ee=r(e)+n(e,c,l),E=T,T=w,w=S,S=v+D|0,v=l,l=c,c=e,e=D+ee|0;u=u+e|0,d=d+c|0,f=f+l|0,p=p+v|0,m=m+S|0,h=h+w|0,g=g+T|0,_=_+E|0}return new Uint8Array([u>>24&255,u>>16&255,u>>8&255,u&255,d>>24&255,d>>16&255,d>>8&255,d&255,f>>24&255,f>>16&255,f>>8&255,f&255,p>>24&255,p>>16&255,p>>8&255,p&255,m>>24&255,m>>16&255,m>>8&255,m&255,h>>24&255,h>>16&255,h>>8&255,h&255,g>>24&255,g>>16&255,g>>8&255,g&255,_>>24&255,_>>16&255,_>>8&255,_&255])}return c})(),al=(function(){function e(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(r),e.xor(i)}function t(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.and(r),e.xor(i),i.assign(n),i.and(r),e.xor(i)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function a(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}let o=[new $(1116352408,3609767458),new $(1899447441,602891725),new $(3049323471,3964484399),new $(3921009573,2173295548),new $(961987163,4081628472),new $(1508970993,3053834265),new $(2453635748,2937671579),new $(2870763221,3664609560),new $(3624381080,2734883394),new $(310598401,1164996542),new $(607225278,1323610764),new $(1426881987,3590304994),new $(1925078388,4068182383),new $(2162078206,991336113),new $(2614888103,633803317),new $(3248222580,3479774868),new $(3835390401,2666613458),new $(4022224774,944711139),new $(264347078,2341262773),new $(604807628,2007800933),new $(770255983,1495990901),new $(1249150122,1856431235),new $(1555081692,3175218132),new $(1996064986,2198950837),new $(2554220882,3999719339),new $(2821834349,766784016),new $(2952996808,2566594879),new $(3210313671,3203337956),new $(3336571891,1034457026),new $(3584528711,2466948901),new $(113926993,3758326383),new $(338241895,168717936),new $(666307205,1188179964),new $(773529912,1546045734),new $(1294757372,1522805485),new $(1396182291,2643833823),new $(1695183700,2343527390),new $(1986661051,1014477480),new $(2177026350,1206759142),new $(2456956037,344077627),new $(2730485921,1290863460),new $(2820302411,3158454273),new $(3259730800,3505952657),new $(3345764771,106217008),new $(3516065817,3606008344),new $(3600352804,1432725776),new $(4094571909,1467031594),new $(275423344,851169720),new $(430227734,3100823752),new $(506948616,1363258195),new $(659060556,3750685593),new $(883997877,3785050280),new $(958139571,3318307427),new $(1322822218,3812723403),new $(1537002063,2003034995),new $(1747873779,3602036899),new $(1955562222,1575990012),new $(2024104815,1125592928),new $(2227730452,2716904306),new $(2361852424,442776044),new $(2428436474,593698344),new $(2756734187,3733110249),new $(3204031479,2999351573),new $(3329325298,3815920427),new $(3391569614,3928383900),new $(3515267271,566280711),new $(3940187606,3454069534),new $(4118630271,4000239992),new $(116418474,1914138554),new $(174292421,2731055270),new $(289380356,3203993006),new $(460393269,320620315),new $(685471733,587496836),new $(852142971,1086792851),new $(1017036298,365543100),new $(1126000580,2618297676),new $(1288033470,3409855158),new $(1501505948,4234509866),new $(1607167915,987167468),new $(1816402316,1246189591)];function s(s,c,l,u=!1){let d,f,p,m,h,g,_,v;u?(d=new $(3418070365,3238371032),f=new $(1654270250,914150663),p=new $(2438529370,812702999),m=new $(355462360,4144912697),h=new $(1731405415,4290775857),g=new $(2394180231,1750603025),_=new $(3675008525,1694076839),v=new $(1203062813,3204075428)):(d=new $(1779033703,4089235720),f=new $(3144134277,2227873595),p=new $(1013904242,4271175723),m=new $(2773480762,1595750129),h=new $(1359893119,2917565137),g=new $(2600822924,725511199),_=new $(528734635,4215389547),v=new $(1541459225,327033209));let y=Math.ceil((l+17)/128)*128,b=new Uint8Array(y),x,S;for(x=0;x<l;++x)b[x]=s[c++];b[x++]=128;let C=y-16;for(;x<C;)b[x++]=0;b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=0,b[x++]=l>>>29&255,b[x++]=l>>21&255,b[x++]=l>>13&255,b[x++]=l>>5&255,b[x++]=l<<3&255;let w=Array(80);for(x=0;x<80;x++)w[x]=new $(0,0);let T=new $(0,0),E=new $(0,0),D=new $(0,0),ee=new $(0,0),O=new $(0,0),k=new $(0,0),A=new $(0,0),j=new $(0,0),M=new $(0,0),N=new $(0,0),te=new $(0,0),ne=new $(0,0),re;for(x=0;x<y;){for(S=0;S<16;++S)w[S].high=b[x]<<24|b[x+1]<<16|b[x+2]<<8|b[x+3],w[S].low=b[x+4]<<24|b[x+5]<<16|b[x+6]<<8|b[x+7],x+=8;for(S=16;S<80;++S)re=w[S],a(re,w[S-2],ne),re.add(w[S-7]),i(te,w[S-15],ne),re.add(te),re.add(w[S-16]);for(T.assign(d),E.assign(f),D.assign(p),ee.assign(m),O.assign(h),k.assign(g),A.assign(_),j.assign(v),S=0;S<80;++S)M.assign(j),r(te,O,ne),M.add(te),e(te,O,k,A,ne),M.add(te),M.add(o[S]),M.add(w[S]),n(N,T,ne),t(te,T,E,D,ne),N.add(te),re=j,j=A,A=k,k=O,ee.add(M),O=ee,ee=D,D=E,E=T,re.assign(M),re.add(N),T=re;d.add(T),f.add(E),p.add(D),m.add(ee),h.add(O),g.add(k),_.add(A),v.add(j)}let ie;return u?(ie=new Uint8Array(48),d.copyTo(ie,0),f.copyTo(ie,8),p.copyTo(ie,16),m.copyTo(ie,24),h.copyTo(ie,32),g.copyTo(ie,40)):(ie=new Uint8Array(64),d.copyTo(ie,0),f.copyTo(ie,8),p.copyTo(ie,16),m.copyTo(ie,24),h.copyTo(ie,32),g.copyTo(ie,40),_.copyTo(ie,48),v.copyTo(ie,56)),ie}return s})();function ol(e,t,n){return al(e,t,n,!0)}var sl=class{decryptBlock(e){return e}encrypt(e){return e}},cl=class e{constructor(){if(this.constructor===e)throw Error(`Cannot initialize AESBaseCipher.`);this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)e<128?this._mixCol[e]=e<<1:this._mixCol[e]=e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){throw Error("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,r,i,a=new Uint8Array(16);a.set(e);for(let e=0,n=this._keySize;e<16;++e,++n)a[e]^=t[n];for(let e=this._cyclesOfRepetition-1;e>=1;--e){n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]];for(let n=0,r=e*16;n<16;++n,++r)a[n]^=t[r];for(let e=0;e<16;e+=4){let t=this._mix[a[e]],r=this._mix[a[e+1]],i=this._mix[a[e+2]],o=this._mix[a[e+3]];n=t^r>>>8^r<<24^i>>>16^i<<16^o>>>24^o<<8,a[e]=n>>>24&255,a[e+1]=n>>16&255,a[e+2]=n>>8&255,a[e+3]=n&255}}n=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=n,n=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=n,a[2]=r,n=a[15],r=a[11],i=a[7],a[15]=a[3],a[11]=n,a[7]=r,a[3]=i;for(let e=0;e<16;++e)a[e]=this._inv_s[a[e]],a[e]^=t[e];return a}_encrypt(e,t){let n=this._s,r,i,a,o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0;e<16;e+=4){let t=o[e+0],n=o[e+1],i=o[e+2],a=o[e+3];r=t^n^i^a,o[e+0]^=r^this._mixCol[t^n],o[e+1]^=r^this._mixCol[n^i],o[e+2]^=r^this._mixCol[i^a],o[e+3]^=r^this._mixCol[a^t]}for(let n=0,r=e*16;n<16;++n,++r)o[n]^=t[r]}for(let e=0;e<16;++e)o[e]=n[o[e]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],i=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=i,a=o[3],i=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=i,o[15]=r;for(let e=0,n=this._keySize;e<16;++e,++n)o[e]^=t[n];return o}_decryptBlock2(e,t){let n=e.length,r=this.buffer,i=this.bufferPosition,a=[],o=this.iv;for(let t=0;t<n;++t){if(r[i]=e[t],++i,i<16)continue;let n=this._decrypt(r,this._key);for(let e=0;e<16;++e)n[e]^=o[e];o=r,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=o,a.length===0)return new Uint8Array;let s=16*a.length;if(t){let e=a[a.length-1],t=e[15];if(t<=16){for(let n=15,r=16-t;n>=r;--n)if(e[n]!==t){t=0;break}s-=t,a[a.length-1]=e.subarray(0,16-t)}}let c=new Uint8Array(s);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)c.set(a[e],t);return c}decryptBlock(e,t,n){let r=e.length,i=this.buffer,a=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;a<16&&t<r;++t,++a)i[a]=e[t];if(a<16)return this.bufferLength=a,new Uint8Array;this.iv=i,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){let n=e.length,r=this.buffer,i=this.bufferPosition,a=[];t||=new Uint8Array(16);for(let o=0;o<n;++o){if(r[i]=e[o],++i,i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];let n=this._encrypt(r,this._key);t=n,a.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=t,a.length===0)return new Uint8Array;let o=16*a.length,s=new Uint8Array(o);for(let e=0,t=0,n=a.length;e<n;++e,t+=16)s.set(a[e],t);return s}},ll=class extends cl{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){let t=this._s,n=this._rcon,r=new Uint8Array(176);r.set(e);for(let e=16,i=1;e<176;++i){let a=r[e-3],o=r[e-2],s=r[e-1],c=r[e-4];a=t[a],o=t[o],s=t[s],c=t[c],a^=n[i];for(let t=0;t<4;++t)r[e]=a^=r[e-16],e++,r[e]=o^=r[e-16],e++,r[e]=s^=r[e-16],e++,r[e]=c^=r[e-16],e++}return r}},ul=class extends cl{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){let t=this._s,n=new Uint8Array(240);n.set(e);let r=1,i=0,a=0,o=0,s=0;for(let e=32,c=1;e<240;++c){e%32==16?(i=t[i],a=t[a],o=t[o],s=t[s]):e%32==0&&(i=n[e-3],a=n[e-2],o=n[e-1],s=n[e-4],i=t[i],a=t[a],o=t[o],s=t[s],i^=r,(r<<=1)>=256&&(r=(r^27)&255));for(let t=0;t<4;++t)n[e]=i^=n[e-32],e++,n[e]=a^=n[e-32],e++,n[e]=o^=n[e-32],e++,n[e]=s^=n[e-32],e++}return n}},dl=class{checkOwnerPassword(e,t,n,r){let i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);let a=il(i,0,i.length);return oe(a,r)}checkUserPassword(e,t,n){let r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);let i=il(r,0,r.length);return oe(i,n)}getOwnerKey(e,t,n,r){let i=new Uint8Array(e.length+56);return i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length),new ul(il(i,0,i.length)).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){let r=new Uint8Array(e.length+8);return r.set(e,0),r.set(t,e.length),new ul(il(r,0,r.length)).decryptBlock(n,!1,new Uint8Array(16))}};const fl=(()=>{let e=null,t=e=>Array.from(e).map(d).join(``);return()=>{var n;if(e!==null)return e;try{let r=((n=globalThis.process)?.getBuiltinModule)?.call(n,`crypto`);if(typeof r?.createHash!=`function`||typeof r?.createCipheriv!=`function`){e=void 0;return}let i={hash:(e,t)=>new Uint8Array(r.createHash(e).update(t).digest()),aes128CbcNoPadding:(e,t,n)=>{let i=r.createCipheriv(`aes-128-cbc`,e,t);i.setAutoPadding(!1);let a=i.update(n),o=i.final(),s=new Uint8Array(a.length+o.length);return s.set(a,0),s.set(o,a.length),s}},a=new Uint8Array,o=new Uint8Array(16);return e=t(i.hash(`sha256`,a))===`E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855`&&t(i.hash(`sha384`,a))===`38B060A751AC96384CD9327EB1B1E36A21FDB71114BE07434C0CC7BF63F6E1DA274EDEBFE76F65FBD51AD2F14898B95B`&&t(i.hash(`sha512`,a))===`CF83E1357EEFB8BDF1542850D66D8007D620E4050B5715DC83F4A921D36CE9CE47D0D13C5D85F2B0FF8318D2877EEC2F63B931BD47417A81A538327AF927DA3E`&&t(i.aes128CbcNoPadding(o,o,o))===`66E94BD4EF8A2C3B884CFA59CA342B2E`?i:void 0}catch{e=void 0;return}}})(),pl=(e,t)=>e===`sha256`?il(t,0,t.length):e===`sha384`?ol(t,0,t.length):al(t,0,t.length),ml=(e,t,n)=>new ll(e).encrypt(n,t);var hl=class{calculatePDF20Hash(e,t,n){let r=fl(),i=r?r.hash:pl,a=r?r.aes128CbcNoPadding:ml,o=i(`sha256`,t).subarray(0,32),s=new Uint8Array([0]),c=0;for(;c<64||s[s.length-1]>c-32;){let t=e.length+o.length+n.length,r=new Uint8Array(t);r.set(e,0),r.set(o,e.length),r.set(n,e.length+o.length);let l=new Uint8Array(t*64);for(let e=0,n=0;e<64;e++,n+=t)l.set(r,n);s=a(o.subarray(0,16),o.subarray(16,32),l);let u=s.slice(0,16).reduce((e,t)=>e+t,0)%3;o=i(u===0?`sha256`:u===1?`sha384`:`sha512`,s),c++}return o.subarray(0,32)}hash(e,t,n){return this.calculatePDF20Hash(e,t,n)}checkOwnerPassword(e,t,n,r){let i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);let a=this.calculatePDF20Hash(e,i,n);return oe(a,r)}checkUserPassword(e,t,n){let r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);let i=this.calculatePDF20Hash(e,r,new Uint8Array);return oe(i,n)}getOwnerKey(e,t,n,r){let i=new Uint8Array(e.length+56);return i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length),new ul(this.calculatePDF20Hash(e,i,n)).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){let r=new Uint8Array(e.length+8);return r.set(e,0),r.set(t,e.length),new ul(this.calculatePDF20Hash(e,r,new Uint8Array)).decryptBlock(n,!1,new Uint8Array(16))}},gl=class{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){let n=this.StreamCipherConstructor();return new el(e,function(e,t){return n.decryptBlock(e,t)},t)}decryptString(e){let t=this.StringCipherConstructor(),n=h(e);return n=t.decryptBlock(n,!0),re(n)}decryptBytes(e){return this.StringCipherConstructor().decryptBlock(e,!0)}encryptString(e){let t=this.StringCipherConstructor();if(t instanceof cl){let n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);let r=new Uint8Array(16);if(typeof crypto<`u`)crypto.getRandomValues(r);else for(let e=0;e<16;e++)r[e]=Math.floor(256*Math.random());let i=h(e);i=t.encrypt(i,r);let a=new Uint8Array(16+i.length);return a.set(r),a.set(i,16),re(a)}let n=h(e);return n=t.encrypt(n),re(n)}},_l=class{constructor(e,t,n){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=Y.of(`Identity`);let r=e.get(Y.of(`Filter`));if(r.asString()!==`/Standard`)throw Error(`unknown encryption method`);this.filterName=r.asString(),this.dict=e;let i=e.get(Y.of(`V`)).asNumber();if(!Number.isInteger(i)||i!==1&&i!==2&&i!==4&&i!==5)throw Error(`unsupported encryption algorithm`);this.algorithm=i;let a=e.get(Y.of(`Length`))?.asNumber();if(!a){if(i<=3)a=40;else{let t=e.lookup(Y.of(`CF`)),n=e.lookup(Y.of(`StmF`));if(t instanceof X&&n instanceof Y){t.suppressEncryption=!0;let e=t.lookup(n),r=null;e&&(r=e.lookup(Y.of(`Length`))),a=r&&r.asNumber()||128,a<40&&(a<<=3)}}}if(a===void 0||!Number.isInteger(a)||a<40||a%8!=0)throw Error(`invalid key length: ${a}`);let o=e.get(Y.of(`O`)).asBytes(),s=e.get(Y.of(`U`)).asBytes(),c=o.subarray(0,32),l=s.subarray(0,32),u=e.get(Y.of(`P`)).asNumber(),d=e.get(Y.of(`R`)).asNumber(),f=(i===4||i===5)&&e.get(Y.of(`EncryptMetadata`))?.asBoolean()!==!1;this.encryptMetadata=f;let p;n&&(p=d===6?tl(n):h(n));let m;if(i!==5)m=this.prepareKeyData(t,p,c,l,u,d,a,f);else{let t=o.subarray(32,40),n=o.subarray(40,48),r=s.subarray(0,48),i=s.subarray(32,40),a=s.subarray(40,48),u=e.get(Y.of(`OE`)).asBytes(),f=e.get(Y.of(`UE`)).asBytes(),h=e.get(Y.of(`Perms`)).asBytes();m=this.createEncryptionKey20(d,p,c,t,n,r,l,i,a,u,f,h)}if(!m&&!n)throw Error(`NEEDS PASSWORD`);if(!m&&n){let e=this.decodeUserPassword(p,c,d,a);m=this.prepareKeyData(t,e,c,l,u,d,a,f)}if(!m)throw Error(`Password incorrect`);if(this.encryptionKey=m,i>=4){let t=e.lookup(Y.of(`CF`));t instanceof X&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.lookup(Y.of(`StmF`))||this.identityName,this.strf=e.lookup(Y.of(`StrF`))||this.identityName,this.eff=e.lookup(Y.of(`EFF`))||this.stmf}}createCipherTransform(e,t){if(this.algorithm===4||this.algorithm===5)return new gl(this.buildCipherConstructor(this.cf,this.strf,e,t,this.encryptionKey),this.buildCipherConstructor(this.cf,this.stmf,e,t,this.encryptionKey));let n=this.buildObjectKey(e,t,this.encryptionKey,!1),r=function(){return new nl(n)};return new gl(r,r)}createEncryptionKey20(e,t,n,r,i,a,o,s,c,l,u,d){if(t){let e=Math.min(127,t.length);t=t.subarray(0,e)}else t=new Uint8Array;let f;return f=e===6?new hl:new dl,f.checkUserPassword(t,s,o)?f.getUserKey(t,c,u):t.length&&f.checkOwnerPassword(t,r,a,n)?f.getOwnerKey(t,i,a,l):null}prepareKeyData(e,t,n,r,i,a,o,s){let c=40+n.length+e.length,l=new Uint8Array(c),u=0,d,f;if(t)for(f=Math.min(32,t.length);u<f;++u)l[u]=t[u];for(d=0;u<32;)l[u++]=this.defaultPasswordBytes[d++];for(d=0,f=n.length;d<f;++d)l[u++]=n[d];for(l[u++]=i&255,l[u++]=i>>8&255,l[u++]=i>>16&255,l[u++]=i>>>24&255,d=0,f=e.length;d<f;++d)l[u++]=e[d];a>=4&&!s&&(l[u++]=255,l[u++]=255,l[u++]=255,l[u++]=255);let p=rl(l,0,u),m=o>>3;if(a>=3)for(d=0;d<50;++d)p=rl(p,0,m);let h=p.subarray(0,m),g,_;if(a>=3){for(u=0;u<32;++u)l[u]=this.defaultPasswordBytes[u];for(d=0,f=e.length;d<f;++d)l[u++]=e[d];g=new nl(h),_=g.encryptBlock(rl(l,0,u)),f=h.length;let t=new Uint8Array(f);for(d=1;d<=19;++d){for(let e=0;e<f;++e)t[e]=h[e]^d;g=new nl(t),_=g.encryptBlock(_)}for(d=0,f=_.length;d<f;++d)if(r[d]!==_[d])return null}else for(g=new nl(h),_=g.encryptBlock(this.defaultPasswordBytes),d=0,f=_.length;d<f;++d)if(r[d]!==_[d])return null;return h}decodeUserPassword(e,t,n,r){let i=new Uint8Array(32),a=0,o=Math.min(32,e.length);for(;a<o;++a)i[a]=e[a];let s=0;for(;a<32;)i[a++]=this.defaultPasswordBytes[s++];let c=rl(i,0,a),l=r>>3;if(n>=3)for(s=0;s<50;++s)c=rl(c,0,c.length);let u,d;if(n>=3){d=t;let e=new Uint8Array(l);for(s=19;s>=0;s--){for(let t=0;t<l;++t)e[t]=c[t]^s;u=new nl(e),d=u.encryptBlock(d)}}else u=new nl(c.subarray(0,l)),d=u.encryptBlock(t);return d}buildObjectKey(e,t,n,r=!1){let i=new Uint8Array(n.length+9),a=n.length,o;for(o=0;o<a;++o)i[o]=n[o];return i[o++]=e&255,i[o++]=e>>8&255,i[o++]=e>>16&255,i[o++]=t&255,i[o++]=t>>8&255,r&&(i[o++]=115,i[o++]=65,i[o++]=108,i[o++]=84),rl(i,0,o).subarray(0,Math.min(n.length+5,16))}buildCipherConstructor(e,t,n,r,i){if(!(t instanceof Y))throw Error(`Invalid crypt filter name.`);let a=e.lookup(t),o;if(a!=null&&(o=a.lookup(Y.of(`CFM`))),!o||o.asString()===`/None`)return function(){return new sl};if(o.asString()===`/V2`)return()=>new nl(this.buildObjectKey(n,r,i,!1));if(o.asString()===`/AESV2`)return()=>new ll(this.buildObjectKey(n,r,i,!0));if(o.asString()===`/AESV3`)return()=>new ul(i);throw Error(`Unknown crypto method`)}};const vl={"AES-256":{V:5,R:6,keyBits:256,minimumVersion:[1,7],weak:!1},"AES-128":{V:4,R:4,keyBits:128,minimumVersion:[1,6],weak:!1},"RC4-128":{V:2,R:3,keyBits:128,minimumVersion:[1,4],weak:!0},"RC4-40":{V:1,R:2,keyBits:40,minimumVersion:[1,1],weak:!0}};var yl=class e{static create(t,n){return new e(t,n)}constructor(e,t){if(!t.ownerPassword&&!t.userPassword)throw Error(`Either an owner password or a user password must be specified.`);this.context=e,this.initialize(t)}initialize(e){this.id=bl();let t=e.algorithm??`AES-256`,n=vl[t];if(!n)throw Error(`Unknown encryption algorithm '${t}'. Expected one of ${Object.keys(vl).join(`, `)}.`);if(n.weak&&!e.allowWeakCryptography)throw Error(`Refusing to encrypt with ${t}: RC4 is broken and was removed from ISO 32000-2. Use 'AES-256' (the default), or pass allowWeakCryptography: true if you must target a viewer released before Acrobat 7.`);this.profile=n,this.encryption=n.V===5?this.initializeV5(e):this.initializeV1V2V4(n,e)}raiseHeaderVersion(){let[e,t]=this.profile.minimumVersion,[n,r]=this.context.header.getVersionString().split(`.`).map(e=>parseInt(e,10)||0);n>e||n===e&&r>=t||(this.context.header=Xa.forVersion(e,t))}declareExtensionLevel(){if(this.profile.V!==5||(parseInt(this.context.header.getVersionString(),10)||0)>=2)return;let{Root:e}=this.context.trailerInfo;if(!e)return;let t=this.context.lookupMaybe(e,X);if(!t)return;let n=t.lookupMaybe(Y.of(`Extensions`),X)??this.context.obj({}),r=n.lookupMaybe(Y.of(`ADBE`),X)??this.context.obj({});(r.lookupMaybe(Y.of(`ExtensionLevel`),J)?.asNumber()??0)<8&&(r.set(Y.of(`BaseVersion`),Y.of(this.context.header.getVersionString())),r.set(Y.of(`ExtensionLevel`),J.of(8))),n.set(Y.of(`ADBE`),r),t.set(Y.of(`Extensions`),n)}initializeV1V2V4(e,t){let n={Filter:`Standard`},r=e.V,i=e.R;this.keyBits=e.keyBits;let a=i===2?Sl(t.permissions):Cl(t.permissions),o=jl(t.userPassword),s=t.ownerPassword?jl(t.ownerPassword):o,c=El(i,this.keyBits,o,s);this.encryptionKey=Dl(i,this.keyBits,this.id,o,c,a);let l;return l=i===2?wl(this.encryptionKey):Tl(this.id,this.encryptionKey),n.V=r,r>=2&&(n.Length=this.keyBits),r===4&&(n.CF={StdCF:{AuthEvent:`DocOpen`,CFM:`AESV2`,Length:this.keyBits/8}},n.StmF=`StdCF`,n.StrF=`StdCF`),n.R=i,n.O=c,n.U=l,n.P=a,n}initializeV5(e){this.keyBits=this.profile.keyBits,this.encryptionKey=To(32);let t=tl(e.userPassword),n=kl(t,Rl),r=Al(t,n.subarray(40,48),Rl,this.encryptionKey),i=e.ownerPassword?tl(e.ownerPassword):t,a=kl(i,n),o=Al(i,a.subarray(40,48),n,this.encryptionKey),s=Cl(e.permissions),c=Pl(this.encryptionKey,Ll,ne([Il(s),Bl,To(4)]));return{Filter:`Standard`,V:this.profile.V,R:this.profile.R,Length:this.keyBits,CF:{StdCF:{AuthEvent:`DocOpen`,CFM:`AESV3`,Length:this.keyBits/8}},StmF:`StdCF`,StrF:`StdCF`,O:a,OE:o,U:n,UE:r,P:s,Perms:c}}getEncryptFn(e,t){let n=this.encryption.V;if(n===5)return xl(this.encryptionKey);if(n!==1&&n!==2&&n!==4)throw Error(`Unsupported algorithm '${n}'.`);let r=ne([this.encryptionKey,new Uint8Array([e&255,e>>8&255,e>>16&255,t&255,t>>8&255])]);if(n===4)return xl(Ml(ne([r,zl])));let i=Ml(r).subarray(0,Math.min(16,this.keyBits/8+5));return e=>Nl(i,e)}encrypt(){this.raiseHeaderVersion(),this.declareExtensionLevel();let e=this.context.obj([this.id,this.id]);this.context.trailerInfo.ID=e;let t=this.context.obj(this.encryption);return this.context.trailerInfo.Encrypt=this.context.register(t),this}};const bl=()=>To(16),xl=e=>t=>{let n=To(16);return ne([n,Pl(e,n,Fl(t))])},Sl=(e={})=>{let t=-64;return e.printing&&(t|=4),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),t},Cl=(e={})=>{let t=-3904;return(e.printing===`lowResolution`||e.printing)&&(t|=4),e.printing===`highResolution`&&(t|=2052),e.modifying&&(t|=8),e.copying&&(t|=16),e.annotating&&(t|=32),e.fillingForms&&(t|=256),e.contentAccessibility&&(t|=512),e.documentAssembly&&(t|=1024),t},wl=e=>Nl(e,jl()),Tl=(e,t)=>{let n=Ml(ne([jl(),e])),r=new Uint8Array(t.length);for(let e=0;e<20;e++){for(let n=0;n<r.length;n++)r[n]=t[n]^e;n=Nl(r,n)}return ne([n,new Uint8Array(16)])},El=(e,t,n,r)=>{let i=r,a=e>=3?51:1;for(let e=0;e<a;e++)i=Ml(i);let o=new Uint8Array(t/8),s=n;a=e>=3?20:1;for(let e=0;e<a;e++){for(let t=0;t<o.length;t++)o[t]=i[t]^e;s=Nl(o,s)}return s},Dl=(e,t,n,r,i,a)=>{let o=ne([r,i,Il(a),n]),s=e>=3?51:1;for(let e=0;e<s;e++)o=Ml(o).subarray(0,t/8);return o},Ol=new hl,kl=(e,t)=>{let n=To(8),r=To(8);return ne([Ol.hash(e,ne([e,n,t]),t),n,r])},Al=(e,t,n,r)=>Pl(Ol.hash(e,ne([e,t,n]),n),Ll,r),jl=(e=``)=>{let t=new Uint8Array(32),n=e.length,r=0;for(;r<n&&r<32;){let n=e.charCodeAt(r);if(n>255)throw Error(`Password contains one or more invalid characters.`);t[r]=n,r++}for(;r<32;)t[r]=Vl[r-n],r++;return t},Ml=e=>rl(e,0,e.length),Nl=(e,t)=>new nl(e).encrypt(t),Pl=(e,t,n)=>(e.length===32?new ul(e):new ll(e)).encrypt(n,t),Fl=e=>{let t=16-e.length%16,n=new Uint8Array(e.length+t);return n.set(e),n.fill(t,e.length),n},Il=e=>new Uint8Array([e&255,e>>8&255,e>>16&255,e>>24&255]),Ll=new Uint8Array(16),Rl=new Uint8Array,zl=new Uint8Array([115,65,108,84]),Bl=new Uint8Array([255,255,255,255,84,97,100,98]),Vl=[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],Hl=e=>1<<e;var Ul;(function(e){e[e.Invisible=Hl(0)]=`Invisible`,e[e.Hidden=Hl(1)]=`Hidden`,e[e.Print=Hl(2)]=`Print`,e[e.NoZoom=Hl(3)]=`NoZoom`,e[e.NoRotate=Hl(4)]=`NoRotate`,e[e.NoView=Hl(5)]=`NoView`,e[e.ReadOnly=Hl(6)]=`ReadOnly`,e[e.Locked=Hl(7)]=`Locked`,e[e.ToggleNoView=Hl(8)]=`ToggleNoView`,e[e.LockedContents=Hl(9)]=`LockedContents`})(Ul||={});const Wl=e=>e instanceof Y?e:Y.of(e),Gl=e=>e instanceof J?e:J.of(e),Kl=e=>e instanceof J?e.asNumber():e;var ql;(function(e){e.Degrees=`degrees`,e.Radians=`radians`})(ql||={});const Jl=e=>(G(e,`radianAngle`,[`number`]),{type:ql.Radians,angle:e}),Yl=e=>(G(e,`degreeAngle`,[`number`]),{type:ql.Degrees,angle:e}),Xl=e=>e*Math.PI/180,Zl=e=>e*180/Math.PI,Ql=e=>e.type===ql.Radians?e.angle:e.type===ql.Degrees?Xl(e.angle):we(`Invalid rotation: ${JSON.stringify(e)}`),$l=e=>e.type===ql.Radians?Zl(e.angle):e.type===ql.Degrees?e.angle:we(`Invalid rotation: ${JSON.stringify(e)}`),eu=(e=0)=>{let t=e/90%4;return t===0?0:t===1?90:t===2?180:t===3?270:0},tu=(e,t=0)=>{let n=eu(t);return n===90||n===270?{width:e.height,height:e.width}:{width:e.width,height:e.height}},nu=(e,t=0,n=0)=>{let{x:r,y:i,width:a,height:o}=e,s=eu(n),c=t/2;return s===0?{x:r-c,y:i-c,width:a,height:o}:s===90?{x:r-o+c,y:i-c,width:o,height:a}:s===180?{x:r-a+c,y:i-o+c,width:a,height:o}:s===270?{x:r-c,y:i-a+c,width:o,height:a}:{x:r-c,y:i-c,width:a,height:o}},ru=()=>_o.of(yo.ClipNonZero),iu=()=>_o.of(yo.ClipEvenOdd),{cos:au,sin:ou,tan:su}=Math,cu=(e,t,n,r,i,a)=>_o.of(yo.ConcatTransformationMatrix,[Gl(e),Gl(t),Gl(n),Gl(r),Gl(i),Gl(a)]),lu=(e,t)=>cu(1,0,0,1,e,t),uu=(e,t)=>cu(e,0,0,t,0,0),du=e=>cu(au(Kl(e)),ou(Kl(e)),-ou(Kl(e)),au(Kl(e)),0,0),fu=e=>du(Xl(Kl(e))),pu=(e,t)=>cu(1,su(Kl(e)),su(Kl(t)),1,0,0),mu=(e,t)=>pu(Xl(Kl(e)),Xl(Kl(t))),hu=(e,t)=>_o.of(yo.SetLineDashPattern,[`[${e.map(Gl).join(` `)}]`,Gl(t)]),gu=()=>hu([],0);var _u;(function(e){e[e.Butt=0]=`Butt`,e[e.Round=1]=`Round`,e[e.Projecting=2]=`Projecting`})(_u||={});const vu=e=>_o.of(yo.SetLineCapStyle,[Gl(e)]);var yu;(function(e){e[e.Miter=0]=`Miter`,e[e.Round=1]=`Round`,e[e.Bevel=2]=`Bevel`})(yu||={});const bu=e=>_o.of(yo.SetLineJoinStyle,[Gl(e)]),xu=e=>_o.of(yo.SetGraphicsStateParams,[Wl(e)]),Su=()=>_o.of(yo.PushGraphicsState),Cu=()=>_o.of(yo.PopGraphicsState),wu=e=>_o.of(yo.SetLineWidth,[Gl(e)]),Tu=(e,t,n,r,i,a)=>_o.of(yo.AppendBezierCurve,[Gl(e),Gl(t),Gl(n),Gl(r),Gl(i),Gl(a)]),Eu=(e,t,n,r)=>_o.of(yo.CurveToReplicateInitialPoint,[Gl(e),Gl(t),Gl(n),Gl(r)]),Du=()=>_o.of(yo.ClosePath),Ou=(e,t)=>_o.of(yo.MoveTo,[Gl(e),Gl(t)]),ku=(e,t)=>_o.of(yo.LineTo,[Gl(e),Gl(t)]),Au=(e,t,n,r)=>_o.of(yo.AppendRectangle,[Gl(e),Gl(t),Gl(n),Gl(r)]),ju=(e,t,n)=>Au(e,t,n,n),Mu=()=>_o.of(yo.StrokePath);var Nu;(function(e){e.NonZero=`f`,e.EvenOdd=`f*`})(Nu||={});const Pu=()=>_o.of(yo.FillNonZero),Fu=()=>_o.of(yo.FillEvenOdd),Iu=()=>_o.of(yo.FillNonZeroAndStroke),Lu=()=>_o.of(yo.EndPath),Ru=()=>_o.of(yo.NextLine),zu=(e,t)=>_o.of(yo.MoveText,[Gl(e),Gl(t)]),Bu=e=>_o.of(yo.ShowText,[e]),Vu=()=>_o.of(yo.BeginText),Hu=()=>_o.of(yo.EndText),Uu=(e,t)=>_o.of(yo.SetFontAndSize,[Wl(e),Gl(t)]),Wu=e=>_o.of(yo.SetCharacterSpacing,[Gl(e)]),Gu=e=>_o.of(yo.SetWordSpacing,[Gl(e)]),Ku=e=>_o.of(yo.SetTextHorizontalScaling,[Gl(e)]),qu=e=>_o.of(yo.SetTextLineHeight,[Gl(e)]),Ju=e=>_o.of(yo.SetTextRise,[Gl(e)]);var Yu;(function(e){e[e.Fill=0]=`Fill`,e[e.Outline=1]=`Outline`,e[e.FillAndOutline=2]=`FillAndOutline`,e[e.Invisible=3]=`Invisible`,e[e.FillAndClip=4]=`FillAndClip`,e[e.OutlineAndClip=5]=`OutlineAndClip`,e[e.FillAndOutlineAndClip=6]=`FillAndOutlineAndClip`,e[e.Clip=7]=`Clip`})(Yu||={});const Xu=e=>_o.of(yo.SetTextRenderingMode,[Gl(e)]),Zu=(e,t,n,r,i,a)=>_o.of(yo.SetTextMatrix,[Gl(e),Gl(t),Gl(n),Gl(r),Gl(i),Gl(a)]),Qu=(e,t,n,r,i)=>Zu(au(Kl(e)),ou(Kl(e))+su(Kl(t)),-ou(Kl(e))+su(Kl(n)),au(Kl(e)),r,i),$u=(e,t,n,r,i)=>Qu(Xl(Kl(e)),Xl(Kl(t)),Xl(Kl(n)),r,i),ed=e=>_o.of(yo.DrawObject,[Wl(e)]),td=e=>_o.of(yo.NonStrokingColorGray,[Gl(e)]),nd=e=>_o.of(yo.StrokingColorGray,[Gl(e)]),rd=(e,t,n)=>_o.of(yo.NonStrokingColorRgb,[Gl(e),Gl(t),Gl(n)]),id=(e,t,n)=>_o.of(yo.StrokingColorRgb,[Gl(e),Gl(t),Gl(n)]),ad=(e,t,n,r)=>_o.of(yo.NonStrokingColorCmyk,[Gl(e),Gl(t),Gl(n),Gl(r)]),od=(e,t,n,r)=>_o.of(yo.StrokingColorCmyk,[Gl(e),Gl(t),Gl(n),Gl(r)]),sd=e=>_o.of(yo.BeginMarkedContent,[Wl(e)]),cd=()=>_o.of(yo.EndMarkedContent);var ld=t(((e,t)=>{t.exports={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]}})),ud=t(((e,t)=>{t.exports=function(e){return!e||typeof e==`string`?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!==`String`)}})),dd=t(((e,t)=>{var n=ud(),r=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(e){for(var t=[],a=0,o=e.length;a<o;a++){var s=e[a];n(s)?t=r.call(t,i.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}})),fd=t(((e,t)=>{var n=ld(),r=dd(),i=Object.hasOwnProperty,a=Object.create(null);for(var o in n)i.call(n,o)&&(a[n[o]]=o);var s=t.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,l=[0,0,0,1],u,d,f;if(u=e.match(r)){for(f=u[2],u=u[1],d=0;d<3;d++){var p=d*2;l[d]=parseInt(u.slice(p,p+2),16)}f&&(l[3]=parseInt(f,16)/255)}else if(u=e.match(t)){for(u=u[1],f=u[3],d=0;d<3;d++)l[d]=parseInt(u[d]+u[d],16);f&&(l[3]=parseInt(f+f,16)/255)}else if(u=e.match(a)){for(d=0;d<3;d++)l[d]=parseInt(u[d+1],0);u[4]&&(u[5]?l[3]=parseFloat(u[4])*.01:l[3]=parseFloat(u[4]))}else if(u=e.match(o)){for(d=0;d<3;d++)l[d]=Math.round(parseFloat(u[d+1])*2.55);u[4]&&(u[5]?l[3]=parseFloat(u[4])*.01:l[3]=parseFloat(u[4]))}else if(u=e.match(s))return u[1]===`transparent`?[0,0,0,0]:i.call(n,u[1])?(l=n[u[1]],l[3]=1,l):null;else return null;for(d=0;d<3;d++)l[d]=c(l[d],0,255);return l[3]=c(l[3],0,1),l},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=r(arguments);return`#`+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=r(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+i+`%)`:`rgba(`+t+`%, `+n+`%, `+i+`%, `+e[3]+`)`},s.to.hsl=function(){var e=r(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=r(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?`0`+t:t}})),pd=t(((e,t)=>{let n=ld(),r={};for(let e of Object.keys(n))r[n[e]]=e;let i={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`]}};t.exports=i;for(let e of Object.keys(i)){if(!(`channels`in i[e]))throw Error(`missing channels property: `+e);if(!(`labels`in i[e]))throw Error(`missing channel labels property: `+e);if(i[e].labels.length!==i[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},i.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,o*100,r*100]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=r[e];if(t)return t;let i=1/0,o;for(let t of Object.keys(n)){let r=n[t],s=a(e,r);s<i&&(i=s,o=t)}return o},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},i.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c}return[l*255,u*255,d*255]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},i.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},i.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,a]=e,o=t===null?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),md=t(((e,t)=>{let n=pd();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}})),hd=t(((e,t)=>{let n=pd(),r=md(),i={},a=Object.keys(n);function o(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i})),gd=e(t(((e,t)=>{let n=fd(),r=hd(),i=[`keyword`,`gray`,`hex`],a={};for(let e of Object.keys(r))a[[...r[e].labels].sort().join(``)]=e;let o={};function s(e,t){if(!(this instanceof s))return new s(e,t);if(t&&t in i&&(t=null),t&&!(t in r))throw Error(`Unknown model: `+t);let c,l;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof s)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e==`string`){let t=n.get(e);if(t===null)throw Error(`Unable to parse color from string: `+e);this.model=t.model,l=r[this.model].channels,this.color=t.value.slice(0,l),this.valpha=typeof t.value[l]==`number`?t.value[l]:1}else if(e.length>0){this.model=t||`rgb`,l=r[this.model].channels;let n=Array.prototype.slice.call(e,0,l);this.color=p(n,l),this.valpha=typeof e[l]==`number`?e[l]:1}else if(typeof e==`number`)this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);`alpha`in e&&(t.splice(t.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);let n=t.sort().join(``);if(!(n in a))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=a[n];let{labels:i}=r[this.model],o=[];for(c=0;c<i.length;c++)o.push(e[i[c]]);this.color=p(o)}if(o[this.model])for(l=r[this.model].channels,c=0;c<l;c++){let e=o[this.model][c];e&&(this.color[c]=e(this.color[c]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}s.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);let r=t.valpha===1?t.color:[...t.color,this.valpha];return n.to[t.model](r)},percentString(e){let t=this.rgb().round(typeof e==`number`?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return n.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=r[this.model],{labels:n}=r[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new s([...this.color.map(l(e)),this.valpha],this.model)},alpha(e){return e===void 0?this.valpha:new s([...this.color,Math.max(0,Math.min(1,e))],this.model)},red:u(`rgb`,0,d(255)),green:u(`rgb`,1,d(255)),blue:u(`rgb`,2,d(255)),hue:u([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,e=>(e%360+360)%360),saturationl:u(`hsl`,1,d(100)),lightness:u(`hsl`,2,d(100)),saturationv:u(`hsv`,1,d(100)),value:u(`hsv`,2,d(100)),chroma:u(`hcg`,1,d(100)),gray:u(`hcg`,2,d(100)),white:u(`hwb`,1,d(100)),wblack:u(`hwb`,2,d(100)),cyan:u(`cmyk`,0,d(100)),magenta:u(`cmyk`,1,d(100)),yellow:u(`cmyk`,2,d(100)),black:u(`cmyk`,3,d(100)),x:u(`xyz`,0,d(95.047)),y:u(`xyz`,1,d(100)),z:u(`xyz`,2,d(108.833)),l:u(`lab`,0,d(100)),a:u(`lab`,1),b:u(`lab`,2),keyword(e){return e===void 0?r[this.model].keyword(this.color):new s(e)},hex(e){return e===void 0?n.to.hex(this.rgb().round().color):new s(e)},hexa(e){if(e!==void 0)return new s(e);let t=this.rgb().round().color,r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r=`0`+r),n.to.hex(t)+r},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?`AAA`:t>=4.5?`AA`:``},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return s.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);let n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),c=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-c;return s.rgb(c*n.red()+l*r.red(),c*n.green()+l*r.green(),c*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(let e of Object.keys(r)){if(i.includes(e))continue;let{channels:t}=r[e];s.prototype[e]=function(...t){return this.model===e?new s(this):t.length>0?new s(t,e):new s([...f(r[this.model][e].raw(this.color)),this.valpha],e)},s[e]=function(...n){let r=n[0];return typeof r==`number`&&(r=p(n,t)),new s(r,e)}}function c(e,t){return Number(e.toFixed(t))}function l(e){return function(t){return c(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(let r of e)(o[r]||(o[r]=[]))[t]=n;return e=e[0],function(r){let i;return r===void 0?(i=this[e]().color[t],n&&(i=n(i)),i):(n&&(r=n(r)),i=this[e](),i.color[t]=r,i)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e){return Array.isArray(e)?e:[e]}function p(e,t){for(let n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}t.exports=s}))()),_d;(function(e){e.Grayscale=`Grayscale`,e.RGB=`RGB`,e.CMYK=`CMYK`})(_d||={});const vd=e=>(_t(e,`gray`,0,1),{type:_d.Grayscale,gray:e}),yd=(e,t,n)=>(_t(e,`red`,0,1),_t(t,`green`,0,1),_t(n,`blue`,0,1),{type:_d.RGB,red:e,green:t,blue:n}),bd=(e,t,n,r)=>(_t(e,`cyan`,0,1),_t(t,`magenta`,0,1),_t(n,`yellow`,0,1),_t(r,`key`,0,1),{type:_d.CMYK,cyan:e,magenta:t,yellow:n,key:r}),xd=e=>{G(e,`color`,[`string`]);let t=(0,gd.default)(e).unitObject();return{rgb:yd(t.r,t.g,t.b),alpha:t.alpha}},Sd=e=>e.type===_d.Grayscale?td(e.gray):e.type===_d.RGB?rd(e.red,e.green,e.blue):e.type===_d.CMYK?ad(e.cyan,e.magenta,e.yellow,e.key):we(`Invalid color: ${JSON.stringify(e)}`),Cd=e=>e.type===_d.Grayscale?nd(e.gray):e.type===_d.RGB?id(e.red,e.green,e.blue):e.type===_d.CMYK?od(e.cyan,e.magenta,e.yellow,e.key):we(`Invalid color: ${JSON.stringify(e)}`),wd=(e,t=1)=>e?.length===1?vd(e[0]*t):e?.length===3?yd(e[0]*t,e[1]*t,e[2]*t):e?.length===4?bd(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0,Td=e=>e.type===_d.Grayscale?[e.gray]:e.type===_d.RGB?[e.red,e.green,e.blue]:e.type===_d.CMYK?[e.cyan,e.magenta,e.yellow,e.key]:we(`Invalid color: ${JSON.stringify(e)}`);let Ed=0,Dd=0,Od=0,kd=0,Ad=0,jd=0;const Md=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]]),Nd=e=>{let t,n=[],r=[],i=``,a=!1,o=0;for(let s of e)if(Md.has(s))o=Md.get(s),t&&(i.length>0&&(r[r.length]=+i),n[n.length]={cmd:t,args:r},r=[],i=``,a=!1),t=s;else if([` `,`,`].includes(s)||s===`-`&&i.length>0&&i[i.length-1]!==`e`||s===`.`&&a){if(i.length===0)continue;r.length===o?(n[n.length]={cmd:t,args:r},r=[+i],t===`M`&&(t=`L`),t===`m`&&(t=`l`)):r[r.length]=+i,a=s===`.`,i=[`-`,`.`].includes(s)?s:``}else i+=s,s===`.`&&(a=!0);return i.length>0&&(r.length===o?(n[n.length]={cmd:t,args:r},r=[+i],t===`M`&&(t=`L`),t===`m`&&(t=`l`)):r[r.length]=+i),n[n.length]={cmd:t,args:r},n},Pd=e=>{Ed=Dd=Od=kd=Ad=jd=0;let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.cmd&&typeof Fd[r.cmd]==`function`){let e=Fd[r.cmd](r.args);Array.isArray(e)?t=t.concat(e):t.push(e)}}return t},Fd={M(e){return Ed=e[0],Dd=e[1],Od=kd=null,Ad=Ed,jd=Dd,Ou(Ed,Dd)},m(e){return Ed+=e[0],Dd+=e[1],Od=kd=null,Ad=Ed,jd=Dd,Ou(Ed,Dd)},C(e){return Ed=e[4],Dd=e[5],Od=e[2],kd=e[3],Tu(e[0],e[1],e[2],e[3],e[4],e[5])},c(e){let t=Tu(e[0]+Ed,e[1]+Dd,e[2]+Ed,e[3]+Dd,e[4]+Ed,e[5]+Dd);return Od=Ed+e[2],kd=Dd+e[3],Ed+=e[4],Dd+=e[5],t},S(e){(Od===null||kd===null)&&(Od=Ed,kd=Dd);let t=Tu(Ed-(Od-Ed),Dd-(kd-Dd),e[0],e[1],e[2],e[3]);return Od=e[0],kd=e[1],Ed=e[2],Dd=e[3],t},s(e){(Od===null||kd===null)&&(Od=Ed,kd=Dd);let t=Tu(Ed-(Od-Ed),Dd-(kd-Dd),Ed+e[0],Dd+e[1],Ed+e[2],Dd+e[3]);return Od=Ed+e[0],kd=Dd+e[1],Ed+=e[2],Dd+=e[3],t},Q(e){return Od=e[0],kd=e[1],Ed=e[2],Dd=e[3],Eu(e[0],e[1],Ed,Dd)},q(e){let t=Eu(e[0]+Ed,e[1]+Dd,e[2]+Ed,e[3]+Dd);return Od=Ed+e[0],kd=Dd+e[1],Ed+=e[2],Dd+=e[3],t},T(e){Od===null||kd===null?(Od=Ed,kd=Dd):(Od=Ed-(Od-Ed),kd=Dd-(kd-Dd));let t=Eu(Od,kd,e[0],e[1]);return Ed=e[0],Dd=e[1],t},t(e){Od===null||kd===null?(Od=Ed,kd=Dd):(Od=Ed-(Od-Ed),kd=Dd-(kd-Dd));let t=Eu(Od,kd,Ed+e[0],Dd+e[1]);return Ed+=e[0],Dd+=e[1],t},A(e){let t=Id(Ed,Dd,e);return Ed=e[5],Dd=e[6],t},a(e){e[5]+=Ed,e[6]+=Dd;let t=Id(Ed,Dd,e);return Ed=e[5],Dd=e[6],t},L(e){return Ed=e[0],Dd=e[1],Od=kd=null,ku(Ed,Dd)},l(e){return Ed+=e[0],Dd+=e[1],Od=kd=null,ku(Ed,Dd)},H(e){return Ed=e[0],Od=kd=null,ku(Ed,Dd)},h(e){return Ed+=e[0],Od=kd=null,ku(Ed,Dd)},V(e){return Dd=e[0],Od=kd=null,ku(Ed,Dd)},v(e){return Dd+=e[0],Od=kd=null,ku(Ed,Dd)},Z(){let e=Du();return Ed=Ad,Dd=jd,e},z(){let e=Du();return Ed=Ad,Dd=jd,e}},Id=(e,t,n)=>{let[r,i,a,o,s,c,l]=n,u=Ld(c,l,r,i,o,s,a,e,t),d=[];for(let e of u){let t=Rd(...e);d.push(Tu(...t))}return d},Ld=(e,t,n,r,i,a,o,s,c)=>{let l=Math.PI/180*o,u=Math.sin(l),d=Math.cos(l);n=Math.abs(n),r=Math.abs(r),Od=d*(s-e)*.5+u*(c-t)*.5,kd=d*(c-t)*.5-u*(s-e)*.5;let f=Od*Od/(n*n)+kd*kd/(r*r);f>1&&(f=Math.sqrt(f),n*=f,r*=f);let p=d/n,m=u/n,h=-u/r,g=d/r,_=p*s+m*c,v=h*s+g*c,y=p*e+m*t,b=h*e+g*t,x=1/((y-_)*(y-_)+(b-v)*(b-v))-.25;x<0&&(x=0);let S=Math.sqrt(x);a===i&&(S=-S);let C=.5*(_+y)-S*(b-v),w=.5*(v+b)+S*(y-_),T=Math.atan2(v-w,_-C),E=Math.atan2(b-w,y-C)-T;E<0&&a===1?E+=2*Math.PI:E>0&&a===0&&(E-=2*Math.PI);let D=Math.ceil(Math.abs(E/(Math.PI*.5+.001))),ee=[];for(let e=0;e<D;e++){let t=T+e*E/D,i=T+(e+1)*E/D;ee[e]=[C,w,t,i,n,r,u,d]}return ee},Rd=(e,t,n,r,i,a,o,s)=>{let c=s*i,l=-o*a,u=o*i,d=s*a,f=.5*(r-n),p=8/3*Math.sin(f*.5)*Math.sin(f*.5)/Math.sin(f),m=e+Math.cos(n)-p*Math.sin(n),h=t+Math.sin(n)+p*Math.cos(n),g=e+Math.cos(r),_=t+Math.sin(r),v=g+p*Math.sin(r),y=_-p*Math.cos(r);return[c*m+l*h,u*m+d*h,c*v+l*y,u*v+d*y,c*g+l*_,u*g+d*_]},zd=e=>Pd(Nd(e));var Bd=t((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.namedReferences=e.bodyRegExps=void 0;var n=`~`,r=`~~`;function i(e,i){for(var a={},o={},s=e.split(r),c=!1,l=0;s.length>l;l++){for(var u=s[l].split(n),d=0;d<u.length;d+=2){var f=u[d],p=u[d+1],m=`&`+f+`;`;a[m]=p,c&&(a[`&`+f]=p),o[p]=m}c=!0}return i?{entities:t(t({},a),i.entities),characters:t(t({},o),i.characters)}:{entities:a,characters:o}}e.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/&notin;|&(?: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:/&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?: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},e.namedReferences={},e.namedReferences.xml=i(`lt~<~gt~>~quot~"~apos~'~amp~&`),e.namedReferences.html4=i(`apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~‌~zwj~‍~lrm~‎~rlm~‏~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~\xA0~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~>`),e.namedReferences.html5=i('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~⁡~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~⁣~InvisibleTimes~⁢~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~​~NegativeThickSpace~​~NegativeThinSpace~​~NegativeVeryThinSpace~​~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~⁠~NonBreakingSpace~\xA0~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~  ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~​~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~⁡~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~⁣~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~⁢~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®',e.namedReferences.html4)})),Vd=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numericUnicodeMap=void 0,e.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}})),Hd=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.highSurrogateTo=e.highSurrogateFrom=e.getCodePoint=e.fromCodePoint=void 0,e.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},e.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536},e.highSurrogateFrom=55296,e.highSurrogateTo=56319})),Ud=t((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.encode=c,e.decodeEntity=v,e.decode=y;var n=Bd(),r=Vd(),i=Hd(),a=t(t({},n.namedReferences),{all:n.namedReferences.html5}),o={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF\uDC00-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF\uDC00-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF\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\uDC00-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g},s={mode:`specialChars`,level:`all`,numeric:`decimal`};function c(e,t){var n=t===void 0?s:t,r=n.mode,c=r===void 0?`specialChars`:r,l=n.numeric,u=l===void 0?`decimal`:l,d=n.level,f=d===void 0?`all`:d;if(!e)return``;var p=o[c],m=a[f].characters,h=u===`hexadecimal`;return String.prototype.replace.call(e,p,function(e){var t=m[e];if(!t){var n=e.length>1?(0,i.getCodePoint)(e,0):e.charCodeAt(0);t=(h?`&#x`+n.toString(16):`&#`+n)+`;`}return t})}var l={scope:`body`,level:`all`},u=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,d=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,f={xml:{strict:u,attribute:d,body:n.bodyRegExps.xml},html4:{strict:u,attribute:d,body:n.bodyRegExps.html4},html5:{strict:u,attribute:d,body:n.bodyRegExps.html5}},p=t(t({},f),{all:f.html5}),m=String.fromCharCode,h=m(65533),g={level:`all`};function _(e,t,n,a){var o=e,s=e[e.length-1];if(n&&s===`=`)o=e;else if(a&&s!==`;`)o=e;else{var c=t[e];if(c)o=c;else if(e[0]===`&`&&e[1]===`#`){var l=e[2],u=l==`x`||l==`X`?parseInt(e.substr(3),16):parseInt(e.substr(2));o=u>=1114111?h:u>65535?(0,i.fromCodePoint)(u):m(r.numericUnicodeMap[u]||u)}}return o}function v(e,t){var n=(t===void 0?g:t).level;return e?_(e,a[n===void 0?`all`:n].entities,!1,!1):``}function y(e,t){var n=t===void 0?l:t,r=n.level,i=r===void 0?`all`:r,o=n.scope,s=o===void 0?i===`xml`?`strict`:`body`:o;if(!e)return``;var c=p[i][s],u=a[i].entities,d=s===`attribute`,f=s===`strict`;return e.replace(c,function(e){return _(e,u,d,f)})}})),Wd=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isBlock=e.parse=e.Matcher=e.HTMLElement=e.CommentNode=e.TextNode=e.AbstractNode=e.NodeType=void 0;let t=Ud();var n;(function(e){e[e.ELEMENT_NODE=1]=`ELEMENT_NODE`,e[e.TEXT_NODE=3]=`TEXT_NODE`,e[e.COMMENT_NODE=8]=`COMMENT_NODE`})(n||(e.NodeType=n={}));var r=class{constructor(){this.childNodes=[],this.parentNode=null}get text(){return(0,t.decode)(this.rawText)}remove(){return this.parentNode&&this.parentNode.removeChild(this),this}};e.AbstractNode=r;var i=class extends r{constructor(e){super(),this.nodeType=n.TEXT_NODE,this.value=e}get rawText(){return this.value}get isWhitespace(){return/^(\s|&nbsp;)*$/.test(this.rawText)}toString(){return this.rawText}toJSON(){return{type:`text`,value:this.value}}};e.TextNode=i;var a=class extends r{constructor(e){super(),this.nodeType=n.COMMENT_NODE,this.value=e}get rawText(){return this.value}toString(){return`<!--${this.rawText}-->`}toJSON(){return{type:`comment`,value:this.value}}};e.CommentNode=a;let o={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function s(e){return e[e.length-1]}var c=class e extends r{constructor(e,t=``,r=null){super(),this.tagName=e,this.rawAttrs=t,this.id=``,this.classNames=[],this.nodeType=n.ELEMENT_NODE,this.rawAttrs=t,this.parentNode=r,this.childNodes=[];let i={};for(let e;e=d.exec(t);){let t=e[2];t&&(i[t]=e[4]||e[5]||e[6]||``)}i.id&&(this.id=i.id),i.class&&(this.classNames=i.class.split(/\s+/))}removeChild(t){this.childNodes=this.childNodes.filter(e=>e!==t),t instanceof e&&(t.parentNode=null)}exchangeChild(t,n){let r=this.childNodes.findIndex(e=>e===t);r>=0&&(this.childNodes[r]=n,t instanceof e&&(t.parentNode=null))}get rawText(){let e=``;for(let t=0;t<this.childNodes.length;t++)e+=this.childNodes[t].rawText;return e}get structuredText(){let e=[],t=[e];function r(i){if(i.nodeType===n.ELEMENT_NODE)o[i.tagName]?(e.length>0&&t.push(e=[]),i.childNodes.forEach(r),e.length>0&&t.push(e=[])):i.childNodes.forEach(r);else if(i.nodeType===n.TEXT_NODE){if(i.isWhitespace)e.prependWhitespace=!0;else{let t=i.text;e.prependWhitespace&&(t=` `+t,e.prependWhitespace=!1),e.push(t)}}}return r(this),t.map(function(e){return e.join(``).trim().replace(/\s{2,}/g,` `)}).join(`
34
34
  `).replace(/\s+$/,``)}get children(){return this.childNodes.filter(t=>t instanceof e)}toString(){let e=this.tagName;if(e){let t=/^(img|br|hr|area|base|input|doctype|link|meta)$/i.test(e),n=this.rawAttrs?` `+this.rawAttrs:``;return t?`<${e}${n} />`:`<${e}${n}>${this.innerHTML}</${e}>`}return this.innerHTML}get innerHTML(){return this.childNodes.map(e=>e.toString()).join(``)}set innerHTML(e){let t=g(e);this.childNodes.forEach(e=>e.remove()),t.childNodes.forEach(e=>this.appendChild(e))}set_content(e){if(e instanceof r)e=[e];else if(typeof e==`string`){let t=g(e);e=t.childNodes.length?t.childNodes:[new i(e)]}this.childNodes=e}get outerHTML(){return this.toString()}trimRight(e){for(let t=0;t<this.childNodes.length;t++){let r=this.childNodes[t];if(r.nodeType===n.ELEMENT_NODE)r.trimRight(e);else{let n=r.rawText.search(e);n>-1&&(r.value=r.rawText.substr(0,n),this.childNodes.length=t+1)}}return this}get structure(){let e=[],t=0;function r(n){e.push(` `.repeat(t)+n)}function i(e){let a=e.id?`#`+e.id:``,o=e.classNames.length?`.`+e.classNames.join(`.`):``;r(e.tagName+a+o),t++;for(let t=0;t<e.childNodes.length;t++){let a=e.childNodes[t];a.nodeType===n.ELEMENT_NODE?i(a):a.nodeType===n.TEXT_NODE&&(a.isWhitespace||r(`#text`))}t--}return i(this),e.join(`
35
35
  `)}removeWhitespace(){let e=0;for(let t=0;t<this.childNodes.length;t++){let r=this.childNodes[t];if(r.nodeType===n.TEXT_NODE){if(r.isWhitespace)continue;r.value=r.rawText.trim()}else r.nodeType===n.ELEMENT_NODE&&r.removeWhitespace();this.childNodes[e++]=r}return this.childNodes.length=e,this}querySelectorAll(e){let t;if(e instanceof l)return t=e,t.reset(),this.querySelectorImpl(e,!0);{let t=e.split(`,`).filter(e=>e.trim()).map(e=>e.trim()),n=new Set(t.map(e=>this.querySelectorImpl(new l(e),!0)).flat());return Array.from(n)}}querySelectorImpl(e,t){function n(e,t,r){let i=e.tagName?t.advance(e):!1;if(!r&&i&&t.matched)return e;if(i&&r){let r=t.clone();r.rewind();let i=e.children.map(e=>n(e,r.clone(),!0)).flat();return t.matched?[e,...i]:i.concat(...e.children.map(e=>n(e,t.clone(),!0)).flat())}if(r)return e.children.map(e=>n(e,t.clone(),!0)).flat();for(let r of e.children){let e=n(r,t.clone(),!1);if(e)return e}return null}return t?n(this,e,!0):n(this,e,!1)}querySelector(e){let t;if(e instanceof l)return t=e,t.reset(),this.querySelectorImpl(e,!1);{let t=e.split(`,`).map(e=>e.trim()).filter(e=>e.length);for(let e of t){let t=this.querySelectorImpl(new l(e),!1);if(t)return t}return null}}appendChild(t){return this.childNodes.push(t),t instanceof e&&(t.parentNode=this),t}prependChild(t){return this.childNodes.unshift(t),t instanceof e&&(t.parentNode=this),t}get firstChild(){return this.childNodes[0]}get lastChild(){return s(this.childNodes)}get attributes(){if(this._attrs)return this._attrs;this._attrs={};let e=this.rawAttributes;for(let n in e)this._attrs[n]=(0,t.decode)(e[n]);return this._attrs[Symbol.iterator]||Object.defineProperty(this._attrs,Symbol.iterator,{value:function*(){for(let e of Object.keys(this))yield{name:e,value:this[e]}},enumerable:!1,configurable:!0}),this._attrs}getAttribute(e){return this.attributes[e]}get rawAttributes(){if(this._rawAttrs)return this._rawAttrs;let e={};if(this.rawAttrs){let t;for(;t=f.exec(this.rawAttrs);){let n=t[1],r=t[4]||t[5]||t[6]||``;n&&(e[n]=r)}}return this._rawAttrs=e,e}setAttribute(e,n){e===`id`?this.id=n||``:e===`class`&&(this.classNames=n?.split(/\s+/)||[]);let r=this.attributes;n===void 0?delete r[e]:r[e]=n+``,this._rawAttrs&&(n===void 0?delete this._rawAttrs[e]:this._rawAttrs[e]=(0,t.encode)(n+``)),this.rawAttrs=Object.keys(r).map(e=>e+(r[e]===``?``:`="`+(0,t.encode)(r[e])+`"`)).join(` `)}removeAttribute(e){this.setAttribute(e,void 0)}setAttributes(e){e.id?this.id=e.id:e.class&&(this.classNames=e.class.split(/\s+/)),this.attributes&&(Object.keys(this.attributes).forEach(e=>delete this.attributes[e]),Object.keys(e).forEach(t=>this.attributes[t]=e[t]+``)),this.rawAttributes&&(Object.keys(this.rawAttributes).forEach(e=>delete this.rawAttributes[e]),Object.keys(e).forEach(n=>this.rawAttributes[n]=(0,t.encode)(e[n]+``))),this.rawAttrs=Object.keys(e).map(n=>n+(e[n]===``?``:`="`+(0,t.encode)(e[n]+``)+`"`)).join(` `)}toJSON(){return{type:`element`,tagName:this.tagName,attributes:this.attributes,children:this.childNodes.map(e=>e.toJSON?e.toJSON():e.toString())}}};e.HTMLElement=c;var l=class e{constructor(e){this.checkers=[],this.nextMatch=0,this.checkers=e?this.parseCompleteSelector(e):[]}parseCompleteSelector(e){let t=/(?:^|\s+)([a-zA-Z_*][\w:-]*)?(?:#([\w-]+))?(?:\.([\w-]+(?:\.[\w-]+)*))?(\[(?:[^\]]+)\](?:\[(?:[^\]]+)\])*)?/g,n=[],r;for(;(r=t.exec(e))!==null;)r[0].trim()&&n.push({tag:r[1]||``,id:r[2]||``,classes:r[3]?r[3].split(`.`):[],attrs:this.parseAttributes(r[4]||``)});return n.map(e=>this.createCheckerFromParsed(e))}parseAttributes(e){if(!e)return[];let t=[],n=/\[([^\s~|^$*!=]+)(?:\s*(=|!=|\^=|\$=|\*=|\|=|~=)\s*(?:["']?([^"'\]]*)["']?)?)?\]/g,r;for(;(r=n.exec(e))!==null;)r[1]&&t.push({key:r[1],op:r[2]||``,value:r[3]||``});return t}createCheckerFromParsed(e){let t=[];if(e.tag&&e.tag!==`*`&&t.push(t=>t.tagName===e.tag),e.id&&t.push(t=>t.id===e.id),e.classes.length>0)for(let n of e.classes)t.push(e=>e.classNames.includes(n));if(e.attrs.length>0){let n=e.attrs.map(e=>this.createAttributeChecker(e.key,e.op,e.value));t.push(e=>n.every(t=>t(e)))}return e=>t.every(t=>t(e))}createAttributeChecker(e,t,n){switch(t){case`=`:return t=>t.attributes[e]===n;case`!=`:return t=>t.attributes[e]!==n;case`^=`:return t=>{let r=t.attributes[e];return r!==void 0&&r.startsWith(n)};case`$=`:return t=>{let r=t.attributes[e];return r!==void 0&&r.endsWith(n)};case`*=`:return t=>{let r=t.attributes[e];return r!==void 0&&r.includes(n)};case`|=`:return t=>{let r=t.attributes[e];return r!==void 0&&(r===n||r.startsWith(n+`-`))};case`~=`:return t=>{let r=t.attributes[e];return r!==void 0&&r.split(/\s+/).includes(n)};default:return t=>t.attributes[e]!==void 0}}advance(e){return this.nextMatch<this.checkers.length&&this.checkers[this.nextMatch](e)?(this.nextMatch++,!0):!1}rewind(){this.nextMatch--}get matched(){return this.nextMatch===this.checkers.length}reset(){this.nextMatch=0}get level(){return this.nextMatch}clone(){let t=new e(``);return t.checkers=this.checkers,t.nextMatch=this.nextMatch,t}};e.Matcher=l;let u=/<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)((\s*(?:[a-z][-.:0-9_a-z]*(\s*=\s*("[^"]*?"|'[^']*?'|(?:\/(?!>)|[^\s"'<>/])+))?|[^<\/>\s]+))*)\s*(\/?)>/gi,d=/(^|\s)(id|class)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/gi,f=/([a-z][-.:0-9_a-z]*)(\s*=\s*("([^"]*)"|'([^']*)'|(\S+)))?/gi,p={area:!0,base:!0,br:!0,col:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,source:!0},m={li:{li:!0},p:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},b:{div:!0},td:{td:!0,th:!0},th:{td:!0,th:!0},h1:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},h2:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},h3:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},h4:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},h5:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},h6:{p:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0},colgroup:{tr:!0,thead:!0,tbody:!0,tfoot:!0},tr:{tr:!0,thead:!0,tbody:!0,tfoot:!0},thead:{tr:!0,thead:!0,tbody:!0,tfoot:!0},tbody:{tr:!0,thead:!0,tbody:!0,tfoot:!0},tfoot:{tr:!0,thead:!0,tbody:!0,tfoot:!0},ul:{ul:!0,ol:!0},ol:{ol:!0,ul:!0},aside:{aside:!0},nav:{nav:!0},form:{form:!0},header:{header:!0},footer:{footer:!0},main:{main:!0}},h={script:!0,noscript:!0,style:!0,pre:!0};function g(e,t){let n=new c(``),r=n,o=[n],l=0;t||={};let d;for(;d=u.exec(e);){if(l+d[0].length<u.lastIndex){let t=e.substring(l,u.lastIndex-d[0].length);r.appendChild(new i(t))}if(l=u.lastIndex,d[0][1]==`!`){if(t.comment){let t=e.substring(l-3,l-d[0].length+4);r.appendChild(new a(t))}continue}if(t.lowerCaseTagName&&(d[2]=d[2]?.toLowerCase()||``),!d[1]&&(!d[7]&&m[r.tagName]&&m[r.tagName][d[2]]&&(o.pop(),r=s(o)||n),r=r.appendChild(new c(d[2]||``,d[3]?.trim()||``)),o.push(r),h[d[2]])){let n=RegExp(`</`+d[2]+`\\s*>`,`ig`);n.lastIndex=u.lastIndex;let a=n.exec(e),o=a?a.index:-1,s=a?a[0].length:0;if(t[d[2]]){let t;t=o==-1?e.slice(u.lastIndex):e.substring(u.lastIndex,o),t.length>0&&r.appendChild(new i(t))}o==-1?l=u.lastIndex=e.length+1:(l=u.lastIndex=o+s,d[1]=`true`)}let f=d[2];if(d[1]||d[7]||p[f]){let e=!!d[1],t=!!p[f];if(e&&t)continue;for(;;)if(r.tagName==f){o.pop(),r=s(o)||n;break}else if(o.length>1){o.pop(),r=s(o)||n;continue}else break}}for(l<e.length&&n.appendChild(new i(e.substring(l))),n.valid=o.length===1;o.length>1;){let e=o.pop(),t=s(o)||n;e.parentNode&&e.parentNode instanceof c&&e.parentNode.parentNode&&(e.parentNode===t&&e.tagName===t.tagName?(t.removeChild(e),e.childNodes.forEach(e=>{t.parentNode.appendChild(e)}),o.pop()):(t.removeChild(e),e.childNodes.forEach(e=>{t.appendChild(e)})))}return n}e.parse=g;let _=`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`.split(`.`);function v(e){return e.nodeType===n.ELEMENT_NODE&&e.tagName&&_.includes(e.tagName.toLowerCase())}e.isBlock=v}))(),Gd=class{constructor(e,t={}){this.svg=e,this.images=t}},Kd;(function(e){e.Normal=`Normal`,e.Multiply=`Multiply`,e.Screen=`Screen`,e.Overlay=`Overlay`,e.Darken=`Darken`,e.Lighten=`Lighten`,e.ColorDodge=`ColorDodge`,e.ColorBurn=`ColorBurn`,e.HardLight=`HardLight`,e.SoftLight=`SoftLight`,e.Difference=`Difference`,e.Exclusion=`Exclusion`})(Kd||={});const qd=[1,0,0,1,0,0],Jd=([e,t,n,r,i,a],[o,s,c,l,u,d])=>[e*o+n*s,t*o+r*s,e*c+n*l,t*c+r*l,e*u+n*d+i,t*u+r*d+a],Yd=([e,t,n,r,i,a],{x:o,y:s})=>({x:e*o+n*s+i,y:t*o+r*s+a}),Xd=(e,t)=>{switch(e){case`scale`:case`scaleX`:case`scaleY`:{let[n,r=n]=t;return[e===`scaleY`?1:n,0,0,e===`scaleX`?1:r,0,0]}case`translate`:case`translateX`:case`translateY`:{let[n,r=n]=t;return[1,0,0,1,e===`translateY`?0:n,e===`translateX`?0:-r]}case`rotate`:{let[e,n=0,r=0]=t,i=Xd(`translate`,[n,r]),a=Xd(`translate`,[-n,-r]),o=Xl(-e),s=[Math.cos(o),Math.sin(o),-Math.sin(o),Math.cos(o),0,0];return Jd(Jd(i,s),a)}case`skewY`:case`skewX`:{let n=Xl(-t[0]),r=Math.tan(n);return[1,e===`skewY`?r:0,e===`skewX`?r:0,1,0,0]}case`matrix`:{let[e,n,r,i,a,o]=t,s=Xd(`scale`,[1,-1]);return Jd(Jd(s,[e,n,r,i,a,o]),s)}default:return qd}},Zd=(e,t,n)=>Jd(e,Xd(t,n)),Qd={butt:_u.Butt,round:_u.Round,square:_u.Projecting},$d={evenodd:Nu.EvenOdd,nonzero:Nu.NonZero},ef={bevel:yu.Bevel,miter:yu.Miter,round:yu.Round},tf=(e,t)=>({text(n){let r=n.svgAttributes.textAnchor,i=n.svgAttributes.dominantBaseline,a=n.text.trim().replace(/\s/g,` `),o=n.svgAttributes.fontSize||12,s=t.fonts&&((e,t)=>{let n=e.fontFamily;if(!n)return;let r=e.fontWeight===`bold`||Number(e.fontWeight)>=700,i=e.fontStyle===`italic`,a=(e,n,r)=>t[r+(e?`_bold`:``)+(n?`_italic`:``)],o=Object.keys(t).find(e=>e.startsWith(n));return a(r,i,n)||a(r,!1,n)||a(!1,i,n)||a(!1,!1,n)||(o?t[o]:void 0)})(n.svgAttributes,t.fonts),c=(s||e.getFont()[0]).widthOfTextAtSize(a,o),l=(s||e.getFont()[0]).heightAtSize(o),u=(s||e.getFont()[0]).heightAtSize(o,{descender:!1}),d=r===`middle`?c/2:r===`end`?c:0,f=0;switch(i){case`middle`:case`central`:f=u-l/2;break;case`mathematical`:f=o*.6;break;case`hanging`:f=u;break;case`text-before-edge`:f=o;break;case`ideographic`:case`text-after-edge`:f=u-l;break;default:f=0}e.drawText(a,{x:-d,y:-f,font:s,size:o,color:n.svgAttributes.fill,opacity:n.svgAttributes.fillOpacity,matrix:n.svgAttributes.matrix,clipSpaces:n.svgAttributes.clipSpaces,blendMode:n.svgAttributes.blendMode||t.blendMode})},line(n){e.drawLine({start:{x:n.svgAttributes.x1||0,y:-n.svgAttributes.y1||0},end:{x:n.svgAttributes.x2||0,y:-n.svgAttributes.y2||0},thickness:n.svgAttributes.strokeWidth,color:n.svgAttributes.stroke,opacity:n.svgAttributes.strokeOpacity,lineCap:n.svgAttributes.strokeLineCap,matrix:n.svgAttributes.matrix,clipSpaces:n.svgAttributes.clipSpaces,blendMode:n.svgAttributes.blendMode||t.blendMode})},path(n){n.svgAttributes.d&&e.drawSvgPath(n.svgAttributes.d,{x:0,y:0,borderColor:n.svgAttributes.stroke,borderWidth:n.svgAttributes.strokeWidth,borderOpacity:n.svgAttributes.strokeOpacity,borderLineCap:n.svgAttributes.strokeLineCap,color:n.svgAttributes.fill,opacity:n.svgAttributes.fillOpacity,fillRule:n.svgAttributes.fillRule,matrix:Zd(n.svgAttributes.matrix,`scale`,[1,-1]),clipSpaces:n.svgAttributes.clipSpaces,blendMode:n.svgAttributes.blendMode||t.blendMode})},image(n){let{src:r}=n.svgAttributes;if(!(r&&t.images?.[r]))return;let i=t.images?.[r],{x:a,y:o,width:s,height:c}=sf(i.width,i.height,n.svgAttributes.width||i.width,n.svgAttributes.height||i.height,n.svgAttributes.preserveAspectRatio);e.drawImage(i,{x:a,y:-o-c,width:s,height:c,opacity:n.svgAttributes.fillOpacity,matrix:n.svgAttributes.matrix,clipSpaces:n.svgAttributes.clipSpaces,blendMode:n.svgAttributes.blendMode||t.blendMode})},rect(n){!n.svgAttributes.fill&&!n.svgAttributes.stroke||e.drawRectangle({x:0,y:0,width:n.svgAttributes.width,height:n.svgAttributes.height,rx:n.svgAttributes.rx,ry:n.svgAttributes.ry,borderColor:n.svgAttributes.stroke,borderWidth:n.svgAttributes.strokeWidth,borderOpacity:n.svgAttributes.strokeOpacity,borderLineCap:n.svgAttributes.strokeLineCap,color:n.svgAttributes.fill,opacity:n.svgAttributes.fillOpacity,matrix:Zd(n.svgAttributes.matrix,`translateY`,[n.svgAttributes.height]),clipSpaces:n.svgAttributes.clipSpaces,blendMode:n.svgAttributes.blendMode||t.blendMode})},ellipse(n){e.drawEllipse({x:n.svgAttributes.cx||0,y:-(n.svgAttributes.cy||0),xScale:n.svgAttributes.rx,yScale:n.svgAttributes.ry,borderColor:n.svgAttributes.stroke,borderWidth:n.svgAttributes.strokeWidth,borderOpacity:n.svgAttributes.strokeOpacity,borderLineCap:n.svgAttributes.strokeLineCap,color:n.svgAttributes.fill,opacity:n.svgAttributes.fillOpacity,matrix:n.svgAttributes.matrix,clipSpaces:n.svgAttributes.clipSpaces,blendMode:n.svgAttributes.blendMode||t.blendMode})},circle(n){return tf(e,t).ellipse(n)}}),nf=(e,t,n,r)=>{let i=t[n]||e[n];return!i&&r!==void 0?r:i},rf=e=>{let t=/([^:\s]+)*\s*:\s*([^;]+)/g,n={},r=t.exec(e);for(;r!==null;)n[r[1]]=r[2],r=t.exec(e);return n},af=(e,t)=>{if(!e||e.length===0||[`none`,`transparent`].includes(e))return;if(e===`currentColor`)return t||af(`#000000`);let n=xd(e);return{rgb:n.rgb,alpha:n.alpha?n.alpha+``:void 0}},of=(e,t,n)=>{let r=e.attributes,i=rf(r.style),a=nf(r,i,`width`,``),o=nf(r,i,`height`,``),s=af(nf(r,i,`fill`)),c=nf(r,i,`fill-opacity`),l=nf(r,i,`opacity`),u=af(nf(r,i,`stroke`)),d=nf(r,i,`stroke-opacity`),f=nf(r,i,`stroke-linecap`),p=nf(r,i,`stroke-linejoin`),m=nf(r,i,`fill-rule`),h=nf(r,i,`stroke-width`),g=nf(r,i,`font-family`),_=nf(r,i,`font-style`),v=nf(r,i,`font-weight`),y=nf(r,i,`font-size`),b=nf(r,i,`mix-blend-mode`),x=ff(a,t.width),S=ff(o,t.height),C=ff(r.x,t.width),w=ff(r.y,t.height),T=ff(r.x1,t.width),E=ff(r.x2,t.width),D=ff(r.y1,t.height),ee=ff(r.y2,t.height),O=ff(r.cx,t.width),k=ff(r.cy,t.height),A=ff(r.rx||r.r,t.width),j=ff(r.ry||r.r,t.height),M={fontFamily:g||t.fontFamily,fontStyle:_||t.fontStyle,fontWeight:v||t.fontWeight,fontSize:ff(y)??t.fontSize,fill:s?.rgb||t.fill,fillOpacity:ff(c||l||s?.alpha)??t.fillOpacity,fillRule:$d[m]||t.fillRule,stroke:u?.rgb||t.stroke,strokeWidth:ff(h)??t.strokeWidth,strokeOpacity:ff(d||l||u?.alpha)??t.strokeOpacity,strokeLineCap:Qd[f]||t.strokeLineCap,strokeLineJoin:ef[p]||t.strokeLineJoin,width:x||t.width,height:S||t.height,rotation:t.rotation,viewBox:e.tagName===`svg`&&e.attributes.viewBox?mf(e.attributes.viewBox):t.viewBox,blendMode:pf(b)||t.blendMode},N={src:r.src||r.href||r[`xlink:href`],textAnchor:r[`text-anchor`],dominantBaseline:r[`dominant-baseline`],preserveAspectRatio:r.preserveAspectRatio},te=r.transform||``;[`translate`,`translateX`,`translateY`,`skewX`,`skewY`,`rotate`,`scale`,`scaleX`,`scaleY`,`matrix`].forEach(e=>{r[e]&&(te=r[e]+` `+te)}),(C||w)&&(te+=`translate(${C||0} ${w||0}) `);let ne=n;if(te){let e=/(\w+)\((.+?)\)/g,t=e.exec(te);for(;t!==null;){let[,n,r]=t,i=(r||``).split(/\s*,\s*|\s+/).filter(e=>e.length>0).map(e=>parseFloat(e));ne=Zd(ne,n,i),t=e.exec(te)}}if(N.x=C,N.y=w,(r.cx||r.cy)&&(N.cx=O,N.cy=k),(r.rx||r.ry||r.r)&&(N.rx=A,N.ry=j),(r.x1||r.y1)&&(N.x1=T,N.y1=D),(r.x2||r.y2)&&(N.x2=E,N.y2=ee),(r.width||r.height)&&(N.width=x??t.width,N.height=S??t.height),r.d&&(ne=Zd(ne,`scale`,[1,-1]),N.d=r.d),M.fontFamily){let e=M.fontFamily.match(/^"(.*?)"|^'(.*?)'/);e&&(M.fontFamily=e[1]||e[2])}return M.strokeWidth&&(N.strokeWidth=M.strokeWidth),{inherited:M,svgAttributes:N,tagName:e.tagName,matrix:ne}},sf=(e,t,n,r,i)=>{if(i===`none`)return{x:0,y:0,width:n,height:r};let a=e/t,o=n/r,s=o>a?a*r:n,c=o>=a?r:n/a,l=n-s,u=r-c,[d,f]=(()=>{switch(i){case`xMinYMin`:return[0,0];case`xMidYMin`:return[l/2,0];case`xMaxYMin`:return[l,u/2];case`xMinYMid`:return[0,u];case`xMaxYMid`:return[l,u/2];case`xMinYMax`:return[0,u];case`xMidYMax`:return[l/2,u];case`xMaxYMax`:return[l,u];default:return[l/2,u/2]}})();return{x:d,y:f,width:s,height:c}},cf=(e,t,n,r,i,a=`xMidYMid`)=>{let[o,s=`meet`]=a.split(` `),c=r/t,l=i/n,u=Zd(e,`scale`,[c,l]);if(o===`none`)return{clipBox:u,content:u};let d=s===`slice`?Math.max(c,l):Math.min(c,l),f=r-t*d,p=i-n*d,[m,h]=(()=>{switch(o){case`xMinYMin`:return[0,0];case`xMidYMin`:return[f/2,0];case`xMaxYMin`:return[f,p/2];case`xMinYMid`:return[0,p];case`xMaxYMid`:return[f,p/2];case`xMinYMax`:return[0,p];case`xMidYMax`:return[f/2,p];case`xMaxYMax`:return[f,p];default:return[f/2,p/2]}})();return{clipBox:u,content:Zd(Zd(e,`translate`,[m,h]),`scale`,[d])}},lf=(e,t,n,r)=>{if(e.nodeType===Wd.NodeType.COMMENT_NODE||e.nodeType===Wd.NodeType.TEXT_NODE)return[];if(e.tagName===`g`)return df(e,t,n,r);if(e.tagName===`svg`)return uf(e,t,n,r);{e.tagName===`polygon`&&(e.tagName=`path`,e.attributes.d=`M${e.attributes.points}Z`,delete e.attributes.points);let i=of(e,t,n),a=Object.assign(Object.assign(Object.assign({},i.inherited),i.svgAttributes),{matrix:i.matrix,clipSpaces:r});return Object.assign(e,{svgAttributes:a}),[e]}},uf=(e,t,n,r)=>{e.attributes.width??e.setAttribute(`width`,t.viewBox.width+``),e.attributes.height??e.setAttribute(`height`,t.viewBox.height+``);let i=of(e,t,n),a=[],o=e.attributes.viewBox?mf(e.attributes.viewBox):e.attributes.width&&e.attributes.height?mf(`0 0 ${e.attributes.width} ${e.attributes.height}`):t.viewBox,s=parseFloat(e.attributes.x)||0,c=parseFloat(e.attributes.y)||0,l=Zd(n,`translate`,[s,c]),{clipBox:u,content:d}=cf(l,o.width,o.height,parseFloat(e.attributes.width),parseFloat(e.attributes.height),e.attributes.preserveAspectRatio),f={topLeft:Yd(u,{x:0,y:0}),topRight:Yd(u,{x:o.width,y:0}),bottomRight:Yd(u,{x:o.width,y:-o.height}),bottomLeft:Yd(u,{x:0,y:-o.height})};return l=Zd(d,`translate`,[-o.x,-o.y]),e.childNodes.forEach(e=>{let t=lf(e,Object.assign(Object.assign({},i.inherited),{viewBox:o}),l,[...r,f]);a.push(...t)}),a},df=(e,t,n,r)=>{let i=of(e,t,n),a=[];return e.childNodes.forEach(e=>{a.push(...lf(e,i.inherited,i.matrix,r))}),a},ff=(e,t=1)=>{if(!e)return;let n=parseFloat(e);if(!isNaN(n))return e.endsWith(`%`)?n*t/100:n},pf=e=>{switch(e){case`normal`:return Kd.Normal;case`multiply`:return Kd.Multiply;case`screen`:return Kd.Screen;case`overlay`:return Kd.Overlay;case`darken`:return Kd.Darken;case`lighten`:return Kd.Lighten;case`color-dodge`:return Kd.ColorDodge;case`color-burn`:return Kd.ColorBurn;case`hard-light`:return Kd.HardLight;case`soft-light`:return Kd.SoftLight;case`difference`:return Kd.Difference;case`exclusion`:return Kd.Exclusion;default:return}},mf=e=>{if(!e)return;let[t=0,n=0,r=1,i=1]=(e||``).split(` `).map(e=>ff(e));return{x:t,y:n,width:r,height:i}},hf=(e,{width:t,height:n,fontSize:r},i,a)=>{let o=(0,Wd.parse)(e).firstChild;return t&&o.setAttribute(`width`,t+``),n&&o.setAttribute(`height`,n+``),r&&o.setAttribute(`font-size`,r+``),lf(o,Object.assign(Object.assign({},i),{viewBox:mf(o.attributes.viewBox||`0 0 1 1`)}),a,[])},gf=(e,t,n)=>{let r=typeof t==`string`?new Gd(t):t;if(!r.svg)return;let i=e.getSize(),a=(0,Wd.parse)(r.svg).querySelector(`svg`);if(!a)return console.error(`This is not an svg. Ignoring: `+r.svg);let o=a.attributes,s=rf(o.style),c=nf(o,s,`width`,``),l=nf(o,s,`height`,``),u=n.width===void 0?parseFloat(c):n.width,d=n.height===void 0?parseFloat(l):n.height;o.viewBox||a.setAttribute(`viewBox`,`0 0 ${c||u} ${l||d}`),(n.width||n.height)&&(u!==void 0&&(s.width=u+(isNaN(u)?``:`px`)),d!==void 0&&(s.height=d+(isNaN(d)?``:`px`)),a.setAttribute(`style`,Object.entries(s).map(([e,t])=>`${e}:${t};`).join(``)));let f=[1,0,0,1,n.x||0,n.y||0],p=hf(a.outerHTML,n,i,f),m=tf(e,Object.assign(Object.assign({},n),{images:r.images}));p.forEach(e=>{var t;(t=m[e.tagName])==null||t.call(m,e)})},_f=({topLeft:e,topRight:t,bottomRight:n,bottomLeft:r})=>[Ou(e.x,e.y),ku(t.x,t.y),ku(n.x,n.y),ku(r.x,r.y),Du(),ru(),Lu()],vf=e=>e.flatMap(_f),yf=(e,t)=>[Su(),t.graphicsState&&xu(t.graphicsState),Vu(),Sd(t.color),Uu(t.font,t.size),t.characterSpacing!==void 0&&Wu(t.characterSpacing),t.strokeWidth&&wu(t.strokeWidth),t.strokeColor&&Cd(t.strokeColor),t.renderMode&&Xu(t.renderMode),Qu(Ql(t.rotate),Ql(t.xSkew),Ql(t.ySkew),t.x,t.y),Bu(e),Hu(),Cu()].filter(Boolean),bf=(e,t)=>{let n=[Su(),t.graphicsState&&xu(t.graphicsState),...t.clipSpaces?vf(t.clipSpaces):[],t.matrix&&cu(...t.matrix),Vu(),Sd(t.color),Uu(t.font,t.size),qu(t.lineHeight),t.characterSpacing!==void 0&&Wu(t.characterSpacing),t.strokeWidth&&wu(t.strokeWidth),t.strokeColor&&Cd(t.strokeColor),t.renderMode&&Xu(t.renderMode),Qu(Ql(t.rotate),Ql(t.xSkew),Ql(t.ySkew),t.x,t.y)].filter(Boolean);for(let t=0,r=e.length;t<r;t++)n.push(Bu(e[t]),Ru());return n.push(Hu(),Cu()),n},xf=(e,t)=>[Su(),t.graphicsState&&xu(t.graphicsState),...t.clipSpaces?vf(t.clipSpaces):[],t.matrix&&cu(...t.matrix),lu(t.x,t.y),du(Ql(t.rotate)),uu(t.width,t.height),pu(Ql(t.xSkew),Ql(t.ySkew)),ed(e),Cu()].filter(Boolean),Sf=(e,t)=>[Su(),t.graphicsState&&xu(t.graphicsState),lu(t.x,t.y),du(Ql(t.rotate)),uu(t.xScale,t.yScale),pu(Ql(t.xSkew),Ql(t.ySkew)),ed(e),Cu()].filter(Boolean),Cf=e=>[Su(),e.graphicsState&&xu(e.graphicsState),...e.clipSpaces?vf(e.clipSpaces):[],e.matrix&&cu(...e.matrix),e.color&&Cd(e.color),wu(e.thickness),hu(e.dashArray??[],e.dashPhase??0),Ou(e.start.x,e.start.y),e.lineCap&&vu(e.lineCap),Ou(e.start.x,e.start.y),ku(e.end.x,e.end.y),Mu(),Cu()].filter(Boolean),wf=4*((Math.sqrt(2)-1)/3),Tf=e=>{let{width:t,height:n,xSkew:r,ySkew:i,rotate:a,matrix:o}=e,s=typeof t==`number`?t:t.asNumber(),c=typeof n==`number`?n:n.asNumber(),l=typeof e.x==`number`?e.x:e.x.asNumber(),u=typeof e.y==`number`?e.y:e.y.asNumber(),d=Math.max(0,Math.min(e.rx||0,s/2)),f=Math.max(0,Math.min(e.ry||0,c/2)),p=d>0||f>0?[`M ${d},0`,`H ${s-d}`,`C ${s-d*(1-wf)},0 ${s},${f*(1-wf)} ${s},${f}`,`V ${c-f}`,`C ${s},${c-f*(1-wf)} ${s-d*(1-wf)},${c} ${s-d},${c}`,`H ${d}`,`C ${d*(1-wf)},${c} 0,${c-f*(1-wf)} 0,${c-f}`,`V ${f}`,`C 0,${f*(1-wf)} ${d*(1-wf)},0 ${d},0`,`Z`].join(` `):`M 0,0 H ${s} V ${c} H 0 Z`,m=Jd(o||qd,Xd(`translate`,[l,-u]));return a&&(m=Jd(m,Xd(`rotate`,[-$l(a)]))),r&&(m=Jd(m,Xd(`skewX`,[$l(r)]))),i&&(m=Jd(m,Xd(`skewY`,[-$l(i)]))),m=Jd(m,Xd(`translateY`,[-c])),Df(p,Object.assign(Object.assign({},e),{x:0,y:0,rotate:Yl(0),scale:1,matrix:m}))},Ef=e=>{let t=Kl(e.xScale),n=Kl(e.yScale),r=Kl(e.x),i=Kl(e.y),a=4*((Math.sqrt(2)-1)/3),o=t*a,s=n*a,c=[`M 0,${n}`,`C ${o},${n} ${t},${s} ${t},0`,`C ${t},${-s} ${o},${-n} 0,${-n}`,`C ${-o},${-n} ${-t},${-s} ${-t},0`,`C ${-t},${s} ${-o},${n} 0,${n}`,`Z`].join(` `),l=Jd(e.matrix||qd,Xd(`translate`,[r,-i]));return e.rotate&&(l=Jd(l,Xd(`rotate`,[-$l(e.rotate)]))),Df(c,Object.assign(Object.assign({},e),{x:0,y:0,rotate:Yl(0),scale:1,matrix:l}))},Df=(e,t)=>{let n=If(t);return n?[Su(),t.graphicsState&&xu(t.graphicsState),...t.clipSpaces?vf(t.clipSpaces):[],t.matrix&&cu(...t.matrix),lu(t.x,t.y),du(Ql(t.rotate??Yl(0))),t.scale?uu(t.scale,-t.scale):uu(1,-1),t.color&&Sd(t.color),t.borderColor&&Cd(t.borderColor),t.borderWidth&&wu(t.borderWidth),t.borderLineCap&&vu(t.borderLineCap),hu(t.borderDashArray??[],t.borderDashPhase??0),...zd(e),n(),Cu()].filter(Boolean):[]},Of=e=>{let t=Kl(e.size);return[Su(),e.color&&Cd(e.color),wu(e.thickness),lu(e.x,e.y),Ou(-.675*t,-.07601036269430045*t),ku(-.25*t,-.49*t),ku(.69*t,.475*t),Mu(),Cu()].filter(Boolean)},kf=e=>e.rotation===0?[lu(0,0),fu(0)]:e.rotation===90?[lu(e.width,0),fu(90)]:e.rotation===180?[lu(e.width,e.height),fu(180)]:e.rotation===270?[lu(0,e.height),fu(270)]:[],Af=e=>{let t=Tf({x:e.x,y:e.y,width:e.width,height:e.height,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)});if(!e.filled)return t;let n=Kl(e.width),r=Kl(e.height),i=Math.min(n,r)/2,a=Of({x:n/2,y:r/2,size:i,thickness:e.thickness,color:e.markColor});return[Su(),...t,...a,Cu()]},jf=e=>{let t=Kl(e.width),n=Kl(e.height),r=Math.min(t,n)/2,i=Ef({x:e.x,y:e.y,xScale:r,yScale:r,color:e.color,borderColor:e.borderColor,borderWidth:e.borderWidth});if(!e.filled)return i;let a=Ef({x:e.x,y:e.y,xScale:r*.45,yScale:r*.45,color:e.dotColor,borderColor:void 0,borderWidth:0});return[Su(),...i,...a,Cu()]},Mf=e=>{let t=Kl(e.x),n=Kl(e.y),r=Kl(e.width),i=Kl(e.height),a=Tf({x:t,y:n,width:r,height:i,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)}),o=Nf(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)});return[Su(),...a,...o,Cu()]},Nf=(e,t)=>{let n=[Vu(),Sd(t.color),Uu(t.font,t.size)];for(let r=0,i=e.length;r<i;r++){let{encoded:i,x:a,y:o}=e[r];n.push(Qu(Ql(t.rotate),Ql(t.xSkew),Ql(t.ySkew),a,o),Bu(i))}return n.push(Hu()),n},Pf=e=>{let t=Kl(e.x),n=Kl(e.y),r=Kl(e.width),i=Kl(e.height),a=Kl(e.borderWidth),o=Kl(e.padding),s=t+a/2+o,c=n+a/2+o,l=r-(a/2+o)*2,u=i-(a/2+o)*2,d=[Ou(s,c),ku(s,c+u),ku(s+l,c+u),ku(s+l,c),Du(),ru(),Lu()],f=Tf({x:t,y:n,width:r,height:i,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)}),p=Nf(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)}),m=[sd(`Tx`),Su(),...p,Cu(),cd()];return[Su(),...f,...d,...m,Cu()]},Ff=e=>{let t=Kl(e.x),n=Kl(e.y),r=Kl(e.width),i=Kl(e.height),a=Kl(e.lineHeight),o=Kl(e.borderWidth),s=Kl(e.padding),c=t+o/2+s,l=n+o/2+s,u=r-(o/2+s)*2,d=i-(o/2+s)*2,f=[Ou(c,l),ku(c,l+d),ku(c+u,l+d),ku(c+u,l),Du(),ru(),Lu()],p=Tf({x:t,y:n,width:r,height:i,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)}),m=[];for(let t=0,n=e.selectedLines.length;t<n;t++){let n=e.textLines[e.selectedLines[t]];m.push(...Tf({x:n.x-s,y:n.y-(a-n.height)/2,width:r-o,height:n.height+(a-n.height)/2,borderWidth:0,color:e.selectedColor,borderColor:void 0,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)}))}let h=Nf(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Yl(0),xSkew:Yl(0),ySkew:Yl(0)}),g=[sd(`Tx`),Su(),...h,Cu(),cd()];return[Su(),...p,...m,...f,...g,Cu()]},If=({color:e,borderWidth:t,borderColor:n,fillRule:r})=>{if(e&&n&&t!==0)return Iu;if(e)return r===Nu.EvenOdd?Fu:Pu;if(n&&t!==0)return Mu};var Lf=class 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.")}},Rf=class 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.")}},zf=class 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.")}},Bf=class extends Error{constructor(){super("PDFDocument has no pages so `PDFDocument.removePage` cannot be called")}},Vf=class extends Error{constructor(e){let t=`PDFDocument has no form field with the name "${e}"`;super(t)}},Hf=class extends Error{constructor(e,t,n){let r=`Expected field "${e}" to be of type ${t?.name}, but it is actually of type ${n?.constructor?.name??n}`;super(r)}},Uf=class extends Error{constructor(e){let t=`Failed to select check box due to missing onValue: "${e}"`;super(t)}},Wf=class extends Error{constructor(e){let t=`A field already exists with the specified name: "${e}"`;super(t)}},Gf=class extends Error{constructor(e){let t=`Field name contains invalid component: "${e}"`;super(t)}},Kf=class extends Error{constructor(e){let t=`A non-terminal field already exists with the specified name: "${e}"`;super(t)}},qf=class extends Error{constructor(e){let t=`Reading rich text fields is not supported: Attempted to read rich text field: ${e}`;super(t)}},Jf=class extends Error{constructor(e,t){let n=`Failed to layout combed text as lineLength=${e} is greater than cellCount=${t}`;super(n)}},Yf=class extends Error{constructor(e,t,n){let r=`Attempted to set text with length=${e} for TextField with maxLength=${t} and name=${n}`;super(r)}},Xf=class extends Error{constructor(e,t,n){let r=`Attempted to set maxLength=${t}, which is less than ${e}, the length of this field's current value (name=${n})`;super(r)}},Zf;(function(e){e[e.Left=0]=`Left`,e[e.Center=1]=`Center`,e[e.Right=2]=`Right`})(Zf||={});const Qf=(e,t,n,r=!1)=>{let i=4;for(;i<500;){let a=0;for(let r=0,o=e.length;r<o;r++){a+=1;let o=e[r].split(` `),s=n.width;for(let e=0,r=o.length;e<r;e++){let c=e===r-1?o[e]:o[e]+` `,l=t.widthOfTextAtSize(c,i);s-=l,s<=0&&(a+=1,s=n.width-l)}}if(!r&&a>e.length)return i-1;let o=t.heightAtSize(i);if((o+o*.2)*a>Math.abs(n.height))return i-1;i+=1}return i},$f=(e,t,n,r)=>{let i=n.width/r,a=n.height,o=4,s=E(e);for(;o<500;){for(let e=0,n=s.length;e<n;e++){let n=s[e];if(t.widthOfTextAtSize(n,o)>i*.75)return o-1}if(t.heightAtSize(o,{descender:!1})>a)return o-1;o+=1}return o},ep=e=>{for(let t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},tp=(e,t,n,r)=>{let i=e.length;for(;i>0;){let a=e.substring(0,i),o=n.encodeText(a),s=n.widthOfTextAtSize(a,r);if(s<t)return{line:a,encoded:o,width:s,remainder:e.substring(i)||void 0};i=ep(a)??0}return{line:e,encoded:n.encodeText(e),width:n.widthOfTextAtSize(e,r),remainder:void 0}},np=(e,{alignment:t,fontSize:n,font:r,bounds:i})=>{let a=C(y(e));(n===void 0||n===0)&&(n=Qf(a,r,i,!0));let o=r.heightAtSize(n),s=o+o*.2,c=[],l=i.x,u=i.y,d=i.x+i.width,f=i.y+i.height,p=i.y+i.height;for(let e=0,m=a.length;e<m;e++){let m=a[e];for(;m!==void 0;){let{line:e,encoded:a,width:h,remainder:g}=tp(m,i.width,r,n),_=t===Zf.Left?i.x:t===Zf.Center?i.x+i.width/2-h/2:t===Zf.Right?i.x+i.width-h:i.x;p-=s,_<l&&(l=_),p<u&&(u=p),_+h>d&&(d=_+h),p+o>f&&(f=p+o),c.push({text:e,encoded:a,width:h,height:o,x:_,y:p}),m=g?.trim()}}return{fontSize:n,lineHeight:s,lines:c,bounds:{x:l,y:u,width:d-l,height:f-u}}},rp=(e,{fontSize:t,font:n,bounds:r,cellCount:i})=>{let a=w(y(e));if(a.length>i)throw new Jf(a.length,i);(t===void 0||t===0)&&(t=$f(a,n,r,i));let o=r.width/i,s=n.heightAtSize(t,{descender:!1}),c=r.y+(r.height/2-s/2),l=[],u=r.x,d=r.y,f=r.x+r.width,p=r.y+r.height,m=0,h=0;for(;m<i;){let[e,i]=T(a,h),g=n.encodeText(e),_=n.widthOfTextAtSize(e,t),v=r.x+(o*m+o/2)-_/2;v<u&&(u=v),c<d&&(d=c),v+_>f&&(f=v+_),c+s>p&&(p=c+s),l.push({text:a,encoded:g,width:_,height:s,x:v,y:c}),m+=1,h+=i}return{fontSize:t,cells:l,bounds:{x:u,y:d,width:f-u,height:p-d}}},ip=(e,{alignment:t,fontSize:n,font:r,bounds:i})=>{let a=w(y(e));(n===void 0||n===0)&&(n=Qf([a],r,i));let o=r.encodeText(a),s=r.widthOfTextAtSize(a,n),c=r.heightAtSize(n,{descender:!1}),l=t===Zf.Left?i.x:t===Zf.Center?i.x+i.width/2-s/2:t===Zf.Right?i.x+i.width-s:i.x,u=i.y+(i.height/2-c/2);return{fontSize:n,line:{text:a,encoded:o,width:s,height:c,x:l,y:u},bounds:{x:l,y:u,width:s,height:c}}},ap=e=>`normal`in e?e:{normal:e},op=/\/([^\0\t\n\f\r ]+)[\0\t\n\f\r ]+(\d*\.\d+|\d+)[\0\t\n\f\r ]+Tf/,sp=e=>{let t=e.getDefaultAppearance()??``,n=A(t,op).match??[],r=Number(n[2]);return isFinite(r)?r:void 0},cp=/(\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)/,lp=e=>{let t=e.getDefaultAppearance()??``,[,n,r,i,a,o]=A(t,cp).match??[];if(o===`g`&&n)return vd(Number(n));if(o===`rg`&&n&&r&&i)return yd(Number(n),Number(r),Number(i));if(o===`k`&&n&&r&&i&&a)return bd(Number(n),Number(r),Number(i),Number(a))},up=(e,t,n,r=0)=>{let i=[Sd(t).toString(),Uu(n?.name??`dummy__noop`,r).toString()].join(`
36
36
  `);e.setDefaultAppearance(i)},dp=(e,t)=>{let n=lp(t),r=lp(e.acroField),i=t.getRectangle(),a=t.getAppearanceCharacteristics(),o=t.getBorderStyle()?.getWidth()??0,s=eu(a?.getRotation()),{width:c,height:l}=tu(i,s),u=kf(Object.assign(Object.assign({},i),{rotation:s})),d=yd(0,0,0),f=wd(a?.getBorderColor())??d,p=wd(a?.getBackgroundColor()),m=wd(a?.getBackgroundColor(),.8),h=n??r??d;up(n?t:e.acroField,h);let g={x:0+o/2,y:0+o/2,width:c-o,height:l-o,thickness:1.5,borderWidth:o,borderColor:f,markColor:h};return{normal:{on:[...u,...Af(Object.assign(Object.assign({},g),{color:p,filled:!0}))],off:[...u,...Af(Object.assign(Object.assign({},g),{color:p,filled:!1}))]},down:{on:[...u,...Af(Object.assign(Object.assign({},g),{color:m,filled:!0}))],off:[...u,...Af(Object.assign(Object.assign({},g),{color:m,filled:!1}))]}}},fp=(e,t)=>{let n=lp(t),r=lp(e.acroField),i=t.getRectangle(),a=t.getAppearanceCharacteristics(),o=t.getBorderStyle()?.getWidth()??0,s=eu(a?.getRotation()),{width:c,height:l}=tu(i,s),u=kf(Object.assign(Object.assign({},i),{rotation:s})),d=yd(0,0,0),f=wd(a?.getBorderColor())??d,p=wd(a?.getBackgroundColor()),m=wd(a?.getBackgroundColor(),.8),h=n??r??d;up(n?t:e.acroField,h);let g={x:c/2,y:l/2,width:c-o,height:l-o,borderWidth:o,borderColor:f,dotColor:h};return{normal:{on:[...u,...jf(Object.assign(Object.assign({},g),{color:p,filled:!0}))],off:[...u,...jf(Object.assign(Object.assign({},g),{color:p,filled:!1}))]},down:{on:[...u,...jf(Object.assign(Object.assign({},g),{color:m,filled:!0}))],off:[...u,...jf(Object.assign(Object.assign({},g),{color:m,filled:!1}))]}}},pp=(e,t,n)=>{let r=lp(t),i=lp(e.acroField),a=sp(t),o=sp(e.acroField),s=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),u=c?.getCaptions(),d=u?.normal??``,f=u?.down??d??``,p=l?.getWidth()??0,m=eu(c?.getRotation()),{width:h,height:g}=tu(s,m),_=kf(Object.assign(Object.assign({},s),{rotation:m})),v=yd(0,0,0),y=wd(c?.getBorderColor()),b=wd(c?.getBackgroundColor()),x=wd(c?.getBackgroundColor(),.8),S={x:p,y:p,width:h-p*2,height:g-p*2},C=ip(d,{alignment:Zf.Center,fontSize:a??o,font:n,bounds:S}),w=ip(f,{alignment:Zf.Center,fontSize:a??o,font:n,bounds:S}),T=Math.min(C.fontSize,w.fontSize),E=r??i??v;up(r||a!==void 0?t:e.acroField,E,n,T);let D={x:0+p/2,y:0+p/2,width:h-p,height:g-p,borderWidth:p,borderColor:y,textColor:E,font:n.name,fontSize:T};return{normal:[..._,...Mf(Object.assign(Object.assign({},D),{color:b,textLines:[C.line]}))],down:[..._,...Mf(Object.assign(Object.assign({},D),{color:x,textLines:[w.line]}))]}},mp=(e,t,n)=>{let r=lp(t),i=lp(e.acroField),a=sp(t),o=sp(e.acroField),s=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),u=e.getText()??``,d=l?.getWidth()??0,f=eu(c?.getRotation()),{width:p,height:m}=tu(s,f),h=kf(Object.assign(Object.assign({},s),{rotation:f})),g=yd(0,0,0),_=wd(c?.getBorderColor()),v=wd(c?.getBackgroundColor()),y,b,x=+!e.isCombed(),S={x:d+x,y:d+x,width:p-(d+x)*2,height:m-(d+x)*2};if(e.isMultiline()){let t=np(u,{alignment:e.getAlignment(),fontSize:a??o,font:n,bounds:S});y=t.lines,b=t.fontSize}else if(e.isCombed()){let t=rp(u,{fontSize:a??o,font:n,bounds:S,cellCount:e.getMaxLength()??0});y=t.cells,b=t.fontSize}else{let t=ip(u,{alignment:e.getAlignment(),fontSize:a??o,font:n,bounds:S});y=[t.line],b=t.fontSize}let C=r??i??g;up(r||a!==void 0?t:e.acroField,C,n,b);let w={x:0+d/2,y:0+d/2,width:p-d,height:m-d,borderWidth:d??0,borderColor:_,textColor:C,font:n.name,fontSize:b,color:v,textLines:y,padding:x};return[...h,...Pf(w)]},hp=(e,t,n)=>{let r=lp(t),i=lp(e.acroField),a=sp(t),o=sp(e.acroField),s=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle(),u=e.getSelected()[0]??``,d=l?.getWidth()??0,f=eu(c?.getRotation()),{width:p,height:m}=tu(s,f),h=kf(Object.assign(Object.assign({},s),{rotation:f})),g=yd(0,0,0),_=wd(c?.getBorderColor()),v=wd(c?.getBackgroundColor()),y={x:d+1,y:d+1,width:p-(d+1)*2,height:m-(d+1)*2},{line:b,fontSize:x}=ip(u,{alignment:Zf.Left,fontSize:a??o,font:n,bounds:y}),S=r??i??g;up(r||a!==void 0?t:e.acroField,S,n,x);let C={x:0+d/2,y:0+d/2,width:p-d,height:m-d,borderWidth:d??0,borderColor:_,textColor:S,font:n.name,fontSize:x,color:v,textLines:[b],padding:1};return[...h,...Pf(C)]},gp=(e,t,n)=>{let r=lp(t),i=lp(e.acroField),a=sp(t),o=sp(e.acroField),s=t.getRectangle(),c=t.getAppearanceCharacteristics(),l=t.getBorderStyle()?.getWidth()??0,u=eu(c?.getRotation()),{width:d,height:f}=tu(s,u),p=kf(Object.assign(Object.assign({},s),{rotation:u})),m=yd(0,0,0),h=wd(c?.getBorderColor()),g=wd(c?.getBackgroundColor()),_=e.getOptions(),v=e.getSelected();e.isSorted()&&_.sort();let y=``;for(let e=0,t=_.length;e<t;e++)y+=_[e],e<t-1&&(y+=`