monaco-editor11 1.2.5 → 1.2.6
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.
- package/dist/css.worker-wrapper.d.ts +2 -0
- package/dist/css.worker.mjs +4 -0
- package/dist/editor.worker-wrapper.d.ts +2 -0
- package/dist/editor.worker.mjs +6 -2
- package/dist/json.worker-wrapper.d.ts +2 -0
- package/dist/json.worker.mjs +4 -0
- package/dist/ts.worker-wrapper.d.ts +2 -0
- package/dist/ts.worker.mjs +4 -0
- package/dist/worker-wrapper.d.ts +2 -0
- package/package.json +5 -5
- package/dist/app.js +0 -1
- package/dist/css.worker.js +0 -66
- package/dist/editor.worker.js +0 -1
- package/dist/index-idtXKE3T.js +0 -3
- package/dist/initialize-BQMKx5pJ.js +0 -26
- package/dist/json.worker.js +0 -31
- package/dist/ts.worker.js +0 -67706
package/dist/editor.worker.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./initialize-BQMKx5pJ.js");self.onmessage=()=>{i.isWorkerInitialized()||i.start(()=>({}))};
|
package/dist/index-idtXKE3T.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";var Te=Object.defineProperty;var Se=(t,r,i)=>r in t?Te(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var P=(t,r,i)=>Se(t,typeof r!="symbol"?r+"":r,i);var ie;(function(t){function r(i){return typeof i=="string"}t.is=r})(ie||(ie={}));var z;(function(t){function r(i){return typeof i=="string"}t.is=r})(z||(z={}));var ae;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=r})(ae||(ae={}));var q;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function r(i){return typeof i=="number"&&t.MIN_VALUE<=i&&i<=t.MAX_VALUE}t.is=r})(q||(q={}));exports.Position=void 0;(function(t){function r(n,e){return n===Number.MAX_VALUE&&(n=q.MAX_VALUE),e===Number.MAX_VALUE&&(e=q.MAX_VALUE),{line:n,character:e}}t.create=r;function i(n){let e=n;return s.objectLiteral(e)&&s.uinteger(e.line)&&s.uinteger(e.character)}t.is=i})(exports.Position||(exports.Position={}));exports.Range=void 0;(function(t){function r(n,e,a,c){if(s.uinteger(n)&&s.uinteger(e)&&s.uinteger(a)&&s.uinteger(c))return{start:exports.Position.create(n,e),end:exports.Position.create(a,c)};if(exports.Position.is(n)&&exports.Position.is(e))return{start:n,end:e};throw new Error(`Range#create called with invalid arguments[${n}, ${e}, ${a}, ${c}]`)}t.create=r;function i(n){let e=n;return s.objectLiteral(e)&&exports.Position.is(e.start)&&exports.Position.is(e.end)}t.is=i})(exports.Range||(exports.Range={}));exports.Location=void 0;(function(t){function r(n,e){return{uri:n,range:e}}t.create=r;function i(n){let e=n;return s.objectLiteral(e)&&exports.Range.is(e.range)&&(s.string(e.uri)||s.undefined(e.uri))}t.is=i})(exports.Location||(exports.Location={}));var se;(function(t){function r(n,e,a,c){return{targetUri:n,targetRange:e,targetSelectionRange:a,originSelectionRange:c}}t.create=r;function i(n){let e=n;return s.objectLiteral(e)&&exports.Range.is(e.targetRange)&&s.string(e.targetUri)&&exports.Range.is(e.targetSelectionRange)&&(exports.Range.is(e.originSelectionRange)||s.undefined(e.originSelectionRange))}t.is=i})(se||(se={}));var B;(function(t){function r(n,e,a,c){return{red:n,green:e,blue:a,alpha:c}}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&s.numberRange(e.red,0,1)&&s.numberRange(e.green,0,1)&&s.numberRange(e.blue,0,1)&&s.numberRange(e.alpha,0,1)}t.is=i})(B||(B={}));var oe;(function(t){function r(n,e){return{range:n,color:e}}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&exports.Range.is(e.range)&&B.is(e.color)}t.is=i})(oe||(oe={}));var ce;(function(t){function r(n,e,a){return{label:n,textEdit:e,additionalTextEdits:a}}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&s.string(e.label)&&(s.undefined(e.textEdit)||exports.TextEdit.is(e))&&(s.undefined(e.additionalTextEdits)||s.typedArray(e.additionalTextEdits,exports.TextEdit.is))}t.is=i})(ce||(ce={}));exports.FoldingRangeKind=void 0;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(exports.FoldingRangeKind||(exports.FoldingRangeKind={}));var ue;(function(t){function r(n,e,a,c,p,u){const o={startLine:n,endLine:e};return s.defined(a)&&(o.startCharacter=a),s.defined(c)&&(o.endCharacter=c),s.defined(p)&&(o.kind=p),s.defined(u)&&(o.collapsedText=u),o}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&s.uinteger(e.startLine)&&s.uinteger(e.startLine)&&(s.undefined(e.startCharacter)||s.uinteger(e.startCharacter))&&(s.undefined(e.endCharacter)||s.uinteger(e.endCharacter))&&(s.undefined(e.kind)||s.string(e.kind))}t.is=i})(ue||(ue={}));var H;(function(t){function r(n,e){return{location:n,message:e}}t.create=r;function i(n){let e=n;return s.defined(e)&&exports.Location.is(e.location)&&s.string(e.message)}t.is=i})(H||(H={}));exports.DiagnosticSeverity=void 0;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(exports.DiagnosticSeverity||(exports.DiagnosticSeverity={}));var fe;(function(t){t.Unnecessary=1,t.Deprecated=2})(fe||(fe={}));var de;(function(t){function r(i){const n=i;return s.objectLiteral(n)&&s.string(n.href)}t.is=r})(de||(de={}));exports.Diagnostic=void 0;(function(t){function r(n,e,a,c,p,u){let o={range:n,message:e};return s.defined(a)&&(o.severity=a),s.defined(c)&&(o.code=c),s.defined(p)&&(o.source=p),s.defined(u)&&(o.relatedInformation=u),o}t.create=r;function i(n){var e;let a=n;return s.defined(a)&&exports.Range.is(a.range)&&s.string(a.message)&&(s.number(a.severity)||s.undefined(a.severity))&&(s.integer(a.code)||s.string(a.code)||s.undefined(a.code))&&(s.undefined(a.codeDescription)||s.string((e=a.codeDescription)===null||e===void 0?void 0:e.href))&&(s.string(a.source)||s.undefined(a.source))&&(s.undefined(a.relatedInformation)||s.typedArray(a.relatedInformation,H.is))}t.is=i})(exports.Diagnostic||(exports.Diagnostic={}));exports.Command=void 0;(function(t){function r(n,e,...a){let c={title:n,command:e};return s.defined(a)&&a.length>0&&(c.arguments=a),c}t.create=r;function i(n){let e=n;return s.defined(e)&&s.string(e.title)&&s.string(e.command)}t.is=i})(exports.Command||(exports.Command={}));exports.TextEdit=void 0;(function(t){function r(a,c){return{range:a,newText:c}}t.replace=r;function i(a,c){return{range:{start:a,end:a},newText:c}}t.insert=i;function n(a){return{range:a,newText:""}}t.del=n;function e(a){const c=a;return s.objectLiteral(c)&&s.string(c.newText)&&exports.Range.is(c.range)}t.is=e})(exports.TextEdit||(exports.TextEdit={}));var J;(function(t){function r(n,e,a){const c={label:n};return e!==void 0&&(c.needsConfirmation=e),a!==void 0&&(c.description=a),c}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&s.string(e.label)&&(s.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(s.string(e.description)||e.description===void 0)}t.is=i})(J||(J={}));var U;(function(t){function r(i){const n=i;return s.string(n)}t.is=r})(U||(U={}));var le;(function(t){function r(a,c,p){return{range:a,newText:c,annotationId:p}}t.replace=r;function i(a,c,p){return{range:{start:a,end:a},newText:c,annotationId:p}}t.insert=i;function n(a,c){return{range:a,newText:"",annotationId:c}}t.del=n;function e(a){const c=a;return exports.TextEdit.is(c)&&(J.is(c.annotationId)||U.is(c.annotationId))}t.is=e})(le||(le={}));exports.TextDocumentEdit=void 0;(function(t){function r(n,e){return{textDocument:n,edits:e}}t.create=r;function i(n){let e=n;return s.defined(e)&&T.is(e.textDocument)&&Array.isArray(e.edits)}t.is=i})(exports.TextDocumentEdit||(exports.TextDocumentEdit={}));var Z;(function(t){function r(n,e,a){let c={kind:"create",uri:n};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(c.options=e),a!==void 0&&(c.annotationId=a),c}t.create=r;function i(n){let e=n;return e&&e.kind==="create"&&s.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||s.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||s.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||U.is(e.annotationId))}t.is=i})(Z||(Z={}));var Q;(function(t){function r(n,e,a,c){let p={kind:"rename",oldUri:n,newUri:e};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(p.options=a),c!==void 0&&(p.annotationId=c),p}t.create=r;function i(n){let e=n;return e&&e.kind==="rename"&&s.string(e.oldUri)&&s.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||s.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||s.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||U.is(e.annotationId))}t.is=i})(Q||(Q={}));var G;(function(t){function r(n,e,a){let c={kind:"delete",uri:n};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(c.options=e),a!==void 0&&(c.annotationId=a),c}t.create=r;function i(n){let e=n;return e&&e.kind==="delete"&&s.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||s.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||s.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||U.is(e.annotationId))}t.is=i})(G||(G={}));var Y;(function(t){function r(i){let n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(e=>s.string(e.kind)?Z.is(e)||Q.is(e)||G.is(e):exports.TextDocumentEdit.is(e)))}t.is=r})(Y||(Y={}));var ge;(function(t){function r(n){return{uri:n}}t.create=r;function i(n){let e=n;return s.defined(e)&&s.string(e.uri)}t.is=i})(ge||(ge={}));exports.VersionedTextDocumentIdentifier=void 0;(function(t){function r(n,e){return{uri:n,version:e}}t.create=r;function i(n){let e=n;return s.defined(e)&&s.string(e.uri)&&s.integer(e.version)}t.is=i})(exports.VersionedTextDocumentIdentifier||(exports.VersionedTextDocumentIdentifier={}));var T;(function(t){function r(n,e){return{uri:n,version:e}}t.create=r;function i(n){let e=n;return s.defined(e)&&s.string(e.uri)&&(e.version===null||s.integer(e.version))}t.is=i})(T||(T={}));var he;(function(t){function r(n,e,a,c){return{uri:n,languageId:e,version:a,text:c}}t.create=r;function i(n){let e=n;return s.defined(e)&&s.string(e.uri)&&s.string(e.languageId)&&s.integer(e.version)&&s.string(e.text)}t.is=i})(he||(he={}));exports.MarkupKind=void 0;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function r(i){const n=i;return n===t.PlainText||n===t.Markdown}t.is=r})(exports.MarkupKind||(exports.MarkupKind={}));var D;(function(t){function r(i){const n=i;return s.objectLiteral(i)&&exports.MarkupKind.is(n.kind)&&s.string(n.value)}t.is=r})(D||(D={}));exports.CompletionItemKind=void 0;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(exports.CompletionItemKind||(exports.CompletionItemKind={}));exports.InsertTextFormat=void 0;(function(t){t.PlainText=1,t.Snippet=2})(exports.InsertTextFormat||(exports.InsertTextFormat={}));exports.CompletionItemTag=void 0;(function(t){t.Deprecated=1})(exports.CompletionItemTag||(exports.CompletionItemTag={}));var pe;(function(t){function r(n,e,a){return{newText:n,insert:e,replace:a}}t.create=r;function i(n){const e=n;return e&&s.string(e.newText)&&exports.Range.is(e.insert)&&exports.Range.is(e.replace)}t.is=i})(pe||(pe={}));var me;(function(t){t.asIs=1,t.adjustIndentation=2})(me||(me={}));var ve;(function(t){function r(i){const n=i;return n&&(s.string(n.detail)||n.detail===void 0)&&(s.string(n.description)||n.description===void 0)}t.is=r})(ve||(ve={}));exports.CompletionItem=void 0;(function(t){function r(i){return{label:i}}t.create=r})(exports.CompletionItem||(exports.CompletionItem={}));var be;(function(t){function r(i,n){return{items:i||[],isIncomplete:!!n}}t.create=r})(be||(be={}));var k;(function(t){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(n){const e=n;return s.string(e)||s.objectLiteral(e)&&s.string(e.language)&&s.string(e.value)}t.is=i})(k||(k={}));var ye;(function(t){function r(i){let n=i;return!!n&&s.objectLiteral(n)&&(D.is(n.contents)||k.is(n.contents)||s.typedArray(n.contents,k.is))&&(i.range===void 0||exports.Range.is(i.range))}t.is=r})(ye||(ye={}));var Ae;(function(t){function r(i,n){return n?{label:i,documentation:n}:{label:i}}t.create=r})(Ae||(Ae={}));var xe;(function(t){function r(i,n,...e){let a={label:i};return s.defined(n)&&(a.documentation=n),s.defined(e)?a.parameters=e:a.parameters=[],a}t.create=r})(xe||(xe={}));exports.DocumentHighlightKind=void 0;(function(t){t.Text=1,t.Read=2,t.Write=3})(exports.DocumentHighlightKind||(exports.DocumentHighlightKind={}));var we;(function(t){function r(i,n){let e={range:i};return s.number(n)&&(e.kind=n),e}t.create=r})(we||(we={}));exports.SymbolKind=void 0;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(exports.SymbolKind||(exports.SymbolKind={}));var _e;(function(t){t.Deprecated=1})(_e||(_e={}));var Le;(function(t){function r(i,n,e,a,c){let p={name:i,kind:n,location:{uri:a,range:e}};return c&&(p.containerName=c),p}t.create=r})(Le||(Le={}));var Ce;(function(t){function r(i,n,e,a){return a!==void 0?{name:i,kind:n,location:{uri:e,range:a}}:{name:i,kind:n,location:{uri:e}}}t.create=r})(Ce||(Ce={}));var Ie;(function(t){function r(n,e,a,c,p,u){let o={name:n,detail:e,kind:a,range:c,selectionRange:p};return u!==void 0&&(o.children=u),o}t.create=r;function i(n){let e=n;return e&&s.string(e.name)&&s.number(e.kind)&&exports.Range.is(e.range)&&exports.Range.is(e.selectionRange)&&(e.detail===void 0||s.string(e.detail))&&(e.deprecated===void 0||s.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}t.is=i})(Ie||(Ie={}));exports.CodeActionKind=void 0;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(exports.CodeActionKind||(exports.CodeActionKind={}));var W;(function(t){t.Invoked=1,t.Automatic=2})(W||(W={}));var Re;(function(t){function r(n,e,a){let c={diagnostics:n};return e!=null&&(c.only=e),a!=null&&(c.triggerKind=a),c}t.create=r;function i(n){let e=n;return s.defined(e)&&s.typedArray(e.diagnostics,exports.Diagnostic.is)&&(e.only===void 0||s.typedArray(e.only,s.string))&&(e.triggerKind===void 0||e.triggerKind===W.Invoked||e.triggerKind===W.Automatic)}t.is=i})(Re||(Re={}));exports.CodeAction=void 0;(function(t){function r(n,e,a){let c={title:n},p=!0;return typeof e=="string"?(p=!1,c.kind=e):exports.Command.is(e)?c.command=e:c.edit=e,p&&a!==void 0&&(c.kind=a),c}t.create=r;function i(n){let e=n;return e&&s.string(e.title)&&(e.diagnostics===void 0||s.typedArray(e.diagnostics,exports.Diagnostic.is))&&(e.kind===void 0||s.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||exports.Command.is(e.command))&&(e.isPreferred===void 0||s.boolean(e.isPreferred))&&(e.edit===void 0||Y.is(e.edit))}t.is=i})(exports.CodeAction||(exports.CodeAction={}));var Ee;(function(t){function r(n,e){let a={range:n};return s.defined(e)&&(a.data=e),a}t.create=r;function i(n){let e=n;return s.defined(e)&&exports.Range.is(e.range)&&(s.undefined(e.command)||exports.Command.is(e.command))}t.is=i})(Ee||(Ee={}));var Oe;(function(t){function r(n,e){return{tabSize:n,insertSpaces:e}}t.create=r;function i(n){let e=n;return s.defined(e)&&s.uinteger(e.tabSize)&&s.boolean(e.insertSpaces)}t.is=i})(Oe||(Oe={}));var je;(function(t){function r(n,e,a){return{range:n,target:e,data:a}}t.create=r;function i(n){let e=n;return s.defined(e)&&exports.Range.is(e.range)&&(s.undefined(e.target)||s.string(e.target))}t.is=i})(je||(je={}));exports.SelectionRange=void 0;(function(t){function r(n,e){return{range:n,parent:e}}t.create=r;function i(n){let e=n;return s.objectLiteral(e)&&exports.Range.is(e.range)&&(e.parent===void 0||t.is(e.parent))}t.is=i})(exports.SelectionRange||(exports.SelectionRange={}));var Pe;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Pe||(Pe={}));var Ue;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ue||(Ue={}));var Me;(function(t){function r(i){const n=i;return s.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=r})(Me||(Me={}));var De;(function(t){function r(n,e){return{range:n,text:e}}t.create=r;function i(n){const e=n;return e!=null&&exports.Range.is(e.range)&&s.string(e.text)}t.is=i})(De||(De={}));var $e;(function(t){function r(n,e,a){return{range:n,variableName:e,caseSensitiveLookup:a}}t.create=r;function i(n){const e=n;return e!=null&&exports.Range.is(e.range)&&s.boolean(e.caseSensitiveLookup)&&(s.string(e.variableName)||e.variableName===void 0)}t.is=i})($e||($e={}));var Ne;(function(t){function r(n,e){return{range:n,expression:e}}t.create=r;function i(n){const e=n;return e!=null&&exports.Range.is(e.range)&&(s.string(e.expression)||e.expression===void 0)}t.is=i})(Ne||(Ne={}));var Fe;(function(t){function r(n,e){return{frameId:n,stoppedLocation:e}}t.create=r;function i(n){const e=n;return s.defined(e)&&exports.Range.is(n.stoppedLocation)}t.is=i})(Fe||(Fe={}));var S;(function(t){t.Type=1,t.Parameter=2;function r(i){return i===1||i===2}t.is=r})(S||(S={}));var K;(function(t){function r(n){return{value:n}}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&(e.tooltip===void 0||s.string(e.tooltip)||D.is(e.tooltip))&&(e.location===void 0||exports.Location.is(e.location))&&(e.command===void 0||exports.Command.is(e.command))}t.is=i})(K||(K={}));var Ve;(function(t){function r(n,e,a){const c={position:n,label:e};return a!==void 0&&(c.kind=a),c}t.create=r;function i(n){const e=n;return s.objectLiteral(e)&&exports.Position.is(e.position)&&(s.string(e.label)||s.typedArray(e.label,K.is))&&(e.kind===void 0||S.is(e.kind))&&e.textEdits===void 0||s.typedArray(e.textEdits,exports.TextEdit.is)&&(e.tooltip===void 0||s.string(e.tooltip)||D.is(e.tooltip))&&(e.paddingLeft===void 0||s.boolean(e.paddingLeft))&&(e.paddingRight===void 0||s.boolean(e.paddingRight))}t.is=i})(Ve||(Ve={}));var qe;(function(t){function r(i){return{kind:"snippet",value:i}}t.createSnippet=r})(qe||(qe={}));var ke;(function(t){function r(i,n,e,a){return{insertText:i,filterText:n,range:e,command:a}}t.create=r})(ke||(ke={}));var We;(function(t){function r(i){return{items:i}}t.create=r})(We||(We={}));var Xe;(function(t){t.Invoked=0,t.Automatic=1})(Xe||(Xe={}));var ze;(function(t){function r(i,n){return{range:i,text:n}}t.create=r})(ze||(ze={}));var Be;(function(t){function r(i,n){return{triggerKind:i,selectedCompletionInfo:n}}t.create=r})(Be||(Be={}));var He;(function(t){function r(i){const n=i;return s.objectLiteral(n)&&z.is(n.uri)&&s.string(n.name)}t.is=r})(He||(He={}));var Je;(function(t){function r(a,c,p,u){return new Ke(a,c,p,u)}t.create=r;function i(a){let c=a;return!!(s.defined(c)&&s.string(c.uri)&&(s.undefined(c.languageId)||s.string(c.languageId))&&s.uinteger(c.lineCount)&&s.func(c.getText)&&s.func(c.positionAt)&&s.func(c.offsetAt))}t.is=i;function n(a,c){let p=a.getText(),u=e(c,(f,g)=>{let h=f.range.start.line-g.range.start.line;return h===0?f.range.start.character-g.range.start.character:h}),o=p.length;for(let f=u.length-1;f>=0;f--){let g=u[f],h=a.offsetAt(g.range.start),d=a.offsetAt(g.range.end);if(d<=o)p=p.substring(0,h)+g.newText+p.substring(d,p.length);else throw new Error("Overlapping edit");o=h}return p}t.applyEdits=n;function e(a,c){if(a.length<=1)return a;const p=a.length/2|0,u=a.slice(0,p),o=a.slice(p);e(u,c),e(o,c);let f=0,g=0,h=0;for(;f<u.length&&g<o.length;)c(u[f],o[g])<=0?a[h++]=u[f++]:a[h++]=o[g++];for(;f<u.length;)a[h++]=u[f++];for(;g<o.length;)a[h++]=o[g++];return a}})(Je||(Je={}));let Ke=class{constructor(r,i,n,e){this._uri=r,this._languageId=i,this._version=n,this._content=e,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){let i=this.offsetAt(r.start),n=this.offsetAt(r.end);return this._content.substring(i,n)}return this._content}update(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let r=[],i=this._content,n=!0;for(let e=0;e<i.length;e++){n&&(r.push(e),n=!1);let a=i.charAt(e);n=a==="\r"||a===`
|
|
2
|
-
`,a==="\r"&&e+1<i.length&&i.charAt(e+1)===`
|
|
3
|
-
`&&e++}n&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let i=this.getLineOffsets(),n=0,e=i.length;if(e===0)return exports.Position.create(0,r);for(;n<e;){let c=Math.floor((n+e)/2);i[c]>r?e=c:n=c+1}let a=n-1;return exports.Position.create(a,r-i[a])}offsetAt(r){let i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;let n=i[r.line],e=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(n+r.character,e),n)}get lineCount(){return this.getLineOffsets().length}};var s;(function(t){const r=Object.prototype.toString;function i(d){return typeof d<"u"}t.defined=i;function n(d){return typeof d>"u"}t.undefined=n;function e(d){return d===!0||d===!1}t.boolean=e;function a(d){return r.call(d)==="[object String]"}t.string=a;function c(d){return r.call(d)==="[object Number]"}t.number=c;function p(d,y,A){return r.call(d)==="[object Number]"&&y<=d&&d<=A}t.numberRange=p;function u(d){return r.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}t.integer=u;function o(d){return r.call(d)==="[object Number]"&&0<=d&&d<=2147483647}t.uinteger=o;function f(d){return r.call(d)==="[object Function]"}t.func=f;function g(d){return d!==null&&typeof d=="object"}t.objectLiteral=g;function h(d,y){return Array.isArray(d)&&d.every(y)}t.typedArray=h})(s||(s={}));class ${constructor(r,i,n,e){this._uri=r,this._languageId=i,this._version=n,this._content=e,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const i=this.offsetAt(r.start),n=this.offsetAt(r.end);return this._content.substring(i,n)}return this._content}update(r,i){for(let n of r)if($.isIncremental(n)){const e=Qe(n.range),a=this.offsetAt(e.start),c=this.offsetAt(e.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(c,this._content.length);const p=Math.max(e.start.line,0),u=Math.max(e.end.line,0);let o=this._lineOffsets;const f=Ze(n.text,!1,a);if(u-p===f.length)for(let h=0,d=f.length;h<d;h++)o[h+p+1]=f[h];else f.length<1e4?o.splice(p+1,u-p,...f):this._lineOffsets=o=o.slice(0,p+1).concat(f,o.slice(u+1));const g=n.text.length-(c-a);if(g!==0)for(let h=p+1+f.length,d=o.length;h<d;h++)o[h]=o[h]+g}else if($.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=i}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Ze(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let i=this.getLineOffsets(),n=0,e=i.length;if(e===0)return{line:0,character:r};for(;n<e;){let c=Math.floor((n+e)/2);i[c]>r?e=c:n=c+1}let a=n-1;return{line:a,character:r-i[a]}}offsetAt(r){let i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;let n=i[r.line],e=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(n+r.character,e),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}static isFull(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}}exports.TextDocument=void 0;(function(t){function r(e,a,c,p){return new $(e,a,c,p)}t.create=r;function i(e,a,c){if(e instanceof $)return e.update(a,c),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function n(e,a){let c=e.getText(),p=ee(a.map(et),(f,g)=>{let h=f.range.start.line-g.range.start.line;return h===0?f.range.start.character-g.range.start.character:h}),u=0;const o=[];for(const f of p){let g=e.offsetAt(f.range.start);if(g<u)throw new Error("Overlapping edit");g>u&&o.push(c.substring(u,g)),f.newText.length&&o.push(f.newText),u=e.offsetAt(f.range.end)}return o.push(c.substr(u)),o.join("")}t.applyEdits=n})(exports.TextDocument||(exports.TextDocument={}));function ee(t,r){if(t.length<=1)return t;const i=t.length/2|0,n=t.slice(0,i),e=t.slice(i);ee(n,r),ee(e,r);let a=0,c=0,p=0;for(;a<n.length&&c<e.length;)r(n[a],e[c])<=0?t[p++]=n[a++]:t[p++]=e[c++];for(;a<n.length;)t[p++]=n[a++];for(;c<e.length;)t[p++]=e[c++];return t}function Ze(t,r,i=0){const n=r?[i]:[];for(let e=0;e<t.length;e++){let a=t.charCodeAt(e);(a===13||a===10)&&(a===13&&e+1<t.length&&t.charCodeAt(e+1)===10&&e++,n.push(i+e+1))}return n}function Qe(t){const r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function et(t){const r=Qe(t.range);return r!==t.range?{newText:t.newText,range:r}:t}function Ge(...t){const r=t[0];let i,n,e;if(typeof r=="string")i=r,n=r,t.splice(0,1),e=!t||typeof t[0]!="object"?t:t[0];else if(r instanceof Array){const a=t.slice(1);if(r.length!==a.length+1)throw new Error("expected a string as the first argument to l10n.t");let c=r[0];for(let p=1;p<r.length;p++)c+=`{${p-1}}`+r[p];return Ge(c,...a)}else n=r.message,i=n,r.comment&&r.comment.length>0&&(i+=`/${Array.isArray(r.comment)?r.comment.join(""):r.comment}`),e=r.args??{};return nt(n,e)}var tt=/{([^}]+)}/g;function nt(t,r){return Object.keys(r).length===0?t:t.replace(tt,(i,n)=>r[n]??i)}var Ye;(()=>{var t={470:e=>{function a(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function c(u,o){for(var f,g="",h=0,d=-1,y=0,A=0;A<=u.length;++A){if(A<u.length)f=u.charCodeAt(A);else{if(f===47)break;f=47}if(f===47){if(!(d===A-1||y===1))if(d!==A-1&&y===2){if(g.length<2||h!==2||g.charCodeAt(g.length-1)!==46||g.charCodeAt(g.length-2)!==46){if(g.length>2){var C=g.lastIndexOf("/");if(C!==g.length-1){C===-1?(g="",h=0):h=(g=g.slice(0,C)).length-1-g.lastIndexOf("/"),d=A,y=0;continue}}else if(g.length===2||g.length===1){g="",h=0,d=A,y=0;continue}}o&&(g.length>0?g+="/..":g="..",h=2)}else g.length>0?g+="/"+u.slice(d+1,A):g=u.slice(d+1,A),h=A-d-1;d=A,y=0}else f===46&&y!==-1?++y:y=-1}return g}var p={resolve:function(){for(var u,o="",f=!1,g=arguments.length-1;g>=-1&&!f;g--){var h;g>=0?h=arguments[g]:(u===void 0&&(u=process.cwd()),h=u),a(h),h.length!==0&&(o=h+"/"+o,f=h.charCodeAt(0)===47)}return o=c(o,!f),f?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(u){if(a(u),u.length===0)return".";var o=u.charCodeAt(0)===47,f=u.charCodeAt(u.length-1)===47;return(u=c(u,!o)).length!==0||o||(u="."),u.length>0&&f&&(u+="/"),o?"/"+u:u},isAbsolute:function(u){return a(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,o=0;o<arguments.length;++o){var f=arguments[o];a(f),f.length>0&&(u===void 0?u=f:u+="/"+f)}return u===void 0?".":p.normalize(u)},relative:function(u,o){if(a(u),a(o),u===o||(u=p.resolve(u))===(o=p.resolve(o)))return"";for(var f=1;f<u.length&&u.charCodeAt(f)===47;++f);for(var g=u.length,h=g-f,d=1;d<o.length&&o.charCodeAt(d)===47;++d);for(var y=o.length-d,A=h<y?h:y,C=-1,_=0;_<=A;++_){if(_===A){if(y>A){if(o.charCodeAt(d+_)===47)return o.slice(d+_+1);if(_===0)return o.slice(d+_)}else h>A&&(u.charCodeAt(f+_)===47?C=_:_===0&&(C=0));break}var E=u.charCodeAt(f+_);if(E!==o.charCodeAt(d+_))break;E===47&&(C=_)}var j="";for(_=f+C+1;_<=g;++_)_!==g&&u.charCodeAt(_)!==47||(j.length===0?j+="..":j+="/..");return j.length>0?j+o.slice(d+C):(d+=C,o.charCodeAt(d)===47&&++d,o.slice(d))},_makeLong:function(u){return u},dirname:function(u){if(a(u),u.length===0)return".";for(var o=u.charCodeAt(0),f=o===47,g=-1,h=!0,d=u.length-1;d>=1;--d)if((o=u.charCodeAt(d))===47){if(!h){g=d;break}}else h=!1;return g===-1?f?"/":".":f&&g===1?"//":u.slice(0,g)},basename:function(u,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');a(u);var f,g=0,h=-1,d=!0;if(o!==void 0&&o.length>0&&o.length<=u.length){if(o.length===u.length&&o===u)return"";var y=o.length-1,A=-1;for(f=u.length-1;f>=0;--f){var C=u.charCodeAt(f);if(C===47){if(!d){g=f+1;break}}else A===-1&&(d=!1,A=f+1),y>=0&&(C===o.charCodeAt(y)?--y==-1&&(h=f):(y=-1,h=A))}return g===h?h=A:h===-1&&(h=u.length),u.slice(g,h)}for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!d){g=f+1;break}}else h===-1&&(d=!1,h=f+1);return h===-1?"":u.slice(g,h)},extname:function(u){a(u);for(var o=-1,f=0,g=-1,h=!0,d=0,y=u.length-1;y>=0;--y){var A=u.charCodeAt(y);if(A!==47)g===-1&&(h=!1,g=y+1),A===46?o===-1?o=y:d!==1&&(d=1):o!==-1&&(d=-1);else if(!h){f=y+1;break}}return o===-1||g===-1||d===0||d===1&&o===g-1&&o===f+1?"":u.slice(o,g)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return(function(o,f){var g=f.dir||f.root,h=f.base||(f.name||"")+(f.ext||"");return g?g===f.root?g+h:g+"/"+h:h})(0,u)},parse:function(u){a(u);var o={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return o;var f,g=u.charCodeAt(0),h=g===47;h?(o.root="/",f=1):f=0;for(var d=-1,y=0,A=-1,C=!0,_=u.length-1,E=0;_>=f;--_)if((g=u.charCodeAt(_))!==47)A===-1&&(C=!1,A=_+1),g===46?d===-1?d=_:E!==1&&(E=1):d!==-1&&(E=-1);else if(!C){y=_+1;break}return d===-1||A===-1||E===0||E===1&&d===A-1&&d===y+1?A!==-1&&(o.base=o.name=y===0&&h?u.slice(1,A):u.slice(y,A)):(y===0&&h?(o.name=u.slice(1,d),o.base=u.slice(1,A)):(o.name=u.slice(y,d),o.base=u.slice(y,A)),o.ext=u.slice(d,A)),y>0?o.dir=u.slice(0,y-1):h&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};p.posix=p,e.exports=p}},r={};function i(e){var a=r[e];if(a!==void 0)return a.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,i),c.exports}i.d=(e,a)=>{for(var c in a)i.o(a,c)&&!i.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},i.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),i.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{let e;i.r(n),i.d(n,{URI:()=>h,Utils:()=>X}),typeof process=="object"?e=process.platform==="win32":typeof navigator=="object"&&(e=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,c=/^\//,p=/^\/\//;function u(v,l){if(!v.scheme&&l)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${v.authority}", path: "${v.path}", query: "${v.query}", fragment: "${v.fragment}"}`);if(v.scheme&&!a.test(v.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(v.path){if(v.authority){if(!c.test(v.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(p.test(v.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const o="",f="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{constructor(l,m,b,L,w,x=!1){P(this,"scheme");P(this,"authority");P(this,"path");P(this,"query");P(this,"fragment");typeof l=="object"?(this.scheme=l.scheme||o,this.authority=l.authority||o,this.path=l.path||o,this.query=l.query||o,this.fragment=l.fragment||o):(this.scheme=(function(O,R){return O||R?O:"file"})(l,x),this.authority=m||o,this.path=(function(O,R){switch(O){case"https":case"http":case"file":R?R[0]!==f&&(R=f+R):R=f}return R})(this.scheme,b||o),this.query=L||o,this.fragment=w||o,u(this,x))}static isUri(l){return l instanceof h||!!l&&typeof l.authority=="string"&&typeof l.fragment=="string"&&typeof l.path=="string"&&typeof l.query=="string"&&typeof l.scheme=="string"&&typeof l.fsPath=="string"&&typeof l.with=="function"&&typeof l.toString=="function"}get fsPath(){return E(this)}with(l){if(!l)return this;let{scheme:m,authority:b,path:L,query:w,fragment:x}=l;return m===void 0?m=this.scheme:m===null&&(m=o),b===void 0?b=this.authority:b===null&&(b=o),L===void 0?L=this.path:L===null&&(L=o),w===void 0?w=this.query:w===null&&(w=o),x===void 0?x=this.fragment:x===null&&(x=o),m===this.scheme&&b===this.authority&&L===this.path&&w===this.query&&x===this.fragment?this:new y(m,b,L,w,x)}static parse(l,m=!1){const b=g.exec(l);return b?new y(b[2]||o,N(b[4]||o),N(b[5]||o),N(b[7]||o),N(b[9]||o),m):new y(o,o,o,o,o)}static file(l){let m=o;if(e&&(l=l.replace(/\\/g,f)),l[0]===f&&l[1]===f){const b=l.indexOf(f,2);b===-1?(m=l.substring(2),l=f):(m=l.substring(2,b),l=l.substring(b)||f)}return new y("file",m,l,o,o)}static from(l){const m=new y(l.scheme,l.authority,l.path,l.query,l.fragment);return u(m,!0),m}toString(l=!1){return j(this,l)}toJSON(){return this}static revive(l){if(l){if(l instanceof h)return l;{const m=new y(l);return m._formatted=l.external,m._fsPath=l._sep===d?l.fsPath:null,m}}return l}}const d=e?1:void 0;class y extends h{constructor(){super(...arguments);P(this,"_formatted",null);P(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=E(this)),this._fsPath}toString(m=!1){return m?j(this,!0):(this._formatted||(this._formatted=j(this,!1)),this._formatted)}toJSON(){const m={$mid:1};return this._fsPath&&(m.fsPath=this._fsPath,m._sep=d),this._formatted&&(m.external=this._formatted),this.path&&(m.path=this.path),this.scheme&&(m.scheme=this.scheme),this.authority&&(m.authority=this.authority),this.query&&(m.query=this.query),this.fragment&&(m.fragment=this.fragment),m}}const A={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function C(v,l,m){let b,L=-1;for(let w=0;w<v.length;w++){const x=v.charCodeAt(w);if(x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===45||x===46||x===95||x===126||l&&x===47||m&&x===91||m&&x===93||m&&x===58)L!==-1&&(b+=encodeURIComponent(v.substring(L,w)),L=-1),b!==void 0&&(b+=v.charAt(w));else{b===void 0&&(b=v.substr(0,w));const O=A[x];O!==void 0?(L!==-1&&(b+=encodeURIComponent(v.substring(L,w)),L=-1),b+=O):L===-1&&(L=w)}}return L!==-1&&(b+=encodeURIComponent(v.substring(L))),b!==void 0?b:v}function _(v){let l;for(let m=0;m<v.length;m++){const b=v.charCodeAt(m);b===35||b===63?(l===void 0&&(l=v.substr(0,m)),l+=A[b]):l!==void 0&&(l+=v[m])}return l!==void 0?l:v}function E(v,l){let m;return m=v.authority&&v.path.length>1&&v.scheme==="file"?`//${v.authority}${v.path}`:v.path.charCodeAt(0)===47&&(v.path.charCodeAt(1)>=65&&v.path.charCodeAt(1)<=90||v.path.charCodeAt(1)>=97&&v.path.charCodeAt(1)<=122)&&v.path.charCodeAt(2)===58?v.path[1].toLowerCase()+v.path.substr(2):v.path,e&&(m=m.replace(/\//g,"\\")),m}function j(v,l){const m=l?_:C;let b="",{scheme:L,authority:w,path:x,query:O,fragment:R}=v;if(L&&(b+=L,b+=":"),(w||L==="file")&&(b+=f,b+=f),w){let I=w.indexOf("@");if(I!==-1){const V=w.substr(0,I);w=w.substr(I+1),I=V.lastIndexOf(":"),I===-1?b+=m(V,!1,!1):(b+=m(V.substr(0,I),!1,!1),b+=":",b+=m(V.substr(I+1),!1,!0)),b+="@"}w=w.toLowerCase(),I=w.lastIndexOf(":"),I===-1?b+=m(w,!1,!0):(b+=m(w.substr(0,I),!1,!0),b+=w.substr(I))}if(x){if(x.length>=3&&x.charCodeAt(0)===47&&x.charCodeAt(2)===58){const I=x.charCodeAt(1);I>=65&&I<=90&&(x=`/${String.fromCharCode(I+32)}:${x.substr(3)}`)}else if(x.length>=2&&x.charCodeAt(1)===58){const I=x.charCodeAt(0);I>=65&&I<=90&&(x=`${String.fromCharCode(I+32)}:${x.substr(2)}`)}b+=m(x,!0,!1)}return O&&(b+="?",b+=m(O,!1,!1)),R&&(b+="#",b+=l?R:C(R,!1,!1)),b}function te(v){try{return decodeURIComponent(v)}catch{return v.length>3?v.substr(0,3)+te(v.substr(3)):v}}const ne=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function N(v){return v.match(ne)?v.replace(ne,(l=>te(l))):v}var re=i(470);const M=re.posix||re,F="/";var X;(function(v){v.joinPath=function(l,...m){return l.with({path:M.join(l.path,...m)})},v.resolvePath=function(l,...m){let b=l.path,L=!1;b[0]!==F&&(b=F+b,L=!0);let w=M.resolve(b,...m);return L&&w[0]===F&&!l.authority&&(w=w.substring(1)),l.with({path:w})},v.dirname=function(l){if(l.path.length===0||l.path===F)return l;let m=M.dirname(l.path);return m.length===1&&m.charCodeAt(0)===46&&(m=""),l.with({path:m})},v.basename=function(l){return M.basename(l.path)},v.extname=function(l){return M.extname(l.path)}})(X||(X={}))})(),Ye=n})();const{URI:rt,Utils:it}=Ye;exports.URI=rt;exports.Utils=it;exports.t=Ge;
|