@cortex-agent/server 2026.11.17 → 2026.12.5

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 (338) hide show
  1. package/README.md +5 -5
  2. package/THIRD_PARTY_NOTICES.txt +860 -294
  3. package/defaults/hooks/quota-stop.mjs +37 -0
  4. package/defaults/prompts/clean-workspace.md +5 -0
  5. package/dist/agent-adapter/claude/remote-mcp-proxy.js +1 -1
  6. package/dist/chunks/agent-runner-LVZVKBZX.js +4 -0
  7. package/dist/chunks/anthropic-messages-TT6454AA.js +8 -0
  8. package/dist/chunks/azure-openai-responses-52LR2XZD.js +4 -0
  9. package/dist/chunks/bedrock-converse-stream-EOZGYUNY.js +60 -0
  10. package/dist/chunks/child-runner-SMG2VOU5.js +4 -0
  11. package/dist/chunks/chunk-24DH4IR5.js +4 -0
  12. package/dist/chunks/chunk-25XKBRDT.js +70 -0
  13. package/dist/chunks/{chunk-VTL3Z2OP.js → chunk-2ABET62E.js} +1 -1
  14. package/dist/chunks/chunk-2BVUA256.js +4 -0
  15. package/dist/chunks/{chunk-4YLAGSDM.js → chunk-2WFL62UO.js} +1 -1
  16. package/dist/chunks/{chunk-LQTFDC67.js → chunk-335SSANX.js} +1 -1
  17. package/dist/chunks/chunk-377OPTXX.js +17 -0
  18. package/dist/chunks/chunk-3EZNVLBF.js +129 -0
  19. package/dist/chunks/{chunk-V6X7Y62J.js → chunk-3O6ZG5HA.js} +1 -1
  20. package/dist/chunks/{chunk-6AKUD3CF.js → chunk-3XLHL5YT.js} +1 -1
  21. package/dist/chunks/{chunk-2ATTYCRJ.js → chunk-4HRI75GU.js} +1 -1
  22. package/dist/chunks/chunk-4JBYLRPM.js +57 -0
  23. package/dist/chunks/chunk-4KKV7VKE.js +4 -0
  24. package/dist/chunks/chunk-4KQHDDC5.js +4 -0
  25. package/dist/chunks/chunk-4SWD4JMP.js +33 -0
  26. package/dist/chunks/chunk-52VCLZS5.js +4 -0
  27. package/dist/chunks/chunk-54P7TSY3.js +10 -0
  28. package/dist/chunks/chunk-5DVSAXOI.js +7 -0
  29. package/dist/chunks/chunk-5F3A62YS.js +4 -0
  30. package/dist/chunks/{chunk-S3MR37DL.js → chunk-5FHETFZM.js} +1 -1
  31. package/dist/chunks/{chunk-CEGSDGYQ.js → chunk-5LBLRAHS.js} +1 -1
  32. package/dist/chunks/chunk-5UYVNA3W.js +4 -0
  33. package/dist/chunks/chunk-6G3OYMCV.js +21 -0
  34. package/dist/chunks/chunk-7GGPYU5E.js +30 -0
  35. package/dist/chunks/chunk-7TYSMLUV.js +4 -0
  36. package/dist/chunks/chunk-7W7VYUTK.js +5 -0
  37. package/dist/chunks/chunk-AXYAZTTN.js +6 -0
  38. package/dist/chunks/chunk-B3NB243Z.js +4 -0
  39. package/dist/chunks/{chunk-XPPZ6Y3X.js → chunk-BKYP6AGM.js} +1 -1
  40. package/dist/chunks/{chunk-QUXPMNFQ.js → chunk-BVEDNESB.js} +1 -1
  41. package/dist/chunks/chunk-BWDJS6A4.js +12 -0
  42. package/dist/chunks/chunk-C6YVF7EI.js +4 -0
  43. package/dist/chunks/chunk-CEJIYYVE.js +15 -0
  44. package/dist/chunks/{chunk-5PAW3DEU.js → chunk-CI2RHH74.js} +4 -4
  45. package/dist/chunks/{chunk-OFEPDNRB.js → chunk-CMSOOLJB.js} +1 -1
  46. package/dist/chunks/chunk-CSVTYYLP.js +4 -0
  47. package/dist/chunks/chunk-DE5EGVKG.js +6 -0
  48. package/dist/chunks/{chunk-E6BYRULL.js → chunk-DK3RPZOQ.js} +1 -1
  49. package/dist/chunks/{chunk-ROVKOIHF.js → chunk-DK4UCK7L.js} +1 -1
  50. package/dist/chunks/chunk-DYLBVUAU.js +4 -0
  51. package/dist/chunks/{chunk-WBSE3EF3.js → chunk-FDC2GRBK.js} +1 -1
  52. package/dist/chunks/chunk-FE7HH5JS.js +18 -0
  53. package/dist/chunks/chunk-FYD57YRO.js +436 -0
  54. package/dist/chunks/chunk-G264APQN.js +5 -0
  55. package/dist/chunks/chunk-G4JYZFEO.js +11 -0
  56. package/dist/chunks/chunk-GFFM56U2.js +4 -0
  57. package/dist/chunks/chunk-GOS3P7KS.js +132 -0
  58. package/dist/chunks/{chunk-2VVRTJQN.js → chunk-HVN37UXD.js} +1 -1
  59. package/dist/chunks/{chunk-53TQNK7Z.js → chunk-IGZWZP7Z.js} +1 -1
  60. package/dist/chunks/{chunk-AFTBQRPN.js → chunk-IJ7XFQMI.js} +1 -1
  61. package/dist/chunks/{chunk-U23S37TT.js → chunk-IMMGYDAB.js} +1 -1
  62. package/dist/chunks/chunk-IOWBF7UK.js +10 -0
  63. package/dist/chunks/{chunk-MGYYSX7Y.js → chunk-ITGCWQFK.js} +1 -1
  64. package/dist/chunks/{chunk-QEL6CMLE.js → chunk-IVZ7QUEG.js} +1 -1
  65. package/dist/chunks/{chunk-EE3WT25T.js → chunk-IWY2HIFK.js} +1 -1
  66. package/dist/chunks/{chunk-KGJZAYQD.js → chunk-J7OBATRN.js} +1 -1
  67. package/dist/chunks/{chunk-NXZS5PEW.js → chunk-JGUEIW2W.js} +1 -1
  68. package/dist/chunks/chunk-JZ7U7RUK.js +351 -0
  69. package/dist/chunks/{chunk-VIMHSW6J.js → chunk-KJUQCCB5.js} +1 -1
  70. package/dist/chunks/{chunk-BUZQBTV2.js → chunk-KST6OY76.js} +1 -1
  71. package/dist/chunks/{chunk-KDPY2YA3.js → chunk-KZSAFVSY.js} +2 -2
  72. package/dist/chunks/chunk-LD2ZSH3M.js +903 -0
  73. package/dist/chunks/{chunk-RYLSRII6.js → chunk-LE6QPXN6.js} +1 -1
  74. package/dist/chunks/{chunk-TX46YMGI.js → chunk-LIIZI3HY.js} +1 -1
  75. package/dist/chunks/{chunk-3CZPBLB3.js → chunk-MJQ2D2OP.js} +1 -1
  76. package/dist/chunks/{chunk-P7TVR4GY.js → chunk-NHHR4DCF.js} +1 -1
  77. package/dist/chunks/chunk-NW4GW47L.js +4 -0
  78. package/dist/chunks/chunk-OALEJ6FG.js +60 -0
  79. package/dist/chunks/chunk-OIV4DIMB.js +4 -0
  80. package/dist/chunks/{chunk-T73GHMFB.js → chunk-OJ37ZWBG.js} +1 -1
  81. package/dist/chunks/{chunk-7GEBDPTT.js → chunk-OZXMPBUX.js} +1 -1
  82. package/dist/chunks/chunk-PG7452XE.js +4 -0
  83. package/dist/chunks/chunk-PJCUB7YJ.js +4 -0
  84. package/dist/chunks/{chunk-RA2BUYI3.js → chunk-PTS3J4DQ.js} +1 -1
  85. package/dist/chunks/{chunk-2ROGTDM2.js → chunk-PVVEEBUU.js} +1 -1
  86. package/dist/chunks/{chunk-W6AKCEYF.js → chunk-Q7BZLPBU.js} +1 -1
  87. package/dist/chunks/{chunk-SY2HV3V5.js → chunk-QC66ZXPP.js} +1 -1
  88. package/dist/chunks/chunk-QXFWIL4C.js +4 -0
  89. package/dist/chunks/{chunk-NRD57ICT.js → chunk-R2CCD4OF.js} +1 -1
  90. package/dist/chunks/{chunk-R52AVUQB.js → chunk-RG5GP4RB.js} +1 -1
  91. package/dist/chunks/{chunk-IKLTEWA3.js → chunk-RW2F2QNP.js} +1 -1
  92. package/dist/chunks/{chunk-XEBEWR6Y.js → chunk-RWPO3NZ3.js} +1 -1
  93. package/dist/chunks/chunk-SDUS2H3E.js +4 -0
  94. package/dist/chunks/chunk-SIHGKM4E.js +4 -0
  95. package/dist/chunks/{chunk-NNBSSISP.js → chunk-SKHFU5DI.js} +1 -1
  96. package/dist/chunks/{chunk-STUHNKQS.js → chunk-SM45TH22.js} +1 -1
  97. package/dist/chunks/chunk-T54CZKNJ.js +6 -0
  98. package/dist/chunks/chunk-TRXLIL7V.js +4 -0
  99. package/dist/chunks/{chunk-KUDK7GPS.js → chunk-UEEW2R4E.js} +1 -1
  100. package/dist/chunks/chunk-UHXPRU6G.js +10 -0
  101. package/dist/chunks/chunk-UPQVWHZ3.js +4 -0
  102. package/dist/chunks/{chunk-BDLKI2NT.js → chunk-VHX2GHBF.js} +1 -1
  103. package/dist/chunks/chunk-VOAKRJ4R.js +4 -0
  104. package/dist/chunks/{chunk-FP7ML72L.js → chunk-WU7RNAZD.js} +1 -1
  105. package/dist/chunks/chunk-WZC4TDDM.js +6 -0
  106. package/dist/chunks/chunk-X2TKJ7KR.js +11 -0
  107. package/dist/chunks/{chunk-H4QZ2P3Z.js → chunk-X5ND4H4P.js} +1 -1
  108. package/dist/chunks/{chunk-5A6CA5TM.js → chunk-Y3AOGNDT.js} +1 -1
  109. package/dist/chunks/chunk-Y6DGVTKM.js +6 -0
  110. package/dist/chunks/{chunk-LP7T32PW.js → chunk-YAEHSSR4.js} +1 -1
  111. package/dist/chunks/chunk-YWPBE5LP.js +4 -0
  112. package/dist/chunks/chunk-ZAVX7G2M.js +15 -0
  113. package/dist/chunks/chunk-ZD2M73XA.js +19 -0
  114. package/dist/chunks/chunk-ZD4O6NPV.js +4 -0
  115. package/dist/chunks/chunk-ZNAMETPQ.js +4 -0
  116. package/dist/chunks/chunk-ZY6N5LVQ.js +4 -0
  117. package/dist/chunks/chunk-ZYQ4TDTT.js +81 -0
  118. package/dist/chunks/cli-VB2N7HEK.js +55 -0
  119. package/dist/chunks/cloudflare-workers-ai-system-one-YKU742EC.js +4 -0
  120. package/dist/chunks/context-CI2FKEQE.js +4 -0
  121. package/dist/chunks/cost-CZRRSIUF.js +5 -0
  122. package/dist/chunks/dist-QCNQN6DY.js +4 -0
  123. package/dist/chunks/{easter-egg-3d-CZH7AYZ7.js → easter-egg-3d-XR5S2O3T.js} +1 -1
  124. package/dist/chunks/execution-repo-5TLV2NM4.js +4 -0
  125. package/dist/chunks/{executions-BN6OLLVM.js → executions-I3UUIGSL.js} +1 -1
  126. package/dist/chunks/file-Y5G56IUT.js +4 -0
  127. package/dist/chunks/github-copilot-BRU2SRRZ.js +4 -0
  128. package/dist/chunks/google-generative-ai-ZF5QEUZV.js +4 -0
  129. package/dist/chunks/google-vertex-4PJZZI3Y.js +4 -0
  130. package/dist/chunks/init-A6GY656J.js +4 -0
  131. package/dist/chunks/{install-cli-ABBD7DO5.js → install-cli-FALWKQYO.js} +1 -1
  132. package/dist/chunks/{interaction-ask-EE2UPR3Q.js → interaction-ask-O5HGF6CH.js} +1 -1
  133. package/dist/chunks/{interaction-plan-C446T2GZ.js → interaction-plan-JTVDN3BC.js} +1 -1
  134. package/dist/chunks/kimi-coding-ZCIBMDZ6.js +4 -0
  135. package/dist/chunks/{llama-cpp-classify-IA2F2H7A.js → llama-cpp-classify-NRUXAIGQ.js} +3 -3
  136. package/dist/chunks/local-client-stop-RS4AHNF4.js +4 -0
  137. package/dist/chunks/memory-cli-DIT4DQF3.js +11 -0
  138. package/dist/chunks/meta-JQH66YU7.js +4 -0
  139. package/dist/chunks/mistral-conversations-CXHOECUV.js +7 -0
  140. package/dist/chunks/model-resolver-GIBPYRKP.js +4 -0
  141. package/dist/chunks/monitor-Z2HKNY5E.js +4 -0
  142. package/dist/chunks/openai-codex-responses-U6DGMGDK.js +12 -0
  143. package/dist/chunks/openai-completions-PP4XLLOM.js +9 -0
  144. package/dist/chunks/{openai-decisions-P5UX7BWY.js → openai-decisions-JU6QQKEM.js} +1 -1
  145. package/dist/chunks/openai-responses-2SG757TL.js +6 -0
  146. package/dist/chunks/openrouter-images-32M7YZWC.js +4 -0
  147. package/dist/chunks/pi-messages-VSINMXN4.js +10 -0
  148. package/dist/chunks/radius-THYKWV4E.js +4 -0
  149. package/dist/chunks/remote-ops-2WBEFQ3E.js +14 -0
  150. package/dist/chunks/runner-5MKMRTIN.js +4 -0
  151. package/dist/chunks/runtime-DST3H5JP.js +4 -0
  152. package/dist/chunks/schedule-cli-V7Y2BBVY.js +4 -0
  153. package/dist/chunks/slack-R7SEJYMY.js +4 -0
  154. package/dist/chunks/start-ui-http-7K5JOLPU.js +43 -0
  155. package/dist/chunks/subagent-Z5IQ4L54.js +4 -0
  156. package/dist/chunks/tool-shims-YCXZWTST.js +4 -0
  157. package/dist/chunks/typesafe-system-one-M2DABJSZ.js +4 -0
  158. package/dist/chunks/ui-board-HQIE4RZG.js +5 -0
  159. package/dist/chunks/ui-decision-YBZDS4YW.js +4 -0
  160. package/dist/chunks/{ui-file-6PLXHSTB.js → ui-file-SRD4ILBS.js} +1 -1
  161. package/dist/chunks/ui-view-Z25MTZT7.js +4 -0
  162. package/dist/chunks/virtual-modules-H4DXPJZB.js +4 -0
  163. package/dist/chunks/{waitpoint-W5M3BE55.js → waitpoint-M6JZBSLT.js} +1 -1
  164. package/dist/chunks/workers-SQ2R32TK.js +4 -0
  165. package/dist/client-bundle/client.mjs +229 -62
  166. package/dist/client-bundle/manifest.json +2 -2
  167. package/dist/core/pi-sdk.js +1 -1
  168. package/dist/domain/auth/cc-auth-cli.js +1 -1
  169. package/dist/domain/mcp/bundled-server.js +1 -1
  170. package/dist/domain/mcp/feishu/client.js +1 -1
  171. package/dist/entry/app.js +138 -556
  172. package/dist/entry/browser-cli.js +1 -1
  173. package/dist/entry/cli.js +1 -1
  174. package/dist/entry/cortex-cli.js +1 -1
  175. package/dist/entry/daemon.js +3 -3
  176. package/dist/entry/hook-cli.js +1 -1
  177. package/dist/entry/production-app-bootstrap.js +1 -1
  178. package/dist/entry/production-evidence-export-cli.js +1 -1
  179. package/dist/entry/signal-cli.js +1 -1
  180. package/dist/tui/index.js +1 -1
  181. package/package.json +1 -1
  182. package/vendor/pi/CHANGELOG.md +330 -0
  183. package/vendor/pi/dist/codemode-worker.js +2 -0
  184. package/vendor/pi/dist/core/export-html/ansi-to-html.js +57 -20
  185. package/vendor/pi/dist/core/export-html/template.css +9 -0
  186. package/vendor/pi/dist/core/export-html/template.js +166 -46
  187. package/vendor/pi/dist/core/export-html/tool-renderer.js +5 -3
  188. package/vendor/pi/dist/core/extensions/loader.js +1 -1
  189. package/vendor/pi/dist/extensions/codemode/execute.js +15 -13
  190. package/vendor/pi/dist/modes/interactive/theme/theme.js +36 -23
  191. package/vendor/pi/dist/utils/image-resize-worker.js +1 -1
  192. package/vendor/pi/dist/utils/image-resize.js +1 -1
  193. package/vendor/pi/docs/cli.md +35 -12
  194. package/vendor/pi/docs/custom-provider.md +2 -0
  195. package/vendor/pi/docs/environment-variables.md +2 -0
  196. package/vendor/pi/docs/extensions.md +3192 -225
  197. package/vendor/pi/docs/keybindings.md +2 -2
  198. package/vendor/pi/docs/llama-cpp.md +27 -19
  199. package/vendor/pi/docs/mcp.md +6 -4
  200. package/vendor/pi/docs/message-types.md +1 -1
  201. package/vendor/pi/docs/models-configuration.md +9 -3
  202. package/vendor/pi/docs/models.md +2 -1
  203. package/vendor/pi/docs/nvidia-rtx-llama-cpp.md +5 -5
  204. package/vendor/pi/docs/packages.md +24 -0
  205. package/vendor/pi/docs/prompt-templates.md +1 -1
  206. package/vendor/pi/docs/providers.md +4 -2
  207. package/vendor/pi/docs/quickstart.md +7 -3
  208. package/vendor/pi/docs/rpc-commands.md +1 -1
  209. package/vendor/pi/docs/rpc.md +4 -2
  210. package/vendor/pi/docs/sessions.md +17 -3
  211. package/vendor/pi/docs/settings.md +6 -5
  212. package/vendor/pi/docs/slash-commands.md +3 -2
  213. package/vendor/pi/docs/terminal-setup.md +3 -1
  214. package/vendor/pi/docs/tmux.md +6 -0
  215. package/vendor/pi/docs/tui.md +4 -0
  216. package/vendor/pi/docs/windows.md +27 -0
  217. package/vendor/pi/examples/extensions/README.md +2 -1
  218. package/vendor/pi/examples/extensions/custom-provider-anthropic/index.ts +27 -31
  219. package/vendor/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  220. package/vendor/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
  221. package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  222. package/vendor/pi/examples/extensions/debug-provider.ts +2 -2
  223. package/vendor/pi/examples/extensions/gondolin/index.ts +4 -7
  224. package/vendor/pi/examples/extensions/gondolin/package-lock.json +19 -29
  225. package/vendor/pi/examples/extensions/gondolin/package.json +2 -2
  226. package/vendor/pi/examples/extensions/plan-mode/index.ts +23 -13
  227. package/vendor/pi/examples/extensions/plan-mode/utils.ts +42 -16
  228. package/vendor/pi/examples/extensions/preset.ts +2 -0
  229. package/vendor/pi/examples/extensions/reload-runtime.ts +17 -5
  230. package/vendor/pi/examples/extensions/subagent/README.md +14 -11
  231. package/vendor/pi/examples/extensions/subagent/index.ts +392 -171
  232. package/vendor/pi/examples/extensions/todo.ts +7 -0
  233. package/vendor/pi/examples/extensions/tools.ts +2 -0
  234. package/vendor/pi/examples/extensions/with-deps/package-lock.json +2 -2
  235. package/vendor/pi/examples/extensions/with-deps/package.json +1 -1
  236. package/vendor/pi/examples/tsconfig.json +208 -0
  237. package/vendor/pi/package.json +15 -16
  238. package/vendor/pi/schemas/models.schema.json +66 -37
  239. package/vendor/pi/schemas/settings.schema.json +18 -1
  240. package/vendor/pi-ai/bedrock.js +1 -1
  241. package/vendor/pi-ai/oauth-load.js +1 -1
  242. package/web/dist/assets/{board-math-css-BgIyUG-C.js → board-math-css-DKX6FcUS.js} +1 -1
  243. package/web/dist/assets/index-D11wi0uG.js +540 -0
  244. package/web/dist/assets/index-JedYumhY.css +1 -0
  245. package/web/dist/assets/{index-C2eMpcuI.js → index-jl30Gy8P.js} +1 -1
  246. package/web/dist/index.html +2 -2
  247. package/dist/chunks/anthropic-messages-M732OMEE.js +0 -8
  248. package/dist/chunks/azure-openai-responses-RAKTV6JY.js +0 -4
  249. package/dist/chunks/bedrock-converse-stream-WNUGNZ27.js +0 -62
  250. package/dist/chunks/child-runner-MO5RT6FH.js +0 -4
  251. package/dist/chunks/chunk-3CPIMAYX.js +0 -30
  252. package/dist/chunks/chunk-3ORG56I5.js +0 -8
  253. package/dist/chunks/chunk-4EX2JJWB.js +0 -4
  254. package/dist/chunks/chunk-5DF5WJNM.js +0 -60
  255. package/dist/chunks/chunk-7GAYFN52.js +0 -18
  256. package/dist/chunks/chunk-AVXDF7AG.js +0 -4
  257. package/dist/chunks/chunk-BJGYGEZO.js +0 -6
  258. package/dist/chunks/chunk-BZDIAI5M.js +0 -125
  259. package/dist/chunks/chunk-CK3P345X.js +0 -133
  260. package/dist/chunks/chunk-CVC66CFV.js +0 -33
  261. package/dist/chunks/chunk-ETIBCA2S.js +0 -4
  262. package/dist/chunks/chunk-FF7UELTU.js +0 -4
  263. package/dist/chunks/chunk-FX6MOGLR.js +0 -11
  264. package/dist/chunks/chunk-G2V65UBA.js +0 -4
  265. package/dist/chunks/chunk-HGPBHTVD.js +0 -6
  266. package/dist/chunks/chunk-IYVZHGUQ.js +0 -5
  267. package/dist/chunks/chunk-JJDEQ6N2.js +0 -4
  268. package/dist/chunks/chunk-KDYEGGMW.js +0 -4
  269. package/dist/chunks/chunk-L6VCIGWS.js +0 -11
  270. package/dist/chunks/chunk-LACGULCN.js +0 -10
  271. package/dist/chunks/chunk-LAWOWPZX.js +0 -363
  272. package/dist/chunks/chunk-NNTQUHLO.js +0 -877
  273. package/dist/chunks/chunk-OE4KH3NJ.js +0 -4
  274. package/dist/chunks/chunk-OSEIQ7SS.js +0 -4
  275. package/dist/chunks/chunk-PZMGBKUR.js +0 -13
  276. package/dist/chunks/chunk-QBKCAIJG.js +0 -4
  277. package/dist/chunks/chunk-QMSSIDRQ.js +0 -70
  278. package/dist/chunks/chunk-QUUEQRIT.js +0 -4
  279. package/dist/chunks/chunk-RA6HKFBV.js +0 -4
  280. package/dist/chunks/chunk-RDW6FRF5.js +0 -4
  281. package/dist/chunks/chunk-RF4JLYBX.js +0 -6
  282. package/dist/chunks/chunk-SFX7V5O2.js +0 -10
  283. package/dist/chunks/chunk-SKHLZ6XY.js +0 -9
  284. package/dist/chunks/chunk-STCNHXPJ.js +0 -6
  285. package/dist/chunks/chunk-UT6DGZDO.js +0 -4
  286. package/dist/chunks/chunk-VBN2JSER.js +0 -5
  287. package/dist/chunks/chunk-VK5J556O.js +0 -4
  288. package/dist/chunks/chunk-VPVSKJGX.js +0 -6
  289. package/dist/chunks/chunk-VQUPKMDR.js +0 -4
  290. package/dist/chunks/chunk-WEZWKMYU.js +0 -4
  291. package/dist/chunks/chunk-XYSXL3KX.js +0 -4
  292. package/dist/chunks/chunk-Y3GFB5XM.js +0 -8
  293. package/dist/chunks/chunk-YAAKL3QS.js +0 -80
  294. package/dist/chunks/chunk-YB5LUJHS.js +0 -65
  295. package/dist/chunks/chunk-YKKEI5GI.js +0 -4
  296. package/dist/chunks/chunk-Z24SBRJK.js +0 -4
  297. package/dist/chunks/cli-5DBTRMHU.js +0 -53
  298. package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +0 -4
  299. package/dist/chunks/context-GQKWKFRM.js +0 -4
  300. package/dist/chunks/cost-OOO32GLC.js +0 -5
  301. package/dist/chunks/dist-V5FRMUFH.js +0 -4
  302. package/dist/chunks/execution-repo-XXL4FXC6.js +0 -4
  303. package/dist/chunks/file-H572PL2Z.js +0 -4
  304. package/dist/chunks/github-copilot-HAI2DA62.js +0 -4
  305. package/dist/chunks/google-generative-ai-2G4ITOZL.js +0 -4
  306. package/dist/chunks/google-vertex-PACHCMRZ.js +0 -4
  307. package/dist/chunks/init-75F4V7SK.js +0 -4
  308. package/dist/chunks/kimi-coding-HMJRKCPA.js +0 -4
  309. package/dist/chunks/local-client-stop-5YOLXGYT.js +0 -4
  310. package/dist/chunks/memory-cli-5SSF6YJM.js +0 -11
  311. package/dist/chunks/meta-KY3LNFV2.js +0 -4
  312. package/dist/chunks/mistral-conversations-VHP63CDS.js +0 -7
  313. package/dist/chunks/model-resolver-FVJNZ6NA.js +0 -4
  314. package/dist/chunks/openai-codex-responses-EHJ4AZBE.js +0 -12
  315. package/dist/chunks/openai-completions-CRAGQFCE.js +0 -9
  316. package/dist/chunks/openai-responses-IZ22NVQ7.js +0 -6
  317. package/dist/chunks/openrouter-images-W2JAMSRH.js +0 -4
  318. package/dist/chunks/pi-messages-MJEEQU2R.js +0 -10
  319. package/dist/chunks/radius-ZM7ZRMXF.js +0 -4
  320. package/dist/chunks/remote-ops-O5CR4RGA.js +0 -14
  321. package/dist/chunks/runner-S6R3US24.js +0 -4
  322. package/dist/chunks/runtime-6YLTA2ZD.js +0 -4
  323. package/dist/chunks/schedule-cli-4T4YC5V5.js +0 -4
  324. package/dist/chunks/slack-2CGM4SMY.js +0 -4
  325. package/dist/chunks/start-ui-http-3D7QNHGB.js +0 -43
  326. package/dist/chunks/subagent-OZGUOV3J.js +0 -4
  327. package/dist/chunks/tool-shims-IA2WELXJ.js +0 -4
  328. package/dist/chunks/typesafe-system-one-6ULACYD4.js +0 -4
  329. package/dist/chunks/ui-board-H4INJD6C.js +0 -5
  330. package/dist/chunks/ui-decision-6HHNROIT.js +0 -4
  331. package/dist/chunks/ui-view-6MDU4GXY.js +0 -4
  332. package/dist/chunks/virtual-modules-OFI7QKYH.js +0 -4
  333. package/dist/chunks/workers-GTFP75MS.js +0 -4
  334. package/vendor/pi/examples/extensions/sandbox/index.ts +0 -321
  335. package/vendor/pi/examples/extensions/sandbox/package-lock.json +0 -92
  336. package/vendor/pi/examples/extensions/sandbox/package.json +0 -19
  337. package/web/dist/assets/index-9lyu2S6W.css +0 -1
  338. package/web/dist/assets/index-C-hpzey7.js +0 -532
