spell 0.8.7 → 0.8.9

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 (304) hide show
  1. package/README-epics.md +149 -49
  2. package/app/package.json +25 -1
  3. package/app/spaces/@spell/guides/SpellUI/SpellUI.spellml +486 -486
  4. package/app/spaces/@spell/sites/SpellApp/SpellApp.spellml +50 -124
  5. package/dist/app/app/pages/SiteBoardView.css +5 -5
  6. package/dist/app/app/pages/SiteBoardView.js +1 -1
  7. package/dist/app/app/pages/SiteEditorPage.js +6 -3
  8. package/dist/app/app/pages/SiteEdits.js +27 -10
  9. package/dist/app/app/pages/SiteWrites.js +11 -0
  10. package/dist/app/app/runner/spellRuntime.js +1 -0
  11. package/dist/cli/publish/PublishedPackage.d.ts +2 -1
  12. package/dist/cli/publish/PublishedPackage.js +6 -3
  13. package/dist/cli/publish/ScratchInstall.d.ts +14 -3
  14. package/dist/cli/publish/ScratchInstall.js +69 -8
  15. package/dist/epic/cli/EpicProgram.js +20 -5
  16. package/dist/epic/cli/epicGroups.js +7 -1
  17. package/dist/epic/command/BaseBranch.d.ts +35 -0
  18. package/dist/epic/command/BaseBranch.js +58 -0
  19. package/dist/epic/command/EpicCheckout.d.ts +1 -1
  20. package/dist/epic/command/EpicCheckout.js +4 -4
  21. package/dist/epic/command/EpicGuide.js +3 -2
  22. package/dist/epic/command/EpicTools.d.ts +5 -0
  23. package/dist/epic/command/EpicTools.js +14 -3
  24. package/dist/epic/command/MainMerge.d.ts +26 -15
  25. package/dist/epic/command/MainMerge.js +60 -16
  26. package/dist/epic/command/PullRequest.d.ts +45 -0
  27. package/dist/epic/command/PullRequest.js +100 -0
  28. package/dist/epic/command/RepoInit.d.ts +196 -39
  29. package/dist/epic/command/RepoInit.js +481 -60
  30. package/dist/epic/command/Requests.d.ts +1 -0
  31. package/dist/epic/command/Requests.js +7 -1
  32. package/dist/epic/command/SessionMoves.js +2 -1
  33. package/dist/epic/command/SkillsCheck.js +3 -2
  34. package/dist/epic/command/Stock.js +3 -1
  35. package/dist/epic/command/TurnEnd.d.ts +1 -1
  36. package/dist/epic/command/TurnEnd.js +4 -3
  37. package/dist/epic/command/Worktrees.d.ts +20 -3
  38. package/dist/epic/command/Worktrees.js +39 -7
  39. package/dist/epic/command/command.types.d.ts +3 -0
  40. package/dist/epic/components/__pack/epics.entry.js +43 -43
  41. package/dist/epic/components/__pack/epics.pack.js +36 -12794
  42. package/dist/epic/config/CodeHost.d.ts +96 -0
  43. package/dist/epic/config/CodeHost.js +89 -0
  44. package/dist/epic/config/EngineFiles.mjs +60 -0
  45. package/dist/epic/config/EpicConfig.d.ts +20 -3
  46. package/dist/epic/config/EpicConfig.js +25 -1
  47. package/dist/epic/config/EpicRepo.js +1 -1
  48. package/dist/epic/config/GitHub.d.ts +75 -3
  49. package/dist/epic/config/GitHub.js +106 -5
  50. package/dist/epic/config/GitLab.d.ts +138 -0
  51. package/dist/epic/config/GitLab.js +297 -0
  52. package/dist/epic/config/LayeredSettings.js +3 -2
  53. package/dist/epic/server/EpicServer.d.ts +1 -1
  54. package/dist/epic/server/EpicServer.js +26 -12
  55. package/dist/epic/tool/InboxPoller.mjs +2 -1
  56. package/dist/epic/tool/MigrateCommands.js +6 -8
  57. package/dist/epic/tool/PlanCommits.d.ts +7 -4
  58. package/dist/epic/tool/PlanCommits.js +7 -5
  59. package/dist/epic/tool/PlanDocCommands.js +3 -4
  60. package/dist/epic/tool/PlanDocFiles.d.ts +3 -1
  61. package/dist/epic/tool/PlanDocFiles.js +13 -5
  62. package/dist/epic/tool/ServedFolders.d.ts +1 -1
  63. package/dist/epic/tool/ServedFolders.js +4 -4
  64. package/dist/epic/tools/PageInboxes.js +3 -3
  65. package/dist/epic/tools/_assets/commands.entry.js +149 -68
  66. package/dist/epic/tools/_assets/commands.js +20 -2073
  67. package/dist/epic/tools/_assets/core-reference.entry.js +244 -124
  68. package/dist/epic/tools/_assets/core-reference.js +20 -2142
  69. package/dist/epic/tools/_assets/emoji/cldr/0.js +2 -2
  70. package/dist/epic/tools/_assets/emoji/cldr/a.js +2 -2
  71. package/dist/epic/tools/_assets/emoji/cldr/b.js +2 -2
  72. package/dist/epic/tools/_assets/emoji/cldr/c.js +2 -2
  73. package/dist/epic/tools/_assets/emoji/cldr/d.js +2 -2
  74. package/dist/epic/tools/_assets/emoji/cldr/e.js +2 -2
  75. package/dist/epic/tools/_assets/emoji/cldr/f.js +2 -2
  76. package/dist/epic/tools/_assets/emoji/cldr/g.js +2 -2
  77. package/dist/epic/tools/_assets/emoji/cldr/h.js +2 -2
  78. package/dist/epic/tools/_assets/emoji/cldr/i.js +2 -2
  79. package/dist/epic/tools/_assets/emoji/cldr/j.js +2 -2
  80. package/dist/epic/tools/_assets/emoji/cldr/k.js +2 -2
  81. package/dist/epic/tools/_assets/emoji/cldr/l.js +2 -2
  82. package/dist/epic/tools/_assets/emoji/cldr/m.js +2 -2
  83. package/dist/epic/tools/_assets/emoji/cldr/n.js +2 -2
  84. package/dist/epic/tools/_assets/emoji/cldr/o.js +2 -2
  85. package/dist/epic/tools/_assets/emoji/cldr/p.js +2 -2
  86. package/dist/epic/tools/_assets/emoji/cldr/r.js +2 -2
  87. package/dist/epic/tools/_assets/emoji/cldr/s.js +2 -2
  88. package/dist/epic/tools/_assets/emoji/cldr/t.js +2 -2
  89. package/dist/epic/tools/_assets/emoji/cldr/u.js +2 -2
  90. package/dist/epic/tools/_assets/emoji/cldr/v.js +2 -2
  91. package/dist/epic/tools/_assets/emoji/cldr/w.js +2 -2
  92. package/dist/epic/tools/_assets/emoji/cldr/x.js +2 -2
  93. package/dist/epic/tools/_assets/emoji/cldr/y.js +2 -2
  94. package/dist/epic/tools/_assets/emoji/cldr/z.js +2 -2
  95. package/dist/epic/tools/_assets/emoji/fomantic/0.js +2 -2
  96. package/dist/epic/tools/_assets/emoji/fomantic/a.js +2 -2
  97. package/dist/epic/tools/_assets/emoji/fomantic/b.js +2 -2
  98. package/dist/epic/tools/_assets/emoji/fomantic/c.js +2 -2
  99. package/dist/epic/tools/_assets/emoji/fomantic/d.js +2 -2
  100. package/dist/epic/tools/_assets/emoji/fomantic/e.js +2 -2
  101. package/dist/epic/tools/_assets/emoji/fomantic/f.js +2 -2
  102. package/dist/epic/tools/_assets/emoji/fomantic/g.js +2 -2
  103. package/dist/epic/tools/_assets/emoji/fomantic/h.js +2 -2
  104. package/dist/epic/tools/_assets/emoji/fomantic/i.js +2 -2
  105. package/dist/epic/tools/_assets/emoji/fomantic/j.js +2 -2
  106. package/dist/epic/tools/_assets/emoji/fomantic/k.js +2 -2
  107. package/dist/epic/tools/_assets/emoji/fomantic/l.js +2 -2
  108. package/dist/epic/tools/_assets/emoji/fomantic/m.js +2 -2
  109. package/dist/epic/tools/_assets/emoji/fomantic/n.js +2 -2
  110. package/dist/epic/tools/_assets/emoji/fomantic/o.js +2 -2
  111. package/dist/epic/tools/_assets/emoji/fomantic/p.js +2 -2
  112. package/dist/epic/tools/_assets/emoji/fomantic/q.js +2 -2
  113. package/dist/epic/tools/_assets/emoji/fomantic/r.js +2 -2
  114. package/dist/epic/tools/_assets/emoji/fomantic/s.js +2 -2
  115. package/dist/epic/tools/_assets/emoji/fomantic/t.js +2 -2
  116. package/dist/epic/tools/_assets/emoji/fomantic/u.js +2 -2
  117. package/dist/epic/tools/_assets/emoji/fomantic/v.js +2 -2
  118. package/dist/epic/tools/_assets/emoji/fomantic/w.js +2 -2
  119. package/dist/epic/tools/_assets/emoji/fomantic/x.js +2 -2
  120. package/dist/epic/tools/_assets/emoji/fomantic/y.js +2 -2
  121. package/dist/epic/tools/_assets/emoji/fomantic/z.js +2 -2
  122. package/dist/epic/tools/_assets/goals-live.js +318 -210
  123. package/dist/epic/tools/_assets/highlight.min.js +5764 -5269
  124. package/dist/epic/tools/_assets/lazy/code-engine.js +5 -1270
  125. package/dist/epic/tools/_assets/lazy/markdown-engine.js +67 -1513
  126. package/dist/epic/tools/_assets/lazy/markdown-sanitizer.js +3 -753
  127. package/dist/epic/tools/_assets/spell-comments.entry.js +282 -159
  128. package/dist/epic/tools/_assets/spell-comments.js +24 -3716
  129. package/dist/epic/tools/_assets/spell-doc-comments.js +1243 -816
  130. package/dist/epic/tools/_assets/spell-doc-helpers.js +298 -165
  131. package/dist/epic/tools/_assets/spell-doc-runtime.js +2760 -1415
  132. package/dist/epic/tools/_assets/spell-doc-toolbar.js +396 -227
  133. package/dist/epic/tools/_assets/spell-syntax.entry.js +505 -285
  134. package/dist/epic/tools/_assets/spell-syntax.js +22 -2916
  135. package/dist/epic/tools/_assets/spell-ui-sources.js +102 -60
  136. package/dist/epic/tools/_assets/spell-ui.entry.js +108 -40
  137. package/dist/epic/tools/_assets/spell-ui.js +3131 -46465
  138. package/dist/epic/tools/pages.d.ts +5 -6
  139. package/dist/epic/tools/pages.js +7 -6
  140. package/dist/epic/window.mjs +2 -3
  141. package/dist/parser/core/classes/View.d.ts +20 -0
  142. package/dist/parser/core/classes/View.js +91 -17
  143. package/dist/parser/core/core.declarations.json5 +18 -0
  144. package/dist/parser/core/core.scopes.js +5 -0
  145. package/dist/parser/core/sites.d.ts +10 -0
  146. package/dist/parser/core/sites.js +12 -0
  147. package/dist/parser/parser/tokenizer/Tokenizer.d.ts +9 -1
  148. package/dist/parser/parser/tokenizer/Tokenizer.js +43 -5
  149. package/dist/parser/parser/tokenizer/Tokens.d.ts +4 -0
  150. package/dist/parser/parser/tokenizer/Tokens.js +4 -0
  151. package/dist/parser/parser/tokenizer/tokenizer.types.d.ts +5 -0
  152. package/dist/parser/parser/tokenizer/tokenizer.types.js +2 -0
  153. package/dist/parser/py/core/spell_core/apps.py +2 -0
  154. package/dist/parser/spell/PARSING.md +21 -0
  155. package/dist/parser/spell/SpellParser.d.ts +2 -0
  156. package/dist/parser/spell/SpellParser.js +58 -3
  157. package/dist/parser/spell/SpellxTokenizer.js +2 -1
  158. package/dist/parser/spell/SpellxTwin.d.ts +4 -1
  159. package/dist/parser/spell/SpellxTwin.js +10 -3
  160. package/dist/parser/spell/builtinTypes.js +24 -1
  161. package/dist/parser/spell/ingest/PlaceIngest.js +3 -1
  162. package/dist/parser/spell/languages/Language.d.ts +11 -2
  163. package/dist/parser/spell/languages/en/words.js +3 -2
  164. package/dist/parser/spell/languages/es/words.js +7 -4
  165. package/dist/parser/spell/rules/Statement.js +1 -1
  166. package/dist/parser/spell/rules/classes/DrawSlot.js +6 -1
  167. package/dist/parser/spell/rules/sites/SitePage.d.ts +3 -3
  168. package/dist/parser/spell/rules/sites/SitePage.js +2 -2
  169. package/dist/parser/spell/rules/sites/sites.en.js +1 -1
  170. package/dist/parser/spell/rules/sites/sites.es.js +1 -1
  171. package/dist/parser/spell/rules/sites/sites.shared.d.ts +2 -2
  172. package/dist/parser/spell/spell.types.d.ts +7 -0
  173. package/dist/parser/spell/spellSyntax.es.json +6 -6
  174. package/dist/parser/spell/spellSyntax.json +6 -6
  175. package/dist/parser/spellx/SpellxView.js +2 -1
  176. package/dist/ui/components/ui-accordion/UIAccordion.d.ts +1 -0
  177. package/dist/ui/components/ui-ad/UIAd.d.ts +1 -0
  178. package/dist/ui/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
  179. package/dist/ui/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
  180. package/dist/ui/components/ui-button/UIButton.d.ts +8 -3
  181. package/dist/ui/components/ui-button/UIButton.fallback.d.ts +8 -3
  182. package/dist/ui/components/ui-button/UIButtons.d.ts +1 -0
  183. package/dist/ui/components/ui-button/UIOr.d.ts +1 -0
  184. package/dist/ui/components/ui-calendar/UICalendar.d.ts +6 -0
  185. package/dist/ui/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
  186. package/dist/ui/components/ui-card/UICards.d.ts +31 -0
  187. package/dist/ui/components/ui-checkbox/UICheckbox.d.ts +7 -0
  188. package/dist/ui/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
  189. package/dist/ui/components/ui-comment/UIComment.d.ts +1 -0
  190. package/dist/ui/components/ui-comment/UIComments.d.ts +1 -0
  191. package/dist/ui/components/ui-components/UIComponents.d.ts +1 -0
  192. package/dist/ui/components/ui-dimmer/UIDimmer.d.ts +1 -0
  193. package/dist/ui/components/ui-divider/UIDivider.d.ts +2 -0
  194. package/dist/ui/components/ui-dropdown/UIDropdown.d.ts +6 -0
  195. package/dist/ui/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
  196. package/dist/ui/components/ui-embed/UIEmbed.d.ts +1 -0
  197. package/dist/ui/components/ui-emoji/UIEmoji.d.ts +1 -0
  198. package/dist/ui/components/ui-feed/UIFeed.d.ts +1 -0
  199. package/dist/ui/components/ui-feed/UIFeedEvent.d.ts +1 -0
  200. package/dist/ui/components/ui-flag/UIFlag.d.ts +1 -0
  201. package/dist/ui/components/ui-flyout/UIFlyout.d.ts +1 -0
  202. package/dist/ui/components/ui-form/UIFields.d.ts +1 -0
  203. package/dist/ui/components/ui-form/UIRepeat.d.ts +1 -0
  204. package/dist/ui/components/ui-grid/UIColumn.d.ts +1 -0
  205. package/dist/ui/components/ui-grid/UIGrid.d.ts +1 -0
  206. package/dist/ui/components/ui-grid/UIRow.d.ts +1 -0
  207. package/dist/ui/components/ui-icon/UIIcon.d.ts +3 -2
  208. package/dist/ui/components/ui-icon/UIIcons.d.ts +1 -0
  209. package/dist/ui/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
  210. package/dist/ui/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
  211. package/dist/ui/components/ui-image/UIImages.d.ts +1 -0
  212. package/dist/ui/components/ui-include/UIInclude.d.ts +1 -0
  213. package/dist/ui/components/ui-input/UIInput.fallback.d.ts +9 -2
  214. package/dist/ui/components/ui-items/UIItems.d.ts +1 -0
  215. package/dist/ui/components/ui-keys/UIKeys.d.ts +1 -0
  216. package/dist/ui/components/ui-label/UILabel.d.ts +2 -0
  217. package/dist/ui/components/ui-label/UILabels.d.ts +1 -0
  218. package/dist/ui/components/ui-list/UIList.d.ts +2 -0
  219. package/dist/ui/components/ui-loader/UILoader.d.ts +1 -0
  220. package/dist/ui/components/ui-message/UIMessage.d.ts +2 -0
  221. package/dist/ui/components/ui-modal/UIModal.d.ts +1 -0
  222. package/dist/ui/components/ui-nag/UINag.d.ts +1 -0
  223. package/dist/ui/components/ui-page/UIPage.d.ts +15 -0
  224. package/dist/ui/components/ui-page/UIPage.es.d.ts +1 -0
  225. package/dist/ui/components/ui-parts/UIActions.d.ts +1 -0
  226. package/dist/ui/components/ui-parts/UIAuthor.d.ts +1 -0
  227. package/dist/ui/components/ui-parts/UIAvatar.d.ts +1 -0
  228. package/dist/ui/components/ui-parts/UIContent.d.ts +1 -0
  229. package/dist/ui/components/ui-parts/UIDate.d.ts +1 -0
  230. package/dist/ui/components/ui-parts/UIDescription.d.ts +1 -0
  231. package/dist/ui/components/ui-parts/UIDetail.d.ts +1 -0
  232. package/dist/ui/components/ui-parts/UIExtra.d.ts +1 -0
  233. package/dist/ui/components/ui-parts/UIHeader.d.ts +15 -3
  234. package/dist/ui/components/ui-parts/UIHeader.en.d.ts +5 -2
  235. package/dist/ui/components/ui-parts/UIHeader.en.js +6 -3
  236. package/dist/ui/components/ui-parts/UIHeader.js +45 -5
  237. package/dist/ui/components/ui-parts/UIMeta.d.ts +1 -0
  238. package/dist/ui/components/ui-parts/UIParts.css +18 -0
  239. package/dist/ui/components/ui-parts/UIParts.css.inline.js +1 -1
  240. package/dist/ui/components/ui-parts/UIParts.types.d.ts +15 -1
  241. package/dist/ui/components/ui-parts/UISummary.d.ts +1 -0
  242. package/dist/ui/components/ui-parts/UITitle.d.ts +1 -0
  243. package/dist/ui/components/ui-parts/UIValue.d.ts +1 -0
  244. package/dist/ui/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
  245. package/dist/ui/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
  246. package/dist/ui/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
  247. package/dist/ui/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
  248. package/dist/ui/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
  249. package/dist/ui/components/ui-progress/UIProgress.d.ts +2 -0
  250. package/dist/ui/components/ui-quote/UIQuote.d.ts +1 -0
  251. package/dist/ui/components/ui-rail/UIRail.d.ts +1 -0
  252. package/dist/ui/components/ui-rating/UIRating.d.ts +6 -0
  253. package/dist/ui/components/ui-rating/UIRating.fallback.d.ts +6 -0
  254. package/dist/ui/components/ui-reveal/UIReveal.d.ts +1 -0
  255. package/dist/ui/components/ui-search/UISearch.fallback.d.ts +13 -1
  256. package/dist/ui/components/ui-section/UISections.d.ts +1 -0
  257. package/dist/ui/components/ui-segment/UISegment.d.ts +2 -0
  258. package/dist/ui/components/ui-segment/UISegments.d.ts +1 -0
  259. package/dist/ui/components/ui-select/UISelect.d.ts +6 -0
  260. package/dist/ui/components/ui-select/UISelect.fallback.d.ts +6 -0
  261. package/dist/ui/components/ui-shape/UISide.d.ts +4 -0
  262. package/dist/ui/components/ui-sidebar/UIPushable.d.ts +1 -0
  263. package/dist/ui/components/ui-sidebar/UIPusher.d.ts +1 -0
  264. package/dist/ui/components/ui-sidebar/UISidebar.d.ts +1 -0
  265. package/dist/ui/components/ui-sides/UISides.d.ts +6 -0
  266. package/dist/ui/components/ui-sides/UISides.fallback.d.ts +6 -0
  267. package/dist/ui/components/ui-slider/UISlider.d.ts +7 -0
  268. package/dist/ui/components/ui-slider/UISlider.fallback.d.ts +7 -0
  269. package/dist/ui/components/ui-space/UISpace.d.ts +1 -0
  270. package/dist/ui/components/ui-statistic/UIStatistic.d.ts +1 -0
  271. package/dist/ui/components/ui-statistic/UIStatistics.d.ts +1 -0
  272. package/dist/ui/components/ui-step/UIStep.d.ts +1 -0
  273. package/dist/ui/components/ui-step/UISteps.d.ts +1 -0
  274. package/dist/ui/components/ui-table/UICell.d.ts +1 -0
  275. package/dist/ui/components/ui-terms/UITerm.d.ts +1 -0
  276. package/dist/ui/components/ui-terms/UITerms.d.ts +1 -0
  277. package/dist/ui/components/ui-theme-editor/UIColorChip.d.ts +1 -0
  278. package/dist/ui/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
  279. package/dist/ui/components/ui-toast/UIToast.d.ts +1 -0
  280. package/dist/ui/components/ui-toc/UIToc.d.ts +1 -0
  281. package/dist/ui/components/ui-transition/UITransition.d.ts +1 -0
  282. package/dist/ui/components/ui-video/UIAudio.d.ts +1 -0
  283. package/dist/ui/components/ui-video/UIVideo.d.ts +1 -0
  284. package/dist/ui/components/ui-visibility/UIVisibility.d.ts +1 -0
  285. package/dist/ui/components/ui-zoom/UIZoom.d.ts +1 -0
  286. package/dist/ui/jsx.d.ts +4 -4
  287. package/dist/ui/vocabulary/defaults.generated.js +1 -1
  288. package/dist/util/spell/constants.js +1 -1
  289. package/epic/.claude-plugin/plugin.json +1 -1
  290. package/epic/.codex-plugin/plugin.json +1 -1
  291. package/epic/hooks/handoff.mjs +4 -3
  292. package/epic/hooks/worktree.mjs +22 -3
  293. package/epic/package.json +41 -2
  294. package/epic/skills/details/SKILL.md +2 -1
  295. package/epic/skills/epic/SKILL.md +7 -1
  296. package/epic/skills/epic/guide.md +3 -0
  297. package/epic/skills/isolate/SKILL.md +53 -20
  298. package/epic/src/AGENTS.md +11 -2
  299. package/epic/templates/durable.html +1 -1
  300. package/epic/vscode/package.json +1 -1
  301. package/epic/vscode/spell-epic.vsix +0 -0
  302. package/package.json +1 -1
  303. package/parser/package.json +1 -1
  304. package/ui/package.json +15 -2
