yunkong2.javascript/admin/monaco-editor/2.bundle.js
2018-07-21 19:30:07 +08:00

1 line
27 KiB
JavaScript

(self.webpackJsonp=self.webpackJsonp||[]).push([[2],{10:function(e,t,n){"use strict";var r,o,i,a,u,s,c,f;n.d(t,"g",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"j",function(){return c}),n.d(t,"f",function(){return h}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return v}),n.d(t,"h",function(){return T}),n.d(t,"i",function(){return M}),function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return j.defined(t)&&j.number(t.line)&&j.number(t.character)}}(r||(r={})),function(e){e.create=function(e,t,n,o){if(j.number(e)&&j.number(t)&&j.number(n)&&j.number(o))return{start:r.create(e,t),end:r.create(n,o)};if(r.is(e)&&r.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+o+"]")},e.is=function(e){var t=e;return j.defined(t)&&r.is(t.start)&&r.is(t.end)}}(o||(o={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return j.defined(t)&&o.is(t.range)&&(j.string(t.uri)||j.undefined(t.uri))}}(i||(i={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(a||(a={})),function(e){e.create=function(e,t,n,r,o){var i={range:e,message:t};return j.defined(n)&&(i.severity=n),j.defined(r)&&(i.code=r),j.defined(o)&&(i.source=o),i},e.is=function(e){var t=e;return j.defined(t)&&o.is(t.range)&&j.string(t.message)&&(j.number(t.severity)||j.undefined(t.severity))&&(j.number(t.code)||j.string(t.code)||j.undefined(t.code))&&(j.string(t.source)||j.undefined(t.source))}}(u||(u={})),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 j.defined(n)&&n.length>0&&(o.arguments=n),o},e.is=function(e){var t=e;return j.defined(t)&&j.string(t.title)&&j.string(t.title)}}(s||(s={})),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:""}}}(c||(c={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return j.defined(t)&&d.is(t.textDocument)&&Array.isArray(t.edits)}}(f||(f={}));var l,d,g,h,p,m,v,b,k,_,y,C,w,T,E,S,x,A,I=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(c.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(c.replace(e,t))},e.prototype.delete=function(e){this.edits.push(c.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}();!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 I(e.edits);t._textEditChanges[e.textDocument.uri]=n}):e.changes&&Object.keys(e.changes).forEach(function(n){var r=new I(e.changes[n]);t._textEditChanges[n]=r}))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(d.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 I(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 I(o),this._textEditChanges[e]=r}return r}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return j.defined(t)&&j.string(t.uri)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return j.defined(t)&&j.string(t.uri)&&j.number(t.version)}}(d||(d={})),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 j.defined(t)&&j.string(t.uri)&&j.string(t.languageId)&&j.number(t.version)&&j.string(t.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,t){return{items:e||[],isIncomplete:!!t}}}(b||(b={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}(k||(k={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(_||(_={})),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 j.defined(t)&&(o.documentation=t),j.defined(n)?o.parameters=n:o.parameters=[],o}}(y||(y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(C||(C={})),function(e){e.create=function(e,t){var n={range:e};return j.number(t)&&(n.kind=t),n}}(w||(w={})),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||(T={})),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}}(E||(E={})),function(e){e.create=function(e){return{diagnostics:e}},e.is=function(e){var t=e;return j.defined(t)&&j.typedArray(t.diagnostics,u.is)}}(S||(S={})),function(e){e.create=function(e,t){var n={range:e};return j.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return j.defined(t)&&o.is(t.range)&&(j.undefined(t.command)||s.is(t.command))}}(x||(x={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return j.defined(t)&&j.number(t.tabSize)&&j.boolean(t.insertSpaces)}}(A||(A={}));var O=function(){return function(){}}();!function(e){e.create=function(e,t){return{range:e,target:t}},e.is=function(e){var t=e;return j.defined(t)&&o.is(t.range)&&(j.undefined(t.target)||j.string(t.target))}}(O||(O={}));var M,P;!function(e){e.create=function(e,t,n,r){return new D(e,t,n,r)},e.is=function(e){var t=e;return!!(j.defined(t)&&j.string(t.uri)&&(j.undefined(t.languageId)||j.string(t.languageId))&&j.number(t.lineCount)&&j.func(t.getText)&&j.func(t.positionAt)&&j.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,u=0,s=0;a<o.length&&u<i.length;){var c=n(o[a],i[u]);t[s++]=c<=0?o[a++]:i[u++]}for(;a<o.length;)t[s++]=o[a++];for(;u<i.length;)t[s++]=i[u++];return t}(t,function(e,t){return 0==e.range.start.line-t.range.start.line?e.range.start.character-t.range.start.character:0}),o=n.length,i=r.length-1;i>=0;i--){var a=r[i],u=e.offsetAt(a.range.start),s=e.offsetAt(a.range.end);if(!(s<=o))throw new Error("Ovelapping edit");n=n.substring(0,u)+a.newText+n.substring(s,n.length),o=u}return n}}(M||(M={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(P||(P={}));var j,D=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(),n=0,o=t.length;if(0===o)return r.create(0,e);for(;n<o;){var i=Math.floor((n+o)/2);t[i]>e?o=i:n=i+1}var a=n-1;return r.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.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(j||(j={}))},150:function(e,t,n){"use strict";n.r(t);var r=monaco.Promise,o=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval(function(){return t._checkIfIdle()},3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return t._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/json/jsonWorker",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,t,n,o,i,a=this,u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return t=this._getClient().then(function(t){e=t}).then(function(e){return a._worker.withSyncedResources(u)}).then(function(t){return e}),i=new r(function(e,t){n=e,o=t},function(){}),t.then(n,o),i},e}();var i=n(10),a=monaco.Uri,u=monaco.Range,s=function(){function e(e,t,n){var r=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);var o=function(e){var t,n=e.getModeId();n===r._languageId&&(r._listener[e.uri.toString()]=e.onDidChangeContent(function(){clearTimeout(t),t=setTimeout(function(){return r._doValidate(e.uri,n)},500)}),r._doValidate(e.uri,n))},i=function(e){monaco.editor.setModelMarkers(e,r._languageId,[]);var t=e.uri.toString(),n=r._listener[t];n&&(n.dispose(),delete r._listener[t])};this._disposables.push(monaco.editor.onDidCreateModel(o)),this._disposables.push(monaco.editor.onWillDisposeModel(function(e){i(e),r._resetSchema(e.uri)})),this._disposables.push(monaco.editor.onDidChangeModelLanguage(function(e){i(e.model),o(e.model),r._resetSchema(e.model.uri)})),this._disposables.push(n.onDidChange(function(e){monaco.editor.getModels().forEach(function(e){e.getModeId()===r._languageId&&(i(e),o(e))})})),this._disposables.push({dispose:function(){for(var e in monaco.editor.getModels().forEach(i),r._listener)r._listener[e].dispose()}}),monaco.editor.getModels().forEach(o)}return e.prototype.dispose=function(){this._disposables.forEach(function(e){return e&&e.dispose()}),this._disposables=[]},e.prototype._resetSchema=function(e){this._worker().then(function(t){t.resetSchema(e.toString())})},e.prototype._doValidate=function(e,t){this._worker(e).then(function(n){return n.doValidation(e.toString()).then(function(n){var r=n.map(function(e){return n="number"==typeof(t=e).code?String(t.code):t.code,{severity:function(e){switch(e){case i.c.Error:return monaco.MarkerSeverity.Error;case i.c.Warning:return monaco.MarkerSeverity.Warning;case i.c.Information:return monaco.MarkerSeverity.Info;case i.c.Hint:return monaco.MarkerSeverity.Hint;default:return monaco.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source};var t,n}),o=monaco.editor.getModel(e);o.getModeId()===t&&monaco.editor.setModelMarkers(o,t,r)})}).then(void 0,function(e){console.error(e)})},e}();function c(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function f(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function l(e){if(e)return new u(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function d(e){var t=monaco.languages.CompletionItemKind;switch(e){case i.b.Text:return t.Text;case i.b.Method:return t.Method;case i.b.Function:return t.Function;case i.b.Constructor:return t.Constructor;case i.b.Field:return t.Field;case i.b.Variable:return t.Variable;case i.b.Class:return t.Class;case i.b.Interface:return t.Interface;case i.b.Module:return t.Module;case i.b.Property:return t.Property;case i.b.Unit:return t.Unit;case i.b.Value:return t.Value;case i.b.Enum:return t.Enum;case i.b.Keyword:return t.Keyword;case i.b.Snippet:return t.Snippet;case i.b.Color:return t.Color;case i.b.File:return t.File;case i.b.Reference:return t.Reference}return t.Property}function g(e){if(e)return{range:l(e.range),text:e.newText}}var h=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,t,n){e.getWordUntilPosition(t);var r=e.uri;return C(n,this._worker(r).then(function(e){return e.doComplete(r.toString(),c(t))}).then(function(e){if(e){var t=e.items.map(function(e){var t={label:e.label,insertText:e.insertText,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,kind:d(e.kind)};return e.textEdit&&(t.range=l(e.textEdit.range),t.insertText=e.textEdit.newText),e.insertTextFormat===i.d.Snippet&&(t.insertText={value:t.insertText}),t});return{isIncomplete:e.isIncomplete,items:t}}}))},e}();function p(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}var m=function(){function e(e){this._worker=e}return e.prototype.provideHover=function(e,t,n){var r=e.uri;return C(n,this._worker(r).then(function(e){return e.doHover(r.toString(),c(t))}).then(function(e){if(e)return{range:l(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(p):[p(e)]}(e.contents)}}))},e}();var v=function(){function e(e){this._worker=e}return e.prototype.provideDocumentSymbols=function(e,t){var n=e.uri;return C(t,this._worker(n).then(function(e){return e.findDocumentSymbols(n.toString())}).then(function(e){if(e)return e.map(function(e){return{name:e.name,containerName:e.containerName,kind:function(e){var t=monaco.languages.SymbolKind;switch(e){case i.h.File:return t.Array;case i.h.Module:return t.Module;case i.h.Namespace:return t.Namespace;case i.h.Package:return t.Package;case i.h.Class:return t.Class;case i.h.Method:return t.Method;case i.h.Property:return t.Property;case i.h.Field:return t.Field;case i.h.Constructor:return t.Constructor;case i.h.Enum:return t.Enum;case i.h.Interface:return t.Interface;case i.h.Function:return t.Function;case i.h.Variable:return t.Variable;case i.h.Constant:return t.Constant;case i.h.String:return t.String;case i.h.Number:return t.Number;case i.h.Boolean:return t.Boolean;case i.h.Array:return t.Array}return t.Function}(e.kind),location:(t=e.location,{uri:a.parse(t.uri),range:l(t.range)})};var t})}))},e}();function b(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var k=function(){function e(e){this._worker=e}return e.prototype.provideDocumentFormattingEdits=function(e,t,n){var r=e.uri;return C(n,this._worker(r).then(function(e){return e.format(r.toString(),null,b(t)).then(function(e){if(e&&0!==e.length)return e.map(g)})}))},e}(),_=function(){function e(e){this._worker=e}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,r){var o=e.uri;return C(r,this._worker(o).then(function(e){return e.format(o.toString(),f(t),b(n)).then(function(e){if(e&&0!==e.length)return e.map(g)})}))},e}(),y=function(){function e(e){this._worker=e}return e.prototype.provideDocumentColors=function(e,t){var n=e.uri;return C(t,this._worker(n).then(function(e){return e.findDocumentColors(n.toString())}).then(function(e){if(e)return e.map(function(e){return{color:e.color,range:l(e.range)}})}))},e.prototype.provideColorPresentations=function(e,t,n){var r=e.uri;return C(n,this._worker(r).then(function(e){return e.getColorPresentations(r.toString(),t.color,f(t.range))}).then(function(e){if(e)return e.map(function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=g(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(g)),t})}))},e}();function C(e,t){return t.cancel&&e.onCancellationRequested(function(){return t.cancel()}),t}var w=n(30);function T(e){return{getInitialState:function(){return new W(null,null,!1)},tokenize:function(t,n,r,o){return function(e,t,n,r,o){void 0===r&&(r=0);var i=0,a=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}var u,s,c=w.a(t),f=n.lastWasColon;s={tokens:[],endState:n.clone()};for(;;){var l=r+c.getPosition(),d="";if(17===(u=c.scan()))break;if(l===r+c.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(c.getPosition(),3));switch(a&&(l-=i),a=i>0,u){case 1:case 2:d=E,f=!1;break;case 3:case 4:d=S,f=!1;break;case 6:d=x,f=!0;break;case 5:d=A,f=!1;break;case 8:case 9:d=I,f=!1;break;case 7:d=O,f=!1;break;case 10:d=f?M:j,f=!1;break;case 11:d=P,f=!1}if(e)switch(u){case 12:d=F;break;case 13:d=D}s.endState=new W(n.getStateData(),c.getTokenError(),f),s.tokens.push({startIndex:l,scopes:d})}return s}(e,t,n,r)}}}var E="delimiter.bracket.json",S="delimiter.array.json",x="delimiter.colon.json",A="delimiter.comma.json",I="keyword.json",O="keyword.json",M="string.value.json",P="number.json",j="string.key.json",D="comment.block.json",F="comment.line.json",W=function(){function e(e,t,n){this._state=e,this.scanError=t,this.lastWasColon=n}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon)},e.prototype.equals=function(t){return t===this||!!(t&&t instanceof e)&&(this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon)},e.prototype.getStateData=function(){return this._state},e.prototype.setStateData=function(e){this._state=e},e}();function L(e){var t=[],n=new o(e);t.push(n);var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.getLanguageServiceWorker.apply(n,e)},i=e.languageId;t.push(monaco.languages.registerCompletionItemProvider(i,new h(r))),t.push(monaco.languages.registerHoverProvider(i,new m(r))),t.push(monaco.languages.registerDocumentSymbolProvider(i,new v(r))),t.push(monaco.languages.registerDocumentFormattingEditProvider(i,new k(r))),t.push(monaco.languages.registerDocumentRangeFormattingEditProvider(i,new _(r))),t.push(new s(i,r,e)),t.push(monaco.languages.setTokensProvider(i,T(!0))),t.push(monaco.languages.setLanguageConfiguration(i,V)),t.push(monaco.languages.registerColorProvider(i,new y(r)))}n.d(t,"setupMode",function(){return L});var V={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},30:function(e,t,n){"use strict";function r(e,t){void 0===t&&(t=!1);var n=0,r=e.length,u="",s=0,c=16,f=0;function l(t,r){for(var o=0,i=0;o<t||!r;){var a=e.charCodeAt(n);if(a>=48&&a<=57)i=16*i+a-48;else if(a>=65&&a<=70)i=16*i+a-65+10;else{if(!(a>=97&&a<=102))break;i=16*i+a-97+10}n++,o++}return o<t&&(i=-1),i}function d(){if(u="",f=0,s=n,n>=r)return s=r,c=17;var t=e.charCodeAt(n);if(o(t)){do{n++,u+=String.fromCharCode(t),t=e.charCodeAt(n)}while(o(t));return c=15}if(i(t))return n++,u+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,u+="\n"),c=14;switch(t){case 123:return n++,c=1;case 125:return n++,c=2;case 91:return n++,c=3;case 93:return n++,c=4;case 58:return n++,c=6;case 44:return n++,c=5;case 34:return n++,u=function(){for(var t="",o=n;;){if(n>=r){t+=e.substring(o,n),f=2;break}var a=e.charCodeAt(n);if(34===a){t+=e.substring(o,n),n++;break}if(92!==a){if(a>=0&&a<=31){if(i(a)){t+=e.substring(o,n),f=2;break}f=6}n++}else{if(t+=e.substring(o,n),++n>=r){f=2;break}switch(a=e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var u=l(4,!0);u>=0?t+=String.fromCharCode(u):f=4;break;default:f=5}o=n}}return t}(),c=10;case 47:var d=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<r&&!i(e.charCodeAt(n));)n++;return u=e.substring(d,n),c=12}if(42===e.charCodeAt(n+1)){n+=2;for(var h=!1;n<r;){if(42===e.charCodeAt(n)&&n+1<r&&47===e.charCodeAt(n+1)){n+=2,h=!0;break}n++}return h||(n++,f=1),u=e.substring(d,n),c=13}return u+=String.fromCharCode(t),n++,c=16;case 45:if(u+=String.fromCharCode(t),++n===r||!a(e.charCodeAt(n)))return c=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u+=function(){var t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&a(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&a(e.charCodeAt(n))))return f=3,e.substring(t,n);for(n++;n<e.length&&a(e.charCodeAt(n));)n++}var r=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n)))if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&a(e.charCodeAt(n))){for(n++;n<e.length&&a(e.charCodeAt(n));)n++;r=n}else f=3;return e.substring(t,r)}(),c=11;default:for(;n<r&&g(t);)n++,t=e.charCodeAt(n);if(s!==n){switch(u=e.substring(s,n)){case"true":return c=8;case"false":return c=9;case"null":return c=7}return c=16}return u+=String.fromCharCode(t),n++,c=16}}function g(e){if(o(e)||i(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:return!1}return!0}return{setPosition:function(e){n=e,u="",s=0,c=16,f=0},getPosition:function(){return n},scan:t?function(){var e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:function(){return c},getTokenValue:function(){return u},getTokenOffset:function(){return s},getTokenLength:function(){return n-s},getTokenError:function(){return f}}}function o(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function i(e){return 10===e||13===e||8232===e||8233===e}function a(e){return e>=48&&e<=57}function u(e,t,n){var o,i,a,u,f;if(t){for(u=t.offset,f=u+t.length,a=u;a>0&&!c(e,a-1);)a--;for(var l=f;l<e.length&&!c(e,l);)l++;i=e.substring(a,l),o=function(e,t,n){var r=0,o=0,i=n.tabSize||4;for(;r<e.length;){var a=e.charAt(r);if(" "===a)o++;else{if("\t"!==a)break;o+=i}r++}return Math.floor(o/i)}(i,0,n)}else i=e,o=0,a=0,u=0,f=e.length;var d,g=function(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if("\r"===r)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===r)return"\n"}return e&&e.eol||"\n"}(n,e),h=!1,p=0;d=n.insertSpaces?s(" ",n.tabSize||4):"\t";var m=r(i,!1),v=!1;function b(){return g+s(d,o+p)}function k(){var e=m.scan();for(h=!1;15===e||14===e;)h=h||14===e,e=m.scan();return v=16===e||0!==m.getTokenError(),e}var _=[];function y(t,n,r){!v&&n<f&&r>u&&e.substring(n,r)!==t&&_.push({offset:n,length:r-n,content:t})}var C=k();if(17!==C){var w=m.getTokenOffset()+a;y(s(d,o),a,w)}for(;17!==C;){for(var T=m.getTokenOffset()+m.getTokenLength()+a,E=k(),S="";!h&&(12===E||13===E);){y(" ",T,m.getTokenOffset()+a),T=m.getTokenOffset()+m.getTokenLength()+a,S=12===E?b():"",E=k()}if(2===E)1!==C&&(p--,S=b());else if(4===E)3!==C&&(p--,S=b());else{switch(C){case 3:case 1:p++,S=b();break;case 5:case 12:S=b();break;case 13:S=h?b():" ";break;case 6:S=" ";break;case 10:if(6===E){S="";break}case 7:case 8:case 9:case 11:case 2:case 4:12===E||13===E?S=" ":5!==E&&17!==E&&(v=!0);break;case 16:v=!0}!h||12!==E&&13!==E||(S=b())}y(S,T,m.getTokenOffset()+a),C=E}return _}function s(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function c(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function f(e,t,n){var o=r(e,!1);function i(e){return e?function(){return e(o.getTokenOffset(),o.getTokenLength())}:function(){return!0}}function a(e){return e?function(t){return e(t,o.getTokenOffset(),o.getTokenLength())}:function(){return!0}}var u=i(t.onObjectBegin),s=a(t.onObjectProperty),c=i(t.onObjectEnd),f=i(t.onArrayBegin),l=i(t.onArrayEnd),d=a(t.onLiteralValue),g=a(t.onSeparator),h=i(t.onComment),p=a(t.onError),m=n&&n.disallowComments,v=n&&n.allowTrailingComma;function b(){for(;;){var e=o.scan();switch(o.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:m||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:m?k(10):h();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),p(e),t.length+n.length>0)for(var r=o.getToken();17!==r;){if(-1!==t.indexOf(r)){b();break}if(-1!==n.indexOf(r))break;r=b()}}function _(e){var t=o.getTokenValue();return e?d(t):s(t),b(),!0}function y(){switch(o.getToken()){case 3:return function(){f(),b();for(var e=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||k(4,[],[]),g(","),b(),4===o.getToken()&&v)break}else e&&k(6,[],[]);y()||k(4,[],[4,5]),e=!0}return l(),4!==o.getToken()?k(8,[4],[]):b(),!0}();case 1:return function(){u(),b();for(var e=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||k(4,[],[]),g(","),b(),2===o.getToken()&&v)break}else e&&k(6,[],[]);(10!==o.getToken()?(k(3,[],[2,5]),0):(_(!1),6===o.getToken()?(g(":"),b(),y()||k(4,[],[2,5])):k(5,[],[2,5]),1))||k(4,[],[2,5]),e=!0}return c(),2!==o.getToken()?k(7,[2],[]):b(),!0}();case 10:return _(!0);default:return function(){switch(o.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(o.getTokenValue()))&&(k(2),e=0)}catch(e){k(2)}d(e);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return b(),!0}()}}return b(),17===o.getToken()||(y()?(17!==o.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1))}n.d(t,"a",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return g});var l=r,d=function(e,t,n){void 0===t&&(t=[]);var r=null,o=[],i=[];function a(e){Array.isArray(o)?o.push(e):r&&(o[r]=e)}return f(e,{onObjectBegin:function(){var e={};a(e),i.push(o),o=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){o=i.pop()},onArrayBegin:function(){var e=[];a(e),i.push(o),o=e,r=null},onArrayEnd:function(){o=i.pop()},onLiteralValue:a,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),o[0]};function g(e,t,n){return u(e,t,n)}}}]);