db-studio 2.2.0 → 2.2.1

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 (147) hide show
  1. package/dist/index.js +3 -3
  2. package/dist/index.js.map +1 -1
  3. package/dist/web-dist/assets/{_pathlessLayout-DSqP7uLw.js → _pathlessLayout-1KXlcJn5.js} +1 -1
  4. package/dist/web-dist/assets/{_pathlessLayout-sBYxFR0u.js → _pathlessLayout-D4dS7_ZZ.js} +2 -2
  5. package/dist/web-dist/assets/{_queryId-D-e6Pm3D.js → _queryId-DfjPCkx7.js} +1 -1
  6. package/dist/web-dist/assets/{_table-ziU6yws2.js → _table-ChX0JQnV.js} +1 -1
  7. package/dist/web-dist/assets/{_table-CuzwG7mZ.js → _table-DQvTfc38.js} +1 -1
  8. package/dist/web-dist/assets/{_table-CUkeoJ5r.js → _table-M7xRcFSl.js} +1 -1
  9. package/dist/web-dist/assets/{abap-CNHfI6UP.js → abap-DYZIj1QT.js} +1 -1
  10. package/dist/web-dist/assets/{apex-DTJWTIPK.js → apex-CaiB2cHW.js} +1 -1
  11. package/dist/web-dist/assets/{azcli-Degrf7_O.js → azcli-BSMSllBA.js} +1 -1
  12. package/dist/web-dist/assets/{badge-BfsYSaL9.js → badge-DAJ-55CZ.js} +1 -1
  13. package/dist/web-dist/assets/{bat-og3u3-iX.js → bat-DslF3aSP.js} +1 -1
  14. package/dist/web-dist/assets/{bicep-DWKWUTZk.js → bicep-BaONjKcy.js} +1 -1
  15. package/dist/web-dist/assets/{browser-ZSYFt_6v.js → browser-BXjW1U6_.js} +1 -1
  16. package/dist/web-dist/assets/{bundle-mjs-DBtz6MiX.js → bundle-mjs-DGKUXiQC.js} +1 -1
  17. package/dist/web-dist/assets/{cameligo-wkA_VlQe.js → cameligo-B-VCpHXR.js} +1 -1
  18. package/dist/web-dist/assets/{chat-sidebar-BzjjNUcW.js → chat-sidebar-DhhMmf_h.js} +4 -4
  19. package/dist/web-dist/assets/{clojure-DOzhadKJ.js → clojure-CQdNGvuT.js} +1 -1
  20. package/dist/web-dist/assets/{code-editor-BMXfdFhg.js → code-editor-B9_5weuZ.js} +1 -1
  21. package/dist/web-dist/assets/{coffee-CS5CzV5M.js → coffee-GJxdv8v9.js} +1 -1
  22. package/dist/web-dist/assets/{connect-DGQjyh4c.js → connect-CCHOGwiQ.js} +1 -1
  23. package/dist/web-dist/assets/{constants-iNJwkB3Z.js → constants-CJqw7w68.js} +3 -3
  24. package/dist/web-dist/assets/{cpp-BMgiE7AJ.js → cpp-bdOuYgjm.js} +1 -1
  25. package/dist/web-dist/assets/{csharp-Bsvbb6s9.js → csharp-DtT4S3qG.js} +1 -1
  26. package/dist/web-dist/assets/{csp-BrZ2q231.js → csp-DcT8MidV.js} +1 -1
  27. package/dist/web-dist/assets/{css-Uqgocp1T.js → css-aK0ks7hY.js} +1 -1
  28. package/dist/web-dist/assets/{cssMode-BoXwzMyE.js → cssMode-5aGt4Xk4.js} +1 -1
  29. package/dist/web-dist/assets/{cypher-BtFHfHba.js → cypher-gkqrqdhb.js} +1 -1
  30. package/dist/web-dist/assets/{dart-C5lyYd0g.js → dart-D55faCn9.js} +1 -1
  31. package/dist/web-dist/assets/{database.store-BbWvMDJ7.js → database.store-BOgNcBMG.js} +2 -2
  32. package/dist/web-dist/assets/{dist-BbZuOizk.js → dist-BA0_BdMR.js} +1 -1
  33. package/dist/web-dist/assets/{dist-CISR_13N.js → dist-DAuUtATJ.js} +1 -1
  34. package/dist/web-dist/assets/{dockerfile-BvQ8yybz.js → dockerfile-CsHs8WRI.js} +1 -1
  35. package/dist/web-dist/assets/{ecl-DkR5NtXz.js → ecl-CQKiIf56.js} +1 -1
  36. package/dist/web-dist/assets/{editor.api-BQRmhEY6.js → editor.api-BZk1XbZs.js} +1 -1
  37. package/dist/web-dist/assets/{elixir-DwgH4lv4.js → elixir-CfFxQLCK.js} +1 -1
  38. package/dist/web-dist/assets/{esm-DHn0u-mG.js → esm-BhcGPxbM.js} +1 -1
  39. package/dist/web-dist/assets/{esm-HKPuItQJ.js → esm-C1Qg-CCP.js} +1 -1
  40. package/dist/web-dist/assets/{flow9-DdhMBw5Q.js → flow9-CLkaJU-U.js} +1 -1
  41. package/dist/web-dist/assets/{format-cell-value-CUgsp8Xn.js → format-cell-value-BcH_SExw.js} +1 -1
  42. package/dist/web-dist/assets/{freemarker2-g_nJsTeC.js → freemarker2-Dbf5KAvd.js} +1 -1
  43. package/dist/web-dist/assets/{fsharp-D3Xp09Vk.js → fsharp-4RCsDl1X.js} +1 -1
  44. package/dist/web-dist/assets/{go-DiDKwy3n.js → go-BCuLk40y.js} +1 -1
  45. package/dist/web-dist/assets/{graphql-BgFph-jF.js → graphql-Cuc1fjZl.js} +1 -1
  46. package/dist/web-dist/assets/{handlebars-RA6uoaMW.js → handlebars-Bc8nHcpq.js} +1 -1
  47. package/dist/web-dist/assets/{hcl-D4fzt9AB.js → hcl-BqquCvZs.js} +1 -1
  48. package/dist/web-dist/assets/{highlighted-body-JLMTFACH-D8jkzP7m.js → highlighted-body-JLMTFACH-Q1Yc-gaw.js} +1 -1
  49. package/dist/web-dist/assets/{html-DchTZAEc.js → html-ZcQmh2HM.js} +1 -1
  50. package/dist/web-dist/assets/{htmlMode-BcLYF6v1.js → htmlMode-BkwHscgL.js} +1 -1
  51. package/dist/web-dist/assets/{icons-DKLzom80.js → icons-IBpZgbE4.js} +1 -1
  52. package/dist/web-dist/assets/{index-L3nylpEA.js → index-DfnmlclA.js} +4 -4
  53. package/dist/web-dist/assets/{indexes-B3M1QTrn.js → indexes-DUzB2YOr.js} +1 -1
  54. package/dist/web-dist/assets/{ini-CjG9jGLJ.js → ini-DK3PnweE.js} +1 -1
  55. package/dist/web-dist/assets/{java-DitR3Nwd.js → java-CCKilWzS.js} +1 -1
  56. package/dist/web-dist/assets/{javascript-l9pEcFVL.js → javascript-Cy_Mv9Jz.js} +1 -1
  57. package/dist/web-dist/assets/{json-editor-CeBQ9FBf.js → json-editor-CE8bI5n-.js} +1 -1
  58. package/dist/web-dist/assets/{jsonMode-D4edoDNQ.js → jsonMode-wvGZQK-h.js} +1 -1
  59. package/dist/web-dist/assets/{julia-_g8mQYsr.js → julia-yMXHdeoG.js} +1 -1
  60. package/dist/web-dist/assets/{keys-DhNPoWOm.js → keys-B1bnQf8h.js} +1 -1
  61. package/dist/web-dist/assets/{kotlin-3o4lP58u.js → kotlin-BbY6gpqm.js} +1 -1
  62. package/dist/web-dist/assets/{label-CavJMZd3.js → label-B5lrF5vb.js} +1 -1
  63. package/dist/web-dist/assets/{less-CdRSAxY_.js → less-rp9k6ONg.js} +1 -1
  64. package/dist/web-dist/assets/{lexon-B1v3Gspe.js → lexon-rRyNfudJ.js} +1 -1
  65. package/dist/web-dist/assets/{liquid-3wMbC9OJ.js → liquid-TDvflZF7.js} +1 -1
  66. package/dist/web-dist/assets/{logs-C22dj_JT.js → logs-C2iyjCnP.js} +1 -1
  67. package/dist/web-dist/assets/{lspLanguageFeatures-TaH7V4jh.js → lspLanguageFeatures-DkWvqpF_.js} +1 -1
  68. package/dist/web-dist/assets/{lua-D3D-_pEE.js → lua-DInTck7-.js} +1 -1
  69. package/dist/web-dist/assets/{m3-fsgnMtjU.js → m3-D1zMDYBU.js} +1 -1
  70. package/dist/web-dist/assets/{markdown-DTtmtPZi.js → markdown-DTHzen51.js} +1 -1
  71. package/dist/web-dist/assets/{mdx-B7jfJVLI.js → mdx-D9pd4Hjw.js} +1 -1
  72. package/dist/web-dist/assets/{mermaid-WFAXDIZX-qzZppTtW.js → mermaid-WFAXDIZX-B2YMTdfH.js} +1 -1
  73. package/dist/web-dist/assets/{middleware-DLeL20gb.js → middleware-gB5jp1rF.js} +1 -1
  74. package/dist/web-dist/assets/{mips-BA6kSOEZ.js → mips-7Slzy87X.js} +1 -1
  75. package/dist/web-dist/assets/{module-B7dXHbVt.js → module-BHjgyYxe.js} +1 -1
  76. package/dist/web-dist/assets/{monaco-theme-BwGcwpJl.js → monaco-theme-CFrVB-OG.js} +4 -4
  77. package/dist/web-dist/assets/{msdax-B96QDI_e.js → msdax-CVw_oFJe.js} +1 -1
  78. package/dist/web-dist/assets/{mysql-ZJG-Zmb7.js → mysql-92xfRPFN.js} +1 -1
  79. package/dist/web-dist/assets/{objective-c-D1BqZdFg.js → objective-c-BXnCggXS.js} +1 -1
  80. package/dist/web-dist/assets/{overlay.store-DoGHwFxO.js → overlay.store-wgNV6JkK.js} +1 -1
  81. package/dist/web-dist/assets/{pascal-CXwopv-V.js → pascal-3fByeJdZ.js} +1 -1
  82. package/dist/web-dist/assets/{pascaligo-DbxCO0kO.js → pascaligo-BdC4YsoB.js} +1 -1
  83. package/dist/web-dist/assets/{perl-DL95F-1i.js → perl-ClTLOqGp.js} +1 -1
  84. package/dist/web-dist/assets/{personal-preferences.store-BgUar1W1.js → personal-preferences.store-dG5rDcRw.js} +1 -1
  85. package/dist/web-dist/assets/{pgsql-D6V7y-We.js → pgsql-DEzB6Ucu.js} +1 -1
  86. package/dist/web-dist/assets/{php-Cl4Rc77T.js → php-DVFKZpKp.js} +1 -1
  87. package/dist/web-dist/assets/{pla-C2-KEJLZ.js → pla-0ER0Ntvs.js} +1 -1
  88. package/dist/web-dist/assets/{postiats-CnwS6VBM.js → postiats-CEuE_fTP.js} +1 -1
  89. package/dist/web-dist/assets/{powerquery-IxSHxxBc.js → powerquery-IX0j-GcX.js} +1 -1
  90. package/dist/web-dist/assets/{powershell-DAkyXnxj.js → powershell-PrZfSRSf.js} +1 -1
  91. package/dist/web-dist/assets/{preload-helper-BmptvQqE.js → preload-helper-Bpqt02Xx.js} +1 -1
  92. package/dist/web-dist/assets/{protobuf-FnPVBP5H.js → protobuf-CCWom7A4.js} +1 -1
  93. package/dist/web-dist/assets/{pug-C_d8B8nZ.js → pug-B-mwU8C7.js} +1 -1
  94. package/dist/web-dist/assets/{python-DK9sRx0Y.js → python-B-RGw6sh.js} +1 -1
  95. package/dist/web-dist/assets/{qsharp-DHzbHTnS.js → qsharp-zXtiGbGZ.js} +1 -1
  96. package/dist/web-dist/assets/{queries.store-CXQwDZiV.js → queries.store-CL_QZ9kV.js} +1 -1
  97. package/dist/web-dist/assets/{query-runner-D0LqVvy4.js → query-runner-__vttAd8.js} +3 -3
  98. package/dist/web-dist/assets/{r-BreUQjgc.js → r-ff7AzNUE.js} +1 -1
  99. package/dist/web-dist/assets/{radix-ui-CJhaEsHV.js → radix-ui-BLYTVDm9.js} +1 -1
  100. package/dist/web-dist/assets/{razor-CI-yLdex.js → razor-f0SZhWBH.js} +1 -1
  101. package/dist/web-dist/assets/{react-CGNcTA1t.js → react-Cuc8VqJk.js} +1 -1
  102. package/dist/web-dist/assets/{react-dom-Czf_u9MH.js → react-dom-Cx6AFOpM.js} +1 -1
  103. package/dist/web-dist/assets/{redis-BdhjrevD.js → redis-3WrJd2UX.js} +1 -1
  104. package/dist/web-dist/assets/{redis-value-Cq8YBvSS.js → redis-value-DvCMBdEM.js} +1 -1
  105. package/dist/web-dist/assets/{redshift-CwVMUyQc.js → redshift-BFFZqrqe.js} +1 -1
  106. package/dist/web-dist/assets/{restructuredtext-D6U9PIiF.js → restructuredtext-BRpKlTYP.js} +1 -1
  107. package/dist/web-dist/assets/{rolldown-runtime-D_n5YsVB.js → rolldown-runtime-v8MIZ6et.js} +1 -1
  108. package/dist/web-dist/assets/{ruby-D0QS81Wd.js → ruby-Dik41UlM.js} +1 -1
  109. package/dist/web-dist/assets/{runner-BE2YTdi9.js → runner-DIQss6Kz.js} +1 -1
  110. package/dist/web-dist/assets/{rust-Bsq9cLDY.js → rust-DADSh0Pc.js} +1 -1
  111. package/dist/web-dist/assets/{sb-DAQADLLd.js → sb-DuvpHrMN.js} +1 -1
  112. package/dist/web-dist/assets/{scala-oEMLo0pl.js → scala-CtuFqcla.js} +1 -1
  113. package/dist/web-dist/assets/{schema-JCqbh3DE.js → schema-BqwkN_6u.js} +1 -1
  114. package/dist/web-dist/assets/{schema-B-jmgfHC.js → schema-qGsKd6zv.js} +1 -1
  115. package/dist/web-dist/assets/{scheme-DDI6muad.js → scheme-hPwS1w0C.js} +1 -1
  116. package/dist/web-dist/assets/{scss-BU9Ttlwm.js → scss-477oFtwU.js} +1 -1
  117. package/dist/web-dist/assets/{select-3l4LDMzT.js → select-DDjmR6pO.js} +1 -1
  118. package/dist/web-dist/assets/{separator-BD46sVx9.js → separator-CGjaYtx-.js} +1 -1
  119. package/dist/web-dist/assets/{sheet-sidebar-CjbtFAKn.js → sheet-sidebar-Cde4bLIJ.js} +1 -1
  120. package/dist/web-dist/assets/{shell-BI6rOefn.js → shell-n9PWT21s.js} +1 -1
  121. package/dist/web-dist/assets/{solidity-B17zzzu-.js → solidity-BUjaJYHp.js} +1 -1
  122. package/dist/web-dist/assets/{sophia-DQi6mooo.js → sophia-BCcvs9t1.js} +1 -1
  123. package/dist/web-dist/assets/{sparql-DGFBDMPi.js → sparql-BflQKwzI.js} +1 -1
  124. package/dist/web-dist/assets/{spinner-D7Cvt3BD.js → spinner-ioIImnLq.js} +1 -1
  125. package/dist/web-dist/assets/{sql-DGzRlxQo.js → sql-B-t7xHK1.js} +1 -1
  126. package/dist/web-dist/assets/{st-Ceq2dhS_.js → st-CSYG-jYM.js} +1 -1
  127. package/dist/web-dist/assets/{swift-8-FeeRSy.js → swift-CKmn3JdQ.js} +1 -1
  128. package/dist/web-dist/assets/{systemverilog-mmioB6wo.js → systemverilog-rn_hwEIB.js} +1 -1
  129. package/dist/web-dist/assets/{table-sVAmZLcg.js → table-BWy367NZ.js} +1 -1
  130. package/dist/web-dist/assets/{tables-TW8L7_FW.js → tables-geLC-tRf.js} +4 -4
  131. package/dist/web-dist/assets/{tanstack-D9GckDbx.js → tanstack-2cKzRGRb.js} +1 -1
  132. package/dist/web-dist/assets/{tcl-BTUJQo2X.js → tcl-Fn2CV_28.js} +1 -1
  133. package/dist/web-dist/assets/{tsMode-BRJ2WiSx.js → tsMode-C-8HcC0f.js} +1 -1
  134. package/dist/web-dist/assets/{twig-C6ea54bM.js → twig-CLjUHOwE.js} +1 -1
  135. package/dist/web-dist/assets/{typescript-U3aTTn2d.js → typescript-BubYBQa0.js} +1 -1
  136. package/dist/web-dist/assets/{typespec-B4z8l2XF.js → typespec-IO61FhU-.js} +1 -1
  137. package/dist/web-dist/assets/{use-database-engine-CG7rZQXQ.js → use-database-engine-C1fvJDyS.js} +1 -1
  138. package/dist/web-dist/assets/{use-theme-CKjVHAZg.js → use-theme-uud1RcFP.js} +1 -1
  139. package/dist/web-dist/assets/{utils-CZdosIsH.js → utils-D49oYrWW.js} +1 -1
  140. package/dist/web-dist/assets/{vb-BbQNgbjG.js → vb-Lm9DdJMK.js} +1 -1
  141. package/dist/web-dist/assets/{visualizer-c23lRr6o.js → visualizer-Bd-PB2Fm.js} +1 -1
  142. package/dist/web-dist/assets/{wgsl-SWAFFAY4.js → wgsl-CG8088eu.js} +1 -1
  143. package/dist/web-dist/assets/{workers-DeOJBffb.js → workers-H_G6sPzI.js} +1 -1
  144. package/dist/web-dist/assets/{xml-DM-qLhlQ.js → xml-Da0DCKCb.js} +1 -1
  145. package/dist/web-dist/assets/{yaml-BB3LUpV7.js → yaml-C-84Dbfu.js} +1 -1
  146. package/dist/web-dist/index.html +30 -30
  147. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-JLMTFACH-D8jkzP7m.js","assets/rolldown-runtime-D_n5YsVB.js","assets/icons-DKLzom80.js","assets/radix-ui-CJhaEsHV.js"])))=>i.map(i=>d[i]);
