You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-1e2736cd.09877ce1.js

1 lines
105 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1e2736cd"],{"36c6f":function(t,e,n){"use strict";(function(t){var i,r;function s(t){var e;return(r[t]||(e=r[t]={exports:{}},i[t](e,e.exports,s),e)).exports}n.d(e,"a",(function(){return o})),i={470:e=>{function n(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function i(t,e){for(var n,i="",r=0,s=-1,o=0,_=0;_<=t.length;++_){if(_<t.length)n=t.charCodeAt(_);else{if(47===n)break;n=47}if(47===n){if(s!==_-1&&1!==o)if(s!==_-1&&2===o){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(2<i.length){var a=i.lastIndexOf("/");if(a!==i.length-1){r=-1===a?(i="",0):(i=i.slice(0,a)).length-1-i.lastIndexOf("/"),s=_,o=0;continue}}else if(2===i.length||1===i.length){i="",s=_,o=r=0;continue}e&&(0<i.length?i+="/..":i="..",r=2)}else 0<i.length?i+="/"+t.slice(s+1,_):i=t.slice(s+1,_),r=_-s-1;s=_,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var r={resolve:function(){for(var e,r="",s=!1,o=arguments.length-1;-1<=o&&!s;o--){var _=0<=o?arguments[o]:e=void 0===e?t.cwd():e;n(_),0!==_.length&&(r=_+"/"+r,s=47===_.charCodeAt(0))}return r=i(r,!s),s?0<r.length?"/"+r:"/":0<r.length?r:"."},normalize:function(t){var e,r;return n(t),0===t.length?".":(e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1),0<(t=0!==(t=i(t,!e)).length||e?t:".").length&&r&&(t+="/"),e?"/"+t:t)},isAbsolute:function(t){return n(t),0<t.length&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var i=arguments[e];n(i),0<i.length&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":r.normalize(t)},relative:function(t,e){if(n(t),n(e),t===e)return"";if((t=r.resolve(t))===(e=r.resolve(e)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var s=t.length,o=s-i,_=1;_<e.length&&47===e.charCodeAt(_);++_);for(var a=e.length-_,h=o<a?o:a,u=-1,p=0;p<=h;++p){if(p===h){if(h<a){if(47===e.charCodeAt(_+p))return e.slice(_+p+1);if(0===p)return e.slice(_+p)}else h<o&&(47===t.charCodeAt(i+p)?u=p:0===p&&(u=0));break}var c=t.charCodeAt(i+p);if(c!==e.charCodeAt(_+p))break;47===c&&(u=p)}var l="";for(p=i+u+1;p<=s;++p)p!==s&&47!==t.charCodeAt(p)||(0===l.length?l+="..":l+="/..");return 0<l.length?l+e.slice(_+u):(47===e.charCodeAt(_+=u)&&++_,e.slice(_))},_makeLong:function(t){return t},dirname:function(t){if(n(t),0===t.length)return".";for(var e=47===t.charCodeAt(0),i=-1,r=!0,s=t.length-1;1<=s;--s)if(47===t.charCodeAt(s)){if(!r){i=s;break}}else r=!1;return-1===i?e?"/":".":e&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');n(t);var i=0,r=-1,s=!0;if(void 0!==e&&0<e.length&&e.length<=t.length){if(e.length===t.length&&e===t)return"";for(var o=e.length-1,_=-1,a=t.length-1;0<=a;--a){var h=t.charCodeAt(a);if(47===h){if(!s){i=a+1;break}}else-1===_&&(s=!1,_=a+1),0<=o&&(h===e.charCodeAt(o)?-1==--o&&(r=a):(o=-1,r=_))}return i===r?r=_:-1===r&&(r=t.length),t.slice(i,r)}for(a=t.length-1;0<=a;--a)if(47===t.charCodeAt(a)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1);return-1===r?"":t.slice(i,r)},extname:function(t){n(t);for(var e=-1,i=0,r=-1,s=!0,o=0,_=t.length-1;0<=_;--_){var a=t.charCodeAt(_);if(47!==a)-1===r&&(s=!1,r=_+1),46===a?-1===e?e=_:1!==o&&(o=1):-1!==e&&(o=-1);else if(!s){i=_+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===i+1?"":t.slice(e,r)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return e=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||""),e?e===t.root?e+n:e+"/"+n:n;var e,n},parse:function(t){n(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0!==t.length){for(var i,r=47===t.charCodeAt(0),s=r?(e.root="/",1):0,o=-1,_=0,a=-1,h=!0,u=t.length-1,p=0;s<=u;--u)if(47!==(i=t.charCodeAt(u)))-1===a&&(h=!1,a=u+1),46===i?-1===o?o=u:1!==p&&(p=1):-1!==o&&(p=-1);else if(!h){_=u+1;break}-1===o||-1===a||0===p||1===p&&o===a-1&&o===_+1?-1!==a&&(e.base=e.name=0===_&&r?t.slice(1,a):t.slice(_,a)):(0===_&&r?(e.name=t.slice(1,o),e.base=t.slice(1,a)):(e.name=t.slice(_,o),e.base=t.slice(_,a)),e.ext=t.slice(o,a)),0<_?e.dir=t.slice(0,_-1):r&&(e.dir="/")}return e},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},447:(e,n,i)=>{var r;i.r(n),i.d(n,{URI:()=>l,Utils:()=>T}),"object"==typeof t?r="win32"===t.platform:"object"==typeof navigator&&(r=0<=navigator.userAgent.indexOf("Windows")),s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};var s,o,_,a=/^\w[\w\d+.-]*$/,h=/^\//,u=/^\/\//,p="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,l=(v.isUri=function(t){return t instanceof v||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(v.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),v.prototype.with=function(t){var e,n,i,r;return t&&(e=t.scheme,n=t.authority,i=t.path,r=t.query,t=t.fragment,void 0===e?e=this.scheme:null===e&&(e=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===i?i=this.path:null===i&&(i=""),void 0===r?r=this.query:null===r&&(r=""),void 0===t?t=this.fragment:null===t&&(t=""),e!==this.scheme||n!==this.authority||i!==this.path||r!==this.query||t!==this.fragment)?new g(e,n,i,r,t):this},v.parse=function(t,e){return void 0===e&&(e=!1),t=c.exec(t),t?new g(t[2]||"",E(t[4]||""),E(t[5]||""),E(t[7]||""),E(t[9]||""),e):new g("","","","","")},v.file=function(t){var e,n="";return(t=r?t.replace(/\\/g,p):t)[0]===p&&t[1]===p&&(t=-1===(e=t.indexOf(p,2))?(n=t.substring(2),p):(n=t.substring(2,e),t.substring(e)||p)),new g("file",n,t,"","")},v.from=function(t){return new g(t.scheme,t.authority,t.path,t.query,t.fragment)},v.prototype.toString=function(t){return k(this,t=void 0!==t&&t)},v.prototype.toJSON=function(){return this},v.revive=function(t){var e;return t&&(t instanceof v?t:((e=new g(t))._formatted=t.external,e._fsPath=t._sep===d?t.fsPath:null,e))},v),d=r?1:void 0,g=(s(_=m,n=o=l),_.prototype=null===n?Object.create(n):(y.prototype=n.prototype,new y),Object.defineProperty(m.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),m.prototype.toString=function(t){return(t=void 0!==t&&t)?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)},m.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=d),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},m),f=((n={})[58]="%3A",n[47]="%2F",n[63]="%3F",n[35]="%23",n[91]="%5B",n[93]="%5D",n[64]="%40",n[33]="%21",n[36]="%24",n[38]="%26",n[39]="%27",n[40]="%28",n[41]="%29",n[42]="%2A",n[43]="%2B",n[44]="%2C",n[59]="%3B",n[61]="%3D",n[32]="%20",n);function m(){var t=null!==o&&o.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}function y(){this.constructor=_}function v(t,e,n,i,r,s){if(void 0===s&&(s=!1),"object"==typeof t)this.scheme=t.scheme||"",this.authority=t.authority||"",this.path=t.path||"",this.query=t.query||"",this.fragment=t.fragment||"";else{if(this.scheme=t||s?t:"file",this.authority=e||"",this.path=function(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==p&&(e=p+e):e=p}return e}(this.scheme,n||""),this.query=i||"",this.fragment=r||"",t=this,e=s,!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!a.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!h.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function w(t,e){for(var n=void 0,i=-1,r=0;r<t.length;r++){var s=t.charCodeAt(r);97<=s&&s<=122||65<=s&&s<=90||48<=s&&s<=57||45===s||46===s||95===s||126===s||e&&47===s?(-1!==i&&(n+=encodeURIComponent(t.substring(i,r)),i=-1),void 0!==n&&(n+=t.charAt(r))):(void 0===n&&(n=t.substr(0,r)),void 0!==(s=f[s])?(-1!==i&&(n+=encodeURIComponent(t.substring(i,r)),i=-1),n+=s):-1===i&&(i=r))}return-1!==i&&(n+=encodeURIComponent(t.substring(i))),void 0!==n?n:t}function b(t){for(var e=void 0,n=0;n<t.length;n++){var i=t.charCodeAt(n);35===i||63===i?(void 0===e&&(e=t.substr(0,n)),e+=f[i]):void 0!==e&&(e+=t[n])}return void 0!==e?e:t}function x(t,e){return e=t.authority&&1<t.path.length&&"file"===t.scheme?"//"+t.authority+t.path:47===t.path.charCodeAt(0)&&(65<=t.path.charCodeAt(1)&&t.path.charCodeAt(1)<=90||97<=t.path.charCodeAt(1)&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,r?e.replace(/\//g,"\\"):e}function k(t,e){var n,i,r=e?b:w,s="",o=t.scheme,_=t.authority,a=t.path,h=t.query;t=t.fragment;return o&&(s=s+o+":"),!_&&"file"!==o||(s=s+p+p),_&&(-1!==(o=_.indexOf("@"))&&(n=_.substr(0,o),_=_.substr(o+1),-1===(o=n.indexOf(":"))?s+=r(n,!1):s=(s=s+r(n.substr(0,o),!1)+":")+r(n.substr(o+1),!1),s+="@"),-1===(o=(_=_.toLowerCase()).indexOf(":"))?s+=r(_,!1):s=(s+=r(_.substr(0,o),!1))+_.substr(o)),a&&(3<=a.length&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)?65<=(i=a.charCodeAt(1))&&i<=90&&(a="/"+String.fromCharCode(i+32)+":"+a.substr(3)):2<=a.length&&58===a.charCodeAt(1)&&65<=(i=a.charCodeAt(0))&&i<=90&&(a=String.fromCharCode(i+32)+":"+a.substr(2)),s+=r(a,!0)),h&&(s=(s+="?")+r(h,!1)),t?(s+="#")+(e?t:w(t,!1)):s}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(t){return t.match(A)?t.replace(A,(function e(n){try{return decodeURIComponent(n)}catch(t){return 3<n.length?n.substr(0,3)+e(n.substr(3)):n}})):t}function C(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,_=s.length;o<_;o++,r++)i[r]=s[o];return i}n=i(470);var T,O=n.posix||n;(i=T=T||{}).joinPath=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.with({path:O.join.apply(O,C([t.path],e))})},i.resolvePath=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=t.path||"/";return t.with({path:O.resolve.apply(O,C([i],e))})},i.dirname=function(t){var e=O.dirname(t.path);return 1===e.length&&46===e.charCodeAt(0)?t:t.with({path:e})},i.basename=function(t){return O.basename(t.path)},i.extname=function(t){return O.extname(t.path)}}},r={},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};const o=s(447)["URI"]}).call(this,n("f28c"))},fa5b:function(t,e,n){"use strict";n.r(e),n.d(e,"setupMode1",(function(){return $t})),n.d(e,"setupMode",(function(){return Xt}));var i,r,s,o,_,a,h,u,p,c,l,d,g,f,m=n("3502"),y=(v.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},v.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},v.prototype._checkIfIdle=function(){this._worker&&12e4<Date.now()-this._lastUsedTime&&this._stopWorker()},v.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=m.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},v.prototype.getLanguageServiceWorker=function(){for(var t,e=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._getClient().then((function(e){t=e})).then((function(t){if(e._worker)return e._worker.withSyncedResources(n)})).then((function(e){return t}))},v);function v(t){var e=this;this._defaults=t,this._worker=null,this._idleCheckInterval=setInterval((function(){return e._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return e._stopWorker()}))}(e=i=i||{}).MIN_VALUE=0,e.MAX_VALUE=2147483647,(e=r=r||{}).create=function(t,e){return{line:t=t===Number.MAX_VALUE?i.MAX_VALUE:t,character:e=e===Number.MAX_VALUE?i.MAX_VALUE:e}},e.is=function(t){return V.objectLiteral(t)&&V.uinteger(t.line)&&V.uinteger(t.character)},(e=s=s||{}).create=function(t,e,n,i){if(V.uinteger(t)&&V.uinteger(e)&&V.uinteger(n)&&V.uinteger(i))return{start:r.create(t,e),end:r.create(n,i)};if(r.is(t)&&r.is(e))return{start:t,end:e};throw new Error("Range#create called with invalid arguments["+t+", "+e+", "+n+", "+i+"]")},e.is=function(t){return V.objectLiteral(t)&&r.is(t.start)&&r.is(t.end)},(e=o=o||{}).create=function(t,e){return{uri:t,range:e}},e.is=function(t){return V.defined(t)&&s.is(t.range)&&(V.string(t.uri)||V.undefined(t.uri))},(e=W=W||{}).create=function(t,e,n,i){return{red:t,green:e,blue:n,alpha:i}},e.is=function(t){return V.numberRange(t.red,0,1)&&V.numberRange(t.green,0,1)&&V.numberRange(t.blue,0,1)&&V.numberRange(t.alpha,0,1)},(W=_=_||{}).Comment="comment",W.Imports="imports",W.Region="region",(e=a=a||{}).create=function(t,e){return{location:t,message:e}},e.is=function(t){return V.defined(t)&&o.is(t.location)&&V.string(t.message)},($||{}).is=function(t){return null!=t&&V.string(t.href)},(W=I=I||{}).create=function(t,e,n,i,r,s){return t={range:t,message:e},V.defined(n)&&(t.severity=n),V.defined(i)&&(t.code=i),V.defined(r)&&(t.source=r),V.defined(s)&&(t.relatedInformation=s),t},W.is=function(t){var e;return V.defined(t)&&s.is(t.range)&&V.string(t.message)&&(V.number(t.severity)||V.undefined(t.severity))&&(V.integer(t.code)||V.string(t.code)||V.undefined(t.code))&&(V.undefined(t.codeDescription)||V.string(null==(e=t.codeDescription)?void 0:e.href))&&(V.string(t.source)||V.undefined(t.source))&&(V.undefined(t.relatedInformation)||V.typedArray(t.relatedInformation,a.is))},(e=K=K||{}).create=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return t={title:t,command:e},V.defined(n)&&0<n.length&&(t.arguments=n),t},e.is=function(t){return V.defined(t)&&V.string(t.title)&&V.string(t.command)},($=h=h||{}).replace=function(t,e){return{range:t,newText:e}},$.insert=function(t,e){return{range:{start:t,end:t},newText:e}},$.del=function(t){return{range:t,newText:""}},$.is=function(t){return V.objectLiteral(t)&&V.string(t.newText)&&s.is(t.range)},(I=u=u||{}).create=function(t,e,n){return t={label:t},void 0!==e&&(t.needsConfirmation=e),void 0!==n&&(t.description=n),t},I.is=function(t){return void 0!==t&&V.objectLiteral(t)&&V.string(t.label)&&(V.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(V.string(t.description)||void 0===t.description)},(p||(p={})).is=function(t){return"string"==typeof t},(W=c=c||{}).replace=function(t,e,n){return{range:t,newText:e,annotationId:n}},W.insert=function(t,e,n){return{range:{start:t,end:t},newText:e,annotationId:n}},W.del=function(t,e){return{range:t,newText:"",annotationId:e}},W.is=function(t){return h.is(t)&&(u.is(t.annotationId)||p.is(t.annotationId))},(K=l=l||{}).create=function(t,e){return{textDocument:t,edits:e}},K.is=function(t){return V.defined(t)&&x.is(t.textDocument)&&Array.isArray(t.edits)},(e=d=d||{}).create=function(t,e,n){return t={kind:"create",uri:t},void 0===e||void 0===e.overwrite&&void 0===e.ignoreIfExists||(t.options=e),void 0!==n&&(t.annotationId=n),t},e.is=function(t){return t&&"create"===t.kind&&V.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||V.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||V.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||p.is(t.annotationId))},($=g=g||{}).create=function(t,e,n,i){return t={kind:"rename",oldUri:t,newUri:e},void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(t.options=n),void 0!==i&&(t.annotationId=i),t},$.is=function(t){return t&&"rename"===t.kind&&V.string(t.oldUri)&&V.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||V.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||V.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||p.is(t.annotationId))},(I=f=f||{}).create=function(t,e,n){return t={kind:"delete",uri:t},void 0===e||void 0===e.recursive&&void 0===e.ignoreIfNotExists||(t.options=e),void 0!==n&&(t.annotationId=n),t},I.is=function(t){return t&&"delete"===t.kind&&V.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||V.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||V.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||p.is(t.annotationId))},(L||(L={})).is=function(t){return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(t){return V.string(t.kind)?d.is(t)||g.is(t)||f.is(t):l.is(t)})))},b.prototype.insert=function(t,e,n){var i;n=void 0===n?h.insert(t,e):p.is(n)?c.insert(t,e,i=n):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),c.insert(t,e,i));if(this.edits.push(n),void 0!==i)return i},b.prototype.replace=function(t,e,n){var i;n=void 0===n?h.replace(t,e):p.is(n)?c.replace(t,e,i=n):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),c.replace(t,e,i));if(this.edits.push(n),void 0!==i)return i},b.prototype.delete=function(t,e){var n;e=void 0===e?h.del(t):p.is(e)?c.del(t,n=e):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(e),c.del(t,n));if(this.edits.push(e),void 0!==n)return n},b.prototype.add=function(t){this.edits.push(t)},b.prototype.all=function(){return this.edits},b.prototype.clear=function(){this.edits.splice(0,this.edits.length)},b.prototype.assertChangeAnnotations=function(t){if(void 0===t)throw new Error("Text edit change is not configured to manage change annotations.")};var w=b;function b(t,e){this.edits=t,this.changeAnnotations=e}J.prototype.all=function(){return this._annotations},Object.defineProperty(J.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),J.prototype.manage=function(t,e){var n;if(p.is(t)?n=t:(n=this.nextId(),e=t),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===e)throw new Error("No annotation provided for id "+n);return this._annotations[n]=e,this._size++,n},J.prototype.nextId=function(){return this._counter++,this._counter.toString()};var x,k,A,E,C,T,O,S,I,j,P,R,N,L,U,z,W,D,F,M,V,K,B,q,G,$,X,H,Q=J;function J(t){this._annotations=void 0===t?Object.create(null):t,this._counter=0,this._size=0}function Z(t){var e=this;this._textEditChanges=Object.create(null),void 0!==t?(this._workspaceEdit=t).documentChanges?(this._changeAnnotations=new Q(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach((function(t){var n;l.is(t)&&(n=new w(t.edits,e._changeAnnotations),e._textEditChanges[t.textDocument.uri]=n)}))):t.changes&&Object.keys(t.changes).forEach((function(n){var i=new w(t.changes[n]);e._textEditChanges[n]=i})):this._workspaceEdit={}}function Y(t,e,n,i){this._uri=t,this._languageId=e,this._version=n,this._content=i,this._lineOffsets=void 0}function tt(t,e,n,i){this._uri=t,this._languageId=e,this._version=n,this._content=i,this._lineOffsets=void 0}function et(t,e,n){void 0===n&&(n=0);for(var i=e?[n]:[],r=0;r<t.length;r++){var s=t.charCodeAt(r);13!==s&&10!==s||(13===s&&r+1<t.length&&10===t.charCodeAt(r+1)&&r++,i.push(n+r+1))}return i}function nt(t){var e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function it(t,e){this.source=t,this.len=t.length,this.position=e}Object.defineProperty(Z.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),Z.prototype.getTextEditChange=function(t){if(x.is(t)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var e={uri:t.uri,version:t.version};(n=this._textEditChanges[e.uri])||(this._workspaceEdit.documentChanges.push({textDocument:e,edits:i=[]}),n=new w(i,this._changeAnnotations),this._textEditChanges[e.uri]=n)}else{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n,i;(n=this._textEditChanges[t])||(this._workspaceEdit.changes[t]=i=[],n=new w(i),this._textEditChanges[t]=n)}return n},Z.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Q,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},Z.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},Z.prototype.createFile=function(t,e,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r;if(u.is(e)||p.is(e)?i=e:n=e,e=void 0===i?d.create(t,n):(r=p.is(i)?i:this._changeAnnotations.manage(i),d.create(t,n,r)),this._workspaceEdit.documentChanges.push(e),void 0!==r)return r},Z.prototype.renameFile=function(t,e,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,s;if(u.is(n)||p.is(n)?r=n:i=n,n=void 0===r?g.create(t,e,i):(s=p.is(r)?r:this._changeAnnotations.manage(r),g.create(t,e,i,s)),this._workspaceEdit.documentChanges.push(n),void 0!==s)return s},Z.prototype.deleteFile=function(t,e,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,r;if(u.is(e)||p.is(e)?i=e:n=e,e=void 0===i?f.create(t,n):(r=p.is(i)?i:this._changeAnnotations.manage(i),f.create(t,n,r)),this._workspaceEdit.documentChanges.push(e),void 0!==r)return r},(W=x=x||{}).create=function(t,e){return{uri:t,version:e}},W.is=function(t){return V.defined(t)&&V.string(t.uri)&&(null===t.version||V.integer(t.version))},(K=k=k||{}).PlainText="plaintext",K.Markdown="markdown",(A=k=k||{}).is=function(t){return t===A.PlainText||t===A.Markdown},(E||(E={})).is=function(t){var e=t;return V.objectLiteral(t)&&k.is(e.kind)&&V.string(e.value)},(e=C=C||{}).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=T||{}).PlainText=1,$.Snippet=2,(H||{}).create=function(t){return{label:t}},(O||{}).create=function(t,e){return{items:t||[],isIncomplete:!!e}},(I=S=S||{}).fromPlainText=function(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},I.is=function(t){return V.string(t)||V.objectLiteral(t)&&V.string(t.language)&&V.string(t.value)},(j||{}).is=function(t){var e=t;return!!e&&V.objectLiteral(e)&&(E.is(e.contents)||S.is(e.contents)||V.typedArray(e.contents,S.is))&&(void 0===t.range||s.is(t.range))},(P||{}).create=function(t,e){return e?{label:t,documentation:e}:{label:t}},(R||{}).create=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return t={label:t},V.defined(e)&&(t.documentation=e),V.defined(n)?t.parameters=n:t.parameters=[],t},(L=N=N||{}).Text=1,L.Read=2,L.Write=3,(U||{}).create=function(t,e){return t={range:t},V.number(e)&&(t.kind=e),t},(W=z=z||{}).File=1,W.Module=2,W.Namespace=3,W.Package=4,W.Class=5,W.Method=6,W.Property=7,W.Field=8,W.Constructor=9,W.Enum=10,W.Interface=11,W.Function=12,W.Variable=13,W.Constant=14,W.String=15,W.Number=16,W.Boolean=17,W.Array=18,W.Object=19,W.Key=20,W.Null=21,W.EnumMember=22,W.Struct=23,W.Event=24,W.Operator=25,W.TypeParameter=26,(D||{}).create=function(t,e,n,i,r){return t={name:t,kind:e,location:{uri:i,range:n}},r&&(t.containerName=r),t},(M=F=F||{}).create=function(t,e){return{range:t,parent:e}},M.is=function(t){return void 0!==t&&s.is(t.range)&&(void 0===t.parent||M.is(t.parent))},Object.defineProperty(Y.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Y.prototype.getText=function(t){var e;return t?(e=this.offsetAt(t.start),t=this.offsetAt(t.end),this._content.substring(e,t)):this._content},Y.prototype.update=function(t,e){this._content=t.text,this._version=e,this._lineOffsets=void 0},Y.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var t=[],e=this._content,n=!0,i=0;i<e.length;i++){n&&(t.push(i),n=!1);var r=e.charAt(i);n="\r"===r||"\n"===r;"\r"===r&&i+1<e.length&&"\n"===e.charAt(i+1)&&i++}n&&0<e.length&&t.push(e.length),this._lineOffsets=t}return this._lineOffsets},Y.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var e=this.getLineOffsets(),n=0,i=e.length;if(0===i)return r.create(0,t);for(;n<i;){var s=Math.floor((n+i)/2);e[s]>t?i=s:n=s+1}var o=n-1;return r.create(o,t-e[o])},Y.prototype.offsetAt=function(t){var e,n=this.getLineOffsets();return t.line>=n.length?this._content.length:t.line<0?0:(e=n[t.line],n=t.line+1<n.length?n[t.line+1]:this._content.length,Math.max(Math.min(e+t.character,n),e))},Object.defineProperty(Y.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),K=V=V||{},B=Object.prototype.toString,K.defined=function(t){return void 0!==t},K.undefined=function(t){return void 0===t},K.boolean=function(t){return!0===t||!1===t},K.string=function(t){return"[object String]"===B.call(t)},K.number=function(t){return"[object Number]"===B.call(t)},K.numberRange=function(t,e,n){return"[object Number]"===B.call(t)&&e<=t&&t<=n},K.integer=function(t){return"[object Number]"===B.call(t)&&-2147483648<=t&&t<=2147483647},K.uinteger=function(t){return"[object Number]"===B.call(t)&&0<=t&&t<=2147483647},K.func=function(t){return"[object Function]"===B.call(t)},K.objectLiteral=function(t){return null!==t&&"object"==typeof t},K.typedArray=function(t,e){return Array.isArray(t)&&t.every(e)},Object.defineProperty(tt.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),tt.prototype.getText=function(t){var e;return t?(e=this.offsetAt(t.start),t=this.offsetAt(t.end),this._content.substring(e,t)):this._content},tt.prototype.update=function(t,e){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(tt.isIncremental(r)){var s=nt(r.range),o=this.offsetAt(s.start),_=this.offsetAt(s.end),a=(this._content=this._content.substring(0,o)+r.text+this._content.substring(_,this._content.length),Math.max(s.start.line,0)),h=(s=Math.max(s.end.line,0),this._lineOffsets),u=et(r.text,!1,o);if(s-a===u.length)for(var p=0,c=u.length;p<c;p++)h[p+a+1]=u[p];else u.length<1e4?h.splice.apply(h,[a+1,s-a].concat(u)):this._lineOffsets=h=h.slice(0,a+1).concat(u,h.slice(s+1));var l=r.text.length-(_-o);if(0!=l)for(p=a+1+u.length,c=h.length;p<c;p++)h[p]=h[p]+l}else{if(!tt.isFull(r))throw new Error("Unknown change event received");this._content=r.text,this._lineOffsets=void 0}}this._version=e},tt.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=et(this._content,!0)),this._lineOffsets},tt.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var e=this.getLineOffsets(),n=0,i=e.length;if(0===i)return{line:0,character:t};for(;n<i;){var r=Math.floor((n+i)/2);e[r]>t?i=r:n=r+1}var s=n-1;return{line:s,character:t-e[s]}},tt.prototype.offsetAt=function(t){var e,n=this.getLineOffsets();return t.line>=n.length?this._content.length:t.line<0?0:(e=n[t.line],n=t.line+1<n.length?n[t.line+1]:this._content.length,Math.max(Math.min(e+t.character,n),e))},Object.defineProperty(tt.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),tt.isIncremental=function(t){return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},tt.isFull=function(t){return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(e=q=q||{})[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS",($=G=G||{})[$.WithinContent=0]="WithinContent",$[$.AfterOpeningStartTag=1]="AfterOpeningStartTag",$[$.AfterOpeningEndTag=2]="AfterOpeningEndTag",$[$.WithinDoctype=3]="WithinDoctype",$[$.WithinTag=4]="WithinTag",$[$.WithinEndTag=5]="WithinEndTag",$[$.WithinComment=6]="WithinComment",$[$.WithinScriptContent=7]="WithinScriptContent",$[$.WithinStyleContent=8]="WithinStyleContent",$[$.AfterAttributeName=9]="AfterAttributeName",$[$.BeforeAttributeValue=10]="BeforeAttributeValue",k.Markdown,k.PlainText,k.Markdown,k.PlainText,(H=X=X||{})[H.Unknown=0]="Unknown",H[H.File=1]="File",H[H.Directory=2]="Directory",H[H.SymbolicLink=64]="SymbolicLink",it.prototype.eos=function(){return this.len<=this.position},it.prototype.getSource=function(){return this.source},it.prototype.pos=function(){return this.position},it.prototype.goBackTo=function(t){this.position=t},it.prototype.goBack=function(t){this.position-=t},it.prototype.advance=function(t){this.position+=t},it.prototype.goToEnd=function(){this.position=this.source.length},it.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},it.prototype.peekChar=function(t){return this.source.charCodeAt(this.position+(t=void 0===t?0:t))||0},it.prototype.advanceIfChar=function(t){return t===this.source.charCodeAt(this.position)&&(this.position++,!0)},it.prototype.advanceIfChars=function(t){var e;if(this.position+t.length>this.source.length)return!1;for(e=0;e<t.length;e++)if(this.source.charCodeAt(this.position+e)!==t[e])return!1;return this.advance(e),!0},it.prototype.advanceIfRegExp=function(t){return t=this.source.substr(this.position).match(t),t?(this.position=this.position+t.index+t[0].length,t[0]):""},it.prototype.advanceUntilRegExp=function(t){return t=this.source.substr(this.position).match(t),t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")},it.prototype.advanceUntilChar=function(t){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===t)return!0;this.advance(1)}return!1},it.prototype.advanceUntilChars=function(t){for(;this.position+t.length<=this.source.length;){for(var e=0;e<t.length&&this.source.charCodeAt(this.position+e)===t[e];e++);if(e===t.length)return!0;this.advance(1)}return this.goToEnd(),!1},it.prototype.skipWhitespace=function(){return 0<this.advanceWhileChar((function(t){return t===_t||t===at||t===rt||t===ot||t===st}))},it.prototype.advanceWhileChar=function(t){for(var e=this.position;this.position<this.len&&t(this.source.charCodeAt(this.position));)this.position++;return this.position-e},"!".charCodeAt(0),"-".charCodeAt(0),"<".charCodeAt(0),">".charCodeAt(0),"/".charCodeAt(0),"=".charCodeAt(0),'"'.charCodeAt(0),"'".charCodeAt(0);var rt="\n".charCodeAt(0),st="\r".charCodeAt(0),ot="\f".charCodeAt(0),_t=" ".charCodeAt(0),at="\t".charCodeAt(0);function ht(t,e){var n=0,i=t.length;if(0===i)return 0;for(;n<i;){var r=Math.floor((n+i)/2);e(t[r])?i=r:n=r+1}return n}function ut(t,e,n,i){this.start=t,this.end=e,this.children=n,this.parent=i,this.closed=!1}function pt(t,e){if(!(t.length<e.length)){for(var n=0;n<e.length;n++)if(t[n]!==e[n])return;return 1}}Object.defineProperty(ut.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),ut.prototype.isSameTag=function(t){return void 0===this.tag?void 0===t:void 0!==t&&this.tag.length===t.length&&this.tag.toLowerCase()===t},Object.defineProperty(ut.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(ut.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),ut.prototype.findNodeBefore=function(t){var e=ht(this.children,(function(e){return t<=e.start}))-1;if(0<=e){var n;e=this.children[e];if(t>e.start)return t<e.end||(n=e.lastChild)&&n.end===e.end?e.findNodeBefore(t):e}return this},ut.prototype.findNodeAt=function(t){var e=ht(this.children,(function(e){return t<=e.start}))-1;return 0<=e&&(e=this.children[e],t>e.start&&t<=e.end)?e.findNodeAt(t):this},"a".charCodeAt(0),"z".charCodeAt(0),"A".charCodeAt(0),"Z".charCodeAt(0),"0".charCodeAt(0),"9".charCodeAt(0);var ct=function(t,e,n,i){return new(n=n||Promise)((function(r,s){function o(t){try{a(i.next(t))}catch(t){s(t)}}function _(t){try{a(i.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(o,_)}a((i=i.apply(t,e||[])).next())}))},lt=function(t,e){var n,i,r,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o={next:_(0),throw:_(1),return:_(2)};return"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function _(o){return function(_){var a=[o,_];if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,(a=r?[2&a[0],r.value]:a)[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(r=0<(r=s.trys).length&&r[r.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3]))s.label=a[1];else if(6===a[0]&&s.label<r[1])s.label=r[1],r=a;else{if(!(r&&s.label<r[2])){r[2]&&s.ops.pop(),s.trys.pop();continue}s.label=r[2],s.ops.push(a)}}a=e.call(t,s)}catch(_){a=[6,_],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}};function dt(t){this.readDirectory=t,this.atributeCompletions=[]}dt.prototype.onHtmlAttributeValue=function(t){!function(t,e){if(t=bt[t],t)return"string"==typeof t?t===e:-1!==t.indexOf(e)}(t.tag,t.attribute)||this.atributeCompletions.push(t)},dt.prototype.computeCompletions=function(t,e){return ct(this,void 0,void 0,(function(){var n,i,r,o,_,a,h,u,p;return lt(this,(function(c){switch(c.label){case 0:n={items:[],isIncomplete:!1},i=0,r=this.atributeCompletions,c.label=1;case 1:if(!(i<r.length))return[3,5];if(o=r[i],l=t.getText(o.range),function(t){if(!(pt(t,"http")||pt(t,"https")||pt(t,"//")))return 1}(_=pt(l,"'")||pt(l,'"')?l.slice(1,-1):l)){if("."!==_&&".."!==_)return[3,2];n.isIncomplete=!0}return[3,4];case 2:return a=function(t,e,n){var i;return t=t.lastIndexOf("/"),e=-1===t?function(t,e,n){return e=ft(t.start,e),t=ft(t.end,n),s.create(e,t)}(n,1,-1):(e=e.slice(t+1),t=ft(n.end,-1-e.length),e=e.indexOf(" "),i=void 0,i=-1!==e?ft(t,e):ft(n.end,-1),s.create(t,i)),e}(o.value,_,o.range),[4,this.providePathSuggestions(o.value,a,t,e)];case 3:for(a=c.sent(),h=0,u=a;h<u.length;h++)p=u[h],n.items.push(p);c.label=4;case 4:return i++,[3,1];case 5:return[2,n]}var l}))}))},dt.prototype.providePathSuggestions=function(t,e,n,i){return ct(this,void 0,void 0,(function(){var r,s,o,_,a,u,p;return lt(this,(function(c){switch(c.label){case 0:if(r=t.substring(0,t.lastIndexOf("/")+1),!(r=i.resolveReference(r||".",n.uri)))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),s=[],[4,this.readDirectory(r)];case 2:for(o=c.sent(),_=0,a=o;_<a.length;_++)p=a[_],u=p[0],p=p[1],u.charCodeAt(0)!==gt&&s.push((l=u,d=p===X.Directory,g=e,d?{label:l+="/",kind:C.Folder,textEdit:h.replace(g,l),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:l,kind:C.File,textEdit:h.replace(g,l)}));return[2,s];case 3:return c.sent(),[3,4];case 4:return[2,[]]}var l,d,g}))}))};var gt=".".charCodeAt(0);function ft(t,e){return r.create(t.line,t.character+e)}var mt,yt,vt,wt,bt={a:"href",area:"href",body:"background",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]};function xt(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function kt(t){if(t)return new m.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function At(t){if(t)return{range:kt(t.range),text:t.newText}}mt=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){var t;return!!this._should_wrap()&&(this.__parent.add_new_line(),(t=this.__parent.current_line).set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!0)},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return(n=t<0?0:n)+t*this.__indent_size+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n");return"\n"!==t?e.replace(/[\n]/g,t):e},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;0<=i;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},,,,function(t){function e(t,e){this.raw_options=n(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size)&&(this.indent_size=4),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function n(t,e){var n,r={};for(n in t=i(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function i(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return t=this.raw_options[t],e=e||[],"object"==typeof t?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return t=this.raw_options[t],void 0===t?!!e:!!t},e.prototype._get_characters=function(t,e){return t=this.raw_options[t],e=e||"","string"==typeof t?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(n=this._get_selection_list(t,e,n),1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),this._is_valid_selection(n,e))return n;throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'")},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=i,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){var e=null;return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):e},n.prototype.__match=function(t,n){t.lastIndex=n;var i=t.exec(this.__input);return!i||e&&t.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return t=this.__match(t,this.__position),t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var i,r="";return t&&(i=this.match(t))&&(r+=i[0]),!e||!i&&t||(r+=this.readUntil(e,n)),r},n.prototype.readUntil=function(t,e){var n=this.__position;t.lastIndex=this.__position,t=t.exec(this.__input);return t?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,e=this.__input.substring(this.__position,n),this.__position=n,e},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var i=null;n=n&&e?"y":"g";return"string"==typeof t&&""!==t?i=new RegExp(t,n):t&&(i=new RegExp(t.source,n)),i},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;t=this.readUntilAfter(t);return this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;for(var e={},n=(this.__directive_pattern.lastIndex=0,this.__directive_pattern.exec(t));n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var i=n(16).Beautifier,r=n(17).Options;t.exports=function(t,e){return new i(t,e).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(n(13).Directives)(/\/\*/,/\*\//),_=/\r\n|[\r\n]/,a=/\r\n|[\r\n]/g,h=/\s/,u=/(?:\s|\n)+/g,p=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function l(t,e){this._source_text=t||"",this._options=new i(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}l.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},l.prototype.eatWhitespace=function(t){for(var e=h.test(this._input.peek()),n=0;h.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return e},l.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,n=this._input.peek(e);n;){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;--t}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},l.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},l.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},l.prototype.indent=function(){this._indentLevel++},l.prototype.outdent=function(){0<this._indentLevel&&this._indentLevel--},l.prototype.beautify=function(){if(this._options.disabled)return this._source_text;for(var t,e,n,i,l=this._source_text,d=this._options.eol,g=("auto"===d&&(d="\n",l)&&_.test(l||"")&&(d=l.match(_)[0]),(l=l.replace(a,"\n")).match(/^[\t ]*/)[0]),f=(this._output=new r(this._options,g),this._input=new s(l),this._indentLevel=0,this._nestedLevel=0,this._ch=null,0),m=!1,y=!1,v=!1,w=!1,b=!1,x=this._ch;t=""!==this._input.read(u),e=x,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,this._ch;)"/"===this._ch&&"*"===this._input.peek()?(this._output.add_new_line(),this._input.back(),n=this._input.read(p),(i=o.get_directives(n))&&"start"===i.ignore&&(n+=o.readIgnored(this._input)),this.print_string(n),this.eatWhitespace(!0),this._output.add_new_line()):"/"===this._ch&&"/"===this._input.peek()?(this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0)):"@"===this._ch?(this.preserveSingleSpace(t),"{"===this._input.peek()?this.print_string(this._ch+this.eatString("}")):(this.print_string(this._ch),(i=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g)).match(/[ :]$/)&&(i=this.eatString(": ").replace(/\s$/,""),this.print_string(i),this._output.space_before_token=!0),"extend"===(i=i.replace(/\s$/,""))?w=!0:"import"===i&&(b=!0),i in this.NESTED_AT_RULE?(this._nestedLevel+=1,i in this.CONDITIONAL_GROUP_RULE&&(v=!0)):m||0!==f||-1===i.indexOf(":")||(y=!0,this.indent()))):"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(t),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(y&&(y=!1,this.outdent()),m=v?(v=!1,this._indentLevel>=this._nestedLevel):this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===e&&this._output.trim(!0),w=b=!1,y&&(this.outdent(),y=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!m&&!v||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||w||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),y||(this._output.space_before_token=y=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(t),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===f?(y&&(this.outdent(),y=!1),b=w=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f)&&(f--,this.outdent())):(this.preserveSingleSpace(t),this.print_string(this._ch),this.eatWhitespace(),f++,this.indent()):")"===this._ch?(f&&(f--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||y||0!==f||b||w?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||y||0!==f?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(t),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="")):("!"!==this._ch||this._input.lookBack("\\")?this.preserveSingleSpace(t):this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));return this._output.get_code(d)},t.exports.Beautifier=l},function(t,e,n){var i=n(6).Options;function r(t){i.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);t=this._get_boolean("space_around_selector_separator");var e=(this.space_around_combinator=this._get_boolean("space_around_combinator")||t,this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]));this.brace_style="collapse";for(var n=0;n<e.length;n++)"expand"!==e[n]?this.brace_style="collapse":this.brace_style=e[n]}r.prototype=new i,t.exports.Options=r}],yt={},function t(e){var n=yt[e];return void 0===n&&(n=yt[e]={exports:{}},mt[e](n,n.exports,t)),n.exports}(15),vt=[,,function(t){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function i(t,i){this.__indent_cache=new n(t,i),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){var t;return!!this._should_wrap()&&(this.__parent.add_new_line(),(t=this.__parent.current_line).set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!0)},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return(n=t<0?0:n)+t*this.__indent_size+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},i.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},i.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n");return"\n"!==t?e.replace(/[\n]/g,t):e},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(t,n){for(var i=this.__lines.length-2;0<=i;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(t)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},t.exports.Output=i},function(t){t.exports.Token=function(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(t){function e(t,e){this.raw_options=n(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size)&&(this.indent_size=4),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function n(t,e){var n,r={};for(n in t=i(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function i(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return t=this.raw_options[t],e=e||[],"object"==typeof t?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return t=this.raw_options[t],void 0===t?!!e:!!t},e.prototype._get_characters=function(t,e){return t=this.raw_options[t],e=e||"","string"==typeof t?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(n=this._get_selection_list(t,e,n),1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),this._is_valid_selection(n,e))return n;throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'")},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=i,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){var e=null;return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):e},n.prototype.__match=function(t,n){t.lastIndex=n;var i=t.exec(this.__input);return!i||e&&t.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return t=this.__match(t,this.__position),t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var i,r="";return t&&(i=this.match(t))&&(r+=i[0]),!e||!i&&t||(r+=this.readUntil(e,n)),r},n.prototype.readUntil=function(t,e){var n=this.__position;t.lastIndex=this.__position,t=t.exec(this.__input);return t?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,e=this.__input.substring(this.__position,n),this.__position=n,e},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var i=null;n=n&&e?"y":"g";return"string"==typeof t&&""!==t?i=new RegExp(t,n):t&&(i=new RegExp(t.source,n)),i},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;t=this.readUntilAfter(t);return this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){function i(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new _(this._input)}var r=n(8).InputScanner,s=n(3).Token,o=n(10).TokenStream,_=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};i.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var t,e=new s(a.START,""),n=null,i=[],r=new o;e.type!==a.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)r.add(t),t=this._get_next_token(e,n);r.isEmpty()||(t.comments_before=r,r=new o),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&((t.opened=n).closed=t,n=i.pop(),t.parent=n),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},i.prototype._is_first_token=function(){return this.__tokens.isEmpty()},i.prototype._reset=function(){},i.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},i.prototype._is_comment=function(t){return!1},i.prototype._is_opening=function(t){return!1},i.prototype._is_closing=function(t,e){return!1},i.prototype._create_token=function(t,e){return new s(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},i.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=i,t.exports.TOKEN=a},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var e=null;return t=t||0,0<=(t+=this.__position)&&t<this.__tokens_length?this.__tokens[t]:e},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var i=n(12).Pattern;function r(t,e){i.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}(r.prototype=new i).__set_whitespace_patterns=function(t,e){this._match_pattern=this._input.get_regexp("["+(t+="\\t ")+(e+="\\n\\r")+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t,e=this._input.read(this._match_pattern);return" "===e?this.whitespace_before_token=" ":e&&(t=this.__split(this._newline_regexp,e),this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]),e},r.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(t,e){for(var n=t.lastIndex=0,i=[],r=t.exec(e);r;)i.push(e.substring(n,r.index)),n=r.index+r[0].length,r=t.exec(e);return n<e.length?i.push(e.substring(n,e.length)):i.push(""),i},t.exports.WhitespacePattern=r},function(t){function e(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;for(var e={},n=(this.__directive_pattern.lastIndex=0,this.__directive_pattern.exec(t));n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function s(t,e){i.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled)),e=new i(t),this.__patterns={handlebars_comment:e.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:e.starting_with(/{{{/).until_after(/}}}/),handlebars:e.starting_with(/{{/).until_after(/}}/),php:e.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:e.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:e.starting_with(/{%/).until_after(/%}/),django_value:e.starting_with(/{{/).until_after(/}}/),django_comment:e.starting_with(/{#/).until_after(/#}/),smarty:e.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:e.starting_with(/{\*/).until_after(/\*}/),smarty_literal:e.starting_with(/{literal}/).until_after(/{\/literal}/)}}(s.prototype=new i)._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e,n=this._create();for(e in r)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){for(var t="",e=(t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),this._read_template());e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t,e="",n=this._input.peek();return"<"===n?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===n&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django)||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read()),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read())),e},t.exports.TemplatablePattern=s},,,,function(t,e,n){var i=n(19).Beautifier,r=n(20).Options;t.exports=function(t,e,n,r){return new i(t,e,n,r).beautify()},t.exports.defaultOptions=function(){return new r}},function(t,e,n){function i(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new o(t,e)}function r(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),-1<(n=function(t){for(var e=null,n=t.next;n.type!==a.EOF&&t.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(e=n.next.next.text);break}n=n.next}return e}(e)||n).search("text/css")?i="css":-1<n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)?i="javascript":-1<n.search(/(text|application|dojo)\/(x-)?(html)/)?i="html":-1<n.search(/test\/null/)&&(i="null"),i):null}var s=n(20).Options,o=n(2).Output,_=n(21).Tokenizer,a=n(21).TOKEN,h=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g;function p(t,e){return-1!==e.indexOf(t)}function c(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function l(t){this._printer=t,this._current_frame=null}function d(t,e,n,i){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null,t=new s(e,"html"),this._options=t,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}i.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},i.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},i.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},i.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},i.prototype.print_preserved_newlines=function(t){var e=0;t.type!==a.TEXT&&t.previous.type!==a.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var n=0;n<e;n++)this.print_newline(0<n);return 0!==e},i.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines||(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),0))},i.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},i.prototype.print_newline=function(t){this._output.add_new_line(t)},i.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},i.prototype.indent=function(){this.indent_level++},i.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)},l.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},l.prototype.record_tag=function(t){t=new c(this._current_frame,t,this._printer.indent_level),this._current_frame=t},l.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},l.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},l.prototype.try_pop=function(t,e){return t=this._get_frame([t],e),this._try_pop_frame(t)},l.prototype.indent_to_tag=function(t){t=this._get_frame(t),t&&(this._printer.indent_level=t.indent_level)},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;for(var t=this._source_text,e=this._options.eol,n=("auto"===this._options.eol&&(e="\n",t)&&h.test(t)&&(e=t.match(h)[0]),(t=t.replace(u,"\n")).match(/^[\t ]*/)[0]),r={text:"",type:""},s=new g,o=new i(this._options,n),p=new _(t,this._options).tokenize(),c=(this._tag_stack=new l(o),null),d=p.next();d.type!==a.EOF;)d.type===a.TAG_OPEN||d.type===a.COMMENT?s=c=this._handle_tag_open(o,d,s,r):d.type===a.ATTRIBUTE||d.type===a.EQUALS||d.type===a.VALUE||d.type===a.TEXT&&!s.tag_complete?c=this._handle_inside_tag(o,d,s,p):d.type===a.TAG_CLOSE?c=this._handle_tag_close(o,d,s):d.type===a.TEXT?c=this._handle_text(o,d,s):o.add_raw_token(d),r=c,d=p.next();return o._output.get_code(e)},d.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline)&&n.has_wrapped_attrs&&t.print_newline(!1),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},d.prototype._handle_inside_tag=function(t,e,n,i){var r=n.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===a.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===a.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===a.EQUALS||e.type===a.VALUE&&e.previous.type===a.EQUALS)&&t.set_space_before_token(!1),e.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),r=r||0!==e.newlines),this._is_wrap_attributes_force)){var o=1<n.attr_count;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var _,h=!0,u=0;do{if((_=i.peek(u)).type===a.ATTRIBUTE){h=!1;break}}while((u+=1)<4&&_.type!==a.EOF&&_.type!==a.TAG_CLOSE);o=!h}o&&(t.print_newline(!1),r=!0)}t.print_token(e),r=r||t.previous_token_wrapped(),n.has_wrapped_attrs=r}return s},d.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},d.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var r,s=e.text,o=1,_="",a="";o=("javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(t,e){return new d(t,e,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-t.indent_level),t.get_full_indent(o));if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){n=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!n)return void t.add_raw_token(e);_=o+n[1]+"\n",s=n[4],n[5]&&(a=o+n[5]),s=s.replace(/\n[ \t]*$/,""),(n[2]||-1!==n[3].indexOf("\n"))&&(n=n[3].match(/[ \t]+$/))&&(e.whitespace_before=n[0])}s=s&&(r?((n=function(){this.eol="\n"}).prototype=this._options.raw_options,r(o+s,new n)):o+(s=(r=e.whitespace_before)?s.replace(new RegExp("\n("+r+")?","g"),"\n"):s).replace(/\n/g,"\n"+o)),_&&(s=s?_+s+"\n"+a:_+a),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},d.prototype._handle_tag_open=function(t,e,n,i){var r=this._get_tag_open_token(e);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==a.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,r,n,i),r.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),r.start_tag_token=this._tag_stack.try_pop(r.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(r.alignment_size=e.text.length+1),r.tag_complete||r.is_unformatted||(t.alignment_size=r.alignment_size),r};var g=function(t,e){var n;this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",e?(this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(n=e.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0},f=(d.prototype._get_tag_open_token=function(t){return t=new g(this._tag_stack.get_parser_token(),t),t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||p(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&p(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&p(t.tag_check,this._options.content_unformatted),t.is_inline_element=p(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(t,e,n,i,s){n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&!n.is_inline_element&&t.print_newline(!1),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=r(n.tag_check,e)))),p(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element?("{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1)),"!--"===n.tag_name&&s.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))):n.is_end_tag?(e=!1,e=(e=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(s.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==s.type,(e=!n.is_content_unformatted&&!n.is_unformatted&&e)&&t.print_newline(!1)):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===s.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))},d.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)},["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"]),m=["a","audio","del","ins","map","noscript","video"];d.prototype._do_optional_end_element=function(t){var e,n=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent)return"body"===t.tag_name?n=n||this._tag_stack.try_pop("head"):"li"===t.tag_name?n=n||this._tag_stack.try_pop("li",["ol","ul"]):"dd"===t.tag_name||"dt"===t.tag_name?n=(n=n||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]):"p"===t.parent.tag_name&&-1!==f.indexOf(t.tag_name)?(e=t.parent.parent)&&-1!==m.indexOf(e.tag_name)||(n=n||this._tag_stack.try_pop("p")):"rp"===t.tag_name||"rt"===t.tag_name?n=(n=n||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?n=n||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?n=n||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?n=n||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?n=(n=n||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?n=(n=(n=(n=n||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===t.tag_name?n=(n=(n=n||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==t.tag_name&&"td"!==t.tag_name||(n=(n=n||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"])),t.parent=this._tag_stack.get_parser_token(),n},t.exports.Beautifier=d},function(t,e,n){var i=n(6).Options;function r(t){i.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,t.exports.Options=r},function(t,e,n){function i(t,e){r.call(this,t,e),this._current_tag_name="";t=new _(this._input).read_options(this._options),e=new a(this._input);this.__patterns={word:t.until(/[\n\r\t <]/),single_quote:t.until_after(/'/),double_quote:t.until_after(/"/),attribute:t.until(/[\n\r\t =>]|\/>/),element_name:t.until(/[\n\r\t >\/]/),handlebars_comment:e.starting_with(/{{!--/).until_after(/--}}/),handlebars:e.starting_with(/{{/).until_after(/}}/),handlebars_open:e.until(/[\n\r\t }]/),handlebars_raw_close:e.until(/}}/),comment:e.starting_with(/<!--/).until_after(/-->/),cdata:e.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:e.starting_with(/<!\[/).until_after(/]>/),processing:e.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter&&(t=this._input.get_literal_regexp(this._options.unformatted_content_delimiter),this.__patterns.unformatted_content_delimiter=e.matching(t).until_after(t))}var r=n(9).Tokenizer,s=n(9).TOKEN,o=n(13).Directives,_=n(14).TemplatablePattern,a=n(12).Pattern,h={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},u=new o(/<\!--/,/-->/);(i.prototype=new r)._is_comment=function(t){return!1},i.prototype._is_opening=function(t){return t.type===h.TAG_OPEN},i.prototype._is_closing=function(t,e){return t.type===h.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},i.prototype._reset=function(){this._current_tag_name=""},i.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(h.EOF,""):this._read_open_handlebars(n,e)||this._read_attribute(n,t,e)||this._read_close(n,e)||this._read_raw_content(n,t,e)||this._read_content_word(n)||this._read_comment_or_cdata(n)||this._read_processing(n)||this._read_open(n,e)||this._create_token(h.UNKNOWN,this._input.next())},i.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;return"<"===t&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=u.get_directives(n))&&"start"===i.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n)&&((e=this._create_token(h.COMMENT,n)).directives=i),e},i.prototype._read_processing=function(t){var e=null,n=null;return"<"===t&&(n="!"!==(t=this._input.peek(1))&&"?"!==t?n:(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read())&&((e=this._create_token(h.COMMENT,n)).directives=null),e},i.prototype._read_open=function(t,e){var n=null,i=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(h.TAG_OPEN,n)),i},i.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&(i="!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),this._create_token(h.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),this._create_token(h.TAG_OPEN,n))),i},i.prototype._read_close=function(t,e){var n=null,i=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(h.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(h.TAG_CLOSE,"}}"))),i},i.prototype._read_attribute=function(t,e,n){var i=null;return n&&"<"===n.text[0]&&("="===t?i=this._create_token(h.EQUALS,this._input.next()):'"'===t||"'"===t?(n=this._input.next(),n+=('"'===t?this.__patterns.double_quote:this.__patterns.single_quote).read(),i=this._create_token(h.VALUE,n)):(t=this.__patterns.attribute.read())&&(i=e.type===h.EQUALS?this._create_token(h.VALUE,t):this._create_token(h.ATTRIBUTE,t))),i},i.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},i.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===h.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0])if(n=e.opened.text.substr(1).toLowerCase(),"script"===n||"style"===n){if(e=this._read_comment_or_cdata(t),e)return e.type=h.TEXT,e;i=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(n)&&(i=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig")));return i?this._create_token(h.TEXT,i):null},i.prototype._read_content_word=function(t){var e="";if(e=(e=this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]?this.__patterns.unformatted_content_delimiter.read():e)||this.__patterns.word.read())return this._create_token(h.TEXT,e)},t.exports.Tokenizer=i,t.exports.TOKEN=h}],wt={},function t(e){var n=wt[e];return void 0===n&&(n=wt[e]={exports:{}},vt[e](n,n.exports,t)),n.exports}(18),n("36c6f"),Object.defineProperty(Ct.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"]},enumerable:!1,configurable:!0}),Ct.prototype.provideCompletionItems=function(t,e,n,i){var r=t.uri;return this._worker(r).then((function(t){return t.doComplete(r.toString(),xt(e))})).then((function(n){var i,r;if(n)return r=t.getWordUntilPosition(e),i=new m.Range(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn),r=n.items.map((function(t){var e,n={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,documentation:t.documentation,command:(n=t.command)&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0,detail:t.detail,range:i,kind:function(t){var e=m.languages.CompletionItemKind;switch(t){case C.Text:return e.Text;case C.Method:return e.Method;case C.Function:return e.Function;case C.Constructor:return e.Constructor;case C.Field:return e.Field;case C.Variable:return e.Variable;case C.Class:return e.Class;case C.Interface:return e.Interface;case C.Module:return e.Module;case C.Property:return e.Property;case C.Unit:return e.Unit;case C.Value:return e.Value;case C.Enum:return e.Enum;case C.Keyword:return e.Keyword;case C.Snippet:return e.Snippet;case C.Color:return e.Color;case C.File:return e.File;case C.Reference:return e.Reference}return e.Property}(t.kind)};return t.textEdit&&(void 0!==(e=t.textEdit).insert&&void 0!==e.replace?n.range={insert:kt(t.textEdit.insert),replace:kt(t.textEdit.replace)}:n.range=kt(t.textEdit.range),n.insertText=t.textEdit.newText),t.additionalTextEdits&&(n.additionalTextEdits=t.additionalTextEdits.map(At)),t.insertTextFormat===T.Snippet&&(n.insertTextRules=m.languages.CompletionItemInsertTextRule.InsertAsSnippet),n})),{isIncomplete:n.isIncomplete,suggestions:r}}))};var Et=Ct;function Ct(t){this._worker=t}function Tt(t){var e;return"string"==typeof t?{value:t}:(e=t)&&"object"==typeof e&&"string"==typeof e.kind?"plaintext"===t.kind?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.language+"\n"+t.value+"\n```\n"}}St.prototype.provideHover=function(t,e,n){var i=t.uri;return this._worker(i).then((function(t){return t.doHover(i.toString(),xt(e))})).then((function(t){if(t)return{range:kt(t.range),contents:function(t){if(t)return Array.isArray(t)?t.map(Tt):[Tt(t)]}(t.contents)}}))};var Ot=St;function St(t){this._worker=t}jt.prototype.provideDocumentHighlights=function(t,e,n){var i=t.uri;return this._worker(i).then((function(t){return t.findDocumentHighlights(i.toString(),xt(e))})).then((function(t){if(t)return t.map((function(t){return{range:kt(t.range),kind:function(t){var e=m.languages.DocumentHighlightKind;switch(t){case N.Read:return e.Read;case N.Write:return e.Write;case N.Text:return e.Text}return e.Text}(t.kind)}}))}))};var It=jt;function jt(t){this._worker=t}Rt.prototype.provideDocumentSymbols=function(t,e){var n=t.uri;return this._worker(n).then((function(t){return t.findDocumentSymbols(n.toString())})).then((function(t){if(t)return t.map((function(t){return{name:t.name,detail:"",containerName:t.containerName,kind:function(t){var e=m.languages.SymbolKind;switch(t){case z.File:return e.Array;case z.Module:return e.Module;case z.Namespace:return e.Namespace;case z.Package:return e.Package;case z.Class:return e.Class;case z.Method:return e.Method;case z.Property:return e.Property;case z.Field:return e.Field;case z.Constructor:return e.Constructor;case z.Enum:return e.Enum;case z.Interface:return e.Interface;case z.Function:return e.Function;case z.Variable:return e.Variable;case z.Constant:return e.Constant;case z.String:return e.String;case z.Number:return e.Number;case z.Boolean:return e.Boolean;case z.Array:return e.Array}return e.Function}(t.kind),tags:[],range:kt(t.location.range),selectionRange:kt(t.location.range)}}))}))};var Pt=Rt;function Rt(t){this._worker=t}Lt.prototype.provideLinks=function(t,e){var n=t.uri;return this._worker(n).then((function(t){return t.findDocumentLinks(n.toString())})).then((function(t){if(t)return{links:t.map((function(t){return{range:kt(t.range),url:t.target}}))}}))};var Nt=Lt;function Lt(t){this._worker=t}function Ut(t){return{tabSize:t.tabSize,insertSpaces:t.insertSpaces}}Wt.prototype.provideDocumentFormattingEdits=function(t,e,n){var i=t.uri;return this._worker(i).then((function(t){return t.format(i.toString(),null,Ut(e)).then((function(t){if(t&&0!==t.length)return t.map(At)}))}))};var zt=Wt;function Wt(t){this._worker=t}Ft.prototype.provideDocumentRangeFormattingEdits=function(t,e,n,i){var r=t.uri;return this._worker(r).then((function(t){return t.format(r.toString(),function(t){if(t)return{start:xt(t.getStartPosition()),end:xt(t.getEndPosition())}}(e),Ut(n)).then((function(t){if(t&&0!==t.length)return t.map(At)}))}))};var Dt=Ft;function Ft(t){this._worker=t}Vt.prototype.provideRenameEdits=function(t,e,n,i){var r=t.uri;return this._worker(r).then((function(t){return t.doRename(r.toString(),xt(e),n)})).then((function(t){var e=t;if(e&&e.changes){var n,i=[];for(n in e.changes)for(var r=m.Uri.parse(n),s=0,o=e.changes[n];s<o.length;s++){var _=o[s];i.push({resource:r,edit:{range:kt(_.range),text:_.newText}})}return{edits:i}}}))};var Mt=Vt;function Vt(t){this._worker=t}Bt.prototype.provideFoldingRanges=function(t,e,n){var i=t.uri;return this._worker(i).then((function(t){return t.getFoldingRanges(i.toString(),e)})).then((function(t){if(t)return t.map((function(t){var e={start:t.startLine+1,end:t.endLine+1};return void 0!==t.kind&&(e.kind=function(t){switch(t){case _.Comment:return m.languages.FoldingRangeKind.Comment;case _.Imports:return m.languages.FoldingRangeKind.Imports;case _.Region:return m.languages.FoldingRangeKind.Region}}(t.kind)),e}))}))};var Kt=Bt;function Bt(t){this._worker=t}Gt.prototype.provideSelectionRanges=function(t,e,n){var i=t.uri;return this._worker(i).then((function(t){return t.getSelectionRanges(i.toString(),e.map(xt))})).then((function(t){if(t)return t.map((function(t){for(var e=[];t;)e.push({range:kt(t.range)}),t=t.parent;return e}))}))};var qt=Gt;function Gt(t){this._worker=t}function $t(t){function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.getLanguageServiceWorker.apply(n,t)}var n=new y(t);t=t.languageId;m.languages.registerCompletionItemProvider(t,new Et(e)),m.languages.registerHoverProvider(t,new Ot(e)),m.languages.registerDocumentHighlightProvider(t,new It(e)),m.languages.registerLinkProvider(t,new Nt(e)),m.languages.registerFoldingRangeProvider(t,new Kt(e)),m.languages.registerDocumentSymbolProvider(t,new Pt(e)),m.languages.registerSelectionRangeProvider(t,new qt(e)),m.languages.registerRenameProvider(t,new Mt(e)),"html"===t&&(m.languages.registerDocumentFormattingEditProvider(t,new zt(e)),m.languages.registerDocumentRangeFormattingEditProvider(t,new Dt(e)))}function Xt(t){function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.getLanguageServiceWorker.apply(s,t)}var n,i=[],r=[],s=new y(t);return i.push(s),n=t.languageId,t=t.modeConfiguration,Qt(r),t.completionItems&&r.push(m.languages.registerCompletionItemProvider(n,new Et(e))),t.hovers&&r.push(m.languages.registerHoverProvider(n,new Ot(e))),t.documentHighlights&&r.push(m.languages.registerDocumentHighlightProvider(n,new It(e))),t.links&&r.push(m.languages.registerLinkProvider(n,new Nt(e))),t.documentSymbols&&r.push(m.languages.registerDocumentSymbolProvider(n,new Pt(e))),t.rename&&r.push(m.languages.registerRenameProvider(n,new Mt(e))),t.foldingRanges&&r.push(m.languages.registerFoldingRangeProvider(n,new Kt(e))),t.selectionRanges&&r.push(m.languages.registerSelectionRangeProvider(n,new qt(e))),t.documentFormattingEdits&&r.push(m.languages.registerDocumentFormattingEditProvider(n,new zt(e))),t.documentRangeFormattingEdits&&r.push(m.languages.registerDocumentRangeFormattingEditProvider(n,new Dt(e))),i.push(Ht(r)),Ht(i)}function Ht(t){return{dispose:function(){return Qt(t)}}}function Qt(t){for(;t.length;)t.pop().dispose()}}}]);