pi-webapp 0.1.52 → 0.1.53-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +10 -8
  2. package/README.zh-CN.md +10 -8
  3. package/dist/extension.js +31 -30
  4. package/dist/hosted-recovery.js +2 -2
  5. package/dist/hosted-worker.js +2 -2
  6. package/docs/desktop.md +1 -1
  7. package/package.json +10 -2
  8. package/web/dist/.vite/manifest.json +1073 -112
  9. package/web/dist/assets/MarkdownText-CBiL97gk.js +437 -0
  10. package/web/dist/assets/MarkdownText.css +1 -1
  11. package/web/dist/assets/WorkspacePanel.css +1 -0
  12. package/web/dist/assets/WorkspacePanel.module-V6gI-nG1.js +2 -0
  13. package/web/dist/assets/apl-CHPMLzQP.js +2 -0
  14. package/web/dist/assets/app-CRTzSso6.js +38 -0
  15. package/web/dist/assets/app.css +1 -1
  16. package/web/dist/assets/app.js +4 -4
  17. package/web/dist/assets/asciiarmor-Qq1NDodh.js +2 -0
  18. package/web/dist/assets/asn1-DRgkG9yc.js +2 -0
  19. package/web/dist/assets/asterisk-ae5wsYrl.js +2 -0
  20. package/web/dist/assets/brainfuck-BKsya-lF.js +2 -0
  21. package/web/dist/assets/clike-DBtGfPmP.js +2 -0
  22. package/web/dist/assets/clojure-CgPaYiPv.js +2 -0
  23. package/web/dist/assets/clsx-DQAHfk8w.js +2 -0
  24. package/web/dist/assets/cmake-DbqTW5io.js +2 -0
  25. package/web/dist/assets/cobol-B3aUFbKf.js +2 -0
  26. package/web/dist/assets/code-editor-DeAOkPrq.js +4 -0
  27. package/web/dist/assets/coffeescript-CCPt9S--.js +2 -0
  28. package/web/dist/assets/commonlisp-Clm1YIex.js +2 -0
  29. package/web/dist/assets/crystal-BmCet_35.js +2 -0
  30. package/web/dist/assets/css-DN2LLrF8.js +2 -0
  31. package/web/dist/assets/cypher-CCkHI_OH.js +2 -0
  32. package/web/dist/assets/d-DXS80xi8.js +2 -0
  33. package/web/dist/assets/diff-LtZN2nYD.js +2 -0
  34. package/web/dist/assets/dist-B5emzMvH.js +12 -0
  35. package/web/dist/assets/dist-BFoOtrHc.js +2 -0
  36. package/web/dist/assets/dist-BNmsN76A.js +2 -0
  37. package/web/dist/assets/dist-BZwn6_Fh.js +2 -0
  38. package/web/dist/assets/dist-Bp1qxOA-.js +10 -0
  39. package/web/dist/assets/dist-ByVjh-LO.js +2 -0
  40. package/web/dist/assets/dist-C0vYCeId.js +2 -0
  41. package/web/dist/assets/dist-C3T17C1Q.js +7 -0
  42. package/web/dist/assets/dist-CYNv_x25.js +2 -0
  43. package/web/dist/assets/dist-Cc1Gj7tZ.js +2 -0
  44. package/web/dist/assets/dist-Cm6nrvBz.js +2 -0
  45. package/web/dist/assets/dist-DBsUA7Da.js +2 -0
  46. package/web/dist/assets/dist-DKNlD5B9.js +2 -0
  47. package/web/dist/assets/dist-DTWmF6Zy.js +2 -0
  48. package/web/dist/assets/dist-DTjHomg3.js +3 -0
  49. package/web/dist/assets/dist-DuwjrxJ6.js +2 -0
  50. package/web/dist/assets/dist-IkQ96Etc.js +14 -0
  51. package/web/dist/assets/dist-RJnNnBqa.js +2 -0
  52. package/web/dist/assets/dist-ThlP4B0-.js +2 -0
  53. package/web/dist/assets/dist-ekmOAsAL.js +2 -0
  54. package/web/dist/assets/dist-rREmcN_F.js +2 -0
  55. package/web/dist/assets/dist-to0Y4VHe.js +24 -0
  56. package/web/dist/assets/dist-y5XhVIrr.js +2 -0
  57. package/web/dist/assets/dockerfile-nM1Ko-Z7.js +2 -0
  58. package/web/dist/assets/dtd-u6doTIMs.js +2 -0
  59. package/web/dist/assets/dylan-CqCzC1wV.js +2 -0
  60. package/web/dist/assets/ebnf-Br6TG6Ej.js +2 -0
  61. package/web/dist/assets/ecl-DySBI3Mi.js +2 -0
  62. package/web/dist/assets/eiffel-sYWuGv6G.js +2 -0
  63. package/web/dist/assets/elm--68dTWWw.js +2 -0
  64. package/web/dist/assets/erlang-DRzMWhmI.js +2 -0
  65. package/web/dist/assets/factor-BZWcskYe.js +2 -0
  66. package/web/dist/assets/fcl-NiqhPlpc.js +2 -0
  67. package/web/dist/assets/forth-DSgqrjnb.js +2 -0
  68. package/web/dist/assets/fortran-DowQl6ME.js +2 -0
  69. package/web/dist/assets/gas-BGG03rL_.js +2 -0
  70. package/web/dist/assets/gherkin-Cqb_6D-9.js +2 -0
  71. package/web/dist/assets/graphql-BfvlZifS.js +2 -0
  72. package/web/dist/assets/groovy-B7zM4Cov.js +2 -0
  73. package/web/dist/assets/haskell-D7qM5JJh.js +2 -0
  74. package/web/dist/assets/haxe-C6pwwQZb.js +2 -0
  75. package/web/dist/assets/http-CMFHpKAi.js +2 -0
  76. package/web/dist/assets/http-CmD77Vm0.js +2 -0
  77. package/web/dist/assets/icons-D8yiYkWB.js +7 -0
  78. package/web/dist/assets/idl-aL_loni0.js +2 -0
  79. package/web/dist/assets/javascript-BXKxGTTj.js +2 -0
  80. package/web/dist/assets/julia-CfBqSgho.js +2 -0
  81. package/web/dist/assets/livescript-CR8U3wM3.js +2 -0
  82. package/web/dist/assets/lua-Bg4VZnNk.js +2 -0
  83. package/web/dist/assets/mathematica-BfPIWI-2.js +2 -0
  84. package/web/dist/assets/mbox-BJBtIzYn.js +2 -0
  85. package/web/dist/assets/mirc-CN27htLS.js +2 -0
  86. package/web/dist/assets/mllike-Bk45LYJs.js +2 -0
  87. package/web/dist/assets/modelica-BhMDrNyP.js +2 -0
  88. package/web/dist/assets/mscgen-CiE_ZxvV.js +2 -0
  89. package/web/dist/assets/mumps-q10v_7vy.js +2 -0
  90. package/web/dist/assets/nginx-B3xldx-W.js +2 -0
  91. package/web/dist/assets/nsis-DbrGokpL.js +2 -0
  92. package/web/dist/assets/ntriples--7wOxqgF.js +2 -0
  93. package/web/dist/assets/octave-1xDlNsHK.js +2 -0
  94. package/web/dist/assets/oz-BjT3jK8F.js +2 -0
  95. package/web/dist/assets/pascal-BPtkfU66.js +2 -0
  96. package/web/dist/assets/perl-DTi_Gu_W.js +2 -0
  97. package/web/dist/assets/php-AbwdN8Ef.js +2 -0
  98. package/web/dist/assets/pig-WgPxIDtX.js +2 -0
  99. package/web/dist/assets/plugin-Bfd7f_vy.js +6 -0
  100. package/web/dist/assets/plugin-CnTnCTg7.js +4 -0
  101. package/web/dist/assets/{plugin-C9-V_VLi.js → plugin-kH2lR7pE.js} +4 -4
  102. package/web/dist/assets/powershell-DRMXCHuF.js +2 -0
  103. package/web/dist/assets/properties-BmWTtUTd.js +2 -0
  104. package/web/dist/assets/protobuf-DWkEBtMs.js +2 -0
  105. package/web/dist/assets/pug-aQNhkzLr.js +2 -0
  106. package/web/dist/assets/puppet-D_Fwwei_.js +2 -0
  107. package/web/dist/assets/python-4ztzejrZ.js +2 -0
  108. package/web/dist/assets/q-CBhhTF3v.js +2 -0
  109. package/web/dist/assets/r-C9LQ8gef.js +2 -0
  110. package/web/dist/assets/{clsx-h-WltqkG.js → react-CLFE7TFE.js} +2 -2
  111. package/web/dist/assets/rpm-X0uOxMxY.js +2 -0
  112. package/web/dist/assets/rst-DPJzqmXX.js +2 -0
  113. package/web/dist/assets/ruby-C47yS3tR.js +2 -0
  114. package/web/dist/assets/ruby-Hx9so-WR.js +2 -0
  115. package/web/dist/assets/sas-B1FBIZ4F.js +2 -0
  116. package/web/dist/assets/scheme-BNyhth_j.js +2 -0
  117. package/web/dist/assets/shell-5WXBrNPS.js +2 -0
  118. package/web/dist/assets/sieve-D1Disq_M.js +2 -0
  119. package/web/dist/assets/simple-mode-CZvkON1J.js +2 -0
  120. package/web/dist/assets/smalltalk-sYJEN366.js +2 -0
  121. package/web/dist/assets/solr-C4NTsT9q.js +2 -0
  122. package/web/dist/assets/sparql-BUDcgvyA.js +2 -0
  123. package/web/dist/assets/spreadsheet-Cc9aoY1X.js +2 -0
  124. package/web/dist/assets/sql-CCvDj5CS.js +2 -0
  125. package/web/dist/assets/stex-QOxlzChr.js +2 -0
  126. package/web/dist/assets/stylus-gypP4Wbw.js +2 -0
  127. package/web/dist/assets/svelte-DLqN0QFL.js +2 -0
  128. package/web/dist/assets/swift-B3wDQDLW.js +2 -0
  129. package/web/dist/assets/tcl-BrLMXonE.js +2 -0
  130. package/web/dist/assets/textile-3OdJWGLP.js +2 -0
  131. package/web/dist/assets/tiddlywiki-CmXBv0bH.js +2 -0
  132. package/web/dist/assets/tiki-DH9217vp.js +2 -0
  133. package/web/dist/assets/toml-BbNXaVxN.js +2 -0
  134. package/web/dist/assets/troff-B3-4D8jV.js +2 -0
  135. package/web/dist/assets/ttcn-T6YAhFaa.js +2 -0
  136. package/web/dist/assets/ttcn-cfg-B2HBoHuP.js +2 -0
  137. package/web/dist/assets/turtle-DWZbcJ3Q.js +2 -0
  138. package/web/dist/assets/vb-B2tgJzbE.js +2 -0
  139. package/web/dist/assets/vbscript-CdcLDZO3.js +2 -0
  140. package/web/dist/assets/velocity-BNg1Q2g9.js +2 -0
  141. package/web/dist/assets/verilog-BQwnhnkI.js +2 -0
  142. package/web/dist/assets/vhdl-DMlpjilm.js +2 -0
  143. package/web/dist/assets/vue-XwJifyVN.js +2 -0
  144. package/web/dist/assets/webidl-ClkPG1IF.js +2 -0
  145. package/web/dist/assets/xquery-ChetrTQb.js +2 -0
  146. package/web/dist/assets/yacas-eBln9l6K.js +2 -0
  147. package/web/dist/assets/z80-Bu1e9FlK.js +2 -0
  148. package/web/dist/assets/CodeBlock-BdAsIj3e.js +0 -159
  149. package/web/dist/assets/CodeBlock.css +0 -1
  150. package/web/dist/assets/MarkdownText-NoTY0xls.js +0 -280
  151. package/web/dist/assets/app-DDY_2HbQ.js +0 -38
  152. package/web/dist/assets/graphql-DIl_ZhLK.js +0 -2
  153. package/web/dist/assets/http-BwEAzFe-.js +0 -2
  154. package/web/dist/assets/icons-C-HoxwKl.js +0 -7
  155. package/web/dist/assets/php-BGmvzxwe.js +0 -2
  156. package/web/dist/assets/plugin-B2Gl-6V6.js +0 -2
  157. package/web/dist/assets/plugin-e6UWq_j6.js +0 -4
  158. package/web/dist/assets/rst-C4gxDDt3.js +0 -2
  159. package/web/dist/assets/ruby-BzF-keyw.js +0 -2
  160. package/web/dist/assets/svelte-CBtRvh2E.js +0 -2
  161. package/web/dist/assets/vue-CJULmGDv.js +0 -2
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-DDY_2HbQ.js","assets/rolldown-runtime-CgmABjMJ.js","assets/clsx-h-WltqkG.js","assets/icons-C-HoxwKl.js","assets/app.css"])))=>i.map(i=>d[i]);
2
- (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b07e4493-440e-4635-b011-7d1ad1872f12`,e._sentryDebugIdIdentifier=`sentry-dbid-b07e4493-440e-4635-b011-7d1ad1872f12`)}catch{}})(),(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=new Set([`bash`,`powershell`,`read`,`write`,`edit`,`grep`,`find`,`ls`]),t=new Set([`cancelled`,`blocked`,`validation`,`not_found`,`permission`,`timeout`,`process_exit`,`unknown`]),n={userInfo:!1,cookies:!1,httpHeaders:!1,httpBodies:[],urlQueryParams:!1,genAI:{inputs:!1,outputs:!1},graphQL:{document:!1,variables:!1},databaseQueryData:!1,queues:!1,stackFrameVariables:!1,frameContextLines:0},r=new Set(`stage.route.method.status.durationMs.connection.idle.model.thinkingLevel.messageCount.attachmentCount.session.requestId.operationId.errorId.repeats.dropped.componentStack.eventType.sequence.nodeVersion.piVersion.platform.browser.buildId.code.toolName.toolId.toolCallId.failureKind.errorCode.exitCode.timeoutMs.diagnosticSource.originalStackAvailable.errorSummary.summaryOmitted.summaryOmittedReason.level.networkKind.networkStage.causeCodes`.split(`.`)),i=new Set(`/api/workspace/git/control./api/workspace/git/write./api/workspace/git/status./api/workspace/git/diff./api/workspace/git/history./api/workspace/git/commit-detail./api/workspace/git/commit-diff./api/workspace/files/list./api/workspace/files/preview./api/workspace/files/raw./api/plugins./api/plugin-action./api/plugin-interaction./api/resume./api/update./api/update/version./api/update/channel./api/provider/models./api/provider/logout./api/provider/login/active./api/telemetry/config./api/image./api/attachment./api/attachment/remove./api/session./api/providers./api/models./api/config./api/workspaces./api/commands./api/events./api/message./api/prompt-queue./api/abort./api/compact./api/new-session./api/model./api/thinking-level./api/provider/login./api/provider/login/respond./api/provider/login/cancel./api/provider/custom./api/workspace/add./api/workspace/select./api/workspace/new-session./api/workspace/remove./api/session/select./api/directory/capability./api/directory/list./api/directory/create./api/directory/pick`.split(`.`));function a(e){return e===`/api/message`||e===`/api/prompt-queue`||e.startsWith(`/api/provider/`)||e.startsWith(`/api/workspace/files/`)||e.startsWith(`/api/workspace/git/`)||[`/api/plugin-action`,`/api/plugin-interaction`,`/api/resume`,`/api/compact`].includes(e)}function o(e){return e.slice(0,8192).replace(/-----BEGIN [^-\n]+-----[\s\S]*?(?:-----END [^-\n]+-----|$)/g,`[redacted]`).replace(/(["'`])[\s\S]*?\1/g,`[quoted]`).replace(/(?:Bearer\s+\S+|(?:api[_-]?key|token|password|secret|authorization)\s*[=:]\s*\S+)/gi,`[redacted]`).replace(/\b(?:sk-|sntrys_|eyJ)[A-Za-z0-9_.-]+/g,`[redacted]`).replace(/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g,`[email]`).replace(/https?:\/\/[^\s)]+/gi,`[url]`).replace(/(?:file:\/\/)?(?:\/[\w.~-]+){2,}(?::\d+(?::\d+)?)?/g,`[path]`).replace(/[A-Za-z]:\\[^\s)]+/g,`[path]`).replace(/(?:^|\s)(?:\.\.?[\\/]|~[\\/])[^\s)]+/g,` [path]`).replace(/\b(?:[\w.-]+[\\/])+[\w.-]+/g,`[path]`).replace(/\{[^\n]*\}/g,`[object]`).replace(/\b[A-Za-z0-9_-]{24,}\b/g,`[redacted]`).slice(0,1024)}function s(n){let a={};for(let s of r){let r=n[s];s===`toolName`?typeof r==`string`&&(e.has(r)||r===`custom`)&&(a[s]=r):s===`failureKind`?t.has(r)&&(a[s]=r):s===`level`?(r===`warning`||r===`error`)&&(a[s]=r):s===`diagnosticSource`?(r===`tool_execution_end`||r===`message_end`)&&(a[s]=r):s===`errorCode`?typeof r==`string`&&/^(?:E[A-Z0-9]{1,20}|nonzero_exit|timeout|cancelled|blocked|invalid_arguments|tool_not_found|unknown)$/.test(r)&&(a[s]=r):s===`toolId`?typeof r==`string`&&/^[a-f0-9]{16}$/.test(r)&&(a[s]=r):s===`route`&&typeof r==`string`?a[s]=i.has(r.split(`?`)[0])?r.split(`?`)[0]:`[route]`:s===`model`&&typeof r==`string`&&/^[\w.-]+\/[\w.-]+$/.test(r)?a[s]=r.split(`/`).map(o).join(`/`):typeof r==`string`?a[s]=[`requestId`,`operationId`,`errorId`,`session`,`buildId`,`toolId`,`toolCallId`].includes(s)&&/^[\w-]{1,80}$/.test(r)?r:o(r).slice(0,s===`errorSummary`?512:1024):(typeof r==`boolean`||typeof r==`number`&&Number.isFinite(r)||r===null)&&(a[s]=r)}return a}function c(e){let t=e.replace(/\\/g,`/`).split(/[?#]/)[0];return t.startsWith(`node:`)?t.slice(0,150):`app:///${(t.match(/(?:^|\/)((?:web\/src|extension|shared|dist|assets)\/[^\s:)]+)$/)?.[1]??t.split(`/`).pop()??`unknown`).replace(/[^\w./-]/g,`_`).slice(-200)}`}function l(e,t=0){let n=e instanceof Error?e:Error(typeof e==`string`?e:`Non-Error rejection`),r=Error(o(n.message));if(r.name=o(n.name).slice(0,100),n.stack){let e=n.stack.split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-CRTzSso6.js","assets/rolldown-runtime-CgmABjMJ.js","assets/react-CLFE7TFE.js","assets/icons-D8yiYkWB.js","assets/clsx-DQAHfk8w.js","assets/WorkspacePanel.module-V6gI-nG1.js","assets/WorkspacePanel.css","assets/app.css"])))=>i.map(i=>d[i]);
2
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9137719d-1ac8-4b68-ad7a-96b5081423b8`,e._sentryDebugIdIdentifier=`sentry-dbid-9137719d-1ac8-4b68-ad7a-96b5081423b8`)}catch{}})(),(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=new Set([`bash`,`powershell`,`read`,`write`,`edit`,`grep`,`find`,`ls`]),t=new Set([`cancelled`,`blocked`,`validation`,`not_found`,`permission`,`timeout`,`process_exit`,`unknown`]),n={userInfo:!1,cookies:!1,httpHeaders:!1,httpBodies:[],urlQueryParams:!1,genAI:{inputs:!1,outputs:!1},graphQL:{document:!1,variables:!1},databaseQueryData:!1,queues:!1,stackFrameVariables:!1,frameContextLines:0},r=new Set(`stage.route.method.status.durationMs.connection.idle.model.thinkingLevel.messageCount.attachmentCount.session.requestId.operationId.errorId.repeats.dropped.componentStack.eventType.sequence.nodeVersion.piVersion.platform.browser.buildId.code.toolName.toolId.toolCallId.failureKind.errorCode.exitCode.timeoutMs.diagnosticSource.originalStackAvailable.errorSummary.summaryOmitted.summaryOmittedReason.level.networkKind.networkStage.causeCodes`.split(`.`)),i=new Set(`/api/workspace/git/control./api/workspace/git/write./api/workspace/git/status./api/workspace/git/diff./api/workspace/git/history./api/workspace/git/commit-detail./api/workspace/git/commit-diff./api/workspace/files/list./api/workspace/files/preview./api/workspace/files/raw./api/workspace/files/write./api/workspace/files/status./api/workspace/files/search./api/plugins./api/plugin-action./api/plugin-interaction./api/resume./api/update./api/update/version./api/update/channel./api/provider/models./api/provider/logout./api/provider/login/active./api/telemetry/config./api/image./api/attachment./api/attachment/remove./api/session./api/providers./api/models./api/config./api/workspaces./api/commands./api/events./api/message./api/prompt-queue./api/abort./api/compact./api/new-session./api/model./api/thinking-level./api/provider/login./api/provider/login/respond./api/provider/login/cancel./api/provider/custom./api/workspace/add./api/workspace/select./api/workspace/new-session./api/workspace/remove./api/session/select./api/directory/capability./api/directory/list./api/directory/create./api/directory/pick`.split(`.`));function a(e){return e===`/api/message`||e===`/api/prompt-queue`||e.startsWith(`/api/provider/`)||e.startsWith(`/api/workspace/files/`)||e.startsWith(`/api/workspace/git/`)||[`/api/plugin-action`,`/api/plugin-interaction`,`/api/resume`,`/api/compact`].includes(e)}function o(e){return e.slice(0,8192).replace(/-----BEGIN [^-\n]+-----[\s\S]*?(?:-----END [^-\n]+-----|$)/g,`[redacted]`).replace(/(["'`])[\s\S]*?\1/g,`[quoted]`).replace(/(?:Bearer\s+\S+|(?:api[_-]?key|token|password|secret|authorization)\s*[=:]\s*\S+)/gi,`[redacted]`).replace(/\b(?:sk-|sntrys_|eyJ)[A-Za-z0-9_.-]+/g,`[redacted]`).replace(/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g,`[email]`).replace(/https?:\/\/[^\s)]+/gi,`[url]`).replace(/(?:file:\/\/)?(?:\/[\w.~-]+){2,}(?::\d+(?::\d+)?)?/g,`[path]`).replace(/[A-Za-z]:\\[^\s)]+/g,`[path]`).replace(/(?:^|\s)(?:\.\.?[\\/]|~[\\/])[^\s)]+/g,` [path]`).replace(/\b(?:[\w.-]+[\\/])+[\w.-]+/g,`[path]`).replace(/\{[^\n]*\}/g,`[object]`).replace(/\b[A-Za-z0-9_-]{24,}\b/g,`[redacted]`).slice(0,1024)}function s(n){let a={};for(let s of r){let r=n[s];s===`toolName`?typeof r==`string`&&(e.has(r)||r===`custom`)&&(a[s]=r):s===`failureKind`?t.has(r)&&(a[s]=r):s===`level`?(r===`warning`||r===`error`)&&(a[s]=r):s===`diagnosticSource`?(r===`tool_execution_end`||r===`message_end`)&&(a[s]=r):s===`errorCode`?typeof r==`string`&&/^(?:E[A-Z0-9]{1,20}|nonzero_exit|timeout|cancelled|blocked|invalid_arguments|tool_not_found|unknown)$/.test(r)&&(a[s]=r):s===`toolId`?typeof r==`string`&&/^[a-f0-9]{16}$/.test(r)&&(a[s]=r):s===`route`&&typeof r==`string`?a[s]=i.has(r.split(`?`)[0])?r.split(`?`)[0]:`[route]`:s===`model`&&typeof r==`string`&&/^[\w.-]+\/[\w.-]+$/.test(r)?a[s]=r.split(`/`).map(o).join(`/`):typeof r==`string`?a[s]=[`requestId`,`operationId`,`errorId`,`session`,`buildId`,`toolId`,`toolCallId`].includes(s)&&/^[\w-]{1,80}$/.test(r)?r:o(r).slice(0,s===`errorSummary`?512:1024):(typeof r==`boolean`||typeof r==`number`&&Number.isFinite(r)||r===null)&&(a[s]=r)}return a}function c(e){let t=e.replace(/\\/g,`/`).split(/[?#]/)[0];return t.startsWith(`node:`)?t.slice(0,150):`app:///${(t.match(/(?:^|\/)((?:web\/src|extension|shared|dist|assets)\/[^\s:)]+)$/)?.[1]??t.split(`/`).pop()??`unknown`).replace(/[^\w./-]/g,`_`).slice(-200)}`}function l(e,t=0){let n=e instanceof Error?e:Error(typeof e==`string`?e:`Non-Error rejection`),r=Error(o(n.message));if(r.name=o(n.name).slice(0,100),n.stack){let e=n.stack.split(`
3
3
  `).slice(1,31).map(e=>{let t=e.match(/((?:file:\/\/|https?:\/\/|\/|[A-Za-z]:\\)[^\s()]+):(\d+):(\d+)(\)?)$/);return t?`${o(e.slice(0,t.index))}${t[1]}:${t[2]}:${t[3]}${t[4]}`:o(e)});r.stack=`${r.name}: ${r.message}\n${e.join(`
4
4
  `)}`}else r.stack=void 0;return t<3&&n.cause!==void 0&&(r.cause=l(n.cause,t+1)),r}function u(e,t){let n=Error(t);return e instanceof Error&&(n.name=e.name,e.stack&&(n.stack=`${n.name}: ${t}\n${e.stack.split(`
5
5
  `).slice(1).join(`
6
6
  `)}`)),n}function d(e){return{...e.filename?{filename:c(e.filename)}:{},...e.abs_path?{abs_path:c(e.abs_path)}:{},...e.function?{function:o(e.function)}:{},lineno:e.lineno,colno:e.colno,in_app:e.in_app}}function f(e){let t=s(e.contexts?.diagnostic??{}),n=p(t);return{event_id:e.event_id,timestamp:e.timestamp,platform:e.platform,level:e.level,release:e.release,dist:e.dist,environment:o(e.environment??`production`),...e.message?{message:o(e.message)}:{},exception:e.exception?{values:e.exception.values?.slice(0,4).map(e=>({type:o(e.type??`Error`),value:o(e.value??``),...e.stacktrace?{stacktrace:{frames:e.stacktrace.frames?.slice(-30).map(d)}}:{},...e.mechanism?{mechanism:{type:e.mechanism.type,handled:e.mechanism.handled}}:{}}))}:void 0,tags:{side:e.tags?.side,buildId:e.tags?.buildId,...t.toolName?{toolName:t.toolName}:{},...t.failureKind?{failureKind:t.failureKind}:{},...t.errorCode?{errorCode:t.errorCode}:{}},...n?{fingerprint:n}:{},contexts:{diagnostic:t},breadcrumbs:e.breadcrumbs?.slice(-100).map(e=>({timestamp:e.timestamp,category:o(e.category??`app`),data:s(e.data??{})})),debug_meta:e.debug_meta?{images:e.debug_meta.images?.slice(0,10).map(e=>({type:e.type,debug_id:e.debug_id,...e.code_file?{code_file:c(e.code_file)}:{}}))}:void 0}}function p(e){if(e.stage===`tool`&&e.originalStackAvailable===!1&&e.toolName&&e.failureKind)return[`pi-webapp-tool-result`,String(e.toolName),String(e.toolId??`builtin`),String(e.failureKind),String(e.errorCode??`unknown`)]}function m(e,t){return t.attachments=[],f(e)}var h=class{items=[];bytes=0;encoder=new TextEncoder;add(e,t={}){let n={timestamp:Date.now()/1e3,category:o(e),data:s(t)},r=this.encoder.encode(JSON.stringify(n)).byteLength+1;for(this.items.push({item:n,size:r}),this.bytes+=r;this.items.length>100||this.bytes>65534;)this.bytes-=this.items.shift().size}snapshot(){return this.items.map(({item:e})=>e)}},g=class{windowAt=-1;total=0;seen=new Map;take(e,t=Date.now()){(this.windowAt<0||t-this.windowAt>=6e4)&&(this.windowAt=t,this.total=0);let n=this.seen.get(e);if(n&&t-n.at<6e4)n.repeats++;else if(!(this.total>=20))return this.total++,this.seen.size>=64&&!n&&this.seen.delete(this.seen.keys().next().value),this.seen.set(e,{at:t,repeats:0}),{repeats:n?.repeats??0}}},_=new Set(`目录路径必须是绝对路径.父目录路径必须是绝对路径.文件夹名称无效.工作区目录不可用,请恢复目录或从列表移除后重新添加.会话已切换.Pi 正在运行,请等待当前回复结束.请等待当前回复结束.请等待当前回复结束再切换工作区.请等待当前回复结束再切换会话.请先切换到其他工作区.新会话已取消.已有登录正在进行.模型不可用.模型提供方未配置认证.当前模型不支持此推理强度.其他提供方的登录正在进行,请先完成或取消当前登录.当前会话没有暂停的任务.请先完成当前交互或审批.请先选择模型.请先连接当前模型.插件未启用.会话运行实例已切换.提供方已存在.文件超过 20 MB.请求内容过大.会话不属于该工作区.推理强度无效.会话名称过长.会话不存在.插件会话不能重命名或删除.该会话正在 Pi 终端中使用,请在终端里切换到其他会话后再删除`.split(`.`));function v(e){return e instanceof Error&&(e.name===`AbortError`||_.has(e.message))}var y=class{budget=new g;breadcrumbs;scopeClass;seen=new WeakSet;state={};client;side;buildId;constructor(e,t,n,r,i=new h){this.client=e,this.side=t,this.buildId=n,this.scopeClass=r.Scope,this.breadcrumbs=i,e.addIntegration(r.linkedErrorsIntegration({limit:4}))}setState(e){this.state=s(e)}capture(e,t={},n){try{if(v(e))return;if(typeof e==`object`&&e){if(this.seen.has(e))return;this.seen.add(e)}let r=l(e),i=s({...this.state,...t}),a=p(i),o=a?JSON.stringify(a):`${r.name}:${r.message}:${r.stack?.split(`
7
- `)[1]??``}:${t.stage??``}`,c=this.budget.take(o);if(!c)return;let u=new this.scopeClass;u.setClient(this.client),u.setTags({side:this.side,buildId:this.buildId}),i.level===`warning`&&u.setLevel(`warning`),a&&u.setFingerprint(a),u.setContext(`diagnostic`,{...i,repeats:c.repeats});for(let e of this.breadcrumbs.snapshot())u.addBreadcrumb(e,100);return u.captureException(r,n?{event_id:n}:void 0)}catch{return}}ignore(e){this.seen.add(e)}};function b(e,t){return e({...t,bufferSize:20},async({body:e})=>{let n=await fetch(t.url,{method:`POST`,body:e,signal:AbortSignal.timeout(3e3),credentials:`omit`,referrerPolicy:`no-referrer`,redirect:`error`,headers:{"Content-Type":`application/x-sentry-envelope`}});return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`x-sentry-rate-limits`),"retry-after":n.headers.get(`retry-after`)}}})}var x;function S(){if(x!==void 0)return x;let e=location.hash.slice(1);try{x=e||sessionStorage.getItem(`pi-web-token`),e&&sessionStorage.setItem(`pi-web-token`,e)}catch{x=e||null}return e&&history.replaceState(null,``,location.pathname),x}var C=`pi-webapp@0.1.52+cd3a0e7e5fb2c59b540c`,w=`cd3a0e7e5fb2c59b540c`;function T(){if(typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}var E=`modulepreload`,D=function(e){return`/`+e},O={},k=function(e){return e.pathname.endsWith(`.css`)},A=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},j=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=D(t,n);let r=s(t),i=k(r);return A(O,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:E,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},M,N=!0,P=!1,F=!1,I=[],L=new WeakSet,R=new Map,z={};function B(e,t={}){try{if(v(e))return;if(typeof e==`object`&&e){if(L.has(e))return;L.add(e)}if(M)return M.capture(e,t);N&&I.length<20&&I.push({error:l(e),context:s(t)})}catch{}}function V(e){L.add(e)}function H(e,t={}){M?.breadcrumbs.add(e,t)}function U(e){e.sessionId&&(R.has(e.sessionId)||(R.size>=32&&R.delete(R.keys().next().value),R.set(e.sessionId,T())),e={...e,session:R.get(e.sessionId)}),z=s({...z,...e}),M?.setState(z)}function W(){P||(P=!0,F=new URL(location.href).searchParams.get(`sentry_release_probe`)===`1`,window.addEventListener(`error`,e=>{e instanceof ErrorEvent?B(e.error??Error(e.message),{stage:`global`}):(e.target instanceof HTMLScriptElement||e.target instanceof HTMLLinkElement)&&B(Error(`Application resource failed to load`),{stage:`resource`})},!0),window.addEventListener(`unhandledrejection`,e=>B(e.reason,{stage:`unhandled_rejection`})),G())}async function G(){try{let e=S();if(!e)return;let t=await fetch(`/api/telemetry/config`,{headers:{Authorization:`Bearer ${e}`},signal:AbortSignal.timeout(1e3)});if(!t.ok)return;let n=await t.json();if(!n.enabled||!n.dsn)return;let{createBrowserReporter:r}=await j(async()=>{let{createBrowserReporter:e}=await import(`./telemetry-client-BBuLBxwh.js`);return{createBrowserReporter:e}},[]);M=r({...n,buildId:w,release:C});let i=navigator.userAgent.match(/(?:Firefox|Edg|Chrome|Version)\/[\d.]+/)?.[0]??`unknown`;M.setState({...z,browser:i,platform:navigator.platform}),z={...z,browser:i,platform:navigator.platform};for(let e of I)M.capture(e.error,e.context);n.environment===`sentry-verification`&&F&&M.capture(Error(`Sentry browser release verification`),{stage:`release_verification`,code:`sentry_release_probe`})}catch{}finally{I=[],N=!1}}W(),j(()=>import(`./app-DDY_2HbQ.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4])).catch(e=>B(e,{stage:`startup`}));export{j as a,y as c,u as d,m as f,U as i,b as l,V as n,T as o,n as p,B as r,S as s,H as t,a as u};
8
- //# debugId=b07e4493-440e-4635-b011-7d1ad1872f12
7
+ `)[1]??``}:${t.stage??``}`,c=this.budget.take(o);if(!c)return;let u=new this.scopeClass;u.setClient(this.client),u.setTags({side:this.side,buildId:this.buildId}),i.level===`warning`&&u.setLevel(`warning`),a&&u.setFingerprint(a),u.setContext(`diagnostic`,{...i,repeats:c.repeats});for(let e of this.breadcrumbs.snapshot())u.addBreadcrumb(e,100);return u.captureException(r,n?{event_id:n}:void 0)}catch{return}}ignore(e){this.seen.add(e)}};function b(e,t){return e({...t,bufferSize:20},async({body:e})=>{let n=await fetch(t.url,{method:`POST`,body:e,signal:AbortSignal.timeout(3e3),credentials:`omit`,referrerPolicy:`no-referrer`,redirect:`error`,headers:{"Content-Type":`application/x-sentry-envelope`}});return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`x-sentry-rate-limits`),"retry-after":n.headers.get(`retry-after`)}}})}var x;function S(){if(x!==void 0)return x;let e=location.hash.slice(1);try{x=e||sessionStorage.getItem(`pi-web-token`),e&&sessionStorage.setItem(`pi-web-token`,e)}catch{x=e||null}return e&&history.replaceState(null,``,location.pathname),x}var C=`pi-webapp@0.1.53-alpha.1+ebb31dc2b865046f68d1`,w=`ebb31dc2b865046f68d1`;function T(){if(typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}var E=`modulepreload`,D=function(e){return`/`+e},O={},k=function(e){return e.pathname.endsWith(`.css`)},A=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},j=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=D(t,n);let r=s(t),i=k(r);return A(O,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:E,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},M,N=!0,P=!1,F=!1,I=[],L=new WeakSet,R=new Map,z={};function B(e,t={}){try{if(v(e))return;if(typeof e==`object`&&e){if(L.has(e))return;L.add(e)}if(M)return M.capture(e,t);N&&I.length<20&&I.push({error:l(e),context:s(t)})}catch{}}function V(e){L.add(e)}function H(e,t={}){M?.breadcrumbs.add(e,t)}function U(e){e.sessionId&&(R.has(e.sessionId)||(R.size>=32&&R.delete(R.keys().next().value),R.set(e.sessionId,T())),e={...e,session:R.get(e.sessionId)}),z=s({...z,...e}),M?.setState(z)}function W(){P||(P=!0,F=new URL(location.href).searchParams.get(`sentry_release_probe`)===`1`,window.addEventListener(`error`,e=>{e instanceof ErrorEvent?B(e.error??Error(e.message),{stage:`global`}):(e.target instanceof HTMLScriptElement||e.target instanceof HTMLLinkElement)&&B(Error(`Application resource failed to load`),{stage:`resource`})},!0),window.addEventListener(`unhandledrejection`,e=>B(e.reason,{stage:`unhandled_rejection`})),G())}async function G(){try{let e=S();if(!e)return;let t=await fetch(`/api/telemetry/config`,{headers:{Authorization:`Bearer ${e}`},signal:AbortSignal.timeout(1e3)});if(!t.ok)return;let n=await t.json();if(!n.enabled||!n.dsn)return;let{createBrowserReporter:r}=await j(async()=>{let{createBrowserReporter:e}=await import(`./telemetry-client-BBuLBxwh.js`);return{createBrowserReporter:e}},[]);M=r({...n,buildId:w,release:C});let i=navigator.userAgent.match(/(?:Firefox|Edg|Chrome|Version)\/[\d.]+/)?.[0]??`unknown`;M.setState({...z,browser:i,platform:navigator.platform}),z={...z,browser:i,platform:navigator.platform};for(let e of I)M.capture(e.error,e.context);n.environment===`sentry-verification`&&F&&M.capture(Error(`Sentry browser release verification`),{stage:`release_verification`,code:`sentry_release_probe`})}catch{}finally{I=[],N=!1}}W(),j(()=>import(`./app-CRTzSso6.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7])).catch(e=>B(e,{stage:`startup`}));export{j as a,y as c,u as d,m as f,U as i,b as l,V as n,T as o,n as p,B as r,S as s,H as t,a as u};
8
+ //# debugId=9137719d-1ac8-4b68-ad7a-96b5081423b8
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5fe55199-f728-4e27-8648-5ea4c7829c2e`,e._sentryDebugIdIdentifier=`sentry-dbid-5fe55199-f728-4e27-8648-5ea4c7829c2e`)}catch{}})();function e(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?`error`:null}var t={name:`asciiarmor`,token:function(t,n){var r;if(n.state==`top`)return t.sol()&&(r=t.match(/^-----BEGIN (.*)?-----\s*$/))?(n.state=`headers`,n.type=r[1],`tag`):e(t);if(n.state==`headers`){if(t.sol()&&t.match(/^\w+:/))return n.state=`header`,`atom`;var i=e(t);return i&&(n.state=`body`),i}if(n.state==`header`)return t.skipToEnd(),n.state=`headers`,`string`;if(n.state==`body`)return t.sol()&&(r=t.match(/^-----END (.*)?-----\s*$/))?r[1]==n.type?(n.state=`end`,`tag`):`error`:t.eatWhile(/[A-Za-z0-9+\/=]/)?null:(t.next(),`error`);if(n.state==`end`)return e(t)},blankLine:function(e){e.state==`headers`&&(e.state=`body`)},startState:function(){return{state:`top`,type:null}}};export{t as asciiArmor};
2
+ //# debugId=5fe55199-f728-4e27-8648-5ea4c7829c2e
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`73344529-ec77-4c67-b775-17922b6a0366`,e._sentryDebugIdIdentifier=`sentry-dbid-73344529-ec77-4c67-b775-17922b6a0366`)}catch{}})();function e(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t={keywords:e(`DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS`),cmipVerbs:e(`ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE`),compareTypes:e(`OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION`),status:e(`current deprecated mandatory obsolete`),tags:e(`APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL`),storage:e(`BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64`),modifier:e(`ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED`),accessTypes:e(`not-accessible accessible-for-notify read-only read-create read-write`),multiLineStrings:!0};function n(e){var n=e.keywords||t.keywords,r=e.cmipVerbs||t.cmipVerbs,i=e.compareTypes||t.compareTypes,a=e.status||t.status,o=e.tags||t.tags,s=e.storage||t.storage,c=e.modifier||t.modifier,l=e.accessTypes||t.accessTypes,u=e.multiLineStrings||t.multiLineStrings,d=e.indentStatements!==!1,f=/[\|\^]/,p;function m(e,t){var u=e.next();if(u==`"`||u==`'`)return t.tokenize=h(u),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(u))return p=u,`punctuation`;if(u==`-`&&e.eat(`-`))return e.skipToEnd(),`comment`;if(/\d/.test(u))return e.eatWhile(/[\w\.]/),`number`;if(f.test(u))return e.eatWhile(f),`operator`;e.eatWhile(/[\w\-]/);var d=e.current();return n.propertyIsEnumerable(d)?`keyword`:r.propertyIsEnumerable(d)?`variableName`:i.propertyIsEnumerable(d)?`atom`:a.propertyIsEnumerable(d)?`comment`:o.propertyIsEnumerable(d)?`typeName`:s.propertyIsEnumerable(d)||c.propertyIsEnumerable(d)||l.propertyIsEnumerable(d)?`modifier`:`variableName`}function h(e){return function(t,n){for(var r=!1,i,a=!1;(i=t.next())!=null;){if(i==e&&!r){var o=t.peek();o&&(o=o.toLowerCase(),(o==`b`||o==`h`||o==`o`)&&t.next()),a=!0;break}r=!r&&i==`\\`}return(a||!(r||u))&&(n.tokenize=null),`string`}}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function _(e,t,n){var r=e.indented;return e.context&&e.context.type==`statement`&&(r=e.context.indented),e.context=new g(r,t,n,null,e.context)}function v(e){var t=e.context.type;return(t==`)`||t==`]`||t==`}`)&&(e.indented=e.context.indented),e.context=e.context.prev}return{name:`asn1`,startState:function(){return{tokenize:null,context:new g(-2,0,`top`,!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align??(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;p=null;var r=(t.tokenize||m)(e,t);if(r==`comment`)return r;if(n.align??(n.align=!0),(p==`;`||p==`:`||p==`,`)&&n.type==`statement`)v(t);else if(p==`{`)_(t,e.column(),`}`);else if(p==`[`)_(t,e.column(),`]`);else if(p==`(`)_(t,e.column(),`)`);else if(p==`}`){for(;n.type==`statement`;)n=v(t);for(n.type==`}`&&(n=v(t));n.type==`statement`;)n=v(t)}else p==n.type?v(t):d&&((n.type==`}`||n.type==`top`)&&p!=`;`||n.type==`statement`&&p==`newstatement`)&&_(t,e.column(),`statement`);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:`--`}}}}export{n as asn1};
2
+ //# debugId=73344529-ec77-4c67-b775-17922b6a0366
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c45b7afa-4955-4cf4-9a87-01a06ae19fd0`,e._sentryDebugIdIdentifier=`sentry-dbid-c45b7afa-4955-4cf4-9a87-01a06ae19fd0`)}catch{}})();var e=[`exten`,`same`,`include`,`ignorepat`,`switch`],t=[`#include`,`#exec`],n=`addqueuemember.adsiprog.aelsub.agentlogin.agentmonitoroutgoing.agi.alarmreceiver.amd.answer.authenticate.background.backgrounddetect.bridge.busy.callcompletioncancel.callcompletionrequest.celgenuserevent.changemonitor.chanisavail.channelredirect.chanspy.clearhash.confbridge.congestion.continuewhile.controlplayback.dahdiacceptr2call.dahdibarge.dahdiras.dahdiscan.dahdisendcallreroutingfacility.dahdisendkeypadfacility.datetime.dbdel.dbdeltree.deadagi.dial.dictate.directory.disa.dumpchan.eagi.echo.endwhile.exec.execif.execiftime.exitwhile.extenspy.externalivr.festival.flash.followme.forkcdr.getcpeid.gosub.gosubif.goto.gotoif.gotoiftime.hangup.iax2provision.ices.importvar.incomplete.ivrdemo.jabberjoin.jabberleave.jabbersend.jabbersendgroup.jabberstatus.jack.log.macro.macroexclusive.macroexit.macroif.mailboxexists.meetme.meetmeadmin.meetmechanneladmin.meetmecount.milliwatt.minivmaccmess.minivmdelete.minivmgreet.minivmmwi.minivmnotify.minivmrecord.mixmonitor.monitor.morsecode.mp3player.mset.musiconhold.nbscat.nocdr.noop.odbc.odbc.odbcfinish.originate.ospauth.ospfinish.osplookup.ospnext.page.park.parkandannounce.parkedcall.pausemonitor.pausequeuemember.pickup.pickupchan.playback.playtones.privacymanager.proceeding.progress.queue.queuelog.raiseexception.read.readexten.readfile.receivefax.receivefax.receivefax.record.removequeuemember.resetcdr.retrydial.return.ringing.sayalpha.saycountedadj.saycountednoun.saycountpl.saydigits.saynumber.sayphonetic.sayunixtime.senddtmf.sendfax.sendfax.sendfax.sendimage.sendtext.sendurl.set.setamaflags.setcallerpres.setmusiconhold.sipaddheader.sipdtmfmode.sipremoveheader.skel.slastation.slatrunk.sms.softhangup.speechactivategrammar.speechbackground.speechcreate.speechdeactivategrammar.speechdestroy.speechloadgrammar.speechprocessingsound.speechstart.speechunloadgrammar.stackpop.startmusiconhold.stopmixmonitor.stopmonitor.stopmusiconhold.stopplaytones.system.testclient.testserver.transfer.tryexec.trysystem.unpausemonitor.unpausequeuemember.userevent.verbose.vmauthenticate.vmsayname.voicemail.voicemailmain.wait.waitexten.waitfornoise.waitforring.waitforsilence.waitmusiconhold.waituntil.while.zapateller`.split(`.`);function r(n,r){var i=``,a=n.next();if(r.blockComment)return a==`-`&&n.match(`-;`,!0)?r.blockComment=!1:n.skipTo(`--;`)?(n.next(),n.next(),n.next(),r.blockComment=!1):n.skipToEnd(),`comment`;if(a==`;`)return n.match(`--`,!0)&&!n.match(`-`,!1)?(r.blockComment=!0,`comment`):(n.skipToEnd(),`comment`);if(a==`[`)return n.skipTo(`]`),n.eat(`]`),`header`;if(a==`"`)return n.skipTo(`"`),`string`;if(a==`'`)return n.skipTo(`'`),`string.special`;if(a==`#`&&(n.eatWhile(/\w/),i=n.current(),t.indexOf(i)!==-1))return n.skipToEnd(),`strong`;if(a==`$`&&n.peek()==`{`)return n.skipTo(`}`),n.eat(`}`),`variableName.special`;if(n.eatWhile(/\w/),i=n.current(),e.indexOf(i)!==-1){switch(r.extenStart=!0,i){case`same`:r.extenSame=!0;break;case`include`:case`switch`:case`ignorepat`:r.extenInclude=!0}return`atom`}}var i={name:`asterisk`,startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,t){var i=``;if(e.eatSpace())return null;if(t.extenStart)return e.eatWhile(/[^\s]/),i=e.current(),/^=>?$/.test(i)?(t.extenExten=!0,t.extenStart=!1,`strong`):(t.extenStart=!1,e.skipToEnd(),`error`);if(t.extenExten)return t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&=(e.skipToEnd(),t.extenPriority=!1,!1),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),`tag`;if(t.extenPriority)return t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),`number`);if(t.extenApplication){if(e.eatWhile(/,/),i=e.current(),i===`,`)return null;if(e.eatWhile(/\w/),i=e.current().toLowerCase(),t.extenApplication=!1,n.indexOf(i)!==-1)return`def`}else return r(e,t);return null},languageData:{commentTokens:{line:`;`,block:{open:`;--`,close:`--;`}}}};export{i as asterisk};
2
+ //# debugId=c45b7afa-4955-4cf4-9a87-01a06ae19fd0
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e86ed2bb-a99b-426c-8aa2-223de5670215`,e._sentryDebugIdIdentifier=`sentry-dbid-e86ed2bb-a99b-426c-8aa2-223de5670215`)}catch{}})();var e=`><+-.,[]`.split(``),t={name:`brainfuck`,startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(t,n){if(t.eatSpace())return null;t.sol()&&(n.commentLine=!1);var r=t.next().toString();if(e.indexOf(r)!==-1){if(n.commentLine===!0)return t.eol()&&(n.commentLine=!1),`comment`;if(r===`]`||r===`[`)return r===`[`?n.left++:n.right++,`bracket`;if(r===`+`||r===`-`)return`keyword`;if(r===`<`||r===`>`)return`atom`;if(r===`.`||r===`,`)return`def`}else return n.commentLine=!0,t.eol()&&(n.commentLine=!1),`comment`;t.eol()&&(n.commentLine=!1)}};export{t as brainfuck};
2
+ //# debugId=e86ed2bb-a99b-426c-8aa2-223de5670215
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b6c3fab1-343c-4495-86cf-5f55cf945fbe`,e._sentryDebugIdIdentifier=`sentry-dbid-b6c3fab1-343c-4495-86cf-5f55cf945fbe`)}catch{}})();function e(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=a}function t(t,n,r,i){var a=t.indented;return t.context&&t.context.type==`statement`&&r!=`statement`&&(a=t.context.indented),t.context=new e(a,n,r,i,null,t.context)}function n(e){var t=e.context.type;return(t==`)`||t==`]`||t==`}`)&&(e.indented=e.context.indented),e.context=e.context.prev}function r(e,t,n){if(t.prevToken==`variable`||t.prevToken==`type`||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||t.typeAtEndOfLine&&e.column()==e.indentation())return!0}function i(e){for(;;){if(!e||e.type==`top`)return!0;if(e.type==`}`&&e.prev.info!=`namespace`)return!1;e=e.prev}}function a(a){var o=a.statementIndentUnit,c=a.dontAlignCalls,l=a.keywords||{},u=a.types||{},d=a.builtin||{},f=a.blockKeywords||{},p=a.defKeywords||{},m=a.atoms||{},h=a.hooks||{},g=a.multiLineStrings,_=a.indentStatements!==!1,v=a.indentSwitch!==!1,y=a.namespaceSeparator,b=a.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,x=a.numberStart||/[\d\.]/,S=a.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,C=a.isOperatorChar||/[+\-*&%=<>!?|\/]/,w=a.isIdentifierChar||/[\w\$_\xa1-\uffff]/,T=a.isReservedIdentifier||!1,E,D;function O(e,t){var n=e.next();if(h[n]){var r=h[n](e,t);if(r!==!1)return r}if(n==`"`||n==`'`)return t.tokenize=k(n),t.tokenize(e,t);if(x.test(n)){if(e.backUp(1),e.match(S))return`number`;e.next()}if(b.test(n))return E=n,null;if(n==`/`){if(e.eat(`*`))return t.tokenize=A,A(e,t);if(e.eat(`/`))return e.skipToEnd(),`comment`}if(C.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(C););return`operator`}if(e.eatWhile(w),y)for(;e.match(y);)e.eatWhile(w);var i=e.current();return s(l,i)?(s(f,i)&&(E=`newstatement`),s(p,i)&&(D=!0),`keyword`):s(u,i)?`type`:s(d,i)||T&&T(i)?(s(f,i)&&(E=`newstatement`),`builtin`):s(m,i)?`atom`:`variable`}function k(e){return function(t,n){for(var r=!1,i,a=!1;(i=t.next())!=null;){if(i==e&&!r){a=!0;break}r=!r&&i==`\\`}return(a||!(r||g))&&(n.tokenize=null),`string`}}function A(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize=null;break}n=r==`*`}return`comment`}function j(e,t){a.typeFirstDefinitions&&e.eol()&&i(t.context)&&(t.typeAtEndOfLine=r(e,t,e.pos))}return{name:a.name,startState:function(t){return{tokenize:null,context:new e(-t,0,`top`,null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,o){var s=o.context;if(e.sol()&&(s.align??(s.align=!1),o.indented=e.indentation(),o.startOfLine=!0),e.eatSpace())return j(e,o),null;E=D=null;var c=(o.tokenize||O)(e,o);if(c==`comment`||c==`meta`)return c;if(s.align??(s.align=!0),E==`;`||E==`:`||E==`,`&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;o.context.type==`statement`;)n(o);else if(E==`{`)t(o,e.column(),`}`);else if(E==`[`)t(o,e.column(),`]`);else if(E==`(`)t(o,e.column(),`)`);else if(E==`}`){for(;s.type==`statement`;)s=n(o);for(s.type==`}`&&(s=n(o));s.type==`statement`;)s=n(o)}else E==s.type?n(o):_&&((s.type==`}`||s.type==`top`)&&E!=`;`||s.type==`statement`&&E==`newstatement`)&&t(o,e.column(),`statement`,e.current());if(c==`variable`&&(o.prevToken==`def`||a.typeFirstDefinitions&&r(e,o,e.start)&&i(o.context)&&e.match(/^\s*\(/,!1))&&(c=`def`),h.token){var l=h.token(e,o,c);l!==void 0&&(c=l)}return c==`def`&&a.styleDefs===!1&&(c=`variable`),o.startOfLine=!1,o.prevToken=D?`def`:c||E,j(e,o),c},indent:function(e,t,n){if(e.tokenize!=O&&e.tokenize!=null||e.typeAtEndOfLine&&i(e.context))return null;var r=e.context,s=t&&t.charAt(0),l=s==r.type;if(r.type==`statement`&&s==`}`&&(r=r.prev),a.dontIndentStatements)for(;r.type==`statement`&&a.dontIndentStatements.test(r.info);)r=r.prev;if(h.indent){var u=h.indent(e,r,t,n.unit);if(typeof u==`number`)return u}var d=r.prev&&r.prev.info==`switch`;if(a.allmanIndentation&&/[{(]/.test(s)){for(;r.type!=`top`&&r.type!=`}`;)r=r.prev;return r.indented}return r.type==`statement`?r.indented+(s==`{`?0:o||n.unit):r.align&&(!c||r.type!=`)`)?r.column+ +!l:r.type==`)`&&!l?r.indented+(o||n.unit):r.indented+(l?0:n.unit)+(!l&&d&&!/^(?:case|default)\b/.test(t)?n.unit:0)},languageData:{indentOnInput:v?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},autocomplete:Object.keys(l).concat(Object.keys(u)).concat(Object.keys(d)).concat(Object.keys(m)),...a.languageData}}}function o(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}function s(e,t){return typeof e==`function`?e(t):e.propertyIsEnumerable(t)}var c=`auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran`,l=`alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq`,u=`bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available`,d=`FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT`,f=o(`int long char short double float unsigned signed void bool`),p=o(`SEL instancetype id Class Protocol BOOL`);function m(e){return s(f,e)||/.+_t$/.test(e)}function h(e){return m(e)||s(p,e)}var g=`case do else for if switch while struct enum union`,_=`struct enum union`;function v(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if(n==`\\`&&e.match(/^.$/)){r=v;break}if(n==`/`&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,`meta`}function y(e,t){return t.prevToken==`type`&&`type`}function b(e){return!e||e.length<2||e[0]!=`_`?!1:e[1]==`_`||e[1]!==e[1].toLowerCase()}function x(e){return e.eatWhile(/[\w\.']/),`number`}function S(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return n?(t.cpp11RawStringDelim=n[1],t.tokenize=T,T(e,t)):!1}return e.match(/^(?:u8|u|U|L)/)?e.match(/^["']/,!1)?`string`:!1:(e.next(),!1)}function C(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function w(e,t){for(var n;(n=e.next())!=null;)if(n==`"`&&!e.eat(`"`)){t.tokenize=null;break}return`string`}function T(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,`\\$&`);return e.match(RegExp(`.*?\\)`+n+`"`))?t.tokenize=null:e.skipToEnd(),`string`}a({name:`c`,keywords:o(c),types:m,blockKeywords:o(g),defKeywords:o(_),typeFirstDefinitions:!0,atoms:o(`NULL true false`),isReservedIdentifier:b,hooks:{"#":v,"*":y}}),a({name:`cpp`,keywords:o(c+` `+l),types:m,blockKeywords:o(g+` class try catch`),defKeywords:o(_+` class namespace`),typeFirstDefinitions:!0,atoms:o(`true false NULL nullptr`),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:b,hooks:{"#":v,"*":y,u:S,U:S,L:S,R:S,0:x,1:x,2:x,3:x,4:x,5:x,6:x,7:x,8:x,9:x,token:function(e,t,n){if(n==`variable`&&e.peek()==`(`&&(t.prevToken==`;`||t.prevToken==null||t.prevToken==`}`)&&C(e.current()))return`def`}},namespaceSeparator:`::`}),a({name:`java`,keywords:o(`abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface`),types:o(`var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void`),blockKeywords:o(`catch class do else finally for if switch try while`),defKeywords:o(`class interface enum @interface`),typeFirstDefinitions:!0,atoms:o(`true false null`),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match(`interface`,!1)&&(e.eatWhile(/[\w\$_]/),`meta`)},'"':function(e,t){return e.match(/""$/)?(t.tokenize=D,t.tokenize(e,t)):!1}}});var E=a({name:`csharp`,keywords:o(`abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield`),types:o(`Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong`),blockKeywords:o(`catch class do else finally for foreach if struct switch try while`),defKeywords:o(`class interface namespace record struct var`),typeFirstDefinitions:!0,atoms:o(`true false null`),hooks:{"@":function(e,t){return e.eat(`"`)?(t.tokenize=w,w(e,t)):(e.eatWhile(/[\w\$_]/),`meta`)}}});function D(e,t){for(var n=!1;!e.eol();){if(!n&&e.match(`"""`)){t.tokenize=null;break}n=e.next()==`\\`&&!n}return`string`}function O(e){return function(t,n){for(var r;r=t.next();)if(r==`*`&&t.eat(`/`)){if(e==1){n.tokenize=null;break}return n.tokenize=O(e-1),n.tokenize(t,n)}else if(r==`/`&&t.eat(`*`))return n.tokenize=O(e+1),n.tokenize(t,n);return`comment`}}var k=a({name:`scala`,keywords:o(`abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble`),types:o(`AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void`),multiLineStrings:!0,blockKeywords:o(`catch class enum do else finally for forSome if match switch try while`),defKeywords:o(`class enum def object package trait type val var`),atoms:o(`true false null`),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),`meta`},'"':function(e,t){return e.match(`""`)?(t.tokenize=D,t.tokenize(e,t)):!1},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?`character`:(e.eatWhile(/[\w\$_\xa1-\uffff]/),`atom`)},"=":function(t,n){var r=n.context;return r.type==`}`&&r.align&&t.eat(`>`)?(n.context=new e(r.indented,r.column,r.type,r.info,null,r.prev),`operator`):!1},"/":function(e,t){return e.eat(`*`)?(t.tokenize=O(1),t.tokenize(e,t)):!1}},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`"""`]}}});function A(e){return function(t,n){for(var r=!1,i,a=!1;!t.eol();){if(!e&&!r&&t.match(`"`)||e&&t.match(`"""`)){a=!0;break}i=t.next(),!r&&i==`$`&&t.match(`{`)&&t.skipTo(`}`),r=!r&&i==`\\`&&!e}return(a||!e)&&(n.tokenize=null),`string`}}var j=a({name:`kotlin`,keywords:o(`package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam`),types:o(`Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit`),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,blockKeywords:o(`catch class do else finally for if where try while enum`),defKeywords:o(`class val var object interface fun`),atoms:o(`true false null this`),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),`meta`},"*":function(e,t){return t.prevToken==`.`?`variable`:`operator`},'"':function(e,t){return t.tokenize=A(e.match(`""`)),t.tokenize(e,t)},"/":function(e,t){return e.eat(`*`)?(t.tokenize=O(1),t.tokenize(e,t)):!1},indent:function(e,t,n,r){var i=n&&n.charAt(0);if((e.prevToken==`}`||e.prevToken==`)`)&&n==``)return e.indented;if(e.prevToken==`operator`&&n!=`}`&&e.context.type!=`}`||e.prevToken==`variable`&&i==`.`||(e.prevToken==`}`||e.prevToken==`)`)&&i==`.`)return r*2+t.indented;if(t.align&&t.type==`}`)return t.indented+(e.context.type==(n||``).charAt(0)?0:r)}},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`"""`]}}});a({name:`shader`,keywords:o(`sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout`),types:o(`float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4`),blockKeywords:o(`for while do if else struct`),builtin:o(`radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4`),atoms:o(`true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers`),indentSwitch:!1,hooks:{"#":v}}),a({name:`nesc`,keywords:o(c+` as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends`),types:m,blockKeywords:o(g),atoms:o(`null true false`),hooks:{"#":v}});var M=a({name:`objectivec`,keywords:o(c+` `+u),types:h,builtin:o(d),blockKeywords:o(g+` @synthesize @try @catch @finally @autoreleasepool @synchronized`),defKeywords:o(_+` @interface @implementation @protocol @class`),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:o(`YES NO NULL Nil nil true false nullptr`),isReservedIdentifier:b,hooks:{"#":v,"*":y}}),N=a({name:`objectivecpp`,keywords:o(c+` `+u+` `+l),types:h,builtin:o(d),blockKeywords:o(g+` @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch`),defKeywords:o(_+` @interface @implementation @protocol @class class namespace`),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:o(`YES NO NULL Nil nil true false nullptr`),isReservedIdentifier:b,hooks:{"#":v,"*":y,u:S,U:S,L:S,R:S,0:x,1:x,2:x,3:x,4:x,5:x,6:x,7:x,8:x,9:x,token:function(e,t,n){if(n==`variable`&&e.peek()==`(`&&(t.prevToken==`;`||t.prevToken==null||t.prevToken==`}`)&&C(e.current()))return`def`}},namespaceSeparator:`::`}),P=a({name:`squirrel`,keywords:o(`base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static`),types:m,blockKeywords:o(`case catch class else for foreach if switch try while`),defKeywords:o(`function local class`),typeFirstDefinitions:!0,atoms:o(`true false null`),hooks:{"#":v}}),F=null;function I(e){return function(t,n){for(var r=!1,i,a=!1;!t.eol();){if(!r&&t.match(`"`)&&(e==`single`||t.match(`""`))){a=!0;break}if(!r&&t.match("``")){F=I(e),a=!0;break}i=t.next(),r=e==`single`&&!r&&i==`\\`}return a&&(n.tokenize=null),`string`}}a({name:`ceylon`,keywords:o(`abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while`),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:o(`case catch class dynamic else finally for function if interface module new object switch try while`),defKeywords:o(`class dynamic function interface module object package value`),builtin:o(`abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable`),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:o(`true false null larger smaller equal empty finished`),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),`meta`},'"':function(e,t){return t.tokenize=I(e.match(`""`)?`triple`:`single`),t.tokenize(e,t)},"`":function(e,t){return!F||!e.match("`")?!1:(t.tokenize=F,F=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?`string.special`:(e.eatWhile(/[\w\$_\xa1-\uffff]/),`atom`)},token:function(e,t,n){if((n==`variable`||n==`type`)&&t.prevToken==`.`)return`variableName.special`}},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`"""`]}}});function L(e){(e.interpolationStack||=[]).push(e.tokenize)}function R(e){return(e.interpolationStack||=[]).pop()}function z(e){return e.interpolationStack?e.interpolationStack.length:0}function B(e,t,n,r){var i=!1;if(t.eat(e)){if(t.eat(e))i=!0;else return`string`}function a(t,n){for(var a=!1;!t.eol();){if(!r&&!a&&t.peek()==`$`)return L(n),n.tokenize=V,`string`;var o=t.next();if(o==e&&!a&&(!i||t.match(e+e))){n.tokenize=null;break}a=!r&&!a&&o==`\\`}return`string`}return n.tokenize=a,a(t,n)}function V(e,t){return e.eat(`$`),t.tokenize=e.eat(`{`)?null:H,null}function H(e,t){return e.eatWhile(/[\w_]/),t.tokenize=R(t),`variable`}var U=a({name:`dart`,keywords:o(`this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline`),blockKeywords:o(`try catch finally do else for if switch while`),builtin:o(`void bool num int double dynamic var String Null Never`),atoms:o(`true false null`),number:/^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),`meta`},"'":function(e,t){return B(`'`,e,t,!1)},'"':function(e,t){return B(`"`,e,t,!1)},r:function(e,t){var n=e.peek();return n==`'`||n==`"`?B(e.next(),e,t,!0):!1},"}":function(e,t){return z(t)>0&&(t.tokenize=R(t),null)},"/":function(e,t){return e.eat(`*`)?(t.tokenize=O(1),t.tokenize(e,t)):!1},token:function(e,t,n){if(n==`variable`&&RegExp(`^[_$]*[A-Z][a-zA-Z0-9_$]*$`,`g`).test(e.current()))return`type`}}});export{E as csharp,U as dart,j as kotlin,M as objectiveC,N as objectiveCpp,k as scala,P as squirrel};
2
+ //# debugId=b6c3fab1-343c-4495-86cf-5f55cf945fbe
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9667279e-26cc-455d-b142-1d22d77eec97`,e._sentryDebugIdIdentifier=`sentry-dbid-9667279e-26cc-455d-b142-1d22d77eec97`)}catch{}})();var e=[`false`,`nil`,`true`],t=[`.`,`catch`,`def`,`do`,`if`,`monitor-enter`,`monitor-exit`,`new`,`quote`,`recur`,`set!`,`throw`,`try`,`var`],n=`*,*',*1,*2,*3,*agent*,*allow-unresolved-vars*,*assert*,*clojure-version*,*command-line-args*,*compile-files*,*compile-path*,*compiler-options*,*data-readers*,*default-data-reader-fn*,*e,*err*,*file*,*flush-on-newline*,*fn-loader*,*in*,*math-context*,*ns*,*out*,*print-dup*,*print-length*,*print-level*,*print-meta*,*print-namespace-maps*,*print-readably*,*read-eval*,*reader-resolver*,*source-path*,*suppress-read*,*unchecked-math*,*use-context-classloader*,*verbose-defrecords*,*warn-on-reflection*,+,+',-,-',->,->>,->ArrayChunk,->Eduction,->Vec,->VecNode,->VecSeq,-cache-protocol-fn,-reset-methods,..,/,<,<=,=,==,>,>=,EMPTY-NODE,Inst,StackTraceElement->vec,Throwable->map,accessor,aclone,add-classpath,add-watch,agent,agent-error,agent-errors,aget,alength,alias,all-ns,alter,alter-meta!,alter-var-root,amap,ancestors,and,any?,apply,areduce,array-map,as->,aset,aset-boolean,aset-byte,aset-char,aset-double,aset-float,aset-int,aset-long,aset-short,assert,assoc,assoc!,assoc-in,associative?,atom,await,await-for,await1,bases,bean,bigdec,bigint,biginteger,binding,bit-and,bit-and-not,bit-clear,bit-flip,bit-not,bit-or,bit-set,bit-shift-left,bit-shift-right,bit-test,bit-xor,boolean,boolean-array,boolean?,booleans,bound-fn,bound-fn*,bound?,bounded-count,butlast,byte,byte-array,bytes,bytes?,case,cast,cat,char,char-array,char-escape-string,char-name-string,char?,chars,chunk,chunk-append,chunk-buffer,chunk-cons,chunk-first,chunk-next,chunk-rest,chunked-seq?,class,class?,clear-agent-errors,clojure-version,coll?,comment,commute,comp,comparator,compare,compare-and-set!,compile,complement,completing,concat,cond,cond->,cond->>,condp,conj,conj!,cons,constantly,construct-proxy,contains?,count,counted?,create-ns,create-struct,cycle,dec,dec',decimal?,declare,dedupe,default-data-readers,definline,definterface,defmacro,defmethod,defmulti,defn,defn-,defonce,defprotocol,defrecord,defstruct,deftype,delay,delay?,deliver,denominator,deref,derive,descendants,destructure,disj,disj!,dissoc,dissoc!,distinct,distinct?,doall,dorun,doseq,dosync,dotimes,doto,double,double-array,double?,doubles,drop,drop-last,drop-while,eduction,empty,empty?,ensure,ensure-reduced,enumeration-seq,error-handler,error-mode,eval,even?,every-pred,every?,ex-data,ex-info,extend,extend-protocol,extend-type,extenders,extends?,false?,ffirst,file-seq,filter,filterv,find,find-keyword,find-ns,find-protocol-impl,find-protocol-method,find-var,first,flatten,float,float-array,float?,floats,flush,fn,fn?,fnext,fnil,for,force,format,frequencies,future,future-call,future-cancel,future-cancelled?,future-done?,future?,gen-class,gen-interface,gensym,get,get-in,get-method,get-proxy-class,get-thread-bindings,get-validator,group-by,halt-when,hash,hash-combine,hash-map,hash-ordered-coll,hash-set,hash-unordered-coll,ident?,identical?,identity,if-let,if-not,if-some,ifn?,import,in-ns,inc,inc',indexed?,init-proxy,inst-ms,inst-ms*,inst?,instance?,int,int-array,int?,integer?,interleave,intern,interpose,into,into-array,ints,io!,isa?,iterate,iterator-seq,juxt,keep,keep-indexed,key,keys,keyword,keyword?,last,lazy-cat,lazy-seq,let,letfn,line-seq,list,list*,list?,load,load-file,load-reader,load-string,loaded-libs,locking,long,long-array,longs,loop,macroexpand,macroexpand-1,make-array,make-hierarchy,map,map-entry?,map-indexed,map?,mapcat,mapv,max,max-key,memfn,memoize,merge,merge-with,meta,method-sig,methods,min,min-key,mix-collection-hash,mod,munge,name,namespace,namespace-munge,nat-int?,neg-int?,neg?,newline,next,nfirst,nil?,nnext,not,not-any?,not-empty,not-every?,not=,ns,ns-aliases,ns-imports,ns-interns,ns-map,ns-name,ns-publics,ns-refers,ns-resolve,ns-unalias,ns-unmap,nth,nthnext,nthrest,num,number?,numerator,object-array,odd?,or,parents,partial,partition,partition-all,partition-by,pcalls,peek,persistent!,pmap,pop,pop!,pop-thread-bindings,pos-int?,pos?,pr,pr-str,prefer-method,prefers,primitives-classnames,print,print-ctor,print-dup,print-method,print-simple,print-str,printf,println,println-str,prn,prn-str,promise,proxy,proxy-call-with-super,proxy-mappings,proxy-name,proxy-super,push-thread-bindings,pvalues,qualified-ident?,qualified-keyword?,qualified-symbol?,quot,rand,rand-int,rand-nth,random-sample,range,ratio?,rational?,rationalize,re-find,re-groups,re-matcher,re-matches,re-pattern,re-seq,read,read-line,read-string,reader-conditional,reader-conditional?,realized?,record?,reduce,reduce-kv,reduced,reduced?,reductions,ref,ref-history-count,ref-max-history,ref-min-history,ref-set,refer,refer-clojure,reify,release-pending-sends,rem,remove,remove-all-methods,remove-method,remove-ns,remove-watch,repeat,repeatedly,replace,replicate,require,reset!,reset-meta!,reset-vals!,resolve,rest,restart-agent,resultset-seq,reverse,reversible?,rseq,rsubseq,run!,satisfies?,second,select-keys,send,send-off,send-via,seq,seq?,seqable?,seque,sequence,sequential?,set,set-agent-send-executor!,set-agent-send-off-executor!,set-error-handler!,set-error-mode!,set-validator!,set?,short,short-array,shorts,shuffle,shutdown-agents,simple-ident?,simple-keyword?,simple-symbol?,slurp,some,some->,some->>,some-fn,some?,sort,sort-by,sorted-map,sorted-map-by,sorted-set,sorted-set-by,sorted?,special-symbol?,spit,split-at,split-with,str,string?,struct,struct-map,subs,subseq,subvec,supers,swap!,swap-vals!,symbol,symbol?,sync,tagged-literal,tagged-literal?,take,take-last,take-nth,take-while,test,the-ns,thread-bound?,time,to-array,to-array-2d,trampoline,transduce,transient,tree-seq,true?,type,unchecked-add,unchecked-add-int,unchecked-byte,unchecked-char,unchecked-dec,unchecked-dec-int,unchecked-divide-int,unchecked-double,unchecked-float,unchecked-inc,unchecked-inc-int,unchecked-int,unchecked-long,unchecked-multiply,unchecked-multiply-int,unchecked-negate,unchecked-negate-int,unchecked-remainder-int,unchecked-short,unchecked-subtract,unchecked-subtract-int,underive,unquote,unquote-splicing,unreduced,unsigned-bit-shift-right,update,update-in,update-proxy,uri?,use,uuid?,val,vals,var-get,var-set,var?,vary-meta,vec,vector,vector-of,vector?,volatile!,volatile?,vreset!,vswap!,when,when-first,when-let,when-not,when-some,while,with-bindings,with-bindings*,with-in-str,with-loading-context,with-local-vars,with-meta,with-open,with-out-str,with-precision,with-redefs,with-redefs-fn,xml-seq,zero?,zipmap`.split(`,`),r=`->.->>.as->.binding.bound-fn.case.catch.comment.cond.cond->.cond->>.condp.def.definterface.defmethod.defn.defmacro.defprotocol.defrecord.defstruct.deftype.do.doseq.dotimes.doto.extend.extend-protocol.extend-type.fn.for.future.if.if-let.if-not.if-some.let.letfn.locking.loop.ns.proxy.reify.struct-map.some->.some->>.try.when.when-first.when-let.when-not.when-some.while.with-bindings.with-bindings*.with-in-str.with-loading-context.with-local-vars.with-meta.with-open.with-out-str.with-precision.with-redefs.with-redefs-fn`.split(`.`),i=h(e),a=h(t),o=h(n),s=h(r),c=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,l=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,u=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,d=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function f(e,t){if(e.eatSpace()||e.eat(`,`))return[`space`,null];if(e.match(l))return[null,`number`];if(e.match(u))return[null,`string.special`];if(e.eat(/^"/))return(t.tokenize=p)(e,t);if(e.eat(/^[(\[{]/))return[`open`,`bracket`];if(e.eat(/^[)\]}]/))return[`close`,`bracket`];if(e.eat(/^;/))return e.skipToEnd(),[`space`,`comment`];if(e.eat(/^[#'@^`~]/))return[null,`meta`];var n=e.match(d),r=n&&n[0];return r?r===`comment`&&t.lastToken===`(`?(t.tokenize=m)(e,t):g(r,i)||r.charAt(0)===`:`?[`symbol`,`atom`]:g(r,a)||g(r,o)?[`symbol`,`keyword`]:t.lastToken===`(`?[`symbol`,`builtin`]:[`symbol`,`variable`]:(e.next(),e.eatWhile(function(e){return!g(e,c)}),[null,`error`])}function p(e,t){for(var n=!1,r;r=e.next();){if(r===`"`&&!n){t.tokenize=f;break}n=!n&&r===`\\`}return[null,`string`]}function m(e,t){for(var n=1,r;r=e.next();)if(r===`)`&&n--,r===`(`&&n++,n===0){e.backUp(1),t.tokenize=f;break}return[`space`,`comment`]}function h(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function g(e,t){if(t instanceof RegExp)return t.test(e);if(t instanceof Object)return t.propertyIsEnumerable(e)}var _={name:`clojure`,startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:f}},token:function(e,t){e.sol()&&typeof t.ctx.indentTo!=`number`&&(t.ctx.indentTo=t.ctx.start+1);var n=t.tokenize(e,t),r=n[0],i=n[1],a=e.current();return r!==`space`&&(t.lastToken===`(`&&t.ctx.indentTo===null?r===`symbol`&&g(a,s)?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo=`next`:t.ctx.indentTo===`next`&&(t.ctx.indentTo=e.column()),t.lastToken=a),r===`open`?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:r===`close`&&(t.ctx=t.ctx.prev||t.ctx),i},indent:function(e){var t=e.ctx.indentTo;return typeof t==`number`?t:e.ctx.start+1},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`"`]},commentTokens:{line:`;;`},autocomplete:[].concat(e,t,n)}};export{_ as clojure};
2
+ //# debugId=9667279e-26cc-455d-b142-1d22d77eec97
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`49502915-0f27-4182-b362-db10fc6cc632`,e._sentryDebugIdIdentifier=`sentry-dbid-49502915-0f27-4182-b362-db10fc6cc632`)}catch{}})();import{t as e}from"./rolldown-runtime-CgmABjMJ.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),n=e(((e,n)=>{n.exports=t()}));function r(e){var t,n,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`){if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=` `),i+=n)}else for(n in e)e[n]&&(i&&(i+=` `),i+=n)}return i}function i(){for(var e,t,n=0,i=``,a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=` `),i+=t);return i}export{n,i as t};
2
+ //# debugId=49502915-0f27-4182-b362-db10fc6cc632
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7e0245be-db8b-4e55-9c6a-564bde464066`,e._sentryDebugIdIdentifier=`sentry-dbid-7e0245be-db8b-4e55-9c6a-564bde464066`)}catch{}})();var e=/({)?[a-zA-Z0-9_]+(})?/;function t(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if(n===`$`&&r!=`\\`&&t.pending==`"`){i=!0;break}r=n}return i&&e.backUp(1),t.continueString=n!=t.pending,`string`}function n(n,r){var i=n.next();return i===`$`?n.match(e)?`variableName.special`:`variable`:r.continueString?(n.backUp(1),t(n,r)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),`def`):i==`#`?(n.skipToEnd(),`comment`):i==`'`||i==`"`?(r.pending=i,t(n,r)):i==`(`||i==`)`?`bracket`:i.match(/[0-9]/)?`number`:(n.eatWhile(/[\w-]/),null)}var r={name:`cmake`,startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,t){return e.eatSpace()?null:n(e,t)}};export{r as cmake};
2
+ //# debugId=7e0245be-db8b-4e55-9c6a-564bde464066
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e6159c9c-38a1-4872-bcc3-97abc955f6ef`,e._sentryDebugIdIdentifier=`sentry-dbid-e6159c9c-38a1-4872-bcc3-97abc955f6ef`)}catch{}})();var e=`builtin`,t=`comment`,n=`string`,r=`atom`,i=`number`,a=`keyword`,o=`header`,s=`def`,c=`link`;function l(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var u=l(`TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES `),d=l(`ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL `),f=l(`- * ** / + < <= = > >= `),p={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function m(e,t){return e===`0`&&t.eat(/x/i)?(t.eatWhile(p.hex),!0):((e==`+`||e==`-`)&&p.digit.test(t.peek())&&(t.eat(p.sign),e=t.next()),p.digit.test(e)?(t.eat(e),t.eatWhile(p.digit),t.peek()==`.`&&(t.eat(`.`),t.eatWhile(p.digit)),t.eat(p.exponent)&&(t.eat(p.sign),t.eatWhile(p.digit)),!0):!1)}var h={name:`cobol`,startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(l,h){if(h.indentStack==null&&l.sol()&&(h.indentation=6),l.eatSpace())return null;var g=null;switch(h.mode){case`string`:for(var _=!1;(_=l.next())!=null;)if((_==`"`||_==`'`)&&!l.match(/['"]/,!1)){h.mode=!1;break}g=n;break;default:var v=l.next(),y=l.column();if(y>=0&&y<=5)g=s;else if(y>=72&&y<=79)l.skipToEnd(),g=o;else if(v==`*`&&y==6)l.skipToEnd(),g=t;else if(v==`"`||v==`'`)h.mode=`string`,g=n;else if(v==`'`&&!p.digit_or_colon.test(l.peek()))g=r;else if(v==`.`)g=c;else if(m(v,l))g=i;else{if(l.current().match(p.symbol))for(;y<71&&l.eat(p.symbol)!==void 0;)y++;g=d&&d.propertyIsEnumerable(l.current().toUpperCase())?a:f&&f.propertyIsEnumerable(l.current().toUpperCase())?e:u&&u.propertyIsEnumerable(l.current().toUpperCase())?r:null}}return g},indent:function(e){return e.indentStack==null?e.indentation:e.indentStack.indent}};export{h as cobol};
2
+ //# debugId=e6159c9c-38a1-4872-bcc3-97abc955f6ef
@@ -0,0 +1,4 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-DTjHomg3.js","assets/dist-IkQ96Etc.js","assets/dist-DTWmF6Zy.js","assets/dist-C0vYCeId.js","assets/dist-RJnNnBqa.js","assets/rolldown-runtime-CgmABjMJ.js","assets/dist-B5emzMvH.js","assets/dist-CYNv_x25.js","assets/dist-to0Y4VHe.js","assets/dist-Cc1Gj7tZ.js","assets/dist-ThlP4B0-.js","assets/dist-ByVjh-LO.js","assets/dist-BZwn6_Fh.js","assets/dist-rREmcN_F.js","assets/dist-C3T17C1Q.js","assets/dist-BNmsN76A.js","assets/dist-Bp1qxOA-.js","assets/dist-Cm6nrvBz.js","assets/dist-DuwjrxJ6.js","assets/dist-DKNlD5B9.js","assets/dist-DBsUA7Da.js","assets/dist-BFoOtrHc.js","assets/dockerfile-nM1Ko-Z7.js","assets/simple-mode-CZvkON1J.js","assets/factor-BZWcskYe.js","assets/nsis-DbrGokpL.js","assets/pug-aQNhkzLr.js","assets/javascript-BXKxGTTj.js","assets/dist-y5XhVIrr.js","assets/dist-ekmOAsAL.js"])))=>i.map(i=>d[i]);
2
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`294ced4e-5fe5-43ae-99ee-b85dec46b3e8`,e._sentryDebugIdIdentifier=`sentry-dbid-294ced4e-5fe5-43ae-99ee-b85dec46b3e8`)}catch{}})();import{n as e}from"./rolldown-runtime-CgmABjMJ.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,E as o,Et as s,F as c,G as l,H as u,I as d,J as f,K as p,L as m,O as h,Ot as ee,P as g,Q as te,R as ne,S as _,St as v,T as re,Tt as ie,U as ae,V as oe,W as se,X as ce,Y as le,Z as ue,_t as de,a as y,at as b,bt as x,c as fe,ct as pe,dt as S,et as me,f as he,ft as ge,g as _e,gt as ve,ht as ye,it as be,j as C,jt as xe,l as Se,lt as w,mt as Ce,n as we,nt as Te,o as Ee,ot as De,pt as T,q as Oe,rt as ke,st as Ae,t as je,tt as Me,ut as Ne,v as Pe,vt as Fe,w as Ie,wt as E,x as Le,xt as Re,yt as D,z as ze}from"./dist-IkQ96Etc.js";import{a as O}from"./app.js";import{h as k}from"./app-CRTzSso6.js";var Be=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=C(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(Ke(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function Ve(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function He(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=Ve(t)+Ve(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function Ue(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:He(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function We(e,t){return n=>{for(let t=C(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var Ge=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function A(e){return e.selection.main.from}function Ke(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var qe=De.define();function Je(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return{range:s};let c=e.toText(t);return{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:S.cursor(s.from+a+c.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var Ye=new WeakMap;function Xe(e){if(!Array.isArray(e))return e;let t=Ye.get(e);return t||Ye.set(e,t=Ue(e)),t}var Ze=D.define(),Qe=D.define(),$e=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=i(e,t),r=E(n);this.chars.push(n);let a=e.slice(t,t+r),o=a.toUpperCase();this.folded.push(i(o==a?a.toLowerCase():o,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:a,byWord:o}=this;if(t.length==1){let r=i(e,0),a=E(r),o=a==e.length?0:-100;if(r!=t[0]){if(r==n[0])o+=-200;else return null}return this.ret(o,[0,a])}let s=e.indexOf(this.pattern);if(s==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=t.length,l=0;if(s<0){for(let a=0,o=Math.min(e.length,200);a<o&&l<c;){let o=i(e,a);(o==t[l]||o==n[l])&&(r[l++]=a),a+=E(o)}if(l<c)return null}let u=0,d=0,f=!1,p=0,m=-1,h=-1,g=/[a-z]/.test(e),te=!0;for(let r=0,l=Math.min(e.length,200),ne=0;r<l&&d<c;){let l=i(e,r);s<0&&(u<c&&l==t[u]&&(a[u++]=r),p<c&&(l==t[p]||l==n[p]?(p==0&&(m=r),h=r+1,p++):p=0));let _,v=l<255?l>=48&&l<=57||l>=97&&l<=122?2:+(l>=65&&l<=90):(_=ee(l))==_.toLowerCase()?_==_.toUpperCase()?0:2:1;(!r||v==1&&g||ne==0&&v!=0)&&(t[d]==l||n[d]==l&&(f=!0)?o[d++]=r:o.length&&(te=!1)),ne=v,r+=E(l)}return d==c&&o[0]==0&&te?this.result(-100+(f?-200:0),o,e):p==c&&m==0?this.ret(-200-e.length+(h==e.length?0:-100),[0,h]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):p==c?this.ret(-900-e.length,[m,h]):d==c?this.result(-100+(f?-200:0)+-700+(te?0:-1100),o,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],a=0;for(let e of t){let t=e+(this.astral?E(i(n,e)):1);a&&r[a-1]==e?r[a-1]=t:(r[a++]=e,r[a++]=t)}return this.ret(e-n.length,r)}},et=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},j=T.define({combine(e){return ie(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:nt,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>tt(e(n),t(n)),optionClass:(e,t)=>n=>tt(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function tt(e,t){return e?t?e+` `+t:e:t}function nt(e,t,n,r,i,a){let o=e.textDirection==d.RTL,s=o,c=!1,l=`top`,u,f,p=t.left-i.left,m=i.right-t.right,h=r.right-r.left,ee=r.bottom-r.top;if(s&&p<Math.min(h,m)?s=!1:!s&&m<Math.min(h,p)&&(s=!0),h<=(s?p:m))u=Math.max(i.top,Math.min(n.top,i.bottom-ee))-t.top,f=Math.min(400,s?p:m);else{c=!0,f=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=ee||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,te=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${f/te}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var rt=D.define();function it(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function at(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.ceil((e-t)/n);return{from:e-r*n,to:e-(r-1)*n}}var ot=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(j);this.optionContent=it(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=at(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:rt.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(j).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:Qe.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;n.open&&n.open.options==r||(this.range=at(r.length,i,e.state.facet(j).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;(n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=at(n.options.length,n.selected,this.view.state.facet(j).maxRenderedOptions),this.showOptions(n.options,e.id));let r=this.updateSelectedOption(n.selected);if(r){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:a}=i;if(!a)return;let o=typeof a==`string`?document.createTextNode(a):a(i);if(!o)return;`then`in o?o.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,i)}).catch(e=>t(this.view.state,e,`completion info`)):(this.addInfoPane(o,i),r.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&ct(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(j).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0)){if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function st(e,t){return n=>new ot(n,e,t)}function ct(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function lt(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function ut(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(j);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new Ge(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new et(n):new $e(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new Ge(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):lt(e.completion)>lt(c)&&(s[s.length-1]=e),c=e.completion}return s}var dt=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,gt(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=ut(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(j).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,gt(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:Ct,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},ft=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(_t,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(j),i=(r.override||n.languageDataAt(`autocomplete`,A(n)).map(Xe)).map(e=>(this.active.find(t=>t.source==e)||new M(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(xt));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!pt(i,this.active)||o?a=dt.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new M(e.source,0):e));for(let e of t.effects)e.is(rt)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?mt:ht}};function pt(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var mt={"aria-autocomplete":`list`},ht={};function gt(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var _t=[];function vt(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(qe);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var M=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=vt(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(Ze))i=new e(i.source,1,n.value);else if(n.is(Qe))i=new e(i.source,0);else if(n.is(xt))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(A(e.state))}},yt=class e extends M{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=A(t.state);if(o>a||!r||n&2&&(A(t.startState)==this.from||o<this.limit))return new M(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return bt(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new Be(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??A(t.state)):new M(this.source,1,this.explicit)}map(t){if(t.empty)return this;let n=this.result.map?this.result.map(this.result,t):this.result;return n?new e(this.source,this.explicit,t.mapPos(this.limit),n,t.mapPos(this.from),t.mapPos(this.to,1)):new M(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function bt(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):Ke(e,!0).test(i)}var xt=D.define({map(e,t){return e.map(e=>e.map(t))}}),N=x.define({create(){return ft.start()},update(e,t){return e.update(t)},provide:e=>[be.from(e,e=>e.tooltip),m.contentAttributes.from(e,e=>e.attrs)]});function St(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(N).active.find(e=>e.source==t.source);return r instanceof yt&&(typeof n==`string`?e.dispatch({...Je(e.state,n,r.from,r.to),annotations:qe.of(t.completion)}):n(e,t.completion,r.from,r.to),!0)}var Ct=st(N,St);function wt(e,t=`option`){return n=>{let r=n.state.field(N,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(j).interactionDelay)return!1;let i=1,a;t==`page`&&(a=p(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:rt.of(s)}),!0}}var Tt=e=>{let t=e.state.field(N,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(j).interactionDelay?!1:St(e,t.open.options[t.open.selected])},Et=e=>e.state.field(N,!1)?(e.dispatch({effects:Ze.of(!0)}),!0):!1,Dt=e=>{let t=e.state.field(N,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:Qe.of(null)}),!0)},Ot=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},kt=50,At=1e3,jt=ne.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(N).active)t.isPending&&this.startQuery(t)}update(e){let n=e.state.field(N),r=e.state.facet(j);if(!e.selectionSet&&!e.docChanged&&e.startState.field(N)==n)return;let i=e.transactions.some(e=>{let t=vt(e,r);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let n=0;n<this.running.length;n++){let r=this.running[n];if(i||r.context.abortOnDocChange&&e.docChanged||r.updates.length+e.transactions.length>kt&&Date.now()-r.time>At){for(let e of r.context.abortListeners)try{e()}catch(e){t(this.view.state,e)}r.context.abortListeners=null,this.running.splice(n--,1)}else r.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(Ze)))&&(this.pendingStart=!0);let a=this.pendingStart?50:r.activateOnTypingDelay;if(this.debounceUpdate=n.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),a):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(N);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(j).updateSyncTime))}startQuery(e){let{state:n}=this.view,r=new Be(n,A(n),e.explicit,this.view),i=new Ot(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(e=>{i.context.aborted||(i.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:Qe.of(null)}),t(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(j).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(j),n=this.view.state.field(N);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=A(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new yt(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending){if(i.done==null){let n=new M(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:xt.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(N,!1);if(t&&t.tooltip&&this.view.state.facet(j).closeOnBlur){let n=t.open&&p(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:Qe.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Ze.of(!1)}),20),this.composing=0}}}),Mt=typeof navigator==`object`&&/Win/.test(navigator.platform),Nt=ye.highest(m.domEventHandlers({keydown(e,t){let n=t.state.field(N,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||!e.key||e.key.length>1||e.ctrlKey&&!(Mt&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&St(t,r),!1}})),Pt=m.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`,cursor:`pointer`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),Ft=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},It=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(t){let n=t.mapPos(this.from,-1,Ce.TrackDel),r=t.mapPos(this.to,1,Ce.TrackDel);return n==null||r==null?null:new e(this.field,n,r)}},Lt=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=a,s=/^\t*/.exec(i)[0].length;for(let t=0;t<s;t++)n+=e.facet(o);r.push(t+n.length-s),i=n+i.slice(s)}n.push(i),t+=i.length+1}return{text:n,ranges:this.fieldPositions.map(e=>new It(e.field,r[e.line]+e.from,r[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1;t===0&&(t=1e9);let c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new Ft(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},Rt=c.widget({widget:new class extends ze{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),zt=c.mark({class:`cm-snippetField`}),Bt=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=c.set(e.map(e=>(e.from==e.to?Rt:zt).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},Vt=D.define({map(e,t){return e&&e.map(t)}}),Ht=D.define(),Ut=x.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(Vt))return n.value;if(n.is(Ht)&&e)return new Bt(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>m.decorations.from(e,e=>e?e.deco:c.none)});function Wt(e,t){return S.create(e.filter(e=>e.field==t).map(e=>S.range(e.from,e.to)))}function Gt(e){let t=Lt.parse(e);return(e,n,r,i)=>{let{text:a,ranges:o}=t.instantiate(e.state,r),{main:s}=e.state.selection,c={changes:{from:r,to:i==s.from?s.to:i,insert:Re.of(a)},scrollIntoView:!0,annotations:n?[qe.of(n),v.userEvent.of(`input.complete`)]:void 0};if(o.length&&(c.selection=Wt(o,0)),o.some(e=>e.field>0)){let t=new Bt(o,0),n=c.effects=[Vt.of(t)];e.state.field(Ut,!1)===void 0&&n.push(D.appendConfig.of([Ut,Yt,Zt,Pt]))}e.dispatch(e.state.update(c))}}function Kt(e){return({state:t,dispatch:n})=>{let r=t.field(Ut,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:Wt(r.ranges,i),effects:Vt.of(a?null:new Bt(r.ranges,i)),scrollIntoView:!0})),!0}}var qt=[{key:`Tab`,run:Kt(1),shift:Kt(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(Ut,!1)?(t(e.update({effects:Vt.of(null)})),!0):!1}],Jt=T.define({combine(e){return e.length?e[0]:qt}}),Yt=ye.highest(ue.compute([Jt],e=>e.facet(Jt)));function Xt(e,t){return{...t,apply:Gt(e)}}var Zt=m.domEventHandlers({mousedown(e,t){let n=t.state.field(Ut,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:Wt(n.ranges,i.field),effects:Vt.of(n.ranges.some(e=>e.field>i.field)?new Bt(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Qt={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},P=D.define({map(e,t){return t.mapPos(e,-1,Ce.TrackAfter)??void 0}}),$t=new class extends Fe{};$t.startSide=1,$t.endSide=-1;var en=x.define({create(){return ve.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(P)&&(e=e.update({add:[$t.range(n.value,n.value+1)]}));return e}});function tn(){return[sn,en]}var nn=`()[]{}<>«»»«[]{}`;function rn(e){for(let t=0;t<16;t+=2)if(nn.charCodeAt(t)==e)return nn.charAt(t+1);return ee(e<128?e:e+1)}function an(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||Qt}var on=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),sn=m.inputHandler.of((e,t,n,r)=>{if((on?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(r.length>2||r.length==2&&E(i(r,0))==1||t!=a.from||n!=a.to)return!1;let o=ln(e.state,r);return o?(e.dispatch(o),!0):!1}),cn=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=an(e,e.selection.main.head).brackets||Qt.brackets,r=null,a=e.changeByRange(t=>{if(t.empty){let r=fn(e.doc,t.head);for(let a of n)if(a==r&&dn(e.doc,t.head)==rn(i(a,0)))return{changes:{from:t.head-a.length,to:t.head+a.length},range:S.cursor(t.head-a.length)}}return{range:r=t}});return r||t(e.update(a,{scrollIntoView:!0,userEvent:`delete.backward`})),!r}}];function ln(e,t){let n=an(e,e.selection.main.head),r=n.brackets||Qt.brackets;for(let a of r){let o=rn(i(a,0));if(t==a)return o==a?hn(e,a,r.indexOf(a+a+a)>-1,n):pn(e,a,o,n.before||Qt.before);if(t==o&&un(e,e.selection.main.from))return mn(e,a,o)}return null}function un(e,t){let n=!1;return e.field(en).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function dn(e,t){let n=e.sliceString(t,t+2);return n.slice(0,E(i(n,0)))}function fn(e,t){let n=e.sliceString(t-2,t);return E(i(n,0))==n.length?n:n.slice(1)}function pn(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:P.of(a.to+t.length),range:S.range(a.anchor+t.length,a.head+t.length)};let o=dn(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:P.of(a.head+t.length),range:S.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function mn(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&dn(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:S.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:`input.type`})}function hn(e,t,n,r){let i=r.stringPrefixes||Qt.stringPrefixes,a=null,o=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:P.of(r.to+t.length),range:S.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=dn(e.doc,o),c;if(s==t){if(gn(e,o))return{changes:{insert:t+t,from:o},effects:P.of(o+t.length),range:S.cursor(o+t.length)};if(un(e,o)){let r=n&&e.sliceDoc(o,o+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:o,to:o+r.length,insert:r},range:S.cursor(o+r.length)}}}else if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&(c=vn(e,o-2*t.length,i))>-1&&gn(e,c))return{changes:{insert:t+t+t+t,from:o},effects:P.of(o+t.length),range:S.cursor(o+t.length)};else if(e.charCategorizer(o)(s)!=w.Word&&vn(e,o,i)>-1&&!_n(e,o,t,i))return{changes:{insert:t+t,from:o},effects:P.of(o+t.length),range:S.cursor(o+t.length)};return{range:a=r}});return a?null:e.update(o,{scrollIntoView:!0,userEvent:`input.type`})}function gn(e,t){let n=C(e).resolveInner(t+1);return n.parent&&n.from==t}function _n(e,t,n,r){let i=C(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function vn(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=w.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=w.Word)return n}return-1}function yn(e={}){return[Nt,N,j.of(e),jt,xn,Pt]}var bn=[{key:`Ctrl-Space`,run:Et},{mac:"Alt-`",run:Et},{mac:`Alt-i`,run:Et},{key:`Escape`,run:Dt},{key:`ArrowDown`,run:wt(!0)},{key:`ArrowUp`,run:wt(!1)},{key:`PageDown`,run:wt(!0,`page`)},{key:`PageUp`,run:wt(!1,`page`)},{key:`Enter`,run:Tt}],xn=ye.highest(ue.computeN([j],e=>e.facet(j).defaultKeymap?[bn]:[])),Sn=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Dn(e.state,n.from);return r.line?wn(e):r.block?En(e):!1};function Cn(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var wn=Cn(Mn,0),Tn=Cn(jn,0),En=Cn((e,t)=>jn(e,t,An(t)),0);function Dn(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var On=50;function kn(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-On,r),o=e.sliceDoc(i,i+On),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=100?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+On),d=e.sliceDoc(i-On,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function An(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function jn(e,t,n=t.selection.ranges){let r=n.map(e=>Dn(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>kn(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function Mn(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=Dn(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var Nn=De.define(),Pn=De.define(),Fn=T.define(),In=T.define({combine(e){return ie(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),Ln=x.define({create(){return er.empty},update(e,t){let n=t.state.facet(In),r=t.annotation(Nn);if(r){let i=F.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?Wn(o,o.length,n.minDepth,i):Yn(o,t.startState.selection),new er(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(Pn);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(v.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=F.fromTransaction(t),o=t.annotation(v.time),s=t.annotation(v.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new er(e.done.map(F.fromJSON),e.undone.map(F.fromJSON))}});function Rn(e={}){return[Ln,In.of(e),m.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?Bn:e.inputType==`historyRedo`?Vn:null;return n?(e.preventDefault(),n(t)):!1}})]}function zn(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Ln,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var Bn=zn(0,!1),Vn=zn(1,!1),Hn=zn(0,!0),Un=zn(1,!0),F=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&pe.fromJSON(t.changes),[],t.mapped&&Ae.fromJSON(t.mapped),t.startSelection&&S.fromJSON(t.startSelection),t.selectionsAfter.map(S.fromJSON))}static fromTransaction(t,n){let r=I;for(let e of t.startState.facet(Fn)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,I)}static selection(t){return new e(void 0,I,void 0,void 0,t)}};function Wn(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function Gn(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function Kn(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function qn(e,t){return e.length?t.length?e.concat(t):e:t}var I=[],Jn=200;function Yn(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Jn));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Wn(e,e.length-1,1e9,n.setSelAfter(r)))}return[F.selection([t])]}function Xn(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Zn(e,t){if(!e.length)return e;let n=e.length,r=I;for(;n;){let i=Qn(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[F.selection(r)]:I}function Qn(e,t,n){let r=qn(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):I,n);if(!e.changes)return F.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new F(i,D.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var $n=/^(input\.type|delete)($|\.)/,er=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||$n.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,Gn(s.changes,t.changes))||r==`input.type.compose`)?Wn(o,o.length-1,i.minDepth,new F(t.changes.compose(s.changes),qn(D.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,I)):Wn(o,o.length,i.minDepth,t),new e(o,I,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:I;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&Kn(a[a.length-1],t)?this:new e(Yn(this.done,t),this.undone,n,r)}addMapping(t){return new e(Zn(this.done,t),Zn(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Nn.of({side:e,rest:Xn(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?I:r.slice(0,r.length-1);return i.mapped&&(n=Zn(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Nn.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}return null}};er.empty=new er(I,I);var tr=[{key:`Mod-z`,run:Bn,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:Vn,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:Vn,preventDefault:!0},{key:`Mod-u`,run:Hn,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:Un,preventDefault:!0}];function L(e,t){return S.create(e.ranges.map(t),e.mainIndex)}function R(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function z({state:e,dispatch:t},n){let r=L(e.selection,n);return!r.eq(e.selection,!0)&&(t(R(e,r)),!0)}function nr(e,t){return S.cursor(t?e.to:e.from)}function rr(e,t){return z(e,n=>n.empty?e.moveByChar(n,t):nr(n,t))}function B(e){return e.textDirectionAt(e.state.selection.main.head)==d.LTR}var ir=e=>rr(e,!B(e)),ar=e=>rr(e,B(e));function or(e,t){return z(e,n=>n.empty?e.moveByGroup(n,t):nr(n,t))}var sr=e=>or(e,!B(e)),cr=e=>or(e,B(e));typeof Intl<`u`&&Intl.Segmenter;function lr(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function ur(e,t,n){let r=C(e).resolveInner(t.head),i=n?xe.closedBy:xe.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;lr(e,t,i)?r=t:a=n?t.to:t.from}let a=r.type.prop(i),o,s;return s=a&&(o=n?h(e,r.from,1):h(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,S.cursor(s,n?-1:1)}var dr=e=>z(e,t=>ur(e.state,t,!B(e))),fr=e=>z(e,t=>ur(e.state,t,B(e)));function pr(e,t){return z(e,n=>{if(!n.empty)return nr(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var mr=e=>pr(e,!1),hr=e=>pr(e,!0);function gr(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(m.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function _r(e,t){let n=gr(e),{state:r}=e,i=L(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):nr(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=m.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(R(r,i),{effects:a}),!0}var vr=e=>_r(e,!1),yr=e=>_r(e,!0);function V(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=S.cursor(r.from+n))}return i}var br=e=>z(e,t=>V(e,t,!0)),xr=e=>z(e,t=>V(e,t,!1)),Sr=e=>z(e,t=>V(e,t,!B(e))),Cr=e=>z(e,t=>V(e,t,B(e))),wr=e=>z(e,t=>e.moveToLineBoundary(t,!1,!1)),Tr=e=>z(e,t=>e.moveToLineBoundary(t,!0,!1));function Er(e,t,n){let r=!1,i=L(e.selection,t=>{let i=h(e,t.head,-1)||h(e,t.head,1)||t.head>0&&h(e,t.head-1,1)||t.head<e.doc.length&&h(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?S.range(t.anchor,a):S.cursor(a)});return r?(t(R(e,i)),!0):!1}var Dr=({state:e,dispatch:t})=>Er(e,t,!1);function H(e,t,n){let r=L(e.state.selection,e=>{e.undirectional&&e.head>=e.anchor!=t&&(e=S.range(e.head,e.anchor));let r=n(e);return S.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(e.state.selection)&&(e.dispatch(R(e.state,r)),!0)}function Or(e,t){return H(e,t,n=>e.moveByChar(n,t))}var kr=e=>Or(e,!B(e)),Ar=e=>Or(e,B(e));function jr(e,t){return H(e,t,n=>e.moveByGroup(n,t))}var Mr=e=>jr(e,!B(e)),Nr=e=>jr(e,B(e)),Pr=e=>{let t=!B(e);return H(e,t,n=>ur(e.state,n,t))},Fr=e=>{let t=B(e);return H(e,t,n=>ur(e.state,n,t))};function Ir(e,t){return H(e,t,n=>e.moveVertically(n,t))}var Lr=e=>Ir(e,!1),Rr=e=>Ir(e,!0);function zr(e,t){return H(e,t,n=>e.moveVertically(n,t,gr(e).height))}var Br=e=>zr(e,!1),Vr=e=>zr(e,!0),Hr=e=>H(e,!0,t=>V(e,t,!0)),Ur=e=>H(e,!1,t=>V(e,t,!1)),Wr=e=>{let t=!B(e);return H(e,t,n=>V(e,n,t))},Gr=e=>{let t=B(e);return H(e,t,n=>V(e,n,t))},Kr=e=>H(e,!1,t=>S.cursor(e.lineBlockAt(t.head).from)),qr=e=>H(e,!0,t=>S.cursor(e.lineBlockAt(t.head).to)),Jr=({state:e,dispatch:t})=>(t(R(e,{anchor:0})),!0),Yr=({state:e,dispatch:t})=>(t(R(e,{anchor:e.doc.length})),!0),Xr=({state:e,dispatch:t})=>(t(R(e,{anchor:e.selection.main.anchor,head:0})),!0),Zr=({state:e,dispatch:t})=>(t(R(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Qr=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),$r=({state:e,dispatch:t})=>{let n=vi(e).map(({from:t,to:n})=>S.undirectionalRange(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:S.create(n),userEvent:`select`})),!0},ei=({state:e,dispatch:t})=>{let n=L(e.selection,t=>{let n=C(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return S.undirectionalRange(n.from,n.to)}return t});return!n.eq(e.selection)&&(t(R(e,n)),!0)};function ti(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(R(n,S.create(i,i.length-1))),!0)}var ni=e=>ti(e,!1),ri=e=>ti(e,!0),ii=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=S.create([n.main]):n.main.empty||(r=S.create([S.cursor(n.main.head)])),r?(t(R(e,r)),!0):!1};function ai(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=oi(e,o,!1)):o>i&&(n=`delete.forward`,o=oi(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=oi(e,i,!1),a=oi(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:S.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?m.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function oi(e,t,n){if(e instanceof m)for(let r of e.state.facet(m.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var si=(e,t,n)=>ai(e,r=>{let i=r.from,{state:o}=e,c=o.doc.lineAt(i),l,u;if(n&&!t&&i>c.from&&i<c.from+200&&!/[^ \t]/.test(l=c.text.slice(0,i-c.from))){if(l[l.length-1]==` `)return i-1;let e=s(l,o.tabSize)%Le(o)||Le(o);for(let t=0;t<e&&l[l.length-1-t]==` `;t++)i--;u=i}else u=a(c.text,i-c.from,t,t)+c.from,u==i&&c.number!=(t?o.doc.lines:1)?u+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(c.text.slice(u-c.from,i-c.from))&&(u=a(c.text,u-c.from,!1,!1)+c.from);return u}),ci=e=>si(e,!1,!0),li=e=>si(e,!0,!1),ui=(e,t)=>ai(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let c=a(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,c)-o.from,Math.max(r,c)-o.from),u=s(l);if(e!=null&&u!=e)break;(l!=` `||r!=n.head)&&(e=u),r=c}return r}),di=e=>ui(e,!1),fi=e=>ui(e,!0),pi=e=>ai(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),mi=e=>ai(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),hi=e=>ai(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),gi=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:Re.of([``,``])},range:S.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},_i=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:a(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:a(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:S.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function vi(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function yi(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of vi(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(S.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(S.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:S.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var bi=({state:e,dispatch:t})=>yi(e,t,!1),xi=({state:e,dispatch:t})=>yi(e,t,!0);function Si(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of vi(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var Ci=({state:e,dispatch:t})=>Si(e,t,!1),wi=({state:e,dispatch:t})=>Si(e,t,!0),Ti=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(vi(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=L(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function Ei(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=C(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(xe.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var Di=ki(!1),Oi=ki(!0);function ki(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&Ei(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let c=new we(t,{simulateBreak:r,simulateDoubleBreak:!!o}),l=_(c,r);for(l??=s(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let u=[``,re(t,l)];return o&&u.push(re(t,c.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:Re.of(u)},range:S.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function Ai(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:S.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var ji=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new we(e,{overrideIndentation:e=>n[e]??-1}),i=Ai(e,(t,i,a)=>{let o=_(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=re(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},Mi=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ai(e,(t,n)=>{n.push({from:t.from,insert:e.facet(o)})}),{userEvent:`input.indent`})),!0),Ni=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ai(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=s(r,e.tabSize),a=0,o=re(e,Math.max(0,i-Le(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),Pi=e=>(e.setTabFocusMode(),!0),Fi=[{key:`Ctrl-b`,run:ir,shift:kr,preventDefault:!0},{key:`Ctrl-f`,run:ar,shift:Ar},{key:`Ctrl-p`,run:mr,shift:Lr},{key:`Ctrl-n`,run:hr,shift:Rr},{key:`Ctrl-a`,run:wr,shift:Kr},{key:`Ctrl-e`,run:Tr,shift:qr},{key:`Ctrl-d`,run:li},{key:`Ctrl-h`,run:ci},{key:`Ctrl-k`,run:pi},{key:`Ctrl-Alt-h`,run:di},{key:`Ctrl-o`,run:gi},{key:`Ctrl-t`,run:_i},{key:`Ctrl-v`,run:yr}],Ii=[{key:`ArrowLeft`,run:ir,shift:kr,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:sr,shift:Mr,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:Sr,shift:Wr,preventDefault:!0},{key:`ArrowRight`,run:ar,shift:Ar,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:cr,shift:Nr,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:Cr,shift:Gr,preventDefault:!0},{key:`ArrowUp`,run:mr,shift:Lr,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:Jr,shift:Xr},{mac:`Ctrl-ArrowUp`,run:vr,shift:Br},{key:`ArrowDown`,run:hr,shift:Rr,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:Yr,shift:Zr},{mac:`Ctrl-ArrowDown`,run:yr,shift:Vr},{key:`PageUp`,run:vr,shift:Br},{key:`PageDown`,run:yr,shift:Vr},{key:`Home`,run:xr,shift:Ur,preventDefault:!0},{key:`Mod-Home`,run:Jr,shift:Xr},{key:`End`,run:br,shift:Hr,preventDefault:!0},{key:`Mod-End`,run:Yr,shift:Zr},{key:`Enter`,run:Di,shift:Di},{key:`Mod-a`,run:Qr},{key:`Backspace`,run:ci,shift:ci,preventDefault:!0},{key:`Delete`,run:li,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:di,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:fi,preventDefault:!0},{mac:`Mod-Backspace`,run:mi,preventDefault:!0},{mac:`Mod-Delete`,run:hi,preventDefault:!0}].concat(Fi.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Li=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:dr,shift:Pr},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:fr,shift:Fr},{key:`Alt-ArrowUp`,run:bi},{key:`Shift-Alt-ArrowUp`,run:Ci},{key:`Alt-ArrowDown`,run:xi},{key:`Shift-Alt-ArrowDown`,run:wi},{key:`Mod-Alt-ArrowUp`,run:ni},{key:`Mod-Alt-ArrowDown`,run:ri},{key:`Escape`,run:ii},{key:`Mod-Enter`,run:Oi},{key:`Alt-l`,mac:`Ctrl-l`,run:$r},{key:`Mod-i`,run:ei,preventDefault:!0},{key:`Mod-[`,run:Ni},{key:`Mod-]`,run:Mi},{key:`Mod-Alt-\\`,run:ji},{key:`Shift-Mod-k`,run:Ti},{key:`Shift-Mod-\\`,run:Dr},{key:`Mod-/`,run:Sn},{key:`Alt-A`,mac:`Ctrl-A`,run:Tn},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:Pi}].concat(Ii),Ri={key:`Tab`,run:Mi,shift:Ni},zi=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,U=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(zi(e)):zi,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return i(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=ee(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=E(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),o=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(o)return this.value=o,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],o=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}};typeof Symbol<`u`&&(U.prototype[Symbol.iterator]=function(){return this});var Bi={from:-1,to:-1,match:/.*/.exec(``),precise:!0},Vi=`gm`+(/x/.unicode==null?``:`u`),Hi=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=Bi,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Gi(e,t,n,r,i);this.re=new RegExp(t,Vi+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=qi(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=qi(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},Ui=new WeakMap,Wi=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=Ui.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return Ui.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),Ui.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},Gi=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=Bi,this.matchPos=qi(e,r),this.re=new RegExp(t,Vi+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=Wi.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=qi(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Wi.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&(Hi.prototype[Symbol.iterator]=Gi.prototype[Symbol.iterator]=function(){return this});function Ki(e){try{return new RegExp(e,Vi),!0}catch{return!1}}function qi(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var Ji=e=>{let t=se(e,`cm-goto-line`);if(t){let e=t.dom.querySelector(`input[type=text]`);return e&&e.select(),!0}let{state:n}=e,r=String(n.doc.lineAt(e.state.selection.main.head).number),{close:i,result:a}=Te(e,{class:`cm-goto-line`,label:n.phrase(`Go to line`),input:{type:`text`,name:`line`,value:r},focus:!0,submitLabel:n.phrase(`go`)});return a.then(t=>{let r=t&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.elements.line.value);if(!r){e.dispatch({effects:i});return}let a=n.doc.lineAt(n.selection.main.head),[,o,s,c,l]=r,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/n.doc.lines),d=Math.round(n.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=n.doc.line(Math.max(1,Math.min(n.doc.lines,d))),p=S.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[i,m.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},Yi={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Xi=T.define({combine(e){return ie(e,Yi,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function Zi(e){let t=[ra,na];return e&&t.push(Xi.of(e)),t}var Qi=c.mark({class:`cm-selectionMatch`}),$i=c.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function ea(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=w.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=w.Word)}function ta(e,t,n,r){return e(t.sliceDoc(n,n+1))==w.Word&&e(t.sliceDoc(r-1,r))==w.Word}var na=ne.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Xi),{state:n}=e,r=n.selection;if(r.ranges.length>1)return c.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return c.none;let e=n.wordAt(i.head);if(!e)return c.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return c.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(ea(o,n,i.from,i.to)&&ta(o,n,i.from,i.to)))return c.none}else if(a=n.sliceDoc(i.from,i.to),!a)return c.none}let s=[];for(let r of e.visibleRanges){let e=new U(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||ea(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push($i.range(r,a)):(r>=i.to||a<=i.from)&&s.push(Qi.range(r,a)),s.length>t.maxMatches))return c.none}}return c.set(s)}},{decorations:e=>e.decorations}),ra=m.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),ia=({state:e,dispatch:t})=>{let{selection:n}=e,r=S.create(n.ranges.map(t=>e.wordAt(t.head)||S.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)};function aa(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new U(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new U(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var oa=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return ia({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=aa(e,r);return i?(t(e.update({selection:e.selection.addRange(S.range(i.from,i.to),!1),effects:m.scrollIntoView(i.to)})),!0):!1},W=T.define({combine(e){return ie(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Ra(e),scrollToMatch:e=>m.scrollIntoView(e)})}});function sa(e){return e?[W.of(e),Ua]:Ua}var ca=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||Ki(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
3
+ `:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new _a(this):new fa(this)}getCursor(e,t=0,n){let r=e.doc?e:ge.create({doc:e});return n??=r.doc.length,this.regexp?K(this,r,t,n):G(this,r,t,n)}},la=class{constructor(e){this.spec=e}};function ua(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function G(e,t,n,r){let i;return e.wholeWord&&(i=da(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=ua(e.test,t,i)),new U(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function da(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(ma(i,n-a))!=w.Word||t(ha(i,n-a))!=w.Word)&&(t(ha(i,r-a))!=w.Word||t(ma(i,r-a))!=w.Word))}var fa=class extends la{constructor(e){super(e)}nextMatch(e,t,n){let r=G(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=G(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=G(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=G(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=G(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function pa(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function K(e,t,n,r){let i;return e.wholeWord&&(i=ga(t.charCategorizer(t.selection.main.head))),e.test&&(i=pa(e.test,t,i)),new Hi(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function ma(e,t){return e.slice(a(e,t,!1),t)}function ha(e,t){return e.slice(t,a(e,t))}function ga(e){return(t,n,r)=>!r[0].length||(e(ma(r.input,r.index))!=w.Word||e(ha(r.input,r.index))!=w.Word)&&(e(ha(r.input,r.index+r[0].length))!=w.Word||e(ma(r.input,r.index+r[0].length))!=w.Word)}var _a=class extends la{nextMatch(e,t,n){let r=K(this.spec,e,n,e.doc.length).next();return r.done&&(r=K(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=K(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=K(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=K(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},q=D.define(),va=D.define(),J=x.define({create(e){return new ba(Ma(e).create(),null)},update(e,t){for(let n of t.effects)n.is(q)?e=new ba(n.value.create(),e.panel):n.is(va)&&(e=new ba(e.query,n.value?ja:null));return e},provide:e=>ke.from(e,e=>e.panel)});function ya(e){let t=e.field(J,!1);return t?t.query.spec:Ma(e)}var ba=class{constructor(e,t){this.query=e,this.panel=t}},xa=c.mark({class:`cm-searchMatch`}),Sa=c.mark({class:`cm-searchMatch cm-searchMatch-selected`}),Ca=ne.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(J))}update(e){let t=e.state.field(J);(t!=e.startState.field(J)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return c.none;let{view:n}=this,r=new de;for(let t=0,i=n.visibleRanges,a=i.length;t<a;t++){let{from:o,to:s}=i[t];for(;t<a-1&&s>i[t+1].from-500;)s=i[++t].to;e.highlight(n.state,o,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?Sa:xa)})}return r.finish()}},{decorations:e=>e.decorations});function wa(e){return t=>{let n=t.state.field(J,!1);return n&&n.query.spec.valid?e(t,n):Fa(t)}}var Ta=wa((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=S.single(r.from,r.to),a=e.state.facet(W);return e.dispatch({selection:i,effects:[Va(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),Pa(e),!0}),Ea=wa((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=S.single(i.from,i.to),o=e.state.facet(W);return e.dispatch({selection:a,effects:[Va(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),Pa(e),!0}),Da=wa((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:S.create(n.map(e=>S.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),Oa=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new U(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(S.range(t.value.from,t.value.to))}return t(e.update({selection:S.create(a,o),userEvent:`select.search.matches`})),!0},ka=wa((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.precise?o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(m.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`))):o=t.nextMatch(n,o.from,o.to);let d=e.state.changes(s);return o&&(c=S.single(o.from,o.to).map(d),u.push(Va(e,o)),u.push(n.facet(W).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),Aa=wa((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:m.announce.of(r),userEvent:`input.replace.all`}),!0});function ja(e){return e.state.facet(W).createPanel(e)}function Ma(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(W);return new ca({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function Na(e){let t=l(e,ja);return t&&t.dom.querySelector(`[main-field]`)}function Pa(e){let t=Na(e);t&&t==e.root.activeElement&&t.select()}var Fa=e=>{let t=e.state.field(J,!1);if(t&&t.panel){let n=Na(e);if(n&&n!=e.root.activeElement){let r=Ma(e.state,t.query.spec);r.valid&&e.dispatch({effects:q.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[va.of(!0),t?q.of(Ma(e.state,t.query.spec)):D.appendConfig.of(Ua)]});return!0},Ia=e=>{let t=e.state.field(J,!1);if(!t||!t.panel)return!1;let n=l(e,ja);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:va.of(!1)}),!0},La=[{key:`Mod-f`,run:Fa,scope:`editor search-panel`},{key:`F3`,run:Ta,shift:Ea,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:Ta,shift:Ea,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:Ia,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:Oa},{key:`Mod-Alt-g`,run:Ji},{key:`Mod-d`,run:oa,preventDefault:!0}],Ra=class{constructor(e){this.view=e;let t=this.query=e.state.field(J).query.spec;this.commit=this.commit.bind(this),this.searchField=b(`input`,{value:t.search,placeholder:Y(e,`Find`),"aria-label":Y(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=b(`input`,{value:t.replace,placeholder:Y(e,`Replace`),"aria-label":Y(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=b(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=b(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=b(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return b(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=b(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>Ta(e),[Y(e,`next`)]),n(`prev`,()=>Ea(e),[Y(e,`previous`)]),n(`select`,()=>Da(e),[Y(e,`all`)]),b(`label`,null,[this.caseField,Y(e,`match case`)]),b(`label`,null,[this.reField,Y(e,`regexp`)]),b(`label`,null,[this.wordField,Y(e,`by word`)]),...e.state.readOnly?[]:[b(`br`),this.replaceField,n(`replace`,()=>ka(e),[Y(e,`replace`)]),n(`replaceAll`,()=>Aa(e),[Y(e,`replace all`)])],b(`button`,{name:`close`,onclick:()=>Ia(e),"aria-label":Y(e,`close`),type:`button`},[`×`])])}commit(){let e=new ca({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:q.of(e)}))}keydown(e){Me(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Ea:Ta)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),ka(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(q)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(W).top}};function Y(e,t){return e.state.phrase(t)}var za=30,Ba=/[\s\.,:;?!]/;function Va(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-za),o=Math.min(i,n+za),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<za;e++)if(!Ba.test(s[e+1])&&Ba.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-za;e--)if(!Ba.test(s[e-1])&&Ba.test(s[e])){s=s.slice(0,e);break}}return m.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var Ha=m.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),Ua=[J,ye.low(Ca),Ha],Wa=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},Ga=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,n,r){let i=r.facet(ro).markerFilter;i&&(t=i(t,r));let a=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new de,s=[],l=0,u=r.doc.iter(),d=0,f=r.doc.length;for(let e=0;;){let t=e==a.length?null:a[e];if(!t&&!s.length)break;let n,r;if(s.length)n=l,r=s.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>f)break;r=t.to,s.push(t),e++}for(;e<a.length;){let t=a[e];if(t.from==n&&(t.to>t.from||t.to==n))s.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,f);let i=!1;if(s.some(e=>e.from==n&&(e.to==r||r==f))&&(i=n==r,!i&&r-n<10)){let e=n-(d+u.value.length);e>0&&(u.next(e),d=n);for(let e=n;;){if(e>=r){i=!0;break}if(!u.lineBreak&&d+u.value.length>e)break;e=d+u.value.length,d+=u.value.length,u.next()}}let p=ho(s);if(i)o.add(n,n,c.widget({widget:new so(p),diagnostics:s.slice()}));else{let e=s.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);o.add(n,r,c.mark({class:`cm-lintRange cm-lintRange-`+p+e,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>r)}))}if(l=r,l==f)break;for(let e=0;e<s.length;e++)s[e].to<=l&&s.splice(e--,1)}let p=o.finish();return new e(p,n,X(p))}};function X(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0)){if(!r)r=new Wa(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new Wa(r.from,n,r.diagnostic)}}),r}function Ka(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(ro).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(Ja))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function qa(e,t){return e.field(Z,!1)?t:t.concat(D.appendConfig.of(_o))}var Ja=D.define(),Ya=D.define(),Xa=D.define(),Z=x.define({create(){return new Ga(c.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=X(n,e.selected.diagnostic,i)||X(n,null,i)}!n.size&&i&&t.state.facet(ro).autoPanel&&(i=null),e=new Ga(n,i,r)}for(let n of t.effects)if(n.is(Ja)){let r=t.state.facet(ro).autoPanel?n.value.length?lo.open:null:e.panel;e=Ga.init(n.value,r,t.state)}else n.is(Ya)?e=new Ga(e.diagnostics,n.value?lo.open:null,e.selected):n.is(Xa)&&(e=new Ga(e.diagnostics,e.panel,n.value));return e},provide:e=>[ke.from(e,e=>e.panel),m.decorations.from(e,e=>e.diagnostics)]}),Za=c.mark({class:`cm-lintRange cm-lintRange-active`});function Qa(e,t,n){let{diagnostics:r}=e.state.field(Z),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(ro).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:!0,create(){return{dom:$a(e,i)}}}:null}function $a(e,t){return b(`ul`,{class:`cm-tooltip-lint`},t.map(t=>oo(e,t,!1)))}var eo=e=>{let t=e.state.field(Z,!1);t&&t.panel||e.dispatch({effects:qa(e.state,[Ya.of(!0)])});let n=l(e,lo.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},to=e=>{let t=e.state.field(Z,!1);return!t||!t.panel?!1:(e.dispatch({effects:Ya.of(!1)}),!0)},no=[{key:`Mod-Shift-m`,run:eo,preventDefault:!0},{key:`F8`,run:e=>{let t=e.state.field(Z,!1);if(!t)return!1;let n=e.state.selection.main,i=X(t.diagnostics,null,n.to+1);return!i&&(i=X(t.diagnostics,null,0),!i||i.from==n.from&&i.to==n.to)?!1:(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),r(e,i.from,1,{tooltip:go,until:e=>e.docChanged||e.newSelection.main.head<i.from||e.newSelection.main.head>i.to}),!0)}}],ro=T.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...ie(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:io,tooltipFilter:io,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function io(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function ao(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function oo(e,t,n){let r=n?ao(t.actions):[];return b(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},b(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=X(e.state.field(Z).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),b(`u`,s.slice(c,c+1)),s.slice(c+1)],u=n.markClass?` `+n.markClass:``;return b(`button`,{type:`button`,class:`cm-diagnosticAction`+u,onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&b(`div`,{class:`cm-diagnosticSource`},t.source))}var so=class extends ze{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return b(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},co=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=oo(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},lo=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)to(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=ao(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=X(this.view.state.field(Z).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=b(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t,onclick:n}),this.dom=b(`div`,{class:`cm-panel-lint`},this.list,b(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>to(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(Z).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Z),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new co(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new co(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=X(this.view.state.field(Z).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Xa.of(t)})}static open(t){return new e(t)}};function uo(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function fo(e){return uo(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var po=m.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:fo(`#f11`)},".cm-lintRange-warning":{backgroundImage:fo(`orange`)},".cm-lintRange-info":{backgroundImage:fo(`#999`)},".cm-lintRange-hint":{backgroundImage:fo(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function mo(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function ho(e){let t=`hint`,n=1;for(let r of e){let e=mo(r.severity);e>n&&(n=e,t=r.severity)}return t}var go=ce(Qa,{hideOn:Ka}),_o=[Z,m.decorations.compute([Z],e=>{let{selected:t,panel:n}=e.field(Z);return!t||!n||t.from==t.to?c.none:c.set([Za.range(t.from,t.to)])}),go,po],vo=[te(),f(),le(),Rn(),_e(),u(),ae(),ge.allowMultipleSelections.of(!0),Ie(),n(he,{fallback:!0}),Se(),tn(),yn(),me(),oe(),Oe(),Zi(),ue.of([...cn,...Li,...La,...tr,...Pe,...bn,...no])];function Q(e){return new Ee(fe.define(e))}function $(e){return O(()=>import(`./dist-DTjHomg3.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1,2]))}var yo=[y.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return O(()=>import(`./dist-C0vYCeId.js`).then(e=>e.cpp()),__vite__mapDeps([3,2,1]))}}),y.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return O(()=>import(`./dist-C0vYCeId.js`).then(e=>e.cpp()),__vite__mapDeps([3,2,1]))}}),y.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return $(`Cassandra`)}}),y.of({name:`CSS`,extensions:[`css`],load(){return O(()=>import(`./dist-RJnNnBqa.js`).then(e=>e.i).then(e=>e.css()),__vite__mapDeps([4,5,2,1]))}}),y.of({name:`Go`,extensions:[`go`],load(){return O(()=>import(`./dist-B5emzMvH.js`).then(e=>e.go()),__vite__mapDeps([6,2,1]))}}),y.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return O(()=>import(`./dist-CYNv_x25.js`).then(e=>e.html()),__vite__mapDeps([7,2,1,4,5,8]))}}),y.of({name:`Java`,extensions:[`java`],load(){return O(()=>import(`./dist-Cc1Gj7tZ.js`).then(e=>e.java()),__vite__mapDeps([9,2,1]))}}),y.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return O(()=>import(`./dist-to0Y4VHe.js`).then(e=>e.t).then(e=>e.javascript()),__vite__mapDeps([8,5,2,1]))}}),y.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return O(()=>import(`./dist-ThlP4B0-.js`).then(e=>e.jinja()),__vite__mapDeps([10,1,7,2,4,5,8]))}}),y.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return O(()=>import(`./dist-ByVjh-LO.js`).then(e=>e.json()),__vite__mapDeps([11,2,1]))}}),y.of({name:`JSX`,extensions:[`jsx`],load(){return O(()=>import(`./dist-to0Y4VHe.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0})),__vite__mapDeps([8,5,2,1]))}}),y.of({name:`LESS`,extensions:[`less`],load(){return O(()=>import(`./dist-BZwn6_Fh.js`).then(e=>e.less()),__vite__mapDeps([12,1,4,5,2]))}}),y.of({name:`Liquid`,extensions:[`liquid`],load(){return O(()=>import(`./dist-rREmcN_F.js`).then(e=>e.liquid()),__vite__mapDeps([13,1,7,2,4,5,8]))}}),y.of({name:`MariaDB SQL`,load(){return $(`MariaSQL`)}}),y.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return O(()=>import(`./dist-C3T17C1Q.js`).then(e=>e.markdown()),__vite__mapDeps([14,1,7,2,4,5,8]))}}),y.of({name:`MS SQL`,load(){return $(`MSSQL`)}}),y.of({name:`MySQL`,load(){return $(`MySQL`)}}),y.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return O(()=>import(`./dist-BNmsN76A.js`).then(e=>e.php()),__vite__mapDeps([15,2,1,7,4,5,8]))}}),y.of({name:`PLSQL`,extensions:[`pls`],load(){return $(`PLSQL`)}}),y.of({name:`PostgreSQL`,load(){return $(`PostgreSQL`)}}),y.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return O(()=>import(`./dist-Bp1qxOA-.js`).then(e=>e.python()),__vite__mapDeps([16,2,1]))}}),y.of({name:`Rust`,extensions:[`rs`],load(){return O(()=>import(`./dist-Cm6nrvBz.js`).then(e=>e.rust()),__vite__mapDeps([17,2,1]))}}),y.of({name:`Sass`,extensions:[`sass`],load(){return O(()=>import(`./dist-DuwjrxJ6.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([18,2,1,4,5]))}}),y.of({name:`SCSS`,extensions:[`scss`],load(){return O(()=>import(`./dist-DuwjrxJ6.js`).then(e=>e.sass()),__vite__mapDeps([18,2,1,4,5]))}}),y.of({name:`SQL`,extensions:[`sql`],load(){return $(`StandardSQL`)}}),y.of({name:`SQLite`,load(){return $(`SQLite`)}}),y.of({name:`TSX`,extensions:[`tsx`],load(){return O(()=>import(`./dist-to0Y4VHe.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0,typescript:!0})),__vite__mapDeps([8,5,2,1]))}}),y.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return O(()=>import(`./dist-to0Y4VHe.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([8,5,2,1]))}}),y.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return O(()=>import(`./dist-DKNlD5B9.js`).then(e=>e.wast()),__vite__mapDeps([19,1,2]))}}),y.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return O(()=>import(`./dist-DBsUA7Da.js`).then(e=>e.xml()),__vite__mapDeps([20,2,1]))}}),y.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return O(()=>import(`./dist-BFoOtrHc.js`).then(e=>e.yaml()),__vite__mapDeps([21,2,1]))}}),y.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return O(()=>import(`./apl-CHPMLzQP.js`).then(e=>Q(e.apl)),[])}}),y.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return O(()=>import(`./asciiarmor-Qq1NDodh.js`).then(e=>Q(e.asciiArmor)),[])}}),y.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return O(()=>import(`./asn1-DRgkG9yc.js`).then(e=>Q(e.asn1({}))),[])}}),y.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return O(()=>import(`./asterisk-ae5wsYrl.js`).then(e=>Q(e.asterisk)),[])}}),y.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return O(()=>import(`./brainfuck-BKsya-lF.js`).then(e=>Q(e.brainfuck)),[])}}),y.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return O(()=>import(`./cobol-B3aUFbKf.js`).then(e=>Q(e.cobol)),[])}}),y.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.csharp)),[])}}),y.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return O(()=>import(`./clojure-CgPaYiPv.js`).then(e=>Q(e.clojure)),[])}}),y.of({name:`ClojureScript`,extensions:[`cljs`],load(){return O(()=>import(`./clojure-CgPaYiPv.js`).then(e=>Q(e.clojure)),[])}}),y.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return O(()=>import(`./css-DN2LLrF8.js`).then(e=>Q(e.gss)),[])}}),y.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return O(()=>import(`./cmake-DbqTW5io.js`).then(e=>Q(e.cmake)),[])}}),y.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return O(()=>import(`./coffeescript-CCPt9S--.js`).then(e=>Q(e.coffeeScript)),[])}}),y.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return O(()=>import(`./commonlisp-Clm1YIex.js`).then(e=>Q(e.commonLisp)),[])}}),y.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return O(()=>import(`./cypher-CCkHI_OH.js`).then(e=>Q(e.cypher)),[])}}),y.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return O(()=>import(`./python-4ztzejrZ.js`).then(e=>Q(e.cython)),[])}}),y.of({name:`Crystal`,extensions:[`cr`],load(){return O(()=>import(`./crystal-BmCet_35.js`).then(e=>Q(e.crystal)),[])}}),y.of({name:`D`,extensions:[`d`],load(){return O(()=>import(`./d-DXS80xi8.js`).then(e=>Q(e.d)),[])}}),y.of({name:`Dart`,extensions:[`dart`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.dart)),[])}}),y.of({name:`diff`,extensions:[`diff`,`patch`],load(){return O(()=>import(`./diff-LtZN2nYD.js`).then(e=>Q(e.diff)),[])}}),y.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return O(()=>import(`./dockerfile-nM1Ko-Z7.js`).then(e=>Q(e.dockerFile)),__vite__mapDeps([22,23]))}}),y.of({name:`DTD`,extensions:[`dtd`],load(){return O(()=>import(`./dtd-u6doTIMs.js`).then(e=>Q(e.dtd)),[])}}),y.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return O(()=>import(`./dylan-CqCzC1wV.js`).then(e=>Q(e.dylan)),[])}}),y.of({name:`EBNF`,load(){return O(()=>import(`./ebnf-Br6TG6Ej.js`).then(e=>Q(e.ebnf)),[])}}),y.of({name:`ECL`,extensions:[`ecl`],load(){return O(()=>import(`./ecl-DySBI3Mi.js`).then(e=>Q(e.ecl)),[])}}),y.of({name:`edn`,extensions:[`edn`],load(){return O(()=>import(`./clojure-CgPaYiPv.js`).then(e=>Q(e.clojure)),[])}}),y.of({name:`Eiffel`,extensions:[`e`],load(){return O(()=>import(`./eiffel-sYWuGv6G.js`).then(e=>Q(e.eiffel)),[])}}),y.of({name:`Elm`,extensions:[`elm`],load(){return O(()=>import(`./elm--68dTWWw.js`).then(e=>Q(e.elm)),[])}}),y.of({name:`Erlang`,extensions:[`erl`],load(){return O(()=>import(`./erlang-DRzMWhmI.js`).then(e=>Q(e.erlang)),[])}}),y.of({name:`Esper`,load(){return O(()=>import(`./sql-CCvDj5CS.js`).then(e=>Q(e.esper)),[])}}),y.of({name:`Factor`,extensions:[`factor`],load(){return O(()=>import(`./factor-BZWcskYe.js`).then(e=>Q(e.factor)),__vite__mapDeps([24,23]))}}),y.of({name:`FCL`,load(){return O(()=>import(`./fcl-NiqhPlpc.js`).then(e=>Q(e.fcl)),[])}}),y.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return O(()=>import(`./forth-DSgqrjnb.js`).then(e=>Q(e.forth)),[])}}),y.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return O(()=>import(`./fortran-DowQl6ME.js`).then(e=>Q(e.fortran)),[])}}),y.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return O(()=>import(`./mllike-Bk45LYJs.js`).then(e=>Q(e.fSharp)),[])}}),y.of({name:`Gas`,extensions:[`s`],load(){return O(()=>import(`./gas-BGG03rL_.js`).then(e=>Q(e.gas)),[])}}),y.of({name:`Gherkin`,extensions:[`feature`],load(){return O(()=>import(`./gherkin-Cqb_6D-9.js`).then(e=>Q(e.gherkin)),[])}}),y.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return O(()=>import(`./groovy-B7zM4Cov.js`).then(e=>Q(e.groovy)),[])}}),y.of({name:`Haskell`,extensions:[`hs`],load(){return O(()=>import(`./haskell-D7qM5JJh.js`).then(e=>Q(e.haskell)),[])}}),y.of({name:`Haxe`,extensions:[`hx`],load(){return O(()=>import(`./haxe-C6pwwQZb.js`).then(e=>Q(e.haxe)),[])}}),y.of({name:`HXML`,extensions:[`hxml`],load(){return O(()=>import(`./haxe-C6pwwQZb.js`).then(e=>Q(e.hxml)),[])}}),y.of({name:`HTTP`,load(){return O(()=>import(`./http-CmD77Vm0.js`).then(e=>Q(e.http)),[])}}),y.of({name:`IDL`,extensions:[`pro`],load(){return O(()=>import(`./idl-aL_loni0.js`).then(e=>Q(e.idl)),[])}}),y.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return O(()=>import(`./javascript-BXKxGTTj.js`).then(e=>Q(e.jsonld)),[])}}),y.of({name:`Julia`,extensions:[`jl`],load(){return O(()=>import(`./julia-CfBqSgho.js`).then(e=>Q(e.julia)),[])}}),y.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.kotlin)),[])}}),y.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return O(()=>import(`./livescript-CR8U3wM3.js`).then(e=>Q(e.liveScript)),[])}}),y.of({name:`Lua`,extensions:[`lua`],load(){return O(()=>import(`./lua-Bg4VZnNk.js`).then(e=>Q(e.lua)),[])}}),y.of({name:`mIRC`,extensions:[`mrc`],load(){return O(()=>import(`./mirc-CN27htLS.js`).then(e=>Q(e.mirc)),[])}}),y.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return O(()=>import(`./mathematica-BfPIWI-2.js`).then(e=>Q(e.mathematica)),[])}}),y.of({name:`Modelica`,extensions:[`mo`],load(){return O(()=>import(`./modelica-BhMDrNyP.js`).then(e=>Q(e.modelica)),[])}}),y.of({name:`MUMPS`,extensions:[`mps`],load(){return O(()=>import(`./mumps-q10v_7vy.js`).then(e=>Q(e.mumps)),[])}}),y.of({name:`Mbox`,extensions:[`mbox`],load(){return O(()=>import(`./mbox-BJBtIzYn.js`).then(e=>Q(e.mbox)),[])}}),y.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return O(()=>import(`./nginx-B3xldx-W.js`).then(e=>Q(e.nginx)),[])}}),y.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return O(()=>import(`./nsis-DbrGokpL.js`).then(e=>Q(e.nsis)),__vite__mapDeps([25,23]))}}),y.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return O(()=>import(`./ntriples--7wOxqgF.js`).then(e=>Q(e.ntriples)),[])}}),y.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.objectiveC)),[])}}),y.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.objectiveCpp)),[])}}),y.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return O(()=>import(`./mllike-Bk45LYJs.js`).then(e=>Q(e.oCaml)),[])}}),y.of({name:`Octave`,extensions:[`m`],load(){return O(()=>import(`./octave-1xDlNsHK.js`).then(e=>Q(e.octave)),[])}}),y.of({name:`Oz`,extensions:[`oz`],load(){return O(()=>import(`./oz-BjT3jK8F.js`).then(e=>Q(e.oz)),[])}}),y.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return O(()=>import(`./pascal-BPtkfU66.js`).then(e=>Q(e.pascal)),[])}}),y.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return O(()=>import(`./perl-DTi_Gu_W.js`).then(e=>Q(e.perl)),[])}}),y.of({name:`Pig`,extensions:[`pig`],load(){return O(()=>import(`./pig-WgPxIDtX.js`).then(e=>Q(e.pig)),[])}}),y.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return O(()=>import(`./powershell-DRMXCHuF.js`).then(e=>Q(e.powerShell)),[])}}),y.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return O(()=>import(`./properties-BmWTtUTd.js`).then(e=>Q(e.properties)),[])}}),y.of({name:`ProtoBuf`,extensions:[`proto`],load(){return O(()=>import(`./protobuf-DWkEBtMs.js`).then(e=>Q(e.protobuf)),[])}}),y.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return O(()=>import(`./pug-aQNhkzLr.js`).then(e=>Q(e.pug)),__vite__mapDeps([26,27]))}}),y.of({name:`Puppet`,extensions:[`pp`],load(){return O(()=>import(`./puppet-D_Fwwei_.js`).then(e=>Q(e.puppet)),[])}}),y.of({name:`Q`,extensions:[`q`],load(){return O(()=>import(`./q-CBhhTF3v.js`).then(e=>Q(e.q)),[])}}),y.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return O(()=>import(`./r-C9LQ8gef.js`).then(e=>Q(e.r)),[])}}),y.of({name:`RPM Changes`,load(){return O(()=>import(`./rpm-X0uOxMxY.js`).then(e=>Q(e.rpmChanges)),[])}}),y.of({name:`RPM Spec`,extensions:[`spec`],load(){return O(()=>import(`./rpm-X0uOxMxY.js`).then(e=>Q(e.rpmSpec)),[])}}),y.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return O(()=>import(`./ruby-C47yS3tR.js`).then(e=>Q(e.ruby)),[])}}),y.of({name:`SAS`,extensions:[`sas`],load(){return O(()=>import(`./sas-B1FBIZ4F.js`).then(e=>Q(e.sas)),[])}}),y.of({name:`Scala`,extensions:[`scala`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.scala)),[])}}),y.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return O(()=>import(`./scheme-BNyhth_j.js`).then(e=>Q(e.scheme)),[])}}),y.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return O(()=>import(`./shell-5WXBrNPS.js`).then(e=>Q(e.shell)),[])}}),y.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return O(()=>import(`./sieve-D1Disq_M.js`).then(e=>Q(e.sieve)),[])}}),y.of({name:`Smalltalk`,extensions:[`st`],load(){return O(()=>import(`./smalltalk-sYJEN366.js`).then(e=>Q(e.smalltalk)),[])}}),y.of({name:`Solr`,load(){return O(()=>import(`./solr-C4NTsT9q.js`).then(e=>Q(e.solr)),[])}}),y.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return O(()=>import(`./mllike-Bk45LYJs.js`).then(e=>Q(e.sml)),[])}}),y.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return O(()=>import(`./sparql-BUDcgvyA.js`).then(e=>Q(e.sparql)),[])}}),y.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return O(()=>import(`./spreadsheet-Cc9aoY1X.js`).then(e=>Q(e.spreadsheet)),[])}}),y.of({name:`Squirrel`,extensions:[`nut`],load(){return O(()=>import(`./clike-DBtGfPmP.js`).then(e=>Q(e.squirrel)),[])}}),y.of({name:`Stylus`,extensions:[`styl`],load(){return O(()=>import(`./stylus-gypP4Wbw.js`).then(e=>Q(e.stylus)),[])}}),y.of({name:`Swift`,extensions:[`swift`],load(){return O(()=>import(`./swift-B3wDQDLW.js`).then(e=>Q(e.swift)),[])}}),y.of({name:`sTeX`,load(){return O(()=>import(`./stex-QOxlzChr.js`).then(e=>Q(e.stex)),[])}}),y.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return O(()=>import(`./stex-QOxlzChr.js`).then(e=>Q(e.stex)),[])}}),y.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return O(()=>import(`./verilog-BQwnhnkI.js`).then(e=>Q(e.verilog)),[])}}),y.of({name:`Tcl`,extensions:[`tcl`],load(){return O(()=>import(`./tcl-BrLMXonE.js`).then(e=>Q(e.tcl)),[])}}),y.of({name:`Textile`,extensions:[`textile`],load(){return O(()=>import(`./textile-3OdJWGLP.js`).then(e=>Q(e.textile)),[])}}),y.of({name:`TiddlyWiki`,load(){return O(()=>import(`./tiddlywiki-CmXBv0bH.js`).then(e=>Q(e.tiddlyWiki)),[])}}),y.of({name:`Tiki wiki`,load(){return O(()=>import(`./tiki-DH9217vp.js`).then(e=>Q(e.tiki)),[])}}),y.of({name:`TOML`,extensions:[`toml`],load(){return O(()=>import(`./toml-BbNXaVxN.js`).then(e=>Q(e.toml)),[])}}),y.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return O(()=>import(`./troff-B3-4D8jV.js`).then(e=>Q(e.troff)),[])}}),y.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return O(()=>import(`./ttcn-T6YAhFaa.js`).then(e=>Q(e.ttcn)),[])}}),y.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return O(()=>import(`./ttcn-cfg-B2HBoHuP.js`).then(e=>Q(e.ttcnCfg)),[])}}),y.of({name:`Turtle`,extensions:[`ttl`],load(){return O(()=>import(`./turtle-DWZbcJ3Q.js`).then(e=>Q(e.turtle)),[])}}),y.of({name:`Web IDL`,extensions:[`webidl`],load(){return O(()=>import(`./webidl-ClkPG1IF.js`).then(e=>Q(e.webIDL)),[])}}),y.of({name:`VB.NET`,extensions:[`vb`],load(){return O(()=>import(`./vb-B2tgJzbE.js`).then(e=>Q(e.vb)),[])}}),y.of({name:`VBScript`,extensions:[`vbs`],load(){return O(()=>import(`./vbscript-CdcLDZO3.js`).then(e=>Q(e.vbScript)),[])}}),y.of({name:`Velocity`,extensions:[`vtl`],load(){return O(()=>import(`./velocity-BNg1Q2g9.js`).then(e=>Q(e.velocity)),[])}}),y.of({name:`Verilog`,extensions:[`v`],load(){return O(()=>import(`./verilog-BQwnhnkI.js`).then(e=>Q(e.verilog)),[])}}),y.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return O(()=>import(`./vhdl-DMlpjilm.js`).then(e=>Q(e.vhdl)),[])}}),y.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return O(()=>import(`./xquery-ChetrTQb.js`).then(e=>Q(e.xQuery)),[])}}),y.of({name:`Yacas`,extensions:[`ys`],load(){return O(()=>import(`./yacas-eBln9l6K.js`).then(e=>Q(e.yacas)),[])}}),y.of({name:`Z80`,extensions:[`z80`],load(){return O(()=>import(`./z80-Bu1e9FlK.js`).then(e=>Q(e.z80)),[])}}),y.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return O(()=>import(`./mscgen-CiE_ZxvV.js`).then(e=>Q(e.mscgen)),[])}}),y.of({name:`Xù`,extensions:[`xu`],load(){return O(()=>import(`./mscgen-CiE_ZxvV.js`).then(e=>Q(e.xu)),[])}}),y.of({name:`MsGenny`,extensions:[`msgenny`],load(){return O(()=>import(`./mscgen-CiE_ZxvV.js`).then(e=>Q(e.msgenny)),[])}}),y.of({name:`Vue`,extensions:[`vue`],load(){return O(()=>import(`./dist-y5XhVIrr.js`).then(e=>e.vue()),__vite__mapDeps([28,1,7,2,4,5,8]))}}),y.of({name:`Angular Template`,load(){return O(()=>import(`./dist-ekmOAsAL.js`).then(e=>e.angular()),__vite__mapDeps([29,1,7,2,4,5,8]))}})],bo=999,xo=`xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"`,So={previous:`<svg ${xo}><path d="M4 10l4-4 4 4"/></svg>`,next:`<svg ${xo}><path d="M4 6l4 4 4-4"/></svg>`,close:`<svg ${xo}><path d="M4.5 4.5l7 7M11.5 4.5l-7 7"/></svg>`};function Co(e,t,n){let r=document.createElement(`button`);return r.type=`button`,r.className=`cm-find-button`,r.setAttribute(`aria-label`,t),r.title=t,r.innerHTML=So[e],r.addEventListener(`mousedown`,e=>e.preventDefault()),r.addEventListener(`click`,n),r}function wo(e,t){if(!t.search||!t.valid)return``;let{from:n,to:r}=e.state.selection.main,i=0,a=0,o=t.getCursor(e.state);for(let e=o.next();!e.done;e=o.next())if(i++,e.value.from===n&&e.value.to===r&&(a=i),i>bo)return a?`${a}/${bo}+`:`${bo}+`;return i?a?`${a}/${i}`:String(i):k(`无结果`,`No results`)}function To(e){let t=document.createElement(`div`);t.className=`cm-find`,t.setAttribute(`role`,`search`);let n=document.createElement(`input`);n.className=`cm-find-input`,n.type=`text`,n.spellcheck=!1,n.placeholder=k(`查找`,`Find`),n.setAttribute(`aria-label`,k(`在文件中查找`,`Find in file`)),n.setAttribute(`main-field`,`true`),n.value=ya(e.state).search;let r=document.createElement(`span`);r.className=`cm-find-count`,r.setAttribute(`aria-live`,`polite`);let i=()=>{r.textContent=wo(e,ya(e.state))},a=t=>{t?Ea(e):Ta(e)};return n.addEventListener(`input`,()=>{let t=new ca({...ya(e.state),search:n.value});if(e.dispatch({effects:q.of(t)}),!t.search||!t.valid)return;let r=e.state.selection.main.from,i=t.getCursor(e.state,r).next(),a=i.done?t.getCursor(e.state,0,r).next():i;a.done||e.dispatch({selection:{anchor:a.value.from,head:a.value.to},scrollIntoView:!0,userEvent:`select.search`})}),n.addEventListener(`keydown`,t=>{t.key===`Enter`?(t.preventDefault(),a(t.shiftKey)):t.key===`Escape`&&(t.preventDefault(),Ia(e),e.focus())}),t.append(n,r,Co(`previous`,k(`上一个匹配(Shift+Enter)`,`Previous match (Shift+Enter)`),()=>a(!0)),Co(`next`,k(`下一个匹配(Enter)`,`Next match (Enter)`),()=>a(!1)),Co(`close`,k(`关闭(Esc)`,`Close (Esc)`),()=>{Ia(e),e.focus()})),i(),{dom:t,top:!0,mount(){n.focus(),n.select()},update(e){let t=ya(e.state);t.search!==n.value&&e.transactions.some(e=>e.effects.some(e=>e.is(q)))&&(n.value=t.search),(e.docChanged||e.selectionSet||t!==ya(e.startState))&&i()}}}var Eo=m.theme({".cm-panels.cm-panels-top":{position:`absolute`,top:`8px`,right:`16px`,left:`auto`,border:`none`,backgroundColor:`transparent`,zIndex:`300`},".cm-find":{display:`flex`,alignItems:`center`,gap:`2px`,boxSizing:`border-box`,width:`min(340px, calc(100vw - 48px))`,padding:`6px`,border:`0.5px solid var(--dsw-alias-border-l2)`,borderRadius:`var(--dsw-radius-md)`,backgroundColor:`var(--dsw-menu-surface-fill, var(--dsw-alias-bg-layer-1))`,boxShadow:`var(--dsw-elevation-panel)`,fontFamily:`var(--ds-font-family, inherit)`,fontSize:`12.5px`,color:`var(--dsw-alias-label-primary)`},".cm-find-input":{flex:`1`,minWidth:`0`,height:`28px`,boxSizing:`border-box`,margin:`0 4px 0 0`,padding:`0 10px`,border:`0.5px solid var(--dsw-alias-border-l3)`,borderRadius:`var(--dsw-radius-sm)`,backgroundColor:`var(--dsw-alias-bg-base, transparent)`,color:`inherit`,font:`inherit`,outline:`none`},".cm-find-input:focus":{borderColor:`var(--dsw-alias-border-l1)`},".cm-find-input::placeholder":{color:`var(--dsw-alias-label-tertiary)`},".cm-find-count":{flex:`none`,minWidth:`0`,padding:`0 6px 0 2px`,color:`var(--dsw-alias-label-tertiary)`,fontSize:`12px`,fontVariantNumeric:`tabular-nums`,whiteSpace:`nowrap`},".cm-find-count:empty":{display:`none`},".cm-find-button":{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,width:`28px`,height:`28px`,padding:`0`,border:`0`,borderRadius:`var(--dsw-radius-sm)`,backgroundColor:`transparent`,color:`var(--dsw-alias-label-secondary)`,cursor:`pointer`},".cm-find-button:hover":{backgroundColor:`var(--dsw-alias-interactive-bg-hover)`},".cm-find-button:focus-visible":{outline:`2px solid var(--dsw-alias-label-primary)`,outlineOffset:`-2px`},".cm-searchMatch":{backgroundColor:`color-mix(in srgb, var(--dsw-alias-state-warn-label) 22%, transparent)`,outline:`none`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:`color-mix(in srgb, var(--dsw-alias-state-warn-label) 48%, transparent)`}}),Do=[sa({top:!0,createPanel:To}),Eo],Oo=e({createCodeEditor:()=>jo}),ko=je.define([{tag:[g.keyword,g.controlKeyword,g.operatorKeyword,g.definitionKeyword,g.moduleKeyword,g.modifier,g.self,g.tagName],color:`var(--shiki-token-keyword)`},{tag:[g.string,g.special(g.string),g.regexp,g.character,g.inserted],color:`var(--shiki-token-string)`},{tag:[g.comment,g.lineComment,g.blockComment,g.docComment,g.meta],color:`var(--shiki-token-comment)`,fontStyle:`italic`},{tag:[g.number,g.bool,g.null,g.atom,g.constant(g.name),g.standard(g.name),g.typeName,g.className,g.namespace,g.unit],color:`var(--shiki-token-constant)`},{tag:[g.function(g.variableName),g.function(g.propertyName),g.macroName,g.labelName],color:`var(--shiki-token-function)`},{tag:[g.attributeName,g.local(g.variableName),g.special(g.variableName)],color:`var(--shiki-token-parameter)`},{tag:[g.punctuation,g.bracket,g.operator,g.separator,g.angleBracket],color:`var(--shiki-token-punctuation)`},{tag:[g.link,g.url],color:`var(--shiki-token-link)`,textDecoration:`underline`},{tag:g.heading,color:`var(--shiki-token-keyword)`,fontWeight:`600`},{tag:g.emphasis,fontStyle:`italic`},{tag:g.strong,fontWeight:`600`},{tag:g.strikethrough,textDecoration:`line-through`},{tag:[g.invalid,g.deleted],color:`var(--dsw-alias-state-error-primary)`}]),Ao=m.theme({"&":{height:`100%`,color:`var(--shiki-foreground)`,backgroundColor:`var(--shiki-background)`,fontSize:`12.5px`},"&.cm-focused":{outline:`none`},".cm-scroller":{fontFamily:`var(--ds-font-family-code)`,lineHeight:`1.6`,overflow:`auto`},".cm-content":{padding:`10px 0`,caretColor:`var(--dsw-alias-label-primary)`},".cm-cursor, .cm-dropCursor":{borderLeftColor:`var(--dsw-alias-label-primary)`},".cm-gutters":{backgroundColor:`var(--shiki-background)`,color:`var(--dsw-alias-label-tertiary)`,border:`none`},".cm-lineNumbers .cm-gutterElement":{padding:`0 10px 0 14px`,minWidth:`3ch`},".cm-activeLine":{backgroundColor:`color-mix(in srgb, var(--dsw-alias-label-primary) 4%, transparent)`},".cm-activeLineGutter":{backgroundColor:`transparent`,color:`var(--dsw-alias-label-secondary)`},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, ::selection":{backgroundColor:`color-mix(in srgb, var(--dsw-static-blue-500, #3b82f6) 22%, transparent)`},".cm-selectionMatch":{backgroundColor:`color-mix(in srgb, var(--dsw-alias-state-warn-label) 18%, transparent)`},".cm-matchingBracket, &.cm-focused .cm-matchingBracket":{backgroundColor:`color-mix(in srgb, var(--dsw-alias-label-primary) 10%, transparent)`,outline:`none`},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`var(--dsw-alias-label-tertiary)`},".cm-panels":{backgroundColor:`var(--dsw-alias-bg-layer-1, var(--shiki-background))`,color:`var(--dsw-alias-label-primary)`},".cm-panels.cm-panels-bottom":{borderTop:`0.5px solid var(--dsw-alias-border-l3)`},".cm-tooltip":{border:`0.5px solid var(--dsw-alias-border-l2)`,backgroundColor:`var(--dsw-alias-bg-layer-1, var(--shiki-background))`}});function jo(e,t){let r=new Ne,i=document.querySelector(`meta[name="pi-style-nonce"]`)?.content,a=!1,o=new m({parent:e,state:ge.create({doc:t.text,extensions:[vo,Do,ue.of([Ri]),ye.highest(ue.of([{key:`Mod-s`,preventDefault:!0,run:()=>(t.onSave(),!0)}])),n(ko),Ao,r.of([]),...i?[m.cspNonce.of(i)]:[],m.contentAttributes.of({"aria-label":t.label}),m.updateListener.of(e=>{e.docChanged&&!a&&t.onChange(e.state.doc.toString())})]})}),s=!1;return y.matchFilename(yo,t.filename)?.load().then(e=>{s||o.dispatch({effects:r.reconfigure(e)})}).catch(()=>{}),{setText(e){if(e!==o.state.doc.toString()){a=!0;try{o.dispatch({changes:{from:0,to:o.state.doc.length,insert:e}})}finally{a=!1}}},reveal(e){let t=o.state.doc.line(Math.min(Math.max(1,e),o.state.doc.lines));o.dispatch({selection:{anchor:t.from,head:t.to},effects:m.scrollIntoView(t.from,{y:`center`})})},focus:()=>o.focus(),destroy(){s=!0,o.destroy()}}}export{Xt as a,jo as createCodeEditor,We as i,Be as n,Ue as r,Oo as t};
4
+ //# debugId=294ced4e-5fe5-43ae-99ee-b85dec46b3e8
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ac653ac4-1db7-48b2-a3d2-888b8b152cdb`,e._sentryDebugIdIdentifier=`sentry-dbid-ac653ac4-1db7-48b2-a3d2-888b8b152cdb`)}catch{}})();var e=`error`;function t(e){return RegExp(`^((`+e.join(`)|(`)+`))\\b`)}var n=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,r=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,i=/^[_A-Za-z$][_A-Za-z$0-9]*/,a=/^@[_A-Za-z$][_A-Za-z$0-9]*/,o=t([`and`,`or`,`not`,`is`,`isnt`,`in`,`instanceof`,`typeof`]),s=[`for`,`while`,`loop`,`if`,`unless`,`else`,`switch`,`try`,`catch`,`finally`,`class`],c=t(s.concat([`break`,`by`,`continue`,`debugger`,`delete`,`do`,`in`,`of`,`new`,`return`,`then`,`this`,`@`,`throw`,`when`,`until`,`extends`]));s=t(s);var l=/^('{3}|\"{3}|['\"])/,u=/^(\/{3}|\/)/,d=t([`Infinity`,`NaN`,`undefined`,`null`,`true`,`false`,`on`,`off`,`yes`,`no`]);function f(t,s){if(t.sol()){s.scope.align===null&&(s.scope.align=!1);var f=s.scope.offset;if(t.eatSpace()){var h=t.indentation();return h>f&&s.scope.type==`coffee`?`indent`:h<f?`dedent`:null}f>0&&g(t,s)}if(t.eatSpace())return null;var _=t.peek();if(t.match(`####`))return t.skipToEnd(),`comment`;if(t.match(`###`))return s.tokenize=m,s.tokenize(t,s);if(_===`#`)return t.skipToEnd(),`comment`;if(t.match(/^-?[0-9\.]/,!1)){var v=!1;if(t.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(v=!0),t.match(/^-?\d+\.\d*/)&&(v=!0),t.match(/^-?\.\d+/)&&(v=!0),v)return t.peek()==`.`&&t.backUp(1),`number`;var y=!1;if(t.match(/^-?0x[0-9a-f]+/i)&&(y=!0),t.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),t.match(/^-?0(?![\dx])/i)&&(y=!0),y)return`number`}if(t.match(l))return s.tokenize=p(t.current(),!1,`string`),s.tokenize(t,s);if(t.match(u)){if(t.current()!=`/`||t.match(/^.*\//,!1))return s.tokenize=p(t.current(),!0,`string.special`),s.tokenize(t,s);t.backUp(1)}return t.match(n)||t.match(o)?`operator`:t.match(r)?`punctuation`:t.match(d)?`atom`:t.match(a)||s.prop&&t.match(i)?`property`:t.match(c)?`keyword`:t.match(i)?`variable`:(t.next(),e)}function p(e,t,n){return function(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\/\\]/),r.eat(`\\`)){if(r.next(),t&&r.eol())return n}else if(r.match(e))return i.tokenize=f,n;else r.eat(/['"\/]/);return t&&(i.tokenize=f),n}}function m(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match(`###`)){t.tokenize=f;break}e.eatWhile(`#`)}return`comment`}function h(e,t,n=`coffee`){for(var r=0,i=!1,a=null,o=t.scope;o;o=o.prev)if(o.type===`coffee`||o.type==`}`){r=o.offset+e.indentUnit;break}n===`coffee`?t.scope.align&&(t.scope.align=!1):(i=null,a=e.column()+e.current().length),t.scope={offset:r,type:n,prev:t.scope,align:i,alignOffset:a}}function g(e,t){if(t.scope.prev){if(t.scope.type===`coffee`){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}function _(t,n){var r=n.tokenize(t,n),i=t.current();i===`return`&&(n.dedent=!0),((i===`->`||i===`=>`)&&t.eol()||r===`indent`)&&h(t,n);var a=`[({`.indexOf(i);if(a!==-1&&h(t,n,`])}`.slice(a,a+1)),s.exec(i)&&h(t,n),i==`then`&&g(t,n),r===`dedent`&&g(t,n))return e;if(a=`])}`.indexOf(i),a!==-1){for(;n.scope.type==`coffee`&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==i&&(n.scope=n.scope.prev)}return n.dedent&&t.eol()&&(n.scope.type==`coffee`&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),r==`indent`||r==`dedent`?null:r}var v={name:`coffeescript`,startState:function(){return{tokenize:f,scope:{offset:0,type:`coffee`,prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=t.scope.align===null&&t.scope;n&&e.sol()&&(n.align=!1);var r=_(e,t);return r&&r!=`comment`&&(n&&(n.align=!0),t.prop=r==`punctuation`&&e.current()==`.`),r},indent:function(e,t){if(e.tokenize!=f)return 0;var n=e.scope,r=t&&`])}`.indexOf(t.charAt(0))>-1;if(r)for(;n.type==`coffee`&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-+!!i:(i?n.prev:n).offset},languageData:{commentTokens:{line:`#`}}};export{v as coffeeScript};
2
+ //# debugId=ac653ac4-1db7-48b2-a3d2-888b8b152cdb
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b68dd0a4-5763-4068-b0be-3b96adb594d0`,e._sentryDebugIdIdentifier=`sentry-dbid-b68dd0a4-5763-4068-b0be-3b96adb594d0`)}catch{}})();var e=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,t=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,n=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,r=/[^\s'`,@()\[\]";]/,i;function a(e){for(var t;t=e.next();)if(t==`\\`)e.next();else if(!r.test(t)){e.backUp(1);break}return e.current()}function o(r,o){if(r.eatSpace())return i=`ws`,null;if(r.match(n))return`number`;var l=r.next();if(l==`\\`&&(l=r.next()),l==`"`)return(o.tokenize=s)(r,o);if(l==`(`)return i=`open`,`bracket`;if(l==`)`)return i=`close`,`bracket`;if(l==`;`)return r.skipToEnd(),i=`ws`,`comment`;if(/['`,@]/.test(l))return null;if(l==`|`)return r.skipTo(`|`)?(r.next(),`variableName`):(r.skipToEnd(),`error`);if(l==`#`){var l=r.next();return l==`(`?(i=`open`,`bracket`):/[+\-=\.']/.test(l)||/\d/.test(l)&&r.match(/^\d*#/)?null:l==`|`?(o.tokenize=c)(r,o):l==`:`?(a(r),`meta`):l==`\\`?(r.next(),a(r),`string.special`):`error`}var u=a(r);return u==`.`?null:(i=`symbol`,u==`nil`||u==`t`||u.charAt(0)==`:`?`atom`:o.lastType==`open`&&(e.test(u)||t.test(u))?`keyword`:u.charAt(0)==`&`?`variableName.special`:`variableName`)}function s(e,t){for(var n=!1,r;r=e.next();){if(r==`"`&&!n){t.tokenize=o;break}n=!n&&r==`\\`}return`string`}function c(e,t){for(var n,r;n=e.next();){if(n==`#`&&r==`|`){t.tokenize=o;break}r=n}return i=`ws`,`comment`}var l={name:`commonlisp`,startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:o}},token:function(e,n){e.sol()&&typeof n.ctx.indentTo!=`number`&&(n.ctx.indentTo=n.ctx.start+1),i=null;var r=n.tokenize(e,n);return i!=`ws`&&(n.ctx.indentTo==null?i==`symbol`&&t.test(e.current())?n.ctx.indentTo=n.ctx.start+e.indentUnit:n.ctx.indentTo=`next`:n.ctx.indentTo==`next`&&(n.ctx.indentTo=e.column()),n.lastType=i),i==`open`?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:i==`close`&&(n.ctx=n.ctx.prev||n.ctx),r},indent:function(e){var t=e.ctx.indentTo;return typeof t==`number`?t:e.ctx.start+1},languageData:{commentTokens:{line:`;;`,block:{open:`#|`,close:`|#`}},closeBrackets:{brackets:[`(`,`[`,`{`,`"`]}}};export{l as commonLisp};
2
+ //# debugId=b68dd0a4-5763-4068-b0be-3b96adb594d0
@@ -0,0 +1,2 @@
1
+ (function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c3eb1459-7506-415d-a622-132d038bcf62`,e._sentryDebugIdIdentifier=`sentry-dbid-c3eb1459-7506-415d-a622-132d038bcf62`)}catch{}})();function e(e,t){return RegExp((t?``:`^`)+`(?:`+e.join(`|`)+`)`+(t?`$`:`\\b`))}function t(e,t,n){return n.tokenize.push(e),e(t,n)}var n=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,r=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,i=/^(?:\[\][?=]?)/,a=/^(?:\.(?:\.{2})?|->|[?:])/,o=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,s=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,c=e(`abstract.alias.as.asm.begin.break.case.class.def.do.else.elsif.end.ensure.enum.extend.for.fun.if.include.instance_sizeof.lib.macro.module.next.of.out.pointerof.private.protected.rescue.return.require.select.sizeof.struct.super.then.type.typeof.uninitialized.union.unless.until.when.while.with.yield.__DIR__.__END_LINE__.__FILE__.__LINE__`.split(`.`)),l=e([`true`,`false`,`nil`,`self`]),u=e([`def`,`fun`,`macro`,`class`,`module`,`struct`,`lib`,`enum`,`union`,`do`,`for`]),d=e([`if`,`unless`,`case`,`while`,`until`,`begin`,`then`]),f=[`end`,`else`,`elsif`,`rescue`,`ensure`],p=e(f),m=[`\\)`,`\\}`,`\\]`],h=RegExp(`^(?:`+m.join(`|`)+`)$`),g={def:S,fun:S,macro:x,class:C,module:C,struct:C,lib:C,enum:C,union:C},_={"[":`]`,"{":`}`,"(":`)`,"<":`>`};function v(e,f){if(e.eatSpace())return null;if(f.lastToken!=`\\`&&e.match(`{%`,!1))return t(b(`%`,`%`),e,f);if(f.lastToken!=`\\`&&e.match(`{{`,!1))return t(b(`{`,`}`),e,f);if(e.peek()==`#`)return e.skipToEnd(),`comment`;var p;if(e.match(o))return e.eat(/[?!]/),p=e.current(),e.eat(`:`)?`atom`:f.lastToken==`.`?`property`:c.test(p)?(u.test(p)?p==`fun`&&f.blocks.indexOf(`lib`)>=0||p==`def`&&f.lastToken==`abstract`||(f.blocks.push(p),f.currentIndent+=1):(f.lastStyle==`operator`||!f.lastStyle)&&d.test(p)?(f.blocks.push(p),f.currentIndent+=1):p==`end`&&(f.blocks.pop(),--f.currentIndent),g.hasOwnProperty(p)&&f.tokenize.push(g[p]),`keyword`):l.test(p)?`atom`:`variable`;if(e.eat(`@`))return e.peek()==`[`?t(y(`[`,`]`,`meta`),e,f):(e.eat(`@`),e.match(o)||e.match(s),`propertyName`);if(e.match(s))return`tag`;if(e.eat(`:`))return e.eat(`"`)?t(w(`"`,`atom`,!1),e,f):e.match(o)||e.match(s)||e.match(n)||e.match(r)||e.match(i)?`atom`:(e.eat(`:`),`operator`);if(e.eat(`"`))return t(w(`"`,`string`,!0),e,f);if(e.peek()==`%`){var m=`string`,h=!0,v;if(e.match(`%r`))m=`string.special`,v=e.next();else if(e.match(`%w`))h=!1,v=e.next();else if(e.match(`%q`))h=!1,v=e.next();else if(v=e.match(/^%([^\w\s=])/))v=v[1];else if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return`meta`;else if(e.eat(`%`))return`operator`;return _.hasOwnProperty(v)&&(v=_[v]),t(w(v,m,h),e,f)}return(p=e.match(/^<<-('?)([A-Z]\w*)\1/))?t(T(p[2],!p[1]),e,f):e.eat(`'`)?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat(`'`),`atom`):e.eat(`0`)?(e.eat(`x`)?e.match(/^[0-9a-fA-F_]+/):e.eat(`o`)?e.match(/^[0-7_]+/):e.eat(`b`)&&e.match(/^[01_]+/),`number`):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),`number`):e.match(n)?(e.eat(`=`),`operator`):e.match(r)||e.match(a)?`operator`:(p=e.match(/[({[]/,!1))?(p=p[0],t(y(p,_[p],null),e,f)):e.eat(`\\`)?(e.next(),`meta`):(e.next(),null)}function y(e,t,n,r){return function(i,a){if(!r&&i.match(e))return a.tokenize[a.tokenize.length-1]=y(e,t,n,!0),a.currentIndent+=1,n;var o=v(i,a);return i.current()===t&&(a.tokenize.pop(),--a.currentIndent,o=n),o}}function b(e,t,n){return function(r,i){return!n&&r.match(`{`+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=b(e,t,!0),`meta`):r.match(t+`}`)?(--i.currentIndent,i.tokenize.pop(),`meta`):v(r,i)}}function x(e,t){if(e.eatSpace())return null;var n;if(n=e.match(o)){if(n==`def`)return`keyword`;e.eat(/[?!]/)}return t.tokenize.pop(),`def`}function S(e,t){return e.eatSpace()?null:(e.match(o)?e.eat(/[!?]/):e.match(n)||e.match(r)||e.match(i),t.tokenize.pop(),`def`)}function C(e,t){return e.eatSpace()?null:(e.match(s),t.tokenize.pop(),`def`)}function w(e,t,n){return function(r,i){for(var a=!1;r.peek();)if(a)r.next(),a=!1;else{if(r.match(`{%`,!1))return i.tokenize.push(b(`%`,`%`)),t;if(r.match(`{{`,!1))return i.tokenize.push(b(`{`,`}`)),t;if(n&&r.match(`#{`,!1))return i.tokenize.push(y(`#{`,`}`,`meta`)),t;var o=r.next();if(o==e)return i.tokenize.pop(),t;a=n&&o==`\\`}return t}}function T(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),`string`;for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match(`{%`,!1))return r.tokenize.push(b(`%`,`%`)),`string`;if(n.match(`{{`,!1))return r.tokenize.push(b(`{`,`}`)),`string`;if(t&&n.match(`#{`,!1))return r.tokenize.push(y(`#{`,`}`,`meta`)),`string`;i=n.next()==`\\`&&t}return`string`}}var E={name:`crystal`,startState:function(){return{tokenize:[v],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&n!=`comment`&&(t.lastToken=r,t.lastStyle=n),n},indent:function(e,t,n){return t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,``),p.test(t)||h.test(t)?n.unit*(e.currentIndent-1):n.unit*e.currentIndent},languageData:{indentOnInput:e(m.concat(f),!0),commentTokens:{line:`#`}}};export{E as crystal};
2
+ //# debugId=c3eb1459-7506-415d-a622-132d038bcf62