@@ -1,2142 +1,20 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/tools/_assets/core-reference.js
5
- (() => {
6
- var Zu = Object.create;
7
- var Ft = Object.defineProperty;
8
- var ei = Object.getOwnPropertyDescriptor;
9
- var ti = Object.getOwnPropertyNames;
10
- var ri = Object.getPrototypeOf, ni = Object.prototype.hasOwnProperty;
11
- var l = /* @__PURE__ */ __name((e, t) => () => {
12
- try {
13
- return t || e((t = { exports: {} }).exports, t), t.exports;
14
- } catch (r) {
15
- throw t = 0, r;
16
- }
17
- }, "l");
18
- var ui = /* @__PURE__ */ __name((e, t, r, n) => {
19
- if (t && typeof t == "object" || typeof t == "function") for (let i of ti(t)) !ni.call(e, i) && i !== r && Ft(e, i, { get: /* @__PURE__ */ __name(() => t[i], "get"), enumerable: !(n = ei(t, i)) || n.enumerable });
20
- return e;
21
- }, "ui");
22
- var Fe = /* @__PURE__ */ __name((e, t, r) => (r = e != null ? Zu(ri(e)) : {}, ui(t || !e || !e.__esModule ? Ft(r, "default", { value: e, enumerable: true }) : r, e)), "Fe");
23
- var Oe = l((rc, wt) => {
24
- var fi = Array.isArray;
25
- wt.exports = fi;
26
- });
27
- var Bt = l((nc, St) => {
28
- var li = typeof global == "object" && global && global.Object === Object && global;
29
- St.exports = li;
30
- });
31
- var Ie = l((uc, kt) => {
32
- var di = Bt(), pi = typeof self == "object" && self && self.Object === Object && self, Di = di || pi || Function("return this")();
33
- kt.exports = Di;
34
- });
35
- var Ne = l((ic, Pt) => {
36
- var hi = Ie(), gi = hi.Symbol;
37
- Pt.exports = gi;
38
- });
39
- var Nt = l((oc, It) => {
40
- var Tt = Ne(), Ot = Object.prototype, mi = Ot.hasOwnProperty, Ci = Ot.toString, ye = Tt ? Tt.toStringTag : void 0;
41
- function Ai(e) {
42
- var t = mi.call(e, ye), r = e[ye];
43
- try {
44
- e[ye] = void 0;
45
- var n = true;
46
- } catch {
47
- }
48
- var i = Ci.call(e);
49
- return n && (t ? e[ye] = r : delete e[ye]), i;
50
- }
51
- __name(Ai, "Ai");
52
- It.exports = Ai;
53
- });
54
- var Rt = l((sc, _t) => {
55
- var Ei = Object.prototype, Fi = Ei.toString;
56
- function yi(e) {
57
- return Fi.call(e);
58
- }
59
- __name(yi, "yi");
60
- _t.exports = yi;
61
- });
62
- var tt = l((ac, Mt) => {
63
- var $t = Ne(), bi = Nt(), vi = Rt(), xi = "[object Null]", wi = "[object Undefined]", Lt = $t ? $t.toStringTag : void 0;
64
- function Si(e) {
65
- return e == null ? e === void 0 ? wi : xi : Lt && Lt in Object(e) ? bi(e) : vi(e);
66
- }
67
- __name(Si, "Si");
68
- Mt.exports = Si;
69
- });
70
- var jt = l((cc, qt) => {
71
- function Bi(e) {
72
- return e != null && typeof e == "object";
73
- }
74
- __name(Bi, "Bi");
75
- qt.exports = Bi;
76
- });
77
- var _e = l((fc, Ut) => {
78
- var ki = tt(), Pi = jt(), Ti = "[object Symbol]";
79
- function Oi(e) {
80
- return typeof e == "symbol" || Pi(e) && ki(e) == Ti;
81
- }
82
- __name(Oi, "Oi");
83
- Ut.exports = Oi;
84
- });
85
- var Vt = l((lc, Wt) => {
86
- var Ii = Oe(), Ni = _e(), _i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ri = /^\w*$/;
87
- function $i(e, t) {
88
- if (Ii(e)) return false;
89
- var r = typeof e;
90
- return r == "number" || r == "symbol" || r == "boolean" || e == null || Ni(e) ? true : Ri.test(e) || !_i.test(e) || t != null && e in Object(t);
91
- }
92
- __name($i, "$i");
93
- Wt.exports = $i;
94
- });
95
- var Re = l((dc, Ht) => {
96
- function Li(e) {
97
- var t = typeof e;
98
- return e != null && (t == "object" || t == "function");
99
- }
100
- __name(Li, "Li");
101
- Ht.exports = Li;
102
- });
103
- var zt = l((pc, Kt) => {
104
- var Mi = tt(), qi = Re(), ji = "[object AsyncFunction]", Ui = "[object Function]", Wi = "[object GeneratorFunction]", Vi = "[object Proxy]";
105
- function Hi(e) {
106
- if (!qi(e)) return false;
107
- var t = Mi(e);
108
- return t == Ui || t == Wi || t == ji || t == Vi;
109
- }
110
- __name(Hi, "Hi");
111
- Kt.exports = Hi;
112
- });
113
- var Jt = l((Dc, Gt) => {
114
- var Ki = Ie(), zi = Ki["__core-js_shared__"];
115
- Gt.exports = zi;
116
- });
117
- var Xt = l((hc, Qt) => {
118
- var rt = Jt(), Yt = (function() {
119
- var e = /[^.]+$/.exec(rt && rt.keys && rt.keys.IE_PROTO || "");
120
- return e ? "Symbol(src)_1." + e : "";
121
- })();
122
- function Gi(e) {
123
- return !!Yt && Yt in e;
124
- }
125
- __name(Gi, "Gi");
126
- Qt.exports = Gi;
127
- });
128
- var er = l((gc, Zt) => {
129
- var Ji = Function.prototype, Yi = Ji.toString;
130
- function Qi(e) {
131
- if (e != null) {
132
- try {
133
- return Yi.call(e);
134
- } catch {
135
- }
136
- try {
137
- return e + "";
138
- } catch {
139
- }
140
- }
141
- return "";
142
- }
143
- __name(Qi, "Qi");
144
- Zt.exports = Qi;
145
- });
146
- var rr = l((mc, tr) => {
147
- var Xi = zt(), Zi = Xt(), eo = Re(), to = er(), ro = /[\\^$.*+?()[\]{}|]/g, no = /^\[object .+?Constructor\]$/, uo = Function.prototype, io = Object.prototype, oo = uo.toString, so = io.hasOwnProperty, ao = RegExp("^" + oo.call(so).replace(ro, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
148
- function co(e) {
149
- if (!eo(e) || Zi(e)) return false;
150
- var t = Xi(e) ? ao : no;
151
- return t.test(to(e));
152
- }
153
- __name(co, "co");
154
- tr.exports = co;
155
- });
156
- var ur = l((Cc, nr) => {
157
- function fo(e, t) {
158
- return e?.[t];
159
- }
160
- __name(fo, "fo");
161
- nr.exports = fo;
162
- });
163
- var $e = l((Ac, ir) => {
164
- var lo = rr(), po = ur();
165
- function Do(e, t) {
166
- var r = po(e, t);
167
- return lo(r) ? r : void 0;
168
- }
169
- __name(Do, "Do");
170
- ir.exports = Do;
171
- });
172
- var be = l((Ec, or) => {
173
- var ho = $e(), go = ho(Object, "create");
174
- or.exports = go;
175
- });
176
- var cr = l((Fc, ar) => {
177
- var sr = be();
178
- function mo() {
179
- this.__data__ = sr ? sr(null) : {}, this.size = 0;
180
- }
181
- __name(mo, "mo");
182
- ar.exports = mo;
183
- });
184
- var lr = l((yc, fr) => {
185
- function Co(e) {
186
- var t = this.has(e) && delete this.__data__[e];
187
- return this.size -= t ? 1 : 0, t;
188
- }
189
- __name(Co, "Co");
190
- fr.exports = Co;
191
- });
192
- var pr = l((bc, dr) => {
193
- var Ao = be(), Eo = "__lodash_hash_undefined__", Fo = Object.prototype, yo = Fo.hasOwnProperty;
194
- function bo(e) {
195
- var t = this.__data__;
196
- if (Ao) {
197
- var r = t[e];
198
- return r === Eo ? void 0 : r;
199
- }
200
- return yo.call(t, e) ? t[e] : void 0;
201
- }
202
- __name(bo, "bo");
203
- dr.exports = bo;
204
- });
205
- var hr = l((vc, Dr) => {
206
- var vo = be(), xo = Object.prototype, wo = xo.hasOwnProperty;
207
- function So(e) {
208
- var t = this.__data__;
209
- return vo ? t[e] !== void 0 : wo.call(t, e);
210
- }
211
- __name(So, "So");
212
- Dr.exports = So;
213
- });
214
- var mr = l((xc, gr) => {
215
- var Bo = be(), ko = "__lodash_hash_undefined__";
216
- function Po(e, t) {
217
- var r = this.__data__;
218
- return this.size += this.has(e) ? 0 : 1, r[e] = Bo && t === void 0 ? ko : t, this;
219
- }
220
- __name(Po, "Po");
221
- gr.exports = Po;
222
- });
223
- var Ar = l((wc, Cr) => {
224
- var To = cr(), Oo = lr(), Io = pr(), No = hr(), _o = mr();
225
- function De(e) {
226
- var t = -1, r = e == null ? 0 : e.length;
227
- for (this.clear(); ++t < r; ) {
228
- var n = e[t];
229
- this.set(n[0], n[1]);
230
- }
231
- }
232
- __name(De, "De");
233
- De.prototype.clear = To;
234
- De.prototype.delete = Oo;
235
- De.prototype.get = Io;
236
- De.prototype.has = No;
237
- De.prototype.set = _o;
238
- Cr.exports = De;
239
- });
240
- var Fr = l((Sc, Er) => {
241
- function Ro() {
242
- this.__data__ = [], this.size = 0;
243
- }
244
- __name(Ro, "Ro");
245
- Er.exports = Ro;
246
- });
247
- var nt = l((Bc, yr) => {
248
- function $o(e, t) {
249
- return e === t || e !== e && t !== t;
250
- }
251
- __name($o, "$o");
252
- yr.exports = $o;
253
- });
254
- var ve = l((kc, br) => {
255
- var Lo = nt();
256
- function Mo(e, t) {
257
- for (var r = e.length; r--; ) if (Lo(e[r][0], t)) return r;
258
- return -1;
259
- }
260
- __name(Mo, "Mo");
261
- br.exports = Mo;
262
- });
263
- var xr = l((Pc, vr) => {
264
- var qo = ve(), jo = Array.prototype, Uo = jo.splice;
265
- function Wo(e) {
266
- var t = this.__data__, r = qo(t, e);
267
- if (r < 0) return false;
268
- var n = t.length - 1;
269
- return r == n ? t.pop() : Uo.call(t, r, 1), --this.size, true;
270
- }
271
- __name(Wo, "Wo");
272
- vr.exports = Wo;
273
- });
274
- var Sr = l((Tc, wr) => {
275
- var Vo = ve();
276
- function Ho(e) {
277
- var t = this.__data__, r = Vo(t, e);
278
- return r < 0 ? void 0 : t[r][1];
279
- }
280
- __name(Ho, "Ho");
281
- wr.exports = Ho;
282
- });
283
- var kr = l((Oc, Br) => {
284
- var Ko = ve();
285
- function zo(e) {
286
- return Ko(this.__data__, e) > -1;
287
- }
288
- __name(zo, "zo");
289
- Br.exports = zo;
290
- });
291
- var Tr = l((Ic, Pr) => {
292
- var Go = ve();
293
- function Jo(e, t) {
294
- var r = this.__data__, n = Go(r, e);
295
- return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
296
- }
297
- __name(Jo, "Jo");
298
- Pr.exports = Jo;
299
- });
300
- var Ir = l((Nc, Or) => {
301
- var Yo = Fr(), Qo = xr(), Xo = Sr(), Zo = kr(), es = Tr();
302
- function he(e) {
303
- var t = -1, r = e == null ? 0 : e.length;
304
- for (this.clear(); ++t < r; ) {
305
- var n = e[t];
306
- this.set(n[0], n[1]);
307
- }
308
- }
309
- __name(he, "he");
310
- he.prototype.clear = Yo;
311
- he.prototype.delete = Qo;
312
- he.prototype.get = Xo;
313
- he.prototype.has = Zo;
314
- he.prototype.set = es;
315
- Or.exports = he;
316
- });
317
- var _r = l((_c, Nr) => {
318
- var ts = $e(), rs = Ie(), ns = ts(rs, "Map");
319
- Nr.exports = ns;
320
- });
321
- var Lr = l((Rc, $r) => {
322
- var Rr = Ar(), us = Ir(), is = _r();
323
- function os() {
324
- this.size = 0, this.__data__ = { hash: new Rr(), map: new (is || us)(), string: new Rr() };
325
- }
326
- __name(os, "os");
327
- $r.exports = os;
328
- });
329
- var qr = l(($c, Mr) => {
330
- function ss(e) {
331
- var t = typeof e;
332
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
333
- }
334
- __name(ss, "ss");
335
- Mr.exports = ss;
336
- });
337
- var xe = l((Lc, jr) => {
338
- var as = qr();
339
- function cs(e, t) {
340
- var r = e.__data__;
341
- return as(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
342
- }
343
- __name(cs, "cs");
344
- jr.exports = cs;
345
- });
346
- var Wr = l((Mc, Ur) => {
347
- var fs = xe();
348
- function ls(e) {
349
- var t = fs(this, e).delete(e);
350
- return this.size -= t ? 1 : 0, t;
351
- }
352
- __name(ls, "ls");
353
- Ur.exports = ls;
354
- });
355
- var Hr = l((qc, Vr) => {
356
- var ds = xe();
357
- function ps(e) {
358
- return ds(this, e).get(e);
359
- }
360
- __name(ps, "ps");
361
- Vr.exports = ps;
362
- });
363
- var zr = l((jc, Kr) => {
364
- var Ds = xe();
365
- function hs(e) {
366
- return Ds(this, e).has(e);
367
- }
368
- __name(hs, "hs");
369
- Kr.exports = hs;
370
- });
371
- var Jr = l((Uc, Gr) => {
372
- var gs = xe();
373
- function ms(e, t) {
374
- var r = gs(this, e), n = r.size;
375
- return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
376
- }
377
- __name(ms, "ms");
378
- Gr.exports = ms;
379
- });
380
- var Qr = l((Wc, Yr) => {
381
- var Cs = Lr(), As = Wr(), Es = Hr(), Fs = zr(), ys = Jr();
382
- function ge(e) {
383
- var t = -1, r = e == null ? 0 : e.length;
384
- for (this.clear(); ++t < r; ) {
385
- var n = e[t];
386
- this.set(n[0], n[1]);
387
- }
388
- }
389
- __name(ge, "ge");
390
- ge.prototype.clear = Cs;
391
- ge.prototype.delete = As;
392
- ge.prototype.get = Es;
393
- ge.prototype.has = Fs;
394
- ge.prototype.set = ys;
395
- Yr.exports = ge;
396
- });
397
- var en = l((Vc, Zr) => {
398
- var Xr = Qr(), bs = "Expected a function";
399
- function ut(e, t) {
400
- if (typeof e != "function" || t != null && typeof t != "function") throw new TypeError(bs);
401
- var r = /* @__PURE__ */ __name(function() {
402
- var n = arguments, i = t ? t.apply(this, n) : n[0], a = r.cache;
403
- if (a.has(i)) return a.get(i);
404
- var c = e.apply(this, n);
405
- return r.cache = a.set(i, c) || a, c;
406
- }, "r");
407
- return r.cache = new (ut.Cache || Xr)(), r;
408
- }
409
- __name(ut, "ut");
410
- ut.Cache = Xr;
411
- Zr.exports = ut;
412
- });
413
- var rn = l((Hc, tn) => {
414
- var vs = en(), xs = 500;
415
- function ws(e) {
416
- var t = vs(e, function(n) {
417
- return r.size === xs && r.clear(), n;
418
- }), r = t.cache;
419
- return t;
420
- }
421
- __name(ws, "ws");
422
- tn.exports = ws;
423
- });
424
- var un = l((Kc, nn) => {
425
- var Ss = rn(), Bs = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ks = /\\(\\)?/g, Ps = Ss(function(e) {
426
- var t = [];
427
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(Bs, function(r, n, i, a) {
428
- t.push(i ? a.replace(ks, "$1") : n || r);
429
- }), t;
430
- });
431
- nn.exports = Ps;
432
- });
433
- var sn = l((zc, on) => {
434
- function Ts(e, t) {
435
- for (var r = -1, n = e == null ? 0 : e.length, i = Array(n); ++r < n; ) i[r] = t(e[r], r, e);
436
- return i;
437
- }
438
- __name(Ts, "Ts");
439
- on.exports = Ts;
440
- });
441
- var pn = l((Gc, dn) => {
442
- var an = Ne(), Os = sn(), Is = Oe(), Ns = _e(), _s = 1 / 0, cn = an ? an.prototype : void 0, fn = cn ? cn.toString : void 0;
443
- function ln(e) {
444
- if (typeof e == "string") return e;
445
- if (Is(e)) return Os(e, ln) + "";
446
- if (Ns(e)) return fn ? fn.call(e) : "";
447
- var t = e + "";
448
- return t == "0" && 1 / e == -_s ? "-0" : t;
449
- }
450
- __name(ln, "ln");
451
- dn.exports = ln;
452
- });
453
- var hn = l((Jc, Dn) => {
454
- var Rs = pn();
455
- function $s(e) {
456
- return e == null ? "" : Rs(e);
457
- }
458
- __name($s, "$s");
459
- Dn.exports = $s;
460
- });
461
- var it = l((Yc, gn) => {
462
- var Ls = Oe(), Ms = Vt(), qs = un(), js = hn();
463
- function Us(e, t) {
464
- return Ls(e) ? e : Ms(e, t) ? [e] : qs(js(e));
465
- }
466
- __name(Us, "Us");
467
- gn.exports = Us;
468
- });
469
- var ot = l((Qc, mn) => {
470
- var Ws = _e(), Vs = 1 / 0;
471
- function Hs(e) {
472
- if (typeof e == "string" || Ws(e)) return e;
473
- var t = e + "";
474
- return t == "0" && 1 / e == -Vs ? "-0" : t;
475
- }
476
- __name(Hs, "Hs");
477
- mn.exports = Hs;
478
- });
479
- var An = l((Xc, Cn) => {
480
- var Ks = it(), zs = ot();
481
- function Gs(e, t) {
482
- t = Ks(t, e);
483
- for (var r = 0, n = t.length; e != null && r < n; ) e = e[zs(t[r++])];
484
- return r && r == n ? e : void 0;
485
- }
486
- __name(Gs, "Gs");
487
- Cn.exports = Gs;
488
- });
489
- var Fn = l((Zc, En) => {
490
- var Js = An();
491
- function Ys(e, t, r) {
492
- var n = e == null ? void 0 : Js(e, t);
493
- return n === void 0 ? r : n;
494
- }
495
- __name(Ys, "Ys");
496
- En.exports = Ys;
497
- });
498
- var bn = l((ef, yn) => {
499
- var Qs = $e(), Xs = (function() {
500
- try {
501
- var e = Qs(Object, "defineProperty");
502
- return e({}, "", {}), e;
503
- } catch {
504
- }
505
- })();
506
- yn.exports = Xs;
507
- });
508
- var wn = l((tf, xn) => {
509
- var vn = bn();
510
- function Zs(e, t, r) {
511
- t == "__proto__" && vn ? vn(e, t, { configurable: true, enumerable: true, value: r, writable: true }) : e[t] = r;
512
- }
513
- __name(Zs, "Zs");
514
- xn.exports = Zs;
515
- });
516
- var Bn = l((rf, Sn) => {
517
- var ea = wn(), ta = nt(), ra = Object.prototype, na = ra.hasOwnProperty;
518
- function ua(e, t, r) {
519
- var n = e[t];
520
- (!(na.call(e, t) && ta(n, r)) || r === void 0 && !(t in e)) && ea(e, t, r);
521
- }
522
- __name(ua, "ua");
523
- Sn.exports = ua;
524
- });
525
- var Pn = l((nf, kn) => {
526
- var ia = 9007199254740991, oa = /^(?:0|[1-9]\d*)$/;
527
- function sa(e, t) {
528
- var r = typeof e;
529
- return t = t ?? ia, !!t && (r == "number" || r != "symbol" && oa.test(e)) && e > -1 && e % 1 == 0 && e < t;
530
- }
531
- __name(sa, "sa");
532
- kn.exports = sa;
533
- });
534
- var In = l((uf, On) => {
535
- var aa = Bn(), ca = it(), fa = Pn(), Tn = Re(), la = ot();
536
- function da(e, t, r, n) {
537
- if (!Tn(e)) return e;
538
- t = ca(t, e);
539
- for (var i = -1, a = t.length, c = a - 1, p = e; p != null && ++i < a; ) {
540
- var D = la(t[i]), C = r;
541
- if (D === "__proto__" || D === "constructor" || D === "prototype") return e;
542
- if (i != c) {
543
- var S = p[D];
544
- C = n ? n(S, D, p) : void 0, C === void 0 && (C = Tn(S) ? S : fa(t[i + 1]) ? [] : {});
545
- }
546
- aa(p, D, C), p = p[D];
547
- }
548
- return e;
549
- }
550
- __name(da, "da");
551
- On.exports = da;
552
- });
553
- var _n = l((of, Nn) => {
554
- var pa = In();
555
- function Da(e, t, r) {
556
- return e == null ? e : pa(e, t, r);
557
- }
558
- __name(Da, "Da");
559
- Nn.exports = Da;
560
- });
561
- var $n = l((sf, Rn) => {
562
- "use strict";
563
- Rn.exports = (e) => encodeURIComponent(e).replace(/[!'()*]/g, (t) => `%${t.charCodeAt(0).toString(16).toUpperCase()}`);
564
- });
565
- var Un = l((af, jn) => {
566
- "use strict";
567
- var qn = "%[a-f0-9]{2}", Ln = new RegExp("(" + qn + ")|([^%]+?)", "gi"), Mn = new RegExp("(" + qn + ")+", "gi");
568
- function st(e, t) {
569
- try {
570
- return [decodeURIComponent(e.join(""))];
571
- } catch {
572
- }
573
- if (e.length === 1) return e;
574
- t = t || 1;
575
- var r = e.slice(0, t), n = e.slice(t);
576
- return Array.prototype.concat.call([], st(r), st(n));
577
- }
578
- __name(st, "st");
579
- function ha(e) {
580
- try {
581
- return decodeURIComponent(e);
582
- } catch {
583
- for (var t = e.match(Ln) || [], r = 1; r < t.length; r++) e = st(t, r).join(""), t = e.match(Ln) || [];
584
- return e;
585
- }
586
- }
587
- __name(ha, "ha");
588
- function ga(e) {
589
- for (var t = { "%FE%FF": "��", "%FF%FE": "��" }, r = Mn.exec(e); r; ) {
590
- try {
591
- t[r[0]] = decodeURIComponent(r[0]);
592
- } catch {
593
- var n = ha(r[0]);
594
- n !== r[0] && (t[r[0]] = n);
595
- }
596
- r = Mn.exec(e);
597
- }
598
- t["%C2"] = "�";
599
- for (var i = Object.keys(t), a = 0; a < i.length; a++) {
600
- var c = i[a];
601
- e = e.replace(new RegExp(c, "g"), t[c]);
602
- }
603
- return e;
604
- }
605
- __name(ga, "ga");
606
- jn.exports = function(e) {
607
- if (typeof e != "string") throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof e + "`");
608
- try {
609
- return e = e.replace(/\+/g, " "), decodeURIComponent(e);
610
- } catch {
611
- return ga(e);
612
- }
613
- };
614
- });
615
- var Vn = l((cf, Wn) => {
616
- "use strict";
617
- Wn.exports = (e, t) => {
618
- if (!(typeof e == "string" && typeof t == "string")) throw new TypeError("Expected the arguments to be of type `string`");
619
- if (t === "") return [e];
620
- let r = e.indexOf(t);
621
- return r === -1 ? [e] : [e.slice(0, r), e.slice(r + t.length)];
622
- };
623
- });
624
- var Kn = l((ff, Hn) => {
625
- "use strict";
626
- Hn.exports = function(e, t) {
627
- for (var r = {}, n = Object.keys(e), i = Array.isArray(t), a = 0; a < n.length; a++) {
628
- var c = n[a], p = e[c];
629
- (i ? t.indexOf(c) !== -1 : t(c, p, e)) && (r[c] = p);
630
- }
631
- return r;
632
- };
633
- });
634
- var eu = l((q) => {
635
- "use strict";
636
- var ma = $n(), Ca = Un(), Gn = Vn(), Aa = Kn(), Ea = /* @__PURE__ */ __name((e) => e == null, "Ea");
637
- function Fa(e) {
638
- switch (e.arrayFormat) {
639
- case "index":
640
- return (t) => (r, n) => {
641
- let i = r.length;
642
- return n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [I(t, e), "[", i, "]"].join("")] : [...r, [I(t, e), "[", I(i, e), "]=", I(n, e)].join("")];
643
- };
644
- case "bracket":
645
- return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, [I(t, e), "[]"].join("")] : [...r, [I(t, e), "[]=", I(n, e)].join("")];
646
- case "comma":
647
- case "separator":
648
- return (t) => (r, n) => n == null || n.length === 0 ? r : r.length === 0 ? [[I(t, e), "=", I(n, e)].join("")] : [[r, I(n, e)].join(e.arrayFormatSeparator)];
649
- default:
650
- return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [...r, I(t, e)] : [...r, [I(t, e), "=", I(n, e)].join("")];
651
- }
652
- }
653
- __name(Fa, "Fa");
654
- function ya(e) {
655
- let t;
656
- switch (e.arrayFormat) {
657
- case "index":
658
- return (r, n, i) => {
659
- if (t = /\[(\d*)\]$/.exec(r), r = r.replace(/\[\d*\]$/, ""), !t) {
660
- i[r] = n;
661
- return;
662
- }
663
- i[r] === void 0 && (i[r] = {}), i[r][t[1]] = n;
664
- };
665
- case "bracket":
666
- return (r, n, i) => {
667
- if (t = /(\[\])$/.exec(r), r = r.replace(/\[\]$/, ""), !t) {
668
- i[r] = n;
669
- return;
670
- }
671
- if (i[r] === void 0) {
672
- i[r] = [n];
673
- return;
674
- }
675
- i[r] = [].concat(i[r], n);
676
- };
677
- case "comma":
678
- case "separator":
679
- return (r, n, i) => {
680
- let a = typeof n == "string" && n.includes(e.arrayFormatSeparator), c = typeof n == "string" && !a && ae(n, e).includes(e.arrayFormatSeparator);
681
- n = c ? ae(n, e) : n;
682
- let p = a || c ? n.split(e.arrayFormatSeparator).map((D) => ae(D, e)) : n === null ? n : ae(n, e);
683
- i[r] = p;
684
- };
685
- default:
686
- return (r, n, i) => {
687
- if (i[r] === void 0) {
688
- i[r] = n;
689
- return;
690
- }
691
- i[r] = [].concat(i[r], n);
692
- };
693
- }
694
- }
695
- __name(ya, "ya");
696
- function Jn(e) {
697
- if (typeof e != "string" || e.length !== 1) throw new TypeError("arrayFormatSeparator must be single character string");
698
- }
699
- __name(Jn, "Jn");
700
- function I(e, t) {
701
- return t.encode ? t.strict ? ma(e) : encodeURIComponent(e) : e;
702
- }
703
- __name(I, "I");
704
- function ae(e, t) {
705
- return t.decode ? Ca(e) : e;
706
- }
707
- __name(ae, "ae");
708
- function Yn(e) {
709
- return Array.isArray(e) ? e.sort() : typeof e == "object" ? Yn(Object.keys(e)).sort((t, r) => Number(t) - Number(r)).map((t) => e[t]) : e;
710
- }
711
- __name(Yn, "Yn");
712
- function Qn(e) {
713
- let t = e.indexOf("#");
714
- return t !== -1 && (e = e.slice(0, t)), e;
715
- }
716
- __name(Qn, "Qn");
717
- function ba(e) {
718
- let t = "", r = e.indexOf("#");
719
- return r !== -1 && (t = e.slice(r)), t;
720
- }
721
- __name(ba, "ba");
722
- function Xn(e) {
723
- e = Qn(e);
724
- let t = e.indexOf("?");
725
- return t === -1 ? "" : e.slice(t + 1);
726
- }
727
- __name(Xn, "Xn");
728
- function zn(e, t) {
729
- return t.parseNumbers && !Number.isNaN(Number(e)) && typeof e == "string" && e.trim() !== "" ? e = Number(e) : t.parseBooleans && e !== null && (e.toLowerCase() === "true" || e.toLowerCase() === "false") && (e = e.toLowerCase() === "true"), e;
730
- }
731
- __name(zn, "zn");
732
- function Zn(e, t) {
733
- t = Object.assign({ decode: true, sort: true, arrayFormat: "none", arrayFormatSeparator: ",", parseNumbers: false, parseBooleans: false }, t), Jn(t.arrayFormatSeparator);
734
- let r = ya(t), n = /* @__PURE__ */ Object.create(null);
735
- if (typeof e != "string" || (e = e.trim().replace(/^[?#&]/, ""), !e)) return n;
736
- for (let i of e.split("&")) {
737
- if (i === "") continue;
738
- let [a, c] = Gn(t.decode ? i.replace(/\+/g, " ") : i, "=");
739
- c = c === void 0 ? null : ["comma", "separator"].includes(t.arrayFormat) ? c : ae(c, t), r(ae(a, t), c, n);
740
- }
741
- for (let i of Object.keys(n)) {
742
- let a = n[i];
743
- if (typeof a == "object" && a !== null) for (let c of Object.keys(a)) a[c] = zn(a[c], t);
744
- else n[i] = zn(a, t);
745
- }
746
- return t.sort === false ? n : (t.sort === true ? Object.keys(n).sort() : Object.keys(n).sort(t.sort)).reduce((i, a) => {
747
- let c = n[a];
748
- return c && typeof c == "object" && !Array.isArray(c) ? i[a] = Yn(c) : i[a] = c, i;
749
- }, /* @__PURE__ */ Object.create(null));
750
- }
751
- __name(Zn, "Zn");
752
- q.extract = Xn;
753
- q.parse = Zn;
754
- q.stringify = (e, t) => {
755
- if (!e) return "";
756
- t = Object.assign({ encode: true, strict: true, arrayFormat: "none", arrayFormatSeparator: "," }, t), Jn(t.arrayFormatSeparator);
757
- let r = /* @__PURE__ */ __name((c) => t.skipNull && Ea(e[c]) || t.skipEmptyString && e[c] === "", "r"), n = Fa(t), i = {};
758
- for (let c of Object.keys(e)) r(c) || (i[c] = e[c]);
759
- let a = Object.keys(i);
760
- return t.sort !== false && a.sort(t.sort), a.map((c) => {
761
- let p = e[c];
762
- return p === void 0 ? "" : p === null ? I(c, t) : Array.isArray(p) ? p.reduce(n(c), []).join("&") : I(c, t) + "=" + I(p, t);
763
- }).filter((c) => c.length > 0).join("&");
764
- };
765
- q.parseUrl = (e, t) => {
766
- t = Object.assign({ decode: true }, t);
767
- let [r, n] = Gn(e, "#");
768
- return Object.assign({ url: r.split("?")[0] || "", query: Zn(Xn(e), t) }, t && t.parseFragmentIdentifier && n ? { fragmentIdentifier: ae(n, t) } : {});
769
- };
770
- q.stringifyUrl = (e, t) => {
771
- t = Object.assign({ encode: true, strict: true }, t);
772
- let r = Qn(e.url).split("?")[0] || "", n = q.extract(e.url), i = q.parse(n, { sort: false }), a = Object.assign(i, e.query), c = q.stringify(a, t);
773
- c && (c = `?${c}`);
774
- let p = ba(e.url);
775
- return e.fragmentIdentifier && (p = `#${I(e.fragmentIdentifier, t)}`), `${r}${c}${p}`;
776
- };
777
- q.pick = (e, t, r) => {
778
- r = Object.assign({ parseFragmentIdentifier: true }, r);
779
- let { url: n, query: i, fragmentIdentifier: a } = q.parseUrl(e, r);
780
- return q.stringifyUrl({ url: n, query: Aa(i, t), fragmentIdentifier: a }, r);
781
- };
782
- q.exclude = (e, t, r) => {
783
- let n = Array.isArray(t) ? (i) => !t.includes(i) : (i, a) => !t(i, a);
784
- return q.pick(e, n, r);
785
- };
786
- });
787
- var tu = l((at, ct) => {
788
- (function(e, t) {
789
- typeof at == "object" && typeof ct < "u" ? ct.exports = t() : typeof define == "function" && define.amd ? define(t) : e.JSON5 = t();
790
- })(at, (function() {
791
- "use strict";
792
- function e(u, o) {
793
- return o = { exports: {} }, u(o, o.exports), o.exports;
794
- }
795
- __name(e, "e");
796
- var t = e(function(u) {
797
- var o = u.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")();
798
- typeof __g == "number" && (__g = o);
799
- }), r = e(function(u) {
800
- var o = u.exports = { version: "2.6.5" };
801
- typeof __e == "number" && (__e = o);
802
- }), n = r.version, i = /* @__PURE__ */ __name(function(u) {
803
- return typeof u == "object" ? u !== null : typeof u == "function";
804
- }, "i"), a = /* @__PURE__ */ __name(function(u) {
805
- if (!i(u)) throw TypeError(u + " is not an object!");
806
- return u;
807
- }, "a"), c = /* @__PURE__ */ __name(function(u) {
808
- try {
809
- return !!u();
810
- } catch {
811
- return true;
812
- }
813
- }, "c"), p = !c(function() {
814
- return Object.defineProperty({}, "a", { get: /* @__PURE__ */ __name(function() {
815
- return 7;
816
- }, "get") }).a != 7;
817
- }), D = t.document, C = i(D) && i(D.createElement), S = /* @__PURE__ */ __name(function(u) {
818
- return C ? D.createElement(u) : {};
819
- }, "S"), P = !p && !c(function() {
820
- return Object.defineProperty(S("div"), "a", { get: /* @__PURE__ */ __name(function() {
821
- return 7;
822
- }, "get") }).a != 7;
823
- }), ee = /* @__PURE__ */ __name(function(u, o) {
824
- if (!i(u)) return u;
825
- var d, f;
826
- if (o && typeof (d = u.toString) == "function" && !i(f = d.call(u)) || typeof (d = u.valueOf) == "function" && !i(f = d.call(u)) || !o && typeof (d = u.toString) == "function" && !i(f = d.call(u))) return f;
827
- throw TypeError("Can't convert object to primitive value");
828
- }, "ee"), We = Object.defineProperty, Ve = p ? Object.defineProperty : function(o, d, f) {
829
- if (a(o), d = ee(d, true), a(f), P) try {
830
- return We(o, d, f);
831
- } catch {
832
- }
833
- if ("get" in f || "set" in f) throw TypeError("Accessors not supported!");
834
- return "value" in f && (o[d] = f.value), o;
835
- }, He = { f: Ve }, j = /* @__PURE__ */ __name(function(u, o) {
836
- return { enumerable: !(u & 1), configurable: !(u & 2), writable: !(u & 4), value: o };
837
- }, "j"), G = p ? function(u, o, d) {
838
- return He.f(u, o, j(1, d));
839
- } : function(u, o, d) {
840
- return u[o] = d, u;
841
- }, U = {}.hasOwnProperty, pt = /* @__PURE__ */ __name(function(u, o) {
842
- return U.call(u, o);
843
- }, "pt"), Fu = 0, yu = Math.random(), bu = /* @__PURE__ */ __name(function(u) {
844
- return "Symbol(".concat(u === void 0 ? "" : u, ")_", (++Fu + yu).toString(36));
845
- }, "bu"), vu = false, xu = e(function(u) {
846
- var o = "__core-js_shared__", d = t[o] || (t[o] = {});
847
- (u.exports = function(f, h) {
848
- return d[f] || (d[f] = h !== void 0 ? h : {});
849
- })("versions", []).push({ version: r.version, mode: vu ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)" });
850
- }), Ke = xu("native-function-to-string", Function.toString), wu = e(function(u) {
851
- var o = bu("src"), d = "toString", f = ("" + Ke).split(d);
852
- r.inspectSource = function(h) {
853
- return Ke.call(h);
854
- }, (u.exports = function(h, E, y, L) {
855
- var k = typeof y == "function";
856
- k && (pt(y, "name") || G(y, "name", E)), h[E] !== y && (k && (pt(y, o) || G(y, o, h[E] ? "" + h[E] : f.join(String(E)))), h === t ? h[E] = y : L ? h[E] ? h[E] = y : G(h, E, y) : (delete h[E], G(h, E, y)));
857
- })(Function.prototype, d, function() {
858
- return typeof this == "function" && this[o] || Ke.call(this);
859
- });
860
- }), Su = /* @__PURE__ */ __name(function(u) {
861
- if (typeof u != "function") throw TypeError(u + " is not a function!");
862
- return u;
863
- }, "Su"), Dt = /* @__PURE__ */ __name(function(u, o, d) {
864
- if (Su(u), o === void 0) return u;
865
- switch (d) {
866
- case 1:
867
- return function(f) {
868
- return u.call(o, f);
869
- };
870
- case 2:
871
- return function(f, h) {
872
- return u.call(o, f, h);
873
- };
874
- case 3:
875
- return function(f, h, E) {
876
- return u.call(o, f, h, E);
877
- };
878
- }
879
- return function() {
880
- return u.apply(o, arguments);
881
- };
882
- }, "Dt"), ze = "prototype", R = /* @__PURE__ */ __name(function(u, o, d) {
883
- var f = u & R.F, h = u & R.G, E = u & R.S, y = u & R.P, L = u & R.B, k = h ? t : E ? t[o] || (t[o] = {}) : (t[o] || {})[ze], ie = h ? r : r[o] || (r[o] = {}), le = ie[ze] || (ie[ze] = {}), V, J, M, de;
884
- h && (d = o);
885
- for (V in d) J = !f && k && k[V] !== void 0, M = (J ? k : d)[V], de = L && J ? Dt(M, t) : y && typeof M == "function" ? Dt(Function.call, M) : M, k && wu(k, V, M, u & R.U), ie[V] != M && G(ie, V, de), y && le[V] != M && (le[V] = M);
886
- }, "R");
887
- t.core = r, R.F = 1, R.G = 2, R.S = 4, R.P = 8, R.B = 16, R.W = 32, R.U = 64, R.R = 128;
888
- var Ce = R, Bu = Math.ceil, ku = Math.floor, ht = /* @__PURE__ */ __name(function(u) {
889
- return isNaN(u = +u) ? 0 : (u > 0 ? ku : Bu)(u);
890
- }, "ht"), Pu = /* @__PURE__ */ __name(function(u) {
891
- if (u == null) throw TypeError("Can't call method on " + u);
892
- return u;
893
- }, "Pu"), Tu = /* @__PURE__ */ __name(function(u) {
894
- return function(o, d) {
895
- var f = String(Pu(o)), h = ht(d), E = f.length, y, L;
896
- return h < 0 || h >= E ? u ? "" : void 0 : (y = f.charCodeAt(h), y < 55296 || y > 56319 || h + 1 === E || (L = f.charCodeAt(h + 1)) < 56320 || L > 57343 ? u ? f.charAt(h) : y : u ? f.slice(h, h + 2) : (y - 55296 << 10) + (L - 56320) + 65536);
897
- };
898
- }, "Tu"), Ou = Tu(false);
899
- Ce(Ce.P, "String", { codePointAt: /* @__PURE__ */ __name(function(o) {
900
- return Ou(this, o);
901
- }, "codePointAt") });
902
- var za = r.String.codePointAt, Iu = Math.max, Nu = Math.min, _u = /* @__PURE__ */ __name(function(u, o) {
903
- return u = ht(u), u < 0 ? Iu(u + o, 0) : Nu(u, o);
904
- }, "_u"), gt = String.fromCharCode, mt = String.fromCodePoint;
905
- Ce(Ce.S + Ce.F * (!!mt && mt.length != 1), "String", { fromCodePoint: /* @__PURE__ */ __name(function(o) {
906
- for (var d = arguments, f = [], h = arguments.length, E = 0, y; h > E; ) {
907
- if (y = +d[E++], _u(y, 1114111) !== y) throw RangeError(y + " is not a valid code point");
908
- f.push(y < 65536 ? gt(y) : gt(((y -= 65536) >> 10) + 55296, y % 1024 + 56320));
909
- }
910
- return f.join("");
911
- }, "fromCodePoint") });
912
- var Ga = r.String.fromCodePoint, Ru = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/, $u = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/, Lu = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/, Ge = { Space_Separator: Ru, ID_Start: $u, ID_Continue: Lu }, B = { isSpaceSeparator: /* @__PURE__ */ __name(function(o) {
913
- return typeof o == "string" && Ge.Space_Separator.test(o);
914
- }, "isSpaceSeparator"), isIdStartChar: /* @__PURE__ */ __name(function(o) {
915
- return typeof o == "string" && (o >= "a" && o <= "z" || o >= "A" && o <= "Z" || o === "$" || o === "_" || Ge.ID_Start.test(o));
916
- }, "isIdStartChar"), isIdContinueChar: /* @__PURE__ */ __name(function(o) {
917
- return typeof o == "string" && (o >= "a" && o <= "z" || o >= "A" && o <= "Z" || o >= "0" && o <= "9" || o === "$" || o === "_" || o === "‌" || o === "‍" || Ge.ID_Continue.test(o));
918
- }, "isIdContinueChar"), isDigit: /* @__PURE__ */ __name(function(o) {
919
- return typeof o == "string" && /[0-9]/.test(o);
920
- }, "isDigit"), isHexDigit: /* @__PURE__ */ __name(function(o) {
921
- return typeof o == "string" && /[0-9A-Fa-f]/.test(o);
922
- }, "isHexDigit") }, Je, $, Y, Se, te, W, T, Ye, Ae, Mu = /* @__PURE__ */ __name(function(o, d) {
923
- Je = String(o), $ = "start", Y = [], Se = 0, te = 1, W = 0, T = void 0, Ye = void 0, Ae = void 0;
924
- do
925
- T = qu(), Wu[$]();
926
- while (T.type !== "eof");
927
- return typeof d == "function" ? Qe({ "": Ae }, "", d) : Ae;
928
- }, "Mu");
929
- function Qe(u, o, d) {
930
- var f = u[o];
931
- if (f != null && typeof f == "object") if (Array.isArray(f)) for (var h = 0; h < f.length; h++) {
932
- var E = String(h), y = Qe(f, E, d);
933
- y === void 0 ? delete f[E] : Object.defineProperty(f, E, { value: y, writable: true, enumerable: true, configurable: true });
934
- }
935
- else for (var L in f) {
936
- var k = Qe(f, L, d);
937
- k === void 0 ? delete f[L] : Object.defineProperty(f, L, { value: k, writable: true, enumerable: true, configurable: true });
938
- }
939
- return d.call(u, o, f);
940
- }
941
- __name(Qe, "Qe");
942
- var A, g, Ee, Q, F;
943
- function qu() {
944
- for (A = "default", g = "", Ee = false, Q = 1; ; ) {
945
- F = X();
946
- var u = Ct[A]();
947
- if (u) return u;
948
- }
949
- }
950
- __name(qu, "qu");
951
- function X() {
952
- if (Je[Se]) return String.fromCodePoint(Je.codePointAt(Se));
953
- }
954
- __name(X, "X");
955
- function s() {
956
- var u = X();
957
- return u === `
958
- ` ? (te++, W = 0) : u ? W += u.length : W++, u && (Se += u.length), u;
959
- }
960
- __name(s, "s");
961
- var Ct = { default: /* @__PURE__ */ __name(function() {
962
- switch (F) {
963
- case " ":
964
- case "\v":
965
- case "\f":
966
- case " ":
967
- case " ":
968
- case "\uFEFF":
969
- case `
970
- `:
971
- case "\r":
972
- case "\u2028":
973
- case "\u2029":
974
- s();
975
- return;
976
- case "/":
977
- s(), A = "comment";
978
- return;
979
- case void 0:
980
- return s(), x("eof");
981
- }
982
- if (B.isSpaceSeparator(F)) {
983
- s();
984
- return;
985
- }
986
- return Ct[$]();
987
- }, "default"), comment: /* @__PURE__ */ __name(function() {
988
- switch (F) {
989
- case "*":
990
- s(), A = "multiLineComment";
991
- return;
992
- case "/":
993
- s(), A = "singleLineComment";
994
- return;
995
- }
996
- throw w(s());
997
- }, "comment"), multiLineComment: /* @__PURE__ */ __name(function() {
998
- switch (F) {
999
- case "*":
1000
- s(), A = "multiLineCommentAsterisk";
1001
- return;
1002
- case void 0:
1003
- throw w(s());
1004
- }
1005
- s();
1006
- }, "multiLineComment"), multiLineCommentAsterisk: /* @__PURE__ */ __name(function() {
1007
- switch (F) {
1008
- case "*":
1009
- s();
1010
- return;
1011
- case "/":
1012
- s(), A = "default";
1013
- return;
1014
- case void 0:
1015
- throw w(s());
1016
- }
1017
- s(), A = "multiLineComment";
1018
- }, "multiLineCommentAsterisk"), singleLineComment: /* @__PURE__ */ __name(function() {
1019
- switch (F) {
1020
- case `
1021
- `:
1022
- case "\r":
1023
- case "\u2028":
1024
- case "\u2029":
1025
- s(), A = "default";
1026
- return;
1027
- case void 0:
1028
- return s(), x("eof");
1029
- }
1030
- s();
1031
- }, "singleLineComment"), value: /* @__PURE__ */ __name(function() {
1032
- switch (F) {
1033
- case "{":
1034
- case "[":
1035
- return x("punctuator", s());
1036
- case "n":
1037
- return s(), ne("ull"), x("null", null);
1038
- case "t":
1039
- return s(), ne("rue"), x("boolean", true);
1040
- case "f":
1041
- return s(), ne("alse"), x("boolean", false);
1042
- case "-":
1043
- case "+":
1044
- s() === "-" && (Q = -1), A = "sign";
1045
- return;
1046
- case ".":
1047
- g = s(), A = "decimalPointLeading";
1048
- return;
1049
- case "0":
1050
- g = s(), A = "zero";
1051
- return;
1052
- case "1":
1053
- case "2":
1054
- case "3":
1055
- case "4":
1056
- case "5":
1057
- case "6":
1058
- case "7":
1059
- case "8":
1060
- case "9":
1061
- g = s(), A = "decimalInteger";
1062
- return;
1063
- case "I":
1064
- return s(), ne("nfinity"), x("numeric", 1 / 0);
1065
- case "N":
1066
- return s(), ne("aN"), x("numeric", NaN);
1067
- case '"':
1068
- case "'":
1069
- Ee = s() === '"', g = "", A = "string";
1070
- return;
1071
- }
1072
- throw w(s());
1073
- }, "value"), identifierNameStartEscape: /* @__PURE__ */ __name(function() {
1074
- if (F !== "u") throw w(s());
1075
- s();
1076
- var o = Xe();
1077
- switch (o) {
1078
- case "$":
1079
- case "_":
1080
- break;
1081
- default:
1082
- if (!B.isIdStartChar(o)) throw At();
1083
- break;
1084
- }
1085
- g += o, A = "identifierName";
1086
- }, "identifierNameStartEscape"), identifierName: /* @__PURE__ */ __name(function() {
1087
- switch (F) {
1088
- case "$":
1089
- case "_":
1090
- case "‌":
1091
- case "‍":
1092
- g += s();
1093
- return;
1094
- case "\\":
1095
- s(), A = "identifierNameEscape";
1096
- return;
1097
- }
1098
- if (B.isIdContinueChar(F)) {
1099
- g += s();
1100
- return;
1101
- }
1102
- return x("identifier", g);
1103
- }, "identifierName"), identifierNameEscape: /* @__PURE__ */ __name(function() {
1104
- if (F !== "u") throw w(s());
1105
- s();
1106
- var o = Xe();
1107
- switch (o) {
1108
- case "$":
1109
- case "_":
1110
- case "‌":
1111
- case "‍":
1112
- break;
1113
- default:
1114
- if (!B.isIdContinueChar(o)) throw At();
1115
- break;
1116
- }
1117
- g += o, A = "identifierName";
1118
- }, "identifierNameEscape"), sign: /* @__PURE__ */ __name(function() {
1119
- switch (F) {
1120
- case ".":
1121
- g = s(), A = "decimalPointLeading";
1122
- return;
1123
- case "0":
1124
- g = s(), A = "zero";
1125
- return;
1126
- case "1":
1127
- case "2":
1128
- case "3":
1129
- case "4":
1130
- case "5":
1131
- case "6":
1132
- case "7":
1133
- case "8":
1134
- case "9":
1135
- g = s(), A = "decimalInteger";
1136
- return;
1137
- case "I":
1138
- return s(), ne("nfinity"), x("numeric", Q * (1 / 0));
1139
- case "N":
1140
- return s(), ne("aN"), x("numeric", NaN);
1141
- }
1142
- throw w(s());
1143
- }, "sign"), zero: /* @__PURE__ */ __name(function() {
1144
- switch (F) {
1145
- case ".":
1146
- g += s(), A = "decimalPoint";
1147
- return;
1148
- case "e":
1149
- case "E":
1150
- g += s(), A = "decimalExponent";
1151
- return;
1152
- case "x":
1153
- case "X":
1154
- g += s(), A = "hexadecimal";
1155
- return;
1156
- }
1157
- return x("numeric", Q * 0);
1158
- }, "zero"), decimalInteger: /* @__PURE__ */ __name(function() {
1159
- switch (F) {
1160
- case ".":
1161
- g += s(), A = "decimalPoint";
1162
- return;
1163
- case "e":
1164
- case "E":
1165
- g += s(), A = "decimalExponent";
1166
- return;
1167
- }
1168
- if (B.isDigit(F)) {
1169
- g += s();
1170
- return;
1171
- }
1172
- return x("numeric", Q * Number(g));
1173
- }, "decimalInteger"), decimalPointLeading: /* @__PURE__ */ __name(function() {
1174
- if (B.isDigit(F)) {
1175
- g += s(), A = "decimalFraction";
1176
- return;
1177
- }
1178
- throw w(s());
1179
- }, "decimalPointLeading"), decimalPoint: /* @__PURE__ */ __name(function() {
1180
- switch (F) {
1181
- case "e":
1182
- case "E":
1183
- g += s(), A = "decimalExponent";
1184
- return;
1185
- }
1186
- if (B.isDigit(F)) {
1187
- g += s(), A = "decimalFraction";
1188
- return;
1189
- }
1190
- return x("numeric", Q * Number(g));
1191
- }, "decimalPoint"), decimalFraction: /* @__PURE__ */ __name(function() {
1192
- switch (F) {
1193
- case "e":
1194
- case "E":
1195
- g += s(), A = "decimalExponent";
1196
- return;
1197
- }
1198
- if (B.isDigit(F)) {
1199
- g += s();
1200
- return;
1201
- }
1202
- return x("numeric", Q * Number(g));
1203
- }, "decimalFraction"), decimalExponent: /* @__PURE__ */ __name(function() {
1204
- switch (F) {
1205
- case "+":
1206
- case "-":
1207
- g += s(), A = "decimalExponentSign";
1208
- return;
1209
- }
1210
- if (B.isDigit(F)) {
1211
- g += s(), A = "decimalExponentInteger";
1212
- return;
1213
- }
1214
- throw w(s());
1215
- }, "decimalExponent"), decimalExponentSign: /* @__PURE__ */ __name(function() {
1216
- if (B.isDigit(F)) {
1217
- g += s(), A = "decimalExponentInteger";
1218
- return;
1219
- }
1220
- throw w(s());
1221
- }, "decimalExponentSign"), decimalExponentInteger: /* @__PURE__ */ __name(function() {
1222
- if (B.isDigit(F)) {
1223
- g += s();
1224
- return;
1225
- }
1226
- return x("numeric", Q * Number(g));
1227
- }, "decimalExponentInteger"), hexadecimal: /* @__PURE__ */ __name(function() {
1228
- if (B.isHexDigit(F)) {
1229
- g += s(), A = "hexadecimalInteger";
1230
- return;
1231
- }
1232
- throw w(s());
1233
- }, "hexadecimal"), hexadecimalInteger: /* @__PURE__ */ __name(function() {
1234
- if (B.isHexDigit(F)) {
1235
- g += s();
1236
- return;
1237
- }
1238
- return x("numeric", Q * Number(g));
1239
- }, "hexadecimalInteger"), string: /* @__PURE__ */ __name(function() {
1240
- switch (F) {
1241
- case "\\":
1242
- s(), g += ju();
1243
- return;
1244
- case '"':
1245
- if (Ee) return s(), x("string", g);
1246
- g += s();
1247
- return;
1248
- case "'":
1249
- if (!Ee) return s(), x("string", g);
1250
- g += s();
1251
- return;
1252
- case `
1253
- `:
1254
- case "\r":
1255
- throw w(s());
1256
- case "\u2028":
1257
- case "\u2029":
1258
- Vu(F);
1259
- break;
1260
- case void 0:
1261
- throw w(s());
1262
- }
1263
- g += s();
1264
- }, "string"), start: /* @__PURE__ */ __name(function() {
1265
- switch (F) {
1266
- case "{":
1267
- case "[":
1268
- return x("punctuator", s());
1269
- }
1270
- A = "value";
1271
- }, "start"), beforePropertyName: /* @__PURE__ */ __name(function() {
1272
- switch (F) {
1273
- case "$":
1274
- case "_":
1275
- g = s(), A = "identifierName";
1276
- return;
1277
- case "\\":
1278
- s(), A = "identifierNameStartEscape";
1279
- return;
1280
- case "}":
1281
- return x("punctuator", s());
1282
- case '"':
1283
- case "'":
1284
- Ee = s() === '"', A = "string";
1285
- return;
1286
- }
1287
- if (B.isIdStartChar(F)) {
1288
- g += s(), A = "identifierName";
1289
- return;
1290
- }
1291
- throw w(s());
1292
- }, "beforePropertyName"), afterPropertyName: /* @__PURE__ */ __name(function() {
1293
- if (F === ":") return x("punctuator", s());
1294
- throw w(s());
1295
- }, "afterPropertyName"), beforePropertyValue: /* @__PURE__ */ __name(function() {
1296
- A = "value";
1297
- }, "beforePropertyValue"), afterPropertyValue: /* @__PURE__ */ __name(function() {
1298
- switch (F) {
1299
- case ",":
1300
- case "}":
1301
- return x("punctuator", s());
1302
- }
1303
- throw w(s());
1304
- }, "afterPropertyValue"), beforeArrayValue: /* @__PURE__ */ __name(function() {
1305
- if (F === "]") return x("punctuator", s());
1306
- A = "value";
1307
- }, "beforeArrayValue"), afterArrayValue: /* @__PURE__ */ __name(function() {
1308
- switch (F) {
1309
- case ",":
1310
- case "]":
1311
- return x("punctuator", s());
1312
- }
1313
- throw w(s());
1314
- }, "afterArrayValue"), end: /* @__PURE__ */ __name(function() {
1315
- throw w(s());
1316
- }, "end") };
1317
- function x(u, o) {
1318
- return { type: u, value: o, line: te, column: W };
1319
- }
1320
- __name(x, "x");
1321
- function ne(u) {
1322
- for (var o = 0, d = u; o < d.length; o += 1) {
1323
- var f = d[o], h = X();
1324
- if (h !== f) throw w(s());
1325
- s();
1326
- }
1327
- }
1328
- __name(ne, "ne");
1329
- function ju() {
1330
- var u = X();
1331
- switch (u) {
1332
- case "b":
1333
- return s(), "\b";
1334
- case "f":
1335
- return s(), "\f";
1336
- case "n":
1337
- return s(), `
1338
- `;
1339
- case "r":
1340
- return s(), "\r";
1341
- case "t":
1342
- return s(), " ";
1343
- case "v":
1344
- return s(), "\v";
1345
- case "0":
1346
- if (s(), B.isDigit(X())) throw w(s());
1347
- return "\0";
1348
- case "x":
1349
- return s(), Uu();
1350
- case "u":
1351
- return s(), Xe();
1352
- case `
1353
- `:
1354
- case "\u2028":
1355
- case "\u2029":
1356
- return s(), "";
1357
- case "\r":
1358
- return s(), X() === `
1359
- ` && s(), "";
1360
- case "1":
1361
- case "2":
1362
- case "3":
1363
- case "4":
1364
- case "5":
1365
- case "6":
1366
- case "7":
1367
- case "8":
1368
- case "9":
1369
- throw w(s());
1370
- case void 0:
1371
- throw w(s());
1372
- }
1373
- return s();
1374
- }
1375
- __name(ju, "ju");
1376
- function Uu() {
1377
- var u = "", o = X();
1378
- if (!B.isHexDigit(o) || (u += s(), o = X(), !B.isHexDigit(o))) throw w(s());
1379
- return u += s(), String.fromCodePoint(parseInt(u, 16));
1380
- }
1381
- __name(Uu, "Uu");
1382
- function Xe() {
1383
- for (var u = "", o = 4; o-- > 0; ) {
1384
- var d = X();
1385
- if (!B.isHexDigit(d)) throw w(s());
1386
- u += s();
1387
- }
1388
- return String.fromCodePoint(parseInt(u, 16));
1389
- }
1390
- __name(Xe, "Xe");
1391
- var Wu = { start: /* @__PURE__ */ __name(function() {
1392
- if (T.type === "eof") throw ue();
1393
- Ze();
1394
- }, "start"), beforePropertyName: /* @__PURE__ */ __name(function() {
1395
- switch (T.type) {
1396
- case "identifier":
1397
- case "string":
1398
- Ye = T.value, $ = "afterPropertyName";
1399
- return;
1400
- case "punctuator":
1401
- Be();
1402
- return;
1403
- case "eof":
1404
- throw ue();
1405
- }
1406
- }, "beforePropertyName"), afterPropertyName: /* @__PURE__ */ __name(function() {
1407
- if (T.type === "eof") throw ue();
1408
- $ = "beforePropertyValue";
1409
- }, "afterPropertyName"), beforePropertyValue: /* @__PURE__ */ __name(function() {
1410
- if (T.type === "eof") throw ue();
1411
- Ze();
1412
- }, "beforePropertyValue"), beforeArrayValue: /* @__PURE__ */ __name(function() {
1413
- if (T.type === "eof") throw ue();
1414
- if (T.type === "punctuator" && T.value === "]") {
1415
- Be();
1416
- return;
1417
- }
1418
- Ze();
1419
- }, "beforeArrayValue"), afterPropertyValue: /* @__PURE__ */ __name(function() {
1420
- if (T.type === "eof") throw ue();
1421
- switch (T.value) {
1422
- case ",":
1423
- $ = "beforePropertyName";
1424
- return;
1425
- case "}":
1426
- Be();
1427
- }
1428
- }, "afterPropertyValue"), afterArrayValue: /* @__PURE__ */ __name(function() {
1429
- if (T.type === "eof") throw ue();
1430
- switch (T.value) {
1431
- case ",":
1432
- $ = "beforeArrayValue";
1433
- return;
1434
- case "]":
1435
- Be();
1436
- }
1437
- }, "afterArrayValue"), end: /* @__PURE__ */ __name(function() {
1438
- }, "end") };
1439
- function Ze() {
1440
- var u;
1441
- switch (T.type) {
1442
- case "punctuator":
1443
- switch (T.value) {
1444
- case "{":
1445
- u = {};
1446
- break;
1447
- case "[":
1448
- u = [];
1449
- break;
1450
- }
1451
- break;
1452
- case "null":
1453
- case "boolean":
1454
- case "numeric":
1455
- case "string":
1456
- u = T.value;
1457
- break;
1458
- }
1459
- if (Ae === void 0) Ae = u;
1460
- else {
1461
- var o = Y[Y.length - 1];
1462
- Array.isArray(o) ? o.push(u) : Object.defineProperty(o, Ye, { value: u, writable: true, enumerable: true, configurable: true });
1463
- }
1464
- if (u !== null && typeof u == "object") Y.push(u), Array.isArray(u) ? $ = "beforeArrayValue" : $ = "beforePropertyName";
1465
- else {
1466
- var d = Y[Y.length - 1];
1467
- d == null ? $ = "end" : Array.isArray(d) ? $ = "afterArrayValue" : $ = "afterPropertyValue";
1468
- }
1469
- }
1470
- __name(Ze, "Ze");
1471
- function Be() {
1472
- Y.pop();
1473
- var u = Y[Y.length - 1];
1474
- u == null ? $ = "end" : Array.isArray(u) ? $ = "afterArrayValue" : $ = "afterPropertyValue";
1475
- }
1476
- __name(Be, "Be");
1477
- function w(u) {
1478
- return ke(u === void 0 ? "JSON5: invalid end of input at " + te + ":" + W : "JSON5: invalid character '" + Et(u) + "' at " + te + ":" + W);
1479
- }
1480
- __name(w, "w");
1481
- function ue() {
1482
- return ke("JSON5: invalid end of input at " + te + ":" + W);
1483
- }
1484
- __name(ue, "ue");
1485
- function At() {
1486
- return W -= 5, ke("JSON5: invalid identifier character at " + te + ":" + W);
1487
- }
1488
- __name(At, "At");
1489
- function Vu(u) {
1490
- console.warn("JSON5: '" + Et(u) + "' in strings is not valid ECMAScript; consider escaping");
1491
- }
1492
- __name(Vu, "Vu");
1493
- function Et(u) {
1494
- var o = { "'": "\\'", '"': '\\"', "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t", "\v": "\\v", "\0": "\\0", "\u2028": "\\u2028", "\u2029": "\\u2029" };
1495
- if (o[u]) return o[u];
1496
- if (u < " ") {
1497
- var d = u.charCodeAt(0).toString(16);
1498
- return "\\x" + ("00" + d).substring(d.length);
1499
- }
1500
- return u;
1501
- }
1502
- __name(Et, "Et");
1503
- function ke(u) {
1504
- var o = new SyntaxError(u);
1505
- return o.lineNumber = te, o.columnNumber = W, o;
1506
- }
1507
- __name(ke, "ke");
1508
- var Hu = /* @__PURE__ */ __name(function(o, d, f) {
1509
- var h = [], E = "", y, L, k = "", ie;
1510
- if (d != null && typeof d == "object" && !Array.isArray(d) && (f = d.space, ie = d.quote, d = d.replacer), typeof d == "function") L = d;
1511
- else if (Array.isArray(d)) {
1512
- y = [];
1513
- for (var le = 0, V = d; le < V.length; le += 1) {
1514
- var J = V[le], M = void 0;
1515
- typeof J == "string" ? M = J : (typeof J == "number" || J instanceof String || J instanceof Number) && (M = String(J)), M !== void 0 && y.indexOf(M) < 0 && y.push(M);
1516
- }
1517
- }
1518
- return f instanceof Number ? f = Number(f) : f instanceof String && (f = String(f)), typeof f == "number" ? f > 0 && (f = Math.min(10, Math.floor(f)), k = " ".substr(0, f)) : typeof f == "string" && (k = f.substr(0, 10)), de("", { "": o });
1519
- function de(v, N) {
1520
- var m = N[v];
1521
- switch (m != null && (typeof m.toJSON5 == "function" ? m = m.toJSON5(v) : typeof m.toJSON == "function" && (m = m.toJSON(v))), L && (m = L.call(N, v, m)), m instanceof Number ? m = Number(m) : m instanceof String ? m = String(m) : m instanceof Boolean && (m = m.valueOf()), m) {
1522
- case null:
1523
- return "null";
1524
- case true:
1525
- return "true";
1526
- case false:
1527
- return "false";
1528
- }
1529
- if (typeof m == "string") return Pe(m, false);
1530
- if (typeof m == "number") return String(m);
1531
- if (typeof m == "object") return Array.isArray(m) ? Qu(m) : Ju(m);
1532
- }
1533
- __name(de, "de");
1534
- function Pe(v) {
1535
- for (var N = { "'": 0.1, '"': 0.2 }, m = { "'": "\\'", '"': '\\"', "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t", "\v": "\\v", "\0": "\\0", "\u2028": "\\u2028", "\u2029": "\\u2029" }, O = "", H = 0; H < v.length; H++) {
1536
- var _ = v[H];
1537
- switch (_) {
1538
- case "'":
1539
- case '"':
1540
- N[_]++, O += _;
1541
- continue;
1542
- case "\0":
1543
- if (B.isDigit(v[H + 1])) {
1544
- O += "\\x00";
1545
- continue;
1546
- }
1547
- }
1548
- if (m[_]) {
1549
- O += m[_];
1550
- continue;
1551
- }
1552
- if (_ < " ") {
1553
- var oe = _.charCodeAt(0).toString(16);
1554
- O += "\\x" + ("00" + oe).substring(oe.length);
1555
- continue;
1556
- }
1557
- O += _;
1558
- }
1559
- var Z = ie || Object.keys(N).reduce(function(re, se) {
1560
- return N[re] < N[se] ? re : se;
1561
- });
1562
- return O = O.replace(new RegExp(Z, "g"), m[Z]), Z + O + Z;
1563
- }
1564
- __name(Pe, "Pe");
1565
- function Ju(v) {
1566
- if (h.indexOf(v) >= 0) throw TypeError("Converting circular structure to JSON5");
1567
- h.push(v);
1568
- var N = E;
1569
- E = E + k;
1570
- for (var m = y || Object.keys(v), O = [], H = 0, _ = m; H < _.length; H += 1) {
1571
- var oe = _[H], Z = de(oe, v);
1572
- if (Z !== void 0) {
1573
- var re = Yu(oe) + ":";
1574
- k !== "" && (re += " "), re += Z, O.push(re);
1575
- }
1576
- }
1577
- var se;
1578
- if (O.length === 0) se = "{}";
1579
- else {
1580
- var Te;
1581
- if (k === "") Te = O.join(","), se = "{" + Te + "}";
1582
- else {
1583
- var Xu = `,
1584
- ` + E;
1585
- Te = O.join(Xu), se = `{
1586
- ` + E + Te + `,
1587
- ` + N + "}";
1588
- }
1589
- }
1590
- return h.pop(), E = N, se;
1591
- }
1592
- __name(Ju, "Ju");
1593
- function Yu(v) {
1594
- if (v.length === 0) return Pe(v, true);
1595
- var N = String.fromCodePoint(v.codePointAt(0));
1596
- if (!B.isIdStartChar(N)) return Pe(v, true);
1597
- for (var m = N.length; m < v.length; m++) if (!B.isIdContinueChar(String.fromCodePoint(v.codePointAt(m)))) return Pe(v, true);
1598
- return v;
1599
- }
1600
- __name(Yu, "Yu");
1601
- function Qu(v) {
1602
- if (h.indexOf(v) >= 0) throw TypeError("Converting circular structure to JSON5");
1603
- h.push(v);
1604
- var N = E;
1605
- E = E + k;
1606
- for (var m = [], O = 0; O < v.length; O++) {
1607
- var H = de(String(O), v);
1608
- m.push(H !== void 0 ? H : "null");
1609
- }
1610
- var _;
1611
- if (m.length === 0) _ = "[]";
1612
- else if (k === "") {
1613
- var oe = m.join(",");
1614
- _ = "[" + oe + "]";
1615
- } else {
1616
- var Z = `,
1617
- ` + E, re = m.join(Z);
1618
- _ = `[
1619
- ` + E + re + `,
1620
- ` + N + "]";
1621
- }
1622
- return h.pop(), E = N, _;
1623
- }
1624
- __name(Qu, "Qu");
1625
- }, "Hu"), Ku = { parse: Mu, stringify: Hu }, zu = Ku, Gu = zu;
1626
- return Gu;
1627
- }));
1628
- });
1629
- var ou = l((pf, iu) => {
1630
- var we;
1631
- typeof window < "u" ? we = window : typeof global < "u" ? we = global : typeof self < "u" ? we = self : we = {};
1632
- iu.exports = we;
1633
- });
1634
- function et(e, { as: t = "id", fallback: r = "" } = {}) {
1635
- return (t === "github" ? e.trim().toLowerCase().replace(/[^\p{L}\p{M}\p{N}\p{Pc}\- ]/gu, "").replace(/ /g, "-") : ii(e.normalize("NFKD")).toLowerCase().replace(/['’]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "")) || r;
1636
- }
1637
- __name(et, "et");
1638
- function ii(e, { keep: t = "" } = {}) {
1639
- let r = t.normalize("NFC").toLowerCase();
1640
- return e.normalize("NFC").replace(/\P{ASCII}/gu, (n) => r.includes(n.toLowerCase()) ? n : n.normalize("NFD").replace(/\p{M}+/gu, ""));
1641
- }
1642
- __name(ii, "ii");
1643
- var yt = /\/(?:packages\/docs\/content\/)?epics\/([^/]+)\/\1\.plan\.html$/, bt = /\/sagas\/([^/]+)\/\1\.saga\.html$/;
1644
- var vt = 4e3;
1645
- var oi = si() ? "Airplane mode: queued for when you land (/airplane land)" : "No Claude session is reviewing this doc: Send wakes one";
1646
- function si() {
1647
- return typeof window < "u" && !!window.SPELL_SERVER?.airplane;
1648
- }
1649
- __name(si, "si");
1650
- var xt = /window\.SPELL_SERVER = (\{.*?\})<\/script>/;
1651
- var ai = 8 * 1024 * 1024;
1652
- var pe = class extends Error {
1653
- static {
1654
- __name(this, "pe");
1655
- }
1656
- };
1657
- pe.prototype.name = "ServerWriteError";
1658
- var ci = "see my comments in its text: ", ec = new RegExp(`(?:^|\\n+)${ci}[^\\n]*$`);
1659
- var va = Fe(Fn()), xa = Fe(_n()), lu = Fe(eu());
1660
- var ru = Fe(tu(), 1);
1661
- function nu(e, t = "random text", r) {
1662
- try {
1663
- return JSON.parse(e);
1664
- } catch (n) {
1665
- let a = (n instanceof Error ? n.message : String(n)).match(/at position (\d+)/);
1666
- if (a) {
1667
- let c = parseInt(a[1], 10), p = e.substring(0, c), D = Math.max(0, p.split(`
1668
- `).length - 2);
1669
- console.error(`Error parsing JSON near line ${D} of ${t}`);
1670
- let C = Math.max(0, D - 3), S = C + 6;
1671
- console.log(e.split(`
1672
- `).slice(C, S).join(`
1673
- `));
1674
- }
1675
- if (!r) throw n;
1676
- return;
1677
- }
1678
- }
1679
- __name(nu, "nu");
1680
- function uu(e, t = "random text", r) {
1681
- try {
1682
- return ru.default.parse(e);
1683
- } catch (n) {
1684
- let a = (n instanceof Error ? n.message : String(n)).match(/at position (\d+)/);
1685
- if (a) {
1686
- let c = parseInt(a[1], 10), p = e.substring(0, c), D = Math.max(0, p.split(`
1687
- `).length - 2);
1688
- console.error(`Error parsing JSON near line ${D} of ${t}`);
1689
- let C = Math.max(0, D - 3), S = C + 6;
1690
- console.log(e.split(`
1691
- `).slice(C, S).join(`
1692
- `));
1693
- }
1694
- if (!r) throw n;
1695
- return;
1696
- }
1697
- }
1698
- __name(uu, "uu");
1699
- var su = Fe(ou(), 1);
1700
- function au(e) {
1701
- return e.name === "AbortError";
1702
- }
1703
- __name(au, "au");
1704
- function cu(e, t = {}, r = fetch) {
1705
- let n = false, i = new su.default.AbortController();
1706
- function a(p) {
1707
- return Object.assign(p, { cancel() {
1708
- return n || (console.warn(`Cancelling abortable fetch to ${e}:`), i.abort()), this;
1709
- }, then(D, C) {
1710
- return a(Promise.prototype.then.apply(this, [D, C]));
1711
- }, catch(D) {
1712
- return a(Promise.prototype.catch.apply(this, [D]));
1713
- }, finally(D) {
1714
- return a(Promise.prototype.finally.apply(this, [D]));
1715
- } });
1716
- }
1717
- __name(a, "a");
1718
- t.signal = i.signal;
1719
- let c = r(e, t);
1720
- return c.finally(() => {
1721
- n = true;
1722
- }), a(c);
1723
- }
1724
- __name(cu, "cu");
1725
- var ce = { text: "text/plain", json: "application/json", json5: "application/json5", gif: "image/gif", png: "image/png", jpg: "image/jpeg", jpeg: "image/jpeg", svg: "image/svg+xml", binary: "binary" }, fu = ["binary", "blob", ce.gif, ce.png, ce.jpeg, ce.binary];
1726
- var Le = class extends Error {
1727
- static {
1728
- __name(this, "Le");
1729
- }
1730
- props;
1731
- constructor(t, r) {
1732
- typeof t == "string" ? (super(t), this.props = { message: t }) : (super(t.message), this.props = t);
1733
- let { captureStackTrace: n } = Error;
1734
- n && n(this, r || this.constructor), Object.setPrototypeOf(this, new.target.prototype);
1735
- }
1736
- get name() {
1737
- return this.constructor.name;
1738
- }
1739
- get header() {
1740
- return this.props.activity ? `${this.name} ${this.props.activity}` : this.name;
1741
- }
1742
- };
1743
- var K = class extends Le {
1744
- static {
1745
- __name(this, "K");
1746
- }
1747
- get status() {
1748
- if (this.props.response) return this.props.response.status;
1749
- }
1750
- }, Me = class extends K {
1751
- static {
1752
- __name(this, "Me");
1753
- }
1754
- constructor(t) {
1755
- super({ message: "You must be online to do this.", ...t });
1756
- }
1757
- }, me = class extends K {
1758
- static {
1759
- __name(this, "me");
1760
- }
1761
- constructor(t) {
1762
- super({ message: "There was a problem loading this thing.", ...t });
1763
- }
1764
- }, qe = class extends K {
1765
- static {
1766
- __name(this, "qe");
1767
- }
1768
- constructor(t) {
1769
- super({ message: "You are not authorized to do this.", ...t });
1770
- }
1771
- }, je = class extends K {
1772
- static {
1773
- __name(this, "je");
1774
- }
1775
- constructor(t) {
1776
- super({ message: "There was an error understanding the response.", ...t });
1777
- }
1778
- }, Ue = class extends K {
1779
- static {
1780
- __name(this, "Ue");
1781
- }
1782
- constructor(t) {
1783
- super({ message: "The action was cancelled.", ...t });
1784
- }
1785
- };
1786
- function du(e) {
1787
- let { url: t, query: r, contents: n, method: i = n != null ? "POST" : "GET", headers: a = {}, requestFormat: c, format: p = "text/plain", defaultContents: D, cache: C, fetch: S } = e, P = { method: i, ...C && { cache: C } };
1788
- c && (a["Content-Type"] = c), P.headers = a, n != null && (P.body = typeof n == "string" ? n : JSON.stringify(n));
1789
- let ee = t;
1790
- typeof r == "string" ? ee += `?${r}` : r && (ee += `?${lu.default.stringify(r)}`);
1791
- let We = cu(ee, P, S);
1792
- async function Ve(j) {
1793
- let G = { url: t, status: j.status, ...P };
1794
- if (!j.ok) {
1795
- let U = await j.text();
1796
- switch (j.status) {
1797
- case 404:
1798
- if (D !== void 0) return D;
1799
- throw new me({ ...G, message: U });
1800
- case 401:
1801
- case 403:
1802
- throw new qe({ ...G, message: U });
1803
- default:
1804
- throw new K({ ...G, message: U });
1805
- }
1806
- }
1807
- try {
1808
- if (fu.includes(p)) return await j.blob();
1809
- let U = await j.text();
1810
- return p === ce.json || p.toLowerCase() === "json" ? nu(U) : p === ce.json5 || p.toLowerCase() === "json5" ? uu(U) : U;
1811
- } catch (U) {
1812
- throw new je({ ...G, error: U });
1813
- }
1814
- }
1815
- __name(Ve, "Ve");
1816
- async function He(j) {
1817
- if (D !== void 0) return D;
1818
- throw au(j) ? new Ue({ url: t, error: j, ...P }) : new Me({ url: t, error: j, ...P });
1819
- }
1820
- __name(He, "He");
1821
- return We.then(Ve, He);
1822
- }
1823
- __name(du, "du");
1824
- var z = class e {
1825
- static {
1826
- __name(this, "e");
1827
- }
1828
- constructor(t) {
1829
- this.options = t;
1830
- this.info = t.server ? { ...t.server } : void 0;
1831
- }
1832
- options;
1833
- info;
1834
- static current;
1835
- static forPage() {
1836
- return e.current ??= new e(e.pageOptions()), e.current;
1837
- }
1838
- static pageOptions() {
1839
- return { page: location.pathname, server: window.SPELL_SERVER, protocol: location.protocol, fetch: /* @__PURE__ */ __name((t, r) => window.fetch(t, r), "fetch"), readServed: /* @__PURE__ */ __name((t) => e.readInFrame(window.document, t), "readServed") };
1840
- }
1841
- static readInFrame(t, r, n = wa) {
1842
- return new Promise((i, a) => {
1843
- let c = t.createElement("iframe");
1844
- c.setAttribute("sandbox", "allow-same-origin"), c.setAttribute("aria-hidden", "true"), c.hidden = true;
1845
- let p = /* @__PURE__ */ __name((S) => {
1846
- clearTimeout(C);
1847
- try {
1848
- i(S());
1849
- } catch (P) {
1850
- a(P);
1851
- } finally {
1852
- c.remove();
1853
- }
1854
- }, "p"), D = /* @__PURE__ */ __name(() => {
1855
- throw new Error("the page didn't load");
1856
- }, "D"), C = setTimeout(() => p(D), n);
1857
- c.addEventListener("load", () => {
1858
- c.contentDocument?.URL !== "about:blank" && p(() => c.contentDocument.documentElement.outerHTML);
1859
- }), c.src = `${r}${r.includes("?") ? "&" : "?"}spell-token=${Date.now()}`, t.body.append(c);
1860
- });
1861
- }
1862
- static isServed(t = globalThis.SPELL_SERVER, r = globalThis.location?.protocol) {
1863
- return !!t?.token && e.canRead(r);
1864
- }
1865
- static canRead(t = globalThis.location?.protocol) {
1866
- return t !== "file:";
1867
- }
1868
- get isServed() {
1869
- return e.isServed(this.info, this.options.protocol);
1870
- }
1871
- get servesPlanDoc() {
1872
- return this.isServed && yt.test(this.options.page);
1873
- }
1874
- get servesReviews() {
1875
- return this.servesPlanDoc ? true : this.isServed && bt.test(this.options.page);
1876
- }
1877
- get file() {
1878
- return this.info?.file ?? this.options.page;
1879
- }
1880
- async get(t, { query: r, missing: n, format: i = "json" } = {}) {
1881
- if (!e.canRead(this.options.protocol)) return n;
1882
- try {
1883
- let a = r && new URLSearchParams(r).toString();
1884
- return await du({ url: t, query: a, format: i, cache: "no-store", fetch: this.options.fetch }) ?? n;
1885
- } catch (a) {
1886
- if (a instanceof me) return n;
1887
- throw a instanceof K && (a.message = Sa(a.message) ?? a.message), a;
1888
- }
1889
- }
1890
- async getFile(t, { format: r = "json" } = {}) {
1891
- for (let n of typeof t == "string" ? [t] : t) {
1892
- let i;
1893
- try {
1894
- i = await this.get(n, { format: r });
1895
- } catch (a) {
1896
- throw new Error(`${n.split("/").pop()}: ${a.message}`, { cause: a });
1897
- }
1898
- if (i !== void 0) return i;
1899
- }
1900
- }
1901
- static dataFileNames(t) {
1902
- let r = t.replace(/\.json5?$/, "");
1903
- return r === t ? [t] : [`${r}.json5`, `${r}.json`];
1904
- }
1905
- getForPage(t, { missing: r } = {}) {
1906
- return this.get(t, { query: { page: this.options.page }, missing: r });
1907
- }
1908
- async post(t, r, { keepalive: n = false } = {}) {
1909
- for (let i = 0; ; i++) {
1910
- let a;
1911
- try {
1912
- a = await this.options.fetch(t, { method: "POST", headers: { "content-type": "application/json", "x-server-token": this.info?.token ?? "" }, body: JSON.stringify(r), keepalive: n });
1913
- } catch (D) {
1914
- throw new pe(`couldn't reach the page server (${D.message})`);
1915
- }
1916
- let c = await a.json().catch(() => ({}));
1917
- if (a.ok) return c;
1918
- let p = a.status === 403 && /token/i.test(c.error ?? "");
1919
- if (!(p && i === 0 && await this.refreshToken())) throw new pe(p ? "the page server restarted since this page loaded: reload the page" : c.error ?? `couldn't save (${a.status})`);
1920
- }
1921
- }
1922
- static watch(t, r, n, { every: i = vt, polls: a } = {}) {
1923
- let { document: c } = t, p = typeof r == "function" ? r : Ba(r), D = i ? t.setInterval(() => {
1924
- c.visibilityState === "visible" && (a?.() ?? true) && n();
1925
- }, i) : void 0, C = /* @__PURE__ */ __name(() => {
1926
- c.visibilityState === "visible" && n();
1927
- }, "C"), S = /* @__PURE__ */ __name((P) => {
1928
- let ee = P.detail?.path;
1929
- ee && p(decodeURIComponent(ee)) && n();
1930
- }, "S");
1931
- return c.addEventListener("visibilitychange", C), t.addEventListener("spell-server:changed", S), () => {
1932
- D !== void 0 && t.clearInterval(D), c.removeEventListener("visibilitychange", C), t.removeEventListener("spell-server:changed", S);
1933
- };
1934
- }
1935
- async refreshToken() {
1936
- try {
1937
- let { page: t, readServed: r } = this.options, n = r ? await r(t) : await (await this.options.fetch(t, { cache: "no-store" })).text(), i = JSON.parse(xt.exec(n)?.[1] ?? "null")?.token;
1938
- return !i || !this.info || i === this.info.token ? false : (this.info.token = i, true);
1939
- } catch {
1940
- return false;
1941
- }
1942
- }
1943
- }, wa = 1e4;
1944
- function Sa(e) {
1945
- try {
1946
- let t = JSON.parse(e)?.error;
1947
- return typeof t == "string" ? t : void 0;
1948
- } catch {
1949
- return;
1950
- }
1951
- }
1952
- __name(Sa, "Sa");
1953
- function Ba(e) {
1954
- if (!e) return () => false;
1955
- let t = z.dataFileNames(e);
1956
- return (r) => t.includes(r);
1957
- }
1958
- __name(Ba, "Ba");
1959
- function gu(e, t = "button") {
1960
- let r = /* @__PURE__ */ __name(() => {
1961
- let n = e.shadowRoot?.querySelector(`[part~="${t}"]`);
1962
- return n && (n.title = e.title), !!n;
1963
- }, "r");
1964
- r() || customElements.whenDefined(e.localName).then(() => requestAnimationFrame(r));
1965
- }
1966
- __name(gu, "gu");
1967
- function b(e, t = {}, ...r) {
1968
- let n = document.createElement(e);
1969
- for (let [i, a] of Object.entries(t)) a !== void 0 && a !== false && n.setAttribute(i, a === true ? "" : String(a));
1970
- return n.append(...r.filter((i) => i != null && i !== false && i !== "")), n;
1971
- }
1972
- __name(b, "b");
1973
- function mu({ load: e, draw: t, holder: r, header: n, offServer: i, failure: a }) {
1974
- let c = new URL("spell-ui.js", document.currentScript?.src ?? location.href).href;
1975
- return (async () => {
1976
- let D;
1977
- try {
1978
- z.canRead() ? D = await e() : p(`${i}: open it through the page server, e.g. \`epic pages open ${Pa()}\`.`), D && t(D);
1979
- } catch (C) {
1980
- p(`${a}: ${C.message}`), D = void 0;
1981
- }
1982
- return document.body.append(b("script", { src: c })), D;
1983
- })();
1984
- function p(D) {
1985
- (document.querySelector(r) ?? document.querySelector("main"))?.prepend(b("ui-message", { state: "warning", heading: n }, b("p", {}, ...ft(D))));
1986
- }
1987
- __name(p, "p");
1988
- }
1989
- __name(mu, "mu");
1990
- function ft(e, t = (r) => [r]) {
1991
- return String(e).split("`").flatMap((r, n) => n % 2 ? [b("code", {}, r)] : t(r)).filter((r) => r !== "");
1992
- }
1993
- __name(ft, "ft");
1994
- function Cu(e) {
1995
- return /^\s*(\d+(?:\.\d+)*)\.?\s/.exec(e?.getAttribute("label") ?? "")?.[1] ?? "";
1996
- }
1997
- __name(Cu, "Cu");
1998
- function Pa() {
1999
- return decodeURIComponent(location.pathname).replace(/^.*\/(?=(?:guides|epics|templates|pages)\/)/, "");
2000
- }
2001
- __name(Pa, "Pa");
2002
- var Au = ["name", "Python", "in Python", "what it does"];
2003
- mu({ load: Ta, draw: Oa, holder: "[data-core-modules]", header: "Reference not drawn", offServer: "This page draws the core's method list from the checkout serving it", failure: "Couldn't draw the reference" });
2004
- async function Ta() {
2005
- let { coreDeclarations: e, notPorted: t } = document.body.dataset;
2006
- if (!e) throw new Error("the page's `<body>` has no `data-core-declarations`");
2007
- let r = z.forPage(), [n, i] = await Promise.all([r.getFile(z.dataFileNames(e)), t ? r.getFile(z.dataFileNames(t)).catch(() => {
2008
- }) : void 0]);
2009
- if (n === void 0) throw new Error(`${e}: not found`);
2010
- return { declarations: n, notPorted: i };
2011
- }
2012
- __name(Ta, "Ta");
2013
- function Oa({ declarations: e, notPorted: t }) {
2014
- let r = e.statements ?? [], n = Wa(t), i = Ia(r), a = document.querySelector("[data-core-modules]");
2015
- if (a) {
2016
- let p = Cu(a.closest("ui-section")), D = [...i].map(([C, S], P) => Na(C, S, n, p ? `${p}.${P + 1} ` : ""));
2017
- a.replaceWith(...D);
2018
- }
2019
- document.querySelector("[data-core-stats]")?.replaceChildren(...Ma(r, i, n)), document.querySelector("[data-core-not-ported]")?.replaceChildren(qa(r, t));
2020
- let c = document.querySelector("[data-core-filter]");
2021
- c && Ka(c);
2022
- }
2023
- __name(Oa, "Oa");
2024
- function Ia(e) {
2025
- let t = /* @__PURE__ */ new Map();
2026
- for (let r of e) {
2027
- let n = r.module ?? "core";
2028
- t.has(n) || t.set(n, []), t.get(n).push(r);
2029
- }
2030
- return t;
2031
- }
2032
- __name(Ia, "Ia");
2033
- function Na(e, t, r, n) {
2034
- let i = Va(e), a = r ? t.filter((C) => r.has(fe(C))).length : 0, c = `spell-parser/src/core/${i}`, p = b("ui-button", { slot: "actions", appearance: "circular basic", size: "tiny", icon: "code", link: Ha(i), target: `src-${et(c)}`, title: c, "aria-label": `Open ${i.split("/").pop()}` });
2035
- gu(p);
2036
- let D = _a(t).map(({ heading: C, rows: S }) => b("tbody", {}, C ? b("tr", {}, b("th", { colspan: String(Au.length) }, ...dt(C))) : "", ...S.map((P) => Ra(P, r))));
2037
- return b("ui-section", { id: `file-${et(e)}`, label: n + e, badge: a ? `${t.length} · ${a} not in Python` : `${t.length}`, sticky: "", collapsible: "", dividing: "", open: "false", "data-core-module": "" }, p, b("ui-table", { celled: "", padding: "compact", appearance: "striped", unstackable: "" }, b("table", {}, b("thead", {}, b("tr", {}, ...Au.map((C) => b("th", {}, C)))), ...D)));
2038
- }
2039
- __name(Na, "Na");
2040
- function _a(e) {
2041
- let t = [];
2042
- for (let r of e) {
2043
- let n = r.of === "core" ? r.section ?? t.at(-1)?.heading ?? "" : "imported by name";
2044
- t.at(-1)?.heading !== n && t.push({ heading: n, rows: [] }), t.at(-1).rows.push(r);
2045
- }
2046
- return t;
2047
- }
2048
- __name(_a, "_a");
2049
- function Ra(e, t) {
2050
- return b("tr", { id: Eu(e) }, b("td", {}, ...$a(e)), b("td", {}, b("code", {}, ja(e))), La(fe(e), t), b("td", {}, ...dt(e.description ?? "")));
2051
- }
2052
- __name(Ra, "Ra");
2053
- function $a(e) {
2054
- let t = e.params ? `(${e.params.map((n) => n.name).join(", ")})` : "", r = lt(e);
2055
- return [b("code", {}, fe(e) + (e.kind ? t || "()" : "")), ...r === "method" ? [] : [" ", b("ui-label", { size: "mini" }, r)], ...e.superType ? [" extends ", b("code", {}, e.superType)] : []];
2056
- }
2057
- __name($a, "$a");
2058
- function La(e, t) {
2059
- if (!t) return b("td", { title: "this checkout has no parser/src/py/core/not_ported_yet.json5" }, "?");
2060
- let r = t.get(e);
2061
- return r === void 0 ? b("td", { class: "yes positive", title: "spell_core has it" }, "✓") : b("td", { class: "no negative", title: r }, "✗ not yet");
2062
- }
2063
- __name(La, "La");
2064
- function Ma(e, t, r) {
2065
- let n = r ? e.filter((i) => r.has(fe(i))).length : void 0;
2066
- return [[e.length, "names"], [t.size, "files"], [n === void 0 ? "?" : e.length - n, "in Python"], [n ?? "?", "not in Python yet"]].map(([i, a]) => b("ui-statistic", { value: String(i), label: a }));
2067
- }
2068
- __name(Ma, "Ma");
2069
- function qa(e, t) {
2070
- if (!t) return b("ui-message", { state: "warning", heading: "No list of what Python lacks" }, b("p", {}, "This checkout has no ", b("code", {}, "parser/src/py/core/not_ported_yet.json5"), "."));
2071
- let r = new Map(e.map((i) => [fe(i), i])), n = (t.groups ?? []).map((i) => {
2072
- let a = i.names.flatMap((c, p) => {
2073
- let D = r.get(c), C = b("code", {}, c);
2074
- return [p ? ", " : "", D ? b("a", { href: `#${Eu(D)}` }, C) : C];
2075
- });
2076
- return b("li", {}, ...dt(i.why), ` (${i.names.length}):`, b("br"), ...a);
2077
- });
2078
- return b("ul", {}, ...n);
2079
- }
2080
- __name(qa, "qa");
2081
- function fe(e) {
2082
- return e.name ?? e.property ?? e.type;
2083
- }
2084
- __name(fe, "fe");
2085
- function lt(e) {
2086
- return e.type ? "class" : e.property ? "property" : e.kind === "function" ? "import" : "method";
2087
- }
2088
- __name(lt, "lt");
2089
- function Eu(e) {
2090
- let t = lt(e);
2091
- return `${t === "class" ? "class" : t === "import" ? "import" : "spellcore"}-${fe(e)}`;
2092
- }
2093
- __name(Eu, "Eu");
2094
- function ja(e) {
2095
- let t = lt(e);
2096
- if (t === "class") return `spell_core.${e.type}`;
2097
- let r = Ua(fe(e));
2098
- return t === "property" ? `core.${r}` : t === "import" ? `${r}()` : `core.${r}()`;
2099
- }
2100
- __name(ja, "ja");
2101
- function Ua(e) {
2102
- return /^[A-Z0-9_]+$/.test(e) ? e.toLowerCase() : e.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase();
2103
- }
2104
- __name(Ua, "Ua");
2105
- function Wa(e) {
2106
- if (e) return new Map((e.groups ?? []).flatMap((t) => t.names.map((r) => [r, t.why])));
2107
- }
2108
- __name(Wa, "Wa");
2109
- function Va(e) {
2110
- return e === "classes" ? "classes/index.ts" : `${e}.ts`;
2111
- }
2112
- __name(Va, "Va");
2113
- function Ha(e) {
2114
- return (document.body.dataset.coreDeclarations ?? "").replace(/[^/]*$/, `src/${e}`);
2115
- }
2116
- __name(Ha, "Ha");
2117
- function Ka(e) {
2118
- e.addEventListener("ui-typed", t), e.addEventListener("ui-changed", t);
2119
- function t(r) {
2120
- let n = String(r.detail?.value ?? e.value ?? "").toLowerCase().split(/\s+/).filter(Boolean);
2121
- for (let i of document.querySelectorAll("ui-section[data-core-module]")) {
2122
- let a = 0;
2123
- for (let c of i.querySelectorAll("tbody")) {
2124
- let p = 0;
2125
- for (let C of c.querySelectorAll("tr:has(td)")) {
2126
- let S = C.textContent.toLowerCase();
2127
- C.hidden = !n.every((P) => S.includes(P)), C.hidden || p++;
2128
- }
2129
- let D = c.querySelector("tr:not(:has(td))");
2130
- D && (D.hidden = p === 0), a += p;
2131
- }
2132
- i.hidden = a === 0;
2133
- }
2134
- }
2135
- __name(t, "t");
2136
- }
2137
- __name(Ka, "Ka");
2138
- function dt(e) {
2139
- return ft(String(e).replace(/```(?:[a-z]+\s)?([\s\S]*?)```/g, (t, r) => `\`${r.trim()}\``));
2140
- }
2141
- __name(dt, "dt");
2142
- })();
1
+ "use strict";(()=>{var Zu=Object.create;var Ft=Object.defineProperty;var ei=Object.getOwnPropertyDescriptor;var ti=Object.getOwnPropertyNames;var ri=Object.getPrototypeOf,ni=Object.prototype.hasOwnProperty;var l=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var ui=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ti(t))!ni.call(e,i)&&i!==r&&Ft(e,i,{get:()=>t[i],enumerable:!(n=ei(t,i))||n.enumerable});return e};var Fe=(e,t,r)=>(r=e!=null?Zu(ri(e)):{},ui(t||!e||!e.__esModule?Ft(r,"default",{value:e,enumerable:!0}):r,e));var Oe=l((rc,wt)=>{var fi=Array.isArray;wt.exports=fi});var Bt=l((nc,St)=>{var li=typeof global=="object"&&global&&global.Object===Object&&global;St.exports=li});var Ie=l((uc,kt)=>{var di=Bt(),pi=typeof self=="object"&&self&&self.Object===Object&&self,Di=di||pi||Function("return this")();kt.exports=Di});var Ne=l((ic,Pt)=>{var hi=Ie(),gi=hi.Symbol;Pt.exports=gi});var Nt=l((oc,It)=>{var Tt=Ne(),Ot=Object.prototype,mi=Ot.hasOwnProperty,Ci=Ot.toString,ye=Tt?Tt.toStringTag:void 0;function Ai(e){var t=mi.call(e,ye),r=e[ye];try{e[ye]=void 0;var n=!0}catch{}var i=Ci.call(e);return n&&(t?e[ye]=r:delete e[ye]),i}It.exports=Ai});var Rt=l((sc,_t)=>{var Ei=Object.prototype,Fi=Ei.toString;function yi(e){return Fi.call(e)}_t.exports=yi});var tt=l((ac,qt)=>{var $t=Ne(),bi=Nt(),vi=Rt(),xi="[object Null]",wi="[object Undefined]",Lt=$t?$t.toStringTag:void 0;function Si(e){return e==null?e===void 0?wi:xi:Lt&&Lt in Object(e)?bi(e):vi(e)}qt.exports=Si});var jt=l((cc,Mt)=>{function Bi(e){return e!=null&&typeof e=="object"}Mt.exports=Bi});var _e=l((fc,Ut)=>{var ki=tt(),Pi=jt(),Ti="[object Symbol]";function Oi(e){return typeof e=="symbol"||Pi(e)&&ki(e)==Ti}Ut.exports=Oi});var Vt=l((lc,Wt)=>{var Ii=Oe(),Ni=_e(),_i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ri=/^\w*$/;function $i(e,t){if(Ii(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ni(e)?!0:Ri.test(e)||!_i.test(e)||t!=null&&e in Object(t)}Wt.exports=$i});var Re=l((dc,Ht)=>{function Li(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Ht.exports=Li});var zt=l((pc,Kt)=>{var qi=tt(),Mi=Re(),ji="[object AsyncFunction]",Ui="[object Function]",Wi="[object GeneratorFunction]",Vi="[object Proxy]";function Hi(e){if(!Mi(e))return!1;var t=qi(e);return t==Ui||t==Wi||t==ji||t==Vi}Kt.exports=Hi});var Jt=l((Dc,Gt)=>{var Ki=Ie(),zi=Ki["__core-js_shared__"];Gt.exports=zi});var Xt=l((hc,Qt)=>{var rt=Jt(),Yt=(function(){var e=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Gi(e){return!!Yt&&Yt in e}Qt.exports=Gi});var er=l((gc,Zt)=>{var Ji=Function.prototype,Yi=Ji.toString;function Qi(e){if(e!=null){try{return Yi.call(e)}catch{}try{return e+""}catch{}}return""}Zt.exports=Qi});var rr=l((mc,tr)=>{var Xi=zt(),Zi=Xt(),eo=Re(),to=er(),ro=/[\\^$.*+?()[\]{}|]/g,no=/^\[object .+?Constructor\]$/,uo=Function.prototype,io=Object.prototype,oo=uo.toString,so=io.hasOwnProperty,ao=RegExp("^"+oo.call(so).replace(ro,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function co(e){if(!eo(e)||Zi(e))return!1;var t=Xi(e)?ao:no;return t.test(to(e))}tr.exports=co});var ur=l((Cc,nr)=>{function fo(e,t){return e?.[t]}nr.exports=fo});var $e=l((Ac,ir)=>{var lo=rr(),po=ur();function Do(e,t){var r=po(e,t);return lo(r)?r:void 0}ir.exports=Do});var be=l((Ec,or)=>{var ho=$e(),go=ho(Object,"create");or.exports=go});var cr=l((Fc,ar)=>{var sr=be();function mo(){this.__data__=sr?sr(null):{},this.size=0}ar.exports=mo});var lr=l((yc,fr)=>{function Co(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}fr.exports=Co});var pr=l((bc,dr)=>{var Ao=be(),Eo="__lodash_hash_undefined__",Fo=Object.prototype,yo=Fo.hasOwnProperty;function bo(e){var t=this.__data__;if(Ao){var r=t[e];return r===Eo?void 0:r}return yo.call(t,e)?t[e]:void 0}dr.exports=bo});var hr=l((vc,Dr)=>{var vo=be(),xo=Object.prototype,wo=xo.hasOwnProperty;function So(e){var t=this.__data__;return vo?t[e]!==void 0:wo.call(t,e)}Dr.exports=So});var mr=l((xc,gr)=>{var Bo=be(),ko="__lodash_hash_undefined__";function Po(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bo&&t===void 0?ko:t,this}gr.exports=Po});var Ar=l((wc,Cr)=>{var To=cr(),Oo=lr(),Io=pr(),No=hr(),_o=mr();function De(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}De.prototype.clear=To;De.prototype.delete=Oo;De.prototype.get=Io;De.prototype.has=No;De.prototype.set=_o;Cr.exports=De});var Fr=l((Sc,Er)=>{function Ro(){this.__data__=[],this.size=0}Er.exports=Ro});var nt=l((Bc,yr)=>{function $o(e,t){return e===t||e!==e&&t!==t}yr.exports=$o});var ve=l((kc,br)=>{var Lo=nt();function qo(e,t){for(var r=e.length;r--;)if(Lo(e[r][0],t))return r;return-1}br.exports=qo});var xr=l((Pc,vr)=>{var Mo=ve(),jo=Array.prototype,Uo=jo.splice;function Wo(e){var t=this.__data__,r=Mo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Uo.call(t,r,1),--this.size,!0}vr.exports=Wo});var Sr=l((Tc,wr)=>{var Vo=ve();function Ho(e){var t=this.__data__,r=Vo(t,e);return r<0?void 0:t[r][1]}wr.exports=Ho});var kr=l((Oc,Br)=>{var Ko=ve();function zo(e){return Ko(this.__data__,e)>-1}Br.exports=zo});var Tr=l((Ic,Pr)=>{var Go=ve();function Jo(e,t){var r=this.__data__,n=Go(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Pr.exports=Jo});var Ir=l((Nc,Or)=>{var Yo=Fr(),Qo=xr(),Xo=Sr(),Zo=kr(),es=Tr();function he(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}he.prototype.clear=Yo;he.prototype.delete=Qo;he.prototype.get=Xo;he.prototype.has=Zo;he.prototype.set=es;Or.exports=he});var _r=l((_c,Nr)=>{var ts=$e(),rs=Ie(),ns=ts(rs,"Map");Nr.exports=ns});var Lr=l((Rc,$r)=>{var Rr=Ar(),us=Ir(),is=_r();function os(){this.size=0,this.__data__={hash:new Rr,map:new(is||us),string:new Rr}}$r.exports=os});var Mr=l(($c,qr)=>{function ss(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}qr.exports=ss});var xe=l((Lc,jr)=>{var as=Mr();function cs(e,t){var r=e.__data__;return as(t)?r[typeof t=="string"?"string":"hash"]:r.map}jr.exports=cs});var Wr=l((qc,Ur)=>{var fs=xe();function ls(e){var t=fs(this,e).delete(e);return this.size-=t?1:0,t}Ur.exports=ls});var Hr=l((Mc,Vr)=>{var ds=xe();function ps(e){return ds(this,e).get(e)}Vr.exports=ps});var zr=l((jc,Kr)=>{var Ds=xe();function hs(e){return Ds(this,e).has(e)}Kr.exports=hs});var Jr=l((Uc,Gr)=>{var gs=xe();function ms(e,t){var r=gs(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Gr.exports=ms});var Qr=l((Wc,Yr)=>{var Cs=Lr(),As=Wr(),Es=Hr(),Fs=zr(),ys=Jr();function ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ge.prototype.clear=Cs;ge.prototype.delete=As;ge.prototype.get=Es;ge.prototype.has=Fs;ge.prototype.set=ys;Yr.exports=ge});var en=l((Vc,Zr)=>{var Xr=Qr(),bs="Expected a function";function ut(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bs);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var c=e.apply(this,n);return r.cache=a.set(i,c)||a,c};return r.cache=new(ut.Cache||Xr),r}ut.Cache=Xr;Zr.exports=ut});var rn=l((Hc,tn)=>{var vs=en(),xs=500;function ws(e){var t=vs(e,function(n){return r.size===xs&&r.clear(),n}),r=t.cache;return t}tn.exports=ws});var un=l((Kc,nn)=>{var Ss=rn(),Bs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ks=/\\(\\)?/g,Ps=Ss(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bs,function(r,n,i,a){t.push(i?a.replace(ks,"$1"):n||r)}),t});nn.exports=Ps});var sn=l((zc,on)=>{function Ts(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}on.exports=Ts});var pn=l((Gc,dn)=>{var an=Ne(),Os=sn(),Is=Oe(),Ns=_e(),_s=1/0,cn=an?an.prototype:void 0,fn=cn?cn.toString:void 0;function ln(e){if(typeof e=="string")return e;if(Is(e))return Os(e,ln)+"";if(Ns(e))return fn?fn.call(e):"";var t=e+"";return t=="0"&&1/e==-_s?"-0":t}dn.exports=ln});var hn=l((Jc,Dn)=>{var Rs=pn();function $s(e){return e==null?"":Rs(e)}Dn.exports=$s});var it=l((Yc,gn)=>{var Ls=Oe(),qs=Vt(),Ms=un(),js=hn();function Us(e,t){return Ls(e)?e:qs(e,t)?[e]:Ms(js(e))}gn.exports=Us});var ot=l((Qc,mn)=>{var Ws=_e(),Vs=1/0;function Hs(e){if(typeof e=="string"||Ws(e))return e;var t=e+"";return t=="0"&&1/e==-Vs?"-0":t}mn.exports=Hs});var An=l((Xc,Cn)=>{var Ks=it(),zs=ot();function Gs(e,t){t=Ks(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[zs(t[r++])];return r&&r==n?e:void 0}Cn.exports=Gs});var Fn=l((Zc,En)=>{var Js=An();function Ys(e,t,r){var n=e==null?void 0:Js(e,t);return n===void 0?r:n}En.exports=Ys});var bn=l((ef,yn)=>{var Qs=$e(),Xs=(function(){try{var e=Qs(Object,"defineProperty");return e({},"",{}),e}catch{}})();yn.exports=Xs});var wn=l((tf,xn)=>{var vn=bn();function Zs(e,t,r){t=="__proto__"&&vn?vn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}xn.exports=Zs});var Bn=l((rf,Sn)=>{var ea=wn(),ta=nt(),ra=Object.prototype,na=ra.hasOwnProperty;function ua(e,t,r){var n=e[t];(!(na.call(e,t)&&ta(n,r))||r===void 0&&!(t in e))&&ea(e,t,r)}Sn.exports=ua});var Pn=l((nf,kn)=>{var ia=9007199254740991,oa=/^(?:0|[1-9]\d*)$/;function sa(e,t){var r=typeof e;return t=t??ia,!!t&&(r=="number"||r!="symbol"&&oa.test(e))&&e>-1&&e%1==0&&e<t}kn.exports=sa});var In=l((uf,On)=>{var aa=Bn(),ca=it(),fa=Pn(),Tn=Re(),la=ot();function da(e,t,r,n){if(!Tn(e))return e;t=ca(t,e);for(var i=-1,a=t.length,c=a-1,p=e;p!=null&&++i<a;){var D=la(t[i]),C=r;if(D==="__proto__"||D==="constructor"||D==="prototype")return e;if(i!=c){var S=p[D];C=n?n(S,D,p):void 0,C===void 0&&(C=Tn(S)?S:fa(t[i+1])?[]:{})}aa(p,D,C),p=p[D]}return e}On.exports=da});var _n=l((of,Nn)=>{var pa=In();function Da(e,t,r){return e==null?e:pa(e,t,r)}Nn.exports=Da});var $n=l((sf,Rn)=>{"use strict";Rn.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var Un=l((af,jn)=>{"use strict";var Mn="%[a-f0-9]{2}",Ln=new RegExp("("+Mn+")|([^%]+?)","gi"),qn=new RegExp("("+Mn+")+","gi");function st(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],st(r),st(n))}function ha(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Ln)||[],r=1;r<t.length;r++)e=st(t,r).join(""),t=e.match(Ln)||[];return e}}function ga(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=qn.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ha(r[0]);n!==r[0]&&(t[r[0]]=n)}r=qn.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),a=0;a<i.length;a++){var c=i[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}jn.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return ga(e)}}});var Vn=l((cf,Wn)=>{"use strict";Wn.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var Kn=l((ff,Hn)=>{"use strict";Hn.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),a=0;a<n.length;a++){var c=n[a],p=e[c];(i?t.indexOf(c)!==-1:t(c,p,e))&&(r[c]=p)}return r}});var eu=l(M=>{"use strict";var ma=$n(),Ca=Un(),Gn=Vn(),Aa=Kn(),Ea=e=>e==null;function Fa(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[I(t,e),"[",i,"]"].join("")]:[...r,[I(t,e),"[",I(i,e),"]=",I(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[I(t,e),"[]"].join("")]:[...r,[I(t,e),"[]=",I(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>n==null||n.length===0?r:r.length===0?[[I(t,e),"=",I(n,e)].join("")]:[[r,I(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,I(t,e)]:[...r,[I(t,e),"=",I(n,e)].join("")]}}function ya(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let a=typeof n=="string"&&n.includes(e.arrayFormatSeparator),c=typeof n=="string"&&!a&&ae(n,e).includes(e.arrayFormatSeparator);n=c?ae(n,e):n;let p=a||c?n.split(e.arrayFormatSeparator).map(D=>ae(D,e)):n===null?n:ae(n,e);i[r]=p};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function Jn(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function I(e,t){return t.encode?t.strict?ma(e):encodeURIComponent(e):e}function ae(e,t){return t.decode?Ca(e):e}function Yn(e){return Array.isArray(e)?e.sort():typeof e=="object"?Yn(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function Qn(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function ba(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Xn(e){e=Qn(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function zn(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Zn(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),Jn(t.arrayFormatSeparator);let r=ya(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[a,c]=Gn(t.decode?i.replace(/\+/g," "):i,"=");c=c===void 0?null:["comma","separator"].includes(t.arrayFormat)?c:ae(c,t),r(ae(a,t),c,n)}for(let i of Object.keys(n)){let a=n[i];if(typeof a=="object"&&a!==null)for(let c of Object.keys(a))a[c]=zn(a[c],t);else n[i]=zn(a,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,a)=>{let c=n[a];return c&&typeof c=="object"&&!Array.isArray(c)?i[a]=Yn(c):i[a]=c,i},Object.create(null))}M.extract=Xn;M.parse=Zn;M.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),Jn(t.arrayFormatSeparator);let r=c=>t.skipNull&&Ea(e[c])||t.skipEmptyString&&e[c]==="",n=Fa(t),i={};for(let c of Object.keys(e))r(c)||(i[c]=e[c]);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(c=>{let p=e[c];return p===void 0?"":p===null?I(c,t):Array.isArray(p)?p.reduce(n(c),[]).join("&"):I(c,t)+"="+I(p,t)}).filter(c=>c.length>0).join("&")};M.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=Gn(e,"#");return Object.assign({url:r.split("?")[0]||"",query:Zn(Xn(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:ae(n,t)}:{})};M.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0},t);let r=Qn(e.url).split("?")[0]||"",n=M.extract(e.url),i=M.parse(n,{sort:!1}),a=Object.assign(i,e.query),c=M.stringify(a,t);c&&(c=`?${c}`);let p=ba(e.url);return e.fragmentIdentifier&&(p=`#${I(e.fragmentIdentifier,t)}`),`${r}${c}${p}`};M.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);let{url:n,query:i,fragmentIdentifier:a}=M.parseUrl(e,r);return M.stringifyUrl({url:n,query:Aa(i,t),fragmentIdentifier:a},r)};M.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,a)=>!t(i,a);return M.pick(e,n,r)}});var tu=l((at,ct)=>{(function(e,t){typeof at=="object"&&typeof ct<"u"?ct.exports=t():typeof define=="function"&&define.amd?define(t):e.JSON5=t()})(at,(function(){"use strict";function e(u,o){return o={exports:{}},u(o,o.exports),o.exports}var t=e(function(u){var o=u.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)}),r=e(function(u){var o=u.exports={version:"2.6.5"};typeof __e=="number"&&(__e=o)}),n=r.version,i=function(u){return typeof u=="object"?u!==null:typeof u=="function"},a=function(u){if(!i(u))throw TypeError(u+" is not an object!");return u},c=function(u){try{return!!u()}catch{return!0}},p=!c(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),D=t.document,C=i(D)&&i(D.createElement),S=function(u){return C?D.createElement(u):{}},P=!p&&!c(function(){return Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a!=7}),ee=function(u,o){if(!i(u))return u;var d,f;if(o&&typeof(d=u.toString)=="function"&&!i(f=d.call(u))||typeof(d=u.valueOf)=="function"&&!i(f=d.call(u))||!o&&typeof(d=u.toString)=="function"&&!i(f=d.call(u)))return f;throw TypeError("Can't convert object to primitive value")},We=Object.defineProperty,Ve=p?Object.defineProperty:function(o,d,f){if(a(o),d=ee(d,!0),a(f),P)try{return We(o,d,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(o[d]=f.value),o},He={f:Ve},j=function(u,o){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:o}},G=p?function(u,o,d){return He.f(u,o,j(1,d))}:function(u,o,d){return u[o]=d,u},U={}.hasOwnProperty,pt=function(u,o){return U.call(u,o)},Fu=0,yu=Math.random(),bu=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++Fu+yu).toString(36))},vu=!1,xu=e(function(u){var o="__core-js_shared__",d=t[o]||(t[o]={});(u.exports=function(f,h){return d[f]||(d[f]=h!==void 0?h:{})})("versions",[]).push({version:r.version,mode:vu?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Ke=xu("native-function-to-string",Function.toString),wu=e(function(u){var o=bu("src"),d="toString",f=(""+Ke).split(d);r.inspectSource=function(h){return Ke.call(h)},(u.exports=function(h,E,y,L){var k=typeof y=="function";k&&(pt(y,"name")||G(y,"name",E)),h[E]!==y&&(k&&(pt(y,o)||G(y,o,h[E]?""+h[E]:f.join(String(E)))),h===t?h[E]=y:L?h[E]?h[E]=y:G(h,E,y):(delete h[E],G(h,E,y)))})(Function.prototype,d,function(){return typeof this=="function"&&this[o]||Ke.call(this)})}),Su=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u},Dt=function(u,o,d){if(Su(u),o===void 0)return u;switch(d){case 1:return function(f){return u.call(o,f)};case 2:return function(f,h){return u.call(o,f,h)};case 3:return function(f,h,E){return u.call(o,f,h,E)}}return function(){return u.apply(o,arguments)}},ze="prototype",R=function(u,o,d){var f=u&R.F,h=u&R.G,E=u&R.S,y=u&R.P,L=u&R.B,k=h?t:E?t[o]||(t[o]={}):(t[o]||{})[ze],ie=h?r:r[o]||(r[o]={}),le=ie[ze]||(ie[ze]={}),V,J,q,de;h&&(d=o);for(V in d)J=!f&&k&&k[V]!==void 0,q=(J?k:d)[V],de=L&&J?Dt(q,t):y&&typeof q=="function"?Dt(Function.call,q):q,k&&wu(k,V,q,u&R.U),ie[V]!=q&&G(ie,V,de),y&&le[V]!=q&&(le[V]=q)};t.core=r,R.F=1,R.G=2,R.S=4,R.P=8,R.B=16,R.W=32,R.U=64,R.R=128;var Ce=R,Bu=Math.ceil,ku=Math.floor,ht=function(u){return isNaN(u=+u)?0:(u>0?ku:Bu)(u)},Pu=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u},Tu=function(u){return function(o,d){var f=String(Pu(o)),h=ht(d),E=f.length,y,L;return h<0||h>=E?u?"":void 0:(y=f.charCodeAt(h),y<55296||y>56319||h+1===E||(L=f.charCodeAt(h+1))<56320||L>57343?u?f.charAt(h):y:u?f.slice(h,h+2):(y-55296<<10)+(L-56320)+65536)}},Ou=Tu(!1);Ce(Ce.P,"String",{codePointAt:function(o){return Ou(this,o)}});var za=r.String.codePointAt,Iu=Math.max,Nu=Math.min,_u=function(u,o){return u=ht(u),u<0?Iu(u+o,0):Nu(u,o)},gt=String.fromCharCode,mt=String.fromCodePoint;Ce(Ce.S+Ce.F*(!!mt&&mt.length!=1),"String",{fromCodePoint:function(o){for(var d=arguments,f=[],h=arguments.length,E=0,y;h>E;){if(y=+d[E++],_u(y,1114111)!==y)throw RangeError(y+" is not a valid code point");f.push(y<65536?gt(y):gt(((y-=65536)>>10)+55296,y%1024+56320))}return f.join("")}});var Ga=r.String.fromCodePoint,Ru=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,$u=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Lu=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Ge={Space_Separator:Ru,ID_Start:$u,ID_Continue:Lu},B={isSpaceSeparator:function(o){return typeof o=="string"&&Ge.Space_Separator.test(o)},isIdStartChar:function(o){return typeof o=="string"&&(o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="$"||o==="_"||Ge.ID_Start.test(o))},isIdContinueChar:function(o){return typeof o=="string"&&(o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="$"||o==="_"||o==="\u200C"||o==="\u200D"||Ge.ID_Continue.test(o))},isDigit:function(o){return typeof o=="string"&&/[0-9]/.test(o)},isHexDigit:function(o){return typeof o=="string"&&/[0-9A-Fa-f]/.test(o)}},Je,$,Y,Se,te,W,T,Ye,Ae,qu=function(o,d){Je=String(o),$="start",Y=[],Se=0,te=1,W=0,T=void 0,Ye=void 0,Ae=void 0;do T=Mu(),Wu[$]();while(T.type!=="eof");return typeof d=="function"?Qe({"":Ae},"",d):Ae};function Qe(u,o,d){var f=u[o];if(f!=null&&typeof f=="object")if(Array.isArray(f))for(var h=0;h<f.length;h++){var E=String(h),y=Qe(f,E,d);y===void 0?delete f[E]:Object.defineProperty(f,E,{value:y,writable:!0,enumerable:!0,configurable:!0})}else for(var L in f){var k=Qe(f,L,d);k===void 0?delete f[L]:Object.defineProperty(f,L,{value:k,writable:!0,enumerable:!0,configurable:!0})}return d.call(u,o,f)}var A,g,Ee,Q,F;function Mu(){for(A="default",g="",Ee=!1,Q=1;;){F=X();var u=Ct[A]();if(u)return u}}function X(){if(Je[Se])return String.fromCodePoint(Je.codePointAt(Se))}function s(){var u=X();return u===`
2
+ `?(te++,W=0):u?W+=u.length:W++,u&&(Se+=u.length),u}var Ct={default:function(){switch(F){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
3
+ `:case"\r":case"\u2028":case"\u2029":s();return;case"/":s(),A="comment";return;case void 0:return s(),x("eof")}if(B.isSpaceSeparator(F)){s();return}return Ct[$]()},comment:function(){switch(F){case"*":s(),A="multiLineComment";return;case"/":s(),A="singleLineComment";return}throw w(s())},multiLineComment:function(){switch(F){case"*":s(),A="multiLineCommentAsterisk";return;case void 0:throw w(s())}s()},multiLineCommentAsterisk:function(){switch(F){case"*":s();return;case"/":s(),A="default";return;case void 0:throw w(s())}s(),A="multiLineComment"},singleLineComment:function(){switch(F){case`
4
+ `:case"\r":case"\u2028":case"\u2029":s(),A="default";return;case void 0:return s(),x("eof")}s()},value:function(){switch(F){case"{":case"[":return x("punctuator",s());case"n":return s(),ne("ull"),x("null",null);case"t":return s(),ne("rue"),x("boolean",!0);case"f":return s(),ne("alse"),x("boolean",!1);case"-":case"+":s()==="-"&&(Q=-1),A="sign";return;case".":g=s(),A="decimalPointLeading";return;case"0":g=s(),A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":g=s(),A="decimalInteger";return;case"I":return s(),ne("nfinity"),x("numeric",1/0);case"N":return s(),ne("aN"),x("numeric",NaN);case'"':case"'":Ee=s()==='"',g="",A="string";return}throw w(s())},identifierNameStartEscape:function(){if(F!=="u")throw w(s());s();var o=Xe();switch(o){case"$":case"_":break;default:if(!B.isIdStartChar(o))throw At();break}g+=o,A="identifierName"},identifierName:function(){switch(F){case"$":case"_":case"\u200C":case"\u200D":g+=s();return;case"\\":s(),A="identifierNameEscape";return}if(B.isIdContinueChar(F)){g+=s();return}return x("identifier",g)},identifierNameEscape:function(){if(F!=="u")throw w(s());s();var o=Xe();switch(o){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!B.isIdContinueChar(o))throw At();break}g+=o,A="identifierName"},sign:function(){switch(F){case".":g=s(),A="decimalPointLeading";return;case"0":g=s(),A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":g=s(),A="decimalInteger";return;case"I":return s(),ne("nfinity"),x("numeric",Q*(1/0));case"N":return s(),ne("aN"),x("numeric",NaN)}throw w(s())},zero:function(){switch(F){case".":g+=s(),A="decimalPoint";return;case"e":case"E":g+=s(),A="decimalExponent";return;case"x":case"X":g+=s(),A="hexadecimal";return}return x("numeric",Q*0)},decimalInteger:function(){switch(F){case".":g+=s(),A="decimalPoint";return;case"e":case"E":g+=s(),A="decimalExponent";return}if(B.isDigit(F)){g+=s();return}return x("numeric",Q*Number(g))},decimalPointLeading:function(){if(B.isDigit(F)){g+=s(),A="decimalFraction";return}throw w(s())},decimalPoint:function(){switch(F){case"e":case"E":g+=s(),A="decimalExponent";return}if(B.isDigit(F)){g+=s(),A="decimalFraction";return}return x("numeric",Q*Number(g))},decimalFraction:function(){switch(F){case"e":case"E":g+=s(),A="decimalExponent";return}if(B.isDigit(F)){g+=s();return}return x("numeric",Q*Number(g))},decimalExponent:function(){switch(F){case"+":case"-":g+=s(),A="decimalExponentSign";return}if(B.isDigit(F)){g+=s(),A="decimalExponentInteger";return}throw w(s())},decimalExponentSign:function(){if(B.isDigit(F)){g+=s(),A="decimalExponentInteger";return}throw w(s())},decimalExponentInteger:function(){if(B.isDigit(F)){g+=s();return}return x("numeric",Q*Number(g))},hexadecimal:function(){if(B.isHexDigit(F)){g+=s(),A="hexadecimalInteger";return}throw w(s())},hexadecimalInteger:function(){if(B.isHexDigit(F)){g+=s();return}return x("numeric",Q*Number(g))},string:function(){switch(F){case"\\":s(),g+=ju();return;case'"':if(Ee)return s(),x("string",g);g+=s();return;case"'":if(!Ee)return s(),x("string",g);g+=s();return;case`
5
+ `:case"\r":throw w(s());case"\u2028":case"\u2029":Vu(F);break;case void 0:throw w(s())}g+=s()},start:function(){switch(F){case"{":case"[":return x("punctuator",s())}A="value"},beforePropertyName:function(){switch(F){case"$":case"_":g=s(),A="identifierName";return;case"\\":s(),A="identifierNameStartEscape";return;case"}":return x("punctuator",s());case'"':case"'":Ee=s()==='"',A="string";return}if(B.isIdStartChar(F)){g+=s(),A="identifierName";return}throw w(s())},afterPropertyName:function(){if(F===":")return x("punctuator",s());throw w(s())},beforePropertyValue:function(){A="value"},afterPropertyValue:function(){switch(F){case",":case"}":return x("punctuator",s())}throw w(s())},beforeArrayValue:function(){if(F==="]")return x("punctuator",s());A="value"},afterArrayValue:function(){switch(F){case",":case"]":return x("punctuator",s())}throw w(s())},end:function(){throw w(s())}};function x(u,o){return{type:u,value:o,line:te,column:W}}function ne(u){for(var o=0,d=u;o<d.length;o+=1){var f=d[o],h=X();if(h!==f)throw w(s());s()}}function ju(){var u=X();switch(u){case"b":return s(),"\b";case"f":return s(),"\f";case"n":return s(),`
6
+ `;case"r":return s(),"\r";case"t":return s()," ";case"v":return s(),"\v";case"0":if(s(),B.isDigit(X()))throw w(s());return"\0";case"x":return s(),Uu();case"u":return s(),Xe();case`
7
+ `:case"\u2028":case"\u2029":return s(),"";case"\r":return s(),X()===`
8
+ `&&s(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw w(s());case void 0:throw w(s())}return s()}function Uu(){var u="",o=X();if(!B.isHexDigit(o)||(u+=s(),o=X(),!B.isHexDigit(o)))throw w(s());return u+=s(),String.fromCodePoint(parseInt(u,16))}function Xe(){for(var u="",o=4;o-- >0;){var d=X();if(!B.isHexDigit(d))throw w(s());u+=s()}return String.fromCodePoint(parseInt(u,16))}var Wu={start:function(){if(T.type==="eof")throw ue();Ze()},beforePropertyName:function(){switch(T.type){case"identifier":case"string":Ye=T.value,$="afterPropertyName";return;case"punctuator":Be();return;case"eof":throw ue()}},afterPropertyName:function(){if(T.type==="eof")throw ue();$="beforePropertyValue"},beforePropertyValue:function(){if(T.type==="eof")throw ue();Ze()},beforeArrayValue:function(){if(T.type==="eof")throw ue();if(T.type==="punctuator"&&T.value==="]"){Be();return}Ze()},afterPropertyValue:function(){if(T.type==="eof")throw ue();switch(T.value){case",":$="beforePropertyName";return;case"}":Be()}},afterArrayValue:function(){if(T.type==="eof")throw ue();switch(T.value){case",":$="beforeArrayValue";return;case"]":Be()}},end:function(){}};function Ze(){var u;switch(T.type){case"punctuator":switch(T.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=T.value;break}if(Ae===void 0)Ae=u;else{var o=Y[Y.length-1];Array.isArray(o)?o.push(u):Object.defineProperty(o,Ye,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")Y.push(u),Array.isArray(u)?$="beforeArrayValue":$="beforePropertyName";else{var d=Y[Y.length-1];d==null?$="end":Array.isArray(d)?$="afterArrayValue":$="afterPropertyValue"}}function Be(){Y.pop();var u=Y[Y.length-1];u==null?$="end":Array.isArray(u)?$="afterArrayValue":$="afterPropertyValue"}function w(u){return ke(u===void 0?"JSON5: invalid end of input at "+te+":"+W:"JSON5: invalid character '"+Et(u)+"' at "+te+":"+W)}function ue(){return ke("JSON5: invalid end of input at "+te+":"+W)}function At(){return W-=5,ke("JSON5: invalid identifier character at "+te+":"+W)}function Vu(u){console.warn("JSON5: '"+Et(u)+"' in strings is not valid ECMAScript; consider escaping")}function Et(u){var o={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(o[u])return o[u];if(u<" "){var d=u.charCodeAt(0).toString(16);return"\\x"+("00"+d).substring(d.length)}return u}function ke(u){var o=new SyntaxError(u);return o.lineNumber=te,o.columnNumber=W,o}var Hu=function(o,d,f){var h=[],E="",y,L,k="",ie;if(d!=null&&typeof d=="object"&&!Array.isArray(d)&&(f=d.space,ie=d.quote,d=d.replacer),typeof d=="function")L=d;else if(Array.isArray(d)){y=[];for(var le=0,V=d;le<V.length;le+=1){var J=V[le],q=void 0;typeof J=="string"?q=J:(typeof J=="number"||J instanceof String||J instanceof Number)&&(q=String(J)),q!==void 0&&y.indexOf(q)<0&&y.push(q)}}return f instanceof Number?f=Number(f):f instanceof String&&(f=String(f)),typeof f=="number"?f>0&&(f=Math.min(10,Math.floor(f)),k=" ".substr(0,f)):typeof f=="string"&&(k=f.substr(0,10)),de("",{"":o});function de(v,N){var m=N[v];switch(m!=null&&(typeof m.toJSON5=="function"?m=m.toJSON5(v):typeof m.toJSON=="function"&&(m=m.toJSON(v))),L&&(m=L.call(N,v,m)),m instanceof Number?m=Number(m):m instanceof String?m=String(m):m instanceof Boolean&&(m=m.valueOf()),m){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof m=="string")return Pe(m,!1);if(typeof m=="number")return String(m);if(typeof m=="object")return Array.isArray(m)?Qu(m):Ju(m)}function Pe(v){for(var N={"'":.1,'"':.2},m={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},O="",H=0;H<v.length;H++){var _=v[H];switch(_){case"'":case'"':N[_]++,O+=_;continue;case"\0":if(B.isDigit(v[H+1])){O+="\\x00";continue}}if(m[_]){O+=m[_];continue}if(_<" "){var oe=_.charCodeAt(0).toString(16);O+="\\x"+("00"+oe).substring(oe.length);continue}O+=_}var Z=ie||Object.keys(N).reduce(function(re,se){return N[re]<N[se]?re:se});return O=O.replace(new RegExp(Z,"g"),m[Z]),Z+O+Z}function Ju(v){if(h.indexOf(v)>=0)throw TypeError("Converting circular structure to JSON5");h.push(v);var N=E;E=E+k;for(var m=y||Object.keys(v),O=[],H=0,_=m;H<_.length;H+=1){var oe=_[H],Z=de(oe,v);if(Z!==void 0){var re=Yu(oe)+":";k!==""&&(re+=" "),re+=Z,O.push(re)}}var se;if(O.length===0)se="{}";else{var Te;if(k==="")Te=O.join(","),se="{"+Te+"}";else{var Xu=`,
9
+ `+E;Te=O.join(Xu),se=`{
10
+ `+E+Te+`,
11
+ `+N+"}"}}return h.pop(),E=N,se}function Yu(v){if(v.length===0)return Pe(v,!0);var N=String.fromCodePoint(v.codePointAt(0));if(!B.isIdStartChar(N))return Pe(v,!0);for(var m=N.length;m<v.length;m++)if(!B.isIdContinueChar(String.fromCodePoint(v.codePointAt(m))))return Pe(v,!0);return v}function Qu(v){if(h.indexOf(v)>=0)throw TypeError("Converting circular structure to JSON5");h.push(v);var N=E;E=E+k;for(var m=[],O=0;O<v.length;O++){var H=de(String(O),v);m.push(H!==void 0?H:"null")}var _;if(m.length===0)_="[]";else if(k===""){var oe=m.join(",");_="["+oe+"]"}else{var Z=`,
12
+ `+E,re=m.join(Z);_=`[
13
+ `+E+re+`,
14
+ `+N+"]"}return h.pop(),E=N,_}},Ku={parse:qu,stringify:Hu},zu=Ku,Gu=zu;return Gu}))});var ou=l((pf,iu)=>{var we;typeof window<"u"?we=window:typeof global<"u"?we=global:typeof self<"u"?we=self:we={};iu.exports=we});function et(e,{as:t="id",fallback:r=""}={}){return(t==="github"?e.trim().toLowerCase().replace(/[^\p{L}\p{M}\p{N}\p{Pc}\- ]/gu,"").replace(/ /g,"-"):ii(e.normalize("NFKD")).toLowerCase().replace(/['’]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""))||r}function ii(e,{keep:t=""}={}){let r=t.normalize("NFC").toLowerCase();return e.normalize("NFC").replace(/\P{ASCII}/gu,n=>r.includes(n.toLowerCase())?n:n.normalize("NFD").replace(/\p{M}+/gu,""))}var yt=/\/(?:packages\/docs\/content\/)?epics\/([^/]+)\/\1\.plan\.html$/,bt=/\/sagas\/([^/]+)\/\1\.saga\.html$/;var vt=4e3;var oi=si()?"Airplane mode: queued for when you land (/airplane land)":"No Claude session is reviewing this doc: Send wakes one";function si(){return typeof window<"u"&&!!window.SPELL_SERVER?.airplane}var xt=/window\.SPELL_SERVER = (\{.*?\})<\/script>/;var ai=8*1024*1024;var pe=class extends Error{};pe.prototype.name="ServerWriteError";var ci="see my comments in its text: ",ec=new RegExp(`(?:^|\\n+)${ci}[^\\n]*$`);var va=Fe(Fn()),xa=Fe(_n()),lu=Fe(eu());var ru=Fe(tu(),1);function nu(e,t="random text",r){try{return JSON.parse(e)}catch(n){let a=(n instanceof Error?n.message:String(n)).match(/at position (\d+)/);if(a){let c=parseInt(a[1],10),p=e.substring(0,c),D=Math.max(0,p.split(`
15
+ `).length-2);console.error(`Error parsing JSON near line ${D} of ${t}`);let C=Math.max(0,D-3),S=C+6;console.log(e.split(`
16
+ `).slice(C,S).join(`
17
+ `))}if(!r)throw n;return}}function uu(e,t="random text",r){try{return ru.default.parse(e)}catch(n){let a=(n instanceof Error?n.message:String(n)).match(/at position (\d+)/);if(a){let c=parseInt(a[1],10),p=e.substring(0,c),D=Math.max(0,p.split(`
18
+ `).length-2);console.error(`Error parsing JSON near line ${D} of ${t}`);let C=Math.max(0,D-3),S=C+6;console.log(e.split(`
19
+ `).slice(C,S).join(`
20
+ `))}if(!r)throw n;return}}var su=Fe(ou(),1);function au(e){return e.name==="AbortError"}function cu(e,t={},r=fetch){let n=!1,i=new su.default.AbortController;function a(p){return Object.assign(p,{cancel(){return n||(console.warn(`Cancelling abortable fetch to ${e}:`),i.abort()),this},then(D,C){return a(Promise.prototype.then.apply(this,[D,C]))},catch(D){return a(Promise.prototype.catch.apply(this,[D]))},finally(D){return a(Promise.prototype.finally.apply(this,[D]))}})}t.signal=i.signal;let c=r(e,t);return c.finally(()=>{n=!0}),a(c)}var ce={text:"text/plain",json:"application/json",json5:"application/json5",gif:"image/gif",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",svg:"image/svg+xml",binary:"binary"},fu=["binary","blob",ce.gif,ce.png,ce.jpeg,ce.binary];var Le=class extends Error{props;constructor(t,r){typeof t=="string"?(super(t),this.props={message:t}):(super(t.message),this.props=t);let{captureStackTrace:n}=Error;n&&n(this,r||this.constructor),Object.setPrototypeOf(this,new.target.prototype)}get name(){return this.constructor.name}get header(){return this.props.activity?`${this.name} ${this.props.activity}`:this.name}};var K=class extends Le{get status(){if(this.props.response)return this.props.response.status}},qe=class extends K{constructor(t){super({message:"You must be online to do this.",...t})}},me=class extends K{constructor(t){super({message:"There was a problem loading this thing.",...t})}},Me=class extends K{constructor(t){super({message:"You are not authorized to do this.",...t})}},je=class extends K{constructor(t){super({message:"There was an error understanding the response.",...t})}},Ue=class extends K{constructor(t){super({message:"The action was cancelled.",...t})}};function du(e){let{url:t,query:r,contents:n,method:i=n!=null?"POST":"GET",headers:a={},requestFormat:c,format:p="text/plain",defaultContents:D,cache:C,fetch:S}=e,P={method:i,...C&&{cache:C}};c&&(a["Content-Type"]=c),P.headers=a,n!=null&&(P.body=typeof n=="string"?n:JSON.stringify(n));let ee=t;typeof r=="string"?ee+=`?${r}`:r&&(ee+=`?${lu.default.stringify(r)}`);let We=cu(ee,P,S);async function Ve(j){let G={url:t,status:j.status,...P};if(!j.ok){let U=await j.text();switch(j.status){case 404:if(D!==void 0)return D;throw new me({...G,message:U});case 401:case 403:throw new Me({...G,message:U});default:throw new K({...G,message:U})}}try{if(fu.includes(p))return await j.blob();let U=await j.text();return p===ce.json||p.toLowerCase()==="json"?nu(U):p===ce.json5||p.toLowerCase()==="json5"?uu(U):U}catch(U){throw new je({...G,error:U})}}async function He(j){if(D!==void 0)return D;throw au(j)?new Ue({url:t,error:j,...P}):new qe({url:t,error:j,...P})}return We.then(Ve,He)}var z=class e{constructor(t){this.options=t;this.info=t.server?{...t.server}:void 0}options;info;static current;static forPage(){return e.current??=new e(e.pageOptions()),e.current}static pageOptions(){return{page:location.pathname,server:window.SPELL_SERVER,protocol:location.protocol,fetch:(t,r)=>window.fetch(t,r),readServed:t=>e.readInFrame(window.document,t)}}static readInFrame(t,r,n=wa){return new Promise((i,a)=>{let c=t.createElement("iframe");c.setAttribute("sandbox","allow-same-origin"),c.setAttribute("aria-hidden","true"),c.hidden=!0;let p=S=>{clearTimeout(C);try{i(S())}catch(P){a(P)}finally{c.remove()}},D=()=>{throw new Error("the page didn't load")},C=setTimeout(()=>p(D),n);c.addEventListener("load",()=>{c.contentDocument?.URL!=="about:blank"&&p(()=>c.contentDocument.documentElement.outerHTML)}),c.src=`${r}${r.includes("?")?"&":"?"}spell-token=${Date.now()}`,t.body.append(c)})}static isServed(t=globalThis.SPELL_SERVER,r=globalThis.location?.protocol){return!!t?.token&&e.canRead(r)}static canRead(t=globalThis.location?.protocol){return t!=="file:"}get isServed(){return e.isServed(this.info,this.options.protocol)}get servesPlanDoc(){return this.isServed&&yt.test(this.options.page)}get servesReviews(){return this.servesPlanDoc?!0:this.isServed&&bt.test(this.options.page)}get file(){return this.info?.file??this.options.page}async get(t,{query:r,missing:n,format:i="json"}={}){if(!e.canRead(this.options.protocol))return n;try{let a=r&&new URLSearchParams(r).toString();return await du({url:t,query:a,format:i,cache:"no-store",fetch:this.options.fetch})??n}catch(a){if(a instanceof me)return n;throw a instanceof K&&(a.message=Sa(a.message)??a.message),a}}async getFile(t,{format:r="json"}={}){for(let n of typeof t=="string"?[t]:t){let i;try{i=await this.get(n,{format:r})}catch(a){throw new Error(`${n.split("/").pop()}: ${a.message}`,{cause:a})}if(i!==void 0)return i}}static dataFileNames(t){let r=t.replace(/\.json5?$/,"");return r===t?[t]:[`${r}.json5`,`${r}.json`]}getForPage(t,{missing:r}={}){return this.get(t,{query:{page:this.options.page},missing:r})}async post(t,r,{keepalive:n=!1}={}){for(let i=0;;i++){let a;try{a=await this.options.fetch(t,{method:"POST",headers:{"content-type":"application/json","x-server-token":this.info?.token??""},body:JSON.stringify(r),keepalive:n})}catch(D){throw new pe(`couldn't reach the page server (${D.message})`)}let c=await a.json().catch(()=>({}));if(a.ok)return c;let p=a.status===403&&/token/i.test(c.error??"");if(!(p&&i===0&&await this.refreshToken()))throw new pe(p?"the page server restarted since this page loaded: reload the page":c.error??`couldn't save (${a.status})`)}}static watch(t,r,n,{every:i=vt,polls:a}={}){let{document:c}=t,p=typeof r=="function"?r:Ba(r),D=i?t.setInterval(()=>{c.visibilityState==="visible"&&(a?.()??!0)&&n()},i):void 0,C=()=>{c.visibilityState==="visible"&&n()},S=P=>{let ee=P.detail?.path;ee&&p(decodeURIComponent(ee))&&n()};return c.addEventListener("visibilitychange",C),t.addEventListener("spell-server:changed",S),()=>{D!==void 0&&t.clearInterval(D),c.removeEventListener("visibilitychange",C),t.removeEventListener("spell-server:changed",S)}}async refreshToken(){try{let{page:t,readServed:r}=this.options,n=r?await r(t):await(await this.options.fetch(t,{cache:"no-store"})).text(),i=JSON.parse(xt.exec(n)?.[1]??"null")?.token;return!i||!this.info||i===this.info.token?!1:(this.info.token=i,!0)}catch{return!1}}},wa=1e4;function Sa(e){try{let t=JSON.parse(e)?.error;return typeof t=="string"?t:void 0}catch{return}}function Ba(e){if(!e)return()=>!1;let t=z.dataFileNames(e);return r=>t.includes(r)}function gu(e,t="button"){let r=()=>{let n=e.shadowRoot?.querySelector(`[part~="${t}"]`);return n&&(n.title=e.title),!!n};r()||customElements.whenDefined(e.localName).then(()=>requestAnimationFrame(r))}function b(e,t={},...r){let n=document.createElement(e);for(let[i,a]of Object.entries(t))a!==void 0&&a!==!1&&n.setAttribute(i,a===!0?"":String(a));return n.append(...r.filter(i=>i!=null&&i!==!1&&i!=="")),n}function mu({load:e,draw:t,holder:r,header:n,offServer:i,failure:a}){let c=new URL("spell-ui.js",document.currentScript?.src??location.href).href;return(async()=>{let D;try{z.canRead()?D=await e():p(`${i}: open it through the page server, e.g. \`epic pages open ${Pa()}\`.`),D&&t(D)}catch(C){p(`${a}: ${C.message}`),D=void 0}return document.body.append(b("script",{src:c})),D})();function p(D){(document.querySelector(r)??document.querySelector("main"))?.prepend(b("ui-message",{state:"warning",heading:n},b("p",{},...ft(D))))}}function ft(e,t=r=>[r]){return String(e).split("`").flatMap((r,n)=>n%2?[b("code",{},r)]:t(r)).filter(r=>r!=="")}function Cu(e){return/^\s*(\d+(?:\.\d+)*)\.?\s/.exec(e?.getAttribute("label")??"")?.[1]??""}function Pa(){return decodeURIComponent(location.pathname).replace(/^.*\/(?=(?:guides|epics|templates|pages)\/)/,"")}var Au=["name","Python","in Python","what it does"];mu({load:Ta,draw:Oa,holder:"[data-core-modules]",header:"Reference not drawn",offServer:"This page draws the core's method list from the checkout serving it",failure:"Couldn't draw the reference"});async function Ta(){let{coreDeclarations:e,notPorted:t}=document.body.dataset;if(!e)throw new Error("the page's `<body>` has no `data-core-declarations`");let r=z.forPage(),[n,i]=await Promise.all([r.getFile(z.dataFileNames(e)),t?r.getFile(z.dataFileNames(t)).catch(()=>{}):void 0]);if(n===void 0)throw new Error(`${e}: not found`);return{declarations:n,notPorted:i}}function Oa({declarations:e,notPorted:t}){let r=e.statements??[],n=Wa(t),i=Ia(r),a=document.querySelector("[data-core-modules]");if(a){let p=Cu(a.closest("ui-section")),D=[...i].map(([C,S],P)=>Na(C,S,n,p?`${p}.${P+1} `:""));a.replaceWith(...D)}document.querySelector("[data-core-stats]")?.replaceChildren(...qa(r,i,n)),document.querySelector("[data-core-not-ported]")?.replaceChildren(Ma(r,t));let c=document.querySelector("[data-core-filter]");c&&Ka(c)}function Ia(e){let t=new Map;for(let r of e){let n=r.module??"core";t.has(n)||t.set(n,[]),t.get(n).push(r)}return t}function Na(e,t,r,n){let i=Va(e),a=r?t.filter(C=>r.has(fe(C))).length:0,c=`spell-parser/src/core/${i}`,p=b("ui-button",{slot:"actions",appearance:"circular basic",size:"tiny",icon:"code",link:Ha(i),target:`src-${et(c)}`,title:c,"aria-label":`Open ${i.split("/").pop()}`});gu(p);let D=_a(t).map(({heading:C,rows:S})=>b("tbody",{},C?b("tr",{},b("th",{colspan:String(Au.length)},...dt(C))):"",...S.map(P=>Ra(P,r))));return b("ui-section",{id:`file-${et(e)}`,label:n+e,badge:a?`${t.length} \xB7 ${a} not in Python`:`${t.length}`,sticky:"",collapsible:"",dividing:"",open:"false","data-core-module":""},p,b("ui-table",{celled:"",padding:"compact",appearance:"striped",unstackable:""},b("table",{},b("thead",{},b("tr",{},...Au.map(C=>b("th",{},C)))),...D)))}function _a(e){let t=[];for(let r of e){let n=r.of==="core"?r.section??t.at(-1)?.heading??"":"imported by name";t.at(-1)?.heading!==n&&t.push({heading:n,rows:[]}),t.at(-1).rows.push(r)}return t}function Ra(e,t){return b("tr",{id:Eu(e)},b("td",{},...$a(e)),b("td",{},b("code",{},ja(e))),La(fe(e),t),b("td",{},...dt(e.description??"")))}function $a(e){let t=e.params?`(${e.params.map(n=>n.name).join(", ")})`:"",r=lt(e);return[b("code",{},fe(e)+(e.kind?t||"()":"")),...r==="method"?[]:[" ",b("ui-label",{size:"mini"},r)],...e.superType?[" extends ",b("code",{},e.superType)]:[]]}function La(e,t){if(!t)return b("td",{title:"this checkout has no parser/src/py/core/not_ported_yet.json5"},"?");let r=t.get(e);return r===void 0?b("td",{class:"yes positive",title:"spell_core has it"},"\u2713"):b("td",{class:"no negative",title:r},"\u2717 not yet")}function qa(e,t,r){let n=r?e.filter(i=>r.has(fe(i))).length:void 0;return[[e.length,"names"],[t.size,"files"],[n===void 0?"?":e.length-n,"in Python"],[n??"?","not in Python yet"]].map(([i,a])=>b("ui-statistic",{value:String(i),label:a}))}function Ma(e,t){if(!t)return b("ui-message",{state:"warning",heading:"No list of what Python lacks"},b("p",{},"This checkout has no ",b("code",{},"parser/src/py/core/not_ported_yet.json5"),"."));let r=new Map(e.map(i=>[fe(i),i])),n=(t.groups??[]).map(i=>{let a=i.names.flatMap((c,p)=>{let D=r.get(c),C=b("code",{},c);return[p?", ":"",D?b("a",{href:`#${Eu(D)}`},C):C]});return b("li",{},...dt(i.why),` (${i.names.length}):`,b("br"),...a)});return b("ul",{},...n)}function fe(e){return e.name??e.property??e.type}function lt(e){return e.type?"class":e.property?"property":e.kind==="function"?"import":"method"}function Eu(e){let t=lt(e);return`${t==="class"?"class":t==="import"?"import":"spellcore"}-${fe(e)}`}function ja(e){let t=lt(e);if(t==="class")return`spell_core.${e.type}`;let r=Ua(fe(e));return t==="property"?`core.${r}`:t==="import"?`${r}()`:`core.${r}()`}function Ua(e){return/^[A-Z0-9_]+$/.test(e)?e.toLowerCase():e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase()}function Wa(e){if(e)return new Map((e.groups??[]).flatMap(t=>t.names.map(r=>[r,t.why])))}function Va(e){return e==="classes"?"classes/index.ts":`${e}.ts`}function Ha(e){return(document.body.dataset.coreDeclarations??"").replace(/[^/]*$/,`src/${e}`)}function Ka(e){e.addEventListener("ui-typed",t),e.addEventListener("ui-changed",t);function t(r){let n=String(r.detail?.value??e.value??"").toLowerCase().split(/\s+/).filter(Boolean);for(let i of document.querySelectorAll("ui-section[data-core-module]")){let a=0;for(let c of i.querySelectorAll("tbody")){let p=0;for(let C of c.querySelectorAll("tr:has(td)")){let S=C.textContent.toLowerCase();C.hidden=!n.every(P=>S.includes(P)),C.hidden||p++}let D=c.querySelector("tr:not(:has(td))");D&&(D.hidden=p===0),a+=p}i.hidden=a===0}}}function dt(e){return ft(String(e).replace(/```(?:[a-z]+\s)?([\s\S]*?)```/g,(t,r)=>`\`${r.trim()}\``))}})();