@dronico/droni-kit 1.7.0 → 1.7.2

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 (184) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/droni-kit.cjs.js +1009 -1
  3. package/dist/droni-kit.css +1 -1
  4. package/dist/droni-kit.es.js +76246 -7
  5. package/dist/lib/userWorker.d.ts +1 -0
  6. package/package.json +2 -1
  7. package/src/lib/userWorker.ts +28 -0
  8. package/dist/abap-CrVaG5QI.cjs +0 -6
  9. package/dist/abap-D0Neqhq6.js +0 -1404
  10. package/dist/apex-B5LhxkeG.js +0 -332
  11. package/dist/apex-CGiaaokt.cjs +0 -6
  12. package/dist/assets/css.worker-DNgQEC96.js +0 -84
  13. package/dist/assets/editor.worker-BKD3YLiN.js +0 -12
  14. package/dist/assets/html.worker-B7xpmB-M.js +0 -461
  15. package/dist/assets/json.worker-td2JV8fN.js +0 -49
  16. package/dist/assets/ts.worker-CqZGdM85.js +0 -51334
  17. package/dist/azcli-BrBH0QTU.js +0 -74
  18. package/dist/azcli-CCWOS89X.cjs +0 -6
  19. package/dist/bat-BfzAov64.js +0 -106
  20. package/dist/bat-dplVPQ-_.cjs +0 -6
  21. package/dist/bicep-C3bCSWel.js +0 -108
  22. package/dist/bicep-Q9zrsOvk.cjs +0 -7
  23. package/dist/cameligo-Dr5j7v0u.cjs +0 -6
  24. package/dist/cameligo-sFL5plcd.js +0 -180
  25. package/dist/clojure-CfeExRz0.js +0 -767
  26. package/dist/clojure-DPJGbZtj.cjs +0 -6
  27. package/dist/coffee-CUV2cHk6.cjs +0 -6
  28. package/dist/coffee-Xws5K0WL.js +0 -238
  29. package/dist/cpp-CqOUEpxN.js +0 -395
  30. package/dist/cpp-DyuKq4fH.cjs +0 -6
  31. package/dist/csharp-DVLiBOZb.js +0 -332
  32. package/dist/csharp-d4dFAWKM.cjs +0 -6
  33. package/dist/csp-DVFp9bw5.js +0 -59
  34. package/dist/csp-Lc8LbON9.cjs +0 -6
  35. package/dist/css-D8IzNaWL.cjs +0 -8
  36. package/dist/css-DwARn2R6.js +0 -193
  37. package/dist/cssMode-BxawWP4c.js +0 -1577
  38. package/dist/cssMode-tfSu9n5R.cjs +0 -9
  39. package/dist/cypher-BuSmvVBI.cjs +0 -6
  40. package/dist/cypher-uY0Mffat.js +0 -269
  41. package/dist/dart-D27H-mX_.js +0 -287
  42. package/dist/dart-d-sZXKUo.cjs +0 -6
  43. package/dist/dockerfile-CmV85WZK.js +0 -136
  44. package/dist/dockerfile-OepqCuVM.cjs +0 -6
  45. package/dist/ecl--fKn7yzB.js +0 -462
  46. package/dist/ecl-GFERKf5i.cjs +0 -6
  47. package/dist/elixir-9a1efda4.cjs +0 -6
  48. package/dist/elixir-DUhH17ON.js +0 -575
  49. package/dist/flow9-B3Dx2LLe.js +0 -148
  50. package/dist/flow9-DsqME3Wt.cjs +0 -6
  51. package/dist/freemarker2-DlXlL0ru.cjs +0 -8
  52. package/dist/freemarker2-KNWT8NBX.js +0 -995
  53. package/dist/fsharp-DtZL2hil.cjs +0 -6
  54. package/dist/fsharp-SyqBfUAR.js +0 -223
  55. package/dist/go-B11TqKJA.cjs +0 -6
  56. package/dist/go-BbMR2tdT.js +0 -224
  57. package/dist/graphql-DDJE6tIl.js +0 -157
  58. package/dist/graphql-DrfV554J.cjs +0 -6
  59. package/dist/handlebars-0kfDCare.cjs +0 -6
  60. package/dist/handlebars-D-AmzO3L.js +0 -425
  61. package/dist/hcl-B0mc1H5M.cjs +0 -6
  62. package/dist/hcl-YBvpaUqf.js +0 -189
  63. package/dist/html-B1PoDZu9.cjs +0 -6
  64. package/dist/html-BuXWU8ll.js +0 -314
  65. package/dist/htmlMode-CMgNS0o0.js +0 -1587
  66. package/dist/htmlMode-Db5FK73j.cjs +0 -9
  67. package/dist/index-BGLtnN_f.js +0 -113179
  68. package/dist/index-DVZDWSQK.cjs +0 -1504
  69. package/dist/ini-Ct73dBtM.js +0 -77
  70. package/dist/ini-ymhBH5HG.cjs +0 -6
  71. package/dist/java-C_jlkwoG.js +0 -238
  72. package/dist/java-D4zTn_HA.cjs +0 -6
  73. package/dist/javascript-BluOHmb2.js +0 -76
  74. package/dist/javascript-Dd-uqNGl.cjs +0 -6
  75. package/dist/jsonMode-CN3U73n8.js +0 -2002
  76. package/dist/jsonMode-akczA384.cjs +0 -15
  77. package/dist/julia-D8WE5U1e.js +0 -517
  78. package/dist/julia-Dp7_oxTx.cjs +0 -6
  79. package/dist/kotlin-DN07yPPp.cjs +0 -6
  80. package/dist/kotlin-Zy9aq5yB.js +0 -259
  81. package/dist/less-CtJmsSxx.cjs +0 -7
  82. package/dist/less-sZ0iHtE8.js +0 -168
  83. package/dist/lexon-BH122-aN.cjs +0 -6
  84. package/dist/lexon-CsdNL29A.js +0 -163
  85. package/dist/liquid-BtsEcJB0.js +0 -246
  86. package/dist/liquid-CsxRe0ow.cjs +0 -6
  87. package/dist/lua-C2YJo0zw.js +0 -168
  88. package/dist/lua-DF1giqni.cjs +0 -6
  89. package/dist/m3-BSVLgJdx.cjs +0 -6
  90. package/dist/m3-CPLP40SG.js +0 -216
  91. package/dist/markdown-B1mf5e0R.js +0 -235
  92. package/dist/markdown-DqkJT7wW.cjs +0 -6
  93. package/dist/mdx-De3vCfHs.cjs +0 -6
  94. package/dist/mdx-GbFA03uL.js +0 -171
  95. package/dist/mips-DA33BZX1.js +0 -204
  96. package/dist/mips-HcsFOvwE.cjs +0 -6
  97. package/dist/msdax-CCYFIQsP.js +0 -381
  98. package/dist/msdax-D8wkgf9t.cjs +0 -6
  99. package/dist/mysql-D1qSUjcB.cjs +0 -6
  100. package/dist/mysql-hjmIjL-D.js +0 -884
  101. package/dist/objective-c-BcY1nQEp.cjs +0 -6
  102. package/dist/objective-c-RRCpEmqC.js +0 -189
  103. package/dist/pascal-C6VID8iC.cjs +0 -6
  104. package/dist/pascal-CeV8XfxB.js +0 -257
  105. package/dist/pascaligo-CtEkUcZy.cjs +0 -6
  106. package/dist/pascaligo-IEEGVJAJ.js +0 -170
  107. package/dist/perl-B5-QbHq_.js +0 -632
  108. package/dist/perl-BS5MoSit.cjs +0 -6
  109. package/dist/pgsql-DSQqzbUN.cjs +0 -6
  110. package/dist/pgsql-s6kqEJmi.js +0 -857
  111. package/dist/php-CWWqzOo8.js +0 -506
  112. package/dist/php-Dcbv8it3.cjs +0 -6
  113. package/dist/pla-BKGu3P8x.cjs +0 -6
  114. package/dist/pla-FSvb_YP_.js +0 -143
  115. package/dist/postiats-DQdscQXO.js +0 -913
  116. package/dist/postiats-lASv8P6N.cjs +0 -6
  117. package/dist/powerquery-BuqmBiPU.cjs +0 -6
  118. package/dist/powerquery-CtA5JA1I.js +0 -896
  119. package/dist/powershell-CtRTGCOm.cjs +0 -6
  120. package/dist/powershell-DglEq96N.js +0 -245
  121. package/dist/protobuf-BSepub3e.js +0 -426
  122. package/dist/protobuf-Dk87ns3u.cjs +0 -7
  123. package/dist/pug-B1847F4G.js +0 -408
  124. package/dist/pug-CVbk24PQ.cjs +0 -6
  125. package/dist/python-DWbCY_Xp.cjs +0 -6
  126. package/dist/python-ggxgHils.js +0 -307
  127. package/dist/qsharp-BSix4Z0w.cjs +0 -6
  128. package/dist/qsharp-D4i0Nqg9.js +0 -307
  129. package/dist/r-CSIGVqGj.cjs +0 -6
  130. package/dist/r-cdRigKxa.js +0 -249
  131. package/dist/razor-BEkgHfqS.js +0 -556
  132. package/dist/razor-DLYHYcrv.cjs +0 -6
  133. package/dist/redis-1SUKo9jD.cjs +0 -6
  134. package/dist/redis-D9MFxvE8.js +0 -308
  135. package/dist/redshift-BS1FVf13.cjs +0 -6
  136. package/dist/redshift-CmCnsvL-.js +0 -815
  137. package/dist/restructuredtext-CWy8J51t.js +0 -180
  138. package/dist/restructuredtext-DU-k0-PC.cjs +0 -6
  139. package/dist/ruby-WP-c36m5.js +0 -517
  140. package/dist/ruby-aigiByO4.cjs +0 -6
  141. package/dist/rust-Q9FLdYpu.js +0 -349
  142. package/dist/rust-adCJoS28.cjs +0 -6
  143. package/dist/sb-C54-JBGT.js +0 -121
  144. package/dist/sb-CiUR99st.cjs +0 -6
  145. package/dist/scala-CzbFImc5.js +0 -376
  146. package/dist/scala-Tb5I4vBh.cjs +0 -6
  147. package/dist/scheme-BMUadJWp.cjs +0 -6
  148. package/dist/scheme-BhfDmYN3.js +0 -114
  149. package/dist/scss-BICI8Lvl.cjs +0 -8
  150. package/dist/scss-CEmiBXpS.js +0 -268
  151. package/dist/shell-BUjduzW4.cjs +0 -6
  152. package/dist/shell-Bmc1VhG0.js +0 -227
  153. package/dist/solidity-C9Q2I8Hh.js +0 -1373
  154. package/dist/solidity-DFZoFjgL.cjs +0 -6
  155. package/dist/sophia-B_a5zu_Y.cjs +0 -6
  156. package/dist/sophia-jWa1UyKz.js +0 -205
  157. package/dist/sparql-C-N2tZtn.cjs +0 -6
  158. package/dist/sparql-CM7jctbc.js +0 -207
  159. package/dist/sql-CVdEafkq.cjs +0 -6
  160. package/dist/sql-WzihTkbg.js +0 -859
  161. package/dist/st-2HB7Hiwr.cjs +0 -6
  162. package/dist/st-6y7_3aup.js +0 -422
  163. package/dist/swift-k-0zxG_D.js +0 -318
  164. package/dist/swift-xGTYXUAm.cjs +0 -8
  165. package/dist/systemverilog-BaPbkNTu.cjs +0 -6
  166. package/dist/systemverilog-Pnr5_rIP.js +0 -582
  167. package/dist/tcl-SSKta9Un.cjs +0 -6
  168. package/dist/tcl-fNPXval8.js +0 -238
  169. package/dist/tsMode-C1l1tCfb.cjs +0 -16
  170. package/dist/tsMode-ZKX1PVjf.js +0 -895
  171. package/dist/twig-ByEpcNlL.cjs +0 -6
  172. package/dist/twig-L2MkztkV.js +0 -398
  173. package/dist/typescript-BdT4l6R6.js +0 -349
  174. package/dist/typescript-C3XJ8fQU.cjs +0 -6
  175. package/dist/typespec-Bxe2hBLx.cjs +0 -6
  176. package/dist/typespec-Cqqo-3Pt.js +0 -123
  177. package/dist/vb-B5YC2xN9.js +0 -378
  178. package/dist/vb-m8wPqU1B.cjs +0 -6
  179. package/dist/wgsl-B-_uRex7.js +0 -445
  180. package/dist/wgsl-CPwT7Vox.cjs +0 -303
  181. package/dist/xml-BmfyGshe.js +0 -101
  182. package/dist/xml-sg_Kz2JP.cjs +0 -6
  183. package/dist/yaml-BpMNYeJt.js +0 -212
  184. package/dist/yaml-CVqxp3pm.cjs +0 -6
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const jt=require("./index-DVZDWSQK.cjs");/*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var xt=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,yt=Object.getOwnPropertyNames,St=Object.prototype.hasOwnProperty,Vt=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of yt(r))!St.call(e,t)&&t!==i&&xt(e,t,{get:()=>r[t],enumerable:!(n=Pt(r,t))||n.enumerable});return e},Wt=(e,r,i)=>(Vt(e,r,"default"),i),f={};Wt(f,jt.monaco_editor_core_star);var Bt=2*60*1e3,vt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>Bt&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=f.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},fe;(function(e){function r(i){return typeof i=="string"}e.is=r})(fe||(fe={}));var Q;(function(e){function r(i){return typeof i=="string"}e.is=r})(Q||(Q={}));var de;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(de||(de={}));var B;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=r})(B||(B={}));var O;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=B.MAX_VALUE),t===Number.MAX_VALUE&&(t=B.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(O||(O={}));var m;(function(e){function r(n,t,o,s){if(a.uinteger(n)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:O.create(n,t),end:O.create(o,s)};if(O.is(n)&&O.is(t))return{start:n,end:t};throw new Error(`Range#create called with invalid arguments[${n}, ${t}, ${o}, ${s}]`)}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&O.is(t.start)&&O.is(t.end)}e.is=i})(m||(m={}));var H;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(H||(H={}));var ge;(function(e){function r(n,t,o,s){return{targetUri:n,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.targetRange)&&a.string(t.targetUri)&&m.is(t.targetSelectionRange)&&(m.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(ge||(ge={}));var Y;(function(e){function r(n,t,o,s){return{red:n,green:t,blue:o,alpha:s}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(Y||(Y={}));var pe;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&m.is(t.range)&&Y.is(t.color)}e.is=i})(pe||(pe={}));var ve;(function(e){function r(n,t,o){return{label:n,textEdit:t,additionalTextEdits:o}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||U.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,U.is))}e.is=i})(ve||(ve={}));var S;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(S||(S={}));var me;(function(e){function r(n,t,o,s,u,g){const c={startLine:n,endLine:t};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(g)&&(c.collapsedText=g),c}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(me||(me={}));var G;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&H.is(t.location)&&a.string(t.message)}e.is=i})(G||(G={}));var F;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(F||(F={}));var he;(function(e){e.Unnecessary=1,e.Deprecated=2})(he||(he={}));var _e;(function(e){function r(i){const n=i;return a.objectLiteral(n)&&a.string(n.href)}e.is=r})(_e||(_e={}));var z;(function(e){function r(n,t,o,s,u,g){let c={range:n,message:t};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(g)&&(c.relatedInformation=g),c}e.create=r;function i(n){var t;let o=n;return a.defined(o)&&m.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,G.is))}e.is=i})(z||(z={}));var T;(function(e){function r(n,t,...o){let s={title:n,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(T||(T={}));var U;(function(e){function r(o,s){return{range:o,newText:s}}e.replace=r;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function n(o){return{range:o,newText:""}}e.del=n;function t(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&m.is(s.range)}e.is=t})(U||(U={}));var Z;(function(e){function r(n,t,o){const s={label:n};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(Z||(Z={}));var j;(function(e){function r(i){const n=i;return a.string(n)}e.is=r})(j||(j={}));var ke;(function(e){function r(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=r;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function t(o){const s=o;return U.is(s)&&(Z.is(s.annotationId)||j.is(s.annotationId))}e.is=t})(ke||(ke={}));var K;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&re.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(K||(K={}));var C;(function(e){function r(n,t,o){let s={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(C||(C={}));var ee;(function(e){function r(n,t,o,s){let u={kind:"rename",oldUri:n,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=r;function i(n){let t=n;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(ee||(ee={}));var te;(function(e){function r(n,t,o){let s={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=r;function i(n){let t=n;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||j.is(t.annotationId))}e.is=i})(te||(te={}));var ne;(function(e){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(t=>a.string(t.kind)?C.is(t)||ee.is(t)||te.is(t):K.is(t)))}e.is=r})(ne||(ne={}));var be;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)}e.is=i})(be||(be={}));var we;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(we||(we={}));var re;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(re||(re={}));var Ae;(function(e){function r(n,t,o,s){return{uri:n,languageId:t,version:o,text:s}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(Ae||(Ae={}));var ie;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(i){const n=i;return n===e.PlainText||n===e.Markdown}e.is=r})(ie||(ie={}));var W;(function(e){function r(i){const n=i;return a.objectLiteral(i)&&ie.is(n.kind)&&a.string(n.value)}e.is=r})(W||(W={}));var h;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(h||(h={}));var oe;(function(e){e.PlainText=1,e.Snippet=2})(oe||(oe={}));var Ie;(function(e){e.Deprecated=1})(Ie||(Ie={}));var Ee;(function(e){function r(n,t,o){return{newText:n,insert:t,replace:o}}e.create=r;function i(n){const t=n;return t&&a.string(t.newText)&&m.is(t.insert)&&m.is(t.replace)}e.is=i})(Ee||(Ee={}));var Le;(function(e){e.asIs=1,e.adjustIndentation=2})(Le||(Le={}));var Oe;(function(e){function r(i){const n=i;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}e.is=r})(Oe||(Oe={}));var Re;(function(e){function r(i){return{label:i}}e.create=r})(Re||(Re={}));var Ne;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(Ne||(Ne={}));var X;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){const t=n;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(X||(X={}));var De;(function(e){function r(i){let n=i;return!!n&&a.objectLiteral(n)&&(W.is(n.contents)||X.is(n.contents)||a.typedArray(n.contents,X.is))&&(i.range===void 0||m.is(i.range))}e.is=r})(De||(De={}));var Me;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(Me||(Me={}));var Fe;(function(e){function r(i,n,...t){let o={label:i};return a.defined(n)&&(o.documentation=n),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=r})(Fe||(Fe={}));var V;(function(e){e.Text=1,e.Read=2,e.Write=3})(V||(V={}));var Te;(function(e){function r(i,n){let t={range:i};return a.number(n)&&(t.kind=n),t}e.create=r})(Te||(Te={}));var _;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(_||(_={}));var Ue;(function(e){e.Deprecated=1})(Ue||(Ue={}));var je;(function(e){function r(i,n,t,o,s){let u={name:i,kind:n,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=r})(je||(je={}));var xe;(function(e){function r(i,n,t,o){return o!==void 0?{name:i,kind:n,location:{uri:t,range:o}}:{name:i,kind:n,location:{uri:t}}}e.create=r})(xe||(xe={}));var Pe;(function(e){function r(n,t,o,s,u,g){let c={name:n,detail:t,kind:o,range:s,selectionRange:u};return g!==void 0&&(c.children=g),c}e.create=r;function i(n){let t=n;return t&&a.string(t.name)&&a.number(t.kind)&&m.is(t.range)&&m.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(Pe||(Pe={}));var ye;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(ye||(ye={}));var q;(function(e){e.Invoked=1,e.Automatic=2})(q||(q={}));var Se;(function(e){function r(n,t,o){let s={diagnostics:n};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=r;function i(n){let t=n;return a.defined(t)&&a.typedArray(t.diagnostics,z.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===q.Invoked||t.triggerKind===q.Automatic)}e.is=i})(Se||(Se={}));var Ve;(function(e){function r(n,t,o){let s={title:n},u=!0;return typeof t=="string"?(u=!1,s.kind=t):T.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=r;function i(n){let t=n;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,z.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||T.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||ne.is(t.edit))}e.is=i})(Ve||(Ve={}));var We;(function(e){function r(n,t){let o={range:n};return a.defined(t)&&(o.data=t),o}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.command)||T.is(t.command))}e.is=i})(We||(We={}));var Be;(function(e){function r(n,t){return{tabSize:n,insertSpaces:t}}e.create=r;function i(n){let t=n;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Be||(Be={}));var He;(function(e){function r(n,t,o){return{range:n,target:t,data:o}}e.create=r;function i(n){let t=n;return a.defined(t)&&m.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(He||(He={}));var ze;(function(e){function r(n,t){return{range:n,parent:t}}e.create=r;function i(n){let t=n;return a.objectLiteral(t)&&m.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(ze||(ze={}));var Xe;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Xe||(Xe={}));var qe;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(qe||(qe={}));var Je;(function(e){function r(i){const n=i;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=r})(Je||(Je={}));var $e;(function(e){function r(n,t){return{range:n,text:t}}e.create=r;function i(n){const t=n;return t!=null&&m.is(t.range)&&a.string(t.text)}e.is=i})($e||($e={}));var Qe;(function(e){function r(n,t,o){return{range:n,variableName:t,caseSensitiveLookup:o}}e.create=r;function i(n){const t=n;return t!=null&&m.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(Qe||(Qe={}));var Ye;(function(e){function r(n,t){return{range:n,expression:t}}e.create=r;function i(n){const t=n;return t!=null&&m.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ye||(Ye={}));var Ge;(function(e){function r(n,t){return{frameId:n,stoppedLocation:t}}e.create=r;function i(n){const t=n;return a.defined(t)&&m.is(n.stoppedLocation)}e.is=i})(Ge||(Ge={}));var se;(function(e){e.Type=1,e.Parameter=2;function r(i){return i===1||i===2}e.is=r})(se||(se={}));var ae;(function(e){function r(n){return{value:n}}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||W.is(t.tooltip))&&(t.location===void 0||H.is(t.location))&&(t.command===void 0||T.is(t.command))}e.is=i})(ae||(ae={}));var Ze;(function(e){function r(n,t,o){const s={position:n,label:t};return o!==void 0&&(s.kind=o),s}e.create=r;function i(n){const t=n;return a.objectLiteral(t)&&O.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,ae.is))&&(t.kind===void 0||se.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,U.is)&&(t.tooltip===void 0||a.string(t.tooltip)||W.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Ze||(Ze={}));var Ke;(function(e){function r(i){return{kind:"snippet",value:i}}e.createSnippet=r})(Ke||(Ke={}));var Ce;(function(e){function r(i,n,t,o){return{insertText:i,filterText:n,range:t,command:o}}e.create=r})(Ce||(Ce={}));var et;(function(e){function r(i){return{items:i}}e.create=r})(et||(et={}));var tt;(function(e){e.Invoked=0,e.Automatic=1})(tt||(tt={}));var nt;(function(e){function r(i,n){return{range:i,text:n}}e.create=r})(nt||(nt={}));var rt;(function(e){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}e.create=r})(rt||(rt={}));var it;(function(e){function r(i){const n=i;return a.objectLiteral(n)&&Q.is(n.uri)&&a.string(n.name)}e.is=r})(it||(it={}));var ot;(function(e){function r(o,s,u,g){return new Ht(o,s,u,g)}e.create=r;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function n(o,s){let u=o.getText(),g=t(s,(v,d)=>{let k=v.range.start.line-d.range.start.line;return k===0?v.range.start.character-d.range.start.character:k}),c=u.length;for(let v=g.length-1;v>=0;v--){let d=g[v],k=o.offsetAt(d.range.start),p=o.offsetAt(d.range.end);if(p<=c)u=u.substring(0,k)+d.newText+u.substring(p,u.length);else throw new Error("Overlapping edit");c=k}return u}e.applyEdits=n;function t(o,s){if(o.length<=1)return o;const u=o.length/2|0,g=o.slice(0,u),c=o.slice(u);t(g,s),t(c,s);let v=0,d=0,k=0;for(;v<g.length&&d<c.length;)s(g[v],c[d])<=0?o[k++]=g[v++]:o[k++]=c[d++];for(;v<g.length;)o[k++]=g[v++];for(;d<c.length;)o[k++]=c[d++];return o}})(ot||(ot={}));var Ht=class{constructor(e,r,i,n){this._uri=e,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(r,i)}return this._content}update(e,r){this._content=e.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],r=this._content,i=!0;for(let n=0;n<r.length;n++){i&&(e.push(n),i=!1);let t=r.charAt(n);i=t==="\r"||t===`
7
- `,t==="\r"&&n+1<r.length&&r.charAt(n+1)===`
8
- `&&n++}i&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),i=0,n=r.length;if(n===0)return O.create(0,e);for(;i<n;){let o=Math.floor((i+n)/2);r[o]>e?n=o:i=o+1}let t=i-1;return O.create(t,e-r[t])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let i=r[e.line],n=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)}get lineCount(){return this.getLineOffsets().length}},a;(function(e){const r=Object.prototype.toString;function i(p){return typeof p<"u"}e.defined=i;function n(p){return typeof p>"u"}e.undefined=n;function t(p){return p===!0||p===!1}e.boolean=t;function o(p){return r.call(p)==="[object String]"}e.string=o;function s(p){return r.call(p)==="[object Number]"}e.number=s;function u(p,N,J){return r.call(p)==="[object Number]"&&N<=p&&p<=J}e.numberRange=u;function g(p){return r.call(p)==="[object Number]"&&-2147483648<=p&&p<=2147483647}e.integer=g;function c(p){return r.call(p)==="[object Number]"&&0<=p&&p<=2147483647}e.uinteger=c;function v(p){return r.call(p)==="[object Function]"}e.func=v;function d(p){return p!==null&&typeof p=="object"}e.objectLiteral=d;function k(p,N){return Array.isArray(p)&&p.every(N)}e.typedArray=k})(a||(a={}));var mt=class{constructor(e,r,i){this._languageId=e,this._worker=r,this._disposables=[],this._listener=Object.create(null);const n=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{f.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(f.editor.onDidCreateModel(n)),this._disposables.push(f.editor.onWillDisposeModel(t)),this._disposables.push(f.editor.onDidChangeModelLanguage(o=>{t(o.model),n(o.model)})),this._disposables.push(i(o=>{f.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),n(s))})})),this._disposables.push({dispose:()=>{f.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),f.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,r){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const n=i.map(o=>Xt(e,o));let t=f.editor.getModel(e);t&&t.getLanguageId()===r&&f.editor.setModelMarkers(t,r,n)}).then(void 0,i=>{console.error(i)})}};function zt(e){switch(e){case F.Error:return f.MarkerSeverity.Error;case F.Warning:return f.MarkerSeverity.Warning;case F.Information:return f.MarkerSeverity.Info;case F.Hint:return f.MarkerSeverity.Hint;default:return f.MarkerSeverity.Info}}function Xt(e,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:zt(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}var ht=class{constructor(e,r){this._worker=e,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),R(r))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(r),u=new f.Range(r.lineNumber,s.startColumn,r.lineNumber,s.endColumn),g=o.items.map(c=>{const v={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:$t(c.command),range:u,kind:Jt(c.kind)};return c.textEdit&&(qt(c.textEdit)?v.range={insert:w(c.textEdit.insert),replace:w(c.textEdit.replace)}:v.range=w(c.textEdit.range),v.insertText=c.textEdit.newText),c.additionalTextEdits&&(v.additionalTextEdits=c.additionalTextEdits.map(x)),c.insertTextFormat===oe.Snippet&&(v.insertTextRules=f.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:o.isIncomplete,suggestions:g}})}};function R(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ce(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function w(e){if(e)return new f.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function qt(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Jt(e){const r=f.languages.CompletionItemKind;switch(e){case h.Text:return r.Text;case h.Method:return r.Method;case h.Function:return r.Function;case h.Constructor:return r.Constructor;case h.Field:return r.Field;case h.Variable:return r.Variable;case h.Class:return r.Class;case h.Interface:return r.Interface;case h.Module:return r.Module;case h.Property:return r.Property;case h.Unit:return r.Unit;case h.Value:return r.Value;case h.Enum:return r.Enum;case h.Keyword:return r.Keyword;case h.Snippet:return r.Snippet;case h.Color:return r.Color;case h.File:return r.File;case h.Reference:return r.Reference}return r.Property}function x(e){if(e)return{range:w(e.range),text:e.newText}}function $t(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var _t=class{constructor(e){this._worker=e}provideHover(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.doHover(n.toString(),R(r))).then(t=>{if(t)return{range:w(t.range),contents:Yt(t.contents)}})}};function Qt(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function st(e){return typeof e=="string"?{value:e}:Qt(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
9
- `+e.value+"\n```\n"}}function Yt(e){if(e)return Array.isArray(e)?e.map(st):[st(e)]}var Gt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDocumentHighlights(n.toString(),R(r))).then(t=>{if(t)return t.map(o=>({range:w(o.range),kind:Zt(o.kind)}))})}};function Zt(e){switch(e){case V.Read:return f.languages.DocumentHighlightKind.Read;case V.Write:return f.languages.DocumentHighlightKind.Write;case V.Text:return f.languages.DocumentHighlightKind.Text}return f.languages.DocumentHighlightKind.Text}var Kt=class{constructor(e){this._worker=e}provideDefinition(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDefinition(n.toString(),R(r))).then(t=>{if(t)return[kt(t)]})}};function kt(e){return{uri:f.Uri.parse(e.uri),range:w(e.range)}}var Ct=class{constructor(e){this._worker=e}provideReferences(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),R(r))).then(o=>{if(o)return o.map(kt)})}},en=class{constructor(e){this._worker=e}provideRenameEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),R(r),i)).then(o=>tn(o))}};function tn(e){if(!e||!e.changes)return;let r=[];for(let i in e.changes){const n=f.Uri.parse(i);for(let t of e.changes[i])r.push({resource:n,versionId:void 0,textEdit:{range:w(t.range),text:t.newText}})}return{edits:r}}var bt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentSymbols(i.toString())).then(n=>{if(n)return n.map(t=>nn(t)?wt(t):{name:t.name,detail:"",containerName:t.containerName,kind:At(t.kind),range:w(t.location.range),selectionRange:w(t.location.range),tags:[]})})}};function nn(e){return"children"in e}function wt(e){return{name:e.name,detail:e.detail??"",kind:At(e.kind),range:w(e.range),selectionRange:w(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(r=>wt(r))}}function At(e){let r=f.languages.SymbolKind;switch(e){case _.File:return r.File;case _.Module:return r.Module;case _.Namespace:return r.Namespace;case _.Package:return r.Package;case _.Class:return r.Class;case _.Method:return r.Method;case _.Property:return r.Property;case _.Field:return r.Field;case _.Constructor:return r.Constructor;case _.Enum:return r.Enum;case _.Interface:return r.Interface;case _.Function:return r.Function;case _.Variable:return r.Variable;case _.Constant:return r.Constant;case _.String:return r.String;case _.Number:return r.Number;case _.Boolean:return r.Boolean;case _.Array:return r.Array}return r.Function}var rn=class{constructor(e){this._worker=e}provideLinks(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentLinks(i.toString())).then(n=>{if(n)return{links:n.map(t=>({range:w(t.range),url:t.target}))}})}},It=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.format(n.toString(),null,Lt(r)).then(o=>{if(!(!o||o.length===0))return o.map(x)}))}},Et=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),ce(r),Lt(i)).then(s=>{if(!(!s||s.length===0))return s.map(x)}))}};function Lt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Ot=class{constructor(e){this._worker=e}provideDocumentColors(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentColors(i.toString())).then(n=>{if(n)return n.map(t=>({color:t.color,range:w(t.range)}))})}provideColorPresentations(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getColorPresentations(n.toString(),r.color,ce(r.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=x(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(x)),s})})}},Rt=class{constructor(e){this._worker=e}provideFoldingRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getFoldingRanges(n.toString(),r)).then(t=>{if(t)return t.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=on(o.kind)),s})})}};function on(e){switch(e){case S.Comment:return f.languages.FoldingRangeKind.Comment;case S.Imports:return f.languages.FoldingRangeKind.Imports;case S.Region:return f.languages.FoldingRangeKind.Region}}var Nt=class{constructor(e){this._worker=e}provideSelectionRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getSelectionRanges(n.toString(),r.map(R))).then(t=>{if(t)return t.map(o=>{const s=[];for(;o;)s.push({range:w(o.range)}),o=o.parent;return s})})}};function sn(e,r=!1){const i=e.length;let n=0,t="",o=0,s=16,u=0,g=0,c=0,v=0,d=0;function k(l,A){let L=0,I=0;for(;L<l;){let b=e.charCodeAt(n);if(b>=48&&b<=57)I=I*16+b-48;else if(b>=65&&b<=70)I=I*16+b-65+10;else if(b>=97&&b<=102)I=I*16+b-97+10;else break;n++,L++}return L<l&&(I=-1),I}function p(l){n=l,t="",o=0,s=16,d=0}function N(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&D(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&D(e.charCodeAt(n)))for(n++;n<e.length&&D(e.charCodeAt(n));)n++;else return d=3,e.substring(l,n);let A=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&D(e.charCodeAt(n))){for(n++;n<e.length&&D(e.charCodeAt(n));)n++;A=n}else d=3;return e.substring(l,A)}function J(){let l="",A=n;for(;;){if(n>=i){l+=e.substring(A,n),d=2;break}const L=e.charCodeAt(n);if(L===34){l+=e.substring(A,n),n++;break}if(L===92){if(l+=e.substring(A,n),n++,n>=i){d=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
10
- `;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const b=k(4);b>=0?l+=String.fromCharCode(b):d=4;break;default:d=5}A=n;continue}if(L>=0&&L<=31)if(P(L)){l+=e.substring(A,n),d=2;break}else d=6;n++}return l}function le(){if(t="",d=0,o=n,g=u,v=c,n>=i)return o=i,s=17;let l=e.charCodeAt(n);if($(l)){do n++,t+=String.fromCharCode(l),l=e.charCodeAt(n);while($(l));return s=15}if(P(l))return n++,t+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,t+=`
11
- `),u++,c=n,s=14;switch(l){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,t=J(),s=10;case 47:const A=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<i&&!P(e.charCodeAt(n));)n++;return t=e.substring(A,n),s=12}if(e.charCodeAt(n+1)===42){n+=2;const L=i-1;let I=!1;for(;n<L;){const b=e.charCodeAt(n);if(b===42&&e.charCodeAt(n+1)===47){n+=2,I=!0;break}n++,P(b)&&(b===13&&e.charCodeAt(n)===10&&n++,u++,c=n)}return I||(n++,d=1),t=e.substring(A,n),s=13}return t+=String.fromCharCode(l),n++,s=16;case 45:if(t+=String.fromCharCode(l),n++,n===i||!D(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t+=N(),s=11;default:for(;n<i&&Tt(l);)n++,l=e.charCodeAt(n);if(o!==n){switch(t=e.substring(o,n),t){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return t+=String.fromCharCode(l),n++,s=16}}function Tt(l){if($(l)||P(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ut(){let l;do l=le();while(l>=12&&l<=15);return l}return{setPosition:p,getPosition:()=>n,scan:r?Ut:le,getToken:()=>s,getTokenValue:()=>t,getTokenOffset:()=>o,getTokenLength:()=>n-o,getTokenStartLine:()=>g,getTokenStartCharacter:()=>o-v,getTokenError:()=>d}}function $(e){return e===32||e===9}function P(e){return e===10||e===13}function D(e){return e>=48&&e<=57}var at;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(at||(at={}));new Array(20).fill(0).map((e,r)=>" ".repeat(r));var M=200;new Array(M).fill(0).map((e,r)=>`
12
- `+" ".repeat(r)),new Array(M).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(M).fill(0).map((e,r)=>`\r
13
- `+" ".repeat(r)),new Array(M).fill(0).map((e,r)=>`
14
- `+" ".repeat(r)),new Array(M).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(M).fill(0).map((e,r)=>`\r
15
- `+" ".repeat(r));var ut;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ut||(ut={}));var an=sn,ct;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ct||(ct={}));var lt;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(lt||(lt={}));var ft;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ft||(ft={}));function un(e){return{getInitialState:()=>new Mt(null,null,!1,null),tokenize:(r,i)=>_n(e,r,i)}}var dt="delimiter.bracket.json",gt="delimiter.array.json",cn="delimiter.colon.json",ln="delimiter.comma.json",fn="keyword.json",dn="keyword.json",gn="string.value.json",pn="number.json",vn="string.key.json",mn="comment.block.json",hn="comment.line.json",y=class Dt{constructor(r,i){this.parent=r,this.type=i}static pop(r){return r?r.parent:null}static push(r,i){return new Dt(r,i)}static equals(r,i){if(!r&&!i)return!0;if(!r||!i)return!1;for(;r&&i;){if(r===i)return!0;if(r.type!==i.type)return!1;r=r.parent,i=i.parent}return!0}},Mt=class ue{constructor(r,i,n,t){this._state=r,this.scanError=i,this.lastWasColon=n,this.parents=t}clone(){return new ue(this._state,this.scanError,this.lastWasColon,this.parents)}equals(r){return r===this?!0:!r||!(r instanceof ue)?!1:this.scanError===r.scanError&&this.lastWasColon===r.lastWasColon&&y.equals(this.parents,r.parents)}getStateData(){return this._state}setStateData(r){this._state=r}};function _n(e,r,i,n=0){let t=0,o=!1;switch(i.scanError){case 2:r='"'+r,t=1;break;case 1:r="/*"+r,t=2;break}const s=an(r);let u=i.lastWasColon,g=i.parents;const c={tokens:[],endState:i.clone()};for(;;){let v=n+s.getPosition(),d="";const k=s.scan();if(k===17)break;if(v===n+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+r.substr(s.getPosition(),3));switch(o&&(v-=t),o=t>0,k){case 1:g=y.push(g,0),d=dt,u=!1;break;case 2:g=y.pop(g),d=dt,u=!1;break;case 3:g=y.push(g,1),d=gt,u=!1;break;case 4:g=y.pop(g),d=gt,u=!1;break;case 6:d=cn,u=!0;break;case 5:d=ln,u=!1;break;case 8:case 9:d=fn,u=!1;break;case 7:d=dn,u=!1;break;case 10:const N=(g?g.type:0)===1;d=u||N?gn:vn,u=!1;break;case 11:d=pn,u=!1;break}switch(k){case 12:d=hn;break;case 13:d=mn;break}c.endState=new Mt(i.getStateData(),s.getTokenError(),u,g),c.tokens.push({startIndex:v,scopes:d})}return c}var E;function kn(){return new Promise((e,r)=>{if(!E)return r("JSON not registered!");e(E)})}var bn=class extends mt{constructor(e,r,i){super(e,r,i.onDidChange),this._disposables.push(f.editor.onWillDisposeModel(n=>{this._resetSchema(n.uri)})),this._disposables.push(f.editor.onDidChangeModelLanguage(n=>{this._resetSchema(n.model.uri)}))}_resetSchema(e){this._worker().then(r=>{r.resetSchema(e.toString())})}};function wn(e){const r=[],i=[],n=new vt(e);r.push(n),E=(...s)=>n.getLanguageServiceWorker(...s);function t(){const{languageId:s,modeConfiguration:u}=e;Ft(i),u.documentFormattingEdits&&i.push(f.languages.registerDocumentFormattingEditProvider(s,new It(E))),u.documentRangeFormattingEdits&&i.push(f.languages.registerDocumentRangeFormattingEditProvider(s,new Et(E))),u.completionItems&&i.push(f.languages.registerCompletionItemProvider(s,new ht(E,[" ",":",'"']))),u.hovers&&i.push(f.languages.registerHoverProvider(s,new _t(E))),u.documentSymbols&&i.push(f.languages.registerDocumentSymbolProvider(s,new bt(E))),u.tokens&&i.push(f.languages.setTokensProvider(s,un(!0))),u.colors&&i.push(f.languages.registerColorProvider(s,new Ot(E))),u.foldingRanges&&i.push(f.languages.registerFoldingRangeProvider(s,new Rt(E))),u.diagnostics&&i.push(new bn(s,E,e)),u.selectionRanges&&i.push(f.languages.registerSelectionRangeProvider(s,new Nt(E)))}t(),r.push(f.languages.setLanguageConfiguration(e.languageId,An));let o=e.modeConfiguration;return e.onDidChange(s=>{s.modeConfiguration!==o&&(o=s.modeConfiguration,t())}),r.push(pt(i)),pt(r)}function pt(e){return{dispose:()=>Ft(e)}}function Ft(e){for(;e.length;)e.pop().dispose()}var An={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};exports.CompletionAdapter=ht;exports.DefinitionAdapter=Kt;exports.DiagnosticsAdapter=mt;exports.DocumentColorAdapter=Ot;exports.DocumentFormattingEditProvider=It;exports.DocumentHighlightAdapter=Gt;exports.DocumentLinkAdapter=rn;exports.DocumentRangeFormattingEditProvider=Et;exports.DocumentSymbolAdapter=bt;exports.FoldingRangeAdapter=Rt;exports.HoverAdapter=_t;exports.ReferenceAdapter=Ct;exports.RenameAdapter=en;exports.SelectionRangeAdapter=Nt;exports.WorkerManager=vt;exports.fromPosition=R;exports.fromRange=ce;exports.getWorker=kn;exports.setupMode=wn;exports.toRange=w;exports.toTextEdit=x;
@@ -1,517 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/
7
- var e = {
8
- brackets: [
9
- ["{", "}"],
10
- ["[", "]"],
11
- ["(", ")"]
12
- ],
13
- autoClosingPairs: [
14
- { open: "{", close: "}" },
15
- { open: "[", close: "]" },
16
- { open: "(", close: ")" },
17
- { open: '"', close: '"' },
18
- { open: "'", close: "'" }
19
- ],
20
- surroundingPairs: [
21
- { open: "{", close: "}" },
22
- { open: "[", close: "]" },
23
- { open: "(", close: ")" },
24
- { open: '"', close: '"' },
25
- { open: "'", close: "'" }
26
- ]
27
- }, t = {
28
- tokenPostfix: ".julia",
29
- keywords: [
30
- "begin",
31
- "while",
32
- "if",
33
- "for",
34
- "try",
35
- "return",
36
- "break",
37
- "continue",
38
- "function",
39
- "macro",
40
- "quote",
41
- "let",
42
- "local",
43
- "global",
44
- "const",
45
- "do",
46
- "struct",
47
- "module",
48
- "baremodule",
49
- "using",
50
- "import",
51
- "export",
52
- "end",
53
- "else",
54
- "elseif",
55
- "catch",
56
- "finally",
57
- "mutable",
58
- "primitive",
59
- "abstract",
60
- "type",
61
- "in",
62
- "isa",
63
- "where",
64
- "new"
65
- ],
66
- types: [
67
- "LinRange",
68
- "LineNumberNode",
69
- "LinearIndices",
70
- "LoadError",
71
- "MIME",
72
- "Matrix",
73
- "Method",
74
- "MethodError",
75
- "Missing",
76
- "MissingException",
77
- "Module",
78
- "NTuple",
79
- "NamedTuple",
80
- "Nothing",
81
- "Number",
82
- "OrdinalRange",
83
- "OutOfMemoryError",
84
- "OverflowError",
85
- "Pair",
86
- "PartialQuickSort",
87
- "PermutedDimsArray",
88
- "Pipe",
89
- "Ptr",
90
- "QuoteNode",
91
- "Rational",
92
- "RawFD",
93
- "ReadOnlyMemoryError",
94
- "Real",
95
- "ReentrantLock",
96
- "Ref",
97
- "Regex",
98
- "RegexMatch",
99
- "RoundingMode",
100
- "SegmentationFault",
101
- "Set",
102
- "Signed",
103
- "Some",
104
- "StackOverflowError",
105
- "StepRange",
106
- "StepRangeLen",
107
- "StridedArray",
108
- "StridedMatrix",
109
- "StridedVecOrMat",
110
- "StridedVector",
111
- "String",
112
- "StringIndexError",
113
- "SubArray",
114
- "SubString",
115
- "SubstitutionString",
116
- "Symbol",
117
- "SystemError",
118
- "Task",
119
- "Text",
120
- "TextDisplay",
121
- "Timer",
122
- "Tuple",
123
- "Type",
124
- "TypeError",
125
- "TypeVar",
126
- "UInt",
127
- "UInt128",
128
- "UInt16",
129
- "UInt32",
130
- "UInt64",
131
- "UInt8",
132
- "UndefInitializer",
133
- "AbstractArray",
134
- "UndefKeywordError",
135
- "AbstractChannel",
136
- "UndefRefError",
137
- "AbstractChar",
138
- "UndefVarError",
139
- "AbstractDict",
140
- "Union",
141
- "AbstractDisplay",
142
- "UnionAll",
143
- "AbstractFloat",
144
- "UnitRange",
145
- "AbstractIrrational",
146
- "Unsigned",
147
- "AbstractMatrix",
148
- "AbstractRange",
149
- "Val",
150
- "AbstractSet",
151
- "Vararg",
152
- "AbstractString",
153
- "VecElement",
154
- "AbstractUnitRange",
155
- "VecOrMat",
156
- "AbstractVecOrMat",
157
- "Vector",
158
- "AbstractVector",
159
- "VersionNumber",
160
- "Any",
161
- "WeakKeyDict",
162
- "ArgumentError",
163
- "WeakRef",
164
- "Array",
165
- "AssertionError",
166
- "BigFloat",
167
- "BigInt",
168
- "BitArray",
169
- "BitMatrix",
170
- "BitSet",
171
- "BitVector",
172
- "Bool",
173
- "BoundsError",
174
- "CapturedException",
175
- "CartesianIndex",
176
- "CartesianIndices",
177
- "Cchar",
178
- "Cdouble",
179
- "Cfloat",
180
- "Channel",
181
- "Char",
182
- "Cint",
183
- "Cintmax_t",
184
- "Clong",
185
- "Clonglong",
186
- "Cmd",
187
- "Colon",
188
- "Complex",
189
- "ComplexF16",
190
- "ComplexF32",
191
- "ComplexF64",
192
- "CompositeException",
193
- "Condition",
194
- "Cptrdiff_t",
195
- "Cshort",
196
- "Csize_t",
197
- "Cssize_t",
198
- "Cstring",
199
- "Cuchar",
200
- "Cuint",
201
- "Cuintmax_t",
202
- "Culong",
203
- "Culonglong",
204
- "Cushort",
205
- "Cvoid",
206
- "Cwchar_t",
207
- "Cwstring",
208
- "DataType",
209
- "DenseArray",
210
- "DenseMatrix",
211
- "DenseVecOrMat",
212
- "DenseVector",
213
- "Dict",
214
- "DimensionMismatch",
215
- "Dims",
216
- "DivideError",
217
- "DomainError",
218
- "EOFError",
219
- "Enum",
220
- "ErrorException",
221
- "Exception",
222
- "ExponentialBackOff",
223
- "Expr",
224
- "Float16",
225
- "Float32",
226
- "Float64",
227
- "Function",
228
- "GlobalRef",
229
- "HTML",
230
- "IO",
231
- "IOBuffer",
232
- "IOContext",
233
- "IOStream",
234
- "IdDict",
235
- "IndexCartesian",
236
- "IndexLinear",
237
- "IndexStyle",
238
- "InexactError",
239
- "InitError",
240
- "Int",
241
- "Int128",
242
- "Int16",
243
- "Int32",
244
- "Int64",
245
- "Int8",
246
- "Integer",
247
- "InterruptException",
248
- "InvalidStateException",
249
- "Irrational",
250
- "KeyError"
251
- ],
252
- keywordops: ["<:", ">:", ":", "=>", "...", ".", "->", "?"],
253
- allops: /[^\w\d\s()\[\]{}"'#]+/,
254
- constants: [
255
- "true",
256
- "false",
257
- "nothing",
258
- "missing",
259
- "undef",
260
- "Inf",
261
- "pi",
262
- "NaN",
263
- "π",
264
- "ℯ",
265
- "ans",
266
- "PROGRAM_FILE",
267
- "ARGS",
268
- "C_NULL",
269
- "VERSION",
270
- "DEPOT_PATH",
271
- "LOAD_PATH"
272
- ],
273
- operators: [
274
- "!",
275
- "!=",
276
- "!==",
277
- "%",
278
- "&",
279
- "*",
280
- "+",
281
- "-",
282
- "/",
283
- "//",
284
- "<",
285
- "<<",
286
- "<=",
287
- "==",
288
- "===",
289
- "=>",
290
- ">",
291
- ">=",
292
- ">>",
293
- ">>>",
294
- "\\",
295
- "^",
296
- "|",
297
- "|>",
298
- "~",
299
- "÷",
300
- "∈",
301
- "∉",
302
- "∋",
303
- "∌",
304
- "∘",
305
- "√",
306
- "∛",
307
- "∩",
308
- "∪",
309
- "≈",
310
- "≉",
311
- "≠",
312
- "≡",
313
- "≢",
314
- "≤",
315
- "≥",
316
- "⊆",
317
- "⊇",
318
- "⊈",
319
- "⊉",
320
- "⊊",
321
- "⊋",
322
- "⊻"
323
- ],
324
- brackets: [
325
- { open: "(", close: ")", token: "delimiter.parenthesis" },
326
- { open: "{", close: "}", token: "delimiter.curly" },
327
- { open: "[", close: "]", token: "delimiter.square" }
328
- ],
329
- ident: /π|ℯ|\b(?!\d)\w+\b/,
330
- // escape sequences
331
- escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
332
- escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
333
- // The main tokenizer for our languages
334
- tokenizer: {
335
- root: [
336
- [/(::)\s*|\b(isa)\s+/, "keyword", "@typeanno"],
337
- [/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", { token: "", next: "@typeanno" }]],
338
- [/\b(type|struct)[ \t]+/, "keyword", "@typeanno"],
339
- // symbols
340
- [/^\s*:@ident[!?]?/, "metatag"],
341
- [/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]],
342
- [/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]],
343
- [/:\(/, "metatag", "@quote"],
344
- // regular expressions
345
- [/r"""/, "regexp.delim", "@tregexp"],
346
- [/r"/, "regexp.delim", "@sregexp"],
347
- // strings
348
- [/raw"""/, "string.delim", "@rtstring"],
349
- [/[bv]?"""/, "string.delim", "@dtstring"],
350
- [/raw"/, "string.delim", "@rsstring"],
351
- [/[bv]?"/, "string.delim", "@dsstring"],
352
- [
353
- /(@ident)\{/,
354
- {
355
- cases: {
356
- "$1@types": { token: "type", next: "@gen" },
357
- "@default": { token: "type", next: "@gen" }
358
- }
359
- }
360
- ],
361
- [
362
- /@ident[!?'']?(?=\.?\()/,
363
- {
364
- cases: {
365
- "@types": "type",
366
- "@keywords": "keyword",
367
- "@constants": "variable",
368
- "@default": "keyword.flow"
369
- }
370
- }
371
- ],
372
- [
373
- /@ident[!?']?/,
374
- {
375
- cases: {
376
- "@types": "type",
377
- "@keywords": "keyword",
378
- "@constants": "variable",
379
- "@default": "identifier"
380
- }
381
- }
382
- ],
383
- [/\$\w+/, "key"],
384
- [/\$\(/, "key", "@paste"],
385
- [/@@@ident/, "annotation"],
386
- // whitespace
387
- { include: "@whitespace" },
388
- // characters
389
- [/'(?:@escapes|.)'/, "string.character"],
390
- // delimiters and operators
391
- [/[()\[\]{}]/, "@brackets"],
392
- [
393
- /@allops/,
394
- {
395
- cases: {
396
- "@keywordops": "keyword",
397
- "@operators": "operator"
398
- }
399
- }
400
- ],
401
- [/[;,]/, "delimiter"],
402
- // numbers
403
- [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
404
- [/0[_oO][0-7](_?[0-7])*/, "number.octal"],
405
- [/0[bB][01](_?[01])*/, "number.binary"],
406
- [/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]
407
- ],
408
- // type
409
- typeanno: [
410
- [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@gen"],
411
- [/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]],
412
- [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type", "@pop"],
413
- ["", "", "@pop"]
414
- ],
415
- // generic type
416
- gen: [
417
- [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@push"],
418
- [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"],
419
- [/<:/, "keyword"],
420
- [/(\})(\s*<:\s*)/, ["type", { token: "keyword", next: "@pop" }]],
421
- [/\}/, "type", "@pop"],
422
- { include: "@root" }
423
- ],
424
- // $(...)
425
- quote: [
426
- [/\$\(/, "key", "@paste"],
427
- [/\(/, "@brackets", "@paren"],
428
- [/\)/, "metatag", "@pop"],
429
- { include: "@root" }
430
- ],
431
- // :(...)
432
- paste: [
433
- [/:\(/, "metatag", "@quote"],
434
- [/\(/, "@brackets", "@paren"],
435
- [/\)/, "key", "@pop"],
436
- { include: "@root" }
437
- ],
438
- // (...)
439
- paren: [
440
- [/\$\(/, "key", "@paste"],
441
- [/:\(/, "metatag", "@quote"],
442
- [/\(/, "@brackets", "@push"],
443
- [/\)/, "@brackets", "@pop"],
444
- { include: "@root" }
445
- ],
446
- // r"egex string"
447
- sregexp: [
448
- [/^.*/, "invalid"],
449
- [/[^\\"()\[\]{}]/, "regexp"],
450
- [/[()\[\]{}]/, "@brackets"],
451
- [/\\./, "operator.scss"],
452
- [/"[imsx]*/, "regexp.delim", "@pop"]
453
- ],
454
- tregexp: [
455
- [/[^\\"()\[\]{}]/, "regexp"],
456
- [/[()\[\]{}]/, "@brackets"],
457
- [/\\./, "operator.scss"],
458
- [/"(?!"")/, "string"],
459
- [/"""[imsx]*/, "regexp.delim", "@pop"]
460
- ],
461
- // raw"string"
462
- rsstring: [
463
- [/^.*/, "invalid"],
464
- [/[^\\"]/, "string"],
465
- [/\\./, "string.escape"],
466
- [/"/, "string.delim", "@pop"]
467
- ],
468
- rtstring: [
469
- [/[^\\"]/, "string"],
470
- [/\\./, "string.escape"],
471
- [/"(?!"")/, "string"],
472
- [/"""/, "string.delim", "@pop"]
473
- ],
474
- // "string".
475
- dsstring: [
476
- [/^.*/, "invalid"],
477
- [/[^\\"\$]/, "string"],
478
- [/\$/, "", "@interpolated"],
479
- [/@escapes/, "string.escape"],
480
- [/\\./, "string.escape.invalid"],
481
- [/"/, "string.delim", "@pop"]
482
- ],
483
- dtstring: [
484
- [/[^\\"\$]/, "string"],
485
- [/\$/, "", "@interpolated"],
486
- [/@escapes/, "string.escape"],
487
- [/\\./, "string.escape.invalid"],
488
- [/"(?!"")/, "string"],
489
- [/"""/, "string.delim", "@pop"]
490
- ],
491
- // interpolated sequence
492
- interpolated: [
493
- [/\(/, { token: "", switchTo: "@interpolated_compound" }],
494
- [/[a-zA-Z_]\w*/, "identifier"],
495
- ["", "", "@pop"]
496
- // just a $ is interpreted as a $
497
- ],
498
- // any code
499
- interpolated_compound: [[/\)/, "", "@pop"], { include: "@root" }],
500
- // whitespace & comments
501
- whitespace: [
502
- [/[ \t\r\n]+/, ""],
503
- [/#=/, "comment", "@multi_comment"],
504
- [/#.*$/, "comment"]
505
- ],
506
- multi_comment: [
507
- [/#=/, "comment", "@push"],
508
- [/=#/, "comment", "@pop"],
509
- [/=(?!#)|#(?!=)/, "comment"],
510
- [/[^#=]+/, "comment"]
511
- ]
512
- }
513
- };
514
- export {
515
- e as conf,
516
- t as language
517
- };
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}};exports.conf=e;exports.language=t;