Analysis-Services/BismNormalizer/AlmToolkit/html-resources/dist/5.chunk.js
Christian Wade bb73c063d8 Merge V1
2019-09-13 22:26:01 -07:00

1 line
16 KiB
JavaScript

webpackJsonp([5],{"hs/E":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,u,a,c,s,f,l,d,g,h,p,m,v,_,y,b,w,k,x,I,C,S,M,T,P=monaco.Promise,D=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval(function(){return n._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return n._stopWorker()})}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n,t,r,i,o=this,u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return n=this._getClient().then(function(n){e=n}).then(function(e){return o._worker.withSyncedResources(u)}).then(function(n){return e}),i=new P(function(e,n){t=e,r=n},function(){}),n.then(t,r),i},e}();!function(e){e.create=function(e,n){return{line:e,character:n}},e.is=function(e){var n=e;return F.defined(n)&&F.number(n.line)&&F.number(n.character)}}(r||(r={})),function(e){e.create=function(e,n,t,i){if(F.number(e)&&F.number(n)&&F.number(t)&&F.number(i))return{start:r.create(e,n),end:r.create(t,i)};if(r.is(e)&&r.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+t+", "+i+"]")},e.is=function(e){var n=e;return F.defined(n)&&r.is(n.start)&&r.is(n.end)}}(i||(i={})),function(e){e.create=function(e,n){return{uri:e,range:n}},e.is=function(e){var n=e;return F.defined(n)&&i.is(n.range)&&(F.string(n.uri)||F.undefined(n.uri))}}(o||(o={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(u||(u={})),function(e){e.create=function(e,n,t,r,i){var o={range:e,message:n};return F.defined(t)&&(o.severity=t),F.defined(r)&&(o.code=r),F.defined(i)&&(o.source=i),o},e.is=function(e){var n=e;return F.defined(n)&&i.is(n.range)&&F.string(n.message)&&(F.number(n.severity)||F.undefined(n.severity))&&(F.number(n.code)||F.string(n.code)||F.undefined(n.code))&&(F.string(n.source)||F.undefined(n.source))}}(a||(a={})),function(e){e.create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={title:e,command:n};return F.defined(t)&&t.length>0&&(i.arguments=t),i},e.is=function(e){var n=e;return F.defined(n)&&F.string(n.title)&&F.string(n.title)}}(c||(c={})),function(e){e.replace=function(e,n){return{range:e,newText:n}},e.insert=function(e,n){return{range:{start:e,end:e},newText:n}},e.del=function(e){return{range:e,newText:""}}}(s||(s={})),function(e){e.create=function(e,n){return{textDocument:e,edits:n}},e.is=function(e){var n=e;return F.defined(n)&&d.is(n.textDocument)&&Array.isArray(n.edits)}}(f||(f={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var n=e;return F.defined(n)&&F.string(n.uri)}}(l||(l={})),function(e){e.create=function(e,n){return{uri:e,version:n}},e.is=function(e){var n=e;return F.defined(n)&&F.string(n.uri)&&F.number(n.version)}}(d||(d={})),function(e){e.create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},e.is=function(e){var n=e;return F.defined(n)&&F.string(n.uri)&&F.string(n.languageId)&&F.number(n.version)&&F.string(n.text)}}(g||(g={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(h||(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}(p||(p={})),function(e){e.PlainText=1,e.Snippet=2}(m||(m={})),function(e){e.create=function(e){return{label:e}}}(v||(v={})),function(e){e.create=function(e,n){return{items:e||[],isIncomplete:!!n}}}(_||(_={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}(y||(y={})),function(e){e.create=function(e,n){return n?{label:e,documentation:n}:{label:e}}}(b||(b={})),function(e){e.create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={label:e};return F.defined(n)&&(i.documentation=n),i.parameters=F.defined(t)?t:[],i}}(w||(w={})),function(e){e.Text=1,e.Read=2,e.Write=3}(k||(k={})),function(e){e.create=function(e,n){var t={range:e};return F.number(n)&&(t.kind=n),t}}(x||(x={})),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}(I||(I={})),function(e){e.create=function(e,n,t,r,i){var o={name:e,kind:n,location:{uri:r,range:t}};return i&&(o.containerName=i),o}}(C||(C={})),function(e){e.create=function(e){return{diagnostics:e}},e.is=function(e){var n=e;return F.defined(n)&&F.typedArray(n.diagnostics,a.is)}}(S||(S={})),function(e){e.create=function(e,n){var t={range:e};return F.defined(n)&&(t.data=n),t},e.is=function(e){var n=e;return F.defined(n)&&i.is(n.range)&&(F.undefined(n.command)||c.is(n.command))}}(M||(M={})),function(e){e.create=function(e,n){return{tabSize:e,insertSpaces:n}},e.is=function(e){var n=e;return F.defined(n)&&F.number(n.tabSize)&&F.boolean(n.insertSpaces)}}(T||(T={}));var A,E,O=function(){};!function(e){e.create=function(e,n){return{range:e,target:n}},e.is=function(e){var n=e;return F.defined(n)&&i.is(n.range)&&(F.undefined(n.target)||F.string(n.target))}}(O||(O={})),function(e){e.create=function(e,n,t,r){return new W(e,n,t,r)},e.is=function(e){var n=e;return!!(F.defined(n)&&F.string(n.uri)&&(F.undefined(n.languageId)||F.string(n.languageId))&&F.number(n.lineCount)&&F.func(n.getText)&&F.func(n.positionAt)&&F.func(n.offsetAt))},e.applyEdits=function(e,n){for(var t=e.getText(),r=function e(n,t){if(n.length<=1)return n;var r=n.length/2|0,i=n.slice(0,r),o=n.slice(r);e(i,t),e(o,t);for(var u=0,a=0,c=0;u<i.length&&a<o.length;){var s=t(i[u],o[a]);n[c++]=s<=0?i[u++]:o[a++]}for(;u<i.length;)n[c++]=i[u++];for(;a<o.length;)n[c++]=o[a++];return n}(n,function(e,n){return 0==e.range.start.line-n.range.start.line?e.range.start.character-n.range.start.character:0}),i=t.length,o=r.length-1;o>=0;o--){var u=r[o],a=e.offsetAt(u.range.start),c=e.offsetAt(u.range.end);if(!(c<=i))throw new Error("Ovelapping edit");t=t.substring(0,a)+u.newText+t.substring(c,t.length),i=a}return t}}(A||(A={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(E||(E={}));var F,W=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,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 n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=null},e.prototype.getLineOffsets=function(){if(null===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r<n.length;r++){t&&(e.push(r),t=!1);var i=n.charAt(r);t="\r"===i||"\n"===i,"\r"===i&&r+1<n.length&&"\n"===n.charAt(r+1)&&r++}t&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,i=n.length;if(0===i)return r.create(0,e);for(;t<i;){var o=Math.floor((t+i)/2);n[o]>e?i=o:t=o+1}var u=t-1;return r.create(u,e-n[u])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line];return Math.max(Math.min(t+e.character,e.line+1<n.length?n[e.line+1]:this._content.length),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var n=Object.prototype.toString;e.defined=function(e){return"undefined"!=typeof e},e.undefined=function(e){return"undefined"==typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===n.call(e)},e.number=function(e){return"[object Number]"===n.call(e)},e.func=function(e){return"[object Function]"===n.call(e)},e.typedArray=function(e,n){return Array.isArray(e)&&e.every(n)}}(F||(F={}));var R=monaco.Uri,N=monaco.Range,j=function(){function e(e,n){var t=this;this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);var r=function(e){var n,r=e.getModeId();r===t._languageId&&(t._listener[e.uri.toString()]=e.onDidChangeContent(function(){clearTimeout(n),n=setTimeout(function(){return t._doValidate(e.uri,r)},500)}),t._doValidate(e.uri,r))},i=function(e){monaco.editor.setModelMarkers(e,t._languageId,[]);var n=e.uri.toString(),r=t._listener[n];r&&(r.dispose(),delete t._listener[n])};this._disposables.push(monaco.editor.onDidCreateModel(r)),this._disposables.push(monaco.editor.onWillDisposeModel(i)),this._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){i(e.model),r(e.model)})),this._disposables.push({dispose:function(){for(var e in t._listener)t._listener[e].dispose()}}),monaco.editor.getModels().forEach(r)}return e.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose()}),this._disposables=[]},e.prototype._doValidate=function(e,n){this._worker(e).then(function(n){return n.doValidation(e.toString())}).then(function(t){var r=t.map(function(e){return t="number"==typeof(n=e).code?String(n.code):n.code,{severity:function(e){switch(n.severity){case u.Error:return monaco.MarkerSeverity.Error;case u.Warning:return monaco.MarkerSeverity.Warning;case u.Information:return monaco.MarkerSeverity.Info;case u.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info}}(),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:t,source:n.source};var n,t}),i=monaco.editor.getModel(e);i.getModeId()===n&&monaco.editor.setModelMarkers(i,n,r)}).done(void 0,function(e){console.error(e)})},e}();function H(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function V(e){if(e)return new N(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}var L=function(){function e(e){this._worker=e}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!0,configurable:!0}),e.prototype.provideCompletionItems=function(e,n,t){e.getWordUntilPosition(n);var r=e.uri;return Q(t,this._worker(r).then(function(e){return e.doComplete(r.toString(),H(n))}).then(function(e){if(e){var n=e.items.map(function(e){var n={label:e.label,insertText:e.insertText,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,kind:function(n){var t=monaco.languages.CompletionItemKind;switch(e.kind){case p.Text:return t.Text;case p.Method:return t.Method;case p.Function:return t.Function;case p.Constructor:return t.Constructor;case p.Field:return t.Field;case p.Variable:return t.Variable;case p.Class:return t.Class;case p.Interface:return t.Interface;case p.Module:return t.Module;case p.Property:return t.Property;case p.Unit:return t.Unit;case p.Value:return t.Value;case p.Enum:return t.Enum;case p.Keyword:return t.Keyword;case p.Snippet:return t.Snippet;case p.Color:return t.Color;case p.File:return t.File;case p.Reference:return t.Reference}return t.Property}()};return e.textEdit&&(n.range=V(e.textEdit.range),n.insertText=e.textEdit.newText),e.insertTextFormat===m.Snippet&&(n.insertText={value:n.insertText}),n});return{isIncomplete:e.isIncomplete,items:n}}}))},e}();function K(e){return"string"==typeof e?{value:e}:(n=e)&&"object"==typeof n&&"string"==typeof n.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var n}var U=function(){function e(e){this._worker=e}return e.prototype.provideHover=function(e,n,t){var r=e.uri;return Q(t,this._worker(r).then(function(e){return e.doHover(r.toString(),H(n))}).then(function(e){if(e)return{range:V(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(K):[K(e)]}(e.contents)}}))},e}(),B=function(){function e(e){this._worker=e}return e.prototype.provideDocumentHighlights=function(e,n,t){var r=e.uri;return Q(t,this._worker(r).then(function(e){return e.findDocumentHighlights(r.toString(),H(n))}).then(function(e){if(e)return e.map(function(e){return{range:V(e.range),kind:function(n){switch(e.kind){case k.Read:return monaco.languages.DocumentHighlightKind.Read;case k.Write:return monaco.languages.DocumentHighlightKind.Write;case k.Text:return monaco.languages.DocumentHighlightKind.Text}return monaco.languages.DocumentHighlightKind.Text}()}})}))},e}();function z(e){return{uri:R.parse(e.uri),range:V(e.range)}}var $=function(){function e(e){this._worker=e}return e.prototype.provideDefinition=function(e,n,t){var r=e.uri;return Q(t,this._worker(r).then(function(e){return e.findDefinition(r.toString(),H(n))}).then(function(e){if(e)return[z(e)]}))},e}(),q=function(){function e(e){this._worker=e}return e.prototype.provideReferences=function(e,n,t,r){var i=e.uri;return Q(r,this._worker(i).then(function(e){return e.findReferences(i.toString(),H(n))}).then(function(e){if(e)return e.map(z)}))},e}(),J=function(){function e(e){this._worker=e}return e.prototype.provideRenameEdits=function(e,n,t,r){var i=e.uri;return Q(r,this._worker(i).then(function(e){return e.doRename(i.toString(),H(n),t)}).then(function(e){return function(e){if(e&&e.changes){var n=[];for(var t in e.changes){for(var r=[],i=0,o=e.changes[t];i<o.length;i++){var u=o[i];r.push({range:V(u.range),text:u.newText})}n.push({resource:R.parse(t),edits:r})}return{edits:n}}}(e)}))},e}(),G=function(){function e(e){this._worker=e}return e.prototype.provideDocumentSymbols=function(e,n){var t=e.uri;return Q(n,this._worker(t).then(function(e){return e.findDocumentSymbols(t.toString())}).then(function(e){if(e)return e.map(function(e){return{name:e.name,containerName:e.containerName,kind:function(n){var t=monaco.languages.SymbolKind;switch(e.kind){case I.File:return t.Array;case I.Module:return t.Module;case I.Namespace:return t.Namespace;case I.Package:return t.Package;case I.Class:return t.Class;case I.Method:return t.Method;case I.Property:return t.Property;case I.Field:return t.Field;case I.Constructor:return t.Constructor;case I.Enum:return t.Enum;case I.Interface:return t.Interface;case I.Function:return t.Function;case I.Variable:return t.Variable;case I.Constant:return t.Constant;case I.String:return t.String;case I.Number:return t.Number;case I.Boolean:return t.Boolean;case I.Array:return t.Array}return t.Function}(),location:z(e.location)}})}))},e}();function Q(e,n){return e.onCancellationRequested(function(){return n.cancel()}),n}n.setupMode=function(e){var n=[],t=new D(e);n.push(t);var r=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.getLanguageServiceWorker.apply(t,[e].concat(n))},i=e.languageId;n.push(monaco.languages.registerCompletionItemProvider(i,new L(r))),n.push(monaco.languages.registerHoverProvider(i,new U(r))),n.push(monaco.languages.registerDocumentHighlightProvider(i,new B(r))),n.push(monaco.languages.registerDefinitionProvider(i,new $(r))),n.push(monaco.languages.registerReferenceProvider(i,new q(r))),n.push(monaco.languages.registerDocumentSymbolProvider(i,new G(r))),n.push(monaco.languages.registerRenameProvider(i,new J(r))),n.push(new j(i,r))}}});