@wonseok-han/confluence-sync 1.8.0 → 2.0.0

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 (518) hide show
  1. package/README.md +44 -410
  2. package/dist/cli/args.js +1 -1
  3. package/dist/cli/help.js +214 -115
  4. package/dist/cli/init.js +44 -5
  5. package/dist/cli/main.js +42 -11
  6. package/dist/cli/status.js +83 -0
  7. package/dist/confluence/client.js +121 -57
  8. package/dist/confluence/config.js +12 -8
  9. package/dist/confluence/env-file.js +23 -0
  10. package/dist/confluence/links.js +18 -0
  11. package/dist/conversion/asset-paths.js +5 -0
  12. package/dist/conversion/attachments.js +29 -7
  13. package/dist/conversion/convert.js +10 -22
  14. package/dist/conversion/footnotes.js +114 -11
  15. package/dist/conversion/markdown.js +26 -0
  16. package/dist/conversion/pdf-pages.js +10 -8
  17. package/dist/documents/anchors.js +9 -0
  18. package/dist/documents/callout-roundtrip.js +75 -0
  19. package/dist/documents/callouts.js +74 -0
  20. package/dist/documents/catalog.js +2 -2
  21. package/dist/documents/footnote-roundtrip.js +96 -0
  22. package/dist/documents/format.js +116 -0
  23. package/dist/documents/html-tables.js +30 -0
  24. package/dist/documents/html-to-markdown.js +47 -13
  25. package/dist/documents/markdown.js +46 -4
  26. package/dist/documents/obsidian.js +6 -3
  27. package/dist/documents/tables.js +89 -0
  28. package/dist/runtime/network.js +4 -0
  29. package/dist/shared/colors.js +2 -2
  30. package/dist/shared/progress.js +164 -0
  31. package/dist/shared/version.js +12 -0
  32. package/dist/site/assets/Monaco-LICENSE.txt +21 -0
  33. package/dist/site/assets/Monaco-ThirdPartyNotices.txt +448 -0
  34. package/dist/site/assets/PDFJS-LICENSE.txt +177 -0
  35. package/dist/site/assets/app.css +1 -0
  36. package/dist/site/assets/app.js +4 -0
  37. package/dist/site/assets/chunks/chunk-TEW74QPN.js +35 -0
  38. package/dist/site/assets/chunks/markdown-S6623E66.js +1 -0
  39. package/dist/site/assets/chunks/monaco-36ZGUH4Y.js +897 -0
  40. package/dist/site/assets/chunks/monaco-HFLEBJTI.css +1 -0
  41. package/dist/site/assets/chunks/pdf-DDN7TXTP.js +55 -0
  42. package/dist/site/assets/confluence-env-example.txt +32 -0
  43. package/dist/site/assets/editor.worker.js +1 -0
  44. package/dist/site/assets/favicon.svg +3 -0
  45. package/dist/site/assets/guide/01-account-settings.png +0 -0
  46. package/dist/site/assets/guide/02-atlassian-security.png +0 -0
  47. package/dist/site/assets/guide/03-api-tokens.png +0 -0
  48. package/dist/site/assets/guide/04-scope-api-token-step1.png +0 -0
  49. package/dist/site/assets/guide/05-scope-api-token-step2.png +0 -0
  50. package/dist/site/assets/guide/06-scope-api-token-step3.png +0 -0
  51. package/dist/site/assets/guide/07-scope-api-token-step4.png +0 -0
  52. package/dist/site/assets/guide/web/document-preview.png +0 -0
  53. package/dist/site/assets/guide/web/remote-diff.png +0 -0
  54. package/dist/site/assets/guide/web/sync-workspace.png +0 -0
  55. package/dist/site/assets/pdf/cmaps/78-EUC-H.bcmap +0 -0
  56. package/dist/site/assets/pdf/cmaps/78-EUC-V.bcmap +0 -0
  57. package/dist/site/assets/pdf/cmaps/78-H.bcmap +0 -0
  58. package/dist/site/assets/pdf/cmaps/78-RKSJ-H.bcmap +0 -0
  59. package/dist/site/assets/pdf/cmaps/78-RKSJ-V.bcmap +0 -0
  60. package/dist/site/assets/pdf/cmaps/78-V.bcmap +0 -0
  61. package/dist/site/assets/pdf/cmaps/78ms-RKSJ-H.bcmap +0 -0
  62. package/dist/site/assets/pdf/cmaps/78ms-RKSJ-V.bcmap +0 -0
  63. package/dist/site/assets/pdf/cmaps/83pv-RKSJ-H.bcmap +0 -0
  64. package/dist/site/assets/pdf/cmaps/90ms-RKSJ-H.bcmap +0 -0
  65. package/dist/site/assets/pdf/cmaps/90ms-RKSJ-V.bcmap +0 -0
  66. package/dist/site/assets/pdf/cmaps/90msp-RKSJ-H.bcmap +0 -0
  67. package/dist/site/assets/pdf/cmaps/90msp-RKSJ-V.bcmap +0 -0
  68. package/dist/site/assets/pdf/cmaps/90pv-RKSJ-H.bcmap +0 -0
  69. package/dist/site/assets/pdf/cmaps/90pv-RKSJ-V.bcmap +0 -0
  70. package/dist/site/assets/pdf/cmaps/Add-H.bcmap +0 -0
  71. package/dist/site/assets/pdf/cmaps/Add-RKSJ-H.bcmap +0 -0
  72. package/dist/site/assets/pdf/cmaps/Add-RKSJ-V.bcmap +0 -0
  73. package/dist/site/assets/pdf/cmaps/Add-V.bcmap +0 -0
  74. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-0.bcmap +0 -0
  75. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-1.bcmap +0 -0
  76. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-2.bcmap +0 -0
  77. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-3.bcmap +0 -0
  78. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-4.bcmap +0 -0
  79. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-5.bcmap +0 -0
  80. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-6.bcmap +0 -0
  81. package/dist/site/assets/pdf/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  82. package/dist/site/assets/pdf/cmaps/Adobe-GB1-0.bcmap +0 -0
  83. package/dist/site/assets/pdf/cmaps/Adobe-GB1-1.bcmap +0 -0
  84. package/dist/site/assets/pdf/cmaps/Adobe-GB1-2.bcmap +0 -0
  85. package/dist/site/assets/pdf/cmaps/Adobe-GB1-3.bcmap +0 -0
  86. package/dist/site/assets/pdf/cmaps/Adobe-GB1-4.bcmap +0 -0
  87. package/dist/site/assets/pdf/cmaps/Adobe-GB1-5.bcmap +0 -0
  88. package/dist/site/assets/pdf/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  89. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-0.bcmap +0 -0
  90. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-1.bcmap +0 -0
  91. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-2.bcmap +0 -0
  92. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-3.bcmap +0 -0
  93. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-4.bcmap +0 -0
  94. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-5.bcmap +0 -0
  95. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-6.bcmap +0 -0
  96. package/dist/site/assets/pdf/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  97. package/dist/site/assets/pdf/cmaps/Adobe-Korea1-0.bcmap +0 -0
  98. package/dist/site/assets/pdf/cmaps/Adobe-Korea1-1.bcmap +0 -0
  99. package/dist/site/assets/pdf/cmaps/Adobe-Korea1-2.bcmap +0 -0
  100. package/dist/site/assets/pdf/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  101. package/dist/site/assets/pdf/cmaps/B5-H.bcmap +0 -0
  102. package/dist/site/assets/pdf/cmaps/B5-V.bcmap +0 -0
  103. package/dist/site/assets/pdf/cmaps/B5pc-H.bcmap +0 -0
  104. package/dist/site/assets/pdf/cmaps/B5pc-V.bcmap +0 -0
  105. package/dist/site/assets/pdf/cmaps/CNS-EUC-H.bcmap +0 -0
  106. package/dist/site/assets/pdf/cmaps/CNS-EUC-V.bcmap +0 -0
  107. package/dist/site/assets/pdf/cmaps/CNS1-H.bcmap +0 -0
  108. package/dist/site/assets/pdf/cmaps/CNS1-V.bcmap +0 -0
  109. package/dist/site/assets/pdf/cmaps/CNS2-H.bcmap +0 -0
  110. package/dist/site/assets/pdf/cmaps/CNS2-V.bcmap +3 -0
  111. package/dist/site/assets/pdf/cmaps/ETHK-B5-H.bcmap +0 -0
  112. package/dist/site/assets/pdf/cmaps/ETHK-B5-V.bcmap +0 -0
  113. package/dist/site/assets/pdf/cmaps/ETen-B5-H.bcmap +0 -0
  114. package/dist/site/assets/pdf/cmaps/ETen-B5-V.bcmap +0 -0
  115. package/dist/site/assets/pdf/cmaps/ETenms-B5-H.bcmap +3 -0
  116. package/dist/site/assets/pdf/cmaps/ETenms-B5-V.bcmap +0 -0
  117. package/dist/site/assets/pdf/cmaps/EUC-H.bcmap +0 -0
  118. package/dist/site/assets/pdf/cmaps/EUC-V.bcmap +0 -0
  119. package/dist/site/assets/pdf/cmaps/Ext-H.bcmap +0 -0
  120. package/dist/site/assets/pdf/cmaps/Ext-RKSJ-H.bcmap +0 -0
  121. package/dist/site/assets/pdf/cmaps/Ext-RKSJ-V.bcmap +0 -0
  122. package/dist/site/assets/pdf/cmaps/Ext-V.bcmap +0 -0
  123. package/dist/site/assets/pdf/cmaps/GB-EUC-H.bcmap +0 -0
  124. package/dist/site/assets/pdf/cmaps/GB-EUC-V.bcmap +0 -0
  125. package/dist/site/assets/pdf/cmaps/GB-H.bcmap +4 -0
  126. package/dist/site/assets/pdf/cmaps/GB-V.bcmap +0 -0
  127. package/dist/site/assets/pdf/cmaps/GBK-EUC-H.bcmap +0 -0
  128. package/dist/site/assets/pdf/cmaps/GBK-EUC-V.bcmap +0 -0
  129. package/dist/site/assets/pdf/cmaps/GBK2K-H.bcmap +0 -0
  130. package/dist/site/assets/pdf/cmaps/GBK2K-V.bcmap +0 -0
  131. package/dist/site/assets/pdf/cmaps/GBKp-EUC-H.bcmap +0 -0
  132. package/dist/site/assets/pdf/cmaps/GBKp-EUC-V.bcmap +0 -0
  133. package/dist/site/assets/pdf/cmaps/GBT-EUC-H.bcmap +0 -0
  134. package/dist/site/assets/pdf/cmaps/GBT-EUC-V.bcmap +0 -0
  135. package/dist/site/assets/pdf/cmaps/GBT-H.bcmap +0 -0
  136. package/dist/site/assets/pdf/cmaps/GBT-V.bcmap +0 -0
  137. package/dist/site/assets/pdf/cmaps/GBTpc-EUC-H.bcmap +0 -0
  138. package/dist/site/assets/pdf/cmaps/GBTpc-EUC-V.bcmap +0 -0
  139. package/dist/site/assets/pdf/cmaps/GBpc-EUC-H.bcmap +0 -0
  140. package/dist/site/assets/pdf/cmaps/GBpc-EUC-V.bcmap +0 -0
  141. package/dist/site/assets/pdf/cmaps/H.bcmap +0 -0
  142. package/dist/site/assets/pdf/cmaps/HKdla-B5-H.bcmap +0 -0
  143. package/dist/site/assets/pdf/cmaps/HKdla-B5-V.bcmap +0 -0
  144. package/dist/site/assets/pdf/cmaps/HKdlb-B5-H.bcmap +0 -0
  145. package/dist/site/assets/pdf/cmaps/HKdlb-B5-V.bcmap +0 -0
  146. package/dist/site/assets/pdf/cmaps/HKgccs-B5-H.bcmap +0 -0
  147. package/dist/site/assets/pdf/cmaps/HKgccs-B5-V.bcmap +0 -0
  148. package/dist/site/assets/pdf/cmaps/HKm314-B5-H.bcmap +0 -0
  149. package/dist/site/assets/pdf/cmaps/HKm314-B5-V.bcmap +0 -0
  150. package/dist/site/assets/pdf/cmaps/HKm471-B5-H.bcmap +0 -0
  151. package/dist/site/assets/pdf/cmaps/HKm471-B5-V.bcmap +0 -0
  152. package/dist/site/assets/pdf/cmaps/HKscs-B5-H.bcmap +0 -0
  153. package/dist/site/assets/pdf/cmaps/HKscs-B5-V.bcmap +0 -0
  154. package/dist/site/assets/pdf/cmaps/Hankaku.bcmap +0 -0
  155. package/dist/site/assets/pdf/cmaps/Hiragana.bcmap +0 -0
  156. package/dist/site/assets/pdf/cmaps/KSC-EUC-H.bcmap +0 -0
  157. package/dist/site/assets/pdf/cmaps/KSC-EUC-V.bcmap +0 -0
  158. package/dist/site/assets/pdf/cmaps/KSC-H.bcmap +0 -0
  159. package/dist/site/assets/pdf/cmaps/KSC-Johab-H.bcmap +0 -0
  160. package/dist/site/assets/pdf/cmaps/KSC-Johab-V.bcmap +0 -0
  161. package/dist/site/assets/pdf/cmaps/KSC-V.bcmap +0 -0
  162. package/dist/site/assets/pdf/cmaps/KSCms-UHC-H.bcmap +0 -0
  163. package/dist/site/assets/pdf/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  164. package/dist/site/assets/pdf/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  165. package/dist/site/assets/pdf/cmaps/KSCms-UHC-V.bcmap +0 -0
  166. package/dist/site/assets/pdf/cmaps/KSCpc-EUC-H.bcmap +0 -0
  167. package/dist/site/assets/pdf/cmaps/KSCpc-EUC-V.bcmap +0 -0
  168. package/dist/site/assets/pdf/cmaps/Katakana.bcmap +0 -0
  169. package/dist/site/assets/pdf/cmaps/LICENSE +36 -0
  170. package/dist/site/assets/pdf/cmaps/NWP-H.bcmap +0 -0
  171. package/dist/site/assets/pdf/cmaps/NWP-V.bcmap +0 -0
  172. package/dist/site/assets/pdf/cmaps/RKSJ-H.bcmap +0 -0
  173. package/dist/site/assets/pdf/cmaps/RKSJ-V.bcmap +0 -0
  174. package/dist/site/assets/pdf/cmaps/Roman.bcmap +0 -0
  175. package/dist/site/assets/pdf/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  176. package/dist/site/assets/pdf/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  177. package/dist/site/assets/pdf/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  178. package/dist/site/assets/pdf/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  179. package/dist/site/assets/pdf/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  180. package/dist/site/assets/pdf/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  181. package/dist/site/assets/pdf/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  182. package/dist/site/assets/pdf/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  183. package/dist/site/assets/pdf/cmaps/UniGB-UCS2-H.bcmap +0 -0
  184. package/dist/site/assets/pdf/cmaps/UniGB-UCS2-V.bcmap +0 -0
  185. package/dist/site/assets/pdf/cmaps/UniGB-UTF16-H.bcmap +0 -0
  186. package/dist/site/assets/pdf/cmaps/UniGB-UTF16-V.bcmap +0 -0
  187. package/dist/site/assets/pdf/cmaps/UniGB-UTF32-H.bcmap +0 -0
  188. package/dist/site/assets/pdf/cmaps/UniGB-UTF32-V.bcmap +0 -0
  189. package/dist/site/assets/pdf/cmaps/UniGB-UTF8-H.bcmap +0 -0
  190. package/dist/site/assets/pdf/cmaps/UniGB-UTF8-V.bcmap +0 -0
  191. package/dist/site/assets/pdf/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  192. package/dist/site/assets/pdf/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  193. package/dist/site/assets/pdf/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  194. package/dist/site/assets/pdf/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  195. package/dist/site/assets/pdf/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  196. package/dist/site/assets/pdf/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  197. package/dist/site/assets/pdf/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  198. package/dist/site/assets/pdf/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  199. package/dist/site/assets/pdf/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  200. package/dist/site/assets/pdf/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  201. package/dist/site/assets/pdf/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  202. package/dist/site/assets/pdf/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  203. package/dist/site/assets/pdf/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  204. package/dist/site/assets/pdf/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  205. package/dist/site/assets/pdf/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  206. package/dist/site/assets/pdf/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  207. package/dist/site/assets/pdf/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  208. package/dist/site/assets/pdf/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  209. package/dist/site/assets/pdf/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  210. package/dist/site/assets/pdf/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  211. package/dist/site/assets/pdf/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  212. package/dist/site/assets/pdf/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  213. package/dist/site/assets/pdf/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  214. package/dist/site/assets/pdf/cmaps/UniKS-UCS2-H.bcmap +0 -0
  215. package/dist/site/assets/pdf/cmaps/UniKS-UCS2-V.bcmap +0 -0
  216. package/dist/site/assets/pdf/cmaps/UniKS-UTF16-H.bcmap +0 -0
  217. package/dist/site/assets/pdf/cmaps/UniKS-UTF16-V.bcmap +0 -0
  218. package/dist/site/assets/pdf/cmaps/UniKS-UTF32-H.bcmap +0 -0
  219. package/dist/site/assets/pdf/cmaps/UniKS-UTF32-V.bcmap +0 -0
  220. package/dist/site/assets/pdf/cmaps/UniKS-UTF8-H.bcmap +0 -0
  221. package/dist/site/assets/pdf/cmaps/UniKS-UTF8-V.bcmap +0 -0
  222. package/dist/site/assets/pdf/cmaps/V.bcmap +0 -0
  223. package/dist/site/assets/pdf/cmaps/WP-Symbol.bcmap +0 -0
  224. package/dist/site/assets/pdf/standard_fonts/FoxitDingbats.pfb +0 -0
  225. package/dist/site/assets/pdf/standard_fonts/FoxitFixed.pfb +0 -0
  226. package/dist/site/assets/pdf/standard_fonts/FoxitFixedBold.pfb +0 -0
  227. package/dist/site/assets/pdf/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  228. package/dist/site/assets/pdf/standard_fonts/FoxitFixedItalic.pfb +0 -0
  229. package/dist/site/assets/pdf/standard_fonts/FoxitSerif.pfb +0 -0
  230. package/dist/site/assets/pdf/standard_fonts/FoxitSerifBold.pfb +0 -0
  231. package/dist/site/assets/pdf/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  232. package/dist/site/assets/pdf/standard_fonts/FoxitSerifItalic.pfb +0 -0
  233. package/dist/site/assets/pdf/standard_fonts/FoxitSymbol.pfb +0 -0
  234. package/dist/site/assets/pdf/standard_fonts/LICENSE_FOXIT +27 -0
  235. package/dist/site/assets/pdf/standard_fonts/LICENSE_LIBERATION +363 -0
  236. package/dist/site/assets/pdf/standard_fonts/LiberationSans-Bold.ttf +0 -0
  237. package/dist/site/assets/pdf/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  238. package/dist/site/assets/pdf/standard_fonts/LiberationSans-Italic.ttf +0 -0
  239. package/dist/site/assets/pdf/standard_fonts/LiberationSans-Regular.ttf +0 -0
  240. package/dist/site/assets/pdf/wasm/LICENSE_JBIG2 +196 -0
  241. package/dist/site/assets/pdf/wasm/LICENSE_OPENJPEG +39 -0
  242. package/dist/site/assets/pdf/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  243. package/dist/site/assets/pdf/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  244. package/dist/site/assets/pdf/wasm/LICENSE_PDFJS_QCMS +19 -0
  245. package/dist/site/assets/pdf/wasm/LICENSE_QCMS +21 -0
  246. package/dist/site/assets/pdf/wasm/jbig2.wasm +0 -0
  247. package/dist/site/assets/pdf/wasm/jbig2_nowasm_fallback.js +15 -0
  248. package/dist/site/assets/pdf/wasm/openjpeg.wasm +0 -0
  249. package/dist/site/assets/pdf/wasm/openjpeg_nowasm_fallback.js +17 -0
  250. package/dist/site/assets/pdf/wasm/qcms_bg.wasm +0 -0
  251. package/dist/site/assets/pdf/wasm/quickjs-eval.js +16 -0
  252. package/dist/site/assets/pdf/wasm/quickjs-eval.wasm +0 -0
  253. package/dist/site/assets/pdf.worker.min.mjs +29 -0
  254. package/dist/site/assets/workspace.worker.js +409 -0
  255. package/dist/site/index.html +253 -0
  256. package/dist/sync/baseline.js +45 -0
  257. package/dist/sync/changes.js +51 -0
  258. package/dist/sync/diff.js +80 -0
  259. package/dist/sync/fetch.js +287 -0
  260. package/dist/sync/ignore.js +4 -4
  261. package/dist/sync/local-state.js +12 -0
  262. package/dist/sync/mapping.js +31 -8
  263. package/dist/sync/metadata.js +57 -0
  264. package/dist/sync/prepare.js +52 -0
  265. package/dist/sync/pull.js +618 -141
  266. package/dist/sync/push.js +260 -213
  267. package/dist/sync/reconcile.js +51 -0
  268. package/dist/sync/references.js +2 -2
  269. package/dist/sync/remap.js +17 -5
  270. package/dist/sync/render.js +3 -2
  271. package/dist/sync/restore.js +28 -0
  272. package/dist/sync/scope.js +47 -0
  273. package/dist/sync/staging.js +193 -0
  274. package/dist/sync/workspace.js +100 -0
  275. package/dist/web/assets/PDFJS-LICENSE.txt +177 -0
  276. package/dist/web/assets/app.css +1 -1
  277. package/dist/web/assets/app.js +3 -938
  278. package/dist/web/assets/chunks/chunk-TEW74QPN.js +35 -0
  279. package/dist/web/assets/chunks/markdown-S6623E66.js +1 -0
  280. package/dist/web/assets/chunks/monaco-36ZGUH4Y.js +897 -0
  281. package/dist/web/assets/chunks/monaco-HFLEBJTI.css +1 -0
  282. package/dist/web/assets/chunks/pdf-DDN7TXTP.js +55 -0
  283. package/dist/web/assets/confluence-env-example.txt +32 -0
  284. package/dist/web/assets/editor.worker.js +1 -30
  285. package/dist/web/assets/favicon.svg +3 -0
  286. package/dist/web/assets/guide/01-account-settings.png +0 -0
  287. package/dist/web/assets/guide/02-atlassian-security.png +0 -0
  288. package/dist/web/assets/guide/03-api-tokens.png +0 -0
  289. package/dist/web/assets/guide/04-scope-api-token-step1.png +0 -0
  290. package/dist/web/assets/guide/05-scope-api-token-step2.png +0 -0
  291. package/dist/web/assets/guide/06-scope-api-token-step3.png +0 -0
  292. package/dist/web/assets/guide/07-scope-api-token-step4.png +0 -0
  293. package/dist/web/assets/guide/web/document-preview.png +0 -0
  294. package/dist/web/assets/guide/web/remote-diff.png +0 -0
  295. package/dist/web/assets/guide/web/sync-workspace.png +0 -0
  296. package/dist/web/assets/pdf/cmaps/78-EUC-H.bcmap +0 -0
  297. package/dist/web/assets/pdf/cmaps/78-EUC-V.bcmap +0 -0
  298. package/dist/web/assets/pdf/cmaps/78-H.bcmap +0 -0
  299. package/dist/web/assets/pdf/cmaps/78-RKSJ-H.bcmap +0 -0
  300. package/dist/web/assets/pdf/cmaps/78-RKSJ-V.bcmap +0 -0
  301. package/dist/web/assets/pdf/cmaps/78-V.bcmap +0 -0
  302. package/dist/web/assets/pdf/cmaps/78ms-RKSJ-H.bcmap +0 -0
  303. package/dist/web/assets/pdf/cmaps/78ms-RKSJ-V.bcmap +0 -0
  304. package/dist/web/assets/pdf/cmaps/83pv-RKSJ-H.bcmap +0 -0
  305. package/dist/web/assets/pdf/cmaps/90ms-RKSJ-H.bcmap +0 -0
  306. package/dist/web/assets/pdf/cmaps/90ms-RKSJ-V.bcmap +0 -0
  307. package/dist/web/assets/pdf/cmaps/90msp-RKSJ-H.bcmap +0 -0
  308. package/dist/web/assets/pdf/cmaps/90msp-RKSJ-V.bcmap +0 -0
  309. package/dist/web/assets/pdf/cmaps/90pv-RKSJ-H.bcmap +0 -0
  310. package/dist/web/assets/pdf/cmaps/90pv-RKSJ-V.bcmap +0 -0
  311. package/dist/web/assets/pdf/cmaps/Add-H.bcmap +0 -0
  312. package/dist/web/assets/pdf/cmaps/Add-RKSJ-H.bcmap +0 -0
  313. package/dist/web/assets/pdf/cmaps/Add-RKSJ-V.bcmap +0 -0
  314. package/dist/web/assets/pdf/cmaps/Add-V.bcmap +0 -0
  315. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-0.bcmap +0 -0
  316. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-1.bcmap +0 -0
  317. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-2.bcmap +0 -0
  318. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-3.bcmap +0 -0
  319. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-4.bcmap +0 -0
  320. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-5.bcmap +0 -0
  321. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-6.bcmap +0 -0
  322. package/dist/web/assets/pdf/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  323. package/dist/web/assets/pdf/cmaps/Adobe-GB1-0.bcmap +0 -0
  324. package/dist/web/assets/pdf/cmaps/Adobe-GB1-1.bcmap +0 -0
  325. package/dist/web/assets/pdf/cmaps/Adobe-GB1-2.bcmap +0 -0
  326. package/dist/web/assets/pdf/cmaps/Adobe-GB1-3.bcmap +0 -0
  327. package/dist/web/assets/pdf/cmaps/Adobe-GB1-4.bcmap +0 -0
  328. package/dist/web/assets/pdf/cmaps/Adobe-GB1-5.bcmap +0 -0
  329. package/dist/web/assets/pdf/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  330. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-0.bcmap +0 -0
  331. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-1.bcmap +0 -0
  332. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-2.bcmap +0 -0
  333. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-3.bcmap +0 -0
  334. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-4.bcmap +0 -0
  335. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-5.bcmap +0 -0
  336. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-6.bcmap +0 -0
  337. package/dist/web/assets/pdf/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  338. package/dist/web/assets/pdf/cmaps/Adobe-Korea1-0.bcmap +0 -0
  339. package/dist/web/assets/pdf/cmaps/Adobe-Korea1-1.bcmap +0 -0
  340. package/dist/web/assets/pdf/cmaps/Adobe-Korea1-2.bcmap +0 -0
  341. package/dist/web/assets/pdf/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  342. package/dist/web/assets/pdf/cmaps/B5-H.bcmap +0 -0
  343. package/dist/web/assets/pdf/cmaps/B5-V.bcmap +0 -0
  344. package/dist/web/assets/pdf/cmaps/B5pc-H.bcmap +0 -0
  345. package/dist/web/assets/pdf/cmaps/B5pc-V.bcmap +0 -0
  346. package/dist/web/assets/pdf/cmaps/CNS-EUC-H.bcmap +0 -0
  347. package/dist/web/assets/pdf/cmaps/CNS-EUC-V.bcmap +0 -0
  348. package/dist/web/assets/pdf/cmaps/CNS1-H.bcmap +0 -0
  349. package/dist/web/assets/pdf/cmaps/CNS1-V.bcmap +0 -0
  350. package/dist/web/assets/pdf/cmaps/CNS2-H.bcmap +0 -0
  351. package/dist/web/assets/pdf/cmaps/CNS2-V.bcmap +3 -0
  352. package/dist/web/assets/pdf/cmaps/ETHK-B5-H.bcmap +0 -0
  353. package/dist/web/assets/pdf/cmaps/ETHK-B5-V.bcmap +0 -0
  354. package/dist/web/assets/pdf/cmaps/ETen-B5-H.bcmap +0 -0
  355. package/dist/web/assets/pdf/cmaps/ETen-B5-V.bcmap +0 -0
  356. package/dist/web/assets/pdf/cmaps/ETenms-B5-H.bcmap +3 -0
  357. package/dist/web/assets/pdf/cmaps/ETenms-B5-V.bcmap +0 -0
  358. package/dist/web/assets/pdf/cmaps/EUC-H.bcmap +0 -0
  359. package/dist/web/assets/pdf/cmaps/EUC-V.bcmap +0 -0
  360. package/dist/web/assets/pdf/cmaps/Ext-H.bcmap +0 -0
  361. package/dist/web/assets/pdf/cmaps/Ext-RKSJ-H.bcmap +0 -0
  362. package/dist/web/assets/pdf/cmaps/Ext-RKSJ-V.bcmap +0 -0
  363. package/dist/web/assets/pdf/cmaps/Ext-V.bcmap +0 -0
  364. package/dist/web/assets/pdf/cmaps/GB-EUC-H.bcmap +0 -0
  365. package/dist/web/assets/pdf/cmaps/GB-EUC-V.bcmap +0 -0
  366. package/dist/web/assets/pdf/cmaps/GB-H.bcmap +4 -0
  367. package/dist/web/assets/pdf/cmaps/GB-V.bcmap +0 -0
  368. package/dist/web/assets/pdf/cmaps/GBK-EUC-H.bcmap +0 -0
  369. package/dist/web/assets/pdf/cmaps/GBK-EUC-V.bcmap +0 -0
  370. package/dist/web/assets/pdf/cmaps/GBK2K-H.bcmap +0 -0
  371. package/dist/web/assets/pdf/cmaps/GBK2K-V.bcmap +0 -0
  372. package/dist/web/assets/pdf/cmaps/GBKp-EUC-H.bcmap +0 -0
  373. package/dist/web/assets/pdf/cmaps/GBKp-EUC-V.bcmap +0 -0
  374. package/dist/web/assets/pdf/cmaps/GBT-EUC-H.bcmap +0 -0
  375. package/dist/web/assets/pdf/cmaps/GBT-EUC-V.bcmap +0 -0
  376. package/dist/web/assets/pdf/cmaps/GBT-H.bcmap +0 -0
  377. package/dist/web/assets/pdf/cmaps/GBT-V.bcmap +0 -0
  378. package/dist/web/assets/pdf/cmaps/GBTpc-EUC-H.bcmap +0 -0
  379. package/dist/web/assets/pdf/cmaps/GBTpc-EUC-V.bcmap +0 -0
  380. package/dist/web/assets/pdf/cmaps/GBpc-EUC-H.bcmap +0 -0
  381. package/dist/web/assets/pdf/cmaps/GBpc-EUC-V.bcmap +0 -0
  382. package/dist/web/assets/pdf/cmaps/H.bcmap +0 -0
  383. package/dist/web/assets/pdf/cmaps/HKdla-B5-H.bcmap +0 -0
  384. package/dist/web/assets/pdf/cmaps/HKdla-B5-V.bcmap +0 -0
  385. package/dist/web/assets/pdf/cmaps/HKdlb-B5-H.bcmap +0 -0
  386. package/dist/web/assets/pdf/cmaps/HKdlb-B5-V.bcmap +0 -0
  387. package/dist/web/assets/pdf/cmaps/HKgccs-B5-H.bcmap +0 -0
  388. package/dist/web/assets/pdf/cmaps/HKgccs-B5-V.bcmap +0 -0
  389. package/dist/web/assets/pdf/cmaps/HKm314-B5-H.bcmap +0 -0
  390. package/dist/web/assets/pdf/cmaps/HKm314-B5-V.bcmap +0 -0
  391. package/dist/web/assets/pdf/cmaps/HKm471-B5-H.bcmap +0 -0
  392. package/dist/web/assets/pdf/cmaps/HKm471-B5-V.bcmap +0 -0
  393. package/dist/web/assets/pdf/cmaps/HKscs-B5-H.bcmap +0 -0
  394. package/dist/web/assets/pdf/cmaps/HKscs-B5-V.bcmap +0 -0
  395. package/dist/web/assets/pdf/cmaps/Hankaku.bcmap +0 -0
  396. package/dist/web/assets/pdf/cmaps/Hiragana.bcmap +0 -0
  397. package/dist/web/assets/pdf/cmaps/KSC-EUC-H.bcmap +0 -0
  398. package/dist/web/assets/pdf/cmaps/KSC-EUC-V.bcmap +0 -0
  399. package/dist/web/assets/pdf/cmaps/KSC-H.bcmap +0 -0
  400. package/dist/web/assets/pdf/cmaps/KSC-Johab-H.bcmap +0 -0
  401. package/dist/web/assets/pdf/cmaps/KSC-Johab-V.bcmap +0 -0
  402. package/dist/web/assets/pdf/cmaps/KSC-V.bcmap +0 -0
  403. package/dist/web/assets/pdf/cmaps/KSCms-UHC-H.bcmap +0 -0
  404. package/dist/web/assets/pdf/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  405. package/dist/web/assets/pdf/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  406. package/dist/web/assets/pdf/cmaps/KSCms-UHC-V.bcmap +0 -0
  407. package/dist/web/assets/pdf/cmaps/KSCpc-EUC-H.bcmap +0 -0
  408. package/dist/web/assets/pdf/cmaps/KSCpc-EUC-V.bcmap +0 -0
  409. package/dist/web/assets/pdf/cmaps/Katakana.bcmap +0 -0
  410. package/dist/web/assets/pdf/cmaps/LICENSE +36 -0
  411. package/dist/web/assets/pdf/cmaps/NWP-H.bcmap +0 -0
  412. package/dist/web/assets/pdf/cmaps/NWP-V.bcmap +0 -0
  413. package/dist/web/assets/pdf/cmaps/RKSJ-H.bcmap +0 -0
  414. package/dist/web/assets/pdf/cmaps/RKSJ-V.bcmap +0 -0
  415. package/dist/web/assets/pdf/cmaps/Roman.bcmap +0 -0
  416. package/dist/web/assets/pdf/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  417. package/dist/web/assets/pdf/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  418. package/dist/web/assets/pdf/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  419. package/dist/web/assets/pdf/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  420. package/dist/web/assets/pdf/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  421. package/dist/web/assets/pdf/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  422. package/dist/web/assets/pdf/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  423. package/dist/web/assets/pdf/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  424. package/dist/web/assets/pdf/cmaps/UniGB-UCS2-H.bcmap +0 -0
  425. package/dist/web/assets/pdf/cmaps/UniGB-UCS2-V.bcmap +0 -0
  426. package/dist/web/assets/pdf/cmaps/UniGB-UTF16-H.bcmap +0 -0
  427. package/dist/web/assets/pdf/cmaps/UniGB-UTF16-V.bcmap +0 -0
  428. package/dist/web/assets/pdf/cmaps/UniGB-UTF32-H.bcmap +0 -0
  429. package/dist/web/assets/pdf/cmaps/UniGB-UTF32-V.bcmap +0 -0
  430. package/dist/web/assets/pdf/cmaps/UniGB-UTF8-H.bcmap +0 -0
  431. package/dist/web/assets/pdf/cmaps/UniGB-UTF8-V.bcmap +0 -0
  432. package/dist/web/assets/pdf/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  433. package/dist/web/assets/pdf/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  434. package/dist/web/assets/pdf/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  435. package/dist/web/assets/pdf/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  436. package/dist/web/assets/pdf/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  437. package/dist/web/assets/pdf/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  438. package/dist/web/assets/pdf/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  439. package/dist/web/assets/pdf/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  440. package/dist/web/assets/pdf/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  441. package/dist/web/assets/pdf/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  442. package/dist/web/assets/pdf/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  443. package/dist/web/assets/pdf/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  444. package/dist/web/assets/pdf/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  445. package/dist/web/assets/pdf/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  446. package/dist/web/assets/pdf/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  447. package/dist/web/assets/pdf/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  448. package/dist/web/assets/pdf/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  449. package/dist/web/assets/pdf/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  450. package/dist/web/assets/pdf/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  451. package/dist/web/assets/pdf/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  452. package/dist/web/assets/pdf/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  453. package/dist/web/assets/pdf/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  454. package/dist/web/assets/pdf/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  455. package/dist/web/assets/pdf/cmaps/UniKS-UCS2-H.bcmap +0 -0
  456. package/dist/web/assets/pdf/cmaps/UniKS-UCS2-V.bcmap +0 -0
  457. package/dist/web/assets/pdf/cmaps/UniKS-UTF16-H.bcmap +0 -0
  458. package/dist/web/assets/pdf/cmaps/UniKS-UTF16-V.bcmap +0 -0
  459. package/dist/web/assets/pdf/cmaps/UniKS-UTF32-H.bcmap +0 -0
  460. package/dist/web/assets/pdf/cmaps/UniKS-UTF32-V.bcmap +0 -0
  461. package/dist/web/assets/pdf/cmaps/UniKS-UTF8-H.bcmap +0 -0
  462. package/dist/web/assets/pdf/cmaps/UniKS-UTF8-V.bcmap +0 -0
  463. package/dist/web/assets/pdf/cmaps/V.bcmap +0 -0
  464. package/dist/web/assets/pdf/cmaps/WP-Symbol.bcmap +0 -0
  465. package/dist/web/assets/pdf/standard_fonts/FoxitDingbats.pfb +0 -0
  466. package/dist/web/assets/pdf/standard_fonts/FoxitFixed.pfb +0 -0
  467. package/dist/web/assets/pdf/standard_fonts/FoxitFixedBold.pfb +0 -0
  468. package/dist/web/assets/pdf/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  469. package/dist/web/assets/pdf/standard_fonts/FoxitFixedItalic.pfb +0 -0
  470. package/dist/web/assets/pdf/standard_fonts/FoxitSerif.pfb +0 -0
  471. package/dist/web/assets/pdf/standard_fonts/FoxitSerifBold.pfb +0 -0
  472. package/dist/web/assets/pdf/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  473. package/dist/web/assets/pdf/standard_fonts/FoxitSerifItalic.pfb +0 -0
  474. package/dist/web/assets/pdf/standard_fonts/FoxitSymbol.pfb +0 -0
  475. package/dist/web/assets/pdf/standard_fonts/LICENSE_FOXIT +27 -0
  476. package/dist/web/assets/pdf/standard_fonts/LICENSE_LIBERATION +363 -0
  477. package/dist/web/assets/pdf/standard_fonts/LiberationSans-Bold.ttf +0 -0
  478. package/dist/web/assets/pdf/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  479. package/dist/web/assets/pdf/standard_fonts/LiberationSans-Italic.ttf +0 -0
  480. package/dist/web/assets/pdf/standard_fonts/LiberationSans-Regular.ttf +0 -0
  481. package/dist/web/assets/pdf/wasm/LICENSE_JBIG2 +196 -0
  482. package/dist/web/assets/pdf/wasm/LICENSE_OPENJPEG +39 -0
  483. package/dist/web/assets/pdf/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  484. package/dist/web/assets/pdf/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  485. package/dist/web/assets/pdf/wasm/LICENSE_PDFJS_QCMS +19 -0
  486. package/dist/web/assets/pdf/wasm/LICENSE_QCMS +21 -0
  487. package/dist/web/assets/pdf/wasm/jbig2.wasm +0 -0
  488. package/dist/web/assets/pdf/wasm/jbig2_nowasm_fallback.js +15 -0
  489. package/dist/web/assets/pdf/wasm/openjpeg.wasm +0 -0
  490. package/dist/web/assets/pdf/wasm/openjpeg_nowasm_fallback.js +17 -0
  491. package/dist/web/assets/pdf/wasm/qcms_bg.wasm +0 -0
  492. package/dist/web/assets/pdf/wasm/quickjs-eval.js +16 -0
  493. package/dist/web/assets/pdf/wasm/quickjs-eval.wasm +0 -0
  494. package/dist/web/assets/pdf.worker.min.mjs +29 -0
  495. package/dist/web/assets/workspace.worker.js +409 -0
  496. package/dist/web/document-source.js +14 -0
  497. package/dist/web/hosted-files.js +189 -0
  498. package/dist/web/hosted.js +316 -0
  499. package/dist/web/node-runner.js +26 -0
  500. package/dist/web/preview.js +74 -0
  501. package/dist/web/server.js +85 -240
  502. package/dist/web/sync.js +364 -70
  503. package/dist/web/table-editor-script.js +99 -0
  504. package/dist/web/table-format.js +224 -0
  505. package/dist/web/views/help.js +15 -10
  506. package/dist/web/views/sync-panel.js +90 -19
  507. package/dist/web/views/token-guide.js +27 -0
  508. package/dist/web/views/usage-guide.js +12 -0
  509. package/dist/web/views/workspace.js +85 -15
  510. package/dist/web/workspace-api.js +371 -0
  511. package/docs/user/CLI.md +366 -0
  512. package/docs/user/CONFIGURATION.md +125 -0
  513. package/docs/user/OBSIDIAN.md +117 -0
  514. package/docs/user/WEB.md +90 -0
  515. package/docs/user/images/web/document-preview.png +0 -0
  516. package/docs/user/images/web/remote-diff.png +0 -0
  517. package/docs/user/images/web/sync-workspace.png +0 -0
  518. package/package.json +23 -6
@@ -0,0 +1,409 @@
1
+ var k6=Object.create;var zu=Object.defineProperty;var T6=Object.getOwnPropertyDescriptor;var C6=Object.getOwnPropertyNames;var D6=Object.getPrototypeOf,I6=Object.prototype.hasOwnProperty;var V=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var ie=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Cn=(e,t)=>{for(var r in t)zu(e,r,{get:t[r],enumerable:!0})},sg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of C6(t))!I6.call(e,i)&&i!==r&&zu(e,i,{get:()=>t[i],enumerable:!(n=T6(t,i))||n.enumerable});return e};var de=(e,t,r)=>(r=e!=null?k6(D6(e)):{},sg(t||!e||!e.__esModule?zu(r,"default",{value:e,enumerable:!0}):r,e)),Ju=e=>sg(zu({},"__esModule",{value:!0}),e);var lg=ie(Gu=>{"use strict";p();Gu.byteLength=R6;Gu.toByteArray=M6;Gu.fromByteArray=P6;var Dn=[],Zr=[],N6=typeof Uint8Array<"u"?Uint8Array:Array,q0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(lo=0,ug=q0.length;lo<ug;++lo)Dn[lo]=q0[lo],Zr[q0.charCodeAt(lo)]=lo;var lo,ug;Zr[45]=62;Zr[95]=63;function cg(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function R6(e){var t=cg(e),r=t[0],n=t[1];return(r+n)*3/4-n}function L6(e,t,r){return(t+r)*3/4-r}function M6(e){var t,r=cg(e),n=r[0],i=r[1],o=new N6(L6(e,n,i)),a=0,s=i>0?n-4:n,u;for(u=0;u<s;u+=4)t=Zr[e.charCodeAt(u)]<<18|Zr[e.charCodeAt(u+1)]<<12|Zr[e.charCodeAt(u+2)]<<6|Zr[e.charCodeAt(u+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=t&255;return i===2&&(t=Zr[e.charCodeAt(u)]<<2|Zr[e.charCodeAt(u+1)]>>4,o[a++]=t&255),i===1&&(t=Zr[e.charCodeAt(u)]<<10|Zr[e.charCodeAt(u+1)]<<4|Zr[e.charCodeAt(u+2)]>>2,o[a++]=t>>8&255,o[a++]=t&255),o}function O6(e){return Dn[e>>18&63]+Dn[e>>12&63]+Dn[e>>6&63]+Dn[e&63]}function F6(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(O6(n));return i.join("")}function P6(e){for(var t,r=e.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(F6(e,a,a+o>s?s:a+o));return n===1?(t=e[r-1],i.push(Dn[t>>2]+Dn[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Dn[t>>10]+Dn[t>>4&63]+Dn[t<<2&63]+"=")),i.join("")}});var fg=ie(W0=>{p();W0.read=function(e,t,r,n,i){var o,a,s=i*8-n-1,u=(1<<s)-1,c=u>>1,l=-7,d=r?i-1:0,m=r?-1:1,f=e[t+d];for(d+=m,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=o*256+e[t+d],d+=m,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=a*256+e[t+d],d+=m,l-=8);if(o===0)o=1-c;else{if(o===u)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-c}return(f?-1:1)*a*Math.pow(2,o-n)};W0.write=function(e,t,r,n,i,o){var a,s,u,c=o*8-i-1,l=(1<<c)-1,d=l>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,h=n?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=m/u:t+=m*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=s&255,f+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+f]=a&255,f+=h,a/=256,c-=8);e[r+f-h]|=b*128}});var Zu=ie(ea=>{"use strict";p();var K0=lg(),Zo=fg(),dg=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ea.Buffer=U;ea.SlowBuffer=W6;ea.INSPECT_MAX_BYTES=50;var Xu=2147483647;ea.kMaxLength=Xu;U.TYPED_ARRAY_SUPPORT=B6();!U.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function B6(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(U.prototype,"parent",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.buffer}});Object.defineProperty(U.prototype,"offset",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.byteOffset}});function ri(e){if(e>Xu)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,U.prototype),t}function U(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return J0(e)}return gg(e,t,r)}U.poolSize=8192;function gg(e,t,r){if(typeof e=="string")return U6(e,t);if(ArrayBuffer.isView(e))return $6(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(In(e,ArrayBuffer)||e&&In(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(In(e,SharedArrayBuffer)||e&&In(e.buffer,SharedArrayBuffer)))return V0(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return U.from(n,t,r);let i=q6(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return U.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}U.from=function(e,t,r){return gg(e,t,r)};Object.setPrototypeOf(U.prototype,Uint8Array.prototype);Object.setPrototypeOf(U,Uint8Array);function xg(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function H6(e,t,r){return xg(e),e<=0?ri(e):t!==void 0?typeof r=="string"?ri(e).fill(t,r):ri(e).fill(t):ri(e)}U.alloc=function(e,t,r){return H6(e,t,r)};function J0(e){return xg(e),ri(e<0?0:G0(e)|0)}U.allocUnsafe=function(e){return J0(e)};U.allocUnsafeSlow=function(e){return J0(e)};function U6(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!U.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=bg(e,t)|0,n=ri(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function j0(e){let t=e.length<0?0:G0(e.length)|0,r=ri(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function $6(e){if(In(e,Uint8Array)){let t=new Uint8Array(e);return V0(t.buffer,t.byteOffset,t.byteLength)}return j0(e)}function V0(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,U.prototype),n}function q6(e){if(U.isBuffer(e)){let t=G0(e.length)|0,r=ri(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||Y0(e.length)?ri(0):j0(e);if(e.type==="Buffer"&&Array.isArray(e.data))return j0(e.data)}function G0(e){if(e>=Xu)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Xu.toString(16)+" bytes");return e|0}function W6(e){return+e!=e&&(e=0),U.alloc(+e)}U.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==U.prototype};U.compare=function(t,r){if(In(t,Uint8Array)&&(t=U.from(t,t.offset,t.byteLength)),In(r,Uint8Array)&&(r=U.from(r,r.offset,r.byteLength)),!U.isBuffer(t)||!U.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let o=0,a=Math.min(n,i);o<a;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};U.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};U.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return U.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=U.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){let a=t[n];if(In(a,Uint8Array))o+a.length>i.length?(U.isBuffer(a)||(a=U.from(a)),a.copy(i,o)):Uint8Array.prototype.set.call(i,a,o);else if(U.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function bg(e,t){if(U.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||In(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z0(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Tg(e).length;default:if(i)return n?-1:z0(e).length;t=(""+t).toLowerCase(),i=!0}}U.byteLength=bg;function K6(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return e4(this,t,r);case"utf8":case"utf-8":return wg(this,t,r);case"ascii":return Z6(this,t,r);case"latin1":case"binary":return Q6(this,t,r);case"base64":return X6(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t4(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}U.prototype._isBuffer=!0;function fo(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}U.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)fo(this,r,r+1);return this};U.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)fo(this,r,r+3),fo(this,r+1,r+2);return this};U.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)fo(this,r,r+7),fo(this,r+1,r+6),fo(this,r+2,r+5),fo(this,r+3,r+4);return this};U.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?wg(this,0,t):K6.apply(this,arguments)};U.prototype.toLocaleString=U.prototype.toString;U.prototype.equals=function(t){if(!U.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:U.compare(this,t)===0};U.prototype.inspect=function(){let t="",r=ea.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};dg&&(U.prototype[dg]=U.prototype.inspect);U.prototype.compare=function(t,r,n,i,o){if(In(t,Uint8Array)&&(t=U.from(t,t.offset,t.byteLength)),!U.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let a=o-i,s=n-r,u=Math.min(a,s),c=this.slice(i,o),l=t.slice(r,n);for(let d=0;d<u;++d)if(c[d]!==l[d]){a=c[d],s=l[d];break}return a<s?-1:s<a?1:0};function yg(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Y0(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=U.from(t,n)),U.isBuffer(t))return t.length===0?-1:pg(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):pg(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function pg(e,t,r,n,i){let o=1,a=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,r/=2}function u(l,d){return o===1?l[d]:l.readUInt16BE(d*o)}let c;if(i){let l=-1;for(c=r;c<a;c++)if(u(e,c)===u(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===s)return l*o}else l!==-1&&(c-=c-l),l=-1}else for(r+s>a&&(r=a-s),c=r;c>=0;c--){let l=!0;for(let d=0;d<s;d++)if(u(e,c+d)!==u(t,d)){l=!1;break}if(l)return c}return-1}U.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};U.prototype.indexOf=function(t,r,n){return yg(this,t,r,n,!0)};U.prototype.lastIndexOf=function(t,r,n){return yg(this,t,r,n,!1)};function j6(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let a;for(a=0;a<n;++a){let s=parseInt(t.substr(a*2,2),16);if(Y0(s))return a;e[r+a]=s}return a}function V6(e,t,r,n){return Yu(z0(t,e.length-r),e,r,n)}function z6(e,t,r,n){return Yu(o4(t),e,r,n)}function J6(e,t,r,n){return Yu(Tg(t),e,r,n)}function G6(e,t,r,n){return Yu(a4(t,e.length-r),e,r,n)}U.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return j6(this,t,r,n);case"utf8":case"utf-8":return V6(this,t,r,n);case"ascii":case"latin1":case"binary":return z6(this,t,r,n);case"base64":return J6(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G6(this,t,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X6(e,t,r){return t===0&&r===e.length?K0.fromByteArray(e):K0.fromByteArray(e.slice(t,r))}function wg(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){let u,c,l,d;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[i+1],(u&192)===128&&(d=(o&31)<<6|u&63,d>127&&(a=d));break;case 3:u=e[i+1],c=e[i+2],(u&192)===128&&(c&192)===128&&(d=(o&15)<<12|(u&63)<<6|c&63,d>2047&&(d<55296||d>57343)&&(a=d));break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],(u&192)===128&&(c&192)===128&&(l&192)===128&&(d=(o&15)<<18|(u&63)<<12|(c&63)<<6|l&63,d>65535&&d<1114112&&(a=d))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=s}return Y6(n)}var hg=4096;function Y6(e){let t=e.length;if(t<=hg)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=hg));return r}function Z6(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Q6(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function e4(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=s4[e[o]];return i}function t4(e,t,r){let n=e.slice(t,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}U.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,U.prototype),i};function Gt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Gt(t,r,this.length);let i=this[t],o=1,a=0;for(;++a<r&&(o*=256);)i+=this[t+a]*o;return i};U.prototype.readUintBE=U.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Gt(t,r,this.length);let i=this[t+--r],o=1;for(;r>0&&(o*=256);)i+=this[t+--r]*o;return i};U.prototype.readUint8=U.prototype.readUInt8=function(t,r){return t=t>>>0,r||Gt(t,1,this.length),this[t]};U.prototype.readUint16LE=U.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Gt(t,2,this.length),this[t]|this[t+1]<<8};U.prototype.readUint16BE=U.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Gt(t,2,this.length),this[t]<<8|this[t+1]};U.prototype.readUint32LE=U.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Gt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};U.prototype.readUint32BE=U.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Gt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};U.prototype.readBigUInt64LE=Ri(function(t){t=t>>>0,Qo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&_s(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});U.prototype.readBigUInt64BE=Ri(function(t){t=t>>>0,Qo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&_s(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});U.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Gt(t,r,this.length);let i=this[t],o=1,a=0;for(;++a<r&&(o*=256);)i+=this[t+a]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};U.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Gt(t,r,this.length);let i=r,o=1,a=this[t+--i];for(;i>0&&(o*=256);)a+=this[t+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};U.prototype.readInt8=function(t,r){return t=t>>>0,r||Gt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};U.prototype.readInt16LE=function(t,r){t=t>>>0,r||Gt(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};U.prototype.readInt16BE=function(t,r){t=t>>>0,r||Gt(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};U.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Gt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};U.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Gt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};U.prototype.readBigInt64LE=Ri(function(t){t=t>>>0,Qo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&_s(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});U.prototype.readBigInt64BE=Ri(function(t){t=t>>>0,Qo(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&_s(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});U.prototype.readFloatLE=function(t,r){return t=t>>>0,r||Gt(t,4,this.length),Zo.read(this,t,!0,23,4)};U.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Gt(t,4,this.length),Zo.read(this,t,!1,23,4)};U.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Gt(t,8,this.length),Zo.read(this,t,!0,52,8)};U.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Gt(t,8,this.length),Zo.read(this,t,!1,52,8)};function Rr(e,t,r,n,i,o){if(!U.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rr(this,t,r,n,s,0)}let o=1,a=0;for(this[r]=t&255;++a<n&&(o*=256);)this[r+a]=t/o&255;return r+n};U.prototype.writeUintBE=U.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rr(this,t,r,n,s,0)}let o=n-1,a=1;for(this[r+o]=t&255;--o>=0&&(a*=256);)this[r+o]=t/a&255;return r+n};U.prototype.writeUint8=U.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,1,255,0),this[r]=t&255,r+1};U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function Eg(e,t,r,n,i){kg(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,r}function _g(e,t,r,n,i){kg(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a=a>>8,e[r+2]=a,a=a>>8,e[r+1]=a,a=a>>8,e[r]=a,r+8}U.prototype.writeBigUInt64LE=Ri(function(t,r=0){return Eg(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});U.prototype.writeBigUInt64BE=Ri(function(t,r=0){return _g(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});U.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);Rr(this,t,r,n,u-1,-u)}let o=0,a=1,s=0;for(this[r]=t&255;++o<n&&(a*=256);)t<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(t/a>>0)-s&255;return r+n};U.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);Rr(this,t,r,n,u-1,-u)}let o=n-1,a=1,s=0;for(this[r+o]=t&255;--o>=0&&(a*=256);)t<0&&s===0&&this[r+o+1]!==0&&(s=1),this[r+o]=(t/a>>0)-s&255;return r+n};U.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};U.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};U.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};U.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};U.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};U.prototype.writeBigInt64LE=Ri(function(t,r=0){return Eg(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});U.prototype.writeBigInt64BE=Ri(function(t,r=0){return _g(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function vg(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Sg(e,t,r,n,i){return t=+t,r=r>>>0,i||vg(e,t,r,4,34028234663852886e22,-34028234663852886e22),Zo.write(e,t,r,n,23,4),r+4}U.prototype.writeFloatLE=function(t,r,n){return Sg(this,t,r,!0,n)};U.prototype.writeFloatBE=function(t,r,n){return Sg(this,t,r,!1,n)};function Ag(e,t,r,n,i){return t=+t,r=r>>>0,i||vg(e,t,r,8,17976931348623157e292,-17976931348623157e292),Zo.write(e,t,r,n,52,8),r+8}U.prototype.writeDoubleLE=function(t,r,n){return Ag(this,t,r,!0,n)};U.prototype.writeDoubleBE=function(t,r,n){return Ag(this,t,r,!1,n)};U.prototype.copy=function(t,r,n,i){if(!U.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let o=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),o};U.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!U.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let a=t.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(t=a)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=r;o<n;++o)this[o]=t;else{let a=U.isBuffer(t)?t:U.from(t,i),s=a.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=a[o%s]}return this};var Yo={};function X0(e,t,r){Yo[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}X0("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);X0("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);X0("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=mg(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=mg(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function mg(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function r4(e,t,r){Qo(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&_s(t,e.length-(r+1))}function kg(e,t,r,n,i,o){if(e>r||e<t){let a=typeof t=="bigint"?"n":"",s;throw o>3?t===0||t===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:s=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:s=`>= ${t}${a} and <= ${r}${a}`,new Yo.ERR_OUT_OF_RANGE("value",s,e)}r4(n,i,o)}function Qo(e,t){if(typeof e!="number")throw new Yo.ERR_INVALID_ARG_TYPE(t,"number",e)}function _s(e,t,r){throw Math.floor(e)!==e?(Qo(e,r),new Yo.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new Yo.ERR_BUFFER_OUT_OF_BOUNDS:new Yo.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var n4=/[^+/0-9A-Za-z-_]/g;function i4(e){if(e=e.split("=")[0],e=e.trim().replace(n4,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function z0(e,t){t=t||1/0;let r,n=e.length,i=null,o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function o4(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function a4(e,t){let r,n,i,o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Tg(e){return K0.toByteArray(i4(e))}function Yu(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function In(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Y0(e){return e!==e}var s4=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function Ri(e){return typeof BigInt>"u"?u4:e}function u4(){throw new Error("BigInt not supported")}});var _,Cg,c4,Dg,y,p=V(()=>{"use strict";_=de(Zu(),1),Cg=_.Buffer.prototype.toString,c4=_.Buffer.from;_.Buffer.prototype.toString=function(e,...t){return e==="base64url"?Cg.call(this,"base64",...t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):Cg.call(this,e,...t)};_.Buffer.from=function(e,t,...r){return c4.call(_.Buffer,e,t==="base64url"?"base64":t,...r)};Dg="/",y={env:{NO_COLOR:"1"},argv:[],platform:"browser",exitCode:0,cwd:()=>Dg,chdir:e=>{Dg=e},stdout:{isTTY:!1},stderr:{isTTY:!1},exit(e){throw Error(`\uC791\uC5C5\uC774 \uC885\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4 (${e}). \uC704 \uB0B4\uC5ED\uC744 \uD655\uC778\uD558\uC138\uC694.`)}}});function Ig(e,t,r,n){let i=l4(r),o=f4(r);e.setUint32(t,n?o:i,n),e.setUint32(t+4,n?i:o,n)}var l4,f4,Ng=V(()=>{p();l4=e=>e/2**32|0,f4=e=>e>>>0});function Rg(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function d4(e,t=""){if(typeof e!="number")throw new TypeError(Z0(t)+"expected number, got "+typeof e);if(!Number.isSafeInteger(e)||e<0)throw new RangeError(Z0(t)+"expected integer >= 0, got "+e);return e}function Q0(e,t,r=""){if(Rg(e)&&(t===void 0||e.length===t))return e;t!==void 0&&d4(t,"length");let n=Rg(e),i=t!==void 0?` of length ${t}`:"",o=n?`length=${e.length}`:`type=${typeof e}`,a=Z0(r)+"expected Uint8Array"+i+", got "+o;throw n?new RangeError(a):new TypeError(a)}function ef(e,t=!0){if(e.destroyed)throw new Error("hash was destroyed");if(t&&e.finished)throw new Error("digest() was already called")}function Mg(e,t){Q0(e,void 0,"output");let r=t.outputLen;if(!(e.length>=r))throw new RangeError('"output" expected length >= '+r)}function tf(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Qu(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function ln(e,t){return e<<32-t|e>>>t}function h4(e,t,r="opts"){return Lg(e,"defaults"),t!==void 0&&Lg(t,r),Object.assign(Object.create(null),e,t)}function Og(e,t={}){if(typeof e!="function")throw new TypeError('"hashCons" expected function, got type='+typeof e);t=h4({},t,"info");let r=(i,o)=>e(o).update(i).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>e(i),Object.assign(r,t),Object.freeze(r)}var Z0,p4,Lg,Fg,rf=V(()=>{p();Z0=e=>e?`"${e}" `:"";p4=(e,t)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError((t==="object"?"":`"${t}" `)+"expected object, got type="+typeof e)},Lg=(e,t)=>{p4(e,t);let r=Object.getPrototypeOf(e);if(r!==Object.prototype&&r!==null)throw new TypeError(`"${t}" expected plain object`);if(Object.hasOwn(e,"__proto__"))throw new TypeError(`"${t}.__proto__" is not allowed`)};Fg=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])})});function Pg(e,t,r){return e&t^~e&r}function Bg(e,t,r){return e&t^e&r^t&r}var ec,Hg,Ug=V(()=>{p();Ng();rf();ec=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,i){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(t),this.view=Qu(this.buffer)}update(t){ef(this),Q0(t);let{view:r,buffer:n,blockLen:i}=this,o=t.length,a=!1;for(let s=0;s<o;){let u=Math.min(i-this.pos,o-s);if(u===i){let c=Qu(t);for(;i<=o-s;s+=i)this.process(c,s);a=!0;continue}n.set(s===0&&u===o?t:t.subarray(s,s+u),this.pos),this.pos+=u,s+=u,this.pos===i&&(this.process(r,0),this.pos=0,a=!0)}return this.length+=t.length,a&&this.roundClean(),this}digestInto(t){ef(this),Mg(t,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:a}=this;r[a++]=128,r.fill(0,a),this.padOffset>i-a&&(this.process(n,0),r.fill(0)),Ig(n,i-8,this.length*8,o),this.process(n,0),this.roundClean();let s=t===r?n:Qu(t),u=this.outputLen,c=u/4,l=this.get();if(u%4||c>l.length)throw new Error("invalid outputLen");for(let d=0;d<c;d++)s.setUint32(4*d,l[d],o)}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneIntoMeta(t){let{buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return t.destroyed=o,t.finished=i,t.length=n,t.pos=a,a&&t.buffer.set(r),t}clone(){return this._cloneInto()}},Hg=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225])});var m4,Li,nf,of,$g,qg=V(()=>{p();Ug();rf();m4=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Li=new Uint32Array(64),nf=class extends ec{A=0;B=0;C=0;D=0;E=0;F=0;G=0;H=0;constructor(t,r){super(64,t,8,!1),this.A=r[0]|0,this.B=r[1]|0,this.C=r[2]|0,this.D=r[3]|0,this.E=r[4]|0,this.F=r[5]|0,this.G=r[6]|0,this.H=r[7]|0}get(){let{A:t,B:r,C:n,D:i,E:o,F:a,G:s,H:u}=this;return[t,r,n,i,o,a,s,u]}set(t,r,n,i,o,a,s,u){this.A=t|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=a|0,this.G=s|0,this.H=u|0}_cloneInto(t){return(t||=new this.constructor).set(...this.get()),this._cloneIntoMeta(t)}process(t,r){for(let d=0;d<16;d++,r+=4)Li[d]=t.getUint32(r,!1);for(let d=16;d<64;d++){let m=Li[d-15],f=Li[d-2],h=ln(m,7)^ln(m,18)^m>>>3,b=ln(f,17)^ln(f,19)^f>>>10;Li[d]=b+Li[d-7]+h+Li[d-16]|0}let{A:n,B:i,C:o,D:a,E:s,F:u,G:c,H:l}=this;for(let d=0;d<64;d++){let m=ln(s,6)^ln(s,11)^ln(s,25),f=l+m+Pg(s,u,c)+m4[d]+Li[d]|0,b=(ln(n,2)^ln(n,13)^ln(n,22))+Bg(n,i,o)|0;l=c,c=u,u=s,s=a+f|0,a=o,o=i,i=n,n=f+b|0}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,u=u+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,i,o,a,s,u,c,l)}roundClean(){tf(Li)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),tf(this.buffer)}},of=class extends nf{constructor(){super(32,Hg)}},$g=Og(()=>new of,Fg(1))});var po={};Cn(po,{createHash:()=>$e,default:()=>g4,randomBytes:()=>ta,randomUUID:()=>gr});function $e(e){if(e!=="sha256")throw Error(`Unsupported browser hash: ${e}`);let t=$g.create();return{update(r){return t.update(typeof r=="string"?new TextEncoder().encode(r):r),this},digest(r){let n=af.Buffer.from(t.digest());return r?n.toString(r):n}}}var af,gr,ta,g4,Wt=V(()=>{p();qg();af=de(Zu());gr=()=>crypto.randomUUID(),ta=e=>af.Buffer.from(crypto.getRandomValues(new Uint8Array(e))),g4={createHash:$e,randomUUID:gr,randomBytes:ta}});var je=ie((VI,Kg)=>{"use strict";p();function Nn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Wg(e,t){for(var r="",n=0,i=-1,o=0,a,s=0;s<=e.length;++s){if(s<e.length)a=e.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){u===-1?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length===2||r.length===1){r="",n=0,i=s,o=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return r}function x4(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var ra={resolve:function(){for(var t="",r=!1,n,i=arguments.length-1;i>=-1&&!r;i--){var o;i>=0?o=arguments[i]:(n===void 0&&(n=y.cwd()),o=n),Nn(o),o.length!==0&&(t=o+"/"+t,r=o.charCodeAt(0)===47)}return t=Wg(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Nn(t),t.length===0)return".";var r=t.charCodeAt(0)===47,n=t.charCodeAt(t.length-1)===47;return t=Wg(t,!r),t.length===0&&!r&&(t="."),t.length>0&&n&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return Nn(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var n=arguments[r];Nn(n),n.length>0&&(t===void 0?t=n:t+="/"+n)}return t===void 0?".":ra.normalize(t)},relative:function(t,r){if(Nn(t),Nn(r),t===r||(t=ra.resolve(t),r=ra.resolve(r),t===r))return"";for(var n=1;n<t.length&&t.charCodeAt(n)===47;++n);for(var i=t.length,o=i-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var s=r.length,u=s-a,c=o<u?o:u,l=-1,d=0;d<=c;++d){if(d===c){if(u>c){if(r.charCodeAt(a+d)===47)return r.slice(a+d+1);if(d===0)return r.slice(a+d)}else o>c&&(t.charCodeAt(n+d)===47?l=d:d===0&&(l=0));break}var m=t.charCodeAt(n+d),f=r.charCodeAt(a+d);if(m!==f)break;m===47&&(l=d)}var h="";for(d=n+l+1;d<=i;++d)(d===i||t.charCodeAt(d)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+r.slice(a+l):(a+=l,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(Nn(t),t.length===0)return".";for(var r=t.charCodeAt(0),n=r===47,i=-1,o=!0,a=t.length-1;a>=1;--a)if(r=t.charCodeAt(a),r===47){if(!o){i=a;break}}else o=!1;return i===-1?n?"/":".":n&&i===1?"//":t.slice(0,i)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Nn(t);var n=0,i=-1,o=!0,a;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,u=-1;for(a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){n=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(c===r.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=t.length),t.slice(n,i)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!o){n=a+1;break}}else i===-1&&(o=!1,i=a+1);return i===-1?"":t.slice(n,i)}},extname:function(t){Nn(t);for(var r=-1,n=0,i=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(u===47){if(!o){n=s+1;break}continue}i===-1&&(o=!1,i=s+1),u===46?r===-1?r=s:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||i===-1||a===0||a===1&&r===i-1&&r===n+1?"":t.slice(r,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return x4("/",t)},parse:function(t){Nn(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var n=t.charCodeAt(0),i=n===47,o;i?(r.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,c=!0,l=t.length-1,d=0;l>=o;--l){if(n=t.charCodeAt(l),n===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),n===46?a===-1?a=l:d!==1&&(d=1):a!==-1&&(d=-1)}return a===-1||u===-1||d===0||d===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&i?r.base=r.name=t.slice(1,u):r.base=r.name=t.slice(s,u)):(s===0&&i?(r.name=t.slice(1,a),r.base=t.slice(1,u)):(r.name=t.slice(s,a),r.base=t.slice(s,u)),r.ext=t.slice(a,u)),s>0?r.dir=t.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};ra.posix=ra;Kg.exports=ra});var jg={};Cn(jg,{constants:()=>Mi,copyFile:()=>rc,copyFileSync:()=>qr,createReadStream:()=>ia,default:()=>b4,existsSync:()=>J,exportFilesystem:()=>uf,filesystemRevision:()=>sf,importFilesystem:()=>cf,lstat:()=>Mr,lstatSync:()=>Rt,mkdir:()=>oa,mkdirSync:()=>Ie,mkdtemp:()=>Oi,mkdtempSync:()=>Rn,readFile:()=>Lt,readFileSync:()=>re,readdir:()=>Ln,readdirSync:()=>oi,realpath:()=>ft,realpathSync:()=>ot,rename:()=>fn,renameSync:()=>ai,resetFilesystem:()=>vs,rm:()=>dn,rmSync:()=>Kt,rmdir:()=>lf,rmdirSync:()=>Ss,stat:()=>xt,statSync:()=>gt,unlink:()=>ks,unlinkSync:()=>na,writeFile:()=>As,writeFileSync:()=>rt});function vs(){Lr.clear(),ii=Date.now(),Lr.set("/",{directory:!0,stamp:++ii}),Ie("/tmp")}function cf(e){Lr.clear();for(let[t,r]of e)Lr.set(t,{...r,bytes:r.bytes?tc.Buffer.from(r.bytes):void 0}),ii=Math.max(ii,r.stamp)}function J(e){return Lr.has(Qr(e))}function gt(e){let t=Xt(e);return{size:t.bytes?.length??0,mtimeMs:t.stamp,ctimeMs:t.stamp,mtime:new Date(t.stamp),isFile:()=>!t.directory,isDirectory:()=>t.directory,isSymbolicLink:()=>!1}}function ot(e){return Xt(e),Qr(e)}function Ie(e,t={}){let r=Qr(e);if(J(r)){if(!Xt(r).directory||!t.recursive)throw xr("EEXIST",r);return}let n=ni.default.dirname(r);if(t.recursive&&!J(n)&&Ie(n,t),!Xt(n).directory)throw xr("ENOTDIR",n);Lr.set(r,{directory:!0,stamp:++ii})}function oi(e,t={}){let r=ot(e);if(!Xt(r).directory)throw xr("ENOTDIR",r);return[...Lr.keys()].filter(i=>i!==r&&ni.default.dirname(i)===r).sort().map(i=>t.withFileTypes?{name:ni.default.basename(i),isDirectory:()=>Xt(i).directory,isFile:()=>!Xt(i).directory,isSymbolicLink:()=>!1}:ni.default.basename(i))}function re(e,t){let r=Xt(e);if(r.directory)throw xr("EISDIR",Qr(e));let n=typeof t=="string"?t:t?.encoding;return n?r.bytes.toString(n):tc.Buffer.from(r.bytes)}function rt(e,t,r={}){let n=Qr(e);if(r?.flag==="wx"&&J(n))throw xr("EEXIST",n);if(!Xt(ni.default.dirname(n)).directory)throw xr("ENOTDIR",ni.default.dirname(n));if(J(n)&&Xt(n).directory)throw xr("EISDIR",n);let i=typeof r=="string"?r:r.encoding;Lr.set(n,{directory:!1,bytes:tc.Buffer.from(t,i),stamp:++ii})}function qr(e,t,r=0){if(r&Mi.COPYFILE_EXCL&&J(t))throw xr("EEXIST",Qr(t));rt(t,re(e))}function ai(e,t){let r=Qr(e),n=Qr(t);if(Xt(r),!Xt(ni.default.dirname(n)).directory)throw xr("ENOTDIR",n);if(Xt(r).directory)throw Error("Directory renames are not supported by the browser engine.");if(J(n)&&Xt(n).directory)throw xr("EISDIR",n);Lr.set(n,{...Xt(r),stamp:++ii}),Lr.delete(r)}function Kt(e,t={}){let r=Qr(e);if(!J(r)){if(t.force)return;throw xr("ENOENT",r)}if(r==="/")throw xr("EPERM",r);if(Xt(r).directory&&!t.recursive&&oi(r).length)throw xr("ENOTEMPTY",r);for(let n of Lr.keys())(n===r||n.startsWith(r+"/"))&&Lr.delete(n);ii++}function na(e){if(Xt(e).directory)throw xr("EISDIR",Qr(e));Kt(e)}function Ss(e){if(!Xt(e).directory)throw xr("ENOTDIR",Qr(e));Kt(e)}function Rn(e){let t=e+crypto.randomUUID();return Ie(t),t}function ia(e){return{[Symbol.asyncIterator]:async function*(){yield re(e)}}}var ni,tc,ii,Lr,Qr,xr,Xt,sf,uf,Rt,Mi,Lt,As,Ln,xt,Mr,ft,oa,fn,dn,ks,lf,Oi,rc,b4,qe=V(()=>{"use strict";p();ni=de(je(),1),tc=de(Zu(),1),ii=0,Lr=new Map,Qr=e=>ni.default.resolve(String(e)),xr=(e,t)=>Object.assign(Error(`${e}: ${t}`),{code:e,path:t}),Xt=e=>{let t=Qr(e),r=Lr.get(t);if(!r)throw xr("ENOENT",t);return r};sf=()=>ii,uf=()=>[...Lr].map(([e,t])=>[e,{...t,bytes:t.bytes?new Uint8Array(t.bytes):void 0}]);Rt=gt;Mi={COPYFILE_EXCL:1};Lt=async(...e)=>re(...e),As=async(...e)=>rt(...e),Ln=async(...e)=>oi(...e),xt=async(...e)=>gt(...e),Mr=xt,ft=async(...e)=>ot(...e),oa=async(...e)=>Ie(...e),fn=async(...e)=>ai(...e),dn=async(...e)=>Kt(...e),ks=async(...e)=>na(...e),lf=async(...e)=>Ss(...e),Oi=async(...e)=>Rn(...e),rc=async(...e)=>qr(...e),b4={existsSync:J,readFileSync:re,writeFileSync:rt,statSync:gt,lstatSync:Rt,realpathSync:ot,mkdirSync:Ie,readdirSync:oi,copyFileSync:qr,renameSync:ai,rmSync:Kt,unlinkSync:na,rmdirSync:Ss,mkdtempSync:Rn,createReadStream:ia,constants:Mi};vs()});var zg={};Cn(zg,{default:()=>y4,homedir:()=>nc,platform:()=>Vg,tmpdir:()=>si});var nc,si,Vg,y4,Ts=V(()=>{p();nc=()=>"/workspace",si=()=>"/tmp",Vg=()=>"browser",y4={homedir:nc,tmpdir:si,platform:Vg}});var pa=ie((BL,Qx)=>{"use strict";p();Qx.exports=Eo;Eo.CAPTURING_PHASE=1;Eo.AT_TARGET=2;Eo.BUBBLING_PHASE=3;function Eo(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=Eo.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]}Eo.prototype=Object.create(Object.prototype,{constructor:{value:Eo},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 pd=ie((UL,t2)=>{"use strict";p();var e2=pa();t2.exports=dd;function dd(){e2.call(this),this.view=null,this.detail=0}dd.prototype=Object.create(e2.prototype,{constructor:{value:dd},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var md=ie((qL,n2)=>{"use strict";p();var r2=pd();n2.exports=hd;function hd(){r2.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}hd.prototype=Object.create(r2.prototype,{constructor:{value:hd},initMouseEvent:{value:function(e,t,r,n,i,o,a,s,u,c,l,d,m,f,h){switch(this.initEvent(e,t,r,n,i),this.screenX=o,this.screenY=a,this.clientX=s,this.clientY=u,this.ctrlKey=c,this.altKey=l,this.shiftKey=d,this.metaKey=m,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=h}},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 Sc=ie((KL,o2)=>{"use strict";p();o2.exports=vc;var dA=1,pA=3,hA=4,mA=5,gA=7,xA=8,bA=9,yA=11,wA=12,EA=13,_A=14,vA=15,SA=17,AA=18,kA=19,TA=20,CA=21,DA=22,IA=23,NA=24,RA=25,LA=[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"],MA=[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."],i2={INDEX_SIZE_ERR:dA,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:pA,WRONG_DOCUMENT_ERR:hA,INVALID_CHARACTER_ERR:mA,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:gA,NOT_FOUND_ERR:xA,NOT_SUPPORTED_ERR:bA,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:yA,SYNTAX_ERR:wA,INVALID_MODIFICATION_ERR:EA,NAMESPACE_ERR:_A,INVALID_ACCESS_ERR:vA,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:SA,SECURITY_ERR:AA,NETWORK_ERR:kA,ABORT_ERR:TA,URL_MISMATCH_ERR:CA,QUOTA_EXCEEDED_ERR:DA,TIMEOUT_ERR:IA,INVALID_NODE_TYPE_ERR:NA,DATA_CLONE_ERR:RA};function vc(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=MA[e],this.name=LA[e]}vc.prototype.__proto__=Error.prototype;for(_c in i2)gd={value:i2[_c]},Object.defineProperty(vc,_c,gd),Object.defineProperty(vc.prototype,_c,gd);var gd,_c});var Ac=ie(a2=>{p();a2.isApiWritable=!globalThis.__domino_frozen__});var St=ie(Ge=>{"use strict";p();var vt=Sc(),Mt=vt,OA=Ac().isApiWritable;Ge.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"};Ge.IndexSizeError=function(){throw new vt(Mt.INDEX_SIZE_ERR)};Ge.HierarchyRequestError=function(){throw new vt(Mt.HIERARCHY_REQUEST_ERR)};Ge.WrongDocumentError=function(){throw new vt(Mt.WRONG_DOCUMENT_ERR)};Ge.InvalidCharacterError=function(){throw new vt(Mt.INVALID_CHARACTER_ERR)};Ge.NoModificationAllowedError=function(){throw new vt(Mt.NO_MODIFICATION_ALLOWED_ERR)};Ge.NotFoundError=function(){throw new vt(Mt.NOT_FOUND_ERR)};Ge.NotSupportedError=function(){throw new vt(Mt.NOT_SUPPORTED_ERR)};Ge.InvalidStateError=function(){throw new vt(Mt.INVALID_STATE_ERR)};Ge.SyntaxError=function(){throw new vt(Mt.SYNTAX_ERR)};Ge.InvalidModificationError=function(){throw new vt(Mt.INVALID_MODIFICATION_ERR)};Ge.NamespaceError=function(){throw new vt(Mt.NAMESPACE_ERR)};Ge.InvalidAccessError=function(){throw new vt(Mt.INVALID_ACCESS_ERR)};Ge.TypeMismatchError=function(){throw new vt(Mt.TYPE_MISMATCH_ERR)};Ge.SecurityError=function(){throw new vt(Mt.SECURITY_ERR)};Ge.NetworkError=function(){throw new vt(Mt.NETWORK_ERR)};Ge.AbortError=function(){throw new vt(Mt.ABORT_ERR)};Ge.UrlMismatchError=function(){throw new vt(Mt.URL_MISMATCH_ERR)};Ge.QuotaExceededError=function(){throw new vt(Mt.QUOTA_EXCEEDED_ERR)};Ge.TimeoutError=function(){throw new vt(Mt.TIMEOUT_ERR)};Ge.InvalidNodeTypeError=function(){throw new vt(Mt.INVALID_NODE_TYPE_ERR)};Ge.DataCloneError=function(){throw new vt(Mt.DATA_CLONE_ERR)};Ge.nyi=function(){throw new Error("NotYetImplemented")};Ge.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};Ge.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
2
+ `+new Error().stack)};Ge.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:OA})};Ge.merge=function(e,t){for(var r in t)e[r]=t[r]};Ge.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};Ge.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};Ge.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var xd=ie((XL,u2)=>{"use strict";p();var _o=pa(),FA=md(),PA=St();u2.exports=s2;function s2(){}s2.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],o=0,a=i.length;o<a;o++){var s=i[o];if(s.listener===r&&s.capture===n)return}var u={listener:r,capture:n};typeof r=="function"&&(u.f=r),i.push(u)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var i=this._listeners[t];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.listener===r&&s.capture===n){i.length===1?this._listeners[t]=void 0:i.splice(o,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(c,l){var d=l.type,m=l.eventPhase;if(l.currentTarget=c,m!==_o.CAPTURING_PHASE&&c._handlers&&c._handlers[d]){var f=c._handlers[d],h;if(typeof f=="function")h=f.call(l.currentTarget,l);else{var b=f.handleEvent;if(typeof b!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");h=b.call(f,l)}l.type==="mouseover"?h===!0&&l.preventDefault():h===!1&&l.preventDefault()}var w=c._listeners&&c._listeners[d];if(w){w=w.slice();for(var D=0,k=w.length;D<k;D++){if(l._immediatePropagationStopped)return;var T=w[D];if(!(m===_o.CAPTURING_PHASE&&!T.capture||m===_o.BUBBLING_PHASE&&T.capture))if(T.f)T.f.call(l.currentTarget,l);else{var S=T.listener.handleEvent;if(typeof S!="function")throw new TypeError("handleEvent property of event listener object is not a function.");S.call(T.listener,l)}}}}(!t._initialized||t._dispatching)&&PA.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var i=[],o=this.parentNode;o;o=o.parentNode)i.push(o);t.eventPhase=_o.CAPTURING_PHASE;for(var a=i.length-1;a>=0&&(n(i[a],t),!t._propagationStopped);a--);if(t._propagationStopped||(t.eventPhase=_o.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=_o.BUBBLING_PHASE;for(var s=0,u=i.length;s<u&&(n(i[s],t),!t._propagationStopped);s++);}if(t._dispatching=!1,t.eventPhase=_o.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof FA)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 bd=ie((ZL,c2)=>{"use strict";p();var li=St(),tn=c2.exports={valid:function(e){return li.assert(e,"list falsy"),li.assert(e._previousSibling,"previous falsy"),li.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){li.assert(tn.valid(e)&&tn.valid(t));var r=e,n=e._previousSibling,i=t,o=t._previousSibling;r._previousSibling=o,n._nextSibling=i,o._nextSibling=r,i._previousSibling=n,li.assert(tn.valid(e)&&tn.valid(t))},replace:function(e,t){li.assert(tn.valid(e)&&(t===null||tn.valid(t))),t!==null&&tn.insertBefore(t,e),tn.remove(e),li.assert(tn.valid(e)&&(t===null||tn.valid(t)))},remove:function(e){li.assert(tn.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,li.assert(tn.valid(e))}}}});var yd=ie((eM,x2)=>{"use strict";p();x2.exports={serializeOne:KA,\u0275escapeMatchingClosingTag:h2,\u0275escapeClosingCommentTag:m2,\u0275escapeProcessingInstructionContent:g2};var p2=St(),vo=p2.NAMESPACE,l2={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},BA={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},HA={},f2=/[&<>\u00A0]/g,d2=/[&"<>\u00A0]/g;function UA(e){return f2.test(e)?e.replace(f2,t=>{switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case"\xA0":return"&nbsp;"}}):e}function $A(e){return d2.test(e)?e.replace(d2,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"\xA0":return"&nbsp;"}}):e}function qA(e){var t=e.namespaceURI;return t?t===vo.XML?"xml:"+e.localName:t===vo.XLINK?"xlink:"+e.localName:t===vo.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function h2(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],i=e.matchAll(new RegExp(r,"ig"));for(let o of i)n[o.index]="&lt;";return n.join("")}var WA=/--!?>/;function m2(e){return WA.test(e)?e.replace(/(--\!?)>/g,"$1&gt;"):e}function g2(e){return e.includes(">")?e.replaceAll(">","&gt;"):e}function KA(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,i=n===vo.HTML,o=i||n===vo.SVG||n===vo.MATHML?e.localName:e.tagName;r+="<"+o;for(var a=0,s=e._numattrs;a<s;a++){var u=e._attr(a);r+=" "+qA(u),u.value!==void 0&&(r+='="'+$A(u.value)+'"')}if(r+=">",!(i&&BA[o])){var c=e.serialize();l2[o.toUpperCase()]&&(c=h2(c,o)),i&&HA[o]&&c.charAt(0)===`
3
+ `&&(r+=`
4
+ `),r+=c,r+="</"+o+">"}break;case 3:case 4:var l;t.nodeType===1&&t.namespaceURI===vo.HTML?l=t.tagName:l="",l2[l]||l==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=UA(e.data);break;case 8:r+="<!--"+m2(e.data)+"-->";break;case 7:let d=g2(e.data);r+="<?"+e.target+" "+d+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:p2.InvalidStateError()}return r}});var ar=ie((rM,v2)=>{"use strict";p();v2.exports=dt;var _2=xd(),kc=bd(),b2=yd(),Xe=St();function dt(){_2.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var Or=dt.ELEMENT_NODE=1,wd=dt.ATTRIBUTE_NODE=2,Tc=dt.TEXT_NODE=3,jA=dt.CDATA_SECTION_NODE=4,VA=dt.ENTITY_REFERENCE_NODE=5,Ed=dt.ENTITY_NODE=6,y2=dt.PROCESSING_INSTRUCTION_NODE=7,w2=dt.COMMENT_NODE=8,Ls=dt.DOCUMENT_NODE=9,rn=dt.DOCUMENT_TYPE_NODE=10,Hi=dt.DOCUMENT_FRAGMENT_NODE=11,_d=dt.NOTATION_NODE=12,vd=dt.DOCUMENT_POSITION_DISCONNECTED=1,Sd=dt.DOCUMENT_POSITION_PRECEDING=2,Ad=dt.DOCUMENT_POSITION_FOLLOWING=4,E2=dt.DOCUMENT_POSITION_CONTAINS=8,kd=dt.DOCUMENT_POSITION_CONTAINED_BY=16,Td=dt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;dt.prototype=Object.create(_2.prototype,{baseURI:{get:Xe.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===Or?this.parentNode:null}},hasChildNodes:{value:Xe.shouldOverride},firstChild:{get:Xe.shouldOverride},lastChild:{get:Xe.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===dt.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===dt.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,o,a;if(!t.nodeType)throw new TypeError("not a node");switch(i.nodeType){case Ls:case Hi:case Or:break;default:Xe.HierarchyRequestError()}switch(t.isAncestor(i)&&Xe.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==i&&Xe.NotFoundError(),t.nodeType){case Hi:case rn:case Or:case Tc:case y2:case w2:break;default:Xe.HierarchyRequestError()}if(i.nodeType===Ls)switch(t.nodeType){case Tc:Xe.HierarchyRequestError();break;case Hi:switch(t._countChildrenOfType(Tc)>0&&Xe.HierarchyRequestError(),t._countChildrenOfType(Or)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===rn&&Xe.HierarchyRequestError(),a=r.nextSibling;a!==null;a=a.nextSibling)a.nodeType===rn&&Xe.HierarchyRequestError();o=i._countChildrenOfType(Or),n?o>0&&Xe.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Or)&&Xe.HierarchyRequestError();break;default:Xe.HierarchyRequestError()}break;case Or:if(r!==null)for(n&&r.nodeType===rn&&Xe.HierarchyRequestError(),a=r.nextSibling;a!==null;a=a.nextSibling)a.nodeType===rn&&Xe.HierarchyRequestError();o=i._countChildrenOfType(Or),n?o>0&&Xe.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Or)&&Xe.HierarchyRequestError();break;case rn:if(r===null)i._countChildrenOfType(Or)&&Xe.HierarchyRequestError();else for(a=i.firstChild;a!==null&&a!==r;a=a.nextSibling)a.nodeType===Or&&Xe.HierarchyRequestError();o=i._countChildrenOfType(rn),n?o>0&&Xe.HierarchyRequestError():(o>1||o===1&&r.nodeType!==rn)&&Xe.HierarchyRequestError();break}else t.nodeType===rn&&Xe.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&&Xe.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)&kd)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return vd+Td;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 vd+Td;i=Math.min(r.length,n.length);for(var o=1;o<i;o++)if(r[o]!==n[o])return r[o].index<n[o].index?Ad:Sd;return r.length<n.length?Ad+kd:Sd+E2}},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 Or:return this._lookupNamespacePrefix(t,this);case Ls:return r=this.documentElement,r?r.lookupPrefix(t):null;case Ed:case _d:case Hi:case rn:return null;case wd: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 Or:return Xe.shouldOverride();case Ls:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case Ed:case _d:case rn:case Hi:return null;case wd: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;Xe.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&&Xe.WrongDocumentError()}},removeChildren:{value:Xe.shouldOverride},_insertOrReplace:{value:function(t,r,n){var i=this,o,a;if(i.nodeType===Hi&&i.rooted&&Xe.HierarchyRequestError(),t._childNodes&&(o=r===null?t._childNodes.length:r.index,i.parentNode===t)){var s=i.index;s<o&&o--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var u=r;u===null&&(u=t.firstChild);var c=i.rooted&&t.rooted;if(i.nodeType===Hi){for(var l=[0,n?1:0],d,m=i.firstChild;m!==null;m=d)d=m.nextSibling,l.push(m),m.parentNode=t;var f=l.length;if(n?kc.replace(u,f>2?l[2]:null):f>2&&u!==null&&kc.insertBefore(l[2],u),t._childNodes)for(l[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,l),a=2;a<f;a++)l[a]._index=l[0]+(a-2);else t._firstChild===r&&(f>2?t._firstChild=l[2]:n&&(t._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,t.rooted)for(t.modify(),a=2;a<f;a++)t.doc.mutateInsert(l[a])}else{if(r===i)return;c?i._remove():i.parentNode&&i.remove(),i.parentNode=t,n?(kc.replace(u,i),t._childNodes?(i._index=o,t._childNodes[o]=i):t._firstChild===r&&(t._firstChild=i)):(u!==null&&kc.insertBefore(i,u),t._childNodes?(i._index=o,t._childNodes.splice(o,0,i)):t._firstChild===r&&(t._firstChild=i)),c?(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===dt.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===dt.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+=b2.serializeOne(t,this);return e}},outerHTML:{get:function(){return b2.serializeOne(this,{nodeType:0})},set:Xe.nyi},ELEMENT_NODE:{value:Or},ATTRIBUTE_NODE:{value:wd},TEXT_NODE:{value:Tc},CDATA_SECTION_NODE:{value:jA},ENTITY_REFERENCE_NODE:{value:VA},ENTITY_NODE:{value:Ed},PROCESSING_INSTRUCTION_NODE:{value:y2},COMMENT_NODE:{value:w2},DOCUMENT_NODE:{value:Ls},DOCUMENT_TYPE_NODE:{value:rn},DOCUMENT_FRAGMENT_NODE:{value:Hi},NOTATION_NODE:{value:_d},DOCUMENT_POSITION_DISCONNECTED:{value:vd},DOCUMENT_POSITION_PRECEDING:{value:Sd},DOCUMENT_POSITION_FOLLOWING:{value:Ad},DOCUMENT_POSITION_CONTAINS:{value:E2},DOCUMENT_POSITION_CONTAINED_BY:{value:kd},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:Td}})});var A2=ie((oM,S2)=>{"use strict";p();S2.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 T2=ie((sM,k2)=>{"use strict";p();function zA(e){return this[e]||null}function JA(e){return e||(e=[]),e.item=zA,e}k2.exports=JA});var So=ie((cM,C2)=>{"use strict";p();var Cd;try{Cd=A2()}catch{Cd=T2()}C2.exports=Cd});var Cc=ie((fM,N2)=>{"use strict";p();N2.exports=I2;var D2=ar(),GA=So();function I2(){D2.call(this),this._firstChild=this._childNodes=null}I2.prototype=Object.create(D2.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 GA;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 Dc=ie(Nd=>{"use strict";p();Nd.isValidName=rk;Nd.isValidQName=nk;var XA=/^[_:A-Za-z][-.:\w]+$/,YA=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,Ms="_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",Os="-._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",Ao="["+Ms+"]["+Os+"]*",Dd=Ms+":",Id=Os+":",ZA=new RegExp("^["+Dd+"]["+Id+"]*$"),QA=new RegExp("^("+Ao+"|"+Ao+":"+Ao+")$"),R2=/[\uD800-\uDB7F\uDC00-\uDFFF]/,L2=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,M2=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;Ms+="\uD800-\u{EFC00}-\uDFFF";Os+="\uD800-\u{EFC00}-\uDFFF";Ao="["+Ms+"]["+Os+"]*";Dd=Ms+":";Id=Os+":";var ek=new RegExp("^["+Dd+"]["+Id+"]*$"),tk=new RegExp("^("+Ao+"|"+Ao+":"+Ao+")$");function rk(e){if(XA.test(e)||ZA.test(e))return!0;if(!R2.test(e)||!ek.test(e))return!1;var t=e.match(L2),r=e.match(M2);return r!==null&&2*r.length===t.length}function nk(e){if(YA.test(e)||QA.test(e))return!0;if(!R2.test(e)||!tk.test(e))return!1;var t=e.match(L2),r=e.match(M2);return r!==null&&2*r.length===t.length}});var Ld=ie(Rd=>{"use strict";p();var O2=St();Rd.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 ik(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 ik(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){O2.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",i=e.type==="limited unsigned long with fallback",o=e.min,a=e.max,s=e.setmin;return o===void 0&&(r&&(o=0),n&&(o=-2147483648),i&&(o=1)),a===void 0&&(r||n||i)&&(a=2147483647),{get:function(){var u=this._getattr(e.name),c=e.float?parseFloat(u):parseInt(u,10);if(u===null||!isFinite(c)||o!==void 0&&c<o||a!==void 0&&c>a)return t.call(this);if(r||n||i){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(u))return t.call(this);c=c|0}return c},set:function(u){e.float||(u=Math.floor(u)),s!==void 0&&u<s&&O2.IndexSizeError(e.name+" set to "+u),r?u=u<0||u>2147483647?t.call(this):u|0:i?u=u<1||u>2147483647?t.call(this):u|0:n&&(u=u<-2147483648||u>2147483647?t.call(this):u|0),this._setattr(e.name,String(u))}}}Rd.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 B2=ie((xM,P2)=>{"use strict";p();P2.exports=F2;var ok=ar();function F2(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}F2.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===ok.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 Od=ie((yM,$2)=>{"use strict";p();var Md=St();$2.exports=U2;function U2(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(U2.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=ha(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=ha(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=ha(this),t=0,r=arguments.length;t<r;t++){var n=Fs(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=ha(this),t=0,r=arguments.length;t<r;t++){var n=Fs(arguments[t]),i=e.indexOf(n);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(t,r){return t=Fs(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)===""&&Md.SyntaxError(),t=Fs(t),r=Fs(r);var n=ha(this),i=n.indexOf(t);if(i<0)return!1;var o=n.indexOf(r);return o<0?n[i]=r:i<o?(n[i]=r,n.splice(o,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?(H2(this,e),this._setString(e.join(" ").trim())):H2(this,ha(this)),this._lastStringValue=this._getString()}}});function H2(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 Fs(e){return e=String(e),e===""&&Md.SyntaxError(),/[ \t\r\n\f]/.test(e)&&Md.InvalidCharacterError(),e}function ak(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function ha(e){var t=e._getString();if(t===e._lastStringValue)return ak(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 o="$"+i;return n[o]?!1:(n[o]=!0,!0)})}});var Lc=ie((xa,z2)=>{"use strict";p();var Ic=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),sk=function(e,t){return e.compareDocumentPosition(t)},uk=function(e,t){return sk(e,t)&2?1:-1},Rc=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},ga=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},ck=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},lk=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},ma=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},q2=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(Se.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)})):Se.ident.test(e)?Ui(e):e},Ui=function(e){return e.replace(Se.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)})},fk=(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}})(),K2=function(e,t){var r=Se.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},Fr=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},W2=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},dk=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}},Fd=function(e,t,r){var n=dk(e),i=n.group,o=n.offset,a=r?lk:ck,s=r?ga:Rc;return function(u){if(ma(u))for(var c=a(u.parentNode),l=0;c;){if(t(c,u)&&l++,c===u)return l-=o,i&&l?l%i===0&&l<0==i<0:!l;c=s(c)}}},Qt={"*":(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=j2[t],function(i){var o;switch(e){case"for":o=i.htmlFor;break;case"class":o=i.className,o===""&&i.getAttribute("class")==null&&(o=null);break;case"href":case"src":o=i.getAttribute(e,2);break;case"title":o=i.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(i.getAttribute){o=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;o=i[e]!=null?i[e]:i.getAttribute&&i.getAttribute(e);break}if(o!=null)return o=o+"",n&&(o=o.toLowerCase(),r=r.toLowerCase()),t(o,r)}},":first-child":function(e){return!ga(e)&&ma(e)},":last-child":function(e){return!Rc(e)&&ma(e)},":only-child":function(e){return!ga(e)&&!Rc(e)&&ma(e)},":nth-child":function(e,t){return Fd(e,function(){return!0},t)},":nth-last-child":function(e){return Qt[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=Bd(e);return function(r){return!t(r)}},":first-of-type":function(e){if(ma(e)){for(var t=e.nodeName;e=ga(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(ma(e)){for(var t=e.nodeName;e=Rc(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return Qt[":first-of-type"](e)&&Qt[":last-of-type"](e)},":nth-of-type":function(e,t){return Fd(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return Qt[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!Qt[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===Ic.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return Bd(e)},":matches":function(e){return Qt[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),i=Bd(r.join(","));return Fd(n,i,t)},":nth-last-match":function(e){return Qt[":nth-match"](e,!0)},":links-here":function(e){return e+""==Ic.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===Ic.location.host;var t=+e+1;return function(r){if(r.href){var n=Ic.location+"",i=r+"";return W2(n,t)===W2(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!Qt[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!Qt[":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!Qt[":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 V2(e,t).length>0}}},j2={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,i,o;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(i=e[r-1],o=e[r+t.length],(!i||i===" ")&&(!o||o===" "))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}},Ps={" ":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=ga(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=ga(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 o=i.ownerDocument,a=o.getElementsByTagName("*"),s=a.length;s--;)if(r=a[s],n.test(i))return r=null,!0;r=null}return n.combinator=function(i){if(!(!r||!r.getAttribute)){var o=r.getAttribute(t)||"";if(o[0]==="#"&&(o=o.substring(1)),o===i.id&&e(r))return r}},n}},Se={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)$/};Se.cssid=Fr(Se.cssid,"nonascii",Se.nonascii);Se.cssid=Fr(Se.cssid,"escape",Se.escape);Se.qname=Fr(Se.qname,"cssid",Se.cssid);Se.simple=Fr(Se.simple,"cssid",Se.cssid);Se.ref=Fr(Se.ref,"cssid",Se.cssid);Se.attr=Fr(Se.attr,"cssid",Se.cssid);Se.pseudo=Fr(Se.pseudo,"cssid",Se.cssid);Se.inside=Fr(Se.inside,`[^"'>]*`,Se.inside);Se.attr=Fr(Se.attr,"inside",K2("\\[","\\]"));Se.pseudo=Fr(Se.pseudo,"inside",K2("\\(","\\)"));Se.simple=Fr(Se.simple,"pseudo",Se.pseudo);Se.simple=Fr(Se.simple,"attr",Se.attr);Se.ident=Fr(Se.ident,"cssid",Se.cssid);Se.str_escape=Fr(Se.str_escape,"escape",Se.escape);var Bs=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],i=[],o,a,s,u,c;t;){if(s=Se.qname.exec(t))t=t.substring(s[0].length),a=Ui(s[1]),i.push(Nc(a,!0));else if(s=Se.simple.exec(t))t=t.substring(s[0].length),a="*",i.push(Nc(a,!0)),i.push(Nc(s));else throw new SyntaxError("Invalid selector.");for(;s=Se.simple.exec(t);)t=t.substring(s[0].length),i.push(Nc(s));if(t[0]==="!"&&(t=t.substring(1),o=hk(),o.qname=a,i.push(o.simple)),s=Se.ref.exec(t)){t=t.substring(s[0].length),c=Ps.ref(Pd(i),Ui(s[1])),n.push(c.combinator),i=[];continue}if(s=Se.combinator.exec(t)){if(t=t.substring(s[0].length),u=s[1]||s[2]||s[3],u===","){n.push(Ps.noop(Pd(i)));break}}else u="noop";if(!Ps[u])throw new SyntaxError("Bad combinator.");n.push(Ps[u](Pd(i))),i=[]}return r=pk(n),r.qname=a,r.sel=t,o&&(o.lname=r.qname,o.test=r,o.qname=o.qname,o.sel=r.sel,r=o),c&&(c.test=r,c.qname=r.qname,c.sel=r.sel,r=c),r},Nc=function(e,t){if(t)return e==="*"?Qt["*"]:Qt.type(e);if(e[1])return e[1][0]==="."?Qt.attr("class","~=",Ui(e[1].substring(1)),!1):Qt.attr("id","=",Ui(e[1].substring(1)),!1);if(e[2])return e[3]?Qt[Ui(e[2])](q2(e[3])):Qt[Ui(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),Qt.attr(Ui(e[4]),e[5]||"-",q2(r),n)}throw new SyntaxError("Unknown Selector.")},Pd=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}}},pk=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}},hk=function(){var e;function t(r){for(var n=r.ownerDocument,i=n.getElementsByTagName(t.lname),o=i.length;o--;)if(t.test(i[o])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},Bd=function(e){for(var t=Bs(e),r=[t];t.sel;)t=Bs(t.sel),r.push(t);return r.length<2?t:function(n){for(var i=r.length,o=0;o<i;o++)if(r[o](n))return!0}},V2=function(e,t){for(var r=[],n=Bs(e),i=t.getElementsByTagName(n.qname),o=0,a;a=i[o++];)n(a)&&r.push(a);if(n.sel){for(;n.sel;)for(n=Bs(n.sel),i=t.getElementsByTagName(n.qname),o=0;a=i[o++];)n(a)&&fk.call(r,a)===-1&&r.push(a);r.sort(uk)}return r};z2.exports=xa=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 V2(e,t)};xa.selectors=Qt;xa.operators=j2;xa.combinators=Ps;xa.matches=function(e,t){var r={sel:t};do if(r=Bs(r.sel),r(e))return!0;while(r.sel);return!1}});var Mc=ie((_M,J2)=>{"use strict";p();var mk=ar(),gk=bd(),Hd=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var i=t[n],o=i instanceof mk;r.appendChild(o?i:e.createTextNode(String(i)))}return r},xk={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(o){return o===n});)n=n.nextSibling;var i=Hd(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(a){return a===n});)n=n.previousSibling;var i=Hd(this.doc,t),o=n?n.nextSibling:r.firstChild;r.insertBefore(i,o)}}},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),gk.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(o){return o===n});)n=n.nextSibling;var i=Hd(this.doc,t);this.parentNode===r?r.replaceChild(i,this):r.insertBefore(i,n)}}}};J2.exports=xk});var Ud=ie((SM,X2)=>{"use strict";p();var G2=ar(),bk={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===G2.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===G2.ELEMENT_NODE)return e}return null}}};X2.exports=bk});var $d=ie((kM,Z2)=>{"use strict";p();Z2.exports=Y2;var ba=St();function Y2(e){this.element=e}Object.defineProperties(Y2.prototype,{length:{get:ba.shouldOverride},item:{value:ba.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:ba.nyi},setNamedItemNS:{value:ba.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;ba.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;ba.NotFoundError()}}})});var wa=ie((CM,nb)=>{"use strict";p();nb.exports=$i;var qd=Dc(),bt=St(),Pn=bt.NAMESPACE,Fc=Ld(),mn=ar(),Wd=So(),yk=yd(),Oc=B2(),ya=Sc(),wk=Od(),Kd=Lc(),eb=Cc(),Ek=Mc(),_k=Ud(),tb=$d(),Q2=Object.create(null);function $i(e,t,r,n){eb.call(this),this.nodeType=mn.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 jd(e,t){if(e.nodeType===mn.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)jd(e.childNodes[r],t)}$i.prototype=Object.create(eb.prototype,{isHTML:{get:function(){return this.namespaceURI===Pn.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=Q2[t];r||(Q2[t]=r=bt.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 jd(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return jd(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:bt.nyi},outerHTML:{get:function(){return yk.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===mn.DOCUMENT_NODE&&bt.NoModificationAllowedError(),r.nodeType===mn.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 bt.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==mn.ELEMENT_NODE)throw new TypeError("not an element");return t=bt.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=bt.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=bt.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===mn.DOCUMENT_NODE)&&bt.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:bt.SyntaxError()}(!(n instanceof $i)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Pn.HTML)&&(n=n.ownerDocument.createElementNS(Pn.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 rb(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new zd(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===mn.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===mn.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=vk(t):r=Vd(t),new Oc(this,r)):new Wd}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=Vd(r):r==="*"?n=Sk(t):n=Ak(t,r),new Oc(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new Wd;return r}return t=t.split(/[ \t\r\n\f]+/),new Oc(this,kk(t))}},getElementsByName:{value:function(t){return new Oc(this,Tk(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Pn.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],o=this._attrsByLName[i],a=o.cloneNode();a._setOwnerElement(t),t._attrsByLName[i]=a,t._addQName(a)}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 o=this._attr(n);if(o.prefix==="xmlns"&&o.value===t&&r.lookupNamespaceURI(o.localName)===t)return o.localName}var a=this.parentElement;return a?a._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===Pn.XMLNS&&(i.prefix==="xmlns"&&i.localName===t||t===null&&i.prefix===null&&i.localName==="xmlns"))return i.value||null}var o=this.parentElement;return o?o.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=bt.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=bt.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),qd.isValidName(t)||bt.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=bt.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),qd.isValidName(t)||bt.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=bt.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var i=r.indexOf(":"),o,a;i<0?(o=null,a=r):(o=r.substring(0,i),a=r.substring(i+1)),(t===""||t===void 0)&&(t=null);var s=(t===null?"":t)+"|"+a,u=this._attrsByLName[s],c;u||(u=new Hs(this,a,o,t),c=!0,this._attrsByLName[s]=u,this._attributes&&(this._attributes[this._attrKeys.length]=u),this._attrKeys.push(s),this._addQName(u)),u.value=n,c&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),qd.isValidQName(r)||bt.InvalidCharacterError();var i=r.indexOf(":"),o=i<0?null:r.substring(0,i);(o!==null&&t===null||o==="xml"&&t!==Pn.XML||(r==="xmlns"||o==="xmlns")&&t!==Pn.XMLNS||t===Pn.XMLNS&&!(r==="xmlns"||o==="xmlns"))&&bt.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new ya(ya.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 ya(ya.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 ya(ya.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=bt.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 o=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,o,1),this._attributes[t]=void 0),this._attrKeys.splice(o,1);var a=r.onchange;r._setOwnerElement(null),a&&a.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 o=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,o,1),this._attrKeys.splice(o,1),this._removeQName(i);var a=i.onchange;i._setOwnerElement(null),a&&a.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&&bt.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 Hs(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);bt.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 bt.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:Fc.property({name:"id"}),className:Fc.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new wk(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 Kd.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===mn.ELEMENT_NODE);return null}},querySelector:{value:function(e){return Kd(e,this)[0]}},querySelectorAll:{value:function(e){var t=Kd(e,this);return t.item?t:new Wd(t)}}});Object.defineProperties($i.prototype,Ek);Object.defineProperties($i.prototype,_k);Fc.registerChangeHandler($i,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});Fc.registerChangeHandler($i,"class",function(e,t,r,n){e._classList&&e._classList._update()});function Hs(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)}Hs.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 Hs(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return mn.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}}});$i._Attr=Hs;function zd(e){tb.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]]}zd.prototype=Object.create(tb.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&&(zd.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 rb(e){this.element=e,this.updateCache()}rb.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===mn.ELEMENT_NODE){this[this.childrenByNumber.length]=i,this.childrenByNumber.push(i);var o=i.getAttribute("id");o&&!this.childrenByName[o]&&(this.childrenByName[o]=i);var a=i.getAttribute("name");a&&this.element.namespaceURI===Pn.HTML&&t.test(this.element.localName)&&!this.childrenByName[a]&&(this.childrenByName[o]=i)}}}}});function Vd(e){return function(t){return t.localName===e}}function vk(e){var t=bt.toASCIILowerCase(e);return t===e?Vd(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function Sk(e){return function(t){return t.namespaceURI===e}}function Ak(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function kk(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function Tk(e){return function(t){return t.namespaceURI!==Pn.HTML?!1:t.getAttribute("name")===e}}});var Jd=ie((IM,ub)=>{"use strict";p();ub.exports=sb;var ob=ar(),Ck=So(),ab=St(),ib=ab.HierarchyRequestError,Dk=ab.NotFoundError;function sb(){ob.call(this)}sb.prototype=Object.create(ob.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");ib()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");ib()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");Dk()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new Ck),this._childNodes}}})});var Us=ie((RM,fb)=>{"use strict";p();fb.exports=Pc;var lb=Jd(),cb=St(),Ik=Mc(),Nk=Ud();function Pc(){lb.call(this)}Pc.prototype=Object.create(lb.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)&&cb.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,o=i.length;t=t>>>0,r=r>>>0,n=String(n),(t>o||t<0)&&cb.IndexSizeError(),t+r>o&&(r=o-t);var a=i.substring(0,t),s=i.substring(t+r);this.data=a+n+s}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(Pc.prototype,Ik);Object.defineProperties(Pc.prototype,Nk)});var Xd=ie((MM,mb)=>{"use strict";p();mb.exports=Gd;var db=St(),pb=ar(),hb=Us();function Gd(e,t){hb.call(this),this.nodeType=pb.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var $s={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))}};Gd.prototype=Object.create(hb.prototype,{nodeName:{value:"#text"},nodeValue:$s,textContent:$s,innerText:$s,data:{get:$s.get,set:function(e){$s.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&db.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===pb.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:db.nyi},clone:{value:function(){return new Gd(this.ownerDocument,this._data)}}})});var Zd=ie((FM,xb)=>{"use strict";p();xb.exports=Yd;var Rk=ar(),gb=Us();function Yd(e,t){gb.call(this),this.nodeType=Rk.COMMENT_NODE,this.ownerDocument=e,this._data=t}var qs={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Yd.prototype=Object.create(gb.prototype,{nodeName:{value:"#comment"},nodeValue:qs,textContent:qs,innerText:qs,data:{get:qs.get,set:function(e){qs.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Yd(this.ownerDocument,this._data)}}})});var ep=ie((BM,wb)=>{"use strict";p();wb.exports=Qd;var Lk=ar(),Mk=So(),yb=Cc(),Bc=wa(),Ok=Lc(),bb=St();function Qd(e){yb.call(this),this.nodeType=Lk.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}Qd.prototype=Object.create(yb.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(Bc.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(Bc.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=Bc.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(Bc.prototype,"firstElementChild").get;var r=Ok(e,t);return r.item?r:new Mk(r)}},clone:{value:function(){return new Qd(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:bb.nyi},outerHTML:{get:function(){return this.serialize()},set:bb.nyi}})});var rp=ie((UM,_b)=>{"use strict";p();_b.exports=tp;var Fk=ar(),Eb=Us();function tp(e,t,r){Eb.call(this),this.nodeType=Fk.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var Ws={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};tp.prototype=Object.create(Eb.prototype,{nodeName:{get:function(){return this.target}},nodeValue:Ws,textContent:Ws,innerText:Ws,data:{get:Ws.get,set:function(e){Ws.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new tp(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Ks=ie((qM,vb)=>{"use strict";p();var np={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};vb.exports=np.constructor=np.prototype=np});var op=ie((jM,Ab)=>{"use strict";p();var KM=Ab.exports={nextSkippingChildren:Pk,nextAncestorSibling:ip,next:Bk,previous:Hk,deepLastChild:Sb};function Pk(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:ip(e,t)}function ip(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 Bk(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:ip(e,t))}function Sb(e){for(;e.lastChild;)e=e.lastChild;return e}function Hk(e,t){var r;return r=e.previousSibling,r!==null?Sb(r):(r=e.parentNode,r===t?null:r)}});var Rb=ie((zM,Nb)=>{"use strict";p();Nb.exports=Ib;var Uk=ar(),sr=Ks(),kb=op(),Db=St(),ap={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},sp={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function Tb(e,t){var r,n,i,o,a;for(n=e._currentNode[ap[t]];n!==null;){if(o=e._internalFilter(n),o===sr.FILTER_ACCEPT)return e._currentNode=n,n;if(o===sr.FILTER_SKIP&&(r=n[ap[t]],r!==null)){n=r;continue}for(;n!==null;){if(a=n[sp[t]],a!==null){n=a;break}if(i=n.parentNode,i===null||i===e.root||i===e._currentNode)return null;n=i}}return null}function Cb(e,t){var r,n,i;if(r=e._currentNode,r===e.root)return null;for(;;){for(i=r[sp[t]];i!==null;){if(r=i,n=e._internalFilter(r),n===sr.FILTER_ACCEPT)return e._currentNode=r,r;i=r[ap[t]],(n===sr.FILTER_REJECT||i===null)&&(i=r[sp[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===sr.FILTER_ACCEPT)return null}}function Ib(e,t,r){(!e||!e.nodeType)&&Db.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(Ib.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 Uk))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&Db.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return sr.FILTER_SKIP;if(n=this._filter,n===null)r=sr.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)===sr.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return Tb(this,"first")}},lastChild:{value:function(){return Tb(this,"last")}},previousSibling:{value:function(){return Cb(this,"previous")}},nextSibling:{value:function(){return Cb(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!==sr.FILTER_REJECT){for(i=t.lastChild;i&&(t=i,r=this._internalFilter(t),r!==sr.FILTER_REJECT);i=t.lastChild);if(r===sr.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===sr.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,i;t=this._currentNode,r=sr.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===sr.FILTER_ACCEPT)return this._currentNode=t,t;if(r===sr.FILTER_REJECT)break}for(i=kb.nextSkippingChildren(t,this.root);i;i=kb.nextSkippingChildren(t,this.root)){if(t=i,r=this._internalFilter(t),r===sr.FILTER_ACCEPT)return this._currentNode=t,t;if(r===sr.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var Bb=ie((GM,Pb)=>{"use strict";p();Pb.exports=Fb;var up=Ks(),cp=op(),Ob=St();function $k(e,t,r){return r?cp.next(e,t):e===t?null:cp.previous(e,null)}function Lb(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function Mb(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=$k(r,e._root,t),r===null)return null;var i=e._internalFilter(r);if(i===up.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function Fb(e,t,r){(!e||!e.nodeType)&&Ob.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(Fb.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&&Ob.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return up.FILTER_SKIP;if(n=this._filter,n===null)r=up.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(!Lb(t,this._root)&&Lb(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=cp.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 Mb(this,!0)}},previousNode:{value:function(){return Mb(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var Hc=ie((YM,Hb)=>{"use strict";p();Hb.exports=ur;function ur(e){if(!e)return Object.create(ur.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=ur.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(ur.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(ur.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])}}ur.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;ur.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;ur.portPattern=/:\d+$/;ur.authorityPattern=/^[^:\/?#]+:\/\//;ur.hierarchyPattern=/^[^:\/?#]+:\//;ur.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};ur.prototype={constructor:ur,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return ur.authorityPattern.test(this.url)},isHierarchical:function(){return ur.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 ur(e),n=new ur;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=o(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=o(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=o(r.path):(n.path=i(t.path,r.path),n.path=o(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(a,s){if(t.host!==void 0&&!t.path)return"/"+s;var u=a.lastIndexOf("/");return u===-1?s:a.substring(0,u+1)+s}function o(a){if(!a)return a;for(var s="";a.length>0;){if(a==="."||a===".."){a="";break}var u=a.substring(0,2),c=a.substring(0,3),l=a.substring(0,4);if(c==="../")a=a.substring(3);else if(u==="./")a=a.substring(2);else if(c==="/./")a="/"+a.substring(3);else if(u==="/."&&a.length===2)a="/";else if(l==="/../"||c==="/.."&&a.length===3)a="/"+a.substring(4),s=s.replace(/\/?[^\/]*$/,"");else{var d=a.match(/(\/?([^\/]*))/)[0];s+=d,a=a.substring(d.length)}}return s}}}});var qb=ie((QM,$b)=>{"use strict";p();$b.exports=lp;var Ub=pa();function lp(e,t){Ub.call(this,e,t)}lp.prototype=Object.create(Ub.prototype,{constructor:{value:lp}})});var fp=ie((tO,Wb)=>{"use strict";p();Wb.exports={Event:pa(),UIEvent:pd(),MouseEvent:md(),CustomEvent:qb()}});var jb=ie(Ea=>{"use strict";p();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.hyphenate=Ea.parse=void 0;function qk(e){let t=[],r=0,n=0,i=0,o=0,a=0,s=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:!s&&n===0&&i===0&&(s=Kb(e.substring(a,r-1).trim()),o=r);break;case 59:if(s&&o>0&&n===0&&i===0){let c=e.substring(o,r-1).trim();t.push(s,c),a=r,o=0,s=null}break}if(s&&o){let u=e.slice(o).trim();t.push(s,u)}return t}Ea.parse=qk;function Kb(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Ea.hyphenate=Kb});var Uc=ie((oO,Xb)=>{"use strict";p();var{parse:Wk}=jb();Xb.exports=function(e){let t=new Gb(e),r={get:function(n,i){return i in n?n[i]:n.getPropertyValue(Vb(i))},has:function(n,i){return!0},set:function(n,i,o){return i in n?n[i]=o:n.setProperty(Vb(i),o??void 0),!0}};return new Proxy(t,r)};function Vb(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gb(e){this._element=e}var zb="!important";function Jb(e){let t={property:{},priority:{}};if(!e)return t;let r=Wk(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let i=r[n],o=r[n+1];o.endsWith(zb)&&(t.priority[i]="important",o=o.slice(0,-zb.length).trim()),t.property[i]=o}return t}var _a={};Gb.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=Jb(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!==_a&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==_a&&!/^important$/i.test(r))){var n=this._parsed;if(t===_a){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var i=Jb(e+":"+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var o in i.property)n.property[o]=i.property[o],r!==_a&&(r!==""?n.priority[o]="important":n.priority[o]&&delete n.priority[o])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,_a)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,_a,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 dp=ie((sO,Yb)=>{"use strict";p();var er=Hc();Yb.exports=js;function js(){}js.prototype=Object.create(Object.prototype,{_url:{get:function(){return new er(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new er(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,er.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 er(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,er.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 er(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,er.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 er(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 er(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,er.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 er(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,er.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 er(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,er.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 er(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,er.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 er(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,er.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+"://"}}}});js._inherit=function(e){Object.getOwnPropertyNames(js.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(js.prototype,t);Object.defineProperty(e,t,r)}})}});var pp=ie((cO,e1)=>{"use strict";p();var Zb=Ld(),Kk=Ac().isApiWritable;e1.exports=function(e,t,r,n){var i=e.ctor;if(i){var o=e.props||{};if(e.attributes)for(var a in e.attributes){var s=e.attributes[a];(typeof s!="object"||Array.isArray(s))&&(s={type:s}),s.name||(s.name=a.toLowerCase()),o[a]=Zb.property(s)}o.constructor={value:i,writable:Kk},i.prototype=Object.create((e.superclass||t).prototype,o),e.events&&Vk(i,e.events),r[e.name]=i}else i=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(u){n[u]=i}),i};function Qb(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}Qb.prototype.build=function(){return()=>{}};function jk(e,t,r,n){var i=e.ownerDocument||Object.create(null),o=e.form||Object.create(null);e[t]=new Qb(n,i,o,e).build()}function Vk(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)}}),Zb.registerChangeHandler(e,"on"+n,jk)})}});var Wc=ie(qc=>{"use strict";p();var hp=ar(),t1=wa(),zk=Uc(),jr=St(),r1=dp(),Jk=pp(),fi=qc.elements={},Vs=Object.create(null);qc.createElement=function(e,t,r){var n=Vs[t]||Xk;return new n(e,t,r)};function te(e){return Jk(e,ce,fi,Vs)}function At(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 $c(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 va={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},Gk={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},gn=function(e,t,r){ce.call(this,e,t,r),this._form=null},ce=qc.HTMLElement=te({superclass:t1,name:"HTMLElement",ctor:function(t,r,n){t1.call(this,t,r,jr.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 Vs.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new zk(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:jr.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 Gk||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"]}),Xk=te({name:"HTMLUnknownElement",ctor:function(t,r,n){ce.call(this,t,r,n)}}),xn={form:{get:function(){return this._form}}};te({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){ce.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:At,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:va,coords:String,charset:String,name:String,rev:String,shape:String}});r1._inherit(Vs.a.prototype);te({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:At,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:va,noHref:Boolean}});r1._inherit(Vs.area.prototype);te({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{clear:String}});te({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{target:String}});te({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){ce.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}});te({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:At,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:""}}});te({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{compact:Boolean}});te({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{value:String}});te({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){ce.call(this,t,r,n)}});te({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{open:Boolean}});te({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{align:String}});te({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{src:At,type:String,width:String,height:String,align:String,name:String}});te({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{disabled:Boolean,name:String}});te({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){ce.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"}}});te({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});te({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){ce.call(this,t,r,n)}});te({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{align:String}});te({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{xmlns:At,version:String}});te({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{src:At,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:va,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:At,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});te({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{alt:String,src:At,srcset:String,crossOrigin:$c,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:va,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:At,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:At,border:{type:String,treatNullAsEmptyString:!0}}});te({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:{form:xn.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:At,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}});te({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});te({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});te({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{htmlFor:{name:"for",type:String}}});te({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{align:String}});te({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{href:At,rel:String,media:String,hreflang:String,type:String,crossOrigin:$c,nonce:String,integrity:String,referrerPolicy:va,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});te({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{name:String}});te({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});te({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});te({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn});te({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{cite:At,dateTime:String}});te({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){ce.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===hp.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}});te({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{data:At,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:At,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});te({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});te({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){ce.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===hp.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}});te({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{name:String}});te({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{align:String}});te({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});te({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});te({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:xn,attributes:{max:{type:Number,float:!0,default:1,min:0}}});te({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{cite:At}});te({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){ce.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===hp.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:At,type:String,charset:String,referrerPolicy:va,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:$c,nonce:String,integrity:String}});te({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:{form:xn.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}}});te({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){ce.call(this,t,r,n)}});te({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});te({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{align:String}});te({name:"HTMLTableCellElement",ctor:function(t,r,n){ce.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}}});te({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){ce.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}});te({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){ce.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}}});te({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){ce.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});te({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){ce.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}}});te({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){ce.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}});te({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){gn.call(this,t,r,n)},props:{form:xn.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:""}}});te({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});te({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){ce.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});te({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});te({name:"HTMLMediaElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{src:At,crossOrigin:$c,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});te({name:"HTMLAudioElement",tag:"audio",superclass:fi.HTMLMediaElement,ctor:function(t,r,n){fi.HTMLMediaElement.call(this,t,r,n)}});te({name:"HTMLVideoElement",tag:"video",superclass:fi.HTMLMediaElement,ctor:function(t,r,n){fi.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:At,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});te({tag:"td",name:"HTMLTableDataCellElement",superclass:fi.HTMLTableCellElement,ctor:function(t,r,n){fi.HTMLTableCellElement.call(this,t,r,n)}});te({tag:"th",name:"HTMLTableHeaderCellElement",superclass:fi.HTMLTableCellElement,ctor:function(t,r,n){fi.HTMLTableCellElement.call(this,t,r,n)}});te({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){ce.call(this,t,r,n)}});te({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){ce.call(this,t,r,n)}});te({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){ce.call(this,t,r,n)},props:{getContext:{value:jr.nyi},probablySupportsContext:{value:jr.nyi},setContext:{value:jr.nyi},transferControlToProxy:{value:jr.nyi},toDataURL:{value:jr.nyi},toBlob:{value:jr.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});te({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){ce.call(this,t,r,n)},props:{show:{value:jr.nyi},showModal:{value:jr.nyi},close:{value:jr.nyi}},attributes:{open:Boolean,returnValue:String}});te({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){ce.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:At,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});te({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:At,type:String,width:String,height:String}});te({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{src:At,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:jr.nyi},track:{get:jr.nyi}}});te({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});te({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){ce.call(this,t,r,n)},attributes:{compact:Boolean}});te({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 xp=ie(Kc=>{"use strict";p();var n1=wa(),Yk=pp(),Zk=St(),Qk=Uc(),e8=Kc.elements={},i1=Object.create(null);Kc.createElement=function(e,t,r){var n=i1[t]||gp;return new n(e,t,r)};function mp(e){return Yk(e,gp,e8,i1)}var gp=mp({superclass:n1,name:"SVGElement",ctor:function(t,r,n){n1.call(this,t,r,Zk.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new Qk(this)),this._style}}}});mp({name:"SVGSVGElement",ctor:function(t,r,n){gp.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return Kc.createElement(this.ownerDocument,"rect",null)}}}});mp({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 a1=ie((mO,o1)=>{"use strict";p();o1.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var Vc=ie((xO,g1)=>{"use strict";p();g1.exports=Js;var yr=ar(),t8=So(),d1=Cc(),qi=wa(),r8=Xd(),n8=Zd(),zs=pa(),i8=ep(),o8=rp(),a8=Gs(),s8=Rb(),u8=Bb(),s1=Ks(),u1=Hc(),c1=Lc(),c8=fp(),jc=Dc(),bp=Wc(),l8=xp(),Je=St(),Sa=a1(),ka=Je.NAMESPACE,yp=Ac().isApiWritable;function Js(e,t){d1.call(this),this.nodeType=yr.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new a8(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 f8={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},d8={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},Aa=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 l1(e,t){var r,n,i;return e===""&&(e=null),jc.isValidQName(t)||Je.InvalidCharacterError(),r=null,n=t,i=t.indexOf(":"),i>=0&&(r=t.substring(0,i),n=t.substring(i+1)),r!==null&&e===null&&Je.NamespaceError(),r==="xml"&&e!==ka.XML&&Je.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==ka.XMLNS&&Je.NamespaceError(),e===ka.XMLNS&&!(r==="xmlns"||t==="xmlns")&&Je.NamespaceError(),{namespace:e,prefix:r,localName:n}}Js.prototype=Object.create(d1.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new zs(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:Je.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new r8(this,String(e))}},createComment:{value:function(e){return new n8(this,e)}},createDocumentFragment:{value:function(){return new i8(this)}},createProcessingInstruction:{value:function(e,t){return(!jc.isValidName(e)||t.indexOf("?>")!==-1)&&Je.InvalidCharacterError(),new o8(this,e,t)}},createAttribute:{value:function(e){return e=String(e),jc.isValidName(e)||Je.InvalidCharacterError(),this.isHTML&&(e=Je.toASCIILowerCase(e)),new qi._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=l1(e,t);return new qi._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),jc.isValidName(e)||Je.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=Je.toASCIILowerCase(e)),bp.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?bp.createElement(this,e,null):new qi(this,e,null,null)},writable:yp},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=l1(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:yp},_createElementNS:{value:function(e,t,r){return t===ka.HTML?bp.createElement(this,e,r):t===ka.SVG?l8.createElement(this,e,r):new qi(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=d8[t]||t,n=c8[f8[r]];if(n){var i=new n;return i._initialized=!1,i}else Je.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof yr))throw new TypeError("root not a node");return t=t===void 0?s1.SHOW_ALL:+t,r=r===void 0?null:r,new s8(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof yr))throw new TypeError("root not a node");return t=t===void 0?s1.SHOW_ALL:+t,r=r===void 0?null:r,new u8(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===yr.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===yr.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return yr.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return yr.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return yr.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof di?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof di}},getElementsByName:{value:qi.prototype.getElementsByName},getElementsByTagName:{value:qi.prototype.getElementsByTagName},getElementsByTagNameNS:{value:qi.prototype.getElementsByTagNameNS},getElementsByClassName:{value:qi.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===yr.DOCUMENT_NODE&&Je.NotSupportedError(),t.nodeType===yr.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&m1(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:yp},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:Je.nyi,set:Je.nyi},referrer:{get:Je.nyi},cookie:{get:Je.nyi,set:Je.nyi},lastModified:{get:Je.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:Je.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:Aa(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:Aa(function(){return this.body},"text",""),linkColor:Aa(function(){return this.body},"link",""),vlinkColor:Aa(function(){return this.body},"vLink",""),alinkColor:Aa(function(){return this.body},"aLink",""),bgColor:Aa(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 f1(this.documentElement,"body")},set:Je.nyi},head:{get:function(){return f1(this.documentElement,"head")}},images:{get:Je.nyi},embeds:{get:Je.nyi},plugins:{get:Je.nyi},links:{get:Je.nyi},forms:{get:Je.nyi},scripts:{get:Je.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:Je.nyi},outerHTML:{get:function(){return this.serialize()},set:Je.nyi},write:{value:function(e){if(this.isHTML||Je.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
5
+ `)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new zs("readystatechange"),!0),this._dispatchEvent(new zs("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new zs("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new zs("load"),!0)}},clone:{value:function(){var t=new Js(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=yr.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:Sa.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Sa.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Sa.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Sa.REMOVE,target:e.parentNode,node:e}),h1(e)}},mutateInsert:{value:function(e){p1(e),this.mutationHandler&&this.mutationHandler({type:Sa.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Sa.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof di||(n=new di(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];Je.assert(n),n instanceof di?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new u1(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new u1(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new Js(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return c1(e,this)[0]}},querySelectorAll:{value:function(e){var t=c1(e,this);return t.item?t:new t8(t)}}});var p8=["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"];p8.forEach(function(e){Object.defineProperty(Js.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function f1(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===yr.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===ka.HTML)return r}return null}function h8(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===yr.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function m8(e){if(e.nodeType===yr.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 p1(e){if(h8(e),e.nodeType===yr.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)p1(t)}function h1(e){m8(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)h1(t)}function m1(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)m1(r,t)}function di(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}di.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};di.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};di.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&yr.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};di.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var Jc=ie((yO,b1)=>{"use strict";p();b1.exports=zc;var g8=ar(),x1=Jd(),x8=Mc();function zc(e,t,r,n){x1.call(this),this.nodeType=g8.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}zc.prototype=Object.create(x1.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new zc(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(zc.prototype,x8)});var tl=ie((EO,$1)=>{"use strict";p();$1.exports=Ve;var b8=Vc(),y8=Jc(),wp=ar(),xe=St().NAMESPACE,L1=Wc(),Ye=L1.elements,ko=Function.prototype.apply.bind(Array.prototype.push),Gc=-1,Ta=1,wr=2,Be=3,Bn=4,w8=5,E8=[],_8=/^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,v8="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",y1=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,S8=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,Co=Object.create(null);Co[xe.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};Co[xe.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};Co[xe.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var vp=Object.create(null);vp[xe.HTML]={__proto__:null,address:!0,div:!0,p:!0};var M1=Object.create(null);M1[xe.HTML]={__proto__:null,dd:!0,dt:!0};var Ca=Object.create(null);Ca[xe.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var O1=Object.create(null);O1[xe.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 F1=Object.create(null);F1[xe.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 Zc=Object.create(null);Zc[xe.HTML]={__proto__:null,table:!0,template:!0,html:!0};var Qc=Object.create(null);Qc[xe.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var Sp=Object.create(null);Sp[xe.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var P1=Object.create(null);P1[xe.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Hn=Object.create(null);Hn[xe.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Hn[xe.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Hn[xe.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var el=Object.create(Hn);el[xe.HTML]=Object.create(Hn[xe.HTML]);el[xe.HTML].ol=!0;el[xe.HTML].ul=!0;var Ap=Object.create(Hn);Ap[xe.HTML]=Object.create(Hn[xe.HTML]);Ap[xe.HTML].button=!0;var B1=Object.create(null);B1[xe.HTML]={__proto__:null,html:!0,table:!0,template:!0};var A8=Object.create(null);A8[xe.HTML]={__proto__:null,optgroup:!0,option:!0};var H1=Object.create(null);H1[xe.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var U1=Object.create(null);U1[xe.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var w1={__proto__:null,"xlink:actuate":xe.XLINK,"xlink:arcrole":xe.XLINK,"xlink:href":xe.XLINK,"xlink:role":xe.XLINK,"xlink:show":xe.XLINK,"xlink:title":xe.XLINK,"xlink:type":xe.XLINK,"xml:base":xe.XML,"xml:lang":xe.XML,"xml:space":xe.XML,xmlns:xe.XMLNS,"xmlns:xlink":xe.XMLNS},E1={__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"},_1={__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"},v1={__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},k8={__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},S1=/(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,T8=32,C8=/[^\r"&\u0000]+/g,D8=/[^\r'&\u0000]+/g,I8=/[^\r\t\n\f &>\u0000]+/g,N8=/[^\r\t\n\f \/>A-Z\u0000]+/g,R8=/[^\r\t\n\f \/=>A-Z\u0000]+/g,L8=/[^\]\r\u0000\uffff]*/g,M8=/[^&<\r\u0000\uffff]*/g,A1=/[^<\r\u0000\uffff]*/g,O8=/[^\r\u0000\uffff]*/g,k1=/(?:(\/)?([a-z]+)>)|[\s\S]/g,T1=/(?:([-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,Xc=/[^\x09\x0A\x0C\x0D\x20]/,Ep=/[^\x09\x0A\x0C\x0D\x20]/g,F8=/[^\x00\x09\x0A\x0C\x0D\x20]/,To=/^[\x09\x0A\x0C\x0D\x20]+/,Yc=/\x00/g;function Er(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 P8(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function Ze(e,t){if(typeof t=="string")return e.namespaceURI===xe.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function C1(e){return Ze(e,H1)}function D1(e){if(Ze(e,U1))return!0;if(e.namespaceURI===xe.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 B8(e){return e in _1?_1[e]:e}function I1(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in E1&&(e[t][0]=E1[e[t][0]])}function N1(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function _p(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in w1&&e[t].push(w1[e[t][0]])}function R1(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r][0],o=e[r][1];t.hasAttribute(i)||t._setAttribute(i,o)}}Ve.ElementStack=function(){this.elements=[],this.top=null};Ve.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};Ve.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};Ve.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(Ze(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};Ve.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]};Ve.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]};Ve.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)}};Ve.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!Ze(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};Ve.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};Ve.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(Ze(n,e))return!0;if(Ze(n,t))return!1}return!1};Ve.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(Ze(n,t))return!1}return!1};Ve.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(Ze(n,t))return!1}return!1};Ve.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Hn)};Ve.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Hn)};Ve.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Hn)};Ve.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,Ap)};Ve.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,el)};Ve.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,B1)};Ve.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==xe.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};Ve.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?F1:O1,n=this.elements.length-1;n>=0;n--){var i=this.elements[n];if(e&&Ze(i,e)||!Ze(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};Ve.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};Ve.ActiveFormattingElements.prototype.MARKER={localName:"|"};Ve.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};Ve.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(a(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=[],o=0;o<t.length;o++)i[o]=t[o];this.attrs.push(i);function a(s,u,c){if(s.localName!==u.localName||s._numattrs!==c.length)return!1;for(var l=0,d=c.length;l<d;l++){var m=c[l][0],f=c[l][1];if(!s.hasAttribute(m)||s.getAttribute(m)!==f)return!1}return!0}};Ve.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};Ve.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};Ve.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};Ve.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};Ve.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};Ve.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 Ve(e,t,r){var n=null,i=0,o=0,a=!1,s=!1,u=0,c=[],l="",d=!0,m=0,f=Oe,h,b,w="",D="",k=[],T="",S="",C=[],I=[],O=[],W=[],H=[],j=!1,v=w6,N=null,P=[],E=new Ve.ElementStack,R=new Ve.ActiveFormattingElements,M=t!==void 0,F=null,$=null,X=!0;t&&(X=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(X=!1);var ge=!0,ke=!1,me,oe,q=[],G=!1,ue=!1,Ue={document:function(){return K},_asDocumentFragment:function(){for(var g=K.createDocumentFragment(),x=K.firstChild;x.hasChildNodes();)g.appendChild(x.firstChild);return g},pause:function(){m++},resume:function(){m--,this.parse("")},parse:function(g,x,A){var L;return m>0?(l+=g,!0):(u===0?(l&&(g=l+g,l=""),x&&(g+="\uFFFF",a=!0),n=g,i=g.length,o=0,d&&(d=!1,n.charCodeAt(0)===65279&&(o=1)),u++,L=Et(A),l=n.substring(o,i),u--):(u++,c.push(n,i,o),n=g,i=g.length,o=0,Et(),L=!1,l=n.substring(o,i),o=c.pop(),i=c.pop(),n=c.pop(),l&&(n=l+n.substring(o),i=n.length,o=0,l=""),u--),L)}},K=new b8(!0,e);if(K._parser=Ue,K._scripting_enabled=X,t){if(t.ownerDocument._quirks&&(K._quirks=!0),t.ownerDocument._limitedQuirks&&(K._limitedQuirks=!0),t.namespaceURI===xe.HTML)switch(t.localName){case"title":case"textarea":f=ki;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":f=I0;break}var ve=K.createElement("html");K._appendChild(ve),E.push(ve),t instanceof Ye.HTMLTemplateElement&&P.push(U0),io();for(var se=t;se!==null;se=se.parentElement)if(se instanceof Ye.HTMLFormElement){$=se;break}}function Et(g){for(var x,A,L,B;o<i;){if(m>0||g&&g())return!0;switch(typeof f.lookahead){case"undefined":if(x=n.charCodeAt(o++),s&&(s=!1,x===10)){o++;continue}switch(x){case 13:o<i?n.charCodeAt(o)===10&&o++:s=!0,f(10);break;case 65535:if(a&&o===i){f(Gc);break}default:f(x);break}break;case"number":x=n.charCodeAt(o);var ee=f.lookahead,_e=!0;if(ee<0&&(_e=!1,ee=-ee),ee<i-o)A=_e?n.substring(o,o+ee):null,B=!1;else if(a)A=_e?n.substring(o,i):null,B=!0,x===65535&&o===i-1&&(x=Gc);else return!0;f(x,A,B);break;case"string":x=n.charCodeAt(o),L=f.lookahead;var Fe=n.indexOf(L,o);if(Fe!==-1)A=n.substring(o,Fe+L.length),B=!1;else{if(!a)return!0;A=n.substring(o,i),x===65535&&o===i-1&&(x=Gc),B=!0}f(x,A,B);break}}return!1}function nt(g,x){for(var A=0;A<H.length;A++)if(H[A][0]===g)return;x!==void 0?H.push([g,x]):H.push([g])}function nr(){T1.lastIndex=o-1;var g=T1.exec(n);if(!g)throw new Error("should never happen");var x=g[1];if(!x)return!1;var A=g[2],L=A.length;switch(A[0]){case'"':case"'":A=A.substring(1,L-1),o+=g[0].length-1,f=M0;break;default:f=Tn,o+=g[0].length-1,A=A.substring(0,L-1);break}for(var B=0;B<H.length;B++)if(H[B][0]===x)return!0;return H.push([x,A]),!0}function Qn(){j=!1,w="",H.length=0}function Vr(){j=!0,w="",H.length=0}function ir(){k.length=0}function zr(){T=""}function Jr(){S=""}function An(){C.length=0}function Ir(){I.length=0,O=null,W=null}function Ke(){O=[]}function le(){W=[]}function ne(){ke=!0}function ae(){return E.top&&E.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function Te(g){return D===g}function tt(){if(q.length>0){var g=Er(q);if(q.length=0,ue&&(ue=!1,g[0]===`
6
+ `&&(g=g.substring(1)),g.length===0))return;ze(Ta,g),G=!1}ue=!1}function Nr(g){g.lastIndex=o-1;var x=g.exec(n);if(x&&x.index===o-1)return x=x[0],o+=x.length-1,a&&o===i&&(x=x.slice(0,-1),o--),x;throw new Error("should never happen")}function kr(g){g.lastIndex=o-1;var x=g.exec(n)[0];return x?(xs(x),o+=x.length-1,!0):!1}function xs(g){q.length>0&&tt(),!(ue&&(ue=!1,g[0]===`
7
+ `&&(g=g.substring(1)),g.length===0))&&ze(Ta,g)}function un(){if(j)ze(Be,w);else{var g=w;w="",D=g,ze(wr,g,H)}}function Z(){if(o===i)return!1;k1.lastIndex=o;var g=k1.exec(n);if(!g)throw new Error("should never happen");var x=g[2];if(!x)return!1;var A=g[1];return A?(o+=x.length+2,ze(Be,x)):(o+=x.length+1,D=x,ze(wr,x,E8)),!0}function z(){j?ze(Be,w,null,!0):ze(wr,w,H,!0)}function Ce(){ze(w8,Er(I),O?Er(O):void 0,W?Er(W):void 0)}function pe(){tt(),v(Gc),K.modclock=1}var ze=Ue.insertToken=function(x,A,L,B){tt();var ee=E.top;!ee||ee.namespaceURI===xe.HTML?v(x,A,L,B):x!==wr&&x!==Ta?ag(x,A,L,B):C1(ee)&&(x===Ta||x===wr&&A!=="mglyph"&&A!=="malignmark")||x===wr&&A==="svg"&&ee.namespaceURI===xe.MATHML&&ee.localName==="annotation-xml"||D1(ee)?(oe=!0,v(x,A,L,B),oe=!1):ag(x,A,L,B)};function ht(g){var x=E.top;qt&&Ze(x,Ca)?Ai(function(A){return A.createComment(g)}):(x instanceof Ye.HTMLTemplateElement&&(x=x.content),x._appendChild(x.ownerDocument.createComment(g)))}function De(g){var x=E.top;if(qt&&Ze(x,Ca))Ai(function(L){return L.createTextNode(g)});else{x instanceof Ye.HTMLTemplateElement&&(x=x.content);var A=x.lastChild;A&&A.nodeType===wp.TEXT_NODE?A.appendData(g):x._appendChild(x.ownerDocument.createTextNode(g))}}function Gr(g,x,A){var L=L1.createElement(g,x,null);if(A)for(var B=0,ee=A.length;B<ee;B++)L._setAttribute(A[B][0],A[B][1]);return L}var qt=!1;function Ae(g,x){var A=ei(function(L){return Gr(L,g,x)});return Ze(A,P1)&&(A._form=$),A}function ei(g){var x;return qt&&Ze(E.top,Ca)?x=Ai(g):E.top instanceof Ye.HTMLTemplateElement?(x=g(E.top.content.ownerDocument),E.top.content._appendChild(x)):(x=g(E.top.ownerDocument),E.top._appendChild(x)),E.push(x),x}function Nt(g,x,A){return ei(function(L){var B=L._createElementNS(g,A,null);if(x)for(var ee=0,_e=x.length;ee<_e;ee++){var Fe=x[ee];Fe.length===2?B._setAttribute(Fe[0],Fe[1]):B._setAttributeNS(Fe[2],Fe[0],Fe[1])}return B})}function mr(g){for(var x=E.elements.length-1;x>=0;x--)if(E.elements[x]instanceof g)return x;return-1}function Ai(g){var x,A,L=-1,B=-1,ee;if(L=mr(Ye.HTMLTableElement),B=mr(Ye.HTMLTemplateElement),B>=0&&(L<0||B>L)?x=E.elements[B]:L>=0&&(x=E.elements[L].parentNode,x?A=E.elements[L]:x=E.elements[L-1]),x||(x=E.elements[0]),x instanceof Ye.HTMLTemplateElement&&(x=x.content),ee=g(x.ownerDocument),ee.nodeType===wp.TEXT_NODE){var _e;if(A?_e=A.previousSibling:_e=x.lastChild,_e&&_e.nodeType===wp.TEXT_NODE)return _e.appendData(ee.data),ee}return A?x.insertBefore(ee,A):x._appendChild(ee),ee}function io(){for(var g=!1,x=E.elements.length-1;x>=0;x--){var A=E.elements[x];if(x===0&&(g=!0,M&&(A=t)),A.namespaceURI===xe.HTML){var L=A.localName;switch(L){case"select":for(var B=x;B>0;){var ee=E.elements[--B];if(ee instanceof Ye.HTMLTemplateElement)break;if(ee instanceof Ye.HTMLTableElement){v=Vu;return}}v=ti;return;case"tr":v=ws;return;case"tbody":case"tfoot":case"thead":v=uo;return;case"caption":v=H0;return;case"colgroup":v=ju;return;case"table":v=Xr;return;case"template":v=P[P.length-1];return;case"body":v=Ee;return;case"frameset":v=$0;return;case"html":F===null?v=Wu:v=B0;return;default:if(!g){if(L==="head"){v=_t;return}if(L==="td"||L==="th"){v=Xo;return}}}}if(g){v=Ee;return}}}function Lu(g,x){Ae(g,x),f=bs,N=v,v=Ku}function Iv(g,x){Ae(g,x),f=ki,N=v,v=Ku}function D0(g,x){return{elt:Gr(g,R.list[x].localName,R.attrs[x]),attrs:R.attrs[x]}}function Tr(){if(R.list.length!==0){var g=R.list[R.list.length-1];if(g!==R.MARKER&&E.elements.lastIndexOf(g)===-1){for(var x=R.list.length-2;x>=0&&(g=R.list[x],!(g===R.MARKER||E.elements.lastIndexOf(g)!==-1));x--);for(x=x+1;x<R.list.length;x++){var A=ei(function(L){return D0(L,x).elt});R.list[x]=A}}}}var Mu={localName:"BM"};function Nv(g){if(Ze(E.top,g)&&R.indexOf(E.top)===-1)return E.pop(),!0;for(var x=0;x<8;){x++;var A=R.findElementByTag(g);if(!A)return!1;var L=E.elements.lastIndexOf(A);if(L===-1)return R.remove(A),!0;if(!E.elementInScope(A))return!0;for(var B=null,ee,_e=L+1;_e<E.elements.length;_e++)if(Ze(E.elements[_e],Co)){B=E.elements[_e],ee=_e;break}if(B){var Fe=E.elements[L-1];R.insertAfter(A,Mu);for(var mt=B,or=B,Yr=ee,cn,co=0;co++,mt=E.elements[--Yr],mt!==A;){if(cn=R.indexOf(mt),co>3&&cn!==-1&&(R.remove(mt),cn=-1),cn===-1){E.removeElement(mt);continue}var Ni=D0(Fe.ownerDocument,cn);R.replace(mt,Ni.elt,Ni.attrs),E.elements[Yr]=Ni.elt,mt=Ni.elt,or===B&&(R.remove(Mu),R.insertAfter(Ni.elt,Mu)),mt._appendChild(or),or=mt}qt&&Ze(Fe,Ca)?Ai(function(){return or}):Fe instanceof Ye.HTMLTemplateElement?Fe.content._appendChild(or):Fe._appendChild(or);for(var Es=D0(B.ownerDocument,R.indexOf(A));B.hasChildNodes();)Es.elt._appendChild(B.firstChild);B._appendChild(Es.elt),R.remove(A),R.replace(Mu,Es.elt,Es.attrs),E.removeElement(A);var A6=E.elements.lastIndexOf(B);E.elements.splice(A6+1,0,Es.elt)}else return E.popElement(A),R.remove(A),!0}return!0}function Rv(){E.pop(),v=N}function oo(){delete K._parser,E.elements.length=0,K.defaultView&&K.defaultView.dispatchEvent(new Ye.Event("load",{}))}function fe(g,x){f=x,o--}function Oe(g){switch(g){case 38:h=Oe,f=ys;break;case 60:if(Z())break;f=Lv;break;case 0:q.push(g),G=!0;break;case-1:pe();break;default:kr(M8)||q.push(g);break}}function ki(g){switch(g){case 38:h=ki,f=ys;break;case 60:f=Ov;break;case 0:q.push(65533),G=!0;break;case-1:pe();break;default:q.push(g);break}}function bs(g){switch(g){case 60:f=Bv;break;case 0:q.push(65533);break;case-1:pe();break;default:kr(A1)||q.push(g);break}}function Ti(g){switch(g){case 60:f=$v;break;case 0:q.push(65533);break;case-1:pe();break;default:kr(A1)||q.push(g);break}}function I0(g){switch(g){case 0:q.push(65533);break;case-1:pe();break;default:kr(O8)||q.push(g);break}}function Lv(g){switch(g){case 33:f=Gm;break;case 47:f=Mv;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:Qn(),fe(g,Vm);break;case 63:fe(g,Bu);break;default:q.push(60),fe(g,Oe);break}}function Mv(g){switch(g){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:Vr(),fe(g,Vm);break;case 62:f=Oe;break;case-1:q.push(60),q.push(47),pe();break;default:fe(g,Bu);break}}function Vm(g){switch(g){case 9:case 10:case 12:case 32:f=Tn;break;case 47:f=Di;break;case 62:f=Oe,un();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:w+=String.fromCharCode(g+32);break;case 0:w+="\uFFFD";break;case-1:pe();break;default:w+=Nr(N8);break}}function Ov(g){g===47?(ir(),f=Fv):(q.push(60),fe(g,ki))}function Fv(g){switch(g){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:Vr(),fe(g,Pv);break;default:q.push(60),q.push(47),fe(g,ki);break}}function Pv(g){switch(g){case 9:case 10:case 12:case 32:if(Te(w)){f=Tn;return}break;case 47:if(Te(w)){f=Di;return}break;case 62:if(Te(w)){f=Oe,un();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:w+=String.fromCharCode(g+32),k.push(g);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:w+=String.fromCharCode(g),k.push(g);return;default:break}q.push(60),q.push(47),ko(q,k),fe(g,ki)}function Bv(g){g===47?(ir(),f=Hv):(q.push(60),fe(g,bs))}function Hv(g){switch(g){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:Vr(),fe(g,Uv);break;default:q.push(60),q.push(47),fe(g,bs);break}}function Uv(g){switch(g){case 9:case 10:case 12:case 32:if(Te(w)){f=Tn;return}break;case 47:if(Te(w)){f=Di;return}break;case 62:if(Te(w)){f=Oe,un();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:w+=String.fromCharCode(g+32),k.push(g);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:w+=String.fromCharCode(g),k.push(g);return;default:break}q.push(60),q.push(47),ko(q,k),fe(g,bs)}function $v(g){switch(g){case 47:ir(),f=qv;break;case 33:f=Kv,q.push(60),q.push(33);break;default:q.push(60),fe(g,Ti);break}}function qv(g){switch(g){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:Vr(),fe(g,Wv);break;default:q.push(60),q.push(47),fe(g,Ti);break}}function Wv(g){switch(g){case 9:case 10:case 12:case 32:if(Te(w)){f=Tn;return}break;case 47:if(Te(w)){f=Di;return}break;case 62:if(Te(w)){f=Oe,un();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:w+=String.fromCharCode(g+32),k.push(g);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:w+=String.fromCharCode(g),k.push(g);return;default:break}q.push(60),q.push(47),ko(q,k),fe(g,Ti)}function Kv(g){g===45?(f=jv,q.push(45)):fe(g,Ti)}function jv(g){g===45?(f=zm,q.push(45)):fe(g,Ti)}function kn(g){switch(g){case 45:f=Vv,q.push(45);break;case 60:f=N0;break;case 0:q.push(65533);break;case-1:pe();break;default:q.push(g);break}}function Vv(g){switch(g){case 45:f=zm,q.push(45);break;case 60:f=N0;break;case 0:f=kn,q.push(65533);break;case-1:pe();break;default:f=kn,q.push(g);break}}function zm(g){switch(g){case 45:q.push(45);break;case 60:f=N0;break;case 62:f=Ti,q.push(62);break;case 0:f=kn,q.push(65533);break;case-1:pe();break;default:f=kn,q.push(g);break}}function N0(g){switch(g){case 47:ir(),f=zv;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:ir(),q.push(60),fe(g,Gv);break;default:q.push(60),fe(g,kn);break}}function zv(g){switch(g){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:Vr(),fe(g,Jv);break;default:q.push(60),q.push(47),fe(g,kn);break}}function Jv(g){switch(g){case 9:case 10:case 12:case 32:if(Te(w)){f=Tn;return}break;case 47:if(Te(w)){f=Di;return}break;case 62:if(Te(w)){f=Oe,un();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:w+=String.fromCharCode(g+32),k.push(g);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:w+=String.fromCharCode(g),k.push(g);return;default:break}q.push(60),q.push(47),ko(q,k),fe(g,kn)}function Gv(g){switch(g){case 9:case 10:case 12:case 32:case 47:case 62:Er(k)==="script"?f=Ci:f=kn,q.push(g);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:k.push(g+32),q.push(g);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:k.push(g),q.push(g);break;default:fe(g,kn);break}}function Ci(g){switch(g){case 45:f=Xv,q.push(45);break;case 60:f=R0,q.push(60);break;case 0:q.push(65533);break;case-1:pe();break;default:q.push(g);break}}function Xv(g){switch(g){case 45:f=Yv,q.push(45);break;case 60:f=R0,q.push(60);break;case 0:f=Ci,q.push(65533);break;case-1:pe();break;default:f=Ci,q.push(g);break}}function Yv(g){switch(g){case 45:q.push(45);break;case 60:f=R0,q.push(60);break;case 62:f=Ti,q.push(62);break;case 0:f=Ci,q.push(65533);break;case-1:pe();break;default:f=Ci,q.push(g);break}}function R0(g){g===47?(ir(),f=Zv,q.push(47)):fe(g,Ci)}function Zv(g){switch(g){case 9:case 10:case 12:case 32:case 47:case 62:Er(k)==="script"?f=kn:f=Ci,q.push(g);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:k.push(g+32),q.push(g);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:k.push(g),q.push(g);break;default:fe(g,Ci);break}}function Tn(g){switch(g){case 9:case 10:case 12:case 32:break;case 47:f=Di;break;case 62:f=Oe,un();break;case-1:pe();break;case 61:zr(),T+=String.fromCharCode(g),f=L0;break;default:if(nr())break;zr(),fe(g,L0);break}}function L0(g){switch(g){case 9:case 10:case 12:case 32:case 47:case 62:case-1:fe(g,Qv);break;case 61:f=Jm;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:T+=String.fromCharCode(g+32);break;case 0:T+="\uFFFD";break;default:T+=Nr(R8);break}}function Qv(g){switch(g){case 9:case 10:case 12:case 32:break;case 47:nt(T),f=Di;break;case 61:f=Jm;break;case 62:f=Oe,nt(T),un();break;case-1:nt(T),pe();break;default:nt(T),zr(),fe(g,L0);break}}function Jm(g){switch(g){case 9:case 10:case 12:case 32:break;case 34:Jr(),f=Ou;break;case 39:Jr(),f=Fu;break;default:Jr(),fe(g,Pu);break}}function Ou(g){switch(g){case 34:nt(T,S),f=M0;break;case 38:h=Ou,f=ys;break;case 0:S+="\uFFFD";break;case-1:pe();break;case 10:S+=String.fromCharCode(g);break;default:S+=Nr(C8);break}}function Fu(g){switch(g){case 39:nt(T,S),f=M0;break;case 38:h=Fu,f=ys;break;case 0:S+="\uFFFD";break;case-1:pe();break;case 10:S+=String.fromCharCode(g);break;default:S+=Nr(D8);break}}function Pu(g){switch(g){case 9:case 10:case 12:case 32:nt(T,S),f=Tn;break;case 38:h=Pu,f=ys;break;case 62:nt(T,S),f=Oe,un();break;case 0:S+="\uFFFD";break;case-1:o--,f=Oe;break;default:S+=Nr(I8);break}}function M0(g){switch(g){case 9:case 10:case 12:case 32:f=Tn;break;case 47:f=Di;break;case 62:f=Oe,un();break;case-1:pe();break;default:fe(g,Tn);break}}function Di(g){switch(g){case 62:f=Oe,z(!0);break;case-1:pe();break;default:fe(g,Tn);break}}function Bu(g,x,A){var L=x.length;A?o+=L-1:o+=L;var B=x.substring(0,L-1);B=B.replace(/\u0000/g,"\uFFFD"),B=B.replace(/\u000D\u000A/g,`
8
+ `),B=B.replace(/\u000D/g,`
9
+ `),ze(Bn,B),f=Oe}Bu.lookahead=">";function Gm(g,x,A){if(x[0]==="-"&&x[1]==="-"){o+=2,An(),f=e6;return}x.toUpperCase()==="DOCTYPE"?(o+=7,f=s6):x==="[CDATA["&&ae()?(o+=7,f=P0):f=Bu}Gm.lookahead=7;function e6(g){switch(An(),g){case 45:f=t6;break;case 62:f=Oe,ze(Bn,Er(C));break;default:fe(g,ao);break}}function t6(g){switch(g){case 45:f=Hu;break;case 62:f=Oe,ze(Bn,Er(C));break;case-1:ze(Bn,Er(C)),pe();break;default:C.push(45),fe(g,ao);break}}function ao(g){switch(g){case 60:C.push(g),f=r6;break;case 45:f=O0;break;case 0:C.push(65533);break;case-1:ze(Bn,Er(C)),pe();break;default:C.push(g);break}}function r6(g){switch(g){case 33:C.push(g),f=n6;break;case 60:C.push(g);break;default:fe(g,ao);break}}function n6(g){g===45?f=i6:fe(g,ao)}function i6(g){g===45?f=o6:fe(g,O0)}function o6(g){switch(g){case 62:case-1:fe(g,Hu);break;default:fe(g,Hu);break}}function O0(g){switch(g){case 45:f=Hu;break;case-1:ze(Bn,Er(C)),pe();break;default:C.push(45),fe(g,ao);break}}function Hu(g){switch(g){case 62:f=Oe,ze(Bn,Er(C));break;case 33:f=a6;break;case 45:C.push(45);break;case-1:ze(Bn,Er(C)),pe();break;default:C.push(45),C.push(45),fe(g,ao);break}}function a6(g){switch(g){case 45:C.push(45),C.push(45),C.push(33),f=O0;break;case 62:f=Oe,ze(Bn,Er(C));break;case-1:ze(Bn,Er(C)),pe();break;default:C.push(45),C.push(45),C.push(33),fe(g,ao);break}}function s6(g){switch(g){case 9:case 10:case 12:case 32:f=Xm;break;case-1:Ir(),ne(),Ce(),pe();break;default:fe(g,Xm);break}}function Xm(g){switch(g){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:Ir(),I.push(g+32),f=F0;break;case 0:Ir(),I.push(65533),f=F0;break;case 62:Ir(),ne(),f=Oe,Ce();break;case-1:Ir(),ne(),Ce(),pe();break;default:Ir(),I.push(g),f=F0;break}}function F0(g){switch(g){case 9:case 10:case 12:case 32:f=Ym;break;case 62:f=Oe,Ce();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:I.push(g+32);break;case 0:I.push(65533);break;case-1:ne(),Ce(),pe();break;default:I.push(g);break}}function Ym(g,x,A){switch(g){case 9:case 10:case 12:case 32:o+=1;break;case 62:f=Oe,o+=1,Ce();break;case-1:ne(),Ce(),pe();break;default:x=x.toUpperCase(),x==="PUBLIC"?(o+=6,f=u6):x==="SYSTEM"?(o+=6,f=f6):(ne(),f=Ii);break}}Ym.lookahead=6;function u6(g){switch(g){case 9:case 10:case 12:case 32:f=c6;break;case 34:Ke(),f=Zm;break;case 39:Ke(),f=Qm;break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:ne(),f=Ii;break}}function c6(g){switch(g){case 9:case 10:case 12:case 32:break;case 34:Ke(),f=Zm;break;case 39:Ke(),f=Qm;break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:ne(),f=Ii;break}}function Zm(g){switch(g){case 34:f=eg;break;case 0:O.push(65533);break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:O.push(g);break}}function Qm(g){switch(g){case 39:f=eg;break;case 0:O.push(65533);break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:O.push(g);break}}function eg(g){switch(g){case 9:case 10:case 12:case 32:f=l6;break;case 62:f=Oe,Ce();break;case 34:le(),f=Uu;break;case 39:le(),f=$u;break;case-1:ne(),Ce(),pe();break;default:ne(),f=Ii;break}}function l6(g){switch(g){case 9:case 10:case 12:case 32:break;case 62:f=Oe,Ce();break;case 34:le(),f=Uu;break;case 39:le(),f=$u;break;case-1:ne(),Ce(),pe();break;default:ne(),f=Ii;break}}function f6(g){switch(g){case 9:case 10:case 12:case 32:f=d6;break;case 34:le(),f=Uu;break;case 39:le(),f=$u;break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:ne(),f=Ii;break}}function d6(g){switch(g){case 9:case 10:case 12:case 32:break;case 34:le(),f=Uu;break;case 39:le(),f=$u;break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:ne(),f=Ii;break}}function Uu(g){switch(g){case 34:f=tg;break;case 0:W.push(65533);break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:W.push(g);break}}function $u(g){switch(g){case 39:f=tg;break;case 0:W.push(65533);break;case 62:ne(),f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:W.push(g);break}}function tg(g){switch(g){case 9:case 10:case 12:case 32:break;case 62:f=Oe,Ce();break;case-1:ne(),Ce(),pe();break;default:f=Ii;break}}function Ii(g){switch(g){case 62:f=Oe,Ce();break;case-1:Ce(),pe();break;default:break}}function P0(g){switch(g){case 93:f=p6;break;case-1:pe();break;case 0:G=!0;default:kr(L8)||q.push(g);break}}function p6(g){g===93?f=h6:(q.push(93),fe(g,P0))}function h6(g){switch(g){case 93:q.push(93);break;case 62:tt(),f=Oe;break;default:q.push(93),q.push(93),fe(g,P0);break}}function ys(g){switch(ir(),k.push(38),g){case 9:case 10:case 12:case 32:case 60:case 38:case-1:fe(g,so);break;case 35:k.push(g),f=m6;break;default:fe(g,rg);break}}function rg(g){S1.lastIndex=o;var x=S1.exec(n);if(!x)throw new Error("should never happen");var A=x[1];if(!A){f=so;return}switch(o+=A.length,ko(k,P8(A)),h){case Ou:case Fu:case Pu:if(A[A.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[o])){f=so;return}break;default:break}ir();var L=k8[A];typeof L=="number"?k.push(L):ko(k,L),f=so}rg.lookahead=-T8;function m6(g){switch(b=0,g){case 120:case 88:k.push(g),f=g6;break;default:fe(g,x6);break}}function g6(g){switch(g){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:fe(g,b6);break;default:fe(g,so);break}}function x6(g){switch(g){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:fe(g,y6);break;default:fe(g,so);break}}function b6(g){switch(g){case 65:case 66:case 67:case 68:case 69:case 70:b*=16,b+=g-55;break;case 97:case 98:case 99:case 100:case 101:case 102:b*=16,b+=g-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:b*=16,b+=g-48;break;case 59:f=qu;break;default:fe(g,qu);break}}function y6(g){switch(g){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:b*=10,b+=g-48;break;case 59:f=qu;break;default:fe(g,qu);break}}function qu(g){b in v1?b=v1[b]:(b>1114111||b>=55296&&b<57344)&&(b=65533),ir(),b<=65535?k.push(b):(b=b-65536,k.push(55296+(b>>10)),k.push(56320+(b&1023))),fe(g,so)}function so(g){switch(h){case Ou:case Fu:case Pu:S+=Er(k);break;default:ko(q,k);break}fe(g,h)}function w6(g,x,A,L){switch(g){case 1:if(x=x.replace(To,""),x.length===0)return;break;case 4:K._appendChild(K.createComment(x));return;case 5:var B=x,ee=A,_e=L;K.appendChild(new y8(K,B,ee,_e)),ke||B.toLowerCase()!=="html"||_8.test(ee)||_e&&_e.toLowerCase()===v8||_e===void 0&&y1.test(ee)?K._quirks=!0:(S8.test(ee)||_e!==void 0&&y1.test(ee))&&(K._limitedQuirks=!0),v=ng;return}K._quirks=!0,v=ng,v(g,x,A,L)}function ng(g,x,A,L){var B;switch(g){case 1:if(x=x.replace(To,""),x.length===0)return;break;case 5:return;case 4:K._appendChild(K.createComment(x));return;case 2:if(x==="html"){B=Gr(K,x,A),E.push(B),K.appendChild(B),v=Wu;return}break;case 3:switch(x){case"html":case"head":case"body":case"br":break;default:return}}B=Gr(K,"html",null),E.push(B),K.appendChild(B),v=Wu,v(g,x,A,L)}function Wu(g,x,A,L){switch(g){case 1:if(x=x.replace(To,""),x.length===0)return;break;case 5:return;case 4:ht(x);return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"head":var B=Ae(x,A);F=B,v=_t;return}break;case 3:switch(x){case"html":case"head":case"body":case"br":break;default:return}}Wu(wr,"head",null),v(g,x,A,L)}function _t(g,x,A,L){switch(g){case 1:var B=x.match(To);if(B&&(De(B[0]),x=x.substring(B[0].length)),x.length===0)return;break;case 4:ht(x);return;case 5:return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"meta":case"base":case"basefont":case"bgsound":case"link":Ae(x,A),E.pop();return;case"title":Iv(x,A);return;case"noscript":if(!X){Ae(x,A),v=ig;return}case"noframes":case"style":Lu(x,A);return;case"script":ei(function(ee){var _e=Gr(ee,x,A);return _e._parser_inserted=!0,_e._force_async=!1,M&&(_e._already_started=!0),tt(),_e}),f=Ti,N=v,v=Ku;return;case"template":Ae(x,A),R.insertMarker(),ge=!1,v=U0,P.push(v);return;case"head":return}break;case 3:switch(x){case"head":E.pop(),v=B0;return;case"body":case"html":case"br":break;case"template":if(!E.contains("template"))return;E.generateImpliedEndTags(null,"thorough"),E.popTag("template"),R.clearToMarker(),P.pop(),io();return;default:return}break}_t(Be,"head",null),v(g,x,A,L)}function ig(g,x,A,L){switch(g){case 5:return;case 4:_t(g,x);return;case 1:var B=x.match(To);if(B&&(_t(g,B[0]),x=x.substring(B[0].length)),x.length===0)return;break;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":_t(g,x,A);return;case"head":case"noscript":return}break;case 3:switch(x){case"noscript":E.pop(),v=_t;return;case"br":break;default:return}break}ig(Be,"noscript",null),v(g,x,A,L)}function B0(g,x,A,L){switch(g){case 1:var B=x.match(To);if(B&&(De(B[0]),x=x.substring(B[0].length)),x.length===0)return;break;case 4:ht(x);return;case 5:return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"body":Ae(x,A),ge=!1,v=Ee;return;case"frameset":Ae(x,A),v=$0;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":E.push(F),_t(wr,x,A),E.removeElement(F);return;case"head":return}break;case 3:switch(x){case"template":return _t(g,x,A,L);case"body":case"html":case"br":break;default:return}break}B0(wr,"body",null),ge=!0,v(g,x,A,L)}function Ee(g,x,A,L){var B,ee,_e,Fe;switch(g){case 1:if(G&&(x=x.replace(Yc,""),x.length===0))return;ge&&Xc.test(x)&&(ge=!1),Tr(),De(x);return;case 5:return;case 4:ht(x);return;case-1:if(P.length)return U0(g);oo();return;case 2:switch(x){case"html":if(E.contains("template"))return;R1(A,E.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":_t(wr,x,A);return;case"body":if(B=E.elements[1],!B||!(B instanceof Ye.HTMLBodyElement)||E.contains("template"))return;ge=!1,R1(A,B);return;case"frameset":if(!ge||(B=E.elements[1],!B||!(B instanceof Ye.HTMLBodyElement)))return;for(B.parentNode&&B.parentNode.removeChild(B);!(E.top instanceof Ye.HTMLHtmlElement);)E.pop();Ae(x,A),v=$0;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":E.inButtonScope("p")&&Ee(Be,"p"),Ae(x,A);return;case"menu":E.inButtonScope("p")&&Ee(Be,"p"),Ze(E.top,"menuitem")&&E.pop(),Ae(x,A);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":E.inButtonScope("p")&&Ee(Be,"p"),E.top instanceof Ye.HTMLHeadingElement&&E.pop(),Ae(x,A);return;case"pre":case"listing":E.inButtonScope("p")&&Ee(Be,"p"),Ae(x,A),ue=!0,ge=!1;return;case"form":if($&&!E.contains("template"))return;E.inButtonScope("p")&&Ee(Be,"p"),Fe=Ae(x,A),E.contains("template")||($=Fe);return;case"li":for(ge=!1,ee=E.elements.length-1;ee>=0;ee--){if(_e=E.elements[ee],_e instanceof Ye.HTMLLIElement){Ee(Be,"li");break}if(Ze(_e,Co)&&!Ze(_e,vp))break}E.inButtonScope("p")&&Ee(Be,"p"),Ae(x,A);return;case"dd":case"dt":for(ge=!1,ee=E.elements.length-1;ee>=0;ee--){if(_e=E.elements[ee],Ze(_e,M1)){Ee(Be,_e.localName);break}if(Ze(_e,Co)&&!Ze(_e,vp))break}E.inButtonScope("p")&&Ee(Be,"p"),Ae(x,A);return;case"plaintext":E.inButtonScope("p")&&Ee(Be,"p"),Ae(x,A),f=I0;return;case"button":E.inScope("button")?(Ee(Be,"button"),v(g,x,A,L)):(Tr(),Ae(x,A),ge=!1);return;case"a":var mt=R.findElementByTag("a");mt&&(Ee(Be,x),R.remove(mt),E.removeElement(mt));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":Tr(),R.push(Ae(x,A),A);return;case"nobr":Tr(),E.inScope(x)&&(Ee(Be,x),Tr()),R.push(Ae(x,A),A);return;case"applet":case"marquee":case"object":Tr(),Ae(x,A),R.insertMarker(),ge=!1;return;case"table":!K._quirks&&E.inButtonScope("p")&&Ee(Be,"p"),Ae(x,A),ge=!1,v=Xr;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":Tr(),Ae(x,A),E.pop(),ge=!1;return;case"input":Tr(),Fe=Ae(x,A),E.pop();var or=Fe.getAttribute("type");(!or||or.toLowerCase()!=="hidden")&&(ge=!1);return;case"param":case"source":case"track":Ae(x,A),E.pop();return;case"hr":E.inButtonScope("p")&&Ee(Be,"p"),Ze(E.top,"menuitem")&&E.pop(),Ae(x,A),E.pop(),ge=!1;return;case"image":Ee(wr,"img",A,L);return;case"textarea":Ae(x,A),ue=!0,ge=!1,f=ki,N=v,v=Ku;return;case"xmp":E.inButtonScope("p")&&Ee(Be,"p"),Tr(),ge=!1,Lu(x,A);return;case"iframe":ge=!1,Lu(x,A);return;case"noembed":Lu(x,A);return;case"select":Tr(),Ae(x,A),ge=!1,v===Xr||v===H0||v===uo||v===ws||v===Xo?v=Vu:v=ti;return;case"optgroup":case"option":E.top instanceof Ye.HTMLOptionElement&&Ee(Be,"option"),Tr(),Ae(x,A);return;case"menuitem":Ze(E.top,"menuitem")&&E.pop(),Tr(),Ae(x,A);return;case"rb":case"rtc":E.inScope("ruby")&&E.generateImpliedEndTags(),Ae(x,A);return;case"rp":case"rt":E.inScope("ruby")&&E.generateImpliedEndTags("rtc"),Ae(x,A);return;case"math":Tr(),N1(A),_p(A),Nt(x,A,xe.MATHML),L&&E.pop();return;case"svg":Tr(),I1(A),_p(A),Nt(x,A,xe.SVG),L&&E.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}Tr(),Ae(x,A);return;case 3:switch(x){case"template":_t(Be,x,A);return;case"body":if(!E.inScope("body"))return;v=og;return;case"html":if(!E.inScope("body"))return;v=og,v(g,x,A);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(!E.inScope(x))return;E.generateImpliedEndTags(),E.popTag(x);return;case"form":if(E.contains("template")){if(!E.inScope("form"))return;E.generateImpliedEndTags(),E.popTag("form")}else{var Yr=$;if($=null,!Yr||!E.elementInScope(Yr))return;E.generateImpliedEndTags(),E.removeElement(Yr)}return;case"p":E.inButtonScope(x)?(E.generateImpliedEndTags(x),E.popTag(x)):(Ee(wr,x,null),v(g,x,A,L));return;case"li":if(!E.inListItemScope(x))return;E.generateImpliedEndTags(x),E.popTag(x);return;case"dd":case"dt":if(!E.inScope(x))return;E.generateImpliedEndTags(x),E.popTag(x);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!E.elementTypeInScope(Ye.HTMLHeadingElement))return;E.generateImpliedEndTags(),E.popElementType(Ye.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 cn=Nv(x);if(cn)return;break;case"applet":case"marquee":case"object":if(!E.inScope(x))return;E.generateImpliedEndTags(),E.popTag(x),R.clearToMarker();return;case"br":Ee(wr,x,null);return}for(ee=E.elements.length-1;ee>=0;ee--)if(_e=E.elements[ee],Ze(_e,x)){E.generateImpliedEndTags(x),E.popElement(_e);break}else if(Ze(_e,Co))return;return}}function Ku(g,x,A,L){switch(g){case 1:De(x);return;case-1:E.top instanceof Ye.HTMLScriptElement&&(E.top._already_started=!0),E.pop(),v=N,v(g);return;case 3:x==="script"?Rv():(E.pop(),v=N);return;default:return}}function Xr(g,x,A,L){function B(_e){for(var Fe=0,mt=_e.length;Fe<mt;Fe++)if(_e[Fe][0]==="type")return _e[Fe][1].toLowerCase();return null}switch(g){case 1:if(oe){Ee(g,x,A,L);return}else if(Ze(E.top,Ca)){me=[],N=v,v=E6,v(g,x,A,L);return}break;case 4:ht(x);return;case 5:return;case 2:switch(x){case"caption":E.clearToContext(Zc),R.insertMarker(),Ae(x,A),v=H0;return;case"colgroup":E.clearToContext(Zc),Ae(x,A),v=ju;return;case"col":Xr(wr,"colgroup",null),v(g,x,A,L);return;case"tbody":case"tfoot":case"thead":E.clearToContext(Zc),Ae(x,A),v=uo;return;case"td":case"th":case"tr":Xr(wr,"tbody",null),v(g,x,A,L);return;case"table":if(!E.inTableScope(x))return;Xr(Be,x),v(g,x,A,L);return;case"style":case"script":case"template":_t(g,x,A,L);return;case"input":var ee=B(A);if(ee!=="hidden")break;Ae(x,A),E.pop();return;case"form":if($||E.contains("template"))return;$=Ae(x,A),E.popElement($);return}break;case 3:switch(x){case"table":if(!E.inTableScope(x))return;E.popTag(x),io();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":_t(g,x,A,L);return}break;case-1:Ee(g,x,A,L);return}qt=!0,Ee(g,x,A,L),qt=!1}function E6(g,x,A,L){if(g===Ta){if(G&&(x=x.replace(Yc,""),x.length===0))return;me.push(x)}else{var B=me.join("");me.length=0,Xc.test(B)?(qt=!0,Ee(Ta,B),qt=!1):De(B),v=N,v(g,x,A,L)}}function H0(g,x,A,L){function B(){return E.inTableScope("caption")?(E.generateImpliedEndTags(),E.popTag("caption"),R.clearToMarker(),v=Xr,!0):!1}switch(g){case 2:switch(x){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":B()&&v(g,x,A,L);return}break;case 3:switch(x){case"caption":B();return;case"table":B()&&v(g,x,A,L);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}Ee(g,x,A,L)}function ju(g,x,A,L){switch(g){case 1:var B=x.match(To);if(B&&(De(B[0]),x=x.substring(B[0].length)),x.length===0)return;break;case 4:ht(x);return;case 5:return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"col":Ae(x,A),E.pop();return;case"template":_t(g,x,A,L);return}break;case 3:switch(x){case"colgroup":if(!Ze(E.top,"colgroup"))return;E.pop(),v=Xr;return;case"col":return;case"template":_t(g,x,A,L);return}break;case-1:Ee(g,x,A,L);return}Ze(E.top,"colgroup")&&(ju(Be,"colgroup"),v(g,x,A,L))}function uo(g,x,A,L){function B(){!E.inTableScope("tbody")&&!E.inTableScope("thead")&&!E.inTableScope("tfoot")||(E.clearToContext(Qc),uo(Be,E.top.localName,null),v(g,x,A,L))}switch(g){case 2:switch(x){case"tr":E.clearToContext(Qc),Ae(x,A),v=ws;return;case"th":case"td":uo(wr,"tr",null),v(g,x,A,L);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":B();return}break;case 3:switch(x){case"table":B();return;case"tbody":case"tfoot":case"thead":E.inTableScope(x)&&(E.clearToContext(Qc),E.pop(),v=Xr);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}Xr(g,x,A,L)}function ws(g,x,A,L){function B(){return E.inTableScope("tr")?(E.clearToContext(Sp),E.pop(),v=uo,!0):!1}switch(g){case 2:switch(x){case"th":case"td":E.clearToContext(Sp),Ae(x,A),v=Xo,R.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":B()&&v(g,x,A,L);return}break;case 3:switch(x){case"tr":B();return;case"table":B()&&v(g,x,A,L);return;case"tbody":case"tfoot":case"thead":E.inTableScope(x)&&B()&&v(g,x,A,L);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}Xr(g,x,A,L)}function Xo(g,x,A,L){switch(g){case 2:switch(x){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":E.inTableScope("td")?(Xo(Be,"td"),v(g,x,A,L)):E.inTableScope("th")&&(Xo(Be,"th"),v(g,x,A,L));return}break;case 3:switch(x){case"td":case"th":if(!E.inTableScope(x))return;E.generateImpliedEndTags(),E.popTag(x),R.clearToMarker(),v=ws;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!E.inTableScope(x))return;Xo(Be,E.inTableScope("td")?"td":"th"),v(g,x,A,L);return}break}Ee(g,x,A,L)}function ti(g,x,A,L){switch(g){case 1:if(G&&(x=x.replace(Yc,""),x.length===0))return;De(x);return;case 4:ht(x);return;case 5:return;case-1:Ee(g,x,A,L);return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"option":E.top instanceof Ye.HTMLOptionElement&&ti(Be,x),Ae(x,A);return;case"optgroup":E.top instanceof Ye.HTMLOptionElement&&ti(Be,"option"),E.top instanceof Ye.HTMLOptGroupElement&&ti(Be,x),Ae(x,A);return;case"select":ti(Be,x);return;case"input":case"keygen":case"textarea":if(!E.inSelectScope("select"))return;ti(Be,"select"),v(g,x,A,L);return;case"script":case"template":_t(g,x,A,L);return}break;case 3:switch(x){case"optgroup":E.top instanceof Ye.HTMLOptionElement&&E.elements[E.elements.length-2]instanceof Ye.HTMLOptGroupElement&&ti(Be,"option"),E.top instanceof Ye.HTMLOptGroupElement&&E.pop();return;case"option":E.top instanceof Ye.HTMLOptionElement&&E.pop();return;case"select":if(!E.inSelectScope(x))return;E.popTag(x),io();return;case"template":_t(g,x,A,L);return}break}}function Vu(g,x,A,L){switch(x){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(g){case 2:Vu(Be,"select"),v(g,x,A,L);return;case 3:E.inTableScope(x)&&(Vu(Be,"select"),v(g,x,A,L));return}}ti(g,x,A,L)}function U0(g,x,A,L){function B(ee){v=ee,P[P.length-1]=v,v(g,x,A,L)}switch(g){case 1:case 4:case 5:Ee(g,x,A,L);return;case-1:E.contains("template")?(E.popTag("template"),R.clearToMarker(),P.pop(),io(),v(g,x,A,L)):oo();return;case 2:switch(x){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":_t(g,x,A,L);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":B(Xr);return;case"col":B(ju);return;case"tr":B(uo);return;case"td":case"th":B(ws);return}B(Ee);return;case 3:if(x==="template"){_t(g,x,A,L);return}else return}}function og(g,x,A,L){switch(g){case 1:if(Xc.test(x))break;Ee(g,x);return;case 4:E.elements[0]._appendChild(K.createComment(x));return;case 5:return;case-1:oo();return;case 2:if(x==="html"){Ee(g,x,A,L);return}break;case 3:if(x==="html"){if(M)return;v=v6;return}break}v=Ee,v(g,x,A,L)}function $0(g,x,A,L){switch(g){case 1:x=x.replace(Ep,""),x.length>0&&De(x);return;case 4:ht(x);return;case 5:return;case-1:oo();return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"frameset":Ae(x,A);return;case"frame":Ae(x,A),E.pop();return;case"noframes":_t(g,x,A,L);return}break;case 3:if(x==="frameset"){if(M&&E.top instanceof Ye.HTMLHtmlElement)return;E.pop(),!M&&!(E.top instanceof Ye.HTMLFrameSetElement)&&(v=_6);return}break}}function _6(g,x,A,L){switch(g){case 1:x=x.replace(Ep,""),x.length>0&&De(x);return;case 4:ht(x);return;case 5:return;case-1:oo();return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"noframes":_t(g,x,A,L);return}break;case 3:if(x==="html"){v=S6;return}break}}function v6(g,x,A,L){switch(g){case 1:if(Xc.test(x))break;Ee(g,x,A,L);return;case 4:K._appendChild(K.createComment(x));return;case 5:Ee(g,x,A,L);return;case-1:oo();return;case 2:if(x==="html"){Ee(g,x,A,L);return}break}v=Ee,v(g,x,A,L)}function S6(g,x,A,L){switch(g){case 1:x=x.replace(Ep,""),x.length>0&&Ee(g,x,A,L);return;case 4:K._appendChild(K.createComment(x));return;case 5:Ee(g,x,A,L);return;case-1:oo();return;case 2:switch(x){case"html":Ee(g,x,A,L);return;case"noframes":_t(g,x,A,L);return}break}}function ag(g,x,A,L){function B(mt){for(var or=0,Yr=mt.length;or<Yr;or++)switch(mt[or][0]){case"color":case"face":case"size":return!0}return!1}var ee;switch(g){case 1:ge&&F8.test(x)&&(ge=!1),G&&(x=x.replace(Yc,"\uFFFD")),De(x);return;case 4:ht(x);return;case 5:return;case 2:switch(x){case"font":if(!B(A))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(M)break;do E.pop(),ee=E.top;while(ee.namespaceURI!==xe.HTML&&!C1(ee)&&!D1(ee));ze(g,x,A,L);return}ee=E.elements.length===1&&M?t:E.top,ee.namespaceURI===xe.MATHML?N1(A):ee.namespaceURI===xe.SVG&&(x=B8(x),I1(A)),_p(A),Nt(x,A,ee.namespaceURI),L&&(x==="script"&&(ee.namespaceURI,xe.SVG),E.pop());return;case 3:if(ee=E.top,x==="script"&&ee.namespaceURI===xe.SVG&&ee.localName==="script")E.pop();else for(var _e=E.elements.length-1,Fe=E.elements[_e];;){if(Fe.localName.toLowerCase()===x){E.popElement(Fe);break}if(Fe=E.elements[--_e],Fe.namespaceURI===xe.HTML){v(g,x,A,L);break}}return}}return Ue.testTokenizer=function(g,x,A,L){var B=[];switch(x){case"PCDATA state":f=Oe;break;case"RCDATA state":f=ki;break;case"RAWTEXT state":f=bs;break;case"PLAINTEXT state":f=I0;break}if(A&&(D=A),ze=function(_e,Fe,mt,or){switch(tt(),_e){case 1:B.length>0&&B[B.length-1][0]==="Character"?B[B.length-1][1]+=Fe:B.push(["Character",Fe]);break;case 4:B.push(["Comment",Fe]);break;case 5:B.push(["DOCTYPE",Fe,mt===void 0?null:mt,or===void 0?null:or,!ke]);break;case 2:for(var Yr=Object.create(null),cn=0;cn<mt.length;cn++){var co=mt[cn];co.length===1?Yr[co[0]]="":Yr[co[0]]=co[1]}var Ni=["StartTag",Fe,Yr];or&&Ni.push(!0),B.push(Ni);break;case 3:B.push(["EndTag",Fe]);break;case-1:break}},!L)this.parse(g,!0);else{for(var ee=0;ee<g.length;ee++)this.parse(g[ee]);this.parse("",!0)}return B},Ue}});var Gs=ie((vO,j1)=>{"use strict";p();j1.exports=K1;var q1=Vc(),W1=Jc(),H8=tl(),rl=St(),U8=Dc();function K1(e){this.contextObject=e}var $8={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}};K1.prototype={hasFeature:function(t,r){var n=$8[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return U8.isValidQName(t)||rl.InvalidCharacterError(),new W1(this.contextObject,t,r,n)},createDocument:function(t,r,n){var i=new q1(!1,null),o;return r?o=i.createElementNS(t,r):o=null,n&&i.appendChild(n),o&&i.appendChild(o),t===rl.NAMESPACE.HTML?i._contentType="application/xhtml+xml":t===rl.NAMESPACE.SVG?i._contentType="image/svg+xml":i._contentType="application/xml",i},createHTMLDocument:function(t){var r=new q1(!0,null);r.appendChild(new W1(r,"html"));var n=r.createElement("html");r.appendChild(n);var i=r.createElement("head");if(n.appendChild(i),t!==void 0){var o=r.createElement("title");i.appendChild(o),o.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){rl.nyi()},mozHTMLParser:H8}});var z1=ie((AO,V1)=>{"use strict";p();var q8=Hc(),W8=dp();V1.exports=kp;function kp(e,t){this._window=e,this._href=t}kp.prototype=Object.create(W8.prototype,{constructor:{value:kp},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new q8(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 G1=ie((TO,J1)=>{"use strict";p();var K8=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}}});J1.exports=K8});var Y1=ie((DO,X1)=>{"use strict";p();var j8={setTimeout,clearTimeout,setInterval,clearInterval};X1.exports=j8});var Cp=ie((Xs,Z1)=>{"use strict";p();var Tp=St();Xs=Z1.exports={CSSStyleDeclaration:Uc(),CharacterData:Us(),Comment:Zd(),DOMException:Sc(),DOMImplementation:Gs(),DOMTokenList:Od(),Document:Vc(),DocumentFragment:ep(),DocumentType:Jc(),Element:wa(),HTMLParser:tl(),NamedNodeMap:$d(),Node:ar(),NodeList:So(),NodeFilter:Ks(),ProcessingInstruction:rp(),Text:Xd(),Window:Dp()};Tp.merge(Xs,fp());Tp.merge(Xs,Wc().elements);Tp.merge(Xs,xp().elements)});var Dp=ie((RO,Q1)=>{"use strict";p();var V8=Gs(),z8=xd(),J8=z1(),Ys=St();Q1.exports=nl;function nl(e){this.document=e||new V8(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new J8(this,this.document._address||"about:blank")}nl.prototype=Object.create(z8.prototype,{console:{value:console},history:{value:{back:Ys.nyi,forward:Ys.nyi,go:Ys.nyi}},navigator:{value:G1()},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}}});Ys.expose(Y1(),nl);Ys.expose(Cp(),nl)});var Un=ie(Do=>{"use strict";p();var ey=Gs(),ty=tl(),MO=Dp(),ry=Cp();Do.createDOMImplementation=function(){return new ey(null)};Do.createDocument=function(e,t){if(e||t){var r=new ty;return r.parse(e||"",!0),r.document()}return new ey(null).createHTMLDocument("")};Do.createIncrementalHTMLParser=function(){var e=new ty;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()}}};Do.createWindow=function(e,t){var r=Do.createDocument(e);return t!==void 0&&(r._address=t),new ry.Window(r)};Do.impl=ry});var tw=ie((oP,ew)=>{p();ew.exports=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}});var aw=ie((cP,ow)=>{"use strict";p();var $p=Object.defineProperty,xT=Object.getOwnPropertyDescriptor,bT=Object.getOwnPropertyNames,yT=Object.prototype.hasOwnProperty,wT=(e,t)=>{for(var r in t)$p(e,r,{get:t[r],enumerable:!0})},ET=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bT(t))!yT.call(e,i)&&i!==r&&$p(e,i,{get:()=>t[i],enumerable:!(n=xT(t,i))||n.enumerable});return e},_T=e=>ET($p({},"__esModule",{value:!0}),e),nw={};wT(nw,{SYMBOL_FOR_REQ_CONTEXT:()=>iw,getContext:()=>vT});ow.exports=_T(nw);var iw=Symbol.for("@vercel/request-context");function vT(){return globalThis[iw]?.get?.()??{}}});var he,pt,fr=V(()=>{p();he=crypto,pt=e=>e instanceof CryptoKey});var ST,gl,qp=V(()=>{p();fr();ST=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await he.subtle.digest(r,t))},gl=ST});function dr(...e){let t=e.reduce((i,{length:o})=>i+o,0),r=new Uint8Array(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}function sw(e,t){return dr(Qe.encode(e),new Uint8Array([0]),t)}function Wp(e,t,r){if(t<0||t>=xl)throw new RangeError(`value must be >= 0 and <= ${xl-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,t&255],r)}function bl(e){let t=Math.floor(e/xl),r=e%xl,n=new Uint8Array(8);return Wp(n,t,0),Wp(n,r,4),n}function yl(e){let t=new Uint8Array(4);return Wp(t,e),t}function wl(e){return dr(yl(e.length),e)}async function uw(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(n*32);for(let o=0;o<n;o++){let a=new Uint8Array(4+e.length+r.length);a.set(yl(o+1)),a.set(e,4),a.set(r,4+e.length),i.set(await gl("sha256",a),o*32)}return i.slice(0,t>>3)}var Qe,yt,xl,jt=V(()=>{p();qp();Qe=new TextEncoder,yt=new TextDecoder,xl=2**32});var El,et,Kp,it,pr=V(()=>{p();jt();El=e=>{let t=e;typeof t=="string"&&(t=Qe.encode(t));let r=32768,n=[];for(let i=0;i<t.length;i+=r)n.push(String.fromCharCode.apply(null,t.subarray(i,i+r)));return btoa(n.join(""))},et=e=>El(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Kp=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r},it=e=>{let t=e;t instanceof Uint8Array&&(t=yt.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Kp(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}});var jp={};Cn(jp,{JOSEAlgNotAllowed:()=>gi,JOSEError:()=>Ot,JOSENotSupported:()=>be,JWEDecryptionFailed:()=>qn,JWEInvalid:()=>Y,JWKInvalid:()=>Ha,JWKSInvalid:()=>Po,JWKSMultipleMatchingKeys:()=>Ua,JWKSNoMatchingKey:()=>zi,JWKSTimeout:()=>$a,JWSInvalid:()=>Le,JWSSignatureVerificationFailed:()=>Ji,JWTClaimValidationFailed:()=>Vt,JWTExpired:()=>Fo,JWTInvalid:()=>Ct});var Ot,Vt,Fo,gi,be,qn,Y,Le,Ct,Ha,Po,zi,Ua,$a,Ji,Ne=V(()=>{p();Ot=class extends Error{constructor(t,r){super(t,r),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};Ot.code="ERR_JOSE_GENERIC";Vt=class extends Ot{constructor(t,r,n="unspecified",i="unspecified"){super(t,{cause:{claim:n,reason:i,payload:r}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=i,this.payload=r}};Vt.code="ERR_JWT_CLAIM_VALIDATION_FAILED";Fo=class extends Ot{constructor(t,r,n="unspecified",i="unspecified"){super(t,{cause:{claim:n,reason:i,payload:r}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=i,this.payload=r}};Fo.code="ERR_JWT_EXPIRED";gi=class extends Ot{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}};gi.code="ERR_JOSE_ALG_NOT_ALLOWED";be=class extends Ot{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}};be.code="ERR_JOSE_NOT_SUPPORTED";qn=class extends Ot{constructor(t="decryption operation failed",r){super(t,r),this.code="ERR_JWE_DECRYPTION_FAILED"}};qn.code="ERR_JWE_DECRYPTION_FAILED";Y=class extends Ot{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}};Y.code="ERR_JWE_INVALID";Le=class extends Ot{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}};Le.code="ERR_JWS_INVALID";Ct=class extends Ot{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}};Ct.code="ERR_JWT_INVALID";Ha=class extends Ot{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}};Ha.code="ERR_JWK_INVALID";Po=class extends Ot{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}};Po.code="ERR_JWKS_INVALID";zi=class extends Ot{constructor(t="no applicable key found in the JSON Web Key Set",r){super(t,r),this.code="ERR_JWKS_NO_MATCHING_KEY"}};zi.code="ERR_JWKS_NO_MATCHING_KEY";Ua=class extends Ot{constructor(t="multiple matching keys found in the JSON Web Key Set",r){super(t,r),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}};Ua.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";$a=class extends Ot{constructor(t="request timed out",r){super(t,r),this.code="ERR_JWKS_TIMEOUT"}};$a.code="ERR_JWKS_TIMEOUT";Ji=class extends Ot{constructor(t="signature verification failed",r){super(t,r),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};Ji.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"});var Gi,ru=V(()=>{p();fr();Gi=he.getRandomValues.bind(he)});function Vp(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new be(`Unsupported JWE Algorithm: ${e}`)}}var lw,zp=V(()=>{p();Ne();ru();lw=e=>Gi(new Uint8Array(Vp(e)>>3))});var AT,_l,Jp=V(()=>{p();Ne();zp();AT=(e,t)=>{if(t.length<<3!==Vp(e))throw new Y("Invalid Initialization Vector length")},_l=AT});var kT,qa,Gp=V(()=>{p();Ne();kT=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new Y(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},qa=kT});var TT,fw,dw=V(()=>{p();TT=(e,t)=>{if(!(e instanceof Uint8Array))throw new TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw new TypeError("Second argument must be a buffer");if(e.length!==t.length)throw new TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return n===0},fw=TT});function tr(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function xi(e,t){return e.name===t}function vl(e){return parseInt(e.name.slice(4),10)}function CT(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function pw(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let n=t.pop();r+=`one of ${t.join(", ")}, or ${n}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function hw(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!xi(e.algorithm,"HMAC"))throw tr("HMAC");let n=parseInt(t.slice(2),10);if(vl(e.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!xi(e.algorithm,"RSASSA-PKCS1-v1_5"))throw tr("RSASSA-PKCS1-v1_5");let n=parseInt(t.slice(2),10);if(vl(e.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!xi(e.algorithm,"RSA-PSS"))throw tr("RSA-PSS");let n=parseInt(t.slice(2),10);if(vl(e.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw tr("Ed25519 or Ed448");break}case"Ed25519":{if(!xi(e.algorithm,"Ed25519"))throw tr("Ed25519");break}case"ES256":case"ES384":case"ES512":{if(!xi(e.algorithm,"ECDSA"))throw tr("ECDSA");let n=CT(t);if(e.algorithm.namedCurve!==n)throw tr(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}pw(e,r)}function Br(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!xi(e.algorithm,"AES-GCM"))throw tr("AES-GCM");let n=parseInt(t.slice(1,4),10);if(e.algorithm.length!==n)throw tr(n,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!xi(e.algorithm,"AES-KW"))throw tr("AES-KW");let n=parseInt(t.slice(1,4),10);if(e.algorithm.length!==n)throw tr(n,"algorithm.length");break}case"ECDH":{switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw tr("ECDH, X25519, or X448")}break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!xi(e.algorithm,"PBKDF2"))throw tr("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!xi(e.algorithm,"RSA-OAEP"))throw tr("RSA-OAEP");let n=parseInt(t.slice(9),10)||1;if(vl(e.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}default:throw new TypeError("CryptoKey does not support this operation")}pw(e,r)}var Xi=V(()=>{p()});function mw(e,t,...r){if(r=r.filter(Boolean),r.length>2){let n=r.pop();e+=`one of type ${r.join(", ")}, or ${n}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}function Xp(e,t,...r){return mw(`Key for the ${e} algorithm must be `,t,...r)}var st,En=V(()=>{p();st=(e,...t)=>mw("Key must be ",e,...t)});var Yp,at,_n=V(()=>{p();fr();Yp=e=>pt(e)?!0:e?.[Symbol.toStringTag]==="KeyObject",at=["CryptoKey"]});async function DT(e,t,r,n,i,o){if(!(t instanceof Uint8Array))throw new TypeError(st(t,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await he.subtle.importKey("raw",t.subarray(a>>3),"AES-CBC",!1,["decrypt"]),u=await he.subtle.importKey("raw",t.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=dr(o,n,r,bl(o.length<<3)),l=new Uint8Array((await he.subtle.sign("HMAC",u,c)).slice(0,a>>3)),d;try{d=fw(i,l)}catch{}if(!d)throw new qn;let m;try{m=new Uint8Array(await he.subtle.decrypt({iv:n,name:"AES-CBC"},s,r))}catch{}if(!m)throw new qn;return m}async function IT(e,t,r,n,i,o){let a;t instanceof Uint8Array?a=await he.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(Br(t,e,"decrypt"),a=t);try{return new Uint8Array(await he.subtle.decrypt({additionalData:o,iv:n,name:"AES-GCM",tagLength:128},a,dr(r,i)))}catch{throw new qn}}var NT,Sl,Zp=V(()=>{p();jt();Jp();Gp();dw();Ne();fr();Xi();En();_n();NT=async(e,t,r,n,i,o)=>{if(!pt(t)&&!(t instanceof Uint8Array))throw new TypeError(st(t,...at,"Uint8Array"));if(!n)throw new Y("JWE Initialization Vector missing");if(!i)throw new Y("JWE Authentication Tag missing");switch(_l(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&qa(t,parseInt(e.slice(-3),10)),DT(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&qa(t,parseInt(e.slice(1,4),10)),IT(e,t,r,n,i,o);default:throw new be("Unsupported JWE Content Encryption Algorithm")}},Sl=NT});var RT,Wn,Wa=V(()=>{p();RT=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let n of t){let i=Object.keys(n);if(!r||r.size===0){r=new Set(i);continue}for(let o of i){if(r.has(o))return!1;r.add(o)}}return!0},Wn=RT});function LT(e){return typeof e=="object"&&e!==null}function He(e){if(!LT(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Sr=V(()=>{p()});var MT,Ka,Qp=V(()=>{p();MT=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]],Ka=MT});function gw(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw new TypeError(`Invalid key size for alg: ${t}`)}function xw(e,t,r){if(pt(e))return Br(e,t,r),e;if(e instanceof Uint8Array)return he.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw new TypeError(st(e,...at,"Uint8Array"))}var nu,iu,Al=V(()=>{p();Qp();fr();Xi();En();_n();nu=async(e,t,r)=>{let n=await xw(t,e,"wrapKey");gw(n,e);let i=await he.subtle.importKey("raw",r,...Ka);return new Uint8Array(await he.subtle.wrapKey("raw",i,n,"AES-KW"))},iu=async(e,t,r)=>{let n=await xw(t,e,"unwrapKey");gw(n,e);let i=await he.subtle.unwrapKey("raw",r,n,"AES-KW",...Ka);return new Uint8Array(await he.subtle.exportKey("raw",i))}});async function kl(e,t,r,n,i=new Uint8Array(0),o=new Uint8Array(0)){if(!pt(e))throw new TypeError(st(e,...at));if(Br(e,"ECDH"),!pt(t))throw new TypeError(st(t,...at));Br(t,"ECDH","deriveBits");let a=dr(wl(Qe.encode(r)),wl(i),wl(o),yl(n)),s;e.algorithm.name==="X25519"?s=256:e.algorithm.name==="X448"?s=448:s=Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3;let u=new Uint8Array(await he.subtle.deriveBits({name:e.algorithm.name,public:e},t,s));return uw(u,n,a)}async function bw(e){if(!pt(e))throw new TypeError(st(e,...at));return he.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function Tl(e){if(!pt(e))throw new TypeError(st(e,...at));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||e.algorithm.name==="X25519"||e.algorithm.name==="X448"}var eh=V(()=>{p();jt();fr();Xi();En();_n()});function th(e){if(!(e instanceof Uint8Array)||e.length<8)throw new Y("PBES2 Salt Input must be 8 or more octets")}var ww=V(()=>{p();Ne()});function OT(e,t){if(e instanceof Uint8Array)return he.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(pt(e))return Br(e,t,"deriveBits","deriveKey"),e;throw new TypeError(st(e,...at,"Uint8Array"))}async function Ew(e,t,r,n){th(e);let i=sw(t,e),o=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},s={length:o,name:"AES-KW"},u=await OT(n,t);if(u.usages.includes("deriveBits"))return new Uint8Array(await he.subtle.deriveBits(a,u,o));if(u.usages.includes("deriveKey"))return he.subtle.deriveKey(a,u,s,!1,["wrapKey","unwrapKey"]);throw new TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}var _w,vw,rh=V(()=>{p();ru();jt();pr();Al();ww();fr();Xi();En();_n();_w=async(e,t,r,n=2048,i=Gi(new Uint8Array(16)))=>{let o=await Ew(i,e,n,t);return{encryptedKey:await nu(e.slice(-6),o,r),p2c:n,p2s:et(i)}},vw=async(e,t,r,n,i)=>{let o=await Ew(i,e,n,t);return iu(e.slice(-6),o,r)}});function ja(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new be(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var Sw=V(()=>{p();Ne()});var Bo,Cl=V(()=>{p();Bo=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}}});var Aw,kw,nh=V(()=>{p();Sw();Qp();fr();Xi();Cl();En();_n();Aw=async(e,t,r)=>{if(!pt(t))throw new TypeError(st(t,...at));if(Br(t,e,"encrypt","wrapKey"),Bo(e,t),t.usages.includes("encrypt"))return new Uint8Array(await he.subtle.encrypt(ja(e),t,r));if(t.usages.includes("wrapKey")){let n=await he.subtle.importKey("raw",r,...Ka);return new Uint8Array(await he.subtle.wrapKey("raw",n,t,ja(e)))}throw new TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},kw=async(e,t,r)=>{if(!pt(t))throw new TypeError(st(t,...at));if(Br(t,e,"decrypt","unwrapKey"),Bo(e,t),t.usages.includes("decrypt"))return new Uint8Array(await he.subtle.decrypt(ja(e),t,r));if(t.usages.includes("unwrapKey")){let n=await he.subtle.unwrapKey("raw",r,t,ja(e),...Ka);return new Uint8Array(await he.subtle.exportKey("raw",n))}throw new TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')}});function bi(e){return He(e)&&typeof e.kty=="string"}function Tw(e){return e.kty!=="oct"&&typeof e.d=="string"}function Cw(e){return e.kty!=="oct"&&typeof e.d>"u"}function Dw(e){return bi(e)&&e.kty==="oct"&&typeof e.k=="string"}var Dl=V(()=>{p();Sr()});function PT(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"Ed25519":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new be('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var BT,Il,ih=V(()=>{p();fr();Ne();BT=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=PT(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,he.subtle.importKey("jwk",i,...n)},Il=BT});var Iw,Va,za,Nw,Nl,HT,UT,Ho,Rl=V(()=>{p();Dl();pr();ih();Iw=e=>it(e),Nw=e=>e?.[Symbol.toStringTag]==="KeyObject",Nl=async(e,t,r,n,i=!1)=>{let o=e.get(t);if(o?.[n])return o[n];let a=await Il({...r,alg:n});return i&&Object.freeze(t),o?o[n]=a:e.set(t,{[n]:a}),a},HT=(e,t)=>{if(Nw(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?Iw(r.k):(za||(za=new WeakMap),Nl(za,e,r,t))}return bi(e)?e.k?it(e.k):(za||(za=new WeakMap),Nl(za,e,e,t,!0)):e},UT=(e,t)=>{if(Nw(e)){let r=e.export({format:"jwk"});return r.k?Iw(r.k):(Va||(Va=new WeakMap),Nl(Va,e,r,t))}return bi(e)?e.k?it(e.k):(Va||(Va=new WeakMap),Nl(Va,e,e,t,!0)):e},Ho={normalizePublicKey:HT,normalizePrivateKey:UT}});function ou(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new be(`Unsupported JWE Algorithm: ${e}`)}}var Kn,au=V(()=>{p();Ne();ru();Kn=e=>Gi(new Uint8Array(ou(e)>>3))});var oh,Rw=V(()=>{p();oh=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join(`
10
+ `);return`-----BEGIN ${t}-----
11
+ ${r}
12
+ -----END ${t}-----`}});function Mw(e){let t=[],r=0;for(;r<e.length;){let n=Uw(e.subarray(r));t.push(n),r+=n.byteLength}return t}function Uw(e){let t=0,r=e[0]&31;if(t++,r===31){for(r=0;e[t]>=128;)r=r*128+e[t]-128,t++;r=r*128+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(n===128){for(n=0;e[t+n]!==0||e[t+n+1]!==0;){if(n>e.byteLength)throw new TypeError("invalid indefinite form length");n++}let o=t+n+2;return{byteLength:o,contents:e.subarray(t,t+n),raw:e.subarray(0,o)}}else{let o=e[t]&127;t++,n=0;for(let a=0;a<o;a++)n=n*256+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}function $T(e){let t=Mw(Mw(Uw(e).contents)[0].contents);return El(t[t[0].raw[0]===160?6:5].raw)}function qT(e){let t=e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""),r=Kp(t);return oh($T(r),"PUBLIC KEY")}var Ow,Fw,Pw,Yi,Lw,Bw,Hw,ah,$w,Ll=V(()=>{p();fr();En();pr();Rw();Ne();_n();Ow=async(e,t,r)=>{if(!pt(r))throw new TypeError(st(r,...at));if(!r.extractable)throw new TypeError("CryptoKey is not extractable");if(r.type!==e)throw new TypeError(`key is not a ${e} key`);return oh(El(new Uint8Array(await he.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},Fw=e=>Ow("public","spki",e),Pw=e=>Ow("private","pkcs8",e),Yi=(e,t,r=0)=>{r===0&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(n===-1)return!1;let i=e.subarray(n,n+t.length);return i.length!==t.length?!1:i.every((o,a)=>o===t[a])||Yi(e,t,n+1)},Lw=e=>{switch(!0){case Yi(e,[42,134,72,206,61,3,1,7]):return"P-256";case Yi(e,[43,129,4,0,34]):return"P-384";case Yi(e,[43,129,4,0,35]):return"P-521";case Yi(e,[43,101,110]):return"X25519";case Yi(e,[43,101,111]):return"X448";case Yi(e,[43,101,112]):return"Ed25519";case Yi(e,[43,101,113]):return"Ed448";default:throw new be("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},Bw=async(e,t,r,n,i)=>{let o,a,s=new Uint8Array(atob(r.replace(e,"")).split("").map(c=>c.charCodeAt(0))),u=t==="spki";switch(n){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},a=u?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},a=u?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},a=u?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":o={name:"ECDSA",namedCurve:"P-256"},a=u?["verify"]:["sign"];break;case"ES384":o={name:"ECDSA",namedCurve:"P-384"},a=u?["verify"]:["sign"];break;case"ES512":o={name:"ECDSA",namedCurve:"P-521"},a=u?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let c=Lw(s);o=c.startsWith("P-")?{name:"ECDH",namedCurve:c}:{name:c},a=u?[]:["deriveBits"];break}case"Ed25519":o={name:"Ed25519"},a=u?["verify"]:["sign"];break;case"EdDSA":o={name:Lw(s)},a=u?["verify"]:["sign"];break;default:throw new be('Invalid or unsupported "alg" (Algorithm) value')}return he.subtle.importKey(t,s,o,i?.extractable??!1,a)},Hw=(e,t,r)=>Bw(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),ah=(e,t,r)=>Bw(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);$w=(e,t,r)=>{let n;try{n=qT(e)}catch(i){throw new TypeError("Failed to parse the X.509 certificate",{cause:i})}return ah(n,t,r)}});async function qw(e,t,r){if(typeof e!="string"||e.indexOf("-----BEGIN PUBLIC KEY-----")!==0)throw new TypeError('"spki" must be SPKI formatted string');return ah(e,t,r)}async function Ww(e,t,r){if(typeof e!="string"||e.indexOf("-----BEGIN CERTIFICATE-----")!==0)throw new TypeError('"x509" must be X.509 formatted string');return $w(e,t,r)}async function Kw(e,t,r){if(typeof e!="string"||e.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return Hw(e,t,r)}async function jn(e,t){if(!He(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if(typeof e.k!="string"||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return it(e.k);case"RSA":if("oth"in e&&e.oth!==void 0)throw new be('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return Il({...e,alg:t});default:throw new be('Unsupported "kty" (Key Type) Parameter value')}}var Ja=V(()=>{p();pr();Ll();ih();Ne();Sr()});function jw(e,t,r,n){t.startsWith("HS")||t==="dir"||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?WT(t,r,n,e):KT(t,r,n,e)}var Ga,sh,WT,KT,Ml,su,uu=V(()=>{p();En();_n();Dl();Ga=e=>e?.[Symbol.toStringTag],sh=(e,t,r)=>{if(t.use!==void 0&&t.use!=="sig")throw new TypeError("Invalid key for this operation, when present its use must be sig");if(t.key_ops!==void 0&&t.key_ops.includes?.(r)!==!0)throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(t.alg!==void 0&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},WT=(e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&bi(t)){if(Dw(t)&&sh(e,t,r))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!Yp(t))throw new TypeError(Xp(e,t,...at,"Uint8Array",n?"JSON Web Key":null));if(t.type!=="secret")throw new TypeError(`${Ga(t)} instances for symmetric algorithms must be of type "secret"`)}},KT=(e,t,r,n)=>{if(n&&bi(t))switch(r){case"sign":if(Tw(t)&&sh(e,t,r))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(Cw(t)&&sh(e,t,r))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!Yp(t))throw new TypeError(Xp(e,t,...at,n?"JSON Web Key":null));if(t.type==="secret")throw new TypeError(`${Ga(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${Ga(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${Ga(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${Ga(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${Ga(t)} instances for asymmetric algorithm encryption must be of type "public"`)};Ml=jw.bind(void 0,!1),su=jw.bind(void 0,!0)});async function jT(e,t,r,n,i){if(!(r instanceof Uint8Array))throw new TypeError(st(r,"Uint8Array"));let o=parseInt(e.slice(1,4),10),a=await he.subtle.importKey("raw",r.subarray(o>>3),"AES-CBC",!1,["encrypt"]),s=await he.subtle.importKey("raw",r.subarray(0,o>>3),{hash:`SHA-${o<<1}`,name:"HMAC"},!1,["sign"]),u=new Uint8Array(await he.subtle.encrypt({iv:n,name:"AES-CBC"},a,t)),c=dr(i,n,u,bl(i.length<<3)),l=new Uint8Array((await he.subtle.sign("HMAC",s,c)).slice(0,o>>3));return{ciphertext:u,tag:l,iv:n}}async function VT(e,t,r,n,i){let o;r instanceof Uint8Array?o=await he.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(Br(r,e,"encrypt"),o=r);let a=new Uint8Array(await he.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},o,t)),s=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:s,iv:n}}var zT,Ol,uh=V(()=>{p();jt();Jp();Gp();fr();Xi();En();zp();Ne();_n();zT=async(e,t,r,n,i)=>{if(!pt(r)&&!(r instanceof Uint8Array))throw new TypeError(st(r,...at,"Uint8Array"));switch(n?_l(e,n):n=lw(e),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&qa(r,parseInt(e.slice(-3),10)),jT(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&qa(r,parseInt(e.slice(1,4),10)),VT(e,t,r,n,i);default:throw new be("Unsupported JWE Content Encryption Algorithm")}},Ol=zT});async function Vw(e,t,r,n){let i=e.slice(0,7),o=await Ol(i,r,t,n,new Uint8Array(0));return{encryptedKey:o.ciphertext,iv:et(o.iv),tag:et(o.tag)}}async function zw(e,t,r,n,i){let o=e.slice(0,7);return Sl(o,t,r,n,i,new Uint8Array(0))}var ch=V(()=>{p();uh();Zp();pr()});async function JT(e,t,r,n,i){switch(Ml(e,t,"decrypt"),t=await Ho.normalizePrivateKey?.(t,e)||t,e){case"dir":{if(r!==void 0)throw new Y("Encountered unexpected JWE Encrypted Key");return t}case"ECDH-ES":if(r!==void 0)throw new Y("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!He(n.epk))throw new Y('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!Tl(t))throw new be("ECDH with the provided key is not allowed or not supported by your javascript runtime");let o=await jn(n.epk,e),a,s;if(n.apu!==void 0){if(typeof n.apu!="string")throw new Y('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{a=it(n.apu)}catch{throw new Y("Failed to base64url decode the apu")}}if(n.apv!==void 0){if(typeof n.apv!="string")throw new Y('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{s=it(n.apv)}catch{throw new Y("Failed to base64url decode the apv")}}let u=await kl(o,t,e==="ECDH-ES"?n.enc:e,e==="ECDH-ES"?ou(n.enc):parseInt(e.slice(-5,-2),10),a,s);if(e==="ECDH-ES")return u;if(r===void 0)throw new Y("JWE Encrypted Key missing");return iu(e.slice(-6),u,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(r===void 0)throw new Y("JWE Encrypted Key missing");return kw(e,t,r)}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(r===void 0)throw new Y("JWE Encrypted Key missing");if(typeof n.p2c!="number")throw new Y('JOSE Header "p2c" (PBES2 Count) missing or invalid');let o=i?.maxPBES2Count||1e4;if(n.p2c>o)throw new Y('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if(typeof n.p2s!="string")throw new Y('JOSE Header "p2s" (PBES2 Salt) missing or invalid');let a;try{a=it(n.p2s)}catch{throw new Y("Failed to base64url decode the p2s")}return vw(e,t,r,n.p2c,a)}case"A128KW":case"A192KW":case"A256KW":{if(r===void 0)throw new Y("JWE Encrypted Key missing");return iu(e,t,r)}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(r===void 0)throw new Y("JWE Encrypted Key missing");if(typeof n.iv!="string")throw new Y('JOSE Header "iv" (Initialization Vector) missing or invalid');if(typeof n.tag!="string")throw new Y('JOSE Header "tag" (Authentication Tag) missing or invalid');let o;try{o=it(n.iv)}catch{throw new Y("Failed to base64url decode the iv")}let a;try{a=it(n.tag)}catch{throw new Y("Failed to base64url decode the tag")}return zw(e,t,r,o,a)}default:throw new be('Invalid or unsupported "alg" (JWE Algorithm) header value')}}var Jw,Gw=V(()=>{p();Al();eh();rh();nh();pr();Rl();Ne();au();Ja();uu();Sr();ch();Jw=JT});function GT(e,t,r,n,i){if(i.crit!==void 0&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return new Set;if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(a=>typeof a!="string"||a.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;r!==void 0?o=new Map([...Object.entries(r),...t.entries()]):o=t;for(let a of n.crit){if(!o.has(a))throw new be(`Extension Header Parameter "${a}" is not recognized`);if(i[a]===void 0)throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&n[a]===void 0)throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)}var Vn,Xa=V(()=>{p();Ne();Vn=GT});var XT,cu,lh=V(()=>{p();XT=(e,t)=>{if(t!==void 0&&(!Array.isArray(t)||t.some(r=>typeof r!="string")))throw new TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)},cu=XT});async function Ya(e,t,r){if(!He(e))throw new Y("Flattened JWE must be an object");if(e.protected===void 0&&e.header===void 0&&e.unprotected===void 0)throw new Y("JOSE Header missing");if(e.iv!==void 0&&typeof e.iv!="string")throw new Y("JWE Initialization Vector incorrect type");if(typeof e.ciphertext!="string")throw new Y("JWE Ciphertext missing or incorrect type");if(e.tag!==void 0&&typeof e.tag!="string")throw new Y("JWE Authentication Tag incorrect type");if(e.protected!==void 0&&typeof e.protected!="string")throw new Y("JWE Protected Header incorrect type");if(e.encrypted_key!==void 0&&typeof e.encrypted_key!="string")throw new Y("JWE Encrypted Key incorrect type");if(e.aad!==void 0&&typeof e.aad!="string")throw new Y("JWE AAD incorrect type");if(e.header!==void 0&&!He(e.header))throw new Y("JWE Shared Unprotected Header incorrect type");if(e.unprotected!==void 0&&!He(e.unprotected))throw new Y("JWE Per-Recipient Unprotected Header incorrect type");let n;if(e.protected)try{let T=it(e.protected);n=JSON.parse(yt.decode(T))}catch{throw new Y("JWE Protected Header is invalid")}if(!Wn(n,e.header,e.unprotected))throw new Y("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let i={...n,...e.header,...e.unprotected};if(Vn(Y,new Map,r?.crit,n,i),i.zip!==void 0)throw new be('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:o,enc:a}=i;if(typeof o!="string"||!o)throw new Y("missing JWE Algorithm (alg) in JWE Header");if(typeof a!="string"||!a)throw new Y("missing JWE Encryption Algorithm (enc) in JWE Header");let s=r&&cu("keyManagementAlgorithms",r.keyManagementAlgorithms),u=r&&cu("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(s&&!s.has(o)||!s&&o.startsWith("PBES2"))throw new gi('"alg" (Algorithm) Header Parameter value not allowed');if(u&&!u.has(a))throw new gi('"enc" (Encryption Algorithm) Header Parameter value not allowed');let c;if(e.encrypted_key!==void 0)try{c=it(e.encrypted_key)}catch{throw new Y("Failed to base64url decode the encrypted_key")}let l=!1;typeof t=="function"&&(t=await t(n,e),l=!0);let d;try{d=await Jw(o,t,c,i,r)}catch(T){if(T instanceof TypeError||T instanceof Y||T instanceof be)throw T;d=Kn(a)}let m,f;if(e.iv!==void 0)try{m=it(e.iv)}catch{throw new Y("Failed to base64url decode the iv")}if(e.tag!==void 0)try{f=it(e.tag)}catch{throw new Y("Failed to base64url decode the tag")}let h=Qe.encode(e.protected??""),b;e.aad!==void 0?b=dr(h,Qe.encode("."),Qe.encode(e.aad)):b=h;let w;try{w=it(e.ciphertext)}catch{throw new Y("Failed to base64url decode the ciphertext")}let k={plaintext:await Sl(a,d,w,m,f,b)};if(e.protected!==void 0&&(k.protectedHeader=n),e.aad!==void 0)try{k.additionalAuthenticatedData=it(e.aad)}catch{throw new Y("Failed to base64url decode the aad")}return e.unprotected!==void 0&&(k.sharedUnprotectedHeader=e.unprotected),e.header!==void 0&&(k.unprotectedHeader=e.header),l?{...k,key:t}:k}var Fl=V(()=>{p();pr();Zp();Ne();Wa();Sr();Gw();jt();au();Xa();lh()});async function Pl(e,t,r){if(e instanceof Uint8Array&&(e=yt.decode(e)),typeof e!="string")throw new Y("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:u}=e.split(".");if(u!==5)throw new Y("Invalid Compact JWE");let c=await Ya({ciphertext:a,iv:o||void 0,protected:n,tag:s||void 0,encrypted_key:i||void 0},t,r),l={plaintext:c.plaintext,protectedHeader:c.protectedHeader};return typeof t=="function"?{...l,key:c.key}:l}var fh=V(()=>{p();Fl();Ne();jt()});async function Xw(e,t,r){if(!He(e))throw new Y("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(He))throw new Y("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new Y("JWE Recipients has no members");for(let n of e.recipients)try{return await Ya({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch{}throw new qn}var Yw=V(()=>{p();Fl();Ne();Sr()});var Bl,dh=V(()=>{p();Bl=Symbol()});var YT,Zw,Qw=V(()=>{p();fr();En();pr();_n();YT=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:et(e)};if(!pt(e))throw new TypeError(st(e,...at,"Uint8Array"));if(!e.extractable)throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...o}=await he.subtle.exportKey("jwk",e);return o},Zw=YT});async function eE(e){return Fw(e)}async function tE(e){return Pw(e)}async function Hl(e){return Zw(e)}var ph=V(()=>{p();Ll();Ll();Qw()});async function ZT(e,t,r,n,i={}){let o,a,s;switch(Ml(e,r,"encrypt"),r=await Ho.normalizePublicKey?.(r,e)||r,e){case"dir":{s=r;break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!Tl(r))throw new be("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=i,{epk:l}=i;l||(l=(await bw(r)).privateKey);let{x:d,y:m,crv:f,kty:h}=await Hl(l),b=await kl(r,l,e==="ECDH-ES"?t:e,e==="ECDH-ES"?ou(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:d,crv:f,kty:h}},h==="EC"&&(a.epk.y=m),u&&(a.apu=et(u)),c&&(a.apv=et(c)),e==="ECDH-ES"){s=b;break}s=n||Kn(t);let w=e.slice(-6);o=await nu(w,b,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{s=n||Kn(t),o=await Aw(e,r,s);break}case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||Kn(t);let{p2c:u,p2s:c}=i;({encryptedKey:o,...a}=await _w(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":{s=n||Kn(t),o=await nu(e,r,s);break}case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||Kn(t);let{iv:u}=i;({encryptedKey:o,...a}=await Vw(e,r,s,u));break}default:throw new be('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}}var Ul,hh=V(()=>{p();Al();eh();rh();nh();pr();Rl();au();Ne();ph();uu();ch();Ul=ZT});var yi,$l=V(()=>{p();pr();dh();uh();hh();Ne();Wa();jt();Xa();yi=class{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("plaintext must be an instance of Uint8Array");this._plaintext=t}setKeyManagementParameters(t){if(this._keyManagementParameters)throw new TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=t,this}setProtectedHeader(t){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=t,this}setSharedUnprotectedHeader(t){if(this._sharedUnprotectedHeader)throw new TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=t,this}setUnprotectedHeader(t){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=t,this}setAdditionalAuthenticatedData(t){return this._aad=t,this}setContentEncryptionKey(t){if(this._cek)throw new TypeError("setContentEncryptionKey can only be called once");return this._cek=t,this}setInitializationVector(t){if(this._iv)throw new TypeError("setInitializationVector can only be called once");return this._iv=t,this}async encrypt(t,r){if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new Y("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!Wn(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new Y("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(Vn(Y,new Map,r?.crit,this._protectedHeader,n),n.zip!==void 0)throw new be('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:i,enc:o}=n;if(typeof i!="string"||!i)throw new Y('JWE "alg" (Algorithm) Header Parameter missing or invalid');if(typeof o!="string"||!o)throw new Y('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');let a;if(this._cek&&(i==="dir"||i==="ECDH-ES"))throw new TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${i}`);let s;{let b;({cek:s,encryptedKey:a,parameters:b}=await Ul(i,o,t,this._cek,this._keyManagementParameters)),b&&(r&&Bl in r?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...b}:this.setUnprotectedHeader(b):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...b}:this.setProtectedHeader(b))}let u,c,l;this._protectedHeader?c=Qe.encode(et(JSON.stringify(this._protectedHeader))):c=Qe.encode(""),this._aad?(l=et(this._aad),u=dr(c,Qe.encode("."),Qe.encode(l))):u=c;let{ciphertext:d,tag:m,iv:f}=await Ol(o,this._plaintext,s,this._iv,u),h={ciphertext:et(d)};return f&&(h.iv=et(f)),m&&(h.tag=et(m)),a&&(h.encrypted_key=et(a)),l&&(h.aad=l),this._protectedHeader&&(h.protected=yt.decode(c)),this._sharedUnprotectedHeader&&(h.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(h.header=this._unprotectedHeader),h}}});var mh,ql,rE=V(()=>{p();$l();dh();Ne();au();Wa();hh();pr();Xa();mh=class{constructor(t,r,n){this.parent=t,this.key=r,this.options=n}setUnprotectedHeader(t){if(this.unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=t,this}addRecipient(...t){return this.parent.addRecipient(...t)}encrypt(...t){return this.parent.encrypt(...t)}done(){return this.parent}},ql=class{constructor(t){this._recipients=[],this._plaintext=t}addRecipient(t,r){let n=new mh(this,t,{crit:r?.crit});return this._recipients.push(n),n}setProtectedHeader(t){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=t,this}setSharedUnprotectedHeader(t){if(this._unprotectedHeader)throw new TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=t,this}setAdditionalAuthenticatedData(t){return this._aad=t,this}async encrypt(){if(!this._recipients.length)throw new Y("at least one recipient must be added");if(this._recipients.length===1){let[i]=this._recipients,o=await new yi(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(i.unprotectedHeader).encrypt(i.key,{...i.options}),a={ciphertext:o.ciphertext,iv:o.iv,recipients:[{}],tag:o.tag};return o.aad&&(a.aad=o.aad),o.protected&&(a.protected=o.protected),o.unprotected&&(a.unprotected=o.unprotected),o.encrypted_key&&(a.recipients[0].encrypted_key=o.encrypted_key),o.header&&(a.recipients[0].header=o.header),a}let t;for(let i=0;i<this._recipients.length;i++){let o=this._recipients[i];if(!Wn(this._protectedHeader,this._unprotectedHeader,o.unprotectedHeader))throw new Y("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let a={...this._protectedHeader,...this._unprotectedHeader,...o.unprotectedHeader},{alg:s}=a;if(typeof s!="string"||!s)throw new Y('JWE "alg" (Algorithm) Header Parameter missing or invalid');if(s==="dir"||s==="ECDH-ES")throw new Y('"dir" and "ECDH-ES" alg may only be used with a single recipient');if(typeof a.enc!="string"||!a.enc)throw new Y('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(!t)t=a.enc;else if(t!==a.enc)throw new Y('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients');if(Vn(Y,new Map,o.options.crit,this._protectedHeader,a),a.zip!==void 0)throw new be('JWE "zip" (Compression Algorithm) Header Parameter is not supported.')}let r=Kn(t),n={ciphertext:"",iv:"",recipients:[],tag:""};for(let i=0;i<this._recipients.length;i++){let o=this._recipients[i],a={};n.recipients.push(a);let u={...this._protectedHeader,...this._unprotectedHeader,...o.unprotectedHeader}.alg.startsWith("PBES2")?2048+i:void 0;if(i===0){let d=await new yi(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(r).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(o.unprotectedHeader).setKeyManagementParameters({p2c:u}).encrypt(o.key,{...o.options,[Bl]:!0});n.ciphertext=d.ciphertext,n.iv=d.iv,n.tag=d.tag,d.aad&&(n.aad=d.aad),d.protected&&(n.protected=d.protected),d.unprotected&&(n.unprotected=d.unprotected),a.encrypted_key=d.encrypted_key,d.header&&(a.header=d.header);continue}let{encryptedKey:c,parameters:l}=await Ul(o.unprotectedHeader?.alg||this._protectedHeader?.alg||this._unprotectedHeader?.alg,t,o.key,r,{p2c:u});a.encrypted_key=et(c),(o.unprotectedHeader||l)&&(a.header={...o.unprotectedHeader,...l})}return n}}});function lu(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new be(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var gh=V(()=>{p();Ne()});async function fu(e,t,r){if(r==="sign"&&(t=await Ho.normalizePrivateKey(t,e)),r==="verify"&&(t=await Ho.normalizePublicKey(t,e)),pt(t))return hw(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(st(t,...at));return he.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(st(t,...at,"Uint8Array","JSON Web Key"))}var xh=V(()=>{p();fr();Xi();En();_n();Rl()});var QT,nE,iE=V(()=>{p();gh();fr();Cl();xh();QT=async(e,t,r,n)=>{let i=await fu(e,t,"verify");Bo(e,i);let o=lu(e,i.algorithm);try{return await he.subtle.verify(o,i,r,n)}catch{return!1}},nE=QT});async function Za(e,t,r){if(!He(e))throw new Le("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new Le('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new Le("JWS Protected Header incorrect type");if(e.payload===void 0)throw new Le("JWS Payload missing");if(typeof e.signature!="string")throw new Le("JWS Signature missing or incorrect type");if(e.header!==void 0&&!He(e.header))throw new Le("JWS Unprotected Header incorrect type");let n={};if(e.protected)try{let b=it(e.protected);n=JSON.parse(yt.decode(b))}catch{throw new Le("JWS Protected Header is invalid")}if(!Wn(n,e.header))throw new Le("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let i={...n,...e.header},o=Vn(Le,new Map([["b64",!0]]),r?.crit,n,i),a=!0;if(o.has("b64")&&(a=n.b64,typeof a!="boolean"))throw new Le('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:s}=i;if(typeof s!="string"||!s)throw new Le('JWS "alg" (Algorithm) Header Parameter missing or invalid');let u=r&&cu("algorithms",r.algorithms);if(u&&!u.has(s))throw new gi('"alg" (Algorithm) Header Parameter value not allowed');if(a){if(typeof e.payload!="string")throw new Le("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new Le("JWS Payload must be a string or an Uint8Array instance");let c=!1;typeof t=="function"?(t=await t(n,e),c=!0,su(s,t,"verify"),bi(t)&&(t=await jn(t,s))):su(s,t,"verify");let l=dr(Qe.encode(e.protected??""),Qe.encode("."),typeof e.payload=="string"?Qe.encode(e.payload):e.payload),d;try{d=it(e.signature)}catch{throw new Le("Failed to base64url decode the signature")}if(!await nE(s,t,d,l))throw new Ji;let f;if(a)try{f=it(e.payload)}catch{throw new Le("Failed to base64url decode the payload")}else typeof e.payload=="string"?f=Qe.encode(e.payload):f=e.payload;let h={payload:f};return e.protected!==void 0&&(h.protectedHeader=n),e.header!==void 0&&(h.unprotectedHeader=e.header),c?{...h,key:t}:h}var Wl=V(()=>{p();pr();iE();Ne();jt();Wa();Sr();uu();Xa();lh();Dl();Ja()});async function Kl(e,t,r){if(e instanceof Uint8Array&&(e=yt.decode(e)),typeof e!="string")throw new Le("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(a!==3)throw new Le("Invalid Compact JWS");let s=await Za({payload:i,protected:n,signature:o},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return typeof t=="function"?{...u,key:s.key}:u}var bh=V(()=>{p();Wl();Ne();jt()});async function oE(e,t,r){if(!He(e))throw new Le("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(He))throw new Le("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await Za({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch{}throw new Ji}var aE=V(()=>{p();Wl();Ne();Sr()});var zn,yh=V(()=>{p();zn=e=>Math.floor(e.getTime()/1e3)});var e5,Uo,wh=V(()=>{p();e5=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Uo=e=>{let t=e5.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),n=t[3].toLowerCase(),i;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(r*3600);break;case"day":case"days":case"d":i=Math.round(r*86400);break;case"week":case"weeks":case"w":i=Math.round(r*604800);break;default:i=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-i:i}});var sE,t5,Qa,jl=V(()=>{p();Ne();jt();yh();wh();Sr();sE=e=>e.toLowerCase().replace(/^application\//,""),t5=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,Qa=(e,t,r={})=>{let n;try{n=JSON.parse(yt.decode(t))}catch{}if(!He(n))throw new Ct("JWT Claims Set must be a top-level JSON object");let{typ:i}=r;if(i&&(typeof e.typ!="string"||sE(e.typ)!==sE(i)))throw new Vt('unexpected "typ" JWT header value',n,"typ","check_failed");let{requiredClaims:o=[],issuer:a,subject:s,audience:u,maxTokenAge:c}=r,l=[...o];c!==void 0&&l.push("iat"),u!==void 0&&l.push("aud"),s!==void 0&&l.push("sub"),a!==void 0&&l.push("iss");for(let h of new Set(l.reverse()))if(!(h in n))throw new Vt(`missing required "${h}" claim`,n,h,"missing");if(a&&!(Array.isArray(a)?a:[a]).includes(n.iss))throw new Vt('unexpected "iss" claim value',n,"iss","check_failed");if(s&&n.sub!==s)throw new Vt('unexpected "sub" claim value',n,"sub","check_failed");if(u&&!t5(n.aud,typeof u=="string"?[u]:u))throw new Vt('unexpected "aud" claim value',n,"aud","check_failed");let d;switch(typeof r.clockTolerance){case"string":d=Uo(r.clockTolerance);break;case"number":d=r.clockTolerance;break;case"undefined":d=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:m}=r,f=zn(m||new Date);if((n.iat!==void 0||c)&&typeof n.iat!="number")throw new Vt('"iat" claim must be a number',n,"iat","invalid");if(n.nbf!==void 0){if(typeof n.nbf!="number")throw new Vt('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>f+d)throw new Vt('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(n.exp!==void 0){if(typeof n.exp!="number")throw new Vt('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=f-d)throw new Fo('"exp" claim timestamp check failed',n,"exp","check_failed")}if(c){let h=f-n.iat,b=typeof c=="number"?c:Uo(c);if(h-d>b)throw new Fo('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(h<0-d)throw new Vt('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n}});async function uE(e,t,r){let n=await Kl(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&n.protectedHeader.b64===!1)throw new Ct("JWTs MUST NOT use unencoded payload");let o={payload:Qa(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return typeof t=="function"?{...o,key:n.key}:o}var cE=V(()=>{p();bh();jl();Ne()});async function lE(e,t,r){let n=await Pl(e,t,r),i=Qa(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(o.iss!==void 0&&o.iss!==i.iss)throw new Vt('replicated "iss" claim header parameter mismatch',i,"iss","mismatch");if(o.sub!==void 0&&o.sub!==i.sub)throw new Vt('replicated "sub" claim header parameter mismatch',i,"sub","mismatch");if(o.aud!==void 0&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new Vt('replicated "aud" claim header parameter mismatch',i,"aud","mismatch");let a={payload:i,protectedHeader:o};return typeof t=="function"?{...a,key:n.key}:a}var fE=V(()=>{p();fh();jl();Ne()});var es,Eh=V(()=>{p();$l();es=class{constructor(t){this._flattened=new yi(t)}setContentEncryptionKey(t){return this._flattened.setContentEncryptionKey(t),this}setInitializationVector(t){return this._flattened.setInitializationVector(t),this}setProtectedHeader(t){return this._flattened.setProtectedHeader(t),this}setKeyManagementParameters(t){return this._flattened.setKeyManagementParameters(t),this}async encrypt(t,r){let n=await this._flattened.encrypt(t,r);return[n.protected,n.encrypted_key,n.iv,n.ciphertext,n.tag].join(".")}}});var r5,dE,pE=V(()=>{p();gh();fr();Cl();xh();r5=async(e,t,r)=>{let n=await fu(e,t,"sign");Bo(e,n);let i=await he.subtle.sign(lu(e,n.algorithm),n,r);return new Uint8Array(i)},dE=r5});var Zi,Vl=V(()=>{p();pr();pE();Wa();Ne();jt();uu();Xa();Zi=class{constructor(t){if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=t}setProtectedHeader(t){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=t,this}setUnprotectedHeader(t){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=t,this}async sign(t,r){if(!this._protectedHeader&&!this._unprotectedHeader)throw new Le("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!Wn(this._protectedHeader,this._unprotectedHeader))throw new Le("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=Vn(Le,new Map([["b64",!0]]),r?.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&(o=this._protectedHeader.b64,typeof o!="boolean"))throw new Le('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;if(typeof a!="string"||!a)throw new Le('JWS "alg" (Algorithm) Header Parameter missing or invalid');su(a,t,"sign");let s=this._payload;o&&(s=Qe.encode(et(s)));let u;this._protectedHeader?u=Qe.encode(et(JSON.stringify(this._protectedHeader))):u=Qe.encode("");let c=dr(u,Qe.encode("."),s),l=await dE(a,t,c),d={signature:et(l),payload:""};return o&&(d.payload=yt.decode(s)),this._unprotectedHeader&&(d.header=this._unprotectedHeader),this._protectedHeader&&(d.protected=yt.decode(u)),d}}});var ts,_h=V(()=>{p();Vl();ts=class{constructor(t){this._flattened=new Zi(t)}setProtectedHeader(t){return this._flattened.setProtectedHeader(t),this}async sign(t,r){let n=await this._flattened.sign(t,r);if(n.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}});var vh,zl,hE=V(()=>{p();Vl();Ne();vh=class{constructor(t,r,n){this.parent=t,this.key=r,this.options=n}setProtectedHeader(t){if(this.protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this.protectedHeader=t,this}setUnprotectedHeader(t){if(this.unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=t,this}addSignature(...t){return this.parent.addSignature(...t)}sign(...t){return this.parent.sign(...t)}done(){return this.parent}},zl=class{constructor(t){this._signatures=[],this._payload=t}addSignature(t,r){let n=new vh(this,t,r);return this._signatures.push(n),n}async sign(){if(!this._signatures.length)throw new Le("at least one signature must be added");let t={signatures:[],payload:""};for(let r=0;r<this._signatures.length;r++){let n=this._signatures[r],i=new Zi(this._payload);i.setProtectedHeader(n.protectedHeader),i.setUnprotectedHeader(n.unprotectedHeader);let{payload:o,...a}=await i.sign(n.key,n.options);if(r===0)t.payload=o;else if(t.payload!==o)throw new Le("inconsistent use of JWS Unencoded Payload (RFC7797)");t.signatures.push(a)}return t}}});function $o(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}var Qi,Jl=V(()=>{p();yh();Sr();wh();Qi=class{constructor(t={}){if(!He(t))throw new TypeError("JWT Claims Set MUST be an object");this._payload=t}setIssuer(t){return this._payload={...this._payload,iss:t},this}setSubject(t){return this._payload={...this._payload,sub:t},this}setAudience(t){return this._payload={...this._payload,aud:t},this}setJti(t){return this._payload={...this._payload,jti:t},this}setNotBefore(t){return typeof t=="number"?this._payload={...this._payload,nbf:$o("setNotBefore",t)}:t instanceof Date?this._payload={...this._payload,nbf:$o("setNotBefore",zn(t))}:this._payload={...this._payload,nbf:zn(new Date)+Uo(t)},this}setExpirationTime(t){return typeof t=="number"?this._payload={...this._payload,exp:$o("setExpirationTime",t)}:t instanceof Date?this._payload={...this._payload,exp:$o("setExpirationTime",zn(t))}:this._payload={...this._payload,exp:zn(new Date)+Uo(t)},this}setIssuedAt(t){return typeof t>"u"?this._payload={...this._payload,iat:zn(new Date)}:t instanceof Date?this._payload={...this._payload,iat:$o("setIssuedAt",zn(t))}:typeof t=="string"?this._payload={...this._payload,iat:$o("setIssuedAt",zn(new Date)+Uo(t))}:this._payload={...this._payload,iat:$o("setIssuedAt",t)},this}}});var Gl,mE=V(()=>{p();_h();Ne();jt();Jl();Gl=class extends Qi{setProtectedHeader(t){return this._protectedHeader=t,this}async sign(t,r){let n=new ts(Qe.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===!1)throw new Ct("JWTs MUST NOT use unencoded payload");return n.sign(t,r)}}});var Xl,gE=V(()=>{p();Eh();jt();Jl();Xl=class extends Qi{setProtectedHeader(t){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=t,this}setKeyManagementParameters(t){if(this._keyManagementParameters)throw new TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=t,this}setContentEncryptionKey(t){if(this._cek)throw new TypeError("setContentEncryptionKey can only be called once");return this._cek=t,this}setInitializationVector(t){if(this._iv)throw new TypeError("setInitializationVector can only be called once");return this._iv=t,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(t,r){let n=new es(Qe.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),n.setProtectedHeader(this._protectedHeader),this._iv&&n.setInitializationVector(this._iv),this._cek&&n.setContentEncryptionKey(this._cek),this._keyManagementParameters&&n.setKeyManagementParameters(this._keyManagementParameters),n.encrypt(t,r)}}});async function Sh(e,t){if(!He(e))throw new TypeError("JWK must be an object");if(t??(t="sha256"),t!=="sha256"&&t!=="sha384"&&t!=="sha512")throw new TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');let r;switch(e.kty){case"EC":eo(e.crv,'"crv" (Curve) Parameter'),eo(e.x,'"x" (X Coordinate) Parameter'),eo(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":eo(e.crv,'"crv" (Subtype of Key Pair) Parameter'),eo(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":eo(e.e,'"e" (Exponent) Parameter'),eo(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":eo(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new be('"kty" (Key Type) Parameter missing or unsupported')}let n=Qe.encode(JSON.stringify(r));return et(await gl(t,n))}async function xE(e,t){t??(t="sha256");let r=await Sh(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}var eo,bE=V(()=>{p();qp();pr();Ne();jt();Sr();eo=(e,t)=>{if(typeof e!="string"||!e)throw new Ha(`${t} missing or invalid`)}});async function yE(e,t){let r={...e,...t?.header};if(!He(r.jwk))throw new Le('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await jn({...r.jwk,ext:!0},r.alg);if(n instanceof Uint8Array||n.type!=="public")throw new Le('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}var wE=V(()=>{p();Ja();Sr();Ne()});function n5(e){switch(typeof e=="string"&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new be('Unsupported "alg" value for a JSON Web Key Set')}}function i5(e){return e&&typeof e=="object"&&Array.isArray(e.keys)&&e.keys.every(o5)}function o5(e){return He(e)}function _E(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}async function EE(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(n[r]===void 0){let i=await jn({...t,ext:!0},r);if(i instanceof Uint8Array||i.type!=="public")throw new Po("JSON Web Key Set members must be public keys");n[r]=i}return n[r]}function du(e){let t=new Ah(e),r=async(n,i)=>t.getKey(n,i);return Object.defineProperties(r,{jwks:{value:()=>_E(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),r}var Ah,kh=V(()=>{p();Ja();Ne();Sr();Ah=class{constructor(t){if(this._cached=new WeakMap,!i5(t))throw new Po("JSON Web Key Set malformed");this._jwks=_E(t)}async getKey(t,r){let{alg:n,kid:i}={...t,...r?.header},o=n5(n),a=this._jwks.keys.filter(c=>{let l=o===c.kty;if(l&&typeof i=="string"&&(l=i===c.kid),l&&typeof c.alg=="string"&&(l=n===c.alg),l&&typeof c.use=="string"&&(l=c.use==="sig"),l&&Array.isArray(c.key_ops)&&(l=c.key_ops.includes("verify")),l)switch(n){case"ES256":l=c.crv==="P-256";break;case"ES256K":l=c.crv==="secp256k1";break;case"ES384":l=c.crv==="P-384";break;case"ES512":l=c.crv==="P-521";break;case"Ed25519":l=c.crv==="Ed25519";break;case"EdDSA":l=c.crv==="Ed25519"||c.crv==="Ed448";break}return l}),{0:s,length:u}=a;if(u===0)throw new zi;if(u!==1){let c=new Ua,{_cached:l}=this;throw c[Symbol.asyncIterator]=async function*(){for(let d of a)try{yield await EE(l,d,n)}catch{}},c}return EE(this._cached,s,n)}}});var a5,vE,SE=V(()=>{p();Ne();a5=async(e,t,r)=>{let n,i,o=!1;typeof AbortController=="function"&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(s=>{throw o?new $a:s});if(i!==void 0&&clearTimeout(i),a.status!==200)throw new Ot("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch{throw new Ot("Failed to parse the JSON Web Key Set HTTP response as JSON")}},vE=a5});function s5(){return typeof WebSocketPair<"u"||typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime<"u"&&EdgeRuntime==="vercel"}function u5(e,t){return!(typeof e!="object"||e===null||!("uat"in e)||typeof e.uat!="number"||Date.now()-e.uat>=t||!("jwks"in e)||!He(e.jwks)||!Array.isArray(e.jwks.keys)||!Array.prototype.every.call(e.jwks.keys,He))}function AE(e,t){let r=new Ch(e,t),n=async(i,o)=>r.getKey(i,o);return Object.defineProperties(n,{coolingDown:{get:()=>r.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>r.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>r.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!r._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>r._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),n}var Th,rs,Ch,kE,TE=V(()=>{p();SE();Ne();kh();Sr();(typeof navigator>"u"||!navigator.userAgent?.startsWith?.("Mozilla/5.0 "))&&(Th="jose/v5.10.0");rs=Symbol();Ch=class{constructor(t,r){if(!(t instanceof URL))throw new TypeError("url must be an instance of URL");this._url=new URL(t.href),this._options={agent:r?.agent,headers:r?.headers},this._timeoutDuration=typeof r?.timeoutDuration=="number"?r?.timeoutDuration:5e3,this._cooldownDuration=typeof r?.cooldownDuration=="number"?r?.cooldownDuration:3e4,this._cacheMaxAge=typeof r?.cacheMaxAge=="number"?r?.cacheMaxAge:6e5,r?.[rs]!==void 0&&(this._cache=r?.[rs],u5(r?.[rs],this._cacheMaxAge)&&(this._jwksTimestamp=this._cache.uat,this._local=du(this._cache.jwks)))}coolingDown(){return typeof this._jwksTimestamp=="number"?Date.now()<this._jwksTimestamp+this._cooldownDuration:!1}fresh(){return typeof this._jwksTimestamp=="number"?Date.now()<this._jwksTimestamp+this._cacheMaxAge:!1}async getKey(t,r){(!this._local||!this.fresh())&&await this.reload();try{return await this._local(t,r)}catch(n){if(n instanceof zi&&this.coolingDown()===!1)return await this.reload(),this._local(t,r);throw n}}async reload(){this._pendingFetch&&s5()&&(this._pendingFetch=void 0);let t=new Headers(this._options.headers);Th&&!t.has("User-Agent")&&(t.set("User-Agent",Th),this._options.headers=Object.fromEntries(t.entries())),this._pendingFetch||(this._pendingFetch=vE(this._url,this._timeoutDuration,this._options).then(r=>{this._local=du(r),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=r),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(r=>{throw this._pendingFetch=void 0,r})),await this._pendingFetch}};kE=rs});var Yl,CE=V(()=>{p();pr();jt();Ne();jl();Jl();Yl=class extends Qi{encode(){let t=et(JSON.stringify({alg:"none"})),r=et(JSON.stringify(this._payload));return`${t}.${r}.`}static decode(t,r){if(typeof t!="string")throw new Ct("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=t.split(".");if(a!==3||o!=="")throw new Ct("Invalid Unsecured JWT");let s;try{if(s=JSON.parse(yt.decode(it(n))),s.alg!=="none")throw new Error}catch{throw new Ct("Invalid Unsecured JWT")}return{payload:Qa(s,it(i),r),header:s}}}});var Dh={};Cn(Dh,{decode:()=>pu,encode:()=>c5});var c5,pu,Zl=V(()=>{p();pr();c5=et,pu=it});function DE(e){let t;if(typeof e=="string"){let r=e.split(".");(r.length===3||r.length===5)&&([t]=r)}else if(typeof e=="object"&&e)if("protected"in e)t=e.protected;else throw new TypeError("Token does not contain a Protected Header");try{if(typeof t!="string"||!t)throw new Error;let r=JSON.parse(yt.decode(pu(t)));if(!He(r))throw new Error;return r}catch{throw new TypeError("Invalid Token or Protected Header formatting")}}var IE=V(()=>{p();Zl();jt();Sr()});function NE(e){if(typeof e!="string")throw new Ct("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new Ct("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new Ct("Invalid JWT");if(!t)throw new Ct("JWTs must contain a payload");let n;try{n=pu(t)}catch{throw new Ct("Failed to base64url decode the payload")}let i;try{i=JSON.parse(yt.decode(n))}catch{throw new Ct("Failed to parse the decoded payload as JSON")}if(!He(i))throw new Ct("Invalid JWT Claims Set");return i}var RE=V(()=>{p();Zl();jt();Sr();Ne()});async function LE(e,t){let r,n,i;switch(e){case"HS256":case"HS384":case"HS512":r=parseInt(e.slice(-3),10),n={name:"HMAC",hash:`SHA-${r}`,length:r},i=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r=parseInt(e.slice(-3),10),Gi(new Uint8Array(r>>3));case"A128KW":case"A192KW":case"A256KW":r=parseInt(e.slice(1,4),10),n={name:"AES-KW",length:r},i=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":r=parseInt(e.slice(1,4),10),n={name:"AES-GCM",length:r},i=["encrypt","decrypt"];break;default:throw new be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return he.subtle.generateKey(n,t?.extractable??!1,i)}function Ih(e){let t=e?.modulusLength??2048;if(typeof t!="number"||t<2048)throw new be("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function ME(e,t){let r,n;switch(e){case"PS256":case"PS384":case"PS512":r={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Ih(t)},n=["sign","verify"];break;case"RS256":case"RS384":case"RS512":r={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Ih(t)},n=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":r={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:Ih(t)},n=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":r={name:"ECDSA",namedCurve:"P-256"},n=["sign","verify"];break;case"ES384":r={name:"ECDSA",namedCurve:"P-384"},n=["sign","verify"];break;case"ES512":r={name:"ECDSA",namedCurve:"P-521"},n=["sign","verify"];break;case"Ed25519":r={name:"Ed25519"},n=["sign","verify"];break;case"EdDSA":{n=["sign","verify"];let i=t?.crv??"Ed25519";switch(i){case"Ed25519":case"Ed448":r={name:i};break;default:throw new be("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{n=["deriveKey","deriveBits"];let i=t?.crv??"P-256";switch(i){case"P-256":case"P-384":case"P-521":{r={name:"ECDH",namedCurve:i};break}case"X25519":case"X448":r={name:i};break;default:throw new be("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return he.subtle.generateKey(r,t?.extractable??!1,n)}var Nh=V(()=>{p();fr();Ne();ru()});async function OE(e,t){return ME(e,t)}var FE=V(()=>{p();Nh()});async function PE(e,t){return LE(e,t)}var BE=V(()=>{p();Nh()});var HE,UE=V(()=>{p();HE="WebCryptoAPI"});var $E,qE=V(()=>{p();UE();$E=HE});var WE={};Cn(WE,{CompactEncrypt:()=>es,CompactSign:()=>ts,EmbeddedJWK:()=>yE,EncryptJWT:()=>Xl,FlattenedEncrypt:()=>yi,FlattenedSign:()=>Zi,GeneralEncrypt:()=>ql,GeneralSign:()=>zl,SignJWT:()=>Gl,UnsecuredJWT:()=>Yl,base64url:()=>Dh,calculateJwkThumbprint:()=>Sh,calculateJwkThumbprintUri:()=>xE,compactDecrypt:()=>Pl,compactVerify:()=>Kl,createLocalJWKSet:()=>du,createRemoteJWKSet:()=>AE,cryptoRuntime:()=>$E,decodeJwt:()=>NE,decodeProtectedHeader:()=>DE,errors:()=>jp,experimental_jwksCache:()=>kE,exportJWK:()=>Hl,exportPKCS8:()=>tE,exportSPKI:()=>eE,flattenedDecrypt:()=>Ya,flattenedVerify:()=>Za,generalDecrypt:()=>Xw,generalVerify:()=>oE,generateKeyPair:()=>OE,generateSecret:()=>PE,importJWK:()=>jn,importPKCS8:()=>Kw,importSPKI:()=>qw,importX509:()=>Ww,jwksCache:()=>rs,jwtDecrypt:()=>lE,jwtVerify:()=>uE});var KE=V(()=>{p();fh();Fl();Yw();rE();bh();Wl();aE();cE();fE();Eh();$l();_h();Vl();hE();mE();gE();bE();wE();kh();TE();CE();ph();Ja();IE();RE();Ne();FE();BE();Zl();qE()});var GE=ie((ZK,JE)=>{"use strict";p();var Rh=Object.defineProperty,l5=Object.getOwnPropertyDescriptor,f5=Object.getOwnPropertyNames,d5=Object.prototype.hasOwnProperty,p5=(e,t)=>{for(var r in t)Rh(e,r,{get:t[r],enumerable:!0})},h5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of f5(t))!d5.call(e,i)&&i!==r&&Rh(e,i,{get:()=>t[i],enumerable:!(n=l5(t,i))||n.enumerable});return e},m5=e=>h5(Rh({},"__esModule",{value:!0}),e),VE={};p5(VE,{verifyVercelOidcToken:()=>y5});JE.exports=m5(VE);var zE=(KE(),Ju(WE)),Ql="https://oidc.vercel.com",g5=new URL("https://oidc.vercel.com/.well-known/jwks"),x5=["RS256"],b5=(0,zE.createRemoteJWKSet)(g5);async function y5(e,t){let{algorithms:r,projectId:n=y.env.VERCEL_PROJECT_ID,environment:i=y.env.VERCEL_TARGET_ENV||y.env.VERCEL_ENV,ownerId:o,...a}=t??{};if(n==="*"&&o===void 0&&!w5(a.audience))throw new TypeError("Expected ownerId or audience to be provided when projectId is '*'.");let s=await(0,zE.jwtVerify)(e,b5,{...a,algorithms:r??x5});return E5(s.payload.iss),jE({actual:s.payload.project_id,claim:"project_id",env:"VERCEL_PROJECT_ID",expected:n,option:"projectId"}),jE({actual:s.payload.environment,claim:"environment",env:"VERCEL_TARGET_ENV or VERCEL_ENV",expected:i,option:"environment"}),_5({actual:s.payload.owner_id,claim:"owner_id",expected:o}),s}function w5(e){return Array.isArray(e)?e.length>0:e!==void 0}function E5(e){if(e!==Ql&&(typeof e!="string"||!e.startsWith(`${Ql}/`)))throw new TypeError(`Expected Vercel OIDC token iss claim to be "${Ql}" or to start with "${Ql}/".`)}function jE({actual:e,claim:t,env:r,expected:n,option:i}){if(n!=="*"){if(n===void 0||n.length===0)throw new TypeError(`Expected ${r} to be set or ${i} to be provided. Pass ${i}: '*' to allow any ${t} claim.`);if(!(Array.isArray(n)&&typeof e=="string"&&n.includes(e))&&e!==n)throw new TypeError(Array.isArray(n)?`Expected Vercel OIDC token ${t} claim to be one of: ${n.map(o=>`"${o}"`).join(", ")}.`:`Expected Vercel OIDC token ${t} claim to be "${n}".`)}}function _5({actual:e,claim:t,expected:r}){if(r!==void 0&&e!==r)throw new TypeError(`Expected Vercel OIDC token ${t} claim to be "${r}".`)}});var ZE=ie((ej,YE)=>{"use strict";p();var Oh=Object.defineProperty,v5=Object.getOwnPropertyDescriptor,S5=Object.getOwnPropertyNames,A5=Object.prototype.hasOwnProperty,k5=(e,t)=>{for(var r in t)Oh(e,r,{get:t[r],enumerable:!0})},T5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S5(t))!A5.call(e,i)&&i!==r&&Oh(e,i,{get:()=>t[i],enumerable:!(n=v5(t,i))||n.enumerable});return e},C5=e=>T5(Oh({},"__esModule",{value:!0}),e),XE={};k5(XE,{AccessTokenMissingError:()=>Lh,RefreshAccessTokenFailedError:()=>Mh});YE.exports=C5(XE);var Lh=class extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}},Mh=class extends Error{constructor(t){super("Failed to refresh authentication token."),this.name="RefreshAccessTokenFailedError",t!==void 0&&(this.cause=t)}}});var r_=ie((rj,t_)=>{"use strict";p();var Fh=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,I5=Object.getOwnPropertyNames,N5=Object.prototype.hasOwnProperty,R5=(e,t)=>{for(var r in t)Fh(e,r,{get:t[r],enumerable:!0})},L5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of I5(t))!N5.call(e,i)&&i!==r&&Fh(e,i,{get:()=>t[i],enumerable:!(n=D5(t,i))||n.enumerable});return e},M5=e=>L5(Fh({},"__esModule",{value:!0}),e),e_={};R5(e_,{AccessTokenMissingError:()=>QE.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>QE.RefreshAccessTokenFailedError,getContext:()=>O5.getContext,getVercelOidcToken:()=>P5,getVercelOidcTokenSync:()=>B5,getVercelToken:()=>H5,verifyVercelOidcToken:()=>F5.verifyVercelOidcToken});t_.exports=M5(e_);var O5=aw(),F5=GE(),QE=ZE();async function P5(){return""}function B5(){return""}async function H5(){throw new Error("getVercelToken is not supported in browser environments")}});var i_=ie((ij,n_)=>{p();function nn(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}n_.exports=nn;nn.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};nn.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};nn.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};nn.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};nn.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};nn.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};nn.prototype.start=nn.prototype.try;nn.prototype.errors=function(){return this._errors};nn.prototype.attempts=function(){return this._attempts};nn.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],o=i.message,a=(e[o]||0)+1;e[o]=a,a>=r&&(t=i,r=a)}return t}});var o_=ie(qo=>{p();var U5=i_();qo.operation=function(e){var t=qo.timeouts(e);return new U5(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};qo.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(o,a){return o-a}),n};qo.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};qo.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var o=r[i],a=e[o];e[o]=function(u){var c=qo.operation(t),l=Array.prototype.slice.call(arguments,1),d=l.pop();l.push(function(m){c.retry(m)||(m&&(arguments[0]=c.mainError()),d.apply(this,arguments))}),c.attempt(function(){u.apply(e,l)})}.bind(e,a),e[o].options=t}}});var s_=ie((uj,a_)=>{p();a_.exports=o_()});var c_=ie((lj,u_)=>{p();var $5=s_();function q5(e,t){function r(n,i){var o=t||{},a;"randomize"in o||(o.randomize=!0),a=$5.operation(o);function s(l){i(l||new Error("Aborted"))}function u(l,d){if(l.bail){s(l);return}a.retry(l)?o.onRetry&&o.onRetry(l,d):i(a.mainError())}function c(l){var d;try{d=e(s,l)}catch(m){u(m,l);return}Promise.resolve(d).then(n).catch(function(f){u(f,l)})}a.attempt(c)}return new Promise(r)}u_.exports=q5});var Ph=ie((hj,l_)=>{p();function W5(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,n=0;return function(...o){clearTimeout(r);let a=Date.now(),s=a-n,u=t-s;u<=0?(n=a,e.apply(this,o)):r=setTimeout(()=>{n=Date.now(),e.apply(this,o)},u)}}l_.exports=W5});var j_=ie((pV,$C)=>{$C.exports={name:"dotenv",version:"16.6.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var jo=ie((hV,Ei)=>{p();var Gh=(qe(),Ju(jg)),n0=je(),qC=(Ts(),Ju(zg)),WC=(Wt(),Ju(po)),KC=j_(),Xh=KC.version,jC=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function VC(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
13
+ `);let n;for(;(n=jC.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let a=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(o=o.replace(/\\n/g,`
14
+ `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function zC(e){e=e||{};let t=G_(e);e.path=t;let r=Jt.configDotenv(e);if(!r.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw a.code="MISSING_DATA",a}let n=J_(e).split(","),i=n.length,o;for(let a=0;a<i;a++)try{let s=n[a].trim(),u=GC(r,s);o=Jt.decrypt(u.ciphertext,u.key);break}catch(s){if(a+1>=i)throw s}return Jt.parse(o)}function JC(e){console.log(`[dotenv@${Xh}][WARN] ${e}`)}function Eu(e){console.log(`[dotenv@${Xh}][DEBUG] ${e}`)}function z_(e){console.log(`[dotenv@${Xh}] ${e}`)}function J_(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:y.env.DOTENV_KEY&&y.env.DOTENV_KEY.length>0?y.env.DOTENV_KEY:""}function GC(e,t){let r;try{r=new URL(t)}catch(s){if(s.code==="ERR_INVALID_URL"){let u=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw u.code="INVALID_DOTENV_KEY",u}throw s}let n=r.password;if(!n){let s=new Error("INVALID_DOTENV_KEY: Missing key part");throw s.code="INVALID_DOTENV_KEY",s}let i=r.searchParams.get("environment");if(!i){let s=new Error("INVALID_DOTENV_KEY: Missing environment part");throw s.code="INVALID_DOTENV_KEY",s}let o=`DOTENV_VAULT_${i.toUpperCase()}`,a=e.parsed[o];if(!a){let s=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw s.code="NOT_FOUND_DOTENV_ENVIRONMENT",s}return{ciphertext:a,key:n}}function G_(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)Gh.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=n0.resolve(y.cwd(),".env.vault");return Gh.existsSync(t)?t:null}function V_(e){return e[0]==="~"?n0.join(qC.homedir(),e.slice(1)):e}function XC(e){let t=!!(e&&e.debug),r=e&&"quiet"in e?e.quiet:!0;(t||!r)&&z_("Loading env from encrypted .env.vault");let n=Jt._parseVault(e),i=y.env;return e&&e.processEnv!=null&&(i=e.processEnv),Jt.populate(i,n,e),{parsed:n}}function YC(e){let t=n0.resolve(y.cwd(),".env"),r="utf8",n=!!(e&&e.debug),i=e&&"quiet"in e?e.quiet:!0;e&&e.encoding?r=e.encoding:n&&Eu("No encoding is specified. UTF-8 is used by default");let o=[t];if(e&&e.path)if(!Array.isArray(e.path))o=[V_(e.path)];else{o=[];for(let c of e.path)o.push(V_(c))}let a,s={};for(let c of o)try{let l=Jt.parse(Gh.readFileSync(c,{encoding:r}));Jt.populate(s,l,e)}catch(l){n&&Eu(`Failed to load ${c} ${l.message}`),a=l}let u=y.env;if(e&&e.processEnv!=null&&(u=e.processEnv),Jt.populate(u,s,e),n||!i){let c=Object.keys(s).length,l=[];for(let d of o)try{let m=n0.relative(y.cwd(),d);l.push(m)}catch(m){n&&Eu(`Failed to load ${d} ${m.message}`),a=m}z_(`injecting env (${c}) from ${l.join(",")}`)}return a?{parsed:s,error:a}:{parsed:s}}function ZC(e){if(J_(e).length===0)return Jt.configDotenv(e);let t=G_(e);return t?Jt._configVault(e):(JC(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Jt.configDotenv(e))}function QC(e,t){let r=_.Buffer.from(t.slice(-64),"hex"),n=_.Buffer.from(e,"base64"),i=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let a=WC.createDecipheriv("aes-256-gcm",r,i);return a.setAuthTag(o),`${a.update(n)}${a.final()}`}catch(a){let s=a instanceof RangeError,u=a.message==="Invalid key length",c=a.message==="Unsupported state or unable to authenticate data";if(s||u){let l=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw l.code="INVALID_DOTENV_KEY",l}else if(c){let l=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw l.code="DECRYPTION_FAILED",l}else throw a}}function eD(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if(typeof t!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(i===!0&&(e[o]=t[o]),n&&Eu(i===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=t[o]}var Jt={configDotenv:YC,_configVault:XC,_parseVault:zC,config:ZC,decrypt:QC,parse:VC,populate:eD};Ei.exports.configDotenv=Jt.configDotenv;Ei.exports._configVault=Jt._configVault;Ei.exports._parseVault=Jt._parseVault;Ei.exports.config=Jt.config;Ei.exports.decrypt=Jt.decrypt;Ei.exports.parse=Jt.parse;Ei.exports.populate=Jt.populate;Ei.exports=Jt});var c3=ie((PV,c0)=>{p();function n3(e){return Array.isArray(e)?e:[e]}var tD=void 0,em="",t3=" ",Qh="\\",rD=/^\s+$/,nD=/(?:[^\\]|^)\\$/,iD=/^\\!/,oD=/^\\#/,aD=/\r?\n/g,sD=/^\.{0,2}\/|^\.{1,2}$/,uD=/\/$/,us="/",i3="node-ignore";typeof Symbol<"u"&&(i3=Symbol.for("node-ignore"));var o3=i3,cs=(e,t,r)=>(Object.defineProperty(e,t,{value:r}),r),cD=/([0-z])-([0-z])/g,a3=()=>!1,lD=e=>e.replace(cD,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:em),fD=e=>{let{length:t}=e;return e.slice(0,t-t%2)},dD=[[/^\uFEFF/,()=>em],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?t3:em)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+t3}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Qh],[/\\\\/g,()=>Qh],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===Qh?`\\[${r}${fD(n)}${i}`:i==="]"&&n.length%2===0?`[${lD(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`]],pD=/(^|\\\/)?\\\*$/,vu="regex",s0="checkRegex",r3="_",hD={[vu](e,t){return`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`},[s0](e,t){return`${t?`${t}[^/]*`:"[^/]*"}(?=$|\\/$)`}},mD=e=>dD.reduce((t,[r,n])=>t.replace(r,n.bind(e)),e),u0=e=>typeof e=="string",gD=e=>e&&u0(e)&&!rD.test(e)&&!nD.test(e)&&e.indexOf("#")!==0,xD=e=>e.split(aD).filter(Boolean),tm=class{constructor(t,r,n,i,o,a){this.pattern=t,this.mark=r,this.negative=o,cs(this,"body",n),cs(this,"ignoreCase",i),cs(this,"regexPrefix",a)}get regex(){let t=r3+vu;return this[t]?this[t]:this._make(vu,t)}get checkRegex(){let t=r3+s0;return this[t]?this[t]:this._make(s0,t)}_make(t,r){let n=this.regexPrefix.replace(pD,hD[t]),i=this.ignoreCase?new RegExp(n,"i"):new RegExp(n);return cs(this,r,i)}},bD=({pattern:e,mark:t},r)=>{let n=!1,i=e;i.indexOf("!")===0&&(n=!0,i=i.substr(1)),i=i.replace(iD,"!").replace(oD,"#");let o=mD(i);return new tm(e,t,i,r,n,o)},rm=class{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){if(t&&t[o3]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if(u0(t)&&(t={pattern:t}),gD(t.pattern)){let r=bD(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,n3(u0(t)?xD(t):t).forEach(this._add,this),this._added}test(t,r,n){let i=!1,o=!1,a;this._rules.forEach(u=>{let{negative:c}=u;o===c&&i!==o||c&&!i&&!o&&!r||!u[n].test(t)||(i=!c,o=c,a=c?tD:u)});let s={ignored:i,unignored:o};return a&&(s.rule=a),s}},yD=(e,t)=>{throw new t(e)},_i=(e,t,r)=>u0(e)?e?_i.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),s3=e=>sD.test(e);_i.isNotRelative=s3;_i.convert=e=>e;var nm=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){cs(this,o3,!0),this._rules=new rm(r),this._strictPathCheck=!n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,r,n,i){let o=t&&_i.convert(t);return _i(o,t,this._strictPathCheck?yD:a3),this._t(o,r,n,i)}checkIgnore(t){if(!uD.test(t))return this.test(t);let r=t.split(us).filter(Boolean);if(r.pop(),r.length){let n=this._t(r.join(us)+us,this._testCache,!0,r);if(n.ignored)return n}return this._rules.test(t,!1,s0)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(us).filter(Boolean)),i.pop(),!i.length)return r[t]=this._rules.test(t,n,vu);let o=this._t(i.join(us)+us,r,n,i);return r[t]=o.ignored?o:this._rules.test(t,n,vu)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return n3(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},im=e=>new nm(e),wD=e=>_i(e&&_i.convert(e),e,a3),u3=()=>{let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");_i.convert=e;let t=/^[a-z]:\//i;_i.isNotRelative=r=>t.test(r)||s3(r)};typeof y<"u"&&y.platform==="win32"&&u3();c0.exports=im;im.default=im;c0.exports.isPathValid=wD;cs(c0.exports,Symbol.for("setupWindows"),u3)});p();p();p();Wt();qe();var Ft=de(je(),1);Ts();p();qe();var vr=de(je(),1);p();qe();var Cr=de(je(),1);Wt();p();function Fi(e){let t=e.split(/[?#]/)[0];try{for(let r=0;r<4;r++){let n=decodeURIComponent(t);if(n===t)break;t=n}}catch{return!1}return/[\\\x00-\x1f\x7f]/.test(t)||t.split("/").some(r=>r==="."||r==="..")?!1:t==="/wiki"||t.startsWith("/wiki/")}p();p();p();var yf={};Cn(yf,{arrayReplaceAt:()=>bf,asciiTrim:()=>bo,assign:()=>ca,escapeHtml:()=>ci,escapeRE:()=>tS,fromCodePoint:()=>la,has:()=>K4,isMdAsciiPunct:()=>go,isPunctChar:()=>hx,isPunctCharCode:()=>mo,isSpace:()=>Pe,isString:()=>mc,isValidEntityCode:()=>gc,isWhiteSpace:()=>ho,lib:()=>rS,normalizeReference:()=>xo,unescapeAll:()=>ui,unescapeMd:()=>G4});p();var uc={};Cn(uc,{decode:()=>Cs,encode:()=>ac,format:()=>aa,parse:()=>Ds});p();p();var Jg={};function w4(e){let t=Jg[e];if(t)return t;t=Jg[e]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);t.push(n)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function ic(e,t){typeof t!="string"&&(t=ic.defaultChars);let r=w4(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let i="";for(let o=0,a=n.length;o<a;o+=3){let s=parseInt(n.slice(o+1,o+3),16);if(s<128){i+=r[s];continue}if((s&224)===192&&o+3<a){let u=parseInt(n.slice(o+4,o+6),16);if((u&192)===128){let c=s<<6&1984|u&63;c<128?i+="\uFFFD\uFFFD":i+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<a){let u=parseInt(n.slice(o+4,o+6),16),c=parseInt(n.slice(o+7,o+9),16);if((u&192)===128&&(c&192)===128){let l=s<<12&61440|u<<6&4032|c&63;l<2048||l>=55296&&l<=57343?i+="\uFFFD\uFFFD\uFFFD":i+=String.fromCharCode(l),o+=6;continue}}if((s&248)===240&&o+9<a){let u=parseInt(n.slice(o+4,o+6),16),c=parseInt(n.slice(o+7,o+9),16),l=parseInt(n.slice(o+10,o+12),16);if((u&192)===128&&(c&192)===128&&(l&192)===128){let d=s<<18&1835008|u<<12&258048|c<<6&4032|l&63;d<65536||d>1114111?i+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="\uFFFD"}return i})}ic.defaultChars=";/?:@&=+$,#";ic.componentChars="";var Cs=ic;p();var Gg={};function E4(e){let t=Gg[e];if(t)return t;t=Gg[e]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function oc(e,t,r){typeof t!="string"&&(r=t,t=oc.defaultChars),typeof r>"u"&&(r=!0);let n=E4(t),i="";for(let o=0,a=e.length;o<a;o++){let s=e.charCodeAt(o);if(r&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(s<128){i+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){let u=e.charCodeAt(o+1);if(u>=56320&&u<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}oc.defaultChars=";/?:@&=+$,-_.!~*'()#";oc.componentChars="-_.!~*'()";var ac=oc;p();function aa(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}p();function sc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var _4=/^([a-z0-9.+-]+:)/i,v4=/:[0-9]*$/,S4=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,A4=["<",">",'"',"`"," ","\r",`
15
+ `," "],k4=["{","}","|","\\","^","`"].concat(A4),T4=["'"].concat(k4),Xg=["%","/","?",";","#"].concat(T4),Yg=["/","?","#"],C4=255,Zg=/^[+a-z0-9A-Z_-]{0,63}$/,D4=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qg={javascript:!0,"javascript:":!0},ex={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function I4(e,t){if(e&&e instanceof sc)return e;let r=new sc;return r.parse(e,t),r}sc.prototype.parse=function(e,t){let r,n,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){let c=S4.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=_4.exec(o);if(a&&(a=a[0],r=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&Qg[a])&&(o=o.substr(2),this.slashes=!0)),!Qg[a]&&(i||a&&!ex[a])){let c=-1;for(let h=0;h<Yg.length;h++)n=o.indexOf(Yg[h]),n!==-1&&(c===-1||n<c)&&(c=n);let l,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(l=o.slice(0,d),o=o.slice(d+1),this.auth=l),c=-1;for(let h=0;h<Xg.length;h++)n=o.indexOf(Xg[h]),n!==-1&&(c===-1||n<c)&&(c=n);c===-1&&(c=o.length),o[c-1]===":"&&c--;let m=o.slice(0,c);o=o.slice(c),this.parseHost(m),this.hostname=this.hostname||"";let f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){let h=this.hostname.split(/\./);for(let b=0,w=h.length;b<w;b++){let D=h[b];if(D&&!D.match(Zg)){let k="";for(let T=0,S=D.length;T<S;T++)D.charCodeAt(T)>127?k+="x":k+=D[T];if(!k.match(Zg)){let T=h.slice(0,b),S=h.slice(b+1),C=D.match(D4);C&&(T.push(C[1]),S.unshift(C[2])),S.length&&(o=S.join(".")+o),this.hostname=T.join(".");break}}}}this.hostname.length>C4&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));let u=o.indexOf("?");return u!==-1&&(this.search=o.substr(u),o=o.slice(0,u)),o&&(this.pathname=o),ex[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};sc.prototype.parseHost=function(e){let t=v4.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Ds=I4;var ff={};Cn(ff,{Any:()=>cc,Cc:()=>lc,Cf:()=>tx,P:()=>sa,S:()=>fc,Z:()=>dc});p();p();var cc=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;p();var lc=/[\0-\x1F\x7F-\x9F]/;p();var tx=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;p();var sa=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;p();var fc=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;p();var dc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;p();p();p();var rx=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));p();var nx=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));p();var df,N4=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),pf=(df=String.fromCodePoint)!==null&&df!==void 0?df:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function hf(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=N4.get(e))!==null&&t!==void 0?t:e}var Zt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Zt||(Zt={}));var R4=32,Pi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Pi||(Pi={}));function mf(e){return e>=Zt.ZERO&&e<=Zt.NINE}function L4(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_F||e>=Zt.LOWER_A&&e<=Zt.LOWER_F}function M4(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_Z||e>=Zt.LOWER_A&&e<=Zt.LOWER_Z||mf(e)}function O4(e){return e===Zt.EQUALS||M4(e)}var Yt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Yt||(Yt={}));var pn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(pn||(pn={}));var pc=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Yt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pn.Strict}startEntity(t){this.decodeMode=t,this.state=Yt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Yt.EntityStart:return t.charCodeAt(r)===Zt.NUM?(this.state=Yt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Yt.NamedEntity,this.stateNamedEntity(t,r));case Yt.NumericStart:return this.stateNumericStart(t,r);case Yt.NumericDecimal:return this.stateNumericDecimal(t,r);case Yt.NumericHex:return this.stateNumericHex(t,r);case Yt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|R4)===Zt.LOWER_X?(this.state=Yt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Yt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let o=n-r;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(r,o),i),this.consumed+=o}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(mf(i)||L4(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(mf(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Zt.SEMI)this.consumed+=1;else if(this.decodeMode===pn.Strict)return 0;return this.emitCodePoint(hf(this.result),this.consumed),this.errors&&(t!==Zt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],o=(i&Pi.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let a=t.charCodeAt(r);if(this.treeIndex=F4(n,i,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===pn.Attribute&&(o===0||O4(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],o=(i&Pi.VALUE_LENGTH)>>14,o!==0){if(a===Zt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==pn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&Pi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~Pi.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case Yt.NamedEntity:return this.result!==0&&(this.decodeMode!==pn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yt.NumericDecimal:return this.emitNumericEntity(0,2);case Yt.NumericHex:return this.emitNumericEntity(0,3);case Yt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yt.EntityStart:return 0}}};function ix(e){let t="",r=new pc(e,n=>t+=pf(n));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),r.startEntity(o);let c=r.write(i,s+1);if(c<0){a=s+r.end();break}a=s+c,s=c===0?a+1:a}let u=t+i.slice(a);return t="",u}}function F4(e,t,r,n){let i=(t&Pi.BRANCH_LENGTH)>>7,o=t&Pi.JUMP_TABLE;if(i===0)return o!==0&&n===o?r:-1;if(o){let u=n-o;return u<0||u>=i?-1:e[r+u]-1}let a=r,s=a+i-1;for(;a<=s;){let u=a+s>>>1,c=e[u];if(c<n)a=u+1;else if(c>n)s=u-1;else return e[u+i]}return-1}var ox=ix(rx),U9=ix(nx);function ua(e,t=pn.Legacy){return ox(e,t)}function Is(e){return ox(e,pn.Strict)}p();p();function hc(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var P4=new Map(hc([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(hc([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(hc([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(hc([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));p();var B4=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),H4=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function gf(e,t){return function(n){let i,o=0,a="";for(;i=e.exec(n);)o!==i.index&&(a+=n.substring(o,i.index)),a+=t.get(i[0].charCodeAt(0)),o=i.index+1;return a+n.substring(o)}}var ax=gf(/[&<>'"]/g,B4),sx=gf(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ux=gf(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var cx;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(cx||(cx={}));var lx;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(lx||(lx={}));function q4(e){return Object.prototype.toString.call(e)}function mc(e){return q4(e)==="[object String]"}var W4=Object.prototype.hasOwnProperty;function K4(e,t){return W4.call(e,t)}function ca(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function bf(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function gc(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function la(e){if(e>65535){e-=65536;let t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var px=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,j4=/&([a-z#][a-z0-9]{1,31});/gi,V4=new RegExp(px.source+"|"+j4.source,"gi"),z4=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function J4(e,t){if(t.charCodeAt(0)===35&&z4.test(t)){let n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gc(n)?la(n):e}let r=ua(e);return r!==e?r:e}function G4(e){return e.indexOf("\\")<0?e:e.replace(px,"$1")}function ui(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(V4,function(t,r,n){return r||J4(t,n)})}var X4=/[&<>"]/,Y4=/[&<>"]/g,Z4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Q4(e){return Z4[e]}function ci(e){return X4.test(e)?e.replace(Y4,Q4):e}var eS=/[.?*+^$[\]\\(){}|-]/g;function tS(e){return e.replace(eS,"\\$&")}function Pe(e){switch(e){case 9:case 32:return!0}return!1}function ho(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function hx(e){return sa.test(e)||fc.test(e)}function mo(e){return hx(la(e))}function go(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function xo(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}function dx(e){return e===32||e===9||e===10||e===13}function bo(e){let t=0;for(;t<e.length&&dx(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&dx(e.charCodeAt(r));r--);return e.slice(t,r+1)}var rS={mdurl:uc,ucmicro:ff};var vf={};Cn(vf,{parseLinkDestination:()=>Ef,parseLinkLabel:()=>wf,parseLinkTitle:()=>_f});p();p();function wf(e,t,r){let n,i,o,a,s=e.posMax,u=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(n--,n===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)n++;else if(r)return e.pos=u,-1}}let c=-1;return i&&(c=e.pos),e.pos=u,c}p();function Ef(e,t,r){let n,i=t,o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<r;){if(n=e.charCodeAt(i),n===10||n===60)return o;if(n===62)return o.pos=i+1,o.str=ui(e.slice(t+1,i)),o.ok=!0,o;if(n===92&&i+1<r){i+=2;continue}i++}return o}let a=0;for(;i<r&&(n=e.charCodeAt(i),!(n===32||n<32||n===127));){if(n===92&&i+1<r){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(n===40&&(a++,a>32))return o;if(n===41){if(a===0)break;a--}i++}return t===i||a!==0||(o.str=ui(e.slice(t,i)),o.pos=i,o.ok=!0),o}p();function _f(e,t,r,n){let i,o=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(o>=r)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<r;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=ui(e.slice(t,o)),a.ok=!0,a;if(i===40&&a.marker===41)return a;i===92&&o+1<r&&o++,o++}return a.can_continue=!0,a.str+=ui(e.slice(t,o)),a}p();var Mn={};Mn.code_inline=function(e,t,r,n,i){let o=e[t];return"<code"+i.renderAttrs(o)+">"+ci(o.content)+"</code>"};Mn.code_block=function(e,t,r,n,i){let o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+ci(e[t].content)+`</code></pre>
16
+ `};Mn.fence=function(e,t,r,n,i){let o=e[t],a=o.info?ui(o.info).trim():"",s="",u="";if(a){let l=a.split(/(\s+)/g);s=l[0],u=l.slice(2).join("")}let c;if(r.highlight?c=r.highlight(o.content,s,u)||ci(o.content):c=ci(o.content),c.indexOf("<pre")===0)return c+`
17
+ `;if(a){let l=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];l<0?d.push(["class",r.langPrefix+s]):(d[l]=d[l].slice(),d[l][1]+=" "+r.langPrefix+s);let m={attrs:d};return`<pre><code${i.renderAttrs(m)}>${c}</code></pre>
18
+ `}return`<pre><code${i.renderAttrs(o)}>${c}</code></pre>
19
+ `};Mn.image=function(e,t,r,n,i){let o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)};Mn.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
20
+ `:`<br>
21
+ `};Mn.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
22
+ `:`<br>
23
+ `:`
24
+ `};Mn.text=function(e,t){return ci(e[t].content)};Mn.html_block=function(e,t){return e[t].content};Mn.html_inline=function(e,t){return e[t].content};function fa(){this.rules=ca({},Mn)}fa.prototype.renderAttrs=function(t){let r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r<n;r++)i+=" "+ci(t.attrs[r][0])+'="'+ci(t.attrs[r][1])+'"';return i};fa.prototype.renderToken=function(t,r,n){let i=t[r],o="";if(i.hidden)return"";i.block&&i.nesting!==-1&&r&&t[r-1].hidden&&(o+=`
25
+ `),o+=(i.nesting===-1?"</":"<")+i.tag,o+=this.renderAttrs(i),i.nesting===0&&n.xhtmlOut&&(o+=" /");let a=!1;if(i.block&&(a=!0,i.nesting===1&&r+1<t.length)){let s=t[r+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===i.tag)&&(a=!1)}return o+=a?`>
26
+ `:">",o};fa.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let o=0,a=e.length;o<a;o++){let s=e[o].type;typeof i[s]<"u"?n+=i[s](e,o,t,r,this):n+=this.renderToken(e,o,t)}return n};fa.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"html_inline":case"html_block":n+=e[i].content;break;case"softbreak":case"hardbreak":n+=`
27
+ `;break;default:}return n};fa.prototype.render=function(e,t,r){let n="",i=this.rules;for(let o=0,a=e.length;o<a;o++){let s=e[o].type;s==="inline"?n+=this.renderInline(e[o].children,t,r):typeof i[s]<"u"?n+=i[s](e,o,t,r,this):n+=this.renderToken(e,o,t,r)}return n};var mx=fa;p();p();function hn(){this.__rules__=[],this.__cache__=null}hn.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};hn.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};hn.prototype.at=function(e,t,r){let n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null};hn.prototype.before=function(e,t,r,n){let i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};hn.prototype.after=function(e,t,r,n){let i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};hn.prototype.push=function(e,t,r){let n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};hn.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(n){let i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,r.push(n)},this),this.__cache__=null,r};hn.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};hn.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(n){let i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,r.push(n)},this),this.__cache__=null,r};hn.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var yo=hn;p();p();function da(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}da.prototype.attrIndex=function(t){if(!this.attrs)return-1;let r=this.attrs;for(let n=0,i=r.length;n<i;n++)if(r[n][0]===t)return n;return-1};da.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};da.prototype.attrSet=function(t,r){let n=this.attrIndex(t),i=[t,r];n<0?this.attrPush(i):this.attrs[n]=i};da.prototype.attrGet=function(t){let r=this.attrIndex(t),n=null;return r>=0&&(n=this.attrs[r][1]),n};da.prototype.attrJoin=function(t,r){let n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};var Wr=da;function gx(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}gx.prototype.Token=Wr;var xx=gx;p();var nS=/\r\n?|\n/g,iS=/\0/g;function Sf(e){let t;t=e.src.replace(nS,`
28
+ `),t=t.replace(iS,"\uFFFD"),e.src=t}p();function Af(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}p();function kf(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let i=t[r];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}p();function oS(e){return/^<a[>\s]/i.test(e)}function aS(e){return/^<\/a\s*>/i.test(e)}function Tf(e){let t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let i=t[r].children,o=0;for(let a=i.length-1;a>=0;a--){let s=i[a];if(s.type==="link_close"){for(a--;i[a].level!==s.level&&i[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(oS(s.content)&&o>0&&o--,aS(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){let u=s.content,c=e.md.linkify.match(u),l=[],d=s.level,m=0;c.length>0&&c[0].index===0&&a>0&&i[a-1].type==="text_special"&&(c=c.slice(1));for(let f=0;f<c.length;f++){let h=c[f].url,b=e.md.normalizeLink(h);if(!e.md.validateLink(b))continue;let w=c[f].text;c[f].schema?c[f].schema==="mailto:"&&!/^mailto:/i.test(w)?w=e.md.normalizeLinkText("mailto:"+w).replace(/^mailto:/,""):w=e.md.normalizeLinkText(w):w=e.md.normalizeLinkText("http://"+w).replace(/^http:\/\//,"");let D=c[f].index;if(D>m){let C=new e.Token("text","",0);C.content=u.slice(m,D),C.level=d,l.push(C)}let k=new e.Token("link_open","a",1);k.attrs=[["href",b]],k.level=d++,k.markup="linkify",k.info="auto",l.push(k);let T=new e.Token("text","",0);T.content=w,T.level=d,l.push(T);let S=new e.Token("link_close","a",-1);S.level=--d,S.markup="linkify",S.info="auto",l.push(S),m=c[f].lastIndex}if(m<u.length){let f=new e.Token("text","",0);f.content=u.slice(m),f.level=d,l.push(f)}t[r].children=i=bf(i,a,l)}}}}p();var bx=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sS=/\((c|tm|r)\)/i,uS=/\((c|tm|r)\)/ig,cS={c:"\xA9",r:"\xAE",tm:"\u2122"};function lS(e,t){return cS[t.toLowerCase()]}function fS(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(uS,lS)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function dS(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];n.type==="text"&&!t&&bx.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Cf(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(sS.test(e.tokens[t].content)&&fS(e.tokens[t].children),bx.test(e.tokens[t].content)&&dS(e.tokens[t].children))}p();var pS=/['"]/,yx=/['"]/g,wx="\u2019";function xc(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}function hS(e,t){let r="",n=0;t.sort((i,o)=>i.pos-o.pos);for(let i=0;i<t.length;i++){let o=t[i];r+=e.slice(n,o.pos)+o.ch,n=o.pos+1}return r+e.slice(n)}function mS(e,t){let r,n=[],i={};for(let o=0;o<e.length;o++){let a=e[o],s=e[o].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,a.type!=="text")continue;let u=a.content,c=0,l=u.length;e:for(;c<l;){yx.lastIndex=c;let d=yx.exec(u);if(!d)break;let m=!0,f=!0;c=d.index+1;let h=d[0]==="'",b=32;if(d.index-1>=0)b=u.charCodeAt(d.index-1);else for(r=o-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){b=e[r].content.charCodeAt(e[r].content.length-1);break}let w=32;if(c<l)w=u.charCodeAt(c);else for(r=o+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){w=e[r].content.charCodeAt(0);break}let D=go(b)||mo(b),k=go(w)||mo(w),T=ho(b),S=ho(w);if(S?m=!1:k&&(T||D||(m=!1)),T?f=!1:D&&(S||k||(f=!1)),w===34&&d[0]==='"'&&b>=48&&b<=57&&(f=m=!1),m&&f&&(m=D,f=k),!m&&!f){h&&xc(i,o,d.index,wx);continue}if(f)for(r=n.length-1;r>=0;r--){let C=n[r];if(n[r].level<s)break;if(C.single===h&&n[r].level===s){C=n[r];let I,O;h?(I=t.md.options.quotes[2],O=t.md.options.quotes[3]):(I=t.md.options.quotes[0],O=t.md.options.quotes[1]),xc(i,o,d.index,O),xc(i,C.token,C.pos,I),n.length=r;continue e}}m?n.push({token:o,pos:d.index,single:h,level:s}):f&&h&&xc(i,o,d.index,wx)}}Object.keys(i).forEach(function(o){e[o].content=hS(e[o].content,i[o])})}function Df(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!pS.test(e.tokens[t].content)||mS(e.tokens[t].children,e)}p();function If(e){let t,r,n=e.tokens,i=n.length;for(let o=0;o<i;o++){if(n[o].type!=="inline")continue;let a=n[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=r=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}}var Nf=[["normalize",Sf],["block",Af],["inline",kf],["linkify",Tf],["replacements",Cf],["smartquotes",Df],["text_join",If]];function Rf(){this.ruler=new yo;for(let e=0;e<Nf.length;e++)this.ruler.push(Nf[e][0],Nf[e][1])}Rf.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)};Rf.prototype.State=xx;var Ex=Rf;p();p();function On(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let o=0,a=0,s=0,u=0,c=i.length,l=!1;a<c;a++){let d=i.charCodeAt(a);if(!l)if(Pe(d)){s++,d===9?u+=4-u%4:u++;continue}else l=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(u),this.bsCount.push(0),l=!1,s=0,u=0,o=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}On.prototype.push=function(e,t,r){let n=new Wr(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};On.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};On.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};On.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){let n=this.src.charCodeAt(t);if(!Pe(n))break}return t};On.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!Pe(this.src.charCodeAt(--t)))return t+1;return t};On.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};On.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};On.prototype.getLines=function(t,r,n,i){if(t>=r)return"";let o=new Array(r-t);for(let a=0,s=t;s<r;s++,a++){let u=0,c=this.bMarks[s],l=c,d;for(s+1<r||i?d=this.eMarks[s]+1:d=this.eMarks[s];l<d&&u<n;){let m=this.src.charCodeAt(l);if(Pe(m))m===9?u+=4-(u+this.bsCount[s])%4:u++;else if(l-c<this.tShift[s])u++;else break;l++}u>n?o[a]=new Array(u-n+1).join(" ")+this.src.slice(l,d):o[a]=this.src.slice(l,d)}return o.join("")};On.prototype.Token=Wr;var _x=On;p();var gS=65536;function Lf(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function vx(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),o=!1,a=0,s="";for(;n<r;)i===124&&(o?(s+=e.substring(a,n-1),a=n):(t.push(s+e.substring(a,n)),s="",a=n+1)),o=i===92,n++,i=e.charCodeAt(n);return t.push(s+e.substring(a)),t}function Mf(e,t,r,n){if(t+2>r)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;let a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[i])return!1;let s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!Pe(s)||a===45&&Pe(s))return!1;for(;o<e.eMarks[i];){let S=e.src.charCodeAt(o);if(S!==124&&S!==45&&S!==58&&!Pe(S))return!1;o++}let u=Lf(e,t+1),c=u.split("|"),l=[];for(let S=0;S<c.length;S++){let C=c[S].trim();if(!C){if(S===0||S===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(C))return!1;C.charCodeAt(C.length-1)===58?l.push(C.charCodeAt(0)===58?"center":"right"):C.charCodeAt(0)===58?l.push("left"):l.push("")}if(u=Lf(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=vx(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let d=c.length;if(d===0||d!==l.length)return!1;if(n)return!0;let m=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),b=[t,0];h.map=b;let w=e.push("thead_open","thead",1);w.map=[t,t+1];let D=e.push("tr_open","tr",1);D.map=[t,t+1];for(let S=0;S<c.length;S++){let C=e.push("th_open","th",1);l[S]&&(C.attrs=[["style","text-align:"+l[S]]]);let I=e.push("inline","",0);I.content=c[S].trim(),I.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,T=0;for(i=t+2;i<r&&!(e.sCount[i]<e.blkIndent);i++){let S=!1;for(let I=0,O=f.length;I<O;I++)if(f[I](e,i,r,!0)){S=!0;break}if(S||(u=Lf(e,i).trim(),!u)||e.sCount[i]-e.blkIndent>=4||(c=vx(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),T+=d-c.length,T>gS))break;if(i===t+2){let I=e.push("tbody_open","tbody",1);I.map=k=[t+2,0]}let C=e.push("tr_open","tr",1);C.map=[i,i+1];for(let I=0;I<d;I++){let O=e.push("td_open","td",1);l[I]&&(O.attrs=[["style","text-align:"+l[I]]]);let W=e.push("inline","",0);W.content=c[I]?c[I].trim():"",W.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=i),e.push("table_close","table",-1),b[1]=i,e.parentType=m,e.line=i,!0}p();function Of(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,i=n;continue}break}e.line=i;let o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
29
+ `,o.map=[t,e.line],!0}p();function Ff(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let u=i-s;if(u<3)return!1;let c=e.src.slice(s,i),l=e.src.slice(i,o);if(a===96&&l.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let d=t,m=!1;for(;d++,!(d>=r||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,a),!(i-s<u)&&(i=e.skipSpaces(i),!(i<o)))){m=!0;break}u=e.sCount[t],e.line=d+(m?1:0);let f=e.push("fence","code",0);return f.info=l,f.content=e.getLines(t+1,d,u,!0),f.markup=c,f.map=[t,e.line],!0}p();function Pf(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(n)return!0;let s=[],u=[],c=[],l=[],d=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let f=!1,h;for(h=t;h<r;h++){let T=e.sCount[h]<e.blkIndent;if(i=e.bMarks[h]+e.tShift[h],o=e.eMarks[h],i>=o)break;if(e.src.charCodeAt(i++)===62&&!T){let C=e.sCount[h]+1,I,O;e.src.charCodeAt(i)===32?(i++,C++,O=!1,I=!0):e.src.charCodeAt(i)===9?(I=!0,(e.bsCount[h]+C)%4===3?(i++,C++,O=!1):O=!0):I=!1;let W=C;for(s.push(e.bMarks[h]),e.bMarks[h]=i;i<o;){let H=e.src.charCodeAt(i);if(Pe(H))H===9?W+=4-(W+e.bsCount[h]+(O?1:0))%4:W++;else break;i++}f=i>=o,u.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(I?1:0),c.push(e.sCount[h]),e.sCount[h]=W-C,l.push(e.tShift[h]),e.tShift[h]=i-e.bMarks[h];continue}if(f)break;let S=!1;for(let C=0,I=d.length;C<I;C++)if(d[C](e,h,r,!0)){S=!0;break}if(S){e.lineMax=h,e.blkIndent!==0&&(s.push(e.bMarks[h]),u.push(e.bsCount[h]),l.push(e.tShift[h]),c.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),u.push(e.bsCount[h]),l.push(e.tShift[h]),c.push(e.sCount[h]),e.sCount[h]=-1}let b=e.blkIndent;e.blkIndent=0;let w=e.push("blockquote_open","blockquote",1);w.markup=">";let D=[t,0];w.map=D,e.md.block.tokenize(e,t,h);let k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=a,e.parentType=m,D[1]=e.line;for(let T=0;T<l.length;T++)e.bMarks[T+t]=s[T],e.tShift[T+t]=l[T],e.sCount[T+t]=c[T],e.bsCount[T+t]=u[T];return e.blkIndent=b,!0}p();function Bf(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<i;){let c=e.src.charCodeAt(o++);if(c!==a&&!Pe(c))return!1;c===a&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;let u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(s+1).join(String.fromCharCode(a)),!0}p();function Sx(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);if(i!==42&&i!==45&&i!==43)return-1;if(n<r){let o=e.src.charCodeAt(n);if(!Pe(o))return-1}return n}function Ax(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=n)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-r>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<n&&(o=e.src.charCodeAt(i),!Pe(o))?-1:i}function xS(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Hf(e,t,r,n){let i,o,a,s,u=t,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let l=!1;n&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(l=!0);let d,m,f;if((f=Ax(e,u))>=0){if(d=!0,a=e.bMarks[u]+e.tShift[u],m=Number(e.src.slice(a,f-1)),l&&m!==1)return!1}else if((f=Sx(e,u))>=0)d=!1;else return!1;if(l&&e.skipSpaces(f)>=e.eMarks[u])return!1;if(n)return!0;let h=e.src.charCodeAt(f-1),b=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),m!==1&&(s.attrs=[["start",m]])):s=e.push("bullet_list_open","ul",1);let w=[u,0];s.map=w,s.markup=String.fromCharCode(h);let D=!1,k=e.md.block.ruler.getRules("list"),T=e.parentType;for(e.parentType="list";u<r;){o=f,i=e.eMarks[u];let S=e.sCount[u]+f-(e.bMarks[u]+e.tShift[u]),C=S;for(;o<i;){let R=e.src.charCodeAt(o);if(R===9)C+=4-(C+e.bsCount[u])%4;else if(R===32)C++;else break;o++}let I=o,O;I>=i?O=1:O=C-S,O>4&&(O=1);let W=S+O;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);let H=[u,0];s.map=H,d&&(s.info=e.src.slice(a,f-1));let j=e.tight,v=e.tShift[u],N=e.sCount[u],P=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=W,e.tight=!0,e.tShift[u]=I-e.bMarks[u],e.sCount[u]=C,I>=i&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),(!e.tight||D)&&(c=!1),D=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=P,e.tShift[u]=v,e.sCount[u]=N,e.tight=j,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),u=e.line,H[1]=u,u>=r||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let E=!1;for(let R=0,M=k.length;R<M;R++)if(k[R](e,u,r,!0)){E=!0;break}if(E)break;if(d){if(f=Ax(e,u),f<0)break;a=e.bMarks[u]+e.tShift[u]}else if(f=Sx(e,u),f<0)break;if(h!==e.src.charCodeAt(f-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),w[1]=u,e.line=u,e.parentType=T,c&&xS(e,b),!0}p();function Uf(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(k){let T=e.lineMax;if(k>=T||e.isEmpty(k))return null;let S=!1;if(e.sCount[k]-e.blkIndent>3&&(S=!0),e.sCount[k]<0&&(S=!0),!S){let O=e.md.block.ruler.getRules("reference"),W=e.parentType;e.parentType="reference";let H=!1;for(let j=0,v=O.length;j<v;j++)if(O[j](e,k,T,!0)){H=!0;break}if(e.parentType=W,H)return null}let C=e.bMarks[k]+e.tShift[k],I=e.eMarks[k];return e.src.slice(C,I+1)}let u=e.src.slice(i,o+1);o=u.length;let c=-1;for(i=1;i<o;i++){let k=u.charCodeAt(i);if(k===91)return!1;if(k===93){c=i;break}else if(k===10){let T=s(a);T!==null&&(u+=T,o=u.length,a++)}else if(k===92&&(i++,i<o&&u.charCodeAt(i)===10)){let T=s(a);T!==null&&(u+=T,o=u.length,a++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(i=c+2;i<o;i++){let k=u.charCodeAt(i);if(k===10){let T=s(a);T!==null&&(u+=T,o=u.length,a++)}else if(!Pe(k))break}let l=e.md.helpers.parseLinkDestination(u,i,o);if(!l.ok)return!1;let d=e.md.normalizeLink(l.str);if(!e.md.validateLink(d))return!1;i=l.pos;let m=i,f=a,h=i;for(;i<o;i++){let k=u.charCodeAt(i);if(k===10){let T=s(a);T!==null&&(u+=T,o=u.length,a++)}else if(!Pe(k))break}let b=e.md.helpers.parseLinkTitle(u,i,o);for(;b.can_continue;){let k=s(a);if(k===null)break;u+=k,i=o,o=u.length,a++,b=e.md.helpers.parseLinkTitle(u,i,o,b)}let w;for(i<o&&h!==i&&b.ok?(w=b.str,i=b.pos):(w="",i=m,a=f);i<o;){let k=u.charCodeAt(i);if(!Pe(k))break;i++}if(i<o&&u.charCodeAt(i)!==10&&w)for(w="",i=m,a=f;i<o;){let k=u.charCodeAt(i);if(!Pe(k))break;i++}if(i<o&&u.charCodeAt(i)!==10)return!1;let D=xo(u.slice(1,c));return D?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[D]>"u"&&(e.env.references[D]={title:w,href:d}),e.line=a),!0):!1}p();p();var kx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];p();var bS="[a-zA-Z_:][a-zA-Z0-9:._-]*",yS="[^\"'=<>`\\x00-\\x20]+",wS="'[^']*'",ES='"[^"]*"',_S="(?:"+yS+"|"+wS+"|"+ES+")",vS="(?:\\s+"+bS+"(?:\\s*=\\s*"+_S+")?)",Tx="<[A-Za-z][A-Za-z0-9\\-]*"+vS+"*\\s*\\/?>",Cx="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",SS="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",AS="<[?][\\s\\S]*?[?]>",kS="<![A-Za-z][^>]*>",TS="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Dx=new RegExp("^(?:"+Tx+"|"+Cx+"|"+SS+"|"+AS+"|"+kS+"|"+TS+")"),Ix=new RegExp("^(?:"+Tx+"|"+Cx+")");var wo=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+kx.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Ix.source+"\\s*$"),/^$/,!1]];function $f(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),s=0;for(;s<wo.length&&!wo[s][0].test(a);s++);if(s===wo.length)return!1;if(n)return wo[s][2];let u=t+1,c=wo[s][1].test("");if(!wo[s][1].test(a)){for(;u<r&&!(e.sCount[u]<e.blkIndent&&(c||!e.isEmpty(u)));u++)if(i=e.bMarks[u]+e.tShift[u],o=e.eMarks[u],a=e.src.slice(i,o),wo[s][1].test(a)){a.length!==0&&u++;break}}e.line=u;let l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}p();function qf(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!Pe(a))return!1;if(n)return!0;o=e.skipSpacesBack(o,i);let u=e.skipCharsBack(o,35,i);u>i&&Pe(e.src.charCodeAt(u-1))&&(o=u),e.line=t+1;let c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];let l=e.push("inline","",0);l.content=bo(e.src.slice(i,o)),l.map=[t,e.line],l.children=[];let d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}p();function Wf(e,t,r){let n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let f=e.bMarks[s]+e.tShift[s],h=e.eMarks[s];if(f<h&&(a=e.src.charCodeAt(f),(a===45||a===61)&&(f=e.skipChars(f,a),f=e.skipSpaces(f),f>=h))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let m=!1;for(let f=0,h=n.length;f<h;f++)if(n[f](e,s,r,!0)){m=!0;break}if(m)break}if(!o)return e.parentType=i,!1;let u=bo(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];let l=e.push("inline","",0);l.content=u,l.map=[t,e.line-1],l.children=[];let d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(a),e.parentType=i,!0}p();function Kf(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let l=0,d=n.length;l<d;l++)if(n[l](e,o,r,!0)){c=!0;break}if(c)break}let a=bo(e.getLines(t,o,e.blkIndent,!1));e.line=o;let s=e.push("paragraph_open","p",1);s.map=[t,e.line];let u=e.push("inline","",0);return u.content=a,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}var bc=[["table",Mf,["paragraph","reference"]],["code",Of],["fence",Ff,["paragraph","reference","blockquote","list"]],["blockquote",Pf,["paragraph","reference","blockquote","list"]],["hr",Bf,["paragraph","reference","blockquote","list"]],["list",Hf,["paragraph","reference","blockquote"]],["reference",Uf],["html_block",$f,["paragraph","reference","blockquote"]],["heading",qf,["paragraph","reference","blockquote"]],["lheading",Wf],["paragraph",Kf]];function yc(){this.ruler=new yo;for(let e=0;e<bc.length;e++)this.ruler.push(bc[e][0],bc[e][1],{alt:(bc[e][2]||[]).slice()})}yc.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,o=e.md.options.maxNesting,a=t,s=!1;for(;a<r&&(e.line=a=e.skipEmptyLines(a),!(a>=r||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=r;break}let u=e.line,c=!1;for(let l=0;l<i;l++)if(c=n[l](e,a,r,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<r&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}};yc.prototype.parse=function(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)};yc.prototype.State=_x;var Nx=yc;p();p();function Ns(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Ns.prototype.pushPending=function(){let e=new Wr("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Ns.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new Wr(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};Ns.prototype.scanDelims=function(e,t){let r=this.posMax,n=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)===55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)===56320){let w=this.src.charCodeAt(e-2);i=(w&64512)===55296?65536+(w-55296<<10)+(i-56320):65533}else(i&64512)===55296&&(i=65533);let o=e;for(;o<r&&this.src.charCodeAt(o)===n;)o++;let a=o-e,s=o<r?this.src.charCodeAt(o):32;if((s&64512)===55296){let w=this.src.charCodeAt(o+1);s=(w&64512)===56320?65536+(s-55296<<10)+(w-56320):65533}else(s&64512)===56320&&(s=65533);let u=go(i)||mo(i),c=go(s)||mo(s),l=ho(i),d=ho(s),m=!d&&(!c||l||u),f=!l&&(!u||d||c);return{can_open:m&&(t||!f||u),can_close:f&&(t||!m||c),length:a}};Ns.prototype.Token=Wr;var Rx=Ns;p();function CS(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function jf(e,t){let r=e.pos;for(;r<e.posMax&&!CS(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}p();var DS=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Vf(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;let i=e.pending.match(DS);if(!i)return!1;let o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(r-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;let u=s.length;for(;u>0&&s.charCodeAt(u-1)===42;)u--;u!==s.length&&(s=s.slice(0,u));let c=e.md.normalizeLink(s);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);let l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";let d=e.push("text","",0);d.content=e.md.normalizeLinkText(s);let m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=s.length-o.length,!0}p();function zf(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&Pe(e.src.charCodeAt(r));)r++;return e.pos=r,!0}p();var Jf=[];for(let e=0;e<256;e++)Jf.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Jf[e.charCodeAt(0)]=1});function Gf(e,t){let r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let i=e.src.charCodeAt(r);if(i===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(i=e.src.charCodeAt(r),!!Pe(i));)r++;return e.pos=r,!0}let o=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let s=e.src.charCodeAt(r+1);s>=56320&&s<=57343&&(o+=e.src[r+1],r++)}let a="\\"+o;if(!t){let s=e.push("text_special","",0);i<256&&Jf[i]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=r+1,!0}p();function Xf(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;let i=r;r++;let o=e.posMax;for(;r<o&&e.src.charCodeAt(r)===96;)r++;let a=e.src.slice(i,r),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=a),e.pos+=s,!0;let u=r,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<o&&e.src.charCodeAt(u)===96;)u++;let l=u-c;if(l===s){if(!t){let d=e.push("code_inline","code",0);d.markup=a,d.content=e.src.slice(r,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[l]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}p();function IS(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;let i=e.scanDelims(e.pos,!0),o=i.length,a=String.fromCharCode(n);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let u=0;u<o;u+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Lx(e,t){let r,n=[],i=t.length;for(let o=0;o<i;o++){let a=t[o];if(a.marker!==126||a.end===-1)continue;let s=t[a.end];r=e.tokens[a.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[s.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&n.push(s.token-1)}for(;n.length;){let o=n.pop(),a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(r=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=r)}}function NS(e){let t=e.tokens_meta,r=e.tokens_meta.length;Lx(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Lx(e,t[n].delimiters)}var Yf={tokenize:IS,postProcess:NS};p();function RS(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;let i=e.scanDelims(e.pos,n===42);for(let o=0;o<i.length;o++){let a=e.push("text","",0);a.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Mx(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let i=t[n];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;let o=t[i.end],a=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),u=e.tokens[i.token];u.type=a?"strong_open":"em_open",u.tag=a?"strong":"em",u.nesting=1,u.markup=a?s+s:s,u.content="";let c=e.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}function LS(e){let t=e.tokens_meta,r=e.tokens_meta.length;Mx(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Mx(e,t[n].delimiters)}var Zf={tokenize:RS,postProcess:LS};p();function Qf(e,t){let r,n,i,o,a="",s="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let l=e.pos,d=e.posMax,m=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let h=f+1;if(h<d&&e.src.charCodeAt(h)===40){for(c=!1,h++;h<d&&(r=e.src.charCodeAt(h),!(!Pe(r)&&r!==10));h++);if(h>=d)return!1;if(u=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",u=h;h<d&&(r=e.src.charCodeAt(h),!(!Pe(r)&&r!==10));h++);if(i=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<d&&u!==h&&i.ok)for(s=i.str,h=i.pos;h<d&&(r=e.src.charCodeAt(h),!(!Pe(r)&&r!==10));h++);}(h>=d||e.src.charCodeAt(h)!==41)&&(c=!0),h++}if(c){if(typeof e.env.references>"u")return!1;if(h<d&&e.src.charCodeAt(h)===91?(u=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?n=e.src.slice(u,h++):h=f+1):h=f+1,n||(n=e.src.slice(m,f)),o=e.env.references[xo(n)],!o)return e.pos=l,!1;a=o.href,s=o.title}if(!t){e.pos=m,e.posMax=f;let b=e.push("link_open","a",1),w=[["href",a]];b.attrs=w,s&&w.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}p();function ed(e,t){let r,n,i,o,a,s,u,c,l="",d=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let f=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o<m&&e.src.charCodeAt(o)===40){for(o++;o<m&&(r=e.src.charCodeAt(o),!(!Pe(r)&&r!==10));o++);if(o>=m)return!1;for(c=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(l=e.md.normalizeLink(s.str),e.md.validateLink(l)?o=s.pos:l=""),c=o;o<m&&(r=e.src.charCodeAt(o),!(!Pe(r)&&r!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<m&&c!==o&&s.ok)for(u=s.str,o=s.pos;o<m&&(r=e.src.charCodeAt(o),!(!Pe(r)&&r!==10));o++);else u="";if(o>=m||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<m&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(c,o++):o=h+1):o=h+1,i||(i=e.src.slice(f,h)),a=e.env.references[xo(i)],!a)return e.pos=d,!1;l=a.href,u=a.title}if(!t){n=e.src.slice(f,h);let b=[];e.md.inline.parse(n,e.md,e.env,b);let w=e.push("image","img",0),D=[["src",l],["alt",""]];w.attrs=D,w.children=b,w.content=n,u&&D.push(["title",u])}return e.pos=o,e.posMax=m,!0}p();var MS=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,OS=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function td(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let a=e.src.charCodeAt(r);if(a===60)return!1;if(a===62)break}let o=e.src.slice(n+1,r);if(OS.test(o)){let a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){let s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(MS.test(o)){let a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){let s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let u=e.push("text","",0);u.content=e.md.normalizeLinkText(o);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}p();function FS(e){return/^<a[>\s]/i.test(e)}function PS(e){return/^<\/a\s*>/i.test(e)}function BS(e){let t=e|32;return t>=97&&t<=122}function rd(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;let i=e.src.charCodeAt(n+1);if(i!==33&&i!==63&&i!==47&&!BS(i))return!1;let o=e.src.slice(n).match(Dx);if(!o)return!1;if(!t){let a=e.push("html_inline","",0);a.content=o[0],FS(a.content)&&e.linkLevel++,PS(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}p();var HS=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,US=/^&([a-z][a-z0-9]{1,31});/i;function nd(e,t){let r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){let o=e.src.slice(r).match(HS);if(o){if(!t){let a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=gc(a)?la(a):la(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{let o=e.src.slice(r).match(US);if(o){let a=Is(o[0]);if(a!==o[0]){if(!t){let s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}p();function Ox(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,o=[];for(let a=0;a<r;a++){let s=e[a];if(o.push(0),(e[n].marker!==s.marker||i!==s.token-1)&&(n=a),i=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);let u=t[s.marker][(s.open?3:0)+s.length%3],c=n-o[n]-1,l=c;for(;c>u;c-=o[c]+1){let d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let m=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(m=!0),!m){let f=c>0&&!e[c-1].open?o[c-1]+1:0;o[a]=a-c+f,o[c]=f,s.open=!1,d.end=a,d.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=l)}}function id(e){let t=e.tokens_meta,r=e.tokens_meta.length;Ox(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&Ox(t[n].delimiters)}p();function od(e){let t,r,n=0,i=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}var ad=[["text",jf],["linkify",Vf],["newline",zf],["escape",Gf],["backticks",Xf],["strikethrough",Yf.tokenize],["emphasis",Zf.tokenize],["link",Qf],["image",ed],["autolink",td],["html_inline",rd],["entity",nd]],sd=[["balance_pairs",id],["strikethrough",Yf.postProcess],["emphasis",Zf.postProcess],["fragments_join",od]];function Rs(){this.ruler=new yo;for(let e=0;e<ad.length;e++)this.ruler.push(ad[e][0],ad[e][1]);this.ruler2=new yo;for(let e=0;e<sd.length;e++)this.ruler2.push(sd[e][0],sd[e][1])}Rs.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<i){for(let s=0;s<n;s++)if(e.level++,a=r[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos};Rs.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let o=e.pos,a=!1;if(e.level<i){for(let s=0;s<r;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Rs.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](i)};Rs.prototype.State=Rx;var Fx=Rs;p();p();function Px(e){let t={};e=e||{},t.src_Any=cc.source,t.src_Cc=lc.source,t.src_Z=dc.source,t.src_P=sa.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ud(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Ec(e){return Object.prototype.toString.call(e)}function $S(e){return Ec(e)==="[object String]"}function qS(e){return Ec(e)==="[object Object]"}function WS(e){return Ec(e)==="[object RegExp]"}function Bx(e){return Ec(e)==="[object Function]"}function KS(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Ux={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function jS(e){return Object.keys(e||{}).reduce(function(t,r){return t||Ux.hasOwnProperty(r)},!1)}var VS={"http:":{validate:function(e,t,r){let n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},zS="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",JS="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function GS(e){return function(t,r){let n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function Hx(){return function(e,t){t.normalize(e)}}function wc(e){let t=e.re=Px(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(zS),r.push(t.src_xn),t.src_tlds=r.join("|");function n(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let i=[];e.__compiled__={};function o(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(e.__schemas__).forEach(function(s){let u=e.__schemas__[s];if(u===null)return;let c={validate:null,link:null};if(e.__compiled__[s]=c,qS(u)){WS(u.validate)?c.validate=GS(u.validate):Bx(u.validate)?c.validate=u.validate:o(s,u),Bx(u.normalize)?c.normalize=u.normalize:u.normalize?o(s,u):c.normalize=Hx();return}if($S(u)){i.push(s);return}o(s,u)}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Hx()};let a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(KS).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function $x(e,t,r,n){let i=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=i,this.text=i,this.url=i}function Kr(e,t){if(!(this instanceof Kr))return new Kr(e,t);t||jS(e)&&(t=e,e={}),this.__opts__=ud({},Ux,t),this.__schemas__=ud({},VS,e),this.__compiled__={},this.__tlds__=JS,this.__tlds_replaced__=!1,this.re={},wc(this)}Kr.prototype.add=function(t,r){return this.__schemas__[t]=r,wc(this),this};Kr.prototype.set=function(t){return this.__opts__=ud(this.__opts__,t),this};Kr.prototype.test=function(t){if(!t.length)return!1;let r,n;if(this.re.schema_test.test(t)){for(n=this.re.schema_search,n.lastIndex=0;(r=n.exec(t))!==null;)if(this.testSchemaAt(t,r[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};Kr.prototype.pretest=function(t){return this.re.pretest.test(t)};Kr.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Kr.prototype.match=function(t){let r=[],n=[],i=[],o=[],a,s,u;function c(m,f){return m?f?m.index!==f.index?m.index<f.index?m:f:m.lastIndex>=f.lastIndex?m:f:m:f}if(!t.length)return null;if(this.re.schema_test.test(t))for(u=this.re.schema_search,u.lastIndex=0;(a=u.exec(t))!==null;)s=this.testSchemaAt(t,a[2],u.lastIndex),s&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(u=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,u.lastIndex=0;(a=u.exec(t))!==null;)i.push({schema:"",index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(u=this.re.email_fuzzy_global,u.lastIndex=0;(a=u.exec(t))!==null;)o.push({schema:"mailto:",index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],d=0;for(;;){let m=[n[l[0]],o[l[1]],i[l[2]]],f=c(c(m[0],m[1]),m[2]);if(!f)break;if(f===m[0]?l[0]++:f===m[1]?l[1]++:l[2]++,f.index<d)continue;let h=new $x(t,f.schema,f.index,f.lastIndex);this.__compiled__[h.schema].normalize(h,this),r.push(h),d=f.lastIndex}return r.length?r:null};Kr.prototype.matchAtStart=function(t){if(!t.length)return null;let r=this.re.schema_at_start.exec(t);if(!r)return null;let n=this.testSchemaAt(t,r[2],r[0].length);if(!n)return null;let i=new $x(t,r[2],r.index+r[1].length,r.index+r[0].length+n);return this.__compiled__[i.schema].normalize(i,this),i};Kr.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),wc(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,wc(this),this)};Kr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Kr.prototype.onCompile=function(){};var qx=Kr;p();var XS=/^xn--/,YS=/[^\0-\x7F]/,ZS=/[\x2E\u3002\uFF0E\uFF61]/g,QS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},cd=35,Fn=Math.floor,ld=String.fromCharCode;function Bi(e){throw new RangeError(QS[e])}function eA(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function Kx(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(ZS,".");let i=e.split("."),o=eA(i,t).join(".");return n+o}function jx(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let o=e.charCodeAt(r++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}var tA=e=>String.fromCodePoint(...e),rA=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},Wx=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Vx=function(e,t,r){let n=0;for(e=r?Fn(e/700):e>>1,e+=Fn(e/t);e>cd*26>>1;n+=36)e=Fn(e/cd);return Fn(n+(cd+1)*e/(e+38))},zx=function(e){let t=[],r=e.length,n=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Bi("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<r;){let u=n;for(let l=1,d=36;;d+=36){s>=r&&Bi("invalid-input");let m=rA(e.charCodeAt(s++));m>=36&&Bi("invalid-input"),m>Fn((2147483647-n)/l)&&Bi("overflow"),n+=m*l;let f=d<=o?1:d>=o+26?26:d-o;if(m<f)break;let h=36-f;l>Fn(2147483647/h)&&Bi("overflow"),l*=h}let c=t.length+1;o=Vx(n-u,c,u==0),Fn(n/c)>2147483647-i&&Bi("overflow"),i+=Fn(n/c),n%=c,t.splice(n++,0,i)}return String.fromCodePoint(...t)},Jx=function(e){let t=[];e=jx(e);let r=e.length,n=128,i=0,o=72;for(let u of e)u<128&&t.push(ld(u));let a=t.length,s=a;for(a&&t.push("-");s<r;){let u=2147483647;for(let l of e)l>=n&&l<u&&(u=l);let c=s+1;u-n>Fn((2147483647-i)/c)&&Bi("overflow"),i+=(u-n)*c,n=u;for(let l of e)if(l<n&&++i>2147483647&&Bi("overflow"),l===n){let d=i;for(let m=36;;m+=36){let f=m<=o?1:m>=o+26?26:m-o;if(d<f)break;let h=d-f,b=36-f;t.push(ld(Wx(f+h%b,0))),d=Fn(h/b)}t.push(ld(Wx(d,0))),o=Vx(i,c,s===a),i=0,++s}++i,++n}return t.join("")},nA=function(e){return Kx(e,function(t){return XS.test(t)?zx(t.slice(4).toLowerCase()):t})},iA=function(e){return Kx(e,function(t){return YS.test(t)?"xn--"+Jx(t):t})},oA={version:"2.3.1",ucs2:{decode:jx,encode:tA},decode:zx,encode:Jx,toASCII:iA,toUnicode:nA};var fd=oA;p();var Gx={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};p();var Xx={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};p();var Yx={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var aA={default:Gx,zero:Xx,commonmark:Yx},sA=/^(vbscript|javascript|file|data):/,uA=/^data:image\/(gif|png|jpeg|webp);/;function cA(e){let t=e.trim().toLowerCase();return sA.test(t)?uA.test(t):!0}var Zx=["http:","https:","mailto:"];function lA(e){let t=Ds(e,!0);if(t.hostname&&(!t.protocol||Zx.indexOf(t.protocol)>=0))try{t.hostname=fd.toASCII(t.hostname)}catch{}return ac(aa(t))}function fA(e){let t=Ds(e,!0);if(t.hostname&&(!t.protocol||Zx.indexOf(t.protocol)>=0))try{t.hostname=fd.toUnicode(t.hostname)}catch{}return Cs(aa(t),Cs.defaultChars+"%")}function en(e,t){if(!(this instanceof en))return new en(e,t);t||mc(e)||(t=e||{},e="default"),this.inline=new Fx,this.block=new Nx,this.core=new Ex,this.renderer=new mx,this.linkify=new qx,this.validateLink=cA,this.normalizeLink=lA,this.normalizeLinkText=fA,this.utils=yf,this.helpers=ca({},vf),this.options={},this.configure(e),t&&this.set(t)}en.prototype.set=function(e){return ca(this.options,e),this};en.prototype.configure=function(e){let t=this;if(mc(e)){let r=e;if(e=aA[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};en.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};en.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};en.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};en.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};en.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};en.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};en.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var br=en;p();p();p();var ol=de(Un(),1);function il(e){let t=e?.trim().match(/^(\d+(?:\.\d+)?)(?:px)?$/i),r=t?Number(t[1]):0;return Number.isFinite(r)&&r>0?r:void 0}function ny(e){let t=e.getAttribute("style")?.match(/(?:^|;)\s*width\s*:\s*([^;]+)/i)?.[1];return il(t??null)}function pi(e){let t=Array.from(e.children).filter(n=>n.tagName==="COLGROUP").flatMap(n=>Array.from(n.children).filter(i=>i.tagName==="COL")).map(n=>ny(n)??il(n.getAttribute("width")));return{width:il(e.getAttribute("data-table-width"))??ny(e)??il(e.getAttribute("width"))??(t.length&&t.every(n=>n!==void 0)?t.reduce((n,i)=>n+i,0):void 0),columns:t}}function Da(e){return e.width!==void 0||e.columns.some(t=>t!==void 0)}function Io(e,t,r=!1){if(t.width!==void 0){let n=(e.getAttribute("style")??"").split(";").map(i=>i.trim()).filter(i=>i&&!/^(?:width|table-layout)\s*:/i.test(i)).join("; ");e.setAttribute("style",`${n?n+"; ":""}width: ${t.width}px; table-layout: fixed;`),r&&(e.setAttribute("data-table-width",String(t.width)),e.hasAttribute("data-layout")||e.setAttribute("data-layout","default"))}if(t.columns.length){for(let i of Array.from(e.children).filter(o=>o.tagName==="COLGROUP"))i.remove();let n=e.ownerDocument.createElement("colgroup");for(let i of t.columns){let o=e.ownerDocument.createElement("col");i!==void 0&&o.setAttribute("style",`width: ${i}px;`),n.appendChild(o)}e.insertBefore(n,e.firstChild)}}function iy(e,t){if(!t)return e;let r=Array.from((0,ol.createDocument)(t).querySelectorAll("table")).map(pi);if(!r.some(Da))return e;let n=(0,ol.createDocument)(e),i=Array.from(n.querySelectorAll("table"));return i.length!==r.length?e:(i.forEach((o,a)=>{Da(r[a])&&Io(o,r[a])}),n.body.innerHTML)}function Zs(e,t){if(!/<table[\s>]/i.test(e))return e;let r=Wi().parse(e,{}),n=e.split(`
30
+ `);for(let i of r.reverse()){if(i.type!=="html_block"||!i.map||!/<table[\s>]/i.test(i.content))continue;let o=(0,ol.createDocument)(i.content),a=!1;for(let s of Array.from(o.querySelectorAll("table a[href]"))){let u=s.getAttribute("href"),c=t(u);c!==u&&(s.setAttribute("href",c),a=!0)}a&&n.splice(i.map[0],i.map[1]-i.map[0],o.body.innerHTML.trimEnd())}return n.join(`
31
+ `)}var oy=/^\s*(?:```|~~~)/,Ia=/(!?)\[\[([^[\]|#]*)(#[^[\]|]+)?(?:\\?\|([^[\]]*))?\]\]/g;function Na(e,t,r,n){let i=s=>s.replace(/\\$/,"").trim(),o=i(t??""),a=r?i(r.slice(1)):null;return!o&&!a?null:{embed:e==="!",target:o,fragment:a||null,alias:n?.trim()||null}}function G8(e){return e.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(Ia,(t,...r)=>{let n=Na(r[0],r[1],r[2],r[3]);return n?n.alias??(n.target||n.fragment)??t:t}).replace(/`+/g,"").replace(/\*\*|~~|\*/g,"").trim()}function ay(e){return G8(e).toLowerCase().replace(/[^\p{L}\p{N}\s_-]/gu,"").replace(/\s/g,"-")}function hi(e){let t=[],r=new Map,n=!1;for(let i of e.split(`
32
+ `)){if(oy.test(i)){n=!n;continue}if(n)continue;let o=i.match(/^(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/);if(!o)continue;let a=o[2].trim();if(!a)continue;let s=ay(a),u=r.get(s)??0;r.set(s,u+1),t.push({text:a,slug:u?`${s}-${u}`:s,level:o[1].length})}return t}function Qs(e){let t=new Map;for(let r of hi(e))t.has(r.slug)||t.set(r.slug,r.text);return t}var Ki=e=>{try{return decodeURIComponent(e)}catch{return e}},Ip=e=>e.normalize("NFC").toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"");function al(e,t,r){let n=Ip(Ki(e));if(!n)return null;let i=Ip(r),o=null,a=0;for(let s of t){let u=Ip(s.text);if(u){if(n===u||n===i+u)return s;n.endsWith(u)&&u.length>a&&(o=s,a=u.length)}}return o}function sl(e){let t=e.split("#").filter(Boolean).pop();return!t||t.startsWith("^")?null:ay(t)||null}var X8=/\[([^\]]*)\]\((<[^>]+>|[^()\s]+)\)/g;function sy(e){let t=[],r=!1;for(let n of e.split(`
33
+ `)){if(oy.test(n)){r=!r;continue}if(r)continue;let i=n.split(/(`+[^`]*`+)/).filter((o,a)=>a%2===0).join("");for(let o of i.matchAll(X8)){if(i[o.index-1]==="!")continue;let a=Ki(o[2].replace(/^<(.*)>$/,"$1")),s=a.indexOf("#");s<0||s===a.length-1||/^(https?:|mailto:)/i.test(a)||t.push({dest:a.slice(0,s),fragment:a.slice(s+1),wiki:!1})}for(let o of i.matchAll(Ia)){let a=Na(o[1],o[2],o[3],o[4]);!a||a.embed||!a.fragment||t.push({dest:a.target,fragment:a.fragment,wiki:!0})}}return Zs(e,n=>{let i=Ki(n),o=i.indexOf("#");return o>=0&&o<i.length-1&&!/^[a-z][a-z\d+.-]*:|^\/\//i.test(i)&&t.push({dest:i.slice(0,o),fragment:i.slice(o+1),wiki:!1}),n}),t}function No(e){return`<ac:structured-macro ac:name="anchor"><ac:parameter ac:name="">${e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</ac:parameter></ac:structured-macro>`}var Ro="csync-callout-v1-",ul={note:{title:"\uB178\uD2B8",color:"#526078",background:"#f4f5f7"},abstract:{title:"\uC694\uC57D",color:"#006b76",background:"#e6fcff"},info:{title:"\uC548\uB0B4",color:"#0747a6",background:"#deebff"},todo:{title:"\uD560 \uC77C",color:"#0747a6",background:"#deebff"},tip:{title:"\uD301",color:"#006b76",background:"#e6fcff"},success:{title:"\uC131\uACF5",color:"#006644",background:"#e3fcef"},question:{title:"\uC9C8\uBB38",color:"#974f0c",background:"#fff0b3"},warning:{title:"\uC8FC\uC758",color:"#974f0c",background:"#fff0b3"},failure:{title:"\uC2E4\uD328",color:"#ae2a19",background:"#ffebe6"},danger:{title:"\uC704\uD5D8",color:"#ae2a19",background:"#ffebe6"},bug:{title:"\uBC84\uADF8",color:"#ae2a19",background:"#ffebe6"},example:{title:"\uC608\uC2DC",color:"#403294",background:"#eae6ff"},quote:{title:"\uC778\uC6A9",color:"#526078",background:"#f4f5f7"}},uy={summary:"abstract",tldr:"abstract",hint:"tip",important:"tip",check:"success",done:"success",help:"question",faq:"question",caution:"warning",attention:"warning",fail:"failure",missing:"failure",error:"danger",cite:"quote"};function Np(e){let t=Object.hasOwn(uy,e.toLowerCase())?uy[e.toLowerCase()]:e.toLowerCase();return Object.hasOwn(ul,t)?ul[t]:ul.note}function ly(e,t){return Object.entries(ul).find(([,r])=>r.title===e&&r.background===t.toLowerCase())?.[0]??"note"}var cy=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");function fy(e,t){e.core.ruler.after("inline","obsidian_callouts",r=>{if(r.env?.legacyCallouts===!0)return;let n=r.tokens,i=0;for(let o=0;o<n.length;o++){if(n[o].type!=="blockquote_open"||n[o+1]?.type!=="paragraph_open"||n[o+2]?.type!=="inline"||n[o+3]?.type!=="paragraph_close")continue;let a=n[o+2],s=a.content.indexOf(`
34
+ `),c=(s<0?a.content:a.content.slice(0,s)).match(/^\[!([a-z\d_-]+)\]([+-]?)(?:[ \t]+(.*))?[ \t]*$/i);if(!c)continue;let l=o+1,d=1;for(;l<n.length&&(n[l].type==="blockquote_open"&&d++,!(n[l].type==="blockquote_close"&&--d===0));l++);if(l===n.length)continue;let m=Np(c[1]),f=t==="html"||r.env?.legacyCallouts==="panels"?"":No(Ro+_.Buffer.from(JSON.stringify({type:c[1],fold:c[2],explicit:!!c[3]?.trim(),index:i++})).toString("base64url"));n[o].type="callout_open",n[o].meta={...m,title:c[3]?.trim()||m.title,marker:f},n[l].type="callout_close",s<0?n.splice(o+1,3):(a.content=a.content.slice(s+1),a.children=[],r.md.inline.parse(a.content,r.md,r.env,a.children))}}),e.renderer.rules.callout_open=(r,n)=>{let{title:i,color:o,background:a,marker:s}=r[n].meta;if(t==="html")return`<blockquote style="background-color:${a};color:${o}"><p><strong>${cy(i)}</strong></p>
35
+ `;let u=(c,l)=>`<ac:parameter ac:name="${c}">${cy(l)}</ac:parameter>`;return'<ac:structured-macro ac:name="panel">'+u("title",i)+u("borderColor",o)+u("titleColor",o)+u("titleBGColor",a)+u("bgColor",a)+`<ac:rich-text-body>
36
+ `+s},e.renderer.rules.callout_close=()=>t==="html"?`</blockquote>
37
+ `:`</ac:rich-text-body></ac:structured-macro>
38
+ `}function Wi(e="html"){let t=new br({html:!0,linkify:!0,breaks:!1});return t.block.ruler.before("html_block","html_table",(r,n,i,o)=>{if(r.sCount[n]-r.blkIndent>=4)return!1;let a=r.getLines(n,i,r.blkIndent,!1);if(!/^ {0,3}<table(?:\s|>)/i.test(a))return!1;let s=0;for(let u of a.matchAll(/<\/?table\b(?:[^"'<>]|"[^"]*"|'[^']*')*>/gi)){if(s+=/^<\//.test(u[0])?-1:1,s)continue;if(o)return!0;let c=n+a.slice(0,u.index+u[0].length).split(`
39
+ `).length,l=r.push("html_block","",0);return l.content=r.getLines(n,c,r.blkIndent,!0),l.map=[n,c],r.line=c,!0}return!1}),fy(t,e),t}p();var wy=de(Un(),1);p();p();function Y8(e,t,r,n){let i=Number(e[t].meta.id+1).toString(),o="";return typeof n.docId=="string"&&(o=`-${n.docId}-`),o+i}function Z8(e,t){let r=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(r+=`:${e[t].meta.subId}`),`[${r}]`}function Q8(e,t,r,n,i){let o=i.rules.footnote_anchor_name(e,t,r,n,i),a=i.rules.footnote_caption(e,t,r,n,i),s=o;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${o}" id="fnref${s}">${a}</a></sup>`}function eT(e,t,r){return(r.xhtmlOut?`<hr class="footnotes-sep" />
40
+ `:`<hr class="footnotes-sep">
41
+ `)+`<section class="footnotes">
42
+ <ol class="footnotes-list">
43
+ `}function tT(){return`</ol>
44
+ </section>
45
+ `}function rT(e,t,r,n,i){let o=i.rules.footnote_anchor_name(e,t,r,n,i);return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),`<li id="fn${o}" class="footnote-item">`}function nT(){return`</li>
46
+ `}function iT(e,t,r,n,i){let o=i.rules.footnote_anchor_name(e,t,r,n,i);return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),` <a href="#fnref${o}" class="footnote-backref">\u21A9\uFE0E</a>`}function eu(e){let t=e.helpers.parseLinkLabel,r=e.utils.isSpace;e.renderer.rules.footnote_ref=Q8,e.renderer.rules.footnote_block_open=eT,e.renderer.rules.footnote_block_close=tT,e.renderer.rules.footnote_open=rT,e.renderer.rules.footnote_close=nT,e.renderer.rules.footnote_anchor=iT,e.renderer.rules.footnote_caption=Z8,e.renderer.rules.footnote_anchor_name=Y8;function n(s,u,c,l){let d=s.bMarks[u]+s.tShift[u],m=s.eMarks[u];if(d+4>m||s.src.charCodeAt(d)!==91||s.src.charCodeAt(d+1)!==94)return!1;let f;for(f=d+2;f<m;f++){if(s.src.charCodeAt(f)===32)return!1;if(s.src.charCodeAt(f)===93)break}if(f===d+2||f+1>=m||s.src.charCodeAt(++f)!==58)return!1;if(l)return!0;f++,s.env.footnotes||(s.env.footnotes={}),s.env.footnotes.refs||(s.env.footnotes.refs={});let h=s.src.slice(d+2,f-2);s.env.footnotes.refs[`:${h}`]=-1;let b=new s.Token("footnote_reference_open","",1);b.meta={label:h},b.level=s.level++,s.tokens.push(b);let w=s.bMarks[u],D=s.tShift[u],k=s.sCount[u],T=s.parentType,S=f,C=s.sCount[u]+f-(s.bMarks[u]+s.tShift[u]),I=C;for(;f<m;){let W=s.src.charCodeAt(f);if(r(W))W===9?I+=4-I%4:I++;else break;f++}s.tShift[u]=f-S,s.sCount[u]=I-C,s.bMarks[u]=S,s.blkIndent+=4,s.parentType="footnote",s.sCount[u]<s.blkIndent&&(s.sCount[u]+=s.blkIndent),s.md.block.tokenize(s,u,c,!0),s.parentType=T,s.blkIndent-=4,s.tShift[u]=D,s.sCount[u]=k,s.bMarks[u]=w;let O=new s.Token("footnote_reference_close","",-1);return O.level=--s.level,s.tokens.push(O),!0}function i(s,u){let c=s.posMax,l=s.pos;if(l+2>=c||s.src.charCodeAt(l)!==94||s.src.charCodeAt(l+1)!==91)return!1;let d=l+2,m=t(s,l+1);if(m<0)return!1;if(!u){s.env.footnotes||(s.env.footnotes={}),s.env.footnotes.list||(s.env.footnotes.list=[]);let f=s.env.footnotes.list.length,h=[];s.md.inline.parse(s.src.slice(d,m),s.md,s.env,h);let b=s.push("footnote_ref","",0);b.meta={id:f},s.env.footnotes.list[f]={content:s.src.slice(d,m),tokens:h}}return s.pos=m+1,s.posMax=c,!0}function o(s,u){let c=s.posMax,l=s.pos;if(l+3>c||!s.env.footnotes||!s.env.footnotes.refs||s.src.charCodeAt(l)!==91||s.src.charCodeAt(l+1)!==94)return!1;let d;for(d=l+2;d<c;d++){if(s.src.charCodeAt(d)===32||s.src.charCodeAt(d)===10)return!1;if(s.src.charCodeAt(d)===93)break}if(d===l+2||d>=c)return!1;d++;let m=s.src.slice(l+2,d-1);if(typeof s.env.footnotes.refs[`:${m}`]>"u")return!1;if(!u){s.env.footnotes.list||(s.env.footnotes.list=[]);let f;s.env.footnotes.refs[`:${m}`]<0?(f=s.env.footnotes.list.length,s.env.footnotes.list[f]={label:m,count:0},s.env.footnotes.refs[`:${m}`]=f):f=s.env.footnotes.refs[`:${m}`];let h=s.env.footnotes.list[f].count;s.env.footnotes.list[f].count++;let b=s.push("footnote_ref","",0);b.meta={id:f,subId:h,label:m}}return s.pos=d,s.posMax=c,!0}function a(s){let u,c,l,d=!1,m={};if(!s.env.footnotes||(s.tokens=s.tokens.filter(function(h){return h.type==="footnote_reference_open"?(d=!0,c=[],l=h.meta.label,!1):h.type==="footnote_reference_close"?(d=!1,m[":"+l]=c,!1):(d&&c.push(h),!d)}),!s.env.footnotes.list))return;let f=s.env.footnotes.list;s.tokens.push(new s.Token("footnote_block_open","",1));for(let h=0,b=f.length;h<b;h++){let w=new s.Token("footnote_open","",1);if(w.meta={id:h,label:f[h].label},s.tokens.push(w),f[h].tokens){u=[];let T=new s.Token("paragraph_open","p",1);T.block=!0,u.push(T);let S=new s.Token("inline","",0);S.children=f[h].tokens,S.content=f[h].content,u.push(S);let C=new s.Token("paragraph_close","p",-1);C.block=!0,u.push(C)}else f[h].label&&(u=m[`:${f[h].label}`]);u&&(s.tokens=s.tokens.concat(u));let D;s.tokens[s.tokens.length-1].type==="paragraph_close"?D=s.tokens.pop():D=null;let k=f[h].count>0?f[h].count:1;for(let T=0;T<k;T++){let S=new s.Token("footnote_anchor","",0);S.meta={id:h,subId:T,label:f[h].label},s.tokens.push(S)}D&&s.tokens.push(D),s.tokens.push(new s.Token("footnote_close","",-1))}s.tokens.push(new s.Token("footnote_block_close","",-1))}e.block.ruler.before("reference","footnote_def",n,{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",i),e.inline.ruler.after("footnote_inline","footnote_ref",o),e.core.ruler.after("inline","footnote_tail",a)}p();p();var ji=de(je(),1);function cl(e,t){return(0,ji.join)((0,ji.dirname)((0,ji.relative)(t,e)),"attachments",(0,ji.basename)(e).replace(/\.md$/i,"")).split("\\").join("/")}Wt();qe();var Pr=de(je(),1);p();qe();var dy=de(je());async function py(e,t){let r=new Map;for(let n of e)r.has(n.file)||r.set(n.file,[]),(t||!J(n.target))&&r.get(n.file).push(n);for(let[n,i]of r)if(i.length)try{let o=await globalThis.csyncRenderPdf({bytes:new Uint8Array(re(n)),pages:i.map(a=>a.page),dryRun:t});if(!t)for(let a=0;a<i.length;a++)Ie((0,dy.dirname)(i[a].target),{recursive:!0}),rt(i[a].target,new Uint8Array(o[a]))}catch(o){throw Error(`PDF \uC774\uBBF8\uC9C0 \uBCC0\uD658 \uC2E4\uD328 (${n}): ${o.message}`)}}var hy=e=>_.Buffer.from(JSON.stringify(e)).toString("base64"),oT=e=>JSON.parse(_.Buffer.from(e,"base64").toString()),my=new br({html:!0});function bn(e,t,r){let n=e.split(`
47
+ `),i=[0];for(let c of n)i.push(i[i.length-1]+c.length+1);let o=my.parse(e,{}).filter(c=>["fence","code_block","html_block"].includes(c.type)&&c.map).map(c=>[i[c.map[0]],Math.min(i[c.map[1]],e.length),c.type==="html_block"?1:0]),a=0,s="",u=c=>aT(c,t);for(let[c,l,d]of o)c<a||(s+=u(e.slice(a,c))+(d&&r?r(e.slice(c,l)):e.slice(c,l)),a=l);return s+u(e.slice(a))}function aT(e,t){let r=/(`+)([\s\S]*?)(?<!`)\1(?!`)/g,n=0,i="";for(let o of e.matchAll(r))i+=t(e.slice(n,o.index))+o[0],n=o.index+o[0].length;return i+t(e.slice(n))}var sT=/\[([^\]\n]*)\]\(#[^\s)]+\)<!-- csync-pdf:v1 ([A-Za-z0-9+/=]+) -->/g,uT=/!\[([^\]\n]*)\]\((?:<[^>\n]+>|[^()\s]+)\)<!-- csync-pdf-inline:v1 ([A-Za-z0-9+/=]+) -->/g,cT=/\n*<!-- csync-pdf-pages:v1 -->\n[\s\S]*?<!-- \/csync-pdf-pages -->\n*/g;function Rp(e,t,r){let n=[],i=(a,s,u)=>{let c=oT(u);if(typeof c.path!="string"||!/\.pdf$/i.test(c.path)||!Number.isSafeInteger(c.page)||c.page<1)throw new Error("PDF \uC5ED\uBCC0\uD658 \uC815\uBCF4\uC758 \uACBD\uB85C \uB610\uB294 \uCABD \uBC88\uD638\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");let l=(0,Pr.resolve)((0,Pr.dirname)(t),c.path);if(gy(l,r),!J(l))throw new Error(`\uC5ED\uBCC0\uD658\uC5D0 \uD544\uC694\uD55C \uC6D0\uBCF8 PDF\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4: ${l}`);n.push(l);let d=(0,Pr.relative)(r,l).split("\\").join("/");return`${c.embed?"!":""}[[${d}#page=${c.page}|${s||c.label}]]`},o=Ra(Ra(e,uT,i),sT,i);return{text:Ra(o,cT,()=>`
48
+
49
+ `),assets:[...new Set(n)],pages:0}}function Ra(e,t,r){let n=e.split(`
50
+ `),i=[0];for(let a of n)i.push(i[i.length-1]+a.length+1);let o=my.parse(e,{}).filter(a=>["fence","code_block"].includes(a.type)&&a.map).map(a=>[i[a.map[0]],Math.min(i[a.map[1]],e.length)]);for(let a of e.matchAll(/(`+)([\s\S]*?)(?<!`)\1(?!`)/g))o.push([a.index,a.index+a[0].length]);return e.replace(t,(...a)=>{let u=a[a.length-2]+a[0].search(/\S/);return o.some(([c,l])=>u>=c&&u<l)?a[0]:r(...a)})}function gy(e,t){let r=(0,Pr.relative)(ot(t),J(e)?ot(e):e);if(r===".."||r.startsWith("../")||r.startsWith("..\\"))throw new Error(`PDF\uB294 --base \uC548\uC5D0 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4: ${e}`)}async function xy(e,t,r,n,i,o=s=>s,a=!0){let s=new Set,u=new Set(hi(e).map(D=>D.slug)),c=new Map,l=new Map,d=[],m=/(?<!!)(!?)\[([^\]\n]*)\]\((<[^>\n]+>|[^()\s]+)\)/g,f=(D,k)=>bn(D,T=>T.replace(m,(S,C,I,O,W)=>{if((T.slice(0,W).match(/\\+$/)?.[0].length??0)%2)return S;let H;try{H=decodeURIComponent(O.replace(/^<(.*)>$/,"$1"))}catch{return S}if(/^[a-z][a-z\d+.-]*:/i.test(H)||Fi(H))return S;let j=H.match(/^(.*\.pdf)#page=(\d+)$/i);if(!j)return S;let v=(0,Pr.resolve)((0,Pr.dirname)(t),j[1]),N=o(v);if(N===v&&gy(v,r),!J(N))throw new Error(`PDF \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${N}`);let P=Number(j[2]);if(!Number.isSafeInteger(P)||P<1)throw new Error(`\uC798\uBABB\uB41C PDF \uCABD \uBC88\uD638: ${H}`);s.add(N);let E=l.get(N);E||(E=$e("sha256").update(re(N)).digest("hex").slice(0,24),l.set(N,E));let R=`${E}-${P}`,M=c.get(R);if(!M){let $=`PDF \uC6D0\uBB38 ${c.size+1} - ${P}\uCABD`,X=`pdf-\uC6D0\uBB38-${c.size+1}---${P}\uCABD`,ge=0,ke=$,me=X;for(;u.has(X);)$=`${ke}-${++ge}`,X=`${me}-${ge}`;u.add(X);let oe=`${cl(t,r)}/pdfjs-${R}.png`,q=(0,Pr.resolve)(n,oe);d.push({file:N,page:P,target:q});let G=(0,Pr.resolve)(n,(0,Pr.relative)(r,t)),ue=(0,Pr.relative)((0,Pr.dirname)(G),q).split("\\").join("/");M={heading:$,anchor:X,image:ue,gallery:!1},c.set(R,M)}let F={path:j[1],page:P,label:I,embed:C==="!"};return k?`![${I||`PDF ${P}\uCABD`}](<${M.image}>)<!-- csync-pdf-inline:v1 ${hy(F)} -->`:(M.gallery=!0,`[${I||`PDF ${P}\uCABD`}](#${M.anchor})<!-- csync-pdf:v1 ${hy(F)} -->`)})),h=Ra(e,/<!-- csync-footnote:v1 [A-Za-z0-9+/=]+ -->\n[\s\S]*?<!-- \/csync-footnote -->/g,D=>f(D,!0)),b=f(h,!1);if(!c.size)return{text:e,assets:a?Rp(e,t,r).assets:[],pages:0};await py(d,i);let w=[...c.values()].filter(D=>D.gallery).map(D=>`### ${D.heading}
51
+
52
+ ![${D.heading}](<${D.image}>)`).join(`
53
+
54
+ `);return{text:b.trimEnd()+(w?`
55
+
56
+ <!-- csync-pdf-pages:v1 -->
57
+ ${w}
58
+ <!-- /csync-pdf-pages -->
59
+ `:`
60
+ `),assets:[...s],pages:c.size}}function Lp(e,t){let r=e.getRules("");e.disable(t);let n=new Set(e.getRules(""));e.enable(t);let i=r.find(o=>!n.has(o));if(!i)throw new Error(`\uAC01\uC8FC \uD30C\uC11C \uADDC\uCE59\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${t}`);return i}function lT(e){let t=new br({html:!0}).use(eu),r=Lp(t.inline.ruler,"footnote_inline"),n=[],i=new Set,o=[],a=0,s=0;t.inline.ruler.at("footnote_inline",(h,b)=>{let w=h.pos;a++;let D;try{D=r(h,b)}finally{a--}if(D&&!b&&a===0){let k;do k=`csync-inline-${++s}`;while(e.includes(`[^${k}]`));i.add(k),n.push(`[^${k}]: ${h.src.slice(w+2,h.pos-1).replace(/\n/g,`
61
+ `)}`),o.push({start:w,end:h.pos,text:`[^${k}]`})}return D});let u=e.split(`
62
+ `),c=[0];for(let h of u)c.push(c[c.length-1]+h.length+1);let l=new br({html:!0}).parse(e,{}).filter(h=>["fence","code_block","html_block"].includes(h.type)&&h.map).map(h=>[c[h.map[0]],Math.min(c[h.map[1]],e.length)]),d=h=>{o=[],t.inline.parse(h,t,{},[]);for(let b of o.sort((w,D)=>D.start-w.start))h=h.slice(0,b.start)+b.text+h.slice(b.end);return h},m=0,f="";for(let[h,b]of l)h<m||(f+=d(e.slice(m,h))+e.slice(h,b),m=b);return f+=d(e.slice(m)),{text:n.length?f.trimEnd()+`
63
+
64
+ `+n.join(`
65
+
66
+ `)+`
67
+ `:e,labels:i}}function yy(e){if(!e.includes("[^")&&!e.includes("^["))return e;let t=lT(e);e=t.text;let r=new br({html:!0}).use(eu),n=[],i=e.split(`
68
+ `),o=[0];for(let S of i)o.push(o[o.length-1]+S.length+1);let a=Lp(r.block.ruler,"footnote_def");r.block.ruler.at("footnote_def",(S,C,I,O)=>{let W=a(S,C,I,O);if(W&&!O){let H=i[C].match(/^ {0,3}\[\^([^\]]+)\]:\s*(.*)$/);H&&n.push({start:o[C],end:Math.min(o[S.line],e.length),label:H[1],body:[H[2],...i.slice(C+1,S.line).map(j=>j.replace(/^(?: {4}|\t)/,""))].join(`
69
+ `).trimEnd()})}return W},{alt:["paragraph","reference"]});let s={},u=r.parse(e,s);if(!n.length)return e;let c=new Set(hi(e).map(S=>S.slug)),l=new Set(n.map(S=>S.label)),d=new Map,m=[],f=Lp(r.inline.ruler,"footnote_ref"),h=[];r.inline.ruler.at("footnote_ref",(S,C)=>{let I=S.pos,O=f(S,C);if(O&&!C){let W=S.src.slice(I+2,S.pos-1);if(!l.has(W))return O;let H=d.get(W);if(!H){let j=d.size+1,v=`\uAC01\uC8FC ${j}`,N=`\uAC01\uC8FC-${j}`,P=0;for(;c.has(N);)v=`\uAC01\uC8FC ${j}-${++P}`,N=`\uAC01\uC8FC-${j}-${P}`;c.add(N),H={number:j,heading:v,anchor:N},d.set(W,H)}h.push({start:I,end:S.pos,text:`<sup>[${H.number}](#${H.anchor})</sup>`})}return O}),r.inline.ruler.disable("footnote_inline");let b=S=>{h=[],r.inline.parse(S,r,s,[]);for(let C of h.sort((I,O)=>O.start-I.start))S=S.slice(0,C.start)+C.text+S.slice(C.end);return S},w=[...n.map(S=>({start:S.start,end:S.end,definition:!0})),...u.filter(S=>(S.type==="fence"||S.type==="code_block"||S.type==="html_block")&&S.map).map(S=>({start:o[S.map[0]],end:Math.min(o[S.map[1]],e.length),definition:!1}))].sort((S,C)=>S.start-C.start),D=0;for(let S of w)S.start<D||(m.push({start:D,end:S.start,text:b(e.slice(D,S.start))}),S.definition&&m.push({start:S.start,end:S.end,text:""}),D=S.end);m.push({start:D,end:e.length,text:b(e.slice(D))});for(let S of n)d.has(S.label)||b(`[^${S.label}]`);let k=e;for(let S of m.sort((C,I)=>I.start-C.start))k=k.slice(0,S.start)+S.text+k.slice(S.end);let T=new Map(n.map(S=>[S.label,S.body]));return k.trimEnd()+`
70
+
71
+ `+[...d].map(([S,C])=>`<!-- csync-footnote:v1 ${_.Buffer.from(JSON.stringify({label:S,anchor:C.anchor,...t.labels.has(S)?{inline:!0}:{}})).toString("base64")} -->
72
+ ###### ${C.heading}
73
+
74
+ ${b(T.get(S)??"")}
75
+ <!-- /csync-footnote -->`).join(`
76
+
77
+ `)+`
78
+ `}function ll(e){let t=new Map,r=[],n=new Set,i=new br({html:!0}).use(eu),o=Ra(e,/<!-- csync-footnote:v1 ([A-Za-z0-9+/=]+) -->\n+#{1,6} [^\n]+\n\n([\s\S]*?)\n<!-- \/csync-footnote -->/g,(c,l,d)=>{let m=La(l);if(!m)return c;let{label:f,anchor:h}=m;return t.set(h,{label:f,body:d.trimEnd(),inline:m.inline===!0}),m.inline||r.push(`[^${f}]: ${d.trimEnd().split(`
79
+ `).join(`
80
+ `)}`),""});if(!t.size)return e;let a=c=>bn(c,l=>l.replace(/<sup>\[\d+\]\(#([^\s)]+)\)<\/sup>/g,(d,m)=>{let f=t.get(by(m));if(!f)return d;if(f.inline&&!/\n\s*\n/.test(f.body)){let h=`^[${f.body}]`,b=[];if(i.inline.parse(h,i,{},b),b.length===1&&b[0].type==="footnote_ref")return n.add(by(m)),h}return`[^${f.label}]`})),s=a(o).trimEnd();for(let[c,l]of t)l.inline&&!n.has(c)&&r.push(`[^${l.label}]: ${l.body.split(`
81
+ `).join(`
82
+ `)}`);let u=r.map(a).join(`
83
+
84
+ `);return s+(u?`
85
+
86
+ `+u:"")+`
87
+ `}function La(e){if(!(e.length>8e3))try{let t=JSON.parse(_.Buffer.from(e,"base64").toString("utf8"));if(t&&typeof t.label=="string"&&/^[^\s\[\]\r\n]+$/.test(t.label)&&typeof t.anchor=="string"&&/^[\p{L}\p{N}_-]+$/u.test(t.anchor)&&(t.inline===void 0||typeof t.inline=="boolean"))return t}catch{}}function by(e){try{return decodeURIComponent(e)}catch{return e}}var Ey="csync-footnote-v1-",_y=e=>`<!-- csync-footnote:v1 ${e} -->`,Mp="<!-- /csync-footnote -->",Lo=(e,t)=>Ey+(t?"end-":"start-")+_.Buffer.from(e,"base64").toString("base64url");function vy(e){let t;return e.replace(/<!\[CDATA\[[\s\S]*?\]\]>|<!-- csync-footnote:v1 ([A-Za-z0-9+/=]+) -->|<!-- \/csync-footnote -->/g,(r,n)=>{if(n)return La(n)?(t=n,No(Lo(n,!1))):r;if(r===Mp&&t){let i=No(Lo(t,!0));return t=void 0,i}return r})}function Sy(e){return e.replace(/<!\[CDATA\[[\s\S]*?\]\]>|<ac:structured-macro ac:name="anchor"><ac:parameter ac:name="">csync-footnote-v1-(start|end)-([A-Za-z0-9_-]+)<\/ac:parameter><\/ac:structured-macro>/g,(t,r,n)=>{if(!r||!n)return t;let i=_.Buffer.from(n,"base64url").toString("base64");return La(i)?r==="start"?_y(i):Mp:t})}function Ay(e,t,r){let n=(0,wy.createDocument)(e);for(let l of Array.from(n.querySelectorAll("[data-csync-footnote]")))l.removeAttribute("data-csync-footnote");if(!t?.includes(Ey))return n.body.innerHTML;let i=new Map,o=new Set,a=new Set;for(let l of t.matchAll(/<ac:structured-macro\b[^>]*ac:name="anchor"[^>]*>\s*<ac:parameter\b[^>]*ac:name=""[^>]*>csync-footnote-v1-(start|end)-([A-Za-z0-9_-]+)<\/ac:parameter>\s*<\/ac:structured-macro>/g)){let d=_.Buffer.from(l[2],"base64url").toString("base64");La(d)&&(l[1]==="start"?o:a).add(d)}for(let l of o)a.has(l)&&(i.set(Lo(l,!1),{encoded:l,end:!1}),i.set(Lo(l,!0),{encoded:l,end:!0}));if(!i.size)return n.body.innerHTML;let s=new Map;for(let l of Array.from(n.querySelectorAll("[id], [name]"))){let d=l.getAttribute("id")??l.getAttribute("name")??"",m=[...i].find(([f])=>d.endsWith(f));if(m){let f=s.get(m[0])??[];f.push(l),s.set(m[0],f)}}let u=[...o].filter(l=>s.get(Lo(l,!1))?.length===1&&s.get(Lo(l,!0))?.length===1),c=u.map(l=>{let d=La(l);return{text:d.anchor,slug:d.anchor,level:6}});for(let l of Array.from(n.querySelectorAll("sup a[href]"))){let d=l.getAttribute("href"),m=d.match(/\/pages\/(\d+)/)?.[1]??d.match(/[?&]pageId=(\d+)/)?.[1];if(!d.startsWith("#")&&(!r||m!==r))continue;let f=d.split("#").slice(1).join("#"),h=al(f,c,"");h&&l.setAttribute("href",`#${h.slug}`)}for(let l of u)for(let d of[!1,!0]){let m=s.get(Lo(l,d))[0];m.setAttribute("data-csync-footnote",JSON.stringify({encoded:l,end:d})),m.textContent="csync-footnote-marker"}return n.body.innerHTML}function ky(e){e.addRule("confluenceFootnoteMetadata",{filter:t=>!!t.hasAttribute?.("data-csync-footnote"),replacement:(t,r)=>{let{encoded:n,end:i}=JSON.parse(r.getAttribute("data-csync-footnote"));return`
88
+
89
+ ${i?Mp:_y(n)}
90
+
91
+ `}}),e.addRule("superscript",{filter:"sup",replacement:t=>`<sup>${t}</sup>`})}var Oy=de(Un(),1);p();var fT=/^\s*(?:```|~~~)/;function kt(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/);if(!t)return{data:{},body:e};let r={};for(let n of t[1].split(/\r?\n/)){let i=n.match(/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/);i&&(r[i[1]]=i[2].trim().replace(/^["'](.*)["']$/,"$1"))}return{data:r,body:e.slice(t[0].length)}}function Dy(e){let t=Object.entries(e).filter(([,r])=>r!=null&&r!=="").map(([r,n])=>`${r}: ${/[:#"'\n]|^\s|\s$/.test(n)?JSON.stringify(n):n}`);return t.length?`---
92
+ ${t.join(`
93
+ `)}
94
+ ---
95
+
96
+ `:""}var Ty=e=>/\s/.test(e)?`<${e}>`:e,fl=e=>e.replace(/\\([\\_])/g,"$1"),Cy=e=>e.replace(/[\\_]/g,"\\$&");function Iy(e,t){let r=!1;return e.split(`
97
+ `).map(n=>fT.test(n)?(r=!r,n):r?n:n.split(/(`+[^`]*`+)/).map((i,o)=>o%2?i:t(i)).join("")).join(`
98
+ `)}function dl(e,t){return Iy(e,r=>r.replace(Ia,(n,i,o,a,s)=>{let u=Na(i,o,a,s);if(!u)return n;let c=u.fragment?/\.pdf$/i.test(u.target)?u.fragment:sl(u.fragment):null;if(!u.target)return c?`[${Cy(u.alias??u.fragment??"")}](#${c})`:n;let l=t(u.target,u.embed);if(!l)return n;let d=Cy(u.alias??u.target);return u.embed?`![${d}](${Ty(l+(/\.pdf$/i.test(u.target)&&c?`#${c}`:""))})`:`[${d}](${Ty(l+(c?`#${c}`:""))})`}))}var dT=/(!?)\[([^\]]*)\]\((<[^>]+>|[^()\s]+)\)/g;function Ny(e,t){return Iy(e,r=>r.replace(dT,(n,i,o,a)=>{if(i==="!")return n;let s=a.replace(/^<(.*)>$/,"$1");return t(s,fl(o))??n}))}p();Wt();var Ry="23392b90-4271-4239-98ca-a3e96c663cbb/63d4d207-ac2f-4273-865c-0240d37f044a/static/mermaid-diagram";function Ly(e,t){let r=$e("sha256").update(`csync:mermaid:${e}:${t}`).digest("hex"),n=`${r.slice(0,8)}-${r.slice(8,12)}-5${r.slice(13,16)}-a${r.slice(17,20)}-${r.slice(20,32)}`,i=`<ac:adf-node type="extension"><ac:adf-attribute key="extension-type">com.atlassian.ecosystem</ac:adf-attribute><ac:adf-attribute key="extension-key">${Ry}</ac:adf-attribute><ac:adf-attribute key="parameters"><ac:adf-parameter key="local-id">${n}</ac:adf-parameter><ac:adf-parameter key="extension-id">ari:cloud:ecosystem::extension/${Ry}</ac:adf-parameter><ac:adf-parameter key="extension-title">Mermaid diagram</ac:adf-parameter></ac:adf-attribute><ac:adf-attribute key="text">Mermaid diagram</ac:adf-attribute><ac:adf-attribute key="layout">default</ac:adf-attribute><ac:adf-attribute key="local-id">${n}</ac:adf-attribute></ac:adf-node>`;return`<ac:adf-extension>${i}<ac:adf-fallback>${i}</ac:adf-fallback></ac:adf-extension>
99
+ `}var mi=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),Fy=e=>$e("sha256").update(e).digest("hex"),Ma=e=>{try{return decodeURIComponent(e)}catch{return e}},_r=Wi("storage"),Py=()=>({fileDir:"",titleIndex:{},anchorIndex:{},selfRel:"",selfTitle:"",anchorNames:new Set,bodySlugs:[],headingSeq:0,mermaidSeq:0,anchorsPlaced:0,images:[],attachments:[],internalLinks:0,anchorLinks:0,deadAnchors:[],linkStack:[],linkedTitles:new Set}),We=Py(),Oa="";function My(e,t,r){let n=Ma(Ki(t)).toLowerCase(),i=We.anchorIndex[e]?.get(n);return i?i===r?null:n:(We.deadAnchors.push(`#${n}`),null)}function pT(e){if(!e||/^(https?:|mailto:)/i.test(e))return null;if(e.startsWith("#")){let a=My(We.selfRel,e.slice(1),We.selfTitle);return a?{title:null,anchor:a}:null}let[t,...r]=e.split("#");if(!t||!/\.md$/i.test(t))return null;let n=(0,Cr.relative)(Oa,(0,Cr.resolve)(Oa,We.fileDir,Ma(t))).split("\\").join("/"),i=We.titleIndex[n];if(!i)return null;let o=r.join("#");return{title:i,anchor:o?My(n,o,i):null}}_r.renderer.rules.heading_open=(e,t,r,n,i)=>{let o=We.bodySlugs[We.headingSeq++],a=i.renderToken(e,t,r);return!o||!We.anchorNames.has(o)?a:(We.anchorsPlaced++,No(o)+a)};_r.renderer.rules.fence=(e,t)=>{let r=e[t],n=(r.info||"").trim().split(/\s+/)[0],i=n.toLowerCase()==="mermaid"?"mermaid":n;if(i==="confluence-iframe"){let u=r.content.trim();if(!/^https?:\/\/[^\s<>]+$/i.test(u))throw new Error("confluence-iframe\uC5D0\uB294 HTTP(S) URL \uD55C \uC904\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.");return`<ac:structured-macro ac:name="iframe"><ac:parameter ac:name="url">${mi(u)}</ac:parameter><ac:parameter ac:name="width">100%</ac:parameter><ac:parameter ac:name="height">900</ac:parameter></ac:structured-macro>
100
+ `}let o=r.content.split("]]>").join("]]]]><![CDATA[>");return`<ac:structured-macro ac:name="code">${i?`<ac:parameter ac:name="language">${mi(i)}</ac:parameter>`:""}<ac:plain-text-body><![CDATA[${o}]]></ac:plain-text-body></ac:structured-macro>
101
+ `+(i==="mermaid"?Ly(We.selfRel,We.mermaidSeq++):"")};function By(e){let t=We.attachments.find(n=>n.abs===e);if(t)return t.filename;let r=(0,Cr.basename)(e);if(We.attachments.some(n=>n.filename===r)){let n=(0,Cr.extname)(r),i=(0,Cr.basename)(r,n),o=Fy((0,Cr.relative)(Oa,e).split("\\").join("/")).slice(0,12);r=`${i}-${o}${n}`;let a=1;for(;We.attachments.some(s=>s.filename===r);)r=`${i}-${o}-${a++}${n}`}return We.attachments.push({filename:r,abs:e}),r}_r.renderer.rules.link_open=(e,t,r,n,i)=>{let o=e[t].attrGet("href")||"";if(Fi(o))return We.linkStack.push(!1),i.renderToken(e,t,r);let a=We.rewriteHref?.(o)??o;e[t].attrSet("href",a);let s=pT(a);if(s&&(s.title||s.anchor)){We.linkStack.push(!0),We.internalLinks++,s.title&&We.linkedTitles.add(s.title),s.anchor&&We.anchorLinks++;let c=s.anchor?` ac:anchor="${mi(s.anchor)}"`:"",l=s.title?`<ri:page ri:content-title="${mi(s.title)}" />`:"";return`<ac:link${c}>${l}<ac:link-body>`}let u=a.split("#")[0];if(u&&!/^[a-z][a-z\d+.-]*:|^\/\//i.test(u)&&!/\.md$/i.test(Ma(u))){let c=(0,Cr.resolve)(Oa,We.fileDir,Ma(u));if(J(c)&&gt(c).isFile()){let l=By(c);return We.linkStack.push(!0),`<ac:link${a.includes("#")?` ac:anchor="${mi(Ma(a.slice(a.indexOf("#")+1)))}"`:""}><ri:attachment ri:filename="${mi(l)}" /><ac:link-body>`}}return We.linkStack.push(!1),i.renderToken(e,t,r)};_r.renderer.rules.link_close=(e,t,r,n,i)=>We.linkStack.pop()?"</ac:link-body></ac:link>":i.renderToken(e,t,r);var hT=760;_r.renderer.rules.image=(e,t)=>{let r=e[t],n=r.attrGet("src")||"",o=(r.attrGet("title")||"").match(/width\s*=\s*(\d+)/i),a=o?o[1]:String(hT),s=a?` ac:width="${mi(a)}"`:"";if(/^https?:\/\//i.test(n))return`<ac:image${s}><ri:url ri:value="${mi(n)}" /></ac:image>`;let u=(0,Cr.resolve)(Oa,We.fileDir,Ma(n.split("#")[0])),c=By(u);return We.images.push({filename:c,abs:u}),`<ac:image${s}><ri:attachment ri:filename="${mi(c)}" /></ac:image>`};_r.renderer.rules.html_block=(e,t)=>{let r=e[t].content;if(!/<table[\s>]/i.test(r))return r;let n=(0,Oy.createDocument)(r);for(let o of Array.from(n.querySelectorAll("table"))){let a=pi(o);Da(a)&&Io(o,a,!0)}let i=n.body.innerHTML;for(let o of Array.from(n.querySelectorAll("table a[href]"))){let a=new Wr("link_open","a",1);a.attrs=Array.from(o.attributes).map(c=>[c.name,c.value]);let s=_r.renderer.rules.link_open([a],0,_r.options,{},_r.renderer),u=_r.renderer.rules.link_close([new Wr("link_close","a",-1)],0,_r.options,{},_r.renderer);i=i.replace(o.outerHTML,s+o.innerHTML+u)}for(let o of Array.from(n.querySelectorAll("table img[src]"))){let a=new Wr("image","img",0);a.attrs=Array.from(o.attributes).map(u=>[u.name,u.value]);let s=o.getAttribute("width")??o.getAttribute("style")?.match(/(?:^|;)\s*width:\s*(\d+(?:\.\d+)?)px/i)?.[1];s&&/^\d+$/.test(s)&&a.attrSet("title",`width=${s}`),i=i.replace(o.outerHTML,_r.renderer.rules.image([a],0,_r.options,{},_r.renderer))}for(let o of Array.from(n.querySelectorAll("col, br, hr, img, input, wbr")))i=i.split(o.outerHTML).join(o.outerHTML.slice(0,-1)+" />");return i+`
102
+ `};function Hy(e,t){let r=e.split(`
103
+ `),n=r.findIndex(o=>/^#\s+/.test(o));if(n===-1)return{title:t,body:e};let i=r[n].replace(/^#\s+/,"").trim();return r.splice(n,1),{title:i,body:r.join(`
104
+ `)}}function Uy(e,t,r,n,i={}){Oa=n,We={...Py(),rewriteHref:i.rewriteHref,fileDir:(0,Cr.dirname)(t)==="."?"":(0,Cr.dirname)(t),titleIndex:r,anchorIndex:i.anchorIndex??{},selfRel:t,selfTitle:i.title??"",anchorNames:i.anchorNames??new Set,bodySlugs:i.bodySlugs??[]};let o=i.resolveLink?dl(e,i.resolveLink):e;return{storage:vy(_r.render(o,{legacyCallouts:i.legacyCallouts})),images:We.images,attachments:We.attachments,internalLinks:We.internalLinks,anchorLinks:We.anchorLinks,anchorsPlaced:We.anchorsPlaced,deadAnchors:We.deadAnchors,linkedTitles:[...We.linkedTitles]}}function Tt(e,t){let r=[e,Sy(t.storage)];for(let n of t.attachments){let i="missing";try{J(n.abs)&&(i=$e("sha256").update(re(n.abs)).digest("hex"))}catch{}r.push(`${n.filename}:${i}`)}return Fy(r.join("\0"))}var mT=e=>e.startsWith(".")||e==="node_modules";function Fp(e,t){let r=[];for(let n of oi(e,{withFileTypes:!0})){let i=(0,vr.join)(e,n.name);n.isDirectory()?mT(n.name)||r.push(...Fp(i,t)):n.isFile()&&t(n.name)&&r.push(i)}return r}var qy=e=>e.toLowerCase().endsWith(".md");function cr(e){return Fp(e,qy)}function Fa(e){return Fp(e,t=>!qy(t))}function tu(e,t){let{data:r,body:n}=kt(re((0,vr.resolve)(e,t),"utf8")),i=hi(n),o=Qs(n),{title:a,body:s}=Hy(n,(0,vr.basename)(t).replace(/\.md$/i,"")),u=i.findIndex(c=>c.level===1);return{title:(r.title||a).trim(),body:s,fm:r,anchors:o,bodySlugs:i.filter((c,l)=>l!==u).map(c=>c.slug),linkAnchors:sy(n)}}function Wy(e,t){let r={},n={},i={};for(let o of e){let a=tu(t,o);r[o]=a.title,n[o]=a.anchors,i[o]=a}return{titles:r,anchors:n,docs:i}}function gT(e,t){let r=(e?`${e}/${t}`:t).split("/"),n=[];for(let i of r)if(!(i===""||i==="."))if(i===".."){if(!n.length)return null;n.pop()}else n.push(i);return n.join("/")}function Ky(e,t,r){let n={};for(let[i,o]of Object.entries(e)){let a=(0,vr.dirname)(i)==="."?"":(0,vr.dirname)(i);for(let s of o.linkAnchors){let u,c;s.wiki?(u=s.dest===""?i:t.notes[s.dest.toLowerCase().replace(/\.md$/i,"")]??null,c=sl(s.fragment)):(u=s.dest===""?i:gT(a,Ki(s.dest)),u&&!/\.md$/i.test(u)&&(u=null),c=Ki(s.fragment).toLowerCase()),r&&s.dest&&(u=r(i,s.dest,s.wiki)),!(!u||!c)&&e[u]?.anchors.has(c)&&(n[u]??=new Set).add(c)}}return n}function Pa(e,t){let r=(n,i)=>{let o={};for(let a of[...n].sort()){let s=i?a.replace(/\.md$/i,""):a;for(let u of[s,(0,vr.basename)(s)]){let c=u.toLowerCase();c in o||(o[c]=a)}}return o};return{notes:r(e,!0),assets:r(t,!1)}}function hl(e,t){let r=(0,vr.dirname)(e)==="."?"":(0,vr.dirname)(e);return(n,i)=>{let o=n.toLowerCase().replace(/\.md$/i,""),a=i?t.assets[n.toLowerCase()]??t.notes[o]:t.notes[o]??t.assets[n.toLowerCase()];return a&&(0,vr.relative)(r||".",a).split("\\").join("/")||null}}var Pp=e=>/README\.md$/.test(e);function Mo(e){let t={};for(let r of e){let n=r.split("/");Pp(n[n.length-1])&&(t[n.slice(0,-1).join("/")]=r)}return t}var Op=e=>e.includes("/")?e.slice(0,e.lastIndexOf("/")):"";function pl(e,t){return e===""?null:t[e]??`${e}/`}function Vi(e,t){let r=e.split("/"),n=r.slice(0,-1).join("/");return Pp(r[r.length-1])?pl(Op(n),t):pl(n,t)}function $y(e){let t=e.split("/"),r=t[t.length-1],n=t.slice(0,-1).join("/"),i=Pp(r)?"":r;return n===""?i:n+"/"+i}function jy(e){return[...e].sort((t,r)=>{let n=$y(t),i=$y(r);return n<i?-1:n>i?1:0})}function Vy(e,t,r){let n=new Set;for(let i of t){let o=(0,vr.resolve)(r,i),a=(0,vr.relative)(r,o).split("\\").join("/");if(a.startsWith("..")){console.error(` \u26A0 base \uBC16 \uACBD\uB85C \uBB34\uC2DC: ${i}`);continue}let s=e.filter(u=>!a||u===a||u.startsWith(a+"/"));s.length===0&&console.error(` \u26A0 \uB9E4\uCE6D\uB418\uB294 \uBB38\uC11C \uC5C6\uC74C: ${i}`),s.forEach(u=>n.add(u))}return[...n]}function zy(e,t){let r=new Set(e);for(let n of e){let i=Op(n);for(;i!=="";)t[i]&&r.add(t[i]),i=Op(i)}return[...r]}p();p();p();var yn=()=>{};p();p();qe();Wt();var Zy=de(je(),1);p();qe();var Ba=de(je(),1),wn=".csync",Jy=".csync/mapping.json",Gy=".csync/workspace.json",Xy=".csync/ignore",Bp={mapping:[Jy,".confluence-sync.json"],workspace:[Gy,".confluence-workspace.json"],ignore:[Xy,".confluence-syncignore"]};function Hp(e,t){let r=(0,Ba.join)(e,wn);if(J(r)&&(!Rt(r).isDirectory()||Rt(r).isSymbolicLink()))throw new Error(`\uBA54\uD0C0\uB370\uC774\uD130 \uD3F4\uB354\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: ${r}`);let[n,i]=Bp[t].map(o=>(0,Ba.join)(e,o));for(let o of[n,i])if(J(o)&&(!Rt(o).isFile()||Rt(o).isSymbolicLink()))throw new Error(`\uBA54\uD0C0\uB370\uC774\uD130 \uD30C\uC77C\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: ${o}`);if(J(n)&&J(i)&&!re(n).equals(re(i)))throw new Error(`\uAE30\uC874\xB7\uC0C8 \uBA54\uD0C0\uB370\uC774\uD130\uAC00 \uCDA9\uB3CC\uD569\uB2C8\uB2E4: ${i}, ${n}. \uC0AC\uC6A9\uD560 \uAE30\uC900\uC744 \uBA3C\uC800 \uC815\uB9AC\uD558\uC138\uC694.`);return J(n)||!J(i)?n:i}var Pt=e=>Hp(e,"mapping"),Oo=e=>Hp(e,"workspace"),Yy=e=>Hp(e,"ignore");function Up(e){return J((0,Ba.join)(e,wn))||["mapping","workspace"].some(t=>J((0,Ba.join)(e,Bp[t][1])))}function ml(e){return Object.values(Bp).flatMap(t=>t.map(r=>(0,Ba.join)(e,r)))}function lr(e){let t;try{t=JSON.parse(re(e,"utf8"))}catch(n){if(n.code==="ENOENT")return{};throw new Error(`\uB9E4\uD551 \uD30C\uC77C\uC744 \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${e}`)}if(!t||typeof t!="object"||Array.isArray(t)||Object.values(t).some(n=>!n||typeof n.pageId!="string"||!n.pageId||n.sourceObject!==void 0&&(typeof n.sourceObject!="string"||!/^[a-f0-9]{64}$/.test(n.sourceObject))||n.localHash!==void 0&&(typeof n.localHash!="string"||!/^[a-f0-9]{64}$/.test(n.localHash))||n.remoteParentId!==void 0&&(typeof n.remoteParentId!="string"||!n.remoteParentId)||n.remoteVersion!==void 0&&(!Number.isInteger(n.remoteVersion)||n.remoteVersion<1)))throw new Error(`\uC798\uBABB\uB41C \uB9E4\uD551 \uD30C\uC77C: ${e}`);let r=Object.values(t).map(n=>n.pageId);if(new Set(r).size!==r.length)throw new Error(`\uB9E4\uD551 pageId \uC911\uBCF5: ${e}`);return t}function $n(e,t){Ie((0,Zy.dirname)(e),{recursive:!0});let r=`${e}.${gr()}.tmp`;try{rt(r,JSON.stringify(t,null,2)+`
105
+ `,{flag:"wx",mode:384}),ai(r,e)}finally{Kt(r,{force:!0})}}qe();p();qe();var K_=de(je(),1);p();p();p();p();p();function Qy(){if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof y<"u"){let e=y.type;return e==="renderer"||e==="worker"?!1:!!(y.versions&&y.versions.node)}return!1}var w_=de(tw(),1);p();var rw={toWeb(){throw new Error("Vercel Blob: Sorry, we cannot get a Readable stream in this environment. If you see this message please open an issue here: https://github.com/vercel/storage/ with details on your environment.")}};var v_=de(r_(),1),T_=de(c_(),1);p();var ns=globalThis.fetch.bind(globalThis);var L_=de(Ph(),1),P_=de(Ph(),1),K5=new Promise(e=>{try{let t=new Uint8Array([104,101,108,108,111]);new Blob([t]).text().then(n=>{e(n==="hello")}).catch(()=>{e(!1)})}catch{e(!1)}});async function E_(e){if(e instanceof ReadableStream)return e;if(e instanceof Blob)return e.stream();if(__(e))return rw.toWeb(e);let t;return e instanceof ArrayBuffer?t=new Uint8Array(e):V5(e)?t=e:t=j5(e),await K5?new Blob([t]).stream():new ReadableStream({start(r){r.enqueue(t),r.close()}})}function __(e){return typeof e=="object"&&typeof e.pipe=="function"&&e.readable&&typeof e._read=="function"&&typeof e._readableState=="object"}function j5(e){return new TextEncoder().encode(e)}function V5(e){return(0,w_.default)(e)}async function z5(){try{let e=(await(0,v_.getVercelOidcToken)()).trim();return e===""?void 0:e}catch{return}}var J5=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i,G5={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:1024**4,pb:1024**5};function on(e){if(typeof e=="number"&&!Number.isNaN(e))return e;if(typeof e!="string")return null;let t=J5.exec(e),r,n="b";if(!t)r=parseInt(e,10);else{let[,i,,,o]=t;if(!i)return null;r=parseFloat(i),o&&(n=o.toLowerCase())}return Number.isNaN(r)?null:Math.floor(G5[n]*r)}var X5="https://vercel.com/api/blob";function f_(e){try{let t=y.env[e];return typeof t=="string"&&t.trim()!==""?t.trim():void 0}catch{return}}function Bh(e){let[,,,t=""]=e.split("_");return t}function Y5(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=4-t.length%4;if(r!==4&&(t+="=".repeat(r)),typeof atob=="function")return atob(t);if(typeof _.Buffer<"u")return _.Buffer.from(t,"base64").toString("utf8");throw new ye("Cannot decode base64: no atob or Buffer available.")}function Z5(e){let t=e.indexOf(".");if(t<0)throw new ye("Invalid delegation token format.");let r=e.slice(0,t),n;try{n=JSON.parse(Y5(r))}catch{throw new ye("Invalid delegation token payload.")}if(!n.storeId||typeof n.storeId!="string")throw new ye("Delegation token payload is missing `storeId`.");return Hh(n.storeId)}function Hh(e){return e.startsWith("store_")?e.slice(6):e}async function Q5(e){var t,r;if(e?.presignedUrlPayload)return{kind:"presigned",storeId:Z5(e.presignedUrlPayload.delegationToken)};if(e?.token){let a=Bh(e.token);return{kind:"readWrite",token:e.token,storeId:a}}let n=(t=e?.oidcToken)==null?void 0:t.trim(),i=n||await z5();if(i){let a=(r=e?.storeId)==null?void 0:r.trim();if(a)return{kind:"oidc",token:i,storeId:Hh(a)};let s=f_("BLOB_STORE_ID");if(s)return{kind:"oidc",token:i,storeId:Hh(s)};if(n)throw new ye("oidcToken was passed, but no storeId was found. Pass a `storeId` option or set `BLOB_STORE_ID` to use OIDC auth")}let o=f_("BLOB_READ_WRITE_TOKEN");if(o){let a=Bh(o);return{kind:"readWrite",token:o,storeId:a}}throw new ye("No blob credentials found. Pass a `token` option, set `BLOB_READ_WRITE_TOKEN`, or use `oidcToken` (or `VERCEL_OIDC_TOKEN`) with `storeId` or `BLOB_STORE_ID`.")}var ye=class extends Error{constructor(e){super(`Vercel Blob: ${e}`)}};function Wh(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var eC=["//"],S_=(()=>{if(Qy())return!0;if(Uh().startsWith("http://localhost"))return!1;let t=!1,r=new Request(Uh(),{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!r})();function tC(){try{return y.env.VERCEL_BLOB_API_URL||y.env.NEXT_PUBLIC_VERCEL_BLOB_API_URL||null}catch{return null}}function Uh(e=""){var t;return`${(t=tC())!=null?t:X5}${e}`}var d_=typeof TextEncoder=="function"?new TextEncoder:null;function e0(e){return e?typeof e=="string"?d_?d_.encode(e).byteLength:new Blob([e]).size:"byteLength"in e&&typeof e.byteLength=="number"?e.byteLength:"size"in e&&typeof e.size=="number"?e.size:0:0}var rC=(e,t)=>{let r=new Uint8Array(0);return new TransformStream({transform(n,i){let o=new Uint8Array(r.length+n.byteLength);for(o.set(r),o.set(new Uint8Array(n),r.length),r=o;r.length>=e;){let a=r.slice(0,e);i.enqueue(a),t?.(a.byteLength),r=r.slice(e)}},flush(n){r.length>0&&(n.enqueue(r),t?.(r.byteLength))}})};function A_(e){return globalThis.ReadableStream&&e instanceof ReadableStream}function k_(e){return!!(A_(e)||__(e))}var nC=(e,t)=>{let r=new URL(e);for(let[n,i]of Object.entries(t.params))r.searchParams.set(n,i);return r.searchParams.set("vercel-blob-delegation",t.delegationToken),r.searchParams.set("vercel-blob-signature",t.signature),r.toString()};var C_=!1,p_,h_;try{((p_=y.env.DEBUG)!=null&&p_.includes("blob")||(h_=y.env.NEXT_PUBLIC_DEBUG)!=null&&h_.includes("blob"))&&(C_=!0)}catch{}function Hr(e,...t){C_&&console.debug(`vercel-blob: ${e}`,...t)}var m_,iC=(m_=globalThis.DOMException)!=null?m_:(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})(),oC=Object.prototype.toString,aC=e=>oC.call(e)==="[object Error]",sC=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]);function uC(e){return e&&aC(e)&&e.name==="TypeError"&&typeof e.message=="string"?e.message==="Load failed"?e.stack===void 0:sC.has(e.message):!1}var D_=typeof ns=="function",cC=D_&&S_,lC=64*1024,g_=async({input:e,init:t,onUploadProgress:r})=>{Hr("using fetch");let n;if(t.body)if(r){let o=await E_(t.body),a=0,s=rC(lC,u=>{a+=u,r(a)});n=o.pipeThrough(s)}else n=t.body;let i=S_&&n&&k_(n)?"half":void 0;return ns(e,{...t,...t.body?{body:n}:{},duplex:i})},x_=typeof XMLHttpRequest<"u",b_=async({input:e,init:t,onUploadProgress:r})=>{Hr("using xhr");let n=null;return t.body&&(A_(t.body)?n=await new Response(t.body).blob():n=t.body),new Promise((i,o)=>{let a=new XMLHttpRequest;if(a.open(t.method||"GET",e.toString(),!0),r&&a.upload.addEventListener("progress",s=>{s.lengthComputable&&r(s.loaded)}),a.onload=()=>{var s;if((s=t.signal)!=null&&s.aborted){o(new DOMException("The user aborted the request.","AbortError"));return}let u=new Headers;a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(d=>{let m=d.split(": "),f=m.shift(),h=m.join(": ");f&&u.set(f.toLowerCase(),h)});let l=new Response(a.response,{status:a.status,statusText:a.statusText,headers:u});i(l)},a.onerror=()=>{o(new TypeError("Network request failed"))},a.ontimeout=()=>{o(new TypeError("Network request timed out"))},a.onabort=()=>{o(new DOMException("The user aborted a request.","AbortError"))},t.headers&&new Headers(t.headers).forEach((u,c)=>{a.setRequestHeader(c,u)}),t.signal&&(t.signal.addEventListener("abort",()=>{a.abort()}),t.signal.aborted)){a.abort();return}a.send(n)})},fC=async({input:e,init:t,onUploadProgress:r})=>{if(r){if(cC)return g_({input:e,init:t,onUploadProgress:r});if(x_)return b_({input:e,init:t,onUploadProgress:r})}if(D_)return g_({input:e,init:t});if(x_)return b_({input:e,init:t});throw new Error("No request implementation available")},y_=950,dC=class extends ye{constructor(){super("Access denied, please provide a valid token for this resource.")}},pC=class extends ye{constructor(e){super(e??"OIDC is enabled for this project, but not for this token's environment.")}},hC=class extends ye{constructor(e){super(`Content type mismatch, ${e}.`)}},mC=class extends ye{constructor(e){super(`Pathname mismatch, ${e}. Check the pathname used in upload() or put() matches the one from the client token.`)}},gC=class extends ye{constructor(){super("Client token has expired.")}},xC=class extends ye{constructor(e){super(`File is too large, ${e}.`)}},bC=class extends ye{constructor(){super("This store does not exist.")}},yC=class extends ye{constructor(){super("This store has been suspended.")}},I_=class extends ye{constructor(){super("Unknown error, please visit https://vercel.com/help.")}},wC=class extends ye{constructor(){super("The requested blob does not exist")}},t0=class extends ye{constructor(){super("The blob service is currently not available. Please try again.")}},EC=class extends ye{constructor(e){super(`Too many requests please lower the number of concurrent requests ${e?` - try again in ${e} seconds`:""}.`),this.retryAfter=e??0}},_C=class extends ye{constructor(){super("The request was aborted.")}},vC=class extends ye{constructor(){super("Precondition failed: ETag mismatch.")}},SC=13;function AC(){let e=null;try{e=y.env.VERCEL_BLOB_API_VERSION_OVERRIDE||y.env.NEXT_PUBLIC_VERCEL_BLOB_API_VERSION_OVERRIDE}catch{}return`${e??SC}`}function kC(){try{let e=y.env.VERCEL_BLOB_RETRIES||"10";return parseInt(e,10)}catch{return 10}}function TC(e){let t=e.headers.get("retry-after");return new EC(t?parseInt(t,10):void 0)}async function CC(e){var t,r,n;let i,o;try{let s=await e.json();i=(r=(t=s.error)==null?void 0:t.code)!=null?r:"unknown_error",o=(n=s.error)==null?void 0:n.message}catch{i="unknown_error"}o?.includes("contentType")&&o.includes("is not allowed")&&(i="content_type_not_allowed"),o?.includes('"pathname"')&&o.includes("does not match the token payload")&&(i="client_token_pathname_mismatch"),o==="Token expired"&&(i="client_token_expired"),o?.includes("the file length cannot be greater than")&&(i="file_too_large"),o?.startsWith("OIDC is enabled for this project, but not for the")&&o.includes("environment.")&&(i="oidc_environment_not_allowed");let a;switch(i){case"store_suspended":a=new yC;break;case"forbidden":a=new dC;break;case"oidc_environment_not_allowed":a=new pC(o);break;case"content_type_not_allowed":a=new hC(o);break;case"client_token_pathname_mismatch":a=new mC(o);break;case"client_token_expired":a=new gC;break;case"file_too_large":a=new xC(o);break;case"not_found":a=new wC;break;case"client_token_not_allowed":a=new ye(o??"This operation is not available when using a client token. Use a read\u2013write or OIDC token on the server.");break;case"store_not_found":a=new bC;break;case"bad_request":a=new ye(o??"Bad request");break;case"service_unavailable":a=new t0;break;case"rate_limited":a=TC(e);break;case"precondition_failed":a=new vC;break;default:a=new I_;break}return{code:i,error:a}}async function mu(e,t,r){let n=AC(),i=await Q5(r),o=i.kind==="presigned"?void 0:i.token,a=DC(),s=Uh(e);r?.presignedUrlPayload&&(s=nC(s,r.presignedUrlPayload));let u=`${i.storeId}:${Date.now()}:${Math.random().toString(16).slice(2)}`,c=0,l=0,d=0,m=r?.onUploadProgress||IC();t.body&&m&&(l=e0(t.body)),r?.onUploadProgress&&r.onUploadProgress({loaded:0,total:l,percentage:0});let f=await(0,T_.default)(async h=>{let b;try{b=await fC({input:s,init:{...t,headers:{"x-api-blob-request-id":u,"x-vercel-blob-store-id":i.storeId,"x-api-blob-request-attempt":String(c),"x-api-version":n,...m?{"x-content-length":String(l)}:{},...o!==void 0?{authorization:`Bearer ${o}`}:{},...a,...t.headers}},onUploadProgress:r?.onUploadProgress?k=>{var T;let S=l!==0?l:k;d=k;let C=l>0?Number((k/S*100).toFixed(2)):0;C===100&&l>0||(T=r.onUploadProgress)==null||T.call(r,{loaded:k,total:S,percentage:C})}:void 0})}catch(k){if(k instanceof iC&&k.name==="AbortError"){h(new _C);return}if(uC(k))throw k;if(k instanceof TypeError){h(k);return}throw k}if(b.ok)return b;let{code:w,error:D}=await CC(b);if(w==="unknown_error"||w==="service_unavailable"||w==="internal_server_error")throw D;h(D)},{retries:kC(),onRetry:h=>{h instanceof Error&&Hr(`retrying API request to ${e}`,h.message),c=c+1}});if(!f)throw new I_;return r?.onUploadProgress&&r.onUploadProgress({loaded:d,total:d,percentage:100}),await f.json()}function DC(){let e={};try{"VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in y.env&&y.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API!==void 0?e["x-proxy-through-alternative-api"]=y.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API:"NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in y.env&&y.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API!==void 0&&(e["x-proxy-through-alternative-api"]=y.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API)}catch{}return e}function IC(){try{return y.env.VERCEL_BLOB_USE_X_CONTENT_LENGTH==="1"}catch{return!1}}var $h={jpeg:"image/jpeg",png:"image/png",webp:"image/webp",avif:"image/avif"};function NC(e){if(typeof e!="object"||e===null)throw new ye("optimizeImage must be an object, see usage");let{width:t,quality:r,format:n}=e;if(!Number.isInteger(t)||t<1||t>8192)throw new ye("optimizeImage.width must be an integer between 1 and 8192");if(r!==void 0&&(!Number.isInteger(r)||r<1||r>100))throw new ye("optimizeImage.quality must be an integer between 1 and 100");if(n!==void 0&&!(n in $h))throw new ye(`optimizeImage.format must be one of: ${Object.keys($h).join(", ")}`)}function RC(e){if(e&&e!=="application/octet-stream"&&!e.startsWith("image/"))throw new ye(`optimizeImage requires an image body, but the content type is "${e}"`)}function LC(e,t){var r;NC(t),e.set("width",String(t.width)),e.set("quality",String((r=t.quality)!=null?r:75)),t.format&&e.set("format",$h[t.format])}var Wo={cacheControlMaxAge:"x-cache-control-max-age",addRandomSuffix:"x-add-random-suffix",allowOverwrite:"x-allow-overwrite",contentType:"x-content-type",access:"x-vercel-blob-access",ifMatch:"x-if-match"};function gu(e,t){let r={};if(r[Wo.access]=t.access,e.includes("contentType")&&t.contentType&&(r[Wo.contentType]=t.contentType),e.includes("addRandomSuffix")&&t.addRandomSuffix!==void 0&&(r[Wo.addRandomSuffix]=t.addRandomSuffix?"1":"0"),e.includes("ifMatch")&&t.ifMatch){if(t.allowOverwrite===!1)throw new ye("ifMatch and allowOverwrite: false are contradictory. ifMatch is used for conditional overwrites, which requires allowOverwrite to be true.");r[Wo.ifMatch]=t.ifMatch,e.includes("allowOverwrite")&&t.allowOverwrite===void 0&&(r[Wo.allowOverwrite]="1")}return e.includes("allowOverwrite")&&t.allowOverwrite!==void 0&&(r[Wo.allowOverwrite]=t.allowOverwrite?"1":"0"),e.includes("cacheControlMaxAge")&&t.cacheControlMaxAge!==void 0&&(r[Wo.cacheControlMaxAge]=t.cacheControlMaxAge.toString()),r}async function xu({pathname:e,options:t,extraChecks:r,getToken:n}){if(!e)throw new ye("pathname is required");if(e.length>y_)throw new ye(`pathname is too long, maximum length is ${y_}`);for(let i of eC)if(e.includes(i))throw new ye(`pathname cannot contain "${i}", please encode it if needed`);if(!t)throw new ye("missing options, see usage");if(t.access!=="public"&&t.access!=="private")throw new ye('access must be "private" or "public", see https://vercel.com/docs/vercel-blob');return r&&r(t),n&&(t.token=await n(e,t)),t}function N_({allowedOptions:e,getToken:t,extraChecks:r}){return async(n,i,o)=>{let a=await xu({pathname:n,options:o,extraChecks:r,getToken:t}),s=gu(e,a);return Kh({uploadId:a.uploadId,key:a.key,pathname:n,headers:s,options:a,parts:i})}}async function Kh({uploadId:e,key:t,pathname:r,parts:n,headers:i,options:o}){let a=new URLSearchParams({pathname:r});try{let s=await mu(`/mpu?${a.toString()}`,{method:"POST",headers:{...i,"content-type":"application/json","x-mpu-action":"complete","x-mpu-upload-id":e,"x-mpu-key":encodeURIComponent(t)},body:JSON.stringify(n),signal:o.abortSignal},o);return Hr("mpu: complete",s),s}catch(s){throw s instanceof TypeError&&(s.message==="Failed to fetch"||s.message==="fetch failed")?new t0:s}}function R_({allowedOptions:e,getToken:t,extraChecks:r}){return async(n,i)=>{let o=await xu({pathname:n,options:i,extraChecks:r,getToken:t}),a=gu(e,o),s=await jh(n,a,o);return{key:s.key,uploadId:s.uploadId}}}async function jh(e,t,r){Hr("mpu: create","pathname:",e);let n=new URLSearchParams({pathname:e});try{let i=await mu(`/mpu?${n.toString()}`,{method:"POST",headers:{...t,"x-mpu-action":"create"},signal:r.abortSignal},r);return Hr("mpu: create",i),i}catch(i){throw i instanceof TypeError&&(i.message==="Failed to fetch"||i.message==="fetch failed")?new t0:i}}function M_({allowedOptions:e,getToken:t,extraChecks:r}){return async(n,i,o)=>{let a=await xu({pathname:n,options:o,extraChecks:r,getToken:t}),s=gu(e,a);if(Wh(i))throw new ye("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");return{etag:(await Vh({uploadId:a.uploadId,key:a.key,pathname:n,part:{blob:i,partNumber:a.partNumber},headers:s,options:a})).etag,partNumber:a.partNumber}}}async function Vh({uploadId:e,key:t,pathname:r,headers:n,options:i,internalAbortController:o=new AbortController,part:a}){var s,u,c;let l=new URLSearchParams({pathname:r}),d=mu(`/mpu?${l.toString()}`,{signal:o.signal,method:"POST",headers:{...n,"x-mpu-action":"upload","x-mpu-key":encodeURIComponent(t),"x-mpu-upload-id":e,"x-mpu-part-number":a.partNumber.toString()},body:a.blob},i);function m(){o.abort()}(s=i.abortSignal)!=null&&s.aborted?m():(u=i.abortSignal)==null||u.addEventListener("abort",m);let f=await d;return(c=i.abortSignal)==null||c.removeEventListener("abort",m),f}var O_=typeof window<"u"?6:8,qh=8*1024*1024,hu=O_*qh*2;function MC({uploadId:e,key:t,pathname:r,stream:n,headers:i,options:o,totalToLoad:a}){Hr("mpu: upload init","key:",t);let s=new AbortController;return new Promise((u,c)=>{let l=[],d=[],m=n.getReader(),f=0,h=!1,b=1,w=!1,D=0,k=!1,T=0,S=[],C=0,I,O={};o.onUploadProgress&&(I=(0,L_.default)(()=>{var N;let P=Object.values(O).reduce((M,F)=>M+F,0),E=a||P,R=a>0?Number(((P/a||P)*100).toFixed(2)):0;(N=o.onUploadProgress)==null||N.call(o,{loaded:P,total:E,percentage:R})},150)),W().catch(v);async function W(){for(Hr("mpu: upload read start","activeUploads:",f,"currentBytesInMemory:",`${on(D)}/${on(hu)}`,"bytesSent:",on(T)),h=!0;D<hu&&!w;)try{let{value:N,done:P}=await m.read();if(P){k=!0,Hr("mpu: upload read consumed the whole stream"),S.length>0?(l.push({partNumber:b++,blob:new Blob(S,{type:"application/octet-stream"})}),j()):f===0&&(m.releaseLock(),u(d)),h=!1;return}D+=N.byteLength;let E=0;for(;E<N.byteLength;){let R=qh-C,M=Math.min(E+R,N.byteLength),F=N.slice(E,M);S.push(F),C+=F.byteLength,E=M,C===qh&&(l.push({partNumber:b++,blob:new Blob(S,{type:"application/octet-stream"})}),S=[],C=0,j())}}catch(N){v(N)}Hr("mpu: upload read end","activeUploads:",f,"currentBytesInMemory:",`${on(D)}/${on(hu)}`,"bytesSent:",on(T)),h=!1}async function H(N){f++,Hr("mpu: upload send part start","partNumber:",N.partNumber,"size:",N.blob.size,"activeUploads:",f,"currentBytesInMemory:",`${on(D)}/${on(hu)}`,"bytesSent:",on(T));try{let P=o.onUploadProgress?R=>{O[N.partNumber]=R.loaded,I&&I()}:void 0,E=await Vh({uploadId:e,key:t,pathname:r,headers:i,options:{...o,onUploadProgress:P},internalAbortController:s,part:N});if(Hr("mpu: upload send part end","partNumber:",N.partNumber,"activeUploads",f,"currentBytesInMemory:",`${on(D)}/${on(hu)}`,"bytesSent:",on(T)),w)return;if(d.push({partNumber:N.partNumber,etag:E.etag}),D-=N.blob.size,f--,T+=N.blob.size,l.length>0&&j(),k){f===0&&(m.releaseLock(),u(d));return}h||W().catch(v)}catch(P){v(P)}}function j(){if(!w)for(Hr("send parts","activeUploads",f,"partsToUpload",l.length);f<O_&&l.length>0;){let N=l.shift();N&&H(N)}}function v(N){w||(w=!0,s.abort(),m.releaseLock(),N instanceof TypeError&&(N.message==="Failed to fetch"||N.message==="fetch failed")?c(new t0):c(N))}})}function F_({allowedOptions:e,getToken:t,extraChecks:r}){return async(n,i)=>{let o=await xu({pathname:n,options:i,extraChecks:r,getToken:t}),a=gu(e,o),s=await jh(n,a,o);return{key:s.key,uploadId:s.uploadId,async uploadPart(u,c){if(Wh(c))throw new ye("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");return{etag:(await Vh({uploadId:s.uploadId,key:s.key,pathname:n,part:{partNumber:u,blob:c},headers:a,options:o})).etag,partNumber:u}},async complete(u){return Kh({uploadId:s.uploadId,key:s.key,pathname:n,parts:u,headers:a,options:o})}}}}async function OC(e,t,r,n){Hr("mpu: init","pathname:",e,"headers:",r);let i={...n,onUploadProgress:void 0};if(n.maximumSizeInBytes!==void 0&&!k_(t)&&e0(t)>n.maximumSizeInBytes)throw new ye(`Body size of ${e0(t)} bytes exceeds the maximum allowed size of ${n.maximumSizeInBytes} bytes`);let o=await jh(e,r,i),a=e0(t),s=await E_(t),u=await MC({uploadId:o.uploadId,key:o.key,pathname:e,stream:s,headers:r,options:n,totalToLoad:a});return await Kh({uploadId:o.uploadId,key:o.key,pathname:e,parts:u,headers:r,options:i})}function r0({allowedOptions:e,getToken:t,getPresignedUrlPayload:r,extraChecks:n}){return async function(o,a,s){var u;if(!a)throw new ye("body is required");if(Wh(a))throw new ye("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");let c=await xu({pathname:o,options:s,extraChecks:n,getToken:t}),l=await r?.(o,c),d={...c,presignedUrlPayload:l},m=gu(e,c);if(c.optimizeImage){if(c.multipart===!0)throw new ye("optimizeImage cannot be combined with multipart uploads");RC((u=c.contentType)!=null?u:typeof Blob<"u"&&a instanceof Blob?a.type:void 0);let w=new URLSearchParams({pathname:o});LC(w,c.optimizeImage);let D=await mu(`/put-optimized?${w.toString()}`,{method:"POST",body:a,headers:m,signal:c.abortSignal},d);return{url:D.url,downloadUrl:D.downloadUrl,pathname:D.pathname,contentType:D.contentType,contentDisposition:D.contentDisposition,etag:D.etag}}if(c.multipart===!0)return OC(o,a,m,d);let f=c.onUploadProgress?(0,P_.default)(c.onUploadProgress,100):void 0,h=new URLSearchParams({pathname:o}),b=await mu(`/?${h.toString()}`,{method:"PUT",body:a,headers:m,signal:c.abortSignal},{...d,onUploadProgress:f});return{url:b.url,downloadUrl:b.downloadUrl,pathname:b.pathname,contentType:b.contentType,contentDisposition:b.contentDisposition,etag:b.etag}}}var yj=365*24*60*60;var wj=new TextEncoder;Wt();function bu(e){return function(r){if(!r.token.startsWith("vercel_blob_client_"))throw new ye(`${e} must be called with a client token`);if(r.addRandomSuffix!==void 0||r.allowOverwrite!==void 0||r.cacheControlMaxAge!==void 0)throw new ye(`${e} doesn't allow \`addRandomSuffix\`, \`cacheControlMaxAge\` or \`allowOverwrite\`. Configure these options at the server side when generating client tokens.`)}}var Wj=r0({allowedOptions:["contentType"],extraChecks:bu("client/`put`")}),Kj=R_({allowedOptions:["contentType"],extraChecks:bu("client/`createMultipartUpload`")}),jj=F_({allowedOptions:["contentType"],extraChecks:bu("client/`createMultipartUpload`")}),Vj=M_({allowedOptions:["contentType"],extraChecks:bu("client/`multipartUpload`")}),zj=N_({allowedOptions:["contentType"],extraChecks:bu("client/`completeMultipartUpload`")}),B_=r0({allowedOptions:["contentType"],extraChecks(e){if(e.handleUploadUrl===void 0)throw new ye("client/`upload` requires the 'handleUploadUrl' parameter");if(e.addRandomSuffix!==void 0||e.allowOverwrite!==void 0||e.cacheControlMaxAge!==void 0||e.ifMatch!==void 0)throw new ye("client/`upload` doesn't allow `addRandomSuffix`, `cacheControlMaxAge`, `allowOverwrite` or `ifMatch`. Configure these options at the server side when generating client tokens.")},async getToken(e,t){var r,n;return FC({handleUploadUrl:t.handleUploadUrl,pathname:e,clientPayload:(r=t.clientPayload)!=null?r:null,multipart:(n=t.multipart)!=null?n:!1,headers:t.headers})}}),Jj=r0({allowedOptions:["contentType"],extraChecks(e){if(e.handleUploadUrl===void 0)throw new ye("client/`upload` requires the 'handleUploadUrl' parameter");if(e.addRandomSuffix!==void 0||e.allowOverwrite!==void 0||e.cacheControlMaxAge!==void 0||e.ifMatch!==void 0)throw new ye("client/`uploadPresigned` doesn't allow `addRandomSuffix`, `cacheControlMaxAge`, `allowOverwrite` or `ifMatch`. Configure these options at the server side when generating presigned URLs.")},async getPresignedUrlPayload(e,t){var r,n;return PC({pathname:e,handleUploadUrl:t.handleUploadUrl,clientPayload:(r=t.clientPayload)!=null?r:null,multipart:(n=t.multipart)!=null?n:!1,headers:t.headers})}});var H_={generateClientToken:"blob.generate-client-token",generatePresignedUrl:"blob.generate-presigned-url",uploadCompleted:"blob.upload-completed"};async function FC(e){let{handleUploadUrl:t,pathname:r}=e,n=$_(t)?t:U_(t),i={type:H_.generateClientToken,payload:{pathname:r,clientPayload:e.clientPayload,multipart:e.multipart}},o=await ns(n,{method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!o.ok)throw new ye("Failed to retrieve the client token");try{let{clientToken:a}=await o.json();return a}catch{throw new ye("Failed to retrieve the client token")}}async function PC(e){let{handleUploadUrl:t,pathname:r}=e,n=$_(t)?t:U_(t),i={type:H_.generatePresignedUrl,payload:{pathname:r,clientPayload:e.clientPayload,multipart:e.multipart}},o=await ns(n,{method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!o.ok)throw new ye("Failed to retrieve the presigned URL");try{let{presignedUrlPayload:a}=await o.json();if(a)return a;throw new ye("Missing presignedUrlPayload")}catch(a){throw a instanceof ye?a:new ye("Failed to retrieve the presigned URL")}}function U_(e){return new URL(e,location.href).href}function $_(e){try{return!!new URL(e)}catch{return!1}}var BC=3*1024*1024;async function HC(e,t){let r=new TextEncoder().encode(e+`
106
+ `+t);return"csync-transfer/"+[...new Uint8Array(await crypto.subtle.digest("SHA-256",r))].map(i=>i.toString(16).padStart(2,"0")).join("")+"/"}function q_({fetch:e,origin:t,uploadFile:r=B_}){return async(n,i={})=>{let o=n instanceof Request?new Request(n,i):new Request(new URL(String(n),t),i);if(new URL(o.url).origin===t)return e(o);let a=o.method,s=o.headers.get("authorization")??"",u={"X-Csync-Target":o.url,"X-Csync-Method":a,Authorization:s};for(let l of["content-type","x-atlassian-token","accept"])o.headers.has(l)&&(u[l]=o.headers.get(l));let c=["GET","HEAD"].includes(a)?void 0:await o.arrayBuffer();if(c?.byteLength>BC){let l=await HC(s,o.url),d=l+crypto.randomUUID(),m=await r(d,new Blob([c],{type:o.headers.get("content-type")??"application/octet-stream"}),{access:"private",handleUploadUrl:t+"/api/blob-upload",multipart:!0,abortSignal:o.signal,clientPayload:JSON.stringify({target:o.url,authorization:s})});u["X-Csync-Upload"]=m.url,c=void 0}return e(t+"/api/confluence",{method:"POST",headers:u,body:c,signal:o.signal,credentials:"omit",redirect:"error"})}}var zh,Jh;function W_(e){zh=e,Jh=void 0}function is(e,t){return zh?zh(e,t):(Jh??=q_({fetch:globalThis.fetch.bind(globalThis),origin:globalThis.location.origin}),Jh(e,t))}p();var UC=!y.env.NO_COLOR&&y.env.TERM!=="dumb"&&!y.argv.includes("--no-color")&&(y.env.FORCE_COLOR==="0"?!1:y.env.FORCE_COLOR?!0:y.stdout.isTTY===!0),wi=(e,t)=>r=>UC?`\x1B[${e}m${r}\x1B[${t}m`:String(r),Ko=wi(1,22),we=wi(2,22),Bt=wi(31,39),Ur=wi(32,39),zt=wi(33,39),nV=wi(34,39),iV=wi(35,39),Re=wi(36,39),vn=wi(90,39);var yu=class extends Error{constructor(r,n,i,o){super(`Confluence API ${r} ${o}
107
+ ${n}
108
+ ${i}`);this.status=r;this.responseBody=i}status;responseBody},wu=class extends Error{constructor(r,n,i){super(`download ${r} ${n}
109
+ ${i}`);this.status=r}status};function os(e,t){let r=()=>"Basic "+_.Buffer.from(`${e.email}:${e.token}`).toString("base64");async function n(v,N,P){let E=t.requestTimeoutMs?AbortSignal.timeout(t.requestTimeoutMs):void 0;try{let R=await is(`${e.baseUrl}${v}`,{...N,...E?{signal:E}:{},headers:{Authorization:r(),"Content-Type":"application/json",Accept:"application/json",...N?.headers??{}}});if(!R.ok)throw new yu(R.status,v,await R.text(),R.statusText);return P?.(R.headers),R.status===204?null:await R.json()}catch(R){throw E?.aborted?new Error(`Confluence \uBA54\uD0C0\uB370\uC774\uD130 \uC751\uB2F5 \uB300\uAE30 \uC2DC\uAC04\uC774 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4 (${t.requestTimeoutMs/1e3}\uCD08). \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694. \uC694\uCCAD: ${v}`):R}}async function i(v,N=!1){let P=await is(`${e.baseUrl}/api/v2/pages/${v}${N?"?body-format=storage":""}`,{headers:{Authorization:r(),Accept:"application/json"}});if(P.status===404)return null;if(!P.ok)throw new Error(`Confluence API ${P.status} ${P.statusText}
110
+ /api/v2/pages/${v}
111
+ ${await P.text()}`);return P.json()}async function o(v){return(await a(v)).id}async function a(v){let P=(await n(`/api/v2/spaces?keys=${encodeURIComponent(v)}`)).results?.[0];if(!P)throw new Error(`Space key '${v}' \uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`);return{id:String(P.id),homepageId:P.homepageId?String(P.homepageId):void 0}}async function s(v,N){return(await n(`/rest/api/content/${v}/child/attachment?filename=${encodeURIComponent(N)}`))?.results?.[0]?.id??null}async function u(v,N,P){let E=re(P);for(let R=0;R<3;R++){let M=await s(v,N);await m(v);let F=M?`/rest/api/content/${v}/child/attachment/${M}/data`:`/rest/api/content/${v}/child/attachment`,$=new FormData;$.append("file",new Blob([E]),N),$.append("minorEdit","true");let X=await is(`${e.baseUrl}${F}`,{method:"POST",headers:{Authorization:r(),"X-Atlassian-Token":"nocheck"},body:$});if(X.ok)return;let ge=await X.text();if(X.status===500&&/UnexpectedRollbackException|rollback-only/i.test(ge)&&R<2){console.error(zt(` \u21BB \uCCA8\uBD80 \uD2B8\uB79C\uC7AD\uC158 \uB864\uBC31, \uC7AC\uC2DC\uB3C4 ${R+1}/2: ${N}`)),await new Promise(me=>setTimeout(me,1e3*2**R));continue}let ke=X.headers.get("atl-traceid")??X.headers.get("x-arequestid");throw new Error(`attachment ${X.status} ${X.statusText}
112
+ POST ${F}${ke?`
113
+ traceId: ${ke}`:""}
114
+ ${ge}`)}}async function c(v,N,P){let E=0;for(let R of N){if(!J(R.abs)){console.error(zt(` \u26A0 \uCCA8\uBD80 \uC5C6\uC74C: ${(0,K_.relative)(P,R.abs)}`));continue}try{await u(v,R.filename,R.abs),E++}catch(M){console.error(Bt(` \u2717 \uCCA8\uBD80 \uC5C5\uB85C\uB4DC \uC2E4\uD328 ${R.filename}`)+`
115
+ ${M.message}`)}}return E}let l=c;async function d(v){let N=await w(`/rest/api/content/${encodeURIComponent(v)}?expand=ancestors,space,version`);if(String(N.id)!==v||!["page","folder"].includes(N.type)||!N.space?.id||!Array.isArray(N.ancestors))throw new Error(`\uCF58\uD150\uCE20 \uC704\uCE58\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${v}`);let P=N.parentId??N.ancestors.at(-1)?.id;return{id:String(N.id),title:N.title,type:N.type,spaceId:String(N.space.id),...P?{parentId:String(P)}:{},ancestors:N.ancestors.map(E=>({id:String(E.id),title:E.title}))}}async function m(v){if(!t.scope)return;let N=await d(v);if(N.spaceId!==t.scope.spaceId||!t.scope.spaceOnly&&N.id!==t.scope.id&&!N.ancestors.some(P=>P.id===t.scope.id))throw new Error(`\uC120\uD0DD\uD55C \uC6D0\uACA9 \uC2A4\uCF54\uD504 \uBC16\uC785\uB2C8\uB2E4: #${v}`);return N}async function f(v,N,P,E,R=!1){let M=v[P];if(!M?.pageId)return;let F=M.hash!==E||t.force||R;if(!F&&!t.verify&&!M.pendingMove&&!t.scope)return;await m(M.pageId);let $=await i(M.pageId);h(M,$,N,P,F||!!M.pendingMove)}function h(v,N,P,E,R){if(!N)throw new Error(`\uC6D0\uACA9 \uD398\uC774\uC9C0 #${v.pageId}\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4: ${E}. \uC790\uB3D9 \uC7AC\uC0DD\uC131\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`);if(N.spaceId!==void 0&&String(N.spaceId)!==P)throw new Error(`\uD398\uC774\uC9C0 \uC2A4\uD398\uC774\uC2A4\uAC00 \uB2E4\uB985\uB2C8\uB2E4: ${E}`);if(R&&v.remoteParentId&&typeof N.parentId=="string"&&N.parentId!==v.remoteParentId)throw new Error(`\uC6D0\uACA9 \uC704\uCE58 \uCDA9\uB3CC: ${E} (\uAE30\uC900 \uBD80\uBAA8 #${v.remoteParentId}, \uD604\uC7AC #${N.parentId}) \u2014 pull\uB85C \uC6D0\uACA9 \uC704\uCE58\uB97C \uD655\uC778\uD558\uC138\uC694.`);if(v.remoteVersion===void 0){if(R)throw new Error(`\uC6D0\uACA9 \uBC84\uC804 \uAE30\uC900\uC774 \uC5C6\uC2B5\uB2C8\uB2E4: ${E}. \uB85C\uCEEC \uBCC0\uACBD\uC744 \uBCF4\uAD00\uD55C \uB4A4 pull\uB85C \uAE30\uC900\uC744 \uD655\uBCF4\uD558\uC138\uC694.`);return}if(N.version?.number!==v.remoteVersion)throw new Error(`\uC6D0\uACA9 \uBCC0\uACBD \uCDA9\uB3CC: ${E} (\uAE30\uC900 v${v.remoteVersion}, \uD604\uC7AC v${N.version?.number??"?"}) \u2014 pull\uB85C \uC6D0\uACA9 \uB0B4\uC6A9\uC744 \uD655\uC778\uD558\uC138\uC694.`)}async function b(v,N,P,E,R,M,F,$=!1){let X=v[P];if(X?.pageId){let me=X.hash!==M||t.force||$;if(!me&&!t.verify&&!X.pendingMove&&!t.scope)return"skipped";if(await m(X.pageId),X.pendingMove&&X.pageId===t.scope?.id)throw new Error("\uC2A4\uCF54\uD504 \uB8E8\uD2B8\uB294 \uC774\uB3D9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let oe=await i(X.pageId,!!X.pendingMove);if(h(X,oe,N,P,me||!!X.pendingMove),oe){let q=!1;if(X.pendingMove){if(String(oe.spaceId)!==N)throw new Error("\uC774\uB3D9 \uB300\uC0C1 \uD398\uC774\uC9C0\uC758 \uC2A4\uD398\uC774\uC2A4\uAC00 \uC124\uC815\uACFC \uB2E4\uB985\uB2C8\uB2E4.");if((oe.parentId??void 0)!==F){let Ue=F,K="append";if(!Ue){if(Ue=(await n(`/api/v2/spaces/${N}`)).homepageId,!Ue)throw new Error("\uCD5C\uC0C1\uC704 \uC774\uB3D9 \uAE30\uC900 \uD648\uD398\uC774\uC9C0\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC6D0\uACA9 \uC2A4\uCF54\uD504\uB97C \uB2E4\uC2DC \uC124\uC815\uD558\uC138\uC694.");let nt=await i(Ue);if(!nt||nt.parentId||String(nt.spaceId)!==N)throw new Error("\uCD5C\uC0C1\uC704 \uC774\uB3D9 \uAE30\uC900 \uD648\uD398\uC774\uC9C0\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");K="after"}if(Ue===X.pageId)throw new Error("\uD398\uC774\uC9C0\uB97C \uC790\uAE30 \uC790\uC2E0 \uC544\uB798\uB85C \uC774\uB3D9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let ve=oe.body?.storage?.value,se=oe.title;if(typeof ve!="string")throw new Error("\uC774\uB3D9 \uC804 \uC6D0\uACA9 \uBCF8\uBB38\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");if(F&&await m(F),await n(`/rest/api/content/${X.pageId}/move/${K}/${Ue}`,{method:"PUT"}),oe=await i(X.pageId,!0),oe?.body?.storage?.value!==ve||oe?.title!==se)throw new Error("\uC774\uB3D9 \uB3C4\uC911 \uC6D0\uACA9 \uBCF8\uBB38\xB7\uC81C\uBAA9\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBCF8\uBB38\uC744 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");if(!oe||(oe.parentId??void 0)!==F)throw new Error("\uC774\uB3D9 \uD6C4 \uBD80\uBAA8 \uC704\uCE58 \uAC80\uC99D\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC sync\uD558\uC138\uC694.");q=!0}}if(!me)return delete X.pendingMove,typeof oe.parentId=="string"&&(X.remoteParentId=oe.parentId),q&&oe.version?.number&&(X.remoteVersion=oe.version.number),q?"moved":"skipped";await m(X.pageId);let G=(oe.version?.number??1)+1;await n(`/api/v2/pages/${X.pageId}`,{method:"PUT",body:JSON.stringify({id:X.pageId,status:"current",title:E,body:{representation:"storage",value:R},version:{number:G,message:`sync from git: ${P}`}})});let ue=typeof oe.parentId=="string"?oe.parentId:X.remoteParentId;return v[P]={pageId:X.pageId,title:E,hash:M,remoteVersion:G,...ue?{remoteParentId:ue}:{}},"updated"}}if(t.scope&&!F)throw new Error("\uC2A4\uCF54\uD504 \uC548\uC758 \uBD80\uBAA8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");F&&await m(F);let ge={spaceId:N,status:"current",title:E,body:{representation:"storage",value:R}};F&&(ge.parentId=F);let ke=await n("/api/v2/pages",{method:"POST",body:JSON.stringify(ge)});return v[P]={pageId:ke.id,title:E,hash:M,remoteVersion:ke.version?.number??1,...F?{remoteParentId:F}:{}},"created"}async function w(v){return n(v)}async function D(v){let N=await w(`/rest/api/content/${v}?expand=body.export_view,body.storage,version`),P=N._links?.base,E=N._links?.webui;return{id:N.id,type:N.type??"page",title:N.title??v,html:N.body?.export_view?.value??"",storage:N.body?.storage?.value??"",url:P&&E?`${P}${E}`:void 0,updated:N.version?.when,...N.version?.number!==void 0?{version:N.version.number}:{}}}async function k(v,N){let P=[],E=`/rest/api/content/${v}/child/${N}?limit=100`;for(;E;){let R=await w(E);for(let F of R.results??[])P.push({id:String(F.id),title:F.title});let M=R._links?.next;E=M?M.startsWith("/")?M:`/${M}`:null}return P}let T=v=>k(v,"page"),S=v=>k(v,"folder");async function C(v){let N=[],P=`/rest/api/content/${v}/child/attachment?limit=100`;for(;P;){let E=await w(P);for(let M of E.results??[]){let F=M._links?.download;F&&N.push({filename:M.title,downloadPath:F})}let R=E._links?.next;P=R?R.startsWith("/")?R:`/${R}`:null}return N}async function I(v){let N=v.startsWith("http")?v:`${e.baseUrl}${v}`,P=await is(N,{headers:{Authorization:r()}});if(!P.ok)throw new wu(P.status,P.statusText,v);return _.Buffer.from(await P.arrayBuffer())}async function O(v){let N=await is(`${e.baseUrl}/rest/api/content/${v}`,{headers:{Authorization:r(),Accept:"application/json"}});if(N.status===404)return null;if(!N.ok)throw new Error(`Confluence API ${N.status} ${N.statusText}
116
+ /rest/api/content/${v}
117
+ ${await N.text()}`);return N.json()}async function W(v,N,P,E){let R=`type = folder AND space = ${JSON.stringify(N)} AND title = ${JSON.stringify(P)}`,M=`/rest/api/content/search?cql=${encodeURIComponent(R)}&limit=100`,F=new Set,$=new Set,X;for(;M;){let ge=await w(M);for(let me of ge.results??[]){if(me.type!=="folder"||me.title!==P)continue;let oe=await w(`/rest/api/content/${encodeURIComponent(me.id)}?expand=ancestors,space`);if(!Array.isArray(oe.ancestors)||!oe.space?.id)throw new Error(`\uD3F4\uB354 \uC704\uCE58 \uBA54\uD0C0\uB370\uC774\uD130\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${me.id}`);if(oe.type!=="folder"||String(oe.space.id)!==v||oe.title!==P)continue;let q=oe.ancestors.at(-1)?.id;!E&&q&&X===void 0&&(X=String((await n(`/api/v2/spaces/${v}`)).homepageId??"")),q===E||!E&&q===X?F.add(String(oe.id)):$.add(q??"ROOT")}let ke=ge._links?.next;M=ke?new URL(ke,"https://pagination.invalid").pathname.replace(/^\/wiki(?=\/rest\/)/,"")+new URL(ke,"https://pagination.invalid").search:null}if(F.size>1)throw new Error(`\uAC19\uC740 \uC704\uCE58\uC5D0 \uB3D9\uBA85 \uD3F4\uB354\uAC00 \uC5EC\uB7EC \uAC1C \uC788\uC2B5\uB2C8\uB2E4: ${P}`);if(!F.size&&$.size)throw new Error(`\uB3D9\uBA85 \uD3F4\uB354 '${P}'\uAC00 \uB2E4\uB978 \uC704\uCE58\uC5D0 \uC788\uC2B5\uB2C8\uB2E4 (\uD604\uC7AC \uBD80\uBAA8: ${[...$].join(", ")}, \uC694\uCCAD \uBD80\uBAA8: ${E??"ROOT/\uD648\uD398\uC774\uC9C0"}). \uBD80\uBAA8 \uC124\uC815 \uB610\uB294 \uD3F4\uB354 \uAD6C\uC870\uB97C \uD655\uC778\uD558\uC138\uC694.`);return[...F][0]??null}async function H(v,N,P){if(t.scope&&!P)throw new Error("\uC2A4\uCF54\uD504 \uC548\uC758 \uBD80\uBAA8\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.");P&&await m(P);let E={spaceId:v,title:N};return P&&(E.parentId=P),(await n("/api/v2/folders",{method:"POST",body:JSON.stringify(E)})).id}async function j(v,N,P,E,R){if(E=E?.trim()||void 0,E&&await m(E),R&&await m(R),R){let F;try{F=await n(`/rest/api/content/${encodeURIComponent(R)}?expand=ancestors,space`)}catch($){if(!($ instanceof yu)||$.status!==404)throw $}if(F){if(!Array.isArray(F.ancestors)||!F.space?.id)throw new Error(`\uD3F4\uB354 \uC704\uCE58 \uBA54\uD0C0\uB370\uC774\uD130\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${R}`);let $=F.ancestors.at(-1)?.id,X=!E&&$?String((await n(`/api/v2/spaces/${v}`)).homepageId??""):void 0;if(F.type!=="folder"||String(F.space.id)!==v||F.title!==P||!($===E||!E&&$===X))throw new Error(`\uB9E4\uD551 \uD3F4\uB354 #${R}\uC758 \uC2A4\uD398\uC774\uC2A4\xB7\uC81C\uBAA9\xB7\uBD80\uBAA8\uAC00 '${P}'\uC758 \uC694\uCCAD \uC704\uCE58\uC640 \uB2E4\uB985\uB2C8\uB2E4.`);return{id:R,created:!1}}throw new Error(`\uB9E4\uD551 \uD3F4\uB354 #${R}\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC790\uB3D9 \uC7AC\uC0DD\uC131\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`)}let M=await W(v,N,P,E);if(M)return{id:M,created:!1};try{return{id:await H(v,P,E),created:!0}}catch(F){if(!(F instanceof yu&&(F.status===409||F.status===400&&/folder exists with the same title/i.test(F.responseBody))))throw F;let X=await W(v,N,P,E);if(X)return{id:X,created:!1};throw F}}return{api:n,getContentInfo:d,assertInScope:m,getPageOrNull:i,getSpaceId:o,getSpaceInfo:a,uploadImages:l,uploadAttachments:c,upsertPage:b,checkPage:f,getNode:D,getChildPages:T,getChildFolders:S,listAttachments:C,downloadAttachment:I,getContentOrNull:O,findFolder:W,createFolder:H,upsertFolder:j}}p();qe();var Dt=de(je(),1),X_=de(jo(),1);function Ht(e,t){let r=(0,Dt.relative)(e,t);return!(0,Dt.isAbsolute)(r)&&r!==".."&&!r.startsWith(`..${y.platform==="win32"?"\\":"/"}`)}function Yh(e){for(let t=(0,Dt.resolve)(e);;t=(0,Dt.dirname)(t)){if(Up(t))return t;if((0,Dt.dirname)(t)===t)return}}function Jn(e){if(e)return(0,Dt.resolve)(e);if(y.env.CONFLUENCE_SYNC_BASE)return(0,Dt.resolve)(y.env.CONFLUENCE_SYNC_BASE);let t=Yh(y.cwd());if(t)return t;let r=(0,Dt.join)(y.cwd(),".env"),n=J(r)?(0,X_.parse)(re(r)).CONFLUENCE_SYNC_BASE:void 0;return n?(0,Dt.resolve)(n):void 0}function ut(e){let t=Oo(e);if(!J(t))return{version:1};let r=JSON.parse(re(t,"utf8"));if(!r||![1,2].includes(r.version)||r.syncPaths!==void 0&&(!Array.isArray(r.syncPaths)||!r.syncPaths.length||r.syncPaths.some(n=>typeof n!="string"||!n))||r.root!==void 0&&(!r.root||typeof r.root.id!="string"||!r.root.id||!["page","folder"].includes(r.root.type)||typeof r.root.baseUrl!="string"||typeof r.root.spaceKey!="string"))throw new Error(`\uC798\uBABB\uB41C \uC791\uC5C5\uACF5\uAC04 \uC124\uC815: ${t}`);r.scope?.id&&(r.remoteRoot=r.scope,delete r.scope);for(let n of r.syncPaths??[])if(as(e,n)!==n)throw new Error(`\uAD00\uB9AC \uBC94\uC704\uB294 \uC815\uADDC\uD654\uB41C \uC0C1\uB300 \uACBD\uB85C\uC5EC\uC57C \uD569\uB2C8\uB2E4: ${n}`);if(r.scopeCheckRequired!==void 0&&typeof r.scopeCheckRequired!="boolean")throw new Error("\uC798\uBABB\uB41C \uC2A4\uCF54\uD504 \uAC80\uC99D \uC124\uC815\uC785\uB2C8\uB2E4.");if(r.connection&&(typeof r.connection.baseUrl!="string"||typeof r.connection.spaceKey!="string"))throw new Error("\uC798\uBABB\uB41C \uC5F0\uACB0 \uC124\uC815\uC785\uB2C8\uB2E4.");if(r.scope&&(!["file","folder"].includes(r.scope.type)||typeof r.scope.path!="string"||as(e,r.scope.path)!==r.scope.path))throw new Error("\uB85C\uCEEC \uC2A4\uCF54\uD504\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uAE30\uC900 \uD3F4\uB354 \uC548\uC758 \uD30C\uC77C\xB7\uD3F4\uB354\uB97C \uC9C0\uC815\uD558\uC138\uC694.");if(r.version===2&&(!r.remoteRoot||typeof r.remoteRoot.id!="string"||!r.remoteRoot.id||!["page","folder"].includes(r.remoteRoot.type)||typeof r.remoteRoot.path!="string"||!r.remoteRoot.path.startsWith("/")||!r.connection?.baseUrl||!r.connection.spaceKey||!r.connection.spaceId||!r.connection.homepageId))throw new Error("\uC2A4\uD398\uC774\uC2A4 \uC5F0\uACB0\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. csync init --connect\uB85C \uB2E4\uC2DC \uC5F0\uACB0\uD558\uC138\uC694.");return delete r.scope,delete r.syncPaths,r}function Zh(e,t){let r=Oo(e);Ie((0,Dt.dirname)(r),{recursive:!0}),rt(r,JSON.stringify(t,null,2)+`
118
+ `)}function as(e,t){let r=(0,Dt.resolve)(e,t);if(!Ht(e,r))throw new Error(`\uAD00\uB9AC \uBC94\uC704\uAC00 \uC791\uC5C5\uACF5\uAC04 \uBC16\uC785\uB2C8\uB2E4: ${t}`);let n=r;for(;!J(n)&&(0,Dt.dirname)(n)!==n;)n=(0,Dt.dirname)(n);if(J(e)&&!Ht(ot(e),ot(n)))throw new Error(`\uAD00\uB9AC \uBC94\uC704\uAC00 \uC791\uC5C5\uACF5\uAC04 \uBC16\uC785\uB2C8\uB2E4: ${t}`);return(0,Dt.relative)(e,r).split("\\").join("/")||"."}function hr(e,t){return t.version===2&&!!t.remoteRoot&&!!t.connection}function Ut(e){if(e.version!==2||!e.remoteRoot||!e.connection)throw new Error("\uC2A4\uD398\uC774\uC2A4 \uC5F0\uACB0\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. csync init --connect\uB85C \uAE30\uC900 \uD3F4\uB354\uB97C \uC5F0\uACB0\uD558\uAC70\uB098 \uCD5C\uCD08 Pull\uC744 \uC2E4\uD589\uD558\uC138\uC694.");return e.remoteRoot}function Gn(e,t){let r=e.connection;if(r&&(r.baseUrl.replace(/\/$/,"")!==t.baseUrl?.replace(/\/$/,"")||r.spaceKey!==t.spaceKey))throw new Error("\uC791\uC5C5\uACF5\uAC04\uC758 Confluence \uC0AC\uC774\uD2B8\xB7\uC2A4\uD398\uC774\uC2A4\uAC00 \uD604\uC7AC \uC124\uC815\uACFC \uB2E4\uB985\uB2C8\uB2E4.")}function It(e,t){for(let r=(0,Dt.dirname)((0,Dt.resolve)(e,t));r!==e&&Ht(e,r);r=(0,Dt.dirname)(r))if(Up(r))return!0;return!1}function _u(e){if(!e.baseUrl||!e.email||!e.token||!e.spaceKey)throw new Error("\uC0AC\uC774\uD2B8\xB7\uACC4\uC815\xB7API \uD1A0\uD070\xB7\uC2A4\uD398\uC774\uC2A4 \uC124\uC815\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.");let t=new URL(e.baseUrl);if(t.protocol!=="https:"||t.username||t.password||t.search||t.hash)throw new Error("Confluence BASE_URL\uC740 \uC778\uC99D\uC815\uBCF4\xB7\uCFFC\uB9AC\uAC00 \uC5C6\uB294 HTTPS \uC8FC\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4.");return os({baseUrl:e.baseUrl,email:e.email,token:e.token},{force:!1,verify:!1,requestTimeoutMs:2e4})}async function i0(e,t){if(!J(e)||!gt(e).isDirectory())throw new Error("\uAE30\uC900 \uD3F4\uB354\uB294 \uC874\uC7AC\uD558\uB294 \uD3F4\uB354\uC5EC\uC57C \uD569\uB2C8\uB2E4.");let r=ut(e);if(r.connection&&Gn(r,t),r.version===2&&r.connection?.spaceId&&r.connection.homepageId&&r.remoteRoot){let s={version:2,connection:r.connection,remoteRoot:r.remoteRoot};return Zh(e,s),s}let n=_u(t),i=await n.getSpaceInfo(t.spaceKey);if(!i.homepageId)throw new Error("\uC2A4\uD398\uC774\uC2A4 \uD648\uD398\uC774\uC9C0\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let o=lr(Pt(e))["README.md"];if(o&&o.pageId!==i.homepageId)throw new Error("\uB8E8\uD2B8 README\uAC00 \uB2E4\uB978 \uC6D0\uACA9 \uD398\uC774\uC9C0\uC5D0 \uC5F0\uACB0\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC2A4\uD398\uC774\uC2A4 \uC804\uCCB4\uB97C \uC704\uD55C \uBCC4\uB3C4 \uAE30\uC900 \uD3F4\uB354\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.");let a={version:2,connection:{baseUrl:t.baseUrl,spaceKey:t.spaceKey,spaceId:i.id,homepageId:i.homepageId},remoteRoot:{id:i.homepageId,type:"page",path:"/"}};return Zh(e,a),a}async function o0(e,t){let r=Ut(t),n=t.connection,i=await e.getSpaceInfo(n.spaceKey);if(i.id!==n.spaceId||i.homepageId!==n.homepageId)throw new Error("\uC2A4\uD398\uC774\uC2A4 \uC5F0\uACB0 \uAE30\uC900\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC124\uC815\uD558\uC138\uC694.");let o=await e.getContentInfo(r.id);if(o.spaceId!==i.id||o.type!==r.type)throw new Error("\uC2A4\uD398\uC774\uC2A4 \uB8E8\uD2B8 \uC5F0\uACB0\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");return i.id}p();Wt();qe();var a0=de(je(),1);var Y_=e=>$e("sha256").update(e).digest("hex");function Z_(e,t){if(!/^[a-f0-9]{64}$/.test(t))throw new Error("\uBE44\uAD50 \uAE30\uC900 \uC2DD\uBCC4\uC790\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");Oo(e);let r=(0,a0.join)(e,".csync/objects");try{if(!Rt(r).isDirectory())throw new Error("\uBE44\uAD50 \uAE30\uC900 \uD3F4\uB354\uB294 \uC77C\uBC18 \uD3F4\uB354\uC5EC\uC57C \uD569\uB2C8\uB2E4.")}catch(i){if(i.code!=="ENOENT")throw i}let n=(0,a0.join)(r,t+".md");try{if(!Rt(n).isFile())throw new Error("\uBE44\uAD50 \uAE30\uC900\uC740 \uC77C\uBC18 \uD30C\uC77C\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.")}catch(i){if(i.code!=="ENOENT")throw i}return n}function ss(e,t){let r=Y_(t),n=Z_(e,r);if(Ie((0,a0.join)(e,".csync/objects"),{recursive:!0}),J(n)||rt(n,t,{flag:"wx",mode:384}),re(n,"utf8")!==t)throw new Error("\uC800\uC7A5\uB41C \uBE44\uAD50 \uAE30\uC900\uC758 \uB0B4\uC6A9\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");return r}function Q_(e,t){let r=re(Z_(e,t),"utf8");if(Y_(r)!==t)throw new Error("\uC800\uC7A5\uB41C \uBE44\uAD50 \uAE30\uC900\uC774 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");return r}p();Wt();qe();var e3=de(je(),1);function Vo(e,t,r){let n=$e("sha256").update(re((0,e3.resolve)(e,t)));for(let i of[...r.attachments].sort((o,a)=>o.filename.localeCompare(a.filename)))n.update("\0"+i.filename+"\0"),n.update($e("sha256").update(re(i.abs)).digest());return n.digest("hex")}p();p();qe();var ct=de(je(),1),f3=de(jo(),1);p();qe();var l3=de(c3(),1);function $t(e,t){let r=(0,l3.default)(),n=!1,i=Yy(e);return J(i)&&(r.add(re(i,"utf8")),n=!0),t.length&&(r.add(t),n=!0),{ignores:o=>n&&r.ignores(o),active:n}}var ls=e=>e.normalize("NFC").toLowerCase(),fs=e=>e.split("\\").join("/"),ED=e=>{try{return decodeURIComponent(e)}catch{return e}};function l0(e,t){let r=ot(e);return[...new Set(t.map(n=>{let i=ot((0,ct.resolve)(n));if(!gt(i).isDirectory()||(0,ct.dirname)(i)===i)throw new Error("\uCC38\uC870 \uBB38\uC11C \uD3F4\uB354\uB97C \uD655\uC778\uD558\uC138\uC694: "+n);let o=fs((0,ct.relative)(r,i));if(o&&o!==".."&&!o.startsWith("../")&&!(0,ct.isAbsolute)(o))throw new Error("\uCC38\uC870 \uD3F4\uB354\uB294 \uC5C5\uB85C\uB4DC \uAE30\uC900 \uD3F4\uB354 \uBC16\uC5D0 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4: "+n);return i}))].filter(n=>n!==r)}function d3(e,t,r,n){let i=t.map(u=>({root:e,rel:u,local:!0})),o=n?.replace(/\/$/,"");for(let u of l0(e,r)){let c=(0,ct.join)(u,".env"),l=J(c)?(0,f3.parse)(re(c)).CONFLUENCE_BASE_URL?.replace(/\/$/,""):void 0;if(l&&l!==o)throw new Error("\uCC38\uC870 \uD3F4\uB354\uC758 Confluence \uC11C\uBC84\uAC00 \uD604\uC7AC \uC124\uC815\uACFC \uB2E4\uB985\uB2C8\uB2E4: "+u);let d={},m=Pt(u);if(J(m)&&(d=JSON.parse(re(m,"utf8")),!d||typeof d!="object"||Array.isArray(d)||Object.values(d).some(h=>!h||typeof h.pageId!="string")))throw new Error("\uCC38\uC870 \uD398\uC774\uC9C0 \uB9E4\uD551\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: "+m);let f=$t(u,[]);for(let h of cr(u)){let b=fs((0,ct.relative)(ot(e),h));if(b!==".."&&!b.startsWith("../")&&!(0,ct.isAbsolute)(b))continue;let w=fs((0,ct.relative)(u,h));f.ignores(w)||i.push({root:u,rel:w,local:!1,pageId:d[w]?.pageId})}}let a=[...new Map(i.map(u=>[ot((0,ct.join)(u.root,u.rel)),u])).values()];function s(u,c,l){let d=ED(c).replace(/\.md$/i,"")+".md",m=l?d:fs((0,ct.relative)(e,(0,ct.resolve)(e,(0,ct.dirname)(u),d))),f=a.filter(b=>b.local&&ls(b.rel)===ls(m));if(f.length)return f;let h=a.filter(b=>!b.local&&ls(b.rel)===ls(d));return h.length?h:a.filter(b=>ls((0,ct.basename)(b.rel))===ls((0,ct.basename)(fs(d))))}return{localTarget(u,c,l){let d=s(u,c,l);return d.length===1&&d[0].local?d[0].rel:null},resolve(u,c,l,d,m=()=>{}){let f=s(u,c,l);if(f.length!==1)return d(f.length?`\uC911\uBCF5 \uBB38\uC11C \uB9C1\uD06C: ${c} \u2192 ${f.map(w=>(0,ct.join)(w.root,w.rel)).join(", ")}`:`\uB300\uC0C1 \uC5C6\uB294 \uBB38\uC11C \uB9C1\uD06C: ${c}`),null;let h=f[0];return h.local?fs((0,ct.relative)((0,ct.dirname)(u),h.rel)):!h.pageId||!/^\d+$/.test(h.pageId)?(d(`\uAC8C\uC2DC \uB9E4\uD551 \uC5C6\uB294 \uBB38\uC11C \uB9C1\uD06C: ${c} \u2192 ${(0,ct.join)(h.root,h.rel)}`),null):!o||!/^https?:\/\//i.test(o)?(d(`\uCC38\uC870 \uB9C1\uD06C\uC5D0 CONFLUENCE_BASE_URL\uC774 \uD544\uC694\uD569\uB2C8\uB2E4: ${c}`),null):(m(`${c} \u2192 pageId ${h.pageId} (${(0,ct.join)(h.root,h.rel)})`),`${new URL(o).hostname==="api.atlassian.com"?"/wiki":o}/pages/viewpage.action?pageId=${encodeURIComponent(h.pageId)}`)}}}var p3=de(je(),1);function vi(e,t,r){let{titles:n,anchors:i,docs:o}=Wy(t,e),a=Pa(t,Fa(e).map(l=>(0,p3.relative)(e,l))),s=r?d3(r.referenceBase??e,t,r.referenceRoots,r.baseUrl):null,u=Ky(o,a,s?.localTarget);return{titles:n,docs:o,render:(l,d,m,f=!1)=>{let h=new Set,b=new Set,w=S=>b.add(S),D=S=>h.add(S),k=hl(l,a);return{...Uy(d,l,n,e,{legacyCallouts:f,resolveLink:(S,C)=>!s||C||a.assets[S.toLowerCase()]?k(S,C):s.resolve(l,S,!0,D,w),rewriteHref:s?S=>{if(/^[a-z][a-z0-9+.-]*:|^\/\//i.test(S))return S;let C=S.indexOf("#"),I=C<0?S:S.slice(0,C);if(!/\.md$/i.test(I))return S;let O=s.resolve(l,I,!1,D,w);return O?O+(C<0?"":S.slice(C)):S}:void 0,anchorIndex:i,title:m,anchorNames:u[l],bodySlugs:o[l]?.bodySlugs}),linkWarnings:[...h],referenceLinks:[...b]}}}}qe();var Q=de(je(),1);p();Wt();qe();var Sn=de(je(),1);p();qe();var f0=de(je(),1),h3=de(jo(),1);function Si(e){let t=i=>J((0,f0.join)(i,".env"))?(0,h3.parse)(re((0,f0.join)(i,".env"))):{},r=e&&J((0,f0.join)(e,".env"))?e:y.cwd(),n={...t(r),...y.env};return{baseUrl:n.CONFLUENCE_BASE_URL,email:n.CONFLUENCE_EMAIL,token:n.CONFLUENCE_API_TOKEN,spaceKey:n.CONFLUENCE_SPACE_KEY}}function d0(e){let t=[["CONFLUENCE_BASE_URL",e.baseUrl],["CONFLUENCE_EMAIL",e.email],["CONFLUENCE_API_TOKEN",e.token],["CONFLUENCE_SPACE_KEY",e.spaceKey]].filter(([,r])=>!r).map(([r])=>r);t.length&&(console.error(Bt(`\uD658\uACBD\uBCC0\uC218 \uB204\uB77D: ${t.join(", ")}`)+`
119
+ ${Re("confluence-sync init")} \uC73C\uB85C .env \uB97C \uB9CC\uB4E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`),y.exit(1))}var am=12e4,p0=100,m3=20,g3=new Set(["unchanged","changed","unavailable","unknown","new"]),h0=e=>$e("sha256").update(JSON.stringify(e)).digest("hex");function x3(e){Pt(e);let t=(0,Sn.join)(e,wn,"remote.json");if(J(t)&&(!Rt(t).isFile()||Rt(t).isSymbolicLink()))throw new Error("\uC6D0\uACA9 \uC870\uD68C \uCE90\uC2DC\uB294 \uC77C\uBC18 \uD30C\uC77C\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.");return t}function b3(e,t,r={}){let n=ot.native?.(e)??ot(e),i=ut(n),o=Ut(i);Gn(i,t);let a=lr(r.mappingFile??Pt(n)),s=$t(n,[]),u=Object.entries(a).filter(([w])=>hr(w.replace(/\/$/,""),i)&&!s.ignores(w)&&!It(n,w)),c=u.filter(([w,D])=>D.type!=="folder"&&/\.md$/i.test(w)).sort(([w],[D])=>w.localeCompare(D));if(c.some(([,w])=>!/^\d+$/.test(w.pageId)))throw new Error("\uB9E4\uD551\uC758 \uD398\uC774\uC9C0 ID\uAC00 \uC22B\uC790\uAC00 \uC544\uB2D9\uB2C8\uB2E4. \uB9E4\uD551\uC744 \uD655\uC778\uD558\uC138\uC694.");let l=Mo(Object.keys(a).filter(w=>/\.md$/i.test(w))),d=new Map(c.map(([w])=>{let D=Vi(w,l);return[w,w==="README.md"&&a[w].pageId===o.id?void 0:a[w].remoteParentId??(D?a[D]?.pageId:o.id)]})),m=h0(["discovery-v2",n,i,t.baseUrl,t.spaceKey,h0([t.email,t.token]),c,[...d],u.filter(([,w])=>w.type==="folder")]),f=h0([n,i,t.baseUrl,t.spaceKey,h0([t.email,t.token])]),h=x3(n),b=Date.now();return{base:n,workspace:i,root:o,mapping:a,pages:c,scoped:u,expectedParents:d,key:m,path:h,now:b,binding:f}}function om(e,t=!1){try{let r=JSON.parse(re(e.path,"utf8")),n=e.now-Date.parse(r?.checkedAt);if(r?.version!==1||r.key!==e.key||n<0||!Number.isFinite(n)||!t&&n>=am||!Array.isArray(r.items)||r.folders!==void 0&&(!Array.isArray(r.folders)||r.folders.some(o=>!o||typeof o.path!="string"||!o.path.endsWith("/")||!/^\d+$/.test(o.pageId)||typeof o.title!="string"||!Ht(e.base,(0,Sn.resolve)(e.base,o.path)))))return null;let i=new Set;for(let o of r.items){if(!o||typeof o.path!="string"||!Ht(e.base,(0,Sn.resolve)(e.base,o.path))||!/\.md$/i.test(o.path)||!/^\d+$/.test(o.pageId)||i.has(o.pageId)||!g3.has(o.state)||!Array.isArray(o.reasons)||o.reasons.some(a=>typeof a!="string"))return null;i.add(o.pageId)}return e.pages.some(([,o])=>!i.has(o.pageId))?null:r}catch(r){if(r.code==="ENOENT"||r instanceof SyntaxError)return null;throw r}}function y3(e,t){let r=b3(e,t),n=om(r,!0);if(n)return n;let i;try{i=JSON.parse(re(r.path,"utf8"))}catch(a){if(a.code==="ENOENT"||a instanceof SyntaxError)return null;throw a}if(i?.binding!==r.binding||!om({...r,key:i.key},!0))return null;let o=new Map(r.pages.map(([a,s])=>[s.pageId,{path:a,entry:s}]));return{...i,key:r.key,items:i.items.map(a=>{let s=o.get(a.pageId);if(!s)return a;let{path:u,entry:c}=s,l=[];if(a.state==="unavailable")return{...a,path:u,baselineVersion:c.remoteVersion};if(!c.remoteVersion||!a.remoteVersion||a.remoteVersion<c.remoteVersion)return{...a,path:u,baselineVersion:c.remoteVersion,state:"unknown",reasons:["\uC6D0\uACA9 \uBC84\uC804 \uAE30\uC900\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. Fetch\uB85C \uAC31\uC2E0\uD558\uC138\uC694."]};a.remoteVersion!==c.remoteVersion&&l.push(`\uBC84\uC804 v${c.remoteVersion} \u2192 v${a.remoteVersion}`),c.title&&a.title&&c.title!==a.title&&l.push("\uC81C\uBAA9 \uBCC0\uACBD");let d=r.expectedParents.get(u);return d&&a.parentId&&d!==a.parentId&&l.push("\uC6D0\uACA9 \uBD80\uBAA8 \uC704\uCE58 \uBCC0\uACBD"),{...a,path:u,baselineVersion:c.remoteVersion,state:l.length?"changed":"unchanged",reasons:l}})}}async function sm(e,t,r={}){let n=b3(e,t,r),{base:i,workspace:o,pages:a,scoped:s,key:u,path:c,now:l,expectedParents:d,binding:m}=n,f=r.refresh?null:om(n);if(f)return{snapshot:f,cached:!0,requests:0};let h=_u({...t,baseUrl:t.baseUrl?.replace(/\/$/,"")}),b=new Map,w=0,D=new URLSearchParams({"space-id":o.connection.spaceId,status:"current",limit:String(p0)}),k="",T=new Set;do{if(w>=m3)throw new Error("\uC6D0\uACA9 \uC870\uD68C\uAC00 \uCD5C\uB300 20\uD68C\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. \uAE30\uC874 \uCE90\uC2DC\uB294 \uC720\uC9C0\uD569\uB2C8\uB2E4.");yn(`\uC2A4\uD398\uC774\uC2A4 \uC6D0\uACA9 \uBA54\uD0C0\uB370\uC774\uD130 \uD655\uC778 \xB7 ${b.size}\uAC1C \uBC1C\uACAC`);let E=new URLSearchParams(D);k&&E.set("cursor",k);let R="";w++;let M=await h.api("/api/v2/pages?"+E,void 0,$=>{R=$.get("link")??""});if(!M||!Array.isArray(M.results))throw new Error("\uC6D0\uACA9 \uD398\uC774\uC9C0 \uBAA9\uB85D \uC751\uB2F5\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");for(let $ of M.results){if(!$||!/^\d+$/.test(String($.id))||$.parentId!=null&&!/^\d+$/.test(String($.parentId))||String($.spaceId)!==o.connection.spaceId||b.has(String($.id)))throw new Error("\uC6D0\uACA9 \uD398\uC774\uC9C0 \uBAA9\uB85D\uC758 ID\xB7\uC2A4\uD398\uC774\uC2A4 \uB610\uB294 \uC911\uBCF5 \uC751\uB2F5\uC744 \uD655\uC778\uD558\uC138\uC694.");b.set(String($.id),$)}let F=M._links?.next||R.split(",").find($=>/rel\s*=\s*"?next"?/i.test($))?.match(/<([^>]+)>/)?.[1];if(k="",F){let $=new URL(F,t.baseUrl.replace(/\/$/,"")+"/api/v2/pages");if($.origin!==new URL(t.baseUrl).origin||!/\/api\/v2\/pages$/.test($.pathname)||!$.searchParams.get("cursor"))throw new Error("\uC6D0\uACA9 \uD398\uC774\uC9C0 \uBAA9\uB85D\uC758 \uB2E4\uC74C \uD398\uC774\uC9C0 \uC8FC\uC18C\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");if(k=$.searchParams.get("cursor"),T.has(k))throw new Error("\uC6D0\uACA9 \uD398\uC774\uC9C0 \uBAA9\uB85D\uC758 \uD398\uC774\uC9C0\uB124\uC774\uC158\uC774 \uBC18\uBCF5\uB429\uB2C8\uB2E4.");T.add(k)}}while(k);let S=a.map(([E,R])=>{let M=b.get(R.pageId),F={path:E,pageId:R.pageId,baselineVersion:R.remoteVersion,state:"unknown",reasons:[]};if(!M)return{...F,state:"unavailable",reasons:["\uC870\uD68C \uACB0\uACFC\uC5D0 \uC5C6\uC74C \u2014 \uC0AD\uC81C\xB7\uAD8C\uD55C \uBCC0\uACBD\xB7\uBCF4\uAD00 \uC5EC\uBD80\uB294 \uD655\uC778\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."]};if(typeof M.title=="string"&&(F.title=M.title),typeof M.parentId=="string"&&(F.parentId=M.parentId),Number.isInteger(M.version?.number)&&M.version.number>0&&(F.remoteVersion=M.version.number),!R.remoteVersion||!F.remoteVersion||F.remoteVersion<R.remoteVersion)F.reasons.push("\uBE44\uAD50\uD560 \uAE30\uC900 \uBC84\uC804 \uB610\uB294 \uC6D0\uACA9 \uBC84\uC804\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");else{F.state="unchanged",F.remoteVersion!==R.remoteVersion&&F.reasons.push(`\uBC84\uC804 v${R.remoteVersion} \u2192 v${F.remoteVersion}`),R.title&&F.title&&R.title!==F.title&&F.reasons.push("\uC81C\uBAA9 \uBCC0\uACBD");let $=d.get(E);$&&F.parentId&&$!==F.parentId&&F.reasons.push("\uC6D0\uACA9 \uBD80\uBAA8 \uC704\uCE58 \uBCC0\uACBD"),F.reasons.length&&(F.state="changed")}return F}),C=new Map(Object.entries(n.mapping).map(([E,R])=>[R.pageId,{path:E,entry:R}])),I=new Map,O=E=>{let R=E.replace(/[\/\\:*?"<>|]/g,"-").replace(/\s+/g," ").trim();return!R||/^\.+$/.test(R)?"untitled":R.startsWith(".")||["attachments","node_modules"].includes(R)?"_"+R:R},W=new Map(b),H=[...new Set([...b].filter(([E])=>!C.has(E)).map(([,E])=>String(E.parentId??"")).filter(E=>E&&E!==n.root.id&&!W.has(E)&&!C.has(E)))];for(let E=0;E<H.length;E+=p0){let R=H.slice(E,E+p0),M=new Set(R),F=new Set,$="";do{if(w>=m3)throw new Error("\uC6D0\uACA9 \uC870\uD68C\uAC00 \uCD5C\uB300 20\uD68C\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. \uAE30\uC874 \uCE90\uC2DC\uB294 \uC720\uC9C0\uD569\uB2C8\uB2E4.");let X=new URLSearchParams({cql:`id in (${R.join(",")})`,expand:"ancestors,space",limit:String(p0)});$&&X.set("start",$),w++,yn(`\uC2E0\uADDC \uBB38\uC11C\uC758 \uBD80\uBAA8 \uD3F4\uB354 \uBA54\uD0C0\uB370\uC774\uD130 \uC870\uD68C \xB7 ${E+1}\u2013${E+R.length}`);let ge=await h.api("/rest/api/content/search?"+X);if(!Array.isArray(ge?.results))throw new Error("\uC6D0\uACA9 \uBD80\uBAA8 \uD3F4\uB354 \uBAA9\uB85D\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");for(let ke of ge.results){let me=String(ke?.id);if(!M.has(me)||ke.type!=="folder"||String(ke.space?.id)!==o.connection.spaceId||!Array.isArray(ke.ancestors))throw new Error("\uC6D0\uACA9 \uBD80\uBAA8 \uD3F4\uB354\uC758 ID\xB7\uC2A4\uD398\uC774\uC2A4\xB7\uC720\uD615\uC744 \uD655\uC778\uD558\uC138\uC694.");M.delete(me);for(let oe=0;oe<ke.ancestors.length;oe++){let q=ke.ancestors[oe];if(!/^\d+$/.test(String(q.id))||typeof q.title!="string")throw new Error("\uC6D0\uACA9 \uC0C1\uC704 \uD3F4\uB354 \uC815\uBCF4\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");W.has(String(q.id))||W.set(String(q.id),{id:String(q.id),title:q.title,type:"folder",parentId:ke.ancestors[oe-1]?.id})}W.set(me,{id:me,title:ke.title,type:"folder",parentId:ke.ancestors.at(-1)?.id})}if($="",ge._links?.next){let ke=new URL(ge._links.next,t.baseUrl);if(ke.origin!==new URL(t.baseUrl).origin||!/\/rest\/api\/content\/search$/.test(ke.pathname)||!/^\d+$/.test(ke.searchParams.get("start")??""))throw new Error("\uBD80\uBAA8 \uD3F4\uB354 \uBAA9\uB85D\uC758 \uB2E4\uC74C \uD398\uC774\uC9C0 \uC8FC\uC18C\uAC00 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");if($=ke.searchParams.get("start"),F.has($))throw new Error("\uBD80\uBAA8 \uD3F4\uB354 \uD398\uC774\uC9C0\uB124\uC774\uC158\uC774 \uBC18\uBCF5\uB429\uB2C8\uB2E4.");F.add($)}}while($);if(M.size)throw new Error("\uC2E0\uADDC \uC6D0\uACA9 \uBB38\uC11C\uC758 \uBD80\uBAA8 \uD3F4\uB354\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uAE30\uC874 \uCE90\uC2DC\uB294 \uC720\uC9C0\uD569\uB2C8\uB2E4.")}async function j(E,R=new Set){if(E===n.root.id)return"";if(R.has(E))throw new Error("\uC6D0\uACA9 \uBD80\uBAA8 \uAD00\uACC4\uAC00 \uC21C\uD658\uD569\uB2C8\uB2E4.");R.add(E);let M=C.get(E);if(M)return M.entry.type==="folder"?M.path.replace(/\/$/,""):(0,Sn.dirname)(M.path)==="."?"":(0,Sn.dirname)(M.path);let F=W.get(E);if(!F)throw new Error(`\uC6D0\uACA9 \uBD80\uBAA8 \uC815\uBCF4\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: #${E}`);if(typeof F.title!="string"||!F.title.trim())throw new Error(`\uC6D0\uACA9 \uC81C\uBAA9\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: #${E}`);let X=[F.parentId?await j(String(F.parentId),R):"",O(F.title)].filter(Boolean).join("/");return b.has(E)||I.set(E,{path:X+"/",pageId:E,title:F.title}),X}let v=new Set(Object.values(n.mapping).map(E=>E.pageId));for(let[E,R]of b)!v.has(E)&&R.parentId&&await j(String(R.parentId));for(let[E,R]of b){if(v.has(E))continue;if(typeof R.title!="string"||!Number.isInteger(R.version?.number)||R.version.number<1)throw new Error(`\uC2E0\uADDC \uC6D0\uACA9 \uBB38\uC11C\uC758 \uC81C\uBAA9\xB7\uBC84\uC804\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: #${E}`);let M=R.parentId?await j(String(R.parentId)):"",F=[...W.values()].some(X=>String(X.parentId)===E),$=E===n.root.id?"README.md":[M,O(R.title)+(F?"/README.md":".md")].filter(Boolean).join("/");!hr($,o)||$t(i,[]).ignores($)||It(i,$)||S.push({path:$,pageId:E,title:R.title,parentId:R.parentId,remoteVersion:R.version.number,state:"new",reasons:["\uC544\uC9C1 \uB85C\uCEEC\uC5D0 \uBC1B\uC9C0 \uC54A\uC740 \uC6D0\uACA9 \uBB38\uC11C"]})}let N={version:1,key:u,binding:m,checkedAt:new Date(l).toISOString(),scope:".",requests:w,items:S,folders:[...I.values()],foldersSkipped:s.filter(([,E])=>E.type==="folder").length};x3(i),Ie((0,Sn.dirname)(c),{recursive:!0});let P=(0,Sn.join)((0,Sn.dirname)(c),`.remote-${gr()}.tmp`);try{rt(P,JSON.stringify(N,null,2)+`
120
+ `,{mode:384,flag:"wx"}),ai(P,c)}finally{Kt(P,{force:!0})}return{snapshot:N,cached:!1,requests:w}}async function w3(e){for(let u=0;u<e.length;u++)if(e[u]==="--base"){if(!e[u+1]||e[u+1].startsWith("-"))throw new Error("--base\uC5D0 \uAE30\uC900 \uD3F4\uB354\uB97C \uC9C0\uC815\uD558\uC138\uC694.");u++}else if(!["fetch","--no-color","--refresh"].includes(e[u]))throw new Error("fetch\uB294 \uC5F0\uACB0\uB41C \uC791\uC5C5\uACF5\uAC04\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC635\uC158\uC740 --base\uC640 --refresh\uB9CC \uC9C0\uC815\uD558\uC138\uC694.");let t=e.indexOf("--base"),r=Jn(t>=0?e[t+1]:void 0);if(!r)throw new Error("\uC791\uC5C5\uACF5\uAC04\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. --base\uB85C \uAE30\uC900 \uD3F4\uB354\uB97C \uC9C0\uC815\uD558\uC138\uC694.");let{snapshot:n,cached:i,requests:o}=await sm(r,Si(r),{refresh:e.includes("--refresh")}),a=Object.fromEntries([...g3].map(u=>[u,n.items.filter(c=>c.state===u).length]));console.log(`${Ko(Re("\uC6D0\uACA9 \uBCC0\uACBD \uD655\uC778 \xB7 \uC2A4\uD398\uC774\uC2A4 \uC791\uC5C5\uACF5\uAC04"))}
121
+ ${we(`\uC870\uD68C \uC2DC\uAC01: ${n.checkedAt}${i?" \xB7 2\uBD84 \uC774\uB0B4 \uCE90\uC2DC \uC0AC\uC6A9":""}`)}
122
+ \uC774\uBC88 API \uC694\uCCAD: ${Re(`${o}\uD68C`)} \xB7 \uB300\uC0C1 ${n.items.length}\uAC74`);let s={new:Re,changed:Re,unavailable:Bt,unknown:zt,unchanged:Ur};for(let u of n.items.filter(c=>c.state!=="unchanged"))console.log(` ${s[u.state](`[${{new:"\uC6D0\uACA9 \uC2E0\uADDC",changed:"\uC6D0\uACA9 \uBCC0\uACBD",unavailable:"\uC870\uD68C \uBD88\uAC00",unknown:"\uD655\uC778 \uD544\uC694",unchanged:"\uBC84\uC804 \uB3D9\uC77C"}[u.state]}]`)} ${u.path} ${we(`(#${u.pageId})`)} \xB7 ${u.reasons.join(", ")}`);console.log(`${Ur(`\uBC84\uC804 \uB3D9\uC77C ${a.unchanged}`)} \xB7 ${Re(`\uC6D0\uACA9 \uC2E0\uADDC ${a.new}`)} \xB7 ${Re(`\uC6D0\uACA9 \uBCC0\uACBD ${a.changed}`)} \xB7 ${a.unavailable?Bt(`\uC870\uD68C \uBD88\uAC00 ${a.unavailable}`):we("\uC870\uD68C \uBD88\uAC00 0")} \xB7 ${a.unknown?zt(`\uD655\uC778 \uD544\uC694 ${a.unknown}`):we("\uD655\uC778 \uD544\uC694 0")}`),n.items.length||console.log(we("\uC2A4\uD398\uC774\uC2A4\uC5D0\uC11C \uAC00\uC838\uC62C \uBB38\uC11C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")),console.log(we("\uBB38\uC11C\xB7\uB3D9\uAE30\uD654 \uAE30\uC900\uC740 \uC720\uC9C0\uD569\uB2C8\uB2E4. \uC2A4\uD398\uC774\uC2A4\uC758 \uC0C8 \uBB38\uC11C\uC640 \uBC84\uC804\xB7\uC704\uCE58 \uBCC0\uACBD\uC744 \uD655\uC778\uD588\uC2B5\uB2C8\uB2E4. \uAC00\uC838\uC624\uAE30: csync pull"))}p();function Xn(e){let t=new Set(["--base","--reference-root","--mapping","--from-mapping","--exclude","--to","--out","--port","--scope","--confirm-scope"]),r=[];for(let n=0;n<e.length;n++){if(t.has(e[n])){n++;continue}e[n].startsWith("-")||r.push(e[n])}return r}Ts();Wt();p();p();function _D(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 fm(e,t){return Array(t+1).join(e)}function v3(e){return e.replace(/^\n*/,"")}function S3(e){for(var t=e.length;t>0&&e[t-1]===`
123
+ `;)t--;return e.substring(0,t)}function A3(e){return S3(v3(e))}var vD=["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 dm(e){return pm(e,vD)}var k3=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function T3(e){return pm(e,k3)}function SD(e){return D3(e,k3)}var C3=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function AD(e){return pm(e,C3)}function kD(e){return D3(e,C3)}function pm(e,t){return t.indexOf(e.nodeName)>=0}function D3(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var TD=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function I3(e){return TD.reduce(function(t,r){return t.replace(r[0],r[1])},e)}var Ar={};Ar.paragraph={filter:"p",replacement:function(e){return`
124
+
125
+ `+e+`
126
+
127
+ `}};Ar.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
128
+ `}};Ar.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=fm(n===1?"=":"-",e.length);return`
129
+
130
+ `+e+`
131
+ `+i+`
132
+
133
+ `}else return`
134
+
135
+ `+fm("#",n)+" "+e+`
136
+
137
+ `}};Ar.blockquote={filter:"blockquote",replacement:function(e){return e=A3(e).replace(/^/gm,"> "),`
138
+
139
+ `+e+`
140
+
141
+ `}};Ar.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
142
+ `+e:`
143
+
144
+ `+e+`
145
+
146
+ `}};Ar.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);n=(o?Number(o)+a:a+1)+". "}var s=/\n$/.test(e);return e=A3(e)+(s?`
147
+ `:""),e=e.replace(/\n/gm,`
148
+ `+" ".repeat(n.length)),n+e+(t.nextSibling?`
149
+ `:"")}};Ar.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
150
+
151
+ `+t.firstChild.textContent.replace(/\n/g,`
152
+ `)+`
153
+
154
+ `}};Ar.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],o=t.firstChild.textContent,a=r.fence.charAt(0),s=3,u=new RegExp("^"+a+"{3,}","gm"),c;c=u.exec(o);)c[0].length>=s&&(s=c[0].length+1);var l=fm(a,s);return`
155
+
156
+ `+l+i+`
157
+ `+o.replace(/\n$/,"")+`
158
+ `+l+`
159
+
160
+ `}};Ar.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
161
+
162
+ `+r.hr+`
163
+
164
+ `}};Ar.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=hm(t.getAttribute("href")),n=mm(m0(t.getAttribute("title"))),i=n?' "'+n+'"':"";return"["+e+"]("+r+i+")"}};Ar.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=hm(t.getAttribute("href")),i=m0(t.getAttribute("title"));i&&(i=' "'+mm(i)+'"');var o,a;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",a="["+e+"]: "+n+i;break;case"shortcut":o="["+e+"]",a="["+e+"]: "+n+i;break;default:var s=this.references.length+1;o="["+e+"]["+s+"]",a="["+s+"]: "+n+i}return this.references.push(a),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
165
+
166
+ `+this.references.join(`
167
+ `)+`
168
+
169
+ `,this.references=[]),t}};Ar.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};Ar.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};Ar.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}};Ar.image={filter:"img",replacement:function(e,t){var r=I3(m0(t.getAttribute("alt"))),n=hm(t.getAttribute("src")||""),i=m0(t.getAttribute("title")),o=i?' "'+mm(i)+'"':"";return n?"!["+r+"]("+n+o+")":""}};function m0(e){return e?e.replace(/(\n+\s*)+/g,`
170
+ `):""}function hm(e){var t=e.replace(/([<>()])/g,"\\$1");return t.indexOf(" ")>=0?"<"+t+">":t}function mm(e){return e.replace(/"/g,'\\"')}function N3(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])}N3.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=um(this.array,e,this.options))||(t=um(this._keep,e,this.options))||(t=um(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 um(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(CD(i,t,r))return i}}function CD(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 DD(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(d){return d.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,a=!1,s=null,u=E3(s,t,i);u!==t;){if(u.nodeType===3||u.nodeType===4){var c=u.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){u=cm(u);continue}u.data=c,o=u}else if(u.nodeType===1)r(u)||u.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,a=!1):n(u)||i(u)?(o=null,a=!0):o&&(a=!1);else{u=cm(u);continue}var l=E3(s,u,i);s=u,u=l}o&&(o.data=o.data.replace(/ $/,""),o.data||cm(o))}}function cm(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function E3(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var R3=typeof window<"u"?window:{};function ID(){var e=R3.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function ND(){var e=function(){};{var t=Un();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var RD=ID()?R3.DOMParser:ND();function LD(e,t){var r;if(typeof e=="string"){var n=MD().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return DD({element:r,isBlock:dm,isVoid:T3,isPre:t.preformattedCode?OD:null}),r}var lm;function MD(){return lm=lm||new RD,lm}function OD(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function FD(e,t){return e.isBlock=dm(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=PD(e),e.flankingWhitespace=BD(e,t),e}function PD(e){return!T3(e)&&!AD(e)&&/^\s*$/i.test(e.textContent)&&!SD(e)&&!kD(e)}function BD(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=HD(e.textContent);return r.leadingAscii&&_3("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&_3("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function HD(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 _3(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!dm(n)&&(o=i.test(n.textContent))),o}var UD=Array.prototype.reduce;function Su(e){if(!(this instanceof Su))return new Su(e);var t={rules:Ar,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
171
+
172
+ `:""},keepReplacement:function(r,n){return n.isBlock?`
173
+
174
+ `+n.outerHTML+`
175
+
176
+ `:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
177
+
178
+ `+r+`
179
+
180
+ `:r}};this.options=_D({},t,e),this.rules=new N3(this.options)}Su.prototype={turndown:function(e){if(!WD(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=L3.call(this,new LD(e,this.options));return $D.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 I3(e)}};function L3(e){var t=this;return UD.call(e.childNodes,function(r,n){n=new FD(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=qD.call(t,n)),M3(r,i)},"")}function $D(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=M3(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function qD(e){var t=this.rules.forNode(e),r=L3.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 M3(e,t){var r=S3(e),n=v3(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
181
+
182
+ `.substring(0,i);return r+o+n}function WD(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}p();var gm=de(Un(),1);var g0=(e,t)=>Array.from(e.children).find(r=>r.nodeName.toLowerCase()===t);function KD(e){let t=g0(e,"ac:rich-text-body"),r=t&&g0(t,"ac:structured-macro");if(r?.getAttribute("ac:name")!=="anchor")return;let n=g0(r,"ac:parameter")?.textContent??"";if(!(!n.startsWith(Ro)||n.length>2e3))try{let i=JSON.parse(_.Buffer.from(n.slice(Ro.length),"base64url").toString("utf8"));if(typeof i.type=="string"&&/^[a-z\d_-]+$/i.test(i.type)&&["","+","-"].includes(i.fold)&&typeof i.explicit=="boolean")return i}catch{}}function O3(e){let t=Array.from(e.children);return{header:t.find(r=>r.classList.contains("panelHeader")),body:t.find(r=>r.classList.contains("panelContent"))}}function F3(e,t){let r=(0,gm.createDocument)(e);for(let s of Array.from(r.querySelectorAll("[data-csync-callout]")))s.removeAttribute("data-csync-callout");let n=Array.from(r.querySelectorAll("div.panel")).filter(s=>!!O3(s).body),i=t?.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g,(s,u)=>u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),o=i?Array.from((0,gm.createDocument)(i).querySelectorAll("*")).filter(s=>s.nodeName.toLowerCase()==="ac:structured-macro"&&s.getAttribute("ac:name")==="panel"):[],a=n.length===o.length;return n.forEach((s,u)=>{let{header:c,body:l}=O3(s),d=c?.textContent?.trim()??"",m=a?o[u]:void 0,f=w=>m&&Array.from(m.children).find(D=>D.nodeName.toLowerCase()==="ac:parameter"&&D.getAttribute("ac:name")===w)?.textContent?.trim(),h=m&&f("title")===d?KD(m):void 0,b=f("bgColor")??"";s.setAttribute("data-csync-callout",JSON.stringify({type:h?.type??ly(d,b),fold:h?.fold??"",explicit:h?.explicit??!0,title:d}));for(let w of Array.from(l.querySelectorAll("[id], [name]")))((w.getAttribute("id")??"").includes(Ro)||(w.getAttribute("name")??"").includes(Ro))&&w.remove();for(let w of Array.from(l.querySelectorAll("*")))w.nodeName.toLowerCase()==="ac:structured-macro"&&w.getAttribute("ac:name")==="anchor"&&g0(w,"ac:parameter")?.textContent?.startsWith(Ro)&&w.remove()}),r.body.innerHTML}function P3(e,t){e.addRule("confluencePanelTitle",{filter:r=>{let n=r;return!!n.classList?.contains("panelHeader")&&!!n.parentElement?.hasAttribute("data-csync-callout")},replacement:()=>""}),e.addRule("confluencePanel",{filter:r=>r.hasAttribute?.("data-csync-callout")??!1,replacement:(r,n)=>{let{type:i,fold:o,explicit:a,title:s}=JSON.parse(n.getAttribute("data-csync-callout")),u=String(s).replace(/[\r\n]+/g," ").trim(),c=d=>d.split(`
183
+ `).map(m=>m?`> ${m}`:">").join(`
184
+ `),l=t?`[!${i}]${o}${u&&(a||u!==Np(i).title)?` ${u}`:""}`:u?`**${e.escape(u)}**`:"";return`
185
+
186
+ ${c([l,r.trim()].filter(Boolean).join(t?`
187
+ `:`
188
+
189
+ `))}
190
+
191
+ `}})}function Au(e){let t=[],r=/<ac:structured-macro[^>]*ac:name="code"[\s\S]*?<\/ac:structured-macro>/g,n;for(;(n=r.exec(e))!==null;){let i=n[0].match(/ac:name="language"[^>]*>([^<]*)</);t.push(i?i[1].trim():"")}return t}var B3=e=>/\s/.test(e)?`<${e}>`:e;function ku(e){return bn(e,t=>t.split(`
192
+ `).map(r=>{let n=r.match(/^\s*(?:\\[-+>#]|\d+\\\.)?/)?.[0]??"",i=r.slice(n.length).replace(/\\([-+.>])/g,"$1").replace(/(?<=[\p{L}\p{N}\p{M}_])(?:\\_)+(?=[\p{L}\p{N}\p{M}_])/gu,o=>o.replace(/\\/g,"")).replace(/\\\[([^[\]\n]*)\\\](?!\s*[([])/g,"[$1]");return n+i}).join(`
193
+ `))}function Tu(e,t={}){e=Ay(F3(iy(e,t.storage),t.storage),t.storage,t.pageId);let r=new br({html:!0}),n=new Su({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"-",hr:"---",emDelimiter:"_"});P3(n,t.obsidian??!1),ky(n),n.remove(["style","script","noscript","head","meta","link"]);let i=n.escape.bind(n);n.escape=c=>i(c).replace(/(?<=[\p{L}\p{N}\p{M}_])(?:\\_)+(?=[\p{L}\p{N}\p{M}_])/gu,l=>l.replace(/\\/g,"")),n.addRule("liParagraph",{filter:c=>c.nodeName==="P"&&c.parentNode?.nodeName==="LI",replacement:(c,l)=>l.previousElementSibling?`
194
+
195
+ ${c}`:c});let o=(e.match(/<pre[\s>]/gi)||[]).length,a=t.codeLangs&&t.codeLangs.length===o?t.codeLangs:void 0,s=0;n.addRule("confCode",{filter:c=>c.nodeName==="PRE",replacement:(c,l)=>{let d=l,m=s++,f;if(a)f=a[m]??"";else{let w=(d.getAttribute("data-syntaxhighlighter-params")||"").match(/brush:\s*([^;]+)/i);f=w?w[1].trim():""}let h=(d.textContent||"").replace(/[ \t]+$/gm,"").replace(/\n+$/,"");return`
196
+
197
+ \`\`\`${f||"plaintext"}
198
+ ${h}
199
+ \`\`\`
200
+
201
+ `}}),n.addRule("confImage",{filter:"img",replacement:(c,l)=>{let d=l,m=d.getAttribute("src")||"",f=d.getAttribute("alt")||"",h=d.getAttribute("data-linked-resource-type")==="attachment"||/\/download\/(attachments|thumbnails)\//.test(m);if(!h&&/(?:^|\s)waiting-image(?:\s|$)/.test(d.getAttribute("class")||"")&&/\/images\/icons\/wait\.gif(?:[?#]|$)/i.test(m))return"";if(!h&&/^https?:\/\//i.test(m))return`![${f}](${B3(m)})`;let w=d.getAttribute("data-linked-resource-default-alias")||""||decodeURIComponent((m.split("?")[0].split("/").pop()||"").trim());w&&t.onImage?.(w);let D=t.attachmentDestination?.(w,m)??(t.assetPrefix?`${t.assetPrefix}/${w}`:w);return`![${f||w}](${B3(D)})`}}),n.addRule("confTable",{filter:"table",replacement:(c,l)=>{let d=l,m=pi(d);if(Da(m)||d.querySelector("th[colspan], td[colspan], th[rowspan], td[rowspan]")){let S=d.cloneNode(!0);for(let C of Array.from(S.querySelectorAll("a[href]"))){let I=C.getAttribute("href");if(!/\/download\/attachments\//.test(I))continue;let O=C.getAttribute("data-linked-resource-default-alias")||decodeURIComponent(I.split("?")[0].split("#")[0].split("/").pop()||"");O&&(t.onImage?.(O),C.setAttribute("href",t.attachmentDestination?.(O,I)??(t.assetPrefix?`${t.assetPrefix}/${O}`:O)))}for(let C of Array.from(S.querySelectorAll("th, td")))C.innerHTML=r.render(n.turndown(C.innerHTML));return Io(S,m),S.removeAttribute("data-table-width"),S.removeAttribute("data-layout"),S.removeAttribute("ac:local-id"),`
202
+
203
+ ${S.outerHTML}
204
+
205
+ `}let f=S=>n.turndown(S.innerHTML||"").replace(/\n+/g," ").replace(/\|/g,"\\|").trim(),w=Array.from(l.querySelectorAll("tr")).map(S=>Array.from(S.children).filter(C=>C.nodeName==="TD"||C.nodeName==="TH").map(f)).filter(S=>S.length);if(!w.length)return"";let D=w[0],k=D.map(()=>"---"),T=`
206
+
207
+ | ${D.join(" | ")} |
208
+ | ${k.join(" | ")} |
209
+ `;for(let S of w.slice(1))T+=`| ${S.join(" | ")} |
210
+ `;return`${T}
211
+ `}});let u=ku(n.turndown(e)).trim()+`
212
+ `;return t.obsidian?ll(u):u}p();qe();var $r=de(je(),1);Ts();p();var to=de(je(),1);p();var U3=de(Un(),1);Wt();qe();var rr=de(je(),1);p();var H3=e=>decodeURIComponent(new URL(e).pathname);function x0(e,t){let r=new Map;function n(s){if(!s||s.startsWith("#")||s.startsWith("//")||Fi(s))return null;if(/^file:/i.test(s))return H3(s);if(!(0,rr.isAbsolute)(s)&&/^[a-z][a-z\d+.-]*:/i.test(s))return null;try{return(0,rr.resolve)((0,rr.dirname)(e),decodeURIComponent(s))}catch{return null}}function i(s,u=!1){let c=s.indexOf("#"),l=c<0?s:s.slice(0,c),d=c<0?"":s.slice(c),m=u&&!l.startsWith("/")&&!l.startsWith(".")&&!/^file:/i.test(l)?(0,rr.resolve)(t,l):n(l);if(!m||/\.md$/i.test(m)||!J(m)||!gt(m).isFile())return null;let f=cl(e,t),h=(0,rr.basename)(m),b=`${f}/${h}`,w=r.get(b)??(0,rr.resolve)(t,b);if(w!==m&&J(w)&&gt(w).isFile()&&!re(w).equals(re(m))){let k=$e("sha256").update(re(m)).digest("hex").slice(0,24),T=(0,rr.extname)(h);b=`${f}/${(0,rr.basename)(h,T)}-${k}${T}`}return r.set(b,m),(u?b:(0,rr.relative)((0,rr.dirname)(e),(0,rr.resolve)(t,b)).split("\\").join("/"))+d}function o(s){return s.replace(/<!--[\s\S]*?-->|<(script|style|pre|code)\b[^>]*>[\s\S]*?<\/\1\s*>|<(img|a)\b(?:[^"'<>]|"[^"]*"|'[^']*')*>/gi,(u,c,l)=>{if(!l)return u;let d=l.toLowerCase()==="img"?"src":"href",m=(0,U3.createDocument)(u).querySelector(l)?.getAttribute(d);if(!m)return u;let f=i(m);if(f===null)return u;let h=f.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return u.replace(new RegExp(`(\\s${d}\\s*=\\s*)("[^"]*"|'[^']*'|[^\\s>]+)`,"i"),(b,w)=>`${w}"${h}"`)})}function a(s){return bn(s,u=>{let c=u.replace(/(?<!!)(!?)\[([^\]\n]*)\]\((<[^>\n]+>|[^()\s]+)\)/g,(d,m,f,h,b)=>{if((u.slice(0,b).match(/\\+$/)?.[0].length??0)%2)return d;let w=i(h.replace(/^<(.*)>$/,"$1"));return w===null?d:`${m}[${f}](<${w.replace(/</g,"%3C").replace(/>/g,"%3E")}>)`}),l=c.replace(/(!?)\[\[([^\]|\n]+)(?:\|([^\]\n]*))?\]\]/g,(d,m,f,h,b)=>{if((c.slice(0,b).match(/\\+$/)?.[0].length??0)%2)return d;let w=i(f,!0);return w===null?d:`${m}[[${w}${h===void 0?"":"|"+h}]]`});return o(l)},o)}return{copies:r,rewrite:a,source:s=>r.get((0,rr.relative)(t,s).split("\\").join("/"))??s}}async function b0(e,t,r,n,i,o,a=x0(t,r),s=!0){let u=m=>m.split("\\").join("/"),c=u((0,to.relative)(r,t)),l=hl(c,n);return e=a.rewrite(e),e=dl(e,(m,f)=>{let h=(0,to.resolve)(r,m);return a.copies.has(u((0,to.relative)(r,h)))?u((0,to.relative)((0,to.dirname)(t),h)):l(m,f)}),e=yy(a.rewrite(e)),bn(e,m=>{if(/\[\[[^\]\n]*\.pdf#page=[^\]\n]*\]\]/i.test(m))throw new Error(`PDF \uC704\uD0A4\uB9C1\uD06C\uB97C \uD574\uC11D\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 (${c}). --base\uC5D0 PDF\uAC00 \uD3EC\uD568\uB418\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.`);return m}),{...await xy(e,t,r,i,o,a.source,s),copies:a.copies}}async function zo(e,t,r,n){let i=Rn((0,$r.join)(si(),"csync-push-")),o=()=>Kt(i,{recursive:!0,force:!0});try{let a=new Set(r),s=vi(e,t),u=Pa(t,Fa(e).map(c=>(0,$r.relative)(e,c).split("\\").join("/")));for(let c of t){let l=(0,$r.resolve)(e,c),d=(0,$r.resolve)(i,c),m=re(l,"utf8");if(a.has(c)){let f=await b0(m,l,e,u,i,!1,void 0,!1);m=f.text;for(let[h,b]of f.copies){let w=(0,$r.resolve)(i,h);Ie((0,$r.dirname)(w),{recursive:!0}),qr(b,w)}}if(a.has(c)){let f=s.docs[c];for(let h of s.render(c,f.body,f.title).attachments){if(!Ht(e,h.abs)||!J(h.abs))continue;let b=(0,$r.resolve)(i,(0,$r.relative)(e,h.abs));J(b)||(Ie((0,$r.dirname)(b),{recursive:!0}),qr(h.abs,b))}}Ie((0,$r.dirname)(d),{recursive:!0}),rt(d,m)}return{...vi(i,t,n?{...n,referenceBase:e}:void 0),dispose:o}}catch(a){throw o(),a}}var y0=class extends Error{},jD="attachments",VD=/\[([^\]]*)\]\(<?(https?:\/\/[^\s)<>]*?\/pages\/(\d+)[^\s)<>]*?)>?\)/g,$3=/\[([^\]]*)\]\(#([^)\s]+)\)/g,zD=/(\[[^\]]*\]\(<?https?:\/\/[^\s)<>]*?\/pages\/(\d+)[^\s)<>#]*)#([^\s)<>]+?)(>?\))/g;function ym(e,t,r,n=!1){let i=(0,Q.relative)(e.stageBase,t).split("\\").join("/");if(!Ht(e.stageBase,t)||!hr(i||".",e.workspace)||It(e.baseDir,n?`${i}/.boundary`:i))throw new Error(`\uAD00\uB9AC \uBC94\uC704 \uBC16 pull \uB300\uC0C1: ${i}`);let o=e.claimed.get(t);if(o&&o!==r)throw new Error(`\uAC19\uC740 \uB85C\uCEEC \uACBD\uB85C\uC5D0 \uC5EC\uB7EC \uC6D0\uACA9 \uD56D\uBAA9\uC774 \uB300\uC751\uD569\uB2C8\uB2E4: ${i}`);e.claimed.set(t,r)}function xm(e,t){let r=e.indexOf(t);return r>=0&&r+1<e.length?e[r+1]:void 0}function JD(e){return/^\d+$/.test(e)?e:e.match(/\/(?:pages|folder)\/(\d+)/)?.[1]??e.match(/[?&]pageId=(\d+)/)?.[1]??null}function bm(e){let t=e.replace(/[\/\\:*?"<>|]/g,"-").replace(/\s+/g," ").trim();return!t||/^\.+$/.test(t)?"untitled":t}var GD=e=>/\s/.test(e)?`<${e}>`:e;async function XD(e,t,r){let{client:n}=e,{id:i,title:o,html:a,storage:s}=t,u=e.incremental?[]:await n.getChildFolders(i),c=e.incremental?[]:await n.getChildPages(i),l=u.length+c.length>0,d=i===e.rootId,f=e.knownPaths.get(i)??(d?(0,Q.join)(r,"README.md"):l?(0,Q.join)(r,bm(o),"README.md"):(0,Q.join)(r,`${bm(o)}.md`)),h=(0,Q.dirname)(f);ym(e,f,i),t.version!==void 0&&e.versions.set(i,t.version),Ie((0,Q.dirname)(f),{recursive:!0});let b=(0,Q.basename)(f).replace(/\.md$/,""),w=`${jD}/${b}`,D=new Set,k=Tu(a,{obsidian:e.obsidian,pageId:i,onImage:I=>D.add(I),assetPrefix:w,codeLangs:Au(s),storage:s});if(D.size){let I=await n.listAttachments(i),O=new Map(I.map(v=>[v.filename,v.downloadPath])),W=(0,Q.join)((0,Q.dirname)(f),w),H=new Set,j=(v,N)=>{H.add(v),e.missingAttachments++,console.log(`[\uACBD\uACE0] \uC6D0\uACA9 \uCCA8\uBD80 \uB204\uB77D #${i}: ${v} (${N}). \uC6D0\uACA9 \uCC38\uC870\uB97C \uC720\uC9C0\uD558\uACE0 \uACC4\uC18D\uD569\uB2C8\uB2E4.`)};for(let v of D){if((0,Q.basename)(v)!==v||v==="."||v===".."||v.includes("\\"))throw new Error(`\uC798\uBABB\uB41C \uCCA8\uBD80 \uD30C\uC77C\uBA85: ${v}`);let N=O.get(v);if(!N){j(v,"\uC774 \uD398\uC774\uC9C0 \uCCA8\uBD80 \uBAA9\uB85D\uC5D0 \uC5C6\uC74C");continue}let P;try{P=await n.downloadAttachment(N)}catch(R){if(R instanceof wu&&R.status===404){j(v,"\uB2E4\uC6B4\uB85C\uB4DC 404");continue}throw R}Ie(W,{recursive:!0});let E=(0,Q.join)(W,v);e.assetOwners.set(E,i),rt(E,P)}H.size&&(k=Tu(a,{obsidian:e.obsidian,pageId:i,assetPrefix:w,codeLangs:Au(s),storage:s,attachmentDestination:(v,N)=>{if(!H.has(v))return`${w}/${v}`;if(/^https?:\/\//i.test(N))return N;let P=e.remoteBaseUrl.replace(/\/$/,"");return N.startsWith("/wiki/")?P.replace(/\/wiki$/,"")+N:N.startsWith("/")?P+N:`${P}/download/attachments/${i}/${encodeURIComponent(v)}`}}))}let T=Dy({title:o,pageId:i,spaceKey:e.spaceKey,source:t.url??"",updated:t.updated??""});rt(f,T?`${T}${k}`:`# ${o}
213
+
214
+ ${k}`),e.written.push(f),e.pathById.set(i,f);let S=D.size?`, \uC774\uBBF8\uC9C0 ${D.size}`:"";console.log(` ${Re("\u2193 \uB2E4\uC6B4\uB85C\uB4DC \uC900\uBE44")} ${(0,Q.join)(e.baseDir,(0,Q.relative)(e.stageBase,f))} ${we(`(#${i}${S}, \uAC80\uC99D \uD6C4 \uC800\uC7A5)`)}`);let C={pages:1,folders:0};for(let I of u)Cu(C,await Du(e,I.id,h));for(let I of c)Cu(C,await Du(e,I.id,h));return C}function Cu(e,t){e.pages+=t.pages,e.folders+=t.folders}async function Du(e,t,r){let{client:n}=e;if(e.visited.has(t))return{pages:0,folders:0};let i=e.knownPaths.get(t);if(i&&!hr((0,Q.relative)(e.stageBase,i).split("\\").join("/"),e.workspace))return{pages:0,folders:0};e.visited.add(t),yn(`\uC6D0\uACA9 \uBB38\uC11C\xB7\uD3F4\uB354 #${t} \uAC00\uC838\uC624\uAE30 \xB7 ${e.visited.size}\uBC88\uC9F8 \uD56D\uBAA9`);try{let o=await n.assertInScope(t);o?.parentId&&e.parents.set(t,o.parentId);let a=await n.getNode(t);if(e.incremental&&(String(a.id)!==t||a.type!=="page"))throw new Error(`\uB9E4\uD551\uB41C \uC6D0\uACA9 \uD398\uC774\uC9C0\uAC00 \uC544\uB2D9\uB2C8\uB2E4: #${t}`);let s=e.expectedVersions.get(t);if(e.incremental&&(!Number.isInteger(a.version)||!a.version||s!==void 0&&a.version<s))throw new Error(`\uC6D0\uACA9 \uBC84\uC804\uC744 \uD655\uC778\uD560 \uC218 \uC5C6\uAC70\uB098 Fetch\uBCF4\uB2E4 \uC774\uC804 \uBC84\uC804\uC785\uB2C8\uB2E4: #${t}. \uB2E4\uC2DC Fetch\uD55C \uD6C4 Pull\uD558\uC138\uC694.`);if(a.type==="folder"){let u=e.knownPaths.get(t)??(t===e.rootId?r:(0,Q.join)(r,bm(a.title)));ym(e,u,t,!0),Ie(u,{recursive:!0}),e.folderIds.set(u,t),console.log(` ${Re("\u{1F4C1} \uD3F4\uB354 \uC900\uBE44")} ${(0,Q.join)(e.baseDir,(0,Q.relative)(e.stageBase,u))} ${we(`(#${t}, \uAC80\uC99D \uD6C4 \uC800\uC7A5)`)}`);let c={pages:0,folders:1};for(let l of await n.getChildFolders(t))Cu(c,await Du(e,l.id,u));for(let l of await n.getChildPages(t))Cu(c,await Du(e,l.id,u));return c}return await XD(e,a,r)}catch(o){throw o instanceof y0?o:new y0(`pull \uC2E4\uD328 #${t}: ${o.message}`)}}function q3(e){let{data:t,body:r}=kt(re(e,"utf8")),n=hi(r);return{title:t.title??"",headings:n,textBySlug:new Map(n.map(i=>[i.slug,i.text]))}}function YD(e,t,r=new Map){let n=new Map(r);for(let o of e)n.set(o,q3(o));let i=0;for(let o of e){let a=n.get(o),s=re(o,"utf8"),u=(l,d)=>d.textBySlug.has(l)?null:al(l,d.headings,d.title)?.slug??null,c=s.replace($3,(l,d,m)=>{let f=u(m,a);return f?(i++,`[${d}](#${f})`):l});c=c.replace(zD,(l,d,m,f,h)=>{let b=t.get(m),w=b&&n.get(b);if(!w)return l;let D=u(f,w);return D?(i++,`${d}#${D}${h}`):l}),c=Zs(c,l=>{let d=l.match(/^(https?:\/\/[^\s]*?\/pages\/(\d+)[^#]*)#(.+)$/),m=d?t.get(d[2]):void 0,f=l.startsWith("#")?a:m?n.get(m):void 0,h=l.startsWith("#")?l.slice(1):d?.[3],b=f&&h?u(h,f):null;return b?(i++,l.startsWith("#")?`#${b}`:`${d[1]}#${b}`):l}),c!==s&&rt(o,c)}return{count:i,info:n}}function ZD(e,t,r,n){let i=s=>(0,Q.basename)(s).replace(/\.md$/i,""),o=new Map;for(let s of t.values())o.set(i(s),(o.get(i(s))??0)+1);let a=0;for(let s of e){let u=re(s,"utf8"),c=u.replace(VD,(l,d,m,f)=>{let h=t.get(f);if(!h||h===s)return l;a++;let b=i(h),w=(d||b).trim(),D=m.includes("#")?m.split("#").slice(1).join("#"):"";if(r&&o.get(b)===1){let T=D?n?.get(h)?.textBySlug.get(D):void 0,S=fl(w);return T?`[[${b}#${T}|${S}]]`:S===b?`[[${b}]]`:`[[${b}|${S}]]`}let k=(0,Q.relative)((0,Q.dirname)(s),h).split("\\").join("/");return`[${w}](${GD(k+(D?`#${D}`:""))})`});c=Zs(c,l=>{let d=l.match(/^https?:\/\/[^\s]*?\/pages\/(\d+)[^#]*(#.*)?$/),m=d?t.get(d[1]):void 0;return!m||m===s?l:(a++,(0,Q.relative)((0,Q.dirname)(s),m).split("\\").join("/")+(d[2]??""))}),r&&(c=c.replace($3,(l,d,m)=>{let f=n?.get(s)?.textBySlug.get(m);if(!f)return l;a++;let h=fl(d.trim());return h&&h!==f?`[[#${f}|${h}]]`:`[[#${f}]]`})),c!==u&&rt(s,c)}return a}async function QD(e,t,r,n,i=new Map,o=new Map,a){let s=h=>h.split("\\").join("/"),u=$t(e,[]),c=cr(e).map(h=>s((0,Q.relative)(e,h))).filter(h=>!u.ignores(h));yn("\uAC00\uC838\uC628 \uBB38\uC11C\uC758 \uB3D9\uAE30\uD654 \uAE30\uC900 \uACC4\uC0B0");let l=J(t)?re(t,"utf8"):void 0,d=lr(t),m=[],f=await zo(e,c,[...r.values()].map(h=>s((0,Q.relative)(e,h))).filter(h=>c.includes(h)));try{let{docs:h,render:b}=f,w=[],D=new Set([...r.keys(),...n.values()]);for(let[T,S]of Object.entries(d))D.has(S.pageId)&&delete d[T];let k=0;for(let[T,S]of r){let C=s((0,Q.relative)(e,S)),I=C.startsWith("..")?void 0:h[C];I&&(d[C]={pageId:T,title:I.title,hash:Tt(I.title,b(C,I.body,I.title)),localHash:Vo(e,C,b(C,I.body,I.title)),...i.has(T)?{remoteVersion:i.get(T)}:{},...o.has(T)?{remoteParentId:o.get(T)}:{}},w.push({rel:C,text:re(S,"utf8")}),k++)}for(let[T,S]of n){let C=s((0,Q.relative)(e,T));!C||C.startsWith("..")||(d[`${C}/`]={pageId:S,title:(0,Q.basename)(T),type:"folder"},k++)}a?.();for(let{rel:T,text:S}of w){let C=$e("sha256").update(S).digest("hex"),I=(0,Q.join)(e,wn,"objects",C+".md");J(I)||m.push(I),d[T].sourceObject=ss(e,S)}if(a?.(),(J(t)?re(t,"utf8"):void 0)!==l)throw new Error("\uAE30\uC900 \uACC4\uC0B0 \uC911 \uB9E4\uD551\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uAC00\uC838\uC624\uC138\uC694.");return $n(t,d),k}catch(h){let b=new Set;try{b=new Set(Object.values(lr(t)).map(w=>w.sourceObject??""))}catch{throw h}for(let w of m)!b.has((0,Q.basename)(w,".md"))&&J(w)&&Kt(w,{force:!0});throw h}finally{f.dispose()}}function Jo(e,t,r=!1){if(!t.length)throw new Error("\uBCF5\uAD6C\uD560 \uD30C\uC77C\uC744 \uC9C1\uC811 \uC9C0\uC815\uD558\uC138\uC694: csync restore README.md");Ut(ut(e));let n=lr(Pt(e)),i=$t(e,[]),o=[...new Set(t.map(s=>as(e,s)))];for(let s of o){let u=n[s];if(!/\.md$/i.test(s)||!u||u.type==="folder")throw new Error(`\uB9E4\uD551\uB41C Markdown \uD30C\uC77C\uB9CC \uBCF5\uAD6C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4: ${s}`);if(i.ignores(s)||It(e,s))throw new Error(`\uC81C\uC678\uB418\uC5C8\uAC70\uB098 \uB3C5\uB9BD \uC791\uC5C5\uACF5\uAC04\uC5D0 \uC18D\uD55C \uD30C\uC77C\uC785\uB2C8\uB2E4: ${s}`);if(u.pendingMove)throw new Error(`\uC774\uB3D9 \uB300\uAE30 \uC911\uC778 \uD30C\uC77C\uC740 \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${s}`);try{let c=Rt((0,Q.resolve)(e,s));if(r&&c.isFile()&&!c.isSymbolicLink()){let l=kt(re((0,Q.resolve)(e,s),"utf8")).data.pageId;if(l&&l!==u.pageId)throw new Error(`\uB9E4\uD551\uACFC \uB85C\uCEEC pageId\uAC00 \uB2E4\uB985\uB2C8\uB2E4: ${s}`);continue}}catch(c){if(c.code==="ENOENT")continue;throw c}throw new Error(`\uC774\uBBF8 \uC874\uC7AC\uD558\uB294 \uB85C\uCEEC \uD30C\uC77C\uC740 \uBCF5\uAD6C\uB85C \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: ${s}. \uC77C\uBC18 \uD30C\uC77C\uC758 \uC218\uC815\uC744 \uBC84\uB9AC\uB824\uBA74 --overwrite\uB97C \uC9C0\uC815\uD558\uC138\uC694.`)}let a=new Set(o.map(s=>n[s].pageId));for(let s of cr(e)){let u=(0,Q.relative)(e,s).split("\\").join("/");if(It(e,u))continue;let c=kt(re(s,"utf8")).data.pageId;if(c&&a.has(c)&&!(r&&o.includes(u)&&n[u].pageId===c))throw new Error(`\uAC19\uC740 pageId\uC758 \uB85C\uCEEC \uBB38\uC11C\uAC00 \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4: ${u}. \uD30C\uC77C \uC774\uB3D9 \uC5EC\uBD80\uB97C \uD655\uC778\uD558\uC138\uC694.`)}return o}async function w0(e,t={}){let r=t.restorePaths!==void 0,n=r&&t.restoreOverwrite===!0;if(e.includes("--scope"))throw new Error("--scope\uB294 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Pull\uC740 \uC2A4\uD398\uC774\uC2A4 \uC791\uC5C5\uACF5\uAC04\uC744 \uAE30\uC900\uC73C\uB85C \uC2E4\uD589\uD569\uB2C8\uB2E4.");if(e.includes("--no-mapping"))throw new Error("Pull\uC740 \uB9E4\uD551\uC744 \uC720\uC9C0\uD574\uC57C \uD569\uB2C8\uB2E4.");if(e.includes("--root"))throw new Error("--root\uB294 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uAE30\uC900 \uD3F4\uB354\uB294 \uC2A4\uD398\uC774\uC2A4 \uB8E8\uD2B8\uC5D0 \uC5F0\uACB0\uB429\uB2C8\uB2E4.");let i=e.includes("--remote-only"),o=!r&&(e.includes("--full")||e.includes("--space")||Xn(e).length>1),a=!r&&!o;if(i&&(e.includes("--full")||e.includes("--space")||Xn(e).length>1))throw new Error("--remote-only\uB294 \uC804\uCCB4 \uD0D0\uC0C9\xB7\uAC1C\uBCC4 \uD398\uC774\uC9C0 \uC9C0\uC815\uACFC \uD568\uAED8 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let s=xm(e,"--base"),u=(0,Q.resolve)(xm(e,"--out")??Jn(s)??y.cwd()),c=(0,Q.resolve)(s??Yh(u)??u);if(!Ht(c,u))throw new Error(`--out \uC774 base \uBC16\uC785\uB2C8\uB2E4: ${u}`);if(c!==u)throw new Error("Pull\uC740 \uAE30\uC900 \uD3F4\uB354 \uC548\uC758 \uC6D0\uB798 \uACBD\uB85C\uC5D0 \uC800\uC7A5\uD569\uB2C8\uB2E4. --base\uC640 --out\uC740 \uAC19\uC544\uC57C \uD569\uB2C8\uB2E4.");let l=(0,Q.resolve)(xm(e,"--mapping")??Pt(c)),d=r?Jo(c,t.restorePaths,n):void 0,m=ut(c),f=Si(c);d0(f),m.version!==2&&(Ie(c,{recursive:!0}),m=await i0(c,f));let h=Ut(m),b=lr(l),w=G=>J(G)?$e("sha256").update(re(G)).digest("hex"):void 0,D=new Map([l,(0,Q.join)(c,".env"),...ml(c)].map(G=>[G,w(G)])),k=()=>{for(let[G,ue]of D)if(w(G)!==ue)throw new Error("pull \uB3C4\uC911 \uC124\uC815\xB7\uB9E4\uD551\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.")};Gn(m,f);let T=os({baseUrl:f.baseUrl,email:f.email,token:f.token},{force:!1,verify:!1,scope:{id:h.id,spaceId:m.connection.spaceId,spaceOnly:!o}}),S=Xn(e)[1],C=new Map(Object.entries(b).map(([G,ue])=>[ue.pageId,G])),I;if(S){let G=JD(S);if(!G||!(G===h.id||C.has(G)&&hr(C.get(G).replace(/\/$/,""),m)))throw new Error("\uAC00\uC838\uC62C \uD398\uC774\uC9C0\uAC00 \uC791\uC5C5\uACF5\uAC04\uC5D0 \uB9E4\uD551\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.");I=[G]}else I=[h.id];let O=!o,W=0,H,j=new Set,v=new Set,N=new Map;if(d){I=d.map(G=>b[G].pageId);for(let G of d)b[G].remoteVersion&&N.set(b[G].pageId,b[G].remoteVersion);console.log(`\uC6D0\uACA9\uC5D0\uC11C ${n?"\uC120\uD0DD \uBB38\uC11C \uC6D0\uBCF5(\uB85C\uCEEC \uC218\uC815 \uB36E\uC5B4\uC4F0\uAE30)":"\uB204\uB77D \uBB38\uC11C \uBCF5\uAD6C"} \xB7 ${d.length}\uAC1C \xB7 \uD558\uC704 \uD56D\uBAA9 \uD0D0\uC0C9 \uC5C6\uC74C`)}else if(o)console.log("\uAE30\uC874 \uC804\uCCB4 \uD0D0\uC0C9 \uC635\uC158 \uD638\uD658 \uC2E4\uD589 \xB7 \uC77C\uBC18 \uAC00\uC838\uC624\uAE30\uB294 csync pull\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.");else{let{snapshot:G,cached:ue,requests:Ue}=await sm(c,f,{mappingFile:l});H=G;let K=new Map;for(let se of cr(c)){let Et=(0,Q.relative)(c,se).split("\\").join("/");if(It(c,Et))continue;let nt=kt(re(se,"utf8")).data.pageId;nt&&K.set(nt,[...K.get(nt)??[],Et])}I=G.items.filter(se=>{if(S&&!I.includes(se.pageId))return!1;if(se.state!=="changed"&&se.state!=="new")return W++,!1;if(se.remoteVersion!==void 0&&N.set(se.pageId,se.remoteVersion),se.state==="new"){if(K.get(se.pageId)?.some(Et=>Et!==se.path))return console.log(`\uAC19\uC740 pageId\uC758 \uB2E4\uB978 \uB85C\uCEEC \uBB38\uC11C\uAC00 \uC788\uC5B4 \uBCF4\uC874: ${se.path}`),W++,!1;try{let Et=Rt((0,Q.resolve)(c,se.path)),nt=Et.isFile()&&!Et.isSymbolicLink()?kt(re((0,Q.resolve)(c,se.path),"utf8")).data:{};if(nt.pageId===se.pageId&&nt.spaceKey===f.spaceKey)v.add(se.path),console.log(`\uBC1B\uAE30 \uBBF8\uC644\uB8CC \uBB38\uC11C \uC7AC\uAC80\uC99D: ${se.path}`);else return console.log(`\uAE30\uC874 \uB85C\uCEEC \uACBD\uB85C\uAC00 \uC788\uC5B4 \uBCF4\uC874: ${se.path}`),W++,!1}catch(Et){if(Et.code!=="ENOENT")throw Et}if(It(c,se.path)||$t(c,[]).ignores(se.path))return!1;C.set(se.pageId,se.path),v.has(se.path)||j.add(se.path)}return!0}).map(se=>se.pageId),console.log(`Fetch \uAE30\uBC18 Pull \xB7 \uC870\uD68C \uC2DC\uAC01 ${G.checkedAt}${ue?" (\uCE90\uC2DC)":""} \xB7 \uBA54\uD0C0\uB370\uC774\uD130 \uC694\uCCAD ${Ue}\uD68C`),console.log(`\uAC00\uC838\uC62C \uC6D0\uACA9 \uC2E0\uADDC\xB7\uBCC0\uACBD ${I.length}\uAC74 \xB7 \uAC74\uB108\uB700 ${W}\uAC74`);let ve=G.items.filter(se=>se.state==="unavailable");ve.length&&console.log(`[\uACBD\uACE0] \uC6D0\uACA9 \uC870\uD68C \uBD88\uAC00 ${ve.length}\uAC74\uC740 \uBB38\uC11C\uC640 \uB9E4\uD551\uC744 \uC720\uC9C0\uD569\uB2C8\uB2E4.`)}k();let P=I.includes(h.id)?h.id:void 0;if(P&&C.has(P)&&C.get(P)!=="README.md")throw new Error("\uC2A4\uD398\uC774\uC2A4 \uB8E8\uD2B8 \uB9E4\uD551\uC740 README.md\uC5EC\uC57C \uD569\uB2C8\uB2E4. \uAE30\uC874 \uB9E4\uD551\uC744 \uD655\uC778\uD558\uC138\uC694.");if(O&&!I.length){console.log("\uC644\uB8CC \xB7 Fetch \uAE30\uC900 \uB0B4\uB824\uBC1B\uC744 \uC6D0\uACA9 \uBCC0\uACBD\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uBB38\uC11C\xB7\uB9E4\uD551\uC744 \uC720\uC9C0\uD569\uB2C8\uB2E4.");return}await o0(T,m),k();let E=new Map,R=G=>{if(J(G))for(let ue of oi(G,{withFileTypes:!0})){let Ue=(0,Q.join)(G,ue.name);ue.isDirectory()&&!ue.name.startsWith(".")&&ue.name!=="node_modules"?R(Ue):ue.isFile()&&E.set(Ue,w(Ue))}};R(c);for(let G of[l,(0,Q.join)(c,".env"),...ml(c)])E.set(G,w(G));let M=$t(c,[]),F=(J(c)?cr(c):[]).map(G=>(0,Q.relative)(c,G).split("\\").join("/")).filter(G=>!It(c,G)&&!M.ignores(G)),$=new Set(I),X=F.filter(G=>hr(G,m)&&(!O||$.has(b[G]?.pageId)));yn("\uB36E\uC5B4\uC4F0\uAE30 \uC804 \uB85C\uCEEC \uBCC0\uACBD\xB7\uCCA8\uBD80 \uD655\uC778");let ge=await zo(c,F,X),ke=new Set;try{let G=vi(c,F);for(let ue of X){let Ue=ge.docs[ue],K=ge.render(ue,Ue.body,Ue.title),ve=b[ue];(ve?.localHash?ve.localHash===Vo(c,ue,K):ve?.hash&&(ve.hash===Tt(Ue.title,K)||ve.hash===Tt(G.docs[ue].title,G.render(ue,G.docs[ue].body,G.docs[ue].title))||ve.hash===Tt(Ue.title,ge.render(ue,Ue.body,Ue.title,"panels"))||ve.hash===Tt(Ue.title,ge.render(ue,Ue.body,Ue.title,!0))||ve.hash===Tt(G.docs[ue].title,G.render(ue,G.docs[ue].body,G.docs[ue].title,"panels"))||ve.hash===Tt(G.docs[ue].title,G.render(ue,G.docs[ue].body,G.docs[ue].title,!0))))&&ke.add(ue)}}finally{ge.dispose()}if(a&&O&&(I=I.filter(G=>{let ue=C.get(G),Ue=!!ue&&(j.has(ue)||v.has(ue)||ke.has(ue))&&!b[ue]?.pendingMove;return Ue||(W++,console.log(`\uB85C\uCEEC \uBCC0\uACBD\xB7\uD655\uC778 \uD544\uC694\uB85C \uBCF4\uC874: ${ue??G}`)),Ue}),P=I.includes(h.id)?h.id:void 0,!I.length)){console.log("\uC644\uB8CC \xB7 \uC548\uC804\uD558\uAC8C \uAC00\uC838\uC62C \uC6D0\uACA9 \uC804\uC6A9 \uBCC0\uACBD\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uB85C\uCEEC \uBCC0\uACBD\uC740 \uC720\uC9C0\uD569\uB2C8\uB2E4.");return}let me=Rn((0,Q.join)(si(),"csync-pull-")),oe=(0,Q.join)(me,(0,Q.relative)(c,u)),q={client:T,remoteBaseUrl:f.baseUrl,missingAttachments:0,incremental:O,expectedVersions:N,obsidian:e.includes("--obsidian"),spaceKey:f.spaceKey,written:[],pathById:new Map,folderIds:new Map,versions:new Map,parents:new Map,assetOwners:new Map,knownPaths:new Map([...C].map(([G,ue])=>[G,(0,Q.resolve)(me,ue)])),stageBase:me,baseDir:c,workspace:m,rootId:P,claimed:new Map,visited:new Set};try{if(H?.folders)for(let le of H.folders){if(![...j,...v].some(Te=>Te.startsWith(le.path)))continue;let ne=b[le.path];if(ne&&ne.pageId!==le.pageId)throw new Error(`\uC6D0\uACA9 \uD3F4\uB354 \uACBD\uB85C \uCDA9\uB3CC: ${le.path}`);let ae=(0,Q.resolve)(me,le.path);ym(q,ae,le.pageId,!0),Ie(ae,{recursive:!0}),q.folderIds.set(ae,le.pageId)}P&&q.knownPaths.delete(P);let G={pages:0,folders:0};for(let le of[...new Set(I)]){if(P===le&&b["README.md"]&&b["README.md"].pageId!==le)throw new Error("\uB8E8\uD2B8 README.md\uAC00 \uB2E4\uB978 \uD398\uC774\uC9C0\uC5D0 \uC5F0\uACB0\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.");Cu(G,await Du(q,le,oe))}let ue=new Map(q.pathById),Ue=new Map;if(O)for(let[le,ne]of C){if(ue.has(le)||!/\.md$/i.test(ne)||M.ignores(ne)||It(c,ne))continue;let ae=(0,Q.resolve)(c,ne),Te=(0,Q.resolve)(me,ne);!Ht(c,ae)||!Ht(me,Te)||!J(ae)||!Rt(ae).isFile()||Rt(ae).isSymbolicLink()||!Ht(ot(c),ot(ae))||(ue.set(le,Te),Ue.set(Te,q3(ae)))}let{count:K,info:ve}=YD(q.written,ue,Ue),se=ZD(q.written,ue,q.obsidian,ve),Et=[],nt=[],nr=le=>{for(let ne of oi(le,{withFileTypes:!0})){let ae=(0,Q.join)(le,ne.name);ne.isDirectory()?(nt.push(ae),nr(ae)):Et.push(ae)}};nr(me);let Qn=new Set(q.written),Vr=(le,ne)=>{let ae=(0,Q.resolve)(c,le);for(let Te=ae;Ht(c,Te);Te=(0,Q.dirname)(Te)){if(J(Te)){let tt=Rt(Te);if(tt.isSymbolicLink()||!Ht(ot(c),ot(Te)))throw new Error(`\uC2EC\uBCFC\uB9AD \uB9C1\uD06C pull \uB300\uC0C1\uC740 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: ${le}`);if(Te===ae&&!ne?!tt.isFile():!tt.isDirectory())throw new Error(`\uD30C\uC77C\xB7\uD3F4\uB354 \uACBD\uB85C \uCDA9\uB3CC: ${le}`)}if(Te===c)break}};for(let le of nt)Vr((0,Q.relative)(me,le),!0);for(let le of Et){let ne=(0,Q.relative)(me,le).split("\\").join("/"),ae=(0,Q.resolve)(c,ne);if(M.ignores(ne))throw new Error(`\uC81C\uC678\uB41C pull \uB300\uC0C1: ${ne}`);if(Vr(ne,!1),w(ae)!==E.get(ae))throw new Error(`pull \uB3C4\uC911 \uB85C\uCEEC \uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4: ${ne}`);if(J(ae)){if(Qn.has(le)){let Te=b[ne];if(v.has(ne)){if(!re(le).equals(re(ae)))throw new Error(`\uBC1B\uAE30 \uBBF8\uC644\uB8CC \uBB38\uC11C\uAC00 \uC6D0\uACA9\uACFC \uB2E4\uB985\uB2C8\uB2E4: ${ne}. \uB85C\uCEEC \uC218\uC815\uC740 \uC720\uC9C0\uD569\uB2C8\uB2E4. \uC6D0\uACA9\uACFC \uBE44\uAD50\uD558\uACE0 \uD544\uC694\uD55C \uBCC0\uACBD\uC744 \uBCF4\uAD00\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.`);continue}if(!Te||!ke.has(ne)&&!(n&&d?.includes(ne))||Te.pendingMove)throw new Error(`\uB85C\uCEEC \uBCC0\uACBD \uCDA9\uB3CC: ${ne}. \uBCC0\uACBD\uC744 \uBCF4\uAD00\uD558\uAC70\uB098 \uBE44\uAD50\uD55C \uB4A4 \uB2E4\uC2DC pull\uD558\uC138\uC694.`)}else if(w(le)!==w(ae)){let Te=q.assetOwners.get(le),tt=Te?C.get(Te):void 0;if(!tt||!ke.has(tt)&&!(n&&d?.includes(tt)))throw new Error(`\uCCA8\uBD80 \uD30C\uC77C \uCDA9\uB3CC: ${ne}. \uBCC4\uB3C4 --out\uC73C\uB85C \uBC1B\uC544 \uBE44\uAD50\uD558\uC138\uC694.`)}}}for(let le of[l,(0,Q.join)(c,".env"),...ml(c)])if(w(le)!==E.get(le))throw new Error("pull \uB3C4\uC911 \uC124\uC815\xB7\uB9E4\uD551\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");d&&Jo(c,d,n);let ir=Rn((0,Q.join)(si(),"csync-pull-backup-")),zr=[],Jr=[],An,Ir=!1,Ke=le=>{if(J(le))return;let ne=[];for(let ae=le;Ht(c,ae)&&!J(ae);ae=(0,Q.dirname)(ae))ne.push(ae);Ie(le,{recursive:!0}),Jr.push(...ne.reverse())};try{Ke(c);for(let ae of nt)Ke((0,Q.join)(c,(0,Q.relative)(me,ae)));for(let ae of Et){let Te=(0,Q.relative)(me,ae).split("\\").join("/"),tt=(0,Q.join)(c,(0,Q.relative)(me,ae));if(v.has(Te)&&Qn.has(ae)||d&&J(tt)&&!Qn.has(ae)&&w(tt)===w(ae))continue;if(w(tt)!==E.get(tt))throw new Error(`pull \uB3C4\uC911 \uB85C\uCEEC \uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4: ${Te}`);Ke((0,Q.dirname)(tt));let Nr={dest:tt,hash:w(ae)};J(tt)&&(Nr.prior=(0,Q.join)(ir,String(zr.length)),qr(tt,Nr.prior)),zr.push(Nr);try{qr(ae,tt,d&&!n||j.has(Te)?Mi.COPYFILE_EXCL:0)}catch(kr){throw kr.code==="EEXIST"&&(d&&!n||j.has(Te))?(zr.pop(),kr):(Nr.hash=w(tt),kr)}}let le=new Map([...q.pathById].map(([ae,Te])=>[ae,(0,Q.join)(c,(0,Q.relative)(me,Te))])),ne=new Map([...q.folderIds].map(([ae,Te])=>[(0,Q.join)(c,(0,Q.relative)(me,ae)),Te]));An=await QD(c,l,le,ne,q.versions,q.parents,()=>{for(let ae of q.written)if(w((0,Q.join)(c,(0,Q.relative)(me,ae)))!==w(ae))throw new Error("\uAE30\uC900 \uACC4\uC0B0 \uC911 \uB85C\uCEEC \uBB38\uC11C\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uCD94\uAC00 \uC218\uC815\uC740 \uBCF4\uC874\uD569\uB2C8\uB2E4.");for(let ae of zr)if(w(ae.dest)!==ae.hash)throw new Error("\uAE30\uC900 \uACC4\uC0B0 \uC911 \uB85C\uCEEC \uBB38\uC11C\xB7\uCCA8\uBD80\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uCD94\uAC00 \uC218\uC815\uC740 \uBCF4\uC874\uD569\uB2C8\uB2E4.")})}catch(le){let ne=0;for(let ae of zr.reverse()){if(w(ae.dest)!==ae.hash){ne++;continue}try{ae.prior?qr(ae.prior,ae.dest):Kt(ae.dest,{force:!0})}catch{Ir=!0}}for(let ae of[...new Set(Jr)].reverse())try{Ss(ae)}catch{}throw console.log(ne?`[\uACBD\uACE0] \uC801\uC6A9 \uC2E4\uD328\uB85C \uC800\uC7A5\uC744 \uCDE8\uC18C\uD588\uC2B5\uB2C8\uB2E4. \uB3C4\uC911 \uCD94\uAC00 \uC218\uC815\uB41C ${ne}\uAC1C \uD30C\uC77C\uC740 \uBCF4\uC874\uD588\uC2B5\uB2C8\uB2E4.`:"\uC801\uC6A9 \uC2E4\uD328\uB85C \uBB38\uC11C\xB7\uCCA8\uBD80 \uC800\uC7A5\uC744 \uCDE8\uC18C\uD588\uC2B5\uB2C8\uB2E4. \uAE30\uC874 \uB85C\uCEEC \uD30C\uC77C\uC740 \uBCF5\uC6D0\uD588\uC2B5\uB2C8\uB2E4."),Ir?new Error(`${le.message} \xB7 \uC77C\uBD80 \uD30C\uC77C \uBCF5\uC6D0 \uC2E4\uD328. \uBCF5\uAD6C\uC6A9 \uBC31\uC5C5: ${ir}`):le}finally{Ir||Kt(ir,{recursive:!0,force:!0})}console.log(`
215
+ ${Ur("\uC644\uB8CC")} \uD398\uC774\uC9C0 ${G.pages}\uAC1C, \uD3F4\uB354 ${G.folders}\uAC1C${O?`, \uAC74\uB108\uB700 ${W}\uAC1C`:""} \uB9E4\uD551 ${An}\uAC74 \uB0B4\uBD80\uB9C1\uD06C ${se}\uAC1C, \uC575\uCEE4 ${K}\uAC1C`),console.log(we(` base: ${c}`)),q.missingAttachments&&console.log(`[\uACBD\uACE0 \uC694\uC57D] \uC6D0\uACA9 \uCCA8\uBD80 ${q.missingAttachments}\uAC1C\uB97C \uB85C\uCEEC\uB85C \uC800\uC7A5\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uBB38\uC11C\uB294 \uC800\uC7A5\uD588\uC73C\uBA70 \uC6D0\uACA9 \uCC38\uC870\uB97C \uC720\uC9C0\uD588\uC2B5\uB2C8\uB2E4.`)}finally{Kt(me,{recursive:!0,force:!0})}}p();qe();var W3=de(je(),1);function wm(e,t,r){let n=null,i;try{n=y3(e,r)}catch{i="\uC6D0\uACA9 \uC870\uD68C \uCE90\uC2DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC5F0\uACB0 \uC124\uC815\uC744 \uD655\uC778\uD558\uACE0 csync fetch\uB85C \uB2E4\uC2DC \uC870\uD68C\uD558\uC138\uC694."}let o=new Map(n?.items.map(c=>[c.pageId,c])??[]),a=t.map(({entry:c,...l})=>{let d=o.get(l.pageId??"");return{...l,...l.unmapped?{recoverable:!!l.recoverable&&d?.state==="new"&&d.path===l.path}:{},remoteState:d?.state,remoteVersion:d?.remoteVersion,baselineVersion:d?.baselineVersion,remoteReasons:d?.reasons}}),s=new Set(a.map(c=>c.pageId)),u=$t(e,[]);for(let[c,l]of Object.entries(lr(Pt(e)))){if(!/\.md$/i.test(c)||l.type==="folder"||u.ignores(c)||It(e,c)||s.has(l.pageId))continue;let d=o.get(l.pageId);s.add(l.pageId),a.push({path:c,pageId:l.pageId,status:"unavailable",staged:!1,stale:!1,remoteState:d?.state,remoteVersion:d?.remoteVersion,baselineVersion:l.remoteVersion,remoteReasons:d?.reasons})}for(let c of n?.items??[])c.state!=="new"||s.has(c.pageId)||u.ignores(c.path)||It(e,c.path)||(a.push({path:c.path,pageId:c.pageId,status:J((0,W3.resolve)(e,c.path))?"new":"unavailable",staged:!1,stale:!1,remoteState:"new",remoteVersion:c.remoteVersion,remoteReasons:c.reasons}),s.add(c.pageId));return{rows:a,remoteCheckedAt:n?.checkedAt??null,remoteExpired:!!n&&Date.now()-Date.parse(n.checkedAt)>=am,remoteError:i}}p();qe();var K3=de(je(),1);async function j3(e,t,r={}){let n=ut(e);Ut(n);let i=as(e,t);if(!/\.md$/i.test(i)||!hr(i,n)||It(e,i)||$t(e,[]).ignores(i))throw new Error("\uC791\uC5C5\uACF5\uAC04 \uC548\uC758 Markdown \uBB38\uC11C\uB97C \uC120\uD0DD\uD558\uC138\uC694.");let o=(0,K3.resolve)(e,i);if(!gt(o).isFile()||gt(o).size>2e6)throw new Error("\uBE44\uAD50\uD560 \uBB38\uC11C\uB294 2MB \uC774\uD558 \uC77C\uBC18 \uD30C\uC77C\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.");let a=re(o,"utf8"),s=lr(Pt(e)),u=kt(a).data.pageId,c=s[i]??Object.values(s).find(l=>l.pageId===String(u));if(r.remote){if(!c?.pageId)return{path:i,before:"",after:a,source:"new",canRemote:!1,note:"\uC6D0\uACA9 \uC5F0\uACB0\uC774 \uC5C6\uB294 \uC0C8 \uBB38\uC11C\uC785\uB2C8\uB2E4. \uC804\uCCB4 \uB0B4\uC6A9\uC774 \uCD94\uAC00\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4."};let l=r.env??Si(e);Gn(n,l);let d=await _u(l).getNode(c.pageId);if(String(d.id)!==c.pageId||d.type!=="page")throw new Error("\uC5F0\uACB0\uB41C \uC6D0\uACA9 \uD398\uC774\uC9C0\uB97C \uD655\uC778\uD558\uC138\uC694.");let m=kt(a).body,f=m!==a?m.replace(/^\r?\n/,""):m;return{path:i,before:Tu(d.html,{obsidian:/^ {0,3}(?:> ?)+\[![\w-]+\]|\[\^[^\]\s]+\]:|(?<!\\)\^\[/m.test(f),pageId:c.pageId,storage:d.storage,codeLangs:Au(d.storage)}),after:f,source:"remote",canRemote:!0,note:`\uD604\uC7AC \uC6D0\uACA9 v${d.version??"?"} \u2192 \uB85C\uCEEC \uBCF8\uBB38 \uBE44\uAD50\uC785\uB2C8\uB2E4. \uC6D0\uACA9 HTML\uC758 \uADFC\uC0AC \uBCC0\uD658\uC774\uBA70 frontmatter\uB294 \uC81C\uC678\uD569\uB2C8\uB2E4. \uACFC\uAC70 \uB3D9\uAE30\uD654 \uAE30\uC900\uACFC\uC758 \uBE44\uAD50\uB294 \uC544\uB2D9\uB2C8\uB2E4. \uBCC0\uACBD \uBAA9\uB85D\uC5D0\uB294 \uBCF8\uBB38 \uC678 \uC81C\uBAA9\xB7\uC6D0\uACA9 \uC704\uCE58 \uBCC0\uACBD\uB3C4 \uD3EC\uD568\uB429\uB2C8\uB2E4.`}}return c?.sourceObject?{path:i,before:Q_(e,c.sourceObject),after:a,source:"baseline",canRemote:!0,note:"\uB9C8\uC9C0\uB9C9 Pull\xB7Push \uC131\uACF5 \uC2DC \uC800\uC7A5\uD55C Markdown \u2192 \uD604\uC7AC \uB85C\uCEEC \uBB38\uC11C\uC785\uB2C8\uB2E4. \uCCA8\uBD80 \uD30C\uC77C\uC758 \uBC14\uC774\uD2B8 \uCC28\uC774\uB294 \uBCF8\uBB38 diff\uC5D0 \uD45C\uC2DC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."}:c?{path:i,before:null,after:a,source:"unavailable",canRemote:!0,note:"\uC774 \uBB38\uC11C\uC758 \uACFC\uAC70 \uBCF8\uBB38\uC740 \uC800\uC7A5\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC544 \uD574\uC2DC\uB9CC\uC73C\uB85C diff\uB97C \uBCF5\uC6D0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC6D0\uACA9\uACFC \uBE44\uAD50\uB97C \uB204\uB974\uBA74 \uD574\uB2F9 \uD398\uC774\uC9C0 \uBCF8\uBB38\uB9CC 1\uD68C \uC870\uD68C\uD569\uB2C8\uB2E4. \uC774\uD6C4 Pull\xB7Push \uC131\uACF5\uBD80\uD130 \uB85C\uCEEC \uAE30\uC900\uBCF8\uC774 \uC800\uC7A5\uB429\uB2C8\uB2E4."}:{path:i,before:"",after:a,source:"new",canRemote:!1,note:"\uC0C8 \uBB38\uC11C\uC785\uB2C8\uB2E4. \uC804\uCCB4 \uB0B4\uC6A9\uC774 \uCD94\uAC00\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4."}}p();p();qe();var V3=de(je(),1);function E0(e,t,r,n,i){let o=structuredClone(t),a=new Map(Object.entries(t).map(([d,m])=>[m.pageId,{key:d,entry:m}])),s=Mo(Object.keys(t).filter(d=>d.endsWith(".md"))),u=Mo(r),c=new Map(r.map(d=>[d,tu(e,d)])),l=new Map;for(let[d,m]of c){let f=m.fm.pageId??t[d]?.pageId;if(f){if(t[d]&&t[d].pageId!==f)throw new Error(`pageId \uCDA9\uB3CC: ${d}`);if(l.has(f))throw new Error(`\uBB38\uC11C pageId \uC911\uBCF5: ${l.get(f)}, ${d} (#${f})`);if(l.set(f,d),f===i.id&&(i.type!=="page"||d!=="README.md"))throw new Error("\uC2A4\uCF54\uD504 \uB8E8\uD2B8\uC758 \uB9E4\uD551 \uACBD\uB85C\uB294 README.md\uB85C \uC720\uC9C0\uD574\uC57C \uD569\uB2C8\uB2E4.")}}for(let d of n){let m=c.get(d),f=m.fm.pageId??t[d]?.pageId;if(!f)continue;let h=a.get(f);if(h?.entry.type==="folder")throw new Error(`\uD3F4\uB354 ID\uB97C \uBB38\uC11C\uC5D0 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: ${d}`);if(h&&h.key!==d&&J((0,V3.resolve)(e,h.key)))throw new Error(`\uAE30\uC874 pageId \uACBD\uB85C\uAC00 \uB0A8\uC544 \uC788\uC2B5\uB2C8\uB2E4: ${h.key}, ${d}`);let b={...h?.entry??{pageId:f,title:m.title}},w=Vi(d,u),D=h?Vi(h.key,s):void 0,k=w?t[w]?.pageId??c.get(w)?.fm.pageId:i.id,T=!!h&&(D===w||!!k&&h.entry.remoteParentId===k);if(f===i.id){if(b.pendingMove)throw new Error("\uC2A4\uCF54\uD504 \uB8E8\uD2B8\uB294 \uC774\uB3D9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}else(!h||!T||b.pendingMove)&&(b.pendingMove={parentKey:w});h&&h.key!==d&&delete o[h.key],o[d]=b}return o}Wt();qe();var Yn=de(je(),1);var Em=e=>$e("sha256").update(e).digest("hex"),_m=(e,t)=>Em(re((0,Yn.resolve)(e,t)));function z3(e){Oo(e);let t=(0,Yn.join)(e,".csync/index.json");try{if(!Rt(t).isFile())throw new Error("\uC5C5\uB85C\uB4DC \uB300\uC0C1 \uD30C\uC77C\uC740 \uC77C\uBC18 \uD30C\uC77C\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.")}catch(r){if(r.code!=="ENOENT")throw r}return t}function eI(e){let t=ut(e);Ut(t);let r=[t.connection?.baseUrl,t.connection?.spaceKey,t.connection?.spaceId,t.remoteRoot?.id,t.remoteRoot?.type];return{portable:Em(JSON.stringify(r)),legacy:Em(JSON.stringify([ot(e),...r]))}}function tI(e){return!!e&&!e.startsWith("/")&&!e.includes("\\")&&e.split("/").every(t=>t&&t!=="."&&t!=="..")&&/\.md$/i.test(e)}function an(e){let t=z3(e),r=eI(e);if(!J(t))return{version:2,binding:r.portable,entries:{}};let n=JSON.parse(re(t,"utf8"));if(![1,2].includes(n?.version)||typeof n.binding!="string"||!/^[a-f0-9]{64}$/.test(n.binding)||!n.entries||Array.isArray(n.entries)||typeof n.entries!="object"||Object.entries(n.entries).some(([a,s])=>!tI(a)||!s||!/^[a-f0-9]{64}$/.test(s.source)||!/^[a-f0-9]{64}$/.test(s.hash)||s.reviewRequired!==void 0&&typeof s.reviewRequired!="boolean"))throw new Error(".csync/index.json\uC774 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC5C5\uB85C\uB4DC \uC120\uD0DD \uC815\uBCF4\uB97C \uD655\uC778\uD558\uC138\uC694.");let i=n.binding===(n.version===1?r.legacy:r.portable),o=Object.fromEntries(Object.entries(n.entries).map(([a,s])=>[a,i?s:{...s,reviewRequired:!0}]));return{version:2,binding:r.portable,entries:o}}function J3(e,t){let r=z3(e);Ie((0,Yn.dirname)(r),{recursive:!0});let n=`${r}.${gr()}.tmp`;try{rt(n,JSON.stringify(t,null,2)+`
216
+ `,{flag:"wx",mode:384}),ai(n,r)}finally{J(n)&&na(n)}}function _0(e){let t=an(e),r=ut(e),n=Object.keys(t.entries);if(!n.length)throw new Error("\uC5C5\uB85C\uB4DC \uB300\uC0C1\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. csync add <\uD30C\uC77C\xB7\uD3F4\uB354>\uB85C \uBB38\uC11C\uB97C \uCD94\uAC00\uD558\uC138\uC694.");if(n.some(i=>t.entries[i].reviewRequired))throw new Error("\uC791\uC5C5\uACF5\uAC04 \uC5F0\uACB0 \uB610\uB294 \uC774\uC804 \uC5C5\uB85C\uB4DC \uC120\uD0DD\uC744 \uB2E4\uC2DC \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4. csync add\uB85C \uBB38\uC11C\uB97C \uB2E4\uC2DC \uCD94\uAC00\uD558\uC138\uC694.");for(let i of n)if(!hr(i,r))throw new Error(`\uC5C5\uB85C\uB4DC \uB300\uC0C1\uC774 \uC791\uC5C5\uACF5\uAC04 \uBC16\uC785\uB2C8\uB2E4: ${i}. unstage\uB85C \uD574\uC81C\uD558\uACE0 \uAE30\uC900 \uD3F4\uB354\uB97C \uD655\uC778\uD558\uC138\uC694.`);return n}function vm(e,t,r,n){if(n.reviewRequired)throw new Error(`\uC5C5\uB85C\uB4DC \uC120\uD0DD\uC744 \uB2E4\uC2DC \uD655\uC778\uD574\uC57C \uD569\uB2C8\uB2E4: ${t}. csync add\uB85C \uB2E4\uC2DC \uCD94\uAC00\uD558\uC138\uC694.`);if(_m(e,t)!==n.source||r!==n.hash)throw new Error(`\uCD94\uAC00 \uD6C4 \uBB38\uC11C\xB7\uCCA8\uBD80\xB7\uB9C1\uD06C\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4: ${t}. csync add\uB85C \uB2E4\uC2DC \uCD94\uAC00\uD558\uC138\uC694.`)}function Go(e,t,r){if(!r)return;let n=an(e);JSON.stringify(n.entries[t])===JSON.stringify(r)&&(delete n.entries[t],J3(e,n))}async function Sm(e,t={},r){let n=ut(e);Ut(n);let i=an(e),o=$t(e,[]),a=cr(e).map(l=>(0,Yn.relative)(e,l).split("\\").join("/")).filter(l=>!o.ignores(l)&&!It(e,l)),s=a.filter(l=>hr(l,n)&&(!r||r.some(d=>!d||l===d||l.startsWith(d+"/")))),u=Object.fromEntries(s.map(l=>[l,_m(e,l)])),c=await zo(e,a,s,{referenceRoots:t.referenceRoots??[],baseUrl:t.baseUrl});try{let l=lr(Pt(e)),d=E0(e,l,a,s,Ut(n)),m=vi(e,a),f=s.map(h=>{let b=c.docs[h],w=c.render(h,b.body,b.title),D=Tt(b.title,w);if(_m(e,h)!==u[h])throw new Error("\uC870\uD68C \uC911 \uBB38\uC11C\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.");let k=b.fm.pageId&&Object.keys(l).find(N=>l[N].pageId===b.fm.pageId&&!N.endsWith("/")),T=l[h]??(k?l[k]:void 0),S=d[h],C=T?.localHash?T.localHash===Vo(e,h,w):!!T?.hash&&(T.hash===D||T.hash===Tt(m.docs[h].title,m.render(h,m.docs[h].body,m.docs[h].title))||T.hash===Tt(b.title,c.render(h,b.body,b.title,"panels"))||T.hash===Tt(b.title,c.render(h,b.body,b.title,!0))||T.hash===Tt(m.docs[h].title,m.render(h,m.docs[h].body,m.docs[h].title,"panels"))||T.hash===Tt(m.docs[h].title,m.render(h,m.docs[h].body,m.docs[h].title,!0))),I=!!T?.pageId&&!S?.pendingMove&&!!k&&k!==h,O=T?.pageId?S?.pendingMove?"moved":I||!C?"changed":"same":"new",W={source:u[h],hash:D},H=!T?.pageId&&!!b.fm.pageId,j=!!i.entries[h],v=j&&(H||!!i.entries[h].reviewRequired||JSON.stringify(i.entries[h])!==JSON.stringify(W));return{path:h,status:O,staged:j,stale:v,entry:W,...I&&C?{renamed:!0}:{},pageId:T?.pageId??b.fm.pageId,...!T?.pageId&&b.fm.pageId?{unmapped:!0,recoverable:b.fm.spaceKey===n.connection?.spaceKey}:{}}});for(let h of Object.keys(i.entries))f.some(b=>b.path===h)||f.push({path:h,status:"unavailable",staged:!0,stale:!0,entry:i.entries[h],pageId:d[h]?.pageId});return f}finally{c.dispose()}}async function G3(e,t,r,n={}){if(!t.length)throw new Error("\uD30C\uC77C \uB610\uB294 \uD3F4\uB354\uB97C \uC9C0\uC815\uD558\uC138\uC694. \uC804\uCCB4 \uBC94\uC704\uB294 . \uC73C\uB85C \uC9C0\uC815\uD558\uC138\uC694.");let i=an(e),o=t.map(c=>{let l=(0,Yn.relative)(e,(0,Yn.resolve)(e,c)).split("\\").join("/");if(l===".."||l.startsWith("../"))throw new Error("\uAE30\uC900 \uD3F4\uB354 \uBC16\uC758 \uACBD\uB85C\uB294 \uCD94\uAC00\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");return l}),a=r==="add"?await Sm(e,n,o):Object.keys(i.entries).map(c=>({path:c,status:"",entry:i.entries[c]})),s=[];for(let c of o){let l=a.filter(d=>(!c||d.path===c||d.path.startsWith(c+"/"))&&(r!=="add"||d.status!=="unavailable"));if(!l.length)throw new Error(`\uC791\uC5C5\uACF5\uAC04\uC5D0\uC11C \uC120\uD0DD\uD560 \uBB38\uC11C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4: ${c||"."}`);s.push(...l);for(let d of l)r==="add"?i.entries[d.path]=d.entry:delete i.entries[d.path]}let u=an(e);for(let c of new Set([...Object.keys(u.entries),...Object.keys(i.entries)]))o.some(l=>!l||c===l||c.startsWith(l+"/"))&&(i.entries[c]?u.entries[c]=i.entries[c]:delete u.entries[c]);return J3(e,u),s}p();var X3=de(jo(),1),ds=["CONFLUENCE_BASE_URL","CONFLUENCE_EMAIL","CONFLUENCE_API_TOKEN","CONFLUENCE_SPACE_KEY"],Y3=()=>/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Z3(e){if(typeof e!="string"||_.Buffer.byteLength(e)>12e3||e.includes("\0"))throw new Error(".env \uD30C\uC77C\uC740 12KB \uC774\uD558 \uD14D\uC2A4\uD2B8\uC5EC\uC57C \uD569\uB2C8\uB2E4.");let t=(0,X3.parse)(e);if(!ds.some(o=>Object.hasOwn(t,o)))throw new Error("Confluence \uC5F0\uACB0 \uD658\uACBD\uBCC0\uC218\uAC00 \uC5C6\uB294 \uD30C\uC77C\uC785\uB2C8\uB2E4.");let r={},n={};for(let o of e.matchAll(Y3()))n[o[1]]=o[2]??"";for(let o of ds)r[o]=t[o]?.trim()??"";let i=ds.map(o=>`${o}=${n[o]??""}`).join(`
217
+ `)+`
218
+ `;return{env:r,content:i}}function Q3(e,t){let r=e.replace(Y3(),(n,i)=>ds.includes(i)?"":n);return`${r.trimEnd()}${r.trim()?`
219
+
220
+ `:""}${t}`}p();p();p();qe();var ps=de(je(),1);async function ev(e){if(e.includes("--rebuild"))throw new Error("--rebuild\uB294 v2\uC5D0\uC11C \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uD30C\uC77C \uC774\uB3D9\xB7\uAC31\uC2E0\uC740 push, \uBCF8\uBB38 \uAC15\uC81C \uAC31\uC2E0\uC740 push --force\uB97C \uC0AC\uC6A9\uD558\uC138\uC694. \uAE30\uC874 \uD398\uC774\uC9C0\uB294 \uC0AD\uC81C\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");if(e.includes("--scope"))throw new Error("--scope\uB294 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uAE30\uC900 \uD3F4\uB354 \uC548\uC5D0\uC11C \uCD94\uAC00\uD55C \uBB38\uC11C\uB9CC \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4.");let t=e.includes("--dry-run"),r=e.includes("--list"),n=e.includes("--force"),i=e.includes("--verify");function o(K){let ve=e.indexOf(K);return ve>=0&&ve+1<e.length?e[ve+1]:void 0}function a(K){let ve=[];for(let se=0;se<e.length;se++)e[se]===K&&se+1<e.length&&ve.push(e[++se]);return ve}let s=a("--exclude"),u=Xn(e),c=Jn(o("--base"));c||(console.error(Bt("\u2717 \uB3D9\uAE30\uD654 \uB8E8\uD2B8\uAC00 \uC9C0\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.")+`
221
+ --base <dir> \uC778\uC790 \uB610\uB294 env CONFLUENCE_SYNC_BASE \uB85C \uB3D9\uAE30\uD654\uD560 \uB514\uB809\uD1A0\uB9AC\uB97C \uC9C0\uC815\uD558\uC138\uC694.
222
+ \uC608) ${Re("confluence-sync push --base ./docs")}
223
+ \uC124\uC815(.env)\uC744 \uB9CC\uB4E4\uB824\uBA74: ${Re("confluence-sync init")}
224
+ \uC804\uCCB4 \uB3C4\uC6C0\uB9D0: ${Re("confluence-sync --help")}`),y.exit(1));let l=(0,ps.resolve)(c),d=o("--mapping"),m=d?(0,ps.resolve)(d):Pt(l),f=Si(l),h=ut(l),b=Ut(h);(!t&&!r||i&&!r)&&Gn(h,f),(!J(l)||!gt(l).isDirectory())&&(console.error(Bt(`\uB3D9\uAE30\uD654 \uB8E8\uD2B8\uAC00 \uB514\uB809\uD1A0\uB9AC\uAC00 \uC544\uB2D9\uB2C8\uB2E4: ${l}`)),y.exit(1)),(!t&&!r||i&&!r)&&d0(f);let w=$t(l,s),D=cr(l).map(K=>(0,ps.relative)(l,K).split("\\").join("/")),k=D.filter(K=>!w.ignores(K)&&!It(l,K)),T=D.length-k.length,S=Mo(k),C=Object.fromEntries(k.map(K=>[K,tu(l,K).title])),I=!u.length&&!r?an(l).entries:void 0,O=u.length?Vy(k,u,l):r?k:_0(l);if(O.some(K=>!k.includes(K)))throw new Error("\uC5C5\uB85C\uB4DC \uB300\uC0C1 \uBB38\uC11C\uAC00 \uC5C6\uAC70\uB098 \uC81C\uC678\uB418\uC5C8\uC2B5\uB2C8\uB2E4. unstage \uD6C4 \uB2E4\uC2DC \uCD94\uAC00\uD558\uC138\uC694.");let W=O.filter(K=>hr(K,h)),H=new Set(W),j=zy(W,S),v=jy(j),N=K=>!H.has(K),P=u.length?`\uC120\uD0DD ${H.size}/${k.length}\uAC74`+(v.length>H.size?we(` (+\uC0C1\uC704 ${v.length-H.size})`):""):`${v.length}\uAC74`,E=T?we(` (\uC81C\uC678 ${T})`):"";console.log(`${we("base:")} ${Re(l)}
225
+ ${we("\uC2A4\uD398\uC774\uC2A4 \uB8E8\uD2B8:")} ${Re(`${b.path} (#${b.id})`)}
226
+ ${we("\uC791\uC5C5\uACF5\uAC04:")} ${Re(l)}
227
+ ${we("\uB300\uC0C1:")} ${P}${E}`);let R=K=>/README\.md$/.test(K),M=K=>K===""?0:K.split("/").length,F=K=>K.split("/").slice(0,-1).join("/"),$=K=>K.includes("/")?K.slice(0,K.lastIndexOf("/")):"",X=K=>R(K)?Math.max(0,M(F(K))-1):M(F(K)),ge=K=>Math.max(0,M(K)-1),ke=K=>{let ve=[];for(let se=F(K);se!=="";se=$(se))S[se]||ve.unshift(se);return ve};if(r){let K=new Set;for(let ve of v){for(let se of ke(ve))K.has(se)||(K.add(se),console.log(` ${" ".repeat(ge(se))}${Re(`\u{1F4C1} ${se}/`)}`));console.log(` ${" ".repeat(X(ve))}${ve} ${we("\u2014")} ${Re(`"${C[ve]}"`)}`)}return}let me=lr(m),oe=E0(l,me,k,W,b),q=new Set(W.filter(K=>!me[K]&&oe[K]?.pageId));for(let K of v)if(N(K)&&!oe[K]?.pageId)throw new Error(`\uC0C1\uC704 \uBB38\uC11C\uC758 \uB9E4\uD551\uC774 \uC5C6\uC2B5\uB2C8\uB2E4: ${K}. \uBA3C\uC800 Pull\uB85C \uAE30\uC874 \uC0C1\uC704 \uBB38\uC11C\uB97C \uC5F0\uACB0\uD558\uAC70\uB098 \uC0C1\uC704 \uBB38\uC11C\uB3C4 \uD568\uAED8 \uCD94\uAC00\uD558\uC138\uC694.`);let G=b;if(G.type==="page"&&H.has("README.md")&&oe["README.md"]?.pageId!==G.id)throw new Error("\uB8E8\uD2B8 README.md\uB294 \uC120\uD0DD\uD55C \uC6D0\uACA9 \uD398\uC774\uC9C0\uC758 \uBCF8\uBB38\uC785\uB2C8\uB2E4. pull\uB85C \uAE30\uC900\uC744 \uD655\uBCF4\uD558\uAC70\uB098 \uC0C8 \uD558\uC704 \uBB38\uC11C\uB294 \uB2E4\uB978 \uD30C\uC77C\uBA85\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.");let ue=G.id;console.log(we("Markdown \uC804\uCC98\uB9AC: \uC704\uD0A4\uB9C1\uD06C\xB7\uAC01\uC8FC\xB7PDF \uD398\uC774\uC9C0 \uCC38\uC870\uB97C \uC900\uBE44\uD569\uB2C8\uB2E4. \uC6D0\uBCF8\uC740 \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")),yn("\uC120\uD0DD\uD55C \uBB38\uC11C\xB7\uCCA8\uBD80 \uC804\uCC98\uB9AC");let Ue=await zo(l,k,W,{referenceRoots:a("--reference-root"),baseUrl:f.baseUrl});try{let{render:K,docs:ve}=Ue,se=Object.fromEntries(W.map(Z=>[Z,Tt(ve[Z].title,K(Z,ve[Z].body,ve[Z].title))]));if(I)for(let Z of W)vm(l,Z,se[Z],I[Z]);let Et=Object.fromEntries(W.map(Z=>[Z,re((0,ps.resolve)(l,Z),"utf8")])),nt=Object.fromEntries(W.map(Z=>[Z,Vo(l,Z,K(Z,ve[Z].body,ve[Z].title))])),nr=vi(l,k),Qn=Z=>{let z=oe[Z];return z?.localHash?z.localHash===nt[Z]:!!z?.hash&&(z.hash===se[Z]||z.hash===Tt(nr.docs[Z].title,nr.render(Z,nr.docs[Z].body,nr.docs[Z].title))||z.hash===Tt(ve[Z].title,K(Z,ve[Z].body,ve[Z].title,"panels"))||z.hash===Tt(ve[Z].title,K(Z,ve[Z].body,ve[Z].title,!0))||z.hash===Tt(nr.docs[Z].title,nr.render(Z,nr.docs[Z].body,nr.docs[Z].title,"panels"))||z.hash===Tt(nr.docs[Z].title,nr.render(Z,nr.docs[Z].body,nr.docs[Z].title,!0)))},Vr=Z=>!n&&Qn(Z)?oe[Z].hash:se[Z],ir=Z=>!n&&!i&&Qn(Z)&&!oe[Z]?.pendingMove,zr=W.some(Z=>!ir(Z)),Jr,An="";if(zr&&(!t||i)){Jr=os({baseUrl:f.baseUrl,email:f.email,token:f.token},{force:n,verify:i,scope:{id:G.id,spaceId:h.connection.spaceId}}),yn("\uC6D0\uACA9 \uC5F0\uACB0\uACFC \uBB38\uC11C \uBC84\uC804 \uAC80\uC99D"),An=await o0(Jr,h);for(let Z of v){if(!N(Z)&&ir(Z))continue;if(N(Z)&&oe[Z]?.pageId){await Jr.assertInScope(oe[Z].pageId);continue}let{title:z,body:Ce,fm:pe}=ve[Z],ze=Vr(Z),ht=oe[Z]??(pe.pageId?{pageId:pe.pageId,title:z}:void 0);ht&&await Jr.checkPage({[Z]:ht},An,Z,ze)}}if(t){let Z=new Set;for(let z of v){for(let mr of ke(z))if(!Z.has(mr)){Z.add(mr);let Ai=oe[`${mr}/`];console.log(` [${Ai?.pageId?vn("\uD3F4\uB354"):Ur("\uD3F4\uB354+")}] \u{1F4C1} ${mr}/`)}let Ce=oe[z];if(N(z)&&Ce?.pageId){console.log(` [${vn("\uC0C1\uC704")}] ${z} ${we(`(pageId #${Ce.pageId} \uB9CC \uC0AC\uC6A9)`)}`);continue}let{title:pe,body:ze,fm:ht}=ve[z],De=K(z,ze,pe);for(let mr of De.referenceLinks)console.log(we(` \uCC38\uC870 \uB9C1\uD06C: ${mr}`));for(let mr of De.linkWarnings)console.error(zt(` \u26A0 ${z}: ${mr}`));let Gr=Vr(z),qt=oe[z],Ae=qt?.pageId?qt.pendingMove?Re(!n&&qt.hash===Gr?"\uC704\uCE58 \uD655\uC778/\uC774\uB3D9":"\uC704\uCE58 \uD655\uC778/\uC774\uB3D9 + \uBCC0\uACBD"):!n&&Qn(z)?vn(q.has(z)?"\uB85C\uCEEC \uACBD\uB85C \uC5F0\uACB0":"\uB3D9\uC77C"):zt("\uBCC0\uACBD"):ht.pageId?Re("\uC5F0\uACB0"):Ur("\uC2E0\uADDC"),ei=Vi(z,S),Nt=De.anchorLinks||De.anchorsPlaced?`, \uC139\uC158\uB9C1\uD06C: ${De.anchorLinks}, \uC575\uCEE4: ${De.anchorsPlaced}`:"";console.log(` [${Ae}] ${z} ${we("\u2192")} ${Re(`"${pe}"`)} ${we(`(\uBD80\uBAA8: ${ei??"ROOT"}, \uB0B4\uBD80\uB9C1\uD06C: ${De.internalLinks}${Nt}, \uC774\uBBF8\uC9C0: ${De.images.length}, \uCCA8\uBD80: ${De.attachments.length})`)}`),De.deadAnchors.length&&console.error(zt(` \u26A0 \uB300\uC751 \uD5E4\uB529 \uC5C6\uB294 \uC575\uCEE4 ${De.deadAnchors.length}\uAC1C: `)+we(De.deadAnchors.slice(0,3).join(" ")))}console.log(`
228
+ `+we(i?"--dry-run --verify: \uC6D0\uACA9 \uC870\uD68C\uB9CC \uC218\uD589, \uBCC0\uACBD \uC5C6\uC74C.":"--dry-run: \uC2E4\uC81C \uD638\uCD9C \uC5C6\uC74C."));return}let Ir=Jr,Ke=oe,le=0,ne=0,ae=0,Te=0,tt=0,Nr=0,kr=0,xs=new Map,un=async Z=>{let z=`${Z}/`,Ce=pl($(Z),S),pe=Ce?Ke[Ce]?.pageId:ue;if(Ce&&!pe)return console.error(zt(` \u2717 \uD3F4\uB354 \uAC74\uB108\uB700 ${Z}/ (\uBD80\uBAA8 '${Ce}' \uAC00 \uC544\uC9C1 \uC5C6\uC74C)`)),!1;let ze=Ke[z];try{let ht=Z.split("/").pop(),De=await Ir.upsertFolder(An,f.spaceKey,ht,pe,ze?.type==="folder"?ze.pageId:void 0),Gr=De.id;return Ke[z]=ze?.pageId===Gr?ze:{pageId:Gr,title:ht,type:"folder"},$n(m,Ke),console.log(` ${Re(De.created?"\u{1F4C1} \uD3F4\uB354":"\u{1F4C1} \uD3F4\uB354 \uC5F0\uACB0")} ${Z}/ ${we(`(\uBD80\uBAA8: ${Ce??"ROOT"})`)}`),De.created&&Nr++,!0}catch(ht){return console.error(Bt(` \u2717 \uD3F4\uB354 \uC900\uBE44 \uC2E4\uD328 ${Z}/`)+`
229
+ ${ht.message}`),!1}};for(let[Z,z]of v.entries()){if(yn(`\uBB38\uC11C \uCC98\uB9AC ${Z+1}/${v.length} \xB7 ${z}`),!N(z)&&ir(z)){q.has(z)&&($n(m,Ke),console.log(` ${vn("\uB85C\uCEEC \uACBD\uB85C \uC5F0\uACB0")} ${z} ${we("(\uC6D0\uACA9 \uBCF8\uBB38\xB7\uC81C\uBAA9\xB7\uC704\uCE58 \uC720\uC9C0)")}`)),console.log(` = \uBCC0\uACBD\uC5C6\uC74C ${z}`),tt++,Go(l,z,I?.[z]);continue}if(N(z)&&!zr){kr++;continue}let Ce=!0;for(let Nt of ke(z))if(xs.has(Nt)||xs.set(Nt,await un(Nt)),xs.get(Nt)||(Ce=!1),!Ce)break;if(!Ce){le++,console.error(zt(` \u2717 \uAC74\uB108\uB700 ${z} (\uC0C1\uC704 \uD3F4\uB354 \uBBF8\uC0DD\uC131)`));continue}if(N(z)&&Ke[z]?.pageId){console.log(` ${vn("\xB7 \uC0C1\uC704")} ${z} ${we(`(pageId #${Ke[z].pageId} \uB9CC \uC0AC\uC6A9)`)}`),kr++;continue}let{title:pe,body:ze,fm:ht}=ve[z],De=K(z,ze,pe);for(let Nt of De.referenceLinks)console.log(we(` \uCC38\uC870 \uB9C1\uD06C: ${Nt}`));for(let Nt of De.linkWarnings)console.error(zt(` \u26A0 ${z}: ${Nt}`));let Gr=Vr(z),qt=Vi(z,S);De.deadAnchors.length&&console.error(zt(` \u26A0 \uB300\uC751 \uD5E4\uB529 \uC5C6\uB294 \uC575\uCEE4 ${z}`)+we(` ${De.deadAnchors.slice(0,3).join(" ")}${De.deadAnchors.length>3?` \uC678 ${De.deadAnchors.length-3}`:""}`));let ei=(Ke[z]?.pendingMove?void 0:Ke[z]?.remoteParentId)??(qt?Ke[qt]?.pageId:ue);if(qt&&!ei){le++,console.error(zt(` \u2717 \uAC74\uB108\uB700 ${z} (\uBD80\uBAA8 '${qt}' \uAC00 \uC544\uC9C1 \uC5C6\uC74C)`));continue}!Ke[z]?.pageId&&ht.pageId&&(Ke[z]={pageId:ht.pageId,title:pe});try{I&&vm(l,z,se[z],I[z]);let Nt=await Ir.upsertPage(Ke,An,z,pe,De.storage,Gr,ei);if($n(m,Ke),Nt==="skipped"){Ke[z].localHash=nt[z],Ke[z].sourceObject=ss(l,Et[z]),$n(m,Ke),console.log(` ${vn("= \uBCC0\uACBD\uC5C6\uC74C")} ${z}`),tt++,Go(l,z,I?.[z]);continue}if(Nt==="moved"){Ke[z].localHash=nt[z],Ke[z].sourceObject=ss(l,Et[z]),$n(m,Ke),console.log(` ${Re("\u2192 \uC774\uB3D9")} ${z} (\uBD80\uBAA8: ${qt??"ROOT"})`),ne++,Go(l,z,I?.[z]);continue}let mr=await Ir.uploadAttachments(Ke[z].pageId,De.attachments,l),Ai=De.attachments.length?`, \uCCA8\uBD80 ${mr}/${De.attachments.length}`:"";mr!==De.attachments.length&&(le++,delete Ke[z].hash,$n(m,Ke)),mr===De.attachments.length&&(Ke[z].localHash=nt[z],Ke[z].sourceObject=ss(l,Et[z]),$n(m,Ke)),mr===De.attachments.length&&Go(l,z,I?.[z]);let io=Nt==="created"?Ur("\uFF0B \uC0DD\uC131"):zt("\u21BB \uAC31\uC2E0");console.log(` ${io} ${z} ${we("\u2192")} ${Re(`"${pe}"`)} ${we(`(\uBD80\uBAA8: ${qt??"ROOT"}${Ai})`)}`),Nt==="created"?ae++:Te++}catch(Nt){le++,console.error(Bt(` \u2717 \uC2E4\uD328 ${z}`)+`
230
+ ${Nt.message}`)}}le&&(y.exitCode=1),console.log(`
231
+ `+Ko(le?"\uC77C\uBD80 \uC2E4\uD328":"\uC644\uB8CC")+` ${Ur(`\uC0DD\uC131 ${ae}`)} ${zt(`\uAC31\uC2E0 ${Te}`)} ${Re(`\uC774\uB3D9 ${ne}`)} ${vn(`\uBCC0\uACBD\uC5C6\uC74C ${tt}`)}`+(Nr?` ${Re(`\uD3F4\uB354 ${Nr}`)}`:"")+(kr?` ${vn(`\uC0C1\uC704 ${kr}`)}`:"")+` ${we(`\uB300\uC0C1 ${v.length-kr}`)}`)}finally{Ue.dispose()}}p();async function tv(e){let t;for(let a=0;a<e.length;a++)if(e[a]==="--base"){let s=e[++a];if(!s||s.startsWith("-"))throw new Error("--base \uB4A4\uC5D0 \uC791\uC5C5\uACF5\uAC04 \uD3F4\uB354\uB97C \uC9C0\uC815\uD558\uC138\uC694.");t=s}else if(e[a].startsWith("-")&&!["--no-color","--obsidian","--overwrite"].includes(e[a]))throw new Error(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 restore \uC635\uC158: ${e[a]}. csync restore --help\uB97C \uD655\uC778\uD558\uC138\uC694.`);let r=Jn(t);if(!r)throw new Error("\uC791\uC5C5\uACF5\uAC04\uC744 \uC9C0\uC815\uD558\uC138\uC694: csync restore README.md --base <\uD3F4\uB354>");let n=e.includes("--overwrite"),i=Jo(r,Xn(e).slice(1),n),o=an(r).entries;await w0(["pull","--base",r,...e.includes("--obsidian")?["--obsidian"]:[]],{restorePaths:i,restoreOverwrite:n});for(let a of i)Go(r,a,o[a]);console.log("\uBCF5\uAD6C\uD55C \uBB38\uC11C\uB294 \uC5C5\uB85C\uB4DC \uB300\uC0C1\uC73C\uB85C \uCD94\uAC00\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC5C5\uB85C\uB4DC\uD558\uB824\uBA74 \uC9C1\uC811 csync add\uB85C \uC120\uD0DD\uD558\uC138\uC694.")}p();qe();var Me=de(je(),1);p();var rI=()=>({cssJunk:0,codeLang:0,trailingWs:0,escapes:0,tightList:0,dupTitle:0}),Am=e=>Object.values(e).reduce((t,r)=>t+r,0),nv=/^\s*(?:```|~~~)/;function rv(e){return/^[ \t]*[-*+]\s/.test(e)?"ul":/^[ \t]*\d+[.)]\s/.test(e)?"ol":null}function nI(e){return e.replace(/\\?\[data-colorid=[^\]]*\\?\]\s*\{[^}]*\}/g,"").replace(/\\?\[data-colorid=[^\]]*\\?\]/g,"").replace(/\{\s*color\s*:\s*[^}]*\}/g,"")}function iI(e){return/^\s*(package|import)\s+(java|javax|com|org)\b/m.test(e)||/\b(public|private|protected)\s+(static\s+)?(final\s+)?(class|interface|enum|void)\b/.test(e)||/\bSystem\.(out|err)\.print/.test(e)||/@Override\b/.test(e)}function oI(e,t){let r=[],n=!1;for(let i=0;i<e.length;i++){let o=e[i];if(nv.test(o)&&(n=!n),!n&&o.trim()===""&&r.length){let a=rv(r[r.length-1]),s=rv(e[i+1]??"");if(a&&a===s){t.tightList++;continue}}r.push(o)}return r}function aI(e,t){let{data:r,body:n}=kt(e);if(!r.title)return e;let i=n.split(`
232
+ `),o=i.findIndex(u=>u.trim()!=="");if(o===-1)return e;let a=i[o].match(/^#\s+(.*)$/);if(!a||a[1].trim()!==r.title.trim())return e;for(i.splice(o,1);i[o]?.trim()==="";)i.splice(o,1);return t.dupTitle++,e.slice(0,e.length-n.length)+i.join(`
233
+ `)}function iv(e){let t=rI(),r=aI(e,t),n=r.split(`
234
+ `),i=[],o=!1,a=-1;for(let c of n){if(nv.test(c)){if(!o)o=!0,a=i.length,i.push(c);else{o=!1;let m=i[a];if(/^\s*(?:```|~~~)java\s*$/.test(m)){let f=i.slice(a+1).join(`
235
+ `);iI(f)||(i[a]=m.replace(/java\s*$/,"plaintext"),t.codeLang++)}i.push(c)}continue}if(o){let m=c.replace(/[ \t]+$/,"");m!==c&&t.trailingWs++,i.push(m);continue}let l=c,d=nI(c);d!==c&&(t.cssJunk++,l=d.replace(/[ \t]{2,}/g," ").replace(/[ \t]+$/,"")),i.push(l)}let s=ku(oI(i,t).join(`
236
+ `)),u=c=>(c.match(/\\/g)||[]).length;return t.escapes=Math.max(0,u(r)-u(s)),s=s.replace(/^#{1,6}[ \t]*$/gm,""),{text:s,stats:t}}function km(e,t){let r=e.indexOf(t);return r>=0&&r+1<e.length?e[r+1]:void 0}var Cm=e=>{try{return decodeURIComponent(e)}catch{return e}},v0=e=>e.split("\\").join("/"),ov=(e,t)=>{let r=(0,Me.relative)(e,t);return r===""||r!==".."&&!r.startsWith("../")&&!r.startsWith("..\\")&&!(0,Me.isAbsolute)(r)};function Dm(e){if(J(e))return ot(e);let t=(0,Me.dirname)(e);return t===e?e:(0,Me.join)(Dm(t),(0,Me.basename)(e))}var sI=/!?\[[^\]]*\]\((<[^>]+>|[^()\s]+)\)/g;function Tm(e,t){let r=[];for(let n of e.matchAll(sI)){let i=Cm(n[1].replace(/^<(.*)>$/,"$1")).split("#")[0];if(/^(https?:|data:)/i.test(i))continue;let o=(0,Me.resolve)((0,Me.dirname)(t),i);J(o)&&gt(o).isFile()&&!/\.md$/i.test(o)&&r.push(o)}return r}function uI(e){if(!e.length)return null;let t=e.map(o=>{let a=(0,Me.resolve)(o);return gt(a).isDirectory()?a:(0,Me.dirname)(a)}),r=t.map(o=>o.split("/")),n=r[0],i=0;for(;i<n.length&&r.every(o=>o[i]===n[i]);)i++;return r.length===1?t[0]:n.slice(0,i).join("/")||"/"}function cI(e,t,r,n,i,o,a=s=>s){return Ny(e,(s,u)=>{if(/^(https?:|mailto:)/i.test(s))return null;if(s.startsWith("#")){let D=o(Cm(s.slice(1)));if(!D)return null;let k=u.trim();return k&&k!==D?`[[#${D}|${k}]]`:`[[#${D}]]`}let[c,...l]=Cm(s).split("#");if(/\.pdf$/i.test(c)){let D=(0,Me.resolve)((0,Me.dirname)(t),c),k=(0,Me.relative)(r,D).split("\\").join("/");return!J(a(D))||k.startsWith("../")?null:`[[${k}${l.length?"#"+l.join("#"):""}|${u}]]`}if(!/\.md$/i.test(c))return null;let d=(0,Me.resolve)((0,Me.dirname)(t),c);if(!J(d)||(0,Me.relative)(r,d).startsWith(".."))return null;let m=(0,Me.basename)(d).replace(/\.md$/i,"");if(n.get(m)!==1)return null;let f=l.join("#"),h=f?i(d,f):void 0,b=h?`#${h}`:"",w=u.trim();return w&&w!==m?`[[${m}${b}|${w}]]`:b?`[[${m}${b}|${m}]]`:`[[${m}]]`})}async function av(e){let t=km(e,"--to"),r=e.includes("--fix");t!==void 0&&t!=="obsidian"&&t!=="markdown"&&(console.error(Bt(`\u2717 \uC54C \uC218 \uC5C6\uB294 \uBCC0\uD658 \uBC29\uD5A5: ${t}`)+`
237
+ --to obsidian | --to markdown`),y.exit(1));let n=t;!n&&!r&&(console.error(Bt("\u2717 \uD560 \uC77C\uC744 \uC9C0\uC815\uD558\uC138\uC694: --to <\uD615\uC2DD> \uB610\uB294 --fix")+`
238
+ \uC608) ${Re("confluence-sync convert --to obsidian ./docs")}
239
+ ${Re("confluence-sync convert --fix ./docs")} ${we("(\uC61B pull \uACB0\uACFC \uBCF4\uC815)")}
240
+ ${Re("confluence-sync convert --to obsidian --fix ./docs")} ${we("(\uB458 \uB2E4)")}`),y.exit(1));let i=e.includes("--dry-run"),o=km(e,"--out"),a=o?(0,Me.resolve)(o):void 0,s=[];for(let H=0;H<e.length;H++){if(e[H]==="--to"||e[H]==="--base"||e[H]==="--out"){H++;continue}e[H].startsWith("-")||s.push(e[H])}let u=s.slice(1);for(let H of u)J((0,Me.resolve)(H))||(console.error(Bt(`\u2717 \uC5C6\uB294 \uACBD\uB85C: ${H}`)),y.exit(1));let c=km(e,"--base"),l=(0,Me.resolve)(c??uI(u)??y.cwd());(!J(l)||!gt(l).isDirectory())&&(console.error(Bt(`\u2717 --base \uAC00 \uB514\uB809\uD1A0\uB9AC\uAC00 \uC544\uB2D9\uB2C8\uB2E4: ${l}`)),y.exit(1));let d=cr(l),m=d.map(H=>v0((0,Me.relative)(l,H))),f=Pa(m,Fa(l).map(H=>v0((0,Me.relative)(l,H)))),h=new Map;for(let H of d){let j=(0,Me.basename)(H).replace(/\.md$/i,"");h.set(j,(h.get(j)??0)+1)}let b=new Map,w=(H,j)=>{let v=b.get(H);return v||(v=Qs(kt(re(H,"utf8")).body),b.set(H,v)),v.get(j.toLowerCase())},D=u.length?d.filter(H=>u.some(j=>{let v=(0,Me.resolve)(j);return ov(v,H)})):d,k=u.map(H=>(0,Me.resolve)(H)).filter(H=>gt(H).isFile()&&!d.includes(H));k.length&&console.error(zt(`\u26A0 --base(${l}) \uBC16\uC758 \uD30C\uC77C\uC740 \uAC74\uB108\uB701\uB2C8\uB2E4:`)+`
241
+ `+k.join(`
242
+ `)),D.length||(console.error(Bt("\u2717 \uB300\uC0C1 .md \uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")+we(`
243
+ (\uD30C\uC77C\uC744 \uC9C1\uC811 \uC9C0\uBAA9\uD588\uB2E4\uBA74 --base \uB85C \uBB38\uC11C \uD2B8\uB9AC \uB8E8\uD2B8\uB97C \uC54C\uB824\uC8FC\uC138\uC694)`)),y.exit(1));let T=D,S=[n==="obsidian"?"\uC0C1\uB300 .md \uB9C1\uD06C \u2192 [[wikilink]]":n==="markdown"?"[[wikilink]] \u2192 \uC0C1\uB300 .md \uB9C1\uD06C":"",r?"\uBCC0\uD658 \uD754\uC801 \uBCF4\uC815":""].filter(Boolean).join(" + "),C=T.length===d.length?`${T.length}\uAC74`:`\uC120\uD0DD ${T.length}/${d.length}\uAC74`;a&&ov(Dm(l),Dm(a))&&(console.error(Bt(`\u2717 --out \uC774 base \uC548\uC5D0 \uC788\uC2B5\uB2C8\uB2E4: ${a}`)+we(`
244
+ \uC6D0\uBCF8 \uD2B8\uB9AC\uB97C \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uB3C4\uB85D base \uBC16\uC758 \uACBD\uB85C\uB97C \uC4F0\uC138\uC694.`)),y.exit(1)),console.log(`${we("base:")} ${Re(l)}
245
+ ${we("\uB300\uC0C1:")} ${C} ${we("\u2014")} ${S}`+(a?`
246
+ ${we("\uCD9C\uB825:")} ${Re(a)} ${we("(\uC6D0\uBCF8 \uC720\uC9C0)")}`:"")+(i?we(" (dry-run)"):""));let I=0,O=new Set,W={cssJunk:0,codeLang:0,trailingWs:0,escapes:0,tightList:0,dupTitle:0};for(let H of T){let j=v0((0,Me.relative)(l,H)),v=re(H,"utf8"),N=v,P=new Set(n==="obsidian"?[]:Tm(v,H)),E=[],R=x0(H,l);if(r){let M=iv(N);N=M.text;let F=Am(M.stats);if(F){for(let $ of Object.keys(W))W[$]+=M.stats[$];E.push(we(`\uBCF4\uC815 ${F}`))}}if(n==="obsidian"){let M=Rp(N,H,l);M.assets.forEach($=>P.add($)),Tm(M.text,H).forEach($=>P.add($)),N=R.rewrite(ll(M.text));let F=Qs(kt(N).body);N=cI(N,H,l,h,w,$=>F.get($.toLowerCase()),R.source)}else if(n==="markdown"){let M=await b0(N,H,l,f,a??l,i,R);M.assets.forEach(F=>P.add(F)),N=M.text,M.pages&&E.push(we(`PDF ${M.pages}\uCABD \uC774\uBBF8\uC9C0`))}else a&&(N=R.rewrite(N));if(!(!a&&N===v)){if(!i)for(let[M,F]of R.copies){let $=(0,Me.join)(a??l,M);$!==F&&(Ie((0,Me.dirname)($),{recursive:!0}),qr(F,$)),O.add(M)}if(a){let M=(0,Me.join)(a,j);if(!i){Ie((0,Me.dirname)(M),{recursive:!0}),rt(M,N);for(let F of new Set([...P,...Tm(N,H)])){if([...R.copies.values()].includes(F))continue;let $=v0((0,Me.relative)(l,F));if($.startsWith("..")||O.has($))continue;let X=(0,Me.join)(a,$);Ie((0,Me.dirname)(X),{recursive:!0}),qr(F,X),O.add($)}}}else i||rt(H,N);N!==v&&(I++,console.log(` ${Re("\u21BB")} ${j}${E.length?" "+E.join(" "):""}`))}}console.log(`
247
+ `+Ko("\uC644\uB8CC")+` ${I?Ur(`${I}\uAC1C \uD30C\uC77C \uBCC0\uACBD`):vn("\uACE0\uCE60 \uAC83 \uC5C6\uC74C")}`+(a?` ${Re(`${T.length}\uAC1C \uD30C\uC77C \uCD9C\uB825`)}${O.size?we(`, \uCCA8\uBD80 ${O.size}`):""}`:"")+` ${we(`\uB300\uC0C1 ${T.length}`)}`),r&&Am(W)&&console.log(we(" \uBCF4\uC815:")+` \uC911\uBCF5 \uC81C\uBAA9 ${W.dupTitle} \uCF54\uB4DC\uBE14\uB85D \uC5B8\uC5B4 ${W.codeLang} CSS \uC794\uD574 ${W.cssJunk} \uC774\uC2A4\uCF00\uC774\uD504 ${W.escapes} \uB9AC\uC2A4\uD2B8 \uBE48 \uC904 ${W.tightList} \uC904\uB05D \uACF5\uBC31 ${W.trailingWs}`),i&&console.log(we("--dry-run: \uD30C\uC77C\uC744 \uC4F0\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))}async function sv(e,t,r,n){let i=y.env,o=["log","error","warn","info"],a=o.map(s=>console[s]);y.env={NO_COLOR:"1",...t},y.argv=e,y.exitCode=0;for(let s of o)console[s]=(...u)=>r(u.map(c=>typeof c=="string"?c:JSON.stringify(c)).join(" ")+`
248
+ `);try{return await n(),y.exitCode??0}finally{y.env=i,o.forEach((s,u)=>{console[s]=a[u]})}}var S0=async(e,t,r)=>{let n={push:ev,pull:w0,fetch:w3,restore:tv};if(!n[e[0]])throw Error("\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uBE0C\uB77C\uC6B0\uC800 \uBA85\uB839\uC785\uB2C8\uB2E4.");return sv(e,t,r,()=>n[e[0]](e[0]==="push"?e.slice(1):e))};async function uv(e){let t="";if(await sv(e,{},n=>{t+=n},()=>av(["convert",...e])))throw Error(t||"\uBB38\uC11C \uBCC0\uD658\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.");return{stdout:t}}qe();Wt();qe();var lt=de(je(),1),fv=de(jo(),1);p();qe();qe();Wt();var wt=de(je(),1),sn=(e,t)=>{let r=(0,wt.relative)(e,t);return!(0,wt.isAbsolute)(r)&&r!==".."&&!r.startsWith("../")&&!r.startsWith("..\\")},Nm=e=>e.code==="ENOENT";async function Rm(e){try{return await ft(e)}catch(t){if(!Nm(t))throw t;let r=(0,wt.dirname)(e);if(r===e)throw t;return(0,wt.join)(await Rm(r),(0,wt.basename)(e))}}async function Im(e){let t=$e("sha256");for await(let r of ia(e))t.update(r);return t.digest("hex")}var hs=class extends Error{constructor(r){super(`\uB0B4\uC6A9\uC774 \uB2E4\uB978 \uAE30\uC874 \uD30C\uC77C ${r.length}\uAC1C\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uB36E\uC5B4\uC4F0\uAE30\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.`);this.conflicts=r}conflicts};async function cv(e,t,r={}){let n=[],i=async f=>{for(let h of await Ln(f,{withFileTypes:!0})){let b=(0,wt.join)(f,h.name);if(h.isDirectory())await i(b);else if(h.isFile())n.push((0,wt.relative)(e,b));else throw new Error("\uCD9C\uB825\uC5D0 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uD615\uC2DD\uC774 \uC788\uC2B5\uB2C8\uB2E4.")}};await i(e);let o=new Set,a=new Set,s=[];for(let f of n){let h=(0,wt.join)(t,f),b=h;for(;sn(t,b);){try{let w=await Mr(b);if(b===h&&w.isFile()&&!w.isSymbolicLink()){let D=await Im(b);w.size===(await Mr((0,wt.join)(e,f))).size&&D===await Im((0,wt.join)(e,f))?o.add(f):(a.add(f),r[f]!==D&&s.push({path:f,hash:D}))}else if(b===h||w.isSymbolicLink()||!w.isDirectory())throw new Error(`\uCD9C\uB825 \uACBD\uB85C\uAC00 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4: ${b}
249
+ \uB2E4\uB978 \uCD9C\uB825 \uD3F4\uB354\uB97C \uC9C0\uC815\uD574 \uC8FC\uC138\uC694.`)}catch(w){if(!Nm(w))throw w}if(b===t)break;b=(0,wt.dirname)(b)}}if(s.length)throw new hs(s);let u,c=[],l=[],d=[],m=async f=>{try{let h=await Mr(f);if(!h.isDirectory()||h.isSymbolicLink())throw new Error(`\uCD9C\uB825 \uD3F4\uB354\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694: ${f}`)}catch(h){if(!Nm(h))throw h;await m((0,wt.dirname)(f)),await oa(f),l.push(f)}};try{for(let f of n){if(o.has(f))continue;let h=(0,wt.resolve)(t,f);if(await m((0,wt.dirname)(h)),a.has(f)){let b=await Mr(h);if(!b.isFile()||b.isSymbolicLink())throw new Error(`\uCD9C\uB825 \uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4: ${h}`);let w=await Im(h);if(r[f]!==w)throw new hs([{path:f,hash:w}]);u??=await Oi((0,wt.join)(t,".csync-backup-"));let D=(0,wt.join)(u,String(c.length));await fn(h,D),c.push({target:h,backup:D})}await rc((0,wt.join)(e,f),h,Mi.COPYFILE_EXCL),d.push(h)}}catch(f){for(let h of d.reverse())await ks(h);for(let h of c.reverse())await rc(h.backup,h.target,Mi.COPYFILE_EXCL);u&&await dn(u,{recursive:!0,force:!0});for(let h of l.reverse())await lf(h);throw f}return u&&await dn(u,{recursive:!0,force:!0}),{created:d.length-c.length,overwritten:c.length,reused:o.size}}var Mm=ds;function lv(e){let t=e?.format;if(t!==void 0&&t!=="markdown"&&t!=="obsidian")throw new Error("\uB0B4\uBD80 \uB9C1\uD06C \uD615\uC2DD\uC744 \uD655\uC778\uD558\uC138\uC694. Markdown \uB610\uB294 Obsidian\uC744 \uC120\uD0DD\uD558\uC138\uC694.");return t??"markdown"}async function ro(e,t,r){if(t){let a=r.get(t);if(!a)throw new Error("\uAC00\uC838\uC628 .env \uC124\uC815\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uD30C\uC77C\uC744 \uB2E4\uC2DC \uAC00\uC838\uC624\uC138\uC694.");return{env:a.env,source:a.source}}let n=(0,lt.join)(e,".env"),i={};try{i=(0,fv.parse)(await Lt(n))}catch(a){if(a.code!=="ENOENT")throw new Error("\uAE30\uC900 \uD3F4\uB354\uC758 .env \uD30C\uC77C\uC744 \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}let o={};for(let a of Mm)o[a]=i[a]?.trim()??"";return{env:o,source:n}}function no(e,t,r){return{source:t,baseUrl:e.CONFLUENCE_BASE_URL,email:e.CONFLUENCE_EMAIL,spaceKey:e.CONFLUENCE_SPACE_KEY,connected:r?.version===2&&!!r.remoteRoot&&r.connection?.baseUrl.replace(/\/$/,"")===e.CONFLUENCE_BASE_URL?.replace(/\/$/,"")&&r.connection?.spaceKey===e.CONFLUENCE_SPACE_KEY,rootPath:r?.remoteRoot?.path??null,hasToken:!!e.CONFLUENCE_API_TOKEN,missing:Mm.slice(0,4).filter(n=>!e[n])}}async function A0(e,t,r=!1){let n=$e("sha256").update(JSON.stringify(t)),i=async o=>{let a=(await Ln(o,{withFileTypes:!0})).sort((s,u)=>s.name.localeCompare(u.name));for(let s of a){if(s.name==="node_modules"||s.name.startsWith(".")&&![wn,".confluence-sync.json",".confluence-syncignore",".confluence-workspace.json"].includes(s.name))continue;let u=(0,lt.join)(o,s.name);if(!((0,lt.relative)(e,u).split("\\").join("/")===`${wn}/remote.json`||r&&(0,lt.relative)(e,u).split("\\").join("/")===`${wn}/index.json`)){if(s.isDirectory())await i(u);else if(s.isFile())if(r){let c=await xt(u);n.update(JSON.stringify([(0,lt.relative)(e,u),c.size,c.mtimeMs,c.ctimeMs])),(/\.md$/i.test(u)||s.name.startsWith(".")||(0,lt.relative)(e,u).split(/[\\/]/).includes(wn))&&n.update(await Lt(u))}else{let c=$e("sha256");for await(let l of ia(u))c.update(l);n.update(JSON.stringify([(0,lt.relative)(e,u),c.digest("hex")]))}}}};return await i(e),n.digest("hex")}async function Lm(e,t){let r=e;if(!r||typeof r.base!="string"||typeof r.target!="string"||typeof r.envId!="string"||typeof r.verify!="boolean")throw new Error("\uB3D9\uAE30\uD654 \uC635\uC158\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let n=await ft((0,lt.resolve)(r.base));if((0,lt.dirname)(n)===n||!(await xt(n)).isDirectory())throw new Error("\uBB38\uC11C\uC758 \uAE30\uC900 \uD3F4\uB354\uB97C \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");if(r.referenceRoots!==void 0&&(!Array.isArray(r.referenceRoots)||r.referenceRoots.some(b=>typeof b!="string"||!b.trim())))throw new Error("\uCC38\uC870 \uD3F4\uB354 \uBAA9\uB85D\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let i=l0(n,r.referenceRoots??[]),o=r.target?await ft((0,lt.resolve)(r.target)):n;if(!sn(n,o))throw new Error("\uB3D9\uAE30\uD654 \uB300\uC0C1\uC740 \uAE30\uC900 \uD3F4\uB354 \uC548\uC5D0 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4.");if(o!==n)throw new Error("\uC6F9 Push\uB294 \uAE30\uC900 \uD3F4\uB354 \uC804\uCCB4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4. \uAC1C\uBCC4 \uD30C\uC77C\uC740 csync push <\uD30C\uC77C>\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.");let a=$t(n,[]),s=cr(n).map(b=>(0,lt.relative)(n,b).split("\\").join("/")).filter(b=>!a.ignores(b)),u=ut(n);if(Ut(u),!s.filter(b=>hr(b,u)&&!It(n,b)).length)throw new Error("\uB3D9\uAE30\uD654\uD560 Markdown \uBB38\uC11C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC120\uD0DD \uBC94\uC704\uC640 .csync/ignore(\uB610\uB294 \uAE30\uC874 \uC81C\uC678 \uD30C\uC77C)\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let l=Pt(n);try{if(!(await Mr(l)).isFile())throw new Error("invalid mapping");let b=JSON.parse(await Lt(l,"utf8"));if(!b||Array.isArray(b)||typeof b!="object"||Object.values(b).some(w=>!w||typeof w!="object"||typeof w.pageId!="string"))throw new Error("invalid mapping")}catch(b){if(b.code!=="ENOENT")throw new Error("\uD398\uC774\uC9C0 \uB9E4\uD551 \uD30C\uC77C\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. .csync/mapping.json \uB610\uB294 \uAE30\uC874 \uB9E4\uD551\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.")}_0(n);let{env:d,source:m}=await ro(n,r.envId,t),f={base:n,target:o===n?"":o,envId:r.envId,verify:r.verify,referenceRoots:i},h=await Promise.all([n,...i].map(async b=>{let w=await Lt((0,lt.join)(b,".env"),"utf8").catch(D=>{if(D.code==="ENOENT")return"";throw D});return[b,await A0(b,d),$e("sha256").update(w).digest("hex")]}));return{selection:f,env:d,config:no(d,m,u),fingerprint:JSON.stringify(h)}}function dv(e=S0,t=[]){let r=new Map(t),n=null,i=null,o=!1,a=null,s,u=async d=>{let m=d;if(!m||typeof m.base!="string"||typeof m.envId!="string")throw new Error("\uC124\uC815 \uACBD\uB85C\uB97C \uD655\uC778\uD558\uC138\uC694.");let f=await ft((0,lt.resolve)(m.base));if(!(await xt(f)).isDirectory()||(0,lt.dirname)(f)===f)throw new Error("\uB85C\uCEEC \uAE30\uC900 \uD3F4\uB354\uB97C \uC120\uD0DD\uD558\uC138\uC694.");let{env:h}=await ro(f,m.envId,r),b={baseUrl:h.CONFLUENCE_BASE_URL,email:h.CONFLUENCE_EMAIL,token:h.CONFLUENCE_API_TOKEN,spaceKey:h.CONFLUENCE_SPACE_KEY};return{base:f,config:b,body:m}},c=()=>o||n?.state==="running",l=(d,m)=>{let f={id:gr(),kind:d,state:"running",log:"",selection:m.selection,config:m.config,planId:null,startedAt:new Date().toISOString()};n=f,i=null;let{base:h,target:b,verify:w}=m.selection,D=[d==="pull"?"pull":d==="fetch"?"fetch":d==="restore"?"restore":"push","--base",h];for(let C of d==="pull"||d==="fetch"||d==="restore"?[]:m.selection.referenceRoots)D.push("--reference-root",C);b&&d!=="pull"&&D.push(b),d==="preview"&&D.push("--dry-run"),d==="restore"&&(D.push(...m.selection.restorePaths),m.selection.restoreOverwrite&&D.push("--overwrite")),["pull","restore"].includes(d)&&m.selection.format==="obsidian"&&D.push("--obsidian"),d==="pull"&&m.selection.full&&D.push("--full"),d==="pull"&&m.selection.remoteOnly&&D.push("--remote-only"),w&&d!=="pull"&&D.push("--verify");let k=!1,T=[m.env.CONFLUENCE_API_TOKEN,_.Buffer.from(`${m.env.CONFLUENCE_EMAIL}:${m.env.CONFLUENCE_API_TOKEN}`).toString("base64")].filter(Boolean),S=C=>{(C.includes("\u2717")||C.includes("\u26A0 \uC774\uBBF8\uC9C0 \uC5C6\uC74C")||C.includes("\u26A0 \uCCA8\uBD80 \uC5C6\uC74C"))&&(k=!0);for(let I of T)C=C.split(I).join("[\uBE44\uACF5\uAC1C]");f.log=(f.log+C).slice(-512e3)};return(async()=>{try{let I=await e(D,m.env,S)===0&&!k;if(I||S(`
250
+ \uC77C\uBD80 \uC791\uC5C5\uC774 \uC2E4\uD328\uD588\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC704 \uB0B4\uC5ED\uC744 \uD655\uC778\uD558\uACE0 \uB2E4\uC2DC \uBBF8\uB9AC\uBCF4\uAE30\uD574 \uC8FC\uC138\uC694.
251
+ `),d==="preview"&&I){if((await Lm(m.selection,r)).fingerprint!==m.fingerprint)throw new Error("\uBBF8\uB9AC\uBCF4\uAE30 \uC911 \uBB38\uC11C\uB098 \uC124\uC815\uC774 \uBC14\uB00C\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBBF8\uB9AC\uBCF4\uAE30\uD574 \uC8FC\uC138\uC694.");i={id:gr(),prepared:m},f.planId=i.id}if(I&&["push","pull"].includes(d)){f.phase="fetch",S(`
252
+ [\uC790\uB3D9 Fetch] \uCD5C\uC2E0 \uC6D0\uACA9 \uC0C1\uD0DC\uB97C \uB2E4\uC2DC \uD655\uC778\uD569\uB2C8\uB2E4.
253
+ `),k=!1;try{if(await e(["fetch","--base",h,"--refresh"],m.env,S)!==0||k)throw new Error("\uD6C4\uC18D Fetch\uAC00 \uC644\uB8CC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.")}catch(O){f.refreshFailed=!0,S(`[\uD6C4\uC18D Fetch \uC2E4\uD328] ${O instanceof Error?O.message:String(O)} \uC774\uBBF8 \uC644\uB8CC\uB41C ${d==="push"?"\uC5C5\uB85C\uB4DC":"\uAC00\uC838\uC624\uAE30"}\uB294 \uC720\uC9C0\uB429\uB2C8\uB2E4. Fetch\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD558\uC138\uC694.
254
+ `)}finally{delete f.phase}}f.warningCount=Number(f.log.match(/(?:^|\n)\[경고 요약\] 원격 첨부 (\d+)개/)?.[1]??0),f.state=I?"succeeded":"failed"}catch(C){f.state="failed",S((C instanceof Error?C.message:String(C))+`
255
+ `)}finally{f.finishedAt=new Date().toISOString()}})(),f};return{connectionImports:()=>[...r],running:c,diff:async d=>{if(c())throw new Error("\uB2E4\uB978 \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0;try{let{base:m,config:f}=await u(d),h=d;if(typeof h.path!="string"||h.remote!==void 0&&typeof h.remote!="boolean")throw new Error("\uBE44\uAD50\uD560 \uBB38\uC11C\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return await j3(m,h.path,{remote:h.remote,env:f})}finally{o=!1}},staging:async d=>{if(c())throw new Error("\uB2E4\uB978 \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0;try{let{base:m,config:f}=await u(d),h=d;if(h.remoteOnly!==void 0&&typeof h.remoteOnly!="boolean")throw new Error("\uC6D0\uACA9 \uBAA9\uB85D \uC870\uD68C \uC635\uC158\uC744 \uD655\uC778\uD558\uC138\uC694.");if(h.remoteOnly){if(h.action!==void 0)throw new Error("\uC6D0\uACA9 \uBAA9\uB85D \uC870\uD68C\uC5D0\uC11C\uB294 \uC5C5\uB85C\uB4DC \uC120\uD0DD\uC744 \uBCC0\uACBD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let O=wm(m,[],f),W=O.rows.filter(H=>H.remoteState&&H.remoteState!=="unchanged").map(H=>({...H,localUnverified:!(H.remoteState==="new"&&H.status==="unavailable")}));return{...O,rows:W,revision:JSON.stringify([O.remoteCheckedAt,W])}}if(h.referenceRoots!==void 0&&(!Array.isArray(h.referenceRoots)||h.referenceRoots.some(O=>typeof O!="string")))throw new Error("\uCC38\uC870 \uD3F4\uB354\uB97C \uD655\uC778\uD558\uC138\uC694.");let b={referenceRoots:h.referenceRoots??[],baseUrl:f.baseUrl},w=JSON.stringify([m,b,ut(m)]),k=await(async()=>JSON.stringify(await Promise.all([m,...l0(m,b.referenceRoots)].map(O=>A0(O,{connection:JSON.stringify(f)},!0)))))(),T,S=s?.key===w&&s.revision===k;if(h.action!==void 0){if(!["add","remove"].includes(String(h.action))||!Array.isArray(h.paths)||h.paths.some(v=>typeof v!="string"))throw new Error("\uBB38\uC11C \uC120\uD0DD\uC744 \uD655\uC778\uD558\uC138\uC694.");i=null;let O=await G3(m,h.paths,h.action,b),W=s?.key===w?s.rows:[],H=new Map(W.map(v=>[v.path,v]));if(h.action==="add")for(let v of O)H.set(v.path,{...v,pageId:v.pageId,staged:!0,stale:!1});let j=an(m).entries;T=[...H.values()].map(v=>({...v,staged:!!j[v.path],stale:!!j[v.path]&&(!!v.unmapped||JSON.stringify(j[v.path])!==JSON.stringify(v.entry))})),S||(k="")}else T=s?.key===w&&s.revision===k?s.rows:await Sm(m,b);let C=an(m).entries;T=T.map(O=>({...O,staged:!!C[O.path],stale:!!C[O.path]&&(!!O.unmapped||JSON.stringify(C[O.path])!==JSON.stringify(O.entry))}));for(let[O,W]of Object.entries(C))T.some(H=>H.path===O)||T.push({path:O,status:"unavailable",staged:!0,stale:!0,entry:W});s={key:w,rows:T,revision:k};let I=wm(m,T,f);return{...I,revision:JSON.stringify([k,C,I.remoteCheckedAt,I.rows])}}finally{o=!1}},importEnv:async d=>{if(c())throw new Error("\uB2E4\uB978 Confluence \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");let m=d;if(!m||typeof m.base!="string"||typeof m.text!="string"||typeof m.name!="string"||m.name.length>255)throw new Error(".env \uD30C\uC77C\uC744 \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");let f=await ft((0,lt.resolve)(m.base));if(!(await xt(f)).isDirectory()||(0,lt.dirname)(f)===f)throw new Error("\uB85C\uCEEC \uAE30\uC900 \uD3F4\uB354\uB97C \uC120\uD0DD\uD558\uC138\uC694.");let h={...Z3(m.text),source:`\uAC00\uC838\uC628 \uD30C\uC77C \xB7 ${m.name}`},b=gr();return r.set(b,h),i=null,r.size>20&&r.delete(r.keys().next().value),{envId:b,config:no(h.env,h.source,ut(f))}},saveEnv:async d=>{if(c())throw new Error("\uB2E4\uB978 Confluence \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0;let m;try{let f=d;if(!f||typeof f.base!="string"||typeof f.envId!="string")throw new Error("\uAC00\uC838\uC628 .env \uC124\uC815\uC744 \uD655\uC778\uD558\uC138\uC694.");let h=r.get(f.envId);if(!h||Mm.some(C=>!h.env[C]))throw new Error("\uD544\uC218 \uC5F0\uACB0 \uC124\uC815\uC744 \uBAA8\uB450 \uD3EC\uD568\uD55C .env\uB97C \uAC00\uC838\uC624\uC138\uC694.");let b=await ft((0,lt.resolve)(f.base));if(!(await xt(b)).isDirectory()||(0,lt.dirname)(b)===b)throw new Error("\uB85C\uCEEC \uAE30\uC900 \uD3F4\uB354\uB97C \uC120\uD0DD\uD558\uC138\uC694.");let w=(0,lt.join)(b,".env"),D=async()=>{try{if(!(await Mr(w)).isFile())throw new Error(".env\uB294 \uC77C\uBC18 \uD30C\uC77C\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4. \uC2EC\uBCFC\uB9AD \uB9C1\uD06C\uB294 \uC800\uC7A5\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");let C=await Lt(w,"utf8");return{content:C,hash:$e("sha256").update(C).digest("hex")}}catch(C){if(C.code==="ENOENT")return{content:"",hash:null};throw C}},k=await D();if(!Object.hasOwn(f,"expectedHash"))return{needsConfirmation:k.hash!==null,expectedHash:k.hash,path:w};if(f.expectedHash!==k.hash)throw new Error(".env\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC800\uC7A5\uC744 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.");if(m=(0,lt.join)(b,`.csync-env-${gr()}.tmp`),await As(m,Q3(k.content,h.content),{mode:384,flag:"wx"}),(await D()).hash!==k.hash)throw new Error(".env\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC800\uC7A5\uC744 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.");await fn(m,w),m=void 0,i=null;let{env:T,source:S}=await ro(b,"",r);return{saved:!0,config:no(T,S,ut(b))}}finally{m&&await ks(m).catch(()=>{}),o=!1}},connect:async d=>{if(c())throw new Error("\uB2E4\uB978 Confluence \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0,i=null;try{let{base:m,config:f,body:h}=await u(d);await i0(m,f);let{env:b,source:w}=await ro(m,h.envId,r);return no(b,w,ut(m))}finally{o=!1}},current:()=>n,config:async(d,m)=>{let f=await ft((0,lt.resolve)(d)),{env:h,source:b}=await ro(f,m,r);return no(h,b,ut(f))},fetch:async d=>{if(c())throw new Error("\uB2E4\uB978 \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0,i=null;try{let{base:m,config:f,body:h}=await u(d),b=ut(m);Ut(b);let{env:w,source:D}=await ro(m,h.envId,r),k=no(w,D,b);if(k.missing.length)throw new Error(`\uC124\uC815 \uB204\uB77D: ${k.missing.join(", ")}`);let T=new URL(f.baseUrl);if(T.protocol!=="https:"||T.username||T.password||T.search||T.hash)throw new Error("Confluence BASE_URL\uC740 \uC778\uC99D\uC815\uBCF4\xB7\uCFFC\uB9AC\uAC00 \uC5C6\uB294 HTTPS \uC8FC\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4.");return l("fetch",{selection:{base:m,target:"",envId:h.envId,verify:!1,referenceRoots:[]},env:w,config:k,fingerprint:""})}finally{o=!1}},restore:async d=>{if(c())throw new Error("\uB2E4\uB978 \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0;try{let{base:m,body:f}=await u(d),h=d,b=lv(d),w=ut(m);Ut(w);let{env:D,source:k}=await ro(m,f.envId,r),T=no(D,k,w);if(!T.connected||T.missing.length)throw new Error("\uC2A4\uD398\uC774\uC2A4 \uC5F0\uACB0\uACFC .env \uC124\uC815\uC744 \uD655\uC778\uD558\uC138\uC694.");let S=new URL(T.baseUrl);if(S.protocol!=="https:"||S.username||S.password||S.search||S.hash)throw new Error("Confluence BASE_URL\uC740 \uC778\uC99D\uC815\uBCF4\xB7\uCFFC\uB9AC\uAC00 \uC5C6\uB294 HTTPS \uC8FC\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4.");if(h.confirmationId!==void 0){let O=a;if(a=null,!O||h.confirmationId!==O.id||O.prepared.selection.base!==m||O.prepared.selection.envId!==f.envId||O.prepared.selection.format!==b)throw new Error("\uBCF5\uAD6C \uB300\uC0C1\uC744 \uB2E4\uC2DC \uD655\uC778\uD558\uC138\uC694.");if(await A0(m,D)!==O.prepared.fingerprint)throw new Error("\uD655\uC778 \uC774\uD6C4 \uB85C\uCEEC \uBB38\uC11C\uB098 \uC124\uC815\uC774 \uBC14\uB00C\uC5C8\uC2B5\uB2C8\uB2E4. \uBCF5\uAD6C \uB300\uC0C1\uC744 \uB2E4\uC2DC \uD655\uC778\uD558\uC138\uC694.");return Jo(m,O.prepared.selection.restorePaths,O.prepared.selection.restoreOverwrite),{job:l("restore",O.prepared)}}if(typeof h.path!="string"||typeof h.overwrite!="boolean")throw new Error("\uBCF5\uAD6C\uD560 \uBB38\uC11C\uC640 \uB36E\uC5B4\uC4F0\uAE30 \uC5EC\uBD80\uB97C \uD655\uC778\uD558\uC138\uC694.");let C=Jo(m,[h.path],h.overwrite),I=gr();return a={id:I,prepared:{selection:{base:m,target:"",envId:f.envId,verify:!1,referenceRoots:[],format:b,restorePaths:C,restoreOverwrite:h.overwrite},env:D,config:T,fingerprint:await A0(m,D)}},{confirmationId:I,path:C[0],overwrite:h.overwrite,format:b}}finally{o=!1}},pull:async d=>{if(c())throw new Error("\uB2E4\uB978 \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0,i=null;try{let{base:m,config:f,body:h}=await u(d),b=lv(d),w=h.full,D=h.remoteOnly;if(D!==void 0&&typeof D!="boolean"||D&&w)throw new Error("\uC6D0\uACA9 \uBCC0\uACBD \uAC00\uC838\uC624\uAE30 \uC635\uC158\uC744 \uD655\uC778\uD558\uC138\uC694.");if(w!==void 0&&typeof w!="boolean")throw new Error("\uC804\uCCB4 \uD0D0\uC0C9 \uC124\uC815\uC744 \uD655\uC778\uD558\uC138\uC694.");let k=ut(m);Ut(k);let{env:T,source:S}=await ro(m,h.envId,r),C=no(T,S,k);if(C.missing.length)throw new Error(`\uC124\uC815 \uB204\uB77D: ${C.missing.join(", ")}`);let I=new URL(f.baseUrl);if(I.protocol!=="https:"||I.username||I.password||I.search||I.hash)throw new Error("Confluence BASE_URL\uC740 \uC778\uC99D\uC815\uBCF4\xB7\uCFFC\uB9AC\uAC00 \uC5C6\uB294 HTTPS \uC8FC\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4.");return l("pull",{selection:{base:m,target:"",envId:h.envId,verify:!1,referenceRoots:[],format:b,...w?{full:!0}:{},...D?{remoteOnly:!0}:{}},env:T,config:C,fingerprint:""})}finally{o=!1}},preview:async d=>{if(c())throw new Error("\uB2E4\uB978 Confluence \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");o=!0,i=null;try{return l("preview",await Lm(d,r))}finally{o=!1}},push:async d=>{if(c())throw new Error("\uB2E4\uB978 Confluence \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4.");if(typeof d!="string"||!i||i.id!==d)throw new Error("\uBA3C\uC800 \uC5C5\uB85C\uB4DC \uB300\uC0C1\uC744 \uBBF8\uB9AC\uBCF4\uAE30\uD574 \uC8FC\uC138\uC694.");o=!0;let m=i;i=null;try{let f=await Lm(m.prepared.selection,r);if(f.fingerprint!==m.prepared.fingerprint)throw new Error("\uBB38\uC11C\uB098 \uC124\uC815\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBBF8\uB9AC\uBCF4\uAE30\uD574 \uC8FC\uC138\uC694.");if(f.config.missing.length)throw new Error(`\uC124\uC815 \uB204\uB77D: ${f.config.missing.join(", ")}`);let h=new URL(f.env.CONFLUENCE_BASE_URL);if(h.protocol!=="https:"||h.username||h.password||h.search||h.hash)throw new Error("Confluence BASE_URL\uC740 \uC778\uC99D\uC815\uBCF4\xB7\uCFFC\uB9AC\uAC00 \uC5C6\uB294 HTTPS \uC8FC\uC18C\uC5EC\uC57C \uD569\uB2C8\uB2E4.");return l("push",f)}finally{o=!1}}}}p();qe();var gs=de(je(),1),yv=de(Un(),1);p();qe();var pv=de(je(),1);var Om=(e,t)=>(0,pv.relative)(e,t).split(/[\\/]/).some(r=>r.startsWith(".")||r==="node_modules");async function ms(e,t){let r=await ft(e),n=await ft(t);if(!(await xt(r)).isDirectory()||!sn(r,n)||Om(r,n)||!/\.md$/i.test(n)||!(await xt(n)).isFile())throw new Error("\uC120\uD0DD\uD55C \uD3F4\uB354 \uC548\uC758 Markdown \uD30C\uC77C\uC744 \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");if((await xt(n)).size>1e6)throw new Error("\uBB38\uC11C \uBBF8\uB9AC\uBCF4\uAE30\uB294 1MB \uC774\uD558 \uD30C\uC77C\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4.");return{source:await Lt(n,"utf8"),base:r,path:n}}p();qe();Wt();var Iu=de(je(),1),Nu=de(Un(),1);p();var Fm=new br({html:!0}),hv=e=>Array.from(e).reduce((t,r)=>t+(/\p{Script=Hangul}|\p{Script=Han}/u.test(r)?2:1),0);function lI(e){let t=[],r="",n=0,i=0;for(let o=0;o<e.length;o++){let a=e[o];if(a==="`"&&n%2===0){let s=o;for(;e[s]==="`";)s++;let u=s-o;i=i===u?0:i||u,r+=e.slice(o,s),o=s-1,n=0;continue}a==="|"&&!i&&n%2===0?(t.push(r.trim()),r=""):r+=a,n=a==="\\"?n+1:0}return t.push(r.trim()),e.trimStart().startsWith("|")&&t.shift(),e.trimEnd().endsWith("|")&&!t.at(-1)&&t.pop(),t}function mv(e){let{body:t}=kt(e),r=e.slice(0,e.length-t.length),n=r?t.match(/^(?:[ \t]*\r?\n)*/)?.[0]??"":"",i=r+n,o=e.includes(`\r
256
+ `)?`\r
257
+ `:`
258
+ `,a=t.slice(n.length).replace(/\r\n/g,`
259
+ `),s=a.split(`
260
+ `),u=Fm.parse(a,{}),c=new Set,l=new Set,d=new Set,m=-1,f=0;for(let b of a.matchAll(/<\/?table\b(?:[^"'<>]|"[^"]*"|'[^']*')*>/gi))if(!b[0].startsWith("</"))f++===0&&(m=b.index);else if(f&&--f===0){let w=a.slice(0,m).split(`
261
+ `).length-1,D=a.slice(0,b.index+b[0].length).split(`
262
+ `).length;for(let k=w;k<D;k++)c.add(k),l.add(k)}for(let b of a.matchAll(/(`+)([\s\S]*?)(?<!`)\1(?!`)/g)){let w=a.slice(0,b.index).split(`
263
+ `).length-1,D=w+b[0].split(`
264
+ `).length;for(let k=w;k<D;k++)c.add(k)}for(let b of u){if(!b.map)continue;let[w,D]=b.map;if(["fence","code_block","html_block","table_open"].includes(b.type))for(let k=w;k<D;k++)c.add(k);if(b.type==="heading_open"&&!c.has(w)&&b.level===0&&D===w+1&&/^ {0,3}#{1,6}\s/.test(s[w])&&(d.add(w),s[w]=s[w].replace(/^ {0,3}(#{1,6})[ \t]+(.*?)(?:[ \t]+#+[ \t]*)?$/,"$1 $2")),b.type==="list_item_open"&&!c.has(w)&&(s[w]=s[w].replace(/^(\s*)(?:[-+*](\s+)|(\d+)[.)](\s+))/,(k,T,S,C,I)=>T+(C?C+"."+I:"-"+S))),b.type==="table_open"&&!l.has(w)&&b.level===0){let k=s.slice(w,D).map(lI),T=k[0]?.length;if(T&&k.every(S=>S.length===T)){let S=Array.from({length:T},(I,O)=>Math.max(3,...k.map(W=>hv(W[O])))),C=k.map((I,O)=>"| "+I.map((W,H)=>O===1?(W.startsWith(":")?":":"")+"-".repeat(Math.max(3,S[H]-Number(W.startsWith(":"))-Number(W.endsWith(":"))))+(W.endsWith(":")?":":""):W+" ".repeat(S[H]-hv(W))).join(" | ")+" |");Fm.render(C.join(`
265
+ `))===Fm.render(s.slice(w,D).join(`
266
+ `))&&s.splice(w,D-w,...C)}}}let h=[];for(let b=0;b<s.length;b++){if(c.has(b)){h.push(s[b]);continue}let w=s[b].replace(/[\t ]+$/,D=>/ {2,}$/.test(D)&&s[b].trim()?" ":"");!/[\[\]<>`]/.test(w)&&!/^ {0,3}(?:>|[-+*]\s|\d+[.)]\s)/.test(w)&&(w=ku(w)),!(!w.trim()&&!h.at(-1)?.trim())&&(d.has(b)&&h.length&&h.at(-1)?.trim()&&h.push(""),h.push(w),d.has(b)&&b+1<s.length&&s[b+1].trim()&&h.push(""))}for(;h.length&&!h.at(-1)?.trim();)h.pop();return i+(h.length?h.join(o)+o:"")}var k0=e=>$e("sha256").update(e).digest("hex");function gv(e){let{body:t}=kt(e),r=e.length-t.length,n=t.split(`
267
+ `),i=[r];for(let u of n)i.push(i.at(-1)+u.length+1);let o=Wi(),a=o.parse(t,{}),s=[];for(let u=0;u<a.length;u++){let c=a[u];if(c.type==="table_open"&&c.map){let l=u;for(;a[l]?.type!=="table_close";)l++;s.push(c.level===0?{start:i[c.map[0]],end:Math.min(e.length,i[c.map[1]]),html:o.renderer.render(a.slice(u,l+1),o.options,{}),markdown:!0}:null),u=l}else if(c.type==="html_block"&&c.map){let l=(0,Nu.createDocument)(c.content).querySelectorAll("table").length,d=i[c.map[0]],m=e.slice(d,Math.min(e.length,i[c.map[1]])),f=m.match(/^\s*<table\b(?:[^"'<>]|"[^"]*"|'[^']*')*>/i),h=m.match(/<\/table\s*>/i),b=l===1&&c.level===0&&f&&h?{start:d+m.indexOf("<"),end:d+h.index+h[0].length,html:m.slice(m.indexOf("<"),h.index+h[0].length),markdown:!1}:null;for(let w=0;w<l;w++)s.push(b)}}return s}function xv(e,t){let r=[],n=0,i=Array.from(e.querySelectorAll("tr"));return i.forEach((o,a)=>{let s=0;for(let u of Array.from(o.children).filter(c=>/^(TD|TH)$/.test(c.tagName))){for(;(r[s]??0)>a;)s++;let c=Math.max(1,Number(u.getAttribute("colspan"))||1),l=u.getAttribute("rowspan"),d=l==="0"?i.length-a:Math.max(1,Number(l)||1);if(!Number.isInteger(c)||c>32||!Number.isInteger(d))return;t?.(u,s,c);for(let m=0;m<c;m++)r[s+m]=a+d;s+=c}n=Math.max(n,s,r.length)}),n}function fI(e,t){let r=Array.from({length:t},()=>[]);return xv(e,(n,i,o)=>{let a=(n.textContent??"").normalize("NFC").replace(/\s+/g," ").trim(),s=0;for(let u of a)/\p{Mark}|[\u200d\ufe0e\ufe0f]/u.test(u)||(s+=/\p{Script=Hangul}|\p{Script=Han}|\p{Script=Hiragana}|\p{Script=Katakana}|\p{Extended_Pictographic}/u.test(u)?2:1);for(let u=i;u<Math.min(t,i+o);u++)r[u].push(s/o)}),r.map(n=>{n.sort((a,s)=>a-s);let i=n[Math.ceil((n.length-1)*.75)]??0,o=n.at(-1)??0;return Math.max(1,Math.sqrt(i)*.8+Math.sqrt(Math.min(o,i*2))*.2)})}function T0(e){return gv(e).map((t,r)=>{let n=t&&(0,Nu.createDocument)(t.html).querySelector("table"),i=n?xv(n):0;if(!n||i<1||i>32)return{index:r,widths:[],editable:!1};let o=pi(n),a=Math.round(Math.max(i*40,Math.min(3e3,o.width??760))),s=o.columns.length===i&&o.columns.every(d=>d!==void 0)?o.columns:Array(i).fill(1),u=s.reduce((d,m)=>d+m,0),c=s.map(d=>Math.max(40,Math.floor(d/u*a))),l=a-c.reduce((d,m)=>d+m,0);for(;l!==0;){let d=l>0?c.indexOf(Math.min(...c)):c.indexOf(Math.max(...c));c[d]+=l>0?1:-1,l+=l>0?-1:1}return{index:r,widths:c,editable:!0,contentWeights:fI(n,i)}})}function Pm(e,t,r){let i=gv(e)[t],o=T0(e)[t];if(!i||!o?.editable||!Number.isInteger(t))throw new Error("\uC774 \uD45C\uB294 \uB108\uBE44 \uD3B8\uC9D1\uC744 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");if(!Array.isArray(r)||r.length!==o.widths.length||r.some(m=>!Number.isInteger(m)||m<40||m>3e3)||r.reduce((m,f)=>m+f,0)>3e3)throw new Error("\uC5F4 \uB108\uBE44\uB294 40px \uC774\uC0C1, \uC804\uCCB4 \uB108\uBE44\uB294 3000px \uC774\uD558\uC5EC\uC57C \uD569\uB2C8\uB2E4.");let a=(0,Nu.createDocument)(i.html).querySelector("table"),s=m=>Array.from(m.querySelectorAll("th, td")).map(f=>[f.innerHTML,f.getAttribute("colspan"),f.getAttribute("rowspan")]),u=s(a),c=r.reduce((m,f)=>m+f,0);Io(a,{width:c,columns:r}),a.hasAttribute("data-table-width")&&a.setAttribute("data-table-width",String(c));let l;if(i.markdown)l=a.outerHTML+`
268
+ `;else{let f=a.cloneNode(!1).outerHTML.slice(0,-8),h=a.querySelector("colgroup").outerHTML,b=i.html.replace(/^<table\b(?:[^"'<>]|"[^"]*"|'[^']*')*>/i,f);l=/<colgroup\b/i.test(b)?b.replace(/<colgroup\b[^>]*>[\s\S]*?<\/colgroup\s*>/i,h):b.replace(f,f+`
269
+ `+h)}let d=(0,Nu.createDocument)(l).querySelector("table");if(JSON.stringify(s(d))!==JSON.stringify(u)||pi(d).width!==c||JSON.stringify(pi(d).columns)!==JSON.stringify(r))throw new Error("\uD45C \uB0B4\uC6A9\uC744 \uBCF4\uC874\uD560 \uC218 \uC5C6\uC5B4 \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.");return e.slice(0,i.start)+l+e.slice(i.end)}function dI(e,t){let r=e;for(let n of T0(e).filter(i=>i.editable)){let i=n.widths.reduce((f,h)=>f+h,0),o=n.widths.length,a=t==="fit"?n.contentWeights:Array(o).fill(1),s=i-o*40,u=a.reduce((f,h)=>f+h,0),c=a.map(f=>f/u*s),l=c.map(f=>40+Math.floor(f)),d=c.map((f,h)=>({i:h,fraction:f-Math.floor(f)})).sort((f,h)=>h.fraction-f.fraction),m=i-l.reduce((f,h)=>f+h,0);for(let f=0;f<m;f++)l[d[f].i]++;r=Pm(r,n.index,l)}return r}function bv(){let e=new Map,t=(r,n,i,o)=>{if(_.Buffer.byteLength(o)>1e6)throw new Error("\uBCC0\uACBD \uACB0\uACFC\uAC00 \uBBF8\uB9AC\uBCF4\uAE30 \uC9C0\uC6D0 \uD06C\uAE30\uC778 1MB\uB97C \uB118\uC2B5\uB2C8\uB2E4.");let a=gr();return e.size>=20&&e.delete(e.keys().next().value),e.set(a,{base:r,file:n,before:i,after:o}),{planId:a,before:i,after:o}};return{async documentPreview(r,n,i,o,a,s=[]){if(typeof o!="boolean"||!["keep","fit","equal"].includes(a))throw new Error("\uBB38\uC11C \uC11C\uC2DD \uC635\uC158\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let{source:u,path:c}=await ms(r,n);if(k0(u)!==i)throw new Error("\uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBB38\uC11C \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uC0C8\uB85C\uACE0\uCE68\uD574 \uC8FC\uC138\uC694.");if(!Array.isArray(s)||s.length>100||new Set(s.map(d=>d?.index)).size!==s.length)throw new Error("\uD45C \uBCC0\uACBD \uBAA9\uB85D\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let l=u;for(let d of s)l=Pm(l,d?.index,d?.widths);return o&&(l=mv(l)),a!=="keep"&&(l=dI(l,a)),t(r,c,u,l)},async preview(r,n,i,o,a,s){let{source:u,path:c}=await ms(r,n);if(k0(u)!==i)throw new Error("\uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBB38\uC11C \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uC0C8\uB85C\uACE0\uCE68\uD574 \uC8FC\uC138\uC694.");let l=s??[{index:o,widths:a}];if(!Array.isArray(l)||!l.length||l.length>100||new Set(l.map(m=>m?.index)).size!==l.length)throw new Error("\uD45C \uBCC0\uACBD \uBAA9\uB85D\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let d=u;for(let m of l)d=Pm(d,m?.index,m?.widths);return t(r,c,u,d)},async save(r){let n=e.get(r);if(!n)throw new Error("\uBCC0\uACBD \uBE44\uAD50\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD574 \uC8FC\uC138\uC694.");let{source:i,path:o}=await ms(n.base,n.file);if(i!==n.before||o!==n.file)throw new Error("\uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5B4 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uC0C8\uB85C\uACE0\uCE68 \uD6C4 \uB2E4\uC2DC \uBE44\uAD50\uD574 \uC8FC\uC138\uC694.");let a=(await xt(o)).mode&511,s=await Oi((0,Iu.join)((0,Iu.dirname)(o),".csync-table-"));try{let u=(0,Iu.join)(s,"document.md");if(await As(u,n.after,{mode:a}),await ft(n.file)!==o||await Lt(o,"utf8")!==n.before)throw new Error("\uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5B4 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.");await fn(u,o),e.delete(r)}finally{await dn(s,{recursive:!0,force:!0})}return{saved:o}}}}p();Wt();var pI=new Set("h1 h2 h3 h4 h5 h6 p a img ul ol li dl dt dd blockquote pre code em strong s del b i u sub sup br hr table caption colgroup col thead tbody tfoot tr th td span div details summary".split(" ")),hI=new Set("SCRIPT STYLE IFRAME OBJECT EMBED FORM INPUT BUTTON TEXTAREA SELECT META LINK BASE SVG MATH TEMPLATE".split(" ")),mI=new Set(["alt","title","colspan","rowspan","span","start","scope","id"]),gI={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif"},xI=/^(?:width|max-width|height|text-align|vertical-align|table-layout|color|background-color|white-space|font-weight|font-style|text-decoration)$/i;async function wv(e,t,r){let{source:n,base:i,path:o}=await ms(e,t),{body:a}=kt(n),s=(0,yv.createDocument)(Wi().render(a));for(let f of Array.from(s.body.querySelectorAll("*"))){if(hI.has(f.tagName)){f.remove();continue}if(!pI.has(f.tagName.toLowerCase())){for(;f.firstChild;)f.parentNode?.insertBefore(f.firstChild,f);f.remove();continue}let h=f.tagName==="IMG"?f.getAttribute("src"):null;for(let b of Array.from(f.attributes))if(b.name==="style"){let w=b.value.split(";").filter(D=>{let k=D.indexOf(":");return k>0&&xI.test(D.slice(0,k).trim())&&!/url\s*\(|expression|@|\\|[<>]/i.test(D.slice(k+1))}).join(";");f.setAttribute("style",w)}else mI.has(b.name)||b.name==="href"&&b.value.startsWith("#")||f.removeAttribute(b.name);if(h)try{if(/^[a-z][a-z\d+.-]*:|^[/\\]/i.test(h))continue;let b=await ft((0,gs.resolve)((0,gs.dirname)(o),decodeURIComponent(h.split(/[?#]/)[0]))),w=gI[(0,gs.extname)(b).toLowerCase()];if(!w||!sn(i,b)||Om(i,b))continue;let D=await xt(b);if(!D.isFile()||D.size>5e6)continue;f.setAttribute("src",`data:${w};base64,${(await Lt(b)).toString("base64")}`)}catch{}}let u=T0(n),c=Array.from(s.querySelectorAll("table"));c.length!==u.length&&u.forEach(f=>{f.editable=!1}),u.forEach((f,h)=>{f.editable&&c[h]?.setAttribute("data-csync-table",String(f.index))});let l=ta(24).toString("hex"),m=r?`<script nonce="${r}" data-channel="${l}">(function tableEditorBridge() {
270
+ const channel = document.currentScript.getAttribute('data-channel');
271
+ let enabled = false, selected = null, index = -1, widths = [];
272
+ let handles = [];
273
+ const send = (type) => parent.postMessage({ type, channel, index, widths }, '*');
274
+ const clear = () => { handles.forEach(h => h.remove()); handles = []; selected?.classList.remove('csync-selected'); };
275
+ const place = () => {
276
+ if (!selected)
277
+ return;
278
+ const rect = selected.getBoundingClientRect();
279
+ const total = widths.reduce((a, b) => a + b, 0);
280
+ let left = rect.left + scrollX;
281
+ handles.forEach((h, i) => {
282
+ left += widths[i] / total * rect.width;
283
+ Object.assign(h.style, { left: (left - 5) + 'px', top: (rect.top + scrollY) + 'px', height: rect.height + 'px' });
284
+ });
285
+ };
286
+ const apply = () => {
287
+ if (!selected)
288
+ return;
289
+ for (const group of Array.from(selected.children).filter(el => el.tagName === 'COLGROUP'))
290
+ group.remove();
291
+ const group = document.createElement('colgroup');
292
+ widths.forEach(width => { const col = document.createElement('col'); col.style.width = width + 'px'; group.append(col); });
293
+ selected.prepend(group);
294
+ selected.style.width = widths.reduce((a, b) => a + b, 0) + 'px';
295
+ selected.style.tableLayout = 'fixed';
296
+ place();
297
+ };
298
+ const select = (table, next, values) => {
299
+ clear();
300
+ selected = table;
301
+ index = next;
302
+ widths = values.slice();
303
+ selected.classList.add('csync-selected');
304
+ widths.slice(1).forEach((_, i) => {
305
+ const h = document.createElement('div');
306
+ h.className = 'csync-resize';
307
+ h.title = '\uC5F4 \uB108\uBE44 \uC870\uC808';
308
+ h.onpointerdown = event => {
309
+ event.preventDefault();
310
+ const start = event.clientX, original = widths.slice();
311
+ const scale = original.reduce((a, b) => a + b, 0) / selected.getBoundingClientRect().width;
312
+ h.setPointerCapture(event.pointerId);
313
+ h.onpointermove = move => {
314
+ const delta = Math.round((move.clientX - start) * scale);
315
+ const change = Math.max(40 - original[i], Math.min(original[i + 1] - 40, delta));
316
+ widths[i] = original[i] + change;
317
+ widths[i + 1] = original[i + 1] - change;
318
+ apply();
319
+ send('csync-table-change');
320
+ };
321
+ const end = () => { h.onpointermove = null; h.onpointerup = null; h.onpointercancel = null; };
322
+ h.onpointerup = end;
323
+ h.onpointercancel = end;
324
+ };
325
+ document.body.append(h);
326
+ handles.push(h);
327
+ });
328
+ apply();
329
+ };
330
+ document.addEventListener('click', event => {
331
+ if (!enabled || !(event.target instanceof Element))
332
+ return;
333
+ const table = event.target.closest('table[data-csync-table]');
334
+ if (!table)
335
+ return;
336
+ index = Number(table.dataset.csyncTable);
337
+ send('csync-table-select');
338
+ });
339
+ window.addEventListener('message', event => {
340
+ if (event.source !== parent || event.data?.channel !== channel)
341
+ return;
342
+ const data = event.data;
343
+ if (data.type === 'csync-table-edit') {
344
+ enabled = data.enabled === true;
345
+ document.body.classList.toggle('csync-editing', enabled);
346
+ if (!enabled) {
347
+ clear();
348
+ selected = null;
349
+ }
350
+ }
351
+ if (data.type === 'csync-table-widths' && enabled && Number.isInteger(data.index)
352
+ && Array.isArray(data.widths) && data.widths.length <= 32 && data.widths.every((w) => typeof w === 'number' && Number.isInteger(w) && w >= 40 && w <= 3000)) {
353
+ const table = document.querySelector(\`table[data-csync-table="\${data.index}"]\`);
354
+ if (!table)
355
+ return;
356
+ if (table === selected) {
357
+ widths = data.widths.slice();
358
+ apply();
359
+ }
360
+ else
361
+ select(table, data.index, data.widths);
362
+ }
363
+ });
364
+ window.addEventListener('resize', place);
365
+ window.addEventListener('scroll', place);
366
+ })()<\/script>`:"";return{hash:k0(n),channel:l,tables:u,html:`<!doctype html><html lang="ko"><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src ${r?`'nonce-${r}'`:"'none'"}; img-src data:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'"><meta name="viewport" content="width=device-width,initial-scale=1"><style>
367
+ *{box-sizing:border-box}body{margin:0;padding:24px;color:#172b4d;background:white;font:15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}main{max-width:760px;margin:auto}h1,h2,h3,h4{line-height:1.4}h1{font-size:26px}h2{font-size:22px}h3{font-size:18px}table{border-collapse:collapse;margin:16px 0}th,td{border:1px solid #c7cfdb;padding:8px;vertical-align:top;overflow-wrap:anywhere}th{background:#f0f3f8}td p,th p{margin:0}img{max-width:100%;height:auto}pre{padding:14px;background:#f4f6f9;overflow:auto}code{font-size:.88em;overflow-wrap:anywhere}blockquote{border-left:3px solid #c7cfdb;margin-left:0;padding-left:16px;color:#526078}a{color:#315fd8}hr{border:0;border-top:1px solid #dde3ec}
368
+ .csync-editing table[data-csync-table]{cursor:pointer}.csync-editing table[data-csync-table]:hover{outline:2px dashed #8192e3}.csync-selected{outline:3px solid #5466d8!important}.csync-resize{position:absolute;width:10px;cursor:col-resize;z-index:10;touch-action:none;border-left:2px solid #5466d8;background:#5466d82a}
369
+ </style></head><body><main>${s.body.innerHTML}</main>${m}</body></html>`}}var Bm=e=>e instanceof Error?e.message:String(e);function Ev(e){let t=e.start,r=e.previewNonce??ta(24).toString("hex"),n=bv(),i=dv(e.syncRunner,e.connectionImports),o=new Set,a=null,s=!1,u=()=>{if(a)return`${a} \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC644\uB8CC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.`;let c=i.current();return`${c?.state==="running"?{restore:"\uBB38\uC11C \uBCF5\uAD6C",pull:"\uAC00\uC838\uC624\uAE30(Pull)",push:"\uC5C5\uB85C\uB4DC(Push)",preview:"\uC5C5\uB85C\uB4DC \uBBF8\uB9AC\uBCF4\uAE30",fetch:"\uC6D0\uACA9 \uBCC0\uACBD \uD655\uC778"}[c.kind]:"Confluence \uC694\uCCAD \uCC98\uB9AC"} \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC644\uB8CC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.`};return{connectionImports:i.connectionImports,isRunning:()=>!!(a||i.running()),async request(c,l,d){let m={status:404,body:{error:"\uC5C6\uB294 \uC694\uCCAD\uC785\uB2C8\uB2E4."}},f=(h,b)=>{m={status:h,body:b}};try{await(async()=>{if(c==="GET"&&l.pathname==="/api/sync/job"){f(200,{job:i.current()});return}if(c==="GET"&&l.pathname==="/api/browse"){let M=await ft(l.searchParams.get("path")||t),F=(await Ln(M,{withFileTypes:!0})).filter($=>!$.name.startsWith(".")&&$.name!=="node_modules"&&!($.isDirectory()&&$.name.toLowerCase()==="attachments")&&($.isDirectory()||$.isFile()&&/\.md$/i.test($.name))).map($=>({name:$.name,path:(0,Ft.join)(M,$.name),directory:$.isDirectory()})).sort(($,X)=>Number(X.directory)-Number($.directory)||$.name.localeCompare(X.name,"ko"));f(200,{path:M,parent:(0,Ft.dirname)(M),home:nc(),entries:F});return}if(c==="GET"&&l.pathname==="/api/search"){let M=await ft(l.searchParams.get("path")||t),F=(l.searchParams.get("q")||"").trim().normalize("NFC").toLocaleLowerCase();if(!(await xt(M)).isDirectory())throw new Error("\uAC80\uC0C9 \uAE30\uC900 \uD3F4\uB354\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let $=[],X=0,ge=F?[M]:[];for(;ge.length;){let ke=ge.pop(),me;try{me=await Ln(ke,{withFileTypes:!0})}catch(oe){if(ke===M)throw oe;X++;continue}for(let oe of me){if(oe.name.startsWith(".")||oe.name==="node_modules"||oe.isDirectory()&&oe.name.toLowerCase()==="attachments")continue;let q=(0,Ft.join)(ke,oe.name);oe.isDirectory()?ge.push(q):oe.isFile()&&/\.md$/i.test(oe.name)&&oe.name.normalize("NFC").toLocaleLowerCase().includes(F)&&$.push({name:oe.name,path:q,relativePath:(0,Ft.relative)(M,q).split("\\").join("/"),directory:!1})}}$.sort((ke,me)=>ke.relativePath.localeCompare(me.relativePath,"ko")),f(200,{root:M,entries:$,skipped:X});return}if(c!=="POST"||!["/api/document-format/preview","/api/table-format/preview","/api/table-format/save","/api/document-preview","/api/convert","/api/open","/api/pick-folder","/api/sync/diff","/api/sync/staging","/api/sync/config","/api/sync/env/import","/api/sync/env/save","/api/sync/connect","/api/sync/preview","/api/sync/push","/api/sync/pull","/api/sync/fetch","/api/sync/restore"].includes(l.pathname)){f(404,{error:"\uC5C6\uB294 \uC694\uCCAD\uC785\uB2C8\uB2E4."});return}if(!d||typeof d!="object"||Array.isArray(d))throw new Error("\uC694\uCCAD \uB0B4\uC6A9\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");if(l.pathname==="/api/document-preview"){if(typeof d.base!="string"||typeof d.file!="string")throw new Error("\uBB38\uC11C \uACBD\uB85C\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");f(200,await wv(d.base,d.file,r));return}if(l.pathname==="/api/document-format/preview"){if(a||i.running()){f(409,{error:u()});return}if(typeof d.base!="string"||typeof d.file!="string"||typeof d.hash!="string")throw new Error("\uBB38\uC11C \uC11C\uC2DD \uC694\uCCAD\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");f(200,await n.documentPreview(d.base,d.file,d.hash,d.basic,d.tables,d.changes));return}if(l.pathname.startsWith("/api/table-format/")){if(a||i.running()){f(409,{error:u()});return}if(l.pathname.endsWith("/preview")){if(typeof d.base!="string"||typeof d.file!="string"||typeof d.hash!="string"||!Number.isInteger(d.index)||!Array.isArray(d.widths))throw new Error("\uD45C \uC11C\uC2DD \uC694\uCCAD\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");f(200,await n.preview(d.base,d.file,d.hash,d.index,d.widths,d.changes))}else{if(typeof d.planId!="string")throw new Error("\uBCC0\uACBD \uBE44\uAD50\uB97C \uBA3C\uC800 \uC2E4\uD589\uD574 \uC8FC\uC138\uC694.");a="\uD45C \uC11C\uC2DD \uC800\uC7A5";try{f(200,await n.save(d.planId))}finally{a=null}}return}if(l.pathname==="/api/sync/connect"){if(a||i.running()){f(409,{error:u()});return}a="\uC2A4\uD398\uC774\uC2A4 \uC5F0\uACB0 \uC800\uC7A5";try{f(200,await i.connect(d))}finally{a=null}return}if(l.pathname==="/api/sync/env/import"||l.pathname==="/api/sync/env/save"){if(a||i.running()){f(409,{error:u()});return}a=l.pathname.endsWith("/import")?".env \uAC00\uC838\uC624\uAE30":".env \uC800\uC7A5";try{f(200,l.pathname.endsWith("/import")?await i.importEnv(d):await i.saveEnv(d))}finally{a=null}return}if(l.pathname==="/api/sync/diff"){if(a||i.running()){f(409,{error:u()});return}f(200,await i.diff(d));return}if(l.pathname==="/api/sync/restore"){if(a||i.running()){f(409,{error:u()});return}let M=await i.restore(d);f("job"in M?202:200,M);return}if(l.pathname==="/api/sync/staging"){if(a||i.running()){f(409,{error:u()});return}f(200,await i.staging(d));return}if(l.pathname==="/api/sync/config"){if(typeof d.base!="string"||typeof d.envId!="string")throw new Error("\uC124\uC815 \uACBD\uB85C\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");f(200,await i.config(d.base,d.envId));return}if(l.pathname==="/api/sync/preview"||l.pathname==="/api/sync/push"||l.pathname==="/api/sync/pull"||l.pathname==="/api/sync/fetch"){if(a||i.running()){f(409,{error:u()});return}let M=l.pathname.endsWith("/preview")?await i.preview(d):l.pathname.endsWith("/pull")?await i.pull(d):l.pathname.endsWith("/fetch")?await i.fetch(d):await i.push(d.planId);f(202,{job:M});return}if(l.pathname==="/api/pick-folder"){if(s){f(409,{error:"\uC774\uBBF8 \uC5F4\uB9B0 \uD3F4\uB354 \uB2E4\uC774\uC5BC\uB85C\uADF8\uB97C \uBA3C\uC800 \uB2EB\uC544 \uC8FC\uC138\uC694."});return}if(d.kind!=="base"&&d.kind!=="out"&&d.kind!=="reference")throw new Error("\uD3F4\uB354 \uC120\uD0DD \uC6A9\uB3C4\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let M=t;if(typeof d.start=="string"&&d.start)try{let F=await ft(d.start);(await xt(F)).isDirectory()&&(M=F)}catch{}if(s){f(409,{error:"\uC774\uBBF8 \uC5F4\uB9B0 \uD3F4\uB354 \uB2E4\uC774\uC5BC\uB85C\uADF8\uB97C \uBA3C\uC800 \uB2EB\uC544 \uC8FC\uC138\uC694."});return}s=!0;try{let F=await e.pickFolder(M,d.kind==="reference"?"\uCC38\uC870 \uBB38\uC11C\uC758 \uB3D9\uAE30\uD654 \uD3F4\uB354 \uC120\uD0DD":d.kind==="base"?"\uBB38\uC11C\uC758 \uAE30\uC900 \uD3F4\uB354 \uC120\uD0DD":"\uBCC0\uD658 \uACB0\uACFC\uB97C \uC800\uC7A5\uD560 \uCD9C\uB825 \uD3F4\uB354 \uC120\uD0DD"),$=F?await ft(F):null;if($&&!(await xt($)).isDirectory())throw new Error("\uD3F4\uB354\uB97C \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");f(200,{path:$})}finally{s=!1}return}if(l.pathname==="/api/open"){if(typeof d.path!="string"||!o.has(d.path))throw new Error("\uC774\uBC88 \uC2E4\uD589\uC5D0\uC11C \uC800\uC7A5\uD55C \uACB0\uACFC\uB9CC \uC5F4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");await e.open(d.path),f(200,{ok:!0});return}if(a||i.running()){f(409,{error:u()});return}if(typeof d.base!="string"||typeof d.file!="string"||!["markdown","obsidian","repair"].includes(d.to)||typeof d.fix!="boolean"||typeof d.preview!="boolean")throw new Error("\uBCC0\uD658 \uC635\uC158\uC744 \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let h=await ft(d.base),b=await ft(d.file),w=d.scope??"legacy";if(!["file","folder","legacy"].includes(w))throw new Error("\uD30C\uC77C \uB610\uB294 \uD3F4\uB354\uB97C \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");let D=await xt(b);if(!(await xt(h)).isDirectory()||!sn(h,b)||(w==="folder"?!D.isDirectory():!D.isFile()||!/\.md$/i.test(b)))throw new Error("\uD0D0\uC0C9 \uD3F4\uB354 \uC548\uC758 Markdown \uD30C\uC77C \uB610\uB294 \uD3F4\uB354\uB97C \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");let k=(0,Ft.relative)(h,b).split(/[\\/]/);if((w==="folder"?k:k.slice(0,-1)).some(M=>M.startsWith(".")||M==="node_modules"))throw new Error("\uC228\uAE40 \uD3F4\uB354\uC640 node_modules \uC548\uC758 \uBB38\uC11C\uB294 \uBCC0\uD658 \uB300\uC0C1\uC774 \uC544\uB2D9\uB2C8\uB2E4.");let T=w==="legacy"?h:w==="folder"?b:(0,Ft.dirname)(b);if((0,Ft.dirname)(T)===T)throw new Error("\uBB38\uC11C\uAC00 \uC788\uB294 \uD558\uC704 \uD3F4\uB354\uB97C \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.");let S=w==="folder"?cr(b):[b];if(!S.length)throw new Error("\uC120\uD0DD\uD55C \uD3F4\uB354\uC5D0 \uBCC0\uD658\uD560 Markdown \uBB38\uC11C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.");if(d.out!==void 0&&typeof d.out!="string")throw new Error("\uCD9C\uB825 \uACBD\uB85C\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let C=d.approvedOverwrites??{};if(!C||typeof C!="object"||Array.isArray(C)||Object.values(C).some(M=>typeof M!="string"||!/^[a-f0-9]{64}$/.test(M)))throw new Error("\uB36E\uC5B4\uC4F0\uAE30 \uD655\uC778 \uC815\uBCF4\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.");let I=d.out?.trim()?await Rm((0,Ft.resolve)(d.out.trim())):null,O=I!==null&&(I===h||I===T),W=O?T:I;if(I&&!O&&(sn(T,I)||sn(I,T)))throw new Error("\uCD9C\uB825 \uD3F4\uB354\uB294 \uAE30\uC900 \uD3F4\uB354\uC640 \uACB9\uCE58\uC9C0 \uC54A\uB294 \uBCC4\uB3C4 \uACBD\uB85C\uB85C \uC9C0\uC815\uD574 \uC8FC\uC138\uC694.");if(a||i.running()){f(409,{error:u()});return}a="\uBB38\uC11C \uBCC0\uD658";let H,j=null,v=!1,N,P=200,E,R=async()=>{if(O)for(let[M,F]of Object.entries(C)){let $=(0,Ft.resolve)(T,M);if(!sn(T,$))throw new Error("\uB36E\uC5B4\uC4F0\uAE30 \uD655\uC778 \uACBD\uB85C\uB97C \uD655\uC778\uD558\uC138\uC694.");try{let X=await Mr($);if(X.isFile()&&!X.isSymbolicLink()&&$e("sha256").update(await Lt($)).digest("hex")===F)continue}catch(X){if(X.code!=="ENOENT")throw X}throw Object.assign(new Error(`\uD655\uC778 \uC774\uD6C4 \uC6D0\uBCF8 \uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uAC70\uB098 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4: ${M}. \uBBF8\uB9AC\uBCF4\uAE30\uBD80\uD130 \uB2E4\uC2DC \uC9C4\uD589\uD558\uC138\uC694.`),{code:"SOURCE_CHANGED"})}};try{await R(),H=await Oi((0,Ft.join)(si(),"csync-preview-"));let M=["--base",T,b,"--out",H];d.to!=="repair"&&M.push("--to",d.to),(d.fix||d.to==="repair")&&M.push("--fix");let{stdout:F}=await e.convert(M),$=async me=>(await xt(me)).size>2e5?"\uBB38\uC11C\uAC00 200KB\uB97C \uB118\uC5B4 \uBCF8\uBB38 \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uC0DD\uB7B5\uD569\uB2C8\uB2E4.":Lt(me,"utf8"),X=await Promise.all(S.slice(0,20).map(async me=>({path:(0,Ft.relative)(T,me),before:await $(me),after:await $((0,Ft.join)(H,(0,Ft.relative)(T,me)))}))),{before:ge,after:ke}=X[0];d.preview||(await R(),j=W??await Oi((0,Ft.join)((0,Ft.dirname)(T),`${(0,Ft.basename)(T)}-converted-`)),v=!W,E=await cv(H,j,C),o.add(j)),N={before:ge,after:ke,previews:X,saved:E,inPlace:O,documentCount:S.length,log:F.split(H).join(j??"(\uBBF8\uB9AC\uBCF4\uAE30)"),output:j}}catch(M){if(j&&v&&await dn(j,{recursive:!0,force:!0}),M.code==="SOURCE_CHANGED")P=409,N={error:Bm(M),code:"SOURCE_CHANGED"};else if(M instanceof hs)P=409,N=O&&M.conflicts.some($=>C[$.path]&&C[$.path]!==$.hash)?{error:"\uD655\uC778 \uC774\uD6C4 \uC6D0\uBCF8 \uD30C\uC77C\uC774 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBBF8\uB9AC\uBCF4\uAE30\uBD80\uD130 \uB2E4\uC2DC \uC9C4\uD589\uD558\uC138\uC694.",code:"SOURCE_CHANGED"}:{error:M.message,code:"OVERWRITE_REQUIRED",conflicts:M.conflicts,inPlace:O,output:j};else{let F=M;throw new Error(F.killed?"\uBCC0\uD658 \uC2DC\uAC04\uC774 2\uBD84\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.":F.stderr?.trim()||Bm(M))}}finally{try{H&&await dn(H,{recursive:!0,force:!0})}finally{a=null}}f(P,N)})()}catch(h){f(400,{error:Bm(h)})}return m}}}qe();p();async function _v(e,t){if(typeof indexedDB>"u")return;let r=await new Promise((n,i)=>{let o=indexedDB.open("csync.worker-sessions",1);o.onupgradeneeded=()=>o.result.createObjectStore("sessions"),o.onsuccess=()=>n(o.result),o.onerror=()=>i(o.error)});try{return await new Promise((n,i)=>{let o=r.transaction("sessions",t===void 0?"readonly":"readwrite"),a=o.objectStore("sessions"),s=t===void 0?a.get(e):t===null?a.delete(e):a.put(t,e),u;s.onsuccess=()=>{u=s.result},o.oncomplete=()=>n(u),o.onerror=()=>i(o.error)})}finally{r.close()}}p();qe();var Dr=de(je(),1);Wt();var vv=de(Un(),1),Sv=de(jo(),1);var Hm=100*1024*1024,Um=512*1024*1024,$m=2e4,qm=e=>$e("sha256").update(e).digest("hex");function Ru(e){if(!e||e.includes("\\")||/[\x00-\x1f:]/.test(e)||e.startsWith("/")||e.split("/").some(t=>!t||t==="."||t===".."))throw Error("\uC798\uBABB\uB41C \uD30C\uC77C \uACBD\uB85C\uC785\uB2C8\uB2E4.");return e}function Wm(e){return!e.split("/").some((r,n)=>r==="node_modules"||r===".git"||r.startsWith(".")&&!(n===0&&[".csync",".env",".confluence-sync.json",".confluence-workspace.json",".confluence-syncignore"].includes(r)))}function Zn(e,t){let r=e.find(i=>t===i.virtual||t.startsWith(i.virtual+"/"));if(!r)throw Error("\uC120\uD0DD\uD55C \uBE0C\uB77C\uC6B0\uC800 \uD3F4\uB354 \uC548\uC758 \uACBD\uB85C\uB9CC \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.");let n=t.slice(r.virtual.length).replace(/^\//,"");return n&&Ru(n),(0,Dr.join)(r.root,n)}function Av(e,t){for(let r of e){let n=(0,Dr.relative)(r.root,t);if(!n)return r.virtual;if(Ht(r.root,t))return r.virtual+"/"+n.split("\\").join("/")}throw Error("\uC791\uC5C5\uACF5\uAC04 \uBC16\uC758 \uACBD\uB85C\uC785\uB2C8\uB2E4.")}async function C0(e,t=new Map){let r=[],n=0;async function i(o,a){for(let s of await Ln(a,{withFileTypes:!0})){let u=(0,Dr.join)(a,s.name),c=(0,Dr.relative)(o.root,u).split("\\").join("/");if(!Wm(c))continue;Ru(c);let l=await Mr(u);if(l.isSymbolicLink())throw Error("\uC791\uC5C5\uACF5\uAC04\uC758 \uC2EC\uBCFC\uB9AD \uB9C1\uD06C\uB294 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");if(l.isDirectory()){await i(o,u);continue}if(!l.isFile())continue;if(n+=l.size,r.length>=$m||l.size>Hm||n>Um)throw Error("\uC791\uC5C5\uACF5\uAC04 \uD55C\uB3C4\uB97C \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4(\uD30C\uC77C 100MiB, \uC804\uCCB4 512MiB, 20,000\uAC1C).");let d=`${l.size}:${l.mtimeMs}:${l.ctimeMs}`,m=t.get(u),f=m?.stamp===d?m.hash:qm(await Lt(u));t.set(u,{stamp:d,hash:f}),r.push({path:Av(e,u),size:l.size,hash:f})}}for(let o of e)await i(o,o.root);return r.sort((o,a)=>o.path<a.path?-1:o.path>a.path?1:0)}function Km(e){let r=(0,Sv.parse)(e).CONFLUENCE_BASE_URL;if(!r)return;let n=new URL(r);if(n.protocol!=="https:"||n.username||n.password||n.search||n.hash||!(n.hostname==="api.atlassian.com"||n.hostname.endsWith(".atlassian.net")))throw Error("\uBC30\uD3EC \uC6F9\uC740 Atlassian Cloud\uC758 HTTPS \uC8FC\uC18C\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4.")}async function kv(e,t=!0,r=!0){let n=new br({html:!0}),i=await C0(e),o=(a,s,u=!1)=>{try{s=s.replace(/^<(.*)>$/,"$1");for(let l=0;l<4;l++){let d=decodeURIComponent(s);if(d===s)break;s=d}}catch{throw Error("\uD574\uC11D\uD560 \uC218 \uC5C6\uB294 \uB9C1\uD06C \uACBD\uB85C\uC785\uB2C8\uB2E4.")}if(!s||s.startsWith("#")||/^(?:https?:|mailto:|data:)/i.test(s)||u&&Fi(s))return;if(/^[a-z][a-z\d+.-]*:|^\/\//i.test(s)||s.startsWith("/")||s.includes("\\"))throw Error(`${Av(e,a)}: \uC11C\uBC84\uC758 \uC808\uB300 \uACBD\uB85C\uB97C \uCC38\uC870\uD558\uB294 \uBB38\uC11C\uB294 \uCC98\uB9AC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`);let c=(0,Dr.resolve)((0,Dr.dirname)(a),s.split(/[?#]/)[0]);if(!e.some(l=>Ht(l.root,c)))throw Error("\uC120\uD0DD\uD55C \uD3F4\uB354 \uBC16\uC758 \uCCA8\uBD80\xB7\uBB38\uC11C\uB97C \uCC38\uC870\uD569\uB2C8\uB2E4. \uCC38\uC870 \uD3F4\uB354\uB97C \uCD94\uAC00\uD558\uAC70\uB098 \uB9C1\uD06C\uB97C \uC218\uC815\uD558\uC138\uC694.")};for(let a of i){let s=Zn(e,a.path),u=(0,Dr.relative)(e.find(m=>a.path.startsWith(m.virtual+"/")).root,s).split("\\").join("/");if(u===".env"){t&&Km(await Lt(s,"utf8"));continue}if(u===".csync/mapping.json"||u===".confluence-sync.json"||u===".csync/index.json"){let m=JSON.parse(await Lt(s,"utf8"));for(let f of Object.keys(u.endsWith("index.json")?m.entries??{}:m))Ru(f.replace(/\/$/,""))}if(!r||!/\.md$/i.test(s)||u.startsWith(".csync/"))continue;let c=await Lt(s,"utf8"),l=m=>{for(let f of m.matchAll(/(?<!!)(!?)\[([^\]\n]*)\]\((<[^>\n]+>|[^()\s]+)\)/g))(m.slice(0,f.index).match(/\\+$/)?.[0].length??0)%2||o(s,f[3],!f[1]);for(let f of m.matchAll(Ia)){if((m.slice(0,f.index).match(/\\+$/)?.[0].length??0)%2)continue;let h=Na(f[1],f[2],f[3],f[4]);h?.target&&o(s,h.target,!h.embed)}return m};bn(c,l,m=>l(m.replace(/<!--[\s\S]*?-->|<(script|style|pre|code)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,"")));let d=m=>{for(let f of m)if(f.type==="image"&&o(s,f.attrGet("src")??""),f.type==="link_open"&&o(s,f.attrGet("href")??"",!0),f.children&&d(f.children),f.type==="html_block"||f.type==="html_inline")for(let h of Array.from((0,vv.createDocument)(f.content).querySelectorAll("[href], [src]")))h.hasAttribute("href")&&o(s,h.getAttribute("href")??"",h.localName==="a"),h.hasAttribute("src")&&o(s,h.getAttribute("src")??"")};d(n.parse(c,{}))}}async function Tv(e,t,r,n){let i=[],o=[];await oa((0,Dr.join)(t,"backup"),{recursive:!0});try{for(let a of[...r.map(s=>s.path),...n]){let s=Zn(e,a);try{let u=await Mr(s);if(!u.isFile()||u.isSymbolicLink())throw Error("\uD30C\uC77C \uCDA9\uB3CC\uC744 \uD655\uC778\uD558\uC138\uC694.");let c=(0,Dr.join)(t,"backup",String(o.length));await fn(s,c),o.push({file:s,backup:c})}catch(u){if(u.code!=="ENOENT")throw u}}for(let a=0;a<r.length;a++){let s=Zn(e,r[a].path);await oa((0,Dr.dirname)(s),{recursive:!0}),await fn((0,Dr.join)(t,String(a)),s),i.push(s)}}catch(a){for(let s of i.reverse())await dn(s,{force:!0});for(let s of o.reverse())await fn(s.backup,s.file);throw a}}p();function Cv({store:e=_v,fetch:t}={}){W_(t);let r,n,i=[],o=[],a,s=null,u="",c=[],l=()=>{y.chdir(r.base),n=Ev({start:r.base,syncRunner:S0,connectionImports:c,convert:uv,open:async()=>{},pickFolder:async()=>{throw Error("\uBE0C\uB77C\uC6B0\uC800 \uD3F4\uB354 \uC120\uD0DD\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.")}})},d=new Map,m=async()=>{let b=await C0(i,d),w=new Map(o.map(k=>[k.path,k.hash])),D=new Set(b.map(k=>k.path));return{files:b.filter(k=>w.get(k.path)!==k.hash),removed:o.filter(k=>!D.has(k.path)).map(k=>k.path),snapshot:b}},f=(b,w)=>({status:b,headers:{"Content-Type":"application/json"},body:JSON.stringify(w)}),h=async({path:b,method:w="GET",headers:D={},body:k})=>{try{let T=new URL(b,"https://local.invalid"),S=typeof k=="string"?JSON.parse(k):k;if(T.pathname==="/api/browser/session"&&w==="POST"){if(n?.isRunning())throw Error("\uC791\uC5C5 \uC644\uB8CC \uD6C4 \uD3F4\uB354\uB97C \uBCC0\uACBD\uD558\uC138\uC694.");let I=Ru(String(S.name??"\uBB38\uC11C"));if(I.includes("/"))throw Error("\uD3F4\uB354 \uC774\uB984\uC744 \uD655\uC778\uD558\uC138\uC694.");return vs(),d.clear(),a=void 0,Ie("/workspace"),Ie("/workspace/"+I),Ie("/output"),y.chdir("/workspace/"+I),r={id:crypto.randomUUID(),token:crypto.randomUUID(),base:"/workspace/"+I,output:"/output",version:"2.0.0"},i=[{virtual:r.base,root:r.base},{virtual:"/output",root:"/output"}],o=[],s=null,u="",c=[],l(),f(201,r)}if(!r&&D["x-csync-session"]){let I=await e(D["x-csync-session"]);I&&I.session.token===D["x-csync-token"]&&({session:r,mounts:i,baseline:o,lastJob:s}=I,c=I.imports??[],cf(I.files),l(),s?.state==="running"&&(s={...s,state:"failed",planId:null,log:s.log+`
370
+ \uBE0C\uB77C\uC6B0\uC800 \uC885\uB8CC\uB85C \uC791\uC5C5\uC774 \uC911\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Fetch\uB85C \uC6D0\uACA9 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.
371
+ `}))}if(!r||D["x-csync-session"]!==r.id||D["x-csync-token"]!==r.token)return f(401,{error:"\uBE0C\uB77C\uC6B0\uC800 \uC791\uC5C5\uACF5\uAC04\uC744 \uB2E4\uC2DC \uC5F0\uACB0\uD558\uC138\uC694."});if(T.pathname==="/api/browser/session"&&w==="DELETE"){if(n.isRunning())throw Error("\uC791\uC5C5 \uC644\uB8CC \uD6C4 \uC5F0\uACB0\uC744 \uD574\uC81C\uD558\uC138\uC694.");return await e(r.id,null),vs(),r=void 0,f(200,{ok:!0})}if(T.pathname==="/api/browser/changes"){if(n.isRunning())throw Error("\uC791\uC5C5 \uC644\uB8CC \uD6C4 \uACB0\uACFC\uB97C \uBC18\uC601\uD558\uC138\uC694.");return f(200,await m())}if(T.pathname==="/api/browser/file"&&w==="GET"){let I=re(Zn(i,T.searchParams.get("path")??""));return{status:200,headers:{"Content-Type":"application/octet-stream"},body:I.buffer.slice(I.byteOffset,I.byteOffset+I.byteLength)}}if(n.isRunning()&&T.pathname!=="/api/sync/job")return f(409,{error:"\uB2E4\uB978 \uC791\uC5C5\uC774 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4."});if(T.pathname==="/api/browser/mount"&&w==="POST"){if(S.kind!=="reference"||i.filter(O=>O.readonly).length>=8)throw Error("\uCC38\uC870 \uD3F4\uB354\uB97C \uD655\uC778\uD558\uC138\uC694.");let I="/references/"+crypto.randomUUID();return Ie(I,{recursive:!0}),i.push({virtual:I,root:I,readonly:!0}),f(201,{path:I})}if(T.pathname==="/api/browser/ack"&&w==="POST"){let I=await m();if(JSON.stringify(S.files)!==JSON.stringify(I.snapshot))throw Error("\uACB0\uACFC \uD30C\uC77C\uC774 \uBC14\uB00C\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uD655\uC778\uD558\uC138\uC694.");return o=I.snapshot,f(200,{ok:!0})}if(T.pathname==="/api/browser/mirror"&&w==="POST"){let I=await m();if(I.files.length||I.removed.length)return f(409,{error:"\uC2E4\uD589 \uACB0\uACFC\uB97C \uB85C\uCEEC\uC5D0 \uBA3C\uC800 \uBC18\uC601\uD558\uC138\uC694.",code:"APPLY_PENDING"});if(!Array.isArray(S.files)||S.files.length>$m)throw Error("\uD30C\uC77C \uBAA9\uB85D \uD55C\uB3C4\uB97C \uD655\uC778\uD558\uC138\uC694.");let O=new Set,W=0;for(let j of S.files){if(typeof j.path!="string"||!Number.isSafeInteger(j.size)||j.size<0||j.size>Hm||!/^[a-f0-9]{64}$/.test(j.hash)||O.has(j.path))throw Error("\uD30C\uC77C \uBAA9\uB85D\uC744 \uD655\uC778\uD558\uC138\uC694.");Zn(i,j.path);let v=i.find(N=>j.path.startsWith(N.virtual+"/"));if(!v||!Wm(j.path.slice(v.virtual.length+1)))throw Error("\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uACBD\uB85C\uC785\uB2C8\uB2E4.");O.add(j.path),W+=j.size}if(W>Um)throw Error("\uC791\uC5C5\uACF5\uAC04\uC774 512MiB\uB97C \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.");a&&Kt(a.stage,{recursive:!0,force:!0});let H=new Map(o.map(j=>[j.path,j.hash]));return a={stage:Rn("/tmp/mirror-"),manifest:S.files,uploads:S.files.filter(j=>H.get(j.path)!==j.hash),received:new Set},f(200,{uploads:a.uploads})}if(T.pathname==="/api/browser/file"&&w==="PUT"){let I=a?.uploads.findIndex(H=>H.path===T.searchParams.get("path"))??-1;if(I<0)throw Error("\uD30C\uC77C \uC804\uC1A1\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD558\uC138\uC694.");let O=new Uint8Array(k),W=a.uploads[I];if(O.length!==W.size||qm(O)!==W.hash)throw Error("\uD30C\uC77C \uC804\uC1A1 \uC911 \uB0B4\uC6A9\uC774 \uBC14\uB00C\uC5C8\uC2B5\uB2C8\uB2E4.");return rt(a.stage+"/"+I,O),a.received.add(W.path),f(200,{ok:!0})}if(T.pathname==="/api/browser/commit"&&w==="POST"){if(!a||a.received.size!==a.uploads.length)throw Error("\uD30C\uC77C \uC804\uC1A1\uC744 \uBA3C\uC800 \uC644\uB8CC\uD558\uC138\uC694.");let I=new Set(a.manifest.map(O=>O.path));return await Tv(i,a.stage,a.uploads,o.filter(O=>!I.has(O.path)).map(O=>O.path)),o=await C0(i,d),Kt(a.stage,{recursive:!0,force:!0}),a=void 0,f(200,{ok:!0})}if(T.pathname==="/api/sync/env/import"&&Km(S.text),S)for(let I of["base","file","out"])typeof S[I]=="string"&&S[I]&&Zn(i,S[I]);if(S?.base&&S.base!==r.base&&!S.base.startsWith(r.base+"/"))throw Error("\uBB38\uC11C \uD3F4\uB354\uB97C \uAE30\uC900\uC73C\uB85C \uC791\uC5C5\uD558\uC138\uC694.");if(S?.out&&i.some(I=>I.readonly&&(S.out===I.root||S.out.startsWith(I.root+"/"))))throw Error("\uCC38\uC870 \uD3F4\uB354\uB294 \uC77D\uAE30 \uC804\uC6A9\uC785\uB2C8\uB2E4.");if(typeof S?.path=="string"&&S.path.startsWith("/")&&Zn(i,S.path),S?.referenceRoots)for(let I of S.referenceRoots)Zn(i,I);(T.pathname==="/api/browse"||T.pathname==="/api/search")&&Zn(i,T.searchParams.get("path")||r.base),["/api/sync/config","/api/sync/job","/api/browse","/api/search"].includes(T.pathname)||await kv(i,T.pathname.startsWith("/api/sync/")&&!S?.envId&&!T.pathname.endsWith("/env/import"),T.pathname!=="/api/sync/fetch"&&!(T.pathname==="/api/sync/staging"&&S?.remoteOnly===!0));let C=await n.request(w,T,S);return T.pathname==="/api/browse"&&C.body.path===r.base&&(C.body.parent=r.base,C.body.home=r.base),C.body?.job&&(s=C.body.job),T.pathname==="/api/sync/job"&&!C.body.job&&(C.body.job=s?{...s,planId:null}:null),f(C.status,C.body)}catch(T){return f(400,{error:T.message,code:T.code})}};return async b=>{let w=await h(b);if(r&&!a&&(!n.isRunning()||/\/api\/sync\/(push|pull|preview|fetch|restore)$/.test(b.path))){c=n.connectionImports();let D=JSON.stringify([sf(),o,s,c]);D!==u&&(await e(r.id,{session:r,mounts:i,baseline:o,lastJob:s,imports:c,files:uf()}),u=D)}return w}}var bI=Cv(),yI=0,jm=new Map;globalThis.csyncRenderPdf=e=>new Promise((t,r)=>{let n=++yI;jm.set(n,{resolve:t,reject:r}),globalThis.postMessage({kind:"pdf",id:n,request:e},[e.bytes.buffer])});var Dv=Promise.resolve();globalThis.onmessage=({data:e})=>{if(e.kind==="pdf-result"){let t=jm.get(e.id);t&&(jm.delete(e.id),e.error?t.reject(Error(e.error)):t.resolve(e.pages));return}Dv=Dv.catch(()=>{}).then(async()=>{try{let t=await bI(e);globalThis.postMessage({id:e.id,...t},t.body instanceof ArrayBuffer?[t.body]:[])}catch(t){globalThis.postMessage({id:e.id,error:t.message})}})};
372
+ /*! Bundled license information:
373
+
374
+ ieee754/index.js:
375
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
376
+
377
+ buffer/index.js:
378
+ (*!
379
+ * The buffer module from node.js, for the browser.
380
+ *
381
+ * @author Feross Aboukhadijeh <https://feross.org>
382
+ * @license MIT
383
+ *)
384
+
385
+ @mixmark-io/domino/lib/style_parser.js:
386
+ (**
387
+ * @license
388
+ * Copyright Google LLC All Rights Reserved.
389
+ *
390
+ * Use of this source code is governed by an MIT-style license that can be
391
+ * found in the LICENSE file at https://angular.io/license
392
+ *)
393
+
394
+ is-buffer/index.js:
395
+ (*!
396
+ * Determine if an object is a Buffer
397
+ *
398
+ * @author Feross Aboukhadijeh <https://feross.org>
399
+ * @license MIT
400
+ *)
401
+
402
+ @vercel/blob/dist/chunk-XKVPKJPO.js:
403
+ (*!
404
+ * bytes
405
+ * Copyright(c) 2012-2014 TJ Holowaychuk
406
+ * Copyright(c) 2015 Jed Watson
407
+ * MIT Licensed
408
+ *)
409
+ */