@openhab-ui/setup-and-maintenance
Version:
Configuration and maintenance interface for openHAB
7 lines • 211 kB
JavaScript
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* monaco-yaml version: 2.1.0(27349f9d154c226d15ea7e44ed0aeb5b67b19364)
* Released under the MIT license
* https://github.com/kpdecker/monaco-yaml/blob/master/LICENSE.md
*-----------------------------------------------------------------------------*/
!function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-languageserver-types/main",["require","exports"],e)}(function(e,t){"use strict";var n,r,o,i,a,s,u,l,c,f;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return x.objectLiteral(t)&&x.number(t.line)&&x.number(t.character)}}(n=t.Position||(t.Position={})),function(e){e.create=function(e,t,r,o){if(x.number(e)&&x.number(t)&&x.number(r)&&x.number(o))return{start:n.create(e,t),end:n.create(r,o)};if(n.is(e)&&n.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+r+", "+o+"]")},e.is=function(e){var t=e;return x.objectLiteral(t)&&n.is(t.start)&&n.is(t.end)}}(r=t.Range||(t.Range={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return x.defined(t)&&r.is(t.range)&&(x.string(t.uri)||x.undefined(t.uri))}}(o=t.Location||(t.Location={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return x.number(t.red)&&x.number(t.green)&&x.number(t.blue)&&x.number(t.alpha)}}(i=t.Color||(t.Color={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return r.is(t.range)&&i.is(t.color)}}(t.ColorInformation||(t.ColorInformation={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return x.string(t.label)&&(x.undefined(t.textEdit)||l.is(t))&&(x.undefined(t.additionalTextEdits)||x.typedArray(t.additionalTextEdits,l.is))}}(t.ColorPresentation||(t.ColorPresentation={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(t.FoldingRangeKind||(t.FoldingRangeKind={})),function(e){e.create=function(e,t,n,r,o){var i={startLine:e,endLine:t};return x.defined(n)&&(i.startCharacter=n),x.defined(r)&&(i.endCharacter=r),x.defined(o)&&(i.kind=o),i},e.is=function(e){var t=e;return x.number(t.startLine)&&x.number(t.startLine)&&(x.undefined(t.startCharacter)||x.number(t.startCharacter))&&(x.undefined(t.endCharacter)||x.number(t.endCharacter))&&(x.undefined(t.kind)||x.string(t.kind))}}(t.FoldingRange||(t.FoldingRange={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return x.defined(t)&&o.is(t.location)&&x.string(t.message)}}(a=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(t.DiagnosticSeverity||(t.DiagnosticSeverity={})),function(e){e.create=function(e,t,n,r,o,i){var a={range:e,message:t};return x.defined(n)&&(a.severity=n),x.defined(r)&&(a.code=r),x.defined(o)&&(a.source=o),x.defined(i)&&(a.relatedInformation=i),a},e.is=function(e){var t=e;return x.defined(t)&&r.is(t.range)&&x.string(t.message)&&(x.number(t.severity)||x.undefined(t.severity))&&(x.number(t.code)||x.string(t.code)||x.undefined(t.code))&&(x.string(t.source)||x.undefined(t.source))&&(x.undefined(t.relatedInformation)||x.typedArray(t.relatedInformation,a.is))}}(s=t.Diagnostic||(t.Diagnostic={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={title:e,command:t};return x.defined(n)&&n.length>0&&(o.arguments=n),o},e.is=function(e){var t=e;return x.defined(t)&&x.string(t.title)&&x.string(t.command)}}(u=t.Command||(t.Command={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return x.objectLiteral(t)&&x.string(t.newText)&&r.is(t.range)}}(l=t.TextEdit||(t.TextEdit={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return x.defined(t)&&p.is(t.textDocument)&&Array.isArray(t.edits)}}(c=t.TextDocumentEdit||(t.TextDocumentEdit={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||x.typedArray(t.documentChanges,c.is))}}(f=t.WorkspaceEdit||(t.WorkspaceEdit={}));var p,d,h,m,g=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(l.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(l.replace(e,t))},e.prototype.delete=function(e){this.edits.push(l.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),y=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach(function(e){var n=new g(e.edits);t._textEditChanges[e.textDocument.uri]=n}):e.changes&&Object.keys(e.changes).forEach(function(n){var r=new g(e.changes[n]);t._textEditChanges[n]=r}))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(p.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for versioned document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new g(o),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new g(o),this._textEditChanges[e]=r}return r},e}();t.WorkspaceChange=y,function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return x.defined(t)&&x.string(t.uri)}}(t.TextDocumentIdentifier||(t.TextDocumentIdentifier={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return x.defined(t)&&x.string(t.uri)&&x.number(t.version)}}(p=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return x.defined(t)&&x.string(t.uri)&&x.string(t.languageId)&&x.number(t.version)&&x.string(t.text)}}(t.TextDocumentItem||(t.TextDocumentItem={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(d=t.MarkupKind||(t.MarkupKind={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(d=t.MarkupKind||(t.MarkupKind={})),function(e){e.is=function(e){var t=e;return x.objectLiteral(e)&&d.is(t.kind)&&x.string(t.value)}}(h=t.MarkupContent||(t.MarkupContent={})),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}(t.CompletionItemKind||(t.CompletionItemKind={})),function(e){e.PlainText=1,e.Snippet=2}(t.InsertTextFormat||(t.InsertTextFormat={})),function(e){e.create=function(e){return{label:e}}}(t.CompletionItem||(t.CompletionItem={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(t.CompletionList||(t.CompletionList={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return x.string(t)||x.objectLiteral(t)&&x.string(t.language)&&x.string(t.value)}}(m=t.MarkedString||(t.MarkedString={})),function(e){e.is=function(e){var t=e;return x.objectLiteral(t)&&(h.is(t.contents)||m.is(t.contents)||x.typedArray(t.contents,m.is))&&(void 0===e.range||r.is(e.range))}}(t.Hover||(t.Hover={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(t.ParameterInformation||(t.ParameterInformation={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={label:e};return x.defined(t)&&(o.documentation=t),x.defined(n)?o.parameters=n:o.parameters=[],o}}(t.SignatureInformation||(t.SignatureInformation={})),function(e){e.Text=1,e.Read=2,e.Write=3}(t.DocumentHighlightKind||(t.DocumentHighlightKind={})),function(e){e.create=function(e,t){var n={range:e};return x.number(t)&&(n.kind=t),n}}(t.DocumentHighlight||(t.DocumentHighlight={})),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}(t.SymbolKind||(t.SymbolKind={})),function(e){e.create=function(e,t,n,r,o){var i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(t.SymbolInformation||(t.SymbolInformation={}));var v=function(){return function(){}}();t.DocumentSymbol=v,function(e){e.create=function(e,t,n,r,o,i){var a={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(a.children=i),a},e.is=function(e){var t=e;return t&&x.string(t.name)&&x.number(t.kind)&&r.is(t.range)&&r.is(t.selectionRange)&&(void 0===t.detail||x.string(t.detail))&&(void 0===t.deprecated||x.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))}}(v=t.DocumentSymbol||(t.DocumentSymbol={})),t.DocumentSymbol=v,function(e){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"}(t.CodeActionKind||(t.CodeActionKind={})),function(e){e.create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},e.is=function(e){var t=e;return x.defined(t)&&x.typedArray(t.diagnostics,s.is)&&(void 0===t.only||x.typedArray(t.only,x.string))}}(t.CodeActionContext||(t.CodeActionContext={})),function(e){e.create=function(e,t,n){var r={title:e};return u.is(t)?r.command=t:r.edit=t,void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&x.string(t.title)&&(void 0===t.diagnostics||x.typedArray(t.diagnostics,s.is))&&(void 0===t.kind||x.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||u.is(t.command))&&(void 0===t.edit||f.is(t.edit))}}(t.CodeAction||(t.CodeAction={})),function(e){e.create=function(e,t){var n={range:e};return x.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return x.defined(t)&&r.is(t.range)&&(x.undefined(t.command)||u.is(t.command))}}(t.CodeLens||(t.CodeLens={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return x.defined(t)&&x.number(t.tabSize)&&x.boolean(t.insertSpaces)}}(t.FormattingOptions||(t.FormattingOptions={}));var b=function(){return function(){}}();t.DocumentLink=b,function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return x.defined(t)&&r.is(t.range)&&(x.undefined(t.target)||x.string(t.target))}}(b=t.DocumentLink||(t.DocumentLink={})),t.DocumentLink=b,t.EOL=["\n","\r\n","\r"],function(e){e.create=function(e,t,n,r){return new S(e,t,n,r)},e.is=function(e){var t=e;return!!(x.defined(t)&&x.string(t.uri)&&(x.undefined(t.languageId)||x.string(t.languageId))&&x.number(t.lineCount)&&x.func(t.getText)&&x.func(t.positionAt)&&x.func(t.offsetAt))},e.applyEdits=function(e,t){for(var n=e.getText(),r=function e(t,n){if(t.length<=1)return t;var r=t.length/2|0,o=t.slice(0,r),i=t.slice(r);e(o,n),e(i,n);for(var a=0,s=0,u=0;a<o.length&&s<i.length;){var l=n(o[a],i[s]);t[u++]=l<=0?o[a++]:i[s++]}for(;a<o.length;)t[u++]=o[a++];for(;s<i.length;)t[u++]=i[s++];return t}(t,function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),o=n.length,i=r.length-1;i>=0;i--){var a=r[i],s=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Ovelapping edit");n=n.substring(0,s)+a.newText+n.substring(u,n.length),o=s}return n}}(t.TextDocument||(t.TextDocument={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(t.TextDocumentSaveReason||(t.TextDocumentSaveReason={}));var x,S=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=null}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=null},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,o=t.length;if(0===o)return n.create(0,e);for(;r<o;){var i=Math.floor((r+o)/2);t[i]>e?o=i:r=i+1}var a=r-1;return n.create(a,e-t[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(x||(x={}))}),define("vscode-languageserver-types",["vscode-languageserver-types/main"],function(e){return e}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vscode-nls/vscode-nls",["require","exports"],e)}(function(e,t){"use strict";function n(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,n){var r=n[0];return void 0!==t[r]?t[r]:e})}(t,n)}function r(e){return n}Object.defineProperty(t,"__esModule",{value:!0}),t.loadMessageBundle=r,t.config=function(e){return r}}),define("vscode-nls",["vscode-nls/vscode-nls"],function(e){return e}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/yamlAST",["require","exports"],e)}(function(e,t){"use strict";var n;function r(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:n.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(n=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var r=t?t.endPosition:e.colonPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:n.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,r,o){return{errors:[],referencesAnchor:e,value:o,startPosition:t,endPosition:r,kind:n.ANCHOR_REF,parent:null}},t.newScalar=function(e){return void 0===e&&(e=""),{errors:[],startPosition:-1,endPosition:-1,value:e,kind:n.SCALAR,parent:null,doubleQuoted:!1,rawValue:e}},t.newItems=r,t.newSeq=function(){return r()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:n.MAP,parent:null}}}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/common",["require","exports"],e)}(function(e,t){"use strict";function n(e){return void 0===e||null===e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=n,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.extend=function(e,t){var n,r,o,i;if(t)for(n=0,r=(i=Object.keys(t)).length;n<r;n+=1)e[o=i[n]]=t[o];return e},t.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},t.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}});var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};!function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/exception",["require","exports"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1),this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){var n,r;if(null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier)try{for(var o=__values(t.getClassIdentifier()),i=o.next();!i.done;i=o.next()){if(i.value==e.CLASS_IDENTIFIER)return!0}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(e){var t;return void 0===e&&(e=!1),t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e}();t.default=n}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/mark",["require","exports","./common"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./common"),r=function(){function e(e,t,n,r,o){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=o}return e.prototype.getSnippet=function(e,t){var r,o,i,a,s;if(void 0===e&&(e=0),void 0===t&&(t=75),!this.buffer)return null;for(e=e||4,t=t||75,r="",o=this.position;o>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){r=" ... ",o+=5;break}for(i="",a=this.position;a<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>t/2-1){i=" ... ",a-=5;break}return s=this.buffer.slice(o,a),n.repeat(" ",e)+r+s+i+"\n"+n.repeat(" ",e+this.position-o+r.length)+"^"},e.prototype.toString=function(e){void 0===e&&(e=!0);var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e}();t.default=r}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type",["require","exports","./exception"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./exception"),r=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];var i=function(){return function(e,t){var i,a;if(t=t||{},Object.keys(t).forEach(function(t){if(-1===r.indexOf(t))throw new n.default('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(i=t.styleAliases||null,a={},null!==i&&Object.keys(i).forEach(function(e){i[e].forEach(function(t){a[String(t)]=e})}),a),-1===o.indexOf(this.kind))throw new n.default('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}();t.Type=i}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/schema",["require","exports","./common","./exception","./type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./common"),r=e("./exception"),o=e("./type");function i(e,t,n){var r=[];return e.include.forEach(function(e){n=i(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return-1===r.indexOf(t)})}var a=function(){function e(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new r.default("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=i(this,"implicit",[]),this.compiledExplicit=i(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={};function r(e){n[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){for(var t,i,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];switch(a.length){case 1:t=e.DEFAULT,i=a[0];break;case 2:t=a[0],i=a[1];break;default:throw new r.default("Wrong number of arguments for Schema.create function")}if(t=n.toArray(t),i=n.toArray(i),!t.every(function(t){return t instanceof e}))throw new r.default("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!i.every(function(e){return e instanceof o.Type}))throw new r.default("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:t,explicit:i})},e}();t.Schema=a}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/binary",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.default=new n.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,i=e.length,a=r;for(n=0;n<i;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),i=o.length,a=r,s=0,u=[];for(t=0;t<i;t++)t%4==0&&t&&(u.push(s>>16&255),u.push(s>>8&255),u.push(255&s)),s=s<<6|a.indexOf(o.charAt(t));return 0==(n=i%4*6)?(u.push(s>>16&255),u.push(s>>8&255),u.push(255&s)):18===n?(u.push(s>>10&255),u.push(s>>2&255)):12===n&&u.push(s>>4&255),Buffer?new Buffer(u):u},predicate:function(e){return Buffer&&Buffer.isBuffer(e)},represent:function(e){var t,n,o="",i=0,a=e.length,s=r;for(t=0;t<a;t++)t%3==0&&t&&(o+=s[i>>18&63],o+=s[i>>12&63],o+=s[i>>6&63],o+=s[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(o+=s[i>>18&63],o+=s[i>>12&63],o+=s[i>>6&63],o+=s[63&i]):2===n?(o+=s[i>>10&63],o+=s[i>>4&63],o+=s[i<<2&63],o+=s[64]):1===n&&(o+=s[i>>2&63],o+=s[i<<4&63],o+=s[64],o+=s[64]),o}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/merge",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type");t.default=new n.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/omap",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type"),r=Object.prototype.hasOwnProperty,o=Object.prototype.toString;t.default=new n.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,a,s,u=[],l=e;for(t=0,n=l.length;t<n;t+=1){if(i=l[t],s=!1,"[object Object]"!==o.call(i))return!1;for(a in i)if(r.call(i,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==u.indexOf(a))return!1;u.push(a)}return!0},construct:function(e){return null!==e?e:[]}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/pairs",["require","exports","../type","../yamlAST"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type"),r=e("../yamlAST"),o=Object.prototype.toString;t.default=new n.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;if(e.kind!=r.Kind.SEQ)return!1;var t,n,i,a=e.items;for(t=0,n=a.length;t<n;t+=1){if(i=a[t],"[object Object]"!==o.call(i))return!1;if(!Array.isArray(i.mappings))return!1;if(1!==i.mappings.length)return!1}return!0},construct:function(e){if(null===e||!Array.isArray(e.items))return[];var t,n,o,i=e.items;for((o=r.newItems()).parent=e.parent,o.startPosition=e.startPosition,o.endPosition=e.endPosition,t=0,n=i.length;t<n;t+=1){var a=i[t].mappings[0],s=r.newItems();s.parent=o,s.startPosition=a.key.startPosition,s.endPosition=a.value.startPosition,a.key.parent=s,a.value.parent=s,s.items=[a.key,a.value],o.items.push(s)}return o}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/set",["require","exports","../type","../yamlAST"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type"),r=e("../yamlAST");Object.prototype.hasOwnProperty;t.default=new n.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){return null===e||e.kind==r.Kind.MAP},construct:function(e){return null!==e?e:{}}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/timestamp",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");t.default=new n.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&null!==r.exec(e)},construct:function(e){var t,n,o,i,a,s,u,l,c=0,f=null;if(null===(t=r.exec(e)))throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,o,i));if(a=+t[4],s=+t[5],u=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),l=new Date(Date.UTC(n,o,i,a,s,u,c)),f&&l.setTime(l.getTime()-f),l},instanceOf:Date,represent:function(e){return e.toISOString()}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/map",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type");t.default=new n.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/seq",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type");t.default=new n.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/str",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type");t.default=new n.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/schema/failsafe",["require","exports","../schema","../type/map","../type/seq","../type/str"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../schema"),r=e("../type/map"),o=e("../type/seq"),i=e("../type/str");t.default=new n.Schema({explicit:[i.default,o.default,r.default]})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/bool",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type");t.default=new n.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/float",["require","exports","../common","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../common"),r=e("../type"),o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");t.default=new r.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!o.test(e)},construct:function(e){var t,n,r,o;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,o=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(e){o.unshift(parseFloat(e,10))}),t=0,r=1,o.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(0!=e%1||n.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return e.toString(10)},defaultStyle:"lowercase"})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/int",["require","exports","../common","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../common"),r=e("../type");function o(e){return 48<=e&&e<=55}function i(e){return 48<=e&&e<=57}t.default=new r.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,a=0,s=!1;if(!r)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===r)return!0;if("b"===(t=e[++a])){for(a++;a<r;a++)if("_"!==(t=e[a])){if("0"!==t&&"1"!==t)return!1;s=!0}return s}if("x"===t){for(a++;a<r;a++)if("_"!==(t=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;s=!0}return s}for(;a<r;a++)if("_"!==(t=e[a])){if(!o(e.charCodeAt(a)))return!1;s=!0}return s}for(;a<r;a++)if("_"!==(t=e[a])){if(":"===t)break;if(!i(e.charCodeAt(a)))return!1;s=!0}return!!s&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(a)))},construct:function(e){var t,n,r=e,o=1,i=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(o=-1),t=(r=r.slice(1))[0]),"0"===r?0:"0"===t?"b"===r[1]?o*parseInt(r.slice(2),2):"x"===r[1]?o*parseInt(r,16):o*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach(function(e){i.unshift(parseInt(e,10))}),r=0,n=1,i.forEach(function(e){r+=e*n,n*=60}),o*r):o*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&0==e%1&&!n.isNegativeZero(e)},represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/null",["require","exports","../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../type");t.default=new n.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/schema/json",["require","exports","../schema","./failsafe","../type/bool","../type/float","../type/int","../type/null"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../schema"),r=e("./failsafe"),o=e("../type/bool"),i=e("../type/float"),a=e("../type/int"),s=e("../type/null");t.default=new n.Schema({include:[r.default],implicit:[s.default,o.default,a.default,i.default]})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/schema/core",["require","exports","../schema","./json"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../schema"),r=e("./json");t.default=new n.Schema({include:[r.default]})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/schema/default_safe",["require","exports","../schema","../type/binary","../type/merge","../type/omap","../type/pairs","../type/set","../type/timestamp","./core"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../schema"),r=e("../type/binary"),o=e("../type/merge"),i=e("../type/omap"),a=e("../type/pairs"),s=e("../type/set"),u=e("../type/timestamp"),l=e("./core");t.default=new n.Schema({include:[l.default],implicit:[u.default,o.default],explicit:[r.default,i.default,a.default,s.default]})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/js/regexp",["require","exports","../../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../../type");t.default=new n.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1;t=t.slice(1,t.length-r.length-1)}try{return new RegExp(t,r),!0}catch(e){return!1}},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/type/js/undefined",["require","exports","../../type"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../../type");t.default=new n.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/schema/default_full",["require","exports","../schema","./default_safe","../type/js/regexp","../type/js/undefined"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../schema"),r=e("./default_safe"),o=e("../type/js/regexp"),i=e("../type/js/undefined"),a=new n.Schema({include:[r.default],explicit:[i.default,o.default]});n.Schema.DEFAULT=a,t.default=a});__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};!function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("vs/language/yaml/yaml-ast-parser/loader",["require","exports","./yamlAST","./common","./exception","./mark","./schema/default_full","./schema/default_safe"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./yamlAST"),r=e("./common"),o=e("./exception"),i=e("./mark"),a=e("./schema/default_full"),s=e("./schema/default_safe"),u=Object.prototype.hasOwnProperty,l=1,c=2,f=3,p=4,d=1,h=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uD800-\uDFFF\uFFFE\uFFFF]/,y=/[\x85\u2028\u2029]/,v=/[,\[\]\{\}]/,b=/^(?:!|!!|![a-z\-]+!)$/i,x=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function S(e){return 10===e||13===e}function A(e){return 9===e||32===e}function _(e){return 9===e||32===e||10===e||13===e}function w(e){return 44===e||91===e||93===e||123===e||125===e}function C(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function j(e){return 48<=e&&e<=57?e-48:-1}function k(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O,I=new Array(256),P=new Array(256),T=new Array(256),E=new Array(256),M=0;M<256;M++)E[M]=P[M]=48===(O=M)?"\0":97===O?"":98===O?"\b":116===O?"\t":9===O?"\t":110===O?"\n":118===O?"\v":102===O?"\f":114===O?"\r":101===O?"":32===O?" ":34===O?'"':47===O?"/":92===O?"\\":78===O?"
":95===O?" ":76===O?"\u2028":80===O?"\u2029":"",I[M]=P[M]?1:0,T[M]=1,I[M]||(E[M]="\\"+String.fromCharCode(M));var N=function(){return function(e,t){this.errorMap={},this.errors=[],this.lines=[],this.input=e,this.filename=t.filename||null,this.schema=t.schema||a.default,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.allowAnyEscape=t.allowAnyEscape||!1,this.ignoreDuplicateKeys=t.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}();function F(e,t,n){return void 0===n&&(n=!1),new o.default(t,new i.default(e.filename,e.input,e.position,e.line,e.position-e.lineStart),n)}function L(e,t,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!1);var s=function(e,t){for(var n,r=0;r<e.lines.length&&!(e.lines[r].start>t);r++)n=e.lines[r];if(!n)return{start:0,line:0};return n}(e,t);if(s){var u=n+t;if(!e.errorMap[u]){var l=new i.default(e.filename,e.input,t,s.line,t-s.start);a&&(l.toLineEnd=!0);var c=new o.default(n,l,r);e.errors.push(c)}}}function D(e,t){var n=F(e,t),r=n.message+n.mark.position;e.errorMap[r]||(e.errors.push(n),e.errorMap[r]=1);for(var o=e.position;;){if(e.position>=e.input.length-1)return;var i=e.input.charAt(e.position);if("\n"==i)return e.position--,void(e.position==o&&(e.position+=1));if("\r"==i)return e.position--,void(e.position==o&&(e.position+=1));e.position++}}function q(e,t){var n=F(e,t);e.onWarning&&e.onWarning.call(null,n)}var V={YAML:function(e,t,n){var r,o,i;null!==e.version&&D(e,"duplication of %YAML directive"),1!==n.length&&D(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&D(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&D(e,"found incompatible YAML document (version 1.2 is required)"),e.version=n[0],e.checkLineBreaks=i<2,2!==i&&D(e,"found incompatible YAML document (version 1.2 is required)")},TAG:function(e,t,n){var r,o;2!==n.length&&D(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],b.test(r)||D(e,"ill-formed tag handle (first argument) of the TAG directive"),u.call(e.tagMap,r)&&D(e,'there is a previously declared suffix for "'+r+'" tag handle'),x.test(o)||D(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=o}};function R(e,t,n,r){var o,i,a,s,u=e.result;if(-1==u.startPosition&&(u.startPosition=t),t<=n){if(s=e.input.slice(t,n),r)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||D(e,"expected valid JSON character");u.value+=s,u.endPosition=n}}function W(e,t,r,o,i){if(null!=o){null===t&&(t={startPosition:o.startPosition,endPosition:i.endPosition,parent:null,errors:[],mappings:[],kind:n.Kind.MAP});var a=n.newMapping(o,i);return a.parent=t,o.parent=a,null!=i&&(i.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(t){t.key&&t.key.value===(a.key&&a.key.value)&&(L(e,a.key.startPosition,"duplicate key"),L(e,t.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=a.endPosition,t}}function U(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):D(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function K(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;A(o);)9===o&&e.errors.push(F(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!S(o))break;for(U(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&q(e,"deficient indentation"),r}function Y(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||e.input.charCodeAt(n+1)!==t||e.input.charCodeAt(n+2)!==t||(n+=3,0!==(t=e.input.charCodeAt(n))&&!_(t)))}function B(e,t,n){1===n?t.value+=" ":n>1&&(t.value+=r.repeat("\n",n-1))}function $(e,t){var r,o,i=e.tag,a=e.anchor,s=n.newItems(),u=!1;for(null!==e.anchor&&(s.anchorId=e.anchor,e.anchorMap[e.anchor]=s),s.startPosition=e.position,o=e.input.charCodeAt(e.position);0!==o&&45===o&&_(e.input.charCodeAt(e.position+1));)if(u=!0,e.position++,K(e,!0,-1)&&e.lineIndent<=t)s.items.push(null),o=e.input.charCodeAt(e.position);else if(r=e.line,J(e,t,f,!1,!0),e.result.parent=s,s.items.push(e.result),K(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==o)D(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return s.endPosition=e.position,!!u&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,s.endPosition=e.position,!0)}function H(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&D(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):D(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!_(o);)33===o&&(a?D(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),b.test(n)||D(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),v.test(r)&&D(e,"tag suffix cannot contain flow indicator characters")}return r&&!x.test(r)&&D(e,"tag name cannot contain such characters: "+r),i?e.tag=r:u.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:D(e,'undeclared tag handle "'+n+'"'),!0}function G(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&D(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!_(n)&&!w(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&D(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function J(e,t,o,i,a){var s,g,y,v,b,x,O,M,N=1,F=!1,q=!1;e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=g=y=p===o||f===o,i&&K(e,!0,-1)&&(F=!0,e.lineIndent>t?N=1:e.lineIndent===t?N=0:e.lineIndent<t&&(N=-1));var V=e.position;e.position,e.lineStart;if(1===N)for(;H(e)||G(e);)K(e,!0,-1)?(F=!0,y=s,e.lineIndent>t?N=1:e.lineIndent===t?N=0:e.lineIndent<t&&(N=-1)):y=!1;if(y&&(y=F||a),1!==N&&p!==o||(O=l===o||c===o?t:t+1,M=e.position-e.lineStart,1===N?y&&($(e,M)||function(e,t,r){var o,i,a,s,u=e.tag,l=e.anchor,f=n.newMap(),d=null,h=null,m=!1,g=!1;for(f.startPosition=e.position,null!==e.anchor&&(f.anchorId=e.anchor,e.anchorMap[e.anchor]=f),s=e.input.charCodeAt(e.position);0!==s;){if(o=e.input.charCodeAt(e.position+1),a=e.line,63!==s&&58!==s||!_(o)){if(!J(e,r,c,!1,!0))break;if(e.line===a){for(s=e.input.charCodeAt(e.position);A(s);)s=e.input.charCodeAt(++e.position);if(58===s)_(s=e.input.charCodeAt(++e.position))||D(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(W(e,f,0,d,null),d=h=null),g=!0,m=!1,i=!1,e.tag,d=e.result;else{if(e.position==e.lineStart&&Y(e))break;if(!g)return e.tag=u,e.anchor=l,!0;D(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=u,e.anchor=l,!0;for(D(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(S(s=e.input.charCodeAt(--e.position))){e.position++;break}}}else 63===s?(m&&(W(e,f,0,d,null),d=h=null),g=!0,m=!0,i=!0):m?(m=!1,i=!0):D(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,s=o;if((e.line===a||e.lineIndent>t)&&(J(e,t,p,!0,i)&&(m?d=e.result:h=e.result),m||(W(e,f,0,d,h),d=h=null),K(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)D(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&W(e,f,0,d,null),g&&(e.tag=u,e.anchor=l,e.kind="mapping",e.result=f),