2
- import{n as Fi,r as En,t as Lr}from"./rolldown-runtime-D_n5YsVB.js";import{H as ih,U as ah,q as sh}from"./constants-iNJwkB3Z.js";import{a as lh,c as oh,n as Tn,o as ch,t as vl}from"./overlay.store-DoGHwFxO.js";import{C as uh,a as Il,d as hh,f as dh,l as wl,p as oi,u as Ll}from"./index-L3nylpEA.js";import{At as fh,D as ph,Lt as mh,Tt as gh,g as Eh,lt as Th,n as bh,z as kh,zt as xh}from"./icons-DKLzom80.js";import{t as Te}from"./utils-CZdosIsH.js";import{At as Ah,Ot as Ca,jt as _h,kt as yh,n as Ch,r as Sh,t as Nh}from"./radix-ui-CJhaEsHV.js";import{n as Rl,t as Ol}from"./bundle-mjs-DBtz6MiX.js";import{t as Dl}from"./preload-helper-BmptvQqE.js";import{c as vh,d as Ih,l as wh,t as Lh,u as Rh}from"./sheet-sidebar-CjbtFAKn.js";import{i as Oh,r as Dh}from"./separator-BD46sVx9.js";import{n as Pl}from"./_pathlessLayout-sBYxFR0u.js";import{t as Ph}from"./database.store-BbWvMDJ7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@2.2.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6021eafd-a843-4b49-b575-989fc6a0eb3c",e._sentryDebugIdIdentifier="sentry-dbid-6021eafd-a843-4b49-b575-989fc6a0eb3c")}catch{}})();var Mh=["Show me all tables in my database","What columns are in the users table?","Write a query to find all active users","How many orders were placed last month?","Find top 5 customers by total spend","Write a JOIN between users and orders","Users who haven't made any purchase yet","Generate monthly revenue summary query","Suggest useful indexes for better performance","Show schema of the products / inventory table","Latest 20 orders with customer names","Help me write a safe UPDATE query"],bn=(function(e){if(e==null)return Uh;if(typeof e=="function")return kn(e);if(typeof e=="object")return Array.isArray(e)?Bh(e):Fh(e);if(typeof e=="string")return Hh(e);throw new Error("Expected function, string, or object as test")});function Bh(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=bn(e[r]);return kn(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Fh(e){const t=e;return kn(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Hh(e){return kn(t);function t(r){return r&&r.type===e}}function kn(e){return t;function t(r,n,i){return!!(jh(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Uh(){return!0}function jh(e){return e!==null&&typeof e=="object"&&"type"in e}var Ml=[];var $t="skip";function xn(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=bn(i),s=n?-1:1;l(e,void 0,[])();function l(o,u,d){const h=o&&typeof o=="object"?o:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Ml,g,N,y;if((!t||a(o,u,d[d.length-1]||void 0))&&(f=zh(r(o,d)),f[0]===!1))return f;if("children"in o&&o.children){const A=o;if(A.children&&f[0]!=="skip")for(N=(n?A.children.length:-1)+s,y=d.concat(A);N>-1&&N<A.children.length;){const C=A.children[N];if(g=l(C,N,y)(),g[0]===!1)return g;N=typeof g[1]=="number"?g[1]:N+s}}return f}}}function zh(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Ml:[e]}function Ge(e,t,r,n){let i,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,i=r):(a=t,s=r,i=n),xn(e,a,l,i);function l(o,u){const d=u[u.length-1],h=d?d.children.indexOf(o):void 0;return s(o,h,d)}}var T=En(xh(),1),m=_h(),Gt={indicator:"indicator",textOnly:"text-only",remove:"remove"};function $h({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:l=Gt.indicator,imageBlockPolicy:o=Gt.indicator}){const u=t.length&&!t.every(h=>h==="*"),d=r.length&&!r.every(h=>h==="*");if(!e&&(u||d))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const p=Qh(e,t,r,n,i,a,s,l,o);Bl(h),Ge(h,p)}}function Sa(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function Yh(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}var qh=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Vh=new Set(["javascript:","data:","file:","vbscript:"]);function Na(e,t,r,n=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&n&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const o=e.substring(5);if(o&&o.length>0&&o!=="invalid")return e}}catch{return null}return null}const s=Sa(e,r);if(!s||Vh.has(s.protocol)||!(qh.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=Yh(e);return s&&t.some(o=>{const u=Sa(o,r);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}function Bl(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Bl(t)}}var Bn=Symbol("node-seen");function Wh(e,t,r){return t===Gt.remove?{type:"remove"}:t===Gt.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function Gh(e,t,r){if(t===Gt.remove)return{type:"remove"};if(t===Gt.textOnly){const n=String(e.properties.alt||"");return n?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:n}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var Qh=(e,t,r,n,i,a,s,l,o)=>{const u=(d,h,p)=>{if(d.type!=="element"||d[Bn])return!0;if(d.tagName==="a"){const f=Na(d.properties.href,t,e,!1,!1,i);if(f===null){if(d[Bn]=!0,Ge(d,u),p&&typeof h=="number"){const g=Wh(d,l,s);if(g.type==="remove")return p.children.splice(h,1),[$t,h];p.children[h]=g.element}return $t}else return d.properties.href=f,d.properties.target="_blank",d.properties.rel="noopener noreferrer",!0}if(d.tagName==="img"){const f=Na(d.properties.src,r,e,n,!0,i);if(f===null){if(d[Bn]=!0,Ge(d,u),p&&typeof h=="number"){const g=Gh(d,o,a);if(g.type==="remove")return p.children.splice(h,1),[$t,h];p.children[h]=g.element}return $t}else return d.properties.src=f,!0}return!0};return u},va=typeof self=="object"?self:globalThis,Kh=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case 0:case-1:return r(s,i);case 1:{const l=r([],i);for(const o of s)l.push(n(o));return l}case 2:{const l=r({},i);for(const[o,u]of s)l[n(o)]=n(u);return l}case 3:return r(new Date(s),i);case 4:{const{source:l,flags:o}=s;return r(new RegExp(l,o),i)}case 5:{const l=r(new Map,i);for(const[o,u]of s)l.set(n(o),n(u));return l}case 6:{const l=r(new Set,i);for(const o of s)l.add(n(o));return l}case 7:{const{name:l,message:o}=s;return r(new va[l](o),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return r(new DataView(l),s)}}return r(new va[a](s),i)};return n},Ia=e=>Kh(new Map,e)(0),Ut="",{toString:Xh}={},{keys:Zh}=Object,ur=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const r=Xh.call(e).slice(8,-1);switch(r){case"Array":return[1,Ut];case"Object":return[2,Ut];case"Date":return[3,Ut];case"RegExp":return[4,Ut];case"Map":return[5,Ut];case"Set":return[6,Ut];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},qr=([e,t])=>e===0&&(t==="function"||t==="symbol"),Jh=(e,t,r,n)=>{const i=(s,l)=>{const o=n.push(s)-1;return r.set(l,o),o},a=s=>{if(r.has(s))return r.get(s);let[l,o]=ur(s);switch(l){case 0:{let d=s;switch(o){case"bigint":l=8,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);d=null;break;case"undefined":return i([-1],s)}return i([l,d],s)}case 1:{if(o){let p=s;return o==="DataView"?p=new Uint8Array(s.buffer):o==="ArrayBuffer"&&(p=new Uint8Array(s)),i([o,[...p]],s)}const d=[],h=i([l,d],s);for(const p of s)d.push(a(p));return h}case 2:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],h=i([l,d],s);for(const p of Zh(s))(e||!qr(ur(s[p])))&&d.push([a(p),a(s[p])]);return h}case 3:return i([l,s.toISOString()],s);case 4:{const{source:d,flags:h}=s;return i([l,{source:d,flags:h}],s)}case 5:{const d=[],h=i([l,d],s);for(const[p,f]of s)(e||!(qr(ur(p))||qr(ur(f))))&&d.push([a(p),a(f)]);return h}case 6:{const d=[],h=i([l,d],s);for(const p of s)(e||!qr(ur(p)))&&d.push(a(p));return h}}const{message:u}=s;return i([l,{name:o,message:u}],s)};return a},wa=(e,{json:t,lossy:r}={})=>{const n=[];return Jh(!(t||r),!!t,new Map,n)(e),n},wt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ia(wa(e,t)):structuredClone(e):(e,t)=>Ia(wa(e,t));var Rr=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};Rr.prototype.normal={};Rr.prototype.property={};Rr.prototype.space=void 0;function Fl(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Rr(r,n,t)}function Nr(e){return e.toLowerCase()}var Be=class{constructor(e,t){this.attribute=t,this.property=e}};Be.prototype.attribute="";Be.prototype.booleanish=!1;Be.prototype.boolean=!1;Be.prototype.commaOrSpaceSeparated=!1;Be.prototype.commaSeparated=!1;Be.prototype.defined=!1;Be.prototype.mustUseProperty=!1;Be.prototype.number=!1;Be.prototype.overloadedBoolean=!1;Be.prototype.property="";Be.prototype.spaceSeparated=!1;Be.prototype.space=void 0;var ci=Fi({boolean:()=>ne,booleanish:()=>ke,commaOrSpaceSeparated:()=>ze,commaSeparated:()=>qt,number:()=>j,overloadedBoolean:()=>ui,spaceSeparated:()=>me}),ed=0,ne=Ot(),ke=Ot(),ui=Ot(),j=Ot(),me=Ot(),qt=Ot(),ze=Ot();function Ot(){return 2**++ed}var Fn=Object.keys(ci),Hi=class extends Be{constructor(e,t,r,n){let i=-1;if(super(e,t),La(this,"space",n),typeof r=="number")for(;++i<Fn.length;){const a=Fn[i];La(this,Fn[i],(r&ci[a])===ci[a])}}};Hi.prototype.defined=!0;function La(e,t,r){r&&(e[t]=r)}function Xt(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Hi(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Nr(n)]=n,r[Nr(a.attribute)]=n}return new Rr(t,r,e.space)}var Hl=Xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:me,ariaCurrent:null,ariaDescribedBy:me,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:me,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:me,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:me,ariaLevel:j,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:me,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:me,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:ke,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ul(e,t){return t in e?e[t]:t}function jl(e,t){return Ul(e,t.toLowerCase())}var td=Xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qt,acceptCharset:me,accessKey:me,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:me,autoFocus:ne,autoPlay:ne,blocking:me,capture:null,charSet:null,checked:ne,cite:null,className:me,cols:j,colSpan:null,content:null,contentEditable:ke,controls:ne,controlsList:me,coords:j|qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:ui,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:me,height:j,hidden:ui,high:j,href:null,hrefLang:null,htmlFor:me,httpEquiv:me,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:me,itemRef:me,itemScope:ne,itemType:me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:j,pattern:null,ping:me,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:me,required:ne,reversed:ne,rows:j,rowSpan:j,sandbox:me,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:ke,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:me,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:jl}),rd=Xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ze,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:me,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qt,g2:qt,glyphName:qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ze,rev:ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ze,requiredFeatures:ze,requiredFonts:ze,requiredFormats:ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ze,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ul}),zl=Xt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),$l=Xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jl}),Yl=Xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nd={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},id=/[A-Z]/g,Ra=/-[a-z]/g,ad=/^data[-\w.:]+$/i;function An(e,t){const r=Nr(t);let n=t,i=Be;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ad.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ra,ld);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ra.test(a)){let s=a.replace(id,sd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Hi}return new i(n,t)}function sd(e){return"-"+e.toLowerCase()}function ld(e){return e.charAt(1).toUpperCase()}var Or=Fl([Hl,td,zl,$l,Yl],"html"),xt=Fl([Hl,rd,zl,$l,Yl],"svg");function Oa(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&t.push(s),i=n+1,n=r.indexOf(",",i)}return t}function ql(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var Da=/[#.]/g;function od(e,t){const r=e||"",n={};let i=0,a,s;for(;i<r.length;){Da.lastIndex=i;const l=Da.exec(r),o=r.slice(i,l?l.index:r.length);o&&(a?a==="#"?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:s=o,i+=o.length),l&&(a=l[0],i++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function Pa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Vl(e){return e.join(" ").trim()}function Wl(e,t,r){const n=r?dd(r):void 0;function i(a,s,...l){let o;if(a==null){o={type:"root",children:[]};const u=s;l.unshift(u)}else{o=od(a,t);const u=o.tagName.toLowerCase(),d=n?n.get(u):void 0;if(o.tagName=d||u,cd(s))l.unshift(s);else for(const[h,p]of Object.entries(s))ud(e,o.properties,h,p)}for(const u of l)hi(o.children,u);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function cd(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ud(e,t,r,n){const i=An(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=Pa(n):i.commaSeparated?a=Oa(n):i.commaOrSpaceSeparated?a=Pa(Oa(n).join(" ")):a=Ma(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?hd(n):String(n);if(Array.isArray(a)){const s=[];for(const l of a)s.push(Ma(i,i.property,l));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function hi(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)hi(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?hi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ma(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Nr(r)===Nr(t)))return!0}return r}function hd(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function dd(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}var fd=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],pd=Wl(Or,"div"),md=Wl(xt,"g",fd);function gd(e){const t=String(e),r=[];return{toOffset:i,toPoint:n};function n(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let l=r[s];if(l===void 0){const o=Ba(t,r[s-1]);l=o===-1?t.length+1:o+1,r[s]=l}if(l>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const l=r[r.length-1],o=Ba(t,l),u=o===-1?t.length+1:o+1;if(l===u)break;r.push(u)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function Ba(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-JLMTFACH-Q1Yc-gaw.js","assets/rolldown-runtime-v8MIZ6et.js","assets/icons-IBpZgbE4.js","assets/radix-ui-BLYTVDm9.js"])))=>i.map(i=>d[i]);
2
+ import{n as Fi,r as En,t as Lr}from"./rolldown-runtime-v8MIZ6et.js";import{H as ih,U as ah,q as sh}from"./constants-CJqw7w68.js";import{a as lh,c as oh,n as Tn,o as ch,t as vl}from"./overlay.store-wgNV6JkK.js";import{C as uh,a as Il,d as hh,f as dh,l as wl,p as oi,u as Ll}from"./index-DfnmlclA.js";import{At as fh,D as ph,Lt as mh,Tt as gh,g as Eh,lt as Th,n as bh,z as kh,zt as xh}from"./icons-IBpZgbE4.js";import{t as Te}from"./utils-D49oYrWW.js";import{At as Ah,Ot as Ca,jt as _h,kt as yh,n as Ch,r as Sh,t as Nh}from"./radix-ui-BLYTVDm9.js";import{n as Rl,t as Ol}from"./bundle-mjs-DGKUXiQC.js";import{t as Dl}from"./preload-helper-Bpqt02Xx.js";import{c as vh,d as Ih,l as wh,t as Lh,u as Rh}from"./sheet-sidebar-Cde4bLIJ.js";import{i as Oh,r as Dh}from"./separator-CGjaYtx-.js";import{n as Pl}from"./_pathlessLayout-D4dS7_ZZ.js";import{t as Ph}from"./database.store-BOgNcBMG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"db-studio@2.2.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6021eafd-a843-4b49-b575-989fc6a0eb3c",e._sentryDebugIdIdentifier="sentry-dbid-6021eafd-a843-4b49-b575-989fc6a0eb3c")}catch{}})();var Mh=["Show me all tables in my database","What columns are in the users table?","Write a query to find all active users","How many orders were placed last month?","Find top 5 customers by total spend","Write a JOIN between users and orders","Users who haven't made any purchase yet","Generate monthly revenue summary query","Suggest useful indexes for better performance","Show schema of the products / inventory table","Latest 20 orders with customer names","Help me write a safe UPDATE query"],bn=(function(e){if(e==null)return Uh;if(typeof e=="function")return kn(e);if(typeof e=="object")return Array.isArray(e)?Bh(e):Fh(e);if(typeof e=="string")return Hh(e);throw new Error("Expected function, string, or object as test")});function Bh(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=bn(e[r]);return kn(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Fh(e){const t=e;return kn(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Hh(e){return kn(t);function t(r){return r&&r.type===e}}function kn(e){return t;function t(r,n,i){return!!(jh(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Uh(){return!0}function jh(e){return e!==null&&typeof e=="object"&&"type"in e}var Ml=[];var $t="skip";function xn(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=bn(i),s=n?-1:1;l(e,void 0,[])();function l(o,u,d){const h=o&&typeof o=="object"?o:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Ml,g,N,y;if((!t||a(o,u,d[d.length-1]||void 0))&&(f=zh(r(o,d)),f[0]===!1))return f;if("children"in o&&o.children){const A=o;if(A.children&&f[0]!=="skip")for(N=(n?A.children.length:-1)+s,y=d.concat(A);N>-1&&N<A.children.length;){const C=A.children[N];if(g=l(C,N,y)(),g[0]===!1)return g;N=typeof g[1]=="number"?g[1]:N+s}}return f}}}function zh(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Ml:[e]}function Ge(e,t,r,n){let i,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,i=r):(a=t,s=r,i=n),xn(e,a,l,i);function l(o,u){const d=u[u.length-1],h=d?d.children.indexOf(o):void 0;return s(o,h,d)}}var T=En(xh(),1),m=_h(),Gt={indicator:"indicator",textOnly:"text-only",remove:"remove"};function $h({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:l=Gt.indicator,imageBlockPolicy:o=Gt.indicator}){const u=t.length&&!t.every(h=>h==="*"),d=r.length&&!r.every(h=>h==="*");if(!e&&(u||d))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const p=Qh(e,t,r,n,i,a,s,l,o);Bl(h),Ge(h,p)}}function Sa(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function Yh(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}var qh=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Vh=new Set(["javascript:","data:","file:","vbscript:"]);function Na(e,t,r,n=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&n&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const o=e.substring(5);if(o&&o.length>0&&o!=="invalid")return e}}catch{return null}return null}const s=Sa(e,r);if(!s||Vh.has(s.protocol)||!(qh.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=Yh(e);return s&&t.some(o=>{const u=Sa(o,r);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}function Bl(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Bl(t)}}var Bn=Symbol("node-seen");function Wh(e,t,r){return t===Gt.remove?{type:"remove"}:t===Gt.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function Gh(e,t,r){if(t===Gt.remove)return{type:"remove"};if(t===Gt.textOnly){const n=String(e.properties.alt||"");return n?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:n}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var Qh=(e,t,r,n,i,a,s,l,o)=>{const u=(d,h,p)=>{if(d.type!=="element"||d[Bn])return!0;if(d.tagName==="a"){const f=Na(d.properties.href,t,e,!1,!1,i);if(f===null){if(d[Bn]=!0,Ge(d,u),p&&typeof h=="number"){const g=Wh(d,l,s);if(g.type==="remove")return p.children.splice(h,1),[$t,h];p.children[h]=g.element}return $t}else return d.properties.href=f,d.properties.target="_blank",d.properties.rel="noopener noreferrer",!0}if(d.tagName==="img"){const f=Na(d.properties.src,r,e,n,!0,i);if(f===null){if(d[Bn]=!0,Ge(d,u),p&&typeof h=="number"){const g=Gh(d,o,a);if(g.type==="remove")return p.children.splice(h,1),[$t,h];p.children[h]=g.element}return $t}else return d.properties.src=f,!0}return!0};return u},va=typeof self=="object"?self:globalThis,Kh=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case 0:case-1:return r(s,i);case 1:{const l=r([],i);for(const o of s)l.push(n(o));return l}case 2:{const l=r({},i);for(const[o,u]of s)l[n(o)]=n(u);return l}case 3:return r(new Date(s),i);case 4:{const{source:l,flags:o}=s;return r(new RegExp(l,o),i)}case 5:{const l=r(new Map,i);for(const[o,u]of s)l.set(n(o),n(u));return l}case 6:{const l=r(new Set,i);for(const o of s)l.add(n(o));return l}case 7:{const{name:l,message:o}=s;return r(new va[l](o),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return r(new DataView(l),s)}}return r(new va[a](s),i)};return n},Ia=e=>Kh(new Map,e)(0),Ut="",{toString:Xh}={},{keys:Zh}=Object,ur=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const r=Xh.call(e).slice(8,-1);switch(r){case"Array":return[1,Ut];case"Object":return[2,Ut];case"Date":return[3,Ut];case"RegExp":return[4,Ut];case"Map":return[5,Ut];case"Set":return[6,Ut];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},qr=([e,t])=>e===0&&(t==="function"||t==="symbol"),Jh=(e,t,r,n)=>{const i=(s,l)=>{const o=n.push(s)-1;return r.set(l,o),o},a=s=>{if(r.has(s))return r.get(s);let[l,o]=ur(s);switch(l){case 0:{let d=s;switch(o){case"bigint":l=8,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);d=null;break;case"undefined":return i([-1],s)}return i([l,d],s)}case 1:{if(o){let p=s;return o==="DataView"?p=new Uint8Array(s.buffer):o==="ArrayBuffer"&&(p=new Uint8Array(s)),i([o,[...p]],s)}const d=[],h=i([l,d],s);for(const p of s)d.push(a(p));return h}case 2:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],h=i([l,d],s);for(const p of Zh(s))(e||!qr(ur(s[p])))&&d.push([a(p),a(s[p])]);return h}case 3:return i([l,s.toISOString()],s);case 4:{const{source:d,flags:h}=s;return i([l,{source:d,flags:h}],s)}case 5:{const d=[],h=i([l,d],s);for(const[p,f]of s)(e||!(qr(ur(p))||qr(ur(f))))&&d.push([a(p),a(f)]);return h}case 6:{const d=[],h=i([l,d],s);for(const p of s)(e||!qr(ur(p)))&&d.push(a(p));return h}}const{message:u}=s;return i([l,{name:o,message:u}],s)};return a},wa=(e,{json:t,lossy:r}={})=>{const n=[];return Jh(!(t||r),!!t,new Map,n)(e),n},wt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ia(wa(e,t)):structuredClone(e):(e,t)=>Ia(wa(e,t));var Rr=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};Rr.prototype.normal={};Rr.prototype.property={};Rr.prototype.space=void 0;function Fl(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Rr(r,n,t)}function Nr(e){return e.toLowerCase()}var Be=class{constructor(e,t){this.attribute=t,this.property=e}};Be.prototype.attribute="";Be.prototype.booleanish=!1;Be.prototype.boolean=!1;Be.prototype.commaOrSpaceSeparated=!1;Be.prototype.commaSeparated=!1;Be.prototype.defined=!1;Be.prototype.mustUseProperty=!1;Be.prototype.number=!1;Be.prototype.overloadedBoolean=!1;Be.prototype.property="";Be.prototype.spaceSeparated=!1;Be.prototype.space=void 0;var ci=Fi({boolean:()=>ne,booleanish:()=>ke,commaOrSpaceSeparated:()=>ze,commaSeparated:()=>qt,number:()=>j,overloadedBoolean:()=>ui,spaceSeparated:()=>me}),ed=0,ne=Ot(),ke=Ot(),ui=Ot(),j=Ot(),me=Ot(),qt=Ot(),ze=Ot();function Ot(){return 2**++ed}var Fn=Object.keys(ci),Hi=class extends Be{constructor(e,t,r,n){let i=-1;if(super(e,t),La(this,"space",n),typeof r=="number")for(;++i<Fn.length;){const a=Fn[i];La(this,Fn[i],(r&ci[a])===ci[a])}}};Hi.prototype.defined=!0;function La(e,t,r){r&&(e[t]=r)}function Xt(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Hi(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Nr(n)]=n,r[Nr(a.attribute)]=n}return new Rr(t,r,e.space)}var Hl=Xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:me,ariaCurrent:null,ariaDescribedBy:me,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:me,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:me,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:me,ariaLevel:j,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:me,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:me,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:ke,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ul(e,t){return t in e?e[t]:t}function jl(e,t){return Ul(e,t.toLowerCase())}var td=Xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qt,acceptCharset:me,accessKey:me,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:me,autoFocus:ne,autoPlay:ne,blocking:me,capture:null,charSet:null,checked:ne,cite:null,className:me,cols:j,colSpan:null,content:null,contentEditable:ke,controls:ne,controlsList:me,coords:j|qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:ui,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:me,height:j,hidden:ui,high:j,href:null,hrefLang:null,htmlFor:me,httpEquiv:me,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:me,itemRef:me,itemScope:ne,itemType:me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:j,pattern:null,ping:me,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:me,required:ne,reversed:ne,rows:j,rowSpan:j,sandbox:me,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:ke,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:me,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:jl}),rd=Xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ze,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:me,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qt,g2:qt,glyphName:qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ze,rev:ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ze,requiredFeatures:ze,requiredFonts:ze,requiredFormats:ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ze,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ul}),zl=Xt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),$l=Xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jl}),Yl=Xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nd={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},id=/[A-Z]/g,Ra=/-[a-z]/g,ad=/^data[-\w.:]+$/i;function An(e,t){const r=Nr(t);let n=t,i=Be;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ad.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ra,ld);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ra.test(a)){let s=a.replace(id,sd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Hi}return new i(n,t)}function sd(e){return"-"+e.toLowerCase()}function ld(e){return e.charAt(1).toUpperCase()}var Or=Fl([Hl,td,zl,$l,Yl],"html"),xt=Fl([Hl,rd,zl,$l,Yl],"svg");function Oa(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const s=r.slice(i,n).trim();(s||!a)&&t.push(s),i=n+1,n=r.indexOf(",",i)}return t}function ql(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var Da=/[#.]/g;function od(e,t){const r=e||"",n={};let i=0,a,s;for(;i<r.length;){Da.lastIndex=i;const l=Da.exec(r),o=r.slice(i,l?l.index:r.length);o&&(a?a==="#"?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:s=o,i+=o.length),l&&(a=l[0],i++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function Pa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Vl(e){return e.join(" ").trim()}function Wl(e,t,r){const n=r?dd(r):void 0;function i(a,s,...l){let o;if(a==null){o={type:"root",children:[]};const u=s;l.unshift(u)}else{o=od(a,t);const u=o.tagName.toLowerCase(),d=n?n.get(u):void 0;if(o.tagName=d||u,cd(s))l.unshift(s);else for(const[h,p]of Object.entries(s))ud(e,o.properties,h,p)}for(const u of l)hi(o.children,u);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function cd(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ud(e,t,r,n){const i=An(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=Pa(n):i.commaSeparated?a=Oa(n):i.commaOrSpaceSeparated?a=Pa(Oa(n).join(" ")):a=Ma(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?hd(n):String(n);if(Array.isArray(a)){const s=[];for(const l of a)s.push(Ma(i,i.property,l));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function hi(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)hi(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?hi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ma(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Nr(r)===Nr(t)))return!0}return r}function hd(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function dd(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}var fd=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],pd=Wl(Or,"div"),md=Wl(xt,"g",fd);function gd(e){const t=String(e),r=[];return{toOffset:i,toPoint:n};function n(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let l=r[s];if(l===void 0){const o=Ba(t,r[s-1]);l=o===-1?t.length+1:o+1,r[s]=l}if(l>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const l=r[r.length-1],o=Ba(t,l),u=o===-1?t.length+1:o+1;if(l===u)break;r.push(u)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function Ba(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
3
3
  `,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}var vt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Gl={}.hasOwnProperty,Ed=Object.prototype;function Td(e,t){const r=t||{};return Ui({file:r.file||void 0,location:!1,schema:r.space==="svg"?xt:Or,verbose:r.verbose||!1},e)}function Ui(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},en(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:Ql(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=gd(a),l=s.toPoint(0),o=s.toPoint(a.length);r.position={start:l,end:o}}return r}case"#documentType":{const n=t;return r={type:"doctype"},en(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},en(e,n,r),r}default:return r=bd(e,t),r}}function Ql(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=Ui(e,t[r]);n.push(i)}return n}function bd(e,t){const r=e.schema;e.schema=t.namespaceURI===vt.svg?xt:Or;let n=-1;const i={};for(;++n<t.attrs.length;){const s=t.attrs[n],l=(s.prefix?s.prefix+":":"")+s.name;Gl.call(Ed,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?md:pd)(t.tagName,i,Ql(e,t.childNodes));if(en(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,o=l&&l.startTag&&Yt(l.startTag),u=l&&l.endTag&&Yt(l.endTag),d=Ui(e,s.content);o&&u&&e.file&&(d.position={start:o.end,end:u.start}),a.content=d}return e.schema=r,a}function en(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=kd(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function kd(e,t,r){const n=Yt(r);if(t.type==="element"){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)Gl.call(r.attrs,s)&&(a[An(e.schema,s).property]=Yt(r.attrs[s]));r.startTag;const l=Yt(r.startTag),o=r.endTag?Yt(r.endTag):void 0,u={opening:l};o&&(u.closing=o),u.properties=a,t.data={position:u}}}return n}function Yt(e){const t=Fa({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Fa({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Fa(e){return e.line&&e.column?e:void 0}var Ha={}.hasOwnProperty;function Kl(e,t){const r=t||{};function n(i,...a){let s=n.invalid;const l=n.handlers;if(i&&Ha.call(i,e)){const o=String(i[e]);s=Ha.call(l,o)?l[o]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var xd={},Ad={}.hasOwnProperty,Xl=Kl("type",{handlers:{root:yd,element:Id,text:Nd,comment:vd,doctype:Sd}});function _d(e,t){const r=(t||xd).space;return Xl(e,r==="svg"?xt:Or)}function yd(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=ji(e.children,r,t),Zt(e,r),r}function Cd(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=ji(e.children,r,t),Zt(e,r),r}function Sd(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Zt(e,t),t}function Nd(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Zt(e,t),t}function vd(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Zt(e,t),t}function Id(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=xt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Ad.call(e.properties,a)){const o=wd(n,a,e.properties[a]);o&&i.push(o)}}const s=n.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:vt[s],childNodes:[],parentNode:null};return l.childNodes=ji(e.children,l,n),Zt(e,l),e.tagName==="template"&&e.content&&(l.content=Cd(e.content,n)),l}function wd(e,t,r){const n=An(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?ql(r):Vl(r));const i={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=n.attribute.slice(0,a)),i.namespace=vt[n.space]}return i}function ji(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=Xl(e[n],r);a.parentNode=t,i.push(a)}return i}function Zt(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}var Ld=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Rd=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));var Pe={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Zl(e){return e>=55296&&e<=57343}function Od(e){return e>=56320&&e<=57343}function Dd(e,t){return(e-55296)*1024+9216+t}function Jl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function eo(e){return e>=64976&&e<=65007||Rd.has(e)}var O;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(O||(O={}));var Pd=65536,Md=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Pd,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:r,col:n,offset:i}=this,a=n+t,s=i+t;return{code:e,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(Od(t))return this.pos++,this._addGap(),Dd(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(O.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(t);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let e=this.html.charCodeAt(this.pos);return e===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):e===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Zl(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===E.LINE_FEED||e===E.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Jl(e)?this._err(O.controlCharacterInInputStream):eo(e)&&this._err(O.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},ie;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ie||(ie={}));function to(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var Bd=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Hn,Fd=new Map([[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]]),y1=(Hn=String.fromCodePoint)!==null&&Hn!==void 0?Hn:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Hd(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Fd.get(e))!==null&&t!==void 0?t:e}var _e;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(_e||(_e={}));var Ud=32,Tt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Tt||(Tt={}));function di(e){return e>=_e.ZERO&&e<=_e.NINE}function jd(e){return e>=_e.UPPER_A&&e<=_e.UPPER_F||e>=_e.LOWER_A&&e<=_e.LOWER_F}function zd(e){return e>=_e.UPPER_A&&e<=_e.UPPER_Z||e>=_e.LOWER_A&&e<=_e.LOWER_Z||di(e)}function $d(e){return e===_e.EQUALS||zd(e)}var Ae;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ae||(Ae={}));var ct;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ct||(ct={}));var Yd=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=Ae.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ct.Strict}startEntity(e){this.decodeMode=e,this.state=Ae.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Ae.EntityStart:return e.charCodeAt(t)===_e.NUM?(this.state=Ae.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Ae.NamedEntity,this.stateNamedEntity(e,t));case Ae.NumericStart:return this.stateNumericStart(e,t);case Ae.NumericDecimal:return this.stateNumericDecimal(e,t);case Ae.NumericHex:return this.stateNumericHex(e,t);case Ae.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Ud)===_e.LOWER_X?(this.state=Ae.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Ae.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const i=r-t;this.result=this.result*Math.pow(n,i)+Number.parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(di(n)||jd(n))t+=1;else return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(di(n))t+=1;else return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===_e.SEMI)this.consumed+=1;else if(this.decodeMode===ct.Strict)return 0;return this.emitCodePoint(Hd(this.result),this.consumed),this.errors&&(e!==_e.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let n=r[this.treeIndex],i=(n&Tt.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=qd(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===ct.Attribute&&(i===0||$d(a))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Tt.VALUE_LENGTH)>>14,i!==0){if(a===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ct.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&Tt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(t===1?n[e]&~Tt.VALUE_LENGTH:n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case Ae.NamedEntity:return this.result!==0&&(this.decodeMode!==ct.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ae.NumericDecimal:return this.emitNumericEntity(0,2);case Ae.NumericHex:return this.emitNumericEntity(0,3);case Ae.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ae.EntityStart:return 0}}};function qd(e,t,r,n){const i=(t&Tt.BRANCH_LENGTH)>>7,a=t&Tt.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const o=n-a;return o<0||o>=i?-1:e[r+o]-1}let s=r,l=s+i-1;for(;s<=l;){const o=s+l>>>1,u=e[o];if(u<n)s=o+1;else if(u>n)l=o-1;else return e[o+i]}return-1}var M;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(M||(M={}));var It;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(It||(It={}));var qe;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(qe||(qe={}));var w;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(w||(w={}));var c;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));var Vd=new Map([[w.A,c.A],[w.ADDRESS,c.ADDRESS],[w.ANNOTATION_XML,c.ANNOTATION_XML],[w.APPLET,c.APPLET],[w.AREA,c.AREA],[w.ARTICLE,c.ARTICLE],[w.ASIDE,c.ASIDE],[w.B,c.B],[w.BASE,c.BASE],[w.BASEFONT,c.BASEFONT],[w.BGSOUND,c.BGSOUND],[w.BIG,c.BIG],[w.BLOCKQUOTE,c.BLOCKQUOTE],[w.BODY,c.BODY],[w.BR,c.BR],[w.BUTTON,c.BUTTON],[w.CAPTION,c.CAPTION],[w.CENTER,c.CENTER],[w.CODE,c.CODE],[w.COL,c.COL],[w.COLGROUP,c.COLGROUP],[w.DD,c.DD],[w.DESC,c.DESC],[w.DETAILS,c.DETAILS],[w.DIALOG,c.DIALOG],[w.DIR,c.DIR],[w.DIV,c.DIV],[w.DL,c.DL],[w.DT,c.DT],[w.EM,c.EM],[w.EMBED,c.EMBED],[w.FIELDSET,c.FIELDSET],[w.FIGCAPTION,c.FIGCAPTION],[w.FIGURE,c.FIGURE],[w.FONT,c.FONT],[w.FOOTER,c.FOOTER],[w.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[w.FORM,c.FORM],[w.FRAME,c.FRAME],[w.FRAMESET,c.FRAMESET],[w.H1,c.H1],[w.H2,c.H2],[w.H3,c.H3],[w.H4,c.H4],[w.H5,c.H5],[w.H6,c.H6],[w.HEAD,c.HEAD],[w.HEADER,c.HEADER],[w.HGROUP,c.HGROUP],[w.HR,c.HR],[w.HTML,c.HTML],[w.I,c.I],[w.IMG,c.IMG],[w.IMAGE,c.IMAGE],[w.INPUT,c.INPUT],[w.IFRAME,c.IFRAME],[w.KEYGEN,c.KEYGEN],[w.LABEL,c.LABEL],[w.LI,c.LI],[w.LINK,c.LINK],[w.LISTING,c.LISTING],[w.MAIN,c.MAIN],[w.MALIGNMARK,c.MALIGNMARK],[w.MARQUEE,c.MARQUEE],[w.MATH,c.MATH],[w.MENU,c.MENU],[w.META,c.META],[w.MGLYPH,c.MGLYPH],[w.MI,c.MI],[w.MO,c.MO],[w.MN,c.MN],[w.MS,c.MS],[w.MTEXT,c.MTEXT],[w.NAV,c.NAV],[w.NOBR,c.NOBR],[w.NOFRAMES,c.NOFRAMES],[w.NOEMBED,c.NOEMBED],[w.NOSCRIPT,c.NOSCRIPT],[w.OBJECT,c.OBJECT],[w.OL,c.OL],[w.OPTGROUP,c.OPTGROUP],[w.OPTION,c.OPTION],[w.P,c.P],[w.PARAM,c.PARAM],[w.PLAINTEXT,c.PLAINTEXT],[w.PRE,c.PRE],[w.RB,c.RB],[w.RP,c.RP],[w.RT,c.RT],[w.RTC,c.RTC],[w.RUBY,c.RUBY],[w.S,c.S],[w.SCRIPT,c.SCRIPT],[w.SEARCH,c.SEARCH],[w.SECTION,c.SECTION],[w.SELECT,c.SELECT],[w.SOURCE,c.SOURCE],[w.SMALL,c.SMALL],[w.SPAN,c.SPAN],[w.STRIKE,c.STRIKE],[w.STRONG,c.STRONG],[w.STYLE,c.STYLE],[w.SUB,c.SUB],[w.SUMMARY,c.SUMMARY],[w.SUP,c.SUP],[w.TABLE,c.TABLE],[w.TBODY,c.TBODY],[w.TEMPLATE,c.TEMPLATE],[w.TEXTAREA,c.TEXTAREA],[w.TFOOT,c.TFOOT],[w.TD,c.TD],[w.TH,c.TH],[w.THEAD,c.THEAD],[w.TITLE,c.TITLE],[w.TR,c.TR],[w.TRACK,c.TRACK],[w.TT,c.TT],[w.U,c.U],[w.UL,c.UL],[w.SVG,c.SVG],[w.VAR,c.VAR],[w.WBR,c.WBR],[w.XMP,c.XMP]]);function Jt(e){var t;return(t=Vd.get(e))!==null&&t!==void 0?t:c.UNKNOWN}var H=c,Wd={[M.HTML]:new Set([H.ADDRESS,H.APPLET,H.AREA,H.ARTICLE,H.ASIDE,H.BASE,H.BASEFONT,H.BGSOUND,H.BLOCKQUOTE,H.BODY,H.BR,H.BUTTON,H.CAPTION,H.CENTER,H.COL,H.COLGROUP,H.DD,H.DETAILS,H.DIR,H.DIV,H.DL,H.DT,H.EMBED,H.FIELDSET,H.FIGCAPTION,H.FIGURE,H.FOOTER,H.FORM,H.FRAME,H.FRAMESET,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HEADER,H.HGROUP,H.HR,H.HTML,H.IFRAME,H.IMG,H.INPUT,H.LI,H.LINK,H.LISTING,H.MAIN,H.MARQUEE,H.MENU,H.META,H.NAV,H.NOEMBED,H.NOFRAMES,H.NOSCRIPT,H.OBJECT,H.OL,H.P,H.PARAM,H.PLAINTEXT,H.PRE,H.SCRIPT,H.SECTION,H.SELECT,H.SOURCE,H.STYLE,H.SUMMARY,H.TABLE,H.TBODY,H.TD,H.TEMPLATE,H.TEXTAREA,H.TFOOT,H.TH,H.THEAD,H.TITLE,H.TR,H.TRACK,H.UL,H.WBR,H.XMP]),[M.MATHML]:new Set([H.MI,H.MO,H.MN,H.MS,H.MTEXT,H.ANNOTATION_XML]),[M.SVG]:new Set([H.TITLE,H.FOREIGN_OBJECT,H.DESC]),[M.XLINK]:new Set,[M.XML]:new Set,[M.XMLNS]:new Set},fi=new Set([H.H1,H.H2,H.H3,H.H4,H.H5,H.H6]),C1=new Set([w.STYLE,w.SCRIPT,w.XMP,w.IFRAME,w.NOEMBED,w.NOFRAMES,w.PLAINTEXT]),b;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(b||(b={}));var be={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function Gd(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function gr(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function Qd(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function pt(e){return Qd(e)||gr(e)}function Ua(e){return pt(e)||Gd(e)}function Vr(e){return e+32}function ro(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function ja(e){return ro(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function Kd(e){return e===E.NULL?O.nullCharacterReference:e>1114111?O.characterReferenceOutsideUnicodeRange:Zl(e)?O.surrogateCharacterReference:eo(e)?O.noncharacterCharacterReference:Jl(e)||e===E.CARRIAGE_RETURN?O.controlCharacterReference:null}var Xd=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Md(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Yd(Bd,(r,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(r)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(O.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(O.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const n=Kd(r);n&&this._err(n,1)}}:void 0)}_err(e,t=0){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ie.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ie.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ie.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ie.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;if(to(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const n=(e=(t=r.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(O.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Jt(e.tagName),e.type===ie.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(O.endTagWithAttributes),e.selfClosing&&this._err(O.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case ie.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case ie.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case ie.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:ie.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){const t=ro(e)?ie.WHITESPACE_CHARACTER:e===E.NULL?ie.NULL_CHARACTER:ie.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ie.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ct.Attribute:ct.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case b.DATA:this._stateData(e);break;case b.RCDATA:this._stateRcdata(e);break;case b.RAWTEXT:this._stateRawtext(e);break;case b.SCRIPT_DATA:this._stateScriptData(e);break;case b.PLAINTEXT:this._statePlaintext(e);break;case b.TAG_OPEN:this._stateTagOpen(e);break;case b.END_TAG_OPEN:this._stateEndTagOpen(e);break;case b.TAG_NAME:this._stateTagName(e);break;case b.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case b.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case b.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case b.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case b.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case b.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case b.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case b.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case b.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case b.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case b.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case b.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case b.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case b.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case b.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case b.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case b.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case b.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case b.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case b.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case b.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case b.BOGUS_COMMENT:this._stateBogusComment(e);break;case b.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case b.COMMENT_START:this._stateCommentStart(e);break;case b.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case b.COMMENT:this._stateComment(e);break;case b.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case b.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case b.COMMENT_END:this._stateCommentEnd(e);break;case b.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case b.DOCTYPE:this._stateDoctype(e);break;case b.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case b.DOCTYPE_NAME:this._stateDoctypeName(e);break;case b.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case b.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case b.CDATA_SECTION:this._stateCdataSection(e);break;case b.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case b.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case b.CHARACTER_REFERENCE:this._stateCharacterReference();break;case b.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case E.LESS_THAN_SIGN:this.state=b.TAG_OPEN;break;case E.AMPERSAND:this._startCharacterReference();break;case E.NULL:this._err(O.unexpectedNullCharacter),this._emitCodePoint(e);break;case E.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case E.AMPERSAND:this._startCharacterReference();break;case E.LESS_THAN_SIGN:this.state=b.RCDATA_LESS_THAN_SIGN;break;case E.NULL:this._err(O.unexpectedNullCharacter),this._emitChars("�");break;case E.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case E.LESS_THAN_SIGN:this.state=b.RAWTEXT_LESS_THAN_SIGN;break;case E.NULL:this._err(O.unexpectedNullCharacter),this._emitChars("�");break;case E.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break;case E.NULL:this._err(O.unexpectedNullCharacter),this._emitChars("�");break;case E.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case E.NULL:this._err(O.unexpectedNullCharacter),this._emitChars("�");break;case E.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(pt(e))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(e);else switch(e){case E.EXCLAMATION_MARK:this.state=b.MARKUP_DECLARATION_OPEN;break;case E.SOLIDUS:this.state=b.END_TAG_OPEN;break;case E.QUESTION_MARK:this._err(O.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(e);break;case E.EOF:this._err(O.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(O.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(pt(e))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(e);else switch(e){case E.GREATER_THAN_SIGN:this._err(O.missingEndTagName),this.state=b.DATA;break;case E.EOF:this._err(O.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(O.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this.state=b.BEFORE_ATTRIBUTE_NAME;break;case E.SOLIDUS:this.state=b.SELF_CLOSING_START_TAG;break;case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentTagToken();break;case E.NULL:this._err(O.unexpectedNullCharacter),t.tagName+="�";break;case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(gr(e)?Vr(e):e)}}_stateRcdataLessThanSign(e){e===E.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){pt(e)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===E.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){pt(e)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case E.SOLIDUS:this.state=b.SCRIPT_DATA_END_TAG_OPEN;break;case E.EXCLAMATION_MARK:this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){pt(e)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case E.HYPHEN_MINUS:this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case E.NULL:this._err(O.unexpectedNullCharacter),this._emitChars("�");break;case E.EOF:this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case E.HYPHEN_MINUS:this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case E.NULL:this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case E.EOF:this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case E.HYPHEN_MINUS:this._emitChars("-");break;case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case E.GREATER_THAN_SIGN:this.state=b.SCRIPT_DATA,this._emitChars(">");break;case E.NULL:this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case E.EOF:this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===E.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:pt(e)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){pt(e)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Pe.SCRIPT,!1)&&ja(this.preprocessor.peek(Pe.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Pe.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case E.HYPHEN_MINUS:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case E.NULL:this._err(O.unexpectedNullCharacter),this._emitChars("�");break;case E.EOF:this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case E.HYPHEN_MINUS:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case E.NULL:this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case E.EOF:this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case E.HYPHEN_MINUS:this._emitChars("-");break;case E.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case E.GREATER_THAN_SIGN:this.state=b.SCRIPT_DATA,this._emitChars(">");break;case E.NULL:this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case E.EOF:this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===E.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Pe.SCRIPT,!1)&&ja(this.preprocessor.peek(Pe.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<Pe.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case E.EQUALS_SIGN:this._err(O.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case E.EQUALS_SIGN:this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break;case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:this._err(O.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case E.NULL:this._err(O.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(gr(e)?Vr(e):e)}}_stateAfterAttributeName(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:this.state=b.SELF_CLOSING_START_TAG;break;case E.EQUALS_SIGN:this.state=b.BEFORE_ATTRIBUTE_VALUE;break;case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentTagToken();break;case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case E.APOSTROPHE:this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case E.GREATER_THAN_SIGN:this._err(O.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break;default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case E.QUOTATION_MARK:this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case E.AMPERSAND:this._startCharacterReference();break;case E.NULL:this._err(O.unexpectedNullCharacter),this.currentAttr.value+="�";break;case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case E.APOSTROPHE:this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case E.AMPERSAND:this._startCharacterReference();break;case E.NULL:this._err(O.unexpectedNullCharacter),this.currentAttr.value+="�";break;case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break;case E.AMPERSAND:this._startCharacterReference();break;case E.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break;case E.NULL:this._err(O.unexpectedNullCharacter),this.currentAttr.value+="�";break;case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:this._err(O.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break;case E.SOLIDUS:this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break;case E.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break;case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:this._err(O.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case E.GREATER_THAN_SIGN:{const t=this.currentToken;t.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:this._err(O.eofInTag),this._emitEOFToken();break;default:this._err(O.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentComment(t);break;case E.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case E.NULL:this._err(O.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Pe.DASH_DASH,!0)?(this._createCommentToken(Pe.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(Pe.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Pe.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(Pe.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(O.cdataInHtmlContent),this._createCommentToken(Pe.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(O.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case E.HYPHEN_MINUS:this.state=b.COMMENT_START_DASH;break;case E.GREATER_THAN_SIGN:{this._err(O.abruptClosingOfEmptyComment),this.state=b.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=b.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case E.HYPHEN_MINUS:this.state=b.COMMENT_END;break;case E.GREATER_THAN_SIGN:this._err(O.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(t);break;case E.EOF:this._err(O.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=b.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case E.HYPHEN_MINUS:this.state=b.COMMENT_END_DASH;break;case E.LESS_THAN_SIGN:t.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break;case E.NULL:this._err(O.unexpectedNullCharacter),t.data+="�";break;case E.EOF:this._err(O.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case E.EXCLAMATION_MARK:t.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break;case E.LESS_THAN_SIGN:t.data+="<";break;default:this.state=b.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==E.GREATER_THAN_SIGN&&e!==E.EOF&&this._err(O.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case E.HYPHEN_MINUS:this.state=b.COMMENT_END;break;case E.EOF:this._err(O.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=b.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentComment(t);break;case E.EXCLAMATION_MARK:this.state=b.COMMENT_END_BANG;break;case E.HYPHEN_MINUS:t.data+="-";break;case E.EOF:this._err(O.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=b.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case E.HYPHEN_MINUS:t.data+="--!",this.state=b.COMMENT_END_DASH;break;case E.GREATER_THAN_SIGN:this._err(O.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(t);break;case E.EOF:this._err(O.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=b.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this.state=b.BEFORE_DOCTYPE_NAME;break;case E.GREATER_THAN_SIGN:this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case E.EOF:{this._err(O.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(O.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(gr(e))this._createDoctypeToken(String.fromCharCode(Vr(e))),this.state=b.DOCTYPE_NAME;else switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:this._err(O.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=b.DOCTYPE_NAME;break;case E.GREATER_THAN_SIGN:{this._err(O.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=b.DATA;break}case E.EOF:{this._err(O.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this.state=b.AFTER_DOCTYPE_NAME;break;case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.NULL:this._err(O.unexpectedNullCharacter),t.name+="�";break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(gr(e)?Vr(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Pe.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Pe.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(O.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case E.QUOTATION_MARK:this._err(O.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case E.APOSTROPHE:this._err(O.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case E.GREATER_THAN_SIGN:this._err(O.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:t.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case E.APOSTROPHE:t.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case E.GREATER_THAN_SIGN:this._err(O.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case E.QUOTATION_MARK:this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case E.NULL:this._err(O.unexpectedNullCharacter),t.publicId+="�";break;case E.GREATER_THAN_SIGN:this._err(O.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case E.APOSTROPHE:this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case E.NULL:this._err(O.unexpectedNullCharacter),t.publicId+="�";break;case E.GREATER_THAN_SIGN:this._err(O.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case E.GREATER_THAN_SIGN:this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.QUOTATION_MARK:this._err(O.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case E.APOSTROPHE:this._err(O.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.QUOTATION_MARK:t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case E.APOSTROPHE:t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case E.QUOTATION_MARK:this._err(O.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case E.APOSTROPHE:this._err(O.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case E.GREATER_THAN_SIGN:this._err(O.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case E.APOSTROPHE:t.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case E.GREATER_THAN_SIGN:this._err(O.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(t);break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case E.QUOTATION_MARK:this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case E.NULL:this._err(O.unexpectedNullCharacter),t.systemId+="�";break;case E.GREATER_THAN_SIGN:this._err(O.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case E.APOSTROPHE:this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case E.NULL:this._err(O.unexpectedNullCharacter),t.systemId+="�";break;case E.GREATER_THAN_SIGN:this._err(O.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.EOF:this._err(O.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(O.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case E.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=b.DATA;break;case E.NULL:this._err(O.unexpectedNullCharacter);break;case E.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case E.RIGHT_SQUARE_BRACKET:this.state=b.CDATA_SECTION_BRACKET;break;case E.EOF:this._err(O.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===E.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case E.GREATER_THAN_SIGN:this.state=b.DATA;break;case E.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ua(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Ua(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===E.SEMICOLON&&this._err(O.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},no=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),za=new Set([...no,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),sn=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),Zd=new Set([...sn,c.OL,c.UL]),Jd=new Set([...sn,c.BUTTON]),$a=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),Ya=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),ef=new Set([c.TR,c.TEMPLATE,c.HTML]),tf=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),rf=new Set([c.TABLE,c.TEMPLATE,c.HTML]),nf=new Set([c.TD,c.TH]),af=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===M.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==M.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(fi,M.HTML)}popUntilTableCellPopped(){this.popUntilPopped(nf,M.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(rf,M.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tf,M.HTML)}clearBackToTableRowContext(){this.clearBackTo(ef,M.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case M.HTML:if(n===e)return!0;if(t.has(n))return!1;break;case M.SVG:if(Ya.has(n))return!1;break;case M.MATHML:if($a.has(n))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,sn)}hasInListItemScope(e){return this.hasInDynamicScope(e,Zd)}hasInButtonScope(e){return this.hasInDynamicScope(e,Jd)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case M.HTML:if(fi.has(t))return!0;if(sn.has(t))return!1;break;case M.SVG:if(Ya.has(t))return!1;break;case M.MATHML:if($a.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===M.HTML)switch(this.tagIDs[t]){case e:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===M.HTML)switch(this.tagIDs[e]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===M.HTML)switch(this.tagIDs[t]){case e:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&no.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&za.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&za.has(this.currentTagId);)this.pop()}},Un=3,nt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(nt||(nt={}));var qa={type:nt.Marker},sf=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],n=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let s=0;s<this.entries.length;s++){const l=this.entries[s];if(l.type===nt.Marker)break;const{element:o}=l;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){const u=this.treeAdapter.getAttrList(o);u.length===n&&r.push({idx:s,attrs:u})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<Un)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<Un)return;const n=new Map(t.map(a=>[a.name,a.value]));let i=0;for(let a=0;a<r.length;a++){const s=r[a];s.attrs.every(l=>n.get(l.name)===l.value)&&(i+=1,i>=Un&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(qa)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:nt.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:nt.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(qa);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(r=>r.type===nt.Marker||this.treeAdapter.getTagName(r.element)===e);return t&&t.type===nt.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===nt.Element&&t.element===e)}},mt={createDocument(){return{nodeName:"#document",mode:qe.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};mt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(mt.isTextNode(r)){r.value+=t;return}}mt.appendChild(e,mt.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&mt.isTextNode(n)?n.value+=t:mt.insertBefore(e,mt.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},io="html",lf="about:legacy-compat",of="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ao=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],cf=[...ao,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],uf=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),so=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hf=[...so,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Va(e,t){return t.some(r=>e.startsWith(r))}function df(e){return e.name===io&&e.publicId===null&&(e.systemId===null||e.systemId===lf)}function ff(e){if(e.name!==io)return qe.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===of)return qe.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),uf.has(r))return qe.QUIRKS;let n=t===null?cf:ao;if(Va(r,n))return qe.QUIRKS;if(n=t===null?so:hf,Va(r,n))return qe.LIMITED_QUIRKS}return qe.NO_QUIRKS}var Wa={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},pf="definitionurl",mf="definitionURL",gf=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Ef=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:M.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:M.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:M.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:M.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:M.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:M.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:M.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:M.XML}],["xml:space",{prefix:"xml",name:"space",namespace:M.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:M.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:M.XMLNS}]]),Tf=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),bf=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function kf(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===It.COLOR||r===It.SIZE||r===It.FACE)||bf.has(t)}function lo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===pf){e.attrs[t].name=mf;break}}function oo(e){for(let t=0;t<e.attrs.length;t++){const r=gf.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function zi(e){for(let t=0;t<e.attrs.length;t++){const r=Ef.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function xf(e){const t=Tf.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Jt(e.tagName))}function Af(e,t){return t===M.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function _f(e,t,r){if(t===M.MATHML&&e===c.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===It.ENCODING){const i=r[n].value.toLowerCase();return i===Wa.TEXT_HTML||i===Wa.APPLICATION_XML}}return t===M.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function yf(e,t,r,n){return(!n||n===M.HTML)&&_f(e,t,r)||(!n||n===M.MATHML)&&Af(e,t)}var Cf="hidden",Sf=8,Nf=3,_;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(_||(_={}));var vf={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},co=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),Ga={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:mt,onParseError:null},Qa=class{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=_.INITIAL,this.originalInsertionMode=_.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Ga,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new Xd(this.options,this),this.activeFormattingElements=new sf(this.treeAdapter),this.fragmentContextID=r?Jt(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new af(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...Ga,...t};e!=null||(e=r.treeAdapter.createElement(w.TEMPLATE,M.HTML,[]));const n=r.treeAdapter.createElement("documentmock",M.HTML,[]),i=new this(r,n,e);return i.fragmentContextID===c.TEMPLATE&&i.tmplInsertionModeStack.unshift(_.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;const i=(n=e.location)!==null&&n!==void 0?n:vf,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,r){var n,i;(i=(n=this.treeAdapter).onItemPush)===null||i===void 0||i.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(n=(r=this.treeAdapter).onItemPop)===null||n===void 0||n.call(r,e,this.openElements.current),t){let i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(e,t){const r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===M.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,M.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=_.TEXT}switchToPlaintextParsing(){this.insertionMode=_.TEXT,this.originalInsertionMode=_.IN_BODY,this.tokenizer.state=be.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===w.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==M.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:this.tokenizer.state=be.RCDATA;break;case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:this.tokenizer.state=be.RAWTEXT;break;case c.SCRIPT:this.tokenizer.state=be.SCRIPT_DATA;break;case c.PLAINTEXT:this.tokenizer.state=be.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){const i=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));i&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,M.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,M.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(w.HTML,M.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,c.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const n=this.treeAdapter.getChildNodes(t),i=n[(r?n.lastIndexOf(r):n.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:a,endCol:s,endOffset:l}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:a,endCol:s,endOffset:l})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i=t.type===ie.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,e.tagID===c.SVG&&this.treeAdapter.getTagName(t)===w.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===M.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===c.MGLYPH||e.tagID===c.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,t,M.HTML)}_processToken(e){switch(e.type){case ie.CHARACTER:this.onCharacter(e);break;case ie.NULL_CHARACTER:this.onNullCharacter(e);break;case ie.COMMENT:this.onComment(e);break;case ie.DOCTYPE:this.onDoctype(e);break;case ie.START_TAG:this._processStartTag(e);break;case ie.END_TAG:this.onEndTag(e);break;case ie.EOF:this.onEof(e);break;case ie.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){const n=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return yf(e,n,i,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(n=>n.type===nt.Marker||this.openElements.contains(n.element)),r=t===-1?e-1:t-1;for(let n=r;n>=0;n--){const i=this.activeFormattingElements.entries[n];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case c.TR:this.insertionMode=_.IN_ROW;return;case c.TBODY:case c.THEAD:case c.TFOOT:this.insertionMode=_.IN_TABLE_BODY;return;case c.CAPTION:this.insertionMode=_.IN_CAPTION;return;case c.COLGROUP:this.insertionMode=_.IN_COLUMN_GROUP;return;case c.TABLE:this.insertionMode=_.IN_TABLE;return;case c.BODY:this.insertionMode=_.IN_BODY;return;case c.FRAMESET:this.insertionMode=_.IN_FRAMESET;return;case c.SELECT:this._resetInsertionModeForSelect(e);return;case c.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case c.HTML:this.insertionMode=this.headElement?_.AFTER_HEAD:_.BEFORE_HEAD;return;case c.TD:case c.TH:if(e>0){this.insertionMode=_.IN_CELL;return}break;case c.HEAD:if(e>0){this.insertionMode=_.IN_HEAD;return}}this.insertionMode=_.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const r=this.openElements.tagIDs[t];if(r===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=_.IN_SELECT_IN_TABLE;return}}this.insertionMode=_.IN_SELECT}_isElementCausesFosterParenting(e){return co.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case c.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===M.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case c.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return Wd[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){im(this,e);return}switch(this.insertionMode){case _.INITIAL:hr(this,e);break;case _.BEFORE_HTML:br(this,e);break;case _.BEFORE_HEAD:kr(this,e);break;case _.IN_HEAD:xr(this,e);break;case _.IN_HEAD_NO_SCRIPT:Ar(this,e);break;case _.AFTER_HEAD:_r(this,e);break;case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:ho(this,e);break;case _.TEXT:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:jn(this,e);break;case _.IN_TABLE_TEXT:To(this,e);break;case _.IN_COLUMN_GROUP:ln(this,e);break;case _.AFTER_BODY:on(this,e);break;case _.AFTER_AFTER_BODY:tn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nm(this,e);return}switch(this.insertionMode){case _.INITIAL:hr(this,e);break;case _.BEFORE_HTML:br(this,e);break;case _.BEFORE_HEAD:kr(this,e);break;case _.IN_HEAD:xr(this,e);break;case _.IN_HEAD_NO_SCRIPT:Ar(this,e);break;case _.AFTER_HEAD:_r(this,e);break;case _.TEXT:this._insertCharacters(e);break;case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:jn(this,e);break;case _.IN_COLUMN_GROUP:ln(this,e);break;case _.AFTER_BODY:on(this,e);break;case _.AFTER_AFTER_BODY:tn(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){pi(this,e);return}switch(this.insertionMode){case _.INITIAL:case _.BEFORE_HTML:case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_TEMPLATE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:pi(this,e);break;case _.IN_TABLE_TEXT:dr(this,e);break;case _.AFTER_BODY:Pf(this,e);break;case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:Mf(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case _.INITIAL:Bf(this,e);break;case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:this._err(e,O.misplacedDoctype);break;case _.IN_TABLE_TEXT:dr(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,O.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?am(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case _.INITIAL:hr(this,e);break;case _.BEFORE_HTML:Ff(this,e);break;case _.BEFORE_HEAD:Uf(this,e);break;case _.IN_HEAD:Je(this,e);break;case _.IN_HEAD_NO_SCRIPT:$f(this,e);break;case _.AFTER_HEAD:qf(this,e);break;case _.IN_BODY:ve(this,e);break;case _.IN_TABLE:Qt(this,e);break;case _.IN_TABLE_TEXT:dr(this,e);break;case _.IN_CAPTION:jp(this,e);break;case _.IN_COLUMN_GROUP:qi(this,e);break;case _.IN_TABLE_BODY:Cn(this,e);break;case _.IN_ROW:Sn(this,e);break;case _.IN_CELL:Yp(this,e);break;case _.IN_SELECT:xo(this,e);break;case _.IN_SELECT_IN_TABLE:Vp(this,e);break;case _.IN_TEMPLATE:Gp(this,e);break;case _.AFTER_BODY:Kp(this,e);break;case _.IN_FRAMESET:Xp(this,e);break;case _.AFTER_FRAMESET:Jp(this,e);break;case _.AFTER_AFTER_BODY:tm(this,e);break;case _.AFTER_AFTER_FRAMESET:rm(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?sm(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case _.INITIAL:hr(this,e);break;case _.BEFORE_HTML:Hf(this,e);break;case _.BEFORE_HEAD:jf(this,e);break;case _.IN_HEAD:zf(this,e);break;case _.IN_HEAD_NO_SCRIPT:Yf(this,e);break;case _.AFTER_HEAD:Vf(this,e);break;case _.IN_BODY:yn(this,e);break;case _.TEXT:Lp(this,e);break;case _.IN_TABLE:vr(this,e);break;case _.IN_TABLE_TEXT:dr(this,e);break;case _.IN_CAPTION:zp(this,e);break;case _.IN_COLUMN_GROUP:$p(this,e);break;case _.IN_TABLE_BODY:mi(this,e);break;case _.IN_ROW:ko(this,e);break;case _.IN_CELL:qp(this,e);break;case _.IN_SELECT:Ao(this,e);break;case _.IN_SELECT_IN_TABLE:Wp(this,e);break;case _.IN_TEMPLATE:Qp(this,e);break;case _.AFTER_BODY:yo(this,e);break;case _.IN_FRAMESET:Zp(this,e);break;case _.AFTER_FRAMESET:em(this,e);break;case _.AFTER_AFTER_BODY:tn(this,e)}}onEof(e){switch(this.insertionMode){case _.INITIAL:hr(this,e);break;case _.BEFORE_HTML:br(this,e);break;case _.BEFORE_HEAD:kr(this,e);break;case _.IN_HEAD:xr(this,e);break;case _.IN_HEAD_NO_SCRIPT:Ar(this,e);break;case _.AFTER_HEAD:_r(this,e);break;case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:go(this,e);break;case _.TEXT:Rp(this,e);break;case _.IN_TABLE_TEXT:dr(this,e);break;case _.IN_TEMPLATE:_o(this,e);break;case _.AFTER_BODY:case _.IN_FRAMESET:case _.AFTER_FRAMESET:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:Yi(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===E.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.TEXT:case _.IN_COLUMN_GROUP:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:this._insertCharacters(e);break;case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:case _.AFTER_BODY:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:uo(this,e);break;case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:jn(this,e);break;case _.IN_TABLE_TEXT:Eo(this,e)}}};function If(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):mo(e,t),r}function wf(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function Lf(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==r;a++,s=i){i=e.openElements.getCommonAncestor(s);const l=e.activeFormattingElements.getElementEntry(s),o=l&&a>=Nf;!l||o?(o&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(s)):(s=Rf(e,l),n===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function Rf(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Of(e,t,r){const n=e.treeAdapter.getTagName(t),i=Jt(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===M.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Df(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function $i(e,t){for(let r=0;r<Sf;r++){const n=If(e,t);if(!n)break;const i=wf(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const a=Lf(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),s&&Of(e,s,a),Df(e,i,n)}}function pi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Pf(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Mf(e,t){e._appendCommentNode(t,e.document)}function Yi(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Bf(e,t){e._setDocumentType(t);const r=t.forceQuirks?qe.QUIRKS:ff(t);df(t)||e._err(t,O.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=_.BEFORE_HTML}function hr(e,t){e._err(t,O.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,qe.QUIRKS),e.insertionMode=_.BEFORE_HTML,e._processToken(t)}function Ff(e,t){t.tagID===c.HTML?(e._insertElement(t,M.HTML),e.insertionMode=_.BEFORE_HEAD):br(e,t)}function Hf(e,t){const r=t.tagID;(r===c.HTML||r===c.HEAD||r===c.BODY||r===c.BR)&&br(e,t)}function br(e,t){e._insertFakeRootElement(),e.insertionMode=_.BEFORE_HEAD,e._processToken(t)}function Uf(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.HEAD:e._insertElement(t,M.HTML),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD;break;default:kr(e,t)}}function jf(e,t){const r=t.tagID;r===c.HEAD||r===c.BODY||r===c.HTML||r===c.BR?kr(e,t):e._err(t,O.endTagWithoutMatchingOpenElement)}function kr(e,t){e._insertFakeElement(w.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD,e._processToken(t)}function Je(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break;case c.TITLE:e._switchToTextParsing(t,be.RCDATA);break;case c.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,be.RAWTEXT):(e._insertElement(t,M.HTML),e.insertionMode=_.IN_HEAD_NO_SCRIPT);break;case c.NOFRAMES:case c.STYLE:e._switchToTextParsing(t,be.RAWTEXT);break;case c.SCRIPT:e._switchToTextParsing(t,be.SCRIPT_DATA);break;case c.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(_.IN_TEMPLATE);break;case c.HEAD:e._err(t,O.misplacedStartTagForHeadElement);break;default:xr(e,t)}}function zf(e,t){switch(t.tagID){case c.HEAD:e.openElements.pop(),e.insertionMode=_.AFTER_HEAD;break;case c.BODY:case c.BR:case c.HTML:xr(e,t);break;case c.TEMPLATE:Dt(e,t);break;default:e._err(t,O.endTagWithoutMatchingOpenElement)}}function Dt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,O.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,O.endTagWithoutMatchingOpenElement)}function xr(e,t){e.openElements.pop(),e.insertionMode=_.AFTER_HEAD,e._processToken(t)}function $f(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:Je(e,t);break;case c.NOSCRIPT:e._err(t,O.nestedNoscriptInHead);break;default:Ar(e,t)}}function Yf(e,t){switch(t.tagID){case c.NOSCRIPT:e.openElements.pop(),e.insertionMode=_.IN_HEAD;break;case c.BR:Ar(e,t);break;default:e._err(t,O.endTagWithoutMatchingOpenElement)}}function Ar(e,t){const r=t.type===ie.EOF?O.openElementsLeftAfterEof:O.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=_.IN_HEAD,e._processToken(t)}function qf(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.BODY:e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=_.IN_BODY;break;case c.FRAMESET:e._insertElement(t,M.HTML),e.insertionMode=_.IN_FRAMESET;break;case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:e._err(t,O.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),Je(e,t),e.openElements.remove(e.headElement);break;case c.HEAD:e._err(t,O.misplacedStartTagForHeadElement);break;default:_r(e,t)}}function Vf(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:_r(e,t);break;case c.TEMPLATE:Dt(e,t);break;default:e._err(t,O.endTagWithoutMatchingOpenElement)}}function _r(e,t){e._insertFakeElement(w.BODY,c.BODY),e.insertionMode=_.IN_BODY,_n(e,t)}function _n(e,t){switch(t.type){case ie.CHARACTER:ho(e,t);break;case ie.WHITESPACE_CHARACTER:uo(e,t);break;case ie.COMMENT:pi(e,t);break;case ie.START_TAG:ve(e,t);break;case ie.END_TAG:yn(e,t);break;case ie.EOF:go(e,t)}}function uo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ho(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Wf(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Gf(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Qf(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,M.HTML),e.insertionMode=_.IN_FRAMESET)}function Kf(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,M.HTML)}function Xf(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&fi.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,M.HTML)}function Zf(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Jf(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,M.HTML),r||(e.formElement=e.openElements.current))}function ep(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.tagIDs[n];if(r===c.LI&&i===c.LI||(r===c.DD||r===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,M.HTML)}function tp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.tokenizer.state=be.PLAINTEXT}function rp(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.framesetOk=!1}function np(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(w.A);r&&($i(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ip(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ap(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&($i(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function lp(e,t){e.treeAdapter.getDocumentMode(e.document)!==qe.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=_.IN_TABLE}function fo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,M.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function po(e){const t=to(e,It.TYPE);return t!=null&&t.toLowerCase()===Cf}function op(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,M.HTML),po(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function cp(e,t){e._appendElement(t,M.HTML),t.ackSelfClosing=!0}function up(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,M.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function hp(e,t){t.tagName=w.IMG,t.tagID=c.IMG,fo(e,t)}function dp(e,t){e._insertElement(t,M.HTML),e.skipNextNewLine=!0,e.tokenizer.state=be.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=_.TEXT}function fp(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,be.RAWTEXT)}function pp(e,t){e.framesetOk=!1,e._switchToTextParsing(t,be.RAWTEXT)}function Ka(e,t){e._switchToTextParsing(t,be.RAWTEXT)}function mp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===_.IN_TABLE||e.insertionMode===_.IN_CAPTION||e.insertionMode===_.IN_TABLE_BODY||e.insertionMode===_.IN_ROW||e.insertionMode===_.IN_CELL?_.IN_SELECT_IN_TABLE:_.IN_SELECT}function gp(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML)}function Ep(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,M.HTML)}function Tp(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,M.HTML)}function bp(e,t){e._reconstructActiveFormattingElements(),lo(t),zi(t),t.selfClosing?e._appendElement(t,M.MATHML):e._insertElement(t,M.MATHML),t.ackSelfClosing=!0}function kp(e,t){e._reconstructActiveFormattingElements(),oo(t),zi(t),t.selfClosing?e._appendElement(t,M.SVG):e._insertElement(t,M.SVG),t.ackSelfClosing=!0}function Xa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML)}function ve(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:ip(e,t);break;case c.A:np(e,t);break;case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:Xf(e,t);break;case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:Kf(e,t);break;case c.LI:case c.DD:case c.DT:ep(e,t);break;case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:fo(e,t);break;case c.HR:up(e,t);break;case c.RB:case c.RTC:Ep(e,t);break;case c.RT:case c.RP:Tp(e,t);break;case c.PRE:case c.LISTING:Zf(e,t);break;case c.XMP:fp(e,t);break;case c.SVG:kp(e,t);break;case c.HTML:Wf(e,t);break;case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:Je(e,t);break;case c.BODY:Gf(e,t);break;case c.FORM:Jf(e,t);break;case c.NOBR:ap(e,t);break;case c.MATH:bp(e,t);break;case c.TABLE:lp(e,t);break;case c.INPUT:op(e,t);break;case c.PARAM:case c.TRACK:case c.SOURCE:cp(e,t);break;case c.IMAGE:hp(e,t);break;case c.BUTTON:rp(e,t);break;case c.APPLET:case c.OBJECT:case c.MARQUEE:sp(e,t);break;case c.IFRAME:pp(e,t);break;case c.SELECT:mp(e,t);break;case c.OPTION:case c.OPTGROUP:gp(e,t);break;case c.NOEMBED:case c.NOFRAMES:Ka(e,t);break;case c.FRAMESET:Qf(e,t);break;case c.TEXTAREA:dp(e,t);break;case c.NOSCRIPT:e.options.scriptingEnabled?Ka(e,t):Xa(e,t);break;case c.PLAINTEXT:tp(e,t);break;case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:Xa(e,t)}}function xp(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=_.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Ap(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=_.AFTER_BODY,yo(e,t))}function _p(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function yp(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):r&&e.openElements.remove(r))}function Cp(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(w.P,c.P),e._closePElement()}function Sp(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function Np(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function vp(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Ip(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function wp(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(w.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function mo(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(n===s&&(n!==c.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function yn(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:$i(e,t);break;case c.P:Cp(e);break;case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:_p(e,t);break;case c.LI:Sp(e);break;case c.DD:case c.DT:Np(e,t);break;case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:vp(e);break;case c.BR:wp(e);break;case c.BODY:xp(e,t);break;case c.HTML:Ap(e,t);break;case c.FORM:yp(e);break;case c.APPLET:case c.OBJECT:case c.MARQUEE:Ip(e,t);break;case c.TEMPLATE:Dt(e,t);break;default:mo(e,t)}}function go(e,t){e.tmplInsertionModeStack.length>0?_o(e,t):Yi(e,t)}function Lp(e,t){var r;t.tagID===c.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Rp(e,t){e._err(t,O.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function jn(e,t){if(e.openElements.currentTagId!==void 0&&co.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_.IN_TABLE_TEXT,t.type){case ie.CHARACTER:To(e,t);break;case ie.WHITESPACE_CHARACTER:Eo(e,t)}else Dr(e,t)}function Op(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,M.HTML),e.insertionMode=_.IN_CAPTION}function Dp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,M.HTML),e.insertionMode=_.IN_COLUMN_GROUP}function Pp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(w.COLGROUP,c.COLGROUP),e.insertionMode=_.IN_COLUMN_GROUP,qi(e,t)}function Mp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,M.HTML),e.insertionMode=_.IN_TABLE_BODY}function Bp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(w.TBODY,c.TBODY),e.insertionMode=_.IN_TABLE_BODY,Cn(e,t)}function Fp(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Hp(e,t){po(t)?e._appendElement(t,M.HTML):Dr(e,t),t.ackSelfClosing=!0}function Up(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,M.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Qt(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:Bp(e,t);break;case c.STYLE:case c.SCRIPT:case c.TEMPLATE:Je(e,t);break;case c.COL:Pp(e,t);break;case c.FORM:Up(e,t);break;case c.TABLE:Fp(e,t);break;case c.TBODY:case c.TFOOT:case c.THEAD:Mp(e,t);break;case c.INPUT:Hp(e,t);break;case c.CAPTION:Op(e,t);break;case c.COLGROUP:Dp(e,t);break;default:Dr(e,t)}}function vr(e,t){switch(t.tagID){case c.TABLE:e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break;case c.TEMPLATE:Dt(e,t);break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Dr(e,t)}}function Dr(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_n(e,t),e.fosterParentingEnabled=r}function Eo(e,t){e.pendingCharacterTokens.push(t)}function To(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function dr(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Dr(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var bo=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function jp(e,t){const r=t.tagID;bo.has(r)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_.IN_TABLE,Qt(e,t)):ve(e,t)}function zp(e,t){const r=t.tagID;switch(r){case c.CAPTION:case c.TABLE:e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_.IN_TABLE,r===c.TABLE&&vr(e,t));break;case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:yn(e,t)}}function qi(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.COL:e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break;case c.TEMPLATE:Je(e,t);break;default:ln(e,t)}}function $p(e,t){switch(t.tagID){case c.COLGROUP:e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=_.IN_TABLE);break;case c.TEMPLATE:Dt(e,t);break;case c.COL:break;default:ln(e,t)}}function ln(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=_.IN_TABLE,e._processToken(t))}function Cn(e,t){switch(t.tagID){case c.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,M.HTML),e.insertionMode=_.IN_ROW;break;case c.TH:case c.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(w.TR,c.TR),e.insertionMode=_.IN_ROW,Sn(e,t);break;case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE,Qt(e,t));break;default:Qt(e,t)}}function mi(e,t){const r=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE);break;case c.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE,vr(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:vr(e,t)}}function Sn(e,t){switch(t.tagID){case c.TH:case c.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,M.HTML),e.insertionMode=_.IN_CELL,e.activeFormattingElements.insertMarker();break;case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY,Cn(e,t));break;default:Qt(e,t)}}function ko(e,t){switch(t.tagID){case c.TR:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY);break;case c.TABLE:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY,mi(e,t));break;case c.TBODY:case c.TFOOT:case c.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY,mi(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:vr(e,t)}}function Yp(e,t){const r=t.tagID;bo.has(r)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),Sn(e,t)):ve(e,t)}function qp(e,t){const r=t.tagID;switch(r){case c.TD:case c.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_.IN_ROW);break;case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),ko(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:yn(e,t)}}function xo(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.OPTION:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,M.HTML);break;case c.OPTGROUP:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,M.HTML);break;case c.HR:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break;case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break;case c.SCRIPT:case c.TEMPLATE:Je(e,t)}}function Ao(e,t){switch(t.tagID){case c.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break;case c.OPTION:e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break;case c.SELECT:e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break;case c.TEMPLATE:Dt(e,t)}}function Vp(e,t){const r=t.tagID;r===c.CAPTION||r===c.TABLE||r===c.TBODY||r===c.TFOOT||r===c.THEAD||r===c.TR||r===c.TD||r===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):xo(e,t)}function Wp(e,t){const r=t.tagID;r===c.CAPTION||r===c.TABLE||r===c.TBODY||r===c.TFOOT||r===c.THEAD||r===c.TR||r===c.TD||r===c.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ao(e,t)}function Gp(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:Je(e,t);break;case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:e.tmplInsertionModeStack[0]=_.IN_TABLE,e.insertionMode=_.IN_TABLE,Qt(e,t);break;case c.COL:e.tmplInsertionModeStack[0]=_.IN_COLUMN_GROUP,e.insertionMode=_.IN_COLUMN_GROUP,qi(e,t);break;case c.TR:e.tmplInsertionModeStack[0]=_.IN_TABLE_BODY,e.insertionMode=_.IN_TABLE_BODY,Cn(e,t);break;case c.TD:case c.TH:e.tmplInsertionModeStack[0]=_.IN_ROW,e.insertionMode=_.IN_ROW,Sn(e,t);break;default:e.tmplInsertionModeStack[0]=_.IN_BODY,e.insertionMode=_.IN_BODY,ve(e,t)}}function Qp(e,t){t.tagID===c.TEMPLATE&&Dt(e,t)}function _o(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Yi(e,t)}function Kp(e,t){t.tagID===c.HTML?ve(e,t):on(e,t)}function yo(e,t){var r;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=_.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else on(e,t)}function on(e,t){e.insertionMode=_.IN_BODY,_n(e,t)}function Xp(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.FRAMESET:e._insertElement(t,M.HTML);break;case c.FRAME:e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break;case c.NOFRAMES:Je(e,t)}}function Zp(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=_.AFTER_FRAMESET))}function Jp(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.NOFRAMES:Je(e,t)}}function em(e,t){t.tagID===c.HTML&&(e.insertionMode=_.AFTER_AFTER_FRAMESET)}function tm(e,t){t.tagID===c.HTML?ve(e,t):tn(e,t)}function tn(e,t){e.insertionMode=_.IN_BODY,_n(e,t)}function rm(e,t){switch(t.tagID){case c.HTML:ve(e,t);break;case c.NOFRAMES:Je(e,t)}}function nm(e,t){t.chars="�",e._insertCharacters(t)}function im(e,t){e._insertCharacters(t),e.framesetOk=!1}function Co(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==M.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function am(e,t){if(kf(t))Co(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===M.MATHML?lo(t):n===M.SVG&&(xf(t),oo(t)),zi(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function sm(e,t){if(t.tagID===c.P||t.tagID===c.BR){Co(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===M.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}var S1=new Set([w.AREA,w.BASE,w.BASEFONT,w.BGSOUND,w.BR,w.COL,w.EMBED,w.FRAME,w.HR,w.IMG,w.INPUT,w.KEYGEN,w.LINK,w.META,w.PARAM,w.SOURCE,w.TRACK,w.WBR]),Nn=So("end"),it=So("start");function So(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function No(e){const t=it(e),r=Nn(e);if(t&&r)return{start:t,end:r}}var lm=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,om=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Za={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function vo(e,t){const r=Tm(e),n=Kl("type",{handlers:{root:cm,element:um,text:hm,comment:wo,doctype:dm,raw:pm},unknown:mm}),i={parser:r?new Qa(Za):Qa.getFragmentParser(void 0,Za),handle(l){n(l,i)},stitches:!1,options:t||{}};n(e,i),er(i,it());const a=r?i.parser.document:i.parser.getFragment(),s=Td(a,{file:i.options.file});return i.stitches&&Ge(s,"comment",function(l,o,u){const d=l;if(d.value.stitch&&u&&o!==void 0){const h=u.children;return h[o]=d.value.stitch,o}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Io(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function cm(e,t){Io(e.children,t)}function um(e,t){gm(e,t),Io(e.children,t),Em(e,t)}function hm(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:ie.CHARACTER,chars:e.value,location:Pr(e)};er(t,it(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function dm(e,t){const r={type:ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Pr(e)};er(t,it(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function fm(e,t){t.stitches=!0;const r=bm(e);"children"in e&&"children"in r&&(r.children=vo({type:"root",children:e.children},t.options).children),wo({type:"comment",value:{stitch:r}},t)}function wo(e,t){const r=e.value,n={type:ie.COMMENT,data:r,location:Pr(e)};er(t,it(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function pm(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Lo(t,it(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(lm,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function mm(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))fm(r,t);else{let n="";throw om.has(r.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+n)}}function er(e,t){Lo(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=be.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Lo(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function gm(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===be.PLAINTEXT)return;er(t,it(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:vt.html;i===vt.html&&r==="svg"&&(i=vt.svg);const a=_d({...e,children:[]},{space:i===vt.svg?"svg":"html"}),s={type:ie.START_TAG,tagName:r,tagID:Jt(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Pr(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function Em(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Ld.includes(r)||t.parser.tokenizer.state===be.PLAINTEXT)return;er(t,Nn(e));const n={type:ie.END_TAG,tagName:r,tagID:Jt(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Pr(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===be.RCDATA||t.parser.tokenizer.state===be.RAWTEXT||t.parser.tokenizer.state===be.SCRIPT_DATA)&&(t.parser.tokenizer.state=be.DATA)}function Tm(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Pr(e){const t=it(e)||{line:void 0,column:void 0,offset:void 0},r=Nn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function bm(e){return"children"in e?wt({...e,children:[]}):wt(e)}function gi(e){return function(t,r){return vo(t,{...e,file:r})}}var _t=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],gt={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[..._t,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[..._t],h2:[["className","sr-only"]],img:[..._t,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[..._t,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[..._t],table:[..._t],ul:[..._t,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Et={}.hasOwnProperty;function km(e,t){let r={type:"root",children:[]};const n=Ro({schema:t?{...gt,...t}:gt,stack:[]},e);return n&&(Array.isArray(n)?n.length===1?r=n[0]:r.children=n:r=n),r}function Ro(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return xm(e,r);case"doctype":return Am(e,r);case"element":return _m(e,r);case"root":return ym(e,r);case"text":return Cm(e,r)}}}function xm(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return Mr(i,t),i}}function Am(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return Mr(r,t),r}}function _m(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=Oo(e,t.children),i=Sm(e,t.properties);e.stack.pop();let a=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&Et.call(e.schema.ancestors,r))){const l=e.schema.ancestors[r];let o=-1;for(a=!1;++o<l.length;)e.stack.includes(l[o])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:i,children:n};return Mr(s,t),s}function ym(e,t){const r={type:"root",children:Oo(e,t.children)};return Mr(r,t),r}function Cm(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return Mr(r,t),r}function Oo(e,t){const r=[];if(Array.isArray(t)){const n=t;let i=-1;for(;++i<n.length;){const a=Ro(e,n[i]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function Sm(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,a=n&&Et.call(n,r)?n[r]:void 0,s=n&&Et.call(n,"*")?n["*"]:void 0,l=t&&typeof t=="object"?t:{},o={};let u;for(u in l)if(Et.call(l,u)){const d=l[u];let h=Ja(e,es(a,u),u,d);h==null&&(h=Ja(e,es(s,u),u,d)),h!=null&&(o[u]=h)}if(i&&Et.call(i,r)){const d=i[r];for(u in d)Et.call(d,u)&&!Et.call(o,u)&&(o[u]=d[u])}return o}function Ja(e,t,r,n){return t?Array.isArray(n)?Nm(e,t,r,n):Do(e,t,r,n):void 0}function Nm(e,t,r,n){let i=-1;const a=[];for(;++i<n.length;){const s=Do(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function Do(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&vm(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function vm(e,t,r){const n=e.schema.protocols&&Et.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const i=String(r),a=i.indexOf(":"),s=i.indexOf("?"),l=i.indexOf("#"),o=i.indexOf("/");if(a<0||o>-1&&a>o||s>-1&&a>s||l>-1&&a>l)return!0;let u=-1;for(;++u<n.length;){const d=n[u];if(a===d.length&&i.slice(0,d.length)===d)return!0}return!1}function Mr(e,t){const r=No(t);t.data&&(e.data=wt(t.data)),r&&(e.position=r)}function es(e,t){let r,n=-1;if(e)for(;++n<e.length;){const i=e[n],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function Po(e){return function(t){return km(t,e)}}function ts(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var Re=At(/[A-Za-z]/),Ne=At(/[\dA-Za-z]/),Im=At(/[#-'*+\--9=?A-Z^-~]/);function cn(e){return e!==null&&(e<32||e===127)}var Ei=At(/\d/),wm=At(/[\dA-Fa-f]/),Lm=At(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function fe(e){return e!==null&&(e<0||e===32)}function se(e){return e===-2||e===-1||e===32}var vn=At(/\p{P}|\p{S}/u),Lt=At(/\s/);function At(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Rm(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Om(e,t,r){const n=bn((r||{}).ignore||[]),i=Dm(t);let a=-1;for(;++a<i.length;)xn(e,"text",s);function s(o,u){let d=-1,h;for(;++d<u.length;){const p=u[d],f=h?h.children:void 0;if(n(p,f?f.indexOf(p):void 0,h))return;h=p}if(h)return l(o,u)}function l(o,u){const d=u[u.length-1],h=i[a][0],p=i[a][1];let f=0;const g=d.children.indexOf(o);let N=!1,y=[];h.lastIndex=0;let A=h.exec(o.value);for(;A;){const C=A.index,k={index:A.index,input:A.input,stack:[...u,o]};let R=p(...A,k);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=C+1:(f!==C&&y.push({type:"text",value:o.value.slice(f,C)}),Array.isArray(R)?y.push(...R):R&&y.push(R),f=C+A[0].length,N=!0),!h.global)break;A=h.exec(o.value)}return N?(f<o.value.length&&y.push({type:"text",value:o.value.slice(f)}),d.children.splice(g,1,...y)):y=[o],g+y.length}}function Dm(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([Pm(i[0]),Mm(i[1])])}return t}function Pm(e){return typeof e=="string"?new RegExp(Rm(e),"g"):e}function Mm(e){return typeof e=="function"?e:function(){return e}}var zn="phrasing",$n=["autolink","link","image","label"];function Bm(){return{transforms:[Ym],enter:{literalAutolink:Hm,literalAutolinkEmail:Yn,literalAutolinkHttp:Yn,literalAutolinkWww:Yn},exit:{literalAutolink:$m,literalAutolinkEmail:zm,literalAutolinkHttp:Um,literalAutolinkWww:jm}}}function Fm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:zn,notInConstruct:$n},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:zn,notInConstruct:$n},{character:":",before:"[ps]",after:"\\/",inConstruct:zn,notInConstruct:$n}]}}function Hm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Yn(e){this.config.enter.autolinkProtocol.call(this,e)}function Um(e){this.config.exit.autolinkProtocol.call(this,e)}function jm(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function zm(e){this.config.exit.autolinkEmail.call(this,e)}function $m(e){this.exit(e)}function Ym(e){Om(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,qm],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Vm]],{ignore:["link","linkReference"]})}function qm(e,t,r,n,i){let a="";if(!Mo(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!Wm(r)))return!1;const s=Gm(r+n);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function Vm(e,t,r,n){return!Mo(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Wm(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Gm(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=ts(e,"(");let a=ts(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function Mo(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Lt(r)||vn(r))&&(!t||r!==47)}function Xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Bo.peek=ng;function Qm(){this.buffer()}function Km(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Xm(){this.buffer()}function Zm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Jm(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Xe(this.sliceSerialize(e)).toLowerCase(),r.label=t}function eg(e){this.exit(e)}function tg(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Xe(this.sliceSerialize(e)).toLowerCase(),r.label=t}function rg(e){this.exit(e)}function ng(){return"["}function Bo(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const s=r.enter("footnoteReference"),l=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),l(),s(),a+=i.move("]"),a}function ig(){return{enter:{gfmFootnoteCallString:Qm,gfmFootnoteCall:Km,gfmFootnoteDefinitionLabelString:Xm,gfmFootnoteDefinition:Zm},exit:{gfmFootnoteCallString:Jm,gfmFootnoteCall:eg,gfmFootnoteDefinitionLabelString:tg,gfmFootnoteDefinition:rg}}}function ag(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Bo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,s){const l=a.createTracker(s);let o=l.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return o+=l.move(a.safe(a.associationId(n),{before:o,after:"]"})),d(),o+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),o+=l.move((t?`
4
4
  `:" ")+a.indentLines(a.containerFlow(n,l.current()),t?Fo:sg))),u(),o}}function sg(e,t,r){return t===0?e:Fo(e,t,r)}function Fo(e,t,r){return(r?"":" ")+e}var lg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ho.peek=dg;function og(){return{canContainEols:["delete"],enter:{strikethrough:ug},exit:{strikethrough:hg}}}function cg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lg}],handlers:{delete:Ho}}}function ug(e){this.enter({type:"delete",children:[]},e)}function hg(e){this.exit(e)}function Ho(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function dg(){return"~"}function fg(e){return e.length}function pg(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||fg,a=[],s=[],l=[],o=[];let u=0,d=-1;for(;++d<e.length;){const N=[],y=[];let A=-1;for(e[d].length>u&&(u=e[d].length);++A<e[d].length;){const C=mg(e[d][A]);if(r.alignDelimiters!==!1){const k=i(C);y[A]=k,(o[A]===void 0||k>o[A])&&(o[A]=k)}N.push(C)}s[d]=N,l[d]=y}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<u;)a[h]=rs(n[h]);else{const N=rs(n);for(;++h<u;)a[h]=N}h=-1;const p=[],f=[];for(;++h<u;){const N=a[h];let y="",A="";N===99?(y=":",A=":"):N===108?y=":":N===114&&(A=":");let C=r.alignDelimiters===!1?1:Math.max(1,o[h]-y.length-A.length);const k=y+"-".repeat(C)+A;r.alignDelimiters!==!1&&(C=y.length+C+A.length,C>o[h]&&(o[h]=C),f[h]=C),p[h]=k}s.splice(1,0,p),l.splice(1,0,f),d=-1;const g=[];for(;++d<s.length;){const N=s[d],y=l[d];h=-1;const A=[];for(;++h<u;){const C=N[h]||"";let k="",R="";if(r.alignDelimiters!==!1){const D=o[h]-(y[h]||0),I=a[h];I===114?k=" ".repeat(D):I===99?D%2?(k=" ".repeat(D/2+.5),R=" ".repeat(D/2-.5)):(k=" ".repeat(D/2),R=k):R=" ".repeat(D)}r.delimiterStart!==!1&&!h&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&C==="")&&(r.delimiterStart!==!1||h)&&A.push(" "),r.alignDelimiters!==!1&&A.push(k),A.push(C),r.alignDelimiters!==!1&&A.push(R),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||h!==u-1)&&A.push("|")}g.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return g.join(`
5
5
  `)}function mg(e){return e==null?"":String(e)}function rs(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function gg(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),Eg);return i(),s}function Eg(e,t,r){return">"+(r?"":" ")+e}function Tg(e,t){return ns(e,t.inConstruct,!0)&&!ns(e,t.notInConstruct,!1)}function ns(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function is(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
@@ -121,7 +121,7 @@ ${e}</tr>
121
121
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${$e(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:r,tokens:n,autolink:i}){let a=i?$e(r,!0):this.parser.parseInline(n),s=$s(e);if(s===null)return a;e=$e(s,i);let l='<a href="'+e+'"';return t&&(l+=' title="'+$e(t)+'"'),l+=">"+a+"</a>",l}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=$s(e);if(i===null)return $e(r);e=i;let a=`<img src="${$e(e)}" alt="${$e(r)}"`;return t&&(a+=` title="${$e(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:$e(e.text)}},fa=class{parser;strong({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}em({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}codespan({text:e}){return e}del({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}html({text:e}){return e}text({text:e}){return e}link({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}image({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}br(){return""}checkbox({raw:e}){return e}},Ke=class vi{options;renderer;textRenderer;constructor(t){this.options=t||Mt,this.options.renderer=this.options.renderer||new pn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new fa,this.textRenderer.parser=this}static parse(t,r){return new vi(r).parse(t)}static parseInline(t,r){return new vi(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let s=i,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){r+=l||"";continue}}let a=i;switch(a.type){case"space":r+=this.renderer.space(a);break;case"hr":r+=this.renderer.hr(a);break;case"heading":r+=this.renderer.heading(a);break;case"code":r+=this.renderer.code(a);break;case"table":r+=this.renderer.table(a);break;case"blockquote":r+=this.renderer.blockquote(a);break;case"list":r+=this.renderer.list(a);break;case"checkbox":r+=this.renderer.checkbox(a);break;case"html":r+=this.renderer.html(a);break;case"def":r+=this.renderer.def(a);break;case"paragraph":r+=this.renderer.paragraph(a);break;case"text":r+=this.renderer.text(a);break;default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(a.type)){n+=l||"";continue}}let s=a;switch(s.type){case"escape":n+=r.text(s);break;case"html":n+=r.html(s);break;case"link":n+=r.link(s);break;case"image":n+=r.image(s);break;case"checkbox":n+=r.checkbox(s);break;case"strong":n+=r.strong(s);break;case"em":n+=r.em(s);break;case"codespan":n+=r.codespan(s);break;case"br":n+=r.br(s);break;case"del":n+=r.del(s);break;case"text":n+=r.text(s);break;default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},Er=class{options;block;constructor(e){this.options=e||Mt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?We.lex:We.lexInline}provideParser(e=this.block){return e?Ke.parse:Ke.parseInline}};function St(e,t){if(Array.isArray(t))for(let r=0;r<t.length;r++)e.push(t[r]);else e.push(t)}var e_=class{defaults=sa();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ke;Renderer=pn;TextRenderer=fa;Lexer=We;Tokenizer=Vt;Hooks=Er;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(St(r,t.call(this,n)),n.type){case"table":{let i=n;for(let a of i.header)St(r,this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)St(r,this.walkTokens(s.tokens,t));break}case"list":{let i=n;St(r,this.walkTokens(i.items,t));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);St(r,this.walkTokens(s,t))}):i.tokens&&St(r,this.walkTokens(i.tokens,t))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new pn(this.defaults);for(let a in r.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=r.renderer[s],o=i[s];i[s]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=o.apply(i,u)),d||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Vt(this.defaults);for(let a in r.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=r.tokenizer[s],o=i[s];i[s]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=o.apply(i,u)),d}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new Er;for(let a in r.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=r.hooks[s],o=i[s];Er.passThroughHooks.has(a)?i[s]=u=>{if(i.options.async&&Er.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(i,u);return o.call(i,h)})();let d=l.call(i,u);return o.call(i,d)}:i[s]=(...u)=>{if(i.options.async)return(async()=>{let h=await l.apply(i,u);return h===!1&&(h=await o.apply(i,u)),h})();let d=l.apply(i,u);return d===!1&&(d=o.apply(i,u)),d}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,a=r.walkTokens;n.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&St(l,i.call(this,s)),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return We.lex(e,t??this.defaults)}parser(e,t){return Ke.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,l=await(i.hooks?await i.hooks.provideLexer(e):e?We.lex:We.lexInline)(s,i),o=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser(e):e?Ke.parse:Ke.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer(e):e?We.lex:We.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(e):e?Ke.parse:Ke.parseInline)(s,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(e,t){return r=>{if(r.message+=`
122
122
  Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+$e(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Rt=new e_;function de(e,t){return Rt.parse(e,t)}de.options=de.setOptions=function(e){return Rt.setOptions(e),de.defaults=Rt.defaults,Dc(de.defaults),de};de.getDefaults=sa;de.defaults=Mt;function t_(...e){return Rt.use(...e),de.defaults=Rt.defaults,Dc(de.defaults),de}de.use=t_;de.walkTokens=function(e,t){return Rt.walkTokens(e,t)};de.parseInline=Rt.parseInline;de.Parser=Ke;de.parser=Ke.parse;de.Renderer=pn;de.TextRenderer=fa;de.Lexer=We;de.lexer=We.lex;de.Tokenizer=Vt;de.Hooks=Er;de.parse=de;var N1=de.options,v1=de.setOptions,I1=de.walkTokens,w1=de.parseInline,L1=Ke.parse,R1=We.lex,r_=300,n_="300px",i_=500;function a_(e={}){let{immediate:t=!1,debounceDelay:r=r_,rootMargin:n=n_,idleTimeout:i=i_}=e,[a,s]=(0,T.useState)(!1),l=(0,T.useRef)(null),o=(0,T.useRef)(null),u=(0,T.useRef)(null),d=(0,T.useMemo)(()=>f=>{let g=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-g))})},1)},[]),h=(0,T.useMemo)(()=>typeof window<"u"&&window.requestIdleCallback?(f,g)=>window.requestIdleCallback(f,g):d,[d]),p=(0,T.useMemo)(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return(0,T.useEffect)(()=>{if(t){s(!0);return}let f=l.current;if(!f)return;o.current&&(clearTimeout(o.current),o.current=null),u.current&&(p(u.current),u.current=null);let g=()=>{o.current&&(clearTimeout(o.current),o.current=null),u.current&&(p(u.current),u.current=null)},N=k=>{u.current=h(R=>{R.timeRemaining()>0||R.didTimeout?(s(!0),k.disconnect()):u.current=h(()=>{s(!0),k.disconnect()},{timeout:i/2})},{timeout:i})},y=k=>{g(),o.current=window.setTimeout(()=>{var R,D;let I=k.takeRecords();(I.length===0||(D=(R=I.at(-1))==null?void 0:R.isIntersecting)!=null&&D)&&N(k)},r)},A=(k,R)=>{k.isIntersecting?y(R):g()},C=new IntersectionObserver(k=>{for(let R of k)A(R,C)},{rootMargin:n,threshold:0});return C.observe(f),()=>{o.current&&clearTimeout(o.current),u.current&&p(u.current),C.disconnect()}},[t,r,n,i,p,h]),{shouldRender:a,containerRef:l}}var s_=320,l_=4,$c=()=>typeof performance>"u"?Date.now():performance.now();function Qs(e){var t,r;let n=(t=e?.now)!=null?t:$c,i=(r=e?.maxBacklogMs)!=null?r:s_,a=0,s=0;return{now:n,beginPass(l){s=Math.min(Math.max(a,l),l+i)},mark(){return s},rewind(l){s=l},take(l,o,u){if(l<=0)return{baseDelay:0,step:Math.max(0,o)};let d=Math.max(0,o),h=d===0?0:Math.min(d,l_),p=Math.max(s,u),f=u+i,g=p+Math.max(0,l-1)*d,N=d;if(g>f&&l>1)if(p<f){let A=f-p;N=Math.max(h,A/(l-1))}else N=h;let y=Math.max(0,Math.round(p-u));return s=p+l*N,{baseDelay:y,step:N}},commitPass(){a=s}}}var Yc=/\s/,o_=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\u3000-\u303F\uFF00-\uFFEF]/u,pa=/^\s+$/,c_=new Set(["pre","svg","math","annotation"]),u_=new Set(["img","hr"]),zr=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",ma=e=>e.some(t=>zr(t)&&c_.has(t.tagName)),h_=e=>{for(let t=e.length-1;t>=0;t--){let r=e[t];if(zr(r)&&r.tagName==="li")return r}},d_=(e,t,r,n)=>{e.properties??={},e.properties["data-sd-animate-marker"]=!0;let i=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${i}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(r)}ms;--sd-marker-easing:${n}`},f_=new Set(["ul","ol","li"]),qc=e=>{for(let t of e.children)if(zr(t)){if(t.tagName==="input")return t;if(f_.has(t.tagName))continue;let r=qc(t);if(r)return r}},Vc=(e,t,r,n)=>{e.properties??={},e.properties["data-sd-animate"]=!0;let i=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${i}--sd-animation:sd-${t.animation};--sd-duration:${r}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(n)}ms`},p_=(e,t,r,n)=>{let i=qc(e);i&&Vc(i,t,r,n)},m_=(e,t,r,n,i,a)=>{if(ma(t))return;let s=n.prevContentLength,l=i.count;i.count+=1;let o=s>0&&l<s,u=o?0:a.baseDelay+i.newIndex++*a.step;Vc(e,r,o?0:r.duration,u)},g_=e=>{var t;for(let r=e.length-1;r>=0;r-=1){let n=e[r];if(zr(n)){if((t=n.properties)!=null&&t["data-sd-animated"])break;n.properties={...n.properties,"data-sd-animated":!0}}}},Wc=e=>{let t=[],r="",n=!1,i=!1;for(let a of e){let s=Yc.test(a),l=!s&&o_.test(a);if(!s&&r!==""&&(l||i))t.push(r),r="",n=!1;else if(s!==n&&r){if(s){r+=a,n=!0;continue}t.push(r),r=""}r+=a,n=s,i=l}return r&&t.push(r),t},Gc=e=>{let t=[],r="";for(let n of e)Yc.test(n)?t.length>0&&!pa.test(t.at(-1))?t[t.length-1]+=n:r+=n:(r&&(t.push(r),r=""),t.push(n));return r&&(t.length>0?t[t.length-1]+=r:t.push(r)),t},Ks=/^[^\s;:'"\\/](?:[^;:'"\\/\r\n]*[^\s;:'"\\/])?$/,E_=(e,t,r,n)=>{let i=`sd-${t.animation}`,a=`${r?0:t.duration}ms`,s;return t.styleObjects?(s={"--sd-animation":i,"--sd-duration":a,"--sd-easing":t.easing},n&&(s["--sd-delay"]=`${Math.round(n)}ms`)):(s=`--sd-animation:${i};--sd-duration:${a};--sd-easing:${t.easing}`,n&&(s+=`;--sd-delay:${Math.round(n)}ms`)),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},Xs=(e,t)=>!(e>0&&t<e),Ii=e=>zr(e)&&u_.has(e.tagName),T_=(e,t,r)=>{let n=0,i=0;return xn(e,a=>a.type==="text"||Ii(a),(a,s)=>{if(ma(s))return $t;if(Ii(a)){Xs(r,i)&&(n+=1),i+=1;return}let l=a.value;if(!l.trim()){i+=l.length;return}let o=t.sep==="char"?Gc(l):Wc(l);for(let u of o){let d=i;i+=u.length,!pa.test(u)&&Xs(r,d)&&(n+=1)}}),n},b_=(e,t,r,n,i,a)=>{var s;let l=t.at(-1);if(!(l&&"children"in l))return;if(ma(t))return $t;let o=l,u=o.children.indexOf(e);if(u===-1)return;let d=e.value;if(!d.trim()){i.count+=d.length;return}let h=r.sep==="char"?Gc(d):Wc(d),p=n.prevContentLength,f=!1,g=h_(t),N=!!(g&&!((s=g.properties)!=null&&s["data-sd-animate-marker"])),y=!1,A=h.map(C=>{let k=i.count;if(i.count+=C.length,pa.test(C))return{type:"text",value:C};let R=p>0&&k<p,D=R?0:a.baseDelay+i.newIndex++*a.step;if(f=!0,g&&N&&!y){let I=R?0:r.duration;d_(g,I,D,r.easing),p_(g,r,I,D),y=!0}return E_(C,r,R,D)});return f&&g_(t),o.children.splice(u,1,...A),u+A.length},k_=0;function x_(e){return Qc(e,!1)}var A_=e=>Qc(e,!0);function Qc(e,t){var r,n,i,a,s;let l=(r=e?.animation)!=null?r:"fadeIn",o=(n=e?.easing)!=null?n:"ease",u={animation:l,duration:(i=e?.duration)!=null?i:150,easing:o,sep:(a=e?.sep)!=null?a:"word",stagger:(s=e?.stagger)!=null?s:40,styleObjects:t&&Ks.test(l)&&Ks.test(o),timeline:e?.timeline},d={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},h=k_++,p=()=>f=>{var g;let N={count:0,newIndex:0};d.prevContentLength=d.committedCharCount;let y=u.timeline,A=(g=y?.now())!=null?g:$c();y&&(d.pendingMark===null?d.pendingMark=y.mark():y.rewind(d.pendingMark));let C=y?y.take(T_(f,u,d.prevContentLength),u.stagger,A):{baseDelay:0,step:u.stagger};xn(f,k=>k.type==="text"||Ii(k),(k,R)=>{if(k.type==="text")return b_(k,R,u,d,N,C);m_(k,R,u,d,N,C)}),d.lastRenderCharCount=N.count,d.prevContentLength=0};return Object.defineProperty(p,"name",{value:`rehypeAnimate$${h}`}),{name:"animate",type:"animate",rehypePlugin:p,setPrevContentLength(f){d.committedCharCount=f,d.prevContentLength=f},getLastRenderCharCount(){return d.lastRenderCharCount},commit(){d.committedCharCount=d.lastRenderCharCount,d.pendingMark=null}}}x_();var Kc=(0,T.createContext)(!1),Xc=()=>(0,T.useContext)(Kc),Ln=(...e)=>Ol(Rl(e)),__=(e,t)=>{if(!e||!t)return t;let r=`${e}:`;return t.split(/\s+/).filter(Boolean).map(n=>n.startsWith(r)?n:`${e}:${n}`).join(" ")},y_=e=>e?(...t)=>__(e,Ol(Rl(t))):Ln,Wt=(e,t,r)=>{let n=typeof t=="string"&&r.startsWith("text/csv")?"\uFEFF":"",i=typeof t=="string"?new Blob([n+t],{type:r}):t,a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},wi=(0,T.createContext)(Ln),ae=()=>(0,T.useContext)(wi),C_=8,Zc=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},Jc=(e,t,r)=>{let n=(0,T.useRef)(null),i=(0,T.useRef)(!0),a=(0,T.useRef)(!1),s=(0,T.useRef)(null);return(0,T.useEffect)(()=>{let l=n.current;if(!(l&&t))return;let o=()=>{let u=l.scrollHeight-l.scrollTop-l.clientHeight<C_;i.current=u};return l.addEventListener("scroll",o,{passive:!0}),()=>l.removeEventListener("scroll",o)},[t]),(0,T.useEffect)(()=>{e&&!a.current&&(i.current=!0),e||(i.current=!0),a.current=e},[e]),(0,T.useEffect)(()=>()=>{s.current!==null&&cancelAnimationFrame(s.current)},[]),(0,T.useEffect)(()=>{let l=n.current;!(l&&t&&e&&i.current)||s.current!==null||(s.current=requestAnimationFrame(()=>{s.current=null,i.current&&l.scrollTo({top:l.scrollHeight,behavior:"instant"})}))},[e,t,r]),n},S_=Ln("block"),N_=Ln("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),v_=e=>{let t={};for(let r of e.split(";")){let n=r.indexOf(":");if(n>0){let i=r.slice(0,n).trim(),a=r.slice(n+1).trim();i&&a&&(t[i]=a)}}return t},I_=(0,T.memo)(({children:e,result:t,language:r,className:n,maxHeight:i,startLine:a,lineNumbers:s=!0,...l})=>{let o=ae(),{isAnimating:u}=(0,T.useContext)(Ce),d=Zc(i),h=Jc(u,!!d,t),p=(0,T.useMemo)(()=>o(N_),[o]),f=(0,T.useMemo)(()=>o(S_),[o]),g=(0,T.useMemo)(()=>{let N={};return t.bg&&(N["--sdm-bg"]=t.bg),t.fg&&(N["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(N,v_(t.rootStyle)),N},[t.bg,t.fg,t.rootStyle]);return(0,m.jsx)("div",{className:o(n,d?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":r,"data-streamdown":"code-block-body",ref:h,style:d?{maxHeight:d}:void 0,...l,children:(0,m.jsx)("pre",{className:o(n,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:g,children:(0,m.jsx)("code",{className:s?o("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((N,y)=>(0,m.jsx)("span",{className:s?p:f,children:N.length===0||N.length===1&&N[0].content===""?`
123
123
  `:N.map((A,C)=>{let k={},R=!!A.bgColor;if(A.color&&(k["--sdm-c"]=A.color),A.bgColor&&(k["--sdm-tbg"]=A.bgColor),A.htmlStyle)for(let[D,I]of Object.entries(A.htmlStyle))D==="color"?k["--sdm-c"]=I:D==="background-color"?(k["--sdm-tbg"]=I,R=!0):k[D]=I;return(0,m.jsx)("span",{className:o("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",R&&"bg-[var(--sdm-tbg)]",R&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:k,...A.htmlAttrs,children:A.content},C)})},y))})})})}),w_=({className:e,language:t,style:r,isIncomplete:n,...i})=>{let a=ae();return(0,m.jsx)("div",{className:a("relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":n||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...i})},eu=(0,T.createContext)({code:""}),tu=()=>(0,T.useContext)(eu),L_=({language:e})=>{let t=ae();return(0,m.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,m.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},R_=e=>{let t=e.length;for(;t>0&&e[t-1]===`
124
- `;)t--;return e.slice(0,t)},O_=(0,T.lazy)(()=>Dl(()=>import("./highlighted-body-JLMTFACH-D8jkzP7m.js").then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2,3]))),D_=({code:e,language:t,className:r,children:n,isIncomplete:i=!1,startLine:a,lineNumbers:s,...l})=>{let o=ae(),{codeBlockMaxHeight:u}=(0,T.useContext)(Ce),d=(0,T.useMemo)(()=>R_(e),[e]),h=(0,T.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:d.split(`
124
+ `;)t--;return e.slice(0,t)},O_=(0,T.lazy)(()=>Dl(()=>import("./highlighted-body-JLMTFACH-Q1Yc-gaw.js").then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2,3]))),D_=({code:e,language:t,className:r,children:n,isIncomplete:i=!1,startLine:a,lineNumbers:s,...l})=>{let o=ae(),{codeBlockMaxHeight:u}=(0,T.useContext)(Ce),d=(0,T.useMemo)(()=>R_(e),[e]),h=(0,T.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:d.split(`
125
125
  `).map(p=>[{content:p,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[d]);return(0,m.jsx)(eu.Provider,{value:{code:e},children:(0,m.jsxs)(w_,{dir:"ltr",isIncomplete:i,language:t,children:[(0,m.jsx)(L_,{language:t}),n?(0,m.jsx)("div",{className:o("pointer-events-none absolute top-2 right-2 z-10 flex items-center"),children:(0,m.jsx)("div",{className:o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:n})}):null,(0,m.jsx)(T.Suspense,{fallback:(0,m.jsx)(I_,{className:r,language:t,lineNumbers:s,maxHeight:u,result:h,startLine:a,...l}),children:(0,m.jsx)(O_,{className:r,code:d,isIncomplete:i,language:t,lineNumbers:s,maxHeight:u,raw:h,startLine:a,...l})})]})})},P_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),M_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),B_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),F_=e=>(0,m.jsxs)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,m.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,m.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),H_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),U_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),j_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),z_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),$_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Y_=e=>(0,m.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,m.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Tr={CheckIcon:P_,CopyIcon:M_,DownloadIcon:B_,ExternalLinkIcon:z_,Loader2Icon:F_,Maximize2Icon:H_,RotateCcwIcon:U_,XIcon:j_,ZoomInIcon:$_,ZoomOutIcon:Y_},ru=(0,T.createContext)(Tr),q_=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length?!1:r.every(i=>e[i]===t[i])},Zs=({icons:e,children:t})=>{let r=(0,T.useRef)(e),n=(0,T.useRef)(e?{...Tr,...e}:Tr);q_(r.current,e)||(r.current=e,n.current=e?{...Tr,...e}:Tr);let i=n.current;return(0,m.jsx)(ru.Provider,{value:i,children:t})},et=()=>(0,T.useContext)(ru),nu={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",mermaidAriaLabel:"Mermaid chart",errorMermaid:"Failed to render Mermaid chart",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},Li=(0,T.createContext)(nu),tt=()=>(0,T.useContext)(Li),Ri=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:i,code:a,...s})=>{let l=ae(),[o,u]=(0,T.useState)(!1),d=(0,T.useRef)(0),{code:h}=tu(),{isAnimating:p}=(0,T.useContext)(Ce),f=tt(),g=a??h,N=async()=>{var C;if(typeof window>"u"||!((C=navigator?.clipboard)!=null&&C.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(g),u(!0),e?.(),d.current=window.setTimeout(()=>u(!1),r))}catch(k){t?.(k)}};(0,T.useEffect)(()=>()=>{window.clearTimeout(d.current)},[]);let y=et(),A=o?y.CheckIcon:y.CopyIcon;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{"aria-label":f.copyCode,className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:p,onClick:N,title:f.copyCode,type:"button",...s,children:n??(0,m.jsx)(A,{"aria-hidden":"true",size:14})}),o&&(0,m.jsx)("output",{"aria-live":"polite",className:"sr-only",children:f.copied})]})},ga=(e,t,r)=>{if(typeof e=="boolean")return r;let n=e[t];if(typeof n!="object")return r;let i=n.download;return typeof i!="object"?r:i.filename||r},Js=(e,t)=>{if(typeof e=="boolean")return{};let r=e[t];if(typeof r!="object")return{};let n=r.copy;return typeof n!="object"||n===null?{}:{onCopy:n.onCopy,onError:n.onError}},el={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},V_=({onDownload:e,onError:t,language:r,children:n,className:i,code:a,...s})=>{let l=ae(),{code:o}=tu(),{isAnimating:u,controls:d}=(0,T.useContext)(Ce),h=tt(),p=et(),f=a??o,g=r&&r in el?el[r]:"txt",N=`${ga(d,"code","file")}.${g}`,y="text/plain",A=()=>{try{Wt(N,f,y),e?.()}catch(C){t?.(C)}};return(0,m.jsx)("button",{"aria-label":h.downloadFile,className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:A,title:h.downloadFile,type:"button",...s,children:n??(0,m.jsx)(p.DownloadIcon,{size:14})})},tl=()=>{let{Loader2Icon:e}=et(),t=ae();return(0,m.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,m.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,m.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,m.jsx)(e,{className:t("size-4 animate-spin")})})]})},W_=/\.[^/.]+$/,G_=({node:e,className:t,src:r,alt:n,onLoad:i,onError:a,showControls:s=!0,showDownloadControl:l=!0,...o})=>{let{DownloadIcon:u}=et(),d=ae(),h=(0,T.useRef)(null),[p,f]=(0,T.useState)(!1),[g,N]=(0,T.useState)(!1),y=tt(),A=o.width!=null||o.height!=null,C=(p||A)&&!g&&s&&l,k=g&&!A;(0,T.useEffect)(()=>{let U=h.current;if(U!=null&&U.complete){let $=U.naturalWidth>0;f($),N(!$)}},[]);let R=(0,T.useCallback)(U=>{f(!0),N(!1),i?.(U)},[i]),D=(0,T.useCallback)(U=>{f(!1),N(!0),a?.(U)},[a]),I=async()=>{if(r)try{let U=await(await fetch(r)).blob(),$=new URL(r,window.location.origin).pathname.split("/").pop()||"",V=$.split(".").pop(),v=$.includes(".")&&V!==void 0&&V.length<=4,F="";if(v)F=$;else{let z=U.type,Y="png";z.includes("jpeg")||z.includes("jpg")?Y="jpg":z.includes("png")?Y="png":z.includes("svg")?Y="svg":z.includes("gif")?Y="gif":z.includes("webp")&&(Y="webp"),F=`${(n||$||"image").replace(W_,"")}.${Y}`}Wt(F,U,U.type)}catch{window.open(r,"_blank")}};return r?r==="streamdown:incomplete-image"?(0,m.jsx)("div",{className:d("group relative my-4 inline-block"),"data-incomplete":"true","data-streamdown":"image-wrapper",children:(0,m.jsx)("div",{className:d("h-24 w-48 animate-pulse rounded-lg bg-muted"),"data-streamdown":"image-placeholder"})}):(0,m.jsxs)("div",{className:d("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,m.jsx)("img",{alt:n,className:d("max-w-full rounded-lg",k&&"hidden",t),"data-streamdown":"image",onError:D,onLoad:R,ref:h,src:r,...o}),k&&(0,m.jsx)("span",{className:d("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:y.imageNotAvailable}),s&&(0,m.jsx)("div",{className:d("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),C&&(0,m.jsx)("button",{className:d("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:I,title:y.downloadImage,type:"button",children:(0,m.jsx)(u,{size:14})})]}):null},Ea=e=>{let t=typeof e=="function"?e():e;return t??document.body},Sr=0,Ta=()=>{Sr+=1,Sr===1&&(document.body.style.overflow="hidden")},ba=()=>{Sr=Math.max(0,Sr-1),Sr===0&&(document.body.style.overflow="")},Q_=({url:e,isOpen:t,onClose:r,onConfirm:n})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:s,XIcon:l}=et(),o=ae(),[u,d]=(0,T.useState)(!1),h=tt(),{portal:p}=(0,T.useContext)(Ce),f=(0,T.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),2e3)}catch{}},[e]),g=(0,T.useCallback)(()=>{n(),r()},[n,r]);if((0,T.useEffect)(()=>{if(t){Ta();let y=A=>{A.key==="Escape"&&r()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y),ba()}}},[t,r]),!t||typeof document>"u")return null;let N=(0,m.jsx)("div",{className:o("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:r,onKeyDown:y=>{y.key==="Escape"&&r()},role:"button",tabIndex:0,children:(0,m.jsxs)("div",{className:o("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:y=>y.stopPropagation(),onKeyDown:y=>y.stopPropagation(),role:"presentation",children:[(0,m.jsx)("button",{className:o("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:r,title:h.close,type:"button",children:(0,m.jsx)(l,{size:16})}),(0,m.jsxs)("div",{className:o("flex flex-col gap-2"),children:[(0,m.jsxs)("div",{className:o("flex items-center gap-2 font-semibold text-lg"),children:[(0,m.jsx)(s,{size:20}),(0,m.jsx)("span",{children:h.openExternalLink})]}),(0,m.jsx)("p",{className:o("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),(0,m.jsx)("div",{className:o("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),(0,m.jsxs)("div",{className:o("flex gap-2"),children:[(0,m.jsx)("button",{className:o("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:f,type:"button",children:u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i,{size:14}),(0,m.jsx)("span",{children:h.copied})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a,{size:14}),(0,m.jsx)("span",{children:h.copyLink})]})}),(0,m.jsxs)("button",{className:o("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:g,type:"button",children:[(0,m.jsx)(s,{size:14}),(0,m.jsx)("span",{children:h.openLink})]})]})]})});return(0,aa.createPortal)(N,Ea(p))},Oi=(0,T.createContext)(null),ka=()=>(0,T.useContext)(Oi),O1=()=>{var e;let t=ka();return(e=t?.code)!=null?e:null},xa=()=>{var e;let t=ka();return(e=t?.mermaid)!=null?e:null},K_=e=>{var t;let r=ka();return r!=null&&r.renderers&&e&&(t=r.renderers.find(n=>Array.isArray(n.language)?n.language.includes(e):n.language===e))!=null?t:null},iu=/<svg\b[^>]*>/i,X_=/\bviewBox=(['"])(.*?)\1/i,Z_=/[\s,]+/,J_=/\swidth=(['"]).*?\1/gi,ey=/\sheight=(['"]).*?\1/gi,rl=/\sstyle=(['"])(.*?)\1/i,ty=/^width\s*:/i,ry=/^height\s*:/i,ny=/^max-width\s*:/i,nl=/^<svg/i,au=e=>{let t=e.match(iu);if(!t)return null;let r=t[0].match(X_),n=r?.[2];if(!n)return null;let i=n.trim().split(Z_).map(l=>Number.parseFloat(l));if(i.length<4||i.slice(0,4).some(Number.isNaN))return null;let a=i[2],s=i[3];return a>0&&s>0?{height:s,width:a}:null},iy=e=>{let t=e.match(iu);if(!t)return e;try{let r=t[0],n=au(e);if(!n)return e;let{width:i,height:a}=n,s=r.replace(J_,"").replace(ey,""),l=s.match(rl),o=`width:${i}px;height:${a}px;max-width:none;`;if(l){let u=l[1],d=l[2].split(";").map(p=>p.trim()).filter(Boolean).filter(p=>!(ty.test(p)||ry.test(p)||ny.test(p))).join(";"),h=`${o}${d?`${d};`:""}`;s=s.replace(rl,` style=${u}${h}${u}`)}else s=s.replace(nl,`<svg style="${o}"`);return s=s.replace(nl,`<svg width="${i}" height="${a}"`),e.replace(r,s)}catch{return e}},ay=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},sy=(e,t)=>{var r;let n=(r=void 0)!=null?r:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),l=new Image;l.crossOrigin="anonymous",l.onload=()=>{let o=document.createElement("canvas"),u=l.width*n,d=l.height*n;o.width=u,o.height=d;let h=o.getContext("2d");if(!h){a(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(l,0,0,u,d),o.toBlob(p=>{if(!p){a(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},l.onerror=()=>a(new Error("Failed to load SVG image")),l.src=s})},su=({chart:e,children:t,className:r,onDownload:n,config:i,onError:a})=>{let s=ae(),[l,o]=(0,T.useState)(!1),u=(0,T.useRef)(null),{isAnimating:d,controls:h}=(0,T.useContext)(Ce),p=et(),f=xa(),g=tt(),N=ga(h,"mermaid","diagram"),y=async A=>{try{if(A==="mmd"){Wt(`${N}.mmd`,e,"text/plain"),o(!1),n?.(A);return}if(!f){a?.(new Error("Mermaid plugin not available"));return}let C=f.getMermaid(i),k=e.split("").reduce((U,$)=>(U<<5)-U+$.charCodeAt(0)|0,0),R=`mermaid-${Math.abs(k)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:D}=await C.render(R,e);if(!D){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}let I=ay(D);if(A==="svg"){Wt(`${N}.svg`,I,"image/svg+xml"),o(!1),n?.(A);return}if(A==="png"){let U=await sy(I);Wt(`${N}.png`,U,"image/png"),n?.(A),o(!1);return}}catch(C){a?.(C)}};return(0,T.useEffect)(()=>{let A=C=>{let k=C.composedPath();u.current&&!k.includes(u.current)&&o(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[]),(0,m.jsxs)("div",{className:s("relative"),ref:u,children:[(0,m.jsx)("button",{"aria-label":g.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:d,onClick:()=>o(!l),title:g.downloadDiagram,type:"button",children:t??(0,m.jsx)(p.DownloadIcon,{"aria-hidden":"true",size:14})}),l?(0,m.jsxs)("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,m.jsx)("button",{"aria-label":g.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("svg"),title:g.downloadDiagramAsSvg,type:"button",children:g.mermaidFormatSvg}),(0,m.jsx)("button",{"aria-label":g.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("png"),title:g.downloadDiagramAsPng,type:"button",children:g.mermaidFormatPng}),(0,m.jsx)("button",{"aria-label":g.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("mmd"),title:g.downloadDiagramAsMmd,type:"button",children:g.mermaidFormatMmd})]}):null]})},ly=({chart:e,config:t,onFullscreen:r,onExit:n,className:i,...a})=>{let{Maximize2Icon:s,XIcon:l}=et(),o=ae(),[u,d]=(0,T.useState)(!1),{isAnimating:h,controls:p,portal:f}=(0,T.useContext)(Ce),g=tt(),N=(()=>{if(typeof p=="boolean")return p;let k=p.mermaid;return k===!1?!1:k===!0||k===void 0?!0:k.panZoom!==!1})(),y=(()=>{if(typeof p=="boolean")return p;let k=p.mermaid;return k===!1?!1:k===!0||k===void 0?!0:k.download!==!1})(),A=(()=>{if(typeof p=="boolean")return p;let k=p.mermaid;return k===!1?!1:k===!0||k===void 0?!0:k.copy!==!1})(),C=()=>{d(!u)};return(0,T.useEffect)(()=>{if(u){Ta();let k=R=>{R.key==="Escape"&&d(!1)};return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k),ba()}}},[u]),(0,T.useEffect)(()=>{u?r?.():n&&n()},[u,r,n]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:h,onClick:C,title:g.viewFullscreen,type:"button",...a,"aria-label":g.viewFullscreen,children:(0,m.jsx)(s,{"aria-hidden":"true",size:14})}),u?(0,aa.createPortal)((0,m.jsxs)("div",{"aria-label":g.viewFullscreen,"aria-modal":"true",className:o("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:C,onKeyDown:k=>{k.key==="Escape"&&C()},role:"dialog",children:[(0,m.jsxs)("div",{className:o("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:k=>k.stopPropagation(),onKeyDown:k=>k.stopPropagation(),role:"presentation",children:[y?(0,m.jsx)(su,{chart:e,config:t}):null,A?(0,m.jsx)(Ri,{code:e}):null,(0,m.jsx)("button",{"aria-label":g.exitFullscreen,className:o("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:C,title:g.exitFullscreen,type:"button",children:(0,m.jsx)(l,{"aria-hidden":"true",size:20})})]}),(0,m.jsx)("div",{className:o("flex size-full items-center justify-center p-4"),onClick:k=>k.stopPropagation(),onKeyDown:k=>k.stopPropagation(),role:"presentation",children:(0,m.jsx)(IC,{chart:e,className:o("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:N})})]}),Ea(f)):null]})};function Di(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let r=e;return r.tagName==="BR"?`
126
126
  `:Array.from(r.childNodes).map(Di).join("")}var lu=e=>{let t=[],r=[],n=e.querySelectorAll("thead th");for(let a of n)t.push(Di(a).trim());let i=e.querySelectorAll("tbody tr");for(let a of i){let s=[],l=a.querySelectorAll("td");for(let o of l)s.push(Di(o).trim());r.push(s)}return{headers:t,rows:r}},ou=e=>{var t;if(typeof e!="object")return",";let r=e.table;return typeof r!="object"?",":(t=r.csvSeparator)!=null?t:","},cu=(e,t=",")=>{let r;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?r=";":r=",":r=t;let{headers:n,rows:i}=e,a=u=>{let d=!1;for(let h of u)if(h===r||h==='"'||h===`
127
127
  `||h==="\r"){d=!0;break}return d?`"${u.replace(/"/g,'""')}"`:u},s=n.length>0?i.length+1:i.length,l=new Array(s),o=0;n.length>0&&(l[o]=n.map(a).join(r),o+=1);for(let u of i)l[o]=u.map(a).join(r),o+=1;return l.join(`
@@ -131,7 +131,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
131
131
  `)},ni=e=>{let t=!1;for(let n of e)if(n==="\\"||n==="|"||n===`
132
132
  `||n==="&"||n==="<"||n===">"){t=!0;break}if(!t)return e;let r=[];for(let n of e)n==="\\"?r.push("\\\\"):n==="|"?r.push("\\|"):n===`
133
133
  `?r.push("<br>"):n==="&"?r.push("&amp;"):n==="<"?r.push("&lt;"):n===">"?r.push("&gt;"):r.push(n);return r.join("")},uu=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let n=new Array(r.length+2),i=0,a=t.map(l=>ni(l));n[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let l=0;l<t.length;l+=1)s[l]="---";n[i]=`| ${s.join(" | ")} |`,i+=1;for(let l of r)if(l.length<t.length){let o=new Array(t.length);for(let u=0;u<t.length;u+=1)o[u]=u<l.length?ni(l[u]):"";n[i]=`| ${o.join(" | ")} |`,i+=1}else{let o=l.map(u=>ni(u));n[i]=`| ${o.join(" | ")} |`,i+=1}return n.join(`
134
- `)},hu=({children:e,className:t,onCopy:r,onError:n,timeout:i=2e3})=>{let a=ae(),[s,l]=(0,T.useState)(!1),[o,u]=(0,T.useState)(!1),d=(0,T.useRef)(null),h=(0,T.useRef)(0),{isAnimating:p,controls:f}=(0,T.useContext)(Ce),g=tt(),N=ou(f),y=async k=>{var R,D;if(typeof window>"u"||!((R=navigator?.clipboard)!=null&&R.write)){n?.(new Error("Clipboard API not available"));return}try{let I=(D=d.current)==null?void 0:D.closest('[data-streamdown="table-wrapper"]'),U=I?.querySelector("table");if(!U){n?.(new Error("Table not found"));return}let $=lu(U),V="";k==="csv"?V=cu($,N):k==="tsv"?V=oy($):V=uu($);let v=new ClipboardItem({"text/plain":new Blob([V],{type:"text/plain"}),"text/html":new Blob([U.outerHTML],{type:"text/html"})});await navigator.clipboard.write([v]),u(!0),l(!1),r?.(k),h.current=window.setTimeout(()=>u(!1),i)}catch(I){n?.(I)}};(0,T.useEffect)(()=>{let k=R=>{let D=R.composedPath();d.current&&!D.includes(d.current)&&l(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k),window.clearTimeout(h.current)}},[]);let A=et(),C=o?A.CheckIcon:A.CopyIcon;return(0,m.jsxs)("div",{className:a("relative"),ref:d,children:[(0,m.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>l(!s),title:g.copyTable,type:"button",children:e??(0,m.jsx)(C,{height:14,width:14})}),s?(0,m.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,m.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("md"),title:g.copyTableAsMarkdown,type:"button",children:g.tableFormatMarkdown}),(0,m.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("csv"),title:g.copyTableAsCsv,type:"button",children:g.tableFormatCsv}),(0,m.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("tsv"),title:g.copyTableAsTsv,type:"button",children:g.tableFormatTsv})]}):null]})},du=({children:e,className:t,onDownload:r,onError:n})=>{let i=ae(),[a,s]=(0,T.useState)(!1),l=(0,T.useRef)(null),{isAnimating:o,controls:u}=(0,T.useContext)(Ce),d=tt(),h=et(),p=ou(u),f=g=>{var N;try{let y=(N=l.current)==null?void 0:N.closest('[data-streamdown="table-wrapper"]'),A=y?.querySelector("table");if(!A){n?.(new Error("Table not found"));return}let C=lu(A),k=g==="csv"?cu(C,p):uu(C),R=g==="csv"?"csv":"md";Wt(`${ga(u,"table","table")}.${R}`,k,g==="csv"?"text/csv":"text/markdown"),s(!1),r?.(g)}catch(y){n?.(y)}};return(0,T.useEffect)(()=>{let g=N=>{let y=N.composedPath();l.current&&!y.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),(0,m.jsxs)("div",{className:i("relative"),ref:l,children:[(0,m.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>s(!a),title:d.downloadTable,type:"button",children:e??(0,m.jsx)(h.DownloadIcon,{size:14})}),a?(0,m.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,m.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),(0,m.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},cy=({children:e,className:t,showCopy:r=!0,showDownload:n=!0})=>{let{Maximize2Icon:i,XIcon:a}=et(),s=ae(),[l,o]=(0,T.useState)(!1),{isAnimating:u,portal:d}=(0,T.useContext)(Ce),h=tt(),p=()=>{o(!0)},f=()=>{o(!1)};return(0,T.useEffect)(()=>{if(l){Ta();let g=N=>{N.key==="Escape"&&o(!1)};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g),ba()}}},[l]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:p,title:h.viewFullscreen,type:"button",children:(0,m.jsx)(i,{size:14})}),l?(0,aa.createPortal)((0,m.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:f,onKeyDown:g=>{g.key==="Escape"&&f()},role:"dialog",children:(0,m.jsxs)("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:g=>g.stopPropagation(),onKeyDown:g=>g.stopPropagation(),role:"presentation",children:[(0,m.jsxs)("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[r?(0,m.jsx)(hu,{}):null,n?(0,m.jsx)(du,{}):null,(0,m.jsx)("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:f,title:h.exitFullscreen,type:"button",children:(0,m.jsx)(a,{size:20})})]}),(0,m.jsx)("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,m.jsx)("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),Ea(d)):null]})},uy=({children:e,className:t,maxHeight:r,showControls:n,showCopy:i=!0,showDownload:a=!0,showFullscreen:s=!0,...l})=>{let o=ae(),{isAnimating:u}=(0,T.useContext)(Ce),d=Zc(r),h=Jc(u,!!d,e),p=n&&i,f=n&&a,g=n&&s,N=p||f||g;return(0,m.jsxs)("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[N?(0,m.jsxs)("div",{className:o("flex items-center justify-end gap-1"),children:[p?(0,m.jsx)(hu,{}):null,f?(0,m.jsx)(du,{}):null,g?(0,m.jsx)(cy,{showCopy:p,showDownload:f,children:e}):null]}):null,(0,m.jsx)("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:h,style:d?{maxHeight:d}:void 0,children:(0,m.jsx)("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...l,children:e})})]})},hy=/startLine=(\d+)/,dy=/\bnoLineNumbers\b/,fy=(0,T.lazy)(()=>Dl(()=>import("./mermaid-WFAXDIZX-qzZppTtW.js").then(e=>({default:e.Mermaid})),[])),py=/language-([^\s]+)/,my="node";function Ee(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;let n=e,i=t;for(let a of r)if(a!==my&&!Object.is(n[a],i[a]))return!1;return!0}function gy(e,t){var r,n;return((r=e?.properties)==null?void 0:r.metastring)===((n=t?.properties)==null?void 0:n.metastring)}var mn=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,ii=(e,t)=>{if(typeof e=="boolean")return e;let r=e.table;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},il=(e,t)=>{if(typeof e=="boolean")return e;let r=e.code;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Zr=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Ey=(e,t)=>{if(typeof e=="boolean")return e;let r=e.image;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Aa=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...n,children:e})},(e,t)=>Ee(e,t));Aa.displayName="MarkdownOl";var fu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{var i;let a=ae(),s=Array.isArray(e)?e.filter(o=>o!==`
134
+ `)},hu=({children:e,className:t,onCopy:r,onError:n,timeout:i=2e3})=>{let a=ae(),[s,l]=(0,T.useState)(!1),[o,u]=(0,T.useState)(!1),d=(0,T.useRef)(null),h=(0,T.useRef)(0),{isAnimating:p,controls:f}=(0,T.useContext)(Ce),g=tt(),N=ou(f),y=async k=>{var R,D;if(typeof window>"u"||!((R=navigator?.clipboard)!=null&&R.write)){n?.(new Error("Clipboard API not available"));return}try{let I=(D=d.current)==null?void 0:D.closest('[data-streamdown="table-wrapper"]'),U=I?.querySelector("table");if(!U){n?.(new Error("Table not found"));return}let $=lu(U),V="";k==="csv"?V=cu($,N):k==="tsv"?V=oy($):V=uu($);let v=new ClipboardItem({"text/plain":new Blob([V],{type:"text/plain"}),"text/html":new Blob([U.outerHTML],{type:"text/html"})});await navigator.clipboard.write([v]),u(!0),l(!1),r?.(k),h.current=window.setTimeout(()=>u(!1),i)}catch(I){n?.(I)}};(0,T.useEffect)(()=>{let k=R=>{let D=R.composedPath();d.current&&!D.includes(d.current)&&l(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k),window.clearTimeout(h.current)}},[]);let A=et(),C=o?A.CheckIcon:A.CopyIcon;return(0,m.jsxs)("div",{className:a("relative"),ref:d,children:[(0,m.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>l(!s),title:g.copyTable,type:"button",children:e??(0,m.jsx)(C,{height:14,width:14})}),s?(0,m.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,m.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("md"),title:g.copyTableAsMarkdown,type:"button",children:g.tableFormatMarkdown}),(0,m.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("csv"),title:g.copyTableAsCsv,type:"button",children:g.tableFormatCsv}),(0,m.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("tsv"),title:g.copyTableAsTsv,type:"button",children:g.tableFormatTsv})]}):null]})},du=({children:e,className:t,onDownload:r,onError:n})=>{let i=ae(),[a,s]=(0,T.useState)(!1),l=(0,T.useRef)(null),{isAnimating:o,controls:u}=(0,T.useContext)(Ce),d=tt(),h=et(),p=ou(u),f=g=>{var N;try{let y=(N=l.current)==null?void 0:N.closest('[data-streamdown="table-wrapper"]'),A=y?.querySelector("table");if(!A){n?.(new Error("Table not found"));return}let C=lu(A),k=g==="csv"?cu(C,p):uu(C),R=g==="csv"?"csv":"md";Wt(`${ga(u,"table","table")}.${R}`,k,g==="csv"?"text/csv":"text/markdown"),s(!1),r?.(g)}catch(y){n?.(y)}};return(0,T.useEffect)(()=>{let g=N=>{let y=N.composedPath();l.current&&!y.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),(0,m.jsxs)("div",{className:i("relative"),ref:l,children:[(0,m.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>s(!a),title:d.downloadTable,type:"button",children:e??(0,m.jsx)(h.DownloadIcon,{size:14})}),a?(0,m.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,m.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),(0,m.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},cy=({children:e,className:t,showCopy:r=!0,showDownload:n=!0})=>{let{Maximize2Icon:i,XIcon:a}=et(),s=ae(),[l,o]=(0,T.useState)(!1),{isAnimating:u,portal:d}=(0,T.useContext)(Ce),h=tt(),p=()=>{o(!0)},f=()=>{o(!1)};return(0,T.useEffect)(()=>{if(l){Ta();let g=N=>{N.key==="Escape"&&o(!1)};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g),ba()}}},[l]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:p,title:h.viewFullscreen,type:"button",children:(0,m.jsx)(i,{size:14})}),l?(0,aa.createPortal)((0,m.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:f,onKeyDown:g=>{g.key==="Escape"&&f()},role:"dialog",children:(0,m.jsxs)("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:g=>g.stopPropagation(),onKeyDown:g=>g.stopPropagation(),role:"presentation",children:[(0,m.jsxs)("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[r?(0,m.jsx)(hu,{}):null,n?(0,m.jsx)(du,{}):null,(0,m.jsx)("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:f,title:h.exitFullscreen,type:"button",children:(0,m.jsx)(a,{size:20})})]}),(0,m.jsx)("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,m.jsx)("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),Ea(d)):null]})},uy=({children:e,className:t,maxHeight:r,showControls:n,showCopy:i=!0,showDownload:a=!0,showFullscreen:s=!0,...l})=>{let o=ae(),{isAnimating:u}=(0,T.useContext)(Ce),d=Zc(r),h=Jc(u,!!d,e),p=n&&i,f=n&&a,g=n&&s,N=p||f||g;return(0,m.jsxs)("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[N?(0,m.jsxs)("div",{className:o("flex items-center justify-end gap-1"),children:[p?(0,m.jsx)(hu,{}):null,f?(0,m.jsx)(du,{}):null,g?(0,m.jsx)(cy,{showCopy:p,showDownload:f,children:e}):null]}):null,(0,m.jsx)("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:h,style:d?{maxHeight:d}:void 0,children:(0,m.jsx)("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...l,children:e})})]})},hy=/startLine=(\d+)/,dy=/\bnoLineNumbers\b/,fy=(0,T.lazy)(()=>Dl(()=>import("./mermaid-WFAXDIZX-B2YMTdfH.js").then(e=>({default:e.Mermaid})),[])),py=/language-([^\s]+)/,my="node";function Ee(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;let n=e,i=t;for(let a of r)if(a!==my&&!Object.is(n[a],i[a]))return!1;return!0}function gy(e,t){var r,n;return((r=e?.properties)==null?void 0:r.metastring)===((n=t?.properties)==null?void 0:n.metastring)}var mn=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,ii=(e,t)=>{if(typeof e=="boolean")return e;let r=e.table;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},il=(e,t)=>{if(typeof e=="boolean")return e;let r=e.code;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Zr=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Ey=(e,t)=>{if(typeof e=="boolean")return e;let r=e.image;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Aa=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...n,children:e})},(e,t)=>Ee(e,t));Aa.displayName="MarkdownOl";var fu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{var i;let a=ae(),s=Array.isArray(e)?e.filter(o=>o!==`
135
135
  `&&o!==""):[e],l=s.length===1&&(0,T.isValidElement)(s[0])&&(s[0].type===_a||((i=s[0].props.node)==null?void 0:i.tagname)==="p")?s[0].props.children:e;return(0,m.jsx)("li",{className:a("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:l})},(e,t)=>Ee(e,t));fu.displayName="MarkdownLi";var pu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...n,children:e})},(e,t)=>Ee(e,t));pu.displayName="MarkdownUl";var mu=(0,T.memo)(({className:e,node:t,...r})=>{let n=ae();return(0,m.jsx)("hr",{className:n("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r})},(e,t)=>Ee(e,t));mu.displayName="MarkdownHr";var gu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...n,children:e})},(e,t)=>Ee(e,t));gu.displayName="MarkdownStrong";var Ty=({children:e,className:t,href:r,node:n,...i})=>{let a=ae(),{linkSafety:s}=(0,T.useContext)(Ce),[l,o]=(0,T.useState)(!1),u=r==="streamdown:incomplete-link",d=(0,T.useCallback)(async g=>{if(!(!(s!=null&&s.enabled&&r)||u)){if(g.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(r)){window.open(r,"_blank","noreferrer");return}o(!0)}},[s,r,u]),h=(0,T.useCallback)(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),p=(0,T.useCallback)(()=>{o(!1)},[]),f={url:r??"",isOpen:l,onClose:p,onConfirm:h};return s!=null&&s.enabled&&r?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:d,type:"button",children:e}),s.renderModal?s.renderModal(f):(0,m.jsx)(Q_,{...f})]}):(0,m.jsx)("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...i,children:e})},Eu=(0,T.memo)(Ty,(e,t)=>Ee(e,t));Eu.displayName="MarkdownA";var Tu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e})},(e,t)=>Ee(e,t));Tu.displayName="MarkdownH1";var bu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e})},(e,t)=>Ee(e,t));bu.displayName="MarkdownH2";var ku=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e})},(e,t)=>Ee(e,t));ku.displayName="MarkdownH3";var xu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e})},(e,t)=>Ee(e,t));xu.displayName="MarkdownH4";var Au=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e})},(e,t)=>Ee(e,t));Au.displayName="MarkdownH5";var _u=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e})},(e,t)=>Ee(e,t));_u.displayName="MarkdownH6";var yu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let{controls:i,tableMaxHeight:a}=(0,T.useContext)(Ce),s=mn(i,"table"),l=ii(i,"copy"),o=ii(i,"download"),u=ii(i,"fullscreen");return(0,m.jsx)(uy,{className:t,maxHeight:a,showControls:s,showCopy:l,showDownload:o,showFullscreen:u,...n,children:e})},(e,t)=>Ee(e,t));yu.displayName="MarkdownTable";var Cu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e})},(e,t)=>Ee(e,t));Cu.displayName="MarkdownThead";var Su=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...n,children:e})},(e,t)=>Ee(e,t));Su.displayName="MarkdownTbody";var Nu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...n,children:e})},(e,t)=>Ee(e,t));Nu.displayName="MarkdownTr";var vu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e})},(e,t)=>Ee(e,t));vu.displayName="MarkdownTh";var Iu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e})},(e,t)=>Ee(e,t));Iu.displayName="MarkdownTd";var wu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e})},(e,t)=>Ee(e,t));wu.displayName="MarkdownBlockquote";var Lu=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...n,children:e})},(e,t)=>Ee(e,t));Lu.displayName="MarkdownSup";var Ru=(0,T.memo)(({children:e,className:t,node:r,...n})=>{let i=ae();return(0,m.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...n,children:e})},(e,t)=>Ee(e,t));Ru.displayName="MarkdownSub";var Ou=(0,T.memo)(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let i=s=>{var l,o;if(!(0,T.isValidElement)(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,h=!1;for(let p of u)if(p){if(typeof p=="string")p.trim()!==""&&(d=!0);else if((0,T.isValidElement)(p))if(((l=p.props)==null?void 0:l["data-footnote-backref"])!==void 0)h=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let g of f){if(typeof g=="string"&&g.trim()!==""){d=!0;break}if((0,T.isValidElement)(g)&&((o=g.props)==null?void 0:o["data-footnote-backref"])===void 0){d=!0;break}}}}return h&&!d},a=Array.isArray(e)?e.map(s=>{if(!(0,T.isValidElement)(s))return s;if(s.type===Aa){let l=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return l.length===0?null:{...s,props:{...s.props,children:l}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?(0,m.jsx)("section",{className:t,...n,children:a}):null}return(0,m.jsx)("section",{className:t,...n,children:e})},(e,t)=>Ee(e,t));Ou.displayName="MarkdownSection";var by=({node:e,className:t,children:r,...n})=>{var i,a;let s=ae(),l=!("data-block"in n),{mermaid:o,controls:u,lineNumbers:d}=(0,T.useContext)(Ce),h=xa(),p=Xc(),f=t?.match(py),g=(i=f?.at(1))!=null?i:"",N=K_(g);if(l)return(0,m.jsx)("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let y=(a=e?.properties)==null?void 0:a.metastring,A=y?.match(hy),C=A?Number.parseInt(A[1],10):void 0,k=C!==void 0&&C>=1?C:void 0,R=!(y&&dy.test(y))&&d!==!1,D="";if((0,T.isValidElement)(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?D=r.props.children:typeof r=="string"&&(D=r),N){let F=N.component;return(0,m.jsx)(T.Suspense,{fallback:(0,m.jsx)(tl,{}),children:(0,m.jsx)(F,{code:D,isIncomplete:p,language:g,meta:y})})}if(g==="mermaid"&&h){let F=mn(u,"mermaid"),z=Zr(u,"download"),Y=Zr(u,"copy"),te=Zr(u,"fullscreen"),Q=Zr(u,"panZoom"),q=F&&(z||Y||te);return(0,m.jsx)(T.Suspense,{fallback:(0,m.jsx)(tl,{}),children:(0,m.jsxs)("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[(0,m.jsx)("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:(0,m.jsx)("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),q?(0,m.jsx)("div",{className:s("pointer-events-none absolute top-2 right-2 z-10 flex items-center"),children:(0,m.jsxs)("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[z?(0,m.jsx)(su,{chart:D,config:o?.config}):null,Y?(0,m.jsx)(Ri,{code:D,...Js(u,"mermaid")}):null,te?(0,m.jsx)(ly,{chart:D,config:o?.config}):null]})}):null,(0,m.jsx)("div",{className:s("overflow-hidden rounded-md border border-border bg-background"),children:(0,m.jsx)(fy,{chart:D,config:o?.config,showControls:Q})})]})})}let I=mn(u,"code"),U=il(u,"download"),$=il(u,"copy"),{"data-block":V,...v}=n;return(0,m.jsx)(D_,{className:t,code:D,isIncomplete:p,language:g,lineNumbers:R,startLine:k,...v,children:I?(0,m.jsxs)(m.Fragment,{children:[U?(0,m.jsx)(V_,{code:D,language:g}):null,$?(0,m.jsx)(Ri,{...Js(u,"code")}):null]}):null})},Du=(0,T.memo)(by,(e,t)=>Ee(e,t)&&gy(e.node,t.node));Du.displayName="MarkdownCode";var ky=({node:e,className:t,...r})=>{let{controls:n}=(0,T.useContext)(Ce),i=mn(n,"image"),a=i&&Ey(n,"download");return(0,m.jsx)(G_,{className:t,node:e,showControls:i,showDownloadControl:a,...r})},Pu=(0,T.memo)(ky,(e,t)=>Ee(e,t));Pu.displayName="MarkdownImg";var _a=(0,T.memo)(({children:e,node:t,...r})=>{let n=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(n.length===1&&(0,T.isValidElement)(n[0])){let i=n[0].props.node,a=i?.tagName;if(a==="img")return(0,m.jsx)(m.Fragment,{children:e});if(a==="code"&&"data-block"in n[0].props)return(0,m.jsx)(m.Fragment,{children:e})}return(0,m.jsx)("p",{...r,children:e})},(e,t)=>Ee(e,t));_a.displayName="MarkdownParagraph";var xy={ol:Aa,li:fu,ul:pu,hr:mu,strong:gu,a:Eu,h1:Tu,h2:bu,h3:ku,h4:xu,h5:Au,h6:_u,table:yu,thead:Cu,tbody:Su,tr:Nu,th:vu,td:Iu,blockquote:wu,code:Du,img:Pu,pre:({children:e})=>(0,T.isValidElement)(e)?(0,T.cloneElement)(e,{"data-block":"true"}):e,sup:Lu,sub:Ru,p:_a,section:Ou},Ay=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,_y=/\p{L}/u;function Mu(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),r,n=0,i=0;for(let a of t){if(Ay.test(a)){r??="rtl",i+=1;continue}_y.test(a)&&(r??="ltr",n+=1)}return i>n?"rtl":n>i?"ltr":r??"ltr"}var yy=/^[ \t]{0,3}(`{3,}|~{3,})/,Cy=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,al=e=>{let t=e.split(`
136
136
  `),r=null,n=0;for(let i of t){let a=yy.exec(i);if(r===null){if(a){let s=a[1];r=s[0],n=s.length}}else if(a){let s=a[1],l=s[0],o=s.length;l===r&&o>=n&&(r=null,n=0)}}return r!==null},Sy=e=>{let t=e.split(`
137
137
  `);for(let r of t){let n=r.trim();if(n.length>0&&n.includes("|")&&Cy.test(n))return!0}return!1},Ny=()=>e=>{Ge(e,"html",(t,r,n)=>{!n||typeof r!="number"||(n.children[r]={type:"text",value:t.value})})},sl=[],ll={allowDangerousHtml:!0},Jr=new WeakMap,vy=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(r||n||i)){let o="default";return this.keyCache.set(e,o),o}let a=o=>{if(!o||o.length===0)return"";let u="";for(let d=0;d<o.length;d+=1){let h=o[d];if(d>0&&(u+=","),Array.isArray(h)){let[p,f]=h;if(typeof p=="function"){let g=Jr.get(p);g||(g=p.name,Jr.set(p,g)),u+=g}else u+=String(p);u+=":",u+=JSON.stringify(f)}else if(typeof h=="function"){let p=Jr.get(h);p||(p=h.name,Jr.set(h,p)),u+=p}else u+=String(h)}return u},s=a(r),l=`${a(n)}::${s}::${i?JSON.stringify(i):""}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},ol=new vy,Bu=e=>{let t=Iy(e),r=e.children||"";return My(t.runSync(t.parse(r),r),e)},Iy=e=>{let t=ol.get(e);if(t)return t;let r=Ly(e);return ol.set(e,r),r},wy=e=>e.some(t=>Array.isArray(t)?t[0]===gi:t===gi),Ly=e=>{let t=e.rehypePlugins||sl,r=e.remarkPlugins||sl,n=wy(t)?r:[...r,Ny],i=e.remarkRehypeOptions?{...ll,...e.remarkRehypeOptions}:ll;return rA().use(tx).use(n).use(Bx,i).use(t)},Ry=e=>e,Oy=(e,t,r,n)=>{r?e.children.splice(t,1):e.children[t]={type:"text",value:n}},Dy=(e,t)=>{var r;for(let n in Qn)if(Object.hasOwn(Qn,n)&&Object.hasOwn(e.properties,n)){let i=e.properties[n],a=Qn[n];(a===null||a.includes(e.tagName))&&(e.properties[n]=(r=t(String(i||""),n,e))!=null?r:void 0)}},Py=(e,t,r,n,i,a)=>{let s=!1;return n?s=!n.includes(e.tagName):i&&(s=i.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,r)),s},My=(e,t)=>{let{allowElement:r,allowedElements:n,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:l}=t;if(r||n||i||a||l){let o=l||Ry;Ge(e,(u,d,h)=>{if(u.type==="raw"&&h&&typeof d=="number")return Oy(h,d,a,u.value),d;if(u.type==="element"&&(Dy(u,o),Py(u,d,h,n,i,r)&&h&&typeof d=="number"))return s&&u.children?h.children.splice(d,1,...u.children):h.children.splice(d,1),d})}return c0(e,{Fragment:m.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0})},By=/\[\^[\w-]{1,200}\](?!:)/,Fy=/\[\^[\w-]{1,200}\]:/,Hy=/<([A-Za-z][\w:-]*)[\s>/]/,Uy=/^ {0,3}\[[^\]]+\]:/m,jy=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),cl=new Map,ul=new Map,zy=e=>{let t=e.toLowerCase(),r=cl.get(t);if(r)return r;let n=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return cl.set(t,n),n},$y=e=>{let t=e.toLowerCase(),r=ul.get(t);if(r)return r;let n=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return ul.set(t,n),n},hl=(e,t)=>{if(jy.has(t.toLowerCase()))return 0;let r=e.match(zy(t));if(!r)return 0;let n=0;for(let i of r)i.trimEnd().endsWith("/>")||(n+=1);return n},dl=(e,t)=>{let r=e.match($y(t));return r?r.length:0},Yy=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},qy=/\r\n|\r/g,Fu=e=>{let t=new We({gfm:!0});return{tokens:t.blockTokens(e),hasLinkDefinitions:Object.keys(t.tokens.links).length>0}},jt=null,Vy=`