@@ -1,125 +0,0 @@
1
- import { createRequire as __cortexCreateRequire } from 'node:module';
2
- const require = __cortexCreateRequire(import.meta.url);
3
- const __cortexPackageRoot = new URL("../../", import.meta.url);
4
- import{d as al,f as ol}from"./chunk-IA6IODY3.js";import{A as _l,B as Il,C as wl,F as Sl,f as sl,l as cl,m as ul,n as ll,o as fl,p as pl,q as dl,u as El,v as yl,w as Tl,x as as}from"./chunk-IYVZHGUQ.js";import{a as yg}from"./chunk-B3XBQEFM.js";import{a as Xu,b as Qu,c as Yu,d as Zu,e as Ju,f as el,g as tl,j as rl,k as nl,m as il}from"./chunk-ETIBCA2S.js";import{a as is,b as hl,c as gl,d as bl}from"./chunk-R6CGBSTC.js";import{ea as xl,fa as ml}from"./chunk-TMV2ZDOI.js";import{a as vl,b as Nl}from"./chunk-V7K3KNDM.js";import{b as zu}from"./chunk-RA2BUYI3.js";import{d as Wu}from"./chunk-T73GHMFB.js";import{c as ga,d as ba}from"./chunk-NNBSSISP.js";import{a as ha,e as $u,h as ns}from"./chunk-OE4KH3NJ.js";import{a as Ku}from"./chunk-VK5J556O.js";import{e as Gu}from"./chunk-VBN2JSER.js";import{c as C,d as ts,e as rs}from"./chunk-WHC7AYZD.js";var Fn=C((GF,wp)=>{"use strict";wp.exports=an;an.CAPTURING_PHASE=1;an.AT_TARGET=2;an.BUBBLING_PHASE=3;function an(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=an.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}an.prototype=Object.create(Object.prototype,{constructor:{value:an},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var Xs=C((KF,vp)=>{"use strict";var Sp=Fn();vp.exports=zs;function zs(){Sp.call(this),this.view=null,this.detail=0}zs.prototype=Object.create(Sp.prototype,{constructor:{value:zs},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var Ys=C(($F,Ap)=>{"use strict";var Np=Xs();Ap.exports=Qs;function Qs(){Np.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Qs.prototype=Object.create(Np.prototype,{constructor:{value:Qs},initMouseEvent:{value:function(e,t,r,n,i,s,c,x,g,T,I,K,pe,f,Pe){switch(this.initEvent(e,t,r,n,i),this.screenX=s,this.screenY=c,this.clientX=x,this.clientY=g,this.ctrlKey=T,this.altKey=I,this.shiftKey=K,this.metaKey=pe,this.button=f,f){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=Pe}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Ya=C((WF,Rp)=>{"use strict";Rp.exports=Qa;var WT=1,zT=3,XT=4,QT=5,YT=7,ZT=8,JT=9,e_=11,t_=12,r_=13,n_=14,i_=15,a_=17,o_=18,s_=19,c_=20,u_=21,l_=22,f_=23,p_=24,d_=25,x_=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],m_=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],Cp={INDEX_SIZE_ERR:WT,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:zT,WRONG_DOCUMENT_ERR:XT,INVALID_CHARACTER_ERR:QT,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:YT,NOT_FOUND_ERR:ZT,NOT_SUPPORTED_ERR:JT,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:e_,SYNTAX_ERR:t_,INVALID_MODIFICATION_ERR:r_,NAMESPACE_ERR:n_,INVALID_ACCESS_ERR:i_,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:a_,SECURITY_ERR:o_,NETWORK_ERR:s_,ABORT_ERR:c_,URL_MISMATCH_ERR:u_,QUOTA_EXCEEDED_ERR:l_,TIMEOUT_ERR:f_,INVALID_NODE_TYPE_ERR:p_,DATA_CLONE_ERR:d_};function Qa(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=m_[e],this.name=x_[e]}Qa.prototype.__proto__=Error.prototype;for(Xa in Cp)Zs={value:Cp[Xa]},Object.defineProperty(Qa,Xa,Zs),Object.defineProperty(Qa.prototype,Xa,Zs);var Zs,Xa});var Za=C(Op=>{Op.isApiWritable=!globalThis.__domino_frozen__});var ve=C(te=>{"use strict";var Se=Ya(),Le=Se,h_=Za().isApiWritable;te.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};te.IndexSizeError=function(){throw new Se(Le.INDEX_SIZE_ERR)};te.HierarchyRequestError=function(){throw new Se(Le.HIERARCHY_REQUEST_ERR)};te.WrongDocumentError=function(){throw new Se(Le.WRONG_DOCUMENT_ERR)};te.InvalidCharacterError=function(){throw new Se(Le.INVALID_CHARACTER_ERR)};te.NoModificationAllowedError=function(){throw new Se(Le.NO_MODIFICATION_ALLOWED_ERR)};te.NotFoundError=function(){throw new Se(Le.NOT_FOUND_ERR)};te.NotSupportedError=function(){throw new Se(Le.NOT_SUPPORTED_ERR)};te.InvalidStateError=function(){throw new Se(Le.INVALID_STATE_ERR)};te.SyntaxError=function(){throw new Se(Le.SYNTAX_ERR)};te.InvalidModificationError=function(){throw new Se(Le.INVALID_MODIFICATION_ERR)};te.NamespaceError=function(){throw new Se(Le.NAMESPACE_ERR)};te.InvalidAccessError=function(){throw new Se(Le.INVALID_ACCESS_ERR)};te.TypeMismatchError=function(){throw new Se(Le.TYPE_MISMATCH_ERR)};te.SecurityError=function(){throw new Se(Le.SECURITY_ERR)};te.NetworkError=function(){throw new Se(Le.NETWORK_ERR)};te.AbortError=function(){throw new Se(Le.ABORT_ERR)};te.UrlMismatchError=function(){throw new Se(Le.URL_MISMATCH_ERR)};te.QuotaExceededError=function(){throw new Se(Le.QUOTA_EXCEEDED_ERR)};te.TimeoutError=function(){throw new Se(Le.TIMEOUT_ERR)};te.InvalidNodeTypeError=function(){throw new Se(Le.INVALID_NODE_TYPE_ERR)};te.DataCloneError=function(){throw new Se(Le.DATA_CLONE_ERR)};te.nyi=function(){throw new Error("NotYetImplemented")};te.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};te.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
5
- `+new Error().stack)};te.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:h_})};te.merge=function(e,t){for(var r in t)e[r]=t[r]};te.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};te.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};te.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var Js=C((QF,Dp)=>{"use strict";var on=Fn(),g_=Ys(),b_=ve();Dp.exports=Lp;function Lp(){}Lp.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var i=this._listeners[t],s=0,c=i.length;s<c;s++){var x=i[s];if(x.listener===r&&x.capture===n)return}var g={listener:r,capture:n};typeof r=="function"&&(g.f=r),i.push(g)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var i=this._listeners[t];if(i)for(var s=0,c=i.length;s<c;s++){var x=i[s];if(x.listener===r&&x.capture===n){i.length===1?this._listeners[t]=void 0:i.splice(s,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(T,I){var K=I.type,pe=I.eventPhase;if(I.currentTarget=T,pe!==on.CAPTURING_PHASE&&T._handlers&&T._handlers[K]){var f=T._handlers[K],Pe;if(typeof f=="function")Pe=f.call(I.currentTarget,I);else{var ue=f.handleEvent;if(typeof ue!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");Pe=ue.call(f,I)}I.type==="mouseover"?Pe===!0&&I.preventDefault():Pe===!1&&I.preventDefault()}var B=T._listeners&&T._listeners[K];if(B){B=B.slice();for(var xr=0,z=B.length;xr<z;xr++){if(I._immediatePropagationStopped)return;var De=B[xr];if(!(pe===on.CAPTURING_PHASE&&!De.capture||pe===on.BUBBLING_PHASE&&De.capture))if(De.f)De.f.call(I.currentTarget,I);else{var je=De.listener.handleEvent;if(typeof je!="function")throw new TypeError("handleEvent property of event listener object is not a function.");je.call(De.listener,I)}}}}(!t._initialized||t._dispatching)&&b_.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var i=[],s=this.parentNode;s;s=s.parentNode)i.push(s);t.eventPhase=on.CAPTURING_PHASE;for(var c=i.length-1;c>=0&&(n(i[c],t),!t._propagationStopped);c--);if(t._propagationStopped||(t.eventPhase=on.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=on.BUBBLING_PHASE;for(var x=0,g=i.length;x<g&&(n(i[x],t),!t._propagationStopped);x++);}if(t._dispatching=!1,t.eventPhase=on.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof g_)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var ec=C((YF,kp)=>{"use strict";var fr=ve(),vt=kp.exports={valid:function(e){return fr.assert(e,"list falsy"),fr.assert(e._previousSibling,"previous falsy"),fr.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){fr.assert(vt.valid(e)&&vt.valid(t));var r=e,n=e._previousSibling,i=t,s=t._previousSibling;r._previousSibling=s,n._nextSibling=i,s._nextSibling=r,i._previousSibling=n,fr.assert(vt.valid(e)&&vt.valid(t))},replace:function(e,t){fr.assert(vt.valid(e)&&(t===null||vt.valid(t))),t!==null&&vt.insertBefore(t,e),vt.remove(e),fr.assert(vt.valid(e)&&(t===null||vt.valid(t)))},remove:function(e){fr.assert(vt.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,fr.assert(vt.valid(e))}}}});var tc=C((ZF,jp)=>{"use strict";jp.exports={serializeOne:S_,\u0275escapeMatchingClosingTag:Hp,\u0275escapeClosingCommentTag:Up,\u0275escapeProcessingInstructionContent:Bp};var qp=ve(),sn=qp.NAMESPACE,Mp={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},E_={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},y_={},Fp=/[&<>\u00A0]/g,Pp=/[&"<>\u00A0]/g;function T_(e){return Fp.test(e)?e.replace(Fp,t=>{switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case"\xA0":return"&nbsp;"}}):e}function __(e){return Pp.test(e)?e.replace(Pp,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"\xA0":return"&nbsp;"}}):e}function I_(e){var t=e.namespaceURI;return t?t===sn.XML?"xml:"+e.localName:t===sn.XLINK?"xlink:"+e.localName:t===sn.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function Hp(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],i=e.matchAll(new RegExp(r,"ig"));for(let s of i)n[s.index]="&lt;";return n.join("")}var w_=/--!?>/;function Up(e){return w_.test(e)?e.replace(/(--\!?)>/g,"$1&gt;"):e}function Bp(e){return e.includes(">")?e.replaceAll(">","&gt;"):e}function S_(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,i=n===sn.HTML,s=i||n===sn.SVG||n===sn.MATHML?e.localName:e.tagName;r+="<"+s;for(var c=0,x=e._numattrs;c<x;c++){var g=e._attr(c);r+=" "+I_(g),g.value!==void 0&&(r+='="'+__(g.value)+'"')}if(r+=">",!(i&&E_[s])){var T=e.serialize();Mp[s.toUpperCase()]&&(T=Hp(T,s)),i&&y_[s]&&T.charAt(0)===`
6
- `&&(r+=`
7
- `),r+=T,r+="</"+s+">"}break;case 3:case 4:var I;t.nodeType===1&&t.namespaceURI===sn.HTML?I=t.tagName:I="",Mp[I]||I==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=T_(e.data);break;case 8:r+="<!--"+Up(e.data)+"-->";break;case 7:let K=Bp(e.data);r+="<?"+e.target+" "+K+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:qp.InvalidStateError()}return r}});var Ke=C((JF,zp)=>{"use strict";zp.exports=ge;var Wp=Js(),Ja=ec(),Vp=tc(),re=ve();function ge(){Wp.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var st=ge.ELEMENT_NODE=1,rc=ge.ATTRIBUTE_NODE=2,eo=ge.TEXT_NODE=3,v_=ge.CDATA_SECTION_NODE=4,N_=ge.ENTITY_REFERENCE_NODE=5,nc=ge.ENTITY_NODE=6,Gp=ge.PROCESSING_INSTRUCTION_NODE=7,Kp=ge.COMMENT_NODE=8,Ni=ge.DOCUMENT_NODE=9,Nt=ge.DOCUMENT_TYPE_NODE=10,qr=ge.DOCUMENT_FRAGMENT_NODE=11,ic=ge.NOTATION_NODE=12,ac=ge.DOCUMENT_POSITION_DISCONNECTED=1,oc=ge.DOCUMENT_POSITION_PRECEDING=2,sc=ge.DOCUMENT_POSITION_FOLLOWING=4,$p=ge.DOCUMENT_POSITION_CONTAINS=8,cc=ge.DOCUMENT_POSITION_CONTAINED_BY=16,uc=ge.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;ge.prototype=Object.create(Wp.prototype,{baseURI:{get:re.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===st?this.parentNode:null}},hasChildNodes:{value:re.shouldOverride},firstChild:{get:re.shouldOverride},lastChild:{get:re.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===ge.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===ge.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var i=this,s,c;if(!t.nodeType)throw new TypeError("not a node");switch(i.nodeType){case Ni:case qr:case st:break;default:re.HierarchyRequestError()}switch(t.isAncestor(i)&&re.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==i&&re.NotFoundError(),t.nodeType){case qr:case Nt:case st:case eo:case Gp:case Kp:break;default:re.HierarchyRequestError()}if(i.nodeType===Ni)switch(t.nodeType){case eo:re.HierarchyRequestError();break;case qr:switch(t._countChildrenOfType(eo)>0&&re.HierarchyRequestError(),t._countChildrenOfType(st)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===Nt&&re.HierarchyRequestError(),c=r.nextSibling;c!==null;c=c.nextSibling)c.nodeType===Nt&&re.HierarchyRequestError();s=i._countChildrenOfType(st),n?s>0&&re.HierarchyRequestError():(s>1||s===1&&r.nodeType!==st)&&re.HierarchyRequestError();break;default:re.HierarchyRequestError()}break;case st:if(r!==null)for(n&&r.nodeType===Nt&&re.HierarchyRequestError(),c=r.nextSibling;c!==null;c=c.nextSibling)c.nodeType===Nt&&re.HierarchyRequestError();s=i._countChildrenOfType(st),n?s>0&&re.HierarchyRequestError():(s>1||s===1&&r.nodeType!==st)&&re.HierarchyRequestError();break;case Nt:if(r===null)i._countChildrenOfType(st)&&re.HierarchyRequestError();else for(c=i.firstChild;c!==null&&c!==r;c=c.nextSibling)c.nodeType===st&&re.HierarchyRequestError();s=i._countChildrenOfType(Nt),n?s>0&&re.HierarchyRequestError():(s>1||s===1&&r.nodeType!==Nt)&&re.HierarchyRequestError();break}else t.nodeType===Nt&&re.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var i=r;return i===t&&(i=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,i,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&re.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&cc)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return ac+uc;for(var r=[],n=[],i=this;i!==null;i=i.parentNode)r.push(i);for(i=t;i!==null;i=i.parentNode)n.push(i);if(r.reverse(),n.reverse(),r[0]!==n[0])return ac+uc;i=Math.min(r.length,n.length);for(var s=1;s<i;s++)if(r[s]!==n[s])return r[s].index<n[s].index?sc:oc;return r.length<n.length?sc+cc:oc+$p}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case st:return this._lookupNamespacePrefix(t,this);case Ni:return r=this.documentElement,r?r.lookupPrefix(t):null;case nc:case ic:case qr:case Nt:return null;case rc:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case st:return re.shouldOverride();case Ni:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case nc:case ic:case Nt:case qr:return null;case rc:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;re.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&re.WrongDocumentError()}},removeChildren:{value:re.shouldOverride},_insertOrReplace:{value:function(t,r,n){var i=this,s,c;if(i.nodeType===qr&&i.rooted&&re.HierarchyRequestError(),t._childNodes&&(s=r===null?t._childNodes.length:r.index,i.parentNode===t)){var x=i.index;x<s&&s--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var g=r;g===null&&(g=t.firstChild);var T=i.rooted&&t.rooted;if(i.nodeType===qr){for(var I=[0,n?1:0],K,pe=i.firstChild;pe!==null;pe=K)K=pe.nextSibling,I.push(pe),pe.parentNode=t;var f=I.length;if(n?Ja.replace(g,f>2?I[2]:null):f>2&&g!==null&&Ja.insertBefore(I[2],g),t._childNodes)for(I[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,I),c=2;c<f;c++)I[c]._index=I[0]+(c-2);else t._firstChild===r&&(f>2?t._firstChild=I[2]:n&&(t._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,t.rooted)for(t.modify(),c=2;c<f;c++)t.doc.mutateInsert(I[c])}else{if(r===i)return;T?i._remove():i.parentNode&&i.remove(),i.parentNode=t,n?(Ja.replace(g,i),t._childNodes?(i._index=s,t._childNodes[s]=i):t._firstChild===r&&(t._firstChild=i)):(g!==null&&Ja.insertBefore(i,g),t._childNodes?(i._index=s,t._childNodes.splice(s,0,i)):t._firstChild===r&&(t._firstChild=i)),T?(t.modify(),t.doc.mutateMove(i)):t.rooted&&(t.modify(),t.doc.mutateInsert(i))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===ge.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===ge.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=Vp.serializeOne(t,this);return e}},outerHTML:{get:function(){return Vp.serializeOne(this,{nodeType:0})},set:re.nyi},ELEMENT_NODE:{value:st},ATTRIBUTE_NODE:{value:rc},TEXT_NODE:{value:eo},CDATA_SECTION_NODE:{value:v_},ENTITY_REFERENCE_NODE:{value:N_},ENTITY_NODE:{value:nc},PROCESSING_INSTRUCTION_NODE:{value:Gp},COMMENT_NODE:{value:Kp},DOCUMENT_NODE:{value:Ni},DOCUMENT_TYPE_NODE:{value:Nt},DOCUMENT_FRAGMENT_NODE:{value:qr},NOTATION_NODE:{value:ic},DOCUMENT_POSITION_DISCONNECTED:{value:ac},DOCUMENT_POSITION_PRECEDING:{value:oc},DOCUMENT_POSITION_FOLLOWING:{value:sc},DOCUMENT_POSITION_CONTAINS:{value:$p},DOCUMENT_POSITION_CONTAINED_BY:{value:cc},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:uc}})});var Qp=C((t3,Xp)=>{"use strict";Xp.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var Zp=C((r3,Yp)=>{"use strict";function A_(e){return this[e]||null}function C_(e){return e||(e=[]),e.item=A_,e}Yp.exports=C_});var cn=C((n3,Jp)=>{"use strict";var lc;try{lc=Qp()}catch{lc=Zp()}Jp.exports=lc});var to=C((i3,rd)=>{"use strict";rd.exports=td;var ed=Ke(),R_=cn();function td(){ed.call(this),this._firstChild=this._childNodes=null}td.prototype=Object.create(ed.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new R_;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var ro=C(dc=>{"use strict";dc.isValidName=P_;dc.isValidQName=q_;var O_=/^[_:A-Za-z][-.:\w]+$/,L_=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,Ai="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Ci="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",un="["+Ai+"]["+Ci+"]*",fc=Ai+":",pc=Ci+":",D_=new RegExp("^["+fc+"]["+pc+"]*$"),k_=new RegExp("^("+un+"|"+un+":"+un+")$"),nd=/[\uD800-\uDB7F\uDC00-\uDFFF]/,id=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,ad=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;Ai+="\uD800-\u{EFC00}-\uDFFF";Ci+="\uD800-\u{EFC00}-\uDFFF";un="["+Ai+"]["+Ci+"]*";fc=Ai+":";pc=Ci+":";var M_=new RegExp("^["+fc+"]["+pc+"]*$"),F_=new RegExp("^("+un+"|"+un+":"+un+")$");function P_(e){if(O_.test(e)||D_.test(e))return!0;if(!nd.test(e)||!M_.test(e))return!1;var t=e.match(id),r=e.match(ad);return r!==null&&2*r.length===t.length}function q_(e){if(L_.test(e)||k_.test(e))return!0;if(!nd.test(e)||!F_.test(e))return!1;var t=e.match(id),r=e.match(ad);return r!==null&&2*r.length===t.length}});var mc=C(xc=>{"use strict";var od=ve();xc.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(i){t[i.value||i]=i.alias||i});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var i=this._getattr(e.name);return i===null?r:(i=t[i.toLowerCase()],i!==void 0?i:n!==null?n:i)},set:function(i){this._setattr(e.name,i)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(i){i?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return H_(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(i){e.treatNullAsEmptyString&&i===null&&(i=""),this._setattr(e.name,i)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function H_(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){od.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",i=e.type==="limited unsigned long with fallback",s=e.min,c=e.max,x=e.setmin;return s===void 0&&(r&&(s=0),n&&(s=-2147483648),i&&(s=1)),c===void 0&&(r||n||i)&&(c=2147483647),{get:function(){var g=this._getattr(e.name),T=e.float?parseFloat(g):parseInt(g,10);if(g===null||!isFinite(T)||s!==void 0&&T<s||c!==void 0&&T>c)return t.call(this);if(r||n||i){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(g))return t.call(this);T=T|0}return T},set:function(g){e.float||(g=Math.floor(g)),x!==void 0&&g<x&&od.IndexSizeError(e.name+" set to "+g),r?g=g<0||g>2147483647?t.call(this):g|0:i?g=g<1||g>2147483647?t.call(this):g|0:n&&(g=g<-2147483648||g>2147483647?t.call(this):g|0),this._setattr(e.name,String(g))}}}xc.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var ud=C((s3,cd)=>{"use strict";cd.exports=sd;var U_=Ke();function sd(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}sd.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===U_.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var gc=C((c3,pd)=>{"use strict";var hc=ve();pd.exports=fd;function fd(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(fd.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=Pn(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=Pn(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=Pn(this),t=0,r=arguments.length;t<r;t++){var n=Ri(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=Pn(this),t=0,r=arguments.length;t<r;t++){var n=Ri(arguments[t]),i=e.indexOf(n);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(t,r){return t=Ri(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&hc.SyntaxError(),t=Ri(t),r=Ri(r);var n=Pn(this),i=n.indexOf(t);if(i<0)return!1;var s=n.indexOf(r);return s<0?n[i]=r:i<s?(n[i]=r,n.splice(s,1)):n.splice(i,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(ld(this,e),this._setString(e.join(" ").trim())):ld(this,Pn(this)),this._lastStringValue=this._getString()}}});function ld(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function Ri(e){return e=String(e),e===""&&hc.SyntaxError(),/[ \t\r\n\f]/.test(e)&&hc.InvalidCharacterError(),e}function B_(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function Pn(e){var t=e._getString();if(t===e._lastStringValue)return B_(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(i){var s="$"+i;return n[s]?!1:(n[s]=!0,!0)})}});var oo=C((Un,bd)=>{"use strict";var no=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),j_=function(e,t){return e.compareDocumentPosition(t)},V_=function(e,t){return j_(e,t)&2?1:-1},ao=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Hn=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},G_=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},K_=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},qn=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},dd=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(D.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var i=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(i):String.fromCharCode(i)})):D.ident.test(e)?Hr(e):e},Hr=function(e){return e.replace(D.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},$_=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),md=function(e,t){var r=D.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},ct=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},xd=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},W_=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},bc=function(e,t,r){var n=W_(e),i=n.group,s=n.offset,c=r?K_:G_,x=r?Hn:ao;return function(g){if(qn(g))for(var T=c(g.parentNode),I=0;T;){if(t(T,g)&&I++,T===g)return I-=s,i&&I?I%i===0&&I<0==i<0:!I;T=x(T)}}},Ue={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=hd[t],function(i){var s;switch(e){case"for":s=i.htmlFor;break;case"class":s=i.className,s===""&&i.getAttribute("class")==null&&(s=null);break;case"href":case"src":s=i.getAttribute(e,2);break;case"title":s=i.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(i.getAttribute){s=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;s=i[e]!=null?i[e]:i.getAttribute&&i.getAttribute(e);break}if(s!=null)return s=s+"",n&&(s=s.toLowerCase(),r=r.toLowerCase()),t(s,r)}},":first-child":function(e){return!Hn(e)&&qn(e)},":last-child":function(e){return!ao(e)&&qn(e)},":only-child":function(e){return!Hn(e)&&!ao(e)&&qn(e)},":nth-child":function(e,t){return bc(e,function(){return!0},t)},":nth-last-child":function(e){return Ue[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=yc(e);return function(r){return!t(r)}},":first-of-type":function(e){if(qn(e)){for(var t=e.nodeName;e=Hn(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(qn(e)){for(var t=e.nodeName;e=ao(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return Ue[":first-of-type"](e)&&Ue[":last-of-type"](e)},":nth-of-type":function(e,t){return bc(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return Ue[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!Ue[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===no.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return yc(e)},":matches":function(e){return Ue[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),i=yc(r.join(","));return bc(n,i,t)},":nth-last-match":function(e){return Ue[":nth-match"](e,!0)},":links-here":function(e){return e+""==no.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===no.location.host;var t=+e+1;return function(r){if(r.href){var n=no.location+"",i=r+"";return xd(n,t)===xd(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!Ue[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!Ue[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!Ue[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return gd(e,t).length>0}}},hd={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,i,s;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(i=e[r-1],s=e[r+t.length],(!i||i===" ")&&(!s||s===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},Oi={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Hn(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Hn(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(i){for(var s=i.ownerDocument,c=s.getElementsByTagName("*"),x=c.length;x--;)if(r=c[x],n.test(i))return r=null,!0;r=null}return n.combinator=function(i){if(!(!r||!r.getAttribute)){var s=r.getAttribute(t)||"";if(s[0]==="#"&&(s=s.substring(1)),s===i.id&&e(r))return r}},n}},D={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};D.cssid=ct(D.cssid,"nonascii",D.nonascii);D.cssid=ct(D.cssid,"escape",D.escape);D.qname=ct(D.qname,"cssid",D.cssid);D.simple=ct(D.simple,"cssid",D.cssid);D.ref=ct(D.ref,"cssid",D.cssid);D.attr=ct(D.attr,"cssid",D.cssid);D.pseudo=ct(D.pseudo,"cssid",D.cssid);D.inside=ct(D.inside,`[^"'>]*`,D.inside);D.attr=ct(D.attr,"inside",md("\\[","\\]"));D.pseudo=ct(D.pseudo,"inside",md("\\(","\\)"));D.simple=ct(D.simple,"pseudo",D.pseudo);D.simple=ct(D.simple,"attr",D.attr);D.ident=ct(D.ident,"cssid",D.cssid);D.str_escape=ct(D.str_escape,"escape",D.escape);var Li=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],i=[],s,c,x,g,T;t;){if(x=D.qname.exec(t))t=t.substring(x[0].length),c=Hr(x[1]),i.push(io(c,!0));else if(x=D.simple.exec(t))t=t.substring(x[0].length),c="*",i.push(io(c,!0)),i.push(io(x));else throw new SyntaxError("Invalid selector.");for(;x=D.simple.exec(t);)t=t.substring(x[0].length),i.push(io(x));if(t[0]==="!"&&(t=t.substring(1),s=X_(),s.qname=c,i.push(s.simple)),x=D.ref.exec(t)){t=t.substring(x[0].length),T=Oi.ref(Ec(i),Hr(x[1])),n.push(T.combinator),i=[];continue}if(x=D.combinator.exec(t)){if(t=t.substring(x[0].length),g=x[1]||x[2]||x[3],g===","){n.push(Oi.noop(Ec(i)));break}}else g="noop";if(!Oi[g])throw new SyntaxError("Bad combinator.");n.push(Oi[g](Ec(i))),i=[]}return r=z_(n),r.qname=c,r.sel=t,s&&(s.lname=r.qname,s.test=r,s.qname=s.qname,s.sel=r.sel,r=s),T&&(T.test=r,T.qname=r.qname,T.sel=r.sel,r=T),r},io=function(e,t){if(t)return e==="*"?Ue["*"]:Ue.type(e);if(e[1])return e[1][0]==="."?Ue.attr("class","~=",Hr(e[1].substring(1)),!1):Ue.attr("id","=",Hr(e[1].substring(1)),!1);if(e[2])return e[3]?Ue[Hr(e[2])](dd(e[3])):Ue[Hr(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),Ue.attr(Hr(e[4]),e[5]||"-",dd(r),n)}throw new SyntaxError("Unknown Selector.")},Ec=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},z_=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},X_=function(){var e;function t(r){for(var n=r.ownerDocument,i=n.getElementsByTagName(t.lname),s=i.length;s--;)if(t.test(i[s])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},yc=function(e){for(var t=Li(e),r=[t];t.sel;)t=Li(t.sel),r.push(t);return r.length<2?t:function(n){for(var i=r.length,s=0;s<i;s++)if(r[s](n))return!0}},gd=function(e,t){for(var r=[],n=Li(e),i=t.getElementsByTagName(n.qname),s=0,c;c=i[s++];)n(c)&&r.push(c);if(n.sel){for(;n.sel;)for(n=Li(n.sel),i=t.getElementsByTagName(n.qname),s=0;c=i[s++];)n(c)&&$_.call(r,c)===-1&&r.push(c);r.sort(V_)}return r};bd.exports=Un=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return gd(e,t)};Un.selectors=Ue;Un.operators=hd;Un.combinators=Oi;Un.matches=function(e,t){var r={sel:t};do if(r=Li(r.sel),r(e))return!0;while(r.sel);return!1}});var so=C((u3,Ed)=>{"use strict";var Q_=Ke(),Y_=ec(),Tc=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var i=t[n],s=i instanceof Q_;r.appendChild(s?i:e.createTextNode(String(i)))}return r},Z_={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=Tc(this.doc,t);r.insertBefore(i,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(c){return c===n});)n=n.previousSibling;var i=Tc(this.doc,t),s=n?n.nextSibling:r.firstChild;r.insertBefore(i,s)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),Y_.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=Tc(this.doc,t);this.parentNode===r?r.replaceChild(i,this):r.insertBefore(i,n)}}}};Ed.exports=Z_});var _c=C((l3,Td)=>{"use strict";var yd=Ke(),J_={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===yd.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===yd.ELEMENT_NODE)return e}return null}}};Td.exports=J_});var Ic=C((f3,Id)=>{"use strict";Id.exports=_d;var Bn=ve();function _d(e){this.element=e}Object.defineProperties(_d.prototype,{length:{get:Bn.shouldOverride},item:{value:Bn.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Bn.nyi},setNamedItemNS:{value:Bn.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Bn.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;Bn.NotFoundError()}}})});var Vn=C((p3,Ad)=>{"use strict";Ad.exports=Ur;var wc=ro(),Te=ve(),Qt=Te.NAMESPACE,uo=mc(),Ut=Ke(),Sc=cn(),eI=tc(),co=ud(),jn=Ya(),tI=gc(),vc=oo(),Sd=to(),rI=so(),nI=_c(),vd=Ic(),wd=Object.create(null);function Ur(e,t,r,n){Sd.call(this),this.nodeType=Ut.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Nc(e,t){if(e.nodeType===Ut.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)Nc(e.childNodes[r],t)}Ur.prototype=Object.create(Sd.prototype,{isHTML:{get:function(){return this.namespaceURI===Qt.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=wd[t];r||(wd[t]=r=Te.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return Nc(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return Nc(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:Te.nyi},outerHTML:{get:function(){return eI.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Ut.DOCUMENT_NODE&&Te.NoModificationAllowedError(),r.nodeType===Ut.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var i=this.parentNode;return i===null?null:i.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return Te.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Ut.ELEMENT_NODE)throw new TypeError("not an element");return t=Te.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=Te.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=Te.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Ut.DOCUMENT_NODE)&&Te.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:Te.SyntaxError()}(!(n instanceof Ur)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Qt.HTML)&&(n=n.ownerDocument.createElementNS(Qt.HTML,"body"));var i=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);i.parse(r,!0),this._insertAdjacent(t,i._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new Nd(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new Cc(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Ut.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Ut.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=iI(t):r=Ac(t),new co(this,r)):new Sc}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=Ac(r):r==="*"?n=aI(t):n=oI(t,r),new co(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new Sc;return r}return t=t.split(/[ \t\r\n\f]+/),new co(this,sI(t))}},getElementsByName:{value:function(t){return new co(this,cI(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Qt.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var i=this._attrKeys[r],s=this._attrsByLName[i],c=s.cloneNode();c._setOwnerElement(t),t._attrsByLName[i]=c,t._addQName(c)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(!t.hasAttributeNS(i.namespaceURI,i.localName)||t.getAttributeNS(i.namespaceURI,i.localName)!==i.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,i=this._numattrs;n<i;n++){var s=this._attr(n);if(s.prefix==="xmlns"&&s.value===t&&r.lookupNamespaceURI(s.localName)===t)return s.localName}var c=this.parentElement;return c?c._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(i.namespaceURI===Qt.XMLNS&&(i.prefix==="xmlns"&&i.localName===t||t===null&&i.prefix===null&&i.localName==="xmlns"))return i.value||null}var s=this.parentElement;return s?s.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),wc.isValidName(t)||Te.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],i;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),i=!0),n.value=r,this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),wc.isValidName(t)||Te.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var i=r.indexOf(":"),s,c;i<0?(s=null,c=r):(s=r.substring(0,i),c=r.substring(i+1)),(t===""||t===void 0)&&(t=null);var x=(t===null?"":t)+"|"+c,g=this._attrsByLName[x],T;g||(g=new Di(this,c,s,t),T=!0,this._attrsByLName[x]=g,this._attributes&&(this._attributes[this._attrKeys.length]=g),this._attrKeys.push(x),this._addQName(g)),g.value=n,T&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),wc.isValidQName(r)||Te.InvalidCharacterError();var i=r.indexOf(":"),s=i<0?null:r.substring(0,i);(s!==null&&t===null||s==="xml"&&t!==Qt.XML||(r==="xmlns"||s==="xmlns")&&t!==Qt.XMLNS||t===Qt.XMLNS&&!(r==="xmlns"||s==="xmlns"))&&Te.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new jn(jn.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(i){return i===t}))return t;if(t.ownerElement!==null)throw new jn(jn.INUSE_ATTRIBUTE_ERR);n.forEach(function(i){this.removeAttributeNode(i)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new jn(jn.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,i=this._attrsByLName[n];return i&&this.removeAttributeNode(i),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),i||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,i=(n===null?"":n)+"|"+r.localName;this._attrsByLName[i]=void 0;var s=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,s,1),this._attributes[t]=void 0),this._attrKeys.splice(s,1);var c=r.onchange;r._setOwnerElement(null),c&&c.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,i=this._attrsByLName[n];if(i){this._attrsByLName[n]=void 0;var s=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,s,1),this._attrKeys.splice(s,1),this._removeQName(i);var c=i.onchange;i._setOwnerElement(null),c&&c.call(i,this,i.localName,i.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(i)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&Te.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],i;n||(n=this._newattr(t),i=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new Di(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);Te.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else Te.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:uo.property({name:"id"}),className:uo.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new tI(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return vc.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Ut.ELEMENT_NODE);return null}},querySelector:{value:function(e){return vc(e,this)[0]}},querySelectorAll:{value:function(e){var t=vc(e,this);return t.item?t:new Sc(t)}}});Object.defineProperties(Ur.prototype,rI);Object.defineProperties(Ur.prototype,nI);uo.registerChangeHandler(Ur,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});uo.registerChangeHandler(Ur,"class",function(e,t,r,n){e._classList&&e._classList._update()});function Di(e,t,r,n,i){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=i,this._setOwnerElement(e)}Di.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new Di(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Ut.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});Ur._Attr=Di;function Cc(e){vd.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}Cc.prototype=Object.create(vd.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(Cc.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function Nd(e){this.element=e,this.updateCache()}Nd.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var i=this.element.firstChild;i!==null;i=i.nextSibling)if(i.nodeType===Ut.ELEMENT_NODE){this[this.childrenByNumber.length]=i,this.childrenByNumber.push(i);var s=i.getAttribute("id");s&&!this.childrenByName[s]&&(this.childrenByName[s]=i);var c=i.getAttribute("name");c&&this.element.namespaceURI===Qt.HTML&&t.test(this.element.localName)&&!this.childrenByName[c]&&(this.childrenByName[s]=i)}}}}});function Ac(e){return function(t){return t.localName===e}}function iI(e){var t=Te.toASCIILowerCase(e);return t===e?Ac(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function aI(e){return function(t){return t.namespaceURI===e}}function oI(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function sI(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function cI(e){return function(t){return t.namespaceURI!==Qt.HTML?!1:t.getAttribute("name")===e}}});var Rc=C((d3,Dd)=>{"use strict";Dd.exports=Ld;var Rd=Ke(),uI=cn(),Od=ve(),Cd=Od.HierarchyRequestError,lI=Od.NotFoundError;function Ld(){Rd.call(this)}Ld.prototype=Object.create(Rd.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Cd()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");Cd()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");lI()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new uI),this._childNodes}}})});var ki=C((x3,Fd)=>{"use strict";Fd.exports=lo;var Md=Rc(),kd=ve(),fI=so(),pI=_c();function lo(){Md.call(this)}lo.prototype=Object.create(Md.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&kd.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var i=this.data,s=i.length;t=t>>>0,r=r>>>0,n=String(n),(t>s||t<0)&&kd.IndexSizeError(),t+r>s&&(r=s-t);var c=i.substring(0,t),x=i.substring(t+r);this.data=c+n+x}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(lo.prototype,fI);Object.defineProperties(lo.prototype,pI)});var Lc=C((m3,Ud)=>{"use strict";Ud.exports=Oc;var Pd=ve(),qd=Ke(),Hd=ki();function Oc(e,t){Hd.call(this),this.nodeType=qd.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var Mi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};Oc.prototype=Object.create(Hd.prototype,{nodeName:{value:"#text"},nodeValue:Mi,textContent:Mi,innerText:Mi,data:{get:Mi.get,set:function(e){Mi.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&Pd.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var i=this.parentNode;return i!==null&&i.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===qd.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:Pd.nyi},clone:{value:function(){return new Oc(this.ownerDocument,this._data)}}})});var kc=C((h3,jd)=>{"use strict";jd.exports=Dc;var dI=Ke(),Bd=ki();function Dc(e,t){Bd.call(this),this.nodeType=dI.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Fi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Dc.prototype=Object.create(Bd.prototype,{nodeName:{value:"#comment"},nodeValue:Fi,textContent:Fi,innerText:Fi,data:{get:Fi.get,set:function(e){Fi.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Dc(this.ownerDocument,this._data)}}})});var Fc=C((g3,Kd)=>{"use strict";Kd.exports=Mc;var xI=Ke(),mI=cn(),Gd=to(),fo=Vn(),hI=oo(),Vd=ve();function Mc(e){Gd.call(this),this.nodeType=xI.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}Mc.prototype=Object.create(Gd.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(fo.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(fo.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=fo.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(fo.prototype,"firstElementChild").get;var r=hI(e,t);return r.item?r:new mI(r)}},clone:{value:function(){return new Mc(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:Vd.nyi},outerHTML:{get:function(){return this.serialize()},set:Vd.nyi}})});var qc=C((b3,Wd)=>{"use strict";Wd.exports=Pc;var gI=Ke(),$d=ki();function Pc(e,t,r){$d.call(this),this.nodeType=gI.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var Pi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Pc.prototype=Object.create($d.prototype,{nodeName:{get:function(){return this.target}},nodeValue:Pi,textContent:Pi,innerText:Pi,data:{get:Pi.get,set:function(e){Pi.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Pc(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var qi=C((E3,zd)=>{"use strict";var Hc={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};zd.exports=Hc.constructor=Hc.prototype=Hc});var Bc=C((T3,Qd)=>{"use strict";var y3=Qd.exports={nextSkippingChildren:bI,nextAncestorSibling:Uc,next:EI,previous:yI,deepLastChild:Xd};function bI(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:Uc(e,t)}function Uc(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function EI(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:Uc(e,t))}function Xd(e){for(;e.lastChild;)e=e.lastChild;return e}function yI(e,t){var r;return r=e.previousSibling,r!==null?Xd(r):(r=e.parentNode,r===t?null:r)}});var nx=C((_3,rx)=>{"use strict";rx.exports=tx;var TI=Ke(),$e=qi(),Yd=Bc(),ex=ve(),jc={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},Vc={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function Zd(e,t){var r,n,i,s,c;for(n=e._currentNode[jc[t]];n!==null;){if(s=e._internalFilter(n),s===$e.FILTER_ACCEPT)return e._currentNode=n,n;if(s===$e.FILTER_SKIP&&(r=n[jc[t]],r!==null)){n=r;continue}for(;n!==null;){if(c=n[Vc[t]],c!==null){n=c;break}if(i=n.parentNode,i===null||i===e.root||i===e._currentNode)return null;n=i}}return null}function Jd(e,t){var r,n,i;if(r=e._currentNode,r===e.root)return null;for(;;){for(i=r[Vc[t]];i!==null;){if(r=i,n=e._internalFilter(r),n===$e.FILTER_ACCEPT)return e._currentNode=r,r;i=r[jc[t]],(n===$e.FILTER_REJECT||i===null)&&(i=r[Vc[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===$e.FILTER_ACCEPT)return null}}function tx(e,t,r){(!e||!e.nodeType)&&ex.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(tx.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof TI))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&ex.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return $e.FILTER_SKIP;if(n=this._filter,n===null)r=$e.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===$e.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return Zd(this,"first")}},lastChild:{value:function(){return Zd(this,"last")}},previousSibling:{value:function(){return Jd(this,"previous")}},nextSibling:{value:function(){return Jd(this,"next")}},previousNode:{value:function(){var t,r,n,i;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==$e.FILTER_REJECT){for(i=t.lastChild;i&&(t=i,r=this._internalFilter(t),r!==$e.FILTER_REJECT);i=t.lastChild);if(r===$e.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===$e.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,i;t=this._currentNode,r=$e.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===$e.FILTER_ACCEPT)return this._currentNode=t,t;if(r===$e.FILTER_REJECT)break}for(i=Yd.nextSkippingChildren(t,this.root);i;i=Yd.nextSkippingChildren(t,this.root)){if(t=i,r=this._internalFilter(t),r===$e.FILTER_ACCEPT)return this._currentNode=t,t;if(r===$e.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var ux=C((I3,cx)=>{"use strict";cx.exports=sx;var Gc=qi(),Kc=Bc(),ox=ve();function _I(e,t,r){return r?Kc.next(e,t):e===t?null:Kc.previous(e,null)}function ix(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function ax(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=_I(r,e._root,t),r===null)return null;var i=e._internalFilter(r);if(i===Gc.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function sx(e,t,r){(!e||!e.nodeType)&&ox.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(sx.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&ox.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return Gc.FILTER_SKIP;if(n=this._filter,n===null)r=Gc.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!ix(t,this._root)&&ix(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=Kc.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return ax(this,!0)}},previousNode:{value:function(){return ax(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var po=C((w3,lx)=>{"use strict";lx.exports=We;function We(e){if(!e)return Object.create(We.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=We.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(We.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(We.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}We.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;We.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;We.portPattern=/:\d+$/;We.authorityPattern=/^[^:\/?#]+:\/\//;We.hierarchyPattern=/^[^:\/?#]+:\//;We.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};We.prototype={constructor:We,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return We.authorityPattern.test(this.url)},isHierarchical:function(){return We.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new We(e),n=new We;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=s(r.path):(n.path=i(t.path,r.path),n.path=s(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function i(c,x){if(t.host!==void 0&&!t.path)return"/"+x;var g=c.lastIndexOf("/");return g===-1?x:c.substring(0,g+1)+x}function s(c){if(!c)return c;for(var x="";c.length>0;){if(c==="."||c===".."){c="";break}var g=c.substring(0,2),T=c.substring(0,3),I=c.substring(0,4);if(T==="../")c=c.substring(3);else if(g==="./")c=c.substring(2);else if(T==="/./")c="/"+c.substring(3);else if(g==="/."&&c.length===2)c="/";else if(I==="/../"||T==="/.."&&c.length===3)c="/"+c.substring(4),x=x.replace(/\/?[^\/]*$/,"");else{var K=c.match(/(\/?([^\/]*))/)[0];x+=K,c=c.substring(K.length)}}return x}}}});var dx=C((S3,px)=>{"use strict";px.exports=$c;var fx=Fn();function $c(e,t){fx.call(this,e,t)}$c.prototype=Object.create(fx.prototype,{constructor:{value:$c}})});var Wc=C((v3,xx)=>{"use strict";xx.exports={Event:Fn(),UIEvent:Xs(),MouseEvent:Ys(),CustomEvent:dx()}});var hx=C(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.hyphenate=Gn.parse=void 0;function II(e){let t=[],r=0,n=0,i=0,s=0,c=0,x=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&e.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&e.charCodeAt(r-1)!==92&&(i=0);break;case 58:!x&&n===0&&i===0&&(x=mx(e.substring(c,r-1).trim()),s=r);break;case 59:if(x&&s>0&&n===0&&i===0){let T=e.substring(s,r-1).trim();t.push(x,T),c=r,s=0,x=null}break}if(x&&s){let g=e.slice(s).trim();t.push(x,g)}return t}Gn.parse=II;function mx(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Gn.hyphenate=mx});var xo=C((A3,Tx)=>{"use strict";var{parse:wI}=hx();Tx.exports=function(e){let t=new yx(e),r={get:function(n,i){return i in n?n[i]:n.getPropertyValue(gx(i))},has:function(n,i){return!0},set:function(n,i,s){return i in n?n[i]=s:n.setProperty(gx(i),s??void 0),!0}};return new Proxy(t,r)};function gx(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function yx(e){this._element=e}var bx="!important";function Ex(e){let t={property:{},priority:{}};if(!e)return t;let r=wI(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let i=r[n],s=r[n+1];s.endsWith(bx)&&(t.priority[i]="important",s=s.slice(0,-bx.length).trim()),t.property[i]=s}return t}var Kn={};yx.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=Ex(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Kn&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Kn&&!/^important$/i.test(r))){var n=this._parsed;if(t===Kn){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var i=Ex(e+":"+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var s in i.property)n.property[s]=i.property[s],r!==Kn&&(r!==""?n.priority[s]="important":n.priority[s]&&delete n.priority[s])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Kn)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Kn,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var zc=C((C3,_x)=>{"use strict";var Be=po();_x.exports=Hi;function Hi(){}Hi.prototype=Object.create(Object.prototype,{_url:{get:function(){return new Be(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,Be.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Be.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Be.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,Be.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Be.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new Be(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Be.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,Be.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new Be(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,Be.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Hi._inherit=function(e){Object.getOwnPropertyNames(Hi.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Hi.prototype,t);Object.defineProperty(e,t,r)}})}});var Xc=C((R3,Sx)=>{"use strict";var Ix=mc(),SI=Za().isApiWritable;Sx.exports=function(e,t,r,n){var i=e.ctor;if(i){var s=e.props||{};if(e.attributes)for(var c in e.attributes){var x=e.attributes[c];(typeof x!="object"||Array.isArray(x))&&(x={type:x}),x.name||(x.name=c.toLowerCase()),s[c]=Ix.property(x)}s.constructor={value:i,writable:SI},i.prototype=Object.create((e.superclass||t).prototype,s),e.events&&NI(i,e.events),r[e.name]=i}else i=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(g){n[g]=i}),i};function wx(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}wx.prototype.build=function(){return()=>{}};function vI(e,t,r,n){var i=e.ownerDocument||Object.create(null),s=e.form||Object.create(null);e[t]=new wx(n,i,s,e).build()}function NI(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(i){this._setEventHandler(n,i)}}),Ix.registerChangeHandler(e,"on"+n,vI)})}});var go=C(ho=>{"use strict";var Qc=Ke(),vx=Vn(),AI=xo(),ht=ve(),Nx=zc(),CI=Xc(),pr=ho.elements={},Ui=Object.create(null);ho.createElement=function(e,t,r){var n=Ui[t]||OI;return new n(e,t,r)};function S(e){return CI(e,v,pr,Ui)}function Ne(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function mo(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var $n={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},RI={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Bt=function(e,t,r){v.call(this,e,t,r),this._form=null},v=ho.HTMLElement=S({superclass:vx,name:"HTMLElement",ctor:function(t,r,n){vx.call(this,t,r,ht.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof Ui.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new AI(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:ht.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in RI||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),OI=S({name:"HTMLUnknownElement",ctor:function(t,r,n){v.call(this,t,r,n)}}),jt={form:{get:function(){return this._form}}};S({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:Ne,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:$n,coords:String,charset:String,name:String,rev:String,shape:String}});Nx._inherit(Ui.a.prototype);S({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:Ne,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:$n,noHref:Boolean}});Nx._inherit(Ui.area.prototype);S({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{clear:String}});S({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{target:String}});S({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){v.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});S({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:Ne,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});S({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{compact:Boolean}});S({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{value:String}});S({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){v.call(this,t,r,n)}});S({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{open:Boolean}});S({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});S({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,type:String,width:String,height:String,align:String,name:String}});S({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{disabled:Boolean,name:String}});S({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});S({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});S({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){v.call(this,t,r,n)}});S({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});S({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{xmlns:Ne,version:String}});S({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:$n,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:Ne,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});S({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{alt:String,src:Ne,srcset:String,crossOrigin:mo,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:$n,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:Ne,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:Ne,border:{type:String,treatNullAsEmptyString:!0}}});S({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:Ne,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});S({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});S({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});S({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{htmlFor:{name:"for",type:String}}});S({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});S({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{href:Ne,rel:String,media:String,hreflang:String,type:String,crossOrigin:mo,nonce:String,integrity:String,referrerPolicy:$n,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});S({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{name:String}});S({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});S({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});S({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt});S({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{cite:Ne,dateTime:String}});S({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===Qc.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});S({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{data:Ne,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:Ne,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});S({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});S({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===Qc.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});S({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String}});S({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});S({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});S({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});S({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{max:{type:Number,float:!0,default:1,min:0}}});S({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{cite:Ne}});S({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===Qc.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:Ne,type:String,charset:String,referrerPolicy:$n,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:mo,nonce:String,integrity:String}});S({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});S({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){v.call(this,t,r,n)}});S({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});S({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});S({name:"HTMLTableCellElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});S({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});S({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});S({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){v.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});S({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});S({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});S({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});S({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});S({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});S({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});S({name:"HTMLMediaElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,crossOrigin:mo,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});S({name:"HTMLAudioElement",tag:"audio",superclass:pr.HTMLMediaElement,ctor:function(t,r,n){pr.HTMLMediaElement.call(this,t,r,n)}});S({name:"HTMLVideoElement",tag:"video",superclass:pr.HTMLMediaElement,ctor:function(t,r,n){pr.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:Ne,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});S({tag:"td",name:"HTMLTableDataCellElement",superclass:pr.HTMLTableCellElement,ctor:function(t,r,n){pr.HTMLTableCellElement.call(this,t,r,n)}});S({tag:"th",name:"HTMLTableHeaderCellElement",superclass:pr.HTMLTableCellElement,ctor:function(t,r,n){pr.HTMLTableCellElement.call(this,t,r,n)}});S({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){v.call(this,t,r,n)}});S({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){v.call(this,t,r,n)}});S({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{getContext:{value:ht.nyi},probablySupportsContext:{value:ht.nyi},setContext:{value:ht.nyi},transferControlToProxy:{value:ht.nyi},toDataURL:{value:ht.nyi},toBlob:{value:ht.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});S({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{show:{value:ht.nyi},showModal:{value:ht.nyi},close:{value:ht.nyi}},attributes:{open:Boolean,returnValue:String}});S({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:Ne,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});S({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:Ne,type:String,width:String,height:String}});S({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:ht.nyi},track:{get:ht.nyi}}});S({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});S({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{compact:Boolean}});S({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var Jc=C(bo=>{"use strict";var Ax=Vn(),LI=Xc(),DI=ve(),kI=xo(),MI=bo.elements={},Cx=Object.create(null);bo.createElement=function(e,t,r){var n=Cx[t]||Zc;return new n(e,t,r)};function Yc(e){return LI(e,Zc,MI,Cx)}var Zc=Yc({superclass:Ax,name:"SVGElement",ctor:function(t,r,n){Ax.call(this,t,r,DI.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new kI(this)),this._style}}}});Yc({name:"SVGSVGElement",ctor:function(t,r,n){Zc.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return bo.createElement(this.ownerDocument,"rect",null)}}}});Yc({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var Ox=C((D3,Rx)=>{"use strict";Rx.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var yo=C((k3,Bx)=>{"use strict";Bx.exports=ji;var Ze=Ke(),FI=cn(),Px=to(),Br=Vn(),PI=Lc(),qI=kc(),Bi=Fn(),HI=Fc(),UI=qc(),BI=Vi(),jI=nx(),VI=ux(),Lx=qi(),Dx=po(),kx=oo(),GI=Wc(),Eo=ro(),eu=go(),KI=Jc(),Y=ve(),Wn=Ox(),Xn=Y.NAMESPACE,tu=Za().isApiWritable;function ji(e,t){Px.call(this),this.nodeType=Ze.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new BI(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var $I={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},WI={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},zn=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var i=e.call(this);i&&(i[t]=n)}}};function Mx(e,t){var r,n,i;return e===""&&(e=null),Eo.isValidQName(t)||Y.InvalidCharacterError(),r=null,n=t,i=t.indexOf(":"),i>=0&&(r=t.substring(0,i),n=t.substring(i+1)),r!==null&&e===null&&Y.NamespaceError(),r==="xml"&&e!==Xn.XML&&Y.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Xn.XMLNS&&Y.NamespaceError(),e===Xn.XMLNS&&!(r==="xmlns"||t==="xmlns")&&Y.NamespaceError(),{namespace:e,prefix:r,localName:n}}ji.prototype=Object.create(Px.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new Bi(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:Y.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new PI(this,String(e))}},createComment:{value:function(e){return new qI(this,e)}},createDocumentFragment:{value:function(){return new HI(this)}},createProcessingInstruction:{value:function(e,t){return(!Eo.isValidName(e)||t.indexOf("?>")!==-1)&&Y.InvalidCharacterError(),new UI(this,e,t)}},createAttribute:{value:function(e){return e=String(e),Eo.isValidName(e)||Y.InvalidCharacterError(),this.isHTML&&(e=Y.toASCIILowerCase(e)),new Br._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Mx(e,t);return new Br._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),Eo.isValidName(e)||Y.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=Y.toASCIILowerCase(e)),eu.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?eu.createElement(this,e,null):new Br(this,e,null,null)},writable:tu},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Mx(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:tu},_createElementNS:{value:function(e,t,r){return t===Xn.HTML?eu.createElement(this,e,r):t===Xn.SVG?KI.createElement(this,e,r):new Br(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=WI[t]||t,n=GI[$I[r]];if(n){var i=new n;return i._initialized=!1,i}else Y.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ze))throw new TypeError("root not a node");return t=t===void 0?Lx.SHOW_ALL:+t,r=r===void 0?null:r,new jI(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ze))throw new TypeError("root not a node");return t=t===void 0?Lx.SHOW_ALL:+t,r=r===void 0?null:r,new VI(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===Ze.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===Ze.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return Ze.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return Ze.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return Ze.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof dr?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof dr}},getElementsByName:{value:Br.prototype.getElementsByName},getElementsByTagName:{value:Br.prototype.getElementsByTagName},getElementsByTagNameNS:{value:Br.prototype.getElementsByTagNameNS},getElementsByClassName:{value:Br.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===Ze.DOCUMENT_NODE&&Y.NotSupportedError(),t.nodeType===Ze.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&Ux(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:tu},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:Y.nyi,set:Y.nyi},referrer:{get:Y.nyi},cookie:{get:Y.nyi,set:Y.nyi},lastModified:{get:Y.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:Y.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:zn(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:zn(function(){return this.body},"text",""),linkColor:zn(function(){return this.body},"link",""),vlinkColor:zn(function(){return this.body},"vLink",""),alinkColor:zn(function(){return this.body},"aLink",""),bgColor:zn(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return Fx(this.documentElement,"body")},set:Y.nyi},head:{get:function(){return Fx(this.documentElement,"head")}},images:{get:Y.nyi},embeds:{get:Y.nyi},plugins:{get:Y.nyi},links:{get:Y.nyi},forms:{get:Y.nyi},scripts:{get:Y.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:Y.nyi},outerHTML:{get:function(){return this.serialize()},set:Y.nyi},write:{value:function(e){if(this.isHTML||Y.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
8
- `)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new Bi("readystatechange"),!0),this._dispatchEvent(new Bi("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new Bi("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new Bi("load"),!0)}},clone:{value:function(){var t=new ji(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=Ze.prototype.cloneNode.call(this,!1);if(t)for(var n=this.firstChild;n!==null;n=n.nextSibling)r._appendChild(r.importNode(n,!0));return r._updateDocTypeElement(),r}},isEqual:{value:function(t){return!0}},mutateValue:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Wn.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.REMOVE,target:e.parentNode,node:e}),Hx(e)}},mutateInsert:{value:function(e){qx(e),this.mutationHandler&&this.mutationHandler({type:Wn.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof dr||(n=new dr(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];Y.assert(n),n instanceof dr?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new Dx(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new Dx(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new ji(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return kx(e,this)[0]}},querySelectorAll:{value:function(e){var t=kx(e,this);return t.item?t:new FI(t)}}});var zI=["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"];zI.forEach(function(e){Object.defineProperty(ji.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function Fx(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===Ze.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===Xn.HTML)return r}return null}function XI(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===Ze.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function QI(e){if(e.nodeType===Ze.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.delId(t,e)}e.ownerDocument._nodes[e._nid]=void 0,e._nid=void 0}function qx(e){if(XI(e),e.nodeType===Ze.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)qx(t)}function Hx(e){QI(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)Hx(t)}function Ux(e,t){e.ownerDocument=t,e._lastModTime=void 0,Object.prototype.hasOwnProperty.call(e,"_tagName")&&(e._tagName=void 0);for(var r=e.firstChild;r!==null;r=r.nextSibling)Ux(r,t)}function dr(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}dr.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};dr.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};dr.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&Ze.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};dr.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var _o=C((M3,Vx)=>{"use strict";Vx.exports=To;var YI=Ke(),jx=Rc(),ZI=so();function To(e,t,r,n){jx.call(this),this.nodeType=YI.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}To.prototype=Object.create(jx.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new To(this.ownerDocument,this.name,this.publicId,this.systemId)}},isEqual:{value:function(t){return this.name===t.name&&this.publicId===t.publicId&&this.systemId===t.systemId}}});Object.defineProperties(To.prototype,ZI)});var Co=C((F3,pm)=>{"use strict";pm.exports=W;var JI=yo(),ew=_o(),ru=Ke(),R=ve().NAMESPACE,im=go(),ne=im.elements,ln=Function.prototype.apply.bind(Array.prototype.push),Io=-1,Qn=1,Je=2,U=3,Yt=4,tw=5,rw=[],nw=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/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\/\/|^-\/\/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\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/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\/\//i,iw="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Gx=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,aw=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,pn=Object.create(null);pn[R.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0};pn[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};pn[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var au=Object.create(null);au[R.HTML]={__proto__:null,address:!0,div:!0,p:!0};var am=Object.create(null);am[R.HTML]={__proto__:null,dd:!0,dt:!0};var Yn=Object.create(null);Yn[R.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var om=Object.create(null);om[R.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var sm=Object.create(null);sm[R.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var vo=Object.create(null);vo[R.HTML]={__proto__:null,table:!0,template:!0,html:!0};var No=Object.create(null);No[R.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var ou=Object.create(null);ou[R.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var cm=Object.create(null);cm[R.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Zt=Object.create(null);Zt[R.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Zt[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Zt[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Ao=Object.create(Zt);Ao[R.HTML]=Object.create(Zt[R.HTML]);Ao[R.HTML].ol=!0;Ao[R.HTML].ul=!0;var su=Object.create(Zt);su[R.HTML]=Object.create(Zt[R.HTML]);su[R.HTML].button=!0;var um=Object.create(null);um[R.HTML]={__proto__:null,html:!0,table:!0,template:!0};var ow=Object.create(null);ow[R.HTML]={__proto__:null,optgroup:!0,option:!0};var lm=Object.create(null);lm[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var fm=Object.create(null);fm[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Kx={__proto__:null,"xlink:actuate":R.XLINK,"xlink:arcrole":R.XLINK,"xlink:href":R.XLINK,"xlink:role":R.XLINK,"xlink:show":R.XLINK,"xlink:title":R.XLINK,"xlink:type":R.XLINK,"xml:base":R.XML,"xml:lang":R.XML,"xml:space":R.XML,xmlns:R.XMLNS,"xmlns:xlink":R.XMLNS},$x={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Wx={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},zx={__proto__:null,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},sw={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},Xx=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,cw=32,uw=/[^\r"&\u0000]+/g,lw=/[^\r'&\u0000]+/g,fw=/[^\r\t\n\f &>\u0000]+/g,pw=/[^\r\t\n\f \/>A-Z\u0000]+/g,dw=/[^\r\t\n\f \/=>A-Z\u0000]+/g,xw=/[^\]\r\u0000\uffff]*/g,mw=/[^&<\r\u0000\uffff]*/g,Qx=/[^<\r\u0000\uffff]*/g,hw=/[^\r\u0000\uffff]*/g,Yx=/(?:(\/)?([a-z]+)>)|[\s\S]/g,Zx=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,wo=/[^\x09\x0A\x0C\x0D\x20]/,nu=/[^\x09\x0A\x0C\x0D\x20]/g,gw=/[^\x00\x09\x0A\x0C\x0D\x20]/,fn=/^[\x09\x0A\x0C\x0D\x20]+/,So=/\x00/g;function et(e){var t=16384;if(e.length<t)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<e.length;n+=t)r+=String.fromCharCode.apply(String,e.slice(n,n+t));return r}function bw(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function ie(e,t){if(typeof t=="string")return e.namespaceURI===R.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function Jx(e){return ie(e,lm)}function em(e){if(ie(e,fm))return!0;if(e.namespaceURI===R.MATHML&&e.localName==="annotation-xml"){var t=e.getAttribute("encoding");if(t&&(t=t.toLowerCase()),t==="text/html"||t==="application/xhtml+xml")return!0}return!1}function Ew(e){return e in Wx?Wx[e]:e}function tm(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in $x&&(e[t][0]=$x[e[t][0]])}function rm(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function iu(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in Kx&&e[t].push(Kx[e[t][0]])}function nm(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r][0],s=e[r][1];t.hasAttribute(i)||t._setAttribute(i,s)}}W.ElementStack=function(){this.elements=[],this.top=null};W.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};W.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};W.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(ie(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};W.ElementStack.prototype.popElementType=function(e){for(var t=this.elements.length-1;t>0&&!(this.elements[t]instanceof e);t--);this.elements.length=t,this.top=this.elements[t-1]};W.ElementStack.prototype.popElement=function(e){for(var t=this.elements.length-1;t>0&&this.elements[t]!==e;t--);this.elements.length=t,this.top=this.elements[t-1]};W.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var t=this.elements.lastIndexOf(e);t!==-1&&this.elements.splice(t,1)}};W.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!ie(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};W.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};W.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(ie(n,e))return!0;if(ie(n,t))return!1}return!1};W.ElementStack.prototype.elementInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n===e)return!0;if(ie(n,t))return!1}return!1};W.ElementStack.prototype.elementTypeInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n instanceof e)return!0;if(ie(n,t))return!1}return!1};W.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Zt)};W.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Zt)};W.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Zt)};W.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,su)};W.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,Ao)};W.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,um)};W.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==R.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};W.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?sm:om,n=this.elements.length-1;n>=0;n--){var i=this.elements[n];if(e&&ie(i,e)||!ie(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};W.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};W.ActiveFormattingElements.prototype.MARKER={localName:"|"};W.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};W.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(c(e,this.list[n],this.attrs[n])&&(r++,r===3)){this.list.splice(n,1),this.attrs.splice(n,1);break}this.list.push(e);for(var i=[],s=0;s<t.length;s++)i[s]=t[s];this.attrs.push(i);function c(x,g,T){if(x.localName!==g.localName||x._numattrs!==T.length)return!1;for(var I=0,K=T.length;I<K;I++){var pe=T[I][0],f=T[I][1];if(!x.hasAttribute(pe)||x.getAttribute(pe)!==f)return!1}return!0}};W.ActiveFormattingElements.prototype.clearToMarker=function(){for(var e=this.list.length-1;e>=0&&this.list[e]!==this.MARKER;e--);e<0&&(e=0),this.list.length=e,this.attrs.length=e};W.ActiveFormattingElements.prototype.findElementByTag=function(e){for(var t=this.list.length-1;t>=0;t--){var r=this.list[t];if(r===this.MARKER)break;if(r.localName===e)return r}return null};W.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};W.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};W.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};W.ActiveFormattingElements.prototype.insertAfter=function(e,t){var r=this.list.lastIndexOf(e);r!==-1&&(this.list.splice(r,0,t),this.attrs.splice(r,0,t))};function W(e,t,r){var n=null,i=0,s=0,c=!1,x=!1,g=0,T=[],I="",K=!0,pe=0,f=q,Pe,ue,B="",xr="",z=[],De="",je="",de=[],mr=[],hr=[],gr=[],At=[],zi=!1,E=xg,Jt=null,er=[],l=new W.ElementStack,F=new W.ActiveFormattingElements,jr=t!==void 0,Xi=null,tr=null,Qi=!0;t&&(Qi=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(Qi=!1);var _e=!0,Po=!1,Yi,qo,_=[],br=!1,Vr=!1,Zi={document:function(){return X},_asDocumentFragment:function(){for(var a=X.createDocumentFragment(),o=X.firstChild;o.hasChildNodes();)a.appendChild(o.firstChild);return a},pause:function(){pe++},resume:function(){pe--,this.parse("")},parse:function(a,o,u){var d;return pe>0?(I+=a,!0):(g===0?(I&&(a=I+a,I=""),o&&(a+="\uFFFF",c=!0),n=a,i=a.length,s=0,K&&(K=!1,n.charCodeAt(0)===65279&&(s=1)),g++,d=vu(u),I=n.substring(s,i),g--):(g++,T.push(n,i,s),n=a,i=a.length,s=0,vu(),d=!1,I=n.substring(s,i),s=T.pop(),i=T.pop(),n=T.pop(),I&&(n=I+n.substring(s),i=n.length,s=0,I=""),g--),d)}},X=new JI(!0,e);if(X._parser=Zi,X._scripting_enabled=Qi,t){if(t.ownerDocument._quirks&&(X._quirks=!0),t.ownerDocument._limitedQuirks&&(X._limitedQuirks=!0),t.namespaceURI===R.HTML)switch(t.localName){case"title":case"textarea":f=_r;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":f=Vo;break}var Su=X.createElement("html");X._appendChild(Su),l.push(Su),t instanceof ne.HTMLTemplateElement&&er.push(Jo),ii();for(var Jn=t;Jn!==null;Jn=Jn.parentElement)if(Jn instanceof ne.HTMLFormElement){tr=Jn;break}}function vu(a){for(var o,u,d,b;s<i;){if(pe>0||a&&a())return!0;switch(typeof f.lookahead){case"undefined":if(o=n.charCodeAt(s++),x&&(x=!1,o===10)){s++;continue}switch(o){case 13:s<i?n.charCodeAt(s)===10&&s++:x=!0,f(10);break;case 65535:if(c&&s===i){f(Io);break}default:f(o);break}break;case"number":o=n.charCodeAt(s);var w=f.lookahead,L=!0;if(w<0&&(L=!1,w=-w),w<i-s)u=L?n.substring(s,s+w):null,b=!1;else if(c)u=L?n.substring(s,i):null,b=!0,o===65535&&s===i-1&&(o=Io);else return!0;f(o,u,b);break;case"string":o=n.charCodeAt(s),d=f.lookahead;var H=n.indexOf(d,s);if(H!==-1)u=n.substring(s,H+d.length),b=!1;else{if(!c)return!0;u=n.substring(s,i),o===65535&&s===i-1&&(o=Io),b=!0}f(o,u,b);break}}return!1}function Er(a,o){for(var u=0;u<At.length;u++)if(At[u][0]===a)return;o!==void 0?At.push([a,o]):At.push([a])}function bh(){Zx.lastIndex=s-1;var a=Zx.exec(n);if(!a)throw new Error("should never happen");var o=a[1];if(!o)return!1;var u=a[2],d=u.length;switch(u[0]){case'"':case"'":u=u.substring(1,d-1),s+=a[0].length-1,f=Wo;break;default:f=$t,s+=a[0].length-1,u=u.substring(0,d-1);break}for(var b=0;b<At.length;b++)if(At[b][0]===o)return!0;return At.push([o,u]),!0}function Eh(){zi=!1,B="",At.length=0}function ei(){zi=!0,B="",At.length=0}function rr(){z.length=0}function Ho(){De=""}function Uo(){je=""}function Nu(){de.length=0}function mn(){mr.length=0,hr=null,gr=null}function Ji(){hr=[]}function yr(){gr=[]}function Z(){Po=!0}function yh(){return l.top&&l.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function gt(a){return xr===a}function hn(){if(_.length>0){var a=et(_);if(_.length=0,Vr&&(Vr=!1,a[0]===`
9
- `&&(a=a.substring(1)),a.length===0))return;Ae(Qn,a),br=!1}Vr=!1}function ti(a){a.lastIndex=s-1;var o=a.exec(n);if(o&&o.index===s-1)return o=o[0],s+=o.length-1,c&&s===i&&(o=o.slice(0,-1),s--),o;throw new Error("should never happen")}function ri(a){a.lastIndex=s-1;var o=a.exec(n)[0];return o?(Th(o),s+=o.length-1,!0):!1}function Th(a){_.length>0&&hn(),!(Vr&&(Vr=!1,a[0]===`
10
- `&&(a=a.substring(1)),a.length===0))&&Ae(Qn,a)}function nr(){if(zi)Ae(U,B);else{var a=B;B="",xr=a,Ae(Je,a,At)}}function _h(){if(s===i)return!1;Yx.lastIndex=s;var a=Yx.exec(n);if(!a)throw new Error("should never happen");var o=a[2];if(!o)return!1;var u=a[1];return u?(s+=o.length+2,Ae(U,o)):(s+=o.length+1,xr=o,Ae(Je,o,rw)),!0}function Ih(){zi?Ae(U,B,null,!0):Ae(Je,B,At,!0)}function J(){Ae(tw,et(mr),hr?et(hr):void 0,gr?et(gr):void 0)}function M(){hn(),E(Io),X.modclock=1}var Ae=Zi.insertToken=function(o,u,d,b){hn();var w=l.top;!w||w.namespaceURI===R.HTML?E(o,u,d,b):o!==Je&&o!==Qn?Vu(o,u,d,b):Jx(w)&&(o===Qn||o===Je&&u!=="mglyph"&&u!=="malignmark")||o===Je&&u==="svg"&&w.namespaceURI===R.MATHML&&w.localName==="annotation-xml"||em(w)?(qo=!0,E(o,u,d,b),qo=!1):Vu(o,u,d,b)};function Vt(a){var o=l.top;Tr&&ie(o,Yn)?ta(function(u){return u.createComment(a)}):(o instanceof ne.HTMLTemplateElement&&(o=o.content),o._appendChild(o.ownerDocument.createComment(a)))}function Gt(a){var o=l.top;if(Tr&&ie(o,Yn))ta(function(d){return d.createTextNode(a)});else{o instanceof ne.HTMLTemplateElement&&(o=o.content);var u=o.lastChild;u&&u.nodeType===ru.TEXT_NODE?u.appendData(a):o._appendChild(o.ownerDocument.createTextNode(a))}}function ni(a,o,u){var d=im.createElement(a,o,null);if(u)for(var b=0,w=u.length;b<w;b++)d._setAttribute(u[b][0],u[b][1]);return d}var Tr=!1;function k(a,o){var u=ea(function(d){return ni(d,a,o)});return ie(u,cm)&&(u._form=tr),u}function ea(a){var o;return Tr&&ie(l.top,Yn)?o=ta(a):l.top instanceof ne.HTMLTemplateElement?(o=a(l.top.content.ownerDocument),l.top.content._appendChild(o)):(o=a(l.top.ownerDocument),l.top._appendChild(o)),l.push(o),o}function Bo(a,o,u){return ea(function(d){var b=d._createElementNS(a,u,null);if(o)for(var w=0,L=o.length;w<L;w++){var H=o[w];H.length===2?b._setAttribute(H[0],H[1]):b._setAttributeNS(H[2],H[0],H[1])}return b})}function Au(a){for(var o=l.elements.length-1;o>=0;o--)if(l.elements[o]instanceof a)return o;return-1}function ta(a){var o,u,d=-1,b=-1,w;if(d=Au(ne.HTMLTableElement),b=Au(ne.HTMLTemplateElement),b>=0&&(d<0||b>d)?o=l.elements[b]:d>=0&&(o=l.elements[d].parentNode,o?u=l.elements[d]:o=l.elements[d-1]),o||(o=l.elements[0]),o instanceof ne.HTMLTemplateElement&&(o=o.content),w=a(o.ownerDocument),w.nodeType===ru.TEXT_NODE){var L;if(u?L=u.previousSibling:L=o.lastChild,L&&L.nodeType===ru.TEXT_NODE)return L.appendData(w.data),w}return u?o.insertBefore(w,u):o._appendChild(w),w}function ii(){for(var a=!1,o=l.elements.length-1;o>=0;o--){var u=l.elements[o];if(o===0&&(a=!0,jr&&(u=t)),u.namespaceURI===R.HTML){var d=u.localName;switch(d){case"select":for(var b=o;b>0;){var w=l.elements[--b];if(w instanceof ne.HTMLTemplateElement)break;if(w instanceof ne.HTMLTableElement){E=ma;return}}E=ir;return;case"tr":E=si;return;case"tbody":case"tfoot":case"thead":E=Wr;return;case"caption":E=Zo;return;case"colgroup":E=xa;return;case"table":E=bt;return;case"template":E=er[er.length-1];return;case"body":E=O;return;case"frameset":E=es;return;case"html":Xi===null?E=pa:E=Yo;return;default:if(!a){if(d==="head"){E=Ie;return}if(d==="td"||d==="th"){E=gn;return}}}}if(a){E=O;return}}}function ra(a,o){k(a,o),f=ai,Jt=E,E=da}function wh(a,o){k(a,o),f=_r,Jt=E,E=da}function jo(a,o){return{elt:ni(a,F.list[o].localName,F.attrs[o]),attrs:F.attrs[o]}}function rt(){if(F.list.length!==0){var a=F.list[F.list.length-1];if(a!==F.MARKER&&l.elements.lastIndexOf(a)===-1){for(var o=F.list.length-2;o>=0&&(a=F.list[o],!(a===F.MARKER||l.elements.lastIndexOf(a)!==-1));o--);for(o=o+1;o<F.list.length;o++){var u=ea(function(d){return jo(d,o).elt});F.list[o]=u}}}}var na={localName:"BM"};function Sh(a){if(ie(l.top,a)&&F.indexOf(l.top)===-1)return l.pop(),!0;for(var o=0;o<8;){o++;var u=F.findElementByTag(a);if(!u)return!1;var d=l.elements.lastIndexOf(u);if(d===-1)return F.remove(u),!0;if(!l.elementInScope(u))return!0;for(var b=null,w,L=d+1;L<l.elements.length;L++)if(ie(l.elements[L],pn)){b=l.elements[L],w=L;break}if(b){var H=l.elements[d-1];F.insertAfter(u,na);for(var be=b,Ve=b,Et=w,Ct,zr=0;zr++,be=l.elements[--Et],be!==u;){if(Ct=F.indexOf(be),zr>3&&Ct!==-1&&(F.remove(be),Ct=-1),Ct===-1){l.removeElement(be);continue}var Nr=jo(H.ownerDocument,Ct);F.replace(be,Nr.elt,Nr.attrs),l.elements[Et]=Nr.elt,be=Nr.elt,Ve===b&&(F.remove(na),F.insertAfter(Nr.elt,na)),be._appendChild(Ve),Ve=be}Tr&&ie(H,Yn)?ta(function(){return Ve}):H instanceof ne.HTMLTemplateElement?H.content._appendChild(Ve):H._appendChild(Ve);for(var ci=jo(b.ownerDocument,F.indexOf(u));b.hasChildNodes();)ci.elt._appendChild(b.firstChild);b._appendChild(ci.elt),F.remove(u),F.replace(na,ci.elt,ci.attrs),l.removeElement(u);var Eg=l.elements.lastIndexOf(b);l.elements.splice(Eg+1,0,ci.elt)}else return l.popElement(u),F.remove(u),!0}return!0}function vh(){l.pop(),E=Jt}function Gr(){delete X._parser,l.elements.length=0,X.defaultView&&X.defaultView.dispatchEvent(new ne.Event("load",{}))}function N(a,o){f=o,s--}function q(a){switch(a){case 38:Pe=q,f=oi;break;case 60:if(_h())break;f=Nh;break;case 0:_.push(a),br=!0;break;case-1:M();break;default:ri(mw)||_.push(a);break}}function _r(a){switch(a){case 38:Pe=_r,f=oi;break;case 60:f=Ch;break;case 0:_.push(65533),br=!0;break;case-1:M();break;default:_.push(a);break}}function ai(a){switch(a){case 60:f=Lh;break;case 0:_.push(65533);break;case-1:M();break;default:ri(Qx)||_.push(a);break}}function Ir(a){switch(a){case 60:f=Mh;break;case 0:_.push(65533);break;case-1:M();break;default:ri(Qx)||_.push(a);break}}function Vo(a){switch(a){case 0:_.push(65533);break;case-1:M();break;default:ri(hw)||_.push(a);break}}function Nh(a){switch(a){case 33:f=Lu;break;case 47:f=Ah;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:Eh(),N(a,Cu);break;case 63:N(a,sa);break;default:_.push(60),N(a,q);break}}function Ah(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Cu);break;case 62:f=q;break;case-1:_.push(60),_.push(47),M();break;default:N(a,sa);break}}function Cu(a){switch(a){case 9:case 10:case 12:case 32:f=$t;break;case 47:f=Sr;break;case 62:f=q,nr();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32);break;case 0:B+="\uFFFD";break;case-1:M();break;default:B+=ti(pw);break}}function Ch(a){a===47?(rr(),f=Rh):(_.push(60),N(a,_r))}function Rh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Oh);break;default:_.push(60),_.push(47),N(a,_r);break}}function Oh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),N(a,_r)}function Lh(a){a===47?(rr(),f=Dh):(_.push(60),N(a,ai))}function Dh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,kh);break;default:_.push(60),_.push(47),N(a,ai);break}}function kh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),N(a,ai)}function Mh(a){switch(a){case 47:rr(),f=Fh;break;case 33:f=qh,_.push(60),_.push(33);break;default:_.push(60),N(a,Ir);break}}function Fh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Ph);break;default:_.push(60),_.push(47),N(a,Ir);break}}function Ph(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),N(a,Ir)}function qh(a){a===45?(f=Hh,_.push(45)):N(a,Ir)}function Hh(a){a===45?(f=Ru,_.push(45)):N(a,Ir)}function Kt(a){switch(a){case 45:f=Uh,_.push(45);break;case 60:f=Go;break;case 0:_.push(65533);break;case-1:M();break;default:_.push(a);break}}function Uh(a){switch(a){case 45:f=Ru,_.push(45);break;case 60:f=Go;break;case 0:f=Kt,_.push(65533);break;case-1:M();break;default:f=Kt,_.push(a);break}}function Ru(a){switch(a){case 45:_.push(45);break;case 60:f=Go;break;case 62:f=Ir,_.push(62);break;case 0:f=Kt,_.push(65533);break;case-1:M();break;default:f=Kt,_.push(a);break}}function Go(a){switch(a){case 47:rr(),f=Bh;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:rr(),_.push(60),N(a,Vh);break;default:_.push(60),N(a,Kt);break}}function Bh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,jh);break;default:_.push(60),_.push(47),N(a,Kt);break}}function jh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=q,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),z.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),z.push(a);return;default:break}_.push(60),_.push(47),ln(_,z),N(a,Kt)}function Vh(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:et(z)==="script"?f=wr:f=Kt,_.push(a);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:z.push(a+32),_.push(a);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:z.push(a),_.push(a);break;default:N(a,Kt);break}}function wr(a){switch(a){case 45:f=Gh,_.push(45);break;case 60:f=Ko,_.push(60);break;case 0:_.push(65533);break;case-1:M();break;default:_.push(a);break}}function Gh(a){switch(a){case 45:f=Kh,_.push(45);break;case 60:f=Ko,_.push(60);break;case 0:f=wr,_.push(65533);break;case-1:M();break;default:f=wr,_.push(a);break}}function Kh(a){switch(a){case 45:_.push(45);break;case 60:f=Ko,_.push(60);break;case 62:f=Ir,_.push(62);break;case 0:f=wr,_.push(65533);break;case-1:M();break;default:f=wr,_.push(a);break}}function Ko(a){a===47?(rr(),f=$h,_.push(47)):N(a,wr)}function $h(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:et(z)==="script"?f=Kt:f=wr,_.push(a);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:z.push(a+32),_.push(a);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:z.push(a),_.push(a);break;default:N(a,wr);break}}function $t(a){switch(a){case 9:case 10:case 12:case 32:break;case 47:f=Sr;break;case 62:f=q,nr();break;case-1:M();break;case 61:Ho(),De+=String.fromCharCode(a),f=$o;break;default:if(bh())break;Ho(),N(a,$o);break}}function $o(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:case-1:N(a,Wh);break;case 61:f=Ou;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:De+=String.fromCharCode(a+32);break;case 0:De+="\uFFFD";break;default:De+=ti(dw);break}}function Wh(a){switch(a){case 9:case 10:case 12:case 32:break;case 47:Er(De),f=Sr;break;case 61:f=Ou;break;case 62:f=q,Er(De),nr();break;case-1:Er(De),M();break;default:Er(De),Ho(),N(a,$o);break}}function Ou(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:Uo(),f=ia;break;case 39:Uo(),f=aa;break;default:Uo(),N(a,oa);break}}function ia(a){switch(a){case 34:Er(De,je),f=Wo;break;case 38:Pe=ia,f=oi;break;case 0:je+="\uFFFD";break;case-1:M();break;case 10:je+=String.fromCharCode(a);break;default:je+=ti(uw);break}}function aa(a){switch(a){case 39:Er(De,je),f=Wo;break;case 38:Pe=aa,f=oi;break;case 0:je+="\uFFFD";break;case-1:M();break;case 10:je+=String.fromCharCode(a);break;default:je+=ti(lw);break}}function oa(a){switch(a){case 9:case 10:case 12:case 32:Er(De,je),f=$t;break;case 38:Pe=oa,f=oi;break;case 62:Er(De,je),f=q,nr();break;case 0:je+="\uFFFD";break;case-1:s--,f=q;break;default:je+=ti(fw);break}}function Wo(a){switch(a){case 9:case 10:case 12:case 32:f=$t;break;case 47:f=Sr;break;case 62:f=q,nr();break;case-1:M();break;default:N(a,$t);break}}function Sr(a){switch(a){case 62:f=q,Ih(!0);break;case-1:M();break;default:N(a,$t);break}}function sa(a,o,u){var d=o.length;u?s+=d-1:s+=d;var b=o.substring(0,d-1);b=b.replace(/\u0000/g,"\uFFFD"),b=b.replace(/\u000D\u000A/g,`
11
- `),b=b.replace(/\u000D/g,`
12
- `),Ae(Yt,b),f=q}sa.lookahead=">";function Lu(a,o,u){if(o[0]==="-"&&o[1]==="-"){s+=2,Nu(),f=zh;return}o.toUpperCase()==="DOCTYPE"?(s+=7,f=tg):o==="[CDATA["&&yh()?(s+=7,f=Qo):f=sa}Lu.lookahead=7;function zh(a){switch(Nu(),a){case 45:f=Xh;break;case 62:f=q,Ae(Yt,et(de));break;default:N(a,Kr);break}}function Xh(a){switch(a){case 45:f=ca;break;case 62:f=q,Ae(Yt,et(de));break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),N(a,Kr);break}}function Kr(a){switch(a){case 60:de.push(a),f=Qh;break;case 45:f=zo;break;case 0:de.push(65533);break;case-1:Ae(Yt,et(de)),M();break;default:de.push(a);break}}function Qh(a){switch(a){case 33:de.push(a),f=Yh;break;case 60:de.push(a);break;default:N(a,Kr);break}}function Yh(a){a===45?f=Zh:N(a,Kr)}function Zh(a){a===45?f=Jh:N(a,zo)}function Jh(a){switch(a){case 62:case-1:N(a,ca);break;default:N(a,ca);break}}function zo(a){switch(a){case 45:f=ca;break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),N(a,Kr);break}}function ca(a){switch(a){case 62:f=q,Ae(Yt,et(de));break;case 33:f=eg;break;case 45:de.push(45);break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),de.push(45),N(a,Kr);break}}function eg(a){switch(a){case 45:de.push(45),de.push(45),de.push(33),f=zo;break;case 62:f=q,Ae(Yt,et(de));break;case-1:Ae(Yt,et(de)),M();break;default:de.push(45),de.push(45),de.push(33),N(a,Kr);break}}function tg(a){switch(a){case 9:case 10:case 12:case 32:f=Du;break;case-1:mn(),Z(),J(),M();break;default:N(a,Du);break}}function Du(a){switch(a){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:mn(),mr.push(a+32),f=Xo;break;case 0:mn(),mr.push(65533),f=Xo;break;case 62:mn(),Z(),f=q,J();break;case-1:mn(),Z(),J(),M();break;default:mn(),mr.push(a),f=Xo;break}}function Xo(a){switch(a){case 9:case 10:case 12:case 32:f=ku;break;case 62:f=q,J();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:mr.push(a+32);break;case 0:mr.push(65533);break;case-1:Z(),J(),M();break;default:mr.push(a);break}}function ku(a,o,u){switch(a){case 9:case 10:case 12:case 32:s+=1;break;case 62:f=q,s+=1,J();break;case-1:Z(),J(),M();break;default:o=o.toUpperCase(),o==="PUBLIC"?(s+=6,f=rg):o==="SYSTEM"?(s+=6,f=ag):(Z(),f=vr);break}}ku.lookahead=6;function rg(a){switch(a){case 9:case 10:case 12:case 32:f=ng;break;case 34:Ji(),f=Mu;break;case 39:Ji(),f=Fu;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function ng(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:Ji(),f=Mu;break;case 39:Ji(),f=Fu;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function Mu(a){switch(a){case 34:f=Pu;break;case 0:hr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:hr.push(a);break}}function Fu(a){switch(a){case 39:f=Pu;break;case 0:hr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:hr.push(a);break}}function Pu(a){switch(a){case 9:case 10:case 12:case 32:f=ig;break;case 62:f=q,J();break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function ig(a){switch(a){case 9:case 10:case 12:case 32:break;case 62:f=q,J();break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function ag(a){switch(a){case 9:case 10:case 12:case 32:f=og;break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function og(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:Z(),f=vr;break}}function ua(a){switch(a){case 34:f=qu;break;case 0:gr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:gr.push(a);break}}function la(a){switch(a){case 39:f=qu;break;case 0:gr.push(65533);break;case 62:Z(),f=q,J();break;case-1:Z(),J(),M();break;default:gr.push(a);break}}function qu(a){switch(a){case 9:case 10:case 12:case 32:break;case 62:f=q,J();break;case-1:Z(),J(),M();break;default:f=vr;break}}function vr(a){switch(a){case 62:f=q,J();break;case-1:J(),M();break;default:break}}function Qo(a){switch(a){case 93:f=sg;break;case-1:M();break;case 0:br=!0;default:ri(xw)||_.push(a);break}}function sg(a){a===93?f=cg:(_.push(93),N(a,Qo))}function cg(a){switch(a){case 93:_.push(93);break;case 62:hn(),f=q;break;default:_.push(93),_.push(93),N(a,Qo);break}}function oi(a){switch(rr(),z.push(38),a){case 9:case 10:case 12:case 32:case 60:case 38:case-1:N(a,$r);break;case 35:z.push(a),f=ug;break;default:N(a,Hu);break}}function Hu(a){Xx.lastIndex=s;var o=Xx.exec(n);if(!o)throw new Error("should never happen");var u=o[1];if(!u){f=$r;return}switch(s+=u.length,ln(z,bw(u)),Pe){case ia:case aa:case oa:if(u[u.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[s])){f=$r;return}break;default:break}rr();var d=sw[u];typeof d=="number"?z.push(d):ln(z,d),f=$r}Hu.lookahead=-cw;function ug(a){switch(ue=0,a){case 120:case 88:z.push(a),f=lg;break;default:N(a,fg);break}}function lg(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:N(a,pg);break;default:N(a,$r);break}}function fg(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:N(a,dg);break;default:N(a,$r);break}}function pg(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:ue*=16,ue+=a-55;break;case 97:case 98:case 99:case 100:case 101:case 102:ue*=16,ue+=a-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:ue*=16,ue+=a-48;break;case 59:f=fa;break;default:N(a,fa);break}}function dg(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:ue*=10,ue+=a-48;break;case 59:f=fa;break;default:N(a,fa);break}}function fa(a){ue in zx?ue=zx[ue]:(ue>1114111||ue>=55296&&ue<57344)&&(ue=65533),rr(),ue<=65535?z.push(ue):(ue=ue-65536,z.push(55296+(ue>>10)),z.push(56320+(ue&1023))),N(a,$r)}function $r(a){switch(Pe){case ia:case aa:case oa:je+=et(z);break;default:ln(_,z);break}N(a,Pe)}function xg(a,o,u,d){switch(a){case 1:if(o=o.replace(fn,""),o.length===0)return;break;case 4:X._appendChild(X.createComment(o));return;case 5:var b=o,w=u,L=d;X.appendChild(new ew(X,b,w,L)),Po||b.toLowerCase()!=="html"||nw.test(w)||L&&L.toLowerCase()===iw||L===void 0&&Gx.test(w)?X._quirks=!0:(aw.test(w)||L!==void 0&&Gx.test(w))&&(X._limitedQuirks=!0),E=Uu;return}X._quirks=!0,E=Uu,E(a,o,u,d)}function Uu(a,o,u,d){var b;switch(a){case 1:if(o=o.replace(fn,""),o.length===0)return;break;case 5:return;case 4:X._appendChild(X.createComment(o));return;case 2:if(o==="html"){b=ni(X,o,u),l.push(b),X.appendChild(b),E=pa;return}break;case 3:switch(o){case"html":case"head":case"body":case"br":break;default:return}}b=ni(X,"html",null),l.push(b),X.appendChild(b),E=pa,E(a,o,u,d)}function pa(a,o,u,d){switch(a){case 1:if(o=o.replace(fn,""),o.length===0)return;break;case 5:return;case 4:Vt(o);return;case 2:switch(o){case"html":O(a,o,u,d);return;case"head":var b=k(o,u);Xi=b,E=Ie;return}break;case 3:switch(o){case"html":case"head":case"body":case"br":break;default:return}}pa(Je,"head",null),E(a,o,u,d)}function Ie(a,o,u,d){switch(a){case 1:var b=o.match(fn);if(b&&(Gt(b[0]),o=o.substring(b[0].length)),o.length===0)return;break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"html":O(a,o,u,d);return;case"meta":case"base":case"basefont":case"bgsound":case"link":k(o,u),l.pop();return;case"title":wh(o,u);return;case"noscript":if(!Qi){k(o,u),E=Bu;return}case"noframes":case"style":ra(o,u);return;case"script":ea(function(w){var L=ni(w,o,u);return L._parser_inserted=!0,L._force_async=!1,jr&&(L._already_started=!0),hn(),L}),f=Ir,Jt=E,E=da;return;case"template":k(o,u),F.insertMarker(),_e=!1,E=Jo,er.push(E);return;case"head":return}break;case 3:switch(o){case"head":l.pop(),E=Yo;return;case"body":case"html":case"br":break;case"template":if(!l.contains("template"))return;l.generateImpliedEndTags(null,"thorough"),l.popTag("template"),F.clearToMarker(),er.pop(),ii();return;default:return}break}Ie(U,"head",null),E(a,o,u,d)}function Bu(a,o,u,d){switch(a){case 5:return;case 4:Ie(a,o);return;case 1:var b=o.match(fn);if(b&&(Ie(a,b[0]),o=o.substring(b[0].length)),o.length===0)return;break;case 2:switch(o){case"html":O(a,o,u,d);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":Ie(a,o,u);return;case"head":case"noscript":return}break;case 3:switch(o){case"noscript":l.pop(),E=Ie;return;case"br":break;default:return}break}Bu(U,"noscript",null),E(a,o,u,d)}function Yo(a,o,u,d){switch(a){case 1:var b=o.match(fn);if(b&&(Gt(b[0]),o=o.substring(b[0].length)),o.length===0)return;break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"html":O(a,o,u,d);return;case"body":k(o,u),_e=!1,E=O;return;case"frameset":k(o,u),E=es;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":l.push(Xi),Ie(Je,o,u),l.removeElement(Xi);return;case"head":return}break;case 3:switch(o){case"template":return Ie(a,o,u,d);case"body":case"html":case"br":break;default:return}break}Yo(Je,"body",null),_e=!0,E(a,o,u,d)}function O(a,o,u,d){var b,w,L,H;switch(a){case 1:if(br&&(o=o.replace(So,""),o.length===0))return;_e&&wo.test(o)&&(_e=!1),rt(),Gt(o);return;case 5:return;case 4:Vt(o);return;case-1:if(er.length)return Jo(a);Gr();return;case 2:switch(o){case"html":if(l.contains("template"))return;nm(u,l.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":Ie(Je,o,u);return;case"body":if(b=l.elements[1],!b||!(b instanceof ne.HTMLBodyElement)||l.contains("template"))return;_e=!1,nm(u,b);return;case"frameset":if(!_e||(b=l.elements[1],!b||!(b instanceof ne.HTMLBodyElement)))return;for(b.parentNode&&b.parentNode.removeChild(b);!(l.top instanceof ne.HTMLHtmlElement);)l.pop();k(o,u),E=es;return;case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":l.inButtonScope("p")&&O(U,"p"),k(o,u);return;case"menu":l.inButtonScope("p")&&O(U,"p"),ie(l.top,"menuitem")&&l.pop(),k(o,u);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":l.inButtonScope("p")&&O(U,"p"),l.top instanceof ne.HTMLHeadingElement&&l.pop(),k(o,u);return;case"pre":case"listing":l.inButtonScope("p")&&O(U,"p"),k(o,u),Vr=!0,_e=!1;return;case"form":if(tr&&!l.contains("template"))return;l.inButtonScope("p")&&O(U,"p"),H=k(o,u),l.contains("template")||(tr=H);return;case"li":for(_e=!1,w=l.elements.length-1;w>=0;w--){if(L=l.elements[w],L instanceof ne.HTMLLIElement){O(U,"li");break}if(ie(L,pn)&&!ie(L,au))break}l.inButtonScope("p")&&O(U,"p"),k(o,u);return;case"dd":case"dt":for(_e=!1,w=l.elements.length-1;w>=0;w--){if(L=l.elements[w],ie(L,am)){O(U,L.localName);break}if(ie(L,pn)&&!ie(L,au))break}l.inButtonScope("p")&&O(U,"p"),k(o,u);return;case"plaintext":l.inButtonScope("p")&&O(U,"p"),k(o,u),f=Vo;return;case"button":l.inScope("button")?(O(U,"button"),E(a,o,u,d)):(rt(),k(o,u),_e=!1);return;case"a":var be=F.findElementByTag("a");be&&(O(U,o),F.remove(be),l.removeElement(be));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":rt(),F.push(k(o,u),u);return;case"nobr":rt(),l.inScope(o)&&(O(U,o),rt()),F.push(k(o,u),u);return;case"applet":case"marquee":case"object":rt(),k(o,u),F.insertMarker(),_e=!1;return;case"table":!X._quirks&&l.inButtonScope("p")&&O(U,"p"),k(o,u),_e=!1,E=bt;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":rt(),k(o,u),l.pop(),_e=!1;return;case"input":rt(),H=k(o,u),l.pop();var Ve=H.getAttribute("type");(!Ve||Ve.toLowerCase()!=="hidden")&&(_e=!1);return;case"param":case"source":case"track":k(o,u),l.pop();return;case"hr":l.inButtonScope("p")&&O(U,"p"),ie(l.top,"menuitem")&&l.pop(),k(o,u),l.pop(),_e=!1;return;case"image":O(Je,"img",u,d);return;case"textarea":k(o,u),Vr=!0,_e=!1,f=_r,Jt=E,E=da;return;case"xmp":l.inButtonScope("p")&&O(U,"p"),rt(),_e=!1,ra(o,u);return;case"iframe":_e=!1,ra(o,u);return;case"noembed":ra(o,u);return;case"select":rt(),k(o,u),_e=!1,E===bt||E===Zo||E===Wr||E===si||E===gn?E=ma:E=ir;return;case"optgroup":case"option":l.top instanceof ne.HTMLOptionElement&&O(U,"option"),rt(),k(o,u);return;case"menuitem":ie(l.top,"menuitem")&&l.pop(),rt(),k(o,u);return;case"rb":case"rtc":l.inScope("ruby")&&l.generateImpliedEndTags(),k(o,u);return;case"rp":case"rt":l.inScope("ruby")&&l.generateImpliedEndTags("rtc"),k(o,u);return;case"math":rt(),rm(u),iu(u),Bo(o,u,R.MATHML),d&&l.pop();return;case"svg":rt(),tm(u),iu(u),Bo(o,u,R.SVG),d&&l.pop();return;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}rt(),k(o,u);return;case 3:switch(o){case"template":Ie(U,o,u);return;case"body":if(!l.inScope("body"))return;E=ju;return;case"html":if(!l.inScope("body"))return;E=ju,E(a,o,u);return;case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!l.inScope(o))return;l.generateImpliedEndTags(),l.popTag(o);return;case"form":if(l.contains("template")){if(!l.inScope("form"))return;l.generateImpliedEndTags(),l.popTag("form")}else{var Et=tr;if(tr=null,!Et||!l.elementInScope(Et))return;l.generateImpliedEndTags(),l.removeElement(Et)}return;case"p":l.inButtonScope(o)?(l.generateImpliedEndTags(o),l.popTag(o)):(O(Je,o,null),E(a,o,u,d));return;case"li":if(!l.inListItemScope(o))return;l.generateImpliedEndTags(o),l.popTag(o);return;case"dd":case"dt":if(!l.inScope(o))return;l.generateImpliedEndTags(o),l.popTag(o);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!l.elementTypeInScope(ne.HTMLHeadingElement))return;l.generateImpliedEndTags(),l.popElementType(ne.HTMLHeadingElement);return;case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":var Ct=Sh(o);if(Ct)return;break;case"applet":case"marquee":case"object":if(!l.inScope(o))return;l.generateImpliedEndTags(),l.popTag(o),F.clearToMarker();return;case"br":O(Je,o,null);return}for(w=l.elements.length-1;w>=0;w--)if(L=l.elements[w],ie(L,o)){l.generateImpliedEndTags(o),l.popElement(L);break}else if(ie(L,pn))return;return}}function da(a,o,u,d){switch(a){case 1:Gt(o);return;case-1:l.top instanceof ne.HTMLScriptElement&&(l.top._already_started=!0),l.pop(),E=Jt,E(a);return;case 3:o==="script"?vh():(l.pop(),E=Jt);return;default:return}}function bt(a,o,u,d){function b(L){for(var H=0,be=L.length;H<be;H++)if(L[H][0]==="type")return L[H][1].toLowerCase();return null}switch(a){case 1:if(qo){O(a,o,u,d);return}else if(ie(l.top,Yn)){Yi=[],Jt=E,E=mg,E(a,o,u,d);return}break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"caption":l.clearToContext(vo),F.insertMarker(),k(o,u),E=Zo;return;case"colgroup":l.clearToContext(vo),k(o,u),E=xa;return;case"col":bt(Je,"colgroup",null),E(a,o,u,d);return;case"tbody":case"tfoot":case"thead":l.clearToContext(vo),k(o,u),E=Wr;return;case"td":case"th":case"tr":bt(Je,"tbody",null),E(a,o,u,d);return;case"table":if(!l.inTableScope(o))return;bt(U,o),E(a,o,u,d);return;case"style":case"script":case"template":Ie(a,o,u,d);return;case"input":var w=b(u);if(w!=="hidden")break;k(o,u),l.pop();return;case"form":if(tr||l.contains("template"))return;tr=k(o,u),l.popElement(tr);return}break;case 3:switch(o){case"table":if(!l.inTableScope(o))return;l.popTag(o),ii();return;case"body":case"caption":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return;case"template":Ie(a,o,u,d);return}break;case-1:O(a,o,u,d);return}Tr=!0,O(a,o,u,d),Tr=!1}function mg(a,o,u,d){if(a===Qn){if(br&&(o=o.replace(So,""),o.length===0))return;Yi.push(o)}else{var b=Yi.join("");Yi.length=0,wo.test(b)?(Tr=!0,O(Qn,b),Tr=!1):Gt(b),E=Jt,E(a,o,u,d)}}function Zo(a,o,u,d){function b(){return l.inTableScope("caption")?(l.generateImpliedEndTags(),l.popTag("caption"),F.clearToMarker(),E=bt,!0):!1}switch(a){case 2:switch(o){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":b()&&E(a,o,u,d);return}break;case 3:switch(o){case"caption":b();return;case"table":b()&&E(a,o,u,d);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}O(a,o,u,d)}function xa(a,o,u,d){switch(a){case 1:var b=o.match(fn);if(b&&(Gt(b[0]),o=o.substring(b[0].length)),o.length===0)return;break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"html":O(a,o,u,d);return;case"col":k(o,u),l.pop();return;case"template":Ie(a,o,u,d);return}break;case 3:switch(o){case"colgroup":if(!ie(l.top,"colgroup"))return;l.pop(),E=bt;return;case"col":return;case"template":Ie(a,o,u,d);return}break;case-1:O(a,o,u,d);return}ie(l.top,"colgroup")&&(xa(U,"colgroup"),E(a,o,u,d))}function Wr(a,o,u,d){function b(){!l.inTableScope("tbody")&&!l.inTableScope("thead")&&!l.inTableScope("tfoot")||(l.clearToContext(No),Wr(U,l.top.localName,null),E(a,o,u,d))}switch(a){case 2:switch(o){case"tr":l.clearToContext(No),k(o,u),E=si;return;case"th":case"td":Wr(Je,"tr",null),E(a,o,u,d);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":b();return}break;case 3:switch(o){case"table":b();return;case"tbody":case"tfoot":case"thead":l.inTableScope(o)&&(l.clearToContext(No),l.pop(),E=bt);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}bt(a,o,u,d)}function si(a,o,u,d){function b(){return l.inTableScope("tr")?(l.clearToContext(ou),l.pop(),E=Wr,!0):!1}switch(a){case 2:switch(o){case"th":case"td":l.clearToContext(ou),k(o,u),E=gn,F.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":b()&&E(a,o,u,d);return}break;case 3:switch(o){case"tr":b();return;case"table":b()&&E(a,o,u,d);return;case"tbody":case"tfoot":case"thead":l.inTableScope(o)&&b()&&E(a,o,u,d);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}bt(a,o,u,d)}function gn(a,o,u,d){switch(a){case 2:switch(o){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":l.inTableScope("td")?(gn(U,"td"),E(a,o,u,d)):l.inTableScope("th")&&(gn(U,"th"),E(a,o,u,d));return}break;case 3:switch(o){case"td":case"th":if(!l.inTableScope(o))return;l.generateImpliedEndTags(),l.popTag(o),F.clearToMarker(),E=si;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!l.inTableScope(o))return;gn(U,l.inTableScope("td")?"td":"th"),E(a,o,u,d);return}break}O(a,o,u,d)}function ir(a,o,u,d){switch(a){case 1:if(br&&(o=o.replace(So,""),o.length===0))return;Gt(o);return;case 4:Vt(o);return;case 5:return;case-1:O(a,o,u,d);return;case 2:switch(o){case"html":O(a,o,u,d);return;case"option":l.top instanceof ne.HTMLOptionElement&&ir(U,o),k(o,u);return;case"optgroup":l.top instanceof ne.HTMLOptionElement&&ir(U,"option"),l.top instanceof ne.HTMLOptGroupElement&&ir(U,o),k(o,u);return;case"select":ir(U,o);return;case"input":case"keygen":case"textarea":if(!l.inSelectScope("select"))return;ir(U,"select"),E(a,o,u,d);return;case"script":case"template":Ie(a,o,u,d);return}break;case 3:switch(o){case"optgroup":l.top instanceof ne.HTMLOptionElement&&l.elements[l.elements.length-2]instanceof ne.HTMLOptGroupElement&&ir(U,"option"),l.top instanceof ne.HTMLOptGroupElement&&l.pop();return;case"option":l.top instanceof ne.HTMLOptionElement&&l.pop();return;case"select":if(!l.inSelectScope(o))return;l.popTag(o),ii();return;case"template":Ie(a,o,u,d);return}break}}function ma(a,o,u,d){switch(o){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(a){case 2:ma(U,"select"),E(a,o,u,d);return;case 3:l.inTableScope(o)&&(ma(U,"select"),E(a,o,u,d));return}}ir(a,o,u,d)}function Jo(a,o,u,d){function b(w){E=w,er[er.length-1]=E,E(a,o,u,d)}switch(a){case 1:case 4:case 5:O(a,o,u,d);return;case-1:l.contains("template")?(l.popTag("template"),F.clearToMarker(),er.pop(),ii(),E(a,o,u,d)):Gr();return;case 2:switch(o){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":Ie(a,o,u,d);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":b(bt);return;case"col":b(xa);return;case"tr":b(Wr);return;case"td":case"th":b(si);return}b(O);return;case 3:if(o==="template"){Ie(a,o,u,d);return}else return}}function ju(a,o,u,d){switch(a){case 1:if(wo.test(o))break;O(a,o);return;case 4:l.elements[0]._appendChild(X.createComment(o));return;case 5:return;case-1:Gr();return;case 2:if(o==="html"){O(a,o,u,d);return}break;case 3:if(o==="html"){if(jr)return;E=gg;return}break}E=O,E(a,o,u,d)}function es(a,o,u,d){switch(a){case 1:o=o.replace(nu,""),o.length>0&&Gt(o);return;case 4:Vt(o);return;case 5:return;case-1:Gr();return;case 2:switch(o){case"html":O(a,o,u,d);return;case"frameset":k(o,u);return;case"frame":k(o,u),l.pop();return;case"noframes":Ie(a,o,u,d);return}break;case 3:if(o==="frameset"){if(jr&&l.top instanceof ne.HTMLHtmlElement)return;l.pop(),!jr&&!(l.top instanceof ne.HTMLFrameSetElement)&&(E=hg);return}break}}function hg(a,o,u,d){switch(a){case 1:o=o.replace(nu,""),o.length>0&&Gt(o);return;case 4:Vt(o);return;case 5:return;case-1:Gr();return;case 2:switch(o){case"html":O(a,o,u,d);return;case"noframes":Ie(a,o,u,d);return}break;case 3:if(o==="html"){E=bg;return}break}}function gg(a,o,u,d){switch(a){case 1:if(wo.test(o))break;O(a,o,u,d);return;case 4:X._appendChild(X.createComment(o));return;case 5:O(a,o,u,d);return;case-1:Gr();return;case 2:if(o==="html"){O(a,o,u,d);return}break}E=O,E(a,o,u,d)}function bg(a,o,u,d){switch(a){case 1:o=o.replace(nu,""),o.length>0&&O(a,o,u,d);return;case 4:X._appendChild(X.createComment(o));return;case 5:O(a,o,u,d);return;case-1:Gr();return;case 2:switch(o){case"html":O(a,o,u,d);return;case"noframes":Ie(a,o,u,d);return}break}}function Vu(a,o,u,d){function b(be){for(var Ve=0,Et=be.length;Ve<Et;Ve++)switch(be[Ve][0]){case"color":case"face":case"size":return!0}return!1}var w;switch(a){case 1:_e&&gw.test(o)&&(_e=!1),br&&(o=o.replace(So,"\uFFFD")),Gt(o);return;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"font":if(!b(u))break;case"b":case"big":case"blockquote":case"body":case"br":case"center":case"code":case"dd":case"div":case"dl":case"dt":case"em":case"embed":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"head":case"hr":case"i":case"img":case"li":case"listing":case"menu":case"meta":case"nobr":case"ol":case"p":case"pre":case"ruby":case"s":case"small":case"span":case"strong":case"strike":case"sub":case"sup":case"table":case"tt":case"u":case"ul":case"var":if(jr)break;do l.pop(),w=l.top;while(w.namespaceURI!==R.HTML&&!Jx(w)&&!em(w));Ae(a,o,u,d);return}w=l.elements.length===1&&jr?t:l.top,w.namespaceURI===R.MATHML?rm(u):w.namespaceURI===R.SVG&&(o=Ew(o),tm(u)),iu(u),Bo(o,u,w.namespaceURI),d&&(o==="script"&&(w.namespaceURI,R.SVG),l.pop());return;case 3:if(w=l.top,o==="script"&&w.namespaceURI===R.SVG&&w.localName==="script")l.pop();else for(var L=l.elements.length-1,H=l.elements[L];;){if(H.localName.toLowerCase()===o){l.popElement(H);break}if(H=l.elements[--L],H.namespaceURI===R.HTML){E(a,o,u,d);break}}return}}return Zi.testTokenizer=function(a,o,u,d){var b=[];switch(o){case"PCDATA state":f=q;break;case"RCDATA state":f=_r;break;case"RAWTEXT state":f=ai;break;case"PLAINTEXT state":f=Vo;break}if(u&&(xr=u),Ae=function(L,H,be,Ve){switch(hn(),L){case 1:b.length>0&&b[b.length-1][0]==="Character"?b[b.length-1][1]+=H:b.push(["Character",H]);break;case 4:b.push(["Comment",H]);break;case 5:b.push(["DOCTYPE",H,be===void 0?null:be,Ve===void 0?null:Ve,!Po]);break;case 2:for(var Et=Object.create(null),Ct=0;Ct<be.length;Ct++){var zr=be[Ct];zr.length===1?Et[zr[0]]="":Et[zr[0]]=zr[1]}var Nr=["StartTag",H,Et];Ve&&Nr.push(!0),b.push(Nr);break;case 3:b.push(["EndTag",H]);break;case-1:break}},!d)this.parse(a,!0);else{for(var w=0;w<a.length;w++)this.parse(a[w]);this.parse("",!0)}return b},Zi}});var Vi=C((P3,hm)=>{"use strict";hm.exports=mm;var dm=yo(),xm=_o(),yw=Co(),Ro=ve(),Tw=ro();function mm(e){this.contextObject=e}var _w={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};mm.prototype={hasFeature:function(t,r){var n=_w[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return Tw.isValidQName(t)||Ro.InvalidCharacterError(),new xm(this.contextObject,t,r,n)},createDocument:function(t,r,n){var i=new dm(!1,null),s;return r?s=i.createElementNS(t,r):s=null,n&&i.appendChild(n),s&&i.appendChild(s),t===Ro.NAMESPACE.HTML?i._contentType="application/xhtml+xml":t===Ro.NAMESPACE.SVG?i._contentType="image/svg+xml":i._contentType="application/xml",i},createHTMLDocument:function(t){var r=new dm(!0,null);r.appendChild(new xm(r,"html"));var n=r.createElement("html");r.appendChild(n);var i=r.createElement("head");if(n.appendChild(i),t!==void 0){var s=r.createElement("title");i.appendChild(s),s.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){Ro.nyi()},mozHTMLParser:yw}});var bm=C((q3,gm)=>{"use strict";var Iw=po(),ww=zc();gm.exports=cu;function cu(e,t){this._window=e,this._href=t}cu.prototype=Object.create(ww.prototype,{constructor:{value:cu},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new Iw(this._href),r=t.resolve(e);this._href=r}},replace:{value:function(e){this.assign(e)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})});var ym=C((H3,Em)=>{"use strict";var Sw=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});Em.exports=Sw});var _m=C((U3,Tm)=>{"use strict";var vw={setTimeout,clearTimeout,setInterval,clearInterval};Tm.exports=vw});var lu=C((Gi,Im)=>{"use strict";var uu=ve();Gi=Im.exports={CSSStyleDeclaration:xo(),CharacterData:ki(),Comment:kc(),DOMException:Ya(),DOMImplementation:Vi(),DOMTokenList:gc(),Document:yo(),DocumentFragment:Fc(),DocumentType:_o(),Element:Vn(),HTMLParser:Co(),NamedNodeMap:Ic(),Node:Ke(),NodeList:cn(),NodeFilter:qi(),ProcessingInstruction:qc(),Text:Lc(),Window:fu()};uu.merge(Gi,Wc());uu.merge(Gi,go().elements);uu.merge(Gi,Jc().elements)});var fu=C((B3,wm)=>{"use strict";var Nw=Vi(),Aw=Js(),Cw=bm(),Ki=ve();wm.exports=Oo;function Oo(e){this.document=e||new Nw(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new Cw(this,this.document._address||"about:blank")}Oo.prototype=Object.create(Aw.prototype,{console:{value:console},history:{value:{back:Ki.nyi,forward:Ki.nyi,go:Ki.nyi}},navigator:{value:ym()},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(e){this._setEventHandler("load",e)}},getComputedStyle:{value:function(t){return t.style}}});Ki.expose(_m(),Oo);Ki.expose(lu(),Oo)});var Am=C(dn=>{"use strict";var Sm=Vi(),vm=Co(),j3=fu(),Nm=lu();dn.createDOMImplementation=function(){return new Sm(null)};dn.createDocument=function(e,t){if(e||t){var r=new vm;return r.parse(e||"",!0),r.document()}return new Sm(null).createHTMLDocument("")};dn.createIncrementalHTMLParser=function(){var e=new vm;return{write:function(t){t.length>0&&e.parse(t,!1,function(){return!0})},end:function(t){e.parse(t||"",!0,function(){return!0})},process:function(t){return e.parse("",!1,t)},document:function(){return e.document()}}};dn.createWindow=function(e,t){var r=dn.createDocument(e);return t!==void 0&&(r._address=t),new Nm.Window(r)};dn.impl=Nm});var Gm=C((G3,Vm)=>{"use strict";function Rw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function mu(e,t){return Array(t+1).join(e)}function Om(e){return e.replace(/^\n*/,"")}function Lm(e){for(var t=e.length;t>0&&e[t-1]===`
13
- `;)t--;return e.substring(0,t)}function Dm(e){return Lm(Om(e))}var Ow=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function hu(e){return gu(e,Ow)}var km=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Mm(e){return gu(e,km)}function Lw(e){return Pm(e,km)}var Fm=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Dw(e){return gu(e,Fm)}function kw(e){return Pm(e,Fm)}function gu(e,t){return t.indexOf(e.nodeName)>=0}function Pm(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Mw=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function qm(e){return Mw.reduce(function(t,r){return t.replace(r[0],r[1])},e)}var tt={};tt.paragraph={filter:"p",replacement:function(e){return`
14
-
15
- `+e+`
16
-
17
- `}};tt.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
18
- `}};tt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var i=mu(n===1?"=":"-",e.length);return`
19
-
20
- `+e+`
21
- `+i+`
22
-
23
- `}else return`
24
-
25
- `+mu("#",n)+" "+e+`
26
-
27
- `}};tt.blockquote={filter:"blockquote",replacement:function(e){return e=Dm(e).replace(/^/gm,"> "),`
28
-
29
- `+e+`
30
-
31
- `}};tt.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
32
- `+e:`
33
-
34
- `+e+`
35
-
36
- `}};tt.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var s=i.getAttribute("start"),c=Array.prototype.indexOf.call(i.children,t);n=(s?Number(s)+c:c+1)+". "}var x=/\n$/.test(e);return e=Dm(e)+(x?`
37
- `:""),e=e.replace(/\n/gm,`
38
- `+" ".repeat(n.length)),n+e+(t.nextSibling?`
39
- `:"")}};tt.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
40
-
41
- `+t.firstChild.textContent.replace(/\n/g,`
42
- `)+`
43
-
44
- `}};tt.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,c=r.fence.charAt(0),x=3,g=new RegExp("^"+c+"{3,}","gm"),T;T=g.exec(s);)T[0].length>=x&&(x=T[0].length+1);var I=mu(c,x);return`
45
-
46
- `+I+i+`
47
- `+s.replace(/\n$/,"")+`
48
- `+I+`
49
-
50
- `}};tt.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
51
-
52
- `+r.hr+`
53
-
54
- `}};tt.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=bu(t.getAttribute("href")),n=Eu(Lo(t.getAttribute("title"))),i=n?' "'+n+'"':"";return"["+e+"]("+r+i+")"}};tt.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=bu(t.getAttribute("href")),i=Lo(t.getAttribute("title"));i&&(i=' "'+Eu(i)+'"');var s,c;switch(r.linkReferenceStyle){case"collapsed":s="["+e+"][]",c="["+e+"]: "+n+i;break;case"shortcut":s="["+e+"]",c="["+e+"]: "+n+i;break;default:var x=this.references.length+1;s="["+e+"]["+x+"]",c="["+x+"]: "+n+i}return this.references.push(c),s},references:[],append:function(e){var t="";return this.references.length&&(t=`
55
-
56
- `+this.references.join(`
57
- `)+`
58
-
59
- `,this.references=[]),t}};tt.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};tt.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};tt.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};tt.image={filter:"img",replacement:function(e,t){var r=qm(Lo(t.getAttribute("alt"))),n=bu(t.getAttribute("src")||""),i=Lo(t.getAttribute("title")),s=i?' "'+Eu(i)+'"':"";return n?"!["+r+"]("+n+s+")":""}};function Lo(e){return e?e.replace(/(\n+\s*)+/g,`
60
- `):""}function bu(e){var t=e.replace(/([<>()])/g,"\\$1");return t.indexOf(" ")>=0?"<"+t+">":t}function Eu(e){return e.replace(/"/g,'\\"')}function Hm(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}Hm.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=pu(this.array,e,this.options))||(t=pu(this._keep,e,this.options))||(t=pu(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function pu(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(Fw(i,t,r))return i}}function Fw(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Pw(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(K){return K.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var s=null,c=!1,x=null,g=Cm(x,t,i);g!==t;){if(g.nodeType===3||g.nodeType===4){var T=g.data.replace(/[ \r\n\t]+/g," ");if((!s||/ $/.test(s.data))&&!c&&T[0]===" "&&(T=T.substr(1)),!T){g=du(g);continue}g.data=T,s=g}else if(g.nodeType===1)r(g)||g.nodeName==="BR"?(s&&(s.data=s.data.replace(/ $/,"")),s=null,c=!1):n(g)||i(g)?(s=null,c=!0):s&&(c=!1);else{g=du(g);continue}var I=Cm(x,g,i);x=g,g=I}s&&(s.data=s.data.replace(/ $/,""),s.data||du(s))}}function du(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Cm(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var Um=typeof window<"u"?window:{};function qw(){var e=Um.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function Hw(){var e=function(){};{var t=Am();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var Uw=qw()?Um.DOMParser:Hw();function Bw(e,t){var r;if(typeof e=="string"){var n=jw().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return Pw({element:r,isBlock:hu,isVoid:Mm,isPre:t.preformattedCode?Vw:null}),r}var xu;function jw(){return xu=xu||new Uw,xu}function Vw(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function Gw(e,t){return e.isBlock=hu(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=Kw(e),e.flankingWhitespace=$w(e,t),e}function Kw(e){return!Mm(e)&&!Dw(e)&&/^\s*$/i.test(e.textContent)&&!Lw(e)&&!kw(e)}function $w(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=Ww(e.textContent);return r.leadingAscii&&Rm("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&Rm("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function Ww(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Rm(e,t,r){var n,i,s;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?s=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!hu(n)&&(s=i.test(n.textContent))),s}var zw=Array.prototype.reduce;function Do(e){if(!(this instanceof Do))return new Do(e);var t={rules:tt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
61
-
62
- `:""},keepReplacement:function(r,n){return n.isBlock?`
63
-
64
- `+n.outerHTML+`
65
-
66
- `:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
67
-
68
- `+r+`
69
-
70
- `:r}};this.options=Rw({},t,e),this.rules=new Hm(this.options)}Do.prototype={turndown:function(e){if(!Yw(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=Bm.call(this,new Bw(e,this.options));return Xw.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return qm(e)}};function Bm(e){var t=this;return zw.call(e.childNodes,function(r,n){n=new Gw(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=Qw.call(t,n)),jm(r,i)},"")}function Xw(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=jm(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Qw(e){var t=this.rules.forNode(e),r=Bm.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function jm(e,t){var r=Lm(e),n=Om(t),i=Math.max(e.length-r.length,t.length-n.length),s=`
71
-
72
- `.substring(0,i);return r+s+n}function Yw(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}Vm.exports=Do});var Ym=C(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var Km=/highlight-(?:text|source)-([a-z0-9]+)/;function $m(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&Km.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",s=(i.match(Km)||[null,""])[1];return`
73
-
74
- `+n.fence+s+`
75
- `+r.firstChild.textContent+`
76
- `+n.fence+`
77
-
78
- `}})}function Wm(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var Zw=Array.prototype.indexOf,Jw=Array.prototype.every,Zn={};Zn.tableCell={filter:["th","td"],replacement:function(e,t){return zm(e,t)}};Zn.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(yu(t))for(var i=0;i<t.childNodes.length;i++){var s="---",c=(t.childNodes[i].getAttribute("align")||"").toLowerCase();c&&(s=n[c]||s),r+=zm(s,t.childNodes[i])}return`
79
- `+e+(r?`
80
- `+r:"")}};Zn.table={filter:function(e){return e.nodeName==="TABLE"&&yu(e.rows[0])},replacement:function(e){return e=e.replace(`
81
-
82
- `,`
83
- `),`
84
-
85
- `+e+`
86
-
87
- `}};Zn.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function yu(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||eS(t))&&Jw.call(e.childNodes,function(r){return r.nodeName==="TH"})}function eS(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function zm(e,t){var r=Zw.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function Xm(e){e.keep(function(r){return r.nodeName==="TABLE"&&!yu(r.rows[0])});for(var t in Zn)e.addRule(t,Zn[t])}function Qm(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function tS(e){e.use([$m,Wm,Xm,Qm])}xn.gfm=tS;xn.highlightedCodeBlock=$m;xn.strikethrough=Wm;xn.tables=Xm;xn.taskListItems=Qm});var ze={};ts(ze,{HasPropertyKey:()=>Ea,IsArray:()=>Ce,IsAsyncIterator:()=>os,IsBigInt:()=>ui,IsBoolean:()=>ar,IsDate:()=>Xr,IsFunction:()=>ss,IsIterator:()=>cs,IsNull:()=>us,IsNumber:()=>ut,IsObject:()=>ae,IsRegExp:()=>li,IsString:()=>le,IsSymbol:()=>ls,IsUint8Array:()=>or,IsUndefined:()=>Re});function Ea(e,t){return t in e}function os(e){return ae(e)&&!Ce(e)&&!or(e)&&Symbol.asyncIterator in e}function Ce(e){return Array.isArray(e)}function ui(e){return typeof e=="bigint"}function ar(e){return typeof e=="boolean"}function Xr(e){return e instanceof globalThis.Date}function ss(e){return typeof e=="function"}function cs(e){return ae(e)&&!Ce(e)&&!or(e)&&Symbol.iterator in e}function us(e){return e===null}function ut(e){return typeof e=="number"}function ae(e){return typeof e=="object"&&e!==null}function li(e){return e instanceof globalThis.RegExp}function le(e){return typeof e=="string"}function ls(e){return typeof e=="symbol"}function or(e){return e instanceof globalThis.Uint8Array}function Re(e){return e===void 0}function Tg(e){return e.map(t=>ya(t))}function _g(e){return new Date(e.getTime())}function Ig(e){return new Uint8Array(e)}function wg(e){return new RegExp(e.source,e.flags)}function Sg(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=ya(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=ya(e[r]);return t}function ya(e){return Ce(e)?Tg(e):Xr(e)?_g(e):or(e)?Ig(e):li(e)?wg(e):ae(e)?Sg(e):e}function me(e){return ya(e)}function bn(e,t){return t===void 0?me(e):me({...t,...e})}function Al(e){return e!==null&&typeof e=="object"}function Cl(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Rl(e){return e===void 0}function Ol(e){return typeof e=="number"}var Ta;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(c,x){return e.ExactOptionalPropertyTypes?x in c:c[x]!==void 0}e.IsExactOptionalProperty=t;function r(c){let x=Al(c);return e.AllowArrayObject?x:x&&!Cl(c)}e.IsObjectLike=r;function n(c){return r(c)&&!(c instanceof Date)&&!(c instanceof Uint8Array)}e.IsRecordLike=n;function i(c){return e.AllowNaN?Ol(c):Number.isFinite(c)}e.IsNumberLike=i;function s(c){let x=Rl(c);return e.AllowNullVoid?x||c===null:x}e.IsVoidLike=s})(Ta||(Ta={}));function vg(e){return globalThis.Object.freeze(e).map(t=>fi(t))}function Ng(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=fi(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=fi(e[r]);return globalThis.Object.freeze(t)}function fi(e){return Ce(e)?vg(e):Xr(e)?e:or(e)?e:li(e)?e:ae(e)?Ng(e):e}function m(e,t){let r=t!==void 0?{...t,...e}:e;switch(Ta.InstanceMode){case"freeze":return fi(r);case"clone":return me(r);default:return r}}var qe=class extends Error{constructor(t){super(t)}};var ke=Symbol.for("TypeBox.Transform"),Rt=Symbol.for("TypeBox.Readonly"),Ge=Symbol.for("TypeBox.Optional"),yt=Symbol.for("TypeBox.Hint"),y=Symbol.for("TypeBox.Kind");function En(e){return ae(e)&&e[Rt]==="Readonly"}function nt(e){return ae(e)&&e[Ge]==="Optional"}function fs(e){return j(e,"Any")}function ps(e){return j(e,"Argument")}function Ot(e){return j(e,"Array")}function Qr(e){return j(e,"AsyncIterator")}function Yr(e){return j(e,"BigInt")}function sr(e){return j(e,"Boolean")}function Lt(e){return j(e,"Computed")}function Dt(e){return j(e,"Constructor")}function Ag(e){return j(e,"Date")}function kt(e){return j(e,"Function")}function Mt(e){return j(e,"Integer")}function Ee(e){return j(e,"Intersect")}function Zr(e){return j(e,"Iterator")}function j(e,t){return ae(e)&&y in e&&e[y]===t}function _a(e){return ar(e)||ut(e)||le(e)}function lt(e){return j(e,"Literal")}function ft(e){return j(e,"MappedKey")}function he(e){return j(e,"MappedResult")}function Ar(e){return j(e,"Never")}function Cg(e){return j(e,"Not")}function pi(e){return j(e,"Null")}function Ft(e){return j(e,"Number")}function Oe(e){return j(e,"Object")}function Jr(e){return j(e,"Promise")}function en(e){return j(e,"Record")}function we(e){return j(e,"Ref")}function ds(e){return j(e,"RegExp")}function cr(e){return j(e,"String")}function di(e){return j(e,"Symbol")}function pt(e){return j(e,"TemplateLiteral")}function Rg(e){return j(e,"This")}function Cr(e){return ae(e)&&ke in e}function dt(e){return j(e,"Tuple")}function xi(e){return j(e,"Undefined")}function V(e){return j(e,"Union")}function Og(e){return j(e,"Uint8Array")}function Lg(e){return j(e,"Unknown")}function Dg(e){return j(e,"Unsafe")}function kg(e){return j(e,"Void")}function Mg(e){return ae(e)&&y in e&&le(e[y])}function xt(e){return fs(e)||ps(e)||Ot(e)||sr(e)||Yr(e)||Qr(e)||Lt(e)||Dt(e)||Ag(e)||kt(e)||Mt(e)||Ee(e)||Zr(e)||lt(e)||ft(e)||he(e)||Ar(e)||Cg(e)||pi(e)||Ft(e)||Oe(e)||Jr(e)||en(e)||we(e)||ds(e)||cr(e)||di(e)||pt(e)||Rg(e)||dt(e)||xi(e)||V(e)||Og(e)||Lg(e)||Dg(e)||kg(e)||Mg(e)}var p={};ts(p,{IsAny:()=>Ml,IsArgument:()=>Fl,IsArray:()=>Pl,IsAsyncIterator:()=>ql,IsBigInt:()=>Hl,IsBoolean:()=>Ul,IsComputed:()=>Bl,IsConstructor:()=>jl,IsDate:()=>Vl,IsFunction:()=>Gl,IsImport:()=>Bg,IsInteger:()=>Kl,IsIntersect:()=>$l,IsIterator:()=>Wl,IsKind:()=>E0,IsKindOf:()=>P,IsLiteral:()=>hi,IsLiteralBoolean:()=>jg,IsLiteralNumber:()=>Xl,IsLiteralString:()=>zl,IsLiteralValue:()=>Ql,IsMappedKey:()=>Yl,IsMappedResult:()=>Zl,IsNever:()=>Jl,IsNot:()=>e0,IsNull:()=>t0,IsNumber:()=>r0,IsObject:()=>n0,IsOptional:()=>Ug,IsPromise:()=>i0,IsProperties:()=>Ia,IsReadonly:()=>Hg,IsRecord:()=>a0,IsRecursive:()=>Vg,IsRef:()=>o0,IsRegExp:()=>s0,IsSchema:()=>He,IsString:()=>c0,IsSymbol:()=>u0,IsTemplateLiteral:()=>l0,IsThis:()=>f0,IsTransform:()=>p0,IsTuple:()=>d0,IsUint8Array:()=>m0,IsUndefined:()=>x0,IsUnion:()=>gs,IsUnionLiteral:()=>Gg,IsUnknown:()=>h0,IsUnsafe:()=>g0,IsVoid:()=>b0,TypeGuardUnknownTypeError:()=>xs});var xs=class extends qe{},Fg=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function Ll(e){try{return new RegExp(e),!0}catch{return!1}}function ms(e){if(!le(e))return!1;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}function Dl(e){return hs(e)||He(e)}function mi(e){return Re(e)||ui(e)}function fe(e){return Re(e)||ut(e)}function hs(e){return Re(e)||ar(e)}function oe(e){return Re(e)||le(e)}function Pg(e){return Re(e)||le(e)&&ms(e)&&Ll(e)}function qg(e){return Re(e)||le(e)&&ms(e)}function kl(e){return Re(e)||He(e)}function Hg(e){return ae(e)&&e[Rt]==="Readonly"}function Ug(e){return ae(e)&&e[Ge]==="Optional"}function Ml(e){return P(e,"Any")&&oe(e.$id)}function Fl(e){return P(e,"Argument")&&ut(e.index)}function Pl(e){return P(e,"Array")&&e.type==="array"&&oe(e.$id)&&He(e.items)&&fe(e.minItems)&&fe(e.maxItems)&&hs(e.uniqueItems)&&kl(e.contains)&&fe(e.minContains)&&fe(e.maxContains)}function ql(e){return P(e,"AsyncIterator")&&e.type==="AsyncIterator"&&oe(e.$id)&&He(e.items)}function Hl(e){return P(e,"BigInt")&&e.type==="bigint"&&oe(e.$id)&&mi(e.exclusiveMaximum)&&mi(e.exclusiveMinimum)&&mi(e.maximum)&&mi(e.minimum)&&mi(e.multipleOf)}function Ul(e){return P(e,"Boolean")&&e.type==="boolean"&&oe(e.$id)}function Bl(e){return P(e,"Computed")&&le(e.target)&&Ce(e.parameters)&&e.parameters.every(t=>He(t))}function jl(e){return P(e,"Constructor")&&e.type==="Constructor"&&oe(e.$id)&&Ce(e.parameters)&&e.parameters.every(t=>He(t))&&He(e.returns)}function Vl(e){return P(e,"Date")&&e.type==="Date"&&oe(e.$id)&&fe(e.exclusiveMaximumTimestamp)&&fe(e.exclusiveMinimumTimestamp)&&fe(e.maximumTimestamp)&&fe(e.minimumTimestamp)&&fe(e.multipleOfTimestamp)}function Gl(e){return P(e,"Function")&&e.type==="Function"&&oe(e.$id)&&Ce(e.parameters)&&e.parameters.every(t=>He(t))&&He(e.returns)}function Bg(e){return P(e,"Import")&&Ea(e,"$defs")&&ae(e.$defs)&&Ia(e.$defs)&&Ea(e,"$ref")&&le(e.$ref)&&e.$ref in e.$defs}function Kl(e){return P(e,"Integer")&&e.type==="integer"&&oe(e.$id)&&fe(e.exclusiveMaximum)&&fe(e.exclusiveMinimum)&&fe(e.maximum)&&fe(e.minimum)&&fe(e.multipleOf)}function Ia(e){return ae(e)&&Object.entries(e).every(([t,r])=>ms(t)&&He(r))}function $l(e){return P(e,"Intersect")&&!(le(e.type)&&e.type!=="object")&&Ce(e.allOf)&&e.allOf.every(t=>He(t)&&!p0(t))&&oe(e.type)&&(hs(e.unevaluatedProperties)||kl(e.unevaluatedProperties))&&oe(e.$id)}function Wl(e){return P(e,"Iterator")&&e.type==="Iterator"&&oe(e.$id)&&He(e.items)}function P(e,t){return ae(e)&&y in e&&e[y]===t}function zl(e){return hi(e)&&le(e.const)}function Xl(e){return hi(e)&&ut(e.const)}function jg(e){return hi(e)&&ar(e.const)}function hi(e){return P(e,"Literal")&&oe(e.$id)&&Ql(e.const)}function Ql(e){return ar(e)||ut(e)||le(e)}function Yl(e){return P(e,"MappedKey")&&Ce(e.keys)&&e.keys.every(t=>ut(t)||le(t))}function Zl(e){return P(e,"MappedResult")&&Ia(e.properties)}function Jl(e){return P(e,"Never")&&ae(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function e0(e){return P(e,"Not")&&He(e.not)}function t0(e){return P(e,"Null")&&e.type==="null"&&oe(e.$id)}function r0(e){return P(e,"Number")&&e.type==="number"&&oe(e.$id)&&fe(e.exclusiveMaximum)&&fe(e.exclusiveMinimum)&&fe(e.maximum)&&fe(e.minimum)&&fe(e.multipleOf)}function n0(e){return P(e,"Object")&&e.type==="object"&&oe(e.$id)&&Ia(e.properties)&&Dl(e.additionalProperties)&&fe(e.minProperties)&&fe(e.maxProperties)}function i0(e){return P(e,"Promise")&&e.type==="Promise"&&oe(e.$id)&&He(e.item)}function a0(e){return P(e,"Record")&&e.type==="object"&&oe(e.$id)&&Dl(e.additionalProperties)&&ae(e.patternProperties)&&(t=>{let r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&Ll(r[0])&&ae(t.patternProperties)&&He(t.patternProperties[r[0]])})(e)}function Vg(e){return ae(e)&&yt in e&&e[yt]==="Recursive"}function o0(e){return P(e,"Ref")&&oe(e.$id)&&le(e.$ref)}function s0(e){return P(e,"RegExp")&&oe(e.$id)&&le(e.source)&&le(e.flags)&&fe(e.maxLength)&&fe(e.minLength)}function c0(e){return P(e,"String")&&e.type==="string"&&oe(e.$id)&&fe(e.minLength)&&fe(e.maxLength)&&Pg(e.pattern)&&qg(e.format)}function u0(e){return P(e,"Symbol")&&e.type==="symbol"&&oe(e.$id)}function l0(e){return P(e,"TemplateLiteral")&&e.type==="string"&&le(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function f0(e){return P(e,"This")&&oe(e.$id)&&le(e.$ref)}function p0(e){return ae(e)&&ke in e}function d0(e){return P(e,"Tuple")&&e.type==="array"&&oe(e.$id)&&ut(e.minItems)&&ut(e.maxItems)&&e.minItems===e.maxItems&&(Re(e.items)&&Re(e.additionalItems)&&e.minItems===0||Ce(e.items)&&e.items.every(t=>He(t)))}function x0(e){return P(e,"Undefined")&&e.type==="undefined"&&oe(e.$id)}function Gg(e){return gs(e)&&e.anyOf.every(t=>zl(t)||Xl(t))}function gs(e){return P(e,"Union")&&oe(e.$id)&&ae(e)&&Ce(e.anyOf)&&e.anyOf.every(t=>He(t))}function m0(e){return P(e,"Uint8Array")&&e.type==="Uint8Array"&&oe(e.$id)&&fe(e.minByteLength)&&fe(e.maxByteLength)}function h0(e){return P(e,"Unknown")&&oe(e.$id)}function g0(e){return P(e,"Unsafe")}function b0(e){return P(e,"Void")&&e.type==="void"&&oe(e.$id)}function E0(e){return ae(e)&&y in e&&le(e[y])&&!Fg.includes(e[y])}function He(e){return ae(e)&&(Ml(e)||Fl(e)||Pl(e)||Ul(e)||Hl(e)||ql(e)||Bl(e)||jl(e)||Vl(e)||Gl(e)||Kl(e)||$l(e)||Wl(e)||hi(e)||Yl(e)||Zl(e)||Jl(e)||e0(e)||t0(e)||r0(e)||n0(e)||i0(e)||a0(e)||o0(e)||s0(e)||c0(e)||u0(e)||l0(e)||f0(e)||d0(e)||x0(e)||gs(e)||m0(e)||h0(e)||g0(e)||b0(e)||E0(e))}var bs="(true|false)",gi="(0|[1-9][0-9]*)",Es="(.*)",Kg="(?!.*)",kv=`^${bs}$`,Rr=`^${gi}$`,Or=`^${Es}$`,y0=`^${Kg}$`;function T0(e,t){return e.includes(t)}function _0(e){return[...new Set(e)]}function $g(e,t){return e.filter(r=>t.includes(r))}function Wg(e,t){return e.reduce((r,n)=>$g(r,n),t)}function I0(e){return e.length===1?e[0]:e.length>1?Wg(e.slice(1),e[0]):[]}function w0(e){let t=[];for(let r of e)t.push(...r);return t}function Lr(e){return m({[y]:"Any"},e)}function yn(e,t){return m({[y]:"Array",type:"array",items:e},t)}function S0(e){return m({[y]:"Argument",index:e})}function Tn(e,t){return m({[y]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function xe(e,t,r){return m({[y]:"Computed",target:e,parameters:t},r)}function zg(e,t){let{[t]:r,...n}=e;return n}function ye(e,t){return t.reduce((r,n)=>zg(r,n),e)}function G(e){return m({[y]:"Never",not:{}},e)}function $(e){return m({[y]:"MappedResult",properties:e})}function _n(e,t,r){return m({[y]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}function Wt(e,t,r){return m({[y]:"Function",type:"Function",parameters:e,returns:t},r)}function bi(e,t){return m({[y]:"Union",anyOf:e},t)}function Xg(e){return e.some(t=>nt(t))}function v0(e){return e.map(t=>nt(t)?Qg(t):t)}function Qg(e){return ye(e,[Ge])}function Yg(e,t){return Xg(e)?Xe(bi(v0(e),t)):bi(v0(e),t)}function zt(e,t){return e.length===1?m(e[0],t):e.length===0?G(t):Yg(e,t)}function ee(e,t){return e.length===0?G(t):e.length===1?m(e[0],t):bi(e,t)}var wa=class extends qe{};function Zg(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function ys(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function lr(e,t){return ys(e,t,"(")}function Ei(e,t){return ys(e,t,")")}function N0(e,t){return ys(e,t,"|")}function Jg(e){if(!(lr(e,0)&&Ei(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(lr(e,r)&&(t+=1),Ei(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}function e2(e){return e.slice(1,e.length-1)}function t2(e){let t=0;for(let r=0;r<e.length;r++)if(lr(e,r)&&(t+=1),Ei(e,r)&&(t-=1),N0(e,r)&&t===0)return!0;return!1}function r2(e){for(let t=0;t<e.length;t++)if(lr(e,t))return!0;return!1}function n2(e){let[t,r]=[0,0],n=[];for(let s=0;s<e.length;s++)if(lr(e,s)&&(t+=1),Ei(e,s)&&(t-=1),N0(e,s)&&t===0){let c=e.slice(r,s);c.length>0&&n.push(In(c)),r=s+1}let i=e.slice(r);return i.length>0&&n.push(In(i)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}function i2(e){function t(i,s){if(!lr(i,s))throw new wa("TemplateLiteralParser: Index must point to open parens");let c=0;for(let x=s;x<i.length;x++)if(lr(i,x)&&(c+=1),Ei(i,x)&&(c-=1),c===0)return[s,x];throw new wa("TemplateLiteralParser: Unclosed group parens in expression")}function r(i,s){for(let c=s;c<i.length;c++)if(lr(i,c))return[s,c];return[s,i.length]}let n=[];for(let i=0;i<e.length;i++)if(lr(e,i)){let[s,c]=t(e,i),x=e.slice(s,c+1);n.push(In(x)),i=c}else{let[s,c]=r(e,i),x=e.slice(s,c);x.length>0&&n.push(In(x)),i=c-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}function In(e){return Jg(e)?In(e2(e)):t2(e)?n2(e):r2(e)?i2(e):{type:"const",const:Zg(e)}}function wn(e){return In(e.slice(1,e.length-1))}var Ts=class extends qe{};function a2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function o2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function s2(e){return e.type==="const"&&e.const===".*"}function tn(e){return a2(e)||s2(e)?!1:o2(e)?!0:e.type==="and"?e.expr.every(t=>tn(t)):e.type==="or"?e.expr.every(t=>tn(t)):e.type==="const"?!0:(()=>{throw new Ts("Unknown expression type")})()}function A0(e){let t=wn(e.pattern);return tn(t)}var _s=class extends qe{};function*C0(e){if(e.length===1)return yield*e[0];for(let t of e[0])for(let r of C0(e.slice(1)))yield`${t}${r}`}function*c2(e){return yield*C0(e.expr.map(t=>[...yi(t)]))}function*u2(e){for(let t of e.expr)yield*yi(t)}function*l2(e){return yield e.const}function*yi(e){return e.type==="and"?yield*c2(e):e.type==="or"?yield*u2(e):e.type==="const"?yield*l2(e):(()=>{throw new _s("Unknown expression")})()}function Sa(e){let t=wn(e.pattern);return tn(t)?[...yi(t)]:[]}function Q(e,t){return m({[y]:"Literal",const:e,type:typeof e},t)}function va(e){return m({[y]:"Boolean",type:"boolean"},e)}function Sn(e){return m({[y]:"BigInt",type:"bigint"},e)}function Tt(e){return m({[y]:"Number",type:"number"},e)}function Pt(e){return m({[y]:"String",type:"string"},e)}function*f2(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield va():t==="number"?yield Tt():t==="bigint"?yield Sn():t==="string"?yield Pt():yield(()=>{let r=t.split("|").map(n=>Q(n.trim()));return r.length===0?G():r.length===1?r[0]:zt(r)})()}function*p2(e){if(e[1]!=="{"){let t=Q("$"),r=Is(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){let r=f2(e.slice(2,t)),n=Is(e.slice(t+1));return yield*[...r,...n]}yield Q(e)}function*Is(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let r=Q(e.slice(0,t)),n=p2(e.slice(t));return yield*[r,...n]}yield Q(e)}function R0(e){return[...Is(e)]}var ws=class extends qe{};function d2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function O0(e,t){return pt(e)?e.pattern.slice(1,e.pattern.length-1):V(e)?`(${e.anyOf.map(r=>O0(r,t)).join("|")})`:Ft(e)?`${t}${gi}`:Mt(e)?`${t}${gi}`:Yr(e)?`${t}${gi}`:cr(e)?`${t}${Es}`:lt(e)?`${t}${d2(e.const.toString())}`:sr(e)?`${t}${bs}`:(()=>{throw new ws(`Unexpected Kind '${e[y]}'`)})()}function Ss(e){return`^${e.map(t=>O0(t,"")).join("")}$`}function rn(e){let r=Sa(e).map(n=>Q(n));return zt(r)}function Na(e,t){let r=le(e)?Ss(R0(e)):Ss(e);return m({[y]:"TemplateLiteral",type:"string",pattern:r},t)}function x2(e){return Sa(e).map(r=>r.toString())}function m2(e){let t=[];for(let r of e)t.push(...it(r));return t}function h2(e){return[e.toString()]}function it(e){return[...new Set(pt(e)?x2(e):V(e)?m2(e.anyOf):lt(e)?h2(e.const):Ft(e)?["[number]"]:Mt(e)?["[number]"]:[])]}function g2(e,t,r){let n={};for(let i of Object.getOwnPropertyNames(t))n[i]=Dr(e,it(t[i]),r);return n}function b2(e,t,r){return g2(e,t.properties,r)}function L0(e,t,r){let n=b2(e,t,r);return $(n)}function k0(e,t){return e.map(r=>M0(r,t))}function E2(e){return e.filter(t=>!Ar(t))}function y2(e,t){return Aa(E2(k0(e,t)))}function T2(e){return e.some(t=>Ar(t))?[]:e}function _2(e,t){return zt(T2(k0(e,t)))}function I2(e,t){return t in e?e[t]:t==="[number]"?zt(e):G()}function w2(e,t){return t==="[number]"?e:G()}function S2(e,t){return t in e?e[t]:G()}function M0(e,t){return Ee(e)?y2(e.allOf,t):V(e)?_2(e.anyOf,t):dt(e)?I2(e.items??[],t):Ot(e)?w2(e.items,t):Oe(e)?S2(e.properties,t):G()}function vs(e,t){return t.map(r=>M0(e,r))}function D0(e,t){return zt(vs(e,t))}function Dr(e,t,r){if(we(e)||we(t)){let n="Index types using Ref parameters require both Type and Key to be of TSchema";if(!xt(e)||!xt(t))throw new qe(n);return xe("Index",[e,t])}return he(t)?L0(e,t,r):ft(t)?F0(e,t,r):m(xt(t)?D0(e,it(t)):D0(e,t),r)}function v2(e,t,r){return{[t]:Dr(e,[t],me(r))}}function N2(e,t,r){return t.reduce((n,i)=>({...n,...v2(e,i,r)}),{})}function A2(e,t,r){return N2(e,t.keys,r)}function F0(e,t,r){let n=A2(e,t,r);return $(n)}function vn(e,t){return m({[y]:"Iterator",type:"Iterator",items:e},t)}function C2(e){return globalThis.Object.keys(e).filter(t=>!nt(e[t]))}function R2(e,t){let r=C2(e),n=r.length>0?{[y]:"Object",type:"object",required:r,properties:e}:{[y]:"Object",type:"object",properties:e};return m(n,t)}var se=R2;function Ca(e,t){return m({[y]:"Promise",type:"Promise",item:e},t)}function O2(e){return m(ye(e,[Rt]))}function L2(e){return m({...e,[Rt]:"Readonly"})}function D2(e,t){return t===!1?O2(e):L2(e)}function at(e,t){let r=t??!0;return he(e)?P0(e,r):D2(e,r)}function k2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=at(e[n],t);return r}function M2(e,t){return k2(e.properties,t)}function P0(e,t){let r=M2(e,t);return $(r)}function _t(e,t){return m(e.length>0?{[y]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[y]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function q0(e,t){return e in t?It(e,t[e]):$(t)}function F2(e){return{[e]:Q(e)}}function P2(e){let t={};for(let r of e)t[r]=Q(r);return t}function q2(e,t){return T0(t,e)?F2(e):P2(t)}function H2(e,t){let r=q2(e,t);return q0(e,r)}function Ti(e,t){return t.map(r=>It(e,r))}function U2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(t))r[n]=It(e,t[n]);return r}function It(e,t){let r={...t};return nt(t)?Xe(It(e,ye(t,[Ge]))):En(t)?at(It(e,ye(t,[Rt]))):he(t)?q0(e,t.properties):ft(t)?H2(e,t.keys):Dt(t)?_n(Ti(e,t.parameters),It(e,t.returns),r):kt(t)?Wt(Ti(e,t.parameters),It(e,t.returns),r):Qr(t)?Tn(It(e,t.items),r):Zr(t)?vn(It(e,t.items),r):Ee(t)?Qe(Ti(e,t.allOf),r):V(t)?ee(Ti(e,t.anyOf),r):dt(t)?_t(Ti(e,t.items??[]),r):Oe(t)?se(U2(e,t.properties),r):Ot(t)?yn(It(e,t.items),r):Jr(t)?Ca(It(e,t.item),r):t}function B2(e,t){let r={};for(let n of e)r[n]=It(n,t);return r}function H0(e,t,r){let n=xt(e)?it(e):e,i=t({[y]:"MappedKey",keys:n}),s=B2(n,i);return se(s,r)}function j2(e){return m(ye(e,[Ge]))}function V2(e){return m({...e,[Ge]:"Optional"})}function G2(e,t){return t===!1?j2(e):V2(e)}function Xe(e,t){let r=t??!0;return he(e)?U0(e,r):G2(e,r)}function K2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Xe(e[n],t);return r}function $2(e,t){return K2(e.properties,t)}function U0(e,t){let r=$2(e,t);return $(r)}function _i(e,t={}){let r=e.every(i=>Oe(i)),n=xt(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return m(t.unevaluatedProperties===!1||xt(t.unevaluatedProperties)||r?{...n,[y]:"Intersect",type:"object",allOf:e}:{...n,[y]:"Intersect",allOf:e},t)}function W2(e){return e.every(t=>nt(t))}function z2(e){return ye(e,[Ge])}function B0(e){return e.map(t=>nt(t)?z2(t):t)}function X2(e,t){return W2(e)?Xe(_i(B0(e),t)):_i(B0(e),t)}function Aa(e,t={}){if(e.length===1)return m(e[0],t);if(e.length===0)return G(t);if(e.some(r=>Cr(r)))throw new Error("Cannot intersect transform types");return X2(e,t)}function Qe(e,t){if(e.length===1)return m(e[0],t);if(e.length===0)return G(t);if(e.some(r=>Cr(r)))throw new Error("Cannot intersect transform types");return _i(e,t)}function Xt(...e){let[t,r]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new qe("Ref: $ref must be a string");return m({[y]:"Ref",$ref:t},r)}function Q2(e,t){return xe("Awaited",[xe(e,t)])}function Y2(e){return xe("Awaited",[Xt(e)])}function Z2(e){return Qe(j0(e))}function J2(e){return ee(j0(e))}function eb(e){return Nn(e)}function j0(e){return e.map(t=>Nn(t))}function Nn(e,t){return m(Lt(e)?Q2(e.target,e.parameters):Ee(e)?Z2(e.allOf):V(e)?J2(e.anyOf):Jr(e)?eb(e.item):we(e)?Y2(e.$ref):e,t)}function V0(e){let t=[];for(let r of e)t.push(Ii(r));return t}function tb(e){let t=V0(e);return w0(t)}function rb(e){let t=V0(e);return I0(t)}function nb(e){return e.map((t,r)=>r.toString())}function ib(e){return["[number]"]}function ab(e){return globalThis.Object.getOwnPropertyNames(e)}function ob(e){return sb?globalThis.Object.getOwnPropertyNames(e).map(r=>r[0]==="^"&&r[r.length-1]==="$"?r.slice(1,r.length-1):r):[]}function Ii(e){return Ee(e)?tb(e.allOf):V(e)?rb(e.anyOf):dt(e)?nb(e.items??[]):Ot(e)?ib(e.items):Oe(e)?ab(e.properties):en(e)?ob(e.patternProperties):[]}var sb=!1;function cb(e,t){return xe("KeyOf",[xe(e,t)])}function ub(e){return xe("KeyOf",[Xt(e)])}function lb(e,t){let r=Ii(e),n=fb(r),i=zt(n);return m(i,t)}function fb(e){return e.map(t=>t==="[number]"?Tt():Q(t))}function An(e,t){return Lt(e)?cb(e.target,e.parameters):we(e)?ub(e.$ref):he(e)?G0(e,t):lb(e,t)}function pb(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=An(e[n],me(t));return r}function db(e,t){return pb(e.properties,t)}function G0(e,t){let r=db(e,t);return $(r)}function xb(e){let t=[];for(let r of e)t.push(...Ii(r));return _0(t)}function mb(e){return e.filter(t=>!Ar(t))}function hb(e,t){let r=[];for(let n of e)r.push(...vs(n,[t]));return mb(r)}function gb(e,t){let r={};for(let n of t)r[n]=Aa(hb(e,n));return r}function K0(e,t){let r=xb(e),n=gb(e,r);return se(n,t)}function Ra(e){return m({[y]:"Date",type:"Date"},e)}function Oa(e){return m({[y]:"Null",type:"null"},e)}function La(e){return m({[y]:"Symbol",type:"symbol"},e)}function Da(e){return m({[y]:"Undefined",type:"undefined"},e)}function ka(e){return m({[y]:"Uint8Array",type:"Uint8Array"},e)}function kr(e){return m({[y]:"Unknown"},e)}function bb(e){return e.map(t=>Ns(t,!1))}function Eb(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=at(Ns(e[r],!1));return t}function Ma(e,t){return t===!0?e:at(e)}function Ns(e,t){return os(e)?Ma(Lr(),t):cs(e)?Ma(Lr(),t):Ce(e)?at(_t(bb(e))):or(e)?ka():Xr(e)?Ra():ae(e)?Ma(se(Eb(e)),t):ss(e)?Ma(Wt([],kr()),t):Re(e)?Da():us(e)?Oa():ls(e)?La():ui(e)?Sn():ut(e)?Q(e):ar(e)?Q(e):le(e)?Q(e):se({})}function $0(e,t){return m(Ns(e,!0),t)}function W0(e,t){return Dt(e)?_t(e.parameters,t):G(t)}function z0(e,t){if(Re(e))throw new Error("Enum undefined or empty");let r=globalThis.Object.getOwnPropertyNames(e).filter(s=>isNaN(s)).map(s=>e[s]),i=[...new Set(r)].map(s=>Q(s));return ee(i,{...t,[yt]:"Enum"})}var Cs=class extends qe{},h;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(h||(h={}));function wt(e){return e===h.False?e:h.True}function Cn(e){throw new Cs(e)}function Me(e){return p.IsNever(e)||p.IsIntersect(e)||p.IsUnion(e)||p.IsUnknown(e)||p.IsAny(e)}function Fe(e,t){return p.IsNever(t)?tf(e,t):p.IsIntersect(t)?Fa(e,t):p.IsUnion(t)?Ds(e,t):p.IsUnknown(t)?of(e,t):p.IsAny(t)?Ls(e,t):Cn("StructuralRight")}function Ls(e,t){return h.True}function yb(e,t){return p.IsIntersect(t)?Fa(e,t):p.IsUnion(t)&&t.anyOf.some(r=>p.IsAny(r)||p.IsUnknown(r))?h.True:p.IsUnion(t)?h.Union:p.IsUnknown(t)||p.IsAny(t)?h.True:h.Union}function Tb(e,t){return p.IsUnknown(e)?h.False:p.IsAny(e)?h.Union:p.IsNever(e)?h.True:h.False}function _b(e,t){return p.IsObject(t)&&Pa(t)?h.True:Me(t)?Fe(e,t):p.IsArray(t)?wt(ce(e.items,t.items)):h.False}function Ib(e,t){return Me(t)?Fe(e,t):p.IsAsyncIterator(t)?wt(ce(e.items,t.items)):h.False}function wb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsBigInt(t)?h.True:h.False}function J0(e,t){return p.IsLiteralBoolean(e)||p.IsBoolean(e)?h.True:h.False}function Sb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsBoolean(t)?h.True:h.False}function vb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsConstructor(t)?e.parameters.length>t.parameters.length?h.False:e.parameters.every((r,n)=>wt(ce(t.parameters[n],r))===h.True)?wt(ce(e.returns,t.returns)):h.False:h.False}function Nb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsDate(t)?h.True:h.False}function Ab(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsFunction(t)?e.parameters.length>t.parameters.length?h.False:e.parameters.every((r,n)=>wt(ce(t.parameters[n],r))===h.True)?wt(ce(e.returns,t.returns)):h.False:h.False}function ef(e,t){return p.IsLiteral(e)&&ze.IsNumber(e.const)||p.IsNumber(e)||p.IsInteger(e)?h.True:h.False}function Cb(e,t){return p.IsInteger(t)||p.IsNumber(t)?h.True:Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):h.False}function Fa(e,t){return t.allOf.every(r=>ce(e,r)===h.True)?h.True:h.False}function Rb(e,t){return e.allOf.some(r=>ce(r,t)===h.True)?h.True:h.False}function Ob(e,t){return Me(t)?Fe(e,t):p.IsIterator(t)?wt(ce(e.items,t.items)):h.False}function Lb(e,t){return p.IsLiteral(t)&&t.const===e.const?h.True:Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsString(t)?af(e,t):p.IsNumber(t)?rf(e,t):p.IsInteger(t)?ef(e,t):p.IsBoolean(t)?J0(e,t):h.False}function tf(e,t){return h.False}function Db(e,t){return h.True}function X0(e){let[t,r]=[e,0];for(;p.IsNot(t);)t=t.not,r+=1;return r%2===0?t:kr()}function kb(e,t){return p.IsNot(e)?ce(X0(e),t):p.IsNot(t)?ce(e,X0(t)):Cn("Invalid fallthrough for Not")}function Mb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsNull(t)?h.True:h.False}function rf(e,t){return p.IsLiteralNumber(e)||p.IsNumber(e)||p.IsInteger(e)?h.True:h.False}function Fb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsInteger(t)||p.IsNumber(t)?h.True:h.False}function ot(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function Q0(e){return Pa(e)}function Y0(e){return ot(e,0)||ot(e,1)&&"description"in e.properties&&p.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(p.IsString(e.properties.description.anyOf[0])&&p.IsUndefined(e.properties.description.anyOf[1])||p.IsString(e.properties.description.anyOf[1])&&p.IsUndefined(e.properties.description.anyOf[0]))}function As(e){return ot(e,0)}function Z0(e){return ot(e,0)}function Pb(e){return ot(e,0)}function qb(e){return ot(e,0)}function Hb(e){return Pa(e)}function Ub(e){let t=Tt();return ot(e,0)||ot(e,1)&&"length"in e.properties&&wt(ce(e.properties.length,t))===h.True}function Bb(e){return ot(e,0)}function Pa(e){let t=Tt();return ot(e,0)||ot(e,1)&&"length"in e.properties&&wt(ce(e.properties.length,t))===h.True}function jb(e){let t=Wt([Lr()],Lr());return ot(e,0)||ot(e,1)&&"then"in e.properties&&wt(ce(e.properties.then,t))===h.True}function nf(e,t){return ce(e,t)===h.False||p.IsOptional(e)&&!p.IsOptional(t)?h.False:h.True}function Ye(e,t){return p.IsUnknown(e)?h.False:p.IsAny(e)?h.Union:p.IsNever(e)||p.IsLiteralString(e)&&Q0(t)||p.IsLiteralNumber(e)&&As(t)||p.IsLiteralBoolean(e)&&Z0(t)||p.IsSymbol(e)&&Y0(t)||p.IsBigInt(e)&&Pb(t)||p.IsString(e)&&Q0(t)||p.IsSymbol(e)&&Y0(t)||p.IsNumber(e)&&As(t)||p.IsInteger(e)&&As(t)||p.IsBoolean(e)&&Z0(t)||p.IsUint8Array(e)&&Hb(t)||p.IsDate(e)&&qb(t)||p.IsConstructor(e)&&Bb(t)||p.IsFunction(e)&&Ub(t)?h.True:p.IsRecord(e)&&p.IsString(Rs(e))?t[yt]==="Record"?h.True:h.False:p.IsRecord(e)&&p.IsNumber(Rs(e))&&ot(t,0)?h.True:h.False}function Vb(e,t){return Me(t)?Fe(e,t):p.IsRecord(t)?St(e,t):p.IsObject(t)?(()=>{for(let r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!p.IsOptional(t.properties[r]))return h.False;if(p.IsOptional(t.properties[r]))return h.True;if(nf(e.properties[r],t.properties[r])===h.False)return h.False}return h.True})():h.False}function Gb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)&&jb(t)?h.True:p.IsPromise(t)?wt(ce(e.item,t.item)):h.False}function Rs(e){return Rr in e.patternProperties?Tt():Or in e.patternProperties?Pt():Cn("Unknown record key pattern")}function Os(e){return Rr in e.patternProperties?e.patternProperties[Rr]:Or in e.patternProperties?e.patternProperties[Or]:Cn("Unable to get record value schema")}function St(e,t){let[r,n]=[Rs(t),Os(t)];return p.IsLiteralString(e)&&p.IsNumber(r)&&wt(ce(e,n))===h.True?h.True:p.IsUint8Array(e)&&p.IsNumber(r)||p.IsString(e)&&p.IsNumber(r)||p.IsArray(e)&&p.IsNumber(r)?ce(e,n):p.IsObject(e)?(()=>{for(let i of Object.getOwnPropertyNames(e.properties))if(nf(n,e.properties[i])===h.False)return h.False;return h.True})():h.False}function Kb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?ce(Os(e),Os(t)):h.False}function $b(e,t){let r=p.IsRegExp(e)?Pt():e,n=p.IsRegExp(t)?Pt():t;return ce(r,n)}function af(e,t){return p.IsLiteral(e)&&ze.IsString(e.const)||p.IsString(e)?h.True:h.False}function Wb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsString(t)?h.True:h.False}function zb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsSymbol(t)?h.True:h.False}function Xb(e,t){return p.IsTemplateLiteral(e)?ce(rn(e),t):p.IsTemplateLiteral(t)?ce(e,rn(t)):Cn("Invalid fallthrough for TemplateLiteral")}function Qb(e,t){return p.IsArray(t)&&e.items!==void 0&&e.items.every(r=>ce(r,t.items)===h.True)}function Yb(e,t){return p.IsNever(e)?h.True:p.IsUnknown(e)?h.False:p.IsAny(e)?h.Union:h.False}function Zb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)&&Pa(t)||p.IsArray(t)&&Qb(e,t)?h.True:p.IsTuple(t)?ze.IsUndefined(e.items)&&!ze.IsUndefined(t.items)||!ze.IsUndefined(e.items)&&ze.IsUndefined(t.items)?h.False:ze.IsUndefined(e.items)&&!ze.IsUndefined(t.items)||e.items.every((r,n)=>ce(r,t.items[n])===h.True)?h.True:h.False:h.False}function Jb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsUint8Array(t)?h.True:h.False}function eE(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsVoid(t)?nE(e,t):p.IsUndefined(t)?h.True:h.False}function Ds(e,t){return t.anyOf.some(r=>ce(e,r)===h.True)?h.True:h.False}function tE(e,t){return e.anyOf.every(r=>ce(r,t)===h.True)?h.True:h.False}function of(e,t){return h.True}function rE(e,t){return p.IsNever(t)?tf(e,t):p.IsIntersect(t)?Fa(e,t):p.IsUnion(t)?Ds(e,t):p.IsAny(t)?Ls(e,t):p.IsString(t)?af(e,t):p.IsNumber(t)?rf(e,t):p.IsInteger(t)?ef(e,t):p.IsBoolean(t)?J0(e,t):p.IsArray(t)?Tb(e,t):p.IsTuple(t)?Yb(e,t):p.IsObject(t)?Ye(e,t):p.IsUnknown(t)?h.True:h.False}function nE(e,t){return p.IsUndefined(e)||p.IsUndefined(e)?h.True:h.False}function iE(e,t){return p.IsIntersect(t)?Fa(e,t):p.IsUnion(t)?Ds(e,t):p.IsUnknown(t)?of(e,t):p.IsAny(t)?Ls(e,t):p.IsObject(t)?Ye(e,t):p.IsVoid(t)?h.True:h.False}function ce(e,t){return p.IsTemplateLiteral(e)||p.IsTemplateLiteral(t)?Xb(e,t):p.IsRegExp(e)||p.IsRegExp(t)?$b(e,t):p.IsNot(e)||p.IsNot(t)?kb(e,t):p.IsAny(e)?yb(e,t):p.IsArray(e)?_b(e,t):p.IsBigInt(e)?wb(e,t):p.IsBoolean(e)?Sb(e,t):p.IsAsyncIterator(e)?Ib(e,t):p.IsConstructor(e)?vb(e,t):p.IsDate(e)?Nb(e,t):p.IsFunction(e)?Ab(e,t):p.IsInteger(e)?Cb(e,t):p.IsIntersect(e)?Rb(e,t):p.IsIterator(e)?Ob(e,t):p.IsLiteral(e)?Lb(e,t):p.IsNever(e)?Db(e,t):p.IsNull(e)?Mb(e,t):p.IsNumber(e)?Fb(e,t):p.IsObject(e)?Vb(e,t):p.IsRecord(e)?Kb(e,t):p.IsString(e)?Wb(e,t):p.IsSymbol(e)?zb(e,t):p.IsTuple(e)?Zb(e,t):p.IsPromise(e)?Gb(e,t):p.IsUint8Array(e)?Jb(e,t):p.IsUndefined(e)?eE(e,t):p.IsUnion(e)?tE(e,t):p.IsUnknown(e)?rE(e,t):p.IsVoid(e)?iE(e,t):Cn(`Unknown left type operand '${e[y]}'`)}function Mr(e,t){return ce(e,t)}function aE(e,t,r,n,i){let s={};for(let c of globalThis.Object.getOwnPropertyNames(e))s[c]=Rn(e[c],t,r,n,me(i));return s}function oE(e,t,r,n,i){return aE(e.properties,t,r,n,i)}function sf(e,t,r,n,i){let s=oE(e,t,r,n,i);return $(s)}function sE(e,t,r,n){let i=Mr(e,t);return i===h.Union?ee([r,n]):i===h.True?r:n}function Rn(e,t,r,n,i){return he(e)?sf(e,t,r,n,i):ft(e)?m(cf(e,t,r,n,i)):m(sE(e,t,r,n),i)}function cE(e,t,r,n,i){return{[e]:Rn(Q(e),t,r,n,me(i))}}function uE(e,t,r,n,i){return e.reduce((s,c)=>({...s,...cE(c,t,r,n,i)}),{})}function lE(e,t,r,n,i){return uE(e.keys,t,r,n,i)}function cf(e,t,r,n,i){let s=lE(e,t,r,n,i);return $(s)}function uf(e,t){return On(rn(e),t)}function fE(e,t){let r=e.filter(n=>Mr(n,t)===h.False);return r.length===1?r[0]:ee(r)}function On(e,t,r={}){return pt(e)?m(uf(e,t),r):he(e)?m(lf(e,t),r):m(V(e)?fE(e.anyOf,t):Mr(e,t)!==h.False?G():e,r)}function pE(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=On(e[n],t);return r}function dE(e,t){return pE(e.properties,t)}function lf(e,t){let r=dE(e,t);return $(r)}function ff(e,t){return Ln(rn(e),t)}function xE(e,t){let r=e.filter(n=>Mr(n,t)!==h.False);return r.length===1?r[0]:ee(r)}function Ln(e,t,r){return pt(e)?m(ff(e,t),r):he(e)?m(pf(e,t),r):m(V(e)?xE(e.anyOf,t):Mr(e,t)!==h.False?e:G(),r)}function mE(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ln(e[n],t);return r}function hE(e,t){return mE(e.properties,t)}function pf(e,t){let r=hE(e,t);return $(r)}function df(e,t){return Dt(e)?m(e.returns,t):G(t)}function qa(e){return at(Xe(e))}function nn(e,t,r){return m({[y]:"Record",type:"object",patternProperties:{[e]:t}},r)}function ks(e,t,r){let n={};for(let i of e)n[i]=t;return se(n,{...r,[yt]:"Record"})}function gE(e,t,r){return A0(e)?ks(it(e),t,r):nn(e.pattern,t,r)}function bE(e,t,r){return ks(it(ee(e)),t,r)}function EE(e,t,r){return ks([e.toString()],t,r)}function yE(e,t,r){return nn(e.source,t,r)}function TE(e,t,r){let n=Re(e.pattern)?Or:e.pattern;return nn(n,t,r)}function _E(e,t,r){return nn(Or,t,r)}function IE(e,t,r){return nn(y0,t,r)}function wE(e,t,r){return se({true:t,false:t},r)}function SE(e,t,r){return nn(Rr,t,r)}function vE(e,t,r){return nn(Rr,t,r)}function Ha(e,t,r={}){return V(e)?bE(e.anyOf,t,r):pt(e)?gE(e,t,r):lt(e)?EE(e.const,t,r):sr(e)?wE(e,t,r):Mt(e)?SE(e,t,r):Ft(e)?vE(e,t,r):ds(e)?yE(e,t,r):cr(e)?TE(e,t,r):fs(e)?_E(e,t,r):Ar(e)?IE(e,t,r):G(r)}function Ua(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function xf(e){let t=Ua(e);return t===Or?Pt():t===Rr?Tt():Pt({pattern:t})}function Ba(e){return e.patternProperties[Ua(e)]}function NE(e,t){return t.parameters=wi(e,t.parameters),t.returns=qt(e,t.returns),t}function AE(e,t){return t.parameters=wi(e,t.parameters),t.returns=qt(e,t.returns),t}function CE(e,t){return t.allOf=wi(e,t.allOf),t}function RE(e,t){return t.anyOf=wi(e,t.anyOf),t}function OE(e,t){return Re(t.items)||(t.items=wi(e,t.items)),t}function LE(e,t){return t.items=qt(e,t.items),t}function DE(e,t){return t.items=qt(e,t.items),t}function kE(e,t){return t.items=qt(e,t.items),t}function ME(e,t){return t.item=qt(e,t.item),t}function FE(e,t){let r=UE(e,t.properties);return{...t,...se(r)}}function PE(e,t){let r=qt(e,xf(t)),n=qt(e,Ba(t)),i=Ha(r,n);return{...t,...i}}function qE(e,t){return t.index in e?e[t.index]:kr()}function HE(e,t){let r=En(t),n=nt(t),i=qt(e,t);return r&&n?qa(i):r&&!n?at(i):!r&&n?Xe(i):i}function UE(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:HE(e,t[n])}),{})}function wi(e,t){return t.map(r=>qt(e,r))}function qt(e,t){return Dt(t)?NE(e,t):kt(t)?AE(e,t):Ee(t)?CE(e,t):V(t)?RE(e,t):dt(t)?OE(e,t):Ot(t)?LE(e,t):Qr(t)?DE(e,t):Zr(t)?kE(e,t):Jr(t)?ME(e,t):Oe(t)?FE(e,t):en(t)?PE(e,t):ps(t)?qE(e,t):t}function mf(e,t){return qt(t,bn(e))}function hf(e){return m({[y]:"Integer",type:"integer"},e)}function BE(e,t,r){return{[e]:Ht(Q(e),t,me(r))}}function jE(e,t,r){return e.reduce((i,s)=>({...i,...BE(s,t,r)}),{})}function VE(e,t,r){return jE(e.keys,t,r)}function gf(e,t,r){let n=VE(e,t,r);return $(n)}function GE(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function KE(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function $E(e){return e.toUpperCase()}function WE(e){return e.toLowerCase()}function zE(e,t,r){let n=wn(e.pattern);if(!tn(n))return{...e,pattern:bf(e.pattern,t)};let c=[...yi(n)].map(T=>Q(T)),x=Ef(c,t),g=ee(x);return Na([g],r)}function bf(e,t){return typeof e=="string"?t==="Uncapitalize"?GE(e):t==="Capitalize"?KE(e):t==="Uppercase"?$E(e):t==="Lowercase"?WE(e):e:e.toString()}function Ef(e,t){return e.map(r=>Ht(r,t))}function Ht(e,t,r={}){return ft(e)?gf(e,t,r):pt(e)?zE(e,t,r):V(e)?ee(Ef(e.anyOf,t),r):lt(e)?Q(bf(e.const,t),r):m(e,r)}function yf(e,t={}){return Ht(e,"Capitalize",t)}function Tf(e,t={}){return Ht(e,"Lowercase",t)}function _f(e,t={}){return Ht(e,"Uncapitalize",t)}function If(e,t={}){return Ht(e,"Uppercase",t)}function XE(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Fr(e[i],t,me(r));return n}function QE(e,t,r){return XE(e.properties,t,r)}function wf(e,t,r){let n=QE(e,t,r);return $(n)}function YE(e,t){return e.map(r=>Ms(r,t))}function ZE(e,t){return e.map(r=>Ms(r,t))}function JE(e,t){let{[t]:r,...n}=e;return n}function ey(e,t){return t.reduce((r,n)=>JE(r,n),e)}function ty(e,t,r){let n=ye(e,[ke,"$id","required","properties"]),i=ey(r,t);return se(i,n)}function ry(e){let t=e.reduce((r,n)=>_a(n)?[...r,Q(n)]:r,[]);return ee(t)}function Ms(e,t){return Ee(e)?Qe(YE(e.allOf,t)):V(e)?ee(ZE(e.anyOf,t)):Oe(e)?ty(e,t,e.properties):se({})}function Fr(e,t,r){let n=Ce(t)?ry(t):t,i=xt(t)?it(t):t,s=we(e),c=we(t);return he(e)?wf(e,i,r):ft(t)?Sf(e,t,r):s&&c?xe("Omit",[e,n],r):!s&&c?xe("Omit",[e,n],r):s&&!c?xe("Omit",[e,n],r):m({...Ms(e,i),...r})}function ny(e,t,r){return{[t]:Fr(e,[t],me(r))}}function iy(e,t,r){return t.reduce((n,i)=>({...n,...ny(e,i,r)}),{})}function ay(e,t,r){return iy(e,t.keys,r)}function Sf(e,t,r){let n=ay(e,t,r);return $(n)}function oy(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Pr(e[i],t,me(r));return n}function sy(e,t,r){return oy(e.properties,t,r)}function vf(e,t,r){let n=sy(e,t,r);return $(n)}function cy(e,t){return e.map(r=>Fs(r,t))}function uy(e,t){return e.map(r=>Fs(r,t))}function ly(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}function fy(e,t,r){let n=ye(e,[ke,"$id","required","properties"]),i=ly(r,t);return se(i,n)}function py(e){let t=e.reduce((r,n)=>_a(n)?[...r,Q(n)]:r,[]);return ee(t)}function Fs(e,t){return Ee(e)?Qe(cy(e.allOf,t)):V(e)?ee(uy(e.anyOf,t)):Oe(e)?fy(e,t,e.properties):se({})}function Pr(e,t,r){let n=Ce(t)?py(t):t,i=xt(t)?it(t):t,s=we(e),c=we(t);return he(e)?vf(e,i,r):ft(t)?Nf(e,t,r):s&&c?xe("Pick",[e,n],r):!s&&c?xe("Pick",[e,n],r):s&&!c?xe("Pick",[e,n],r):m({...Fs(e,i),...r})}function dy(e,t,r){return{[t]:Pr(e,[t],me(r))}}function xy(e,t,r){return t.reduce((n,i)=>({...n,...dy(e,i,r)}),{})}function my(e,t,r){return xy(e,t.keys,r)}function Nf(e,t,r){let n=my(e,t,r);return $(n)}function hy(e,t){return xe("Partial",[xe(e,t)])}function gy(e){return xe("Partial",[Xt(e)])}function by(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Xe(e[r]);return t}function Ey(e,t){let r=ye(e,[ke,"$id","required","properties"]),n=by(t);return se(n,r)}function Af(e){return e.map(t=>Cf(t))}function Cf(e){return Lt(e)?hy(e.target,e.parameters):we(e)?gy(e.$ref):Ee(e)?Qe(Af(e.allOf)):V(e)?ee(Af(e.anyOf)):Oe(e)?Ey(e,e.properties):Yr(e)||sr(e)||Mt(e)||lt(e)||pi(e)||Ft(e)||cr(e)||di(e)||xi(e)?e:se({})}function Dn(e,t){return he(e)?Rf(e,t):m({...Cf(e),...t})}function yy(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Dn(e[n],me(t));return r}function Ty(e,t){return yy(e.properties,t)}function Rf(e,t){let r=Ty(e,t);return $(r)}function _y(e,t){return xe("Required",[xe(e,t)])}function Iy(e){return xe("Required",[Xt(e)])}function wy(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=ye(e[r],[Ge]);return t}function Sy(e,t){let r=ye(e,[ke,"$id","required","properties"]),n=wy(t);return se(n,r)}function Of(e){return e.map(t=>Lf(t))}function Lf(e){return Lt(e)?_y(e.target,e.parameters):we(e)?Iy(e.$ref):Ee(e)?Qe(Of(e.allOf)):V(e)?ee(Of(e.anyOf)):Oe(e)?Sy(e,e.properties):Yr(e)||sr(e)||Mt(e)||lt(e)||pi(e)||Ft(e)||cr(e)||di(e)||xi(e)?e:se({})}function kn(e,t){return he(e)?Df(e,t):m({...Lf(e),...t})}function vy(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=kn(e[n],t);return r}function Ny(e,t){return vy(e.properties,t)}function Df(e,t){let r=Ny(e,t);return $(r)}function Ay(e,t){return t.map(r=>we(r)?Ps(e,r.$ref):mt(e,r))}function Ps(e,t){return t in e?we(e[t])?Ps(e,e[t].$ref):mt(e,e[t]):G()}function Cy(e){return Nn(e[0])}function Ry(e){return Dr(e[0],e[1])}function Oy(e){return An(e[0])}function Ly(e){return Dn(e[0])}function Dy(e){return Fr(e[0],e[1])}function ky(e){return Pr(e[0],e[1])}function My(e){return kn(e[0])}function Fy(e,t,r){let n=Ay(e,r);return t==="Awaited"?Cy(n):t==="Index"?Ry(n):t==="KeyOf"?Oy(n):t==="Partial"?Ly(n):t==="Omit"?Dy(n):t==="Pick"?ky(n):t==="Required"?My(n):G()}function Py(e,t){return yn(mt(e,t))}function qy(e,t){return Tn(mt(e,t))}function Hy(e,t,r){return _n(Si(e,t),mt(e,r))}function Uy(e,t,r){return Wt(Si(e,t),mt(e,r))}function By(e,t){return Qe(Si(e,t))}function jy(e,t){return vn(mt(e,t))}function Vy(e,t){return se(globalThis.Object.keys(t).reduce((r,n)=>({...r,[n]:mt(e,t[n])}),{}))}function Gy(e,t){let[r,n]=[mt(e,Ba(t)),Ua(t)],i=bn(t);return i.patternProperties[n]=r,i}function Ky(e,t){return we(t)?{...Ps(e,t.$ref),[ke]:t[ke]}:t}function $y(e,t){return _t(Si(e,t))}function Wy(e,t){return ee(Si(e,t))}function Si(e,t){return t.map(r=>mt(e,r))}function mt(e,t){return nt(t)?m(mt(e,ye(t,[Ge])),t):En(t)?m(mt(e,ye(t,[Rt])),t):Cr(t)?m(Ky(e,t),t):Ot(t)?m(Py(e,t.items),t):Qr(t)?m(qy(e,t.items),t):Lt(t)?m(Fy(e,t.target,t.parameters)):Dt(t)?m(Hy(e,t.parameters,t.returns),t):kt(t)?m(Uy(e,t.parameters,t.returns),t):Ee(t)?m(By(e,t.allOf),t):Zr(t)?m(jy(e,t.items),t):Oe(t)?m(Vy(e,t.properties),t):en(t)?m(Gy(e,t)):dt(t)?m($y(e,t.items||[]),t):V(t)?m(Wy(e,t.anyOf),t):t}function zy(e,t){return t in e?mt(e,e[t]):G()}function kf(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:zy(e,r)}),{})}var qs=class{constructor(t){let r=kf(t),n=this.WithIdentifiers(r);this.$defs=n}Import(t,r){let n={...this.$defs,[t]:m(this.$defs[t],r)};return m({[y]:"Import",$defs:n,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:{...t[n],$id:n}}),{})}};function Mf(e){return new qs(e)}function Ff(e,t){return m({[y]:"Not",not:e},t)}function Pf(e,t){return kt(e)?_t(e.parameters,t):G()}var Xy=0;function qf(e,t={}){Re(t.$id)&&(t.$id=`T${Xy++}`);let r=bn(e({[y]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,m({[yt]:"Recursive",...r},t)}function Hf(e,t){let r=le(e)?new globalThis.RegExp(e):e;return m({[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)}function Qy(e){return Ee(e)?e.allOf:V(e)?e.anyOf:dt(e)?e.items??[]:[]}function Uf(e){return Qy(e)}function Bf(e,t){return kt(e)?m(e.returns,t):G(t)}var Hs=class{constructor(t){this.schema=t}Decode(t){return new Us(this.schema,t)}},Us=class{constructor(t,r){this.schema=t,this.decode=r}EncodeTransform(t,r){let s={Encode:c=>r[ke].Encode(t(c)),Decode:c=>this.decode(r[ke].Decode(c))};return{...r,[ke]:s}}EncodeSchema(t,r){let n={Decode:this.decode,Encode:t};return{...r,[ke]:n}}Encode(t){return Cr(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};function jf(e){return new Hs(e)}function Vf(e={}){return m({[y]:e[y]??"Unsafe"},e)}function Gf(e){return m({[y]:"Void",type:"void"},e)}var Bs={};ts(Bs,{Any:()=>Lr,Argument:()=>S0,Array:()=>yn,AsyncIterator:()=>Tn,Awaited:()=>Nn,BigInt:()=>Sn,Boolean:()=>va,Capitalize:()=>yf,Composite:()=>K0,Const:()=>$0,Constructor:()=>_n,ConstructorParameters:()=>W0,Date:()=>Ra,Enum:()=>z0,Exclude:()=>On,Extends:()=>Rn,Extract:()=>Ln,Function:()=>Wt,Index:()=>Dr,InstanceType:()=>df,Instantiate:()=>mf,Integer:()=>hf,Intersect:()=>Qe,Iterator:()=>vn,KeyOf:()=>An,Literal:()=>Q,Lowercase:()=>Tf,Mapped:()=>H0,Module:()=>Mf,Never:()=>G,Not:()=>Ff,Null:()=>Oa,Number:()=>Tt,Object:()=>se,Omit:()=>Fr,Optional:()=>Xe,Parameters:()=>Pf,Partial:()=>Dn,Pick:()=>Pr,Promise:()=>Ca,Readonly:()=>at,ReadonlyOptional:()=>qa,Record:()=>Ha,Recursive:()=>qf,Ref:()=>Xt,RegExp:()=>Hf,Required:()=>kn,Rest:()=>Uf,ReturnType:()=>Bf,String:()=>Pt,Symbol:()=>La,TemplateLiteral:()=>Na,Transform:()=>jf,Tuple:()=>_t,Uint8Array:()=>ka,Uncapitalize:()=>_f,Undefined:()=>Da,Union:()=>ee,Unknown:()=>kr,Unsafe:()=>Vf,Uppercase:()=>If,Void:()=>Gf});var A=Bs;import*as gh from"node:path";var Kf=rs(yg(),1);import js from"node:process";import{PassThrough as Yy}from"node:stream";var Zy=js.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function Jy(){let e={};for(let t of Zy){let r=js.env[t];r!==void 0&&(r.startsWith("()")||(e[t]=r))}return e}var ja=class{constructor(t){this._stderrStream=null,this._serverParams=t,this._readBuffer=new xl({maxBufferSize:t.maxBufferSize}),(t.stderr==="pipe"||t.stderr==="overlapped")&&(this._stderrStream=new Yy)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,r)=>{this._process=(0,Kf.default)(this._serverParams.command,this._serverParams.args??[],{env:{...Jy(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:js.platform==="win32",cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{t()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{try{this._readBuffer.append(n),this.processReadBuffer()}catch(i){this.onerror?.(i),this.close().catch(()=>{})}}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){if(this._process){let t=this._process;this._process=void 0;let r=new Promise(n=>{t.once("close",()=>{n()})});try{t.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),t.exitCode===null){try{t.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(t.exitCode===null)try{t.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(t){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=ml(t);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};var Va=class e{constructor(){this._messageQueue=[]}static createLinkedPair(){let t=new e,r=new e;return t._otherTransport=r,r._otherTransport=t,[t,r]}async start(){for(;this._messageQueue.length>0;){let t=this._messageQueue.shift();this.onmessage?.(t.message,t.extra)}}async close(){let t=this._otherTransport;this._otherTransport=void 0,await t?.close(),this.onclose?.()}async send(t,r){if(!this._otherTransport)throw new Error("Not connected");this._otherTransport.onmessage?this._otherTransport.onmessage(t,{authInfo:r?.authInfo}):this._otherTransport._messageQueue.push({message:t,extra:{authInfo:r?.authInfo}})}};function Wf(e){return!!e&&e.startsWith("slack:")}function zf(e){return!!e&&e.startsWith("feishu:")}function Xf(e){return!!e&&e.startsWith("web:")}var eT=new Set(["image/png","image/jpeg","image/gif","image/webp"]);function tT(e){if(!e)return null;let t=e.split(";")[0]?.trim().toLowerCase();if(!t)return null;let r=t==="image/jpg"?"image/jpeg":t;return eT.has(r)?r:null}function $f(e,t){let r=tT(t);return!r||typeof e!="string"||e.length===0?null:{type:"image",data:e,mimeType:r}}function Qf(e){if(e.type==="text"&&typeof e.text=="string")return{type:"text",text:e.text};if(e.type==="image"){let t=$f(e.data,e.mimeType);if(t)return t;let r=typeof e.data=="string"?e.data.length:0;return{type:"text",text:`[Image: mimeType=${e.mimeType??"unknown"}, base64(${r} chars)]`}}if(e.type==="resource"&&e.resource){let t=e.resource;if(typeof t.text=="string")return{type:"text",text:t.text};if(typeof t.blob=="string"){let r=$f(t.blob,t.mimeType);return r||{type:"text",text:`[Binary resource: uri=${t.uri??"unknown"}, mimeType=${t.mimeType??"unknown"}]`}}}return{type:"text",text:JSON.stringify(e)}}import{createHash as rT}from"node:crypto";var Yf=/[^A-Za-z0-9_-]+/g,nT=/[^a-z0-9]+/g,Zf=64,iT=10,Jf="_",ep=/^[0-9A-Za-z][0-9A-Za-z._-]{0,63}$/;function aT(e){return rT("sha256").update(e,"utf8").digest("hex").slice(0,iT)}function Ga(e,t,r){return e.replace(t,r).replace(new RegExp(`${r}+`,"g"),r)}function vi(e,t){return e.replace(new RegExp(`^${t}+|${t}+$`,"g"),"")}function Vs(e,t,r){let n=`${r}${aT(t)}`,i=Zf-n.length;return`${e.slice(0,Math.max(1,i))}${n}`}function tp(e,t){return e!==t||e.length>Zf}function rp(e,t="plugin"){let r=vi(Ga(e,Yf,"_"),"_")||t;return tp(r,e)?Vs(r,e,Jf):r}function np(e,t="plugin"){let r=e.map(i=>vi(Ga(i,Yf,"_"),"_")||"part"),n=vi([t,...r].join("_"),"_")||t;return Vs(n,JSON.stringify({prefix:t,parts:[...e]}),Jf)}function oT(e){let t=vi(Ga(e.toLowerCase(),nT,"-"),"-")||"plugin";return/^[a-z]/.test(t)?t:`plugin-${t}`}function tF(e){let t=oT(e);return tp(t,e)?Vs(t,e,"-"):t}function sT(e){let t=vi(Ga(e.toLowerCase(),/[^a-z0-9._-]+/g,"-"),"-");return ep.test(t)?t:void 0}function rF(e){let t=e?.trim();if(t)return ep.test(t)?t:sT(t)}function Gs(e){let t=e.CORTEX_PI_ALLOWED_TOOLS?.trim();return t?new Set(t.split(",").map(r=>r.trim()).filter(Boolean)):null}function Ka(e){let t=Gs(e);return e.CORTEX_PI_SUBAGENT!=="1"&&(t===null||t.has("Agent"))}var cT=Gu("pi-mcp-bridge"),ap={stdio:e=>new ja(e),streamableHttp:(e,t)=>new hl(e,t),sse:(e,t)=>new gl(e,t)};function uT(e){return{...e,SLACK_BOT_TOKEN:e.SLACK_BOT_TOKEN||"",SLACK_CHANNEL:e.SLACK_CHANNEL||"",FEISHU_CHANNEL:e.FEISHU_CHANNEL||""}}function lT(e,t){let r=uT(t),n=ns(t[ha]),i=$u(n?[...n]:void 0,e);return r[ha]=JSON.stringify(i),r}function op(e,t){return{name:e,source:t,handle:null,registered:!1,registeredToolNames:new Set}}function fT(e){let t=e.SLACK_CHANNEL;return[[!0,"cortex-ext"],[Wf(t),"cortex-slack"],[zf(t),"cortex-feishu"],[Xf(t),"cortex-web"]].filter(([n])=>n).map(([,n])=>n)}function pT(e,t){let r=[],n=new Set,i=e.slice().sort((s,c)=>s.name.localeCompare(c.name));for(let s of i){let c=mT(s.name);if(n.has(c)){t(`Duplicate MCP server state name: ${c}`);continue}n.add(c),r.push(op(c,{kind:"plugin",config:s}))}return r}function dT(e,t=[],r=()=>{}){let n=e[cl];if(n==="none")return ns(e[ha]),[];let i=["cortex-core"];e.CORTEX_PI_SUBAGENT!=="1"&&(n==="direct"&&e[ul]==="1"&&i.push("cortex-interaction-bridge"),n==="direct"&&e[ll]==="1"&&i.push("cortex-workers"),n==="direct"&&e[fl]==="1"&&i.push("cortex-worker-report"),i.push(...fT(e)));let s=[op("core",{kind:"bundled",bundles:i,env:lT(i,e)})];return e.CORTEX_PI_SUBAGENT!=="1"&&s.push(...pT(t,r)),s}function $a(e,t,r){let n=r instanceof Error?r.message:String(r);return new Error(`MCP server ${e} ${t} failed: ${n}`,{cause:r})}function xT(e){let t=e instanceof Error?e.message:String(e);cT.warn(`MCP setup failed; will retry on next turn: ${t}`)}function mT(e){return rp(`plugin_server_${e}`,"plugin_server")}function hT(e,t){return np([e,t],"plugin_tool")}function gT(e,t){return e.source.kind==="bundled"?t:hT(e.name,t)}var bT=bl;function ET(e,t=ap,r=process.env){if(e.type==="stdio")return t.stdio({command:e.command,args:[...e.args],env:{...r,...e.env},cwd:e.cwd,stderr:"pipe"});let n={...e.headers},i=bT(n);return e.type==="streamable-http"?t.streamableHttp(new URL(e.url),{requestInit:{headers:n},fetch:i}):t.sse(new URL(e.url),{fetch:i,eventSourceInit:{fetch:i},requestInit:{headers:n}})}async function yT(e,t,r,n){let i=await n(t,r),[s,c]=Va.createLinkedPair(),x=new is({name:`pi-mcp-bridge-${e.name}`,version:"1.0.0"});await i.connect(c);try{await x.connect(s)}catch(g){try{await i.close()}catch{}throw g}return{client:x,transport:{close:async()=>{try{await s.close()}finally{await i.close()}}}}}async function TT(e,t,r){let n=ET(t,ap,r),i=new is({name:`pi-mcp-bridge-${e.name}`,version:"1.0.0"});try{return await i.connect(n),{client:i,transport:n}}catch(s){try{await n.close()}catch{}throw s}}function sp(e,t=[],r){return{env:e,pluginServers:t,spawnClient:n=>n.source.kind!=="bundled"?TT(n,n.source.config,e):r?yT(n,n.source.bundles,n.source.env,r):Promise.reject(new Error("Cortex MCP bundles are unavailable in this session.")),reportFailure:xT}}var Ks=class{pi;deps;states=null;registeredNames=new Map;constructor(t,r){this.pi=t,this.deps=r}install(){this.pi.on("before_agent_start",async()=>this.beforeAgentStart()),this.pi.on("session_shutdown",async()=>this.shutdown())}resolveStates(){return this.states?this.states:(this.states=dT(this.deps.env,this.deps.pluginServers??[],t=>this.deps.reportFailure(new Error(t))),this.states)}resolveStatesSafely(){try{return this.resolveStates()}catch(t){return this.deps.reportFailure(t),null}}async discoverState(t){if(t.registered)return{state:t,status:"skip"};try{await this.connect(t);let r=await this.listTools(t);return{state:t,status:"ready",tools:r}}catch(r){return{state:t,status:"failed",failure:r}}}finalizeDiscovery(t){if(t.status!=="skip"){if(t.status==="failed"){this.deps.reportFailure(t.failure);return}try{this.registerDiscoveredTools(t.state,t.tools)}catch(r){this.deps.reportFailure(r)}}}async beforeAgentStart(){let t=this.resolveStatesSafely();if(!t)return;let r=t.map(n=>this.discoverState(n));for(let n of r)this.finalizeDiscovery(await n)}async connect(t){if(!t.handle)try{t.handle=await this.deps.spawnClient(t)}catch(r){throw $a(t.name,"connect",r)}}async listTools(t){if(!t.handle)throw new Error(`MCP server ${t.name} is not connected`);try{let{tools:r}=await t.handle.client.listTools();return r}catch(r){throw $a(t.name,"list tools",r)}}discoveredTools(t,r){let n=new Map;for(let i of r){let s=gT(t,i.name);if(n.has(s))throw $a(t.name,"register tools",new Error(`Duplicate MCP tool name: ${s}`));n.set(s,i)}return n}toolOwnedElsewhere(t,r){let n=this.registeredNames.get(r);return!!(n&&n!==t.name)}registerNewTool(t,r,n){try{this.registerTool(t,r,n)}catch(i){throw $a(t.name,"register tools",i)}t.registeredToolNames.add(r),this.registeredNames.set(r,t.name)}registerDiscoveredTool(t,r,n){this.toolOwnedElsewhere(t,r)||t.registeredToolNames.has(r)||this.registerNewTool(t,r,n)}registerDiscoveredTools(t,r){for(let[n,i]of this.discoveredTools(t,r))this.registerDiscoveredTool(t,n,i);t.registered=!0}toolDescription(t,r){let n=r.description??"";return t.source.kind==="bundled"&&r.name==="worker_spawn"&&Ka(this.deps.env)?il(n):n}registerTool(t,r,n){if(!t.handle)throw new Error(`MCP server ${t.name} is not connected`);let i=A.Unsafe(n.inputSchema),s=t.handle;this.pi.registerTool({name:r,label:r,description:this.toolDescription(t,n),parameters:i,async execute(c,x,g){let T=await s.client.callTool({name:n.name,arguments:x},void 0,{...g?{signal:g}:{},timeout:183e4,maxTotalTimeout:183e4}),I=T.content.map(Qf);if(T.isError){let K=I.map(pe=>pe.type==="text"?pe.text:"").filter(Boolean).join(`
88
- `);throw new Error(K||`${r} failed`)}return{content:I,details:void 0}}})}async shutdown(){let t=this.states??[];this.registeredNames.clear();for(let r of t){if(r.registered=!1,r.registeredToolNames.clear(),r.handle)try{await r.handle.transport.close()}catch{}r.handle=null}}};async function cp(e,t){new Ks(e,t).install()}var _T="openai-codex",IT=["primary","secondary"];function wT(e){let t=new Map;for(let[r,n]of Object.entries(e))t.set(r.toLowerCase(),n);return t}function Wa(e,t){let r=e.get(t);if(r===void 0||r.trim()==="")return null;let n=Number(r);return Number.isFinite(n)?n:null}function ST(e,t,r){let n=Wa(e,`x-codex-${t}-reset-at`);if(n!==null&&n>0)return n;let i=Wa(e,`x-codex-${t}-reset-after-seconds`);return i===null?null:Math.floor(r/1e3)+i}function vT(e,t,r){let n=Wa(e,`x-codex-${t}-window-minutes`);if(n===null||n<=0)return null;let i=Wa(e,`x-codex-${t}-used-percent`);if(i===null||i<0||i>100)return null;let s=ST(e,t,r);return s===null?null:{type:`codex_${t}`,utilization:i/100,resetsAt:s}}function up(e,t){let r=wT(e),n=[];for(let i of IT){let s=vT(r,i,t.nowMs);s&&n.push(s)}return n.length===0?null:{provider:_T,planType:r.get("x-codex-plan-type")??null,windows:n}}function NT(e){let t=e?.headers;return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function lp(e){return t=>{t.on("after_provider_response",r=>{try{let n=NT(r);if(!n)return;let i=up(n,{nowMs:Date.now()});i&&e(i)}catch{}})}}function za(e){return e!==null&&typeof e=="object"?e:void 0}function AT(e){let t=za(e);if(t?.type!=="tool_result"||!Array.isArray(t.content))return;let r=[],n=[];for(let i of t.content)(za(i)?.type==="image"?r:n).push(i);r.length&&(t.content=[...r,...n])}function fp(e){e.on("before_provider_request",(t,r)=>{if(r.model?.api!=="anthropic-messages")return;let n=za(t.payload)?.messages;if(Array.isArray(n)){for(let i of n){let s=za(i)?.content;Array.isArray(s)&&s.forEach(AT)}return t.payload}})}function Mn(e){return e.stopReason==="error"||e.stopReason==="aborted"}function pp(e){return e.stopReason==="aborted"?"killed":Mn(e)?"failed":"completed"}function dp(e){return Mn(e)?e.errorMessage||e.output||"(no output)":e.output||"(no output)"}function xp(e,t){return{description:e.description,prompt:e.prompt,subagentType:e.subagent_type,output:"",usage:yl(),backend:e.backend,stopReason:"error",errorMessage:t instanceof Error?t.message:String(t)}}async function RT(e,t,r){let n=new Array(e.length),i=0,s=async()=>{for(;;){let x=i++;if(x>=e.length)return;n[x]=await r(e[x],x)}},c=Array.from({length:Math.min(t,e.length)},s);return await Promise.all(c),n}async function OT(e,t,r,n){return RT(e,8,(i,s)=>t(i,s,r,n?.forChild(s,i)))}async function LT(e,t,r,n){let i=[],s="",c=0;for(let x of e){let g={...x,prompt:x.prompt.replace(/\{previous\}/g,s)},T=await t(g,c,r,n?.forChild(c,g));if(c++,i.push(T),Mn(T))break;s=T.output}return i}function DT(e){let t=e.filter(n=>!Mn(n)).length,r=e.map(n=>{let i=Mn(n)?"failed":"completed";return`### [${n.description}] ${i}
89
-
90
- ${dp(n)}`});return`Parallel: ${t}/${e.length} succeeded
91
-
92
- ${r.join(`
93
-
94
- ---
95
-
96
- `)}`}function $s(e,t){let r={mode:e,results:t,usage:Tl(t)};if(e==="parallel")return{content:[{type:"text",text:DT(t)}],details:r};let n=t.at(-1);return{content:[{type:"text",text:(n&&Mn(n)?"Agent failed: ":"")+(n?dp(n):"(no output)")}],details:r}}async function mp(e,t,r,n){if(e.mode==="parallel")return $s("parallel",await OT(e.tasks,t,r,n));if(e.mode==="chain")return $s("chain",await LT(e.tasks,t,r,n));let i=e.tasks[0],s=await t(i,0,r,n?.forChild(0,i));return $s("single",[s])}import{existsSync as kT}from"node:fs";function hp(e,t){return{...e,tasks:e.tasks.map(r=>MT(r,t))}}function MT(e,t){let r=(e.files??[]).map(i=>{let s=wl(i,t.cwd);if(!kT(s))throw new Error(`Agent task file not found: ${i}`);return s});return e.clean===!0||r.length>0||t.parentWorkspace!==null?{...e,clean:!0,...r.length>0?{files:r}:{}}:e}function FT(e){return e.replace(/[^A-Za-z0-9_-]/g,"").slice(0,32)||"run"}async function gp(e,t){if(!e.clean)return null;let r=t.parentWorkspace??_l(`sub-${FT(t.runId)}-${t.index}`);for(let n of e.files??[])await Il(r,n);return r}function bp(e,t){if(!t)return e;let r=`Workspace: ${t}`;return{...e,output:e.output?`${e.output}
97
-
98
- ${r}`:r}}function yp(e){return{model:A.Optional(A.String({description:e.model})),backend:A.Optional(A.Union([A.Literal("claude"),A.Literal("pi")],{description:e.backend})),clean:A.Optional(A.Boolean({description:Qu})),files:A.Optional(A.Array(A.String(),{description:Yu}))}}function PT(e){let t=A.Object({description:A.String({description:"Short description of the delegated task."}),prompt:A.String({description:"Complete task prompt for the subagent."}),subagent_type:A.String({description:e.subagentType}),...yp(e)});return A.Object({description:A.Optional(A.String({description:"Short description for single mode."})),prompt:A.Optional(A.String({description:"Complete prompt for single mode."})),subagent_type:A.Optional(A.String({description:e.subagentTypeSingle})),...yp(e),parallel:A.Optional(A.Array(t,{minItems:1,maxItems:8,description:"Tasks to execute concurrently."})),chain:A.Optional(A.Array(t,{minItems:1,maxItems:8,description:"Tasks to execute sequentially; {previous} inserts the prior output."})),run_in_background:A.Optional(A.Boolean({description:"Return agent_id immediately; results arrive later. Default: wait for completion."}))})}var qT=A.Object({agent_id:A.String({description:"The agent_id returned when the subagent was started."})});function HT(e,t,r){if(!e.onUsage||!t.provider||t.usage.turns===0)return;let n=e.account&&e.homeAgentDir&&t.provider===r;try{e.onUsage({provider:t.provider,model:t.model??"",usage:t.usage,description:t.description,...n?{connection:e.account}:{}})}catch{}}function UT(e,t,r){let n=t.model?.provider??null,i=r.provider??n;return e.homeAgentDir&&i!==n?e.homeAgentDir:e.agentDir}function BT(e){return e.model?{id:e.model.id,provider:e.model.provider}:null}function Tp(e,t){return e.backend??t.backend??"pi"}function jT(e,t,r,n){return(i,s,c,x)=>{let g=ba(r,i.subagent_type),T=Tp(i,g),I=`${n}#${s}`,K=async()=>{let pe=i.clean?await gp(i,{parentWorkspace:e.parentWorkspace,runId:n,index:s}):null,f={cwd:pe??e.cwd,workspace:pe},Pe=ol(i,g,e.model&&{model:e.model.id,provider:e.model.provider}),ue=T==="pi"?await Sl({task:i,role:g,...f,agentDir:UT(t,e,Pe),parentEnv:t.parentEnv,model:Pe,createSession:t.createSession,childExtensions:t.childExtensions,signal:c,forward:x}):await GT(e,t,{task:i,role:g,backend:T,ref:I,...f},c);return bp(ue,pe)};return VT(t,{task:i,backend:T,ref:I,sessionProvider:e.model?.provider??null},c,K)}}async function VT(e,{task:t,backend:r,ref:n,sessionProvider:i},s,c){let x=g=>{try{e.onEvent?.(sl(n,t,r,g))}catch{}};try{let g=await c();return r==="pi"&&HT(e,g,i),x(s?.aborted?"killed":pp(g)),g}catch(g){if(x(s?.aborted?"killed":"failed"),s?.aborted)throw g;return xp(t,g)}}function GT(e,t,r,n){if(!t.runForeignSubagent)throw new Error(`Delegating to the ${r.backend} backend is unavailable in this session.`);let i=e.model;return t.runForeignSubagent({...r,parent:{backend:"pi",model:i?.id??null,provider:i?.provider??null,env:t.parentEnv},signal:n,onNotice:t.onEvent})}function Ws(e){return{content:[{type:"text",text:e}],details:void 0}}async function KT(e,t,r,n){if(!e.startBackgroundSubagent)throw new Error("run_in_background is unavailable in this session.");let{id:i}=await e.startBackgroundSubagent({invocation:t,toolCallId:n,bindNoticeSink:(s,c)=>({runChild:r({...e,onEvent:s,onUsage:c}),channel:as(n,s,t.mode==="chain")}),sessionId:e.parentEnv.CORTEX_SESSION_ID||null,conduit:e.parentEnv.SLACK_CHANNEL||e.parentEnv.FEISHU_CHANNEL||void 0,project:e.parentEnv.CORTEX_PROJECT||void 0});return Ws(`Agent ${i} started in the background. Its result will be delivered to you when it is ready. Stop it early with agent_stop("${i}").`)}function $T(e){return async(t,r,n,i,s)=>{e.ensureRoles();let c=e.parentEnv[pl]||null,x=hp(Zu(r),{cwd:s.cwd,parentWorkspace:c}),g=ga(e.rolesDir);for(let K of x.tasks)ba(g,K.subagent_type);let T={cwd:s.cwd,model:BT(s),parentWorkspace:c};al(e.checkModel,x.tasks,K=>Tp(K,ba(g,K.subagent_type)),T.model&&{backend:"pi",provider:T.model.provider,model:T.model.id});let I=K=>jT(T,K,g,t);return r.run_in_background?KT(e,x,I,t):mp(x,I(e),n,as(t,e.onEvent,x.mode==="chain"))}}function _p(e,t={}){let r=el(t);return{name:"agent",label:"Agent",description:Xu+r.catalog,parameters:PT(r),execute:$T(e)}}function Ip(e){let t=e.stopBackgroundSubagent;return t?{name:"agent_stop",label:"AgentStop",description:"Stop a subagent and discard its output; not for collecting results.",parameters:qT,async execute(r,n){let i=await t(n.agent_id);return Ws(i?`Agent ${n.agent_id} is now ${i}.`:`No such agent run: ${n.agent_id}.`)}}:null}var eh=rs(Gm(),1),th=rs(Ym(),1),Zm=5,rh=3e4,rS=5*1024*1024,Jm=1e5,nS=`
99
-
100
- [Content truncated: WebFetch size limit exceeded.]`,iS=new Set([301,302,303,307,308]),aS=["script","style","noscript","iframe"],oS="[Embedded image omitted]",sS=A.Object({url:A.String({description:"The HTTP or HTTPS URL to fetch."}),prompt:A.Optional(A.String({description:"Compatibility-only; ignored. Returns content without summarizing."}))});function nh(e){let t;try{t=new URL(e)}catch{throw new Error("WebFetch requires a valid URL.")}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Error("WebFetch only supports HTTP and HTTPS URLs.");return t}function cS(e){let t=new AbortController,r=!1,n=()=>t.abort(e?.reason);e?.aborted?n():e?.addEventListener("abort",n,{once:!0});let i=setTimeout(()=>{r=!0,t.abort()},rh);return{signal:t.signal,didTimeout:()=>r,dispose:()=>{clearTimeout(i),e?.removeEventListener("abort",n)}}}function ko(e){e.body?.cancel()?.catch(()=>{})}function uS(e,t){let r=e.headers.get("location");if(!r)throw new Error("WebFetch received a redirect without a Location header.");let n;try{n=new URL(r,t).toString()}catch{throw new Error(`WebFetch received an invalid redirect target: ${r}`)}return nh(n)}async function lS(e,t){let r=e;for(let n=0;;n+=1){let i=await fetch(r.toString(),{redirect:"manual",signal:t});if(!iS.has(i.status))return i;if(n>=Zm)throw ko(i),new Error(`WebFetch redirect limit exceeded (${Zm}).`);try{r=uS(i,r)}finally{ko(i)}}}function ih(e,t){throw ko(e),new Error(t)}function fS(e,t){let r=t.startsWith("text/")?"text":"binary";return ih(e,`WebFetch rejected unsupported ${r} content-type: ${t}.`)}function pS(e){let t=e.headers.get("content-type");if(!t)return ih(e,"WebFetch response is missing Content-Type.");let r=t.split(";",1)[0].trim().toLowerCase();if(r==="text/html")return"html";let n=r==="application/json"||r.startsWith("application/")&&r.endsWith("+json");return r==="text/plain"||n?"text":fS(e,r)}async function dS(e){let t=new TextDecoder,r="",n=0;for(;;){let{done:i,value:s}=await e.read();if(i)return{text:r+t.decode(),truncated:!1};let c=rS-n;if(s.byteLength>c)return r+=t.decode(s.subarray(0,c),{stream:!0})+t.decode(),await e.cancel().catch(()=>{}),{text:r,truncated:!0};r+=t.decode(s,{stream:!0}),n+=s.byteLength}}async function xS(e){if(!e.body)return{text:"",truncated:!1};let t=e.body.getReader();try{return await dS(t)}finally{t.releaseLock()}}function mS(e){let t=new eh.default({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});return t.use(th.gfm),t.remove([...aS]),t.addRule("embedded-image",{filter:r=>r.nodeName==="IMG"&&/^\s*data:/i.test(r.getAttribute("src")??""),replacement:()=>oS}),t.turndown(e)}function hS(e,t){let r=Array.from(e),n=r.length>Jm,i=n?r.slice(0,Jm).join(""):e;return t||n?i+nS:i}async function gS(e,t){let r=nh(e),n=cS(t);try{let i=await lS(r,n.signal);if(!i.ok)throw ko(i),new Error(`WebFetch HTTP ${i.status} ${i.statusText||"error"}.`);let s=pS(i),c=await xS(i),x=s==="html"?mS(c.text):c.text;return hS(x,c.truncated)}catch(i){throw n.didTimeout()?new Error(`WebFetch timed out after ${rh} ms.`):i}finally{n.dispose()}}var ah={name:"web_fetch",label:"WebFetch",description:"Fetch HTTP(S) content locally: HTML as Markdown, JSON/text unchanged. No summarization.",parameters:sS,async execute(e,t,r,n,i){return{content:[{type:"text",text:await gS(t.url,r)}],details:void 0}}};import{randomUUID as bS}from"node:crypto";var ES=3,yS="cortex-agent/pi-web-search",TS=new Set(["response.completed","response.done","response.incomplete"]),oh=new Set,_S=A.Object({query:A.String({description:"The search query to run."}),allowed_domains:A.Optional(A.Array(A.String({description:"Only include results from these domains."}))),blocked_domains:A.Optional(A.Array(A.String({description:"Exclude results from these domains."})))});function $i(e,t){return`${e.trim().replace(/\/+$/,"")}${t}`}function sh(e){return`${e.provider}:${e.api}`}function ch(e){return new Error(`WebSearch unavailable for model "${e.id}" (api: ${e.api}); its provider does not expose server-side search for this API.`)}function Wi(e,t,r){let n=new Headers(e.headers);for(let[i,s]of Object.entries(t.headers??{}))n.set(i,s);return n.has("accept")||n.set("accept",r),n.has("content-type")||n.set("content-type","application/json"),n.has("user-agent")||n.set("user-agent",yS),n}function Tu(e,t){return t.some(r=>e.has(r))}function IS(e,t){!t||Tu(e,["authorization","x-api-key","cf-aig-authorization"])||(t.startsWith("sk-ant-oat")?e.set("authorization",`Bearer ${t}`):e.set("x-api-key",t))}function uh(e,t){!t||Tu(e,["authorization","cf-aig-authorization"])||e.set("authorization",`Bearer ${t}`)}function wS(e,t){!t||Tu(e,["api-key","authorization"])||e.set("api-key",t)}function lh(e){let t=[`Search the web for: ${e.query}`,"Return a concise answer grounded in the search results and include source URLs."];return e.allowed_domains?.length&&t.push(`Only use these domains: ${e.allowed_domains.join(", ")}`),e.blocked_domains?.length&&t.push(`Do not use these domains: ${e.blocked_domains.join(", ")}`),t.join(`
101
- `)}function SS(e,t){return{type:"web_search_20250305",name:"web_search",max_uses:ES,...t&&e.allowed_domains?.length?{allowed_domains:e.allowed_domains}:{},...t&&e.blocked_domains?.length?{blocked_domains:e.blocked_domains}:{}}}function fh(e,t,r){return{model:e.id,max_tokens:e.maxTokens,messages:[{role:"user",content:lh(t)}],tools:[SS(t,r)]}}function vS(e,t,r,n){let i=Wi(e,t,"application/json");return IS(i,t.apiKey),i.has("anthropic-version")||i.set("anthropic-version","2023-06-01"),{url:$i(e.baseUrl,"/v1/messages"),init:{method:"POST",headers:i,body:JSON.stringify(fh(e,r,n))},responseType:"anthropic"}}function NS(e,t,r,n){let i=Wi(e,t,"application/json");return uh(i,t.apiKey),i.has("anthropic-version")||i.set("anthropic-version","2023-06-01"),{url:$i(e.baseUrl,"/anthropic/v1/messages"),init:{method:"POST",headers:i,body:JSON.stringify(fh(e,r,n))},responseType:"anthropic"}}function AS(){return{type:"web_search"}}function _u(e,t){return{model:e.id,input:[{role:"user",content:[{type:"input_text",text:lh(t)}]}],store:!1,stream:!0,tool_choice:"auto",tools:[AS()]}}function CS(e,t,r,n){let i=Wi(e,t,"text/event-stream");return uh(i,t.apiKey),{url:$i(e.baseUrl,"/responses"),init:{method:"POST",headers:i,body:JSON.stringify(_u(e,r))},responseType:"responses"}}function RS(e,t,r,n){let i=Wi(e,t,"text/event-stream");return wS(i,t.apiKey),{url:$i(e.baseUrl,"/responses"),init:{method:"POST",headers:i,body:JSON.stringify(_u(e,r))},responseType:"responses"}}function OS(e,t){if(t)return t;let n=(e.get("authorization")??"").replace(/^Bearer\s+/i,"");if(!n)throw new Error("WebSearch authentication did not provide a bearer token.");return n}function LS(e,t){let r=e.get("chatgpt-account-id");if(r)return r;let n=vl(t);if(n===null)throw new Error("WebSearch could not decode the Codex account token.");let i=Nl(n);if(!i)throw new Error("WebSearch could not find an account ID in the Codex token.");return i}function DS(e,t,r,n){let i=Wi(e,t,"text/event-stream"),s=OS(i,t.apiKey),c=bS();i.set("authorization",`Bearer ${s}`),i.set("chatgpt-account-id",LS(i,s)),i.set("openai-beta","responses=experimental"),i.set("originator","pi"),i.set("session-id",c),i.set("x-client-request-id",c);let x={..._u(e,r),instructions:"Use server-side web search and cite every source URL.",text:{verbosity:"low"},include:["reasoning.encrypted_content"],prompt_cache_key:c,parallel_tool_calls:!0};return{url:$i(e.baseUrl,"/codex/responses"),init:{method:"POST",headers:i,body:JSON.stringify(x)},responseType:"responses"}}var kS={"anthropic-messages":{buildRequest:vS,sendsDomainFields:!0},"openai-responses":{buildRequest:CS,sendsDomainFields:!1},"azure-openai-responses":{buildRequest:RS,sendsDomainFields:!1},"openai-codex-responses":{buildRequest:DS,sendsDomainFields:!1}},MS={buildRequest:NS,sendsDomainFields:!0};function FS(e){return e.provider==="deepseek"&&e.api==="openai-completions"?MS:kS[e.api]??null}function Iu(e){let t=new Set,r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n;typeof i.url=="string"&&/^https?:\/\//i.test(i.url)&&t.add(i.url),r.push(...Object.values(i))}return[...t]}function PS(e){if(!e||typeof e!="object")return[];let t=e;return typeof t.query=="string"?[t.query]:Array.isArray(t.queries)?t.queries.filter(r=>typeof r=="string"):[]}function wu(e){let t=new Set,r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n,s=i.type==="server_tool_use"?i.input:i.type==="web_search_call"?i.action:void 0;for(let c of PS(s))t.add(c);r.push(...Object.values(i))}return[...t]}function qS(e){return(e.match(/https?:\/\/[^\s<>{}\[\]"']+/gi)??[]).map(r=>r.replace(/[),.;:!?]+$/,""))}function HS(e){return Array.isArray(e.content)?e.content.filter(t=>!!t&&typeof t=="object").filter(t=>t.type==="text"&&typeof t.text=="string").map(t=>String(t.text)).join(`
102
- `):""}function ph(e){let t=[],r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n;i.type==="output_text"&&typeof i.text=="string"&&t.push(i.text),r.push(...Object.values(i))}return t}function US(e){let t=[];for(let r of e.split(/\r?\n/)){if(!r.startsWith("data:"))continue;let n=r.slice(5).trim();if(!(!n||n==="[DONE]"))try{t.push(JSON.parse(n))}catch{throw new Error("WebSearch received malformed provider event data.")}}return t}function Mo(e){return e&&typeof e=="object"?e:void 0}function BS(e){let t=Mo(e);if(!t)return typeof e=="string"?e:"";let r=Mo(t.error)??t,n=typeof r.code=="string"?r.code:"",i=typeof r.message=="string"?r.message:"";if(n||i)return[n,i].filter(Boolean).join(": ");let s=Mo(t.incomplete_details);return typeof s?.reason=="string"?s.reason:JSON.stringify(e).slice(0,500)}function Fo(e,t){let r=BS(t);throw new Error(`WebSearch Responses ${e}${r?`: ${r}`:""}`)}function dh(e,t){let r=typeof e.status=="string"?e.status:void 0;r==="completed"&&!e.error||(r||Fo(`${t} has no successful terminal status`,e.error),Fo(`${t} terminal status "${r}"`,e))}function jS(e){e.type==="error"&&Fo("stream error",e),e.type==="response.failed"&&Fo("stream failed",e.response??e)}function VS(e){if(!(typeof e.type!="string"||!TS.has(e.type)))return Mo(e.response)??{}}function GS(e){let t;for(let r of e)jS(r),t=VS(r)??t;if(!t)throw new Error("WebSearch Responses stream ended before a terminal response.");dh(t,"stream")}function KS(e){GS(e);let t=e.filter(n=>n.type==="response.output_text.delta").map(n=>typeof n.delta=="string"?n.delta:"").join(""),r=ph(e).join(`
103
- `);return{text:t||r,urls:Iu(e),queries:wu(e)}}async function $S(e){let t=await e.json();return{text:HS(t),urls:Iu(t),queries:wu(t)}}function WS(e){return e.replace(/^\uFEFF/,"").trimStart()}function zS(e,t){return t.startsWith("event:")||t.startsWith("data:")?!0:t.startsWith("{")||t.startsWith("[")?!1:e.toLowerCase().includes("text/event-stream")}function XS(e){try{return JSON.parse(e)}catch{throw new Error("WebSearch received neither valid SSE nor JSON provider data.")}}async function QS(e){let t=e.headers.get("content-type")??"",r=WS(await e.text());if(zS(t,r))return KS(US(r));let n=XS(r);return dh(n,"JSON payload"),{text:ph(n).join(`
104
- `),urls:Iu(n),queries:wu(n)}}function YS(e,t){let r=/(web[_ -]?search|tools?(?:\.\d+)?\.type)/i.test(t);return e===400&&r&&/unknown variant/i.test(t)}function ZS(e,t){return e===400&&/(allowed_domains|blocked_domains)/i.test(t)}function xh(e,t,r){if(YS(e,t))throw oh.add(sh(r)),ch(r);let n=t.trim().slice(0,500);throw new Error(`WebSearch HTTP ${e}${n?`: ${n}`:""}`)}function JS(e,t){let r=e.text.trim();if(!r)throw new Error("WebSearch unavailable: the provider returned no search result.");let n=[...new Set([...e.urls,...qS(r)])];if(n.length===0)throw new Error("WebSearch provider response did not include a source URL.");let i=[...new Set(e.queries.map(c=>c.trim()).filter(Boolean))];if(i.length===0)throw new Error("WebSearch provider response did not include the executed query.");return`${r}${t?`
105
-
106
- Domain filtering was applied through the query prompt after provider field rejection.`:""}
107
-
108
- Queries:
109
- ${i.map(c=>`- ${c}`).join(`
110
- `)}
111
-
112
- Sources:
113
- ${n.map(c=>`- ${c}`).join(`
114
- `)}`}async function ev(e,t){if(!e.modelRegistry)throw new Error("WebSearch unavailable: PI has no model registry.");let r=await e.modelRegistry.getApiKeyAndHeaders(t);if(r.ok===!1)throw new Error(`WebSearch authentication failed: ${r.error}`);return r}async function tv(e,t,r,n){let i=await fetch(e.url,{...e.init,signal:n});if(i.ok)return{response:i,degradedDomains:!1};let s=await i.text();return!t||!ZS(i.status,s)?xh(i.status,s,r):{response:await fetch(t.url,{...t.init,signal:n}),degradedDomains:!0}}async function rv(e,t){return t==="anthropic"?$S(e):QS(e)}async function nv(e,t,r,n){let i=await tv(e,t,r,n);if(!i.response.ok){let c=await i.response.text();return xh(i.response.status,c,r)}let s=await rv(i.response,e.responseType);return JS(s,i.degradedDomains)}function iv(e){return!!e.allowed_domains?.length||!!e.blocked_domains?.length}async function av(e,t,r){let n=r.model;if(!n)throw new Error("WebSearch unavailable: PI has no active model.");let i=FS(n);if(!i||oh.has(sh(n)))throw ch(n);let s=await ev(r,n),c=i.buildRequest(n,s,e,i.sendsDomainFields),x=i.sendsDomainFields&&iv(e)?i.buildRequest(n,s,e,!1):void 0;return nv(c,x,n,t)}var mh={name:"web_search",label:"WebSearch",description:"Search the web through the active model provider and return a concise answer with source URLs.",parameters:_S,async execute(e,t,r,n,i){return{content:[{type:"text",text:await av(t,r,i)}],details:void 0}}};var ov={type:"string",description:"Clear, concise description of what this command does in active voice, in 5-10 words."};function sv(e){let t=e.parameters,r={...t.properties,description:ov};return{...e,parameters:{...t,properties:r}}}async function cv(){return(await Ku()).createBashToolDefinition}function hh(e,t=cv){e.on("session_start",async(r,n)=>{if(!e.getActiveTools().includes("bash"))return;let{shellCommandPrefix:i,shellPath:s}=e.getSettings(),c=await t();e.registerTool(sv(c(n.cwd,{commandPrefix:i,shellPath:s})))})}var uv=A.Object({todos:A.Array(A.Object({content:A.String({description:"Task description (imperative form)."}),status:A.Union([A.Literal("pending"),A.Literal("in_progress"),A.Literal("completed")]),activeForm:A.String({description:"Present-continuous form shown when the task is in progress."})}))});function lv(e){e.registerTool({name:"todo_write",label:"TodoWrite",description:"Track a multi-step task with a session checklist.",parameters:uv,async execute(t,r){let n=r.todos.length,i=r.todos.filter(c=>c.status==="completed").length,s=r.todos.filter(c=>c.status==="in_progress").length;return{content:[{type:"text",text:`Todos updated: ${n} total, ${i} completed, ${s} in progress.`}],details:void 0}}})}function fv(e,t){let r=Ju({claudeModel:e.CORTEX_CLAUDE_MODEL,subagentClaudeModels:rl(e.CORTEX_SUBAGENT_CLAUDE_MODELS),subagentPiModels:nl(e.CORTEX_SUBAGENT_PI_MODELS)});try{return t.ensureRoles(),{roles:tl(ga(t.rolesDir)),models:r}}catch{return{models:r}}}function pv(e,t){return[{name:"cortex-image-first",factory:fp},{name:"cortex-mcp-bridge",factory:r=>cp(r,sp(e,[],t))},{name:"cortex-tool-shims",factory:r=>hv(r,e,{openBundledMcpServer:t})},{name:"cortex-described-bash",factory:r=>hh(r)}]}function dv(e){if(!e.onProviderQuota)return()=>null;let t={name:"cortex-quota-probe",factory:lp(e.onProviderQuota)};return(r,n)=>r&&n===r?t:null}function xv(e,t,r){let n=t.PI_CODING_AGENT_DIR??Wu,i=t[dl],s=null,c=dv(r),x={agentDir:n,...i?{homeAgentDir:i,account:t.CORTEX_CONNECTION}:{},ensureRoles:()=>zu({legacyDir:gh.join(n,"agents")}),createSession:r.createChildSession??El,childExtensions:(g,T)=>{let I=pv(g,r.openBundledMcpServer),K=c(s,T);return K?[...I,K]:I},parentEnv:t,onEvent:r.onSubagentEvent,onUsage:r.onSubagentUsage,runForeignSubagent:r.runForeignSubagent,startBackgroundSubagent:r.startBackgroundSubagent,stopBackgroundSubagent:r.stopBackgroundSubagent,checkModel:r.checkDelegatedModel};e.on("session_start",(g,T)=>{s=T.model?.provider??null,e.registerTool(_p(x,fv(t,x)));let I=Ip(x);I&&e.registerTool(I)})}var mv=[["web_fetch","WebFetch",e=>e.registerTool(ah)],["web_search","WebSearch",e=>e.registerTool(mh)],["todo_write","TodoWrite",lv]];function hv(e,t,r={}){let n=Gs(t),i=s=>n===null||n.has(s);Ka(t)&&xv(e,t,r);for(let[,s,c]of mv)i(s)&&c(e)}export{_T as a,np as b,tF as c,rF as d,sp as e,cp as f,lp as g,fp as h,pp as i,xp as j,mp as k,hp as l,gp as m,bp as n,hh as o,pv as p,hv as q};
115
- /*! Bundled license information:
116
-
117
- @mixmark-io/domino/lib/style_parser.js:
118
- (**
119
- * @license
120
- * Copyright Google LLC All Rights Reserved.
121
- *
122
- * Use of this source code is governed by an MIT-style license that can be
123
- * found in the LICENSE file at https://angular.io/license
124
- *)
125
- */