@pedropaulovc/playwright 1.59.0-alpha-1769214875000

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 (183) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +5 -0
  3. package/README.md +170 -0
  4. package/ThirdPartyNotices.txt +5042 -0
  5. package/cli.js +19 -0
  6. package/index.d.ts +17 -0
  7. package/index.js +17 -0
  8. package/index.mjs +18 -0
  9. package/jsx-runtime.js +42 -0
  10. package/jsx-runtime.mjs +21 -0
  11. package/lib/agents/agentParser.js +89 -0
  12. package/lib/agents/copilot-setup-steps.yml +34 -0
  13. package/lib/agents/generateAgents.js +348 -0
  14. package/lib/agents/playwright-test-coverage.prompt.md +31 -0
  15. package/lib/agents/playwright-test-generate.prompt.md +8 -0
  16. package/lib/agents/playwright-test-generator.agent.md +88 -0
  17. package/lib/agents/playwright-test-heal.prompt.md +6 -0
  18. package/lib/agents/playwright-test-healer.agent.md +55 -0
  19. package/lib/agents/playwright-test-plan.prompt.md +9 -0
  20. package/lib/agents/playwright-test-planner.agent.md +73 -0
  21. package/lib/common/config.js +281 -0
  22. package/lib/common/configLoader.js +344 -0
  23. package/lib/common/esmLoaderHost.js +104 -0
  24. package/lib/common/expectBundle.js +28 -0
  25. package/lib/common/expectBundleImpl.js +407 -0
  26. package/lib/common/fixtures.js +302 -0
  27. package/lib/common/globals.js +58 -0
  28. package/lib/common/ipc.js +60 -0
  29. package/lib/common/poolBuilder.js +85 -0
  30. package/lib/common/process.js +132 -0
  31. package/lib/common/suiteUtils.js +140 -0
  32. package/lib/common/test.js +321 -0
  33. package/lib/common/testLoader.js +101 -0
  34. package/lib/common/testType.js +298 -0
  35. package/lib/common/validators.js +68 -0
  36. package/lib/fsWatcher.js +67 -0
  37. package/lib/index.js +726 -0
  38. package/lib/internalsForTest.js +42 -0
  39. package/lib/isomorphic/events.js +77 -0
  40. package/lib/isomorphic/folders.js +30 -0
  41. package/lib/isomorphic/stringInternPool.js +69 -0
  42. package/lib/isomorphic/teleReceiver.js +520 -0
  43. package/lib/isomorphic/teleSuiteUpdater.js +157 -0
  44. package/lib/isomorphic/testServerConnection.js +225 -0
  45. package/lib/isomorphic/testServerInterface.js +16 -0
  46. package/lib/isomorphic/testTree.js +329 -0
  47. package/lib/isomorphic/types.d.js +16 -0
  48. package/lib/loader/loaderMain.js +59 -0
  49. package/lib/matchers/expect.js +311 -0
  50. package/lib/matchers/matcherHint.js +44 -0
  51. package/lib/matchers/matchers.js +383 -0
  52. package/lib/matchers/toBeTruthy.js +75 -0
  53. package/lib/matchers/toEqual.js +100 -0
  54. package/lib/matchers/toHaveURL.js +101 -0
  55. package/lib/matchers/toMatchAriaSnapshot.js +159 -0
  56. package/lib/matchers/toMatchSnapshot.js +342 -0
  57. package/lib/matchers/toMatchText.js +99 -0
  58. package/lib/mcp/browser/browserContextFactory.js +329 -0
  59. package/lib/mcp/browser/browserServerBackend.js +89 -0
  60. package/lib/mcp/browser/config.js +421 -0
  61. package/lib/mcp/browser/context.js +244 -0
  62. package/lib/mcp/browser/response.js +284 -0
  63. package/lib/mcp/browser/sessionLog.js +75 -0
  64. package/lib/mcp/browser/tab.js +351 -0
  65. package/lib/mcp/browser/tools/common.js +63 -0
  66. package/lib/mcp/browser/tools/console.js +61 -0
  67. package/lib/mcp/browser/tools/dialogs.js +59 -0
  68. package/lib/mcp/browser/tools/evaluate.js +61 -0
  69. package/lib/mcp/browser/tools/files.js +58 -0
  70. package/lib/mcp/browser/tools/form.js +63 -0
  71. package/lib/mcp/browser/tools/install.js +72 -0
  72. package/lib/mcp/browser/tools/keyboard.js +151 -0
  73. package/lib/mcp/browser/tools/mouse.js +159 -0
  74. package/lib/mcp/browser/tools/navigate.js +136 -0
  75. package/lib/mcp/browser/tools/network.js +78 -0
  76. package/lib/mcp/browser/tools/pdf.js +49 -0
  77. package/lib/mcp/browser/tools/runCode.js +76 -0
  78. package/lib/mcp/browser/tools/screenshot.js +87 -0
  79. package/lib/mcp/browser/tools/snapshot.js +207 -0
  80. package/lib/mcp/browser/tools/tabs.js +67 -0
  81. package/lib/mcp/browser/tools/tool.js +47 -0
  82. package/lib/mcp/browser/tools/tracing.js +74 -0
  83. package/lib/mcp/browser/tools/utils.js +94 -0
  84. package/lib/mcp/browser/tools/verify.js +143 -0
  85. package/lib/mcp/browser/tools/wait.js +63 -0
  86. package/lib/mcp/browser/tools.js +82 -0
  87. package/lib/mcp/browser/watchdog.js +44 -0
  88. package/lib/mcp/config.d.js +16 -0
  89. package/lib/mcp/extension/cdpRelay.js +351 -0
  90. package/lib/mcp/extension/extensionContextFactory.js +76 -0
  91. package/lib/mcp/extension/protocol.js +28 -0
  92. package/lib/mcp/index.js +61 -0
  93. package/lib/mcp/log.js +35 -0
  94. package/lib/mcp/program.js +109 -0
  95. package/lib/mcp/sdk/exports.js +28 -0
  96. package/lib/mcp/sdk/http.js +152 -0
  97. package/lib/mcp/sdk/inProcessTransport.js +71 -0
  98. package/lib/mcp/sdk/server.js +223 -0
  99. package/lib/mcp/sdk/tool.js +47 -0
  100. package/lib/mcp/terminal/SKILL.md +158 -0
  101. package/lib/mcp/terminal/cli.js +7 -0
  102. package/lib/mcp/terminal/command.js +56 -0
  103. package/lib/mcp/terminal/commands.js +519 -0
  104. package/lib/mcp/terminal/daemon.js +131 -0
  105. package/lib/mcp/terminal/help.json +47 -0
  106. package/lib/mcp/terminal/helpGenerator.js +115 -0
  107. package/lib/mcp/terminal/program.js +365 -0
  108. package/lib/mcp/terminal/socketConnection.js +80 -0
  109. package/lib/mcp/test/browserBackend.js +98 -0
  110. package/lib/mcp/test/generatorTools.js +122 -0
  111. package/lib/mcp/test/plannerTools.js +145 -0
  112. package/lib/mcp/test/seed.js +82 -0
  113. package/lib/mcp/test/streams.js +44 -0
  114. package/lib/mcp/test/testBackend.js +99 -0
  115. package/lib/mcp/test/testContext.js +285 -0
  116. package/lib/mcp/test/testTool.js +30 -0
  117. package/lib/mcp/test/testTools.js +108 -0
  118. package/lib/plugins/gitCommitInfoPlugin.js +198 -0
  119. package/lib/plugins/index.js +28 -0
  120. package/lib/plugins/webServerPlugin.js +237 -0
  121. package/lib/program.js +418 -0
  122. package/lib/reporters/base.js +638 -0
  123. package/lib/reporters/blob.js +138 -0
  124. package/lib/reporters/dot.js +99 -0
  125. package/lib/reporters/empty.js +32 -0
  126. package/lib/reporters/github.js +128 -0
  127. package/lib/reporters/html.js +633 -0
  128. package/lib/reporters/internalReporter.js +138 -0
  129. package/lib/reporters/json.js +254 -0
  130. package/lib/reporters/junit.js +232 -0
  131. package/lib/reporters/line.js +131 -0
  132. package/lib/reporters/list.js +253 -0
  133. package/lib/reporters/listModeReporter.js +69 -0
  134. package/lib/reporters/markdown.js +144 -0
  135. package/lib/reporters/merge.js +558 -0
  136. package/lib/reporters/multiplexer.js +112 -0
  137. package/lib/reporters/reporterV2.js +102 -0
  138. package/lib/reporters/teleEmitter.js +317 -0
  139. package/lib/reporters/versions/blobV1.js +16 -0
  140. package/lib/runner/dispatcher.js +530 -0
  141. package/lib/runner/failureTracker.js +72 -0
  142. package/lib/runner/lastRun.js +77 -0
  143. package/lib/runner/loadUtils.js +334 -0
  144. package/lib/runner/loaderHost.js +89 -0
  145. package/lib/runner/processHost.js +180 -0
  146. package/lib/runner/projectUtils.js +241 -0
  147. package/lib/runner/rebase.js +189 -0
  148. package/lib/runner/reporters.js +138 -0
  149. package/lib/runner/sigIntWatcher.js +96 -0
  150. package/lib/runner/storage.js +91 -0
  151. package/lib/runner/taskRunner.js +127 -0
  152. package/lib/runner/tasks.js +410 -0
  153. package/lib/runner/testGroups.js +125 -0
  154. package/lib/runner/testRunner.js +398 -0
  155. package/lib/runner/testServer.js +269 -0
  156. package/lib/runner/uiModeReporter.js +30 -0
  157. package/lib/runner/vcs.js +72 -0
  158. package/lib/runner/watchMode.js +396 -0
  159. package/lib/runner/workerHost.js +104 -0
  160. package/lib/third_party/pirates.js +62 -0
  161. package/lib/third_party/tsconfig-loader.js +103 -0
  162. package/lib/transform/babelBundle.js +46 -0
  163. package/lib/transform/babelBundleImpl.js +461 -0
  164. package/lib/transform/compilationCache.js +274 -0
  165. package/lib/transform/esmLoader.js +103 -0
  166. package/lib/transform/md.js +221 -0
  167. package/lib/transform/portTransport.js +67 -0
  168. package/lib/transform/transform.js +303 -0
  169. package/lib/util.js +400 -0
  170. package/lib/utilsBundle.js +50 -0
  171. package/lib/utilsBundleImpl.js +103 -0
  172. package/lib/worker/fixtureRunner.js +262 -0
  173. package/lib/worker/testInfo.js +536 -0
  174. package/lib/worker/testTracing.js +345 -0
  175. package/lib/worker/timeoutManager.js +174 -0
  176. package/lib/worker/util.js +31 -0
  177. package/lib/worker/workerMain.js +530 -0
  178. package/package.json +73 -0
  179. package/test.d.ts +18 -0
  180. package/test.js +24 -0
  181. package/test.mjs +34 -0
  182. package/types/test.d.ts +10287 -0
  183. package/types/testReporter.d.ts +822 -0
@@ -0,0 +1,103 @@
1
+ "use strict";var gf=Object.create;var Or=Object.defineProperty;var Df=Object.getOwnPropertyDescriptor;var yf=Object.getOwnPropertyNames;var Ef=Object.getPrototypeOf,wf=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qr=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0})},Pu=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yf(t))!wf.call(e,n)&&n!==r&&Or(e,n,{get:()=>t[n],enumerable:!(i=Df(t,n))||i.enumerable});return e};var pt=(e,t,r)=>(r=e!=null?gf(Ef(e)):{},Pu(t||!e||!e.__esModule?Or(r,"default",{value:e,enumerable:!0}):r,e)),bf=e=>Pu(Or({},"__esModule",{value:!0}),e);var Mu=S((I1,Nr)=>{Nr.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;Nr.exports.ID_Start=/[\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]/;Nr.exports.ID_Continue=/[\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]/});var Pi=S((O1,Hu)=>{var Ni=Mu();Hu.exports={isSpaceSeparator(e){return typeof e=="string"&&Ni.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Ni.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Ni.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}}});var Gu=S((q1,Vu)=>{var Ee=Pi(),Hi,Le,ut,Mr,dt,Ke,we,ji,or;Vu.exports=function(t,r){Hi=String(t),Le="start",ut=[],Mr=0,dt=1,Ke=0,we=void 0,ji=void 0,or=void 0;do we=Cf(),Ff[Le]();while(we.type!=="eof");return typeof r=="function"?zi({"":or},"",r):or};function zi(e,t,r){let i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let s=String(n),u=zi(i,s,r);u===void 0?delete i[s]:Object.defineProperty(i,s,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let s=zi(i,n,r);s===void 0?delete i[n]:Object.defineProperty(i,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,i)}var Z,K,ur,st,X;function Cf(){for(Z="default",K="",ur=!1,st=1;;){X=ot();let e=$u[Z]();if(e)return e}}function ot(){if(Hi[Mr])return String.fromCodePoint(Hi.codePointAt(Mr))}function F(){let e=ot();return e===`
2
+ `?(dt++,Ke=0):e?Ke+=e.length:Ke++,e&&(Mr+=e.length),e}var $u={default(){switch(X){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
3
+ `:case"\r":case"\u2028":case"\u2029":F();return;case"/":F(),Z="comment";return;case void 0:return F(),oe("eof")}if(Ee.isSpaceSeparator(X)){F();return}return $u[Le]()},comment(){switch(X){case"*":F(),Z="multiLineComment";return;case"/":F(),Z="singleLineComment";return}throw ae(F())},multiLineComment(){switch(X){case"*":F(),Z="multiLineCommentAsterisk";return;case void 0:throw ae(F())}F()},multiLineCommentAsterisk(){switch(X){case"*":F();return;case"/":F(),Z="default";return;case void 0:throw ae(F())}F(),Z="multiLineComment"},singleLineComment(){switch(X){case`
4
+ `:case"\r":case"\u2028":case"\u2029":F(),Z="default";return;case void 0:return F(),oe("eof")}F()},value(){switch(X){case"{":case"[":return oe("punctuator",F());case"n":return F(),_t("ull"),oe("null",null);case"t":return F(),_t("rue"),oe("boolean",!0);case"f":return F(),_t("alse"),oe("boolean",!1);case"-":case"+":F()==="-"&&(st=-1),Z="sign";return;case".":K=F(),Z="decimalPointLeading";return;case"0":K=F(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=F(),Z="decimalInteger";return;case"I":return F(),_t("nfinity"),oe("numeric",1/0);case"N":return F(),_t("aN"),oe("numeric",NaN);case'"':case"'":ur=F()==='"',K="",Z="string";return}throw ae(F())},identifierNameStartEscape(){if(X!=="u")throw ae(F());F();let e=$i();switch(e){case"$":case"_":break;default:if(!Ee.isIdStartChar(e))throw zu();break}K+=e,Z="identifierName"},identifierName(){switch(X){case"$":case"_":case"\u200C":case"\u200D":K+=F();return;case"\\":F(),Z="identifierNameEscape";return}if(Ee.isIdContinueChar(X)){K+=F();return}return oe("identifier",K)},identifierNameEscape(){if(X!=="u")throw ae(F());F();let e=$i();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ee.isIdContinueChar(e))throw zu();break}K+=e,Z="identifierName"},sign(){switch(X){case".":K=F(),Z="decimalPointLeading";return;case"0":K=F(),Z="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":K=F(),Z="decimalInteger";return;case"I":return F(),_t("nfinity"),oe("numeric",st*(1/0));case"N":return F(),_t("aN"),oe("numeric",NaN)}throw ae(F())},zero(){switch(X){case".":K+=F(),Z="decimalPoint";return;case"e":case"E":K+=F(),Z="decimalExponent";return;case"x":case"X":K+=F(),Z="hexadecimal";return}return oe("numeric",st*0)},decimalInteger(){switch(X){case".":K+=F(),Z="decimalPoint";return;case"e":case"E":K+=F(),Z="decimalExponent";return}if(Ee.isDigit(X)){K+=F();return}return oe("numeric",st*Number(K))},decimalPointLeading(){if(Ee.isDigit(X)){K+=F(),Z="decimalFraction";return}throw ae(F())},decimalPoint(){switch(X){case"e":case"E":K+=F(),Z="decimalExponent";return}if(Ee.isDigit(X)){K+=F(),Z="decimalFraction";return}return oe("numeric",st*Number(K))},decimalFraction(){switch(X){case"e":case"E":K+=F(),Z="decimalExponent";return}if(Ee.isDigit(X)){K+=F();return}return oe("numeric",st*Number(K))},decimalExponent(){switch(X){case"+":case"-":K+=F(),Z="decimalExponentSign";return}if(Ee.isDigit(X)){K+=F(),Z="decimalExponentInteger";return}throw ae(F())},decimalExponentSign(){if(Ee.isDigit(X)){K+=F(),Z="decimalExponentInteger";return}throw ae(F())},decimalExponentInteger(){if(Ee.isDigit(X)){K+=F();return}return oe("numeric",st*Number(K))},hexadecimal(){if(Ee.isHexDigit(X)){K+=F(),Z="hexadecimalInteger";return}throw ae(F())},hexadecimalInteger(){if(Ee.isHexDigit(X)){K+=F();return}return oe("numeric",st*Number(K))},string(){switch(X){case"\\":F(),K+=Af();return;case'"':if(ur)return F(),oe("string",K);K+=F();return;case"'":if(!ur)return F(),oe("string",K);K+=F();return;case`
5
+ `:case"\r":throw ae(F());case"\u2028":case"\u2029":_f(X);break;case void 0:throw ae(F())}K+=F()},start(){switch(X){case"{":case"[":return oe("punctuator",F())}Z="value"},beforePropertyName(){switch(X){case"$":case"_":K=F(),Z="identifierName";return;case"\\":F(),Z="identifierNameStartEscape";return;case"}":return oe("punctuator",F());case'"':case"'":ur=F()==='"',Z="string";return}if(Ee.isIdStartChar(X)){K+=F(),Z="identifierName";return}throw ae(F())},afterPropertyName(){if(X===":")return oe("punctuator",F());throw ae(F())},beforePropertyValue(){Z="value"},afterPropertyValue(){switch(X){case",":case"}":return oe("punctuator",F())}throw ae(F())},beforeArrayValue(){if(X==="]")return oe("punctuator",F());Z="value"},afterArrayValue(){switch(X){case",":case"]":return oe("punctuator",F())}throw ae(F())},end(){throw ae(F())}};function oe(e,t){return{type:e,value:t,line:dt,column:Ke}}function _t(e){for(let t of e){if(ot()!==t)throw ae(F());F()}}function Af(){switch(ot()){case"b":return F(),"\b";case"f":return F(),"\f";case"n":return F(),`
6
+ `;case"r":return F(),"\r";case"t":return F()," ";case"v":return F(),"\v";case"0":if(F(),Ee.isDigit(ot()))throw ae(F());return"\0";case"x":return F(),xf();case"u":return F(),$i();case`
7
+ `:case"\u2028":case"\u2029":return F(),"";case"\r":return F(),ot()===`
8
+ `&&F(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ae(F());case void 0:throw ae(F())}return F()}function xf(){let e="",t=ot();if(!Ee.isHexDigit(t)||(e+=F(),t=ot(),!Ee.isHexDigit(t)))throw ae(F());return e+=F(),String.fromCodePoint(parseInt(e,16))}function $i(){let e="",t=4;for(;t-- >0;){let r=ot();if(!Ee.isHexDigit(r))throw ae(F());e+=F()}return String.fromCodePoint(parseInt(e,16))}var Ff={start(){if(we.type==="eof")throw vt();Mi()},beforePropertyName(){switch(we.type){case"identifier":case"string":ji=we.value,Le="afterPropertyName";return;case"punctuator":Pr();return;case"eof":throw vt()}},afterPropertyName(){if(we.type==="eof")throw vt();Le="beforePropertyValue"},beforePropertyValue(){if(we.type==="eof")throw vt();Mi()},beforeArrayValue(){if(we.type==="eof")throw vt();if(we.type==="punctuator"&&we.value==="]"){Pr();return}Mi()},afterPropertyValue(){if(we.type==="eof")throw vt();switch(we.value){case",":Le="beforePropertyName";return;case"}":Pr()}},afterArrayValue(){if(we.type==="eof")throw vt();switch(we.value){case",":Le="beforeArrayValue";return;case"]":Pr()}},end(){}};function Mi(){let e;switch(we.type){case"punctuator":switch(we.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=we.value;break}if(or===void 0)or=e;else{let t=ut[ut.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,ji,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ut.push(e),Array.isArray(e)?Le="beforeArrayValue":Le="beforePropertyName";else{let t=ut[ut.length-1];t==null?Le="end":Array.isArray(t)?Le="afterArrayValue":Le="afterPropertyValue"}}function Pr(){ut.pop();let e=ut[ut.length-1];e==null?Le="end":Array.isArray(e)?Le="afterArrayValue":Le="afterPropertyValue"}function ae(e){return Hr(e===void 0?`JSON5: invalid end of input at ${dt}:${Ke}`:`JSON5: invalid character '${ju(e)}' at ${dt}:${Ke}`)}function vt(){return Hr(`JSON5: invalid end of input at ${dt}:${Ke}`)}function zu(){return Ke-=5,Hr(`JSON5: invalid identifier character at ${dt}:${Ke}`)}function _f(e){console.warn(`JSON5: '${ju(e)}' in strings is not valid ECMAScript; consider escaping`)}function ju(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function Hr(e){let t=new SyntaxError(e);return t.lineNumber=dt,t.columnNumber=Ke,t}});var Wu=S((N1,Uu)=>{var Vi=Pi();Uu.exports=function(t,r,i){let n=[],s="",u,o,a="",l;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(i=r.space,l=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){u=[];for(let D of r){let v;typeof D=="string"?v=D:(typeof D=="number"||D instanceof String||D instanceof Number)&&(v=String(D)),v!==void 0&&u.indexOf(v)<0&&u.push(v)}}return i instanceof Number?i=Number(i):i instanceof String&&(i=String(i)),typeof i=="number"?i>0&&(i=Math.min(10,Math.floor(i)),a=" ".substr(0,i)):typeof i=="string"&&(a=i.substr(0,10)),c("",{"":t});function c(D,v){let g=v[D];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(D):typeof g.toJSON=="function"&&(g=g.toJSON(D))),o&&(g=o.call(v,D,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof g=="string")return h(g,!1);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?y(g):f(g)}function h(D){let v={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},_="";for(let B=0;B<D.length;B++){let O=D[B];switch(O){case"'":case'"':v[O]++,_+=O;continue;case"\0":if(Vi.isDigit(D[B+1])){_+="\\x00";continue}}if(g[O]){_+=g[O];continue}if(O<" "){let C=O.charCodeAt(0).toString(16);_+="\\x"+("00"+C).substring(C.length);continue}_+=O}let w=l||Object.keys(v).reduce((B,O)=>v[B]<v[O]?B:O);return _=_.replace(new RegExp(w,"g"),g[w]),w+_+w}function f(D){if(n.indexOf(D)>=0)throw TypeError("Converting circular structure to JSON5");n.push(D);let v=s;s=s+a;let g=u||Object.keys(D),_=[];for(let B of g){let O=c(B,D);if(O!==void 0){let C=p(B)+":";a!==""&&(C+=" "),C+=O,_.push(C)}}let w;if(_.length===0)w="{}";else{let B;if(a==="")B=_.join(","),w="{"+B+"}";else{let O=`,
9
+ `+s;B=_.join(O),w=`{
10
+ `+s+B+`,
11
+ `+v+"}"}}return n.pop(),s=v,w}function p(D){if(D.length===0)return h(D,!0);let v=String.fromCodePoint(D.codePointAt(0));if(!Vi.isIdStartChar(v))return h(D,!0);for(let g=v.length;g<D.length;g++)if(!Vi.isIdContinueChar(String.fromCodePoint(D.codePointAt(g))))return h(D,!0);return D}function y(D){if(n.indexOf(D)>=0)throw TypeError("Converting circular structure to JSON5");n.push(D);let v=s;s=s+a;let g=[];for(let w=0;w<D.length;w++){let B=c(String(w),D);g.push(B!==void 0?B:"null")}let _;if(g.length===0)_="[]";else if(a==="")_="["+g.join(",")+"]";else{let w=`,
12
+ `+s,B=g.join(w);_=`[
13
+ `+s+B+`,
14
+ `+v+"]"}return n.pop(),s=v,_}}});var Yu=S((P1,Ku)=>{var vf=Gu(),Sf=Wu(),kf={parse:vf,stringify:Sf};Ku.exports=kf});var Zu=S(Gi=>{var Qu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Gi.encode=function(e){if(0<=e&&e<Qu.length)return Qu[e];throw new TypeError("Must be between 0 and 63: "+e)};Gi.decode=function(e){var t=65,r=90,i=97,n=122,s=48,u=57,o=43,a=47,l=26,c=52;return t<=e&&e<=r?e-t:i<=e&&e<=n?e-i+l:s<=e&&e<=u?e-s+c:e==o?62:e==a?63:-1}});var Ki=S(Wi=>{var Xu=Zu(),Ui=5,Ju=1<<Ui,eo=Ju-1,to=Ju;function Bf(e){return e<0?(-e<<1)+1:(e<<1)+0}function Rf(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Wi.encode=function(t){var r="",i,n=Bf(t);do i=n&eo,n>>>=Ui,n>0&&(i|=to),r+=Xu.encode(i);while(n>0);return r};Wi.decode=function(t,r,i){var n=t.length,s=0,u=0,o,a;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(a=Xu.decode(t.charCodeAt(r++)),a===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(a&to),a&=eo,s=s+(a<<u),u+=Ui}while(o);i.value=Rf(s),i.rest=r}});var Gt=S(Se=>{function Lf(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Se.getArg=Lf;var ro=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Tf=/^data:.+\,.+$/;function ar(e){var t=e.match(ro);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Se.urlParse=ar;function jt(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}Se.urlGenerate=jt;function Yi(e){var t=e,r=ar(e);if(r){if(!r.path)return e;t=r.path}for(var i=Se.isAbsolute(t),n=t.split(/\/+/),s,u=0,o=n.length-1;o>=0;o--)s=n[o],s==="."?n.splice(o,1):s===".."?u++:u>0&&(s===""?(n.splice(o+1,u),u=0):(n.splice(o,2),u--));return t=n.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,jt(r)):t}Se.normalize=Yi;function io(e,t){e===""&&(e="."),t===""&&(t=".");var r=ar(t),i=ar(e);if(i&&(e=i.path||"/"),r&&!r.scheme)return i&&(r.scheme=i.scheme),jt(r);if(r||t.match(Tf))return t;if(i&&!i.host&&!i.path)return i.host=t,jt(i);var n=t.charAt(0)==="/"?t:Yi(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=n,jt(i)):n}Se.join=io;Se.isAbsolute=function(e){return e.charAt(0)==="/"||ro.test(e)};function If(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var i=e.lastIndexOf("/");if(i<0||(e=e.slice(0,i),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}Se.relative=If;var no=(function(){var e=Object.create(null);return!("__proto__"in e)})();function so(e){return e}function Of(e){return uo(e)?"$"+e:e}Se.toSetString=no?so:Of;function qf(e){return uo(e)?e.slice(1):e}Se.fromSetString=no?so:qf;function uo(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function Nf(e,t,r){var i=Vt(e.source,t.source);return i!==0||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0||r)||(i=e.generatedColumn-t.generatedColumn,i!==0)||(i=e.generatedLine-t.generatedLine,i!==0)?i:Vt(e.name,t.name)}Se.compareByOriginalPositions=Nf;function Pf(e,t,r){var i=e.generatedLine-t.generatedLine;return i!==0||(i=e.generatedColumn-t.generatedColumn,i!==0||r)||(i=Vt(e.source,t.source),i!==0)||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0)?i:Vt(e.name,t.name)}Se.compareByGeneratedPositionsDeflated=Pf;function Vt(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Mf(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Vt(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Vt(e.name,t.name)}Se.compareByGeneratedPositionsInflated=Mf;function Hf(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Se.parseSourceMapInput=Hf;function zf(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var i=ar(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var n=i.path.lastIndexOf("/");n>=0&&(i.path=i.path.substring(0,n+1))}t=io(jt(i),t)}return Yi(t)}Se.computeSourceURL=zf});var Xi=S(oo=>{var Qi=Gt(),Zi=Object.prototype.hasOwnProperty,St=typeof Map!="undefined";function at(){this._array=[],this._set=St?new Map:Object.create(null)}at.fromArray=function(t,r){for(var i=new at,n=0,s=t.length;n<s;n++)i.add(t[n],r);return i};at.prototype.size=function(){return St?this._set.size:Object.getOwnPropertyNames(this._set).length};at.prototype.add=function(t,r){var i=St?t:Qi.toSetString(t),n=St?this.has(t):Zi.call(this._set,i),s=this._array.length;(!n||r)&&this._array.push(t),n||(St?this._set.set(t,s):this._set[i]=s)};at.prototype.has=function(t){if(St)return this._set.has(t);var r=Qi.toSetString(t);return Zi.call(this._set,r)};at.prototype.indexOf=function(t){if(St){var r=this._set.get(t);if(r>=0)return r}else{var i=Qi.toSetString(t);if(Zi.call(this._set,i))return this._set[i]}throw new Error('"'+t+'" is not in the set.')};at.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};at.prototype.toArray=function(){return this._array.slice()};oo.ArraySet=at});var co=S(lo=>{var ao=Gt();function $f(e,t){var r=e.generatedLine,i=t.generatedLine,n=e.generatedColumn,s=t.generatedColumn;return i>r||i==r&&s>=n||ao.compareByGeneratedPositionsInflated(e,t)<=0}function zr(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}zr.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};zr.prototype.add=function(t){$f(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};zr.prototype.toArray=function(){return this._sorted||(this._array.sort(ao.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};lo.MappingList=zr});var Ji=S(ho=>{var lr=Ki(),me=Gt(),$r=Xi().ArraySet,jf=co().MappingList;function je(e){e||(e={}),this._file=me.getArg(e,"file",null),this._sourceRoot=me.getArg(e,"sourceRoot",null),this._skipValidation=me.getArg(e,"skipValidation",!1),this._sources=new $r,this._names=new $r,this._mappings=new jf,this._sourcesContents=null}je.prototype._version=3;je.fromSourceMap=function(t){var r=t.sourceRoot,i=new je({file:t.file,sourceRoot:r});return t.eachMapping(function(n){var s={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(s.source=n.source,r!=null&&(s.source=me.relative(r,s.source)),s.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(s.name=n.name)),i.addMapping(s)}),t.sources.forEach(function(n){var s=n;r!==null&&(s=me.relative(r,n)),i._sources.has(s)||i._sources.add(s);var u=t.sourceContentFor(n);u!=null&&i.setSourceContent(n,u)}),i};je.prototype.addMapping=function(t){var r=me.getArg(t,"generated"),i=me.getArg(t,"original",null),n=me.getArg(t,"source",null),s=me.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,i,n,s),n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:n,name:s})};je.prototype.setSourceContent=function(t,r){var i=t;this._sourceRoot!=null&&(i=me.relative(this._sourceRoot,i)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[me.toSetString(i)]=r):this._sourcesContents&&(delete this._sourcesContents[me.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};je.prototype.applySourceMap=function(t,r,i){var n=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=t.file}var s=this._sourceRoot;s!=null&&(n=me.relative(s,n));var u=new $r,o=new $r;this._mappings.unsortedForEach(function(a){if(a.source===n&&a.originalLine!=null){var l=t.originalPositionFor({line:a.originalLine,column:a.originalColumn});l.source!=null&&(a.source=l.source,i!=null&&(a.source=me.join(i,a.source)),s!=null&&(a.source=me.relative(s,a.source)),a.originalLine=l.line,a.originalColumn=l.column,l.name!=null&&(a.name=l.name))}var c=a.source;c!=null&&!u.has(c)&&u.add(c);var h=a.name;h!=null&&!o.has(h)&&o.add(h)},this),this._sources=u,this._names=o,t.sources.forEach(function(a){var l=t.sourceContentFor(a);l!=null&&(i!=null&&(a=me.join(i,a)),s!=null&&(a=me.relative(s,a)),this.setSourceContent(a,l))},this)};je.prototype._validateMapping=function(t,r,i,n){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!i&&!n)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&i)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:i,original:r,name:n}))}};je.prototype._serializeMappings=function(){for(var t=0,r=1,i=0,n=0,s=0,u=0,o="",a,l,c,h,f=this._mappings.toArray(),p=0,y=f.length;p<y;p++){if(l=f[p],a="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)a+=";",r++;else if(p>0){if(!me.compareByGeneratedPositionsInflated(l,f[p-1]))continue;a+=","}a+=lr.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(h=this._sources.indexOf(l.source),a+=lr.encode(h-u),u=h,a+=lr.encode(l.originalLine-1-n),n=l.originalLine-1,a+=lr.encode(l.originalColumn-i),i=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),a+=lr.encode(c-s),s=c)),o+=a}return o};je.prototype._generateSourcesContent=function(t,r){return t.map(function(i){if(!this._sourcesContents)return null;r!=null&&(i=me.relative(r,i));var n=me.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};je.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};je.prototype.toString=function(){return JSON.stringify(this.toJSON())};ho.SourceMapGenerator=je});var fo=S(kt=>{kt.GREATEST_LOWER_BOUND=1;kt.LEAST_UPPER_BOUND=2;function en(e,t,r,i,n,s){var u=Math.floor((t-e)/2)+e,o=n(r,i[u],!0);return o===0?u:o>0?t-u>1?en(u,t,r,i,n,s):s==kt.LEAST_UPPER_BOUND?t<i.length?t:-1:u:u-e>1?en(e,u,r,i,n,s):s==kt.LEAST_UPPER_BOUND?u:e<0?-1:e}kt.search=function(t,r,i,n){if(r.length===0)return-1;var s=en(-1,r.length,t,r,i,n||kt.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&i(r[s],r[s-1],!0)===0;)--s;return s}});var mo=S(po=>{function tn(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function Vf(e,t){return Math.round(e+Math.random()*(t-e))}function rn(e,t,r,i){if(r<i){var n=Vf(r,i),s=r-1;tn(e,n,i);for(var u=e[i],o=r;o<i;o++)t(e[o],u)<=0&&(s+=1,tn(e,s,o));tn(e,s+1,o);var a=s+1;rn(e,t,r,a-1),rn(e,t,a+1,i)}}po.quickSort=function(e,t){rn(e,t,0,e.length-1)}});var Do=S(jr=>{var P=Gt(),nn=fo(),Ut=Xi().ArraySet,Gf=Ki(),cr=mo().quickSort;function le(e,t){var r=e;return typeof e=="string"&&(r=P.parseSourceMapInput(e)),r.sections!=null?new Ye(r,t):new Fe(r,t)}le.fromSourceMap=function(e,t){return Fe.fromSourceMap(e,t)};le.prototype._version=3;le.prototype.__generatedMappings=null;Object.defineProperty(le.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});le.prototype.__originalMappings=null;Object.defineProperty(le.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});le.prototype._charIsMappingSeparator=function(t,r){var i=t.charAt(r);return i===";"||i===","};le.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};le.GENERATED_ORDER=1;le.ORIGINAL_ORDER=2;le.GREATEST_LOWER_BOUND=1;le.LEAST_UPPER_BOUND=2;le.prototype.eachMapping=function(t,r,i){var n=r||null,s=i||le.GENERATED_ORDER,u;switch(s){case le.GENERATED_ORDER:u=this._generatedMappings;break;case le.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;u.map(function(a){var l=a.source===null?null:this._sources.at(a.source);return l=P.computeSourceURL(o,l,this._sourceMapURL),{source:l,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name===null?null:this._names.at(a.name)}},this).forEach(t,n)};le.prototype.allGeneratedPositionsFor=function(t){var r=P.getArg(t,"line"),i={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var n=[],s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,nn.LEAST_UPPER_BOUND);if(s>=0){var u=this._originalMappings[s];if(t.column===void 0)for(var o=u.originalLine;u&&u.originalLine===o;)n.push({line:P.getArg(u,"generatedLine",null),column:P.getArg(u,"generatedColumn",null),lastColumn:P.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++s];else for(var a=u.originalColumn;u&&u.originalLine===r&&u.originalColumn==a;)n.push({line:P.getArg(u,"generatedLine",null),column:P.getArg(u,"generatedColumn",null),lastColumn:P.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++s]}return n};jr.SourceMapConsumer=le;function Fe(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var i=P.getArg(r,"version"),n=P.getArg(r,"sources"),s=P.getArg(r,"names",[]),u=P.getArg(r,"sourceRoot",null),o=P.getArg(r,"sourcesContent",null),a=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);u&&(u=P.normalize(u)),n=n.map(String).map(P.normalize).map(function(c){return u&&P.isAbsolute(u)&&P.isAbsolute(c)?P.relative(u,c):c}),this._names=Ut.fromArray(s.map(String),!0),this._sources=Ut.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(c){return P.computeSourceURL(u,c,t)}),this.sourceRoot=u,this.sourcesContent=o,this._mappings=a,this._sourceMapURL=t,this.file=l}Fe.prototype=Object.create(le.prototype);Fe.prototype.consumer=le;Fe.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=P.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};Fe.fromSourceMap=function(t,r){var i=Object.create(Fe.prototype),n=i._names=Ut.fromArray(t._names.toArray(),!0),s=i._sources=Ut.fromArray(t._sources.toArray(),!0);i.sourceRoot=t._sourceRoot,i.sourcesContent=t._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=t._file,i._sourceMapURL=r,i._absoluteSources=i._sources.toArray().map(function(p){return P.computeSourceURL(i.sourceRoot,p,r)});for(var u=t._mappings.toArray().slice(),o=i.__generatedMappings=[],a=i.__originalMappings=[],l=0,c=u.length;l<c;l++){var h=u[l],f=new go;f.generatedLine=h.generatedLine,f.generatedColumn=h.generatedColumn,h.source&&(f.source=s.indexOf(h.source),f.originalLine=h.originalLine,f.originalColumn=h.originalColumn,h.name&&(f.name=n.indexOf(h.name)),a.push(f)),o.push(f)}return cr(i.__originalMappings,P.compareByOriginalPositions),i};Fe.prototype._version=3;Object.defineProperty(Fe.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function go(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Fe.prototype._parseMappings=function(t,r){for(var i=1,n=0,s=0,u=0,o=0,a=0,l=t.length,c=0,h={},f={},p=[],y=[],D,v,g,_,w;c<l;)if(t.charAt(c)===";")i++,c++,n=0;else if(t.charAt(c)===",")c++;else{for(D=new go,D.generatedLine=i,_=c;_<l&&!this._charIsMappingSeparator(t,_);_++);if(v=t.slice(c,_),g=h[v],g)c+=v.length;else{for(g=[];c<_;)Gf.decode(t,c,f),w=f.value,c=f.rest,g.push(w);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");h[v]=g}D.generatedColumn=n+g[0],n=D.generatedColumn,g.length>1&&(D.source=o+g[1],o+=g[1],D.originalLine=s+g[2],s=D.originalLine,D.originalLine+=1,D.originalColumn=u+g[3],u=D.originalColumn,g.length>4&&(D.name=a+g[4],a+=g[4])),y.push(D),typeof D.originalLine=="number"&&p.push(D)}cr(y,P.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,cr(p,P.compareByOriginalPositions),this.__originalMappings=p};Fe.prototype._findMapping=function(t,r,i,n,s,u){if(t[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[i]);if(t[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[n]);return nn.search(t,r,s,u)};Fe.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var i=this._generatedMappings[t+1];if(r.generatedLine===i.generatedLine){r.lastGeneratedColumn=i.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};Fe.prototype.originalPositionFor=function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},i=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",le.GREATEST_LOWER_BOUND));if(i>=0){var n=this._generatedMappings[i];if(n.generatedLine===r.generatedLine){var s=P.getArg(n,"source",null);s!==null&&(s=this._sources.at(s),s=P.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var u=P.getArg(n,"name",null);return u!==null&&(u=this._names.at(u)),{source:s,line:P.getArg(n,"originalLine",null),column:P.getArg(n,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};Fe.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Fe.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var i=this._findSourceIndex(t);if(i>=0)return this.sourcesContent[i];var n=t;this.sourceRoot!=null&&(n=P.relative(this.sourceRoot,n));var s;if(this.sourceRoot!=null&&(s=P.urlParse(this.sourceRoot))){var u=n.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!s.path||s.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(r)return null;throw new Error('"'+n+'" is not in the SourceMap.')};Fe.prototype.generatedPositionFor=function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var i={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},n=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",le.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===i.source)return{line:P.getArg(s,"generatedLine",null),column:P.getArg(s,"generatedColumn",null),lastColumn:P.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};jr.BasicSourceMapConsumer=Fe;function Ye(e,t){var r=e;typeof e=="string"&&(r=P.parseSourceMapInput(e));var i=P.getArg(r,"version"),n=P.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Ut,this._names=new Ut;var s={line:-1,column:0};this._sections=n.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var o=P.getArg(u,"offset"),a=P.getArg(o,"line"),l=P.getArg(o,"column");if(a<s.line||a===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=o,{generatedOffset:{generatedLine:a+1,generatedColumn:l+1},consumer:new le(P.getArg(u,"map"),t)}})}Ye.prototype=Object.create(le.prototype);Ye.prototype.constructor=le;Ye.prototype._version=3;Object.defineProperty(Ye.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Ye.prototype.originalPositionFor=function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},i=nn.search(r,this._sections,function(s,u){var o=s.generatedLine-u.generatedOffset.generatedLine;return o||s.generatedColumn-u.generatedOffset.generatedColumn}),n=this._sections[i];return n?n.consumer.originalPositionFor({line:r.generatedLine-(n.generatedOffset.generatedLine-1),column:r.generatedColumn-(n.generatedOffset.generatedLine===r.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Ye.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Ye.prototype.sourceContentFor=function(t,r){for(var i=0;i<this._sections.length;i++){var n=this._sections[i],s=n.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Ye.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r];if(i.consumer._findSourceIndex(P.getArg(t,"source"))!==-1){var n=i.consumer.generatedPositionFor(t);if(n){var s={line:n.line+(i.generatedOffset.generatedLine-1),column:n.column+(i.generatedOffset.generatedLine===n.line?i.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Ye.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var n=this._sections[i],s=n.consumer._generatedMappings,u=0;u<s.length;u++){var o=s[u],a=n.consumer._sources.at(o.source);a=P.computeSourceURL(n.consumer.sourceRoot,a,this._sourceMapURL),this._sources.add(a),a=this._sources.indexOf(a);var l=null;o.name&&(l=n.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var c={source:a,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}cr(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),cr(this.__originalMappings,P.compareByOriginalPositions)};jr.IndexedSourceMapConsumer=Ye});var Eo=S(yo=>{var Uf=Ji().SourceMapGenerator,Vr=Gt(),Wf=/(\r?\n)/,Kf=10,Wt="$$$isSourceNode$$$";function Me(e,t,r,i,n){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=r==null?null:r,this.name=n==null?null:n,this[Wt]=!0,i!=null&&this.add(i)}Me.fromStringWithSourceMap=function(t,r,i){var n=new Me,s=t.split(Wf),u=0,o=function(){var f=y(),p=y()||"";return f+p;function y(){return u<s.length?s[u++]:void 0}},a=1,l=0,c=null;return r.eachMapping(function(f){if(c!==null)if(a<f.generatedLine)h(c,o()),a++,l=0;else{var p=s[u]||"",y=p.substr(0,f.generatedColumn-l);s[u]=p.substr(f.generatedColumn-l),l=f.generatedColumn,h(c,y),c=f;return}for(;a<f.generatedLine;)n.add(o()),a++;if(l<f.generatedColumn){var p=s[u]||"";n.add(p.substr(0,f.generatedColumn)),s[u]=p.substr(f.generatedColumn),l=f.generatedColumn}c=f},this),u<s.length&&(c&&h(c,o()),n.add(s.splice(u).join(""))),r.sources.forEach(function(f){var p=r.sourceContentFor(f);p!=null&&(i!=null&&(f=Vr.join(i,f)),n.setSourceContent(f,p))}),n;function h(f,p){if(f===null||f.source===void 0)n.add(p);else{var y=i?Vr.join(i,f.source):f.source;n.add(new Me(f.originalLine,f.originalColumn,y,p,f.name))}}};Me.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Wt]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Me.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Wt]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Me.prototype.walk=function(t){for(var r,i=0,n=this.children.length;i<n;i++)r=this.children[i],r[Wt]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Me.prototype.join=function(t){var r,i,n=this.children.length;if(n>0){for(r=[],i=0;i<n-1;i++)r.push(this.children[i]),r.push(t);r.push(this.children[i]),this.children=r}return this};Me.prototype.replaceRight=function(t,r){var i=this.children[this.children.length-1];return i[Wt]?i.replaceRight(t,r):typeof i=="string"?this.children[this.children.length-1]=i.replace(t,r):this.children.push("".replace(t,r)),this};Me.prototype.setSourceContent=function(t,r){this.sourceContents[Vr.toSetString(t)]=r};Me.prototype.walkSourceContents=function(t){for(var r=0,i=this.children.length;r<i;r++)this.children[r][Wt]&&this.children[r].walkSourceContents(t);for(var n=Object.keys(this.sourceContents),r=0,i=n.length;r<i;r++)t(Vr.fromSetString(n[r]),this.sourceContents[n[r]])};Me.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Me.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},i=new Uf(t),n=!1,s=null,u=null,o=null,a=null;return this.walk(function(l,c){r.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((s!==c.source||u!==c.line||o!==c.column||a!==c.name)&&i.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name}),s=c.source,u=c.line,o=c.column,a=c.name,n=!0):n&&(i.addMapping({generated:{line:r.line,column:r.column}}),s=null,n=!1);for(var h=0,f=l.length;h<f;h++)l.charCodeAt(h)===Kf?(r.line++,r.column=0,h+1===f?(s=null,n=!1):n&&i.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})):r.column++}),this.walkSourceContents(function(l,c){i.setSourceContent(l,c)}),{code:r.code,map:i}};yo.SourceNode=Me});var wo=S(Gr=>{Gr.SourceMapGenerator=Ji().SourceMapGenerator;Gr.SourceMapConsumer=Do().SourceMapConsumer;Gr.SourceNode=Eo().SourceNode});var Co=S((Q1,bo)=>{var Yf=Object.prototype.toString,sn=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Qf(e){return Yf.call(e).slice(8,-1)==="ArrayBuffer"}function Zf(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=i;else if(r>>>=0,r>i)throw new RangeError("'length' is out of bounds");return sn?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function Xf(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return sn?Buffer.from(e,t):new Buffer(e,t)}function Jf(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return Qf(e)?Zf(e,t,r):typeof e=="string"?Xf(e,t):sn?Buffer.from(e):new Buffer(e)}bo.exports=Jf});var Bo=S((Rt,ln)=>{var ep=wo().SourceMapConsumer,un=require("path"),et;try{et=require("fs"),(!et.existsSync||!et.readFileSync)&&(et=null)}catch{}var tp=Co();function Ao(e,t){return e.require(t)}var xo=!1,Fo=!1,on=!1,hr="auto",Bt={},fr={},rp=/^data:application\/json[^,]+base64,/,mt=[],gt=[];function cn(){return hr==="browser"?!0:hr==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function ip(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function np(){return typeof process=="object"&&process!==null?process.version:""}function sp(){if(typeof process=="object"&&process!==null)return process.stderr}function up(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Ur(e){return function(t){for(var r=0;r<e.length;r++){var i=e[r](t);if(i)return i}return null}}var hn=Ur(mt);mt.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(i,n){return n?"":"/"})),e in Bt)return Bt[e];var t="";try{if(et)et.existsSync(e)&&(t=et.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),r.readyState===4&&r.status===200&&(t=r.responseText)}}catch{}return Bt[e]=t});function an(e,t){if(!e)return t;var r=un.dirname(e),i=/^\w+:\/\/[^\/]*/.exec(r),n=i?i[0]:"",s=r.slice(n.length);return n&&/^\/\w\:/.test(s)?(n+="/",n+un.resolve(r.slice(n.length),t).replace(/\\/g,"/")):n+un.resolve(r.slice(n.length),t)}function op(e){var t;if(cn())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=r.readyState===4?r.responseText:null;var i=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(i)return i}catch{}t=hn(e);for(var n=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,u;u=n.exec(t);)s=u;return s?s[1]:null}var fn=Ur(gt);gt.push(function(e){var t=op(e);if(!t)return null;var r;if(rp.test(t)){var i=t.slice(t.indexOf(",")+1);r=tp(i,"base64").toString(),t=e}else t=an(e,t),r=hn(t);return r?{url:t,map:r}:null});function pn(e){var t=fr[e.source];if(!t){var r=fn(e.source);r?(t=fr[e.source]={url:r.url,map:new ep(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(n,s){var u=t.map.sourcesContent[s];if(u){var o=an(t.url,n);Bt[o]=u}})):t=fr[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var i=t.map.originalPositionFor(e);if(i.source!==null)return i.source=an(t.url,i.source),i}return e}function vo(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=pn({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+vo(t[2])+")":e}function ap(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var r=this.getLineNumber();if(r!=null){t+=":"+r;var i=this.getColumnNumber();i&&(t+=":"+i)}}var n="",s=this.getFunctionName(),u=!0,o=this.isConstructor(),a=!(this.isToplevel()||o);if(a){var l=this.getTypeName();l==="[object Object]"&&(l="null");var c=this.getMethodName();s?(l&&s.indexOf(l)!=0&&(n+=l+"."),n+=s,c&&s.indexOf("."+c)!=s.length-c.length-1&&(n+=" [as "+c+"]")):n+=l+"."+(c||"<anonymous>")}else o?n+="new "+(s||"<anonymous>"):s?n+=s:(n+=t,u=!1);return u&&(n+=" ("+t+")"),n}function _o(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),t.toString=ap,t}function So(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var i=e.getLineNumber(),n=e.getColumnNumber()-1,s=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,u=s.test(np())?0:62;i===1&&n>u&&!cn()&&!e.isEval()&&(n-=u);var o=pn({source:r,line:i,column:n});t.curPosition=o,e=_o(e);var a=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?a():t.nextPosition.name||a()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var l=e.isEval()&&e.getEvalOrigin();return l&&(l=vo(l),e=_o(e),e.getEvalOrigin=function(){return l}),e}function lp(e,t){on&&(Bt={},fr={});for(var r=e.name||"Error",i=e.message||"",n=r+": "+i,s={nextPosition:null,curPosition:null},u=[],o=t.length-1;o>=0;o--)u.push(`
15
+ at `+So(t[o],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,n+u.reverse().join("")}function ko(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],n=+t[3],s=Bt[r];if(!s&&et&&et.existsSync(r))try{s=et.readFileSync(r,"utf8")}catch{s=""}if(s){var u=s.split(/(?:\r\n|\r|\n)/)[i-1];if(u)return r+":"+i+`
16
+ `+u+`
17
+ `+new Array(n).join(" ")+"^"}}return null}function cp(e){var t=ko(e),r=sp();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),up(1)}function hp(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,i=this.listeners(t).length>0;if(r&&!i)return cp(arguments[1])}return e.apply(this,arguments)}}var fp=mt.slice(0),pp=gt.slice(0);Rt.wrapCallSite=So;Rt.getErrorSource=ko;Rt.mapSourcePosition=pn;Rt.retrieveSourceMap=fn;Rt.install=function(e){if(e=e||{},e.environment&&(hr=e.environment,["node","browser","auto"].indexOf(hr)===-1))throw new Error("environment "+hr+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(mt.length=0),mt.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(gt.length=0),gt.unshift(e.retrieveSourceMap)),e.hookRequire&&!cn()){var t=Ao(ln,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(s,u){return Bt[u]=s,fr[u]=void 0,r.call(this,s,u)},t.prototype._compile.__sourceMapSupport=!0)}if(on||(on="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),xo||(xo=!0,Error.prepareStackTrace=lp),!Fo){var i="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var n=Ao(ln,"worker_threads");n.isMainThread===!1&&(i=!1)}catch{}i&&ip()&&(Fo=!0,hp())}};Rt.resetRetrieveHandlers=function(){mt.length=0,gt.length=0,mt=fp.slice(0),gt=pp.slice(0),fn=Ur(gt),hn=Ur(mt)}});var Lo=S((Z1,Ro)=>{"use strict";var dp=require("https");Ro.exports=(e,t)=>{t=typeof t=="undefined"?1/0:t;let r=new Map,i=!1,n=!0;return e instanceof dp.Server?e.on("secureConnection",s):e.on("connection",s),e.on("request",u),e.stop=o,e._pendingSockets=r,e;function s(c){r.set(c,0),c.once("close",()=>r.delete(c))}function u(c,h){r.set(c.socket,r.get(c.socket)+1),h.once("finish",()=>{let f=r.get(c.socket)-1;r.set(c.socket,f),i&&f===0&&c.socket.end()})}function o(c){setImmediate(()=>{i=!0,t<1/0&&setTimeout(l,t).unref(),e.close(h=>{c&&c(h,n)}),r.forEach(a)})}function a(c,h){c===0&&h.end()}function l(){n=!1,r.forEach((c,h)=>h.end()),setImmediate(()=>{r.forEach((c,h)=>h.destroy())})}}});var qo=S((X1,pr)=>{"use strict";var mp=typeof process!="undefined"&&process.env.TERM_PROGRAM==="Hyper",gp=typeof process!="undefined"&&process.platform==="win32",To=typeof process!="undefined"&&process.platform==="linux",dn={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Io=Object.assign({},dn,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Oo=Object.assign({},dn,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:To?"\u25B8":"\u276F",pointerSmall:To?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});pr.exports=gp&&!mp?Io:Oo;Reflect.defineProperty(pr.exports,"common",{enumerable:!1,value:dn});Reflect.defineProperty(pr.exports,"windows",{enumerable:!1,value:Io});Reflect.defineProperty(pr.exports,"other",{enumerable:!1,value:Oo})});var Qe=S((J1,mn)=>{"use strict";var Dp=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),yp=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Ep=()=>typeof process!="undefined"?process.env.FORCE_COLOR!=="0":!1,No=()=>{let e={enabled:Ep(),visible:!0,styles:{},keys:{}},t=s=>{let u=s.open=`\x1B[${s.codes[0]}m`,o=s.close=`\x1B[${s.codes[1]}m`,a=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(l,c)=>{l.includes(o)&&(l=l.replace(a,o+u));let h=u+l+o;return c?h.replace(/\r*\n/g,`${o}$&${u}`):h},s},r=(s,u,o)=>typeof s=="function"?s(u):s.wrap(u,o),i=(s,u)=>{if(s===""||s==null)return"";if(e.enabled===!1)return s;if(e.visible===!1)return"";let o=""+s,a=o.includes(`
18
+ `),l=u.length;for(l>0&&u.includes("unstyle")&&(u=[...new Set(["unstyle",...u])].reverse());l-- >0;)o=r(e.styles[u[l]],o,a);return o},n=(s,u,o)=>{e.styles[s]=t({name:s,codes:u}),(e.keys[o]||(e.keys[o]=[])).push(s),Reflect.defineProperty(e,s,{configurable:!0,enumerable:!0,set(l){e.alias(s,l)},get(){let l=c=>i(c,l.stack);return Reflect.setPrototypeOf(l,e),l.stack=this.stack?this.stack.concat(s):[s],l}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),e.ansiRegex=yp,e.hasColor=e.hasAnsi=s=>(e.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&e.ansiRegex.test(s)),e.alias=(s,u)=>{let o=typeof u=="string"?e[u]:u;if(typeof o!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");o.stack||(Reflect.defineProperty(o,"name",{value:s}),e.styles[s]=o,o.stack=[s]),Reflect.defineProperty(e,s,{configurable:!0,enumerable:!0,set(a){e.alias(s,a)},get(){let a=l=>i(l,a.stack);return Reflect.setPrototypeOf(a,e),a.stack=this.stack?this.stack.concat(o.stack):o.stack,a}})},e.theme=s=>{if(!Dp(s))throw new TypeError("Expected theme to be an object");for(let u of Object.keys(s))e.alias(u,s[u]);return e},e.alias("unstyle",s=>typeof s=="string"&&s!==""?(e.ansiRegex.lastIndex=0,s.replace(e.ansiRegex,"")):""),e.alias("noop",s=>s),e.none=e.clear=e.noop,e.stripColor=e.unstyle,e.symbols=qo(),e.define=n,e};mn.exports=No();mn.exports.create=No});var ke=S(J=>{"use strict";var wp=Object.prototype.toString,Ve=Qe(),Po=!1,gn=[],Mo={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};J.longest=(e,t)=>e.reduce((r,i)=>Math.max(r,t?i[t].length:i.length),0);J.hasColor=e=>!!e&&Ve.hasColor(e);var Wr=J.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);J.nativeType=e=>wp.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"");J.isAsyncFn=e=>J.nativeType(e)==="asyncfunction";J.isPrimitive=e=>e!=null&&typeof e!="object"&&typeof e!="function";J.resolve=(e,t,...r)=>typeof t=="function"?t.call(e,...r):t;J.scrollDown=(e=[])=>[...e.slice(1),e[0]];J.scrollUp=(e=[])=>[e.pop(),...e];J.reorder=(e=[])=>{let t=e.slice();return t.sort((r,i)=>r.index>i.index?1:r.index<i.index?-1:0),t};J.swap=(e,t,r)=>{let i=e.length,n=r===i?0:r<0?i-1:r,s=e[t];e[t]=e[n],e[n]=s};J.width=(e,t=80)=>{let r=e&&e.columns?e.columns:t;return e&&typeof e.getWindowSize=="function"&&(r=e.getWindowSize()[0]),process.platform==="win32"?r-1:r};J.height=(e,t=20)=>{let r=e&&e.rows?e.rows:t;return e&&typeof e.getWindowSize=="function"&&(r=e.getWindowSize()[1]),r};J.wordWrap=(e,t={})=>{if(!e)return e;typeof t=="number"&&(t={width:t});let{indent:r="",newline:i=`
19
+ `+r,width:n=80}=t,s=(i+r).match(/[^\S\n]/g)||[];n-=s.length;let u=`.{1,${n}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,o=e.trim(),a=new RegExp(u,"g"),l=o.match(a)||[];return l=l.map(c=>c.replace(/\n$/,"")),t.padEnd&&(l=l.map(c=>c.padEnd(n," "))),t.padStart&&(l=l.map(c=>c.padStart(n," "))),r+l.join(i)};J.unmute=e=>{let t=e.stack.find(i=>Ve.keys.color.includes(i));return t?Ve[t]:e.stack.find(i=>i.slice(2)==="bg")?Ve[t.slice(2)]:i=>i};J.pascal=e=>e?e[0].toUpperCase()+e.slice(1):"";J.inverse=e=>{if(!e||!e.stack)return e;let t=e.stack.find(i=>Ve.keys.color.includes(i));if(t){let i=Ve["bg"+J.pascal(t)];return i?i.black:e}let r=e.stack.find(i=>i.slice(0,2)==="bg");return r?Ve[r.slice(2).toLowerCase()]||e:Ve.none};J.complement=e=>{if(!e||!e.stack)return e;let t=e.stack.find(i=>Ve.keys.color.includes(i)),r=e.stack.find(i=>i.slice(0,2)==="bg");if(t&&!r)return Ve[Mo[t]||t];if(r){let i=r.slice(2).toLowerCase(),n=Mo[i];return n&&Ve["bg"+J.pascal(n)]||e}return Ve.none};J.meridiem=e=>{let t=e.getHours(),r=e.getMinutes(),i=t>=12?"pm":"am";t=t%12;let n=t===0?12:t,s=r<10?"0"+r:r;return n+":"+s+" "+i};J.set=(e={},t="",r)=>t.split(".").reduce((i,n,s,u)=>{let o=u.length-1>s?i[n]||{}:r;return!J.isObject(o)&&s<u.length-1&&(o={}),i[n]=o},e);J.get=(e={},t="",r)=>{let i=e[t]==null?t.split(".").reduce((n,s)=>n&&n[s],e):e[t];return i==null?r:i};J.mixin=(e,t)=>{if(!Wr(e))return t;if(!Wr(t))return e;for(let r of Object.keys(t)){let i=Object.getOwnPropertyDescriptor(t,r);if(i.hasOwnProperty("value"))if(e.hasOwnProperty(r)&&Wr(i.value)){let n=Object.getOwnPropertyDescriptor(e,r);Wr(n.value)?e[r]=J.merge({},e[r],t[r]):Reflect.defineProperty(e,r,i)}else Reflect.defineProperty(e,r,i);else Reflect.defineProperty(e,r,i)}return e};J.merge=(...e)=>{let t={};for(let r of e)J.mixin(t,r);return t};J.mixinEmitter=(e,t)=>{let r=t.constructor.prototype;for(let i of Object.keys(r)){let n=r[i];typeof n=="function"?J.define(e,i,n.bind(t)):J.define(e,i,n)}};J.onExit=e=>{let t=(r,i)=>{Po||(Po=!0,gn.forEach(n=>n()),r===!0&&process.exit(128+i))};gn.length===0&&(process.once("SIGTERM",t.bind(null,!0,15)),process.once("SIGINT",t.bind(null,!0,2)),process.once("exit",t)),gn.push(e)};J.define=(e,t,r)=>{Reflect.defineProperty(e,t,{value:r})};J.defineExport=(e,t,r)=>{let i;Reflect.defineProperty(e,t,{enumerable:!0,configurable:!0,set(n){i=n},get(){return i?i():r()}})}});var Ho=S(Kt=>{"use strict";Kt.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};Kt.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};Kt.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};Kt.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};Kt.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var jo=S((ry,$o)=>{"use strict";var zo=require("readline"),bp=Ho(),Cp=/^(?:\x1b)([a-zA-Z0-9])$/,Ap=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,xp={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function Fp(e){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(e)}function _p(e){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(e)}var Kr=(e="",t={})=>{let r,i={name:t.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:e,raw:e,...t};if(Buffer.isBuffer(e)?e[0]>127&&e[1]===void 0?(e[0]-=128,e="\x1B"+String(e)):e=String(e):e!==void 0&&typeof e!="string"?e=String(e):e||(e=i.sequence||""),i.sequence=i.sequence||e||i.name,e==="\r")i.raw=void 0,i.name="return";else if(e===`
20
+ `)i.name="enter";else if(e===" ")i.name="tab";else if(e==="\b"||e==="\x7F"||e==="\x1B\x7F"||e==="\x1B\b")i.name="backspace",i.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")i.name="escape",i.meta=e.length===2;else if(e===" "||e==="\x1B ")i.name="space",i.meta=e.length===2;else if(e<="")i.name=String.fromCharCode(e.charCodeAt(0)+97-1),i.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")i.name="number";else if(e.length===1&&e>="a"&&e<="z")i.name=e;else if(e.length===1&&e>="A"&&e<="Z")i.name=e.toLowerCase(),i.shift=!0;else if(r=Cp.exec(e))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=Ap.exec(e)){let n=[...e];n[0]==="\x1B"&&n[1]==="\x1B"&&(i.option=!0);let s=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),u=(r[3]||r[5]||1)-1;i.ctrl=!!(u&4),i.meta=!!(u&10),i.shift=!!(u&1),i.code=s,i.name=xp[s],i.shift=Fp(s)||i.shift,i.ctrl=_p(s)||i.ctrl}return i};Kr.listen=(e={},t)=>{let{stdin:r}=e;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=zo.createInterface({terminal:!0,input:r});zo.emitKeypressEvents(r,i);let n=(o,a)=>t(o,Kr(o,a),i),s=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",n),i.resume(),()=>{r.isTTY&&r.setRawMode(s),r.removeListener("keypress",n),i.pause(),i.close()}};Kr.action=(e,t,r)=>{let i={...bp,...r};return t.ctrl?(t.action=i.ctrl[t.name],t):t.option&&i.option?(t.action=i.option[t.name],t):t.shift?(t.action=i.shift[t.name],t):(t.action=i.keys[t.name],t)};$o.exports=Kr});var Go=S((iy,Vo)=>{"use strict";Vo.exports=e=>{e.timers=e.timers||{};let t=e.options.timers;if(t)for(let r of Object.keys(t)){let i=t[r];typeof i=="number"&&(i={interval:i}),vp(e,r,i)}};function vp(e,t,r={}){let i=e.timers[t]={name:t,start:Date.now(),ms:0,tick:0},n=r.interval||120;i.frames=r.frames||[],i.loading=!0;let s=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,e.render()},n);return i.stop=()=>{i.loading=!1,clearInterval(s)},Reflect.defineProperty(i,"interval",{value:s}),e.once("close",()=>i.stop()),i.stop}});var Wo=S((ny,Uo)=>{"use strict";var{define:Sp,width:kp}=ke(),Dn=class{constructor(t){let r=t.options;Sp(this,"_prompt",t),this.type=t.type,this.name=t.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=kp(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=t.symbols,this.styles=t.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let t={...this};return t.status=this.status,t.buffer=Buffer.from(t.buffer),delete t.clone,t}set color(t){this._color=t}get color(){let t=this.prompt.styles;if(this.cancelled)return t.cancelled;if(this.submitted)return t.submitted;let r=this._color||t[this.status];return typeof r=="function"?r:t.pending}set loading(t){this._loading=t}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};Uo.exports=Dn});var Yo=S((sy,Ko)=>{"use strict";var yn=ke(),_e=Qe(),En={default:_e.noop,noop:_e.noop,set inverse(e){this._inverse=e},get inverse(){return this._inverse||yn.inverse(this.primary)},set complement(e){this._complement=e},get complement(){return this._complement||yn.complement(this.primary)},primary:_e.cyan,success:_e.green,danger:_e.magenta,strong:_e.bold,warning:_e.yellow,muted:_e.dim,disabled:_e.gray,dark:_e.dim.gray,underline:_e.underline,set info(e){this._info=e},get info(){return this._info||this.primary},set em(e){this._em=e},get em(){return this._em||this.primary.underline},set heading(e){this._heading=e},get heading(){return this._heading||this.muted.underline},set pending(e){this._pending=e},get pending(){return this._pending||this.primary},set submitted(e){this._submitted=e},get submitted(){return this._submitted||this.success},set cancelled(e){this._cancelled=e},get cancelled(){return this._cancelled||this.danger},set typing(e){this._typing=e},get typing(){return this._typing||this.dim},set placeholder(e){this._placeholder=e},get placeholder(){return this._placeholder||this.primary.dim},set highlight(e){this._highlight=e},get highlight(){return this._highlight||this.inverse}};En.merge=(e={})=>{e.styles&&typeof e.styles.enabled=="boolean"&&(_e.enabled=e.styles.enabled),e.styles&&typeof e.styles.visible=="boolean"&&(_e.visible=e.styles.visible);let t=yn.merge({},En,e.styles);delete t.merge;for(let r of Object.keys(_e))t.hasOwnProperty(r)||Reflect.defineProperty(t,r,{get:()=>_e[r]});for(let r of Object.keys(_e.styles))t.hasOwnProperty(r)||Reflect.defineProperty(t,r,{get:()=>_e[r]});return t};Ko.exports=En});var Zo=S((uy,Qo)=>{"use strict";var wn=process.platform==="win32",lt=Qe(),Bp=ke(),bn={...lt.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:lt.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:lt.symbols.question,submitted:lt.symbols.check,cancelled:lt.symbols.cross},separator:{pending:lt.symbols.pointerSmall,submitted:lt.symbols.middot,cancelled:lt.symbols.middot},radio:{off:wn?"( )":"\u25EF",on:wn?"(*)":"\u25C9",disabled:wn?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};bn.merge=e=>{let t=Bp.merge({},lt.symbols,bn,e.symbols);return delete t.merge,t};Qo.exports=bn});var Jo=S((oy,Xo)=>{"use strict";var Rp=Yo(),Lp=Zo(),Tp=ke();Xo.exports=e=>{e.options=Tp.merge({},e.options.theme,e.options),e.symbols=Lp.merge(e.options),e.styles=Rp.merge(e.options)}});var na=S((ra,ia)=>{"use strict";var ea=process.env.TERM_PROGRAM==="Apple_Terminal",Ip=Qe(),Cn=ke(),Ze=ia.exports=ra,ce="\x1B[",ta="\x07",An=!1,Dt=Ze.code={bell:ta,beep:ta,beginning:`${ce}G`,down:`${ce}J`,esc:ce,getPosition:`${ce}6n`,hide:`${ce}?25l`,line:`${ce}2K`,lineEnd:`${ce}K`,lineStart:`${ce}1K`,restorePosition:ce+(ea?"8":"u"),savePosition:ce+(ea?"7":"s"),screen:`${ce}2J`,show:`${ce}?25h`,up:`${ce}1J`},Lt=Ze.cursor={get hidden(){return An},hide(){return An=!0,Dt.hide},show(){return An=!1,Dt.show},forward:(e=1)=>`${ce}${e}C`,backward:(e=1)=>`${ce}${e}D`,nextLine:(e=1)=>`${ce}E`.repeat(e),prevLine:(e=1)=>`${ce}F`.repeat(e),up:(e=1)=>e?`${ce}${e}A`:"",down:(e=1)=>e?`${ce}${e}B`:"",right:(e=1)=>e?`${ce}${e}C`:"",left:(e=1)=>e?`${ce}${e}D`:"",to(e,t){return t?`${ce}${t+1};${e+1}H`:`${ce}${e+1}G`},move(e=0,t=0){let r="";return r+=e<0?Lt.left(-e):e>0?Lt.right(e):"",r+=t<0?Lt.up(-t):t>0?Lt.down(t):"",r},restore(e={}){let{after:t,cursor:r,initial:i,input:n,prompt:s,size:u,value:o}=e;if(i=Cn.isPrimitive(i)?String(i):"",n=Cn.isPrimitive(n)?String(n):"",o=Cn.isPrimitive(o)?String(o):"",u){let a=Ze.cursor.up(u)+Ze.cursor.to(s.length),l=n.length-r;return l>0&&(a+=Ze.cursor.left(l)),a}if(o||t){let a=!n&&i?-i.length:-n.length+r;return t&&(a-=t.length),n===""&&i&&!s.includes(i)&&(a+=i.length),Ze.cursor.move(a)}}},xn=Ze.erase={screen:Dt.screen,up:Dt.up,down:Dt.down,line:Dt.line,lineEnd:Dt.lineEnd,lineStart:Dt.lineStart,lines(e){let t="";for(let r=0;r<e;r++)t+=Ze.erase.line+(r<e-1?Ze.cursor.up(1):"");return e&&(t+=Ze.code.beginning),t}};Ze.clear=(e="",t=process.stdout.columns)=>{if(!t)return xn.line+Lt.to(0);let r=s=>[...Ip.unstyle(s)].length,i=e.split(/\r?\n/),n=0;for(let s of i)n+=1+Math.floor(Math.max(r(s)-1,0)/t);return(xn.line+Lt.prevLine()).repeat(n-1)+xn.line+Lt.to(0)}});var Yt=S((ay,ua)=>{"use strict";var Op=require("events"),sa=Qe(),Fn=jo(),qp=Go(),Np=Wo(),Pp=Jo(),qe=ke(),Tt=na(),_n=class e extends Op{constructor(t={}){super(),this.name=t.name,this.type=t.type,this.options=t,Pp(this),qp(this),this.state=new Np(this),this.initial=[t.initial,t.default].find(r=>r!=null),this.stdout=t.stdout||process.stdout,this.stdin=t.stdin||process.stdin,this.scale=t.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=Hp(this.options.margin),this.setMaxListeners(0),Mp(this)}async keypress(t,r={}){this.keypressed=!0;let i=Fn.action(t,Fn(t,r),this.options.actions);this.state.keypress=i,this.emit("keypress",t,i),this.emit("state",this.state.clone());let n=this.options[i.action]||this[i.action]||this.dispatch;if(typeof n=="function")return await n.call(this,t,i);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(Tt.code.beep)}cursorHide(){this.stdout.write(Tt.cursor.hide()),qe.onExit(()=>this.cursorShow())}cursorShow(){this.stdout.write(Tt.cursor.show())}write(t){t&&(this.stdout&&this.state.show!==!1&&this.stdout.write(t),this.state.buffer+=t)}clear(t=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!t||this.options.show===!1)&&this.stdout.write(Tt.cursor.down(t)+Tt.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:t,after:r,rest:i}=this.sections(),{cursor:n,initial:s="",input:u="",value:o=""}=this,a=this.state.size=i.length,l={after:r,cursor:n,initial:s,input:u,prompt:t,size:a,value:o},c=Tt.cursor.restore(l);c&&this.stdout.write(c)}sections(){let{buffer:t,input:r,prompt:i}=this.state;i=sa.unstyle(i);let n=sa.unstyle(t),s=n.indexOf(i),u=n.slice(0,s),a=n.slice(s).split(`
21
+ `),l=a[0],c=a[a.length-1],f=(i+(r?" "+r:"")).length,p=f<l.length?l.slice(f+1):"";return{header:u,prompt:l,after:p,rest:a.slice(1),last:c}}async submit(){this.state.submitted=!0,this.state.validating=!0,this.options.onSubmit&&await this.options.onSubmit.call(this,this.name,this.value,this);let t=this.state.error||await this.validate(this.value,this.state);if(t!==!0){let r=`
22
+ `+this.symbols.pointer+" ";typeof t=="string"?r+=t.trim():r+="Invalid input",this.state.error=`
23
+ `+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(t){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(t))}async close(){this.state.closed=!0;try{let t=this.sections(),r=Math.ceil(t.prompt.length/this.width);t.rest&&this.write(Tt.cursor.down(t.rest.length)),this.write(`
24
+ `.repeat(r))}catch{}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=Fn.listen(this,this.keypress.bind(this)),this.once("close",this.stop))}async skip(){return this.skipped=this.options.skip===!0,typeof this.options.skip=="function"&&(this.skipped=await this.options.skip.call(this,this.name,this.value)),this.skipped}async initialize(){let{format:t,options:r,result:i}=this;if(this.format=()=>t.call(this,this.value),this.result=()=>i.call(this,this.value),typeof r.initial=="function"&&(this.initial=await r.initial.call(this,this)),typeof r.onRun=="function"&&await r.onRun.call(this,this),typeof r.onSubmit=="function"){let n=r.onSubmit.bind(this),s=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await n(this.name,this.value,this),s())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(t,r)=>{if(this.once("submit",t),this.once("cancel",r),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(t,r,i){let{options:n,state:s,symbols:u,timers:o}=this,a=o&&o[t];s.timer=a;let l=n[t]||s[t]||u[t],c=r&&r[t]!=null?r[t]:await l;if(c==="")return c;let h=await this.resolve(c,s,r,i);return!h&&r&&r[t]?this.resolve(l,s,r,i):h}async prefix(){let t=await this.element("prefix")||this.symbols,r=this.timers&&this.timers.prefix,i=this.state;return i.timer=r,qe.isObject(t)&&(t=t[i.status]||t.pending),qe.hasColor(t)?t:(this.styles[i.status]||this.styles.pending)(t)}async message(){let t=await this.element("message");return qe.hasColor(t)?t:this.styles.strong(t)}async separator(){let t=await this.element("separator")||this.symbols,r=this.timers&&this.timers.separator,i=this.state;i.timer=r;let n=t[i.status]||t.pending||i.separator,s=await this.resolve(n,i);return qe.isObject(s)&&(s=s[i.status]||s.pending),qe.hasColor(s)?s:this.styles.muted(s)}async pointer(t,r){let i=await this.element("pointer",t,r);if(typeof i=="string"&&qe.hasColor(i))return i;if(i){let n=this.styles,s=this.index===r,u=s?n.primary:l=>l,o=await this.resolve(i[s?"on":"off"]||i,this.state),a=qe.hasColor(o)?o:u(o);return s?a:" ".repeat(o.length)}}async indicator(t,r){let i=await this.element("indicator",t,r);if(typeof i=="string"&&qe.hasColor(i))return i;if(i){let n=this.styles,s=t.enabled===!0,u=s?n.success:n.dark,o=i[s?"on":"off"]||i;return qe.hasColor(o)?o:u(o)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let t=await this.element("hint");return qe.hasColor(t)?t:this.styles.muted(t)}}error(t){return this.state.submitted?"":t||this.state.error}format(t){return t}result(t){return t}validate(t){return this.options.required===!0?this.isValue(t):!0}isValue(t){return t!=null&&t!==""}resolve(t,...r){return qe.resolve(this,t,...r)}get base(){return e.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||qe.height(this.stdout,25)}get width(){return this.options.columns||qe.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(t){this.state.cursor=t}get cursor(){return this.state.cursor}set input(t){this.state.input=t}get input(){return this.state.input}set value(t){this.state.value=t}get value(){let{input:t,value:r}=this.state,i=[r,t].find(this.isValue.bind(this));return this.isValue(i)?i:this.initial}static get prompt(){return t=>new this(t).run()}};function Mp(e){let t=n=>e[n]===void 0||typeof e[n]=="function",r=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],i=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let n of Object.keys(e.options)){if(r.includes(n)||/^on[A-Z]/.test(n))continue;let s=e.options[n];typeof s=="function"&&t(n)?i.includes(n)||(e[n]=s.bind(e)):typeof e[n]!="function"&&(e[n]=s)}}function Hp(e){typeof e=="number"&&(e=[e,e,e,e]);let t=[].concat(e||[]),r=n=>n%2===0?`
25
+ `:" ",i=[];for(let n=0;n<4;n++){let s=r(n);t[n]?i.push(s.repeat(t[n])):i.push("")}return i}ua.exports=_n});var la=S((ly,aa)=>{"use strict";var zp=ke(),oa={default(e,t){return t},checkbox(e,t){throw new Error("checkbox role is not implemented yet")},editable(e,t){throw new Error("editable role is not implemented yet")},expandable(e,t){throw new Error("expandable role is not implemented yet")},heading(e,t){return t.disabled="",t.indicator=[t.indicator," "].find(r=>r!=null),t.message=t.message||"",t},input(e,t){throw new Error("input role is not implemented yet")},option(e,t){return oa.default(e,t)},radio(e,t){throw new Error("radio role is not implemented yet")},separator(e,t){return t.disabled="",t.indicator=[t.indicator," "].find(r=>r!=null),t.message=t.message||e.symbols.line.repeat(5),t},spacer(e,t){return t}};aa.exports=(e,t={})=>{let r=zp.merge({},oa,t.roles);return r[e]||r.default}});var dr=S((cy,fa)=>{"use strict";var $p=Qe(),jp=Yt(),Vp=la(),Yr=ke(),{reorder:vn,scrollUp:Gp,scrollDown:Up,isObject:ca,swap:Wp}=Yr,Sn=class extends jp{constructor(t){super(t),this.cursorHide(),this.maxSelected=t.maxSelected||1/0,this.multiple=t.multiple||!1,this.initial=t.initial||0,this.delay=t.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:t,initial:r,autofocus:i,suggest:n}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(t)),this.choices.forEach(s=>s.enabled=!1),typeof n!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");ca(r)&&(r=Object.keys(r)),Array.isArray(r)?(i!=null&&(this.index=this.findIndex(i)),r.forEach(s=>this.enable(this.find(s))),await this.render()):(i!=null&&(r=i),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(t,r){this.state.loadingChoices=!0;let i=[],n=0,s=async(u,o)=>{typeof u=="function"&&(u=await u.call(this)),u instanceof Promise&&(u=await u);for(let a=0;a<u.length;a++){let l=u[a]=await this.toChoice(u[a],n++,o);i.push(l),l.choices&&await s(l.choices,l)}return i};return s(t,r).then(u=>(this.state.loadingChoices=!1,u))}async toChoice(t,r,i){if(typeof t=="function"&&(t=await t.call(this,this)),t instanceof Promise&&(t=await t),typeof t=="string"&&(t={name:t}),t.normalized)return t;t.normalized=!0;let n=t.value;if(t=Vp(t.role,this.options)(this,t),typeof t.disabled=="string"&&!t.hint&&(t.hint=t.disabled,t.disabled=!0),t.disabled===!0&&t.hint==null&&(t.hint="(disabled)"),t.index!=null)return t;t.name=t.name||t.key||t.title||t.value||t.message,t.message=t.message||t.name||"",t.value=[t.value,t.name].find(this.isValue.bind(this)),t.input="",t.index=r,t.cursor=0,Yr.define(t,"parent",i),t.level=i?i.level+1:1,t.indent==null&&(t.indent=i?i.indent+" ":t.indent||""),t.path=i?i.path+"."+t.name:t.name,t.enabled=!!(this.multiple&&!this.isDisabled(t)&&(t.enabled||this.isSelected(t))),this.isDisabled(t)||(this.longest=Math.max(this.longest,$p.unstyle(t.message).length));let u={...t};return t.reset=(o=u.input,a=u.value)=>{for(let l of Object.keys(u))t[l]=u[l];t.input=o,t.value=a},n==null&&typeof t.initial=="function"&&(t.input=await t.initial.call(this,this.state,t,r)),t}async onChoice(t,r){this.emit("choice",t,r,this),typeof t.onChoice=="function"&&await t.onChoice.call(this,this.state,t,r)}async addChoice(t,r,i){let n=await this.toChoice(t,r,i);return this.choices.push(n),this.index=this.choices.length-1,this.limit=this.choices.length,n}async newItem(t,r,i){let n={name:"New choice name?",editable:!0,newChoice:!0,...t},s=await this.addChoice(n,r,i);return s.updateChoice=()=>{delete s.newChoice,s.name=s.message=s.input,s.input="",s.cursor=0},this.render()}indent(t){return t.indent==null?t.level>1?" ".repeat(t.level-1):"":t.indent}dispatch(t,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(t,r){return typeof r!="boolean"&&(r=t.enabled),r&&!t.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=t.index,t.enabled=r&&!this.isDisabled(t),t)}space(){return this.multiple?(this.toggle(this.focused),this.render()):this.alert()}a(){if(this.maxSelected<this.choices.length)return this.alert();let t=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!t),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(t=>t.enabled=!t.enabled),this.render())}g(t=this.focused){return this.choices.some(r=>!!r.parent)?(this.toggle(t.parent&&!t.choices?t.parent:t),this.render()):this.a()}toggle(t,r){if(!t.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!t.enabled),t.enabled=r,t.choices&&t.choices.forEach(n=>this.toggle(n,r));let i=t.parent;for(;i;){let n=i.choices.filter(s=>this.isDisabled(s));i.enabled=n.every(s=>s.enabled===!0),i=i.parent}return ha(this,this.choices),this.emit("toggle",t,this),t}enable(t){return this.selected.length>=this.maxSelected?this.alert():(t.enabled=!this.isDisabled(t),t.choices&&t.choices.forEach(this.enable.bind(this)),t)}disable(t){return t.enabled=!1,t.choices&&t.choices.forEach(this.disable.bind(this)),t}number(t){this.num+=t;let r=i=>{let n=Number(i);if(n>this.choices.length-1)return this.alert();let s=this.focused,u=this.choices.find(o=>n===o.index);if(!u.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(u)===-1){let o=vn(this.choices),a=o.indexOf(u);if(s.index>a){let l=o.slice(a,a+this.limit),c=o.filter(h=>!l.includes(h));this.choices=l.concat(c)}else{let l=a-this.limit+1;this.choices=o.slice(l).concat(o.slice(0,l))}}return this.index=this.choices.indexOf(u),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(i=>{let n=this.choices.length,s=this.num,u=(o=!1,a)=>{clearTimeout(this.numberTimeout),o&&(a=r(s)),this.num="",i(a)};if(s==="0"||s.length===1&&+(s+"0")>n)return u(!0);if(Number(s)>n)return u(!1,this.alert());this.numberTimeout=setTimeout(()=>u(!0),this.delay)})}home(){return this.choices=vn(this.choices),this.index=0,this.render()}end(){let t=this.choices.length-this.limit,r=vn(this.choices);return this.choices=r.slice(t).concat(r.slice(0,t)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let t=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===0?this.alert():t>r&&i===0?this.scrollUp():(this.index=(i-1%t+t)%t,this.isDisabled()?this.up():this.render())}down(){let t=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===r-1?this.alert():t>r&&i===r-1?this.scrollDown():(this.index=(i+1)%t,this.isDisabled()?this.down():this.render())}scrollUp(t=0){return this.choices=Gp(this.choices),this.index=t,this.isDisabled()?this.up():this.render()}scrollDown(t=this.visible.length-1){return this.choices=Up(this.choices),this.index=t,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(t){Wp(this.choices,this.index,t)}isDisabled(t=this.focused){return t&&["disabled","collapsed","hidden","completing","readonly"].some(i=>t[i]===!0)?!0:t&&t.role==="heading"}isEnabled(t=this.focused){if(Array.isArray(t))return t.every(r=>this.isEnabled(r));if(t.choices){let r=t.choices.filter(i=>!this.isDisabled(i));return t.enabled&&r.every(i=>this.isEnabled(i))}return t.enabled&&!this.isDisabled(t)}isChoice(t,r){return t.name===r||t.index===Number(r)}isSelected(t){return Array.isArray(this.initial)?this.initial.some(r=>this.isChoice(t,r)):this.isChoice(t,this.initial)}map(t=[],r="value"){return[].concat(t||[]).reduce((i,n)=>(i[n]=this.find(n,r),i),{})}filter(t,r){let n=typeof t=="function"?t:(o,a)=>[o.name,a].includes(t),u=(this.options.multiple?this.state._choices:this.choices).filter(n);return r?u.map(o=>o[r]):u}find(t,r){if(ca(t))return r?t[r]:t;let n=typeof t=="function"?t:(u,o)=>[u.name,o].includes(t),s=this.choices.find(n);if(s)return r?s[r]:s}findIndex(t){return this.choices.indexOf(this.find(t))}async submit(){let t=this.focused;if(!t)return this.alert();if(t.newChoice)return t.input?(t.updateChoice(),this.render()):this.alert();if(this.choices.some(u=>u.newChoice))return this.alert();let{reorder:r,sort:i}=this.options,n=this.multiple===!0,s=this.selected;return s===void 0?this.alert():(Array.isArray(s)&&r!==!1&&i!==!0&&(s=Yr.reorder(s)),this.value=n?s.map(u=>u.name):s.name,super.submit())}set choices(t=[]){this.state._choices=this.state._choices||[],this.state.choices=t;for(let r of t)this.state._choices.some(i=>i.name===r.name)||this.state._choices.push(r);if(!this._initial&&this.options.initial){this._initial=!0;let r=this.initial;if(typeof r=="string"||typeof r=="number"){let i=this.find(r);i&&(this.initial=i.index,this.focus(i,!0))}}}get choices(){return ha(this,this.state.choices||[])}set visible(t){this.state.visible=t}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(t){this.state.limit=t}get limit(){let{state:t,options:r,choices:i}=this,n=t.limit||this._limit||r.limit||i.length;return Math.min(n,this.height)}set value(t){super.value=t}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(t){this.state.index=t}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let t=this.choices[this.index];return t&&this.state.submitted&&this.multiple!==!0&&(t.enabled=!0),t}get selectable(){return this.choices.filter(t=>!this.isDisabled(t))}get selected(){return this.multiple?this.enabled:this.focused}};function ha(e,t){if(t instanceof Promise)return t;if(typeof t=="function"){if(Yr.isAsyncFn(t))return t;t=t.call(e,e)}for(let r of t){if(Array.isArray(r.choices)){let i=r.choices.filter(n=>!e.isDisabled(n));r.enabled=i.every(n=>n.enabled===!0)}e.isDisabled(r)===!0&&delete r.enabled}return t}fa.exports=Sn});var yt=S((hy,pa)=>{"use strict";var Kp=dr(),kn=ke(),Bn=class extends Kp{constructor(t){super(t),this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(t,r){if(this.multiple)return this[r.name]?await this[r.name](t,r):await super.dispatch(t,r);this.alert()}separator(){if(this.options.separator)return super.separator();let t=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():t}pointer(t,r){return!this.multiple||this.options.pointer?super.pointer(t,r):""}indicator(t,r){return this.multiple?super.indicator(t,r):""}choiceMessage(t,r){let i=this.resolve(t.message,this.state,t,r);return t.role==="heading"&&!kn.hasColor(i)&&(i=this.styles.strong(i)),this.resolve(i,this.state,t,r)}choiceSeparator(){return":"}async renderChoice(t,r){await this.onChoice(t,r);let i=this.index===r,n=await this.pointer(t,r),s=await this.indicator(t,r)+(t.pad||""),u=await this.resolve(t.hint,this.state,t,r);u&&!kn.hasColor(u)&&(u=this.styles.muted(u));let o=this.indent(t),a=await this.choiceMessage(t,r),l=()=>[this.margin[3],o+n+s,a,this.margin[1],u].filter(Boolean).join(" ");return t.role==="heading"?l():t.disabled?(kn.hasColor(a)||(a=this.styles.disabled(a)),l()):(i&&(a=this.styles.em(a)),l())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let t=this.visible.map(async(s,u)=>await this.renderChoice(s,u)),r=await Promise.all(t);r.length||r.push(this.styles.danger("No matching choices"));let i=this.margin[0]+r.join(`
26
+ `),n;return this.options.choicesHeader&&(n=await this.resolve(this.options.choicesHeader,this.state)),[n,i].filter(Boolean).join(`
27
+ `)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(t=>this.styles.primary(t.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:t,size:r}=this.state,i="",n=await this.header(),s=await this.prefix(),u=await this.separator(),o=await this.message();this.options.promptLine!==!1&&(i=[s,o,u,""].join(" "),this.state.prompt=i);let a=await this.format(),l=await this.error()||await this.hint(),c=await this.renderChoices(),h=await this.footer();a&&(i+=a),l&&!i.includes(l)&&(i+=" "+l),t&&!a&&!c.trim()&&this.multiple&&this.emptyError!=null&&(i+=this.styles.danger(this.emptyError)),this.clear(r),this.write([n,i,c,h].filter(Boolean).join(`
28
+ `)),this.write(this.margin[2]),this.restore()}};pa.exports=Bn});var ma=S((fy,da)=>{"use strict";var Yp=yt(),Qp=(e,t)=>{let r=e.toLowerCase();return i=>{let s=i.toLowerCase().indexOf(r),u=t(i.slice(s,s+r.length));return s>=0?i.slice(0,s)+u+i.slice(s+r.length):i}},Rn=class extends Yp{constructor(t){super(t),this.cursorShow()}moveCursor(t){this.state.cursor+=t}dispatch(t){return this.append(t)}space(t){return this.options.multiple?super.space(t):this.append(t)}append(t){let{cursor:r,input:i}=this.state;return this.input=i.slice(0,r)+t+i.slice(r),this.moveCursor(1),this.complete()}delete(){let{cursor:t,input:r}=this.state;return r?(this.input=r.slice(0,t-1)+r.slice(t),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:t,input:r}=this.state;return r[t]===void 0?this.alert():(this.input=`${r}`.slice(0,t)+`${r}`.slice(t+1),this.complete())}number(t){return this.append(t)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(t=this.input,r=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,t,r);let i=t.toLowerCase();return r.filter(n=>n.message.toLowerCase().includes(i))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(t=>this.styles.primary(t.message)).join(", ");if(this.state.submitted){let t=this.value=this.input=this.focused.value;return this.styles.primary(t)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let t=this.options.highlight?this.options.highlight.bind(this):this.styles.placeholder,r=Qp(this.input,t),i=this.choices;this.choices=i.map(n=>({...n,message:r(n.message)})),await super.render(),this.choices=i}submit(){return this.options.multiple&&(this.value=this.selected.map(t=>t.name)),super.submit()}};da.exports=Rn});var Tn=S((py,ga)=>{"use strict";var Ln=ke();ga.exports=(e,t={})=>{e.cursorHide();let{input:r="",initial:i="",pos:n,showCursor:s=!0,color:u}=t,o=u||e.styles.placeholder,a=Ln.inverse(e.styles.primary),l=D=>a(e.styles.black(D)),c=r,h=" ",f=l(h);if(e.blink&&e.blink.off===!0&&(l=D=>D,f=""),s&&n===0&&i===""&&r==="")return l(h);if(s&&n===0&&(r===i||r===""))return l(i[0])+o(i.slice(1));i=Ln.isPrimitive(i)?`${i}`:"",r=Ln.isPrimitive(r)?`${r}`:"";let p=i&&i.startsWith(r)&&i!==r,y=p?l(i[r.length]):f;if(n!==r.length&&s===!0&&(c=r.slice(0,n)+l(r[n])+r.slice(n+1),y=""),s===!1&&(y=""),p){let D=e.styles.unstyle(c+y);return c+y+o(i.slice(D.length))}return c+y}});var Qr=S((dy,Da)=>{"use strict";var Zp=Qe(),Xp=yt(),Jp=Tn(),In=class extends Xp{constructor(t){super({...t,multiple:!0}),this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(r=>r!=null),this.emptyError="",this.values={}}async reset(t){return await super.reset(),t===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(r=>r.reset&&r.reset()),this.render()}dispatch(t){return!!t&&this.append(t)}append(t){let r=this.focused;if(!r)return this.alert();let{cursor:i,input:n}=r;return r.value=r.input=n.slice(0,i)+t+n.slice(i),r.cursor++,this.render()}delete(){let t=this.focused;if(!t||t.cursor<=0)return this.alert();let{cursor:r,input:i}=t;return t.value=t.input=i.slice(0,r-1)+i.slice(r),t.cursor--,this.render()}deleteForward(){let t=this.focused;if(!t)return this.alert();let{cursor:r,input:i}=t;if(i[r]===void 0)return this.alert();let n=`${i}`.slice(0,r)+`${i}`.slice(r+1);return t.value=t.input=n,this.render()}right(){let t=this.focused;return t?t.cursor>=t.input.length?this.alert():(t.cursor++,this.render()):this.alert()}left(){let t=this.focused;return t?t.cursor<=0?this.alert():(t.cursor--,this.render()):this.alert()}space(t,r){return this.dispatch(t,r)}number(t,r){return this.dispatch(t,r)}next(){let t=this.focused;if(!t)return this.alert();let{initial:r,input:i}=t;return r&&r.startsWith(i)&&i!==r?(t.value=t.input=r,t.cursor=t.value.length,this.render()):super.next()}prev(){let t=this.focused;return t?t.cursor===0?super.prev():(t.value=t.input="",t.cursor=0,this.render()):this.alert()}separator(){return""}format(t){return this.state.submitted?"":super.format(t)}pointer(){return""}indicator(t){return t.input?"\u29BF":"\u2299"}async choiceSeparator(t,r){let i=await this.resolve(t.separator,this.state,t,r)||":";return i?" "+this.styles.disabled(i):""}async renderChoice(t,r){await this.onChoice(t,r);let{state:i,styles:n}=this,{cursor:s,initial:u="",name:o,hint:a,input:l=""}=t,{muted:c,submitted:h,primary:f,danger:p}=n,y=a,D=this.index===r,v=t.validate||(()=>!0),g=await this.choiceSeparator(t,r),_=t.message;this.align==="right"&&(_=_.padStart(this.longest+1," ")),this.align==="left"&&(_=_.padEnd(this.longest+1," "));let w=this.values[o]=l||u,B=l?"success":"dark";await v.call(t,w,this.state)!==!0&&(B="danger");let O=n[B],C=O(await this.indicator(t,r))+(t.pad||""),j=this.indent(t),I=()=>[j,C,_+g,l,y].filter(Boolean).join(" ");if(i.submitted)return _=Zp.unstyle(_),l=h(l),y="",I();if(t.format)l=await t.format.call(this,l,t,r);else{let N=this.styles.muted;l=Jp(this,{input:l,initial:u,pos:s,showCursor:D,color:N})}return this.isValue(l)||(l=this.styles.muted(this.symbols.ellipsis)),t.result&&(this.values[o]=await t.result.call(this,w,t,r)),D&&(_=f(_)),t.error?l+=(l?" ":"")+p(t.error.trim()):t.hint&&(l+=(l?" ":"")+c(t.hint.trim())),I()}async submit(){return this.value=this.values,super.base.submit.call(this)}};Da.exports=In});var On=S((my,Ea)=>{"use strict";var ed=Qr(),td=()=>{throw new Error("expected prompt to have a custom authenticate method")},ya=(e=td)=>{class t extends ed{constructor(i){super(i)}async submit(){this.value=await e.call(this,this.values,this.state),super.base.submit.call(this)}static create(i){return ya(i)}}return t};Ea.exports=ya()});var Ca=S((gy,ba)=>{"use strict";var rd=On();function id(e,t){return e.username===this.options.username&&e.password===this.options.password}var wa=(e=id)=>{let t=[{name:"username",message:"username"},{name:"password",message:"password",format(i){return this.options.showPassword?i:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(i.length))}}];class r extends rd.create(e){constructor(n){super({...n,choices:t})}static create(n){return wa(n)}}return r};ba.exports=wa()});var Zr=S((Dy,Aa)=>{"use strict";var nd=Yt(),{isPrimitive:sd,hasColor:ud}=ke(),qn=class extends nd{constructor(t){super(t),this.cursorHide()}async initialize(){let t=await this.resolve(this.initial,this.state);this.input=await this.cast(t),await super.initialize()}dispatch(t){return this.isValue(t)?(this.input=t,this.submit()):this.alert()}format(t){let{styles:r,state:i}=this;return i.submitted?r.success(t):r.primary(t)}cast(t){return this.isTrue(t)}isTrue(t){return/^[ty1]/i.test(t)}isFalse(t){return/^[fn0]/i.test(t)}isValue(t){return sd(t)&&(this.isTrue(t)||this.isFalse(t))}async hint(){if(this.state.status==="pending"){let t=await this.element("hint");return ud(t)?t:this.styles.muted(t)}}async render(){let{input:t,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),u=this.styles.muted(this.default),o=[i,s,u,n].filter(Boolean).join(" ");this.state.prompt=o;let a=await this.header(),l=this.value=this.cast(t),c=await this.format(l),h=await this.error()||await this.hint(),f=await this.footer();h&&!o.includes(h)&&(c+=" "+h),o+=" "+c,this.clear(r),this.write([a,o,f].filter(Boolean).join(`
29
+ `)),this.restore()}set value(t){super.value=t}get value(){return this.cast(super.value)}};Aa.exports=qn});var Fa=S((yy,xa)=>{"use strict";var od=Zr(),Nn=class extends od{constructor(t){super(t),this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};xa.exports=Nn});var va=S((Ey,_a)=>{"use strict";var ad=yt(),ld=Qr(),Qt=ld.prototype,Pn=class extends ad{constructor(t){super({...t,multiple:!0}),this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(t,r){let i=this.focused,n=i.parent||{};return!i.editable&&!n.editable&&(t==="a"||t==="i")?super[t]():Qt.dispatch.call(this,t,r)}append(t,r){return Qt.append.call(this,t,r)}delete(t,r){return Qt.delete.call(this,t,r)}space(t){return this.focused.editable?this.append(t):super.space()}number(t){return this.focused.editable?this.append(t):super.number(t)}next(){return this.focused.editable?Qt.next.call(this):super.next()}prev(){return this.focused.editable?Qt.prev.call(this):super.prev()}async indicator(t,r){let i=t.indicator||"",n=t.editable?i:super.indicator(t,r);return await this.resolve(n,this.state,t,r)||""}indent(t){return t.role==="heading"?"":t.editable?" ":" "}async renderChoice(t,r){return t.indent="",t.editable?Qt.renderChoice.call(this,t,r):super.renderChoice(t,r)}error(){return""}footer(){return this.state.error}async validate(){let t=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let i=r.parent?this.value[r.parent.name]:this.value;if(r.editable?i=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(i=r.enabled===!0),t=await r.validate(i,this.state),t!==!0)break}return t!==!0&&(this.state.error=typeof t=="string"?t:"Invalid Input"),t}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(t=>t.newChoice))return this.alert();this.value={};for(let t of this.choices){let r=t.parent?this.value[t.parent.name]:this.value;if(t.role==="heading"){this.value[t.name]={};continue}t.editable?r[t.name]=t.value===t.name?t.initial||"":t.value:this.isDisabled(t)||(r[t.name]=t.enabled===!0)}return this.base.submit.call(this)}};_a.exports=Pn});var It=S((wy,Sa)=>{"use strict";var cd=Yt(),hd=Tn(),{isPrimitive:fd}=ke(),Mn=class extends cd{constructor(t){super(t),this.initial=fd(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[]}async keypress(t,r={}){let i=this.state.prevKeypress;return this.state.prevKeypress=r,this.options.multiline===!0&&r.name==="return"&&(!i||i.name!=="return")?this.append(`
30
+ `,r):super.keypress(t,r)}moveCursor(t){this.cursor+=t}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(t,r){if(!t||r.ctrl||r.code)return this.alert();this.append(t)}append(t){let{cursor:r,input:i}=this.state;this.input=`${i}`.slice(0,r)+t+`${i}`.slice(r),this.moveCursor(String(t).length),this.render()}insert(t){this.append(t)}delete(){let{cursor:t,input:r}=this.state;if(t<=0)return this.alert();this.input=`${r}`.slice(0,t-1)+`${r}`.slice(t),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:t,input:r}=this.state;if(r[t]===void 0)return this.alert();this.input=`${r}`.slice(0,t)+`${r}`.slice(t+1),this.render()}cutForward(){let t=this.cursor;if(this.input.length<=t)return this.alert();this.state.clipboard.push(this.input.slice(t)),this.input=this.input.slice(0,t),this.render()}cutLeft(){let t=this.cursor;if(t===0)return this.alert();let r=this.input.slice(0,t),i=this.input.slice(t),n=r.split(" ");this.state.clipboard.push(n.pop()),this.input=n.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let t=this.initial!=null?String(this.initial):"";if(!t||!t.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(t){return!!t}async format(t=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(t||r):hd(this,{input:t,initial:r,pos:this.cursor})}async render(){let t=this.state.size,r=await this.prefix(),i=await this.separator(),n=await this.message(),s=[r,n,i].filter(Boolean).join(" ");this.state.prompt=s;let u=await this.header(),o=await this.format(),a=await this.error()||await this.hint(),l=await this.footer();a&&!o.includes(a)&&(o+=" "+a),s+=" "+o,this.clear(t),this.write([u,s,l].filter(Boolean).join(`
31
+ `)),this.restore()}};Sa.exports=Mn});var Ba=S((by,ka)=>{"use strict";var pd=e=>e.filter((t,r)=>e.lastIndexOf(t)===r),Xr=e=>pd(e).filter(Boolean);ka.exports=(e,t={},r="")=>{let{past:i=[],present:n=""}=t,s,u;switch(e){case"prev":case"undo":return s=i.slice(0,i.length-1),u=i[i.length-1]||"",{past:Xr([r,...s]),present:u};case"next":case"redo":return s=i.slice(1),u=i[0]||"",{past:Xr([...s,r]),present:u};case"save":return{past:Xr([...i,r]),present:""};case"remove":return u=Xr(i.filter(o=>o!==r)),n="",u.length&&(n=u.pop()),{past:u,present:n};default:throw new Error(`Invalid action: "${e}"`)}}});var zn=S((Cy,La)=>{"use strict";var dd=It(),Ra=Ba(),Hn=class extends dd{constructor(t){super(t);let r=this.options.history;if(r&&r.store){let i=r.values||this.initial;this.autosave=!!r.autosave,this.store=r.store,this.data=this.store.get("values")||{past:[],present:i},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(t){return this.store?(this.data=Ra(t,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){this.store&&(this.data=Ra("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};La.exports=Hn});var Ia=S((Ay,Ta)=>{"use strict";var md=It(),$n=class extends md{format(){return""}};Ta.exports=$n});var qa=S((xy,Oa)=>{"use strict";var gd=It(),jn=class extends gd{constructor(t={}){super(t),this.sep=this.options.separator||/, */,this.initial=t.initial||""}split(t=this.value){return t?String(t).split(this.sep):[]}format(){let t=this.state.submitted?this.styles.primary:r=>r;return this.list.map(t).join(", ")}async submit(t){let r=this.state.error||await this.validate(this.list,this.state);return r!==!0?(this.state.error=r,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};Oa.exports=jn});var Pa=S((Fy,Na)=>{"use strict";var Dd=yt(),Vn=class extends Dd{constructor(t){super({...t,multiple:!0})}};Na.exports=Vn});var Un=S((_y,Ma)=>{"use strict";var yd=It(),Gn=class extends yd{constructor(t={}){super({style:"number",...t}),this.min=this.isValue(t.min)?this.toNumber(t.min):-1/0,this.max=this.isValue(t.max)?this.toNumber(t.max):1/0,this.delay=t.delay!=null?t.delay:1e3,this.float=t.float!==!1,this.round=t.round===!0||t.float===!1,this.major=t.major||10,this.minor=t.minor||1,this.initial=t.initial!=null?t.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(t){return!/[-+.]/.test(t)||t==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(t)}number(t){return super.append(t)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(t){let r=t||this.minor,i=this.toNumber(this.input);return i>this.max+r?this.alert():(this.input=`${i+r}`,this.render())}down(t){let r=t||this.minor,i=this.toNumber(this.input);return i<this.min-r?this.alert():(this.input=`${i-r}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(t=this.input){return typeof this.options.format=="function"?this.options.format.call(this,t):this.styles.info(t)}toNumber(t=""){return this.float?+t:Math.round(+t)}isValue(t){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(t)}submit(){let t=[this.input,this.initial].find(r=>this.isValue(r));return this.value=this.toNumber(t||0),super.submit()}};Ma.exports=Gn});var za=S((vy,Ha)=>{Ha.exports=Un()});var ja=S((Sy,$a)=>{"use strict";var Ed=It(),Wn=class extends Ed{constructor(t){super(t),this.cursorShow()}format(t=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(t.length)):""}};$a.exports=Wn});var Ua=S((ky,Ga)=>{"use strict";var wd=Qe(),bd=dr(),Va=ke(),Kn=class extends bd{constructor(t={}){super(t),this.widths=[].concat(t.messageWidth||50),this.align=[].concat(t.align||"left"),this.linebreak=t.linebreak||!1,this.edgeLength=t.edgeLength||3,this.newline=t.newline||`
32
+ `;let r=t.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((i,n)=>({name:n+r})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let t=0;for(let r of this.choices){t=Math.max(t,r.message.length),r.scaleIndex=r.initial||2,r.scale=[];for(let i=0;i<this.scale.length;i++)r.scale.push({index:i})}this.widths[0]=Math.min(this.widths[0],t+3)}async dispatch(t,r){if(this.multiple)return this[r.name]?await this[r.name](t,r):await super.dispatch(t,r);this.alert()}heading(t,r,i){return this.styles.strong(t)}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let t=this.focused;return t.scaleIndex>=this.scale.length-1?this.alert():(t.scaleIndex++,this.render())}left(){let t=this.focused;return t.scaleIndex<=0?this.alert():(t.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.index)).join(", "):""}pointer(){return""}renderScaleKey(){return this.scaleKey===!1||this.state.submitted?"":["",...this.scale.map(i=>` ${i.name} - ${i.message}`)].map(i=>this.styles.muted(i)).join(`
33
+ `)}renderScaleHeading(t){let r=this.scale.map(a=>a.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,t));let i=this.scaleLength-r.join("").length,n=Math.round(i/(r.length-1)),u=r.map(a=>this.styles.strong(a)).join(" ".repeat(n)),o=" ".repeat(this.widths[0]);return this.margin[3]+o+this.margin[1]+u}scaleIndicator(t,r,i){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,t,r,i);let n=t.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):n?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(t,r){let i=t.scale.map(s=>this.scaleIndicator(t,s,r)),n=this.term==="Hyper"?"":" ";return i.join(n+this.symbols.line.repeat(this.edgeLength))}async renderChoice(t,r){await this.onChoice(t,r);let i=this.index===r,n=await this.pointer(t,r),s=await t.hint;s&&!Va.hasColor(s)&&(s=this.styles.muted(s));let u=y=>this.margin[3]+y.replace(/\s+$/,"").padEnd(this.widths[0]," "),o=this.newline,a=this.indent(t),l=await this.resolve(t.message,this.state,t,r),c=await this.renderScale(t,r),h=this.margin[1]+this.margin[3];this.scaleLength=wd.unstyle(c).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-h.length);let p=Va.wordWrap(l,{width:this.widths[0],newline:o}).split(`
34
+ `).map(y=>u(y)+this.margin[1]);return i&&(c=this.styles.info(c),p=p.map(y=>this.styles.info(y))),p[0]+=c,this.linebreak&&p.push(""),[a+n,p.join(`
35
+ `)].filter(Boolean)}async renderChoices(){if(this.state.submitted)return"";this.tableize();let t=this.visible.map(async(n,s)=>await this.renderChoice(n,s)),r=await Promise.all(t),i=await this.renderScaleHeading();return this.margin[0]+[i,...r.map(n=>n.join(" "))].join(`
36
+ `)}async render(){let{submitted:t,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),u="";this.options.promptLine!==!1&&(u=[i,s,n,""].join(" "),this.state.prompt=u);let o=await this.header(),a=await this.format(),l=await this.renderScaleKey(),c=await this.error()||await this.hint(),h=await this.renderChoices(),f=await this.footer(),p=this.emptyError;a&&(u+=a),c&&!u.includes(c)&&(u+=" "+c),t&&!a&&!h.trim()&&this.multiple&&p!=null&&(u+=this.styles.danger(p)),this.clear(r),this.write([o,u,l,h,f].filter(Boolean).join(`
37
+ `)),this.state.submitted||this.write(this.margin[2]),this.restore()}submit(){this.value={};for(let t of this.choices)this.value[t.name]=t.scaleIndex;return this.base.submit.call(this)}};Ga.exports=Kn});var Ya=S((By,Ka)=>{"use strict";var Wa=Qe(),Cd=(e="")=>typeof e=="string"?e.replace(/^['"]|['"]$/g,""):"",Qn=class{constructor(t){this.name=t.key,this.field=t.field||{},this.value=Cd(t.initial||this.field.initial||""),this.message=t.message||this.name,this.cursor=0,this.input="",this.lines=[]}},Ad=async(e={},t={},r=i=>i)=>{let i=new Set,n=e.fields||[],s=e.template,u=[],o=[],a=[],l=1;typeof s=="function"&&(s=await s());let c=-1,h=()=>s[++c],f=()=>s[c+1],p=y=>{y.line=l,u.push(y)};for(p({type:"bos",value:""});c<s.length-1;){let y=h();if(/^[^\S\n ]$/.test(y)){p({type:"text",value:y});continue}if(y===`
38
+ `){p({type:"newline",value:y}),l++;continue}if(y==="\\"){y+=h(),p({type:"text",value:y});continue}if((y==="$"||y==="#"||y==="{")&&f()==="{"){let v=h();y+=v;let g={type:"template",open:y,inner:"",close:"",value:y},_;for(;_=h();){if(_==="}"){f()==="}"&&(_+=h()),g.value+=_,g.close=_;break}_===":"?(g.initial="",g.key=g.inner):g.initial!==void 0&&(g.initial+=_),g.value+=_,g.inner+=_}g.template=g.open+(g.initial||g.inner)+g.close,g.key=g.key||g.inner,t.hasOwnProperty(g.key)&&(g.initial=t[g.key]),g=r(g),p(g),a.push(g.key),i.add(g.key);let w=o.find(B=>B.name===g.key);g.field=n.find(B=>B.name===g.key),w||(w=new Qn(g),o.push(w)),w.lines.push(g.line-1);continue}let D=u[u.length-1];D.type==="text"&&D.line===l?D.value+=y:p({type:"text",value:y})}return p({type:"eos",value:""}),{input:s,tabstops:u,unique:i,keys:a,items:o}};Ka.exports=async e=>{let t=e.options,r=new Set(t.required===!0?[]:t.required||[]),i={...t.values,...t.initial},{tabstops:n,items:s,keys:u}=await Ad(t,i),o=Yn("result",e,t),a=Yn("format",e,t),l=Yn("validate",e,t,!0),c=e.isValue.bind(e);return async(h={},f=!1)=>{let p=0;h.required=r,h.items=s,h.keys=u,h.output="";let y=async(_,w,B,O)=>{let C=await l(_,w,B,O);return C===!1?"Invalid field "+B.name:C};for(let _ of n){let w=_.value,B=_.key;if(_.type!=="template"){w&&(h.output+=w);continue}if(_.type==="template"){let O=s.find(z=>z.name===B);t.required===!0&&h.required.add(O.name);let C=[O.input,h.values[O.value],O.value,w].find(c),I=(O.field||{}).message||_.inner;if(f){let z=await y(h.values[B],h,O,p);if(z&&typeof z=="string"||z===!1){h.invalid.set(B,z);continue}h.invalid.delete(B);let A=await o(h.values[B],h,O,p);h.output+=Wa.unstyle(A);continue}O.placeholder=!1;let N=w;w=await a(w,h,O,p),C!==w?(h.values[B]=C,w=e.styles.typing(C),h.missing.delete(I)):(h.values[B]=void 0,C=`<${I}>`,w=e.styles.primary(C),O.placeholder=!0,h.required.has(B)&&h.missing.add(I)),h.missing.has(I)&&h.validating&&(w=e.styles.warning(C)),h.invalid.has(B)&&h.validating&&(w=e.styles.danger(C)),p===h.index&&(N!==w?w=e.styles.underline(w):w=e.styles.heading(Wa.unstyle(w))),p++}w&&(h.output+=w)}let D=h.output.split(`
39
+ `).map(_=>" "+_),v=s.length,g=0;for(let _ of s)h.invalid.has(_.name)&&_.lines.forEach(w=>{D[w][0]===" "&&(D[w]=h.styles.danger(h.symbols.bullet)+D[w].slice(1))}),e.isValue(h.values[_.name])&&g++;return h.completed=(g/v*100).toFixed(0),h.output=D.join(`
40
+ `),h.output}};function Yn(e,t,r,i){return(n,s,u,o)=>typeof u.field[e]=="function"?u.field[e].call(t,n,s,u,o):[i,n].find(a=>t.isValue(a))}});var Za=S((Ry,Qa)=>{"use strict";var xd=Qe(),Fd=Ya(),_d=Yt(),Zn=class extends _d{constructor(t){super(t),this.cursorHide(),this.reset(!0)}async initialize(){this.interpolate=await Fd(this),await super.initialize()}async reset(t){this.state.keys=[],this.state.invalid=new Map,this.state.missing=new Set,this.state.completed=0,this.state.values={},t!==!0&&(await this.initialize(),await this.render())}moveCursor(t){let r=this.getItem();this.cursor+=t,r.cursor+=t}dispatch(t,r){if(!r.code&&!r.ctrl&&t!=null&&this.getItem()){this.append(t,r);return}this.alert()}append(t,r){let i=this.getItem(),n=i.input.slice(0,this.cursor),s=i.input.slice(this.cursor);this.input=i.input=`${n}${t}${s}`,this.moveCursor(1),this.render()}delete(){let t=this.getItem();if(this.cursor<=0||!t.input)return this.alert();let r=t.input.slice(this.cursor),i=t.input.slice(0,this.cursor-1);this.input=t.input=`${i}${r}`,this.moveCursor(-1),this.render()}increment(t){return t>=this.state.keys.length-1?0:t+1}decrement(t){return t<=0?this.state.keys.length-1:t-1}first(){this.state.index=0,this.render()}last(){this.state.index=this.state.keys.length-1,this.render()}right(){if(this.cursor>=this.input.length)return this.alert();this.moveCursor(1),this.render()}left(){if(this.cursor<=0)return this.alert();this.moveCursor(-1),this.render()}prev(){this.state.index=this.decrement(this.state.index),this.getItem(),this.render()}next(){this.state.index=this.increment(this.state.index),this.getItem(),this.render()}up(){this.prev()}down(){this.next()}format(t){let r=this.state.completed<100?this.styles.warning:this.styles.success;return this.state.submitted===!0&&this.state.completed!==100&&(r=this.styles.danger),r(`${this.state.completed}% completed`)}async render(){let{index:t,keys:r=[],submitted:i,size:n}=this.state,s=[this.options.newline,`
41
+ `].find(_=>_!=null),u=await this.prefix(),o=await this.separator(),a=await this.message(),l=[u,a,o].filter(Boolean).join(" ");this.state.prompt=l;let c=await this.header(),h=await this.error()||"",f=await this.hint()||"",p=i?"":await this.interpolate(this.state),y=this.state.key=r[t]||"",D=await this.format(y),v=await this.footer();D&&(l+=" "+D),f&&!D&&this.state.completed===0&&(l+=" "+f),this.clear(n);let g=[c,l,p,v,h.trim()];this.write(g.filter(Boolean).join(s)),this.restore()}getItem(t){let{items:r,keys:i,index:n}=this.state,s=r.find(u=>u.name===i[n]);return s&&s.input!=null&&(this.input=s.input,this.cursor=s.cursor),s}async submit(){typeof this.interpolate!="function"&&await this.initialize(),await this.interpolate(this.state,!0);let{invalid:t,missing:r,output:i,values:n}=this.state;if(t.size){let o="";for(let[a,l]of t)o+=`Invalid ${a}: ${l}
42
+ `;return this.state.error=o,super.submit()}if(r.size)return this.state.error="Required: "+[...r.keys()].join(", "),super.submit();let u=xd.unstyle(i).split(`
43
+ `).map(o=>o.slice(1)).join(`
44
+ `);return this.value={values:n,result:u},super.submit()}};Qa.exports=Zn});var Ja=S((Ly,Xa)=>{"use strict";var vd="(Use <shift>+<up/down> to sort)",Sd=yt(),Xn=class extends Sd{constructor(t){super({...t,reorder:!1,sort:!0,multiple:!0}),this.state.hint=[this.options.hint,vd].find(this.isValue.bind(this))}indicator(){return""}async renderChoice(t,r){let i=await super.renderChoice(t,r),n=this.symbols.identicalTo+" ",s=this.index===r&&this.sorting?this.styles.muted(n):" ";return this.options.drag===!1&&(s=""),this.options.numbered===!0?s+`${r+1} - `+i:s+i}get selected(){return this.choices}submit(){return this.value=this.choices.map(t=>t.value),super.submit()}};Xa.exports=Xn});var tl=S((Ty,el)=>{"use strict";var kd=dr(),Jn=class extends kd{constructor(t={}){if(super(t),this.emptyError=t.emptyError||"No items were selected",this.term=process.env.TERM_PROGRAM,!this.options.header){let r=["","4 - Strongly Agree","3 - Agree","2 - Neutral","1 - Disagree","0 - Strongly Disagree",""];r=r.map(i=>this.styles.muted(i)),this.state.header=r.join(`
45
+ `)}}async toChoices(...t){if(this.createdScales)return!1;this.createdScales=!0;let r=await super.toChoices(...t);for(let i of r)i.scale=Bd(5,this.options),i.scaleIdx=2;return r}dispatch(){this.alert()}space(){let t=this.focused,r=t.scale[t.scaleIdx],i=r.selected;return t.scale.forEach(n=>n.selected=!1),r.selected=!i,this.render()}indicator(){return""}pointer(){return""}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let t=this.focused;return t.scaleIdx>=t.scale.length-1?this.alert():(t.scaleIdx++,this.render())}left(){let t=this.focused;return t.scaleIdx<=0?this.alert():(t.scaleIdx--,this.render())}indent(){return" "}async renderChoice(t,r){await this.onChoice(t,r);let i=this.index===r,n=this.term==="Hyper",s=n?9:8,u=n?"":" ",o=this.symbols.line.repeat(s),a=" ".repeat(s+(n?0:1)),l=w=>(w?this.styles.success("\u25C9"):"\u25EF")+u,c=r+1+".",h=i?this.styles.heading:this.styles.noop,f=await this.resolve(t.message,this.state,t,r),p=this.indent(t),y=p+t.scale.map((w,B)=>l(B===t.scaleIdx)).join(o),D=w=>w===t.scaleIdx?h(w):w,v=p+t.scale.map((w,B)=>D(B)).join(a),g=()=>[c,f].filter(Boolean).join(" "),_=()=>[g(),y,v," "].filter(Boolean).join(`
46
+ `);return i&&(y=this.styles.cyan(y),v=this.styles.cyan(v)),_()}async renderChoices(){if(this.state.submitted)return"";let t=this.visible.map(async(i,n)=>await this.renderChoice(i,n)),r=await Promise.all(t);return r.length||r.push(this.styles.danger("No matching choices")),r.join(`
47
+ `)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:t,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),u=[i,s,n].filter(Boolean).join(" ");this.state.prompt=u;let o=await this.header(),a=await this.format(),l=await this.error()||await this.hint(),c=await this.renderChoices(),h=await this.footer();(a||!l)&&(u+=" "+a),l&&!u.includes(l)&&(u+=" "+l),t&&!a&&!c&&this.multiple&&this.type!=="form"&&(u+=this.styles.danger(this.emptyError)),this.clear(r),this.write([u,o,c,h].filter(Boolean).join(`
48
+ `)),this.restore()}submit(){this.value={};for(let t of this.choices)this.value[t.name]=t.scaleIdx;return this.base.submit.call(this)}};function Bd(e,t={}){if(Array.isArray(t.scale))return t.scale.map(i=>({...i}));let r=[];for(let i=1;i<e+1;i++)r.push({i,selected:!1});return r}el.exports=Jn});var il=S((Iy,rl)=>{rl.exports=zn()});var sl=S((Oy,nl)=>{"use strict";var Rd=Zr(),es=class extends Rd{async initialize(){await super.initialize(),this.value=this.initial=!!this.options.initial,this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(t="",r){switch(t.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let t=i=>this.styles.primary.underline(i);return[this.value?this.disabled:t(this.disabled),this.value?t(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:t}=this.state,r=await this.header(),i=await this.prefix(),n=await this.separator(),s=await this.message(),u=await this.format(),o=await this.error()||await this.hint(),a=await this.footer(),l=[i,s,n,u].join(" ");this.state.prompt=l,o&&!l.includes(o)&&(l+=" "+o),this.clear(t),this.write([r,l,a].filter(Boolean).join(`
49
+ `)),this.write(this.margin[2]),this.restore()}};nl.exports=es});var ol=S((qy,ul)=>{"use strict";var Ld=yt(),ts=class extends Ld{constructor(t){if(super(t),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(t,r){let i=await super.toChoices(t,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(t){return t.index===this.options.correctChoice}async result(t){return{selectedAnswer:t,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};ul.exports=ts});var ll=S(rs=>{"use strict";var al=ke(),De=(e,t)=>{al.defineExport(rs,e,t),al.defineExport(rs,e.toLowerCase(),t)};De("AutoComplete",()=>ma());De("BasicAuth",()=>Ca());De("Confirm",()=>Fa());De("Editable",()=>va());De("Form",()=>Qr());De("Input",()=>zn());De("Invisible",()=>Ia());De("List",()=>qa());De("MultiSelect",()=>Pa());De("Numeral",()=>za());De("Password",()=>ja());De("Scale",()=>Ua());De("Select",()=>yt());De("Snippet",()=>Za());De("Sort",()=>Ja());De("Survey",()=>tl());De("Text",()=>il());De("Toggle",()=>sl());De("Quiz",()=>ol())});var hl=S((Py,cl)=>{cl.exports={ArrayPrompt:dr(),AuthPrompt:On(),BooleanPrompt:Zr(),NumberPrompt:Un(),StringPrompt:It()}});var dl=S((My,pl)=>{"use strict";var fl=require("assert"),ns=require("events"),Et=ke(),Xe=class extends ns{constructor(t,r){super(),this.options=Et.merge({},t),this.answers={...r}}register(t,r){if(Et.isObject(t)){for(let n of Object.keys(t))this.register(n,t[n]);return this}fl.equal(typeof r,"function","expected a function");let i=t.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[i]=r:this.prompts[i]=r(this.Prompt,this),this}async prompt(t=[]){for(let r of[].concat(t))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Et.merge({},this.options,r))}catch(i){return Promise.reject(i)}return this.answers}async ask(t){typeof t=="function"&&(t=await t.call(this));let r=Et.merge({},this.options,t),{type:i,name:n}=t,{set:s,get:u}=Et;if(typeof i=="function"&&(i=await i.call(this,t,this.answers)),!i)return this.answers[n];fl(this.prompts[i],`Prompt "${i}" is not registered`);let o=new this.prompts[i](r),a=u(this.answers,n);o.state.answers=this.answers,o.enquirer=this,n&&o.on("submit",c=>{this.emit("answer",n,c,o),s(this.answers,n,c)});let l=o.emit.bind(o);return o.emit=(...c)=>(this.emit.call(this,...c),l(...c)),this.emit("prompt",o,this),r.autofill&&a!=null?(o.value=o.input=a,r.autofill==="show"&&await o.submit()):a=o.value=await o.run(),a}use(t){return t.call(this,this),this}set Prompt(t){this._Prompt=t}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(t){this._Prompt=t}static get Prompt(){return this._Prompt||Yt()}static get prompts(){return ll()}static get types(){return hl()}static get prompt(){let t=(r,...i)=>{let n=new this(...i),s=n.emit.bind(n);return n.emit=(...u)=>(t.emit(...u),s(...u)),n.prompt(r)};return Et.mixinEmitter(t,new ns),t}};Et.mixinEmitter(Xe,new ns);var is=Xe.prompts;for(let e of Object.keys(is)){let t=e.toLowerCase(),r=i=>new is[e](i).run();Xe.prompt[t]=r,Xe[t]=r,Xe[e]||Reflect.defineProperty(Xe,e,{get:()=>is[e]})}var mr=e=>{Et.defineExport(Xe,e,()=>Xe.types[e])};mr("ArrayPrompt");mr("AuthPrompt");mr("BooleanPrompt");mr("NumberPrompt");mr("StringPrompt");pl.exports=Xe});var gr=S((Hy,El)=>{"use strict";var Td=require("path"),tt="\\\\/",ml=`[^${tt}]`,ct="\\.",Id="\\+",Od="\\?",Jr="\\/",qd="(?=.)",gl="[^/]",ss=`(?:${Jr}|$)`,Dl=`(?:^|${Jr})`,us=`${ct}{1,2}${ss}`,Nd=`(?!${ct})`,Pd=`(?!${Dl}${us})`,Md=`(?!${ct}{0,1}${ss})`,Hd=`(?!${us})`,zd=`[^.${Jr}]`,$d=`${gl}*?`,yl={DOT_LITERAL:ct,PLUS_LITERAL:Id,QMARK_LITERAL:Od,SLASH_LITERAL:Jr,ONE_CHAR:qd,QMARK:gl,END_ANCHOR:ss,DOTS_SLASH:us,NO_DOT:Nd,NO_DOTS:Pd,NO_DOT_SLASH:Md,NO_DOTS_SLASH:Hd,QMARK_NO_DOT:zd,STAR:$d,START_ANCHOR:Dl},jd={...yl,SLASH_LITERAL:`[${tt}]`,QMARK:ml,STAR:`${ml}*?`,DOTS_SLASH:`${ct}{1,2}(?:[${tt}]|$)`,NO_DOT:`(?!${ct})`,NO_DOTS:`(?!(?:^|[${tt}])${ct}{1,2}(?:[${tt}]|$))`,NO_DOT_SLASH:`(?!${ct}{0,1}(?:[${tt}]|$))`,NO_DOTS_SLASH:`(?!${ct}{1,2}(?:[${tt}]|$))`,QMARK_NO_DOT:`[^.${tt}]`,START_ANCHOR:`(?:^|[${tt}])`,END_ANCHOR:`(?:[${tt}]|$)`},Vd={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};El.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Vd,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Td.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?jd:yl}}});var ei=S(Ne=>{"use strict";var Gd=require("path"),Ud=process.platform==="win32",{REGEX_BACKSLASH:Wd,REGEX_REMOVE_BACKSLASH:Kd,REGEX_SPECIAL_CHARS:Yd,REGEX_SPECIAL_CHARS_GLOBAL:Qd}=gr();Ne.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Ne.hasRegexChars=e=>Yd.test(e);Ne.isRegexChar=e=>e.length===1&&Ne.hasRegexChars(e);Ne.escapeRegex=e=>e.replace(Qd,"\\$1");Ne.toPosixSlashes=e=>e.replace(Wd,"/");Ne.removeBackslashes=e=>e.replace(Kd,t=>t==="\\"?"":t);Ne.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};Ne.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Ud===!0||Gd.sep==="\\";Ne.escapeLast=(e,t,r)=>{let i=e.lastIndexOf(t,r);return i===-1?e:e[i-1]==="\\"?Ne.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`};Ne.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Ne.wrapOutput=(e,t={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${e})${n}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var vl=S(($y,_l)=>{"use strict";var wl=ei(),{CHAR_ASTERISK:os,CHAR_AT:Zd,CHAR_BACKWARD_SLASH:Dr,CHAR_COMMA:Xd,CHAR_DOT:as,CHAR_EXCLAMATION_MARK:ls,CHAR_FORWARD_SLASH:Fl,CHAR_LEFT_CURLY_BRACE:cs,CHAR_LEFT_PARENTHESES:hs,CHAR_LEFT_SQUARE_BRACKET:Jd,CHAR_PLUS:e0,CHAR_QUESTION_MARK:bl,CHAR_RIGHT_CURLY_BRACE:t0,CHAR_RIGHT_PARENTHESES:Cl,CHAR_RIGHT_SQUARE_BRACKET:r0}=gr(),Al=e=>e===Fl||e===Dr,xl=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},i0=(e,t)=>{let r=t||{},i=e.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],u=[],o=[],a=e,l=-1,c=0,h=0,f=!1,p=!1,y=!1,D=!1,v=!1,g=!1,_=!1,w=!1,B=!1,O=!1,C=0,j,I,N={value:"",depth:0,isGlob:!1},z=()=>l>=i,A=()=>a.charCodeAt(l+1),H=()=>(j=I,a.charCodeAt(++l));for(;l<i;){I=H();let ee;if(I===Dr){_=N.backslashes=!0,I=H(),I===cs&&(g=!0);continue}if(g===!0||I===cs){for(C++;z()!==!0&&(I=H());){if(I===Dr){_=N.backslashes=!0,H();continue}if(I===cs){C++;continue}if(g!==!0&&I===as&&(I=H())===as){if(f=N.isBrace=!0,y=N.isGlob=!0,O=!0,n===!0)continue;break}if(g!==!0&&I===Xd){if(f=N.isBrace=!0,y=N.isGlob=!0,O=!0,n===!0)continue;break}if(I===t0&&(C--,C===0)){g=!1,f=N.isBrace=!0,O=!0;break}}if(n===!0)continue;break}if(I===Fl){if(s.push(l),u.push(N),N={value:"",depth:0,isGlob:!1},O===!0)continue;if(j===as&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(I===e0||I===Zd||I===os||I===bl||I===ls)===!0&&A()===hs){if(y=N.isGlob=!0,D=N.isExtglob=!0,O=!0,I===ls&&l===c&&(B=!0),n===!0){for(;z()!==!0&&(I=H());){if(I===Dr){_=N.backslashes=!0,I=H();continue}if(I===Cl){y=N.isGlob=!0,O=!0;break}}continue}break}if(I===os){if(j===os&&(v=N.isGlobstar=!0),y=N.isGlob=!0,O=!0,n===!0)continue;break}if(I===bl){if(y=N.isGlob=!0,O=!0,n===!0)continue;break}if(I===Jd){for(;z()!==!0&&(ee=H());){if(ee===Dr){_=N.backslashes=!0,H();continue}if(ee===r0){p=N.isBracket=!0,y=N.isGlob=!0,O=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&I===ls&&l===c){w=N.negated=!0,c++;continue}if(r.noparen!==!0&&I===hs){if(y=N.isGlob=!0,n===!0){for(;z()!==!0&&(I=H());){if(I===hs){_=N.backslashes=!0,I=H();continue}if(I===Cl){O=!0;break}}continue}break}if(y===!0){if(O=!0,n===!0)continue;break}}r.noext===!0&&(D=!1,y=!1);let L=a,$="",E="";c>0&&($=a.slice(0,c),a=a.slice(c),h-=c),L&&y===!0&&h>0?(L=a.slice(0,h),E=a.slice(h)):y===!0?(L="",E=a):L=a,L&&L!==""&&L!=="/"&&L!==a&&Al(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(E&&(E=wl.removeBackslashes(E)),L&&_===!0&&(L=wl.removeBackslashes(L)));let b={prefix:$,input:e,start:c,base:L,glob:E,isBrace:f,isBracket:p,isGlob:y,isExtglob:D,isGlobstar:v,negated:w,negatedExtglob:B};if(r.tokens===!0&&(b.maxDepth=0,Al(I)||u.push(N),b.tokens=u),r.parts===!0||r.tokens===!0){let ee;for(let G=0;G<s.length;G++){let fe=ee?ee+1:c,d=s[G],ue=e.slice(fe,d);r.tokens&&(G===0&&c!==0?(u[G].isPrefix=!0,u[G].value=$):u[G].value=ue,xl(u[G]),b.maxDepth+=u[G].depth),(G!==0||ue!=="")&&o.push(ue),ee=d}if(ee&&ee+1<e.length){let G=e.slice(ee+1);o.push(G),r.tokens&&(u[u.length-1].value=G,xl(u[u.length-1]),b.maxDepth+=u[u.length-1].depth)}b.slashes=s,b.parts=o}return b};_l.exports=i0});var Bl=S((jy,kl)=>{"use strict";var ti=gr(),He=ei(),{MAX_LENGTH:ri,POSIX_REGEX_SOURCE:n0,REGEX_NON_SPECIAL_CHARS:s0,REGEX_SPECIAL_CHARS_BACKREF:u0,REPLACEMENTS:Sl}=ti,o0=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(n=>He.escapeRegex(n)).join("..")}return r},Zt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,fs=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Sl[e]||e;let r={...t},i=typeof r.maxLength=="number"?Math.min(ri,r.maxLength):ri,n=e.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},u=[s],o=r.capture?"":"?:",a=He.isWindows(t),l=ti.globChars(a),c=ti.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:p,ONE_CHAR:y,DOTS_SLASH:D,NO_DOT:v,NO_DOT_SLASH:g,NO_DOTS_SLASH:_,QMARK:w,QMARK_NO_DOT:B,STAR:O,START_ANCHOR:C}=l,j=T=>`(${o}(?:(?!${C}${T.dot?D:h}).)*?)`,I=r.dot?"":v,N=r.dot?w:B,z=r.bash===!0?j(r):O;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};e=He.removePrefix(e,A),n=e.length;let H=[],L=[],$=[],E=s,b,ee=()=>A.index===n-1,G=A.peek=(T=1)=>e[A.index+T],fe=A.advance=()=>e[++A.index]||"",d=()=>e.slice(A.index+1),ue=(T="",te=0)=>{A.consumed+=T,A.index+=te},Oe=T=>{A.output+=T.output!=null?T.output:T.value,ue(T.value)},m=()=>{let T=1;for(;G()==="!"&&(G(2)!=="("||G(3)==="?");)fe(),A.start++,T++;return T%2===0?!1:(A.negated=!0,A.start++,!0)},ye=T=>{A[T]++,$.push(T)},Re=T=>{A[T]--,$.pop()},Q=T=>{if(E.type==="globstar"){let te=A.braces>0&&(T.type==="comma"||T.type==="brace"),k=T.extglob===!0||H.length&&(T.type==="pipe"||T.type==="paren");T.type!=="slash"&&T.type!=="paren"&&!te&&!k&&(A.output=A.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=z,A.output+=E.output)}if(H.length&&T.type!=="paren"&&(H[H.length-1].inner+=T.value),(T.value||T.output)&&Oe(T),E&&E.type==="text"&&T.type==="text"){E.value+=T.value,E.output=(E.output||"")+T.value;return}T.prev=E,u.push(T),E=T},rt=(T,te)=>{let k={...c[te],conditions:1,inner:""};k.prev=E,k.parens=A.parens,k.output=A.output;let V=(r.capture?"(":"")+k.open;ye("parens"),Q({type:T,value:te,output:A.output?"":y}),Q({type:"paren",extglob:!0,value:fe(),output:V}),H.push(k)},ge=T=>{let te=T.close+(r.capture?")":""),k;if(T.type==="negate"){let V=z;if(T.inner&&T.inner.length>1&&T.inner.includes("/")&&(V=j(r)),(V!==z||ee()||/^\)+$/.test(d()))&&(te=T.close=`)$))${V}`),T.inner.includes("*")&&(k=d())&&/^\.[^\\/.]+$/.test(k)){let ne=fs(k,{...t,fastpaths:!1}).output;te=T.close=`)${ne})${V})`}T.prev.type==="bos"&&(A.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:b,output:te}),Re("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let T=!1,te=e.replace(u0,(k,V,ne,xe,he,zt)=>xe==="\\"?(T=!0,k):xe==="?"?V?V+xe+(he?w.repeat(he.length):""):zt===0?N+(he?w.repeat(he.length):""):w.repeat(ne.length):xe==="."?h.repeat(ne.length):xe==="*"?V?V+xe+(he?z:""):z:V?k:`\\${k}`);return T===!0&&(r.unescape===!0?te=te.replace(/\\/g,""):te=te.replace(/\\+/g,k=>k.length%2===0?"\\\\":k?"\\":"")),te===e&&r.contains===!0?(A.output=e,A):(A.output=He.wrapOutput(te,A,t),A)}for(;!ee();){if(b=fe(),b==="\0")continue;if(b==="\\"){let k=G();if(k==="/"&&r.bash!==!0||k==="."||k===";")continue;if(!k){b+="\\",Q({type:"text",value:b});continue}let V=/^\\+/.exec(d()),ne=0;if(V&&V[0].length>2&&(ne=V[0].length,A.index+=ne,ne%2!==0&&(b+="\\")),r.unescape===!0?b=fe():b+=fe(),A.brackets===0){Q({type:"text",value:b});continue}}if(A.brackets>0&&(b!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&b===":"){let k=E.value.slice(1);if(k.includes("[")&&(E.posix=!0,k.includes(":"))){let V=E.value.lastIndexOf("["),ne=E.value.slice(0,V),xe=E.value.slice(V+2),he=n0[xe];if(he){E.value=ne+he,A.backtrack=!0,fe(),!s.output&&u.indexOf(E)===1&&(s.output=y);continue}}}(b==="["&&G()!==":"||b==="-"&&G()==="]")&&(b=`\\${b}`),b==="]"&&(E.value==="["||E.value==="[^")&&(b=`\\${b}`),r.posix===!0&&b==="!"&&E.value==="["&&(b="^"),E.value+=b,Oe({value:b});continue}if(A.quotes===1&&b!=='"'){b=He.escapeRegex(b),E.value+=b,Oe({value:b});continue}if(b==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:b});continue}if(b==="("){ye("parens"),Q({type:"paren",value:b});continue}if(b===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Zt("opening","("));let k=H[H.length-1];if(k&&A.parens===k.parens+1){ge(H.pop());continue}Q({type:"paren",value:b,output:A.parens?")":"\\)"}),Re("parens");continue}if(b==="["){if(r.nobracket===!0||!d().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Zt("closing","]"));b=`\\${b}`}else ye("brackets");Q({type:"bracket",value:b});continue}if(b==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){Q({type:"text",value:b,output:`\\${b}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Zt("opening","["));Q({type:"text",value:b,output:`\\${b}`});continue}Re("brackets");let k=E.value.slice(1);if(E.posix!==!0&&k[0]==="^"&&!k.includes("/")&&(b=`/${b}`),E.value+=b,Oe({value:b}),r.literalBrackets===!1||He.hasRegexChars(k))continue;let V=He.escapeRegex(E.value);if(A.output=A.output.slice(0,-E.value.length),r.literalBrackets===!0){A.output+=V,E.value=V;continue}E.value=`(${o}${V}|${E.value})`,A.output+=E.value;continue}if(b==="{"&&r.nobrace!==!0){ye("braces");let k={type:"brace",value:b,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};L.push(k),Q(k);continue}if(b==="}"){let k=L[L.length-1];if(r.nobrace===!0||!k){Q({type:"text",value:b,output:b});continue}let V=")";if(k.dots===!0){let ne=u.slice(),xe=[];for(let he=ne.length-1;he>=0&&(u.pop(),ne[he].type!=="brace");he--)ne[he].type!=="dots"&&xe.unshift(ne[he].value);V=o0(xe,r),A.backtrack=!0}if(k.comma!==!0&&k.dots!==!0){let ne=A.output.slice(0,k.outputIndex),xe=A.tokens.slice(k.tokensIndex);k.value=k.output="\\{",b=V="\\}",A.output=ne;for(let he of xe)A.output+=he.output||he.value}Q({type:"brace",value:b,output:V}),Re("braces"),L.pop();continue}if(b==="|"){H.length>0&&H[H.length-1].conditions++,Q({type:"text",value:b});continue}if(b===","){let k=b,V=L[L.length-1];V&&$[$.length-1]==="braces"&&(V.comma=!0,k="|"),Q({type:"comma",value:b,output:k});continue}if(b==="/"){if(E.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",u.pop(),E=s;continue}Q({type:"slash",value:b,output:p});continue}if(b==="."){if(A.braces>0&&E.type==="dot"){E.value==="."&&(E.output=h);let k=L[L.length-1];E.type="dots",E.output+=b,E.value+=b,k.dots=!0;continue}if(A.braces+A.parens===0&&E.type!=="bos"&&E.type!=="slash"){Q({type:"text",value:b,output:h});continue}Q({type:"dot",value:b,output:h});continue}if(b==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&G()==="("&&G(2)!=="?"){rt("qmark",b);continue}if(E&&E.type==="paren"){let V=G(),ne=b;if(V==="<"&&!He.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(V)||V==="<"&&!/<([!=]|\w+>)/.test(d()))&&(ne=`\\${b}`),Q({type:"text",value:b,output:ne});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){Q({type:"qmark",value:b,output:B});continue}Q({type:"qmark",value:b,output:w});continue}if(b==="!"){if(r.noextglob!==!0&&G()==="("&&(G(2)!=="?"||!/[!=<:]/.test(G(3)))){rt("negate",b);continue}if(r.nonegate!==!0&&A.index===0){m();continue}}if(b==="+"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){rt("plus",b);continue}if(E&&E.value==="("||r.regex===!1){Q({type:"plus",value:b,output:f});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||A.parens>0){Q({type:"plus",value:b});continue}Q({type:"plus",value:f});continue}if(b==="@"){if(r.noextglob!==!0&&G()==="("&&G(2)!=="?"){Q({type:"at",extglob:!0,value:b,output:""});continue}Q({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let k=s0.exec(d());k&&(b+=k[0],A.index+=k[0].length),Q({type:"text",value:b});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=b,E.output=z,A.backtrack=!0,A.globstar=!0,ue(b);continue}let T=d();if(r.noextglob!==!0&&/^\([^?]/.test(T)){rt("star",b);continue}if(E.type==="star"){if(r.noglobstar===!0){ue(b);continue}let k=E.prev,V=k.prev,ne=k.type==="slash"||k.type==="bos",xe=V&&(V.type==="star"||V.type==="globstar");if(r.bash===!0&&(!ne||T[0]&&T[0]!=="/")){Q({type:"star",value:b,output:""});continue}let he=A.braces>0&&(k.type==="comma"||k.type==="brace"),zt=H.length&&(k.type==="pipe"||k.type==="paren");if(!ne&&k.type!=="paren"&&!he&&!zt){Q({type:"star",value:b,output:""});continue}for(;T.slice(0,3)==="/**";){let xt=e[A.index+4];if(xt&&xt!=="/")break;T=T.slice(3),ue("/**",3)}if(k.type==="bos"&&ee()){E.type="globstar",E.value+=b,E.output=j(r),A.output=E.output,A.globstar=!0,ue(b);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&!xe&&ee()){A.output=A.output.slice(0,-(k.output+E.output).length),k.output=`(?:${k.output}`,E.type="globstar",E.output=j(r)+(r.strictSlashes?")":"|$)"),E.value+=b,A.globstar=!0,A.output+=k.output+E.output,ue(b);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&T[0]==="/"){let xt=T[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(k.output+E.output).length),k.output=`(?:${k.output}`,E.type="globstar",E.output=`${j(r)}${p}|${p}${xt})`,E.value+=b,A.output+=k.output+E.output,A.globstar=!0,ue(b+fe()),Q({type:"slash",value:"/",output:""});continue}if(k.type==="bos"&&T[0]==="/"){E.type="globstar",E.value+=b,E.output=`(?:^|${p}|${j(r)}${p})`,A.output=E.output,A.globstar=!0,ue(b+fe()),Q({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-E.output.length),E.type="globstar",E.output=j(r),E.value+=b,A.output+=E.output,A.globstar=!0,ue(b);continue}let te={type:"star",value:b,output:z};if(r.bash===!0){te.output=".*?",(E.type==="bos"||E.type==="slash")&&(te.output=I+te.output),Q(te);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){te.output=b,Q(te);continue}(A.index===A.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(A.output+=g,E.output+=g):r.dot===!0?(A.output+=_,E.output+=_):(A.output+=I,E.output+=I),G()!=="*"&&(A.output+=y,E.output+=y)),Q(te)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Zt("closing","]"));A.output=He.escapeLast(A.output,"["),Re("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Zt("closing",")"));A.output=He.escapeLast(A.output,"("),Re("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Zt("closing","}"));A.output=He.escapeLast(A.output,"{"),Re("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${p}?`}),A.backtrack===!0){A.output="";for(let T of A.tokens)A.output+=T.output!=null?T.output:T.value,T.suffix&&(A.output+=T.suffix)}return A};fs.fastpaths=(e,t)=>{let r={...t},i=typeof r.maxLength=="number"?Math.min(ri,r.maxLength):ri,n=e.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);e=Sl[e]||e;let s=He.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:p,START_ANCHOR:y}=ti.globChars(s),D=r.dot?h:c,v=r.dot?f:c,g=r.capture?"":"?:",_={negated:!1,prefix:""},w=r.bash===!0?".*?":p;r.capture&&(w=`(${w})`);let B=I=>I.noglobstar===!0?w:`(${g}(?:(?!${y}${I.dot?l:u}).)*?)`,O=I=>{switch(I){case"*":return`${D}${a}${w}`;case".*":return`${u}${a}${w}`;case"*.*":return`${D}${w}${u}${a}${w}`;case"*/*":return`${D}${w}${o}${a}${v}${w}`;case"**":return D+B(r);case"**/*":return`(?:${D}${B(r)}${o})?${v}${a}${w}`;case"**/*.*":return`(?:${D}${B(r)}${o})?${v}${w}${u}${a}${w}`;case"**/.*":return`(?:${D}${B(r)}${o})?${u}${a}${w}`;default:{let N=/^(.*?)\.(\w+)$/.exec(I);if(!N)return;let z=O(N[1]);return z?z+u+N[2]:void 0}}},C=He.removePrefix(e,_),j=O(C);return j&&r.strictSlashes!==!0&&(j+=`${o}?`),j};kl.exports=fs});var Ll=S((Vy,Rl)=>{"use strict";var a0=require("path"),l0=vl(),ps=Bl(),ds=ei(),c0=gr(),h0=e=>e&&typeof e=="object"&&!Array.isArray(e),pe=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map(f=>pe(f,t,r));return f=>{for(let p of c){let y=p(f);if(y)return y}return!1}}let i=h0(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=t||{},s=ds.isWindows(t),u=i?pe.compileRe(e,t):pe.makeRe(e,t,!1,!0),o=u.state;delete u.state;let a=()=>!1;if(n.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};a=pe(n.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:p,output:y}=pe.test(c,u,t,{glob:e,posix:s}),D={glob:e,state:o,regex:u,posix:s,input:c,output:y,match:p,isMatch:f};return typeof n.onResult=="function"&&n.onResult(D),f===!1?(D.isMatch=!1,h?D:!1):a(c)?(typeof n.onIgnore=="function"&&n.onIgnore(D),D.isMatch=!1,h?D:!1):(typeof n.onMatch=="function"&&n.onMatch(D),h?D:!0)};return r&&(l.state=o),l};pe.test=(e,t,r,{glob:i,posix:n}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},u=s.format||(n?ds.toPosixSlashes:null),o=e===i,a=o&&u?u(e):e;return o===!1&&(a=u?u(e):e,o=a===i),(o===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?o=pe.matchBase(e,t,r,n):o=t.exec(a)),{isMatch:!!o,match:o,output:a}};pe.matchBase=(e,t,r,i=ds.isWindows(r))=>(t instanceof RegExp?t:pe.makeRe(t,r)).test(a0.basename(e));pe.isMatch=(e,t,r)=>pe(t,r)(e);pe.parse=(e,t)=>Array.isArray(e)?e.map(r=>pe.parse(r,t)):ps(e,{...t,fastpaths:!1});pe.scan=(e,t)=>l0(e,t);pe.compileRe=(e,t,r=!1,i=!1)=>{if(r===!0)return e.output;let n=t||{},s=n.contains?"":"^",u=n.contains?"":"$",o=`${s}(?:${e.output})${u}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let a=pe.toRegex(o,t);return i===!0&&(a.state=e),a};pe.makeRe=(e,t={},r=!1,i=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(n.output=ps.fastpaths(e,t)),n.output||(n=ps(e,t)),pe.compileRe(n,t,r,i)};pe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};pe.constants=c0;Rl.exports=pe});var ms=S((Gy,Tl)=>{"use strict";Tl.exports=Ll()});var zl=S((Uy,Hl)=>{"use strict";var Er=require("fs"),{Readable:f0}=require("stream"),yr=require("path"),{promisify:ui}=require("util"),gs=ms(),p0=ui(Er.readdir),d0=ui(Er.stat),Il=ui(Er.lstat),m0=ui(Er.realpath),g0="!",Pl="READDIRP_RECURSIVE_ERROR",D0=new Set(["ENOENT","EPERM","EACCES","ELOOP",Pl]),Ds="files",Ml="directories",ni="files_directories",ii="all",Ol=[Ds,Ml,ni,ii],y0=e=>D0.has(e.code),[ql,E0]=process.versions.node.split(".").slice(0,2).map(e=>Number.parseInt(e,10)),w0=process.platform==="win32"&&(ql>10||ql===10&&E0>=5),Nl=e=>{if(e!==void 0){if(typeof e=="function")return e;if(typeof e=="string"){let t=gs(e.trim());return r=>t(r.basename)}if(Array.isArray(e)){let t=[],r=[];for(let i of e){let n=i.trim();n.charAt(0)===g0?r.push(gs(n.slice(1))):t.push(gs(n))}return r.length>0?t.length>0?i=>t.some(n=>n(i.basename))&&!r.some(n=>n(i.basename)):i=>!r.some(n=>n(i.basename)):i=>t.some(n=>n(i.basename))}}},si=class e extends f0{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:Ds,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let r={...e.defaultOptions,...t},{root:i,type:n}=r;this._fileFilter=Nl(r.fileFilter),this._directoryFilter=Nl(r.directoryFilter);let s=r.lstat?Il:d0;w0?this._stat=u=>s(u,{bigint:!0}):this._stat=s,this._maxDepth=r.depth,this._wantsDir=[Ml,ni,ii].includes(n),this._wantsFile=[Ds,ni,ii].includes(n),this._wantsEverything=n===ii,this._root=yr.resolve(i),this._isDirent="Dirent"in Er&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(i,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:r,depth:i,files:n=[]}=this.parent||{};if(n.length>0){let s=n.splice(0,t).map(u=>this._formatEntry(u,r));for(let u of await Promise.all(s)){if(this.destroyed)return;let o=await this._getEntryType(u);o==="directory"&&this._directoryFilter(u)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(u.fullPath,i+1)),this._wantsDir&&(this.push(u),t--)):(o==="file"||this._includeAsFile(u))&&this._fileFilter(u)&&this._wantsFile&&(this.push(u),t--)}}else{let s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(t,r){let i;try{i=await p0(t,this._rdOptions)}catch(n){this._onError(n)}return{files:i,depth:r,path:t}}async _formatEntry(t,r){let i;try{let n=this._isDirent?t.name:t,s=yr.resolve(yr.join(r,n));i={path:yr.relative(this._root,s),fullPath:s,basename:n},i[this._statsProp]=this._isDirent?t:await this._stat(s)}catch(n){this._onError(n)}return i}_onError(t){y0(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let r=t&&t[this._statsProp];if(r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let i=t.fullPath;try{let n=await m0(i),s=await Il(n);if(s.isFile())return"file";if(s.isDirectory()){let u=n.length;if(i.startsWith(n)&&i.substr(u,1)===yr.sep){let o=new Error(`Circular symlink detected: "${i}" points to "${n}"`);return o.code=Pl,this._onError(o)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(t){let r=t&&t[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},Xt=(e,t={})=>{let r=t.entryType||t.type;if(r==="both"&&(r=ni),r&&(t.type=r),e){if(typeof e!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!Ol.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${Ol.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=e,new si(t)},b0=(e,t={})=>new Promise((r,i)=>{let n=[];Xt(e,t).on("data",s=>n.push(s)).on("end",()=>r(n)).on("error",s=>i(s))});Xt.promise=b0;Xt.ReaddirpStream=si;Xt.default=Xt;Hl.exports=Xt});var ys=S((Wy,$l)=>{$l.exports=function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var s=e.split(/[/\\]+/);return t!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var Kl=S((Ul,Wl)=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Gl=ms(),C0=ys(),jl="!",A0={returnIndex:!1},x0=e=>Array.isArray(e)?e:[e],F0=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=Gl(e,t);return i=>e===i||r(i)}return e instanceof RegExp?r=>e.test(r):r=>!1},Vl=(e,t,r,i)=>{let n=Array.isArray(r),s=n?r[0]:r;if(!n&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));let u=C0(s,!1);for(let a=0;a<t.length;a++){let l=t[a];if(l(u))return i?-1:!1}let o=n&&[u].concat(r.slice(1));for(let a=0;a<e.length;a++){let l=e[a];if(n?l(...o):l(u))return i?a:!0}return i?-1:!1},Es=(e,t,r=A0)=>{if(e==null)throw new TypeError("anymatch: specify first argument");let i=typeof r=="boolean"?{returnIndex:r}:r,n=i.returnIndex||!1,s=x0(e),u=s.filter(a=>typeof a=="string"&&a.charAt(0)===jl).map(a=>a.slice(1)).map(a=>Gl(a,i)),o=s.filter(a=>typeof a!="string"||typeof a=="string"&&a.charAt(0)!==jl).map(a=>F0(a,i));return t==null?(a,l=!1)=>Vl(o,u,a,typeof l=="boolean"?l:!1):Vl(o,u,t,n)};Es.default=Es;Wl.exports=Es});var Ql=S((Ky,Yl)=>{Yl.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var ws=S((Yy,Xl)=>{var _0=Ql(),Zl={"{":"}","(":")","[":"]"},v0=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,i=-2,n=-2,s=-2,u=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||i!==-1&&e[t]==="["&&e[t+1]!=="]"&&(i<t&&(i=e.indexOf("]",t)),i>t&&(u===-1||u>i||(u=e.indexOf("\\",t),u===-1||u>i)))||n!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(n=e.indexOf("}",t),n>t&&(u=e.indexOf("\\",t),u===-1||u>n))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(u=e.indexOf("\\",t),u===-1||u>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(u=e.indexOf("\\",r),u===-1||u>s))))return!0;if(e[t]==="\\"){var o=e[t+1];t+=2;var a=Zl[o];if(a){var l=e.indexOf(a,t);l!==-1&&(t=l+1)}if(e[t]==="!")return!0}else t++}return!1},S0=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var i=Zl[r];if(i){var n=e.indexOf(i,t);n!==-1&&(t=n+1)}if(e[t]==="!")return!0}else t++}return!1};Xl.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(_0(t))return!0;var i=v0;return r&&r.strict===!1&&(i=S0),i(t)}});var ec=S((Qy,Jl)=>{"use strict";var k0=ws(),B0=require("path").posix.dirname,R0=require("os").platform()==="win32",bs="/",L0=/\\/g,T0=/[\{\[].*[\}\]]$/,I0=/(^|[^\\])([\{\[]|\([^\)]+$)/,O0=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Jl.exports=function(t,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&R0&&t.indexOf(bs)<0&&(t=t.replace(L0,bs)),T0.test(t)&&(t+=bs),t+="a";do t=B0(t);while(k0(t)||I0.test(t));return t.replace(O0,"$1")}});var oi=S(Ge=>{"use strict";Ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Ge.find=(e,t)=>e.nodes.find(r=>r.type===t);Ge.exceedsLimit=(e,t,r=1,i)=>i===!1||!Ge.isInteger(e)||!Ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=i;Ge.escapeNode=(e,t=0,r)=>{let i=e.nodes[t];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Ge.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;Ge.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);Ge.flatten=(...e)=>{let t=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var ai=S((Xy,rc)=>{"use strict";var tc=oi();rc.exports=(e,t={})=>{let r=(i,n={})=>{let s=t.escapeInvalid&&tc.isInvalidBrace(n),u=i.invalid===!0&&t.escapeInvalid===!0,o="";if(i.value)return(s||u)&&tc.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)o+=r(a);return o};return r(e)}});var nc=S((Jy,ic)=>{"use strict";ic.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var pc=S((eE,fc)=>{"use strict";var sc=nc(),Ot=(e,t,r)=>{if(sc(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(sc(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),u=String(i.capture),o=String(i.wrap),a=e+":"+t+"="+n+s+u+o;if(Ot.cache.hasOwnProperty(a))return Ot.cache[a].result;let l=Math.min(e,t),c=Math.max(e,t);if(Math.abs(l-c)===1){let D=e+"|"+t;return i.capture?`(${D})`:i.wrap===!1?D:`(?:${D})`}let h=hc(e)||hc(t),f={min:e,max:t,a:l,b:c},p=[],y=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let D=c<0?Math.abs(c):1;y=uc(D,Math.abs(l),f,i),l=f.a=0}return c>=0&&(p=uc(l,c,f,i)),f.negatives=y,f.positives=p,f.result=q0(y,p,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&p.length+y.length>1&&(f.result=`(?:${f.result})`),Ot.cache[a]=f,f.result};function q0(e,t,r){let i=Cs(e,t,"-",!1,r)||[],n=Cs(t,e,"",!1,r)||[],s=Cs(e,t,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function N0(e,t){let r=1,i=1,n=ac(e,r),s=new Set([t]);for(;e<=n&&n<=t;)s.add(n),r+=1,n=ac(e,r);for(n=lc(t+1,i)-1;e<n&&n<=t;)s.add(n),i+=1,n=lc(t+1,i)-1;return s=[...s],s.sort(H0),s}function P0(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let i=M0(e,t),n=i.length,s="",u=0;for(let o=0;o<n;o++){let[a,l]=i[o];a===l?s+=a:a!=="0"||l!=="9"?s+=z0(a,l,r):u++}return u&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[u],digits:n}}function uc(e,t,r,i){let n=N0(e,t),s=[],u=e,o;for(let a=0;a<n.length;a++){let l=n[a],c=P0(String(u),String(l),i),h="";if(!r.isPadded&&o&&o.pattern===c.pattern){o.count.length>1&&o.count.pop(),o.count.push(c.count[0]),o.string=o.pattern+cc(o.count),u=l+1;continue}r.isPadded&&(h=$0(l,r,i)),c.string=h+c.pattern+cc(c.count),s.push(c),u=l+1,o=c}return s}function Cs(e,t,r,i,n){let s=[];for(let u of e){let{string:o}=u;!i&&!oc(t,"string",o)&&s.push(r+o),i&&oc(t,"string",o)&&s.push(r+o)}return s}function M0(e,t){let r=[];for(let i=0;i<e.length;i++)r.push([e[i],t[i]]);return r}function H0(e,t){return e>t?1:t>e?-1:0}function oc(e,t,r){return e.some(i=>i[t]===r)}function ac(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function lc(e,t){return e-e%Math.pow(10,t)}function cc(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function z0(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hc(e){return/^-?(0+)\d/.test(e)}function $0(e,t,r){if(!t.isPadded)return e;let i=Math.abs(t.maxLen-String(e).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}Ot.cache={};Ot.clearCache=()=>Ot.cache={};fc.exports=Ot});var Fs=S((tE,wc)=>{"use strict";var j0=require("util"),mc=pc(),dc=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),V0=e=>t=>e===!0?Number(t):String(t),As=e=>typeof e=="number"||typeof e=="string"&&e!=="",wr=e=>Number.isInteger(+e),xs=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},G0=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,U0=(e,t,r)=>{if(t>0){let i=e[0]==="-"?"-":"";i&&(e=e.slice(1)),e=i+e.padStart(i?t-1:t,"0")}return r===!1?String(e):e},ci=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},W0=(e,t,r)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let i=t.capture?"":"?:",n="",s="",u;return e.positives.length&&(n=e.positives.map(o=>ci(String(o),r)).join("|")),e.negatives.length&&(s=`-(${i}${e.negatives.map(o=>ci(String(o),r)).join("|")})`),n&&s?u=`${n}|${s}`:u=n||s,t.wrap?`(${i}${u})`:u},gc=(e,t,r,i)=>{if(r)return mc(e,t,{wrap:!1,...i});let n=String.fromCharCode(e);if(e===t)return n;let s=String.fromCharCode(t);return`[${n}-${s}]`},Dc=(e,t,r)=>{if(Array.isArray(e)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${e.join("|")})`:e.join("|")}return mc(e,t,r)},yc=(...e)=>new RangeError("Invalid range arguments: "+j0.inspect(...e)),Ec=(e,t,r)=>{if(r.strictRanges===!0)throw yc([e,t]);return[]},K0=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Y0=(e,t,r=1,i={})=>{let n=Number(e),s=Number(t);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw yc([e,t]);return[]}n===0&&(n=0),s===0&&(s=0);let u=n>s,o=String(e),a=String(t),l=String(r);r=Math.max(Math.abs(r),1);let c=xs(o)||xs(a)||xs(l),h=c?Math.max(o.length,a.length,l.length):0,f=c===!1&&G0(e,t,i)===!1,p=i.transform||V0(f);if(i.toRegex&&r===1)return gc(ci(e,h),ci(t,h),!0,i);let y={negatives:[],positives:[]},D=_=>y[_<0?"negatives":"positives"].push(Math.abs(_)),v=[],g=0;for(;u?n>=s:n<=s;)i.toRegex===!0&&r>1?D(n):v.push(U0(p(n,g),h,f)),n=u?n-r:n+r,g++;return i.toRegex===!0?r>1?W0(y,i,h):Dc(v,null,{wrap:!1,...i}):v},Q0=(e,t,r=1,i={})=>{if(!wr(e)&&e.length>1||!wr(t)&&t.length>1)return Ec(e,t,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${e}`.charCodeAt(0),u=`${t}`.charCodeAt(0),o=s>u,a=Math.min(s,u),l=Math.max(s,u);if(i.toRegex&&r===1)return gc(a,l,!1,i);let c=[],h=0;for(;o?s>=u:s<=u;)c.push(n(s,h)),s=o?s-r:s+r,h++;return i.toRegex===!0?Dc(c,null,{wrap:!1,options:i}):c},li=(e,t,r,i={})=>{if(t==null&&As(e))return[e];if(!As(e)||!As(t))return Ec(e,t,i);if(typeof r=="function")return li(e,t,1,{transform:r});if(dc(r))return li(e,t,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,wr(r)?wr(e)&&wr(t)?Y0(e,t,r,n):Q0(e,t,Math.max(Math.abs(r),1),n):r!=null&&!dc(r)?K0(r,n):li(e,t,1,r)};wc.exports=li});var Ac=S((rE,Cc)=>{"use strict";var Z0=Fs(),bc=oi(),X0=(e,t={})=>{let r=(i,n={})=>{let s=bc.isInvalidBrace(n),u=i.invalid===!0&&t.escapeInvalid===!0,o=s===!0||u===!0,a=t.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0)return a+i.value;if(i.isClose===!0)return console.log("node.isClose",a,i.value),a+i.value;if(i.type==="open")return o?a+i.value:"(";if(i.type==="close")return o?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":o?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=bc.reduce(i.nodes),h=Z0(...c,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(e)};Cc.exports=X0});var _c=S((iE,Fc)=>{"use strict";var J0=Fs(),xc=ai(),Jt=oi(),qt=(e="",t="",r=!1)=>{let i=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Jt.flatten(t).map(n=>`{${n}}`):t;for(let n of e)if(Array.isArray(n))for(let s of n)i.push(qt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?qt(n,s,r):n+s);return Jt.flatten(i)},em=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,i=(n,s={})=>{n.queue=[];let u=s,o=s.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,o=u.queue;if(n.invalid||n.dollar){o.push(qt(o.pop(),xc(n,t)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(qt(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Jt.reduce(n.nodes);if(Jt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=J0(...h,t);f.length===0&&(f=xc(n,t)),o.push(qt(o.pop(),f)),n.nodes=[];return}let a=Jt.encloseBrace(n),l=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){o.push(qt(o.pop(),l,a));continue}if(f.value&&f.type!=="open"){l.push(qt(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return Jt.flatten(i(e))};Fc.exports=em});var Sc=S((nE,vc)=>{"use strict";vc.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
50
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Tc=S((sE,Lc)=>{"use strict";var tm=ai(),{MAX_LENGTH:kc,CHAR_BACKSLASH:_s,CHAR_BACKTICK:rm,CHAR_COMMA:im,CHAR_DOT:nm,CHAR_LEFT_PARENTHESES:sm,CHAR_RIGHT_PARENTHESES:um,CHAR_LEFT_CURLY_BRACE:om,CHAR_RIGHT_CURLY_BRACE:am,CHAR_LEFT_SQUARE_BRACKET:Bc,CHAR_RIGHT_SQUARE_BRACKET:Rc,CHAR_DOUBLE_QUOTE:lm,CHAR_SINGLE_QUOTE:cm,CHAR_NO_BREAK_SPACE:hm,CHAR_ZERO_WIDTH_NOBREAK_SPACE:fm}=Sc(),pm=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},i=typeof r.maxLength=="number"?Math.min(kc,r.maxLength):kc;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let n={type:"root",input:e,nodes:[]},s=[n],u=n,o=n,a=0,l=e.length,c=0,h=0,f,p=()=>e[c++],y=D=>{if(D.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&D.type==="text"){o.value+=D.value;return}return u.nodes.push(D),D.parent=u,D.prev=o,o=D,D};for(y({type:"bos"});c<l;)if(u=s[s.length-1],f=p(),!(f===fm||f===hm)){if(f===_s){y({type:"text",value:(t.keepEscaping?f:"")+p()});continue}if(f===Rc){y({type:"text",value:"\\"+f});continue}if(f===Bc){a++;let D;for(;c<l&&(D=p());){if(f+=D,D===Bc){a++;continue}if(D===_s){f+=p();continue}if(D===Rc&&(a--,a===0))break}y({type:"text",value:f});continue}if(f===sm){u=y({type:"paren",nodes:[]}),s.push(u),y({type:"text",value:f});continue}if(f===um){if(u.type!=="paren"){y({type:"text",value:f});continue}u=s.pop(),y({type:"text",value:f}),u=s[s.length-1];continue}if(f===lm||f===cm||f===rm){let D=f,v;for(t.keepQuotes!==!0&&(f="");c<l&&(v=p());){if(v===_s){f+=v+p();continue}if(v===D){t.keepQuotes===!0&&(f+=v);break}f+=v}y({type:"text",value:f});continue}if(f===om){h++;let v={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||u.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};u=y(v),s.push(u),y({type:"open",value:f});continue}if(f===am){if(u.type!=="brace"){y({type:"text",value:f});continue}let D="close";u=s.pop(),u.close=!0,y({type:D,value:f}),h--,u=s[s.length-1];continue}if(f===im&&h>0){if(u.ranges>0){u.ranges=0;let D=u.nodes.shift();u.nodes=[D,{type:"text",value:tm(u)}]}y({type:"comma",value:f}),u.commas++;continue}if(f===nm&&h>0&&u.commas===0){let D=u.nodes;if(h===0||D.length===0){y({type:"text",value:f});continue}if(o.type==="dot"){if(u.range=[],o.value+=f,o.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,o.type="text";continue}u.ranges++,u.args=[];continue}if(o.type==="range"){D.pop();let v=D[D.length-1];v.value+=o.value+f,o=v,u.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}do if(u=s.pop(),u.type!=="root"){u.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let D=s[s.length-1],v=D.nodes.indexOf(u);D.nodes.splice(v,1,...u.nodes)}while(s.length>0);return y({type:"eos"}),n};Lc.exports=pm});var qc=S((uE,Oc)=>{"use strict";var Ic=ai(),dm=Ac(),mm=_c(),gm=Tc(),ze=(e,t={})=>{let r=[];if(Array.isArray(e))for(let i of e){let n=ze.create(i,t);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(ze.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ze.parse=(e,t={})=>gm(e,t);ze.stringify=(e,t={})=>Ic(typeof e=="string"?ze.parse(e,t):e,t);ze.compile=(e,t={})=>(typeof e=="string"&&(e=ze.parse(e,t)),dm(e,t));ze.expand=(e,t={})=>{typeof e=="string"&&(e=ze.parse(e,t));let r=mm(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ze.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ze.compile(e,t):ze.expand(e,t);Oc.exports=ze});var Nc=S((oE,Dm)=>{Dm.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Mc=S((aE,Pc)=>{Pc.exports=Nc()});var zc=S((lE,Hc)=>{"use strict";var ym=require("path"),Em=Mc(),wm=new Set(Em);Hc.exports=e=>wm.has(ym.extname(e).slice(1).toLowerCase())});var hi=S(M=>{"use strict";var{sep:bm}=require("path"),{platform:vs}=process,Cm=require("os");M.EV_ALL="all";M.EV_READY="ready";M.EV_ADD="add";M.EV_CHANGE="change";M.EV_ADD_DIR="addDir";M.EV_UNLINK="unlink";M.EV_UNLINK_DIR="unlinkDir";M.EV_RAW="raw";M.EV_ERROR="error";M.STR_DATA="data";M.STR_END="end";M.STR_CLOSE="close";M.FSEVENT_CREATED="created";M.FSEVENT_MODIFIED="modified";M.FSEVENT_DELETED="deleted";M.FSEVENT_MOVED="moved";M.FSEVENT_CLONED="cloned";M.FSEVENT_UNKNOWN="unknown";M.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;M.FSEVENT_TYPE_FILE="file";M.FSEVENT_TYPE_DIRECTORY="directory";M.FSEVENT_TYPE_SYMLINK="symlink";M.KEY_LISTENERS="listeners";M.KEY_ERR="errHandlers";M.KEY_RAW="rawEmitters";M.HANDLER_KEYS=[M.KEY_LISTENERS,M.KEY_ERR,M.KEY_RAW];M.DOT_SLASH=`.${bm}`;M.BACK_SLASH_RE=/\\/g;M.DOUBLE_SLASH_RE=/\/\//;M.SLASH_OR_BACK_SLASH_RE=/[/\\]/;M.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;M.REPLACER_RE=/^\.[/\\]/;M.SLASH="/";M.SLASH_SLASH="//";M.BRACE_START="{";M.BANG="!";M.ONE_DOT=".";M.TWO_DOTS="..";M.STAR="*";M.GLOBSTAR="**";M.ROOT_GLOBSTAR="/**/*";M.SLASH_GLOBSTAR="/**";M.DIR_SUFFIX="Dir";M.ANYMATCH_OPTS={dot:!0};M.STRING_TYPE="string";M.FUNCTION_TYPE="function";M.EMPTY_STR="";M.EMPTY_FN=()=>{};M.IDENTITY_FN=e=>e;M.isWindows=vs==="win32";M.isMacos=vs==="darwin";M.isLinux=vs==="linux";M.isIBMi=Cm.type()==="OS400"});var Wc=S((hE,Uc)=>{"use strict";var ht=require("fs"),be=require("path"),{promisify:xr}=require("util"),Am=zc(),{isWindows:xm,isLinux:Fm,EMPTY_FN:_m,EMPTY_STR:vm,KEY_LISTENERS:er,KEY_ERR:Ss,KEY_RAW:br,HANDLER_KEYS:Sm,EV_CHANGE:pi,EV_ADD:fi,EV_ADD_DIR:km,EV_ERROR:jc,STR_DATA:Bm,STR_END:Rm,BRACE_START:Lm,STAR:Tm}=hi(),Im="watch",Om=xr(ht.open),Vc=xr(ht.stat),qm=xr(ht.lstat),Nm=xr(ht.close),ks=xr(ht.realpath),Pm={lstat:qm,stat:Vc},Rs=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},Cr=(e,t,r)=>{let i=e[t];i instanceof Set||(e[t]=i=new Set([i])),i.add(r)},Mm=e=>t=>{let r=e[t];r instanceof Set?r.clear():delete e[t]},Ar=(e,t,r)=>{let i=e[t];i instanceof Set?i.delete(r):i===r&&delete e[t]},Gc=e=>e instanceof Set?e.size===0:!e,di=new Map;function $c(e,t,r,i,n){let s=(u,o)=>{r(e),n(u,o,{watchedPath:e}),o&&e!==o&&mi(be.resolve(e,o),er,be.join(e,o))};try{return ht.watch(e,t,s)}catch(u){i(u)}}var mi=(e,t,r,i,n)=>{let s=di.get(e);s&&Rs(s[t],u=>{u(r,i,n)})},Hm=(e,t,r,i)=>{let{listener:n,errHandler:s,rawEmitter:u}=i,o=di.get(t),a;if(!r.persistent)return a=$c(e,r,n,s,u),a.close.bind(a);if(o)Cr(o,er,n),Cr(o,Ss,s),Cr(o,br,u);else{if(a=$c(e,r,mi.bind(null,t,er),s,mi.bind(null,t,br)),!a)return;a.on(jc,async l=>{let c=mi.bind(null,t,Ss);if(o.watcherUnusable=!0,xm&&l.code==="EPERM")try{let h=await Om(e,"r");await Nm(h),c(l)}catch{}else c(l)}),o={listeners:n,errHandlers:s,rawEmitters:u,watcher:a},di.set(t,o)}return()=>{Ar(o,er,n),Ar(o,Ss,s),Ar(o,br,u),Gc(o.listeners)&&(o.watcher.close(),di.delete(t),Sm.forEach(Mm(o)),o.watcher=void 0,Object.freeze(o))}},Bs=new Map,zm=(e,t,r,i)=>{let{listener:n,rawEmitter:s}=i,u=Bs.get(t),o=new Set,a=new Set,l=u&&u.options;return l&&(l.persistent<r.persistent||l.interval>r.interval)&&(o=u.listeners,a=u.rawEmitters,ht.unwatchFile(t),u=void 0),u?(Cr(u,er,n),Cr(u,br,s)):(u={listeners:n,rawEmitters:s,options:r,watcher:ht.watchFile(t,r,(c,h)=>{Rs(u.rawEmitters,p=>{p(pi,t,{curr:c,prev:h})});let f=c.mtimeMs;(c.size!==h.size||f>h.mtimeMs||f===0)&&Rs(u.listeners,p=>p(e,c))})},Bs.set(t,u)),()=>{Ar(u,er,n),Ar(u,br,s),Gc(u.listeners)&&(Bs.delete(t),ht.unwatchFile(t),u.options=u.watcher=void 0,Object.freeze(u))}},Ls=class{constructor(t){this.fsw=t,this._boundHandleError=r=>t._handleError(r)}_watchWithNodeFs(t,r){let i=this.fsw.options,n=be.dirname(t),s=be.basename(t);this.fsw._getWatchedDir(n).add(s);let o=be.resolve(t),a={persistent:i.persistent};r||(r=_m);let l;return i.usePolling?(a.interval=i.enableBinaryInterval&&Am(s)?i.binaryInterval:i.interval,l=zm(t,o,a,{listener:r,rawEmitter:this.fsw._emitRaw})):l=Hm(t,o,a,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(t,r,i){if(this.fsw.closed)return;let n=be.dirname(t),s=be.basename(t),u=this.fsw._getWatchedDir(n),o=r;if(u.has(s))return;let a=async(c,h)=>{if(this.fsw._throttle(Im,t,5)){if(!h||h.mtimeMs===0)try{let f=await Vc(t);if(this.fsw.closed)return;let p=f.atimeMs,y=f.mtimeMs;(!p||p<=y||y!==o.mtimeMs)&&this.fsw._emit(pi,t,f),Fm&&o.ino!==f.ino?(this.fsw._closeFile(c),o=f,this.fsw._addPathCloser(c,this._watchWithNodeFs(t,a))):o=f}catch{this.fsw._remove(n,s)}else if(u.has(s)){let f=h.atimeMs,p=h.mtimeMs;(!f||f<=p||p!==o.mtimeMs)&&this.fsw._emit(pi,t,h),o=h}}},l=this._watchWithNodeFs(t,a);if(!(i&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(fi,t,0))return;this.fsw._emit(fi,t,r)}return l}async _handleSymlink(t,r,i,n){if(this.fsw.closed)return;let s=t.fullPath,u=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await ks(i)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(u.has(n)?this.fsw._symlinkPaths.get(s)!==o&&(this.fsw._symlinkPaths.set(s,o),this.fsw._emit(pi,i,t.stats)):(u.add(n),this.fsw._symlinkPaths.set(s,o),this.fsw._emit(fi,i,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(t,r,i,n,s,u,o){if(t=be.join(t,vm),!i.hasGlob&&(o=this.fsw._throttle("readdir",t,1e3),!o))return;let a=this.fsw._getWatchedDir(i.path),l=new Set,c=this.fsw._readdirp(t,{fileFilter:h=>i.filterPath(h),directoryFilter:h=>i.filterDir(h),depth:0}).on(Bm,async h=>{if(this.fsw.closed){c=void 0;return}let f=h.path,p=be.join(t,f);if(l.add(f),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,t,p,f))){if(this.fsw.closed){c=void 0;return}(f===n||!n&&!a.has(f))&&(this.fsw._incrReadyCount(),p=be.join(s,be.relative(s,p)),this._addToNodeFs(p,r,i,u+1))}}).on(jc,this._boundHandleError);return new Promise(h=>c.once(Rm,()=>{if(this.fsw.closed){c=void 0;return}let f=o?o.clear():!1;h(),a.getChildren().filter(p=>p!==t&&!l.has(p)&&(!i.hasGlob||i.filterPath({fullPath:be.resolve(t,p)}))).forEach(p=>{this.fsw._remove(t,p)}),c=void 0,f&&this._handleRead(t,!1,i,n,s,u,o)}))}async _handleDir(t,r,i,n,s,u,o){let a=this.fsw._getWatchedDir(be.dirname(t)),l=a.has(be.basename(t));!(i&&this.fsw.options.ignoreInitial)&&!s&&!l&&(!u.hasGlob||u.globFilter(t))&&this.fsw._emit(km,t,r),a.add(be.basename(t)),this.fsw._getWatchedDir(t);let c,h,f=this.fsw.options.depth;if((f==null||n<=f)&&!this.fsw._symlinkPaths.has(o)){if(!s&&(await this._handleRead(t,i,u,s,t,n,c),this.fsw.closed))return;h=this._watchWithNodeFs(t,(p,y)=>{y&&y.mtimeMs===0||this._handleRead(p,!1,u,s,t,n,c)})}return h}async _addToNodeFs(t,r,i,n,s){let u=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return u(),!1;let o=this.fsw._getWatchHelpers(t,n);!o.hasGlob&&i&&(o.hasGlob=i.hasGlob,o.globFilter=i.globFilter,o.filterPath=a=>i.filterPath(a),o.filterDir=a=>i.filterDir(a));try{let a=await Pm[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,a))return u(),!1;let l=this.fsw.options.followSymlinks&&!t.includes(Tm)&&!t.includes(Lm),c;if(a.isDirectory()){let h=be.resolve(t),f=l?await ks(t):t;if(this.fsw.closed||(c=await this._handleDir(o.watchPath,a,r,n,s,o,f),this.fsw.closed))return;h!==f&&f!==void 0&&this.fsw._symlinkPaths.set(h,f)}else if(a.isSymbolicLink()){let h=l?await ks(t):t;if(this.fsw.closed)return;let f=be.dirname(o.watchPath);if(this.fsw._getWatchedDir(f).add(o.watchPath),this.fsw._emit(fi,o.watchPath,a),c=await this._handleDir(f,a,r,n,t,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(be.resolve(t),h)}else c=this._handleFile(o.watchPath,a,r);return u(),this.fsw._addPathCloser(t,c),!1}catch(a){if(this.fsw._handleError(a))return u(),t}}};Uc.exports=Ls});var eh=S((fE,Hs)=>{"use strict";var Ps=require("fs"),Ce=require("path"),{promisify:Ms}=require("util"),tr;try{tr=require("fsevents")}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(tr){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let t=Number.parseInt(e[1],10),r=Number.parseInt(e[2],10);t===8&&r<16&&(tr=void 0)}}var{EV_ADD:Ts,EV_CHANGE:$m,EV_ADD_DIR:Kc,EV_UNLINK:gi,EV_ERROR:jm,STR_DATA:Vm,STR_END:Gm,FSEVENT_CREATED:Um,FSEVENT_MODIFIED:Wm,FSEVENT_DELETED:Km,FSEVENT_MOVED:Ym,FSEVENT_UNKNOWN:Qm,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:Zm,FSEVENT_TYPE_FILE:Xm,FSEVENT_TYPE_DIRECTORY:Fr,FSEVENT_TYPE_SYMLINK:Jc,ROOT_GLOBSTAR:Yc,DIR_SUFFIX:Jm,DOT_SLASH:Qc,FUNCTION_TYPE:Is,EMPTY_FN:eg,IDENTITY_FN:tg}=hi(),rg=e=>isNaN(e)?{}:{depth:e},qs=Ms(Ps.stat),ig=Ms(Ps.lstat),Zc=Ms(Ps.realpath),ng={stat:qs,lstat:ig},Nt=new Map,sg=10,ug=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),og=(e,t)=>({stop:tr.watch(e,t)});function ag(e,t,r,i){let n=Ce.extname(t)?Ce.dirname(t):t,s=Ce.dirname(n),u=Nt.get(n);lg(s)&&(n=s);let o=Ce.resolve(e),a=o!==t,l=(h,f,p)=>{a&&(h=h.replace(t,o)),(h===o||!h.indexOf(o+Ce.sep))&&r(h,f,p)},c=!1;for(let h of Nt.keys())if(t.indexOf(Ce.resolve(h)+Ce.sep)===0){n=h,u=Nt.get(n),c=!0;break}return u||c?u.listeners.add(l):(u={listeners:new Set([l]),rawEmitter:i,watcher:og(n,(h,f)=>{if(!u.listeners.size||f&Zm)return;let p=tr.getInfo(h,f);u.listeners.forEach(y=>{y(h,f,p)}),u.rawEmitter(p.event,h,p)})},Nt.set(n,u)),()=>{let h=u.listeners;if(h.delete(l),!h.size&&(Nt.delete(n),u.watcher))return u.watcher.stop().then(()=>{u.rawEmitter=u.watcher=void 0,Object.freeze(u)})}}var lg=e=>{let t=0;for(let r of Nt.keys())if(r.indexOf(e)===0&&(t++,t>=sg))return!0;return!1},cg=()=>tr&&Nt.size<128,Os=(e,t)=>{let r=0;for(;!e.indexOf(t)&&(e=Ce.dirname(e))!==t;)r++;return r},Xc=(e,t)=>e.type===Fr&&t.isDirectory()||e.type===Jc&&t.isSymbolicLink()||e.type===Xm&&t.isFile(),Ns=class{constructor(t){this.fsw=t}checkIgnored(t,r){let i=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,r))return i.add(t),r&&r.isDirectory()&&i.add(t+Yc),!0;i.delete(t),i.delete(t+Yc)}addOrChange(t,r,i,n,s,u,o,a){let l=s.has(u)?$m:Ts;this.handleEvent(l,t,r,i,n,s,u,o,a)}async checkExists(t,r,i,n,s,u,o,a){try{let l=await qs(t);if(this.fsw.closed)return;Xc(o,l)?this.addOrChange(t,r,i,n,s,u,o,a):this.handleEvent(gi,t,r,i,n,s,u,o,a)}catch(l){l.code==="EACCES"?this.addOrChange(t,r,i,n,s,u,o,a):this.handleEvent(gi,t,r,i,n,s,u,o,a)}}handleEvent(t,r,i,n,s,u,o,a,l){if(!(this.fsw.closed||this.checkIgnored(r)))if(t===gi){let c=a.type===Fr;(c||u.has(o))&&this.fsw._remove(s,o,c)}else{if(t===Ts){if(a.type===Fr&&this.fsw._getWatchedDir(r),a.type===Jc&&l.followSymlinks){let h=l.depth===void 0?void 0:Os(i,n)+1;return this._addToFsEvents(r,!1,!0,h)}this.fsw._getWatchedDir(s).add(o)}let c=a.type===Fr?t+Jm:t;this.fsw._emit(c,r),c===Kc&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(t,r,i,n){if(this.fsw.closed||this.fsw._isIgnored(t))return;let s=this.fsw.options,o=ag(t,r,async(a,l,c)=>{if(this.fsw.closed||s.depth!==void 0&&Os(a,r)>s.depth)return;let h=i(Ce.join(t,Ce.relative(t,a)));if(n&&!n(h))return;let f=Ce.dirname(h),p=Ce.basename(h),y=this.fsw._getWatchedDir(c.type===Fr?h:f);if(ug.has(l)||c.event===Qm)if(typeof s.ignored===Is){let D;try{D=await qs(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,D))return;Xc(c,D)?this.addOrChange(h,a,r,f,y,p,c,s):this.handleEvent(gi,h,a,r,f,y,p,c,s)}else this.checkExists(h,a,r,f,y,p,c,s);else switch(c.event){case Um:case Wm:return this.addOrChange(h,a,r,f,y,p,c,s);case Km:case Ym:return this.checkExists(h,a,r,f,y,p,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(t,r,i,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let s=await Zc(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||t,u=>{let o=t;return s&&s!==Qc?o=u.replace(s,t):u!==Qc&&(o=Ce.join(t,u)),i(o)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(t,r,i,n,s){let u=i(t),o=r.isDirectory(),a=this.fsw._getWatchedDir(Ce.dirname(u)),l=Ce.basename(u);o&&this.fsw._getWatchedDir(u),!a.has(l)&&(a.add(l),(!n.ignoreInitial||s===!0)&&this.fsw._emit(o?Kc:Ts,u,r))}initWatch(t,r,i,n){if(this.fsw.closed)return;let s=this._watchWithFsEvents(i.watchPath,Ce.resolve(t||i.watchPath),n,i.globFilter);this.fsw._addPathCloser(r,s)}async _addToFsEvents(t,r,i,n){if(this.fsw.closed)return;let s=this.fsw.options,u=typeof r===Is?r:tg,o=this.fsw._getWatchHelpers(t);try{let a=await ng[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,a))throw null;if(a.isDirectory()){if(o.globFilter||this.emitAdd(u(t),a,u,s,i),n&&n>s.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:l=>o.filterPath(l),directoryFilter:l=>o.filterDir(l),...rg(s.depth-(n||0))}).on(Vm,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;let c=Ce.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){let f=s.depth===void 0?void 0:Os(c,Ce.resolve(o.watchPath))+1;this._handleFsEventsSymlink(c,h,u,f)}else this.emitAdd(c,l.stats,u,s,i)}).on(jm,eg).on(Gm,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,a,u,s,i),this.fsw._emitReady()}catch(a){(!a||this.fsw._handleError(a))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&i!==!0)if(typeof r===Is)this.initWatch(void 0,t,o,u);else{let a;try{a=await Zc(o.watchPath)}catch{}this.initWatch(a,t,o,u)}}};Hs.exports=Ns;Hs.exports.canUse=cg});var hh=S(tu=>{"use strict";var{EventEmitter:hg}=require("events"),Js=require("fs"),ie=require("path"),{promisify:oh}=require("util"),fg=zl(),Us=Kl().default,pg=ec(),zs=ws(),dg=qc(),mg=ys(),gg=Wc(),th=eh(),{EV_ALL:$s,EV_READY:Dg,EV_ADD:Di,EV_CHANGE:_r,EV_UNLINK:rh,EV_ADD_DIR:yg,EV_UNLINK_DIR:Eg,EV_RAW:wg,EV_ERROR:js,STR_CLOSE:bg,STR_END:Cg,BACK_SLASH_RE:Ag,DOUBLE_SLASH_RE:ih,SLASH_OR_BACK_SLASH_RE:xg,DOT_RE:Fg,REPLACER_RE:_g,SLASH:Vs,SLASH_SLASH:vg,BRACE_START:Sg,BANG:Ws,ONE_DOT:ah,TWO_DOTS:kg,GLOBSTAR:Bg,SLASH_GLOBSTAR:Gs,ANYMATCH_OPTS:Ks,STRING_TYPE:eu,FUNCTION_TYPE:Rg,EMPTY_STR:Ys,EMPTY_FN:Lg,isWindows:Tg,isMacos:Ig,isIBMi:Og}=hi(),qg=oh(Js.stat),Ng=oh(Js.readdir),Qs=(e=[])=>Array.isArray(e)?e:[e],lh=(e,t=[])=>(e.forEach(r=>{Array.isArray(r)?lh(r,t):t.push(r)}),t),nh=e=>{let t=lh(Qs(e));if(!t.every(r=>typeof r===eu))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(ch)},sh=e=>{let t=e.replace(Ag,Vs),r=!1;for(t.startsWith(vg)&&(r=!0);t.match(ih);)t=t.replace(ih,Vs);return r&&(t=Vs+t),t},ch=e=>sh(ie.normalize(sh(e))),uh=(e=Ys)=>t=>typeof t!==eu?t:ch(ie.isAbsolute(t)?t:ie.join(e,t)),Pg=(e,t)=>ie.isAbsolute(e)?e:e.startsWith(Ws)?Ws+ie.join(t,e.slice(1)):ie.join(t,e),Je=(e,t)=>e[t]===void 0,Zs=class{constructor(t,r){this.path=t,this._removeWatcher=r,this.items=new Set}add(t){let{items:r}=this;r&&t!==ah&&t!==kg&&r.add(t)}async remove(t){let{items:r}=this;if(!r||(r.delete(t),r.size>0))return;let i=this.path;try{await Ng(i)}catch{this._removeWatcher&&this._removeWatcher(ie.dirname(i),ie.basename(i))}}has(t){let{items:r}=this;if(r)return r.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},Mg="stat",Hg="lstat",Xs=class{constructor(t,r,i,n){this.fsw=n,this.path=t=t.replace(_g,Ys),this.watchPath=r,this.fullWatchPath=ie.resolve(r),this.hasGlob=r!==t,t===Ys&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&i?void 0:!1,this.globFilter=this.hasGlob?Us(t,void 0,Ks):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=i,this.statMethod=i?Mg:Hg}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return ie.join(this.watchPath,ie.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:r}=t;if(r&&r.isSymbolicLink())return this.filterDir(t);let i=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===Rg?this.globFilter(i):!0)&&this.fsw._isntIgnored(i,r)&&this.fsw._hasReadPermissions(r)}getDirParts(t){if(!this.hasGlob)return[];let r=[];return(t.includes(Sg)?dg.expand(t):[t]).forEach(n=>{r.push(ie.relative(this.watchPath,n).split(xg))}),r}filterDir(t){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(t)),i=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,u)=>(s===Bg&&(i=!0),i||!r[0][u]||Us(s,r[0][u],Ks))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},yi=class extends hg{constructor(t){super();let r={};t&&Object.assign(r,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,Je(r,"persistent")&&(r.persistent=!0),Je(r,"ignoreInitial")&&(r.ignoreInitial=!1),Je(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),Je(r,"interval")&&(r.interval=100),Je(r,"binaryInterval")&&(r.binaryInterval=300),Je(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,Je(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),th.canUse()||(r.useFsEvents=!1),Je(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=Ig),Og&&(r.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let a=n.toLowerCase();a==="false"||a==="0"?r.usePolling=!1:a==="true"||a==="1"?r.usePolling=!0:r.usePolling=!!a}let s=process.env.CHOKIDAR_INTERVAL;s&&(r.interval=Number.parseInt(s,10)),Je(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),Je(r,"followSymlinks")&&(r.followSymlinks=!0),Je(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let u=r.awaitWriteFinish;u&&(u.stabilityThreshold||(u.stabilityThreshold=2e3),u.pollInterval||(u.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=Qs(r.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=Lg,this._readyEmitted=!0,process.nextTick(()=>this.emit(Dg)))},this._emitRaw=(...a)=>this.emit(wg,...a),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new th(this):this._nodeFsHandler=new gg(this),Object.freeze(r)}add(t,r,i){let{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let u=nh(t);return n&&(u=u.map(o=>{let a=Pg(o,n);return s||!zs(o)?a:mg(a)})),u=u.filter(o=>o.startsWith(Ws)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Gs),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=u.length),this.options.persistent&&(this._readyCount+=u.length),u.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=u.length,Promise.all(u.map(async o=>{let a=await this._nodeFsHandler._addToNodeFs(o,!i,0,0,r);return a&&this._emitReady(),a})).then(o=>{this.closed||o.filter(a=>a).forEach(a=>{this.add(ie.dirname(a),ie.basename(r||a))})})),this}unwatch(t){if(this.closed)return this;let r=nh(t),{cwd:i}=this.options;return r.forEach(n=>{!ie.isAbsolute(n)&&!this._closers.has(n)&&(i&&(n=ie.join(i,n)),n=ie.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Gs),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(r=>r.forEach(i=>{let n=i();n instanceof Promise&&t.push(n)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((r,i)=>{let n=this.options.cwd?ie.relative(this.options.cwd,i):i;t[n||ah]=r.getChildren().sort()}),t}emitWithAll(t,r){this.emit(...r),t!==js&&this.emit($s,...r)}async _emit(t,r,i,n,s){if(this.closed)return;let u=this.options;Tg&&(r=ie.normalize(r)),u.cwd&&(r=ie.relative(u.cwd,r));let o=[t,r];s!==void 0?o.push(i,n,s):n!==void 0?o.push(i,n):i!==void 0&&o.push(i);let a=u.awaitWriteFinish,l;if(a&&(l=this._pendingWrites.get(r)))return l.lastChange=new Date,this;if(u.atomic){if(t===rh)return this._pendingUnlinks.set(r,o),setTimeout(()=>{this._pendingUnlinks.forEach((c,h)=>{this.emit(...c),this.emit($s,...c),this._pendingUnlinks.delete(h)})},typeof u.atomic=="number"?u.atomic:100),this;t===Di&&this._pendingUnlinks.has(r)&&(t=o[0]=_r,this._pendingUnlinks.delete(r))}if(a&&(t===Di||t===_r)&&this._readyEmitted){let c=(h,f)=>{h?(t=o[0]=js,o[1]=h,this.emitWithAll(t,o)):f&&(o.length>2?o[2]=f:o.push(f),this.emitWithAll(t,o))};return this._awaitWriteFinish(r,a.stabilityThreshold,t,c),this}if(t===_r&&!this._throttle(_r,r,50))return this;if(u.alwaysStat&&i===void 0&&(t===Di||t===yg||t===_r)){let c=u.cwd?ie.join(u.cwd,r):r,h;try{h=await qg(c)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(t,o),this}_handleError(t){let r=t&&t.code;return t&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(js,t),t||this.closed}_throttle(t,r,i){this._throttled.has(t)||this._throttled.set(t,new Map);let n=this._throttled.get(t),s=n.get(r);if(s)return s.count++,!1;let u,o=()=>{let l=n.get(r),c=l?l.count:0;return n.delete(r),clearTimeout(u),l&&clearTimeout(l.timeoutObject),c};u=setTimeout(o,i);let a={timeoutObject:u,clear:o,count:0};return n.set(r,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,r,i,n){let s,u=t;this.options.cwd&&!ie.isAbsolute(t)&&(u=ie.join(this.options.cwd,t));let o=new Date,a=l=>{Js.stat(u,(c,h)=>{if(c||!this._pendingWrites.has(t)){c&&c.code!=="ENOENT"&&n(c);return}let f=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(t).lastChange=f);let p=this._pendingWrites.get(t);f-p.lastChange>=r?(this._pendingWrites.delete(t),n(void 0,h)):s=setTimeout(a,this.options.awaitWriteFinish.pollInterval,h)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(s),i)}),s=setTimeout(a,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,r){if(this.options.atomic&&Fg.test(t))return!0;if(!this._userIgnored){let{cwd:i}=this.options,n=this.options.ignored,s=n&&n.map(uh(i)),u=Qs(s).filter(a=>typeof a===eu&&!zs(a)).map(a=>a+Gs),o=this._getGlobIgnored().map(uh(i)).concat(s,u);this._userIgnored=Us(o,void 0,Ks)}return this._userIgnored([t,r])}_isntIgnored(t,r){return!this._isIgnored(t,r)}_getWatchHelpers(t,r){let i=r||this.options.disableGlobbing||!zs(t)?t:pg(t),n=this.options.followSymlinks;return new Xs(t,i,n,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=ie.resolve(t);return this._watched.has(r)||this._watched.set(r,new Zs(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let i=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(i.toString(8)[0],10))}_remove(t,r,i){let n=ie.join(t,r),s=ie.resolve(n);if(i=i!=null?i:this._watched.has(n)||this._watched.has(s),!this._throttle("remove",n,100))return;!i&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,r,!0),this._getWatchedDir(n).getChildren().forEach(f=>this._remove(n,f));let a=this._getWatchedDir(t),l=a.has(r);a.remove(r),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=n;if(this.options.cwd&&(c=ie.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===Di)return;this._watched.delete(n),this._watched.delete(s);let h=i?Eg:rh;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(t){this._closeFile(t);let r=ie.dirname(t);this._getWatchedDir(r).remove(ie.basename(t))}_closeFile(t){let r=this._closers.get(t);r&&(r.forEach(i=>i()),this._closers.delete(t))}_addPathCloser(t,r){if(!r)return;let i=this._closers.get(t);i||(i=[],this._closers.set(t,i)),i.push(r)}_readdirp(t,r){if(this.closed)return;let i={type:$s,alwaysStat:!0,lstat:!0,...r},n=fg(t,i);return this._streams.add(n),n.once(bg,()=>{n=void 0}),n.once(Cg,()=>{n&&(this._streams.delete(n),n=void 0)}),n}};tu.FSWatcher=yi;var zg=(e,t)=>{let r=new yi(t);return r.add(e),r};tu.watch=zg});var Ch=S((DE,bh)=>{"use strict";var bi=Object.prototype.hasOwnProperty,wh=Object.prototype.toString,dh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,gh=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wh.call(t)==="[object Array]"},Dh=function(t){if(!t||wh.call(t)!=="[object Object]")return!1;var r=bi.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&bi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var n;for(n in t);return typeof n=="undefined"||bi.call(t,n)},yh=function(t,r){dh&&r.name==="__proto__"?dh(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},Eh=function(t,r){if(r==="__proto__")if(bi.call(t,r)){if(mh)return mh(t,r).value}else return;return t[r]};bh.exports=function e(){var t,r,i,n,s,u,o=arguments[0],a=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},a=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});a<l;++a)if(t=arguments[a],t!=null)for(r in t)i=Eh(o,r),n=Eh(t,r),o!==n&&(c&&n&&(Dh(n)||(s=gh(n)))?(s?(s=!1,u=i&&gh(i)?i:[]):u=i&&Dh(i)?i:{},yh(o,{name:r,newValue:e(c,u,n)})):typeof n!="undefined"&&yh(o,{name:r,newValue:n}));return o}});var L1={};qr(L1,{chokidar:()=>S1,enquirer:()=>v1,getEastAsianWidth:()=>k1,json5:()=>x1,remarkParse:()=>R1,sourceMapSupport:()=>F1,stoppable:()=>_1,unified:()=>B1});module.exports=bf(L1);var sf=pt(Yu()),uf=pt(Bo()),of=pt(Lo()),af=pt(dl()),lf=pt(hh());var iu={};qr(iu,{_isNarrowWidth:()=>Vg,eastAsianWidth:()=>jg,eastAsianWidthType:()=>$g});function ru(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Ei(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function wi(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function fh(e){return ru(e)?"ambiguous":Ei(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":wi(e)?"wide":"neutral"}function ph(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function $g(e){return ph(e),fh(e)}function jg(e,{ambiguousAsWide:t=!1}={}){return ph(e),Ei(e)||wi(e)||t&&ru(e)?2:1}var Vg=e=>!(Ei(e)||wi(e));var gu={};qr(gu,{unified:()=>Bh});function nu(e){if(e)throw e}var xi=pt(Ch(),1);function vr(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function su(){let e=[],t={run:r,use:i};return t;function r(...n){let s=-1,u=n.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);o(null,...n);function o(a,...l){let c=e[++s],h=-1;if(a){u(a);return}for(;++h<n.length;)(l[h]===null||l[h]===void 0)&&(l[h]=n[h]);n=l,c?Ah(c,o)(...l):u(null,...l)}}function i(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Ah(e,t){let r;return i;function i(...u){let o=e.length>u.length,a;o&&u.push(n);try{a=e.apply(this,u)}catch(l){let c=l;if(o&&r)throw c;return n(c)}o||(a&&a.then&&typeof a.then=="function"?a.then(s,n):a instanceof Error?n(a):s(a))}function n(u,...o){r||(r=!0,t(u,...o))}function s(u){n(null,u)}}function wt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xh(e.position):"start"in e||"end"in e?xh(e):"line"in e||"column"in e?uu(e):""}function uu(e){return Fh(e&&e.line)+":"+Fh(e&&e.column)}function xh(e){return uu(e&&e.start)+"-"+uu(e&&e.end)}function Fh(e){return e&&typeof e=="number"?e:1}var Ae=class extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let n="",s={},u=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?n=t:!s.cause&&t&&(u=!0,n=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){let a=i.indexOf(":");a===-1?s.ruleId=i:(s.source=i.slice(0,a),s.ruleId=i.slice(a+1))}if(!s.place&&s.ancestors&&s.ancestors){let a=s.ancestors[s.ancestors.length-1];a&&(s.place=a.position)}let o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=wt(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Ae.prototype.file="";Ae.prototype.name="";Ae.prototype.reason="";Ae.prototype.message="";Ae.prototype.stack="";Ae.prototype.column=void 0;Ae.prototype.line=void 0;Ae.prototype.ancestors=void 0;Ae.prototype.cause=void 0;Ae.prototype.fatal=void 0;Ae.prototype.place=void 0;Ae.prototype.ruleId=void 0;Ae.prototype.source=void 0;var Ue=pt(require("node:path"),1);var ou=pt(require("node:process"),1);var au=require("node:url");function Ci(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var lu=["history","path","basename","stem","extname","dirname"],Sr=class{constructor(t){let r;t?Ci(t)?r={path:t}:typeof t=="string"||Gg(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":ou.default.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<lu.length;){let s=lu[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let n;for(n in r)lu.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?Ue.default.basename(this.path):void 0}set basename(t){hu(t,"basename"),cu(t,"basename"),this.path=Ue.default.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ue.default.dirname(this.path):void 0}set dirname(t){_h(this.basename,"dirname"),this.path=Ue.default.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ue.default.extname(this.path):void 0}set extname(t){if(cu(t,"extname"),_h(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ue.default.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ci(t)&&(t=(0,au.fileURLToPath)(t)),hu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ue.default.basename(this.path,this.extname):void 0}set stem(t){hu(t,"stem"),cu(t,"stem"),this.path=Ue.default.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){let n=this.message(t,r,i);throw n.fatal=!0,n}info(t,r,i){let n=this.message(t,r,i);return n.fatal=void 0,n}message(t,r,i){let n=new Ae(t,r,i);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function cu(e,t){if(e&&e.includes(Ue.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ue.default.sep+"`")}function hu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _h(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gg(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var vh=(function(e){let i=this.constructor.prototype,n=i[e],s=function(){return n.apply(s,arguments)};return Object.setPrototypeOf(s,i),s});var Ug={}.hasOwnProperty,mu=class e extends vh{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=su()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let i=this.attachers[r];t.use(...i)}return t.data((0,xi.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(du("data",this.frozen),this.namespace[t]=r,this):Ug.call(this.namespace,t)&&this.namespace[t]||void 0:t?(du("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);let n=r.call(t,...i);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=Ai(t),i=this.parser||this.Parser;return fu("parse",i),i(String(r),r)}process(t,r){let i=this;return this.freeze(),fu("process",this.parser||this.Parser),pu("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(s,u){let o=Ai(t),a=i.parse(o);i.run(a,o,function(c,h,f){if(c||!h||!f)return l(c);let p=h,y=i.stringify(p,f);Kg(y)?f.value=y:f.result=y,l(c,f)});function l(c,h){c||!h?u(c):s?s(h):r(void 0,h)}}}processSync(t){let r=!1,i;return this.freeze(),fu("processSync",this.parser||this.Parser),pu("processSync",this.compiler||this.Compiler),this.process(t,n),kh("processSync","process",r),i;function n(s,u){r=!0,nu(s),i=u}}run(t,r,i){Sh(t),this.freeze();let n=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(u,o){let a=Ai(r);n.run(t,a,l);function l(c,h,f){let p=h||t;c?o(c):u?u(p):i(void 0,p,f)}}}runSync(t,r){let i=!1,n;return this.run(t,r,s),kh("runSync","run",i),n;function s(u,o){nu(u),n=o,i=!0}}stringify(t,r){this.freeze();let i=Ai(r),n=this.compiler||this.Compiler;return pu("stringify",n),Sh(t),n(t,i)}use(t,...r){let i=this.attachers,n=this.namespace;if(du("use",this.frozen),t!=null)if(typeof t=="function")a(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(l){if(typeof l=="function")a(l,[]);else if(typeof l=="object")if(Array.isArray(l)){let[c,...h]=l;a(c,h)}else u(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function u(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(n.settings=(0,xi.default)(!0,n.settings,l.settings))}function o(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){let h=l[c];s(h)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function a(l,c){let h=-1,f=-1;for(;++h<i.length;)if(i[h][0]===l){f=h;break}if(f===-1)i.push([l,...c]);else if(c.length>0){let[p,...y]=c,D=i[f][1];vr(D)&&vr(p)&&(p=(0,xi.default)(!0,D,p)),i[f]=[l,p,...y]}}}},Bh=new mu().freeze();function fu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function pu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function du(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Sh(e){if(!vr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ai(e){return Wg(e)?e:new Sr(e)}function Wg(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Kg(e){return typeof e=="string"||Yg(e)}function Yg(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var Qg={};function Du(e,t){let r=t||Qg,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Lh(e,i,n)}function Lh(e,t,r){if(Zg(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rh(e.children,t,r)}return Array.isArray(e)?Rh(e,t,r):""}function Rh(e,t,r){let i=[],n=-1;for(;++n<e.length;)i[n]=Lh(e[n],t,r);return i.join("")}function Zg(e){return!!(e&&typeof e=="object")}var yu={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
51
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var Xg={}.hasOwnProperty;function rr(e){return Xg.call(yu,e)?yu[e]:!1}function ve(e,t,r,i){let n=e.length,s=0,u;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,i.length<1e4)u=Array.from(i),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);s<i.length;)u=i.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function Te(e,t){return e.length>0?(ve(e,e.length,0,t),e):t}var Th={}.hasOwnProperty;function Ih(e){let t={},r=-1;for(;++r<e.length;)Jg(t,e[r]);return t}function Jg(e,t){let r;for(r in t){let n=(Th.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],u;if(s)for(u in s){Th.call(n,u)||(n[u]=[]);let o=s[u];eD(n[u],Array.isArray(o)?o:o?[o]:[])}}}function eD(e,t){let r=-1,i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ve(e,0,0,i)}function Fi(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function ft(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var $e=bt(/[A-Za-z]/),Ie=bt(/[\dA-Za-z]/),Oh=bt(/[#-'*+\--9=?A-Z^-~]/);function kr(e){return e!==null&&(e<32||e===127)}var Br=bt(/\d/),qh=bt(/[\dA-Fa-f]/),Nh=bt(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function de(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}var Ph=bt(/\p{P}|\p{S}/u),Mh=bt(/\s/);function bt(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Y(e,t,r,i){let n=i?i-1:Number.POSITIVE_INFINITY,s=0;return u;function u(a){return U(a)?(e.enter(r),o(a)):t(a)}function o(a){return U(a)&&s++<n?(e.consume(a),o):(e.exit(r),t(a))}}var Hh={tokenize:tD};function tD(e){let t=e.attempt(this.parser.constructs.contentInitial,i,n),r;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Y(e,t,"linePrefix")}function n(o){return e.enter("paragraph"),s(o)}function s(o){let a=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=a),r=a,u(o)}function u(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return q(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),u)}}var $h={tokenize:rD},zh={tokenize:iD};function rD(e){let t=this,r=[],i=0,n,s,u;return o;function o(w){if(i<r.length){let B=r[i];return t.containerState=B[1],e.attempt(B[0].continuation,a,l)(w)}return l(w)}function a(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&_();let B=t.events.length,O=B,C;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){C=t.events[O][1].end;break}g(i);let j=B;for(;j<t.events.length;)t.events[j][1].end={...C},j++;return ve(t.events,O+1,0,t.events.slice(B)),t.events.length=j,l(w)}return o(w)}function l(w){if(i===r.length){if(!n)return f(w);if(n.currentConstruct&&n.currentConstruct.concrete)return y(w);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zh,c,h)(w)}function c(w){return n&&_(),g(i),f(w)}function h(w){return t.parser.lazy[t.now().line]=i!==r.length,u=t.now().offset,y(w)}function f(w){return t.containerState={},e.attempt(zh,p,y)(w)}function p(w){return i++,r.push([t.currentConstruct,t.containerState]),f(w)}function y(w){if(w===null){n&&_(),g(0),e.consume(w);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:s}),D(w)}function D(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return q(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),D)}function v(w,B){let O=t.sliceStream(w);if(B&&O.push(null),w.previous=s,s&&(s.next=w),s=w,n.defineSkip(w.start),n.write(O),t.parser.lazy[w.start.line]){let C=n.events.length;for(;C--;)if(n.events[C][1].start.offset<u&&(!n.events[C][1].end||n.events[C][1].end.offset>u))return;let j=t.events.length,I=j,N,z;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(N){z=t.events[I][1].end;break}N=!0}for(g(i),C=j;C<t.events.length;)t.events[C][1].end={...z},C++;ve(t.events,I+1,0,t.events.slice(j)),t.events.length=C}}function g(w){let B=r.length;for(;B-- >w;){let O=r[B];t.containerState=O[1],O[0].exit.call(t,e)}r.length=w}function _(){n.write([null]),s=void 0,n=void 0,t.containerState._closeFlow=void 0}}function iD(e,t,r){return Y(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Eu(e){if(e===null||de(e)||Mh(e))return 1;if(Ph(e))return 2}function ir(e,t,r){let i=[],n=-1;for(;++n<e.length;){let s=e[n].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}var Rr={name:"attention",resolveAll:nD,tokenize:sD};function nD(e,t){let r=-1,i,n,s,u,o,a,l,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;a=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let h={...e[i][1].end},f={...e[r][1].start};jh(h,-a),jh(f,a),u={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},s={type:a>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},n={type:a>1?"strong":"emphasis",start:{...u.start},end:{...o.end}},e[i][1].end={...u.start},e[r][1].start={...o.end},l=[],e[i][1].end.offset-e[i][1].start.offset&&(l=Te(l,[["enter",e[i][1],t],["exit",e[i][1],t]])),l=Te(l,[["enter",n,t],["enter",u,t],["exit",u,t],["enter",s,t]]),l=Te(l,ir(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),l=Te(l,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,l=Te(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ve(e,i-1,r-i+3,l),r=i+l.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function sD(e,t){let r=this.parser.constructs.attentionMarkers.null,i=this.previous,n=Eu(i),s;return u;function u(a){return s=a,e.enter("attentionSequence"),o(a)}function o(a){if(a===s)return e.consume(a),o;let l=e.exit("attentionSequence"),c=Eu(a),h=!c||c===2&&n||r.includes(a),f=!n||n===2&&c||r.includes(i);return l._open=!!(s===42?h:h&&(n||!f)),l._close=!!(s===42?f:f&&(c||!h)),t(a)}}function jh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var wu={name:"autolink",tokenize:uD};function uD(e,t,r){let i=0;return n;function n(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(p){return $e(p)?(e.consume(p),u):p===64?r(p):l(p)}function u(p){return p===43||p===45||p===46||Ie(p)?(i=1,o(p)):l(p)}function o(p){return p===58?(e.consume(p),i=0,a):(p===43||p===45||p===46||Ie(p))&&i++<32?(e.consume(p),o):(i=0,l(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||kr(p)?r(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):Oh(p)?(e.consume(p),l):r(p)}function c(p){return Ie(p)?h(p):r(p)}function h(p){return p===46?(e.consume(p),i=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ie(p))&&i++<63){let y=p===45?f:h;return e.consume(p),y}return r(p)}}var Ct={partial:!0,tokenize:oD};function oD(e,t,r){return i;function i(s){return U(s)?Y(e,n,"linePrefix")(s):n(s)}function n(s){return s===null||q(s)?t(s):r(s)}}var _i={continuation:{tokenize:lD},exit:cD,name:"blockQuote",tokenize:aD};function aD(e,t,r){let i=this;return n;function n(u){if(u===62){let o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return r(u)}function s(u){return U(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function lD(e,t,r){let i=this;return n;function n(u){return U(u)?Y(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(_i,t,r)(u)}}function cD(e){e.exit("blockQuote")}var vi={name:"characterEscape",tokenize:hD};function hD(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),n}function n(s){return Nh(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}var Si={name:"characterReference",tokenize:fD};function fD(e,t,r){let i=this,n=0,s,u;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),a}function a(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),s=31,u=Ie,c(h))}function l(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=qh,c):(e.enter("characterReferenceValue"),s=7,u=Br,c(h))}function c(h){if(h===59&&n){let f=e.exit("characterReferenceValue");return u===Ie&&!rr(i.sliceSerialize(f))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(h)&&n++<s?(e.consume(h),c):r(h)}}var Vh={partial:!0,tokenize:dD},ki={concrete:!0,name:"codeFenced",tokenize:pD};function pD(e,t,r){let i=this,n={partial:!0,tokenize:O},s=0,u=0,o;return a;function a(C){return l(C)}function l(C){let j=i.events[i.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,o=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===o?(u++,e.consume(C),c):u<3?r(C):(e.exit("codeFencedFenceSequence"),U(C)?Y(e,h,"whitespace")(C):h(C))}function h(C){return C===null||q(C)?(e.exit("codeFencedFence"),i.interrupt?t(C):e.check(Vh,D,B)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(C))}function f(C){return C===null||q(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(C)):U(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,p,"whitespace")(C)):C===96&&C===o?r(C):(e.consume(C),f)}function p(C){return C===null||q(C)?h(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===null||q(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(C)):C===96&&C===o?r(C):(e.consume(C),y)}function D(C){return e.attempt(n,B,v)(C)}function v(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),g}function g(C){return s>0&&U(C)?Y(e,_,"linePrefix",s+1)(C):_(C)}function _(C){return C===null||q(C)?e.check(Vh,D,B)(C):(e.enter("codeFlowValue"),w(C))}function w(C){return C===null||q(C)?(e.exit("codeFlowValue"),_(C)):(e.consume(C),w)}function B(C){return e.exit("codeFenced"),t(C)}function O(C,j,I){let N=0;return z;function z(E){return C.enter("lineEnding"),C.consume(E),C.exit("lineEnding"),A}function A(E){return C.enter("codeFencedFence"),U(E)?Y(C,H,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):H(E)}function H(E){return E===o?(C.enter("codeFencedFenceSequence"),L(E)):I(E)}function L(E){return E===o?(N++,C.consume(E),L):N>=u?(C.exit("codeFencedFenceSequence"),U(E)?Y(C,$,"whitespace")(E):$(E)):I(E)}function $(E){return E===null||q(E)?(C.exit("codeFencedFence"),j(E)):I(E)}}}function dD(e,t,r){let i=this;return n;function n(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}var Lr={name:"codeIndented",tokenize:gD},mD={partial:!0,tokenize:DD};function gD(e,t,r){let i=this;return n;function n(l){return e.enter("codeIndented"),Y(e,s,"linePrefix",5)(l)}function s(l){let c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?u(l):r(l)}function u(l){return l===null?a(l):q(l)?e.attempt(mD,u,a)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||q(l)?(e.exit("codeFlowValue"),u(l)):(e.consume(l),o)}function a(l){return e.exit("codeIndented"),t(l)}}function DD(e,t,r){let i=this;return n;function n(u){return i.parser.lazy[i.now().line]?r(u):q(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n):Y(e,s,"linePrefix",5)(u)}function s(u){let o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):q(u)?n(u):r(u)}}var bu={name:"codeText",previous:ED,resolve:yD,tokenize:wD};function yD(e){let t=e.length-4,r=3,i,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)n===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(n=i):(i===t||e[i][1].type==="lineEnding")&&(e[n][1].type="codeTextData",i!==n+2&&(e[n][1].end=e[i-1][1].end,e.splice(n+2,i-n-2),t-=i-n-2,i=n+2),n=void 0);return e}function ED(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wD(e,t,r){let i=this,n=0,s,u;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),n++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(u=e.enter("codeTextSequence"),s=0,h(f)):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||q(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function h(f){return f===96?(e.consume(f),s++,h):s===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(u.type="codeTextData",c(f))}}var Bi=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let i=r==null?Number.POSITIVE_INFINITY:r;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){let n=r||0;this.setCursor(Math.trunc(t));let s=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return i&&Tr(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Tr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Tr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Tr(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Tr(this.left,r.reverse())}}};function Tr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Ri(e){let t={},r=-1,i,n,s,u,o,a,l,c=new Bi(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(i=c.get(r),r&&i[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(a=i[1]._tokenizer.events,s=0,s<a.length&&a[s][1].type==="lineEndingBlank"&&(s+=2),s<a.length&&a[s][1].type==="content"))for(;++s<a.length&&a[s][1].type!=="content";)a[s][1].type==="chunkText"&&(a[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,bD(c,r)),r=t[r],l=!0);else if(i[1]._container){for(s=r,n=void 0;s--;)if(u=c.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),u[1].type="lineEnding",n=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;n&&(i[1].end={...c.get(n)[1].start},o=c.slice(n,r),o.unshift(i),c.splice(n,r-n+1,o))}}return ve(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function bD(e,t){let r=e.get(t)[1],i=e.get(t)[2],n=t-1,s=[],u=r._tokenizer;u||(u=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));let o=u.events,a=[],l={},c,h,f=-1,p=r,y=0,D=0,v=[D];for(;p;){for(;e.get(++n)[1]!==p;);s.push(n),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),h&&u.defineSkip(p.start),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(c),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(D=f+1,v.push(D),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(u.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),f=v.length;f--;){let g=o.slice(v[f],v[f+1]),_=s.pop();a.push([_,_+g.length-1]),e.splice(_,2,g)}for(a.reverse(),f=-1;++f<a.length;)l[y+a[f][0]]=y+a[f][1],y+=a[f][1]-a[f][0]-1;return l}var Cu={resolve:AD,tokenize:xD},CD={partial:!0,tokenize:FD};function AD(e){return Ri(e),e}function xD(e,t){let r;return i;function i(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(o)}function n(o){return o===null?s(o):q(o)?e.check(CD,u,s)(o):(e.consume(o),n)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function u(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function FD(e,t,r){let i=this;return n;function n(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Y(e,s,"linePrefix")}function s(u){if(u===null||q(u))return r(u);let o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,r,t)(u)}}function Li(e,t,r,i,n,s,u,o,a){let l=a||Number.POSITIVE_INFINITY,c=0;return h;function h(g){return g===60?(e.enter(i),e.enter(n),e.enter(s),e.consume(g),e.exit(s),f):g===null||g===32||g===41||kr(g)?r(g):(e.enter(i),e.enter(u),e.enter(o),e.enter("chunkString",{contentType:"string"}),D(g))}function f(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(n),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(o),f(g)):g===null||g===60||q(g)?r(g):(e.consume(g),g===92?y:p)}function y(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function D(g){return!c&&(g===null||g===41||de(g))?(e.exit("chunkString"),e.exit(o),e.exit(u),e.exit(i),t(g)):c<l&&g===40?(e.consume(g),c++,D):g===41?(e.consume(g),c--,D):g===null||g===32||g===40||kr(g)?r(g):(e.consume(g),g===92?v:D)}function v(g){return g===40||g===41||g===92?(e.consume(g),D):D(g)}}function Ti(e,t,r,i,n,s){let u=this,o=0,a;return l;function l(p){return e.enter(i),e.enter(n),e.consume(p),e.exit(n),e.enter(s),c}function c(p){return o>999||p===null||p===91||p===93&&!a||p===94&&!o&&"_hiddenFootnoteSupport"in u.parser.constructs?r(p):p===93?(e.exit(s),e.enter(n),e.consume(p),e.exit(n),e.exit(i),t):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||q(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!U(p)),p===92?f:h)}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function Ii(e,t,r,i,n,s){let u;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(n),e.consume(f),e.exit(n),u=f===40?41:f,a):r(f)}function a(f){return f===u?(e.enter(n),e.consume(f),e.exit(n),e.exit(i),t):(e.enter(s),l(f))}function l(f){return f===u?(e.exit(s),a(u)):f===null?r(f):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Y(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===u||f===null||q(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?h:c)}function h(f){return f===u||f===92?(e.consume(f),c):c(f)}}function Pt(e,t){let r;return i;function i(n){return q(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,i):U(n)?Y(e,i,r?"linePrefix":"lineSuffix")(n):t(n)}}var Au={name:"definition",tokenize:vD},_D={partial:!0,tokenize:SD};function vD(e,t,r){let i=this,n;return s;function s(p){return e.enter("definition"),u(p)}function u(p){return Ti.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return n=ft(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):r(p)}function a(p){return de(p)?Pt(e,l)(p):l(p)}function l(p){return Li(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(_D,h,h)(p)}function h(p){return U(p)?Y(e,f,"whitespace")(p):f(p)}function f(p){return p===null||q(p)?(e.exit("definition"),i.parser.defined.push(n),t(p)):r(p)}}function SD(e,t,r){return i;function i(o){return de(o)?Pt(e,n)(o):r(o)}function n(o){return Ii(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return U(o)?Y(e,u,"whitespace")(o):u(o)}function u(o){return o===null||q(o)?t(o):r(o)}}var xu={name:"hardBreakEscape",tokenize:kD};function kD(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),n}function n(s){return q(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}var Fu={name:"headingAtx",resolve:BD,tokenize:RD};function BD(e,t){let r=e.length-2,i=3,n,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},ve(e,i,r-i+1,[["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t]])),e}function RD(e,t,r){let i=0;return n;function n(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),u(c)}function u(c){return c===35&&i++<6?(e.consume(c),u):c===null||de(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||q(c)?(e.exit("atxHeading"),t(c)):U(c)?Y(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||de(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}var Gh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_u=["pre","script","style","textarea"];var vu={concrete:!0,name:"htmlFlow",resolveTo:ID,tokenize:OD},LD={partial:!0,tokenize:ND},TD={partial:!0,tokenize:qD};function ID(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function OD(e,t,r){let i=this,n,s,u,o,a;return l;function l(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),h}function h(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),s=!0,D):m===63?(e.consume(m),n=3,i.interrupt?t:d):$e(m)?(e.consume(m),u=String.fromCharCode(m),v):r(m)}function f(m){return m===45?(e.consume(m),n=2,p):m===91?(e.consume(m),n=5,o=0,y):$e(m)?(e.consume(m),n=4,i.interrupt?t:d):r(m)}function p(m){return m===45?(e.consume(m),i.interrupt?t:d):r(m)}function y(m){let ye="CDATA[";return m===ye.charCodeAt(o++)?(e.consume(m),o===ye.length?i.interrupt?t:H:y):r(m)}function D(m){return $e(m)?(e.consume(m),u=String.fromCharCode(m),v):r(m)}function v(m){if(m===null||m===47||m===62||de(m)){let ye=m===47,Re=u.toLowerCase();return!ye&&!s&&_u.includes(Re)?(n=1,i.interrupt?t(m):H(m)):Gh.includes(u.toLowerCase())?(n=6,ye?(e.consume(m),g):i.interrupt?t(m):H(m)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(m):s?_(m):w(m))}return m===45||Ie(m)?(e.consume(m),u+=String.fromCharCode(m),v):r(m)}function g(m){return m===62?(e.consume(m),i.interrupt?t:H):r(m)}function _(m){return U(m)?(e.consume(m),_):z(m)}function w(m){return m===47?(e.consume(m),z):m===58||m===95||$e(m)?(e.consume(m),B):U(m)?(e.consume(m),w):z(m)}function B(m){return m===45||m===46||m===58||m===95||Ie(m)?(e.consume(m),B):O(m)}function O(m){return m===61?(e.consume(m),C):U(m)?(e.consume(m),O):w(m)}function C(m){return m===null||m===60||m===61||m===62||m===96?r(m):m===34||m===39?(e.consume(m),a=m,j):U(m)?(e.consume(m),C):I(m)}function j(m){return m===a?(e.consume(m),a=null,N):m===null||q(m)?r(m):(e.consume(m),j)}function I(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||de(m)?O(m):(e.consume(m),I)}function N(m){return m===47||m===62||U(m)?w(m):r(m)}function z(m){return m===62?(e.consume(m),A):r(m)}function A(m){return m===null||q(m)?H(m):U(m)?(e.consume(m),A):r(m)}function H(m){return m===45&&n===2?(e.consume(m),b):m===60&&n===1?(e.consume(m),ee):m===62&&n===4?(e.consume(m),ue):m===63&&n===3?(e.consume(m),d):m===93&&n===5?(e.consume(m),fe):q(m)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(LD,Oe,L)(m)):m===null||q(m)?(e.exit("htmlFlowData"),L(m)):(e.consume(m),H)}function L(m){return e.check(TD,$,Oe)(m)}function $(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),E}function E(m){return m===null||q(m)?L(m):(e.enter("htmlFlowData"),H(m))}function b(m){return m===45?(e.consume(m),d):H(m)}function ee(m){return m===47?(e.consume(m),u="",G):H(m)}function G(m){if(m===62){let ye=u.toLowerCase();return _u.includes(ye)?(e.consume(m),ue):H(m)}return $e(m)&&u.length<8?(e.consume(m),u+=String.fromCharCode(m),G):H(m)}function fe(m){return m===93?(e.consume(m),d):H(m)}function d(m){return m===62?(e.consume(m),ue):m===45&&n===2?(e.consume(m),d):H(m)}function ue(m){return m===null||q(m)?(e.exit("htmlFlowData"),Oe(m)):(e.consume(m),ue)}function Oe(m){return e.exit("htmlFlow"),t(m)}}function qD(e,t,r){let i=this;return n;function n(u){return q(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):r(u)}function s(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}function ND(e,t,r){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Ct,t,r)}}var Su={name:"htmlText",tokenize:PD};function PD(e,t,r){let i=this,n,s,u;return o;function o(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),a}function a(d){return d===33?(e.consume(d),l):d===47?(e.consume(d),O):d===63?(e.consume(d),w):$e(d)?(e.consume(d),I):r(d)}function l(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),s=0,y):$e(d)?(e.consume(d),_):r(d)}function c(d){return d===45?(e.consume(d),p):r(d)}function h(d){return d===null?r(d):d===45?(e.consume(d),f):q(d)?(u=h,ee(d)):(e.consume(d),h)}function f(d){return d===45?(e.consume(d),p):h(d)}function p(d){return d===62?b(d):d===45?f(d):h(d)}function y(d){let ue="CDATA[";return d===ue.charCodeAt(s++)?(e.consume(d),s===ue.length?D:y):r(d)}function D(d){return d===null?r(d):d===93?(e.consume(d),v):q(d)?(u=D,ee(d)):(e.consume(d),D)}function v(d){return d===93?(e.consume(d),g):D(d)}function g(d){return d===62?b(d):d===93?(e.consume(d),g):D(d)}function _(d){return d===null||d===62?b(d):q(d)?(u=_,ee(d)):(e.consume(d),_)}function w(d){return d===null?r(d):d===63?(e.consume(d),B):q(d)?(u=w,ee(d)):(e.consume(d),w)}function B(d){return d===62?b(d):w(d)}function O(d){return $e(d)?(e.consume(d),C):r(d)}function C(d){return d===45||Ie(d)?(e.consume(d),C):j(d)}function j(d){return q(d)?(u=j,ee(d)):U(d)?(e.consume(d),j):b(d)}function I(d){return d===45||Ie(d)?(e.consume(d),I):d===47||d===62||de(d)?N(d):r(d)}function N(d){return d===47?(e.consume(d),b):d===58||d===95||$e(d)?(e.consume(d),z):q(d)?(u=N,ee(d)):U(d)?(e.consume(d),N):b(d)}function z(d){return d===45||d===46||d===58||d===95||Ie(d)?(e.consume(d),z):A(d)}function A(d){return d===61?(e.consume(d),H):q(d)?(u=A,ee(d)):U(d)?(e.consume(d),A):N(d)}function H(d){return d===null||d===60||d===61||d===62||d===96?r(d):d===34||d===39?(e.consume(d),n=d,L):q(d)?(u=H,ee(d)):U(d)?(e.consume(d),H):(e.consume(d),$)}function L(d){return d===n?(e.consume(d),n=void 0,E):d===null?r(d):q(d)?(u=L,ee(d)):(e.consume(d),L)}function $(d){return d===null||d===34||d===39||d===60||d===61||d===96?r(d):d===47||d===62||de(d)?N(d):(e.consume(d),$)}function E(d){return d===47||d===62||de(d)?N(d):r(d)}function b(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):r(d)}function ee(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),G}function G(d){return U(d)?Y(e,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):fe(d)}function fe(d){return e.enter("htmlTextData"),u(d)}}var Mt={name:"labelEnd",resolveAll:$D,resolveTo:jD,tokenize:VD},MD={tokenize:GD},HD={tokenize:UD},zD={tokenize:WD};function $D(e){let t=-1,r=[];for(;++t<e.length;){let i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){let n=i.type==="labelImage"?4:2;i.type="data",t+=n}}return e.length!==r.length&&ve(e,0,e.length,r),e}function jD(e,t){let r=e.length,i=0,n,s,u,o;for(;r--;)if(n=e[r][1],s){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(s=r,n.type!=="labelLink")){i=2;break}}else n.type==="labelEnd"&&(u=r);let a={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},c={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[u-2][1].start}};return o=[["enter",a,t],["enter",l,t]],o=Te(o,e.slice(s+1,s+i+3)),o=Te(o,[["enter",c,t]]),o=Te(o,ir(t.parser.constructs.insideSpan.null,e.slice(s+i+4,u-3),t)),o=Te(o,[["exit",c,t],e[u-2],e[u-1],["exit",l,t]]),o=Te(o,e.slice(u+1)),o=Te(o,[["exit",a,t]]),ve(e,s,e.length,o),e}function VD(e,t,r){let i=this,n=i.events.length,s,u;for(;n--;)if((i.events[n][1].type==="labelImage"||i.events[n][1].type==="labelLink")&&!i.events[n][1]._balanced){s=i.events[n][1];break}return o;function o(f){return s?s._inactive?h(f):(u=i.parser.defined.includes(ft(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):r(f)}function a(f){return f===40?e.attempt(MD,c,u?c:h)(f):f===91?e.attempt(HD,c,u?l:h)(f):u?c(f):h(f)}function l(f){return e.attempt(zD,c,h)(f)}function c(f){return t(f)}function h(f){return s._balanced=!0,r(f)}}function GD(e,t,r){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),n}function n(h){return de(h)?Pt(e,s)(h):s(h)}function s(h){return h===41?c(h):Li(e,u,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function u(h){return de(h)?Pt(e,a)(h):c(h)}function o(h){return r(h)}function a(h){return h===34||h===39||h===40?Ii(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function l(h){return de(h)?Pt(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function UD(e,t,r){let i=this;return n;function n(o){return Ti.call(i,e,s,u,"reference","referenceMarker","referenceString")(o)}function s(o){return i.parser.defined.includes(ft(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function u(o){return r(o)}}function WD(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),n}function n(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}var ku={name:"labelStartImage",resolveAll:Mt.resolveAll,tokenize:KD};function KD(e,t,r){let i=this;return n;function n(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),u):r(o)}function u(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}var Bu={name:"labelStartLink",resolveAll:Mt.resolveAll,tokenize:YD};function YD(e,t,r){let i=this;return n;function n(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}var Ir={name:"lineEnding",tokenize:QD};function QD(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Y(e,t,"linePrefix")}}var Ht={name:"thematicBreak",tokenize:ZD};function ZD(e,t,r){let i=0,n;return s;function s(l){return e.enter("thematicBreak"),u(l)}function u(l){return n=l,o(l)}function o(l){return l===n?(e.enter("thematicBreakSequence"),a(l)):i>=3&&(l===null||q(l))?(e.exit("thematicBreak"),t(l)):r(l)}function a(l){return l===n?(e.consume(l),i++,a):(e.exit("thematicBreakSequence"),U(l)?Y(e,o,"whitespace")(l):o(l))}}var Be={continuation:{tokenize:t1},exit:i1,name:"list",tokenize:e1},XD={partial:!0,tokenize:n1},JD={partial:!0,tokenize:r1};function e1(e,t,r){let i=this,n=i.events[i.events.length-1],s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,u=0;return o;function o(p){let y=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:Br(p)){if(i.containerState.type||(i.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ht,r,l)(p):l(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return r(p)}function a(p){return Br(p)&&++u<10?(e.consume(p),a):(!i.interrupt||u<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):r(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(Ct,i.interrupt?r:c,e.attempt(XD,f,h))}function c(p){return i.containerState.initialBlankLine=!0,s++,f(p)}function h(p){return U(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):r(p)}function f(p){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function t1(e,t,r){let i=this;return i.containerState._closeFlow=void 0,e.check(Ct,n,s);function n(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Y(e,t,"listItemIndent",i.containerState.size+1)(o)}function s(o){return i.containerState.furtherBlankLines||!U(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(JD,t,u)(o))}function u(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Y(e,e.attempt(Be,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function r1(e,t,r){let i=this;return Y(e,n,"listItemIndent",i.containerState.size+1);function n(s){let u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(s):r(s)}}function i1(e){e.exit(this.containerState.type)}function n1(e,t,r){let i=this;return Y(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){let u=i.events[i.events.length-1];return!U(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}var Oi={name:"setextUnderline",resolveTo:s1,tokenize:u1};function s1(e,t){let r=e.length,i,n,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);let u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",s?(e.splice(n,0,["enter",u,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function u1(e,t,r){let i=this,n;return s;function s(l){let c=i.events.length,h;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){h=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),n=l,u(l)):r(l)}function u(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===n?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),U(l)?Y(e,a,"lineSuffix")(l):a(l))}function a(l){return l===null||q(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}var Uh={tokenize:o1};function o1(e){let t=this,r=e.attempt(Ct,i,e.attempt(this.parser.constructs.flowInitial,n,Y(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Cu,n)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var Wh={resolveAll:Zh()},Kh=Qh("string"),Yh=Qh("text");function Qh(e){return{resolveAll:Zh(e==="text"?a1:void 0),tokenize:t};function t(r){let i=this,n=this.parser.constructs[e],s=r.attempt(n,u,o);return u;function u(c){return l(c)?s(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),a}function a(c){return l(c)?(r.exit("data"),s(c)):(r.consume(c),a)}function l(c){if(c===null)return!0;let h=n[c],f=-1;if(h)for(;++f<h.length;){let p=h[f];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function Zh(e){return t;function t(r,i){let n=-1,s;for(;++n<=r.length;)s===void 0?r[n]&&r[n][1].type==="data"&&(s=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==s+2&&(r[s][1].end=r[n-1][1].end,r.splice(s+2,n-s-2),n=s+2),s=void 0);return e?e(r,i):r}}function a1(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let i=e[r-1][1],n=t.sliceStream(i),s=n.length,u=-1,o=0,a;for(;s--;){let l=n[s];if(typeof l=="string"){for(u=l.length;l.charCodeAt(u-1)===32;)o++,u--;if(u)break;u=-1}else if(l===-2)a=!0,o++;else if(l!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){let l={type:r===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:i.start._bufferIndex+u,_index:i.start._index+s,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}var Ru={};qr(Ru,{attentionMarkers:()=>g1,contentInitial:()=>c1,disable:()=>D1,document:()=>l1,flow:()=>f1,flowInitial:()=>h1,insideSpan:()=>m1,string:()=>p1,text:()=>d1});var l1={42:Be,43:Be,45:Be,48:Be,49:Be,50:Be,51:Be,52:Be,53:Be,54:Be,55:Be,56:Be,57:Be,62:_i},c1={91:Au},h1={[-2]:Lr,[-1]:Lr,32:Lr},f1={35:Fu,42:Ht,45:[Oi,Ht],60:vu,61:Oi,95:Ht,96:ki,126:ki},p1={38:Si,92:vi},d1={[-5]:Ir,[-4]:Ir,[-3]:Ir,33:ku,38:Si,42:Rr,60:[wu,Su],91:Bu,92:[xu,vi],93:Mt,95:Rr,96:bu},m1={null:[Rr,Wh]},g1={null:[42,95]},D1={null:[]};function Xh(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},n={},s=[],u=[],o=[],a=!0,l={attempt:N(j),check:N(I),consume:B,enter:O,exit:C,interrupt:N(I,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:v,parser:e,previous:null,sliceSerialize:y,sliceStream:D,write:p},h=t.tokenize.call(c,l),f;return t.resolveAll&&s.push(t),c;function p(L){return u=Te(u,L),_(),u[u.length-1]!==null?[]:(z(t,0),c.events=ir(s,c.events,c),c.events)}function y(L,$){return E1(D(L),$)}function D(L){return y1(u,L)}function v(){let{_bufferIndex:L,_index:$,line:E,column:b,offset:ee}=i;return{_bufferIndex:L,_index:$,line:E,column:b,offset:ee}}function g(L){n[L.line]=L.column,H()}function _(){let L;for(;i._index<u.length;){let $=u[i._index];if(typeof $=="string")for(L=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===L&&i._bufferIndex<$.length;)w($.charCodeAt(i._bufferIndex));else w($)}}function w(L){a=void 0,f=L,h=h(L)}function B(L){q(L)?(i.line++,i.column=1,i.offset+=L===-3?2:1,H()):L!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=L,a=!0}function O(L,$){let E=$||{};return E.type=L,E.start=v(),c.events.push(["enter",E,c]),o.push(E),E}function C(L){let $=o.pop();return $.end=v(),c.events.push(["exit",$,c]),$}function j(L,$){z(L,$.from)}function I(L,$){$.restore()}function N(L,$){return E;function E(b,ee,G){let fe,d,ue,Oe;return Array.isArray(b)?ye(b):"tokenize"in b?ye([b]):m(b);function m(ge){return T;function T(te){let k=te!==null&&ge[te],V=te!==null&&ge.null,ne=[...Array.isArray(k)?k:k?[k]:[],...Array.isArray(V)?V:V?[V]:[]];return ye(ne)(te)}}function ye(ge){return fe=ge,d=0,ge.length===0?G:Re(ge[d])}function Re(ge){return T;function T(te){return Oe=A(),ue=ge,ge.partial||(c.currentConstruct=ge),ge.name&&c.parser.constructs.disable.null.includes(ge.name)?rt(te):ge.tokenize.call($?Object.assign(Object.create(c),$):c,l,Q,rt)(te)}}function Q(ge){return a=!0,L(ue,Oe),ee}function rt(ge){return a=!0,Oe.restore(),++d<fe.length?Re(fe[d]):G}}}function z(L,$){L.resolveAll&&!s.includes(L)&&s.push(L),L.resolve&&ve(c.events,$,c.events.length-$,L.resolve(c.events.slice($),c)),L.resolveTo&&(c.events=L.resolveTo(c.events,c))}function A(){let L=v(),$=c.previous,E=c.currentConstruct,b=c.events.length,ee=Array.from(o);return{from:b,restore:G};function G(){i=L,c.previous=$,c.currentConstruct=E,c.events.length=b,o=ee,H()}}function H(){i.line in n&&i.column<2&&(i.column=n[i.line],i.offset+=n[i.line]-1)}}function y1(e,t){let r=t.start._index,i=t.start._bufferIndex,n=t.end._index,s=t.end._bufferIndex,u;if(r===n)u=[e[r].slice(i,s)];else{if(u=e.slice(r,n),i>-1){let o=u[0];typeof o=="string"?u[0]=o.slice(i):u.shift()}s>0&&u.push(e[n].slice(0,s))}return u}function E1(e,t){let r=-1,i=[],n;for(;++r<e.length;){let s=e[r],u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
52
+ `;break}case-3:{u=`\r
53
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&n)continue;u=" ";break}default:u=String.fromCharCode(s)}n=s===-2,i.push(u)}return i.join("")}function Lu(e){let i={constructs:Ih([Ru,...(e||{}).extensions||[]]),content:n(Hh),defined:[],document:n($h),flow:n(Uh),lazy:{},string:n(Kh),text:n(Yh)};return i;function n(s){return u;function u(o){return Xh(i,s,o)}}}function Tu(e){for(;!Ri(e););return e}var Jh=/[\0\t\n\r]/g;function Iu(){let e=1,t="",r=!0,i;return n;function n(s,u,o){let a=[],l,c,h,f,p;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),h=0,t="",r&&(s.charCodeAt(0)===65279&&h++,r=void 0);h<s.length;){if(Jh.lastIndex=h,l=Jh.exec(s),f=l&&l.index!==void 0?l.index:s.length,p=s.charCodeAt(f),!l){t=s.slice(h);break}if(p===10&&h===f&&i)a.push(-3),i=void 0;else switch(i&&(a.push(-5),i=void 0),h<f&&(a.push(s.slice(h,f)),e+=f-h),p){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:i=!0,e=1}h=f+1}return o&&(i&&a.push(-5),t&&a.push(t),a.push(null)),a}}var w1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ef(e){return e.replace(w1,b1)}function b1(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let n=r.charCodeAt(1),s=n===120||n===88;return Fi(r.slice(s?2:1),s?16:10)}return rr(r)||e}var rf={}.hasOwnProperty;function Ou(e,t,r){return typeof t!="string"&&(r=t,t=void 0),C1(r)(Tu(Lu(r).document().write(Iu()(e,t,!0))))}function C1(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(qu),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(he),blockQuote:s(te),characterEscape:N,characterReference:N,codeFenced:s(k),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(k,u),codeText:s(V,u),codeTextData:N,data:N,codeFlowValue:N,definition:s(ne),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(xe),hardBreakEscape:s(zt),hardBreakTrailing:s(zt),htmlFlow:s(xt,u),htmlFlowData:N,htmlText:s(xt,u),htmlTextData:N,image:s(cf),label:u,link:s(qu),listItem:s(hf),listItemValue:f,listOrdered:s(Nu,h),listUnordered:s(Nu),paragraph:s(ff),reference:m,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(he),strong:s(pf),thematicBreak:s(mf)},exit:{atxHeading:a(),atxHeadingSequence:O,autolink:a(),autolinkEmail:T,autolinkProtocol:ge,blockQuote:a(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:Q,characterReference:rt,codeFenced:a(v),codeFencedFence:D,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:z,codeIndented:a(g),codeText:a(E),codeTextData:z,data:z,definition:a(),definitionDestinationString:B,definitionLabelString:_,definitionTitleString:w,emphasis:a(),hardBreakEscape:a(H),hardBreakTrailing:a(H),htmlFlow:a(L),htmlFlowData:z,htmlText:a($),htmlTextData:z,image:a(ee),label:fe,labelText:G,lineEnding:A,link:a(b),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:ye,resourceDestinationString:d,resourceTitleString:ue,resource:Oe,setextHeading:a(I),setextHeadingLineSequence:j,setextHeadingText:C,strong:a(),thematicBreak:a()}};nf(t,(e||{}).mdastExtensions||[]);let r={};return i;function i(x){let R={type:"root",children:[]},W={stack:[R],tokenStack:[],config:t,enter:o,exit:l,buffer:u,resume:c,data:r},re=[],se=-1;for(;++se<x.length;)if(x[se][1].type==="listOrdered"||x[se][1].type==="listUnordered")if(x[se][0]==="enter")re.push(se);else{let We=re.pop();se=n(x,We,se)}for(se=-1;++se<x.length;){let We=t[x[se][0]];rf.call(We,x[se][1].type)&&We[x[se][1].type].call(Object.assign({sliceSerialize:x[se][2].sliceSerialize},W),x[se][1])}if(W.tokenStack.length>0){let We=W.tokenStack[W.tokenStack.length-1];(We[1]||tf).call(W,void 0,We[0])}for(R.position={start:At(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:At(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se<t.transforms.length;)R=t.transforms[se](R)||R;return R}function n(x,R,W){let re=R-1,se=-1,We=!1,Ft,it,nr,sr;for(;++re<=W;){let Pe=x[re];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?se++:se--,sr=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(Ft&&!sr&&!se&&!nr&&(nr=re),sr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sr=void 0}if(!se&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||se===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(Ft){let $t=re;for(it=void 0;$t--;){let nt=x[$t];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;it&&(x[it][1].type="lineEndingBlank",We=!0),nt[1].type="lineEnding",it=$t}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}nr&&(!it||nr<it)&&(Ft._spread=!0),Ft.end=Object.assign({},it?x[it][1].start:Pe[1].end),x.splice(it||re,0,["exit",Ft,Pe[2]]),re++,W++}if(Pe[1].type==="listItemPrefix"){let $t={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};Ft=$t,x.splice(re,0,["enter",$t,Pe[2]]),re++,W++,nr=void 0,sr=!0}}}return x[R][1]._spread=We,W}function s(x,R){return W;function W(re){o.call(this,x(re),re),R&&R.call(this,re)}}function u(){this.stack.push({type:"fragment",children:[]})}function o(x,R,W){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([R,W||void 0]),x.position={start:At(R.start),end:void 0}}function a(x){return R;function R(W){x&&x.call(this,W),l.call(this,W)}}function l(x,R){let W=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==x.type&&(R?R.call(this,x,re[0]):(re[1]||tf).call(this,x,re[0]));else throw new Error("Cannot close `"+x.type+"` ("+wt({start:x.start,end:x.end})+"): it\u2019s not open");W.position.end=At(x.end)}function c(){return Du(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(x){if(this.data.expectingFirstListItemValue){let R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function p(){let x=this.resume(),R=this.stack[this.stack.length-1];R.lang=x}function y(){let x=this.resume(),R=this.stack[this.stack.length-1];R.meta=x}function D(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let x=this.resume(),R=this.stack[this.stack.length-1];R.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let x=this.resume(),R=this.stack[this.stack.length-1];R.value=x.replace(/(\r?\n|\r)$/g,"")}function _(x){let R=this.resume(),W=this.stack[this.stack.length-1];W.label=R,W.identifier=ft(this.sliceSerialize(x)).toLowerCase()}function w(){let x=this.resume(),R=this.stack[this.stack.length-1];R.title=x}function B(){let x=this.resume(),R=this.stack[this.stack.length-1];R.url=x}function O(x){let R=this.stack[this.stack.length-1];if(!R.depth){let W=this.sliceSerialize(x).length;R.depth=W}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function j(x){let R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function N(x){let W=this.stack[this.stack.length-1].children,re=W[W.length-1];(!re||re.type!=="text")&&(re=df(),re.position={start:At(x.start),end:void 0},W.push(re)),this.stack.push(re)}function z(x){let R=this.stack.pop();R.value+=this.sliceSerialize(x),R.position.end=At(x.end)}function A(x){let R=this.stack[this.stack.length-1];if(this.data.atHardBreak){let W=R.children[R.children.length-1];W.position.end=At(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(R.type)&&(N.call(this,x),z.call(this,x))}function H(){this.data.atHardBreak=!0}function L(){let x=this.resume(),R=this.stack[this.stack.length-1];R.value=x}function $(){let x=this.resume(),R=this.stack[this.stack.length-1];R.value=x}function E(){let x=this.resume(),R=this.stack[this.stack.length-1];R.value=x}function b(){let x=this.stack[this.stack.length-1];if(this.data.inReference){let R=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=R,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function ee(){let x=this.stack[this.stack.length-1];if(this.data.inReference){let R=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=R,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function G(x){let R=this.sliceSerialize(x),W=this.stack[this.stack.length-2];W.label=ef(R),W.identifier=ft(R).toLowerCase()}function fe(){let x=this.stack[this.stack.length-1],R=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){let re=x.children;W.children=re}else W.alt=R}function d(){let x=this.resume(),R=this.stack[this.stack.length-1];R.url=x}function ue(){let x=this.resume(),R=this.stack[this.stack.length-1];R.title=x}function Oe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function ye(x){let R=this.resume(),W=this.stack[this.stack.length-1];W.label=R,W.identifier=ft(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function Re(x){this.data.characterReferenceType=x.type}function Q(x){let R=this.sliceSerialize(x),W=this.data.characterReferenceType,re;W?(re=Fi(R,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=rr(R);let se=this.stack[this.stack.length-1];se.value+=re}function rt(x){let R=this.stack.pop();R.position.end=At(x.end)}function ge(x){z.call(this,x);let R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(x)}function T(x){z.call(this,x);let R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(x)}function te(){return{type:"blockquote",children:[]}}function k(){return{type:"code",lang:null,meta:null,value:""}}function V(){return{type:"inlineCode",value:""}}function ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xe(){return{type:"emphasis",children:[]}}function he(){return{type:"heading",depth:0,children:[]}}function zt(){return{type:"break"}}function xt(){return{type:"html",value:""}}function cf(){return{type:"image",title:null,url:"",alt:null}}function qu(){return{type:"link",title:null,url:"",children:[]}}function Nu(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function hf(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function ff(){return{type:"paragraph",children:[]}}function pf(){return{type:"strong",children:[]}}function df(){return{type:"text",value:""}}function mf(){return{type:"thematicBreak"}}}function At(e){return{line:e.line,column:e.column,offset:e.offset}}function nf(e,t){let r=-1;for(;++r<t.length;){let i=t[r];Array.isArray(i)?nf(e,i):A1(e,i)}}function A1(e,t){let r;for(r in t)if(rf.call(t,r))switch(r){case"canContainEols":{let i=t[r];i&&e[r].push(...i);break}case"transforms":{let i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{let i=t[r];i&&Object.assign(e[r],i);break}}}function tf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wt({start:t.start,end:t.end})+") is still open")}function qi(e){let t=this;t.parser=r;function r(i){return Ou(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var x1=sf.default,F1=uf.default,_1=of.default,v1=af.default,S1=lf.default,k1=iu,B1=gu,R1=qi;0&&(module.exports={chokidar,enquirer,getEastAsianWidth,json5,remarkParse,sourceMapSupport,stoppable,unified});
54
+ /*! Bundled license information:
55
+
56
+ normalize-path/index.js:
57
+ (*!
58
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
59
+ *
60
+ * Copyright (c) 2014-2018, Jon Schlinkert.
61
+ * Released under the MIT License.
62
+ *)
63
+
64
+ is-extglob/index.js:
65
+ (*!
66
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
67
+ *
68
+ * Copyright (c) 2014-2016, Jon Schlinkert.
69
+ * Licensed under the MIT License.
70
+ *)
71
+
72
+ is-glob/index.js:
73
+ (*!
74
+ * is-glob <https://github.com/jonschlinkert/is-glob>
75
+ *
76
+ * Copyright (c) 2014-2017, Jon Schlinkert.
77
+ * Released under the MIT License.
78
+ *)
79
+
80
+ is-number/index.js:
81
+ (*!
82
+ * is-number <https://github.com/jonschlinkert/is-number>
83
+ *
84
+ * Copyright (c) 2014-present, Jon Schlinkert.
85
+ * Released under the MIT License.
86
+ *)
87
+
88
+ to-regex-range/index.js:
89
+ (*!
90
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
91
+ *
92
+ * Copyright (c) 2015-present, Jon Schlinkert.
93
+ * Released under the MIT License.
94
+ *)
95
+
96
+ fill-range/index.js:
97
+ (*!
98
+ * fill-range <https://github.com/jonschlinkert/fill-range>
99
+ *
100
+ * Copyright (c) 2014-present, Jon Schlinkert.
101
+ * Licensed under the MIT License.
102
+ *)
103
+ */